
<!--

// Detect if browser is Netscape 3+ or IE 4+
name = navigator.appName;
ver = parseInt(navigator.appVersion);
if ((name == "Netscape" && ver >= 3) ||
  (name == "Microsoft Internet Explorer" && ver >= 4)) br = "n3";
else br = "n2";

loaded = false;

// Create image objects, preload all active and inactive images.
function loadImages(rootPath) {
  if (br == "n3") {
    m_home_off = new Image();
    m_home_off.src = "common/m_home.gif";
    m_home_on = new Image();
    m_home_on.src = "common/m_home_on.gif";
    m_about_off = new Image();
    m_about_off.src = "common/m_about.gif";
    m_about_on = new Image();
    m_about_on.src = "common/m_about_on.gif";
    m_programs_off = new Image();
    m_programs_off.src = "common/m_programs.gif";
    m_programs_on = new Image();
    m_programs_on.src = "common/m_programs_on.gif";
    m_network_off = new Image();
    m_network_off.src = "common/m_network.gif";
    m_network_on = new Image();
    m_network_on.src = "common/m_network_on.gif";
    m_photos_off = new Image();
    m_photos_off.src = "common/m_photos.gif";
    m_photos_on = new Image();
    m_photos_on.src = "common/m_photos_on.gif";
    m_quotes_off = new Image();
    m_quotes_off.src = "common/m_quotes.gif";
    m_quotes_on = new Image();
    m_quotes_on.src = "common/m_quotes_on.gif";
    m_links_off = new Image();
    m_links_off.src = "common/m_links.gif";
    m_links_on = new Image();
    m_links_on.src = "common/m_links_on.gif";
    loaded = true;
  }
}

// Function to "activate" images.
function doMenuOver(imgName) {
  if (br == "n3" && loaded) {
    document[imgName].src = eval(imgName + "_on.src");
  }
}

// Function to "deactivate" images.
function doMenuOut(imgName) {
  if (br == "n3" && loaded) {
    document[imgName].src = eval(imgName + "_off.src");
  }
}

// Print the copyright link on the page.
function printCopyright() {
  document.write("<P><CENTER><SMALL>&copy; Lise Chase ", (new Date()).getFullYear(),
    ". All rights reserved.</SMALL></CENTER>")
}


// Print the header and main navigation of the page.
function printPageHeader(section) {
    document.write("  <TABLE WIDTH=\"100%\" HEIGHT=\"100%\">\n")
    document.write("  <TR><TD ALGIN=\"CENTER\" VALIGN=\"CENTER\">\n")
    document.write("  <TABLE WIDTH=\"900\" HEIGHT=\"600\" ALIGN=\"CENTER\">\n")
    document.write("   <TR HEIGHT=\"20\">\n")
    document.write("    <TD WIDTH=\"28\">\n")
    document.write("      <IMG SRC=\"common/b_top_left.gif\" WIDTH=\"28\" HEIGHT=\"20\">\n")
    document.write("    </TD>\n")
    document.write("    <TD>\n")
    document.write("      <TABLE WIDTH=\"100%\" HEIGHT=\"20\" BACKGROUND=\"common/b_top.gif\"><TR><TD></TD></TR></TABLE>\n")
    document.write("    </TD>\n")
    document.write("    <TD WIDTH=\"28\">\n")
    document.write("      <IMG SRC=\"common/b_top_right.gif\" WIDTH=\"28\" HEIGHT=\"20\">\n")
    document.write("    </TD>\n")
    document.write("   </TR>\n")
    document.write("   <TR>\n")
    document.write("    <TD WIDTH=\"16\">\n")
    document.write("      <TABLE WIDTH=\"16\" HEIGHT=\"100%\" BACKGROUND=\"common/b_left.gif\"><TR><TD></TD></TR></TABLE>\n")
    document.write("    </TD>\n")
    document.write("    <TD>\n")
    document.write("      <TABLE WIDTH=\"100%\" HEIGHT=\"100%\">\n")
    document.write("       <TR>\n")
    document.write("        <TD WIDTH=\"50%\">\n")
    document.write("            <DIV style=\"height: 100%; width: 100%;\">\n")
    document.write("             <FONT FACE=\"Comic Sans MS\">\n")
    document.write("             <BR><IMG ALIGN=\"left\" SRC=\"common/title.gif\"/><BR>\n")
}

// Build the page footer only to be used if there is a sub menu.
function printPageFooter(section, stamp) {
    document.write("             </FONT>\n")
    document.write("            </DIV>\n")
    document.write("        </TD>\n")
    document.write("	<TD WIDTH=\"50\" ALIGN=\"RIGHT\">\n")
    document.write("  	  <IMG SRC=\"common/line_vert.gif\"/>\n")
    document.write("	</TD>\n")
    document.write("        <TD ALIGN=\"RIGHT\" VALIGN=\"TOP\">\n")
    document.write("         <TABLE WIDTH=\"100%\" HEIGHT=\"100%\">\n")
    document.write("          <TR HEIGHT=\"138\">\n")
    document.write("           <TD>\n")
    document.write("            <IMG ALIGN=\"RIGHT\" HEIGHT=\"160\" WIDTH=\"364\" SRC=\"common/" + stamp + ".jpg\"/>\n")
    document.write("           </TD>\n")
    document.write("          </TR>\n")
    document.write("          <TR>\n")
    document.write("           <TD VALIGN=\"TOP\"><BR><BR><BR>\n")
    document.write("            <TABLE WIDTH=\"310\" HEIGHT=\"224\">\n")
    printMenuItem(section, "index.html", "home")
    printMenuItem(section, "about.html", "about")
    printMenuItem(section, "programs.html", "programs")
    printMenuItem(section, "network.html", "network")
    printMenuItem(section, "photos.html", "photos")
    printMenuItem(section, "quotes.html", "quotes")
    printMenuItem(section, "links.html", "links")
    document.write("            </TABLE>\n")
    document.write("           </TD>\n")
    document.write("          </TR>\n")
    document.write("         </TABLE>\n")
    document.write("        </TD>\n")
    document.write("       </TR>\n")
    document.write("      </TABLE>\n")
    document.write("    </TD>\n")
    document.write("    <TD WIDTH=\"28\">\n")
    document.write("      <TABLE WIDTH=\"28\" HEIGHT=\"100%\" BACKGROUND=\"common/b_right.gif\"><TR><TD></TD></TR></TABLE>\n")
    document.write("    </TD>\n")
    document.write("   </TR>\n")
    document.write("   <TR HEIGHT=\"16\">\n")
    document.write("    <TD WIDTH=\"28\">\n")
    document.write("      <IMG SRC=\"common/b_bottom_left.gif\" WIDTH=\"28\" HEIGHT=\"38\">\n")
    document.write("    </TD>\n")
    document.write("    <TD HEIGHT=\"38\">\n")
    document.write("      <TABLE WIDTH=\"100%\" HEIGHT=\"38\" BACKGROUND=\"common/b_bottom.gif\"><TR><TD></TD></TR></TABLE>\n")
    document.write("    </TD>\n")
    document.write("    <TD WIDTH=\"28\">\n")
    document.write("      <IMG SRC=\"common/b_bottom_right.gif\" WIDTH=\"28\" HEIGHT=\"38\">\n")
    document.write("    </TD>\n")
    document.write("   </TR>\n")
    document.write("  </TABLE>\n")
    document.write("  </TD></TR>\n")
    document.write("  </TABLE>\n")
}

function printMenuItem(highlight_section, link, section) {
    if (highlight_section != section) {
      document.write("<TR HEIGHT=\"32\"><TD HEIGHT=\"32\"><A HREF=\"" + link + "\" ONMOUSEOVER=\"doMenuOver('m_" + section + "')\" ONMOUSEOUT=\"doMenuOut('m_" + section + "')\">\n")
      document.write("<IMG ALIGN=\"RIGHT\" NAME=\"m_" + section + "\" SRC=\"common/m_" + section + ".gif\"/></A></TD></TR>\n")	
    } else {
      document.write("<TR HEIGHT=\"32\"><TD HEIGHT=\"32\">\n")
      document.write("<IMG ALIGN=\"RIGHT\" NAME=\"m_" + section + "\" SRC=\"common/m_" + section + "_on.gif\"/></TD></TR>\n")	
    }
}

//-->
