<!--
// EVENT-HANDLER DEFINITIONS
sOffBackColor    = new Array("#C0C0C0","#C0C0C0");
sOffTextColor    = new Array("#4F4F4F","#4F4F4F");
sOverBackColor   = new Array("#FABD05","#FABD05");
sOverTextColor   = new Array("#FFFFFF","#FFFFFF");
sDownBackColor   = new Array("#C0C0C0","#C0C0C0");
sDownTextColor   = new Array("#FFFFFF","#FFFFFF");
eActiveButton = null

// EVENT-HANDLER FUNCTIONS

function button_over(eButton,i) {
  // IF WE'RE JUST MOUSING ABOUT WITHIN THE BUTTON, THEN BAIL
  if (window.event && eButton.contains(window.event.fromElement)) return false;

  // OTHERWISE CHANGE BUTTON STYLE
  if (eActiveButton != eButton) {
    if (i<2) {
      eButton.style.backgroundColor = sOverBackColor[i];
      eButton.style.color = sOverTextColor[i];
    }
    if (eButton.getElementsByTagName("IMG")[0]) eButton.getElementsByTagName("IMG")[0].style.visibility="visible";
  }
}

function button_out(eButton,i) {
  // IF WE'RE JUST MOUSING ABOUT WITHIN THE BUTTON, THEN BAIL
  if (window.event && eButton.contains(window.event.toElement)) return false;

  // OTHERWISE CHANGE BUTTON STYLE
  if (eActiveButton != eButton) {
    if (i<2) {
      eButton.style.backgroundColor = sOffBackColor[i];
      eButton.style.color = sOffTextColor[i];
    }
    if (eButton.getElementsByTagName("IMG")[0]) eButton.getElementsByTagName("IMG")[0].style.visibility="hidden";
  }
}

function button_up(eButton,i) {
  // IF ANOTHER BUTTON IS ACTIVE, RESET IT
  if (null != eActiveButton && eButton != eActiveButton) {
    if (i<2) {
      eActiveButton.style.backgroundColor = sOffBackColor[i];
      eActiveButton.style.color = sOffTextColor[i];
    }
    if (eActiveButton.getElementsByTagName("IMG")[0]) eActiveButton.getElementsByTagName("IMG")[0].style.visibility="hidden";
    eActiveButton = null;
  }

  // IF THE BUTTON WE CLICKED IS NOT THE ACTIVE BUTTON, MAKE IT ACTIVE
  if (eButton != eActiveButton) {
    eActiveButton = eButton;
    if (i<2) {
      eActiveButton.style.backgroundColor = sDownBackColor[i];
      eActiveButton.style.color = sDownTextColor[i];
    }
    if (eActiveButton.getElementsByTagName("IMG")[0]) eActiveButton.getElementsByTagName("IMG")[0].style.visibility="visible";
  }
}
//-->
