function alternateRowColors() {
	var rowcolor = '#ddebca';
	var rows, arow;
	var tables = document.getElementsByTagName("table");
	var rowCount = 0;
	for(var i=0;i<tables.length;i++) {
		//dump(tables.item(i).className + " " + tables.item(i).nodeName + "\n");
		if(tables.item(i).className == 'alternating' || tables.item(i).className == 'WikiTable') {
			atable = tables.item(i);
			rows = atable.getElementsByTagName("tr");
			for(var j=0;j<rows.length;j++) {
				arow = rows.item(j);
				if(arow.nodeName == "TR") {
					if(rowCount % 2) {
						arow.style.backgroundColor = rowcolor;
					} else {
						arow.style.backgroundColor = '#ffffff';
						// default case
					}
					rowCount++;
				}
			}
			rowCount = 0;
        }
	}
}
