var theImages = new Array() // do not change this

theImages[0] = 'http://nzmedical.co.nz/nzmedimgs/biker.gif'
theImages[1] = 'http://nzmedical.co.nz/nzmedimgs/couplewinter.gif'
theImages[2] = 'http://nzmedical.co.nz/nzmedimgs/couplesnow.gif'
theImages[3] = 'http://nzmedical.co.nz/nzmedimgs/couplesailing.gif'
theImages[4] = 'http://nzmedical.co.nz/nzmedimgs/treelake.gif'
theImages[5] = 'http://nzmedical.co.nz/nzmedimgs/yachting.gif'

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));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'" width="340" height="140" alt="NZLife. Online Insurance for Kiwis" class="HeaderGraphic">');
}
