// set variables var ie = navigator.appName == "Microsoft Internet Explorer"; var op = navigator.userAgent.indexOf('Opera') != -1; var ns6 = navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) > "4"; var timer = null; // open menu x function OpenMenu (x) { if (ie) { showmenu = eval ("document.all.menu" +x); showmenu.style.visibility = "visible"; var menus = 5; for (i = 0; i < menus; i++) { currentmenu = eval ("document.all.menu" + i); if ((currentmenu.style.visibility == "visible") && (currentmenu != showmenu)) { currentmenu.style.visibility = "hidden"; } } } if (ns6 || op) { showmenu = document.getElementsByName ("menu"+x)[0]; showmenu.style.visibility = "visible"; var menus = 5; for (i = 0; i < menus; i++) { currentmenu=document.getElementsByName ("menu"+i)[0]; if ((currentmenu.style.visibility = "visible") && (currentmenu != showmenu)) { currentmenu.style.visibility = "hidden"; } } } } // hide all menus function Close() { var menus = 5; for (i = 0; i < menus; i++) { if (ie) { eval ('document.all.menu' +i + '.style.visibility = "hidden"'); } if (ns6 || op) { document.getElementsByName("menu"+i)[0].style.visibility = "hidden"; } } if (ie) { document.all.quicksearch_ort.style.visibility = "visible"; document.all.quicksearch_unterbringung.style.visibility = "visible"; if (document.all.quicksearch_klassi) { document.all.quicksearch_klassi.style.visibility = "visible"; } } } // Alle Selects auf der Seite ausblenden (um IE Bug zu umgehen) function hideSelects () { if (ie) { document.all.quicksearch_ort.style.visibility = "hidden"; document.all.quicksearch_unterbringung.style.visibility = "hidden"; if (document.all.quicksearch_klassi) { document.all.quicksearch_klassi.style.visibility = "hidden"; } } } // Mouseover-Effekte für Menuebilder oben browserName = navigator.appName; browserVer = parseInt(navigator.appVersion); version = "null"; if (browserName == "Netscape" && browserVer >= 3) version = "n3"; else if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) version = "n3"; if (version == "n3") { toc1on = new Image; toc1on.src = "http://www.belchenland.de/clips/headmen_belchenland_mo.gif"; toc1off = new Image; toc1off.src="http://www.belchenland.de/clips/headmen_belchenland.gif"; toc2on = new Image; toc2on.src = "http://www.belchenland.de/clips/headmen_unterkuenfte_mo.gif"; toc2off = new Image; toc2off.src="http://www.belchenland.de/clips/headmen_unterkuenfte.gif"; toc3on = new Image; toc3on.src = "http://www.belchenland.de/clips/headmen_service_information_mo.gif"; toc3off = new Image; toc3off.src="http://www.belchenland.de/clips/headmen_service_information.gif"; toc4on = new Image; toc4on.src = "http://www.belchenland.de/clips/headmen_aktuell_mo.gif"; toc4off = new Image; toc4off.src="http://www.belchenland.de/clips/headmen_aktuell.gif"; toc5on = new Image; toc5on.src = "http://www.belchenland.de/clips/headmen_wunschurlaub_mo.gif"; toc5off = new Image; toc5off.src="http://www.belchenland.de/clips/headmen_wunschurlaub.gif"; } function img_act(imgName) { if (version == "n3") { imgOn = eval(imgName + "on.src"); document [imgName].src = imgOn; } } function img_inact(imgName) { if (version == "n3") { imgOff = eval(imgName + "off.src"); document [imgName].src = imgOff; } }