function Over(btnnr) {
  if (whichbutton == btnnr) Static(btnnr);
  else HighLight(btnnr);
}

function Out(btnnr) {
  if (whichbutton == btnnr) Static(btnnr);
  else UndoHighLight(btnnr);
  display("");
}

function Click(btnnr) {
  Change();
  whichbutton = btnnr;
  Static(whichbutton);
  parent.focus();
}

function display(msg) {
  window.status = msg;
}

function HighLight(btnnr) {
  if (conBrowser) {
    button = "switch" + btnnr;
    switchy = eval(button + "on");
    document [button].src = switchy.src;
  }
}

function UndoHighLight(btnnr) {
  if (conBrowser) {
    button = "switch" + btnnr;
    switchy = eval(button + "off");
    document [button].src = switchy.src;
  }     
}

function Static(btnnr) {
  if (conBrowser) {
    button = "switch" + btnnr;
    switchy = eval(button + "sta");
    document [button].src = switchy.src;
  }
}

function Change() {
  if (conBrowser) UndoHighLight(whichbutton);
}
