// Naviagtion

function navigation (active) {
	
	var page = new Array ();
	page[0] = "Home";
	
	var active = active;
	
	
	
	document.write("<ul>");
	if (active == 'home') {
		document.write("<li id=\"active\"><a href=\"index.html\">Home</a></li>");
	} else {
		document.write("<li><a href=\"index.html\">Home</a></li>");
	}	
	
	if (active == 'praxis') {
		document.write("<li id=\"active\"><a href=\"praxis.html\">&Uuml;ber die Praxis</a></li>");
	} else {
		document.write("<li><a href=\"praxis.html\">&Uuml;ber die Praxis</a></li>");
	}	
	//
	if (active == 'frueh') {
		document.write("<li id=\"active\"><a href=\"fruehfoerderung.html\">Fr&uuml;hf&ouml;rderung</a></li>");
	} else {
		document.write("<li><a href=\"fruehfoerderung.html\">Fr&uuml;hf&ouml;rderung</a></li>");
	}	
	//
	if (active == 'schulkind') {
		document.write("<li id=\"active\"><a href=\"schulkind.html\">Schulkindf&ouml;rderung</a></li>");
	} else {
		document.write("<li><a href=\"schulkind.html\">Schulkindf&ouml;rderung</a></li>");
	}
	//
	if (active == 'kosten') {
		document.write("<li id=\"active\"><a href=\"kosten.html\">Kosten</a></li>");
	} else {
		document.write("<li><a href=\"kosten.html\">Kosten</a></li>");
	}
	//
	if (active == 'kontakt') {
		document.write("<li id=\"active\"><a href=\"kontakt.html\">Kontakt</a></li>");
	} else {
		document.write("<li><a href=\"kontakt.html\">Kontakt</a></li>");
	}
	//
	
	//document.write("<li></li>");
	document.write("</ul>");
}


function subnavigation (active) {
	
	
	var active = active;
	
	document.write("<ul>");
	if (active == 'leistungen') {
		document.write("<li id=\"active\">&nbsp;<a href=\"praxis.html\">Unsere Leistungen</a></li>");
	} else {
		document.write("<li>&nbsp;<a href=\"praxis.html\">Unsere Leistungen</a></li>");
	}	
	//
	if (active == 'team') {
		document.write("<li id=\"active\">&nbsp;<a href=\"team.html\">Unser Team</a></li>");
	} else {
		document.write("<li>&nbsp;<a href=\"team.html\">Unser Team</a></li>");
	}	
	//
	if (active == 'raeume') {
		document.write("<li id=\"active\">&nbsp;<a href=\"raeume.html\">Unsere Räumlichkeiten</a></li>");
	} else {
		document.write("<li>&nbsp;<a href=\"raeume.html\">Unsere Räumlichkeiten</a></li>");
	}	
	//
	if (active == 'standard') {
		document.write("<li id=\"active\">&nbsp;<a href=\"standard.html\">Unser Qualitätsstandard</a></li>");
	} else {
		document.write("<li>&nbsp;<a href=\"standard.html\">Unser Qualitätsstandard</a></li>");
	}
	

	document.write("</ul>");
}






// DRAMWEAVER
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_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
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_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];}
}

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_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;
}




// Popup
// Popup-Fenster fuer Tafeln anzeigen
function popUp(link, name) {
    var w  = 720;
				var h = 540;
				//alert("top="+((screen.height/2)-(h/1.5))+", left="+((screen.width/2)-(+w/2))+"");
 		 if (link!=null && name!=null) {
				window.open(link, name,"resizeable=no,scrollbars=yes,locationbar=no,menuebar=no,status=yes,height="+h+",width="+w+", top="+((screen.height/2)-(h/1.5))+", screenY="+((screen.height/2)-(h/1.5))+", left="+((screen.width/2)-(+w/2))+",screenX="+((screen.width/2)-(+w/2)));
			
				} else {
				// DEBUG
				alert("Link oder Fensternahme fehlt");
		}
}

// Fenster in den Vordergrund
function getFocus() {
		window.focus();
		//window.moveTo(60, 100);
}

