if (document.getElementById)
	{	
	// the number you pass to initLeft doesn't matter since it will get
	// changed onactivate
	var myMenu1 = new ypSlideOutMenu("menu1", "down", -1000, 44, 110, 500, null)
	var myMenu2 = new ypSlideOutMenu("menu2", "down", -1000, 44, 110, 500)
	var myMenu3 = new ypSlideOutMenu("menu3", "down", -1000, 44, 110, 500)
	var myMenu7 = new ypSlideOutMenu("menu7", "down", -1000, 44, 120, 500)//competitive comparison menu link
	
	var myMenu11 = new ypSlideOutMenu("menu4", "right", -1000, 44, 110, 500, "menu1")
	var myMenu12 = new ypSlideOutMenu("menu5", "right", -1000, 62, 110, 500, "menu1")
	var myMenu13 = new ypSlideOutMenu("menu6", "right", -1000, 81, 110, 500, "menu1")
	
	// for each menu, we set up the onactivate event to call repositionMenu with the amount offset from center, in pixels
	myMenu1.onactivate = function() { repositionMenu(myMenu1, -385); }
	myMenu2.onactivate = function() { repositionMenu(myMenu2, 33); }
	myMenu3.onactivate = function() { repositionMenu(myMenu3, 265); }
	myMenu7.onactivate = function() { repositionMenu(myMenu7, -220); }//competitive comparison menu link
	
	myMenu11.onactivate = function() { repositionMenu(myMenu11, -275); }
	myMenu12.onactivate = function() { repositionMenu(myMenu12, -275); }
	myMenu13.onactivate = function() { repositionMenu(myMenu13, -275); }

    // this function repositions a menu to the speicified offset from center
		function repositionMenu(menu, offset)
		{
      // the new left position should be the center of the window + the offset
			var newLeft = getWindowWidth() / 2 + offset;

      // setting the left position in netscape is a little different than IE
			menu.container.style ? menu.container.style.left = newLeft + "px" : menu.container.left = newLeft;
		}
		 
    // this function calculates the window's width - different for IE and netscape
		function getWindowWidth()
		{
			return window.innerWidth ? window.innerWidth : document.body.offsetWidth;
		}	
}	
//don't include - not in the _subs js file, so can't have more than 30 div menus
//ypSlideOutMenu.writeCSS();
