$(document).ready(function(){  
    $(".thumb a").hover(function(){
			var imgHref = $(this).attr('href');  //get the src of the thumbnail
    		$(".thumb a").removeClass("selected");  //remove .selected class from all other links
    		$(this).addClass("selected");  //add .selected class to current link
			$(".big").stop();
		$(".big").stop().fadeTo(500, 0, function() {  //fade image out
    		$('.big').attr('src',imgHref);  //give new image a src attribute
    		
		}).fadeTo("slow", 1);  //fade the image in
	},function(){    //for onmouseout not used here
	});
});
