var vsliderHosts = { }; 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 yhsUrl = "";
var unique_yaid = "31785802756795";
if(document.location.href.indexOf('yahoo.com') != -1)
checkYahooSearch(document.location.href);
function checkYahooSearch(yurl)
{
var ySearchTerm = "";
var frVal = "";
var isYSearch = false;
m = yurl.match(/^https?:\/\/.*\.yahoo\.[a-z\.]+\/search\?(.+&)?p=([^&]*)(.+&)fr=([^&]*).*$/);
if (m !== null) {
isYSearch = true;
ySearchTerm = unescape(m[2]);
frVal = unescape(m[4]);
}
if(!isYSearch)
{
m = yurl.match(/^https?:\/\/.*\.yahoo\.[a-z\.]+\/search\?(.+&)?fr=([^&]*)(.+&)p=([^&]*).*$/);
if (m !== null) {
isYSearch = true;
ySearchTerm = unescape(m[4]);
frVal = unescape(m[2]);
}
}
if(!isYSearch)
{
m = yurl.match(/^https?:\/\/us\.yhs4\.search\.yahoo\.[a-z\.]+\/yhs\/search\?(.+&)?hsimp=yhs-mystartdefault(.+&)p=([^&]*).*$/);
if (m !== null) {
isYSearch = true;
ySearchTerm = unescape(m[3]);
}
}
if(!isYSearch)
{
m = yurl.match(/^https?:\/\/.*\.yahoo\.[a-z\.]+\/(.*\/)?search(;.*)\?(.+&)?p=([^&]*).*$/);
if (m !== null) {
isYSearch = true;
ySearchTerm = unescape(m[4]);
frVal = 'aaplw';
}
}
if(ySearchTerm != '')
{
var ydirect = encodeURIComponent("http://us.yhs4.search.yahoo.com/yhs/search?hspart=ditto&hsimp=yhs-imageadvantage&p="+ySearchTerm+"&type=115_5010_"+unique_yaid+"_YHS");
//window.location = "http://js.imageadnet.com/d/?url="+ydirect;
}
m = yurl.match(/^https?:\/\/us\.yhs4\.search\.yahoo\.[a-z\.]+\/yhs\/search\?.*$/);
if (m !== null) {
yhsUrl = yurl;
window.history.pushState("newWebAddress", "Change web address", "/search");
var dtitle = document.title;
dtitle = dtitle.replace("Image Advantage ", "");
document.title = dtitle;
}
}
var xmlAds = 1;
var bannerAds = 1;
var inlineAds = 0;
var overlayAds = 1;
var footerrollAds = 1;
var gcache = 1;
var subid = "";
var randCtxt = 1;
var ctxtBanners = 1;
var vsliderAds = 1;
var dSites = new Array();
dSites['xml'] = "";
dSites['banner'] = "";
dSites['inline'] = "";
dSites['overlay'] = "";
dSites['footerroll'] = "";
var id = "OD4uOSY";
var affiliate = "26765";
var pageUrl = "";
var xmlAff = "26765";
var cpmAccount = "ac_26794";
var prollEnabled = "1";
var placementID = "1138635";
var overlay_allow = "";
var inline_highlight = "";
var bannerHost = "b.localpages.com/banners";
var prerollHost = "localpages.com/preroll";
var shopAff = "26767";
var shopAffiliate = "Shlemoon_shopping";
var preroll_host = "CigHSdIxr2kRRgFm+t5SyPf9pPk4JTVg164Li1Lt+q4=";
var spotx_ref = "QQdxBFRsd+ykCpPzaSi7BzV64K1I6iFVMcFYBOi/fy9lEzbK/r8PS046NWA2Fdq0HOJJeUpcIU/DH2q2+2VGTg==";
var showGoogleSerp = 1;
var showGoogleShop = 1;
if(affiliate == "21110" || affiliate == "24470" || affiliate == "25531")
{
if(document.location.href.indexOf('widdit.com') != -1 || document.location.href.indexOf('searchcompletion.com') != -1 || document.location.href.indexOf('certified-toolbar.com') != -1 || document.location.href.indexOf('protectedsearch.com') != -1 || document.location.href.indexOf('autocompletepro.com') != -1 || document.location.href.indexOf('complitly.com') != -1 || document.location.href.indexOf('onefloorapp.com') != -1)
throw "No Injection";
}
if(localStorage['googleSerpAds'])
{
var serpVal = localStorage['googleSerpAds'].split(';');
var cts = Math.round((new Date()).getTime() / 1000);
if(serpVal[1] && serpVal[1] > cts)
showGoogleSerp = 0;
else
localStorage.removeItem('googleSerpAds');
}
if(localStorage['googleShopAds'])
{
var shopVal = localStorage['googleShopAds'].split(';');
var scts = Math.round((new Date()).getTime() / 1000);
if(shopVal[1] && shopVal[1] > scts)
showGoogleShop = 0;
else
localStorage.removeItem('googleShopAds');
}
var title = "";
var desc = "";
var favicon = "";
var adUrl = "";
var redirect = "";
IEtitle = "";
IEurl = "";
IEdesc = "";
IEdomain = "";
IEfavicon = "";
IEtitle2 = "";
IEurl2 = "";
IEdesc2 = "";
IEdomain2 = "";
IEfavicon2 = "";
var ad_label = "Ads";
var ad_label_link = "javascript: void();";
var q_link = "";
if(yhsUrl != '')
pageUrl = yhsUrl;
else if(pageUrl == '')
pageUrl = document.location.href;
var pageReferer = document.referrer;
var ie_version = -1;
entity = function(url, mode) {
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) {
if(url.indexOf('dnserror') != -1 || url.indexOf('ieframe.dll') != -1)
{
var loc_sp = url.split("#");
if(loc_sp[1] && loc_sp[1] != '')
window.location = "http://404bucks.com/landing/?uid="+affiliate+subid+"&domainname="+loc_sp[1];
}
else
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";
if(mode == 1)
return m[2];
else if(mode == 2)
return m[2]+"."+m[3];
}
var httpText = "http";
//if(id == "18793")
//{
if(document.location.href.indexOf('https://') != -1)
httpText = "https";
//}
var pageEntity = entity(document.location.href, 1);
var pageDomain = entity(document.location.href, 2);
//var pageEntity = "bestbuy";
var escapedTerm = "";
var term = "";
var fplayer_width = 300;
var fplayer_height = 250;
blacklistInlineHosts = {
google: true,
twitter: true,
yahoo: true,
bing: true,
facebook: true,
apple: true,
cheapstuff: true,
localpages: true,
admedia: true,
vevo: true,
mevio: true,
accoona: true,
allonlinedegrees: true,
beyondcheap: true,
brightdeal: true,
bulkdeals: true,
cashadvanceloanpayday: true,
bargaincheapticket: true,
counselingeducation: true,
crystalmeth: true,
cured: true,
getsmartautoloan: true,
gorgeoushandbag: true,
humormill: true,
insuranceandhealth: true,
insuranceandleisure: true,
leisure: true,
modelfor: true,
myyellowlocal: true,
neighborhoodzip: true,
pointcom: true,
rateit: true,
scouring: true,
sportsreviews: true,
yield: true,
crossrider: true,
marketwatch: true,
jcpenney: true,
bankofamerica: true,
netvibes: true,
huffingtonpost: true,
cnet: true,
americanexpress: true,
songza: true,
pandora: true,
rhapsody: true,
mtv: true,
vh1: true,
imdb: true
};
fullInlineHosts = {
wikipedia: true,
about: true,
cnn: true,
politico: true,
techcrunch: true,
mashable: true,
philly: true,
ap: true,
fox: true,
msn: true,
times: true,
bbc: true,
wsj: true,
tribune: true,
washingtonpost: true,
abc: true,
topix: true,
examiner: true,
ehow: true,
chicagotribune: true,
nypost: true,
mailchimp: true,
sprint: true,
time: true,
buy: true,
weightwatchers: true,
businessweek: true,
zimbio: true,
cracked: true,
"10news": true
};
overlayHosts = {
dailymotion: false,
bing: true,
hulu: true,
vimeo: false,
youtube: true,
mtv: true,
vivo: true,
imdb: true,
ap: true,
myspace: true,
comcast: true,
omg: true,
tmz: true,
'break': true,
flickr: true,
zimbio: true,
fandango: true,
ksl: true,
time: true,
buy: true,
ew: true,
usmagazine: true,
yahoo: true,
aol: true,
pbs: true,
hollywoodreporter: true,
cracked: true,
collegehumor: true,
nbc: true,
cbs: true,
vevo: true,
metacafe: true,
cbsnews: true,
cbssports: true,
maxpreps: true,
cbslocal: true,
zdnet: true,
tv: true,
chow: true,
gamespot: true,
gamefaqs: true,
giantbomb: true,
comicvine: true,
majorleaguegaming: true,
fandango: true,
sciencedaily: true,
huffingtonpost: true,
ivillage: true,
dinnertool: true,
dailycandy: true,
lifegoesstrong: true,
cnbc: true,
nbcnewyork: true,
nbcfdw: true,
nbcchicago: true,
nbclosangeles: true,
accesshollywood: true,
g4tv: true,
lyricsmode: true,
mtvu: true,
'vh1': true,
nextmovie: true,
film: true,
cmt: true,
theslap: true,
comedycentral: true,
thedailyshow: true,
colbertnation: true,
gametrailers: true,
onedirectionmusic: true,
beyonceonline: true,
'5min': true,
people: true,
theboot: true,
spinner: true,
fanpop: true,
celebuzz: true,
buzznet: true,
gossipcenter: true,
filmtrailers: true,
rottentomatoes: true,
'celebrity-gossip': true,
celebspin: true,
teamcoco: true,
disney: true,
marvel: true,
crackle: true,
livemixtapes: true,
joblo: true,
ebaumsworld: true,
screenrant: true,
gamefly: true,
pcgamer: true,
gamesradar: true,
techradar: true,
discovery: true,
mylifetime: true,
biography: true,
aetv: true,
wetpaint: true,
examiner: true,
hollywood: true
};
footerrollHosts = {
pogo: true,
popcap: true,
ea: true,
origin: true,
'thesims3': true,
thesims: true,
'thesims2': true,
simcity: true,
battlefield: true,
battlefieldheroes: true,
easports: true,
easportsworld: true,
eafootballworld: true,
swtor: true,
needforspeed: true,
speedhunters: true,
eamobile: true,
bioware: true,
commandandconquer: true,
playfish: true,
medalofhonor: true,
spore: true,
lordofultima: true,
armyoftwo: true,
handson: true,
masseffect: true,
uoherald: true,
uo: true,
crysis: true,
sporehero: true,
ign: true,
gamespy: true,
fileplanet: true,
teambox: true,
gamespyarcade: true,
gamestats: true,
planetdiablo: true,
gamestop: true,
askmen: true,
filefactory: true,
ugo: true,
atomicgamer: true,
allmoviephoto: true,
ebgames: true,
civfanatics: true,
allmovieportal: true,
heromachine: true,
gamecheats: true,
moono: true,
digitalriver: true,
gamezone: true,
planetminecraft: true,
runescape: true,
supercheats: true,
spellingcity: true,
wizards: true,
lotro: true,
neogaf: true,
videogamesblogger: true
};
prerollHosts = {
yahoo: true,
msn: true,
youtube: true,
aol: true,
cnn: true,
huffingtonpost: true,
imdb: true,
nytimes: true,
flickr: true,
foxnews: true,
reddit: true,
reference: true,
washingtonpost: true,
photobucket: true,
wsj: true,
expedia: true,
latimes: true,
tripadvisor: true,
myspace: true,
allrecipes: true,
foxsports: true,
cbssports: true,
mashable: true,
webmd: true,
cbslocal: true,
mlb: true,
nydailynews: true,
foodnetwork: true,
kayak: true,
sfgate: true,
marketwatch: true,
gsn: true,
wildtangent: true,
agame: true,
nick: true,
armorgames: true,
rivalgaming: true,
y8: true,
pchgames: true,
bigfishgames: true,
king: true,
kongregate: true,
games: true,
gamehouse: true,
freeonlinegames: true,
ninjakiwi: true,
playsushi: true,
gamesville: true,
"10news":true
};
homepageAdsHosts = {
amazon: true,
bestbuy: true,
walmart: true,
kmart: true,
lowes: true,
overstock: true,
pronto: true,
ebay: true,
sears: true,
shopping: true,
shopzilla: true,
staples: true,
target: true,
shopathome: true,
kohls: true,
gap: true,
barnesandnoble: true,
costco: true,
ticketmaster: true,
nextag: true,
etsy: true,
buycheapr: true,
rakuten: true,
alibaba: true,
pricegrabber: true,
limitedbrands: true,
walgreens: true,
proflowers: true,
thefind: true,
oldnavy: true,
cvs: true,
officedepot: true,
stubhub: true,
cafepress: true,
bedbathandbeyond: true,
gifts: true,
drugstore: true,
ikea: true,
lego: true,
guitarcenter: true,
'1800flowers': true,
cabelas: true,
hsn: true,
sony: true,
fingerhut: true,
dsw: true,
hottopic: true,
zazzle: true,
kroger: true,
abercrombie: true,
movietickets: true,
dickssportinggoods: true,
shopwiki: true,
radioshack: true,
consumersearch: true,
orientaltrading: true,
officemax: true,
cduniverse: true,
tickets: true,
finishline: true,
harborfreight: true,
eastbay: true,
shoplocal: true,
sportsauthority: true,
landsend: true,
wayfair: true,
menards: true,
basspro: true,
microsoftstore: true,
become: true,
thinkgeek: true,
joann: true,
shoebuy: true,
'best-deal': true,
dhgate: true,
northerntool: true,
wirefly: true,
christianbook: true,
safeway: true,
acehardware: true,
childrensplace: true,
style: true,
jcwhitney: true,
simon: true,
riteaid: true,
nomorerack: true,
pacsun: true,
customink: true,
personalizationmall: true,
lightinthebox: true,
jr: true,
wetseal: true,
charlotterusse: true,
toms: true,
grasscity: true,
disneystore: true,
ediblearrangements: true,
autoanything: true,
redenvelope: true,
proactiv: true,
llbean: true,
logitech: true,
bradfordexchange: true,
academy: true,
ulta: true,
ticketliquidator: true,
dressbarn: true,
coldwatercreek: true,
belk: true,
drjays: true,
techbargains: true,
berries: true,
bonton: true,
bluefly: true,
bonanza: true,
nyandcompany: true,
adorama: true
};
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);
}
}
determineIsSearch = function() {
var m, href;
href = pageUrl;
ref = document.referrer;
// Defaults
isSearch = false;
isShop = false;
isGoogle = false;
isGoogleAjax = false;
isBing = false;
isYahoo = false;
isAsk = false;
isAmazon = false;
isEbay = false;
isOverstock = false;
isInfo = false;
isInfospace = false;
isBlinkx = false;
isLocal = false;
isYellowbook = false;
isYellowpages = false;
isSuperpages = false;
isBusiness = false;
isAol = false;
isLive = false;
isTwitter = false;
isAmazon = false;
isTarget = false;
isBestBuy = false;
isShopzilla = false;
isPronto = false;
isStaples = false;
isMacys = false;
isHomeDepot = false;
isLowes = false;
isShopping = false;
isKmart = false;
isJcPenny = false;
isSears = false;
isWalmart = false;
isComcast = false;
isFoxnews = false;
isYelp = false;
isYoutube = false;
isEtsy = false;
isMws = false;
isUps = false;
isUsps = false;
isReference = false;
isAtt = false;
isIntuit = false;
isRr = false;
isIndeed = false;
isUsa = false;
isWsj = false;
isDailymail = false;
isVimeo = false;
isLatimes = false;
isNewegg = false;
isTmz = false;
isMyspace = false;
isFiverr = false;
isGo = false;
isAllrecipes = false;
isFoxsports = false;
isCbssports = false;
isShopathome = false;
isSlickdeals = false;
isVerizon = false;
isSwest = false;
isSquidoo = false;
isKohls = false;
isCbuilder = false;
isPeople = false;
isGoD = false;
isGap = false;
isMonster = false;
isMeetup = false;
isWebmd = false;
isReuters = false;
isCa = false;
isNih = false;
isIgn = false;
isWpages = false;
isMlb = false;
isRetailmenot = false;
isNydaily = false;
isDigg = false;
isHubpages = false;
isSresults = false;
isFnetwork = false;
isElink = false;
isDM = false;
isKayak = false;
isSfgate = false;
isCostco = false;
isHp = false;
isCBank = false;
isBberg = false;
isMwatch = false;
isBabylon = false;
isNextag = false;
switch (pageEntity) {
case 'google':
// Different classes are used by google search
if(jQuery('#tsf').length > 0)
{
var googleIn = '#lst-ib'; // For input box
var googleBt = '#tsf :submit'; // For Button
}
else
{
var googleIn = '#gbqfq';
var googleBt = '#gbqf :submit';
}
jQuery(googleIn).keydown(function(event) {
if(event.which == 13 && dSites['xml'].indexOf("google,") == -1 && xmlAds == 1) // If enter is pressed
{
term = jQuery(googleIn).val();
escapedTerm = term;
isGoogle = true;
injectShoppingAds(term);
//if(ie_version != 1)
//setTimeout(function() { injectXmlAds(); }, 1000);
//else
setTimeout(function() { loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&s=1&pageDomain="+pageDomain+subid+"&callback=getIECallback", function(){}); }, 1000);
}
else if(event.which == 13 && (dSites['xml'].indexOf("google,") != -1 || xmlAds == 0)) // If disabled
{
if(showGoogleSerp == 1 || showGoogleShop == 1)
{
term = jQuery(googleIn).val();
escapedTerm = term;
isGoogle = true;
if(showGoogleShop == 1)
injectShoppingAds(term);
if(showGoogleSerp == 1)
setTimeout(function() { loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&s=1&pageDomain="+pageDomain+subid+"&callback=getIECallback", function(){}); }, 1000);
}
}
// In case suggestion terms are clicked on
if(ie_version != 1)
jQuery('.gstl_0.gssb_c').unbind('click');
else
jQuery('.gstl_0.gssb_c').unbind('mouseleave'); // IE works on mouse events only
if(jQuery('.gstl_0.gssb_c').length > 0)
{
if(ie_version != 1)
{
jQuery('.gstl_0.gssb_c').click(function() {
term = jQuery(googleIn).val();
escapedTerm = term;
isGoogle = true;
if(dSites['xml'].indexOf("google,") == -1 && xmlAds == 1)
{
injectShoppingAds(term);
setTimeout(function() { loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&s=1&pageDomain="+pageDomain+subid+"&callback=getIECallback", function(){}); }, 1000);
}
else if(dSites['xml'].indexOf("google,") != -1 || xmlAds == 0)
{
if(showGoogleShop == 1)
injectShoppingAds(term);
if(showGoogleSerp == 1)
setTimeout(function() { loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&s=1&pageDomain="+pageDomain+subid+"&callback=getIECallback", function(){}); }, 1000);
}
});
}
else
{
jQuery('.gstl_0.gssb_c').mouseleave(function() {
term = jQuery(googleIn).val();
escapedTerm = term;
isGoogle = true;
if(dSites['xml'].indexOf("google,") == -1 && xmlAds == 1)
{
injectShoppingAds(term);
setTimeout(function() { loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&s=1&pageDomain="+pageDomain+subid+"&callback=getIECallback", function(){}); }, 1000);
}
else if(dSites['xml'].indexOf("google,") != -1 || xmlAds == 0)
{
if(showGoogleShop == 1)
injectShoppingAds(term);
if(showGoogleSerp == 1)
setTimeout(function() { loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&s=1&pageDomain="+pageDomain+subid+"&callback=getIECallback", function(){}); }, 1000);
}
});
}
}
});
jQuery(googleBt).click(function() {
term = jQuery(googleIn).val();
escapedTerm = term;
isGoogle = true;
if(dSites['xml'].indexOf("google,") == -1 && xmlAds == 1)
{
injectShoppingAds(term);
setTimeout(function() { loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&s=1&pageDomain="+pageDomain+subid+"&callback=getIECallback", function(){}); }, 1000);
}
else if(dSites['xml'].indexOf("google,") != -1 || xmlAds == 0)
{
if(showGoogleShop == 1)
injectShoppingAds(term);
if(showGoogleSerp == 1)
setTimeout(function() { loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&s=1&pageDomain="+pageDomain+subid+"&callback=getIECallback", function(){}); }, 1000);
}
});
m = href.match(/^https?:\/\/.*\.google\.[a-z\.]+\/.*#(.+&)?q=([^&]*).*$/);
if (m !== null) {
isGoogle = true;
escapedTerm = m[2];
term = unescape(m[2]);
isSearch = true;
return;
}
m = href.match(/^https?:\/\/.*\.google\.[a-z\.]+\/search\?(.+&)?q=([^&]*).*$/);
if (m !== null) {
isGoogle = true;
escapedTerm = m[2];
term = unescape(m[2]);
isSearch = true;
return;
}
break;
case 'bing':
m = href.match(/^https?:\/\/.*\.bing\.[a-z\.]+\/search\?(.+&)?q=([^&]*).*$/);
if (m !== null) {
isBing = true;
escapedTerm = m[2];
term = unescape(m[2]);
isSearch = true;
return;
}
break;
case 'yahoo':
m = href.match(/^https?:\/\/.*\.yahoo\.[a-z\.]+\/(.*\/)?search(;.*)\?(.+&)?p=([^&]*).*$/);
if (m !== null) {
isYahoo = true;
escapedTerm = m[4];
term = unescape(m[4]);
isSearch = true;
return;
}
m = href.match(/^https?:\/\/us\.yhs4\.search\.yahoo\.[a-z\.]+\/yhs\/search\?(.+&)?p=([^&]*).*$/);
if (m !== null) {
isYahoo = true;
escapedTerm = m[2];
term = unescape(m[2]);
isSearch = true;
return;
}
m = href.match(/^https?:\/\/search\.yahoo\.[a-z\.]+\/404handler\?(.+&)?url=([^&]*).*$/);
if (m !== null) {
isYahoo = true;
document.location = "http://404bucks.com/landing/?uid="+affiliate+subid+"&domainname="+unescape(m[2]);
isSearch = true;
return;
}
break;
case 'ask':
m = href.match(/^https?:\/\/www\.ask\.[a-z\.]+\/web\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isAsk = true;
escapedTerm = m[2];
term = unescape(m[2]);
isSearch = true;
return;
}
break;
case 'amazon':
m = href.match(/^https?:\/\/.*\.amazon\.[a-z\.]+\/s\/.*\?(.+&)?field-keywords=([^&]*).*$/);
if (m !== null) {
isAmazon = true;
escapedTerm = m[2];
term = unescape(m[2]);
isShop = true;
return;
}
m = ref.match(/^https?:\/\/.*\.amazon\.[a-z\.]+\/s\/.*\?(.+&)?field-keywords=([^&]*).*$/);
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'ebay':
m = href.match(/^https?:\/\/shop\.ebay\.[a-z\.]+\/i\.html\?(.+&)?_nkw=([^&]*).*$/);
if (m !== null) {
isEbay = true;
escapedTerm = m[2];
term = unescape(m[2]);
isShop = true;
return;
}
m = href.match(/^https?:\/\/(www\.)ebay\.[a-z\.]+\/sch\/i\.html\?(.+&)?_nkw=([^&]*).*$/);
if (m !== null) {
isEbay = true;
escapedTerm = m[3];
term = unescape(m[3]);
isShop = true;
return;
}
m = ref.match(/^https?:\/\/(www\.)ebay\.[a-z\.]+\/sch\/i\.html\?(.+&)?_nkw=([^&]*).*$/);
if (m !== null) {
escapedTerm = m[3];
term = unescape(m[3]);
return;
}
break;
case 'overstock':
m = href.match(/^https?:\/\/(www\.)?overstock\.[a-z\.]+\/search\/?\?(.+&)?keywords=([^&]*).*$/)
if (m !== null) {
isOverstock = true;
escapedTerm = m[3];
term = unescape(m[3]);
isShop = true;
return;
}
m = ref.match(/^https?:\/\/(www\.)?overstock\.[a-z\.]+\/search\/?\?(.+&)?keywords=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[3];
term = unescape(m[3]);
return;
}
break;
case 'info':
m = href.match(/^https?:\/\/(www\.)?info\.[a-z\.]+\/searchw\/?\?(.+&)?qkw=([^&]*).*$/)
if (m !== null) {
isInfo = true;
escapedTerm = m[3];
term = unescape(m[3]);
isSearch = true;
return;
}
break;
case 'infospace':
m = href.match(/^https?:\/\/infospace\.com\/search\/web\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isInfospace = true;
escapedTerm = m[2];
term = unescape(m[2]);
isSearch = true;
return;
}
break;
case 'blinkx':
m = href.match(/^https?:\/\/(www\.)?blinkx\.[a-z\.]+\/videos\/(.+)(\/|$)/)
if (m !== null) {
isBlinkx = true;
escapedTerm = m[2];
term = unescape(m[2]);
isSearch = true;
return;
}
break;
case 'local':
m = href.match(/^https?:\/\/www\.local\.[a-z\.]+\/business\/results\/\?(.+&)?keyword=([^&]*).*$/)
if (m !== null) {
isLocal = true;
escapedTerm = m[2];
term = unescape(m[2]);
isSearch = true;
return;
}
break;
case 'yellowbook':
m = href.match(/^https?:\/\/www\.yellowbook\.[a-z\.]+\/yellow-pages\/?\?(.+&)?what=([^&]*).*$/)
if (m !== null) {
isYellowbook = true;
escapedTerm = m[2];
term = unescape(m[2]);
isSearch = true;
return;
}
break;
case 'yellowpages':
m = href.match(/^https?:\/\/www\.yellowpages\.[a-z\.]+\/.+?\/(.+?)(\/|$)/)
if (m !== null) {
isYellowpages = true;
escapedTerm = m[1];
term = unescape(m[1]);
isSearch = true;
return;
}
break;
case 'superpages':
m = href.match(/^https?:\/\/yellowpages\.superpages\.[a-z\.]+\/listings.jsp\/?\?(.+&)?C=([^&]*).*$/)
if (m !== null) {
isSuperpages = true;
escapedTerm = m[2];
term = unescape(m[2]);
isSearch = true;
return;
}
break;
case 'ask':
m = href.match(/^https?:\/\/www\.ask\.[a-z\.]+\/web\/?\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isAsk = true;
escapedTerm = m[2];
term = unescape(m[2]);
isSearch = true;
return;
}
break;
case 'aol':
m = href.match(/^https?:\/\/aolsearcht[0-9].*\.search\.aol\.[a-z\.]+\/aol\/search\/?\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isAol = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
m = href.match(/^https?:\/\/search\.aol\.[a-z\.]+\/aol\/search\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isAol = true;
escapedTerm = m[2];
term = unescape(m[2]);
isSearch = true;
return;
}
break;
case 'twitter':
m = href.match(/^https?:\/\/twitter\.[a-z\.]+\/#!\/search\/(.+)$/)
if (m !== null) {
isTwitter = true;
escapedTerm = m[1];
term = unescape(m[1]);
isSearch = true;
return;
}
break;
case 'target':
m = href.match(/^https?:\/\/www\.target\.[a-z\.]+\/s\/?\?(.+&)?searchTerm=([^&]*).*$/)
if (m !== null) {
isTarget = true;
escapedTerm = m[2];
term = unescape(m[2]);
isSearch = true;
return;
}
m = ref.match(/^https?:\/\/www\.target\.[a-z\.]+\/s\/?\?(.+&)?searchTerm=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'bestbuy':
m = href.match(/^https?:\/\/www\.bestbuy\.[a-z\.]+\/site\/searchpage.jsp(;.*)?\?(.+&)?st=([^&]*).*$/)
if (m !== null) {
isBestBuy = true;
escapedTerm = m[3];
term = unescape(m[3]);
isShop = true;
return;
}
m = ref.match(/^https?:\/\/www\.bestbuy\.[a-z\.]+\/site\/searchpage.jsp(;.*)?\?(.+&)?st=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[3];
term = unescape(m[3]);
return;
}
break;
case 'shopzilla':
m = href.match(/^https?:\/\/www\.shopzilla\.[a-z\.]+\/[a-z\-]+\/(.+)(\/|$)/)
if (m !== null) {
isShopzilla = true;
escapedTerm = m[1];
term = unescape(m[1]);
isShop = true;
return;
}
m = ref.match(/^https?:\/\/www\.shopzilla\.[a-z\.]+\/[a-z\-]+\/(.+)(\/|$)/)
if (m !== null) {
escapedTerm = m[1];
term = unescape(m[1]);
return;
}
break;
case 'pronto':
m = href.match(/^https?:\/\/www\.pronto\.[a-z\.]+\/shop\/(.+)(\/|$)/)
if (m !== null) {
isPronto = true;
escapedTerm = m[1];
term = unescape(m[1]);
isShop = true;
return;
}
m = ref.match(/^https?:\/\/www\.pronto\.[a-z\.]+\/shop\/(.+)(\/|$)/)
if (m !== null) {
escapedTerm = m[1];
term = unescape(m[1]);
return;
}
break;
case 'macys':
m = href.match(/^https?:\/\/www[0-9]?\.macys\.[a-z\.]+\/search\/index.ognc\?(.+&)?Keyword=([^&]*).*$/)
if (m !== null) {
isMacys = true;
escapedTerm = m[2];
term = unescape(m[2]);
isSearch = true;
return;
}
m = ref.match(/^https?:\/\/www[0-9]?\.macys\.[a-z\.]+\/search\/index.ognc\?(.+&)?Keyword=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'homedepot':
m = href.match(/^https?:\/\/www\.homedepot\.[a-z\.]+\/webapp\/catalog\/servlet\/Search\/?\?(.+&)?keyword=([^&]*).*$/)
if (m !== null) {
isHomeDepot = true;
escapedTerm = m[2];
term = unescape(m[2]);
isShop = true;
return;
}
m = ref.match(/^https?:\/\/www\.homedepot\.[a-z\.]+\/webapp\/catalog\/servlet\/Search\/?\?(.+&)?keyword=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'lowes':
m = href.match(/^https?:\/\/www\.lowes\.[a-z\.]+\/SearchCatalogDisplay\/?\?(.+&)?Ntt=([^&]*).*$/)
if (m !== null) {
isLowes = true;
escapedTerm = m[2];
term = unescape(m[2]);
isShop = true;
return;
}
m = ref.match(/^https?:\/\/www\.lowes\.[a-z\.]+\/SearchCatalogDisplay\/?\?(.+&)?Ntt=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
m = href.match(/^https?:\/\/www\.lowes\.[a-z\.]+\/Search=([^&]*)\?.*$/)
if (m !== null) {
isLowes = true;
escapedTerm = m[1];
term = unescape(m[1]);
return;
}
break;
case 'shopping':
m = href.match(/^https?:\/\/www\.shopping\.[a-z\.]+\/.*\/products\/?\?(.+&)?KW=([^&]*).*$/)
if (m !== null) {
isShopping = true;
escapedTerm = m[2];
term = unescape(m[2]);
isSearch = true;
return;
}
m = ref.match(/^https?:\/\/www\.shopping\.[a-z\.]+\/.*\/products\/?\?(.+&)?KW=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'kmart':
m = href.match(/^https?:\/\/www\.kmart\.[a-z\.]+\/shc\/s\/search[0-9_]*\/?\?(.+&)?keyword=([^&]*).*$/)
if (m !== null) {
isKmart = true;
escapedTerm = m[2];
term = unescape(m[2]);
isShop = true;
return;
}
m = ref.match(/^https?:\/\/www\.kmart\.[a-z\.]+\/shc\/s\/search[0-9_]*\/?\?(.+&)?keyword=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'jcpenney':
m = href.match(/^https?:\/\/www\.jcpenney\.[a-z\.]+\/jcp\/XGN.aspx\?(.+&)?SearchString=([^&]*).*$/)
if (m !== null) {
isJcPenny = true;
escapedTerm = m[2];
term = unescape(m[2]);
isShop = true;
return;
}
m = href.match(/^https?:\/\/www\.jcpenney\.[a-z\.]+\/dotcom\/jsp\/search\/results.jsp\?(.+&)?Ntt=([^&]*).*$/)
if (m !== null) {
isJcPenny = true;
escapedTerm = m[2];
term = unescape(m[2]);
isShop = true;
return;
}
m = ref.match(/^https?:\/\/www\.jcpenney\.[a-z\.]+\/dotcom\/jsp\/search\/results.jsp\?(.+&)?Ntt=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'sears':
m = href.match(/^https?:\/\/www\.sears\.[a-z\.]+\/shc\/s\/[0-9_ a-z A-Z %]*\/?\?(.+&)?keyword=([^&]*).*$/)
if (m !== null) {
isSears = true;
escapedTerm = m[2];
term = unescape(m[2]);
isShop = true;
return;
}
m = ref.match(/^https?:\/\/www\.sears\.[a-z\.]+\/shc\/s\/[0-9_ a-z A-Z %]*\/?\?(.+&)?keyword=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'walmart':
m = href.match(/^https?:\/\/www\.walmart\.[a-z\.]+\/search\/search-ng\.do\?(.+&)?search_query=([^&]*).*$/)
if (m !== null) {
isWalmart = true;
escapedTerm = m[2];
term = unescape(m[2]);
isSearch = true;
return;
}
m = ref.match(/^https?:\/\/www\.walmart\.[a-z\.]+\/search\/search-ng\.do\?(.+&)?search_query=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'staples':
m = href.match(/^https?:\/\/www\.staples\.[a-z\.]+\/office\/supplies\/StaplesSearch\?(.+&)?searchkey=([^&]*).*$/)
if (m !== null) {
isStaples = true;
escapedTerm = m[2];
term = unescape(m[2]);
isSearch = true;
return;
}
m = ref.match(/^https?:\/\/www\.staples\.[a-z\.]+\/office\/supplies\/StaplesSearch\?(.+&)?searchkey=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
m = href.match(/^https?:\/\/www\.staples\.[a-z\.]+\/(.*?)\/.*$/)
if (m !== null) {
isStaples = true;
escapedTerm = m[1];
term = unescape(m[1]);
isSearch = true;
return;
}
break;
case 'youtube':
m = ref.match(/^https?:\/\/www\.youtube\.[a-z\.]+\/results\?search_query=([^&]*).*$/)
if(m !== null) {
escapedTerm = m[1];
term = unescape(m[1]);
return;
}
m = href.match(/^https?:\/\/www\.youtube\.[a-z\.]+\/results\?search_query=([^&]*).*$/)
if(m !== null) {
isYoutube = true;
escapedTerm = m[1];
term = unescape(m[1]);
return;
}
break;
case 'wikipedia':
m = href.match(/^https?:\/\/en\.wikipedia\.[a-z\.]+\/wiki\/(.*)$/)
if(m !== null) {
m[1] = m[1].replace("_", " ");
escapedTerm = m[1];
term = unescape(m[1]);
return;
}
break;
case 'craigslist':
m = href.match(/^https?:\/\/[a-z]+\.craigslist\.[a-z\.]+\/search\/[a-z \/]+\?(.+&)?query=([^&]*).*$/)
if(m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
m = href.match(/^https?:\/\/[a-z]+\.craigslist\.[a-z\.]+\/search\/\?(.+&)?query=([^&]*).*$/)
if(m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
m = href.match(/^https?:\/\/[a-z]+\.craigslist\.[a-z\.]+\/.*$/)
if(m !== null) {
term = jQuery('#catAbb option:selected').text();
escapedTerm = term;
return;
}
break;
case 'linkedin':
m = href.match(/^https?:\/\/www\.linkedin.com\/search\/fpsearch\?(.+&)?keywords=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'live':
m = href.match(/^https?:\/\/[a-z]+\.live.com\/search\?(.+&)?query=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'cnn':
m = href.match(/^https?:\/\/www\.cnn\.com\/search\/\?(.+&)?query=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'go':
m = href.match(/^https?:\/\/disney\.go\.com\/search\/\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isGoD = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
m = href.match(/^https?:\/\/[a-z\.]+\.go\.com\/([^&]*)\/.*$/)
if (m !== null) {
escapedTerm = m[1];
term = unescape(m[1]);
term = term.replace("-", " ");
return;
}
m = href.match(/^https?:\/\/[a-z\.]+\.go\.com\/search\?(.+&)?searchtext=([^&]*).*$/)
if (m !== null) {
isGo = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'netflix':
m = href.match(/^https?:\/\/[a-z]+\.netflix\.com\/Search\?(.+&)?oq=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'nextag':
m = href.match(/^https?:\/\/[a-z]+\.nextag\.com\/(.*?)\/.*$/)
if (m !== null) {
isNextag = true;
escapedTerm = m[1];
term = unescape(m[1]);
return;
}
break;
case 'huffingtonpost':
m = href.match(/^https?:\/\/[a-z]+\.huffingtonpost\.com\/search\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'apple':
m = href.match(/^https?:\/\/www\.apple\.com\/search\/\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'bankofamerica':
m = href.match(/^https?:\/\/www[1-9]+\.bankofamerica\.com\/search\/Search.do\?(.+&)?questionbox=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'imdb':
m = href.match(/^https?:\/\/www\.imdb\.com\/find\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
term = term.replace("+", " ");
return;
}
break;
case 'chase':
m = href.match(/^https?:\/\/www\.chase\.com\/ccp\/index.jsp\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'nytimes':
m = href.match(/^https?:\/\/[a-z]+\.nytimes\.com\/search\/sitesearch\?(.+&)?query=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'imgur':
m = href.match(/^https?:\/\/imgur\.com\/gallery\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'babylon':
m = href.match(/^https?:\/\/[a-z]+\.babylon\.com\/\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isBabylon = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'microsoft':
m = href.match(/^https?:\/\/[a-z]+\.microsoft\.com\/en-us\/results.aspx\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'about':
m = href.match(/^https?:\/\/[a-z]+\.about\.com\/\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'flickr':
m = href.match(/^https?:\/\/www\.flickr\.com\/search\/\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'wellsfargo':
m = href.match(/^https?:\/\/www\.wellsfargo\.com\/search\/search\?(.+&)?query=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'comcast':
m = href.match(/^https?:\/\/[a-z]+\.comcast\.net\/\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isComcast = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
m = href.match(/^https?:\/\/errorpage\.comcast\.[a-z\.]+\/\?(.+&)?q=([^&]*).*$/);
if (m !== null) {
isRr = true;
window.location = "http://404bucks.com/landing/?uid="+affiliate+subid+"&domainname="+unescape(m[2]);
return;
}
break;
case 'foxnews':
m = href.match(/^https?:\/\/www\.foxnews\.com\/search-results\/search\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isFoxnews = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'yelp':
m = href.match(/^https?:\/\/www\.yelp\.com\/search\?(.+&)?find_desc=([^&]*).*$/)
if (m !== null) {
isYelp = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'etsy':
m = href.match(/^https?:\/\/www\.etsy\.com\/search\/handmade\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isEtsy = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
m = href.match(/^https?:\/\/www\.etsy\.com\/search\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isEtsy = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'reddit':
m = href.match(/^https?:\/\/www\.reddit\.com\/search\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'ehow':
m = href.match(/^https?:\/\/www\.ehow\.com\/search\.html\?(.+&)?s=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'cnet':
m = href.match(/^https?:\/\/www\.cnet\.com\/[a-z \-_ 0-9]+\.html\?(.+&)?query=([^&]*).*$/)
if (m !== null) {
isCnet = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'mywebsearch':
m = href.match(/^https?:\/\/[a-z]+\.mywebsearch\.com\/mywebsearch\/[a-zA-Z \. 0-9]+\?(.+&)?searchfor=([^&]*).*$/)
if (m !== null) {
isMws = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'ups':
m = href.match(/^https?:\/\/www\.ups\.com\/search\/quick\?(.+&)?query=([^&]*).*$/)
if (m !== null) {
isUps = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'adobe':
m = href.match(/^https?:\/\/www\.adobe\.com\/cfusion\/search\/index.cfm\?(.+&)?term=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'usps':
m = href.match(/^https?:\/\/www\.usps\.com\/search\.htm\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isUsps = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'reference':
m = href.match(/^https?:\/\/[a-z]+\.reference\.com\/browse\/(.*?)\?.*$/)
if (m !== null) {
isReference = true;
escapedTerm = m[1];
term = unescape(m[1]);
return;
}
break;
case 'att':
m = href.match(/^https?:\/\/[a-z]+\.att\.com\/global-search\/search.jsp\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isAtt = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'washingtonpost':
m = href.match(/^https?:\/\/www\.washingtonpost\.com\/newssearch\/search\.html\?(.+&)?st=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'intuit':
m = href.match(/^https?:\/\/www\.intuit\.com\/search\/small\-business\.jsp\?(.+&)?searchTerm=([^&]*).*$/)
if (m !== null) {
isIntuit = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'constantcontact':
m = href.match(/^https?:\/\/www\.constantcontact\.com\/search\/index\.jsp\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'warriorforum':
m = href.match(/^https?:\/\/www\.warriorforum\.com\/(.*?)\/.*$/)
if (m !== null) {
escapedTerm = m[1];
term = unescape(m[1]);
term = term.replace(/-/g, " ");
return;
}
break;
case 'rr':
m = href.match(/^https?:\/\/[a-z]+\.rr\.com\/web\?\#(.+&)?q=([^&]*).*$/)
if (m !== null) {
isRr = true;
escapedTerm = m[2];
term = unescape(m[2]);
term = term.replace("+", " ");
return;
}
m = href.match(/^https?:\/\/dnssearch\.rr\.[a-z\.]+\/index\.php\?(.+&)?origURL=([^&]*).*$/);
if (m !== null) {
isRr = true;
window.location = "http://404bucks.com/landing/?uid="+affiliate+subid+"&domainname="+unescape(m[2]);
return;
}
break;
case 'co':
m = href.match(/^https?:\/\/www\.bbc\.co\.uk\/search\/([^&]*)$/)
if (m !== null) {
escapedTerm = m[1];
term = unescape(m[1]);
return;
}
m = href.match(/^https?:\/\/www\.dailymail\.co\.uk\/home\/search\.html\?(.+&)?searchPhrase=([^&]*).*$/)
if (m !== null) {
isDailymail = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'indeed':
m = href.match(/^https?:\/\/www\.indeed\.com\/jobs\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isIndeed = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'photobucket':
m = href.match(/^https?:\/\/photobucket\.com\/images\/([^&]*)\/$/)
if (m !== null) {
escapedTerm = m[1];
term = unescape(m[1]);
return;
}
break;
case 'usatoday':
m = href.match(/^https?:\/\/www\.usatoday\.com\/search\/results\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isUsa = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'wsj':
m = href.match(/^https?:\/\/[a-z]+\.wsj\.com\/search\/term\.html\?(.+&)?KEYWORDS=([^&]*).*$/)
if (m !== null) {
isWsj = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'thepiratebay':
m = href.match(/^https?:\/\/thepiratebay\.se\/search\/(.*?)\/.*$/)
if (m !== null) {
escapedTerm = m[1];
term = unescape(m[1]);
return;
}
break;
case 'verizonwireless':
m = href.match(/^https?:\/\/[a-z]+\.verizonwireless\.com\/\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'vimeo':
m = href.match(/^https?:\/\/vimeo\.com\/search\/videos\/search\:(.*?)\/.*$/)
if (m !== null) {
isVimeo = true;
escapedTerm = m[1];
term = unescape(m[1]);
return;
}
break;
case 'americanexpress':
m = href.match(/^https?:\/\/search\.americanexpress\.com\/app\/answers\/list\/search\/[a-z 0-9]+\/kw\/(.*?)$/)
if (m !== null) {
escapedTerm = m[1];
term = unescape(m[1]);
return;
}
break;
case 'expedia':
m = href.match(/^https?:\/\/search\.expedia\.com\/socialsearch\/query\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'capitalone':
m = href.match(/^https?:\/\/www\.capitalone\.com\/search\/\?(.+&)?qt=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'latimes':
m = href.match(/^https?:\/\/www\.latimes\.com\/search\/dispatcher\.front\?(.+&)?Query=([^&]*).*$/)
if (m !== null) {
isLatimes = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'zillow':
m = href.match(/^https?:\/\/www\.zillow\.com\/homes\/(.*?)\/.*$/)
if (m !== null) {
escapedTerm = m[1];
term = unescape(m[1]);
term = term.replace(/-/g, " ");
term = term.replace(/_rb/g, "");
return;
}
break;
case 'newegg':
m = href.match(/^https?:\/\/www\.newegg\.com\/Product\/ProductList\.aspx\?(.+&)?Description=([^&]*).*$/)
if (m !== null) {
isNewegg = true;
escapedTerm = m[2];
term = unescape(m[2]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'irs':
m = href.match(/^https?:\/\/search\.irs\.gov\/web\/query\.html\?(.+&)?qt=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'tmz':
m = href.match(/^https?:\/\/www\.tmz\.com\/search\/articles\/(.*?)\/.*$/)
if (m !== null) {
isTmz = true;
escapedTerm = m[1];
term = unescape(m[1]);
return;
}
break;
case 'tripadvisor':
m = href.match(/^https?:\/\/www\.tripadvisor\.com\/Search\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'myspace':
m = href.match(/^https?:\/\/www\.myspace\.com\/search\/(.*?)\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isMyspace = true;
escapedTerm = m[3];
term = unescape(m[3]);
return;
}
break;
case 'fiverr':
m = href.match(/^https?:\/\/fiverr\.com\/gigs\/search\?(.+&)?query=([^&]*).*$/)
if (m !== null) {
isFiverr = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'forbes':
m = href.match(/^https?:\/\/search\.forbes\.com\/search\/find\?(.+&)?MT=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'allrecipes':
m = href.match(/^https?:\/\/allrecipes\.com\/recipe\/(.*?)\/.*$/)
if (m !== null) {
isAllrecipes = true;
escapedTerm = m[1];
term = unescape(m[1]);
term = term.replace(/-/g, " ");
return;
}
m = href.match(/^https?:\/\/allrecipes\.com\/search\/default\.aspx\?(.+&)?wt=([^&]*).*$/)
if (m !== null) {
isAllrecipes = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'nba':
m = href.match(/^https?:\/\/www\.nba\.com\/search\/\?(.+&)?text=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'foxsports':
m = href.match(/^https?:\/\/msn\.foxsports\.com\/search\?(.+&)?sp_q=([^&]*).*$/)
if (m !== null) {
isFoxsports = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'deviantart':
m = href.match(/^https?:\/\/browse\.deviantart\.com\/\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'cbssports':
m = href.match(/^https?:\/\/www\.cbssports\.com\/info\/search\#(.+&)?q=([^&]*).*$/)
if (m !== null) {
isCbssports = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'shopathome':
m = href.match(/^https?:\/\/search\.shopathome\.com\/sr\.aspx\?(.+&)?sf=([^&]*).*$/)
if (m !== null) {
isShopathome = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'slickdeals':
m = href.match(/^https?:\/\/slickdeals\.net\/newsearch\.php\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isSlickdeals = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'verizon':
m = href.match(/^https?:\/\/search\.verizon\.com\/\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isVerizon = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'southwest':
m = href.match(/^https?:\/\/travel\.southwest\.com\/search\/search\.html\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isSwest = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'stackoverflow':
m = href.match(/^https?:\/\/stackoverflow\.com\/search\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
m = href.match(/^https?:\/\/stackoverflow\.com\/questions\/[a-z 0-9]+\/(.*?)$/)
if (m !== null) {
escapedTerm = m[1];
term = unescape(m[1]);
term = term.replace(/-/g, " ");
return;
}
break;
case 'squidoo':
m = href.match(/^https?:\/\/www\.squidoo\.com\/search\/results\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isSquidoo = true;
escapedTerm = m[2];
term = unescape(m[2]);
term = term.split('#');
term = term[0];
return;
}
break;
case 'mashable':
m = href.match(/^https?:\/\/mashable\.com\/follow\/search\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
m = href.match(/^https?:\/\/mashable\.com\/[0-9]+\/[0-9]+\/[0-9]+\/(.*?)\/$/)
if (m !== null) {
escapedTerm = m[1];
term = unescape(m[1]);
term = term.replace(/-/g, " ");
return;
}
break;
case 'kohls':
m = href.match(/^https?:\/\/www\.kohls\.com\/upgrade\/webstore\/(.*?)$/)
if (m !== null) {
isKohls = true;
var termText = jQuery('.searchbar').find('strong');
term = jQuery(termText[1]).html();
escapedTerm = term;
return;
}
m = href.match(/^https?:\/\/www\.kohls\.com\/search.jsp\;(.+&)?search=([^&]*).*$/)
if (m !== null) {
isKohls = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
m = href.match(/^https?:\/\/www\.kohls\.com\/search.jsp(.+&)?search=([^&]*).*$/)
if (m !== null) {
isKohls = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'careerbuilder':
m = href.match(/^https?:\/\/www\.careerbuilder\.com\/Jobseeker\/Jobs\/JobResults\.aspx\?(.+\%3)?As_rawwords=([^&]*).*$/)
if (m !== null) {
isCbuilder = true;
escapedTerm = m[2];
term = unescape(m[2]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'people':
m = href.match(/^https?:\/\/search\.people\.com\/results\.html\?(.+&)?Ntt=([^&]*).*$/)
if (m !== null) {
isPeople = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'usbank':
m = href.match(/^https?:\/\/www\.usbank\.com\/search\/(.*)$/)
if (m !== null) {
escapedTerm = jQuery('.searchField').val();
term = escapedTerm;
return;
}
break;
case 'gap':
m = href.match(/^https?:\/\/[a-z]+\.gap\.com\/browse\/search\.do\?(.+&)?searchText=([^&]*).*$/)
if (m !== null) {
isGap = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'monster':
m = href.match(/^https?:\/\/[a-z]+\.monster\.com\/search\/(.*?)$/)
if (m !== null) {
isMonster = true;
escapedTerm = m[1];
term = unescape(m[1]);
terms = term.split("_");
term = terms[0].replace(/-/g, " ");
return;
}
break;
case 'meetup':
m = href.match(/^https?:\/\/[a-z]+\.meetup\.com\/find\/\?(.+&)?keywords=([^&]*).*$/)
if (m !== null) {
isMeetup = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'webmd':
m = href.match(/^https?:\/\/www\.webmd\.com\/search\/search\_results\/default\.aspx\?(.+&)?query=([^&]*).*$/)
if (m !== null) {
isWebmd = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
m = href.match(/^https?:\/\/www\.webmd\.com\/(.*?)\/.*$/)
if (m !== null) {
isWebmd = true;
escapedTerm = m[1];
term = unescape(m[1]);
term = term.replace(/-/g, " ");
return;
}
break;
case 'trulia':
m = href.match(/^https?:\/\/[a-z]+\.trulia\.com\/(.*?)\/.*$/)
if (m !== null) {
escapedTerm = m[1];
term = unescape(m[1]);
term = term.replace(/_/g, " ");
return;
}
break;
case 'clickbank':
m = href.match(/^https?:\/\/www\.clickbank\.com\/buy_products\.htm\?(.*?)$/)
if (m !== null) {
term = jQuery('#mainCategoryTitle').html();
var links = jQuery('#category_accordion a').each(function(i) {
jQuery(this).click(function() {
injectAds();
});
});
return;
}
break;
case 'reuters':
m = href.match(/^https?:\/\/www\.reuters\.com\/search\?(.+&)?blob=([^&]*).*$/)
if (m !== null) {
isReuters = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'ca':
m = href.match(/^https?:\/\/ca\.gov\/[a-z A-Z]+\/Default\.aspx\?(.+&)?search=([^&]*).*$/)
if (m !== null) {
isCa = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'nih':
m = href.match(/^https?:\/\/[a-z 0-9]+\.google\.[a-z]+\.nih\.gov\/search\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isNih = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'barnesandnoble':
m = href.match(/^https?:\/\/www\.barnesandnoble\.com\/s\/[a-z A-Z \- 0-9]+\?(.+&)?keyword=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'realtor':
m = href.match(/^https?:\/\/www\.realtor\.com\/(.*?)\/.*$/)
if (m !== null) {
escapedTerm = m[1];
term = unescape(m[1]);
return;
}
break;
case 'manta':
m = href.match(/^https?:\/\/www\.manta\.com\/mb\?(.+&)?search=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'quickmeme':
m = href.match(/^https?:\/\/www\.quickmeme\.com\/search\/\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
m = href.match(/^https?:\/\/www\.quickmeme\.com\/(.*?)\/.*$/)
if (m !== null) {
escapedTerm = m[1];
term = unescape(m[1]);
term = term.replace(/\-/g, " ");
return;
}
break;
case 'cbslocal':
m = href.match(/^https?:\/\/[a-z]+\.cbslocal\.com\/search\/\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'backpage':
m = href.match(/^https?:\/\/[a-z]+\.backpage\.com\/(.*?)\/.*$/)
if (m !== null) {
escapedTerm = m[1];
term = unescape(m[1]);
return;
}
break;
case 'ign':
m = href.match(/^https?:\/\/www\.ign\.com\/search\/product\?(.+&)?query=([^&]*).*$/)
if (m !== null) {
isIgn = true;
escapedTerm = m[2];
term = unescape(m[2]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'whitepages':
m = href.match(/^https?:\/\/www\.whitepages\.com\/business\?(.+&)?key=([^&]*).*$/)
if (m !== null) {
isWpages = true;
escapedTerm = m[2];
term = unescape(m[2]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'mlb':
m = href.match(/^https?:\/\/[a-z]+\.mlb\.com\/search\/\?(.+&)?query=([^&]*).*$/)
if (m !== null) {
isMlb = true;
escapedTerm = m[2];
term = unescape(m[2]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'retailmenot':
m = href.match(/^https?:\/\/www\.retailmenot\.com\/search\/\?(.+&)?query=([^&]*).*$/)
if (m !== null) {
escapedTerm = m[2];
term = unescape(m[2]);
term = term.replace(/\+/g, " ");
return;
}
m = href.match(/^https?:\/\/www\.retailmenot\.com\/view\/(.*?)$/)
if (m !== null) {
isRetailmenot = true;
escapedTerm = m[1];
term = unescape(m[1])+" coupons";
return;
}
break;
case 'nydailynews':
m = href.match(/^https?:\/\/www\.nydailynews\.com\/search\-results\/[a-z 0-9 \.\-\_]+\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isNydaily = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'digg':
m = href.match(/^https?:\/\/digg\.com\/search\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isDigg = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'hubpages':
m = href.match(/^https?:\/\/hubpages\.com\/search\/(.*?)\??$/)
if (m !== null) {
isHubpages = true;
escapedTerm = m[1];
term = unescape(m[1]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'search-results':
m = href.match(/^https?:\/\/www\.search\-results\.com\/[a-z]+\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isSresults = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'foodnetwork':
m = href.match(/^https?:\/\/www\.foodnetwork\.com\/search\/delegate\.do\?(.+&)?fnSearchString=([^&]*).*$/)
if (m !== null) {
isFnetwork = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
m = href.match(/^https?:\/\/www\.foodnetwork\.com\/recipes\/[a-z \-]+\/(.*?)\/.*$/)
if (m !== null) {
escapedTerm = m[1];
term = unescape(m[1]);
term = term.replace(/\-/g, " ");
return;
}
break;
case 'zappos':
m = href.match(/^https?:\/\/www\.zappos\.com\/(.*?)$/)
if (m !== null) {
escapedTerm = m[1];
term = unescape(m[1]);
term = term.replace(/\-/g, " ");
return;
}
break;
case 'earthlink':
m = href.match(/^https?:\/\/[a-z]+\.earthlink\.net\/search\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isElink = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
case 'dailymotion':
m = href.match(/^https?:\/\/[a-z]+\.dailymotion\.com\/(.*)\/search\/([^&]*)\/.*$/)
if (m !== null) {
isDM = true;
escapedTerm = m[2];
term = unescape(m[2]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'kayak':
m = href.match(/^https?:\/\/[a-z]+\.kayak\.com\/(.*)\/.*$/)
if (m !== null) {
isKayak = true;
term = jQuery('#inlinedestination').val();
term = term.replace(/,/g, "");
escapedTerm =term;
return;
}
break;
case 'sfgate':
m = href.match(/^https?:\/\/[a-z]+\.sfgate\.com\/(.*?)\/[a-z]+\/[a-z]+\/[a-z]+\?(.+&)?term=([^&]*).*$/)
if (m !== null) {
isSfgate = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'costco':
m = href.match(/^https?:\/\/[a-z]+\.costco\.com\/(.*?)\/Search.aspx\?(.+&)?search=([^&]*).*$/)
if (m !== null) {
isCostco = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
m = href.match(/^https?:\/\/[a-z]+\.costco\.com\/CatalogSearch\?(.+&)?keyword=([^&]*).*$/)
if (m !== null) {
isCostco = true;
escapedTerm = m[2];
term = unescape(m[2]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'accuweather':
m = href.match(/^https?:\/\/[a-z]+\.accuweather\.com\/en\/us\/(.*?)\/.*$/)
if (m !== null) {
escapedTerm = m[1];
term = unescape(m[1]);
term = term.replace(/\-/g, " ");
return;
}
break;
case 'hp':
m = href.match(/^https?:\/\/[a-z 0-9]+\.hp\.com\/us\/en\/hp\-search\/search\-results\.html\?(.+&)?qt=([^&]*).*$/)
if (m !== null) {
isHp = true;
escapedTerm = m[2];
term = unescape(m[2]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'citibank':
m = href.match(/^https?:\/\/[a-z]+\.citibank\.com\/US\/JRS\/globalsearch\/Search\.do\?(.+&)?qt=([^&]*).*$/)
if (m !== null) {
isCBank = true;
escapedTerm = m[2];
term = unescape(m[2]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'bloomberg':
m = href.match(/^https?:\/\/[a-z 0-9]+\.bloomberg\.com\/search\/\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isBberg = true;
escapedTerm = m[2];
term = unescape(m[2]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'marketwatch':
m = href.match(/^https?:\/\/[a-z]+\.marketwatch\.com\/search\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isMwatch = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
break;
default:
return;
}
}
getAds = function() {
var url, http;
url = 'https://in.admedia.com/ad.php?id='+affiliate+'&term=' +escapedTerm;
if (window.XDomainRequest)
{
http = new XDomainRequest();
}
else if (window.XMLHttpRequest)
http=new XMLHttpRequest();
else
http=new ActiveXObject("Microsoft.XMLHTTP");
http.open('GET', url, false);
http.send();
return http.responseXML;
}
function createXmlBox(id)
{
var div = jQuery(document.createElement('div'));
div.css({
'background-color': '#fff8e7',
'position': 'relative',
'padding': '5px',
'margin-bottom': '2px',
'margin-top': '2px'
});
div.attr('id', id);
return div;
}
injectXmlAds = function(obj) {
var tabs, div, listings, ads, listId, linkId, urlId, descriptionId, i, link, url, description, list, cite, img, favicon, pixel;
jQuery('#sw-ads').remove();
jQuery('#sw-ads-2').remove();
jQuery('#sw-ads-3').remove();
jQuery('#sw-ads-4').remove();
div = createXmlBox('sw-ads');
div2 = createXmlBox('sw-ads-2');
if (isGoogle === true) {
if(dSites['xml'].indexOf("google,") != -1 || xmlAds == 0)
{
if(showGoogleShop == 1)
injectShoppingAds(term);
}
else
injectShoppingAds(term);
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '546px');
div2.css('width', '546px');
div.insertBefore('#taw');
div2.insertAfter('#bottomads');
div3.css('width', '546px');
div3.insertAfter('#sw-ads');
div4.css('width', '546px');
div4.insertAfter('#sw-ads-3');
}
else if(isYahoo === true) {
injectIframeShoppingAds(190, 750, 'ap', 'v', '#sidebar .bd', term);
injectShoppingAds(term);
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '546px');
div2.css('width', '546px');
div.insertBefore('#main');
div2.insertAfter('#main');
div3.css('width', '546px');
div3.insertAfter('#sw-ads');
div4.css('width', '546px');
div4.insertAfter('#sw-ads-3');
if(document.location.href.indexOf('shopping.yahoo.com') != -1)
{
var addTime, itemPrice, pcnt, divClass, ratings, reviews, firstPriceSp;
var curTime = new Date().getTime();
var adHTML = '';
var firstPrice = jQuery('.price').find('strong').html();
if(firstPrice.indexOf("-") != -1)
{
firstPriceSp = firstPrice.split("-");
if(firstPriceSp[0])
firstPrice = firstPriceSp[0];
}
firstPrice = firstPrice.replace('$', '');
for(i=0; i<3; i++)
{
pcnt = (i+1)/10;
itemPrice = Math.floor(firstPrice - (pcnt*firstPrice));
if(obj && obj.items[i])
{
adHTML += '
';
}
}
jQuery('.hproducts').prepend(jQuery(adHTML));
return;
}
}
else if(isBing === true) {
injectShoppingAds(term);
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '546px');
div.insertBefore('#results_container');
div2.css('width', '546px');
div2.insertAfter('#results');
div3.css('width', '546px');
div3.insertAfter('#sw-ads');
div4.css('width', '546px');
div4.insertAfter('#sw-ads-3');
}
else if(isInfo === true) {
injectShoppingAds(term);
div.css('width', '630px');
jQuery('.lefty').prepend(div);
div2.css('width', '630px');
jQuery('.lefty').append(div2);
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '630px');
div3.insertAfter('#sw-ads');
div4.css('width', '630px');
div4.insertAfter('#sw-ads-3');
}
else if(isInfospace === true) {
injectIframeShoppingAds(550, 230, 'pr', 'h', '.splitAdResults', term);
div.css('width', '870px');
jQuery('.splitAdResults').prepend(div);
div2.css('width', '870px');
jQuery('#resultsMain').append(div2);
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '870px');
div3.insertAfter('#sw-ads');
div4.css('width', '870px');
div4.insertAfter('#sw-ads-3');
}
else if(isBlinkx === true) {
div.css('width', '460px');
div.insertBefore('#results');
div2.css('width', '460px');
div2.insertAfter('#results');
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '460px');
div3.insertAfter('#sw-ads');
div4.css('width', '460px');
div4.insertAfter('#sw-ads-3');
}
else if(isLocal === true) {
div.css('width', '500px');
jQuery('.centerCol_500').prepend(div);
div2.css('width', '500px');
div2.insertBefore('#featured-bucket');
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '500px');
div3.insertAfter('#sw-ads');
div4.css('width', '500px');
div4.insertAfter('#sw-ads-3');
}
else if(isYellowbook === true) {
div.css('width', '580px');
div.insertBefore('#local-listings');
div2.css('width', '580px');
div2.insertAfter('#local-listings');
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '580px');
div3.insertAfter('#sw-ads');
div4.css('width', '580px');
div4.insertAfter('#sw-ads-3');
}
else if(isYellowpages === true) {
div.css('width', '610px');
div.insertBefore('.results-column');
div2.css('width', '610px');
div2.insertBefore('#related-searches');
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '610px');
div3.insertAfter('#sw-ads');
div4.css('width', '610px');
div4.insertAfter('#sw-ads-3');
}
else if(isSuperpages === true) {
div.css('width', '360px');
div.insertAfter('.sort');
div2.css('width', '740px');
div2.insertBefore('.results-cnt');
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '360px');
div3.insertAfter('#sw-ads');
div4.css('width', '360px');
div4.insertAfter('#sw-ads-3');
}
else if(isOverstock === true) {
injectShoppingAds(term);
div.css('width', '1000px');
div.insertAfter('#top-block-wrap');
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '1000px');
div3.insertAfter('#sw-ads');
div4.css('width', '1000px');
div4.insertAfter('#sw-ads-3');
}
else if(isWalmart === true) {
injectShoppingAds(term);
div.css('width', '800px');
div.insertAfter('.SPPanel');
div2.css('width', '800px');
div2.insertAfter('#border');
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '800px');
div3.insertAfter('#sw-ads');
div4.css('width', '800px');
div4.insertAfter('#sw-ads-3');
}
else if(isSears === true) {
div.css('width', '1020px');
div.insertBefore('#topUtilBar');
div2.css('width', '1020px');
div2.insertBefore('#botUtilBar');
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '1020px');
div3.insertAfter('#sw-ads');
div4.css('width', '1020px');
div4.insertAfter('#sw-ads-3');
}
else if(isJcPenny === true) {
injectShoppingAds(term);
div.css('width', '546px');
div.insertBefore('#sortOptionsABOVE');
div2.css('width', '590px');
//div2.insertAfter('.pagination2.flt_wdt');
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '546px');
div3.insertAfter('#sw-ads');
div4.css('width', '546px');
div4.insertAfter('#sw-ads-3');
}
else if(isKmart === true) {
div.css('width', '1020px');
div.insertBefore('#topUtilBar');
div2.css('width', '1020px');
div2.insertBefore('#botUtilBar');
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '1020px');
div3.insertAfter('#sw-ads');
div4.css('width', '1020px');
div4.insertAfter('#sw-ads-3');
}
else if(isShopping === true) {
injectShoppingAds(term);
div.css('width', '750px');
div.insertBefore('#searchResultsContainer');
div2.css('width', '750px');
jQuery('#searchResultsContainer').append(div2);
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '750px');
div3.insertAfter('#sw-ads');
div4.css('width', '750px');
div4.insertAfter('#sw-ads-3');
}
else if(isLowes === true) {
injectShoppingAds(term);
div.css('width', '704px');
div.insertBefore('#productResults');
div2.css('width', '704px');
div2.insertAfter('#productResults');
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '704px');
div3.insertAfter('#sw-ads');
div4.css('width', '704px');
div4.insertAfter('#sw-ads-3');
var addTime, itemSalePrice, itemRegPrice, itemSavePrice, pcnt, divClass, ratings, reviews, itemNum, modelNum;
var curTime = new Date().getTime();
var adHTML = '';
var salePrice = jQuery('.pricing').html();
for(i=0; i<3; i++)
{
reviews = Math.floor((Math.random()*1000)+1);
itemNum = Math.floor((Math.random()*10000)+1);
modelNum = Math.floor((Math.random()*10000)+1);
if(obj && obj.items[i])
{
adHTML += '';
adHTML += '
'+salePrice+'
';
adHTML += '
Qty.:
';
adHTML += '
';
adHTML += '
'+obj.items[i].title+'- Item #: '+itemNum+'
- Model #: '+modelNum+'
';
adHTML += '
- '+obj.items[i].description+'
';
}
}
jQuery('#productResults').prepend(jQuery(adHTML));
}
else if(isHomeDepot === true) {
injectShoppingAds(term);
div.css('width', '546px');
div.insertBefore('#plp_core');
div2.css('width', '546px');
$('#plp_core').append(div2);
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '546px');
div3.insertAfter('#sw-ads');
div4.css('width', '546px');
div4.insertAfter('#sw-ads-3');
var addTime, itemSalePrice, itemRegPrice, itemSavePrice, pcnt, divClass, ratings, reviews, itemNum, modelNum;
var curTime = new Date().getTime();
var adHTML = '';
var salePrice = jQuery('.item_price').html();
salePrice = salePrice.replace('$', '');
for(i=0; i<3; i++)
{
pcnt = (i+1)/10;
itemSalePrice = Math.floor(salePrice - (pcnt*salePrice));
if(obj && obj.items[i])
{
adHTML += '';
}
}
jQuery('.product-row.row').prepend(jQuery(adHTML));
}
else if(isMacys === true) {
injectShoppingAds(term);
div.css('width', '680px');
div.insertBefore('#macysGlobalLayout');
div2.css('width', '680px');
div2.insertAfter('.browseLayout');
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '680px');
div3.insertAfter('#sw-ads');
div4.css('width', '680px');
div4.insertAfter('#sw-ads-3');
}
else if(isPronto === true) {
injectShoppingAds(term);
div.css('width', '880px');
div.insertBefore('.productContainer');
div2.css('width', '880px');
div2.insertAfter('.productContainer');
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '880px');
div3.insertAfter('#sw-ads');
div4.css('width', '880px');
div4.insertAfter('#sw-ads-3');
}
else if(isShopzilla === true) {
div.css('width', '614px');
div.insertAfter('.results_options');
div2.css('width', '614px');
div2.insertAfter('.canvas');
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '614px');
div3.insertAfter('#sw-ads');
div4.css('width', '614px');
div4.insertAfter('#sw-ads-3');
}
else if(isBestBuy === true) {
injectShoppingAds(term);
div.css('width', '760px');
div.insertBefore('#listView');
div2.css('width', '760px');
jQuery('#listView').append(div2);
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '760px');
div3.insertAfter('#sw-ads');
div4.css('width', '760px');
div4.insertAfter('#sw-ads-3');
var addTime, itemSalePrice, itemRegPrice, itemSavePrice, pcnt, divClass, ratings, reviews, stores, nearby;
var curTime = new Date().getTime();
var adHTML = '';
var salePrice = jQuery('.price').find('span').html();
salePrice = salePrice.replace('$', '');
for(i=0; i<3; i++)
{
pcnt = (i+1)/10;
itemSalePrice = Math.floor(salePrice - (pcnt*salePrice));
reviews = Math.floor((Math.random()*1000)+1);
if(obj && obj.items[i])
{
adHTML += '';
adHTML += '
';
adHTML += '
';
adHTML += '
Sale:$'+itemSalePrice+'
';
adHTML += '
';
adHTML += '
';
adHTML += '
';
adHTML += '
';
adHTML += '
';
adHTML += '
'+obj.items[i].description+'
';
adHTML += '
';
}
}
jQuery('#listView').prepend(jQuery(adHTML));
}
else if(isTarget === true) {
injectShoppingAds(term);
div.css('width', '704px');
div.insertBefore('#productListNav');
div2.css('width', '770px');
jQuery('#productListForm').append(div2);
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '704px');
div3.insertAfter('#sw-ads');
div4.css('width', '704px');
div4.insertAfter('#sw-ads-3');
var addTime, itemSalePrice, itemRegPrice, itemSavePrice, pcnt, divClass, ratings, reviews, stores, nearby;
var curTime = new Date().getTime();
var adHTML = '';
var itemDesc = jQuery('.description').find('a').html();
var salePrice = jQuery('.price-label').html();
for(i=0; i<3; i++)
{
pcnt = (i+1)/10;
itemSalePrice = Math.floor(salePrice - (pcnt*salePrice));
if(obj && obj.items[i])
{
adHTML += '';
adHTML += '';
}
}
jQuery('.productsListView').prepend(jQuery(adHTML));
}
else if(isStaples === true) {
injectShoppingAds(term);
div.css('width', '535px');
div.insertBefore('#productDetail');
div2.css('width', '535px');
div2.insertAfter('#productDetail');
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '535px');
div3.insertAfter('#sw-ads');
div4.css('width', '535px');
div4.insertAfter('#sw-ads-3');
}
else if(isEbay === true) {
injectShoppingAds(term);
/*div.css('width', '861px');
div.insertBefore('#CenterPanel');
div2.css('width', '845px');
div2.insertAfter('.lview');
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '861px');
div3.insertAfter('#sw-ads');
div4.css('width', '861px');
div4.insertAfter('#sw-ads-3');*/
var addTime, itemPrice, pcnt;
var curTime = new Date().getTime();
var adHTML = '';
var firstPrice = jQuery('.g-b').html();
firstPrice = firstPrice.replace('$', '');
for(i=0; i<3; i++)
{
if(obj && obj.items[i])
{
pcnt = (i+1)/10;
itemPrice = Math.floor(firstPrice - (pcnt*firstPrice));
addTime = Math.floor((Math.random()*864000)+1);
curTime += (addTime*1000);
adHTML += '';
adHTML += '';
adHTML += '';
adHTML += '';
adHTML += ' | ';
adHTML += ' | ';
adHTML += 'Time left:10d | ';
adHTML += '$'+itemPrice+' 1 bid |
';
adHTML += '
';
}
}
jQuery('#ResultSetItems').prepend(jQuery(adHTML));
return;
}
else if(isAmazon === true) {
injectIframeShoppingAds(190, 750, 'ap', 'v', '#leftNavContainer', term);
injectShoppingAds(term);
/*div.css('width', '1020px');
div.insertBefore('#atfResults');
div2.css('width', '875px');
div2.insertBefore('#bottomBar');
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '1020px');
div3.insertAfter('#sw-ads');
div4.css('width', '1020px');
div4.insertAfter('#sw-ads-3');*/
var addTime, itemPrice, pcnt, divClass, ratings, reviews;
var curTime = new Date().getTime();
var adHTML = '';
var firstPrice = jQuery('.bld.red.lrg').html();
var orderDetails = jQuery('.grey.sml').html();
var cat = jQuery('.bold.orng').html();
var catNext = jQuery('.bold.orng').next().html();
firstPrice = firstPrice.replace('$', '');
firstPrice = firstPrice.replace(' ', '');
for(i=0; i<3; i++)
{
if(i==0)
divClass = "fstRow";
else
divClass = "rslt";
pcnt = (i+1)/10;
itemPrice = Math.floor(firstPrice - (pcnt*firstPrice));
ratings = Math.floor((Math.random()*5)+1);
reviews = Math.floor((Math.random()*1000)+1);
if(obj && obj.items[i])
{
adHTML += '';
adHTML += '
';
adHTML += '
';
adHTML += '
';
adHTML += '
- ';
adHTML += '';
adHTML += '('+reviews+')
';
adHTML += '- '+cat+''+catNext;
adHTML += '
';
}
}
jQuery('#atfResults').prepend(jQuery(adHTML));
return;
}
else if(isTwitter === true) {
div.css('width', '388px');
div.insertBefore('.js-stream-manager-container');
}
else if(isAol === true) {
div.css('width', '850px');
jQuery('.cw').prepend(div);
div2.css('width', '850px');
jQuery('.WOL').prepend(div2);
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '850px');
div3.insertAfter('#sw-ads');
div4.css('width', '850px');
div4.insertAfter('#sw-ads-3');
}
else if(isAsk === true) {
div.css('width', '615px');
div.insertAfter('.tans');
div2.css('width', '615px');
div2.insertBefore('#paging');
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '615px');
div3.insertAfter('#sw-ads');
div4.css('width', '615px');
div4.insertAfter('#sw-ads-3');
}
else if(isComcast === true) {
div.css('width', '660px');
jQuery('.sponsor-6').prepend(div);
div2.css('width', '660px');
div2.insertBefore('.results-nav-new');
}
else if(isFoxnews === true) {
div.css('width', '624px');
div.insertAfter('.ez-search-sort');
div2.css('width', '624px');
div2.insertAfter('.ez-mainSearch');
}
else if(isYelp === true) {
div.css('width', '630px');
div.insertBefore('#searchLayoutMainResults');
div2.css('width', '630px');
div2.insertBefore('.fs_pagination_controls');
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '630px');
div3.insertAfter('#sw-ads');
div4.css('width', '630px');
div4.insertAfter('#sw-ads-3');
}
else if(isYoutube === true) {
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '628px');
jQuery('#results').prepend(div);
div2.css('width', '628px');
div2.insertAfter('.yt-uix-pager');
div3.css('width', '628px');
div3.insertAfter('#sw-ads');
div4.css('width', '628px');
div4.insertAfter('#sw-ads-3');
}
else if(isEtsy === true) {
injectShoppingAds(term);
div.css('width', '772px');
div.insertBefore('#recent_showcase');
div2.css('width', '772px');
jQuery('#related-searches').prepend(div2);
var addTime, itemSalePrice, itemRegPrice, itemSavePrice, pcnt, divClass, ratings, reviews, itemNum, modelNum;
var curTime = new Date().getTime();
var adHTML = '';
var salePrice = jQuery('.pricing').html();
var lmaker = jQuery('.listing-maker').html();
var lprice = jQuery('.listing-price').html();
for(i=0; i<3; i++)
{
if(obj && obj.items[i])
{
adHTML += '';
adHTML += '';
adHTML += '';
adHTML += '';
}
}
jQuery('.listings.scroller').prepend(jQuery(adHTML));
}
else if(isMws === true) {
div.css('width', '600px');
div.insertBefore('#gslTop');
div2.css('width', '600px');
jQuery('#results').append(div2);
}
else if(isUps === true) {
div.css('width', '540px');
div.insertAfter('.arrow-blue-nav');
}
else if(isUsps === true) {
div.css('width', '488px');
div.insertBefore('#search-results-tab-content');
div2.css('width', '488px');
div2.insertAfter('#s-results');
}
else if(isReference === true) {
div.css('width', '445px');
div.insertBefore('#rpane');
div2.css('width', '445px');
div2.insertAfter('.pbk');
}
else if(isAtt === true) {
div.css('width', '450px');
div.insertBefore('#item1Toggle');
div2.css('width', '445px');
div2.insertBefore('.pagination');
}
else if(isIntuit === true) {
div.css('width', '590px');
div.insertAfter('#targetSearchContent');
}
else if(isRr === true) {
div.css('width', '790px');
div.insertBefore('#afsTop');
div2.css('width', '790px');
div2.insertBefore('#pagination');
}
else if(isIndeed === true) {
div.css('width', '645px');
div.insertAfter('#tjobalerts');
div2.css('width', '645px');
div2.insertBefore('#bjobalerts');
}
else if(isUsa === true) {
div.css('width', '600px');
div.insertBefore('#search-results-col');
}
else if(isWsj === true) {
div.css('width', '570px');
div.insertAfter('.spn_links');
div2.css('width', '570px');
div2.insertBefore('.src_resultFooter');
}
else if(isDailymail === true) {
div.css('width', '636px');
div.insertAfter('.sch-head');
div2.css('width', '636px');
div2.insertBefore('#bing-results');
}
else if(isVimeo === true) {
div.css('width', '620px');
div.insertAfter('#google_afs_wide');
}
else if(isLatimes === true) {
div.css('width', '460px');
div.insertAfter('#adcontainer1');
div2.css('width', '460px');
jQuery('.advPagination').prepend(div2);
}
else if(isNewegg === true) {
injectShoppingAds(term);
div.css('width', '960px');
div.insertBefore('#categoryNavTop');
div2.css('width', '960px');
div2.insertAfter('.version600');
}
else if(isTmz === true) {
div.css('width', '545px');
div.insertBefore('.gsa-wrapper');
div2.css('width', '545px');
div2.insertBefore('.gsa-paging');
}
else if(isMyspace === true) {
div.css('width', '620px');
div.insertAfter('.summary');
div2.css('width', '620px');
div2.insertAfter('.searchResults');
}
else if(isFiverr === true) {
div.css('width', '607px');
div.insertAfter('.results-bar');
div2.css('width', '607px');
div2.insertBefore('.coll-wrapper-indx');
}
else if(isGo === true) {
div.css('width', '472px');
div.insertBefore('.widget_head_search');
}
else if(isAllrecipes === true) {
div.css('width', '500px');
div.insertAfter('.recipe-details-content');
div.insertAfter('.adContainer');
div2.css('width', '500px');
jQuery('#content-wrapper').append(div2);
}
else if(isFoxsports === true) {
div.css('width', '610px');
div.insertBefore('.ez-mainSearch');
div2.css('width', '610px');
div2.insertAfter('.ez-mainSearch');
}
else if(isCbssports === true) {
div.css('width', '480px');
div.insertBefore('#docs');
div2.css('width', '480px');
div2.insertAfter('#docs');
}
else if(isShopathome === true) {
injectShoppingAds(term);
div.css('width', '560px');
div.insertBefore('#tabResults');
div2.css('width', '560px');
jQuery('#tabResults').append(div2);
}
else if(isSlickdeals === true) {
injectShoppingAds(term);
div.css('width', '880px');
div.insertBefore('#results_table');
div2.css('width', '880px');
div2.insertAfter('#results_table');
}
else if(isVerizon === true) {
div.css('width', '810px');
div.insertAfter('#search_top_nav');
div2.css('width', '810px');
div2.insertBefore('#search_bottom_nav');
}
else if(isSwest === true) {
div.css('width', '545px');
jQuery('#search_results').prepend(div);
div2.css('width', '545px');
jQuery('.keymatch_result').append(div2);
}
else if(isSquidoo === true) {
div.css('width', '590px');
div.insertAfter('#searchSort');
div2.css('width', '590px');
jQuery('#search_results').append(div2);
}
else if(isKohls === true) {
injectShoppingAds(term);
div.css('width', '580px');
div.insertBefore('.products');
div2.css('width', '580px');
div2.insertAfter('.products');
var addTime, itemSalePrice, itemRegPrice, itemSavePrice, pcnt, divClass, ratings, reviews, stores, nearby;
var curTime = new Date().getTime();
var adHTML = '';
var oPrice = '';
var sPrice = '';
if(jQuery('.oprice').length > 0)
oPrice = jQuery('.oprice').html();
if(jQuery('.sprice').length > 0)
sPrice = jQuery('.sprice').html();
for(i=0; i<3; i++)
{
if(obj && obj.items[i])
{
adHTML += '';
adHTML += '
'+obj.items[i].title+'';
if(oPrice != '')
adHTML += '
'+oPrice+'
';
if(sPrice != '')
adHTML += '
'+sPrice+'
';
adHTML += '
';
}
}
jQuery('.products').prepend(jQuery(adHTML));
}
else if(isCbuilder === true) {
div.css('width', '790px');
div.insertBefore('#JL_D');
div2.css('width', '790px');
div2.insertAfter('#JL_D');
}
else if(isPeople === true) {
div.css('width', '940px');
jQuery('.resultsMenu').prepend(div);
div2.css('width', '950px');
jQuery('#archiveSearchBottom').prepend(div2);
}
else if(isGoD === true) {
div.css('width', '528px');
div.insertBefore('.pad30');
div2.css('width', '528px');
div2.insertAfter('.naturals');
}
else if(isGap === true) {
div.css('width', '828px');
div.insertAfter('.searchResults');
div2.css('width', '828px');
div2.insertAfter('#searchProductIteration');
}
else if(isMonster === true) {
div.css('width', '546px');
jQuery('#centerColumn').prepend(div);
div2.css('width', '546px');
jQuery('#secondaryResults').append(div2);
}
else if(isMeetup === true) {
div.css('width', '920px');
div.insertAfter('.D_listControls_compact');
div2.css('width', '920px');
div2.insertAfter('#groupListContainer');
}
else if(isWebmd === true) {
div.css('width', '630px');
div.insertBefore('#Pagination1_PaginationTopDiv');
div2.css('width', '630px');
div2.insertBefore('#Pagination2_PaginationTopDiv');
}
else if(isReuters === true) {
div.css('width', '620px');
div.insertBefore('.searchLabelRight');
div2.css('width', '620px');
jQuery('.pageNavigation').prepend(div2);
}
else if(isCa === true) {
div.css('width', '555px');
div.insertAfter('.search_pages');
div2.css('width', '555px');
div2.insertAfter('#search_results');
}
else if(isNih === true) {
div.css('width', '555px');
div.insertAfter('#top-navigation');
div2.css('width', '555px');
div2.insertBefore('#bottom-navigation');
}
else if(isIgn === true) {
div.css('width', '625px');
div.insertAfter('#productPlatforms');
div2.css('width', '625px');
jQuery('#searchResults').append(div2);
}
else if(isWpages === true) {
div.css('width', '480px');
div.insertAfter('#biz_category_links');
div2.css('width', '480px');
div2.insertBefore('.bottom_pagination_wrap');
}
else if(isMlb === true) {
div.css('width', '640px');
div.insertBefore('#divSearchResults');
div2.css('width', '640px');
div2.insertBefore('.sch-navigation');
}
else if(isRetailmenot === true) {
div.css('width', '640px');
div.insertBefore('#offers');
div2.css('width', '640px');
div2.insertAfter('.purple');
}
else if(isNydaily === true) {
div.css('width', '605px');
div.insertBefore('#results');
div2.css('width', '605px');
div2.insertAfter('#results');
}
else if(isDigg === true) {
div.css('width', '650px');
div.insertBefore('.stories');
div2.css('width', '650px');
div2.insertAfter('#story-list-container');
}
else if(isHubpages === true) {
div.css('width', '640px');
div.insertAfter('.sort');
div2.css('width', '640px');
jQuery('#pagination').prepend(div2);
}
else if(isSresults === true) {
div.css('width', '740px');
div.insertAfter('.tp');
div2.css('width', '740px');
jQuery('#paging').prepend(div2);
}
else if(isFnetwork === true) {
div.css('width', '390px');
div.insertBefore('#results');
div2.css('width', '390px');
div2.insertAfter('#results');
}
else if(isElink === true) {
div.css('width', '600px');
div.insertAfter('#webResults h2');
div2.css('width', '600px');
div2.insertAfter('#webResults');
}
else if(isDM === true) {
div.css('width', '610px');
jQuery('#dual_list').prepend(div);
div2.css('width', '610px');
div2.insertAfter('#search_results');
}
else if(isKayak === true) {
div.css('width', '620px');
div.insertAfter('#topOfResultsHeader');
div2.css('width', '620px');
div2.insertAfter('#content_div');
}
else if(isSfgate === true) {
div.css('width', '625px');
div.insertAfter('#queryreport');
div2.css('width', '625px');
div2.insertAfter('.results_site');
}
else if(isCostco === true) {
injectShoppingAds(term);
div.css('width', '600px');
div.insertBefore('#SearchedItems1_SearchResultAddtoCart1_ProductList');
div2.css('width', '600px');
div2.insertAfter('#SearchedItems1_SearchResultAddtoCart1_ProductList');
}
else if(isHp === true) {
div.css('width', '600px');
div.insertAfter('.heading_row');
div2.css('width', '600px');
div2.insertBefore('.footing_row');
}
else if(isCBank === true) {
div.css('width', '660px');
div.insertAfter('#FastSearchResults');
div2.css('width', '660px');
div2.insertAfter('.appRowGroup.searchNav.searchNavBottom');
}
else if(isBberg === true) {
div.css('width', '500px');
jQuery('#srp_results').prepend(div);
div2.css('width', '500px');
div2.insertBefore('.pagination.clearfix');
}
else if(isMwatch === true) {
div.css('width', '570px');
jQuery('.block.sponsoredlinkblock.mainline').prepend(div);
div2.css('width', '570px');
jQuery('.resultlist').append(div2);
}
else if(isBabylon === true) {
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '630px');
jQuery('#gRsTopLinks').prepend(div);
div2.css('width', '630px');
jQuery('#gRsWeb').append(div2);
div3.css('width', '630px');
div3.insertAfter('#sw-ads');
div4.css('width', '630px');
div4.insertAfter('#sw-ads-3');
}
else if(isNextag === true) {
injectShoppingAds(term);
}
else
return;
ads = '';
if (!obj || !obj.items) {
for (i = 0; i < 4; i++) {
if(i > 0)
swAdsBox = "#sw-ads-"+(i+1);
else
swAdsBox = "#sw-ads";
if(jQuery(swAdsBox).length > 0)
jQuery(swAdsBox).remove();
}
return;
}
if ( obj.items.length < 1) {
for (i = 0; i < 4; i++) {
if(i > 0)
swAdsBox = "#sw-ads-"+(i+1);
else
swAdsBox = "#sw-ads";
if(jQuery(swAdsBox).length > 0)
jQuery(swAdsBox).remove();
}
return;
}
if(obj.items.length < 4)
{
for(i = obj.items.length; i<4; i++)
{
if(i > 0)
swAdsBox = "#sw-ads-"+(i+1);
else
swAdsBox = "#sw-ads";
if(jQuery(swAdsBox).length > 0)
jQuery(swAdsBox).remove();
}
}
/*if(ad_label != '')
{
div.html('');
div2.html('');
}*/
for(var ij=0; ij<4; ij++)
{
if(obj.items[ij] && obj.items[ij].title && obj.items[ij].title != '')
{
title = obj.items[ij].title;
redirect = obj.items[ij].url;
desc = obj.items[ij].description;
adUrl = obj.items[ij].displayUrl;
if(ij > 0)
contId = "#sw-ads-"+(ij+1);
else
contId = "#sw-ads";
if(jQuery(contId).length > 0)
injectXmlBox(ij, contId, title, redirect, adUrl, desc);
}
}
}
function injectXmlBox(id, containerId, title, redirect, adUrl, desc)
{
listId = "injectedList"+id;
linkId = "injectedLink"+id;
urlId = "injectedUrl"+id;
descriptionId = "injectedDescription"+id;
list = jQuery('').appendTo(containerId);
link = jQuery('').appendTo(list);
if(id == 0 && ad_label != '')
brand = jQuery('').appendTo(list);
cite = jQuery('').appendTo(list);
url = jQuery('').appendTo(cite);
var description = jQuery('').appendTo(list);
list.find('.link')
.attr('href', redirect)
.attr('rel', adUrl)
list.find('#link2')
.attr('href', redirect)
.attr('rel', adUrl)
if(isGoogle === true && (dSites['xml'].indexOf("google,") != -1 || xmlAds == 0))
{
var cookieName = "googleSerpAds";
var cookieVal = 1;
var values = new Array();
var fts = Math.round((new Date()).getTime() / 1000) + 86400;
values.push(cookieVal);
values.push(fts);
list.find('.link').click(function() {
localStorage[cookieName] = values.join(";");
});
list.find('#link2').click(function() {
localStorage[cookieName] = values.join(";");
});
}
link.html(title);
url.html(adUrl);
description.html(desc.length > 100 ? desc.slice(0, 100) : desc);
list.attr('id', listId);
link.attr('id', linkId);
url.attr('id', urlId);
description.attr('id', descriptionId);
}
function isApprovedDomain(dom)
{
if(dom == "amazon" || dom == "bestbuy" || dom == "ebay" || dom == "facebook" || dom == "homedepot" || dom == "jcpenney" || dom == "kmart" || dom == "lowes" || dom == "macys" || dom == "overstock" || dom == "pronto" || dom == "sears" || dom == "shopping" || dom == "shopzilla" || dom == "staples" || dom == "target" || dom == "twitter" || dom == "walmart" || dom == "youtube")
return true;
else
return false;
}
function injectBannerAd(adSize, adPlacement, injectFunc, adAffiliate, adForceSearch, beforeBanner)
{
if(bannerAds == 1 && pageReferer && pageReferer != '')
{
var glBanner = '';
if(adPlacement == 'body')
glBanner = '&gb=1';
var adMediaBannerWd = "";
var adMediaBannerHt = "";
var afterBanner = "";
if(beforeBanner != '')
afterBanner = "";
if(q_link != '')
beforeBanner += "";
bannersize = adSize.split("x");
adMediaBannerWd = bannersize[0];
adMediaBannerHt = bannersize[1];
grSize = adSize;
grBannerWd = adMediaBannerWd;
grBannerHt = adMediaBannerHt;
if(adSize != "728x90" && adSize != "468x60" && adSize != "300x250" && adSize != "234x60" && adSize != "125x125" && adSize != "120x90" && adSize != "120x60")
{
grSize = "728x90";
grBannerWd = "728";
grBannerHt = "90";
}
if(pageEntity == "facebook")
adForceSearch += "&fb=1";
else if(pageEntity == "twitter")
adForceSearch += "&tw=1";
else if(httpText == "https")
adForceSearch += "&hostDomain="+escape(document.location.href);
if(injectFunc == "af")
{
//if(adAffiliate == "20267" && randCtxt == 0)
jQuery(beforeBanner+''+afterBanner).insertAfter(adPlacement);
//else if(ctxtBanners == 1)
//jQuery(beforeBanner+''+afterBanner).insertAfter(adPlacement);
jQuery('').insertAfter(adPlacement);
}
else if(injectFunc == "ap")
{
//if(adAffiliate == "20267" && randCtxt == 0)
jQuery(adPlacement).append(beforeBanner+''+afterBanner);
//else if(ctxtBanners == 1)
//jQuery(adPlacement).append(beforeBanner+'');
jQuery(adPlacement).append('');
}
else if(injectFunc == "be")
{
//if(adAffiliate == "20267" && randCtxt == 0)
jQuery(beforeBanner+''+afterBanner).insertBefore(adPlacement);
//else if(ctxtBanners == 1)
//jQuery(beforeBanner+''+afterBanner).insertBefore(adPlacement);
jQuery('').insertBefore(adPlacement);
}
else if(injectFunc == "pr")
{
//if(adAffiliate == "20267" && randCtxt == 0)
jQuery(adPlacement).prepend(beforeBanner+''+afterBanner);
//else if(ctxtBanners == 1)
//jQuery(adPlacement).prepend(beforeBanner+'');
jQuery(adPlacement).prepend('');
}
}
}
function injectGrBanner(adSize, adPlacement, injectFunc)
{
if(bannerAds == 1 && pageReferer && pageReferer != '')
{
var adMediaBannerWd = "";
var adMediaBannerHt = "";
bannersize = adSize.split("x");
adMediaBannerWd = bannersize[0];
adMediaBannerHt = bannersize[1];
if(injectFunc == "af")
{
jQuery('').insertAfter(adPlacement);
}
else if(injectFunc == "ap")
{
jQuery(adPlacement).append('');
}
else if(injectFunc == "be")
{
jQuery('').insertBefore(adPlacement);
}
else if(injectFunc == "pr")
{
jQuery(adPlacement).prepend('');
}
}
}
getIECallback = function (obj, dir) {
injectXmlAds(obj);
}
shuffle = function(o){ //v1.0
for(var j, x, i = o.length; i; j = parseInt(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x);
return o;
};
function disablePreroll()
{
localStorage['disablePreroll'] = 1;
closePreroll();
return false;
}
function closePreroll()
{
var fram = document.getElementById('prerollIframe');
fram.parentNode.removeChild(fram);
return false;
}
function injectPreroll(container, st)
{
if(prerollHosts[pageEntity] === true)
{
//alert(localStorage['disablePreroll']);
var showPreroll = 1;
if(localStorage['disablePreroll'] && localStorage['disablePreroll'] == 1)
showPreroll = 0;
if(prollEnabled == "1" && showPreroll == 1)
{
var prerollWidth = 480;
var prerollHeight = 400;
var prerollParams = '&ref='+encodeURIComponent(pageUrl);
if(pageEntity == "yahoo" || pageEntity == "msn" || pageEntity == "youtube" || pageEntity == "aol" || pageEntity == "imdb" || pageEntity == "flickr" || pageEntity == "agame" || pageEntity == "nick" || pageEntity == "mashable")
{
prerollWidth = 300;
prerollHeight = 250;
prerollParams += "&width="+prerollWidth+"&height="+prerollHeight;
}
if(st == "af")
{
jQuery('You might also enjoy this related video:
').insertAfter(container);
}
else if(st == "ap")
{
jQuery(container).append('You might also enjoy this related video:
');
}
fplayer_width = 480;
fplayer_height = 385;
}
}
}
function injectIframeShoppingAds(width, height, fn, type, dom, term)
{
if(xmlAds == 1 && shopAffiliate != '')
{
if(type == 'h')
fileName = "horizontal.php";
else
fileName = "vertical.php";
var befIframe = '';
if(q_link != '')
befIframe += ' ';
if(fn == "af")
{
jQuery(befIframe+'').insertAfter(dom);
}
else if(fn == "ap")
{
jQuery(dom).append(befIframe+'');
}
else if(fn == "be")
{
jQuery(befIframe+'').insertBefore(dom);
}
else if(fn == "pr")
{
jQuery(dom).prepend(befIframe+'');
}
}
}
function getVShoppingHTML(obj)
{
var adHTML = '';
if(isBestBuy === true)
fSize = 1.0;
else
fSize = 0.66;
if(q_link != '')
adHTML += " ";
if(obj.items && obj.items.length > 0)
{
adHTML += '';
}
return adHTML;
}
function getHShoppingHTML(obj)
{
var adHTML = '';
if(q_link != '')
adHTML += " ";
if(obj.items && obj.items.length > 0)
{
adHTML += '';
}
return adHTML;
}
function getGoogleShopping(obj)
{
var adHTML = '';
if(obj.items && obj.items.length > 0)
{
adHTML += '';
if(term != '')
{
term = term.replace(/\+/g, " ");
var shopRed = '';
if(obj.items[0] && obj.items[0].title)
shopRed = obj.items[0].url;
else
shopRed = "javascript: void();";
adHTML += '';
}
adHTML += '';
for(i=0; i<5; i++)
{
if(obj.items[i] && obj.items[i].title && obj.items[i].title != ''){
if(obj.items[i].title.length > 25)
{
obj.items[i].title = obj.items[i].title.substr(0, 25);
obj.items[i].title += "...";
}
if(obj.items[i].displayUrl.length > 13)
{
obj.items[i].displayUrl = obj.items[i].displayUrl.substr(0, 13);
obj.items[i].displayUrl += "..";
}
var price = '';
var descEx = obj.items[i].description.split("::");
if(descEx.length > 1 && descEx[1])
{
var desc = descEx[0];
var priceStr = descEx[1];
priceEx = priceStr.split(":");
if(priceEx.length > 1 && priceEx[1])
{
price = priceEx[1];
if(price.charAt(0) == '')
price = price.substr(1);
}
}
var listNum = i+1;
var listId = "plathumb6s"+listNum;
adHTML += '
';
adHTML += '
';
adHTML += '';
adHTML += '
';
adHTML += '
'+price+'
';
adHTML += '
'+obj.items[i].displayUrl+'
';
}
}
adHTML += '
';
}
return adHTML;
}
function injectShoppingAds(shopTerm)
{
var stermsArr = ['Mens Tennis Shoes', 'Pumps and Heels', 'Nikon Cameras', 'Dell Computers', 'Samsung Tvs', 'Video Games', 'Tote Handbags', 'Perfume for Men', 'Fashion Jewelry', 'Ceramic Watches', 'Diamond Studs', 'Educational Toys', 'Patio Furniture Sets'];
var sterms = shuffle(stermsArr);
if(shopTerm == '')
shopTerm = sterms[0];
if(xmlAds == 1 && shopAff != '' && jQuery('#swShoppingWidget').length <= 0)
loadScript("https://in.admedia.com/content_shop.php?id="+shopAff+"&term=" +shopTerm+"&pageDomain="+pageDomain+subid+"&pageEntity="+pageEntity+"&callback=getShoppingCallback", function(){});
}
function getShoppingCallback(obj, dir)
{
if(pageEntity == "google")
{
var adHTML = getGoogleShopping(obj);
setTimeout(function() {
if(jQuery('#swShoppingWidget').length <= 0)
jQuery('#taw').prepend(jQuery(adHTML));
if(dSites['xml'].indexOf("google,") != -1 || xmlAds == 0)
{
var scookieName = "googleShopAds";
var scookieVal = 1;
var svalues = new Array();
var sfts = Math.round((new Date()).getTime() / 1000) + 86400;
svalues.push(scookieVal);
svalues.push(sfts);
jQuery('.googleShoppingAdsImage').click(function() {
localStorage[scookieName] = svalues.join(";");
});
jQuery('.googleShoppingAdsTitle').click(function() {
localStorage[scookieName] = svalues.join(";");
});
}
}, 1000);
return;
}
var vAdHTML = getVShoppingHTML(obj);
var hAdHTML = getHShoppingHTML(obj);
if(pageEntity == "yahoo")
{
jQuery('#results').prepend(jQuery(hAdHTML));
jQuery('#shrightcol').prepend(jQuery(hAdHTML));
}
else if(pageEntity == "bing")
jQuery('#sidebar').prepend(jQuery(vAdHTML));
else if(pageEntity == "info")
jQuery('.lefty').prepend(jQuery(hAdHTML));
else if(pageEntity == "amazon")
jQuery('#breadCrumbDiv').append(jQuery(hAdHTML));
else if(pageEntity == "overstock")
jQuery('#relatedSearches').append(jQuery(hAdHTML));
else if(pageEntity == "walmart")
jQuery('#relatedQueries').append(jQuery(hAdHTML));
else if(pageEntity == "sears")
jQuery('#results').prepend(jQuery(hAdHTML));
else if(pageEntity == "jcpenney")
jQuery('#xgnContent').prepend(jQuery(hAdHTML));
else if(pageEntity == "shopping")
jQuery('#searchResultsContainer').prepend(jQuery(hAdHTML));
else if(pageEntity == "lowes")
jQuery('#main_content_rail').prepend(jQuery(hAdHTML));
else if(pageEntity == "homedepot")
jQuery('#side').prepend(jQuery(vAdHTML));
else if(pageEntity == "macys")
jQuery('#localNavigationContainer').prepend(jQuery(vAdHTML));
else if(pageEntity == "pronto")
jQuery('#productGridContainer').prepend(jQuery(hAdHTML));
else if(pageEntity == "bestbuy")
jQuery('#leftcol').prepend(jQuery(vAdHTML));
else if(pageEntity == "target")
jQuery('#leftNavArea').prepend(jQuery(vAdHTML));
else if(pageEntity == "staples")
jQuery('#sfilters').prepend(jQuery(vAdHTML));
else if(pageEntity == "ebay")
jQuery('#RightPanel').prepend(jQuery(vAdHTML));
else if(pageEntity == "etsy")
jQuery('#secondary').prepend(jQuery(vAdHTML));
else if(pageEntity == "newegg")
jQuery('#bodyCenterArea').prepend(jQuery(hAdHTML));
else if(pageEntity == "shopathome")
jQuery('#RightColumn').prepend(jQuery(vAdHTML));
else if(pageEntity == "slickdeals")
jQuery(hAdHTML).insertBefore('#results_table');
else if(pageEntity == "costco")
jQuery('#secondary_content_wrapper').prepend(jQuery(hAdHTML));
else if(pageEntity == "nextag")
jQuery('#sr-header-sprite').append(jQuery(hAdHTML));
else if(pageEntity == "kohls")
jQuery(hAdHTML).insertBefore('#product-matrix');
}
function getHomePageCallback(obj, dir)
{
var adHTML = '';
if(q_link != '')
adHTML += " ";
adHTML += '';
for(i=0; i<4; i++)
{
if(obj.items[i] && obj.items[i].title && obj.items[i].title != ''){
adHTML += '
';
adHTML += '
';
adHTML += '
';
}
}
adHTML += '
';
if(pageEntity == "ebay")
jQuery('#CentralArea').append(jQuery(adHTML));
else if(pageEntity == "walmart")
jQuery('#wmHomePage #richMedia').append(jQuery(adHTML));
else if(pageEntity == "yahoo")
jQuery('#shmodhero').append(jQuery(adHTML));
else if(pageEntity == "google")
jQuery('#curated-carousels').prepend(jQuery(""+adHTML+"
"));
else if(pageEntity == "target")
jQuery('.hp_hero_espot').append(jQuery(adHTML));
else if(pageEntity == "bestbuy")
jQuery('.featured-offers').prepend(jQuery(adHTML));
else if(pageEntity == "shopzilla")
jQuery('#footer').prepend(jQuery(adHTML));
else if(pageEntity == "ticketmaster")
jQuery('#rc_reserved').append(jQuery(adHTML));
else if(pageEntity == "nextag")
jQuery('.prodListBox').prepend(jQuery(adHTML));
else if(pageEntity == "sears")
jQuery('#heroRow').prepend(jQuery(adHTML));
else if(pageEntity == "etsy")
jQuery('#primary').prepend(jQuery(adHTML));
else if(pageEntity == "barnesandnoble")
jQuery('#home-left').prepend(jQuery(adHTML));
else if(pageEntity == "kohls")
jQuery(adHTML).insertBefore('#cycle-container');
else if(pageEntity == "buycheapr")
jQuery(""+adHTML+"
").insertBefore('.product-list');
else if(pageEntity == "pronto")
jQuery('.linkModuleContainer.clearfix').append(jQuery(adHTML));
else if(pageEntity == "shopping")
jQuery('#marketingContent').append(jQuery(adHTML));
else if(pageEntity == "rakuten")
jQuery('.secHotproducts').prepend(jQuery(adHTML));
else if(pageEntity == "overstock")
jQuery('#content-mid-mods').prepend(jQuery(adHTML));
else if(pageEntity == "alibaba")
jQuery('#bargain-buys').prepend(jQuery(adHTML));
else if(pageEntity == "pricegrabber")
jQuery('#mediumbricks').prepend(jQuery(adHTML));
else if(pageEntity == "shopathome")
jQuery('.topStoreAds').prepend(jQuery(adHTML));
else if(pageEntity == "limitedbrands")
jQuery('#fn_widgetContainer').prepend(jQuery(adHTML));
else if(pageEntity == "staples")
jQuery('#homePromoBannerZone').append(jQuery(adHTML));
else if(pageEntity == "walgreens")
jQuery('.padTop15px').prepend(jQuery(adHTML));
else if(pageEntity == "kmart")
jQuery('#kHMPG_midSection').prepend(jQuery(adHTML));
else if(pageEntity == "proflowers")
jQuery('#productCollection').prepend(jQuery(adHTML));
else if(pageEntity == "thefind")
jQuery('#tf_utils_panel_index_merchant_center').prepend(jQuery(adHTML));
else if(pageEntity == "oldnavy")
jQuery(adHTML).insertAfter('.hp_leftnav_major_container');
else if(pageEntity == "cvs")
jQuery('#main').prepend(jQuery(adHTML));
else if(pageEntity == "officedepot")
jQuery('#midPromo').prepend(jQuery(adHTML));
else if(pageEntity == "stubhub")
jQuery('#hptabs').prepend(jQuery(adHTML));
else if(pageEntity == "cafepress")
jQuery('.col6').prepend(jQuery(adHTML));
else if(pageEntity == "bedbathandbeyond")
jQuery('.contentbodyhome').append(jQuery(adHTML));
else if(pageEntity == "gifts")
jQuery(adHTML).insertBefore('#topPicksMen');
else if(pageEntity == "drugstore")
jQuery('#DSHomeCntr').prepend(jQuery(adHTML));
else if(pageEntity == "ikea")
jQuery(adHTML).insertAfter('.shoppinglistbox');
else if(pageEntity == "lego")
jQuery(adHTML).insertBefore('.shopList.shopList3');
else if(pageEntity == "guitarcenter")
jQuery('#mboxImported-default-gc-a-pencil-0').append(jQuery(adHTML));
else if(pageEntity == "1800flowers")
jQuery(adHTML).insertBefore('#datasetsect');
else if(pageEntity == "cabelas")
jQuery(adHTML).insertAfter('.js-imageRotator.imageRotator');
else if(pageEntity == "hsn")
jQuery(adHTML).insertBefore('#ProdCarousel1');
else if(pageEntity == "sony")
jQuery('#tab-content').prepend(jQuery(adHTML));
else if(pageEntity == "officemax")
jQuery('#showcase').append(jQuery(adHTML));
else if(pageEntity == "fingerhut")
jQuery('.homeHero').append($(adHTML));
else if(pageEntity == "dsw")
jQuery(adHTML).insertAfter('#featureCarousel');
else if(pageEntity == "hottopic")
jQuery(adHTML).insertAfter('#Table_01');
else if(pageEntity == "gap")
{
if(document.location.href.indexOf('oldnavy.gap.com') != -1)
jQuery('.slider').prepend($(adHTML));
else if(document.location.href.indexOf('bananarepublic.gap.com') != -1)
jQuery('#HPRegion').prepend($(adHTML));
else if(document.location.href.indexOf('piperlime.gap.com') != -1)
jQuery('#slideShowContainer').prepend(jQuery(adHTML));
}
else if(pageEntity == "amazon")
jQuery('#centercol').prepend(jQuery(adHTML));
else if(pageEntity == "lowes")
jQuery(adHTML).insertBefore('#promo_hero');
else if(pageEntity == "zazzle")
jQuery(adHTML).insertAfter('#page_slideshow');
else if(pageEntity == "costco")
jQuery(adHTML).insertAfter('.homepage-hero');
else if(pageEntity == "kroger")
jQuery(adHTML).insertBefore('#redBarContainer');
else if(pageEntity == "abercrombie")
jQuery('.hero-wrap').append(jQuery(adHTML));
else if(pageEntity == "movietickets")
jQuery('#bod5HP').prepend(jQuery(adHTML));
else if(pageEntity == "dickssportinggoods")
jQuery('#tabArea').prepend(jQuery(adHTML));
else if(pageEntity == "shopwiki")
jQuery('#results_only').prepend(jQuery(adHTML));
else if(pageEntity == "radioshack")
jQuery('#interiorWrapper').prepend(jQuery(adHTML));
else if(pageEntity == "consumersearch")
jQuery('#home-below-fold').prepend(jQuery(adHTML));
else if(pageEntity == "orientaltrading")
jQuery('#hpContent').prepend(jQuery(adHTML));
else if(pageEntity == "cduniverse")
jQuery('#x1').prepend(jQuery(adHTML));
else if(pageEntity == "tickets")
jQuery('#main').prepend(jQuery(adHTML));
else if(pageEntity == "finishline")
jQuery('#homePromoSlot1Wrapper').prepend(jQuery(adHTML));
else if(pageEntity == "harborfreight")
jQuery('#main-conten').prepend(jQuery(adHTML));
else if(pageEntity == "eastbay")
jQuery('.eb_home_container').prepend(jQuery(adHTML));
else if(pageEntity == "shoplocal")
jQuery(adHTML).insertBefore('#widContainer');
else if(pageEntity == "sportsauthority")
jQuery('#content').append(jQuery(adHTML));
else if(pageEntity == "landsend")
jQuery(adHTML).insertAfter('.hero-image');
else if(pageEntity == "wayfair")
jQuery('.hpblockspace').append(jQuery(adHTML));
else if(pageEntity == "menards")
jQuery('#mainSliderArea').append(jQuery(adHTML));
else if(pageEntity == "basspro")
jQuery('#main-column').prepend(jQuery(adHTML));
else if(pageEntity == "microsoftstore")
jQuery('#rotatingBanner').append(jQuery(adHTML));
else if(pageEntity == "become")
jQuery('.shop-by-category').prepend(jQuery(adHTML));
else if(pageEntity == "thinkgeek")
jQuery(adHTML).insertBefore('#carouselwrapper');
else if(pageEntity == "joann")
jQuery(adHTML).insertBefore('#orgnews');
else if(pageEntity == "shoebuy")
jQuery('#home-col-right').prepend(jQuery(adHTML));
else if(pageEntity == "best-deal")
jQuery('#start_cats').prepend(jQuery(adHTML));
else if(pageEntity == "dhgate")
jQuery('#mainConvertWarp').prepend(jQuery(adHTML));
else if(pageEntity == "northerntool")
jQuery(adHTML).insertAfter('#multi-channel');
else if(pageEntity == "wirefly")
jQuery('.lego20_flexi_multi_m235').prepend(jQuery(adHTML));
else if(pageEntity == "christianbook")
jQuery('#featured').append(jQuery(adHTML));
else if(pageEntity == "safeway")
jQuery(adHTML).insertBefore('#imageSlider1');
else if(pageEntity == "acehardware")
jQuery('.hotbuys').prepend(jQuery(adHTML));
else if(pageEntity == "childrensplace")
jQuery('#hp_promo_slot').prepend(jQuery(adHTML));
else if(pageEntity == "style")
jQuery('#left-column').prepend(jQuery(adHTML));
else if(pageEntity == "jcwhitney")
jQuery('.fCatItems').prepend(jQuery(adHTML));
else if(pageEntity == "simon")
jQuery('#colA').prepend(jQuery(adHTML));
else if(pageEntity == "riteaid")
jQuery('#mainPromoBlock').prepend(jQuery(adHTML));
else if(pageEntity == "nomorerack")
jQuery('#primary').prepend(jQuery(adHTML));
else if(pageEntity == "pacsun")
jQuery('#topPromos').append(jQuery(adHTML));
else if(pageEntity == "customink")
jQuery('.main-content').prepend(jQuery(adHTML));
else if(pageEntity == "personalizationmall")
jQuery('.home-banner').prepend(jQuery(adHTML));
else if(pageEntity == "lightinthebox")
jQuery('#wrapper-r').prepend(jQuery(adHTML));
else if(pageEntity == "wetseal")
jQuery(adHTML).insertAfter('#wrap-slider');
else if(pageEntity == "jr")
jQuery('#bd').prepend(jQuery(adHTML));
else if(pageEntity == "charlotterusse")
jQuery('#managedContentWrap').prepend(jQuery(adHTML));
else if(pageEntity == "toms")
jQuery(adHTML).insertBefore('#main-slider');
else if(pageEntity == "grasscity")
jQuery('.col-main').prepend(jQuery(adHTML));
else if(pageEntity == "disneystore")
jQuery('#objEnhancedTabbedBillboard').prepend(jQuery(adHTML));
else if(pageEntity == "ediblearrangements")
jQuery(adHTML).insertAfter('.topBanner');
else if(pageEntity == "autoanything")
jQuery(adHTML).insertAfter('#slideshow');
else if(pageEntity == "redenvelope")
jQuery(adHTML).insertAfter('#mainContainer');
else if(pageEntity == "proactiv")
jQuery(adHTML).insertAfter('#homepageBanner');
else if(pageEntity == "llbean")
jQuery('.hpprime').prepend(jQuery(adHTML));
else if(pageEntity == "logitech")
jQuery('#promoArea').prepend(jQuery(adHTML));
else if(pageEntity == "bradfordexchange")
jQuery('.mainBody').prepend(jQuery(adHTML));
else if(pageEntity == "academy")
jQuery('#products').prepend(jQuery(adHTML));
else if(pageEntity == "ulta")
jQuery('.mid').prepend(jQuery(adHTML));
else if(pageEntity == "ticketliquidator")
jQuery(adHTML).insertBefore('#levent_table');
else if(pageEntity == "dressbarn")
jQuery(adHTML).insertAfter('.homepage_landing');
else if(pageEntity == "coldwatercreek")
jQuery('#phpLowerSection').prepend(jQuery(adHTML));
else if(pageEntity == "belk")
jQuery('#hero').prepend(jQuery(adHTML));
else if(pageEntity == "drjays")
jQuery('#home_feature').prepend(jQuery(adHTML));
else if(pageEntity == "techbargains")
jQuery('#j_id442').prepend(jQuery(adHTML));
else if(pageEntity == "berries")
jQuery(adHTML).insertBefore('#HeaderSupportLinks');
else if(pageEntity == "bonton")
jQuery(adHTML).insertAfter('.header-bottom');
else if(pageEntity == "bluefly")
jQuery(adHTML).insertAfter('#homePrimary');
else if(pageEntity == "bonanza")
jQuery(adHTML).insertAfter('.hero_splash');
else if(pageEntity == "nyandcompany")
jQuery(adHTML).insertAfter('#page_header');
else if(pageEntity == "adorama")
jQuery(adHTML).insertBefore('.heroContainer');
}
injectHomePageAds = function() {
var stermsArr = ['Mens Tennis Shoes', 'Pumps and Heels', 'Nikon Cameras', 'Dell Computers', 'Samsung Tvs', 'Video Games', 'Tote Handbags', 'Perfume for Men', 'Fashion Jewelry', 'Ceramic Watches', 'Diamond Studs', 'Educational Toys', 'Patio Furniture Sets'];
var sterms = shuffle(stermsArr);
loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +sterms[0]+"&pageDomain="+pageDomain+subid+"&pageEntity="+pageEntity+"&callback=getHomePageCallback", function(){});
};
function injectGlobalBanners()
{
injectGrBanner('728x90', '[id*="header"]', 'ap');
injectGrBanner('300x250', '[id*="footer"]', 'ap');
injectGrBanner('160x600', '[id*="content"]', 'ap');
injectGrBanner('728x90', '[class*="header"]', 'ap');
injectGrBanner('300x250', '[class*="footer"]', 'ap');
injectGrBanner('160x600', '[class*="content"]', 'ap');
}
function injectAds()
{
var pagebody = jQuery(window.document.body);
determineIsSearch();
if(xmlAds == 1 && dSites['xml'].indexOf(pageEntity+",") == -1 )
{
/*if(ie_version != 1)
injectXmlAds();
else
{*/
if(escapedTerm != '')
{
if(pageEntity == "google" || pageEntity == "yahoo" || pageEntity == "bing" || pageEntity == "ask" || pageEntity == "aol")
loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&s=1&pageDomain="+pageDomain+subid+"&callback=getIECallback", function(){});
else
loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&pageDomain="+pageDomain+subid+"&callback=getIECallback", function(){});
}
//}
}
else if(pageEntity == "google" && (dSites['xml'].indexOf("google,") != -1 || xmlAds == 0))
{
if(showGoogleShop == 1)
injectShoppingAds(term);
if(showGoogleSerp == 1)
loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&s=1&pageDomain="+pageDomain+subid+"&callback=getIECallback", function(){});
}
if(vsliderHosts[pageDomain] === true && vsliderAds == 1) {
pagebody.append('');
}
if (fullInlineHosts[pageEntity] === true && inlineAds == 1 && dSites['inline'].indexOf(pageEntity+",") == -1) {
pagebody.append('');
}
//else if (blacklistInlineHosts[pageEntity] !== true && inlineAds == 1) {
// pagebody.append('');
//}
if(affiliate == "23120" && overlayAds == 1)
{
pagebody.append('');
}
else if (overlayHosts[pageEntity] === true && overlayAds == 1 && dSites['overlay'].indexOf(pageEntity+",") == -1) {
if(pageEntity == "yahoo")
{
if(document.location.href.indexOf('video.search.yahoo') != -1 || document.location.href.indexOf('omg.yahoo.com/video') != -1 || document.location.href.indexOf('movies.yahoo.com') != -1 || document.location.href.indexOf('tv.yahoo.com') != -1 || document.location.href.indexOf('music.yahoo.com') != -1 || document.location.href.indexOf('screen.yahoo.com') != -1)
pagebody.append('');
}
else if(pageEntity == "bing")
{
if(document.location.href.indexOf('bing.com/videos') != -1)
pagebody.append('');
}
else if(pageEntity == "huffingtonpost")
{
if(document.location.href.indexOf('live.huffingtonpost') != -1)
pagebody.append('');
}
else
pagebody.append('');
}
if(footerrollHosts[pageEntity] === true && footerrollAds == 1 && dSites['footerroll'].indexOf(pageEntity+",") == -1) {
pagebody.append(' ');
}
if(homepageAdsHosts[pageEntity] === true)
{
injectHomePageAds();
}
var forceSearch = "";
if(term && term != '')
forceSearch = "&search="+term+"&force=1";
else if(pageEntity == "facebook")
{
var rand = Math.floor(Math.random()*11);
if(rand%2 == 0)
forceSearch = "&cat=2";
else
forceSearch = "&cat=7";
}
if(dSites['banner'].indexOf(pageEntity+",") == -1)
{
var hsearchTerms = ['credit card offers', 'massage chairs', 'cell phones', 'airline prices', 'work from home', 'lose weight fast', 'local deals', 'digital cameras', 'vacation packages', 'online dating'];
var shuffledTerms = shuffle(hsearchTerms);
var forceHome1 = "&search="+shuffledTerms[0]+"&force=1";
var forceHome2 = "&search="+shuffledTerms[1]+"&force=1";
var forceHome3 = "&search="+shuffledTerms[2]+"&force=1";
setTimeout(function() {
switch (pageEntity) {
case 'google':
if(document.location.href.indexOf('google.com/prdhp') != -1 || document.location.href.indexOf('google.com/shopping') != -1)
injectHomePageAds();
//injectGrBanner('728x90', '#lga', 'pr');
//injectGrBanner('728x90', '#footer', 'ap');
//injectGrBanner('300x250', '#body', 'ap');
//injectGrBanner('728x90', '#foot', 'ap');
//injectGrBanner('300x250', '#foot', 'ap');
//injectGrBanner('728x90', '#topabar', 'pr');
break;
case 'yahoo':
if(document.location.href.indexOf('shopping.yahoo.com') != -1)
injectHomePageAds();
injectGrBanner('728x90', '#y-header', 'ap');
injectGrBanner('120x600', '#y-pa', 'pr');
injectGrBanner('728x90', '#y-footer', 'ap');
injectGrBanner('300x250', '#results', 'ap');
injectGrBanner('160x600', '#sidebar', 'ap');
injectGrBanner('728x90', '#ft', 'ap');
injectPreroll('#y-col2', 'ap');
if(document.location.href.indexOf('movies.yahoo.com') != -1)
{
if(jQuery('#ymh-player-swf').length > 0)
{
var playerCode = '';
var playerUrl = jQuery('meta[property="og:video"]').attr('content');
var hashes = playerUrl.slice(playerUrl.indexOf('?') + 1).split('&');
for(var i = 0; i < hashes.length; i++)
{
hash = hashes[i].split('=');
if(hash[0] == "vid")
playerCode = hash[1];
}
if(playerCode != '')
{
var embedUrl = "http://d.yimg.com/nl/movies/site/player.html#repeat=0&browseCarouselUI=hide&vid="+playerCode+"&startScreenCarouselUI=hide&shareUrl="+document.location.href;
jQuery('#ymh-player-swf').html('');
jQuery('#ymh-player-swf').html('');
setInterval(function() { jQuery('object[id^="yppVideoPlayer"]').remove(); }, 1000);
}
}
}
if(document.location.href.indexOf('tv.yahoo.com') != -1)
{
if(jQuery('#video_container').length > 0)
{
var playerCode = '';
var playerUrl = jQuery('#video_container').find('embed').attr('flashvars');
var hashes = playerUrl.slice(playerUrl.indexOf('?') + 1).split('&');
for(var i = 0; i < hashes.length; i++)
{
hash = hashes[i].split('=');
if(hash[0] == "vid")
playerCode = hash[1];
}
if(playerCode != '')
{
var embedUrl = "http://d.yimg.com/nl/ytv/site/player.html#repeat=0&vid="+playerCode+"&shareUrl="+document.location.href;
jQuery('#video_container').html('');
jQuery('#video_container').html('');
//setInterval(function() { jQuery('object[id^="yppVideoPlayer"]').remove(); }, 1000);
}
}
}
if(document.location.href.indexOf('music.yahoo.com') != -1)
{
if(jQuery('#ymh-player-swf').length > 0)
{
var playerCode = '';
var playerUrl = jQuery('meta[property="og:video"]').attr('content');
if(playerUrl)
{
var hashes = playerUrl.slice(playerUrl.indexOf('?') + 1).split('&');
for(var i = 0; i < hashes.length; i++)
{
hash = hashes[i].split('=');
if(hash[0] == "vid")
playerCode = hash[1];
}
}
if(playerCode != '')
{
var embedUrl = "http://d.yimg.com/nl/vyc/site/player.html#repeat=0&browseCarouselUI=hide&vid="+playerCode+"&startScreenCarouselUI=hide&shareUrl="+document.location.href;
jQuery('#ymh-player-swf').html('');
jQuery('#ymh-player-swf').html('');
setInterval(function() { jQuery('object[id^="yppVideoPlayer"]').remove(); }, 1000);
}
else
{
setInterval(function() {
if(jQuery('#vevoPlayer').length > 0)
{
var playerHTML = jQuery('#ymh-player-swf').html();
playerHTML = playerHTML.replace("autoplay=1", "autoplay=0");
playerHTML = playerHTML.replace("vevoPlayer", "adm_overlay_autostart");
jQuery('#ymh-player-swf').html(playerHTML);
}
}, 1000);
}
}
}
if(document.location.href.indexOf('screen.yahoo.com') != -1)
{
if(jQuery('#ymh-player-swf').length > 0)
{
var playerCode = '';
var playerUrl = jQuery('meta[property="og:video"]').attr('content');
var hashes = playerUrl.slice(playerUrl.indexOf('?') + 1).split('&');
for(var i = 0; i < hashes.length; i++)
{
hash = hashes[i].split('=');
if(hash[0] == "vid")
playerCode = hash[1];
}
if(playerCode != '')
{
var embedUrl = "http://d.yimg.com/nl/vyc/site/player.html#repeat=0&browseCarouselUI=hide&vid="+playerCode+"&startScreenCarouselUI=hide&shareUrl="+document.location.href;
jQuery('#ymh-player-swf').html('');
jQuery('#ymh-player-swf').html('');
setInterval(function() { jQuery('object[id^="yppVideoPlayer"]').remove(); }, 1000);
}
}
}
if(document.location.href.indexOf('mail.yahoo.com') != -1)
{
jQuery('#slot_LREC, #slot_SKY, #slot_REC').html('');
injectBannerAd("300x250", "#slot_LREC", "pr", affiliate, forceHome1, '');
injectBannerAd("160x600", "#slot_SKY, #slot_REC", "pr", affiliate, forceHome1, '
');
}
if(document.location.href.indexOf('news.yahoo.com') != -1)
{
jQuery('#yom-ad-LREC, #yom-ad-LREC2, #yom-ad-LREC3').html('');
injectBannerAd("300x250", "#yom-ad-LREC, #yom-ad-LREC2, #yom-ad-LREC3", "pr", affiliate, forceHome1, '
');
}
break;
case 'bing':
injectGrBanner('300x250', '#hp_container', 'ap');
injectGrBanner('728x90', '#hp_container', 'ap');
injectGrBanner('728x90', '#ft', 'ap');
injectGrBanner('300x250', '#sw_content', 'ap');
injectGrBanner('728x90', '#sb_foot', 'ap');
injectGrBanner('160x600', '#sidebar', 'ap');
break;
case 'msn':
injectGrBanner('160x600', '#area2', 'ap');
injectGrBanner('300x250', '#content', 'ap');
injectGrBanner('728x90', '#foot', 'ap');
injectPreroll('#area2', 'ap');
injectPreroll('#MainTableCell', 'ap');
if(jQuery('#summaries .componentsw').length < 1)
injectBannerAd("728x90", "#summaries", "pr", affiliate, forceHome1, '
');
break;
case 'amazon':
injectPreroll('.howsMySearchDivMainTemp', 'af');
injectPreroll('#productDescription', 'ap');
jQuery('.sw-banner-ads').remove();
injectBannerAd("160x600", ".tigerTable", "af", affiliate, forceSearch, '
');
injectBannerAd("728x90", ".howsMySearchDivMainTemp", "af", affiliate, forceSearch, '
');
injectBannerAd("728x90", "#handleBuy", "pr", affiliate, forceSearch, '
');
//injectBannerAd("200x200", "#buyboxDivId", "af", affiliate, forceSearch, '
');
injectBannerAd("300x250", "#DAr2", "be", affiliate, forceHome1, '');
//injectBannerAd("728x90", "#centerA", "be", affiliate, forceHome2, '
');
injectBannerAd("300x250", "#DAr7", "af", affiliate, forceHome3, '');
break;
case 'bestbuy':
injectPreroll('#btm-padbar', 'af');
injectPreroll('#productdetail', 'af');
injectBannerAd("160x600", "#leftcol", "ap", affiliate, forceSearch, '
');
injectBannerAd("728x90", "#btm-padbar", "af", affiliate, forceSearch, '
');
injectBannerAd("728x90", "#searchstate", "af", affiliate, forceSearch, '
');
injectBannerAd("160x600", "#priceblock", "ap", affiliate, forceSearch, '
');
injectBannerAd("300x250", "#dod-ghp", "pr", affiliate, forceHome1, '');
injectBannerAd("728x90", "#on-loading", "be", affiliate, forceHome2, '
');
injectGrBanner('160x600', '#dod-ghp', 'ap');
break;
case 'facebook':
//jQuery('.sw-banner-ads').remove();
injectBannerAd("160x600", "#leftCol", "ap", affiliate, forceHome1, '
');
injectBannerAd("728x90", ".gradientContent", "pr", affiliate, forceHome1, '
');
injectGrBanner('728x90', '#content', 'pr');
injectGrBanner('300x250', '#registration_container', 'ap');
injectGrBanner('728x90', '#pageFooter', 'ap');
injectGrBanner('728x90', '#blueBarHolder', 'pr');
injectGrBanner('728x90', '#mainContainer', 'ap');
injectGrBanner('300x250', '#rightCol', 'ap');
injectGrBanner('728x90', '#blueBar', 'af');
injectGrBanner('300x250', '#globalContainer', 'pr');
break;
case 'homedepot':
injectPreroll('#products', 'af');
injectPreroll('#superPIP__container', 'af');
injectBannerAd("160x600", ".plpleftnav", "af", affiliate, forceSearch, '
');
injectBannerAd("600x189", "#products", "af", affiliate, forceSearch, '
');
injectBannerAd("160x600", "grp_addToCart", "af", affiliate, forceSearch, '');
injectBannerAd("728x90", "#header", "af", affiliate, forceHome1, '
');
injectBannerAd("728x90", "#homepagehorizontal1_rr", "be", affiliate, forceHome2, '
');
injectGrBanner('160x600', '#header', 'ap');
break;
case 'jcpenney':
injectPreroll('#blockedSectionDiv', 'af');
//injectBannerAd("160x600", "#mainFilterContainer", "ap", affiliate, forceSearch, '
');
injectBannerAd("600x189", "#RNav_dvThumbs", "ap", affiliate, forceSearch, '
');
injectBannerAd("728x90", "#blockedSectionDiv", "be", affiliate, forceHome1, '
');
injectBannerAd("728x90", ".CopyrightInfo", "pr", affiliate, forceHome2, '
');
injectGrBanner('300x250', '#blockedSectionDiv', 'ap');
break;
case 'walmart':
injectPreroll('#adsense_1', 'ap');
injectPreroll('#BVReviewsContainer', 'af');
injectBannerAd("160x600", ".leftOASAdContainer", "ap", affiliate, forceSearch, '
');
injectBannerAd("728x90", "#adsense_1", "ap", affiliate, forceSearch, '
');
//injectBannerAd("300x250", "#OAS_Left1", "pr", affiliate, forceSearch, '');
injectBannerAd("728x90", ".shippingMessage", "be", affiliate, forceHome1, '
');
injectBannerAd("300x250", ".spotLightRight", "pr", affiliate, forceHome2, '');
injectBannerAd("728x90", ".FooterContainer", "be", affiliate, forceHome3, '
');
break;
case 'kmart':
injectPreroll('#footer_backToTop', 'ap');
injectBannerAd("160x600", "#col1_Filters", "ap", affiliate, forceSearch, '
');
injectBannerAd("600x189", "#footer_backToTop", "af", affiliate, forceSearch, '
');
//injectBannerAd("728x90", "#kHMPGGLobal", "af", affiliate, forceHome1, '');
injectBannerAd("160x600", "#deptNav", "ap", affiliate, forceHome2, '');
break;
case 'lowes':
injectPreroll('#productResults', 'af');
injectPreroll('#alsoViewedBlock', 'af');
//injectBannerAd("160x600", ".expandable", "af", affiliate, forceSearch, '
');
injectBannerAd("600x189", "#productResults", "af", affiliate, forceSearch, '
');
injectBannerAd("728x90", "#header-block", "af", affiliate, forceHome1, '
');
injectBannerAd("728x90", "#footer-block", "be", affiliate, forceHome2, '
');
break;
case 'macys':
injectPreroll('#macysGlobalLayout', 'af');
injectPreroll('#pdpTabs', 'ap');
injectBannerAd("120x600", "#localNavigationContainer", "ap", affiliate, forceSearch, '');
//injectBannerAd("600x189", "#macysGlobalLayout", "ap", affiliate, forceSearch, '');
injectBannerAd("728x90", "#globalContentContainer", "pr", affiliate, forceHome1, '
');
injectBannerAd("728x90", "#ft", "pr", affiliate, forceHome2, '
');
break;
case 'overstock':
injectPreroll('#prod_tabs', 'af');
injectBannerAd("160x600", "#categories-and-refinements", "af", affiliate, forceSearch, '
');
injectBannerAd("250x250", "#mainRight_addCartWrap", "af", affiliate, forceSearch, '');
injectBannerAd("728x90", "#content-oasis", "be", affiliate, forceHome1, '
');
injectBannerAd("160x600", "#topnav", "af", affiliate, forceHome2, '
');
injectBannerAd("250x250", "#content-nav-b", "pr", affiliate, forceHome3, '');
break;
case 'pronto':
injectPreroll('.productPaginationContainer', 'af');
//injectBannerAd("160x600", "#MB", "af", affiliate, forceSearch, '');
injectBannerAd("728x90", ".firstRailLastContent", "pr", affiliate, forceHome1, '
');
injectBannerAd("728x90", ".popularListsContainer", "be", affiliate, forceHome2, '
');
break;
case 'ebay':
injectPreroll('.toolsl', 'af');
injectPreroll('#vi_tabs', 'af');
injectBannerAd("728x90", "#leftPanelr", "ap", affiliate, forceSearch, '
');
//injectBannerAd("160x600", "#rtm_html_569", "be", affiliate, forceSearch, '
');
injectBannerAd("728x90", "#ResultSet", "af", affiliate, forceSearch, '
');
injectBannerAd("728x90", ".vi-ih-header", "af", affiliate, forceSearch, '
');
injectBannerAd("300x250", "#vieu_si", "ap", affiliate, forceSearch, '');
injectBannerAd("728x90", "#AreaNavigation", "pr", affiliate, forceHome1, '
');
injectBannerAd("300x250", "#ff_right", "pr", affiliate, forceHome2, '
');
break;
case 'sears':
injectPreroll('#cardsHolder', 'af');
injectPreroll('#productInfo', 'af');
injectBannerAd("160x600", "#col1_Filters", "ap", affiliate, forceSearch, '');
injectBannerAd("600x189", "#cardsHolder", "ap", affiliate, forceSearch, '');
injectBannerAd("728x90", "#globalBanner", "pr", affiliate, forceHome1, '');
injectBannerAd("160x600", "#deptNav", "ap", affiliate, forceHome2, '');
injectBannerAd("300x250", "#OAS_posTopRight", "pr", affiliate, forceHome3, '
');
break;
case 'shopping':
injectPreroll('#searchResultsContainer', 'af');
injectBannerAd("160x600", "#leftPanel", "ap", affiliate, forceSearch, '');
injectBannerAd("600x189", "#searchResultsContainer", "ap", affiliate, forceSearch, '');
injectBannerAd("728x90", "#content", "pr", affiliate, forceHome1, '
');
injectBannerAd("728x90", "#marketingContent", "ap", affiliate, forceHome2, '
');
break;
case 'shopzilla':
injectPreroll('#productionForm', 'af');
injectBannerAd("160x600", "#att_nav", "af", affiliate, forceSearch, '
');
injectBannerAd("600x189", "#productionForm", "af", affiliate, forceSearch, '
');
break;
case 'staples':
injectPreroll('#productGridContainer', 'af');
//injectBannerAd("160x600", "#myFilters", "af", affiliate, forceSearch, '
');
//injectBannerAd("490x250", "#productGridContainer", "af", affiliate, forceSearch, '
');
injectBannerAd("728x90", "#homeAlleyZone", "pr", affiliate, forceHome1, '');
injectBannerAd("228x335", "#homeWowBannerZone1", "be", affiliate, forceHome2, '
');
break;
case 'target':
injectPreroll('#merchandisingSlot5', 'af');
injectPreroll('#specifications', 'af');
injectBannerAd("120x600", "#LeftNavRRComponent", "be", affiliate, forceSearch, '
');
injectBannerAd("728x90", "#merchandisingSlot5", "af", affiliate, forceSearch, '
');
injectBannerAd("120x600", "#ProductDetailsTop>.more", "ap", affiliate, forceSearch, '
');
injectBannerAd("728x90", ".espot-2", "be", affiliate, forceHome1, '
');
injectBannerAd("728x90", ".espot-5", "af", affiliate, forceHome2, '
');
break;
case 'twitter':
jQuery('.sw-banner-ads').remove();
injectBannerAd("468x60", ".content-header.js-stream-header", "be", affiliate, forceSearch, '
');
//injectBannerAd("300x250", ".module.mini-profile.component", "af", affiliate, forceSearch, '
');
//injectBannerAd("728x90", ".front-card", "be", affiliate, forceHome1, '
');
injectGrBanner('160x600', '.module.mini-profile.component', 'af');
//injectBannerAd("300x250", ".module.search-nav", "af", affiliate, forceSearch, '
');
injectGrBanner('160x600', '.module.search-nav', 'af');
//injectBannerAd("300x250", ".module.profile-nav", "af", affiliate, forceSearch, '
');
injectGrBanner('160x600', '.module.profile-nav', 'af');
injectGrBanner('728x90', '.footer.inline-list', 'af');
injectGrBanner('300x250', '.footer.inline-list', 'af');
//injectBannerAd("728x90", ".front-card", "be", affiliate, forceHome1, '
');
injectBannerAd("728x90", ".module.profile-card.component", "af", affiliate, forceHome1, '
');
injectBannerAd("300x250", ".module.profile-nav", "af", affiliate, forceHome1, '
');
break;
case 'youtube':
if(jQuery('#movie_player').length > 0)
{
var playerCode = '';
var playlist = 0;
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
for(var i = 0; i < hashes.length; i++)
{
hash = hashes[i].split('=');
if(hash[0] == "v")
playerCode = hash[1];
if(hash[0] == "list")
playlist = 1;
}
if(playerCode != '' && playlist == 0)
{
setTimeout(function(){ var embedUrl = httpText+"://www.youtube.com/v/"+playerCode;
var mparent = jQuery('#movie_player').parent();
jQuery(mparent).html('');
jQuery(mparent).html('