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;



var widthArea=395;
function MoveAreaHoriz(content,container,speed)
{
	contenido		= document.getElementById(content);
	contenedorEfe	= document.getElementById(container);

	if(contenido.offsetLeft+widthArea>(contenedorEfe.offsetWidth-contenido.offsetWidth))
	{
		contenido.style.left=(contenido.offsetLeft-speed)+"px";
   		timer=setTimeout("MoveAreaHoriz('"+content+"','"+container+"',"+speed+")",16)
	}
	else
	{
		contenido.style.left=widthArea+"px";
   		timer=setTimeout("MoveAreaHoriz('"+content+"','"+container+"',"+speed+")",16)
	}
}