function showTitle (title)
{
	var projecttitle = document.getElementById("projecttitle");
	var oldText = projecttitle.firstChild; 
	var titleText = document.createTextNode(title); 
	projecttitle.replaceChild(titleText,oldText);
	projecttitle.style.display = "block";
}

function hideTitle ()
{
	var projecttitle = document.getElementById("projecttitle");
	projecttitle.style.display = "none";
}

var texttop = 0;

function scrolldown ()
{
	timer = window.setInterval("realscrolldown()",5);
}


function scrollup ()
{
	timer = window.setInterval("realscrollup()",5);
}

function stop()
{		
	if (timer) window.clearInterval(timer);
}

function realscrollup()
{
	var textview = document.getElementById("scrolltext");
	if (texttop <= 0)
	{
		texttop += 1;
		textview.style.top = texttop + "px";
	}
}
function realscrolldown()
{
	var textview = document.getElementById("scrolltext");
	var textheight = textview.offsetHeight;
	if (texttop > -(textheight - 300))
	{
		texttop -= 1;
		textview.style.top = texttop + "px";
	}
}
