/*//////////////////////////////////////////////
// JS Document                                //
// Scripts Gerais para o Site                 //
// Mateus Araujo <mateus@alias.com.br>        //
//////////////////////////////////////////////*/

$(function()
{
    $('#box_noticias').jScrollPane({showArrows:true, scrollbarWidth: 77});
});

function exibe(id){
	var obj = document.getElementById(id);
	obj.style.display = 'block';
}
function esconde(id){
	var obj = document.getElementById(id);
	obj.style.display = 'none';
}
$(document).ready(function(){
		$('.lista_fotos2 li a').lightBox({fixedNavigation:true});				   
});
function foto_ajax(linke){
	
		/*evento.preventDefault();*/
		$("#carregando").css("display", "inline");
		$("#foto_ampliada").load(linke, function(){
			$("#carregando").css("display", "none");
		});
	
}
function valida(d){
	if (d.nome.value == ""){
		alert("O campo nome deve ser preenchido!");
		d.nome.focus();
		return false;
	}	
	//valida empresa
	
	else if (d.email.value == ""){
		alert("O campo email deve ser preenchido!");
		d.email.focus();
		return false;
	}
	
	else if (d.obs.value == ""){
		alert("O campo mensagem deve ser preenchido!");
		d.assunto.focus();
		return false;
	}

}
