window.onerror=fehler; function fehler(){return true;} function preparePrint(URL){ newURL="http://www.brenner-muennich.de/templates/printPage.php4?URL="+URL; printWin=window.open(newURL,"Print","status=0,location=0,menubar=1,scrollbars=1,toolbar=1,height=705,width=650"); printWin.focus(); printWin.print(); } function showImage(imgURL) { IMG=window.open("","IMG","status=0,location=0,menubar=0,scrollbars=0,toolbar=0,resizable=1,height=700,width=640"); doc=IMG.document; doc.open(); doc.writeln("Dr. Brenner & Münnich"); doc.writeln(""); doc.writeln(""); doc.close(); IMG.focus(); } function resizeWindow(){ height=document.images.bild.height; width=document.images.bild.width; if (navigator.appName.indexOf("Netscape")!=-1 && ((navigator.appVersion.indexOf("5.")!=-1) || (navigator.appVersion.indexOf("6.")!=-1))){ width=width+10; height=height+60; } else{ width=width+12; height=height+60; } self.resizeTo(width,height); } //////////////////////////// // Liefert die Layer // mit dem übergebenen Namen zurück function get_Layer(name) { tmp=""; if (BROWSER=="OP" || (BROWSER=="NS" && VERSION>=6)) tmp="ELEM=document.getElementById('"+name+"');"; if (BROWSER=="IE" && VERSION>=4) tmp="ELEM=document.all['"+name+"'];"; if (BROWSER=="NS" && VERSION<6) tmp="ELEM=document.layers['"+name+"'];"; eval(tmp); return ELEM; } //////////////////////////// // Ändert die Sichtbarkeit der übergebenen Ebene function set_visibility(ELEM,visibility) { tmp=""; if (BROWSER=="OP" || (BROWSER=="NS" && VERSION>=6)) tmp="ELEM.style.visibility='"+visibility+"';"; if (BROWSER=="IE" && VERSION>=4) tmp="ELEM.style.visibility='"+visibility+"';"; if (BROWSER=="NS" && VERSION<6) tmp="ELEM.visibility='"+visibility+"';"; eval(tmp); return true; } //////////////////////////// // Ändert die Sichtbarkeit der übergebenen Ebene function setbgColor(ELEM,color) { tmp=""; if ((BROWSER=="NS" && VERSION>=6)) tmp="ELEM.style.backgroundColor='"+color+"';"; if ((BROWSER=="OP" && VERSION>=5) || (BROWSER=="IE" && VERSION>=4)) tmp="ELEM.style.background='"+color+"';"; if ( (BROWSER=="NS" && VERSION<6)) tmp="ELEM.background='"+color+"';"; eval(tmp); return true; } /////////////////////////// // Funktionen für das Submenü // unten function setFlexSub() { ELEM=get_Layer("FlexSub"); set_visibility(ELEM,"hidden"); ELEM_Height=30; maxTopPos=550; if ((BROWSER == 'NS' && VERSION<6)) { ELEM_Height=ELEM.clip.height; WDWheight=window.innerHeight; newPOS=WDWheight-ELEM_Height+window.pageYOffset; if (newPOS>maxTopPos) ELEM.top=newPOS; else ELEM.top=maxTopPos; } if ((BROWSER == 'NS' && VERSION>=6) || (BROWSER=="OP" && VERSION>=5)) { WDWheight=window.innerHeight; if (BROWSER=="OP" && VERSION==5) ELEM_Height=ELEM_Height; else ELEM_Height=ELEM.offsetHeight; newPOS=WDWheight-ELEM_Height+window.pageYOffset; if (newPOS>maxTopPos) ELEM.style.top=newPOS; else ELEM.style.top=maxTopPos; } if ((BROWSER == 'IE' && VERSION>=4) ) { ELEM_Height=ELEM.clientHeight; WDWheight=document.body.clientHeight; newPOS=WDWheight-ELEM_Height+document.body.scrollTop; if (newPOS>maxTopPos) ELEM.style.top=newPOS; else ELEM.style.top=maxTopPos; } set_visibility(ELEM,"visible"); if (BROWSER == 'NS' || BROWSER=="OP" ) setTimeout("setFlexSub()",500); //1500 }