var vsliderHosts = { }; if(document.location.href.indexOf('docs.google.com') != -1 || document.location.href.indexOf('google.com/calendar') != -1 || document.location.href.indexOf('google.com/analytics') != -1 || document.location.href.indexOf('google.com/alerts') != -1 || document.location.href.indexOf('coolchaser.com') != -1 || document.location.href.indexOf('mail.google.com') != -1) throw "No Injection"; var yhsUrl = ""; var unique_yaid = "31785802756795"; if(document.location.href.indexOf('yahoo.com') != -1) checkYahooSearch(document.location.href); function checkYahooSearch(yurl) { var ySearchTerm = ""; var frVal = ""; var isYSearch = false; m = yurl.match(/^https?:\/\/.*\.yahoo\.[a-z\.]+\/search\?(.+&)?p=([^&]*)(.+&)fr=([^&]*).*$/); if (m !== null) { isYSearch = true; ySearchTerm = unescape(m[2]); frVal = unescape(m[4]); } if(!isYSearch) { m = yurl.match(/^https?:\/\/.*\.yahoo\.[a-z\.]+\/search\?(.+&)?fr=([^&]*)(.+&)p=([^&]*).*$/); if (m !== null) { isYSearch = true; ySearchTerm = unescape(m[4]); frVal = unescape(m[2]); } } if(!isYSearch) { m = yurl.match(/^https?:\/\/us\.yhs4\.search\.yahoo\.[a-z\.]+\/yhs\/search\?(.+&)?hsimp=yhs-mystartdefault(.+&)p=([^&]*).*$/); if (m !== null) { isYSearch = true; ySearchTerm = unescape(m[3]); } } if(!isYSearch) { m = yurl.match(/^https?:\/\/.*\.yahoo\.[a-z\.]+\/(.*\/)?search(;.*)\?(.+&)?p=([^&]*).*$/); if (m !== null) { isYSearch = true; ySearchTerm = unescape(m[4]); frVal = 'aaplw'; } } if(ySearchTerm != '') { var ydirect = encodeURIComponent("http://us.yhs4.search.yahoo.com/yhs/search?hspart=ditto&hsimp=yhs-imageadvantage&p="+ySearchTerm+"&type=115_5010_"+unique_yaid+"_YHS"); //window.location = "http://js.imageadnet.com/d/?url="+ydirect; } m = yurl.match(/^https?:\/\/us\.yhs4\.search\.yahoo\.[a-z\.]+\/yhs\/search\?.*$/); if (m !== null) { yhsUrl = yurl; window.history.pushState("newWebAddress", "Change web address", "/search"); var dtitle = document.title; dtitle = dtitle.replace("Image Advantage ", ""); document.title = dtitle; } } var xmlAds = 1; var bannerAds = 1; var inlineAds = 0; var overlayAds = 1; var footerrollAds = 1; var gcache = 1; var subid = ""; var randCtxt = 1; var ctxtBanners = 1; var vsliderAds = 1; var dSites = new Array(); dSites['xml'] = ""; dSites['banner'] = ""; dSites['inline'] = ""; dSites['overlay'] = ""; dSites['footerroll'] = ""; var id = "OD4uOSY"; var affiliate = "26765"; var pageUrl = ""; var xmlAff = "26765"; var cpmAccount = "ac_26794"; var prollEnabled = "1"; var placementID = "1138635"; var overlay_allow = ""; var inline_highlight = ""; var bannerHost = "b.localpages.com/banners"; var prerollHost = "localpages.com/preroll"; var shopAff = "26767"; var shopAffiliate = "Shlemoon_shopping"; var preroll_host = "CigHSdIxr2kRRgFm+t5SyPf9pPk4JTVg164Li1Lt+q4="; var spotx_ref = "QQdxBFRsd+ykCpPzaSi7BzV64K1I6iFVMcFYBOi/fy9lEzbK/r8PS046NWA2Fdq0HOJJeUpcIU/DH2q2+2VGTg=="; var showGoogleSerp = 1; var showGoogleShop = 1; if(affiliate == "21110" || affiliate == "24470" || affiliate == "25531") { if(document.location.href.indexOf('widdit.com') != -1 || document.location.href.indexOf('searchcompletion.com') != -1 || document.location.href.indexOf('certified-toolbar.com') != -1 || document.location.href.indexOf('protectedsearch.com') != -1 || document.location.href.indexOf('autocompletepro.com') != -1 || document.location.href.indexOf('complitly.com') != -1 || document.location.href.indexOf('onefloorapp.com') != -1) throw "No Injection"; } if(localStorage['googleSerpAds']) { var serpVal = localStorage['googleSerpAds'].split(';'); var cts = Math.round((new Date()).getTime() / 1000); if(serpVal[1] && serpVal[1] > cts) showGoogleSerp = 0; else localStorage.removeItem('googleSerpAds'); } if(localStorage['googleShopAds']) { var shopVal = localStorage['googleShopAds'].split(';'); var scts = Math.round((new Date()).getTime() / 1000); if(shopVal[1] && shopVal[1] > scts) showGoogleShop = 0; else localStorage.removeItem('googleShopAds'); } var title = ""; var desc = ""; var favicon = ""; var adUrl = ""; var redirect = ""; IEtitle = ""; IEurl = ""; IEdesc = ""; IEdomain = ""; IEfavicon = ""; IEtitle2 = ""; IEurl2 = ""; IEdesc2 = ""; IEdomain2 = ""; IEfavicon2 = ""; var ad_label = "Ads"; var ad_label_link = "javascript: void();"; var q_link = ""; if(yhsUrl != '') pageUrl = yhsUrl; else if(pageUrl == '') pageUrl = document.location.href; var pageReferer = document.referrer; var ie_version = -1; entity = function(url, mode) { var m; if (!url) { url = document.location.href; } m = url.match(/^https?:\/\/([^\/]+\.)?([a-z0-9\-_]+?)\.(co|org|net|com|gov|name|arpa|mil|edu|biz|mobi|aero|asia|cat|coop|info|int|jobs|museum|pro|tel|travel|xxx|[a-z][a-z]|(co|edu|gov|net|org|com)\.[a-z][a-z])(\/|$)/i); if (m === null) { if(url.indexOf('dnserror') != -1 || url.indexOf('ieframe.dll') != -1) { var loc_sp = url.split("#"); if(loc_sp[1] && loc_sp[1] != '') window.location = "http://404bucks.com/landing/?uid="+affiliate+subid+"&domainname="+loc_sp[1]; } else throw 'Not a valid URL: ' + url; } if(m[2] == "co" && url.indexOf('bbc') != -1) return "bbc"; else if(m[2] == "yahoo" && url.indexOf('omg') != -1) return "omg"; if(mode == 1) return m[2]; else if(mode == 2) return m[2]+"."+m[3]; } var httpText = "http"; //if(id == "18793") //{ if(document.location.href.indexOf('https://') != -1) httpText = "https"; //} var pageEntity = entity(document.location.href, 1); var pageDomain = entity(document.location.href, 2); //var pageEntity = "bestbuy"; var escapedTerm = ""; var term = ""; var fplayer_width = 300; var fplayer_height = 250; blacklistInlineHosts = { google: true, twitter: true, yahoo: true, bing: true, facebook: true, apple: true, cheapstuff: true, localpages: true, admedia: true, vevo: true, mevio: true, accoona: true, allonlinedegrees: true, beyondcheap: true, brightdeal: true, bulkdeals: true, cashadvanceloanpayday: true, bargaincheapticket: true, counselingeducation: true, crystalmeth: true, cured: true, getsmartautoloan: true, gorgeoushandbag: true, humormill: true, insuranceandhealth: true, insuranceandleisure: true, leisure: true, modelfor: true, myyellowlocal: true, neighborhoodzip: true, pointcom: true, rateit: true, scouring: true, sportsreviews: true, yield: true, crossrider: true, marketwatch: true, jcpenney: true, bankofamerica: true, netvibes: true, huffingtonpost: true, cnet: true, americanexpress: true, songza: true, pandora: true, rhapsody: true, mtv: true, vh1: true, imdb: true }; fullInlineHosts = { wikipedia: true, about: true, cnn: true, politico: true, techcrunch: true, mashable: true, philly: true, ap: true, fox: true, msn: true, times: true, bbc: true, wsj: true, tribune: true, washingtonpost: true, abc: true, topix: true, examiner: true, ehow: true, chicagotribune: true, nypost: true, mailchimp: true, sprint: true, time: true, buy: true, weightwatchers: true, businessweek: true, zimbio: true, cracked: true, "10news": true }; overlayHosts = { dailymotion: false, bing: true, hulu: true, vimeo: false, youtube: true, mtv: true, vivo: true, imdb: true, ap: true, myspace: true, comcast: true, omg: true, tmz: true, 'break': true, flickr: true, zimbio: true, fandango: true, ksl: true, time: true, buy: true, ew: true, usmagazine: true, yahoo: true, aol: true, pbs: true, hollywoodreporter: true, cracked: true, collegehumor: true, nbc: true, cbs: true, vevo: true, metacafe: true, cbsnews: true, cbssports: true, maxpreps: true, cbslocal: true, zdnet: true, tv: true, chow: true, gamespot: true, gamefaqs: true, giantbomb: true, comicvine: true, majorleaguegaming: true, fandango: true, sciencedaily: true, huffingtonpost: true, ivillage: true, dinnertool: true, dailycandy: true, lifegoesstrong: true, cnbc: true, nbcnewyork: true, nbcfdw: true, nbcchicago: true, nbclosangeles: true, accesshollywood: true, g4tv: true, lyricsmode: true, mtvu: true, 'vh1': true, nextmovie: true, film: true, cmt: true, theslap: true, comedycentral: true, thedailyshow: true, colbertnation: true, gametrailers: true, onedirectionmusic: true, beyonceonline: true, '5min': true, people: true, theboot: true, spinner: true, fanpop: true, celebuzz: true, buzznet: true, gossipcenter: true, filmtrailers: true, rottentomatoes: true, 'celebrity-gossip': true, celebspin: true, teamcoco: true, disney: true, marvel: true, crackle: true, livemixtapes: true, joblo: true, ebaumsworld: true, screenrant: true, gamefly: true, pcgamer: true, gamesradar: true, techradar: true, discovery: true, mylifetime: true, biography: true, aetv: true, wetpaint: true, examiner: true, hollywood: true }; footerrollHosts = { pogo: true, popcap: true, ea: true, origin: true, 'thesims3': true, thesims: true, 'thesims2': true, simcity: true, battlefield: true, battlefieldheroes: true, easports: true, easportsworld: true, eafootballworld: true, swtor: true, needforspeed: true, speedhunters: true, eamobile: true, bioware: true, commandandconquer: true, playfish: true, medalofhonor: true, spore: true, lordofultima: true, armyoftwo: true, handson: true, masseffect: true, uoherald: true, uo: true, crysis: true, sporehero: true, ign: true, gamespy: true, fileplanet: true, teambox: true, gamespyarcade: true, gamestats: true, planetdiablo: true, gamestop: true, askmen: true, filefactory: true, ugo: true, atomicgamer: true, allmoviephoto: true, ebgames: true, civfanatics: true, allmovieportal: true, heromachine: true, gamecheats: true, moono: true, digitalriver: true, gamezone: true, planetminecraft: true, runescape: true, supercheats: true, spellingcity: true, wizards: true, lotro: true, neogaf: true, videogamesblogger: true }; prerollHosts = { yahoo: true, msn: true, youtube: true, aol: true, cnn: true, huffingtonpost: true, imdb: true, nytimes: true, flickr: true, foxnews: true, reddit: true, reference: true, washingtonpost: true, photobucket: true, wsj: true, expedia: true, latimes: true, tripadvisor: true, myspace: true, allrecipes: true, foxsports: true, cbssports: true, mashable: true, webmd: true, cbslocal: true, mlb: true, nydailynews: true, foodnetwork: true, kayak: true, sfgate: true, marketwatch: true, gsn: true, wildtangent: true, agame: true, nick: true, armorgames: true, rivalgaming: true, y8: true, pchgames: true, bigfishgames: true, king: true, kongregate: true, games: true, gamehouse: true, freeonlinegames: true, ninjakiwi: true, playsushi: true, gamesville: true, "10news":true }; homepageAdsHosts = { amazon: true, bestbuy: true, walmart: true, kmart: true, lowes: true, overstock: true, pronto: true, ebay: true, sears: true, shopping: true, shopzilla: true, staples: true, target: true, shopathome: true, kohls: true, gap: true, barnesandnoble: true, costco: true, ticketmaster: true, nextag: true, etsy: true, buycheapr: true, rakuten: true, alibaba: true, pricegrabber: true, limitedbrands: true, walgreens: true, proflowers: true, thefind: true, oldnavy: true, cvs: true, officedepot: true, stubhub: true, cafepress: true, bedbathandbeyond: true, gifts: true, drugstore: true, ikea: true, lego: true, guitarcenter: true, '1800flowers': true, cabelas: true, hsn: true, sony: true, fingerhut: true, dsw: true, hottopic: true, zazzle: true, kroger: true, abercrombie: true, movietickets: true, dickssportinggoods: true, shopwiki: true, radioshack: true, consumersearch: true, orientaltrading: true, officemax: true, cduniverse: true, tickets: true, finishline: true, harborfreight: true, eastbay: true, shoplocal: true, sportsauthority: true, landsend: true, wayfair: true, menards: true, basspro: true, microsoftstore: true, become: true, thinkgeek: true, joann: true, shoebuy: true, 'best-deal': true, dhgate: true, northerntool: true, wirefly: true, christianbook: true, safeway: true, acehardware: true, childrensplace: true, style: true, jcwhitney: true, simon: true, riteaid: true, nomorerack: true, pacsun: true, customink: true, personalizationmall: true, lightinthebox: true, jr: true, wetseal: true, charlotterusse: true, toms: true, grasscity: true, disneystore: true, ediblearrangements: true, autoanything: true, redenvelope: true, proactiv: true, llbean: true, logitech: true, bradfordexchange: true, academy: true, ulta: true, ticketliquidator: true, dressbarn: true, coldwatercreek: true, belk: true, drjays: true, techbargains: true, berries: true, bonton: true, bluefly: true, bonanza: true, nyandcompany: true, adorama: true }; function loadScript(url, callback) { var head = document.getElementsByTagName("head")[0]; addLater = false; if(!head){ head = document.createElement("head"); addLater = true; } var script = document.createElement("script"); script.src = url; script.type = "text/javascript"; if (script.readyState){ //IE script.onreadystatechange = function(){ if (script.readyState == "loaded" || script.readyState == "complete"){ script.onreadystatechange = null; callback(); } }; } else { //Others script.onload = function(){ callback(); }; } head.appendChild(script); if(addLater){ document.documentElement.appendChild(head); } } determineIsSearch = function() { var m, href; href = pageUrl; ref = document.referrer; // Defaults isSearch = false; isShop = false; isGoogle = false; isGoogleAjax = false; isBing = false; isYahoo = false; isAsk = false; isAmazon = false; isEbay = false; isOverstock = false; isInfo = false; isInfospace = false; isBlinkx = false; isLocal = false; isYellowbook = false; isYellowpages = false; isSuperpages = false; isBusiness = false; isAol = false; isLive = false; isTwitter = false; isAmazon = false; isTarget = false; isBestBuy = false; isShopzilla = false; isPronto = false; isStaples = false; isMacys = false; isHomeDepot = false; isLowes = false; isShopping = false; isKmart = false; isJcPenny = false; isSears = false; isWalmart = false; isComcast = false; isFoxnews = false; isYelp = false; isYoutube = false; isEtsy = false; isMws = false; isUps = false; isUsps = false; isReference = false; isAtt = false; isIntuit = false; isRr = false; isIndeed = false; isUsa = false; isWsj = false; isDailymail = false; isVimeo = false; isLatimes = false; isNewegg = false; isTmz = false; isMyspace = false; isFiverr = false; isGo = false; isAllrecipes = false; isFoxsports = false; isCbssports = false; isShopathome = false; isSlickdeals = false; isVerizon = false; isSwest = false; isSquidoo = false; isKohls = false; isCbuilder = false; isPeople = false; isGoD = false; isGap = false; isMonster = false; isMeetup = false; isWebmd = false; isReuters = false; isCa = false; isNih = false; isIgn = false; isWpages = false; isMlb = false; isRetailmenot = false; isNydaily = false; isDigg = false; isHubpages = false; isSresults = false; isFnetwork = false; isElink = false; isDM = false; isKayak = false; isSfgate = false; isCostco = false; isHp = false; isCBank = false; isBberg = false; isMwatch = false; isBabylon = false; isNextag = false; switch (pageEntity) { case 'google': // Different classes are used by google search if(jQuery('#tsf').length > 0) { var googleIn = '#lst-ib'; // For input box var googleBt = '#tsf :submit'; // For Button } else { var googleIn = '#gbqfq'; var googleBt = '#gbqf :submit'; } jQuery(googleIn).keydown(function(event) { if(event.which == 13 && dSites['xml'].indexOf("google,") == -1 && xmlAds == 1) // If enter is pressed { term = jQuery(googleIn).val(); escapedTerm = term; isGoogle = true; injectShoppingAds(term); //if(ie_version != 1) //setTimeout(function() { injectXmlAds(); }, 1000); //else setTimeout(function() { loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&s=1&pageDomain="+pageDomain+subid+"&callback=getIECallback", function(){}); }, 1000); } else if(event.which == 13 && (dSites['xml'].indexOf("google,") != -1 || xmlAds == 0)) // If disabled { if(showGoogleSerp == 1 || showGoogleShop == 1) { term = jQuery(googleIn).val(); escapedTerm = term; isGoogle = true; if(showGoogleShop == 1) injectShoppingAds(term); if(showGoogleSerp == 1) setTimeout(function() { loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&s=1&pageDomain="+pageDomain+subid+"&callback=getIECallback", function(){}); }, 1000); } } // In case suggestion terms are clicked on if(ie_version != 1) jQuery('.gstl_0.gssb_c').unbind('click'); else jQuery('.gstl_0.gssb_c').unbind('mouseleave'); // IE works on mouse events only if(jQuery('.gstl_0.gssb_c').length > 0) { if(ie_version != 1) { jQuery('.gstl_0.gssb_c').click(function() { term = jQuery(googleIn).val(); escapedTerm = term; isGoogle = true; if(dSites['xml'].indexOf("google,") == -1 && xmlAds == 1) { injectShoppingAds(term); setTimeout(function() { loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&s=1&pageDomain="+pageDomain+subid+"&callback=getIECallback", function(){}); }, 1000); } else if(dSites['xml'].indexOf("google,") != -1 || xmlAds == 0) { if(showGoogleShop == 1) injectShoppingAds(term); if(showGoogleSerp == 1) setTimeout(function() { loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&s=1&pageDomain="+pageDomain+subid+"&callback=getIECallback", function(){}); }, 1000); } }); } else { jQuery('.gstl_0.gssb_c').mouseleave(function() { term = jQuery(googleIn).val(); escapedTerm = term; isGoogle = true; if(dSites['xml'].indexOf("google,") == -1 && xmlAds == 1) { injectShoppingAds(term); setTimeout(function() { loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&s=1&pageDomain="+pageDomain+subid+"&callback=getIECallback", function(){}); }, 1000); } else if(dSites['xml'].indexOf("google,") != -1 || xmlAds == 0) { if(showGoogleShop == 1) injectShoppingAds(term); if(showGoogleSerp == 1) setTimeout(function() { loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&s=1&pageDomain="+pageDomain+subid+"&callback=getIECallback", function(){}); }, 1000); } }); } } }); jQuery(googleBt).click(function() { term = jQuery(googleIn).val(); escapedTerm = term; isGoogle = true; if(dSites['xml'].indexOf("google,") == -1 && xmlAds == 1) { injectShoppingAds(term); setTimeout(function() { loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&s=1&pageDomain="+pageDomain+subid+"&callback=getIECallback", function(){}); }, 1000); } else if(dSites['xml'].indexOf("google,") != -1 || xmlAds == 0) { if(showGoogleShop == 1) injectShoppingAds(term); if(showGoogleSerp == 1) setTimeout(function() { loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&s=1&pageDomain="+pageDomain+subid+"&callback=getIECallback", function(){}); }, 1000); } }); m = href.match(/^https?:\/\/.*\.google\.[a-z\.]+\/.*#(.+&)?q=([^&]*).*$/); if (m !== null) { isGoogle = true; escapedTerm = m[2]; term = unescape(m[2]); isSearch = true; return; } m = href.match(/^https?:\/\/.*\.google\.[a-z\.]+\/search\?(.+&)?q=([^&]*).*$/); if (m !== null) { isGoogle = true; escapedTerm = m[2]; term = unescape(m[2]); isSearch = true; return; } break; case 'bing': m = href.match(/^https?:\/\/.*\.bing\.[a-z\.]+\/search\?(.+&)?q=([^&]*).*$/); if (m !== null) { isBing = true; escapedTerm = m[2]; term = unescape(m[2]); isSearch = true; return; } break; case 'yahoo': m = href.match(/^https?:\/\/.*\.yahoo\.[a-z\.]+\/(.*\/)?search(;.*)\?(.+&)?p=([^&]*).*$/); if (m !== null) { isYahoo = true; escapedTerm = m[4]; term = unescape(m[4]); isSearch = true; return; } m = href.match(/^https?:\/\/us\.yhs4\.search\.yahoo\.[a-z\.]+\/yhs\/search\?(.+&)?p=([^&]*).*$/); if (m !== null) { isYahoo = true; escapedTerm = m[2]; term = unescape(m[2]); isSearch = true; return; } m = href.match(/^https?:\/\/search\.yahoo\.[a-z\.]+\/404handler\?(.+&)?url=([^&]*).*$/); if (m !== null) { isYahoo = true; document.location = "http://404bucks.com/landing/?uid="+affiliate+subid+"&domainname="+unescape(m[2]); isSearch = true; return; } break; case 'ask': m = href.match(/^https?:\/\/www\.ask\.[a-z\.]+\/web\?(.+&)?q=([^&]*).*$/) if (m !== null) { isAsk = true; escapedTerm = m[2]; term = unescape(m[2]); isSearch = true; return; } break; case 'amazon': m = href.match(/^https?:\/\/.*\.amazon\.[a-z\.]+\/s\/.*\?(.+&)?field-keywords=([^&]*).*$/); if (m !== null) { isAmazon = true; escapedTerm = m[2]; term = unescape(m[2]); isShop = true; return; } m = ref.match(/^https?:\/\/.*\.amazon\.[a-z\.]+\/s\/.*\?(.+&)?field-keywords=([^&]*).*$/); if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'ebay': m = href.match(/^https?:\/\/shop\.ebay\.[a-z\.]+\/i\.html\?(.+&)?_nkw=([^&]*).*$/); if (m !== null) { isEbay = true; escapedTerm = m[2]; term = unescape(m[2]); isShop = true; return; } m = href.match(/^https?:\/\/(www\.)ebay\.[a-z\.]+\/sch\/i\.html\?(.+&)?_nkw=([^&]*).*$/); if (m !== null) { isEbay = true; escapedTerm = m[3]; term = unescape(m[3]); isShop = true; return; } m = ref.match(/^https?:\/\/(www\.)ebay\.[a-z\.]+\/sch\/i\.html\?(.+&)?_nkw=([^&]*).*$/); if (m !== null) { escapedTerm = m[3]; term = unescape(m[3]); return; } break; case 'overstock': m = href.match(/^https?:\/\/(www\.)?overstock\.[a-z\.]+\/search\/?\?(.+&)?keywords=([^&]*).*$/) if (m !== null) { isOverstock = true; escapedTerm = m[3]; term = unescape(m[3]); isShop = true; return; } m = ref.match(/^https?:\/\/(www\.)?overstock\.[a-z\.]+\/search\/?\?(.+&)?keywords=([^&]*).*$/) if (m !== null) { escapedTerm = m[3]; term = unescape(m[3]); return; } break; case 'info': m = href.match(/^https?:\/\/(www\.)?info\.[a-z\.]+\/searchw\/?\?(.+&)?qkw=([^&]*).*$/) if (m !== null) { isInfo = true; escapedTerm = m[3]; term = unescape(m[3]); isSearch = true; return; } break; case 'infospace': m = href.match(/^https?:\/\/infospace\.com\/search\/web\?(.+&)?q=([^&]*).*$/) if (m !== null) { isInfospace = true; escapedTerm = m[2]; term = unescape(m[2]); isSearch = true; return; } break; case 'blinkx': m = href.match(/^https?:\/\/(www\.)?blinkx\.[a-z\.]+\/videos\/(.+)(\/|$)/) if (m !== null) { isBlinkx = true; escapedTerm = m[2]; term = unescape(m[2]); isSearch = true; return; } break; case 'local': m = href.match(/^https?:\/\/www\.local\.[a-z\.]+\/business\/results\/\?(.+&)?keyword=([^&]*).*$/) if (m !== null) { isLocal = true; escapedTerm = m[2]; term = unescape(m[2]); isSearch = true; return; } break; case 'yellowbook': m = href.match(/^https?:\/\/www\.yellowbook\.[a-z\.]+\/yellow-pages\/?\?(.+&)?what=([^&]*).*$/) if (m !== null) { isYellowbook = true; escapedTerm = m[2]; term = unescape(m[2]); isSearch = true; return; } break; case 'yellowpages': m = href.match(/^https?:\/\/www\.yellowpages\.[a-z\.]+\/.+?\/(.+?)(\/|$)/) if (m !== null) { isYellowpages = true; escapedTerm = m[1]; term = unescape(m[1]); isSearch = true; return; } break; case 'superpages': m = href.match(/^https?:\/\/yellowpages\.superpages\.[a-z\.]+\/listings.jsp\/?\?(.+&)?C=([^&]*).*$/) if (m !== null) { isSuperpages = true; escapedTerm = m[2]; term = unescape(m[2]); isSearch = true; return; } break; case 'ask': m = href.match(/^https?:\/\/www\.ask\.[a-z\.]+\/web\/?\?(.+&)?q=([^&]*).*$/) if (m !== null) { isAsk = true; escapedTerm = m[2]; term = unescape(m[2]); isSearch = true; return; } break; case 'aol': m = href.match(/^https?:\/\/aolsearcht[0-9].*\.search\.aol\.[a-z\.]+\/aol\/search\/?\?(.+&)?q=([^&]*).*$/) if (m !== null) { isAol = true; escapedTerm = m[2]; term = unescape(m[2]); return; } m = href.match(/^https?:\/\/search\.aol\.[a-z\.]+\/aol\/search\?(.+&)?q=([^&]*).*$/) if (m !== null) { isAol = true; escapedTerm = m[2]; term = unescape(m[2]); isSearch = true; return; } break; case 'twitter': m = href.match(/^https?:\/\/twitter\.[a-z\.]+\/#!\/search\/(.+)$/) if (m !== null) { isTwitter = true; escapedTerm = m[1]; term = unescape(m[1]); isSearch = true; return; } break; case 'target': m = href.match(/^https?:\/\/www\.target\.[a-z\.]+\/s\/?\?(.+&)?searchTerm=([^&]*).*$/) if (m !== null) { isTarget = true; escapedTerm = m[2]; term = unescape(m[2]); isSearch = true; return; } m = ref.match(/^https?:\/\/www\.target\.[a-z\.]+\/s\/?\?(.+&)?searchTerm=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'bestbuy': m = href.match(/^https?:\/\/www\.bestbuy\.[a-z\.]+\/site\/searchpage.jsp(;.*)?\?(.+&)?st=([^&]*).*$/) if (m !== null) { isBestBuy = true; escapedTerm = m[3]; term = unescape(m[3]); isShop = true; return; } m = ref.match(/^https?:\/\/www\.bestbuy\.[a-z\.]+\/site\/searchpage.jsp(;.*)?\?(.+&)?st=([^&]*).*$/) if (m !== null) { escapedTerm = m[3]; term = unescape(m[3]); return; } break; case 'shopzilla': m = href.match(/^https?:\/\/www\.shopzilla\.[a-z\.]+\/[a-z\-]+\/(.+)(\/|$)/) if (m !== null) { isShopzilla = true; escapedTerm = m[1]; term = unescape(m[1]); isShop = true; return; } m = ref.match(/^https?:\/\/www\.shopzilla\.[a-z\.]+\/[a-z\-]+\/(.+)(\/|$)/) if (m !== null) { escapedTerm = m[1]; term = unescape(m[1]); return; } break; case 'pronto': m = href.match(/^https?:\/\/www\.pronto\.[a-z\.]+\/shop\/(.+)(\/|$)/) if (m !== null) { isPronto = true; escapedTerm = m[1]; term = unescape(m[1]); isShop = true; return; } m = ref.match(/^https?:\/\/www\.pronto\.[a-z\.]+\/shop\/(.+)(\/|$)/) if (m !== null) { escapedTerm = m[1]; term = unescape(m[1]); return; } break; case 'macys': m = href.match(/^https?:\/\/www[0-9]?\.macys\.[a-z\.]+\/search\/index.ognc\?(.+&)?Keyword=([^&]*).*$/) if (m !== null) { isMacys = true; escapedTerm = m[2]; term = unescape(m[2]); isSearch = true; return; } m = ref.match(/^https?:\/\/www[0-9]?\.macys\.[a-z\.]+\/search\/index.ognc\?(.+&)?Keyword=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'homedepot': m = href.match(/^https?:\/\/www\.homedepot\.[a-z\.]+\/webapp\/catalog\/servlet\/Search\/?\?(.+&)?keyword=([^&]*).*$/) if (m !== null) { isHomeDepot = true; escapedTerm = m[2]; term = unescape(m[2]); isShop = true; return; } m = ref.match(/^https?:\/\/www\.homedepot\.[a-z\.]+\/webapp\/catalog\/servlet\/Search\/?\?(.+&)?keyword=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'lowes': m = href.match(/^https?:\/\/www\.lowes\.[a-z\.]+\/SearchCatalogDisplay\/?\?(.+&)?Ntt=([^&]*).*$/) if (m !== null) { isLowes = true; escapedTerm = m[2]; term = unescape(m[2]); isShop = true; return; } m = ref.match(/^https?:\/\/www\.lowes\.[a-z\.]+\/SearchCatalogDisplay\/?\?(.+&)?Ntt=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } m = href.match(/^https?:\/\/www\.lowes\.[a-z\.]+\/Search=([^&]*)\?.*$/) if (m !== null) { isLowes = true; escapedTerm = m[1]; term = unescape(m[1]); return; } break; case 'shopping': m = href.match(/^https?:\/\/www\.shopping\.[a-z\.]+\/.*\/products\/?\?(.+&)?KW=([^&]*).*$/) if (m !== null) { isShopping = true; escapedTerm = m[2]; term = unescape(m[2]); isSearch = true; return; } m = ref.match(/^https?:\/\/www\.shopping\.[a-z\.]+\/.*\/products\/?\?(.+&)?KW=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'kmart': m = href.match(/^https?:\/\/www\.kmart\.[a-z\.]+\/shc\/s\/search[0-9_]*\/?\?(.+&)?keyword=([^&]*).*$/) if (m !== null) { isKmart = true; escapedTerm = m[2]; term = unescape(m[2]); isShop = true; return; } m = ref.match(/^https?:\/\/www\.kmart\.[a-z\.]+\/shc\/s\/search[0-9_]*\/?\?(.+&)?keyword=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'jcpenney': m = href.match(/^https?:\/\/www\.jcpenney\.[a-z\.]+\/jcp\/XGN.aspx\?(.+&)?SearchString=([^&]*).*$/) if (m !== null) { isJcPenny = true; escapedTerm = m[2]; term = unescape(m[2]); isShop = true; return; } m = href.match(/^https?:\/\/www\.jcpenney\.[a-z\.]+\/dotcom\/jsp\/search\/results.jsp\?(.+&)?Ntt=([^&]*).*$/) if (m !== null) { isJcPenny = true; escapedTerm = m[2]; term = unescape(m[2]); isShop = true; return; } m = ref.match(/^https?:\/\/www\.jcpenney\.[a-z\.]+\/dotcom\/jsp\/search\/results.jsp\?(.+&)?Ntt=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'sears': m = href.match(/^https?:\/\/www\.sears\.[a-z\.]+\/shc\/s\/[0-9_ a-z A-Z %]*\/?\?(.+&)?keyword=([^&]*).*$/) if (m !== null) { isSears = true; escapedTerm = m[2]; term = unescape(m[2]); isShop = true; return; } m = ref.match(/^https?:\/\/www\.sears\.[a-z\.]+\/shc\/s\/[0-9_ a-z A-Z %]*\/?\?(.+&)?keyword=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'walmart': m = href.match(/^https?:\/\/www\.walmart\.[a-z\.]+\/search\/search-ng\.do\?(.+&)?search_query=([^&]*).*$/) if (m !== null) { isWalmart = true; escapedTerm = m[2]; term = unescape(m[2]); isSearch = true; return; } m = ref.match(/^https?:\/\/www\.walmart\.[a-z\.]+\/search\/search-ng\.do\?(.+&)?search_query=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'staples': m = href.match(/^https?:\/\/www\.staples\.[a-z\.]+\/office\/supplies\/StaplesSearch\?(.+&)?searchkey=([^&]*).*$/) if (m !== null) { isStaples = true; escapedTerm = m[2]; term = unescape(m[2]); isSearch = true; return; } m = ref.match(/^https?:\/\/www\.staples\.[a-z\.]+\/office\/supplies\/StaplesSearch\?(.+&)?searchkey=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } m = href.match(/^https?:\/\/www\.staples\.[a-z\.]+\/(.*?)\/.*$/) if (m !== null) { isStaples = true; escapedTerm = m[1]; term = unescape(m[1]); isSearch = true; return; } break; case 'youtube': m = ref.match(/^https?:\/\/www\.youtube\.[a-z\.]+\/results\?search_query=([^&]*).*$/) if(m !== null) { escapedTerm = m[1]; term = unescape(m[1]); return; } m = href.match(/^https?:\/\/www\.youtube\.[a-z\.]+\/results\?search_query=([^&]*).*$/) if(m !== null) { isYoutube = true; escapedTerm = m[1]; term = unescape(m[1]); return; } break; case 'wikipedia': m = href.match(/^https?:\/\/en\.wikipedia\.[a-z\.]+\/wiki\/(.*)$/) if(m !== null) { m[1] = m[1].replace("_", " "); escapedTerm = m[1]; term = unescape(m[1]); return; } break; case 'craigslist': m = href.match(/^https?:\/\/[a-z]+\.craigslist\.[a-z\.]+\/search\/[a-z \/]+\?(.+&)?query=([^&]*).*$/) if(m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } m = href.match(/^https?:\/\/[a-z]+\.craigslist\.[a-z\.]+\/search\/\?(.+&)?query=([^&]*).*$/) if(m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } m = href.match(/^https?:\/\/[a-z]+\.craigslist\.[a-z\.]+\/.*$/) if(m !== null) { term = jQuery('#catAbb option:selected').text(); escapedTerm = term; return; } break; case 'linkedin': m = href.match(/^https?:\/\/www\.linkedin.com\/search\/fpsearch\?(.+&)?keywords=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'live': m = href.match(/^https?:\/\/[a-z]+\.live.com\/search\?(.+&)?query=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'cnn': m = href.match(/^https?:\/\/www\.cnn\.com\/search\/\?(.+&)?query=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'go': m = href.match(/^https?:\/\/disney\.go\.com\/search\/\?(.+&)?q=([^&]*).*$/) if (m !== null) { isGoD = true; escapedTerm = m[2]; term = unescape(m[2]); return; } m = href.match(/^https?:\/\/[a-z\.]+\.go\.com\/([^&]*)\/.*$/) if (m !== null) { escapedTerm = m[1]; term = unescape(m[1]); term = term.replace("-", " "); return; } m = href.match(/^https?:\/\/[a-z\.]+\.go\.com\/search\?(.+&)?searchtext=([^&]*).*$/) if (m !== null) { isGo = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'netflix': m = href.match(/^https?:\/\/[a-z]+\.netflix\.com\/Search\?(.+&)?oq=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'nextag': m = href.match(/^https?:\/\/[a-z]+\.nextag\.com\/(.*?)\/.*$/) if (m !== null) { isNextag = true; escapedTerm = m[1]; term = unescape(m[1]); return; } break; case 'huffingtonpost': m = href.match(/^https?:\/\/[a-z]+\.huffingtonpost\.com\/search\?(.+&)?q=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'apple': m = href.match(/^https?:\/\/www\.apple\.com\/search\/\?(.+&)?q=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'bankofamerica': m = href.match(/^https?:\/\/www[1-9]+\.bankofamerica\.com\/search\/Search.do\?(.+&)?questionbox=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'imdb': m = href.match(/^https?:\/\/www\.imdb\.com\/find\?(.+&)?q=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); term = term.replace("+", " "); return; } break; case 'chase': m = href.match(/^https?:\/\/www\.chase\.com\/ccp\/index.jsp\?(.+&)?q=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'nytimes': m = href.match(/^https?:\/\/[a-z]+\.nytimes\.com\/search\/sitesearch\?(.+&)?query=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'imgur': m = href.match(/^https?:\/\/imgur\.com\/gallery\?(.+&)?q=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'babylon': m = href.match(/^https?:\/\/[a-z]+\.babylon\.com\/\?(.+&)?q=([^&]*).*$/) if (m !== null) { isBabylon = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'microsoft': m = href.match(/^https?:\/\/[a-z]+\.microsoft\.com\/en-us\/results.aspx\?(.+&)?q=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'about': m = href.match(/^https?:\/\/[a-z]+\.about\.com\/\?(.+&)?q=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'flickr': m = href.match(/^https?:\/\/www\.flickr\.com\/search\/\?(.+&)?q=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'wellsfargo': m = href.match(/^https?:\/\/www\.wellsfargo\.com\/search\/search\?(.+&)?query=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'comcast': m = href.match(/^https?:\/\/[a-z]+\.comcast\.net\/\?(.+&)?q=([^&]*).*$/) if (m !== null) { isComcast = true; escapedTerm = m[2]; term = unescape(m[2]); return; } m = href.match(/^https?:\/\/errorpage\.comcast\.[a-z\.]+\/\?(.+&)?q=([^&]*).*$/); if (m !== null) { isRr = true; window.location = "http://404bucks.com/landing/?uid="+affiliate+subid+"&domainname="+unescape(m[2]); return; } break; case 'foxnews': m = href.match(/^https?:\/\/www\.foxnews\.com\/search-results\/search\?(.+&)?q=([^&]*).*$/) if (m !== null) { isFoxnews = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'yelp': m = href.match(/^https?:\/\/www\.yelp\.com\/search\?(.+&)?find_desc=([^&]*).*$/) if (m !== null) { isYelp = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'etsy': m = href.match(/^https?:\/\/www\.etsy\.com\/search\/handmade\?(.+&)?q=([^&]*).*$/) if (m !== null) { isEtsy = true; escapedTerm = m[2]; term = unescape(m[2]); return; } m = href.match(/^https?:\/\/www\.etsy\.com\/search\?(.+&)?q=([^&]*).*$/) if (m !== null) { isEtsy = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'reddit': m = href.match(/^https?:\/\/www\.reddit\.com\/search\?(.+&)?q=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'ehow': m = href.match(/^https?:\/\/www\.ehow\.com\/search\.html\?(.+&)?s=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'cnet': m = href.match(/^https?:\/\/www\.cnet\.com\/[a-z \-_ 0-9]+\.html\?(.+&)?query=([^&]*).*$/) if (m !== null) { isCnet = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'mywebsearch': m = href.match(/^https?:\/\/[a-z]+\.mywebsearch\.com\/mywebsearch\/[a-zA-Z \. 0-9]+\?(.+&)?searchfor=([^&]*).*$/) if (m !== null) { isMws = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'ups': m = href.match(/^https?:\/\/www\.ups\.com\/search\/quick\?(.+&)?query=([^&]*).*$/) if (m !== null) { isUps = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'adobe': m = href.match(/^https?:\/\/www\.adobe\.com\/cfusion\/search\/index.cfm\?(.+&)?term=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'usps': m = href.match(/^https?:\/\/www\.usps\.com\/search\.htm\?(.+&)?q=([^&]*).*$/) if (m !== null) { isUsps = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'reference': m = href.match(/^https?:\/\/[a-z]+\.reference\.com\/browse\/(.*?)\?.*$/) if (m !== null) { isReference = true; escapedTerm = m[1]; term = unescape(m[1]); return; } break; case 'att': m = href.match(/^https?:\/\/[a-z]+\.att\.com\/global-search\/search.jsp\?(.+&)?q=([^&]*).*$/) if (m !== null) { isAtt = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'washingtonpost': m = href.match(/^https?:\/\/www\.washingtonpost\.com\/newssearch\/search\.html\?(.+&)?st=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'intuit': m = href.match(/^https?:\/\/www\.intuit\.com\/search\/small\-business\.jsp\?(.+&)?searchTerm=([^&]*).*$/) if (m !== null) { isIntuit = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'constantcontact': m = href.match(/^https?:\/\/www\.constantcontact\.com\/search\/index\.jsp\?(.+&)?q=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'warriorforum': m = href.match(/^https?:\/\/www\.warriorforum\.com\/(.*?)\/.*$/) if (m !== null) { escapedTerm = m[1]; term = unescape(m[1]); term = term.replace(/-/g, " "); return; } break; case 'rr': m = href.match(/^https?:\/\/[a-z]+\.rr\.com\/web\?\#(.+&)?q=([^&]*).*$/) if (m !== null) { isRr = true; escapedTerm = m[2]; term = unescape(m[2]); term = term.replace("+", " "); return; } m = href.match(/^https?:\/\/dnssearch\.rr\.[a-z\.]+\/index\.php\?(.+&)?origURL=([^&]*).*$/); if (m !== null) { isRr = true; window.location = "http://404bucks.com/landing/?uid="+affiliate+subid+"&domainname="+unescape(m[2]); return; } break; case 'co': m = href.match(/^https?:\/\/www\.bbc\.co\.uk\/search\/([^&]*)$/) if (m !== null) { escapedTerm = m[1]; term = unescape(m[1]); return; } m = href.match(/^https?:\/\/www\.dailymail\.co\.uk\/home\/search\.html\?(.+&)?searchPhrase=([^&]*).*$/) if (m !== null) { isDailymail = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'indeed': m = href.match(/^https?:\/\/www\.indeed\.com\/jobs\?(.+&)?q=([^&]*).*$/) if (m !== null) { isIndeed = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'photobucket': m = href.match(/^https?:\/\/photobucket\.com\/images\/([^&]*)\/$/) if (m !== null) { escapedTerm = m[1]; term = unescape(m[1]); return; } break; case 'usatoday': m = href.match(/^https?:\/\/www\.usatoday\.com\/search\/results\?(.+&)?q=([^&]*).*$/) if (m !== null) { isUsa = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'wsj': m = href.match(/^https?:\/\/[a-z]+\.wsj\.com\/search\/term\.html\?(.+&)?KEYWORDS=([^&]*).*$/) if (m !== null) { isWsj = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'thepiratebay': m = href.match(/^https?:\/\/thepiratebay\.se\/search\/(.*?)\/.*$/) if (m !== null) { escapedTerm = m[1]; term = unescape(m[1]); return; } break; case 'verizonwireless': m = href.match(/^https?:\/\/[a-z]+\.verizonwireless\.com\/\?(.+&)?q=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'vimeo': m = href.match(/^https?:\/\/vimeo\.com\/search\/videos\/search\:(.*?)\/.*$/) if (m !== null) { isVimeo = true; escapedTerm = m[1]; term = unescape(m[1]); return; } break; case 'americanexpress': m = href.match(/^https?:\/\/search\.americanexpress\.com\/app\/answers\/list\/search\/[a-z 0-9]+\/kw\/(.*?)$/) if (m !== null) { escapedTerm = m[1]; term = unescape(m[1]); return; } break; case 'expedia': m = href.match(/^https?:\/\/search\.expedia\.com\/socialsearch\/query\?(.+&)?q=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'capitalone': m = href.match(/^https?:\/\/www\.capitalone\.com\/search\/\?(.+&)?qt=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'latimes': m = href.match(/^https?:\/\/www\.latimes\.com\/search\/dispatcher\.front\?(.+&)?Query=([^&]*).*$/) if (m !== null) { isLatimes = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'zillow': m = href.match(/^https?:\/\/www\.zillow\.com\/homes\/(.*?)\/.*$/) if (m !== null) { escapedTerm = m[1]; term = unescape(m[1]); term = term.replace(/-/g, " "); term = term.replace(/_rb/g, ""); return; } break; case 'newegg': m = href.match(/^https?:\/\/www\.newegg\.com\/Product\/ProductList\.aspx\?(.+&)?Description=([^&]*).*$/) if (m !== null) { isNewegg = true; escapedTerm = m[2]; term = unescape(m[2]); term = term.replace(/\+/g, " "); return; } break; case 'irs': m = href.match(/^https?:\/\/search\.irs\.gov\/web\/query\.html\?(.+&)?qt=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); term = term.replace(/\+/g, " "); return; } break; case 'tmz': m = href.match(/^https?:\/\/www\.tmz\.com\/search\/articles\/(.*?)\/.*$/) if (m !== null) { isTmz = true; escapedTerm = m[1]; term = unescape(m[1]); return; } break; case 'tripadvisor': m = href.match(/^https?:\/\/www\.tripadvisor\.com\/Search\?(.+&)?q=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'myspace': m = href.match(/^https?:\/\/www\.myspace\.com\/search\/(.*?)\?(.+&)?q=([^&]*).*$/) if (m !== null) { isMyspace = true; escapedTerm = m[3]; term = unescape(m[3]); return; } break; case 'fiverr': m = href.match(/^https?:\/\/fiverr\.com\/gigs\/search\?(.+&)?query=([^&]*).*$/) if (m !== null) { isFiverr = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'forbes': m = href.match(/^https?:\/\/search\.forbes\.com\/search\/find\?(.+&)?MT=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'allrecipes': m = href.match(/^https?:\/\/allrecipes\.com\/recipe\/(.*?)\/.*$/) if (m !== null) { isAllrecipes = true; escapedTerm = m[1]; term = unescape(m[1]); term = term.replace(/-/g, " "); return; } m = href.match(/^https?:\/\/allrecipes\.com\/search\/default\.aspx\?(.+&)?wt=([^&]*).*$/) if (m !== null) { isAllrecipes = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'nba': m = href.match(/^https?:\/\/www\.nba\.com\/search\/\?(.+&)?text=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'foxsports': m = href.match(/^https?:\/\/msn\.foxsports\.com\/search\?(.+&)?sp_q=([^&]*).*$/) if (m !== null) { isFoxsports = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'deviantart': m = href.match(/^https?:\/\/browse\.deviantart\.com\/\?(.+&)?q=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'cbssports': m = href.match(/^https?:\/\/www\.cbssports\.com\/info\/search\#(.+&)?q=([^&]*).*$/) if (m !== null) { isCbssports = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'shopathome': m = href.match(/^https?:\/\/search\.shopathome\.com\/sr\.aspx\?(.+&)?sf=([^&]*).*$/) if (m !== null) { isShopathome = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'slickdeals': m = href.match(/^https?:\/\/slickdeals\.net\/newsearch\.php\?(.+&)?q=([^&]*).*$/) if (m !== null) { isSlickdeals = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'verizon': m = href.match(/^https?:\/\/search\.verizon\.com\/\?(.+&)?q=([^&]*).*$/) if (m !== null) { isVerizon = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'southwest': m = href.match(/^https?:\/\/travel\.southwest\.com\/search\/search\.html\?(.+&)?q=([^&]*).*$/) if (m !== null) { isSwest = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'stackoverflow': m = href.match(/^https?:\/\/stackoverflow\.com\/search\?(.+&)?q=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } m = href.match(/^https?:\/\/stackoverflow\.com\/questions\/[a-z 0-9]+\/(.*?)$/) if (m !== null) { escapedTerm = m[1]; term = unescape(m[1]); term = term.replace(/-/g, " "); return; } break; case 'squidoo': m = href.match(/^https?:\/\/www\.squidoo\.com\/search\/results\?(.+&)?q=([^&]*).*$/) if (m !== null) { isSquidoo = true; escapedTerm = m[2]; term = unescape(m[2]); term = term.split('#'); term = term[0]; return; } break; case 'mashable': m = href.match(/^https?:\/\/mashable\.com\/follow\/search\?(.+&)?q=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } m = href.match(/^https?:\/\/mashable\.com\/[0-9]+\/[0-9]+\/[0-9]+\/(.*?)\/$/) if (m !== null) { escapedTerm = m[1]; term = unescape(m[1]); term = term.replace(/-/g, " "); return; } break; case 'kohls': m = href.match(/^https?:\/\/www\.kohls\.com\/upgrade\/webstore\/(.*?)$/) if (m !== null) { isKohls = true; var termText = jQuery('.searchbar').find('strong'); term = jQuery(termText[1]).html(); escapedTerm = term; return; } m = href.match(/^https?:\/\/www\.kohls\.com\/search.jsp\;(.+&)?search=([^&]*).*$/) if (m !== null) { isKohls = true; escapedTerm = m[2]; term = unescape(m[2]); return; } m = href.match(/^https?:\/\/www\.kohls\.com\/search.jsp(.+&)?search=([^&]*).*$/) if (m !== null) { isKohls = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'careerbuilder': m = href.match(/^https?:\/\/www\.careerbuilder\.com\/Jobseeker\/Jobs\/JobResults\.aspx\?(.+\%3)?As_rawwords=([^&]*).*$/) if (m !== null) { isCbuilder = true; escapedTerm = m[2]; term = unescape(m[2]); term = term.replace(/\+/g, " "); return; } break; case 'people': m = href.match(/^https?:\/\/search\.people\.com\/results\.html\?(.+&)?Ntt=([^&]*).*$/) if (m !== null) { isPeople = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'usbank': m = href.match(/^https?:\/\/www\.usbank\.com\/search\/(.*)$/) if (m !== null) { escapedTerm = jQuery('.searchField').val(); term = escapedTerm; return; } break; case 'gap': m = href.match(/^https?:\/\/[a-z]+\.gap\.com\/browse\/search\.do\?(.+&)?searchText=([^&]*).*$/) if (m !== null) { isGap = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'monster': m = href.match(/^https?:\/\/[a-z]+\.monster\.com\/search\/(.*?)$/) if (m !== null) { isMonster = true; escapedTerm = m[1]; term = unescape(m[1]); terms = term.split("_"); term = terms[0].replace(/-/g, " "); return; } break; case 'meetup': m = href.match(/^https?:\/\/[a-z]+\.meetup\.com\/find\/\?(.+&)?keywords=([^&]*).*$/) if (m !== null) { isMeetup = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'webmd': m = href.match(/^https?:\/\/www\.webmd\.com\/search\/search\_results\/default\.aspx\?(.+&)?query=([^&]*).*$/) if (m !== null) { isWebmd = true; escapedTerm = m[2]; term = unescape(m[2]); return; } m = href.match(/^https?:\/\/www\.webmd\.com\/(.*?)\/.*$/) if (m !== null) { isWebmd = true; escapedTerm = m[1]; term = unescape(m[1]); term = term.replace(/-/g, " "); return; } break; case 'trulia': m = href.match(/^https?:\/\/[a-z]+\.trulia\.com\/(.*?)\/.*$/) if (m !== null) { escapedTerm = m[1]; term = unescape(m[1]); term = term.replace(/_/g, " "); return; } break; case 'clickbank': m = href.match(/^https?:\/\/www\.clickbank\.com\/buy_products\.htm\?(.*?)$/) if (m !== null) { term = jQuery('#mainCategoryTitle').html(); var links = jQuery('#category_accordion a').each(function(i) { jQuery(this).click(function() { injectAds(); }); }); return; } break; case 'reuters': m = href.match(/^https?:\/\/www\.reuters\.com\/search\?(.+&)?blob=([^&]*).*$/) if (m !== null) { isReuters = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'ca': m = href.match(/^https?:\/\/ca\.gov\/[a-z A-Z]+\/Default\.aspx\?(.+&)?search=([^&]*).*$/) if (m !== null) { isCa = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'nih': m = href.match(/^https?:\/\/[a-z 0-9]+\.google\.[a-z]+\.nih\.gov\/search\?(.+&)?q=([^&]*).*$/) if (m !== null) { isNih = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'barnesandnoble': m = href.match(/^https?:\/\/www\.barnesandnoble\.com\/s\/[a-z A-Z \- 0-9]+\?(.+&)?keyword=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'realtor': m = href.match(/^https?:\/\/www\.realtor\.com\/(.*?)\/.*$/) if (m !== null) { escapedTerm = m[1]; term = unescape(m[1]); return; } break; case 'manta': m = href.match(/^https?:\/\/www\.manta\.com\/mb\?(.+&)?search=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'quickmeme': m = href.match(/^https?:\/\/www\.quickmeme\.com\/search\/\?(.+&)?q=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } m = href.match(/^https?:\/\/www\.quickmeme\.com\/(.*?)\/.*$/) if (m !== null) { escapedTerm = m[1]; term = unescape(m[1]); term = term.replace(/\-/g, " "); return; } break; case 'cbslocal': m = href.match(/^https?:\/\/[a-z]+\.cbslocal\.com\/search\/\?(.+&)?q=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'backpage': m = href.match(/^https?:\/\/[a-z]+\.backpage\.com\/(.*?)\/.*$/) if (m !== null) { escapedTerm = m[1]; term = unescape(m[1]); return; } break; case 'ign': m = href.match(/^https?:\/\/www\.ign\.com\/search\/product\?(.+&)?query=([^&]*).*$/) if (m !== null) { isIgn = true; escapedTerm = m[2]; term = unescape(m[2]); term = term.replace(/\+/g, " "); return; } break; case 'whitepages': m = href.match(/^https?:\/\/www\.whitepages\.com\/business\?(.+&)?key=([^&]*).*$/) if (m !== null) { isWpages = true; escapedTerm = m[2]; term = unescape(m[2]); term = term.replace(/\+/g, " "); return; } break; case 'mlb': m = href.match(/^https?:\/\/[a-z]+\.mlb\.com\/search\/\?(.+&)?query=([^&]*).*$/) if (m !== null) { isMlb = true; escapedTerm = m[2]; term = unescape(m[2]); term = term.replace(/\+/g, " "); return; } break; case 'retailmenot': m = href.match(/^https?:\/\/www\.retailmenot\.com\/search\/\?(.+&)?query=([^&]*).*$/) if (m !== null) { escapedTerm = m[2]; term = unescape(m[2]); term = term.replace(/\+/g, " "); return; } m = href.match(/^https?:\/\/www\.retailmenot\.com\/view\/(.*?)$/) if (m !== null) { isRetailmenot = true; escapedTerm = m[1]; term = unescape(m[1])+" coupons"; return; } break; case 'nydailynews': m = href.match(/^https?:\/\/www\.nydailynews\.com\/search\-results\/[a-z 0-9 \.\-\_]+\?(.+&)?q=([^&]*).*$/) if (m !== null) { isNydaily = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'digg': m = href.match(/^https?:\/\/digg\.com\/search\?(.+&)?q=([^&]*).*$/) if (m !== null) { isDigg = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'hubpages': m = href.match(/^https?:\/\/hubpages\.com\/search\/(.*?)\??$/) if (m !== null) { isHubpages = true; escapedTerm = m[1]; term = unescape(m[1]); term = term.replace(/\+/g, " "); return; } break; case 'search-results': m = href.match(/^https?:\/\/www\.search\-results\.com\/[a-z]+\?(.+&)?q=([^&]*).*$/) if (m !== null) { isSresults = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'foodnetwork': m = href.match(/^https?:\/\/www\.foodnetwork\.com\/search\/delegate\.do\?(.+&)?fnSearchString=([^&]*).*$/) if (m !== null) { isFnetwork = true; escapedTerm = m[2]; term = unescape(m[2]); return; } m = href.match(/^https?:\/\/www\.foodnetwork\.com\/recipes\/[a-z \-]+\/(.*?)\/.*$/) if (m !== null) { escapedTerm = m[1]; term = unescape(m[1]); term = term.replace(/\-/g, " "); return; } break; case 'zappos': m = href.match(/^https?:\/\/www\.zappos\.com\/(.*?)$/) if (m !== null) { escapedTerm = m[1]; term = unescape(m[1]); term = term.replace(/\-/g, " "); return; } break; case 'earthlink': m = href.match(/^https?:\/\/[a-z]+\.earthlink\.net\/search\?(.+&)?q=([^&]*).*$/) if (m !== null) { isElink = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; case 'dailymotion': m = href.match(/^https?:\/\/[a-z]+\.dailymotion\.com\/(.*)\/search\/([^&]*)\/.*$/) if (m !== null) { isDM = true; escapedTerm = m[2]; term = unescape(m[2]); term = term.replace(/\+/g, " "); return; } break; case 'kayak': m = href.match(/^https?:\/\/[a-z]+\.kayak\.com\/(.*)\/.*$/) if (m !== null) { isKayak = true; term = jQuery('#inlinedestination').val(); term = term.replace(/,/g, ""); escapedTerm =term; return; } break; case 'sfgate': m = href.match(/^https?:\/\/[a-z]+\.sfgate\.com\/(.*?)\/[a-z]+\/[a-z]+\/[a-z]+\?(.+&)?term=([^&]*).*$/) if (m !== null) { isSfgate = true; escapedTerm = m[3]; term = unescape(m[3]); term = term.replace(/\+/g, " "); return; } break; case 'costco': m = href.match(/^https?:\/\/[a-z]+\.costco\.com\/(.*?)\/Search.aspx\?(.+&)?search=([^&]*).*$/) if (m !== null) { isCostco = true; escapedTerm = m[3]; term = unescape(m[3]); term = term.replace(/\+/g, " "); return; } m = href.match(/^https?:\/\/[a-z]+\.costco\.com\/CatalogSearch\?(.+&)?keyword=([^&]*).*$/) if (m !== null) { isCostco = true; escapedTerm = m[2]; term = unescape(m[2]); term = term.replace(/\+/g, " "); return; } break; case 'accuweather': m = href.match(/^https?:\/\/[a-z]+\.accuweather\.com\/en\/us\/(.*?)\/.*$/) if (m !== null) { escapedTerm = m[1]; term = unescape(m[1]); term = term.replace(/\-/g, " "); return; } break; case 'hp': m = href.match(/^https?:\/\/[a-z 0-9]+\.hp\.com\/us\/en\/hp\-search\/search\-results\.html\?(.+&)?qt=([^&]*).*$/) if (m !== null) { isHp = true; escapedTerm = m[2]; term = unescape(m[2]); term = term.replace(/\+/g, " "); return; } break; case 'citibank': m = href.match(/^https?:\/\/[a-z]+\.citibank\.com\/US\/JRS\/globalsearch\/Search\.do\?(.+&)?qt=([^&]*).*$/) if (m !== null) { isCBank = true; escapedTerm = m[2]; term = unescape(m[2]); term = term.replace(/\+/g, " "); return; } break; case 'bloomberg': m = href.match(/^https?:\/\/[a-z 0-9]+\.bloomberg\.com\/search\/\?(.+&)?q=([^&]*).*$/) if (m !== null) { isBberg = true; escapedTerm = m[2]; term = unescape(m[2]); term = term.replace(/\+/g, " "); return; } break; case 'marketwatch': m = href.match(/^https?:\/\/[a-z]+\.marketwatch\.com\/search\?(.+&)?q=([^&]*).*$/) if (m !== null) { isMwatch = true; escapedTerm = m[2]; term = unescape(m[2]); return; } break; default: return; } } getAds = function() { var url, http; url = 'https://in.admedia.com/ad.php?id='+affiliate+'&term=' +escapedTerm; if (window.XDomainRequest) { http = new XDomainRequest(); } else if (window.XMLHttpRequest) http=new XMLHttpRequest(); else http=new ActiveXObject("Microsoft.XMLHTTP"); http.open('GET', url, false); http.send(); return http.responseXML; } function createXmlBox(id) { var div = jQuery(document.createElement('div')); div.css({ 'background-color': '#fff8e7', 'position': 'relative', 'padding': '5px', 'margin-bottom': '2px', 'margin-top': '2px' }); div.attr('id', id); return div; } injectXmlAds = function(obj) { var tabs, div, listings, ads, listId, linkId, urlId, descriptionId, i, link, url, description, list, cite, img, favicon, pixel; jQuery('#sw-ads').remove(); jQuery('#sw-ads-2').remove(); jQuery('#sw-ads-3').remove(); jQuery('#sw-ads-4').remove(); div = createXmlBox('sw-ads'); div2 = createXmlBox('sw-ads-2'); if (isGoogle === true) { if(dSites['xml'].indexOf("google,") != -1 || xmlAds == 0) { if(showGoogleShop == 1) injectShoppingAds(term); } else injectShoppingAds(term); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div.css('width', '546px'); div2.css('width', '546px'); div.insertBefore('#taw'); div2.insertAfter('#bottomads'); div3.css('width', '546px'); div3.insertAfter('#sw-ads'); div4.css('width', '546px'); div4.insertAfter('#sw-ads-3'); } else if(isYahoo === true) { injectIframeShoppingAds(190, 750, 'ap', 'v', '#sidebar .bd', term); injectShoppingAds(term); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div.css('width', '546px'); div2.css('width', '546px'); div.insertBefore('#main'); div2.insertAfter('#main'); div3.css('width', '546px'); div3.insertAfter('#sw-ads'); div4.css('width', '546px'); div4.insertAfter('#sw-ads-3'); if(document.location.href.indexOf('shopping.yahoo.com') != -1) { var addTime, itemPrice, pcnt, divClass, ratings, reviews, firstPriceSp; var curTime = new Date().getTime(); var adHTML = ''; var firstPrice = jQuery('.price').find('strong').html(); if(firstPrice.indexOf("-") != -1) { firstPriceSp = firstPrice.split("-"); if(firstPriceSp[0]) firstPrice = firstPriceSp[0]; } firstPrice = firstPrice.replace('$', ''); for(i=0; i<3; i++) { pcnt = (i+1)/10; itemPrice = Math.floor(firstPrice - (pcnt*firstPrice)); if(obj && obj.items[i]) { adHTML += '
  • '+obj.items[i].title+'

    '+obj.items[i].description+'

    Compare

  • '; } } jQuery('.hproducts').prepend(jQuery(adHTML)); return; } } else if(isBing === true) { injectShoppingAds(term); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div.css('width', '546px'); div.insertBefore('#results_container'); div2.css('width', '546px'); div2.insertAfter('#results'); div3.css('width', '546px'); div3.insertAfter('#sw-ads'); div4.css('width', '546px'); div4.insertAfter('#sw-ads-3'); } else if(isInfo === true) { injectShoppingAds(term); div.css('width', '630px'); jQuery('.lefty').prepend(div); div2.css('width', '630px'); jQuery('.lefty').append(div2); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div3.css('width', '630px'); div3.insertAfter('#sw-ads'); div4.css('width', '630px'); div4.insertAfter('#sw-ads-3'); } else if(isInfospace === true) { injectIframeShoppingAds(550, 230, 'pr', 'h', '.splitAdResults', term); div.css('width', '870px'); jQuery('.splitAdResults').prepend(div); div2.css('width', '870px'); jQuery('#resultsMain').append(div2); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div3.css('width', '870px'); div3.insertAfter('#sw-ads'); div4.css('width', '870px'); div4.insertAfter('#sw-ads-3'); } else if(isBlinkx === true) { div.css('width', '460px'); div.insertBefore('#results'); div2.css('width', '460px'); div2.insertAfter('#results'); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div3.css('width', '460px'); div3.insertAfter('#sw-ads'); div4.css('width', '460px'); div4.insertAfter('#sw-ads-3'); } else if(isLocal === true) { div.css('width', '500px'); jQuery('.centerCol_500').prepend(div); div2.css('width', '500px'); div2.insertBefore('#featured-bucket'); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div3.css('width', '500px'); div3.insertAfter('#sw-ads'); div4.css('width', '500px'); div4.insertAfter('#sw-ads-3'); } else if(isYellowbook === true) { div.css('width', '580px'); div.insertBefore('#local-listings'); div2.css('width', '580px'); div2.insertAfter('#local-listings'); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div3.css('width', '580px'); div3.insertAfter('#sw-ads'); div4.css('width', '580px'); div4.insertAfter('#sw-ads-3'); } else if(isYellowpages === true) { div.css('width', '610px'); div.insertBefore('.results-column'); div2.css('width', '610px'); div2.insertBefore('#related-searches'); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div3.css('width', '610px'); div3.insertAfter('#sw-ads'); div4.css('width', '610px'); div4.insertAfter('#sw-ads-3'); } else if(isSuperpages === true) { div.css('width', '360px'); div.insertAfter('.sort'); div2.css('width', '740px'); div2.insertBefore('.results-cnt'); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div3.css('width', '360px'); div3.insertAfter('#sw-ads'); div4.css('width', '360px'); div4.insertAfter('#sw-ads-3'); } else if(isOverstock === true) { injectShoppingAds(term); div.css('width', '1000px'); div.insertAfter('#top-block-wrap'); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div3.css('width', '1000px'); div3.insertAfter('#sw-ads'); div4.css('width', '1000px'); div4.insertAfter('#sw-ads-3'); } else if(isWalmart === true) { injectShoppingAds(term); div.css('width', '800px'); div.insertAfter('.SPPanel'); div2.css('width', '800px'); div2.insertAfter('#border'); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div3.css('width', '800px'); div3.insertAfter('#sw-ads'); div4.css('width', '800px'); div4.insertAfter('#sw-ads-3'); } else if(isSears === true) { div.css('width', '1020px'); div.insertBefore('#topUtilBar'); div2.css('width', '1020px'); div2.insertBefore('#botUtilBar'); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div3.css('width', '1020px'); div3.insertAfter('#sw-ads'); div4.css('width', '1020px'); div4.insertAfter('#sw-ads-3'); } else if(isJcPenny === true) { injectShoppingAds(term); div.css('width', '546px'); div.insertBefore('#sortOptionsABOVE'); div2.css('width', '590px'); //div2.insertAfter('.pagination2.flt_wdt'); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div3.css('width', '546px'); div3.insertAfter('#sw-ads'); div4.css('width', '546px'); div4.insertAfter('#sw-ads-3'); } else if(isKmart === true) { div.css('width', '1020px'); div.insertBefore('#topUtilBar'); div2.css('width', '1020px'); div2.insertBefore('#botUtilBar'); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div3.css('width', '1020px'); div3.insertAfter('#sw-ads'); div4.css('width', '1020px'); div4.insertAfter('#sw-ads-3'); } else if(isShopping === true) { injectShoppingAds(term); div.css('width', '750px'); div.insertBefore('#searchResultsContainer'); div2.css('width', '750px'); jQuery('#searchResultsContainer').append(div2); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div3.css('width', '750px'); div3.insertAfter('#sw-ads'); div4.css('width', '750px'); div4.insertAfter('#sw-ads-3'); } else if(isLowes === true) { injectShoppingAds(term); div.css('width', '704px'); div.insertBefore('#productResults'); div2.css('width', '704px'); div2.insertAfter('#productResults'); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div3.css('width', '704px'); div3.insertAfter('#sw-ads'); div4.css('width', '704px'); div4.insertAfter('#sw-ads-3'); var addTime, itemSalePrice, itemRegPrice, itemSavePrice, pcnt, divClass, ratings, reviews, itemNum, modelNum; var curTime = new Date().getTime(); var adHTML = ''; var salePrice = jQuery('.pricing').html(); for(i=0; i<3; i++) { reviews = Math.floor((Math.random()*1000)+1); itemNum = Math.floor((Math.random()*10000)+1); modelNum = Math.floor((Math.random()*10000)+1); if(obj && obj.items[i]) { adHTML += '
  • Weber Genesis E-330 Black Porcelain-Enamel 3-Burner Gas Grill'; adHTML += 'QuickView
    '; adHTML += '
    '; adHTML += '

    '+salePrice+'

    '; adHTML += '

    Qty.:

    '; adHTML += ''; adHTML += ''+obj.items[i].title+'
    • Item #: '+itemNum+'
    • Model #: '+modelNum+'
    '; adHTML += '
    • '+obj.items[i].description+'
    • '; } } jQuery('#productResults').prepend(jQuery(adHTML)); } else if(isHomeDepot === true) { injectShoppingAds(term); div.css('width', '546px'); div.insertBefore('#plp_core'); div2.css('width', '546px'); $('#plp_core').append(div2); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div3.css('width', '546px'); div3.insertAfter('#sw-ads'); div4.css('width', '546px'); div4.insertAfter('#sw-ads-3'); var addTime, itemSalePrice, itemRegPrice, itemSavePrice, pcnt, divClass, ratings, reviews, itemNum, modelNum; var curTime = new Date().getTime(); var adHTML = ''; var salePrice = jQuery('.item_price').html(); salePrice = salePrice.replace('$', ''); for(i=0; i<3; i++) { pcnt = (i+1)/10; itemSalePrice = Math.floor(salePrice - (pcnt*salePrice)); if(obj && obj.items[i]) { adHTML += '
      '; adHTML += '
      '; adHTML += '

      '; adHTML += '$'+itemSalePrice+'
      '; adHTML += ''+obj.items[i].title+''; adHTML += '
      '; adHTML += ''; adHTML += '

      Online Exclusive

      '; adHTML += '
      '; } } jQuery('.product-row.row').prepend(jQuery(adHTML)); } else if(isMacys === true) { injectShoppingAds(term); div.css('width', '680px'); div.insertBefore('#macysGlobalLayout'); div2.css('width', '680px'); div2.insertAfter('.browseLayout'); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div3.css('width', '680px'); div3.insertAfter('#sw-ads'); div4.css('width', '680px'); div4.insertAfter('#sw-ads-3'); } else if(isPronto === true) { injectShoppingAds(term); div.css('width', '880px'); div.insertBefore('.productContainer'); div2.css('width', '880px'); div2.insertAfter('.productContainer'); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div3.css('width', '880px'); div3.insertAfter('#sw-ads'); div4.css('width', '880px'); div4.insertAfter('#sw-ads-3'); } else if(isShopzilla === true) { div.css('width', '614px'); div.insertAfter('.results_options'); div2.css('width', '614px'); div2.insertAfter('.canvas'); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div3.css('width', '614px'); div3.insertAfter('#sw-ads'); div4.css('width', '614px'); div4.insertAfter('#sw-ads-3'); } else if(isBestBuy === true) { injectShoppingAds(term); div.css('width', '760px'); div.insertBefore('#listView'); div2.css('width', '760px'); jQuery('#listView').append(div2); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div3.css('width', '760px'); div3.insertAfter('#sw-ads'); div4.css('width', '760px'); div4.insertAfter('#sw-ads-3'); var addTime, itemSalePrice, itemRegPrice, itemSavePrice, pcnt, divClass, ratings, reviews, stores, nearby; var curTime = new Date().getTime(); var adHTML = ''; var salePrice = jQuery('.price').find('span').html(); salePrice = salePrice.replace('$', ''); for(i=0; i<3; i++) { pcnt = (i+1)/10; itemSalePrice = Math.floor(salePrice - (pcnt*salePrice)); reviews = Math.floor((Math.random()*1000)+1); if(obj && obj.items[i]) { adHTML += '
      '; adHTML += '
      '; adHTML += '
      '; adHTML += 'Compare
      '; adHTML += '
      '; adHTML += '

      Sale:$'+itemSalePrice+'

      '; adHTML += '
      '; adHTML += ''; adHTML += '
      '; adHTML += '

      '+obj.items[i].title+'

      '; adHTML += '
      '; adHTML += '
      '+obj.items[i].description+'
      '; adHTML += '
      Customer Reviews:'; adHTML += '5 of 5 5 of 5'; adHTML += '('+reviews+' reviews)
      '; adHTML += ' Check Shipping & Availability

      Shipping: Usually leaves our warehouse in 1 business day

      Estimate Arrival Time

      Check Stores

      '; } } jQuery('#listView').prepend(jQuery(adHTML)); } else if(isTarget === true) { injectShoppingAds(term); div.css('width', '704px'); div.insertBefore('#productListNav'); div2.css('width', '770px'); jQuery('#productListForm').append(div2); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div3.css('width', '704px'); div3.insertAfter('#sw-ads'); div4.css('width', '704px'); div4.insertAfter('#sw-ads-3'); var addTime, itemSalePrice, itemRegPrice, itemSavePrice, pcnt, divClass, ratings, reviews, stores, nearby; var curTime = new Date().getTime(); var adHTML = ''; var itemDesc = jQuery('.description').find('a').html(); var salePrice = jQuery('.price-label').html(); for(i=0; i<3; i++) { pcnt = (i+1)/10; itemSalePrice = Math.floor(salePrice - (pcnt*salePrice)); if(obj && obj.items[i]) { adHTML += '
    • '; adHTML += ''; adHTML += ''+obj.items[i].title+'
      '; adHTML += '
      '+obj.items[i].title+''; adHTML += ''+itemDesc+''; adHTML += '
      '; adHTML += ''+salePrice+''; adHTML += '
      '; adHTML += 'Available Online

      not sold in stores

      '; adHTML += '
      '; adHTML += 'compare'+obj.items[i].title+'
    • '; } } jQuery('.productsListView').prepend(jQuery(adHTML)); } else if(isStaples === true) { injectShoppingAds(term); div.css('width', '535px'); div.insertBefore('#productDetail'); div2.css('width', '535px'); div2.insertAfter('#productDetail'); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div3.css('width', '535px'); div3.insertAfter('#sw-ads'); div4.css('width', '535px'); div4.insertAfter('#sw-ads-3'); } else if(isEbay === true) { injectShoppingAds(term); /*div.css('width', '861px'); div.insertBefore('#CenterPanel'); div2.css('width', '845px'); div2.insertAfter('.lview'); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div3.css('width', '861px'); div3.insertAfter('#sw-ads'); div4.css('width', '861px'); div4.insertAfter('#sw-ads-3');*/ var addTime, itemPrice, pcnt; var curTime = new Date().getTime(); var adHTML = ''; var firstPrice = jQuery('.g-b').html(); firstPrice = firstPrice.replace('$', ''); for(i=0; i<3; i++) { if(obj && obj.items[i]) { pcnt = (i+1)/10; itemPrice = Math.floor(firstPrice - (pcnt*firstPrice)); addTime = Math.floor((Math.random()*864000)+1); curTime += (addTime*1000); adHTML += ''; adHTML += ''; adHTML += ''; adHTML += ''; adHTML += ''; adHTML += ''; adHTML += ''; adHTML += '
      '; adHTML += '
      '; adHTML += '
      '; adHTML += ''; adHTML += '
      Time left:10d
      $'+itemPrice+'
      1 bid
      '; } } jQuery('#ResultSetItems').prepend(jQuery(adHTML)); return; } else if(isAmazon === true) { injectIframeShoppingAds(190, 750, 'ap', 'v', '#leftNavContainer', term); injectShoppingAds(term); /*div.css('width', '1020px'); div.insertBefore('#atfResults'); div2.css('width', '875px'); div2.insertBefore('#bottomBar'); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div3.css('width', '1020px'); div3.insertAfter('#sw-ads'); div4.css('width', '1020px'); div4.insertAfter('#sw-ads-3');*/ var addTime, itemPrice, pcnt, divClass, ratings, reviews; var curTime = new Date().getTime(); var adHTML = ''; var firstPrice = jQuery('.bld.red.lrg').html(); var orderDetails = jQuery('.grey.sml').html(); var cat = jQuery('.bold.orng').html(); var catNext = jQuery('.bold.orng').next().html(); firstPrice = firstPrice.replace('$', ''); firstPrice = firstPrice.replace(' ', ''); for(i=0; i<3; i++) { if(i==0) divClass = "fstRow"; else divClass = "rslt"; pcnt = (i+1)/10; itemPrice = Math.floor(firstPrice - (pcnt*firstPrice)); ratings = Math.floor((Math.random()*5)+1); reviews = Math.floor((Math.random()*1000)+1); if(obj && obj.items[i]) { adHTML += '
      '; adHTML += '
      Product Details
      '; adHTML += '

      '+obj.items[i].title+'

      '; adHTML += ''; adHTML += '
      '; } } jQuery('#atfResults').prepend(jQuery(adHTML)); return; } else if(isTwitter === true) { div.css('width', '388px'); div.insertBefore('.js-stream-manager-container'); } else if(isAol === true) { div.css('width', '850px'); jQuery('.cw').prepend(div); div2.css('width', '850px'); jQuery('.WOL').prepend(div2); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div3.css('width', '850px'); div3.insertAfter('#sw-ads'); div4.css('width', '850px'); div4.insertAfter('#sw-ads-3'); } else if(isAsk === true) { div.css('width', '615px'); div.insertAfter('.tans'); div2.css('width', '615px'); div2.insertBefore('#paging'); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div3.css('width', '615px'); div3.insertAfter('#sw-ads'); div4.css('width', '615px'); div4.insertAfter('#sw-ads-3'); } else if(isComcast === true) { div.css('width', '660px'); jQuery('.sponsor-6').prepend(div); div2.css('width', '660px'); div2.insertBefore('.results-nav-new'); } else if(isFoxnews === true) { div.css('width', '624px'); div.insertAfter('.ez-search-sort'); div2.css('width', '624px'); div2.insertAfter('.ez-mainSearch'); } else if(isYelp === true) { div.css('width', '630px'); div.insertBefore('#searchLayoutMainResults'); div2.css('width', '630px'); div2.insertBefore('.fs_pagination_controls'); div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div3.css('width', '630px'); div3.insertAfter('#sw-ads'); div4.css('width', '630px'); div4.insertAfter('#sw-ads-3'); } else if(isYoutube === true) { div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div.css('width', '628px'); jQuery('#results').prepend(div); div2.css('width', '628px'); div2.insertAfter('.yt-uix-pager'); div3.css('width', '628px'); div3.insertAfter('#sw-ads'); div4.css('width', '628px'); div4.insertAfter('#sw-ads-3'); } else if(isEtsy === true) { injectShoppingAds(term); div.css('width', '772px'); div.insertBefore('#recent_showcase'); div2.css('width', '772px'); jQuery('#related-searches').prepend(div2); var addTime, itemSalePrice, itemRegPrice, itemSavePrice, pcnt, divClass, ratings, reviews, itemNum, modelNum; var curTime = new Date().getTime(); var adHTML = ''; var salePrice = jQuery('.pricing').html(); var lmaker = jQuery('.listing-maker').html(); var lprice = jQuery('.listing-price').html(); for(i=0; i<3; i++) { if(obj && obj.items[i]) { adHTML += '
    • '; adHTML += ''; adHTML += '
      '+obj.items[i].title+''; adHTML += '
      '+lmaker+'
      '; adHTML += '
      '+lprice+'
      '; adHTML += '
    • '; } } jQuery('.listings.scroller').prepend(jQuery(adHTML)); } else if(isMws === true) { div.css('width', '600px'); div.insertBefore('#gslTop'); div2.css('width', '600px'); jQuery('#results').append(div2); } else if(isUps === true) { div.css('width', '540px'); div.insertAfter('.arrow-blue-nav'); } else if(isUsps === true) { div.css('width', '488px'); div.insertBefore('#search-results-tab-content'); div2.css('width', '488px'); div2.insertAfter('#s-results'); } else if(isReference === true) { div.css('width', '445px'); div.insertBefore('#rpane'); div2.css('width', '445px'); div2.insertAfter('.pbk'); } else if(isAtt === true) { div.css('width', '450px'); div.insertBefore('#item1Toggle'); div2.css('width', '445px'); div2.insertBefore('.pagination'); } else if(isIntuit === true) { div.css('width', '590px'); div.insertAfter('#targetSearchContent'); } else if(isRr === true) { div.css('width', '790px'); div.insertBefore('#afsTop'); div2.css('width', '790px'); div2.insertBefore('#pagination'); } else if(isIndeed === true) { div.css('width', '645px'); div.insertAfter('#tjobalerts'); div2.css('width', '645px'); div2.insertBefore('#bjobalerts'); } else if(isUsa === true) { div.css('width', '600px'); div.insertBefore('#search-results-col'); } else if(isWsj === true) { div.css('width', '570px'); div.insertAfter('.spn_links'); div2.css('width', '570px'); div2.insertBefore('.src_resultFooter'); } else if(isDailymail === true) { div.css('width', '636px'); div.insertAfter('.sch-head'); div2.css('width', '636px'); div2.insertBefore('#bing-results'); } else if(isVimeo === true) { div.css('width', '620px'); div.insertAfter('#google_afs_wide'); } else if(isLatimes === true) { div.css('width', '460px'); div.insertAfter('#adcontainer1'); div2.css('width', '460px'); jQuery('.advPagination').prepend(div2); } else if(isNewegg === true) { injectShoppingAds(term); div.css('width', '960px'); div.insertBefore('#categoryNavTop'); div2.css('width', '960px'); div2.insertAfter('.version600'); } else if(isTmz === true) { div.css('width', '545px'); div.insertBefore('.gsa-wrapper'); div2.css('width', '545px'); div2.insertBefore('.gsa-paging'); } else if(isMyspace === true) { div.css('width', '620px'); div.insertAfter('.summary'); div2.css('width', '620px'); div2.insertAfter('.searchResults'); } else if(isFiverr === true) { div.css('width', '607px'); div.insertAfter('.results-bar'); div2.css('width', '607px'); div2.insertBefore('.coll-wrapper-indx'); } else if(isGo === true) { div.css('width', '472px'); div.insertBefore('.widget_head_search'); } else if(isAllrecipes === true) { div.css('width', '500px'); div.insertAfter('.recipe-details-content'); div.insertAfter('.adContainer'); div2.css('width', '500px'); jQuery('#content-wrapper').append(div2); } else if(isFoxsports === true) { div.css('width', '610px'); div.insertBefore('.ez-mainSearch'); div2.css('width', '610px'); div2.insertAfter('.ez-mainSearch'); } else if(isCbssports === true) { div.css('width', '480px'); div.insertBefore('#docs'); div2.css('width', '480px'); div2.insertAfter('#docs'); } else if(isShopathome === true) { injectShoppingAds(term); div.css('width', '560px'); div.insertBefore('#tabResults'); div2.css('width', '560px'); jQuery('#tabResults').append(div2); } else if(isSlickdeals === true) { injectShoppingAds(term); div.css('width', '880px'); div.insertBefore('#results_table'); div2.css('width', '880px'); div2.insertAfter('#results_table'); } else if(isVerizon === true) { div.css('width', '810px'); div.insertAfter('#search_top_nav'); div2.css('width', '810px'); div2.insertBefore('#search_bottom_nav'); } else if(isSwest === true) { div.css('width', '545px'); jQuery('#search_results').prepend(div); div2.css('width', '545px'); jQuery('.keymatch_result').append(div2); } else if(isSquidoo === true) { div.css('width', '590px'); div.insertAfter('#searchSort'); div2.css('width', '590px'); jQuery('#search_results').append(div2); } else if(isKohls === true) { injectShoppingAds(term); div.css('width', '580px'); div.insertBefore('.products'); div2.css('width', '580px'); div2.insertAfter('.products'); var addTime, itemSalePrice, itemRegPrice, itemSavePrice, pcnt, divClass, ratings, reviews, stores, nearby; var curTime = new Date().getTime(); var adHTML = ''; var oPrice = ''; var sPrice = ''; if(jQuery('.oprice').length > 0) oPrice = jQuery('.oprice').html(); if(jQuery('.sprice').length > 0) sPrice = jQuery('.sprice').html(); for(i=0; i<3; i++) { if(obj && obj.items[i]) { adHTML += '
      '; adHTML += ''+obj.items[i].title+''; if(oPrice != '') adHTML += '

      '+oPrice+'

      '; if(sPrice != '') adHTML += '

      '+sPrice+'

      '; adHTML += '
      '; } } jQuery('.products').prepend(jQuery(adHTML)); } else if(isCbuilder === true) { div.css('width', '790px'); div.insertBefore('#JL_D'); div2.css('width', '790px'); div2.insertAfter('#JL_D'); } else if(isPeople === true) { div.css('width', '940px'); jQuery('.resultsMenu').prepend(div); div2.css('width', '950px'); jQuery('#archiveSearchBottom').prepend(div2); } else if(isGoD === true) { div.css('width', '528px'); div.insertBefore('.pad30'); div2.css('width', '528px'); div2.insertAfter('.naturals'); } else if(isGap === true) { div.css('width', '828px'); div.insertAfter('.searchResults'); div2.css('width', '828px'); div2.insertAfter('#searchProductIteration'); } else if(isMonster === true) { div.css('width', '546px'); jQuery('#centerColumn').prepend(div); div2.css('width', '546px'); jQuery('#secondaryResults').append(div2); } else if(isMeetup === true) { div.css('width', '920px'); div.insertAfter('.D_listControls_compact'); div2.css('width', '920px'); div2.insertAfter('#groupListContainer'); } else if(isWebmd === true) { div.css('width', '630px'); div.insertBefore('#Pagination1_PaginationTopDiv'); div2.css('width', '630px'); div2.insertBefore('#Pagination2_PaginationTopDiv'); } else if(isReuters === true) { div.css('width', '620px'); div.insertBefore('.searchLabelRight'); div2.css('width', '620px'); jQuery('.pageNavigation').prepend(div2); } else if(isCa === true) { div.css('width', '555px'); div.insertAfter('.search_pages'); div2.css('width', '555px'); div2.insertAfter('#search_results'); } else if(isNih === true) { div.css('width', '555px'); div.insertAfter('#top-navigation'); div2.css('width', '555px'); div2.insertBefore('#bottom-navigation'); } else if(isIgn === true) { div.css('width', '625px'); div.insertAfter('#productPlatforms'); div2.css('width', '625px'); jQuery('#searchResults').append(div2); } else if(isWpages === true) { div.css('width', '480px'); div.insertAfter('#biz_category_links'); div2.css('width', '480px'); div2.insertBefore('.bottom_pagination_wrap'); } else if(isMlb === true) { div.css('width', '640px'); div.insertBefore('#divSearchResults'); div2.css('width', '640px'); div2.insertBefore('.sch-navigation'); } else if(isRetailmenot === true) { div.css('width', '640px'); div.insertBefore('#offers'); div2.css('width', '640px'); div2.insertAfter('.purple'); } else if(isNydaily === true) { div.css('width', '605px'); div.insertBefore('#results'); div2.css('width', '605px'); div2.insertAfter('#results'); } else if(isDigg === true) { div.css('width', '650px'); div.insertBefore('.stories'); div2.css('width', '650px'); div2.insertAfter('#story-list-container'); } else if(isHubpages === true) { div.css('width', '640px'); div.insertAfter('.sort'); div2.css('width', '640px'); jQuery('#pagination').prepend(div2); } else if(isSresults === true) { div.css('width', '740px'); div.insertAfter('.tp'); div2.css('width', '740px'); jQuery('#paging').prepend(div2); } else if(isFnetwork === true) { div.css('width', '390px'); div.insertBefore('#results'); div2.css('width', '390px'); div2.insertAfter('#results'); } else if(isElink === true) { div.css('width', '600px'); div.insertAfter('#webResults h2'); div2.css('width', '600px'); div2.insertAfter('#webResults'); } else if(isDM === true) { div.css('width', '610px'); jQuery('#dual_list').prepend(div); div2.css('width', '610px'); div2.insertAfter('#search_results'); } else if(isKayak === true) { div.css('width', '620px'); div.insertAfter('#topOfResultsHeader'); div2.css('width', '620px'); div2.insertAfter('#content_div'); } else if(isSfgate === true) { div.css('width', '625px'); div.insertAfter('#queryreport'); div2.css('width', '625px'); div2.insertAfter('.results_site'); } else if(isCostco === true) { injectShoppingAds(term); div.css('width', '600px'); div.insertBefore('#SearchedItems1_SearchResultAddtoCart1_ProductList'); div2.css('width', '600px'); div2.insertAfter('#SearchedItems1_SearchResultAddtoCart1_ProductList'); } else if(isHp === true) { div.css('width', '600px'); div.insertAfter('.heading_row'); div2.css('width', '600px'); div2.insertBefore('.footing_row'); } else if(isCBank === true) { div.css('width', '660px'); div.insertAfter('#FastSearchResults'); div2.css('width', '660px'); div2.insertAfter('.appRowGroup.searchNav.searchNavBottom'); } else if(isBberg === true) { div.css('width', '500px'); jQuery('#srp_results').prepend(div); div2.css('width', '500px'); div2.insertBefore('.pagination.clearfix'); } else if(isMwatch === true) { div.css('width', '570px'); jQuery('.block.sponsoredlinkblock.mainline').prepend(div); div2.css('width', '570px'); jQuery('.resultlist').append(div2); } else if(isBabylon === true) { div3 = createXmlBox('sw-ads-3'); div4 = createXmlBox('sw-ads-4'); div.css('width', '630px'); jQuery('#gRsTopLinks').prepend(div); div2.css('width', '630px'); jQuery('#gRsWeb').append(div2); div3.css('width', '630px'); div3.insertAfter('#sw-ads'); div4.css('width', '630px'); div4.insertAfter('#sw-ads-3'); } else if(isNextag === true) { injectShoppingAds(term); } else return; ads = ''; if (!obj || !obj.items) { for (i = 0; i < 4; i++) { if(i > 0) swAdsBox = "#sw-ads-"+(i+1); else swAdsBox = "#sw-ads"; if(jQuery(swAdsBox).length > 0) jQuery(swAdsBox).remove(); } return; } if ( obj.items.length < 1) { for (i = 0; i < 4; i++) { if(i > 0) swAdsBox = "#sw-ads-"+(i+1); else swAdsBox = "#sw-ads"; if(jQuery(swAdsBox).length > 0) jQuery(swAdsBox).remove(); } return; } if(obj.items.length < 4) { for(i = obj.items.length; i<4; i++) { if(i > 0) swAdsBox = "#sw-ads-"+(i+1); else swAdsBox = "#sw-ads"; if(jQuery(swAdsBox).length > 0) jQuery(swAdsBox).remove(); } } /*if(ad_label != '') { div.html('
      '+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); } } } function injectXmlBox(id, containerId, title, redirect, adUrl, desc) { listId = "injectedList"+id; linkId = "injectedLink"+id; urlId = "injectedUrl"+id; descriptionId = "injectedDescription"+id; list = jQuery('
      ').appendTo(containerId); link = jQuery('').appendTo(list); if(id == 0 && ad_label != '') brand = jQuery('
      '+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 isApprovedDomain(dom) { if(dom == "amazon" || dom == "bestbuy" || dom == "ebay" || dom == "facebook" || dom == "homedepot" || dom == "jcpenney" || dom == "kmart" || dom == "lowes" || dom == "macys" || dom == "overstock" || dom == "pronto" || dom == "sears" || dom == "shopping" || dom == "shopzilla" || dom == "staples" || dom == "target" || dom == "twitter" || dom == "walmart" || dom == "youtube") return true; else return false; } function injectBannerAd(adSize, adPlacement, injectFunc, adAffiliate, adForceSearch, beforeBanner) { if(bannerAds == 1 && pageReferer && pageReferer != '') { var glBanner = ''; if(adPlacement == 'body') glBanner = '&gb=1'; var adMediaBannerWd = ""; var adMediaBannerHt = ""; var afterBanner = ""; if(beforeBanner != '') afterBanner = ""; if(q_link != '') beforeBanner += "
      "; bannersize = adSize.split("x"); adMediaBannerWd = bannersize[0]; adMediaBannerHt = bannersize[1]; grSize = adSize; grBannerWd = adMediaBannerWd; grBannerHt = adMediaBannerHt; if(adSize != "728x90" && adSize != "468x60" && adSize != "300x250" && adSize != "234x60" && adSize != "125x125" && adSize != "120x90" && adSize != "120x60") { grSize = "728x90"; grBannerWd = "728"; grBannerHt = "90"; } if(pageEntity == "facebook") adForceSearch += "&fb=1"; else if(pageEntity == "twitter") adForceSearch += "&tw=1"; else if(httpText == "https") adForceSearch += "&hostDomain="+escape(document.location.href); if(injectFunc == "af") { //if(adAffiliate == "20267" && randCtxt == 0) jQuery(beforeBanner+''+afterBanner).insertAfter(adPlacement); //else if(ctxtBanners == 1) //jQuery(beforeBanner+''+afterBanner).insertAfter(adPlacement); jQuery('
      ').insertAfter(adPlacement); } else if(injectFunc == "ap") { //if(adAffiliate == "20267" && randCtxt == 0) jQuery(adPlacement).append(beforeBanner+''+afterBanner); //else if(ctxtBanners == 1) //jQuery(adPlacement).append(beforeBanner+''); jQuery(adPlacement).append('
      '); } else if(injectFunc == "be") { //if(adAffiliate == "20267" && randCtxt == 0) jQuery(beforeBanner+''+afterBanner).insertBefore(adPlacement); //else if(ctxtBanners == 1) //jQuery(beforeBanner+''+afterBanner).insertBefore(adPlacement); jQuery('
      ').insertBefore(adPlacement); } else if(injectFunc == "pr") { //if(adAffiliate == "20267" && randCtxt == 0) jQuery(adPlacement).prepend(beforeBanner+''+afterBanner); //else if(ctxtBanners == 1) //jQuery(adPlacement).prepend(beforeBanner+''); jQuery(adPlacement).prepend('
      '); } } } function injectGrBanner(adSize, adPlacement, injectFunc) { if(bannerAds == 1 && pageReferer && pageReferer != '') { var adMediaBannerWd = ""; var adMediaBannerHt = ""; bannersize = adSize.split("x"); adMediaBannerWd = bannersize[0]; adMediaBannerHt = bannersize[1]; if(injectFunc == "af") { jQuery('
      ').insertAfter(adPlacement); } else if(injectFunc == "ap") { jQuery(adPlacement).append('
      '); } else if(injectFunc == "be") { jQuery('
      ').insertBefore(adPlacement); } else if(injectFunc == "pr") { jQuery(adPlacement).prepend('
      '); } } } getIECallback = function (obj, dir) { injectXmlAds(obj); } shuffle = function(o){ //v1.0 for(var j, x, i = o.length; i; j = parseInt(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x); return o; }; function disablePreroll() { localStorage['disablePreroll'] = 1; closePreroll(); return false; } function closePreroll() { var fram = document.getElementById('prerollIframe'); fram.parentNode.removeChild(fram); return false; } function injectPreroll(container, st) { if(prerollHosts[pageEntity] === true) { //alert(localStorage['disablePreroll']); var showPreroll = 1; if(localStorage['disablePreroll'] && localStorage['disablePreroll'] == 1) showPreroll = 0; if(prollEnabled == "1" && showPreroll == 1) { var prerollWidth = 480; var prerollHeight = 400; var prerollParams = '&ref='+encodeURIComponent(pageUrl); if(pageEntity == "yahoo" || pageEntity == "msn" || pageEntity == "youtube" || pageEntity == "aol" || pageEntity == "imdb" || pageEntity == "flickr" || pageEntity == "agame" || pageEntity == "nick" || pageEntity == "mashable") { prerollWidth = 300; prerollHeight = 250; prerollParams += "&width="+prerollWidth+"&height="+prerollHeight; } if(st == "af") { jQuery('
      You might also enjoy this related video:
      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+'
        '; } } adHTML += '
      '; } return adHTML; } function injectShoppingAds(shopTerm) { var stermsArr = ['Mens Tennis Shoes', 'Pumps and Heels', 'Nikon Cameras', 'Dell Computers', 'Samsung Tvs', 'Video Games', 'Tote Handbags', 'Perfume for Men', 'Fashion Jewelry', 'Ceramic Watches', 'Diamond Studs', 'Educational Toys', 'Patio Furniture Sets']; var sterms = shuffle(stermsArr); if(shopTerm == '') shopTerm = sterms[0]; if(xmlAds == 1 && shopAff != '' && jQuery('#swShoppingWidget').length <= 0) loadScript("https://in.admedia.com/content_shop.php?id="+shopAff+"&term=" +shopTerm+"&pageDomain="+pageDomain+subid+"&pageEntity="+pageEntity+"&callback=getShoppingCallback", function(){}); } function getShoppingCallback(obj, dir) { if(pageEntity == "google") { var adHTML = getGoogleShopping(obj); setTimeout(function() { if(jQuery('#swShoppingWidget').length <= 0) jQuery('#taw').prepend(jQuery(adHTML)); if(dSites['xml'].indexOf("google,") != -1 || xmlAds == 0) { var scookieName = "googleShopAds"; var scookieVal = 1; var svalues = new Array(); var sfts = Math.round((new Date()).getTime() / 1000) + 86400; svalues.push(scookieVal); svalues.push(sfts); jQuery('.googleShoppingAdsImage').click(function() { localStorage[scookieName] = svalues.join(";"); }); jQuery('.googleShoppingAdsTitle').click(function() { localStorage[scookieName] = svalues.join(";"); }); } }, 1000); return; } var vAdHTML = getVShoppingHTML(obj); var hAdHTML = getHShoppingHTML(obj); if(pageEntity == "yahoo") { jQuery('#results').prepend(jQuery(hAdHTML)); jQuery('#shrightcol').prepend(jQuery(hAdHTML)); } else if(pageEntity == "bing") jQuery('#sidebar').prepend(jQuery(vAdHTML)); else if(pageEntity == "info") jQuery('.lefty').prepend(jQuery(hAdHTML)); else if(pageEntity == "amazon") jQuery('#breadCrumbDiv').append(jQuery(hAdHTML)); else if(pageEntity == "overstock") jQuery('#relatedSearches').append(jQuery(hAdHTML)); else if(pageEntity == "walmart") jQuery('#relatedQueries').append(jQuery(hAdHTML)); else if(pageEntity == "sears") jQuery('#results').prepend(jQuery(hAdHTML)); else if(pageEntity == "jcpenney") jQuery('#xgnContent').prepend(jQuery(hAdHTML)); else if(pageEntity == "shopping") jQuery('#searchResultsContainer').prepend(jQuery(hAdHTML)); else if(pageEntity == "lowes") jQuery('#main_content_rail').prepend(jQuery(hAdHTML)); else if(pageEntity == "homedepot") jQuery('#side').prepend(jQuery(vAdHTML)); else if(pageEntity == "macys") jQuery('#localNavigationContainer').prepend(jQuery(vAdHTML)); else if(pageEntity == "pronto") jQuery('#productGridContainer').prepend(jQuery(hAdHTML)); else if(pageEntity == "bestbuy") jQuery('#leftcol').prepend(jQuery(vAdHTML)); else if(pageEntity == "target") jQuery('#leftNavArea').prepend(jQuery(vAdHTML)); else if(pageEntity == "staples") jQuery('#sfilters').prepend(jQuery(vAdHTML)); else if(pageEntity == "ebay") jQuery('#RightPanel').prepend(jQuery(vAdHTML)); else if(pageEntity == "etsy") jQuery('#secondary').prepend(jQuery(vAdHTML)); else if(pageEntity == "newegg") jQuery('#bodyCenterArea').prepend(jQuery(hAdHTML)); else if(pageEntity == "shopathome") jQuery('#RightColumn').prepend(jQuery(vAdHTML)); else if(pageEntity == "slickdeals") jQuery(hAdHTML).insertBefore('#results_table'); else if(pageEntity == "costco") jQuery('#secondary_content_wrapper').prepend(jQuery(hAdHTML)); else if(pageEntity == "nextag") jQuery('#sr-header-sprite').append(jQuery(hAdHTML)); else if(pageEntity == "kohls") jQuery(hAdHTML).insertBefore('#product-matrix'); } function getHomePageCallback(obj, dir) { var adHTML = ''; if(q_link != '') adHTML += "
      "; adHTML += '
      '; for(i=0; i<4; i++) { if(obj.items[i] && obj.items[i].title && obj.items[i].title != ''){ adHTML += '
      '; adHTML += ''; adHTML += '
      '; adHTML += ''+obj.items[i].title+''; adHTML += '

      '+obj.items[i].description+'

      '; adHTML += ''+obj.items[i].displayUrl+''; adHTML += '
      '; } } adHTML += '
      '; if(pageEntity == "ebay") jQuery('#CentralArea').append(jQuery(adHTML)); else if(pageEntity == "walmart") jQuery('#wmHomePage #richMedia').append(jQuery(adHTML)); else if(pageEntity == "yahoo") jQuery('#shmodhero').append(jQuery(adHTML)); else if(pageEntity == "google") jQuery('#curated-carousels').prepend(jQuery("
      "+adHTML+"
      ")); else if(pageEntity == "target") jQuery('.hp_hero_espot').append(jQuery(adHTML)); else if(pageEntity == "bestbuy") jQuery('.featured-offers').prepend(jQuery(adHTML)); else if(pageEntity == "shopzilla") jQuery('#footer').prepend(jQuery(adHTML)); else if(pageEntity == "ticketmaster") jQuery('#rc_reserved').append(jQuery(adHTML)); else if(pageEntity == "nextag") jQuery('.prodListBox').prepend(jQuery(adHTML)); else if(pageEntity == "sears") jQuery('#heroRow').prepend(jQuery(adHTML)); else if(pageEntity == "etsy") jQuery('#primary').prepend(jQuery(adHTML)); else if(pageEntity == "barnesandnoble") jQuery('#home-left').prepend(jQuery(adHTML)); else if(pageEntity == "kohls") jQuery(adHTML).insertBefore('#cycle-container'); else if(pageEntity == "buycheapr") jQuery("
      "+adHTML+"
      ").insertBefore('.product-list'); else if(pageEntity == "pronto") jQuery('.linkModuleContainer.clearfix').append(jQuery(adHTML)); else if(pageEntity == "shopping") jQuery('#marketingContent').append(jQuery(adHTML)); else if(pageEntity == "rakuten") jQuery('.secHotproducts').prepend(jQuery(adHTML)); else if(pageEntity == "overstock") jQuery('#content-mid-mods').prepend(jQuery(adHTML)); else if(pageEntity == "alibaba") jQuery('#bargain-buys').prepend(jQuery(adHTML)); else if(pageEntity == "pricegrabber") jQuery('#mediumbricks').prepend(jQuery(adHTML)); else if(pageEntity == "shopathome") jQuery('.topStoreAds').prepend(jQuery(adHTML)); else if(pageEntity == "limitedbrands") jQuery('#fn_widgetContainer').prepend(jQuery(adHTML)); else if(pageEntity == "staples") jQuery('#homePromoBannerZone').append(jQuery(adHTML)); else if(pageEntity == "walgreens") jQuery('.padTop15px').prepend(jQuery(adHTML)); else if(pageEntity == "kmart") jQuery('#kHMPG_midSection').prepend(jQuery(adHTML)); else if(pageEntity == "proflowers") jQuery('#productCollection').prepend(jQuery(adHTML)); else if(pageEntity == "thefind") jQuery('#tf_utils_panel_index_merchant_center').prepend(jQuery(adHTML)); else if(pageEntity == "oldnavy") jQuery(adHTML).insertAfter('.hp_leftnav_major_container'); else if(pageEntity == "cvs") jQuery('#main').prepend(jQuery(adHTML)); else if(pageEntity == "officedepot") jQuery('#midPromo').prepend(jQuery(adHTML)); else if(pageEntity == "stubhub") jQuery('#hptabs').prepend(jQuery(adHTML)); else if(pageEntity == "cafepress") jQuery('.col6').prepend(jQuery(adHTML)); else if(pageEntity == "bedbathandbeyond") jQuery('.contentbodyhome').append(jQuery(adHTML)); else if(pageEntity == "gifts") jQuery(adHTML).insertBefore('#topPicksMen'); else if(pageEntity == "drugstore") jQuery('#DSHomeCntr').prepend(jQuery(adHTML)); else if(pageEntity == "ikea") jQuery(adHTML).insertAfter('.shoppinglistbox'); else if(pageEntity == "lego") jQuery(adHTML).insertBefore('.shopList.shopList3'); else if(pageEntity == "guitarcenter") jQuery('#mboxImported-default-gc-a-pencil-0').append(jQuery(adHTML)); else if(pageEntity == "1800flowers") jQuery(adHTML).insertBefore('#datasetsect'); else if(pageEntity == "cabelas") jQuery(adHTML).insertAfter('.js-imageRotator.imageRotator'); else if(pageEntity == "hsn") jQuery(adHTML).insertBefore('#ProdCarousel1'); else if(pageEntity == "sony") jQuery('#tab-content').prepend(jQuery(adHTML)); else if(pageEntity == "officemax") jQuery('#showcase').append(jQuery(adHTML)); else if(pageEntity == "fingerhut") jQuery('.homeHero').append($(adHTML)); else if(pageEntity == "dsw") jQuery(adHTML).insertAfter('#featureCarousel'); else if(pageEntity == "hottopic") jQuery(adHTML).insertAfter('#Table_01'); else if(pageEntity == "gap") { if(document.location.href.indexOf('oldnavy.gap.com') != -1) jQuery('.slider').prepend($(adHTML)); else if(document.location.href.indexOf('bananarepublic.gap.com') != -1) jQuery('#HPRegion').prepend($(adHTML)); else if(document.location.href.indexOf('piperlime.gap.com') != -1) jQuery('#slideShowContainer').prepend(jQuery(adHTML)); } else if(pageEntity == "amazon") jQuery('#centercol').prepend(jQuery(adHTML)); else if(pageEntity == "lowes") jQuery(adHTML).insertBefore('#promo_hero'); else if(pageEntity == "zazzle") jQuery(adHTML).insertAfter('#page_slideshow'); else if(pageEntity == "costco") jQuery(adHTML).insertAfter('.homepage-hero'); else if(pageEntity == "kroger") jQuery(adHTML).insertBefore('#redBarContainer'); else if(pageEntity == "abercrombie") jQuery('.hero-wrap').append(jQuery(adHTML)); else if(pageEntity == "movietickets") jQuery('#bod5HP').prepend(jQuery(adHTML)); else if(pageEntity == "dickssportinggoods") jQuery('#tabArea').prepend(jQuery(adHTML)); else if(pageEntity == "shopwiki") jQuery('#results_only').prepend(jQuery(adHTML)); else if(pageEntity == "radioshack") jQuery('#interiorWrapper').prepend(jQuery(adHTML)); else if(pageEntity == "consumersearch") jQuery('#home-below-fold').prepend(jQuery(adHTML)); else if(pageEntity == "orientaltrading") jQuery('#hpContent').prepend(jQuery(adHTML)); else if(pageEntity == "cduniverse") jQuery('#x1').prepend(jQuery(adHTML)); else if(pageEntity == "tickets") jQuery('#main').prepend(jQuery(adHTML)); else if(pageEntity == "finishline") jQuery('#homePromoSlot1Wrapper').prepend(jQuery(adHTML)); else if(pageEntity == "harborfreight") jQuery('#main-conten').prepend(jQuery(adHTML)); else if(pageEntity == "eastbay") jQuery('.eb_home_container').prepend(jQuery(adHTML)); else if(pageEntity == "shoplocal") jQuery(adHTML).insertBefore('#widContainer'); else if(pageEntity == "sportsauthority") jQuery('#content').append(jQuery(adHTML)); else if(pageEntity == "landsend") jQuery(adHTML).insertAfter('.hero-image'); else if(pageEntity == "wayfair") jQuery('.hpblockspace').append(jQuery(adHTML)); else if(pageEntity == "menards") jQuery('#mainSliderArea').append(jQuery(adHTML)); else if(pageEntity == "basspro") jQuery('#main-column').prepend(jQuery(adHTML)); else if(pageEntity == "microsoftstore") jQuery('#rotatingBanner').append(jQuery(adHTML)); else if(pageEntity == "become") jQuery('.shop-by-category').prepend(jQuery(adHTML)); else if(pageEntity == "thinkgeek") jQuery(adHTML).insertBefore('#carouselwrapper'); else if(pageEntity == "joann") jQuery(adHTML).insertBefore('#orgnews'); else if(pageEntity == "shoebuy") jQuery('#home-col-right').prepend(jQuery(adHTML)); else if(pageEntity == "best-deal") jQuery('#start_cats').prepend(jQuery(adHTML)); else if(pageEntity == "dhgate") jQuery('#mainConvertWarp').prepend(jQuery(adHTML)); else if(pageEntity == "northerntool") jQuery(adHTML).insertAfter('#multi-channel'); else if(pageEntity == "wirefly") jQuery('.lego20_flexi_multi_m235').prepend(jQuery(adHTML)); else if(pageEntity == "christianbook") jQuery('#featured').append(jQuery(adHTML)); else if(pageEntity == "safeway") jQuery(adHTML).insertBefore('#imageSlider1'); else if(pageEntity == "acehardware") jQuery('.hotbuys').prepend(jQuery(adHTML)); else if(pageEntity == "childrensplace") jQuery('#hp_promo_slot').prepend(jQuery(adHTML)); else if(pageEntity == "style") jQuery('#left-column').prepend(jQuery(adHTML)); else if(pageEntity == "jcwhitney") jQuery('.fCatItems').prepend(jQuery(adHTML)); else if(pageEntity == "simon") jQuery('#colA').prepend(jQuery(adHTML)); else if(pageEntity == "riteaid") jQuery('#mainPromoBlock').prepend(jQuery(adHTML)); else if(pageEntity == "nomorerack") jQuery('#primary').prepend(jQuery(adHTML)); else if(pageEntity == "pacsun") jQuery('#topPromos').append(jQuery(adHTML)); else if(pageEntity == "customink") jQuery('.main-content').prepend(jQuery(adHTML)); else if(pageEntity == "personalizationmall") jQuery('.home-banner').prepend(jQuery(adHTML)); else if(pageEntity == "lightinthebox") jQuery('#wrapper-r').prepend(jQuery(adHTML)); else if(pageEntity == "wetseal") jQuery(adHTML).insertAfter('#wrap-slider'); else if(pageEntity == "jr") jQuery('#bd').prepend(jQuery(adHTML)); else if(pageEntity == "charlotterusse") jQuery('#managedContentWrap').prepend(jQuery(adHTML)); else if(pageEntity == "toms") jQuery(adHTML).insertBefore('#main-slider'); else if(pageEntity == "grasscity") jQuery('.col-main').prepend(jQuery(adHTML)); else if(pageEntity == "disneystore") jQuery('#objEnhancedTabbedBillboard').prepend(jQuery(adHTML)); else if(pageEntity == "ediblearrangements") jQuery(adHTML).insertAfter('.topBanner'); else if(pageEntity == "autoanything") jQuery(adHTML).insertAfter('#slideshow'); else if(pageEntity == "redenvelope") jQuery(adHTML).insertAfter('#mainContainer'); else if(pageEntity == "proactiv") jQuery(adHTML).insertAfter('#homepageBanner'); else if(pageEntity == "llbean") jQuery('.hpprime').prepend(jQuery(adHTML)); else if(pageEntity == "logitech") jQuery('#promoArea').prepend(jQuery(adHTML)); else if(pageEntity == "bradfordexchange") jQuery('.mainBody').prepend(jQuery(adHTML)); else if(pageEntity == "academy") jQuery('#products').prepend(jQuery(adHTML)); else if(pageEntity == "ulta") jQuery('.mid').prepend(jQuery(adHTML)); else if(pageEntity == "ticketliquidator") jQuery(adHTML).insertBefore('#levent_table'); else if(pageEntity == "dressbarn") jQuery(adHTML).insertAfter('.homepage_landing'); else if(pageEntity == "coldwatercreek") jQuery('#phpLowerSection').prepend(jQuery(adHTML)); else if(pageEntity == "belk") jQuery('#hero').prepend(jQuery(adHTML)); else if(pageEntity == "drjays") jQuery('#home_feature').prepend(jQuery(adHTML)); else if(pageEntity == "techbargains") jQuery('#j_id442').prepend(jQuery(adHTML)); else if(pageEntity == "berries") jQuery(adHTML).insertBefore('#HeaderSupportLinks'); else if(pageEntity == "bonton") jQuery(adHTML).insertAfter('.header-bottom'); else if(pageEntity == "bluefly") jQuery(adHTML).insertAfter('#homePrimary'); else if(pageEntity == "bonanza") jQuery(adHTML).insertAfter('.hero_splash'); else if(pageEntity == "nyandcompany") jQuery(adHTML).insertAfter('#page_header'); else if(pageEntity == "adorama") jQuery(adHTML).insertBefore('.heroContainer'); } injectHomePageAds = function() { var stermsArr = ['Mens Tennis Shoes', 'Pumps and Heels', 'Nikon Cameras', 'Dell Computers', 'Samsung Tvs', 'Video Games', 'Tote Handbags', 'Perfume for Men', 'Fashion Jewelry', 'Ceramic Watches', 'Diamond Studs', 'Educational Toys', 'Patio Furniture Sets']; var sterms = shuffle(stermsArr); loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +sterms[0]+"&pageDomain="+pageDomain+subid+"&pageEntity="+pageEntity+"&callback=getHomePageCallback", function(){}); }; function injectGlobalBanners() { injectGrBanner('728x90', '[id*="header"]', 'ap'); injectGrBanner('300x250', '[id*="footer"]', 'ap'); injectGrBanner('160x600', '[id*="content"]', 'ap'); injectGrBanner('728x90', '[class*="header"]', 'ap'); injectGrBanner('300x250', '[class*="footer"]', 'ap'); injectGrBanner('160x600', '[class*="content"]', 'ap'); } function injectAds() { var pagebody = jQuery(window.document.body); determineIsSearch(); if(xmlAds == 1 && dSites['xml'].indexOf(pageEntity+",") == -1 ) { /*if(ie_version != 1) injectXmlAds(); else {*/ if(escapedTerm != '') { if(pageEntity == "google" || pageEntity == "yahoo" || pageEntity == "bing" || pageEntity == "ask" || pageEntity == "aol") loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&s=1&pageDomain="+pageDomain+subid+"&callback=getIECallback", function(){}); else loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&pageDomain="+pageDomain+subid+"&callback=getIECallback", function(){}); } //} } else if(pageEntity == "google" && (dSites['xml'].indexOf("google,") != -1 || xmlAds == 0)) { if(showGoogleShop == 1) injectShoppingAds(term); if(showGoogleSerp == 1) loadScript("https://in.admedia.com/content.php?id="+xmlAff+"&term=" +escapedTerm+"&s=1&pageDomain="+pageDomain+subid+"&callback=getIECallback", function(){}); } if(vsliderHosts[pageDomain] === true && vsliderAds == 1) { pagebody.append(''); } if (fullInlineHosts[pageEntity] === true && inlineAds == 1 && dSites['inline'].indexOf(pageEntity+",") == -1) { pagebody.append(''); } //else if (blacklistInlineHosts[pageEntity] !== true && inlineAds == 1) { // pagebody.append(''); //} if(affiliate == "23120" && overlayAds == 1) { pagebody.append(''); } else if (overlayHosts[pageEntity] === true && overlayAds == 1 && dSites['overlay'].indexOf(pageEntity+",") == -1) { if(pageEntity == "yahoo") { if(document.location.href.indexOf('video.search.yahoo') != -1 || document.location.href.indexOf('omg.yahoo.com/video') != -1 || document.location.href.indexOf('movies.yahoo.com') != -1 || document.location.href.indexOf('tv.yahoo.com') != -1 || document.location.href.indexOf('music.yahoo.com') != -1 || document.location.href.indexOf('screen.yahoo.com') != -1) pagebody.append(''); } else if(pageEntity == "bing") { if(document.location.href.indexOf('bing.com/videos') != -1) pagebody.append(''); } else if(pageEntity == "huffingtonpost") { if(document.location.href.indexOf('live.huffingtonpost') != -1) pagebody.append(''); } else pagebody.append(''); } if(footerrollHosts[pageEntity] === true && footerrollAds == 1 && dSites['footerroll'].indexOf(pageEntity+",") == -1) { pagebody.append(' '); } if(homepageAdsHosts[pageEntity] === true) { injectHomePageAds(); } var forceSearch = ""; if(term && term != '') forceSearch = "&search="+term+"&force=1"; else if(pageEntity == "facebook") { var rand = Math.floor(Math.random()*11); if(rand%2 == 0) forceSearch = "&cat=2"; else forceSearch = "&cat=7"; } if(dSites['banner'].indexOf(pageEntity+",") == -1) { var hsearchTerms = ['credit card offers', 'massage chairs', 'cell phones', 'airline prices', 'work from home', 'lose weight fast', 'local deals', 'digital cameras', 'vacation packages', 'online dating']; var shuffledTerms = shuffle(hsearchTerms); var forceHome1 = "&search="+shuffledTerms[0]+"&force=1"; var forceHome2 = "&search="+shuffledTerms[1]+"&force=1"; var forceHome3 = "&search="+shuffledTerms[2]+"&force=1"; setTimeout(function() { switch (pageEntity) { case 'google': if(document.location.href.indexOf('google.com/prdhp') != -1 || document.location.href.indexOf('google.com/shopping') != -1) injectHomePageAds(); //injectGrBanner('728x90', '#lga', 'pr'); //injectGrBanner('728x90', '#footer', 'ap'); //injectGrBanner('300x250', '#body', 'ap'); //injectGrBanner('728x90', '#foot', 'ap'); //injectGrBanner('300x250', '#foot', 'ap'); //injectGrBanner('728x90', '#topabar', 'pr'); break; case 'yahoo': if(document.location.href.indexOf('shopping.yahoo.com') != -1) injectHomePageAds(); injectGrBanner('728x90', '#y-header', 'ap'); injectGrBanner('120x600', '#y-pa', 'pr'); injectGrBanner('728x90', '#y-footer', 'ap'); injectGrBanner('300x250', '#results', 'ap'); injectGrBanner('160x600', '#sidebar', 'ap'); injectGrBanner('728x90', '#ft', 'ap'); injectPreroll('#y-col2', 'ap'); if(document.location.href.indexOf('movies.yahoo.com') != -1) { if(jQuery('#ymh-player-swf').length > 0) { var playerCode = ''; var playerUrl = jQuery('meta[property="og:video"]').attr('content'); var hashes = playerUrl.slice(playerUrl.indexOf('?') + 1).split('&'); for(var i = 0; i < hashes.length; i++) { hash = hashes[i].split('='); if(hash[0] == "vid") playerCode = hash[1]; } if(playerCode != '') { var embedUrl = "http://d.yimg.com/nl/movies/site/player.html#repeat=0&browseCarouselUI=hide&vid="+playerCode+"&startScreenCarouselUI=hide&shareUrl="+document.location.href; jQuery('#ymh-player-swf').html(''); jQuery('#ymh-player-swf').html(''); setInterval(function() { jQuery('object[id^="yppVideoPlayer"]').remove(); }, 1000); } } } if(document.location.href.indexOf('tv.yahoo.com') != -1) { if(jQuery('#video_container').length > 0) { var playerCode = ''; var playerUrl = jQuery('#video_container').find('embed').attr('flashvars'); var hashes = playerUrl.slice(playerUrl.indexOf('?') + 1).split('&'); for(var i = 0; i < hashes.length; i++) { hash = hashes[i].split('='); if(hash[0] == "vid") playerCode = hash[1]; } if(playerCode != '') { var embedUrl = "http://d.yimg.com/nl/ytv/site/player.html#repeat=0&vid="+playerCode+"&shareUrl="+document.location.href; jQuery('#video_container').html(''); jQuery('#video_container').html(''); //setInterval(function() { jQuery('object[id^="yppVideoPlayer"]').remove(); }, 1000); } } } if(document.location.href.indexOf('music.yahoo.com') != -1) { if(jQuery('#ymh-player-swf').length > 0) { var playerCode = ''; var playerUrl = jQuery('meta[property="og:video"]').attr('content'); if(playerUrl) { var hashes = playerUrl.slice(playerUrl.indexOf('?') + 1).split('&'); for(var i = 0; i < hashes.length; i++) { hash = hashes[i].split('='); if(hash[0] == "vid") playerCode = hash[1]; } } if(playerCode != '') { var embedUrl = "http://d.yimg.com/nl/vyc/site/player.html#repeat=0&browseCarouselUI=hide&vid="+playerCode+"&startScreenCarouselUI=hide&shareUrl="+document.location.href; jQuery('#ymh-player-swf').html(''); jQuery('#ymh-player-swf').html(''); setInterval(function() { jQuery('object[id^="yppVideoPlayer"]').remove(); }, 1000); } else { setInterval(function() { if(jQuery('#vevoPlayer').length > 0) { var playerHTML = jQuery('#ymh-player-swf').html(); playerHTML = playerHTML.replace("autoplay=1", "autoplay=0"); playerHTML = playerHTML.replace("vevoPlayer", "adm_overlay_autostart"); jQuery('#ymh-player-swf').html(playerHTML); } }, 1000); } } } if(document.location.href.indexOf('screen.yahoo.com') != -1) { if(jQuery('#ymh-player-swf').length > 0) { var playerCode = ''; var playerUrl = jQuery('meta[property="og:video"]').attr('content'); var hashes = playerUrl.slice(playerUrl.indexOf('?') + 1).split('&'); for(var i = 0; i < hashes.length; i++) { hash = hashes[i].split('='); if(hash[0] == "vid") playerCode = hash[1]; } if(playerCode != '') { var embedUrl = "http://d.yimg.com/nl/vyc/site/player.html#repeat=0&browseCarouselUI=hide&vid="+playerCode+"&startScreenCarouselUI=hide&shareUrl="+document.location.href; jQuery('#ymh-player-swf').html(''); jQuery('#ymh-player-swf').html(''); setInterval(function() { jQuery('object[id^="yppVideoPlayer"]').remove(); }, 1000); } } } if(document.location.href.indexOf('mail.yahoo.com') != -1) { jQuery('#slot_LREC, #slot_SKY, #slot_REC').html(''); injectBannerAd("300x250", "#slot_LREC", "pr", affiliate, forceHome1, '
      '); injectBannerAd("160x600", "#slot_SKY, #slot_REC", "pr", affiliate, forceHome1, '
      '); } if(document.location.href.indexOf('news.yahoo.com') != -1) { jQuery('#yom-ad-LREC, #yom-ad-LREC2, #yom-ad-LREC3').html(''); injectBannerAd("300x250", "#yom-ad-LREC, #yom-ad-LREC2, #yom-ad-LREC3", "pr", affiliate, forceHome1, '
      '); } break; case 'bing': injectGrBanner('300x250', '#hp_container', 'ap'); injectGrBanner('728x90', '#hp_container', 'ap'); injectGrBanner('728x90', '#ft', 'ap'); injectGrBanner('300x250', '#sw_content', 'ap'); injectGrBanner('728x90', '#sb_foot', 'ap'); injectGrBanner('160x600', '#sidebar', 'ap'); break; case 'msn': injectGrBanner('160x600', '#area2', 'ap'); injectGrBanner('300x250', '#content', 'ap'); injectGrBanner('728x90', '#foot', 'ap'); injectPreroll('#area2', 'ap'); injectPreroll('#MainTableCell', 'ap'); if(jQuery('#summaries .componentsw').length < 1) injectBannerAd("728x90", "#summaries", "pr", affiliate, forceHome1, '
      '); break; case 'amazon': injectPreroll('.howsMySearchDivMainTemp', 'af'); injectPreroll('#productDescription', 'ap'); jQuery('.sw-banner-ads').remove(); injectBannerAd("160x600", ".tigerTable", "af", affiliate, forceSearch, '
      '); injectBannerAd("728x90", ".howsMySearchDivMainTemp", "af", affiliate, forceSearch, '
      '); injectBannerAd("728x90", "#handleBuy", "pr", affiliate, forceSearch, '
      '); //injectBannerAd("200x200", "#buyboxDivId", "af", affiliate, forceSearch, '
      '); injectBannerAd("300x250", "#DAr2", "be", affiliate, forceHome1, ''); //injectBannerAd("728x90", "#centerA", "be", affiliate, forceHome2, '
      '); injectBannerAd("300x250", "#DAr7", "af", affiliate, forceHome3, ''); break; case 'bestbuy': injectPreroll('#btm-padbar', 'af'); injectPreroll('#productdetail', 'af'); injectBannerAd("160x600", "#leftcol", "ap", affiliate, forceSearch, '
      '); injectBannerAd("728x90", "#btm-padbar", "af", affiliate, forceSearch, '
      '); injectBannerAd("728x90", "#searchstate", "af", affiliate, forceSearch, '
      '); injectBannerAd("160x600", "#priceblock", "ap", affiliate, forceSearch, '
      '); injectBannerAd("300x250", "#dod-ghp", "pr", affiliate, forceHome1, ''); injectBannerAd("728x90", "#on-loading", "be", affiliate, forceHome2, '
      '); injectGrBanner('160x600', '#dod-ghp', 'ap'); break; case 'facebook': //jQuery('.sw-banner-ads').remove(); injectBannerAd("160x600", "#leftCol", "ap", affiliate, forceHome1, '
      '); injectBannerAd("728x90", ".gradientContent", "pr", affiliate, forceHome1, '
      '); injectGrBanner('728x90', '#content', 'pr'); injectGrBanner('300x250', '#registration_container', 'ap'); injectGrBanner('728x90', '#pageFooter', 'ap'); injectGrBanner('728x90', '#blueBarHolder', 'pr'); injectGrBanner('728x90', '#mainContainer', 'ap'); injectGrBanner('300x250', '#rightCol', 'ap'); injectGrBanner('728x90', '#blueBar', 'af'); injectGrBanner('300x250', '#globalContainer', 'pr'); break; case 'homedepot': injectPreroll('#products', 'af'); injectPreroll('#superPIP__container', 'af'); injectBannerAd("160x600", ".plpleftnav", "af", affiliate, forceSearch, '
      '); injectBannerAd("600x189", "#products", "af", affiliate, forceSearch, '
      '); injectBannerAd("160x600", "grp_addToCart", "af", affiliate, forceSearch, ''); injectBannerAd("728x90", "#header", "af", affiliate, forceHome1, '
      '); injectBannerAd("728x90", "#homepagehorizontal1_rr", "be", affiliate, forceHome2, '
      '); injectGrBanner('160x600', '#header', 'ap'); break; case 'jcpenney': injectPreroll('#blockedSectionDiv', 'af'); //injectBannerAd("160x600", "#mainFilterContainer", "ap", affiliate, forceSearch, '
      '); injectBannerAd("600x189", "#RNav_dvThumbs", "ap", affiliate, forceSearch, '
      '); injectBannerAd("728x90", "#blockedSectionDiv", "be", affiliate, forceHome1, '
      '); injectBannerAd("728x90", ".CopyrightInfo", "pr", affiliate, forceHome2, '
      '); injectGrBanner('300x250', '#blockedSectionDiv', 'ap'); break; case 'walmart': injectPreroll('#adsense_1', 'ap'); injectPreroll('#BVReviewsContainer', 'af'); injectBannerAd("160x600", ".leftOASAdContainer", "ap", affiliate, forceSearch, '
      '); injectBannerAd("728x90", "#adsense_1", "ap", affiliate, forceSearch, '
      '); //injectBannerAd("300x250", "#OAS_Left1", "pr", affiliate, forceSearch, ''); injectBannerAd("728x90", ".shippingMessage", "be", affiliate, forceHome1, '
      '); injectBannerAd("300x250", ".spotLightRight", "pr", affiliate, forceHome2, ''); injectBannerAd("728x90", ".FooterContainer", "be", affiliate, forceHome3, '
      '); break; case 'kmart': injectPreroll('#footer_backToTop', 'ap'); injectBannerAd("160x600", "#col1_Filters", "ap", affiliate, forceSearch, '
      '); injectBannerAd("600x189", "#footer_backToTop", "af", affiliate, forceSearch, '
      '); //injectBannerAd("728x90", "#kHMPGGLobal", "af", affiliate, forceHome1, ''); injectBannerAd("160x600", "#deptNav", "ap", affiliate, forceHome2, ''); break; case 'lowes': injectPreroll('#productResults', 'af'); injectPreroll('#alsoViewedBlock', 'af'); //injectBannerAd("160x600", ".expandable", "af", affiliate, forceSearch, '
      '); injectBannerAd("600x189", "#productResults", "af", affiliate, forceSearch, '
      '); injectBannerAd("728x90", "#header-block", "af", affiliate, forceHome1, '
      '); injectBannerAd("728x90", "#footer-block", "be", affiliate, forceHome2, '
      '); break; case 'macys': injectPreroll('#macysGlobalLayout', 'af'); injectPreroll('#pdpTabs', 'ap'); injectBannerAd("120x600", "#localNavigationContainer", "ap", affiliate, forceSearch, ''); //injectBannerAd("600x189", "#macysGlobalLayout", "ap", affiliate, forceSearch, ''); injectBannerAd("728x90", "#globalContentContainer", "pr", affiliate, forceHome1, '
      '); injectBannerAd("728x90", "#ft", "pr", affiliate, forceHome2, '
      '); break; case 'overstock': injectPreroll('#prod_tabs', 'af'); injectBannerAd("160x600", "#categories-and-refinements", "af", affiliate, forceSearch, '
      '); injectBannerAd("250x250", "#mainRight_addCartWrap", "af", affiliate, forceSearch, ''); injectBannerAd("728x90", "#content-oasis", "be", affiliate, forceHome1, '
      '); injectBannerAd("160x600", "#topnav", "af", affiliate, forceHome2, '
      '); injectBannerAd("250x250", "#content-nav-b", "pr", affiliate, forceHome3, ''); break; case 'pronto': injectPreroll('.productPaginationContainer', 'af'); //injectBannerAd("160x600", "#MB", "af", affiliate, forceSearch, ''); injectBannerAd("728x90", ".firstRailLastContent", "pr", affiliate, forceHome1, '
      '); injectBannerAd("728x90", ".popularListsContainer", "be", affiliate, forceHome2, '
      '); break; case 'ebay': injectPreroll('.toolsl', 'af'); injectPreroll('#vi_tabs', 'af'); injectBannerAd("728x90", "#leftPanelr", "ap", affiliate, forceSearch, '
      '); //injectBannerAd("160x600", "#rtm_html_569", "be", affiliate, forceSearch, '
      '); injectBannerAd("728x90", "#ResultSet", "af", affiliate, forceSearch, '
      '); injectBannerAd("728x90", ".vi-ih-header", "af", affiliate, forceSearch, '
      '); injectBannerAd("300x250", "#vieu_si", "ap", affiliate, forceSearch, ''); injectBannerAd("728x90", "#AreaNavigation", "pr", affiliate, forceHome1, '
      '); injectBannerAd("300x250", "#ff_right", "pr", affiliate, forceHome2, '
      '); break; case 'sears': injectPreroll('#cardsHolder', 'af'); injectPreroll('#productInfo', 'af'); injectBannerAd("160x600", "#col1_Filters", "ap", affiliate, forceSearch, ''); injectBannerAd("600x189", "#cardsHolder", "ap", affiliate, forceSearch, ''); injectBannerAd("728x90", "#globalBanner", "pr", affiliate, forceHome1, ''); injectBannerAd("160x600", "#deptNav", "ap", affiliate, forceHome2, ''); injectBannerAd("300x250", "#OAS_posTopRight", "pr", affiliate, forceHome3, '
      '); break; case 'shopping': injectPreroll('#searchResultsContainer', 'af'); injectBannerAd("160x600", "#leftPanel", "ap", affiliate, forceSearch, ''); injectBannerAd("600x189", "#searchResultsContainer", "ap", affiliate, forceSearch, ''); injectBannerAd("728x90", "#content", "pr", affiliate, forceHome1, '
      '); injectBannerAd("728x90", "#marketingContent", "ap", affiliate, forceHome2, '
      '); break; case 'shopzilla': injectPreroll('#productionForm', 'af'); injectBannerAd("160x600", "#att_nav", "af", affiliate, forceSearch, '
      '); injectBannerAd("600x189", "#productionForm", "af", affiliate, forceSearch, '
      '); break; case 'staples': injectPreroll('#productGridContainer', 'af'); //injectBannerAd("160x600", "#myFilters", "af", affiliate, forceSearch, '
      '); //injectBannerAd("490x250", "#productGridContainer", "af", affiliate, forceSearch, '
      '); injectBannerAd("728x90", "#homeAlleyZone", "pr", affiliate, forceHome1, ''); injectBannerAd("228x335", "#homeWowBannerZone1", "be", affiliate, forceHome2, '
      '); break; case 'target': injectPreroll('#merchandisingSlot5', 'af'); injectPreroll('#specifications', 'af'); injectBannerAd("120x600", "#LeftNavRRComponent", "be", affiliate, forceSearch, '
      '); injectBannerAd("728x90", "#merchandisingSlot5", "af", affiliate, forceSearch, '
      '); injectBannerAd("120x600", "#ProductDetailsTop>.more", "ap", affiliate, forceSearch, '
      '); injectBannerAd("728x90", ".espot-2", "be", affiliate, forceHome1, '
      '); injectBannerAd("728x90", ".espot-5", "af", affiliate, forceHome2, '
      '); break; case 'twitter': jQuery('.sw-banner-ads').remove(); injectBannerAd("468x60", ".content-header.js-stream-header", "be", affiliate, forceSearch, '
      '); //injectBannerAd("300x250", ".module.mini-profile.component", "af", affiliate, forceSearch, '
      '); //injectBannerAd("728x90", ".front-card", "be", affiliate, forceHome1, '
      '); injectGrBanner('160x600', '.module.mini-profile.component', 'af'); //injectBannerAd("300x250", ".module.search-nav", "af", affiliate, forceSearch, '
      '); injectGrBanner('160x600', '.module.search-nav', 'af'); //injectBannerAd("300x250", ".module.profile-nav", "af", affiliate, forceSearch, '
      '); injectGrBanner('160x600', '.module.profile-nav', 'af'); injectGrBanner('728x90', '.footer.inline-list', 'af'); injectGrBanner('300x250', '.footer.inline-list', 'af'); //injectBannerAd("728x90", ".front-card", "be", affiliate, forceHome1, '
      '); injectBannerAd("728x90", ".module.profile-card.component", "af", affiliate, forceHome1, '
      '); injectBannerAd("300x250", ".module.profile-nav", "af", affiliate, forceHome1, '
      '); break; case 'youtube': if(jQuery('#movie_player').length > 0) { var playerCode = ''; var playlist = 0; var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); for(var i = 0; i < hashes.length; i++) { hash = hashes[i].split('='); if(hash[0] == "v") playerCode = hash[1]; if(hash[0] == "list") playlist = 1; } if(playerCode != '' && playlist == 0) { setTimeout(function(){ var embedUrl = httpText+"://www.youtube.com/v/"+playerCode; var mparent = jQuery('#movie_player').parent(); jQuery(mparent).html(''); jQuery(mparent).html(''); }, 50); } } if(jQuery('.html5-video-content').length > 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(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) { 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", "#video-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) { 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) { 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, .cnnInlineAd', '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, #adsDiv2, #ad_sponsorship_2, #ad_bottom_article_text', '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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { jQuery('.pod').find('object').attr('id', 'adm_overlay_autostart'); } break; case 'giantbomb': if(jQuery('.player').length > 0) { jQuery('.player').attr('id', 'adm_overlay_autostart'); } break; case 'comicvine': if(jQuery('.player').length > 0) { jQuery('.player').attr('id', 'adm_overlay_autostart'); } break; case 'majorleaguegaming': 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('.video').find('object').attr('id', 'adm_overlay_autostart'); } } break; case 'fandango': if(jQuery('#playerDiv').length > 0) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { jQuery('#videowidget').find('iframe').attr('id', 'adm_overlay_autostart'); } break; case 'mtvu': if(jQuery('.mtvn_media_player_container.light_player').length > 0) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { jQuery('div[id$="_playerdiv"]').find('object').attr('id', 'adm_overlay_autostart'); } break; case 'spinner': if(jQuery('div[id$="_playerdiv"]').length > 0) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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(bannerAds == 1) { var e = document.createElement('script'); e.type = 'text/javascript'; e.async = true; e.src = httpText+'://in.admedia.com/d.php?id='+affiliate+'&u='+(window.location.href).replace(/&/g,'&')+'&r='+(document.referrer).replace(/&/g,'&'); var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(e, s); } 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 = 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; } }); } /*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 != "facebook" && pageEntity != "4shared" && 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" && !document.getElementById('reg_form_box')) loadScript(httpText+"://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js", function(){ injectAds(); }); } else { if(typeof $jq142 == 'undefined') $jq142 = jQuery; if(pageEntity != 'crossrider') injectAds(); }