	//#####################################################
	//#######			GALERIA DE IMAGENS			#######
	//#####################################################

	var bloqueia = false;

	function fechar() {
		bloqueia = false;
		$(".divImg").hide("slow");
	}

	$(document).ready( function() {

	function popUp(pathIMG) {
		divConteudo = "<div class=\"divImg\"><a class=\"fecha\" href=\"javascript:fechar();\">Fechar</a>";
		divConteudo  = divConteudo + "<img class=\"imgGallery\" src ='" + pathIMG + "' /></div>";
		return divConteudo;
	}//popup

	$('A[rel="popup"]').click( function() {
			if(bloqueia == false) {
			conteudo = popUp($(this).attr('href'));
			$("#coluna_meio").append(divConteudo);
			bloqueia = true;
			}
			return false;
		});
	//#####################################################
	//#######			GALERIA DE IMAGENS			#######
	//#####################################################
	});

function addFav(){
    var url   = "http://www.angradosreisaqui.com.br";
    var title = "Angra dos Reis Aqui";
    if (window.sidebar) window.sidebar.addPanel(title, url,"");
    else if(window.opera && window.print){
        var mbm = document.createElement('a');
        mbm.setAttribute('rel','sidebar');
        mbm.setAttribute('href',url);
        mbm.setAttribute('title',title);
        mbm.click();
    }
    else if(document.all){window.external.AddFavorite(url, title);}
}

function show(id) {
	if(id!='...') {
	document.getElementById("conteudo").innerHTML = document.getElementById(id).innerHTML;
		if(document.getElementById("tbldestaques")) {
		document.getElementById("tbldestaques").style.display="none";
		}
	} else {
	alert("Selecione um serviço");
	document.getElementById("conteudo").innerHTML = "";
	}
}

<!--
function popitup(url,w,h) {
	newwindow=window.open(url,'name','height='+h+',width='+w);
	if (window.focus) {newwindow.focus()}
	return false;
}
// -->

/*
function addFav(){
    var url     	 = "http://www.litoralcostaverde.com.br";
    var title   	 = "Litoral Costa Verde";
    if (window.sidebar) window.sidebar.addPanel(title, url,"");
    else if(window.opera && window.print){
        var mbm = document.createElement('a');
        mbm.setAttribute('rel','sidebar');
        mbm.setAttribute('href',url);
        mbm.setAttribute('title',title);
        mbm.click();
    }
    else if(document.all){window.external.AddFavorite(url, title);}
}
*/

  //#####################################################
  //#######			GALERIA DE IMAGENS			#######
  //#####################################################

  var bloqueia = false;

  function fechar() {
  bloqueia = false;
  $(".divImg").hide("slow");
  }

  $(document).ready( function() {

  function popUp(pathIMG) {
  divConteudo = "<div class=\"divImg\"><a class=\"fecha\" href=\"javascript:fechar();\">Fechar</a>";
  divConteudo  = divConteudo + "<img class=\"imgGallery\" src ='" + pathIMG + "' /></div>";
  return divConteudo;
  }//popup

  $('A[rel="popup"]').click( function() {
  	if(bloqueia == false) {
  	conteudo = popUp($(this).attr('href'));
  	$("#coluna_meio").append(divConteudo);
  	bloqueia = true;
  	}
  	return false;
  });
  //#####################################################
  //#######			GALERIA DE IMAGENS			#######
  //#####################################################
  });

function show(id) {
	if(id!='...') {
	document.getElementById("conteudo").innerHTML = document.getElementById(id).innerHTML;
		if(document.getElementById("tbldestaques")) {
		document.getElementById("tbldestaques").style.display="none";
		}
	} else {
	alert("Selecione um serviço");
	document.getElementById("conteudo").innerHTML = "";
	}
}

function verifica() {

	d = document.Contato;

	var vazio = false;
	var mail = false;

	//valida nome

	if(d.nome.value=="") {
	var vazioNome = true;
	vazio = true;
	d.nome.focus();
	}

	if(d.Email.value=="") {
	var vazioMail = true;
	vazio = true;
	d.Email.focus();
	}

	if(d.mensagem.value=="") {
	var vazioMsg = true;
	vazio = true;
	d.mensagem.focus();
	}

	if(vazio==true) {
	msg = "Preencha os respectivos campos:  ";
		if (vazioMail==true) {
		msg = msg+"email";
		}

		if (vazioNome==true) {
		msg = msg+" ,nome";
		}

		if (vazioMsg==true) {
		msg = msg+" ,mensagem";
		}

	alert(msg);
	return false;
	}//if vazio

        parte1 = d.Email.value.indexOf("@");
        parte2 = d.Email.value.indexOf(".");
        parte3 = d.Email.value.length;

         if (!(parte1 >= 3 && parte2 >= 6 && parte3 >= 9)) {
                  alert ("O campo " + d.Email.name + " deve ser conter um endereço v´slido!");
				  return false;
         }

  return true;
}

function popitup(url,w,h) {
	newwindow=window.open(url,'name','height='+h+',width='+w);
	if (window.focus) {newwindow.focus()}
	return false;
}


// TRAVA MENU
//function travaMenu() { return false };
//document.oncontextmenu=travaMenu;

// abre janela maximizada
function abreM(url,janela,scroll){
W = eval(screen.width)-10;
H = eval(screen.height)-54;
    window.open(url,janela,"toolbar=no,location=yes,directories=no,status=no,menubar=yes,scrollbars="+scroll+",resizable=no,copyhistory=no,width="+W+",height="+H+",top=0,left=0");
}



window.name = "new"
b_versao = parseInt(navigator.appVersion);
var win = null;

function janelastatus(mypage,myname,w,h,scroll)
{
if (b_versao >= 4)
        {
        LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
        TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
        }
else
        {
        LeftPosition = 100
        TopPosition = 100
        }
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=1,resizable=0,status=0'
win = window.open(mypage,myname,settings)
win.focus()
}

function janela(mypage,myname,w,h,scroll)
{
if (b_versao >= 4)
        {
        LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
        TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
        }
else
        {
        LeftPosition = 100
TopPosition = 100
        }
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=1,resizable=0,status=1'
win = window.open(mypage,myname,settings)
win.focus()
}

window.name = "new"
b_versao = parseInt(navigator.appVersion);
var win = null;

  

