whatsonHandler = function(){
	var $page		= 1;
	
	return {
		init : function(){
			
			$T_woh 				= this;
			$E.onAvailable('wo',function(){
				content_height		= $('whatsonSlider').offsetHeight;
				scrollbar_height	= $('whatson-scroller').offsetHeight;
				container_height	= $('whatson-content').offsetHeight;
				var scrollH 		= (container_height * scrollbar_height) / content_height;
							
				if(scrollH < 12) scrollH = 12;
				scrollbar = $('whatson-scrollbar');

				scrollbar.style.height = Math.round(scrollH) + "px";				
				scrollDist 	= Math.round(scrollbar_height - scrollbar.offsetHeight -4);

				Drag.init(scrollbar,null,0,0,0,scrollDist);
				
				scrollbar.onDrag = function(x,y) {
					scrollY 	= parseInt($('whatson-scrollbar').style.top);
					var docY 	= Math.round(0-(scrollY * (content_height - container_height) / scrollDist));
					var _Y = Math.round(0-(parseInt($('whatson-scrollbar').style.top) * (content_height - container_height) / scrollDist));
					$("whatsonSlider").style.top = _Y+'px';										
				}
			});
		}
	};
}();		
