function ph(a){this.Init(a)}v("AdfDhtmlZOrderLayer",ph);z.l(ph);ph.lpa=20;ph.prototype.Init=function(a){ph.f.Init.call(this);this.fTa=a;this.ni=[];this.m$=0};z.a("AdfDhtmlZOrderLayer.prototype.Init",{Init:ph.prototype.Init});ph.prototype.ey=function(){var a=this.getId();return w.b.getElementById(a)};z.a("AdfDhtmlZOrderLayer.prototype.getContainerElement",{ey:ph.prototype.ey});ph.prototype.Gfa=r("m$");z.a("AdfDhtmlZOrderLayer.prototype.getContainerElementCount",{Gfa:ph.prototype.Gfa});
ph.prototype.getId=r("fTa");z.a("AdfDhtmlZOrderLayer.prototype.getId",{getId:ph.prototype.getId});ph.prototype.addElement=function(a,b){this.m$++;var d=this.ni,e=0;b?(e=ya.indexOf(d,b),-1<e?d.splice(e,0,a):(d.push(a),e=d.length-1)):(d.push(a),e=d.length-1);for(;e<d.length;e++)e in d&&(this.ni[e].style.zIndex=2*e+ph.lpa);this.ey().appendChild(a)};z.a("AdfDhtmlZOrderLayer.prototype.addElement",{addElement:ph.prototype.addElement});
ph.prototype.Ci=function(a){var b=this.m$--,d=this.ni,e=ya.indexOf(d,a);-1<e&&delete d[e];this.ey().removeChild(a);0==b&&(this.ni=[])};z.a("AdfDhtmlZOrderLayer.prototype.removeElement",{Ci:ph.prototype.Ci});ph.prototype.bk=function(a){var b=this.ni,d=ya.indexOf(b,a);-1<d&&(delete b[d],b.push(a),a=b.length-1,this.ni[a].style.zIndex=2*a+ph.lpa)};z.a("AdfDhtmlZOrderLayer.prototype.raiseToFront",{bk:ph.prototype.bk});
ph.prototype.pja=function(a){B.Da(a,"no visitor callback");for(var b=this.ni,d=0;d<b.length&&!(d in b&&a(this,b[d]));d++);};z.a("AdfDhtmlZOrderLayer.prototype.visitElements",{pja:ph.prototype.pja});