if (window.addEventListener)
{
	window.addEventListener("load", movedown, false);
}
else if (window.attachEvent)
{
	window.attachEvent("onload", movedown);
}


/*----- scroller ------*/

var contentheight = 0;
var containerheight = 0;
var freeze = false;

function movedown()
{
	if (freeze) return;
	var crossobj=document.getElementById? document.getElementById("content") : document.all.content;
	var crossparent=document.getElementById? document.getElementById("scrolling-container") : document.all.content;
	if(crossobj && crossparent && containerheight == 0 && contentheight == 0)
	{
		crossparent.onmouseover = function () {
				if (movedownvar)
					clearTimeout(movedownvar);
				freeze = true;
			}
		crossparent.onmouseout = function () {
				if (movedownvar)
					clearTimeout(movedownvar);
				freeze = false; 
				movedownvar=setTimeout("movedown()",20);
			}

		containerheight = crossparent.offsetHeight;
		contentheight=crossobj.offsetHeight;
		if (contentheight > containerheight)
			crossobj.innerHTML += crossobj.innerHTML;
	}
	
	var speed=1;
	if (contentheight > containerheight)
	{
		if (window.moveupvar) {clearTimeout(moveupvar)}
		if (parseInt(crossobj.style.top)>=(contentheight*(-1))) {crossobj.style.top=parseInt(crossobj.style.top)-speed+"px";}
			else {crossobj.style.top=-2+"px";}
		movedownvar=setTimeout("movedown()",70);
	}
}

/*----- end scroller ------*/
