var inc=1
var ns4=document.layers
var ie5ns6=document.getElementById||document.all

if (ie5ns6)
document.write(openingtag+'<div id="flyin" style="position:relative;width:'+scrollwidth+';height:'+scrollheight+';color:#ffffff;overflow:hidden;">'+message[0]+'</div>'+closingtag)


function updatemsg(){
crossobj.style.right="-1000px"
crossobj.style.fontStyle="italic"
crossobj.style.overflow="hidden";
crossobj.innerHTML=message[inc]
crossobj.style.right=crossobj.offsetWidth*(-1)+hoffset+"px";


//if (inc<2)
//{start=setInterval("animatein()",80)
//inc=(inc<message.length-1)? inc+1 : 0
//}

start=setInterval("animatein()",150)
inc=(inc<message.length-1)? inc+1 : 0
}

function animatein(){
if (parseInt(crossobj.style.right)<0)
	crossobj.style.right=parseInt(crossobj.style.right)+20+"px"
else{
	crossobj.style.right=0+"px"
	crossobj.style.fontStyle="normal"
	clearInterval(start)
}
}

function updatemsgns4(){
document.sslide.document.sslide2.document.write(message[inc])
document.sslide.document.sslide2.document.close()
inc=(inc<message.length-1)? inc+1 : 0
}

function initialize2(){
if (ie5ns6){
crossobj=document.getElementById? document.getElementById("flyin") : document.all.flyin
//updatemsg();
setInterval("updatemsg()",delay+1000)
}
else if (ns4){
document.sslide.document.sslide2.document.write(openingtag+message[0]+closingtag)
document.sslide.document.sslide2.document.close()
setInterval("updatemsgns4()",delay)
}
}