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

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

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

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

entryDate[0] = "01/01/" + year
entryContent[0] = "Education is not the filling of a bucket, but the lighting of a fire......W.B. Yeats"

entryDate[1] = " 01/02/" + year
entryContent[1] = "The limits of your language are the limits of your world.......Jurgen Wittgenstein"

entryDate[2] = " 01/03/" + year
entryContent[2] = "Good schools like good societies, celebrate diversity........Deborah Meier"

entryDate[3] = " 01/04/" + year
entryContent[3] = "All of us do not have equal talent, but all of us should have an equal opportunity to develop our talent...John F. Kennedy"

entryDate[4] = " 01/05/" + year
entryContent[4] = "Live is if you were to die tomorrow. Learn as if you were to live forever......Gandhi"

entryDate[5] = " 01/06/" + year
entryContent[5] = " Education is our passport to the future, for tomorrow belongs to the people who prepare for it today...Martin Luther King"

entryDate[6] = " 01/07/" + year
entryContent[6] = "To have another language is to possess a second soul.-- Charlemagne"

entryDate[7] = " 01/08/" + year
entryContent[7] = "Education is not the filling of a bucket, but the lighting of a fire......W.B. Yeats"

entryDate[8] = " 01/09/" + year
entryContent[8] = "The limits of your language are the limits of your world.......Jurgen Wittgenstein"

entryDate[9] = " 01/10/" + year
entryContent[9] = "Good schools like good societies, celebrate diversity........Deborah Meier"

entryDate[10] = " 01/11/" + year
entryContent[10] = "All of us do not have equal talent, but all of us should have an equal opportunity to develop our talent...John F. Kennedy"

entryDate[11] = " 01/12/" + year
entryContent[11] = "Live is if you were to die tomorrow. Learn as if you were to live forever......Gandhi"

entryDate[12] = " 01/13/" + year
entryContent[12] = " Education is our passport to the future, for tomorrow belongs to the people who prepare for it today...Martin Luther King"

entryDate[13] = " 01/14/" + year
entryContent[13] = "The limits of your language are the limits of your world.......Jurgen Wittgenstein"

entryDate[14] = " 01/15/" + year
entryContent[14] = "All of us do not have equal talent, but all of us should have an equal opportunity to develop our talent...John F. Kennedy"

entryDate[15] = " 01/16/" + year
entryContent[15] = " Education is our passport to the future, for tomorrow belongs to the people who prepare for it today...Martin Luther King"

entryDate[16] = " 01/17/" + year
entryContent[16] = "All of us do not have equal talent, but all of us should have an equal opportunity to develop our talent...John F. Kennedy"

entryDate[17] = " 01/18/" + year
entryContent[17] = "All of us do not have equal talent, but all of us should have an equal opportunity to develop our talent...John F. Kennedy"

entryDate[18] = " 01/19/" + year
entryContent[18] = " Education is our passport to the future, for tomorrow belongs to the people who prepare for it today...Martin Luther King"

entryDate[19] = " 01/20/" + year
entryContent[19] = "The limits of your language are the limits of your world.......Jurgen Wittgenstein"

entryDate[20] = " 01/21/" + year
entryContent[20] = "Education is not the filling of a bucket, but the lighting of a fire......W.B. Yeats"

entryDate[21] = " 01/22/" + year
entryContent[21] = "Education is not the filling of a bucket, but the lighting of a fire......W.B. Yeats"

entryDate[22] = " 01/23/" + year
entryContent[22] = "Education is not the filling of a bucket, but the lighting of a fire......W.B. Yeats"

entryDate[23] = " 01/24/" + year
entryContent[23] = "Education is not the filling of a bucket, but the lighting of a fire......W.B. Yeats"

entryDate[24] = " 01/25/" + year
entryContent[24] = "Education is not the filling of a bucket, but the lighting of a fire......W.B. Yeats"

entryDate[25] = " 01/26/" + year
entryContent[25] = "Education is not the filling of a bucket, but the lighting of a fire......W.B. Yeats"

entryDate[26] = " 01/27/" + year
entryContent[26] = "Education is not the filling of a bucket, but the lighting of a fire......W.B. Yeats"

entryDate[27] = " 01/28/" + year
entryContent[27] = "Education is not the filling of a bucket, but the lighting of a fire......W.B. Yeats"

entryDate[28] = " 01/29/" + year
entryContent[28] = "Education is not the filling of a bucket, but the lighting of a fire......W.B. Yeats"

entryDate[29] = " 01/30/" + year
entryContent[29] = "Education is not the filling of a bucket, but the lighting of a fire......W.B. Yeats"

entryDate[30] = " 01/31/" + year
entryContent[30] = "Education is not the filling of a bucket, but the lighting of a fire......W.B. Yeats"

entryDate[31] = " 02/01/" + year
entryContent[31] = "Education is not the filling of a bucket, but the lighting of a fire......W.B. Yeats"


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)
