// ##### ZENTRALE VARIABLEN #####
var typSchau = "Hi";

// ##### FENSTER-FUNKTIONEN #####
function neuesFenster(adresse, modus) {
	if (modus == "fullscreen") popFS(adresse);
	else popStd(adresse);
}

function popFS(url) {
	var resX = 1024;
	var resY = 768;
	resX = screen.width;
	resY = screen.height;
	if (resX < 1024 || resY < 768) typSchau = "Lo";
	var fsWin = window.open(url, "", "toolbar=0, locationbar=0");
	fsWin.moveTo(0,0);
	fsWin.resizeTo(resX, resY);
}

function popStd(url) {
	var stdWin = window.open(url, "", "");
}

// ##### TEXTE AUF- UND ZUKLAPPEN #####
function aufklappen(id) {
	var eTag = document.getElementById([id]).tagName;
	for (i=0; i<document.getElementsByTagName([eTag]).length; i++) {
		with (document.getElementsByTagName([eTag])[i]) {
			if (className == "zugeklappt") {
				style.display = "none";
				parentNode.firstChild.style.fontSize = "12px";
				parentNode.firstChild.style.color = "#f571ad";
			}
		}
	}
	with (document.getElementById([id])) {
		style.display = "block";
		parentNode.firstChild.style.fontSize = "14px";
		parentNode.firstChild.style.color = "#969";
	}
}


