<!-- Begin Business Images Script
// 2005-08-23 Updated and standardized by SNelson
// 2005-10-13 Updated for standardized image size by SNelson
// 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();
// To add more image files, continue with the pattern below, adding to the array.
// All images should be 180 px by 240 px
// theImages[0] = '../images/RotatingImages/Business/';
theImages[0] = '../images/RotatingImages/Business/arlington.jpg';
theImages[1] = '../images/RotatingImages/Business/boat.jpg';
theImages[2] = '../images/RotatingImages/Business/downtown1.jpg';
theImages[3] = '../images/RotatingImages/Business/downtown2.jpg';

var theImagesDesc = new Array();
// theImagesDesc[0] = '';
theImagesDesc[0] = '<b>Arlington Theatre, built in 1926.</b> Architect Joseph J. Plunkett designed the building&#8217;s exterior to convey a soaring Spanish castle resembling the Moorish Alcazar in Seville. Twinkling lights in the theatre&#8217;s ceiling give the illusion of watching a film in an outside courtyard.';
theImagesDesc[1] = '<b>Santa Barbara&#8217;s Working Harbor.</b> A local commercial fishing boat returns to Santa Barbara harbor.';
theImagesDesc[2] = '<b>View from Santa Barbara County Courthouse.</b> Looking west over Santa Barbara, the tower of the Arlington Theatre stands out against the background landscape.';
theImagesDesc[3] = '<b>Cozy Glimpse of State Street.</b> Running through the heart of Santa Barbara since 1851 is State Street. This main traffic artery begins at the base of Stearns Wharf and travels north through the downtown area, eventually connecting to Hollister Avenue in Goleta. The street&#8217;s name honors California&#8217;s statehood in 1850.';

var j = 0;
// Count the number of images
var p = theImages.length;
var preBuffer = new Array();
for (i = 0; i < p; i++){
   preBuffer[i] = new Image();
   preBuffer[i].src = theImages[i];
}

// Generate an integer between 0 and the number of images minus one
var whichImage = rand(p)-1;
// Remove the bold tags for the image alternate text
var startBold = /<b>/;
var endBold = /<\/b>/;

function showImage(){
	document.write('<img src="'+theImages[whichImage]+'" alt="'+(theImagesDesc[whichImage].replace(startBold,"")).replace(endBold,"")+'" width="180" height="240" border="0" hspace="0" vspace="0">');
}

function showImageDescription(){
	document.write(theImagesDesc[whichImage]);
}
// End Business Images Script
 -->
