(function(B){var A=0;B.ajaxTransport("iframe",function(C,G,F){if(C.type==="POST"||C.type==="GET"){var E,D;return{send:function(I,H){E=B('<form style="display:none;"></form>');D=B('<iframe src="javascript:false;" name="iframe-transport-'+(A+=1)+'"></iframe>').bind("load",function(){var J;D.unbind("load").bind("load",function(){var K;try{K=D.contents()}catch(L){K=B()}H(200,"success",{iframe:K});B('<iframe src="javascript:false;"></iframe>').appendTo(E);E.remove()});E.prop("target",D.prop("name")).prop("action",C.url).prop("method",C.type);if(C.formData){B.each(C.formData,function(K,L){B('<input type="hidden"/>').prop("name",L.name).val(L.value).appendTo(E)})}if(C.fileInput&&C.fileInput.length&&C.type==="POST"){J=C.fileInput.clone();C.fileInput.after(function(K){return J[K]});if(C.paramName){C.fileInput.each(function(){B(this).prop("name",C.paramName)})}E.append(C.fileInput).prop("enctype","multipart/form-data").prop("encoding","multipart/form-data")}E.submit();if(J&&J.length){C.fileInput.each(function(L,K){var M=B(J[L]);B(K).prop("name",M.prop("name"));M.replaceWith(K)})}});E.append(D).appendTo("body")},abort:function(){if(D){D.unbind("load").prop("src","javascript".concat(":false;"))}if(E){E.remove()}}}}});B.ajaxSetup({converters:{"iframe text":function(C){return C.text()},"iframe json":function(C){return B.parseJSON(C.text())},"iframe html":function(C){return C.find("body").html()},"iframe script":function(C){return B.globalEval(C.text())}}})}(jQuery));