  var oLastBtn=0;

  function RaiseButton() {
    window.event.cancelBubble=true;
    oBtn = window.event.srcElement;
    var bChosen = false;
    if(oLastBtn && oLastBtn != oBtn) { HideButton(); }
    if(oBtn.buttonType) {
      oBtn.className = oBtn.buttonType + "Up";
      oLastBtn=oBtn;
    }
    else {
      oLastBtn = 0;
    }
  }

  function DepressButton() {
    window.event.cancelBubble=true;
    oBtn = window.event.srcElement;
    if(oBtn.buttonType) {
      oBtn.className = oBtn.buttonType + "Down";
    }
  }

  function HideButton()  {
    if ((oLastBtn.buttonType == "LeftNavChosen") || 
        (oLastBtn.buttonType == "LeftNavSubChosen") || 
        (oLastBtn.buttonType == "appNavChosen") || 
        (oLastBtn.buttonType == "appNavSubChosen")) {
      oLastBtn.className = oLastBtn.buttonType;
    }
    else {
      oLastBtn.className = oLastBtn.buttonType + "Off";
    }
  }

  function HideElements(iIDSiteContent) {
    sObjRef = 'divSiteContent' + iIDSiteContent;
    sImgRef = 'Arrow' + iIDSiteContent;

    oChild = eval(sObjRef)
    oImg = eval(sImgRef)

    if(oChild.style.display=='list-item') {
      oChild.style.display = 'none'
      oImg.src = 'images/nav_arrow_close.png'
    }
    else {
      oChild.style.display = 'list-item';
      oImg.src = 'images/nav_arrow_open.png'
    }
  }

  function SelectedItem(iIDSiteContent) {
    oFont = window.event.srcElement;
    alert(oFont.color)
    oFont.color = '#5565e1;'
    alert(oFont.color)
  }

  function Visibility() {
    if(divHey.style.visibility=='visible') {
    }
    else {
      divHey.style.visibility = 'visible';
    }
  }

  function bgRoll(strTextColor) {
    window.event.srcElement.style.backgroundColor = strTextColor;
    window.event.cancelBubble = true;
  }

  function fntRoll(strTextColor) {
    window.event.srcElement.style.color = strTextColor;
    window.event.cancelBubble = true;
  }
