var imgsLoaded = false;
var restoreTimeOut;
var origImgSrc;

function changeImg(num, pageName)
{
	if (document.images && imgsLoaded)
	{	
		clearTimeout(restoreTimeOut);
		var imgSrc = "/Neaman/_illustrations/" + pageName + "_" + num + ".jpg";
		document.images["homeImg"].src = imgSrc;
	}
}

function restoreImg()
{	
	if (document.images && imgsLoaded)
	{	
		restoreTimeOut = setTimeout("document.images['homeImg'].src = origImgSrc;", 200);
	}
}

function imgInit()
{
	imgsLoaded = true;
	origImgSrc = document.images['homeImg'].src;
	init();
}
window.onload = imgInit;
