            YAHOO.example.onMenuReady = function(p_oEvent) {
                
                // "beforerender" event handler for the menu
                function onMenuBeforeRender(p_sType, p_sArgs, p_oMenu) {

                    var oSubmenuData = {
    
                        "products": [
                            { text: "eRevenue", url: "erevenue.html", submenu: { id: "erevenue", itemdata: [
								{ text: "eRevenue Overview", url:"erevenue.html" }
								] }
							},
                            { text: "eRevMed", url: "erevmed.html", submenu: { id: "erevmed", itemdata: [
								{ text: "eRevMed Overview", url:"erevmed.html" }
								] }
							},
							{ text: "eRevWorks", url: "erevworks.html", submenu: { id: "erevworks", itemdata: [
								{ text: "eRevWorks Overview", url:"erevworks.html" },
								{ text: "Asset-Based Lending", url:"erevworks_abl.html" },
								{ text: "Transaction-Based Financing", url:"erevworks_tbf.html" },
								{ text: "Types of Businesses", url:"erevworks_businesses.html" },
								{ text: "eRevWorks FAQ", url:"erevworks_faq.html" }
								] }
							},
							{ text: "AllMedFund", url: "allmedfund.html", submenu: { id: "allmedfund", itemdata: [
								{ text: "AllMedFund Overview", url:"allmedfund.html" },
								{ text: "How the Program Works", url:"allmedfund_program.html" },
								{ text: "Types of Businesses", url:"allmedfund_businesses.html" }
								] }
							}
                        ],
						
						"vital": [
                            { text: "Working Capital Lending Defined", url: "vital_wc_lending.html" },
                            { text: "Commercial Paper Defined", url: "vital_comm_paper.html" },
							{ text: "Invisible Collateral", url: "vital_invisible_collateral.html" },
							{ text: "Cycle of Collateral", url: "vital_cycle_collateral.html" },
							{ text: "Deal Structure and Minefields", url: "vital_deal_structure.html" },
							{ text: "Dependable Structure Strategies", url: "vital_dependable_structure.html" },
							{ text: "Compliance and Operation Environments", url: "vital_compliance.html" },
							{ text: "Risks Inherent in Lending", url: "vital_risks.html" },
							{ text: "Risks vs. Rewards", url: "vital_risks_rewards.html" },
							{ text: "Summary", url: "vital_summary.html" }
                        ],
						
						"testimonials": [
                            { text: "eRevenue", url: "test_erevenue.html" },
                            { text: "AllMedFund: Case Study", url: "test_allmedfund.html" },
                            { text: "Program in Action", url: "test_program.html", submenu:{ id: "program", itemdata: [
								 { text: "Cash Flow Optimization Success", url: "cash_flow_optimization.html" },
								{ text: "Success of a Borrowing Base Tiering Strategy", url: "risk_based_tiering.html" },
								{ text: "Hybrid Product Success", url: "hybrid_product.html" },
								{ text: "Successful Win-Win Pricing Structures", url: "win_win_pricing_structures.html" },
								{ text: "Successful Special Situation Financing", url: "special_situation_financing.html" },
								{ text: "Successful Value-Added Services", url: "value_added_services.html" },
								{ text: "Bank Success", url: "bank_success.html" } 
							]}
						 }                     
                        ]

                    };
	
					this.getItem(1).cfg.setProperty("submenu", { id:"Products", itemdata: oSubmenuData["products"] });
                    this.getItem(2).cfg.setProperty("submenu", { id:"Vital", itemdata: oSubmenuData["vital"] });
					this.getItem(6).cfg.setProperty("submenu", { id:"Testimonials", itemdata: oSubmenuData["testimonials"] });

                }

                // Instantiate and render the menu
                var oMenu = new YAHOO.widget.Menu("inovamenu", { position:"static", hidedelay:750, lazyload:true });

                // Subscribe to the "beforerender" event
                oMenu.beforeRenderEvent.subscribe(onMenuBeforeRender, oMenu, true);
                oMenu.render();
                
            }

            // Initialize and render the menu when it is available in the DOM
            //YAHOO.util.Event.onContentReady("productsandservices", YAHOO.example.onMenuReady);
			YAHOO.util.Event.addListener(window, 'load', YAHOO.example.onMenuReady);

