// Instantiate and render the menu when the page's DOM is ready

    YAHOO.util.Event.onDOMReady(function () {

        /*
             Instantiate the menu.  The first argument passed to the 
             constructor is the id of the DOM element to be created for the 
             menu; the second is an object literal representing a set of 
             configuration properties for the menu. { hidedelay: 600, submenuhidedelay: 600, lazyload: true});
        */

        var oMenu = new YAHOO.widget.Menu("basicmenu", { hidedelay: 600});
        
        /*
            Add items to the menu by passing an array of object literals 
            (each of which represents a set of YAHOO.widget.MenuItem 
            configuration properties) to the "addItems" method.
        */

        oMenu.addItems([

                { text: "Web Design", url: "WebDesign.aspx",
					submenu: { 
						id: "webdesign",  
						itemdata: [
							{ text: "Custom Design", url: "Custom.aspx" },
							{ text: "Square One Templates", url: "Templates.aspx" }
						] // Array of YAHOO.widget.MenuItem configuration properties 
					} 
				 },                
                { text: "Web Hosting", url: "Hosting.aspx" },
                { text: "U-ManageIt&#153; Forms",  url: "UManageIt.aspx" },
                { text: "E-Commerce Solutions", url: "ecommerce.aspx" },
                { text: "Site Maintenance", url: "Maintenance.aspx" }

            ]);

        oMenu.showEvent.subscribe(function () {

            this.focus();
        
        });

        /*
             Since this menu is built completely from script, call the "render" 
             method passing in the id of the DOM element that the menu's 
             root element should be appended to.
        */

        oMenu.render("rendertarget");
        
         /*oMenu.cfg.setProperty("hidedelay", 700);
        alert(oMenu.cfg.getProperty("hidedelay"));*/
        
        //Detect IE
        var browser=navigator;
		var version=0
		if (navigator.appVersion.indexOf("MSIE")!=-1){ //IE
			oMenu.cfg.setProperty("y", 190);
			//alert(oMenu.cfg.getProperty("y"));
		}
		else { //Not IE
	        oMenu.cfg.setProperty("y", 189);
	        //alert(oMenu.cfg.getProperty("y"));
	    }

        YAHOO.util.Event.addListener("webservices", "mouseover", oMenu.show, null, oMenu);    
        /*Hides the Module element by setting the visible configuration 
property to false. Also fires two events: beforeHideEvent prior to 
the visibility change, and hideEvent after.*/
        /*YAHOO.util.Event.addListener("gallery", "mouseout", oMenu.hide, null, oMenu);*/
    
    });