var TINY= {};
fungera T$ (I) {återgång document.getElementById (I)}
fungera T$$ (e, p) {återgång p.getElementsByTagName (e)}
TINY.accordion=function () {
fungera glidare (n) {this.n=n; this.a= []}
slider.prototype.init=function (t, e, M, nolla, K) {
var a=T$ (t), i=s=0, n=a.childNodes, l=n.length; this.s=k||0; this.m=m||0;
för (I; i0&& (f==-1||this.m||i==d)){
c.d=-1; h.className= ''; su (c, - 1)
}
}
};
fungera su (c) {c.t=setInterval (fungera () {sl (c)}, 20)};
fungera sl (c) {
var h=c.offsetHeight, d=c.d==1? c.m-h: H; c.style.height=h+ (Math.ceil (d/5) *c.d) + ' px';
c.style.opacity=h/c.m; c.style.filter='alpha (opacity='+ h*100/c.m+') ';
om ((c.d==1&&h>=c.m)||(c.d! =1&&h==1)){om (c.d==1) {clearInterval c.style.height='auto'} (c.t)}
c.style.filter= '';
};
gå tillbaka {glidare: glidare}
} ();
|