var speed
var loop, timer 

function MoveAreaDown(content,container,speed){ 
	
	contenido=document.getElementById(content);
	contenedor=document.getElementById(container);

	if(contenido.offsetTop>(contenedor.offsetHeight-contenido.offsetHeight)){ 
		contenido.style.top=(contenido.offsetTop-speed)+"px";
   		timer=setTimeout("MoveAreaDown('"+content+"','"+container+"',"+speed+")",speed) 
	}

} 
function MoveAreaUp(content,container,speed){ 
	
	contenido=document.getElementById(content);
	contenedor=document.getElementById(container);
	
	if(contenido.offsetTop<0){ 
		contenido.style.top=(contenido.offsetTop+speed)+"px";
   		timer=setTimeout("MoveAreaUp('"+content+"','"+container+"',"+speed+")",speed) 
	}
} 
function CeaseScroll(){ 
    clearTimeout(timer) 
} 
var initialised; 

