function inicio_conheca() {

	var figuras_aleatorias = new Array('fig_circo','fig_loop','fig_gira','fig_montanha')
	
	var indice_rand = Math.floor(figuras_aleatorias.length * Math.random())
	
	$id(figuras_aleatorias[indice_rand]).style.display = 'block';

	for(i=0;i<document.anchors.length;i++) {
		if(String(document.anchors[i].id).indexOf('click') != -1) {
			if(String(document.anchors[i].id).indexOf(pagina) != -1) {
				
			$id(String(document.anchors[i].id).replace('click','bg')).className = 'seta_click';
			
			document.anchors[i].className = 'xis';
				
			}else{
			
			document.anchors[i].onmouseover = function() {
			$id(String(this.id).replace('click','bg')).className = 'seta_over';
			}
			document.anchors[i].onmouseout = function() {
			$id(String(this.id).replace('click','bg')).className = 'seta_down';
			}
			
			
			}
		}
		if(String(document.anchors[i].id).indexOf('submenu') != -1) {
			if(String(document.anchors[i].id).indexOf(pagina_interna) != -1) {				
				$id(String(document.anchors[i].id).replace('submenu','seta')).style.visibility = 'visible';
				
			}else{
				document.anchors[i].onmouseover = function() {
					$id(String(this.id).replace('submenu','seta')).style.visibility = 'visible';
				}
				document.anchors[i].onmouseout = function() {
					$id(String(this.id).replace('submenu','seta')).style.visibility = 'hidden';
				}
			}
			
			
		}
		
	}
	
}

function status_botoes(objeto_id) {
//Declaracao comentada devido a não existencia do class "show_tour" na pagina aspx
//com isso estava ocorrendo um erro
//var opcoes_atracoes = ['show_videos','show_fotos','show_tour']

var opcoes_atracoes = ['show_videos','show_fotos']

for(i=0;i<opcoes_atracoes.length;i++) {
    if(objeto_id == opcoes_atracoes[i]) {
        $id(opcoes_atracoes[i]).className = 'link_morto';
        $id(String(objeto_id).replace('show_','conteudo_')).style.display = 'block';
        $id('setinha').className = String(objeto_id).replace('show_','atual_');
    }else{
        $id(opcoes_atracoes[i]).className = 'link_ativo';
        $id(String(opcoes_atracoes[i]).replace('show_','conteudo_')).style.display = 'none';
    }
}

}

function status_baloezinhos(objeto_id) {
var opcoes = ['balao_verde','balao_amarelo','balao_azul','balao_vermelho']

for(i=0;i<opcoes.length;i++) {

if(objeto_id == opcoes[i]) {
$id(opcoes[i]).className = 'balaozinho_on'
$id('tipo_balaozinho').value = objeto_id;
}else{
$id(opcoes[i]).className = 'balaozinho_off';
}

}

}

function zoom(objeto) {
var ie = document.fireEvent? ie = true : ie = false
if(ie) { var alvo = objeto.childNodes[0] }else{ var alvo = objeto.childNodes[1] }
alvo.style.visibility = 'visible'
}

function zoomout(objeto) {
var ie = document.fireEvent? ie = true : ie = false
if(ie) { var alvo = objeto.childNodes[0] }else{ var alvo = objeto.childNodes[1] }
alvo.style.visibility = 'hidden'
}

function contador(objeto,total) {
var sobra = total - objeto.value.length
if(sobra >= 0) {
$id('contagem').firstChild.nodeValue = sobra
}else{
objeto.value = objeto.value.substring(0,total)
}
}

function abre_depoimentos()
{
    if($id('ctl00_popups1_HdhLogado').value == "0")
        abreLogin();
    else
    {
        $id('fim_depoimento').style.display='none';
        $id('nao_tem_login').style.display='none';
        $id('escrever_depoimento').style.display = 'block';
    }
}

//function fEfetuarLoginDepoimento()
//{
//    if($id('ctl00_ContentPlaceHolder1_depoimentos1_txtLoginDepoimento').value == ''
//        || $id('ctl00_ContentPlaceHolder1_depoimentos1_txtLoginDepoimento').value == '(e-mail ou cpf cadastrado)'
//        || $id('ctl00_ContentPlaceHolder1_depoimentos1_txtSenhaDepoimento').value == '')
//    {
//        if($id('ctl00_ContentPlaceHolder1_depoimentos1_txtLoginDepoimento').value == ''
//            || $id('ctl00_ContentPlaceHolder1_depoimentos1_txtLoginDepoimento').value == '(e-mail ou cpf cadastrado)')
//            document.getElementById('ctl00_ContentPlaceHolder1_depoimentos1_txtLoginDepoimento').style.borderColor = "red";
//        
//        if($id('ctl00_ContentPlaceHolder1_depoimentos1_txtSenhaDepoimento').value == '')
//            document.getElementById('ctl00_ContentPlaceHolder1_depoimentos1_txtSenhaDepoimento').style.borderColor = "red";
//            
//        return false;
//    }
//    else
//    {
//        $id('escrever_depoimento').style.display='block';
//        $id('nao_tem_login').style.display='none';
//        
//        return true;
//    }
//}

function fEnviarDepoimento()
{
    if($id('ctl00_ContentPlaceHolder1_depoimentos1_txtDepoimento').value == '')
    {
        document.getElementById('ctl00_ContentPlaceHolder1_depoimentos1_txtDepoimento').style.borderColor = "red";
        
        return false;
    }
    else
    {
        $id('escrever_depoimento').style.display='none';
        $id('fim_depoimento').style.display='block';
        
        return true;
    }        
}