// JavaScript Document
// This script was adapted by Richard R. Peterson (RRP-WebGuy@OperaMail.com)
// from a script downloaded at The JavaScript Source!! http://javascript.internet.com

//This scipt allows ramdom access to a directory with a series  
// of JPG or GIF files named sequentially from 1 to 'numFiles1'
// Set 'numFiles1' equal to number of files in the directory
var numFiles1 = 6
var whichImageLt = Math.round(Math.random()*(numFiles1-1))+1;
function showImageLt(){
//select from the directory and insert the 'whichImageLt' value
document.write('<img src="ImagesRandom/HomeLt/'+whichImageLt+'.jpg">');
}

//Set up second bank of images for the middle
var numFiles2 = 6
var whichImageMid = Math.round(Math.random()*(numFiles2-1))+1;
function showImageMid(){
document.write('<img src="ImagesRandom/HomeMid/'+whichImageMid+'.jpg">');
}

//Set up third bank of images for the right
var numFiles3 = 6
var whichImageRt = Math.round(Math.random()*(numFiles3-1))+1;
function showImageRt(){
document.write('<img src="ImagesRandom/HomeRt/'+whichImageRt+'.jpg">');
}
