var $AdfDhtmlMenuBarPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlMenuBarPeer", !1);
$goog$exportSymbol$$("AdfDhtmlMenuBarPeer", $AdfDhtmlMenuBarPeer$$);
$AdfDhtmlMenuBarPeer$$.$InitSubclass$ = function $$AdfDhtmlMenuBarPeer$$$$InitSubclass$$() {
  $AdfObject$$.$ensureClassInitialization$($AdfToolbarUtils$$);
  $AdfObject$$.$ensureClassInitialization$($AdfMenuUtils$$);
  this.$_sOpenedPopups$ = [];
  $AdfRichUIPeer$$.$addComponentEventHandlers$(this, $AdfUIInputEvent$$.$KEY_UP_EVENT_TYPE$, $AdfUIInputEvent$$.$KEY_DOWN_EVENT_TYPE$, $AdfUIInputEvent$$.$KEY_PRESS_EVENT_TYPE$, $AdfUIInputEvent$$.$CLICK_EVENT_TYPE$, $AdfUIInputEvent$$.$FOCUS_EVENT_TYPE$, $AdfUIInputEvent$$.$BLUR_EVENT_TYPE$);
  $AdfAgent$$.$AGENT$.$isTouchFirstDevice$() || $AdfRichUIPeer$$.$addComponentEventHandlers$(this, $AdfUIInputEvent$$.$MOUSE_IN_EVENT_TYPE$, $AdfUIInputEvent$$.$MOUSE_OUT_EVENT_TYPE$);
};
$goog$exportSymbol$$("AdfDhtmlMenuBarPeer.InitSubclass", $AdfDhtmlMenuBarPeer$$.$InitSubclass$);
$AdfDhtmlMenuBarPeer$$.prototype.$InitDomElement$ = function $$AdfDhtmlMenuBarPeer$$$$$InitDomElement$$($component$$1548$$, $domElement$$334$$) {
  $AdfDhtmlMenuBarPeer$$.$superclass$.$InitDomElement$.call(this, $component$$1548$$, $domElement$$334$$);
  var $clientId$$263$$ = $component$$1548$$.$getClientId$(), $id$$298$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$263$$, "eoc"), $agent$$396$$ = $AdfAgent$$.$AGENT$;
  this.$_isOverflowSupported$ = (this.$_overflowContainer$ = $agent$$396$$.getElementById($id$$298$$)) ? !0 : !1;
  1 == this.$_isOverflowSupported$ && ($id$$298$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$263$$, "eoi"), this.$_overflowIndicator$ = $agent$$396$$.getElementById($id$$298$$), $AdfPage$$.$PAGE$.$__registerDescendantResizeNotifyComponent$($component$$1548$$));
  this.$_childContainers$ = $agent$$396$$.$getTableRowCells$($agent$$396$$.$getTableRow$($domElement$$334$$.getElementsByTagName("table")[0], 0));
  this.$_activeDescendant$ = $AdfFocusUtils$$.$setFirstActiveDescendant$($domElement$$334$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.InitDomElement", {$InitDomElement$:$AdfDhtmlMenuBarPeer$$.prototype.$InitDomElement$});
$AdfDhtmlMenuBarPeer$$.prototype.$needsChildVisibilityChanges$ = function $$AdfDhtmlMenuBarPeer$$$$$needsChildVisibilityChanges$$() {
  return !0;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.needsChildVisibilityChanges", {$needsChildVisibilityChanges$:$AdfDhtmlMenuBarPeer$$.prototype.$needsChildVisibilityChanges$});
$AdfDhtmlMenuBarPeer$$.prototype.$needsResizeNotify$ = function $$AdfDhtmlMenuBarPeer$$$$$needsResizeNotify$$() {
  return !0;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.needsResizeNotify", {$needsResizeNotify$:$AdfDhtmlMenuBarPeer$$.prototype.$needsResizeNotify$});
$AdfDhtmlMenuBarPeer$$.prototype.$getDescendantComponents$ = function $$AdfDhtmlMenuBarPeer$$$$$getDescendantComponents$$($component$$1551$$, $children$$26$$) {
  $children$$26$$ || ($children$$26$$ = []);
  $AdfDhtmlMenuBarPeer$$.$superclass$.$getDescendantComponents$.call(this, $component$$1551$$, $children$$26$$);
  1 == this.$_isOverflowSupported$ && $AdfOverflowSupport$$.$getOverflowChildComponents$($component$$1551$$, $children$$26$$);
  return $children$$26$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.getDescendantComponents", {$getDescendantComponents$:$AdfDhtmlMenuBarPeer$$.prototype.$getDescendantComponents$});
$AdfDhtmlMenuBarPeer$$.prototype.$updateScrollIconsState$ = function $$AdfDhtmlMenuBarPeer$$$$$updateScrollIconsState$$() {
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.updateScrollIconsState", {$updateScrollIconsState$:$AdfDhtmlMenuBarPeer$$.prototype.$updateScrollIconsState$});
$AdfDhtmlMenuBarPeer$$.prototype.$resetActiveDescendant$ = function $$AdfDhtmlMenuBarPeer$$$$$resetActiveDescendant$$() {
  this.$_activeDescendant$ && this.$_activeDescendant$.setAttribute("tabIndex", "-1");
  this.$_activeDescendant$ = $AdfFocusUtils$$.$setFirstActiveDescendant$(this.$getDomElement$());
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.resetActiveDescendant", {$resetActiveDescendant$:$AdfDhtmlMenuBarPeer$$.prototype.$resetActiveDescendant$});
$AdfDhtmlMenuBarPeer$$.prototype.$ResizeNotify$ = function $$AdfDhtmlMenuBarPeer$$$$$ResizeNotify$$() {
  var $menuBarItems$$1_rootElement$$78$$ = this.$getDomElement$(), $agent$$397_component$$1552_i$$380$$ = this.$getComponent$(), $childElement$$8_id$$299_menuBarItem$$1_overflowElement$$2$$ = $agent$$397_component$$1552_i$$380$$.$getClientId$();
  if (0 != this.$_isOverflowSupported$ || $agent$$397_component$$1552_i$$380$$.getStretchId()) {
    this.$_unStretch$();
    if (1 == this.$_isOverflowSupported$) {
      if (!this.$_overflowSupport$) {
        for (this.$_overflowSupport$ = new $AdfOverflowSupport$$($childElement$$8_id$$299_menuBarItem$$1_overflowElement$$2$$, this, "end", null, null, !0), $agent$$397_component$$1552_i$$380$$ = $AdfAgent$$.$AGENT$, $menuBarItems$$1_rootElement$$78$$ = $agent$$397_component$$1552_i$$380$$.$getTableRowCells$($agent$$397_component$$1552_i$$380$$.$getTableRow$($menuBarItems$$1_rootElement$$78$$.getElementsByTagName("table")[0], 0)), $agent$$397_component$$1552_i$$380$$ = 0, $childElement$$8_id$$299_menuBarItem$$1_overflowElement$$2$$ = 
        $menuBarItems$$1_rootElement$$78$$[0];$childElement$$8_id$$299_menuBarItem$$1_overflowElement$$2$$;) {
          this.$_overflowSupport$.$createStep$(), this.$_overflowSupport$.addElement($childElement$$8_id$$299_menuBarItem$$1_overflowElement$$2$$), $childElement$$8_id$$299_menuBarItem$$1_overflowElement$$2$$ = $AdfDomUtils$$.$getFirstChildElement$($childElement$$8_id$$299_menuBarItem$$1_overflowElement$$2$$), $AdfToolbarUtils$$.$isValidOverflowElement$($childElement$$8_id$$299_menuBarItem$$1_overflowElement$$2$$) && ($childElement$$8_id$$299_menuBarItem$$1_overflowElement$$2$$ = this.$_createOverflowElement$($childElement$$8_id$$299_menuBarItem$$1_overflowElement$$2$$), 
          this.$_overflowSupport$.$addOverflowElement$($childElement$$8_id$$299_menuBarItem$$1_overflowElement$$2$$)), $agent$$397_component$$1552_i$$380$$++, $childElement$$8_id$$299_menuBarItem$$1_overflowElement$$2$$ = $menuBarItems$$1_rootElement$$78$$[$agent$$397_component$$1552_i$$380$$];
        }
      }
      this.$_overflowSupport$.$handleResize$();
    }
    this.$_reStretch$();
    this.$_activeDescendant$ && (0 < this.$_activeDescendant$.offsetWidth || 0 < this.$_activeDescendant$.offsetHeight) || this.$resetActiveDescendant$();
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.ResizeNotify", {$ResizeNotify$:$AdfDhtmlMenuBarPeer$$.prototype.$ResizeNotify$});
$AdfDhtmlMenuBarPeer$$.prototype.$ChildVisibilityChanged$ = function $$AdfDhtmlMenuBarPeer$$$$$ChildVisibilityChanged$$() {
  $AdfPage$$.$PAGE$.$addPartialTargets$(this.$getComponent$());
  return !1;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.ChildVisibilityChanged", {$ChildVisibilityChanged$:$AdfDhtmlMenuBarPeer$$.prototype.$ChildVisibilityChanged$});
$AdfDhtmlMenuBarPeer$$.prototype.$GetPreferredWidth$ = function $$AdfDhtmlMenuBarPeer$$$$$GetPreferredWidth$$() {
  if (!this.$_preferredWidth$) {
    var $content$$21$$ = this.$getDomElement$().firstChild;
    this.$_unStretch$();
    this.$_overflowSupport$ && this.$_overflowSupport$.$removeAllItemsFromOverflow$();
    this.$_preferredWidth$ = $content$$21$$.offsetWidth;
    this.$_reStretch$();
  }
  return this.$_preferredWidth$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.GetPreferredWidth", {$GetPreferredWidth$:$AdfDhtmlMenuBarPeer$$.prototype.$GetPreferredWidth$});
$AdfDhtmlMenuBarPeer$$.prototype.$GetMinimumWidth$ = function $$AdfDhtmlMenuBarPeer$$$$$GetMinimumWidth$$() {
  if (!this.$_minimumWidth$) {
    if (0 == this.$_isOverflowSupported$) {
      this.$_minimumWidth$ = this.$GetPreferredWidth$();
    } else {
      if (this.$_childContainers$ && 0 < this.$_childContainers$.length) {
        var $oldIndicatorDisplay_preferredWidth$$ = this.$_overflowIndicator$.style.display;
        this.$_overflowIndicator$.style.display = "block";
        this.$_minimumWidth$ = this.$_overflowIndicator$.offsetWidth;
        this.$_overflowIndicator$.style.display = $oldIndicatorDisplay_preferredWidth$$;
        $oldIndicatorDisplay_preferredWidth$$ = this.$GetPreferredWidth$();
        this.$_minimumWidth$ > $oldIndicatorDisplay_preferredWidth$$ && (this.$_minimumWidth$ = $oldIndicatorDisplay_preferredWidth$$);
      } else {
        this.$_minimumWidth$ = 0;
      }
    }
  }
  return this.$_minimumWidth$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.GetMinimumWidth", {$GetMinimumWidth$:$AdfDhtmlMenuBarPeer$$.prototype.$GetMinimumWidth$});
$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentKeyDown$ = function $$AdfDhtmlMenuBarPeer$$$$$HandleComponentKeyDown$$($componentEvent$$305$$) {
  if (!$componentEvent$$305$$.$isCanceled$()) {
    var $agent$$398_comp$$inline_2357_eSourceId$$inline_2344_parentElem$$6$$ = $AdfAgent$$.$AGENT$, $compElem$$inline_2358_keyCode$$74_nextItem$$inline_2355_previousItem$$inline_2356$$ = $componentEvent$$305$$.$getKeyCode$(), $agent$$inline_2342_eventSource$$9_evt$$inline_2354_menuBarElem$$inline_2353$$ = $componentEvent$$305$$.getSource();
    if ($agent$$inline_2342_eventSource$$9_evt$$inline_2354_menuBarElem$$inline_2353$$ instanceof AdfRichCommandNavigationItem) {
      $compElem$$inline_2358_keyCode$$74_nextItem$$inline_2355_previousItem$$inline_2356$$ == $AdfKeyStroke$$.$ESC_KEY$ && $agent$$inline_2342_eventSource$$9_evt$$inline_2354_menuBarElem$$inline_2353$$.getParent() instanceof AdfRichCommandNavigationItem && ($agent$$398_comp$$inline_2357_eSourceId$$inline_2344_parentElem$$6$$ = $agent$$398_comp$$inline_2357_eSourceId$$inline_2344_parentElem$$6$$.getElementById($agent$$inline_2342_eventSource$$9_evt$$inline_2354_menuBarElem$$inline_2353$$.getParent().$getClientId$()), 
      $AdfFocusUtils$$.$focusFirstTabStop$($agent$$398_comp$$inline_2357_eSourceId$$inline_2344_parentElem$$6$$), $AdfDhtmlMenuBarPeer$$.$superclass$.$cancelAllPopups$.call(this, $agent$$inline_2342_eventSource$$9_evt$$inline_2354_menuBarElem$$inline_2353$$), $AdfDhtmlMenuBarPeer$$.$superclass$.$cancelAllPopups$.call(this, $agent$$inline_2342_eventSource$$9_evt$$inline_2354_menuBarElem$$inline_2353$$.getParent()), $componentEvent$$305$$.cancel());
      var $agent$$inline_2342_eventSource$$9_evt$$inline_2354_menuBarElem$$inline_2353$$ = $AdfAgent$$.$AGENT$, $eSource$$inline_2343$$ = $componentEvent$$305$$.getSource(), $agent$$398_comp$$inline_2357_eSourceId$$inline_2344_parentElem$$6$$ = $eSource$$inline_2343$$.$getClientId$(), $eventSourceElem$$inline_2345$$ = $agent$$inline_2342_eventSource$$9_evt$$inline_2354_menuBarElem$$inline_2353$$.getElementById($agent$$398_comp$$inline_2357_eSourceId$$inline_2344_parentElem$$6$$), $eSourcePopupSubId$$inline_2346_parentElem$$inline_2350$$ = 
      $AdfRichUIPeer$$.$CreateSubId$($agent$$398_comp$$inline_2357_eSourceId$$inline_2344_parentElem$$6$$, "menu"), $eSourcePopupElem$$inline_2347$$ = $agent$$inline_2342_eventSource$$9_evt$$inline_2354_menuBarElem$$inline_2353$$.getElementById($eSourcePopupSubId$$inline_2346_parentElem$$inline_2350$$), $parent$$inline_2348$$ = $eSource$$inline_2343$$.getParent(), $parentId$$inline_2349_parentPopupElem$$inline_2352_parentPopupSubId$$inline_2351$$ = $parent$$inline_2348$$.$getClientId$(), $eSourcePopupSubId$$inline_2346_parentElem$$inline_2350$$ = 
      $agent$$inline_2342_eventSource$$9_evt$$inline_2354_menuBarElem$$inline_2353$$.getElementById($parentId$$inline_2349_parentPopupElem$$inline_2352_parentPopupSubId$$inline_2351$$), $parentId$$inline_2349_parentPopupElem$$inline_2352_parentPopupSubId$$inline_2351$$ = $AdfRichUIPeer$$.$CreateSubId$($parentId$$inline_2349_parentPopupElem$$inline_2352_parentPopupSubId$$inline_2351$$, "menu"), $parentId$$inline_2349_parentPopupElem$$inline_2352_parentPopupSubId$$inline_2351$$ = $agent$$inline_2342_eventSource$$9_evt$$inline_2354_menuBarElem$$inline_2353$$.getElementById($parentId$$inline_2349_parentPopupElem$$inline_2352_parentPopupSubId$$inline_2351$$);
      if ($parent$$inline_2348$$ instanceof AdfRichMenuBar) {
        if ($agent$$inline_2342_eventSource$$9_evt$$inline_2354_menuBarElem$$inline_2353$$ = $componentEvent$$305$$.$getNativeEvent$(), !($agent$$inline_2342_eventSource$$9_evt$$inline_2354_menuBarElem$$inline_2353$$.ctrlKey || $agent$$inline_2342_eventSource$$9_evt$$inline_2354_menuBarElem$$inline_2353$$.altKey || $agent$$inline_2342_eventSource$$9_evt$$inline_2354_menuBarElem$$inline_2353$$.shiftKey || $agent$$inline_2342_eventSource$$9_evt$$inline_2354_menuBarElem$$inline_2353$$.metaKey)) {
          switch($compElem$$inline_2358_keyCode$$74_nextItem$$inline_2355_previousItem$$inline_2356$$) {
            case $AdfKeyStroke$$.$ARROWDOWN_KEY$:
              $JSCompiler_StaticMethods__isPopupOpen$$($agent$$398_comp$$inline_2357_eSourceId$$inline_2344_parentElem$$6$$) ? $AdfFocusUtils$$.$focusFirstTabStop$($eSourcePopupElem$$inline_2347$$) : this.$_showPopup$($componentEvent$$305$$, !0);
              $componentEvent$$305$$.cancel();
              break;
            case $AdfKeyStroke$$.$ARROWRIGHT_KEY$:
              ($compElem$$inline_2358_keyCode$$74_nextItem$$inline_2355_previousItem$$inline_2356$$ = $AdfFocusUtils$$.$focusNextActiveDescendant$($eSourcePopupSubId$$inline_2346_parentElem$$inline_2350$$, this.$_activeDescendant$)) ? this.$_activeDescendant$ = $compElem$$inline_2358_keyCode$$74_nextItem$$inline_2355_previousItem$$inline_2356$$ : $AdfFocusUtils$$.$focusNextTabStop$(this.$_activeDescendant$);
              $componentEvent$$305$$.cancel();
              break;
            case $AdfKeyStroke$$.$ARROWLEFT_KEY$:
              ($compElem$$inline_2358_keyCode$$74_nextItem$$inline_2355_previousItem$$inline_2356$$ = $AdfFocusUtils$$.$focusPreviousActiveDescendant$($eSourcePopupSubId$$inline_2346_parentElem$$inline_2350$$, this.$_activeDescendant$)) ? this.$_activeDescendant$ = $compElem$$inline_2358_keyCode$$74_nextItem$$inline_2355_previousItem$$inline_2356$$ : $AdfFocusUtils$$.$focusPreviousTabStop$(this.$_activeDescendant$), $componentEvent$$305$$.cancel();
          }
        }
      } else {
        switch($compElem$$inline_2358_keyCode$$74_nextItem$$inline_2355_previousItem$$inline_2356$$) {
          case $AdfKeyStroke$$.$ARROWDOWN_KEY$:
            $AdfFocusUtils$$.$focusNextTabStop$($eventSourceElem$$inline_2345$$, $parentId$$inline_2349_parentPopupElem$$inline_2352_parentPopupSubId$$inline_2351$$);
            $componentEvent$$305$$.cancel();
            break;
          case $AdfKeyStroke$$.$ARROWUP_KEY$:
            $AdfFocusUtils$$.$focusPreviousTabStop$($eventSourceElem$$inline_2345$$, $parentId$$inline_2349_parentPopupElem$$inline_2352_parentPopupSubId$$inline_2351$$);
            $componentEvent$$305$$.cancel();
            break;
          case $AdfKeyStroke$$.$ARROWRIGHT_KEY$:
            if ($JSCompiler_StaticMethods__isPopupOpen$$($agent$$398_comp$$inline_2357_eSourceId$$inline_2344_parentElem$$6$$)) {
              $AdfFocusUtils$$.$focusFirstTabStop$($eSourcePopupElem$$inline_2347$$);
            } else {
              if ($JSCompiler_StaticMethods__getPopupElement$$($componentEvent$$305$$)) {
                this.$_showPopup$($componentEvent$$305$$, !0);
              } else {
                for ($agent$$398_comp$$inline_2357_eSourceId$$inline_2344_parentElem$$6$$ = $eSource$$inline_2343$$;!($agent$$398_comp$$inline_2357_eSourceId$$inline_2344_parentElem$$6$$.getParent() instanceof AdfRichMenuBar);) {
                  $agent$$398_comp$$inline_2357_eSourceId$$inline_2344_parentElem$$6$$ = $agent$$398_comp$$inline_2357_eSourceId$$inline_2344_parentElem$$6$$.getParent();
                }
                $compElem$$inline_2358_keyCode$$74_nextItem$$inline_2355_previousItem$$inline_2356$$ = $agent$$inline_2342_eventSource$$9_evt$$inline_2354_menuBarElem$$inline_2353$$.getElementById($agent$$398_comp$$inline_2357_eSourceId$$inline_2344_parentElem$$6$$.$getClientId$());
                $agent$$inline_2342_eventSource$$9_evt$$inline_2354_menuBarElem$$inline_2353$$ = $agent$$inline_2342_eventSource$$9_evt$$inline_2354_menuBarElem$$inline_2353$$.getElementById($agent$$398_comp$$inline_2357_eSourceId$$inline_2344_parentElem$$6$$.getParent().$getClientId$());
                $AdfFocusUtils$$.$focusNextTabStop$($compElem$$inline_2358_keyCode$$74_nextItem$$inline_2355_previousItem$$inline_2356$$, $agent$$inline_2342_eventSource$$9_evt$$inline_2354_menuBarElem$$inline_2353$$);
                $JSCompiler_StaticMethods__closeAllPopups$$(this);
              }
            }
            $componentEvent$$305$$.cancel();
            break;
          case $AdfKeyStroke$$.$ARROWLEFT_KEY$:
            $parent$$inline_2348$$.getParent() instanceof AdfRichMenuBar ? ($agent$$inline_2342_eventSource$$9_evt$$inline_2354_menuBarElem$$inline_2353$$ = $agent$$inline_2342_eventSource$$9_evt$$inline_2354_menuBarElem$$inline_2353$$.getElementById($parent$$inline_2348$$.getParent().$getClientId$()), $AdfFocusUtils$$.$focusPreviousTabStop$($eSourcePopupSubId$$inline_2346_parentElem$$inline_2350$$, $agent$$inline_2342_eventSource$$9_evt$$inline_2354_menuBarElem$$inline_2353$$), $JSCompiler_StaticMethods__closeAllPopups$$(this)) : 
            ($AdfFocusUtils$$.$focusFirstTabStop$($eSourcePopupSubId$$inline_2346_parentElem$$inline_2350$$), $AdfDhtmlMenuBarPeer$$.$superclass$.$cancelAllPopups$.call(this, $parent$$inline_2348$$)), $componentEvent$$305$$.cancel();
        }
      }
    } else {
      $agent$$398_comp$$inline_2357_eSourceId$$inline_2344_parentElem$$6$$.$getPreferredKeyEventForRepetition$() == $AdfUIInputEvent$$.$KEY_DOWN_EVENT_TYPE$ && this.$_handleArrowKeys$($compElem$$inline_2358_keyCode$$74_nextItem$$inline_2355_previousItem$$inline_2356$$, $componentEvent$$305$$);
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.HandleComponentKeyDown", {$HandleComponentKeyDown$:$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentKeyDown$});
$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentKeyPress$ = function $$AdfDhtmlMenuBarPeer$$$$$HandleComponentKeyPress$$($componentEvent$$306$$) {
  if (!$componentEvent$$306$$.$isCanceled$() && $AdfAgent$$.$AGENT$.$getPreferredKeyEventForRepetition$() == $AdfUIInputEvent$$.$KEY_PRESS_EVENT_TYPE$) {
    var $keyCode$$75$$ = $componentEvent$$306$$.$getKeyCode$();
    this.$_handleArrowKeys$($keyCode$$75$$, $componentEvent$$306$$);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.HandleComponentKeyPress", {$HandleComponentKeyPress$:$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentKeyPress$});
$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentKeyUp$ = function $$AdfDhtmlMenuBarPeer$$$$$HandleComponentKeyUp$$($componentEvent$$307$$) {
  var $component$$1553$$ = this.$getComponent$();
  if (!$componentEvent$$307$$.$isCanceled$() && !$component$$1553$$.getDisabled()) {
    var $eventSource$$10_target$$145$$ = $componentEvent$$307$$.getSource(), $itemHref$$1_keyCode$$76$$ = $componentEvent$$307$$.$getKeyCode$();
    if ($eventSource$$10_target$$145$$ instanceof AdfRichCommandNavigationItem && $itemHref$$1_keyCode$$76$$ == $AdfKeyStroke$$.$ENTER_KEY$) {
      var $agent$$400_documentHref$$3_trimmedDocHref$$3$$ = $AdfAgent$$.$AGENT$, $eventSourceElem$$ = $agent$$400_documentHref$$3_trimmedDocHref$$3$$.getElementById($eventSource$$10_target$$145$$.$getClientId$()), $itemHref$$1_keyCode$$76$$ = $eventSourceElem$$.getAttribute("href"), $agent$$400_documentHref$$3_trimmedDocHref$$3$$ = $agent$$400_documentHref$$3_trimmedDocHref$$3$$.$getDomDocument$().location.href, $hashIndex$$9$$ = $agent$$400_documentHref$$3_trimmedDocHref$$3$$.indexOf("#"), $agent$$400_documentHref$$3_trimmedDocHref$$3$$ = 
      -1 == $hashIndex$$9$$ ? $agent$$400_documentHref$$3_trimmedDocHref$$3$$ : $agent$$400_documentHref$$3_trimmedDocHref$$3$$.substring(0, $hashIndex$$9$$);
      $itemHref$$1_keyCode$$76$$ && (-1 == $itemHref$$1_keyCode$$76$$.indexOf($agent$$400_documentHref$$3_trimmedDocHref$$3$$) || 1 < $itemHref$$1_keyCode$$76$$.substring($itemHref$$1_keyCode$$76$$.indexOf("#")).length) ? ($AdfPage$$.$PAGE$.$__perfTimings$(!0, !0, !0, "User click Command Navigation , GET request"), $eventSource$$10_target$$145$$ = $eventSourceElem$$.getAttribute("target"), null != $eventSource$$10_target$$145$$ && 0 < $eventSource$$10_target$$145$$.length ? window.open($itemHref$$1_keyCode$$76$$, 
      $eventSource$$10_target$$145$$) : self.location = $itemHref$$1_keyCode$$76$$, $componentEvent$$307$$.cancel()) : $AdfActionEvent$$.$queue$($eventSource$$10_target$$145$$, $eventSource$$10_target$$145$$.getPartialSubmit());
    }
    $AdfDhtmlMenuBarPeer$$.$_handleMenuBarItemAccessKeys$($component$$1553$$, $componentEvent$$307$$);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.HandleComponentKeyUp", {$HandleComponentKeyUp$:$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentKeyUp$});
$AdfDhtmlMenuBarPeer$$.prototype.$ComponentRemoved$ = function $$AdfDhtmlMenuBarPeer$$$$$ComponentRemoved$$($component$$1554$$) {
  this.$_overflowSupport$ && (this.$_overflowSupport$.$removeOverflowSupport$(), delete this.$_overflowSupport$);
  delete this.$_overflowContainer$;
  delete this.$_overflowIndicator$;
  delete this.$_childContainers$;
  $AdfPage$$.$PAGE$.$__unregisterDescendantResizeNotifyComponent$($component$$1554$$);
  $AdfDhtmlMenuBarPeer$$.$superclass$.$ComponentRemoved$.call(this, $component$$1554$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.ComponentRemoved", {$ComponentRemoved$:$AdfDhtmlMenuBarPeer$$.prototype.$ComponentRemoved$});
$AdfDhtmlMenuBarPeer$$.prototype.$__preferredSizeChangeNotify$ = function $$AdfDhtmlMenuBarPeer$$$$$__preferredSizeChangeNotify$$($component$$1555_parent$$46$$) {
  this.bind($component$$1555_parent$$46$$);
  this.$_minimumWidth$ = this.$_preferredWidth$ = null;
  $component$$1555_parent$$46$$ = this.$getComponentParent$($component$$1555_parent$$46$$);
  var $parentPeer$$18$$ = null != $component$$1555_parent$$46$$ ? $component$$1555_parent$$46$$.$getPeer$() : null;
  $parentPeer$$18$$ && $parentPeer$$18$$.$__preferredSizeChangeNotify$ && $parentPeer$$18$$.$__preferredSizeChangeNotify$($component$$1555_parent$$46$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.__preferredSizeChangeNotify", {$__preferredSizeChangeNotify$:$AdfDhtmlMenuBarPeer$$.prototype.$__preferredSizeChangeNotify$});
$AdfDhtmlMenuBarPeer$$.$_handleMenuBarItemAccessKeys$ = function $$AdfDhtmlMenuBarPeer$$$$_handleMenuBarItemAccessKeys$$($component$$1556$$, $componentEvent$$308$$) {
  var $keyPressed_keyStroke$$12$$ = $componentEvent$$308$$.$getKeyStroke$(), $barId$$1_modifiers$$11_rootItemElements$$ = $keyPressed_keyStroke$$12$$.$getModifiers$();
  if (!($barId$$1_modifiers$$11_rootItemElements$$ & $AdfKeyStroke$$.$CTRL_MASK$ || $barId$$1_modifiers$$11_rootItemElements$$ & $AdfKeyStroke$$.$ALT_MASK$ || $barId$$1_modifiers$$11_rootItemElements$$ & $AdfKeyStroke$$.$META_MASK$)) {
    $barId$$1_modifiers$$11_rootItemElements$$ & $AdfKeyStroke$$.$SHIFT_MASK$ && ($barId$$1_modifiers$$11_rootItemElements$$ >>= $AdfKeyStroke$$.$SHIFT_MASK$, $keyPressed_keyStroke$$12$$ = $AdfKeyStroke$$.$getKeyStroke$($keyPressed_keyStroke$$12$$.$getKeyCode$(), $barId$$1_modifiers$$11_rootItemElements$$));
    for (var $keyPressed_keyStroke$$12$$ = $keyPressed_keyStroke$$12$$.$toMarshalledString$().toUpperCase(), $barId$$1_modifiers$$11_rootItemElements$$ = $component$$1556$$.$getClientId$(), $barId$$1_modifiers$$11_rootItemElements$$ = $AdfAgent$$.$AGENT$.getElementById($barId$$1_modifiers$$11_rootItemElements$$).getElementsByTagName("A"), $numItems$$ = $barId$$1_modifiers$$11_rootItemElements$$.length, $i$$381$$ = 0;$i$$381$$ < $numItems$$;$i$$381$$++) {
      var $rootItem$$ = $barId$$1_modifiers$$11_rootItemElements$$[$i$$381$$];
      if ($rootItem$$ && 1 == $rootItem$$.nodeType) {
        var $rootItemAccessKey$$ = $rootItem$$.getAttribute("accessKey");
        if ($rootItemAccessKey$$ && $keyPressed_keyStroke$$12$$ == $rootItemAccessKey$$.toUpperCase()) {
          $AdfFocusUtils$$.$focusElement$($rootItem$$);
          $componentEvent$$308$$.cancel();
          break;
        }
      }
    }
  }
};
$JSCompiler_prototypeAlias$$ = $AdfDhtmlMenuBarPeer$$.prototype;
$JSCompiler_prototypeAlias$$.$_handleArrowKeys$ = function $$JSCompiler_prototypeAlias$$$$_handleArrowKeys$$($keyCode$$77$$, $componentEvent$$309$$) {
  var $evt$$111_menuBarElement$$inline_2361_menuBarElement$$inline_2365_nextItem$$inline_2366_previousItem$$inline_2362_rootElement$$79$$ = $componentEvent$$309$$.$getNativeEvent$();
  if (!($evt$$111_menuBarElement$$inline_2361_menuBarElement$$inline_2365_nextItem$$inline_2366_previousItem$$inline_2362_rootElement$$79$$.ctrlKey || $evt$$111_menuBarElement$$inline_2361_menuBarElement$$inline_2365_nextItem$$inline_2366_previousItem$$inline_2362_rootElement$$79$$.altKey || $evt$$111_menuBarElement$$inline_2361_menuBarElement$$inline_2365_nextItem$$inline_2366_previousItem$$inline_2362_rootElement$$79$$.shiftKey || $evt$$111_menuBarElement$$inline_2361_menuBarElement$$inline_2365_nextItem$$inline_2366_previousItem$$inline_2362_rootElement$$79$$.metaKey)) {
    var $evt$$111_menuBarElement$$inline_2361_menuBarElement$$inline_2365_nextItem$$inline_2366_previousItem$$inline_2362_rootElement$$79$$ = $componentEvent$$309$$.getSource().$getPeer$().$getDomElement$(), $component$$1557$$ = $componentEvent$$309$$.getSource();
    if ($AdfMenuUtils$$.$isInOverflow$($evt$$111_menuBarElement$$inline_2361_menuBarElement$$inline_2365_nextItem$$inline_2366_previousItem$$inline_2362_rootElement$$79$$)) {
      switch($keyCode$$77$$) {
        case $AdfKeyStroke$$.$ARROWRIGHT_KEY$:
          $component$$1557$$ instanceof AdfRichMenu && ($component$$1557$$.$getPeer$().show(null, !0), $componentEvent$$309$$.cancel());
          break;
        case $AdfKeyStroke$$.$ARROWUP_KEY$:
          this.$_overflowSupport$.$focusPreviousChild$(this.$_overflowContainer$);
          $componentEvent$$309$$.cancel();
          break;
        case $AdfKeyStroke$$.$ARROWDOWN_KEY$:
          this.$_overflowSupport$.$focusNextChild$(this.$_overflowContainer$), $componentEvent$$309$$.cancel();
      }
    } else {
      switch($keyCode$$77$$) {
        case $AdfKeyStroke$$.$ARROWDOWN_KEY$:
          $component$$1557$$ instanceof AdfRichMenu && ($AdfDomUtils$$.$addCSSClassName$($evt$$111_menuBarElement$$inline_2361_menuBarElement$$inline_2365_nextItem$$inline_2366_previousItem$$inline_2362_rootElement$$79$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$), $component$$1557$$.$getPeer$().show(null, !0), $componentEvent$$309$$.cancel());
          break;
        case $AdfKeyStroke$$.$ARROWLEFT_KEY$:
          this.$_canMoveFocus$() && ($evt$$111_menuBarElement$$inline_2361_menuBarElement$$inline_2365_nextItem$$inline_2366_previousItem$$inline_2362_rootElement$$79$$ = this.$getDomElement$(), ($evt$$111_menuBarElement$$inline_2361_menuBarElement$$inline_2365_nextItem$$inline_2366_previousItem$$inline_2362_rootElement$$79$$ = $AdfFocusUtils$$.$focusPreviousActiveDescendant$($evt$$111_menuBarElement$$inline_2361_menuBarElement$$inline_2365_nextItem$$inline_2366_previousItem$$inline_2362_rootElement$$79$$, 
          this.$_activeDescendant$)) ? this.$_activeDescendant$ = $evt$$111_menuBarElement$$inline_2361_menuBarElement$$inline_2365_nextItem$$inline_2366_previousItem$$inline_2362_rootElement$$79$$ : $AdfFocusUtils$$.$focusPreviousTabStop$(this.$_activeDescendant$));
          $componentEvent$$309$$.cancel();
          break;
        case $AdfKeyStroke$$.$ARROWRIGHT_KEY$:
          this.$_canMoveFocus$() && ($evt$$111_menuBarElement$$inline_2361_menuBarElement$$inline_2365_nextItem$$inline_2366_previousItem$$inline_2362_rootElement$$79$$ = this.$getDomElement$(), ($evt$$111_menuBarElement$$inline_2361_menuBarElement$$inline_2365_nextItem$$inline_2366_previousItem$$inline_2362_rootElement$$79$$ = $AdfFocusUtils$$.$focusNextActiveDescendant$($evt$$111_menuBarElement$$inline_2361_menuBarElement$$inline_2365_nextItem$$inline_2366_previousItem$$inline_2362_rootElement$$79$$, 
          this.$_activeDescendant$)) ? this.$_activeDescendant$ = $evt$$111_menuBarElement$$inline_2361_menuBarElement$$inline_2365_nextItem$$inline_2366_previousItem$$inline_2362_rootElement$$79$$ : $AdfFocusUtils$$.$focusNextTabStop$(this.$_activeDescendant$)), $componentEvent$$309$$.cancel();
      }
    }
  }
};
$JSCompiler_prototypeAlias$$.$_canMoveFocus$ = function $$JSCompiler_prototypeAlias$$$$_canMoveFocus$$() {
  $AdfAssert$$.$assertDomElement$(this.$_activeDescendant$);
  $AdfAssert$$.assert("0" == this.$_activeDescendant$.getAttribute("tabindex"), "The menuBar's active descendant should have tabindex 0");
  this.$_activeDescendant$ || ($AdfLogger$$.$LOGGER$.warning("MenuBar has lost its assigned activeDescendant!"), this.$resetActiveDescendant$());
  return null != this.$_activeDescendant$;
};
$JSCompiler_prototypeAlias$$.$_unStretch$ = function $$JSCompiler_prototypeAlias$$$$_unStretch$$() {
  var $stretchElement$$ = this.$_getStretchElement$();
  $stretchElement$$ && ($stretchElement$$.parentNode.style.width = "");
};
$JSCompiler_prototypeAlias$$.$_reStretch$ = function $$JSCompiler_prototypeAlias$$$$_reStretch$$() {
  var $stretchElement$$1$$ = this.$_getStretchElement$();
  if ($stretchElement$$1$$) {
    if ($AdfMenuUtils$$.$isInOverflow$($stretchElement$$1$$)) {
      $stretchElement$$1$$.parentNode.style.width = "100%";
    } else {
      var $maxWidth$$6$$ = $AdfAgent$$.$AGENT$.getWindowWidth() + "px";
      $stretchElement$$1$$.parentNode.style.width = $maxWidth$$6$$;
    }
  }
};
$JSCompiler_prototypeAlias$$.$_createOverflowElement$ = function $$JSCompiler_prototypeAlias$$$$_createOverflowElement$$($element$$245_swapPosition$$) {
  var $table$$14$$ = $element$$245_swapPosition$$.ownerDocument.createElement("table");
  $table$$14$$.cellPadding = 0;
  $table$$14$$.cellSpacing = 0;
  $table$$14$$.style.width = "100%";
  $table$$14$$.$role$ = "presentation";
  var $tableData$$ = $table$$14$$.insertRow(-1).insertCell(-1);
  $tableData$$.style.width = "100%";
  $tableData$$.setAttribute($AdfMenuUtils$$.$OVERFLOW_KEY$, "true");
  $tableData$$.setAttribute("role", "presentation");
  $AdfDomUtils$$.$addCSSClassName$($tableData$$, $AdfMenuUtils$$.$OVERFLOW_CELL_STYLE_CLASS$);
  $element$$245_swapPosition$$ = this.$_overflowSupport$.$createSwapPosition$($element$$245_swapPosition$$);
  $tableData$$.appendChild($element$$245_swapPosition$$);
  return $table$$14$$;
};
$JSCompiler_prototypeAlias$$.$_getStretchElement$ = function $$JSCompiler_prototypeAlias$$$$_getStretchElement$$() {
  var $menuBar$$1_stretchComponent$$ = this.$getComponent$(), $stretchClientId_stretchId$$ = $menuBar$$1_stretchComponent$$.getStretchId();
  if ($stretchClientId_stretchId$$) {
    if ($menuBar$$1_stretchComponent$$ = $menuBar$$1_stretchComponent$$.$findComponent$($stretchClientId_stretchId$$)) {
      return $stretchClientId_stretchId$$ = $menuBar$$1_stretchComponent$$.$getClientId$(), $AdfAgent$$.$AGENT$.getElementById($stretchClientId_stretchId$$);
    }
    $AdfLogger$$.$LOGGER$.warning("Unable to find client component for stretch id " + $stretchClientId_stretchId$$);
  }
  return null;
};
$JSCompiler_prototypeAlias$$.$HandleComponentMouseOut$ = function $$JSCompiler_prototypeAlias$$$$HandleComponentMouseOut$$($componentEvent$$312_eventSource$$11$$) {
  $componentEvent$$312_eventSource$$11$$ = $componentEvent$$312_eventSource$$11$$.getSource();
  $componentEvent$$312_eventSource$$11$$ instanceof AdfRichCommandNavigationItem && $componentEvent$$312_eventSource$$11$$.getParent() instanceof AdfRichCommandNavigationItem && $componentEvent$$312_eventSource$$11$$.$getPeer$().$getDomElement$().blur();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.HandleComponentMouseOut", {$HandleComponentMouseOut$:$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentMouseOut$});
$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentMouseOver$ = function $$AdfDhtmlMenuBarPeer$$$$$HandleComponentMouseOver$$($componentEvent$$313$$) {
  var $eventSource$$12$$ = $componentEvent$$313$$.getSource();
  $eventSource$$12$$ instanceof AdfRichCommandNavigationItem ? ($eventSource$$12$$.$getPeer$().focus($eventSource$$12$$), this.$_showPopup$($componentEvent$$313$$, null)) : $componentEvent$$313$$.cancel();
  $componentEvent$$313$$.$isCanceled$();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.HandleComponentMouseOver", {$HandleComponentMouseOver$:$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentMouseOver$});
$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentClick$ = function $$AdfDhtmlMenuBarPeer$$$$$HandleComponentClick$$($componentEvent$$314$$) {
  $componentEvent$$314$$.getSource() instanceof AdfRichCommandNavigationItem && $JSCompiler_StaticMethods__closeAllPopups$$(this);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.HandleComponentClick", {$HandleComponentClick$:$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentClick$});
$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentFocus$ = function $$AdfDhtmlMenuBarPeer$$$$$HandleComponentFocus$$($componentEvent$$315$$) {
  var $eventSource$$14_focusableElement_overflowFocusableElement$$ = $componentEvent$$315$$.getSource(), $clientId$$264_compElement$$ = $eventSource$$14_focusableElement_overflowFocusableElement$$.$getClientId$(), $clientId$$264_compElement$$ = $AdfAgent$$.$AGENT$.getElementById($clientId$$264_compElement$$), $evt$$112_evtTarget$$5$$ = $componentEvent$$315$$.$getNativeEvent$(), $evt$$112_evtTarget$$5$$ = $AdfAgent$$.$AGENT$.$getEventTarget$($evt$$112_evtTarget$$5$$);
  $eventSource$$14_focusableElement_overflowFocusableElement$$ instanceof AdfRichCommandNavigationItem && $AdfDomUtils$$.$addCSSClassName$($clientId$$264_compElement$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$);
  $evt$$112_evtTarget$$5$$ == this.$_overflowIndicator$ ? this.$_activeDescendant$ != $evt$$112_evtTarget$$5$$ && this.$_updateActiveDescendant$(this.$_overflowIndicator$) : $AdfMenuUtils$$.$isInOverflow$($clientId$$264_compElement$$) ? ($eventSource$$14_focusableElement_overflowFocusableElement$$ = $AdfFocusUtils$$.$getFirstFocusableDescendant$($clientId$$264_compElement$$)) && this.$_overflowSupport$.$updateActiveDescendant$($eventSource$$14_focusableElement_overflowFocusableElement$$) : $AdfMenuUtils$$.$isOnMenuBar$($eventSource$$14_focusableElement_overflowFocusableElement$$) && 
  ($eventSource$$14_focusableElement_overflowFocusableElement$$ = $AdfFocusUtils$$.$getFirstFocusableDescendant$($clientId$$264_compElement$$)) && $eventSource$$14_focusableElement_overflowFocusableElement$$ != this.$_activeDescendant$ && this.$_updateActiveDescendant$($eventSource$$14_focusableElement_overflowFocusableElement$$);
  $componentEvent$$315$$.cancel();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.HandleComponentFocus", {$HandleComponentFocus$:$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentFocus$});
$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentBlur$ = function $$AdfDhtmlMenuBarPeer$$$$$HandleComponentBlur$$($componentEvent$$316$$) {
  var $compElement$$1_eventSource$$15$$ = $componentEvent$$316$$.getSource();
  $compElement$$1_eventSource$$15$$ instanceof AdfRichCommandNavigationItem ? ($compElement$$1_eventSource$$15$$ = $AdfAgent$$.$AGENT$.getElementById($compElement$$1_eventSource$$15$$.$getClientId$()), $AdfDomUtils$$.$removeCSSClassName$($compElement$$1_eventSource$$15$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$)) : $componentEvent$$316$$.cancel();
  $componentEvent$$316$$.$isCanceled$();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.HandleComponentBlur", {$HandleComponentBlur$:$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentBlur$});
$AdfDhtmlMenuBarPeer$$.prototype.$PopupClosed$ = function $$AdfDhtmlMenuBarPeer$$$$$PopupClosed$$($component$$1558$$, $contentDom$$13$$) {
  if ($component$$1558$$ instanceof AdfRichCommandNavigationItem) {
    var $compElement$$2$$ = $AdfAgent$$.$AGENT$.getElementById($component$$1558$$.$getClientId$()), $element$$246$$ = $compElement$$2$$, $element$$246$$ = $JSCompiler_StaticMethods__getPopupContainerElement$$($component$$1558$$);
    $component$$1558$$.getParent() instanceof AdfRichMenuBar && $AdfDomUtils$$.$removeCSSClassName$($compElement$$2$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$);
    $contentDom$$13$$.style.display = "none";
    $AdfCollections$$.$removeArrayValue$($AdfDhtmlMenuBarPeer$$.$_sOpenedPopups$, $component$$1558$$.$getClientId$());
    $AdfDhtmlMenuBarPeer$$.$superclass$.$PopupClosed$.call(this, $component$$1558$$, $contentDom$$13$$);
    $element$$246$$.appendChild($contentDom$$13$$);
  } else {
    $AdfDhtmlMenuBarPeer$$.$superclass$.$PopupClosed$.call(this, $component$$1558$$, $contentDom$$13$$);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.PopupClosed", {$PopupClosed$:$AdfDhtmlMenuBarPeer$$.prototype.$PopupClosed$});
function $JSCompiler_StaticMethods__getPopupElement$$($componentEvent$$317_eventSource$$16$$) {
  $componentEvent$$317_eventSource$$16$$ = $componentEvent$$317_eventSource$$16$$.getSource();
  var $popupElement$$9$$ = null;
  $JSCompiler_StaticMethods__getPopupContainerElement$$($componentEvent$$317_eventSource$$16$$) && ($popupElement$$9$$ = $JSCompiler_StaticMethods__getPopupContainerElement$$($componentEvent$$317_eventSource$$16$$).lastChild);
  return $popupElement$$9$$;
}
$AdfDhtmlMenuBarPeer$$.prototype.$_showPopup$ = function $$AdfDhtmlMenuBarPeer$$$$$_showPopup$$($componentEvent$$318$$, $focusOnFirstElement$$3$$) {
  var $eventSource$$20$$ = $componentEvent$$318$$.getSource(), $eventSourceId_openedPopups$$inline_2376$$ = $eventSource$$20$$.$getClientId$(), $agent$$402_alignEle_id$$inline_2378$$ = $AdfAgent$$.$AGENT$;
  if ($JSCompiler_StaticMethods__isPopupOpen$$($eventSourceId_openedPopups$$inline_2376$$)) {
    $componentEvent$$318$$.cancel();
  } else {
    var $i$$inline_2377_popupElement$$10$$ = $JSCompiler_StaticMethods__getPopupElement$$($componentEvent$$318$$);
    if ($i$$inline_2377_popupElement$$10$$) {
      $agent$$402_alignEle_id$$inline_2378$$ = $agent$$402_alignEle_id$$inline_2378$$.getElementById($eventSource$$20$$.$getClientId$());
      $eventSource$$20$$.getParent() instanceof AdfRichMenuBar && $AdfDomUtils$$.$addCSSClassName$($agent$$402_alignEle_id$$inline_2378$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$);
      var $cmdNavComp$$inline_2379_hints$$inline_2371$$ = {}, $JSCompiler_inline_result$$5483_compElement$$inline_2372_navComponent$$inline_5865$$ = $AdfAgent$$.$AGENT$.getElementById($eventSource$$20$$.$getClientId$());
      $cmdNavComp$$inline_2379_hints$$inline_2371$$.type = "menu";
      $cmdNavComp$$inline_2379_hints$$inline_2371$$.autodismiss = "autodismissMenu";
      $cmdNavComp$$inline_2379_hints$$inline_2371$$.alignElement = $agent$$402_alignEle_id$$inline_2378$$;
      $cmdNavComp$$inline_2379_hints$$inline_2371$$.focus = $focusOnFirstElement$$3$$ ? !0 : !1;
      $cmdNavComp$$inline_2379_hints$$inline_2371$$.closeOnEscape = !1;
      $eventSource$$20$$.getParent() instanceof AdfRichCommandNavigationItem || $AdfMenuUtils$$.$isInOverflow$($JSCompiler_inline_result$$5483_compElement$$inline_2372_navComponent$$inline_5865$$) ? $cmdNavComp$$inline_2379_hints$$inline_2371$$[AdfRichPopup.$HINT_ALIGN$] = AdfRichPopup.$ALIGN_END_BEFORE$ : $cmdNavComp$$inline_2379_hints$$inline_2371$$[AdfRichPopup.$HINT_ALIGN$] = AdfRichPopup.$ALIGN_AFTER_START$;
      $i$$inline_2377_popupElement$$10$$.style.display = "block";
      $AdfDhtmlMenuBarPeer$$.$_sOpenedPopups$.push($eventSourceId_openedPopups$$inline_2376$$);
      $AdfDhtmlMenuBarPeer$$.$superclass$.$showPopup$.call(this, $eventSource$$20$$, $i$$inline_2377_popupElement$$10$$, $cmdNavComp$$inline_2379_hints$$inline_2371$$, $eventSourceId_openedPopups$$inline_2376$$);
    }
    $componentEvent$$318$$.cancel();
    if (($eventSourceId_openedPopups$$inline_2376$$ = $AdfDhtmlMenuBarPeer$$.$_sOpenedPopups$) && 0 != $eventSourceId_openedPopups$$inline_2376$$.length) {
      for ($i$$inline_2377_popupElement$$10$$ = $eventSourceId_openedPopups$$inline_2376$$.length - 1;0 <= $i$$inline_2377_popupElement$$10$$;$i$$inline_2377_popupElement$$10$$--) {
        $agent$$402_alignEle_id$$inline_2378$$ = $eventSourceId_openedPopups$$inline_2376$$[$i$$inline_2377_popupElement$$10$$];
        $cmdNavComp$$inline_2379_hints$$inline_2371$$ = $AdfPage$$.$PAGE$.$findComponent$($agent$$402_alignEle_id$$inline_2378$$);
        a: {
          for (var $JSCompiler_inline_result$$5483_compElement$$inline_2372_navComponent$$inline_5865$$ = $cmdNavComp$$inline_2379_hints$$inline_2371$$, $comp$$inline_5867$$ = $eventSource$$20$$;!($comp$$inline_5867$$ instanceof AdfRichMenuBar);) {
            if ($JSCompiler_inline_result$$5483_compElement$$inline_2372_navComponent$$inline_5865$$.$getClientId$() == $comp$$inline_5867$$.$getClientId$()) {
              $JSCompiler_inline_result$$5483_compElement$$inline_2372_navComponent$$inline_5865$$ = !0;
              break a;
            }
            $comp$$inline_5867$$ = $comp$$inline_5867$$.getParent();
          }
          $JSCompiler_inline_result$$5483_compElement$$inline_2372_navComponent$$inline_5865$$ = !1;
        }
        $JSCompiler_inline_result$$5483_compElement$$inline_2372_navComponent$$inline_5865$$ || $AdfDhtmlMenuBarPeer$$.$superclass$.$hidePopup$.call(this, $cmdNavComp$$inline_2379_hints$$inline_2371$$, $agent$$402_alignEle_id$$inline_2378$$);
      }
    }
  }
};
function $JSCompiler_StaticMethods__isPopupOpen$$($componentId$$37$$) {
  return 0 <= $AdfCollections$$.indexOf($AdfDhtmlMenuBarPeer$$.$_sOpenedPopups$, $componentId$$37$$) ? !0 : !1;
}
function $JSCompiler_StaticMethods__getPopupContainerElement$$($component$$1559_eleChildren_tdElem$$1$$) {
  var $agent$$404$$ = $AdfAgent$$.$AGENT$, $element$$247_rowChildren$$ = $agent$$404$$.getElementById($component$$1559_eleChildren_tdElem$$1$$.$getClientId$()), $popupContainerElement$$ = null;
  if ($component$$1559_eleChildren_tdElem$$1$$.getParent() instanceof AdfRichMenuBar) {
    $component$$1559_eleChildren_tdElem$$1$$ = $element$$247_rowChildren$$.childNodes;
    for (i = 0;i < $component$$1559_eleChildren_tdElem$$1$$.length;i++) {
      "TABLE" == $agent$$404$$.$getNodeName$($component$$1559_eleChildren_tdElem$$1$$[i]) && ($element$$247_rowChildren$$ = $component$$1559_eleChildren_tdElem$$1$$[i]);
    }
    for (;"TR" != $agent$$404$$.$getNodeName$($element$$247_rowChildren$$);) {
      $element$$247_rowChildren$$ = 8 == $element$$247_rowChildren$$.nodeType ? $element$$247_rowChildren$$.nextSibling : $element$$247_rowChildren$$.firstChild;
    }
  }
  $element$$247_rowChildren$$ = $element$$247_rowChildren$$.childNodes;
  for (i = 0;i < $element$$247_rowChildren$$.length;i++) {
    $component$$1559_eleChildren_tdElem$$1$$ = $element$$247_rowChildren$$[i], "TD" == $agent$$404$$.$getNodeName$($component$$1559_eleChildren_tdElem$$1$$) && "popupContainer" == $component$$1559_eleChildren_tdElem$$1$$.getAttribute("_afrClNm") && ($popupContainerElement$$ = $component$$1559_eleChildren_tdElem$$1$$);
  }
  return $popupContainerElement$$;
}
function $JSCompiler_StaticMethods__closeAllPopups$$($JSCompiler_StaticMethods__closeAllPopups$self$$) {
  var $openedPopups$$1$$ = $AdfDhtmlMenuBarPeer$$.$_sOpenedPopups$;
  if ($openedPopups$$1$$ && 0 != $openedPopups$$1$$.length) {
    for (var $i$$383$$ = $openedPopups$$1$$.length - 1;0 <= $i$$383$$;$i$$383$$--) {
      var $id$$302$$ = $openedPopups$$1$$[$i$$383$$], $cmdNavComp$$1$$ = $AdfPage$$.$PAGE$.$findComponent$($id$$302$$);
      $AdfDhtmlMenuBarPeer$$.$superclass$.$hidePopup$.call($JSCompiler_StaticMethods__closeAllPopups$self$$, $cmdNavComp$$1$$, $id$$302$$);
    }
  }
}
$AdfDhtmlMenuBarPeer$$.prototype.$_updateActiveDescendant$ = function $$AdfDhtmlMenuBarPeer$$$$$_updateActiveDescendant$$($newActiveDescendant$$) {
  $AdfAssert$$.$assertDomElement$($newActiveDescendant$$);
  this.$_activeDescendant$ && this.$_activeDescendant$.setAttribute("tabIndex", "-1");
  $newActiveDescendant$$.setAttribute("tabIndex", "0");
  this.$_activeDescendant$ = $newActiveDescendant$$;
};
$AdfDhtmlMenuBarPeer$$.prototype.$ConvertClientIdToLocator$ = function $$AdfDhtmlMenuBarPeer$$$$$ConvertClientIdToLocator$$($clientId$$265_clientIdDepth$$4_component$$1560$$, $childComponent$$13_endIndex$$7$$, $descComponentClientId$$5_index$$148_subComponentId$$5$$, $replaceArray$$6$$) {
  $clientId$$265_clientIdDepth$$4_component$$1560$$ = $clientId$$265_clientIdDepth$$4_component$$1560$$.$getClientId$();
  0 > $descComponentClientId$$5_index$$148_subComponentId$$5$$.indexOf($clientId$$265_clientIdDepth$$4_component$$1560$$) || ($descComponentClientId$$5_index$$148_subComponentId$$5$$ = $descComponentClientId$$5_index$$148_subComponentId$$5$$.substring($clientId$$265_clientIdDepth$$4_component$$1560$$.length + 1), $childComponent$$13_endIndex$$7$$ = $descComponentClientId$$5_index$$148_subComponentId$$5$$.indexOf(":"), 0 < $childComponent$$13_endIndex$$7$$ && ($descComponentClientId$$5_index$$148_subComponentId$$5$$ = 
  $descComponentClientId$$5_index$$148_subComponentId$$5$$.substring(0, $childComponent$$13_endIndex$$7$$), $clientId$$265_clientIdDepth$$4_component$$1560$$ = $AdfStrings$$.count($clientId$$265_clientIdDepth$$4_component$$1560$$, ":"), $replaceArray$$6$$.push([$clientId$$265_clientIdDepth$$4_component$$1560$$ + 1, $descComponentClientId$$5_index$$148_subComponentId$$5$$])));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.ConvertClientIdToLocator", {$ConvertClientIdToLocator$:$AdfDhtmlMenuBarPeer$$.prototype.$ConvertClientIdToLocator$});
$AdfDhtmlMenuBarPeer$$.prototype.$convertLocatorToClientId$ = function $$AdfDhtmlMenuBarPeer$$$$$convertLocatorToClientId$$($component$$1561$$, $index$$149$$) {
  var $child$$26$$ = $component$$1561$$.$getDescendantComponents$()[$index$$149$$];
  if ($child$$26$$) {
    if ($child$$26$$ instanceof AdfRichCommandNavigationItem) {
      return $child$$26$$.$getClientId$();
    }
    $AdfAssert$$.assert(!1, "Use of [] locator notation is only supported when menuBar: " + $component$$1561$$.$getClientId$() + " is used with MenuModel");
  }
  return null;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.convertLocatorToClientId", {$convertLocatorToClientId$:$AdfDhtmlMenuBarPeer$$.prototype.$convertLocatorToClientId$});
$AdfDhtmlMenuBarPeer$$.prototype.$SimulateMouseOnDescendant$ = function $$AdfDhtmlMenuBarPeer$$$$$SimulateMouseOnDescendant$$($targetComponent$$6$$, $domElement$$335$$, $mouseEvent$$7$$) {
  $AdfDhtmlMenuBarPeer$$.$superclass$.$SimulateMouseOnDescendant$.call(this, $targetComponent$$6$$, $domElement$$335$$, $mouseEvent$$7$$);
  this.$_isOverflowSupported$ && this.$_overflowSupport$.$isInOverflow$($domElement$$335$$) && this.$_overflowSupport$.$showOverflowPopup$();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.SimulateMouseOnDescendant", {$SimulateMouseOnDescendant$:$AdfDhtmlMenuBarPeer$$.prototype.$SimulateMouseOnDescendant$});
