function scroll(incremento) {
	temp = null;
	inc = parseInt(incremento);
	posfin = parseInt(capa.top)+(salto*inc);
	mover(inc,posfin);
}

function mover(incremento,fin) {
	var inc = parseInt(incremento);
	var posfin = parseInt(fin);
	var npos = parseInt(capa.top) + inc;
	if ( !( npos > limsup || npos < liminf ) && ( npos*inc <= posfin*inc ) ) {
		capa.top = npos;
		temp = setTimeout("mover(inc,posfin)",velocidad);
	}
	else 
		clearTimeout(temp);
}

function inicapa(){
	if (document.layers) capa = eval(document.ocultar.document.models);
	else if (document.getElementById) capa = eval("document.getElementById('models').style");
		 else if (document.all) capa = eval(document.all.models.style);
}
