var theImages = new Array() // do not change this

theImages[0] = 'http://www.llhc.org.uk/img/1.png'
theImages[1] = 'http://www.llhc.org.uk/img/2.png'
theImages[2] = 'http://www.llhc.org.uk/img/3.png'
theImages[3] = 'http://www.llhc.org.uk/img/4.png'
theImages[4] = 'http://www.llhc.org.uk/img/5.png'
theImages[5] = 'http://www.llhc.org.uk/img/6.png'
theImages[6] = 'http://www.llhc.org.uk/img/7.png'
theImages[7] = 'http://www.llhc.org.uk/img/8.png'
theImages[8] = 'http://www.llhc.org.uk/img/9.png'
theImages[9] = 'http://www.llhc.org.uk/img/10.png'

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]+'">');
}
