var theImages = new Array() 

// Add as many lines as needed. Keep numbers in [] in order starting with 0

theImages[0] = '/images/sub_pic_02.jpg'
theImages[1] = '/images/sub_pic_03.jpg'
theImages[2] = '/images/sub_pic_07.jpg'
theImages[3] = '/images/sub_pic_08.jpg'
theImages[4] = '/images/sub_pic_09.jpg'
theImages[5] = '/images/sub_pic_11.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]+'" border="0" alt="jetAVIVA">');
}