var scrollerwidth='100%'
var scrollerheight='70px'
var srollerstep = 5
var messages=new Array()
var iNews =0
var ie=document.all
var dom=document.getElementById

function startscroll()
{
	document.writeln('<div class="quicklink" id="main2" style="right:0;position:relative;width:100%;height:'+scrollerheight+';overflow:hidden ">')
	document.writeln('<div id="myDiv" style="right:0;position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0;top:0">')
	document.writeln('<div  id="first2" style="right:0;position:absolute;width:'+scrollerwidth+';left:0;top:1; ">')
	document.write(messages[iNews])
	document.writeln('</div>')
	document.writeln('<div  id="second2" style="right:0;position:absolute;width:'+scrollerwidth+';left:0;top:0;visibility:hidden; margin-top:5">')
	if(messages.length == 1 )
		document.write(messages[iNews])
	else
		document.write(messages[++iNews])
	document.writeln('</div>')	
	document.writeln('</div>')
	document.writeln('</div>')	
	move3('first2')
	second2.style.top=scrollerheight
	second2.style.visibility='visible'	
	
}
function move3(whichdiv)
{
	tdiv=eval(whichdiv)
	if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5)
	{
	tdiv.style.top=0+"px"
	setTimeout("move3(tdiv)",3000)
	setTimeout("move4(second2)",3000)
	return
	}
	if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
	tdiv.style.top=parseInt(tdiv.style.top)-srollerstep+"px"
	setTimeout("move3(tdiv)",50)	
	}
	else{
	tdiv.style.top=parseInt(scrollerheight)
	tdiv.innerHTML=messages[iNews]
	if (iNews==messages.length-1)
	iNews=0
	else
	iNews++
	}
} //function move3

function move4(whichdiv)
{
	tdiv2=eval(whichdiv)
	if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5)
	{
	tdiv2.style.top=0+"px"
	setTimeout("move4(tdiv2)",3000)
	setTimeout("move3('first2')",3000)
	return
	}
	if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1)
	{
		tdiv2.style.top=parseInt(tdiv2.style.top)-srollerstep+"px"
		setTimeout("move4(second2)",50)
	}
	else
	{
		tdiv2.style.top=parseInt(scrollerheight)
		tdiv2.innerHTML=messages[iNews]
		if (iNews==messages.length-1)
		iNews=0
		else
		iNews++
	}
}
