var caminho_ajax = 'ajax/';

var callbacksGlobais = {
		onCreate: function(){
			$('carregar').show();
  		},

		onComplete: function() {
			if(Ajax.activeRequestCount == 0){
               $('carregar').hide();
			}
		}
	};

Ajax.Responders.register(callbacksGlobais);