// FUNÇÕES QUE MUDAM O CONTEÚDO DENTRO DO IFRAME DAS OPÇÕES DO MENU LATERAL

	/*var isConteudo = true;
	function muda(obj){
		var objSel = document.getElementById(obj);
		var ifra = document.getElementById('iframex');
		if(isConteudo){		
		    objSel.className = 'marca_dagua';
			//mudaConteudo.innerHTML=arrConteudo[0];		
			ifra.src = arrUrl[0];
			isConteudo = false;
		}else{			
			objSel.className = 'interrogacao';
			//mudaConteudo.innerHTML=arrConteudo[1];
			ifra.src = arrUrl[1];
			isConteudo = true;
		}				
		
	}*/
	

	function muda(obj1,obj2,indx){
		var primObj = document.getElementById(obj1);
		var segObj = document.getElementById(obj2);
		var ifra = document.getElementById('iframex');
		    primObj.className =	'marca_dagua';
			segObj.className = 'interrogacao';
			ifra.src = arrUrl[indx];		
	}
	function carregaPagina(obj1,url){
		var primObj = document.getElementById(obj1);
		for(i=1;i<6;i++){
			document.getElementById("btn_"+i).className = 'interrogacao';
		}
		var ifra = document.getElementById('iframex');		
		ifra.src = url; 
		primObj.className =	'marca_dagua';		
	}


// ##################  CLINÍCA ################## //	
var arrTexto = new Array("Recepção climatizada com ambiente Wi-Fi" , "Agendamento de consulta e sessões individuais", "Estúdio equipado para treinamento aeróbio" , "Atendimento nutricional com bioimpedância" , "Condicionamento físico personalizado" , "Estúdio equipado para treinamento de força" , "Aparelhos de eletro e termoterapia" , "Kinesioterapia" , "Espaço para aulas de pilates de solo e nos aparelhos" , "Aulas de pilates individuais");
var arrFotos = new Array("recepcao1.jpg","recepcao.jpg","FotoInfra03.jpg","FotoInfra04.jpg","FotoInfra05.jpg","FotoInfra06.jpg","FotoInfra09.jpg","FotoInfra10.jpg","FotoInfra07.jpg","FotoInfra08.jpg");
		var pos  = 0;
		var anterior = 0;
		function exibeTexto(){
			var iframeCentro = document.getElementById('iframeCentro');
			var boxCentro = document.getElementById('boxCentro');
			iframeCentro.style.display = 'block';
			boxCentro.style.display = 'none';
		}
		
		function navegar(arg){
			if(arg == '+'){
				if(pos < arrFotos.length-1){
					pos++;
				}
			}else{
				if(pos > 0){
					pos--;
				}	
			}			

			exibeImagem(pos);
		}
		
		function exibeImagem(index){		   
			var linkFotoAnterior = document.getElementById('linkFoto'+anterior);
			var linkFoto = document.getElementById('linkFoto'+index);
			linkFotoAnterior.className= '';
			linkFoto.className= 'posicao';						
			var iframeCentro = document.getElementById('iframeCentro');
			var boxCentro = document.getElementById('boxCentro');
			var imagemCentro = document.getElementById('imagemCentro');
			var texto = document.getElementById('texto');
			texto.innerHTML = arrTexto[index];
			imagemCentro.src = 'img/'+arrFotos[index];
			iframeCentro.style.display = 'none';
			boxCentro.style.display = 'block';
			anterior = index;
			pos = index;
			
		}
		
// ##################  EQUIPE ################## //
	 function displayBloco(btLista,idLista, tem_crm){
			if(tem_crm){ 
				var crm = document.getElementById('crm'+idLista);
				var nome = document.getElementById('nome'+idLista);
			}
		    
			if(btLista.className != 'fig_open'){	
            	if(tem_crm){ 
					nome.className ='fc';
					crm.style.display = 'block';
				}
				btLista.className = 'fig_open'	
				btLista.innerHTML = 'fechar perfil';
			}else{
				if(tem_crm){ 
					nome.className ='fc';
					crm.style.display = 'none';
				}
				btLista.className = 'fig_close';
				btLista.innerHTML = 'ver perfil';
			}
			
			displayLista(idLista);
		 }	
	
	
		function displayLista(idLista){
			lista = document.getElementById(idLista);
			if(lista.style.display == 'none' || lista.style.display.length == 0){
				lista.style.display = 'block';
			}else{
				lista.style.display = 'none';
			}
		}
