// Initialize and render the MenuBar when it is available in the page 
 
YAHOO.util.Event.onContentReady("menu", function () { 
    /*
         Instantiate a MenuBar.  The first argument passed to the 
         constructor is the id of the element in the page that 
         represents the MenuBar; the second is an object literal 
         representing a set of configuration properties.
	    */ 
	    var oMenuBar = new YAHOO.widget.MenuBar("menu", {  
	                                                autosubmenudisplay: true,  
	                                                hidedelay: 250,  
																									showdelay: 0,
	                                                lazyload: true }); 
	    /*
	         Call the "render" method with no arguments since the 
	         markup for this MenuBar already exists in the page.
	    */ 
	    oMenuBar.render(); 
	}); 

function toggleBox(id) {
	var style = document.getElementById(id).style;
	style.display = (style.display=='')?'none':'';
}
