function setImageHeight() {
	if (!document.getElementById) return true;
	document.getElementById('positioning_image1').height = document.body.clientHeight - 69 - 1 - 49 - 25;
}


function displayFlyoutMenu(id) {
	if (!document.getElementById) return true;
//zur sicherheit testen, ob objekt auch wirklich da (liefert true wenn nicht(!) da, weil dann der rufende link normal weiter arbeitet
	if (!window.document.getElementById('flyout')) return true;
//evtl. altes menü wegmachen
	hideFlyoutMenu();
//flyout_content enthält den innerText jeder dritten ebene als ein array element
	if (flyout_content[id]) {
	//y position des menüs bestimmen indem man sich durch alle elterndivs hangelt
		y = 0;
		o = window.document.getElementById('div_'+id);
		if (o.offsetParent)	{
			while (o.offsetParent) {
				y += o.offsetTop
				o = o.offsetParent;
			}
		}
		window.document.getElementById('flyout').style.display = 'none';
		window.document.getElementById('flyout').style.top = y;
		window.document.getElementById('flyout').innerHTML = flyout_content[id];
		window.document.getElementById('flyout').style.display = 'block';
		window.document.getElementById('flyout').onmouseleave = hideFlyoutMenu;

		window.document.body.onclick = hideFlyoutMenu;
	}
	return true;
}
function hideFlyoutMenu() {
	if (!document.getElementById) return true;
	window.document.getElementById('flyout').style.display = 'none';
	return true;
}
function hideFlyoutMenu2() {
	if (!document.getElementById) return true;
	window.document.getElementById('flyout').style.display = 'none';
	highlightItem(currentitem);
	return true;
}

function highlightItem(id) {
	if (!document.getElementById) return true;
	normalizeItem(currentitem);
	if (window.document.images['img_'+id]) {
		//window.document.images['img_'+id].src = '../images/yellow.gif';
		window.document.getElementById('lnk_'+id).className = 'submenulinkactive';
		window.document.getElementById('div_'+id).className = 'submenuleftactive';
	}

	window.document.getElementById('lnk_7_4').className = 'submenulinkred';
	window.document.getElementById('lnk_7_5').className = 'submenulinkred';

	return true;
}
function normalizeItem(id) {
	if (!document.getElementById) return true;
	if (window.document.images['img_'+id]) {
		//window.document.images['img_'+id].src = '../images/white.gif';
		window.document.getElementById('lnk_'+id).className = 'submenulink';
		window.document.getElementById('div_'+id).className = 'submenuleft';
	}

	window.document.getElementById('lnk_7_4').className = 'submenulinkred';
	window.document.getElementById('lnk_7_5').className = 'submenulinkred';

	return true;
}
function highlightFlyoutItem(o) {
	if (!document.getElementById) return true;
	o.className = 'flyoutitemactive';
	return true;
}
function normalizeFlyoutItem(o) {
	if (!document.getElementById) return true;
	o.className = 'flyoutitem';
	return true;
}


function displayTicker() {
	if (document.getElementById('ticker')) {
		document.getElementById('ticker').innerHTML = ticker_text[i];
		i++
		if (i == countpl) i = 0;
	}
	return true;
}


// JS function for uncrypting spam-protected emails:
function UnCryptMailto(s) {	//
	var n=0;
	var r="";
	for(var i=0; i < s.length; i++) {
		n=s.charCodeAt(i);
		if (n>=8364) {n = 128;}
		r += String.fromCharCode(n-(2));
	}
	return r;
}
// JS function for uncrypting spam-protected emails:
function linkTo_UnCryptMailto(s)	{	//
	location.href=UnCryptMailto(s);
}
