    /**
     * transforms the form into a "pop-up" ajax form
     * TODO: refactor to  a single parametrized function?
     */
	$(document).ready(function() {
		$('#cf_opener').bind('click', function(e) {
			$('#ContactForm').fadeIn(500);
			return false;
		});
		$('#cf_closer').bind('click', function(e) {
			$('#ContactForm').fadeOut(700);
			$('#c_form').resetForm();
			$('#cf_response').html('');
			return false;
		});
		var options = {
			success: handleSuccess,
			error: handleError,
			beforeSubmit: submitNotify
		};
		$('#c_form').ajaxForm(options);
	});

	function submitNotify() {
		$('#cf_response').html($('#sending_message').attr('message'));
	}
	
	function handleSuccess(responseText, statusText) {
		$('#cf_response').html('');
		$('#ContactForm').fadeOut(700);
		$('#c_form').resetForm();
		$('#ContactFormFeedback').css('display', 'block');
		$('#ContactFormFeedback').html(responseText);
		setTimeout("$('#ContactFormFeedback').fadeOut(700)",1500);
	}

	function handleError(XMLHttpRequest, textStatus, errorThrown) {
		$('#cf_response').html(XMLHttpRequest.responseText);
	}
