// JavaScript Document
a = new Array();

a[0] = new Image;
a[0].src = 'images/deutsch.jpg';

a[1] = new Image;
a[1].src = 'images/deutsch_aktiv.jpg';

a[2] = new Image;
a[2].src = 'images/english.jpg';

a[3] = new Image;
a[3].src = 'images/english_active.jpg';

function roll(img, nb) {
	document.getElementById(img).src = a[nb].src;
}

function Navi(id, color) {
	var element = document.getElementById(id);
	if (element.childNodes.length >= 3) {
		var nodeCount = 0;
		for (x=0; x < element.childNodes.length; x++) {
			if (element.childNodes[x].nodeName == "TD" && nodeCount > 0 ) {
				element.childNodes[x].style.backgroundColor = color;
			} else if (element.childNodes[x].nodeName == "TD" && nodeCount == 0) {
				nodeCount++;
			}
		}
	}
}