// JavaScript Document
//SECOES PRINCIPAIS

	function pagHome(){
		ajaxGet("pag_home.php",document.getElementById("conteudoGeral"),true);
		document.getElementById("agenda").style.display='block';
	}
	function pagApresentacao(){
		ajaxGet("pag_apresentacao.php",document.getElementById("conteudoGeral"),true);
		document.getElementById("agenda").style.display='none';
	}
	function pagHalitose(){
		ajaxGet("pag_halitose.php",document.getElementById("conteudoGeral"),true);
		document.getElementById("agenda").style.display='none';
	}
	function pagHalitoseT(){
		ajaxGet("pag_halitose.php?teste=1",document.getElementById("conteudoGeral"),true);
		document.getElementById("agenda").style.display='none';
	}
	function pagMaterias(){
		ajaxGet("pag_materias.php",document.getElementById("conteudoGeral"),true);
		document.getElementById("agenda").style.display='none';
	}
	function pagMaterias2(id){
		ajaxGet("pag_materias.php?id="+id,document.getElementById("conteudoGeral"),true);
		document.getElementById("agenda").style.display='none';
	}
	function pagOdontologia(){
		ajaxGet("pag_odontologia.php",document.getElementById("conteudoGeral"),true);
		document.getElementById("agenda").style.display='none';
	}
	function pagOdontologia2(id){
		ajaxGet("pag_odontologia.php?id="+id,document.getElementById("conteudoGeral"),true);
		document.getElementById("agenda").style.display='none';
	}
	function pagProdutos(){
		ajaxGet("pag_produtos.php",document.getElementById("conteudoGeral"),true);
		document.getElementById("agenda").style.display='none';
	}
	function pagProdutos2(id){
		ajaxGet("pag_produtos.php?id="+id,document.getElementById("conteudoGeral"),true);
		document.getElementById("agenda").style.display='none';
	}
	function pagContatos(){
		ajaxGet("pag_contatos.php",document.getElementById("conteudoGeral"),true);
		document.getElementById("agenda").style.display='none';
	}
	function form_pagContatos(){		
		
		var assunto 	= document.form.assunto.value;
		var nome 		= document.form.nome.value;
		var email 		= document.form.email.value;
		var telefone 	= document.form.telefone.value;
		var como		= document.form.como.value;
		var mensagem 	= document.form.mensagem.value;
				
		ajaxGet("pag_contatos_envio.php?assunto="+assunto+"&nome="+nome+"&email="+email+"&telefone="+telefone+"&como="+como+"&mensagem="+mensagem+"&post=1",document.getElementById("resultado_form"),true);
		
	}
	function pagMapa(){
		ajaxGet("pag_mapa.php",document.getElementById("conteudoGeral"),true);
		document.getElementById("agenda").style.display='none';
	}

//SUB SECOES DOS MENUS PRINCIPAIS

	function item_Selecionado(id,num){
		//VOLTANDO TODOS OS MENUS PARA PADRAO
		//var qtdDivs = document.getElementsByTagName("div");
		//alert ("Quantidade de Divs é: "+qtdDivs.length);
		
		for (var i=0;i<num;i++){
			document.getElementById(i+"a").style.display = "block";
			document.getElementById(i+"b").style.display = "none";
			//alert(document.getElementsByTagName('div')[i].attributes['id']);
		}
		
			//AO CLICAR ATIVAR O PRIMEIRO DIV, E DESATIVAR O SEGUNDO		
			x = document.getElementById(id+"a");		
			x.style.display = "none";
			
			y = document.getElementById(id+"b");
			y.style.display = "block";
	}
	
	function item_Selecionado2(id,num){
		//VOLTANDO TODOS OS MENUS PARA PADRAO
		//var qtdDivs = document.getElementsByTagName("div");
		//alert ("Quantidade de Divs é: "+qtdDivs.length);
		
		for (var i=1;i<num;i++){
			document.getElementById(i+"a").style.display = "block";
			document.getElementById(i+"b").style.display = "none";
			//alert(document.getElementsByTagName('div')[i].attributes['id']);
		}
		
			//AO CLICAR ATIVAR O PRIMEIRO DIV, E DESATIVAR O SEGUNDO		
			x = document.getElementById(id+"a");		
			x.style.display = "none";
			
			y = document.getElementById(id+"b");
			y.style.display = "block";
	}

	//SUB MENUS DA SECAO APRESENTACAO
	function apresentacaoBemVindo(){
		ajaxGet("vazio.php",document.getElementById("conteudoApresentacao"),false);
		ajaxGet("apresentacao_bem_vindo.php",document.getElementById("conteudoApresentacao"),false);
	}
	function apresentacaoEspacoProfissional(){
		ajaxGet("vazio.php",document.getElementById("conteudoApresentacao"),false);
		ajaxGet("apresentacao_espaco_profissional.php",document.getElementById("conteudoApresentacao"),false);
	}
	function apresentacaoEspacoFisico(){
		ajaxGet("vazio.php",document.getElementById("conteudoApresentacao"),false);
		ajaxGet("apresentacao_espaco_fisico.php",document.getElementById("conteudoApresentacao"),false);
	}
	
	
	//SUB MENUS DA SECAO HALITOSE
	function pagHalitose_introducao(){
		ajaxGet("pag_halitose_introducao.php",document.getElementById("conteudoHalitose"),false);
	}
	function pagHalitose_conceito(){
		ajaxGet("pag_halitose_conceito.php",document.getElementById("conteudoHalitose"),false);
	}
	function pagHalitose_causas(){
		ajaxGet("pag_halitose_causas.php",document.getElementById("conteudoHalitose"),false);
	}
	function pagHalitose_duvidas(){
		ajaxGet("pag_halitose_duvidas.php",document.getElementById("conteudoHalitose"),false);
	}
	function pagHalitose_tratamento(){
		ajaxGet("pag_halitose_tratamento.php",document.getElementById("conteudoHalitose"),false);
	}
	function pagHalitose_teste(){
		ajaxGet("pag_halitose_teste.php",document.getElementById("conteudoHalitose"),false);
	}
	function pagHalitose_realizarTESTE(){
		var q1 = document.getElementById('1').value;
		var q2 = document.getElementById('2').value;
		var q3 = document.getElementById('3').value;
		var q4 = document.getElementById('4').value;
		var q5 = document.getElementById('5').value;
		var q6 = document.getElementById('6').value;
		var q7 = document.getElementById('7').value;
		var q8 = document.getElementById('8').value;
		
		ajaxGet("pag_halitose_resultado_teste.php?q1="+q1+"&q2="+q2+"&q3="+q3+"&q4="+q4+"&q5="+q5+"&q6="+q6+"&q7="+q7+"&q8="+q8, document.getElementById("resultadoTeste"),false);
		document.location.href="#res";
	}
	//SUB MENUS DA SECAO MATERIAS
	function pagMaterias_conteudo(id){
		ajaxGet("pag_materias_conteudo.php?id="+id,document.getElementById("conteudoMaterias"),false);
	}
	//SUB MENUS DA SECAO MATERIAS
	function pagOdontologia_conteudo(id){
		ajaxGet("pag_odontologia_conteudo.php?id="+id,document.getElementById("conteudoMaterias"),false);
	}
	
	//SUB MENUS DA SECAO PRODUTOS
	function pagProdutos_conteudo(id){
		ajaxGet("pag_produtos_conteudo.php?id="+id,document.getElementById("conteudoMaterias"),false);
	}
	
	
	//SUB MENUS DA SECAO ODONTOLOGIA AVANCADAS
	function pagOdontologia_01(){
		ajaxGet("pag_odontologia_01.php",document.getElementById("conteudoOdontologia"),false);
	}
	function pagOdontologia_02(){
		ajaxGet("pag_odontologia_02.php",document.getElementById("conteudoOdontologia"),false);
	}
	function pagOdontologia_03(){
		ajaxGet("pag_odontologia_03.php",document.getElementById("conteudoOdontologia"),false);
	}
	function pagOdontologia_04(){
		ajaxGet("pag_odontologia_04.php",document.getElementById("conteudoOdontologia"),false);
	}
	function pagOdontologia_05(){
		ajaxGet("pag_odontologia_05.php",document.getElementById("conteudoOdontologia"),false);
	}
	function pagOdontologia_06(){
		ajaxGet("pag_odontologia_06.php",document.getElementById("conteudoOdontologia"),false);
	}
	
	function pagOdontologia_a(){
		ajaxGet("pag_odontologia_a.php",document.getElementById("conteudoOdontologia"),false);
	}
	function pagOdontologia_b(){
		ajaxGet("pag_odontologia_b.php",document.getElementById("conteudoOdontologia"),false);
	}
	function pagOdontologia_c(){
		ajaxGet("pag_odontologia_c.php",document.getElementById("conteudoOdontologia"),false);
	}
	function pagOdontologia_d(){
		ajaxGet("pag_odontologia_d.php",document.getElementById("conteudoOdontologia"),false);
	}
	
	
	
	

