code: function getMenuRootElement(p_oElement) {
          
              var oParentNode,
              	returnVal;
      
              if (p_oElement && p_oElement.tagName) {
              
                  switch (p_oElement.tagName.toUpperCase()) {
                          
                  case _DIV:
      
                      oParentNode = p_oElement.parentNode;
      
                      // Check if the DIV is the inner "body" node of a menu
  
                      if ((
                              Dom.hasClass(p_oElement, _HD) ||
                              Dom.hasClass(p_oElement, _BD) ||
                              Dom.hasClass(p_oElement, _FT)
                          ) && 
                          oParentNode && 
                          oParentNode.tagName && 
                          oParentNode.tagName.toUpperCase() == _DIV) {
                      
                          returnVal = oParentNode;
                      
                      }
                      else {
                      
                          returnVal = p_oElement;
                      
                      }
                  
                      break;
  
                  case _LI:
      
                      returnVal = p_oElement;
                      
                      break;
  
                  default:
      
                      oParentNode = p_oElement.parentNode;
      
                      if (oParentNode) {
                      
                          returnVal = getMenuRootElement(oParentNode);
                      
                      }
                  
                      break;
                  
                  }
      
              }
              
              return returnVal;
              
          }
docs: Private methods 
  @method getMenuRootElement
  @description Finds the root DIV node of a menu or the root LI node of
  a menu item.
  @private
  @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
  level-one-html.html#ID-58190037">HTMLElement</a>} p_oElement Object
  specifying an HTML element.