function cellOver(cell)
{
	document.getElementById(cell).bgColor = "#D4D4D4";
}
function cellOut(cell)
{
	document.getElementById(cell).bgColor = "white";
}
function getRandom(numberOfChoices)
{
	var ranNum = Math.floor(Math.random()*numberOfChoices);
	return ranNum;
}


// Path = a relative path to the folder where the images reside and the root name of the images
//  for example "images/titleImages/title".  It is this way so that the image number can be chosen
//  by this chooseImage function.
// FirstNum = first image number that is a possible choice
// LastNum = last image number that is a possible choice
function chooseImage(path, firstNum, lastNum)
{
	// amount of images in user selection
	var amountOfImages = lastNum - firstNum + 1;

	// gets the randomly selected number ( 0 <= n < amountOfImages)
	var imageNum = getRandom(amountOfImages);
	
	// creates an array of size "amountOfImages"
	var imageArray = new Array(amountOfImages);

	// sets the current array index to 0
	var arrayIndex = 0;
	var currentImage = 0;

	// sets the value for each array element to be the image path of arrayIndex value + firstNum
	for(arrayIndex = 0; arrayIndex < amountOfImages; arrayIndex++)
	{		
		currentImage = firstNum + arrayIndex; // Calculates the currentImage value
		imageArray[arrayIndex] = path + currentImage + ".jpg"; // Sets the array element to currentImage value
	}
	
	// returns the path name of the randomly selected image
	return imageArray[imageNum];
}
function calcDaysTillIndyCC()
{
	<!-- Gets today date in millisecs
	var today = new Date();
	var todayInMillisecs = today.getTime();

	<!-- Calculates start date in millisecs
	var target = new Date(2006, 12, 28);
	var targetInMillisecs = target.getTime();

	daysLeft = Math.floor(((targetInMillisecs - todayInMillisecs) / (60*60*24)) / 1000);
	
	return daysLeft;
}