<!--

var moving = false;

$(function() {
		   
	var height = $('#scrollText').innerHeight();
	
	if (height > 306) {
		$("#upArrow").css("display","inline");
		$("#downArrow").css("display","inline");
	} else {	
		$("#upArrow").css("display","none");
		$("#downArrow").css("display","none");
	}
	
	$("#move_down").mousehold(function(){
		var top = $("#scrollText").css("top");
		var height = $('#scrollText').innerHeight();
		var containerHeight = $("#scrollContainer").css("height");
		
		top = top.replace("px","")
		containerHeight = containerHeight.replace("px","")
			
		top = parseInt(top)
		containerHeight = parseInt(containerHeight)
		
		var maxTop = height - containerHeight;
			
		maxTop = maxTop - (maxTop*2);
			
		var nextTop = top - 60;
	
		if (nextTop < maxTop) {			
			nextTop = maxTop;
		}
		
		if (moving == false) {	
			if (height > containerHeight) {
				moving = true;
				$("#scrollText").animate({"top": nextTop}, 500, "linear", function(){
					 moving = false;			 
				});
			}	
		}
	});	
	
	$("#move_up").mousehold(function(){
									 	
		var top = $("#scrollText").css("top");	
		top = top.replace("px","")	
		top = parseInt(top)
			
		maxTop = 0;
		
		var nextTop = top + 60;
		
		if (nextTop > maxTop) {		
			nextTop = maxTop;	
		}
		
		if ((top < 0) && (moving == false)) {
			moving = true;
			$("#scrollText").animate({"top": nextTop}, 500, "linear", function(){
				 moving = false;
			});
		}
		
	
	});		
			 				   			
});
//-->