function instanciateMenuBar (p_oEvent) {
	// Instantiate and render the menu bar
	var oMenuBar = new YAHOO.widget.MenuBar(this, { autosubmenudisplay:true, showdelay:100, hidedelay:200, lazyload:true });
	oMenuBar.render();
}

function instanciateMenu (p_oEvent) {
	// Instantiate and render the menu
	var oMenu = new YAHOO.widget.Menu(this, { position:"static", autosubmenudisplay:true, showdelay:100, hidedelay:200, lazyload:true });
	oMenu.render();
}

// Initialize and render the menu bar when it is available in the DOM
YAHOO.util.Event.onContentReady("menuA", instanciateMenuBar);
YAHOO.util.Event.onContentReady("menuB", instanciateMenu);

