         // Initialize and render the menu when it is available in the DOM

         YAHOO.util.Event.onContentReady("mainmenu", function () {

                /*
                     Instantiate the menu.  The first argument passed to the 
                     constructor is the id of the element in the DOM that 
                     represents the menu; the second is an object literal 
                     representing a set of configuration properties for 
                     the menu.
                */

            var oMenu = new YAHOO.widget.Menu("mainmenu", 
               {
                  position: "static", 
                  hidedelay: 750, 
                  lazyload: true, 
                  effect: { 
                     effect: YAHOO.widget.ContainerEffect.FADE,
                     duration: 0.25
                  } 
               }
            );

                /*
                     Call the "render" method with no arguments since the markup for 
                     this menu already exists in the DOM.
                */

            oMenu.render();            
            
         });

