//----------------------------------------------------------------------------------------------------------------------
//  Special Messages for each day of the week [_DateAsStr() returns the date as yyyy.mm.dd]
//
      
  var _DateTime = new Date()
  var _SpecMsg  = new Array()
  var msg       = new String()
  var _NumMsg   = 0
  var i         = 0
      
  if (!_testing_) {
//
// -- START - Example of weekly rotating messages - START --
//        
//        _SpecMsg[0] = ">>   "
//        
//        if (_DateTime.getDay() == 0) {
//          _SpecMsg[0] += "Visitors: Please check our calendar for any changes to our regular schedule."
//          }
//        else if (_DateTime.getDay() == 1) {
//          _SpecMsg[0] += "Visitors: Please check our calendar for any changes to our regular schedule."
//          }
//        else if (_DateTime.getDay() == 2) {
//          _SpecMsg[0] += "TUESDAY: Open keiko at CCMV tomorrow 7pm to 9pm."
//          }
//        else if (_DateTime.getDay() == 3) {
//          _SpecMsg[0] += "WEDNESDAY: Intermediate/Advanced Class 7pm to 9pm at CCMV."
//          }
//        else if (_DateTime.getDay() == 4) {
//          _SpecMsg[0] += "THURSDAY: Beginning Class tomorrow!"
//          }
//        else if (_DateTime.getDay() == 5) {
//          _SpecMsg[0] += "FRIDAY: Beginning Class 7pm to 9pm at CCMV."
//          }
//        else {
//          _SpecMsg[0] += "SATURDAY: Intermediate/Advanced Class 10am to 12pm at NVC Hall."
//          }
//        
//        _SpecMsg[0] += "   <<   "
//        
// -- END - Example of weekly rotating messages - END --
//
// -- START - Example of an automated message by date - START --
        
        if (_DateAsStr() > "2009.11.29" && _DateAsStr() < "2009.12.18") {
          _SpecMsg[0] = "Fall Quarter Ends December 18th" 
          }
        else if (_DateAsStr() == "2009.11.18") {
          _SpecMsg[0] = "Fall Quarter Ends TODAY" 
          }
        else if (_DateAsStr() > "2009.11.18" && _DateAsStr() < "2010.01.03") {
          _SpecMsg[0] = "Winter Quarter Begins January 6th" 
          }
        else if (_DateAsStr() > "2010.01.02" && _DateAsStr() < "2010.01.05") {
          _SpecMsg[0] = "Winter Quarter Begins Wednesday" 
          }
        else if (_DateAsStr() == "2010.01.05") {
          _SpecMsg[0] = "Winter Quarter Begins TOMORROW" 
          }
        else if (_DateAsStr() == "2010.01.06") {
          _SpecMsg[0] = "Winter Quarter Begins TODAY" 
          }
//          
        if (_DateAsStr() > "2009.06.24" && _DateAsStr() < "2009.07.04") {
          _SpecMsg[3] = "No Class Wed: 7/1 & Fri: 7/3." 
          }
        else if (_DateAsStr() > "2009.07.15" && _DateAsStr() < "2009.08.09") {
          _SpecMsg[3] = "PNKF Shinsa August 8th: Morning keiko at NVC as usual" 
          }
        else if (_DateAsStr() > "2009.09.15" && _DateAsStr() < "2009.10.18") {
          _SpecMsg[3] = "Tacoma Taikai October 17th: No practice at NVC" 
          }
        else if (_DateAsStr() > "2009.10.17" && _DateAsStr() < "2009.11.22") {
          _SpecMsg[3] = "PNKF Taikai November 21st: No practice at NVC" 
          }
//          
        if (_DateAsStr() > "2009.10.24" && _DateAsStr() < "2009.11.02") {
          _SpecMsg[4] = "Daylight Savings Ends: November 1st" 
          }
        else if (_DateAsStr() > "2009.11.01" && _DateAsStr() < "2009.11.12") {
          _SpecMsg[4] = "No Practice November 11th: Veteran's Day" 
          }
        else if (_DateAsStr() > "2009.11.11" && _DateAsStr() < "2009.11.29") {
          _SpecMsg[4] = "No Practice November 25th, 27th: Thanksgiving" 
          }
//          
        if (_DateAsStr() > "2010.02.06" && _DateAsStr() < "2010.02.12") {
          _SpecMsg[5] = "Shinai Workshop This Saturday" 
          }
        else if (_DateAsStr() == "2010.02.12") {
          _SpecMsg[5] = "Shinai Workshop Tomorrow" 
          }
        else if (_DateAsStr() == "2010.02.13") {
          _SpecMsg[5] = "Shinai Workshop Today" 
          }
//
        if (_DateAsStr() > "2010.01.19" && _DateAsStr() < "2010.02.21") {
          _SpecMsg[6]  = "PNKF Shinkyu Shinsa for Yon-dan and below: Saturday, February 27th. See our Calendar Page for details."
          }
        else if (_DateAsStr() > "2010.02.20" && _DateAsStr() < "2010.02.26") {
          _SpecMsg[6]  = "PNKF Shinkyu Shinsa for Yon-dan and below: This Saturday. See our Calendar Page for details."
          }
        else if (_DateAsStr() == "2010.02.26") {
          _SpecMsg[6]  = "PNKF Shinkyu Shinsa for Yon-dan and below: Tomorrow. See our Calendar Page for details."
          }
        else if (_DateAsStr() == "2010.02.27") {
          _SpecMsg[6]  = "PNKF Shinkyu Shinsa for Yon-dan and below: Today. See our Calendar Page for details."
          }


// -- END - Example of an automated message by date - END --
//
// -- START - Example of a message that will always show - START --
        
        _SpecMsg[19] = "Check the Dojo's Calendar regularly for all the latest. . ."
        
// -- END - Example of a message that will always show - END --
  }
//
//--------------------------------------------------------------------------------------------------------------------
// -- DO NOT EDIT BELOW THIS LINE -- DO NOT EDIT BELOW THIS LINE -- DO NOT EDIT BELOW THIS LINE --
//
  // -- START - Assemble the full message - START --
    
    _NumMsg = _SpecMsg.length
    
    if (!_testing_) {
      while (i < _NumMsg){
        if (_SpecMsg[i] != undefined){
          msg += _SpecMsg[i]
          msg += "  |  "
          }
        i++
        } 
      }
    else {
      msg = " . . . T E S T I N G   M O D E . . . "
      }
    msg = "                      " + msg + "                      "
    
  // -- END - Assemble the full message - END --
//
//      
//  Special Messages for each day of the week
//----------------------------------------------------------------------------------------------------------------------
      
      
