// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

// Don't forget to reinsert this into controls.js on update!
// getText: function() {
//  return this.element.childNodes[0] ? this.element.childNodes[0].nodeValue : '';
// }

Ajax.Responders.register({
	onCreate: function() {
	  if (Ajax.activeRequestCount > 0)
	    Element.show('spinner');
	},
	onComplete: function() {
	  if (Ajax.activeRequestCount == 0)
	    Element.hide('spinner');
	}
});