/*############################################################################################
	showSubNavi
############################################################################################*/

var activeNaviDropDownLayer = null;
function showSubNavi(obj)
{
	var ul = obj.nextSibling;
	var noSubNavi = 0;
	while(ul.className != "mainNaviDropDown") {
		if(ul.className == "naviButton" || !ul.nextSibling) { noSubNavi = 1; break; }
		ul = ul.nextSibling;
	}
	
	if(!noSubNavi) {
		ul.style.left = obj.offsetLeft -8 +  "px";
		obj.onmouseover = function() {
			if(activeNaviDropDownLayer) { activeNaviDropDownLayer.style.display="none"; }
			activeNaviDropDownLayer = ul;
			ul.style.display="block";
			$("hideNavi").style.display="block";
		}
		
		$("hideNavi").onmouseover = function() {
			activeNaviDropDownLayer.style.display="none";
			$("hideNavi").style.display="none";
		}
	} else {
		obj.onmouseover = function() {
			if(activeNaviDropDownLayer) { activeNaviDropDownLayer.style.display="none"; }
			$("hideNavi").style.display="none";
		}
	}
	obj.onmouseover();
}

function changeSrc(imgName)
{
	var path = "/pix/content/produkte/bilder/"
	$("imageContainer").src = path + "img" + imgName + ".jpg"
}


/*####################################################################################
	showCt
####################################################################################*/

var activeContent = null;
function showCt(id)
{
	if(activeContent) $(activeContent).style.display = "none";
	if(activeContent == id) { activeContent = null; }
	else {
		$(id).style.display = "block";
		activeContent = id; 
	}
	$('content').style.height = "auto";
	$('navigation').style.height = "auto";
	setContainerHeight();
}


/*####################################################################################
	showDiv
####################################################################################*/

 function showDiv(FormularBox,show)
 {
 	document.getElementById(FormularBox).style.display=(show) ? 'block' : 'none';
 	document.getElementById('formularDanke').style.display = "none";
	document.getElementById('formularLayer').style.display = "block";
 }



