var $j = jQuery.noConflict();
$j(function () {

	$j(document).ready(function(){
		//$j(".thumb img").fadeTo("slow", 0.6); // This sets the opacity of the thumbs to fade down to 60% when the page loads

		$j(".thumb img").hover(function(){
			$j(this).fadeTo("slow", 0.6); // This should set the opacity to 100% on hover
		},function(){
			$j(this).fadeTo("slow", 1.0); // This should set the opacity back to 60% on mouseout
		});
		
		$j().piroBox({
				my_speed: 400, //animation speed
				bg_alpha: 0.8, //background opacity
				slideShow : false, // true == slideshow on, false == slideshow off
				slideSpeed : 4, //slideshow duration in seconds(3 to 6 Recommended)
				close_all : '.piro_close,.piro_overlay'// add class .piro_overlay(with comma)if you want overlay click close piroBox

		});
	});

	$j('#slideshow').serialScroll({
		items:'li.img',
		prev:'a.prev',
		next:'a.next',
		offset:-10, //when scrolling to photo, stop 230 before reaching it (from the left)
		start:0, //as we are centering it, start at the 2nd
		duration:1200,
		force:true,
		stop:true,
		lock:false,
		cycle:true, 
		easing:'easeOutQuart', //use this easing equation for a funny effect
		jump: true, //click on the images to scroll to them
		navigation:true

	});
	$j("#dropmenu ul").css({display: "none"}); // Opera Fix
	$j("#dropmenu li").hover(function(){
		$j(this).addClass('hover-menu');
		$j(this).find('ul:first').css({visibility: "visible",display: "none"}).slideDown();},
		function(){
			$j(this).find('ul:first').css({visibility: "hidden"});
			$j(this).css('background','none');
		});

		$j('#loopedSlider').loopedSlider({
			addPagination: true,
			slidespeed: 1000,
			containerClick: false,
			autoStart: 5000
		});


	});

