      for (var i=1; i <= numofitems; i++) {
	  window["menuitem"+i] = new menu(numofitems,i,"hidden");
}
