//:::::::::::::::::::::::: QUEM SOMOS :::::::::::::::::::::::::
function MostraEscondeDiv_QuemSomos(campo) {
	document.getElementById("Caxias").style.display="none";
	document.getElementById("Passo_Fundo").style.display="none";
	document.getElementById("Santa_Rosa").style.display="none";
	document.getElementById("Santo_Angelo").style.display="none";
	document.getElementById(campo.value).style.display="block";
}
//:::::::::::::::::::::: FIM QUEM SOMOS :::::::::::::::::::::::

//:::::::::::::::::::::::: Cidades :::::::::::::::::::::::::
function MostraEscondeDiv_Cidades(strDiv) {
	document.getElementById("SEDE").style.display='none';
	document.getElementById("Serra").style.display='none';
	document.getElementById("Metropolitano").style.display='none';
	document.getElementById("Planalto").style.display='none';
	document.getElementById("Bento_Goncalves").style.display='none';
	document.getElementById("Santo_Angelo").style.display='none';
	document.getElementById("Santa_Rosa").style.display='none';
	document.getElementById(strDiv).style.display='';
}
//:::::::::::::::::::::: Fim Cidades:::::::::::::::::::::::

//:::::::::::::::::::::::: FUNÇÕES DIVERSAS :::::::::::::::::::::::::
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
//:::::::::::::::::::::::: FIM FUNÇÕES DIVERSAS :::::::::::::::::::::::::


//:::::::::::::::::::::::: CONTROLA FLYBANNERS :::::::::::::::::::::::::
function fcnLayer(strLayer, boolStatus, intPos, strFlashToPlay, boolComboServ, boolAlin) {
//
//	strLayer: ID do DIV que está o FlyBanner
//
//	boolStatus:	-1 - neutro, apenas ajusta posição
//				0 - exibe layer
//				1 - esconde layer
//	
//	intPos: posição que será usado na função que ajusta a posição ao centro do browser.
//			-1 para desonsiderar
//	
//	strFlashToPlay: ID do flash que deverá ser reiniciado (caso ele já tenha rodado enquanto o DIV estava hidden
//					'' para desconsiderar
//														   
//	boolComboServico:	0 - não é necessário esconder o combo de serviços
//						1 - é necessário esconder o combo de serviços
//	boolAlin: indica se o alinhamento é absoluto no navegar dependendo do tamanho da janela, ou se é relativo ao contexto em que o objeto se encontra
//				0 - relativo ao contexto
//				1 - absoluto à janela
//				
//	
//
//	if (boolStatus == 0) {
//		document.getElementById(strLayer).style.display = 'none';
//		if (boolComboServ == 1) { ControlaComboServico(-1); }
//	}
//
//	if (intPos > -1) {
//		if (boolAlin == 1) {
//			document.getElementById(strLayer).style.left = (document.body.offsetWidth - intPos) / 2;
//		} else {
//			document.getElementById(strLayer).style.left = intPos;
//		}
//	}
//	
//	if (boolStatus == 1) {
//		if (boolComboServ == 1) { ControlaComboServico(+1); }
//		document.getElementById(strLayer).style.display = '';
//		if (strFlashToPlay != '') {
//			document.getElementById(strFlashToPlay).Stop();
//			document.getElementById(strFlashToPlay).Rewind();
//			document.getElementById(strFlashToPlay).Play();
//		}
//	}
}

//:::::::::::::::::::::::: FIM CONTROLA FLYBANNERS :::::::::::::::::::::::::


//:::::::::::::::::::::::: MAIS DICAS SEGURANÇA :::::::::::::::::::::::::
function maisdicas() {
	document.location = "/seguranca_residencial/dicas_seguranca_residencial.asp";
}
//:::::::::::::::::::::::: FIM MAIS DICAS SEGURANÇA :::::::::::::::::::::::::