
// DEFINE SCROLL SPEED
	var scrollSpeed = 10;

var scrollObject = document.getElementById ? document.getElementById("scrollContent") : document.all.scrollContent;
var contentHeight = scrollObject.offsetHeight;
var heightScrollContainer = parseInt(window.document.getElementById("contentScrollContainer").style.height);	

if(contentHeight == 0) { contentHeight = heightScrollContainer + 10; }

function scrollDown()
{	
	if (parseInt(scrollObject.style.top) >= (contentHeight * (-1) + 100))
	{
		scrollObject.style.top = parseInt(scrollObject.style.top) - scrollSpeed;
	}	
	stepScrollDown = setTimeout("scrollDown()", 100);
}

function scrollUp()
{		
	if (parseInt(scrollObject.style.top) < 0)
	{		
		scrollObject.style.top = parseInt(scrollObject.style.top) + scrollSpeed;
	}	
	stepScrollUp = setTimeout("scrollUp()", 100);
}

function getContentHeight()
{
	contentHeight = scrollObject.offsetHeight;		
}

function setScrollMenue()
{		
	if(window.document.getElementById("scrollNav"))
	{
		
		if(contentHeight > heightScrollContainer)
		{
			window.document.getElementById("scrollNav").style.visibility = "visible";
		}
		else
		{
			window.document.getElementById("scrollNav").style.visibility = "hidden";		
		}
	}
}
// window.onload = getContentHeight;
window.onload = setScrollMenue;

