// Menu G5.5.4 (non-frame/loader) var _scriptPath="http://www.yxScripts.com/menuG5/script/"; var _menuTimer=500; var _floatTimer=100; var _floatOffset=1; var _zBase=2; var _menuMargin=1; var _showMessage=1; var _showToolTip=0; var _onePixelGIF="onePixel.gif"; var _inheritStyle=1; var _minimumWidth=0; var _supportIEMac=1; var _supportSafari=1; Object.prototype.copy=function(){ var o=new Object(); for(var i in this){ o[i]=typeof(this[i])=='object'?this[i].copy():this[i] } return o }; Array.prototype.copy=function(){ var a=new Array(); for(var i in this){ a[i]=typeof(this[i])=='object'?this[i].copy():this[i] } return a }; Array.prototype.shift=Array.prototype.shift||function(){ var a=this[0]||null; for(var i=0;i0){ this.length-- }; return a }; Array.prototype.push=Array.prototype.push||function(){ for(var i=0;i0?bu.offsetWidth:bu.hasChildNodes()&&bu.firstChild.nodeType==1?bu.firstChild.offsetWidth:0) }; function yx_em(item){ return yx_cd(item.bl)+yx_cd(item.fu)+yx_cd(item.cs)+yx_cd(item.ct) }; function yx_gp(){ yx_fm=setTimeout("yx_az(null)",menuTimer*2) }; function yx_gz(t){ if(t>0)clearTimeout(t) }; function yx_gx(){ yx_ei=false; yx_gz(yx_fp); yx_fp=0; yx_gz(yx_fm); yx_fm=0; yx_gz(yx_gj); yx_gj=0 }; function yx_dg(es){ return yx_fz.test(es)?es:(webPath+es) }; function yx_gv(du){ if(showMessage==1)window.status=du }; function yx_ak(eb,cf,er,t){ var x=yx_al++; yx_an[x]=null; yx_an[x]=eb; var tm=setTimeout(("yx_an["+x+"]."+cf+er),t); if(yx_al>200){ yx_al=0 }; return tm }; function yx_du(di,ft,nw){ if(di.substring(0,11).toLowerCase()=="javascript:"){ eval(di.substring(11)) } else{ if(nw){ window.open(yx_dg(di)) } else if(ft!=""){ window.open(yx_dg(di),ft) } else{ window.location.href=yx_dg(di) } } }; function yx_co(eb,n){ for(var i=0;i0||this.fy>0){ for(var i=0;i<9;i++){ this.tiles[i]=(ra&&ra[i+3]&&yx_ff.test(ra[i+3]))?yx_hz(ra[i+3]):"" } } }; var yx_hl=new Array(new yx_hk("","")); function yx_hg(si,er){ this.name=si; var pa=yx_cp(er,yx_bi); this.bc=pa[0]; this.ay=pa[1]; this.ba=pa[2]; this.bg=pa[3]; this.be=[pa[0],pa[4]]; this.cursor=er.search(/cursor\s*:([\w\-\s]+)/)!=-1?yx_hz(RegExp.$1):""; this.gj=er.search(/align\s*:\s*(left|center|right)/)!=-1?(RegExp.$1):"center"; this.gp=er.search(/valign\s*:\s*(top|middle|bottom)/)!=-1?(RegExp.$1):"middle"; this.actual=(er.search(/width\s*:\s*actual/)!=-1); this.ef=(er.search(/sub-menu\s*:\s*mouse-click/)==-1); var ra=er.match(/filters\s*:\s*(\w+)\s*,?\s*(\w+)?\s*,?\s*(\w+)?/); this.bz=(ra&&ra[1]=="yes"); this.bw=!(ra&&ra[2]=="no"); this.by=(ra&&ra[3]=="yes") }; var yx_hh=new Array(new yx_hg("","width:actual;")); function yx_ha(sf,er){ this.name=sf; var pa=yx_cp(er,yx_bi); this.bc=pa[0]; this.ay=pa[1]; this.ba=pa[2]; this.bg=pa[3]; this.be=[pa[0],pa[4]] }; var yx_hb=new Array(new yx_ha("","")); function yx_ho(st,er){ this.name=st; var pa=yx_cp(er,yx_bi); this.bc=pa[0]; this.ay=pa[1]; this.ba=pa[2]; this.bg=pa[3]; this.be=[pa[0],pa[4]]; this.text=er.search(/text\s*:([^:]+):/)!=-1?yx_hz(RegExp.$1):"" }; var yx_hp=new Array(new yx_ho("","")); function yx_he(so,er){ this.name=so; var pa=yx_cp(er,yx_bi); this.bc=pa[0]; this.ay=pa[1]; this.ba=pa[2]; this.bg=pa[3]; this.be=[pa[0],pa[4]]; var ek=yx_cp(er,yx_bj); this.bd=ek[0]; this.az=ek[1]; this.bb=ek[2]; this.bh=ek[3]; this.bf=[ek[0],ek[4]]; this.text=er.search(/text\s*:([^:]+):/)!=-1?yx_hz(RegExp.$1):""; this.text2=er.search(/text2\s*:([^:]+):/)!=-1?yx_hz(RegExp.$1):"" }; var yx_hf=new Array(new yx_he("","")); function yx_hm(ss,er){ this.name=ss; var ra=er.match(/css\s*:([\w\-\s]+),?([\w\-\s]+)?/); this.bi=(ra&&ra[1])?yx_hz(ra[1]):""; this.ax=(ra&&ra[2])?yx_hz(ra[2]):"" }; var yx_hn=new Array(new yx_hm("","")); function yx_hi(sm,sp,si,sf,st,so,ss){ this.name=sm; this.fc=yx_df(sp); this.fb=yx_cz(si); this.ez=yx_cv(sf); this.fe=yx_dm(st); this.fa=yx_cy(so); this.fd=yx_dk(ss) }; var yx_hj=new Array(new yx_hi("","","","","","","")); function addStylePad(sp,er){ yx_hl.push(new yx_hk(sp,er)) }; function addStyleItem(si,er){ yx_hh.push(new yx_hg(si,er)) }; function addStyleFont(sf,er){ yx_hb.push(new yx_ha(sf,er)) }; function addStyleTag(st,er){ yx_hp.push(new yx_ho(st,er)) }; function addStyleIcon(so,er){ yx_hf.push(new yx_he(so,er)) }; function addStyleSeparator(ss,er){ yx_hn.push(new yx_hm(ss,er)) }; function addStyleMenu(sm,sp,si,sf,st,so,ss){ yx_hj.push(new yx_hi(sm,sp,si,sf,st,so,ss)) }; function yx_dw(menu,style){ this.menu=menu; this.style=style }; function yx_hc(sg){ this.name=sg; this.dn=new Array() }; var yx_hd=new Array(); function addStyleGroup(sg,sm){ var gk=yx_cg(sg); if(gk==null){ var x=yx_hd.length; yx_hd[x]=new yx_hc(sg); gk=yx_hd[x] }; var gl=gk.dn.length; for(var i=2;i0){ if(tw>0){ fx+=yx_gb(""+fv+fv+fv+"",fc.tiles[0],tw,th,fc.tiles[1],w-tw*2,th,fc.tiles[2],tw,th) } else{ fx+=yx_gb(""+fv+"",fc.tiles[1],w,th) } }; if(tw>0){ fx+=yx_gb(""+fv+fv+fv+"",fc.tiles[3],tw,h-th*2,fc.tiles[4],w-tw*2,h-th*2,fc.tiles[5],tw,h-th*2) } else{ fx+=yx_gb(""+fv+"",fc.tiles[4],w,h-th*2) }; if(th>0){ if(tw>0){ fx+=yx_gb(""+fv+fv+fv+"",fc.tiles[6],tw,th,fc.tiles[7],w-tw*2,th,fc.tiles[8],tw,th) } else{ fx+=yx_gb(""+fv+"",fc.tiles[7],w,th) } }; return ""+fx+"
" }; function yx_dh(dp){ var cl=this.cl,ei=this.dg,ej=ei.dg,fc=this.style.fc,sW=this.sW,sH=this.sH; var gm=cl.gj,gq=cl.gp,bk=fc.bk==""?(cl.bk):(fc.bk); yx_ct(); var ep=0,eq=0; if(ei==cl){ ep=gm=="left"?0:gm=="center"?(-Math.round(this.width/2)):(-this.width+1); eq=gq=="top"?0:gq=="middle"?(-Math.round(this.height/2)):(-this.height+1); if(cl.floating&&cl.gc>0){ yx_gz(cl.gc); cl.gc=-1; cl.holder.x=cl.ox; cl.holder.y=cl.oy }; ep+=cl.holder.x; eq+=cl.holder.y; if(cl.et=="slot"||cl.floating){ ep+=yx_gi; eq+=yx_gk } } else{ var iX=ej.x+ei.x,iY=ej.y+ei.y,iW=ei.width,iH=ei.height; if(ej.bar){ eq=bk.indexOf("up")!=-1?(iY-this.height+sH):(iY+iH-sH); ep=bk.indexOf("abs-center")!=-1?(ej.x+Math.round((ej.width-this.width)/2)):bk.indexOf("abs-left")!=-1?ej.x:bk.indexOf("abs-right")!=-1?(ej.x+ej.width-this.width):bk.indexOf("center")!=-1?(iX+Math.round((iW-this.width)/2)):bk.indexOf("left")!=-1?(iX+iW-this.width+sW):(iX-sW) } else{ ep=bk.indexOf("left")!=-1?(iX-this.width+sW):(iX+iW-sW); eq=bk.indexOf("top")!=-1?ej.y:bk.indexOf("bottom")!=-1?(ej.y+ej.height-this.height):bk.indexOf("middle")!=-1?(ej.y+Math.round((ej.height-this.height)/2)):bk.indexOf("up")!=-1?(iY+iH-this.height+sH):(iY-sH) }; ep+=fc.dx; eq+=fc.dy; if(fc.flip){ var eo=eq,el=eo+this.height-1,em=ep,en=em+this.width-1; var dx=0,bq=0,dy=0,br=0; if(ej.bar){ if(bk.indexOf("down")!=-1&&el-yx_gk>=yx_ig&&eo-this.height-ei.height+2*sH>=yx_gk){ dy=-this.height-ei.height+2*sH-2*fc.dy; eo+=dy; el+=dy }; if(bk.indexOf("up")!=-1&&eo=yx_ik&&em-this.width-ei.width+2*sW>=yx_gi){ dx=-this.width-ei.width+2*sW-2*fc.dx; em+=dx; en+=dx }; if(bk.indexOf("left")!=-1&&em=yx_ig){ br=yx_ig+yx_gk-el-yx_cc }; if(eo+br=yx_ik){ bq=yx_ik+yx_gi-en-yx_cc }; if(em+bqyx_ik||mx+ix+iw+bl+iw-yx_gi>yx_ik&&mx+mw-yx_gi>yx_ik)?-iw:0 }; function yx_cs(my,iy,bl,mh,ih){ return(my+iyyx_ig||my+iy+ih+bl+ih-yx_gk>yx_ig&&my+mh-yx_gk>yx_ig)?-ih:0 }; function yx_gh(dx,dy){ var bo=true; if(dx>0&&this.x+dx>=yx_gi){ dx=yx_gi-this.x+yx_cc } else if(dx<0&&this.x+this.width-yx_gi+dx<=yx_ik){ dx=yx_ik+yx_gi-this.x-this.width-yx_cc } else if(dy>0&&this.y+dy>=yx_gk){ dy=yx_gk-this.y+yx_cc } else if(dy<0&&this.y+this.height-yx_gk+dy<=yx_ig){ dy=yx_ig+yx_gk-this.y-this.height-yx_cc } else{ bo=false }; this.ds(dx,dy); if(!bo){ yx_gj=yx_ak(this,"ff","("+dx+","+dy+")",floatTimer) } }; function yx_ek(dg,au){ this.dg=dg; this.au=au; this.fm=null; this.item=null; this.fu=null; this.cs=null; this.ct=null; this.bl=null; this.av=null; this.menu=null; this.x=0; this.y=0; this.ox=0; this.oy=0; this.width=0; this.height=0; this.ow=0; this.oh=0; this.as=""; this.at=""; this.dk=yx_es; this.dj=yx_er; this.ed=yx_fn; this.ec=yx_fl }; function yx_ev(cl,dg,au){ this.cl=cl; this.dg=dg; this.au=au; this.style=null; this.holder=null; this.pad=null; this.df=new Array(); this.ai=null; this.dd=au.df.length; this.actual=false; this.ew=false; this.cb=false; this.go=false; this.fl=false; this.open=false; this.x=0; this.y=0; this.width=0; this.height=0; this.sW=0; this.sH=0; this.ch=yx_dh; this.as=""; this.at=""; this.dl=yx_et; this.fj=yx_gu; this.co=yx_ea; this.ao=yx_ag; this.dt=yx_fe; this.ds=yx_fd; this.ff=yx_gh; this.bar=false }; function yx_ht(menu,dp){ for(var i=0;i0){ yx_ib(menu.df[i],es,dp) }; break } } }; function yx_gw(x){ if(this.de.length>0){ if(this.menu.ew){ yx_ht(this.menu,0) }; yx_ib(this.menu.au,this.de,0) }; var dv=new Array(); for(var i=1;i0){ this.de=dv.copy(); yx_ib(this.menu.au,dv,1); if(this.menu.ew){ yx_ht(this.menu,1) } } }; function yx_ge(){ if(this.menu.ew){ yx_ht(this.menu,0) }; if(this.de.length>0){ yx_ib(this.menu.au,this.de,0); this.de=new Array() } }; function yx_eg(n,au,er){ this.name=n; this.au=au; this.floating=(er.search(/floating\s*:\s*yes/)!=-1); var ra=er.match(/position\s*:\s*(absolute|relative|slot)\s*([\w\-]+)?/); this.et=(ra&&ra[1])?ra[1]:"absolute"; this.ex=(ra&&ra[2])?ra[2]:""; this.gj=er.search(/align\s*:\s*(left|center|right)/)!=-1?(RegExp.$1):"left"; this.gp=er.search(/valign\s*:\s*(top|middle|bottom)/)!=-1?(RegExp.$1):"top"; this.dx=er.search(/offset-left\s*:\s*(-?\d+)/)!=-1?parseInt(RegExp.$1,10):0; this.dy=er.search(/offset-top\s*:\s*(-?\d+)/)!=-1?parseInt(RegExp.$1,10):0; this.bar=(er.search(/menu-form\s*:\s*bar/)!=-1); this.bk=er.search(/direction\s*:\s*(right-down|right-up|left-down|left-up|center-down|center-up|abs-right-down|abs-right-up|abs-left-down|abs-left-up|abs-center-up|abs-center-down|right-top|left-top|right-middle|left-middle|right-bottom|left-bottom)/)!=-1?(RegExp.$1):"right-down"; this.gh=(er.search(/visibility\s*:\s*hidden/)==-1); this.target=er.search(/target\s*:\s*([\w\-]+)/)!=-1?(RegExp.$1):""; this.sticky=(er.search(/sticky\s*:\s*yes/)!=-1); this.highlight=(er.search(/highlight\s*:\s*no/)==-1); this.style=yx_cg(er.search(/style\s*:\s*([\w\-]+)/)!=-1?(RegExp.$1):""); this.dg=null; this.cl=this; this.menu=new yx_ev(this,this,this.au); this.gc=-1; this.ga=yx_hw; this.sX=0; this.sY=0; this.z=zBase-1; this.holder=null; this.cg=yx_cx; this.ox=0; this.oy=0; this.de=new Array(); this.fk=yx_gw; this.ey=yx_ge; this.fi=yx_gs; this.cm=yx_dy; this.dr=yx_fa; this.dq=yx_ez }; yx_ee=new Array(); function yx_gs(){ yx_ar(); if(yx_ep){ if(this.holder==null){ this.cg() }; yx_az(this); this.menu.fj() } }; function yx_dy(){ yx_ar(); if(yx_ep){ this.menu.co(true) } }; function yx_fa(x,y){ if(this.menu.ew){ this.holder.x=x; this.holder.y=y; this.menu.ch(false); this.menu.ao() } }; function yx_ez(x,y){ if(this.menu.ew){ this.holder.x+=x; this.holder.y+=y; this.menu.ds(x,y); this.menu.ao() } }; function yx_hw(){ yx_ct(); if(this.sX!=yx_gi||this.sY!=yx_gk){ var mx=yx_gi>this.sX?Math.ceil:Math.floor,my=yx_gk>this.sY?Math.ceil:Math.floor; var dx=mx((yx_gi-this.sX)/floatOffset),dy=my((yx_gk-this.sY)/floatOffset); this.sX+=dx; this.sY+=dy; this.dq(dx,dy) }; this.gc=yx_ak(this,"ga","()",floatTimer) }; function yx_ai(item){ yx_gq(item.item,yx_el); yx_gq(item.av,yx_bd) }; function yx_ah(item){ yx_gq(item.item,yx_en); yx_gq(item.av,yx_be) }; function yx_fx(){ yx_gx() }; function yx_fv(){ yx_gx(); if(!this.sticky){ yx_gp() } }; function yx_ay(){ yx_ei=false; yx_gy() }; function yx_eu(dp){ var item=this.item,menu=item.dg,eu=menu.ai; var si=item.fm,fb=si.fb,ez=si.ez,fe=si.fe,fa=si.fa; if(eu!=null&&eu!=item){ eu.ec() }; menu.ai=item; yx_ai(item); yx_gm(item,dp==0?fb.ay:fb.bg,dp==0?fe.ay:fe.bg,dp==0?fa.ay:fa.bg,dp==0?fa.az:fa.bh,dp==0?ez.ay:ez.bg,(dp==0&&item!=eu),fb.gj,fb.gp,dp==0?fb.bw:false) }; function yx_ia(it){ var x=it.dg.dg; if(x.dg!=null){ x.av.dm(1); yx_ia(x) } }; function yx_bx(it){ var x=it.menu; if(x!=null&&x.fl){ for(var i=0;i0){ this.menu.fj() } else if(!cl.highlight){ this.menu.ao() } } }; function yx_fl(){ var si=this.fm,dp=this.au.eg; yx_ah(this); yx_gm(this,si.fb.be[dp],si.fe.be[dp],si.fa.be[dp],si.fa.bf[dp],si.ez.be[dp],true,si.fb.gj,si.fb.gp,si.fb.bz) }; function yx_fw(){ var item=this.item; if(item.dg.fl){ yx_gx(); yx_gv(item.au.du); if(item.as!=""){ eval(item.as) }; this.dm(item.au.gg==yx_M&&item.dg.open?1:0); yx_ia(item); yx_bx(item); yx_fp=yx_ak(item,"ed","()",menuTimer) } }; function yx_fu(){ yx_gx(); if(this.item.at!=""){ eval(this.item.at) }; if(!this.sticky){ yx_gp() } }; function yx_cx(){ var x=0,y=0; if(this.et=="relative"){ var l=yx_ck(this.ex); if(l!=null){ x=yx_db(l); y=yx_dq(l) } } else if(this.et=="slot"){ var s=yx_dl(parseInt(this.ex)); x=s.x; y=s.y }; x+=this.dx; y+=this.dy; this.ox=x; this.oy=y; this.holder=new yx_il(x,y) }; function yx_gg(){ yx_gx(); yx_fr(); yx_ct(); for(var i=0;i<\/scr"+"ipt>"); if(typeof(contentScript)!="undefined"){ document.write("<\/scr"+"ipt>") }; if(typeof(styleScript)!="undefined"){ document.write("<\/scr"+"ipt>") }; if(typeof(instanceScript)!="undefined"){ document.write("<\/scr"+"ipt>") } } else if(typeof(nonMenuPage)!="undefined"){ setTimeout("window.location.replace('"+nonMenuPage+"')",0) };