
var oldImg = '';
	var currActive = '';

	function swapImg(elem, newID, upDisplayStyle){
		if (!upDisplayStyle) upDisplayStyle = 'block';
		if (document.getElementById(newID)){
			if (oldImg){
				oldImg.style.display = 'none';
			}
			document.getElementById(newID).style.display = upDisplayStyle;
			oldImg = document.getElementById(newID);
		}else{
			alert('Image not found!!');
		}
	}

	function keepActive(elem, className){
		if (currActive){
			currActive.className = currActive.oldClass;
		}
		currActive = elem;
		currActive.oldClass = elem.className;
		elem.className = className;
	}

/* ====================================================================== */
/* ======       MOUSE-OVER						       ================== */
/* ====================================================================== */

function mOver(aObj){
	imgObj = aObj.getElementsByTagName('img');

	imgObj[0].src = imgObj[0].src.replace("_normal.","_over.");

	aObj.onmouseout = function()
	{
		imgObj[0].src = imgObj[0].src.replace("_over.","_normal.");
	}
}
function mOverButton(inpObj){

	inpObj.src = inpObj.src.replace("_normal.","_over.");

	inpObj.onmouseout = function()
	{
		this.src = this.src.replace("_over.","_normal.");
	}
}
function mActive(aObj){
	imgObj = aObj.getElementsByTagName('img');

	imgObj[0].src = imgObj[0].src.replace("_normal.","_active.");

	aObj.onmouseout = function()
	{
		imgObj[0].src = imgObj[0].src.replace("_active.","_normal.");
	}
}
