

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

quote = new StringArray(12)
quote[0] = "Life is what happens when you are busy making other plans."
quote[1] = "People who live life generously go on multiplying relationships to the end."
quote[2] = "Just as there are no little people or unimportant lives, there is no insignifcant work."
quote[3] = "If someone listens, or stretches out a hand, extraordinary things begin to happen."
quote[4] = "It is in the shelter of each other that people live."
quote[5] = "Let your friends, colleagues and family know about the good that you see; it will help them see it too."
quote[6] = "Let no one ever come to you without leaving better."
quote[7] = "Integrity has no need of rules"
quote[8] = "Real integrity is doing the right thing, knowing nobody is going to know whether you did or not."
quote[9] = "The greatest homage we can pay to truth is use it."
quote[10] = "Honesty is the first chapter in the book of wisdom."
quote[11] = "Our lives improve only when we take chances."


author = new StringArray(12)
author[0] = "John Lennon"
author[1] = "Arthur Christopher Benson"
author[2] = "Elena Bonner "
author[3] = "Loretta Girzartis"
author[4] = "Irish Proverb"
author[5] = "Hanoch McCarty"
author[6] = "Mother Teresa"
author[7] = "Albert Camus"
author[8] = "Oprah Winfrey"
author[9] = "Ralph Waldo Emerson"
author[10] = "Charles Simmons"
author[11] = "Walter Anderson"



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>'  )
}


