var QB=new Array();var as=new Array();function de(b){this.b=b;}de.prototype.V=function(b){var D=this.b;var r=D.H();var H=wo("<TABLE border='0' cellspacing='3' cellpadding='0' style='left:"+b+"px;top:0px;position:absolute;height:100%;'>",r);var S=H.insertRow(-1);var h=wo("<TD class='toolbarDividerCell'>",S);var l=wo("<DIV class='toolbarDivider' style='overflow:hidden;height:100%;border-style:none solid;border-width:1px;width:"+(yl?2:0)+"px;'>",h);return (b+h.offsetWidth);};function ut(b,V){this.b=b;this.D=V;}ut.prototype.V=function(b){var D=this.b;var r=D.H();var H=wo("<TABLE border='0' cellspacing='3' cellpadding='0' style='left:"+b+"px;top:0px;position:absolute;height:100%;'>",r);var S=H.insertRow(-1);var h=wo("<TD class='toolbarLabelCell'>",S);h.innerHTML=this.D;return (b+h.offsetWidth);};function uQ(b,V){this.V=b;this.b=V;}uQ.prototype.D=function(b){var V=this.V;var r=V.H();var H=wo("<TABLE border='0' cellspacing='3' cellpadding='0' style='left:"+b+"px;top:0px;position:absolute;height:100%;width:"+this.b+"px;'>",r);var S=H.insertRow(-1);var h=wo("<TD class='toolbarPaddingElement'>",S);h.innerHTML="&nbsp";return (b+h.offsetWidth);};function kB(b,V,D){this.D=b;this.b=V;this.H=D;this.r=null;if(this.H!=null){as[this.H]=this;}}kB.prototype.l=function(){return this.b;};kB.prototype.h=function(){return this.r;};kB.prototype.V=function(b){};kB.prototype.S=function(b){};var et={D:"GlyphTop",V:"GlyphRight",b:"GlyphBottom",r:"GlyphLeft"};function tT(b,V,D,r,H,S,h,l,o,q,e,d,f){this.P(b,o,e);this.N=V;this.I=D;this.a=r;this.L=H;this.A=S;this.p=h;this.y=l;this.x=q;this.t=f;if(d==null){d=et.r;}this.f=d;this.Y=null;}tT.prototype=XE(kB.prototype);tT.prototype.P=kB;tT.prototype.B=function(){return this.y;};tT.prototype.Z=function(){this.y=true;this.r.className="toolbarButton_down";};tT.prototype.W=function(){this.y=false;this.q();};tT.prototype.C=function(b){this.N=b;if(this.r!=null){var V=(this.I!=null&&this.a!=null)?1:0;var D=this.r.firstChild.rows[0].cells[V];D.innerHTML=b;var r=this.D;r.b();}};tT.prototype.e=function(b){this.L=b;if(this.r!=null){this.r.title=b;}};tT.prototype.o=function(b,V){this.I=b;this.a=V;if(this.r!=null){var D=this.r.firstChild.rows[0].cells[0];var r=D.firstChild;r.style.backgroundPosition=b+"px "+V+"px";}};tT.prototype.w=function(b){this.A=b;};tT.prototype.K=function(){return this.A;};tT.prototype.V=function(b){this.b=b;if(b){this.r.className="toolbarButton";XH(this.r,100);}else{this.r.className="toolbarButton_disabled";XH(this.r,25);}};tT.prototype.d=function(){this.r.className="toolbarButton_hover";};tT.prototype.q=function(){this.r.className="toolbarButton";};tT.prototype.S=function(b){var V=this.D;var D=V.H();var r;var H;r=wo("<TABLE border='0' cellspacing='3' cellpadding='0' style='left:"+b+"px;top:0px;position:absolute;height:100%;'>",D);H=r.insertRow(-1);this.r=wo("<TD class='"+(this.b?"toolbarButton":"toolbarButton_disabled")+"' unselectable='on'"+(this.H!=null?" id='"+this.H+"'":"")+">",H);if(this.b){XH(this.r,100);}else{XH(this.r,25);}r=wo("<TABLE border='0' cellspacing='0' cellpadding='0'>",this.r);H=r.insertRow(-1);if(this.I!=null&&this.a!=null){var h=wo("<TD unselectable='on'>",H);var l=wo("<DIV class='toolbarButtonIcon' style='overflow:hidden;background-repeat:no-repeat;' unselectable='on'>",h);l.style.backgroundPosition=this.I+"px "+this.a+"px";}if(this.N!=null){var o=wo("<TD class='toolbarButtonCaption' style='padding-right:5px;' unselectable='on'>",H);o.innerHTML=this.N;if(this.I==null||this.a==null){o.style.paddingLeft="5px";}}if(this.L!=null){this.r.title=this.L;}if(this.x!=null){var q=wo("<TD unselectable='on' class='toolbarMenuButtonIconCell'>",H);var l=wo("<DIV class='toolbarMenuButtonIcon' style='overflow:hidden;background-repeat:no-repeat;' unselectable='on'>",q);function e(S){var K=Xp(S);Uq(K);var C=this.parentNode.parentNode.parentNode.parentNode;var W=C._toolbarButton;var t=W.x;if(AC!=null&&AC!=t){AC.h(true);}if(dw!=null){H7(dw);dw=null;}if(!W.l()){return true;}C.className="toolbarButton_down";if(t.S()){t.h(true);}else{var Y=Ty(C);var a=Tx(C);t.e(Y,a+C.offsetHeight-3);}return false;}function d(S){var K=Xp(S);Uq(K);}q.onmousedown=e;q.onmouseup=d;}function f(S){var K=Xp(S);Uq(K);var C=this._toolbarButton;if(!C.l()||C.A==null){return ;}if(C.x!=null){var W=C.x;if(W.S()){return ;}}if(C.p&&C.y){return ;}C.d();}function N(S){var K=Xp(S);Uq(K);var C=this._toolbarButton;if(!C.l()){return ;}if(C.x!=null){var W=C.x;if(W.S()){return ;}}if(C.p&&C.y){return ;}C.q();}function p(S){var K=Xp(S);Uq(K);DN();var C=this._toolbarButton;if(!C.l()||C.A==null){return true;}this.className="toolbarButton_down";return false;}function B(S){var K=Xp(S);Uq(K);var C=this._toolbarButton;if(!C.l()||C.A==null){return ;}var W=BR();if(C.Y!=null&&W-C.Y<1000){return ;}C.Y=W;if(C.p){C.y=!C.y;if(C.y){if(C.t!=null&&C.A!=null){C.t(C.A,K);}return ;}}C.d();if(C.t!=null&&C.A!=null){C.t(C.A,K);}}this.r.onmouseover=f;this.r.onmouseout=N;this.r.onmousedown=p;this.r.onmouseup=B;this.r._toolbarButton=this;return (b+this.r.offsetWidth);};function tl(b,V,D){this.D=b;this.b=V;if(D==null){D=false;}this.V=D;}function JD(b,V,D,r,H,S){this.f(b,V,D);this.o=r;this.N=H;this.d=S;}JD.prototype=XE(kB.prototype);JD.prototype.f=kB;JD.prototype.V=function(b){this.r.disabled=!b;};JD.prototype.e=function(){return this.r.options[this.r.selectedIndex].value;};JD.prototype.q=function(b){this.r.value=b;};JD.prototype.S=function(b){var V=this.D;var D=V.H();var r=wo("<TABLE border='0' cellspacing='3' cellpadding='0' style='left:"+b+"px;top:0px;position:absolute;height:100%;'>",D);var H=r.insertRow(-1);var h=wo("<TD class='toolbarButton' unselectable='on' valign='middle'>",H);this.r=wo("<SELECT class='toolbarSelectElement'"+(this.H!=null?" id='"+this.H+"'":"")+" tabindex='-1'>",h);for(var l=0,len=this.N.length;l<len;l++){var o=this.N[l];var q=document.createElement("OPTION");this.r.options.add(q,-1);q.value=o.D;q.text=o.b;q.selected=o.V;}function e(){var S=this._selectElem;if(!S.l()){return ;}if(S.d!=null&&S.o!=null){var d=this.options[this.selectedIndex];S.d(S.o,d.value);}}this.r.onchange=e;this.r._selectElem=this;return (b+r.offsetWidth);};function qP(b,V,D,r){this.f(b,V,D);this.q=Math.round(r);}qP.prototype=XE(kB.prototype);qP.prototype.f=kB;qP.prototype.V=function(b){this.r.disabled=!b;};qP.prototype.e=function(){return this.r.value;};qP.prototype.d=function(b){this.r.value=b;};qP.prototype.o=function(){this.r.select();};qP.prototype.S=function(b){var V=this.D;var D=V.H();var r=wo("<TABLE border='0' cellspacing='3' cellpadding='0' style='left:"+b+"px;top:0px;position:absolute;height:100%;'>",D);var H=r.insertRow(-1);var h=wo("<TD class='toolbarButton' unselectable='on' valign='middle' style='padding-left:5px'>",H);this.r=wo("<INPUT type='text' class='toolbarInputElement'"+(this.H!=null?" id='"+this.H+"'":"")+" autocomplete='off'>",h);if(this.q!=null){this.r.style.width=this.q+"px";}this.r.disabled=!this.b;return (b+r.offsetWidth);};function av(b,V,D,r,H){var S="";QB[V]=this;this.V=b;this.r=V;this.S=new Array();this.D=wo("<DIV id='"+V+"'>",b);if(!r){LK(this.D);}var h=1;for(var l=0;l<D.childNodes.length;l++){var o=D.childNodes.item(l);if(o.nodeType!=ud.q){continue;}if(o.nodeName=="divider"){var q=new de(this);h=q.V(h);}else{if(o.nodeName=="label"){var e=o.getAttribute("caption");var d=new ut(this,e);h=d.V(h);}else{if(o.nodeName=="padding"){var f=o.getAttribute("width");var N=new uQ(this,f);h=N.D(h);}else{if(o.nodeName=="select"){var p=o.getAttribute("enabled");if(p==null){p=true;}else{p=(p=="true");}S=o.getAttribute("id");var B=o.getAttribute("command");var K=[];for(var C=0;C<o.childNodes.length;C++){var W=o.childNodes.item(C);if(W.nodeType!=ud.q){continue;}var t=W.getAttribute("value");var e=W.getAttribute("caption");var Y=W.getAttribute("selected");if(Y==null){Y=false;}else{Y=(Y=="true");}var a=new tl(t,e,Y);K[K.length]=a;}var Z=new JD(this,p,S,B,K,H);h=Z.S(h);}else{if(o.nodeName=="input"){var p=o.getAttribute("enabled");if(p==null){p=true;}else{p=(p=="true");}S=o.getAttribute("id");var f=o.getAttribute("width");if(f!=null){f=parseInt(f,10);if(isNaN(f)){f=null;}}var A=new qP(this,p,S,f);h=A.S(h);}else{if(o.nodeName=="button"){var e=o.getAttribute("caption");var I=o.getAttribute("iconIndexX");if(I!=null){I=parseInt(I,10);if(isNaN(I)){I=null;}}var L=o.getAttribute("iconIndexY");if(L!=null){L=parseInt(L,10);if(isNaN(L)){L=null;}}var x=o.getAttribute("tooltip");var B=o.getAttribute("command");var P=o.getAttribute("checkmark");if(P==null){P=false;}else{P=(P=="true");}var Y=o.getAttribute("selected");if(Y==null){Y=false;}else{Y=(Y=="true");}var p=o.getAttribute("enabled");if(p==null){p=true;}else{p=(p=="true");}S=o.getAttribute("id");var w=o.getAttribute("layout");var y=null;if(o.hasChildNodes()){var n=0;for(var C=0;C<o.childNodes.length;C++){var W=o.childNodes.item(C);if(W.nodeType!=ud.q){continue;}if(n==0){}else{}y=new oW(W,H);n++;}}var E=new tT(this,e,I,L,x,B,P,Y,p,y,S,null,H);if(y!=null){y.q=E;y.D=function(){var U=this.d();U.q();};}this.S[this.S.length]=E;h=E.S(h);}}}}}}}this.D._toolbar=this;}av.prototype.H=function(){return this.D;};av.prototype.b=function(){for(var V=0,len=this.V.childNodes.length;V<len;V++){var D=this.V.childNodes.item(V);if(D.id!=this.r){LK(D);}}hz(this.D);for(var V=1;V<this.D.childNodes.length;V++){var r=this.D.childNodes.item(V);var H=this.D.childNodes.item(V-1);r.style.left=(H.offsetLeft+H.offsetWidth-6)+"px";}};function RK(b,V,D,r){if(b==null){b=document.body;}var H=wo("<DIV class='toolbar' style='position:absolute;left:0px;top:"+V+"px;width:100%;'>",b);var S=0;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("id");var q=(S==0);new av(H,o,l,q,r);S++;}return H;}function uq(b){var V=QB[b];if(V!=null){V.b();}}function Tn(b,V){var D=as[b];if(D!=null){D.C(V);}}function tY(b,V){var D=as[b];if(D!=null){D.e(V);}}function g5(b,V){var D=as[b];if(D!=null){D.w(V);}}function mr(b){var V=as[b];return (V!=null?V.K():null);}function xc(b){var V=as[b];return (V!=null?V.e():null);}function iC(b,V){var D=as[b];if(D!=null){D.q(V);}}function Jx(b){var V=as[b];return (V!=null?V.e():null);}function gm(b,V){var D=as[b];if(D!=null){D.d(V);}}function Qi(b){var V=as[b];if(V!=null){V.Z();}}function vl(b){var V=as[b];if(V!=null){V.W();}}function sR(b){var V=as[b];return (V!=null?V.B():false);}function Nt(b,V){var D=as[b];if(D!=null){D.V(V);}}
