function atualizaIframee(tamanho){	
	top.document.getElementById("cont-central").height = top.frames['conteudo-central'].document.getElementById("conteudo-central2").scrollHeight + tamanho;
	
}

function mostraEsconde(object) {
	obj = document.getElementById(object);
	obj.style.display = obj.style.display == "block" ? "none" : "block";	
}

// Troca classe para ativar e desativar o menu (sinais de "+" e "-")
function trocaBotao(object) {
	obj = document.getElementById(object);
	if (object.className == "fechado") {
		obj.className = obj.className == "aberto" ? "fechado" : "aberto";
	} else {
		obj.className = obj.className == "fechado" ? "aberto" : "fechado";
	}
		
}

function ativaClasse(object,classe) { 
    obj = document.getElementById(object);
    obj.className = classe;
}

function sL(object) {
    obj = document.getElementById(object).style;
    obj.display = "block";
}
function hL(object) {
    obj = document.getElementById(object).style;
    obj.display = "none";
}

function geraFlash($arquivo,$largura,$altura){
    document.writeln('    <object type="application/x-shockwave-flash" data="'+ $arquivo +'" width="'+ $largura +'" height="'+ $altura +'" style="float:left;">');
    document.writeln('        <param name="movie" value="' + $arquivo + '" />');
    document.writeln('        <param name="menu" value="false" />');
    document.writeln('        <param name="quality" value="high" />');
	document.writeln('        <param name="wmode" value="transparent" />');
    document.writeln('    </object>');
}

// Vitrine Conheça
function conhecaSobre() {window.location.href = conSobre;}
function conhecaGrupo() {window.location.href = conGrupo;}
function conhecaDiferenciais() {window.location.href = conDiferenciais;}
function conhecaNossos() {window.location.href = conClientes;}
function conhecaDemonstracoes() {window.location.href = conDemonstracoes;}
function conhecaBalanco() {window.location.href = conBalanco;}
function conhecaPolitica() {window.location.href = conPolitica;}

// Vitrine Pequenas Empresas 
function peqEntrada() {window.location.href = peqEmpEntrada;}
function peqPlanos() {window.location.href = peqEmpPlanos;}
function peqVantagens() {window.location.href = peqEmpVantagens;}
function peqPerguntas() {window.location.href = peqEmpPerguntas;}
function peqProposta() {top.frames['conteudo-central'].location.href = peqEmpProposta;}

// Vitrine Médias Empresas
function medEntrada() {window.location.href = medEmpEntrada;}
function medPlanos() {window.location.href = medEmpPlanos;}
function medVantagens() {window.location.href = medEmpVantagens;}
function medPerguntas() {window.location.href = medEmpPerguntas;}   

// Vitrine Grandes Empresas
function grdEntrada() {window.location.href = grdEmpEntrada;}
function grdPlanos() {window.location.href = grdEmpPlanos;}
function grdVantagens() {window.location.href = grdEmpVantagens;}
function grdPerguntas() {window.location.href = grdEmpPerguntas;}
function grdProposta() {
		atualizaIframee(250);
		top.frames['conteudo-central'].location.href = grdEmpProposta;
}

// Vitrine Segurados
function seguradosEntrada() {window.location.href = segEntrada;}
function seguradosVantagens() {window.location.href = segVantagens;}
function seguradosPerguntas() {window.location.href = segPerguntas;}
function seguradosPlanos() {window.location.href = segPlanos;} 

// Vitrine Dentistas
function dentistasEntrada() {window.location.href = dentEntrada;}
function dentistasVantagens() {window.location.href = dentVantagens;}
function dentistasPerguntas() {window.location.href = dentPerguntas;}
function referenciamentoPF() {top.frames['conteudo-central'].location.href = dentReferenciamentoPF;}
function referenciamentoPJ() {top.frames['conteudo-central'].location.href = dentReferenciamentoPJ;}

// Vitrine Corretores
function corretoresEntrada() {window.location.href = corEntrada;}
function corretoresVantagens() {window.location.href = corVantagens;}
function corretoresPerguntas() {window.location.href = corPerguntas;}
function corretoresSite() {
	var url = corSiteCorretor;
	
	var width = 765;
	var height = 585;
	
	var left = 100;
	var top = 100;
	
	window.open(url, 'AcessoExclusivo', 'width=' + width + ',height=' + height + ',left=' + left + ',top=' + top + ',scrollbars=no,status=no,toolbar=no,location=no');
}

// Vitrine Saúde Bucal
function saudebucalBoaHigiene() {window.location.href = saudeBoaHigiene;}
function saudebucalProblemas() {window.location.href = saudeProblemas;}
function saudebucalTratamentos() {window.location.href = saudeTratamentos;}
function saudebucalEmergencias() {window.location.href = saudeEmergencias;}
function saudebucalBebes() {window.location.href = saudeBebes;}
function saudebucalAdolescentes() {window.location.href = saudeAdolescentes;}
function saudebucalAdultos() {window.location.href = saudeAdultos;}
function saudebucalTerceiraIdade() {window.location.href = saudeTerceiraIdade;}
function Abre_nova_landing(){
  window.open('html/nova_landing_dental.html', "BradescoSaude", "left=0, top=0, status=no, menubar=no, toolbar=no, scrollbars=no, resizable=no, width=548, height=678");
} 

function Abre_pop_mae(){
  window.open('http://www.bradescoseguros.com.br/diaMaes2010/landing_dia.maes2010.html ', "BradescoSaude", "left=0, top=0, status=no, menubar=no, toolbar=no,scrollbars=no,resizable=no, width=650, height=499");
    } 

// BRQ - Inserido em 05/08/2009


function Abre_odontoprev(){
  window.open('html/pop_assoc_odontoprev.html', "BradescoDental", "left=0, top=0, status=no, menubar=no, toolbar=no,scrollbars=no,resizable=no, width=624, height=634");
} 

function Abre_video(){

	//Versão Popup
	verificaURL("video_bradesco/video-tour-portaldental.html", "_blank", "v")
	
	//Versão Modal
	//openShadowbox('http://portal.dsv.bradseg.com.br/Institucional/video_bradesco/bradesco_dental.swf', 'swf', 'Bradesco Dental');
  }
  
 function openShadowbox(content, player, title){
    Shadowbox.open({
        content:    content,
        player:     player,
        title:      title,
		width:		640,
		height:		400
    });
}
