﻿

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

quote = new StringArray(9)
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] = "The song of the river ends not at her banks, but in the hearts of those who have loved her."
quote[3] = "We forget that the water cycle and the life cycle are one."
quote[4] = "When we try to pick out anything by itself, we find it hitched to everything else in the universe."
quote[5] = "It is not down on any map, true places never are."
quote[6] = "No pessimist ever discovered the secrets of the stars, or sailed to an uncharted land, or opened a new doorway for the human spirit."
quote[7] = "In the end, our society will be defined not only by what we create but by what we refuse to destroy"
quote[8] = "I do not understand how anyone can live without some small place of enchantment to turn to."
quote[9] = "People who don't Think probably don't have Brains; rather, they have grey fluff that's blown into their heads by mistake."

author = new StringArray(9)
author[0] = "Henry Ford"
author[1] = "Jonathan Swift"
author[2] = "Chinese Philosopher"
author[3] = "Jacques Cousteau"
author[4] = "John Muir"
author[5] = "Herman Melville"
author[6] = "Helen Keller"
author[7] = "John C. Sawhill"
author[8] = "Marjorie Kinnan Rawlings"
author[9] = "Winnie the Pooh"


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>'  )
}



