// configuracoes padrão
	window.name = "sentidos";

// Empregos
	// desenhar box
		function caixaEmpregos(fundo,inicio) {
				if( inicio ) {
					document.write('<table cellpadding="0" cellspacing="0" border="0" bgcolor="' + fundo + '" width="100%">');
					document.write('<tr><td width="6" height="6" style="background-image:url(../imagens/box/1.gif)"></td><td style="background-image:url(../imagens/box/2.gif)"></td><td width="6" height="6" style="background-image:url(../imagens/box/3.gif)"></td></tr>');
					document.write('<tr><td width="6" style="background-image:url(../imagens/box/4.gif)"></td>');
					document.write('<td valign="top" class="t13">');
				} else {
					document.write('</td>');
					document.write('<td width="6" style="background-image:url(../imagens/box/5.gif)"></td></tr>');
					document.write('<tr><td width="6" height="6" style="background-image:url(../imagens/box/6.gif)"></td><td style="background-image:url(../imagens/box/7.gif)"></td><td width="6" height="6" style="background-image:url(../imagens/box/8.gif)"></td></tr>');
					document.write('</table>');
				}
		}

// navegacao
function vaiPara(aonde,modo) {
	if( aonde == "" ) { return }
	if (aonde != "/shopping/") {
		if( aonde == "anterior" ) {
			window.history.back()
		} else {
			if( !modo ) {
				window.location.href=aonde ;
			} else {
				window.open(aonde);
			}
		}
	} else {
		window.open(aonde);
	}
}

// servicos para a materia
	// indicar uma materia para um amigo
	function enviarMateria(codigo,canal) {
		window.open("/servicos/enviarMateria.asp?codigo="+codigo+"&canal="+canal,"envMateria","left=150,top=60,width=400,height=525")
	}
	// imprimir a materia
	function imp(qual,canal) {
		if( qual ) {
			window.open("/canais/imprimir.asp?codpag="+qual+"&canal="+canal,"nameimprimir","left=100,top=80,width=700,height=500,menubar=yes,location=no,scrollbars=yes,toolbar=no")
		} else {
	//		this.imp_table1.style.display = "none"
			this.imp_table2.style.display = "none"
			window.print()
		}
	}

// Revista Sentidos
	// assinar revista
	function assinarRevista() {
		assRev = window.open("https://www.teletarget.com.br/cgi-bin/mgrqcgi?APPNAME=SistemaClubeWeb&PRGNAME=recebe_site_ed&ARGUMENTS=-ASE1","","scrollbars=yes,resizable=yes,width=450,height=600,top=0,left=100");
	}


<!-- Verifica se o formulário foi preenchido-->

function verificaForm(e) {
//	var frm = document.forms(window.event.srcElement.name)
	for( i=0; i<document.forms(window.event.srcElement.name).elements.length; i++ ) {
		if( document.forms(window.event.srcElement.name).elements[i].value == "" && document.forms(window.event.srcElement.name).elements[i].isnotnull == "yes" ) {
			document.forms(window.event.srcElement.name).elements[i].focus();
			return false;
		}
	}
}

<!--Verifica se tem @ no e-mail digitado-->

function eMail() {
	var m
	email = window.event.srcElement
	if ( email.value != "" ) {
		for(i=1;i<email.value.length;i++) {
			if( email.value.charAt(i) == "@" || m == 1 ) {
				m = 1
				if( email.value.charAt(i) == "." ) {
					m = 2
				}
			}
		}
		if( m != 2 ) {
			email.focus()
			alert("E-mail incorreto.")
		}
	}
}

// :: Bate Papo ::

function espiar() {
	window.open( "http://inchat.insite.com.br/mod_perl/inchat/inchat.pl?acao=view&amp;room=67", "open_espia", "width=650, height=480,top=20,left=80" )
}





/* CARREGADOR JAVASCRIPT */
//Variáveis globais
var _loadTimer	= setInterval(__loadAnima,22);
var _loadPos	= 0;
var _loadDir	= 3;
var _loadLen	= 0;

//Anima a barra de progresso
function __loadAnima(){
	var elem = document.getElementById("barra_progresso");
	if(elem != null){
		if (_loadPos==0) _loadLen += _loadDir;
		if (_loadLen>32 || _loadPos>150) _loadPos += _loadDir;
		if (_loadPos>150) _loadLen -= _loadDir;
		if (_loadPos>150 && _loadLen==0) _loadPos=0;
		elem.style.left	= _loadPos;
		elem.style.width = _loadLen;
	}
}

//Esconde o carregador
function __loadEsconde(){
	this.clearInterval(_loadTimer);
	var objLoader = document.getElementById("carregador_pai");
	objLoader.style.display = "none";
	objLoader.style.visibility = "hidden";
}


function SizeFont(qual){
     var sizeAtual = document.getElementById('div_conteudo').style.fontSize;
     if ( qual == "-" ) {  
         document.getElementById('div_conteudo').style.fontSize = (parseInt(sizeAtual)-2)+'px';  
     } else if ( qual == "+" ) {  
         document.getElementById('div_conteudo').style.fontSize = (parseInt(sizeAtual)+2)+'px';  
     }  
	
}


<!-- FUNÇÃO PARA EXIBIR OS CANAIS -->
function showMenu(d) {
	if ( d == '1' ){
		document.getElementById("tb_menu01").style.display = "";
		document.getElementById("tb_menu02").style.display = "none";
	} else {
		document.getElementById("tb_menu01").style.display = "none";
		document.getElementById("tb_menu02").style.display = "";
	}
}


<!-- Função mostra conteudo de finalistas-->
function exibe(A,B){
document.getElementById(A).style.display = "none";
document.getElementById(B).style.display = "";
}

function recolhe(B,A){
document.getElementById(A).style.display = "";
document.getElementById(B).style.display = "none";
}


-->

