// Java Document
//Random Image for Header
var currentdate = 0
var core = 0

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

image = new StringArray(3)
image[0] = 'http://www.rmrproducts.com/images/header_truck.jpg'
image[1] = 'http://www.rmrproducts.com/images/header_rally.jpg'
image[2] = 'http://www.rmrproducts.com/images/header_drift_hyundai.jpg'


var ran = 60/image.length

function ranimage() {
  currentdate = new Date()
  core = currentdate.getSeconds()
  core = Math.floor(core/ran)
    return(image[core])
}

document.write("<img src='" +ranimage()+ "'>")