var $AdfDhtmlMenuPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlMenuPeer", $JSCompiler_alias_FALSE$$);
$goog$exportSymbol$$("AdfDhtmlMenuPeer", $AdfDhtmlMenuPeer$$);
$AdfDhtmlMenuPeer$$.$InitSubclass$ = function $$AdfDhtmlMenuPeer$$$$InitSubclass$$() {
  $AdfObject$$.$ensureClassInitialization$($AdfMenuUtils$$);
  $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$);
  $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$$62$$ = $AdfKeyStroke$$.$M_KEY$, $modifiers$$9$$ = $AdfKeyStroke$$.$SHIFT_MASK$ | $AdfKeyStroke$$.$CTRL_MASK$;
  this.$_menuBarKeyStroke$ = $AdfKeyStroke$$.$getKeyStroke$($keyCode$$62$$, $modifiers$$9$$);
  $keyCode$$62$$ = $AdfKeyStroke$$.$W_KEY$;
  $modifiers$$9$$ = $AdfKeyStroke$$.$SHIFT_MASK$ | $AdfKeyStroke$$.$CTRL_MASK$;
  this.$_focusDetachedMenuKeyStroke$ = $AdfKeyStroke$$.$getKeyStroke$($keyCode$$62$$, $modifiers$$9$$)
};
$goog$exportSymbol$$("AdfDhtmlMenuPeer.InitSubclass", $AdfDhtmlMenuPeer$$.$InitSubclass$);
$AdfDhtmlMenuPeer$$.prototype.Init = function $$AdfDhtmlMenuPeer$$$$Init$($component$$1090_lookAndFeel$$8_skinVisibileItems$$) {
  $component$$1090_lookAndFeel$$8_skinVisibileItems$$.getParent();
  $AdfDhtmlMenuPeer$$.$superclass$.Init.call(this, $component$$1090_lookAndFeel$$8_skinVisibileItems$$);
  $component$$1090_lookAndFeel$$8_skinVisibileItems$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$();
  $component$$1090_lookAndFeel$$8_skinVisibileItems$$ = parseInt($component$$1090_lookAndFeel$$8_skinVisibileItems$$.$getSkinProperty$("af|menu-tr-visible-items"));
  this.$_maxDisplayItems$ = isNaN($component$$1090_lookAndFeel$$8_skinVisibileItems$$) ? 14 : $component$$1090_lookAndFeel$$8_skinVisibileItems$$;
  this.$_spaceKeyDown$ = this.$_enterKeyDown$ = this.$_isDetached$ = $JSCompiler_alias_FALSE$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.Init", {Init:$AdfDhtmlMenuPeer$$.prototype.Init});
$AdfDhtmlMenuPeer$$.prototype.$InitDomElement$ = function $$AdfDhtmlMenuPeer$$$$$InitDomElement$$($component$$1091$$, $domElement$$294$$) {
  if("1" == $domElement$$294$$.getAttribute($AdfMenuUtils$$.$MENU_DEPTH_KEY$)) {
    var $clientId$$214$$ = $component$$1091$$.$getClientId$();
    $AdfDhtmlMenuPeer$$.$_addBarMenu$($clientId$$214$$)
  }
};
$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$$1$$, $focusOnFirstElement$$4$$) {
  var $menuElement_popupFocusHint_rootElement$$59$$ = this.$getDomElement$(), $agent$$inline_2065_component$$1092$$ = this.$getComponent$(), $agent$$334_clientId$$215_params$$36_scrollBoxSubId$$inline_2076$$ = $agent$$inline_2065_component$$1092$$.$getClientId$();
  $AdfDomUtils$$.$addCSSClassName$($menuElement_popupFocusHint_rootElement$$59$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$);
  !this.$isContextMenu$() && this.$isRootMenu$() && $AdfMenuUtils$$.$setLastOpenedRootMenuId$($agent$$334_clientId$$215_params$$36_scrollBoxSubId$$inline_2076$$);
  $focusOnFirstElement$$4$$ == $JSCompiler_alias_NULL$$ && $popupHints$$1$$ != $JSCompiler_alias_NULL$$ && ($menuElement_popupFocusHint_rootElement$$59$$ = $popupHints$$1$$.focus, $focusOnFirstElement$$4$$ = $menuElement_popupFocusHint_rootElement$$59$$ != $JSCompiler_alias_NULL$$ ? $menuElement_popupFocusHint_rootElement$$59$$ : this.$isContextMenu$() ? $JSCompiler_alias_TRUE$$ : $JSCompiler_alias_FALSE$$);
  $JSCompiler_StaticMethods__reattachMenu$$(this);
  if("noContent" == this.$_getLazyState$()) {
    this.$_setLazyState$("fetching"), $agent$$334_clientId$$215_params$$36_scrollBoxSubId$$inline_2076$$ = {}, $agent$$334_clientId$$215_params$$36_scrollBoxSubId$$inline_2076$$.$menuDepth$ = $JSCompiler_StaticMethods__getDepth$$(this), this.$_lazyFetchPopupHints$ = $popupHints$$1$$, this.$_lazyFetchFocusOnFirstElement$ = $focusOnFirstElement$$4$$, (new $AdfContentFetchEvent$$($agent$$inline_2065_component$$1092$$, $AdfContentFetchEvent$$.$FETCH_EVENT_TYPE$, $agent$$334_clientId$$215_params$$36_scrollBoxSubId$$inline_2076$$)).$queue$(), 
    this.$_showFetchingDataPopup$()
  }else {
    if("fetching" == this.$_getLazyState$()) {
      $AdfLogger$$.$LOGGER$.info("Currently waiting on menu content fetch: " + $agent$$inline_2065_component$$1092$$.$getClientId$())
    }else {
      if($menuElement_popupFocusHint_rootElement$$59$$ = $JSCompiler_StaticMethods__getMenuElement$$(this), "block" == $menuElement_popupFocusHint_rootElement$$59$$.style.display) {
        $agent$$334_clientId$$215_params$$36_scrollBoxSubId$$inline_2076$$ = $AdfAgent$$.$AGENT$, $agent$$334_clientId$$215_params$$36_scrollBoxSubId$$inline_2076$$.$getDomWindow$().$AdfSafariMobileAgent$ && $agent$$334_clientId$$215_params$$36_scrollBoxSubId$$inline_2076$$ instanceof $AdfSafariMobileAgent$$ ? $AdfFocusUtils$$.$focusPreviousTabStop$($menuElement_popupFocusHint_rootElement$$59$$) : $focusOnFirstElement$$4$$ && $AdfFocusUtils$$.$focusElement$(this.$_activeDescendant$)
      }else {
        this.$resetActiveDescendant$();
        var $closeSubId$$inline_2066_handleSubId$$inline_2067_hints$$78_scrollContentSubId$$inline_2068_visibleItems$$inline_2070$$ = $JSCompiler_StaticMethods__createMenuPopupHints$$(this, $popupHints$$1$$, $focusOnFirstElement$$4$$);
        $menuElement_popupFocusHint_rootElement$$59$$.style.display = "block";
        var $elemsInitialized_menuItems$$inline_2069_scrollDownBackgroundSubId$$inline_2075_scrollDownSubId$$inline_2074_scrollUpBackgroundSubId$$inline_2073_scrollUpSubId$$inline_2072$$ = this.$_elemsInitialized$;
        $elemsInitialized_menuItems$$inline_2069_scrollDownBackgroundSubId$$inline_2075_scrollDownSubId$$inline_2074_scrollUpBackgroundSubId$$inline_2073_scrollUpSubId$$inline_2072$$ || ($menuElement_popupFocusHint_rootElement$$59$$.style.visibility = "hidden");
        this.$showPopup$($agent$$inline_2065_component$$1092$$, $menuElement_popupFocusHint_rootElement$$59$$, $closeSubId$$inline_2066_handleSubId$$inline_2067_hints$$78_scrollContentSubId$$inline_2068_visibleItems$$inline_2070$$, $agent$$334_clientId$$215_params$$36_scrollBoxSubId$$inline_2076$$);
        if(!$elemsInitialized_menuItems$$inline_2069_scrollDownBackgroundSubId$$inline_2075_scrollDownSubId$$inline_2074_scrollUpBackgroundSubId$$inline_2073_scrollUpSubId$$inline_2072$$) {
          $agent$$inline_2065_component$$1092$$ = $AdfAgent$$.$AGENT$;
          this.$getComponent$().getDetachable() && ($closeSubId$$inline_2066_handleSubId$$inline_2067_hints$$78_scrollContentSubId$$inline_2068_visibleItems$$inline_2070$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$334_clientId$$215_params$$36_scrollBoxSubId$$inline_2076$$, "close"), this.$_closeElement$ = $agent$$inline_2065_component$$1092$$.getElementById($closeSubId$$inline_2066_handleSubId$$inline_2067_hints$$78_scrollContentSubId$$inline_2068_visibleItems$$inline_2070$$), this.$_closeDetachedMenuCallback$ = 
          this.$createCallback$(this.$_closeDetachedMenu$), $agent$$inline_2065_component$$1092$$.$addBubbleEventListener$(this.$_closeElement$, "click", this.$_closeDetachedMenuCallback$), $closeSubId$$inline_2066_handleSubId$$inline_2067_hints$$78_scrollContentSubId$$inline_2068_visibleItems$$inline_2070$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$334_clientId$$215_params$$36_scrollBoxSubId$$inline_2076$$, "handle"), this.$_handleElement$ = $agent$$inline_2065_component$$1092$$.getElementById($closeSubId$$inline_2066_handleSubId$$inline_2067_hints$$78_scrollContentSubId$$inline_2068_visibleItems$$inline_2070$$), 
          this.$_stopCallback$ = this.$createCallback$(this.$_onHandleClick$), $agent$$inline_2065_component$$1092$$.$addBubbleEventListener$(this.$_handleElement$, "mousedown", this.$_stopCallback$));
          $closeSubId$$inline_2066_handleSubId$$inline_2067_hints$$78_scrollContentSubId$$inline_2068_visibleItems$$inline_2070$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$334_clientId$$215_params$$36_scrollBoxSubId$$inline_2076$$, "ScrollContent");
          this.$_scrollContentElement$ = $agent$$inline_2065_component$$1092$$.getElementById($closeSubId$$inline_2066_handleSubId$$inline_2067_hints$$78_scrollContentSubId$$inline_2068_visibleItems$$inline_2070$$);
          $elemsInitialized_menuItems$$inline_2069_scrollDownBackgroundSubId$$inline_2075_scrollDownSubId$$inline_2074_scrollUpBackgroundSubId$$inline_2073_scrollUpSubId$$inline_2072$$ = this.$_scrollContentElement$.rows;
          if($elemsInitialized_menuItems$$inline_2069_scrollDownBackgroundSubId$$inline_2075_scrollDownSubId$$inline_2074_scrollUpBackgroundSubId$$inline_2073_scrollUpSubId$$inline_2072$$.length < this.$_maxDisplayItems$) {
            this.$_areScrollButtonsDisplayed$ = $JSCompiler_alias_FALSE$$
          }else {
            $closeSubId$$inline_2066_handleSubId$$inline_2067_hints$$78_scrollContentSubId$$inline_2068_visibleItems$$inline_2070$$ = [];
            for(i = 0;i < $elemsInitialized_menuItems$$inline_2069_scrollDownBackgroundSubId$$inline_2075_scrollDownSubId$$inline_2074_scrollUpBackgroundSubId$$inline_2073_scrollUpSubId$$inline_2072$$.length;i++) {
              var $menuItem$$inline_2071$$ = $elemsInitialized_menuItems$$inline_2069_scrollDownBackgroundSubId$$inline_2075_scrollDownSubId$$inline_2074_scrollUpBackgroundSubId$$inline_2073_scrollUpSubId$$inline_2072$$[i];
              "none" != $menuItem$$inline_2071$$.style.display && $closeSubId$$inline_2066_handleSubId$$inline_2067_hints$$78_scrollContentSubId$$inline_2068_visibleItems$$inline_2070$$.push($menuItem$$inline_2071$$)
            }
            if(this.$_areScrollButtonsDisplayed$ = $closeSubId$$inline_2066_handleSubId$$inline_2067_hints$$78_scrollContentSubId$$inline_2068_visibleItems$$inline_2070$$.length > this.$_maxDisplayItems$) {
              $elemsInitialized_menuItems$$inline_2069_scrollDownBackgroundSubId$$inline_2075_scrollDownSubId$$inline_2074_scrollUpBackgroundSubId$$inline_2073_scrollUpSubId$$inline_2072$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$334_clientId$$215_params$$36_scrollBoxSubId$$inline_2076$$, "ScrollUp"), this.$_scrollUpElement$ = $agent$$inline_2065_component$$1092$$.getElementById($elemsInitialized_menuItems$$inline_2069_scrollDownBackgroundSubId$$inline_2075_scrollDownSubId$$inline_2074_scrollUpBackgroundSubId$$inline_2073_scrollUpSubId$$inline_2072$$), 
              this.$_scrollUpElement$.style.display = "block", $elemsInitialized_menuItems$$inline_2069_scrollDownBackgroundSubId$$inline_2075_scrollDownSubId$$inline_2074_scrollUpBackgroundSubId$$inline_2073_scrollUpSubId$$inline_2072$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$334_clientId$$215_params$$36_scrollBoxSubId$$inline_2076$$, "sUpBg"), this.$_scrollUpBackgroundElement$ = $agent$$inline_2065_component$$1092$$.getElementById($elemsInitialized_menuItems$$inline_2069_scrollDownBackgroundSubId$$inline_2075_scrollDownSubId$$inline_2074_scrollUpBackgroundSubId$$inline_2073_scrollUpSubId$$inline_2072$$), 
              $elemsInitialized_menuItems$$inline_2069_scrollDownBackgroundSubId$$inline_2075_scrollDownSubId$$inline_2074_scrollUpBackgroundSubId$$inline_2073_scrollUpSubId$$inline_2072$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$334_clientId$$215_params$$36_scrollBoxSubId$$inline_2076$$, "ScrollDown"), this.$_scrollDownElement$ = $agent$$inline_2065_component$$1092$$.getElementById($elemsInitialized_menuItems$$inline_2069_scrollDownBackgroundSubId$$inline_2075_scrollDownSubId$$inline_2074_scrollUpBackgroundSubId$$inline_2073_scrollUpSubId$$inline_2072$$), 
              this.$_scrollDownElement$.style.display = "block", $elemsInitialized_menuItems$$inline_2069_scrollDownBackgroundSubId$$inline_2075_scrollDownSubId$$inline_2074_scrollUpBackgroundSubId$$inline_2073_scrollUpSubId$$inline_2072$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$334_clientId$$215_params$$36_scrollBoxSubId$$inline_2076$$, "sDwnBg"), this.$_scrollDownBackgroundElement$ = $agent$$inline_2065_component$$1092$$.getElementById($elemsInitialized_menuItems$$inline_2069_scrollDownBackgroundSubId$$inline_2075_scrollDownSubId$$inline_2074_scrollUpBackgroundSubId$$inline_2073_scrollUpSubId$$inline_2072$$), 
              $agent$$334_clientId$$215_params$$36_scrollBoxSubId$$inline_2076$$ = $AdfRichUIPeer$$.$CreateSubId$($agent$$334_clientId$$215_params$$36_scrollBoxSubId$$inline_2076$$, "ScrollBox"), this.$_scrollBoxElement$ = $agent$$inline_2065_component$$1092$$.getElementById($agent$$334_clientId$$215_params$$36_scrollBoxSubId$$inline_2076$$), this.$_scrollBoxElement$.style.height = $closeSubId$$inline_2066_handleSubId$$inline_2067_hints$$78_scrollContentSubId$$inline_2068_visibleItems$$inline_2070$$[this.$_maxDisplayItems$].offsetTop - 
              2 - $closeSubId$$inline_2066_handleSubId$$inline_2067_hints$$78_scrollContentSubId$$inline_2068_visibleItems$$inline_2070$$[0].offsetTop + "px"
            }
          }
          $menuElement_popupFocusHint_rootElement$$59$$.style.visibility = "";
          this.$_elemsInitialized$ = $JSCompiler_alias_TRUE$$;
          this.$_areScrollButtonsDisplayed$ && $JSCompiler_StaticMethods__moveShadow$$(this)
        }
        this.$_areScrollButtonsDisplayed$ && this.$updateScrollIconsState$();
        this.$getComponent$().getDetachable() && ($JSCompiler_StaticMethods__isMenuVisible$$(this) && this.$_detachableWindow$ == $JSCompiler_alias_NULL$$) && (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$$1093$$, $element$$228$$, $hints$$79$$, $popupId$$56$$) {
  $AdfMenuUtils$$.$addOpenMenu$($popupId$$56$$);
  $AdfDhtmlMenuPeer$$.$superclass$.$showPopup$.call(this, $component$$1093$$, $element$$228$$, $hints$$79$$, $popupId$$56$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.showPopup", {$showPopup$:$AdfDhtmlMenuPeer$$.prototype.$showPopup$});
$AdfDhtmlMenuPeer$$.prototype.$hidePopup$ = function $$AdfDhtmlMenuPeer$$$$$hidePopup$$() {
  var $component$$1094$$ = this.$getComponent$(), $clientId$$216$$ = $component$$1094$$.$getClientId$();
  $clientId$$216$$ == $AdfDhtmlMenuPeer$$.$_reattachedMenuId$ && $AdfDhtmlMenuPeer$$.$_redetachMenu$();
  this.$isDetached$() || ($JSCompiler_StaticMethods__handleHideRequest$$(this, $clientId$$216$$), $AdfDhtmlMenuPeer$$.$superclass$.$hidePopup$.call(this, $component$$1094$$, $clientId$$216$$), 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$$1095$$ = this.$getComponent$(), $clientId$$217$$ = $component$$1095$$.$getClientId$();
  this.$isDetached$() ? $clientId$$217$$ == $AdfDhtmlMenuPeer$$.$_reattachedMenuId$ && $AdfDhtmlMenuPeer$$.$_redetachMenu$() : ($JSCompiler_StaticMethods__handleHideRequest$$(this, $clientId$$217$$), $AdfLogger$$.$LOGGER$.finest("menuBar auto open mode, set to OFF due to cancel popup event"), $AdfMenuUtils$$.$setMenuBarAutoOpenMode$($JSCompiler_alias_FALSE$$), $AdfDhtmlMenuPeer$$.$superclass$.$cancelPopup$.call(this, $component$$1095$$, $clientId$$217$$))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.cancelPopup", {$cancelPopup$:$AdfDhtmlMenuPeer$$.prototype.$cancelPopup$});
$AdfDhtmlMenuPeer$$.prototype.close = function $$AdfDhtmlMenuPeer$$$$close$($immediate$$4$$, $keepSelectedStyle$$) {
  var $component$$1096$$ = this.$getComponent$();
  if(this.$isDetached$()) {
    $AdfDomUtils$$.$addCSSClassName$($JSCompiler_StaticMethods__getMenuElement$$(this), $AdfMenuUtils$$.$DETACHED_STYLE_CLASS$);
    if(this.$_detachedMenuLeft$ && this.$_detachedMenuTop$) {
      var $clientId$$218_floatingElement$$13$$ = this.$_detachableWindow$.$getElement$();
      $clientId$$218_floatingElement$$13$$.style.left = this.$_detachedMenuLeft$;
      $clientId$$218_floatingElement$$13$$.style.top = this.$_detachedMenuTop$
    }
    $keepSelectedStyle$$ || this.$_deselectElement$();
    $clientId$$218_floatingElement$$13$$ = $component$$1096$$.$getClientId$();
    $AdfDhtmlMenuPeer$$.$_removeFromDetachedMenus$($clientId$$218_floatingElement$$13$$);
    $AdfDhtmlMenuPeer$$.$superclass$.$hidePopup$.call(this, $component$$1096$$, $clientId$$218_floatingElement$$13$$)
  }else {
    this.$isContextMenu$() ? $component$$1096$$.getParent().$hide$() : ($immediate$$4$$ ? this.$hidePopup$() : $JSCompiler_StaticMethods__delayPopupHiding$$(this), $keepSelectedStyle$$ || this.$_deselectElement$())
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.close", {close:$AdfDhtmlMenuPeer$$.prototype.close});
$AdfDhtmlMenuPeer$$.prototype.$isDetached$ = $JSCompiler_get$$("$_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$$335_n$$6$$ = $bottomItemBox_menuItems$$1$$.length, $topItemBox_topItemIndex$$ = 0, $bottomItemIndex$$ = 0, $i$$280_isAtScrollBottom$$ = 0;$i$$280_isAtScrollBottom$$ < $agent$$335_n$$6$$;$i$$280_isAtScrollBottom$$++) {
      var $containerBox$$1_isAtScrollTop_menuItem$$1$$ = $bottomItemBox_menuItems$$1$$[$i$$280_isAtScrollBottom$$];
      if("none" != $containerBox$$1_isAtScrollTop_menuItem$$1$$.style.display) {
        $topItemBox_topItemIndex$$ = $i$$280_isAtScrollBottom$$;
        break
      }
    }
    for($i$$280_isAtScrollBottom$$ = $agent$$335_n$$6$$ - 1;-1 < $i$$280_isAtScrollBottom$$;$i$$280_isAtScrollBottom$$--) {
      if($containerBox$$1_isAtScrollTop_menuItem$$1$$ = $bottomItemBox_menuItems$$1$$[$i$$280_isAtScrollBottom$$], "none" != $containerBox$$1_isAtScrollTop_menuItem$$1$$.style.display) {
        $bottomItemIndex$$ = $i$$280_isAtScrollBottom$$;
        break
      }
    }
    $agent$$335_n$$6$$ = $AdfAgent$$.$AGENT$;
    $i$$280_isAtScrollBottom$$ = $containerBox$$1_isAtScrollTop_menuItem$$1$$ = $JSCompiler_alias_FALSE$$;
    $containerBox$$1_isAtScrollTop_menuItem$$1$$ = $agent$$335_n$$6$$.$getElementPageBounds$(this.$_scrollBoxElement$);
    $topItemBox_topItemIndex$$ = $agent$$335_n$$6$$.$getElementPageBounds$($bottomItemBox_menuItems$$1$$[$topItemBox_topItemIndex$$]);
    $bottomItemBox_menuItems$$1$$ = $agent$$335_n$$6$$.$getElementPageBounds$($bottomItemBox_menuItems$$1$$[$bottomItemIndex$$]);
    $i$$280_isAtScrollBottom$$ = 90 <= 100 * (($containerBox$$1_isAtScrollTop_menuItem$$1$$.bottom - $bottomItemBox_menuItems$$1$$.top) / ($bottomItemBox_menuItems$$1$$.bottom - $bottomItemBox_menuItems$$1$$.top));
    ($containerBox$$1_isAtScrollTop_menuItem$$1$$ = 90 <= 100 * (($topItemBox_topItemIndex$$.bottom - $containerBox$$1_isAtScrollTop_menuItem$$1$$.top) / ($topItemBox_topItemIndex$$.bottom - $topItemBox_topItemIndex$$.top))) ? ($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$$280_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$:$JSCompiler_alias_TRUE$$, $includeDisplayNone$:$JSCompiler_alias_TRUE$$})
};
$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_2081_menuContent$$ = $AdfDomUtils$$.$getFirstChildElement$($newElement$$18$$);
    if($component$$inline_2081_menuContent$$ == $JSCompiler_alias_NULL$$) {
      $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_2081_menuContent$$);
      $AdfAgent$$.$AGENT$.$elementsAdded$($component$$inline_2081_menuContent$$);
      this.$_setLazyState$("contentLoaded");
      var $component$$inline_2081_menuContent$$ = this.$getComponent$(), $fetchingMsgId$$inline_2083_id$$inline_2082$$ = this.$getDomElement$().getAttribute("id"), $fetchingMsgId$$inline_2083_id$$inline_2082$$ = $AdfRichUIPeer$$.$CreateSubId$($fetchingMsgId$$inline_2083_id$$inline_2082$$, "lazy-fetch-message");
      $AdfDhtmlMenuPeer$$.$superclass$.$hidePopup$.call(this, $component$$inline_2081_menuContent$$, $fetchingMsgId$$inline_2083_id$$inline_2082$$);
      this.show(this.$_lazyFetchPopupHints$, this.$_lazyFetchFocusOnFirstElement$)
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.ReplaceDomElement", {$ReplaceDomElement$:$AdfDhtmlMenuPeer$$.prototype.$ReplaceDomElement$});
$AdfDhtmlMenuPeer$$.prototype.$PopupClosed$ = function $$AdfDhtmlMenuPeer$$$$$PopupClosed$$($component$$1098$$, $contentDom$$14$$) {
  var $parent$$46_rootElement$$61$$ = this.$getDomElement$();
  $AdfMenuUtils$$.$dismiss$($parent$$46_rootElement$$61$$, $JSCompiler_alias_TRUE$$, $JSCompiler_alias_FALSE$$);
  $contentDom$$14$$.style.display = "none";
  $AdfDhtmlMenuPeer$$.$superclass$.$PopupClosed$.call(this, $component$$1098$$, $contentDom$$14$$);
  $parent$$46_rootElement$$61$$.appendChild($contentDom$$14$$);
  this.$isContextMenu$() && ($parent$$46_rootElement$$61$$ = $component$$1098$$.getParent(), $AdfDhtmlPopupPeer$$.$__handlePopupCanceled$($parent$$46_rootElement$$61$$, $contentDom$$14$$), $parent$$46_rootElement$$61$$.$getPeer$().$PopupClosed$($parent$$46_rootElement$$61$$, $JSCompiler_alias_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$$62$$ = this.$getDomElement$();
    $AdfDomUtils$$.$removeCSSClassName$($rootElement$$62$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$);
    $AdfDomUtils$$.$removeCSSClassName$($rootElement$$62$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.HandleComponentMouseOut", {$HandleComponentMouseOut$:$AdfDhtmlMenuPeer$$.prototype.$HandleComponentMouseOut$});
$AdfDhtmlMenuPeer$$.prototype.$HandleComponentKeyUp$ = function $$AdfDhtmlMenuPeer$$$$$HandleComponentKeyUp$$($componentEvent$$244$$) {
  if(!$componentEvent$$244$$.$isCanceled$() && !this.$_isDisabled$()) {
    var $openMenu_rootElement$$63$$ = this.$getDomElement$(), $keyCode$$63_rootMenu$$ = $componentEvent$$244$$.$getKeyCode$(), $isSubMenu$$ = 1 < $JSCompiler_StaticMethods__getDepth$$(this), $component$$1099_containerElement$$4_firstChild$$5_isEventSource_lastChild$$2_parent$$47$$ = this.$getComponent$(), $eventSource$$20$$ = $componentEvent$$244$$.getSource();
    switch($keyCode$$63_rootMenu$$) {
      case $AdfKeyStroke$$.$HOME_KEY$:
        $eventSource$$20$$ != $component$$1099_containerElement$$4_firstChild$$5_isEventSource_lastChild$$2_parent$$47$$ && ($component$$1099_containerElement$$4_firstChild$$5_isEventSource_lastChild$$2_parent$$47$$ = $AdfFocusUtils$$.$getFirstFocusableDescendant$($JSCompiler_StaticMethods__getMenuElement$$(this)), this.$_updateActiveDescendant$($component$$1099_containerElement$$4_firstChild$$5_isEventSource_lastChild$$2_parent$$47$$), $AdfFocusUtils$$.$focusElement$($component$$1099_containerElement$$4_firstChild$$5_isEventSource_lastChild$$2_parent$$47$$), 
        $componentEvent$$244$$.cancel());
        return;
      case $AdfKeyStroke$$.$END_KEY$:
        $eventSource$$20$$ != $component$$1099_containerElement$$4_firstChild$$5_isEventSource_lastChild$$2_parent$$47$$ && ($component$$1099_containerElement$$4_firstChild$$5_isEventSource_lastChild$$2_parent$$47$$ = $AdfFocusUtils$$.$getLastFocusableDescendant$($JSCompiler_StaticMethods__getMenuElement$$(this)), this.$_updateActiveDescendant$($component$$1099_containerElement$$4_firstChild$$5_isEventSource_lastChild$$2_parent$$47$$), $AdfFocusUtils$$.$focusElement$($component$$1099_containerElement$$4_firstChild$$5_isEventSource_lastChild$$2_parent$$47$$), 
        $componentEvent$$244$$.cancel());
        return;
      case $AdfKeyStroke$$.$ENTER_KEY$:
        this.$_enterKeyDown$ && ($AdfDomUtils$$.$addCSSClassName$($openMenu_rootElement$$63$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$), this.show($JSCompiler_alias_NULL$$, $JSCompiler_alias_TRUE$$));
        this.$_enterKeyDown$ = $JSCompiler_alias_FALSE$$;
        $componentEvent$$244$$.cancel();
        return;
      case $AdfKeyStroke$$.$SPACE_KEY$:
        this.$_spaceKeyDown$ && ($AdfDomUtils$$.$addCSSClassName$($openMenu_rootElement$$63$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$), this.show($JSCompiler_alias_NULL$$, $JSCompiler_alias_TRUE$$));
        this.$_spaceKeyDown$ = $JSCompiler_alias_FALSE$$;
        $componentEvent$$244$$.cancel();
        return;
      case $AdfKeyStroke$$.$ESC_KEY$:
        this.$isDetached$() ? (this.$_closeDetachedMenu$(), $componentEvent$$244$$.cancel()) : $isSubMenu$$ ? $openMenu_rootElement$$63$$ != $AdfPage$$.$PAGE$.$_activeDomNode$ && (this.focus($component$$1099_containerElement$$4_firstChild$$5_isEventSource_lastChild$$2_parent$$47$$), this.close($JSCompiler_alias_TRUE$$, $JSCompiler_alias_TRUE$$), $componentEvent$$244$$.cancel()) : this.$isContextMenu$() ? ($AdfMenuUtils$$.$closeAllMenus$(), $openMenu_rootElement$$63$$.blur(), this.focus($component$$1099_containerElement$$4_firstChild$$5_isEventSource_lastChild$$2_parent$$47$$), 
        $component$$1099_containerElement$$4_firstChild$$5_isEventSource_lastChild$$2_parent$$47$$ = $component$$1099_containerElement$$4_firstChild$$5_isEventSource_lastChild$$2_parent$$47$$.getParent(), $component$$1099_containerElement$$4_firstChild$$5_isEventSource_lastChild$$2_parent$$47$$.$getPeer$().$hide$($component$$1099_containerElement$$4_firstChild$$5_isEventSource_lastChild$$2_parent$$47$$), $componentEvent$$244$$.cancel()) : ($AdfLogger$$.$LOGGER$.finest("menuBar auto open mode, set to OFF due to escape pressed while on a root menu"), 
        $AdfMenuUtils$$.$setMenuBarAutoOpenMode$($JSCompiler_alias_FALSE$$), $AdfMenuUtils$$.$closeAllMenus$($JSCompiler_alias_TRUE$$));
        return
    }
    $openMenu_rootElement$$63$$ = $JSCompiler_StaticMethods__isMenuVisible$$(this);
    $keyCode$$63_rootMenu$$ = this.$isRootMenu$();
    $component$$1099_containerElement$$4_firstChild$$5_isEventSource_lastChild$$2_parent$$47$$ = $componentEvent$$244$$.getSource() == $component$$1099_containerElement$$4_firstChild$$5_isEventSource_lastChild$$2_parent$$47$$;
    if($openMenu_rootElement$$63$$ && $keyCode$$63_rootMenu$$ || !$component$$1099_containerElement$$4_firstChild$$5_isEventSource_lastChild$$2_parent$$47$$) {
      $component$$1099_containerElement$$4_firstChild$$5_isEventSource_lastChild$$2_parent$$47$$ = this.$_scrollContentElement$ || $JSCompiler_StaticMethods__getMenuElement$$(this), $AdfDhtmlMenuPeer$$.$_handleMenuItemAccessKeys$($component$$1099_containerElement$$4_firstChild$$5_isEventSource_lastChild$$2_parent$$47$$, $componentEvent$$244$$)
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.HandleComponentKeyUp", {$HandleComponentKeyUp$:$AdfDhtmlMenuPeer$$.prototype.$HandleComponentKeyUp$});
$AdfDhtmlMenuPeer$$.prototype.$HandleComponentKeyDown$ = function $$AdfDhtmlMenuPeer$$$$$HandleComponentKeyDown$$($componentEvent$$245$$) {
  if(!$componentEvent$$245$$.$isCanceled$() && !this.$_isDisabled$()) {
    var $keyCode$$64$$ = $componentEvent$$245$$.$getKeyCode$(), $agent$$337$$ = $AdfAgent$$.$AGENT$;
    $keyCode$$64$$ == $AdfKeyStroke$$.$ENTER_KEY$ ? (this.$_enterKeyDown$ = $JSCompiler_alias_TRUE$$, $componentEvent$$245$$.cancel(), $componentEvent$$245$$.$stopBubbling$()) : $keyCode$$64$$ == $AdfKeyStroke$$.$SPACE_KEY$ ? (this.$_spaceKeyDown$ = $JSCompiler_alias_TRUE$$, $componentEvent$$245$$.cancel(), $componentEvent$$245$$.$stopBubbling$()) : $agent$$337$$.$getPreferredKeyEventForRepetition$() == $AdfUIInputEvent$$.$KEY_DOWN_EVENT_TYPE$ && this.$_handleArrowKeys$($keyCode$$64$$, $componentEvent$$245$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.HandleComponentKeyDown", {$HandleComponentKeyDown$:$AdfDhtmlMenuPeer$$.prototype.$HandleComponentKeyDown$});
$AdfDhtmlMenuPeer$$.prototype.$HandleComponentKeyPress$ = function $$AdfDhtmlMenuPeer$$$$$HandleComponentKeyPress$$($componentEvent$$246$$) {
  if(!$componentEvent$$246$$.$isCanceled$() && !this.$_isDisabled$() && $AdfAgent$$.$AGENT$.$getPreferredKeyEventForRepetition$() == $AdfUIInputEvent$$.$KEY_PRESS_EVENT_TYPE$) {
    var $keyCode$$65$$ = $componentEvent$$246$$.$getKeyCode$();
    this.$_handleArrowKeys$($keyCode$$65$$, $componentEvent$$246$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.HandleComponentKeyPress", {$HandleComponentKeyPress$:$AdfDhtmlMenuPeer$$.prototype.$HandleComponentKeyPress$});
$AdfDhtmlMenuPeer$$.prototype.$HandleComponentFocus$ = function $$AdfDhtmlMenuPeer$$$$$HandleComponentFocus$$($componentEvent$$247$$) {
  var $clientId$$219_compElement$$5_eventSource$$21_focusableElement$$1_rootElement$$64$$ = $componentEvent$$247$$.getSource(), $menuComponent$$ = this.$getComponent$();
  $clientId$$219_compElement$$5_eventSource$$21_focusableElement$$1_rootElement$$64$$ == $menuComponent$$ ? ($clientId$$219_compElement$$5_eventSource$$21_focusableElement$$1_rootElement$$64$$ = this.$getDomElement$(), 1 < $JSCompiler_StaticMethods__getDepth$$(this) ? $AdfDomUtils$$.$addCSSClassName$($clientId$$219_compElement$$5_eventSource$$21_focusableElement$$1_rootElement$$64$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$) : $AdfMenuUtils$$.$isMenuBarAutoOpenMode$() ? ($AdfMenuUtils$$.$dismiss$($clientId$$219_compElement$$5_eventSource$$21_focusableElement$$1_rootElement$$64$$, 
  $JSCompiler_alias_TRUE$$), $AdfDomUtils$$.$addCSSClassName$($clientId$$219_compElement$$5_eventSource$$21_focusableElement$$1_rootElement$$64$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$), this.show($JSCompiler_alias_NULL$$, $JSCompiler_alias_FALSE$$)) : $AdfMenuUtils$$.$highlightRootMenuItem$($clientId$$219_compElement$$5_eventSource$$21_focusableElement$$1_rootElement$$64$$)) : $clientId$$219_compElement$$5_eventSource$$21_focusableElement$$1_rootElement$$64$$.getParent() == $menuComponent$$ && 
  ($clientId$$219_compElement$$5_eventSource$$21_focusableElement$$1_rootElement$$64$$ = $clientId$$219_compElement$$5_eventSource$$21_focusableElement$$1_rootElement$$64$$.$getClientId$(), $clientId$$219_compElement$$5_eventSource$$21_focusableElement$$1_rootElement$$64$$ = $AdfAgent$$.$AGENT$.getElementById($clientId$$219_compElement$$5_eventSource$$21_focusableElement$$1_rootElement$$64$$), ($clientId$$219_compElement$$5_eventSource$$21_focusableElement$$1_rootElement$$64$$ = $AdfFocusUtils$$.$getFirstFocusableDescendant$($clientId$$219_compElement$$5_eventSource$$21_focusableElement$$1_rootElement$$64$$)) && 
  $clientId$$219_compElement$$5_eventSource$$21_focusableElement$$1_rootElement$$64$$ != this.$_activeDescendant$ && this.$_updateActiveDescendant$($clientId$$219_compElement$$5_eventSource$$21_focusableElement$$1_rootElement$$64$$));
  $componentEvent$$247$$.cancel()
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.HandleComponentFocus", {$HandleComponentFocus$:$AdfDhtmlMenuPeer$$.prototype.$HandleComponentFocus$});
$AdfDhtmlMenuPeer$$.prototype.$HandleComponentMouseOver$ = function $$AdfDhtmlMenuPeer$$$$$HandleComponentMouseOver$$($component$$1100_componentEvent$$248$$) {
  $JSCompiler_StaticMethods__cancelHiding$$(this);
  if(this.$_isDisabled$()) {
    $AdfMenuUtils$$.$isMenuBarAutoOpenMode$() && this.$isRootMenu$() && $AdfMenuUtils$$.$closeAllMenus$($JSCompiler_alias_FALSE$$)
  }else {
    if(!$component$$1100_componentEvent$$248$$.$isCanceled$()) {
      var $agent$$338$$ = $AdfAgent$$.$AGENT$, $nativeEvent$$33$$ = $component$$1100_componentEvent$$248$$.$getNativeEvent$(), $rootElement$$65$$ = this.$getDomElement$();
      $agent$$338$$.$isEventInElement$($nativeEvent$$33$$, $rootElement$$65$$) && ($component$$1100_componentEvent$$248$$.cancel(), this.$isContextMenu$() || ($component$$1100_componentEvent$$248$$ = this.$getComponent$(), 1 < $JSCompiler_StaticMethods__getDepth$$(this) ? ($AdfDomUtils$$.$addCSSClassName$($rootElement$$65$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$), $AdfMenuUtils$$.$dismiss$($rootElement$$65$$, $JSCompiler_alias_FALSE$$), $AdfDhtmlMenuPeer$$.$cancelShowing$(), $AdfDhtmlMenuPeer$$.$_popupShowingHandle$ = 
      $AdfPage$$.$PAGE$.$getDomWindow$().setTimeout(this.$createCallback$(this.$_delayShowCallback$), $AdfDhtmlMenuPeer$$.$_OPEN_CLOSE_DELAY$), $AdfDhtmlMenuPeer$$.$_popupPeerWaitingForShow$ = this, $AdfFocusUtils$$.$containsFocus$($rootElement$$65$$) || this.focus($component$$1100_componentEvent$$248$$)) : !$JSCompiler_StaticMethods__isMenuVisible$$(this) && !$AdfMenuUtils$$.$isMenuBarAutoOpenMode$() ? $AdfMenuUtils$$.$highlightRootMenuItem$($rootElement$$65$$) : ($AdfMenuUtils$$.$isMenuBarAutoOpenMode$() && 
      ($AdfMenuUtils$$.$dismiss$($rootElement$$65$$, $JSCompiler_alias_TRUE$$), $AdfDomUtils$$.$addCSSClassName$($rootElement$$65$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$), this.show($JSCompiler_alias_NULL$$, $JSCompiler_alias_FALSE$$)), $AdfFocusUtils$$.$containsFocus$($rootElement$$65$$) || this.focus($component$$1100_componentEvent$$248$$))))
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.HandleComponentMouseOver", {$HandleComponentMouseOver$:$AdfDhtmlMenuPeer$$.prototype.$HandleComponentMouseOver$});
$AdfDhtmlMenuPeer$$.prototype.$HandleComponentMouseDown$ = function $$AdfDhtmlMenuPeer$$$$$HandleComponentMouseDown$$($componentEvent$$249_isScrollDownElement$$) {
  if(!this.$_isDisabled$() && $componentEvent$$249_isScrollDownElement$$.$isLeftButtonPressed$()) {
    var $agent$$339_domWindow$$98_isMobile$$ = $AdfAgent$$.$AGENT$, $domEvent$$47_scrollButtonDIV$$ = $componentEvent$$249_isScrollDownElement$$.$getNativeEvent$(), $rootElement$$66$$ = this.$getDomElement$(), $isScrollUpElement$$ = this.$_scrollUpElement$ && $agent$$339_domWindow$$98_isMobile$$.$isEventInElement$($domEvent$$47_scrollButtonDIV$$, this.$_scrollUpElement$);
    $componentEvent$$249_isScrollDownElement$$ = this.$_scrollDownElement$ && $agent$$339_domWindow$$98_isMobile$$.$isEventInElement$($domEvent$$47_scrollButtonDIV$$, this.$_scrollDownElement$);
    $isScrollUpElement$$ || $componentEvent$$249_isScrollDownElement$$ ? ($agent$$339_domWindow$$98_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$$339_domWindow$$98_isMobile$$.$getCapabilities$()[$AdfAgent$$.$CAP_TOUCH_SCREEN$] != 
    $AdfAgent$$.$CAP_TOUCH_SCREEN_NONE$ ? $JSCompiler_StaticMethods__startScroll$$(this, $componentEvent$$249_isScrollDownElement$$, $JSCompiler_alias_TRUE$$) : $JSCompiler_StaticMethods__startScroll$$(this, $componentEvent$$249_isScrollDownElement$$)) : $agent$$339_domWindow$$98_isMobile$$.$isEventInElement$($domEvent$$47_scrollButtonDIV$$, $rootElement$$66$$) && ($agent$$339_domWindow$$98_isMobile$$.$eatEvent$($domEvent$$47_scrollButtonDIV$$), $AdfDomUtils$$.$addCSSClassName$($rootElement$$66$$, 
    $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$), this.$isContextMenu$() || ($agent$$339_domWindow$$98_isMobile$$ = $AdfPage$$.$PAGE$.$getDomWindow$(), $agent$$339_domWindow$$98_isMobile$$ = Boolean($agent$$339_domWindow$$98_isMobile$$.$AdfSafariMobileAgent$ && $AdfAgent$$.$AGENT$ instanceof $AdfSafariMobileAgent$$), 1 < $JSCompiler_StaticMethods__getDepth$$(this) ? this.show($JSCompiler_alias_NULL$$, $agent$$339_domWindow$$98_isMobile$$) : $JSCompiler_StaticMethods__isMenuVisible$$(this) ? (this.close($JSCompiler_alias_TRUE$$, 
    $JSCompiler_alias_TRUE$$), $AdfLogger$$.$LOGGER$.finest("menuBar auto open mode, set to OFF due to menu clicked while menu IS visible"), $AdfMenuUtils$$.$setMenuBarAutoOpenMode$($JSCompiler_alias_FALSE$$)) : (this.show($JSCompiler_alias_NULL$$, $agent$$339_domWindow$$98_isMobile$$), $AdfLogger$$.$LOGGER$.finest("menuBar auto open mode, set to ON due to menu clicked while menu IS NOT visible"), $AdfMenuUtils$$.$setMenuBarAutoOpenMode$($JSCompiler_alias_TRUE$$))))
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.HandleComponentMouseDown", {$HandleComponentMouseDown$:$AdfDhtmlMenuPeer$$.prototype.$HandleComponentMouseDown$});
$AdfDhtmlMenuPeer$$.prototype.$HandleComponentMouseUp$ = function $$AdfDhtmlMenuPeer$$$$$HandleComponentMouseUp$$($componentEvent$$250_isScrollUpElement$$1$$) {
  if(!this.$_isDisabled$() && $componentEvent$$250_isScrollUpElement$$1$$.$isLeftButtonPressed$()) {
    var $agent$$340_isScrollDownElement$$1$$ = $AdfAgent$$.$AGENT$, $domEvent$$48$$ = $componentEvent$$250_isScrollUpElement$$1$$.$getNativeEvent$();
    this.$_handleElement$ && $AdfDomUtils$$.$removeCSSClassName$(this.$_handleElement$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$);
    $componentEvent$$250_isScrollUpElement$$1$$ = this.$_scrollUpElement$ && $agent$$340_isScrollDownElement$$1$$.$isEventInElement$($domEvent$$48$$, this.$_scrollUpElement$);
    $agent$$340_isScrollDownElement$$1$$ = this.$_scrollDownElement$ && $agent$$340_isScrollDownElement$$1$$.$isEventInElement$($domEvent$$48$$, this.$_scrollDownElement$);
    if($componentEvent$$250_isScrollUpElement$$1$$ || $agent$$340_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$$67$$ = 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$$67$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$);
  (this.$isDetached$() || !$JSCompiler_StaticMethods__isMenuVisible$$(this)) && $AdfDomUtils$$.$removeCSSClassName$($rootElement$$67$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.HandleComponentBlur", {$HandleComponentBlur$:$AdfDhtmlMenuPeer$$.prototype.$HandleComponentBlur$});
$AdfDhtmlMenuPeer$$.prototype.$ComponentRemoved$ = function $$AdfDhtmlMenuPeer$$$$$ComponentRemoved$$($component$$1101$$) {
  var $clientId$$220$$ = $component$$1101$$.$getClientId$();
  $AdfMenuUtils$$.$isMenuOpen$($clientId$$220$$) ? this.$hidePopup$() : this.$isDetached$() && this.$_closeDetachedMenu$();
  if(this.$getComponent$().getDetachable()) {
    var $agent$$341$$ = $AdfAgent$$.$AGENT$, $closeDetachedMenuCallback_stopCallback$$ = this.$_closeDetachedMenuCallback$;
    $closeDetachedMenuCallback_stopCallback$$ && $agent$$341$$.$removeBubbleEventListener$(this.$_closeElement$, "click", $closeDetachedMenuCallback_stopCallback$$);
    delete this.$_closeElement$;
    delete this.$_closeDetachedMenuCallback$;
    ($closeDetachedMenuCallback_stopCallback$$ = this.$_stopCallback$) && $agent$$341$$.$removeBubbleEventListener$(this.$_handleElement$, "mousedown", $closeDetachedMenuCallback_stopCallback$$);
    delete this.$_handleElement$;
    delete this.$_stopCallback$
  }
  1 < $JSCompiler_StaticMethods__getDepth$$(this) || $AdfDhtmlMenuPeer$$.$_removeBarMenu$($clientId$$220$$);
  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$$1101$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.ComponentRemoved", {$ComponentRemoved$:$AdfDhtmlMenuPeer$$.prototype.$ComponentRemoved$});
$AdfDhtmlMenuPeer$$.prototype.$ComponentDisabledChanged$ = function $$AdfDhtmlMenuPeer$$$$$ComponentDisabledChanged$$($component$$1102$$, $domElement$$295$$, $newValue$$95$$) {
  $AdfMenuUtils$$.$menuItemDisabledChanged$($component$$1102$$, $domElement$$295$$, $newValue$$95$$, $JSCompiler_StaticMethods__getMenuElement$$(this))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.ComponentDisabledChanged", {$ComponentDisabledChanged$:$AdfDhtmlMenuPeer$$.prototype.$ComponentDisabledChanged$});
$AdfDhtmlMenuPeer$$.prototype.$ComponentVisibleChanged$ = function $$AdfDhtmlMenuPeer$$$$$ComponentVisibleChanged$$($component$$1103$$, $domElement$$296$$, $newValue$$96$$, $oldValue$$68$$) {
  $AdfDhtmlMenuPeer$$.$superclass$.$ComponentVisibleChanged$.call(this, $component$$1103$$, $domElement$$296$$, $newValue$$96$$, $oldValue$$68$$);
  $AdfMenuUtils$$.$menuItemVisibleChanged$($component$$1103$$, $domElement$$296$$, $newValue$$96$$, $JSCompiler_StaticMethods__getMenuElement$$(this))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.ComponentVisibleChanged", {$ComponentVisibleChanged$:$AdfDhtmlMenuPeer$$.prototype.$ComponentVisibleChanged$});
$AdfDhtmlMenuPeer$$.prototype.$ComponentTextChanged$ = function $$AdfDhtmlMenuPeer$$$$$ComponentTextChanged$$($component$$1104$$, $domElement$$297_textElement$$7$$, $newValue$$97$$, $oldValue$$69$$) {
  return $oldValue$$69$$ != $JSCompiler_alias_NULL$$ && ($domElement$$297_textElement$$7$$ = $AdfDomUtils$$.$getFirstDescendentElement$($domElement$$297_textElement$$7$$, "A")) ? $AdfDomUtils$$.$handleTextChangeWithAccessKey$($component$$1104$$, $domElement$$297_textElement$$7$$, $newValue$$97$$) : $JSCompiler_alias_FALSE$$
};
$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$ = $JSCompiler_set$$("$_maxDisplayItems$");
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.setVisibleItems", {$setVisibleItems$:$AdfDhtmlMenuPeer$$.prototype.$setVisibleItems$});
$AdfDhtmlMenuPeer$$.prototype.$__preferredSizeChangeNotify$ = function $$AdfDhtmlMenuPeer$$$$$__preferredSizeChangeNotify$$($component$$1105_parent$$48$$) {
  this.bind($component$$1105_parent$$48$$);
  if(this.$isRootMenu$()) {
    $component$$1105_parent$$48$$ = this.$getComponentParent$($component$$1105_parent$$48$$);
    var $parentPeer$$13$$ = $component$$1105_parent$$48$$ != $JSCompiler_alias_NULL$$ ? $component$$1105_parent$$48$$.$getPeer$() : $JSCompiler_alias_NULL$$;
    $parentPeer$$13$$ && $parentPeer$$13$$.$__preferredSizeChangeNotify$ && $parentPeer$$13$$.$__preferredSizeChangeNotify$($component$$1105_parent$$48$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.__preferredSizeChangeNotify", {$__preferredSizeChangeNotify$:$AdfDhtmlMenuPeer$$.prototype.$__preferredSizeChangeNotify$});
$AdfDhtmlMenuPeer$$.$_redetachMenu$ = function $$AdfDhtmlMenuPeer$$$$_redetachMenu$$() {
  var $component$$1106_peer$$105_reattachedMenuId$$ = $AdfDhtmlMenuPeer$$.$_reattachedMenuId$;
  if($component$$1106_peer$$105_reattachedMenuId$$ != $JSCompiler_alias_NULL$$) {
    if($component$$1106_peer$$105_reattachedMenuId$$ = $AdfPage$$.$PAGE$.$findComponent$($component$$1106_peer$$105_reattachedMenuId$$)) {
      if(($component$$1106_peer$$105_reattachedMenuId$$ = $component$$1106_peer$$105_reattachedMenuId$$.$getPeer$()) && $component$$1106_peer$$105_reattachedMenuId$$ instanceof $AdfDhtmlMenuPeer$$ && $component$$1106_peer$$105_reattachedMenuId$$.$_detachableWindow$) {
        var $floatingElement$$14_pos$$20$$ = $component$$1106_peer$$105_reattachedMenuId$$.$_detachableWindow$.$getElement$();
        $floatingElement$$14_pos$$20$$.style.left = $component$$1106_peer$$105_reattachedMenuId$$.$_detachedMenuLeft$;
        $floatingElement$$14_pos$$20$$.style.top = $component$$1106_peer$$105_reattachedMenuId$$.$_detachedMenuTop$;
        var $floatingElement$$14_pos$$20$$ = {y:$component$$1106_peer$$105_reattachedMenuId$$.$_detachedMenuTop$, x:$component$$1106_peer$$105_reattachedMenuId$$.$_detachedMenuLeft$}, $menuPopup$$ = $JSCompiler_StaticMethods__getMenuPopup$$($component$$1106_peer$$105_reattachedMenuId$$);
        $menuPopup$$ && $menuPopup$$.$setAlignPosition$($floatingElement$$14_pos$$20$$);
        $JSCompiler_StaticMethods__makeDetached$$($component$$1106_peer$$105_reattachedMenuId$$)
      }
    }
    $AdfDhtmlMenuPeer$$.$_reattachedMenuId$ = $JSCompiler_alias_NULL$$
  }
};
$AdfDhtmlMenuPeer$$.$_focusNextDetachedMenuKeyHandler$ = function $$AdfDhtmlMenuPeer$$$$_focusNextDetachedMenuKeyHandler$$() {
  if(!$AdfCollections$$.$isEmpty$($AdfDhtmlMenuPeer$$.$_sDetachedMenus$)) {
    var $nextClientId_numDetachedMenus$$, $index$$121_lastClientId_nextMenu$$ = $AdfDhtmlMenuPeer$$.$_lastSelectedDetachableMenuId$;
    $index$$121_lastClientId_nextMenu$$ == $JSCompiler_alias_NULL$$ ? $nextClientId_numDetachedMenus$$ = $AdfDhtmlMenuPeer$$.$_sDetachedMenus$[0] : ($nextClientId_numDetachedMenus$$ = $AdfDhtmlMenuPeer$$.$_sDetachedMenus$.length, 1 == $nextClientId_numDetachedMenus$$ ? $nextClientId_numDetachedMenus$$ = $AdfDhtmlMenuPeer$$.$_sDetachedMenus$[0] : ($index$$121_lastClientId_nextMenu$$ = $AdfCollections$$.indexOf($AdfDhtmlMenuPeer$$.$_sDetachedMenus$, $index$$121_lastClientId_nextMenu$$), $nextClientId_numDetachedMenus$$ = 
    $index$$121_lastClientId_nextMenu$$ >= $nextClientId_numDetachedMenus$$ - 1 ? $AdfDhtmlMenuPeer$$.$_sDetachedMenus$[0] : $AdfDhtmlMenuPeer$$.$_sDetachedMenus$[$index$$121_lastClientId_nextMenu$$ + 1]));
    if($index$$121_lastClientId_nextMenu$$ = $AdfPage$$.$PAGE$.$findComponent$($nextClientId_numDetachedMenus$$)) {
      var $nextPeer$$ = $index$$121_lastClientId_nextMenu$$.$getPeer$();
      $nextPeer$$.bind($index$$121_lastClientId_nextMenu$$);
      ($nextPeer$$.$_activeDescendant$ == $JSCompiler_alias_NULL$$ || !$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$$221$$) {
  var $agent$$342$$ = $AdfAgent$$.$AGENT$;
  if($AdfCollections$$.$isEmpty$($AdfDhtmlMenuPeer$$.$_sDetachedMenus$)) {
    if($agent$$342$$.$getPlatform$() == $AdfAgent$$.$GECKO_PLATFORM$) {
      var $doc$$44$$ = $AdfPage$$.$PAGE$.$getDomDocument$();
      $agent$$342$$.$addBubbleEventListener$($doc$$44$$, "keypress", $AdfDhtmlMenuPeer$$.$_cancelKeyPress$)
    }
    $AdfPage$$.$PAGE$.$registerKeyStroke$($AdfDhtmlMenuPeer$$.$_focusDetachedMenuKeyStroke$, $AdfDhtmlMenuPeer$$.$_focusNextDetachedMenuKeyHandler$)
  }
  0 > $AdfCollections$$.indexOf($AdfDhtmlMenuPeer$$.$_sDetachedMenus$, $clientId$$221$$) && ($AdfDhtmlMenuPeer$$.$_lastSelectedDetachableMenuId$ = $clientId$$221$$, $AdfDhtmlMenuPeer$$.$_sDetachedMenus$.push($clientId$$221$$))
};
$AdfDhtmlMenuPeer$$.$_removeFromDetachedMenus$ = function $$AdfDhtmlMenuPeer$$$$_removeFromDetachedMenus$$($agent$$343_clientId$$222$$) {
  $AdfCollections$$.$removeArrayValue$($AdfDhtmlMenuPeer$$.$_sDetachedMenus$, $agent$$343_clientId$$222$$);
  var $allDetachableMenusClosed_doc$$45$$ = $AdfCollections$$.$isEmpty$($AdfDhtmlMenuPeer$$.$_sDetachedMenus$);
  if($allDetachableMenusClosed_doc$$45$$ || $agent$$343_clientId$$222$$ == $AdfDhtmlMenuPeer$$.$_lastSelectedDetachableMenuId$) {
    $AdfDhtmlMenuPeer$$.$_lastSelectedDetachableMenuId$ = $JSCompiler_alias_NULL$$
  }
  $allDetachableMenusClosed_doc$$45$$ && ($AdfPage$$.$PAGE$.$unregisterKeyStroke$($AdfDhtmlMenuPeer$$.$_focusDetachedMenuKeyStroke$), $agent$$343_clientId$$222$$ = $AdfAgent$$.$AGENT$, $agent$$343_clientId$$222$$.$getPlatform$() == $AdfAgent$$.$GECKO_PLATFORM$ && ($allDetachableMenusClosed_doc$$45$$ = $AdfPage$$.$PAGE$.$getDomDocument$(), $agent$$343_clientId$$222$$.$removeBubbleEventListener$($allDetachableMenusClosed_doc$$45$$, "keypress", $AdfDhtmlMenuPeer$$.$_cancelKeyPress$)))
};
$AdfDhtmlMenuPeer$$.$_cancelKeyPress$ = function $$AdfDhtmlMenuPeer$$$$_cancelKeyPress$$($event$$176$$) {
  var $keyCode$$66$$ = $AdfAgent$$.$AGENT$.$getKeyCode$($event$$176$$);
  $event$$176$$.ctrlKey && ($event$$176$$.shiftKey && $keyCode$$66$$ == $AdfKeyStroke$$.$W_KEY$) && $AdfAgent$$.$AGENT$.$eatEvent$($event$$176$$)
};
$AdfDhtmlMenuPeer$$.$_menuBarKeyHandler$ = function $$AdfDhtmlMenuPeer$$$$_menuBarKeyHandler$$() {
  $AdfDhtmlMenuPeer$$.$_focusMenuBar$()
};
$AdfDhtmlMenuPeer$$.$_addBarMenu$ = function $$AdfDhtmlMenuPeer$$$$_addBarMenu$$($clientId$$223$$) {
  var $barMenus$$ = $AdfDhtmlMenuPeer$$.$_sBarMenus$;
  0 == $barMenus$$.length && $AdfPage$$.$PAGE$.$registerKeyStroke$($AdfDhtmlMenuPeer$$.$_menuBarKeyStroke$, $AdfDhtmlMenuPeer$$.$_menuBarKeyHandler$);
  $barMenus$$.push($clientId$$223$$)
};
$AdfDhtmlMenuPeer$$.$_removeBarMenu$ = function $$AdfDhtmlMenuPeer$$$$_removeBarMenu$$($clientId$$224$$) {
  var $barMenus$$1$$ = $AdfDhtmlMenuPeer$$.$_sBarMenus$;
  $AdfCollections$$.$removeArrayValue$($barMenus$$1$$, $clientId$$224$$);
  0 == $barMenus$$1$$.length && $AdfPage$$.$PAGE$.$unregisterKeyStroke$($AdfDhtmlMenuPeer$$.$_menuBarKeyStroke$)
};
$AdfDhtmlMenuPeer$$.$_focusMenuBar$ = function $$AdfDhtmlMenuPeer$$$$_focusMenuBar$$() {
  var $JSCompiler_StaticMethods__getParentId$self$$inline_2087_barElement$$8_barMenus$$2_component$$1107$$ = $AdfDhtmlMenuPeer$$.$_sBarMenus$;
  $AdfAssert$$.assert(1 < $JSCompiler_StaticMethods__getParentId$self$$inline_2087_barElement$$8_barMenus$$2_component$$1107$$.length);
  var $JSCompiler_StaticMethods__getParentId$self$$inline_2087_barElement$$8_barMenus$$2_component$$1107$$ = $AdfPage$$.$PAGE$.$findComponent$($JSCompiler_StaticMethods__getParentId$self$$inline_2087_barElement$$8_barMenus$$2_component$$1107$$[0]), $el$$inline_2088_parent$$49$$ = $JSCompiler_StaticMethods__getParentId$self$$inline_2087_barElement$$8_barMenus$$2_component$$1107$$.getParent();
  $AdfAssert$$.assert(!($el$$inline_2088_parent$$49$$ instanceof AdfRichMenu));
  $JSCompiler_StaticMethods__getParentId$self$$inline_2087_barElement$$8_barMenus$$2_component$$1107$$ = $JSCompiler_StaticMethods__getParentId$self$$inline_2087_barElement$$8_barMenus$$2_component$$1107$$.$getPeer$();
  if(!$JSCompiler_StaticMethods__getParentId$self$$inline_2087_barElement$$8_barMenus$$2_component$$1107$$.$_parentId$) {
    $el$$inline_2088_parent$$49$$ = $JSCompiler_StaticMethods__getParentId$self$$inline_2087_barElement$$8_barMenus$$2_component$$1107$$.$getDomElement$().parentNode;
    do {
      var $id$$inline_2089$$ = $el$$inline_2088_parent$$49$$.getAttribute("id"), $el$$inline_2088_parent$$49$$ = $el$$inline_2088_parent$$49$$.parentNode
    }while(!$id$$inline_2089$$ && $el$$inline_2088_parent$$49$$);
    $id$$inline_2089$$ && ($JSCompiler_StaticMethods__getParentId$self$$inline_2087_barElement$$8_barMenus$$2_component$$1107$$.$_parentId$ = $id$$inline_2089$$)
  }
  $JSCompiler_StaticMethods__getParentId$self$$inline_2087_barElement$$8_barMenus$$2_component$$1107$$ = $AdfAgent$$.$AGENT$.getElementById($JSCompiler_StaticMethods__getParentId$self$$inline_2087_barElement$$8_barMenus$$2_component$$1107$$.$_parentId$);
  $AdfFocusUtils$$.$focusFirstTabStop$($JSCompiler_StaticMethods__getParentId$self$$inline_2087_barElement$$8_barMenus$$2_component$$1107$$)
};
$AdfDhtmlMenuPeer$$.$_handleMenuItemAccessKeys$ = function $$AdfDhtmlMenuPeer$$$$_handleMenuItemAccessKeys$$($containerElement$$5$$, $componentEvent$$252$$) {
  var $keyPressed$$1_keyStroke$$13$$ = $componentEvent$$252$$.$getKeyStroke$(), $menuItemElements_modifiers$$10$$ = $keyPressed$$1_keyStroke$$13$$.$getModifiers$();
  if(!($menuItemElements_modifiers$$10$$ & $AdfKeyStroke$$.$CTRL_MASK$ || $menuItemElements_modifiers$$10$$ & $AdfKeyStroke$$.$ALT_MASK$ || $menuItemElements_modifiers$$10$$ & $AdfKeyStroke$$.$META_MASK$)) {
    $menuItemElements_modifiers$$10$$ & $AdfKeyStroke$$.$SHIFT_MASK$ && ($menuItemElements_modifiers$$10$$ >>= $AdfKeyStroke$$.$SHIFT_MASK$, $keyPressed$$1_keyStroke$$13$$ = $AdfKeyStroke$$.$getKeyStroke$($keyPressed$$1_keyStroke$$13$$.$getKeyCode$(), $menuItemElements_modifiers$$10$$));
    for(var $keyPressed$$1_keyStroke$$13$$ = $keyPressed$$1_keyStroke$$13$$.$toMarshalledString$().toUpperCase(), $menuItemElements_modifiers$$10$$ = $containerElement$$5$$.getElementsByTagName("tr"), $numItems$$1$$ = $menuItemElements_modifiers$$10$$.length, $i$$281$$ = 0;$i$$281$$ < $numItems$$1$$;$i$$281$$++) {
      var $menuItem$$2$$ = $menuItemElements_modifiers$$10$$[$i$$281$$];
      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$$252$$.cancel();
          break
        }
      }
    }
  }
};
$AdfDhtmlMenuPeer$$.prototype.$_handleArrowKeys$ = function $$AdfDhtmlMenuPeer$$$$$_handleArrowKeys$$($keyCode$$67$$, $componentEvent$$253$$) {
  var $cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$ = $componentEvent$$253$$.$getNativeEvent$();
  if($cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$.ctrlKey) {
    if(this.$isDetached$() || this.$_detachableWindow$ && $JSCompiler_StaticMethods__isMenuVisible$$(this)) {
      if($cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$ = $AdfAgent$$.$AGENT$.$getPlatform$() == $AdfAgent$$.$IE_PLATFORM$ ? 187 == $keyCode$$67$$ : 61 == $keyCode$$67$$, $componentEvent$$253$$.$getNativeEvent$().altKey && $cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$) {
        $JSCompiler_StaticMethods__moveDetachable$$(this, 0, 0), $componentEvent$$253$$.cancel()
      }else {
        $cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$ = $JSCompiler_alias_TRUE$$;
        switch($keyCode$$67$$) {
          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_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$ = $JSCompiler_alias_FALSE$$
        }
        $cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$ && $componentEvent$$253$$.cancel()
      }
    }
  }else {
    if(!$cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$.altKey && (!$cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$.shiftKey && !$cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$.metaKey) && 
    $componentEvent$$253$$.getSource() != this.$getComponent$()) {
      switch($cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$ = $componentEvent$$253$$.getSource().$getPeer$().$getDomElement$(), $keyCode$$67$$) {
        case $AdfKeyStroke$$.$ARROWUP_KEY$:
          $AdfAssert$$.$assertDomElement$(this.$_activeDescendant$);
          $AdfAssert$$.assert($cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$ == this.$_activeDescendant$);
          this.$_activeDescendant$ || ($AdfLogger$$.$LOGGER$.warning("Menu has lost its assigned activeDescendant!"), this.$resetActiveDescendant$());
          $cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$ = $AdfFocusUtils$$.$focusPreviousActiveDescendant$($JSCompiler_StaticMethods__getMenuElement$$(this), $cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$, 
          $JSCompiler_alias_TRUE$$);
          $AdfAssert$$.$assertDomElement$($cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$);
          this.$_activeDescendant$ = $cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$;
          this.$updateScrollIconsState$();
          $componentEvent$$253$$.cancel();
          break;
        case $AdfKeyStroke$$.$ARROWDOWN_KEY$:
          $AdfAssert$$.$assertDomElement$(this.$_activeDescendant$);
          $AdfAssert$$.assert($cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$ == this.$_activeDescendant$);
          this.$_activeDescendant$ || ($AdfLogger$$.$LOGGER$.warning("Menu has lost its assigned activeDescendant!"), this.$resetActiveDescendant$());
          $cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$ = $AdfFocusUtils$$.$focusNextActiveDescendant$($JSCompiler_StaticMethods__getMenuElement$$(this), $cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$, 
          $JSCompiler_alias_TRUE$$);
          $AdfAssert$$.$assertDomElement$($cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$);
          this.$_activeDescendant$ = $cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$;
          this.$updateScrollIconsState$();
          $componentEvent$$253$$.cancel();
          break;
        case $AdfKeyStroke$$.$ARROWLEFT_KEY$:
          $cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$ = this.$getComponent$();
          this.$isRootMenu$() ? (this.focus($cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$), this.close($JSCompiler_alias_TRUE$$, $JSCompiler_alias_TRUE$$), $AdfMenuUtils$$.$MenuBarAutoOpenMode$ = $JSCompiler_alias_FALSE$$) : !this.$isDetached$() && !this.$isContextMenu$() && (this.focus($cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$), 
          this.close($JSCompiler_alias_TRUE$$, $JSCompiler_alias_TRUE$$));
          $componentEvent$$253$$.cancel();
          break;
        case $AdfKeyStroke$$.$ARROWRIGHT_KEY$:
          $cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$ = $componentEvent$$253$$.getSource(), $cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$ instanceof AdfRichMenu ? ($cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$.$getPeer$().show($JSCompiler_alias_NULL$$, 
          $JSCompiler_alias_TRUE$$), $componentEvent$$253$$.cancel()) : this.$isDetached$() || this.$isContextMenu$() ? $componentEvent$$253$$.cancel() : this.$isRootMenu$() && ($cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$ = this.$getComponent$(), this.focus($cancelEvent$$inline_2095_component$$inline_2107_component$$inline_2112_eventComponent$$inline_2111_evt$$103_isEqualsKey$$inline_2094_nextItem$$inline_2103_previousItem$$inline_2099_rootElement$$68$$), 
          this.close($JSCompiler_alias_TRUE$$, $JSCompiler_alias_TRUE$$), $AdfLogger$$.$LOGGER$.finest("menuBar auto open mode, set to OFF due to right arrow key pressed on root menu item"), $AdfMenuUtils$$.$setMenuBarAutoOpenMode$($JSCompiler_alias_FALSE$$), $componentEvent$$253$$.cancel())
      }
    }
  }
};
$AdfDhtmlMenuPeer$$.prototype.$_onHandleClick$ = function $$AdfDhtmlMenuPeer$$$$$_onHandleClick$$($event$$178$$) {
  $AdfAgent$$.$AGENT$.$eatEvent$($event$$178$$);
  $AdfDomUtils$$.$addCSSClassName$(this.$_handleElement$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$)
};
function $JSCompiler_StaticMethods__createMenuPopupHints$$($JSCompiler_StaticMethods__createMenuPopupHints$self$$, $baseHints$$, $focusOnFirstElement$$5_menuTitle$$) {
  var $hints$$80$$ = {}, $rootElement$$71$$ = $JSCompiler_StaticMethods__createMenuPopupHints$self$$.$getDomElement$(), $component$$1112$$ = $JSCompiler_StaticMethods__createMenuPopupHints$self$$.$getComponent$();
  $hints$$80$$.type = "menu";
  $hints$$80$$.autodismiss = "autodismissMenu";
  $hints$$80$$.alignElement = $rootElement$$71$$;
  $hints$$80$$.focus = $focusOnFirstElement$$5_menuTitle$$ ? $JSCompiler_alias_TRUE$$ : $JSCompiler_alias_FALSE$$;
  $focusOnFirstElement$$5_menuTitle$$ = $component$$1112$$.getText();
  $focusOnFirstElement$$5_menuTitle$$ == $JSCompiler_alias_NULL$$ && ($focusOnFirstElement$$5_menuTitle$$ = $component$$1112$$.getShortDesc());
  $hints$$80$$.title = $focusOnFirstElement$$5_menuTitle$$;
  $hints$$80$$.animate = AdfRichPopup.$ANIMATE_DEFAULT$;
  $hints$$80$$.closeOnEscape = $JSCompiler_alias_FALSE$$;
  if($baseHints$$ == $JSCompiler_alias_NULL$$ || $baseHints$$.mousePosition == $JSCompiler_alias_NULL$$) {
    1 < $JSCompiler_StaticMethods__getDepth$$($JSCompiler_StaticMethods__createMenuPopupHints$self$$) || $AdfMenuUtils$$.$isInOverflow$($rootElement$$71$$) ? $hints$$80$$[AdfRichPopup.$HINT_ALIGN$] = AdfRichPopup.$ALIGN_END_BEFORE$ : $hints$$80$$[AdfRichPopup.$HINT_ALIGN$] = AdfRichPopup.$ALIGN_AFTER_START$
  }
  $AdfCollections$$.$copyInto$($hints$$80$$, $baseHints$$);
  return $hints$$80$$
}
$AdfDhtmlMenuPeer$$.prototype.$_showFetchingDataPopup$ = function $$AdfDhtmlMenuPeer$$$$$_showFetchingDataPopup$$() {
  var $agent$$345_fetchingMsgContainer_fetchingMsgElement$$ = $AdfAgent$$.$AGENT$, $component$$1113$$ = this.$getComponent$(), $fetchingMsgId_id$$291$$ = this.$getDomElement$().getAttribute("id"), $fetchingMsgId_id$$291$$ = $AdfRichUIPeer$$.$CreateSubId$($fetchingMsgId_id$$291$$, "lazy-fetch-message"), $agent$$345_fetchingMsgContainer_fetchingMsgElement$$ = $agent$$345_fetchingMsgContainer_fetchingMsgElement$$.getElementById($fetchingMsgId_id$$291$$), $agent$$345_fetchingMsgContainer_fetchingMsgElement$$ = 
  $AdfDomUtils$$.$getFirstChildElement$($agent$$345_fetchingMsgContainer_fetchingMsgElement$$), $hints$$81$$ = $JSCompiler_StaticMethods__createMenuPopupHints$$(this, $JSCompiler_alias_NULL$$, $JSCompiler_alias_FALSE$$);
  $hints$$81$$.type = "inlineSelector";
  $AdfDomUtils$$.setVisible($agent$$345_fetchingMsgContainer_fetchingMsgElement$$, $JSCompiler_alias_TRUE$$);
  $AdfDhtmlMenuPeer$$.$superclass$.$showPopup$.call(this, $component$$1113$$, $agent$$345_fetchingMsgContainer_fetchingMsgElement$$, $hints$$81$$, $fetchingMsgId_id$$291$$)
};
function $JSCompiler_StaticMethods__reattachMenu$$($JSCompiler_StaticMethods__reattachMenu$self$$) {
  if($JSCompiler_StaticMethods__reattachMenu$self$$.$isDetached$()) {
    var $clientId$$227_positionManager$$inline_2115_reattachPosition$$inline_2123_reattachXY$$ = $JSCompiler_StaticMethods__reattachMenu$self$$.$getComponent$().$getClientId$();
    $AdfDhtmlMenuPeer$$.$_reattachedMenuId$ = $clientId$$227_positionManager$$inline_2115_reattachPosition$$inline_2123_reattachXY$$;
    $AdfMenuUtils$$.$addOpenMenu$($clientId$$227_positionManager$$inline_2115_reattachPosition$$inline_2123_reattachXY$$);
    $AdfDhtmlMenuPeer$$.$_removeFromDetachedMenus$($clientId$$227_positionManager$$inline_2115_reattachPosition$$inline_2123_reattachXY$$);
    $JSCompiler_StaticMethods__showShadow$$($JSCompiler_StaticMethods__reattachMenu$self$$);
    var $clientId$$227_positionManager$$inline_2115_reattachPosition$$inline_2123_reattachXY$$ = $AdfPage$$.$PAGE$.$getPositionManager$(), $element$$inline_2124_menuPopup$$1_rootElement$$inline_2116$$ = $JSCompiler_StaticMethods__reattachMenu$self$$.$getDomElement$(), $menuElement$$inline_2117_width$$inline_2120$$ = $JSCompiler_StaticMethods__getMenuElement$$($JSCompiler_StaticMethods__reattachMenu$self$$), $alignmentHint$$inline_2118$$ = AdfRichPopup.$ALIGN_END_BEFORE$, $height$$inline_2119$$ = 
    $menuElement$$inline_2117_width$$inline_2120$$.clientHeight - 4, $menuElement$$inline_2117_width$$inline_2120$$ = $menuElement$$inline_2117_width$$inline_2120$$.clientWidth + $AdfDhtmlShadowDecorator$$.$getShadowSize$(), $clientId$$227_positionManager$$inline_2115_reattachPosition$$inline_2123_reattachXY$$ = $clientId$$227_positionManager$$inline_2115_reattachPosition$$inline_2123_reattachXY$$.$calculatePlacementPosition$($height$$inline_2119$$, $menuElement$$inline_2117_width$$inline_2120$$, 
    $alignmentHint$$inline_2118$$, $element$$inline_2124_menuPopup$$1_rootElement$$inline_2116$$, $JSCompiler_alias_NULL$$);
    $JSCompiler_StaticMethods__reattachMenu$self$$.$_isDetached$ = $JSCompiler_alias_FALSE$$;
    $AdfPage$$.$PAGE$.$isAnimationEnabled$() ? ($clientId$$227_positionManager$$inline_2115_reattachPosition$$inline_2123_reattachXY$$ = {left:$clientId$$227_positionManager$$inline_2115_reattachPosition$$inline_2123_reattachXY$$.x, top:$clientId$$227_positionManager$$inline_2115_reattachPosition$$inline_2123_reattachXY$$.y}, $AdfDomUtils$$.$removeCSSClassName$($JSCompiler_StaticMethods__getMenuElement$$($JSCompiler_StaticMethods__reattachMenu$self$$), $AdfMenuUtils$$.$DETACHED_STYLE_CLASS$), $element$$inline_2124_menuPopup$$1_rootElement$$inline_2116$$ = 
    $JSCompiler_StaticMethods__reattachMenu$self$$.$_detachableWindow$.$getElement$(), $AdfDhtmlElementAnimator$animate$$(3, 300, [{element:$element$$inline_2124_menuPopup$$1_rootElement$$inline_2116$$, $properties$:$clientId$$227_positionManager$$inline_2115_reattachPosition$$inline_2123_reattachXY$$}], $JSCompiler_alias_NULL$$, $AdfDhtmlMenuPeer$$.$_animateReattachComplete$, [$JSCompiler_StaticMethods__reattachMenu$self$$, $clientId$$227_positionManager$$inline_2115_reattachPosition$$inline_2123_reattachXY$$.y, 
    $clientId$$227_positionManager$$inline_2115_reattachPosition$$inline_2123_reattachXY$$.x])) : ($JSCompiler_StaticMethods__moveShadow$$($JSCompiler_StaticMethods__reattachMenu$self$$), ($element$$inline_2124_menuPopup$$1_rootElement$$inline_2116$$ = $JSCompiler_StaticMethods__getMenuPopup$$($JSCompiler_StaticMethods__reattachMenu$self$$)) && $element$$inline_2124_menuPopup$$1_rootElement$$inline_2116$$.$setAlignPosition$($clientId$$227_positionManager$$inline_2115_reattachPosition$$inline_2123_reattachXY$$), 
    $AdfDomUtils$$.$removeCSSClassName$($JSCompiler_StaticMethods__getMenuElement$$($JSCompiler_StaticMethods__reattachMenu$self$$), $AdfMenuUtils$$.$DETACHED_STYLE_CLASS$))
  }
}
$AdfDhtmlMenuPeer$$.$_animateReattachComplete$ = function $$AdfDhtmlMenuPeer$$$$_animateReattachComplete$$($args$$177_left$$14$$) {
  var $menuPopup$$2_peer$$107$$ = $args$$177_left$$14$$[0], $pos$$21_top$$16$$ = $args$$177_left$$14$$[1];
  $args$$177_left$$14$$ = $args$$177_left$$14$$[2];
  $JSCompiler_StaticMethods__moveShadow$$($menuPopup$$2_peer$$107$$);
  $pos$$21_top$$16$$ = {y:$pos$$21_top$$16$$, x:$args$$177_left$$14$$};
  ($menuPopup$$2_peer$$107$$ = $JSCompiler_StaticMethods__getMenuPopup$$($menuPopup$$2_peer$$107$$)) && $menuPopup$$2_peer$$107$$.$setAlignPosition$($pos$$21_top$$16$$)
};
function $JSCompiler_StaticMethods__contains$$($JSCompiler_StaticMethods__contains$self$$, $element$$230$$) {
  var $domElement$$298_insideElement$$ = $JSCompiler_StaticMethods__contains$self$$.$getDomElement$(), $domElement$$298_insideElement$$ = $AdfDomUtils$$.$isAncestorOrSelf$($domElement$$298_insideElement$$, $element$$230$$);
  if("noContent" == $JSCompiler_StaticMethods__contains$self$$.$_getLazyState$()) {
    return $domElement$$298_insideElement$$
  }
  var $insidePopup$$ = $AdfDomUtils$$.$isAncestor$($JSCompiler_StaticMethods__getMenuElement$$($JSCompiler_StaticMethods__contains$self$$), $element$$230$$);
  return $domElement$$298_insideElement$$ || $insidePopup$$
}
function $JSCompiler_StaticMethods__getDepth$$($JSCompiler_StaticMethods__getDepth$self$$) {
  if(!$JSCompiler_StaticMethods__getDepth$self$$.$_depth$) {
    var $rootElement$$75$$ = $JSCompiler_StaticMethods__getDepth$self$$.$getDomElement$();
    $JSCompiler_StaticMethods__getDepth$self$$.$_depth$ = parseInt($rootElement$$75$$.getAttribute($AdfMenuUtils$$.$MENU_DEPTH_KEY$))
  }
  return $JSCompiler_StaticMethods__getDepth$self$$.$_depth$
}
$JSCompiler_prototypeAlias$$ = $AdfDhtmlMenuPeer$$.prototype;
$JSCompiler_prototypeAlias$$.$_isDisabled$ = function $$JSCompiler_prototypeAlias$$$$_isDisabled$$() {
  var $rootElement$$76$$ = this.$getDomElement$();
  return $rootElement$$76$$.disabled || $AdfDomUtils$$.$containsCSSClassName$($rootElement$$76$$, $AdfRichUIPeer$$.$DISABLED_STYLECLASS$)
};
function $JSCompiler_StaticMethods__handleHideRequest$$($JSCompiler_StaticMethods__handleHideRequest$self$$, $clientId$$228$$) {
  $AdfAssert$$.assert(!$JSCompiler_StaticMethods__handleHideRequest$self$$.$isDetached$(), "this method is not intended for detached menus");
  if($JSCompiler_StaticMethods__handleHideRequest$self$$.$isRootMenu$()) {
    var $domElement$$299$$ = $JSCompiler_StaticMethods__handleHideRequest$self$$.$getDomElement$();
    $AdfDomUtils$$.$removeCSSClassName$($domElement$$299$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$);
    $AdfDomUtils$$.$removeCSSClassName$($domElement$$299$$, $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$$228$$)
}
$JSCompiler_prototypeAlias$$.$_dragStart$ = function $$JSCompiler_prototypeAlias$$$$_dragStart$$() {
  this.$_deselectElement$();
  $JSCompiler_StaticMethods__showShadow$$(this);
  var $clientId$$229_floatingElement$$15_rootElement$$77$$ = this.$getDomElement$();
  $AdfMenuUtils$$.$dismiss$($clientId$$229_floatingElement$$15_rootElement$$77$$, $JSCompiler_alias_TRUE$$);
  $clientId$$229_floatingElement$$15_rootElement$$77$$ = this.$_detachableWindow$.$getElement$();
  this.$_detachedMenuLeft$ = $clientId$$229_floatingElement$$15_rootElement$$77$$.style.left;
  this.$_detachedMenuTop$ = $clientId$$229_floatingElement$$15_rootElement$$77$$.style.top;
  $clientId$$229_floatingElement$$15_rootElement$$77$$ = this.$getComponent$().$getClientId$();
  $AdfMenuUtils$$.$removeOpenMenu$($clientId$$229_floatingElement$$15_rootElement$$77$$);
  $AdfDhtmlMenuPeer$$.$_addToDetachedMenus$($clientId$$229_floatingElement$$15_rootElement$$77$$);
  $AdfLogger$$.$LOGGER$.finest("menuBar auto open mode, set to OFF due to menu first becoming detached");
  $AdfMenuUtils$$.$setMenuBarAutoOpenMode$($JSCompiler_alias_FALSE$$)
};
$JSCompiler_prototypeAlias$$.$_dragEnd$ = function $$JSCompiler_prototypeAlias$$$$_dragEnd$$() {
  var $menuPopup$$3$$ = $JSCompiler_StaticMethods__getMenuPopup$$(this);
  $AdfAssert$$.assert($menuPopup$$3$$ != $JSCompiler_alias_NULL$$, "menuPopup should not disappear during a drag.");
  if($menuPopup$$3$$) {
    $menuPopup$$3$$.$setAlignElement$($JSCompiler_alias_NULL$$);
    var $pos$$22$$ = {y:$menuPopup$$3$$.$getTop$(), x:$menuPopup$$3$$.$getLeft$()};
    $menuPopup$$3$$.$setAlignPosition$($pos$$22$$);
    $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$$1118$$ = this.$getComponent$();
  this.$isPopupVisible$($component$$1118$$, $component$$1118$$.$getClientId$()) && this.$hidePopup$()
};
$JSCompiler_prototypeAlias$$.$_delayShowCallback$ = function $$JSCompiler_prototypeAlias$$$$_delayShowCallback$$() {
  var $component$$1119$$ = this.$getComponent$();
  this.$isPopupVisible$($component$$1119$$, $component$$1119$$.$getClientId$()) ? $JSCompiler_StaticMethods__reattachMenu$$(this) : (delete $AdfDhtmlMenuPeer$$.$_popupPeerWaitingForShow$, delete $AdfDhtmlMenuPeer$$.$_popupShowingHandle$, this.show($JSCompiler_alias_NULL$$, $JSCompiler_alias_FALSE$$))
};
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$ = $JSCompiler_alias_TRUE$$;
  $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, $JSCompiler_alias_TRUE$$, $JSCompiler_alias_TRUE$$);
  $JSCompiler_StaticMethods__getMenuPopup$$($JSCompiler_StaticMethods__makeDetached$self$$).$autoSize$()
}
$AdfDhtmlMenuPeer$$.prototype.$_deselectElement$ = function $$AdfDhtmlMenuPeer$$$$$_deselectElement$$() {
  var $rootElement$$78$$ = this.$getDomElement$();
  $AdfDomUtils$$.$removeCSSClassName$($rootElement$$78$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$);
  $AdfDomUtils$$.$removeCSSClassName$($rootElement$$78$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$)
};
$AdfDhtmlMenuPeer$$.prototype.$_closeDetachedMenu$ = function $$AdfDhtmlMenuPeer$$$$$_closeDetachedMenu$$() {
  var $component$$1120$$ = this.$getComponent$(), $clientId$$230$$ = $component$$1120$$.$getClientId$();
  $AdfDomUtils$$.$removeCSSClassName$($JSCompiler_StaticMethods__getMenuElement$$(this), $AdfMenuUtils$$.$DETACHED_STYLE_CLASS$);
  this.$_isDetached$ = $JSCompiler_alias_FALSE$$;
  var $rootElement$$79$$ = this.$getDomElement$();
  $AdfDomUtils$$.$removeCSSClassName$($rootElement$$79$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$);
  $AdfDhtmlMenuPeer$$.$_removeFromDetachedMenus$($clientId$$230$$);
  this.$_detachableWindow$ && this.$_detachableWindow$.$destroy$();
  delete this.$_detachableWindow$;
  $clientId$$230$$ == $AdfDhtmlMenuPeer$$.$_reattachedMenuId$ && ($AdfDhtmlMenuPeer$$.$_reattachedMenuId$ = $JSCompiler_alias_NULL$$);
  $AdfDhtmlMenuPeer$$.$superclass$.$hidePopup$.call(this, $component$$1120$$, $clientId$$230$$);
  $AdfMenuUtils$$.$closeAllMenus$();
  $AdfMenuUtils$$.$restoreFocusToLastOpenedRootMenu$()
};
function $JSCompiler_StaticMethods__moveDetachable$$($JSCompiler_StaticMethods__moveDetachable$self$$, $x$$62$$, $y$$40$$) {
  $JSCompiler_StaticMethods__moveDetachable$self$$.$_dragStart$();
  var $floatingElement$$17$$ = $JSCompiler_StaticMethods__moveDetachable$self$$.$_detachableWindow$.$getElement$();
  $floatingElement$$17$$.style.left = $floatingElement$$17$$.offsetLeft + $x$$62$$ + "px";
  $floatingElement$$17$$.style.top = $floatingElement$$17$$.offsetTop + $y$$40$$ + "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($JSCompiler_StaticMethods__getShadowAnchor$self_menuPopup$$4$$ != $JSCompiler_alias_NULL$$ && $JSCompiler_StaticMethods__getShadowAnchor$self_menuPopup$$4$$.$getShadowAnchor$() != $JSCompiler_alias_NULL$$) {
    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$$, $JSCompiler_alias_FALSE$$)
}
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$$);
  $JSCompiler_StaticMethods__moveShadow$self_shadowAnchor$$4$$ != $JSCompiler_alias_NULL$$ && $AdfDhtmlShadowDecorator$$.$hasShadowDecorator$($JSCompiler_StaticMethods__moveShadow$self_shadowAnchor$$4$$) && ($AdfDhtmlShadowDecorator$$.$moveShadowDecorator$($JSCompiler_StaticMethods__moveShadow$self_shadowAnchor$$4$$), $AdfDhtmlShadowDecorator$$.$showShadowDecorator$($JSCompiler_StaticMethods__moveShadow$self_shadowAnchor$$4$$, $JSCompiler_alias_TRUE$$))
}
$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$ = $JSCompiler_alias_NULL$$;
  var $currentScrollSpot$$ = $JSCompiler_StaticMethods__endScroll$self$$.$_scrollBoxElement$.scrollTop, $menuItems$$3$$ = $JSCompiler_StaticMethods__endScroll$self$$.$_scrollContentElement$.rows, $menuItemOffsetTop_n$$7$$ = $menuItems$$3$$.length;
  if(0 > $JSCompiler_StaticMethods__endScroll$self$$.$_scrollDelta$) {
    for(var $i$$282$$ = $menuItemOffsetTop_n$$7$$ - 1;-1 < $i$$282$$;$i$$282$$--) {
      var $menuItem$$4_menuItemOffsetBottom$$ = $menuItems$$3$$[$i$$282$$];
      if("none" != $menuItem$$4_menuItemOffsetBottom$$.style.display && ($menuItemOffsetTop_n$$7$$ = $menuItem$$4_menuItemOffsetBottom$$.offsetTop, $currentScrollSpot$$ >= $menuItemOffsetTop_n$$7$$)) {
        $JSCompiler_StaticMethods__endScroll$self$$.$_scrollBoxElement$.scrollTop = $menuItemOffsetTop_n$$7$$;
        break
      }
    }
  }else {
    for(var $scrollBottom$$ = $currentScrollSpot$$ + $JSCompiler_StaticMethods__endScroll$self$$.$_scrollBoxElement$.offsetHeight, $i$$282$$ = 0;$i$$282$$ < $menuItemOffsetTop_n$$7$$;$i$$282$$++) {
      if($menuItem$$4_menuItemOffsetBottom$$ = $menuItems$$3$$[$i$$282$$], "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($JSCompiler_StaticMethods__getMenuElement$self$$.$_menuElement$ == $JSCompiler_alias_NULL$$) {
    var $id$$294_menuId$$1$$ = $JSCompiler_StaticMethods__getMenuElement$self$$.$getDomElement$().getAttribute("id"), $id$$294_menuId$$1$$ = $AdfRichUIPeer$$.$CreateSubId$($id$$294_menuId$$1$$, "menu");
    $JSCompiler_StaticMethods__getMenuElement$self$$.$_menuElement$ = $AdfAgent$$.$AGENT$.getElementById($id$$294_menuId$$1$$)
  }
  return $JSCompiler_StaticMethods__getMenuElement$self$$.$_menuElement$
}
function $JSCompiler_StaticMethods__getMenuPopup$$($JSCompiler_StaticMethods__getMenuPopup$self$$) {
  var $component$$1121$$ = $JSCompiler_StaticMethods__getMenuPopup$self$$.$getComponent$(), $clientId$$231$$ = $component$$1121$$.$getClientId$();
  return $JSCompiler_StaticMethods__getMenuPopup$self$$.$getPopupWindow$($component$$1121$$, $clientId$$231$$)
}
function $JSCompiler_StaticMethods__isMenuVisible$$($JSCompiler_StaticMethods__isMenuVisible$self$$) {
  return $JSCompiler_StaticMethods__getMenuPopup$$($JSCompiler_StaticMethods__isMenuVisible$self$$) ? $JSCompiler_alias_TRUE$$ : $JSCompiler_alias_FALSE$$
}
$AdfDhtmlMenuPeer$$.prototype.$isContentLoaded$ = function $$AdfDhtmlMenuPeer$$$$$isContentLoaded$$() {
  return this.$_lazyState$ != $JSCompiler_alias_NULL$$ && "contentLoaded" == this.$_lazyState$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.isContentLoaded", {$isContentLoaded$:$AdfDhtmlMenuPeer$$.prototype.$isContentLoaded$});
$AdfDhtmlMenuPeer$$.prototype.$_getLazyState$ = function $$AdfDhtmlMenuPeer$$$$$_getLazyState$$() {
  this.$_lazyState$ == $JSCompiler_alias_NULL$$ && (this.$_lazyState$ = $JSCompiler_StaticMethods__getMenuElement$$(this) == $JSCompiler_alias_NULL$$ ? "noContent" : "contentLoaded");
  return this.$_lazyState$
};
$AdfDhtmlMenuPeer$$.prototype.$_setLazyState$ = $JSCompiler_set$$("$_lazyState$");
$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$$6$$, $domElement$$300$$, $mouseEvent$$8$$) {
  $AdfDhtmlMenuPeer$$.$superclass$.$SimulateMouseOnDescendant$.call(this, $targetComponent$$6$$, $domElement$$300$$, $mouseEvent$$8$$);
  this.$isContextMenu$() || $JSCompiler_StaticMethods__isMenuVisible$$(this) || this.show($JSCompiler_alias_NULL$$, $JSCompiler_alias_FALSE$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuPeer.prototype.SimulateMouseOnDescendant", {$SimulateMouseOnDescendant$:$AdfDhtmlMenuPeer$$.prototype.$SimulateMouseOnDescendant$});
