/*(c)2016 sovrn Holdings, Inc. All Rights Reserved 1500044118024*/ window.sovrn=window.sovrn||{};var lwp_ad_zoneid=null;Array.prototype.indexOf||(Array.prototype.indexOf=function(a){var b=this.length>>>0,c=Number(arguments[1])||0;for(c=c<0?Math.ceil(c):Math.floor(c),c<0&&(c+=b);c0&&d.left=0}catch(a){b=!1}return b+""},beaconShouldFire:function(){var a=this.getBeaconTID();return null===a||a===this.getTID()},buildQS:function(a,b){var c,d=encodeURIComponent,e=b?"&":"&",f=[];for(c in a)a.hasOwnProperty(c)&&""!==c&&""!==a[c]&&f.push(d(c)+"="+d(a[c]));return f.join(e)},callAdServer:function(){var a,b,c,d,e,f=this,g=f.getConfig();if(g.called_ad_server)return f.log("DUPLICATE AD DELIVERY CALL ABORTED ("+g.zone_id+" / "+g.tid+")"),!1;g.called_ad_server=!0,a=document.createElement("div"),d={id:g.ad_unit_id,"data-tid":g.tid,"data-zid":g.zone_id};for(e in d)d.hasOwnProperty(e)&&a.setAttribute(e,d[e]);return f.isAsync()?(a.setAttribute("style","display:none"),f.docWrite(a.outerHTML)):(a.setAttribute("class",g.css_class+" sovrn_ad_unit"),f.docWrite(a.outerHTML.replace(/<\/div>/i,""))),b=f.createScript(f.buildConfig.adserver_url+"?"+f.getASParams()+f.getMoreParams()),c=f.isAsync()?"":"",f.docWrite(b.outerHTML+c),f.log("*addelivery ("+g.zone_id+" / "+g.tid+")"),f.recordEvent("addelivery"),!0},chainCleanup:function(){var a,b,c,d,e,f,g,h=this,i=h.isOldIE()&&!h.isAsync(),j=h.getGlobalConfig();if(i&&!j.ie_cleanup_flag)return!1;for(j.ie_cleanup_flag=!1,d=h.getConfig(),g=i?j.tids.length:1,e=0;e=b})),e=0;e1)&&(this.isAsync()?this.inFriendlyIframe():0===a)},docWrite:function(a){try{document.writeln(a)}catch(a){this.reportError("docWrite Error",a)}},doFixBeacons:function(a){var b,c;if(a=a||document.body,b=a.childNodes,sovrn.ads.isTracker(a)&&(a.style.display="none",a.setAttribute("x-beacon","1")),a.hasChildNodes())for(c=0;c0&&document.writeln(""),d=b.index++,f=b.ads[d],g=0===d?"Start Chain":"Passback",k.log(g+" ("+h.zone_id+" / "+j+")"),1===b.ads.length&&document.write("\n\x3c!-- [sovrn] No Ads Returned From Server, Including a Passback ("+j+")--\x3e\n"),d>=b.ads.length)return document.write("\n\x3c!-- [sovrn] All Ads Exhausted, Including Default Ad; ("+j+") --\x3e\n"),k.reportError("Chain Pointer Exception",new Error),!1;b.data=JSON.parse(JSON.stringify(f.data)),b.data.tid=j,b.data.zoneid=h.zone_id,c={cids:f.data.campaignid,bids:f.data.bannerid,tss:new Date-b.start_time};for(e in c)c.hasOwnProperty(e)&&(b.history[e].push(c[e]),b.data[e]=b.history[e].join(","));return 232===f.campaignid&&(i.lgq.push(j),k.chainLG()),a||document.writeln("\x3c!-- [sovrn] Banner ("+h.zone_id+" / "+j+" / "+f.data.bannerid+" / "+f.data.campaignid+") --\x3e"),document.writeln(''),k.docWrite(decodeURIComponent(f.html)),k.log("Rendered Ad ("+h.zone_id+" / "+j+" / "+f.data.bannerid+" / "+f.data.campaignid+")"),b.banner_id=parseInt(f.data.bannerid,10),b.campaign_id=parseInt(f.data.campaignid,10),232!==f.campaignid&&0===d&&(i.lgq.push(j),l=k.isOldIE()||b.pbi?'