function move1(whichdiv)
{   
	tdiv = eval(whichdiv)   
	if (tdiv.style.pixelTop > 0 && tdiv.style.pixelTop <= num){   
		tdiv.style.pixelTop = 0   
		setTimeout("move1(tdiv)",scrollspeed)   
		setTimeout("move2(second)",scrollspeed)   
		return   
	}
		
	if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1){   
		tdiv.style.pixelTop-=num 
		setTimeout("move1(tdiv)",waitingtime)   
	}   
	else{   
		tdiv.style.pixelTop=height   
		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<=num)
	{   
		tdiv2.style.pixelTop=0   
		setTimeout("move2(tdiv2)",scrollspeed)   
		setTimeout("move1(first)",scrollspeed)   
		return   
	}   
	if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1)
	{   
		tdiv2.style.pixelTop-=num   
		setTimeout("move2(second)",waitingtime)   
	}   
	else
	{   
		tdiv2.style.pixelTop=height   
		tdiv2.innerHTML=messages[i]   
		if (i==messages.length-1) i=0   
		else i++   
	}   
}   
			   
function startscroll()
{   
	move1(first)   
	second.style.top = height   
	second.style.visibility = 'visible'   
} 