

function autoExpire() {
  var goLiveMonth = "11"  
  var goLiveDay = "11"      
  var goLiveYear = "2009"

  var expireMonth = "11"  
  var expireDay = "26"     
  var expireYear = "2009"

  /* Content goes here. */
  var myContent = "<table width='99%' bgcolor='#FFCC66' cellpadding='2'><tr><td class='smallheader'>Libraries will be closed for Thanksgiving on Wednesday, November 25th at 5:00 pm and on Thursday the 26th.  Library resources will be available online as usual.</td></tr></table>"

  /* Don't edit below this line.*/

  var goLiveDate = goLiveYear + goLiveMonth + goLiveDay;  
  var expireDate = expireYear + expireMonth + expireDay; 

  var nowDate = new Date();
  var day = nowDate.getUTCDate();
  var month = nowDate.getUTCMonth();
  var correctedMonth = month + 1;  

  if (correctedMonth < 10) {  
    correctedMonth = "0" + correctedMonth;
  }
   
  if (day < 10) { 
    day = "0" + day;
  }

  var year = nowDate.getYear();  
  if (year < 1900) {
    year = year + 1900;  
  }

  var GMTdate = year + "" + correctedMonth + "" + day;  

  if ((GMTdate <= expireDate) && (GMTdate >= goLiveDate)) {
    document.write(myContent)
  }
}

