// Copy in hoursdat.js - sets up all variables and can be used by other scripts

<!-- <script language="javascript" type="text/javascript" src="/about_libraries/hoursdat.js"></script> -->

if (topmessage !="") {document.write('<font style=\"color:#ff0000;font-size:smaller;font-weight:bold\">' + topmessage + '</font><p>')};

document.write('<font style=\"color:#0000ff;font-size:smaller;font-weight:bold\">Hours for ' + dayofweekname[dayofweeknum] + ', ' + monthname[monthnum] + ' ' + dayofmonthnum  + ' / <a href=\"http://www.umsl.edu/library/about_libraries/hours.html\" target=\"_self\" style=\"color:#0000ff;text-decoration:underline\">More Info</a></font>');
document.write('<p>');

document.write('<table cellpadding=\"0\" style=\"font-size:smaller\">');
document.write('<tr><td><b>' + tjlib     + ': </b></td><td align=\"left\"><b>' +     tjhours[dayofweeknum][0] + ' - ' +     tjhours[dayofweeknum][1] + '</b></td></tr>');
document.write('<tr><td><b>' + barneslib + ': </b></td><td align=\"left\"><b>' + barneshours[dayofweeknum][0] + ' - ' + barneshours[dayofweeknum][1] + '</b></td></tr>');
document.write('<tr><td><b>' + WHMC + ': </b></td><td align=\"left\"><b>' + WHMChours[dayofweeknum][0] + ' - ' + WHMChours[dayofweeknum][1] + '</b></td></tr>');
document.write('<tr><td><b>' + mercrr + ': </b></td><td align=\"left\"><b>' + mercrrhours[dayofweeknum][0] + ' - ' + mercrrhours[dayofweeknum][1] + '</b></td></tr>');

// Below is the conditional statement for writing Merc RR after lunch hours
// This line will only be written when the dayofweeknum is 2, 3, 4 (Tu, Wed, Thurs)

if (dayofweeknum > 1 && dayofweeknum < 5) 
{
document.write('<tr><td><b>' + ' ' + ' </b></td><td align=\"left\"><b>' + mercrrhourslunch[dayofweeknum][0] + ' - ' + mercrrhourslunch[dayofweeknum][1] + '</b></td></tr>');
}

document.write('<tr><td colspan=\"2\" style=\"color:#ff0000;font-weight:bold\">Computer labs close 30 minutes before libraries.</td></tr>');
document.write('</table>');
