$(window).ready(function() {
	$('#submit_button_link').click(function() {
		$('#submit_button_link').get(0).blur(); // i hate that halo shit
		$('#message h2').html('<textarea id="your_message">Your message</textarea>,');
		$('#submit_name').html('<input type="text" id="your_name" value="Anonymous" />');
		$('#submit_button_link').hide();
		$('#send_button_link').show();
		return false;
	})
	
	$('#send_button_link').click(function() {
		$('#send_button_link').get(0).blur(); // I still hate it.
		
		$.post("/send/index.php", { name: $('#your_name').val(), txt: $('#your_message').val() }, function() {
			$('#message h2').html('You submitted your message,');
			$('#credit').html('You are awesome.');
			$('#send_button_link').hide();		
		} );

		return false;
	})

});