// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
Ajax.Responders.register({
	onCreate: function() {
		if(Ajax.activeRequestCount > 0) $('indicator').show();
	},
	onComplete: function() {
		if(Ajax.activeRequestCount == 0) setTimeout("$('indicator').hide()", 500);
	}
});