sfHover = function() { if (document.getElementById("menu")) { var sfEls = document.getElementById("menu").getElementsByTagName("LI"); for (var i=0; i max) { max = elemLang.options[i].text.length; imax = i; } } //alert(js_direction); //alert(elemLang.size); //elemLangTmp.style.width = elemLang.style.width - 20; } } function hideSelectBox(e) { if ((document.getElementById("lang")) && (((js_direction=="rtl") && (event.clientX < 300)) || ((js_direction=="ltr") && (event.clientX > 710)))) { document.getElementById("lang").style.display="none"; document.getElementById("langTmp").style.display=""; } } function showSelectBox (e) { if (document.getElementById("lang")) { document.getElementById("lang").style.display=""; document.getElementById("langTmp").style.display="none"; } } if (window.attachEvent) window.attachEvent("onload", sfHover);