$(document).ready(function(){ 
	$(".nav a").hover(function(){
	  $(this).stop().animate({ color: "#009cc2" },1);
	}, function(){
	  $(this).stop().animate({ color: "#ffffff" }, 500);
	}); 
	$("#footer a, #content a").not(".button").hover(function(){
	  $(this).stop().animate({ color: "#009cc2" },1);
	}, function(){
	  $(this).stop().animate({ color: "#ffffff" }, 500);
	}); 
	$(".col240 a").hover(function(){
	  $(this).stop().animate({ color: "#009cc2" },1);
	}, function(){
	  $(this).stop().animate({ color: "#a2a5aa" }, 500);
	}); 
	$(".col700 h2 a, h3.search-title a").hover(function(){
	  $(this).stop().animate({ color: "#ffffff" },1);
	}, function(){
	  $(this).stop().animate({ color: "#009cc2" }, 500);
	}); 
	$("#white .col700 a, #white .col940 a, #white .col240 a").hover(function(){
	  $(this).stop().animate({ color: "#40444F" },1);
	}, function(){
	  $(this).stop().animate({ color: "#009cc2" }, 500);
	}); 
	$("#related li a").hover(function(){
	  $(this).stop().animate({ color: "#009cc2" },1);
	}, function(){
	  $(this).stop().animate({ color: "#a2a5aa" }, 500);
	}); 
	$("#tag_cloud-3 a").hover(function(){
	  $(this).stop().animate({ color: "#009cc2" },1);
	}, function(){
	  $(this).stop().animate({ color: "#ffffff" }, 500);
	});
	$("#white .nav a").hover(function(){
	  $(this).stop().animate({ color: "#009cc2" },1);
	}, function(){
	  $(this).stop().animate({ color: "#40444F" }, 500);
	});  	
	
//	$("img.overlay").hover(function(event){
//		$('<span class="overlay"></span>').css({ opacity : "0.0"}).insertBefore(event.target)
//		.hover(function(){
//			$(this).stop().animate({ opacity: "0.3" },250);
//		}, function(){
//			$(this).stop().animate({ opacity: "0.0" }, 250, function(){
//				$(this).remove();
//			});
//		});
//	});	
	
	$(".image-grid li, #worklist li").hover(

		function() {
			$(this).find(".caption").animate({
				opacity: "show",
			}, "0");
		},

		function() {
			$(this).find(".caption").animate({
				opacity: "hide",
			}, "500");
	});

});

