var delayb4scroll = 0; 
var scroller_speed = 1;
var reinit_scroller_speed = 1;
var pauseit = 1;
var pausespeed = (pauseit==0)? scroller_speed: 0;
var actualheight = '';

function scrollmarquee()
{
	if (parseInt(main_scroller.style.top) > (actualheight*(-1)-50))
	{
		main_scroller.style.top = parseInt(main_scroller.style.top)-scroller_speed+"px"; 
	}
	else
	{
		main_scroller.style.top = parseInt(marqueeheight)+8+"px";
	}
}

function initialise_scroller()
{
	//Setting the top of our scroller to 0
	main_scroller = document.getElementById("scroller");
	main_scroller.style.top = 0;
	
	//Height of our scroller container
	marqueeheight = document.getElementById("scroller_container").offsetHeight;
	actualheight = main_scroller.offsetHeight;
	
	if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1)
	{ 
		main_scroller.style.height = marqueeheight+"px";
		main_scroller.style.overflow = "scroll";
		return;
	}
	
	setTimeout('setInterval("scrollmarquee()",30)', delayb4scroll);
}

if (window.addEventListener)
{
	window.addEventListener("load", initialise_scroller, false);
}
else if (window.attachEvent)
{
	window.attachEvent("onload", initialise_scroller);
}
else if (document.getElementById)
{
	window.onload = initialise_scroller;
}