var theImages = new Array(13)

theImages[0] = 'photoblog/08/images/bf_mela08_01.jpg'
theImages[1] = 'photoblog/08/images/bf_mela08_02.jpg'
theImages[2] = 'photoblog/08/images/bf_mela08_03.jpg'
theImages[3] = 'photoblog/08/images/bf_mela08_04.jpg'
theImages[4] = 'photoblog/08/images/bf_mela08_05.jpg'
theImages[5] = 'photoblog/08/images/bf_mela08_06.jpg'
theImages[6] = 'photoblog/08/images/bf_mela08_07.jpg'
theImages[7] = 'photoblog/08/images/bf_mela08_08.jpg'
theImages[8] = 'photoblog/08/images/bf_mela08_09.jpg'
theImages[9] = 'photoblog/08/images/bf_mela08_10.jpg'
theImages[10] = 'photoblog/08/images/bf_mela08_11.jpg'
theImages[11] = 'photoblog/08/images/bf_mela08_12.jpg'
theImages[12] = 'photoblog/08/images/bf_mela08_13.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 border="0" src="'+theImages[whichImage]+'">');
}
