var over=0; var m=0; var ch='#FFFFFF'; var wait; var homeURL = $GLOBALS['homedir'] + "/" + $GLOBALS['language'] + "/"; function popup(id) { var z = 0; var e = false; if (typeof(id) != "undefined") { e = document.getElementById(id); if (e) { z = e.style.zIndex; } else { z = 1; if (id != '') { alert('program error'); } } } else { z = 1; } var pops = document.getElementsByClassName("popup_menue"); for (var i = 0; i < pops.length; i++) { var o = pops[i]; var s = window.getComputedStyle(o); if (s.zIndex >= z) { if (o.classList.contains("show")) o.classList.remove("show"); } } if (e) { over = 1; if (!e.classList.contains("show")) e.classList.add("show"); } } function on() { if (over==2) { window.clearTimeout(wait); } over = 1; } function force_off() { popup(); over = 0; } function set_off() { if (over == 2) { popup(); over = 0; } } function off() { if (over == 1) { over = 2; wait = window.setTimeout("set_off()",2000); } } function adv(n) { var t = 'lb'+m; if (document.getElementById(t)) { document.getElementById(t).style.color = ch; m++; window.setTimeout("adv("+n+")",n); } else { m = 0; ch = (ch == '#FFFFFF') ? '#000000':'#FFFFFF'; window.setTimeout("adv("+n+")",n*100); } } function epop() { var pops = document.getElementsByClassName("popup_menue"); if (pops.length > 0) { for (var i=0; i 0) { for (var i=0; i