function getParameter( queryString, parameterName ) { var parameterName = parameterName + "="; if ( queryString.length > 0 ) { begin = queryString.indexOf ( parameterName ); if ( begin != -1 ) { begin += parameterName.length; end = queryString.indexOf ( "&" , begin ); if ( end == -1 ) { end = queryString.length } return unescape ( queryString.substring ( begin, end ) ); } return "null"; } } function getpath() { pageURL=window.location path=pageURL.pathname.toLowerCase(); nsfPos=path.indexOf(".nsf"); path=path.substring(0,nsfPos+5); return path } //Funktionen zum Anzeigen/Verbergen von Abschnitten function toggleSection(SectionName) { if (document.getElementById(SectionName + "_Data").style.display=="") { hideSection(SectionName); } else { showSection(SectionName); } }; function hideSection(SectionName){ document.getElementById(SectionName + "_Data").style.display="none" document.images[SectionName + '_Img'].src="/home/website.nsf/expand.gif"; }; function showSection(SectionName){ document.getElementById(SectionName + "_Data").style.display="" document.images[SectionName + '_Img'].src="/home/website.nsf/collapse.gif" } function loadFrames(frame1,page1,frame2,page2) { eval("parent." + frame1 + ".location='"+page1+"'"); eval("parent." + frame2 + ".location='"+page2+"'"); } function dm(msgStr) { window.status = msgStr; document.MM_returnValue = true; } function replaceSubString(s, ts1, ts2){ // ersetze in s ts1 durch ts2 (jeweils Teilstrings) var newValue = "" var ts1len = ts1.length var i = 0 while (i < s.length){ if (s.substring(i, i+ts1len) != ts1){ newValue = newValue + s.substring(i, i+1) i++ } else{ newValue = newValue + ts2 i += ts1len } } return newValue } function getbrowser( ) { var browser = "explorer"; if (navigator.appName.indexOf('Netscape') != -1) browser = "netscape"; if (browser=="") browser="explorer"; return browser } // Funktion zur Ermittlung der Browserversion function getversion(browser ) { if(browser == "netscape") version = unescape(navigator.appVersion.charAt(0)); var msie = navigator.appVersion.lastIndexOf("MSIE") + 5; if(browser == "explorer") version = unescape(navigator.appVersion.charAt(msie)); if (version=="") version="3"; return version } function getfullversion(browser) { var fullversion=""; if(browser == "netscape") fullversion = parseFloat(navigator.appVersion.substring(0,4)); if(browser == "explorer") { begin=navigator.appVersion.toLowerCase().lastIndexOf("msie")+4; fullversion = parseFloat(navigator.appVersion.substring(begin,begin+5)) } if(fullversion=="") fullversion="3"; return fullversion } function getplattform( ) { var plattform = ""; if(navigator.appVersion.lastIndexOf("win16") != -1) plattform = "Win16"; if(navigator.appVersion.lastIndexOf("Win95") != -1) plattform = "Win95"; if(navigator.appVersion.lastIndexOf("WinNT") != -1) plattform = "WinNT"; if(navigator.appVersion.lastIndexOf("Windows NT 5") != -1) plattform = "WinNT"; if(navigator.appVersion.lastIndexOf("68K") != -1) plattform = "68K"; if(navigator.appVersion.lastIndexOf("PPC") != -1) plattform = "PPC"; if(navigator.appVersion.lastIndexOf("Macintosh") != -1) platform = "macintosh"; if(navigator.appVersion.lastIndexOf("Linux") != -1) platform = "linux"; if (plattform=="") plattform="Win95"; return plattform } /* Function that swaps images. */ function di20(id, newSrc) { var theImage = FWFindImage(document, id, 0); if (theImage) { theImage.src = newSrc; } } /* Functions that track and set toggle group button states. */ function FWFindImage(doc, name, j) { var theImage = false; if (doc.images) { theImage = doc.images[name]; } if (theImage) { return theImage; } if (doc.layers) { for (j = 0; j < doc.layers.length; j++) { theImage = FWFindImage(doc.layers[j].document, name, 0); if (theImage) { return (theImage); } } } return (false); } function setCookie(name, value) { document.cookie = name + "=" + escape(value); } function getCookie(Name) { var search = Name + "="; var retVal = ""; if (document.cookie.length > 0) { offset = document.cookie.indexOf(search); if (offset != -1) { end = document.cookie.indexOf(";", offset); offset += search.length; if (end == -1) { end = document.cookie.length; } retVal = unescape(document.cookie.substring(offset, end)); } } return (retVal); } function InitGrp(grp) { var cmd = false; if (getCookie) { cmd = getCookie(grp); } if (cmd) { eval("GrpDown(" + cmd + ")"); eval("GrpRestore(" + cmd + ")"); } } function FindGroup(grp, imageName) { var img = FWFindImage(document, imageName, 0); if (!img) { return (false); } var docGroup = eval("document.FWG_" + grp); if (!docGroup) { docGroup = new Object(); eval("document.FWG_" + grp + " = docGroup"); docGroup.theImages = new Array(); } if (img) { var i; for (i = 0; i < docGroup.theImages.length; i++) { if (docGroup.theImages[i] == imageName) { break; } } docGroup.theImages[i] = imageName; if (!img.atRestSrc) { img.atRestSrc = img.src; img.initialSrc = img.src; } } return (docGroup); } function GrpDown(grp, imageName, downSrc, downOver) { if (!downOver) { downOver = downSrc; } var cmd = "'" + grp + "','" + imageName + "','" + downSrc + "','" + downOver + "'"; setCookie(grp, cmd); var docGroup = FindGroup(grp, imageName, false); if (!docGroup || !downSrc) { return; } obj = FWFindImage(document, imageName, 0); var theImages = docGroup.theImages; if (theImages) { for (i = 0; i < theImages.length; i++) { var curImg = FWFindImage(document, theImages[i], 0); if (curImg && curImg != obj) { curImg.atRestSrc = curImg.initialSrc; curImg.isDown = false; obj.downOver = false; curImg.src = curImg.initialSrc; } } } obj.atRestSrc = downSrc; obj.downOver = downOver; obj.src = downOver; obj.isDown = true; } function GrpSwap(grp) { var i, j = 0, newSrc, objName; var docGroup = false; for (i = 1; i < (GrpSwap.arguments.length - 1); i += 2) { objName = GrpSwap.arguments[i]; newSrc = GrpSwap.arguments[i + 1]; docGroup = FindGroup(grp, objName); if (!docGroup) { continue; } obj = FWFindImage(document, objName, 0); if (!obj) { continue; } if (obj.isDown) { if (obj.downOver) { obj.src = obj.downOver; } } else { obj.src = newSrc; obj.atRestSrc = obj.initialSrc; } obj.skipMe = true; j++; } if (!docGroup) { return; } theImages = docGroup.theImages; if (theImages) { for (i = 0; i < theImages.length; i++) { var curImg = FWFindImage(document, theImages[i], 0); if (curImg && curImg.atRestSrc && !curImg.skipMe) { curImg.src = curImg.atRestSrc; } curImg.skipMe = false; } } } function GrpRestore(grp) { var docGroup = eval("document.FWG_" + grp); if (!docGroup) { return; } theImages = docGroup.theImages; if (theImages) { for (i = 0; i < theImages.length; i++) { var curImg = FWFindImage(document, theImages[i], 0); if (curImg && curImg.atRestSrc) { curImg.src = curImg.atRestSrc; } } } }