function ej(){this.Init()}m("AdfDhtmlZOrderManager",ej);r.v(ej);
ej.ga=function(){var a=["__af_Z_maskingframe","__af_Z_window","__af_Z_tooltip"];this.yR="DhtmlZOrderManagerLayerContainer";m("AdfDhtmlZOrderManager.LAYERCONTAINER",ej.yR);this.iJ=a[1];m("AdfDhtmlZOrderManager.FLOATINGTYPE_WINDOW",ej.iJ);this.X_=a[2];m("AdfDhtmlZOrderManager.FLOATINGTYPE_TOOLTIP",ej.X_);this.Kba=a[0];m("AdfDhtmlZOrderManager.FLOATINGTYPE_MASKINGFRAME",ej.Kba);this.tya=a;m("AdfDhtmlZOrderManager.LAYERIDS",ej.tya);this.A1a="AFZOrderLayerContainer";this.uca="AFZOrderLayer";m("AdfDhtmlZOrderManager.LAYER_STYLECLASS",
ej.uca);this.ACa=Math.pow(2,31)-2;this.NXa="about:blank";this.qA="data-afr-fid";this.O1="data-afr-inuse"};m("AdfDhtmlZOrderManager.InitClass",ej.ga);ej.prototype.Init=function(){ej.h.Init.call(this);this.pW={};this.eib=q.b.S()==q.Yc};r.a("AdfDhtmlZOrderManager.prototype.Init",{Init:ej.prototype.Init});ej.csa=function(){return ej.ACa};m("AdfDhtmlZOrderManager.getMaxZIndex",ej.csa);ej.prototype.ac=function(){this.pW=null};r.a("AdfDhtmlZOrderManager.prototype.dispose",{ac:ej.prototype.ac});
ej.prototype.Ur=function(a,b,d,e){Sj(this,e);b=e?I.la(e,b):b;Tj(this,b).addElement(a,d)};r.a("AdfDhtmlZOrderManager.prototype.addElementToLayer",{Ur:ej.prototype.Ur});ej.prototype.vl=function(a){var b=a.parentNode,d=b.parentNode.getAttribute(ej.qA);Sj(this,d);b=b.getAttribute("id");u.Ya(b);(b=Tj(this,b))&&b.vl(a);dj.scope(a)};r.a("AdfDhtmlZOrderManager.prototype.raiseToFront",{vl:ej.prototype.vl});ej.zIa=function(a){u.J(a);return a.split(":").join("$")+"$key"};
function Tj(a,b){var d=ej.zIa(b),e=a.pW[d];return e&&!e.kC()?(delete a.pW[d],null):e}function Uj(a,b){var d=Tj(a,b);if(d)return d.kC();d=A.c.R().createElement("div");d.setAttribute("id",b);d.style.zIndex=ej.ACa;return d}
function Sj(a,b){var d;d=ej.yR;d=b?I.la(b,d):d;d=q.b.getElementById(d);if(!d){d=ej.tya;var e=ej.yR,e=b?I.la(b,e):e,e=Uj(a,e);C.w(e,ej.A1a);b&&e.setAttribute(ej.qA,b);for(var f=ej.uca,g=0;g<d.length;g++){var h=b?I.la(b,d[g]):d[g],l=Uj(a,h),n=new Rj(h),h=a,t=e,y=l,z=n.getId(),z=ej.zIa(z);h.pW[z]=n;t.appendChild(y);q.b.Ia(t);C.w(l,f)}Vj(e);d=e}ej.oka(b).lastChild!=d&&(e=d.getAttribute(ej.qA),e=ej.oka(e),d.parentNode!=e?Vj(d):(e.removeChild(d),e.appendChild(d)))}
function Vj(a){var b=a.getAttribute(ej.qA),b=ej.oka(b);a.parentNode!=b&&(b.appendChild(a),q.b.Ia(a))}ej.prototype.sH=function(a){if(null==a)return!1;var b=ej.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:ej.prototype.sH});ej.prototype.rj=function(){var a=0,b=this.pW;for(id in b){var d=b[id];d&&d.kC()&&(a+=d.ura())}return a};
r.a("AdfDhtmlZOrderManager.prototype.getElementCount",{rj:ej.prototype.rj});ej.prototype.Ti=function(a){if(a.parentNode){dj.XVa(a);var b=a.parentNode.getAttribute("id");u.Ya(b);b=Tj(this,b);u.Uc(b);b.Ti(a)}};r.a("AdfDhtmlZOrderManager.prototype.removeElement",{Ti:ej.prototype.Ti});ej.oka=function(a){return(a=q.b.getElementById(a))?a:A.c.R().body};
ej.prototype.SC=function(a){var b;if(a){var d=ej.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(ej.qA);break}}}}Sj(this,b);a=ej.Kba;d=b?I.la(b,a):a;d=Tj(this,d);delete d.Jpa;d.Sva(ej.sdb);e=d.Jpa;delete d.Jpa;e||(e=this.eib?"DIV":"IFRAME",e=d.kC().ownerDocument.createElement(e),this.UC(e),"IFRAME"==e.tagName&&(e.src=ej.NXa,e.setAttribute("aria-hidden",!0)),e.setAttribute(ej.O1,!1),this.Ur(e,
a,null,b));return e};r.a("AdfDhtmlZOrderManager.prototype.prepareMaskingFrame",{SC:ej.prototype.SC});ej.sdb=function(a,b){return"false"==b.getAttribute(ej.O1)?(a.Jpa=b,!0):!1};ej.prototype.vH=function(a){a=this.SC(a);a.setAttribute(ej.O1,!0);a.style.zIndex=1;return a};r.a("AdfDhtmlZOrderManager.prototype.createMaskingFrame",{vH:ej.prototype.vH});
ej.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(ej.O1,!1)};r.a("AdfDhtmlZOrderManager.prototype.removeMaskingFrame",{UC:ej.prototype.UC});r.bb(ej);