<!--
var nn=document.layers?true:false;
var N6=navigator.userAgent.toLowerCase().indexOf("gecko")!=-1?true:false
var op=navigator.userAgent.toLowerCase().indexOf("opera")!=-1?true:false
var topmargin=177,menuwidth=660;
var homekeylayer=null;
var tabs = new Array("<a href=storia.php><img src=script/tasto.gif  border=0></a>")
var menus = new Array();
var menuheights = new Array(0,0,0,40,0);

var voci=new Array("");
	voci[0]=new Array("","Profilo","Storia","Comunicazione")
	

var links=new Array();
	links[0]=new Array("","profilo.php","storia.php","comunicazione.php")
	

var MenuLength=menuwidth*voci.length+2*voci.length-18;
var BrowserWidth=nn||op?window.innerWidth:N6?document.width:document.body.clientWidth;
var leftmargin=parseInt((BrowserWidth-MenuLength)/2);

if (nn){
	document.write("<LAYER NAME='home' POSITION='absolute' TOP='"+topmargin+"' LEFT='"+eval(leftmargin-28)+"' WIDTH='16' HEIGHT='17'>           </LAYER>");
	for (i in tabs){
		document.write("<LAYER NAME='top"+tabs[i]+"' POSITION='absolute' TOP='"+topmargin+"' LEFT='"+eval(leftmargin+i*menuwidth+2*i)+"' WIDTH='140' HEIGHT='17' BACKGROUND='/img/tab.gif' onMouseOver=\"menus["+i+"].visibility='visible'\" onMouseOut=\"menus["+i+"].visibility='hidden'\" CLASS='mnuNscb'>&nbsp;&nbsp;&nbsp;&nbsp;<A HREF='#' CLASS='menuNNb'>"+tabs[i]+"</A></LAYER>");
		document.write("<LAYER NAME='menu"+i+"' POSITION='absolute' TOP='"+eval(16+topmargin)+"' LEFT='"+eval(leftmargin+i*menuwidth+2*i)+"' WIDTH='140' HEIGHT='"+eval(129+menuheights[i])+"' Z-INDEX='10' BACKGROUND='/img/"+tabs[i].toLowerCase()+"sfondo.gif' VISIBILITY='hidden' onMouseOver=\"this.visibility='visible'\" onMouseOut=\"this.visibility='hidden'\" CLASS='menuNN'>");
		for (j in voci[i])
			document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF='"+links[i][j]+"' CLASS='menuNN'>"+voci[i][j]+"</A><BR>");
		document.write("</LAYER>");
		menus[i]=eval(document.layers["menu"+i]);
		}
	document.write("<LAYER NAME='homekey' POSITION='absolute' TOP='"+topmargin+"' LEFT='"+eval(leftmargin-28)+"' WIDTH='65' HEIGHT='17' VISIBILITY='hidden' Z-INDEX='10'></LAYER>");
	homekeylayer=document.layers.homekey;
		}
	else{
	document.writeln("<DIV ID='home' STYLE='position:absolute;top:"+topmargin+";left:"+eval(leftmargin-28)+";width:16;height:17;background-image:url(\"/img/tabhome.gif\");cursor:hand' CLASS='menuIEb' onMouseOver=homekeylayer.visibility='visible' onMouseOut=homekeylayer.visibility='hidden'>&nbsp;</DIV>");
	for (i in tabs){
		document.writeln("<DIV ID='top"+tabs[i]+"' STYLE='position:absolute;top:"+topmargin+";left:"+eval(leftmargin+i*menuwidth+5*i)+";width:140;height:17;cursor:hand' onMouseOver=menus["+i+"].visibility='visible' onMouseOut=menus["+i+"].visibility='hidden' CLASS='menuIEb'>&nbsp;&nbsp;&nbsp;&nbsp;"+tabs[i]+"</DIV>");
		document.writeln("<DIV ID='menu"+0+"' STYLE='position:absolute;top:"+eval(15+topmargin)+";left:"+eval(leftmargin+i*menuwidth+10*i)+";width:100;height:"+eval(82+menuheights[i])+";background-image:url(\"sfond-azz.gif\");visibility:hidden;z-index:2' onMouseOver=menus["+i+"].visibility='visible' onMouseOut=menus["+i+"].visibility='hidden' CLASS='menuIE'>");
		for (j in voci[i])
			document.writeln("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF='"+links[i][j]+"' CLASS='menuIE'>"+voci[i][j]+"</A> <BR>")
		document.writeln(" <BR></DIV>")
		}
	document.writeln("<DIV ID='homekey' STYLE='position:absolute;top:"+topmargin+";left:"+eval(leftmargin-28)+";width:65;height:17;background-image:url(\"/img/keyhome.gif\");cursor:hand;visibility:hidden;z-index:10' CLASS='menuIEb' onMouseOver=homekeylayer.visibility='visible' onMouseOut=homekeylayer.visibility='hidden'></DIV>");
	N6?setTimeout("LeggiLivelli()",50):LeggiLivelli(); // temporizzata per Netscape6
		}

function LeggiLivelli()
	{
	for (i in tabs)
		N6?menus[i]=document.getElementById('menu'+i).style:menus[i]=eval(document.all["menu"+i].style);
	N6?homekeylayer=document.getElementById('homekey').style:homekeylayer=eval(document.all.homekey.style);

}
//-->

