var t=new Array();var w=new Array();var u;function theFader(m,u){m.style.opacity=u;z=u*100;m.style.filter='alpha(opacity'+z+')';}function fadeView(a,m,u){u=u+0.1;if(u<=1){theFader(m,u);t[a]=setTimeout(function(){fadeView(a,m,u);},20);}}function fadeHide(a,m,u){u=u-0.1;if(u<=0){document.getElementById('amenu_'+a).style.overflow='hidden';}else{theFader(m,u);w[a]=setTimeout(function(){fadeHide(a,m,u);},20);}}function fadeIn(a,b){var m=document.getElementById('menu_'+a);if(m.style.opacity){u=parseFloat(m.style.opacity);}else{m.style.opacity=0;u=0;}if(b=='in'){document.getElementById('amenu_'+a).style.overflow='visible';fadeView(a,m,u);clearTimeout(w[a]);}else{fadeHide(a,m,u);clearTimeout(t[a]);}}
