    /*
         Initialize and render the Menu when its elements are ready 
         to be scripted.
    */

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

        /*
             Instantiate a Menu:  The first argument passed to the 
             constructor is the id of the element in the page 
             representing the Menu; the second is an object literal 
             of configuration properties.
        */

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


        /*
             Define an array of object literals, each containing 
             the data necessary to create a submenu.
        */




        // Subscribe to the Menu instance's "beforeRender" event

        oMenu.subscribe("beforeRender", function () {

            if (this.getRoot() == this) {
                for(var i=0; aSubmenuData[i]; i++) {
					if(aSubmenuData[i].create != 0)
						this.getItem(i).cfg.setProperty("submenu", aSubmenuData[i]);
				}
            }
        });


        /*
             Call the "render" method with no arguments since the 
             markup for this Menu instance is already exists in the page.
        */

        oMenu.render();
    
    });