menu = [

"Stories",[

  "/stories/BloodoftheGathering.asp","Blood of the Gathering",

  "/stories/DeadmansGulch.asp",

  "The Train to Deadmans Gulch",

  "/stories/MurderonIstanbulExpress.asp",

  "Murder on the Instanbul Express",

  "/stories/menkheperre.asp",

  "The Curse of Menkheperre",

  "/stories/quillardiamond.asp",

  "The Mystery of the Quillar Diamond",

  "/stories/bluerhaj.asp",

  "The Blue Rhaj"

],

"Submenu2", [

  "item1link.html",

  "Item1\ Title",

  "item2link.html",

  "Item2\ Title",

  "item3link.html",

  "Item3\ Title"

],

"Submenu3", [

  "item1link.html",

  "Really\ Long\ Item1\ Title",

  "item2link.html",

  "Item2\ Title",

  "item3link.html",

  "Item3\ Title",

  "item4link.html",

  "Item4\ Title",

  "item5link.html",

  "Item5\ Title",

  "item6link.html",

  "Item6\ Title"

]];



document.open();

for (i=0; i<menu.length; i=i+2) {

//  alert("Now at i="+i);

  count = i/2+1;

  document.writeln("<div id=menu"+count+" class=\'menu\'><b><img src=\"images/close_cbox.gif\" width=10 height=10 hspace=2 vspace=2 border=0 align=right>"+menu[i]+"</b><br>");

  submenu = menu[i+1];

  for (j=0; j<submenu.length; j=j+2) {

//    alert("Now at j="+j);

    if (j != 0) document.write("<br>");

    document.writeln("&nbsp;&nbsp;<a href=\'"+submenu[j]+"\'>"+submenu[j+1]+"</a>");

  }

  document.write("</div>");

}

