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.addcategory=addcategory;this.addsubitem=addsubitem;this.menuend=menuend;this.addspacer=addspacer;this.visualizza=visualizza;this.nascondi=nascondi;}function addcategory(item,linkto){if(net4){htmlcenter="<tr><td><ilayer><layer width=150 onmouseover='setflag(); colortab(this)' onmouseout='setflag(); colortabrestore(this)'><img src='img/menu_puntini.gif' width=22 height=14>";htmlcenter+="&nbsp;"+item+"&nbsp;</layer></ilayer></td></tr>";}else{htmlcenter="<tr><td bgcolor=#666666 width=1><img src='/root/img/px1tras.gif' width=1 height=1></td><td bgcolor=#ffffff height=14 valign=bottom onmouseover='setflag();' onmouseout='setflag();' class=all><img src='img/menu_puntini.gif' width=22 height=14 align=absmiddle>";htmlcenter+="&nbsp;<font color=#666666>"+item+"</font>&nbsp;</td><td bgcolor=#6B6B6B width=1><img src='/root/img/px1tras.gif' width=1 height=1></td></tr>";}document.writeln(htmlcenter);}function additem(item,linkto){if(net4){htmlcenter="<tr><td><ilayer><layer width=150 onmouseover='setflag(); colortab(this)' onmouseout='setflag(); colortabrestore(this)'><img src='img/menu_arrow.gif' width=22 height=14>";htmlcenter+="&nbsp;<a href='"+linkto+"' class=all>"+item+"</a>&nbsp;</layer></ilayer></td></tr>";}else{htmlcenter="<tr><td bgcolor=#666666 width=1><img src='/root/img/px1tras.gif' width=1 height=1></td><td height=14 valign=bottom onmouseover='setflag();' onmouseout='setflag();' class=all><img src='img/menu_arrow.gif' width=22 height=14 align=absmiddle>";htmlcenter+="&nbsp;<a href='"+linkto+"' class=all><font color=#cccccc>"+item+"</font></a>&nbsp;</td><td bgcolor=#6B6B6B width=1><img src='/root/img/px1tras.gif' width=1 height=1></td></tr>";}document.writeln(htmlcenter);}function addsubitem(item,linkto){if(net4){htmlsubcenter="<tr><td><ilayer><layer width=150 onmouseover='setflag(); colortab(this)' onmouseout='setflag(); colortabrestore(this)'><img src='img/menu_arrow.gif' width=22 height=14>";htmlsubcenter+="&nbsp;<a href='"+linkto+"' class=all>"+item+"</a>&nbsp;</layer></ilayer></td></tr>";}else{htmlsubcenter="<tr><td bgcolor=#666666 width=1><img src='/root/img/px1tras.gif' width=1 height=1></td><td  height=10 valign=bottom onmouseover='setflag();' onmouseout='setflag();' class=all>&nbsp;&nbsp;<img src='img/px1tras.gif' width=22 height=14 align=middle>";htmlsubcenter+="&nbsp;<a href='"+linkto+"' class=whitelink>"+item+"</a>&nbsp;</td><td bgcolor=#6B6B6B width=1><img src='/root/img/px1tras.gif' width=1 height=1></td></tr>";}document.writeln(htmlsubcenter);}function menustart(popoutid,popinid,classpopin,classpopout){if(net4){htmlstart="<span id="+popoutid+" class="+classpopout+"><span id="+popinid+" class="+classpopin+">";htmlstart+="<table cellspacing=0 cellpadding=0 width=150><tr><td bgcolor=#6B6B6B><table cellspacing=0 cellpadding=0 width=140>";}else{htmlstart="<span id="+popoutid+" class="+classpopout+"><span id="+popinid+" class="+classpopin+">";htmlstart+="<table cellspacing=0 cellpadding=0 width=150 border=0 bgcolor=#6B6B6B><tr><td colspan=3 bgcolor=#6B6B6B height=1><img src='/root/img/px1tras.gif' width=1 height=1></td></tr>";}document.writeln(htmlstart);}function addspacer(){if(net4){htmlspacer="";}else{htmlspacer="<tr><td bgcolor=#b5b5b5 width=1><img src='/root/img/px1tras.gif' width=1 height=1></td><td height=1 bgcolor=#b5b5b5></td><td bgcolor=#b5b5b5 width=1><img src='/root/img/px1tras.gif' width=1 height=1></td></tr>";}document.writeln(htmlspacer);}function menuend(){if(net4){htmlend="</table></td></tr></table>";htmlend+="</span></span>";}else{htmlend="<tr><td colspan=3 bgcolor=#6B6B6B height=1><img src='/root/img/px1tras.gif' width=1 height=1></td></tr></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";}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<arraynoroll.length;i++){if(arraynoroll[i])setoffprev(i)}}}}function mouseverifydown(e){nascondi();}function colortab(which){if(net4){which.bgColor="#ffffff";}else{which.style.backgroundColor='#ffffff';}}function colortabrestore(which){if(net4){which.bgColor=null;}else{which.style.backgroundColor='';}}