(function() {
    //jquery 1.0.2 ajax fix
    var oldAjax = jQuery.ajax;
    jQuery.ajax =  function( type, url, data, ret, ifModified ) {
        if(!url) {
            if(typeof type.global == "undefined") type.global = true;
            if(typeof type.timeout == "undefined") type.timeout = jQuery.timeout;
        } else {
            type = {
                type:       type,
                url:        url,
                data:       data,
                ifModified: ifModified,
                global:     true,
                timeout:    jQuery.timeout,
                complete:   ret
            };
        }
        return oldAjax.call(jQuery, type);
    };

})();
