

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

quote = new StringArray(21)
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] = "I have never let my schooling interfere with my education."
quote[3] = "But there are advantages to being elected President. The day after I was elected, I had my high school grades classified Top Secret"
quote[4] = "I never think of the future - it comes soon enough."
quote[5] = "Smile, they will wonder what you did!"
quote[6] = "It is hard enough to remember my opinions, without also remembering my reasons for them!"
quote[7] = "Only two things are infinite, the universe and human stupidity, and I'm not sure about the former."
quote[8] = "Better to remain silent and be thought a fool than to speak out and remove all doubt."
quote[9] = "Be careful about reading health books. You may die of a misprint."
quote[10] = "Education is when you read the fine print. Experience is what you get if you don't."
quote[11] = "Never regret. If it's good, it's wonderful. If it's bad, it's experience."
quote[12] = "I'm a great believer in luck, and I find the harder I work the more I have of it."
quote[13] = "To avoid criticism do nothing, say nothing, be nothing."
quote[14] = "Remember not only to say the right thing in the right place, but far more difficult still, to leave unsaid the wrong thing at the tempting moment."
quote[15] = "If my doctor told me I had only six minutes to live, I wouldn’t brood. I’d type a little faster."
quote[16] = "Education is what survives when what has been learned has been forgotten."
quote[17] = "Old age isn’t so bad when you consider the alternative."
quote[18] = "The art of medicine consists of amusing the patient while nature cures the disease."
quote[19] = "Whoever controls the media - the images - controls the culture."
quote[20] = "Science and technology multiply around us. To an increasing extent they dictate the languages in which we speak and think. Either we use those languages, or we remain mute."


author = new StringArray(21)
author[0] = "Henry Ford"
author[1] = "Jonathan Swift"
author[2] = "Mark Twain"
author[3] = "Ronald Reagan"
author[4] = "Albert Einstein"
author[5] = "Anon"
author[6] = "Friedrich Nietzsche"
author[7] = "Albert Einstein"
author[8] = "Abraham Lincoln"
author[9] = "Mark Twain"
author[10] = "Pete Seeger"
author[11] = "Victoria Holt"
author[12] = "Thomas Jefferson"
author[13] = "Elbert Hubbard"
author[14] = "Benjamin Franklin"
author[15] = "Isaac Asimov"
author[16] = "B.F. Skinner"
author[17] = "Maurice-Auguste Chevalier"
author[18] = "Voltaire"
author[19] = "Allen Ginsberg"
author[20] = "J G Ballard"


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>'  )
}


