function getPeriodicQuote()
{
// ...............parameters
var daysInPeriod = 3
var quotes =
[
"you can test this by changing *startDay*",
"decreasing the number will..",
"..move forward in time",
"Today is 12593",
"Don't go higher than that (today)",
"ANY other number will be OK",
"Amend the order of quotes",
"..instead of getting the day right"// no comma
]
// ...............constants
var msInADay = 86400000
var startDay = 12590
// .......................
var millisecs = new Date().getTime()
var daysSinceStart = Math.floor(millisecs/msInADay) - startDay
var no_periods = Math.floor(daysSinceStart/daysInPeriod)
var quoteIndex = no_periods % quotes.length
return quotes[quoteIndex]
}