/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
var contador = 2;
var timerOn = 0;
var timer;
function timedCount() {
	contador = contador - 1;
	if (contador >= 0) {
		timer = setTimeout("timedCount()", 1000);
	} else {
		// Posicionamento o DIV do layerpopup e o torna visivel apos o tempo do contador
		// tamanho da imagem: w=300, h=150. metade: w=150, h=75.
		img_x = (window.screen.width / 2)- 150;
		img_y = (window.screen.height / 2) - 75;

		document.getElementById("layerpopup").style.position = "absolute";
		document.getElementById("layerpopup").style.top = img_y + "px";
		document.getElementById("layerpopup").style.left = img_x + "px";
		document.getElementById("layerpopup").style.visibility = "visible";
	}
}
function doTimer() {
	if (!timerOn) {
		timerOn = 1;
		timedCount();
	}
}

