if(typeof (mobile)=="undefined"){var mobile={}
}mobile.AbstractScroller=Class.create({_element:null,SCROLL_STEP:100,USE_EFFECTS:true,ANIMATION_DURATION:0.5,_offsetProperty:"xxx",_offsetMaxProperty:"xxx",_scrollMaxProperty:"xxx",initialize:function(A){this._element=$(A);
this._setScroll(0)
},_scroll:function(A){if(this.USE_EFFECTS){this._animateScroll(A)
}else{this._setScroll(A)
}},scrollForward:function(){var B=this._element[this._scrollMaxProperty]-this._element[this._offsetMaxProperty];
var A=(this._element[this._offsetProperty]+this.SCROLL_STEP)>B?B:this._element[this._offsetProperty]+this.SCROLL_STEP;
this._scroll(A)
},scrollBackward:function(){var A=this._element[this._offsetProperty]<this.SCROLL_STEP?0:this._element[this._offsetProperty]-this.SCROLL_STEP;
this._scroll(A)
},_animateScroll:function(A){new Effect.Tween(this._element,this._element[this._offsetProperty],A,{duration:this.ANIMATION_DURATION},this._offsetProperty)
},_setScroll:function(A){this._element[this._offsetProperty]=A
}});
mobile.HorizontalScroller=Class.create(mobile.AbstractScroller,{_offsetProperty:"scrollLeft",_offsetMaxProperty:"offsetWidth",_scrollMaxProperty:"scrollWidth"});
mobile.VerticalScroller=Class.create(mobile.AbstractScroller,{_offsetProperty:"scrollTop",_offsetMaxProperty:"offsetHeight",_scrollMaxProperty:"scrollHeight"});