var scrollbar = false;
var theText, theThumb, theScroll;
var thumbTravel, ratio;
var theScroll = new ypSimpleScroll("scroll", 0, 29, 300, 195);
	   
function init() {	
	lade_m();
	lade_l();
	if(document.getElementById("scrollContent").offsetHeight>216){
		theText   = document.getElementById("text");
		theThumb  = document.getElementById("thumb");
		theThumb.style.visibility = "visible";
		theScroll.load();
		//
		Drag.init(theThumb, null, 302, 302, 29, 177);
		// the number of pixels the thumb can travel vertically (max - min)
		thumbTravel = theThumb.maxY - theThumb.minY;
		// the ratio between scroller movement and thumbMovement
		ratio = theScroll.scrollH / thumbTravel;
		theThumb.onDrag = function(x, y) {
			theScroll.jumpTo(null, Math.round((y - theThumb.minY) * ratio));
		}
	
	}
}
