";
$('#'+that.options.uid).html(writeCapture.sanitize(str_html));
}
};
xdr.send();
} else {
//and add an ajaxrequest with the name parameter
$.ajax({
dataType:"text",
beforeSend: function(xhr){
xhr.withCredentials = true;
},
url: adurl,
success: function(data, s, j) {
if(data != ''){
var str_html = "";
$('#'+that.options.uid).html(writeCapture.sanitize(str_html));
}
}
});
}
}
Adhese.prototype.Ad.prototype.getAdRequest = function(){
var req = [];
adhese.profile.sl = this.options.product + this.options.slot + "-" + this.template;
for(k in adhese.profile){req.push(k + adhese.profile[k]);}
req.push("hk"+adhese.hkey);
req.push("?t=" + (Math.random()*10000));
req = adhese.host+"/"+req.join("/");
return req;
}
Adhese.prototype.Ad.prototype.reload = function(){
debug.log("reload ", this);
this.options.product = adhese.getLocation();
this.options.async = true;
this.get();
}
// ==== end ad ====
// flash
Adhese.prototype.flash = {};
Adhese.prototype.flash.check = function(){
this.installed = false;
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]){
this.installed = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
}else if (document.all && (navigator.appVersion.indexOf("Mac")==-1)){
eval ('try {var xObj = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if (xObj) this.installed = true; xObj = null; } catch (e) {}');
}
return this.installed ? this.installed = true : this.installed = false;
}
// browser
Adhese.prototype.browser = {};
Adhese.prototype.browser.detect = function(){
this.name = this.searchString(this.dataBrowser) || "unknownBrowser";
this.version = this.searchVersion(navigator.userAgent)
|| this.searchVersion(navigator.appVersion)
|| "unknownVersion";
this.os = this.searchString(this.dataOS) || "unknownOS";
}
Adhese.prototype.browser.searchString = function (data) {
for (var i=0;i%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B%2B__utmv%3D628446783.10.0.17.12%3B)