var TINY={};function T$(a){return document.getElementById(a)}function T$$(b,a){return a.getElementsByTagName(b)}TINY.accordion=function(){function d(e){this.n=e;this.a=[]}d.prototype.init=function(C,z,r,j,w){var A=T$(C),x=s=0,p=A.childNodes,u=p.length;this.s=w||0;this.m=r||0;for(x;x<u;x++){var B=p[x];if(B.nodeType!=3){this.a[s]={};this.a[s].h=h=T$$(z,B)[0];this.a[s].c=c=T$$("div",B)[0];h.onclick=new Function(this.n+".pr(0,"+s+")");var y=0;for(var g=0;g<j.length;g++){if(j[g]==s){y=1;break}}if(y){h.className=this.s;c.style.height="auto";c.d=1}else{c.style.height=0;c.d=-1;c.style.overflow="hidden"}s++}}this.l=s};d.prototype.pr=function(l,m){for(var g=0;g<this.l;g++){var j=this.a[g].h,n=this.a[g].c,e=n.style.height;e=e=="auto"?1:parseInt(e);clearInterval(n.t);if((e!=1&&n.d==-1)&&(l==1||g==m)){n.style.height="";n.m=n.offsetHeight;n.style.height=e+"px";n.d=1;j.className=this.s;b(n,1)}else{if(e>0&&(l==-1||this.m||g==m)){n.style.overflow="hidden";n.d=-1;j.className="";b(n,-1)}}}};function b(e){e.t=setInterval(function(){a(e)},20)}function a(g){var e=g.offsetHeight,f=g.d==1?g.m-e:e;g.style.height=e+(Math.ceil(f/5)*g.d)+"px";g.style.opacity=e/g.m;g.style.filter="alpha(opacity="+e*100/g.m+")";if((g.d==1&&e>=g.m)||(g.d!=1&&e==1)){if(g.d==1){g.style.height="auto";g.style.filter="";g.style.overflow="visible"}clearInterval(g.t)}}return{slider:d}}();
