var __IntegralASDiagnosticCall = function(){};

try {
	var __IntegralASConfig = {
		jsDoSplit : "false",
		cocaPuffsPath : "",
		debug : "false",
		killPhrases : "",
		useAdTalk : "true",
		jsDiag:'false',
		version:'0',
		mtCell: 10,
		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'},
		protocol:'http',
		jsref : "http://motherboard.vice.com/2012/4/25/inside-the-pocket-sized-dystopian-internet-of-north-korea--2",
		asid : "bd77d487-90d8-11e4-9b26-0025904ea126",
		allowViewability : "true",
		jsFeatures : "mousetrack:0,viewabilityready,consecutive,cachebust:0,forcecocoa:10,rattie:100,exch,recordalternate:100,cocoapuffs,usedtdomain,nextcocoa,bapiDiag,cookie,postDts:0,videotwoseconds,getPl,decodePl,resolution,usetpl,usesca:1,tpiLookupURL,hundredpct,jloadDiag:0",
		adTalkDtCall : "true",
		adsafeDomain : "adsafeprotected.com:80",
		minimizeCalls : "false",
		adWidth : "",
		adHeight : "",
		forceAppend : "true",
		requrl : "http://pixel.adsafeprotected.com/",
		reqquery : "anId=6202&advId=en_us&campId=North+Korea&pubId=inside-the-pocket-sized-dystopian-internet-of-north-korea--2&placementId=North+Korea%2C+south+korea%2C+kore%2C+security%2C+the+internet%2C+intranet%2C+kim+jong-il%2C+kim+jong-un%2C+dystopia%2C+business-and-politics%2C+privacy-and-security&chanId=motherboard.vice.com",
		mode : "jload",
		adsafeSrc : "",
		adsafeSep : "",
		_onAPIResult : __IntegralASConfig && __IntegralASConfig.onAPIResult,
		_onInViewMRC15 : __IntegralASConfig && __IntegralASConfig.onInViewMRC15,
		_onMeasurable : __IntegralASConfig && __IntegralASConfig.onMeasurable,
		_onSuspicious : __IntegralASConfig && __IntegralASConfig.onSuspicious,
		_onInViewMRC : __IntegralASConfig && __IntegralASConfig.onInViewMRC,
		_onInViewMRC5 : __IntegralASConfig && __IntegralASConfig.onInViewMRC5,
		getTpl: "false",
		use100v: false,
		useBapiCallback: "",
		useViewabilityNotification: "",
		scriptUrl : "http://pixel.adsafeprotected.com/jload?anId=6202&advId=en_us&campId=North+Korea&pubId=inside-the-pocket-sized-dystopian-internet-of-north-korea--2&pla",
		accountForSadImps:'',
		sendCookie:'false',
		tpiLookupURL:"",
		fwMonitoring:'',
		cdnTestUrl: "//cdn.adsafeprotected.com/cdn-test.js",
		colloTestUrl: "//pixel.adsafeprotected.com/jload?campId=cdnTest&anId=100",
		doNothing: false,
		cdnTestEnabled: false,
		mn: "app09dal",
		videoId : ''
	};

	if (__IntegralASConfig.jsFeatures.indexOf('asidJsDiagnostic') !== -1) {
		var fakeErr = { message: __IntegralASConfig.asid };
		__IntegralASDiagnosticCall('asid', fakeErr);
	}

	__IntegralASConfig.birthdate = new Date().getTime();
	__IntegralASConfig.thisScriptNode = (function() {
		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('<span id="s' + __IntegralASConfig.asid + '"/>');
				result = document.getElementById('s' + __IntegralASConfig.asid).parentNode;
			}
		} catch(e) { }
	
		return result;
	}());

} catch(err) {
	__IntegralASConfig = {};
	__IntegralASDiagnosticCall('bootstrapper', err);
}

__IntegralASConfig.initialize=function(k){var Ja=function(){var a=-1!==k.mode.indexOf("jsvid"),c=f.isDef(window.JSON)&&f.isDef(window.postMessage),c="true"===k.useAdTalk&&c,b,d,e,g,h=T(),l=U(),n=new ca,p=da(n),q=new ea(n),u=fa(),x=ga(),s=ha(),B=ia(),y=ja(),y=ka(p,h,y,n),D=la(p),w=ma(p),A=na(p),C=oa(),aa=pa(A,p),L=qa(A),G=a?ra(s):{},t=a?sa(k.videoId,h,n,s,G):{},a=ta(C,aa,B,t),C=ua(a,p,L,u),v=va(a,y,p,h,n,w,q,A,s,t,G),z=wa(y,v,l),H=xa(p,h,n,l),l=ya(y,v,p,w,q),G=za(y,v),H=Aa(H,y,n),F=Ba(A,v,p,h,L,n,
w,aa,q,z,B,u,C,s,t),u=Ca(y,p,h,w,H,q,A,F),s=Da(n),n=Ea(n);v.setViewabilityMod(F);c&&(b=Fa(p));var A="0"!==A.getFlashVersion(),J,B=!F.useFlash();if(!function(){var a=!1,b,d;try{f.isDef(k)&&f.isDef(k.killPhrases)&&""!==k.killPhrases&&(b=k.adsafeSrc?k.adsafeSrc:k.requrl+k.reqquery,d=k.killPhrases.split(","),f(d).each(function(c,n){n=decodeURIComponent(d[c]).replace(/^\s+|\s+$/g,"");-1!==b.search(n)&&(a=!0)})),k.doNothing&&(a=!0)}catch(c){p.add(p.ERROR_KILL_IT)}return a}()){if(c)try{b.createAdProxy(k),
b.findFrames(),b.listen(),b.sendMessages(),q.addItem(b.getFrameStore(),"fm")}catch(E){p.add(p.ERROR_ADTALK_GENERAL)}var I;try{"true"!==k.minimizeCalls&&F.init();h.on("mousetrack")&&(g=Ga(a,q),g.init());I=x.detectTopURL();h.on("exch")&&(d=Ha(p,q),d.parse(I));if(h.on("getPl")&&navigator&&navigator.plugins){e=Ia(navigator.plugins);var O=e.hash();q.addItem({output:O.join(".")},"pl",{type:m.DT_CODES.ADTALK});if(h.on("decodePl")&&O.length){var P=e.decode(O);q.addItem({output:P.join(".")},"pd",{type:m.DT_CODES.ADTALK})}}var M=
D.getProps();f(M).each(function(a,b){q.addItem({output:b},a,{type:"UFO"})})}catch(K){p.add(p.ERROR_IMPRESSION_LEADUP)}v.sendCookie();u.send(I);h.on("cdnTest")&&k.cdnTestEnabled&&n.init();"true"===k.useViewabilityNotification&&k._onMeasurable&&(B||A)&&y.notify(k._onMeasurable);"http"===k.protocol&&"true"===k.getTpl&&h.on("usetpl")&&l.init();k.tpiLookupURL&&G.init(k.tpiLookupURL);"true"===k.adTalkDtCall&&"true"!==k.minimizeCalls&&(J=(new Date).getTime(),r.execAtEndOfThread(function(){r.execAtEndOfThread(function(){var a=
{output:(new Date).getTime()-J};q.addItem(a,"sinceFw",{type:m.DT_CODES.ADTALK});f.isDef(F.readyFired())&&q.addItem({output:F.readyFired()},"readyFired",{type:m.DT_CODES.ADTALK});v.send(m.DT_CODES.ADTALK)})}));h.on("usesca")&&s.load()}},f=function(a){var c=function(b){return a instanceof Object&&(b||!(a instanceof Array))},b=function(b,d){if(a.length===+a.length)for(var c=0,e=a.length;c<e;++c)b(c,a[c]);else for(c in a)(a.hasOwnProperty(c)||d)&&b(c,a[c])},d=function(a,d){var c=[];b(function(b,e){var h=
a(b,e);if(void 0!==h||d)c[c.length]=h});return c},e=function(a,d){d=d||",";var c=[];b(function(b,d){var n=a(b,d);f.isDef(n)&&c.push(n)});return c.join(d)},g=function(a,b,d){for(var c in b)if(d||b.hasOwnProperty(c))a[c]=b[c];return a},h=function(a){var d={};b(function(b,e){var h=a(b,e);c(h)&&g(d,h)});return d};return{each:b,isObj:c,invert:function(){return h(function(a,b){var d={};d[b]=a;return d})},mapToObj:h,map:d,toParams:function(a){return e(function(a,b){return"string"===typeof a&&-1!==a.indexOf("NULL")?
b:a+":"+b},a)},stringify:e,mixin:function(b,d,c){!0!==b?(c=d,d=g(a,b,c)):(b=g({},a,c),d=g(b,d,c));return d},find:function(a){var d;b(function(b,c){a(b,c)&&(d=c)});return d},toArray:function(){return d(function(a,b){return b})}}};f.toBase=function(a,c){var b,d=0>a,e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),g=[];a=d?-a:a;do b=a%c,g.push(e[b]),a=(a-b)/c;while(0<a);g=g.reverse().join("");return d?"-"+g:g};f.isDef=function(a){return"undefined"!==typeof a};f.isUndef=function(a){return!f.isDef(a)};
f.noop=function(){};f.identity=function(a){return a};f.isFunction=function(a){return"function"===typeof a};f.useIfDef=function(a){return f.isDef(a)?a:!1};f.stringifyTriState=function(a){return!0===a?1:!1===a?0:"na"};var Ka=function(a,c,b,d,e,g,h){var l;(function(){var n=b.width-5,g=b.height-5,q=0.5*b.width+1,f=0.5*b.height+1;l=[new a(c,n,g,e,h,d),new a(c,n,5,e,h,d),new a(c,5,g,e,h,d),new a(c,5,5,e,h,d),new a(c,q,f,e,h,d)]})();return{getNumInView:function(){var a=[],b=0;f(l).each(function(b,d){var c=
d.isInView()?1:0;a.push(c)});g.addItem({output:a.join(".")},"pvs");f(a).each(function(a,d){b+=d});return b},getPctInView:function(a){return 5===a?100:3<=a?51:0},isReady:function(){var a=!0;f(l).each(function(b,d){d.isNotReadyToReport()&&(a=!1)});return a}}},La=function(a,c,b,d,e,g,h,l){var n=new a(M,document.body,c,d,e,h,l),p,q,u=0;b=b||f.noop;p=setInterval(function(){n.isReady()&&!q?(q=!0,b(),clearInterval(p)):(5===++u||q)&&clearInterval(p)},50);return{checkViewable:function(){var a=n.isReady(),
d=n.getNumInView(),d=n.getPctInView(d),c=g.calcInitialViewState(d,!0);a&&!q&&(q=!0,b());return{str:a?c:m.NA,pct:a?d:-1}}}},Y=function(a,c,b,d,e,g){var h=new a(document.body,c.width/2,c.height/2,d,e,g),l,n,p=0;b=b||f.noop;l=setInterval(function(){h.isNotReadyToReport()||n?(5===++p||n)&&clearInterval(l):(n=!0,b(h.createdFlash),clearInterval(l))},50);return{checkViewable:function(){var a=!h.isNotReadyToReport(),d=h.isInView(),c=d?m.IN_VIEW:m.OUT_OF_VIEW,d=d?100:0;a&&!n&&(n=!0,b(h.createdFlash));return{str:a?
c:m.NA,pct:a?d:-1}}}},ca=function(){var a={},c=function(b,d){a[b]=a[b]||new Q;a[b].push(d)};return{on:function(a,d){d?c(a,d):f(a).each(c)},trigger:function(){var b=f(arguments).toArray(),d=a[b.shift()];d&&d.run.apply({},b)}}},M=function(a,c,b,d,e,g){var h,l,n,p=function(a,b){return'<param name="'+a+'" value="'+b+'"/>'},q=function(){var a;a=new K;var b=k.cocaPuffsPath;a.sub("static");a.master(a.master().split(":")[0]);b&&(a.master(b),a.sub(""));var b=a+(d.on("nextcocoa")?"/detector3.pix":"/detector2.pix"),
c=p("allowscriptaccess","always"),e=p("movie",b)+p("play","true")+p("loop","true");g.browserIs("i")?(a=document.createElement("div"),a.innerHTML="<object "+('id="blag'+k.birthdate+'" ')+'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '+('type="'+m.FLASH_MIME+'" ')+('data="'+b+'" ')+">"+e+c+"</object>",h=a.firstChild):(h=document.createElement("object"),h.data=b,h.type=m.FLASH_MIME,h.innerHTML=c);h.style.position="absolute";h.style.width="1px";h.style.opacity="0";h.style.height="0px";return h},
u=function(a){a.style.height=n?"1px":"2px";n=!n;r.execAtEndOfThread(function(){x()&&(l=a.isInView())})},x=function(){return h&&f.isFunction(h.isInView)};(function(a,b,d){var c=q(),h=c.style;h.left=b+"px";h.top=d+"px";a.appendChild(c);h.height="1px";e.onHiddenChange(function(a){a?h.height="0px":u(c)})})(a,c,b);return{isInView:function(){var a;x()&&(a=h.isInView(),g.browserIs("w")&&a!==l&&u(h));return x()&&a},isNotReadyToReport:function(){return!x()},createdFlash:h}},Z=function(a){return{doEligibleJobs:function(c){var b=
a[0],d=b&&b.time;d&&c>=d&&(b.task(),a.shift())},getNextJob:function(){return a[0]}}},ea=function(a){var c=0,b={},d=function(a,b,d){if(f.isUndef(a.output))throw Error("item with id "+b+' must have "output" method');this.item=a;this.id=b||++c;this.props=d||{};this.output=function(){return f.isFunction(a.output)?a.output():a.output}},e=function(a,c,e){a=new d(a,c,e||{});b[a.id]=a};a.on("addOutputItem",function(a,b,d){e(a,b,d)});return{addItem:e,iterate:function(a){var d,c,e=[];for(d in b)b.hasOwnProperty(d)&&
(c=a(d,b[d]))&&e.push(c);return e},getItem:function(a){return b[a]}}},Q=function(){var a=[];return{push:function(c){a[a.length]=c},run:function(){var c=arguments;f(a).each(function(a,d){d.apply({},c)})}}},ua=function(a,c,b,d){return{collect:function(){var e,g,h,l,n,p,q;g=a.find();e=a.getParent();p=a.getDetectionMethod();var u,k,s=[];try{try{h=v.calcWinDims()}catch(B){c.add(c.ERROR_GET_WIN_DIMENSIONS),h=-1}l=a.calcDims();l.method=p;l.container=E.round(E.calcNodeDims(e));if(E.isInvalidDims(h,l))return{viewState:m.NA,
posViewState:m.NA,embedded:t.embedded,winDimensions:h,adDimensions:l};n=b.calcPercentInView(h,l)}catch(y){c.add(c.ERROR_GET_SCREEN_LOC_GET_DIMENSIONS)}e=b.calcInitialViewState(n);e===m.OUT_OF_VIEW&&s.push("l");a.isDetected()&&(q=a.isObstructed(l),u=a.isCollapsed(l),k=a.isHidden(g));q&&(e=m.OUT_OF_VIEW,s.push("o"));u&&(e=m.OUT_OF_VIEW,s.push("c"));k&&(e=m.OUT_OF_VIEW,s.push("h"));g=e;p=d.isHidden();!0===p&&(e=m.OUT_OF_VIEW,s.push("f"));return{winDimensions:h,adDimensions:l,viewState:e,percentInView:n,
reason:s.join("."),obstructed:f.stringifyTriState(q),isCollapsed:f.stringifyTriState(u),isHidden:f.stringifyTriState(k),tabHidden:f.stringifyTriState(p),posViewState:g}}}},Ma=function(a){a=a||f.identity;var c=[],b=r.now(),d=function(){var a=r.now();c.length&&(c[c.length-1].duration+=a-b,b=a)};return{clear:function(){d();c=[]},fastForward:d,get:function(){return c},hasAlwaysBeen:function(a){return 1===c.length&&c[0].state===a},addState:function(b){var g=c[c.length-1];b=a(b);d();0!==c.length&&b===g.state||
c.push({state:b,duration:0})}}},Na=function(a){var c=a||1,b=0,d=0,e=0,g=0;return{start:function(){0===b%c&&(e=r.now())},stop:function(){0===b%c&&(g+=r.now()-e,d++);b++},getTime:function(){return g},getCount:function(){return d}}},$=function(a){var c=0,b=t.getTagTime(),d=0,e,g;return{getTotalTime:function(){return d},stop:function(){c=0;b=t.getTagTime()},mark:function(){e=t.getTagTime()-b;c+=e;c>a&&(g=c-e<a,d+=g?c:e);b=t.getTagTime()}}},K=function(a){a=a||k.adsafeSrc||k.requrl;a=/^(http|https):\/\/(([^\/\.]*)\.([^\/]*))/.exec(a);
var c=a[1],b=a[3],d=a[4],e,g,h=function(a){f.isDef(a)&&(b=a);return b},l=function(a){f.isDef(a)&&(d=a);return d},n=function(){var a="";f(g).each(function(b,d){a+="&"+b+"=";a=f(d).isObj()?a+("{"+f(d).toParams()+"}"):a+d});return"?"+a.substr(1)};return{fullDom:a[0],sub:h,master:l,setField:function(a,b){g=g||{};f(b).isObj()&&f.isDef(g[a])&&(b=f(g[a]).mixin(!0,b));g[a]=b},path:function(a){e=a},toString:function(){var a=h()?h()+".":"",b=e?"/"+e:"",d=g?n():"";return c+"://"+a+l()+b+d}}},Oa=function(a,c){var b=
!1,d=!1,e,g=function(){b||(b=!0,e=c.createViewabilityTracker("mpt",function(a){return a.isFullyInView()}))},h=function(a){if(!f.isUndef(a.eventData)){var b=-1;f.isDef(a.eventData.volume)?b=a.eventData.volume:f.isDef(a.eventData.adVolume)&&(b=a.eventData.adVolume);return b}},l=function(a){a=h(a);b||0!==a?b&&(d||0===a)&&(a={isFullyInView:function(){return!1}},e.addState(a)):d=!0};return{init:function(){var b=function(a){l(a)};a.on({adStarted:g,adVideoStart:g,adVideoStarted:g,volumeChanged:b,adVolumeChange:b,
adVideoMidpoint:function(){e&&e.hasAlwaysBeen(!0)&&a.trigger("sendDt",m.DT_CODES.QUARTILE_FULLY_INVIEW)}})}}},ta=function(a,c,b,d){var e=-1!==k.mode.indexOf("jsvid"),g=b.isMobileApp(),h=null,f=k.thisScriptNode.parentNode,n=!1,p=!1,q,u=function(){var a,b;if(h&&h.parentNode){for(b=h.parentNode;h&&b&&h!==window&&b!==document&&!a;)a=b===f,b=b.parentNode;a||(f=h.parentNode,n=!0)}};return{calcDims:function(){var b,d=-1;b=t.embedded?c.calcDims():a.calcDims(h,f);E.isValidDims(b)&&(d=E.round(b));return d},
find:function(){var a,c=function(){var b=v.findLargestChildNode(f);1<v.getNodeArea(b)?(q="a",a=b,p=!0):(q="s",h||(a=v.getPlaceholderSpan(),f.insertBefore(a,k.thisScriptNode.nextSibling)))};p||(g?(c(),q=b.getDetectionMethod()):e?(q="v",a=d.findVideo(),p=!0):t.embedded?(q="i",a=window,p=!0):c());h=a||h;u();return h},isObstructed:function(a){return!1},isCollapsed:function(a){return!1},isHidden:function(a){var b=!1;"i"!==q&&(b="none"===z.getStyle(a,"display"));return b},getDetectionMethod:function(){return q},
isDetected:function(){return p},getParent:function(){return f},hasParentChanged:function(){return n}}},Fa=function(a){var c=[],b=function(a){var b;a=a||k;a.reqquery?b=a.reqquery.split(/(?:anId=|anid=|ANID=)([^&]*)/)[1]:(b=a.adsafeSrc.split("/"),b=b[5]+"-"+b[6]);a={adId:b,adSafeId:a.asid};c.push(a);return a},d=function(){var a=[],b={},d={noMe:!0};return{addFrame:function(c){a.push(c);b[c.pageId]=c;c.isMe&&(d=c)},list:a,lookup:b,me:function(){return d},output:function(){var b,c,e,h,g=[];for(b=0;b<a.length;b++)if(e=
a[b],e.isLeaf||e.isMe||f.isDef(e.selfDescription)){h="";for(c=0;c<e.position.length;c++)h+=(Number(e.position[c])+1).toString(36);h+=e.isMe?"*":"";h+=0!==e.adProxies.length?"."+e.adProxies[0].adId:"";g.push(h)}return f.toBase(d.unifiedId,62)+"+"+g.join("|")}}},d=new d,e=function(a,b){var e=a===window,h={position:b.slice(0),pageId:b.join("-"),domObj:function(){return a},isMe:e,isLeaf:!a.frames.length,adProxies:e?c:[],selfDescription:void 0,unifiedId:k.birthdate,toString:function(){return JSON.stringify(h)},
addDescription:function(a){h.selfDescription=a;h.adProxies=a.adProxies}};d.addFrame(h);return h},g;g=new function(){var a=function(b,d){var c=d.length,h=b.frames;if(!(new e(b,d)).isLeaf){for(var g=0;g<h.length;g++)d[c]=g,a(h[g],d);d.pop()}};return{start:function(){a(top,[0])}}};var h=function(a){var b={srcId:k.asid,srcKey:k.asid.split("-")[2],srcStart:k.birthdate,getMessageTime:void 0,replyTo:document.location,sendMessage:function(d,c){c=c||"*";a.getMessageTime=r.now();delete b.updateMessage;delete b.sendMessage;
d.postMessage(JSON.stringify(b),c)},updateMessage:function(b){a=b(a)},messageContent:a||{}};return b},l;l=new function(){var b=[],c=function(a){var b=d.me();(new h({self:b,expectedPageId:a.pageId,unifiedId:b.unifiedId})).sendMessage(a.domObj())};return{sendMessages:function(){var a,b;for(a=0;a<d.list.length;a++)b=d.list[a],b.isMe||c(b)},listen:function(){z.addEvent(window,"message",function(h){var g,l,s,B=d.me();try{g=JSON.parse(h.data);l=g.messageContent;if(k.asid.split("-")[2]!==g.srcKey||!g.hasOwnProperty("messageContent"))return;
l.unifiedId<B.unifiedId&&(B.unifiedId=l.unifiedId)}catch(m){return}b.push(g);try{if(l.expectedPageId!==d.me().pageId)a.add(a.ERROR_ADTALK_DUBIOUS);else{s=d.lookup[l.self.pageId];if(f.isUndef(s)||f.isUndef(s.selfDescription))s=s||new e(h.source,l.self.pageId.split("-")),c(s);s.addDescription(l.self)}}catch(D){a.add(a.ERROR_ADTALK_DUBIOUS)}})}}};return{sendMessages:l.sendMessages,listen:l.listen,findFrames:g.start,createAdProxy:function(a){return new b(a)},getFrameStore:function(){return d||""}}},ya=
function(a,c,b,d,e){var g=function(a,b,d){e.addItem({output:a+"."+b+"."+d},"ctpl")},h=function(e){try{c.diagnostic("c");var h=e.length,p=0,q=0;g(h,0,0);f(e).each(function(b,c){a.send(c.replace("%%CBS%%",d.getCacheBustId()),function(){g(h,p,++q)},!0);g(h,++p,q)})}catch(k){b.add(b.ERROR_AT_SEND)}};return{init:function(){try{var d=(new K).fullDom;"/"!==d.slice(-1)&&(d+="/");d+="tpl?asId="+k.asid;a.jsonp(d,h)}catch(c){b.add(b.ERROR_AT_INIT)}}}},xa=function(a,c,b,d){return{enabled:"true"===k.useBapiCallback,
callback:function(c){b.trigger("sendDiag");try{"true"===k.accountForSadImps&&d.measure(c),k._onAPIResult&&k._onAPIResult(c)}catch(g){a.add(a.ERROR_BAPI_CALLBACK),b.trigger("sendDiag","bapiClient")}}}},na=function(a){var c=function(){var a=function(a){return a.replace(/\D+/g,",").match(/^,?(.+),?$/)[1].split(",").join(".")};try{try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");try{b.AllowScriptAccess="always"}catch(d){return"6"}}catch(c){}return a((new ActiveXObject("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version"))}catch(e){try{if(navigator.mimeTypes[m.FLASH_MIME].enabledPlugin)return a((navigator.plugins["Shockwave Flash 2.0"]||
navigator.plugins["Shockwave Flash"]).description)}catch(f){}}return"0"},b=function(a){return e()===a},d=function(){return document&&document.documentMode?document.documentMode:m.NA},e=function(){var a="u";try{if(f.isDef(window.opera)&&f.isDef(window.opera.buildNumber))a="o";else if(f.isDef(window.mozInnerScreenY))a="g";else if(f.isDef(window.chrome)&&f.isDef(window.chrome.csi))a="c";else if(f.isDef(window.WebKitPoint))a="w";else if(f.isDef(window.attachEvent)||f.isDef(window.msCrypto))a="i"}catch(b){}return a};
return{browserIs:b,getFlashVersion:c,getDocumentMode:d,getBrowserVendor:e,params:function(){var a=e(),h=c(),l=5;b("i")?window.msCrypto?l=11:window.atob?l=10:document.addEventListener?l=9:window.JSON&&document.querySelector?l=8:window.XMLHttpRequest?l=7:document.compatMode&&(l=6):l=m.NA;var n=d(),p;p=["{45EA75A0-A269-11D1-B5BF-0000F8051515}","{3AF36230-A269-11D1-B5BF-0000F8051515}","{89820200-ECBD-11CF-8B85-00AA005B4383}"];var q=m.NA,k=document.createElement("div");try{if("-ms-ime-align"in document.documentElement.style)q=
"11";else{k.style.behavior="url(#default#clientcaps)";for(var x=0;x<p.length&&!(q=k.getComponentVersion(p[x],"componentid").replace(/,/g,"."));x++);}}catch(s){}p=q;q=m.NA;f.isDef(window.navigator)&&f.isDef(window.navigator.appName)&&(q=window.navigator.appName.toLowerCase()[0]);return{br:a,fv:h,bv:l,dm:n,abv:p,an:q}}}},Ea=function(a){var c=0.5<=r.random()?"cdn":"collo",b=function(){a.trigger("sendDiag",c+"Test","cdnTest")};return{init:function(){var d,e=k[c+"TestUrl"];e&&(d=-1===e.indexOf("?")?"?":
"&",e=e+d+"asid="+k.asid,a.trigger("exec",e,b))}}},ka=function(a,c,b,d){var e=function(a,b){var d,c,e=k.thisScriptNode.parentNode;b=b||a;a=1<arguments.length?a:"script";d={script:['<script type="text/javascript" src="','">\x3c/script>'],iframe:['<iframe width="100%" height="100%" frameborder="0" vspace="0" hspace="0" scrolling="no" marginheight="0" marginwidth="0" src="','"></iframe>'],img:['<img src="','"/>']}[a];c=d[0]+b+d[1];"true"===k.forceAppend?"script"!==a?(d=document.createElement("DIV"),
d.innerHTML=c,e.appendChild(d.childNodes[0])):(d=document.createElement("SCRIPT"),d.src=b,e.appendChild(d)):document.write(c)},g=function(a,b,d){var e=!d&&c.on("postDts")&&z.getXHR2();e?(e.open("POST",a),e.onreadystatechange=function(){4===e.readyState&&200===e.status&&b&&b()},e.send()):(d=new Image,b&&(d.onload=b),d.src=a)},h=function(a,b){var d=document.createElement("script");d.type="text/javascript";d.src=a;b&&(d.onload=b);f.isDef(k.thisScriptNode.parentNode)&&k.thisScriptNode.parentNode.appendChild(d)},
l=function(b){f.isFunction(b)?b():"string"===typeof b?g(b):a.add(a.ERROR_NOTIFY_CLIENT)};d.on({addNode:e,send:g,exec:h,notify:l});return{addNode:e,send:g,exec:h,notify:l,jsonp:function(a,d,c,e){h(b.wrap(a,d,c,e))}}},m={MAX_URL_LENGTH:2E3,FLASH_MIME:"application/x-shockwave-flash",IN_VIEW:"inView",OUT_OF_VIEW:"outOfView",PARTIAL_VIEW_PLUS:"partialViewPlus",PARTIAL_VIEW_MINUS:"partialViewMinus",NA:"na",DT_CODES:{UNLOAD:"u",PING:"p",FULLY_INVIEW:"pf",QUARTILE_FULLY_INVIEW:"qf",ADTALK:"a",VIEWABILITY_READY:"v",
VIDEO_EVENTS:"m",DIAGNOSTIC:"b",POS_INVIEW:"t",THIRD_PARTY:"i",SCA:"s"}},t=function(){var a=window!=top,c=function(){var a;try{a=!!top.document}catch(d){a=!1}return a}();return{embedded:a,friendly:c,getTagTime:function(){return r.now()-k.birthdate},getPageTime:function(){return f.isDef(window.chrome)&&f.isDef(window.chrome.csi)&&f.isFunction(window.chrome.csi)?r.round(chrome.csi().pageT):m.NA},friendlyIframe:a&&c,xDomainIframe:a&!c}}(),z={addEvent:function(a,c,b,d){f.isDef(a.addEventListener)?"mouseenter"===
c?a.addEventListener("mouseover",z.mouseEnter(b),d):"mouseleave"===c?a.addEventListener("mouseout",z.mouseEnter(b),d):a.addEventListener(c,b,d):f.isDef(a.attachEvent)&&a.attachEvent("on"+c,b)},removeEvent:function(a,c,b){f.isDef(a.removeEventListener)?("mouseenter"===c?(c="mouseover",b=z.mouseEnter):"mouseleave"===c&&(c="mouseout",b=z.mouseEnter),a.removeEventListener(c,b)):f.isDef(a.detachEvent)&&a.detachEvent("on"+c,b)},mouseEnter:function(a){var c=this;return function(b){var d=b.relatedTarget;
this===d||c.isAChildOf(this,d)||a.call(this,b)}},isAChildOf:function(a,c){if(a===c)return!1;for(;c&&c!==a;)c=c.parentNode;return c===a},getStyle:function(a,c){var b="";document.defaultView&&document.defaultView.getComputedStyle?b=document.defaultView.getComputedStyle(a,"").getPropertyValue(c):a.currentStyle&&(c=c.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()}),b=a.currentStyle[c]);return b},getXHR2:function(a,c){var b,d;f.isDef(window.XMLHttpRequest)?(d=new XMLHttpRequest,"withCredentials"in
d&&(b=d)):f.isDef(XDomainRequest)&&(b=new XDomainRequest);return b}},va=function(a,c,b,d,e,g,h,l,n,p,q){var u=0,x=0,s=!1,B,y=function(a,d,e,h,f){if(g.impressionIsIdentifiable()&&(a===m.DT_CODES.DIAGNOSTIC||a===m.DT_CODES.ADTALK||"n"!==n.getCurrentLoc()))try{var l=new K,q=r.now();l.path("dt");l=A(l,a,d,f);h||(l=w(l,a,d));c.send(l.toString(),function(){x+=1;u=r.now()-q},e);a===m.DT_CODES.UNLOAD&&(s=!0)}catch(p){__IntegralASDiagnosticCall("dt-"+a,p),b.add(b.ERROR_PHONE_HOME)}},D=function(a,b){var c=
{bapi:"a",bapiClient:"b",jload:"c",jss:"d",jsi:"e",cdnTest:"f",colloTest:"g"},e=k.mode,c=c[a]||c[e];d.on(b||e+"Diag")&&c&&y(m.DT_CODES.DIAGNOSTIC,-5,!0,!0,{field:"bkp",value:c})},w=function(c,e){n.fastForward();var g={};e===m.DT_CODES.VIDEO_EVENTS&&q&&p&&(g.ve=q.stringify());e===m.DT_CODES.UNLOAD&&(g.ndt=x);-1!==k.mode.indexOf("jsvid")&&p&&(g.vv=p.version);g.NULL1=d.output();g.NULL2=n.stringify(10);g.em=t.embedded;g.fr=t.friendly;g.uf=B.useFlash()?1:0;g.e=b.toString();g.tt=k.mode;g.dtt=u;g.pc=f.stringifyTriState(a.hasParentChanged());
h.iterate(function(a,b){b.props.type&&b.props.type!==e||(g[a]=b.output())});c.setField("tv",g);c.setField("br",l.getBrowserVendor());c.setField("adsafePrivacyPolicy","http://integr.al/privacy-policy");return c},A=function(a,b,c,e){d.on("usedtdomain")&&a.sub("dt");a.setField("asId",k.asid);a.setField("tv",{c:g.getCacheBustId(),pingTime:c||C(b),time:t.getTagTime(),type:b});e&&a.setField(e.field,e.value);return a},C=function(a){var b;a===m.DT_CODES.UNLOAD?b=-1:a===m.DT_CODES.ADTALK?b=-2:a===m.DT_CODES.VIEWABILITY_READY?
b=-3:a===m.DT_CODES.VIDEO_EVENTS&&q&&p?b=-4:a===m.DT_CODES.DIAGNOSTIC?b=-5:a===m.DT_CODES.THIRD_PARTY?b=-6:a===m.DT_CODES.QUARTILE_FULLY_INVIEW&&(b=-7);return b};e.on({sendDt:function(a,b){y(a,b)},sendDiag:function(a,b){D(a,b)}});return{send:y,sendCookie:function(){var a;d.on("cookie")&&"true"===k.sendCookie&&k.protocol&&k.cookieDomain&&k.asid&&(a=k.protocol+"://"+k.cookieDomain+"?asid="+k.asid,c.send(a,void 0,!0),x++)},unload:function(){s||y(m.DT_CODES.UNLOAD,-1,!0)},diagnostic:D,setViewabilityMod:function(a){B=
a}}},E={calcNodeDims:function(a){if(f.isDef(a.getBoundingClientRect))return a=v.getRect(a),{x:a.left,y:a.top,width:a.width,height:a.height}},round:function(a){return{x:r.round(a.x),y:r.round(a.y),width:r.round(a.width),height:r.round(a.height)}},isValidDims:function(a){return!(isNaN(a.x)||isNaN(a.y)||isNaN(a.height)||isNaN(a.width))},isInvalidDims:function(a,c){return-1===a||-1===c}},oa=function(){return{calcDims:function(a,c){var b=E.calcNodeDims(a),d=v.getClippedDimensions(a,c);b.height=d.height<
b.height?d.height:b.height||1;b.width=d.width<b.width?d.width:b.width||1;return b}}},v={calcWinDims:function(){var a,c,b,d;d=v.windowSize();b=d.width;d=d.height;t.friendly?a=c=0:(f.isDef(window.screenX)&&(a=window.screenX),f.isDef(window.screenY)&&(c=window.screenY));return isNaN(a)||isNaN(c)||isNaN(b)||isNaN(d)?-1:{x:r.round(a),y:r.round(c),width:r.round(b),height:r.round(d)}},windowSize:function(){var a={},c,b;if(t.friendly)if(c=top.document,b=c.documentElement,c=c.getElementsByTagName("body")[0],
f.isDef(top.innerWidth))a.width=top.innerWidth,a.height=top.innerHeight;else if(f.isDef(b.clientWidth))a.width=b.clientWidth,a.height=b.clientHeight;else if(f.isDef(c.clientWidth))a.width=c.clientWidth,a.height=c.clientHeight;else throw a.width=a.height=0,"";else f.isDef(window.outerWidth)&&(a.width=window.outerWidth,a.height=window.outerHeight);return a},screenSize:function(){try{var a=-1,c=-1;f.isDef(window.screen)&&(a=window.screen.width,c=window.screen.height);return{width:a,height:c}}catch(b){}},
getNodeArea:function(a){var c=-1;a&&(a=v.getRect(a),c=a.width*a.height);return c},getRect:function(a){var c={};a=a.getBoundingClientRect();f.isUndef(a.width)&&(c={width:a.right-a.left,height:a.bottom-a.top});f(c).mixin(a,!0);return c},getIeDimObj:function(){return document.documentElement&&f.isDef(document.documentElement.clientWidth)&&document.documentElement||document.body},getPlaceholderSpan:function(){var a=document.createElement("span");f(a.style).mixin({width:"0px",height:"0px",display:"block",
overflow:"hidden",visibiility:"hidden"});a.innerHTML=".";return a},getClippedDimensions:function(a,c){var b=1E4,d=1E4,e,g;if(null!==a.parentNode){do a=a.parentNode,e="OBJECT"!==a.tagName.toUpperCase(),g="inline"!==z.getStyle(a,"display"),e&&g&&(e=v.getRect(a),b=e.width<b?e.width:b,d=e.height<d?e.height:d);while(a.parentNode!==document&&a!==c)}return{width:r.round(b),height:r.round(d)}},findLargestChildNode:function(a){var c,b="iframe img a object embed div".split(" "),d,e,g,h,l=[],n=-1;d=0;for(e=
b.length;d<e;d++){var p=a.getElementsByTagName(b[d]);if(p.length)for(g=0,h=p.length;g<h;g++)l.push(p[g])}if(l.length)for(d=0,e=l.length;d<e;d++)a=l[d],b=v.getNodeArea(a),b>n&&(c=a,n=b);return f.isUndef(c)?null:f.isDef(c.nodeName)&&"DIV"==c.nodeName?v.findLargestChildNode(c):c}},la=function(a){return{getProps:function(){var c={};try{var b=document.createElement("span");f(b.style).mixin({position:"absolute",top:"150"});c={rpx:""===b.style.top?1:0}}catch(d){a.add(a.ERROR_ENVIRONMENT)}return c}}},da=
function(a){var c={},b=function(a){f.isDef(c[a])?c[a]++:c[a]=1};a.on("error",function(a){b(a)});return{list:c,add:b,toString:function(){var a="",b;for(b in c)c.hasOwnProperty(b)&&(a+=b);return a},hasErrors:function(){for(var a in c)return!0;return!1},ERROR_GET_AD_DIMENSIONS:"a",ERROR_ADTALK_GENERAL:"c",ERROR_GET_SCREEN_LOC_GET_DIMENSIONS:"d",ERROR_EXCHANGE_PARSING:"x",ERROR_PHONE_HOME:"h",ERROR_KILL_IT:"k",ERROR_LOCATION_DETAILS:"l",ERROR_GET_SCREEN_LOC_PIV_CALC:"p",ERROR_GET_WIN_DIMENSIONS:"w",ERROR_ADTALK_DUBIOUS:"D",
ERROR_ENVIRONMENT:"v",ERROR_UID_GENERATION:"i",ERROR_NOTIFY_CLIENT:"n",ERROR_IMPRESSION_URLS:"I",ERROR_JSINFO:"J",ERROR_IMPRESSION_LEADUP:"L",ERROR_GET_ELEM_STYLE:"s",ERROR_PLUGIN_PARSING:"P",ERROR_AT_SEND:"S",ERROR_AT_INIT:"N",ERROR_BAPI_CALLBACK:"b"}},Ha=function(a,c){var b=function(a){var b=[];if(a&&a instanceof Array)b=f(a).map(function(a,b){return b.val}),b.push(k.adsafeSrc,k.requrl,k.reqquery);else throw Error("Unexpected data type in ExchangeParser.getUrlList");return b};return{parse:function(d){try{var e,
g=b(d),h=g&&g.length&&g.join("|"),l=k.exchList;h&&(e=f(l).map(function(a,b){return 0<=h.indexOf(N.rot(b))?a:void 0}),e.length&&c.addItem({output:e.join(".")},"ex",{type:"UFO"}))}catch(n){a.add(a.ERROR_EXCHANGE_PARSING)}}}},T=function(){var a={},c=function(b,d){var c=RegExp(b+"(?=$|,)|"+b+":(?!,|$)(.?\\d*(?=,|$))").exec(k.jsFeatures);if(f.isUndef(a[b])||d)a[b]=!!(c&&!c[1]||c&&c[1]>100*r.random());return a[b]},b={fc:"forcecocoa",rt:"rattie",cb:"cachebust",np:"nextcocoa",th:"tabHiddenDtCall"},d=function(){return f(b).mapToObj(function(b,
d){var c={};c[b]=a[d]?1:0;return c})};f(b).each(function(a,b){c(b)});return{on:c,output:function(){return f(d()).toParams()}}},qa=function(a){var c=a.browserIs("g")||a.browserIs("i")||t.friendlyIframe||!t.embedded;return{calcPercentInView:function(a,d){var c;c=a.x;var g=d.x;c=Math.min(a.x+a.width,d.x+d.width)-Math.max(g,c);var g=a.y,h=d.y,g=Math.min(a.y+a.height,d.y+d.height)-Math.max(h,g),h=0>=d.width;c=0>=c||h?0:r.round(c/d.width*100);g=0>=g||h?0:r.round(g/d.height*100);return r.round(c*g/100)},
calcInitialViewState:function(a,d){var e=m.NA;if(c||d)e=75<=a?m.IN_VIEW:25>=a?m.OUT_OF_VIEW:50<=a?m.PARTIAL_VIEW_PLUS:m.PARTIAL_VIEW_MINUS;return e}}},ma=function(a){var c=!1;return{getCacheBustId:function(){var a=new Date,d=Date.parse("Jan 1 "+a.getFullYear()),a=a.getTime()-d;return f.toBase(a,62)},impressionIsIdentifiable:function(a){a&&(c=!0);return c},unq:function(){var b="";try{for(var d,c=window.Uint32Array&&window.crypto&&window.crypto.getRandomValues;30>b.length;)c?(d=new Uint32Array(1),window.crypto.getRandomValues(d),
b+=d[0].toString(16)):b+=(16*r.random()|0).toString(16);b=b.slice(0,30)}catch(g){a.add(a.ERROR_UID_GENERATION)}return b}()}},pa=function(a,c){var b,d=function(){try{var b,d;if(t.friendly){var c=g(window);b=c.left;d=c.top}else a.browserIs("i")&&11!==a.getDocumentMode()?(c=function(a){b=a.screenX-a.clientX;d=a.screenY-a.clientY},document.documentElement.attachEvent("onmousemove",c),document.documentElement.fireEvent("onmousemove"),document.documentElement.detachEvent("onmousemove",c)):f.isUndef(window.mozInnerScreenX)?
(b=window.screenLeft,d=window.screenTop):(b=r.round(window.mozInnerScreenX),d=r.round(window.mozInnerScreenY));return{x:b,y:d}}catch(e){}},e=function(){var a,d,c=b||v.getIeDimObj();f.isDef(window.innerWidth)?(a=window.innerWidth,d=window.innerHeight):c&&f.isDef(c.clientWidth)?(a=c.clientWidth,d=c.clientHeight,0===a&&0<c.offsetWidth&&(a=c.offsetWidth),0===d&&0<c.offsetHeight&&(d=c.offsetHeight)):window.frameElement&&f.isDef(window.frameElement.clientWidth)&&(a=window.frameElement.clientWidth,d=window.frameElement.clientHeight);
return{width:a,height:d}},g=function(a,b){f.isUndef(b)&&(b={top:0,left:0});for(var c=a.parent.document.getElementsByTagName("iframe"),d,e=!1,k=0,m=c.length;k<m;k++)if(d=c[k],d.contentWindow==a){e=!0;break}e&&(c=v.getRect(d),b.left+=c.left,b.top+=c.top,a!==top&&g(a.parent,b));return b};return{calcDims:function(){var a={};try{a=f(d()).mixin(e())}catch(b){c.add(c.ERROR_GET_AD_DIMENSIONS)}return a},waitForBody:function(a){var c=setInterval(function(){document.body&&(b=v.getIeDimObj(),clearInterval(c),
a())},50)}}},Ca=function(a,c,b,d,e,g,h,l){var n=function(a,b){if(b>=m.MAX_URL_LENGTH)return"";var c,d,e=[],g=function(a){return-1!==a.key.indexOf("q")||-1!==a.key.indexOf("g")};c=f(a).map(function(a,b){if(g(b))return b});d=f(a).map(function(a,b){if(!g(b))return b});f(c.concat(d)).each(function(a,c){var d="adsafe_url="+c.val+"&adsafe_type="+c.key,g=e.join("&").length;d.length+g+b<=m.MAX_URL_LENGTH&&e.push(d)});return e.join("&")},p=function(a){var e=0,p=N.hashCode(k.asid),n="adsafe_jsinfo=",B=l.needsFlash()?
{viewState:m.NA}:l.checkScreenLoc(!0),y="c:"+d.getCacheBustId()+",sl:"+B.viewState+",em:"+t.embedded+",fr:"+t.friendly,D=b.on("postDts")&&z.getXHR2()?"p":"i",w=["pt:"+l.stringifyPingTimes()+(B.viewState!=m.NA?B.details:""),f(h.params()).toParams(),"id:"+k.asid];g.iterate(function(a,b){w.push(a+":"+b.output())});c.toString()&&w.push("e:"+c.toString());w.push(b.output());w.push("uf:"+(l.useFlash()?1:0));w.push("tt:"+k.mode);w.push("et:"+(r.now()-k.birthdate));w.push("uid:"+d.unq);w.push("v:8.4");w.push("sp:"+
("true"===k.jsDoSplit?1:0));w.push("ct:"+t.getPageTime());w.push("dtm:"+D);w.push("mn:"+k.mn);w.push("gtpl:"+("true"===k.getTpl?1:0));b.on("resolution")&&(w.push("wr:"+f(v.windowSize()).toArray().join(".")),w.push("sr:"+f(v.screenSize()).toArray().join(".")));-1===(""+p).indexOf(h.params().br.toUpperCase().charCodeAt(0))&&w.push("mf:"+p);var A=function(b){return n.length+a+b.length+5<=m.MAX_URL_LENGTH},C=function(a){if(a)return","+a};A(y)&&(n+=C(y),f(w).each(function(a,b){-1!==b.indexOf("id:")&&A(b)?
(n+=C(b),d.impressionIsIdentifiable(!0)):A(b)?n+=C(b):e+=1}),C("sp:"+("true"===k.jsDoSplit?1:0)));return n+=",ov:"+e};return{send:function(a){var b=e.baseUrl;try{b+=n(a,b.length)}catch(d){c.add(c.ERROR_IMPRESSION_URLS)}b+="&"===b.slice(-1)?"":"&";try{b+=p(b.length)}catch(g){c.add(c.ERROR_JSINFO),b+="adsafe_jsinfo=e:"+c.toString()}e.macroUrl&&(b+="&"===b.slice(-1)?"":"&",b+=e.macroUrl);try{e.sendImpression(b)}catch(h){__IntegralASDiagnosticCall("impsend",h,k)}}}},za=function(a,c){return{init:function(b){a.jsonp(b,
function(a){c.send(m.DT_CODES.THIRD_PARTY,void 0,!1,!0,{field:"tpiLookup",value:a})},!1,"callback")}}},wa=function(a,c,b){var d=function(a,b){return{time:a,task:b}},e=function(a,b){b=b||f.noop;return function(e){return f(e).map(function(e,f){var l=f/1E3;return new d(f,function(){var d;d="";1!==l&&(d+=l);d=k["_onInViewMRC"+d];c.send(a,l);b(d)})})}};return{getJob:function(a,b){return new d(a,b)},getPingJobs:e(m.DT_CODES.PING,function(d){"true"===k.useViewabilityNotification&&!b.skipAsFraudulent()&&
d&&a.notify(d)}),getFullyInViewPingJobs:e(m.DT_CODES.FULLY_INVIEW),getPosInViewPingJobs:e(m.DT_CODES.POS_INVIEW)}},ja=function(){var a=function(a,d){-1!==a.indexOf(d+"&")&&(d+="&");return a.replace(d,"")},c=function(a,d,c){var f=a.indexOf("?");d=d+"="+c;if(-1===f)return a+"?"+d;f++;return a.slice(0,f)+d+"&"+a.slice(f)};return{wrap:function(b,d,e,f){var h="__IntegralAS_"+k.asid.replace(/\-/g,"")+"_"+r.round(1E4*Math.random()),l,n,p;f=f||"ias_callback";RegExp(f).test(b)&&(l=RegExp("("+f+"=)(.[^&]*)").exec(b)[0],
n=l.split("=")[1],p=N.stringToFn(n),b=a(b,l));window[h]=function(a){d(a);e&&p&&p(a);window[h]=void 0};return b=c(b,f,h)}}},ia=function(){var a=function(){return void 0!==window.mraid};return{isInView:function(){var c=m.NA;a()&&void 0!==window.mraid.isViewable&&(c=window.mraid.isViewable()?m.IN_VIEW:m.OUT_OF_VIEW);return c},getDetectionMethod:function(){return a()?"m":m.NA},isMobileApp:function(){return a()}}},Aa=function(a,c,b){var d={jss:{isFW:!0,nodeType:"script"},jsi:{isFW:!0,nodeType:"iframe"},
jload:{impressionMethod:function(a){c.send(a,function(){b.trigger("sendDiag")},!0)}},bapi:{impressionMethod:function(b){c.jsonp(b,a.enabled?a.callback:f.noop,a.enabled?!0:!1)}},jsapi:{isFW:!0,impressionMethod:function(b){c.jsonp(b,a.enabled?a.callback:f.noop,a.enabled?!0:!1)}},jsvid:{impressionMethod:function(a){b.on("adImpression",function(){c.send(a)})}},fwjsvid:{isFW:!0,processUrl:function(a){"false"===k.fwMonitoring&&(a=a.split("/"),a[3]="db2",a[4]="video",a=a.join("/"));return a},impressionMethod:function(a){"false"===
k.fwMonitoring&&c.jsonp(a,function(a){b.trigger("videoBlockResult",a)});b.on("adImpression",function(){c.send(a)})}},jspix:{nodeType:"img"}};return new function(){var a=d[k.mode],b=!!a.isFW,f=b?k.adsafeSrc:k.requrl+"?"+k.reqquery,l=f.indexOf("BEGIN__ADSAFE"),n=-1!==l,p=n?f.slice(l):"",f=n?f.slice(0,l):f+(b?k.adsafeSep:"&");return{isFW:b,baseUrl:f,macroUrl:p,sendImpression:function(b){b=a.processUrl?a.processUrl(b):b;a.nodeType?c.addNode(a.nodeType,b):a.impressionMethod(b)}}}},Ga=function(a,c){var b,
d=k.mtCell,e=k.mtSample,g=0,h=0,l=[],n=null,p=null,q,u=function(a){try{var b=r.now()-n;g+=b;z.removeEvent("mousemove",s);l.push("{ht:"+g+",mm:{"+f(q).toParams()+"}}");c.addItem({output:"{cs:"+d+",sr:"+e+",ec:"+l.length+",me:["+l.slice(-10).join(",")+"]}"},"mt",{type:m.DT_CODES.UNLOAD})}catch(h){}},x=function(a){try{g=0,q={},n=r.now(),z.addEvent(b,"mousemove",s)}catch(d){}},s=function(c){var g,l,n,k,m,s,u;try{null===p&&(p=b&&f.isDef(c.clientX)&&f.isDef(c.clientY));if(p&&0===h%e&&(m=a.calcDims(),-1!==
m)){u=r.ceil(m.width/d);var x=c.clientX,v=c.clientY;n=t.embedded?x:x-m.x;k=t.embedded?v:v-m.y;g=r.floor(n/d);l=r.floor(k/d);s=g+l*u;q[s]?q[s]++:q[s]=1}h++}catch(z){}};return{init:function(){try{var c=setInterval(function(){a.isDetected()&&(b=a.find(),z.addEvent(b,"mouseenter",x),z.addEvent(b,"mouseleave",u),clearInterval(c))},250)}catch(d){}}}},r={execAtEndOfThread:function(a){setTimeout(a,0)},now:function(){return(new Date).getTime()},random:function(){return Math.random()},round:function(a){return Math.round(a)},
ceil:function(a){return Math.ceil(a)},floor:function(a){return Math.floor(a)}},fa=function(){var a={},c=r.now(),b=!0,d=new Q,e=function(){var a=function(){c=r.now();window.webkitRequestAnimationFrame(a)};window.webkitRequestAnimationFrame(a);setInterval(function(){var a=100<r.now()-c;b!==a&&(b=a,d.run(a))},100)},g=function(){var a=null;f.isDef(document.hidden)?a=document.hidden:f.isDef(document.mozHidden)?a=document.mozHidden:f.isDef(document.msHidden)?a=document.msHidden:f.isDef(document.webkitHidden)&&
(a=document.webkitHidden);if(null!==a){var c=a;b!==c&&(b=c,d.run(c))}return a};a.onHiddenChange=function(a){d.push(a)};a.isHidden=g;null===g()&&f.isDef(window.webkitRequestAnimationFrame)&&(e(),a.isHidden=function(){return b});return a},ga=function(){var a=function(a){for(var c in a)if(a.hasOwnProperty(c)){var e=a[c];(""===e||"null"===e||"undefined"===e||null===e||f.isUndef(e))&&delete a[c]}return a},c=function(a){var c={},e,g;for(g in a)a.hasOwnProperty(g)&&(e=a[g],f.isUndef(c[e])?c[e]=g:c[e]+=g);
a={};for(g in c)c.hasOwnProperty(g)&&(e=c[g],a[e]=g);return a};return{detectTopURL:function(){var b=function(){var a={g:"",q:""};try{a.q=window.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.location.href}catch(b){var c=b.message,c=c.substring(c.lastIndexOf("<")+1,c.lastIndexOf(">")),d;if(d=f.isDef(c))if(d=!1,f.isDef(window.navigator)&&f.isDef(window.navigator.userAgent)){var e=window.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},d={};try{d.a=encodeURIComponent(top.location.href)}catch(e){}try{d.b=encodeURIComponent(parent.location.href)}catch(g){}if(t.embedded){try{d.c=encodeURIComponent(parent.document.referrer)}catch(h){}try{d.e=encodeURIComponent(window.document.referrer)}catch(l){}}try{"jsi"!==k.mode&&(d.d=encodeURIComponent(window.location.href))}catch(n){}try{d.f=encodeURIComponent(k.jsref)}catch(p){}try{var m=
b();d.g=encodeURIComponent(m.g);d.q=encodeURIComponent(m.q)}catch(u){}var d=a(d),d=c(d),b=[],r;for(r in d)d.hasOwnProperty(r)&&b.push({key:r,val:d[r]});b.sort(function(a,b){return a.val.length>b.val.length?1:a.val.length<b.val.length?-1:0});return b}}},Ia=function(a){return{hash:function(){for(var c=0,b=a.length,d=[],e;c<b;c++)e=a[c].filename.replace(/\.plugin$/,""),e=N.hashCode(e),e=f.toBase(e,62).slice(-4),d.push(e);return d},decode:function(c){var b,d;b=r.floor(r.random()*c.length);d=encodeURIComponent(a[b].filename.replace(/\.plugin$/,
""));return[c[b],d]}}},U=function(){var a=!1;return{measure:function(c){a=0===c.rsa},skipAsFraudulent:function(){return a}}},ha=function(){var a=[],c={},b={sl:"n",gsl:"gn",fsl:"fn"},d=0,e,g,h={i:0,o:0,n:0,pp:0,pm:0,gpp:0,gpm:0,gi:0,go:0,gn:0,fi:0,fo:0,fn:0},l=function(a){var b={},c=a.winDimensions,d=a.adDimensions,e=function(a){var b="";f.isDef(a)&&f.isDef(a.x)&&f.isDef(a.y)&&f.isDef(a.width)&&f.isDef(a.height)&&(b=[a.x,a.y,a.width,a.height].join("."));return b};f.isDef(c)&&-1!==c&&(b.wc=e(c));f.isDef(d)&&
-1!==d&&(b.ac=e(d),b.am=d.method,b.cc=e(d.container));f({piv:"percentInView",obst:"obstructed",th:"tabHidden",reas:"reason"}).each(function(c,d){var e=a[d];f.isDef(e)&&(b[c]=e)});c=f(b).toParams();return""===c?"":","+c},n=function(a,b){var d=new Ma(b);return c[a]=d},k=function(a,b){return(b||"")+{inView:"i",outOfView:"o",na:"n",partialViewMinus:"pm",partialViewPlus:"pp"}[a]},q=function(){f(b).each(function(b,c){h[c]+=a.length?g-d:g});d=g},r=function(c){a.length&&q();f(c).each(function(a,c){var d=
b[a];d!==c&&"n"===d&&(h[c]+=h.n);b[a]=c});a.length||q()},x=function(a){var b;b=l(a);var d={sl:k(a.viewState),fsl:k(a.fState||m.NA,"f"),gsl:k(a.gState||m.NA,"g")};g=t.getTagTime();r(d);d.t=g;b=f({toString:function(){f(c).each(function(a,b){b.fastForward()});return"{"+f(d).toParams()+this.details+this.breakdowns+"}"},details:b,breakdowns:{piv:[],as:[],toString:function(){var a,b=function(a,b){return b.duration+"~"+b.state};a=""+("piv:["+f(this.piv).stringify(b)+"]");a+=",as:["+f(this.as).stringify(b)+
"]";return",bkn:{"+a+"}"}},isInView:function(){return-1!==(m.IN_VIEW+"|"+m.PARTIAL_VIEW_PLUS).indexOf(a.viewState)},isFullyInView:function(){var b=a.useCocoa?a.fullPercentInView:a.percentInView;return this.isInView()&&100===b}}).mixin(d);f(b).mixin(a);return b};(function(){n("piv",function(a){var b,c=a.percentInView,d=[1,30,50];100===c||0===c?b=c:(f(d).each(function(a,e){f.isUndef(b)&&c<e&&(b=d[a-1])}),f.isUndef(b)&&(b=d[d.length-1]));return b});n("as",function(a){return a.adDimensions.width+"."+
a.adDimensions.height})})();return{fastForward:function(){g=t.getTagTime();q()},registerLocation:function(d){var g,h=!1;b.sl==k(d.viewState)&&a.length?(g=new x(d),a[a.length-1].details=g.details):(g=new x(d),a.push(g),e=d.viewState,h=!0);f(c).each(function(b,c){-1!=="piv|as".indexOf(b)?(h&&c.clear(),c.addState(g),a[a.length-1].breakdowns[b]=c.get()):c.addState(g)});return g},stringify:function(b){var c="";a.length&&(c=f({slTimes:"{"+f(h).toParams()+"}",slEvents:"["+a.slice(-b).join(",")+"]",slEventCount:a.length}).toParams());
return c},createViewabilityTracker:n,getCurrentLoc:function(){return k(e)}}},Da=function(a){var c=k.asid,b=[0,1,4],d,e=function(){var a=setInterval(function(){window.postMessage({asid:c,ksca:"acsk",sender:"main"},"*")},50);window.addEventListener("message",function(d){d=d.data;"acsk"===d.ksca&&d.asid===c&&"main"!==d.sender&&("ack"===d.type&&clearInterval(a),"complete"===d.type&&(d.timeReturned=r.now(),g(d)),b.length&&(d=b.shift(),window.postMessage(h(d),"*")))})},g=function(b){var c=-5-0.1*b.targets,
d=m.DT_CODES.SCA;b="{"+f(b).stringify(function(a,b){var c;0===a.indexOf("time")?c=a+":"+b:"resultList"===a&&(c="rl:"+f(b).map(function(a,b){return"{"+f(b).toParams()+"}"}).join("."));return c})+"}";a.trigger("addOutputItem",{output:b},"sc",{type:d});a.trigger("sendDt",d,c)},h=function(){var a=0,b=c.replace("-",""),e=b.substr(-6);return function(f){for(var g=d,h=r.now(),k=f,m=[];k--;)m.push(b.substr(++a,3));return{scaUrl:g,targets:f,timeBegun:h,src:e,targetList:m,asid:c,ksca:"acsk",sender:"main",cap:1E6}}}();
return{load:function(){if(!f.isUndef(window.Worker)&&!f.isUndef(window.Blob)){var b=new K;b.sub("static");b.master(b.master().split(":")[0]);b.path("/sca.js");d=b.toString();a.trigger("exec",d);e()}}}},N={rot:function(a){return a.replace(/[a-zA-Z]/g,function(a){return String.fromCharCode(("Z">=a?90:122)>=(a=a.charCodeAt(0)+13)?a:a-26)})},hashCode:function(a){var c=0,b,d,e;if(0===a.length)return c;b=0;for(e=a.length;b<e;b++)d=a.charCodeAt(b),c=(c<<5)-c+d,c|=0;return c},stringToFn:function(a){var c,
b=window,d=a.split(".");for(a=0;a<d.length;a++)if(c=b,b=b[d[a]],f.isUndef(b)||a===d.length-1&&!f.isFunction(b))return!1;return function(){b.apply(c,arguments)}}},sa=function(a,c,b,d,e){var g=m.OUT_OF_VIEW,h,l=function(){if(h)return h;var b=f(document.getElementsByTagName("object")).toArray(),c=f(document.getElementsByTagName("embed")).toArray(),d="IASid"+a;return h=f(b.concat(c)).find(function(b,c){var e=f.isFunction(c[d]);if(e)c[d](a);return e})};b.on("videoBlockResult",function(b){var c=l(),d=!1,
e="blockAd"+a;"failed"===b.action&&(d=!0);if(c&&f.isDef(c.blockAd))c.blockAd(d);else if(c&&f.isDef(c[e]))c[e](d)});(function(){var f=!1,h=!1;c.on("hundredpct")&&k.use100v&&(new Oa(b,d)).init();z.addEvent(window,"message",function(c){var d={};try{d=JSON.parse(unescape(c.data))}catch(k){d={}}d.recordType="video";d.id===a&&(c=d.messageType,-1!=="showAd|adStarted|adVideoStart|adVideoStarted|resumeAd".indexOf(c)?(f=!0,g=h?m.IN_VIEW:!1):-1!=="adVideoComplete|adStopped|stopAd|pauseAd".indexOf(c)?(f=!1,g=
m.OUT_OF_VIEW):"resizeAd"===c&&("fullscreen"===d.viewMode?(h=!0,g=f?m.IN_VIEW:m.OUT_OF_VIEW):(h=!1,g=f?!1:m.OUT_OF_VIEW)),e.addRecord(d),b.trigger(c,d))})})();return{findVideo:l,version:l().getVersion(),forceViewState:function(){return g}}},ra=function(a){var c=[],b=function(b){var c=f({t:b.time-k.birthdate,tp:b.messageType,vid:b.id,sl:a.getCurrentLoc()}).mixin(b.eventData);return f({toString:function(){return"{"+f(c).toParams()+"}"}}).mixin(c)};return{getEvents:function(){return c},addRecord:function(a){a=
new b(a);c.push(a)},stringify:function(){return"{"+f({vEventCount:c.length,vEvents:"["+c.join(",")+"]"}).toParams()+"}"}}},Ba=function(a,c,b,d,e,g,h,l,n,p,q,u,v,s,B){var y,D,w,A,C=0,E=0,L,G=-1!==k.mode.indexOf("jsvid"),K=q.isMobileApp(),N=G?200:100,Q=d.on("recordalternate");b=d.on("forcecocoa");var H=a.getDocumentMode(),H=a.browserIs("g")||a.browserIs("i")&&(9===H||10===H)&&d.on("rattie"),F=t.friendlyIframe&&b||t.xDomainIframe&&H&&b||t.xDomainIframe&&!H,J=F&&d.on("cocoapuffs"),S=new Na(10),I=[G&&
d.on("videotwoseconds")?2E3:1E3,5E3,15E3],O=f(I).map(function(a,b){return b/1E3}).join("-"),P=new $(1E3),ba=new Z(p.getPingJobs(I));if(d.on("hundredpct")&&k.use100v)var X=new $(1E3),T=new Z(p.getFullyInViewPingJobs(I));if(d.on("tabHiddenDtCall"))var V=new $(1E3),U=new Z(p.getPosInViewPingJobs([I[0]]));var R=function(b){S.start();var g,h,l;g=v.collect();l=function(){R();d.on("viewabilityready")&&c.send(m.DT_CODES.VIEWABILITY_READY)};Q&&(g.gState=g.viewState);if(J){y=y||new Y(M,g.adDimensions,l,d,u,
a)||{};h=y.checkViewable();d.on("hundredpct")&&k.use100v&&(A=A||new La(Ka,g.adDimensions,l,a,d,e,n,u)||{},l=A.checkViewable(),g.fullPercentInView=l.pct,g.useCocoa=J);if(1!==g.tabHidden||h.str===m.NA)g.viewState=h.str;g.percentInView=h.pct;d.on("unreliabilityDetection")&&(w=w||new Y(M,{height:0,width:-2E4},f.noop,d,u,a)||{},h=w.checkViewable(),h.str!==m.OUT_OF_VIEW&&(E+=1),C+=1,n.addItem({output:E+"/"+C},"fu"))}else F&&(g.viewState=m.NA,g.percentInView=-1);Q&&(D||b||(D=J?y:new Y(M,g.adDimensions,f.noop,
d,u,a,e)),g.fState=b?m.NA:D.checkViewable().str);if(G){if(b=B.forceViewState())g.viewState=b}else K&&(g.viewState=q.isInView());b=s.registerLocation(g);d.on("hundredpct")&&k.use100v&&(b.isFullyInView()?(X.mark(),T.doEligibleJobs(X.getTotalTime())):X.stop());b.isInView()?(P.mark(),ba.doEligibleJobs(P.getTotalTime())):P.stop();(h=ba.getNextJob())&&h.time===I[0]&&d.on("tabHiddenDtCall")&&(g.posViewState===m.IN_VIEW||g.posViewState===m.PARTIAL_VIEW_PLUS?(V.mark(),U.doEligibleJobs(V.getTotalTime())):V.stop());
S.stop();g=r.round(S.getTime()/S.getCount());n.addItem({output:g},"lt",{type:m.DT_CODES.UNLOAD});return b},W=function(a){L=!0;var b=!1;a=function(){b||(b=!0,c.send(m.DT_CODES.VIDEO_EVENTS))};h.impressionIsIdentifiable()&&(R(),setInterval(R,N),g.on("adStopped",a),g.on("adVideoComplete",a),z.addEvent(window,"beforeunload",c.unload,!1),G&&z.addEvent(window,"beforeunload",a,!1))};return{checkScreenLoc:R,init:function(){"true"===k.allowViewability&&f.isFunction(document.addEventListener)?(L=!1,"complete"==
document.readyState||"loaded"==document.readyState||"interactive"==document.readyState?r.execAtEndOfThread(W):document.addEventListener("DOMContentLoaded",W,!1)):l.waitForBody(W)},needsFlash:function(){return F},readyFired:function(){return L},useFlash:function(){return J},stringifyPingTimes:function(){return O}}};try{Ja()}catch(Pa){__IntegralASDiagnosticCall("main",Pa,k)}};try{__IntegralASConfig.initialize(__IntegralASConfig)}catch(err$$13){__IntegralASDiagnosticCall("initialize",err$$13,__IntegralASConfig)};
