// PHPs einbinden // Allgemeine Scripts // Aktivierung des Menus: // item ist eines aus der List und wird aktiviert // relpath ist der Pfad nach oben und wird als Pfad zur Standardseitenleiste verwendet, // falls fuer die Kategorie keine solche angegeben ist function activate_menu(item,relpath) { var items = new Array("BHK","projekt","team","angebote","verein","publikationen","kontakt","none"); var menu = top.bhkmenu.document; var sidebar = top.sidebar; for(var i=0;i != items.length;i++) { if(item != items[i]) { menu.getElementById(items[i]).className = "normal"; // alert("Deactivate "+items[i]); } else { menu.getElementById(item).className = "active"; // alert("Activate "+items[i]); } } } // Steuerung des Menuverhaltens aus menu.html heraus (NUR FRAMES) function over_menu(item) { menu = this.document; if (menu.getElementById(item).className == "normal") menu.getElementById(item).className = "over"; else if (menu.getElementById(item).className == "active") menu.getElementById(item).className = "activeover"; if (menu.getElementById(item).className == "foot") menu.getElementById(item).className = "footactive"; } function out_menu(item) { var menu = this.document; if (menu.getElementById(item).className == "over") menu.getElementById(item).className = "normal"; else if (menu.getElementById(item).className == "activeover") menu.getElementById(item).className = "active"; if (menu.getElementById(item).className == "footactive") menu.getElementById(item).className = "foot"; } // NUR FRAMES: Sprache im Menu und Base anpassen function adjustlang(lang) { top.bhkmenu.location.href = "./menu.php?fr=1&lang=" + lang; top.base.location.href = "./base.php?fr=1&lang=" + lang; return true; } // NUR fr_content.php! function force_frames(options) { if (top.frames.length == 0 || top.frames[0].name != 'bhkmenu') { top.location.href = "./index.php?fr=1" + options; } return true; } // Workaround zum Schutz der Adressen function noSpam(mail,id) { var href; href = mail; href = href + "@"; href = href + "bajuwarenhof.de"; document.getElementById(id).href = "mailto:" + href; document.getElementById(id).firstChild.nodeValue = href; } // Zweitversion function noSpam2(mail,id,id2) { var href; href = mail; href = href + "@"; href = href + "bajuwarenhof.de"; document.getElementById(id).href = "mailto:" + href; document.getElementById(id2).href = "mailto:" + href; // document.getElementById(id).firstChild.nodeValue = href; }