var __IntegralASDiagnosticCall = function(){}; try { var __IntegralASConfig = { jsDoSplit : "false", cocaPuffsPath : "", debug : "false", killPhrases : "", jsDiag:'false', version:'0', mtCell: 10, sp_imp_maxLength: 2000, sp_imp_jload_maxLength: 2000, sp_imp_jsInfo_minLength: 0, mtSample: 5, cookieDomain:'sc.iasds01.com/dtc', trackMouse : "true", exchList:{'e1':'nqzryq','e2':'tbbtyrnqf.t.qbhoyrpyvpx','e3':'ehovpbacebwrpg','e4':'chozngvp','e5':'bcrak','e6':'nqoevgr.pbz','e7':'tynz.pbz','e8':'lvryqznantre.pbz','e9':'yvwvg','e10':'nqakf','p11':'ghea.pbz','p12':'zngugnt','p13':'vaivgrzrqvn','p14':'qngnkh','n15':'zrqvn6qrterrf','n16':'dhnagfreir','n17':'esvuho.arg','a18':'napubeserr','a19':'eff2frnepu','a20':'mgfgngvp.pbz','n21':'ovq.npr.nqiregvfvat','e22':'wnfba','v23':'fcbgkpqa','v24':'ogeyy','v25':'yvirenvy','v26':'nqncgi','v27':'nqnc.gi','n29':'qbzqrk.pbz','n30':'ernyih.arg','d31':'cvengronl','d32':'cebklonl','d33':'onlcebkl','d34':'cvengrcebkl','d35':'cebklcvengr','d36':'onlcvengr','n37':'tjnyyrg','p39':'j55p.arg','p40':'c0l.pa','p41':'vcvalbh.pbz','p42':'c0lwferaqre'}, killFlash: 'true', protocol:'http', jsref : "http:\/\/www.computerworld.com\/article\/3103294\/computer-processors\/ibm-creates-artificial-neurons-from-phase-change-memory-for-cognitive-computing.html?nsdr=true&token=%23tk.ITWNLE_nlt_itworld_today_2016-08-04", asid : "2a827970-5b25-11e6-8a1c-00259086bbca", allowViewability : "true", jsFeatures : "mousetrack,cocoapuffs,viewabilityready,consecutive,cachebust:0,forcecocoa:0,rattie,exch,recordalternate:0,usedtdomain,nextcocoa:100,bapiDiag,cookie,postDts:0,videotwoseconds,getPl,decodePl,resolution,usetpl,usesca:1,tpiLookupURL,hundredpct,jloadDiag:0,blur:0,sendclogs,zeroPing,idMap,offscreen,everySecond:1,sdkdetection,moreAdTalkCalls,slid,fm2:1,largeAd,nextcocoaie:100,usevh,fxdet,mmsb:100,bigmon:0,chromeNativeIO:100,oddet:100,ios:0,ancestor:100,avmm:100,avgrn:100,useScreenLocationInfoAdaptor:100,swapids:100,pIntervals:10", adsafeDomain : "adsafeprotected.com:80", minimizeCalls : "false", adWidth : "", adHeight : "", forceAppend : "true", _onInViewMRC15 : __IntegralASConfig && __IntegralASConfig.onInViewMRC15, _onAPIResult : __IntegralASConfig && __IntegralASConfig.onAPIResult, _onMeasurable : __IntegralASConfig && __IntegralASConfig.onMeasurable, _onSuspicious : __IntegralASConfig && __IntegralASConfig.onSuspicious, _onInViewMRC : __IntegralASConfig && __IntegralASConfig.onInViewMRC, _onInViewFull : __IntegralASConfig && __IntegralASConfig.onInViewFull, _onInViewMRC5 : __IntegralASConfig && __IntegralASConfig.onInViewMRC5, reqquery : "anId=8879&campId=728x90&pubId=25335176&chanId=21394136&placementId=263338136", mode : "jload", requrl : "http:\/\/pixel.adsafeprotected.com\/mon", dtBaseURL: "http:\/\/dt.adsafeprotected.com\/dt?anId=8879", adsafeSrc : "", adsafeSep : "", tpiLookupURL:"", getTpl: "false", use100v: false, useBapiCallback: "", useViewabilityNotification: "", scriptUrl : "http://pixel.adsafeprotected.com/jload?anId=8879&campId=728x90&pubId=25335176&chanId=21394136&placementId=263338136", accountForSadImps:'', sendCookie:'false', cookieBaseURL:'sc.iasds01.com/dtc?anId=8879', fwMonitoring:'', doNothing: false, mn: "app06ami", mobOrTab: false, mobFwUrl : "http://mobile.adsafeprotected.com/external/monitoring/app/initial/8879/", videoId : '' }; if (__IntegralASConfig.jsFeatures.indexOf('asidJsDiagnostic') !== -1) { var fakeErr = { message: __IntegralASConfig.asid }; __IntegralASDiagnosticCall('asid', fakeErr); } __IntegralASConfig.birthdate = new Date().getTime(); __IntegralASConfig.useFIF = (!!window.__IntegralASUseFIF) && __IntegralASConfig.mode === 'jload'; __IntegralASConfig.contextNode = (function() { if (__IntegralASConfig.useFIF) { return window.frameElement; // Early exit if using FIF } var tempScript, embedded = window != top, scripts = document.getElementsByTagName('script'), result = scripts[scripts.length - 1], scriptIndex = scripts.length, useDocWrite = 'jss,jsi,jspix'.indexOf(__IntegralASConfig.mode) !== -1, scriptUrl = __IntegralASConfig.scriptUrl; try { while (--scriptIndex >= 0) { tempScript = scripts[scriptIndex]; if (tempScript.src && tempScript.src.indexOf(scriptUrl) === 0 && tempScript.getAttribute('data-ias-script-tag') === null) { result = tempScript; tempScript.setAttribute('data-ias-script-tag', 'found'); break; } } if (scriptIndex === 0 && useDocWrite && !embedded) { document.write(''); result = document.getElementById('s' + __IntegralASConfig.asid).parentNode; } } catch(e) { } return result; }()); } catch(err) { __IntegralASConfig = {}; __IntegralASDiagnosticCall('bootstrapper', err); } __IntegralASConfig.initialize=function(q,s,y){var l,Eb=function(){l=new U;var a;l.provide("mobileApp",function(){return a=a||new va(d)});var d=l.provide("features",wa()),b=xa(),c=ya(b),e=new za(l),h=function(){var a=new Aa(n.getWindow(),new H),b=new Ba(n.getWindow()),c=new Ca(n.getWindow(),b,q.mode),e=new Da(a,new H),r=new Ea(n.getWindow(),new H),b=new Fa(n.getWindow(),b,q.mode),a=new Ga(a,r,new H),c=(new Ha([{environment:c,measurementStrategy:e},{environment:b,measurementStrategy:a}])).resolve(), e=new Ia(c);return new Ja(d.on("useScreenLocationInfoAdaptor"),c,e)}();d.on("swapids")&&(q.oid=q.asid,q.asid=c.unq);var k,m,p,r,x=Ka(),t=La(),v=Ma(d),u=Na(),B=Oa(l),D=l.provide("mPage",Pa()),P=Qa(),G=Ra(),C=Sa(),F=Ta(b,C),Va=Ua(b),C=l.provide("browser",Wa()),ma=l.provide("intersectionWatcher",Xa(n.getDoc().body)),s=Ya();l.provide("ieXDomainViewability",Za(C));var M=$a(C),y=ab(C),z=l.provide("video",w.isVideo()&&!w.isAvid()?bb(q.videoId,d,G):{});cb(db.build());var s=eb(s,b,y,M,d),A=fb(s,b,D),E=gb(B), u=hb(s,b,d,c,e,C,G,u),Q=ib(b,d,l,B),B=jb(F,u,b,c,e),K=kb(F,u),Q=lb(Q,d,h.isImmediate()),I=mb(h,C,u,b,d,y,l,c,M,e,E,D,A,G,z),G=nb(F,b,d,c,Q,e,C,I),F=ob(l),D=pb(),E=qb(C,c,I),c=rb(),M=sb(),y=tb(),z=ub(),A=vb();u.setViewabilityMod(I);var R;if(!function(){var a=!1,c,d;try{f.isDef(q)&&f.isDef(q.killPhrases)&&""!==q.killPhrases&&(c=q.adsafeSrc?q.adsafeSrc:q.requrl+q.reqquery,d=q.killPhrases.split(","),f(d).each(function(b,e){e=decodeURIComponent(d[b]).replace(/^\s+|\s+$/g,"");-1!==c.search(e)&&(a=!0)})), q.doNothing&&(a=!0)}catch(e){b.add(g.ERROR_CODES.KILL_IT)}return a}()){if(v.isApplicable(w))try{v.start(),e.addItem(v.getFrameMap(),"fm"),d.on("fm2")&&e.addItem(v.getFrameMapIncludingPeerCase(),"fm2"),d.on("idMap")&&(k=v.getIdMap())&&e.addItem(k,"idMap")}catch(S){b.add(g.ERROR_CODES.ADTALK_GENERAL)}k=wb();k.isApplicable()&&k.start();var T;try{ma.isApplicable(C,d,w)&&ma.start();"true"!==q.minimizeCalls&&I.init();d.on("mousetrack")&&(r=xb(s,e),r.init());T=P.detectTopURL();d.on("exch")&&(m=yb(b,e),m.parse(T)); if(d.on("getPl")&&navigator&&navigator.plugins){p=zb(navigator.plugins);var N=p.hash();e.addItem({output:N.join(".")},"pl",{type:g.DT_CODES.ADTALK});if(d.on("decodePl")&&N.length){var L=p.decode(N);e.addItem({output:L.join(".")},"pd",{type:g.DT_CODES.ADTALK})}}var O=Va.getProps();f(O).each(function(a,b){e.addItem({output:b},a,{type:"UFO"})})}catch(Y){b.add(g.ERROR_CODES.IMPRESSION_LEADUP)}d.bootstrapOn("use100v")&&Ab();u.sendCookie();G.send(T);E.isApplicable(d)&&E.start();d.bootstrapOn("getTpl")&& d.on("usetpl")&&B.init();q.tpiLookupURL&&K.init(q.tpiLookupURL);Bb(d);"true"!==q.minimizeCalls&&(R=(new Date).getTime(),n.execAtEndOfThread(function(){n.execAtEndOfThread(function(){var a={output:(new Date).getTime()-R};e.addItem(a,"sinceFw",{type:g.DT_CODES.ADTALK});f.isDef(I.readyFired())&&e.addItem({output:I.readyFired()},"readyFired",{type:g.DT_CODES.ADTALK});v.isApplicable(w)&&v.sendAdTalkCall()})}));d.on("usesca")&&F.load()}m=!d.bootstrapOn("mobOrTab");d.on("fxdet")&&m&&C.hasFlashEnabled()&& !d.bootstrapOn("killFlash")&&Cb(C);c.isApplicable(d,C)&&c.start();z.isApplicable(d,C)&&z.start();A.isApplicable(d,C)&&A.start();M.isApplicable(d)&&M.start();y.isApplicable(d,C)&&y.start();d.on("usevh")&&m&&Db();D.isApplicable(C,d,w)&&D.start();h&&h.start();x.isApplicable(d)&&(x.start(),t.start(),t.addFieldTypes(["im"]),J.recordBlockingTime(),J.setupOnLoadTracking(),J.setupBrowserDelayTracking())},f=function(a){var d=function(c){var d=null===a,d="object"===typeof a&&!d,e=!b()&&d;return c?d:e},b=function(){return a instanceof Array},c=function(b,c){if(a.length===+a.length)for(var d=0,e=a.length;da,e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),h=[];a=c?-a:a;do b=a%d,h.push(e[b]),a=(a-b)/d;while(0=g.MRC_LARGE_AD_SIZE;e()});l.on("impressionsent",function(){d=!0;e()});c.onHiddenChange(e)},Na=function(){var a=[],d={},b={percentInView:"piv",sl:"vs",reason:"r",width:"w",height:"h"};l.on("newScreenEvent",function(c){c=f(c).selectProperties(f(b).keys());c= f(c).asStrings();var e=f(c).compareTo(d);e&&(e.t=w.getTagTime(),a.push(e));f(d).mixin(c)});return{toString:function(){return f(a).toION(b)}}},Fb=function(a,d,b,c,e,h,k){var m;(function(){var h=b.getRounded(),r=h.width-5,f=h.height-5,g=0.5*h.width+1,h=0.5*h.height+1;m=[new a(d,r,f,e,k,c),new a(d,r,5,e,k,c),new a(d,5,f,e,k,c),new a(d,5,5,e,k,c),new a(d,g,h,e,k,c)]})();return{getNumInView:function(){var a=[],b=0;f(m).each(function(b,c){var d=c.isInView()?1:0;a.push(d)});h.addItem({output:a.join(".")}, "pvs");f(a).each(function(a,c){b+=c});return b},getPctInView:function(a){return 5===a?100:3<=a?51:0},isReady:function(){var a=!0;f(m).each(function(b,c){c.isNotReadyToReport()&&(a=!1)});return a},remove:function(){f(m).each(function(a,b){try{b.remove()}catch(c){}})}}},Gb=function(a,d,b,c,e,h,k,m){var p=e.on("nextcocoa")?na:oa,r=new a(p,y.body,d,c,e,k,m),x,t,v=0;b=b||f.noop;x=setInterval(function(){r.isReady()&&!t?(t=!0,b(),clearInterval(x)):(5===++v||t)&&clearInterval(x)},50);return{checkViewable:function(){var a= r.isReady(),c=r.getNumInView(),c=r.getPctInView(c),d=h.calcInitialViewState(c,!0);a&&!t&&(t=!0,b());return{str:a?d:g.NA,pct:a?c:-1}},removePixels:function(){r.remove()}}},Y=function(a,d,b,c,e,h){var k,m,p=d.getRounded(),r=[],x=!1,t=0,v=c.on("largeAd")&&d.isMrcLarge()&&!w.isVideo()?Hb(p):Ib(p),u=function(){var a;if(!x)for(x=!0,a=0;a=e?g.IN_VIEW:g.OUT_OF_VIEW);a&&!m&&(m=!0,b());return{str:a?e:g.NA,pct:a?B():-1}},removePixels:function(){f(r).each(function(a,b){try{b.remove()}catch(c){}})}}},U=function(){var a=new Jb,d=new H;return f(a).mixin(d)}, H=function(){var a={},d=function(b,c){a[b]=a[b]||new Z;a[b].push(c)};return{on:function(a,c){c?d(a,c):f(a).each(d)},trigger:function(b){var c,d=f(arguments).toArray();if(c=a[b])d.shift(),c.run.apply({},d)}}},wb=function(){var a={},d={ox:0},b=n.getWindow(),c=f.isDef(b.JSON)&&f.isDef(b.postMessage),e=function(b){var c=b.uniqueId;b=d[b.vendorKey];var e=!1;f.isDef(b)&&1>b&&c&&!a[c]&&(e=!0);return e},h=function(a,b){if(b)return b.type="receipt",b},k=function(b,c,e){d[c.vendorKey]++;e();a[c.uniqueId]=!0; m(c)&&(e="false"===c.isSampling,b=["ext",c.vendorKey,c.dataKey].join("_"),e={encode:!0,minDt:e,type:e?g.DT_CODES.EXTERNAL:g.DT_CODES.UNLOAD},l.trigger("addOutputItem",{output:c.dataValue},b,e),l.trigger("addOutputItem",{output:c.vendorKey},"ext_vendor",e),"false"===c.isSampling&&l.trigger("sendMinDt",g.DT_CODES.EXTERNAL))},m=function(a){var b=function(a){return f.isStr(a)&&100>a.length};return b(a.vendorKey)&&b(a.dataKey)&&b(a.dataValue)};return{isApplicable:function(){return c},start:function(){(new $).listen(e, k,h)}}},W=function(a,d,b,c){var e=l.request("browser");if(l.request("features").bootstrapOn("killFlash"))return{style:{},isPlaceholder:!0};var h=function(a,b){return''};return function(){var k,f,p,r=q.dtBaseURL,x=q.cocaPuffsPath,r=new K(r);r.sub(d||"static");r.master(r.master().split(":")[0]);r.path("");x&&(r.master(x),r.sub(""));r+=a;x=h("allowscriptaccess","always");k=h("movie",r)+h("play","true")+h("loop","true");p=e.browserIs(g.BROWSERS.IE)||e.browserIs(g.BROWSERS.MSEDGE); f=e.browserIs(g.BROWSERS.IE);p&&(p=c?"window":"transparent",k+=h("wmode",p));b&&(x+=h("FlashVars",b));f?(f=y.createElement("div"),p="blag"+q.birthdate+n.random(),f.innerHTML=""+k+x+"",k=f.firstChild):(k=y.createElement("object"),k.data=r,k.type=g.FLASH_MIME,k.innerHTML=x);r=k;r.style.position="absolute";r.style.width="1px";r.style.opacity="0";r.style.height="0px"; return k}()},na=function(a,d,b,c,e,h,k,m){var p=h.browserIs(g.BROWSERS.IE)||h.browserIs(g.BROWSERS.MSEDGE),r="_IASflashPixelCallback"+(q.birthdate+""+n.round(1E6*n.random())),x=!1,t=!1,v,u,B,D,P=function(){if(v&&f.isFunction(v.jsHandshake)&&!x){v.style.height="1px"===v.style.height?"2px":"1px";try{v.confirmResize()}catch(a){x=!0,l.trigger("error",g.ERROR_CODES.FLASH_API_ACCESS)}}},G=function(){if(x)return!1;var a,b;try{(a=D||v&&f.isFunction(v.jsHandshake))&&!t&&(D=!0,s[r]=C,b=v.jsHandshake(r),t=!0, C(b))}catch(c){a=!1,x=!0,l.trigger("error",g.ERROR_CODES.FLASH_API_ACCESS)}return a},C=function(a){try{if(f.isUndef(a.isInView))throw"corrupted Flash pixel message received";B=1===+a.isInView}catch(b){l.trigger("error",g.ERROR_CODES.FLASH_API_ACCESS)}},F=function(a,b,c){var d=new W(p?"/detector_4_5_IE.pix":"/detector_4_5.pix"),e=d.style;d[g.IAS_DETECTOR]="true";e.left=b+"px";e.top=c+"px";d.isPlaceholder||a.appendChild(d);e.height="1px";v=d;p&&!d.isPlaceholder&&setInterval(P,100);return d}(a,d,b); return{isInView:function(){var a;if(G()){try{a=B}catch(b){D=!1,l.trigger("error",g.ERROR_CODES.COCOA_GONE)}h.browserIs("w")&&void 0!==a&&(v.style.height=u?"1px":"2px",u=!u)}return G()&&a},isNotReadyToReport:function(){return!G()},createdFlash:v,remove:function(){F.parentNode&&F.parentNode.removeChild(F)}}},oa=function(a,d,b,c,e,h,k){var m=h.browserIs(g.BROWSERS.IE)||h.browserIs(g.BROWSERS.MSEDGE),p=!1,r,x,t,v,u,B=function(a,b){return''},D=function(a,b){return a+ '="'+b+'" '},P=function(){if(G()&&!p){r.style.height="1px"===r.style.height?"2px":"1px";try{r.confirmResize()}catch(a){p=!0,l.trigger("error",g.ERROR_CODES.FLASH_API_ACCESS)}}},G=function(){var a=!1;try{a=r&&f.isFunction(r.jsHandshake)}catch(b){}return a},C=function(){if(p)return!1;var a;try{if((a=u||G())&&!t){u=!0;var b=f.flatJSONParse(r.jsHandshake());t=b.id;if(f.isUndef(t))throw"corrupted Flash pixel message received";v=1===+b.isInView}}catch(c){a=!1,p=!0,l.trigger("error",g.ERROR_CODES.FLASH_API_ACCESS)}return a}; z.addEvent(s,"message",function(a){try{var b=f.flatJSONParse(a.data);"IASCOCOA"===b.type&&b.id===t&&(v=1===+b.isInView)}catch(c){l.trigger("error",g.ERROR_CODES.FLASH_API_ACCESS)}});var F=function(a,b,c){var d;d=new K;var e=q.cocaPuffsPath;d.sub("static");d.master(d.master().split(":")[0]);e&&(d.master(e),d.sub(""));var e=d+(m?"/detector_4_2_IE.pix":"/detector_4_1.pix"),k=B("allowscriptaccess","always"),f=B("movie",e)+B("play","true")+B("loop","true");m&&(f+=B("wmode","transparent"));h.browserIs(g.BROWSERS.IE)? (d=y.createElement("div"),d.innerHTML=""+f+k+"",r=d.firstChild):(r=y.createElement("object"),r.data=e,r.type=g.FLASH_MIME,r.innerHTML=k,r[g.IAS_DETECTOR]="true");r.style.position="absolute";r.style.width="1px";r.style.opacity="0";r.style.height="0px";d=r;e=d.style;e.left=b+"px";e.top=c+"px";a.appendChild(d);e.height="1px"; m&&setInterval(P,100);return d}(a,d,b);return{isInView:function(){var a;if(C()){try{a=v}catch(b){u=!1,l.trigger("error",g.ERROR_CODES.COCOA_GONE)}h.browserIs("w")&&void 0!==a&&(r.style.height=x?"1px":"2px",x=!x)}return C()&&a},isNotReadyToReport:function(){return!C()},createdFlash:r,remove:function(){F.parentNode&&F.parentNode.removeChild(F)}}},X=function(){var a=function(b,c,d){var h=c.length,k=b.frames;d&&d(b,c);if(k.length){for(b=0;b=c&&(b.task(),a.shift())},getNextJob:function(){return a[0]}}},$=function(){var a=function(a,b,c,e){var h,k=f.noop,m,p;if(JSON&&JSON.parse)try{h=JSON.parse(a.data),m=a.source,b(h)&& (e&&(p=e(m,h))&&(k=function(){(new aa(m)).send(function(){return p})}),c(a,h,k))}catch(r){h&&l.trigger("error",g.ERROR_CODES.MESSAGE_LISTENER)}};return{listen:function(d,b,c){z.addEvent(s,"message",function(e){a(e,d,b,c)})}}},aa=function(a){var d=function(a){return f(a).mapToObj(function(a,b){var d;f.isFunction(b)||(d={},d[a]=b);return d})};return{send:function(b){if(JSON&&JSON.stringify){var c=f(a).isObj()?[a]:(new X).getFrames(a);f(c).each(function(a,c){var k;k=f.resolve(b,c)||{};k.sentTime=n.now(); k=d(k);c.postMessage(f(k).JSONStringify(),"*")})}}}},Kb=function(a,d){return{onAll:function(b){var c={};f(d).each(function(e,h){a.on(h,function(){c[h]=1;f(c).keys().length===d.length&&(c={},b())})})}}},za=function(a){var d=0,b={},c=function(a,b,c){if(f.isUndef(a.output))throw Error("item with id "+b+' must have "output" method');this.item=a;this.id=b||++d;this.props=c||{};this.output=function(){var b=f.resolve(a.output);this.props.asION&&(b=f(b).toION());return b}},e=function(a){var c,d,e=[];for(c in b)b.hasOwnProperty(c)&& (d=a(c,b[c]))&&e.push(d);return e},h=function(a,d,e){e=e||d;e="string"!==typeof e?e:{};var h=function(a,d,e){a=new c(a,d,e);b[a.id]=a};f(a.output).isObj()?f(a.output).each(function(a,b){h({output:b},a,e)}):h(a,d,e)};a.on("addOutputItem",function(a,b,c){h(a,b,c)});return{addItem:h,filterOutput:function(a,b){return e(function(c,d){var e=d.props,h=d.output();a(e)&&(e.encode&&(c=encodeURIComponent(c),h=encodeURIComponent(h)),f.isFunction(b)?b(c,h):b[c]=h)})},iterate:e,cleanup:function(){e(function(a, c){c.props.flagForRemoval&&delete b[a]})},getItem:function(a){return b[a]}}},Hb=function(a){var d=a.width-5,b=a.height-5,c=0.5*a.width+1,e=0.5*a.height+1,h=0.3*a.width+1,f=0.7*a.width+1,m=0.3*a.height+1,p=0.7*a.height+2,r,g=function(b,c){1>b&&(b=1);1>c&&(c=1);b>a.width&&(b=0!==a.width?a.width:1);c>a.height&&(c=0!==a.height?a.height:1);return{x:n.floor(b),y:n.floor(c)}};r=[g(d,b),g(d,5),g(5,b),g(5,5),g(c,e),g(h,m),g(f,m),g(h,p),g(f,p)];return{get:function(){return r},getPctInView:function(a){var b; 0===a?b=0:1===a?b=10:2===a?b=20:5>a?b=30:7>a?b=50:9>a?b=70:9===a&&(b=100);return b}}},Ib=function(a,d){var b=0.5*a.width+1,c;c=[{y:n.floor(0.5*a.height+1),x:n.floor(b)}];return{get:function(){return c},getPctInView:function(a){return 1===a?50:0}}},Jb=function(){var a={},d=function(b,c){a[b]=c};return{request:function(b){var c,d=a[b],h=f(arguments).toArray();h.shift();f.isUndef(d)||(c=f.isFunction(d)?d.apply({},h):d);return c},provide:function(b,c){c?a[b]=c:f(b).each(d);return c}}},fb=function(a,d, b){return{collect:function(){var c=a.find(),d=c.getOutOfViewReasons(),h=b.isHidden(),k=E(A.calcWinDims()),m=c.getDims();if(!c.hasAd()||!k.hasValidDims()||!m.hasValidDims())return{viewState:g.NA,posViewState:g.NA,embedded:w.embedded,winDimensions:k,adDimensions:m};!0===h&&d.push(g.OUT_OF_VIEW_REASONS.FOCUS);return{winDimensions:k,adDimensions:m,containerDimensions:c.getContainerDims(),method:c.getDetectionMethod(),viewState:d.length?g.OUT_OF_VIEW:c.getViewState(),percentInView:c.getPercentInView(), reason:d.join("."),obstructed:f.stringifyTriState(c.isObstructed()),isHidden:f.stringifyTriState(c.isHidden()),tabHidden:f.stringifyTriState(h),posViewState:c.getViewState(),adCompCount:c.getComponentCount()}}}},Lb=function(a){a=a||f.identity;var d=[],b=n.now(),c=function(){var a=n.now();d.length&&(d[d.length-1].duration+=a-b,b=a)};return{clear:function(){c();d=[]},fastForward:c,get:function(){return d},hasAlwaysBeen:function(a){return 1===d.length&&d[0].state===a},addState:function(b){var h=d[d.length- 1];b=a(b);c();0!==d.length&&b===h.state||d.push({state:b,duration:0})}}},pa=function(a,d){var b=a||1,c=0,e=0,h,f=0;return{start:function(){0===c%b&&(h=n.now())},stop:function(){var a=h||d;0===c%b&&(f+=n.now()-a,e++);c++},getTime:function(){return f},getCount:function(){return e}}},ba=function(){var a,d=0,b=0,c=new H(!0),e=function(){a&&(d++,c.trigger(d),b>d?n.execAtEndOfThread(e):h())},h=function(){a=!1;d=0};return{onTick:function(a,d){var e=f.collapseArgsIntoHash(a,d);f(e).each(function(a,c){a=parseInt(a); b=a>b?a:b});c.on(e)},start:function(){a||(a=!0,n.execAtEndOfThread(e))},kill:h,isActive:function(){return a}}},ia=function(a){var d=0,b=w.getTagTime(),c=0,e,h;return{getTotalTime:function(){return c},stop:function(){d=0;b=w.getTagTime()},mark:function(){e=w.getTagTime()-b;d+=e;d>a&&(h=d-e\x3c/script>'],iframe:[''],img:['']}[a];d=c[0]+b+c[1];"true"===q.forceAppend?"script"!==a?(c=y.createElement("DIV"),c.innerHTML=d,e.appendChild(c.childNodes[0])):(c=y.createElement("SCRIPT"),c.src=b,e.appendChild(c)):y.write(d)},c=function(a,b,c){var d= !c&&z.getXHR2();d?(d.open("POST",a),d.onreadystatechange=function(){4===d.readyState&&200===d.status&&b&&b()},d.send()):(c=A.createImage(),b&&(c.onload=b),c.src=a)},e=function(a,b){var c=y.createElement("script");c.type="text/javascript";c.src=a;b&&(c.onload=b);f.isDef(q.contextNode.parentNode)&&q.contextNode.parentNode.appendChild(c)},h=function(a){f.isFunction(a)?a({iasImpId:q.asid}):a&&"string"===typeof a&&c(a,void 0,!0)},k=function(a,b,c,h){e(d.wrap(a,b,c,h))};l.on({addNode:b,send:c,exec:e,notify:h, jsonp:k});return{addNode:b,send:c,exec:e,notify:h,jsonp:k}},g={MRC_LARGE_AD_SIZE:242500,FLASH_MIME:"application/x-shockwave-flash",IN_VIEW:"inView",OUT_OF_VIEW:"outOfView",PARTIAL_VIEW_PLUS:"partialViewPlus",PARTIAL_VIEW_MINUS:"partialViewMinus",NA:"na",PIV_NA:-1,DT_CODES:{ADTALK:"a",DIAGNOSTIC:"b",PERFORMANCE:"e",THIRD_PARTY:"i",LARGE_BILLABLE:"l",VIDEO_EVENTS:"m",PING:"p",FULLY_INVIEW:"pf",QUARTILE_FULLY_INVIEW:"qf",AVIREEN:"r",SCA:"s",POS_INVIEW:"t",UNLOAD:"u",VIEWABILITY_READY:"v",VH:"vh",EXTERNAL:"x"}, DETECTION_METHODS:{AD_PLACEHOLDER:"s",AD_HUNT:"a",IFRAME:"i",VIDEO:"v",MRAID:"m",AVID:"av",MUTATION:"c",SPECIFIED_AD:"sp"},OUT_OF_VIEW_REASONS:{GEOM:"l",OBSTRUCTION:"o",FOCUS:"f",COLLAPSED:"c",HIDDEN:"h",VIDEO:"v"},VIDEO_CHANNELS:{VANS:{AS3_ADAPTOR:"av3",JS_ADAPTOR:"jv3"},WRAPPERS:{JS:"jvw"}},PERF_TIMELINE_TRACKER_CONFIG:{VANS:{TYPE:"vans",COUNT:4},WRAPPERS:{JS:{TYPE:"jswrapper",COUNT:15},AS:{TYPE:"aswrapper"}}},ERROR_CODES:{GET_AD_DIMENSIONS:"a",AD_SLOT_ID:"A",BAPI_CALLBACK:"b",BROWSER_NOT_HTML5_COMPATIBLE:"B", ADTALK_GENERAL:"c",COCOA_GONE:"C",GET_SCREEN_LOC_GET_DIMENSIONS:"d",ADTALK_DUBIOUS:"D",NO_CONTAINER:"e",VIDEO_IN_IFRAME_DIMS_CALC:"F",GREEN:"g",INIT_ADS_MANAGER:"G",PHONE_HOME:"h",UID_GENERATION:"i",IMPRESSION_URLS:"I",NOT_VPAID_EVENT_OBJECT:"j",JSINFO:"J",KILL_IT:"k",LOCATION_DETAILS:"l",IMPRESSION_LEADUP:"L",MESSAGE_LISTENER:"m",MOBILE_APP:"M",AT_INIT:"N",OFF_DESKTOP:"O",ANCESTOR_ORIGINS:"o",GET_SCREEN_LOC_PIV_CALC:"p",PLUGIN_PARSING:"P",NO_ORIGINAL_VAST:"q",AVIREEN:"r",AD_ERROR:"R",GET_ELEM_STYLE:"s", AT_SEND:"S",ADS_MANAGER_START_AD:"t",NO_VIDEO_AD_INTERFACE:"u",UNRECOGNIZED_EVENT_TYPE:"U",ENVIRONMENT:"v",CHECK_SCREEN_LOC:"V",GET_WIN_DIMENSIONS:"w",AC_WATCHER:"W",EXCHANGE_PARSING:"x",FLASH_API_ACCESS:"z"},IAS_DETECTOR:"iasdetector",BROWSERS:{WEBKIT:"w",OPERA:"o",GECKO:"g",CHROME:"c",IE:"i",MSEDGE:"e"},MEDIA_TYPE_CODE:"mtp",MEDIA_TYPE:{DISPLAY:"display",DISPLAY_CODE:"d",VIDEO:"video",VIDEO_CODE:"v"},MEASUREMENT_STRATEGY:{DISPLAY:"display",VIDEO:"video"},IMPRESSION_EVENT:"impression"},w=function(){var a= s!=top,d=function(){var a;try{a=!!top.document}catch(b){a=!1}return a}(),b=function(){return f.isDef(n.getWindow().avid)};return{embedded:a,friendly:d,friendlyIframe:a&&d,xDomainIframe:a&&!d,getTagTime:function(){return n.now()-q.birthdate},getPageTime:function(){return f.isDef(s.chrome)&&f.isDef(s.chrome.csi)&&f.isFunction(s.chrome.csi)?n.round(chrome.csi().pageT):g.NA},isVideo:function(){var a;if(!(a=-1!==q.mode.indexOf("jsvid"))){var d;a=!1;if(b())try{d=n.getWindow().avid.getAvidAdSessionContext(), a=d.mediaType===g.MEDIA_TYPE.VIDEO}catch(h){}}return a},isMobileApp:function(){return f.isDef(s.mraid)},isSpecifiedAd:function(){var a=q._cl_adpath;return a&&f.isStr(a)},isAvid:b}}(),z={addEvent:function(a,d,b,c){f.isDef(a.addEventListener)?"mouseenter"===d?a.addEventListener("mouseover",z.mouseEnter(b),c):"mouseleave"===d?a.addEventListener("mouseout",z.mouseEnter(b),c):a.addEventListener(d,b,c):f.isDef(a.attachEvent)&&("DOMContentLoaded"===d&&(d="load"),a.attachEvent("on"+d,b))},removeEvent:function(a, d,b){f.isDef(a.removeEventListener)?("mouseenter"===d?(d="mouseover",b=z.mouseEnter):"mouseleave"===d&&(d="mouseout",b=z.mouseEnter),a.removeEventListener(d,b)):f.isDef(a.detachEvent)&&a.detachEvent("on"+d,b)},mouseEnter:function(a){var d=this;return function(b){var c=b.relatedTarget;this===c||d.isAChildOf(this,c)||a.call(this,b)}},isAChildOf:function(a,d){if(a===d)return!1;for(;d&&d!==a;)d=d.parentNode;return d===a},getStyle:function(a,d,b){var c="";b=b||"";y.defaultView&&y.defaultView.getComputedStyle? c=y.defaultView.getComputedStyle(a,b).getPropertyValue(d):a.currentStyle&&(d=d.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()}),c=a.currentStyle[d]);return c},getXHR2:function(a,d){var b,c;f.isDef(s.XMLHttpRequest)?(c=new XMLHttpRequest,"withCredentials"in c&&(b=c)):f.isDef(XDomainRequest)&&(b=new XDomainRequest);return b},whenReady:function(a,d){var b=d||(w.xDomainIframe?y:n.getTop().document);"complete"==b.readyState||"loaded"==b.readyState||"interactive"==b.readyState?n.execAtEndOfThread(a): this.addEvent(b,"DOMContentLoaded",a,!1)}},hb=function(a,d,b,c,e,h,k,m){var p=0,r=0,x=!1,t,v={},u=[g.DT_CODES.ADTALK],B=function(a,d,h,m,u,B){h=h||!b.on("postDts");var t=a===g.DT_CODES.VH||a===g.DT_CODES.DIAGNOSTIC||a===g.DT_CODES.ADTALK;if(c.impressionIsIdentifiable()&&(t||"n"!==k.getCurrentLoc()))try{var D=q.dtBaseURL,s=new K(D,!0),w=n.now(),y=v[a];l.trigger("preSendDt",a);D||(s.path("dt"),b.on("usedtdomain")&&s.sub("dt"));P(s,a,d);u&&u.field&&s.setParam(u.field,u.value);m||G(s,a);l.trigger("send", s,function(){r+=1;p=n.now()-w;f.isFunction(B)&&B()},h);a===g.DT_CODES.UNLOAD&&(x=!0);v[a]=f.isDef(y)?y+1:1;e.cleanup()}catch(z){__IntegralASDiagnosticCall("dt-"+a,z),l.trigger("error",g.ERROR_CODES.PHONE_HOME)}};a=function(a,c){var d={bapi:"a",bapiClient:"b",jload:"c",jss:"d",jsi:"e"},e=q.mode,d=d[a]||d[e];b.on(c||e+"Diag")&&d&&B(g.DT_CODES.DIAGNOSTIC,-5,!0,!0,{field:"bkp",value:d})};var D=function(a){var b;a===g.DT_CODES.UNLOAD?b=-1:a===g.DT_CODES.ADTALK?b=-2:a===g.DT_CODES.VIEWABILITY_READY?b=-3: a===g.DT_CODES.VIDEO_EVENTS?b=-4:a===g.DT_CODES.DIAGNOSTIC?b=-5:a===g.DT_CODES.THIRD_PARTY?b=-6:a===g.DT_CODES.QUARTILE_FULLY_INVIEW?b=-7:a===g.DT_CODES.LARGE_BILLABLE?b=-8:a===g.DT_CODES.AVIREEN&&(b=-9);var c=v[a];f.isDef(c)&&-1!==u.indexOf(a)&&0!==c&&(b=b+"."+c);return b},P=function(a,b,d){d=f.isDef(d)?d:D(b);a.setParam("asId",q.asid);d={c:c.getCacheBustId(),pingTime:d,time:w.getTagTime(),type:b};e.filterOutput(function(a){var c=a.minDt&&(!a.type||a.type===b);c&&a.oneTime&&(a.flagForRemoval=!0); return c},d);a.setParam("tv",d)},G=function(a,c){var f,u={};e.filterOutput(function(a){return a.standalone&&!a.minDt&&a.type===c},function(b,c){a.setParam(b,c.replace("%3A",":"))});k.fastForward();c===g.DT_CODES.VIDEO_EVENTS&&(f=l.request("videoEventsString"))&&(u.ve=f,u.clog=m);c===g.DT_CODES.UNLOAD&&(u.ndt=r);-1!==q.mode.indexOf("jsvid")&&(u.vv=l.request("videoVersion"));u.NULL1=b.output();u.NULL2=k.stringify(10);u.em=w.embedded;u.fr=w.friendly;u.uf=t.useFlash()?1:0;u.e=d.toString();u.tt=q.mode; u.dtt=p;e.filterOutput(function(a){var b=!a.standalone&&!a.minDt&&(!a.type||a.type===c);b&&a.oneTime&&(a.flagForRemoval=!0);return b},u);a.setParam("tv",u);a.setParam("br",h.getBrowserType())};l.on({sendDt:B,sendMinDt:function(a,b){B(a,b,void 0,!0)},sendDiag:a});return{send:B,sendCookie:function(){var a;b.on("cookie")&&"true"===q.sendCookie&&q.protocol&&q.cookieDomain&&q.asid&&(a=q.protocol+"://"+q.cookieDomain+"?asid="+q.asid,l.trigger("send",a,f.noop,!0),r++)},unload:function(){x||B(g.DT_CODES.UNLOAD, -1,!0)},diagnostic:a,setViewabilityMod:function(a){t=a}}},E=function(a){var d={},b=!1,c=function(){var a={};f(d).each(function(b,c){a[b]=n.round(c)});return a},e=function(){return n.round(d.width)*n.round(d.height)};(function(){var b;a!==s.parent&&(1!==a.nodeType?d=a:f.isDef(a.getBoundingClientRect)&&(b=A.getRect(a),f(d).mixin({x:f.useIfDef(b.x)||b.scrX,y:f.useIfDef(b.y)||b.scrY,scrX:b.scrX,scrY:b.scrY,width:b.width,height:b.height})))})();return{hasValidDims:function(){var a,b=f(d).find(function(b, c){a=!0;return isNaN(c)});return f.isDef(a)&&f.isUndef(b)},toString:function(){var a=c();return[a.scrX,a.scrY,a.width,a.height].join(".")},getRounded:c,set:function(a,b){d[a]=b},isHidden:function(){var c=1===a.nodeType?A.nodeIsHidden(a):0===a.width||0===a.height;return b?!1:c},treatAsPlaceholder:function(){b=!0},area:e,isMrcLarge:function(){return e()>=g.MRC_LARGE_AD_SIZE}}},Ya=function(){return{calcDims:function(a,d){var b=new E(a),c=A.getClippedDimensions(a,d),e=b.getRounded();b.set("height",c.height< e.height?c.height:e.height||1);b.set("width",c.widthg){t=void 0;if(t=r.parentNode===a)if(t=void 0,t="DIV"===r.nodeName)if(t=void 0,t=""===r.style.backgroundImage){var v= t=void 0,u=r.childNodes;for(t=0;t100*n.random());return a[b]},b={fc:"forcecocoa", rt:"rattie",cb:"cachebust",np:"nextcocoa",th:"tabHiddenDtCall",es:"everySecond",sa:"swapids"},c={gm:"use100v",fif:"useFIF"},e=function(){var d,e;d=f(b).mapToObj(function(b,c){var d={};d[b]=a[c]?1:0;return d});e=f(c).mapToObj(function(a,b){var c={};c[a]=h(b)?1:0;return c});return f(d).mixin(e)},h=function(a){a=q[a];return!0===a||"true"===a||f.isFunction(a)};f(b).each(function(a,b){d(b)});return{on:d,bootstrapOn:h,output:function(){return f(e()).toParams()}}},ab=function(a){var d=g.BROWSERS,b=l.request("intersectionWatcher"); return{calcInitialViewState:function(c,e,f){var k={IN_VIEW:65,OUT_OF_VIEW:25,PARTIAL_VIEW:30},m={IN_VIEW:75,OUT_OF_VIEW:25,PARTIAL_VIEW:50},p=g.NA,r=!w.xDomainIframe||b.isStarted()||a.browserIs(d.GECKO)||a.browserIs(d.IE);f=f?k:m;if(r||e)p=c===g.PIV_NA?g.NA:c>=f.IN_VIEW?g.IN_VIEW:c<=f.OUT_OF_VIEW?g.OUT_OF_VIEW:c>=f.PARTIAL_VIEW?g.PARTIAL_VIEW_PLUS:g.PARTIAL_VIEW_MINUS;return p},calcPercentInView:function(a,d,h,k){var g=0,p=a;b.isStarted()?g=b.getPiv():a.hasValidDims()&&!a.isHidden()&&(f([d,h,k]).each(function(a, b){if(b.hasValidDims()){var c=p.getRounded(),d=b.getRounded(),e=Math.max(c.scrX,d.scrX),f=Math.max(c.scrY,d.scrY),h=Math.min(c.scrX+c.width,d.scrX+d.width),c=Math.min(c.scrY+c.height,d.scrY+d.height),h=h-e,c=c-f;p=E({scrX:e,scrY:f,width:0b.length;)d?(c=new Uint32Array(1),s.crypto.getRandomValues(c),b+=c[0].toString(16)):b+=(16*n.random()|0).toString(16);b=b.slice(0,32)}catch(f){a.add(g.ERROR_CODES.UID_GENERATION)}return b}())}},$a=function(a){var d,b,c,e=l.request("features"), h=function(){var d,h,k,p,u=n.getMaxNumber();d=n.getMaxNumber();h=n.getWindow();n.getDoc();w.friendly?(d=m(),k=d.left,p=d.top,u=d.width,d=d.height,h=A.windowPosition(),k=h.scrX+k,p=h.scrY+p):e.on("rattie")&&a.browserIs(g.BROWSERS.IE)?(c=c||l.request("ieXDomainViewability"),b=c.determineFramePosition(),k=b.scrX,p=b.scrY):f.isDef(h.mozInnerScreenX)&&(k=n.round(h.mozInnerScreenX),p=n.round(h.mozInnerScreenY));return{scrX:k,scrY:p,iFrameClippingWidth:u,iFrameClippingHeight:d}},k=function(){var a,b,c=d|| A.getIeDimObj(),e=n.getWindow();f.isDef(e.innerWidth)?(a=e.innerWidth,b=e.innerHeight):c&&f.isDef(c.clientWidth)?(a=c.clientWidth,b=c.clientHeight,0===a&&0a||""===a?b:a},r=function(a,c){var d,e,h=[],k=function(a){return-1!==a.key.indexOf("q")||-1!==a.key.indexOf("g")};d=f(a).map(function(a,b){if(k(b))return b});e=f(a).map(function(a,b){if(!k(b))return b});f(d.concat(e)).each(function(a,d){var e;e=d.val; var f=d.key,k;k=24+h.join("&").length+f.length+14;k=c-k;b.on("forceid")&&k")),d;if(d=f.isDef(c))if(d= !1,f.isDef(s.navigator)&&f.isDef(s.navigator.userAgent)){var e=s.navigator.userAgent.match(/Firefox\/([\.0-9]+)/);null!==e&&2==e.length&&(e=e[1].split("."),3==parseInt(e[0],10)&&6>=parseInt(e[1],10)&&(3==e.length?13>=parseInt(e[2],10)&&(d=!0):d=!0))}d&&(a.g=c)}return a},c={};try{c.a=encodeURIComponent(top.location.href)}catch(e){}try{c.b=encodeURIComponent(parent.location.href)}catch(h){}if(w.embedded){try{c.c=encodeURIComponent(parent.document.referrer)}catch(k){}try{c.e=encodeURIComponent(s.document.referrer)}catch(g){}}try{"jsi"!== q.mode&&(c.d=encodeURIComponent(s.location.href))}catch(p){}try{c.f=encodeURIComponent(q.jsref)}catch(r){}try{var l=b();c.g=encodeURIComponent(l.g);c.q=encodeURIComponent(l.q)}catch(n){}var c=a(c),c=d(c),b=[],v;for(v in c)c.hasOwnProperty(v)&&b.push({key:v,val:c[v]});b.sort(function(a,b){return a.val.length>b.val.length?1:a.val.length=a?90:122)>=(a=a.charCodeAt(0)+13)?a:a-26)})},hashCode:function(a){var d=0,b,c,e;if(0===a.length)return d;b=0;for(e=a.length;bu.unifiedId&&(y.unifiedId= u.unifiedId);var z;z=n.now()-c.sentTime;c.transferDuration=z;B=m.getFrame(u.id);s=h(B,c);f.isUndef(B)||f.isUndef(B.selfDescription)||(q.srcIsEmbedded||w.embedded)&&s?(B=B||m.addFrame(b.source,u.id.split("-"),c),B.addInformationFromSrc(c,u),e()):B.addInformationFromSrc(c,u);b=B;var A=a.request("idMapModule");d&&s&&A.isCandidateForMyIdMap(b)&&k()}catch(E){l.trigger("error",g.ERROR_CODES.ADTALK_DUBIOUS)}};return{sendAdTalkCall:k,sendToKnownFrames:function(){(new aa).send(e)},startListening:function(){(new $).listen(c, m,e)},validateMessage:c,processMessage:m,createMessage:e}},Sb=function(a){a=a||q;var d;a.reqquery?d=a.reqquery.split(/(?:anId=|anid=|ANID=)([^&]*)/)[1]:(d=a.adsafeSrc.split("/"),d=d[5]+"-"+d[6]);return{tagId:d,adSafeId:a.asid}},Nb=function(){var a,d=[],b=function(a){a=new Sb(a);d.push(a);return a};a=b();return{createNew:b,getAll:function(){return d},myIdCard:a}},Za=function(a){var d,b,c=!1,e=n.getDoc().documentElement,f=function(a){var e=!0;c&&(c=!1,a.stopPropagation(),a.preventDefault(),d=a.screenX- a.clientX,b=a.screenY-a.clientY,e=!1);return e};a.browserIs(g.BROWSERS.IE)&&z.addEvent(e,"click",f,!0);return{determineFramePosition:function(){a.browserIs(g.BROWSERS.IE)&&(c=!0,e.click());return{scrX:d,scrY:b}}}},Xa=function(a){var d=g.NA,b=!1,c=function(a){if(!f.isUndef(a)){var b=(new E(a)).getRounded(),c;0===b.width*b.height&&(c=y.createElement("div"),f(c.style).mixin({position:"absolute",width:"100%",opacity:"0",height:"100%",zIndex:-999,top:"0px",left:"0px"}),c[g.IAS_DETECTOR]=!0,a.appendChild(c)); return c||a}};return{getPiv:function(){return d},isApplicable:function(a,b,c){return a.browserIs(g.BROWSERS.CHROME)&&a.hasIntersectionObserver()&&c.xDomainIframe&&b.on("chromeNativeIO")},start:function(){var e=n.getIntersectionObserver(function(a){a=a.pop();d=a.intersectionRect.width*a.intersectionRect.height/(a.boundingClientRect.width*a.boundingClientRect.height)*100},{threshold:[0,0.01,0.25,0.3,0.5,0.75,0.99,1]});n.execAtEndOfThread(function(){d=0});e.observe(c(a));n.execAtEndOfThread(function(){l.trigger("delayedViewabilityReady")}); b=!0},isStarted:function(){return b}}},Tb=function(){return{start:function(a){l.on("measurable",function(){a()})},isApplicable:function(a,d){return!d.browserIs(g.BROWSERS.WEBKIT)}}},Ub=function(){return{start:function(a){a()},isApplicable:function(a){return a.isImmediatelyMeasurable()}}},qb=function(a,d,b){var c=!1,e=function(){d.impressionIsIdentifiable()&&!c&&(c=!0,l.trigger("notify",q._onMeasurable))};return{start:function(){var c;c=[Vb(),Wb(),Ub(),Tb()];(c=f(c).findFirst(function(c,d){return d.isApplicable(b, a)}))&&c.start(e)},isApplicable:function(a){return a.bootstrapOn("useViewabilityNotification")&&f.isDef(q._onMeasurable)}}},Wb=function(){return{start:function(a){Kb(l,["adImpression","measurable"]).onAll(function(){a()})},isApplicable:function(a,d){return!d.browserIs(g.BROWSERS.WEBKIT)&&w.isVideo()}}},Vb=function(){return{start:function(a){l.on("adImpression",function(){a()})},isApplicable:function(a){return a.isImmediatelyMeasurable()&&w.isVideo()}}},Ca=function(a,d,b){var c=["rjss","jss","jload"], e=function(){var a=!1,b=d.getAvidContext();f.isDef(b)&&(a=b.isDeferred);return!a};return{accepts:function(){var a=f.isDef(f(c).find(function(a,c){return c===b}));return d.accepts()&&d.isMediaType(g.MEDIA_TYPE.DISPLAY)&&a},isImmediate:e,isMediaType:d.isMediaType,start:function(){try{var b=a.avid;e()||b.addEventListener("ready",function(){l.trigger("adImpression")})}catch(c){}}}},Ba=function(a){var d=function(){var b;try{b=a.avid.getAvidAdSessionContext()}catch(c){}return b};return{accepts:function(){return f.isDef(a.avid)}, isMediaType:function(a){var c,e=d();f.isDef(e)&&(c=e.mediaType||g.MEDIA_TYPE.DISPLAY);return a===c},getAvidContext:d}},Aa=function(a,d){var b,c=function(a){var c,f,g;try{c=a.eventData.percentageInView,f=b&&95<=c,g={windowDimensions:{x:0,y:0,width:0,height:0},adDimensions:{x:0,y:0,width:0,height:0},containerDimensions:{x:0,y:0,width:0,height:0},shouldDelegateToDomBasedViewability:f,isMeasurable:0===c||95<=c,isObstructed:!1,isHidden:!1,numberOfAdverts:1,percentageInView:c,detectionMethod:"av"},d.trigger("screenLocationChanged", g)}catch(p){}};return{start:function(){try{var d=a.avid,f=d.getAvidAdSessionContext().avidAdSessionType;b="display"===f||"video"===f;d.addEventListener("viewability",c)}catch(g){}},addScreenLocationChangedListener:function(a){d.on("screenLocationChanged",a)}}},Fa=function(a,d,b){var c=["jload"];return{accepts:function(){var a=f.isDef(f(c).find(function(a,c){return c===b}));return d.accepts()&&d.isMediaType(g.MEDIA_TYPE.VIDEO)&&a},isImmediate:function(){return!1},isMediaType:d.isMediaType,start:function(){try{a.avid.addEventListener("video", function(a){"AdImpression"===a.eventSubType&&l.trigger("adImpression")})}catch(b){}}}},Ea=function(a,d){var b=function(a){try{d.trigger("videoPlaybackEvent",{eventType:a.eventSubType,eventData:a.eventData})}catch(b){}};return{start:function(){try{a.avid.addEventListener("video",b)}catch(c){}},addVideoPlaybackEventListener:function(a){d.on("videoPlaybackEvent",a)}}},Da=function(a,d){var b=function(a){var b=a.percentageInView;a.viewState=50<=b?g.IN_VIEW:g.OUT_OF_VIEW;a.outOfViewReason=50<=b?"":g.OUT_OF_VIEW_REASONS.GEOM; d.trigger("measurementChanged",a)};return{start:function(){l.trigger("addOutputItem",{output:g.MEDIA_TYPE.DISPLAY_CODE},g.MEDIA_TYPE_CODE,{type:g.IMPRESSION_EVENT});a.addScreenLocationChangedListener(b);a.start()},getStrategyName:function(){return g.MEASUREMENT_STRATEGY.DISPLAY},addMeasurementChangedListener:function(a){d.on("measurementChanged",a)}}},Ja=function(a,d,b){var c=f.isDef(d)?d.environment:void 0,e=f.isDef(d)?d.measurementStrategy:void 0,h=function(){return f.isDef(e)};a&&f.isDef(b)&&b.start(); return{isEnabled:function(){return a},hasMeasurementStrategy:h,getScreenLocationInfo:function(a){return b.create(a)},isImmediate:function(){return a&&h()?c.isImmediate():!0},isMediaType:function(b){return a&&h()?c.isMediaType(b):!1},start:function(){a&&h()&&c.start()}}},Ha=function(a){return{resolve:function(){var d=f(a).findFirst(function(a,c){return c.environment.accepts()});if(f.isDef(d))return d}}},Ia=function(a){var d,b=!1,c=!0,e,h={winDimensions:E({scrX:0,scrY:0,width:0,height:0}),adDimensions:E({scrX:0, scrY:0,width:0,height:0}),containerDimensions:E({scrX:0,scrY:0,width:0,height:0}),method:g.NA,viewState:g.NA,percentInView:g.NA,reason:"",obstructed:g.NA,isHidden:g.NA,tabHidden:g.NA,posViewState:g.NA,adCompCount:1},k=function(a){return new E({scrX:a.x,scrY:a.y,width:a.width,height:a.height})},m=function(a){e={winDimensions:k(a.windowDimensions),adDimensions:k(a.adDimensions),containerDimensions:k(a.containerDimensions),method:a.detectionMethod||g.NA,viewState:a.viewState||g.NA,percentInView:f.isDef(a.percentageInView)? a.percentageInView:g.NA,reason:a.outOfViewReason||"",obstructed:g.NA,isHidden:g.NA,tabHidden:g.NA,posViewState:a.viewState||g.NA,adCompCount:a.numberOfAdverts||1,shouldDelegateToDomBasedViewability:a.shouldDelegateToDomBasedViewability};a.isMeasurable&&(d=!0,b&&(b=!1,l.trigger("delayedViewabilityReady")))};return{create:function(a){var g=h;c&&!d&&(b=!0,c=!1);if(f.isDef(e))if(e.shouldDelegateToDomBasedViewability)g=a,g.method=e.method;else if(0===e.percentInView||95<=e.percentInView)g=e;return g}, start:function(){var b;f.isDef(a)&&f.isDef(a.measurementStrategy)&&(b=a.measurementStrategy,b.addMeasurementChangedListener(m),b.start())}}},Ga=function(a,d,b){var c=!1,e=!1,h,k,m,p,r=function(){if(!f.isUndef(k)){var a=[],d,l;c?(e?(l=!1,d=100):(l=p,d=m),50>d&&a.push(g.OUT_OF_VIEW_REASONS.GEOM)):(l=!1,d=0,a.push(g.OUT_OF_VIEW_REASONS.VIDEO));k.shouldDelegateToDomBasedViewability=l;k.percentageInView=d;k.viewState=50>d?g.OUT_OF_VIEW:g.IN_VIEW;k.outOfViewReason=a.join(".");h=k;b.trigger("measurementChanged", h)}},n=function(a){k=a;m=a.percentageInView;p=a.shouldDelegateToDomBasedViewability;r()},q=function(a){a=a.eventType;"AdEnteredFullscreen"===a?e=!0:"AdExitedFullscreen"===a?e=!1:-1!=="AdStarted|AdVideoStart|AdPlaying".indexOf(a)?c=!0:-1!=="AdSkipped|AdUserClose|AdPaused|AdVideoComplete|AdStopped".indexOf(a)&&(c=!1);r()};return{start:function(){l.trigger("addOutputItem",{output:g.MEDIA_TYPE.VIDEO_CODE},g.MEDIA_TYPE_CODE,{type:g.IMPRESSION_EVENT});a.addScreenLocationChangedListener(n);a.start();d.addVideoPlaybackEventListener(q); d.start()},getStrategyName:function(){return g.MEASUREMENT_STRATEGY.VIDEO},addMeasurementChangedListener:function(a){b.on("measurementChanged",a)}}},mb=function(a,d,b,c,e,h,k,l,p,r,x,t,v,u,B){var D,A,G,C,F,J=0,K=0,L=!1,M=w.isVideo(),H=k.request("mobileApp"),W=M?200:100;c=q.mobOrTab;var U=!c&&e.on("recordalternate")&&!e.bootstrapOn("killFlash"),V=d.hasFlashEnabled(),Q=e.on("forcecocoa")&&V,Z=e.on("nextcocoa");d.getDocumentMode();var I=k.request("intersectionWatcher"),I=d.browserIs(g.BROWSERS.GECKO)|| d.browserIs(g.BROWSERS.IE)&&e.on("rattie")||I.isApplicable(d,e,w),R=w.friendlyIframe&&Q||w.xDomainIframe&&I&&Q||w.xDomainIframe&&!I,S=!c&&R&&e.on("cocoapuffs")&&V&&!e.bootstrapOn("killFlash"),T=!1,N=new pa(10),ga=Z?na:oa,O=[M&&e.on("videotwoseconds")?2E3:1E3,5E3,15E3];e.on("everySecond")&&(O=[1E3,2E3,3E3,4E3,5E3,6E3,7E3,8E3,9E3,1E4,11E3,12E3,13E3,14E3,15E3]);var $=f(O).map(function(a,b){return b/1E3}).join("-"),da=new ia(1E3),X=new ha(x.getPingJobs(O));if(e.on("hundredpct")&&q.use100v)var ea=new ia(1E3), aa=new ha(x.getFullyInViewPingJobs(O));if(e.on("tabHiddenDtCall"))var fa=new ia(1E3),ba=new ha(x.getPosInViewPingJobs([O[0]]));var ja=function(){ca();e.on("viewabilityready")&&!L&&(b.send(g.DT_CODES.VIEWABILITY_READY),k.trigger("measurable"),L=!0)};k.on("delayedViewabilityReady",ja);var ca=function(c){try{N.start();var p,l,m,s,x,y;if(a.isEnabled()&&a.hasMeasurementStrategy())m=a.getScreenLocationInfo(v.collect());else{m=v.collect();U&&(m.gState=m.viewState);if(H.isMobileAppEnvironment())m.viewState= H.getViewabilityResult(),m.method=H.getDetectionMethod(),m.percentInView=H.getPercentageInView();else if(S){D=D||new Y(ga,m.adDimensions,ja,e,t,d)||{};s=D.checkViewable();e.on("hundredpct")&&q.use100v&&(C=C||new Gb(Fb,m.adDimensions,ja,d,e,h,r,t)||{},x=C.checkViewable(),m.fullPercentInView=x.pct,m.useCocoa=S);if(1!==m.tabHidden||s.str===g.NA)m.viewState=s.str;m.percentInView=s.pct;e.on("unreliabilityDetection")&&V&&(G=G||new Y(ga,E({height:0,width:-2E4}),f.noop,e,t,d)||{},y=G.checkViewable(),y.str!== g.OUT_OF_VIEW&&(K+=1),J+=1,r.addItem({output:K+"/"+J},"fu"))}else R&&(m.viewState=g.NA,m.percentInView=g.PIV_NA);U&&(A||c||!V||(A=S?D:new Y(ga,m.adDimensions,f.noop,e,t,d,h)),m.fState=c||!V?g.NA:A.checkViewable().str);if(M&&!w.isAvid()&&(l=B.getViewStateOverride())){if(l===g.OUT_OF_VIEW){var z=m.reason?m.reason.split("."):[];z[z.length]=g.OUT_OF_VIEW_REASONS.VIDEO;m.reason=z.join(".")}m.viewState=l}}p=u.registerLocation(m);e.on("hundredpct")&&q.use100v&&(p.isFullyInView()?(ea.mark(),aa.doEligibleJobs(ea.getTotalTime()), T||c||(b.send(g.DT_CODES.FULLY_INVIEW,0),k.trigger("notify",q._onInViewFull),T=!0)):ea.stop());p.isInView()?(da.mark(),X.doEligibleJobs(da.getTotalTime())):da.stop();var F=X.getNextJob();F&&F.time===O[0]&&e.on("tabHiddenDtCall")&&(m.posViewState===g.IN_VIEW||m.posViewState===g.PARTIAL_VIEW_PLUS?(fa.mark(),ba.doEligibleJobs(fa.getTotalTime())):fa.stop());N.stop();var I=n.round(N.getTime()/N.getCount());r.addItem({output:I},"lt",{type:g.DT_CODES.UNLOAD});return p}catch(L){k.trigger("error",g.ERROR_CODES.CHECK_SCREEN_LOC)}}, ka,la=function(a){var c;F=!0;var d=!1,e=function(){d||(d=!0,b.send(g.DT_CODES.VIDEO_EVENTS,void 0,void 0,void 0,void 0,function(){s.postMessage(JSON.stringify({id:q.videoId,msg:"unloadComplete",messageType:"misc"}),"*")}))};a=function(){e();if(!ka){var a=[D,C,A,G];c&&clearInterval(c);f(a).each(function(a,b){b&&"function"===typeof b.removePixels&&b.removePixels()});ka=!0}};l.impressionIsIdentifiable()&&(ca(),c=setInterval(ca,W),ka=!1,k.on("adStopped",a),k.on("adVideoComplete",a),k.on("skipAd",a),z.addEvent(s, "beforeunload",b.unload,!1),M&&!w.isAvid()&&z.addEvent(s,"beforeunload",e,!1))};return{checkScreenLoc:ca,init:function(){"true"===q.allowViewability&&f.isFunction(y.addEventListener)?(F=!1,"complete"==y.readyState||"loaded"==y.readyState||"interactive"==y.readyState?n.execAtEndOfThread(la):y.addEventListener("DOMContentLoaded",la,!1)):p.waitForBody(la)},needsFlash:function(){return R},readyFired:function(){return F},useFlash:function(){return S},stringifyPingTimes:function(){return $},isImmediatelyMeasurable:function(){return H.isMobileAppEnvironment()? H.isMeasurable():!S}}},Xb=function(a,d,b,c,e,h,k){var m,p;h=h||c.parentNode||c.parent;var r=function(){if(!m)if(m=w.embedded?a.calcDims():d.calcDims(c,h),e===g.DETECTION_METHODS.VIDEO&&w.embedded){var b=m,f=(new E(c)).getRounded();try{b.set("width",f.width),b.set("height",f.height)}catch(k){l.trigger("error",g.ERROR_CODES.VIDEO_IN_IFRAME_DIMS_CALC)}}else e===g.DETECTION_METHODS.AD_PLACEHOLDER&&m.treatAsPlaceholder();return m},n=function(){var c,d,h,m;d=q.mobOrTab;f.isUndef(p)&&(c=!d&&(w.friendly|| f.isDef(s.mozInnerScreenX))&&k.on("offscreen"),h=r(),d=new E(A.calcWinDims()),c=new E(c?A.calcMonDims():{}),m=e===g.DETECTION_METHODS.VIDEO&&w.embedded?a.getClippedDims():new E({}),p=b.calcPercentInView(h,d,c,m));return p},t=function(){return b.calcInitialViewState(n())},v=function(){return c===s?!1:r().isHidden()};(function(){var a=c===s?y.body:c;z.addEvent(a,"click",function(){l.trigger("adComponentClicked")});z.addEvent(a,"mouseover",function(){l.trigger("adComponentMousedOver")})})();return{getAdNode:function(){return c}, isNode:function(a){return c===a},isHidden:v,isObstructed:function(){return!1},getDims:r,getPercentInView:n,getLocationState:t,getOnPageViewability:function(){return v()?g.OUT_OF_VIEW:t()},getDetectionMethod:function(){return e},getContainerDims:function(){return E(h)},refresh:function(){p=m=void 0;var a,b=c.parentNode;if(b){for(;c!==s&&b&&b!==y&&!a;)a=b===h,b=b.parentNode;a||(h=c.parentNode)}}}},Yb=function(a,d,b,c){var e=[],h=function(){return e[0]&&e[0].getDetectionMethod()===g.DETECTION_METHODS.AD_PLACEHOLDER}, k=function(f,k,m){var p=h()||0===e.length;f=Xb(a,d,b,f,k,m,c);p&&k!==g.DETECTION_METHODS.AD_PLACEHOLDER&&l.trigger("primaryadfound",f);h()&&e.shift();e.push(f)},m=function(){var a,b=!1,c=0,d=0;f(e).each(function(e,f){var h;h=f.getDims();h.hasValidDims()&&(a=f.getPercentInView(),b=a!==g.NA,h=h.area(),c+=h,d+=a/100*h)});return{totalArea:c,totalInView:d,hasMeasurement:b}},p=function(){var a=m();return a.hasMeasurement?n.round(a.totalInView/a.totalArea*100):g.PIV_NA},r=function(){var a=m().totalArea>= g.MRC_LARGE_AD_SIZE&&c.on("largeAd")&&!w.isVideo();return b.calcInitialViewState(p(),!1,a)},q=function(a){var b=-1;f(e).each(function(c,d){d.isNode(a)&&(b=c)});return b},s=function(a){return function(){return e[0]&&e[0][a]()}};l.on("adComponentAdded",function(a){f(a).each(function(a,b){-1===q(b)&&k(b,g.DETECTION_METHODS.MUTATION)})});l.on("adComponentRemoved",function(a){f(a).each(function(a,b){var c=q(b);-1=e&&c++;a=d;b++},100),h=function(){d++;e()},k=function(){l.trigger("addOutputItem",{output:{tmm:function(){return d},tma:function(){return b},sma:function(){return c}}}, {type:g.DT_CODES.UNLOAD})};return{start:function(){k();z.addEvent(n.getTop().document,"mousemove",h)},isApplicable:function(a){return a.on("mmsb")&&!a.bootstrapOn("mobOrTab")&&!w.xDomainIframe}}},rb=function(){var a={},d=function(c,d){var f;c[d]=function(c,d,e){e&&(a[e]={x:c,y:d},a.ul&&a.lsr&&(f=ua().getOffDesktopResult(a.ul,a.lsr),b(f)))}},b=function(a){try{l.trigger("addOutputItem",{output:a},"od")}catch(b){l.trigger("error",g.ERROR_CODES.OFF_DESKTOP)}};return{isApplicable:function(a,b){var d=a.on("oddet"), f=b.hasFlashEnabled(),l=b.getBrowserType()===g.BROWSERS.IE,n=b.isOnWin7(),q=b.isIEVersion(8);return!a.bootstrapOn("killFlash")&&d&&f&&l&&n&&!q},start:function(){try{wc().setupPixels(d),setTimeout(function(){a.ul&&a.lsr||b(ua().getOffDesktopResult())},1E4)}catch(c){l.trigger("error",g.ERROR_CODES.OFF_DESKTOP)}}}},ua=function(){var a=function(a){var b=g.NA;return a?{x:a.x-250,y:a.y-188}:{x:b,y:b}};return{getOffDesktopResult:function(d,b){d=a(d);b=a(b);return f({mc:[d.x,d.y,b.x,b.y].join("|")}).toION()}}}, wc=function(){var a="_postPosition_"+q.asid.replace(/-/g,""),d=function(b){var c=W("/PixelB.swf","cdn","name="+b+"&jsPostFn="+a,!0);b=xc[b];c.style.width=b.WIDTH+"px";c.style.height=b.HEIGHT+"px";c.style.position="fixed";c.style.top=b.TOP+"px";c.style.left=b.LEFT+"px";return c};return{setupPixels:function(b){var c=n.getDoc(),c=c.body||c.contentElement,e;e=n.getDoc().createElement("div");e.innerHTML=''; e=e.firstChild;c.appendChild(e);c=e.contentWindow;c.document.open().close();e=c.document.body;var f=d("ul"),g=d("lsr");e.appendChild(f);e.appendChild(g);b(c,a)}}},vc=function(a,d){var b=[],c=!0,e=function(f){var g=n.getTop();f=f||g.event;b.push({x:n.round(f.clientX),y:n.round(f.clientY)});c&&g.setTimeout(function(){z.removeEvent(g.document,"mousemove",e);d(b)},a);c=!1};(function(){var a=n.getTop();z.addEvent(a.document,"mousemove",e)})()},tb=function(){return{start:function(){var a=n.getTop().status; n.getTop().status=n.getTop().status+" ";n.getTop().status===a+" "&&(n.getTop().status=a,l.trigger("addOutputItem",{output:1},"sb"))},isApplicable:function(a,d){return a.on("mmsb")&&!a.bootstrapOn("mobOrTab")&&!w.xDomainIframe&&d.browserIs(g.BROWSERS.IE)}}},Db=function(){var a=A.appendElement("iframe",{name:"hpif",style:"display:none"}),d=[{pieces:["jwp","la","yer"],abbr:"j"},{pieces:["flo","wpl","ayer"],abbr:"f"}],b=function(b){a.contentWindow[b.pieces.join("")]=function(){return{play:function(){l.trigger("addOutputItem", {output:b.abbr},"vh",{minDt:!0,type:g.DT_CODES.VH});l.trigger("sendMinDt",g.DT_CODES.VH)}}}},c=5E3;(function h(){a.contentWindow?f(d).each(function(a,c){b(c)}):(c-=100,0<=c&&s.setTimeout(h,100))})()},xc={ul:{WIDTH:3,HEIGHT:3,TOP:-3600,LEFT:-3600},lsr:{WIDTH:3,HEIGHT:3,TOP:32767,LEFT:32767}};try{Eb()}catch(yc){__IntegralASDiagnosticCall("main",yc,q)}}; try{(function(){var q=__IntegralASConfig.useFIF?window.parent:window;__IntegralASConfig.initialize(__IntegralASConfig,q,q.document)})()}catch(err$$12){__IntegralASDiagnosticCall("initialize",err$$12,__IntegralASConfig)};