sfHover=function() {
      	     var sfEls=document.getElementById("nav").getElementsByTagName("LI");
      	     for (var i=0; i<sfEls.length; i++) {
          		   sfEls[i].onmouseover=function() {
          		        this.className+=" sfhover";
          		        }
          		   sfEls[i].onmouseout=function() {
          		        this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
          		        }
      	     }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function escondemapa(){
	m2=document.getElementById('mapa2');
	m3=document.getElementById('mapa3');
	m2.style.display="none";
	m3.style.display="none";
}

function mostramapa(id){
     escondemapa();
     m1=document.getElementById('mapa1');
	m1.style.display="none";
     document.getElementById(id).style.display="block"; 
}

function confirma(){
	 resposta = false;
     if (window.confirm("Você tem certeza?")){ 
        resposta = true;
     }else{ 
        resposta = false;
     }
     return resposta;
}

//Fun›es Jquery

$(document).ready(function(){
		$(".galeria").jCarouselLite({
			btnNext: ".next",
    		btnPrev: ".prev",
    		mouseWheel: true,
    		visible: 1,
    		speed: 500,
    		easing: "backout"
    	});
		$("input").focus(function(){
			$(this).addClass("focus");
			return false;
		});
		$("input").blur(function(){
			$(this).removeClass("focus");
			return false;
		});
		$("select").focus(function(){
			$(this).addClass("focus");
			return false;
		});
		$("select").blur(function(){
			$(this).removeClass("focus");
			return false;
		});
		$("textarea").focus(function(){
			$(this).addClass("focus");
			return false;
		});
		$("textarea").blur(function(){
			$(this).removeClass("focus");
			return false;
		});
		
		$("#direitasec p.oculta").hide();
		$("#direitasec div.abre").click(function(){
			$(this).contents().slideToggle();
			return false;
		});
		
});



