function T$(d){return document.getElementById(d)}function T$$(d,a){return a.getElementsByTagName(d)}var slider=function(){function d(a,e){this.n=a;this.init(e)}d.prototype.init=function(a){var e=T$(a.id),b=this.u=T$$("ul",e)[0],c=T$$("li",b),f=c.length,g=this.l=this.c=0;if(a.navid&&a.activeclass){this.g=T$$("li",T$(a.navid));this.s=a.activeclass}this.a=a.auto||0;this.p=a.resume||0;this.v=a.vertical||0;for(e.style.overflow="hidden";g<f;g++)c[g].parentNode==b&&this.l++;if(this.v){b.style.top=0;this.h=a.height||c[0].offsetHeight;b.style.height=this.l*this.h+"px"}else{b.style.left=0;this.w=a.width||
c[0].offsetWidth;b.style.width=this.l*this.w+"px"}this.pos(a.position||0,this.a?1:0)};d.prototype.auto=function(){this.u.ai=setInterval(new Function(this.n+".move(1,1)"),this.a*1E3)};d.prototype.move=function(a,e){var b=this.c+a;this.pos(a==1?b==this.l?0:b:b<0?this.l-1:b,e)};d.prototype.pos=function(a,e){clearInterval(this.u.ai);clearInterval(this.u.si);var b=this.v?parseInt(this.u.style.top):parseInt(this.u.style.left),c=this.v?a*this.h:a*this.w;b=c>Math.abs(b)?1:-1;c*=-1;this.c=a;if(this.g)for(var f=
0;f<this.l;f++)this.g[f].className=f==a?this.s:"";this.u.si=setInterval(new Function(this.n+".slide("+c+","+b+","+e+")"),20)};d.prototype.slide=function(a,e,b){var c=this.v?parseInt(this.u.style.top):parseInt(this.u.style.left);if(c==a){clearInterval(this.u.si);if(b||this.a&&this.p)this.auto()}else{a=c-Math.ceil(Math.abs(a-c)*0.15)*e+"px";this.v?this.u.style.top=a:this.u.style.left=a}};return{slide:d}}();