function bj(){this.Init()}m("AdfDhtmlZOrderManager",bj);r.v(bj);
bj.ga=function(){var a=["__af_Z_maskingframe","__af_Z_window","__af_Z_tooltip"];this.yR="DhtmlZOrderManagerLayerContainer";m("AdfDhtmlZOrderManager.LAYERCONTAINER",bj.yR);this.iJ=a[1];m("AdfDhtmlZOrderManager.FLOATINGTYPE_WINDOW",bj.iJ);this.X_=a[2];m("AdfDhtmlZOrderManager.FLOATINGTYPE_TOOLTIP",bj.X_);this.Iba=a[0];m("AdfDhtmlZOrderManager.FLOATINGTYPE_MASKINGFRAME",bj.Iba);this.pya=a;m("AdfDhtmlZOrderManager.LAYERIDS",bj.pya);this.v1a="AFZOrderLayerContainer";this.sca="AFZOrderLayer";m("AdfDhtmlZOrderManager.LAYER_STYLECLASS",
bj.sca);this.wCa=Math.pow(2,31)-2;this.JXa="about:blank";this.qA="data-afr-fid";this.O1="data-afr-inuse"};m("AdfDhtmlZOrderManager.InitClass",bj.ga);bj.prototype.Init=function(){bj.h.Init.call(this);this.pW={};this.dib=q.b.S()==q.ed};r.a("AdfDhtmlZOrderManager.prototype.Init",{Init:bj.prototype.Init});bj.Zra=function(){return bj.wCa};m("AdfDhtmlZOrderManager.getMaxZIndex",bj.Zra);bj.prototype.ac=function(){this.pW=null};r.a("AdfDhtmlZOrderManager.prototype.dispose",{ac:bj.prototype.ac});
bj.prototype.Tr=function(a,b,d,e){Qj(this,e);b=e?I.la(e,b):b;Rj(this,b).addElement(a,d)};r.a("AdfDhtmlZOrderManager.prototype.addElementToLayer",{Tr:bj.prototype.Tr});bj.prototype.vl=function(a){var b=a.parentNode,d=b.parentNode.getAttribute(bj.qA);Qj(this,d);b=b.getAttribute("id");u.Ya(b);(b=Rj(this,b))&&b.vl(a);aj.scope(a)};r.a("AdfDhtmlZOrderManager.prototype.raiseToFront",{vl:bj.prototype.vl});bj.uIa=function(a){u.J(a);return a.split(":").join("$")+"$key"};
function Rj(a,b){var d=bj.uIa(b),e=a.pW[d];return e&&!e.kC()?(delete a.pW[d],null):e}function Sj(a,b){var d=Rj(a,b);if(d)return d.kC();d=A.c.R().createElement("div");d.setAttribute("id",b);d.style.zIndex=bj.wCa;return d}
function Qj(a,b){var d;d=bj.yR;d=b?I.la(b,d):d;d=q.b.getElementById(d);if(!d){d=bj.pya;var e=bj.yR,e=b?I.la(b,e):e,e=Sj(a,e);C.w(e,bj.v1a);b&&e.setAttribute(bj.qA,b);for(var f=bj.sca,g=0;g<d.length;g++){var h=b?I.la(b,d[g]):d[g],l=Sj(a,h),n=new Pj(h),h=a,t=e,y=l,z=n.getId(),z=bj.uIa(z);h.pW[z]=n;t.appendChild(y);q.b.Ia(t);C.w(l,f)}Tj(e);d=e}bj.lka(b).lastChild!=d&&(e=d.getAttribute(bj.qA),e=bj.lka(e),d.parentNode!=e?Tj(d):(e.removeChild(d),e.appendChild(d)))}
function Tj(a){var b=a.getAttribute(bj.qA),b=bj.lka(b);a.parentNode!=b&&(b.appendChild(a),q.b.Ia(a))}bj.prototype.sH=function(a){if(null==a)return!1;var b=bj.yR;for(a=a.parentNode;a;a=a.parentNode)if(1==a.nodeType){var d=a.getAttribute("id");if(d){var d=d.split(":"),e=d.length;if(1<e&&b==d[e-1])return!0}}return!1};r.a("AdfDhtmlZOrderManager.prototype.containsElement",{sH:bj.prototype.sH});bj.prototype.qj=function(){var a=0,b=this.pW;for(id in b){var d=b[id];d&&d.kC()&&(a+=d.qra())}return a};
r.a("AdfDhtmlZOrderManager.prototype.getElementCount",{qj:bj.prototype.qj});bj.prototype.Si=function(a){if(a.parentNode){aj.TVa(a);var b=a.parentNode.getAttribute("id");u.Ya(b);b=Rj(this,b);u.Tc(b);b.Si(a)}};r.a("AdfDhtmlZOrderManager.prototype.removeElement",{Si:bj.prototype.Si});bj.lka=function(a){return(a=q.b.getElementById(a))?a:A.c.R().body};
bj.prototype.SC=function(a){var b;if(a){var d=bj.yR;for(a=a.parentNode;a;a=a.parentNode)if(1==a.nodeType){var e=a.getAttribute("id");if(e){var e=e.split(":"),f=e.length;if(1<f&&e[f-1]==d){b=a.getAttribute(bj.qA);break}}}}Qj(this,b);a=bj.Iba;d=b?I.la(b,a):a;d=Rj(this,d);delete d.Fpa;d.Ova(bj.rdb);e=d.Fpa;delete d.Fpa;e||(e=this.dib?"DIV":"IFRAME",e=d.kC().ownerDocument.createElement(e),this.UC(e),"IFRAME"==e.tagName&&(e.src=bj.JXa,e.setAttribute("aria-hidden",!0)),e.setAttribute(bj.O1,!1),this.Tr(e,
a,null,b));return e};r.a("AdfDhtmlZOrderManager.prototype.prepareMaskingFrame",{SC:bj.prototype.SC});bj.rdb=function(a,b){return"false"==b.getAttribute(bj.O1)?(a.Fpa=b,!0):!1};bj.prototype.vH=function(a){a=this.SC(a);a.setAttribute(bj.O1,!0);a.style.zIndex=1;return a};r.a("AdfDhtmlZOrderManager.prototype.createMaskingFrame",{vH:bj.prototype.vH});
bj.prototype.UC=function(a){a.frameBorder="0";a.className="AFMaskingFrame";var b=a.style;b.visibility="hidden";b.width="0px";b.height="0px";b.left="0px";b.top="0px";b.zIndex=0;a.setAttribute(bj.O1,!1)};r.a("AdfDhtmlZOrderManager.prototype.removeMaskingFrame",{UC:bj.prototype.UC});r.bb(bj);