// JavaScript Document
/*   Weather Message   */

// This script will display a website bulletin in a red box at the top of the following pages:
// The Home page, the News & Events page, and the Weather Information page.

// To display the Weather Bulletin:
//     1 - Set the "expireDate" variable to the appropriate date. 
//     2 - Set the "bullMsg" variable to the appropriate message.

var expireDate = new Date("3/3/2008");

var bullMsg="The college is closed due to inclement weather.";
// It's best to keep the message short, so it only takes up 1 line, or insert a <br> to force a line break at a particular point

// No changes should be made to the code below:
var dayName = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
var monName = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
var today = new Date();
expireDate.setHours(23,59,59,999)
if (today<=expireDate) {
  <!-- var bullDate=dayName[today.getDay()]+", "+monName[today.getMonth()]+" "+today.getDate()+":"; -->
  var bullDate="Monday, March 2nd:";
  <!-- var bullSmall="<a href='weather.htm#MyClasses'>Does this affect your class? Click to find out...</a>"; 
  // var bullSmall="<a href='weather.htm'>Click here for more weather information...</a>";

  // Note: from now on display message info in bullSmall as below

  var bullSmall="All morning, afternoon and evening classes are cancelled. <br><i><a href='weather.htm'>Click here for more weather information...</a></i>";

  <!-- var bullSmall="All classes are being held as normally scheduled"; -->
  document.write('<div class="bulletinBox">');
  document.write('<span class="bulletinDate">'+bullDate+'</span><br />');
  document.write('<span class="bulletinMsg">'+bullMsg+'</span><br />');
  document.write('<span class="bulletinSmall">'+bullSmall+'</span>');
  document.write('</div>');
  document.write('<br />');

}
