$(document).ready(function(){		// Dropdown Script	   	function mainmenu(){	$(" #nav ul ").css({display: "none"}); // Opera Fix	$(" #nav li").hover(function(){			$(this).find('ul:first').css({visibility: "visible",display: "none"}).show(400);			},function(){			$(this).find('ul:first').css({visibility: "hidden"});			});	}		 $(document).ready(function(){							mainmenu();	});					   						   		$('.logo').pngFix( );				$("hr").replaceWith("<div class='hr'><hr></div>");				$("a[rel^='gallery']").prettyPhoto();			// Activate jCarousel	function mycarousel_initCallback(carousel)	{    	// Disable autoscrolling if the user clicks the prev or next button.    	carousel.buttonNext.bind('click', function() {    	    carousel.startAuto(0);    	});		    	carousel.buttonPrev.bind('click', function() {    	    carousel.startAuto(0);    	});		    	// Pause autoscrolling if the user moves with the cursor over the clip.    	carousel.clip.hover(function() {    	    carousel.stopAuto();    	}, function() {    	    carousel.startAuto();    	});	};    	jQuery('#mycarousel').jcarousel({    	    auto: 6,    	    wrap: 'last',			scroll: 5,    	    animation: 'slow',    	    initCallback: mycarousel_initCallback    });	        jQuery('#homecarousel').jcarousel({    	    auto: 6,    	    wrap: 'last',			scroll: 1,    	    animation: 400,    	    initCallback: mycarousel_initCallback    });		});$(window).load(function() {	$('#slider').nivoSlider({		effect:'fade',		slices:15,		animSpeed:500,		pauseTime:5500,		directionNav:true, //Next & Prev		directionNavHide:true, //Only show on hover		controlNav:false, //1,2,3...		keyboardNav:true, //Use left & right arrows		pauseOnHover:true, //Stop animation while hovering		manualAdvance:false, //Force manual transitions		captionOpacity:0.8, //Universal caption opacity		beforeChange: function(){},		afterChange: function(){},		slideshowEnd: function(){} //Triggers after all slides have been shown	});});$(document).ready(function(){  $('a[href*=#]').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {   var $target = $(this.hash);   $target = $target.length && $target   || $('[name=' + this.hash.slice(1) +']');   if ($target.length) {  var targetOffset = $target.offset().top;  $('html,body')  .animate({scrollTop: targetOffset}, 1000);    return false;   } }  });});
