(function(){var h=new Array(),e=new Array(),b=null,d=300,g=15;function a(j,k){j.c.style.display=(k==0)?"none":"block";var l=j.c.offsetHeight,i=Math.round(k*l);j.b.style.height=i+"px";j.c.style.marginTop=(i-l)+"px"}function c(){var o=(new Date()).getTime(),p=true,n,m,k,l;for(n=0,m=h.length;n<m;n++){k=h[n];if(k.d){p=false;l=(o-k.d)/d;if(l>=1){l=1;k.d=null}a(k,k.a?l:1-l)}}b=p?null:window.setTimeout(c,g)}function f(l){var k=l?l.target:event.srcElement,i=e[k.id],j=(new Date()).getTime();i.a=!i.a;k.className=i.a?"open":"";if(i.d){j-=d+i.d-j}i.d=j;if(!b){b=setTimeout(c,g)}}window.TcnzSlide={setupSlides:function(){var m,l,o,p,n,q,k;for(m=0,l=arguments.length;m<l;m++){o=arguments[m];p=document.getElementById(o+"_heading");n=document.getElementById(o+"_content");q=document.createElement("div");k={b:q,c:n};p.onclick=f;q.style.overflow="hidden";n.parentNode.insertBefore(q,n);q.appendChild(n);e[p.id]=k;h.push(k);a(k,0)}}}})();
