var tempo;

function ScrollD() {
	ScrollRelease();
	tempo = setInterval("ScrollDown()", 100);
}

function ScrollU() {
	ScrollRelease();
	tempo = setInterval("ScrollUp()", 100);
}

function ScrollDown() {
	xGetElementById("Div").scrollTop += 10;
}

function ScrollUp() {
	xGetElementById("Div").scrollTop -= 10;
}

function ScrollD2() {
	ScrollRelease();
	tempo = setInterval("ScrollDown2()", 100);
}

function ScrollU2() {
	ScrollRelease();
	tempo = setInterval("ScrollUp2()", 100);
}

function ScrollDown2() {
	xGetElementById("Div2").scrollTop += 10;
}

function ScrollUp2() {
	xGetElementById("Div2").scrollTop -= 10;
}

function ZeraScroll(div) {
	if (div != "") {
		xGetElementById(div).scrollTop = 0;
		ScrollRelease();
	}
}

function ScrollRelease() {
	clearInterval(tempo);
}

function xGetElementById(e) {
	if (typeof(e) != 'string') return e;
	if (document.getElementById) e = document.getElementById(e);
	else if (document.all) e = document.all[e];
	else e = null;
	return e;
}

function Info() {
	w = 320; h = 468;
	x = (screen.availWidth - w) / 2;
	y = (screen.availHeight - h) / 2;
	JP = window.open("mailing-list/", "janela1", "toolbar=0, status=0, width=" + w + ", height=" + h + ", left=" + x + ", top=" + y + ", menubar=0, resizable=0, fullscreen=0, scrollbars=0");
	JP.focus();
}

function Creditos() {
	URL = "credits/";
	w = 215; h = 250;
	x = (screen.availWidth - w) / 2;
	y = (screen.availHeight - h) / 2;
	JS = window.open(URL, "janela", "toolbar=0, status=0, scrolling=0, width=" + w + ", height=" + h + ", left=" + x + ", top=" + y + ", menubar=0, resizable=0, fullscreen=0");
	JS.focus();
}