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$$1562_lookAndFeel$$8_skinVisibileItems$$) {
  $component$$1562_lookAndFeel$$8_skinVisibileItems$$.getParent();
  $AdfDhtmlMenuPeer$$.$superclass$.Init.call(this, $component$$1562_lookAndFeel$$8_skinVisibileItems$$);
  $component$$1562_lookAndFeel$$8_skinVisibileItems$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$();
  $component$$1562_lookAndFeel$$8_skinVisibileItems$$ = parseInt($component$$1562_lookAndFeel$$8_skinVisibileItems$$.$getSkinProperty$("af|menu-tr-visible-items"));
  this.$_maxDisplayItems$ = isNaN($component$$1562_lookAndFeel$$8_skinVisibileItems$$) ? 14 : $component$$1562_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$$1563$$, $domElement$$336$$) {
  if ("1" == $domElement$$336$$.getAttribute($AdfMenuUtils$$.$MENU_DEPTH_KEY$)) {
    var $clientId$$266$$ = $component$$1563$$.$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_2383_component$$1564_options$$inline_2396$$ = this.$getComponent$(), $agent$$405_callbacks$$inline_2395_clientId$$267_scrollBoxSubId$$inline_2394$$ = $agent$$inline_2383_component$$1564_options$$inline_2396$$.$getClientId$();
  $AdfDomUtils$$.$addCSSClassName$($menuElement_params$$38_popupFocusHint_rootElement$$80$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$);
  !this.$isContextMenu$() && this.$isRootMenu$() && $AdfMenuUtils$$.$setLastOpenedRootMenuId$($agent$$405_callbacks$$inline_2395_clientId$$267_scrollBoxSubId$$inline_2394$$);
  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_2383_component$$1564_options$$inline_2396$$, $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_2383_component$$1564_options$$inline_2396$$.$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_2395_clientId$$267_scrollBoxSubId$$inline_2394$$ = $AdfAgent$$.$AGENT$, $agent$$405_callbacks$$inline_2395_clientId$$267_scrollBoxSubId$$inline_2394$$.$getDomWindow$().$AdfSafariMobileAgent$ && $agent$$405_callbacks$$inline_2395_clientId$$267_scrollBoxSubId$$inline_2394$$ instanceof $AdfSafariMobileAgent$$ ? $AdfFocusUtils$$.$focusPreviousTabStop$($menuElement_params$$38_popupFocusHint_rootElement$$80$$) : $focusOnFirstElement$$4$$ && $AdfFocusUtils$$.$focusElement$(this.$_activeDescendant$)
        ;
      } else {
        this.$resetActiveDescendant$();
        var $closeSubId$$inline_2384_handleSubId$$inline_2385_hints$$82_scrollContentSubId$$inline_2386_visibleItems$$inline_2388$$ = $JSCompiler_StaticMethods__createMenuPopupHints$$(this, $popupHints$$2$$, $focusOnFirstElement$$4$$);
        $menuElement_params$$38_popupFocusHint_rootElement$$80$$.style.display = "block";
        var $elemsInitialized_menuItems$$inline_2387_scrollDownBackgroundSubId$$inline_2393_scrollDownSubId$$inline_2392_scrollUpBackgroundSubId$$inline_2391_scrollUpSubId$$inline_2390$$ = this.$_elemsInitialized$;
        $elemsInitialized_menuItems$$inline_2387_scrollDownBackgroundSubId$$inline_2393_scrollDownSubId$$inline_2392_scrollUpBackgroundSubId$$inline_2391_scrollUpSubId$$inline_2390$$ || ($menuElement_params$$38_popupFocusHint_rootElement$$80$$.style.visibility = "hidden");
        this.$showPopup$($agent$$inline_2383_component$$1564_options$$inline_2396$$, $menuElement_params$$38_popupFocusHint_rootElement$$80$$, $closeSubId$$inline_2384_handleSubId$$inline_2385_hints$$82_scrollContentSubId$$inline_2386_visibleItems$$inline_2388$$, $agent$$405_callbacks$$inline_2395_clientId$$267_scrollBoxSubId$$inline_2394$$);
        if (!$elemsInitialized_menuItems$$inline_2387_scrollDownBackgroundSubId$$inline_2393_scrollDownSubId$$inline_2392_scrollUpBackgroundSubId$$inline_2391_scrollUpSubId$$inline_2390$$) {
          $agent$$inline_2383_component$$1564_options$$inline_2396$$ = $AdfAgent$$.$AGENT$;
          this.$getComponent$().getDetachable() && ($closeSubId$$inline_2384_handleSubId$$inline_2385_hints$$82_scrollContentSubId$$inline_2386_visibleItems$$inline_2388$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$405_callbacks$$inline_2395_clientId$$267_scrollBoxSubId$$inline_2394$$, "close"), this.$_closeElement$ = $agent$$inline_2383_component$$1564_options$$inline_2396$$.getElementById($closeSubId$$inline_2384_handleSubId$$inline_2385_hints$$82_scrollContentSubId$$inline_2386_visibleItems$$inline_2388$$), 
          this.$_closeDetachedMenuCallback$ = this.$createCallback$(this.$_closeDetachedMenu$), $agent$$inline_2383_component$$1564_options$$inline_2396$$.$addBubbleEventListener$(this.$_closeElement$, "click", this.$_closeDetachedMenuCallback$), $closeSubId$$inline_2384_handleSubId$$inline_2385_hints$$82_scrollContentSubId$$inline_2386_visibleItems$$inline_2388$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$405_callbacks$$inline_2395_clientId$$267_scrollBoxSubId$$inline_2394$$, "handle"), this.$_handleElement$ = 
          $agent$$inline_2383_component$$1564_options$$inline_2396$$.getElementById($closeSubId$$inline_2384_handleSubId$$inline_2385_hints$$82_scrollContentSubId$$inline_2386_visibleItems$$inline_2388$$), this.$_stopCallback$ = this.$createCallback$(this.$_onHandleClick$), $agent$$inline_2383_component$$1564_options$$inline_2396$$.$addBubbleEventListener$(this.$_handleElement$, "mousedown", this.$_stopCallback$));
          $closeSubId$$inline_2384_handleSubId$$inline_2385_hints$$82_scrollContentSubId$$inline_2386_visibleItems$$inline_2388$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$405_callbacks$$inline_2395_clientId$$267_scrollBoxSubId$$inline_2394$$, "ScrollContent");
          this.$_scrollContentElement$ = $agent$$inline_2383_component$$1564_options$$inline_2396$$.getElementById($closeSubId$$inline_2384_handleSubId$$inline_2385_hints$$82_scrollContentSubId$$inline_2386_visibleItems$$inline_2388$$);
          $elemsInitialized_menuItems$$inline_2387_scrollDownBackgroundSubId$$inline_2393_scrollDownSubId$$inline_2392_scrollUpBackgroundSubId$$inline_2391_scrollUpSubId$$inline_2390$$ = this.$_scrollContentElement$.rows;
          if ($elemsInitialized_menuItems$$inline_2387_scrollDownBackgroundSubId$$inline_2393_scrollDownSubId$$inline_2392_scrollUpBackgroundSubId$$inline_2391_scrollUpSubId$$inline_2390$$.length < this.$_maxDisplayItems$) {
            this.$_areScrollButtonsDisplayed$ = !1;
          } else {
            $closeSubId$$inline_2384_handleSubId$$inline_2385_hints$$82_scrollContentSubId$$inline_2386_visibleItems$$inline_2388$$ = [];
            for (i = 0;i < $elemsInitialized_menuItems$$inline_2387_scrollDownBackgroundSubId$$inline_2393_scrollDownSubId$$inline_2392_scrollUpBackgroundSubId$$inline_2391_scrollUpSubId$$inline_2390$$.length;i++) {
              var $menuItem$$inline_2389$$ = $elemsInitialized_menuItems$$inline_2387_scrollDownBackgroundSubId$$inline_2393_scrollDownSubId$$inline_2392_scrollUpBackgroundSubId$$inline_2391_scrollUpSubId$$inline_2390$$[i];
              "none" != $menuItem$$inline_2389$$.style.display && $closeSubId$$inline_2384_handleSubId$$inline_2385_hints$$82_scrollContentSubId$$inline_2386_visibleItems$$inline_2388$$.push($menuItem$$inline_2389$$);
            }
            if (this.$_areScrollButtonsDisplayed$ = $closeSubId$$inline_2384_handleSubId$$inline_2385_hints$$82_scrollContentSubId$$inline_2386_visibleItems$$inline_2388$$.length > this.$_maxDisplayItems$) {
              $elemsInitialized_menuItems$$inline_2387_scrollDownBackgroundSubId$$inline_2393_scrollDownSubId$$inline_2392_scrollUpBackgroundSubId$$inline_2391_scrollUpSubId$$inline_2390$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$405_callbacks$$inline_2395_clientId$$267_scrollBoxSubId$$inline_2394$$, "ScrollUp"), this.$_scrollUpElement$ = $agent$$inline_2383_component$$1564_options$$inline_2396$$.getElementById($elemsInitialized_menuItems$$inline_2387_scrollDownBackgroundSubId$$inline_2393_scrollDownSubId$$inline_2392_scrollUpBackgroundSubId$$inline_2391_scrollUpSubId$$inline_2390$$), 
              this.$_scrollUpElement$.style.display = "block", $elemsInitialized_menuItems$$inline_2387_scrollDownBackgroundSubId$$inline_2393_scrollDownSubId$$inline_2392_scrollUpBackgroundSubId$$inline_2391_scrollUpSubId$$inline_2390$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$405_callbacks$$inline_2395_clientId$$267_scrollBoxSubId$$inline_2394$$, "sUpBg"), this.$_scrollUpBackgroundElement$ = $agent$$inline_2383_component$$1564_options$$inline_2396$$.getElementById($elemsInitialized_menuItems$$inline_2387_scrollDownBackgroundSubId$$inline_2393_scrollDownSubId$$inline_2392_scrollUpBackgroundSubId$$inline_2391_scrollUpSubId$$inline_2390$$), 
              $elemsInitialized_menuItems$$inline_2387_scrollDownBackgroundSubId$$inline_2393_scrollDownSubId$$inline_2392_scrollUpBackgroundSubId$$inline_2391_scrollUpSubId$$inline_2390$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$405_callbacks$$inline_2395_clientId$$267_scrollBoxSubId$$inline_2394$$, "ScrollDown"), this.$_scrollDownElement$ = $agent$$inline_2383_component$$1564_options$$inline_2396$$.getElementById($elemsInitialized_menuItems$$inline_2387_scrollDownBackgroundSubId$$inline_2393_scrollDownSubId$$inline_2392_scrollUpBackgroundSubId$$inline_2391_scrollUpSubId$$inline_2390$$), 
              this.$_scrollDownElement$.style.display = "block", $elemsInitialized_menuItems$$inline_2387_scrollDownBackgroundSubId$$inline_2393_scrollDownSubId$$inline_2392_scrollUpBackgroundSubId$$inline_2391_scrollUpSubId$$inline_2390$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$405_callbacks$$inline_2395_clientId$$267_scrollBoxSubId$$inline_2394$$, "sDwnBg"), this.$_scrollDownBackgroundElement$ = $agent$$inline_2383_component$$1564_options$$inline_2396$$.getElementById($elemsInitialized_menuItems$$inline_2387_scrollDownBackgroundSubId$$inline_2393_scrollDownSubId$$inline_2392_scrollUpBackgroundSubId$$inline_2391_scrollUpSubId$$inline_2390$$), 
              $agent$$405_callbacks$$inline_2395_clientId$$267_scrollBoxSubId$$inline_2394$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$405_callbacks$$inline_2395_clientId$$267_scrollBoxSubId$$inline_2394$$, "ScrollBox"), this.$_scrollBoxElement$ = $agent$$inline_2383_component$$1564_options$$inline_2396$$.getElementById($agent$$405_callbacks$$inline_2395_clientId$$267_scrollBoxSubId$$inline_2394$$), this.$_scrollBoxElement$.style.height = $closeSubId$$inline_2384_handleSubId$$inline_2385_hints$$82_scrollContentSubId$$inline_2386_visibleItems$$inline_2388$$[this.$_maxDisplayItems$].offsetTop - 
              2 - $closeSubId$$inline_2384_handleSubId$$inline_2385_hints$$82_scrollContentSubId$$inline_2386_visibleItems$$inline_2388$$[0].offsetTop + "px", this.$_mouseWheelHandle$ = this.$createCallback$(this.$_mouseWheel$), this.$_scrollBoxElement$.addEventListener("wheel", this.$_mouseWheelHandle$), $agent$$405_callbacks$$inline_2395_clientId$$267_scrollBoxSubId$$inline_2394$$ = {}, $agent$$405_callbacks$$inline_2395_clientId$$267_scrollBoxSubId$$inline_2394$$[$AdfSwipeSupport$$.$PANNING_CALLBACK$] = 
              this.$createCallback$(this.$_handlePanning$), $agent$$inline_2383_component$$1564_options$$inline_2396$$ = {}, $agent$$inline_2383_component$$1564_options$$inline_2396$$[$AdfSwipeSupport$$.MODE] = $AdfSwipeSupport$$.$MODE_VERTICAL$, this.$_swipeMgr$ = new $AdfSwipeSupport$$(this.$_scrollBoxElement$, $agent$$405_callbacks$$inline_2395_clientId$$267_scrollBoxSubId$$inline_2394$$, $agent$$inline_2383_component$$1564_options$$inline_2396$$);
            }
          }
          $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$$1565$$, $element$$248$$, $hints$$83$$, $popupId$$51$$) {
  $AdfMenuUtils$$.$addOpenMenu$($popupId$$51$$);
  $AdfDhtmlMenuPeer$$.$superclass$.$showPopup$.call(this, $component$$1565$$, $element$$248$$, $hints$$83$$, $popupId$$51$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.showPopup", {$showPopup$:$AdfDhtmlMenuPeer$$.prototype.$showPopup$});
$AdfDhtmlMenuPeer$$.prototype.$hidePopup$ = function $$AdfDhtmlMenuPeer$$$$$hidePopup$$() {
  var $component$$1566$$ = this.$getComponent$(), $clientId$$268$$ = $component$$1566$$.$getClientId$();
  $clientId$$268$$ == $AdfDhtmlMenuPeer$$.$_reattachedMenuId$ && $AdfDhtmlMenuPeer$$.$_redetachMenu$();
  this.$isDetached$() || ($JSCompiler_StaticMethods__handleHideRequest$$(this, $clientId$$268$$), $AdfDhtmlMenuPeer$$.$superclass$.$hidePopup$.call(this, $component$$1566$$, $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$$1567$$ = this.$getComponent$(), $clientId$$269$$ = $component$$1567$$.$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$$1567$$, $clientId$$269$$));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.cancelPopup", {$cancelPopup$:$AdfDhtmlMenuPeer$$.prototype.$cancelPopup$});
$AdfDhtmlMenuPeer$$.prototype.close = function $$AdfDhtmlMenuPeer$$$$close$($immediate$$5$$, $keepSelectedStyle$$) {
  var $component$$1568$$ = 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$$1568$$.$getClientId$();
    $AdfDhtmlMenuPeer$$.$_removeFromDetachedMenus$($clientId$$270_floatingElement$$13$$);
    $AdfDhtmlMenuPeer$$.$superclass$.$hidePopup$.call(this, $component$$1568$$, $clientId$$270_floatingElement$$13$$);
  } else {
    this.$isContextMenu$() ? $component$$1568$$.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$$384_isAtScrollBottom$$ = 0;$i$$384_isAtScrollBottom$$ < $agent$$406_n$$9$$;$i$$384_isAtScrollBottom$$++) {
      var $containerBox$$1_isAtScrollTop_menuItem$$1$$ = $bottomItemBox_menuItems$$1$$[$i$$384_isAtScrollBottom$$];
      if ("none" != $containerBox$$1_isAtScrollTop_menuItem$$1$$.style.display) {
        $topItemBox_topItemIndex$$ = $i$$384_isAtScrollBottom$$;
        break;
      }
    }
    for ($i$$384_isAtScrollBottom$$ = $agent$$406_n$$9$$ - 1;-1 < $i$$384_isAtScrollBottom$$;$i$$384_isAtScrollBottom$$--) {
      if ($containerBox$$1_isAtScrollTop_menuItem$$1$$ = $bottomItemBox_menuItems$$1$$[$i$$384_isAtScrollBottom$$], "none" != $containerBox$$1_isAtScrollTop_menuItem$$1$$.style.display) {
        $bottomItemIndex$$ = $i$$384_isAtScrollBottom$$;
        break;
      }
    }
    $agent$$406_n$$9$$ = $AdfAgent$$.$AGENT$;
    $i$$384_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$$384_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$$384_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_2401_menuContent$$ = $AdfDomUtils$$.$getFirstChildElement$($newElement$$18$$);
    if (null == $component$$inline_2401_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_2401_menuContent$$);
      $AdfAgent$$.$AGENT$.$elementsAdded$($component$$inline_2401_menuContent$$);
      this.$_setLazyState$("contentLoaded");
      var $component$$inline_2401_menuContent$$ = this.$getComponent$(), $fetchingMsgId$$inline_2403_id$$inline_2402$$ = this.$getDomElement$().getAttribute("id"), $fetchingMsgId$$inline_2403_id$$inline_2402$$ = $AdfRichUIPeer$$.$CreateSubId$($fetchingMsgId$$inline_2403_id$$inline_2402$$, "lazy-fetch-message");
      $AdfDhtmlMenuPeer$$.$superclass$.$hidePopup$.call(this, $component$$inline_2401_menuContent$$, $fetchingMsgId$$inline_2403_id$$inline_2402$$);
      this.show(this.$_lazyFetchPopupHints$, this.$_lazyFetchFocusOnFirstElement$);
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.ReplaceDomElement", {$ReplaceDomElement$:$AdfDhtmlMenuPeer$$.prototype.$ReplaceDomElement$});
$AdfDhtmlMenuPeer$$.prototype.$PopupClosed$ = function $$AdfDhtmlMenuPeer$$$$$PopupClosed$$($component$$1570$$, $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$$1570$$, $contentDom$$14$$);
  $parent$$49_rootElement$$82$$.appendChild($contentDom$$14$$);
  this.$isContextMenu$() && ($parent$$49_rootElement$$82$$ = $component$$1570$$.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$$321$$) {
  if (!$componentEvent$$321$$.$isCanceled$() && !this.$_isDisabled$()) {
    var $openMenu_rootElement$$84$$ = this.$getDomElement$(), $keyCode$$80_rootMenu$$ = $componentEvent$$321$$.$getKeyCode$(), $isSubMenu$$ = 1 < $JSCompiler_StaticMethods__getDepth$$(this), $component$$1571_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$ = this.$getComponent$(), $eventSource$$21$$ = $componentEvent$$321$$.getSource();
    switch($keyCode$$80_rootMenu$$) {
      case $AdfKeyStroke$$.$HOME_KEY$:
        $eventSource$$21$$ != $component$$1571_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$ && ($component$$1571_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$ = $AdfFocusUtils$$.$getFirstFocusableDescendant$($JSCompiler_StaticMethods__getMenuElement$$(this)), this.$_updateActiveDescendant$($component$$1571_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$), $AdfFocusUtils$$.$focusElement$($component$$1571_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$), 
        $componentEvent$$321$$.cancel());
        return;
      case $AdfKeyStroke$$.$END_KEY$:
        $eventSource$$21$$ != $component$$1571_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$ && ($component$$1571_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$ = $AdfFocusUtils$$.$getLastFocusableDescendant$($JSCompiler_StaticMethods__getMenuElement$$(this)), this.$_updateActiveDescendant$($component$$1571_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$), $AdfFocusUtils$$.$focusElement$($component$$1571_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$), 
        $componentEvent$$321$$.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$$321$$.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$$321$$.cancel();
        return;
      case $AdfKeyStroke$$.$ESC_KEY$:
        this.$isDetached$() ? (this.$_closeDetachedMenu$(), $componentEvent$$321$$.cancel()) : $isSubMenu$$ ? $openMenu_rootElement$$84$$ != $AdfPage$$.$PAGE$.$_activeDomNode$ && (this.focus($component$$1571_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$), this.close(!0, !0), $componentEvent$$321$$.cancel()) : this.$isContextMenu$() ? ($AdfMenuUtils$$.$closeAllMenus$(), $openMenu_rootElement$$84$$.blur(), this.focus($component$$1571_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$), 
        $component$$1571_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$ = $component$$1571_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$.getParent(), $component$$1571_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$.$getPeer$().$hide$($component$$1571_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$), $componentEvent$$321$$.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$$1571_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$ = $componentEvent$$321$$.getSource() == $component$$1571_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$;
    if ($openMenu_rootElement$$84$$ && $keyCode$$80_rootMenu$$ || !$component$$1571_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$) {
      $component$$1571_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$ = this.$_scrollContentElement$ || $JSCompiler_StaticMethods__getMenuElement$$(this), $AdfDhtmlMenuPeer$$.$_handleMenuItemAccessKeys$($component$$1571_containerElement$$4_firstChild$$7_isEventSource_lastChild$$3_parent$$50$$, $componentEvent$$321$$);
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.HandleComponentKeyUp", {$HandleComponentKeyUp$:$AdfDhtmlMenuPeer$$.prototype.$HandleComponentKeyUp$});
$AdfDhtmlMenuPeer$$.prototype.$HandleComponentKeyDown$ = function $$AdfDhtmlMenuPeer$$$$$HandleComponentKeyDown$$($componentEvent$$322$$) {
  if (!$componentEvent$$322$$.$isCanceled$() && !this.$_isDisabled$()) {
    var $keyCode$$81$$ = $componentEvent$$322$$.$getKeyCode$(), $agent$$408$$ = $AdfAgent$$.$AGENT$;
    $keyCode$$81$$ == $AdfKeyStroke$$.$ENTER_KEY$ ? (this.$_enterKeyDown$ = !0, $componentEvent$$322$$.cancel(), $componentEvent$$322$$.$stopBubbling$()) : $keyCode$$81$$ == $AdfKeyStroke$$.$SPACE_KEY$ ? (this.$_spaceKeyDown$ = !0, $componentEvent$$322$$.cancel(), $componentEvent$$322$$.$stopBubbling$()) : $agent$$408$$.$getPreferredKeyEventForRepetition$() == $AdfUIInputEvent$$.$KEY_DOWN_EVENT_TYPE$ && this.$_handleArrowKeys$($keyCode$$81$$, $componentEvent$$322$$);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.HandleComponentKeyDown", {$HandleComponentKeyDown$:$AdfDhtmlMenuPeer$$.prototype.$HandleComponentKeyDown$});
$AdfDhtmlMenuPeer$$.prototype.$HandleComponentKeyPress$ = function $$AdfDhtmlMenuPeer$$$$$HandleComponentKeyPress$$($componentEvent$$323$$) {
  if (!$componentEvent$$323$$.$isCanceled$() && !this.$_isDisabled$() && $AdfAgent$$.$AGENT$.$getPreferredKeyEventForRepetition$() == $AdfUIInputEvent$$.$KEY_PRESS_EVENT_TYPE$) {
    var $keyCode$$82$$ = $componentEvent$$323$$.$getKeyCode$();
    this.$_handleArrowKeys$($keyCode$$82$$, $componentEvent$$323$$);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.HandleComponentKeyPress", {$HandleComponentKeyPress$:$AdfDhtmlMenuPeer$$.prototype.$HandleComponentKeyPress$});
$AdfDhtmlMenuPeer$$.prototype.$HandleComponentFocus$ = function $$AdfDhtmlMenuPeer$$$$$HandleComponentFocus$$($componentEvent$$324$$) {
  var $clientId$$271_compElement$$5_eventSource$$22_focusableElement$$1_rootElement$$85$$ = $componentEvent$$324$$.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$$324$$.cancel();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.HandleComponentFocus", {$HandleComponentFocus$:$AdfDhtmlMenuPeer$$.prototype.$HandleComponentFocus$});
$AdfDhtmlMenuPeer$$.prototype.$HandleComponentMouseOver$ = function $$AdfDhtmlMenuPeer$$$$$HandleComponentMouseOver$$($component$$1572_componentEvent$$325$$) {
  $JSCompiler_StaticMethods__cancelHiding$$(this);
  if (this.$_isDisabled$()) {
    $AdfMenuUtils$$.$isMenuBarAutoOpenMode$() && this.$isRootMenu$() && $AdfMenuUtils$$.$closeAllMenus$(!1);
  } else {
    if (!$component$$1572_componentEvent$$325$$.$isCanceled$()) {
      var $agent$$409$$ = $AdfAgent$$.$AGENT$, $nativeEvent$$34$$ = $component$$1572_componentEvent$$325$$.$getNativeEvent$(), $rootElement$$86$$ = this.$getDomElement$();
      $agent$$409$$.$isEventInElement$($nativeEvent$$34$$, $rootElement$$86$$) && ($component$$1572_componentEvent$$325$$.cancel(), this.$isContextMenu$() || ($component$$1572_componentEvent$$325$$ = 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$$1572_componentEvent$$325$$)) : $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$$1572_componentEvent$$325$$)) : $AdfMenuUtils$$.$highlightRootMenuItem$($rootElement$$86$$)));
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.HandleComponentMouseOver", {$HandleComponentMouseOver$:$AdfDhtmlMenuPeer$$.prototype.$HandleComponentMouseOver$});
$AdfDhtmlMenuPeer$$.prototype.$HandleComponentMouseDown$ = function $$AdfDhtmlMenuPeer$$$$$HandleComponentMouseDown$$($componentEvent$$326_isScrollDownElement$$) {
  var $agent$$410_component$$1573_isMobile$$ = this.$getComponent$();
  if (!this.$_isDisabled$() && $componentEvent$$326_isScrollDownElement$$.$isLeftButtonPressed$() && $agent$$410_component$$1573_isMobile$$ == $componentEvent$$326_isScrollDownElement$$.getSource()) {
    var $agent$$410_component$$1573_isMobile$$ = $AdfAgent$$.$AGENT$, $domEvent$$47_scrollButtonDIV$$ = $componentEvent$$326_isScrollDownElement$$.$getNativeEvent$(), $rootElement$$87$$ = this.$getDomElement$(), $isScrollUpElement$$ = this.$_scrollUpElement$ && $agent$$410_component$$1573_isMobile$$.$isEventInElement$($domEvent$$47_scrollButtonDIV$$, this.$_scrollUpElement$);
    $componentEvent$$326_isScrollDownElement$$ = this.$_scrollDownElement$ && $agent$$410_component$$1573_isMobile$$.$isEventInElement$($domEvent$$47_scrollButtonDIV$$, this.$_scrollDownElement$);
    $isScrollUpElement$$ || $componentEvent$$326_isScrollDownElement$$ ? ($agent$$410_component$$1573_isMobile$$.$getPlatform$() == $AdfAgent$$.$IE_PLATFORM$ && ($domEvent$$47_scrollButtonDIV$$ = $isScrollUpElement$$ ? this.$_scrollUpElement$ : this.$_scrollDownElement$, $domEvent$$47_scrollButtonDIV$$ != $AdfPage$$.$PAGE$.$_activeDomNode$ && ($domEvent$$47_scrollButtonDIV$$.tabIndex = 0, $domEvent$$47_scrollButtonDIV$$.focus(), $domEvent$$47_scrollButtonDIV$$.tabIndex = -1)), $agent$$410_component$$1573_isMobile$$.$getCapabilities$()[$AdfAgent$$.$CAP_TOUCH_SCREEN$] != 
    $AdfAgent$$.$CAP_TOUCH_SCREEN_NONE$ ? $JSCompiler_StaticMethods__startScroll$$(this, $componentEvent$$326_isScrollDownElement$$, !0) : $JSCompiler_StaticMethods__startScroll$$(this, $componentEvent$$326_isScrollDownElement$$)) : $agent$$410_component$$1573_isMobile$$.$isEventInElement$($domEvent$$47_scrollButtonDIV$$, $rootElement$$87$$) && ($agent$$410_component$$1573_isMobile$$.$eatEvent$($domEvent$$47_scrollButtonDIV$$), $AdfDomUtils$$.$addCSSClassName$($rootElement$$87$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$), 
    this.$isContextMenu$() || ($agent$$410_component$$1573_isMobile$$ = !!($AdfPage$$.$PAGE$.$getDomWindow$().$AdfSafariMobileAgent$ && $AdfAgent$$.$AGENT$ instanceof $AdfSafariMobileAgent$$), 1 < $JSCompiler_StaticMethods__getDepth$$(this) ? this.show(null, $agent$$410_component$$1573_isMobile$$) : $JSCompiler_StaticMethods__isMenuVisible$$(this) ? (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)) : 
    (this.show(null, $agent$$410_component$$1573_isMobile$$), $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.HandleComponentMouseDown", {$HandleComponentMouseDown$:$AdfDhtmlMenuPeer$$.prototype.$HandleComponentMouseDown$});
$AdfDhtmlMenuPeer$$.prototype.$HandleComponentMouseUp$ = function $$AdfDhtmlMenuPeer$$$$$HandleComponentMouseUp$$($componentEvent$$327_isScrollUpElement$$1$$) {
  if (!this.$_isDisabled$() && $componentEvent$$327_isScrollUpElement$$1$$.$isLeftButtonPressed$()) {
    var $agent$$411_isScrollDownElement$$1$$ = $AdfAgent$$.$AGENT$, $domEvent$$48$$ = $componentEvent$$327_isScrollUpElement$$1$$.$getNativeEvent$();
    this.$_handleElement$ && $AdfDomUtils$$.$removeCSSClassName$(this.$_handleElement$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$);
    $componentEvent$$327_isScrollUpElement$$1$$ = this.$_scrollUpElement$ && $agent$$411_isScrollDownElement$$1$$.$isEventInElement$($domEvent$$48$$, this.$_scrollUpElement$);
    $agent$$411_isScrollDownElement$$1$$ = this.$_scrollDownElement$ && $agent$$411_isScrollDownElement$$1$$.$isEventInElement$($domEvent$$48$$, this.$_scrollDownElement$);
    if ($componentEvent$$327_isScrollUpElement$$1$$ || $agent$$411_isScrollDownElement$$1$$) {
      $JSCompiler_StaticMethods__endScroll$$(this), this.$updateScrollIconsState$();
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.HandleComponentMouseUp", {$HandleComponentMouseUp$:$AdfDhtmlMenuPeer$$.prototype.$HandleComponentMouseUp$});
$AdfDhtmlMenuPeer$$.prototype.$HandleComponentBlur$ = function $$AdfDhtmlMenuPeer$$$$$HandleComponentBlur$$() {
  var $rootElement$$88$$ = 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$$88$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$);
  !this.$isDetached$() && $JSCompiler_StaticMethods__isMenuVisible$$(this) || $AdfDomUtils$$.$removeCSSClassName$($rootElement$$88$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.HandleComponentBlur", {$HandleComponentBlur$:$AdfDhtmlMenuPeer$$.prototype.$HandleComponentBlur$});
$AdfDhtmlMenuPeer$$.prototype.$ComponentRemoved$ = function $$AdfDhtmlMenuPeer$$$$$ComponentRemoved$$($component$$1574$$) {
  var $clientId$$272$$ = $component$$1574$$.$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$$1574$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.ComponentRemoved", {$ComponentRemoved$:$AdfDhtmlMenuPeer$$.prototype.$ComponentRemoved$});
$AdfDhtmlMenuPeer$$.prototype.$ComponentDisabledChanged$ = function $$AdfDhtmlMenuPeer$$$$$ComponentDisabledChanged$$($component$$1575$$, $domElement$$337$$, $newValue$$109$$) {
  $AdfMenuUtils$$.$menuItemDisabledChanged$($component$$1575$$, $domElement$$337$$, $newValue$$109$$, $JSCompiler_StaticMethods__getMenuElement$$(this));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.ComponentDisabledChanged", {$ComponentDisabledChanged$:$AdfDhtmlMenuPeer$$.prototype.$ComponentDisabledChanged$});
$AdfDhtmlMenuPeer$$.prototype.$ComponentVisibleChanged$ = function $$AdfDhtmlMenuPeer$$$$$ComponentVisibleChanged$$($component$$1576$$, $domElement$$338$$, $newValue$$110$$, $oldValue$$70$$) {
  $AdfDhtmlMenuPeer$$.$superclass$.$ComponentVisibleChanged$.call(this, $component$$1576$$, $domElement$$338$$, $newValue$$110$$, $oldValue$$70$$);
  $AdfMenuUtils$$.$menuItemVisibleChanged$($component$$1576$$, $domElement$$338$$, $newValue$$110$$, $JSCompiler_StaticMethods__getMenuElement$$(this));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.ComponentVisibleChanged", {$ComponentVisibleChanged$:$AdfDhtmlMenuPeer$$.prototype.$ComponentVisibleChanged$});
$AdfDhtmlMenuPeer$$.prototype.$ComponentTextChanged$ = function $$AdfDhtmlMenuPeer$$$$$ComponentTextChanged$$($component$$1577$$, $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$$1577$$, $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$$1578_parent$$51$$) {
  this.bind($component$$1578_parent$$51$$);
  if (this.$isRootMenu$()) {
    $component$$1578_parent$$51$$ = this.$getComponentParent$($component$$1578_parent$$51$$);
    var $parentPeer$$19$$ = null != $component$$1578_parent$$51$$ ? $component$$1578_parent$$51$$.$getPeer$() : null;
    $parentPeer$$19$$ && $parentPeer$$19$$.$__preferredSizeChangeNotify$ && $parentPeer$$19$$.$__preferredSizeChangeNotify$($component$$1578_parent$$51$$);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.__preferredSizeChangeNotify", {$__preferredSizeChangeNotify$:$AdfDhtmlMenuPeer$$.prototype.$__preferredSizeChangeNotify$});
$AdfDhtmlMenuPeer$$.$_redetachMenu$ = function $$AdfDhtmlMenuPeer$$$$_redetachMenu$$() {
  var $component$$1579_peer$$129_reattachedMenuId$$ = $AdfDhtmlMenuPeer$$.$_reattachedMenuId$;
  if (null != $component$$1579_peer$$129_reattachedMenuId$$) {
    if (($component$$1579_peer$$129_reattachedMenuId$$ = $AdfPage$$.$PAGE$.$findComponent$($component$$1579_peer$$129_reattachedMenuId$$)) && ($component$$1579_peer$$129_reattachedMenuId$$ = $component$$1579_peer$$129_reattachedMenuId$$.$getPeer$()) && $component$$1579_peer$$129_reattachedMenuId$$ instanceof $AdfDhtmlMenuPeer$$ && $component$$1579_peer$$129_reattachedMenuId$$.$_detachableWindow$) {
      var $floatingElement$$14_pos$$25$$ = $component$$1579_peer$$129_reattachedMenuId$$.$_detachableWindow$.$getElement$();
      $floatingElement$$14_pos$$25$$.style.left = $component$$1579_peer$$129_reattachedMenuId$$.$_detachedMenuLeft$;
      $floatingElement$$14_pos$$25$$.style.top = $component$$1579_peer$$129_reattachedMenuId$$.$_detachedMenuTop$;
      var $floatingElement$$14_pos$$25$$ = {y:$component$$1579_peer$$129_reattachedMenuId$$.$_detachedMenuTop$, x:$component$$1579_peer$$129_reattachedMenuId$$.$_detachedMenuLeft$}, $menuPopup$$ = $JSCompiler_StaticMethods__getMenuPopup$$($component$$1579_peer$$129_reattachedMenuId$$);
      $menuPopup$$ && $menuPopup$$.$setAlignPosition$($floatingElement$$14_pos$$25$$);
      $JSCompiler_StaticMethods__makeDetached$$($component$$1579_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$$222$$) {
  var $keyCode$$83$$ = $AdfAgent$$.$AGENT$.$getKeyCode$($event$$222$$);
  $event$$222$$.ctrlKey && $event$$222$$.shiftKey && $keyCode$$83$$ == $AdfKeyStroke$$.$W_KEY$ && $AdfAgent$$.$AGENT$.$eatEvent$($event$$222$$);
};
$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_2407_barElement$$8_barMenus$$2_component$$1580$$ = $AdfDhtmlMenuPeer$$.$_sBarMenus$;
  $AdfAssert$$.assert(1 < $JSCompiler_StaticMethods__getParentId$self$$inline_2407_barElement$$8_barMenus$$2_component$$1580$$.length);
  var $JSCompiler_StaticMethods__getParentId$self$$inline_2407_barElement$$8_barMenus$$2_component$$1580$$ = $AdfPage$$.$PAGE$.$findComponent$($JSCompiler_StaticMethods__getParentId$self$$inline_2407_barElement$$8_barMenus$$2_component$$1580$$[0]), $el$$inline_2408_parent$$52$$ = $JSCompiler_StaticMethods__getParentId$self$$inline_2407_barElement$$8_barMenus$$2_component$$1580$$.getParent();
  $AdfAssert$$.assert(!($el$$inline_2408_parent$$52$$ instanceof AdfRichMenu));
  $JSCompiler_StaticMethods__getParentId$self$$inline_2407_barElement$$8_barMenus$$2_component$$1580$$ = $JSCompiler_StaticMethods__getParentId$self$$inline_2407_barElement$$8_barMenus$$2_component$$1580$$.$getPeer$();
  if (!$JSCompiler_StaticMethods__getParentId$self$$inline_2407_barElement$$8_barMenus$$2_component$$1580$$.$_parentId$) {
    $el$$inline_2408_parent$$52$$ = $JSCompiler_StaticMethods__getParentId$self$$inline_2407_barElement$$8_barMenus$$2_component$$1580$$.$getDomElement$().parentNode;
    do {
      var $id$$inline_2409$$ = $el$$inline_2408_parent$$52$$.getAttribute("id"), $el$$inline_2408_parent$$52$$ = $el$$inline_2408_parent$$52$$.parentNode
    } while (!$id$$inline_2409$$ && $el$$inline_2408_parent$$52$$);
    $id$$inline_2409$$ && ($JSCompiler_StaticMethods__getParentId$self$$inline_2407_barElement$$8_barMenus$$2_component$$1580$$.$_parentId$ = $id$$inline_2409$$);
  }
  $JSCompiler_StaticMethods__getParentId$self$$inline_2407_barElement$$8_barMenus$$2_component$$1580$$ = $AdfAgent$$.$AGENT$.getElementById($JSCompiler_StaticMethods__getParentId$self$$inline_2407_barElement$$8_barMenus$$2_component$$1580$$.$_parentId$);
  $AdfFocusUtils$$.$focusFirstTabStop$($JSCompiler_StaticMethods__getParentId$self$$inline_2407_barElement$$8_barMenus$$2_component$$1580$$);
};
$AdfDhtmlMenuPeer$$.$_handleMenuItemAccessKeys$ = function $$AdfDhtmlMenuPeer$$$$_handleMenuItemAccessKeys$$($containerElement$$5$$, $componentEvent$$329$$) {
  var $keyPressed$$1_keyStroke$$13$$ = $componentEvent$$329$$.$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$$385$$ = 0;$i$$385$$ < $numItems$$1$$;$i$$385$$++) {
      var $menuItem$$2$$ = $menuItemElements_modifiers$$13$$[$i$$385$$];
      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$$329$$.cancel();
          break;
        }
      }
    }
  }
};
$AdfDhtmlMenuPeer$$.prototype.$_handleArrowKeys$ = function $$AdfDhtmlMenuPeer$$$$$_handleArrowKeys$$($keyCode$$84$$, $componentEvent$$330$$) {
  var $cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$ = $componentEvent$$330$$.$getNativeEvent$();
  if ($cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$.ctrlKey) {
    if (this.$isDetached$() || this.$_detachableWindow$ && $JSCompiler_StaticMethods__isMenuVisible$$(this)) {
      if ($cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$ = $AdfAgent$$.$AGENT$.$getPlatform$() == $AdfAgent$$.$IE_PLATFORM$ ? 187 == $keyCode$$84$$ : 61 == $keyCode$$84$$, $componentEvent$$330$$.$getNativeEvent$().altKey && $cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$) {
        $JSCompiler_StaticMethods__moveDetachable$$(this, 0, 0), $componentEvent$$330$$.cancel();
      } else {
        $cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$ = !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_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$ = !1;
        }
        $cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$ && $componentEvent$$330$$.cancel();
      }
    }
  } else {
    if (!($cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$.altKey || $cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$.shiftKey || $cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$.metaKey) && 
    $componentEvent$$330$$.getSource() != this.$getComponent$()) {
      switch($cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$ = $componentEvent$$330$$.getSource().$getPeer$().$getDomElement$(), $keyCode$$84$$) {
        case $AdfKeyStroke$$.$ARROWUP_KEY$:
          $AdfAssert$$.$assertDomElement$(this.$_activeDescendant$);
          $AdfAssert$$.assert($cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$ == this.$_activeDescendant$);
          this.$_activeDescendant$ || ($AdfLogger$$.$LOGGER$.warning("Menu has lost its assigned activeDescendant!"), this.$resetActiveDescendant$());
          $cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$ = $AdfFocusUtils$$.$focusPreviousActiveDescendant$($JSCompiler_StaticMethods__getMenuElement$$(this), $cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$, 
          !0);
          $AdfAssert$$.$assertDomElement$($cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$);
          this.$_activeDescendant$ = $cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$;
          this.$updateScrollIconsState$();
          $componentEvent$$330$$.cancel();
          break;
        case $AdfKeyStroke$$.$ARROWDOWN_KEY$:
          $AdfAssert$$.$assertDomElement$(this.$_activeDescendant$);
          $AdfAssert$$.assert($cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$ == this.$_activeDescendant$);
          this.$_activeDescendant$ || ($AdfLogger$$.$LOGGER$.warning("Menu has lost its assigned activeDescendant!"), this.$resetActiveDescendant$());
          $cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$ = $AdfFocusUtils$$.$focusNextActiveDescendant$($JSCompiler_StaticMethods__getMenuElement$$(this), $cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$, 
          !0);
          $AdfAssert$$.$assertDomElement$($cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$);
          this.$_activeDescendant$ = $cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$;
          this.$updateScrollIconsState$();
          $componentEvent$$330$$.cancel();
          break;
        case $AdfKeyStroke$$.$ARROWLEFT_KEY$:
          $cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$ = this.$getComponent$();
          this.$isRootMenu$() ? (this.focus($cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$), this.close(!0, !0), $AdfMenuUtils$$.$MenuBarAutoOpenMode$ = !1) : this.$isDetached$() || this.$isContextMenu$() || (this.focus($cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$), 
          this.close(!0, !0));
          $componentEvent$$330$$.cancel();
          break;
        case $AdfKeyStroke$$.$ARROWRIGHT_KEY$:
          $cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$ = $componentEvent$$330$$.getSource(), $cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$ instanceof AdfRichMenu ? ($cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$.$getPeer$().show(null, 
          !0), $componentEvent$$330$$.cancel()) : this.$isDetached$() || this.$isContextMenu$() ? $componentEvent$$330$$.cancel() : this.$isRootMenu$() && ($cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$ = this.$getComponent$(), this.focus($cancelEvent$$inline_2415_component$$inline_2427_component$$inline_2432_eventComponent$$inline_2431_evt$$114_isEqualsKey$$inline_2414_nextItem$$inline_2423_previousItem$$inline_2419_rootElement$$89$$), 
          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$$330$$.cancel());
      }
    }
  }
};
$AdfDhtmlMenuPeer$$.prototype.$_onHandleClick$ = function $$AdfDhtmlMenuPeer$$$$$_onHandleClick$$($event$$224$$) {
  $AdfAgent$$.$AGENT$.$eatEvent$($event$$224$$);
  $AdfDomUtils$$.$addCSSClassName$(this.$_handleElement$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$);
};
function $JSCompiler_StaticMethods__createMenuPopupHints$$($JSCompiler_StaticMethods__createMenuPopupHints$self$$, $baseHints$$, $focusOnFirstElement$$5_menuTitle$$) {
  var $hints$$84$$ = {}, $rootElement$$92$$ = $JSCompiler_StaticMethods__createMenuPopupHints$self$$.$getDomElement$(), $component$$1585$$ = $JSCompiler_StaticMethods__createMenuPopupHints$self$$.$getComponent$();
  $hints$$84$$.type = "menu";
  $hints$$84$$.autodismiss = "autodismissMenu";
  $hints$$84$$.alignElement = $rootElement$$92$$;
  $hints$$84$$.focus = $focusOnFirstElement$$5_menuTitle$$ ? !0 : !1;
  $focusOnFirstElement$$5_menuTitle$$ = $component$$1585$$.getText();
  null == $focusOnFirstElement$$5_menuTitle$$ && ($focusOnFirstElement$$5_menuTitle$$ = $component$$1585$$.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$$92$$) ? $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$$1586$$ = 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$$1586$$, $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_2435_reattachPosition$$inline_2443_reattachXY$$ = $JSCompiler_StaticMethods__reattachMenu$self$$.$getComponent$().$getClientId$();
    $AdfDhtmlMenuPeer$$.$_reattachedMenuId$ = $clientId$$279_positionManager$$inline_2435_reattachPosition$$inline_2443_reattachXY$$;
    $AdfMenuUtils$$.$addOpenMenu$($clientId$$279_positionManager$$inline_2435_reattachPosition$$inline_2443_reattachXY$$);
    $AdfDhtmlMenuPeer$$.$_removeFromDetachedMenus$($clientId$$279_positionManager$$inline_2435_reattachPosition$$inline_2443_reattachXY$$);
    $JSCompiler_StaticMethods__showShadow$$($JSCompiler_StaticMethods__reattachMenu$self$$);
    var $clientId$$279_positionManager$$inline_2435_reattachPosition$$inline_2443_reattachXY$$ = $AdfPage$$.$PAGE$.$getPositionManager$(), $element$$inline_2444_menuPopup$$1_rootElement$$inline_2436$$ = $JSCompiler_StaticMethods__reattachMenu$self$$.$getDomElement$(), $menuElement$$inline_2437_width$$inline_2440$$ = $JSCompiler_StaticMethods__getMenuElement$$($JSCompiler_StaticMethods__reattachMenu$self$$), $alignmentHint$$inline_2438$$ = AdfRichPopup.$ALIGN_END_BEFORE$, $height$$inline_2439$$ = 
    $menuElement$$inline_2437_width$$inline_2440$$.clientHeight - 4, $menuElement$$inline_2437_width$$inline_2440$$ = $menuElement$$inline_2437_width$$inline_2440$$.clientWidth + $AdfDhtmlShadowDecorator$$.$getShadowSize$(), $clientId$$279_positionManager$$inline_2435_reattachPosition$$inline_2443_reattachXY$$ = $clientId$$279_positionManager$$inline_2435_reattachPosition$$inline_2443_reattachXY$$.$calculatePlacementPosition$($height$$inline_2439$$, $menuElement$$inline_2437_width$$inline_2440$$, 
    $alignmentHint$$inline_2438$$, $element$$inline_2444_menuPopup$$1_rootElement$$inline_2436$$, null);
    $JSCompiler_StaticMethods__reattachMenu$self$$.$_isDetached$ = !1;
    $AdfPage$$.$PAGE$.$isAnimationEnabled$() ? ($clientId$$279_positionManager$$inline_2435_reattachPosition$$inline_2443_reattachXY$$ = {left:$clientId$$279_positionManager$$inline_2435_reattachPosition$$inline_2443_reattachXY$$.x, top:$clientId$$279_positionManager$$inline_2435_reattachPosition$$inline_2443_reattachXY$$.y}, $AdfDomUtils$$.$removeCSSClassName$($JSCompiler_StaticMethods__getMenuElement$$($JSCompiler_StaticMethods__reattachMenu$self$$), $AdfMenuUtils$$.$DETACHED_STYLE_CLASS$), $element$$inline_2444_menuPopup$$1_rootElement$$inline_2436$$ = 
    $JSCompiler_StaticMethods__reattachMenu$self$$.$_detachableWindow$.$getElement$(), $AdfDhtmlElementAnimator$animate$$(3, 300, [{element:$element$$inline_2444_menuPopup$$1_rootElement$$inline_2436$$, $properties$:$clientId$$279_positionManager$$inline_2435_reattachPosition$$inline_2443_reattachXY$$}], null, $AdfDhtmlMenuPeer$$.$_animateReattachComplete$, [$JSCompiler_StaticMethods__reattachMenu$self$$, $clientId$$279_positionManager$$inline_2435_reattachPosition$$inline_2443_reattachXY$$.y, $clientId$$279_positionManager$$inline_2435_reattachPosition$$inline_2443_reattachXY$$.x])) : 
    ($JSCompiler_StaticMethods__moveShadow$$($JSCompiler_StaticMethods__reattachMenu$self$$), ($element$$inline_2444_menuPopup$$1_rootElement$$inline_2436$$ = $JSCompiler_StaticMethods__getMenuPopup$$($JSCompiler_StaticMethods__reattachMenu$self$$)) && $element$$inline_2444_menuPopup$$1_rootElement$$inline_2436$$.$setAlignPosition$($clientId$$279_positionManager$$inline_2435_reattachPosition$$inline_2443_reattachXY$$), $AdfDomUtils$$.$removeCSSClassName$($JSCompiler_StaticMethods__getMenuElement$$($JSCompiler_StaticMethods__reattachMenu$self$$), 
    $AdfMenuUtils$$.$DETACHED_STYLE_CLASS$));
  }
}
$AdfDhtmlMenuPeer$$.$_animateReattachComplete$ = function $$AdfDhtmlMenuPeer$$$$_animateReattachComplete$$($args$$183_left$$17$$) {
  var $menuPopup$$2_peer$$131$$ = $args$$183_left$$17$$[0], $pos$$26_top$$19$$ = $args$$183_left$$17$$[1];
  $args$$183_left$$17$$ = $args$$183_left$$17$$[2];
  $JSCompiler_StaticMethods__moveShadow$$($menuPopup$$2_peer$$131$$);
  $pos$$26_top$$19$$ = {y:$pos$$26_top$$19$$, x:$args$$183_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$$250$$) {
  var $domElement$$340_insideElement$$ = $JSCompiler_StaticMethods__contains$self$$.$getDomElement$(), $domElement$$340_insideElement$$ = $AdfDomUtils$$.$isAncestorOrSelf$($domElement$$340_insideElement$$, $element$$250$$);
  if ("noContent" == $JSCompiler_StaticMethods__contains$self$$.$_getLazyState$()) {
    return $domElement$$340_insideElement$$;
  }
  var $insidePopup$$ = $AdfDomUtils$$.$isAncestor$($JSCompiler_StaticMethods__getMenuElement$$($JSCompiler_StaticMethods__contains$self$$), $element$$250$$);
  return $domElement$$340_insideElement$$ || $insidePopup$$;
}
function $JSCompiler_StaticMethods__getDepth$$($JSCompiler_StaticMethods__getDepth$self$$) {
  if (!$JSCompiler_StaticMethods__getDepth$self$$.$_depth$) {
    var $rootElement$$96$$ = $JSCompiler_StaticMethods__getDepth$self$$.$getDomElement$();
    $JSCompiler_StaticMethods__getDepth$self$$.$_depth$ = parseInt($rootElement$$96$$.getAttribute($AdfMenuUtils$$.$MENU_DEPTH_KEY$));
  }
  return $JSCompiler_StaticMethods__getDepth$self$$.$_depth$;
}
$JSCompiler_prototypeAlias$$ = $AdfDhtmlMenuPeer$$.prototype;
$JSCompiler_prototypeAlias$$.$_isDisabled$ = function $$JSCompiler_prototypeAlias$$$$_isDisabled$$() {
  var $rootElement$$97$$ = this.$getDomElement$();
  return $rootElement$$97$$.disabled || $AdfDomUtils$$.$containsCSSClassName$($rootElement$$97$$, $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$$98$$ = this.$getDomElement$();
  $AdfMenuUtils$$.$dismiss$($clientId$$281_floatingElement$$15_rootElement$$98$$, !0);
  $clientId$$281_floatingElement$$15_rootElement$$98$$ = this.$_detachableWindow$.$getElement$();
  this.$_detachedMenuLeft$ = $clientId$$281_floatingElement$$15_rootElement$$98$$.style.left;
  this.$_detachedMenuTop$ = $clientId$$281_floatingElement$$15_rootElement$$98$$.style.top;
  $clientId$$281_floatingElement$$15_rootElement$$98$$ = this.$getComponent$().$getClientId$();
  $AdfMenuUtils$$.$removeOpenMenu$($clientId$$281_floatingElement$$15_rootElement$$98$$);
  $AdfDhtmlMenuPeer$$.$_addToDetachedMenus$($clientId$$281_floatingElement$$15_rootElement$$98$$);
  $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$$1591$$ = this.$getComponent$();
  $component$$1591$$ && this.$isPopupVisible$($component$$1591$$, $component$$1591$$.$getClientId$()) && this.$hidePopup$();
};
$JSCompiler_prototypeAlias$$.$_delayShowCallback$ = function $$JSCompiler_prototypeAlias$$$$_delayShowCallback$$() {
  var $component$$1592$$ = this.$getComponent$();
  this.$isPopupVisible$($component$$1592$$, $component$$1592$$.$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$$99$$ = this.$getDomElement$();
  $AdfDomUtils$$.$removeCSSClassName$($rootElement$$99$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$);
  $AdfDomUtils$$.$removeCSSClassName$($rootElement$$99$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$);
};
$AdfDhtmlMenuPeer$$.prototype.$_closeDetachedMenu$ = function $$AdfDhtmlMenuPeer$$$$$_closeDetachedMenu$$() {
  var $component$$1593$$ = this.$getComponent$(), $clientId$$282$$ = $component$$1593$$.$getClientId$();
  $AdfDomUtils$$.$removeCSSClassName$($JSCompiler_StaticMethods__getMenuElement$$(this), $AdfMenuUtils$$.$DETACHED_STYLE_CLASS$);
  this.$_isDetached$ = !1;
  var $rootElement$$100$$ = this.$getDomElement$();
  $AdfDomUtils$$.$removeCSSClassName$($rootElement$$100$$, $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$$1593$$, $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$$386$$ = $menuItemOffsetTop_n$$10$$ - 1;-1 < $i$$386$$;$i$$386$$--) {
      var $menuItem$$4_menuItemOffsetBottom$$ = $menuItems$$3$$[$i$$386$$];
      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$$386$$ = 0;$i$$386$$ < $menuItemOffsetTop_n$$10$$;$i$$386$$++) {
      if ($menuItem$$4_menuItemOffsetBottom$$ = $menuItems$$3$$[$i$$386$$], "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$$1594$$ = $JSCompiler_StaticMethods__getMenuPopup$self$$.$getComponent$(), $clientId$$283$$ = $component$$1594$$.$getClientId$();
  return $JSCompiler_StaticMethods__getMenuPopup$self$$.$getPopupWindow$($component$$1594$$, $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$$226$$) {
  $AdfAgent$$.$AGENT$.$eatEvent$($event$$226$$);
  this.$_scrollBoxElement$.scrollTop += $event$$226$$.deltaY;
  this.$updateScrollIconsState$();
};
$AdfDhtmlMenuPeer$$.prototype.$_handlePanning$ = function $$AdfDhtmlMenuPeer$$$$$_handlePanning$$($event$$227$$) {
  this.$_scrollBoxElement$.scrollTop += -1 * $event$$227$$.deltaY;
  this.$updateScrollIconsState$();
};
