// JavaScript Document
<!--

var content_max = 330;
var content_height;
var up_mouse_over;
var down_mouse_over;

function init_scrolling() {
	var my_content;
	
	my_content = document.getElementById("space");
	my_content.style.left = 0 + "px";
	my_content.style.top = 0 + "px";
	my_content.style.index = 1;
	
	content_height = my_content.offsetHeight;

	if (content_height > content_max) {
		document.getElementById('scroll_up').style.visibility = 'visible';
		document.getElementById('scroll_down').style.visibility = 'visible';
	}
}

function move_up() {
	var my_content;
	var x;
	
	if(up_mouse_over == true) {
		my_content = document.getElementById("space");
		x = parseInt(my_content.style.top);
		if(x < 0) {
			my_content.style.top = (x + 4) + "px";
		}
		setTimeout("move_up();", 10);
	}
}

function start_up() {
	up_mouse_over = true;
	move_up();
}

function stop_up() {
	up_mouse_over = false;
}

function move_down() {
	var my_content;
	var x;
	if(down_mouse_over == true) {
		my_content = document.getElementById("space");
		x = parseInt(my_content.style.top);
		
		if(-x < content_height - content_max)
		{
			my_content.style.top = (x - 4) + "px";
		}

		setTimeout("move_down();", 10);
	}
}

function start_down() {
	down_mouse_over = true;
	move_down();
}

function stop_down() {
	down_mouse_over = false;
}

function initialize() {
	if (content_max > 0) {
		init_scrolling();
	}
}
-->