var popactivein=null;var popactiveout=null;var flaglink=false;if(net4){document.captureEvents(Event.MOUSEDOWN)}document.onmousedown=mouseverifydown;function constlayer(){this.menustart=menustart;this.additem=additem;this.addsubitem=addsubitem;this.menuend=menuend;this.addspacer=addspacer;this.visualizza=visualizza;this.nascondi=nascondi;}function menustart(popoutid,popinid,classpopin,classpopout,i){if(net4){htmlstart="<span id="+popoutid+" class="+classpopout+"><span id="+popinid+" class="+classpopin+">";htmlstart+="<table cellspacing=0 cellpadding=0 width=140 bgcolor=#006FAC border=0><tr><td bgcolor=#006FAC>";htmlstart+="<table cellspacing=0 cellpadding=0 width=140  border=0 bgcolor=#FFFFFF>";}else{htmlstart="<span id="+popoutid+" class="+classpopout+"><span id="+popinid+" class="+classpopin+">";htmlstart+="<table cellspacing=0 cellpadding=0 width=140 border=0>";htmlstart+="<tr>";htmlstart+="<td bgcolor=#204679 width=3><img src=px1tras.gif width=3 height=35 border=0></td>";htmlstart+="<td bgcolor=#f6b400 width=3><img src=px1tras.gif width=3 height=35 border=0></td>";htmlstart+="<td bgcolor=#204679 width=2><img src=px1tras.gif width=2 height=35 border=0></td>";htmlstart+="<td bgcolor=#204679 width=129><img src="+tm_img[i]+" width=129 height=35 border=0></td>";htmlstart+="<td bgcolor=#204679 width=2><img src=px1tras.gif width=2 height=35 border=0></td>";htmlstart+="<td bgcolor=#000000 width=1><img src=px1tras.gif width=1 height=35 border=0></td>";htmlstart+="</tr>";}document.writeln(htmlstart);}function additem(item,linkto){if(net4){htmlcenter="<tr>";htmlcenter+="<td bgcolor=#204679 width=3><img src=img/px1tras.gif width=3 height=1 border=0></td>";htmlcenter+="<td bgcolor=#f6b400 width=3><img src=img/px1tras.gif width=3 height=1 border=0></td>";htmlcenter+="<td bgcolor=#204679 width=2><img src=img/px1tras.gif width=2 height=1 border=0></td>";htmlcenter+="<td bgcolor=#ffffff width=129 valign=top class=menu><ilayer bgcolor=#006FAC><layer width=150 onmouseover='setflag();' onmouseout='setflag();'  bgcolor=#006FAC><img src='img/menu_arrow.gif' width=11 height=19><a href='"+linkto+"'><img src=img/"+item+"_off.gif border=0 width=129 height=20 name="+item+"></a></layer></ilayer></td>";htmlcenter+="<td bgcolor=#204679 width=2><img src=img/px1tras.gif width=2 height=1 border=0></td>";htmlcenter+="<td bgcolor=#000000 width=1><img src=img/px1tras.gif width=1 height=1 border=0></td>";htmlcenter+="</tr>";}else{htmlcenter="<tr><td bgcolor=#204679 width=3><img src=img/px1tras.gif width=3 height=1 border=0></td>";htmlcenter+="<td bgcolor=#f6b400 width=3><img src=img/px1tras.gif width=3 height=1 border=0></td>";htmlcenter+="<td bgcolor=#204679 width=2><img src=img/px1tras.gif width=2 height=1 border=0></td>";htmlcenter+="<td bgcolor=#ffffff width=129 valign=top onmouseover='setflag();' onmouseout='setflag();' class=menu><a href='"+linkto+"' class=menu OnMouseOver=javascript:document."+item+".src='img/"+item+"_on.gif'; OnMouseOut=javascript:document."+item+".src='img/"+item+"_off.gif';><img src=img/"+item+"_off.gif border=0 width=129 height=20 name="+item+"></a></td>";htmlcenter+="<td bgcolor=#204679 width=2><img src=img/px1tras.gif width=2 height=1 border=0></td>";htmlcenter+="<td bgcolor=#000000 width=1><img src=img/px1tras.gif width=1 height=1 border=0></td>";htmlcenter+="</tr>";}document.writeln(htmlcenter);}function addsubitem(item,linkto){if(net4){htmlsubcenter="<tr>";htmlsubcenter+="<td bgcolor=#204679 width=3><img src='img/px1tras.gif' width=3 height=16 border=0></td>";htmlsubcenter+="<td bgcolor=#f6b400 width=3><img src=img/px1tras.gif width=3 height=16 border=0></td>";htmlsubcenter+="<td bgcolor=#204679 width=2><img src=img/px1tras.gif width=2 height=16 border=0></td>";htmlsubcenter+="<td bgcolor=#204679 width=129><ilayer bgcolor=#85ACDF><layer width=150 onmouseover='setflag();' onmouseout='setflag();' bgcolor=#85ACDF><img src='img/px1tras.gif' width=11 height=10>";htmlsubcenter+="&nbsp;<a href='"+linkto+"' class=whitelink><img src=img/"+item+".gif border=0></a>&nbsp;</layer></ilayer></td>";htmlsubcenter+="<td bgcolor=#204679 width=2><img src=img/px1tras.gif width=2 height=16 border=0></td>";htmlsubcenter+="<td bgcolor=#000000 width=1><img src=img/px1tras.gif width=1 height=16 border=0></td>";htmlsubcenter+="</tr>";}else{htmlsubcenter="<tr><td bgcolor=#204679 width=3><img src='img/px1tras.gif' width=3 height=16 border=0></td>";htmlsubcenter+="<td bgcolor=#f6b400 width=3><img src=img/px1tras.gif width=3 height=16 border=0></td>";htmlsubcenter+="<td bgcolor=#204679 width=2><img src=img/px1tras.gif width=2 height=16 border=0></td>";htmlsubcenter+="<td bgcolor=#85ACDF width=129 valign=top onmouseover='colortab(this);setflag();' onmouseout='colortabrestore(this);setflag();' class=menu><a href='"+linkto+"' class=menu><img src=img/"+item+".gif border=0 width=129 height=20></a></td>";htmlsubcenter+="<td bgcolor=#204679 width=2><img src=img/px1tras.gif width=2 height=16 border=0></td>";htmlsubcenter+="<td bgcolor=#000000 width=1><img src=img/px1tras.gif width=1 height=16 border=0></td>";htmlsubcenter+="</tr>";}document.writeln(htmlsubcenter);}function addspacer(){if(net4){htmlspacer="";}else{htmlspacer="<tr>";htmlspacer+="<td bgcolor=#204679 width=3><img src=img/px1tras.gif width=3 height=1 border=0></td>";htmlspacer+="<td bgcolor=#f6b400 width=3><img src=img/px1tras.gif width=3 height=1 border=0></td>";htmlspacer+="<td bgcolor=#204679 width=2><img src=img/px1tras.gif width=2 height=1 border=0></td>";htmlspacer+="<td bgcolor=#204679 width=129><img src=img/px1tras.gif width=129 height=1 border=0></td>";htmlspacer+="<td bgcolor=#204679 width=2><img src=img/px1tras.gif width=2 height=1 border=0></td>";htmlspacer+="<td bgcolor=#000000 width=1><img src=img/px1tras.gif width=1 height=1 border=0></td>";htmlspacer+="</tr>";}document.writeln(htmlspacer);}function menuend(){if(net4){htmlend="</table></td></tr></table>";htmlend+="</span></span>";}else{htmlend="<tr>";htmlend+="<td bgcolor=#204679 width=3><img src=px1tras.gif width=3 height=1 border=0></td>";htmlend+="<td bgcolor=#f6b400 width=3><img src=px1tras.gif width=3 height=1 border=0></td>";htmlend+="<td bgcolor=#204679 width=2><img src=px1tras.gif width=2 height=1 border=0></td>";htmlend+="<td bgcolor=#204679 width=129><img src=px1tras.gif width=129 height=1 border=0></td>";htmlend+="<td bgcolor=#204679 width=2><img src=px1tras.gif width=2 height=1 border=0></td>";htmlend+="<td bgcolor=#000000 width=1><img src=px1tras.gif width=1 height=1 border=0></td>";htmlend+="</tr>";htmlend+="<tr><td bgcolor=#000000 width=1 colspan=6><img src=px1tras.gif width=1 height=1 border=0></td></tr>";htmlend+="</table>";htmlend+="</span></span>";}document.writeln(htmlend);}function setflag(){flaglink=!flaglink}function visualizza(popoutid,popinid,it){if((popactivein!=null)){nascondi();}if(net4){document.layers[popoutid].document.layers[popinid].visibility="show";}else{document.getElementById(popinid).style.visibility="visible";setonprev(it);}popactiveout=popoutidpopactivein=popinid;}function nascondi(){if((popactivein!=null)&&!flaglink){if(net4){document.layers[popactiveout].document.layers[popactivein].visibility="hide";}else{document.getElementById(popactivein).style.visibility="hidden";for(i=0;i<3;i++){if(arraynoroll[i])setoffprev(i)}}}}function mouseverifydown(e){nascondi();}function rollmenu(quale,nome){if(!net4){document.images[nome].src=arrayimg[quale].src;}}function rolloutmenu(nome,come,quale){if(!net4){if(!arraynoroll[quale]){document.images[nome].src=come}}}function colortab(which){if(net4){which.bgColor="#D5E5FB";}else{which.style.backgroundColor='#D5E5FB';}}function colortabrestore(which){if(net4){which.bgColor=null;}else{which.style.backgroundColor='';}}function setoffprev(quando){if(quando==0){document.images['chi'].src="chisiamo_off.gif"}arraynoroll[quando]=false;}function setonprev(allora){}