<!-- Begin Visitor 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/Visitors/';
theImages[0] = '../images/RotatingImages/Visitors/artwalk.jpg';
theImages[1] = '../images/RotatingImages/Visitors/beach1.jpg';
theImages[2] = '../images/RotatingImages/Visitors/beach2.jpg';
theImages[3] = '../images/RotatingImages/Visitors/dolphin.jpg';
theImages[4] = '../images/RotatingImages/Visitors/airport_five_airlines_1.jpg';
theImages[5] = '../images/RotatingImages/Visitors/airport_scenic_wetland_slough.jpg';
theImages[6] = '../images/RotatingImages/Visitors/airport_terminal_1.jpg';
theImages[7] = '../images/RotatingImages/Visitors/airport_tower.jpg';

var theImagesDesc = new Array();
// theImagesDesc[0] = '';
theImagesDesc[0] = '<b>Santa Barbara Arts &amp; Crafts Show.</b> The Sunday art show along Cabrillo Blvd. features local artists and is a great way to enjoy a leisurely stroll.';
theImagesDesc[1] = '<b>Quintessential Santa Barbara</b> - beautiful beaches and palm trees, shadowed by the Santa Ynez mountains.';
theImagesDesc[2] = '<b>The Santa Barbara Waterfront.</b> A view looking back at Santa Barbara from the water.';
theImagesDesc[3] = '<b>The dolphin fountain</b>, entitled &#8220;Dolphin Family&#8221;, marks the entrance to Stearns Wharf and was created by local sculptor Bud Bottoms.';
theImagesDesc[4] = '<b>Five major airlines serve Santa Barbara Airport</b> and share the air with many private aircraft. Both enjoy the dramatic coastal views as they approach Santa Barbara.';
theImagesDesc[5] = '<b>The Santa Barbara Airport</b> is prominent in the protection of the scenic wetland slough. Here the wetlands glow in the foreground of the nearby mountains at dusk.';
theImagesDesc[6] = '<b>Santa Barbara Airport</b> is a relaxing and convenient way to arrive and depart from our beautiful city.  Five major airlines serve us with over 300 one-stop destinations worldwide. 90 daily flights take passenger to 6 of the nations largest air hubs to make flying anywhere convenient and enjoyable.';
theImagesDesc[7] = '<b>Santa Barbara Airport\'s state of the art tower</b> stands tall and proud on Hollister Avenue, guiding over 90 commercial flights per day to over 300 one-stops worldwide.';

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 Visitor Images Script
 -->