// So to recap, insert the code of Step 1 in your main page, 
// and code of Step 2 at the bottom of the page contained within the iframe.





///////////	STEP 1
//You can also decrease the scroll speed by modifying "-2" and "2" in the onMouseover codes to "-1" and "1". 

/*
<iframe id="datamain" src="external.htm" width=150 height=150 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=1 scrolling=no></iframe>
<layer visibility=hide>
	<div style="width:150px;" align="right">
		<a href="#" onMouseover="scrollspeed=-2" onMouseout="scrollspeed=0">Up</a> 
		| 
		<a href="#" onMouseover="scrollspeed=2" onMouseout="scrollspeed=0">Down</a>
	</div>
</layer>
*/





/////////// STEP 2

//<script language="JavaScript1.2">
var speed, currentpos=curpos1=0,alt=1,curpos2=-1

function initialize(){
	if (window.parent.scrollspeed!=0){
		speed=window.parent.scrollspeed
		scrollwindow()
	}
}

function scrollwindow(){
	temp=(document.all)? document.body.scrollTop : window.pageYOffset
	alt=(alt==0)? 1 : 0
	if (alt==0)
		curpos1=temp
	else
		curpos2=temp
	window.scrollBy(0,speed)
}

function calcado(){
	speed=speed;
}

setInterval("initialize()",10)











//Scrollable content III- By http://www.dynamicdrive.com