	$(document).ready(
		function(){
			$("#foto img").fadeIn("slow");
			$("#galleria ul").css("width", $("#galleria ul").width()+5);
			$("#galleria").css("width", "495px");
			$("#listaFoto li a").click( 
				function(){
					$carica=this;
					//alert($(this).attr("href"));
					$("#foto img").fadeOut("slow", function () {
															// alert($("#listaFoto li a").attr("href"));
        $("#foto").html('<img onload="appari();" src="'+$carica+'" />');
      });

					//$("#foto img").css("display", "none");
					
					
					

					$("#titleDida").html($(this).children("img").attr("title"));
					$("#descDida").html($(this).children("img").attr("alt"));
					return false;
				}
			);
			
			
		}
	);
	
function appari(){
	$("#foto img").fadeIn("slow");
	}



