

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

quote = new StringArray(16)
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] = "If you're not having fun, you're doing it wrong."
quote[3] = "If you can't say anything good about someone, sit right here by me."
quote[4] = "I have a simple philosophy. Fill what's empty. Empty what's full. And scratch where it itches."
quote[5] = "I have been poor and I have been rich. Rich is better."
quote[6] = "Writing is easy. All you do is stare at a blank sheet of paper until drops of blood form on your forehead."
quote[7] = "There comes a time in every man's life and I've had many of them."
quote[8] = "Between two evils, I always pick the one I never tried before."
quote[9] = "A billion here, a billion there, and pretty soon you're talking about real money."
quote[10] = "When you come to a fork in the road, take it."
quote[11] = "In spite of everything, I still believe that people are really good at heart."
quote[12] = "A good many things go around in the dark besides Santa Claus."
quote[13] = "All great truths begin as blasphemies."
quote[14] = "Put not your trust in money, but put your money in trust."
quote[15] = "Is not life a hundred times too short for us to bore ourselves?"
quote[16] = "You can observe a lot by watching."

author = new StringArray(16)
author[0] = "Henry Ford"
author[1] = "Jonathan Swift"
author[2] = "Jack Eastman"
author[3] = "Alice Roosevelt Longworth"
author[4] = "Alice Roosevelt Longworth"
author[5] = "Sophie Tucker"
author[6] = "Gene Fowler"
author[7] = "Casey Stengel"
author[8] = "Mae West"
author[9] = "Everett McKinley Dirksen"
author[10] = "Yogi Berra"
author[11] = "Anne Frank"
author[12] = "Herbert Hoover"
author[13] = "George Bernard Shaw"
author[14] = "Oliver Wendell Holmes"
author[15] = "Friedrich Wilhelm Nietzshe"
author[16] = "Yogi Berra"


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>'  )
}



