var scrollspeed=1;
var cache=1;
var name = navigator.appName;
var x;
var vTimeOut=0;
function initialize(){
marqueeheight=document.all? parent.document.all.datamain.height : parent.document.getElementById("datamain").getAttribute("height")
dataobj=document.all? document.all.datacontainer : document.getElementById("datacontainer")
dataobj.style.top=5
thelength=dataobj.offsetHeight
scrolltest()
  }
function waitMoment(x){
if (x==1)
initialize();
else
setTimeout("waitMoment(1)",10000);
  }
function scrolltest(){
if(vTimeOut)
window.clearTimeout(vTimeOut);
dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed
if (parseInt(dataobj.style.top)<(thelength*(-1)))
dataobj.style.top=5
vTimeOut=setTimeout("scrolltest()",50);
  }
window.onload=waitMoment
function newWin(url,width,height){
var tWin=window.open(url,'','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,movable=yes,resizable=yes,width='+width+',height='+height);
 }
var scrollFlag=true;
var x;
function StopTicker(){
scrollflag=false;
window.clearTimeout(x);
 }
function setTicker()
{
 scrollflag=true;
 scrollDiv();
}
function scrollDiv() {
       if (scrollFlag)
        {
    	 var sDiv=document.getElementById("FirstDiv")
      	 sDiv.style.top = parseInt(sDiv.style.top)-1
    	 if(parseInt(sDiv.style.top) < -sDiv.offsetHeight) sDiv.style.top = 40
             window.clearTimeout(x);
    	 x=setTimeout("scrollDiv()",70);
        }
}
function startScroll()	{
	var sDiv=document.getElementById("FirstDiv")
	sDiv.style.top = 70;
}
