Browsers, that load these two URL's scripts asynchronigly, might execute
the delivered banner-codes, before fl.js is loaded completely and, hence,
produce an error, if a banner-code referes code from fl.js.
var
- id,
- node,
+ domain, id, node,
count = 0,
slots = {},
openx.show_ads = function(server, zones) {
+ domain = document.location.protocol == 'https:' ? 'https://' + server + ':8443':'http://' + server;
+
var
- domain = document.location.protocol == 'https:' ? 'https://' + server + ':8443':'http://' + server,
name,
src = domain;
if (window.location) src += "&loc=" + escape(window.location);
if (document.referrer) src += "&referer=" + escape(document.referrer);
- $.getScript(src, init_ads);
+ $.getScript(src, load_flash);
+
+ }
+
+ function load_flash() {
- src = domain + '/www/delivery/fl.js';
- $.getScript(src);
+ $.getScript(domain + '/www/delivery/fl.js', init_ads);
}