// ************************************************************************************
// ** 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] = "   " + month + "/01/" + year
entryContent[0] = " <img style=\"width: 97px; height: 128px;\" alt=\"Aeneas, Anchises, and Ascanius: Flight from Troy\" src=\"http://www.tabney.com/files/clipart/aeneas-flight.jpg\">"

entryDate[1] = "        " + month + "/02/" + year
entryContent[1] = " <img style=\"width: 135px; height: 127px;\" alt=\"Iuppiter aethere summo\" src=\"http://www.tabney.com/files/clipart/jupiter2.gif\">"

entryDate[2] = "        " + month + "/03/" + year
entryContent[2] = " <img style=\"width: 125px; height: 128px;\" alt=\"The Temple of Vesta, who will return to earth at the end of time\" src=\"http://www.tabney.com/files/clipart/vesta-temple.jpg\">"

entryDate[3] = "        " + month + "/04/" + year
entryContent[3] = " <img style=\"width: 108px; height: 135px;\" alt=\"Dido and Cupid, who prepares her to love Aeneas\" src=\"http://www.tabney.com/files/clipart/dido&amp;cupid.gif\">"

entryDate[4] = "        " + month + "/05/" + year
entryContent[4] = " <img style=\"width: 164px; height: 108px;\" alt=\"&quot;rapti Ganymedis honores&quot;: Ganymede, raptured to heaven, was one of the causes of Juno's anger at Troy.\" src=\"http://www.tabney.com/files/clipart/peruzzi-ganymede.jpg\">"

entryDate[5] = "        " + month + "/06/" + year
entryContent[5] = " <img style=\"width: 103px; height: 135px;\" alt=\"&quot;illi agmine certo Laocoonta petunt; et primum parva duorum corpora natorum serpens amplexus uterque implicat&quot;: Laocoon\" src=\"http://www.tabney.com/files/clipart/laocoon.jpg\">"

entryDate[6] = "        " + month + "/07/" + year
entryContent[6] = " <img style=\"width: 85px; height: 150px;\" alt=\"Apollo, inspirer of the Sibyl of Cumae\" src=\"http://www.tabney.com/files/clipart/divinity07.jpg\">"

entryDate[7] = "        " + month + "/08/" + year
entryContent[7] = " <img style=\"width: 149px; height: 150px;\" alt=\"&quot;iudicium Paridis&quot;: The Judgment of Paris, one of the causes of Juno's hatred toward Troy\" src=\"http://www.tabney.com/files/clipart/judgmentparis2.jpg\">"

entryDate[8] = "        " + month + "/09/" + year
entryContent[8] = " <img style=\"width: 113px; height: 128px;\" alt=\"&quot;arva . . . Ausoniae semper cedentia retro quaerenda&quot;: Italy, destination of Aeneas\" src=\"http://www.tabney.com/files/clipart/italy.jpg\">"

entryDate[9] = "        " + month + "/10/" + year
entryContent[9] = " <img style=\"width: 207px; height: 130px;\" alt=\"&quot;prospiciens genitor caeloque invectus aperto flectit equos&quot;: Neptune in his chariot, who calms the sea\" src=\"http://www.tabney.com/files/clipart/divinity11.jpg\">"

entryDate[10] = "        " + month + "/11/" + year
entryContent[10] = " <img style=\"width: 246px; height: 150px;\" alt=\"&quot;lamentis gemituque et femineo ululatu tecta fremunt&quot;: The Death of Dido\" src=\"http://www.tabney.com/files/clipart/tiepolo-dido.jpg\">"

entryDate[11] = "        " + month + "/12/" + year
entryContent[11] = " <img style=\"width: 91px; height: 130px;\" alt=\"Diana, patroness of Camilla\" src=\"http://www.tabney.com/files/clipart/divinity02.jpg\">"

entryDate[12] = "        " + month + "/13/" + year
entryContent[12] = " <img style=\"width: 86px; height: 128px;\" alt=\"&quot;equo ne credite, Teucri&quot;: the Trojan Horse\" src=\"http://www.tabney.com/files/clipart/trojanhorse.jpg\">"

entryDate[13] = "        " + month + "/14/" + year
entryContent[13] = " <img style=\"width: 161px; height: 112px;\" alt=\"Venus delivers to Aeneas armor made by Vulcan.\" src=\"http://www.tabney.com/files/clipart/poussin-aeneid8.jpg\">"

entryDate[14] = "        " + month + "/15/" + year
entryContent[14] = " <img style=\"width: 122px; height: 149px;\" alt=\"Mars, father of Romulus and Remus\" src=\"http://www.tabney.com/files/clipart/divinity04.jpg\">"

entryDate[15] = "        " + month + "/16/" + year
entryContent[15] = " <img style=\"width: 132px; height: 140px;\" alt=\"&quot;hic vir, hic est, tibi quem promitti saepius audis&quot;: Augustus, the long-promised messiah\" src=\"http://www.tabney.com/files/clipart/augustus01.jpg\">"

entryDate[16] = "        " + month + "/17/" + year
entryContent[16] = " <img style=\"width: 93px; height: 150px;\" alt=\"The Flight of Aeneas: sculpture in the gardens of Schloss Mirabell in Salzburg\" src=\"http://www.tabney.com/files/clipart/mirabell-aeneas.jpg\">"

entryDate[17] = "        " + month + "/18/" + year
entryContent[17] = " <img style=\"width: 99px; height: 150px;\" alt=\"The story of the battle of Hercules and Cacus on the Aventine is recounted by Evander in Book 8.\" src=\"http://www.tabney.com/files/clipart/bandinelli-hercules&amp;cacus.jpg\">"

entryDate[18] = "        " + month + "/19/" + year
entryContent[18] = " <img style=\"width: 111px; height: 140px;\" alt=\"&quot;corpusque exsangue sepulcro reddidit Hectoreum: Priam mourns Hector, returned by Achilles\" src=\"http://www.tabney.com/files/clipart/priammournshector.jpg\">"

entryDate[19] = "        " + month + "/20/" + year
entryContent[19] = " <img style=\"width: 214px; height: 140px;\" alt=\"&quot;fas omne est, Cytherea, meis te fidere regnis, unde genus ducis&quot;: Neptune reminds Venus that she was born from the sea in Book 5.\" src=\"http://www.tabney.com/files/clipart/cabanel-venus.jpg\">"

entryDate[20] = "        " + month + "/21/" + year
entryContent[20] = " <img style=\"width: 98px; height: 150px;\" alt=\"&quot;regina Iovisque et soror et coniunx&quot;: Juno, queen of the gods\" src=\"http://www.tabney.com/files/clipart/divinity01.jpg\">"

entryDate[21] = "        " + month + "/22/" + year
entryContent[21] = " <img style=\"width: 171px; height: 150px;\" alt=\"&quot;qualis apes aestate nova per florea rura exercet sub sole labor&quot;: The Building of Carthage\" src=\"http://www.tabney.com/files/clipart/aeneidmaster-trojanslibya.jpg\">"

entryDate[22] = "        " + month + "/23/" + year
entryContent[22] = " <img style=\"width: 119px; height: 140px;\" alt=\"Aeneas is mysteriously wounded by an arrow.\" src=\"http://www.tabney.com/files/clipart/aeneaswounded.jpg\">"

entryDate[23] = "        " + month + "/24/" + year
entryContent[23] = " <img style=\"width: 130px; height: 130px;\" alt=\"&quot;Maia genitum demittit ab alto&quot;: Mercury, messenger of the gods\" src=\"http://www.tabney.com/files/clipart/divinity08.jpg\">"

entryDate[24] = "        " + month + "/25/" + year
entryContent[24] = " <img style=\"width: 91px; height: 135px;\" alt=\"&quot;hinc toto praeceps se corpore ad undas misit&quot;: Mercury launches himself toward Carthage from his grandfather Atlas.\" src=\"http://www.tabney.com/files/clipart/atlas&amp;mercury.gif\">"

entryDate[25] = "        " + month + "/26/" + year
entryContent[25] = " <img style=\"width: 207px; height: 140px;\" alt=\"Aeneas and Achates after the shipwreck\" src=\"http://www.tabney.com/files/clipart/dossi-aeneas&amp;achates.jpg\">"

entryDate[26] = "        " + month + "/27/" + year
entryContent[26] = " <img style=\"width: 130px; height: 130px;\" alt=\"&quot;diva solo fixos oculos aversa tenebat&quot;: Minerva, implacable toward the Trojans\" src=\"http://www.tabney.com/files/clipart/divinity03.jpg\">"

entryDate[27] = "        " + month + "/28/" + year
entryContent[27] = " <img style=\"width: 175px; height: 150px;\" alt=\"&quot;tu Marcellus eris&quot;: Octavia faints at Vergil's mention of her deceased son.\" src=\"http://www.tabney.com/files/clipart/ingres-virgil.jpg\">"

entryDate[28] = "        " + month + "/29/" + year
entryContent[28] = " <img style=\"width: 180px; height: 150px;\" alt=\"Venus and Juno discuss the fates of Dido and Aeneas.\" src=\"http://www.tabney.com/files/clipart/aeneidmaster-venus&amp;juno.jpg\">"

entryDate[29] = "        " + month + "/30/" + year
entryContent[29] = " <img style=\"width: 83px; height: 146px;\" alt=\"&quot;Olli subridens hominum sator atque deorum&quot;: Jupiter\" src=\"http://www.tabney.com/files/clipart/divinity05.jpg\">"

entryDate[30] = "        " + month + "/31/" + year
entryContent[30] = " <img style=\"width: 212px; height: 141px;\" alt=\"The Sibyl of Cumae\" src=\"http://www.tabney.com/files/clipart/vedder-sibyl.jpg\">"

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)