// JavaScript Documentvar oldNav = "";var activeNav = "";var oldEntryBottom = "";var oldEntryImgOn = "";var oldEntryImgOff = "";var oTimeout;var oTimeoutTop;String.prototype.trim = function() {	return this.replace(/^\s+|\s+$/g,"");}function writeBreak (c) {    if (c >= 5) {       document.write ('<div class="referenceBreak"></div>');       c = 0;    }    return c+1;}function writeCategory (oldCat, actCat) {    if (oldCat.trim() != actCat.trim()) {       document.write('</ul><b>' + actCat + '</b><ul style="margin-top: 5px">');    }    return actCat;}function swapNavi(id, active, depth) {    window.clearTimeout(oTimeout);    if (active)       activeNav = "subnav" + id;    if (depth > 1) // popups nur in hauptebene        return;    if (id == 10) {       if (oldNav != "") {          document.getElementById(oldNav).style.display = 'none';       }       return;    }    id = "subnav" + id;    if (oldNav != "")       document.getElementById(oldNav).style.display = 'none';    if (activeNav != "")       document.getElementById(activeNav).style.display = 'none';    document.getElementById(id).style.display = 'block';    oldNav = id;}function setClearNavi(id, depth) {    if (depth == 1)       return;    oTimeout = window.setTimeout("clearNavi();", 500);}function stayNavi() {    window.clearTimeout(oTimeout);}function clearNavi() {    if (oldNav != "") {       document.getElementById(oldNav).style.display = 'none';       oldNav = "";        }    if (activeNav != "" && activeNav != "subnav5" && activeNav != "subnav10") // für NEWS nicht auf aktive Subnav zurückschalten          document.getElementById(activeNav).style.display = 'block';}function setClearEntry() {    oTimeoutTop = window.setTimeout("clearEntry();", 500);}function clearEntry() {    if (oldEntryImgOn != "") {       document.getElementById(oldEntryImgOn).style.display = 'none';       document.getElementById(oldEntryImgOff).style.display = 'inline';       document.getElementById(oldEntryBottom).style.color = '#464c53';       document.getElementById("referenceCaption").innerHTML = "";    }}function swapEntry(id, caption) {    window.clearTimeout(oTimeoutTop);    txt = "entryBottom" + id;    imgOn = "entryTopImageOn" + id;    imgOff = "entryTopImageOff" + id;    if (oldEntryBottom != "") {       document.getElementById(oldEntryBottom).style.color = '#464c53';       document.getElementById(oldEntryImgOn).style.display = 'none';       document.getElementById(oldEntryImgOff).style.display = 'inline';    }    document.getElementById(txt).style.color = '#EA592C';    document.getElementById(imgOn).style.display = 'inline';    document.getElementById(imgOff).style.display = 'none';    document.getElementById("referenceCaption").innerHTML = caption;    oldEntryBottom = txt;    oldEntryImgOn = imgOn;    oldEntryImgOff = imgOff;}