// JavaScript Document
function clearAllActive(host) {
	var allLis = host.parentNode.getElementsByTagName('li');
	for (i=0; i<allLis.length; i++) {
		allLis[i].className='';
	}
}
function setToActive(host, direction) {
	clearAllActive(host);
	if (host.getElementsByTagName('ul').length>0) {
		host.className='active';
		if (direction=='in')
			host.getElementsByTagName('ul')[0].style.display='block';
		if (direction=='out')
			host.getElementsByTagName('ul')[0].style.display='none';
	}
}
function makeHeight() {
	var mainPlaceHolder = document.getElementById('mainPlaceHolder');
	if (document.body.offsetHeight>720) {
		mainPlaceHolder.style.height = document.body.offsetHeight+'px';
	} else {
		mainPlaceHolder.style.height = 720+'px';
	}
}
window.onresize = function() {
	makeHeight();
}
function vergleiche(Eintrag, host) {
	if (Eintrag==Rubrik) {
		host.className='active';
	}
}

