
jz.Ajax={__scenter:null,getSetupCenter:function(){if(jz.Ajax.__scenter!=null){return jz.Ajax.__scenter;};console.log('Iniciando Setup Center');var _showPBar=false;$("#loading").ajaxStart(function(){if(_showPBar==false)return;var scrolling=function(){$("#loading").css('top',$(document).scrollTop())};scrolling();$(window).scroll(scrolling);$(this).show('normal');});$("#loading").ajaxComplete(function(){if(_showPBar==false)return;$(window).unbind('scroll');$(this).hide('normal');});jz.Ajax.__scenter=new function(){this.set=function(o){$.ajaxSetup(o);return this;}
this.showPBar=function(bool){if(typeof bool=='undefined')return _showPBar;_showPBar=bool==true;return this;}
this.timeout=function(segundos){$.ajaxSetup({timeout:(1000*segundos)});return this;}
this.async=function(bool){$.ajaxSetup({async:bool});return this;}}
var _dmessage='JSError: Não foi possível completar transação';return jz.Ajax.__scenter.set({error:function(){jz.Lang.supportRequests(false).ts(_dmessage,jz.ComunicadoUsuario.notifica);}}).timeout(20).async(true).showPBar(true);}};