/*Menu system version 2.6.0.20011109
* written by Andy Woolley
* Copyright 2001 Andy Woolley. All Rights Reserved.
*
* Please feel free to use this code on your own website free of charge.
* You can also distribute and modify this source code as long as this
* Copyright notice remains intact and that you send me notice that you
* intend to use this code on your website.
*
* I can provide limited support for this produt, all you have to do is ask :-)
* You can send email to dbmenu@milonic.com */

timer=0
d=document
ns4=(d.layers)?true:false
ns6=(navigator.userAgent.indexOf("Gecko")!=-1)?true:false
mac=(navigator.appVersion.indexOf("Mac")!=-1)?true:false
if(ns6)mac=false
opera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false
ns693=(parseInt(navigator.productSub)>=20010726)?true:false
ie4=(!d.getElementById&&d.all)?true:false;
mp=(ns6)?"pointer":"hand"
atop=5;oatop=0;aleft=0;oaleft=1;
var a,am,oa,im,om,flta
timo=0;
el=0;nshl=0;var omv=0;df=1;im=0;ofrac=0;omnu=0;ac=15;m=1
var imar = new Array()
mr=","
while(eval("window.menu"+m)){mr+="menu"+m+",";tmenu=eval("menu"+m);m++}
mr=mr+" "
mr=mr.split("\,")
menus=mr.length-1
if (ns6||mac){window.onload=function(){sis()}}
function gmobj(mtxt){if(d.getElementById){m=d.getElementById(mtxt)}else if(d.all){m=d.all[mtxt]}else if(d.layers){m=d.layers.eval(mtxt)}return m;}
function gmstyle(mtxt){m=gmobj(mtxt);if(!ns4){m=m.style;}return m;}
function closeallmenus(){if(ns4){omv.visibility="hide"}for(a=1;a<menus;a++){menu=eval("menu"+a);mi=gmstyle("menu"+a);if (menu[6]!=1){mi.visibility='hidden';}else{am=""}sub=1;while(eval("window.sub"+a+"_"+sub)){mi=gmstyle("sub"+a+"_"+sub);mi.visibility='hidden';sub++}}}
function rep_img(){if(timo){timo.src=o_img}}
function popdn(){timer=setTimeout("closeallmenus()",timegap)}
function dc(){location.href=nshl}
function openurl(url){window.open(url)}
function sis()
{
        for(a=1;a<imar.length;a++)
        {
                tim=imar[a].split("_");
                if(tim[4]){tim[3]=tim[3]+"_"+tim[4]}
                menu=eval(window.tim[3]);
                if(ns4)
                {
                        mtl=d.layers.eval(tim[3]).document.layers.eval("el"+tim[2]);
                        ht=(mtl.clip.height/2);
                        wd=mtl.clip.width-mtl.clip.left-8;eln="";
                        for(x=0;x<2;x++)
                        {
                                mtl=d.layers.eval(tim[3]).document.layers.eval(eln+"el"+tim[2]).document.layers.eval(imar[a]);
                                mtl.left=wd;
                                if(menu[12]=="left")mtl.left=10
                                mtl.top=ht-(mtl.clip.height/2)-1;
                                eln="m"
                        }
                }
                else
                {
                        imo=gmobj(imar[a]);
                        im=gmobj("el"+tim[2]);
                        imo.style.left=im.offsetWidth-8;
                        if(menu[12]=="left")imo.style.left=8
                        cr=0;
                        if(ns6&&!ns693)
                        {
                                mn=gmobj(tim[3])
                                cr=mn.offsetTop
                        }
                        if(mac)cr=4;
                        imo.style.top=im.offsetTop+(im.offsetHeight/2)-(imo.offsetHeight/2)-cr
                }

                if(opera)
                {
                        imo.style.top=im.offsetTop+(im.style.pixelHeight/2)-4;
                        if(menu[12]=="left"){}else{imo.style.left=im.style.pixelWidth-8}
                }
        }
}

function fixb(mnu)
{
        menu=eval(mnu);
        mn=gmobj(mnu);
        if(ns4){if(menu[10])mn.clip.width=mn.clip.width+menu[3];return}

        el+=((menu.length-ac)/5);
        ml=gmobj("el"+(el-1));


        if (opera)
        {
                //mn.style.pixelHeight=ml.offsetTop+ml.style.pixelHeight+(menu[3]);
                oc=1
                if(menu[3]==1)oc=5
                mn.style.pixelWidth+=oc;
        }
        else if(ns6)
        {
                mn.style.width=parseInt(mn.style.width)-(menu[3]*2);
                if(!ns693)if(!menu[0]&&menu[9]&&!menu[6])mn.style.top=-1000
        }
        else if(mac)
        {
                mn.style.height=ml.offsetTop+ml.offsetHeight+(menu[3]*2);
                mn.style.height=mn.style.height-menu[5][9];
                if (!menu[2])
                {
                        mn.style.width=1;
                        //mn.style.width=mn.offsetWidth+menu[5][9]-(menu[3]*2);
                        //mn.style.width=mn.offsetWidth+10
                }
        }
        else
        {
                if (!menu[2])
                {
                        mn.style.width=(menu[5][9]*2);
                        mn.style.height=(menu[5][9]*2);
                }
        }

        if (menu[10])
        {
                ic=(menu.length-ac)/5;
                th=0;
                ow=0;
                eH=0;
                tw=0
                for (y=el-ic;y<el;y++)
                {
                        ty=gmobj("hel"+y);
                        if(th<ty.offsetHeight)th=ty.offsetHeight;
                        if(th>eH)eH=th
                        if(!menu[2])
                        {
                                if(ns6)ty.style.width=0;
                                ty.style.left=tw
                                tw=tw+menu[3]
                                if(opera)
                                {
                                        tw=tw+ty.style.pixelWidth
                                }
                                else
                                {
                                        tw=tw+ty.offsetWidth
                                }
                        }
                }

                mn.style.width=tw+menu[3]

                tw=0
                for (y=el-ic;y<el;y++)
                {
                        ty=gmobj("el"+y);
                        ow=ow+ty.style.pixelWidth+menu[3]
                        if(opera){if(menu[2]){ty.style.top=ty.style.top+menu[3];ty.style.left=ty.style.left+menu[3]}else{ty.style.top=menu[3];ty.style.left=ty.style.left+menu[3]}}
                        if (ns6 && !menu[2] || ie4 || mac)
                        {
                                thy=gmobj("hel"+y);
                                ty.style.width=1;
                                if(ns6)ty.style.width=0;
                                thy.style.left=tw
                                if(mac)
                                {
                                        ty.style.width=thy.offsetWidth+menu[5][9]
                                        ty.style.left=tw+menu[5][9]
                                }

                                tw=tw+menu[3]
                                tw=tw+ty.offsetWidth;
                        }
                }

                if(ns6||ie4)mn.style.width=tw-menu[3]

                hel=gmobj("hel"+(el-1));
                helw=-(menu[3]*2);
                if(ns6){helw=0}
                if(menu[2])mn.style.width=hel.offsetLeft+hel.offsetWidth-helw-menu[3];
                if(ns6)helh=th; else helh=th+(menu[3]*2);
                mn.style.height=helh;
                if(menu[2])ow=ow+menu[3]*2
                if(opera){mn.style.pixelWidth=ow+menu[3];mn.style.pixelHeight=ty.style.pixelHeight+(menu[3]*2)}
        }
}

if ((d.all&&d.getElementById)&&!mac) document.write("<script>function getflta(ap){try{if(ap.filters){flta=1}}catch(e){}}</script>");

function sm(v1)
{
        if(flta)
        {
                ap=gmobj(v1);
                if(ap.filters[0]) ap.filters[0].Apply()
        }
        if(menu[8])
        {
                ts=menu[8].substr(0,4)
                if (ts.toUpperCase()=="FADE")
                {
                        //mi.filter = "Alpha(Opacity=20)";
                        //mi.MozOpacity = 0.3;
                }
        }
        mi.visibility='visible';
        if(flta)
        {
                if(ap.filters[0])ap.filters[0].Play()
        }
}

function popup(mn){omv.visibility='hide';clearTimeout(timer);closeallmenus();mtxt='menu'+mn;mi=gmstyle(mtxt);flta=0;if((d.all&&d.getElementById)&&!mac){ap=gmobj(mtxt);getflta(ap);}sm(mtxt);am=mn;om=mtxt}
function shl(lyr,el,s){clearTimeout(timer);mt=d.layers[lyr].document.layers.eval("el"+el);omv.visibility="hide";mt.visibility=s;omv=mt;}
function popi(v1,lyr,el){clearTimeout(timer);if(lyr.substr(0,4)=="menu"){am=lyr.substr(4,5);qs=om.split(",");if(lyr!=qs[0]){if(omnu.substring(0,5)!="menu_")closeallmenus();om=lyr;}}sam=""+am;

if (ns4){timo=eval("document.im"+el)}else{timo=gmobj("im"+el)}
o_img="";
if (timo)
{
                o_img=timo.src;
                ima=o_img.split(".")
                enD=ima.length
                ima[enD-2]=ima[enD-2]+"_over"
                nsrc="";
                for(eD=0;eD<enD;eD++)
                {
                        nsrc=nsrc+ima[eD]+"."
                }
                nsrc=nsrc.substring(0,nsrc.length-1)
                ta=om.split(",")
                NI1=new Image
                NI1.src = nsrc;
                if(NI1.width>0)        timo.src=nsrc;
}
        menu=eval(lyr)
        if (menu[6]&&menu[10])closeallmenus();
        if (ns4)shl(lyr,el,"show")
        if (v1.substring(0,5)=="menu_")
        {
                closeallmenus()
                omnu=v1
                mnu="menu"+v1.substr(5,3)
                arr=eval(lyr);
                mo=gmobj(lyr);
                mi=gmobj(mnu);
                menu=eval(mnu)
                if (ns4)
                {
                        shl(lyr,el,"show")
                        mtl=mo.document.layers.eval("el"+el)
                        mi.left=mtl.left+mo.left-1
                        if(menu[4]=="right"){mi.left=mi.left+(menu[3]*2)-(mi.clip.width-mtl.clip.width)}
                        mi.top=mo.top+mo.clip.height-1
                        mi.visibility="visible"
                }
                else
                {
                        h3="";
                        oty=ty;
                        if(menu[1])h3="h";
                        mic=gmobj(h3+"el"+el);
                        nsl=ns6?parseInt(mo.style.left):d.all?mo.offsetLeft:mn.clip.left;
                        nst=0;
                        if(ns6&&!ns693){nsl=-(menu[3]);nst=menu[3]}
                        if(ns6&&mic.offsetHeight==0)nst=-oty.offsetHeight
                        if (opera)
                        {
                                mi.style.top=mo.offsetTop+mo.style.pixelHeight-1
                        }
                        else
                        {
                                if(mac)
                                {
                                        mi.style.top=oty.offsetTop+oty.offsetHeight+(arr[3]*2)+5
                                }
                                else
                                {
                                        mi.style.top=(arr[3]*2)+(mic.offsetHeight)+mo.offsetTop-nst-1
                                }

                        }
                        if(menu[4]=="right")
                        {
                                if(opera)mio=mic.style.pixelWidth;else mio=mic.offsetWidth
                                if(opera)mii=mi.style.pixelWidth;else mii=mi.offsetWidth
                                nsl=nsl-(mii-mio)
                        }
                        if(mac)nsl=mo.offsetLeft-1
                        mi.style.left=nsl+mic.offsetLeft
                        sm(mnu);
                        mi.style.visibility="visible"
                }
        }

        if (v1.substring(0,4+sam.length)=="sub"+am+"_")
        {
                arr=eval(v1);
                menu=eval(lyr)
                mo=gmobj(lyr);
                miobj=gmobj(v1)
                mi=miobj.style;
                if(ns4)mi=miobj;
                if (arr[0]||arr[1]){}else
                {
                        fl=suboffset_left
                        ft=suboffset_top
                        if (ns4)
                        {
                                mtl=mo.document.layers.eval("el"+el)
                                mi.left=mo.left+mtl.clip.width-fl
                                if(menu[12]=="left")mi.left=mo.left-mi.clip.width+fl
                                mi.top=mo.top+mtl.top+ft-menu[3]
                        }
                        else
                        {
                                mic=gmobj("el"+el)
                                if(menu[12]=="left")
                                {
                                        if (opera){mi.left=mo.style.left-mi.pixelWidth+fl}else{mi.left=mo.offsetLeft-parseInt(mi.width)+fl}
                                }
                                else
                                {
                                        if (opera){mi.left=mo.style.left+mic.style.pixelWidth-20}else{mi.left=mo.offsetLeft+mic.offsetWidth-fl+menu[3];}
                                }
                                if(ns6)nsos=0;else nsos=mo.offsetTop
                                if(ns693)nsos=mo.offsetTop
                                mi.top=nsos+mic.offsetTop+ft;
                        }
                }
                sm(v1)
                om+=","+v1;

                if(v1)
                {
                        mi=miobj;
                        if (ns4)
                        {
                                tht=mi.clip.height
                                ttp=mi.top
                                if((ttp+tht)+2>(wh+sy)){mi.top=wh-tht-17+sy}
                                twd=mi.clip.width
                                tlt=mi.left
                                if(tlt+twd>ww){mi.left=ww-twd-17}
                                if(tlt<0){mi.left=10}
                        }
                        else
                        {
                                if(opera){tht=mi.style.pixelHeight;ttp=mi.style.pixelTop;tlt=mi.style.pixelWidth;twd=mi.style.pixelLeft;}else{tht=mi.offsetHeight;ttp=mi.offsetTop;twd=mi.offsetWidth;tlt=mi.offsetLeft;}
                                fc=5
                                if(ns6||ns693)fc=16
                                if((tlt+twd+fc)>ww){mi.style.left=(ww-twd-fc);}
                                if(ttp+tht>wh+sy){mi.style.top=(wh-tht-fc)+sy;}
                                if(tlt<0){mi.style.left=10}
                        }
                }
        }
        else {v1=lyr;}
        ta=om.split(",")
        strt=0;
        for(a=0;a<ta.length;a++)
        {
                if (ta[a]==v1)strt=0;
                if (strt){if(ta[a]){mi=gmstyle(ta[a]);mi.visibility='hidden';}ta[a]=""}
                if (ta[a]==lyr)strt=1;
        }
        om=""
        disp=0
        for(a=0;a<ta.length;a++)
        {
                if(ta[a]==lyr)frs=a
                if(ta[a]==v1)fre=a
                if (disp||(a>frs&&a<fre))
                {
                        if (ta[a]&&ta[a]!=v1)
                        {
                                mi=gmstyle(ta[a]);
                                mi.visibility='hidden';
                        }
                }
                else
                {
                        if (ta[a])om+=ta[a]+",";
                }
                if (v1==ta[a])disp=1
        }
}

function stch(ms){window.status=ms; return true}
function hl()
{
        arg=hl.arguments;
        hlnk=arg[1];if (arg[7]+" "=="undefined "){arg[7]=hlnk;}else {hlnk=arg[7]}am=" "+a;am=am.length-1;subimg="";arg[0]+=""
        if (ns6){dwd=arg[2][9]*2}else{dwd=0}
        if (ns4){if (el==0){st="<style type=\"text/css\">A.m{text-decoration:none;}</style>";d.write(st);oatop=atop;}else{mtl=d.layers.eval(omnu).document.layers.eval("el"+(el-1));if (oatop==atop){atop+=mtl.clip.height}else{atop=menu[3];}oatop=atop}if (menu[10]){atop=menu[3];if (oaleft==aleft){aleft+=mtl.clip.width+menu[3]}else{aleft=menu[3];oaleft=aleft}oaleft=aleft}else{aleft=menu[3];}}
        pd="popdn();"
        if(menu[11]>0)pd=""

        if(arg[0].indexOf("<img")>=0)
        {
                ipos=arg[0].indexOf("<img")
                arg[0]=arg[0].substr(0,ipos+4)+" id=im"+el+" name=im"+el+" "+ arg[0].substr(ipos+5,900)
        }

        if (hlnk.substring(0,4+am)=="sub"+a+"_"){
                im++;ims="im"+im+"_"+a+"_"+el+"_"+arg[5];
                if(arg[7]==hlnk) if(arg[6])arg[7]=arg[6];else arg[7]="";hlnk="#";
                if (arg[6]+" "!="undefined ")hlnk=arg[6];
                if (ns4){subimg="<layer id="+ims+" style=\"position:absolute;\"><img border=0 src="+arg[2][10]+"></layer>";}else{subimg="<img id="+ims+" border=0 style=\"position:absolute;\" src="+arg[2][10]+">"}
                imar[im]=ims;}
        if(ns4){
                rsp=""
                tdwd=" width="+menu[2]
                if(!menu[7]||menu[7]=="left")tdwd=""
                if (menu[7]=="right") rsp="<td height=-1></td>"
                ls="<table cellpadding="+(arg[2][9]/2)+" cellspacing=0><tr><td height=-1 align="+menu[7]+tdwd+"><a href=\""+hlnk+"\" style='color:#"
                le=";text-decoration:none;font-size:"+arg[2][5]+"px;font-weight:"+arg[2][7]+";font-family:"+arg[2][8]+"' onmouseover=\";return stch('"+arg[7]+"');\">"+arg[0]+"</a>"+subimg+"</td>"+rsp+"</tr></table></layer>"
                lv=" left="+aleft+" width="+(menu[2]-(menu[3]*2))+" top="+atop
                mt="<layer id=mel"+el+lv+" bgColor="+arg[2][1]+" onmouseover=\"shl('"+arg[5]+"',"+el+",'show');popi('"+arg[1]+"','"+arg[5]+"',"+el+"); window.status='"+arg[7]+"';\">"+ls+arg[2][0]+le
                mt+="<layer id=el"+el+lv+" bgColor="+arg[2][3]+" onmouseover=\"nshl='"+hlnk+"'; this.captureEvents(Event.CLICK); this.onClick=dc;\" onmouseout=\"window.status='';shl('"+arg[5]+"',"+el+",'hide');"+pd+"\" visibility=hidden >"+ls+arg[2][2]+le
        }
        else
        {
                mt="";bgt="";if(!opera)bgt="Color"
                if (menu[10]){bgc=hlp[4];if(hlp[11])bgc=hlp[12];mt+="<div id=hel"+el+" style=\"background-color:#"+bgc+";width:"+(menu[2]-menu[3])+";position:absolute;top:0;left:"+dlft+";\">";dlft=dlft+menu[2]-(menu[3]*2)+menu[3]}
                if(!menu[7])menu[7]="left"
                rsp=0;if (menu[7]=="right") rsp=7;
                //correzione mia
                //if(arg[6]) mt+="<a href=\""+arg[6]+"\" style='text-decoration:none;'>"
                //else mt+="<a href=\""+hlnk+"\" style='text-decoration:none;'>"

                if(arg[7] && arg[7]=="menu_2") mt+="<a href=\"#"+arg[7]+"\" style='text-decoration:none;'>"
                else mt+="<a href=\""+hlnk+"\" style='text-decoration:none;'>"


                dw=(menu[2]-(2*menu[3]+dwd))
                if(dw+" "=="NaN "){dw=""}else{dw="width:"+dw}
                if(!menu[2]&&ie4)dw="width:1";
                if(!menu[2]&&opera){dw="position:absolute;";}
                mt+="<div align="+menu[7]+" id=el"+el+"  style=\""+dw+";padding-left:"+arg[2][9]+";padding-right:"+(arg[2][9]+rsp)+";padding-top:"+arg[2][9]+";padding-bottom:"+arg[2][9]+";font-weight:"+arg[2][7]+";font-style:"+arg[2][6]+";font-family:"+arg[2][8]+";font-size:"+arg[2][5]+"px;color:#"+arg[2][0]+";background-color:#"+arg[2][1]+";\""
                mt+=" onMouseOver=\"popi('"+arg[1]+"','"+arg[5]+"',"+el+");this.style.cursor='"+mp+"';this.style.background"+bgt+"='#"+arg[2][3]+"';this.style.color='#"+arg[2][2]+"';return stch('"+arg[7]+"');\""

                //altra correzione riguardante l'immagine
                // caso di menu orizzontale if(arg[6]) nella riga sotto                                                                                                                         //document.freccia"+el+".src='../img/freccia2.gif';
                if(arg[7] && arg[7]=="menu_2") mt+=" onMouseOut=\"rep_img(); "+pd+"this.style.background"+bgt+"='#"+arg[2][1]+"'; this.style.color='#"+arg[2][0]+"';return stch('');\">&nbsp;<img name=\"freccia"+el+"\" src=\"../img/freccia1.gif\" border=\"0\">&nbsp;&nbsp;"
                else mt+=" onMouseOut=\"rep_img(); "+pd+"this.style.background"+bgt+"='#"+arg[2][1]+"'; this.style.color='#"+arg[2][0]+"';return stch('');\">"
                mt+=arg[0]+subimg+"</div>";
                mt+="</a>";if (menu[10]){mt+="</div>"}
        }
        d.write(mt)
        el++
}

function dmenu(mnu){
        menu=eval(mnu)
        atop=menu[3]
        hlp=menu[5]
        if(el)ns6c=3;else ns6c=2;
        ns6w=0;
        if(menu[7]=="right"&&ns6)ns6w=7;
        if (menu[2]<1)menu[2]="undefined"
        if(ns4)
        {
                thw=menu[2]
                if(menu[10]){ic=(menu.length-ac)/5;thw=(menu[2]*ic)-(menu[3]*ic)+menu[3]}
                bgc=hlp[4]
                if (hlp[11]){bgc=hlp[13]}
                mt="<layer z-index=99 visibility=hidden bgcolor=#"+bgc+" id="+mnu+" top="+menu[0]+" left="+menu[1]+" width="+thw+">"
                if (hlp[11]){mt+="<layer bgcolor=#"+hlp[12]+" top=0 left=0 height=2 width=100%></layer>"}mt+="<layer id="+mnu+"3d bgcolor=#"+hlp[12]+" top=0 left=0 height=1 width=2></layer>"}
        else
        {
                iedf="";if(!opera&&!mac&&d.all&&menu[8])
                {
                        iedf=" filter:";flt=menu[8].split("\;");for(fx=0;fx<flt.length;fx++){iedf+=" progid:DXImageTransform.Microsoft."+flt[fx]}}
                if (hlp[11]){brd = "border:solid "+menu[3]+"px; border-left-color:#"+hlp[12]+";border-top-color:#"+hlp[12]+";border-bottom-color:#"+hlp[13]+";border-right-color:#"+hlp[13]+";"}else{brd = "border:solid "+menu[3]+"px; border-left-color:#"+hlp[4]+";border-top-color:#"+hlp[4]+";border-bottom-color:#"+hlp[4]+";border-right-color:#"+hlp[4]+";"}
                mt="<div id="+mnu+" style=\""+iedf+";z-index:99;visibility:hidden;"+brd+"position:absolute;background-Color:#"+hlp[4]+";width:"+(menu[2]+ns6w)+";left:"+menu[1]+";top:"+menu[0]+";\">"
        }
        d.write(mt)
        x=0;
        dlft=0
        aleft=0;
        for(b=ac;b<menu.length;b++)
        {
                b=b+4
                if(menu[b-3]==""){menu[b-3]="#"}
                menu[b-3] = menu[b-3].replace(/\"/gi, "&quot;")
                hl(menu[b-4], menu[b-3], hlp, 100, 100, mnu, menu[b-2], menu[b-1])
                txt="";
                if(ns4)
                {
                        if (!menu[10])
                        {
                                if (menu[b]&&b<menu.length-1)
                                {
                                        mt=d.layers[mnu].document.layers.eval("el"+(el-1))
                                        x=atop+mt.clip.height
                                        if (!hlp[11]) x++
                                        txt="<layer top="+(x-2)+" left="+menu[3]+" height=1 bgcolor=#"+bgc+" width="+mt.clip.width+"></layer>"
                                        if (hlp[11]) {txt+="<layer top="+(x-1)+" left="+menu[3]+" height=1 bgcolor=#"+hlp[12]+" width="+mt.clip.width+"></layer>"}
                                }
                        }
                }
                else
                {
                        bw=menu[b];        bc=hlp[4]
                        bl="";
                        if(opera)bl="left:0;"
                        if(opera&&bw==0){bw=2;bc=hlp[1]}
                        if(b+1==menu.length)bw=0;
                        if(bw>0)
                        {
                                if (!menu[10])
                                {
                                        if (hlp[11]&&bw==1)
                                        {
                                                txt="<div onmouseout=\"popdn()\" onmouseover=\"clearTimeout(timer)\"  style=\"position:relative\">"
                                                txt+="<div style=\"border-top:1px solid #"+hlp[13]+"; background-color:#"+hlp[12]+"; width:100%;position:absolute;clip:rect(0 100% 2 0);height:1;"+bl+"\">"
                                                txt+="</div></div>"
                                        }
                                        else
                                        {
                                                txt="<div style=\"position:relative;\">"
                                                txt+="<div onmouseout=\"popdn()\" onmouseover=\"clearTimeout(timer)\" style=\"background-color:#"+bc+";width:"+(menu[2]-(menu[3]*2))+";position:absolute;"
                                                txt+="clip:rect(0 100% "+bw+" 0);height:"+bw+";"+bl+"\">"
                                                txt+="</div>"
                                                txt+="</div>"
                                        }
                                }
                        }
                }
                d.write(txt);
                omnu=mnu;
                mt=""
        }
        oatop=-1;
        if (ns4){mt="</layer>"}else{mt+="</div></div>"}
        d.write(mt)
        if (ns4)
        {
                ml = d.layers.eval(mnu)
                ml.clip.height += menu[3]
                ml3d = d.layers.eval(mnu).document.layers.eval(mnu+"3d")
                if (hlp[11])ml3d.clip.height=ml.clip.height
        }
}
d.write("<div>");
for(a=1;a<menus;a++){dmenu("menu"+a);sub=1;while (eval("window.sub"+a+"_"+sub)){dmenu("sub"+a+"_"+sub);sub++}}
d.write("</div>");