/*
 * & ™ All rights reserved, YOUR SYSTEM, spol. s r.o. 2011
 *
 * This software (code) or parts of it is copyrighted by the YOUR SYSTEM, spol. s r.o. Use of the software (code) is subject to the YOUR SYSTEM, spol. s r.o. and requires permission.
 */

var Ajax;
if (Ajax && (Ajax != null)) {
	Ajax.Responders.register({
	  onCreate: function() {
        if($('spinner') && Ajax.activeRequestCount>0)
          Effect.Appear('spinner',{duration:0.5,queue:'end'});
	  },
	  onComplete: function() {
        if($('spinner') && Ajax.activeRequestCount==0)
          Effect.Fade('spinner',{duration:0.5,queue:'end'});
	  }
	});
}

