function volanteAlert(txtAlert) {
	document.getElementById('validaContent').innerHTML = txtAlert;
	lightbox.abrir('divValidacao', '000');
}
function bodyBg(bg) {
	if (bg == 1) {
		document.getElementById('divMain').style.height = 700 + 'px';
		document.getElementById('divFlash').style.height = 670 + 'px';
		document.body.style.backgroundImage = 'url(_IMG/bg_body.jpg)';
	}  
    else if (bg == 2) {
		document.getElementById('divMain').style.height = 855 + 'px';
		document.getElementById('divFlash').style.height = 825 + 'px';
		document.body.style.backgroundImage = 'url(_IMG/bg_body2.jpg)';
	}
	 else if (bg == 3) {
		document.getElementById('divMain').style.height = 755 + 'px';
		document.getElementById('divFlash').style.height = 725 + 'px';
		document.body.style.backgroundImage = 'url(_IMG/bg_body3.jpg)';
	}	else if (bg == 4) {
		//alert(0);
		document.getElementById('divMain').style.height = 700 + 'px';
		document.getElementById('divFlash').style.height = 670 + 'px';
		document.body.style.backgroundImage = 'url(_IMG/bg_body_numerossorteados.jpg)';
	}  
}

 function gerar(){
	    
	        var palavra1 = document.getElementById('txt1').value;
	        var palavra2 = document.getElementById('txt2').value;
    	    
	        var num1 = Class_fezinha.geranumeros(palavra1).value;
	        var num2 = Class_fezinha.geranumeros(palavra2).value;
    	    
	        document.getElementById('img1').src= '_IMG/num_' + num1 + '.gif';
	        document.getElementById('img2').src= '_IMG/num_' + num2 + '.gif';
	        
	        document.getElementById('divFezinha').style.display = 'none';
	        document.getElementById('divFezinhaResult').style.display = '';
	        
	    }
		
		function gerarNovo(){
	    
	        var palavra1 = document.getElementById('txtNovo1').value;
	        var palavra2 = document.getElementById('txtNovo2').value;
    	    
	        var num1 = Class_fezinha.geranumeros(palavra1).value;
	        var num2 = Class_fezinha.geranumeros(palavra2).value;
    	    
	        document.getElementById('imgNovo1').src= '_IMG/num_' + num1 + '.gif';
	        document.getElementById('imgNovo2').src= '_IMG/num_' + num2 + '.gif';
	        
	        document.getElementById('divFezinhaNovo').style.display = 'none';
	        document.getElementById('divFezinhaResultNovo').style.display = '';
	        
	    }
	
	function novamente(){
	
	        document.getElementById('divFezinha').style.display = '';
	        document.getElementById('divFezinhaResult').style.display = 'none';
	        
	       document.getElementById('txt1').value='Ex: José1975; CBB2902';
	       document.getElementById('txt2').value='Ex: Maria Luiza; 24051992';
	        
	}
	
	function novamenteNovo(){
	
	        document.getElementById('divFezinhaNovo').style.display = '';
	        document.getElementById('divFezinhaResultNovo').style.display = 'none';
	        
	       document.getElementById('txtNovo1').value='Ex: José1975; CBB2902';
	       document.getElementById('txtNovo2').value='Ex: Maria Luiza; 24051992';
	        
	}
	
	function marcaJogo(marcado){
		jogos.flgMarcado = marcado;
	}
	
/*	function marcaJogo(marcado){
		jogoMarcado = marcado;
		//alert(jogoMarcado);
	}*/
	
	function trocaSecao(menu,swf,largura,altura,corpo,page){
		if(jogoMarcado==0){
			window.location.hash = page;
			marcamenu(menu,'click');
			pageTracker._trackPageview(page);
			FuncoesGerais.CarregaFlashDiv('_FLA/jogos/loader.swf?nomeArquivo=' + swf + '.swf', largura, altura,'divFlash');
			bodyBg(corpo);
		}else{
			document.getElementById('linkDescartarVolante').href = "javascript:jogoMarcado=0;trocaSecao('" + menu + "','" + swf + "'," + largura + "," + altura + ",'" + corpo + "','" + page + "');lightbox.fechar();";
			lightbox.abrir('divTrocaVolantes', '000')
		}
		
	}
	
	function marcamenu(obj, acao){
	    
	 

        if (acao=='over'){
        
             document.getElementById(obj).style.backgroundPosition='bottom';
        
        }
        
        if(acao=='out'){

            if (obj!=CurMenu){
                 document.getElementById(obj).style.backgroundPosition='top';
            
            }
                
        }

     
        if(acao=='click'){
                document.getElementById(obj).style.backgroundPosition='bottom';
                
           if(CurMenu!=''){
                document.getElementById(CurMenu).style.backgroundPosition='top';
           }
                
               CurMenu = obj;
        
         }
       
   
	}
	
	function tracker(nome) 
	{ 
		pageTracker._trackPageview(nome); 

	} 