

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

quote = new StringArray(5)
quote[0] = "Thinking is the hardest work there is, which is probably the reason why so few engage in it."
quote[1] = "Vision is the art of seeing things invisible."
quote[2] = "It is never too late to give up our prejudices."
quote[3] = "When the judgement's weak, the prejudice is strong"
quote[4] = "Everyone is a prisoner of his own experiences. No one can eliminate prejudices - just recognize them. "
quote[5] = "One is astounded in the study of history at the recurrence of the idea that evil must be forgotten, distorted, skimmed over.... The difficulty, of course, with this philosophy is that history loses its value as an incentive and example; it paints perfect men and noble nations, but does not tell the truth."

author = new StringArray(5)
author[0] = "Henry Ford"
author[1] = "Jonathan Swift"
author[2] = "Henry David Thoreau"
author[3] = "Kane O'Hara"
author[4] = "Edward R. Murrow"
author[5] = "W.E.B. Du Bois"


function writeQuote()
{
var now = new Date()
var sec = now.getSeconds()
var core = sec % quote.length

var thequote = quote[core]
var theauthor = author[core]
var theq = '&quot;'
var theend = ''


document.write( '<i>' + theq + thequote + theq + " " + theauthor + '</i>'  )
}


