timer=0;d=document smc=-1; 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 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";atop=5;oatop=0;aleft=0;oaleft=1 var a,am,oa,im,om,flta;hlarr=new Array();hlcnt=0;hll=0 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;bgt="";if(!opera)bgt="Color" function moveXbySlicePos (x, img) { if (!document.layers) { var onWindows = navigator.platform ? navigator.platform == "Win32" : false; var macIE45 = document.all && !onWindows && getExplorerVersion() == 4.5; var par = img; var lastOffset = 0; while(par){ if( par.leftMargin && ! onWindows ) x += parseInt(par.leftMargin); if( (par.offsetLeft != lastOffset) && par.offsetLeft ) x += parseInt(par.offsetLeft); if( par.offsetLeft != 0 ) lastOffset = par.offsetLeft; par = macIE45 ? par.parentElement : par.offsetParent; } } else if (img.x) x += img.x; return x; } function moveYbySlicePos (y, img) { if(!document.layers) { var onWindows = navigator.platform ? navigator.platform == "Win32" : false; var macIE45 = document.all && !onWindows && getExplorerVersion() == 4.5; var par = img; var lastOffset = 0; while(par){ if( par.topMargin && !onWindows ) y += parseInt(par.topMargin); if( (par.offsetTop != lastOffset) && par.offsetTop ) {y += parseInt(par.offsetTop);}; if( par.offsetTop != 0 ) lastOffset = par.offsetTop; // alert(par.name+"_"+par.offsetTop); par = macIE45 ? par.parentElement : par.offsetParent; } } else if (img.y >= 0) y += img.y; return y; } 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 spos(gm,t_,l_,h_,w_){if(ns4){gms=gm;if(w_)gms.clip.width=w_;if(h_)gms.clip.height=h_;}else if(opera){gms=gm.style;if(w_)gms.pixelWidth=w_;if(h_)gms.pixelHeight=h_}else{gms=gm.style;if(w_)gms.width=w_;if(h_)gms.height=h_;}if(t_)gms.top=t_;if(l_)gms.left=l_} 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 { 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(); t_=moveYbySlicePos(t_,gm); gpa[0]=t_; l_=moveXbySlicePos(l_,gm); gpa[1]=l_; gpa[2]=h_; gpa[3]=w_; return(gpa) } function gtelpos(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 {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 close_el(){for(xa=hlarr.length-1;xa>=0;xa--){ti=hlarr[xa].split("-");tmenu=eval("menu"+ti[0]);if(ns4){shl(ti[0]-1,ti[1],'hide');}else{arg=gmobj("el"+ti[1]);arg.style.background=tmenu[5][1];if(opera)arg.style.background="#"+tmenu[5][1];arg.style.color="#"+tmenu[5][0];}if("menu"+ti[0]==hll){if(ns4)shl(ti[0]-1,hel,'show');return}}hlcnt=0;hlarr=new Array()} function closeallmenus(){om=0;if(ns4){omv.visibility="hide"}for(a=1;aoh)oh=typ[2] } if(d.all){oh=oh+(menu[3]*2);tw=tw+menu[3];} if(ns6||opera){tw=tw-menu[3]} spos(mn,null,null,oh,tw) } } function sm(v1){if(flta){ap=gmobj(v1);if(ap.filters[0]) ap.filters[0].Apply()}else{if(menu[8]){ts=menu[8].substr(0,4);if (ts.toUpperCase()=="FADE"){ //ap=gmobj(v1); //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} function shl(lyr,el,s){clearTimeout(timer);mt=d.layers[lyr].document.layers.eval("el"+el);omv.visibility="hide";menu=eval(lyr);if(menu[13]!="form")mt.visibility=s;omv=mt;} function popi(v1,lyr,el) { sel="smenu="+el+"#" if(!om)om=lyr clearTimeout(timer); 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;eD0) timo.src=nsrc; } if(v1.substring(0,5)=="show-") { v1=v1.substring(5,20); menu=eval(v1); omnu=v1; container=eval(lyr); mi=gmobj(v1); if(!menu[0]||!menu[1]) { if (lyr=="menu1") { gp=gpos(gmobj(lyr)) }else { gp=gtelpos(gmobj(lyr)) } h3=""; if(container[10])h3="h"; if(ns4){tel=gtelpos(d.layers.eval(lyr).document.layers.eval("el"+el))}else{tel=gtelpos(gmobj(h3+"el"+el))} np=gpos(mi); if(container[10]) { if(!ns61&&ns6){gp[1]=-1;gp[0]--} if(ns4||mac)gp[1]--; if(mac)gp[0]--; if(np[2]+gp[0]>wh){gp[0]=gp[0]-np[2]-tel[2]} spos(mi,gp[0]+gp[2]-1,tel[1]+gp[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[3]+nl>(ww-25)){nl=gp[1]-np[3]+suboffset_left;} spos(mi,nt,nl,null,null); } } sm(v1); om+=","+v1; if(!ns4)mi.style.visibility="visible"; } ta=om.split(",") strt=0; for(a=0;afrs&&aA.m{text-decoration:none;}";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(this," + el + ", '" + arg[5] + "', '"+arg[1]+"');" if(arg[0].indexOf("=0){ipos=arg[0].indexOf("";}else{subimg=""}imar[im]=ims;} ltarg=" "; lpos=hlnk.toLowerCase(hlnk).indexOf(" target="); if(lpos>0){lta=hlnk.split(" ");ltarg=lta[1];hlnk=lta[0]} if(ns4){ rsp="" tdwd=" width="+menu[2] if(!menu[7]||menu[7]=="left")tdwd="" if (menu[7]=="right") rsp="" ls=""+rsp+"
"+arg[0]+""+subimg+"
" lv=" left="+aleft+" width="+(menu[2]-(menu[3]*2))+" top="+atop mt=""+ls+arg[2][0]+le mt+=""+ls+arg[2][2]+le }else{ mt="";hght=""; if(subimg==""){subimg1="  "}else{subimg1=""} if (menu[10]){bgc=hlp[4];if(hlp[11])bgc=hlp[12];mt+=""} } d.write(mt) if(smc==el&&arg[2][14]){arg[2][0]=ofc;arg[2][1]=obc;}el++ } function dmenu(mnu){ menu=eval(mnu);atop=menu[3];hlp=menu[5];if(!menu[3])menu[3]=0; if(hlp[14]&&el==0){tc=d.cookie;tp=tc.indexOf("smenu=");smc=tc.substr(tp+6,10);smc=smc.substr(0,smc.indexOf("#"));if(!smc)smc=-1} 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="" if (hlp[11]){mt+=""}mt+=""} else { iedf="";if(!opera&&!mac&&d.all&&menu[8]) { iedf=" filter:";flt=menu[8].split("\;");for(fx=0;fx" }else { mt=""} 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 } } function checs(e) { if(d.all){sy=d.body.scrollTop}else{sy=pageYOffset} if(opera){sy=pageYOffset} for(a=1;a0) { if (df!=0||osy!=sy) { mi=gmstyle("menu"+a); mit=parseInt(mi.top); if(isNaN(menu[0]))menu[0]=0; df=parseInt(menu[0])+sy-mit; nt=df/followspeed; of1=nt.toString(); ofr=of1.split("\."); if(ofr[1]+" "=="undefined ")ofr[1]=0; ofrac=ofrac+parseInt(ofr[1]); if(ofrac>10) { ofrac=ofrac-10; if(df>=0){nt++}else{nt--} } mi.top=mit+nt } osy=sy } } pu=setTimeout('checs()',followrate) } function setpos() { if(d.all){ww=d.body.clientWidth;wh=d.body.clientHeight;}else{ww=window.innerWidth;wh=window.innerHeight;} if(opera){ww=window.innerWidth;wh=window.innerHeight;} for (a=1;afunction getflta(ap){try{if(ap.filters){flta=1}}catch(e){}}"); for(x=1;x")} frs=0 fre=0 } for(a=1;a