// JavaScript Document


//<iframe> script by Dynamicdrive.com

//Specify speed of scroll. Larger=faster (ie: 5)
var scrollspeed=cache=300

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=15

setTimeout("scrolltest()", 1000);
}

function scrolltest(){

marqueeheight=document.all? parent.document.all.datamain.height : parent.document.getElementById("datamain").getAttribute("height")
dataobj=document.all? document.all.datacontainer : document.getElementById("datacontainer")
thelength=dataobj.offsetHeight;
dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed
if ( thelength == 0 ) { 
	// do not execute reset code
	//alert('thelength = ' + thelength);
   	}
else
	{
	if (parseInt(dataobj.style.top)<(thelength*(-1))+eval(marqueeheight))
		{
		//alert("stopped!");
	//	dataobj.style.top=15   //uncomment to have it reload when done
		//alert('thelength = ' + thelength);
		}
	else
		{
		setTimeout("scrolltest()",30)
		}
	}
	
}


