// JavaScript Document

// Set up the image files to be used.
var theImages = new Array()
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'img_random/1.jpg'
theImages[1] = 'img_random/2.jpg'
theImages[2] = 'img_random/3.jpg'
theImages[3] = 'img_random/4.jpg'
theImages[4] = 'img_random/5.jpg'
var theCaptions = new Array()

theCaptions[0] = 'Lincoln Memorial'
theCaptions[1] = 'statue in sky'
theCaptions[2] = 'Asian warrior'
theCaptions[3] = 'statue in sky'
theCaptions[4] = 'soldier statue'
var p = theImages.length;

var whichImage = Math.round(Math.random()*(p-1));

function showImage(){
document.write('<img src="'+theImages[whichImage]+'" class="photocentral" alt="'+theCaptions[whichImage]+'" />');
}


