$(document).ready(function()
{
	$("#contact_send").click(function()
	{
		$('#contact_error').hide();
		$('#contact').hide();
		$('.loading').show();

		$.ajax({
			type: "POST",
			url: "_send_contact.php",
			data: $('#contact_form').serialize(),
			complete: function(msg, status)
			{
				if (msg.responseText == "true")
				{
					$('.loading').hide();
					$('#contact_done').show();
				}
				else
				{
					$('.loading').hide();
					$('#contact').show();
					$('#contact_error').show();
				}
			}
		});
	});
});
