<!--//
var a
var n

function stopScroll() {
	clearTimeout(a);
	}

function scrollUp(cual) {
	if(document.getElementById(cual)) {
		n = parseInt(document.getElementById(cual).style.top)
		n = n + 10
		if(parseInt(document.getElementById(cual).style.top) < 0) document.getElementById(cual).style.top = n + 'px'
		a = setTimeout("scrollUp('" + cual + "')",100)
		}
	}  // Fin de la función scrollUp()

function scrollDown(cual) {
	if(document.getElementById(cual)) {
		n = parseInt(document.getElementById(cual).style.top)
		n = n - 10
		// Validamos que solo siga bajando el div si aún no se ha llegado al final del mismo (el 72 hace referencia al alto del div que sirve de marco)
		if(parseInt(document.getElementById(cual).style.top) >= ((parseInt(document.getElementById(cual).offsetHeight) * -1) + 72)) document.getElementById(cual).style.top = n + 'px'
		a = setTimeout("scrollDown('" + cual + "')",100)
		}
	} // Fin de la funcion scrollDown()
