function ChangeImage()
{
	global();
	SeedRand();// Ensures consecutive random numbers are not generated all the time
	var len = image.length;
	var no = Math.floor(Math.random() * len);
	if(no == len)
	{
		no = len - 1;
	}
	if(document.all)
	{
		document.all.td1.background = image[no];
	}
	if(!document.all && document.getElementById)
	{
		document.getElementById("td1").style.background = "url(" + image[no] + ")"; 
	}
	
}
function global()
{
//Here is the Image Collection. Any extra images should be added here.
	image = new Array();
	image[0] = "../../images/main_img_1.jpg";
	image[1] = "../../images/main_img_2.jpg";
	image[2] = "../../images/main_img_3.jpg";
	image[3] = "../../images/main_img_4.jpg";
	image[4] = "../../images/main_img_5.jpg";
	image[5] = "../../images/main_img_6.jpg";
	image[6] = "../../images/main_img_7.jpg";
	
}
function SeedRand()// Ensures consecutive random numbers are not generated all the time
{
	var t = (new Date()).getSeconds() * 500;
	for(var i=0;i < t;i++)
	{
		Math.random();
	}
}
