

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] = "Quality Without Compromise."
quote[3] = "Businessmen are the symbol of a free society."
quote[4] = "Good hours, excellent pay, fun place to work, paid training, mean boss. Oh well, four out of five isn't bad. "

author = new StringArray(5)
author[0] = "Henry Ford"
author[1] = "Jonathan Swift"
author[2] = "Toner Action Subiaco"
author[3] = "Ayn Rand"
author[4] = "Help Wanted Ad, PA newspaper, 1994"


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>'  )
}


