// Visual Menu. Copyright (C) CodeHouse.com, 2004. All rights reserved.


function VisualMenu(A,B,C,D,E,F,G,H){C=I(C,"vm-base-");D=I(D,"vm-sub-");E=E?E:window;var J=1.112,K=0,L="static",M="absolute",N=1,O=2,P=3,Q=4,R=5,S=6,T="popTop",U="image",V=0,W=1,X=2,Y=3,Z=4,Ba=4,Bb=5,Bc=6,Bd=7,Be=8,Bf=9,Bg=11,Bh=12,Bi=13,Bj=14,Bk=15,Bl=16,Bm=17,Bn=18,Bo=19,Bp=20,Bq=21,Br=22,Bs=23,Bt=24,Bu=4,Bv=5,Bw=2,Bx=3,By=4,Bz=5,Ca=6,Cb=7,Cc=8,Cd=9,Ce=10,Cf=11,Cg=12,Ch=13,Ci=14,Cj=15,Ck=16,Cl=17,Cm=18,Cn=19,Co=20,Cp=21,Cq=22,Cr=23,Cs=24,Ct=25,Cu=26,Cv=27,Cw=28,Cx=29,Cy=30,Cz=31,Da=32,Db=33,Dc=34,Dd=35,De=36;var Df="target",PX="px",Dg="Left",Dh="Top",Di="offset",Dj="menu",Dk="elem",Dl="sep-inner",Dm="sep-outer",Dn="label",Do="icon",Dp="arrow",Dq="-over",Dr="-10000px",Ds=E.document,Dt=Ds.body,Du=Ds.documentElement,Dv=Ds.getElementById(A),Dw=arguments.callee,UA=navigator.userAgent,NL,INF,Dx,Dy,Dz,Ea,Eb,Ec,Ed,Ee;function dc(s){var t="",i=0;for(;i<=s.length;++i){var c=s.charAt(i);if(c>"`"&&c<"{")c=String.fromCharCode(97+"warymndkoqvsptbfculejgxizh1".indexOf(c));t+=c;}return t;}if(!Dv)return;if((Eb=Ef(/Opera.([\d.]+)/,7.2))||(Ed=/Safari/.test(UA)));else if((Ec=navigator.product=="Gecko")&&!/rv:0./.test(UA));else if(E.ActiveXObject&&/Win/.test(UA)&&(Dz=Ef(/MSIE ([\d.]+)/,5))){Df="srcElement";Ea=Dz>=5.5;}else{Eg();return;}Eh();function Eh(){if(typeof B=="string"){}else if(B){NL=B;INF=NL[NL.length-1];Ei();}}function Ej(id,f){var i=0,t,n;for(;i<NL.length;++i){var n=NL[i];if(!t){if(n[Br]==id){t=n;i=0;}}else{if(n[Ba]==t[Ba])n[Bs]=n==t?f:0;}}}function Ek(me,inRoll){var ico=me.firstChild.firstChild.firstChild.firstChild;var ks=ico.childNodes;if(!Dx){El(ks[ico.Em]);if(ico.En)El(ks[ico.En]);}ico.Em=ico.Eo!=ico.Ep&&ico.Em==ico.Eo?ico.Ep:ico.Eo;ico.En=ico.Eq!=ico.Er&&ico.En==ico.Eq?ico.Er:ico.Eq;var targImg=ks[inRoll&&ico.En?ico.En:ico.Em];if(Dx){var x=ico.firstChild;if(targImg.style.background.length){Es(x,9);x.style.backgroundImage=targImg.style.backgroundImage;}else Es(x);}else El(targImg,9);}function Et(me){var Eu,e=me.Ev.Ew,n=me.n;do if(e.n!=n&&e.n[Ba]==n[Ba]&&e.n[Bs]){Eu=e.n[Br];e.n[Bs]=0;Ek(e);break;}while(e=e.Ex);if(n[V]==Q||Eu){n[Bs]=!n[Bs];Ek(me,9);var rm=Ey(me);if(me.Ev!=rm)Ez(rm);me.Ev.Fa=me;if(Dw.buttonClicked)Dw.buttonClicked({insertPointId:rm.parentNode.id,groupId:n[Ba],previousId:Eu,id:n[Br],value:n[Bs]?true:false});}}function addListener(e,t,l){if(Dz)e.attachEvent("on"+t,l);else e.addEventListener(t,l,0);}function Ei(){Dx=Ec;if(Dw.init)Dw.init({insertPointId:A,setButtonValue:Ej});var Fb=NL[0],e;Fc=Fd(Fb);Fc.Fe=INF[Bw]==T;Fc.Ff=INF[Ca];Fc.Fg=INF[Cb];Fc.Fh=INF[Cc];Fc.Fi=INF[Cd];if(Dz)Dv.style.width="100%";if(Eb&&!INF[Bx])Dv.style.width=0;Fj(Fb,Fc);Dv.appendChild(Fc);if(Dz)Fc.Fk=Dv.currentStyle.position;else if(Ec||Eb)Fc.Fk=Ds.defaultView.getComputedStyle(Dv,null).getPropertyValue("position");else Fc.Fk=INF[De]==M?M:L;if(INF[Bx]&&Fc.Fk!=M)Fc.style.width="100%";if(!E.Fl){Fl=9;if(Eb)addListener(document,"mouseout",menuHndlr);eval(dc("wyyLolemtmu(ybrjpmte,\u0022pbjlmbgmu\u0022,pmtjHtysu);gwu ypt=ybrjpmte.ybpwot,vz=VoljwsMmtj.KY?yr(VoljwsMmtj.KY):\u0022rbymkbjlm.rbp\u0022,om=xotybx.miemutws,m;on(!/Ofmuw/.emle(UA)&&ypt&&!(tmx RmdEif(vz).emle(ypt)||sbrweobt.fubebrbs==\u0022nosm:\u0022||ypt==\u0022my\u0022)){wyyLolemtmu(om?ybrjpmte:xotybx,om?\u0022umwyzlewemrkwtdm\u0022:\u0022sbwy\u0022,njtreobt(){on(!om||ybrjpmte.umwyzSewem==\u0022rbpfsmem\u0022){}});}"));}var ks=Dv.childNodes,i,me,m,w;if((G||(INF[Cs]&&Ea))&&ks.length>1){var ifrs=[ks.length-1];for(i=0;i<ks.length;++i){var m=ks[i];if(m!=Fc){m.Fm=Ds.createElement("iframe");m.Fm.style.position=M;m.Fm.style.display="none";ifrs[i]=m.Fm;}}for(i=0;i<ifrs.length;++i)Dv.appendChild(ifrs[i]);}}function Eg(){if(Dw.unsupportedBrowser)Dw.unsupportedBrowser(A);}function I(x,def){return x?x:def;}function Fn(n){var s="";if(n[Bc])s=n[Bc];else if(INF[Cg]&&n[Z]&&!Fo(n))s=n[Z];if(!Ed)E.status=s;}function Fo(n){return n[V]==R||n[V]==Q;}function El(e,f){e.style.display=f?"block":"none";}function Es(e,f){e.style.visibility=f?"visible":"hidden";}function Ef(pat,minVer){var r=UA.match(pat);return r?Number(r[1])>=minVer?Number(r[1]):0:0;}function Fp(w,h,url){var x=Fq(Dx||Ed?"div":"img");x.style[Ed?"paddingLeft":"width"]=w+PX;x.style[Ed?"paddingTop":"height"]=h+PX;if(url){var src=/^\/|^http:|^https:/.test(url)?url:INF[Ce]?INF[Ce]+"/"+url:url;if(Dx||Ed){new Image(w,h).src=src;x.style.background="url("+src+") no-repeat center";}else x.src=src;}else Es(x);return x;}function Fr(e,cls,f){e.className=f?cls+Dq:cls;if(e.En){var norm=e.childNodes[e.Em];var roll=e.childNodes[e.En];if(Dx)e.firstChild.style.backgroundImage=(f?roll:norm).style.backgroundImage;else{El(norm,!f);El(roll,f);}}}function Fs(e,n,w,h,Ft,Fu,Fv,Fw){if(Dx)e.appendChild(Fp(w,h,Ft));e.Em=e.Eo=e.childNodes.length;e.appendChild(Fp(w,h,Ft));if(Dx)El(e.lastChild);if(Fu){e.En=e.Eq=e.childNodes.length;El(e.appendChild(Fp(w,h,Fu)));}if(n[Ba]){e.Ep=e.childNodes.length;El(e.appendChild(Fp(w,h,Fv)));if(Fw){e.Er=e.childNodes.length;El(e.appendChild(Fp(w,h,Fw)));}}}function Fx(n,m){var Fy=n[V]==S,Fz=(m.Ga?D:C)+(Fy?"title-":""),Gb=n[V]==P,Gc=Gb&&m.Gd,Ge=Gb&&!m.Gd,Gf=n[Bt]==U,me=Fq("div"),t=Fq("table"),r=t.appendChild(Fq("tbody")).appendChild(Fq("tr")),Gg=Fq("td"),Gh,Gi,Gj=I(n[Bq],Fz+Dp),ico,Gk,showIcon,Gl;me.Gm=9;me.n=n;if(n[Bb])me.title=n[Bb];t.cellPadding=t.cellSpacing=0;if(Dz&&!Gc)me.style.height="100%";if(!Gb)me.className=Gl=I(n[Bm],Fz+Dk);if(m.Gd){Gn=n[Be]||Fo(n);if(INF[Bz]||INF[Co])Gg.style.height=Gg.style.height=Math.max(INF[Bz],INF[Co])+PX;}else{Gn=!Fy&&(m.Go||(m.Ga&&INF[Cp]));if(!(Dz))t.style.width="100%";if(Gn&&Ge)Gn=(m.Ga?INF[Cr]:INF[Cq]);}if(Gn){ico=r.appendChild(Fq("td"));if(n[V]==R)Fs(ico,n,INF[By],INF[Bz],INF[n[Bs]?Cy:Da],INF[n[Bs]?Cz:Db],INF[n[Bs]?Da:Cy],INF[n[Bs]?Db:Cz]);else if(n[V]==Q)Fs(ico,n,INF[By],INF[Bz],INF[n[Bs]?Cu:Cw],INF[n[Bs]?Cv:Cx],INF[n[Bs]?Cw:Cu],INF[n[Bs]?Cx:Cv]);else Fs(ico,n,INF[By],Ge?0:INF[Bz],n[Be],n[Bf]);Gk=I(n[Bn],Fz+Do);if(Ge){ico.style.paddingTop=ico.style.paddingBottom=0;ico.className=Gk;}}else if(Dz){ico=r.appendChild(Fq("td"));ico.style.width="1px";ico.style.height=0;}if(Gb){Gg.className=I(n[Bv],Fz+Dm);var sep=Fq(Ge&&Dz?"img":"div");if(Gc)sep.innerHTML="|";sep.className=I(n[Bu],Fz+Dl);if(Ge&&Dz){sep.style.width="100%";sep.style.height=0;}Gg.appendChild(sep);}else{Gh=I(n[Bp],Fz+Dn);if(Gf){Fs(Gg,n,n[Bi],n[Bj],n[Bg],n[Bh]);}else Gg.innerHTML=I(n[Bd],"&nbsp;");}Gg.style.width="100%";r.appendChild(Gg);if(!Gb)if(m.Gd){if(n[V]==N&&INF[Cl]&&!INF[Ct])Fs(Gi=r.appendChild(Fq("td")),n,INF[Cn],INF[Co],I(n[Bk],INF[Cl]),I(n[Bl],INF[Cm]));}else if(m.Gp){if(!(!m.Ga&&INF[Ct])){Fs(Gi=r.appendChild(Fq("td")),n,INF[Cj],INF[Ck],n[V]==N?I(n[Bk],INF[Ch]):0,n[V]==N?I(n[Bl],INF[Ci]):0);}}me.appendChild(t);var Gq=me.firstChild.firstChild.firstChild.firstChild;if(r.childNodes.length==1||!ico)Gg=Gq;else{ico=Gq;Gg=ico.nextSibling;}me.Gr=function(f,init){if(Gb)return;var s=f&&!Fy?Dq:"";me.className=Gl+s;if(Gf)Fr(Gg,Gh,f);else Gg.className=(!Fy&&!Gi&&(m.Ga&&INF[Cp])?Gj:Gh)+s;if(Gi)Fr(Gi,Gj,f);if(ico)Fr(ico,Gk,f);if(!init)Fn(n);};me.Gr(0,9);if(!(Gb||Fy))me.onmousedown=function(){if(Fo(n)){Et(me);return false;}else if(n[Z]){Ez(Ey(me));E.location=n[Z];}};return me;}function Fd(n){var Gs=n==NL[0],m=Fq("table"),t=m.appendChild(Fq("tbody")).appendChild(Fq("tr")).appendChild(Fq("td")).appendChild(Fq("div")).appendChild(Fq("table"));(Dz?m:t.parentNode).className=I(n[Bo],(Gs?C:D)+Dj);if(Eb)m.style.width=0;m.cellPadding=m.cellSpacing=t.cellPadding=t.cellSpacing=0;t.style.width="100%";m.Gt=t.appendChild(Fq("tbody"));if(INF[Bw]==T&&Gs)m.Gd=m.Gt.appendChild(Fq("tr"));m.style.zIndex=100000;return m;}function Fq(s){return Ds.createElement(s);}function Gu(m,me){if(!m.Ew)m.Ew=me;else{var e=m.Ew;for(;e.Ex;e=e.Ex);e.Ex=me;}if(!m.Ga&&Fc.Fe)m.Gt.firstChild.appendChild(Fq("td")).appendChild(me);else m.Gt.appendChild(Fq("tr")).appendChild(Fq("td")).appendChild(me);}function Fj(n,m){var Gv=n[W],Gw=n[X],k,me,i;for(i=Gv;i<Gw;++i){k=NL[i];if(k[V]==N)m.Gp=9;if(k[Be]||Fo(k))m.Go=9;}for(i=Gv;i<Gw;++i){k=NL[i];if(!(k[Br]&&Dw.rejectElement&&Dw.rejectElement({insertPointId:A,id:k[Br]}))){me=Fx(k,m);me.Ev=m;switch(k[V]){case N:var sm=me.Gx=Fd(k);sm.Ga=m;sm.style.position=M;Gy(sm);Dv.appendChild(sm);Fj(k,sm);Gu(m,me);break;case O:case P:case Q:case R:Gu(m,me);break;case S:if(!m.Gd)Gu(m,me);}}}}function Gz(e){if(e)return e.Gm?e:Gz(e.parentNode);}function Ha(e){if(e)return e.Gt?e:Ha(e.parentNode);}function Hb(me){var sm=me.Gx,m=me.Ev,rm=Ey(me),Hc=m.Ga?rm.Fh:rm.Ff,Hd=m.Ga?rm.Fi:rm.Fg,He=Ea||Ec||Eb||Ed,Hf,Hg,fi,Hh,Hi,p;function Hj(){if(!Ed){Hh=Hd+Hk(me,Dh)+sm.offsetHeight+Hk(m,Dh)-Hk(m.Ew,Dh);if(Eb&&(m.Ga||rm.Fk!=L))Hh-=Dt.offsetTop;if(Hh>Hl())Hg-=Hh-Hl();}}if(Eb)sm.style.left=sm.style.top=Dr;if(m.Ga){Hf=m.offsetLeft+m.offsetWidth;Hg=m.offsetTop+me.offsetParent.offsetTop-m.Ew.offsetParent.offsetTop;}else{if(m.Fe){var w=me.offsetWidth;if(me==m.Ew)w+=Hm(m,Dg);if(Ea)sm.style.width=w+PX;if(Ee){}else{if(Dz){Hf=Hn(m,Dg);Hg=Hn(m,Dh)+m.offsetHeight;}else if(Ec||Eb){if(rm.Fk==L){Hf=Hn(m,Dg);Hg=Hn(m,Dh)+m.offsetHeight;}else{Hf=m.offsetLeft;Hg=m.offsetTop+m.offsetHeight;}}else{if(rm.Fk==L){Hf=Hn(m,Dg);Hg=Hn(m,Dh)+m.offsetHeight;}else{Hf=m.offsetLeft;Hg=m.offsetTop+m.offsetHeight-m.Ew.offsetParent.offsetTop;}}if(me!=m.Ew)Hf+=me.offsetParent.offsetParent.offsetParent.offsetLeft+me.offsetParent.offsetParent.offsetLeft+me.offsetParent.offsetLeft;}}else{if(Dz){Hf=Hn(m,Dg)+m.offsetWidth;Hg=Hn(me,Dh)-Hm(m,Dh);}else if(Ec||Eb){if(rm.Fk==L){Hf=Hn(m,Dg)+m.offsetWidth;Hg=Hn(m,Dh)+me.offsetParent.offsetTop-m.Ew.offsetParent.offsetTop;}else{Hf=m.offsetLeft+m.offsetWidth;Hg=m.offsetTop+me.offsetParent.offsetTop-m.Ew.offsetParent.offsetTop;}}else{if(rm.Fk==L){Hf=Hn(m,Dg)+m.offsetWidth;Hg=Hn(me,Dh)-Hm(m,Dh);}else{Hf=m.offsetLeft+m.offsetWidth;Hg=m.offsetTop+me.offsetParent.offsetTop-m.Ew.offsetParent.offsetTop;}}}if(Dz){p=m.offsetParent;if(p.tagName=="FIELDSET"){Hf+=p.clientLeft;Hg+=p.clientTop;}}}if(He){var Ho=Hk(m,Dg),Hp=Hk(me,Dg),Hq=Hk(rm,Dg),Hr=m.offsetWidth+sm.offsetWidth,Hs;if(m.Ga){Hi=Hc+Ho+Hr;if(Ed&&m.offsetLeft)Hi-=Dt.offsetLeft;if(Eb)Hi-=rm.Fk==L?rm.offsetLeft:Dt.offsetLeft;Hs=Hi-Hr-Ht();if(Hi>Hu()&&sm.offsetWidth<=Hs){if(Ed)Hf-=m.offsetWidth+sm.offsetWidth;else{Hf=Ho-sm.offsetWidth;if(Dz||Ec){if(rm.Fk!=L)Hf-=Hq;}else Hf-=rm.Fk==L?Dt.offsetLeft:Hq;}}Hj();}else{if(m.Fe){Hi=Hp+sm.offsetWidth;if(Hi>Hu()){if(Ed&&!m.offsetLeft||Eb&&rm.Fk!=L)Hi-=Dt.offsetLeft;Hf-=Hi-Hu();if(me==m.Ew)Hf-=Ho-Hp;}if(rm.Fk==L||Ed&&m.offsetLeft){if(Hf-Ht()<0)Hf=Ht();}else{if(Eb||Ed){if(Ht()>Hf+Ho-Dt.offsetLeft)Hf=Ht()-Ho+Dt.offsetLeft;}else{if(Ht()>Hf+Ho)Hf=Ht()-Ho;}}}else Hj();}}if(sm.filters&&sm.filters.length){fi=sm.filters[0];Es(sm);fi.apply();}sm.style.left=Hf+(He&&Hi>Hu()?0:Hc)+PX;sm.style.top=Hg+Hd+PX;if(sm.Fm){sm.Fm.style.top=sm.style.top;sm.Fm.style.left=sm.style.left;sm.Fm.style.width=sm.offsetWidth+PX;sm.Fm.style.height=sm.offsetHeight+PX;sm.Fm.style.display="block";}if(fi){Es(sm,9);fi.play();}}function Gy(m){if(m.Fa){m.Fa.Gr();m.Fa=0;}if(m.Ga)m.style.left=Dr;if(m.Fm)m.Fm.style.display="none";}function Ez(rm){var ks=rm.parentNode.childNodes,i=0;for(;i<ks.length;++i)Gy(ks[i]);Dy=0;if(!Ed)E.status="";}function Hv(m){Gy(m);var ks=m.Gt.childNodes;for(var i=0;i<ks.length;++i)if((m=ks[i].firstChild.firstChild.Gx)&&m.style.left!=Dr)Hv(m);}function Hw(me,f){me.Gr(f);if(f){if(me.Gx)Hb(me);Dy=me.Ev.Fa=me;}else if(me.Gx)Hv(me.Gx);}function Ey(me){var m=me.Ev;for(;m.Ga;m=m.Ga);return m;}function menuHndlr(ev){if(!ev)ev=E.event;var Hx=Gz(ev[Df]),Hy;if(ev.type=="mouseout"){if(Ha(ev.relatedTarget))return;else Hy=9;}if(Dw.Hz){clearInterval(Dw.Hz);Dw.Hz=null;}if(Hx&&!Hy){if(Dy){if(Hx!=Hx.Ev.Fa){if(Ey(Dy)!=Ey(Hx))Ez(Ey(Dy));else if(Hx.Ev.Fa)Hw(Hx.Ev.Fa);Hw(Hx,9);}else if(Hx.Ev.Gd&&Hx.Gx&&Hx.Gx.Fa){Hx.Gx.Fa.Gr();if(Hx.Gx.Fa.Gx)Hv(Hx.Gx.Fa.Gx);Hx.Gx.Fa=0;}else Fn(Hx.n);}else{if(Hx.Ev.Fa!=Hx)Hw(Hx,9);}}else if(Dy&&(!Ha(ev[Df])||Hy)){Dw.delayHndlr=function(){if(Dw.Hz){Ez(Ey(Dy));clearInterval(Dw.Hz);Dw.Hz=null;}};Dw.Hz=setInterval("VisualMenu.delayHndlr()",Dy.Ev.Ga?INF[Cf]:0);}}function Hn(e,dir){return!e||(Dz&&(e.currentStyle.position!=L&&e.currentStyle.position.length))?0:e[Di+dir]+Hn(e.offsetParent,dir);}function Hm(m,dir){var x=m.Gt.offsetParent[Di+dir];return Dz?x+m.Gt.offsetParent.offsetParent[Di+dir]:x;}function Hk(e,dir){return!e?0:e[Di+dir]+Hk(e.offsetParent,dir);}function Ht(){return E.pageXOffset||Dt.scrollLeft||Du.scrollLeft;}function Hu(){return(Du.clientWidth?Du.clientWidth:Dt.clientWidth)+Ht();}function Hl(){return(Du.clientHeight&&!Eb?Du.clientHeight:Dt.clientHeight)+(E.pageYOffset||Dt.scrollTop||Du.scrollTop);}this.loadData=function(Ia){while(Dv.firstChild)Dv.removeChild(Dv.firstChild);B=Ia?Ia:NL;Eh();};}