function template(page) {
 document.getElementById('footertemplate').innerHTML = '<DIV ID="footer">Site designed, published and maintained by<BR><A HREF="http://www.geniusiq.net" target="_top"><IMG SRC="http://www.geniusiq.net/graphics/giq.jpg" ALIGN=CENTER BORDER=0><BR>GeniusIQ Computing</A></DIV>';
 var menutext;
 var hometext;
 var calendartext;
 var announcetext;
 var shiurtext;
 var resttext;
 var youthtext;
 var linktext;
 var contacttext;
 var discusstext;
 var baseurl = 'http://www.geniusiq.net/bioz/';
 var headertext= '<DIV id="header"><CENTER><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100%><TR><TD ALIGN=CENTER WIDTH=98><IMG SRC="' + baseurl + 'graphics/emblem.gif" HEIGHT=150 WIDTH=98></TD><TD ALIGN=CENTER><FONT SIZE=+3 COLOR="000000"><B>Congregation B\'nai Israel - Ohev Zedek</B></FONT><BR><FONT SIZE=+2><B>B\'nai Halberstam</B></FONT><BR><FONT SIZE=+1>8</FONT><FONT SIZE=+2>201</FONT><FONT SIZE=+1> CASTOR AVENUE <B>&#183;</B> PHILADELPHIA, PA </FONT><FONT SIZE=+2>19152</FONT><BR>(215) 742-0400</FONT></TD><TD ALIGN=CENTER WIDTH=98><IMG SRC="' + baseurl + 'graphics/emblem.gif" HEIGHT=150 WIDTH=98></TD></TR></TABLE></CENTER></DIV>';
 var browser = navigator.appName;
 if (browser == "Microsoft Internet Explorer") {
  var menutextprefix = '<DIV CLASS="contentMenu"><DIV CLASS="controls"><UL>';
  if (page=="home") {
   hometext = '<LI ID="hometd" style="padding:7px;">Home</LI>';
  }
  else {
   hometext = '<LI ID="hometd" onclick="document.location=\'' + baseurl + 'index.shtml\';"><A HREF="' + baseurl + 'index.shtml">Home</A></LI>';
  }
  if (page=="calendar") {
   calendartext = '<LI ID="calendartd" style="padding:7px;">Calendar</LI>';
  }
  else {
   calendartext = '<LI ID="calendartd" onclick="document.location=\'' + baseurl + 'calendar.shtml\';"><A HREF="' + baseurl + 'calendar.shtml">Calendar</A></LI>';
  }
  if (page=="announce") {
   announcetext = '<LI ID="announcetd" style="padding:7px;">Weekly Announcements</LI>';
  }
  else {
   announcetext = '<LI ID="announcetd" onclick="document.location=\'' + baseurl + 'announce.shtml\';"><A HREF="' + baseurl + 'announce.shtml">Weekly Announcements</A></LI>';
  }
  if (page=="shiur") {
   shiurtext = '<LI ID="shiurtd" style="padding:7px;">Shiurim</LI>';
  }
  else {
   shiurtext = '<LI ID="shiurtd" onclick="document.location=\'' + baseurl + 'shiur.html\';"><A HREF="' + baseurl + 'shiur.html">Shiurim</A></LI>';
  }
  if (page=="rest") {
   resttext = '<LI ID="resttd" style="padding:7px;">Kosher Restaurants</LI>';
  }
  else {
   resttext = '<LI ID="resttd" onclick="document.location=\'' + baseurl + 'rest.html\';"><A HREF="' + baseurl + 'rest.html">Kosher Restaurants</A></LI>';
  }
  if (page=="youth") {
   youthtext = '<LI ID="youthtd" style="padding:7px;">Youth Programs</LI>';
  }
  else {
   youthtext = '<LI ID="youthtd" onclick="document.location=\'' + baseurl + 'youth.html\';"><A HREF="' + baseurl + 'youth.html">Youth Programs</A></LI>';
  }
  if (page=="link") {
   linktext = '<LI ID="linktd" style="padding:7px;">Links</LI>';
  }
  else {
   linktext = '<LI ID="linktd" onclick="document.location=\'' + baseurl + 'links.html\';"><A HREF="' + baseurl + 'links.html">Links</A></LI>';
  }
  if (page=="contact") {
   contacttext = '<LI ID="contacttd" style="padding:7px;">Contact Us</LI>';
  }
  else {
   contacttext = '<LI ID="contacttd" onclick="document.location=\'' + baseurl + 'contact.html\';"><A HREF="' + baseurl + 'contact.html">Contact Us</A></LI>';
  }
  if (page=="discuss") {
   discusstext = '<LI ID="discusstd" style="padding:7px;">Discussion Board</LI>';
  }
  else {
   discusstext = '<LI ID="discusstd" onclick="document.location=\'http://www.geniusiq.net/cgi-bin/mb/home.pl?mbid=bioz\';"><A HREF="http://www.geniusiq.net/cgi-bin/mb/home.pl?mbid=bioz">Discussion Board</A></LI>';
  }
  var menutextsuffix = '</UL></DIV></DIV><IFRAME SRC="' + baseurl + 'webfiles/times.html" FRAMEBORDER=0 WIDTH=100% HEIGHT=800 SCROLLING=NO></IFRAME>';
 }
 else {
  var menutextprefix = '<DIV CLASS="contentMenu"><DIV CLASS="controls"><TABLE BORDER=0 WIDTH=100%>';
  if (page=="home") {
   hometext = '<TR><TD ALIGN=CENTER ID="hometd" style="background-position:0 -15;color:#000000;cursor:default;text-decoration:none;">Home</TD></TR>';
  }
  else {
   hometext = '<TR><TD ALIGN=CENTER ID="hometd" onclick="document.location=\'' + baseurl + 'index.shtml\';"><A HREF="' + baseurl + 'index.shtml">Home</A></TD></TR>';
  }
  if (page=="calendar") {
   calendartext = '<TR><TD ALIGN=CENTER ID="calendartd" style="background-position:0 -15;color:#000000;cursor:default;text-decoration:none;">Calendar</TD></TR>';
  }
  else {
   calendartext = '<TR><TD ALIGN=CENTER ID="calendartd" onclick="document.location=\'' + baseurl + 'calendar.shtml\';"><A HREF="' + baseurl + 'calendar.shtml">Calendar</A></TD></TR>';
  }
  if (page=="announce") {
   announcetext = '<TR><TD ALIGN=CENTER ID="announcetd" style="background-position:0 -15;color:#000000;cursor:default;text-decoration:none;">Weekly Announcements</TD></TR>';
  }
  else {
   announcetext = '<TR><TD ALIGN=CENTER ID="announcetd" onclick="document.location=\'' + baseurl + 'announce.shtml\';"><A HREF="' + baseurl + 'announce.shtml">Weekly Announcements</A></TD></TR>';
  }
  if (page=="shiur") {
   shiurtext = '<TR><TD ALIGN=CENTER ID="shiurtd" style="background-position:0 -15;color:#000000;cursor:default;text-decoration:none;">Shiurim</TD></TR>';
  }
  else {
   shiurtext = '<TR><TD ALIGN=CENTER ID="shiurtd" onclick="document.location=\'' + baseurl + 'shiur.html\';"><A HREF="' + baseurl + 'shiur.html">Shiurim</A></TD></TR>';
  }
  if (page=="rest") {
   resttext = '<TR><TD ALIGN=CENTER ID="resttd" style="background-position:0 -15;color:#000000;cursor:default;text-decoration:none;">Kosher Restaurants</TD></TR>';
  }
  else {
   resttext = '<TR><TD ALIGN=CENTER ID="resttd" onclick="document.location=\'' + baseurl + 'rest.html\';"><A HREF="' + baseurl + 'rest.html">Kosher Restaurants</A></TD></TR>';
  }
  if (page=="youth") {
   youthtext = '<TR><TD ALIGN=CENTER ID="youthtd" style="background-position:0 -15;color:#000000;cursor:default;text-decoration:none;">Youth Programs</TD></TR>';
  }
  else {
   youthtext = '<TR><TD ALIGN=CENTER ID="youthtd" onclick="document.location=\'' + baseurl + 'youth.html\';"><A HREF="' + baseurl + 'youth.html">Youth Programs</A></TD></TR>';
  }
  if (page=="link") {
   linktext = '<TR><TD ALIGN=CENTER ID="linktd" style="background-position:0 -15;color:#000000;cursor:default;text-decoration:none;">Links</TD></TR>';
  }
  else {
   linktext = '<TR><TD ALIGN=CENTER ID="linktd" onclick="document.location=\'' + baseurl + 'links.html\';"><A HREF="' + baseurl + 'links.html">Links</A></TD></TR>';
  }
  if (page=="contact") {
   contacttext = '<TR><TD ALIGN=CENTER ID="contacttd" style="background-position:0 -15;color:#000000;cursor:default;text-decoration:none;">Contact Us</TD></TR>';
  }
  else {
   contacttext = '<TR><TD ALIGN=CENTER ID="contacttd" onclick="document.location=\'' + baseurl + 'contact.html\';"><A HREF="' + baseurl + 'contact.html">Contact Us</A></TD></TR>';
  }
  if (page=="discuss") {
   discusstext = '<TR><TD ALIGN=CENTER ID="discusstd" style="background-position:0 -15;color:#000000;cursor:default;text-decoration:none;">Discussion Board</TD></TR>';
  }
  else {
   discusstext = '<TR><TD ALIGN=CENTER ID="discusstd" onclick="document.location=\'http://www.geniusiq.net/cgi-bin/mb/home.pl?mbid=bioz\';"><A HREF="http://www.geniusiq.net/cgi-bin/mb/home.pl?mbid=bioz">Discussion Board</A></TD></TR>';
  }
  var menutextsuffix = '</TABLE></DIV></DIV><IFRAME SRC="' + baseurl + 'webfiles/times.html" FRAMEBORDER=0 WIDTH=100% HEIGHT=800 SCROLLING=NO></IFRAME>';
 }
 menutext = menutextprefix + hometext + calendartext + announcetext + shiurtext + resttext + youthtext + linktext + contacttext + discusstext + menutextsuffix;
 document.getElementById('headertemplate').innerHTML = headertext;
 document.getElementById('contentmenutemplate').innerHTML = menutext;
}
