﻿
var ActiveSub = "";
var Parent = null;
function HideSubMenu() {
    if (ActiveSub != "") {
        document.getElementById(ActiveSub.toString()).style.display = 'none';
        ActiveSub = "";
    }
    if (Parent != null) {
        Parent.style.cssText = "";
        Parent = null;
    }
    
}
function ShowSubMenuItem(parent,item) {
    HideSubMenu();
    if (item != "") {
        ActiveSub = item;
        var left = "display:block;padding-left:" + (parent.offsetLeft + 5).toString() + "px";
        document.getElementById(item).style.cssText = left;
    }

}
function SetBackground(parent) {
    Parent = parent;
    parent.style.cssText = "background-color:#D6D1CC;color: #2F2149;";
}
