						google.load("jqueryui", "1.5.2");
						
						$("#confezionamento").hide();
						function showaccessori() {
							
							$("#confezionamento").toggle("slow");
						}

						$("img[src$=jpg]").hover(function(){
							
							$(this).animate({opacity: 0.8}, 200);

						}, function(){
							$(this).animate({opacity: 1	}, 200);
						});

						
						$(".indexprodotti a div").hover(function(){
							
							$(this).find("img.moveimg").animate({marginLeft: '10px'}, 200);
							$(this).animate({
								"backgroundColor": "black"
							}, 200);
						}, function(){
							$(this).find("img.moveimg").animate({marginLeft: '0px'}, 100);
							$(this).animate({
								"backgroundColor": "#777"
							}, 100);
						});

						$(".indexprodotti_pp a").hover(function(){
							
							$(this).find("img").animate({marginLeft: '10px'}, 200);
							$(this).parent().animate({
								"backgroundColor": "#ddd"
							}, 200);
						}, function(){
							$(this).find("img").animate({marginLeft: '0px'}, 100);
							$(this).parent().animate({
								"backgroundColor": "#fff"
							}, 100);
						});
						$(".graytable td").hover(function(){
							
							$(this).parent().animate({
								"backgroundColor": "#fff"
							}, 200);
						}, function(){
							$(this).parent().animate({
								"backgroundColor": "#eee"
							}, 100);
						});
						$("h1").hover(function(){
							
							$(this).animate({paddingLeft: '+=10'}, 200);
						}, function(){
							$(this).animate({paddingLeft: '-=10'}, 100);
						});
						
						
$(window).load(
    function() {
        $("#pag img[src$=jpg]").eq(0).css({opacity: 0.0, visibility: "invisible"});

		
		var totalimages = $('img[src$=jpg]').length;
		function onebyone(theimage) {
				
				//$("#pag img").eq(theimage).fadeIn("fast",function(){
				
				if (theimage < 5) {
					speed = "normal";
				} else {
					speed = "fast";
				}
				$("#pag img[src$=jpg]").eq(theimage).animate({opacity: 1.0},speed,function(){
					theimage++;
					//if (theimage < totalimages) onebyone(theimage);
				});
				
			
		}

								
		onebyone(0);

    
});
						$(document).ready(function() {
							/*$(".page").hide();
							$(".page").fadeIn(2000,function(){
								$(this).style.removeAttribute("filter");
								$(this).css('filter', 'none');
								
							});*/
							
							/*$(".pg").fadeIn("slow");*/
						});
/*						$(".pg a").hover(function(){
							$(this).animate({paddingLeft: '+=5'}, 100, function(){
							
								$(this).animate({paddingLeft: '-=5'}, 100);
							
							});
						});*/
