// JavaScript Document// ==============================================
// Copyright 2003 by jsCode.com
// Source: jsCode.com
// Author: etLux
// Free for all; but please leave in the header.
// ==============================================


function showImageSidebar(){
	// Set up the image files to be used.
	var theImages = new Array() // do not change this
	// To add more image files, continue with the
	// pattern below, adding to the array. Rememeber
	// to increment the theImages[x] index!
	
	theImages[0] = 'http://commodoreyachtclub.com/images/sidebar-pics-8994.jpg'
	theImages[1] = 'http://commodoreyachtclub.com/images/sidebar-pics-8548.jpg'
	theImages[2] = 'http://commodoreyachtclub.com/images/sidebar-pics-8547.jpg'
	theImages[3] = 'http://commodoreyachtclub.com/images/sidebar-pics-8846.jpg'
	theImages[4] = 'http://commodoreyachtclub.com/images/sidebar-pics-8990.jpg'
	theImages[5] = 'http://commodoreyachtclub.com/images/sidebar-pics-9010.jpg'
	theImages[6] = 'http://commodoreyachtclub.com/images/sidebar-pics-9011.jpg'
	theImages[7] = 'http://commodoreyachtclub.com/images/sidebar-pics-9019.jpg'
	theImages[8] = 'http://commodoreyachtclub.com/images/sidebar-pics-9022.jpg'
	theImages[9] = 'http://commodoreyachtclub.com/images/sidebar-pics-8734.jpg'
	
	// ======================================
	// do not change anything below this line
	// ======================================
	
	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));	
	document.write('<img src="'+theImages[whichImage]+'">');
}
