function move1(whichdiv)
{
	tdiv=eval(whichdiv);
	
	if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=5)
	{
		tdiv.style.pixelTop=0;
		setTimeout('move1(tdiv)',5000); // 1000 ºÐÀÇ 1 ÃÊ ´ÜÀ§
		setTimeout('move2(second)',5000);
		return;
	}

	if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1)
	{
		tdiv.style.pixelTop-=5;
		setTimeout('move1(tdiv)',100);
	}
	else
	{
		tdiv.style.pixelTop=scrollerheight;
		tdiv.innerHTML=messages[i];
	if (i==messages.length-1) i=0;
	else i++;
	}
}

function move2(whichdiv)
{
	tdiv2=eval(whichdiv);
	
	if (tdiv2.style.pixelTop>0&&tdiv2.style.pixelTop<=5)
	{
		tdiv2.style.pixelTop=0;
		setTimeout('move2(tdiv2)',5000);
		setTimeout('move1(first)',5000);
		return;
	}

	if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1)
	{
		tdiv2.style.pixelTop-=5;
		setTimeout('move2(second)',100);
	}
	else
	{
		tdiv2.style.pixelTop=scrollerheight;
		tdiv2.innerHTML=messages[i];
	if (i==messages.length-1) i=0;
	else i++;
	}
}

function startscroll()
{
	if (document.all)
	{
		move1(first);
		second.style.top=scrollerheight;
		second.style.visibility='visible';
	}
}