// JavaScript Document
var hei, tope, tm, tm2
function abajo()
{
hei = parseInt(document.getElementById("texto").offsetHeight);
hei = hei - 185;
tope = parseInt(document.getElementById("texto").style.top);
//alert(tope + " " + hei);
	if(tope>(-hei))
	{
		tope = tope - 1;
		document.getElementById("texto").style.top = tope + "px";
		tm = setTimeout("abajo()", 5);
	}
	else{alto();}
}

function arriba()
{
	tope = parseInt(document.getElementById("texto").style.top);
	if(tope<0)
	{
		tope = tope + 1;
		document.getElementById("texto").style.top = tope + "px";
		tm = setTimeout("arriba()", 5);
	}
	else{alto();}
}

function alto()
{
	clearTimeout(tm);
}

var winn;
function abre_flotante(cual,wid,heig,scrol){	
	var LeftP = (screen.width) ? (screen.width-wid)/2 : 0;
	var TopP = (screen.height) ? (screen.height-heig)/2 : 0;
	if(winn){
		if(!winn.closed) winn.close();
		winn = null;
	}
	window.focus();
	winn=eval("open('"+cual+"','','width="+wid+",height="+heig+",top="+TopP+",left="+LeftP+",scrollbars="+scrol+"')");
}

