$(document).ready(function(){
						   
	$(".animate").click(function(){
		$("this").animate(
			{marginTop:'-=26px'},
			500);
		});
	
   	$("#home").hover(
	 function(){$(this).attr("src", "/images/navigation/home_hover.png");},
	 function(){$(this).attr("src", "/images/navigation/home.png");}
	 );  
   	$("#about").hover(
	 function(){$(this).attr("src", "/images/navigation/about_hover.png");},
	 function(){$(this).attr("src", "/images/navigation/about.png");}
	 );  
   	$("#work").hover(
	 function(){$(this).attr("src", "/images/navigation/work_hover.png");},
	 function(){$(this).attr("src", "/images/navigation/work.png");}
	 );  
   	$("#blog").hover(
	 function(){$(this).attr("src", "/images/navigation/blog_hover.png");},
	 function(){$(this).attr("src", "/images/navigation/blog.png");}
	 );  
   	$("#reel").hover(
	 function(){$(this).attr("src", "/images/navigation/reel_hover.png");},
	 function(){$(this).attr("src", "/images/navigation/reel.png");}
	 );  
   	$("#contact").hover(
	 function(){$(this).attr("src", "/images/navigation/contact_hover.png");},
	 function(){$(this).attr("src", "/images/navigation/contact.png");}
	 );  
	
	$(".work").mouseenter(function(){
		$(this).stop().fadeTo('500', 1.0);
	});
	$(".work").mouseleave(function(){
		$(this).stop().fadeTo('500', 0.4);
	});
	
   	$(".gallery").hover(
	 function(){$(this).children("img").attr("src", "/images/back_to_gallery_black.png");},
	 function(){$(this).children("img").attr("src", "/images/back_to_gallery.png");}
	 );  
	
	
	$(".playvideo").toggle(
			function(){
				$("#work_container").animate({left: '-=594'},500);
				$(this).attr("src", "/images/close_video.png");
			},
			
			function(){
				$("#work_container").animate({left: '+=594'},500);
				$(this).attr("src", "/images/play_video.png");
			}
		  );
						   
});

$(window).load(function() {
	$('#slider').nivoSlider({
		effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
		slices:10,
		animSpeed:500,
		pauseTime:5000,
		startSlide:0, //Set starting Slide (0 index)
		directionNav:false, //Next & Prev
		directionNavHide:false, //Only show on hover
		controlNav:true, //1,2,3...
		controlNavThumbs:true, //Use thumbnails for Control Nav
     	controlNavThumbsFromRel:false, //Use image rel for thumbs
		controlNavThumbsSearch: '.jpg', //Replace this with...
		controlNavThumbsReplace: '_thumb.png', //...this in thumb Image src
		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
	});
	
	$('#slider2').nivoSlider({
		effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
		animSpeed:500,
		pauseTime:5000,
		startSlide:0, //Set starting Slide (0 index)
		directionNav:true, //Next & Prev
		directionNavHide:true, //Only show on hover
		controlNav:true, //1,2,3...
		controlNavThumbs:false, //Use thumbnails for Control Nav
     	controlNavThumbsFromRel:false, //Use image rel for thumbs
		controlNavThumbsSearch: '.jpg', //Replace this with...
		controlNavThumbsReplace: '_thumb.png', //...this in thumb Image src
		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
	});
	
	$('#slider3').nivoSlider({
		effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
		animSpeed:500,
		pauseTime:5000,
		startSlide:0, //Set starting Slide (0 index)
		directionNav:true, //Next & Prev
		directionNavHide:true, //Only show on hover
		controlNav:true, //1,2,3...
		controlNavThumbs:false, //Use thumbnails for Control Nav
     	controlNavThumbsFromRel:false, //Use image rel for thumbs
		controlNavThumbsSearch: '.jpg', //Replace this with...
		controlNavThumbsReplace: '_thumb.png', //...this in thumb Image src
		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
	});
});



