$(document).ready(function(){

	jQuery.preloadImages = function()
	{
	  for(var i = 0; i<arguments.length; i++)
	  {
		jQuery("<img>").attr("src", arguments[i]);
	  }
	}
					   
						   
    $('.thumb a').hover(function(){
								 $("img",this).fadeTo("fast", .5);
								  
								 },function(){
									 $("img",this).fadeTo("slow", 1);
									 });
	
    $('.thumb a').click(function(){
        var imgHref = $(this).attr('title');  //get the src of the thumbnail
      
        $('.big').stop().fadeTo(700, 0, function() {  //fade image out
        	$('.big').attr('src',imgHref).load( function(){
				
						$('.big').fadeTo(400, 1);  //fade the image in
        
				});
			});
		});
		
});


