function centralayer_home()
{
	larghezzafinestra = document.body.offsetWidth;
	sposta = (larghezzafinestra - 515)/2;
	document.getElementById("liv1").style.left = (Math.max(155,sposta)+ 20) +"px";
	document.getElementById("liv2").style.left = (Math.max(155,sposta)- 20) +"px";
	document.getElementById("liv3").style.left = (Math.max(155,sposta)+ 220) +"px";
	document.getElementById("liv4").style.left = (Math.max(155,sposta)+ 48) +"px";
	document.getElementById("liv5").style.left = (Math.max(155,sposta)+ 173) +"px";
	document.getElementById("liv6").style.left = (Math.max(155,sposta)+ 277) +"px";
	document.getElementById("liv7").style.left = Math.max(155,sposta) + "px";
	document.getElementById("liv12").style.left = (Math.max(155,sposta)+ 550) +"px";
	//alert(document.body.offsetWidth);
}

function centralayer()
{
	larghezzafinestra = document.body.offsetWidth;
	sposta = (larghezzafinestra - 495)/2;
	document.getElementById("liv1").style.left = (Math.max(155,sposta)+ 20) +"px";
	document.getElementById("liv2").style.left = (Math.max(155,sposta)- 10) +"px";
	document.getElementById("liv3").style.left = (Math.max(155,sposta)+ 220) +"px";
	document.getElementById("liv4").style.left = (Math.max(155,sposta)+ 44) +"px";
	document.getElementById("liv5").style.left = (Math.max(155,sposta)+ 169) +"px";
	document.getElementById("liv6").style.left = (Math.max(155,sposta)+ 273) +"px";
	document.getElementById("liv7").style.left = Math.max(155,sposta) + "px";
	document.getElementById("liv12").style.left = (Math.max(155,sposta)+ 550) +"px";
	//alert(document.body.offsetWidth);
}
function centralayer_interne2()
{
	larghezzafinestra = document.body.offsetWidth;
	sposta = (larghezzafinestra - 495)/2;
	document.getElementById("liv1").style.left = (Math.max(155,sposta)+ 20) +"px";
	document.getElementById("liv2").style.left = (Math.max(155,sposta)- 20) +"px";
	document.getElementById("liv3").style.left = (Math.max(155,sposta)+ 220) +"px";
	document.getElementById("liv4").style.left = (Math.max(155,sposta)+ 44) +"px";
	document.getElementById("liv5").style.left = (Math.max(155,sposta)+ 169) +"px";
	document.getElementById("liv6").style.left = (Math.max(155,sposta)+ 273) +"px";
	document.getElementById("liv7").style.left = Math.max(155,sposta) + "px";
	document.getElementById("liv12").style.left = (Math.max(155,sposta)+ 550) +"px";
	//alert(document.body.offsetWidth);
}
function centralayer_eng_home()
{
	larghezzafinestra = document.body.offsetWidth;
	sposta = (larghezzafinestra - 525)/2;
	document.getElementById("liv1").style.left = (Math.max(240,sposta)+ 33) +"px";
	document.getElementById("liv2").style.left = (Math.max(240,sposta)+ 4) +"px";
	document.getElementById("liv3").style.left = (Math.max(240,sposta)+ 200) +"px";
	document.getElementById("liv4").style.left = (Math.max(240,sposta)+ 88) +"px";
	document.getElementById("liv5").style.left = (Math.max(240,sposta)+ 213) +"px";
	document.getElementById("liv6").style.left = (Math.max(240,sposta)+ 292) +"px";
	document.getElementById("liv7").style.left = Math.max(240,sposta) + 40 +"px";
	document.getElementById("liv12").style.left = (Math.max(240,sposta)+ 520) +"px";
	//alert(document.body.offsetWidth);
}
function centralayer_eng()
{
	larghezzafinestra = document.body.offsetWidth;
	sposta = (larghezzafinestra - 480)/2;
	document.getElementById("liv1").style.left = (Math.max(240,sposta)+ 33) +"px";
	document.getElementById("liv2").style.left = (Math.max(240,sposta)+ 4) +"px";
	document.getElementById("liv3").style.left = (Math.max(240,sposta)+ 200) +"px";
	document.getElementById("liv4").style.left = (Math.max(240,sposta)+ 88) +"px";
	document.getElementById("liv5").style.left = (Math.max(240,sposta)+ 213) +"px";
	document.getElementById("liv6").style.left = (Math.max(240,sposta)+ 292) +"px";
	document.getElementById("liv7").style.left = Math.max(240,sposta) + 44 +"px";
	document.getElementById("liv12").style.left = (Math.max(240,sposta)+ 520) +"px";
	//alert(document.body.offsetWidth);
}
function centralayer_interne()
{
	larghezzafinestra = document.body.offsetWidth;
	sposta = (larghezzafinestra - 570)/2;
	document.getElementById("liv4").style.left = Math.max(155,sposta) + 35 +"px";
	document.getElementById("liv5").style.left = (Math.max(155,sposta)+ 45) +"px";
	document.getElementById("liv6").style.left = (Math.max(155,sposta)+ 79) +"px";
	document.getElementById("liv7").style.left = (Math.max(155,sposta)+ 30) +"px";
	document.getElementById("liv8").style.left = (Math.max(155,sposta)+ 204) +"px";
	document.getElementById("liv9").style.left = (Math.max(155,sposta)+ 265) +"px";
	document.getElementById("liv10").style.left = (Math.max(155,sposta)+ 308) +"px";
	document.getElementById("liv11").style.left = (Math.max(155,sposta)+ 44) +"px";
	document.getElementById("liv13").style.left = (Math.max(155,sposta)+ 503) +"px";
	document.getElementById("liv12").style.left = (Math.max(155,sposta)+ 590) +"px";
	//alert(document.body.offsetWidth);
}
function centralayer_eng_interne()
{
	larghezzafinestra = document.body.offsetWidth;
	sposta = (larghezzafinestra - 390)/2;
	document.getElementById("liv4").style.left = Math.max(240,sposta) +"px";
	document.getElementById("liv5").style.left = (Math.max(240,sposta)- 20) +"px";
	document.getElementById("liv6").style.left = (Math.max(240,sposta)+ 44) +"px";
	document.getElementById("liv7").style.left = (Math.max(240,sposta)- 44) +"px";
	document.getElementById("liv8").style.left = (Math.max(240,sposta)+ 169) +"px";
	document.getElementById("liv9").style.left = (Math.max(240,sposta)+ 163) +"px";
	document.getElementById("liv10").style.left = (Math.max(240,sposta)+ 248) +"px";
	document.getElementById("liv11").style.left = (Math.max(240,sposta)+ 44) +"px";
	document.getElementById("liv13").style.left = (Math.max(240,sposta)+ 383) +"px";
	document.getElementById("liv12").style.left = (Math.max(240,sposta)+ 470) +"px";
	//alert(document.body.offsetWidth);
}


function centralayer_hb(){
	larghezzafinestra = document.body.offsetWidth;
	sposta = (larghezzafinestra - 780)/2;
//	alert("pippo");
//	brName=navigator.appName;

	 if (navigator.appName == "Netscape"){
				document.getElementById("liv4").style.left = (sposta + 273) +"px"; /*ON VOCE INVESTOR*/	
				document.getElementById("liv1").style.left = (sposta + 273) +"px"; /*SOTTOMENU Investor*/
				document.getElementById("liv5").style.left = (sposta + 412) +"px"; /*ON VOCE Ufficio Stampa*/		
				document.getElementById("liv2").style.left = (sposta + 261) +"px"; /*SOTTOMENU UFFICIO STAMPA*/
				document.getElementById("liv6").style.left = (sposta + 517) +"px"; /* VOCE  Carriera*/	
				document.getElementById("liv3").style.left = (sposta + 493) +"px";/*SOTTOMENU Carriera*/
				document.getElementById("liv7").style.left = (sposta + 143) +"px"; /* menu primo livello*/
				document.getElementById("liv12").style.left = (sposta + 713) +"px"; /* LINGUA */
				document.getElementById("liv8").style.left = (sposta + 10) +"px"; /* OFFERTE SPECIALI*/ 		
	}else{	
				document.getElementById("liv4").style.left = (sposta + 263) +"px"; /*ON VOCE INVESTOR*/	
				document.getElementById("liv1").style.left = (sposta + 263) +"px"; /*SOTTOMENU Investor*/
				document.getElementById("liv5").style.left = (sposta + 402) +"px"; /*ON VOCE Ufficio Stampa*/		
				document.getElementById("liv2").style.left = (sposta + 251) +"px"; /*SOTTOMENU UFFICIO STAMPA*/
				document.getElementById("liv6").style.left = (sposta + 507) +"px"; /* VOCE  Carriera*/	
				document.getElementById("liv3").style.left = (sposta + 483) +"px";/*SOTTOMENU Carriera*/
				document.getElementById("liv7").style.left = (sposta + 133) +"px"; /* menu primo livello*/
				document.getElementById("liv12").style.left = (sposta + 703) +"px"; /* LINGUA */
				document.getElementById("liv8").style.left = (sposta) +"px"; /* OFFERTE SPECIALI*/ 		

}

}

function centralayer_hp(){
	larghezzafinestra = document.body.offsetWidth;
	sposta = (larghezzafinestra - 780)/2;
//	brName=navigator.appName;

	 if (navigator.appName == "Netscape"){
				document.getElementById("liv4").style.left = (sposta + 273) +"px"; /*ON VOCE INVESTOR*/	
				document.getElementById("liv1").style.left = (sposta + 273) +"px"; /*SOTTOMENU Investor*/
				document.getElementById("liv5").style.left = (sposta + 412) +"px"; /*ON VOCE Ufficio Stampa*/		
				document.getElementById("liv2").style.left = (sposta + 261) +"px"; /*SOTTOMENU UFFICIO STAMPA*/
				document.getElementById("liv6").style.left = (sposta + 517) +"px"; /* VOCE  Carriera*/	
				document.getElementById("liv3").style.left = (sposta + 493) +"px";/*SOTTOMENU Carriera*/
				document.getElementById("liv7").style.left = (sposta + 143) +"px"; /* menu primo livello*/
				document.getElementById("liv12").style.left = (sposta + 713) +"px"; /* LINGUA */
				document.getElementById("liv8").style.left = (sposta + 10) +"px"; /* OFFERTE SPECIALI*/ 		

	}else{	
				document.getElementById("liv4").style.left = (sposta + 263) +"px"; /*ON VOCE INVESTOR*/	
				document.getElementById("liv1").style.left = (sposta + 263) +"px"; /*SOTTOMENU Investor*/
				document.getElementById("liv5").style.left = (sposta + 402) +"px"; /*ON VOCE Ufficio Stampa*/		
				document.getElementById("liv2").style.left = (sposta + 251) +"px"; /*SOTTOMENU UFFICIO STAMPA*/
				document.getElementById("liv6").style.left = (sposta + 507) +"px"; /* VOCE  Carriera*/	
				document.getElementById("liv3").style.left = (sposta + 483) +"px";/*SOTTOMENU Carriera*/
				document.getElementById("liv7").style.left = (sposta + 133) +"px"; /* menu primo livello*/
				document.getElementById("liv12").style.left = (sposta + 703) +"px"; /* LINGUA */
				document.getElementById("liv8").style.left = (sposta + 10) +"px"; /* OFFERTE SPECIALI*/ 		

				
}

}

