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.h=[];this.c=[]}d.prototype.init=function(r,s,f,u,p){var g=T$(r),q=x=0;this.s=p||"",w=[],n=g.childNodes,l=n.length;this.m=f||false;for(q;q<l;q++){if(n[q].nodeType!=3){w[x]=n[q];x++}}this.l=x;for(q=0;q<this.l;q++){var j=w[q];alert(w[q].className);this.h[q]=T$$(s,j)[0];h=this.h[q];this.c[q]=c=T$$("div",j)[0];h.onclick=new Function(this.n+".pr(false,this)");if(u==q){h.className=this.s;c.style.height="auto";c.d=1}else{c.style.height=0;c.d=-1}}};d.prototype.pr=function(m,o){for(var g=0;g<this.l;g++){var j=this.h[g],p=this.c[g],e=p.style.height;e=e=="auto"?1:parseInt(e);clearInterval(p.t);if((e!=1&&p.d==-1)&&(m==1||j==o)){p.style.height="";p.m=p.offsetHeight;p.style.height=e+"px";p.d=1;j.className=this.s;b(p,1)}else{if(e>0&&(m==-1||this.m||j==o)){p.d=-1;j.className="";b(p,-1)}}}};function b(e){e.t=setInterval(function(){a(e)},10)}function a(g){var e=g.offsetHeight,f=g.d==1?g.m-e:e;g.style.height=e+(Math.ceil(f/10)*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"}clearInterval(g.t)}}return{slider:d}}();