var Scroll=Class.create();Scroll.prototype={initialize:function(offsetScroll,container,inspectWindow,inspectWindowScrollers){this.offsetScroll=offsetScroll;this.container=$(container);this.inspectWindow=$(inspectWindow);this.inspectWindowScrollers=$(inspectWindowScrollers);this.posTop=0;this.toggleScrollbar()},toggleScrollbar:function(){if(this.inspectWindow.getHeight()>this.container.getHeight())this.inspectWindowScrollers.show();else{this.inspectWindowScrollers.hide();this.posTop=0;this.inspectWindow.style.top=this.posTop+"px"}},moveScrolUp:function(){if(this.container.getHeight()-this.posTop<this.inspectWindow.scrollHeight){this.posTop=this.posTop-this.offsetScroll;this.inspectWindow.style.top=this.posTop+"px"}},moveScrolDown:function(){if(this.posTop!=0){this.posTop=this.posTop+this.offsetScroll;this.inspectWindow.style.top=this.posTop+"px"}}};Scroll.showScrollbar=function(div){try{$(div).select("div.hasScrollScrollableArea").each(function(s){var objName="scroll"+s.id,f=objName+".toggleScrollbar()";eval(f)})}catch(e){}};
