mTimeOut = 0;

function mShow(id)
{
	clearShow();
	stopTimer();
	
	catid = "sscat"+id;
	menu = document.getElementById(catid);
	menu.style.display = "block";
}

function goTimer() { mTimeOut = setTimeout(clearShow, 100); }
function goLTimer() { mTimeOut = setTimeout(clearShow, 500); }
function stopTimer() { clearTimeout(mTimeOut); }

function clearShow()
{
	for(var i=0; i<50; i++)
	{
		idtemp = document.getElementById("sscat"+i);
		if(idtemp) idtemp.style.display = "none";
		else break;
	}
}
