var mInterval = 3000;		// The interval to wait between images (in milliseconds)
var mImgList = new Array("TomJohnsonDigitalAVPresident", "RecievingAwardSmall", "TomTvSmall", "RoundBuildingSmall", "StandingInFrontSmall", "LearningBehindSmall", "Valpo", "BlueShirtWorkersSmall" );	// The array of images
var mCurImg = 0;	// The index of the image to start with (arrays start at 0)

// Changes the picture to the next in the list
function ChangePicture()
{
	var mNewImgIdx = mCurImg + 1;	// Get the index of the next picture
	if (mNewImgIdx >= mImgList.length) mNewImgIdx = 0	// If we're at the end, wrap to the first image
	document.getElementById("imgX").src = "./images/" + mImgList[mNewImgIdx] + ".jpg"	// Change the image
	setTimeout("ChangePicture()", mInterval);	// Tell the browser to run this function again in [mInterval] milliseconds
	mCurImg = mNewImgIdx;	// Update current image to the new current image index
}