function makeScrollbar(b,c,d,f,g){var h=(f?(b.getScrollSize().x-b.getSize().x):(b.getScrollSize().y-b.getSize().y));var i=new Slider(c,d,{steps:h,mode:(f?'horizontal':'vertical'),onChange:function(a){var x=(f?a:0);var y=(f?0:a);b.scrollTo(x,y)}}).set(0);if(!(g)){$$(b,c).addEvent('mousewheel',function(e){e=new Event(e).stop();var a=i.step-e.wheel*30;i.set(a)})}$(document.body).addEvent('mouseleave',function(){i.drag.stop()})}window.addEvent('domready',function(){var a=$('scrollerbox');var b=$('track');var c=$('thumb');var d=$('cz1');if(d.getSize().y>a.getStyle('height').toInt()){b.setStyle('visibility','visible');c.setStyle('visibility','visible');makeScrollbar(a,b,c)}});