function start_index_timer()
{
	setTimeout("insertCode('Scripts/new_homepage_image.php','new_homepage_image',10000)",10000);
}

function insertCode(fnURL,fnID,fnRepeat)
{
	var xmlHttp;
	try
	{
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		// Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try
			{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				return false;
			}
		}
	}
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==4)
		{
			document.getElementById(fnID).innerHTML=xmlHttp.responseText;
		}
	}
	xmlHttp.open("GET",fnURL,true);
	xmlHttp.send(null);
	if(fnRepeat>0)
	{
		quotes="\"";
		setTimeout("insertCode("+quotes+"Scripts/new_homepage_image.php"+quotes+","+quotes+"new_homepage_image"+quotes+","+fnRepeat+")",fnRepeat);
	}
	return true;
}