function init() {
	if(window.navigator.systemLanguage && !window.navigator.language) {
		// Unternavigation fuer IE ein- und ausblenden
		var LI = document.getElementById("nav-top").firstChild;
		do {
			if (sucheUL(LI.firstChild)) {
				LI.onmouseover=einblenden; 
				LI.onmouseout=ausblenden;
			}
			LI = LI.nextSibling;
		}
		while(LI);
	}
	// Entfernt die erste Linie vorm ersten Menuepunkt in der Hauptnavigation
	document.getElementById("nav-top").getElementsByTagName("li")[0].style.backgroundImage = "none";
	
	// Accordion Instanz aufrufen
	var accObj = document.getElementById("basic-accordian");
	if (accObj != null && accObj.getElementsByTagName("div").length > 0)
	{
		var accFirstObj = document.getElementById("acc1-header");
		if (accFirstObj != null)
		{
			accFirstObj.className = "accordion_headings header_highlight";
		}
		new Accordian('basic-accordian',5,'header_highlight');
	}
	
	// Seite zentrieren
	//pagePos();
}

function sucheUL(UL) {
	do {
		if(UL) UL = UL.nextSibling;
		if(UL && UL.nodeName == "UL") return UL;
	}
	while(UL);
	return false;
}

function einblenden() {
	var UL = sucheUL(this.firstChild);
	UL.style.display = "block";
}

function ausblenden() {
	sucheUL(this.firstChild).style.display = "none";
}

// Wurde mit CSS gemacht !!!
// Seite zentrieren
/*function pagePos() {
	if (document.all) {
		// IE
		var x = (document.body.clientWidth / 2) - 490;
		if (x < 10) x = 10;
		document.all["page-scope"].style.posLeft = x;
		document.all["nav-top-scope"].style.posLeft = x;
		if (document.documentElement.clientHeight == 0) {
			var y = (document.body.clientHeight - 600) / 2;
		} else {
			var y = (document.documentElement.clientHeight - 600) / 2;
		}
		if (y > 40) y = 40;
		if (y <= 0) y = 0;
		document.all["page-scope"].style.posTop = y;
		document.all["nav-top-scope"].style.posTop = y+26;
	} else if (document.getElementById) {
		// W3C
		var x = (window.innerWidth / 2) - 490;
		if (x < 10) x = 10;
		document.getElementById("page-scope").style.left = x + "px";
		document.getElementById("nav-top-scope").style.left = x + "px";
		var y = (window.innerHeight - 600) / 2;
		if (y > 40) y = 40;
		if (y <= 0) y = 0;
		document.getElementById("page-scope").style.top = y + "px";
		document.getElementById("nav-top-scope").style.top = (y + 26) + "px";

	}
}*/

window.onload=init;
//window.onresize=pagePos;