var dw=null;var AC=null;if(false){AC=new oW();}var Bl=null;var MC=null;if(false){MC=new ey();}var vE=new Array();var Xe=new Array();var Kz=new Array();var nr=null;var sK=null;var ay=null;function ey(b,V,D,r,H,S,h,l,o,q,e,d,f,N){this.s=b;this.q=V;this.K=D;this.B=r;this.C=H;this.w=S;this.Y=h;this.b=l;this.f=o;this.j=q;this.N=d;this.I=e;this.P=f;this.o=N;this.E=null;this.M=false;if(this.P!=null){Kz[this.P]=this;}}ey.prototype.l=function(){return (this.q=="-");};ey.prototype.e=function(){return this.j;};ey.prototype.Z=function(){if(!this.I){return ;}var b;if(this.E!=null){b=this.E.cells[0];}if(this.f){if(this.E!=null){if(this.j){b.innerHTML="&nbsp;";}else{b.innerHTML="";wo("<DIV class='checkmark' style='overflow:hidden;background-repeat:no-repeat;'>",b);}}this.j=!this.j;}else{if(this.Y&&!this.j){var V=this.s;var D=V.o();for(var r=0;r<D.length;r++){var H=D[r];if(H.Y&&H.b==this.b){if(H.E!=null){H.E.cells[0].innerHTML="&nbsp;";}H.j=false;}}if(this.E!=null){wo("<DIV class='bullet' style='overflow:hidden;background-repeat:no-repeat;'>",b);}this.j=true;}}};ey.prototype.a=function(b){if(!this.I||b==this.j){return ;}this.Z();};ey.prototype.L=function(b){if(this.q=="-"){return ;}this.q=b;if(this.E!=null){this.E.cells[1].innerHTML=b;}};ey.prototype.S=function(b){if(this.q=="-"||this.q.strip()==""){return null;}else{return this.q;}};ey.prototype.h=function(b){if(this.q=="-"){return ;}this.w=b;};ey.prototype.x=function(){return this.w;};ey.prototype.W=function(b){if(this.q=="-"){return ;}this.C=b;if(this.E!=null){this.E.cells[2].innerHTML=b;}};ey.prototype.n=function(){return this.I;};ey.prototype.D=function(b){if(this.q=="-"){return ;}this.I=b;if(this.E!=null){if(this.I){this.E.className="menuItem";XH(this.E,100);}else{this.E.className="menuItem_disabled";XH(this.E,25);}}if(!b){this.M=false;}};ey.prototype.r=function(){return this.f;};ey.prototype.y=function(){return this.Y;};ey.prototype.H=function(){return this.b;};ey.prototype.p=function(){return this.E;};ey.prototype.V=function(){return this.N;};ey.prototype.d=function(){return this.s;};ey.prototype.R=function(){this.E.className="menuItem_hover";this.M=true;};ey.prototype.U=function(){this.E.className="menuItem";XH(this.E,100);this.M=false;};ey.prototype.t=function(){return this.M;};ey.prototype.G=function(b){if(this.o!=null&&this.w!=null){this.o(this.w,b);}};ey.prototype.A=function(){var b=this.s;var V=b.N();this.E=V.insertRow(-1);if(this.I){this.E.className="menuItem";XH(this.E,100);}else{this.E.className="menuItem_disabled";XH(this.E,25);}var D=wo("<TD class='menuItemLeftIconCell' style='font-size:1px;' align='center'>",this.E);if(this.q=="-"){D.innerHTML="&nbsp;";var r=wo("<TD colspan='3' class='menuItemDividerCell'>",this.E);var H=wo("<DIV class='menuItemDivider' style='overflow:hidden;height:2px;border-style:solid none;border-width:1px;'>",r);if(yl){r.style.padding="0px 2px 0px 2px";}else{if(D7){r.style.padding="3px 2px 0px 2px";}}}else{if(this.f&&this.j){if(this.j){wo("<DIV class='checkmark' style='overflow:hidden;background-repeat:no-repeat;'>",D);}else{D.innerHTML="&nbsp;";}}else{if(this.Y){if(this.j){wo("<DIV class='bullet' style='overflow:hidden;background-repeat:no-repeat;'>",D);}else{D.innerHTML="&nbsp;";}}else{if(this.K!=null&&this.B!=null){var S=wo("<DIV class='menuItemIcon' style='background-repeat:no-repeat;overflow:hidden;'>",D);S.style.backgroundPosition=this.K+"px "+this.B+"px";}else{D.innerHTML="&nbsp;";}}}var r=wo("<TD class='menuItemCaptionCell' style='cursor:default;white-space:nowrap;' unselectable='on'>",this.E);r.innerHTML=this.q;var h=wo("<TD class='menuItemShortcutCell' style='cursor:default;white-space:nowrap;' unselectable='on'>",this.E);if(this.C!=null){h.innerText=this.C;}else{h.innerHTML="&nbsp;";}var l=wo("<TD class='menuItemRightIconCell' style='font-size:1px;cursor:default;' align='center'>",this.E);if(this.N!=null){wo("<DIV class='submenuIcon' style='background-repeat:no-repeat;overflow:hidden;'>",l);}else{l.innerHTML="&nbsp;";}function o(f){var N=Xp(f);Uq(N);if(dw!=null){pG(dw);}var p=this._menuItem;if(AC!=null&&p.d()!=AC&&p!=AC.b()){AC.h(true,p.d());}if(Bl!=null&&MC!=p){clearTimeout(Bl);Bl=null;MC=null;}if(!p.n()){return ;}p.R();if(p.V()!=null){MC=p;Bl=setTimeout("y4()",300);}}function q(f){var N=Xp(f);Uq(N);var p=this._menuItem;var B=p.V();if(B!=null&&B.S()){return ;}if(!p.n()){return ;}p.U();}function e(f){var N=Xp(f);Uq(N);var p=this.cells[0];var B=this._menuItem;if(!B.n()){return ;}B.U();if(B.V()==null){DN();B.G(N);}}function d(f){var N=Xp(f);Uq(N);return false;}this.E.onmouseover=o;this.E.onmouseout=q;this.E.onmouseup=e;this.E.onmousedown=d;}this.E._menuItem=this;};ey.prototype.F=function(){var b=this.s;var V=Ty(this.E)+this.E.offsetWidth-(yl?1:0);var D=Tx(b.N())+this.E.offsetTop-(yl?1:0);var r=this.N;r.e(V,D);};function oW(b,V){this.p=null;this.r=null;this.f=new Array();this.V=false;this.H=null;this.q=null;var D=b.getAttribute("id");if(D!=null){Xe[D]=this;}for(var r=0;r<b.childNodes.length;r++){var H=b.childNodes.item(r);if(H.nodeType!=ud.q){continue;}var S;if(H.nodeName=="item"||H.nodeName=="menu"){S=H.getAttribute("caption");}else{S="-";}var h=H.getAttribute("iconIndexX");if(h!=null){h=parseInt(h,10);if(isNaN(h)){h=null;}}var l=H.getAttribute("iconIndexY");if(l!=null){l=parseInt(l,10);if(isNaN(l)){l=null;}}var o=H.getAttribute("shortcut");var q=H.getAttribute("command");var e=H.getAttribute("radio");if(e==null){e=false;}else{e=(e=="true");}var d=null;if(e){d=H.getAttribute("radioGroup");}var f=H.getAttribute("checkmark");if(f==null){f=false;}else{f=(f=="true");}var N=H.getAttribute("checked");if(N==null){N=false;}else{N=(N=="true");}var p=H.getAttribute("enabled");if(p==null){p=true;}else{p=(p=="true");}var B=null;var K=(H.nodeName=="menu");if(K){B=new oW(H,V);}var D=H.getAttribute("id");var C=new ey(this,S,h,l,o,q,e,d,f,N,p,B,D,V);this.f[this.f.length]=C;if(B!=null){B.H=C;}}}oW.prototype.N=function(){return this.p;};oW.prototype.o=function(){return this.f;};oW.prototype.b=function(){return this.H;};oW.prototype.d=function(){return this.q;};oW.prototype.S=function(){return this.V;};oW.prototype.e=function(b,V){if(AC==null){nr=document.onkeydown;sK=document.onkeyup;ay=document.onkeypress;document.onkeydown=Al;document.onkeyup=QC;document.onkeypress=Sx;}if(this.p==null){this.p=wo("<TABLE border='0' cellspacing='0' cellpadding='0' class='menu' style='position:absolute;empty-cells:show;display:block;overflow:auto;visibility:visible;'>");for(var D=0;D<this.f.length;D++){var r=this.f[D];r.A();}var H=kF(this.p);var S=H.zIndex;this.r=wo("<DIV class='menuShadow' style='position:absolute;border-width:0px;z-index:"+(S-1)+";overflow:auto;visibility:visible;'>");}this.p.style.left=b+"px";this.p.style.top=V+"px";hz(this.p);var h=zk();var l=g2();if(this.H!=null){var o=this.H;if(b+this.p.offsetWidth>h){b=Ty(o.p())-this.p.offsetWidth;this.p.style.left=b+"px";}if(V+this.p.offsetHeight>l){V=l-this.p.offsetHeight;this.p.style.top=V+"px";}}else{if(b+this.p.offsetWidth>h){b=h-this.p.offsetWidth;this.p.style.left=b+"px";}if(V+this.p.offsetHeight>l){V=l-this.p.offsetHeight;this.p.style.top=V+"px";}}if(D7){var q=false;while(this.p.offsetLeft+this.p.offsetWidth>=h){this.p.style.left=(this.p.offsetLeft-1)+"px";q=true;}while(this.p.offsetTop+this.p.offsetHeight>=l){this.p.style.top=(this.p.offsetTop-1)+"px";}if(this.H!=null&&q){var o=this.H;b=Ty(o.p())-this.p.offsetWidth;this.p.style.left=b+"px";}}hz(this.r);this.r.style.left=(this.p.offsetLeft+2)+"px";this.r.style.top=(this.p.offsetTop+2)+"px";this.r.style.width=this.p.offsetWidth+"px";this.r.style.height=this.p.offsetHeight+"px";this.V=true;AC=this;var d=document.activeElement;if(d!=null){var f;try{var N=d.tagName.toUpperCase();if(N=="INPUT"&&(d.type=="text"||d.type=="password")||N=="TEXTAREA"){d.blur();if(D7){document.activeElement=null;}}}catch(f){}}if(this.l!=null){this.l();}};oW.prototype.h=function(b,V){if(b==null){b=false;}if(this.p==null){return ;}LK(this.p);LK(this.r);this.V=false;if(this.D!=null){this.D();}for(var D=0,len=this.f.length;D<len;D++){var r=this.f[D];if(!r.l()&&r.n()){r.U();}}if(this.H){var r=this.H;r.U();AC=r.d();if(b&&AC!=V){AC.h(true,V);}}else{AC=null;}if(AC==null){document.onkeydown=nr;document.onkeyup=sK;document.onkeypress=ay;}clearTimeout(Bl);Bl=null;MC=null;};oW.prototype.l=null;oW.prototype.D=null;function y4(){if(MC!=null&&MC.V()!=null){MC.F();}clearTimeout(Bl);Bl=null;}function Ht(b,V,D,r,H){vE[V]=this;this.D=b;this.H=V;this.h=r;this.r=wo("<DIV id='"+V+"'>",b);if(!r){LK(this.r);}var S=1;for(var h=0;h<D.childNodes.length;h++){var l=D.childNodes.item(h);if(l.nodeType!=ud.q){continue;}var o=l.getAttribute("caption");var q=wo("<TABLE border='0' cellspacing='1' cellpadding='0' style='height:100%;position:absolute;top:0px; left:"+S+"px;'>",this.r);var e=q.insertRow(-1);e.style.height="100%";var d=wo("<TD class='menuTitle' unselectable='on' style='cursor:default;padding:1px 5px 1px 5px;height:100%;' align='center'>",e);d.innerHTML=o;q._menu=new oW(l,H);q._index=h;S+=q.offsetWidth;function f(K){var C=Xp(K);Uq(C);pG(this);if(dw!=null&&dw!=this){DN();var W=this._menu;W.e(this.offsetLeft+1,this.offsetTop+this.offsetHeight-2);dw=this;}}function N(K){var C=Xp(K);Uq(C);var W=this._menu;if(W.S()){return ;}H7(this);}function p(K){var C=Xp(K);Uq(C);pG(this);var W=this.rows[0].cells[0];W.style.padding="2px 4px 0px 6px";var t=this._menu;if(AC!=null){AC.h(true);}if(dw!=null){if(dw==this){dw=null;}else{t.e(this.offsetLeft+1,this.offsetTop+this.offsetHeight-2);dw=this;}}else{t.e(this.offsetLeft+1,this.offsetTop+this.offsetHeight-2);dw=this;}return false;}function B(K){var C=Xp(K);Uq(C);var W=this.rows[0].cells[0];W.style.padding="1px 5px 1px 5px";}q.onmouseover=f;q.onmouseout=N;q.onmousedown=p;q.onmouseup=B;}this.r._menubar=this;}Ht.prototype.S=function(){return this.r;};Ht.prototype.b=function(){return this.h;};Ht.prototype.V=function(){for(var b in vE){var D=vE[b];LK(D.S());D.h=false;}hz(this.r);this.h=true;for(var r=1;r<this.r.childNodes.length;r++){var H=this.r.childNodes.item(r);var S=this.r.childNodes.item(r-1);H.style.left=(S.offsetLeft+S.offsetWidth)+"px";}DN();};function Ez(b,V){var D=wo("<DIV class='menuBar' style='position:absolute;top:0px;left:0px;width:100%;'>",document.body);var r=0;for(var H=0;H<b.childNodes.length;H++){var S=b.childNodes.item(H);if(S.nodeType!=ud.q){continue;}var h=S.getAttribute("id");var l=(r==0);new Ht(D,h,S,l,V);r++;}return D;}function yI(){for(var b in vE){var V=vE[b];if(V.b()){return V;}}return null;}function pG(b){var V=b.rows[0].cells[0];V.className="menuTitle_hover";}function H7(b){var V=b.rows[0].cells[0];V.className="menuTitle";}function Al(b){var V=Xp(b);if(D7){V.preventDefault();}var D=AC.o();D=IZ.S(D);for(var r=0;r<D.length;r++){var H=D[r];if(H.l()||!H.n()){D=IZ.e(D,r);r--;}}if(D.length==0&&(V.keyCode==KP||V.keyCode==hG)){return false;}var S=null;var h=-1;for(var r=0,len=D.length;r<len;r++){var H=D[r];if(H.t()){S=H;h=r;break;}}switch(V.keyCode){case KP:if(S==null){var H=D[D.length-1];H.R();}else{S.U();h--;if(h<0){h=D.length-1;}var H=D[h];H.R();}break;case hG:if(S==null){var H=D[0];H.R();}else{S.U();h++;if(h>D.length-1){h=0;}var H=D[h];H.R();}break;case xV:var l=null;if(S!=null){l=S.d();}if(S!=null&&l!=null&&l.b()!=null){l.h();var H=l.b();H.R();}else{if(dw!=null){var o=dw.parentNode;var q=dw._index;DN();if(q<=0){q=o.childNodes.length-1;}else{q--;}var e=o.childNodes.item(q);pG(e);var d=e._menu;d.e(e.offsetLeft+1,e.offsetTop+e.offsetHeight-2);dw=e;}}break;case rz:if(S!=null&&S.V()!=null){S.F();var f=AC;var D=f.o();D=IZ.S(D);for(var r=0;r<D.length;r++){var H=D[r];if(H.l()||!H.n()){D=IZ.e(D,r);r--;}}if(D.length==0){return false;}var H=D[0];H.R();}else{if(dw!=null){var o=dw.parentNode;var q=dw._index;DN();if(q>=o.childNodes.length-1){q=0;}else{q++;}var e=o.childNodes.item(q);pG(e);var d=e._menu;d.e(e.offsetLeft+1,e.offsetTop+e.offsetHeight-2);dw=e;}}break;case QR:if(S!=null){if(S.V()!=null){S.F();var D=f.o();D=IZ.S(D);for(var r=0;r<D.length;r++){var H=D[r];if(H.l()||!H.n()){D=IZ.e(D,r);r--;}}if(D.length==0){return false;}var H=D[0];H.R();}else{DN();S.G(V);}}else{DN();}break;case fJ:DN();break;default:if(D7){V.preventDefault();}break;}return false;}function QC(b){var V=Xp(b);if(D7){V.preventDefault();}return false;}function Sx(b){var V=Xp(b);if(D7){V.preventDefault();}return false;}function CG(b){var V=vE[b];if(V!=null){V.V();}}function l2(b){var V=vE[b];return (V!=null?V.b():false);}function DN(){if(AC!=null){AC.h(true);AC=null;}if(dw!=null){H7(dw);dw=null;}}function WG(b,V){var D=Kz[b];if(D!=null){D.D(V);}}function pf(b){var V=Kz[b];return (V!=null?V.n():false);}function Rm(b,V){var D=Kz[b];if(D!=null){D.a(V);}}function US(b){var V=Kz[b];return (V!=null?V.e():false);}function UF(b){var V=Kz[b];if(V!=null){V.Z();}}function ya(b,V){var D=Kz[b];if(D!=null){D.L(V);}}function G0(b){var V=Kz[b];if(V!=null){return V.S();}}