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

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

                // "beforerender" event handler for the menu bar

                function onMenuBarBeforeRender(p_sType, p_sArgs) {

                    var oSubmenuData = {
                    
 
    
                        "Product Line": [
    
                            { text: "All Products", url: "../products_all.htm" },
							{ text: "Agitators", url: "agitators.html" },
                            { text: "Basket Mill", url: "basketMill.html" },
                            { text: "Single Shaft Dispersers", url: "singleShaftDispersers.html" },
                            { text: "Tank Mounted", url: "tankMounted.html" },
                            { text: "Dual-Shaft Mixers", url: "dualShaft.html" },
                            { text: "Multi-Shaft Mixers", url: "multiShaft.html" },
                            { text: "Ram Press", url: "ramPress.html" },
                            { text: "Lab/Small Production Units", url: "labunit.html" },
                            { text: "Engineering Servieces", url: "engineeringServices.html" }                    
    
                        ],
                        
                        "Sales & Customer Service": [
    
                            { text: "Sales Department", url: "../sales.html" },
                            { text: "U.S. Sales Reps", url: "../reps.html" },
                            { text: "International Sales Reps", url: "../reps.html#interNational" },
                            { text: "Parts & Service", url: "../cs.html" },
              
                        
                        ],
                        
                        "Rental Equipment": [
    
                            { text: "Rental Equipment", url: "../rentals.html" },
                        
                        ],
                        
                        "Online Catalogs": [
    
                            { text: "Product Catalogs", url: "../prod-catalog_pdf.html" },
                            { text: "Application Checklist", url: "../cklist.html" },
                            { text: "Color Panels", url: "../colorPanels.html" },
                       
						],
                        
                        "Contact Us": [
    
                            { text: "Contact Information", url: "../contact.html" },
							{ text: "Sales Department", url: "../sales.html" },
                            { text: "U.S. Sales Reps", url: "../reps.html" },
                            { text: "International Sales Reps", url: "../reps.html#interNational" },
                            { text: "Parts & Service", url: "../cs.html" },
                        
                        ]
                    
                    };

                    // Add a submenu to each of the menu items in the menu bar

                    this.getItem(1).cfg.setProperty("submenu", { id: "Product Line", itemdata: oSubmenuData["Product Line"] });
                    this.getItem(2).cfg.setProperty("submenu", { id: "Sales & Customer Service", itemdata: oSubmenuData["Sales & Customer Service"] });
                    this.getItem(3).cfg.setProperty("submenu", { id: "Rental Equipment", itemdata: oSubmenuData["Rental Equipment"] });
					this.getItem(4).cfg.setProperty("submenu", { id: "Online Catalogs", itemdata: oSubmenuData["Online Catalogs"] });
					this.getItem(5).cfg.setProperty("submenu", { id: "Contact Us", itemdata: oSubmenuData["Contact Us"] });

                }


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

                var oMenuBar = new YAHOO.widget.MenuBar("productsandservices", { autosubmenudisplay: true, showdelay: 250, hidedelay:  750, lazyload: true });


                // Subscribe to the "beforerender" event

                oMenuBar.beforeRenderEvent.subscribe(onMenuBarBeforeRender);


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

                oMenuBar.render();            
            
            });