function Over(btnnr, color) {
//  button = "btn_" + btnnr;
//  if (whichbutton != button) HighLight(btnnr, color);
  if (whichbutton == btnnr) Static(btnnr, color);
  else HighLight(btnnr, color);
}

function Out(btnnr, color) {
//  button = "btn_" + btnnr;
//  alert(whichbutton+' '+button);
  if (whichbutton != btnnr) UndoHighLight(btnnr, color);
//  if (whichbutton == btnnr) Static(btnnr, color);
//  else UndoHighLight(btnnr, color);
  display("");
}

function Click(btnnr, color, clickcolor) {
  Change(color);
  whichbutton = btnnr;
  Static(whichbutton, clickcolor);
  parent.focus();
}

function display(msg) {
  window.status = msg;
}

function HighLight(btnnr, color) {
  if (conBrowser) {
    button = "btn_" + btnnr;
//    switchy = eval(button + "on");
    switchy = eval(button);
//    switchy = document.forms['navbar'].getElementById(button);
    switchy.style['background'] = color;
  }
}

function UndoHighLight(btnnr, color) {
  if (conBrowser) {
    button = "btn_" + btnnr;
//    switchy = eval(button + "off");
    switchy = eval(button);
//    switchy = document.forms['navbar'].getElementById(button);
    switchy.style['background'] = color;
  }     
}

function Static(btnnr, color) {
  if (conBrowser) {
    button = "btn_" + btnnr;
//    switchy = eval(button + "sta");
    switchy = eval(button);
//    switchy = document.forms['navbar'].getElementById(button);
    switchy.style['background'] = color;
  }
}

function Change(color) {
  if (conBrowser) UndoHighLight(whichbutton, color);
}

