/*
Top-Down scrolling window Script-
*/

//change 1 to another integer to alter the scroll speed. Greater is faster
var speed=1
var siID
var theEnd=0
var currentpos=0,alt=1,curpos1=0,curpos2=-1
function initialize(){
startit()
}
function scrollwindow(){
if (document.all) temp=document.body.scrollTop
else temp=window.pageYOffset
if (alt==0) alt=1
else alt=0
if (alt==0) curpos1=temp
else curpos2=temp
if (curpos1!=curpos2){
	if (document.all) currentpos=document.body.scrollTop+speed
	else currentpos=window.pageYOffset+speed
	window.scroll(0,currentpos)
	}
else{
	//if ( theEnd++ == 0 ) window.setTimeout(nextpage,2000)
	clearInterval(siID)	
	//window.document.links[0]
	//document.write( )
//currentpos=0
//window.scroll(0,currentpos)
	}
}

function nextpage() {
	window.location.href =  window.document.links[0]
	}
	
function startit(){
	siID = setInterval("scrollwindow()",50)
}
window.onload=initialize

