var isNS4 = document.layers ? 1 : 0;
var myCurEl = null;

function mapOver(clLeft,clTop,clRight,clBot,element)
{
	if (element == null)
		element = "elMainMenuOver";
	var	whichElement = WM_checkIn(element);
	myCurEl = element;

	if (isNS4) {
	    whichElement.clip.top = clTop;
	    whichElement.clip.right = clRight;
	    whichElement.clip.bottom = clBot;
	    whichElement.clip.left = clLeft;
	}
	else {
	    whichElement.clip = "rect(" + clTop + " " + clRight + " " + clBot + " " + clLeft + ")";
	}
	
	whichElement.visibility = "visible";
}

function mapOut()
{
	if (myCurEl)
	{
		var tempEl = WM_checkIn(myCurEl);
		tempEl.visibility = 'hidden';
		myCurEl = null;
	}
}
