//---------------------------------------------------------------------------------------------------------------------------------------------------------
// News Box for Calendar Page 
//   
//   Add, delete, edit the News Box items BETWEEN the START and END marks ONLY.
//   
//   Just add [newsItem[x]  = "<li>...your text...</li>"] statements to add news items.
//   
//   Use standard HTML between the double-quotes [" "], except subtitute
//     single-quotes [' '] for HTML double-quotes.
//        
//  BLUE ANCHOR: <a class='PDFLink0'  href='[link_to_file].pdf' target='_blank'>[this text will be blue]  </a>
//
//  RED ANCHOR:  <a class='AlertLink0' href='[link_to_page]' target='_blank'>[this text will be red]</a>
//
//  <b> bold </b>
//  <i> italic </i>
//  <ul> Start unordered nested SUB-list 
//  </ul> End unordered nested SUB-list 
//      
//    if (_DateAsStr() > "2009.05.15" && _DateAsStr() < "2009.05.20") {
//      newsItem[x] = "Automated Message: Between the 15th and 20th!" 
//      }
//
//---------------------------------------------------------------------------------------------------------------------------------------------------------
//
    var newsItem  = new Array()
    var strEvents = new String()
    var numItems  = 0
    var i         = 0

if (_testing_) {
  newsItem[0] = "<li><b> Testing Mode</b></i>"
  }
else {
//
//  - START - Add/Edit News Items
//    
      newsItem[1]   =  "<li><b>Dropping-in?</b> After paying your drop-in fee, please report to Imanishi Sensei with your signed "
      newsItem[1]  +=  "<a class='AlertLink0' href='../pages/Waivers.html'>Waiver and Release</a> prior to the start of keiko.</li>"
      newsItem[10]  =  "<br><li><b>Drop-in and join us:</b> If you practice kendo elsewhere you are welcome to join us for the $10 Parks & Recreation fee.</li><br>"
//    
      if (_DateAsStr() > "2011.10.01" && _DateAsStr() < "2012.01.01") {
        newsItem[2]  = "<br><li><b>Annual Memberships</b> For Cascade Kendo Kai Dojo, PNFK & AUSKF Now Open</li>"
        }
//
      if (_DateAsStr() > "2011.09.01" && _DateAsStr() < "2011.10.00") {
        newsItem[3]  = "<br><li><b>The Fall Quarter Begins October 5th</b></li>"
        }
      else if (_DateAsStr() > "2011.10.00" && _DateAsStr() < "2011.10.04") {
        newsItem[3]  = "<br><li><b>The Fall Quarter Begins October 5th</b> Registration For The Fall Quarter Continues.</li>"
        }
      else if (_DateAsStr() == "2011.10.04") {
        newsItem[3]  = "<br><li><b>The Fall Quarter Begins Tomorrow</b> Registration For The Fall Quarter Continues.</li>"
        }
      else if (_DateAsStr() == "2011.10.05") {
        newsItem[3]  = "<br><li><b>The Fall Quarter Begins Today</b> Registration For The Fall Quarter Ends October 21st.</li>"
        }
      else if (_DateAsStr() > "2011.10.05" && _DateAsStr() < "2011.10.20") {
        newsItem[3]  = "<br><li><b>The Fall Quarter Has Begun</b> Registration For The Fall Quarter Ends October 21st.</li>"
        }
      else if (_DateAsStr() == "2011.10.20") {
        newsItem[3]  = "<br><li><b>The Fall Quarter Has Begun</b> Registration For The Fall Quarter Ends Tomorrow.</li>"
        }
      else if (_DateAsStr() == "2011.10.21") {
        newsItem[3]  = "<br><li><b>The Fall Quarter Has Begun</b> Registration For The Fall Quarter Ends Today.</li>"
        }
        
      if (_DateAsStr() > "2011.09.01" && _DateAsStr() < "2011.10.22") {
        newsItem[4]   = "<ul>"
        newsItem[4]  += "<li>Register on-line, by-phone or in-person before your next class.</li>"
        newsItem[4]  += "<li>Check our Registration Page on for details.</li>"
        newsItem[4]  += "</ul>"
        }
//
      if (_DateAsStr() > "2011.09.01" && _DateAsStr() < "2011.10.02") {
        newsItem[5]  = "<br><li><b>12th Annual Tacoma Invitational Taikai:</b> Saturday October 22nd. Register by October 7th."
        }
      else if (_DateAsStr() > "2011.10.01" && _DateAsStr() < "2011.10.06") {
        newsItem[5]  = "<br><li><b>12th Annual Tacoma Invitational Taikai:</b> Saturday October 22nd. CKK Registration deadline is this FRIDAY."
        }
      else if (_DateAsStr() == "2011.10.05") {
        newsItem[5]  = "<br><li><b>12th Annual Tacoma Invitational Taikai:</b> Saturday October 22nd. CKK Registration deadline is TOMORROW."
        }
      else if (_DateAsStr() == "2011.10.06") {
        newsItem[5]  = "<br><li><b>12th Annual Tacoma Invitational Taikai:</b> Saturday October 22nd. CKK Registration deadline is TODAY."
        }
      else if (_DateAsStr() > "2011.10.06" && _DateAsStr() < "2011.10.16") {
        newsItem[5]  = "<br><li><b>12th Annual Tacoma Invitational Taikai:</b> Saturday October 22nd. Non-participant kenshi are encouraged to attend."
        }
      else if (_DateAsStr() > "2011.10.15" && _DateAsStr() < "2011.10.21") {
        newsItem[5]  = "<br><li><b>12th Annual Tacoma Invitational Taikai This Saturday:</b> Non-participant kenshi are encouraged to attend."
        }
      else if (_DateAsStr() == "2011.10.21") {
        newsItem[5]  = "<br><li><b>12th Annual Tacoma Invitational Taikai TOMORROW:</b> Non-participant kenshi are encouraged to attend."
        }
      else if (_DateAsStr() == "2011.10.22") {
        newsItem[5]  = "<br><li><b>12th Annual Tacoma Invitational Taikai TODAY:</b> Non-participant kenshi are encouraged to attend."
        }
        
      if (_DateAsStr() > "2011.09.01" && _DateAsStr() < "2011.10.23") {
        newsItem[5]  += " <a class='PDFLink0' href='http://CascadeKK101.fileave.com/2011TacomaTaikai.pdf' target='_blank'> Click here</a> for detailed information and a map.</li>"
        }
//
      if (_DateAsStr() > "2011.09.01" && _DateAsStr() < "2011.10.02") {
        newsItem[6]  = "<br><li><b>37th Annual PNKF Taikai:</b> Saturday November 5th. Register by October 7th."
        }
      else if (_DateAsStr() > "2011.10.01" && _DateAsStr() < "2011.10.06") {
        newsItem[6]  = "<br><li><b>37th Annual PNKF Taikai:</b> Saturday November 5th. CKK Registration deadline is this FRIDAY."
        }
      else if (_DateAsStr() == "2011.10.05") {
        newsItem[6]  = "<br><li><b>37th Annual PNKF Taikai:</b> Saturday November 5th. CKK Registration deadline is TOMORROW."
        }
      else if (_DateAsStr() == "2011.10.06") {
        newsItem[6]  = "<br><li><b>37th Annual PNKF Taikai:</b> Saturday November 5th. CKK Registration deadline is TODAY."
        }
      else if (_DateAsStr() > "2011.10.06" && _DateAsStr() < "2011.10.30") {
        newsItem[6]  = "<br><li><b>37th Annual PNKF Taikai:</b> Saturday November 5th. Non-participant kenshi are encouraged to attend."
        }
      else if (_DateAsStr() > "2011.10.29" && _DateAsStr() < "2011.11.04") {
        newsItem[6]  = "<br><li><b>37th Annual PNKF Taikai This Saturday:</b> Non-participant kenshi are encouraged to attend."
        }
      else if (_DateAsStr() == "2011.11.04") {
        newsItem[6]  = "<br><li><b>37th Annual PNKF Taikai TOMORROW:</b> Non-participant kenshi are encouraged to attend."
        }
      else if (_DateAsStr() == "2011.11.05") {
        newsItem[6]  = "<br><li><b>37th Annual PNKF Taikai TODAY:</b> Non-participant kenshi are encouraged to attend."
        }
        
      if (_DateAsStr() > "2011.09.01" && _DateAsStr() < "2011.11.06") {
        newsItem[6]  += " <a class='PDFLink0' href='http://CascadeKK101.fileave.com/2011PNKFTaikai.pdf' target='_blank'> Click here</a> for detailed information and a map.</li>"
        }
//    
//  - END - Add/Edit News Items
}
// 
//  - DO NOT EDIT BELOW THIS LINE
//
//----------------------------------------------------------------------------------------------------------------------
//  Build the News Box and Items
//----------------------------------------------------------------------------------------------------------------------
      
        //Format the unorderd-list inside the News Box
          var i      = 0
          strEvents  = "<div style='margin-left:-18px; margin-right:5px; margin-top:10px; margin-bottom:5px text-align:left'><ul>"
          numItems   = newsItem.length
          while (i < numItems)
            {
            if (newsItem[i] != undefined)
              {
              strEvents += newsItem[i]
              }
            i++
            } 
        //Complete Unorderd-list inside News Box and return the completed HTML as one long text string
          strEvents += "</ul></div>"
     
// News Box
//---------------------------------------------------------------------------------------------------------------------------------------------------------

