$().ready(function() {

	$("[class^=validate]").validationEngine({
		success: function(){
				$('#contactForm').hide();
				$('.sending').show(); 
				$.get('/wp-content/themes/csslab_v5/mail.php',
					{
						nombre:$('#nombre').val(),
						email:$('#email').val(),
						url:$('#url').val(),
						titulo:$('#titulo').val(),
						link:$('#link').val()
					},
					function(data){
						$('.sending').hide();
						$('#contactForm').show().empty().append("<div class='exito'><h2>&iexcl;Gracias!</h2></div>");  
					}
				);				
				return false;
		}
	});
	
});
