//Begin main navigation bar
window.addEvent('domready', function(){ //This function must wrap everything that
	//That needs to be called when the dom loads.


	$('contactForm').addEvent('submit', function(e) {
		/**
		* Prevent the submit event
		*/
		new Event(e).stop();

		/**
		* This empties the log and shows the spinning indicator
		*/
		var log = $('sendStatus').empty().addClass('ajax-loading');

		/**
		* send takes care of encoding and returns the Ajax instance.
		* onComplete removes the spinner from the log.
		*/
		this.send({
			update: log,
			onComplete: function() {
				log.removeClass('ajax-loading');
			}
		});
	});

});