function initTables() {
  tables = document.getElementsByTagName("table");
  for (i = 0; i < tables.length; i++) {
    table = tables[i];
    if (table.className.indexOf('structural') < 0) {
		// go through table rows
		rows = table.getElementsByTagName("tr");
		for (j = 0; j < rows.length; j++) {
			row = rows[j];
			// if this is a th row, make the first th have a separately-settable left border
			ths = row.getElementsByTagName("th");
			if (ths.length > 0) {
				ths[0].className += " first";
			}
			// if j (zero-based row number) is even, make the td backgrounds white
			if (!(j % 2 - 1)) {
				tds = row.getElementsByTagName("td");
				for (k = 0; k < tds.length; k++) {
					tds[k].className += " whiterow";
				}
			}
		}
    }
  }
  initTablesOldOnload();
}

initTablesOldOnload = window.onload;
window.onload=function(){initTables();};