// JavaScript Document

function LoadScrollContent()
{
	//specify path to your external page:
	var iframesrc="scrollContent.htm"
	
	//You may change most attributes of iframe tag below, such as width and height:
	document.write('<iframe id="datamain" src="'+iframesrc+'" width="100%" height="265px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>');
}


function ScrollContentVerticle()
{
	if (window.addEventListener)
	window.addEventListener("load", initializeScroller, false)
	else if (window.attachEvent)
	window.attachEvent("onload", initializeScroller)
	else
	window.onload=initializeScroller
	//initializeScroller();
	//scrollDiv();
}


//Specify speed of scroll. Larger=faster (ie: 5)
var scrollspeed=cache=1

//Specify intial delay before scroller starts scrolling (in miliseconds):
var initialdelay=500

function initializeScroller(){
dataobj=document.all? document.all.datacontainer : document.getElementById("datacontainer")
dataobj.style.top="5px"
setTimeout("getdataheight()", initialdelay)
}

function getdataheight(){
	thelength=dataobj.offsetHeight
	if (thelength==0)
	setTimeout("getdataheight()",10)
	else
	scrollDiv()
}

function scrollDiv(){
dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed+"px"
if (parseInt(dataobj.style.top)<thelength*(-1))
dataobj.style.top="5px"
setTimeout("scrollDiv()",40)
}


