/************************************************************ Browsercheck object - Copyright Thomas Brattli - www.dhtmlcentral.com *************************************************************/ function cm_bwcheck(){ //In theory we should use object detection, but this script needs work-arounds for almost every browser... this.ver=navigator.appVersion this.agent=navigator.userAgent.toLowerCase() this.dom=document.getElementById?1:0 this.ns4=(!this.dom && document.layers)?1:0; this.op=window.opera this.moz=(this.agent.indexOf("gecko")>-1 || window.sidebar) this.ie=this.agent.indexOf("msie")>-1 && !this.op if(this.op){ this.op5=(this.agent.indexOf("opera 5")>-1 || this.agent.indexOf("opera/5")>-1) this.op6=(this.agent.indexOf("opera 6")>-1 || this.agent.indexOf("opera/6")>-1) this.op7=this.dom&&!this.op5&&!this.op6 //So all higher opera versions will use it } else if(this.moz) this.ns6 = 1 else if(this.ie){ this.ie4 = !this.dom && document.all this.ie5 = (this.agent.indexOf("msie 5")>-1) this.ie55 = (this.ie5 && this.agent.indexOf("msie 5.5")>-1) this.ie6 = this.dom && !this.ie4 && !this.ie5 && ! this.ie55 } this.mac=(this.agent.indexOf("mac")>-1) this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.op5 || this.op6 || this.op7) this.usedom= this.ns6||this.op7//Use dom creation this.reuse = this.ie||this.op7||this.usedom //Reuse layers this.px=this.dom&&!this.op5?"px":"" return this } var B_Type=new cm_bwcheck(); // browserspezifisches DHTML-Objekt anhand von ID zurückgeben function crossGetObject(id) { var obj = null; if (B_Type.ie) {obj=document.all[id];} else if (B_Type.ns6) {obj=document.getElementById(id);} else if (B_Type.ns4) {obj=document.layers[id];} return obj; } // Objekt anzeigen function crossShowObject(obj) { if (B_Type.ie || B_Type.ns6) { obj.style.visibility="visible";} else if (B_Type.ns4) {obj.visibility="show";} } // Objekt ausblenden function crossHideObject(obj) { if (B_Type.ie || B_Type.ns6) {obj.style.visibility="hidden";} else if (B_Type.ns4) {obj.visibility="hide";} } // Objekt positionieren x/y function crossMoveTo(obj, x, y) { if (B_Type.ie) {obj.style.pixelLeft=x; obj.style.pixelTop=y;} else if (B_Type.ns4) {obj.left=x; obj.top=y;} else if (B_Type.ns6) {obj.style.left=x+"px"; obj.style.top=y+"px";} } // Objekt-Position ermitteln function crossGetPositionX(obj) { if (B_Type.ie) return obj.style.pixelLeft; else if (B_Type.ns4) return obj.left; else if (B_Type.ns6) return parseInt(obj.style.left); } function crossGetPositionY(obj) { if (B_Type.ie) return obj.style.pixelTop; else if (B_Type.ns4) return obj.top; else if (B_Type.ns6) return parseInt(obj.style.top); } function myfenster(url,fenster){ window.open(url,fenster,"dependent=no,width=500,height=300,scrollbars=yes"); } var url2=""; var par=""; var w=""; var ismitgl="'0'"; function urlopen(url){ url2=url+par; w=window.open(url2,"_self"); } function urlopen2(url, qn){ if (quelle!='') { url2=url+quelle+"-"+qn+login;} else { url2=url+login;} w=window.open(url2,"_self"); } function urlopen3(url){ url2=url+quelle+par; w=window.open(url2,"_self"); } function agopen(url){ url2=url+"&AGName="+agname+"&ID="+agid+"&AGTitel="+agtitel+par; w=window.open(url2,"_self"); } function bildfenster(url,fenster){ w=window.open(url,fenster,"dependent=no,resizable=yes,scrollbars=yes"); } function linkfenster(url,fenster){ w=window.open(url,fenster,"dependent=no,resizable=yes,scrollbars=yes"); } function sendmail(sendto,log){ url=pfad+'bfbmfrauen.nsf/MemoAn?OpenForm&An='+sendto+par+'&'+log; w=window.open(url,"_self"); } function opencontact(sendto1,sendto2,log){ url=pfad+'bfbmfrauen.nsf/MemoAn?OpenForm&An='+sendto1+'@'+sendto2+par+'&'+log; w=window.open(url,"_self"); } function senderror(sendto,log){ url=pfad+'bfbmfrauen.nsf/Fehler?OpenForm&An='+sendto+par+'&back='+url_back+log; w=window.open(url,"_self"); } var aktmenue = ""; function showmenu(s){ id='s'+s; if (id!=aktmenue && aktmenue!='') { alt=crossGetObject(aktmenue); crossHideObject(alt); } aktmenue=id; obj=crossGetObject(id); crossShowObject(obj); } function hidemenu(id){ obj=crossGetObject(id); crossHideObject(obj); } function active(id) { obj=crossGetObject(id); obj.style.borderstyle="solid"; } function inactive(id) { obj=crossGetObject(id); obj.style.backgroundcolor="#afa696"; } // Div etc. ein-/ausblenden function hidediv(strDiv, strFeld, strWert) { if ($F($(strFeld)) == strWert) { $(strDiv).fade(); } else { $(strDiv).appear(); }; } function hidedivneg(strDiv, strFeld, strWert) { if ($F($(strFeld)) != strWert) { $(strDiv).fade(); } else { $(strDiv).appear(); }; }