function sL(object) {
    obj = document.getElementById(object);
    obj.style.display = "block";
}
function hL(object) {
    obj = document.getElementById(object);
    obj.style.display = "none";
}
function openPop(URL,Name,features) {
    window.open(URL,Name,features);
}

function hLall() {
	for (x = 1; x <= numEtapa; x++) {
		etapa = "etapa0" + x;
		obj = document.getElementById(etapa);
		obj.style.display = "none";
	}
}

function ativaMenu(object,etp) {
    obj = document.getElementById(object);
    etapa = document.getElementById(etp);
    obj.className = etp;
}

// Funções javascript para o Flash 
function cadastrese() {window.location.href = "cadastroIndex.action"}
function opremio() {window.location.href = "premio.jsp"}
function comojogar() {window.location.href = "comoJogar.jsp"}
function regulamento() {window.location.href = "regulamento.jsp"}
function indique()  {window.location.href = "indique.jsp"}
function home()  {window.location.href = "index.action"}

/* Flashs em geral */
function gerarSWF($arquivo,$largura,$altura){
    document.writeln('    <object type="application/x-shockwave-flash" data="'+ $arquivo +'" width="'+ $largura +'" height="'+ $altura +'">');
    document.writeln('        <param name="movie" value="' + $arquivo + '" />');
    document.writeln('        <param name="menu" value="false" />');
    document.writeln('        <param name="quality" value="high" />');
	document.writeln('        <param name="wmode" value="transparent" />');
    document.writeln('    </object>');
}



