var scrollerwidth=420
var scrollerheight=30
//var messages=new Array()
//messages[0]="<font face=Verdana size=2></font>"
//messages[1]="<font face=Verdana size=2 dir=rtl></font>"
//messages[2]="<font face=Verdana size=2 dir=rtl></font>"
var i=1, idss, j1=100, j2=0;
if(document.all) IE = true
else if(document.getElementById) IE = false

function move(){
	if(parseInt(div1.style.top)>=(-scrollerheight)){
		div1.style.top=parseInt(div1.style.top)-1
		div2.style.top=parseInt(div2.style.top)-1

		if(IE){
			div1.style.filter = "Alpha(Opacity="+j1+")";
			div2.style.filter = "Alpha(Opacity="+j2+")";
			j1 -=6; j2 +=6;
		}
	}else{
		if(IE){ j1=100; j2=0; }
		div1.style.top=scrollerheight+'px'
		i++
		if (i>messages.length-1)  i=0
		div1.innerHTML=messages[i]
		idss=eval(div1)
		div1=eval(div2)
		div2=eval(idss)
		setTimeout('move()',4000)
		return
	}
	setTimeout('move()', 1)
}

function init(){
/*	var str='&nbsp;<div id="main" style="position:absolute; top:95; left:35%; width:'+scrollerwidth+';">'
	if(IE==false) str+='<div id="div_id" style="position:absolute; width:'+scrollerwidth+'; height:'+scrollerheight+'; clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0); background:transparent;">'
	str+='<div id="first_div" align=center style="position:absolute; width:'+scrollerwidth+'; height:'+scrollerheight+'; left:0; top:0; padding-top:1; Filter:Alpha(Opacity=100)">'+messages[0]+'</div>'
	str+='<div id="second_div" align=center style="position:relative; width:'+scrollerwidth+'; height:'+scrollerheight+'; left:0; top:'+scrollerheight+'; padding-top:1; Filter:Alpha(Opacity=0)">'+messages[1]+'</div></div>'
	if(IE==false) str+='</div>'*/

	var str='&nbsp;<div id="main" style="position:absolute;top=80;left=260; width:'+scrollerwidth+';">'
	if(IE==false) str+='<div id="div_id" style="position:absolute; width:'+scrollerwidth+'; height:'+scrollerheight+'; clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0); background:transparent;">'
	str+='<div id="first_div" align=center style="position:absolute; width:'+scrollerwidth+'; height:'+scrollerheight+'; left:0; top:0; padding-top:1; Filter:Alpha(Opacity=100)">'+messages[0]+'</div>'
	str+='<div id="second_div" align=center style="position:relative; width:'+scrollerwidth+'; height:'+scrollerheight+'; left:0; top:'+scrollerheight+'; padding-top:1; Filter:Alpha(Opacity=0)">'+messages[1]+'</div></div>'
	if(IE==false) str+='</div>'
	

	if(document.all){
		document.all['marq'].innerHTML=str
		div1=eval(first_div)
		div2=eval(second_div)
	} else if(document.getElementById){
		document.getElementById('marq').innerHTML=str
		div1=document.getElementById('first_div')
		div2=document.getElementById('second_div')
	}
	setTimeout('move()', 4000)
}

