astrSVPopupNavLabels = new Array(); // used to keep track of all popup nav labels
atmrSVPopupNav = new Array();

function fncSVShowNavPopup(strPopupLabel) {
  if (document.getElementById('idSVNavPopupContainer_' + strPopupLabel)) {
    document.getElementById('idSVNavPopupContainer_' + strPopupLabel).style.display = "block";
    if (typeof(fncSVAddClass) == "function") {
      fncSVAddClass(document.getElementById('idSVNav_bigbuttonbar_' + strPopupLabel),"clsSVNavHover");
    }
  }
}
function fncSVHideNavPopup(strPopupLabel) {
  fncSVCancelHideNavPopup(strPopupLabel)
  if (document.getElementById('idSVNavPopupContainer_' + strPopupLabel)) {
    document.getElementById('idSVNavPopupContainer_' + strPopupLabel).style.display = "none";
    if (typeof(fncSVRemoveClass) == "function") {
      fncSVRemoveClass(document.getElementById('idSVNav_bigbuttonbar_' + strPopupLabel),"clsSVNavHover");
    }
  }
}

function fncSVHideNavPopupAll() {
  for (var i=0;i<astrSVPopupNavLabels.length;i++) {
    fncSVHideNavPopup(astrSVPopupNavLabels[i])
  }
}

function fncSVDelayHideNavPopup(strPopupLabel) {
  atmrSVPopupNav[strPopupLabel] = setTimeout("fncSVHideNavPopup('" + strPopupLabel + "');",500);
}
function fncSVLongDelayHideNavPopup(strPopupLabel) {
  atmrSVPopupNav[strPopupLabel] = setTimeout("fncSVHideNavPopup('" + strPopupLabel + "');",1200);
}
function fncSVCancelHideNavPopup(strPopupLabel) {
  clearTimeout(atmrSVPopupNav[strPopupLabel]);
  atmrSVPopupNav[strPopupLabel] = null;
}
