/***********************************************
FUNÇÃO QUE DEIXA O MENU EM ESTADO "ATUAL"

onblur="clearCampo()" onclick="clearCampo('sim')"

***********************************************/
function clearCampo(valor) {
	var campoMenu = document.getElementById('menu_buscaCampo');
		if(valor == "sim")
		campoMenu.style.background = "url(../img/img_bg_topoBuscaCampoHover.gif) no-repeat center top";
	else{
		if(campoMenu.value == "")
		campoMenu.style.background = "url(../img/img_bg_topoBuscaCampo.gif) no-repeat center top";
	else
		campoMenu.style.background = "url(../img/img_bg_topoBuscaCampoHover.gif) no-repeat center top";
	}
}
/***********************************************
***********************************************/



/***********************************************
* Pop-it menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var defaultMenuWidth="150px" //set default menu width.

var linkset=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT

/* ########################   O GRUPO   ####################### 
. Quem Somos
. História 
. Conceito
. Localização
*/
linkset[0]='<a href="quemSomos.asp">Quem somos</a>'
linkset[0]+='<hr>' //Separator
linkset[0]+='<a href="conceitos.asp">Conceito</a>'
linkset[0]+='<hr>' //Separator
linkset[0]+='<a href=\"filosofia.asp\">Filosofia</a>'
linkset[0]+='<hr>' //Separator
linkset[0]+='<a href="historia.asp">Hist&oacute;ria</a>'
linkset[0]+='<hr>' //Separator
linkset[0]+='<a href=\"localizacao.asp\">Localiza&ccedil;&atilde;o</a>'
/* ########################   fim O GRUPO   ####################### */


/* ########################   SERVIÇOS   ####################### 
.Segurança: 
	• Vigilância Patrimonial
	• Segurança Pessoal
	• Escolta armada
. Segurança Eletrônica
. Monitoramento
. Consultoria em Segurança
. Análise de Risco
. Serviços Gerais Terceirizados:
  Portaria; Controle de Acesso; 
  Recepção, Limpeza e Conservação;
  Fiscal e Orientador de piso)
*/
linkset[1]='<a href="seguranca.asp">Seguran&ccedil;a</a>'
linkset[1]+='<a href="vigPatrimonial.asp">&nbsp;&bull;&nbsp;Patrimonial</a>'
linkset[1]+='<a href="vigSegPess.asp">&nbsp;&bull;&nbsp;Pessoal</a>'
linkset[1]+='<a href="vigEscoltaArm.asp">&nbsp;&bull;&nbsp;Escolta armada</a>'
linkset[1]+='<hr>' //Separator
linkset[1]+='<a href="segEletro.asp">Seguran&ccedil;a Eletr&ocirc;nica</a>'
linkset[1]+='<hr>' //Separator
linkset[1]+='<a href="monitoramento.asp">Monitoramento</a>'
linkset[1]+='<hr>' //Separator
linkset[1]+='<a href="consSeg.asp">Consultoria em Seguran&ccedil;a</a>'
linkset[1]+='<hr>' //Separator
linkset[1]+='<a href="analiseRisco.asp">An&aacute;lise de Risco</a>'
linkset[1]+='<hr>' //Separator
linkset[1]+='<a href="servgTer.asp">Servi&ccedil;os Gerais Tercenirizados</a>'
linkset[1]+='<a href="#">&nbsp;&bull;&nbsp;Portaria</a>'
linkset[1]+='<a href="#">&nbsp;&bull;&nbsp;Controle de Acesso</a>'
linkset[1]+='<a href="#">&nbsp;&bull;&nbsp;Recep&ccedil;&atilde;o</a>'
linkset[1]+='<a href="#">&nbsp;&bull;&nbsp;Fiscal e Orientador de piso</a>'
linkset[1]+='<a href="limpezaConserv.asp">&nbsp;&bull;&nbsp;Limpeza e Conserva&ccedil;&atilde;o</a>'
/* ########################   FIM SERVIÇOS   ####################### */


/* ########################   QUALIDADE   #######################
. Missão, Visão e Princípios
. Diferenciais
. Certificações
. Premiações
*/
linkset[2]='<a href="#"> Miss&atilde;o, Vis&atilde;o e Princ&iacute;pios</a>'
linkset[2]+='<hr>' //Separator
linkset[2]+='<a href="diferenciais.asp">Diferenciais</a>'
linkset[2]+='<hr>' //Separator
linkset[2]+='<a href="#">Premia&ccedil;&otilde;es</a>'
/* ########################   FIM QUALIDADE   ####################### */

/* ########################   LEGISLAÇÃO   ####################### 
. Como contratar e escolher uma  empresa de Segurança  
. Leis, resoluções, normas, portarias
. Links úteis
*/
linkset[3]='<a href="#">Como contratar e escolher uma  empresa de Seguran&ccedil;a</a>'
linkset[3]+='<hr>' //Separator
linkset[3]+='<a href="#">Leis, resolu&ccedil;&otilde;es, normas, portarias</a>'
linkset[3]+='<hr>' //Separator
linkset[3]+='<a href="#">Links &uacute;teis</a>'
/* #######################   fim LEGISLAÇÃO   ####################### */


/* ########################   DICAS   ####################### */
linkset[4]='<a href="dicasRecomendacoes.asp">Dicas &uacute;teis (seguran&ccedil;a e outras)</a>'
/* ########################   fim DICAS   ####################### */


/* ########################   CONTATO   ####################### 
. Fale conosco / Em que podemos ajudar?
. Solicite a visita de um representante
. Trabalhe conosco / painel de vagas

*/
linkset[5]='<a href="faleconosco.asp">Fale conosco</a>'
linkset[5]+='<hr>' //Separator
linkset[5]+='<a href="#">Solicite a visita de um representante</a>'
linkset[5]+='<hr>' //Separator
linkset[5]+='<a href="trabelheConosco.asp">Trabalhe Conosco</a>'
linkset[5]+='<hr>' //Separator
linkset[5]+='<a href="#">Painel de Vagas</a>'
/* ########################   fim CONTATO   ####################### */


////No need to edit beyond here

var ie5=document.all && !window.opera
var ns6=document.getElementById

if (ie5||ns6)
document.write('<div id="popitmenu" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)"></div>')

function iecompattest(){
return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
}

function showmenu(e, which, optWidth){
if (!document.all&&!document.getElementById)
return
clearhidemenu()
menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu")
menuobj.innerHTML=which
menuobj.style.width=(typeof optWidth!="undefined")? optWidth : defaultMenuWidth
menuobj.contentwidth=menuobj.offsetWidth
menuobj.contentheight=menuobj.offsetHeight
eventX=ie5? event.clientX : e.clientX
eventY=ie5? event.clientY : e.clientY
//Find out how close the mouse is to the corner of the window
var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY
//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX-menuobj.contentwidth+"px" : window.pageXOffset+eventX-menuobj.contentwidth+"px"
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX+"px" : window.pageXOffset+eventX+"px"
//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.style.top=ie5? iecompattest().scrollTop+eventY-menuobj.contentheight+"px" : window.pageYOffset+eventY-menuobj.contentheight+"px"
else
menuobj.style.top=ie5? iecompattest().scrollTop+event.clientY+"px" : window.pageYOffset+eventY+"px"
menuobj.style.visibility="visible"
return false
}

function contains_ns6(a, b) {
//Determines if 1 element in contained in another- by Brainjar.com
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.style.visibility="hidden"
}

function dynamichide(e){
if (ie5&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
delayhide=setTimeout("hidemenu()",500)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}

if (ie5||ns6)
document.onclick=hidemenu

