function menu(title)

{ document.write("<table bgcolor=AAAAAA width=990 cellspacing=0 cellpadding=1>")

  document.write("  <tr>")

  document.write("    <td width=230 rowspan=100 valign=top bgcolor=666666><center>")



  //----menu heading

  document.write("      <table width=230 cellspacing=1 cellpadding=4><tr><td bgcolor=red>")

  document.write("      <span class='menuhead'><center>SITE MAP</center></span></td></tr></table>")



  //----first menu

  document.write("      <table width=100% align=center bgcolor=666666 cellpadding=0 cellspacing=0><tr>")

  document.write("        <td valign=top><table width=100% align=center cellpadding=3 cellspacing=1>")

                            menuline("index.html", "Home");

  document.write("        </table></td>");

  document.write("        <td valign=top><table width=100% align=center cellpadding=3 cellspacing=1>")

                            menuline("javascript:history.back(1)", "Previous Page");

  document.write("        </table></td>");

  document.write("      </tr></table>");



  //----puzzles menu  

  document.write("      <table width=100% bgcolor=000044 cellspacing=1 cellpadding=4><tr><td>")

  document.write("      <span class='menuhead'><center>About Magnum Opus puzzles</center></span></td></tr></table>")



  document.write("      <table width=100% bgcolor=666666 cellpadding=0 cellspacing=0><tr>")

  document.write("        <td colspan=2>")

  document.write("          <table width=100% align=center cellpadding=3 cellspacing=1>")

                              menuline("crossword.html", "Standard Crosswords");

                              menuline("freeform.html", "Freeform Crosswords");

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

  document.write("        </td></tr>")



  document.write("        <tr>")

  

  document.write("        <td valign=top><table width=100% align=center cellpadding=3 cellspacing=1>")

                            menuline("acrostic.html",  "Acrostic");

                            menuline("akari.html",     "Akari");

                            menuline("domino.html",    "Domino");

                            menuline("doublet.html",   "Doublet");

                            menuline("fillomino.html", "Fillomino");

//                            menuline("fillin.html",    "Fillin");

                            menuline("futoshiki.html", "Futoshiki");

                            menuline("gokigen.html",   "Gokigen");

                            menuline("kakuro.html",    "Kakuro");

                            menuline("kendoku.html",   "Kendoku");

  document.write("        </table></td>");



  document.write("        <td valign=top><table width=100% align=center cellpadding=3 cellspacing=1>")

                            menuline("ladderword.html",  "Ladderword");

                            menuline("letterdrop.html",  "Letterdrop");

                            menuline("pyramidword.html", "Pyramidword");

                            menuline("roundabouts.html", "Roundabouts");

                            menuline("sikaku.html",      "Sikaku");

                            menuline("sixpack.html",     "Sixpack");

                            menuline("slitherlink.html", "Slitherlink");

                            menuline("sudoku.html",      "Sudoku");

                            menuline("tents.html",       "Tents");

                            menuline("wordsearch.html",  "Wordsearch");

  document.write("        </table></td>");



  document.write("        </tr>")

  document.write("      </table>")



  //----user instructions menu

  document.write("      <table width=100% bgcolor=000044 cellspacing=1 cellpadding=4><tr><td>")

  document.write("        <span class='menuhead'><center>Applet User Instructions</center></span>")

  document.write("      </td></tr></table>");



  document.write("      <table width=100% bgcolor=666666 cellpadding=0 cellspacing=0><tr>")

  document.write("        <td valign=top><table width=100% align=center cellpadding=3 cellspacing=1>")

                            menuline("crossworduser.html", "Crossword");

                            menuline("akariuser.html", "Akari");

                            menuline("acrosticuser.html", "Acrostic");

                            menuline("dominouser.html", "Domino");

                            menuline("doubletuser.html", "Doublet");

//                            menuline("fillinuser.html", "Fillin");

                            menuline("fillominouser.html", "Fillomino");

                            menuline("futoshikiuser.html", "Futoshiki");

                            menuline("gokigenuser.html", "Gokigen");

                            menuline("kakurouser.html", "Kakuro");

  document.write("        </table></td>");



  document.write("        <td valign=top><table width=100% align=center cellpadding=3 cellspacing=1>")

                            menuline("kendokuuser.html",     "Kendoku");

                            menuline("ladderworduser.html",  "Ladderword");

                            menuline("letterdropuser.html",  "Letterdrop");

                            menuline("pyramidworduser.html", "Pyramidword");

                            menuline("roundaboutsuser.html", "Roundabouts");

                            menuline("sikakuuser.html",      "Sikaku");

                            menuline("slitherlinkuser.html", "Slitherlink");

                            menuline("sudokuuser.html",      "Sudoku");

                            menuline("tentsuser.html",       "Tents");

                            menuline("wordsearchuser.html",  "Wordsearch");

  document.write("        </table></td>")

  document.write("      </tr></table>")

 

  //----daily puzzles menu

  document.write("      <table width=100% bgcolor=000044 cellspacing=1 cellpadding=4><tr><td>")

  document.write("        <span class='menuhead'><center>Daily Puzzles</center></span>")

  document.write("      </td></tr></table>")



  document.write("      <table width=100% bgcolor=666666 cellpadding=0 cellspacing=0><tr>")

  document.write("      <td colspan=2>")

  document.write("        <table width=100% align=center cellpadding=3 cellspacing=1>")

                            menuline("dailypuzzles.html", "Daily Puzzles...<br> Discontinued.");

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

  document.write("      </td></tr>")



  document.write("        <tr>")





/*  document.write("        <td valign=top><table width=100% align=center cellpadding=3 cellspacing=1>")

                            menuline("dailyakari.html",     "Akari");

                            menuline("dailydomino.html",    "Domino");

                            menuline("dailyfillomino.html", "Fillomino");

                            menuline("dailyfutoshiki.html", "Futoshiki");

                            menuline("dailygokigen.html",   "Gokigen");

                            menuline("dailykakuro.html",    "Kakuro");

                            menuline("dailykendoku.html",   "Kendoku");

  document.write("        </table></td>");



  document.write("        <td valign=top><table width=100% align=center cellpadding=3 cellspacing=1>");

                            menuline("dailyquiz.html", "Quiz");

                            menuline("dailyroundabouts.html", "Roundabouts");

                            menuline("dailysikaku.html", "Sikaku");

                            menuline("dailyslitherlink.html", "Slitherlink");

                            menuline("dailysudoku.html", "Sudoku");

                            menuline("dailytents.html", "Tents");

  document.write("        </table></td>");  */





  document.write("      </tr></table>")



  //----final menu

  document.write("      <table width=100% bgcolor=000044 cellspacing=1 cellpadding=4><tr><td>")

  document.write("        <span class='menuhead'><center>Download : FAQ : History</center></span>")

  document.write("      </td></tr></table>")

    

  document.write("      <table width=100% bgcolor=666666 cellpadding=0 cellspacing=0><tr>")

  document.write("      <td colspan=2>")

  document.write("        <table width=100% align=center cellpadding=3 cellspacing=1>")

                            menuline("download.html", "Download Magnum Opus");

                            menuline("faq.html", "Frequently Asked Questions");

                            menuline("history.html", "History of Magnum Opus");

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

  document.write("      </td></tr>");

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



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

  document.write("    <td valign=top bgcolor=FFFFFF cellspacing=0 cellpadding=0>")

  

  document.write("      <table width=100% bgcolor=CCCCCC cellpadding=4 cellspacing=0><tr cellspacing=0 cellpadding=0><td cellspacing=0 cellpadding=0>")

  document.write("&nbsp; &nbsp; &nbsp;" +    title)

  document.write("      </td></tr></table")



  document.write("<table bgcolor=FFFFFF width=100% cellpadding=8 cellspacing=2 valign=top><tr><td>");  

}

//------------------------------------------------------------------------------

function footer()

{ var dateMod=document.lastModified;

  var m=new Array(13);

  m[0]="Jan"; m[1]="Feb"; m[2]="Mar"; m[3]="Apr"; m[4]="May"; m[5]="Jun"; m[6]="Jul"; m[7]="Aug"; m[8]="Sep"; m[9]="Oct"; m[10]="Nov"; m[11]="Dec"; 



  document.write("</td></tr></table>")

  document.write("</td></tr></table>")

  document.write("<span class='footer'><br>This page was last up-dated: ")

  document.write(dateMod.substring(3, 5) + " " + m[parseInt(dateMod.substring(0, 1))*10 + parseInt(dateMod.substring(1, 2)) - 1] + " " + dateMod.substring(6, 10));

  document.write("<br>Copyright &copy; 2010 AUS-PC-SOFT Shareware")

  document.write("<br>38 Gum Tree Drive")

  document.write("<br>Littlehampton, S.A. 5250 Australia")

  document.write("<br></span>")

  document.write("</center></body>")

}

//------------------------------------------------------------------------------

function menuline(file, title)

{ document.write("        <tr><td bgcolor=FFFFEE align=center><a href=" + file + ">&nbsp;<b>" + title + "</b>&nbsp;</a></td></tr>")

}

//------------------------------------------------------------------------------

function heading()

{ document.write("<body bgcolor=AAAA99><center>")

  document.write("<table width=990 bgcolor=004455 border=0>")

  document.write("  <tr>")

  document.write("    <td><center>")

  document.write("      <span class='banner1'>Magnum Opus<br></span>")

  document.write("      <span class='banner2'>Word, Number and Logic Puzzles.<br></span>")

  document.write("      <span class='banner3'>Copyright &copy; 2010 AUS-PC-SOFT Shareware<br></span>")

  document.write("    </center></td>")

  document.write("  </tr>")

  document.write("</table>")

}

//------------------------------------------------------------------------------

function param(name, value)

{ document.write("<tr><td width=230 valign=top><span class='param'>&lt;param name=\"" + name + "\"</span></td>")

  document.write("<td><span class='param'>value=\"" + value + "\"></span></td></tr>")

}

//------------------------------------------------------------------------------

function new_window(url, width, height)

{ window.open(url, "","width=" + width + ",height=" + height + ",left=20,top=20")

}

//------------------------------------------------------------------------------

function applettag(f, t, w, h)

{ //document.write("<applet codebase=\"daily/"+f+"\" code=\""+t+".class\" archive=\""+t+".jar\" width="+w+" height="+h+">")

  document.write("<applet codebase=\"http://www.wordandnumberpuzzles.com/daily/"+f+"\" code=\""+t+".class\" archive=\""+t+".jar\" width="+w+" height="+h+">")

}
