function do_hover() { if (this.className.charAt(0) != '-') this.className='-'+this.className+' hovered';}
function un_hover() { if (this.className.charAt(0) == '-') this.className=this.className.substring(1,this.className.length-8); }

function initTableHover() {
  var rows = getElementsByClassName('r0');
  for (var i=0;i<rows.length;i++) {
  	rows[i].onmouseover = do_hover;
    rows[i].onmouseout = un_hover;
  }
  var rows=getElementsByClassName('r1');
  for (var i=0;i<rows.length;i++) {
  	rows[i].onmouseover = do_hover;
    rows[i].onmouseout = un_hover;
  }
}

addLoadEvent(initTableHover);


function setPointer(theRow, thePointerColor) {
  if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
    return false;
  }
  if (typeof(document.getElementsByTagName) != 'undefined') {
    var theCells = theRow.getElementsByTagName('td');
  } else {
    if (typeof(theRow.cells) != 'undefined') {
      var theCells = theRow.cells;
    } else {
      return false;
    }
  }
  var rowCellsCnt  = theCells.length;
  for (c = 0; c < rowCellsCnt; c++) {
    theCells[c].style.backgroundColor = thePointerColor;
  }
  return true;
}

