var core = 0
var currentdate = 0
function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '
  }
}
quote = new StringArray(5)
quote[0] = "Knockout!  Very Funny!"
quote[1] = "Love that routine, can we use it in panto?"
quote[2] = "I see you haven't changed your car!"
quote[3] = "I can't believe it - you're the best!"
quote[4] = "I was moved by your performance. It's the nearest anyone is going to get to the real thing."


author = new StringArray(5)
author[0] = "Kid Creole"
author[1] = "Cannon and Ball"
author[2] = "Kenn Dodd"
author[3] = "Lois Laurel (Stan's daughter)"
author[4] = "Nancy Wardell (Stan Laurel's relative)"

var ran = 60/quote.length

currentdate = new Date()
core = currentdate.getSeconds()
adcore = Math.floor(core/ran)
core = adcore

var thequote = quote[core]
var theauthor = author[core]
var thebreak = '<br>'
var theq = '"'
var theend = '.'

document.write(theq + thequote + theq + thebreak + theauthor + theend)