function scroller()
{
	docH = document.getElementById("content").offsetHeight;
	contH = document.getElementById("container").offsetHeight;
	scrollAreaH = document.getElementById("scrollArea").offsetHeight;

	scrollH = (contH * scrollAreaH) / docH;
	document.getElementById("scroller").style.height = Math.round(scrollH) + "px";

	scrollDist = Math.round(scrollAreaH-scrollH);
    
	Drag.init(document.getElementById("scroller"),null,0,0,0,scrollDist);

	document.getElementById("scroller").onDrag = function (x,y) {
		var scrollY = parseInt(document.getElementById("scroller").style.top);
		var docY = 0 - (scrollY * (docH - contH) / scrollDist);
		document.getElementById("content").style.top = docY + "px";
	}
}