 var yPosition = 85;
		// the number you pass to initLeft doesn't matter since it will get
		// changed onactivate
	  //new ypSlideOutMenu("number menu", "slide position", left, top, width, height)
		var myMenu1 = new ypSlideOutMenu("menu1", "right", -1000, yPosition, 146, 230)
		var myMenu2 = new ypSlideOutMenu("menu2", "right", -1000, yPosition + 25, 146, 130)
		var myMenu21 = new ypSlideOutMenu("menu21", "right", -1000, yPosition + 43, 125, 200)
		var myMenu22 = new ypSlideOutMenu("menu22", "right", -1000, yPosition + 60, 245, 200)
		var myMenu23 = new ypSlideOutMenu("menu23", "right", -1000, yPosition + 77, 200, 200)
		
    // for each menu, we set up hte onactivate event to call repositionMenu with the amount offset from center, in pixels
		myMenu1.onactivate = function() { repositionMenu(myMenu1, 98); }
		myMenu2.onactivate = function() { repositionMenu(myMenu2, 98); }
		myMenu21.onactivate = function() { repositionMenu(myMenu21, -26); }
		myMenu22.onactivate = function() { repositionMenu(myMenu22, -146); }
		myMenu23.onactivate = function() { repositionMenu(myMenu23, -101); }
    // 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;
		}	


    ypSlideOutMenu.writeCSS();

/*
var yPosition = 80;

		new ypSlideOutMenu("menu1", "right", 500, yPosition, 146, 230)
		new ypSlideOutMenu("menu11", "right", 408, yPosition + 81, 146, 160)
		new ypSlideOutMenu("menu12", "right", 408, yPosition + 181, 146, 160)
		new ypSlideOutMenu("menu2", "right", 500, yPosition + 22, 146, 130)
		new ypSlideOutMenu("menu21", "right", 408, yPosition + 63, 146, 80)
		new ypSlideOutMenu("menu3", "right", 500, yPosition + 44, 146, 120)
		new ypSlideOutMenu("menu4", "right", 500, yPosition + 66, 146, 205)
*/