// default
function highlightRows() {
  if(!document.getElementsByTagName) return false;
  var rows = document.getElementsByTagName("tr");
  for (var i=0; i<rows.length; i++) {
  	if (rows[i].getAttribute("class") == null) { rows[i].onmouseover = function() { this.className = "trHighlight"; }
   	rows[i].onmouseout = function() { this.className = " "; }	
    }
  }
}

// single rule, regular text
function highlightRows2() {
  if(!document.getElementsByTagName) return false;
  var rows = document.getElementsByTagName("tr");
  for (var j=0; j<rows.length; j++) {
  	if (rows[j].className == "ruleBelow") { rows[j].onmouseover = function() { this.className = "trHighlight2"; }
   	rows[j].onmouseout = function() { this.className = "ruleBelow"; }	
    }
  }
}

// single rule, bold text
function highlightRows3() {
  if(!document.getElementsByTagName) return false;
  var rows = document.getElementsByTagName("tr");
  for (var j=0; j<rows.length; j++) {
  	if (rows[j].className == "ruleBelowBold") { rows[j].onmouseover = function() { this.className = "trHighlight3"; }
   	rows[j].onmouseout = function() { this.className = "ruleBelowBold"; }	
    }
  }
}

// double rule, regular text
function highlightRows4() {
  if(!document.getElementsByTagName) return false;
  var rows = document.getElementsByTagName("tr");
  for (var j=0; j<rows.length; j++) {
  	if (rows[j].className == "doubleRuleBelow") { rows[j].onmouseover = function() { this.className = "trHighlight4"; }
   	rows[j].onmouseout = function() { this.className = "doubleRuleBelow"; }	
    }
  }
}

// double rule, bold text
function highlightRows5() {
  if(!document.getElementsByTagName) return false;
  var rows = document.getElementsByTagName("tr");
  for (var j=0; j<rows.length; j++) {
  	if (rows[j].className == "doubleRuleBelowBold") { rows[j].onmouseover = function() { this.className = "trHighlight5"; }
   	rows[j].onmouseout = function() { this.className = "doubleRuleBelowBold"; }	
    }
  }
}

addLoadEvent(highlightRows);
addLoadEvent(highlightRows2);
addLoadEvent(highlightRows3);
addLoadEvent(highlightRows4);
addLoadEvent(highlightRows5);
