  $(window).load(function() {
   $('#slider').nivoSlider({
        effect:'fade', //Specify sets like: 'fold,fade,sliceDown, sliceDownLeft, sliceUp, sliceUpLeft, sliceUpDown, sliceUpDownLeft' 
        slices:17,
        animSpeed:500,
        pauseTime:3000,
        startSlide:0, //Set starting Slide (0 index)
        directionNav:false, //Next & Prev
        directionNavHide:false, //Only show on hover
        controlNav:false, //1,2,3...
        controlNavThumbs:false, //Use thumbnails for Control Nav
        controlNavThumbsFromRel:false, //Use image rel for thumbs
        controlNavThumbsSearch: '.jpg', //Replace this with...
        controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
        keyboardNav:true, //Use left & right arrows
        pauseOnHover:false, //Stop animation while hovering
        manualAdvance:false, //Force manual transitions
        captionOpacity:1, //Universal caption opacity
        beforeChange: function(){},
        afterChange: function(){},
        slideshowEnd: function(){} //Triggers after all slides have been shown
    });
});
$(document).ready(function() {
        $("a.lightbox").fancybox();
	$('.menu a').hover(function(){$(this).stop().animate({paddingTop:'51px'}, 200,'easeInBack').animate({paddingTop:'32px', paddingBottom:'36px'}, 200, 'easeOutExpo')}, function(){$(this).stop().animate({paddingTop:'51px'}, 200,'easeInBack').animate({paddingTop:'32px', paddingBottom:'27px'}, 200, 'easeOutExpo')});
	$('.menu li a').removeClass('active');
	switch(pageID){
		case 0:
			$('.n1 a').addClass('active');
		break;
		case 2:
			$('.n3 a').addClass('active');
		break;
		case 111:
			$('.n6 a').addClass('active');
		break;
		case 110:
			$('.n2 a').addClass('active');
		break;
		case 114:
			$('.n7 a').addClass('active');
		break;
		case 115:
			$('.n5 a').addClass('active');
		break;
		case 113:
			$('.n4 a').addClass('active');
		break;
	}
});
