/* This code is for the rotating image in the header of every page. */

var theImages = new Array()

theImages[0] = 'http://vups.bc.ca/images/toplogo/toplogo01vb.jpg'
theImages[1] = 'http://vups.bc.ca/images/toplogo/toplogo02vb.jpg'
theImages[2] = 'http://vups.bc.ca/images/toplogo/toplogo03vb.jpg'
theImages[3] = 'http://vups.bc.ca/images/toplogo/toplogo04vb.jpg'
theImages[4] = 'http://vups.bc.ca/images/toplogo/toplogo05vb.jpg'
theImages[5] = 'http://vups.bc.ca/images/toplogo/toplogo06vb.jpg'
theImages[6] = 'http://vups.bc.ca/images/toplogo/toplogo07vb.jpg'
theImages[7] = 'http://vups.bc.ca/images/toplogo/toplogo08vb.jpg'
theImages[8] = 'http://vups.bc.ca/images/toplogo/toplogo09vb.jpg'
theImages[9] = 'http://vups.bc.ca/images/toplogo/toplogo10vb.jpg'
theImages[10] = 'http://vups.bc.ca/images/toplogo/toplogo11vb.jpg'
theImages[11] = 'http://vups.bc.ca/images/toplogo/toplogo12vb.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]+'">');
}