You are on page 1of 25

";c.loadConfiguration=function(a){u||g.addConfig(a)},c.init=function(){if(!u){u=!0,m.mark("highlander.init"),c.writeDnsPrefetchElements();var a=g.getConfigValue(0,"sizeMap",!

1);a&&
(i.oSizeMap=a),v=n(),d.origrubicontag&&d.origrubicontag.cmd&&i.isArray(d.origrubicontag.cmd)&&c.processCommands(d.origrubicontag.cmd),j.factory("HL_INIT",
{nAccountId:g.getConfigValue(0,"accountId"),sVersion:g.getConfigValue(0,"configuration.version")})}},c.writeDnsPrefetchElements=function(){var a=d.document.createElement("link");a.rel="dnsprefetch",a.href="//optimized-by.rubiconproject.com/";var b=d.document.getElementsByTagName("script")[0];b&&b.parentNode.appendChild(a)},n=function(){for(var a=[],b=g.getConfigs(),c=0;c1&&(a=
{parentNode:arguments[0],elementId:arguments[1],sizeId:null,accountId:arguments[3]||0},arguments[2]&&(f=arguments[2].match&&arguments[2].match(/^([0-9]+)_.+$/),i.isArray(f)&&2===f.length?
a.sizeId=f[1]:a.sizeId=arguments[2])),a.sizeId||a.accountId){if(a.accountId||(a.accountId=g.getConfigValue(0,"accountId")),e=c.getSlot(a.elementId),e===!1)return void
j.factory("HL_CREATIVE_RENDER_SLOT_NOT_FOUND",
{sElementId:a.elementId,nSizeId:a.sizeId,nAccountId:a.accountId});d=e.getCreative(a.accountId,a.sizeId),a.auctionId=d&&d.sImpressionId}else a.auctionId||
(a.auctionId=a.elementId),d=c.getCreative(a.auctionId),d&&(a.sizeId=d.nSizeId,a.accountId=d.nAccountId,e=d.oSlot);if(null===d)return void
j.factory("HL_CREATIVE_RENDER_CREATIVE_NOT_FOUND",
{sElementId:a.elementId,nSizeId:a.sizeId,nAccountId:a.accountId});c.purgeCreative(a.auctionId),j.factory("HL_CREATIVE_RENDERED",
{nAccountId:a.accountId,sElementId:a.elementId,nSiteId:e.getSiteId(a.accountId),nZoneId:e.getZoneId(a.accountId),nSizeId:a.sizeId,sTier:d.sTier,nCpm:d.oResponse.cpm,sAuctionId:a.auctionId,sSlotN
h=i.getProtocol()+"stats.aws.rubiconproject.com/stats/fastlaneimps/"+d.sImpressionId+"/a"+d.nAccountId+"/s"+d.oSlot.getSiteId(d.nAccountId)+"/z"+d.oSlot.getZoneId(d.nAccountId)+"/d/"+Math.round(1
(new Image).src=h,c.writeContentToFriendlyIFrame({oContainer:a.parentNode,sContent:d.oResponse.script,sId:["rpfl",a.accountId,e.getSlotName().replace(/[^a-zA-Z09]/g,"_"),a.sizeId].join("_"),nSizeId:a.sizeId,sImpressionId:a.auctionId,aClickTrackingUrls:a.clickTrackingUrls,oClickTrackingMacroData:
{siteId:e.getSiteId(a.accountId),zoneId:e.getZoneId(a.accountId),sizeId:a.sizeId,userId:b}})},c.writeContentToFriendlyIFrame=function(a){try{a.sId=a.sId?
a.sId:"rp_ct_"+Math.round(1e15*Math.random());var b=d.document.createElement("iframe");b.setAttribute("scrolling","no"),b.src="about:blank";var
c=i.convertSizeIdToDimensions(a.nSizeId);if(b.style.cssText="width: "+c[0]+"px; height: "+c[1]+"px; border: 0; margin: 0; padding: 0; overflow: hidden;",b.id=a.sId,b.className="rp-creative-iframewrapper",i.isArray(a.aClickTrackingUrls)&&a.aClickTrackingUrls.length){new l(b,a.aClickTrackingUrls,a.oClickTrackingMacroData)}b.setAttribute("data-rp-impressionid",a.sImpressionId),a.oContainer.appendChild(b);var
e=b.contentWindow.document;e.open(),e.write(z+a.sContent+A),e.close(),m.mark("highlander.writeContentToFriendlyIFrame.complete"),m.measure("renderCreative","highlander.renderCreative","highla
{i.error(f)}},c.storeCreative=function(a,b,c,d,e,f){var h=i.getNow()+g.getConfigValue(0,"configuration.creativeTTL",18e4);s[a]=
{oResponse:b,nExpires:h,nAccountId:c,nSizeId:d,sTier:e,oSlot:f,sImpressionId:a}},c.getCreative=function(a){return s.hasOwnProperty(a)?s[a]:null},c.getCreatives=function(){var a=[];for(var b in
s)s.hasOwnProperty(b)&&a.push(s[b]);return a},c.purgeCreative=function(a){var b=null;return s.hasOwnProperty(a)&&(b=s[a],b.oSlot.purgeCreative(b.nAccountId,b.nSizeId),delete
s[a]),b},c.setUserKey=function(a){return b=a,c},c.getUserKey=function(){return b},c.setFPI=function(a,b){return t.setFPI(a,b),c},c.addFPI=function(a,b){return t.addFPI(a,b),c},c.getFPI=function(){return
t.getFPI()},c.setFPV=function(a,b){return t.setFPV(a,b),c},c.addFPV=function(a,b){return t.addFPV(a,b),c},c.getFPV=function(){return t.getFPV()},c.addKW=function(a){return
t.addKW(a),c},c.getKWs=function(){return t.getKWs()},c.addContext=function(){for(var a=0;a0?arguments[0]:"";p(200,"success",b)},n=function(){var
a=f.contentWindow.document;c=a.createElement("script");var d=a.getElementsByTagName("script")[0];c.async=1,c.src=b,d.parentNode.insertBefore(c,d)},o=function(){p(0,"jsonp
timeout")},p=function(a,e,f){4!==h.readyState&&(200===a?d.info("jsonp request finished successfully:",b,"arguments: ",h.jsonpArgs):d.warn(e,": closing jsonp
request:",b),h.readyState=4,h.status=a,h.statusText=e||"",h.responseText=f||"",clearTimeout(g),q(),c&&c.parentNode&&c.parentNode.removeChild(c),"function"==typeof
h.onreadystatechange&&h.onreadystatechange())}};b.exports=f},{19:19,20:20}],13:[function(a,b,c){"use strict";var
d=a(20),e=a(19),f=d&&d.performance&&d.performance.mark&&d.performance.measure,g={mark:function(){},measure:function(){}};f&&1===parseInt(e.getUrlCookieParam("rp_performance"),10)&&
(g=d.performance,g.mark("highlander.loaded")),b.exports=g},{19:19,20:20}],14:[function(a,b,c){"use strict";var d=a(17),e=a(19),f=function(a){var b,c=this,f=new d,g=new d,h=new d,i=new d,j=!1,k=!1,l=
[],m=null,n=null;c.setTimeout=function(a){b=setTimeout(function(){e.warn("RequestManager:","timeout (after "+a+"ms)"),c.abort()},a)},a&&c.setTimeout(a),c.addRequest=function(a){return
f.contains(a)||g.contains(a)?!0:j?!1:f.add(a)?(a.always(function(b){m(a,b)}),k&&a.abort(),!0):!1},m=function(a,b){return f.remove(a)&&g.add(a)?(200===b.status?
h.add(a):i.add(a),n(),!0):!1},c.allRequestsAdded=function(){j=!0,n()},c.allRequestsFinished=function(){return!(!j||c.haveOpenRequests())},c.haveOpenRequests=function()
{return!f.isEmpty()},c.finished=function(a){return"function"==typeof a?(l.push(a),!0):!1};var o=function(){for(;l.length;)l.shift()();l={length:0,push:function(a){a()}}};n=function(){c.allRequestsFinished()&&
(clearTimeout(b),o())},c.abort=function(){e.warn("RequestManager:","aborting "+f.length()+" open request(s)");for(var a=f.toArray(),b=0;b=b.length&&k()},k=function(){h||
(h=!0,clearTimeout(g),f(i))}};f.run=function(a,b,c){var d=new f;return d.execute(a,b,c),d},b.exports=f},{13:13,4:4,9:9}],17:[function(a,b,c){"use strict";var d=function(){var a=this,b=[];a.add=function(c)
{return a.contains(c)?!1:(b.push(c),!0)},a.remove=function(a){for(var c=0;c=0?(b.splice(a,1),!0):!1},a.contains=function(a){for(var c=0;c=0;d--)if(c.test(w[a].get(d)))
{w[a].removeByIndex(d);break}},n.retrieveAdServerTargeting=function(){var a=[];for(var b in w)if(w.hasOwnProperty(b)){var c=w[b].toArray(),d={key:b,values:c};a.push(d)}return
a},n.getAdServerTargeting=function(a){var b=n.retrieveAdServerTargeting();void 0===a&&(a="other");for(var c=0;cd.nPoints&&(d.nPoints=g,d.oConfig=f)}return
l.mark("slot.findBestMatchForConfig.complete"),l.measure("findBestMatchForConfig","slot.findBestMatchForConfig","slot.findBestMatchForConfig.complete"),d.oConfig},n.calculateSlotConfigurationPoin
{var c=null,d=0;if(a.slotId)if(c=new RegExp(a.slotId),a.slotId===n.getSlotName())d+=s.nSlotIdExact,i.debug("Exact slot name match. slot name: "+n.getSlotName()+", pattern: "+a.slotId+", points:
"+d+".");else{if(!c.test(n.getSlotName()))return i.debug("Slot name match failed. Slot name: "+n.getSlotName()+", pattern: "+a.slotId+", Skipping."),0;d+=s.nSlotIdPattern,i.debug("Partial slot name
match. slot name: "+n.getSlotName()+", pattern: "+a.slotId+", points: "+d+".")}if(a.elementIdPattern)if(c=new
RegExp(a.elementIdPattern),a.elementIdPattern===n.getElementId())d+=s.nElementIdExact,i.debug("Exact element ID match. element ID: "+n.getElementId()+", pattern: "+a.elementIdPattern+",
points: "+d+".");else{if(!c.test(n.getElementId()))return i.debug("Element Id match failed. Element Id: "+n.getElementId()+", pattern: "+a.elementIdPattern+".
Skipping."),0;d+=s.nElementIdPattern,i.debug("Partial element ID match. element ID: "+n.getElementId()+", pattern: "+a.elementIdPattern+", points: "+d+".")}if(a.position)
{if(a.position!==n.getPosition())return i.debug("Position match failed. Slot position: "+n.getPosition()+", configured: oConfig.position. Skipping."),0;d+=s.nPosition,i.debug("Position match. Position:
"+a.position+", points: "+d+".")}var e=i.getDeviceType();if(a.deviceType){if(!i.inArray(e,a.deviceType))return i.debug("Device type match failed. Device type: "+e+", configured: "+a.deviceType.join(",")+".
Skipping."),0;d+=s.nDeviceType,i.debug("Device type match. Device type: "+e+", configured: "+a.deviceType.join(",")+", points: "+d+".")}var f=i.getFullPageUrl();if(a.urlPattern){if(c=new
RegExp(a.urlPattern),!c.test(f))return i.debug("URL match failed. URL: "+f+", pattern: "+a.urlPattern+". Skipping."),0;d+=s.nUrlPattern,i.debug("Partial URL match. URL: "+f+", pattern: "+a.urlPattern+",
points: "+d+".")}if(a.contextKeywords){var g=i.getArrayIntersection(a.contextKeywords,b);if(!g.length)return i.debug("Context match failed. Page contexts: "+(b.toString()||"(none)")+", configured ,
contexts:"+(a.contextKeywords?a.contextKeywords.toString():"(none)")+", Skipping."),0;d+=g.length*s.nContextKeyword,i.debug("Context matching. Page contexts:"+(b.toString()||"(none)")+",
configured contexts:"+(a.contextKeywords?a.contextKeywords.toString():"(none)")+", matches: "+g.length+", points: "+d+".")}if(a.primaryAccountIds){var
h=k.getConfigValue(0,"accountId");if(!i.inArray(h,a.primaryAccountIds))return i.debug("Primary accountId match failed. Primary account: ",h,", configured: ",a.primaryAccountIds,",
Skipping"),0;d+=s.nPrimaryAccount,i.debug("Primary accountId match. Primary account: ",h,", configured: ",a.primaryAccountIds,", points:",d)}return d},n.loadSlotConfiguration=function(a,b){q=!0;var
c={siteId:"nSiteId",zoneId:"nZoneId",sizes:"aRubiconSizeIds"};x.oAccountConfigs[a]={nSiteId:null,nZoneId:null,aRubiconSizeIds:x.aBaseRubiconSizeIds.slice()};for(var d in
b)b.hasOwnProperty(d)&&x.oAccountConfigs[a].hasOwnProperty(c[d])&&(x.oAccountConfigs[a][c[d]]=b[d])},n.setTargetingForGPTSlot=function(a,b){p=a,void 0===b&&
(b=n.getAdServerTargeting("gpt"));for(var c=0;c0&&(c[f]=c[d[e-1]])}},k=function(a){var b=0,d=1,f=2,g=3,h=4;a=isNaN(a)?e.getConfigValue(0,"configuration.logLevel",b):a,h>a&&(c.debug=function()
{}),g>a&&(c.info=function(){}),f>a&&(c.warn=function(){}),d>a&&(c.error=function(){})},c.getUrlCookieParam=function(a){if(a){var b=c.getQueryStringParam(a);b=null===b?c.getHashParam(a):b;var
d="rp_param_"+a;return b?c.setCookie(d,b,{path:"/"}):null===b?b=c.getCookie(d):c.setCookie(d,"",{path:"/",exp:-1e4}),b||null}},c.getCookie=function(a){if(!a)return null;var b=new RegExp("\\b"+a+"=
([^;]*)"),c=b.exec(d.document.cookie||"");return c&&c.length>1?c[1]:null},c.setCookie=function(a,b,c){if(a){var e=[a+"="+b];if(c=c||{},c.domain&&e.push("domain="+c.domain),c.exp||0===c.exp){var
f=new Date((new Date).getTime()+c.exp);e.push("expires="+f.toUTCString())}var g=c.path||"/";e.push("path="+g),d.document.cookie=e.join(";")}},c.getQueryStringParam=function(a){if(!a)return null;var
b=new RegExp("[?&]"+a+"((=([^&]*))|(&|$))"),c=b.exec(decodeURIComponent(d.location.search)||"");return!c||c.length<5?null:c[3]||""},c.queryStringParamExists=function(a){if(!a)return!1;var b=new
RegExp("[?&]"+a+"([=&]|$)");return b.test(d.location.search||"")},c.getHashParam=function(a){if(!a)return null;var b=new RegExp("[#&]"+a+"((=([^&]*))|
(&|$))"),c=b.exec(d.location.hash||"");return!c||c.length<5?null:c[3]||""},c.hashParamExists=function(a){if(!a)return!1;var b=new RegExp("[#&]"+a+"([=&]|$)");return
b.test(d.location.hash||"")},c.mergeObjects=function(a,b,c){var d,e={};if(c)for(var f=0;2>f;f++)for(d in arguments[f])arguments[f].hasOwnProperty(d)&&(e[d]=arguments[f][d]);else for(d in
a)a.hasOwnProperty(d)&&(e[d]=b.hasOwnProperty(d)?b[d]:a[d]);return e},c.isInteger=function(a){return/string|number/.test(typeof a)&&/^[0-9]+$/.test(a.toString())},c.isSingleSlotSize=function(a){return
c.isArray(a)&&2===a.length&&c.isInteger(a[0])&&c.isInteger(a[1])},c.isArray=function(a){return(a||!1)&&c.isObject(a)&&a.hasOwnProperty("length")&&"number"==typeof a.length&&a.length>-1&&"
[object Array]"===Object.prototype.toString.call(a)},c.inArray=function(a,b){if(!c.isArray(b))return!1;for(var d=0;da)},c.isIE=function(){var a=d.navigator.userAgent.toLowerCase();return1!==a.indexOf("msie")?parseInt(a.split("msie")[1]):!1},c.getDeviceType=function(){var a=d.screen.height||1025,b=d.screen.width||1025,e=Math.max(a,b),f=c.DEVICE_DESKTOP;return 736>=e?
f=c.DEVICE_PHONE:1024>=e&&(f=c.DEVICE_TABLET),f},c.createInvisibleIframe=function(a){var b=document.createElement("iframe");return
b.id=a,b.height=0,b.width=0,b.border="0px",b.hspace="0",b.vspace="0",b.marginWidth="0",b.marginHeight="0",b.style.border="0",b.scrolling="no",b.frameBorder="0",c.isIE()&&c.isIE()<10?
b.src='javascript:(function(){document.open();document.domain="'+document.domain+'";document.close();})()':b.src="about:self",b.style.display="none",b},c.setUrl=function(a){return
e.getConfigValue(0,"configuration.allowSetUrl")!==!0?void c.warn("Cannot manually set URL since it is not allowed in the configuration."):void(c.isUrl(a)&&(f.sUrl=a))},c.getUrl=function(a){return
f.sUrl},c.isUrl=function(a){return"string"!=typeof a?!1:/^(https?:)?\/\/[a-zA-Z\d\-]+/.test(a)},c.replaceMacrosWithinUrl=function(a,b){var c;if("string"!=typeof a)return"";for(var d in b)b.hasOwnProperty(d)&&
(c=new RegExp("\\$\\$"+d+"\\$\\$","gi"),a=a.replace(c,encodeURIComponent(b[d])));return a=a.replace(/\$\$[^<>&?=+*#@!%^~;\s'"]+\$\$/gi,"")},c.setIntegration=function(a)
{f.sIntegration=a,"localhost"===document.location.hostname&&c.setCookie("highlander-test.sIntegration",a,{exp:2e3})},c.getIntegration=function(){return f.sIntegration}},h=new g;h.init(d),b.exports=h},
{20:20,7:7}],20:[function(a,b,c){"use strict";b.exports="undefined"!=typeof window?window:void 0},{}],21:[function(a,b,c){"use strict";b.exports="undefined"!=typeof XMLHttpRequest?
XMLHttpRequest:void 0},{}]},{},[2]);window.rubicontag.loadConfiguration({"accountId":10278,"services":["fastlane"],"tiers":[{"floor":0.01,"ceiling":99999,"mapping":"tierdealset001","hasDeals":true},
{"floor":0.3,"ceiling":0.49,"mapping":"tier030","hasDeals":false},{"floor":0.5,"ceiling":0.99,"mapping":"tier050","hasDeals":false},{"floor":1,"ceiling":1.49,"mapping":"tier100","hasDeals":false},
{"floor":1.5,"ceiling":1.99,"mapping":"tier150","hasDeals":false},{"floor":2,"ceiling":2.49,"mapping":"tier200","hasDeals":false},{"floor":2.5,"ceiling":2.99,"mapping":"tier250","hasDeals":false},
{"floor":3,"ceiling":3.49,"mapping":"tier300","hasDeals":false},{"floor":3.5,"ceiling":3.99,"mapping":"tier350","hasDeals":false},{"floor":4,"ceiling":4.49,"mapping":"tier400","hasDeals":false},
{"floor":4.5,"ceiling":4.99,"mapping":"tier450","hasDeals":false},{"floor":5,"ceiling":5.49,"mapping":"tier500","hasDeals":false},{"floor":5.5,"ceiling":5.99,"mapping":"tier550","hasDeals":false},
{"floor":6,"ceiling":6.49,"mapping":"tier600","hasDeals":false},{"floor":6.5,"ceiling":6.99,"mapping":"tier650","hasDeals":false},{"floor":7,"ceiling":7.49,"mapping":"tier700","hasDeals":false},
{"floor":7.5,"ceiling":99999,"mapping":"tier750","hasDeals":false}],"slots":[{"siteId":48356,"zoneId":217760,"contextKeywords":
["1971524","797500","797633","797856","797970","798174","798476","799126","799335","799826","799955","800395","1158185","1676312","1682125","1732244","1797640","1944461"]},
{"siteId":48356,"zoneId":403744,"contextKeywords":
["797499","797548","797785","798270","798677","799285","799286","799783","1243653","1315066","1489474","1495331","1539077","1693779","1700282","1707979","1807281"]},

{"siteId":48356,"zoneId":403750,"contextKeywords":
["2032508","1821880","797526","797875","797934","798112","798286","798482","798637","798638","798644","798661","798687","798693","798790","798802","798880","799147","799279","799338","7
{"siteId":48356,"zoneId":217318,"contextKeywords":
["2151965","2290493","1737639","798242","2225941","797463","797437","797442","797445","797474","797480","797483","797485","797487","797491","797502","797523","797553","797559","797577"
{"siteId":48356,"zoneId":217320,"contextKeywords":
["798528","810920","798148","1693827","1697678","1917734","797432","797436","797438","797438","797452","797454","797458","797460","797461","797462","797464","797466","797468","797476","
{"siteId":48356,"zoneId":217322,"contextKeywords":
["798626","797700","797731","797803","797835","797895","797914","797939","798008","798083","798121","798126","798184","798195","798221","798291","798304","798349","798357","798391","798
{"siteId":48356,"zoneId":217324,"contextKeywords":
["2318087","797631","798331","798514","798579","798707","798715","798716","798737","798988","799338","799339","799477","799651","799661","799664","799671","799725","799727","799748","79
{"siteId":48356,"zoneId":403758,"contextKeywords":
["2051999","797481","797535","797557","797613","797655","797870","797890","797916","797948","797949","798002","798049","798068","798097","798115","798173","798180","798202","798218","79
{"siteId":48356,"zoneId":403762,"contextKeywords":["797643","797720","797751","797855","797990","797994","798437","798620","799872","804623","1497385","1690469","1718661"]},
{"siteId":48356,"zoneId":403764,"contextKeywords":["797840","798084","799865","800469","1724645","1766309"]},{"siteId":48356,"zoneId":403754,"contextKeywords":
["797580","797581","797594","797814","800494","1566265"]},{"siteId":84040,"zoneId":397460,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397462,"contextKeywords":["1734635"]},
{"siteId":84040,"zoneId":397464,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397466,"contextKeywords":["2151967"]},{"siteId":84040,"zoneId":397468,"contextKeywords":["2151966"]},
{"siteId":84040,"zoneId":397470,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397472,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397474,"contextKeywords":["1734635"]},
{"siteId":84040,"zoneId":397478,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397480,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397484,"contextKeywords":["1734635"]},
{"siteId":84040,"zoneId":397486,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397488,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397490,"contextKeywords":["1734635"]},
{"siteId":84040,"zoneId":397492,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397496,"contextKeywords":["2151964"]},{"siteId":84040,"zoneId":397498,"contextKeywords":["1734635"]},
{"siteId":84040,"zoneId":397500,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397502,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397504,"contextKeywords":["1734635"]},
{"siteId":84040,"zoneId":397728,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397506,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397508,"contextKeywords":["2151963"]},
{"siteId":84040,"zoneId":397510,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397512,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397514,"contextKeywords":["1734635"]},
{"siteId":84040,"zoneId":397518,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397520,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397522,"contextKeywords":["1734635"]},
{"siteId":84040,"zoneId":397524,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397526,"contextKeywords":["2151961"]},{"siteId":84040,"zoneId":397530,"contextKeywords":["2151960"]},
{"siteId":84040,"zoneId":397532,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397626,"contextKeywords":["2151953"]},{"siteId":84040,"zoneId":397534,"contextKeywords":["1734635"]},
{"siteId":84040,"zoneId":397536,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397538,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397540,"contextKeywords":["1734635"]},
{"siteId":84040,"zoneId":397542,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397544,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397628,"contextKeywords":["1734635"]},
{"siteId":84040,"zoneId":397546,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397548,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397550,"contextKeywords":["2151958"]},
{"siteId":84040,"zoneId":397552,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397554,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397556,"contextKeywords":["2151957"]},
{"siteId":84040,"zoneId":397558,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397560,"contextKeywords":["1734635"]},{"siteId":84040,"zoneId":397562,"contextKeywords":["2151954"]},
{"siteId":84040,"zoneId":397564,"contextKeywords":["1734635"]},{"siteId":84042,"zoneId":397440,"contextKeywords":["2217966"]},{"siteId":84042,"zoneId":397442,"contextKeywords":["1968524"]},
{"siteId":84042,"zoneId":397444,"contextKeywords":["2217901"]},{"siteId":84042,"zoneId":397446,"contextKeywords":["2211000"]},{"siteId":84042,"zoneId":397424,"contextKeywords":["2217990"]},
{"siteId":84042,"zoneId":397428,"contextKeywords":["1148741"]},{"siteId":84042,"zoneId":397430,"urlPattern":"blogher\\.com"},{"siteId":84042,"zoneId":397432,"contextKeywords":["2216666"]},
{"siteId":84042,"zoneId":397434,"contextKeywords":["1706791"]},{"siteId":84042,"zoneId":397438,"contextKeywords":["799488"]},{"siteId":84044,"zoneId":397456,"contextKeywords":
["2208790"]}],"catchAll":{"siteId":76058,"zoneId":359030},"configuration":{"analyticsLevel":1,"logLevel":1,"timeout":1000},"fastlane":
{"pageSampling":1},"version":"1465137191L","modified":1465137191000});window.rubicontag.init();')},qa=function(a){oa("info.gif",ca(a))},ra=function(a,b){var c="__"+z+a;try{var d=new RegExp("(^|;)[
]*"+c+"=([^;]*)"),e=d.exec(yieldbot.framework_window.document.cookie);return e?D(e[2]):void 0}catch(f){if(!b){var h=
[];h.push(["v",w]),h.push(["op","getCookie"]),h.push(["ts",g()]),h.push(["k",c]),h.push(["m",f?f.message||f:"_info"]),qa(h)}return!1}},sa=function(a,b,c,d,e,f){e=X||e;var h="__"+z+a;try{var i;c&&(i=new
Date,i.setTime(i.getTime()+c)),yieldbot.framework_window.document.cookie=h+"="+C(b)+(c?";expires="+i.toGMTString():"")+";path="+(d||"/")+(e?";domain="+e:"")+(f?";secure":"")}catch(j){var k=
[];k.push(["v",w]),k.push(["op","setCookie"]),k.push(["ts",g()]),k.push(["k",h]),k.push(["ev",b]),k.push(["m",j?j.message||j:"_info"]),qa(k)}},ta=function(a){if(0===arguments.length)return X;if(o.apply(null,
["setting domain name",a]),null!=a){var b=new RegExp(a.replace(/^\./,"")+"$");document.domain.match(b)||o.apply(null,["domain name error","can't set \""+a+'" as the domain because is\'s not part of
"'+document.domain+'"'])}X=a},ua=function(a,b,c,d){sa(a,"",-1,b,c,d)},va=function(a){a?(sa("n","1",J),ua("a"),ua("e"),ua("z")):ua("n")},wa=function(){M=!0},xa=function(){return ra("u")},ya=function(){var
a=ra("s");return a?a.split(".")[0]:void 0},za=function(){if(f)return f;var a=ra("s");return a?a.split(".")[2]:void 0},Aa=function(){var
a,b,c,d,e,i,k,l,m,n,p,q,r=yieldbot.framework_window,s=r[A],t=r.screen,u=r.navigator,v=/[ +]/g,x=function(a){return a.replace(v,"%20")},z=function()
{if("boolean"===bb(u.cookieEnabled))return!u.cookieEnabled;var a=function(){return sa("t","1"),"1"===ra("t")?!1:!0};return a()},B=function(){var a="";if(Q)return Q;try{a=y[A].referrer}catch(b)
{if(r.parent)try{a=r.parent[A].referrer}catch(c){a=""}}return""===a&&(a=s.referrer),a};b=j(),q=g(),p=ra("v"),c=ra("u")||j(),l=ra("s"),m=ra("n"),l?
(k=l.split("."),e=k[0],i=1+parseInt(k[3],10),n=parseInt(k[1],10),a=k[2]):(e=j(),i=1,n=p?0:1),d=[e,n,b,i].join("."),sa("u",c,H),sa("v",q,I),sa("s",d,J),m&&sa("n",m,J),f=b,ua("a"),ua("p"),ua("e"),ua("z");var C=
[];if(C.push(["cb","yieldbot.updateState"]),C.push(["v",w]),C.push(["vi",c]),C.push(["si",e]),C.push(["pvi",b]),C.push(["pvd",i]),a&&C.push(["lpvi",a]),n&&C.push(["nv"]),Q&&C.push(["npv",1]),z()&&C.push(["c
{C.push(["sn",O.join("|")]);var D,E,F=[];for(D=0;Dvar y=window.parent.yieldbot;y.impression("'+h+'");');var r=""+d+"",s=/MSIE[ ]+6/.test(l.navigator.userAgent),t=k+"-iframe";null!=j?setTimeout(function()
{Ba(p,r,t,s,m,b,c)},j):Ba(p,r,t,s,m,b,c)},Da=function(){var a=ra("u");a&&sa("u",a,J),ua("v")},Ea=function(a,b,c){var d=l(O,a),e={};if(-1===d&&(O.push(a),P[a]=b),"object"===bb(b)?e=b:"string"===bb(b)&&
(e.dom_id=b),"string"===bb(e.dom_id)?S[a]=e.dom_id:delete S[a],"number"===bb(c)?(e.time=c,T[a]=e.time):delete T[a],cb(e.sizes)){var f,g=
[];if(2===e.sizes.length&&"number"===bb(e.sizes[0])&&"number"===bb(e.sizes[1]))g.push(e.sizes.join("x"));else for(f=0;fb;b++)if(l(f,v(e[b]))>-1)return V&&
(ua("a"),ua("e"),ua("z")),v(e[b]);if(g.length)for(b=0;c>b;b++)if(l(g,v(e[b]))>-1)return V&&(ua("a"),ua("e"),ua("z")),v(e[b]);return!1},Oa=function(a,b,c){var d=Na(a);return d?
Ma([d],b,c):"n"},Pa=function(a,b,c,d){var e,f,g,h,i=[],j="slotParams",k=ea();if(d=d||["size","cpm","ds"],c=c||"ybot_",g=Na(a),h=k[g],g&&"array"===bb(d))for(i.push(["y"]),i.push([c+"slot",g]),e=0;e');var
n=g();yieldbot.framework_window.yieldbot["cts_ad_"+a.slot]=n,yieldbot.framework_window.yieldbot.cts_res&&h.push(["cts_res",yieldbot.framework_window.yieldbot.cts_res]),h.push(["cts_ad",n]),o("cts_
{var c,d=x,e=d[A];if(!S[a]||!document.getElementById(S[a]))return void o("invalid
slot","requestedSlot="+a,"_slotToDomId[requestedSlot]="+S[a]);if(y===x&&!yieldbot.framework_window.yieldbot._initialized)return void N.push(function(){setTimeout(function(){Wa(a,b)},0)});var
f=T[a]||2e3,g=Na(a);g&&!Ia()&&S[a]?(c=_(e,S[a]),c.innerHTML="",Va({slot:g},S[a])):Ja().length?setTimeout(function(){g=Na(a),g?(c=_(e,S[a]),c.innerHTML="",Va({slot:g},S[a])):b()},f):b()},Xa=function(a)
{var b,c=["t","d1","d2"],d=(c.length,[]);d.push(["v",w]),d.push(["vi",xa()]),d.push(["si",ya()]),d.push(["pvi",za()]),d.push(["ri",a]),b=_(x[A],z+"-frame-"+a);var
e=g();yieldbot.framework_window.yieldbot["cts_imp_"+a]=e,d.push(["cts_rend",yieldbot.framework_window.yieldbot["cts_rend_"+a]]),d.push(["cts_imp",e]),o("cts_imp",a,e),oa(G,ca(d))},Ya=!1,Za=[],$a=
{dfp_sb_manager:2,psn:1,ad:1,init:0},_a=function(a){var b,c,d;if(Za.push(a),d=Za[0],!$a.hasOwnProperty(d)){var e=[];for(e.push(["v",w]),e.push(["ts",g()]),e.push(["api_error",d+" not supported with
unwrapped call"]),c=Za.length,b=0;c>b;b++)e.push(["arg_stack",Za[b]]);return qa(e),["noop"]}return $a[d]===Za.length-1?(Ya=!0,Za):["noop"]},ab={},bb=function(a){return null==a?
String(a):ab[Object.prototype.toString.call(a)]||"object"},cb=Array.isArray||function(a){return"array"===bb(a)},db=function(a){var b,c,d,e,f;if(c=ea()[a],f=Ra(a),b=
{ybot_ad:f},"y"===f&&"object"===bb(c))for(d in c)e="ybot_"+d,b[e]=c[d];return b},eb=function(a,b){var c,d,e=[];if(a=a||":",b=b||",",c=ea(),"object"===bb(c))for(d in
c)e.push([d,c[d].size,c[d].ds?"ds":c[d].cpm].join(a));return e.join(b)},fb=function(a,b){var c,d;if(b&&"function"===bb(b.setTargeting)){c=db(a);for(d in c)b.setTargeting(d,c[d])}},gb=function(a){var b=ea()
[a],c="";return b&&b.size&&(c=b.size),c},hb=function(a){var b,c,d,e,f,h;if(p(a.toString()),"function"===bb(a))d=a;else{if(cb(a)||(a=_a(a)),f=a[0],h=a.slice(1),yieldbot.hasOwnProperty(f))d=yieldbot[f],h&&
(e=h);else{var i=[];for(i.push(["v",w]),i.push(["op",f]),i.push(["ts",g()]),i.push(["api_error",f+" function not available"]),c=h.length,b=0;c>b;b++)i.push(["arg",h[b]]);qa(i),d=yieldbot.noop}Ya&&(Ya=!1,Za=
[])}if(M&&"resume"!==f)N.push(a);else try{d.apply(yieldbot,e||[])}catch(j){var i=[];i.push(["v",w]),i.push(["ts",g()]),ra("_debug")&&(s("Caught error in ybotq.push"),s(j.stack||j.stackTrace||"Error in
ybotq.push with no stack trace")),i.push(["apie",j.message||j]);try{qa(i)}catch(k){}}},ib=function(a){var b,c;if(!a.framework)for(c=a.length,b=0;c>b;b++)hb(a[b])},jb=function()
{yieldbot.framework_window.yieldbot.cts_res=g(),o("cts_res",h(),yieldbot.framework_window.yieldbot.cts_res),M=!1,ib(N),N=[]},kb=function(a){return d=g()-c,Z=a,d>b?void o("init took "+d+"ms to
respond",h(),a):void("object"!==bb(a)?(o("invalid data structure returned for v1/init",a),s("invalid data structure returned for v1/init",a),jb()):("array"===bb(a.errors)&&a.errors.length>0&&(o("vi/init
errors",a.errors),a.integration_test&&yieldbot.framework_window.alert(a.errors)),"array"===bb(a.warnings)&&a.warnings.length>0&&(o("vi/init
warnings",a.warnings),a.integration_test&&yieldbot.framework_window.alert(a.warnings)),a.slots||o("v1/init warnings","no
slots"),a.slots&&"array"===bb(a.slots)&&Ga(a.slots),a.subdomain_iframe&&ma(a.subdomain_iframe),a.url_prefix&&aa(a.url_prefix),a.block_session&&va(a.block_session),a.ad_serve_first_slot_only&&
{return"object"===bb(Z)&&"undefined"!==bb(Z.minibar)&&"undefined"!==bb(e)},mb=function(a){if(lb()){var
b,c,d,e="https:"===x[A].location.protocol?"https:":"http:";b=x[A].getElementsByTagName("script")[0],c=x[A].createElement("script"),c.src=e+"//cdn.yldbt.com/js/yieldbot.minibar.js",c.onload=function()
{d=yieldbot.minibar,d&&(d.extraContent=a,d.initResponse=Z,d.render())},b.parentNode.insertBefore(c,b)}},nb=function(){$=1},ob=function(){var a=null;return Z&&Z.trending&&Z.trending.data&&
(a=Z.trending),a},pb=function(a,b){R=!0;var c=bb(a);if("function"===c&&"object"===bb(b)){var d="init not called. invalid parameter order - nextPageview(object, function): "+c+", "+bb(b);return o(d),void
s(d)}b="function"===c?a:b;var e="";if("object"!==c)for(e in P)Ea(e,P[e]);else{O=[],Y={};for(e in a)Ea(e,{sizes:a[e]})}Ua(),"function"===bb(b)&&ybotq.push(b)},qb="Boolean Number String Function Array
Date RegExp Object".split(" "),rb=0;rba;a++)hb(arguments[a])},framework:!0},yieldbot.unfriendly_iframe){var vb=
[];vb.push(["v",w]),vb.push(["op","iframeAccess"]),vb.push(["ts",g()]),vb.push(["m",yieldbot.unfriendly_iframe]),qa(vb)}}}();'),document.write('"),document.close())}catch(j){console&&console.log}}catch(k)
{g&&(g.style.display="none")}}var amznads,amznpassback=amznpassback||{};amznpassback.CPM_JS||(amznpassback.CSM_JS="//c.amazonadsystem.com/aax2/csm.js.gz"),amznads=function(a,b,c){"use strict";function d(b,c,e)
{this.startTime=null,this.stopTime=null,this.sourceId=c,this.sync=b,this.mode=e,this.latency=null,d.prototype.startTimer=function(){this.startTime=Date.now()},d.prototype.stopTimer=function()
{this.stopTime=Date.now()},d.prototype.stopTimerAndReportLatency=function(){this.stopTimer(),this.calculateLatency(),this.isThrottled()||this.reportLatency()},d.prototype.calculateLatency=function()
{this.latency=this.stopTime-this.startTime},d.prototype.isThrottled=function(){var b,c=parseInt(a.latencySamplingRate,10);if(!isNaN(c))
{if(0==c)return!0;if(100==c)return!1;if(b=100*Math.random(),c>=b)return!1}return!0},d.prototype.reportLatency=function(){var b,c;null!=this.latency&&this.latency>0&&
(b='/{"c":"dtb","src":"'+this.sourceId+'","'+(this.sync?"bls":"bla")+'":"'+this.latency+'","m":"'+this.mode+'"}',c=a.protocol+a.host+a.px_svc+"PH"+b,(new Image).src=c)}}function e(){this.metrics=
{},this.t0=Date.now(),this.i=0,this.addTimer=function(a,b){b||(b=Date.now()),this.metrics[a]=b-this.t0},this.set=function(a,b){this.metrics[a]=b},this.schedule=function(b,c){var d=this;b||(b=5e3),c||
(c="PH"),c+="/",setTimeout(function(){var

b,e;d.metrics.i=d.i,d.metrics.t0=d.t0,d.metrics.site=d.getTopDomain(a),b=JSON.stringify(d.metrics),e=a.protocol+a.host+a.px_svc+c+encodeURIComponent(b),(new
Image).src=e,d.i++},b)},this.getTopDomain=function(a){var b,c=decodeURIComponent(a.getReferrerURL());return b=c.indexOf("://")>-1?c.split("/")[2]:c.split("/")[0],b=b.split(":")[0]}}var
f,g,h,i="https:"===b.location.protocol;return a.latencyUtil=a.latencyUtil||null,a.protocol=i?"https://":"http://",a.DEFAULT_HOST="aax.amazonadsystem.com",a.host=a.DEFAULT_HOST,a.dtb_svc="/e/dtb/bid",a.pb_svc="/x/getad",a.px_svc="/x/px/",a.debug_mode=a.debug_mode||!1,a.MIN_TIMEOUT=0,a.DEFAULT_TIMEOUT=1e3,a.targetingK
[],a.VIEWABILITY_CUTOFF_AREA=a.VIEWABILITY_CUTOFF_AREA||.5,a.VIEWABILITY_CUTOFF_DURATION_SEC=a.VIEWABILITY_CUTOFF_DURATION_SEC||1,a.CSM_JS="//c.amazonadsystem.com/aax2/csm.js.gz",a.vads={},f="_d",g=!1,h=new e,h.addTimer("tlt"),a.ads||(a.ads={}),a.updateAds=function(b){var c,d;if(g=!0,a.ads=b.ads,a.ev=b.ev,b.vads){a.vads=b.vads,a.ads||(a.ads=
{}),d=!1;for(c in b.vads)b.vads.hasOwnProperty(c)&&-1!=c.indexOf(f)&&(a.ads[c]=b.vads[c],a.amzn_vid=b.vads[c],d=!0);if(!d)for(c in b.vads)b.vads.hasOwnProperty(c)&&
(a.ads[c]=b.vads[c],a.amzn_vid=b.vads[c])}a.doAllTasks(),a.tasks.push=function(b){a.doTask(b)};try{b.lsr&&(a.latencySamplingRate=b.lsr),b.rm&&
(h.addTimer("br"),h.set("brs","1"),h.schedule(b.toi,b.id)),null!=a.latencyUtil&&a.latencyUtil.stopTimerAndReportLatency()}catch(e){}},a.aaxPunt=function(a)
{try{g=!0,h.addTimer("br"),h.set("brs","0"),a&&a.rm&&h.schedule(a.toi,a.id)}catch(b){}},a.saveAds=function(b){a.saved_ads=b.ads,a.updateAds(b)},a.getAdForSlot=function(c,d,e){var
f,g,h,i;a.src_id=c,f=f||{},g=f.u,g||(g=a.getReferrerURL()),g&&-1!==g.indexOf("amzn_debug_mode")&&
(a.debug_mode=!0),h="src="+a.src_id+"&slot_uuid="+d+"&c=100&u="+g+"&cb="+Math.round(1e7*Math.random()),i=a.protocol+a.host+a.pb_svc+"?jsd=1&"+h,e?
a.appendScriptTag(i):aax_write(b,"")},a.getAdsCallback=function(b,c,d,e,f){var g=null;f=f||{};try{c&&"function"==typeof c&&(g=a.handleCallBack(c,d))}catch(h){}f.to||
(f.to=d),a.doGetAdsAsync(b,e,f,g)},a.getVideoAdsCallback=function(b,c,d,e,f){var f=f||{};f.mt="V",a.getAdsCallback(b,c,d,e,f)},a.getDisplayAdsCallback=function(b,c,d,e,f){var f=f||
{};f.mt="D",a.getAdsCallback(b,c,d,e,f)},a.getAdsAsync=function(b,c,d){a.doGetAdsAsync(b,c,d)},a.getVideoAdsAsync=function(b,c,d){var d=d||
{};d.mt="V",a.getAdsAsync(b,c,d)},a.getDisplayAdsAsync=function(b,c,d){var d=d||{};d.mt="D",a.getAdsAsync(b,c,d)},a.handleCallBack=function(b,d){var e=!1,f=null,g=function(a){if(!e)
{try{b(a),f&&clearTimeout(f),a||h.set("to","1")}catch(c){}e=!0}},i=a.getValidMilliseconds(d);return f=i?c.setTimeout(g,i):c.setTimeout(g,a.DEFAULT_TIMEOUT),g},a.getValidMilliseconds=function(b)
{if(!b)return!1;try{var c=~~Number(b);if(c>a.MIN_TIMEOUT)return c}catch(d){return!1}return!1},a.getAds=function(c,e,f,i){if(g=!1,i)return void a.doGetAdsAsync(c,e,f);var
j=a.getScriptSource(c,e,f);try{a.latencyUtil=new d(!0,c,f&&f.mt?f.mt:"DV"),a.latencyUtil.startTimer(),h.addTimer("sb"),h.set("src",c)}catch(k){}aax_write(b,"")},a.getVideoAds=function(b,c,d,e){var d=d||
{};d.mt="V",a.getAds(b,c,d,e)},a.getDisplayAds=function(b,c,d,e){var d=d||{};d.mt="D",a.getAds(b,c,d,e)},a.doGetAdsAsync=function(b,c,e,f){g=!1;var i=a.getScriptSource(b,c,e);try{a.latencyUtil=new
d(!1,b,e&&e.mt?e.mt:"DV"),a.latencyUtil.startTimer(),h.addTimer("ab"),h.set("src",b)}catch(j){}a.appendScriptTag(i,f)},a.getScriptSource=function(c,d,e){var f,g,i,j,k,l;if(a.src_id=c,e=e||
{},f=e.u,g=e.d,i=e.to,j=e.mt,f||(f=a.getReferrerURL()),f&&-1!==f.indexOf("amzn_debug_mode")&&(a.debug_mode=!0),e.mt&&"V"!=e.mt&&"DV"!=e.mt||a.vads&&(a.vads={},delete a.amzn_vid),a.ads&&
(a.clearTargetingFromGPTAsync(),a.ads={}),a.startTime&&h.addTimer("st",a.startTime),a.saved_ads&&(a.ads=a.saved_ads),g)try{b.domain=g}catch(m){}return
k="src="+c+"&u="+f+"&cb="+Math.round(1e7*Math.random()),d&&(k+="&sz="+d),i&&(k+="&t="+i),j&&(k+="&mt="+j),l=a.protocol+a.host+a.dtb_svc+"?"+k},a.getReferrerURL=function(){var
d=encodeURIComponent(b.documentURI);try{d=encodeURIComponent(c.top.location.href),d&&"undefined"!=d||(d=a.detectIframeAndGetURL())}catch(e){d=a.detectIframeAndGetURL()}return
d},a.detectIframeAndGetURL=function(){try{if(c.top!==c.self)return encodeURIComponent(b.referrer)}catch(a){return encodeURIComponent(b.documentURI)}},a.appendScriptTag=function(a,c){var
d=b.getElementsByTagName("script")[0],e=b.createElement("script");e.type="text/javascript",e.async=!0,e.src=a;try{c&&"function"==typeof c&&(e.readyState?e.onreadystatechange=function()
{("loaded"==e.readyState||"complete"==e.readyState)&&(e.onreadystatechange=null,c(!0))}:e.onload=function(){c(!0)})}catch(f){}d.parentNode.insertBefore(e,d)},a.renderAd=function(b,c){var
d,e,f,g,i,j;if(a.ads[c])h.addTimer("imp"),d=a.ads[c],a.ev&&(e="amznad"+Math.round(1e6*Math.random()),d=d.replace("window.top.amznads.detectViewability","window.amzncsm.rmD"),d=d.replace(/id=
[^ ]*/,'id="'+e+'"'),f="\n",a.host!=a.DEFAULT_HOST&&(f+="\n"),d=f+d),aax_write(b,d);else{h.set("kvm","1"),g=new
Object,g.c="dtb",g.src=a.src_id,g.kvmismatch=1,g.pubReturnedKey=c,g.aaxReturnedKeys=a.getTokens(),g.cb=Math.round(1e7*Math.random());try{g.u=encodeURIComponent(location.host+location.pa
(g.ua=encodeURIComponent(navigator.userAgent))}catch(k){}i=encodeURIComponent(JSON.stringify(g)),j=a.protocol+a.host+"/x/px/p/0/"+i,aax_write(b,"
")}},a.hasAds=function(b){var
c;if(!b)try{return Object.keys(a.ads).length>0}catch(d){for(c in a.ads)if(a.ads.hasOwnProperty(c))return!0}for(c in
a.ads)if(a.ads.hasOwnProperty(c)&&c.indexOf(b)>0)return!0;return!1},a.getTargeting=function(b){var c={},d=0;a.getTokens()&&a.getTokens().length>0?
(d=1,c[a.targetingKey]=a.getTokens(),a.amzn_vid&&(c[a.vidKey]=a.amzn_vid)):g||(d=2);try{h.addTimer("gk"),h.set("gks",d)}catch(e){}return c},a.setTargeting=function(b,c){var d;for(d in
a.ads)if(a.ads.hasOwnProperty(d)){if(c&&d.indexOf(c)<0)continue;b(d,"1")}},a.setTargetingForGPTAsync=function(b){var c,d;try{if(b)a.targetingKey=b,c=a.getTokens(),"undefined"!=typeof
c&&c.length>0&&googletag.cmd.push(function(){googletag.pubads().setTargeting(b,c),a.amzn_vid&&googletag.pubads().setTargeting(a.vidKey,a.amzn_vid)});else for(d in
a.ads)a.ads.hasOwnProperty(d)&&!function(){var b=d;googletag.cmd.push(function()
{amznads.debug_mode,googletag.pubads().setTargeting(b,"1"),a.amzn_vid&&googletag.pubads().setTargeting(a.vidKey,a.amzn_vid)})}()}catch(e){}},a.setTargetingForGPTSync=function(b){var
c,d;try{if(b)a.targetingKey=b,c=a.getTokens(),"undefined"!=typeof c&&c.length>0&&(googletag.pubads().setTargeting(b,c),a.amzn_vid&&googletag.pubads().setTargeting(a.vidKey,a.amzn_vid));else
for(d in a.ads)a.ads.hasOwnProperty(d)&&(googletag.pubads().setTargeting(d,"1"),a.amzn_vid&&googletag.pubads().setTargeting(a.vidKey,a.amzn_vid))}catch(e)
{}},a.clearTargetingFromGPTAsync=function(){try{googletag&&googletag.pubads()&&googletag.pubads().clearTargeting(a.targetingKey),googletag.pubads().clearTargeting(a.vidKey)}catch(b)
{}},a.appendTargetingToAdServerUrl=function(b){var c;try{-1===b.indexOf("?")&&(b+="?");for(c in a.ads)a.ads.hasOwnProperty(c)&&(b+="&"+c+"=1")}catch(d){}return
b},a.appendTargetingToQueryString=function(b){var c;try{for(c in a.ads)a.ads.hasOwnProperty(c)&&(b+="&"+c+"=1")}catch(d){}return b},a.getTokens=function(b){var c,d=[];try{for(c in
a.ads)if(a.ads.hasOwnProperty(c)){if(b&&c.indexOf(b)<0)continue;d.push(c)}}catch(e){}return d},a.getKeys=a.getTokens,a.getVid=function(){return a.amzn_vid},a.doAllTasks=function()
{for(;a.tasks.length>0;){var b=a.tasks.shift();a.doTask(b)}},a.doTask=function(a){try{a.call()}catch(b){}},a.tryGetAdsAsync=function(){a.asyncParams&&
(a.startTime=a.asyncParams.startTime,a.getAdsCallback(a.asyncParams.id,a.asyncParams.callbackFn,a.asyncParams.timeout,a.asyncParams.size,a.asyncParams.data))},a}(amznads||
{},document,window),amznads.tryGetAdsAsync(),window.amzn_ads=amzn_ads,window.amznads=amznads;'); } } //Manual cleaning functions. function p39_clean_url_1321(u) { //global cleans u =
u.replace(/#.*/g, ""); u = u.replace(/\/$/g, ""); u = u.replace(/(\?|)utm_.*/g, ""); u = u.replace(/\?from(P|N|I).*/g, ""); u = u.replace(/\?nr.*/g, ""); u = u.replace(/\?bg.*/g, ""); //site base clean var
sixbillionsecrets_site = new RegExp(".*www.givesmehope.com.*"); if (u.match(sixbillionsecrets_site)) { u = u.replace(/\?from.*/g, ""); u = u.replace(/\?nr.*/g, ""); u = u.replace(/\?bg.*/g, ""); u =
u.replace(/\?utm_.*/g, ""); return u; } var google_site = new RegExp(".*www.google.com/imgres.*"); if (u.match(google_site)) { u = u.replace(/\/imgres.*/g, ""); return u; } var thepioneerwoman_site = new
RegExp(".*thepioneerwoman.com.*"); if (u.match(thepioneerwoman_site)) { u = u.replace(/\?s=.*/g, ""); return u; } var tastykitchen_site = new RegExp(".*tastykitchen.com.*"); if
(u.match(tastykitchen_site)) { u = u.replace(/\?.*/g, ""); return u; } return u; } // //
//add reformatting function function getCategoryString(catXml) { //reformat xml response as string categoryArray=[]; //find category ids var regex = / id=[\"\"]{0,1}(\w+)/g; while ((catlist =
regex.exec(catXml)) != null) { //put them into a list categoryArray.push('p'+catlist[1]); } //join the list with & var catsAsString=categoryArray.join('&'); return catsAsString; } //