	/* This function is called on loading. */
	function init() {
		var container = document.getElementById("teamOverviewText_container");
		// delete all elements in the container
		while (container.hasChildNodes()) {
			container.removeChild(container.firstChild);
		}
		var defaultText = document.getElementById("person_intro").firstChild;
		while (defaultText.nextSibling != null) {
			container.appendChild(defaultText.cloneNode(true));
			defaultText = defaultText.nextSibling;
		}
	}


	/* This function fades the text layer in.
	 * It should be called when the mouse is over the container layer.
	 */
	function TextFadeIn() {
		document.getElementById("category_text").style.visibility = "visible";
		document.getElementById("category_image").style.visibility = "hidden";
	}

	/* This function fades the text layer out.
	 * It should be called when the mouse leaves the container layer.
	 */
	function TextFadeOut() {
		document.getElementById("category_image").style.visibility = "visible";
		document.getElementById("category_text").style.visibility = "hidden";
	}

	/* This function shows the text corresponding to an image.
	 * It should be called when the mouse is over an image.
	 */
	function PhotoFadeIn(id) {
		var divs = document.getElementById("photo_"+id).getElementsByTagName("div");
		for (var i=0; i<divs.length; i++) {
			/*if (divs[i].className == "teamOverview_imageDefault") {
				divs[i].style.display = "none";
			}*/
			if (divs[i].className == "teamOverview_imageHighlighted") {
				divs[i].style.display = "block";
			}
		}
		var container = document.getElementById("teamOverviewText_container");
		var person = document.getElementById("person_"+id);
		// delete all elements in the container
		while (container.hasChildNodes()) {
			container.removeChild(container.firstChild);
		}
		// and add new element to the container
		container.appendChild(person.cloneNode(true));
	}

	/* This function shows the default text.
	 * It should be called when the mouse leaves an image.
	 */
	function PhotoFadeOut(id) {
		var divs = document.getElementById("photo_"+id).getElementsByTagName("div");
		for (var i=0; i<divs.length; i++) {
			if (divs[i].className == "teamOverview_imageHighlighted") {
				divs[i].style.display = "none";
			}
			if (divs[i].className == "teamOverview_imageDefault") {
				divs[i].style.display = "block";
			}
		}
		var container = document.getElementById("teamOverviewText_container");
		var defaultText = document.getElementById("person_intro").firstChild;
		// delete all elements in the container
		while (container.hasChildNodes()) {
			container.removeChild(container.firstChild);
		}
		// and add new elements to the container
		while (defaultText != null) {
			container.appendChild(defaultText.cloneNode(true));
			defaultText = defaultText.nextSibling;
		}
	}


	/* This function highlights the given element, 
	 * using the colors for the upper navigational row. 
	 */
//	function setActiveCellUpper(argId1, argId2) {
//		document.getElementById(argId1).style.backgroundColor = "#EE9C10";
//		document.getElementById(argId2).style.backgroundColor = "#EE9C10";
//		document.getElementById(argId2).style.borderColor = document.getElementById(argId2).style.color;
//		document.getElementById(argId2).style.color = "#FFFFFF";
//	}

	/* This function highlights the given element, 
	 * using the colors for the lower navigational row. 
	 */
//	function setActiveCellLower(argId1, argId2) {
//		document.getElementById(argId1).style.backgroundColor = "#FFB330";
//		document.getElementById(argId2).style.backgroundColor = "#FFB330";
//		document.getElementById(argId2).style.borderColor = document.getElementById(argId2).style.color;
//		document.getElementById(argId2).style.color = "#FFFFFF";
//	}

	/* This function sets the highlighted element back to normal, 
	 * using the colors for the upper navigational row. 
	 */
//	function setNormalCellUpper(argId1, argId2) {
//		document.getElementById(argId1).style.backgroundColor = "#4F4C10";
//		document.getElementById(argId2).style.backgroundColor = "#4F4C10";
//		document.getElementById(argId2).style.color = document.getElementById(argId2).style.borderColor;
//	}

	/* This function sets the highlighted element back to normal, 
	 * using the colors for the lower navigational row. 
	 */
//	function setNormalCellLower(argId1, argId2) {
//		document.getElementById(argId1).style.backgroundColor = "#969343";
//		document.getElementById(argId2).style.backgroundColor = "#969343";
// 		document.getElementById(argId2).style.color = document.getElementById(argId2).style.borderColor;
//	}

	/* This function sets the highlighted element back to normal, 
	 * using the colors for the sub-navigational row. 
	 */
//	function setNormalCellSubnav(argId1, argId2) {
//		document.getElementById(argId1).style.backgroundColor = "#A6A35A";
//		document.getElementById(argId2).style.backgroundColor = "#A6A35A";
//		document.getElementById(argId2).style.color = document.getElementById(argId2).style.borderColor;
//	}

	/* This function reads the URL from a link tag and calls this URL. */
	function goToLink(argId) {
		window.location.href = document.getElementById(argId).href;
	}


	/* This function prints the current date in German. */
	function printCurrentDate_de() {
		/* get the current date, based on the client computer */
		var now = new Date();
		var day = now.getDate();
		var month = now.getMonth() + 1;  /* 1..12 instead of 0..11 */
		var year = now.getFullYear();
		var day_of_week = now.getDay();
		var names_of_months = new Array("dummy", "Januar", "Februar", "M&auml;rz", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember");
		var names_of_weekdays = new Array("Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Sonnabend");

		/* print day and month */
		document.write(names_of_weekdays[day_of_week] + ",<br>" + day + ". " + names_of_months[month] + " " + year);
	}


	/* This function prints the current date in English. */
	function printCurrentDate_en() {
		/* get the current date, based on the client computer */
		var now = new Date();
		var day = now.getDate();
		var month = now.getMonth() + 1;  /* 1..12 instead of 0..11 */
		var year = now.getFullYear();
		var day_of_week = now.getDay();
		var names_of_months = new Array("dummy", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
		var names_of_weekdays = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");

		/* print day and month */
		document.write(names_of_weekdays[day_of_week] + ",<br>" + names_of_months[month] + " " + day + "th " + " " + year);
	}
