// ************************************************************************************
// ** This file has been created with the Rotating Content Tool by Amesbury Web.     **
// ** For more information, visit us on the web:                                     **
// **                                                                                **
// **     Rotating Content Tool   -- http://rotatecontent.com/                       **
// **     Company: Amesbury Web   -- http://amesburyweb.com/                         **
// **     Author:  Randy Hoyt     -- http://randyhoyt.com/                           **
// **                                                                                **
// ************************************************************************************

today = new Date()
month = today.getMonth() + 1
year = today.getFullYear()

selectedDate = new Date("01/01/1900")
selectedContent = ""

varLength = 10
var entryDate = new Array(varLength)
var entryContent = new Array(varLength)

entryDate[0] = "  08/14/2009"
entryContent[0] = " <p>You can start working ahead on the Internet assignments beginning on January 12, and you can complete the <a href=\"http://onlinecourselady.pbworks.com/week2internet\" title=\"\"><strong>Week 2</strong></a>, <a href=\"http://onlinecourselady.pbworks.com/week3internet\" title=\"\"><strong>Week 3</strong></a>, and <a href=\"http://onlinecourselady.pbworks.com/coverpage\" title=\"\"><strong>Week 4</strong></a> Internet assignments at your own pace. </p> <p>Starting with the Week 5 Internet assignment, you will be commenting on other people's Storybooks - which means you need to wait until they have published their work online for you to see. The <strong>Week 5 Internet assignment</strong> will be available on <strong>Tuesday, February 16</strong>. Please check back then. </p>"

entryDate[1] = "    02/16/2010"
entryContent[1] = " The <strong><a href=\"http://onlinecourselady.pbworks.com/week5internet\" title=\"\">Week 5 Internet assignment</a> </strong>is available now."

entryDate[2] = "    02/23/2010"
entryContent[2] = " The <strong><a href=\"http://onlinecourselady.pbworks.com/week6internet\" title=\"\">Week 6 Internet assignment</a> </strong>is available now."

entryDate[3] = "    03/02/2010"
entryContent[3] = " The <strong><a href=\"http://onlinecourselady.pbworks.com/week7internet\" title=\"\">Week 7 Internet assignment</a> </strong>is available now."

entryDate[4] = "    03/09/2010"
entryContent[4] = " <p> The <strong><a href=\"http://onlinecourselady.pbworks.com/week8internet\" title=\"\">Week 8 Internet assignment</a> </strong>is available now.</p>"

entryDate[5] = "    03/23/2010"
entryContent[5] = " The <strong><a href=\"http://onlinecourselady.pbworks.com/week9internet\" title=\"\">Week 9 Internet assignment</a> </strong>is available now."

entryDate[6] = "    03/30/2010"
entryContent[6] = " The <strong><a href=\"http://onlinecourselady.pbworks.com/week10internet\" title=\"\">Week 10 Internet assignment</a> </strong>is available now."

entryDate[7] = "    04/06/2010"
entryContent[7] = " The <strong><a href=\"http://onlinecourselady.pbworks.com/week11internet\" title=\"\">Week 11 Internet assignment</a> </strong>is available now."

entryDate[8] = "    04/13/2010"
entryContent[8] = " The <strong><a href=\"http://onlinecourselady.pbworks.com/week12internet\" title=\"\">Week 12 Internet assignment</a> </strong>is available now."

entryDate[9] = "    04/20/2010"
entryContent[9] = " The&nbsp;<strong><a href=\"http://onlinecourselady.pbworks.com/week13internet\" title=\"\">Week 13 Internet assignment</a> </strong><strong> </strong>is available now, and you can also complete the <strong><a href=\"http://onlinecourselady.pbworks.com/week14internet\" title=\"\">Week 14</a></strong> and <strong><a href=\"http://onlinecourselady.pbworks.com/week15internet\" title=\"\">Week 15</a></strong> Internet assignments ahead of time if you want. "

if (typeof display == "undefined") { var display = "date" }

if (display == "random")
{
  var randomNumber = Math.random()
  randomNumber *= varLength
  randomNumber = parseInt(randomNumber)
  if(isNaN(randomNumber)) randomNumber = 0
  else randomNumber %= varLength
  selectedContent = entryContent[randomNumber]
}
else
{
  for (x=0; x<(entryContent.length); x++)
  {
    tempDate = new Date(entryDate[x])
    tempContent = entryContent[x]
    if ((tempDate <= today) && (tempDate > selectedDate))
    {
      selectedContent = tempContent
      selectDate = tempDate
    }
  }
}

document.write (selectedContent)