
    function menuOut(el)
    {        
        el.getElementsByTagName("a")[0].style.color="";        
    }
    
    function menuIn(el)
    {
        el.getElementsByTagName("a")[0].style.color='#ffffff';
        window.status = el.getElementsByTagName("div")[0].innerHTML;
    }
    
    function findPosY(obj)
    {
        var curtop = 0;
        if (obj.offsetParent)
        {
            while (obj.offsetParent)
            {
                curtop += obj.offsetTop
                obj = obj.offsetParent;
            }
        }
        else if (obj.y)
            curtop += obj.y;
        return curtop;
    }
    
    function GetCookie(sName)
    {
        var aCookie = document.cookie.split("; ");
        for (var i=0; i < aCookie.length; i++)
        {
            var aCrumb = aCookie[i].split("=");
            if (sName == aCrumb[0]) 
            return unescape(aCrumb[1]);
        }
        
        return null;
    }
    
    //takes in a name value pair and writes it to a cookie
    function SetCookie(sName, sValue)
    {
        document.cookie = sName + "=" + escape(sValue) + ";expires=Mon, 31 Dec 2010 23:59:59 UTC;";
    }
    
    //takes in the name of a cookie and writes it to a cookie
    function DeleteCookie(sName, sValue)
    {
        document.cookie = sName + "=" + escape(sValue) + ";expires=Mon, 31 Dec 1999 23:59:59 UTC;";
    }
    
    function newWin(lnk)
    {
        window.open(lnk, "","height=200,width=250,status=0,scrollbars=0,location=0,resizable=0,screenX=70,screenY=40,top=70,left=500'");
    }