function $AdfDhtmlPositionManager$$() {
  this.Init()
}
$goog$exportSymbol$$("AdfDhtmlPositionManager", $AdfDhtmlPositionManager$$);
$goog$exportSymbol$$("AdfDhtmlPositionManager", $AdfDhtmlPositionManager$$);
$AdfObject$$.$createSubclass$($AdfDhtmlPositionManager$$);
$AdfDhtmlPositionManager$$.$InitClass$ = function $$AdfDhtmlPositionManager$$$$InitClass$$() {
  this.$TOP$ = 0;
  $goog$exportSymbol$$("AdfDhtmlPositionManager.TOP", $AdfDhtmlPositionManager$$.$TOP$);
  this.$MIDDLE$ = 1;
  $goog$exportSymbol$$("AdfDhtmlPositionManager.MIDDLE", $AdfDhtmlPositionManager$$.$MIDDLE$);
  this.$BOTTOM$ = 2;
  $goog$exportSymbol$$("AdfDhtmlPositionManager.BOTTOM", $AdfDhtmlPositionManager$$.$BOTTOM$);
  this.$LEFT$ = 3;
  $goog$exportSymbol$$("AdfDhtmlPositionManager.LEFT", $AdfDhtmlPositionManager$$.$LEFT$);
  this.$CENTER$ = 4;
  $goog$exportSymbol$$("AdfDhtmlPositionManager.CENTER", $AdfDhtmlPositionManager$$.$CENTER$);
  this.$RIGHT$ = 5;
  $goog$exportSymbol$$("AdfDhtmlPositionManager.RIGHT", $AdfDhtmlPositionManager$$.$RIGHT$);
  this.$MIN_WIDTH$ = 32;
  $goog$exportSymbol$$("AdfDhtmlPositionManager.MIN_WIDTH", $AdfDhtmlPositionManager$$.$MIN_WIDTH$)
};
$goog$exportSymbol$$("AdfDhtmlPositionManager.InitClass", $AdfDhtmlPositionManager$$.$InitClass$);
$AdfDhtmlPositionManager$$.prototype.Init = function $$AdfDhtmlPositionManager$$$$Init$() {
  $AdfDhtmlPositionManager$$.$superclass$.Init.call(this);
  var $logger$$5$$ = $AdfLogger$$.$LOGGER$;
  $logger$$5$$.getLevel($AdfLogger$$.FINEST) && (this.$_logger$ = $logger$$5$$);
  this.$_elements$ = [];
  this.$_isRTL$ = $AdfPage$$.$PAGE$.$getLocaleContext$().$isRightToLeft$()
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPositionManager.prototype.Init", {Init:$AdfDhtmlPositionManager$$.prototype.Init});
$AdfDhtmlPositionManager$$.prototype.$getElementCount$ = function $$AdfDhtmlPositionManager$$$$$getElementCount$$() {
  var $count$$8$$ = 0, $elements$$9$$ = this.$_elements$, $element$$150$$;
  for($element$$150$$ in $elements$$9$$) {
    $element$$150$$ && $count$$8$$++
  }
  return $count$$8$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPositionManager.prototype.getElementCount", {$getElementCount$:$AdfDhtmlPositionManager$$.prototype.$getElementCount$});
$AdfDhtmlPositionManager$$.prototype.$dispose$ = function $$AdfDhtmlPositionManager$$$$$dispose$$() {
  this.$_elements$ = $JSCompiler_alias_NULL$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPositionManager.prototype.dispose", {$dispose$:$AdfDhtmlPositionManager$$.prototype.$dispose$});
$AdfDhtmlPositionManager$$.prototype.$addFloatingElement$ = function $$AdfDhtmlPositionManager$$$$$addFloatingElement$$($floatingElement$$, $alignmentHint$$1$$) {
  $floatingElement$$.$getAlignPosition$() || $AdfAssert$$.$assertDomElement$($floatingElement$$.$getAlignElement$());
  return $JSCompiler_StaticMethods__addFloatingElement$$(this, $floatingElement$$, $alignmentHint$$1$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPositionManager.prototype.addFloatingElement", {$addFloatingElement$:$AdfDhtmlPositionManager$$.prototype.$addFloatingElement$});
$AdfDhtmlPositionManager$$.prototype.$addFloatingElementByPosition$ = function $$AdfDhtmlPositionManager$$$$$addFloatingElementByPosition$$($floatingElement$$1$$, $pos$$11$$) {
  $floatingElement$$1$$.$setAlignPosition$($pos$$11$$);
  return $JSCompiler_StaticMethods__addFloatingElement$$(this, $floatingElement$$1$$, AdfRichPopup.$ALIGN_AFTER_START$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPositionManager.prototype.addFloatingElementByPosition", {$addFloatingElementByPosition$:$AdfDhtmlPositionManager$$.prototype.$addFloatingElementByPosition$});
$AdfDhtmlPositionManager$$.prototype.$calculatePlacementPosition$ = function $$AdfDhtmlPositionManager$$$$$calculatePlacementPosition$$($box$$1_elementHeight$$, $elementWidth$$, $alignmentHint$$3_preferredHorizontalBehavior_verticalBehavior$$, $alignBox_alignElement$$5$$, $alignPosition_horizontalBehavior$$) {
  var $hintBehavior_preferredVerticalBehavior$$ = $JSCompiler_StaticMethods__getHintBehavior$$(this, $alignmentHint$$3_preferredHorizontalBehavior_verticalBehavior$$);
  $alignmentHint$$3_preferredHorizontalBehavior_verticalBehavior$$ = $hintBehavior_preferredVerticalBehavior$$.$horizontalBehavior$;
  $hintBehavior_preferredVerticalBehavior$$ = $hintBehavior_preferredVerticalBehavior$$.$verticalBehavior$;
  $box$$1_elementHeight$$ = {top:0, right:$elementWidth$$, bottom:$box$$1_elementHeight$$, left:0, width:$elementWidth$$, height:$box$$1_elementHeight$$};
  $alignBox_alignElement$$5$$ = $JSCompiler_StaticMethods__getAlignBox$$($alignBox_alignElement$$5$$, $alignPosition_horizontalBehavior$$);
  $alignPosition_horizontalBehavior$$ = $JSCompiler_StaticMethods__selectBehavior$$(this, $alignmentHint$$3_preferredHorizontalBehavior_verticalBehavior$$, $box$$1_elementHeight$$, $alignBox_alignElement$$5$$);
  $alignmentHint$$3_preferredHorizontalBehavior_verticalBehavior$$ = $JSCompiler_StaticMethods__selectBehavior$$(this, $hintBehavior_preferredVerticalBehavior$$, $box$$1_elementHeight$$, $alignBox_alignElement$$5$$);
  return $JSCompiler_StaticMethods__getNewPosition$$($alignPosition_horizontalBehavior$$, $alignmentHint$$3_preferredHorizontalBehavior_verticalBehavior$$, $box$$1_elementHeight$$, $alignBox_alignElement$$5$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPositionManager.prototype.calculatePlacementPosition", {$calculatePlacementPosition$:$AdfDhtmlPositionManager$$.prototype.$calculatePlacementPosition$});
function $JSCompiler_StaticMethods__addFloatingElement$$($JSCompiler_StaticMethods__addFloatingElement$self$$, $floatingElement$$2$$, $alignmentHint$$4_verticalBehaviors$$inline_697$$) {
  $AdfAssert$$.$assertDomElement$($floatingElement$$2$$.$getElement$());
  if(1 > $JSCompiler_StaticMethods__addFloatingElement$self$$.$getElementCount$()) {
    var $agent$$inline_689_horizontalBehaviors$$inline_698$$ = $AdfAgent$$.$AGENT$, $domWindow$$inline_690_hintBehavior$$1_insideBorder$$inline_699$$ = $agent$$inline_689_horizontalBehaviors$$inline_698$$.$getDomWindow$(), $alignElement$$inline_700_alignElementIsManaged$$inline_701_domDocument$$inline_691$$ = $agent$$inline_689_horizontalBehaviors$$inline_698$$.$getDomDocument$(), $resizeCallback$$inline_692$$ = $JSCompiler_StaticMethods__addFloatingElement$self$$.$_repostionOnScrollCallback$;
    $resizeCallback$$inline_692$$ || ($resizeCallback$$inline_692$$ = $JSCompiler_StaticMethods__addFloatingElement$self$$.$_repostionOnScrollCallback$ = $JSCompiler_StaticMethods__addFloatingElement$self$$.$createCallback$($JSCompiler_StaticMethods__addFloatingElement$self$$.$_repostionOnScroll$));
    var $isIE$$inline_693$$ = $agent$$inline_689_horizontalBehaviors$$inline_698$$.$getPlatform$() == $AdfAgent$$.$IE_PLATFORM$;
    $agent$$inline_689_horizontalBehaviors$$inline_698$$.$isInlineDialogRepositioningOnScroll$() && ($agent$$inline_689_horizontalBehaviors$$inline_698$$.$addBubbleEventListener$($alignElement$$inline_700_alignElementIsManaged$$inline_701_domDocument$$inline_691$$, "mousewheel", $resizeCallback$$inline_692$$), $agent$$inline_689_horizontalBehaviors$$inline_698$$.$addBubbleEventListener$($domWindow$$inline_690_hintBehavior$$1_insideBorder$$inline_699$$, "scroll", $resizeCallback$$inline_692$$), $isIE$$inline_693$$ || 
    $agent$$inline_689_horizontalBehaviors$$inline_698$$.$addBubbleEventListener$($alignElement$$inline_700_alignElementIsManaged$$inline_701_domDocument$$inline_691$$, "DOMMouseScroll", $resizeCallback$$inline_692$$));
    $agent$$inline_689_horizontalBehaviors$$inline_698$$.$addBubbleEventListener$($domWindow$$inline_690_hintBehavior$$1_insideBorder$$inline_699$$, "resize", $resizeCallback$$inline_692$$)
  }
  $domWindow$$inline_690_hintBehavior$$1_insideBorder$$inline_699$$ = $JSCompiler_StaticMethods__getHintBehavior$$($JSCompiler_StaticMethods__addFloatingElement$self$$, $alignmentHint$$4_verticalBehaviors$$inline_697$$);
  $alignmentHint$$4_verticalBehaviors$$inline_697$$ = $domWindow$$inline_690_hintBehavior$$1_insideBorder$$inline_699$$.$verticalBehavior$;
  $agent$$inline_689_horizontalBehaviors$$inline_698$$ = $domWindow$$inline_690_hintBehavior$$1_insideBorder$$inline_699$$.$horizontalBehavior$;
  $domWindow$$inline_690_hintBehavior$$1_insideBorder$$inline_699$$ = $domWindow$$inline_690_hintBehavior$$1_insideBorder$$inline_699$$.$insideBorder$;
  $alignElement$$inline_700_alignElementIsManaged$$inline_701_domDocument$$inline_691$$ = ($alignElement$$inline_700_alignElementIsManaged$$inline_701_domDocument$$inline_691$$ = $floatingElement$$2$$.$getAlignElement$()) ? $JSCompiler_StaticMethods__addFloatingElement$self$$.$managesElement$($alignElement$$inline_700_alignElementIsManaged$$inline_701_domDocument$$inline_691$$) : $JSCompiler_alias_FALSE$$;
  $JSCompiler_StaticMethods__addFloatingElement$self$$.$_elements$.push({element:$floatingElement$$2$$, $verticalBehaviors$:$alignmentHint$$4_verticalBehaviors$$inline_697$$, $horizontalBehaviors$:$agent$$inline_689_horizontalBehaviors$$inline_698$$, $alignElementIsManaged$:$alignElement$$inline_700_alignElementIsManaged$$inline_701_domDocument$$inline_691$$, $insideBorder$:$domWindow$$inline_690_hintBehavior$$1_insideBorder$$inline_699$$});
  return $JSCompiler_StaticMethods__addFloatingElement$self$$.$_elements$.length - 1
}
function $JSCompiler_StaticMethods__getHintBehavior$$($JSCompiler_StaticMethods__getHintBehavior$self$$, $alignmentHint$$5$$) {
  var $bottom$$1$$ = $AdfDhtmlPositionManager$$.$BOTTOM$, $top$$6$$ = $AdfDhtmlPositionManager$$.$TOP$, $start$$9$$ = $JSCompiler_StaticMethods__convertHorizontal$$($JSCompiler_StaticMethods__getHintBehavior$self$$, "start"), $end$$3$$ = $JSCompiler_StaticMethods__convertHorizontal$$($JSCompiler_StaticMethods__getHintBehavior$self$$, "end"), $insideBorder$$ = $JSCompiler_alias_FALSE$$, $horizontal$$, $vertical$$;
  switch($alignmentHint$$5$$) {
    case AdfRichPopup.$ALIGN_AFTER_START$:
      $vertical$$ = [$bottom$$1$$, $top$$6$$];
      $horizontal$$ = [$start$$9$$, $start$$9$$];
      break;
    case AdfRichPopup.$ALIGN_AFTER_END$:
      $vertical$$ = [$bottom$$1$$, $top$$6$$];
      $horizontal$$ = [$end$$3$$, $end$$3$$];
      break;
    case AdfRichPopup.$ALIGN_BEFORE_START$:
      $vertical$$ = [$top$$6$$, $bottom$$1$$];
      $horizontal$$ = [$start$$9$$, $start$$9$$];
      break;
    case AdfRichPopup.$ALIGN_BEFORE_END$:
      $vertical$$ = [$top$$6$$, $bottom$$1$$];
      $horizontal$$ = [$end$$3$$, $end$$3$$];
      break;
    case AdfRichPopup.$ALIGN_END_AFTER$:
      $vertical$$ = [$bottom$$1$$, $bottom$$1$$];
      $horizontal$$ = [$end$$3$$, $start$$9$$];
      break;
    case AdfRichPopup.$ALIGN_END_BEFORE$:
      $vertical$$ = [$top$$6$$, $top$$6$$];
      $horizontal$$ = [$end$$3$$, $start$$9$$];
      break;
    case AdfRichPopup.$ALIGN_START_AFTER$:
      $vertical$$ = [$bottom$$1$$, $bottom$$1$$];
      $horizontal$$ = [$start$$9$$, $end$$3$$];
      break;
    case AdfRichPopup.$ALIGN_START_BEFORE$:
      $vertical$$ = [$top$$6$$, $top$$6$$];
      $horizontal$$ = [$start$$9$$, $end$$3$$];
      break;
    case AdfRichPopup.$ALIGN_OVERLAP$:
      $vertical$$ = [$top$$6$$, $top$$6$$];
      $horizontal$$ = [$start$$9$$, $start$$9$$];
      break;
    case AdfRichPopup.$ALIGN_OVERLAP_END_BEFORE$:
      $insideBorder$$ = $JSCompiler_alias_TRUE$$;
      $vertical$$ = [$top$$6$$, $top$$6$$];
      $horizontal$$ = [$end$$3$$, $end$$3$$];
      break;
    case AdfRichPopup.$ALIGN_OVERLAP_START_BEFORE$:
      $insideBorder$$ = $JSCompiler_alias_TRUE$$;
      $vertical$$ = [$top$$6$$, $top$$6$$];
      $horizontal$$ = [$start$$9$$, $start$$9$$];
      break;
    case AdfRichPopup.$ALIGN_BEFORE_AFTER$:
      $vertical$$ = [$top$$6$$, $bottom$$1$$, $top$$6$$, $bottom$$1$$];
      $horizontal$$ = [$end$$3$$, $end$$3$$, $end$$3$$, $start$$9$$];
      break;
    default:
      $AdfAssert$$.assert($JSCompiler_alias_FALSE$$, "Invalid alignmentHint provided")
  }
  return{$horizontalBehavior$:$JSCompiler_StaticMethods__getBehavior$$($JSCompiler_StaticMethods__getHintBehavior$self$$, $horizontal$$), $verticalBehavior$:$JSCompiler_StaticMethods__getBehavior$$($JSCompiler_StaticMethods__getHintBehavior$self$$, $vertical$$), $insideBorder$:$insideBorder$$}
}
function $JSCompiler_StaticMethods__inversePosition$$($position$$2$$) {
  switch($position$$2$$) {
    case $AdfDhtmlPositionManager$$.$TOP$:
      return $AdfDhtmlPositionManager$$.$BOTTOM$;
    case $AdfDhtmlPositionManager$$.$BOTTOM$:
      return $AdfDhtmlPositionManager$$.$TOP$;
    case $AdfDhtmlPositionManager$$.$LEFT$:
      return $AdfDhtmlPositionManager$$.$RIGHT$;
    case $AdfDhtmlPositionManager$$.$RIGHT$:
      return $AdfDhtmlPositionManager$$.$LEFT$
  }
}
function $JSCompiler_StaticMethods__positionToString$$($position$$3$$) {
  switch($position$$3$$) {
    case $AdfDhtmlPositionManager$$.$TOP$:
      return"Top";
    case $AdfDhtmlPositionManager$$.$BOTTOM$:
      return"Bottom";
    case $AdfDhtmlPositionManager$$.$LEFT$:
      return"Left";
    case $AdfDhtmlPositionManager$$.$RIGHT$:
      return"Right"
  }
}
function $JSCompiler_StaticMethods__getBehavior$$($JSCompiler_StaticMethods__getBehavior$self$$, $preference$$) {
  for(var $behaviors$$6$$ = [], $i$$135$$ = 0;$i$$135$$ < $preference$$.length;$i$$135$$ += 2) {
    $behaviors$$6$$.splice(0, 0, {$alignElementAnchor$:$preference$$[$i$$135$$], $floatingElementAnchor$:$preference$$[$i$$135$$ + 1], $condition$:$JSCompiler_StaticMethods__getBehavior$self$$["_prefer" + $JSCompiler_StaticMethods__positionToString$$($JSCompiler_StaticMethods__inversePosition$$($preference$$[$i$$135$$])) + $JSCompiler_StaticMethods__positionToString$$($JSCompiler_StaticMethods__inversePosition$$($preference$$[$i$$135$$ + 1])) + "Condition"]}, {$alignElementAnchor$:$JSCompiler_StaticMethods__inversePosition$$($preference$$[$i$$135$$]), 
    $floatingElementAnchor$:$JSCompiler_StaticMethods__inversePosition$$($preference$$[$i$$135$$ + 1]), $condition$:$JSCompiler_StaticMethods__getBehavior$self$$["_prefer" + $JSCompiler_StaticMethods__positionToString$$($preference$$[$i$$135$$]) + $JSCompiler_StaticMethods__positionToString$$($preference$$[$i$$135$$ + 1]) + "Condition"]})
  }
  return $behaviors$$6$$
}
function $JSCompiler_StaticMethods__getAlignBox$$($alignElement$$6_bottom$$2_rect$$, $alignPosition$$1_left$$8$$, $insideBorder$$1_top$$8$$) {
  var $agent$$79_pos$$13_width$$20$$ = $AdfAgent$$.$AGENT$, $right$$3$$, $height$$23$$;
  $alignElement$$6_bottom$$2_rect$$ ? ($agent$$79_pos$$13_width$$20$$ = $agent$$79_pos$$13_width$$20$$.$getElementPosition$($alignElement$$6_bottom$$2_rect$$), $alignElement$$6_bottom$$2_rect$$ instanceof SVGElement ? ($insideBorder$$1_top$$8$$ = $agent$$79_pos$$13_width$$20$$.y, $alignPosition$$1_left$$8$$ = $agent$$79_pos$$13_width$$20$$.x, $alignElement$$6_bottom$$2_rect$$ = $alignElement$$6_bottom$$2_rect$$.getBoundingClientRect(), $agent$$79_pos$$13_width$$20$$ = $alignElement$$6_bottom$$2_rect$$.width, 
  $height$$23$$ = $alignElement$$6_bottom$$2_rect$$.height) : $insideBorder$$1_top$$8$$ ? ($insideBorder$$1_top$$8$$ = $agent$$79_pos$$13_width$$20$$.y + $alignElement$$6_bottom$$2_rect$$.clientTop, $alignPosition$$1_left$$8$$ = $agent$$79_pos$$13_width$$20$$.x + $alignElement$$6_bottom$$2_rect$$.clientLeft, $agent$$79_pos$$13_width$$20$$ = $alignElement$$6_bottom$$2_rect$$.clientWidth, $height$$23$$ = $alignElement$$6_bottom$$2_rect$$.clientHeight) : ($insideBorder$$1_top$$8$$ = $agent$$79_pos$$13_width$$20$$.y, 
  $alignPosition$$1_left$$8$$ = $agent$$79_pos$$13_width$$20$$.x, $agent$$79_pos$$13_width$$20$$ = $alignElement$$6_bottom$$2_rect$$.offsetWidth, $height$$23$$ = $alignElement$$6_bottom$$2_rect$$.offsetHeight), $alignElement$$6_bottom$$2_rect$$ = $insideBorder$$1_top$$8$$ + $height$$23$$, $right$$3$$ = $alignPosition$$1_left$$8$$ + $agent$$79_pos$$13_width$$20$$) : ($height$$23$$ = $agent$$79_pos$$13_width$$20$$ = 0, $alignPosition$$1_left$$8$$ == $JSCompiler_alias_NULL$$ ? $right$$3$$ = $alignPosition$$1_left$$8$$ = 
  $alignElement$$6_bottom$$2_rect$$ = $insideBorder$$1_top$$8$$ = 0 : ($alignElement$$6_bottom$$2_rect$$ = $insideBorder$$1_top$$8$$ = $alignPosition$$1_left$$8$$.y, $right$$3$$ = $alignPosition$$1_left$$8$$ = $alignPosition$$1_left$$8$$.x));
  return{top:$insideBorder$$1_top$$8$$, bottom:$alignElement$$6_bottom$$2_rect$$, left:$alignPosition$$1_left$$8$$, right:$right$$3$$, width:$agent$$79_pos$$13_width$$20$$, height:$height$$23$$}
}
$AdfDhtmlPositionManager$$.prototype.$_preferTopTopCondition$ = function $$AdfDhtmlPositionManager$$$$$_preferTopTopCondition$$($box$$4_isValid$$, $alignBox$$1_fitsAbove$$, $inverse$$) {
  var $agent$$80_fitsBelow$$ = $AdfAgent$$.$AGENT$, $fitsShadowDownward_logger$$6_windowHeight$$ = $agent$$80_fitsBelow$$.getWindowHeight(), $scrollTop$$8$$ = $agent$$80_fitsBelow$$.$getBrowserViewportScrollTop$(), $shadowSize$$1$$ = $AdfDhtmlShadowDecorator$$.$getShadowSize$(), $agent$$80_fitsBelow$$ = $alignBox$$1_fitsAbove$$.top + $box$$4_isValid$$.height <= $fitsShadowDownward_logger$$6_windowHeight$$ + $scrollTop$$8$$, $fitsShadowDownward_logger$$6_windowHeight$$ = $alignBox$$1_fitsAbove$$.bottom + 
  $shadowSize$$1$$ <= $fitsShadowDownward_logger$$6_windowHeight$$ + $scrollTop$$8$$;
  $alignBox$$1_fitsAbove$$ = $alignBox$$1_fitsAbove$$.bottom - ($box$$4_isValid$$.height - $shadowSize$$1$$) >= $scrollTop$$8$$ && $fitsShadowDownward_logger$$6_windowHeight$$;
  $box$$4_isValid$$ = $inverse$$ ? $agent$$80_fitsBelow$$ : $alignBox$$1_fitsAbove$$;
  ($fitsShadowDownward_logger$$6_windowHeight$$ = this.$_logger$) && $fitsShadowDownward_logger$$6_windowHeight$$.$logMessage$($AdfLogger$$.FINEST, ($inverse$$ ? "_preferBottomBottomCondition" : "_preferTopTopCondition") + " fitsBelow\x3d" + $agent$$80_fitsBelow$$ + " fitsAbove\x3d" + $alignBox$$1_fitsAbove$$ + " return\x3d" + $box$$4_isValid$$ + " usedBy\x3d" + ($inverse$$ ? "end_before, start_before, overlap" : "end_after, start_after"));
  return $box$$4_isValid$$
};
$AdfDhtmlPositionManager$$.prototype._preferTopTopCondition = $AdfDhtmlPositionManager$$.prototype.$_preferTopTopCondition$;
$AdfDhtmlPositionManager$$.prototype.$_preferBottomBottomCondition$ = function $$AdfDhtmlPositionManager$$$$$_preferBottomBottomCondition$$($box$$5$$, $alignBox$$2$$) {
  return this.$_preferTopTopCondition$($box$$5$$, $alignBox$$2$$, $JSCompiler_alias_TRUE$$)
};
$AdfDhtmlPositionManager$$.prototype._preferBottomBottomCondition = $AdfDhtmlPositionManager$$.prototype.$_preferBottomBottomCondition$;
$AdfDhtmlPositionManager$$.prototype.$_preferBottomTopCondition$ = function $$AdfDhtmlPositionManager$$$$$_preferBottomTopCondition$$($box$$6_isValid$$1$$, $alignBox$$3_fitsBelow$$1$$, $inverse$$1$$) {
  var $agent$$81_fitsAbove$$1_shadowSize$$2$$ = $AdfAgent$$.$AGENT$, $logger$$7_windowHeight$$1$$ = $agent$$81_fitsAbove$$1_shadowSize$$2$$.getWindowHeight(), $scrollTop$$9$$ = $agent$$81_fitsAbove$$1_shadowSize$$2$$.$getBrowserViewportScrollTop$(), $agent$$81_fitsAbove$$1_shadowSize$$2$$ = $AdfDhtmlShadowDecorator$$.$getShadowSize$(), $fitsShadowDownward$$1$$ = $alignBox$$3_fitsBelow$$1$$.top + $agent$$81_fitsAbove$$1_shadowSize$$2$$ <= $logger$$7_windowHeight$$1$$ + $scrollTop$$9$$, $agent$$81_fitsAbove$$1_shadowSize$$2$$ = 
  $alignBox$$3_fitsBelow$$1$$.top - ($box$$6_isValid$$1$$.height - $agent$$81_fitsAbove$$1_shadowSize$$2$$) >= $scrollTop$$9$$ && $fitsShadowDownward$$1$$;
  $alignBox$$3_fitsBelow$$1$$ = $alignBox$$3_fitsBelow$$1$$.bottom + $box$$6_isValid$$1$$.height <= $logger$$7_windowHeight$$1$$ + $scrollTop$$9$$;
  $box$$6_isValid$$1$$ = $inverse$$1$$ ? $alignBox$$3_fitsBelow$$1$$ : $agent$$81_fitsAbove$$1_shadowSize$$2$$;
  ($logger$$7_windowHeight$$1$$ = this.$_logger$) && $logger$$7_windowHeight$$1$$.$logMessage$($AdfLogger$$.FINEST, ($inverse$$1$$ ? "_preferTopBottomCondition" : "_preferBottomTopCondition") + " fitsAbove\x3d" + $agent$$81_fitsAbove$$1_shadowSize$$2$$ + " fitsBelow\x3d" + $alignBox$$3_fitsBelow$$1$$ + " return\x3d" + $box$$6_isValid$$1$$ + " usedBy\x3d" + ($inverse$$1$$ ? "after_start, after_end" : "before_start, before_end, before_after"));
  return $box$$6_isValid$$1$$
};
$AdfDhtmlPositionManager$$.prototype._preferBottomTopCondition = $AdfDhtmlPositionManager$$.prototype.$_preferBottomTopCondition$;
$AdfDhtmlPositionManager$$.prototype.$_preferTopBottomCondition$ = function $$AdfDhtmlPositionManager$$$$$_preferTopBottomCondition$$($box$$7$$, $alignBox$$4$$) {
  return this.$_preferBottomTopCondition$($box$$7$$, $alignBox$$4$$, $JSCompiler_alias_TRUE$$)
};
$AdfDhtmlPositionManager$$.prototype._preferTopBottomCondition = $AdfDhtmlPositionManager$$.prototype.$_preferTopBottomCondition$;
$AdfDhtmlPositionManager$$.prototype.$_preferLeftLeftCondition$ = function $$AdfDhtmlPositionManager$$$$$_preferLeftLeftCondition$$($box$$8_fitsShadowLeftward_fitsToRight$$, $alignBox$$5_isValid$$2$$, $inverse$$2$$) {
  var $agent$$82_scrollLeft$$13$$ = $AdfAgent$$.$AGENT$, $fitsShadowRightward_logger$$8_windowWidth$$ = $agent$$82_scrollLeft$$13$$.getWindowWidth(), $agent$$82_scrollLeft$$13$$ = $agent$$82_scrollLeft$$13$$.$getBrowserViewportScrollLeft$(), $shadowSize$$3$$ = $AdfDhtmlShadowDecorator$$.$getShadowSize$(), $boxWidthWithoutShadow$$ = $box$$8_fitsShadowLeftward_fitsToRight$$.width - $shadowSize$$3$$, $fitsToLeft$$;
  this.$_isRTL$ ? ($fitsToLeft$$ = $alignBox$$5_isValid$$2$$.right - $box$$8_fitsShadowLeftward_fitsToRight$$.width >= $agent$$82_scrollLeft$$13$$, $box$$8_fitsShadowLeftward_fitsToRight$$ = $alignBox$$5_isValid$$2$$.left - $shadowSize$$3$$ >= $agent$$82_scrollLeft$$13$$, $box$$8_fitsShadowLeftward_fitsToRight$$ = $alignBox$$5_isValid$$2$$.left + $boxWidthWithoutShadow$$ <= $fitsShadowRightward_logger$$8_windowWidth$$ + $agent$$82_scrollLeft$$13$$ && $box$$8_fitsShadowLeftward_fitsToRight$$) : ($box$$8_fitsShadowLeftward_fitsToRight$$ = 
  $alignBox$$5_isValid$$2$$.left + $box$$8_fitsShadowLeftward_fitsToRight$$.width <= $fitsShadowRightward_logger$$8_windowWidth$$ + $agent$$82_scrollLeft$$13$$, $fitsShadowRightward_logger$$8_windowWidth$$ = $alignBox$$5_isValid$$2$$.right + $shadowSize$$3$$ <= $fitsShadowRightward_logger$$8_windowWidth$$ + $agent$$82_scrollLeft$$13$$, $fitsToLeft$$ = $alignBox$$5_isValid$$2$$.right - $boxWidthWithoutShadow$$ >= $agent$$82_scrollLeft$$13$$ && $fitsShadowRightward_logger$$8_windowWidth$$);
  $alignBox$$5_isValid$$2$$ = $inverse$$2$$ ? $box$$8_fitsShadowLeftward_fitsToRight$$ : $fitsToLeft$$;
  ($fitsShadowRightward_logger$$8_windowWidth$$ = this.$_logger$) && $fitsShadowRightward_logger$$8_windowWidth$$.$logMessage$($AdfLogger$$.FINEST, ($inverse$$2$$ ? "_preferRightRightCondition" : "_preferLeftLeftCondition") + " fitsToRight\x3d" + $box$$8_fitsShadowLeftward_fitsToRight$$ + " fitsToLeft\x3d" + $fitsToLeft$$ + " return\x3d" + $alignBox$$5_isValid$$2$$ + " usedBy\x3d" + ($inverse$$2$$ ? "after_start, before_start, overlap" : "after_end, before_end, before_after"));
  return $alignBox$$5_isValid$$2$$
};
$AdfDhtmlPositionManager$$.prototype._preferLeftLeftCondition = $AdfDhtmlPositionManager$$.prototype.$_preferLeftLeftCondition$;
$AdfDhtmlPositionManager$$.prototype.$_preferRightRightCondition$ = function $$AdfDhtmlPositionManager$$$$$_preferRightRightCondition$$($box$$9$$, $alignBox$$6$$) {
  return this.$_preferLeftLeftCondition$($box$$9$$, $alignBox$$6$$, $JSCompiler_alias_TRUE$$)
};
$AdfDhtmlPositionManager$$.prototype._preferRightRightCondition = $AdfDhtmlPositionManager$$.prototype.$_preferRightRightCondition$;
$AdfDhtmlPositionManager$$.prototype.$_preferRightLeftCondition$ = function $$AdfDhtmlPositionManager$$$$$_preferRightLeftCondition$$($box$$10_isValid$$3$$, $alignBox$$7_logger$$9$$, $inverse$$3$$) {
  var $agent$$83_scrollLeft$$14$$ = $AdfAgent$$.$AGENT$, $fitsToRight$$1_windowWidth$$1$$ = $agent$$83_scrollLeft$$14$$.getWindowWidth(), $agent$$83_scrollLeft$$14$$ = $agent$$83_scrollLeft$$14$$.$getBrowserViewportScrollLeft$(), $fitsShadowLeftward$$1_fitsShadowRightward$$1_shadowSize$$4$$ = $AdfDhtmlShadowDecorator$$.$getShadowSize$(), $boxWidthWithoutShadow$$1_fitsToLeft$$1$$ = $box$$10_isValid$$3$$.width - $fitsShadowLeftward$$1_fitsShadowRightward$$1_shadowSize$$4$$;
  this.$_isRTL$ ? ($fitsShadowLeftward$$1_fitsShadowRightward$$1_shadowSize$$4$$ = $alignBox$$7_logger$$9$$.right - $fitsShadowLeftward$$1_fitsShadowRightward$$1_shadowSize$$4$$ >= $agent$$83_scrollLeft$$14$$, $fitsToRight$$1_windowWidth$$1$$ = $alignBox$$7_logger$$9$$.right + $boxWidthWithoutShadow$$1_fitsToLeft$$1$$ < $fitsToRight$$1_windowWidth$$1$$ + $agent$$83_scrollLeft$$14$$ && $fitsShadowLeftward$$1_fitsShadowRightward$$1_shadowSize$$4$$, $boxWidthWithoutShadow$$1_fitsToLeft$$1$$ = $alignBox$$7_logger$$9$$.left - 
  $box$$10_isValid$$3$$.width >= $agent$$83_scrollLeft$$14$$) : ($fitsShadowLeftward$$1_fitsShadowRightward$$1_shadowSize$$4$$ = $alignBox$$7_logger$$9$$.left + $fitsShadowLeftward$$1_fitsShadowRightward$$1_shadowSize$$4$$ < $fitsToRight$$1_windowWidth$$1$$ + $agent$$83_scrollLeft$$14$$, $boxWidthWithoutShadow$$1_fitsToLeft$$1$$ = $alignBox$$7_logger$$9$$.left - $boxWidthWithoutShadow$$1_fitsToLeft$$1$$ >= $agent$$83_scrollLeft$$14$$ && $fitsShadowLeftward$$1_fitsShadowRightward$$1_shadowSize$$4$$, 
  $fitsToRight$$1_windowWidth$$1$$ = $alignBox$$7_logger$$9$$.right + $box$$10_isValid$$3$$.width < $fitsToRight$$1_windowWidth$$1$$ + $agent$$83_scrollLeft$$14$$);
  $box$$10_isValid$$3$$ = $inverse$$3$$ ? $fitsToRight$$1_windowWidth$$1$$ : $boxWidthWithoutShadow$$1_fitsToLeft$$1$$;
  ($alignBox$$7_logger$$9$$ = this.$_logger$) && $alignBox$$7_logger$$9$$.$logMessage$($AdfLogger$$.FINEST, ($inverse$$3$$ ? "_preferLeftRightCondition" : "_preferRightLeftCondition") + " fitsToLeft\x3d" + $boxWidthWithoutShadow$$1_fitsToLeft$$1$$ + " fitsToRight\x3d" + $fitsToRight$$1_windowWidth$$1$$ + " return\x3d" + $box$$10_isValid$$3$$ + " usedBy\x3d" + ($inverse$$3$$ ? "end_before, before_after" : "start_after, start_before"));
  return $box$$10_isValid$$3$$
};
$AdfDhtmlPositionManager$$.prototype._preferRightLeftCondition = $AdfDhtmlPositionManager$$.prototype.$_preferRightLeftCondition$;
$AdfDhtmlPositionManager$$.prototype.$_preferLeftRightCondition$ = function $$AdfDhtmlPositionManager$$$$$_preferLeftRightCondition$$($box$$11$$, $alignBox$$8$$) {
  return this.$_preferRightLeftCondition$($box$$11$$, $alignBox$$8$$, $JSCompiler_alias_TRUE$$)
};
$AdfDhtmlPositionManager$$.prototype._preferLeftRightCondition = $AdfDhtmlPositionManager$$.prototype.$_preferLeftRightCondition$;
function $JSCompiler_StaticMethods__convertHorizontal$$($JSCompiler_StaticMethods__convertHorizontal$self$$, $horizontalHint$$) {
  return"start" == $horizontalHint$$ && $JSCompiler_StaticMethods__convertHorizontal$self$$.$_isRTL$ || "end" == $horizontalHint$$ && !$JSCompiler_StaticMethods__convertHorizontal$self$$.$_isRTL$ ? $AdfDhtmlPositionManager$$.$RIGHT$ : $AdfDhtmlPositionManager$$.$LEFT$
}
$AdfDhtmlPositionManager$$.prototype.$removeElement$ = function $$AdfDhtmlPositionManager$$$$$removeElement$$($agent$$inline_736_index$$89$$) {
  delete this.$_elements$[$agent$$inline_736_index$$89$$];
  if(1 > this.$getElementCount$()) {
    $agent$$inline_736_index$$89$$ = $AdfAgent$$.$AGENT$;
    var $domWindow$$inline_737$$ = $agent$$inline_736_index$$89$$.$getDomWindow$(), $domDocument$$inline_738$$ = $agent$$inline_736_index$$89$$.$getDomDocument$(), $resizeCallback$$inline_739$$ = this.$_repostionOnScrollCallback$;
    $resizeCallback$$inline_739$$ && ($agent$$inline_736_index$$89$$.$removeBubbleEventListener$($domDocument$$inline_738$$, "mousewheel", $resizeCallback$$inline_739$$), $agent$$inline_736_index$$89$$.$removeBubbleEventListener$($domWindow$$inline_737$$, "scroll", $resizeCallback$$inline_739$$), $agent$$inline_736_index$$89$$.$removeBubbleEventListener$($domDocument$$inline_738$$, "DOMMouseScroll", $resizeCallback$$inline_739$$), $agent$$inline_736_index$$89$$.$removeBubbleEventListener$($domWindow$$inline_737$$, 
    "resize", $resizeCallback$$inline_739$$))
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPositionManager.prototype.removeElement", {$removeElement$:$AdfDhtmlPositionManager$$.prototype.$removeElement$});
$AdfDhtmlPositionManager$$.prototype.$managesElement$ = function $$AdfDhtmlPositionManager$$$$$managesElement$$($element$$151$$) {
  return $AdfPage$$.$PAGE$.$getZOrderManager$().$containsElement$($element$$151$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPositionManager.prototype.managesElement", {$managesElement$:$AdfDhtmlPositionManager$$.prototype.$managesElement$});
$AdfDhtmlPositionManager$$.prototype.$validatePosition$ = function $$AdfDhtmlPositionManager$$$$$validatePosition$$($floatingElement$$5_index$$90$$) {
  var $computedBehavior$$inline_755_dndContext$$66_newPosition$$inline_758_wrapper$$10$$ = $AdfPage$$.$PAGE$.$getDnDContext$();
  if(!$computedBehavior$$inline_755_dndContext$$66_newPosition$$inline_758_wrapper$$10$$ || !$computedBehavior$$inline_755_dndContext$$66_newPosition$$inline_758_wrapper$$10$$.$isDragging$()) {
    if($computedBehavior$$inline_755_dndContext$$66_newPosition$$inline_758_wrapper$$10$$ = this.$_elements$[$floatingElement$$5_index$$90$$], $computedBehavior$$inline_755_dndContext$$66_newPosition$$inline_758_wrapper$$10$$ != $JSCompiler_alias_NULL$$) {
      $floatingElement$$5_index$$90$$ = $computedBehavior$$inline_755_dndContext$$66_newPosition$$inline_758_wrapper$$10$$.element;
      var $alignBox$$9_alignElement$$8$$ = $floatingElement$$5_index$$90$$.$getAlignElement$(), $alignPosition$$2_verticalBehavior$$1$$ = $floatingElement$$5_index$$90$$.$getAlignPosition$(), $horizontalBehavior$$1_insideBorder$$3$$ = $computedBehavior$$inline_755_dndContext$$66_newPosition$$inline_758_wrapper$$10$$.$insideBorder$;
      $AdfAgent$$.$AGENT$.$getPlatform$();
      var $agent$$inline_742_top$$inline_747$$ = $AdfAgent$$.$AGENT$, $el$$inline_743_firstChild$$inline_749_shadowSize$$inline_750$$ = $floatingElement$$5_index$$90$$.$getElement$(), $box$$inline_751_width$$inline_744$$ = $el$$inline_743_firstChild$$inline_749_shadowSize$$inline_750$$.offsetWidth, $height$$inline_745$$ = $el$$inline_743_firstChild$$inline_749_shadowSize$$inline_750$$.offsetHeight, $left$$inline_748_pos$$inline_746$$ = $agent$$inline_742_top$$inline_747$$.$getElementPosition$($el$$inline_743_firstChild$$inline_749_shadowSize$$inline_750$$), 
      $agent$$inline_742_top$$inline_747$$ = $left$$inline_748_pos$$inline_746$$.y, $left$$inline_748_pos$$inline_746$$ = $left$$inline_748_pos$$inline_746$$.x;
      if(0 == $box$$inline_751_width$$inline_744$$ && ($el$$inline_743_firstChild$$inline_749_shadowSize$$inline_750$$ = $el$$inline_743_firstChild$$inline_749_shadowSize$$inline_750$$.firstChild)) {
        $box$$inline_751_width$$inline_744$$ = $el$$inline_743_firstChild$$inline_749_shadowSize$$inline_750$$.offsetWidth, $height$$inline_745$$ = $el$$inline_743_firstChild$$inline_749_shadowSize$$inline_750$$.offsetHeight
      }
      $el$$inline_743_firstChild$$inline_749_shadowSize$$inline_750$$ = $AdfDhtmlShadowDecorator$$.$getShadowSize$();
      $height$$inline_745$$ += $el$$inline_743_firstChild$$inline_749_shadowSize$$inline_750$$;
      $box$$inline_751_width$$inline_744$$ += $el$$inline_743_firstChild$$inline_749_shadowSize$$inline_750$$;
      $box$$inline_751_width$$inline_744$$ = {top:$agent$$inline_742_top$$inline_747$$, right:$left$$inline_748_pos$$inline_746$$ + $box$$inline_751_width$$inline_744$$, bottom:$agent$$inline_742_top$$inline_747$$ + $height$$inline_745$$, left:$left$$inline_748_pos$$inline_746$$, width:$box$$inline_751_width$$inline_744$$, height:$height$$inline_745$$};
      $box$$inline_751_width$$inline_744$$.inversePosition = $floatingElement$$5_index$$90$$.$shouldInvertPosition$();
      $alignBox$$9_alignElement$$8$$ = $JSCompiler_StaticMethods__getAlignBox$$($alignBox$$9_alignElement$$8$$, $alignPosition$$2_verticalBehavior$$1$$, $horizontalBehavior$$1_insideBorder$$3$$);
      $alignPosition$$2_verticalBehavior$$1$$ = $JSCompiler_StaticMethods__selectBehavior$$(this, $computedBehavior$$inline_755_dndContext$$66_newPosition$$inline_758_wrapper$$10$$.$verticalBehaviors$, $box$$inline_751_width$$inline_744$$, $alignBox$$9_alignElement$$8$$);
      $horizontalBehavior$$1_insideBorder$$3$$ = $JSCompiler_StaticMethods__selectBehavior$$(this, $computedBehavior$$inline_755_dndContext$$66_newPosition$$inline_758_wrapper$$10$$.$horizontalBehaviors$, $box$$inline_751_width$$inline_744$$, $alignBox$$9_alignElement$$8$$);
      $computedBehavior$$inline_755_dndContext$$66_newPosition$$inline_758_wrapper$$10$$.$_computedBehavior$ = {};
      $computedBehavior$$inline_755_dndContext$$66_newPosition$$inline_758_wrapper$$10$$.$_computedBehavior$.$verticalBehavior$ = $alignPosition$$2_verticalBehavior$$1$$;
      $computedBehavior$$inline_755_dndContext$$66_newPosition$$inline_758_wrapper$$10$$.$_computedBehavior$.$horizontalBehavior$ = $horizontalBehavior$$1_insideBorder$$3$$;
      $computedBehavior$$inline_755_dndContext$$66_newPosition$$inline_758_wrapper$$10$$ = $computedBehavior$$inline_755_dndContext$$66_newPosition$$inline_758_wrapper$$10$$.$_computedBehavior$;
      $computedBehavior$$inline_755_dndContext$$66_newPosition$$inline_758_wrapper$$10$$ = $JSCompiler_StaticMethods__getNewPosition$$($computedBehavior$$inline_755_dndContext$$66_newPosition$$inline_758_wrapper$$10$$.$horizontalBehavior$, $computedBehavior$$inline_755_dndContext$$66_newPosition$$inline_758_wrapper$$10$$.$verticalBehavior$, $box$$inline_751_width$$inline_744$$, $alignBox$$9_alignElement$$8$$);
      $floatingElement$$5_index$$90$$.setPosition($computedBehavior$$inline_755_dndContext$$66_newPosition$$inline_758_wrapper$$10$$.y, $computedBehavior$$inline_755_dndContext$$66_newPosition$$inline_758_wrapper$$10$$.x)
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPositionManager.prototype.validatePosition", {$validatePosition$:$AdfDhtmlPositionManager$$.prototype.$validatePosition$});
function $JSCompiler_StaticMethods__selectBehavior$$($JSCompiler_StaticMethods__selectBehavior$self$$, $behaviors$$7$$, $box$$13$$, $alignBox$$10$$) {
  if(!$box$$13$$.inversePosition) {
    return $behaviors$$7$$[0]
  }
  for(var $behavior$$4$$, $i$$136$$ = 0;!$behavior$$4$$ && $i$$136$$ < $behaviors$$7$$.length;$i$$136$$++) {
    $behaviors$$7$$[$i$$136$$].$condition$.call($JSCompiler_StaticMethods__selectBehavior$self$$, $box$$13$$, $alignBox$$10$$) && ($behavior$$4$$ = $behaviors$$7$$[$i$$136$$])
  }
  $behavior$$4$$ || ($behavior$$4$$ = $behaviors$$7$$[0]);
  return $behavior$$4$$
}
$AdfDhtmlPositionManager$$.prototype.$getComputedBehavior$ = function $$AdfDhtmlPositionManager$$$$$getComputedBehavior$$($index$$91_wrapper$$11$$) {
  $index$$91_wrapper$$11$$ = this.$_elements$[$index$$91_wrapper$$11$$];
  if($index$$91_wrapper$$11$$ != $JSCompiler_alias_NULL$$) {
    return $index$$91_wrapper$$11$$.$_computedBehavior$
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPositionManager.prototype.getComputedBehavior", {$getComputedBehavior$:$AdfDhtmlPositionManager$$.prototype.$getComputedBehavior$});
function $JSCompiler_StaticMethods__getNewPosition$$($horizontalBehavior$$3_scrollLeft$$15$$, $scrollTop$$10_verticalBehavior$$3$$, $box$$15_xdelta$$, $alignBox$$12_windowWidth$$2$$) {
  var $agent$$85_alignElementAnchorTop_windowHeight$$2_ydelta$$, $alignElementAnchorLeft$$, $boxWidthWithoutShadow$$2_shadowSize$$5$$ = $AdfDhtmlShadowDecorator$$.$getShadowSize$(), $boxHeightWithoutShadow$$2$$ = $box$$15_xdelta$$.height - $boxWidthWithoutShadow$$2_shadowSize$$5$$, $boxWidthWithoutShadow$$2_shadowSize$$5$$ = $box$$15_xdelta$$.width - $boxWidthWithoutShadow$$2_shadowSize$$5$$;
  switch($scrollTop$$10_verticalBehavior$$3$$.$alignElementAnchor$) {
    case $AdfDhtmlPositionManager$$.$TOP$:
      $agent$$85_alignElementAnchorTop_windowHeight$$2_ydelta$$ = $alignBox$$12_windowWidth$$2$$.top;
      break;
    case $AdfDhtmlPositionManager$$.$BOTTOM$:
      $agent$$85_alignElementAnchorTop_windowHeight$$2_ydelta$$ = $alignBox$$12_windowWidth$$2$$.bottom;
      break;
    default:
      $AdfAssert$$.assert($JSCompiler_alias_FALSE$$, "Invalid alignElementAnchor for verticalBehavior provided")
  }
  switch($horizontalBehavior$$3_scrollLeft$$15$$.$alignElementAnchor$) {
    case $AdfDhtmlPositionManager$$.$LEFT$:
      $alignElementAnchorLeft$$ = $alignBox$$12_windowWidth$$2$$.left;
      break;
    case $AdfDhtmlPositionManager$$.$RIGHT$:
      $alignElementAnchorLeft$$ = $alignBox$$12_windowWidth$$2$$.right;
      break;
    default:
      $AdfAssert$$.assert($JSCompiler_alias_FALSE$$, "Invalid alignElementAnchor for horizontalBehavior provided")
  }
  var $newTop$$, $newLeft$$;
  switch($scrollTop$$10_verticalBehavior$$3$$.$floatingElementAnchor$) {
    case $AdfDhtmlPositionManager$$.$TOP$:
      $newTop$$ = $agent$$85_alignElementAnchorTop_windowHeight$$2_ydelta$$;
      break;
    case $AdfDhtmlPositionManager$$.$BOTTOM$:
      $newTop$$ = $agent$$85_alignElementAnchorTop_windowHeight$$2_ydelta$$ - $boxHeightWithoutShadow$$2$$;
      break;
    default:
      $AdfAssert$$.assert($JSCompiler_alias_FALSE$$, "Invalid floatingElementAnchor for verticalBehavior provided")
  }
  switch($horizontalBehavior$$3_scrollLeft$$15$$.$floatingElementAnchor$) {
    case $AdfDhtmlPositionManager$$.$LEFT$:
      $newLeft$$ = $alignElementAnchorLeft$$;
      break;
    case $AdfDhtmlPositionManager$$.$RIGHT$:
      $newLeft$$ = $alignElementAnchorLeft$$ - $boxWidthWithoutShadow$$2_shadowSize$$5$$;
      break;
    default:
      $AdfAssert$$.assert($JSCompiler_alias_FALSE$$, "Invalid floatingElementAnchor for horizontalBehavior provided")
  }
  $AdfPage$$.$PAGE$.$isPortlet$() && ($agent$$85_alignElementAnchorTop_windowHeight$$2_ydelta$$ = $AdfAgent$$.$AGENT$, $scrollTop$$10_verticalBehavior$$3$$ = $agent$$85_alignElementAnchorTop_windowHeight$$2_ydelta$$.$getBrowserViewportScrollTop$(), $horizontalBehavior$$3_scrollLeft$$15$$ = $agent$$85_alignElementAnchorTop_windowHeight$$2_ydelta$$.$getBrowserViewportScrollLeft$(), $alignBox$$12_windowWidth$$2$$ = $agent$$85_alignElementAnchorTop_windowHeight$$2_ydelta$$.getWindowWidth(), $agent$$85_alignElementAnchorTop_windowHeight$$2_ydelta$$ = 
  $agent$$85_alignElementAnchorTop_windowHeight$$2_ydelta$$.getWindowHeight(), $newTop$$ = Math.max(0, $newTop$$), $agent$$85_alignElementAnchorTop_windowHeight$$2_ydelta$$ = $agent$$85_alignElementAnchorTop_windowHeight$$2_ydelta$$ + $scrollTop$$10_verticalBehavior$$3$$ - ($newTop$$ + $box$$15_xdelta$$.height), 0 > $agent$$85_alignElementAnchorTop_windowHeight$$2_ydelta$$ && ($newTop$$ = Math.max($scrollTop$$10_verticalBehavior$$3$$, $newTop$$ + $agent$$85_alignElementAnchorTop_windowHeight$$2_ydelta$$)), 
  $newLeft$$ = Math.max(0, $newLeft$$), $box$$15_xdelta$$ = $alignBox$$12_windowWidth$$2$$ + $horizontalBehavior$$3_scrollLeft$$15$$ - ($newLeft$$ + $box$$15_xdelta$$.width), 0 > $box$$15_xdelta$$ && ($newLeft$$ = Math.max($horizontalBehavior$$3_scrollLeft$$15$$, $newLeft$$ + $box$$15_xdelta$$)));
  return{x:$newLeft$$, y:$newTop$$}
}
$AdfDhtmlPositionManager$$.prototype.$_repostionOnScroll$ = function $$AdfDhtmlPositionManager$$$$$_repostionOnScroll$$() {
  var $domWindow$$77$$ = $AdfAgent$$.$AGENT$.$getDomWindow$();
  this.$_repostionCallback$ == $JSCompiler_alias_NULL$$ && (this.$_repostionCallback$ = this.$createCallback$(this.$_repostionOnScrollTimeout$));
  this.$_repostionTimeout$ && $domWindow$$77$$.clearTimeout(this.$_repostionTimeout$);
  this.$_repostionTimeout$ = $domWindow$$77$$.setTimeout(this.$_repostionCallback$, 200)
};
$AdfDhtmlPositionManager$$.prototype.$_repostionOnScrollTimeout$ = function $$AdfDhtmlPositionManager$$$$$_repostionOnScrollTimeout$$() {
  delete this.$_repostionTimeout$;
  for(var $elements$$10$$ = this.$_elements$, $i$$137$$ = $elements$$10$$.length - 1;-1 < $i$$137$$;$i$$137$$--) {
    if($elements$$10$$[$i$$137$$] != $JSCompiler_alias_NULL$$) {
      var $elementWidth$$inline_773_floatingElement$$7$$ = $elements$$10$$[$i$$137$$].element, $JSCompiler_temp$$235_agent$$inline_761_agent$$inline_772_alignElement$$9_windowHeight$$inline_776$$ = $elementWidth$$inline_773_floatingElement$$7$$.$getAlignElement$();
      if(!$elementWidth$$inline_773_floatingElement$$7$$.$isAnimating$()) {
        if($JSCompiler_temp$$235_agent$$inline_761_agent$$inline_772_alignElement$$9_windowHeight$$inline_776$$) {
          for(var $element$$inline_760_parentNode$$inline_768_windowWidth$$inline_775$$ = $JSCompiler_temp$$235_agent$$inline_761_agent$$inline_772_alignElement$$9_windowHeight$$inline_776$$, $JSCompiler_temp$$235_agent$$inline_761_agent$$inline_772_alignElement$$9_windowHeight$$inline_776$$ = $AdfAgent$$.$AGENT$, $alignBox$$inline_762_elementHeight$$inline_774_floatingElement$$inline_771$$ = $JSCompiler_temp$$235_agent$$inline_761_agent$$inline_772_alignElement$$9_windowHeight$$inline_776$$.$getElementPageBounds$($element$$inline_760_parentNode$$inline_768_windowWidth$$inline_775$$), 
          $isWithinViewPort$$inline_767_parentBox$$inline_769_windowWidth$$inline_763$$ = $JSCompiler_temp$$235_agent$$inline_761_agent$$inline_772_alignElement$$9_windowHeight$$inline_776$$.getWindowWidth(), $scrollLeft$$inline_764$$ = $JSCompiler_temp$$235_agent$$inline_761_agent$$inline_772_alignElement$$9_windowHeight$$inline_776$$.$getBrowserViewportScrollLeft$(), $windowHeight$$inline_765$$ = $JSCompiler_temp$$235_agent$$inline_761_agent$$inline_772_alignElement$$9_windowHeight$$inline_776$$.getWindowHeight(), 
          $scrollTop$$inline_766$$ = $JSCompiler_temp$$235_agent$$inline_761_agent$$inline_772_alignElement$$9_windowHeight$$inline_776$$.$getBrowserViewportScrollTop$(), $isWithinViewPort$$inline_767_parentBox$$inline_769_windowWidth$$inline_763$$ = $AdfDhtmlPositionManager$$.$_isWithinViewport$($alignBox$$inline_762_elementHeight$$inline_774_floatingElement$$inline_771$$, {top:$scrollTop$$inline_766$$, bottom:$windowHeight$$inline_765$$ + $scrollTop$$inline_766$$, left:$scrollLeft$$inline_764$$, 
          right:$scrollLeft$$inline_764$$ + $isWithinViewPort$$inline_767_parentBox$$inline_769_windowWidth$$inline_763$$}), $element$$inline_760_parentNode$$inline_768_windowWidth$$inline_775$$ = $element$$inline_760_parentNode$$inline_768_windowWidth$$inline_775$$.parentNode;$isWithinViewPort$$inline_767_parentBox$$inline_769_windowWidth$$inline_763$$ && $element$$inline_760_parentNode$$inline_768_windowWidth$$inline_775$$ && !$AdfDhtmlPositionManager$$.$_isRootNode$($element$$inline_760_parentNode$$inline_768_windowWidth$$inline_775$$);) {
            1 == $element$$inline_760_parentNode$$inline_768_windowWidth$$inline_775$$.nodeType && ($isWithinViewPort$$inline_767_parentBox$$inline_769_windowWidth$$inline_763$$ = $JSCompiler_temp$$235_agent$$inline_761_agent$$inline_772_alignElement$$9_windowHeight$$inline_776$$.$getElementPageBounds$($element$$inline_760_parentNode$$inline_768_windowWidth$$inline_775$$), $isWithinViewPort$$inline_767_parentBox$$inline_769_windowWidth$$inline_763$$ = $AdfDhtmlPositionManager$$.$_isWithinViewport$($alignBox$$inline_762_elementHeight$$inline_774_floatingElement$$inline_771$$, 
            $isWithinViewPort$$inline_767_parentBox$$inline_769_windowWidth$$inline_763$$)), $element$$inline_760_parentNode$$inline_768_windowWidth$$inline_775$$ = $element$$inline_760_parentNode$$inline_768_windowWidth$$inline_775$$.parentNode
          }
          !$isWithinViewPort$$inline_767_parentBox$$inline_769_windowWidth$$inline_763$$ ? $elementWidth$$inline_773_floatingElement$$7$$.$ShouldHideOnClip$() && $elementWidth$$inline_773_floatingElement$$7$$.cancel() : this.$validatePosition$($i$$137$$)
        }else {
          if($JSCompiler_temp$$235_agent$$inline_761_agent$$inline_772_alignElement$$9_windowHeight$$inline_776$$ = $elementWidth$$inline_773_floatingElement$$7$$.$getAlignPosition$()) {
            $alignBox$$inline_762_elementHeight$$inline_774_floatingElement$$inline_771$$ = $elementWidth$$inline_773_floatingElement$$7$$, $JSCompiler_temp$$235_agent$$inline_761_agent$$inline_772_alignElement$$9_windowHeight$$inline_776$$ = $AdfAgent$$.$AGENT$, $elementWidth$$inline_773_floatingElement$$7$$ = $alignBox$$inline_762_elementHeight$$inline_774_floatingElement$$inline_771$$.getWidth(), $alignBox$$inline_762_elementHeight$$inline_774_floatingElement$$inline_771$$ = $alignBox$$inline_762_elementHeight$$inline_774_floatingElement$$inline_771$$.getHeight(), 
            $element$$inline_760_parentNode$$inline_768_windowWidth$$inline_775$$ = $JSCompiler_temp$$235_agent$$inline_761_agent$$inline_772_alignElement$$9_windowHeight$$inline_776$$.getWindowWidth(), $JSCompiler_temp$$235_agent$$inline_761_agent$$inline_772_alignElement$$9_windowHeight$$inline_776$$ = $JSCompiler_temp$$235_agent$$inline_761_agent$$inline_772_alignElement$$9_windowHeight$$inline_776$$.getWindowHeight(), $JSCompiler_temp$$235_agent$$inline_761_agent$$inline_772_alignElement$$9_windowHeight$$inline_776$$ = 
            !($elementWidth$$inline_773_floatingElement$$7$$ > $element$$inline_760_parentNode$$inline_768_windowWidth$$inline_775$$ || $alignBox$$inline_762_elementHeight$$inline_774_floatingElement$$inline_771$$ > $JSCompiler_temp$$235_agent$$inline_761_agent$$inline_772_alignElement$$9_windowHeight$$inline_776$$)
          }
          $JSCompiler_temp$$235_agent$$inline_761_agent$$inline_772_alignElement$$9_windowHeight$$inline_776$$ && this.$validatePosition$($i$$137$$)
        }
      }
    }
  }
};
$AdfDhtmlPositionManager$$.$_isRootNode$ = function $$AdfDhtmlPositionManager$$$$_isRootNode$$($element$$154_id$$234_tokens$$8$$) {
  var $tagName$$2_tokensLen$$1$$ = $AdfAgent$$.$AGENT$.$getNodeName$($element$$154_id$$234_tokens$$8$$);
  if("FORM" == $tagName$$2_tokensLen$$1$$ || "BODY" == $tagName$$2_tokensLen$$1$$) {
    return $JSCompiler_alias_TRUE$$
  }
  if($element$$154_id$$234_tokens$$8$$ = $element$$154_id$$234_tokens$$8$$.getAttribute("id")) {
    if($element$$154_id$$234_tokens$$8$$ = $element$$154_id$$234_tokens$$8$$.split(":"), $tagName$$2_tokensLen$$1$$ = $element$$154_id$$234_tokens$$8$$.length, 0 < $tagName$$2_tokensLen$$1$$) {
      return $AdfDhtmlZOrderManager$$.$FLOATINGTYPE_WINDOW$ == $element$$154_id$$234_tokens$$8$$[$tagName$$2_tokensLen$$1$$ - 1]
    }
  }
  return $JSCompiler_alias_FALSE$$
};
$AdfDhtmlPositionManager$$.$_isWithinViewport$ = function $$AdfDhtmlPositionManager$$$$_isWithinViewport$$($alignBox$$14$$, $containerBox$$) {
  return-2 > $alignBox$$14$$.top - $containerBox$$.top || -2 > $containerBox$$.bottom - $alignBox$$14$$.bottom || -2 > $alignBox$$14$$.left - $containerBox$$.left || 2 < $alignBox$$14$$.right - $containerBox$$.right ? $JSCompiler_alias_FALSE$$ : $JSCompiler_alias_TRUE$$
};
$AdfDhtmlPositionManager$$.prototype.$resizeFloatingElement$ = function $$AdfDhtmlPositionManager$$$$$resizeFloatingElement$$($childDomElement$$1$$) {
  var $floatingElement$$9$$ = this.$findFloatingElement$($childDomElement$$1$$);
  if($floatingElement$$9$$ && !($floatingElement$$9$$ instanceof $AdfDhtmlTooltip$$)) {
    var $domElement$$54$$ = $floatingElement$$9$$.$getElement$();
    if($AdfDomUtils$$.$isAncestorOrSelf$($domElement$$54$$, $childDomElement$$1$$)) {
      return $floatingElement$$9$$.$autoSize$(), $JSCompiler_alias_TRUE$$
    }
  }
  return $JSCompiler_alias_FALSE$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPositionManager.prototype.resizeFloatingElement", {$resizeFloatingElement$:$AdfDhtmlPositionManager$$.prototype.$resizeFloatingElement$});
$AdfDhtmlPositionManager$$.prototype.$findFloatingElement$ = function $$AdfDhtmlPositionManager$$$$$findFloatingElement$$($childDomElement$$2$$) {
  for(var $elements$$11$$ = this.$_elements$, $i$$138$$ = 0;$i$$138$$ < $elements$$11$$.length;$i$$138$$++) {
    if($i$$138$$ in $elements$$11$$) {
      var $floatingElement$$10_wrapper$$12$$ = $elements$$11$$[$i$$138$$];
      if($floatingElement$$10_wrapper$$12$$ && ($floatingElement$$10_wrapper$$12$$ = $floatingElement$$10_wrapper$$12$$.element)) {
        var $domElement$$55$$ = $floatingElement$$10_wrapper$$12$$.$getElement$();
        if($AdfDomUtils$$.$isAncestorOrSelf$($domElement$$55$$, $childDomElement$$2$$)) {
          return $floatingElement$$10_wrapper$$12$$
        }
      }
    }
  }
  return $JSCompiler_alias_NULL$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPositionManager.prototype.findFloatingElement", {$findFloatingElement$:$AdfDhtmlPositionManager$$.prototype.$findFloatingElement$});
