var theImages = new Array()

theImages[0] = '../images/bk1.jpg'
theImages[1] = '../images/bk2.jpg'
theImages[2] = '../images/bk3.jpg'
theImages[3] = '../images/bk4.jpg'
theImages[4] = '../images/bk5.jpg'
theImages[5] = '../images/bk6.jpg'
theImages[6] = '../images/bk7.jpg'
theImages[7] = '../images/bk8.jpg'
theImages[8] = '../images/bk9.jpg'
theImages[9] = '../images/bk10.jpg'
theImages[10] = '../images/bk11.jpg'
theImages[11] = '../images/bk12.jpg'
theImages[12] = '../images/bk13.jpg'
theImages[13] = '../images/bk14.jpg'
theImages[14] = '../images/bk15.jpg'
theImages[15] = '../images/bk16.jpg'
theImages[16] = '../images/bk17.jpg'
theImages[17] = '../images/bk18.jpg'
theImages[18] = '../images/bk19.jpg'
theImages[19] = '../images/bk20.jpg'
theImages[20] = '../images/bk21.jpg'
theImages[21] = '../images/bk22.jpg'
theImages[22] = '../images/bk23.jpg'
theImages[23] = '../images/bk24.jpg'
theImages[24] = '../images/bk25.jpg'
theImages[25] = '../images/bk26.jpg'

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]+'" style="border: none; padding-top: 3px; padding-bottom: 2px;">');
}
