/* DHTML Menu version 3.3.18 Written by Andy Woolley Copyright 2002 (c) Milonic Solutions. All Rights Reserved. Vist http://www.milonic.co.uk/menu or Email menu3@milonic.com You may use this menu on your web site free of charge as long as you inform us of your intentions with your URL AND You place a link to http://www.milonic.co.uk/menu AND ALL copyright notices remain in place in all files including your home page Comercial licenses and support contracts are available on request. This script featured on Dynamic Drive (http://www.dynamicdrive.com) */ Mtimer=setTimeout("sis()",9999);_d=document;smc=-1;MLoaded=0; ns4=(_d.layers)?true:false ns6=(navigator.userAgent.indexOf("Gecko")!=-1)?true:false mac=(navigator.appVersion.indexOf("Mac")!=-1)?true:false if(ns6||ns4)mac=false opera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false ns61=(parseInt(navigator.productSub)>=20010726)?true:false ie4=(!_d.getElementById&&_d.all)?true:false; konq=(navigator.userAgent.indexOf("Konqueror")!=-1)?true:false mp=(ns6)?"pointer":"hand";oatop=0;aleft=0;oaleft=1;osy=0;oww=-1;owh=-1;frs=0;fre=0;nsmatch=0; var a,am,oa,im,om,flta;hlarr=new Array();hlcnt=0;hll=0;Mname=new Array();parr=new Array(); timo=0;el=0;nshl=0;var omv=0;df=1;im=0;ofrac=0;omnu=0;ac=22;m=1;sy=1;ShM=0;ww=0;wh=0;var imar=new Array();mr=","; while(eval("window.menu"+m)){mr+="menu"+m+",";tmenu=eval("menu"+m);Mname[m]=tmenu[0].toLowerCase();m++} mr=mr+" ";mr=mr.split("\,");menus=mr.length-1;bgt="";if(!opera)bgt="Color";var cgm=0; 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[mtxt]}return m;} function gmstyle(mtxt){m=gmobj(mtxt);if(!ns4){if(m)m=m.style;}return m;} function spos(gm,t_,l_,h_,w_){px="px";if(ns4){px="";gms=gm;if(w_!=null)gms.clip.width=w_;if(h_!=null)gms.clip.height=h_;}else if(opera){px="";gms=gm.style;if(w_!=null)gms.pixelWidth=w_;if(h_!=null)gms.pixelHeight=h_}else{gms=gm.style;if(w_!=null)gms.width=w_+px;if(h_!=null)gms.height=h_+px;}if(t_!=null)gms.top=t_+px;if(l_!=null)gms.left=l_+px} function gpos(gm){if(ns4){t_=gm.top;l_=gm.left;h_=gm.clip.height;w_=gm.clip.width;}else if(opera){t_=gm.style.pixelTop;l_=gm.style.pixelLeft;h_=gm.style.pixelHeight;w_=gm.style.pixelWidth;}else if(ns6){t_=gm.offsetTop;l_=gm.offsetLeft;h_=gm.offsetHeight;w_=gm.offsetWidth}else{if(mac){topM=gm.offsetParent.topMargin;if(!topM)topM=0;leftM=gm.offsetParent.leftMargin;if(!leftM)leftM=0;t_=parseInt(topM)+gm.offsetTop;l_=parseInt(leftM)+gm.offsetLeft;}else{t_=gm.offsetTop;l_=gm.offsetLeft;}h_=gm.offsetHeight;w_=gm.offsetWidth;}if(konq){w_=parseInt(gm.style.width);h_=parseInt(gm.style.height);}var gpa=new Array();gpa[0]=t_;gpa[1]=l_;gpa[2]=h_;gpa[3]=w_;return(gpa)} function getMouseXY(e){if(ns4||ns6){MouseX=e.pageX;MouseY=e.pageY;}else{MouseX=event.clientX;MouseY=event.clientY}if(!opera&&_d.all){MouseX=MouseX+_d.body.scrollLeft;MouseY=MouseY+_d.body.scrollTop;if(_d.compatMode=="CSS1Compat")MouseY=MouseY+sy}return true} function parseLink(txt,what){txt=txt.replace(/"/gi,"'");txt=txt+";";lt="";if(what=="link"){sp=txt.indexOf(" ");lt=txt.substr(0,sp);}else{sp=txt.indexOf(what)+what.length+1;if(sp>what.length+1){lt=txt.substr(sp,999);lt=lt.substr(0,lt.indexOf(";"))}}return lt.replace("/ /",lt);} function cHexColor(_c){if(_c.length==6){_c=_c.toUpperCase();x=0;while(x<6){hsh="#";if(_c.charCodeAt(x)>70){hsh="";x=6}x++}_c=hsh+_c}return _c} function stch(ms){window.status=ms;return true} function SDiv(nm,sh){if(ns4&&nm.indexOf(".")>0)tD=eval(nm); else tD=gmstyle(nm);if(tD)if(sh)tD.visibility="visible";else tD.visibility="hidden"} function close_el(){for(xa=hlarr.length-1;xa>=0;xa--){ti=hlarr[xa].split("_");tmenu=eval(ti[0]);if(ns4){shl(ti[0],ti[1],'hide');}else{arg=gmobj("el"+ti[1]);arg.style.backgroundColor=ti[2];if(opera)arg.style.background=ti[2];arg.style.color=""+ti[3];}if(ti[0]==hll){if(ns4)shl(ti[0],hel,'show');return}}hlcnt=0;hlarr=new Array()} function closeallmenus(){gmi=41;ShM=0;om="";hll="";close_el();if(ns4){omv.visibility="hide"}for(a=1;a0)lfL=menu[ac-1+(tc*5)]; lf=lf+typ[3]+lfL; } tw=lf-lfL; th=typ[2]; if(_d.compatMode=="CSS1Compat") {} else { if(mac) { if(!_d.doctype) { th=th+(m42); tw=tw+m42} } else if(_d.all&&!opera){tw=tw+(m42);th=th+(m42)}}if(opera)tw=tw+(menu[4])}else{if(ns6)tw=mp[3]-(menu[4]*4);if(opera)tw=mp[3]+(menu[6][9]*2)-(m42);}spos(mn,null,null,th,tw);} function sm(v1){menu=eval(v1);if(opera||ns6)if(!menu[7]&&!menu[21][2])fixb(v1);ap=gmobj(v1);if(flta)if(ap.filters[0])ap.filters[0].Apply();gmi++;if(!ns4)aps=ap.style; else aps=ap;aps.zIndex=gmi;aps.visibility='visible';if(flta)if(ap.filters[0])ap.filters[0].Play();if(menu[17])SDiv(menu[17],0)} function popup(mn,mpos){if(ns4)_d.captureEvents(Event.MOUSEMOVE);_d.onmousemove=getMouseXY;if(isNaN(mn)){for(a=1;a0)timo.src=nsrc} } container=eval(lyr); if(subfound) { v1=v1.substring(5,99); menu=eval(v1); omnu=v1; mi=gmobj(v1); gp=gpos(gmobj(lyr)); h3=""; if(container[11])h3="h"; if(ns4){tel=gpos(_d.layers[lyr].document.layers.eval("el"+el))}else{tel=gpos(gmobj(h3+"el"+el))} np=gpos(mi); if(container[11]) { if(!container[5])container[5]=""; if(!opera&&_d.all&&!mac)gp[1]=gp[1]+container[4]; if(ns6) { if(ns61) { gp[1]=gp[1]+container[4]; } else { gp[1]=-1;gp[0]=gp[0]-container[4] } } if(mac)gp[0]=gp[0]-container[4]; if(container[5].indexOf("bottom")>=0) { tvar=container[1] if(!tvar)tvar=0; gp[0]=gp[0]-np[2]-tel[2] } if(tel[1]+gp[1]+np[3]>ww){gp[1]=ww-np[3]-tel[1];if(!_d.all)gp[1]=gp[1]-14} mtop=gp[0]+gp[2]-1; mleft=tel[1]+gp[1]; if(container[15])mleft=mleft-np[3]+tel[3]+(container[4]*2) m1=menu[1]; if(m1) { m1=m1+""; if(m1.indexOf("offset=")==0) { os=m1.substr(7,99); mtop=(parseInt(os)+mtop); } else { if(m1)mtop=parseInt(m1); } } m2=menu[2]; if(m2){m2=m2+""; if(m2.indexOf("offset=")==0) { os=menu[2].substr(7,99); mleft=(parseInt(os)+mleft); } else { if(m2)mleft=m2; } } spos(mi,mtop,mleft-1,null,null); } else { if(!ns61&&ns6)tel[0]=tel[0]-gp[0]; nt=tel[0]+gp[0]+suboffset_top; nl=gp[1]+tel[3]-suboffset_left; if((gp[1]+gp[3]+np[3])>=ww){nl=gp[1]-np[3]+suboffset_left} if(nt+np[2]>wh+sy){nt=wh-np[2]+sy;} if(menu[1]>=0)nt=menu[1] if(menu[2]>=0)nl=menu[2] spos(mi,nt,nl,null,null); } om+=","+v1; if(ShM==1) { sm(v1); if(!ns4)mi.style.visibility="visible"; } } else { frt=v1.indexOf(" ") if(frt>0&&v1.indexOf("show-menu=")>-1) { lt=parseLink(v1, "target"); if(lt) { v1=v1.substring(10,frt); pf=parent[lt]; pf.mn=pf.gmobj("menu"+pf.getMenuByName(v1)); menu=eval(lyr); gp=gpos(gmobj(lyr)); h3=""; if(container[11])h3="h"; if(ns4){mp=gpos(_d.layers[lyr].document.layers.eval("el"+el))}else{mp=gpos(gmobj(h3+"el"+el))} if(menu[11]) { fTop=pf.sy; fLeft=gp[1]+mp[1]+Frames_Top_Offset; } else { fTop=pf.sy+gp[0]+mp[0]; fLeft=100 } pf.spos(pf.mn,fTop,fLeft-100,null,null); pf.popup(v1); closeallmenus(); } } } ta=om.split(",") strt=0; for(a=0;afrs&&aA.m{text-decoration:none;}";_d.write(st);oatop=atop;}else{mtl=_d.layers[omnu].document.layers.eval("el"+(el-1)); if(oatop==atop){atop+=mtl.clip.height}else{atop=menu[4];}oatop=atop}if(menu[11]){atop=menu[4];if(oaleft==aleft){aleft+=mtl.clip.width+arg[8]}else{aleft=menu[4];oaleft=aleft}oaleft=aleft}else{aleft=menu[4];}} if(hlnk.substring(0,5)=="show-"){arg[1]=arg[1].toLowerCase();if(arg[7]==hlnk) if(arg[6])arg[7]=arg[6];else arg[7]="";hlnk="#";if (arg[6]+" "!="undefined ")hlnk=arg[6];} pI="popi('"+arg[1]+"','"+arg[5]+"',"+el+");" if(arg[1].substring(0,5)=="show-"&&(!menu[11]||menu[6][16])&&(menu[11]||menu[6][10])){im++;ims="im"+im+"_"+a+"_"+el+"_"+arg[5];ti=arg[2][10];if(menu[6][16]&&menu[11])ti=menu[6][16];if(ns4){sti="";subimg=""+sti+"";}else{subimg=""};imar[im]=ims;}omp=mp;ofc=arg[2][0];ofb=arg[2][1];onc=arg[2][2];onb=arg[2][3];ltarg=" ";lOnfunc="";lOffunc="";ltype="";lalign=menu[8];if(!lalign)lalign="left" if(hlnk.indexOf(" ")>0) { _al=parseLink(hlnk,"align");if(_al)lalign=_al; ltarg=parseLink(hlnk,"target"); if(ltarg)ltarg=" target="+ltarg lOnfunc=parseLink(hlnk,"onfunction")+";"; lOffunc=parseLink(hlnk,"offfunction")+";"; ltype=parseLink(hlnk,"type"); tofc=parseLink(hlnk,"offfontcolor");if(tofc)(ofc=cHexColor(tofc)) tofb=parseLink(hlnk,"offbackcolor");if(tofb)(ofb=cHexColor(tofb)) tonc=parseLink(hlnk,"onfontcolor");if(tonc)(onc=cHexColor(tonc)) tonb=parseLink(hlnk,"onbackcolor");if(tonb)(onb=cHexColor(tonb)) hlnk=parseLink(hlnk,"link"); } if(arg[7]+""=="undefined"){arg[7]=hlnk} if(ltype=="form"){onc=ofc;onb=ofb;mp="default"} if(ltype=="header"&&arg[2][17]){ofc=arg[2][17];ofb=arg[2][18];onc=arg[2][17];onb=arg[2][18];mp="default"} smO="ShM=1;";smC=""; if(menu[16]==1){smO="";hlnk="javascript:ShM=1;"+pI} if(hlp[14])if(location.href.indexOf(hlnk)>0&&(hlnk.substr(-1,1)!="/"))smc=el if(hlnk!="#"&&smc==el&&arg[2][14]){ofc=arg[2][14];ofb=arg[2][15];} if(ltype=="form"||hlnk=="#"||ltype=="header"){mp="default";if(ns4){hlnk=""}} pd="popdn(this," + el + ", '" + arg[5] + "', '"+arg[1]+"', '"+ofb+"', '"+ofc+"');" if(arg[0].indexOf("=0) { ipos=arg[0].indexOf(""+hlnk+" style='color:" le=";text-decoration:none;font-size:"+arg[2][5]+";font-weight:"+arg[2][7]+";font-family:"+arg[2][8]+"' onmouseover=\"status='"+arg[7]+"';\">"+arg[0]+""+subimg+""+rsp+"" if(menu[11])nswid=menu[3]; else nswid=(menu[3]-(menu[4]*2)) lv=" left="+aleft+" width="+nswid+" top="+atop nsofb="";if(ofb)nsofb=" BGColor="+ofb nsonb="";if(onb)nsonb=" BGColor="+onb mt=""+ls+ofc+le mt+=""+ls+onc+le }else{ mt=""; if(menu[11]){bgc=hlp[4];if(hlp[11])bgc=hlp[12]; mt+="
";dlft=dlft+menu[3]-(menu[4]*2)+menu[4]} rsp=0;if (lalign=="right") rsp=7; mt+=hlnk dw=(menu[3]-(2*menu[4]+dwd)) if(dw+" "=="NaN "){dw=""}else{dw="width:"+dw+"px"} if(!menu[3]&&ie4)dw="width:1px"; if(menu[11]&&opera){dw="position:absolute;"} if(isNaN(arg[2][9])) { padd=arg[2][9] } else { psp=arg[2][9]+"px " padd=psp+psp+psp+psp } //padd=" 10px 10px 10px 10px ;"; //dw="width:200px;"; if(menu[11]&&menu[3]>0)dw="position:absolute;width:"+menu[3]+"px" //if(menu[11])alert(dw) mt+="
" mt+=arg[0]+"
"; mt+="";if (menu[11]){mt+="
"} mt+=subimg } mp=omp _d.write(mt);el++; } function dmenu(mnu){ menu=eval(mnu); menu[21]=new Array() if(menu[7]){parr[parr.length]=mnu.substr(4,3);} atop=menu[4]; if(!atop)atop=0; hlp=menu[6]; if(!menu[4])menu[4]=0; if(ns4)eq="="; else eq=":" for(z=0;z<19;z++) { if(z==5)z=12; if(z==16)z++; if(hlp[z]&&hlp[z].charAt(0)!="#")hlp[z]=cHexColor(hlp[z]); } if(el)ns6c=3;else ns6c=2;ns6w=0;if(menu[8]=="right"&&ns6)ns6w=7; if (menu[3]<1)menu[3]="undefined" if(ns4) { thw=menu[3] if(menu[11]) { ic=(menu.length-ac)/5; thw=(menu[3]*ic)-(menu[4]*ic)+menu[4] } bgc=""; if(hlp[4])bgc="bgColor="+hlp[4] if (hlp[11]) { bgc="bgColor="+hlp[13] } mt="" if (hlp[11]) { mt+="" } mt+="" } else { iedf="";if(!opera&&!mac&&_d.all&&menu[9]) { iedf=" filter:";flt=menu[9].split("\;");for(fx=0;fx" } _d.write(mt) x=0; dlft=0 aleft=0; for(b=ac;b" if(hlp[11]) {txt+="" } } } } else { mbw=menu[b];bc=hlp[4];bl="";oc="";if(opera){bl="left:0;";oc="_d.getElementById('el"+el+"').style.background='"+hlp[1]+"';_d.getElementById('el"+el+"').style.color='"+hlp[0]+"'";if(opera&&mbw==0){mbw=1;bc=hlp[1];bl+="width:"+menu[3]-menu[4]+"px"}else{if(menu[4]==1)ocv=4;bl+="width:"+(menu[3]+(menu[6][9]*2)-menu[4])+"px"}} if(b+1==menu.length)mbw=0; if(mbw>0) { if (!menu[11]) { dwid=(menu[3]-(menu[4]*2)) if((_d.all&&_d.compatMode=="CSS1Compat")||(mac&&_d.doctype)) { dwid=menu[3]+(menu[6][9]*2)-(menu[4]*2) } //if(el==2)alert(_d.doctype) if (hlp[11]&&mbw==1) { txt="
" txt+="
" txt+="
\n
" } else { txt="
" txt+="
" txt+="
" txt+="
" } } } } _d.write(txt); omnu=mnu; mt="" } oatop=-1; if (ns4){mt="
"}else{mt+="\n"} _d.write(mt) if (ns4) { ml=gmobj(mnu) ml.clip.height += menu[4] ml3d=_d.layers[mnu].document.layers.eval(mnu+"3d") if (hlp[11])ml3d.clip.height=ml.clip.height } menu[21][1]=el } function checs(e){stopchec=1;for(a=1;a0){stopchec=0;if (df!=0||osy!=sy){mi=gmobj("menu"+a);tm=gpos(mi);mit=tm[0];if(isNaN(menu[1]))menu[1]=0;df=parseInt(menu[1])+sy-mit;nt=df/followspeed;of1=nt.toString();ofr=of1.split("\.");if(ofr[1]+" "=="undefined ")ofr[1]=0;ofrac=ofrac+parseInt(ofr[1]);if(mac&&parseInt(nt)==0){clearTimeout(pu);return;}if(ofrac>10){ofrac=ofrac-10;if(df>=0){nt++}else{nt--}}spos(mi,mit+nt,null,null,null)}else{clearTimeout(pu);return;}osy=sy}}if(stopchec){osy=sy;return}pu=setTimeout('checs()',followrate);} function PlaceMenu(mn){if(ns4||ns6)pos="relative";else pos="absolute";mnt="
";menu=eval("menu"+getMenuByName(mn));menu[21][0]=mn+"DIV";_d.write(mnt)} function setpos(){ for(a=1;a1&&oww>0&&(ns4||opera)&&(owh!=wh||oww!=ww)){if(nsmatch)location.reload()}if(MLoaded==1&&owh==wh&&oww==ww)nsmatch=1;if(opera)nsmatch=1;if(sy!=osy)checs();if(MLoaded==1||(owh!=wh||oww!=ww)){setpos();sis();MLoaded=2;}if(MLoaded){oww=ww;owh=wh;}mspu=setTimeout('MScan()',250)} function Minit() { el=0;df=-1; if ((_d.all&&_d.getElementById)&&!mac) document.write(""); for(x=0;x