// prepare the form when the DOM is ready 
$(document).ready(function() { 
						   
	$('#formContato').ajaxForm({ 
		dataType:  'json', 
		success :   processJson 
	}); 
	
	$('#facFormularioMensagem').hide();
	
});

function processJson(data) {
	$('#facFormularioMensagem').show();
	$('#facFormularioMensagem').html(data.msg);
	
	if( data.result=='true' ){
		$('#facNome').val("");
		$('#facEmail').val("");
		$('#facFone').val("");
		$('#facMsg').val("");
	}
	
}
