//---------------------------------------------------------------------------------------------------------------------------------------------------------
// Headlines for Home Page 
//   
//   Add, delete, edit the News Box items BETWEEN the START and END marks ONLY.
//   
//   Just add [newsItem[x]  = "valid HTML Statement"] statements to add news items.
//   
//   Use standard HTML between the double-quotes [" "], except subtitute
//     single-quotes [' '] for double-quotes.
//
//   HTML <p><b> and </b></p> tags will be automatically added to each HdLnItem array-item.
//        
//    if (_DateAsStr() > "2009.05.15" && _DateAsStr() < "2009.05.20") {
//      HdLnItem[x] = "Automated Message: Between the 15th and 20th!" 
//      }
//
//    <a class='AlertLink0' href='pages/Registration.html'><br>Click Here</a> 
//
//
//---------------------------------------------------------------------------------------------------------------------------------------------------------
//
    var HdLnItem  = new Array()
    var strEvents = new String()
    var numItems  = 0
    var i         = 0

if (_testing_) {
  HdLnItem[0] = "<b> Testing Mode</b>"
  }
  else {
//
//  - START - Add/Edit Headlines
//---------------------------------------------------------------------------------------------------------------------------------------------------------
//
//     if (_DateAsStr() > "2010.09.01" && _DateAsStr() < "2010.10.31") {
//      HdLnItem[1]  = "Cascade Kendo Kai Shinai Workshop:<br>Saturday October 30th. <br>See our <a class='AlertLink0' href='pages/Calendar.html'>Calendar Page</a> for details."
//      }
//=    else if (_DateAsStr() > "2010.05.29" && _DateAsStr() < "2010.06.04") {
//=      HdLnItem[1]  = "2010 Rose City Taikai: THIS SATURDAY. <br>See our <a class='AlertLink0' href='pages/Calendar.html'>Calendar Page</a> for details. Non-participant Kenshi are encouraged to attend."
//=      }
//=    else if (_DateAsStr() == "2010.06.04") {
//=      HdLnItem[1]  = "2010 Rose City Taikai: TOMORROW!<br>See our <a class='AlertLink0' href='pages/Calendar.html'>Calendar Page</a> for details. Non-participant Kenshi are encouraged to attend."
//=      }
//=    else if (_DateAsStr() == "2010.06.05") {
//=      HdLnItem[1]  = "2010 Rose City Taikai: TODAY!<br>See our <a class='AlertLink0' href='pages/Calendar.html'>Calendar Page</a> for details. Non-participant Kenshi are encouraged to attend."
//=      }
//=    else if (_DateAsStr() > "2010.06.05" && _DateAsStr() < "2010.06.14") {
//=      HdLnItem[1]  = "Congratulations and well done to all our CKK kenshi who particitated in the 2010 Rose City Taikai!"
//=      }
//---------------------------------------------------------------------------------------------------------------------------------------------------------
//    if (_DateAsStr() > "2010.12.01" && _DateAsStr() < "2011.02.01") {
//      HdLnItem[5]  = "<a class='AlertLink0' href='pages/Calendar.html'>It's CKK, PNKF and AUSKF Membership Time.</a>Renew your membership or join THIS MONTH! See our <a class='AlertLink0' href='pages/Calendar.html'>Calendar Page</a> for details."
//      }
//---------------------------------------------------------------------------------------------------------------------------------------------------------
    if (_DateAsStr() > "2011.09.01" && _DateAsStr() < "2011.09.29") {
      HdLnItem[3]  = "The Summer Quarter Ends September 30th"
      }
    else if (_DateAsStr() == "2011.09.29") {
      HdLnItem[3]  = "The Summer Quarter Ends Tomorrow"
      }
    else if (_DateAsStr() == "2011.09.30") {
      HdLnItem[3]  = "The Summer Quarter Ends Today"
      }
//
    if (_DateAsStr() > "2011.09.01" && _DateAsStr() < "2011.10.04") {
      HdLnItem[4]  = "The Fall Quarter Begins October 5th<br>Registration For The Fall Quarter Has Begun"
      }
    else if (_DateAsStr() == "2011.10.04") {
      HdLnItem[4]  = "The Fall Quarter Begins Tomorrow<br>Registration Continues. . ."
      }
    else if (_DateAsStr() > "2011.10.04" && _DateAsStr() < "2011.10.19") {
      HdLnItem[4]  = "The Fall Quarter Has Begun<br>Registration Closes October 21st"
      }
    else if (_DateAsStr() == "2011.10.20") {
      HdLnItem[4]  = "The Fall Quarter Has Begun<br>Registration Closes TOMORROW!"
      }
    else if (_DateAsStr() == "2011.10.21") {
      HdLnItem[4]  = "The Fall Quarter Has Begun<br>Registration Closes TODAY!"
      }
    else if (_DateAsStr() > "2011.10.21" && _DateAsStr() < "2011.11.00") {
      HdLnItem[4]  = "Summer Quarter Registration is Closed<br>Walkins Are Always Welcome"
      }
//
    if (_DateAsStr() > "2011.09.00" && _DateAsStr() < "2011.10.21") {
      HdLnItem[5]   = "Register on-line, by-phone or in-person before your next class."
      HdLnItem[5]  += "<a class='AlertLink0' href='pages/Registration.html'> Click Here</a> for details on our Registration Page."
      }
//---------------------------------------------------------------------------------------------------------------------------------------------------------
    if (_DateAsStr() > "2011.09.01" && _DateAsStr() < "2011.10.02") {
      HdLnItem[6]  = "12th Annual Tacoma Invitational Taikai: Saturday October 22nd. Register by October 7th."
      }
    else if (_DateAsStr() > "2011.10.01" && _DateAsStr() < "2011.10.06") {
      HdLnItem[6]  = "12th Annual Tacoma Invitational Taikai: Saturday October 22nd. CKK Registration deadline is this FRIDAY."
      }
    else if (_DateAsStr() == "2011.10.06") {
      HdLnItem[6]  = "12th Annual Tacoma Invitational Taikai: Saturday October 22nd. CKK Registration deadline is TOMORROW."
      }
    else if (_DateAsStr() == "2011.10.07") {
      HdLnItem[6]  = "12th Annual Tacoma Invitational Taikai: Saturday October 22nd. CKK Registration deadline is TODAY."
      }
    else if (_DateAsStr() > "2011.10.07" && _DateAsStr() < "2011.10.17") {
      HdLnItem[6]  = "12th Annual Tacoma Invitational Taikai: Saturday October 22nd. Non-participant kenshi are encouraged to attend."
      }
    else if (_DateAsStr() > "2011.10.16" && _DateAsStr() < "2011.10.21") {
      HdLnItem[6]  = "12th Annual Tacoma Invitational Taikai: This Saturday. Non-participant kenshi are encouraged to attend."
      }
    else if (_DateAsStr() == "2011.10.21") {
      HdLnItem[6]  = "12th Annual Tacoma Invitational Taikai: TOMORROW. Non-participant kenshi are encouraged to attend."
      }
    else if (_DateAsStr() == "2011.10.22") {
      HdLnItem[6]  = "12th Annual Tacoma Invitational Taikai TODAY:</b> Non-participant kenshi are encouraged to attend."
      }
//        
    if (_DateAsStr() > "2011.09.01" && _DateAsStr() < "2011.10.23") {
      HdLnItem[6]  += " Check the 'Coming Events' news box on our <a class='AlertLink0' href='pages/Calendar.html'>Calendar Page</a> for detailed information and a map."
      }
//---------------------------------------------------------------------------------------------------------------------------------------------------------
    if (_DateAsStr() > "2011.11.20" && _DateAsStr() < "2011.12.22") {
      HdLnItem[7]  = "CORRECTION: We will have keiko on Wednesday the 23rd."
      }
    else if (_DateAsStr() == "2011.10.01") {
      HdLnItem[7]  = "CORRECTION: We will have keiko today."
      }
//---------------------------------------------------------------------------------------------------------------------------------------------------------
    if (_DateAsStr() > "2011.10.01" && _DateAsStr() < "2012.01.01") {
      HdLnItem[8]  = "Annual Memberships for Cascade Kendo Kai Dojo, PNFK & AUSKF Now Open"
      }
//---------------------------------------------------------------------------------------------------------------------------------------------------------
//  - END - Add/Edit Headlines
  }
//  - DO NOT EDIT BELOW THIS LINE
//   
//----------------------------------------------------------------------------------------------------------------------
//  Build the Headlines Items
      
          var i        = 0
          strHdlines   = new String()
          numHdlines   = HdLnItem.length
          while (i < numHdlines)
            {
            if (HdLnItem[i] != undefined)
              {
              strHdlines += "<p><b>" + HdLnItem[i] + "</b></p>"
              }
            i++
            } 
        //Returns the completed HTML as one long text string
    
// Headlines for Home Page
//---------------------------------------------------------------------------------------------------------------------------------------------------------

