
<!-- Begin
// Set up the image files to be used.

		rnd.today=new Date();
		rnd.seed=rnd.today.getTime();

function rnd() {
		
        rnd.seed = (rnd.seed*9301+49297) % 233280;
        return rnd.seed/(233280.0);
};

function rand(number) {
        return Math.ceil(rnd()*number);
};

var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.
theImages[0] = '../images/RotatingImages/Home/main1_jpg.jpg'
theImages[1] = '../images/RotatingImages/Home/main2_jpg.jpg'
theImages[2] = '../images/RotatingImages/Home/main3_jpg.jpg'
theImages[3] = '../images/RotatingImages/Home/main4_jpg.jpg'
// 
var theImagesDesc = new Array()
theImagesDesc[0] = 'City of Santa Barbara'
theImagesDesc[1] = 'City of Santa Barbara'
theImagesDesc[2] = 'City of Santa Barbara'
theImagesDesc[3] = 'City of Santa Barbara'
// 
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 = rand(4)-1;//Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'" alt="'+theImagesDesc[whichImage]+'">');
}
function showImageDescription(){
document.write(theImagesDesc[whichImage]);
}
//  End -->
// JavaScript Document
