/************************************************************ 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 bw=new cm_bwcheck(); /************************************************************* SearchPopUp-Fenster für die gefunden Links - RN 03.05.2005 *************************************************************/ function SearchPopUp(url,w,h,name) { // alert("hallo"); // var name = document.URL.split("/"); // name = name[(name.length-1)].split("."); // name = name[0]; // name = window.open(url+"?"+name, name, "scrollbars,resizable,width="+w+",height="+h); name = window.open(url + "&titel", name, "scrollbars,resizable,width=" + w + ",height="+h); if (document.images) name.focus(); } // ************* für EXTERNAL LINK ************** // // ab hier von RvM vom 2.8.2005 // Browsertyp ermitteln (und in B_Type speichern) var B_Type = new crossBrowserType(); function crossBrowserType() { this.IE = false; this.NS4 = false; this.NS6 = false; this.id = ""; if (document.all) {this.IE = true; this.id = "IE";} else if (document.getElementById) {this.NS6 = true; this.id = "NS6";} else if (document.layers) {this.NS4 = true; this.id = "NS4";} } // Mausposition zurückgeben var crossMouseX, crossMouseY; if (B_Type.NS4) document.captureEvents(Event.MOUSEMOVE); function crossMousePosition(e) { if (B_Type.IE) { crossMouseX=event.x + document.body.scrollLeft; crossMouseY=event.y + document.body.scrollTop; } else {crossMouseX=e.pageX; crossMouseY=e.pageY;} } // 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; } // Text in DHTML-Objekt ausgeben function crossWrite(obj, text) { if (B_Type.IE) obj.innerHTML = text; else if (B_Type.NS6) obj.innerHTML = text; else if (B_Type.NS4) { obj.document.open(); obj.document.write(text); obj.document.close(); } } // verfügbare Fensterbreite ermitteln function crossInnerWindowWidth() { var val; if (B_Type.IE) val=document.body.clientWidth; else if (B_Type.NS6) val=window.innerWidth; else if (B_Type.NS4) val=window.innerWidth; return val; } // tatsächliche Fensterbreite ermitteln function crossOuterWindowWidth() { var val; if (B_Type.IE) val=document.body.offsetWidth; else if (B_Type.NS6) val=window.outerWidth; else if (B_Type.NS4) val=window.outerWidth; return val; } // verfügbare Fensterhöhe ermitteln function crossInnerWindowHeight() { var val; if (B_Type.IE) val=document.body.clientHeight; else if (B_Type.NS6) val=window.innerHeight; else if (B_Type.NS4) val=window.innerHeight; return val; } // Scroll-Position ermitteln, "y" = vertikal, "x" = horizontal function crossGetScroll(achse) { var val; if (!achse || achse == "y") { // vertikale Achse if (B_Type.IE) val=document.body.scrollTop; else if (B_Type.NS6) val=window.pageYOffset; else if (B_Type.NS4) val=window.pageYOffset; } else { // horizontale Achse if (B_Type.IE) val=document.body.scrollLeft; else if (B_Type.NS6) val=window.pageXOffset; else if (B_Type.NS4) val=window.pageXOffset; } return val; } // Scroll-Position setzen function crossSetScroll(x, y) { window.scrollTo(x, y); } // 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); } // 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";} } // Hintergrund-Farbe setzen function crossBackgroundColor(color, obj) { if (typeof obj == "undefined") {document.bgColor=color; return;} if (B_Type.IE || B_Type.NS6) {obj.style.backgroundColor=color;} else if (B_Type.NS4) {obj.document.bgColor=color;} } // Hintergrund-Bild setzen function crossBackgroundImage(obj, img) { if (B_Type.IE || B_Type.NS6) {obj.style.backgroundImage="url(" + img + ")";} else if (B_Type.NS4) {obj.background.src = img;} } /* ****************************************************************** TOOLTIPS 1.04 (c)2001-2002 Peter Kerl www.peterkerl.de ****************************************************************** */ // integriert: Crossbrowser-Funktionen von "cross.js" /* bitte vergesst nicht, ein Link auf meine Site zu setzen */ // Config: var ballonBack = "#9CCFEF"; // Hintergrundfarbe var ballonText = "#000000"; // Text und Randfarbe var ballonBreite = 95; // Ballon-Breite (Vorgabewert) var ballonBorder = 1; // Randstärke var ballonDir = 0; // Ausrichtung; 0=rechts 1=links var ballonVDir = 0; // Ausrichtung; 0=unten 1=oberhalb var ballonChangeVDir = 75; // Schwellwert für Wechsel der // V-Ausrichtung am unteren Rand var ballonSpace =15; // Abstand vom Cursor var ballonShow = false; // Anzeige aktiv/inaktiv var Ballon = null; // das DIV-Objekt var b_Breite; // aktueller Speicher für Ballonbreite var b_Dir, b_VDir; // Ballon-Objekt (div) festlegen function setBallon(id, breite, bgcolor) { document.onmousemove = cursorMove; if (breite && breite>20) b_Breite = breite; if (bgcolor) ballonBack = bgcolor; Ballon = crossGetObject(id); if (Ballon == null) { alert("keine Unterstützung für Ballon-Infos"); showBallon = noBallon; hideBallon = noBallon; } ballonShow = false; } function noBallon() {} // functionsaufrufe abfangen document.write(''); // Ballon kreieren und anzeigen function showBallon(msg, dir, breite, bgcolor) { var b_Back; var relWidth, relHeight; if (Ballon == null) return; if (breite && breite>20) b_Breite = breite; else b_Breite=ballonBreite; if (bgcolor) b_Back=bgcolor; else b_Back=ballonBack; msg = '
'; if (!dir) b_Dir = ballonDir; else b_Dir = dir; relWidth = crossInnerWindowWidth() + crossGetScroll("x"); relHeight = crossInnerWindowHeight() + crossGetScroll("y"); if (crossMouseX + b_Breite + ballonSpace > relWidth) {b_Dir = 1;} else if (crossMouseX < b_Breite + ballonSpace) b_Dir = 0; b_VDir = ballonVDir; if (crossMouseY + ballonChangeVDir > relHeight) b_VDir = 1; else if (crossMouseY - ballonChangeVDir < 0) b_VDir = 0; crossWrite(Ballon, msg); ballonShow = true; crossShowObject(Ballon); } function hideBallon() { if (Ballon == null) return; crossHideObject(Ballon); ballonShow=false; crossMoveTo(Ballon, -200, 0); } // der Maus folgen function cursorMove(e) { var posX, posY; crossMousePosition(e); if (ballonShow) { if (b_Dir==0) { posX = crossMouseX + ballonSpace; if (b_VDir==0) {posY = crossMouseY + ballonSpace;} else {posY = crossMouseY - ballonChangeVDir;} } else { posX = crossMouseX-b_Breite-ballonSpace; if (b_VDir==0) {posY = crossMouseY + ballonSpace;} else {posY = crossMouseY - ballonChangeVDir;} } crossMoveTo(Ballon, posX, posY) } } // ************* für EXTERNAL LINK ************** //