$(function() {

	$("img").hide();//hide all the images on the page
	$(window).bind("load", function()
	{
		$(".cover a").each(function()
		{
			var $pics = $(this).children("img");
			$($pics).eq(0).fadeIn(600);
			$($pics).eq(0).mouseover(function()
			{
				$(this).hide().next().show();
			});
			$($pics).eq(1).mouseout(function()
			{
				$(this).hide().prev().show();
			});
		});
	});
	
});
