function exibirDepoimento(coddepoimentos){
	var tdFechar= document.getElementById('dep'+coddepoimentos);
	var divRes	= document.getElementById('depRes_'+coddepoimentos);
	var divCom	= document.getElementById('depCom_'+coddepoimentos);
	
	var btnFechar = '<a style="color:#cc0000;" href="javascript: fecharDepoimento('+coddepoimentos+');"><strong>fechar [-]</strong></a>';
	
	divRes.style.display= "none";
	divCom.style.display= "";
	tdFechar.innerHTML	= btnFechar;
}

function fecharDepoimento(coddepoimentos){
	var tdFechar= document.getElementById('dep'+coddepoimentos);
	var divRes	= document.getElementById('depRes_'+coddepoimentos);
	var divCom	= document.getElementById('depCom_'+coddepoimentos);
	
	var btnFechar = '<a style="color:#cc0000;" href="javascript: exibirDepoimento('+coddepoimentos+');"><strong>saiba mais [+]</strong></a>';
	
	divRes.style.display= "";
	divCom.style.display= "none";
	tdFechar.innerHTML	= btnFechar;
}



function bookmarksite(title,url){
	if (window.sidebar) // firefox
		window.sidebar.addPanel(title, url, "");
	else if(window.opera && window.print){ // opera
		var elem = document.createElement('a');
		elem.setAttribute('href',url);
		elem.setAttribute('title',title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	}else if(document.all)// ie
		window.external.AddFavorite(url, title);
}

function indiquex(){
	document.getElementById('formulario_indicar').style.display="none";
	document.getElementById('indicado').style.display="none";
}

function indique(){
	document.getElementById('cadFormIndique').src = 'cadIndique.php'
	document.getElementById('indicado').style.display="none";
	document.getElementById('formulario_indicar').style.display="block";
	
}

function novoNews(){
	document.getElementById('docNews').src = 'cadNews.php'
	document.getElementById('formulario_newsletter').style.display="block";
}

function fechar(div){
	document.getElementById(div).style.display="none";
}

// Página: manIndique.php
function alterna_indicacao(t)  {
	document.getElementById("indicado").style.display= t=="d" ? "block" : "none";
	document.getElementById("formulario_indicar").style.display= t!="d" ? "block" : "none";
}

function mostraMapa()  {
	obj	= document.getElementById('gmap');
	obj.style.display='block';
	googlemaps.location='detGoogleMaps.php';
}
function escondeMapa()  {
	obj	= document.getElementById('gmap');
	obj.style.display='none';
	googlemaps.location='nulo.htm';
}