


$(function() {
	$('a#led1[rel*=lightbox]').lightBox({
		overlayBgColor: '#000',
		overlayOpacity: 0.8,
		imageBlank: 'script/images/blank.gif',
		imageLoading: 'script/images/loading.gif',
		imageBtnClose: 'script/images/close.gif',
		imageBtnPrev: 'script/images/prev.gif',
		imageBtnNext: 'script/images/next.gif',
		containerResizeSpeed: 350,
		txtImage: 'Immagine',
		txtOf: 'di'
	});
	$('a#led2[rel*=lightbox]').lightBox({
		overlayBgColor: '#000',
		overlayOpacity: 0.8,
		imageBlank: 'script/images/blank.gif',
		imageLoading: 'script/images/loading.gif',
		imageBtnClose: 'script/images/close.gif',
		imageBtnPrev: 'script/images/prev.gif',
		imageBtnNext: 'script/images/next.gif',
		containerResizeSpeed: 350,
		txtImage: 'Immagine',
		txtOf: 'di'
	});
	$('a#led3[rel*=lightbox]').lightBox({
		overlayBgColor: '#000',
		overlayOpacity: 0.8,
		imageBlank: 'script/images/blank.gif',
		imageLoading: 'script/images/loading.gif',
		imageBtnClose: 'script/images/close.gif',
		imageBtnPrev: 'script/images/prev.gif',
		imageBtnNext: 'script/images/next.gif',
		containerResizeSpeed: 350,
		txtImage: 'Immagine',
		txtOf: 'di'
	});
	$('a#led4[rel*=lightbox]').lightBox({
		overlayBgColor: '#000',
		overlayOpacity: 0.8,
		imageBlank: 'script/images/blank.gif',
		imageLoading: 'script/images/loading.gif',
		imageBtnClose: 'script/images/close.gif',
		imageBtnPrev: 'script/images/prev.gif',
		imageBtnNext: 'script/images/next.gif',
		containerResizeSpeed: 350,
		txtImage: 'Immagine',
		txtOf: 'di'
	});
	$('a#led5[rel*=lightbox]').lightBox({
		overlayBgColor: '#000',
		overlayOpacity: 0.8,
		imageBlank: 'script/images/blank.gif',
		imageLoading: 'script/images/loading.gif',
		imageBtnClose: 'script/images/close.gif',
		imageBtnPrev: 'script/images/prev.gif',
		imageBtnNext: 'script/images/next.gif',
		containerResizeSpeed: 350,
		txtImage: 'Immagine',
		txtOf: 'di'
	});
	$('a#led6[rel*=lightbox]').lightBox({
		overlayBgColor: '#000',
		overlayOpacity: 0.8,
		imageBlank: 'script/images/blank.gif',
		imageLoading: 'script/images/loading.gif',
		imageBtnClose: 'script/images/close.gif',
		imageBtnPrev: 'script/images/prev.gif',
		imageBtnNext: 'script/images/next.gif',
		containerResizeSpeed: 350,
		txtImage: 'Immagine',
		txtOf: 'di'
	});
	$('a#led7[rel*=lightbox]').lightBox({
		overlayBgColor: '#000',
		overlayOpacity: 0.8,
		imageBlank: 'script/images/blank.gif',
		imageLoading: 'script/images/loading.gif',
		imageBtnClose: 'script/images/close.gif',
		imageBtnPrev: 'script/images/prev.gif',
		imageBtnNext: 'script/images/next.gif',
		containerResizeSpeed: 350,
		txtImage: 'Immagine',
		txtOf: 'di'
	});
	$('a#led8[rel*=lightbox]').lightBox({
		overlayBgColor: '#000',
		overlayOpacity: 0.8,
		imageBlank: 'script/images/blank.gif',
		imageLoading: 'script/images/loading.gif',
		imageBtnClose: 'script/images/close.gif',
		imageBtnPrev: 'script/images/prev.gif',
		imageBtnNext: 'script/images/next.gif',
		containerResizeSpeed: 350,
		txtImage: 'Immagine',
		txtOf: 'di'
	});
	$('a#led9[rel*=lightbox]').lightBox({
		overlayBgColor: '#000',
		overlayOpacity: 0.8,
		imageBlank: 'script/images/blank.gif',
		imageLoading: 'script/images/loading.gif',
		imageBtnClose: 'script/images/close.gif',
		imageBtnPrev: 'script/images/prev.gif',
		imageBtnNext: 'script/images/next.gif',
		containerResizeSpeed: 350,
		txtImage: 'Immagine',
		txtOf: 'di'
	});
	$('a#led10[rel*=lightbox]').lightBox({
		overlayBgColor: '#000',
		overlayOpacity: 0.8,
		imageBlank: 'script/images/blank.gif',
		imageLoading: 'script/images/loading.gif',
		imageBtnClose: 'script/images/close.gif',
		imageBtnPrev: 'script/images/prev.gif',
		imageBtnNext: 'script/images/next.gif',
		containerResizeSpeed: 350,
		txtImage: 'Immagine',
		txtOf: 'di'
	});
});

    
function richiediinfo(idofferta){
    jQuery("#richiesta").load("richiediinfo.aspx?idofferta=" + idofferta + "&nocache=" + new Date().getTime(),'',function(){
        jQuery("#richiesta").dialog('open');
    });
}

function chiudiRichiesta(){
    //jQuery.validationEngine.closePrompt('.formError',true);
    jQuery('#richiesta').validationEngine('hideAll');
    jQuery("#richiesta").dialog('close');
}

$(document).ready(function() {		        
    //jQuery("#loopedSlider").loopedSlider({	
	//	container: '.containerS',
	//	autoStart: 6000, 
	//	slidespeed: 500, 
	//	containerClick: false
	//});		
	jQuery("body").append('<div id="richiesta"></div>');
	jQuery("#richiesta").dialog({
        bgiframe: true,
        autoOpen: false,
        width: 950,
        height: 680,
        closeOnEscape: true,
        modal: true,
        resizable: false,
        draggable: false
    });
	Cufon.replace('#editoriale1, #editoriale2, #editoriale3,#editoriale4, #editoriale5, #editoriale6,#editoriale7, #editoriale8, #editoriale9,#editoriale10, #editoriale11, #editoriale12,#editoriale13, #editoriale14, #editoriale15');
	Cufon.replace('#offerta1, #offerta2, #offerta3,#offerta4, #offerta5, #offerta6,#offerta7, #offerta8, #offerta9,#offerta10, #offerta11, #offerta12,#offerta13, #offerta14, #offerta15');
	Cufon.replace('#ap1, #ap2, #ap3,#ap4, #ap5, #ap6,#ap7, #ap8, #ap9,#ap10, #ap11, #ap12,#ap13, #ap14, #ap15');
	Cufon.replace('#pap1, #pap2, #pap3,#pap4, #pap5, #pap6,#pap7, #pap8, #pap9,#pap10, #pap11, #pap12,#pap13, #pap14, #pap15');
	Cufon.replace('#elencoofferte');
	Cufon.replace('#titolo');
	Cufon.replace('#terr1, #terr2, #terr3,#terr4, #terr5, #terr6,#terr7, #terr8, #terr9,#terr10, #terr11, #terr12,#terr13, #terr14, #terr15');
	Cufon.replace('#sot1, #sot2, #sot3,#sot4, #sot5, #sot6,#sot7, #sot8, #sot9,#sot10, #sot11, #sot12,#sot13, #sot14, #sot15');
	Cufon.replace('#hot1, #hot2, #hot3,#hot4, #hot5, #hot6,#hot7, #hot8, #hot9,#hot10, #hot11, #hot12,#hot13, #hot14, #hot15');
	Cufon.replace('#sop1, #sop2, #sop3,#sop4, #sop5, #sop6,#sop7, #sop8, #sop9,#sop10, #sop11, #sop12,#sop13, #sotp14, #sop15');
	Cufon.replace('#sope1, #sope2, #sope3,#sope4, #sope5, #sope6,#sope7, #sope8, #sope9,#sope10, #sope11, #sope12,#sope13, #sotpe14, #sope15');
	Cufon.replace('#dettofferta1,#dettofferta2,#dettofferta3,#dettofferta4,#dettofferta5,#dettofferta6');	
	Cufon.replace('#eo1,#eo2,#eo3,#eo4,#eo5,#eo6');	
    // rotore
	jQuery("#loopedSlider").loopedSlider({	
		container: '.containerS',
		autoStart: 10000,		
		slidespeed: 500,
		containerClick: false
	});
	// effetti editoriale
	$("#zed1").stop().animate({opacity:0},0);		
    $("#ed1").hover(function() {		           
        $("#zed1").stop().animate({opacity:1});	        	    		    
    }, function() {
        $("#zed1").stop().animate({opacity:0},250);	 	
    });
    $("#zed2").stop().animate({opacity:0},0);		
    $("#ed2").hover(function() {		           
        $("#zed2").stop().animate({opacity:1});	        	    		    
    }, function() {
        $("#zed2").stop().animate({opacity:0},250);	 	
    });
    $("#zed3").stop().animate({opacity:0},0);		
    $("#ed3").hover(function() {		           
        $("#zed3").stop().animate({opacity:1});	        	    		    
    }, function() {
        $("#zed3").stop().animate({opacity:0},250);	 	
    });
    $("#zed1").stop().animate({opacity:0},0);		
    $("#ed4").hover(function() {		           
        $("#zed4").stop().animate({opacity:1});	        	    		    
    }, function() {
        $("#zed4").stop().animate({opacity:0},250);	 	
    });
    $("#zed1").stop().animate({opacity:0},0);		
    $("#ed5").hover(function() {		           
        $("#zed5").stop().animate({opacity:1});	        	    		    
    }, function() {
        $("#zed5").stop().animate({opacity:0},250);	 	
    });
    $("#zed1").stop().animate({opacity:0},0);		
    $("#ed6").hover(function() {		           
        $("#zed6").stop().animate({opacity:1});	        	    		    
    }, function() {
        $("#zed6").stop().animate({opacity:0},250);	 	
    });
    $("#zed1").stop().animate({opacity:0},0);		
    $("#ed7").hover(function() {		           
        $("#zed7").stop().animate({opacity:1});	        	    		    
    }, function() {
        $("#zed7").stop().animate({opacity:0},250);	 	
    });
    $("#zed1").stop().animate({opacity:0},0);		
    $("#ed8").hover(function() {		           
        $("#zed8").stop().animate({opacity:1});	        	    		    
    }, function() {
        $("#zed8").stop().animate({opacity:0},250);	 	
    });
    $("#zed1").stop().animate({opacity:0},0);		
    $("#ed9").hover(function() {		           
        $("#zed9").stop().animate({opacity:1});	        	    		    
    }, function() {
        $("#zed9").stop().animate({opacity:0},250);	 	
    });
    $("#zed1").stop().animate({opacity:0},0);		
    $("#ed10").hover(function() {		           
        $("#zed10").stop().animate({opacity:1});	        	    		    
    }, function() {
        $("#zed10").stop().animate({opacity:0},250);	 	
    });    
    // fine effetti editoriale
    
    
    
    
	$("#bgr0").stop().animate({opacity:0},0);	
	$("#bgr1").stop().animate({opacity:0},0);	
	$("#bgr2").stop().animate({opacity:0},0);	
	$("#bgr3").stop().animate({opacity:0},0);	
	$("#bgr4").stop().animate({opacity:0},0);	
	$("#bgr5").stop().animate({opacity:0},0);	
	$("#bgr6").stop().animate({opacity:0},0);	
	$("#bgr7").stop().animate({opacity:0},0);	
	$("#bgr8").stop().animate({opacity:0},0);	
	$("#bgr9").stop().animate({opacity:0},0);	
	$("#bgr10").stop().animate({opacity:0},0);	
	$("#bgr11").stop().animate({opacity:0},0);	
	$("#bgr12").stop().animate({opacity:0},0);	
	$("#bgr13").stop().animate({opacity:0},0);	
	$("#bgr14").stop().animate({opacity:0},0);	
	$("#bgr15").stop().animate({opacity:0},0);	
	$("#bgr16").stop().animate({opacity:0},0);
	$("#bgr17").stop().animate({opacity:0},0);
	$("#bgr18").stop().animate({opacity:0},0);
	$("#bgr19").stop().animate({opacity:0},0);
	$("#bgr20").stop().animate({opacity:0},0);
	$("#bgr21").stop().animate({opacity:0},0);
	$("#bgr22").stop().animate({opacity:0},0);
	$("#bgr23").stop().animate({opacity:0},0);
	$("#bgr24").stop().animate({opacity:0},0);
	$("#bgr25").stop().animate({opacity:0},0);
	$("#bgr26").stop().animate({opacity:0},0);
	$("#bgr27").stop().animate({opacity:0},0);
	$("#bgr28").stop().animate({opacity:0},0);
	$("#bgr29").stop().animate({opacity:0},0);
	$("#bgr30").stop().animate({opacity:0},0);	
	
	
	
	$("#zoom0").stop().animate({opacity:0},0);
	$("#zoom1").stop().animate({opacity:0},0);
	$("#zoom2").stop().animate({opacity:0},0);
	$("#zoom3").stop().animate({opacity:0},0);
	$("#zoom4").stop().animate({opacity:0},0);
	$("#zoom5").stop().animate({opacity:0},0);
	$("#zoom6").stop().animate({opacity:0},0);
	$("#zoom7").stop().animate({opacity:0},0);
	$("#zoom8").stop().animate({opacity:0},0);
	$("#zoom9").stop().animate({opacity:0},0);
	$("#zoom10").stop().animate({opacity:0},0);
	$("#zoom11").stop().animate({opacity:0},0);
	$("#zoom12").stop().animate({opacity:0},0);
	$("#zoom13").stop().animate({opacity:0},0);
	$("#zoom14").stop().animate({opacity:0},0);
	$("#zoom15").stop().animate({opacity:0},0);
	$("#zoom16").stop().animate({opacity:0},0);
	$("#zoom17").stop().animate({opacity:0},0);
	$("#zoom18").stop().animate({opacity:0},0);
	$("#zoom19").stop().animate({opacity:0},0);
	$("#zoom20").stop().animate({opacity:0},0);
	$("#zoom21").stop().animate({opacity:0},0);
	$("#zoom22").stop().animate({opacity:0},0);
	$("#zoom23").stop().animate({opacity:0},0);
	$("#zoom24").stop().animate({opacity:0},0);
	$("#zoom25").stop().animate({opacity:0},0);
	$("#zoom26").stop().animate({opacity:0},0);
	$("#zoom27").stop().animate({opacity:0},0);
	$("#zoom28").stop().animate({opacity:0},0);
	$("#zoom29").stop().animate({opacity:0},0);
	$("#zoom30").stop().animate({opacity:0},0);	
	//effetto sui manifesti del catalogo
	$("#bgr0").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom0").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom0").stop().animate({opacity:0},250);	 	
    });
	$("#bgr1").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom1").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom1").stop().animate({opacity:0},250);	 	
    });
    $("#bgr2").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom2").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom2").stop().animate({opacity:0},250);	 	
    });
    $("#bgr3").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom3").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom3").stop().animate({opacity:0},250);	 	
    });
    $("#bgr4").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom4").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom4").stop().animate({opacity:0},250);	 	
    });
    $("#bgr5").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom5").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom5").stop().animate({opacity:0},250);	 	
    });
    $("#bgr6").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom6").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom6").stop().animate({opacity:0},250);	 	
    });
    $("#bgr7").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom7").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom7").stop().animate({opacity:0},250);	 	
    });
    $("#bgr8").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom8").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom8").stop().animate({opacity:0},250);	 	
    });
    $("#bgr9").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom9").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom9").stop().animate({opacity:0},250);	 	
    });
    $("#bgr10").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom10").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom10").stop().animate({opacity:0},250);	 	
    });
    $("#bgr11").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom11").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom11").stop().animate({opacity:0},250);	 	
    });
    $("#bgr12").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom12").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom12").stop().animate({opacity:0},250);	 	
    });
    $("#bgr13").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom13").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom13").stop().animate({opacity:0},250);	 	
    });
    $("#bgr14").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom14").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom14").stop().animate({opacity:0},250);	 	
    });
    $("#bgr15").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom15").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom15").stop().animate({opacity:0},250);	 	
    });
    $("#bgr16").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom16").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom16").stop().animate({opacity:0},250);	 	
    });
    $("#bgr17").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom17").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom17").stop().animate({opacity:0},250);	 	
    });
    $("#bgr18").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom18").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom18").stop().animate({opacity:0},250);	 	
    });
    $("#bgr19").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom19").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom19").stop().animate({opacity:0},250);	 	
    });
    $("#bgr20").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom20").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom20").stop().animate({opacity:0},250);	 	
    });
    $("#bgr21").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom21").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom21").stop().animate({opacity:0},250);	 	
    });
    $("#bgr22").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom22").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom22").stop().animate({opacity:0},250);	 	
    });
    $("#bgr23").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom23").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom23").stop().animate({opacity:0},250);	 	
    });
    $("#bgr24").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom24").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom24").stop().animate({opacity:0},250);	 	
    });
    $("#bgr25").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom25").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom25").stop().animate({opacity:0},250);	 	
    });
    $("#bgr26").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom26").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom26").stop().animate({opacity:0},250);	 	
    });
    $("#bgr27").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom27").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom27").stop().animate({opacity:0},250);	 	
    });
    $("#bgr28").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom28").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom28").stop().animate({opacity:0},250);	 	
    });
    $("#bgr29").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom29").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom29").stop().animate({opacity:0},250);	 	
    });
    $("#bgr30").hover(function() {		   
        $(this).stop().animate({opacity:0.5},250);	
        $("#zoom30").stop().animate({opacity:1},250);	        	    		    
    }, function() {
        $(this).stop().animate({opacity:0},250);
        $("#zoom30").stop().animate({opacity:0},250);	 	
    });
});
