rem: }; 
add: var oParentMenu = oParent.parent, aParentAlignment = oParentMenu.cfg.getProperty("submenualignment"), aAlignment = this.cfg.getProperty("submenualignment");   if( (aParentAlignment[0] != aAlignment[0]) && (aParentAlignment[1] != aAlignment[1]) ) {  this.cfg.setProperty( "submenualignment", [ aParentAlignment[0], aParentAlignment[1] ] );  }   if( !oParentMenu.cfg.getProperty("autosubmenudisplay") && oParentMenu.cfg.getProperty("position") == "static" ) {  oParentMenu.cfg.setProperty("autosubmenudisplay", true);   /** * "click" event handler for the document * @private * @param {Event} p_oEvent Object reference for the DOM event object * passed back by the event utility (YAHOO.util.Event). */ function disableAutoSubmenuDisplay(p_oEvent) {  if( p_oEvent.type == "mousedown" || (p_oEvent.type == "keydown" && p_oEvent.keyCode == 27) ) {  /* Set the "autosubmenudisplay" to "false" if the user clicks outside the menu bar. */  var oTarget = Event.getTarget(p_oEvent);  if( oTarget != oParentMenu.element || !YAHOO.util.Dom.isAncestor(oParentMenu.element, oTarget) ) {  oParentMenu.cfg.setProperty( "autosubmenudisplay", false );  Event.removeListener( document, "mousedown", disableAutoSubmenuDisplay );  Event.removeListener( document, "keydown", disableAutoSubmenuDisplay );  }  }  }  Event.addListener(document, "mousedown", disableAutoSubmenuDisplay); Event.addListener(document, "keydown", disableAutoSubmenuDisplay);  }  }  }, 
context: YAHOO.widget.MenuModule.prototype._onShow =    function(p_sType, p_aArgs, p_oMenuModule) {        /*            Setting focus to an item in the newly visible submenu alerts the            contents of the submenu to the screen reader.        */        this.setInitialFocus();    };
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/menu-debug.js/buggy/www/resources/yui/menu/menu-debug.js