var theImages = new Array() 

theImages[0] = 'images/headerimages/cloud.jpg'
theImages[1] = 'images/headerimages/clock.jpg'
theImages[2] = 'images/headerimages/shadow.jpg'
theImages[3] = 'images/headerimages/card.jpg'
theImages[4] = 'images/headerimages/gears.jpg'
theImages[5] = 'images/headerimages/compass.jpg'
theImages[6] = 'images/headerimages/check.jpg'

// ======================================
// do not change anything below this line
// ======================================

var j = 0
var p = theImages.length;

var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}

var whichImage = Math.round(Math.random()*(p-1));

document.write('<img src="'+theImages[whichImage]+'">');
