function topmenu(curPage) {
   document.write("<table border=0 cellspacing=0 cellpadding=0 width=\"100%\">");
   document.write("<tr>");
   document.write("   <td class=\"heading\"><img src=\"./images/menu/header.jpg\" width=\"556px\" height=\"125px\" alt=\"St. Michael\"/></td>");
   document.write("</tr>");
   document.write("<tr>");
   document.write("   <td align=right>");
   document.write("      <table border=0 cellspacing=0 cellpadding=0>");
   document.write("      <tr>");
   document.write("         <td class=\"subHeading\" width=\"100%\">&nbsp;</td>");
   document.write("         <td><img src=\"./images/menu/buttonAngle.gif\" width=\"85px\" height=\"34px\"/></td>");
// NEWS page
   if (curPage == "news") {
      document.write("         <td><img src=\"./images/menu/newsON.gif\" width=\"85px\" height=\"34px\" alt=\"\" name=\"news\" /></td>");
   }
   else {
      document.write("         <td><img src=\"./images/menu/newsOFF.gif\" width=\"85px\" height=\"34px\" alt=\"\" name=\"news\" onmouseover=\"imgOn('news')\" onmouseout=\"imgOff('news')\" onclick=\"window.location='./index.html'\"/></td>");
   }
// SCHEDULE page
   if (curPage == "schedule") {
      document.write("         <td><img src=\"./images/menu/scheduleON.gif\" width=\"85px\" height=\"34px\" alt=\"\" name=\"schedule\" /></td>");
   }
   else {
      document.write("         <td><img src=\"./images/menu/scheduleOFF.gif\" width=\"85px\" height=\"34px\" alt=\"\" name=\"schedule\" onmouseover=\"imgOn('schedule')\" onmouseout=\"imgOff('schedule')\" onclick=\"window.location='./schedule.html'\"/></td>");
   }
// HISTORY page
   if (curPage == "history") {
      document.write("         <td><img src=\"./images/menu/historyON.gif\" width=\"85px\" height=\"34px\" alt=\"\" name=\"history\" /></td>");
   }
   else {
      document.write("         <td><img src=\"./images/menu/historyOFF.gif\" width=\"85px\" height=\"34px\" alt=\"\" name=\"history\" onmouseover=\"imgOn('history')\" onmouseout=\"imgOff('history')\" onclick=\"window.location='./history.html'\"/></td>");
   }
// PHOTOS page
   if (curPage == "photos") {
      document.write("         <td><img src=\"./images/menu/photosON.gif\" width=\"85px\" height=\"34px\" alt=\"\" name=\"photos\" /></td>");
   }
   else {
      document.write("         <td><img src=\"./images/menu/photosOFF.gif\" width=\"85px\" height=\"34px\" alt=\"\" name=\"photos\" onmouseover=\"imgOn('photos')\" onmouseout=\"imgOff('photos')\" onclick=\"window.location='./photos.html'\"/></td>");
   }
// DIRECTIONS page
   if (curPage == "directions") {
      document.write("         <td><img src=\"./images/menu/directionsON.gif\" width=\"85px\" height=\"34px\" alt=\"\" name=\"directions\" /></td>");
   }
   else {
      document.write("         <td><img src=\"./images/menu/directionsOFF.gif\" width=\"85px\" height=\"34px\" alt=\"\" name=\"directions\" onmouseover=\"imgOn('directions')\" onmouseout=\"imgOff('directions')\" onclick=\"window.location='./directions.html'\"/></td>");
   }
// CEMETERY page
   if (curPage == "cemetery") {
      document.write("         <td><img src=\"./images/menu/cemeteryON.gif\" width=\"85px\" height=\"34px\" alt=\"\" name=\"cemetery\" /></td>");
   }
   else {
      document.write("         <td><img src=\"./images/menu/cemeteryOFF.gif\" width=\"85px\" height=\"34px\" alt=\"\" name=\"cemetery\" onmouseover=\"imgOn('cemetery')\" onmouseout=\"imgOff('cemetery')\" onclick=\"window.location='./cemetery.html'\"/></td>");
   }
// CONTACTS page
   if (curPage == "contacts") {
      document.write("         <td><img src=\"./images/menu/contactsON.gif\" width=\"85px\" height=\"34px\" alt=\"\" name=\"contacts\" /></td>");
   }
   else {
      document.write("         <td><img src=\"./images/menu/contactsOFF.gif\" width=\"85px\" height=\"34px\" alt=\"\" name=\"contacts\" onmouseover=\"imgOn('contacts')\" onmouseout=\"imgOff('contacts')\" onclick=\"window.location='./contacts.html'\"/></td>");
   }
   document.write("         <td><img src=\"./images/menu/buttonBlank.gif\" width=\"85px\" height=\"34px\"/></td>");
   document.write("      </tr>");
   document.write("      </table>");
   document.write("   </td>");
   document.write("</tr>");
   document.write("</table>");
}

function photoMenu(curPage) {
   document.write("<tr>");
   if (curPage != "main") {
      document.write("<tr><td class=\"menuItem\"><a class=\"menuLink\" href=\"./photos.html\">Photos Home</a></td></tr>");
   }
   if (curPage != "2009") {
      document.write("<tr><td class=\"menuItem\"><a class=\"menuLink\" href=\"./2009photos.html\">2009 Photos</a></td></tr>");
   }
   if (curPage != "2008") {
      document.write("<tr><td class=\"menuItem\"><a class=\"menuLink\" href=\"./2008photos.html\">2008 Photos</a></td></tr>");
   }
   if (curPage != "2007") {
      document.write("<tr><td class=\"menuItem\"><a class=\"menuLink\" href=\"./2007photos.html\">2007 Photos</a></td></tr>");
   }
   if (curPage != "2006") {
      document.write("<tr><td class=\"menuItem\"><a class=\"menuLink\" href=\"./2006photos.html\">2006 Photos</a></td></tr>");
   }
   if (curPage != "2005") {
      document.write("<tr><td class=\"menuItem\"><a class=\"menuLink\" href=\"./2005photos.html\">2005 Photos</a></td></tr>");
   }
}
