var $AdfDhtmlMenuBarPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlMenuBarPeer", $JSCompiler_alias_FALSE$$);
$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$.$getCapabilities$()[$AdfAgent$$.$CAP_TOUCH_SCREEN$] == $AdfAgent$$.$CAP_TOUCH_SCREEN_NONE$ && $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$$1076$$, $domElement$$292$$) {
  $AdfDhtmlMenuBarPeer$$.$superclass$.$InitDomElement$.call(this, $component$$1076$$, $domElement$$292$$);
  var $clientId$$211$$ = $component$$1076$$.$getClientId$(), $id$$285$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$211$$, "eoc"), $agent$$325$$ = $AdfAgent$$.$AGENT$;
  this.$_isOverflowSupported$ = (this.$_overflowContainer$ = $agent$$325$$.getElementById($id$$285$$)) ? $JSCompiler_alias_TRUE$$ : $JSCompiler_alias_FALSE$$;
  this.$_isOverflowSupported$ == $JSCompiler_alias_TRUE$$ && ($id$$285$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$211$$, "eoi"), this.$_overflowIndicator$ = $agent$$325$$.getElementById($id$$285$$), $AdfPage$$.$PAGE$.$__registerDescendantResizeNotifyComponent$($component$$1076$$));
  this.$_childContainers$ = $agent$$325$$.$getTableRowCells$($agent$$325$$.$getTableRow$($domElement$$292$$.getElementsByTagName("table")[0], 0));
  this.$_activeDescendant$ = $AdfFocusUtils$$.$setFirstActiveDescendant$($domElement$$292$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.InitDomElement", {$InitDomElement$:$AdfDhtmlMenuBarPeer$$.prototype.$InitDomElement$});
$AdfDhtmlMenuBarPeer$$.prototype.$needsChildVisibilityChanges$ = $JSCompiler_returnArg$$($JSCompiler_alias_TRUE$$);
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.needsChildVisibilityChanges", {$needsChildVisibilityChanges$:$AdfDhtmlMenuBarPeer$$.prototype.$needsChildVisibilityChanges$});
$AdfDhtmlMenuBarPeer$$.prototype.$needsResizeNotify$ = $JSCompiler_returnArg$$($JSCompiler_alias_TRUE$$);
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.needsResizeNotify", {$needsResizeNotify$:$AdfDhtmlMenuBarPeer$$.prototype.$needsResizeNotify$});
$AdfDhtmlMenuBarPeer$$.prototype.$getDescendantComponents$ = function $$AdfDhtmlMenuBarPeer$$$$$getDescendantComponents$$($component$$1079$$, $children$$25$$) {
  $children$$25$$ || ($children$$25$$ = []);
  $AdfDhtmlMenuBarPeer$$.$superclass$.$getDescendantComponents$.call(this, $component$$1079$$, $children$$25$$);
  this.$_isOverflowSupported$ == $JSCompiler_alias_TRUE$$ && $AdfOverflowSupport$$.$getOverflowChildComponents$($component$$1079$$, $children$$25$$);
  return $children$$25$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.getDescendantComponents", {$getDescendantComponents$:$AdfDhtmlMenuBarPeer$$.prototype.$getDescendantComponents$});
$AdfDhtmlMenuBarPeer$$.prototype.$updateScrollIconsState$ = $JSCompiler_emptyFn$$();
$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$$57$$ = this.$getDomElement$(), $agent$$326_component$$1080_i$$276$$ = this.$getComponent$(), $childElement$$7_id$$286_menuBarItem$$1_overflowElement$$2$$ = $agent$$326_component$$1080_i$$276$$.$getClientId$();
  if(this.$_isOverflowSupported$ != $JSCompiler_alias_FALSE$$ || $agent$$326_component$$1080_i$$276$$.getStretchId()) {
    this.$_unStretch$();
    if(this.$_isOverflowSupported$ == $JSCompiler_alias_TRUE$$) {
      if(!this.$_overflowSupport$) {
        this.$_overflowSupport$ = new $AdfOverflowSupport$$($childElement$$7_id$$286_menuBarItem$$1_overflowElement$$2$$, this, "end", $JSCompiler_alias_NULL$$, $JSCompiler_alias_NULL$$, $JSCompiler_alias_TRUE$$);
        $agent$$326_component$$1080_i$$276$$ = $AdfAgent$$.$AGENT$;
        $menuBarItems$$1_rootElement$$57$$ = $agent$$326_component$$1080_i$$276$$.$getTableRowCells$($agent$$326_component$$1080_i$$276$$.$getTableRow$($menuBarItems$$1_rootElement$$57$$.getElementsByTagName("table")[0], 0));
        $agent$$326_component$$1080_i$$276$$ = 0;
        for($childElement$$7_id$$286_menuBarItem$$1_overflowElement$$2$$ = $menuBarItems$$1_rootElement$$57$$[0];$childElement$$7_id$$286_menuBarItem$$1_overflowElement$$2$$;) {
          this.$_overflowSupport$.$createStep$(), this.$_overflowSupport$.addElement($childElement$$7_id$$286_menuBarItem$$1_overflowElement$$2$$), $childElement$$7_id$$286_menuBarItem$$1_overflowElement$$2$$ = $AdfDomUtils$$.$getFirstChildElement$($childElement$$7_id$$286_menuBarItem$$1_overflowElement$$2$$), $AdfToolbarUtils$$.$isValidOverflowElement$($childElement$$7_id$$286_menuBarItem$$1_overflowElement$$2$$) && ($childElement$$7_id$$286_menuBarItem$$1_overflowElement$$2$$ = this.$_createOverflowElement$($childElement$$7_id$$286_menuBarItem$$1_overflowElement$$2$$), 
          this.$_overflowSupport$.$addOverflowElement$($childElement$$7_id$$286_menuBarItem$$1_overflowElement$$2$$)), $agent$$326_component$$1080_i$$276$$++, $childElement$$7_id$$286_menuBarItem$$1_overflowElement$$2$$ = $menuBarItems$$1_rootElement$$57$$[$agent$$326_component$$1080_i$$276$$]
        }
      }
      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 $JSCompiler_alias_FALSE$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.ChildVisibilityChanged", {$ChildVisibilityChanged$:$AdfDhtmlMenuBarPeer$$.prototype.$ChildVisibilityChanged$});
$AdfDhtmlMenuBarPeer$$.prototype.$GetPreferredWidth$ = function $$AdfDhtmlMenuBarPeer$$$$$GetPreferredWidth$$() {
  if(!this.$_preferredWidth$) {
    var $content$$22$$ = this.$getDomElement$().firstChild;
    this.$_unStretch$();
    this.$_overflowSupport$ && this.$_overflowSupport$.$removeAllItemsFromOverflow$();
    this.$_preferredWidth$ = $content$$22$$.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(this.$_isOverflowSupported$ == $JSCompiler_alias_FALSE$$) {
      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$$228$$) {
  if(!$componentEvent$$228$$.$isCanceled$()) {
    var $agent$$327_comp$$inline_2039_eSourceId$$inline_2026_parentElem$$5$$ = $AdfAgent$$.$AGENT$, $compElem$$inline_2040_keyCode$$57_nextItem$$inline_2037_previousItem$$inline_2038$$ = $componentEvent$$228$$.$getKeyCode$(), $agent$$inline_2024_eventSource$$8_evt$$inline_2036_menuBarElem$$inline_2035$$ = $componentEvent$$228$$.getSource();
    if($agent$$inline_2024_eventSource$$8_evt$$inline_2036_menuBarElem$$inline_2035$$ instanceof AdfRichCommandNavigationItem) {
      $compElem$$inline_2040_keyCode$$57_nextItem$$inline_2037_previousItem$$inline_2038$$ == $AdfKeyStroke$$.$ESC_KEY$ && $agent$$inline_2024_eventSource$$8_evt$$inline_2036_menuBarElem$$inline_2035$$.getParent() instanceof AdfRichCommandNavigationItem && ($agent$$327_comp$$inline_2039_eSourceId$$inline_2026_parentElem$$5$$ = $agent$$327_comp$$inline_2039_eSourceId$$inline_2026_parentElem$$5$$.getElementById($agent$$inline_2024_eventSource$$8_evt$$inline_2036_menuBarElem$$inline_2035$$.getParent().$getClientId$()), 
      $AdfFocusUtils$$.$focusFirstTabStop$($agent$$327_comp$$inline_2039_eSourceId$$inline_2026_parentElem$$5$$), $AdfDhtmlMenuBarPeer$$.$superclass$.$cancelAllPopups$.call(this, $agent$$inline_2024_eventSource$$8_evt$$inline_2036_menuBarElem$$inline_2035$$), $AdfDhtmlMenuBarPeer$$.$superclass$.$cancelAllPopups$.call(this, $agent$$inline_2024_eventSource$$8_evt$$inline_2036_menuBarElem$$inline_2035$$.getParent()), $componentEvent$$228$$.cancel());
      var $agent$$inline_2024_eventSource$$8_evt$$inline_2036_menuBarElem$$inline_2035$$ = $AdfAgent$$.$AGENT$, $eSource$$inline_2025$$ = $componentEvent$$228$$.getSource(), $agent$$327_comp$$inline_2039_eSourceId$$inline_2026_parentElem$$5$$ = $eSource$$inline_2025$$.$getClientId$(), $eventSourceElem$$inline_2027$$ = $agent$$inline_2024_eventSource$$8_evt$$inline_2036_menuBarElem$$inline_2035$$.getElementById($agent$$327_comp$$inline_2039_eSourceId$$inline_2026_parentElem$$5$$), $eSourcePopupSubId$$inline_2028_parentElem$$inline_2032$$ = 
      $AdfRichUIPeer$$.$CreateSubId$($agent$$327_comp$$inline_2039_eSourceId$$inline_2026_parentElem$$5$$, "menu"), $eSourcePopupElem$$inline_2029$$ = $agent$$inline_2024_eventSource$$8_evt$$inline_2036_menuBarElem$$inline_2035$$.getElementById($eSourcePopupSubId$$inline_2028_parentElem$$inline_2032$$), $parent$$inline_2030$$ = $eSource$$inline_2025$$.getParent(), $parentId$$inline_2031_parentPopupElem$$inline_2034_parentPopupSubId$$inline_2033$$ = $parent$$inline_2030$$.$getClientId$(), $eSourcePopupSubId$$inline_2028_parentElem$$inline_2032$$ = 
      $agent$$inline_2024_eventSource$$8_evt$$inline_2036_menuBarElem$$inline_2035$$.getElementById($parentId$$inline_2031_parentPopupElem$$inline_2034_parentPopupSubId$$inline_2033$$), $parentId$$inline_2031_parentPopupElem$$inline_2034_parentPopupSubId$$inline_2033$$ = $AdfRichUIPeer$$.$CreateSubId$($parentId$$inline_2031_parentPopupElem$$inline_2034_parentPopupSubId$$inline_2033$$, "menu"), $parentId$$inline_2031_parentPopupElem$$inline_2034_parentPopupSubId$$inline_2033$$ = $agent$$inline_2024_eventSource$$8_evt$$inline_2036_menuBarElem$$inline_2035$$.getElementById($parentId$$inline_2031_parentPopupElem$$inline_2034_parentPopupSubId$$inline_2033$$);
      if($parent$$inline_2030$$ instanceof AdfRichMenuBar) {
        if($agent$$inline_2024_eventSource$$8_evt$$inline_2036_menuBarElem$$inline_2035$$ = $componentEvent$$228$$.$getNativeEvent$(), !$agent$$inline_2024_eventSource$$8_evt$$inline_2036_menuBarElem$$inline_2035$$.ctrlKey && !$agent$$inline_2024_eventSource$$8_evt$$inline_2036_menuBarElem$$inline_2035$$.altKey && !$agent$$inline_2024_eventSource$$8_evt$$inline_2036_menuBarElem$$inline_2035$$.shiftKey && !$agent$$inline_2024_eventSource$$8_evt$$inline_2036_menuBarElem$$inline_2035$$.metaKey) {
          switch($compElem$$inline_2040_keyCode$$57_nextItem$$inline_2037_previousItem$$inline_2038$$) {
            case $AdfKeyStroke$$.$ARROWDOWN_KEY$:
              $JSCompiler_StaticMethods__isPopupOpen$$($agent$$327_comp$$inline_2039_eSourceId$$inline_2026_parentElem$$5$$) ? $AdfFocusUtils$$.$focusFirstTabStop$($eSourcePopupElem$$inline_2029$$) : this.$_showPopup$($componentEvent$$228$$, $JSCompiler_alias_TRUE$$);
              $componentEvent$$228$$.cancel();
              break;
            case $AdfKeyStroke$$.$ARROWRIGHT_KEY$:
              ($compElem$$inline_2040_keyCode$$57_nextItem$$inline_2037_previousItem$$inline_2038$$ = $AdfFocusUtils$$.$focusNextActiveDescendant$($eSourcePopupSubId$$inline_2028_parentElem$$inline_2032$$, this.$_activeDescendant$)) ? this.$_activeDescendant$ = $compElem$$inline_2040_keyCode$$57_nextItem$$inline_2037_previousItem$$inline_2038$$ : $AdfFocusUtils$$.$focusNextTabStop$(this.$_activeDescendant$);
              $componentEvent$$228$$.cancel();
              break;
            case $AdfKeyStroke$$.$ARROWLEFT_KEY$:
              ($compElem$$inline_2040_keyCode$$57_nextItem$$inline_2037_previousItem$$inline_2038$$ = $AdfFocusUtils$$.$focusPreviousActiveDescendant$($eSourcePopupSubId$$inline_2028_parentElem$$inline_2032$$, this.$_activeDescendant$)) ? this.$_activeDescendant$ = $compElem$$inline_2040_keyCode$$57_nextItem$$inline_2037_previousItem$$inline_2038$$ : $AdfFocusUtils$$.$focusPreviousTabStop$(this.$_activeDescendant$), $componentEvent$$228$$.cancel()
          }
        }
      }else {
        switch($compElem$$inline_2040_keyCode$$57_nextItem$$inline_2037_previousItem$$inline_2038$$) {
          case $AdfKeyStroke$$.$ARROWDOWN_KEY$:
            $AdfFocusUtils$$.$focusNextTabStop$($eventSourceElem$$inline_2027$$, $parentId$$inline_2031_parentPopupElem$$inline_2034_parentPopupSubId$$inline_2033$$);
            $componentEvent$$228$$.cancel();
            break;
          case $AdfKeyStroke$$.$ARROWUP_KEY$:
            $AdfFocusUtils$$.$focusPreviousTabStop$($eventSourceElem$$inline_2027$$, $parentId$$inline_2031_parentPopupElem$$inline_2034_parentPopupSubId$$inline_2033$$);
            $componentEvent$$228$$.cancel();
            break;
          case $AdfKeyStroke$$.$ARROWRIGHT_KEY$:
            if($JSCompiler_StaticMethods__isPopupOpen$$($agent$$327_comp$$inline_2039_eSourceId$$inline_2026_parentElem$$5$$)) {
              $AdfFocusUtils$$.$focusFirstTabStop$($eSourcePopupElem$$inline_2029$$)
            }else {
              if($JSCompiler_StaticMethods__getPopupElement$$($componentEvent$$228$$)) {
                this.$_showPopup$($componentEvent$$228$$, $JSCompiler_alias_TRUE$$)
              }else {
                for($agent$$327_comp$$inline_2039_eSourceId$$inline_2026_parentElem$$5$$ = $eSource$$inline_2025$$;!($agent$$327_comp$$inline_2039_eSourceId$$inline_2026_parentElem$$5$$.getParent() instanceof AdfRichMenuBar);) {
                  $agent$$327_comp$$inline_2039_eSourceId$$inline_2026_parentElem$$5$$ = $agent$$327_comp$$inline_2039_eSourceId$$inline_2026_parentElem$$5$$.getParent()
                }
                $compElem$$inline_2040_keyCode$$57_nextItem$$inline_2037_previousItem$$inline_2038$$ = $agent$$inline_2024_eventSource$$8_evt$$inline_2036_menuBarElem$$inline_2035$$.getElementById($agent$$327_comp$$inline_2039_eSourceId$$inline_2026_parentElem$$5$$.$getClientId$());
                $agent$$inline_2024_eventSource$$8_evt$$inline_2036_menuBarElem$$inline_2035$$ = $agent$$inline_2024_eventSource$$8_evt$$inline_2036_menuBarElem$$inline_2035$$.getElementById($agent$$327_comp$$inline_2039_eSourceId$$inline_2026_parentElem$$5$$.getParent().$getClientId$());
                $AdfFocusUtils$$.$focusNextTabStop$($compElem$$inline_2040_keyCode$$57_nextItem$$inline_2037_previousItem$$inline_2038$$, $agent$$inline_2024_eventSource$$8_evt$$inline_2036_menuBarElem$$inline_2035$$);
                $JSCompiler_StaticMethods__closeAllPopups$$(this)
              }
            }
            $componentEvent$$228$$.cancel();
            break;
          case $AdfKeyStroke$$.$ARROWLEFT_KEY$:
            $parent$$inline_2030$$.getParent() instanceof AdfRichMenuBar ? ($agent$$inline_2024_eventSource$$8_evt$$inline_2036_menuBarElem$$inline_2035$$ = $agent$$inline_2024_eventSource$$8_evt$$inline_2036_menuBarElem$$inline_2035$$.getElementById($parent$$inline_2030$$.getParent().$getClientId$()), $AdfFocusUtils$$.$focusPreviousTabStop$($eSourcePopupSubId$$inline_2028_parentElem$$inline_2032$$, $agent$$inline_2024_eventSource$$8_evt$$inline_2036_menuBarElem$$inline_2035$$), $JSCompiler_StaticMethods__closeAllPopups$$(this)) : 
            ($AdfFocusUtils$$.$focusFirstTabStop$($eSourcePopupSubId$$inline_2028_parentElem$$inline_2032$$), $AdfDhtmlMenuBarPeer$$.$superclass$.$cancelAllPopups$.call(this, $parent$$inline_2030$$)), $componentEvent$$228$$.cancel()
        }
      }
    }else {
      $agent$$327_comp$$inline_2039_eSourceId$$inline_2026_parentElem$$5$$.$getPreferredKeyEventForRepetition$() == $AdfUIInputEvent$$.$KEY_DOWN_EVENT_TYPE$ && this.$_handleArrowKeys$($compElem$$inline_2040_keyCode$$57_nextItem$$inline_2037_previousItem$$inline_2038$$, $componentEvent$$228$$)
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.HandleComponentKeyDown", {$HandleComponentKeyDown$:$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentKeyDown$});
$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentKeyPress$ = function $$AdfDhtmlMenuBarPeer$$$$$HandleComponentKeyPress$$($componentEvent$$229$$) {
  if(!$componentEvent$$229$$.$isCanceled$() && $AdfAgent$$.$AGENT$.$getPreferredKeyEventForRepetition$() == $AdfUIInputEvent$$.$KEY_PRESS_EVENT_TYPE$) {
    var $keyCode$$58$$ = $componentEvent$$229$$.$getKeyCode$();
    this.$_handleArrowKeys$($keyCode$$58$$, $componentEvent$$229$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.HandleComponentKeyPress", {$HandleComponentKeyPress$:$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentKeyPress$});
$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentKeyUp$ = function $$AdfDhtmlMenuBarPeer$$$$$HandleComponentKeyUp$$($componentEvent$$230$$) {
  var $component$$1081$$ = this.$getComponent$();
  if(!$componentEvent$$230$$.$isCanceled$() && !$component$$1081$$.getDisabled()) {
    var $eventSource$$9_target$$129$$ = $componentEvent$$230$$.getSource(), $itemHref$$1_keyCode$$59$$ = $componentEvent$$230$$.$getKeyCode$();
    if($eventSource$$9_target$$129$$ instanceof AdfRichCommandNavigationItem && $itemHref$$1_keyCode$$59$$ == $AdfKeyStroke$$.$ENTER_KEY$) {
      var $agent$$329_documentHref$$3_trimmedDocHref$$3$$ = $AdfAgent$$.$AGENT$, $eventSourceElem$$ = $agent$$329_documentHref$$3_trimmedDocHref$$3$$.getElementById($eventSource$$9_target$$129$$.$getClientId$()), $itemHref$$1_keyCode$$59$$ = $eventSourceElem$$.getAttribute("href"), $agent$$329_documentHref$$3_trimmedDocHref$$3$$ = $agent$$329_documentHref$$3_trimmedDocHref$$3$$.$getDomDocument$().location.href, $hashIndex$$9$$ = $agent$$329_documentHref$$3_trimmedDocHref$$3$$.indexOf("#"), $agent$$329_documentHref$$3_trimmedDocHref$$3$$ = 
      -1 == $hashIndex$$9$$ ? $agent$$329_documentHref$$3_trimmedDocHref$$3$$ : $agent$$329_documentHref$$3_trimmedDocHref$$3$$.substring(0, $hashIndex$$9$$);
      $itemHref$$1_keyCode$$59$$ && (-1 == $itemHref$$1_keyCode$$59$$.indexOf($agent$$329_documentHref$$3_trimmedDocHref$$3$$) || 1 < $itemHref$$1_keyCode$$59$$.substring($itemHref$$1_keyCode$$59$$.indexOf("#")).length) ? ($AdfPage$$.$PAGE$.$__perfTimings$($JSCompiler_alias_TRUE$$, $JSCompiler_alias_TRUE$$, $JSCompiler_alias_TRUE$$, "User click Command Navigation , GET request"), $eventSource$$9_target$$129$$ = $eventSourceElem$$.getAttribute("target"), $eventSource$$9_target$$129$$ != $JSCompiler_alias_NULL$$ && 
      0 < $eventSource$$9_target$$129$$.length ? window.open($itemHref$$1_keyCode$$59$$, $eventSource$$9_target$$129$$) : self.location = $itemHref$$1_keyCode$$59$$, $componentEvent$$230$$.cancel()) : $AdfActionEvent$$.$queue$($eventSource$$9_target$$129$$, $eventSource$$9_target$$129$$.getPartialSubmit())
    }
    $AdfDhtmlMenuBarPeer$$.$_handleMenuBarItemAccessKeys$($component$$1081$$, $componentEvent$$230$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.HandleComponentKeyUp", {$HandleComponentKeyUp$:$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentKeyUp$});
$AdfDhtmlMenuBarPeer$$.prototype.$ComponentRemoved$ = function $$AdfDhtmlMenuBarPeer$$$$$ComponentRemoved$$($component$$1082$$) {
  this.$_overflowSupport$ && (this.$_overflowSupport$.$removeOverflowSupport$(), delete this.$_overflowSupport$);
  delete this.$_overflowContainer$;
  delete this.$_overflowIndicator$;
  delete this.$_childContainers$;
  $AdfPage$$.$PAGE$.$__unregisterDescendantResizeNotifyComponent$($component$$1082$$);
  $AdfDhtmlMenuBarPeer$$.$superclass$.$ComponentRemoved$.call(this, $component$$1082$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.ComponentRemoved", {$ComponentRemoved$:$AdfDhtmlMenuBarPeer$$.prototype.$ComponentRemoved$});
$AdfDhtmlMenuBarPeer$$.prototype.$__preferredSizeChangeNotify$ = function $$AdfDhtmlMenuBarPeer$$$$$__preferredSizeChangeNotify$$($component$$1083_parent$$43$$) {
  this.bind($component$$1083_parent$$43$$);
  this.$_minimumWidth$ = this.$_preferredWidth$ = $JSCompiler_alias_NULL$$;
  $component$$1083_parent$$43$$ = this.$getComponentParent$($component$$1083_parent$$43$$);
  var $parentPeer$$12$$ = $component$$1083_parent$$43$$ != $JSCompiler_alias_NULL$$ ? $component$$1083_parent$$43$$.$getPeer$() : $JSCompiler_alias_NULL$$;
  $parentPeer$$12$$ && $parentPeer$$12$$.$__preferredSizeChangeNotify$ && $parentPeer$$12$$.$__preferredSizeChangeNotify$($component$$1083_parent$$43$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.__preferredSizeChangeNotify", {$__preferredSizeChangeNotify$:$AdfDhtmlMenuBarPeer$$.prototype.$__preferredSizeChangeNotify$});
$AdfDhtmlMenuBarPeer$$.$_handleMenuBarItemAccessKeys$ = function $$AdfDhtmlMenuBarPeer$$$$_handleMenuBarItemAccessKeys$$($component$$1084$$, $componentEvent$$231$$) {
  var $keyPressed_keyStroke$$12$$ = $componentEvent$$231$$.$getKeyStroke$(), $barId$$1_modifiers$$8_rootItemElements$$ = $keyPressed_keyStroke$$12$$.$getModifiers$();
  if(!($barId$$1_modifiers$$8_rootItemElements$$ & $AdfKeyStroke$$.$CTRL_MASK$ || $barId$$1_modifiers$$8_rootItemElements$$ & $AdfKeyStroke$$.$ALT_MASK$ || $barId$$1_modifiers$$8_rootItemElements$$ & $AdfKeyStroke$$.$META_MASK$)) {
    $barId$$1_modifiers$$8_rootItemElements$$ & $AdfKeyStroke$$.$SHIFT_MASK$ && ($barId$$1_modifiers$$8_rootItemElements$$ >>= $AdfKeyStroke$$.$SHIFT_MASK$, $keyPressed_keyStroke$$12$$ = $AdfKeyStroke$$.$getKeyStroke$($keyPressed_keyStroke$$12$$.$getKeyCode$(), $barId$$1_modifiers$$8_rootItemElements$$));
    for(var $keyPressed_keyStroke$$12$$ = $keyPressed_keyStroke$$12$$.$toMarshalledString$().toUpperCase(), $barId$$1_modifiers$$8_rootItemElements$$ = $component$$1084$$.$getClientId$(), $barId$$1_modifiers$$8_rootItemElements$$ = $AdfAgent$$.$AGENT$.getElementById($barId$$1_modifiers$$8_rootItemElements$$).getElementsByTagName("A"), $numItems$$ = $barId$$1_modifiers$$8_rootItemElements$$.length, $i$$277$$ = 0;$i$$277$$ < $numItems$$;$i$$277$$++) {
      var $rootItem$$ = $barId$$1_modifiers$$8_rootItemElements$$[$i$$277$$];
      if($rootItem$$ && 1 == $rootItem$$.nodeType) {
        var $rootItemAccessKey$$ = $rootItem$$.getAttribute("accessKey");
        if($rootItemAccessKey$$ && $keyPressed_keyStroke$$12$$ == $rootItemAccessKey$$.toUpperCase()) {
          $AdfFocusUtils$$.$focusElement$($rootItem$$);
          $componentEvent$$231$$.cancel();
          break
        }
      }
    }
  }
};
$JSCompiler_prototypeAlias$$ = $AdfDhtmlMenuBarPeer$$.prototype;
$JSCompiler_prototypeAlias$$.$_handleArrowKeys$ = function $$JSCompiler_prototypeAlias$$$$_handleArrowKeys$$($keyCode$$60$$, $componentEvent$$232$$) {
  var $evt$$100_menuBarElement$$inline_2043_menuBarElement$$inline_2047_nextItem$$inline_2048_previousItem$$inline_2044_rootElement$$58$$ = $componentEvent$$232$$.$getNativeEvent$();
  if(!$evt$$100_menuBarElement$$inline_2043_menuBarElement$$inline_2047_nextItem$$inline_2048_previousItem$$inline_2044_rootElement$$58$$.ctrlKey && !$evt$$100_menuBarElement$$inline_2043_menuBarElement$$inline_2047_nextItem$$inline_2048_previousItem$$inline_2044_rootElement$$58$$.altKey && !$evt$$100_menuBarElement$$inline_2043_menuBarElement$$inline_2047_nextItem$$inline_2048_previousItem$$inline_2044_rootElement$$58$$.shiftKey && !$evt$$100_menuBarElement$$inline_2043_menuBarElement$$inline_2047_nextItem$$inline_2048_previousItem$$inline_2044_rootElement$$58$$.metaKey) {
    var $evt$$100_menuBarElement$$inline_2043_menuBarElement$$inline_2047_nextItem$$inline_2048_previousItem$$inline_2044_rootElement$$58$$ = $componentEvent$$232$$.getSource().$getPeer$().$getDomElement$(), $component$$1085$$ = $componentEvent$$232$$.getSource();
    if($AdfMenuUtils$$.$isInOverflow$($evt$$100_menuBarElement$$inline_2043_menuBarElement$$inline_2047_nextItem$$inline_2048_previousItem$$inline_2044_rootElement$$58$$)) {
      switch($keyCode$$60$$) {
        case $AdfKeyStroke$$.$ARROWRIGHT_KEY$:
          $component$$1085$$ instanceof AdfRichMenu && ($component$$1085$$.$getPeer$().show($JSCompiler_alias_NULL$$, $JSCompiler_alias_TRUE$$), $componentEvent$$232$$.cancel());
          break;
        case $AdfKeyStroke$$.$ARROWUP_KEY$:
          this.$_overflowSupport$.$focusPreviousChild$(this.$_overflowContainer$);
          $componentEvent$$232$$.cancel();
          break;
        case $AdfKeyStroke$$.$ARROWDOWN_KEY$:
          this.$_overflowSupport$.$focusNextChild$(this.$_overflowContainer$), $componentEvent$$232$$.cancel()
      }
    }else {
      switch($keyCode$$60$$) {
        case $AdfKeyStroke$$.$ARROWDOWN_KEY$:
          $component$$1085$$ instanceof AdfRichMenu && ($AdfDomUtils$$.$addCSSClassName$($evt$$100_menuBarElement$$inline_2043_menuBarElement$$inline_2047_nextItem$$inline_2048_previousItem$$inline_2044_rootElement$$58$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$), $component$$1085$$.$getPeer$().show($JSCompiler_alias_NULL$$, $JSCompiler_alias_TRUE$$), $componentEvent$$232$$.cancel());
          break;
        case $AdfKeyStroke$$.$ARROWLEFT_KEY$:
          this.$_canMoveFocus$() && ($evt$$100_menuBarElement$$inline_2043_menuBarElement$$inline_2047_nextItem$$inline_2048_previousItem$$inline_2044_rootElement$$58$$ = this.$getDomElement$(), ($evt$$100_menuBarElement$$inline_2043_menuBarElement$$inline_2047_nextItem$$inline_2048_previousItem$$inline_2044_rootElement$$58$$ = $AdfFocusUtils$$.$focusPreviousActiveDescendant$($evt$$100_menuBarElement$$inline_2043_menuBarElement$$inline_2047_nextItem$$inline_2048_previousItem$$inline_2044_rootElement$$58$$, 
          this.$_activeDescendant$)) ? this.$_activeDescendant$ = $evt$$100_menuBarElement$$inline_2043_menuBarElement$$inline_2047_nextItem$$inline_2048_previousItem$$inline_2044_rootElement$$58$$ : $AdfFocusUtils$$.$focusPreviousTabStop$(this.$_activeDescendant$));
          $componentEvent$$232$$.cancel();
          break;
        case $AdfKeyStroke$$.$ARROWRIGHT_KEY$:
          this.$_canMoveFocus$() && ($evt$$100_menuBarElement$$inline_2043_menuBarElement$$inline_2047_nextItem$$inline_2048_previousItem$$inline_2044_rootElement$$58$$ = this.$getDomElement$(), ($evt$$100_menuBarElement$$inline_2043_menuBarElement$$inline_2047_nextItem$$inline_2048_previousItem$$inline_2044_rootElement$$58$$ = $AdfFocusUtils$$.$focusNextActiveDescendant$($evt$$100_menuBarElement$$inline_2043_menuBarElement$$inline_2047_nextItem$$inline_2048_previousItem$$inline_2044_rootElement$$58$$, 
          this.$_activeDescendant$)) ? this.$_activeDescendant$ = $evt$$100_menuBarElement$$inline_2043_menuBarElement$$inline_2047_nextItem$$inline_2048_previousItem$$inline_2044_rootElement$$58$$ : $AdfFocusUtils$$.$focusNextTabStop$(this.$_activeDescendant$)), $componentEvent$$232$$.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 this.$_activeDescendant$ != $JSCompiler_alias_NULL$$
};
$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$$225_swapPosition$$) {
  var $table$$13$$ = $element$$225_swapPosition$$.ownerDocument.createElement("table");
  $table$$13$$.cellPadding = 0;
  $table$$13$$.cellSpacing = 0;
  $table$$13$$.style.width = "100%";
  $table$$13$$.setAttribute("role", "presentation");
  var $tableData$$ = $table$$13$$.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$$225_swapPosition$$ = this.$_overflowSupport$.$createSwapPosition$($element$$225_swapPosition$$);
  $tableData$$.appendChild($element$$225_swapPosition$$);
  return $table$$13$$
};
$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 $JSCompiler_alias_NULL$$
};
$JSCompiler_prototypeAlias$$.$HandleComponentMouseOut$ = function $$JSCompiler_prototypeAlias$$$$HandleComponentMouseOut$$($componentEvent$$235_eventSource$$10$$) {
  $componentEvent$$235_eventSource$$10$$ = $componentEvent$$235_eventSource$$10$$.getSource();
  $componentEvent$$235_eventSource$$10$$ instanceof AdfRichCommandNavigationItem && $componentEvent$$235_eventSource$$10$$.getParent() instanceof AdfRichCommandNavigationItem && $componentEvent$$235_eventSource$$10$$.$getPeer$().$getDomElement$().blur()
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.HandleComponentMouseOut", {$HandleComponentMouseOut$:$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentMouseOut$});
$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentMouseOver$ = function $$AdfDhtmlMenuBarPeer$$$$$HandleComponentMouseOver$$($componentEvent$$236$$) {
  var $eventSource$$11$$ = $componentEvent$$236$$.getSource();
  $eventSource$$11$$ instanceof AdfRichCommandNavigationItem ? ($eventSource$$11$$.$getPeer$().focus($eventSource$$11$$), this.$_showPopup$($componentEvent$$236$$, $JSCompiler_alias_NULL$$)) : $componentEvent$$236$$.cancel();
  $componentEvent$$236$$.$isCanceled$()
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.HandleComponentMouseOver", {$HandleComponentMouseOver$:$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentMouseOver$});
$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentClick$ = function $$AdfDhtmlMenuBarPeer$$$$$HandleComponentClick$$($componentEvent$$237$$) {
  $componentEvent$$237$$.getSource() instanceof AdfRichCommandNavigationItem && $JSCompiler_StaticMethods__closeAllPopups$$(this)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.HandleComponentClick", {$HandleComponentClick$:$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentClick$});
$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentFocus$ = function $$AdfDhtmlMenuBarPeer$$$$$HandleComponentFocus$$($componentEvent$$238$$) {
  var $eventSource$$13_focusableElement_overflowFocusableElement$$ = $componentEvent$$238$$.getSource(), $clientId$$212_compElement$$ = $eventSource$$13_focusableElement_overflowFocusableElement$$.$getClientId$(), $clientId$$212_compElement$$ = $AdfAgent$$.$AGENT$.getElementById($clientId$$212_compElement$$), $evt$$101_evtTarget$$5$$ = $componentEvent$$238$$.$getNativeEvent$(), $evt$$101_evtTarget$$5$$ = $AdfAgent$$.$AGENT$.$getEventTarget$($evt$$101_evtTarget$$5$$);
  $eventSource$$13_focusableElement_overflowFocusableElement$$ instanceof AdfRichCommandNavigationItem && $AdfDomUtils$$.$addCSSClassName$($clientId$$212_compElement$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$);
  $evt$$101_evtTarget$$5$$ == this.$_overflowIndicator$ ? this.$_activeDescendant$ != $evt$$101_evtTarget$$5$$ && this.$_updateActiveDescendant$(this.$_overflowIndicator$) : $AdfMenuUtils$$.$isInOverflow$($clientId$$212_compElement$$) ? ($eventSource$$13_focusableElement_overflowFocusableElement$$ = $AdfFocusUtils$$.$getFirstFocusableDescendant$($clientId$$212_compElement$$)) && this.$_overflowSupport$.$updateActiveDescendant$($eventSource$$13_focusableElement_overflowFocusableElement$$) : $AdfMenuUtils$$.$isOnMenuBar$($eventSource$$13_focusableElement_overflowFocusableElement$$) && 
  ($eventSource$$13_focusableElement_overflowFocusableElement$$ = $AdfFocusUtils$$.$getFirstFocusableDescendant$($clientId$$212_compElement$$)) && $eventSource$$13_focusableElement_overflowFocusableElement$$ != this.$_activeDescendant$ && this.$_updateActiveDescendant$($eventSource$$13_focusableElement_overflowFocusableElement$$);
  $componentEvent$$238$$.cancel()
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.HandleComponentFocus", {$HandleComponentFocus$:$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentFocus$});
$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentBlur$ = function $$AdfDhtmlMenuBarPeer$$$$$HandleComponentBlur$$($componentEvent$$239$$) {
  var $compElement$$1_eventSource$$14$$ = $componentEvent$$239$$.getSource();
  $compElement$$1_eventSource$$14$$ instanceof AdfRichCommandNavigationItem ? ($compElement$$1_eventSource$$14$$ = $AdfAgent$$.$AGENT$.getElementById($compElement$$1_eventSource$$14$$.$getClientId$()), $AdfDomUtils$$.$removeCSSClassName$($compElement$$1_eventSource$$14$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$)) : $componentEvent$$239$$.cancel();
  $componentEvent$$239$$.$isCanceled$()
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.HandleComponentBlur", {$HandleComponentBlur$:$AdfDhtmlMenuBarPeer$$.prototype.$HandleComponentBlur$});
$AdfDhtmlMenuBarPeer$$.prototype.$PopupClosed$ = function $$AdfDhtmlMenuBarPeer$$$$$PopupClosed$$($component$$1086$$, $contentDom$$13$$) {
  if($component$$1086$$ instanceof AdfRichCommandNavigationItem) {
    var $compElement$$2$$ = $AdfAgent$$.$AGENT$.getElementById($component$$1086$$.$getClientId$()), $element$$226$$ = $compElement$$2$$, $element$$226$$ = $JSCompiler_StaticMethods__getPopupContainerElement$$($component$$1086$$);
    $component$$1086$$.getParent() instanceof AdfRichMenuBar && $AdfDomUtils$$.$removeCSSClassName$($compElement$$2$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$);
    $contentDom$$13$$.style.display = "none";
    $AdfCollections$$.$removeArrayValue$($AdfDhtmlMenuBarPeer$$.$_sOpenedPopups$, $component$$1086$$.$getClientId$());
    $AdfDhtmlMenuBarPeer$$.$superclass$.$PopupClosed$.call(this, $component$$1086$$, $contentDom$$13$$);
    $element$$226$$.appendChild($contentDom$$13$$)
  }else {
    $AdfDhtmlMenuBarPeer$$.$superclass$.$PopupClosed$.call(this, $component$$1086$$, $contentDom$$13$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.PopupClosed", {$PopupClosed$:$AdfDhtmlMenuBarPeer$$.prototype.$PopupClosed$});
function $JSCompiler_StaticMethods__getPopupElement$$($componentEvent$$240_eventSource$$15$$) {
  $componentEvent$$240_eventSource$$15$$ = $componentEvent$$240_eventSource$$15$$.getSource();
  var $popupElement$$8$$ = $JSCompiler_alias_NULL$$;
  $JSCompiler_StaticMethods__getPopupContainerElement$$($componentEvent$$240_eventSource$$15$$) && ($popupElement$$8$$ = $JSCompiler_StaticMethods__getPopupContainerElement$$($componentEvent$$240_eventSource$$15$$).lastChild);
  return $popupElement$$8$$
}
$AdfDhtmlMenuBarPeer$$.prototype.$_showPopup$ = function $$AdfDhtmlMenuBarPeer$$$$$_showPopup$$($componentEvent$$241$$, $focusOnFirstElement$$3$$) {
  var $eventSource$$19$$ = $componentEvent$$241$$.getSource(), $eventSourceId_openedPopups$$inline_2058$$ = $eventSource$$19$$.$getClientId$(), $agent$$331_alignEle_id$$inline_2060$$ = $AdfAgent$$.$AGENT$;
  if($JSCompiler_StaticMethods__isPopupOpen$$($eventSourceId_openedPopups$$inline_2058$$)) {
    $componentEvent$$241$$.cancel()
  }else {
    var $i$$inline_2059_popupElement$$9$$ = $JSCompiler_StaticMethods__getPopupElement$$($componentEvent$$241$$);
    if($i$$inline_2059_popupElement$$9$$) {
      $agent$$331_alignEle_id$$inline_2060$$ = $agent$$331_alignEle_id$$inline_2060$$.getElementById($eventSource$$19$$.$getClientId$());
      $eventSource$$19$$.getParent() instanceof AdfRichMenuBar && $AdfDomUtils$$.$addCSSClassName$($agent$$331_alignEle_id$$inline_2060$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$);
      var $cmdNavComp$$inline_2061_hints$$inline_2053$$ = {}, $JSCompiler_inline_result$$4957_compElement$$inline_2054_navComponent$$inline_5337$$ = $AdfAgent$$.$AGENT$.getElementById($eventSource$$19$$.$getClientId$());
      $cmdNavComp$$inline_2061_hints$$inline_2053$$.type = "menu";
      $cmdNavComp$$inline_2061_hints$$inline_2053$$.autodismiss = "autodismissMenu";
      $cmdNavComp$$inline_2061_hints$$inline_2053$$.alignElement = $agent$$331_alignEle_id$$inline_2060$$;
      $cmdNavComp$$inline_2061_hints$$inline_2053$$.focus = $focusOnFirstElement$$3$$ ? $JSCompiler_alias_TRUE$$ : $JSCompiler_alias_FALSE$$;
      $cmdNavComp$$inline_2061_hints$$inline_2053$$.closeOnEscape = $JSCompiler_alias_FALSE$$;
      $eventSource$$19$$.getParent() instanceof AdfRichCommandNavigationItem || $AdfMenuUtils$$.$isInOverflow$($JSCompiler_inline_result$$4957_compElement$$inline_2054_navComponent$$inline_5337$$) ? $cmdNavComp$$inline_2061_hints$$inline_2053$$[AdfRichPopup.$HINT_ALIGN$] = AdfRichPopup.$ALIGN_END_BEFORE$ : $cmdNavComp$$inline_2061_hints$$inline_2053$$[AdfRichPopup.$HINT_ALIGN$] = AdfRichPopup.$ALIGN_AFTER_START$;
      $i$$inline_2059_popupElement$$9$$.style.display = "block";
      $AdfDhtmlMenuBarPeer$$.$_sOpenedPopups$.push($eventSourceId_openedPopups$$inline_2058$$);
      $AdfDhtmlMenuBarPeer$$.$superclass$.$showPopup$.call(this, $eventSource$$19$$, $i$$inline_2059_popupElement$$9$$, $cmdNavComp$$inline_2061_hints$$inline_2053$$, $eventSourceId_openedPopups$$inline_2058$$)
    }
    $componentEvent$$241$$.cancel();
    if(($eventSourceId_openedPopups$$inline_2058$$ = $AdfDhtmlMenuBarPeer$$.$_sOpenedPopups$) && 0 != $eventSourceId_openedPopups$$inline_2058$$.length) {
      for($i$$inline_2059_popupElement$$9$$ = $eventSourceId_openedPopups$$inline_2058$$.length - 1;0 <= $i$$inline_2059_popupElement$$9$$;$i$$inline_2059_popupElement$$9$$--) {
        $agent$$331_alignEle_id$$inline_2060$$ = $eventSourceId_openedPopups$$inline_2058$$[$i$$inline_2059_popupElement$$9$$];
        $cmdNavComp$$inline_2061_hints$$inline_2053$$ = $AdfPage$$.$PAGE$.$findComponent$($agent$$331_alignEle_id$$inline_2060$$);
        a: {
          for(var $JSCompiler_inline_result$$4957_compElement$$inline_2054_navComponent$$inline_5337$$ = $cmdNavComp$$inline_2061_hints$$inline_2053$$, $comp$$inline_5339$$ = $eventSource$$19$$;!($comp$$inline_5339$$ instanceof AdfRichMenuBar);) {
            if($JSCompiler_inline_result$$4957_compElement$$inline_2054_navComponent$$inline_5337$$.$getClientId$() == $comp$$inline_5339$$.$getClientId$()) {
              $JSCompiler_inline_result$$4957_compElement$$inline_2054_navComponent$$inline_5337$$ = $JSCompiler_alias_TRUE$$;
              break a
            }
            $comp$$inline_5339$$ = $comp$$inline_5339$$.getParent()
          }
          $JSCompiler_inline_result$$4957_compElement$$inline_2054_navComponent$$inline_5337$$ = $JSCompiler_alias_FALSE$$
        }
        $JSCompiler_inline_result$$4957_compElement$$inline_2054_navComponent$$inline_5337$$ || $AdfDhtmlMenuBarPeer$$.$superclass$.$hidePopup$.call(this, $cmdNavComp$$inline_2061_hints$$inline_2053$$, $agent$$331_alignEle_id$$inline_2060$$)
      }
    }
  }
};
function $JSCompiler_StaticMethods__isPopupOpen$$($componentId$$35$$) {
  return 0 <= $AdfCollections$$.indexOf($AdfDhtmlMenuBarPeer$$.$_sOpenedPopups$, $componentId$$35$$) ? $JSCompiler_alias_TRUE$$ : $JSCompiler_alias_FALSE$$
}
function $JSCompiler_StaticMethods__getPopupContainerElement$$($component$$1087_eleChildren_tdElem$$) {
  var $agent$$333$$ = $AdfAgent$$.$AGENT$, $element$$227_rowChildren$$ = $agent$$333$$.getElementById($component$$1087_eleChildren_tdElem$$.$getClientId$()), $popupContainerElement$$ = $JSCompiler_alias_NULL$$;
  if($component$$1087_eleChildren_tdElem$$.getParent() instanceof AdfRichMenuBar) {
    $component$$1087_eleChildren_tdElem$$ = $element$$227_rowChildren$$.childNodes;
    for(i = 0;i < $component$$1087_eleChildren_tdElem$$.length;i++) {
      "TABLE" == $agent$$333$$.$getNodeName$($component$$1087_eleChildren_tdElem$$[i]) && ($element$$227_rowChildren$$ = $component$$1087_eleChildren_tdElem$$[i])
    }
    for(;"TR" != $agent$$333$$.$getNodeName$($element$$227_rowChildren$$);) {
      $element$$227_rowChildren$$ = 8 == $element$$227_rowChildren$$.nodeType ? $element$$227_rowChildren$$.nextSibling : $element$$227_rowChildren$$.firstChild
    }
  }
  $element$$227_rowChildren$$ = $element$$227_rowChildren$$.childNodes;
  for(i = 0;i < $element$$227_rowChildren$$.length;i++) {
    $component$$1087_eleChildren_tdElem$$ = $element$$227_rowChildren$$[i], "TD" == $agent$$333$$.$getNodeName$($component$$1087_eleChildren_tdElem$$) && "popupContainer" == $component$$1087_eleChildren_tdElem$$.getAttribute("_afrClNm") && ($popupContainerElement$$ = $component$$1087_eleChildren_tdElem$$)
  }
  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$$279$$ = $openedPopups$$1$$.length - 1;0 <= $i$$279$$;$i$$279$$--) {
      var $id$$289$$ = $openedPopups$$1$$[$i$$279$$], $cmdNavComp$$1$$ = $AdfPage$$.$PAGE$.$findComponent$($id$$289$$);
      $AdfDhtmlMenuBarPeer$$.$superclass$.$hidePopup$.call($JSCompiler_StaticMethods__closeAllPopups$self$$, $cmdNavComp$$1$$, $id$$289$$)
    }
  }
}
$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$$213_clientIdDepth$$4_component$$1088$$, $childComponent$$10_endIndex$$5$$, $descComponentClientId$$5_index$$119_subComponentId$$4$$, $replaceArray$$6$$) {
  $clientId$$213_clientIdDepth$$4_component$$1088$$ = $clientId$$213_clientIdDepth$$4_component$$1088$$.$getClientId$();
  0 > $descComponentClientId$$5_index$$119_subComponentId$$4$$.indexOf($clientId$$213_clientIdDepth$$4_component$$1088$$) || ($descComponentClientId$$5_index$$119_subComponentId$$4$$ = $descComponentClientId$$5_index$$119_subComponentId$$4$$.substring($clientId$$213_clientIdDepth$$4_component$$1088$$.length + 1), $childComponent$$10_endIndex$$5$$ = $descComponentClientId$$5_index$$119_subComponentId$$4$$.indexOf(":"), 0 < $childComponent$$10_endIndex$$5$$ && ($descComponentClientId$$5_index$$119_subComponentId$$4$$ = 
  $descComponentClientId$$5_index$$119_subComponentId$$4$$.substring(0, $childComponent$$10_endIndex$$5$$), $clientId$$213_clientIdDepth$$4_component$$1088$$ = $AdfStrings$$.count($clientId$$213_clientIdDepth$$4_component$$1088$$, ":"), $replaceArray$$6$$.push([$clientId$$213_clientIdDepth$$4_component$$1088$$ + 1, $descComponentClientId$$5_index$$119_subComponentId$$4$$])))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.ConvertClientIdToLocator", {$ConvertClientIdToLocator$:$AdfDhtmlMenuBarPeer$$.prototype.$ConvertClientIdToLocator$});
$AdfDhtmlMenuBarPeer$$.prototype.$convertLocatorToClientId$ = function $$AdfDhtmlMenuBarPeer$$$$$convertLocatorToClientId$$($component$$1089$$, $index$$120$$) {
  var $child$$21$$ = $component$$1089$$.$getDescendantComponents$()[$index$$120$$];
  if($child$$21$$) {
    if($child$$21$$ instanceof AdfRichCommandNavigationItem) {
      return $child$$21$$.$getClientId$()
    }
    $AdfAssert$$.assert($JSCompiler_alias_FALSE$$, "Use of [] locator notation is only supported when menuBar: " + $component$$1089$$.$getClientId$() + " is used with MenuModel")
  }
  return $JSCompiler_alias_NULL$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.convertLocatorToClientId", {$convertLocatorToClientId$:$AdfDhtmlMenuBarPeer$$.prototype.$convertLocatorToClientId$});
$AdfDhtmlMenuBarPeer$$.prototype.$SimulateMouseOnDescendant$ = function $$AdfDhtmlMenuBarPeer$$$$$SimulateMouseOnDescendant$$($targetComponent$$5$$, $domElement$$293$$, $mouseEvent$$7$$) {
  $AdfDhtmlMenuBarPeer$$.$superclass$.$SimulateMouseOnDescendant$.call(this, $targetComponent$$5$$, $domElement$$293$$, $mouseEvent$$7$$);
  this.$_isOverflowSupported$ && this.$_overflowSupport$.$isInOverflow$($domElement$$293$$) && this.$_overflowSupport$.$showOverflowPopup$()
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlMenuBarPeer.prototype.SimulateMouseOnDescendant", {$SimulateMouseOnDescendant$:$AdfDhtmlMenuBarPeer$$.prototype.$SimulateMouseOnDescendant$});
