function mOvr(src, clrOver)
{
    if (!src.contains(event.fromElement))
    {
        src.style.cursor = 'default';
        src.bgColor = clrOver;
    }
}

function mOut(src, clrIn)
{
    if (!src.contains(event.toElement))
    {
        src.style.cursor = 'default';
        src.bgColor = clrIn;
    }
}

function mClk(src)
{
    if (event.srcElement.tagName == 'TD')
    {
        src.children.tags('A')[0].click();
    }
}

function menuFix()
{
    var sfEls = document.getElementById("nav").getElementsByTagName("li");
    for (var i = 0; i < sfEls.length; i++)
    {
        sfEls[i].onmouseover = function()
        {
            this.className += (this.className.length > 0 ? " " : "") + "sfhover";
        }
        sfEls[i].onMouseDown = function()
        {
            this.className += (this.className.length > 0 ? " " : "") + "sfhover";
        }
        sfEls[i].onMouseUp = function()
        {
            this.className += (this.className.length > 0 ? " " : "") + "sfhover";
        }
        sfEls[i].onmouseout = function()
        {
            this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"), "");
        }
    }
}
