function $AdfDhtmlZOrderLayer$$($containerElementId$$) {
  this.Init($containerElementId$$)
}
$goog$exportSymbol$$("AdfDhtmlZOrderLayer", $AdfDhtmlZOrderLayer$$);
$AdfObject$$.$createSubclass$($AdfDhtmlZOrderLayer$$);
$AdfDhtmlZOrderLayer$$.$_MINIMAL_Z_INDEX$ = 20;
$AdfDhtmlZOrderLayer$$.prototype.Init = function $$AdfDhtmlZOrderLayer$$$$Init$($containerElementId$$1$$) {
  $AdfDhtmlZOrderLayer$$.$superclass$.Init.call(this);
  this.$_containerElementId$ = $containerElementId$$1$$;
  this.$_elements$ = [];
  this.$_elementsCount$ = 0
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlZOrderLayer.prototype.Init", {Init:$AdfDhtmlZOrderLayer$$.prototype.Init});
$AdfDhtmlZOrderLayer$$.prototype.$getContainerElement$ = function $$AdfDhtmlZOrderLayer$$$$$getContainerElement$$() {
  var $containerElementId$$2$$ = this.getId();
  return $AdfAgent$$.$AGENT$.getElementById($containerElementId$$2$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlZOrderLayer.prototype.getContainerElement", {$getContainerElement$:$AdfDhtmlZOrderLayer$$.prototype.$getContainerElement$});
$AdfDhtmlZOrderLayer$$.prototype.$getContainerElementCount$ = $JSCompiler_get$$("$_elementsCount$");
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlZOrderLayer.prototype.getContainerElementCount", {$getContainerElementCount$:$AdfDhtmlZOrderLayer$$.prototype.$getContainerElementCount$});
$AdfDhtmlZOrderLayer$$.prototype.getId = $JSCompiler_get$$("$_containerElementId$");
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlZOrderLayer.prototype.getId", {getId:$AdfDhtmlZOrderLayer$$.prototype.getId});
$AdfDhtmlZOrderLayer$$.prototype.addElement = function $$AdfDhtmlZOrderLayer$$$$addElement$($element$$159$$, $priorElement$$) {
  this.$_elementsCount$++;
  var $elements$$12$$ = this.$_elements$, $i$$141_s$$4$$ = 0;
  $priorElement$$ ? ($i$$141_s$$4$$ = $AdfCollections$$.indexOf($elements$$12$$, $priorElement$$), -1 < $i$$141_s$$4$$ ? $elements$$12$$.splice($i$$141_s$$4$$, 0, $element$$159$$) : ($elements$$12$$.push($element$$159$$), $i$$141_s$$4$$ = $elements$$12$$.length - 1)) : ($elements$$12$$.push($element$$159$$), $i$$141_s$$4$$ = $elements$$12$$.length - 1);
  for(;$i$$141_s$$4$$ < $elements$$12$$.length;$i$$141_s$$4$$++) {
    $i$$141_s$$4$$ in $elements$$12$$ && (this.$_elements$[$i$$141_s$$4$$].style.zIndex = 2 * $i$$141_s$$4$$ + $AdfDhtmlZOrderLayer$$.$_MINIMAL_Z_INDEX$)
  }
  this.$getContainerElement$().appendChild($element$$159$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlZOrderLayer.prototype.addElement", {addElement:$AdfDhtmlZOrderLayer$$.prototype.addElement});
$AdfDhtmlZOrderLayer$$.prototype.$removeElement$ = function $$AdfDhtmlZOrderLayer$$$$$removeElement$$($element$$160$$) {
  var $elementsCount$$ = this.$_elementsCount$--, $elements$$13$$ = this.$_elements$, $i$$142$$ = $AdfCollections$$.indexOf($elements$$13$$, $element$$160$$);
  -1 < $i$$142$$ && delete $elements$$13$$[$i$$142$$];
  this.$getContainerElement$().removeChild($element$$160$$);
  0 == $elementsCount$$ && (this.$_elements$ = [])
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlZOrderLayer.prototype.removeElement", {$removeElement$:$AdfDhtmlZOrderLayer$$.prototype.$removeElement$});
$AdfDhtmlZOrderLayer$$.prototype.$raiseToFront$ = function $$AdfDhtmlZOrderLayer$$$$$raiseToFront$$($elementIndex$$inline_797_raisingElement$$) {
  var $elements$$14$$ = this.$_elements$, $i$$143$$ = $AdfCollections$$.indexOf($elements$$14$$, $elementIndex$$inline_797_raisingElement$$);
  -1 < $i$$143$$ && (delete $elements$$14$$[$i$$143$$], $elements$$14$$.push($elementIndex$$inline_797_raisingElement$$), $elementIndex$$inline_797_raisingElement$$ = $elements$$14$$.length - 1, this.$_elements$[$elementIndex$$inline_797_raisingElement$$].style.zIndex = 2 * $elementIndex$$inline_797_raisingElement$$ + $AdfDhtmlZOrderLayer$$.$_MINIMAL_Z_INDEX$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlZOrderLayer.prototype.raiseToFront", {$raiseToFront$:$AdfDhtmlZOrderLayer$$.prototype.$raiseToFront$});
$AdfDhtmlZOrderLayer$$.prototype.$visitElements$ = function $$AdfDhtmlZOrderLayer$$$$$visitElements$$($callback$$38$$) {
  $AdfAssert$$.$assertFunction$($callback$$38$$, "no visitor callback");
  for(var $elements$$15$$ = this.$_elements$, $i$$144$$ = 0;$i$$144$$ < $elements$$15$$.length && !($i$$144$$ in $elements$$15$$ && $callback$$38$$(this, $elements$$15$$[$i$$144$$]));$i$$144$$++) {
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlZOrderLayer.prototype.visitElements", {$visitElements$:$AdfDhtmlZOrderLayer$$.prototype.$visitElements$});
