// 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) {
      $('loading_indicator').show();
   }
     //$$('#loading_indicator')[0].show();  // IE ! Otherwise just $('loading_indicator').show();
 }, 
 onComplete: function() { 
   if (Ajax.activeRequestCount == 0) {
	$('loading_indicator').hide();
     //$$('#loading_indicator')[0].hide(); // see IE notes above
   }
 } 
});                                        

var ux = {}; // our namespace
