var actImg = "";

function changeImage (strImgName, strStatus, strLayerName, strStatusText)
{
	if (strStatus != "off" && strStatus != "on" && strStatus != "act")
	{
		strStatus = "off";
	}

	if (document.images && strImgName != "" && (strImgName != actImg || (strImgName == actImg && strStatus == "act")))
	{
		if (document.layers && strLayerName.length != "")
		{
			if (document.layers [strLayerName] && document.layers [strLayerName].document [strImgName])
			{
				document.layers [strLayerName].document [strImgName].src = eval (strImgName + "_" + strStatus + ".src");
			}
		}
		else
		{
			if (document [strImgName])
			{
				document [strImgName].src = eval (strImgName + "_" + strStatus + ".src");
			}
		}
	}
	if (strStatusText.length > 0)
	{
		window.status = strStatusText;
	}
}


function showImg (strImgName, strSrc, strLayerName, strStatusText)
{
	if (document.images && strImgName != "")
	{
		if (document.layers && strLayerName.length != "")
		{
			if (document.layers [strLayerName] && document.layers [strLayerName].document [strImgName])
			{
				document.layers [strLayerName].document [strImgName].src = strSrc;
			}
		}
		else
		{
			if (document [strImgName])
			{
				document [strImgName].src = strSrc;
			}
		}
	}
	if (strStatusText.length > 0)
	{
		window.status = strStatusText;
	}
}