// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array. Remember
// to increment the theImages[x] index!

theImages[0] = '../assets/layout/banners/image1.jpg'
theImages[1] = '../assets/layout/banners/image2.jpg'
theImages[2] = '../assets/layout/banners/image3.jpg'
theImages[3] = '../assets/layout/banners/image4.jpg'
theImages[4] = '../assets/layout/banners/image5.jpg'
theImages[5] = '../assets/layout/banners/image6.jpg'
theImages[6] = '../assets/layout/banners/image7.jpg'
theImages[7] = '../assets/layout/banners/image8.jpg'
theImages[8] = '../assets/layout/banners/image9.jpg'
theImages[9] = '../assets/layout/banners/image10.jpg'
theImages[10] = '../assets/layout/banners/image11.jpg'
theImages[11] = '../assets/layout/banners/image12.jpg'
theImages[12] = '../assets/layout/banners/image13.jpg'
theImages[13] = '../assets/layout/banners/image14.jpg'
theImages[14] = '../assets/layout/banners/image15.jpg'
theImages[15] = '../assets/layout/banners/image16.jpg'
theImages[16] = '../assets/layout/banners/image17.jpg'
theImages[17] = '../assets/layout/banners/image18.jpg'
theImages[18] = '../assets/layout/banners/image19.jpg'
theImages[19] = '../assets/layout/banners/image20.jpg'

// ======================================
// do not change anything below this line
// ======================================

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]+'">');
}
