// function hoverButtons(obj) { if (obj.src.split('_up')[1]) { obj.src = obj.src.replace('_up','_dw') } else { obj.src = obj.src.replace('_dw','_up') } } // function insertAttributes() { pai = document.getElementsByTagName('a'); for (i=0;i 0) { segundo--; if (segundo < 0) { minuto--; segundo = 59; } timerContador = setTimeout('contador('+minuto+','+segundo+','+contentIndex+');',1000); if (minuto < 10) minuto = '0' + minuto; if (segundo < 10) segundo = '0' + segundo; document.getElementById("contador").innerHTML = minuto + ':' + segundo; } else if (contentIndex > 0) showContent(contentIndex); else redirectHome(); } // function showDetalhes() { document.getElementById("detalhes").style.display = 'block'; } // function showContent(page) { //show loading obj = document.getElementById('loading'); obj.style.display = 'block'; //hide content obj = document.getElementById('content'); obj.style.display = 'none'; //apaga qualquer timeout de contador clearTimeout(timerContador); //programa a proxima pagina pra abrir setTimeout('updateContent("' + page + '");', 1); } // function updateContent(page) { if( page.length > 0 && page.toString() != 'undefined' && page == 'contrato.asp' ){ $('#loading').hide(); $.ajax({ type : 'POST', dataType : 'json', url : 'contrato.asp', cache : false, data : {modo: 'C'}, success : function(contrato){ if(contrato.termo.length > 0){ $('#content').show().html(contrato.termo); }else{ $('#content').show().html('Erro ao carregar termo de contrato.'); }; if(contrato.regras.length > 0 && $('#regras-jogo',$('#content'))){ regras = contrato.regras; $('#regras-jogo',$('#content')).bind('click',function(){ $('#content').show().html(regras); }); }; }, error: function(){ $('#content').show().html('Erro ao carregar termo de contrato'); regras = 'Erro ao carregar regras de contrato'; } }); } else if( page.length > 0 && page.toString() != 'undefined' && page != 'contrato.asp' ){ //chamada ajax var iHTML = getResponse(page); //show content obj = document.getElementById('content'); obj.style.display = 'block'; obj.innerHTML = iHTML; //hide loading obj = document.getElementById('loading'); obj.style.display = 'none'; //atualiza os atributos da pagina insertAttributes(); } } // function clearContentForm(index) { /* if ((index == 1) || (index == 9)) { //recupera os campos var oChave = document.getElementById("senha"); //limpa oChave.value = ''; oChave.focus(); } else if (index == 3) { //recupera os campos var oEmail1 = document.getElementById("email1"); var oEmail2 = document.getElementById("email2"); var oEmail3 = document.getElementById("email3"); //limpa oEmail1.value = ''; oEmail2.value = ''; oEmail3.value = ''; oEmail1.focus(); } else if (index == 5) { //recupera os campos var oEquipe = document.getElementById("nomeEquipe"); var oEstadio = document.getElementById("nomeEstadio"); var oSigla = document.getElementById("nomeSigla"); //limpa oEquipe.value = ''; oEstadio.value = ''; oSigla.value = ''; oEquipe.focus(); } */ } // function redirectHome() { top.location = 'http://www.gamegol.com.br'; } // function redirectHomeLogada() { top.location = '_home_logada/default.asp'; } // function redirectCadastro() { top.location = '_cadastro/cadastro.asp'; } function readNews(idNews) { top.location = "page.asp?page=lerNoticia.asp?noticia="+idNews; }