// JavaScript Document
// RANDOM BANNER IMAGES (ALL)

var theImages = new Array() 

theImages[0] = 'images/catdog1_03.jpg'
theImages[1] = 'images/catdog2_03.jpg'
theImages[2] = 'images/catdog3_03.jpg'
theImages[3] = 'images/cat1_03.jpg'
theImages[4] = 'images/cat2_03.jpg'
theImages[5] = 'images/cat3_03.jpg'
theImages[6] = 'images/cat4_03.jpg'
theImages[7] = 'images/cat5_03.jpg'
theImages[8] = 'images/cat6_03.jpg'
theImages[9] = 'images/cat7_03.jpg'
theImages[10] = 'images/cat8_03.jpg'
theImages[11] = 'images/cat9_03.jpg'
theImages[12] = 'images/cat10_03.jpg'
theImages[13] = 'images/cat11_03.jpg'
theImages[14] = 'images/dog1_03.jpg'
theImages[15] = 'images/dog2_03.jpg'
theImages[16] = 'images/dog3_03.jpg'
theImages[17] = 'images/dog4_03.jpg'
theImages[18] = 'images/dog5_03.jpg'
theImages[19] = 'images/dog6_03.jpg'
theImages[20] = 'images/dog7_03.jpg'
theImages[21] = 'images/dog8_03.jpg'
theImages[22] = 'images/dog9_03.jpg'
theImages[23] = 'images/dog10_03.jpg'
theImages[24] = 'images/dog11_03.jpg'

<!-- DO NOT EDIT BANNER RANDOM IMAGE .js from here to end -->

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]+'">');
}
