// the number you pass to initLeft doesn't matter since it will get
// changed onactivate

// 21 pixels per entry in a menu

number_of_entries_in_menu=9;

heightofmenu = 21 * number_of_entries_in_menu + 5;

var myMenu1 = new ypSlideOutMenu("menu1", "right", -1000, 118, 350, heightofmenu)

     
         // 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, -90); }


	     // 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 = 30;

		         // 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;
			 }
			  ypSlideOutMenu.writeCSS();

