

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

quote = new StringArray(5)
quote[0] = "PEBKAC"
quote[1] = "RTFM"
quote[2] = "There are 10 types of people in the world"
quote[3] = "SELECT * FROM users WHERE clue > 0"
quote[4] = "Obey gravity"

author = new StringArray(5)
author[0] = "- Problem Exists Between Keyboard And Chair"
author[1] = "- Read The F---ing Manual"
author[2] = "- Those who understand binary, and those who don't"
author[3] = "...... zero rows returned."
author[4] = "- It's the law!"

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>' + thequote + " " + theauthor + '</i>'  )
}



