var menulinks = ["index", "quelltexte", "errata", "links", "ressourcen"];
var menuprefix = "m";

for (var i = 0; i < menulinks.length; i++) {
	if (document.URL.indexOf(menulinks[i]) >= 0)
		changeCellColor(menuprefix,i+1);
}

function changeCellColor(prefix,celno) {
	var chgcell
	if (document.layers) { //browser is NN
		for (var i = 1; i < 2; i++) {
			chgcell = "window.document." +prefix + i + ".bgColor='white'";
			eval(chgcell);
		}
		chgcell = "window.document."+ prefix + celno + ".bgColor='lightgrey'";
	}
	else { // assume IE5
		for (var index =1; index < 2; index++) {
			clrIt = "document.getElementById('"+ prefix + index +"').bgColor='white'";
			eval(clrIt);
		}
		chgcell = "document.getElementById('"+ prefix + celno + "').bgColor='lightgrey'";
	}
 	eval(chgcell);
}