

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

quote = new StringArray(5)
quote[0] = "Winners Are Developed Here, in Hockey and in Life"
quote[1] = "You are never really playing an opponent. You are playing yourself, your own highest standards, and when you reach your limits, that is real joy."
quote[2] = "Success isn't something that just happens - success is learned, success is practiced and then it is shared."
quote[3] = "We don't stop playing because we grow old; we grow old because we stop playing."
quote[4] = "There is nothing stronger than the heart of a volunteer."

author = new StringArray(5)
author[0] = "NRYHA"
author[1] = "Arthur Ashe"
author[2] = "Sparky Anderson"
author[3] = "George Bernard Shaw"
author[4] = "Lt. Col. James H. Doolittle"


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>'  )
}


