/*
JavaScript functions used in THIS application
*/

/**************************
    Menu-hover for IE (http://www.htmldog.com/articles/suckerfish/dropdowns/)
**************************/

<!--//--><![CDATA[//>
<!--
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//--><!]]>


var height, links_hoehe, links_spalte, inhalt_spalte, inhalt_hoehe;
// dynamische anpassung der hoehe der spalten
function GroesseAnpassen() {
	height = 0;
	links_hoehe = 0;
	links_spalte = document.getElementById("leftbox");
	inhalt_spalte = document.getElementById("contentbox");
	links_hoehe = links_spalte.offsetHeight;
	inhalt_hoehe = inhalt_spalte.offsetHeight;

	if(links_hoehe < inhalt_hoehe) {
		height = inhalt_hoehe;
		//height	= height - 16;
		links_spalte.style.height = height + "px";
	}
window.setTimeout("GroesseAnpassen()",500);
}
