// JavaScript Document

jQuery(document).ready(function(){  
   			
			
   			
   			//Work Thumb Hover
		
   			$(".thumb h1").hide();
			$(".thumb p").hide();
			$(".thumb h2").hide();
   			$("div.thumb").hover(function () {
	      		$(this).find("img").animate({
	      			left: "-70px",
					top: "-50px",
	      			opacity: .2
	      		}, 200);
	      		$(this).find("h1").fadeIn(200);
				$(this).find("p").fadeIn(100);
				$(this).find("h2").fadeIn(80);
	      		},function(){
	      		$(this).find("img").animate({
	      			left: "0px",
					top: "0px",
	      			opacity: 1	      			
	      		}, 200);
	      		$(this).find("h1").fadeOut(150);
				$(this).find("p").fadeOut(100);
				$(this).find("h2").fadeOut(80);
      		}); 			
   		
   		//Work Filtering
   		
   		$(function() {

			var newSelection = "";
			
				$("#work a").click(function(){
			
				    $(".thumb").fadeTo(100, 0.5);
			
					$("#work a").removeClass("current");
					$(this).addClass("current");
			
					newSelection = $(this).attr("rel");
			
					$(".thumb").not("."+newSelection).hide();
					$("."+newSelection).show();
					
					//Let em know something happened			
				    $(".thumb").fadeTo(200, 1)
				    return false;
			
				});
			
			});


});
