YAHOO.util.Event.onContentReady("basicmenu", function () {
// YAHOO.util.Event.onDOMReady(function () {  
            
	//	Instantiate a Menu.  The first argument passed to the 
	//	constructor is the id of the element in the DOM that represents 
	//	the Menu instance.
    
    // clicktohide configuration property = true keeps menu & submenus on screen
    // if click outside menu -- to remove submenu, you must position mouse
    // back inside main menu and out again.
    var oMenu = new YAHOO.widget.Menu("basicmenu", { position:"static" });
    //Odd if do "position:static" above (no quotes on static, we loose the flash (re-placement of menu)
    // but also loose the color change on a menu item when mouse hovers over the item. 
    
    // Similarly, "position:dynamic" removed the flash, but also lost the hover color change.
    // var oMenu = new YAHOO.widget.Menu("basicmenu", { position:dynamic });     
    
	//	Call the "render" method with no arguments since the markup for 
	//	this Menu instance already exists in the DOM.
    
    oMenu.render();
    

    // Show the Menu instance
    
    oMenu.show();
            
});
  

