home *** CD-ROM | disk | FTP | other *** search
Wrap
//****** AllWebMenus Libraries Version # 127 ****** // Copyright (c) Likno Software 2000-2002 // The present javascript code is property of Likno Software // You may use this code only as part of the AllWebMenus software for creating web menus // Any unauthorized use, reverse-engineering, alteration, transmission, transformation, facsimile, or copying of any means (electronic or not) is strictly prohibited. // Removal of the present copyright notice is prohibited var reloadID;if (reloadID==null){reloadID=setInterval("awmDrift2();",500);}var awmhd=200,awmDefaultStatusbarText="",n=null,awmcrm,awmcre,awmmo,awmso,awmctm=n,awmuc,awmud,awmctu,awmun,awmdid,awmsc=new Array(),awmsht="",awmsoo=0,awmlsx=window.pageXOffset,awmlsy=window.pageYOffset,awmliw=window.outerWidth,awmlih=window.outerHeight,awmdemo=0,awmOperaOffsetX,awmOperaOffsetY;var awmalt=["left","center","right"],awmplt=["absolute","relative"],awmvlt=["visible","hidden","inherit"],awmctlt=["default","hand","crosshair","help","move","text","wait"];if (!awmun) awmun=0;if (awmcre>=0); else awmcre=0;window.onunload=awmwu; function awmiht (image){return "<img src='"+awmMenuPath+awmImagesPath+"/"+awmImagesColl[image*3]+"' width="+awmImagesColl[image*3+1]+" height="+awmImagesColl[image*3+2]+" align='absmiddle'>";} function awmatai (text,image,algn){if (text==null) text="";var s1=(text!="" && text!=null && (algn==0 || algn==2) && image!=null)?"<br>":"";var s2=(image!=n)?awmiht (image):"";return "<nobr>"+((algn==0 || algn==3)?s2+s1+text:text+s1+s2)+"</nobr>";} function awmCreateCSS (pos,vis,algnm,fgc,bgc,bgi,fnt,tdec,bs,bw,bc,pd,crs){if (awmso>=0) awmso++; else awmso=0;var style={ id:"AWMST"+awmso,id2:"AWMSTTD"+awmso,pos:pos,vis:vis,algnm:algnm,fgc:fgc,bgc:bgc,bgi:bgi,fnt:fnt,tdec:tdec,bs:bs,bw:(bs=="none")?0:bw,bc:bc,zi:awmzindex,pd:pd,crs:crs};awmsht+="."+style.id+" {position:absolute; visibility:hidden; "+"text-align:"+awmalt[algnm]+"; "+((fnt!=n)?"font:"+fnt+"; ":"")+((tdec!=n)?"text-decoration:"+tdec+"; ":"")+((fgc!=n)?"color:"+fgc+"; ":"")+"background-color:"+((bgc!=n)?bgc+"; ":"transparent; ")+((bgi!=n)?"background-image:url('"+awmMenuPath+awmImagesPath+"/"+awmImagesColl[bgi*3]+"'); ":"")+((bs!=n)?"border-style:"+bs+"; ":"")+((bw!=n)?"border-width:"+bw+"px; ":"")+((bc!=n)?"border-color:"+bc+"; ":"")+" padding:"+pd+"; cursor:"+awmctlt[crs]+"; z-index:"+style.zi+"}";awmsht+="."+style.id2+" {text-align:"+awmalt[algnm]+"; "+((fnt!=n)?"font:"+fnt+"; ":"")+((tdec!=n)?"text-decoration:"+tdec+"; ":"")+((fgc!=n)?"color:"+fgc+"; ":"")+"background-color:transparent;"+"}";awmsc[awmsc.length]=style;} function awmCreateMenu (cll,swn,swr,mh,ud,sa,mvb,dft,crn,dx,dy,ss,ct,cs,ts,tn,ttt,ti,tia,dbi,ew,eh,jcoo,jcoc){if (awmmo>=0) awmmo++; else {awmm=new Array(); awmmo=0};var me={ ind:awmmo,nm:awmMenuName,cn:new Array(),fl:!awmsc[cs].pos,cll:cll,mvb:mvb,dft:dft,crn:crn,dx:(ct<2)?dx:0,dy:dy,ss:ss,sht:"<STYLE>.awmGeneric{background-color:transparent}"+awmsht+"</STYLE>",rep:0,mio:0,st:awmOptimize?2:3,addSubmenu:awmas,ght:awmmght,whtd:awmmwhttd,buildMenu:awmbmm,cm:awmmcm};me.pm=me;me.addSubmenu(ct,swn,swr,mh,ud,sa,1,cs,ts,tn,ttt,ti,tia,dbi,ew,eh,jcoo,jcoc);if (typeof(awmRelativeCorner)=='undefined'){me.rc=0} else {me.rc=awmRelativeCorner;awmRelativeCorner=0}me.cn[0].pi=null;if (mvb) document.onmousemove=awmotmm;awmm[awmmo]=me;awmsht="";return me.cn[0];} function awmas (ct,swn,swr,shw,ud,sa,od,cs,ts,tn,ttt,ti,tia,dbi,ew,eh,jcoo,jcoc){cnt={ id:"AWMEL"+(awmcre++),it:new Array(),tid:"AWMEL"+(awmcre++),ct:ct,swn:swn,swr:swr,shw:shw,ud:ud,sa:sa,od:od,cs:awmsc[cs+awmsoo],ts:(ts!=null)?awmsc[ts+awmsoo]:null,tn:tn,ttt:ttt,ti:ti,ht:(tn!=null || ti!=null),tia:tia,dbi:dbi,ew:ew,eh:eh,jcoo:jcoo,jcoc:jcoc,pi:this,pm:this.pm,pm:this.pm,siw:0,wtd:false,argd:0,ft:0,mio:0,hsid:null,uid:null,dox:0,doy:0,addItem:awmai,addItemWithImages:awmaiwi,show:awmcs,fe:awmcfe,arr:awmca,ght:awmcght,pc:awmpc,hdt:awmchdt,onmouseover:awmocmo,onmouseout:awmocmot,otmd:awmotmd,otmu:awmotmu,otmm:awmotmm};this.sm=cnt;cnt.pm.cn[cnt.ind=cnt.pm.cn.length]=cnt;cnt.cd=(cnt.ind==0 && cnt.pm.cll==0)?0:1;return cnt;} function awmai (st0,st1,st2,in0,in1,in2,tt,sbt,jc0,jc1,jc2,url,tf){var itm={ id:"AWMEL"+(awmcre++),style:[(st0==n)?n:awmsc[st0+awmsoo],(st1==n)?n:awmsc[st1+awmsoo],(st2==n)?n:awmsc[st2+awmsoo]],inm:[in0,(in1==n)?in0:in1,(in2==n)?in0:in2],ii:[n,n,n],ia:[n,n,n],hsi:[n,n,n],tt:tt,sbt:sbt,jc:[jc0,jc1,jc2],tf:tf,top:0,left:0,layer:[n,n,n],layerTD1:[n,n,n],layerTD2:[n,n,n],ps:this,pm:this.pm,sm:null,ght:awmight,shst:awmiss,addSubmenu:awmas,onmouseover:awmoimo,onmouseout:awmoimot,onmousedown:awmoimd,onmouseup:awmoimu};if (url!=null){var prf=url.substring(0,7);if ((prf!="http://") && (prf!="https:/") && (prf!="mailto:") && (prf!="file://") && (url.substring(0,6)!="ftp://") && (url.substring(0,6)!="mms://") && (url.substring(0,1)!="/")) url=awmMenuPath+"/"+url;}itm.url=url;this.it[itm.ind=this.it.length]=itm;return itm;} function awmaiwi (st0,st1,st2,in0,in1,in2,tt,ii0,ii1,ii2,ia0,ia1,ia2,hsi0,hsi1,hsi2,sbt,jc0,jc1,jc2,url,tf){var itm=this.addItem (st0,st1,st2,in0,in1,in2,tt,sbt,jc0,jc1,jc2,url,tf);itm.ii=[ii0,ii1,ii1];itm.ia=[ia0,ia1,ia2];itm.hsi=[hsi0,hsi1,hsi2];this.siw=Math.max(this.siw,Math.max(((hsi0!=n)?awmImagesColl[hsi0*3+1]:0),Math.max(((hsi1!=n)?awmImagesColl[hsi1*3+1]:0),((hsi2!=n)?awmImagesColl[hsi2*3+1]:0))));return itm;} function awmmght(cnt){for (var cno=0; cno<this.cn.length; cno++)this.cn[cno].ght();} function awmcght(){var hct="";this.htx="<div id='"+this.id+"'"+hct+" class='"+this.cs.id+"' onMouseOver='this.prc.onmouseover();' onMouseOut='this.prc.onmouseout();'>";if (this.ht){var es="";if (this.pi==null && this.pm.mvb) es=" onMouseMove='this.prc.otmm();' onMouseDown='this.prc.otmd();' onMouseUp='this.prc.otmu();'";this.htx+="<table id='"+this.tid+"_0' title='"+this.ttt+"' class='"+this.ts.id+"' width=0% border='0' cellpadding='0' cellspacing='0'"+es+"><tr><td class='"+this.ts.id2+"' id='"+this.tid+"_9_0' valign='middle' style='position:absolute;'>"+awmatai(this.tn,this.ti,this.tia)+"</td></tr></table>";}for (p=0; p<this.it.length; p++){this.htx+=this.it[p].ght();}this.htx+="</div>";return this.htx;} function awmight(){var htx="";for (var q=0; q<this.pm.st; q++){htx+="<table id='"+this.id+"_"+q+"' title='"+this.tt+"' width='0%' class='"+this.style[q].id+"' border='0' cellpadding='0' cellspacing='0'><tr><td class='"+this.style[q].id2+"' id='"+this.id+"_9_"+q+"' valign=middle style='position:absolute;' align='"+awmalt[this.style[q].algnm]+"'>"+awmatai(this.inm[q],this.ii[q],this.ia[q])+"</td>";if (this.ps.siw>0){htx+="<td id='"+this.id+"_9_"+q+"_4' class='"+this.style[q].id2+"' width='"+this.ps.siw+"' style='position:absolute;'>";if (this.hsi[q]!=n) htx+=awmiht(this.hsi[q]);htx+="</td>";}htx+="</tr></table>";}htx+="<img id='"+this.id+"_4' title='"+this.tt+"' style='position:absolute; cursor:"+awmctlt[this.style[0].crs]+"; z-index:"+awmzindex+";' src='"+awmMenuPath+awmLibraryPath+"/dot.gif' onMouseOver='this.pi.onmouseover();' onMouseOut='this.pi.onmouseout();' onMouseDown='this.pi.onmousedown();' onMouseUp='this.pi.onmouseup();'>";return htx;} function awmmwhttd(){var s="",crc;s=this.sht;for (var i=0; i<this.cn.length; i++) s+=this.cn[i].htx;document.write(s);} function awmcfe(){if (this.ft) return;this.layer=document.getElementById(this.id);this.layer.prc=this;if (this.ht){this.tl=document.getElementById(this.tid+"_0");this.tl.prc=this;}for (var p=0; p<this.it.length; p++){var tmpcont=document.getElementById(this.it[p].id+"_4");while (typeof(tmpcont)!="object") var tmpcont=document.getElementById(this.it[p].id+"_4");this.it[p].elr=tmpcont;this.it[p].elr.pi=this.it[p];for (var q=this.pm.st-1; q>=0; q--){this.it[p].layerTD1[q]=document.getElementById(this.it[p].id+"_9_"+q);this.it[p].layer[q]=this.it[p].layerTD1[q].parentNode.parentNode;this.it[p].layer[q].pi=this.it[p];}if (this.it[p].ps.siw>0){for (var q=this.pm.st-1; q>=0; q--){this.it[p].layerTD2[q]=document.getElementById(this.it[p].id+"_9_"+q+"_4");}}}this.ft=1;} function awmca(){var tw, th, iw, ih, mwt=0, mht=0, nl=nt=this.cs.bw;var wts=new Array(), hts=new Array();if (this.ht){var tmpcont=document.getElementById(this.tid+"_9_0");tw=mwt=tmpcont.style.pixelWidth+2*this.ts.bw+2*this.ts.pd;th=mht=tmpcont.style.pixelHeight+2*this.ts.bw+2*this.ts.pd;}for (var p=0; p<this.it.length; p++){iw=ih=0;for (var q=this.pm.st-1; q>=0; q--){iw=Math.max(iw,this.it[p].layerTD1[q].style.pixelWidth+this.siw+2*this.it[p].style[q].bw+2*this.it[p].style[q].pd);ih=Math.max(ih,Math.max(this.it[p].layerTD1[q].style.pixelHeight,(this.siw==0)?0:this.it[p].layerTD2[q].style.pixelHeight)+2*this.it[p].style[q].bw+2*this.it[p].style[q].pd);mwt=Math.max(iw,mwt);mht=Math.max(ih,mht);}wts[p]=iw;hts[p]=ih;}if (this.ht){this.tl.style.pixelLeft=this.tl.style.pixelTop=nl;this.tl.style.pixelWidth=((this.ew)?mwt:tw);this.tl.style.pixelHeight=((this.eh)?mht:th);var tmpw1=this.tl.style.pixelWidth-2*this.ts.bw;var tmpw2=tmpcont.style.pixelWidth;var tmpal=this.ts.algnm;tmpcont.style.pixelLeft=this.ts.bw+((tmpal==0)?0:((tmpal==1)?(tmpw1-tmpw2)/2:tmpw1-tmpw2));tmpcont.style.pixelTop=this.ts.bw+this.ts.pd;this.tl.style.visibility="visible";if (this.ct==0) nt+=this.tl.style.pixelHeight+this.dbi; else nl+=this.tl.style.pixelWidth+this.dbi;}for (var p=0; p<this.it.length; p++){for (var q=0; q<this.pm.st; q++){this.it[p].layer[q].style.pixelLeft=nl;this.it[p].layer[q].style.pixelTop=nt;this.it[p].layer[q].style.pixelWidth=((this.ew)?mwt:wts[p]);this.it[p].layer[q].style.pixelHeight=((this.eh)?mht:hts[p]);var tmpw1=this.it[p].layer[q].style.pixelWidth-this.siw-2*this.it[p].style[q].bw;var tmpw2=this.it[p].layerTD1[q].style.pixelWidth;var tmpal=this.it[p].style[q].algnm;this.it[p].layerTD1[q].style.pixelLeft=this.it[p].style[q].bw+((tmpal==0)?0:((tmpal==1)?(tmpw1-tmpw2)/2:tmpw1-tmpw2));this.it[p].layerTD1[q].style.pixelTop=(this.it[p].layer[q].style.pixelHeight-this.it[p].layerTD1[q].style.pixelHeight)/2;if (this.siw>0){this.it[p].layerTD2[q].style.pixelLeft=this.it[p].layer[q].style.pixelWidth-this.it[p].layerTD2[q].style.pixelWidth-this.it[p].style[q].bw;this.it[p].layerTD2[q].style.pixelTop=(this.it[p].layer[q].style.pixelHeight-this.it[p].layerTD2[q].style.pixelHeight)/2;}this.it[p].layer[q].style.visibility=(q==0)?"visible":"hidden";}this.it[p].elr.style.pixelLeft=this.it[p].layer[0].offsetLeft;this.it[p].elr.style.pixelTop=this.it[p].layer[0].offsetTop;this.it[p].elr.style.pixelWidth=this.it[p].layer[0].style.pixelWidth;this.it[p].elr.style.pixelHeight=this.it[p].layer[0].style.pixelHeight;if (this.ct==0) nt+=this.it[p].layer[0].style.pixelHeight+this.dbi; else nl+=this.it[p].layer[0].style.pixelWidth+this.dbi;}if (this.ct==0){this.layer.style.pixelWidth=mwt+2*this.cs.bw;this.layer.style.pixelHeight=nt+this.cs.bw-this.dbi;} else {this.layer.style.pixelWidth=nl+this.cs.bw-this.dbi;this.layer.style.pixelHeight=mht+2*this.cs.bw;}if (this.ct==2) this.layer.style.pixelWidth=window.innerWidth;this.offLeft=this.layer.offsetLeft;this.offTop=this.layer.offsetTop;this.argd=1;} function awmcs(sf,x,y){if (sf){this.cd=0;if (this.layer.style.pixelWidth<this.cs.bw*3) this.arr();if (arguments.length==1) this.pc();else {this.left=this.layer.style.pixelLeft=x;this.top=this.layer.style.pixelTop=y;}this.layer.style.visibility="visible";if (this.jcoo!=null) eval(this.jcoo);} else {if (!this.ft || this.mio || this.cd) return;this.layer.style.visibility="hidden";clearInterval (this.uid);awmun=0;if (this.pi!=null) this.pi.shst(0);if (this.jcoc!=null && !this.cd) eval(this.jcoc);this.cd=1;}} function awmchdt(flg){var p;for (p=0; p<this.it.length; p++){if (this.it[p].sm!=n) this.it[p].sm.hdt(0);}if (arguments.length==1) this.show(0);} function awmmcm(){if (this.mio) return;for (var cno=(this.cll && awmctm==null)?0:1; cno<this.cn.length; cno++) this.cn[cno].show(0);if (awmSubmenusFrame!=""){for (p=0; p<this.cn[0].it.length; p++){if (this.cn[0].it[p].sm!=n) this.cn[0].it[p].sm.pm.cm();}}} function awmodmd(){for (mno=0; mno<awmm.length; mno++){awmm[mno].cm();}} function awmocmo(){this.mio=1;this.pm.mio=1;if (this.pi!=null) this.pi.shst((this.swn==0)?1:2);if (this.ind>0) clearTimeout(this.pi.ps.hsid);clearTimeout(this.hsid);} function awmocmot(){this.mio=0;this.pm.mio=0;if (!this.pm.ss){var nth=setTimeout("awmm["+this.pm.ind+"].cm();",awmhd);if (awmSubmenusFrame=="") this.hsid=setTimeout("awmm["+this.pm.ind+"].cn["+this.ind+"].hdt("+((this.ind==0)?"":"0")+");",awmhd);}} function awmiss(sts){if (sts==2 && this.pm.st==2) sts=1;for (q=0; q<this.pm.st; q++)this.layer[q].style.visibility=(q==sts)?"visible":"hidden";} function awmoimo(){if (awmctm!=null) return;if (awmdemo){awmdemo=0;return;}if (awmSubmenusFrame!=""){eval ("var frex=window.top."+awmSubmenusFrame);if (frex){eval("this.sm=window.top."+awmSubmenusFrame+".awm"+this.pm.nm+"_sub_"+(this.ind+1));if (this.sm){this.sm.pi=this;this.sm.pm.ss=this.pm.ss;} else this.sm=null;}}this.ps.mio=1;this.pm.mio=1;this.ps.hdt();this.shst(1);status=this.sbt;if (this.sm!=n) if (!this.sm.swn){clearTimeout(this.sm.hsid);this.sm.show(1);}if (this.jc[1]!=null) eval(this.jc[1]);} function awmoimot(){if (this.sm==null || (this.sm!=null && this.sm.cd)) this.shst(0);if (!this.pm.ss){if (this.sm!=n && awmSubmenusFrame=="") this.sm.hsid=setTimeout("awmm["+this.pm.ind+"].cn["+this.sm.ind+"].hdt(0);",awmhd);}status=awmDefaultStatusbarText;if (this.jc[0]!=null) eval(this.jc[0]);} function awmoimd(){this.shst(2);awmdemo=1;if (this.sm!=n) if (this.sm.swn){clearTimeout(this.sm.hsid);this.sm.show(1);}if (this.jc[2]!=null) eval(this.jc[2]);if (this.url!=null){if (this.tf==null) window.location=this.url;else if (this.tf=="new"){this.pm.mio=0;this.ps.mio=0;this.pm.cm();window.open(this.url);}else if (this.tf=="top") window.top.location=this.url;else eval("window.top."+this.tf+".location=this.url");}} function awmoimu(){this.shst(1);} function awmotmd(){this.pm.mio=0;awmctm=this;this.pm.cm();this.pm.mio=1;awmmox=event.clientX-awmctm.layer.offsetLeft;awmmoy=event.clientY-awmctm.layer.offsetTop;awmml=awmctm.layer.offsetLeft-awmctm.layer.style.pixelLeft;awmmt=awmctm.layer.offsetTop-awmctm.layer.style.pixelTop;} function awmotmm(){if (awmctm!=null){awmctm.left=awmctm.layer.style.pixelLeft=event.clientX-awmmox;awmctm.top=awmctm.layer.style.pixelTop=event.clientY-awmmoy;}} function awmotmu(){if (awmctm!=null){awmctm.pm.rep=1;awmctm=null;}} function awmpc(){var me=this.pm;var vl=window.pageXOffset,vt=window.pageYOffset,vr=vl+window.innerWidth,vb=vt+window.innerHeight;if (this.pi==null){var tmpEl=document.getElementById("awmAnchor-"+this.pm.nm);if (tmpEl){var x=0, y=0;while (tmpEl!=null){x+=tmpEl.style.pixelLeft;y+=tmpEl.style.pixelTop;tmpEl=tmpEl.parentElement;}this.left=this.top=0;if (me.rc==1 || me.rc==2){this.left-=this.layer.offsetWidth}if (me.rc==2 || me.rc==3){this.top-=this.layer.offsetHeight}this.left=this.layer.style.pixelLeft=x+((awmOperaOffsetX)?awmOperaOffsetX:0)+this.left;this.top=this.layer.style.pixelTop=y+((awmOperaOffsetY)?awmOperaOffsetY:0)+this.top;} else {var crn=me.crn;var dof=(this.pm.dft==1 || this.pm.dft==3)?vl:0;this.layer.style.pixelLeft=this.left=(crn==0 || crn==4 || crn==3)?(me.dx+dof):((crn==1 || crn==6 || crn==2)?vr-this.layer.style.pixelWidth-me.dx:vl+(vr-vl-this.layer.style.pixelWidth)/2);dof=(this.pm.dft==1 || this.pm.dft==2)?vt:0;this.layer.style.pixelTop=this.top=(crn==0 || crn==5 || crn==1)?(me.dy+dof):((crn==3 || crn==7 || crn==2)?vb-this.layer.style.pixelHeight-me.dy:vt+(vb-vt-this.layer.style.pixelHeight)/2);}} else {var psl=this.pi.ps.layer;var pil=this.pi.layer[0];this.lod=this.od;if (this.lod==0){if (this.pi.ps.ct==0)this.lod=((psl.offsetLeft+psl.style.pixelWidth+this.swr+this.layer.style.pixelWidth>vr) && (psl.offsetLeft-this.swr-this.layer.style.pixelWidth>vl))?2:1;else this.lod=((psl.offsetTop+psl.style.pixelHeight+this.swr+this.layer.style.pixelHeight>vb) && (psl.offsetTop-this.swr-this.layer.style.pixelHeight>vl))?2:1;}if (this.pi.ps.ct==0){this.left=this.layer.style.pixelLeft=(this.lod==1)?((awmSubmenusFrameOffset>-9000 && this.ind==0)?window.pageXOffset:psl.offsetLeft+psl.style.pixelWidth)+this.swr:psl.offsetLeft-this.layer.style.pixelWidth-this.swr;this.top=((this.sa==0)?psl.offsetTop+pil.offsetTop:((this.sa==1)?psl.offsetTop:((this.sa==2)?psl.offsetTop+psl.style.pixelHeight-this.layer.style.pixelHeight:psl.offsetTop+(psl.style.pixelHeight-this.layer.style.pixelHeight)/2)));this.layer.style.pixelTop=this.top+=((awmSubmenusFrameOffset>-9000 && this.ind==0)?awmSubmenusFrameOffset-this.pi.ps.doy+window.pageYOffset:0);if (this.top+this.layer.offsetHeight>vb) this.layer.style.pixelTop=this.top=vb-this.layer.offsetHeight;} else {this.left=(this.sa==0)?psl.offsetLeft+pil.offsetLeft:((this.sa==1)?psl.offsetLeft:((this.sa==2)?psl.offsetLeft+psl.style.pixelWidth-this.layer.style.pixelWidth:psl.offsetLeft+(psl.style.pixelWidth-this.layer.style.pixelWidth)/2));this.layer.style.pixelLeft=this.left+=((awmSubmenusFrameOffset>-9000 && this.ind==0)?awmSubmenusFrameOffset-this.pi.ps.dox+window.pageXOffset:0);if (this.left+this.layer.offsetWidth>vr) this.layer.style.pixelLeft=this.left=vr-this.layer.offsetWidth;this.top=this.layer.style.pixelTop=(this.lod==1)?((awmSubmenusFrameOffset>-9000 && this.ind==0)?window.pageYOffset:psl.offsetTop+psl.style.pixelHeight)+this.swr:psl.offsetTop-this.layer.style.pixelHeight-this.swr;}}} function awmwr(){if (!(awmSubmenusFrameOffset>-9000)){for (var mno=0; mno<awmm.length; mno++){if (!awmm[mno].rep) awmm[mno].cn[0].pc();if (awmm[mno].cn[0].ct==2) awmm[mno].cn[0].layer.style.pixelWidth=document.body.clientWidth;}}} function awmwu(){if (awmSubmenusFrameOffset>-9000){for (var mno=0; mno<awmm.length; mno++){if (awmm[mno].cn[0].pi!=null){awmm[mno].cn[0].pi.shst(0);awmm[mno].cn[0].pi.sm=null;}}}} function awmDrift2(){if (window.outerWidth!=awmliw || window.outerHeight!=awmlih){setTimeout("location.reload();",1000);clearInterval(reloadID);location.reload();}} function awmd(awmlsx,awmlsy){var csx=window.pageXOffset;var csy=window.pageYOffset;/*if (window.outerWidth!=awmliw || window.outerHeight!=awmlih){document.close;location.reload(true);}else {*/if (csx!=awmlsx ||csy!=awmlsy){for (var mno=0; mno<awmm.length; mno++){var crm=awmm[mno];crm.mio=0;crm.cm();if (crm.dft==1 || crm.dft==3){crm.cn[0].left=crm.cn[0].layer.style.pixelLeft+=csx-awmlsx;if (awmSubmenusFrame!='' && crm.cn[0].ct>0) crm.cn[0].dox=csx;}if (crm.dft==1 || crm.dft==2){crm.cn[0].top=crm.cn[0].layer.style.pixelTop+=csy-awmlsy;if (awmSubmenusFrame!='' && crm.cn[0].ct==0) crm.cn[0].doy=csy;}}awmlsx=csx;awmlsy=csy;}awmdid=setTimeout ("awmd("+awmlsx+","+awmlsy+");",100);} function awmbmm(noarrange){document.onmousedown=awmodmd;status="AllWebMenus: Building Menu #"+(this.ind+1);this.ght();this.whtd();for (var cno=0; cno<this.cn.length; cno++) this.cn[cno].fe();if (arguments.length==0){var tmpcont=document.getElementById(awmm[0].cn[0].it[awmm[0].cn[0].it.length-1].id+"_9_0");while (typeof(tmpcont)!="object") var tmpcont=document.getElementById(awmm[0].cn[0].it[awmm[0].cn[0].it.length-1].id+"_9_0");for (var mno=0; mno<awmm.length; mno++){for (var cno=0; cno<awmm[mno].cn.length; cno++){awmm[mno].cn[cno].arr();if (!awmm[mno].cll && awmm[mno].cn[cno].ind==0){var awmlsx=window.pageXOffset,awmlsy=window.pageYOffset;awmm[mno].cn[cno].show(1);}}}}status=awmDefaultStatusbarText;clearTimeout(awmdid);awmdid=setTimeout("awmd("+awmlsx+","+awmlsy+");",100);awmsoo=awmso+1;} function awmShowMenu (menuName,x,y,frame){var ml;if (arguments.length<4 || frame==null) ml=awmm;else {eval ("var frex=window.top."+awmSubmenusFrame);if (!frex) return;eval("ml=window.top."+frame+".awmm;");}if (ml){var i=0;while (ml[i].nm!=menuName && i<ml.length-1) i++;if (ml[i].nm==menuName){if (arguments.length<3 || x==null || y==null) ml[i].cn[0].show(1);else ml[i].cn[0].show(1,x,y);}ml=null;}}