// Copyright (c) Likno 2000-2002

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.innerWidth,awmlih=window.innerHeight,awmtest=1,awmNS4OffsetX,awmNS4OffsetY;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):"";var s3=(image==n)?"<img src='"+awmMenuPath+awmLibraryPath+"/dot.gif' class='AWMSTEL'>":"";return "<nobr>"+s3+((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,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:inherit; left:0; top:0; "+((bgc!=n)?"layer-background-color:"+bgc+"; ":"")+((bs!=n)?"border-style:"+bs+"; ":"")+((bw!=n && bs!="none")?"border-width:"+bw+"; ":"")+((bc!=n)?"border-color:"+bc+"; ":"")+" z-index:"+style.zi+"}";awmsht+="."+style.id+"td {"+((fnt!=n)?"font:"+fnt+"; ":"")+((tdec!=n)?"text-decoration:"+tdec+"; ":"")+((fgc!=n)?"color:"+fgc+"; ":"")+"}";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>"+((awmmo==0)?".AWMSTEL {position:absolute; left:0; top:0;}":"")+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);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,mio:0,hsid:null,uid:null,dox:0,doy:0,w:0,h:0,addItem:awmai,addItemWithImages:awmaiwi,show:awmcs,tb:awmctb,ab:awmcab,fe:awmcfe,gd:awmcgd,arr:awmca,ght:awmcght,pc:awmpc,unf:awmcu,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 dummyImg="<img src='"+awmMenuPath+awmLibraryPath+"/dot.gif' class='AWMSTEL'>";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],ps:this,pm:this.pm,sm:null,tai:["<nobr>"+dummyImg+in0+"</nobr>","<nobr>"+dummyImg+((in1==n)?in0:in1)+"</nobr>","<nobr>"+dummyImg+((in2==n)?in0:in2)+"</nobr>"],ght:awmight,ftc:awmItemFetch,gd:awmigd,arr:awmia,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.tai=[awmatai(itm.inm[0],itm.ii[0],itm.ia[0]),awmatai(itm.inm[1],itm.ii[1],itm.ia[1]),awmatai(itm.inm[2],itm.ii[2],itm.ia[2])];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){this.htx=this.cn[0].ght();}
function awmcght(){var is="",hct="";if (awmtest) hct=" style='visibility:hidden'";this.htx="<div id='"+this.id+"' class='"+this.cs.id+"'"+hct+">";if (!awmtest) this.htx+="<table border='0' cellpadding='0' cellspacing='0' "+((awmtest)?"width='0%'":"width='"+(this.w-((this.cs.bw>0)?6:0))+"' height='"+(this.h-((this.cs.bw>0)?6:0))+"'")+"><tr><td></td></tr></table>";if (this.ht){this.htx+="<div id='"+this.tid+"' class='"+this.ts.id+"'>";this.htx+="<table border='0' cellspacing='0' cellpadding='"+this.ts.pd+"' "+((awmtest)?"width='0%'":"width='"+(this.ttlw-((this.ts.bw>0)?5+this.ts.bw*2:0))+"' height='"+(this.ttlh-((this.ts.bw>0)?6+this.ts.bw*2:0))+"'")+"><td>";this.htx+="<table border='0' cellspacing='0' cellpadding='0' "+((awmtest)?"width='0%'":"width='100%' height='100%'")+">";this.htx+="<td class='"+this.ts.id+"td' valign='middle' align='"+awmalt[this.ts.algnm]+"'>";this.htx+=awmatai(this.tn,this.ti,this.tia)+"</td>";this.htx+="</table></td></table></div>";if (!awmtest){this.htx+="<div id='"+this.tid+"_4' class='AWMSTEL'><table border='0' cellspacing='0' cellpadding='0' width='"+this.ttlw+"' height='"+this.ttlh+"'><tr><td>"+((this.ts.crs!=0)?"<a href='javascript:void 0'><img alt='"+this.ttt+"' border=0 src='"+awmMenuPath+awmLibraryPath+"/dot.gif' width="+this.ttlw+" height="+this.ttlh+"></a>":"")+"</td></tr></table></div>";}}if (this.it.length>0) this.htx+=this.it[0].ght();this.htx+="</div>";if (this.ind<this.pm.cn.length-1) this.htx+=this.pm.cn[this.ind+1].ght();return this.htx;}
function awmight(){var htx="";q=0;htx+="<div id='"+this.id+"_"+q+"' class='"+this.style[q].id+"'>";htx+="<table border='0' cellspacing='0' cellpadding='"+this.style[q].pd+"' "+((awmtest)?"width='0%'":"width='"+(((this.ps.ew)?this.ps.mwt:this.w)-((this.style[q].bw>0)?6+this.style[q].bw*2:0))+"' height='"+(((this.ps.eh)?this.ps.mht:this.h)-((this.style[q].bw>0)?6+this.style[q].bw*2:0))+"'")+"><td>";htx+="<table border='0' cellspacing='0' cellpadding='0' "+((awmtest)?"width='0%'":"width='100%' height='100%'")+">";htx+="<td valign='middle' align='"+awmalt[this.style[q].algnm]+"'><span class='"+this.style[q].id+"td'>"+this.tai[0]+"</span></td>";if (this.ps.siw>0){htx+="<td valign='middle'"+((awmtest)?"":"width='1%'")+">";htx+=(this.hsi[q]==n)?"<img src='"+awmMenuPath+awmLibraryPath+"/dot.gif' width='"+this.ps.siw+"' height='1'>":awmiht(this.hsi[q]);htx+="</td>";}htx+="</table></td></table></div>";var htmlText1="";q=1;htmlText1+="<div id='"+this.id+"_"+q+"' class='"+this.style[q].id+"'>";htmlText1+="<table border='0' cellspacing='0' cellpadding='"+this.style[q].pd+"' "+((awmtest)?"width='0%'":"width='"+(((this.ps.ew)?this.ps.mwt:this.w)-((this.style[q].bw>0)?6+this.style[q].bw*2:0))+"' height='"+(((this.ps.eh)?this.ps.mht:this.h)-((this.style[q].bw>0)?6+this.style[q].bw*2:0))+"'")+"><td>";htmlText1+="<table border='0' cellspacing='0' cellpadding='0' "+((awmtest)?"width='0%'":"width='100%' height='100%'")+">";htmlText1+="<td valign='middle' align='"+awmalt[this.style[q].algnm]+"'><span class='"+this.style[q].id+"td'>"+this.tai[1]+"</span></td>";if (this.ps.siw>0){htmlText1+="<td valign='middle'"+((awmtest)?"":"width='1%'")+">";htmlText1+=(this.hsi[q]==n)?"<img src='"+awmMenuPath+awmLibraryPath+"/dot.gif' width='"+this.ps.siw+"' height='1'>":awmiht(this.hsi[q]);htmlText1+="</td>";}htmlText1+="</table></td></table></div>";var htmlText2="";if (this.pm.st==3){q=2;htmlText2+="<div id='"+this.id+"_"+q+"' class='"+this.style[q].id+"'>";htmlText2+="<table border='0' cellspacing='0' cellpadding='"+this.style[q].pd+"' "+((awmtest)?"width='0%'":"width='"+(((this.ps.ew)?this.ps.mwt:this.w)-((this.style[q].bw>0)?6+this.style[q].bw*2:0))+"' height='"+(((this.ps.eh)?this.ps.mht:this.h)-((this.style[q].bw>0)?6+this.style[q].bw*2:0))+"'")+"><td>";htmlText2+="<table border='0' cellspacing='0' cellpadding='0' "+((awmtest)?"width='0%'":"width='100%' height='100%'")+">";htmlText2+="<td valign='middle' align='"+awmalt[this.style[q].algnm]+"'><span class='"+this.style[q].id+"td'>"+this.tai[2]+"</span></td>";if (this.ps.siw>0){htmlText2+="<td valign='middle'"+((awmtest)?"":"width='1%'")+">";htmlText2+=(this.hsi[q]==n)?"<img src='"+awmMenuPath+awmLibraryPath+"/dot.gif' width='"+this.ps.siw+"' height='1'>":awmiht(this.hsi[q]);htmlText2+="</td>";}htmlText2+="</table></td></table></div>";}htx+=htmlText1+htmlText2;if (!awmtest){htx+="<div id='"+this.id+"_4' class='AWMSTEL' ><table border='0' cellspacing='0' cellpadding='0' width='"+((this.ps.ew)?this.ps.mwt:this.w)+"' height='"+((this.ps.eh)?this.ps.mht:this.h)+"'><tr><td>";if (this.style[1].crs!=0) htx+="<a href='javascript:void(0);'><img src='"+awmMenuPath+awmLibraryPath+"/dot.gif' width='"+((this.ps.ew)?this.ps.mwt:this.w)+"' height='"+((this.ps.eh)?this.ps.mht:this.h)+"' border='0' alt='"+this.tt+"'></a>";htx+="</td></tr></table></div>";}if (this.ind<this.ps.it.length-1) htx+=this.ps.it[this.ind+1].ght();return htx;}
function awmmwhttd(){var s="",crc;if (awmtest) document.write(this.sht);document.write(this.htx);}
function awmItemFetch(){if (!awmtest){this.elr=this.ps.layer.document.layers[this.id+"_4"];this.elr.pi=this;this.elr.onmouseover=awmoimo;this.elr.onmouseout=awmoimot;this.elr.onmousedown=awmoimd;this.elr.onmouseup=awmoimu;}this.layer[0]=this.ps.layer.document.layers[this.id+"_0"];this.layer[0].pi=this;this.layer[1]=this.ps.layer.document.layers[this.id+"_1"];this.layer[1].pi=this;if (this.pm.st==3){this.layer[2]=this.ps.layer.document.layers[this.id+"_2"];this.layer[2].pi=this;}if (this.ind<this.ps.it.length-1) this.ps.it[this.ind+1].ftc();}
function awmcfe(){this.layer=document.layers[this.id];this.layer.prc=this;if (!awmtest){this.layer.onmouseover=awmocmo;this.layer.onmouseout=awmocmot;}if (this.ht){this.tl=this.layer.document.layers[this.tid];this.tl.prc=this;if (!awmtest){this.tel=this.layer.document.layers[this.tid+"_4"];this.tel.pt=this.tl;if (this.pm.mvb && this.ind==0){this.tel.prc=this;this.tel.onmouseover=awmOnTitleMouseOver;this.tel.onmouseout=awmOnTitleMouseOut;this.tel.onmousedown=awmotmd;this.tel.onmousemove=awmotmm;this.tel.onmouseup=awmotmu;}}}if (this.it.length>0) this.it[0].ftc();}
function awmigd(){this.w=this.h=0;this.w=Math.max(this.w,this.layer[0].clip.width);this.h=Math.max(this.h,this.layer[0].clip.height);this.w=Math.max(this.w,this.layer[1].clip.width);this.h=Math.max(this.h,this.layer[1].clip.height);if (this.pm.st==3){this.w=Math.max(this.w,this.layer[2].clip.width);this.h=Math.max(this.h,this.layer[2].clip.height);}this.ps.mwt=Math.max(this.w,this.ps.mwt);this.ps.mht=Math.max(this.h,this.ps.mht);this.ps.w+=this.w+this.ps.dbi;this.ps.h+=this.h+this.ps.dbi;if (this.ind<this.ps.it.length-1) this.ps.it[this.ind+1].gd();}
function awmcgd(){this.mwt=this.mht=0;this.w=this.hash=-this.dbi;if (this.ht){this.w=(this.ttlw=(this.mwt=this.tl.clip.width))+this.dbi;this.h=(this.ttlh=(this.mht=this.tl.clip.height))+this.dbi;}if (this.it.length>0) this.it[0].gd();this.w-=this.dbi;this.h-=this.dbi;if (this.ew){this.ttlw=this.mwt;this.w=this.it.length*(this.mwt+this.dbi)+((this.ht)?this.mwt:-this.dbi);}if (this.eh){this.ttlh=this.mht;this.h=this.it.length*(this.mht+this.dbi)+((this.ht)?this.mht:-this.dbi);}if (this.ct==0) this.w=this.mwt; else  this.h=this.mht;if (this.ct==2) this.w=window.innerWidth-this.cs.bw*2;}
function awmia(){this.layer[0].moveTo(this.ps.nl,this.ps.nt);this.layer[0].visibility="inherit";if (this.style[0].bgi!=n) this.layer[0].background.src=awmMenuPath+awmImagesPath+"/"+awmImagesColl[this.style[0].bgi*3];this.layer[1].moveTo(this.ps.nl,this.ps.nt);if (this.style[1].bgi!=n) this.layer[1].background.src=awmMenuPath+awmImagesPath+"/"+awmImagesColl[this.style[1].bgi*3];this.layer[1].visibility="hide";if (this.pm.st==3){this.layer[2].moveTo(this.ps.nl,this.ps.nt);if (this.style[2].bgi!=n) this.layer[2].background.src=awmMenuPath+awmImagesPath+"/"+awmImagesColl[this.style[2].bgi*3];this.layer[2].visibility="hide";}this.elr.moveTo(this.ps.nl,this.ps.nt);if (this.ps.ct!=0) this.ps.nl+=((this.ps.ew)?this.ps.mwt:this.w)+this.ps.dbi; else  this.ps.nt+=((this.ps.eh)?this.ps.mht:this.h)+this.ps.dbi;if (this.ind<this.ps.it.length-1) this.ps.it[this.ind+1].arr();}
function awmca(){this.nl=this.nt=this.cs.bw;if (this.ht){this.tl.moveTo(this.nl,this.nt);this.tel.moveTo(this.nl,this.nt);if (this.ct!=0) this.nl+=this.ttlw+this.dbi; else  this.nt+=this.ttlh+this.dbi;}if (this.cs.bgi!=n) this.layer.background.src=awmMenuPath+awmImagesPath+"/"+awmImagesColl[this.cs.bgi*3];if (this.it.length>0) this.it[0].arr();}
function awmcs(sf,x,y){if (sf){this.cd=0;if (arguments.length==1) this.pc();else  {this.left=this.layer.clip.left=x;this.top=this.layer.clip.top=y;}if (this.shw>0 && !awmun) this.unf(); else  this.layer.visibility="show";if (this.jcoo!=null) eval(this.jcoo);} else  {if (this.mio || this.cd) return;this.layer.visibility="hide";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.prc.mio=1;this.prc.pm.mio=1;if (this.prc.pi!=null) this.prc.pi.shst((this.prc.swn==0)?1:2);if (this.prc.ind>0) clearTimeout(this.prc.pi.ps.hsid);clearTimeout(this.prc.hsid);}
function awmocmot(){this.prc.mio=0;this.prc.pm.mio=0;if (!this.prc.pm.ss){this.prc.hsid=setTimeout("awmm["+this.prc.pm.ind+"].cn["+this.prc.ind+"].hdt("+((this.prc.ind==0)?"":"0")+");",awmhd);var nth=setTimeout("awmm["+this.prc.pm.ind+"].cm();",awmhd);}}
function awmiss(sts){if (sts==2 && this.pm.st==2) sts=1;for (q=1; q<this.pm.st; q++) this.layer[q].visibility=(q==sts)?"inherit":"hide";}
function awmoimo(){this.captureEvents(Event.MOUSEDOWN);if (awmctm!=null) return;if (awmSubmenusFrame!=""){eval ("var frex=window.top."+awmSubmenusFrame);if (frex){eval("this.pi.sm=window.top."+awmSubmenusFrame+".awm"+this.pi.pm.nm+"_sub_"+(this.pi.ind+1));if (this.pi.sm){this.pi.sm.pi=this.pi;this.pi.sm.pm.ss=this.pi.pm.ss;} else  this.pi.sm=null;}}this.pi.ps.mio=1;this.pi.pm.mio=1;this.pi.ps.hdt();this.pi.shst(1);status=this.pi.sbt;if (this.pi.sm!=n) if (!this.pi.sm.swn){clearTimeout(this.pi.sm.hsid);this.pi.sm.show(1);}if (this.pi.jc[1]!=null) eval(this.pi.jc[1]);}
function awmoimot(){this.releaseEvents(Event.MOUSEDOWN);this.releaseEvents(Event.MOUSEUP);if (this.pi.sm==null) this.pi.shst(0);if (this.pi.sm!=null) if (this.pi.sm.cd) this.pi.shst(0);if (!this.pi.pm.ss){if (this.pi.sm!=n && awmSubmenusFrame=="") this.pi.sm.hsid=setTimeout("awmm["+this.pi.pm.ind+"].cn["+this.pi.sm.ind+"].hdt(0);",awmhd);}status=awmDefaultStatusbarText;if (this.pi.jc[0]!=null) eval(this.pi.jc[0]);}
function awmoimd(){this.captureEvents(Event.MOUSEUP);this.pi.shst(2);if (this.pi.sm!=n) if (this.pi.sm.swn){clearTimeout(this.pi.sm.hsid);this.pi.sm.show(1);}if (this.pi.jc[2]!=null) eval(this.pi.jc[2]);if (this.pi.url!=null){this.releaseEvents(Event.MOUSEDOWN);this.releaseEvents(Event.MOUSEUP);if (this.pi.tf==null) window.location=this.pi.url;else  if (this.pi.tf=="new") window.open(this.pi.url);else  if (this.pi.tf=="top") window.top.location=this.pi.url;else  eval("window.top."+this.pi.tf+".location=this.pi.url");}return false;}
function awmoimu(){this.pi.shst(1);}
function awmOnTitleMouseOver(){this.captureEvents(Event.MOUSEDOWN);this.captureEvents(Event.MOUSEMOVE);this.captureEvents(Event.MOUSEUP);}
function awmOnTitleMouseOut(){this.releaseEvents(Event.MOUSEDOWN);this.releaseEvents(Event.MOUSEMOVE);this.releaseEvents(Event.MOUSEUP);}
function awmotmd(e){this.pt.prc.pm.mio=0;awmctm=this.pt.prc;this.pt.prc.pm.cm();this.pt.prc.pm.mio=1;awmmox=e.pageX-awmctm.left;awmmoy=e.pageY-awmctm.top;return false;}
function awmotmm(e){if (awmctm!=null){awmctm.left=e.pageX-awmmox;awmctm.top=e.pageY-awmmoy;awmctm.layer.moveTo(awmctm.left,awmctm.top);}}
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){if (document.layers["awmAnchor-"+this.pm.nm]){this.left=document.layers["awmAnchor-"+awmMenuName].pageX+((awmNS4OffsetX)?awmNS4OffsetX:0);this.top=document.layers["awmAnchor-"+awmMenuName].pageY+((awmNS4OffsetY)?awmNS4OffsetY:0);this.layer.moveTo(this.left,this.top);} else  {var crn=me.crn;var dof=(this.pm.dft==1 || this.pm.dft==3)?vl:0;this.left=(crn==0 || crn==4 || crn==3)?(me.dx+dof):((crn==1 || crn==6 || crn==2)?vr-this.layer.clip.width-me.dx:vl+(vr-vl-this.layer.clip.width)/2);dof=(this.pm.dft==1 || this.pm.dft==2)?vt:0;this.top=(crn==0 || crn==5 || crn==1)?(me.dy+dof):((crn==3 || crn==7 || crn==2)?vb-this.layer.clip.height-me.dy:vt+(vb-vt-this.layer.clip.height)/2);this.layer.moveTo(this.left,this.top);}} 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.left+psl.clip.width+this.swr+this.layer.clip.width>vr) && (psl.left-this.swr-this.layer.clip.width>vl))?2:1;else this.lod=((psl.top+psl.clip.height+this.swr+this.layer.clip.height>vb) && (psl.top-this.swr-this.layer.clip.height>vl))?2:1;}if (this.pi.ps.ct==0){this.left=(this.lod==1)?((awmSubmenusFrameOffset>-9000 && this.ind==0)?window.pageXOffset:psl.left+psl.clip.width)+this.swr:psl.left-this.layer.clip.width-this.swr;this.top=((this.sa==0)?psl.top+pil.top:((this.sa==1)?psl.top:((this.sa==2)?psl.top+psl.clip.height-this.layer.clip.height:psl.top+(psl.clip.height-this.layer.clip.height)/2)));if (this.top+this.layer.clip.height>vb) this.top=vb-this.layer.clip.height;this.top+=((awmSubmenusFrameOffset>-9000 && this.ind==0)?awmSubmenusFrameOffset-this.pi.ps.doy+window.pageYOffset:0);this.layer.moveTo(this.left,this.top);} else {this.left=(this.sa==0)?psl.left+pil.left:((this.sa==1)?psl.left:((this.sa==2)?psl.left+psl.clip.width-this.layer.clip.width:psl.left+(psl.clip.width-this.layer.clip.width)/2));if (this.left+this.layer.clip.width>vr) this.left=vr-this.layer.clip.width;this.left+=((awmSubmenusFrameOffset>-9000 && this.ind==0)?awmSubmenusFrameOffset-this.pi.ps.dox+window.pageXOffset:0);this.top=(this.lod==1)?((awmSubmenusFrameOffset>-9000 && this.ind==0)?window.pageYOffset:psl.top+psl.clip.height)+this.swr:psl.top-this.layer.clip.height-this.swr;this.layer.moveTo(this.left,this.top);}}}
function awmu(){if (awmuc>10){clearInterval (awmctu.uid);awmun=0;return;}var layer=awmctu.layer;var w=awmctu.w+2*awmctu.cs.bw;var h=awmctu.h+2*awmctu.cs.bw;switch (awmud){case 1: if (awmctu.shw==1){layer.left=awmctu.left-w*(10-awmuc)/10;layer.clip.left=Math.round(w*(10-awmuc)/10);} else  layer.clip.width=Math.round(w*awmuc/10);break;case 2: if (awmctu.shw==1){layer.left=awmctu.left+w*(10-awmuc)/10;layer.clip.width=Math.round(w*awmuc/10);} else  layer.clip.left=w*(10-awmuc)/10;break;case 3: if (awmctu.shw==1){layer.top=awmctu.top-h*(10-awmuc)/10;layer.clip.top=Math.round(h*(10-awmuc)/10);} else  layer.clip.height=Math.round(h*awmuc/10);break;case 4: if (awmctu.shw==1){layer.top=awmctu.top+h*(10-awmuc)/10;layer.clip.height=Math.round(h*awmuc/10);} else  layer.clip.top=Math.round(h*(10-awmuc)/10);break;}if (awmuc==0) awmctu.layer.visibility="show";awmuc+=2;}
function awmcu(){clearInterval(this.uid);awmuc=0;awmud=(this.ud!=0)?this.ud:(this.lod+((this.pi.ps.ct==0)?0:2));awmctu=this;awmun=1;this.uid=setInterval("awmu()",50);}
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(){clearInterval(awmdid);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;}}};if ("undefined" != typeof OnUnLoad){OnUnLoad();}}
function awmd(){var csx=window.pageXOffset;var csy=window.pageYOffset;if (window.innerWidth!=awmliw || window.innerHeight!=awmlih){clearInterval(awmdid);location.reload();}if (csx!=awmlsx ||csy!=awmlsy){for (var mno=0; mno<awmm.length; mno++){var crm=awmm[mno];crm.mio=0;crm.cm();if (!crm.cn[0].cd){if (crm.dft==1 || crm.dft==3){crm.cn[0].left+=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+=csy-awmlsy;if (awmSubmenusFrame!='' && crm.cn[0].ct==0) crm.cn[0].doy=csy;}if (crm.dft!=0) crm.cn[0].layer.moveTo(crm.cn[0].left,crm.cn[0].top);}}awmlsx=csx;awmlsy=csy;}}
function awmctb(){this.fe();this.gd();this.layer.visibility="hide";this.layer.moveTo(0,0);if (this.ind<this.pm.cn.length-1) this.pm.cn[this.ind+1].tb();}
function awmcab(){this.fe();this.arr();this.cd=0;this.show(0);if (this.ind<this.pm.cn.length-1) this.pm.cn[this.ind+1].ab();}
function awmbmm(){awmtest=1;document.onmousedown=awmodmd;status="Building Menu #"+(this.ind+1);this.ght();this.whtd();this.cn[0].tb();awmtest=0;this.ght();this.whtd();this.cn[0].ab();if (!this.cll) this.cn[0].show(1);status=awmDefaultStatusbarText;awmdid=setInterval("awmd()",100);awmsoo=awmso+1;}
