// JavaScript Document
<!-- Browser-Ernennung
var Brow = browserDetect();
function browserDetect(){
  if(navigator.appName =='Netscape'){
    Brow = 'Net';}
  if(navigator.appName =='Microsoft Internet Explorer'){
    Brow = 'IE';}
	return (Brow);
};
//-->
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->

<!-- Layer-Menue
////No need to edit beyond here

var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
var ns6=document.getElementById&&!document.all
var par;
var layerid;

function showmenu(e,layer){
//alert(document.getElementById("meter").offsetWidth);
	if (!document.getElementById)
		return
		
	if (!layer || layer == "")
		return

	clearhidemenu()

	if(layerid){document.getElementById(layerid).style.visibility="hidden"};
	menuobj=document.getElementById(layer);
	layerid=layer;
	menuobj.thestyle=menuobj.style;
	clearselect();//

	menuobj.contentwidth=menuobj.offsetWidth;
	menuobj.contentheight=menuobj.offsetHeight;
	menuobj.thestyle.visibility="visible"
	return false
}

function select(p){
par=document.getElementById(p);
par.style.backgroundImage = "url(images/layout/navi/navi_bg_1_hover.png)";
//par.style.backgroundColor = "#9dc5ed";
}
function clearselect(){
//par=document.getElementById(p);
if(par){if(par.style.backgroundImage=="url(images/layout/navi/navi_bg_1_hover.png)") par.style.backgroundImage = "url(images/layout/navi/navi_bg_1.png)";};//
}

function contains_ns6(a, b) {
//Determines if 1 element in contained in another- by Brainjar.com
	while (b.parentNode)
		if ((b = b.parentNode) == a)
		return true;
		return false;
}

function hidemenu(){
	if (window.menuobj)
		menuobj.thestyle.visibility="hidden";
	clearselect();//
}

function dynamichide(e){
	if (ie4&&!menuobj.contains(e.toElement))
		hidemenu()
	else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
		hidemenu()
}

function delayhidemenu(){
	if (ie4||ns6)
		delayhide=setTimeout("hidemenu()",500)
}

function clearhidemenu(){
	if (window.delayhide)
		clearTimeout(delayhide)
}

if (ie4||ns6) document.onclick=hidemenu();
//ende Layermenu
//-->
/*ZOOM SERACH*/
<!--
function zoomSearch(sid){
    id1 = "search";
    id2 = "searchzoom";
    var divo = 0;
    if(document.getElementById(sid).id == id1){
        document.getElementById(sid).id = id2;
        document.getElementById('search_in').focus();
        document.divo = 1;
    }else if(divo != 1){
        document.getElementById(sid).id = id1;
    }
}

//-->
/*ENDE: ZOOM SERCH*
/*DIV-KlappFUNKTION*/
<!-- DIV
function MM_ShowDiv() { //v3.0 Klappfunktion
  var i,j=0,x,a=MM_ShowDiv.arguments; document.MM_Div=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){;
   	document.MM_Div[j++]=x; if(!x.oDiv) x.oDiv=x.style.display; x.style.display=a[i+2];
   	/*document.MM_Div2=a[i]+'L';document.getElementById(a[i]+'L').style.color="#ffffff";
	document.getElementById(a[i]+'L').parentNode.className = "linkliste_active";*/
	document.getElementById('txt5steps').style.display = "none";
	/*document.getElementById('navisteps').style.display = "block";*/
	if(document.getElementById('margin_'+a[i])) {
		document.getElementById('margin_right2').innerHTML = document.getElementById('margin_'+a[i]).innerHTML;
		document.getElementById('margin_right2').style.display = 'block';
		scrollTo(0,0);
	}
	}
}
//-->
<!-- DIV Restore
function MM_RestoreDiv() { //v3.0 Klappfunktion
  var i,x,a=document.MM_Div;
  for(i=0;a&&i<a.length&&(x=a[i])&&x.oDiv;i++){
	  	x.style.display=x.oDiv;
  		/*document.getElementById(document.MM_Div2).style.color="";
		document.getElementById(document.MM_Div2).parentNode.className = "linkliste";*/
  }
}
//-->

<!-- FAQ
function MM_ShowDivK() { //v3.0 Klappfunktion
  var i,j=0,x,a=MM_ShowDivK.arguments; document.MM_DivK=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){;
   	document.MM_DivK[j++]=x; if(!x.oDivK) x.oDivK=x.style.display; x.style.display=a[i+2];
   	document.MM_DivK2=a[i]+'L';/*document.getElementById(a[i]+'L').style.color="#ffffff";*/
	document.getElementById(a[i]+'L').parentNode.className = "linkliste_active";
	}
}
//-->
<!-- FAQ Restore
function MM_RestoreDivK() { //v3.0 Klappfunktion
  var i,x,a=document.MM_DivK;
  for(i=0;a&&i<a.length&&(x=a[i])&&x.oDivK;i++){
	  	x.style.display=x.oDivK;
  		/*document.getElementById(document.MM_DivK2).style.color="";*/
		document.getElementById(document.MM_DivK2).parentNode.className = "linkliste";
  }
}
//-->
/*Ende: DIV-KlappFUNKTION*/

