function ContentSlider(A,I,G,E,D){ this.id=A; this.timer=A+"timer"; this.delay=(typeof (G)=="number")?G:3000; this.effect=(typeof (I)=="string")?I:"none"; this.sliders=[]; this.pointer=0; this.pause=0; var C=document.getElementById(A); var B=C.getElementsByTagName("div"); for(var F=0;F-this.width)||(this.effect=="scroll_up"&&this.pos>-this.height)){if(this.pos==0){this.pos=-1;window[this.timer]=setTimeout(function(){A.scrollL()},this.delay);return }else{if(this.pos<0){this.pos=Math.floor(this.pos*this.accel)-1}else{this.pos=Math.floor(this.pos/this.accel)}}}else{this.sliders[this.pointer].style.display="none";this.pos=-this.pos;this.next()}this.sliders[this.pointer].style.display="block";if(this.effect=="scroll_left"){this.sliders[this.pointer].style.left=this.pos+"px"}else{this.sliders[this.pointer].style.top=this.pos+"px"}window[this.timer]=setTimeout(function(){A.scrollL()},55)}};ContentSlider.prototype.scrollR=function(){var A=this;if(this.pause){window[this.timer]=setTimeout(function(){A.scrollR()},1000)}else{if((this.effect=="scroll_right"&&this.pos0){var F,E;for(var C=0;CB||E.height>D){F=Math.min((B-E.padH)/E.width,(D-E.padV)/E.height);A[C].style.width=parseInt(E.width*F)+"px";A[C].style.height=parseInt(E.height*F)+"px"}}}};ContentSlider.getDimension=function(E){var B=E.style.display;E.style.display="block";var A=E.width;var C=E.height;var F=E.offsetWidth-A;var D=E.offsetHeight-C;E.style.display=B;return{width:A,height:C,padH:F,padV:D}};