	var ron ="#FB812B" ; // Colore al MouseOver
	var roff="#132AB6" ;   // Colore di default
	var leftmargin=104; // Distanza dal margine sinistro della pagina
	var topmargin=96; // Distanza dal margine superiore della pagina
	
	if (screen.width <= 850)
		leftmargin = 25;

	/* L'array seguente contiene i testi che verranno visualizzati dal menu.
	* Il primo elemento degli array e' il nome del menu, gli elementi successivi sono i links contenuti nel singolo menu.
	* Il tasto "Home" non compare in questo array perche' viene inserito di default come primo elemento */
	var voci=new Array();
		voci[0]=new Array("Azienda","Presentazione","Dove&nbsp;Siamo", "Esperienza");
		voci[1]=new Array("Produzione", "Prodotti","Ricerca&nbsp;Prodotti", "Servizi");
		voci[2]=new Array("Contatti","Info","Richiesta Offerta");
		voci[3]=new Array("Qualit&agrave","Certificazioni","Segnalazioni");
		voci[4]=new Array("Area Clienti","Accedi","Registrazione");
		voci[5]=new Array("Utilit&agrave");
		voci[6]=new Array("Mappa");
		voci[7]=new Array("Links");
		
    //GMB
	var largh = new Array();
		largh[0]=new Array("98");
		largh[1]=new Array("100");
		largh[2]=new Array("95");
		largh[3]=new Array("90");
		largh[4]=new Array("90");
		largh[5]=new Array("80");
		largh[6]=new Array("70");
		largh[7]=new Array("65");
		
	//GMB	


	/* Questo array contiene invece i links che saranno aperti dalle singole voci dei sottomenu.
	* Da notare che il primo elemento degli array dev'essere una stringa vuota, infatti corrisponde non ad un link
	* da aprire, ma al titolo del sottomenu, cioe' al primo elemento dell'array "voci" */
	var links=new Array();
		links[0]=new Array("","presentazione.aspx?lang=IT","doveSiamo.aspx?lang=IT", "esperienza.aspx?lang=IT");
		links[1]=new Array("","prodotti.aspx?lang=IT","ricercaProdotti.aspx?lang=IT", "servizi.aspx?lang=IT");
		links[2]=new Array("","info.aspx?lang=IT","richiestaOfferta.aspx?lang=IT");
		links[3]=new Array("","certificazioni.aspx?lang=IT","segnalazioniProblemi.aspx?lang=IT");
		links[4]=new Array("","logUser.aspx?lang=IT","registrazioneit.aspx");
		links[5]=new Array("javascript: apri(1);");
		links[6]=new Array("javascript: apri(2);");
		links[7]=new Array("javascript: apri(3);");
		
		
		
	/* Ultimo array.
	* Contiene i testi che saranno visualizzati nella barra di stato del browser quando il mouse e' sopra una voce del menu 
	* Anche in questo caso il primo elemento degli array contiene il testo relativo alla voce principale dei sottomenu */
	var wst=new Array();
		wst[0]=new Array("Azienda", "Presentazione", "Dove Siamo", "Esperienza");
		wst[1]=new Array("Produzione", "Prodotti", "Ricerca Prodotti", "Servizi");
		wst[2]=new Array("Contatti", "Info", "Richiesta Offerta");
		wst[3]=new Array("Qualita'", "Certificazioni", "Segnalazioni");
		wst[4]=new Array("Area Clienti", "Accedi", "Registrazione");
		wst[5]=new Array("Utilita'");
		wst[6]=new Array("Mappa");
		wst[7]=new Array("Links");
		

	var nn=document.layers?true:false,conta=0,last=0;

	if (nn)
		{
		document.write("<LAYER NAME=mtop. position=absolute left="+leftmargin+" top="+topmargin+" width=50 height=25 clip=0,0,50,25 style='background-color:transparent;' visibility=visible onMouseOver=showdeps(last,false);mroll('mtop.') onMouseOut=unmroll('mtop.')>&nbsp;<A HREF='home.aspx?lang=IT' CLASS=clsMenuHead>&nbsp;Home</A></LAYER>");
		var lar = 50;  //GMB
		for (i=0;i<voci.length;i++)
			{
			lef = lar;  //GMB
			lar = parseInt(lar) + parseInt(largh[i]); //GMB
			var n=i;
			
			
			//document.writeln("<LAYER NAME=mtop"+n+". position=absolute left="+eval(leftmargin+50+largo*i)+" top="+topmargin+" width="+largo+" height=25 clip=0,0,"+largo+",15 style='background-color:transparent;' visibility=visible onMouseOver=MostraMenu("+i+");mroll('mtop"+i+".');conta++ onMouseOut=last="+i+";unmroll('mtop"+i+".');conta--><DIV ALIGN=center>&nbsp;<A HREF=javascript:mroll('mtop"+i+".') CLASS=menuNNb><I>"+voci[i][0]+"</I></A></DIV></LAYER>");
			//document.writeln("<LAYER NAME=mtop"+n+". position=absolute left="+eval(leftmargin+lef)+" top="+topmargin+" width="+largh[i]+" height=25 clip=0,0,"+largh[i]+",25 style='background-color:transparent;' visibility=visible onMouseOver=MostraMenu("+i+");mroll('mtop"+i+".');conta++ onMouseOut=last="+i+";unmroll('mtop"+i+".');conta--><DIV ALIGN=center>&nbsp;<A HREF=javascript:mroll('mtop"+i+".') CLASS=menuNNb><I><FONT face=Verdana size=2 color=white>"+voci[i][0]+"</FONT></I></A></DIV></LAYER>");
			
			if (links[i].length == 1)
				document.writeln("<LAYER NAME=mtop"+n+". position=absolute left="+eval(leftmargin+lef)+" top="+topmargin+" width="+largh[i]+" height=25 clip=0,0,"+largh[i]+",25 style='background-color:transparent;' visibility=visible onMouseOver=showdeps(last,false);mroll('mtop"+i+".') onMouseOut=unmroll('mtop"+i+".')>&nbsp;<A HREF='home.aspx?lang=IT' CLASS=clsMenuHead>Home</A></LAYER>");
			else
				document.writeln("<LAYER NAME=mtop"+n+". position=absolute left="+eval(leftmargin+lef)+" top="+topmargin+" width="+largh[i]+" height=25 clip=0,0,"+largh[i]+",25 style='background-color:transparent;' visibility=visible CLASS=clsMenuHead onMouseOver=MostraMenu("+i+");mroll('mtop"+i+".');conta++ onMouseOut=last="+i+";unmroll('mtop"+i+".');conta--><DIV ALIGN=center>&nbsp;<A HREF=javascript:mroll('mtop"+i+".')>"+voci[i][0]+"</A></DIV></LAYER>");

			
			
			for (l=1;l<voci[i].length;l++)
				{
				//document.writeln("<LAYER NAME=mdep"+i+"."+l+" position=absolute left="+eval(leftmargin+50+largo*i)+" top="+eval(topmargin+25*l)+" width="+largo+" height=15 clip=0,0,"+largo+",15 style='background-color:transparent;' visibility=hidden onMouseOver=mroll('mdep"+n+"."+l+"');conta++ onMouseOut=unmroll('mdep"+n+"."+l+"');conta-->&nbsp;<A HREF=javascript:mroll('mdep"+n+"."+l+"') onClick=vai('"+links[i][l]+"',"+i+","+l+") CLASS=menuNN>"+voci[i][l]+"</A></LAYER>");
				document.writeln("<LAYER NAME=mdep"+i+"."+l+" position=absolute left="+eval(leftmargin+lef)+" top="+eval(topmargin+25*l)+" width="+largh[i]+" height=25 clip=0,0,"+largh[i]+",25 style='background-color:transparent;' visibility=hidden CLASS=clsMenuHead onMouseOver=mroll('mdep"+n+"."+l+"');conta++ onMouseOut=unmroll('mdep"+n+"."+l+"');conta-->&nbsp;<A HREF=javascript:mroll('mdep"+n+"."+l+"') onClick=vai('"+links[i][l]+"',"+i+","+l+") >"+voci[i][l]+"</A></LAYER>");
				}
			}
		}
		else
		{
		document.write("<DIV ID=mtop. STYLE=\"position:absolute;left:"+leftmargin+";top:"+topmargin+";width:50;height:25;visibility:visible;vertical-align:middle;cursor:hand\" onMouseOver=showdeps(last,false);mroll('mtop.') onMouseOut=unmroll('mtop.')><A HREF='home.aspx?lang=IT' CLASS=clsMenuHead onFocus=this.blur()>&nbsp;<B>Home</B></A></DIV>");
		var lar = 50;  //GMB
		for (i=0;i<voci.length;i++)
			{
			lef = lar;  //GMB
			lar = parseInt(lar) + parseInt(largh[i]); //GMB
			var n=i;
			//document.writeln("<DIV ID=mtop"+n+". STYLE=\"position:absolute;left:"+eval(leftmargin+50+largo*i)+";top:"+topmargin+";width:"+largo+";height:25;visibility:visible;cursor:hand\" onMouseOver=MostraMenu("+n+");mroll('mtop"+n+".');conta++ onMouseOut=last="+n+";unmroll('mtop"+n+".');conta--><DIV ALIGN=center CLASS=menuIEb>&nbsp;<I><FONT face=Verdana size=1>"+voci[i][0]+"</FONT></I></DIV></DIV>");
			if (links[i].length == 1)
		   		document.write("<DIV ID=mtop"+n+". CLASS=clsMenuHead  STYLE=\"position:absolute;left:"+eval(leftmargin+lef)+";top:"+topmargin+";width:"+largh[i]+";height:25;visibility:visible;vertical-align:middle;cursor:hand\" onMouseOver=showdeps(last,false);mroll('mtop"+n+".') onMouseOut=unmroll('mtop"+n+".')><A HREF='" + links[i][0] + "' CLASS=clsMenuHead><DIV ALIGN=center onFocus=this.blur()>&nbsp;<B>"+voci[i][0]+"</B></A></DIV></DIV>");
			else
				document.writeln("<DIV ID=mtop"+n+". CLASS=clsMenuHead STYLE=\"position:absolute;left:"+eval(leftmargin+lef)+";top:"+topmargin+";width:"+largh[i]+";height:25;visibility:visible;vertical-align:middle;cursor:hand\" onMouseOver=MostraMenu("+n+");mroll('mtop"+n+".');conta++ onMouseOut=last="+n+";unmroll('mtop"+n+".');conta--><DIV ALIGN=center>&nbsp;<B>"+voci[i][0]+"</B></DIV></DIV>");

			for (l=1;l<voci[i].length;l++)
				{
				//document.writeln("<DIV ID=mdep"+i+"."+l+" STYLE=\"position:absolute;left:"+eval(leftmargin+50+largo*i)+";top:"+eval(topmargin+25*l)+";width:"+largo+";height:25;visibility:hidden;cursor:hand\" onMouseOver=;mroll('mdep"+n+"."+l+"');conta++ onMouseOut=unmroll('mdep"+n+"."+l+"');conta-- CLASS=menuIE onClick=vai('"+links[i][l]+"',"+i+","+l+")><FONT face=Verdana size=1>&nbsp;"+voci[i][l]+"</FONT></DIV>");
    			document.writeln("<DIV ID=mdep"+i+"."+l+" STYLE=\"position:absolute;left:"+eval(leftmargin+lef)+";top:"+eval(topmargin+25*l)+";width:"+largh[i]+";height:25;visibility:hidden;cursor:hand\" CLASS=clsMenuBody onMouseOver=;mroll('mdep"+n+"."+l+"');conta++ onMouseOut=unmroll('mdep"+n+"."+l+"');conta-- onClick=vai('"+links[i][l]+"',"+i+","+l+")>&nbsp;<B >"+voci[i][l]+"</B></DIV>");
				}
			}
		}

	timer=setInterval("NascondiMenu()",1000);

	function NascondiMenu()
		{
		if (conta==0)
			{
			coloratutti(true);
			timer=setTimeout("coloratutti(false)",200);
			timer=setTimeout("showdeps(last,false)",250);
			}
		}

	function coloratutti(col)
		{
		colore=col?ron:roff;
		for (i=0;i<voci.length;i++)
			for (j=1;j<voci[i].length;j++)
				{
			if (nn)
				document.layers["mdep"+i+"."+j].bgColor=colore;
			else
				if(document.all)
					document.all["mdep"+i+"."+j].style.background=colore;
					else
					document.getElementById('mdep'+i+"."+j).style.background=colore;
				}
		}

	function MostraMenu(n)
		{
		showdeps(last,false);
		showdeps(n,true);
		last=n;
		}

	function showdeps(n,act)
		{
		if (conta==0)
			{
			act?stat="visible":stat="hidden";
		if (nn)
			for (i=1;i<voci[n].length;i++)
				document.layers["mdep"+n+"."+i].visibility=stat;
		else
			for (i=1;i<voci[n].length;i++)
				if(document.all)
					document.all["mdep"+n+"."+i].style.visibility=stat;
					else
					document.getElementById('mdep'+n+"."+i).style.visibility=stat;
			}
		}


	function vai(dove,r,c)
		{
		lev=nn?document.layers["mdep"+r+"."+c]:(document.all)?document.all["mdep"+r+"."+c].style:document.getElementById("mdep"+r+"."+c).style;
		if (nn)
			{
			/*
			lev.bgColor=roff;
			timer=setTimeout("lev.bgColor=ron",50)
			timer=setTimeout("lev.bgColor=roff",100)
			timer=setTimeout("lev.bgColor=ron",150)
			timer=setTimeout("lev.bgColor=roff",200)
			timer=setTimeout("lev.bgColor=ron",250)
			*/
			}
			else
			{
			/*
			lev.background=roff;
			timer=setTimeout("lev.background=ron",50)
			timer=setTimeout("lev.background=roff",100)
			timer=setTimeout("lev.background=ron",150)
			timer=setTimeout("lev.background=roff",200)
			timer=setTimeout("lev.background=ron",250)
			*/
			}
		timer=setTimeout("self.location.href='"+dove+"'",350);
		}

	function mroll(l)
		{
		nn?document.layers[l].bgColor=ron:(document.all)?document.all[l].style.background=ron:document.getElementById(l).style.background=ron;
		document.getElementById?document.getElementById(l).style.cursor=document.all?'hand':'pointer':'void(0)';
		if (l.substr(0,4)=="mdep")
			stringa=wst[l.substr(4,l.indexOf(".")-4)][l.substring(l.indexOf(".")+1,l.length)];
				else if (l.length>5)
				stringa=wst[l.substr(4,l.indexOf(".")-4)][0];
					else stringa="Home Page";		
		window.status=stringa;
		timer=setTimeout("window.status=stringa",20);
		}

	function unmroll(l)
		{
		//nn?document.layers[l].style.background="transparent":(document.all)?document.getElementById(l).style.background="transparent":document.getElementById(l).style.background="transparent";
		if (l.substr(0,4)=="mdep")
			nn?document.layers[l].bgColor=roff:(document.all)?document.all[l].style.background=roff:document.getElementById(l).style.background=roff;
		else
			nn?document.layers[l].style.background="transparent":(document.all)?document.getElementById(l).style.background="transparent":document.getElementById(l).style.background="transparent";
		window.status="";
		}
		
		
	function apri(i)
		{
			if (i==2)		    
				window.location ='mappa.aspx?lang=IT';
			else if (i==3) 
    			window.location ='links.aspx?lang=IT';
    		else if (i==1)
    			window.location ='utility.aspx?lang=IT';

		}
		