

function imgMiniaturas(imagem) {
	$('#fotoGaleria').attr('src', 'home/images/' + imagem + '.jpg');
}

function imgRs(imagem) {
	$('#fotoGaleria').attr('src', 'home/images/img-rs.gif');
}

$(document).ready(function(){
	$("#contato #bt_submit").click(function(){
		var flag = true;
		$("#contato input, #contato textarea").each(function(){
			if ($(this).attr("req") && $(this).val() == ""){
				$(this).css("border-color", "#F00");
				flag = false;
			} else {
				$(this).css("border-color", "#CCC");
			}
		});
		if (flag){
			$(this).parent("form").submit();
		}
	});

	$("a[rel^='prettyPhoto']").prettyPhoto({
			animationSpeed: 'normal',
			padding: 50, 
			opacity: 0.85,
			showTitle: true,
			allowresize: true, 
			counter_separator_label: '/',
			theme: 'dark_square',
			callback: function(){}
	});
	
});
