code: function (p_oMenu) {
      
                  var oDoc;
      
                  if (p_oMenu instanceof YAHOO.widget.Menu && p_oMenu.id && 
                      !m_oMenus[p_oMenu.id]) {
          
                      m_oMenus[p_oMenu.id] = p_oMenu;
                  
              
                      if (!m_bInitializedEventHandlers) {
              
                          oDoc = document;
                  
                          Event.on(oDoc, _MOUSEOVER, onDOMEvent, this, true);
                          Event.on(oDoc, _MOUSEOUT, onDOMEvent, this, true);
                          Event.on(oDoc, _MOUSEDOWN, onDOMEvent, this, true);
                          Event.on(oDoc, _MOUSEUP, onDOMEvent, this, true);
                          Event.on(oDoc, _CLICK, onDOMEvent, this, true);
                          Event.on(oDoc, _KEYDOWN, onDOMEvent, this, true);
                          Event.on(oDoc, _KEYUP, onDOMEvent, this, true);
                          Event.on(oDoc, _KEYPRESS, onDOMEvent, this, true);
      
  						Event.onFocus(oDoc, onDOMEvent, this, true);
  						Event.onBlur(oDoc, onDOMEvent, this, true);						
      
                          m_bInitializedEventHandlers = true;
                          
              
                      }
              
                      p_oMenu.cfg.subscribeToConfigEvent(_VISIBLE, onMenuVisibleConfigChange);
                      p_oMenu.destroyEvent.subscribe(onMenuDestroy, p_oMenu, this);
                      p_oMenu.itemAddedEvent.subscribe(onItemAdded);
                      p_oMenu.focusEvent.subscribe(onMenuFocus);
                      p_oMenu.blurEvent.subscribe(onMenuBlur);
          
          
                  }
          
              }
docs: Privileged methods 
  @method addMenu
  @description Adds a menu to the collection of known menus.
  @param {YAHOO.widget.Menu} p_oMenu Object specifying the Menu
  instance to be added.