// // // menu.js // // // menu var menu=function(){ var t=15,z=50,s=6,a; function dd(n){this.n=n; this.h=[]; this.c=[]} dd.prototype.init=function(p,c){ a=c; var w=document.getElementById(p), s=w.getElementsByTagName('ul'), l=s.length, i=0; for(i;i=c.mh&&f==1)){ if(f==1){c.style.filter=''; c.style.opacity=1; c.style.overflow='visible'} clearInterval(c.t); return } var d=(f==1)?Math.ceil((c.mh-h)/s):Math.ceil(h/s), o=h/c.mh; c.style.opacity=o; c.style.filter='alpha(opacity='+(o*100)+')'; c.style.height=h+(d*f)+'px' } return{dd:dd} }(); function wmoSearch(e){ var eleId=getEleId(e); var wmo=Number(document.getElementById("iwmo").value); var url="../float_inf/all-in.php?wmo="+wmo+"&id=0"; var lang = document.getElementById("lang1"); if(lang){ var lang = lang.childNodes[0].nodeValue; if(lang==0){ var url="../float_inf/all-in_e.php?wmo="+wmo+"&id=0"; } } location.href=url; } // set event listener function setListeners(){ // wmo search var obj=document.getElementById("swmo"); addListener(obj,"click",wmoSearch,false); } addListener(window,"load",setListeners,false);