// Set up the image files to be used.
var theImages = new Array()

theImages[0] = 'images/mainPic19.jpg'
//theImages[1] = 'images/mainPic02.jpg'
//theImages[2] = 'images/mainPic03.jpg'
//theImages[3] = 'images/mainPic04.jpg'
//theImages[4] = 'images/mainPic05.jpg'
//theImages[5] = 'images/mainPic06.jpg'
//theImages[6] = 'images/mainPic07.jpg'
//theImages[7] = 'images/mainPic08.jpg'
//theImages[8] = 'images/mainPic09.jpg'
//theImages[9] = 'images/mainPic10.jpg'
//theImages[10] = 'images/mainPic11.jpg'
//theImages[11] = 'images/mainPic12.jpg'
//theImages[12] = 'images/mainPic13.jpg'
//theImages[13] = 'images/mainPic14.jpg'
//theImages[14] = 'images/mainPic15.jpg'

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));

document.write('<STYLE TYPE="text/css">');
document.write('.randomImage { background: url('+theImages[whichImage]+') no-repeat left top; }');
document.write('</STYLE>');

