jQuery.fn.fadeIn = function(speed, callback) {
    return this.animate({opacity: 'show'}, speed, function() {
        if (jQuery.browser.msie) this.style.removeAttribute('filter');
        if (jQuery.isFunction(callback)) callback();
    }); 
}

jQuery.fn.fadeOut = function(speed, callback) {
    return this.animate({opacity: 'hide'}, speed, function() {
        if (jQuery.browser.msie) this.style.removeAttribute('filter');
        if (jQuery.isFunction(callback)) callback();
    });
}

jQuery.fn.fadeTo = function(speed,to,callback) {
    return this.animate({opacity: to}, speed, function() {
        if (to == 1 && jQuery.browser.msie) this.style.removeAttribute('filter');
        if (jQuery.isFunction(callback)) callback();
    });
}


/* =Mouse Over Link Uno() per Des Bains > Rinascita > Overview e Progetto > Residenze > Pianta
-------------------------------------------------------------- */
function mouseoverLinkUno(){
	$('.imgB, .imgC, .imgD, .imgE, .imgF, .imgG, .imgH, .imgI').fadeOut(0);
	$('.overImgB').mouseover(function(){
		$('.imgB, .imgC, .imgD, .imgE, .imgF, .imgG, .imgH, .imgI').fadeOut(400);
		$('.imgB').fadeIn(400);
	});
	$('.overImgC').mouseover(function(){
		$('.imgB, .imgC, .imgD, .imgE, .imgF, .imgG, .imgH, .imgI').fadeOut(400);
		$('.imgC').fadeIn(400);
	});
	$('.overImgD').mouseover(function(){
		$('.imgB, .imgC, .imgD, .imgE, .imgF, .imgG, .imgH, .imgI').fadeOut(400);
		$('.imgD').fadeIn(400);
	});
	$('.overImgE').mouseover(function(){
		$('.imgB, .imgC, .imgD, .imgE, .imgF, .imgG, .imgH, .imgI').fadeOut(400);
		$('.imgE').fadeIn(400);
	});
	$('.overImgF').mouseover(function(){
		$('.imgB, .imgC, .imgD, .imgE, .imgF, .imgG, .imgH, .imgI').fadeOut(400);
		$('.imgF').fadeIn(400);
	});
	$('.overImgG').mouseover(function(){
		$('.imgB, .imgC, .imgD, .imgE, .imgF, .imgG, .imgH, .imgI').fadeOut(400);
		$('.imgG').fadeIn(400);
	});
	$('.overImgH').mouseover(function(){
		$('.imgB, .imgC, .imgD, .imgE, .imgF, .imgG, .imgH, .imgI').fadeOut(400);
		$('.imgH').fadeIn(400);
	});
	$('.overImgI').mouseover(function(){
		$('.imgB, .imgC, .imgD, .imgE, .imgF, .imgG, .imgH, .imgI').fadeOut(400);
		$('.imgI').fadeIn(400);
	});
}


/* =Mouse Over Link() per Progetto > Piani > Dettaglio
-------------------------------------------------------------- */
function mouseoverLink(){
	if($.browser.msie && parseFloat($.browser.version) <= 8){
		$('#piano_m1, #piano_1, #piano_2, #piano_3, #piano_4, #piano_5, #piano_6').fadeOut(0);
		$('#l6').mouseover(function(){
			$('#piano_m1, #piano_0, #piano_1, #piano_2, #piano_3, #piano_4, #piano_5').fadeOut();
			$('#piano_6').fadeIn();
			document.getElementById("l6").setAttribute("class", "active");
			document.getElementById("l5").setAttribute("class", "link");
			document.getElementById("l4").setAttribute("class", "link");
			document.getElementById("l3").setAttribute("class", "link");
			document.getElementById("l2").setAttribute("class", "link");
			document.getElementById("l1").setAttribute("class", "link");
			document.getElementById("l0").setAttribute("class", "link");
			document.getElementById("lm1").setAttribute("class", "link");
		});
		$('#l5').mouseover(function(){
			$('#piano_m1, #piano_0, #piano_1, #piano_2, #piano_3, #piano_4, #piano_6').fadeOut();
			$('#piano_5').fadeIn();
			document.getElementById("l5").setAttribute("class", "active");
			document.getElementById("l6").setAttribute("class", "link");
			document.getElementById("l4").setAttribute("class", "link");
			document.getElementById("l3").setAttribute("class", "link");
			document.getElementById("l2").setAttribute("class", "link");
			document.getElementById("l1").setAttribute("class", "link");
			document.getElementById("l0").setAttribute("class", "link");
			document.getElementById("lm1").setAttribute("class", "link");
		});
		$('#l4').mouseover(function(){
			$('#piano_m1, #piano_0, #piano_1, #piano_2, #piano_3, #piano_5, #piano_6').fadeOut();
			$('#piano_4').fadeIn();
			document.getElementById("l4").setAttribute("class", "active");
			document.getElementById("l6").setAttribute("class", "link");
			document.getElementById("l5").setAttribute("class", "link");
			document.getElementById("l3").setAttribute("class", "link");
			document.getElementById("l2").setAttribute("class", "link");
			document.getElementById("l1").setAttribute("class", "link");
			document.getElementById("l0").setAttribute("class", "link");
			document.getElementById("lm1").setAttribute("class", "link");
		});
		$('#l3').mouseover(function(){
			$('#piano_m1, #piano_0, #piano_1, #piano_2, #piano_4, #piano_5, #piano_6').fadeOut();
			$('#piano_3').fadeIn();
			document.getElementById("l3").setAttribute("class", "active");
			document.getElementById("l6").setAttribute("class", "link");
			document.getElementById("l5").setAttribute("class", "link");
			document.getElementById("l4").setAttribute("class", "link");
			document.getElementById("l2").setAttribute("class", "link");
			document.getElementById("l1").setAttribute("class", "link");
			document.getElementById("l0").setAttribute("class", "link");
			document.getElementById("lm1").setAttribute("class", "link");
		});
		$('#l2').mouseover(function(){
			$('#piano_m1, #piano_0, #piano_1, #piano_3, #piano_4, #piano_5, #piano_6').fadeOut();
			$('#piano_2').fadeIn();
			document.getElementById("l2").setAttribute("class", "active");
			document.getElementById("l6").setAttribute("class", "link");
			document.getElementById("l5").setAttribute("class", "link");
			document.getElementById("l4").setAttribute("class", "link");
			document.getElementById("l3").setAttribute("class", "link");
			document.getElementById("l1").setAttribute("class", "link");
			document.getElementById("l0").setAttribute("class", "link");
			document.getElementById("lm1").setAttribute("class", "link");
		});
		$('#l1').mouseover(function(){
			$('#piano_m1, #piano_0, #piano_2, #piano_3, #piano_4, #piano_5, #piano_6').fadeOut();
			$('#piano_1').fadeIn();
			document.getElementById("l1").setAttribute("class", "active");
			document.getElementById("l6").setAttribute("class", "link");
			document.getElementById("l5").setAttribute("class", "link");
			document.getElementById("l4").setAttribute("class", "link");
			document.getElementById("l3").setAttribute("class", "link");
			document.getElementById("l2").setAttribute("class", "link");
			document.getElementById("l0").setAttribute("class", "link");
			document.getElementById("lm1").setAttribute("class", "link");
		});
		$('#l0').mouseover(function(){
			$('#piano_m1, #piano_1, #piano_2, #piano_3, #piano_4, #piano_5, #piano_6').fadeOut();
			$('#piano_0').fadeIn();
			document.getElementById("l0").setAttribute("class", "active");
			document.getElementById("l6").setAttribute("class", "link");
			document.getElementById("l5").setAttribute("class", "link");
			document.getElementById("l4").setAttribute("class", "link");
			document.getElementById("l3").setAttribute("class", "link");
			document.getElementById("l2").setAttribute("class", "link");
			document.getElementById("l1").setAttribute("class", "link");
			document.getElementById("lm1").setAttribute("class", "link");
		});
		$('#lm1').mouseover(function(){
			$('#piano_0, #piano_1, #piano_2, #piano_3, #piano_4, #piano_5, #piano_6').fadeOut();
			$('#piano_m1').fadeIn();
			document.getElementById("lm1").setAttribute("class", "active");
			document.getElementById("l6").setAttribute("class", "link");
			document.getElementById("l5").setAttribute("class", "link");
			document.getElementById("l4").setAttribute("class", "link");
			document.getElementById("l3").setAttribute("class", "link");
			document.getElementById("l2").setAttribute("class", "link");
			document.getElementById("l1").setAttribute("class", "link");
			document.getElementById("l0").setAttribute("class", "link");
		});
	}
	else {
		$('#piano_m1, #piano_1, #piano_2, #piano_3, #piano_4, #piano_5, #piano_6').fadeOut(0);
		$('#l6').mouseover(function(){
			$('#piano_m1, #piano_0, #piano_1, #piano_2, #piano_3, #piano_4, #piano_5').fadeOut(400);
			$('#piano_6').fadeIn(400);
			document.getElementById("l6").setAttribute("class", "active");
			document.getElementById("l5").setAttribute("class", "link");
			document.getElementById("l4").setAttribute("class", "link");
			document.getElementById("l3").setAttribute("class", "link");
			document.getElementById("l2").setAttribute("class", "link");
			document.getElementById("l1").setAttribute("class", "link");
			document.getElementById("l0").setAttribute("class", "link");
			document.getElementById("lm1").setAttribute("class", "link");
		});
		$('#l5').mouseover(function(){
			$('#piano_m1, #piano_0, #piano_1, #piano_2, #piano_3, #piano_4, #piano_6').fadeOut(400);
			$('#piano_5').fadeIn(400);
			document.getElementById("l5").setAttribute("class", "active");
			document.getElementById("l6").setAttribute("class", "link");
			document.getElementById("l4").setAttribute("class", "link");
			document.getElementById("l3").setAttribute("class", "link");
			document.getElementById("l2").setAttribute("class", "link");
			document.getElementById("l1").setAttribute("class", "link");
			document.getElementById("l0").setAttribute("class", "link");
			document.getElementById("lm1").setAttribute("class", "link");
		});
		$('#l4').mouseover(function(){
			$('#piano_m1, #piano_0, #piano_1, #piano_2, #piano_3, #piano_5, #piano_6').fadeOut(400);
			$('#piano_4').fadeIn(400);
			document.getElementById("l4").setAttribute("class", "active");
			document.getElementById("l6").setAttribute("class", "link");
			document.getElementById("l5").setAttribute("class", "link");
			document.getElementById("l3").setAttribute("class", "link");
			document.getElementById("l2").setAttribute("class", "link");
			document.getElementById("l1").setAttribute("class", "link");
			document.getElementById("l0").setAttribute("class", "link");
			document.getElementById("lm1").setAttribute("class", "link");
		});
		$('#l3').mouseover(function(){
			$('#piano_m1, #piano_0, #piano_1, #piano_2, #piano_4, #piano_5, #piano_6').fadeOut(400);
			$('#piano_3').fadeIn(400);
			document.getElementById("l3").setAttribute("class", "active");
			document.getElementById("l6").setAttribute("class", "link");
			document.getElementById("l5").setAttribute("class", "link");
			document.getElementById("l4").setAttribute("class", "link");
			document.getElementById("l2").setAttribute("class", "link");
			document.getElementById("l1").setAttribute("class", "link");
			document.getElementById("l0").setAttribute("class", "link");
			document.getElementById("lm1").setAttribute("class", "link");
		});
		$('#l2').mouseover(function(){
			$('#piano_m1, #piano_0, #piano_1, #piano_3, #piano_4, #piano_5, #piano_6').fadeOut(400);
			$('#piano_2').fadeIn(400);
			document.getElementById("l2").setAttribute("class", "active");
			document.getElementById("l6").setAttribute("class", "link");
			document.getElementById("l5").setAttribute("class", "link");
			document.getElementById("l4").setAttribute("class", "link");
			document.getElementById("l3").setAttribute("class", "link");
			document.getElementById("l1").setAttribute("class", "link");
			document.getElementById("l0").setAttribute("class", "link");
			document.getElementById("lm1").setAttribute("class", "link");
		});
		$('#l1').mouseover(function(){
			$('#piano_m1, #piano_0, #piano_2, #piano_3, #piano_4, #piano_5, #piano_6').fadeOut(400);
			$('#piano_1').fadeIn(400);
			document.getElementById("l1").setAttribute("class", "active");
			document.getElementById("l6").setAttribute("class", "link");
			document.getElementById("l5").setAttribute("class", "link");
			document.getElementById("l4").setAttribute("class", "link");
			document.getElementById("l3").setAttribute("class", "link");
			document.getElementById("l2").setAttribute("class", "link");
			document.getElementById("l0").setAttribute("class", "link");
			document.getElementById("lm1").setAttribute("class", "link");
		});
		$('#l0').mouseover(function(){
			$('#piano_m1, #piano_1, #piano_2, #piano_3, #piano_4, #piano_5, #piano_6').fadeOut(400);
			$('#piano_0').fadeIn(400);
			document.getElementById("l0").setAttribute("class", "active");
			document.getElementById("l6").setAttribute("class", "link");
			document.getElementById("l5").setAttribute("class", "link");
			document.getElementById("l4").setAttribute("class", "link");
			document.getElementById("l3").setAttribute("class", "link");
			document.getElementById("l2").setAttribute("class", "link");
			document.getElementById("l1").setAttribute("class", "link");
			document.getElementById("lm1").setAttribute("class", "link");
		});
		$('#lm1').mouseover(function(){
			$('#piano_0, #piano_1, #piano_2, #piano_3, #piano_4, #piano_5, #piano_6').fadeOut(400);
			$('#piano_m1').fadeIn(400);
			document.getElementById("lm1").setAttribute("class", "active");
			document.getElementById("l6").setAttribute("class", "link");
			document.getElementById("l5").setAttribute("class", "link");
			document.getElementById("l4").setAttribute("class", "link");
			document.getElementById("l3").setAttribute("class", "link");
			document.getElementById("l2").setAttribute("class", "link");
			document.getElementById("l1").setAttribute("class", "link");
			document.getElementById("l0").setAttribute("class", "link");
		});
	}
}

/* =Mouse Over Link Due() per Lido > Futuro
-------------------------------------------------------------- */
function mouseoverLinkDue(){
	/*document.getElementById("imgB").setAttribute("class", "");
	document.getElementById("imgC").setAttribute("class", "");
	document.getElementById("imgD").setAttribute("class", "");
	document.getElementById("imgE").setAttribute("class", "");
	document.getElementById("imgF").setAttribute("class", "");
	document.getElementById("imgG").setAttribute("class", "");
	document.getElementById("imgH").setAttribute("class", "");
	document.getElementById("imgI").setAttribute("class", "");
	document.getElementById("imgL").setAttribute("class", "");
	document.getElementById("imgM").setAttribute("class", "");*/
	$('.overImgB').mouseover(function(){
		$('ul.lista li').removeClass("link");
		$('#imgB').addClass("link");
	});
	$('.overImgC').mouseover(function(){
		$('ul.lista li').removeClass("link");
		$('#imgC').addClass("link");
	});
	$('.overImgD').mouseover(function(){
		$('ul.lista li').removeClass("link");
		$('#imgD').addClass("link");
	});
	$('.overImgE').mouseover(function(){
		$('ul.lista li').removeClass("link");
		$('#imgE').addClass("link");
	});
	$('.overImgF').mouseover(function(){
		$('ul.lista li').removeClass("link");
		$('#imgF').addClass("link");
	});
	$('.overImgG').mouseover(function(){
		$('ul.lista li').removeClass("link");
		$('#imgG').addClass("link");
	});
	$('.overImgH').mouseover(function(){
		$('ul.lista li').removeClass("link");
		$('#imgH').addClass("link");
	});
	$('.overImgI').mouseover(function(){
		$('ul.lista li').removeClass("link");
		$('#imgI').addClass("link");
	});
	$('.overImgL').mouseover(function(){
		$('ul.lista li').removeClass("link");
		$('#imgL').addClass("link");
	});
	$('.overImgM').mouseover(function(){
		$('ul.lista li').removeClass("link");
		$('#imgM').addClass("link");		
	});
}

$(document).ready(function(){
						   
	//IE6<
	if($.browser.msie && parseFloat($.browser.version) < 7){
		$(document).pngFix()
	}
						   
	//IE7>
	else if($.browser.msie && parseFloat($.browser.version) >= 7){
		$.preloadCssImages();				   
	}
	
	//ALTRI
	{
		$.preloadCssImages();			   
	}

/* =Splash
-------------------------------------------------------------- */	
	if ($('#splash').length > 0)
	{
		//IE6<
		if($.browser.msie && parseFloat($.browser.version) < 7){
			//alert('Explorer 6');
		}
		
		//IE7>
		else if($.browser.msie && parseFloat($.browser.version) >= 7){
			$('#logo').hide().fadeIn(750);
			$('#lang').hide().delay(750).fadeIn(750);
		}
		
		//ALTRI
		else
		{
			$('#logo').hide().delay(300).fadeIn(3000);
			$('#lang').hide().delay(1500).fadeIn(3000);
			$('#lingue').hide();
			
			//Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state)
			$("#apri_lingue").click(function(){
				$(this).toggleClass("active").next().slideToggle("slow");
				$('#freccia').toggleClass("open");
				$('#scelta_lingua').attr('display','none');
				
				return false; //Prevent the browser jump to the link anchor
			});
		}
		
	}
		
	
/* =Home
-------------------------------------------------------------- */	
	else if ($('#home').length > 0)
	{
		//IE6<
		if($.browser.msie && parseFloat($.browser.version) < 7){
			//alert('Explorer 6');
		}
		
		//IE7>
		else if($.browser.msie && parseFloat($.browser.version) >= 7){
			//$('#content_background').delay(750).fadeOut(750);
		}
		
		//ALTRI
		else{
			//$('#content_background').delay(750).fadeOut(3000);
		}
		
	}
	
/* =Des Bains Features
-------------------------------------------------------------- */	
	else if ($('#desbains-features').length > 0)
	{
		//IE6<
		if($.browser.msie && parseFloat($.browser.version) < 7){
			//alert('Explorer 6');
		}
		
		//IE7>
		else if($.browser.msie && parseFloat($.browser.version) >= 7){
			//$('#content_background').fadeOut(750);
			$('#scelta_lingua').hide().delay(750).fadeIn(750);
			$('#link01').hide().delay(750).fadeIn(750);
			
			$('#link01').click(function() {
				$('#content_popup').fadeIn('1500');
    			$('#content').fadeOut('700');
    		return false;
  			});
  			$('#link02').click(function() {
				$('#content_popup').fadeIn('1500');
    			$('#content').fadeOut('700');
    		return false;
  			});
  			$('#link03').click(function() {
				$('#content_popup').fadeIn('1500');
    			$('#content').fadeOut('700');
    		return false;
  			});
  			
  			$('#content_popup').click(function() {
				$('#content').fadeIn('1500');
    			$('#content_popup').delay('500').fadeOut('1000');
    		return false;
  			});
		}
		
		//ALTRI
		else{
			//$('#content_background').fadeOut(750);
			$('#scelta_lingua').hide().delay(1500).fadeIn(3000);
			$('#link01').hide().delay(1000).fadeIn(1500);
			
			$('#link01').click(function() {
				$('#content_popup').fadeIn('3500');
    			$('#content').fadeOut('1500');
    		return false;
  			});
  			$('#link02').click(function() {
				$('#content_popup').fadeIn('3500');
    			$('#content').fadeOut('1500');
    		return false;
  			});
  			$('#link03').click(function() {
				$('#content_popup').fadeIn('3500');
    			$('#content').fadeOut('1500');
    		return false;
  			});
  			
  			$('#content_popup').click(function() {
				$('#content').fadeIn('3500');
    			$('#content_popup').delay('1000').fadeOut('1500');
    		return false;
  			});
		}
		
	}
	
/* =Lido Storia (Accordion)
-------------------------------------------------------------- */	
	else if ($('#lido-storia').length > 0)
	{
		//IE6<
		if($.browser.msie && parseFloat($.browser.version) < 7){
			//alert('Explorer 6');
		}
		
		//IE7>
		else if($.browser.msie && parseFloat($.browser.version) >= 7){
			$('#content_background').fadeOut(750);
			$('#testo').hide();
			
			//Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state)
			$("#testo_titolo").click(function(){
				$(this).toggleClass("active").next().slideToggle("slow");
				$('#freccia').toggleClass("open");
				return false; //Prevent the browser jump to the link anchor
			});
		}
		
		//ALTRI
		else{
			$('#content_background').fadeOut(750);
			$('#testo').show();

			//Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state)
			$("#testo_titolo").click(function(){
				$(this).toggleClass("active").next().slideToggle("slow");
				$('#freccia').toggleClass("open");
				return false; //Prevent the browser jump to the link anchor
			});

		}
		
	}

/* =Lido Futuro
-------------------------------------------------------------- */	
	else if ($('#lido-neighbors').length > 0) {
		//IE6<
		if($.browser.msie && parseFloat($.browser.version) < 7){
			//alert('Explorer 6');
		}
		
		//IE7>
		else if($.browser.msie && parseFloat($.browser.version) >= 7){
			$('#content_background').delay(750).fadeOut(750);
			mouseoverLinkDue();
		}
		
		//ALTRI
		else
		{
			$('#content_background').delay(1500).fadeOut(1500);
			mouseoverLinkDue();
		}
		
	}
		
/* =Des Bains Storia (Accordion)
-------------------------------------------------------------- */	
	else if ($('#desbains-storia').length > 0)
	{
		//IE6<
		if($.browser.msie && parseFloat($.browser.version) < 7){
			//alert('Explorer 6');
		}
		
		//IE7>
		else if($.browser.msie && parseFloat($.browser.version) >= 7){
			$('#content_background').fadeOut(750);
			$('#testo').hide();
			
			//Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state)
			$("#testo_titolo").click(function(){
				$(this).toggleClass("active").next().slideToggle("slow");
				$('#freccia').toggleClass("open");
				return false; //Prevent the browser jump to the link anchor
			});
		}
		
		//ALTRI
		else{
			$('#content_background').fadeOut(750);
			$('#testo').show();

			//Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state)
			$("#testo_titolo").click(function(){
				$(this).toggleClass("active").next().slideToggle("slow");
				$('#freccia').toggleClass("close");
				return false; //Prevent the browser jump to the link anchor
			});

		}
		
	}

/* =Des Bains - Rinascita - Overview
-------------------------------------------------------------- */	
	else if ($('#desbains-rinascita-overview').length > 0) {
		//IE6<
		if($.browser.msie && parseFloat($.browser.version) < 7){
			//alert('Explorer 6');
		}
		
		//IE7>
		else if($.browser.msie && parseFloat($.browser.version) >= 7){
			$('#content_background').delay(750).fadeOut(750);
			mouseoverLinkUno()
		}
		
		//ALTRI
		else
		{
			$('#content_background').delay(1500).fadeOut(3000);
			mouseoverLinkUno()
		}
		
	}

/* =Progetto - Residenze - Pianta
-------------------------------------------------------------- */	
	else if ($('#progetto-residenze-pianta').length > 0) {
		//IE6<
		if($.browser.msie && parseFloat($.browser.version) < 7){
			//alert('Explorer 6');
		}
		
		//IE7>
		else if($.browser.msie && parseFloat($.browser.version) >= 7){
			$('#content_background').delay(750).fadeOut(750);
			mouseoverLinkUno()
		}
		
		//ALTRI
		else
		{
			$('#content_background').delay(1500).fadeOut(3000);
			mouseoverLinkUno()
		}
		
	}

/* =Progetto - Residenze - Piani dettaglio
-------------------------------------------------------------- */	
	else if ($('#progetto-piani-dettaglio').length > 0) {
		//IE6<
		if($.browser.msie && parseFloat($.browser.version) < 7){
			//alert('Explorer 6');
		}
		
		//IE7>
		else if($.browser.msie && parseFloat($.browser.version) >= 7){
			//$('#content_background').delay(750).fadeOut(3000);
			mouseoverLink()
		}
		
		//ALTRI
		else
		{
			//$('#content_background').delay(1500).fadeOut(3000);
			mouseoverLink()
		}
		
	}
	
/* =Team
-------------------------------------------------------------- */	
	else if ($('#team').length > 0) {
		//IE6<
		if($.browser.msie && parseFloat($.browser.version) < 7){
			//alert('Explorer 6');
		}
		
		//IE7>
		else if($.browser.msie && parseFloat($.browser.version) >= 7){
			//$('#content_background').fadeOut(750);
		}
		
		//ALTRI
		else
		{
			//$('#content_background').fadeOut(1500);
		}
		
	}

/* =Fade In del content - per ogni pagina
-------------------------------------------------------------- */
	else {
		//IE6<
		if($.browser.msie && parseFloat($.browser.version) < 7){
			//alert('Explorer 6');
		}
		
		//IE7>
		else if($.browser.msie && parseFloat($.browser.version) >= 7){
			$('#content_background').fadeOut(750);
		}
		
		//ALTRI
		else
		{
			$('#content_background').fadeOut(1500);
		}
		
	}
});

