$(document).ready(function(){ 
	
	/*
	 * Contact Us
	 */
	$('#contact').submit(function() { 
		$('#error').html('Loading...');
		$.post(this.action, $('#contact').serialize(),
			function(data) {
				if(data.success == 1) {
					$('#error').html('If you have any questions or would like us to keep in touch,<br />please fill out the form below.');
					$('#contact').html(data.result).hide().fadeIn('slow');
				} else {
					$('#error').html(data.result).hide().fadeIn('slow');
				}
			}, 'json'
		);
		return false;
	});
	
});
