

var theImages = new Array()

theImages[0] = 'pearsons-images/1.jpg'
theImages[1] = 'pearsons-images/2.jpg'
theImages[2] = 'pearsons-images/3.jpg'
theImages[3] = 'pearsons-images/4.jpg'
theImages[4] = 'pearsons-images/5.jpg'
theImages[5] = 'pearsons-images/6.jpg'
theImages[6] = 'pearsons-images/7.jpg'
theImages[7] = 'pearsons-images/8.jpg'
theImages[8] = 'pearsons-images/9.jpg'
theImages[9] = 'pearsons-images/10.jpg'
theImages[10] = 'pearsons-images/11.jpg'
theImages[11] = 'pearsons-images/12.jpg'
theImages[12] = 'pearsons-images/13.jpg'
theImages[13] = 'pearsons-images/14.jpg'
theImages[14] = 'pearsons-images/15.jpg'
theImages[15] = 'pearsons-images/16.jpg'
theImages[16] = 'pearsons-images/17.jpg'
theImages[17] = 'pearsons-images/18.jpg'
theImages[18] = 'pearsons-images/19.jpg'
theImages[19] = 'pearsons-images/20.jpg'
theImages[20] = 'pearsons-images/21.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));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}
