var $AdfDhtmlMenuPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlMenuPeer", !1);
$goog$exportSymbol$$("AdfDhtmlMenuPeer", $AdfDhtmlMenuPeer$$);
$AdfDhtmlMenuPeer$$.$InitSubclass$ = function $$AdfDhtmlMenuPeer$$$$InitSubclass$$() {
  $AdfObject$$.$ensureClassInitialization$($AdfMenuUtils$$);
  $AdfObject$$.$ensureClassInitialization$($AdfSwipeSupport$$);
  $AdfRichUIPeer$$.$addComponentEventHandlers$(this, $AdfUIInputEvent$$.$MOUSE_DOWN_EVENT_TYPE$, $AdfUIInputEvent$$.$MOUSE_UP_EVENT_TYPE$, $AdfUIInputEvent$$.$FOCUS_EVENT_TYPE$, $AdfUIInputEvent$$.$BLUR_EVENT_TYPE$, $AdfUIInputEvent$$.$KEY_UP_EVENT_TYPE$, $AdfUIInputEvent$$.$KEY_DOWN_EVENT_TYPE$, $AdfUIInputEvent$$.$KEY_PRESS_EVENT_TYPE$);
  $AdfAgent$$.$AGENT$.$isTouchFirstDevice$() || $AdfRichUIPeer$$.$addComponentEventHandlers$(this, $AdfUIInputEvent$$.$MOUSE_IN_EVENT_TYPE$, $AdfUIInputEvent$$.$MOUSE_OUT_EVENT_TYPE$);
  $AdfRichUIPeer$$.$addComponentPropertyChanges$(this, AdfRichMenu.DISABLED, AdfRichMenu.VISIBLE, AdfRichMenu.TEXT);
  this.$_sBarMenus$ = [];
  this.$_sDetachedMenus$ = [];
  this.$_SCROLL_DELTA$ = 3;
  this.$_JUMP_SCROLL_DELTA$ = 15;
  this.$_OPEN_CLOSE_DELAY$ = 300;
  var $keyCode$$79$$ = $AdfKeyStroke$$.$M_KEY$, $modifiers$$12$$ = $AdfKeyStroke$$.$SHIFT_MASK$ | $AdfKeyStroke$$.$CTRL_MASK$;
  this.$_menuBarKeyStroke$ = $AdfKeyStroke$$.$getKeyStroke$($keyCode$$79$$, $modifiers$$12$$);
  $keyCode$$79$$ = $AdfKeyStroke$$.$W_KEY$;
  $modifiers$$12$$ = $AdfKeyStroke$$.$SHIFT_MASK$ | $AdfKeyStroke$$.$CTRL_MASK$;
  this.$_focusDetachedMenuKeyStroke$ = $AdfKeyStroke$$.$getKeyStroke$($keyCode$$79$$, $modifiers$$12$$);
};
$goog$exportSymbol$$("AdfDhtmlMenuPeer.InitSubclass", $AdfDhtmlMenuPeer$$.$InitSubclass$);
$AdfDhtmlMenuPeer$$.prototype.Init = function $$AdfDhtmlMenuPeer$$$$Init$($component$$1563_lookAndFeel$$8_skinVisibileItems$$) {
  $component$$1563_lookAndFeel$$8_skinVisibileItems$$.getParent();
  $AdfDhtmlMenuPeer$$.$superclass$.Init.call(this, $component$$1563_lookAndFeel$$8_skinVisibileItems$$);
  $component$$1563_lookAndFeel$$8_skinVisibileItems$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$();
  $component$$1563_lookAndFeel$$8_skinVisibileItems$$ = parseInt($component$$1563_lookAndFeel$$8_skinVisibileItems$$.$getSkinProperty$("af|menu-tr-visible-items"));
  this.$_maxDisplayItems$ = isNaN($component$$1563_lookAndFeel$$8_skinVisibileItems$$) ? 14 : $component$$1563_lookAndFeel$$8_skinVisibileItems$$;
  this.$_spaceKeyDown$ = this.$_enterKeyDown$ = this.$_isDetached$ = !1;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.Init", {Init:$AdfDhtmlMenuPeer$$.prototype.Init});
$AdfDhtmlMenuPeer$$.prototype.$InitDomElement$ = function $$AdfDhtmlMenuPeer$$$$$InitDomElement$$($component$$1564$$, $domElement$$336$$) {
  if ("1" == $domElement$$336$$.getAttribute($AdfMenuUtils$$.$MENU_DEPTH_KEY$)) {
    var $clientId$$266$$ = $component$$1564$$.$getClientId$();
    $AdfDhtmlMenuPeer$$.$_addBarMenu$($clientId$$266$$);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.InitDomElement", {$InitDomElement$:$AdfDhtmlMenuPeer$$.prototype.$InitDomElement$});
$AdfDhtmlMenuPeer$$.$cancelShowing$ = function $$AdfDhtmlMenuPeer$$$$cancelShowing$$() {
  $AdfDhtmlMenuPeer$$.$_popupShowingHandle$ && (window.clearTimeout($AdfDhtmlMenuPeer$$.$_popupShowingHandle$), delete $AdfDhtmlMenuPeer$$.$_popupShowingHandle$, delete $AdfDhtmlMenuPeer$$.$_popupPeerWaitingForShow$);
};
$goog$exportSymbol$$("AdfDhtmlMenuPeer.cancelShowing", $AdfDhtmlMenuPeer$$.$cancelShowing$);
$AdfDhtmlMenuPeer$$.prototype.show = function $$AdfDhtmlMenuPeer$$$$show$($popupHints$$2$$, $focusOnFirstElement$$4$$) {
  var $menuElement_params$$38_popupFocusHint_rootElement$$80$$ = this.$getDomElement$(), $agent$$inline_2388_component$$1565_options$$inline_2401$$ = this.$getComponent$(), $agent$$405_callbacks$$inline_2400_clientId$$267_scrollBoxSubId$$inline_2399$$ = $agent$$inline_2388_component$$1565_options$$inline_2401$$.$getClientId$();
  $AdfDomUtils$$.$addCSSClassName$($menuElement_params$$38_popupFocusHint_rootElement$$80$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$);
  !this.$isContextMenu$() && this.$isRootMenu$() && $AdfMenuUtils$$.$setLastOpenedRootMenuId$($agent$$405_callbacks$$inline_2400_clientId$$267_scrollBoxSubId$$inline_2399$$);
  null == $focusOnFirstElement$$4$$ && null != $popupHints$$2$$ && ($menuElement_params$$38_popupFocusHint_rootElement$$80$$ = $popupHints$$2$$.focus, $focusOnFirstElement$$4$$ = null != $menuElement_params$$38_popupFocusHint_rootElement$$80$$ ? $menuElement_params$$38_popupFocusHint_rootElement$$80$$ : this.$isContextMenu$() ? !0 : !1);
  $JSCompiler_StaticMethods__reattachMenu$$(this);
  if ("noContent" == this.$_getLazyState$()) {
    this.$_setLazyState$("fetching"), $menuElement_params$$38_popupFocusHint_rootElement$$80$$ = {}, $menuElement_params$$38_popupFocusHint_rootElement$$80$$.$menuDepth$ = $JSCompiler_StaticMethods__getDepth$$(this), this.$_lazyFetchPopupHints$ = $popupHints$$2$$, this.$_lazyFetchFocusOnFirstElement$ = $focusOnFirstElement$$4$$, (new $AdfContentFetchEvent$$($agent$$inline_2388_component$$1565_options$$inline_2401$$, $AdfContentFetchEvent$$.$FETCH_EVENT_TYPE$, $menuElement_params$$38_popupFocusHint_rootElement$$80$$)).$queue$(), 
    this.$_showFetchingDataPopup$();
  } else {
    if ("fetching" == this.$_getLazyState$()) {
      $AdfLogger$$.$LOGGER$.info("Currently waiting on menu content fetch: " + $agent$$inline_2388_component$$1565_options$$inline_2401$$.$getClientId$());
    } else {
      if ($menuElement_params$$38_popupFocusHint_rootElement$$80$$ = $JSCompiler_StaticMethods__getMenuElement$$(this), "block" == $menuElement_params$$38_popupFocusHint_rootElement$$80$$.style.display) {
        $agent$$405_callbacks$$inline_2400_clientId$$267_scrollBoxSubId$$inline_2399$$ = $AdfAgent$$.$AGENT$, $agent$$405_callbacks$$inline_2400_clientId$$267_scrollBoxSubId$$inline_2399$$.$getDomWindow$().$AdfSafariMobileAgent$ && $agent$$405_callbacks$$inline_2400_clientId$$267_scrollBoxSubId$$inline_2399$$ instanceof $AdfSafariMobileAgent$$ ? $AdfFocusUtils$$.$focusPreviousTabStop$($menuElement_params$$38_popupFocusHint_rootElement$$80$$) : $focusOnFirstElement$$4$$ && $AdfFocusUtils$$.$focusElement$(this.$_activeDescendant$)
        ;
      } else {
        this.$resetActiveDescendant$();
        var $closeSubId$$inline_2389_handleSubId$$inline_2390_hints$$82_scrollContentSubId$$inline_2391_visibleItems$$inline_2393$$ = $JSCompiler_StaticMethods__createMenuPopupHints$$(this, $popupHints$$2$$, $focusOnFirstElement$$4$$);
        $menuElement_params$$38_popupFocusHint_rootElement$$80$$.style.display = "block";
        var $elemsInitialized_menuItems$$inline_2392_scrollDownBackgroundSubId$$inline_2398_scrollDownSubId$$inline_2397_scrollUpBackgroundSubId$$inline_2396_scrollUpSubId$$inline_2395$$ = this.$_elemsInitialized$;
        $elemsInitialized_menuItems$$inline_2392_scrollDownBackgroundSubId$$inline_2398_scrollDownSubId$$inline_2397_scrollUpBackgroundSubId$$inline_2396_scrollUpSubId$$inline_2395$$ || ($menuElement_params$$38_popupFocusHint_rootElement$$80$$.style.visibility = "hidden");
        this.$showPopup$($agent$$inline_2388_component$$1565_options$$inline_2401$$, $menuElement_params$$38_popupFocusHint_rootElement$$80$$, $closeSubId$$inline_2389_handleSubId$$inline_2390_hints$$82_scrollContentSubId$$inline_2391_visibleItems$$inline_2393$$, $agent$$405_callbacks$$inline_2400_clientId$$267_scrollBoxSubId$$inline_2399$$);
        if (!$elemsInitialized_menuItems$$inline_2392_scrollDownBackgroundSubId$$inline_2398_scrollDownSubId$$inline_2397_scrollUpBackgroundSubId$$inline_2396_scrollUpSubId$$inline_2395$$) {
          $agent$$inline_2388_component$$1565_options$$inline_2401$$ = $AdfAgent$$.$AGENT$;
          this.$getComponent$().getDetachable() && ($closeSubId$$inline_2389_handleSubId$$inline_2390_hints$$82_scrollContentSubId$$inline_2391_visibleItems$$inline_2393$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$405_callbacks$$inline_2400_clientId$$267_scrollBoxSubId$$inline_2399$$, "close"), this.$_closeElement$ = $agent$$inline_2388_component$$1565_options$$inline_2401$$.getElementById($closeSubId$$inline_2389_handleSubId$$inline_2390_hints$$82_scrollContentSubId$$inline_2391_visibleItems$$inline_2393$$), 
          this.$_closeDetachedMenuCallback$ = this.$createCallback$(this.$_closeDetachedMenu$), $agent$$inline_2388_component$$1565_options$$inline_2401$$.$addBubbleEventListener$(this.$_closeElement$, "click", this.$_closeDetachedMenuCallback$), $closeSubId$$inline_2389_handleSubId$$inline_2390_hints$$82_scrollContentSubId$$inline_2391_visibleItems$$inline_2393$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$405_callbacks$$inline_2400_clientId$$267_scrollBoxSubId$$inline_2399$$, "handle"), this.$_handleElement$ = 
          $agent$$inline_2388_component$$1565_options$$inline_2401$$.getElementById($closeSubId$$inline_2389_handleSubId$$inline_2390_hints$$82_scrollContentSubId$$inline_2391_visibleItems$$inline_2393$$), this.$_stopCallback$ = this.$createCallback$(this.$_onHandleClick$), $agent$$inline_2388_component$$1565_options$$inline_2401$$.$addBubbleEventListener$(this.$_handleElement$, "mousedown", this.$_stopCallback$));
          $closeSubId$$inline_2389_handleSubId$$inline_2390_hints$$82_scrollContentSubId$$inline_2391_visibleItems$$inline_2393$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$405_callbacks$$inline_2400_clientId$$267_scrollBoxSubId$$inline_2399$$, "ScrollContent");
          this.$_scrollContentElement$ = $agent$$inline_2388_component$$1565_options$$inline_2401$$.getElementById($closeSubId$$inline_2389_handleSubId$$inline_2390_hints$$82_scrollContentSubId$$inline_2391_visibleItems$$inline_2393$$);
          $elemsInitialized_menuItems$$inline_2392_scrollDownBackgroundSubId$$inline_2398_scrollDownSubId$$inline_2397_scrollUpBackgroundSubId$$inline_2396_scrollUpSubId$$inline_2395$$ = this.$_scrollContentElement$.rows;
          if ($elemsInitialized_menuItems$$inline_2392_scrollDownBackgroundSubId$$inline_2398_scrollDownSubId$$inline_2397_scrollUpBackgroundSubId$$inline_2396_scrollUpSubId$$inline_2395$$.length < this.$_maxDisplayItems$) {
            this.$_areScrollButtonsDisplayed$ = !1;
          } else {
            $closeSubId$$inline_2389_handleSubId$$inline_2390_hints$$82_scrollContentSubId$$inline_2391_visibleItems$$inline_2393$$ = [];
            for (i = 0;i < $elemsInitialized_menuItems$$inline_2392_scrollDownBackgroundSubId$$inline_2398_scrollDownSubId$$inline_2397_scrollUpBackgroundSubId$$inline_2396_scrollUpSubId$$inline_2395$$.length;i++) {
              var $menuItem$$inline_2394$$ = $elemsInitialized_menuItems$$inline_2392_scrollDownBackgroundSubId$$inline_2398_scrollDownSubId$$inline_2397_scrollUpBackgroundSubId$$inline_2396_scrollUpSubId$$inline_2395$$[i];
              "none" != $menuItem$$inline_2394$$.style.display && $closeSubId$$inline_2389_handleSubId$$inline_2390_hints$$82_scrollContentSubId$$inline_2391_visibleItems$$inline_2393$$.push($menuItem$$inline_2394$$);
            }
            if (this.$_areScrollButtonsDisplayed$ = $closeSubId$$inline_2389_handleSubId$$inline_2390_hints$$82_scrollContentSubId$$inline_2391_visibleItems$$inline_2393$$.length > this.$_maxDisplayItems$) {
              $elemsInitialized_menuItems$$inline_2392_scrollDownBackgroundSubId$$inline_2398_scrollDownSubId$$inline_2397_scrollUpBackgroundSubId$$inline_2396_scrollUpSubId$$inline_2395$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$405_callbacks$$inline_2400_clientId$$267_scrollBoxSubId$$inline_2399$$, "ScrollUp"), this.$_scrollUpElement$ = $agent$$inline_2388_component$$1565_options$$inline_2401$$.getElementById($elemsInitialized_menuItems$$inline_2392_scrollDownBackgroundSubId$$inline_2398_scrollDownSubId$$inline_2397_scrollUpBackgroundSubId$$inline_2396_scrollUpSubId$$inline_2395$$), 
              this.$_scrollUpElement$.style.display = "block", $elemsInitialized_menuItems$$inline_2392_scrollDownBackgroundSubId$$inline_2398_scrollDownSubId$$inline_2397_scrollUpBackgroundSubId$$inline_2396_scrollUpSubId$$inline_2395$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$405_callbacks$$inline_2400_clientId$$267_scrollBoxSubId$$inline_2399$$, "sUpBg"), this.$_scrollUpBackgroundElement$ = $agent$$inline_2388_component$$1565_options$$inline_2401$$.getElementById($elemsInitialized_menuItems$$inline_2392_scrollDownBackgroundSubId$$inline_2398_scrollDownSubId$$inline_2397_scrollUpBackgroundSubId$$inline_2396_scrollUpSubId$$inline_2395$$), 
              $elemsInitialized_menuItems$$inline_2392_scrollDownBackgroundSubId$$inline_2398_scrollDownSubId$$inline_2397_scrollUpBackgroundSubId$$inline_2396_scrollUpSubId$$inline_2395$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$405_callbacks$$inline_2400_clientId$$267_scrollBoxSubId$$inline_2399$$, "ScrollDown"), this.$_scrollDownElement$ = $agent$$inline_2388_component$$1565_options$$inline_2401$$.getElementById($elemsInitialized_menuItems$$inline_2392_scrollDownBackgroundSubId$$inline_2398_scrollDownSubId$$inline_2397_scrollUpBackgroundSubId$$inline_2396_scrollUpSubId$$inline_2395$$), 
              this.$_scrollDownElement$.style.display = "block", $elemsInitialized_menuItems$$inline_2392_scrollDownBackgroundSubId$$inline_2398_scrollDownSubId$$inline_2397_scrollUpBackgroundSubId$$inline_2396_scrollUpSubId$$inline_2395$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$405_callbacks$$inline_2400_clientId$$267_scrollBoxSubId$$inline_2399$$, "sDwnBg"), this.$_scrollDownBackgroundElement$ = $agent$$inline_2388_component$$1565_options$$inline_2401$$.getElementById($elemsInitialized_menuItems$$inline_2392_scrollDownBackgroundSubId$$inline_2398_scrollDownSubId$$inline_2397_scrollUpBackgroundSubId$$inline_2396_scrollUpSubId$$inline_2395$$), 
              $agent$$405_callbacks$$inline_2400_clientId$$267_scrollBoxSubId$$inline_2399$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$405_callbacks$$inline_2400_clientId$$267_scrollBoxSubId$$inline_2399$$, "ScrollBox"), this.$_scrollBoxElement$ = $agent$$inline_2388_component$$1565_options$$inline_2401$$.getElementById($agent$$405_callbacks$$inline_2400_clientId$$267_scrollBoxSubId$$inline_2399$$), this.$_scrollBoxElement$.style.height = $closeSubId$$inline_2389_handleSubId$$inline_2390_hints$$82_scrollContentSubId$$inline_2391_visibleItems$$inline_2393$$[this.$_maxDisplayItems$].offsetTop - 
              2 - $closeSubId$$inline_2389_handleSubId$$inline_2390_hints$$82_scrollContentSubId$$inline_2391_visibleItems$$inline_2393$$[0].offsetTop + "px", this.$_mouseWheelHandle$ = this.$createCallback$(this.$_mouseWheel$), this.$_scrollBoxElement$.addEventListener("wheel", this.$_mouseWheelHandle$), $agent$$405_callbacks$$inline_2400_clientId$$267_scrollBoxSubId$$inline_2399$$ = {}, $agent$$405_callbacks$$inline_2400_clientId$$267_scrollBoxSubId$$inline_2399$$[$AdfSwipeSupport$$.$PANNING_CALLBACK$] = 
              this.$createCallback$(this.$_handlePanning$), $agent$$inline_2388_component$$1565_options$$inline_2401$$ = {}, $agent$$inline_2388_component$$1565_options$$inline_2401$$[$AdfSwipeSupport$$.MODE] = $AdfSwipeSupport$$.$MODE_VERTICAL$, this.$_swipeMgr$ = new $AdfSwipeSupport$$(this.$_scrollBoxElement$, $agent$$405_callbacks$$inline_2400_clientId$$267_scrollBoxSubId$$inline_2399$$, $agent$$inline_2388_component$$1565_options$$inline_2401$$);
            }
          }
          $menuElement_params$$38_popupFocusHint_rootElement$$80$$.style.visibility = "";
          this.$_elemsInitialized$ = !0;
          this.$_areScrollButtonsDisplayed$ && $JSCompiler_StaticMethods__moveShadow$$(this);
        }
        this.$_areScrollButtonsDisplayed$ && this.$updateScrollIconsState$();
        this.$getComponent$().getDetachable() && $JSCompiler_StaticMethods__isMenuVisible$$(this) && null == this.$_detachableWindow$ && (this.$_detachableWindow$ = new $AdfRepositionable$$($JSCompiler_StaticMethods__getMenuPopup$$(this), this.$_handleElement$), this.$_detachableWindow$.$setDragStartHandler$(this.$createCallback$(this.$_dragStart$)), this.$_detachableWindow$.$setDragEndHandler$(this.$createCallback$(this.$_dragEnd$)));
      }
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.show", {show:$AdfDhtmlMenuPeer$$.prototype.show});
$AdfDhtmlMenuPeer$$.prototype.$showPopup$ = function $$AdfDhtmlMenuPeer$$$$$showPopup$$($component$$1566$$, $element$$250$$, $hints$$83$$, $popupId$$51$$) {
  $AdfMenuUtils$$.$addOpenMenu$($popupId$$51$$);
  $AdfDhtmlMenuPeer$$.$superclass$.$showPopup$.call(this, $component$$1566$$, $element$$250$$, $hints$$83$$, $popupId$$51$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.showPopup", {$showPopup$:$AdfDhtmlMenuPeer$$.prototype.$showPopup$});
$AdfDhtmlMenuPeer$$.prototype.$hidePopup$ = function $$AdfDhtmlMenuPeer$$$$$hidePopup$$() {
  var $component$$1567$$ = this.$getComponent$(), $clientId$$268$$ = $component$$1567$$.$getClientId$();
  $clientId$$268$$ == $AdfDhtmlMenuPeer$$.$_reattachedMenuId$ && $AdfDhtmlMenuPeer$$.$_redetachMenu$();
  this.$isDetached$() || ($JSCompiler_StaticMethods__handleHideRequest$$(this, $clientId$$268$$), $AdfDhtmlMenuPeer$$.$superclass$.$hidePopup$.call(this, $component$$1567$$, $clientId$$268$$), this.$getComponent$().getDetachable() && (this.$_detachableWindow$ && this.$_detachableWindow$.$destroy$(), delete this.$_detachableWindow$));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.hidePopup", {$hidePopup$:$AdfDhtmlMenuPeer$$.prototype.$hidePopup$});
$AdfDhtmlMenuPeer$$.prototype.$cancelPopup$ = function $$AdfDhtmlMenuPeer$$$$$cancelPopup$$() {
  var $component$$1568$$ = this.$getComponent$(), $clientId$$269$$ = $component$$1568$$.$getClientId$();
  this.$isDetached$() ? $clientId$$269$$ == $AdfDhtmlMenuPeer$$.$_reattachedMenuId$ && $AdfDhtmlMenuPeer$$.$_redetachMenu$() : ($JSCompiler_StaticMethods__handleHideRequest$$(this, $clientId$$269$$), $AdfLogger$$.$LOGGER$.finest("menuBar auto open mode, set to OFF due to cancel popup event"), $AdfMenuUtils$$.$setMenuBarAutoOpenMode$(!1), $AdfDhtmlMenuPeer$$.$superclass$.$cancelPopup$.call(this, $component$$1568$$, $clientId$$269$$));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.cancelPopup", {$cancelPopup$:$AdfDhtmlMenuPeer$$.prototype.$cancelPopup$});
$AdfDhtmlMenuPeer$$.prototype.close = function $$AdfDhtmlMenuPeer$$$$close$($immediate$$5$$, $keepSelectedStyle$$) {
  var $component$$1569$$ = this.$getComponent$();
  if (this.$isDetached$()) {
    $AdfDomUtils$$.$addCSSClassName$($JSCompiler_StaticMethods__getMenuElement$$(this), $AdfMenuUtils$$.$DETACHED_STYLE_CLASS$);
    if (this.$_detachedMenuLeft$ && this.$_detachedMenuTop$) {
      var $clientId$$270_floatingElement$$13$$ = this.$_detachableWindow$.$getElement$();
      $clientId$$270_floatingElement$$13$$.style.left = this.$_detachedMenuLeft$;
      $clientId$$270_floatingElement$$13$$.style.top = this.$_detachedMenuTop$;
    }
    $keepSelectedStyle$$ || this.$_deselectElement$();
    $clientId$$270_floatingElement$$13$$ = $component$$1569$$.$getClientId$();
    $AdfDhtmlMenuPeer$$.$_removeFromDetachedMenus$($clientId$$270_floatingElement$$13$$);
    $AdfDhtmlMenuPeer$$.$superclass$.$hidePopup$.call(this, $component$$1569$$, $clientId$$270_floatingElement$$13$$);
  } else {
    this.$isContextMenu$() ? $component$$1569$$.getParent().$hide$() : ($immediate$$5$$ ? this.$hidePopup$() : $JSCompiler_StaticMethods__delayPopupHiding$$(this), $keepSelectedStyle$$ || this.$_deselectElement$());
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.close", {close:$AdfDhtmlMenuPeer$$.prototype.close});
$AdfDhtmlMenuPeer$$.prototype.$isDetached$ = function $$AdfDhtmlMenuPeer$$$$$isDetached$$() {
  return this.$_isDetached$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.isDetached", {$isDetached$:$AdfDhtmlMenuPeer$$.prototype.$isDetached$});
$AdfDhtmlMenuPeer$$.prototype.$isContextMenu$ = function $$AdfDhtmlMenuPeer$$$$$isContextMenu$$() {
  return this.$getComponent$().getParent() instanceof AdfRichPopup;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.isContextMenu", {$isContextMenu$:$AdfDhtmlMenuPeer$$.prototype.$isContextMenu$});
$AdfDhtmlMenuPeer$$.prototype.$isRootMenu$ = function $$AdfDhtmlMenuPeer$$$$$isRootMenu$$() {
  return 1 == $JSCompiler_StaticMethods__getDepth$$(this);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.isRootMenu", {$isRootMenu$:$AdfDhtmlMenuPeer$$.prototype.$isRootMenu$});
$AdfDhtmlMenuPeer$$.prototype.$updateScrollIconsState$ = function $$AdfDhtmlMenuPeer$$$$$updateScrollIconsState$$() {
  if (this.$_areScrollButtonsDisplayed$) {
    for (var $bottomItemBox_menuItems$$1$$ = this.$_scrollContentElement$.rows, $agent$$406_n$$9$$ = $bottomItemBox_menuItems$$1$$.length, $topItemBox_topItemIndex$$ = 0, $bottomItemIndex$$ = 0, $i$$387_isAtScrollBottom$$ = 0;$i$$387_isAtScrollBottom$$ < $agent$$406_n$$9$$;$i$$387_isAtScrollBottom$$++) {
      var $containerBox$$1_isAtScrollTop_menuItem$$1$$ = $bottomItemBox_menuItems$$1$$[$i$$387_isAtScrollBottom$$];
      if ("none" != $containerBox$$1_isAtScrollTop_menuItem$$1$$.style.display) {
        $topItemBox_topItemIndex$$ = $i$$387_isAtScrollBottom$$;
        break;
      }
    }
    for ($i$$387_isAtScrollBottom$$ = $agent$$406_n$$9$$ - 1;-1 < $i$$387_isAtScrollBottom$$;$i$$387_isAtScrollBottom$$--) {
      if ($containerBox$$1_isAtScrollTop_menuItem$$1$$ = $bottomItemBox_menuItems$$1$$[$i$$387_isAtScrollBottom$$], "none" != $containerBox$$1_isAtScrollTop_menuItem$$1$$.style.display) {
        $bottomItemIndex$$ = $i$$387_isAtScrollBottom$$;
        break;
      }
    }
    $agent$$406_n$$9$$ = $AdfAgent$$.$AGENT$;
    $i$$387_isAtScrollBottom$$ = $containerBox$$1_isAtScrollTop_menuItem$$1$$ = !1;
    $containerBox$$1_isAtScrollTop_menuItem$$1$$ = $agent$$406_n$$9$$.$getElementPageBounds$(this.$_scrollBoxElement$);
    $topItemBox_topItemIndex$$ = $agent$$406_n$$9$$.$getElementPageBounds$($bottomItemBox_menuItems$$1$$[$topItemBox_topItemIndex$$]);
    $bottomItemBox_menuItems$$1$$ = $agent$$406_n$$9$$.$getElementPageBounds$($bottomItemBox_menuItems$$1$$[$bottomItemIndex$$]);
    $i$$387_isAtScrollBottom$$ = 90 <= ($containerBox$$1_isAtScrollTop_menuItem$$1$$.bottom - $bottomItemBox_menuItems$$1$$.top) / ($bottomItemBox_menuItems$$1$$.bottom - $bottomItemBox_menuItems$$1$$.top) * 100;
    ($containerBox$$1_isAtScrollTop_menuItem$$1$$ = 90 <= ($topItemBox_topItemIndex$$.bottom - $containerBox$$1_isAtScrollTop_menuItem$$1$$.top) / ($topItemBox_topItemIndex$$.bottom - $topItemBox_topItemIndex$$.top) * 100) ? ($AdfDomUtils$$.$addCSSClassName$(this.$_scrollUpElement$, $AdfRichUIPeer$$.$DISABLED_STYLECLASS$), $AdfDomUtils$$.$addCSSClassName$(this.$_scrollUpBackgroundElement$, $AdfRichUIPeer$$.$DISABLED_STYLECLASS$)) : ($AdfDomUtils$$.$removeCSSClassName$(this.$_scrollUpElement$, $AdfRichUIPeer$$.$DISABLED_STYLECLASS$), 
    $AdfDomUtils$$.$removeCSSClassName$(this.$_scrollUpBackgroundElement$, $AdfRichUIPeer$$.$DISABLED_STYLECLASS$));
    $i$$387_isAtScrollBottom$$ ? ($AdfDomUtils$$.$addCSSClassName$(this.$_scrollDownElement$, $AdfRichUIPeer$$.$DISABLED_STYLECLASS$), $AdfDomUtils$$.$addCSSClassName$(this.$_scrollDownBackgroundElement$, $AdfRichUIPeer$$.$DISABLED_STYLECLASS$)) : ($AdfDomUtils$$.$removeCSSClassName$(this.$_scrollDownElement$, $AdfRichUIPeer$$.$DISABLED_STYLECLASS$), $AdfDomUtils$$.$removeCSSClassName$(this.$_scrollDownBackgroundElement$, $AdfRichUIPeer$$.$DISABLED_STYLECLASS$));
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.updateScrollIconsState", {$updateScrollIconsState$:$AdfDhtmlMenuPeer$$.prototype.$updateScrollIconsState$});
$AdfDhtmlMenuPeer$$.prototype.$resetActiveDescendant$ = function $$AdfDhtmlMenuPeer$$$$$resetActiveDescendant$$() {
  this.$_activeDescendant$ && this.$_activeDescendant$.setAttribute("tabIndex", "-1");
  var $menuElement$$1$$ = $JSCompiler_StaticMethods__getMenuElement$$(this);
  this.$_activeDescendant$ = $AdfFocusUtils$$.$setFirstActiveDescendant$($menuElement$$1$$, {$includeVisibilityHidden$:!0, $includeDisplayNone$:!0});
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.resetActiveDescendant", {$resetActiveDescendant$:$AdfDhtmlMenuPeer$$.prototype.$resetActiveDescendant$});
$AdfDhtmlMenuPeer$$.prototype.$ReplaceDomElement$ = function $$AdfDhtmlMenuPeer$$$$$ReplaceDomElement$$($newElement$$18$$, $oldElement$$9$$) {
  if ("fetching" != this.$_getLazyState$()) {
    $AdfDhtmlMenuPeer$$.$superclass$.$ReplaceDomElement$.call(this, $newElement$$18$$, $oldElement$$9$$);
  } else {
    var $component$$inline_2406_menuContent$$ = $AdfDomUtils$$.$getFirstChildElement$($newElement$$18$$);
    if (null == $component$$inline_2406_menuContent$$) {
      $AdfLogger$$.$LOGGER$.warning("Unexpected element received by AdfDhtmlMenuPeer.prototype.ReplaceDomElement"), $AdfDhtmlMenuPeer$$.$superclass$.$ReplaceDomElement$.call(this, $newElement$$18$$, $oldElement$$9$$);
    } else {
      this.$getDomElement$().appendChild($component$$inline_2406_menuContent$$);
      $AdfAgent$$.$AGENT$.$elementsAdded$($component$$inline_2406_menuContent$$);
      this.$_setLazyState$("contentLoaded");
      var $component$$inline_2406_menuContent$$ = this.$getComponent$(), $fetchingMsgId$$inline_2408_id$$inline_2407$$ = this.$getDomElement$().getAttribute("id"), $fetchingMsgId$$inline_2408_id$$inline_2407$$ = $AdfRichUIPeer$$.$CreateSubId$($fetchingMsgId$$inline_2408_id$$inline_2407$$, "lazy-fetch-message");
      $AdfDhtmlMenuPeer$$.$superclass$.$hidePopup$.call(this, $component$$inline_2406_menuContent$$, $fetchingMsgId$$inline_2408_id$$inline_2407$$);
      this.show(this.$_lazyFetchPopupHints$, this.$_lazyFetchFocusOnFirstElement$);
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.ReplaceDomElement", {$ReplaceDomElement$:$AdfDhtmlMenuPeer$$.prototype.$ReplaceDomElement$});
$AdfDhtmlMenuPeer$$.prototype.$PopupClosed$ = function $$AdfDhtmlMenuPeer$$$$$PopupClosed$$($component$$1571$$, $contentDom$$14$$) {
  var $parent$$49_rootElement$$82$$ = this.$getDomElement$();
  $AdfMenuUtils$$.$dismiss$($parent$$49_rootElement$$82$$, !0, !1);
  $contentDom$$14$$.style.display = "none";
  $AdfDhtmlMenuPeer$$.$superclass$.$PopupClosed$.call(this, $component$$1571$$, $contentDom$$14$$);
  $parent$$49_rootElement$$82$$.appendChild($contentDom$$14$$);
  this.$isContextMenu$() && ($parent$$49_rootElement$$82$$ = $component$$1571$$.getParent(), $AdfDhtmlPopupPeer$$.$__handlePopupCanceled$($parent$$49_rootElement$$82$$, $contentDom$$14$$), $parent$$49_rootElement$$82$$.$getPeer$().$PopupClosed$($parent$$49_rootElement$$82$$, null));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.PopupClosed", {$PopupClosed$:$AdfDhtmlMenuPeer$$.prototype.$PopupClosed$});
$AdfDhtmlMenuPeer$$.prototype.$HandleComponentMouseOut$ = function $$AdfDhtmlMenuPeer$$$$$HandleComponentMouseOut$$() {
  $AdfMenuUtils$$.$unhighlightRootMenuItem$();
  if (1 < $JSCompiler_StaticMethods__getDepth$$(this) && !$JSCompiler_StaticMethods__isMenuVisible$$(this)) {
    $AdfDhtmlMenuPeer$$.$_popupPeerWaitingForShow$ == this && $AdfDhtmlMenuPeer$$.$cancelShowing$();
    var $rootElement$$83$$ = this.$getDomElement$();
    $AdfDomUtils$$.$removeCSSClassName$($rootElement$$83$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$);
    $AdfDomUtils$$.$removeCSSClassName$($rootElement$$83$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.HandleComponentMouseOut", {$HandleComponentMouseOut$:$AdfDhtmlMenuPeer$$.prototype.$HandleComponentMouseOut$});
$AdfDhtmlMenuPeer$$.prototype.$HandleComponentKeyUp$ = function $$AdfDhtmlMenuPeer$$$$$HandleComponentKeyUp$$($componentEvent$$323$$) {
  if (!$componentEvent$$323$$.$isCanceled$() && !this.$_isDisabled$()) {
    var $openMenu_rootElement$$84$$ = this.$getDomElement$(), $keyCode$$80_rootMenu$$ = $componentEvent$$323$$.$getKeyCode$(), $isSubMenu$$ = 1 < $JSCompiler_StaticMethods__getDepth$$(this), $component$$1572_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$ = this.$getComponent$(), $eventSource$$21$$ = $componentEvent$$323$$.getSource();
    switch($keyCode$$80_rootMenu$$) {
      case $AdfKeyStroke$$.$HOME_KEY$:
        $eventSource$$21$$ != $component$$1572_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$ && ($component$$1572_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$ = $AdfFocusUtils$$.$getFirstFocusableDescendant$($JSCompiler_StaticMethods__getMenuElement$$(this)), this.$_updateActiveDescendant$($component$$1572_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$), $AdfFocusUtils$$.$focusElement$($component$$1572_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$), 
        $componentEvent$$323$$.cancel());
        return;
      case $AdfKeyStroke$$.$END_KEY$:
        $eventSource$$21$$ != $component$$1572_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$ && ($component$$1572_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$ = $AdfFocusUtils$$.$getLastFocusableDescendant$($JSCompiler_StaticMethods__getMenuElement$$(this)), this.$_updateActiveDescendant$($component$$1572_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$), $AdfFocusUtils$$.$focusElement$($component$$1572_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$), 
        $componentEvent$$323$$.cancel());
        return;
      case $AdfKeyStroke$$.$ENTER_KEY$:
        this.$_enterKeyDown$ && ($AdfDomUtils$$.$addCSSClassName$($openMenu_rootElement$$84$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$), this.show(null, !0));
        this.$_enterKeyDown$ = !1;
        $componentEvent$$323$$.cancel();
        return;
      case $AdfKeyStroke$$.$SPACE_KEY$:
        this.$_spaceKeyDown$ && ($AdfDomUtils$$.$addCSSClassName$($openMenu_rootElement$$84$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$), this.show(null, !0));
        this.$_spaceKeyDown$ = !1;
        $componentEvent$$323$$.cancel();
        return;
      case $AdfKeyStroke$$.$ESC_KEY$:
        this.$isDetached$() ? (this.$_closeDetachedMenu$(), $componentEvent$$323$$.cancel()) : $isSubMenu$$ ? $openMenu_rootElement$$84$$ != $AdfPage$$.$PAGE$.$_activeDomNode$ && (this.focus($component$$1572_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$), this.close(!0, !0), $componentEvent$$323$$.cancel()) : this.$isContextMenu$() ? ($AdfMenuUtils$$.$closeAllMenus$(), $openMenu_rootElement$$84$$.blur(), this.focus($component$$1572_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$), 
        $component$$1572_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$ = $component$$1572_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$.getParent(), $component$$1572_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$.$getPeer$().$hide$($component$$1572_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$), $componentEvent$$323$$.cancel()) : ($AdfLogger$$.$LOGGER$.finest("menuBar auto open mode, set to OFF due to escape pressed while on a root menu"), 
        $AdfMenuUtils$$.$setMenuBarAutoOpenMode$(!1), $AdfMenuUtils$$.$closeAllMenus$(!0));
        return;
    }
    $openMenu_rootElement$$84$$ = $JSCompiler_StaticMethods__isMenuVisible$$(this);
    $keyCode$$80_rootMenu$$ = this.$isRootMenu$();
    $component$$1572_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$ = $componentEvent$$323$$.getSource() == $component$$1572_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$;
    if ($openMenu_rootElement$$84$$ && $keyCode$$80_rootMenu$$ || !$component$$1572_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$) {
      $component$$1572_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$ = this.$_scrollContentElement$ || $JSCompiler_StaticMethods__getMenuElement$$(this), $AdfDhtmlMenuPeer$$.$_handleMenuItemAccessKeys$($component$$1572_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$, $componentEvent$$323$$);
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.HandleComponentKeyUp", {$HandleComponentKeyUp$:$AdfDhtmlMenuPeer$$.prototype.$HandleComponentKeyUp$});
$AdfDhtmlMenuPeer$$.prototype.$HandleComponentKeyDown$ = function $$AdfDhtmlMenuPeer$$$$$HandleComponentKeyDown$$($componentEvent$$324$$) {
  if (!$componentEvent$$324$$.$isCanceled$() && !this.$_isDisabled$()) {
    var $keyCode$$81$$ = $componentEvent$$324$$.$getKeyCode$(), $agent$$408$$ = $AdfAgent$$.$AGENT$;
    $keyCode$$81$$ == $AdfKeyStroke$$.$ENTER_KEY$ ? (this.$_enterKeyDown$ = !0, $componentEvent$$324$$.cancel(), $componentEvent$$324$$.$stopBubbling$()) : $keyCode$$81$$ == $AdfKeyStroke$$.$SPACE_KEY$ ? (this.$_spaceKeyDown$ = !0, $componentEvent$$324$$.cancel(), $componentEvent$$324$$.$stopBubbling$()) : $agent$$408$$.$getPreferredKeyEventForRepetition$() == $AdfUIInputEvent$$.$KEY_DOWN_EVENT_TYPE$ && this.$_handleArrowKeys$($keyCode$$81$$, $componentEvent$$324$$);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.HandleComponentKeyDown", {$HandleComponentKeyDown$:$AdfDhtmlMenuPeer$$.prototype.$HandleComponentKeyDown$});
$AdfDhtmlMenuPeer$$.prototype.$HandleComponentKeyPress$ = function $$AdfDhtmlMenuPeer$$$$$HandleComponentKeyPress$$($componentEvent$$325$$) {
  if (!$componentEvent$$325$$.$isCanceled$() && !this.$_isDisabled$() && $AdfAgent$$.$AGENT$.$getPreferredKeyEventForRepetition$() == $AdfUIInputEvent$$.$KEY_PRESS_EVENT_TYPE$) {
    var $keyCode$$82$$ = $componentEvent$$325$$.$getKeyCode$();
    this.$_handleArrowKeys$($keyCode$$82$$, $componentEvent$$325$$);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.HandleComponentKeyPress", {$HandleComponentKeyPress$:$AdfDhtmlMenuPeer$$.prototype.$HandleComponentKeyPress$});
$AdfDhtmlMenuPeer$$.prototype.$HandleComponentFocus$ = function $$AdfDhtmlMenuPeer$$$$$HandleComponentFocus$$($componentEvent$$326$$) {
  var $clientId$$271_compElement$$5_eventSource$$22_focusableElement$$1_rootElement$$85$$ = $componentEvent$$326$$.getSource(), $menuComponent$$ = this.$getComponent$();
  $clientId$$271_compElement$$5_eventSource$$22_focusableElement$$1_rootElement$$85$$ == $menuComponent$$ ? ($clientId$$271_compElement$$5_eventSource$$22_focusableElement$$1_rootElement$$85$$ = this.$getDomElement$(), 1 < $JSCompiler_StaticMethods__getDepth$$(this) ? $AdfDomUtils$$.$addCSSClassName$($clientId$$271_compElement$$5_eventSource$$22_focusableElement$$1_rootElement$$85$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$) : $AdfMenuUtils$$.$isMenuBarAutoOpenMode$() ? ($AdfMenuUtils$$.$dismiss$($clientId$$271_compElement$$5_eventSource$$22_focusableElement$$1_rootElement$$85$$, 
  !0), $AdfDomUtils$$.$addCSSClassName$($clientId$$271_compElement$$5_eventSource$$22_focusableElement$$1_rootElement$$85$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$), this.show(null, !1)) : $AdfMenuUtils$$.$highlightRootMenuItem$($clientId$$271_compElement$$5_eventSource$$22_focusableElement$$1_rootElement$$85$$)) : $clientId$$271_compElement$$5_eventSource$$22_focusableElement$$1_rootElement$$85$$.getParent() == $menuComponent$$ && ($clientId$$271_compElement$$5_eventSource$$22_focusableElement$$1_rootElement$$85$$ = 
  $clientId$$271_compElement$$5_eventSource$$22_focusableElement$$1_rootElement$$85$$.$getClientId$(), $clientId$$271_compElement$$5_eventSource$$22_focusableElement$$1_rootElement$$85$$ = $AdfAgent$$.$AGENT$.getElementById($clientId$$271_compElement$$5_eventSource$$22_focusableElement$$1_rootElement$$85$$), ($clientId$$271_compElement$$5_eventSource$$22_focusableElement$$1_rootElement$$85$$ = $AdfFocusUtils$$.$getFirstFocusableDescendant$($clientId$$271_compElement$$5_eventSource$$22_focusableElement$$1_rootElement$$85$$)) && 
  $clientId$$271_compElement$$5_eventSource$$22_focusableElement$$1_rootElement$$85$$ != this.$_activeDescendant$ && this.$_updateActiveDescendant$($clientId$$271_compElement$$5_eventSource$$22_focusableElement$$1_rootElement$$85$$));
  $componentEvent$$326$$.cancel();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.HandleComponentFocus", {$HandleComponentFocus$:$AdfDhtmlMenuPeer$$.prototype.$HandleComponentFocus$});
$AdfDhtmlMenuPeer$$.prototype.$HandleComponentMouseOver$ = function $$AdfDhtmlMenuPeer$$$$$HandleComponentMouseOver$$($component$$1573_componentEvent$$327$$) {
  $JSCompiler_StaticMethods__cancelHiding$$(this);
  if (this.$_isDisabled$()) {
    $AdfMenuUtils$$.$isMenuBarAutoOpenMode$() && this.$isRootMenu$() && $AdfMenuUtils$$.$closeAllMenus$(!1);
  } else {
    if (!$component$$1573_componentEvent$$327$$.$isCanceled$()) {
      var $agent$$409$$ = $AdfAgent$$.$AGENT$, $nativeEvent$$34$$ = $component$$1573_componentEvent$$327$$.$getNativeEvent$(), $rootElement$$86$$ = this.$getDomElement$();
      $agent$$409$$.$isEventInElement$($nativeEvent$$34$$, $rootElement$$86$$) && ($component$$1573_componentEvent$$327$$.cancel(), this.$isContextMenu$() || ($component$$1573_componentEvent$$327$$ = this.$getComponent$(), 1 < $JSCompiler_StaticMethods__getDepth$$(this) ? ($AdfDomUtils$$.$addCSSClassName$($rootElement$$86$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$), $AdfMenuUtils$$.$dismiss$($rootElement$$86$$, !1), $AdfDhtmlMenuPeer$$.$cancelShowing$(), $AdfDhtmlMenuPeer$$.$_popupShowingHandle$ = 
      $AdfPage$$.$PAGE$.$getDomWindow$().setTimeout(this.$createCallback$(this.$_delayShowCallback$), $AdfDhtmlMenuPeer$$.$_OPEN_CLOSE_DELAY$), $AdfDhtmlMenuPeer$$.$_popupPeerWaitingForShow$ = this, $AdfFocusUtils$$.$containsFocus$($rootElement$$86$$) || this.focus($component$$1573_componentEvent$$327$$)) : $JSCompiler_StaticMethods__isMenuVisible$$(this) || $AdfMenuUtils$$.$isMenuBarAutoOpenMode$() ? ($AdfMenuUtils$$.$isMenuBarAutoOpenMode$() && ($AdfMenuUtils$$.$dismiss$($rootElement$$86$$, !0), 
      $AdfDomUtils$$.$addCSSClassName$($rootElement$$86$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$), this.show(null, !1)), $AdfFocusUtils$$.$containsFocus$($rootElement$$86$$) || this.focus($component$$1573_componentEvent$$327$$)) : $AdfMenuUtils$$.$highlightRootMenuItem$($rootElement$$86$$)));
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.HandleComponentMouseOver", {$HandleComponentMouseOver$:$AdfDhtmlMenuPeer$$.prototype.$HandleComponentMouseOver$});
$AdfDhtmlMenuPeer$$.prototype.$HandleComponentMouseDown$ = function $$AdfDhtmlMenuPeer$$$$$HandleComponentMouseDown$$($componentEvent$$328_rootElement$$87_scrollButtonDIV$$) {
  var $agent$$410_component$$1574_isMobile$$ = this.$getComponent$();
  if (!this.$_isDisabled$() && $componentEvent$$328_rootElement$$87_scrollButtonDIV$$.$isLeftButtonPressed$() && $agent$$410_component$$1574_isMobile$$ == $componentEvent$$328_rootElement$$87_scrollButtonDIV$$.getSource()) {
    var $agent$$410_component$$1574_isMobile$$ = $AdfAgent$$.$AGENT$, $domEvent$$47$$ = $componentEvent$$328_rootElement$$87_scrollButtonDIV$$.$getNativeEvent$();
    $componentEvent$$328_rootElement$$87_scrollButtonDIV$$ = this.$getDomElement$();
    var $isScrollUpElement$$ = this.$_scrollUpElement$ && $agent$$410_component$$1574_isMobile$$.$isEventInElement$($domEvent$$47$$, this.$_scrollUpElement$), $isScrollDownElement$$ = this.$_scrollDownElement$ && $agent$$410_component$$1574_isMobile$$.$isEventInElement$($domEvent$$47$$, this.$_scrollDownElement$);
    $isScrollUpElement$$ || $isScrollDownElement$$ ? ($agent$$410_component$$1574_isMobile$$.$getPlatform$() == $AdfAgent$$.$IE_PLATFORM$ && ($componentEvent$$328_rootElement$$87_scrollButtonDIV$$ = $isScrollUpElement$$ ? this.$_scrollUpElement$ : this.$_scrollDownElement$, $componentEvent$$328_rootElement$$87_scrollButtonDIV$$ != $AdfPage$$.$PAGE$.$_activeDomNode$ && ($componentEvent$$328_rootElement$$87_scrollButtonDIV$$.tabIndex = 0, $componentEvent$$328_rootElement$$87_scrollButtonDIV$$.focus(), 
    $componentEvent$$328_rootElement$$87_scrollButtonDIV$$.tabIndex = -1)), $agent$$410_component$$1574_isMobile$$.$getCapabilities$()[$AdfAgent$$.$CAP_TOUCH_SCREEN$] != $AdfAgent$$.$CAP_TOUCH_SCREEN_NONE$ ? $JSCompiler_StaticMethods__startScroll$$(this, $isScrollDownElement$$, !0) : $JSCompiler_StaticMethods__startScroll$$(this, $isScrollDownElement$$)) : $agent$$410_component$$1574_isMobile$$.$isEventInElement$($domEvent$$47$$, $componentEvent$$328_rootElement$$87_scrollButtonDIV$$) && ($agent$$410_component$$1574_isMobile$$.$eatEvent$($domEvent$$47$$), 
    this.$isContextMenu$() ? $AdfDomUtils$$.$addCSSClassName$($componentEvent$$328_rootElement$$87_scrollButtonDIV$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$) : ($agent$$410_component$$1574_isMobile$$ = !!($AdfPage$$.$PAGE$.$getDomWindow$().$AdfSafariMobileAgent$ && $AdfAgent$$.$AGENT$ instanceof $AdfSafariMobileAgent$$), 1 < $JSCompiler_StaticMethods__getDepth$$(this) ? ($AdfDomUtils$$.$addCSSClassName$($componentEvent$$328_rootElement$$87_scrollButtonDIV$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$), 
    this.show(null, $agent$$410_component$$1574_isMobile$$)) : $JSCompiler_StaticMethods__isMenuVisible$$(this) && ($AdfDomUtils$$.$addCSSClassName$($componentEvent$$328_rootElement$$87_scrollButtonDIV$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$), this.close(!0, !0), $AdfLogger$$.$LOGGER$.finest("menuBar auto open mode, set to OFF due to menu clicked while menu IS visible"), $AdfMenuUtils$$.$setMenuBarAutoOpenMode$(!1))));
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.HandleComponentMouseDown", {$HandleComponentMouseDown$:$AdfDhtmlMenuPeer$$.prototype.$HandleComponentMouseDown$});
$AdfDhtmlMenuPeer$$.prototype.$HandleComponentMouseUp$ = function $$AdfDhtmlMenuPeer$$$$$HandleComponentMouseUp$$($componentEvent$$329_rootElement$$88$$) {
  if (!this.$_isDisabled$() && $componentEvent$$329_rootElement$$88$$.$isLeftButtonPressed$()) {
    var $agent$$411_domWindow$$102$$ = $AdfAgent$$.$AGENT$, $domEvent$$48$$ = $componentEvent$$329_rootElement$$88$$.$getNativeEvent$();
    this.$_handleElement$ && $AdfDomUtils$$.$removeCSSClassName$(this.$_handleElement$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$);
    var $isScrollUpElement$$1$$ = this.$_scrollUpElement$ && $agent$$411_domWindow$$102$$.$isEventInElement$($domEvent$$48$$, this.$_scrollUpElement$), $isScrollDownElement$$1$$ = this.$_scrollDownElement$ && $agent$$411_domWindow$$102$$.$isEventInElement$($domEvent$$48$$, this.$_scrollDownElement$), $component$$1575$$ = this.$getComponent$();
    $isScrollUpElement$$1$$ || $isScrollDownElement$$1$$ ? ($JSCompiler_StaticMethods__endScroll$$(this), this.$updateScrollIconsState$()) : $component$$1575$$ == $componentEvent$$329_rootElement$$88$$.getSource() && ($componentEvent$$329_rootElement$$88$$ = this.$getDomElement$(), !$agent$$411_domWindow$$102$$.$isEventInElement$($domEvent$$48$$, $componentEvent$$329_rootElement$$88$$) || this.$isContextMenu$() || 1 < $JSCompiler_StaticMethods__getDepth$$(this) || $JSCompiler_StaticMethods__isMenuVisible$$(this) || 
    ($agent$$411_domWindow$$102$$ = $AdfPage$$.$PAGE$.$getDomWindow$(), this.show(null, !!($agent$$411_domWindow$$102$$.$AdfSafariMobileAgent$ && $AdfAgent$$.$AGENT$ instanceof $AdfSafariMobileAgent$$)), $AdfLogger$$.$LOGGER$.finest("menuBar auto open mode, set to ON due to menu clicked while menu IS NOT visible"), $AdfMenuUtils$$.$setMenuBarAutoOpenMode$(!0)));
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.HandleComponentMouseUp", {$HandleComponentMouseUp$:$AdfDhtmlMenuPeer$$.prototype.$HandleComponentMouseUp$});
$AdfDhtmlMenuPeer$$.prototype.$HandleComponentBlur$ = function $$AdfDhtmlMenuPeer$$$$$HandleComponentBlur$$() {
  var $rootElement$$89$$ = this.$getDomElement$(), $notASubMenu$$ = !(1 < $JSCompiler_StaticMethods__getDepth$$(this)), $menuNotOpen$$ = 1 < $JSCompiler_StaticMethods__getDepth$$(this) && !$JSCompiler_StaticMethods__isMenuVisible$$(this), $menuOpenAndDetached$$ = 1 < $JSCompiler_StaticMethods__getDepth$$(this) && $JSCompiler_StaticMethods__isMenuVisible$$(this) && this.$isDetached$();
  ($notASubMenu$$ || $menuNotOpen$$ || $menuOpenAndDetached$$) && $AdfDomUtils$$.$removeCSSClassName$($rootElement$$89$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$);
  !this.$isDetached$() && $JSCompiler_StaticMethods__isMenuVisible$$(this) || $AdfDomUtils$$.$removeCSSClassName$($rootElement$$89$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.HandleComponentBlur", {$HandleComponentBlur$:$AdfDhtmlMenuPeer$$.prototype.$HandleComponentBlur$});
$AdfDhtmlMenuPeer$$.prototype.$ComponentRemoved$ = function $$AdfDhtmlMenuPeer$$$$$ComponentRemoved$$($component$$1576$$) {
  var $clientId$$272$$ = $component$$1576$$.$getClientId$();
  $AdfMenuUtils$$.$isMenuOpen$($clientId$$272$$) ? this.$hidePopup$() : this.$isDetached$() && this.$_closeDetachedMenu$();
  if (this.$getComponent$().getDetachable()) {
    var $agent$$412$$ = $AdfAgent$$.$AGENT$, $closeDetachedMenuCallback_stopCallback$$ = this.$_closeDetachedMenuCallback$;
    $closeDetachedMenuCallback_stopCallback$$ && $agent$$412$$.$removeBubbleEventListener$(this.$_closeElement$, "click", $closeDetachedMenuCallback_stopCallback$$);
    delete this.$_closeElement$;
    delete this.$_closeDetachedMenuCallback$;
    ($closeDetachedMenuCallback_stopCallback$$ = this.$_stopCallback$) && $agent$$412$$.$removeBubbleEventListener$(this.$_handleElement$, "mousedown", $closeDetachedMenuCallback_stopCallback$$);
    delete this.$_handleElement$;
    delete this.$_stopCallback$;
  }
  1 < $JSCompiler_StaticMethods__getDepth$$(this) || $AdfDhtmlMenuPeer$$.$_removeBarMenu$($clientId$$272$$);
  this.$_areScrollButtonsDisplayed$ && (this.$_scrollBoxElement$.removeEventListener("wheel", this.$_mouseWheelHandle$), this.$_swipeMgr$.release(), this.$_swipeMgr$ = null);
  delete this.$_menuElement$;
  delete this.$_scrollUpElement$;
  delete this.$_scrollDownElement$;
  delete this.$_scrollUpBackgroundElement$;
  delete this.$_scrollDownBackgroundElement$;
  delete this.$_scrollBoxElement$;
  delete this.$_scrollContentElement$;
  $AdfDhtmlMenuPeer$$.$superclass$.$ComponentRemoved$.call(this, $component$$1576$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.ComponentRemoved", {$ComponentRemoved$:$AdfDhtmlMenuPeer$$.prototype.$ComponentRemoved$});
$AdfDhtmlMenuPeer$$.prototype.$ComponentDisabledChanged$ = function $$AdfDhtmlMenuPeer$$$$$ComponentDisabledChanged$$($component$$1577$$, $domElement$$337$$, $newValue$$109$$) {
  $AdfMenuUtils$$.$menuItemDisabledChanged$($component$$1577$$, $domElement$$337$$, $newValue$$109$$, $JSCompiler_StaticMethods__getMenuElement$$(this));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.ComponentDisabledChanged", {$ComponentDisabledChanged$:$AdfDhtmlMenuPeer$$.prototype.$ComponentDisabledChanged$});
$AdfDhtmlMenuPeer$$.prototype.$ComponentVisibleChanged$ = function $$AdfDhtmlMenuPeer$$$$$ComponentVisibleChanged$$($component$$1578$$, $domElement$$338$$, $newValue$$110$$, $oldValue$$70$$) {
  $AdfDhtmlMenuPeer$$.$superclass$.$ComponentVisibleChanged$.call(this, $component$$1578$$, $domElement$$338$$, $newValue$$110$$, $oldValue$$70$$);
  $AdfMenuUtils$$.$menuItemVisibleChanged$($component$$1578$$, $domElement$$338$$, $newValue$$110$$, $JSCompiler_StaticMethods__getMenuElement$$(this));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.ComponentVisibleChanged", {$ComponentVisibleChanged$:$AdfDhtmlMenuPeer$$.prototype.$ComponentVisibleChanged$});
$AdfDhtmlMenuPeer$$.prototype.$ComponentTextChanged$ = function $$AdfDhtmlMenuPeer$$$$$ComponentTextChanged$$($component$$1579$$, $domElement$$339_textElement$$7$$, $newValue$$111$$, $oldValue$$71$$) {
  return null != $oldValue$$71$$ && ($domElement$$339_textElement$$7$$ = $AdfDomUtils$$.$getFirstDescendentElement$($domElement$$339_textElement$$7$$, "A")) ? $AdfDomUtils$$.$handleTextChangeWithAccessKey$($component$$1579$$, $domElement$$339_textElement$$7$$, $newValue$$111$$) : !1;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.ComponentTextChanged", {$ComponentTextChanged$:$AdfDhtmlMenuPeer$$.prototype.$ComponentTextChanged$});
$AdfDhtmlMenuPeer$$.prototype.$GetInlineEditor$ = function $$AdfDhtmlMenuPeer$$$$$GetInlineEditor$$() {
  return $AdfDhtmlSimpleTextEditor$$.$getAnchorInlineEditor$();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.GetInlineEditor", {$GetInlineEditor$:$AdfDhtmlMenuPeer$$.prototype.$GetInlineEditor$});
$AdfDhtmlMenuPeer$$.prototype.$setVisibleItems$ = function $$AdfDhtmlMenuPeer$$$$$setVisibleItems$$($items$$2$$) {
  this.$_maxDisplayItems$ = $items$$2$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.setVisibleItems", {$setVisibleItems$:$AdfDhtmlMenuPeer$$.prototype.$setVisibleItems$});
$AdfDhtmlMenuPeer$$.prototype.$__preferredSizeChangeNotify$ = function $$AdfDhtmlMenuPeer$$$$$__preferredSizeChangeNotify$$($component$$1580_parent$$51$$) {
  this.bind($component$$1580_parent$$51$$);
  if (this.$isRootMenu$()) {
    $component$$1580_parent$$51$$ = this.$getComponentParent$($component$$1580_parent$$51$$);
    var $parentPeer$$19$$ = null != $component$$1580_parent$$51$$ ? $component$$1580_parent$$51$$.$getPeer$() : null;
    $parentPeer$$19$$ && $parentPeer$$19$$.$__preferredSizeChangeNotify$ && $parentPeer$$19$$.$__preferredSizeChangeNotify$($component$$1580_parent$$51$$);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.__preferredSizeChangeNotify", {$__preferredSizeChangeNotify$:$AdfDhtmlMenuPeer$$.prototype.$__preferredSizeChangeNotify$});
$AdfDhtmlMenuPeer$$.$_redetachMenu$ = function $$AdfDhtmlMenuPeer$$$$_redetachMenu$$() {
  var $component$$1581_peer$$129_reattachedMenuId$$ = $AdfDhtmlMenuPeer$$.$_reattachedMenuId$;
  if (null != $component$$1581_peer$$129_reattachedMenuId$$) {
    if (($component$$1581_peer$$129_reattachedMenuId$$ = $AdfPage$$.$PAGE$.$findComponent$($component$$1581_peer$$129_reattachedMenuId$$)) && ($component$$1581_peer$$129_reattachedMenuId$$ = $component$$1581_peer$$129_reattachedMenuId$$.$getPeer$()) && $component$$1581_peer$$129_reattachedMenuId$$ instanceof $AdfDhtmlMenuPeer$$ && $component$$1581_peer$$129_reattachedMenuId$$.$_detachableWindow$) {
      var $floatingElement$$14_pos$$25$$ = $component$$1581_peer$$129_reattachedMenuId$$.$_detachableWindow$.$getElement$();
      $floatingElement$$14_pos$$25$$.style.left = $component$$1581_peer$$129_reattachedMenuId$$.$_detachedMenuLeft$;
      $floatingElement$$14_pos$$25$$.style.top = $component$$1581_peer$$129_reattachedMenuId$$.$_detachedMenuTop$;
      var $floatingElement$$14_pos$$25$$ = {y:$component$$1581_peer$$129_reattachedMenuId$$.$_detachedMenuTop$, x:$component$$1581_peer$$129_reattachedMenuId$$.$_detachedMenuLeft$}, $menuPopup$$ = $JSCompiler_StaticMethods__getMenuPopup$$($component$$1581_peer$$129_reattachedMenuId$$);
      $menuPopup$$ && $menuPopup$$.$setAlignPosition$($floatingElement$$14_pos$$25$$);
      $JSCompiler_StaticMethods__makeDetached$$($component$$1581_peer$$129_reattachedMenuId$$);
    }
    $AdfDhtmlMenuPeer$$.$_reattachedMenuId$ = null;
  }
};
$AdfDhtmlMenuPeer$$.$_focusNextDetachedMenuKeyHandler$ = function $$AdfDhtmlMenuPeer$$$$_focusNextDetachedMenuKeyHandler$$() {
  if (!$AdfCollections$$.$isEmpty$($AdfDhtmlMenuPeer$$.$_sDetachedMenus$)) {
    var $nextClientId_numDetachedMenus$$, $index$$150_lastClientId_nextMenu$$ = $AdfDhtmlMenuPeer$$.$_lastSelectedDetachableMenuId$;
    null == $index$$150_lastClientId_nextMenu$$ ? $nextClientId_numDetachedMenus$$ = $AdfDhtmlMenuPeer$$.$_sDetachedMenus$[0] : ($nextClientId_numDetachedMenus$$ = $AdfDhtmlMenuPeer$$.$_sDetachedMenus$.length, 1 == $nextClientId_numDetachedMenus$$ ? $nextClientId_numDetachedMenus$$ = $AdfDhtmlMenuPeer$$.$_sDetachedMenus$[0] : ($index$$150_lastClientId_nextMenu$$ = $AdfCollections$$.indexOf($AdfDhtmlMenuPeer$$.$_sDetachedMenus$, $index$$150_lastClientId_nextMenu$$), $nextClientId_numDetachedMenus$$ = 
    $index$$150_lastClientId_nextMenu$$ >= $nextClientId_numDetachedMenus$$ - 1 ? $AdfDhtmlMenuPeer$$.$_sDetachedMenus$[0] : $AdfDhtmlMenuPeer$$.$_sDetachedMenus$[$index$$150_lastClientId_nextMenu$$ + 1]));
    if ($index$$150_lastClientId_nextMenu$$ = $AdfPage$$.$PAGE$.$findComponent$($nextClientId_numDetachedMenus$$)) {
      var $nextPeer$$ = $index$$150_lastClientId_nextMenu$$.$getPeer$();
      $nextPeer$$.bind($index$$150_lastClientId_nextMenu$$);
      null != $nextPeer$$.$_activeDescendant$ && $AdfFocusUtils$$.$isFocusableDescendant$($nextPeer$$.$_activeDescendant$) || $nextPeer$$.$resetActiveDescendant$();
      $AdfFocusUtils$$.$focusElement$($nextPeer$$.$_activeDescendant$);
      $AdfDhtmlMenuPeer$$.$_lastSelectedDetachableMenuId$ = $nextClientId_numDetachedMenus$$;
    } else {
      $AdfDhtmlMenuPeer$$.$_removeFromDetachedMenus$($nextClientId_numDetachedMenus$$), $AdfDhtmlMenuPeer$$.$_focusNextDetachedMenuKeyHandler$();
    }
  }
};
$AdfDhtmlMenuPeer$$.$_addToDetachedMenus$ = function $$AdfDhtmlMenuPeer$$$$_addToDetachedMenus$$($clientId$$273$$) {
  var $agent$$413$$ = $AdfAgent$$.$AGENT$;
  if ($AdfCollections$$.$isEmpty$($AdfDhtmlMenuPeer$$.$_sDetachedMenus$)) {
    if ($agent$$413$$.$getPlatform$() == $AdfAgent$$.$GECKO_PLATFORM$) {
      var $doc$$47$$ = $AdfPage$$.$PAGE$.$getDomDocument$();
      $agent$$413$$.$addBubbleEventListener$($doc$$47$$, "keypress", $AdfDhtmlMenuPeer$$.$_cancelKeyPress$);
    }
    $AdfPage$$.$PAGE$.$registerKeyStroke$($AdfDhtmlMenuPeer$$.$_focusDetachedMenuKeyStroke$, $AdfDhtmlMenuPeer$$.$_focusNextDetachedMenuKeyHandler$);
  }
  0 > $AdfCollections$$.indexOf($AdfDhtmlMenuPeer$$.$_sDetachedMenus$, $clientId$$273$$) && ($AdfDhtmlMenuPeer$$.$_lastSelectedDetachableMenuId$ = $clientId$$273$$, $AdfDhtmlMenuPeer$$.$_sDetachedMenus$.push($clientId$$273$$));
};
$AdfDhtmlMenuPeer$$.$_removeFromDetachedMenus$ = function $$AdfDhtmlMenuPeer$$$$_removeFromDetachedMenus$$($agent$$414_clientId$$274$$) {
  $AdfCollections$$.$removeArrayValue$($AdfDhtmlMenuPeer$$.$_sDetachedMenus$, $agent$$414_clientId$$274$$);
  var $allDetachableMenusClosed_doc$$48$$ = $AdfCollections$$.$isEmpty$($AdfDhtmlMenuPeer$$.$_sDetachedMenus$);
  if ($allDetachableMenusClosed_doc$$48$$ || $agent$$414_clientId$$274$$ == $AdfDhtmlMenuPeer$$.$_lastSelectedDetachableMenuId$) {
    $AdfDhtmlMenuPeer$$.$_lastSelectedDetachableMenuId$ = null;
  }
  $allDetachableMenusClosed_doc$$48$$ && ($AdfPage$$.$PAGE$.$unregisterKeyStroke$($AdfDhtmlMenuPeer$$.$_focusDetachedMenuKeyStroke$), $agent$$414_clientId$$274$$ = $AdfAgent$$.$AGENT$, $agent$$414_clientId$$274$$.$getPlatform$() == $AdfAgent$$.$GECKO_PLATFORM$ && ($allDetachableMenusClosed_doc$$48$$ = $AdfPage$$.$PAGE$.$getDomDocument$(), $agent$$414_clientId$$274$$.$removeBubbleEventListener$($allDetachableMenusClosed_doc$$48$$, "keypress", $AdfDhtmlMenuPeer$$.$_cancelKeyPress$)));
};
$AdfDhtmlMenuPeer$$.$_cancelKeyPress$ = function $$AdfDhtmlMenuPeer$$$$_cancelKeyPress$$($event$$229$$) {
  var $keyCode$$83$$ = $AdfAgent$$.$AGENT$.$getKeyCode$($event$$229$$);
  $event$$229$$.ctrlKey && $event$$229$$.shiftKey && $keyCode$$83$$ == $AdfKeyStroke$$.$W_KEY$ && $AdfAgent$$.$AGENT$.$eatEvent$($event$$229$$);
};
$AdfDhtmlMenuPeer$$.$_menuBarKeyHandler$ = function $$AdfDhtmlMenuPeer$$$$_menuBarKeyHandler$$() {
  $AdfDhtmlMenuPeer$$.$_focusMenuBar$();
};
$AdfDhtmlMenuPeer$$.$_addBarMenu$ = function $$AdfDhtmlMenuPeer$$$$_addBarMenu$$($clientId$$275$$) {
  var $barMenus$$ = $AdfDhtmlMenuPeer$$.$_sBarMenus$;
  0 == $barMenus$$.length && $AdfPage$$.$PAGE$.$registerKeyStroke$($AdfDhtmlMenuPeer$$.$_menuBarKeyStroke$, $AdfDhtmlMenuPeer$$.$_menuBarKeyHandler$);
  $barMenus$$.push($clientId$$275$$);
};
$AdfDhtmlMenuPeer$$.$_removeBarMenu$ = function $$AdfDhtmlMenuPeer$$$$_removeBarMenu$$($clientId$$276$$) {
  var $barMenus$$1$$ = $AdfDhtmlMenuPeer$$.$_sBarMenus$;
  $AdfCollections$$.$removeArrayValue$($barMenus$$1$$, $clientId$$276$$);
  0 == $barMenus$$1$$.length && $AdfPage$$.$PAGE$.$unregisterKeyStroke$($AdfDhtmlMenuPeer$$.$_menuBarKeyStroke$);
};
$AdfDhtmlMenuPeer$$.$_focusMenuBar$ = function $$AdfDhtmlMenuPeer$$$$_focusMenuBar$$() {
  var $JSCompiler_StaticMethods__getParentId$self$$inline_2412_barElement$$8_barMenus$$2_component$$1582$$ = $AdfDhtmlMenuPeer$$.$_sBarMenus$;
  $AdfAssert$$.assert(1 < $JSCompiler_StaticMethods__getParentId$self$$inline_2412_barElement$$8_barMenus$$2_component$$1582$$.length);
  var $JSCompiler_StaticMethods__getParentId$self$$inline_2412_barElement$$8_barMenus$$2_component$$1582$$ = $AdfPage$$.$PAGE$.$findComponent$($JSCompiler_StaticMethods__getParentId$self$$inline_2412_barElement$$8_barMenus$$2_component$$1582$$[0]), $el$$inline_2413_parent$$52$$ = $JSCompiler_StaticMethods__getParentId$self$$inline_2412_barElement$$8_barMenus$$2_component$$1582$$.getParent();
  $AdfAssert$$.assert(!($el$$inline_2413_parent$$52$$ instanceof AdfRichMenu));
  $JSCompiler_StaticMethods__getParentId$self$$inline_2412_barElement$$8_barMenus$$2_component$$1582$$ = $JSCompiler_StaticMethods__getParentId$self$$inline_2412_barElement$$8_barMenus$$2_component$$1582$$.$getPeer$();
  if (!$JSCompiler_StaticMethods__getParentId$self$$inline_2412_barElement$$8_barMenus$$2_component$$1582$$.$_parentId$) {
    $el$$inline_2413_parent$$52$$ = $JSCompiler_StaticMethods__getParentId$self$$inline_2412_barElement$$8_barMenus$$2_component$$1582$$.$getDomElement$().parentNode;
    do {
      var $id$$inline_2414$$ = $el$$inline_2413_parent$$52$$.getAttribute("id"), $el$$inline_2413_parent$$52$$ = $el$$inline_2413_parent$$52$$.parentNode
    } while (!$id$$inline_2414$$ && $el$$inline_2413_parent$$52$$);
    $id$$inline_2414$$ && ($JSCompiler_StaticMethods__getParentId$self$$inline_2412_barElement$$8_barMenus$$2_component$$1582$$.$_parentId$ = $id$$inline_2414$$);
  }
  $JSCompiler_StaticMethods__getParentId$self$$inline_2412_barElement$$8_barMenus$$2_component$$1582$$ = $AdfAgent$$.$AGENT$.getElementById($JSCompiler_StaticMethods__getParentId$self$$inline_2412_barElement$$8_barMenus$$2_component$$1582$$.$_parentId$);
  $AdfFocusUtils$$.$focusFirstTabStop$($JSCompiler_StaticMethods__getParentId$self$$inline_2412_barElement$$8_barMenus$$2_component$$1582$$);
};
$AdfDhtmlMenuPeer$$.$_handleMenuItemAccessKeys$ = function $$AdfDhtmlMenuPeer$$$$_handleMenuItemAccessKeys$$($containerElement$$5$$, $componentEvent$$331$$) {
  var $keyPressed$$1_keyStroke$$13$$ = $componentEvent$$331$$.$getKeyStroke$(), $menuItemElements_modifiers$$13$$ = $keyPressed$$1_keyStroke$$13$$.$getModifiers$();
  if (!($menuItemElements_modifiers$$13$$ & $AdfKeyStroke$$.$CTRL_MASK$ || $menuItemElements_modifiers$$13$$ & $AdfKeyStroke$$.$ALT_MASK$ || $menuItemElements_modifiers$$13$$ & $AdfKeyStroke$$.$META_MASK$)) {
    $menuItemElements_modifiers$$13$$ & $AdfKeyStroke$$.$SHIFT_MASK$ && ($menuItemElements_modifiers$$13$$ >>= $AdfKeyStroke$$.$SHIFT_MASK$, $keyPressed$$1_keyStroke$$13$$ = $AdfKeyStroke$$.$getKeyStroke$($keyPressed$$1_keyStroke$$13$$.$getKeyCode$(), $menuItemElements_modifiers$$13$$));
    for (var $keyPressed$$1_keyStroke$$13$$ = $keyPressed$$1_keyStroke$$13$$.$toMarshalledString$().toUpperCase(), $menuItemElements_modifiers$$13$$ = $containerElement$$5$$.getElementsByTagName("tr"), $numItems$$1$$ = $menuItemElements_modifiers$$13$$.length, $i$$388$$ = 0;$i$$388$$ < $numItems$$1$$;$i$$388$$++) {
      var $menuItem$$2$$ = $menuItemElements_modifiers$$13$$[$i$$388$$];
      if ($menuItem$$2$$ && 1 == $menuItem$$2$$.nodeType) {
        var $menuItemAccessKey$$ = $menuItem$$2$$.getAttribute("accessKey");
        if ($menuItemAccessKey$$ && $keyPressed$$1_keyStroke$$13$$ == $menuItemAccessKey$$.toUpperCase()) {
          $AdfFocusUtils$$.$focusElement$($menuItem$$2$$);
          $componentEvent$$331$$.cancel();
          break;
        }
      }
    }
  }
};
$AdfDhtmlMenuPeer$$.prototype.$_handleArrowKeys$ = function $$AdfDhtmlMenuPeer$$$$$_handleArrowKeys$$($keyCode$$84$$, $componentEvent$$332$$) {
  var $cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$ = $componentEvent$$332$$.$getNativeEvent$();
  if ($cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$.ctrlKey) {
    if (this.$isDetached$() || this.$_detachableWindow$ && $JSCompiler_StaticMethods__isMenuVisible$$(this)) {
      if ($cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$ = $AdfAgent$$.$AGENT$.$getPlatform$() == $AdfAgent$$.$IE_PLATFORM$ ? 187 == $keyCode$$84$$ : 61 == $keyCode$$84$$, $componentEvent$$332$$.$getNativeEvent$().altKey && $cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$) {
        $JSCompiler_StaticMethods__moveDetachable$$(this, 0, 0), $componentEvent$$332$$.cancel();
      } else {
        $cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$ = !0;
        switch($keyCode$$84$$) {
          case $AdfKeyStroke$$.$ARROWUP_KEY$:
            $JSCompiler_StaticMethods__moveDetachable$$(this, 0, -20);
            break;
          case $AdfKeyStroke$$.$ARROWDOWN_KEY$:
            $JSCompiler_StaticMethods__moveDetachable$$(this, 0, 20);
            break;
          case $AdfKeyStroke$$.$ARROWLEFT_KEY$:
            $JSCompiler_StaticMethods__moveDetachable$$(this, -20, 0);
            break;
          case $AdfKeyStroke$$.$ARROWRIGHT_KEY$:
            $JSCompiler_StaticMethods__moveDetachable$$(this, 20, 0);
            break;
          default:
            $cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$ = !1;
        }
        $cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$ && $componentEvent$$332$$.cancel();
      }
    }
  } else {
    if (!($cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$.altKey || $cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$.shiftKey || $cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$.metaKey) && 
    $componentEvent$$332$$.getSource() != this.$getComponent$()) {
      switch($cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$ = $componentEvent$$332$$.getSource().$getPeer$().$getDomElement$(), $keyCode$$84$$) {
        case $AdfKeyStroke$$.$ARROWUP_KEY$:
          $AdfAssert$$.$assertDomElement$(this.$_activeDescendant$);
          $AdfAssert$$.assert($cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$ == this.$_activeDescendant$);
          this.$_activeDescendant$ || ($AdfLogger$$.$LOGGER$.warning("Menu has lost its assigned activeDescendant!"), this.$resetActiveDescendant$());
          $cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$ = $AdfFocusUtils$$.$focusPreviousActiveDescendant$($JSCompiler_StaticMethods__getMenuElement$$(this), $cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$, 
          !0);
          $AdfAssert$$.$assertDomElement$($cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$);
          this.$_activeDescendant$ = $cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$;
          this.$updateScrollIconsState$();
          $componentEvent$$332$$.cancel();
          break;
        case $AdfKeyStroke$$.$ARROWDOWN_KEY$:
          $AdfAssert$$.$assertDomElement$(this.$_activeDescendant$);
          $AdfAssert$$.assert($cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$ == this.$_activeDescendant$);
          this.$_activeDescendant$ || ($AdfLogger$$.$LOGGER$.warning("Menu has lost its assigned activeDescendant!"), this.$resetActiveDescendant$());
          $cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$ = $AdfFocusUtils$$.$focusNextActiveDescendant$($JSCompiler_StaticMethods__getMenuElement$$(this), $cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$, 
          !0);
          $AdfAssert$$.$assertDomElement$($cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$);
          this.$_activeDescendant$ = $cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$;
          this.$updateScrollIconsState$();
          $componentEvent$$332$$.cancel();
          break;
        case $AdfKeyStroke$$.$ARROWLEFT_KEY$:
          $cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$ = this.$getComponent$();
          this.$isRootMenu$() ? (this.focus($cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$), this.close(!0, !0), $AdfMenuUtils$$.$MenuBarAutoOpenMode$ = !1) : this.$isDetached$() || this.$isContextMenu$() || (this.focus($cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$), 
          this.close(!0, !0));
          $componentEvent$$332$$.cancel();
          break;
        case $AdfKeyStroke$$.$ARROWRIGHT_KEY$:
          $cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$ = $componentEvent$$332$$.getSource(), $cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$ instanceof AdfRichMenu ? ($cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$.$getPeer$().show(null, 
          !0), $componentEvent$$332$$.cancel()) : this.$isDetached$() || this.$isContextMenu$() ? $componentEvent$$332$$.cancel() : this.$isRootMenu$() && ($cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$ = this.$getComponent$(), this.focus($cancelEvent$$inline_2420_component$$inline_2432_component$$inline_2437_eventComponent$$inline_2436_evt$$114_isEqualsKey$$inline_2419_nextItem$$inline_2428_previousItem$$inline_2424_rootElement$$90$$), 
          this.close(!0, !0), $AdfLogger$$.$LOGGER$.finest("menuBar auto open mode, set to OFF due to right arrow key pressed on root menu item"), $AdfMenuUtils$$.$setMenuBarAutoOpenMode$(!1), $componentEvent$$332$$.cancel());
      }
    }
  }
};
$AdfDhtmlMenuPeer$$.prototype.$_onHandleClick$ = function $$AdfDhtmlMenuPeer$$$$$_onHandleClick$$($event$$231$$) {
  $AdfAgent$$.$AGENT$.$eatEvent$($event$$231$$);
  $AdfDomUtils$$.$addCSSClassName$(this.$_handleElement$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$);
};
function $JSCompiler_StaticMethods__createMenuPopupHints$$($JSCompiler_StaticMethods__createMenuPopupHints$self$$, $baseHints$$, $focusOnFirstElement$$5_menuTitle$$) {
  var $hints$$84$$ = {}, $rootElement$$93$$ = $JSCompiler_StaticMethods__createMenuPopupHints$self$$.$getDomElement$(), $component$$1587$$ = $JSCompiler_StaticMethods__createMenuPopupHints$self$$.$getComponent$();
  $hints$$84$$.type = "menu";
  $hints$$84$$.autodismiss = "autodismissMenu";
  $hints$$84$$.alignElement = $rootElement$$93$$;
  $hints$$84$$.focus = $focusOnFirstElement$$5_menuTitle$$ ? !0 : !1;
  $focusOnFirstElement$$5_menuTitle$$ = $component$$1587$$.getText();
  null == $focusOnFirstElement$$5_menuTitle$$ && ($focusOnFirstElement$$5_menuTitle$$ = $component$$1587$$.getShortDesc());
  $hints$$84$$.title = $focusOnFirstElement$$5_menuTitle$$;
  $hints$$84$$.animate = AdfRichPopup.$ANIMATE_DEFAULT$;
  $hints$$84$$.closeOnEscape = !1;
  if (null == $baseHints$$ || null == $baseHints$$.mousePosition) {
    1 < $JSCompiler_StaticMethods__getDepth$$($JSCompiler_StaticMethods__createMenuPopupHints$self$$) || $AdfMenuUtils$$.$isInOverflow$($rootElement$$93$$) ? $hints$$84$$[AdfRichPopup.$HINT_ALIGN$] = AdfRichPopup.$ALIGN_END_BEFORE$ : $hints$$84$$[AdfRichPopup.$HINT_ALIGN$] = AdfRichPopup.$ALIGN_AFTER_START$;
  }
  $AdfCollections$$.$copyInto$($hints$$84$$, $baseHints$$);
  return $hints$$84$$;
}
$AdfDhtmlMenuPeer$$.prototype.$_showFetchingDataPopup$ = function $$AdfDhtmlMenuPeer$$$$$_showFetchingDataPopup$$() {
  var $agent$$416_fetchingMsgContainer_fetchingMsgElement$$ = $AdfAgent$$.$AGENT$, $component$$1588$$ = this.$getComponent$(), $fetchingMsgId_id$$304$$ = this.$getDomElement$().getAttribute("id"), $fetchingMsgId_id$$304$$ = $AdfRichUIPeer$$.$CreateSubId$($fetchingMsgId_id$$304$$, "lazy-fetch-message"), $agent$$416_fetchingMsgContainer_fetchingMsgElement$$ = $agent$$416_fetchingMsgContainer_fetchingMsgElement$$.getElementById($fetchingMsgId_id$$304$$), $agent$$416_fetchingMsgContainer_fetchingMsgElement$$ = 
  $AdfDomUtils$$.$getFirstChildElement$($agent$$416_fetchingMsgContainer_fetchingMsgElement$$), $hints$$85$$ = $JSCompiler_StaticMethods__createMenuPopupHints$$(this, null, !1);
  $hints$$85$$.type = "inlineSelector";
  $AdfDomUtils$$.setVisible($agent$$416_fetchingMsgContainer_fetchingMsgElement$$, !0);
  $AdfDhtmlMenuPeer$$.$superclass$.$showPopup$.call(this, $component$$1588$$, $agent$$416_fetchingMsgContainer_fetchingMsgElement$$, $hints$$85$$, $fetchingMsgId_id$$304$$);
};
function $JSCompiler_StaticMethods__reattachMenu$$($JSCompiler_StaticMethods__reattachMenu$self$$) {
  if ($JSCompiler_StaticMethods__reattachMenu$self$$.$isDetached$()) {
    var $clientId$$279_positionManager$$inline_2440_reattachPosition$$inline_2448_reattachXY$$ = $JSCompiler_StaticMethods__reattachMenu$self$$.$getComponent$().$getClientId$();
    $AdfDhtmlMenuPeer$$.$_reattachedMenuId$ = $clientId$$279_positionManager$$inline_2440_reattachPosition$$inline_2448_reattachXY$$;
    $AdfMenuUtils$$.$addOpenMenu$($clientId$$279_positionManager$$inline_2440_reattachPosition$$inline_2448_reattachXY$$);
    $AdfDhtmlMenuPeer$$.$_removeFromDetachedMenus$($clientId$$279_positionManager$$inline_2440_reattachPosition$$inline_2448_reattachXY$$);
    $JSCompiler_StaticMethods__showShadow$$($JSCompiler_StaticMethods__reattachMenu$self$$);
    var $clientId$$279_positionManager$$inline_2440_reattachPosition$$inline_2448_reattachXY$$ = $AdfPage$$.$PAGE$.$getPositionManager$(), $element$$inline_2449_menuPopup$$1_rootElement$$inline_2441$$ = $JSCompiler_StaticMethods__reattachMenu$self$$.$getDomElement$(), $menuElement$$inline_2442_width$$inline_2445$$ = $JSCompiler_StaticMethods__getMenuElement$$($JSCompiler_StaticMethods__reattachMenu$self$$), $alignmentHint$$inline_2443$$ = AdfRichPopup.$ALIGN_END_BEFORE$, $height$$inline_2444$$ = 
    $menuElement$$inline_2442_width$$inline_2445$$.clientHeight - 4, $menuElement$$inline_2442_width$$inline_2445$$ = $menuElement$$inline_2442_width$$inline_2445$$.clientWidth + $AdfDhtmlShadowDecorator$$.$getShadowSize$(), $clientId$$279_positionManager$$inline_2440_reattachPosition$$inline_2448_reattachXY$$ = $clientId$$279_positionManager$$inline_2440_reattachPosition$$inline_2448_reattachXY$$.$calculatePlacementPosition$($height$$inline_2444$$, $menuElement$$inline_2442_width$$inline_2445$$, 
    $alignmentHint$$inline_2443$$, $element$$inline_2449_menuPopup$$1_rootElement$$inline_2441$$, null);
    $JSCompiler_StaticMethods__reattachMenu$self$$.$_isDetached$ = !1;
    $AdfPage$$.$PAGE$.$isAnimationEnabled$() ? ($clientId$$279_positionManager$$inline_2440_reattachPosition$$inline_2448_reattachXY$$ = {left:$clientId$$279_positionManager$$inline_2440_reattachPosition$$inline_2448_reattachXY$$.x, top:$clientId$$279_positionManager$$inline_2440_reattachPosition$$inline_2448_reattachXY$$.y}, $AdfDomUtils$$.$removeCSSClassName$($JSCompiler_StaticMethods__getMenuElement$$($JSCompiler_StaticMethods__reattachMenu$self$$), $AdfMenuUtils$$.$DETACHED_STYLE_CLASS$), $element$$inline_2449_menuPopup$$1_rootElement$$inline_2441$$ = 
    $JSCompiler_StaticMethods__reattachMenu$self$$.$_detachableWindow$.$getElement$(), $AdfDhtmlElementAnimator$animate$$(3, 300, [{element:$element$$inline_2449_menuPopup$$1_rootElement$$inline_2441$$, $properties$:$clientId$$279_positionManager$$inline_2440_reattachPosition$$inline_2448_reattachXY$$}], null, $AdfDhtmlMenuPeer$$.$_animateReattachComplete$, [$JSCompiler_StaticMethods__reattachMenu$self$$, $clientId$$279_positionManager$$inline_2440_reattachPosition$$inline_2448_reattachXY$$.y, $clientId$$279_positionManager$$inline_2440_reattachPosition$$inline_2448_reattachXY$$.x])) : 
    ($JSCompiler_StaticMethods__moveShadow$$($JSCompiler_StaticMethods__reattachMenu$self$$), ($element$$inline_2449_menuPopup$$1_rootElement$$inline_2441$$ = $JSCompiler_StaticMethods__getMenuPopup$$($JSCompiler_StaticMethods__reattachMenu$self$$)) && $element$$inline_2449_menuPopup$$1_rootElement$$inline_2441$$.$setAlignPosition$($clientId$$279_positionManager$$inline_2440_reattachPosition$$inline_2448_reattachXY$$), $AdfDomUtils$$.$removeCSSClassName$($JSCompiler_StaticMethods__getMenuElement$$($JSCompiler_StaticMethods__reattachMenu$self$$), 
    $AdfMenuUtils$$.$DETACHED_STYLE_CLASS$));
  }
}
$AdfDhtmlMenuPeer$$.$_animateReattachComplete$ = function $$AdfDhtmlMenuPeer$$$$_animateReattachComplete$$($args$$184_left$$17$$) {
  var $menuPopup$$2_peer$$131$$ = $args$$184_left$$17$$[0], $pos$$26_top$$19$$ = $args$$184_left$$17$$[1];
  $args$$184_left$$17$$ = $args$$184_left$$17$$[2];
  $JSCompiler_StaticMethods__moveShadow$$($menuPopup$$2_peer$$131$$);
  $pos$$26_top$$19$$ = {y:$pos$$26_top$$19$$, x:$args$$184_left$$17$$};
  ($menuPopup$$2_peer$$131$$ = $JSCompiler_StaticMethods__getMenuPopup$$($menuPopup$$2_peer$$131$$)) && $menuPopup$$2_peer$$131$$.$setAlignPosition$($pos$$26_top$$19$$);
};
function $JSCompiler_StaticMethods__contains$$($JSCompiler_StaticMethods__contains$self$$, $element$$252$$) {
  var $domElement$$340_insideElement$$ = $JSCompiler_StaticMethods__contains$self$$.$getDomElement$(), $domElement$$340_insideElement$$ = $AdfDomUtils$$.$isAncestorOrSelf$($domElement$$340_insideElement$$, $element$$252$$);
  if ("noContent" == $JSCompiler_StaticMethods__contains$self$$.$_getLazyState$()) {
    return $domElement$$340_insideElement$$;
  }
  var $insidePopup$$ = $AdfDomUtils$$.$isAncestor$($JSCompiler_StaticMethods__getMenuElement$$($JSCompiler_StaticMethods__contains$self$$), $element$$252$$);
  return $domElement$$340_insideElement$$ || $insidePopup$$;
}
function $JSCompiler_StaticMethods__getDepth$$($JSCompiler_StaticMethods__getDepth$self$$) {
  if (!$JSCompiler_StaticMethods__getDepth$self$$.$_depth$) {
    var $rootElement$$97$$ = $JSCompiler_StaticMethods__getDepth$self$$.$getDomElement$();
    $JSCompiler_StaticMethods__getDepth$self$$.$_depth$ = parseInt($rootElement$$97$$.getAttribute($AdfMenuUtils$$.$MENU_DEPTH_KEY$));
  }
  return $JSCompiler_StaticMethods__getDepth$self$$.$_depth$;
}
$JSCompiler_prototypeAlias$$ = $AdfDhtmlMenuPeer$$.prototype;
$JSCompiler_prototypeAlias$$.$_isDisabled$ = function $$JSCompiler_prototypeAlias$$$$_isDisabled$$() {
  var $rootElement$$98$$ = this.$getDomElement$();
  return $rootElement$$98$$.disabled || $AdfDomUtils$$.$containsCSSClassName$($rootElement$$98$$, $AdfRichUIPeer$$.$DISABLED_STYLECLASS$);
};
function $JSCompiler_StaticMethods__handleHideRequest$$($JSCompiler_StaticMethods__handleHideRequest$self$$, $clientId$$280$$) {
  $AdfAssert$$.assert(!$JSCompiler_StaticMethods__handleHideRequest$self$$.$isDetached$(), "this method is not intended for detached menus");
  if ($JSCompiler_StaticMethods__handleHideRequest$self$$.$isRootMenu$()) {
    var $domElement$$341$$ = $JSCompiler_StaticMethods__handleHideRequest$self$$.$getDomElement$();
    $AdfDomUtils$$.$removeCSSClassName$($domElement$$341$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$);
    $AdfDomUtils$$.$removeCSSClassName$($domElement$$341$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$);
  }
  $AdfDhtmlMenuPeer$$.$_popupPeerWaitingForShow$ && $JSCompiler_StaticMethods__contains$$($JSCompiler_StaticMethods__handleHideRequest$self$$, $AdfDhtmlMenuPeer$$.$_popupPeerWaitingForShow$.$getDomElement$()) && $AdfDhtmlMenuPeer$$.$cancelShowing$();
  $JSCompiler_StaticMethods__handleHideRequest$self$$.$_scrollBoxElement$ && ($JSCompiler_StaticMethods__handleHideRequest$self$$.$_scrollBoxElement$.scrollTop = 0);
  $AdfMenuUtils$$.$removeOpenMenu$($clientId$$280$$);
}
$JSCompiler_prototypeAlias$$.$_dragStart$ = function $$JSCompiler_prototypeAlias$$$$_dragStart$$() {
  this.$_deselectElement$();
  $JSCompiler_StaticMethods__showShadow$$(this);
  var $clientId$$281_floatingElement$$15_rootElement$$99$$ = this.$getDomElement$();
  $AdfMenuUtils$$.$dismiss$($clientId$$281_floatingElement$$15_rootElement$$99$$, !0);
  $clientId$$281_floatingElement$$15_rootElement$$99$$ = this.$_detachableWindow$.$getElement$();
  this.$_detachedMenuLeft$ = $clientId$$281_floatingElement$$15_rootElement$$99$$.style.left;
  this.$_detachedMenuTop$ = $clientId$$281_floatingElement$$15_rootElement$$99$$.style.top;
  $clientId$$281_floatingElement$$15_rootElement$$99$$ = this.$getComponent$().$getClientId$();
  $AdfMenuUtils$$.$removeOpenMenu$($clientId$$281_floatingElement$$15_rootElement$$99$$);
  $AdfDhtmlMenuPeer$$.$_addToDetachedMenus$($clientId$$281_floatingElement$$15_rootElement$$99$$);
  $AdfLogger$$.$LOGGER$.finest("menuBar auto open mode, set to OFF due to menu first becoming detached");
  $AdfMenuUtils$$.$setMenuBarAutoOpenMode$(!1);
};
$JSCompiler_prototypeAlias$$.$_dragEnd$ = function $$JSCompiler_prototypeAlias$$$$_dragEnd$$() {
  var $menuPopup$$3$$ = $JSCompiler_StaticMethods__getMenuPopup$$(this);
  $AdfAssert$$.assert(null != $menuPopup$$3$$, "menuPopup should not disappear during a drag.");
  if ($menuPopup$$3$$) {
    $menuPopup$$3$$.$setAlignElement$(null);
    var $pos$$27$$ = {y:$menuPopup$$3$$.$getTop$(), x:$menuPopup$$3$$.$getLeft$()};
    $menuPopup$$3$$.$setAlignPosition$($pos$$27$$);
    $JSCompiler_StaticMethods__makeDetached$$(this);
    $JSCompiler_StaticMethods__moveShadow$$(this);
    $menuPopup$$3$$.$activate$();
    $AdfMenuUtils$$.$closeAllMenus$();
  }
};
function $JSCompiler_StaticMethods__delayPopupHiding$$($JSCompiler_StaticMethods__delayPopupHiding$self$$, $deltaTimeout$$) {
  $JSCompiler_StaticMethods__delayPopupHiding$self$$.$_popupHidingHandle$ && $JSCompiler_StaticMethods__cancelHiding$$($JSCompiler_StaticMethods__delayPopupHiding$self$$);
  $JSCompiler_StaticMethods__delayPopupHiding$self$$.$_popupHidingHandle$ = $AdfPage$$.$PAGE$.$getDomWindow$().setTimeout($JSCompiler_StaticMethods__delayPopupHiding$self$$.$createCallback$($JSCompiler_StaticMethods__delayPopupHiding$self$$.$_delayPopupHidingCallback$), $AdfDhtmlMenuPeer$$.$_OPEN_CLOSE_DELAY$ - $deltaTimeout$$);
}
$JSCompiler_prototypeAlias$$.$_delayPopupHidingCallback$ = function $$JSCompiler_prototypeAlias$$$$_delayPopupHidingCallback$$() {
  var $component$$1593$$ = this.$getComponent$();
  $component$$1593$$ && this.$isPopupVisible$($component$$1593$$, $component$$1593$$.$getClientId$()) && this.$hidePopup$();
};
$JSCompiler_prototypeAlias$$.$_delayShowCallback$ = function $$JSCompiler_prototypeAlias$$$$_delayShowCallback$$() {
  var $component$$1594$$ = this.$getComponent$();
  this.$isPopupVisible$($component$$1594$$, $component$$1594$$.$getClientId$()) ? $JSCompiler_StaticMethods__reattachMenu$$(this) : (delete $AdfDhtmlMenuPeer$$.$_popupPeerWaitingForShow$, delete $AdfDhtmlMenuPeer$$.$_popupShowingHandle$, this.show(null, !1));
};
function $JSCompiler_StaticMethods__cancelHiding$$($JSCompiler_StaticMethods__cancelHiding$self$$) {
  if ($JSCompiler_StaticMethods__cancelHiding$self$$.$_popupHidingHandle$) {
    window.clearTimeout($JSCompiler_StaticMethods__cancelHiding$self$$.$_popupHidingHandle$);
    delete $JSCompiler_StaticMethods__cancelHiding$self$$.$_popupHidingHandle$;
    var $waitingForShow$$ = $AdfDhtmlMenuPeer$$.$_popupPeerWaitingForShow$;
    $waitingForShow$$ && $JSCompiler_StaticMethods__getDepth$$($waitingForShow$$) <= $JSCompiler_StaticMethods__getDepth$$($JSCompiler_StaticMethods__cancelHiding$self$$) && $AdfDhtmlMenuPeer$$.$cancelShowing$();
  }
}
$JSCompiler_prototypeAlias$$.$__makeDetached$ = function $$JSCompiler_prototypeAlias$$$$__makeDetached$$() {
  $JSCompiler_StaticMethods__makeDetached$$(this);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.__makeDetached", {$__makeDetached$:$AdfDhtmlMenuPeer$$.prototype.$__makeDetached$});
function $JSCompiler_StaticMethods__makeDetached$$($JSCompiler_StaticMethods__makeDetached$self$$) {
  $AdfDomUtils$$.$removeCSSClassName$($JSCompiler_StaticMethods__makeDetached$self$$.$_handleElement$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$);
  var $floatingElement$$16$$ = $JSCompiler_StaticMethods__makeDetached$self$$.$_detachableWindow$.$getElement$();
  $JSCompiler_StaticMethods__makeDetached$self$$.$_isDetached$ = !0;
  $JSCompiler_StaticMethods__makeDetached$self$$.$_detachedMenuLeft$ = $floatingElement$$16$$.style.left;
  $JSCompiler_StaticMethods__makeDetached$self$$.$_detachedMenuTop$ = $floatingElement$$16$$.style.top;
  $AdfDomUtils$$.$addCSSClassName$($JSCompiler_StaticMethods__getMenuElement$$($JSCompiler_StaticMethods__makeDetached$self$$), $AdfMenuUtils$$.$DETACHED_STYLE_CLASS$);
  $AdfMenuUtils$$.$dismiss$($JSCompiler_StaticMethods__makeDetached$self$$.$getDomElement$().parentNode, !0, !0);
  $JSCompiler_StaticMethods__getMenuPopup$$($JSCompiler_StaticMethods__makeDetached$self$$).$autoSize$();
}
$AdfDhtmlMenuPeer$$.prototype.$_deselectElement$ = function $$AdfDhtmlMenuPeer$$$$$_deselectElement$$() {
  var $rootElement$$100$$ = this.$getDomElement$();
  $AdfDomUtils$$.$removeCSSClassName$($rootElement$$100$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$);
  $AdfDomUtils$$.$removeCSSClassName$($rootElement$$100$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$);
};
$AdfDhtmlMenuPeer$$.prototype.$_closeDetachedMenu$ = function $$AdfDhtmlMenuPeer$$$$$_closeDetachedMenu$$() {
  var $component$$1595$$ = this.$getComponent$(), $clientId$$282$$ = $component$$1595$$.$getClientId$();
  $AdfDomUtils$$.$removeCSSClassName$($JSCompiler_StaticMethods__getMenuElement$$(this), $AdfMenuUtils$$.$DETACHED_STYLE_CLASS$);
  this.$_isDetached$ = !1;
  var $rootElement$$101$$ = this.$getDomElement$();
  $AdfDomUtils$$.$removeCSSClassName$($rootElement$$101$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$);
  $AdfDhtmlMenuPeer$$.$_removeFromDetachedMenus$($clientId$$282$$);
  this.$_detachableWindow$ && this.$_detachableWindow$.$destroy$();
  delete this.$_detachableWindow$;
  $clientId$$282$$ == $AdfDhtmlMenuPeer$$.$_reattachedMenuId$ && ($AdfDhtmlMenuPeer$$.$_reattachedMenuId$ = null);
  $AdfDhtmlMenuPeer$$.$superclass$.$hidePopup$.call(this, $component$$1595$$, $clientId$$282$$);
  $AdfMenuUtils$$.$closeAllMenus$();
  $AdfMenuUtils$$.$restoreFocusToLastOpenedRootMenu$();
};
function $JSCompiler_StaticMethods__moveDetachable$$($JSCompiler_StaticMethods__moveDetachable$self$$, $x$$69$$, $y$$50$$) {
  $JSCompiler_StaticMethods__moveDetachable$self$$.$_dragStart$();
  var $floatingElement$$17$$ = $JSCompiler_StaticMethods__moveDetachable$self$$.$_detachableWindow$.$getElement$();
  $floatingElement$$17$$.style.left = $floatingElement$$17$$.offsetLeft + $x$$69$$ + "px";
  $floatingElement$$17$$.style.top = $floatingElement$$17$$.offsetTop + $y$$50$$ + "px";
  $JSCompiler_StaticMethods__moveDetachable$self$$.$_dragEnd$();
}
function $JSCompiler_StaticMethods__getShadowAnchor$$($JSCompiler_StaticMethods__getShadowAnchor$self_menuPopup$$4$$) {
  $JSCompiler_StaticMethods__getShadowAnchor$self_menuPopup$$4$$ = $JSCompiler_StaticMethods__getMenuPopup$$($JSCompiler_StaticMethods__getShadowAnchor$self_menuPopup$$4$$);
  if (null != $JSCompiler_StaticMethods__getShadowAnchor$self_menuPopup$$4$$ && null != $JSCompiler_StaticMethods__getShadowAnchor$self_menuPopup$$4$$.$getShadowAnchor$()) {
    return $JSCompiler_StaticMethods__getShadowAnchor$self_menuPopup$$4$$.$getShadowAnchor$();
  }
}
function $JSCompiler_StaticMethods__showShadow$$($JSCompiler_StaticMethods__showShadow$self_shadowAnchor$$3$$) {
  $JSCompiler_StaticMethods__showShadow$self_shadowAnchor$$3$$ = $JSCompiler_StaticMethods__getShadowAnchor$$($JSCompiler_StaticMethods__showShadow$self_shadowAnchor$$3$$);
  $AdfDhtmlShadowDecorator$$.$hasShadowDecorator$($JSCompiler_StaticMethods__showShadow$self_shadowAnchor$$3$$) && $AdfDhtmlShadowDecorator$$.$showShadowDecorator$($JSCompiler_StaticMethods__showShadow$self_shadowAnchor$$3$$, !1);
}
function $JSCompiler_StaticMethods__moveShadow$$($JSCompiler_StaticMethods__moveShadow$self_shadowAnchor$$4$$) {
  $JSCompiler_StaticMethods__moveShadow$self_shadowAnchor$$4$$ = $JSCompiler_StaticMethods__getShadowAnchor$$($JSCompiler_StaticMethods__moveShadow$self_shadowAnchor$$4$$);
  null != $JSCompiler_StaticMethods__moveShadow$self_shadowAnchor$$4$$ && $AdfDhtmlShadowDecorator$$.$hasShadowDecorator$($JSCompiler_StaticMethods__moveShadow$self_shadowAnchor$$4$$) && ($AdfDhtmlShadowDecorator$$.$moveShadowDecorator$($JSCompiler_StaticMethods__moveShadow$self_shadowAnchor$$4$$), $AdfDhtmlShadowDecorator$$.$showShadowDecorator$($JSCompiler_StaticMethods__moveShadow$self_shadowAnchor$$4$$, !0));
}
$AdfDhtmlMenuPeer$$.prototype.$__startScroll$ = function $$AdfDhtmlMenuPeer$$$$$__startScroll$$($isScrollDown$$, $isTimerSkipped$$) {
  $JSCompiler_StaticMethods__startScroll$$(this, $isScrollDown$$, $isTimerSkipped$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.__startScroll", {$__startScroll$:$AdfDhtmlMenuPeer$$.prototype.$__startScroll$});
function $JSCompiler_StaticMethods__startScroll$$($JSCompiler_StaticMethods__startScroll$self$$, $isScrollDown$$1_scrollStub$$, $isTimerSkipped$$1$$) {
  $JSCompiler_StaticMethods__startScroll$self$$.$_scrollDelta$ = $AdfDhtmlMenuPeer$$.$_SCROLL_DELTA$;
  $isTimerSkipped$$1$$ && ($JSCompiler_StaticMethods__startScroll$self$$.$_scrollDelta$ = $AdfDhtmlMenuPeer$$.$_JUMP_SCROLL_DELTA$);
  $isScrollDown$$1_scrollStub$$ || ($JSCompiler_StaticMethods__startScroll$self$$.$_scrollDelta$ *= -1);
  $isTimerSkipped$$1$$ ? $JSCompiler_StaticMethods__startScroll$self$$.$_scroll$() : ($isScrollDown$$1_scrollStub$$ = $JSCompiler_StaticMethods__startScroll$self$$.$createCallback$($JSCompiler_StaticMethods__startScroll$self$$.$_scroll$), $JSCompiler_StaticMethods__startScroll$self$$.$_scrollTimer$ = setInterval($isScrollDown$$1_scrollStub$$, 10));
}
function $JSCompiler_StaticMethods__endScroll$$($JSCompiler_StaticMethods__endScroll$self$$) {
  $JSCompiler_StaticMethods__endScroll$self$$.$_scrollTimer$ && clearInterval($JSCompiler_StaticMethods__endScroll$self$$.$_scrollTimer$);
  $JSCompiler_StaticMethods__endScroll$self$$.$_scrollTimer$ = null;
  var $currentScrollSpot$$ = $JSCompiler_StaticMethods__endScroll$self$$.$_scrollBoxElement$.scrollTop, $menuItems$$3$$ = $JSCompiler_StaticMethods__endScroll$self$$.$_scrollContentElement$.rows, $menuItemOffsetTop_n$$10$$ = $menuItems$$3$$.length;
  if (0 > $JSCompiler_StaticMethods__endScroll$self$$.$_scrollDelta$) {
    for (var $i$$389$$ = $menuItemOffsetTop_n$$10$$ - 1;-1 < $i$$389$$;$i$$389$$--) {
      var $menuItem$$4_menuItemOffsetBottom$$ = $menuItems$$3$$[$i$$389$$];
      if ("none" != $menuItem$$4_menuItemOffsetBottom$$.style.display && ($menuItemOffsetTop_n$$10$$ = $menuItem$$4_menuItemOffsetBottom$$.offsetTop, $currentScrollSpot$$ >= $menuItemOffsetTop_n$$10$$)) {
        $JSCompiler_StaticMethods__endScroll$self$$.$_scrollBoxElement$.scrollTop = $menuItemOffsetTop_n$$10$$;
        break;
      }
    }
  } else {
    for (var $scrollBottom$$ = $currentScrollSpot$$ + $JSCompiler_StaticMethods__endScroll$self$$.$_scrollBoxElement$.offsetHeight, $i$$389$$ = 0;$i$$389$$ < $menuItemOffsetTop_n$$10$$;$i$$389$$++) {
      if ($menuItem$$4_menuItemOffsetBottom$$ = $menuItems$$3$$[$i$$389$$], "none" != $menuItem$$4_menuItemOffsetBottom$$.style.display && ($menuItem$$4_menuItemOffsetBottom$$ = $menuItem$$4_menuItemOffsetBottom$$.offsetTop + $menuItem$$4_menuItemOffsetBottom$$.offsetHeight, $scrollBottom$$ <= $menuItem$$4_menuItemOffsetBottom$$)) {
        $JSCompiler_StaticMethods__endScroll$self$$.$_scrollBoxElement$.scrollTop = $currentScrollSpot$$ + ($menuItem$$4_menuItemOffsetBottom$$ - $scrollBottom$$);
        break;
      }
    }
  }
}
$AdfDhtmlMenuPeer$$.prototype.$_scroll$ = function $$AdfDhtmlMenuPeer$$$$$_scroll$$() {
  this.$_scrollBoxElement$.scrollTop += this.$_scrollDelta$;
  var $scrollOffset$$ = this.$_scrollBoxElement$.scrollTop, $maxScrollOffset$$ = this.$_scrollContentElement$.offsetHeight - this.$_scrollBoxElement$.offsetHeight;
  (0 >= $scrollOffset$$ || $scrollOffset$$ >= $maxScrollOffset$$) && $JSCompiler_StaticMethods__endScroll$$(this);
  this.$updateScrollIconsState$();
};
function $JSCompiler_StaticMethods__getMenuElement$$($JSCompiler_StaticMethods__getMenuElement$self$$) {
  if (null == $JSCompiler_StaticMethods__getMenuElement$self$$.$_menuElement$) {
    var $id$$307_menuId$$1$$ = $JSCompiler_StaticMethods__getMenuElement$self$$.$getDomElement$().getAttribute("id"), $id$$307_menuId$$1$$ = $AdfRichUIPeer$$.$CreateSubId$($id$$307_menuId$$1$$, "menu");
    $JSCompiler_StaticMethods__getMenuElement$self$$.$_menuElement$ = $AdfAgent$$.$AGENT$.getElementById($id$$307_menuId$$1$$);
  }
  return $JSCompiler_StaticMethods__getMenuElement$self$$.$_menuElement$;
}
function $JSCompiler_StaticMethods__getMenuPopup$$($JSCompiler_StaticMethods__getMenuPopup$self$$) {
  var $component$$1596$$ = $JSCompiler_StaticMethods__getMenuPopup$self$$.$getComponent$(), $clientId$$283$$ = $component$$1596$$.$getClientId$();
  return $JSCompiler_StaticMethods__getMenuPopup$self$$.$getPopupWindow$($component$$1596$$, $clientId$$283$$);
}
function $JSCompiler_StaticMethods__isMenuVisible$$($JSCompiler_StaticMethods__isMenuVisible$self$$) {
  return $JSCompiler_StaticMethods__getMenuPopup$$($JSCompiler_StaticMethods__isMenuVisible$self$$) ? !0 : !1;
}
$AdfDhtmlMenuPeer$$.prototype.$isContentLoaded$ = function $$AdfDhtmlMenuPeer$$$$$isContentLoaded$$() {
  return null != this.$_lazyState$ && "contentLoaded" == this.$_lazyState$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.isContentLoaded", {$isContentLoaded$:$AdfDhtmlMenuPeer$$.prototype.$isContentLoaded$});
$AdfDhtmlMenuPeer$$.prototype.$_getLazyState$ = function $$AdfDhtmlMenuPeer$$$$$_getLazyState$$() {
  null == this.$_lazyState$ && (this.$_lazyState$ = null == $JSCompiler_StaticMethods__getMenuElement$$(this) ? "noContent" : "contentLoaded");
  return this.$_lazyState$;
};
$AdfDhtmlMenuPeer$$.prototype.$_setLazyState$ = function $$AdfDhtmlMenuPeer$$$$$_setLazyState$$($newState$$) {
  this.$_lazyState$ = $newState$$;
};
$AdfDhtmlMenuPeer$$.prototype.$_updateActiveDescendant$ = function $$AdfDhtmlMenuPeer$$$$$_updateActiveDescendant$$($newActiveDescendant$$1$$) {
  $AdfAssert$$.$assertDomElement$($newActiveDescendant$$1$$);
  this.$_activeDescendant$ && this.$_activeDescendant$.setAttribute("tabIndex", "-1");
  $newActiveDescendant$$1$$.setAttribute("tabIndex", "0");
  this.$_activeDescendant$ = $newActiveDescendant$$1$$;
};
$AdfDhtmlMenuPeer$$.prototype.$SimulateMouseOnDescendant$ = function $$AdfDhtmlMenuPeer$$$$$SimulateMouseOnDescendant$$($targetComponent$$7$$, $domElement$$342$$, $mouseEvent$$8$$) {
  $AdfDhtmlMenuPeer$$.$superclass$.$SimulateMouseOnDescendant$.call(this, $targetComponent$$7$$, $domElement$$342$$, $mouseEvent$$8$$);
  this.$isContextMenu$() || $JSCompiler_StaticMethods__isMenuVisible$$(this) || this.show(null, !1);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.SimulateMouseOnDescendant", {$SimulateMouseOnDescendant$:$AdfDhtmlMenuPeer$$.prototype.$SimulateMouseOnDescendant$});
$AdfDhtmlMenuPeer$$.prototype.$_mouseWheel$ = function $$AdfDhtmlMenuPeer$$$$$_mouseWheel$$($event$$233$$) {
  $AdfAgent$$.$AGENT$.$eatEvent$($event$$233$$);
  this.$_scrollBoxElement$.scrollTop += $event$$233$$.deltaY;
  this.$updateScrollIconsState$();
};
$AdfDhtmlMenuPeer$$.prototype.$_handlePanning$ = function $$AdfDhtmlMenuPeer$$$$$_handlePanning$$($event$$234$$) {
  this.$_scrollBoxElement$.scrollTop += -1 * $event$$234$$.deltaY;
  this.$updateScrollIconsState$();
};
