function fnRollover(target, type)
{
	target.src = target.src.replace('.' + type, '_on.' + type);
}

function fnRollout(target, type) { target.src = target.src.replace('_on.' + type, '.' + type); }

function fnAttachRollover(target, type)
{
	if (document.getElementById(target) != null)
	{
		imgs = document.getElementById(target).getElementsByTagName('IMG');
		for (var i = 0; i < imgs.length; i++)
		{
			if (imgs[i].src.indexOf('_on') < 0)
			{
				imgs[i].onmouseover = function() { fnRollover(this, type); }
				imgs[i].onmouseout = function() { fnRollout(this, type); }
				thisRoll = new Image();
				thisRoll.src = imgs[i].src.replace('.' + type, '_on.' + type);
			}
		}
	}
}