var timeoutSnavPopup, curSNavObj;

function showMenu(snavID)
{
    clearTimeout(timeoutSnavPopup);
    this.curSNavObj = (document.layers)?document[snavID]:document.all?document.all[snavID]:document.getElementById(snavID);
    this.curSNavObj.style.display = "block";
}

function hideMenu(snavID)
{
    timeoutSnavPopup = setTimeout("clearSnavPopup()", 1000);
}

function clearSnavPopup()
{
    if(this.curSNavObj != null)
    {
        clearTimeout(timeoutSnavPopup);
        this.curSNavObj.style.display = "none";
	}
}

function roll(img, type)
{
    if (type == "on")
	    img.src = img.src.replace('_off','_on');
    else if (type == "off")
	    img.src = img.src.replace('_on','_off');
}