// <![CDATA[
var contentHeight			= $('scrollContent').offsetHeight; 
var windowHeight			= $('scrollWindow').offsetHeight;
var handleHeight			= $('handle').offsetHeight
var trackHeight 			= $('track').offsetHeight;
var maxMove					= contentHeight - windowHeight;


function moveTo(yPos, handTop){
	scrollVertical(yPos/maxMove);
	$('handle').style.top = handTop+"px";
	//$('debug').innerHTML = "scrollContent Top: " + $('scrollContent').style.top+"<br>";
	//$('debug').innerHTML+= "handle Top: " + $('handle').style.top;
}

function scrollVertical(v){
	var move = (parseInt(maxMove * v));
	$('scrollContent').style.top = (0 - move) + "px";
	//$('debug').innerHTML = "scrollContent Top: " + $('scrollContent').style.top+"<br>";
	//$('debug').innerHTML+= "handle Top: " + $('handle').style.top;
}

new Control.Slider('handle','track',{axis:'vertical',
        onSlide:function(v){scrollVertical(v)}, 
		  onChange:function(v){scrollVertical(v)}
		  });
// ]]>