

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] = "Providing Quality Living Solutions for Life."
quote[3] = "We do not remember days; we remember moments."
quote[4] = "A woman is always younger than a man of equal years."

author = new StringArray(5)
author[0] = "Henry Ford"
author[1] = "Jonathan Swift"
author[2] = "Assisted Living Florida.com"
author[3] = "Unknown"
author[4] = "Elizabeth Barrett Browning"


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>'  )
}


