

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] = "Det kan lett gå greit"
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. "
quote[5] = "Middle age is when your age starts to show around your middle."
quote[6] = "You're not drunk if you can lie on the floor without holding on."
quote[7] = "I'm not against half-naked girls - not as often as I'd like to be..."
quote[8] = "TV has brought murder back into the home where it belongs."
quote[9] = "Woman are meant to be loved, not to be understood."
quote[10] = "I really want to love somebody. I do. I just don't know if it's possible forever and ever." 
quote[11] = "I could take Sean Connery in a fight... I could definitely take him."
quote[12] = "I'd love to be a pop idol. Of course, my groupies are now between 40 and 50."
quote[13] = "You miss 100 percent of the shots you never take"


author = new StringArray(5)
author[0] = "Henry Ford"
author[1] = "Jonathan Swift"
author[2] = "Fred Midthun "
author[3] = "Ayn Rand"
author[4] = "Help Wanted Ad, PA newspaper, 1994"
author[5] = "Bob Hope"
author[6] = "Dean Martin"
author[7] = "Benny Hill"
author[8] = "Alfred Hitcock"
author[9] = "Oscar Wilde"
author[10] = "Jim Carrey"
author[11] = "Harrison Ford"
author[12] = "Kevin Bacon"
author[13] = "wayne Gretsky"



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>'  )
}



