var cl=false;var menu=function(){var k=15,i=50,j=6,m;function n(b){this.n=b;this.h=[];this.c=[];this.an=[]}n.prototype.init=function(g,f){m=f;var e=document.getElementById(g),h=e.getElementsByTagName("ul"),c=h.length,d=0;for(d;d<c;d++){var b=h[d].parentNode;this.h[d]=b;this.c[d]=h[d];this.an[d]=l(b,(d==0?2:1));if(d==0){b.onclick=new Function(this.n+".st("+d+",true,1);"+this.n+".tglCl();");b.onmouseover=new Function(this.n+".st("+d+",true,2)");b.onmouseout=new Function(this.n+".st("+d+", false, 2)")}else{b.onmouseover=new Function(this.n+".st("+d+",true)");b.onmouseout=new Function(this.n+".st("+d+")")}}};n.prototype.st=function(e,b,f){var g=this.c[e],d=this.an[e],c=this.h[e],h=c.getElementsByTagName("a")[0];clearInterval(g.t);g.style.overflow="hidden";if(b&&(!f||(f==1&&!cl)||f==2)){if(!f||f==1||(f==2&&cl)){if(!g.mh){g.style.display="block";g.style.height="";g.mh=g.offsetHeight;g.style.height="1px";if(BrowserDetect.browser=="Explorer"){if(h.className!="ddLvlOne"){g.parentNode.style.height="22px"}else{g.parentNode.style.height="22px"}}}if(g.mh==g.offsetHeight){g.style.overflow="visible"}else{g.style.zIndex=i;i++;g.t=setInterval(function(){a(e,g,d,1)},k)}}}else{g.t=setInterval(function(){if(f==2){cl=false}a(e,g,d,-1)},k)}};n.prototype.tglCl=function(){cl=!cl};function a(f,g,e,b){var c=g.offsetHeight;if((c<=1&&b!=1)||(c>=g.mh&&b==1)){if(b==1){g.style.filter="";g.style.opacity=1;g.style.overflow="visible"}clearInterval(g.t);g.bg=false;return}if(b==1&&c==1){if(f==0){e.style.background="#ff8c2d url(images/icons/ddDown_orange.jpg) no-repeat 95% 65%"}if(f==1){e.style.background="#6e2e0b url(images/icons/ddRight_brown.jpg) no-repeat 95% 50%";e.style.color="#ff8c2d"}}if(b==-1&&!g.bg&&c<=g.mh/2){if(f==0){e.style.background="none"}if(f==1){e.style.color="#6e2e0b";e.style.background="#ff8c2d url(images/icons/ddRight_orange.jpg) no-repeat 95% 50%"}g.bg=true}var h=(b==1)?Math.ceil((g.mh-c)/j):Math.ceil(c/j),o=c/g.mh;g.style.opacity=o;g.style.filter="alpha(opacity="+(o*100)+")";var d=c+(h*b);if(d==0){d=1}g.style.height=d+"px"}function l(d,b){var c=d.childNodes[0];if(c.nodeName=="#text"){c=d.childNodes[1]}if(--b>0){return l(c,b)}else{return c}}return{dd:n}}();
