// Initialize and render the MenuBar when it is available in the page

// Edit the onContentReady and MenuBar function to match your menu div

YAHOO.util.Event.onContentReady("topnav", 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("topnav", { 
                                                autosubmenudisplay: true, 
                                                hidedelay: 750, 
                                                lazyload: true });

	 oMenuBar.render();
    

});
