//Active Menus
    var _activeSubMenu = '';
    var _activeMainMenu = '';
//Timer Variables set in milliseconds 1000 = 1(s)
    var _oldCookie = null;
    var _newCookie = null;
    
//Basic Functions_____________________________

//redirects user to specified location, if target specified, opens in new window

function SendUser(where){
    window.location = where;
}
function ControlMenu(menuItemID,url){
    //Set the Default Cookie Expiration for 1 day
    var expireDate = new Date(today.getTime() + 1 * 24 * 60 * 60 * 1000);
    //Check to see if there is an old cookie
    _oldCookie = GetCookie('menuSection');
    //if _oldCookie exists, delete it
    if(_oldCookie != null){
        //Set expiration to a past date (1 day in the past)
        var expireOldDate = new Date(today.getTime() - 1 * 24 * 60 * 60 * 1000);
        SetCookie('menuSection',_oldCookie,expireOldDate,'/');
    }
    SetCookie('menuSection',menuItemID,expireDate,'/');
    _newCookie = GetCookie('menuSection');
    _labelMenu = _newCookie;
    
    if(url.toString() != '')
        SendUser(url);
}
/*
function Translator(current){
    _active = document.getElementById(current);
    RollOverMenu(_active);
}
*/
function Initialize(){
//Get Cookie
    _initCookie = GetCookie('menuSection');
    //if cookie is null do nothing, else set the right image
    if(_initCookie == null){
        _activeMainMenu = '';
        HideSubMenuArea();
    }else{
        ShowHideSub(_initCookie);
        _activeMainMenu = 'menuItem' + _initCookie;
        //Translator(_activeMainMenu)
        //Delete Cookie 
        _oldInitCookie = GetCookie('menuSection');
        //if _oldCookie exists, delete it
        if(_oldInitCookie != null){
            //Set expiration to a past date (1 day in the past)
            /*var expireOldInitDate = new Date(today.getTime() - 1 * 24 * 60 * 60 * 1000);
            SetCookie('menuSection',_oldInitCookie,expireOldInitDate,'/');*/
        }
    }
}

//Hides/Shows sub menu area mainly for "home" page
function HideSubMenuArea(){
    document.getElementById('subNavMenu2').style.display = "none";
    document.getElementById('subNavMenu3').style.display = "none";
    document.getElementById('subNavMenu4').style.display = "none";
    document.getElementById('subNavMenu5').style.display = "none";
    document.getElementById('subNavMenu6').style.display = "none";
}

function ShowSubMenuArea(subMenuNum){
    _activeSubMenu = 'subNavMenu' + subMenuNum;
    document.getElementById(_activeSubMenu).style.display = "block";
}

function ShowHideSub(subMenuNum){
    HideSubMenuArea();
    ShowSubMenuArea(subMenuNum);
}

//Change to the proper Image HERE
/*
function RollOverMenu(me)
{
    var img = new Image();
    var src = new String(me.firstChild.src);

    if(src.indexOf("-on.gif") > 0)
        img.src = src.substring(0, src.lastIndexOf("-on.gif")) + ".gif";
    else
        img.src = src.substring(0, src.lastIndexOf(".")) + "-on.gif";
    
    me.firstChild.src = img.src;
}
*/

Initialize();
<!-- Interpreted using Vango Markup Language, Version: 1.0.2 - Insight -->
<!-- Total Recursive Calls: 1 -->
<!-- Maximum Recursive Depth: 1 -->
<!-- Total Interpret Time: 00:00:00 -->
