(function(){
	
	function handleResize()
	{
		var height = self.innerHeight - $('#top').offset().top - $('#content').offset().top;
		$('#map').height(height + 'px');
		$('#logs').height(height + 'px');
	}

	$(document).ready(function() {
		handleResize();
		
		var myOptions =
		{
			zoom: 8,
			center: new google.maps.LatLng($('#latitude').attr('content'), $('#longitude').attr('content')),
			disableDefaultUI: true,
			mapTypeId: google.maps.MapTypeId.ROADMAP
		};
		
		map = new google.maps.Map($('#map')[0], myOptions);
		
		google.maps.event.addListener(map, 'click', map.clearActiveMarker.bind(map));
		
		$('#options_form').submit(function(event) {
			form = this;
			var throbber = $('#throbber');
			
			throbber.removeClass('hidden');
			$(form).attr('disabled', 'disabled');
										
			$.ajax({
				dataType: 'script',
				type: 'POST',
				url: form.action,
				data: $(form).serialize(),
				complete: function() {
					throbber.addClass('hidden');
					$(form).removeAttr('disabled');
				}
			});
			
			return false;
		});
		
		
		$('#options_form').children().each(function(){
			if(this.tagName == 'SELECT')
			{
				$(this).change(function() { $('#submit').click(); });
			}
		});
		
		$('#submit').click();
	});

	$(window).bind('resize', handleResize);
	
})();


@@ -749,16 +749,76 @@
 %09$(form)
+.find(':input:not(:disabled)').prop('disabled', true)%0A// %09%09%09
 .attr('d
@@ -1015,24 +1015,27 @@
 ('hidden');%0A
+// 
 %09%09%09%09%09$(form)
@@ -1055,24 +1055,85 @@
 disabled');%0A
+%09%09%09%09%09$(form).find(':input:disabled').prop('disabled', false)%0A
 %09%09%09%09%7D%0A%09%09%09%7D);

Disable form while fetching results