//var loading_img = "spinner.gif"; 
$(document).ready(function() {	
	//imgLoader = new Image();
	// preload image    
	//imgLoader.src = loading_img;	
	$("div.thumbnailGall").children("a").each(function() {		
		var img_url = $(this).attr("href");		
		var img = new Image();		
		img.src = img_url;	
	});	
	$("div.thumbnailGall").click(function() {
	//$("div#").html("<img src='"+imgLoader.src+"' />");		
	//$("div#intro").show();		
	img_url =  $("a",this).attr("href");		
	img_alt = $("img",this).attr("alt");		
	img_title = $("img",this).attr("title");	
	page_url = $("img",this).attr("rel");
	$("div#dx").html("<p class=\"Stile2\">" +img_title+ "</p><br><img src='"+img_url+"' class=\"fotopic\" /><br><br><p>" +img_alt+ "</p><br><a href=\""+ page_url +"\">maggiori informazioni</a><br><a href=\""+ window.location +"\">torna al menù</a>").slideDown(1500);		
	return false;	
	});
 });


 
