var theImages = new Array()

theImages[0] = 'icon/handstand.png'
theImages[1] = 'icon/seesaw.png'
theImages[2] = 'icon/hopscotch.png'


var s = theImages.length;

var preBuffer = new Array()
for (k = 0; k < s; k++){
   preBuffer[k] = new Image()
   preBuffer[k].src = theImages[k]
}
var whichImage = Math.round(Math.random()*(s-2));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}