Language = "en";
menuPrinterWidth = 150;

function showMessage() {
//  document.writeln('<p><div style="color:red;font-size:10pt;font-family:Verdana,Arial;font-weight:bold;width:728px;margin:5px;">');
//  document.write("This web site www3.telus.net/public/kstam will be decommissioned. ");
//  document.write("The new web site is located at ");
//  document.write('<a href="http://www.3dbibleproject.com/en/default.htm">www.3dbibleproject.com</a>. ');
//  document.write("Please update your link references.");
//  document.writeln('</div></p>');
}

function description() {
  document.writeln('<font color="#CCCCFF" size="1"><b>');
  document.writeln('Learn Noah\'s Ark, Moses\' Tabernacle, and Solomon\'s Temple using 3D virtual reality technologies.');
  document.writeln('</b></font>');
}

function copyright(elink) {
  var currentTime = new Date();
  var currentYear = currentTime.getFullYear();
  document.write("&copy; 2003-"+currentYear+" by ");
  if (elink == 0) document.write("Stephen Tam");
  else contact("Stephen Tam");
  document.writeln(", " + web_site + ". All rights reserved.");
}

function copyrightNotice() {
  var currentTime = new Date();
  var currentYear = currentTime.getFullYear();
  document.writeln('<table border="0" cellpadding="5" cellspacing="0" width="100%">');
  document.writeln('<tr><td><span style="color: #CCCCFF;"><small>');
  document.writeln("&copy; 2003-"+currentYear+" by ");
  document.write('<a href="' + email_address + '" style="color: #CCCCFF;">Stephen Tam</a>');
  document.write(", " + web_site + ". All rights reserved.");
  document.writeln(' | <a href="license.htm" target="copyright" style="color: #CCCCFF;">COPYRIGHT POLICY</a>');
  document.writeln('</small></span>');
  document.writeln('</td></tr>');
  document.writeln('</table>');
}

function leftMenu() {
menu("vertical");

menuItem("3D Models",fullpath("models/models.htm"));

subMenu("Jewish Calendar");
  menuItem("Overview",fullpath("temple/details/calendar.htm"));
  menuItem("Passover",fullpath("temple/details/passover.htm"));
  menuItem("Pentecost",fullpath("temple/details/pentecost.htm"));
  menuItem("Trumpets",fullpath("temple/details/trumpets.htm"));
  menuItem("The Day of Atonement",fullpath("temple/details/day_of_atonement.htm"));
  menuItem("Tabernacles",fullpath("temple/details/tabernacles.htm"));
  menuItem("Hanukkah",fullpath("temple/details/hanukkah.htm"));
  menuItem("Purim",fullpath("temple/details/purim.htm"));
endSubMenu();

subMenu("The Five Offerings");
  menuItem("Overview",fullpath("tabernacle/details/offerings.htm"));
  menuItem("Burnt offerings",fullpath("tabernacle/study/burnt_offering.htm?study=on"));
  menuItem("Grain offerings",fullpath("tabernacle/study/grain_offering.htm?study=on"));
  menuItem("Peace offerings",fullpath("tabernacle/study/peace_offering.htm?study=on"));
  menuItem("Sin offerings",fullpath("tabernacle/study/sin_offering.htm?study=on"));
  menuItem("Trespass offerings",fullpath("tabernacle/study/trespass_offering.htm?study=on"));
endSubMenu();

subMenu("Moses' Tabernacle");
  menuItem("How to setup",fullpath("tabernacle/details/setup_tabernacle.htm"));
  menuItem("Framework",fullpath("tabernacle/details/setup_board.htm"));
  menuItem("Showbread",fullpath("tabernacle/details/showbread.htm"));
  menuItem("Lampstand",fullpath("tabernacle/details/lampstand.htm"));
  subMenu("Structure");
    menuItem("Framework",fullpath("tabernacle/study/board.htm?study=on"));
    menuItem("Order of the coverings",fullpath("tabernacle/study/coverings_order.htm?study=on"));
    menuItem("Curtains of fine linen",fullpath("tabernacle/study/linen_cover.htm?study=on"));
    menuItem("Curtains of goats' hair",fullpath("tabernacle/study/goat_hair_cover.htm?study=on"));
    menuItem("Covering of rams' skins",fullpath("tabernacle/study/red_ram_skin_cover.htm?study=on"));
    menuItem("Outer covering",fullpath("tabernacle/study/seal_cover.htm?study=on"));
  endSubMenu();
  subMenu("Most Holy Place");
    menuItem("Most Holy Place",fullpath("tabernacle/study/most_holy_place.htm?study=on"));
    menuItem("The Ark of Covenant",fullpath("tabernacle/study/ark.htm?study=on"));
    menuItem("Cherubim",fullpath("tabernacle/study/cherubim.htm?study=on"));
    menuItem("Mercy Seat",fullpath("tabernacle/study/mercy_seat.htm?study=on"));
    menuItem("Veil",fullpath("tabernacle/study/veil.htm?study=on"));
  endSubMenu();
  subMenu("Holy Place");
    menuItem("Holy Place",fullpath("tabernacle/study/holy_place.htm?study=on"));
    menuItem("Door",fullpath("tabernacle/study/holy_place_door.htm?study=on"));
    menuItem("Five pillars at the door",fullpath("tabernacle/study/five_pillars.htm?study=on"));
    menuItem("Golden incense altar",fullpath("tabernacle/study/incense.htm?study=on"));
    menuItem("Lampstand",fullpath("tabernacle/study/lampstand.htm?study=on"));
    menuItem("Showbread table",fullpath("tabernacle/study/showbread_table.htm?study=on"));
  endSubMenu();
  subMenu("Outer Court");
    menuItem("Outer court",fullpath("tabernacle/study/outer_court.htm?study=on"));
    menuItem("Pillars",fullpath("tabernacle/study/pillars.htm?study=on"));
    menuItem("Silver rods",fullpath("tabernacle/study/silver_rods.htm?study=on"));
    menuItem("Entrance",fullpath("tabernacle/study/entrance.htm?study=on"));
    menuItem("Bronze altar",fullpath("tabernacle/study/altar.htm?study=on"));
    menuItem("Bronze laver",fullpath("tabernacle/study/laver.htm?study=on"));
    menuItem("Outside camp",fullpath("tabernacle/study/outside.htm?study=on"));
  endSubMenu();
  subMenu("Services");
    menuItem("The day of atonement",fullpath("tabernacle/study/day_of_atonement.htm?study=on"));
    menuItem("High priest",fullpath("tabernacle/study/high_priest.htm?study=on"));
    menuItem("Ordinary priests",fullpath("tabernacle/study/priest.htm?study=on"));
    menuItem("Golden garments",fullpath("tabernacle/study/gold_garments.htm?study=on"));
    menuItem("White garments",fullpath("tabernacle/study/white_garments.htm?study=on"));
    menuItem("The five offerings",fullpath("tabernacle/study/offerings.htm?study=on"));
  endSubMenu();
endSubMenu();
subMenu("Solomon's Temple");
  menuItem("The Lavers and Basins",fullpath("temple/details/laver.htm"));
  menuItem("Cherubim",fullpath("temple/details/cherubim.htm"));
  menuItem("Talmudic Evidence",fullpath("temple/details/evidence.htm"));
  menuItem("Priests' and Levites",fullpath("temple/details/priest_service.htm"));
  menuItem("Upper Rooms",fullpath("temple/details/upper_rooms.htm"));
  subMenu("Structure");
    menuItem("The Temple",fullpath("temple/study/temple.htm?study=on"));
    menuItem("Bronze pillar - Boaz",fullpath("temple/study/boaz.htm?study=on"));
    menuItem("Bronze pillar - Jachin",fullpath("temple/study/jachin.htm?study=on"));
    menuItem("Porch",fullpath("temple/study/portico.htm?study=on"));
    menuItem("Side rooms",fullpath("temple/study/side_room_door.htm?study=on"));
    menuItem("Lowest story",fullpath("temple/study/side_room1.htm?study=on"));
    menuItem("Upper story",fullpath("temple/study/side_room3.htm?study=on"));
    menuItem("Upper rooms",fullpath("temple/study/upper_rooms.htm?study=on"));
    menuItem("Surrounding rooms",fullpath("temple/study/surrounding_rooms.htm?study=on"));
  endSubMenu();
  subMenu("Most Holy Place");
    menuItem("Most Holy Place",fullpath("temple/study/most_holy_place.htm?study=on"));
    menuItem("Door",fullpath("temple/study/most_holy_place_door.htm?study=on"));
    menuItem("The Ark of Covenant",fullpath("temple/study/ark.htm?study=on"));
    menuItem("Cherubim",fullpath("temple/study/cherubim.htm?study=on"));
    menuItem("Mercy Seat",fullpath("temple/study/mercy_seat.htm?study=on"));
    menuItem("Veil",fullpath("temple/study/veil.htm?study=on"));
  endSubMenu();
  subMenu("Holy Place");
    menuItem("Holy Place",fullpath("temple/study/holy_place.htm?study=on"));
    menuItem("Door",fullpath("temple/study/holy_place_door.htm?study=on"));
    menuItem("Golden incense altar",fullpath("temple/study/incense.htm?study=on"));
    menuItem("Lampstands",fullpath("temple/study/lampstand.htm?study=on"));
    menuItem("Showbread tables",fullpath("temple/study/showbread_table.htm?study=on"));
  endSubMenu();
  subMenu("Inner Court");
    menuItem("Inner court",fullpath("temple/study/inner_court.htm?study=on"));
    menuItem("Bronze altar",fullpath("temple/study/altar.htm?study=on"));
    menuItem("Ramp to the Altar",fullpath("temple/study/ramp.htm?study=on"));
    menuItem("Bronze basins",fullpath("temple/study/cart.htm?study=on"));
    menuItem("Molten sea",fullpath("temple/study/sea.htm?study=on"));
    menuItem("East gate",fullpath("temple/study/east_gate.htm?study=on"));
    menuItem("North gate",fullpath("temple/study/north_gate.htm?study=on"));
    menuItem("South gate",fullpath("temple/study/south_gate.htm?study=on"));
  endSubMenu();
  subMenu("Outer Court");
    menuItem("Outer court",fullpath("temple/study/outer_court.htm?study=on"));
    menuItem("East gate",fullpath("temple/study/outer_east_gate.htm?study=on"));
    menuItem("North gate",fullpath("temple/study/outer_north_gate.htm?study=on"));
    menuItem("South gate",fullpath("temple/study/outer_south_gate.htm?study=on"));
    menuItem("West gate",fullpath("temple/study/outer_west_gate.htm?study=on"));
  endSubMenu();
  subMenu("Services");
    menuItem("The day of atonement",fullpath("temple/study/day_of_atonement.htm?study=on"));
    menuItem("High priest",fullpath("temple/study/high_priest.htm?study=on"));
    menuItem("Ordinary priests",fullpath("temple/study/priest.htm?study=on"));
    menuItem("Golden garments",fullpath("temple/study/gold_garments.htm?study=on"));
    menuItem("White garments",fullpath("temple/study/white_garments.htm?study=on"));
    menuItem("Priests' services",fullpath("temple/study/side_room2.htm?study=on"));
    menuItem("The five offerings",fullpath("temple/study/offerings.htm?study=on"));
  endSubMenu();
endSubMenu();
endMenu();
}

function topMenu() {
  menu("horizontal");
  menuItem("HOME", fullpath("default.htm"));
  menuItem("DOWNLOADS", fullpath("download.htm"));
  menuItem("CONTACT US", email_address);
  menuItem("SITE MAP", fullpath("sitemap.htm"));
  menuItem("RESOURCES", fullpath("resources.htm"));
  menuItem("COPYRIGHT", fullpath("license.htm"));
  endMenu();
}

function googleSearch() {
  document.writeln('<form method="get" action="http://www.3dbibleproject.com/en/results.htm" target="google_window" style="margin: 3px 3px 0px 3px;">');
  document.writeln('<label for="sbi" style="display: none">Enter your search terms</label>');
  document.writeln('<input type="text" name="q" size="31" maxlength="255" value="" id="sbi"></input>');
  document.writeln('<label for="sbb" style="display: none">Submit search form</label>');
  document.writeln('<input type="submit" class="submit" name="sa" value="Google Search" id="sbb" ></input>');
  document.writeln('<input type="hidden" name="client" value="pub-5708090644259766"></input>');
  document.writeln('<input type="hidden" name="forid" value="1"></input>');
  document.writeln('<input type="hidden" name="ie" value="ISO-8859-1"></input>');
  document.writeln('<input type="hidden" name="oe" value="ISO-8859-1"></input>');
  document.writeln('<input type="hidden" name="cof" value="GALT:#0000FF;GL:1;DIV:#227295;VLC:663399;AH:center;BGC:FFFFFF;LBGC:005F81;ALC:227295;LC:227295;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:11"></input>');
  document.writeln('<input type="hidden" name="hl" value="en"></input>');
  document.writeln('</form>');
}
