/* zebra tables */
/* Note: for IE, "className" is used instead of "class" */
function stripeTables () {
	if (document.getElementsByTagName) {
		var tables = document.getElementsByTagName("table");
		for (var i = 0; i < tables.length; i++) {
			var tableRows = tables[i].getElementsByTagName("tr");
			// See if there is a table cell in teh first row - need to account for header col
			var headers = tableRows[0].getElementsByTagName("td");
			if (headers.length == 0) {
				var headRow = true;
			} else {
				var headRow = false;
			}
			for (var j = 0; j < tableRows.length; j++ ) {
				var row = tableRows[j];
				if (j % 2) {
					if (!headRow) {
						row.className = "even";
					} 
				} else {
					if (j > 0 && headRow) {
						// alert (row.getAttribute('class'));
						row.className = "even";
					}
				}
			}
		}
	}	
}