function StyleSheet()
{
   if(navigator.appName == "Netscape")
   {
      print("<link rel='stylesheet' href='http://www.lib.byu.edu/hbll.css' type='text/css'>");
   }
   else
   {
      print("<link rel='stylesheet' href='http://www.lib.byu.edu/hbll.css' type='text/css'>");
   }
}


function print(text)
{
   document.write(text);
}

function leftNav()
{
   var currentPage = window.location + ""; // Must concatenat nothing on so it will treat it as a string
   
   var files = new Array("/index.html", "account.html", "services.html", "feedback.html", "ask.html", "reserve.html", "depts.html", "reservations.html", "hours.html", "maps.html", "howto.html", "https://illiad.lib.byu.edu/illiad/ill.html", "other.html", "siteindex.html", "exhibits.html", "instruction/index.html");
   var count = 15;
   var openTags = new Array(count);
   var closeTags = new Array(count);
   
   for(i = 0; i < count+1; i++)
   {
      if(currentPage.indexOf(files[i]) != -1)
      {
         openTags[i] = "<b>";
         closeTags[i] = "</b>";
      }
      else
      {
         openTags[i] = "";
         closeTags[i] = "";      
      }
   }
      

   print("<table width='160' border='0' cellpadding='0' cellspacing='0'><tr>");
   print("<td width='6'><img src='http://www.lib.byu.edu/images/spacer.gif' width='6' height='8'></td>");
   print("<td width='98%' valign='top'><span class='navtitle'><u><br>LIBRARY MENU&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</u></span></td>");
   print("</tr><tr> ");
   print("<td>&nbsp;</td>");
   print("<td><a href='http://www.lib.byu.edu/index.html' class='navlink'>" + openTags[0] + " Catalog/Databases" + closeTags[0] + " </a> <br>");
   print("<a href='http://www.lib.byu.edu/account.html' class='navlink'>" + openTags[1] + "My Account" + closeTags[1] +"</a> <br>");
   print("<a href='http://www.lib.byu.edu/services.html' class=navlink>" + openTags[2] + "Services &amp; Information" + closeTags[2] +"</a><br>");
   print("<a href='http://www.lib.byu.edu/feedback.html' class='navlink'>" + openTags[3] + "Feedback" + closeTags[3] +"</a></td>");
   print("</tr><tr> ");
   print("<td>&nbsp;</td>");
   print("<td class='navtitle'><br> <u>QUICK LINKS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</u></td>");
   print("</tr><tr> ");
   print("<td>&nbsp;</td>");
   print("<td><a href='http://www.lib.byu.edu/ask.html' class='navlink'>" + openTags[4] + " Ask a Librarian" + closeTags[4] +"</a> <br>"); 
   print("<a href='http://www.lib.byu.edu/reserve.html' class='navlink'>" + openTags[5] + "Course Reserve" + closeTags[5] +"</a> <br>");
   print("<a href='http://www.lib.byu.edu/depts.html' class='navlink'>" + openTags[6] + "Depts. &amp; Personnel" + closeTags[6] +"</a> <br> ");
   print("<a href='http://www.lib.byu.edu/exhibits.html' class='navlink'>" + openTags[14] + "Events & Exhibits" + closeTags[14] +"</a><br>");
   print("<a href='http://www.lib.byu.edu/hours.html' class='navlink'>" + openTags[8] + "Hours" + closeTags[8] +"</a> | <a href='http://www.lib.byu.edu/maps.html' class='navlink'>" + openTags[9] + "Floor Maps" + closeTags[9] +"</a> <br>");
   print("<a href='http://www.lib.byu.edu/howto.html' class='navlink'>" + openTags[10] + "How to Find" + closeTags[10] +"</a> <br>");
   print("<a href='https://illiad.lib.byu.edu/illiad/ill.html' class=navlink>" + openTags[11] + "Interlibrary Loan" + closeTags[11] +"</a> <br>");
   print("<a href='http://www.lib.byu.edu/instruction/index.html' class=navlink>" + openTags[15] + "Library Instruction" + closeTags[15] +"</a> <br>");
   print("<a href='http://www.lib.byu.edu/other.html' class='navlink'>" + openTags[12] + "Other Libraries" + closeTags[12] +"</a> <br>");
   print("<a href='http://www.lib.byu.edu/reservations.html' class='navlink'>" + openTags[7] + "Reservations" + closeTags[7] +"</a><br> ");
   print("<a href='http://www.lib.byu.edu/siteindex.html' class='navlink'>" + openTags[13] + "Site Index" + closeTags[13] +"</a>");
   print("</td></tr></table>");
}


function openWin(url, type)
{
   if(type == "big")
     newWin = window.open(url,'big','resizable=yes,scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=yes,width=800,height=550');
   else if(type == "small")
     newWin = window.open(url,'small','resizable=yes,scrollbars=yes,menubar=yes,width=400,height=225,alwaysRaised=yes');
   else
     newWin = window.open(url,'big','resizable=yes,scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=yes,width=800,height=550');

   newWin.opener = self;
   newWin.focus();
}


function header()
{
   var currentPage = window.location + ""; // Must concatenat nothing on so it will treat it as a string
   var files = new Array("students.html", "fac_staff.html", "patrons.html");
   var openTags = new Array(3);
   var closeTags = new Array(3);
      
   for(i = 0; i < 3; i++)
   {
      if(currentPage.indexOf(files[i]) != -1)
      {
         openTags[i] = "<b>";
         closeTags[i] = "</b>";
      }
      else
      {
         openTags[i] = "";
         closeTags[i] = "";      
      }
   }
   
   print("<table width='100%' cellpadding='0' cellspacing='0' border='0'>");
   print("<tr valign='top'>");
   print("  <td colspan='2' rowspan='2' bgcolor='#001E4C'><a href='http://www.byu.edu'><img src='http://www.lib.byu.edu/images/byu.gif' alt='BYU Wordmark' width='64' height='26' border='0' align='absmiddle'></a>");
   print("    <a href='http://www.byu.edu' class='byu'>Brigham Young University</a> </td>");
   print("  <td width='24%' rowspan='2' align='right' bgcolor='#001E4C'><img src='http://www.lib.byu.edu/images/blue_curve.gif' width='21' height='26'></td>");
   print("  <td width='39%' height='22' bgcolor='#2F567C' align='right'><a href='http://ry.byu.edu/' class='white'>Route Y</a> "); 
	  print("<span class='white'>|</span> <a href='http://courses.byu.edu/' class='white'></a><a href='https://blackboard.byu.edu/webapps/portal/frameset.jsp' class='white'>Blackboard</a>&nbsp; </td>");
   print("</tr><tr>");
   print("  <td bgcolor='#001E4C'><img src='http://www.lib.byu.edu/images/blue_bar.gif' width='1' height='4'></td>");
   print("</tr><tr valign='top'>");
   print("  <td colspan='4' height='2'><img src='http://www.lib.byu.edu/images/bar_1.gif' width='100%' height='2'></td>");
   print("</tr><tr valign='top'>");
   print("  <td colspan='2' bgcolor='#C5AF7D' height='26'><a href='http://www.lib.byu.edu'><img src='http://www.lib.byu.edu/images/hbll_small.gif' width='315' height='26' border='0' alt='Harold B. Lee Library'></a></td>");
   print("  <td colspan='2' align='right' valign='bottom' bgcolor='#C5AF7D'><nobr><img src='http://www.lib.byu.edu/images/dk_square.gif' width='5' height='5' align='absmiddle'>");
   print("    <a href='http://www.lib.byu.edu/students.html' class='profile'>" + openTags[0] + "Students" + closeTags[0] +"</a>&nbsp; <img src='http://www.lib.byu.edu/images/dk_square.gif' width='5' height='5' align='absmiddle'>");
   print("    <a href='http://www.lib.byu.edu/fac_staff.html' class='profile'>" + openTags[1] + "Faculty/Staff" + closeTags[1] +"</a> &nbsp;<img src='http://www.lib.byu.edu/images/dk_square.gif' width='5' height='5' align='absmiddle'>");
   print("    <a href='http://www.lib.byu.edu/patrons.html' class='profile'>" + openTags[2] + "Other Patrons" + closeTags[2] +"</a> &nbsp;</nobr></td>");
   print("</tr><tr valign='top'>");
   print("  <td colspan='4'><img src='http://www.lib.byu.edu/images/bar_2.gif' width='100%' height='2'></td></tr>");
   print("</table>");
}

function headerdept()
{
   var currentPage = window.location + ""; // Must concatenat nothing on so it will treat it as a string
   var files = new Array("http://www.lib.byu.edu/students.html", "http://www.lib.byu.edu/fac_staff.html", "http://www.lib.byu.edu/patrons.html");
   var openTags = new Array(3);
   var closeTags = new Array(3);
      
   for(i = 0; i < 3; i++)
   {
      if(currentPage.indexOf(files[i]) != -1)
      {
         openTags[i] = "<b>";
         closeTags[i] = "</b>";
      }
      else
      {
         openTags[i] = "";
         closeTags[i] = "";      
      }
   }
   
   print("<table width='100%' cellpadding='0' cellspacing='0' border='0'>");
   print("<tr valign='top'>");
   print("  <td colspan='2' rowspan='2' bgcolor='#001E4C'><a href='http://www.byu.edu'><img src='http://www.lib.byu.edu/images/byu.gif' alt='BYU Wordmark' width='64' height='26' border='0' align='absmiddle'></a>");
   print("    <font color='A98C4B' size='-1' face='Arial, Helvetica, sans-serif'>Brigham Young University</font></td>");
   print("  <td width='24%' rowspan='2' align='right' bgcolor='#001E4C'><img src='http://www.lib.byu.edu/images/blue_curve.gif' width='21' height='26'></td>");
   print("  <td width='39%' height='22' align='right' bgcolor='#2F567C'><a href='http://ry.byu.edu/'><font size='-1' face='Arial, Helvetica, sans-serif' color='#FFFFFF'><strong>Route Y</strong></font></a><font size='-1' face='Arial, Helvetica, sans-serif' color='#FFFFFF'> | <a href='https://blackboard.byu.edu/webapps/portal/frameset.jsp'><font size='-1' face='Arial, Helvetica, sans-serif' color='#FFFFFF'><strong>Blackboard</strong></font></a></font><strong>&nbsp;&nbsp;       </strong></td>");
   print("</tr><tr>");
   print("  <td bgcolor='#001E4C'><img src='http://www.lib.byu.edu/images/blue_bar.gif' width='1' height='4'></td>");
   print("</tr><tr valign='top'>");
   print("  <td colspan='4' height='2'><img src='http://www.lib.byu.edu/images/bar_1.gif' width='100%' height='2'></td>");
   print("</tr><tr valign='top'>");
   print("  <td colspan='2' bgcolor='#C5AF7D' height='26'><a href='http://www.lib.byu.edu'><img src='http://www.lib.byu.edu/images/hbll_small.gif' width='315' height='26' border='0' alt='Harold B. Lee Library'></a></td>");
   print("  <td colspan='2' align='right' valign='bottom' bgcolor='#C5AF7D'><nobr><img src='http://www.lib.byu.edu/images/dk_square.gif' width='5' height='5' align='absmiddle'>");
   print("    <a href='http://www.lib.byu.edu/students.html' ><font color='405679' size='-1' face='Arial, Helvetica, sans-serif'>" + openTags[0] + "Students" + closeTags[0] +"</font></a>&nbsp; <img src='http://www.lib.byu.edu/images/dk_square.gif' width='5' height='5' align='absmiddle'>");
   print("    <a href='http://www.lib.byu.edu/fac_staff.html' > <font color='405679' size='-1' face='Arial, Helvetica, sans-serif'>" + openTags[1] + "Faculty/Staff" + closeTags[1] +"</font></a> &nbsp;<img src='http://www.lib.byu.edu/images/dk_square.gif' width='5' height='5' align='absmiddle'>");
   print("    <a href='http://www.lib.byu.edu/patrons.html' ><font color='405679' size='-1' face='Arial, Helvetica, sans-serif'>" + openTags[2] + "Other Patrons" + closeTags[2] +"</font></a> &nbsp;</nobr></td>");
   print("</tr><tr valign='top'>");
   print("  <td colspan='4'><img src='http://www.lib.byu.edu/images/bar_2.gif' width='100%' height='2'></td></tr>");
   print("</table>");
}

function footer()
{
print("<div align='center'>");
          print("<a href='http://www.lib.byu.edu' class='text'>Home</a> | <a href='http://www.lib.byu.edu/account.html' class='text'>My "); 
          print("Account</a> | <a href='http://www.lib.byu.edu/services.html' class='text'>Services ");
          print("&amp; Information</a> | <a href='http://www.lib.byu.edu/feedback.html' class='text'>Feedback</a> | <a href='http://www.lib.byu.edu/siteindex.html' class='text'>Site Index</a><br>");
         print(" <span class='footer'> Harold B. Lee Library | P.O. Box 26800 | Provo, UT | 84602-6800 | 801-422-2927</span><br>");
        print("<a href='http://www.lib.byu.edu/copyright.html' class='footer'>&copy; 2003 Brigham Young University</a><br>");

var lastmod = document.lastModified;
   if(navigator.appName == "Netscape")
   {
      var ns = lastmod.indexOf(':') - 2;
      print("<span class='footer'>Last Modified: " + lastmod.substr(0, ns) + "</span>");
   }
   else
   {
      print("<span class='footer'>Last Modified: " + lastmod.substr(0,10) + "</span></div>");
   }
}
