// JavaScript Document
$(document).ready(function(){ 			
						   
    //thumbnail						   
	$('.thumbnail').mouseover(function() {	
		$(this).stop();					   
		$(this).animate( {backgroundColor:"#ffffff"} ,500);
		//$(this.parentNode.parentNode).animate({backgroundColor:"#191919"} ,500);
	});
	$('.thumbnail').mouseout(function() {	
		$(this).stop();			
		$(this).animate( {backgroundColor:"#666666"} ,400);
		//$(this.parentNode.parentNode).animate({backgroundColor:"#292929"} ,500);
	});
	
	
	//thumbnail						   
	$('.thumbs_column').mouseover(function() {	
		$(this).stop();	
		$(this).animate({backgroundColor:"#191919"} ,500);
	});
	$('.thumbs_column').mouseout(function() {	
		$(this).stop();			
		$(this).animate({backgroundColor:"#292929"} ,500);
	});
	
	//overlay
	$('.title-overlay').animate( {height:"21"} ,0);	
	$('.static-image-wrapper').mouseover(function() {	
        $('.title-overlay').stop();		
		$('.title-overlay').animate( {height:"105"} ,400 ,'easeInQuad');
	});
	
	$('.static-image-wrapper').mouseout(function() {	
		$('.title-overlay').stop();				
		$('.title-overlay').animate( {height:"21"} ,400,'easeOutQuad');
	});
	
	/*---------------------image effects ------------------*/
		
	//$(".thumbnail").css("opacity", "0");
	$(".thumbnail").load(function() {	
		//$(this).css("opacity", "1");
		$(this).hide().fadeIn(2000);
	});
	
	//$(".large").css("opacity","0");
	$(".large").load(function() {	
		//$(this).css("opacity", "1");
		$(this).hide().fadeIn(2000);
	
		$("#large-entry-iamge-overlay").height($(this).height());
		$("#large-entry-iamge-overlay").css("margin-top", -$(this).height()-17);
	});
	
});

