var px = 10;    // scrollgeschwindigkeit
var timer;

function scrollDenDiv(val) {
	clearTimeout(timer);
	d=document.getElementById('content_text');
	y=d.scrollTop;
	if(val==1) y-=px;
	if(val==2) y+=px;
	if(y<=d.scrollHeight-d.offsetHeight+px&&y>=-px) {
		d.scrollTop=y;
		timer=setTimeout('scrollDenDiv('+val+')',50);
	}
	if(y<0||y>d.scrollHeight-d.offsetHeight) {
		clearTimeout(timer);
	}
} 

jQuery.noConflict();
jQuery.extend(jQuery.fn.jScrollPane.defaults, {showArrows:true});
jQuery(function() {
	// this initialises the demo scollpanes on the page.
	jQuery('.scroll-pane').jScrollPane();
});

//$(function() {
//	$('.scroll-pane').jScrollPane();
//});


