var move_news_pos = 0;
var st = 0;
var the_height = 0;
var delay = 200;

function move_news()
{
	if (move_news_pos >= the_height)
		move_news_pos = 0;
	else
		move_news_pos = move_news_pos + 2;
	document.getElementById("news_cont").scrollTop = move_news_pos;

	st = setTimeout( "move_news()", delay );
}

function scrollStart()
{
	the_height = document.getElementById("news_cont").scrollHeight;
	document.getElementById("news_cont").innerHTML += document.getElementById("news_cont").innerHTML;
	st = setTimeout( "move_news()", delay );
}

function scrollContinue()
{
	st = setTimeout( "move_news()", delay );
}

function scrollStop()
{
	if (st)
	{
		clearTimeout(st);
		st = 0;
	}
}

function open_popup(url, width, height, resizable)
{
	var new_widow = null;
	var leftPos = (screen.availWidth-width) / 2;
	var topPos = (screen.availHeight-height) / 2;
	new_widow = window.open(url,
			'','width='+width+',height='+height+',scrollbars=yes,resizable='+resizable+',titlebar=1,top=' + 
			topPos + ',left=' + leftPos);
}
