/***********************************************
* IFRAME Scroller script- ? Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
//Specify speed of scroll. Larger=faster (ie: 5)
var scrollspeed=1
var scrollspeedcache=1
//Specify intial delay before scroller starts scrolling (in miliseconds):
var initialdelay=1000

function initializeScroller(){
	dataobj=document.all? document.all.Scroll : document.getElementById("Scroll")
	dataobj.style.top="70px"
	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))
		{
//			alert('parseInt(dataobj.style.top)='+parseInt(dataobj.style.top) +' thelength*(-1)=' + thelength*(-1))
			dataobj.style.top="100px";
		}

	if (parseInt(dataobj.style.top)>100)
	{
//		alert('thelength*(1)='+thelength*(1) +' parseInt(dataobj.style.top)=' + parseInt(dataobj.style.top))
//		 dataobj.style.top= "-200px";
//		 dataobj.style.bottom= "70px";
		dataobj.style.top=thelength*(-1) + "px";
	}

//	 alert('thelength*(1)='+thelength*(1) +' parseInt(dataobj.style.top)=' + parseInt(dataobj.style.top))
	 
	setTimeout("scrollDiv()",80)
}

if (window.addEventListener)
	window.addEventListener("load", initializeScroller, false)
else if (window.attachEvent)
		window.attachEvent("onload", initializeScroller)
	else
	window.onload=initializeScroller


