﻿var menu=function(){var e=15,f=50,d=6,b;function a(a){this.n=a;this.h=[];this.c=[]}a.prototype.init=function(g,e){b=e;var h=document.getElementById(g),d=h.getElementsByTagName("ul"),f=d.length,a=0;for(a;a<f;a++){var c=d[a].parentNode;this.h[a]=c;this.c[a]=d[a];c.onmouseover=new Function(this.n+".st("+a+",true)");c.onmouseout=new Function(this.n+".st("+a+")")}};a.prototype.st=function(g,h){var a=this.c[g],i=this.h[g],d=i.getElementsByTagName("a")[0];clearInterval(a.t);a.style.overflow="hidden";if(h){d.className+=" "+b;if(!a.mh){a.style.display="block";a.style.height="";a.mh=a.offsetHeight;a.style.height=0}if(a.mh==a.offsetHeight)a.style.overflow="visible";else{a.style.zIndex=f;f++;a.t=setInterval(function(){c(a,1)},e)}}else{d.className=d.className.replace(b,"");a.t=setInterval(function(){c(a,-1)},e)}};function c(a,c){var b=a.offsetHeight;if(b<=0&&c!=1||b>=a.mh&&c==1){if(c==1){a.style.filter="";a.style.opacity=1;a.style.overflow="visible"}clearInterval(a.t);return}var f=c==1?Math.ceil((a.mh-b)/d):Math.ceil(b/d),e=b/a.mh;a.style.opacity=e;a.style.filter="alpha(opacity="+e*100+")";a.style.height=b+f*c+"px"}return {dd:a}}()
