function TextScroll() {
	var _this = this;
	
	this.scroll = function(direction){
		var h = $('.textScrollInner').height();
		var t = (direction == 'up') ? 0 : (-1 * (h - $('.textScroll').height()));
		var d = (h - ($('.textScrollInner').css('top').substr(0, -2)*1)) * 2;
		
		$('.textScrollInner').animate({
			top : t
		}, d);
	};
	
	this.stop = function(){
		$('.textScrollInner').stop();
		return false;
	};
				
	$('.sipka_down').bind('mousedown', function(){
		_this.scroll('down');
		return false;
	}).bind('mouseup', function(){
		_this.stop();
		return false;
	}).bind('click', function(){
		return false;
	});
	
	$('.sipka_up').bind('mousedown', function(){
		_this.scroll('up');
		return false;
	}).bind('mouseup', function(){
		_this.stop();
		return false;
	}).bind('click', function(){
		return false;
	});
}
