function ajaxProxy(proxyUrl,opts) { var c = ajaxProxyCaches[proxyUrl]; if (c === undefined) { c = ajaxProxyCaches[proxyUrl] = []; var func = arguments.callee; $('<iframe class="poxy_uc" src="' + proxyUrl + '" style="display:none">').load(function () { c.contentWindow = this.contentWindow; func(proxyUrl,opts); }).prependTo('body'); } else if (c.contentWindow === undefined) { c.push(opts); } else { do { c.contentWindow.jQuery.ajax(opts); } while (opts = c.shift()); } }