/* Für Sidebar-Tripleteaser*/ function triplight($el) { var $dt = $el.parentNode; while ($dt && $dt.tagName != 'DL') $dt = $dt.parentNode; if (! $dt) return; var $de = $dt.firstChild; while ($de) { if ($de.className) addClassName($de,'deactivated'); $de = $de.nextSibling; } removeClassName($el,'deactivated'); removeClassName(($el.nextSibling.className) ? $el.nextSibling : $el.nextSibling.nextSibling,'deactivated'); return true; } function addClassName ($el, $cl) { if ($el && $el.className.indexOf($cl) == -1) return ($el.className = ($el.className) ? $el.className+' '+$cl : $cl ); } function removeClassName ($el, $cl) { if ($el) return ($el.className = $el.className.replace(new RegExp("\s?"+$cl+"\\b"), '')); } /* * Menuedefinition fuer die Horizontale Navigation */ var bo_pd_def = new Array(); var bo_pdstore = new Array(); // Aktiver Menüzweig (DOM-Elemente) var bo_pdshow_pending = null; // Timeout für PD-Anzeige var bo_pdshow_node = null; // auslösendes Element /* var dbgwin = window.open('','debug','width=400,height=600,scrollbars=yes,resizable=yes'); var dbg = dbgwin.document; dbg.open('text/plain'); function debug(msg) { dbg.writeln(msg+"
"); dbgwin.focus(); } */ // // Tabbed View für Events // function showTab(anchor,id) { var dt = anchor.parentNode; while (dt && dt.tagName != 'DL') dt = dt.parentNode; if (! dt) return; var el = dt.firstChild; var showNextDd = false; while (el) { if (el.tagName == 'DT') { if (el.firstChild == anchor) { el.firstChild.className='tabShow'; showNextDd = true; } else { el.firstChild.className='tabHidden'; showNextDd = false; } } if (el.tagName == 'DD') el.style.display = (showNextDd) ? 'block' : 'none'; el = el.nextSibling; } } // objekt für menüitem definition // // inner - anker html // href - link url // sub - id des zu öffnenden submenüs function bo_item (inner, href, endung, sub) { this.inner = inner; this.href = href; this.endung = endung; this.sub = sub; } function bo_pdover_delayed(ev) { window.clearTimeout(bo_pdshow_pending); bo_pdshow_node = (ev) ? ev.currentTarget : event.srcElement; if (bo_pdstore && bo_pdstore.length > 0) bo_pdover(); else bo_pdshow_pending = window.setTimeout("bo_pdover()", 300); } function bo_pdover() { if (! bo_pdshow_node) return; var el = (bo_pdshow_node.tagName == "A") ? bo_pdshow_node.parentNode.lastChild : bo_pdshow_node.lastChild; if (bo_pdshow_pending) { window.clearTimeout(bo_pdshow_pending); bo_pdshow_pending = null; bo_pdshow_node = null; } if (el && el != bo_pdstore[0] && el.className == "bopd" && el.tagName == "UL" && el.style) { // aktiven Menüzweig ermitteln var pdstore = Array(); pdstore.push(el); while (null != (el = el.parentNode)) if (el && el.tagName == "UL" || el.className == "bopd") pdstore.push(el); // überflüssige Submenüs ausblenden while(pdstore.length <= bo_pdstore.length) bo_pdstore.shift().style.display = "none"; // nicht aktive Menüs ausblenden for(var i=0; i]+)>([^<]*)/)) { anchor.appendChild(document.createTextNode(inner)); } else { var tag = RegExp.$1; anchor.appendChild(document.createTextNode(RegExp.$2)); if(tag == "b") { anchor.style.fontWeight = "bold"; } else if(tag.match(/^hr/)) { with(item.style) { borderTopColor = "#888"; borderTopStyle = "groove"; borderTopWidth = "2px"; } } } if (href.match(/^https?:/)) { var img = document.createElement('img'); with(img) { src = window.location.protocol+'//www.berlin.de/.img/ml/link_extern.gif'; style.border = 'none'; } with(anchor) { appendChild(img); target = '_blank'; } } else { /* merz einschub */ if(lang == 1 && endung == "html") anchor.href = "e_" + href; else if(lang == 1 && endung == "php") endung += "?lang=1"; anchor.href += "." + endung; /* ende merz einschub */ anchor.target = '_top'; } item.appendChild(anchor); if (sub) bo_add_menu(item, sub, level+1); menu.appendChild(item); } } node.appendChild(menu); } function bo_pd_init() { if (navigator.appName=='Microsoft Internet Explorer' && navigator.appVersion.match(/MSIE\s([\d\.]+);/) && RegExp.$1 < 5.5) return; for (var i in bo_pd_def) { var node = document.getElementById('bo_'+i); if (! node) continue; bo_add_menu(node, i, 1); node.firstChild.onmouseover = bo_pdover_delayed; node.firstChild.onmousout = bo_pdout; node.onmouseover = bo_pdover_delayed; node.onmouseout = bo_pdout } } var modus = 1; var lang = 1; window.onload = bo_pd_init;