            /*
                 Initialize and render the Menu when its elements are ready 
                 to be scripted.
            */
 
            YAHOO.util.Event.onContentReady("productsandservices", function () {
 
                /*
					Instantiate a Menu:  The first argument passed to the constructor
					is the id for the Menu element to be created, the second is an 
					object literal of configuration properties.
                */
 
                var oMenu = new YAHOO.widget.Menu("productsandservices", { 
                                                        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.
                */
 
                var aSubmenuData = [
                    
                    {
                        id: "absentee",
                        itemdata: [
                            { text: "Class Baskets", url: "Baskets.html" },
                            { text: "Live Items", url: "LiveItems.html" },
                            { text: "Absentee Bid", url: "Assets/Forms/AbsenteeBidForm.pdf" }

                        ]
                    },   
                    {
                        id: "ticket",
                        itemdata: [
                            { text: "Express Pay", url: "Assets/Forms/ExpressPayForm3_10.pdf" }
                        ]
                    },  
				   {
                        id: "raffles",
                        itemdata: [
                            { text: "Donor Form", url: "Assets/Forms/DonorForm2010.pdf"}
                        ]
                    }				

                ];
 
 
                // Subscribe to the Menu instance's "beforeRender" event
 
                oMenu.subscribe("beforeRender", function () {
 /*
					var nSubmenus = aSubmenuData.length,
						i;
 
 
                    if (this.getRoot() == this) {
 
						for (i = 0; i < nSubmenus; i++) {
                        	this.getItem(i).cfg.setProperty("submenu", aSubmenuData[i]);
						}
 
                    }
 */
     if (this.getRoot() == this) {

        this.getItem(1).cfg.setProperty("submenu", aSubmenuData[0]);
        this.getItem(2).cfg.setProperty("submenu", aSubmenuData[1]);
        this.getItem(4).cfg.setProperty("submenu", aSubmenuData[2]);


    }

 
                });
                
 
                /*
                     Call the "render" method with no arguments since the 
                     markup for this Menu instance is already exists in the page.
                */
 
                oMenu.render();
            
            });