window.onload=init;

var moveup;
var Scroll;
var Right;

function tip(text) {
	
	var text, loc;

	loc=document.getElementById('tooltip');

	loc.innerHTML=text;

	}


function reset() {
	
	var loc;

	loc=document.getElementById('tooltip');

	loc.innerHTML="Please hover/click here to <em>navigate the sub-sections</em>";

	}


function init() {

	Scroll=document.getElementById("scroll");
	Right=document.getElementById("right");

	if (Scroll!=null) {
		Scroll.style.top=0+"px";
		scrollup(40,1);
	}

}


function scrollup(time, speed) {

	Scroll=document.getElementById("scroll");

	if (parseInt(Scroll.style.top, 10) >= (-(parseInt(Scroll.offsetHeight, 10))+415)) {
		Scroll.style.top=parseInt(Scroll.style.top, 10)-speed+"px";
		moveup=setTimeout("scrollup("+time+","+speed+")",time);
	
	}

	else {
		Scroll.style.top=0+"px";
		moveup=setTimeout("scrollup("+time+","+speed+")",time);
	}

}