// Menu G5.6.3 (non-frame/loader) // Last Modified: Jun. 27, 2006 // Web Site: yxScripts.com // Email: m_yangxin@hotmail.com // Copyright 2003, 2004 Xin Yang All Rights Reserved. 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;i=7:false;var yx_isSafari=(yx_fd.indexOf("safari")!=-1);var yx_isIE=(yx_fd.indexOf("msie")!=-1&&!yx_isOpera);var yx_isIE5=(yx_isIE&&yx_fd.indexOf("msie 4")==-1);var yx_isIE55=(yx_isIE&&yx_fd.indexOf("msie 5.5")!=-1);var yx_isIE6up=(yx_isIE&&yx_fd.search(/msie\s+(\d+)/)!=-1?parseFloat(RegExp.$1)>=6:false);var yx_isIE55up=(yx_isIE55||yx_isIE6up);var yx_isGecko=(yx_fd.indexOf("gecko")!=-1&&!yx_isSafari);var yx_isNetscape=(yx_isGecko&&yx_fd.indexOf("netscape")!=-1);var yx_menuSafe=(yx_isGecko||yx_isOpera7||yx_isSafari&&supportSafari||yx_isIE5&&yx_isMac&&supportIEMac||yx_isIE5&&!yx_isMac);var yx_M="M",yx_L="L",yx_C="C",yx_I="I",yx_S="S";var yx_dr=true,yx_ic="",yx_el=false,yx_fc=new Array(),yx_ee=false;var yx_al=0,yx_an=new Array();var yx_fm=0,yx_fj=0,yx_gg=0,yx_ca=menuMargin,yx_gf=0,yx_gh=0,yx_ih=0,yx_id=0;var yx_fx=new Image(1,1);yx_fx.src=onePixelGIF;var yx_fw=/(^\w+:)|(^\/)|(^\.)/,yx_bi=/css\s*:([\w\-\s]+),?([\w\-\s]+)?,?([\w\-\s]+)?,?([\w\-\s]+)?,?([\w\-\s]+)?/,yx_bj=/css2\s*:([\w\-\s]+),?([\w\-\s]+)?,?([\w\-\s]+)?,?([\w\-\s]+)?,?([\w\-\s]+)?/,yx_fb=/\w/;var yx_fv=1,yx_hs=2,yx_ej=3,yx_be=4,yx_eh=5,yx_bd=6;function yx_ff(fu){return document.createElement(fu)};function yx_fg(ae,w,h,aa){var l=yx_ff("IMG");with(l){src=ae;width=w;height=h;border=0;hspace=0;vspace=0;align=aa};return l};function yx_fe(x,y,gh,cu){var l=yx_ff("DIV");with(l.style){position="absolute";visibility=gh;left=x+"px";top=y+"px";zIndex=cu};return l};function yx_ci(n){return document.getElementById(n)};function yx_gn(l,cu){l.style.zIndex=cu};function yx_dp(l){return l.style.zIndex};function yx_gq(l){l.style.visibility="visible"};function yx_dv(l){l.style.visibility="hidden"};function yx_ey(l,x,y){l.style.left=x+"px";l.style.top=y+"px"};function yx_ex(l,x,y){l.style.left=(parseInt(l.style.left)+x)+"px";l.style.top=(parseInt(l.style.top)+y)+"px"};function yx_at(menu){for(var i=0;i0?bu.offsetWidth:bu.hasChildNodes()&&bu.firstChild.nodeType==1?bu.firstChild.offsetWidth:0)};function yx_ei(item){return yx_cb(item.bl)+yx_cb(item.fu)+yx_cb(item.cs)+yx_cb(item.ct)};function yx_gm(){yx_fj=setTimeout("yx_az(null)",menuTimer*2)};function yx_gw(t){if(t>0)clearTimeout(t)};function yx_gu(){yx_ee=false;yx_gw(yx_fm);yx_fm=0;yx_gw(yx_fj);yx_fj=0;yx_gw(yx_gg);yx_gg=0};function yx_dc(es){return yx_fw.test(es)?es:(webPath+es)};function yx_gs(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_dq(di,ft,nw){if(di.substring(0,11).toLowerCase()=="javascript:"){eval(di.substring(11))}else{if(nw){window.open(yx_dc(di))}else if(ft!=""){window.open(yx_dc(di),ft)}else{window.location.href=yx_dc(di)}}};function yx_ck(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_fb.test(ra[i+3]))?yx_hw(ra[i+3]):""}}};var yx_hi=new Array(new yx_hh("",""));function yx_hd(si,er){this.name=si;var pa=yx_cl(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_hw(RegExp.$1):"";this.gj=er.search(/align\s*:\s*(left|center|right)/)!=-1?(RegExp.$1):"center";this.gq=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_he=new Array(new yx_hd("","width:actual;"));function yx_gx(sf,er){this.name=sf;var pa=yx_cl(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_gy=new Array(new yx_gx("",""));function yx_hl(st,er){this.name=st;var pa=yx_cl(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_hw(RegExp.$1):""};var yx_hm=new Array(new yx_hl("",""));function yx_hb(so,er){this.name=so;var pa=yx_cl(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_cl(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_hw(RegExp.$1):"";this.text2=er.search(/text2\s*:([^:]+):/)!=-1?yx_hw(RegExp.$1):""};var yx_hc=new Array(new yx_hb("",""));function yx_hj(ss,er){this.name=ss;var ra=er.match(/css\s*:([\w\-\s]+),?([\w\-\s]+)?/);this.bi=(ra&&ra[1])?yx_hw(ra[1]):"";this.ax=(ra&&ra[2])?yx_hw(ra[2]):""};var yx_hk=new Array(new yx_hj("",""));function yx_hf(sm,sp,si,sf,st,so,ss){this.name=sm;this.fc=yx_db(sp);this.fb=yx_cv(si);this.ez=yx_cr(sf);this.fe=yx_di(st);this.fa=yx_cu(so);this.fd=yx_dg(ss)};var yx_hg=new Array(new yx_hf("","","","","","",""));function addStylePad(sp,er){yx_hi.push(new yx_hh(sp,er))};function addStyleItem(si,er){yx_he.push(new yx_hd(si,er))};function addStyleFont(sf,er){yx_gy.push(new yx_gx(sf,er))};function addStyleTag(st,er){yx_hm.push(new yx_hl(st,er))};function addStyleIcon(so,er){yx_hc.push(new yx_hb(so,er))};function addStyleSeparator(ss,er){yx_hk.push(new yx_hj(ss,er))};function addStyleMenu(sm,sp,si,sf,st,so,ss){yx_hg.push(new yx_hf(sm,sp,si,sf,st,so,ss))};function yx_ds(menu,style){this.menu=menu;this.style=style};function yx_gz(sg){this.name=sg;this.dn=new Array()};var yx_ha=new Array();function addStyleGroup(sg,sm){var gl=yx_ce(sg);if(gl==null){var x=yx_ha.length;yx_ha[x]=new yx_gz(sg);gl=yx_ha[x]};var gm=gl.dn.length;for(var i=2;i0){if(tw>0){fx+=yx_fy(""+fv+fv+fv+"",fc.tiles[0],tw,th,fc.tiles[1],w-tw*2,th,fc.tiles[2],tw,th)}else{fx+=yx_fy(""+fv+"",fc.tiles[1],w,th)}};if(tw>0){fx+=yx_fy(""+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_fy(""+fv+"",fc.tiles[4],w,h-th*2)};if(th>0){if(tw>0){fx+=yx_fy(""+fv+fv+fv+"",fc.tiles[6],tw,th,fc.tiles[7],w-tw*2,th,fc.tiles[8],tw,th)}else{fx+=yx_fy(""+fv+"",fc.tiles[7],w,th)}};return ""+fx+"
"};function yx_dd(dp){var cl=this.cl,ei=this.dg,ej=ei.dg,fc=this.style.fc,sW=this.sW,sH=this.sH;var gn=cl.gj,gs=cl.gq,bk=fc.bk==""?(cl.bk):(fc.bk);yx_cp();var ep=0,eq=0;if(ei==cl){ep=gn=="left"?0:gn=="center"?(-Math.round(this.width/2)):(-this.width+1);eq=gs=="top"?0:gs=="middle"?(-Math.round(this.height/2)):(-this.height+1);if(cl.floating&&cl.gc>0){yx_gw(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_gf;eq+=yx_gh}}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_gh>=yx_id&&eo-this.height-ei.height+2*sH>=yx_gh){dy=-this.height-ei.height+2*sH-2*fc.dy;eo+=dy;el+=dy};if(bk.indexOf("up")!=-1&&eo=yx_ih&&em-this.width-ei.width+2*sW>=yx_gf){dx=-this.width-ei.width+2*sW-2*fc.dx;em+=dx;en+=dx};if(bk.indexOf("left")!=-1&&em=yx_id){br=yx_id+yx_gh-el-yx_ca};if(eo+br=yx_ih){bq=yx_ih+yx_gf-en-yx_ca};if(em+bqyx_ih||mx+ix+iw+bl+iw-yx_gf>yx_ih&&mx+mw-yx_gf>yx_ih)?-iw:0};function yx_co(my,iy,bl,mh,ih){return(my+iyyx_id||my+iy+ih+bl+ih-yx_gh>yx_id&&my+mh-yx_gh>yx_id)?-ih:0};function yx_ge(dx,dy){var bo=true;if(dx>0&&this.x+dx>=yx_gf){dx=yx_gf-this.x+yx_ca}else if(dx<0&&this.x+this.width-yx_gf+dx<=yx_ih){dx=yx_ih+yx_gf-this.x-this.width-yx_ca}else if(dy>0&&this.y+dy>=yx_gh){dy=yx_gh-this.y+yx_ca}else if(dy<0&&this.y+this.height-yx_gh+dy<=yx_id){dy=yx_id+yx_gh-this.y-this.height-yx_ca}else{bo=false};this.ds(dx,dy);if(!bo){yx_gg=yx_ak(this,"ff","("+dx+","+dy+")",floatTimer)}};function yx_eg(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_eo;this.dj=yx_en;this.ed=yx_fk;this.ec=yx_fi};function yx_er(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_dd;this.as="";this.at="";this.dl=yx_ep;this.fj=yx_gr;this.co=yx_dw;this.ao=yx_ag;this.dt=yx_fa;this.ds=yx_ez;this.ff=yx_ge;this.bar=false};function yx_hq(menu,dp){for(var i=0;i0){yx_hy(menu.df[i],es,dp)};break}}};function yx_gt(x){if(this.de.length>0){if(this.menu.ew){yx_hq(this.menu,0)};yx_hy(this.menu.au,this.de,0)};var dv=new Array();for(var i=1;i0){this.de=dv.copy();yx_hy(this.menu.au,dv,1);if(this.menu.ew){yx_hq(this.menu,1)}}};function yx_gb(){if(this.menu.ew){yx_hq(this.menu,0)};if(this.de.length>0){yx_hy(this.menu.au,this.de,0);this.de=new Array()}};function yx_ec(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.gq=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_ce(er.search(/style\s*:\s*([\w\-]+)/)!=-1?(RegExp.$1):"");this.dg=null;this.cl=this;this.menu=new yx_er(this,this,this.au);this.gc=-1;this.ga=yx_ht;this.sX=0;this.sY=0;this.z=zBase-1;this.holder=null;this.cg=yx_ct;this.ox=0;this.oy=0;this.de=new Array();this.fk=yx_gt;this.ey=yx_gb;this.fi=yx_gp;this.cm=yx_du;this.dr=yx_ew;this.dq=yx_ev};yx_ea=new Array();function yx_gp(){yx_ar();if(yx_el){if(this.holder==null){this.cg()};yx_az(this);this.menu.fj()}};function yx_du(){yx_ar();if(yx_el){this.menu.co(true)}};function yx_ew(x,y){if(this.menu.ew){this.holder.x=x;this.holder.y=y;this.menu.ch(false);this.menu.ao()}};function yx_ev(x,y){if(this.menu.ew){this.holder.x+=x;this.holder.y+=y;this.menu.ds(x,y);this.menu.ao()}};function yx_ht(){yx_cp();if(this.sX!=yx_gf||this.sY!=yx_gh){var mx=yx_gf>this.sX?Math.ceil:Math.floor,my=yx_gh>this.sY?Math.ceil:Math.floor;var dx=mx((yx_gf-this.sX)/floatOffset),dy=my((yx_gh-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_gn(item.item,yx_eh);yx_gn(item.av,yx_bd)};function yx_ah(item){yx_gn(item.item,yx_ej);yx_gn(item.av,yx_be)};function yx_fu(){yx_gu()};function yx_fr(){yx_gu();if(!this.sticky){yx_gm()}};function yx_ay(){yx_ee=false;yx_gv()};function yx_eq(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_gj(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.gq,dp==0?fb.bw:false)};function yx_hx(it){var x=it.dg.dg;if(x.dg!=null){x.av.dm(1);yx_hx(x)}};function yx_bv(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_fi(){var si=this.fm,dp=this.au.eg;yx_ah(this);yx_gj(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.gq,si.fb.bz)};function yx_ft(){var item=this.item;if(item.dg.fl){yx_gu();yx_gs(item.au.du);if(item.as!=""){eval(item.as)};this.dm(item.au.gg==yx_M&&item.dg.open?1:0);yx_hx(item);yx_bv(item);yx_fm=yx_ak(item,"ed","()",menuTimer)}};function yx_fq(){yx_gu();if(this.item.at!=""){eval(this.item.at)};if(!this.sticky){yx_gm()}};function yx_ct(){var x=0,y=0;if(this.et=="relative"){var l=yx_ci(this.ex);if(l!=null){x=yx_cx(l);y=yx_dm(l)}}else if(this.et=="slot"){var s=yx_dh(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_ii(x,y)};function yx_gd(){yx_gu();yx_fo();yx_cp();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)};