function submitForm() {
	var $form = $(this).parents('form');

	$.post($form.attr('action'),
	   {
	   	forename:$('#forename').val(),
	   	 surname:$('#surname' ).val(),
	   	   email:$('#email'   ).val(),
	   	comments:$('#comments').val()
	   },
	   function(data) {
			$form.slideUp("normal", function() {
				$form.before('<p>Your email was sent.</p>');
			});
		}
	);
	return false;
}

$(function () {
	$('div#content div.img').corner('tr 25px cc:#fff').corner('bl 25px cc:#fff');
	$('div#content a[href^="http:"]').addClass('external').bind('click',function() {window.open(this.href); return false}).bind('keypress',function() {window.open(this.href); return false});
	$('div#content input.submit').bind('mouseover',function() {$(this).addClass('over');}).bind('mouseout',function() {$(this).removeClass('over');}).bind('click',submitForm);
});
