if (document.images) {
  var stayon = 'home';
  var turnoff = '';

  homeOff = new Image();
  homeOff.src = "images/tophome0.gif";
  homeOn = new Image();
  homeOn.src = "images/tophome1.gif";
  introductionOff = new Image();
  introductionOff.src = "images/topintroduction0.gif";
  introductionOn = new Image();
  introductionOn.src = "images/topintroduction1.gif";
  booksOff = new Image();
  booksOff.src = "images/topbooks0.gif";
  booksOn = new Image();
  booksOn.src = "images/topbooks1.gif";
  newsOff = new Image();
  newsOff.src = "images/topnews0.gif";
  newsOn = new Image();
  newsOn.src = "images/topnews1.gif";
  questionsOff = new Image();
  questionsOff.src = "images/topquestions0.gif";
  questionsOn = new Image();
  questionsOn.src = "images/topquestions1.gif";
  aboutOff = new Image();
  aboutOff.src = "images/topabout0.gif";
  aboutOn = new Image();
  aboutOn.src = "images/topabout1.gif";
  schoolsOff = new Image();
  schoolsOff.src = "images/topschools0.gif";
  schoolsOn = new Image();
  schoolsOn.src = "images/topschools1.gif";
  guestbookOff = new Image();
  guestbookOff.src = "images/topguestbook0.gif";
  guestbookOn = new Image();
  guestbookOn.src = "images/topguestbook1.gif";
  topOff = new Image();
  topOff.src = "images/toptop0.gif";
  topOn = new Image();
  topOn.src = "images/toptop1.gif";
  contactOff = new Image();
  contactOff.src = "images/topcontact0.gif";
  contactOn = new Image();
  contactOn.src = "images/topcontact1.gif";
  doomspelltrilogyOff = new Image();
  doomspelltrilogyOff.src = "images/leftdoomspelltrilogy0.gif";
  doomspelltrilogyOn = new Image();
  doomspelltrilogyOn.src = "images/leftdoomspelltrilogy1.gif";
  silversequenceOff = new Image();
  silversequenceOff.src = "images/leftsilversequence0.gif";
  silversequenceOn = new Image();
  silversequenceOn.src = "images/leftsilversequence1.gif";
  breatheOff = new Image();
  breatheOff.src = "images/leftbreathe0.gif";
  breatheOn = new Image();
  breatheOn.src = "images/leftbreathe1.gif";
  angelOff = new Image();
  angelOff.src = "images/leftangel0.gif";
  angelOn = new Image();
  angelOn.src = "images/leftangel1.gif";
  enterOff = new Image();
  enterOff.src = "images/enter0.gif";
  enterOn = new Image();
  enterOn.src = "images/enter1.gif";
}

function imgOn(imgName) {
  if (document.images) {
  document[imgName].src = eval(imgName + "On.src");
  }
}

function imgOff(imgName) {
  if (document.images) {
  document[imgName].src = eval(imgName + "Off.src");
  }
}

function printMenu() {
document.write("<table cellpadding=0 cellspacing=0 border=0>\n<tr valign=top>\n<td rowspan=2><a href=\"index.html\"><img src=\"images/topmoon.gif\" alt=\"\" width=20 height=20 border=0 hspace=4></a></td>\n<td colspan=8><img src=\"images/mask.gif\" alt=\"\" width=4 height=4 border=0></td></tr>\n<tr valign=top>\n<td><a href=\"introduction.html\" onMouseOver=\"imgOn('introduction')\" onMouseOut=\"imgOff('introduction')\"><img src=\"images/topintroduction0.gif\" alt=\"\" width=59 height=11 border=0 name=\"introduction\" hspace=4></a></td>\n<td><a href=\"books.html\" onMouseOver=\"imgOn('books')\" onMouseOut=\"imgOff('books')\"><img src=\"images/topbooks0.gif\" alt=\"\" width=41 height=11 border=0 name=\"books\" hspace=4></a></td>\n<td><a href=\"news.html\" onMouseOver=\"imgOn('news')\" onMouseOut=\"imgOff('news')\"><img src=\"images/topnews0.gif\" alt=\"\" width=35 height=11 border=0 name=\"news\" hspace=4></a></td>\n<td><a href=\"questions.html\" onMouseOver=\"imgOn('questions')\" onMouseOut=\"imgOff('questions')\"><img src=\"images/topquestions0.gif\" alt=\"\" width=30 height=12 border=0 name=\"questions\" hspace=4></a></td>\n<td><a href=\"about.html\" onMouseOver=\"imgOn('about')\" onMouseOut=\"imgOff('about')\"><img src=\"images/topabout0.gif\" alt=\"\" width=64 height=11 border=0 name=\"about\" hspace=4></a></td>\n<td><a href=\"schools.html\" onMouseOver=\"imgOn('schools')\" onMouseOut=\"imgOff('schools')\"><img src=\"images/topschools0.gif\" alt=\"\" width=51 height=11 border=0 name=\"schools\" hspace=4></a></td>\n<td><a href=\"cgi-bin/messages.cgi\" onMouseOver=\"imgOn('guestbook')\" onMouseOut=\"imgOff('guestbook')\"><img src=\"images/topguestbook0.gif\" alt=\"\" width=63 height=13 border=0 name=\"guestbook\" hspace=4></a></td>\n<td><a href=\"cgi-bin/contact.cgi\" onMouseOver=\"imgOn('contact')\" onMouseOut=\"imgOff('contact')\"><img src=\"images/topcontact0.gif\" alt=\"\" width=52 height=11 border=0 name=\"contact\" hspace=4></a></td>\n</tr></table>");
}

function printFootmenu() {
document.write('<p align=center><a href="index.html">Welcome</a> |\n<a href="introduction.html">Introduction</a> |\n<a href="books.html">Books</a> |\n<a href="questions.html">Questions</a> |\n<a href="about.html">About Cliff McNish</a> |\n<a href="schools.html">Schools</a> |\n<a href="cgi-bin/messages.cgi">Messages</a> |\n<a href="cgi-bin/contact.cgi">Contact</a><br>&nbsp;</p>\n');
}

function printBooklinks() {
document.write("<p align=center class=tight>&nbsp;<br><a href=\"angel.html\" onMouseOver=\"imgOn('angel')\" onMouseOut=\"imgOff('angel')\"><img src=\"images/leftangel0.gif\" alt=\"\" width=59 height=93 border=0 name=\"angel\" hspace=10></a><br>&nbsp;<br><a href=\"breathe.html\" onMouseOver=\"imgOn('breathe')\" onMouseOut=\"imgOff('breathe')\"><img src=\"images/leftbreathe0.gif\" alt=\"\" width=98 height=101 border=0 name=\"breathe\"></a><br>&nbsp;<br><a href=\"thedoomspell.html\" onMouseOver=\"imgOn('doomspelltrilogy')\" onMouseOut=\"imgOff('doomspelltrilogy')\"><img src=\"images/leftdoomspelltrilogy0.gif\" alt=\"\" width=152 height=95 border=0 name=\"doomspelltrilogy\"></a><br>&nbsp;<br>\n<a href=\"silverchild.html\" onMouseOver=\"imgOn('silversequence')\" onMouseOut=\"imgOff('silversequence')\"><img src=\"images/leftsilversequence0.gif\" alt=\"\" width=136 height=93 border=0 name=\"silversequence\"></a>\n");
}
