var t1;
var i = 0;
var j = 0;
var speed_latest_news =3;
var speed_latest_add=8;
function scrolldiv()
{
	focusCursor();
	scroll();
	bottomscrollleft();
}
function focusCursor()
{
	document.getElementById('loginid').focus();
}
function scroll()
{
	i = i + speed_latest_news;
	var div = document.getElementById("maindiv");
	div.scrollTop = i;
	if (i > div.scrollHeight -380) {i = 0}
	t1=setTimeout("scroll()",100);
}
function bottomscrollleft()
{
	j = j + speed_latest_add;
	var divid = document.getElementById("bottomdiv_one");
	var divid1 = document.getElementById("bottomdiv_two");
	var divid2 = document.getElementById("bottomdiv_three");
	divid.scrollTop = j;
	divid1.scrollTop = j;
	divid2.scrollTop = j;
	if (j > divid.scrollHeight -120 )
	{
		j = 0;
	}
	if( (j % 112)==0 )
	{
		setTimeout("bottomscrollleft()",7000);
	}
	else
	{
		setTimeout("bottomscrollleft()",100);
	}
}

function stopme()
{
	clearTimeout(t1);
}

