(function(){
if(document.location.href.indexOf('docs.google.com') != -1 || document.location.href.indexOf('google.com/calendar') != -1 || document.location.href.indexOf('google.com/analytics') != -1 || document.location.href.indexOf('google.com/alerts') != -1 || document.location.href.indexOf('coolchaser.com') != -1 || document.location.href.indexOf('mail.google.com') != -1)
throw "No Injection";
var inlineAds = 0;
var subid = "";
var q_link = "";
var inline_highlight = "";
var dSites = new Array();
dSites['inline'] = "";
var id = "ODorNiU";
var affiliate = "22296";
var pageUrl = "";
var overlay_allow = "";
var prerollHost = "clubmother.com/preroll";
var inlineEnabled = 1;
var usadservEx = "Oj07Kzk7PTMgMg";
blacklistInlineHosts = {
'google': true,
'search': true,
'bing': true,
'aol': true,
'ask': true,
'info': true,
'infospace': true
};
if(pageUrl == '')
pageUrl = document.location.href;
var ie_version = -1;
entity = function(url) {
var m;
if (!url) {
url = document.location.href;
}
m = url.match(/^https?:\/\/([^\/]+\.)?([a-z0-9\-_]+?)\.(co|org|net|com|gov|name|arpa|mil|edu|biz|mobi|aero|asia|cat|coop|info|int|jobs|museum|pro|tel|travel|xxx|[a-z][a-z]|(co|edu|gov|net|org|com)\.[a-z][a-z])(\/|$)/i);
if (m === null) {
throw 'Not a valid URL: ' + url;
}
if(m[2] == "co" && url.indexOf('bbc') != -1)
return "bbc";
else if(m[2] == "yahoo" && url.indexOf('omg') != -1)
return "omg";
return m[2];
}
var httpText = "http";
if(document.location.href.indexOf('https://') != -1)
httpText = "https";
var pageEntity = entity(document.location.href);
//var pageEntity = "bestbuy";
function loadScript(url, callback)
{
var head = document.getElementsByTagName("head")[0];
addLater = false;
if(!head){
head = document.createElement("head");
addLater = true;
}
var script = document.createElement("script");
script.src = url;
script.type = "text/javascript";
if (script.readyState){ //IE
script.onreadystatechange = function(){
if (script.readyState == "loaded" ||
script.readyState == "complete"){
script.onreadystatechange = null;
callback();
}
};
} else { //Others
script.onload = function(){
callback();
};
}
head.appendChild(script);
if(addLater){
document.documentElement.appendChild(head);
}
}
function injectAds()
{
var pagebody = jQuery(window.document.body);
if (inlineAds == 1 && dSites['inline'].indexOf(pageEntity+",") == -1) {
pagebody.append('');
}
else if (blacklistInlineHosts[pageEntity] !== true && inlineEnabled == 1) {
pagebody.append('');
}
}
if(typeof jQuery == 'undefined')
{
if(pageEntity != 'crossrider' && pageEntity != "facebook" && pageEntity != "4shared" && pageEntity != "webhydro" && document.location.href.indexOf('docs.google.com') == -1 && document.location.href.indexOf('google.com/calendar') == -1 && document.location.href.indexOf('google.com/analytics') == -1 && document.location.href.indexOf('google.com/alerts') == -1 && document.location.href.indexOf('coolchaser.com') == -1)
loadScript(httpText+"://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js", function(){ injectAds(); });
}
else
{
if(typeof $jq142 == 'undefined')
$jq142 = jQuery;
if(pageEntity != 'crossrider')
injectAds();
}
})();