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

/* Schriftgrößen-Einstellung per CSS für Browserunabhängige Einstellung 
	Erforderlich adfür ist, daß die Größenangaben der Link-IDs und in Funktionen synchron sind
	Außerdem ist in Funktion setFontSize() möglicherweise nach weiteren HTML-Tags zu suchen, deren Fontsize geändert werden muss
	Hier nur BODY und TD, wenn die Seiteninhalte auf Tabellen basieren.
*/
function changeFontsize(size) {
    document.cookie = "flexibleFontsize" + "=" + size + "#";
	if (size==12) document.cookie="";
    setFontsize(12); // Mindestgröße
    return false;
};

function setFontsize(size){
    begin = document.cookie.indexOf("flexibleFontsize=");
    if (begin != -1) {
        begin += 17;
        end = document.cookie.indexOf("#", begin);
        if (end != -1) {
			size = document.cookie.substring(begin, end);

		    document.getElementById("fs12").style.textDecoration = "none";
    		document.getElementById("fs15").style.textDecoration = "none";
    		document.getElementById("fs18").style.textDecoration = "none";
    		document.getElementById("fs" + size).style.textDecoration = "underline";

	    	document.getElementsByTagName("body")[0].style.fontSize = size + "px";
			/* TD Elemente erben nicht vom BODY - deshalb extra einstellen */	
			t=document.getElementsByTagName("td");
			for (i=0;i<t.length;i++) t[i].style.fontSize = size + "px";
		}
    }
    return false;
}

// Body.... 			onLoad="setbc();">
// <span id="td_..."> innerhalb der <a Tags setzen
			function setbc() {
				aktivfarbe="#004D66";
				lnk=0;
				if (window.location.href.indexOf("index")>0) {
					lnk=MM_findObj("td_start");
				}
				if (window.location.href.indexOf("leist")>0) {
					lnk=MM_findObj("td_leistungsangebot");
				}
				if (window.location.href.indexOf("philo")>0) {
					lnk=MM_findObj('td_philosophie');
				}
				if (window.location.href.indexOf("kontakt")>0) {
					lnk=MM_findObj('td_kontakt');
				}
				if (window.location.href.indexOf("imp")>0) {
					lnk=MM_findObj('td_impressum');
				}
				//alert(lnk.style);
				if ((lnk) && (lnk.style)) {
					lnk.style.color = aktivfarbe;
					lnk.style.fontWeight = "bold";
				}
			}
