(function(a,m,c,i,na,ka,b,x,oa,ma,k,Y,Aa,n,J,pa,W,ua,G,M,O,v,p,Z,z,A,B,q,y,j,l,h,r,u,w,D,s,t,o,ya,ca,da,ba,Ia,f){
a(m,[c,i],function(S,J){function T(a,b,c){var d,f={autoPlay:1,loopVideo:1,soundOn:1,isStreaming:1};for(d in a){var g=a[d];"string"===typeof g?null!=b[d]&&(c[g]=f[g]?!!b[d]:b[d]):b[d]&&T(g,b[d],c)}}function U(){}function V(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}function W(a,b){return(b=b||n)&&b.getElementById&&b.getElementById(a)}function E(a,b){var c=b?"string"==typeof a?W(a):a:n;return c?c.getElementsByTagName(b||a):[]}function F(a,b){return~(" "+a.className+
" ").indexOf(" "+b+" ")}function X(a,b){F(a,b)&&(a.className=(" "+a.className+" ").replace(" "+b+" "," ").slice(1,-1),X(a,b))}function ha(a,b){var c,d=a.ownerDocument.defaultView;d&&(d=d.getComputedStyle(a,null))&&(c=d.getPropertyValue(b.replace(ia,"-$1").toLowerCase()));return c||a.style[b]}function ja(a,b){var c,d=a.style,f=a.currentStyle&&a.currentStyle[b];if(!ka.test(f)&&la.test(f)){var g=d.left;if(c=a.runtimeStyle&&a.runtimeStyle.left)a.runtimeStyle.left=a.currentStyle.left;d.left="fontSize"===
b?"1em":f||0;f=d.pixelLeft+"px";d.left=g;c&&(a.runtimeStyle.left=c)}return""===f?"auto":"curStyle"}function K(a){var b=a.offsetTop,c=a.offsetLeft,d,f=e.curCSS,g="static"!=f(a,"position");b||(b=(parseFloat(f(a,"marginTop"))||0)+(g?parseFloat(f(a,"top"))||0:0));c||(c=(parseFloat(f(a,"marginLeft"))||0)+(g?parseFloat(f(a,"left"))||0:0));g&&a.getBoundingClientRect&&(d=e.offset(a,!0));!b&&d&&(b=d.top);!c&&d&&(c=d.left);return{top:b,left:c}}function ma(a,b){var c=a&&a.ownerDocument;if(!c)return null;if(!b&&
a===c.body)return K(a);try{var d=a.getBoundingClientRect()}catch(g){}if(!d)return{top:0,left:0};var f=c.body;c=c.documentElement;return{top:d.top+(c.scrollTop||f.scrollTop)-(c.clientTop||f.clientTop||0),left:d.left+(c.scrollLeft||f.scrollLeft)-(c.clientLeft||f.clientLeft||0)}}function na(a){var b;var c=a&&a.ownerDocument;if(!c)return null;if(a===c.body)return K(a);var d=a.offsetParent;var f=c.documentElement;var g=c.body;var k=(c=c.defaultView)?c.getComputedStyle(a,null):a.currentStyle;var l=a.offsetTop;
var m=a.offsetLeft;for(b=Y();(a=a.parentNode)&&a!==g&&a!==f&&(!b.sfp||"fixed"!==k.position);)k=c?c.getComputedStyle(a,null):a.currentStyle,l-=a.scrollTop,m-=a.scrollLeft,a===d&&(l+=a.offsetTop,m+=a.offsetLeft,!b.dnab||b.dabftac&&oa.test(a.nodeName)||(l+=parseFloat(k.borderTopWidth)||0,m+=parseFloat(k.borderLeftWidth)||0),d=a.offsetParent),b.sbfonv&&"visible"!==k.overflow&&(l+=parseFloat(k.borderTopWidth)||0,m+=parseFloat(k.borderLeftWidth)||0);if("relative"===k.position||"static"===k.position)l+=
g.offsetTop,m+=g.offsetLeft;b.sfp&&"fixed"===k.position&&(l+=Math.max(f.scrollTop,g.scrollTop),m+=Math.max(f.scrollLeft,g.scrollLeft));return{top:l,left:m}}function pa(a){return"[object Array]"==Object.prototype.toString.call(a)}function Z(a){var b={relativeX:a[y[0]],relativeY:a[y[1]]};if(null==a.pageX&&null!=a.clientX){var c=n.documentElement;var d=n.body;b.pageX=a.clientX+(c&&c.scrollLeft||d.scrollLeft||0);b.pageY=a.clientY+(c&&c.scrollTop||d.scrollTop||0)}else b.pageX=a.pageX,b.pageY=a.pageY;return b}
function qa(a,b){var c,d=e.curCSS;a=a.parentNode;if(!a)return!1;if(p.$sf)return!0;var f=a.ownerDocument;var g=f.body;if(z&&(8>f.documentMode||"BackCompat"==f.compatMode))return!1;for(b&&(b+=1);a&&a!=g;){if("hidden"==d(a,"overflow"))return!1;if("fixed"==d(a,"position"))break;else if(b&&(c=parseInt(d(a,"z-index"),10))&&c<b)return!1;a=a.parentNode}return!0}function ra(){for(var a=0,b=[];a<v.length;a++)"complete"!=v[a].document.readyState&&b.push(v[a]);if(!(v=b).length||3E4<(new Date).getTime()-aa){A=
sa(A);for(a=0;a<G.length;a++)G[a]();G=[];v=[]}}function ba(a,b){var c=Math.max(a.x,b.x),d=Math.max(a.y,b.y),f=Math.min(a.x+a.width,b.x+b.width)-c,g=Math.min(a.y+a.height,b.y+b.height)-d;return 0<f&&0<g?{x:c,y:d,width:f,height:g}:{x:0,y:0,width:0,height:0}}function ca(a,b,c,d){var f=b.src||b.href;S.log("legacy_loadFile",f);var g=function(r){d&&d.apply(r,arguments)},k=E(c,"head");k=k&&k[0];if(!k)try{throw Error("Can't find head tag.");}catch(r){g(r)}var l=f.replace(/[^\da-z_-]/gi,"_"),m=c.adformId||
e.gid("doc_"),L=m+"|"+l,w=M[L];l=e.byTag(c,a);var t=0,N=l.length;c.adformId=c.adformId||m;if(w)w.loaded?g():w.callbacks.push(g);else{for(;t<N;++t)if(l[t].src==f||l[t].href==f){g();return}M[L]=w={doc:c,src:f,callbacks:[g]};var q=c.createElement(a);V(q,b);if(d){var O=function(r){q.onload=q.onreadystatechange=q.onerror=null;r?M[L]=null:w.loaded=1;var da=w.callbacks;t=0;for(N=da.length;t<N;++t)da[t](r)};q.onload=function(){O()};q.onreadystatechange=function(){"complete"==q.readyState&&O()};q.onerror=
function(){try{throw Error("Failed to load script: "+f);}catch(r){O(r)}}}P(function(){k.insertBefore(q,k.firstChild)},400)}}var A,aa,x,p=S.window,n=p.document,ta=p.setInterval,P=p.setTimeout,ua=p.clearTimeout,sa=p.clearInterval,H=p.navigator,va=Array.prototype.slice,v=[],G=[],M={},y=[["offsetX","offsetY"],["layerX","layerY"]],ia=/([A-Z])/g,ka=/^-?\d+(?:px)?$/i,la=/^-?\d/,oa=/^t(?:able|d|h)$/i,ea=n.defaultView,wa=n.createElement("div"),Y=function(){function a(){return a}var b=n.body,c=n.createElement("div");
var d=["position:absolute;top:0;left:0;margin:0;padding:0;border:0;width:1px;height:1px;"].pop();c.innerHTML='<div style="'+d+'visibility:hidden"><div style="'+d+'border:5px solid #000"><div style="margin:0"></div></div><div style="'+d+'"><div style="'+d+'position:fixed;top:20px;"></div></div><div style="'+d+'position:relative;border:5px solid #000;overflow:hidden"><div style="margin:0"></div></div><table style="'+d+'border:5px solid #000" cellpadding="0" cellspacing="0"><tr><td></td></tr></table></div>';
b.insertBefore(c=c.firstChild,b.firstChild);d=c.childNodes;a.dnab=5!==d[0].firstChild.offsetTop;a.sfp=20===d[1].firstChild.offsetTop;a.sbfonv=-5===d[2].firstChild.offsetTop;a.dabftac=5===E(c,"td").offsetTop;b.removeChild(c);b=c=d=null;return Y=a},B=H.vendor;var h=H.userAgent;var u=J.RMB,e=u.lib||(u.lib={}),C=/Apple Computer/i.test(B);u=/Google/i.test(B);var D=e.isIPad=/iPad/i.test(h),I=e.isIPhone=/iPhone/i.test(h);D=e.isIOS=D||I;var Q=e.isTouch="ontouchstart"in n.documentElement||"ontouchstart"in
p,xa=e.isOrientation="orientation"in p;I=e.isAndroid=!D&&/Android/i.test(h);var R=e.isMobile=/Mobile|Mobi|Tablet|Nokia/i.test(h)||Q,z=e.isIE=/msie|Trident/i.test(h);Q=e.isFF=/Firefox[\/.]+[^\s]/i.test(h);R=e.isWinPhone=z&&R&&/Phone/gi.test(h);var ya=e.isOpera=/Opera/i.test(h),za=e.isOperaMobile=/Opera\s(?!Mini)/i.test(h),Aa=e.isOperaMini=/Opera\sMini/i.test(h);B=e.isOperaWebKit=/OPR/i.test(h)&&/Opera Software/i.test(B);var fa=e.isChrome=/(Chrome|CriOS)+\/[\d\.]+\s/i.test(h)&&(D?C:u);C=e.isSafari=
!/Chrome|CriOS|Skyfire/i.test(h)&&/Safari+\/[\.\d]+$/i.test(h)&&C;u=e.isInternet=I&&!fa&&xa&&/Safari\/[\.\d]+$/i.test(h)&&u;var Ba=z?"msie":Q?"firefox":za?"operaMobile":Aa?"operaMini":ya?"opera":B?"operaWebKit":fa?"chrome":C?"safari":u?"internet":!1;e.isAndroidApp=I&&!/^(?:Opera|Mozilla)/i.test(h);e.isIOSF=D&&(x=/\sos\s(\d+)_\d+/i.exec(h))&&(x=4<x[1]>>0);e.isMACOS=/Mac OS X/i.test(h);R&&(x=/Windows Phone (OS )?(\d+[\.\d]*)/i.exec(h))&&x[2]&&(e.winPhoneVer=parseFloat(x[2]));e.isEdge=/Edge\/[\.\d]+$/i.test(h);
e.isAfmaSDK=/afma-sdk/i.test(h);e.browser=function(){return Ba};if(z&&("Microsoft Internet Explorer"==H.appName&&/MSIE (\d+[\.\d]*)/i.exec(h)||/rv:(\d+[\.\d]*)/i.exec(h)))var Ca=e.ieVersion=parseFloat(RegExp.$1);C&&(h=/Version.([\d.]+)/.exec(h),e.safariVersion=parseFloat(h&&h[1]));e.inherit=function(a,b){a.super_=b;U.prototype=b.prototype;a.prototype=new U;a.prototype.constructor=a};e.gid=function(a){var b=+new Date;return(a||"")+(b+b*~~(1E4*Math.random())).toString(36)};e.byId=W;e.byTag=E;e.bind=
function(a,b){return function(){return b.apply(a,arguments)}};e.extend=V;e.isMouseLeave=function(a,b){var c,d,f=b.length;if(a&&"mouseout"==a.type)for(c=a.relatedTarget||a.toElement;c;){for(d=0;d<f;d++)if(b[d]==c)return!1;c=c.parentNode}return!0};e.singleCall=function(a){function b(){g=!1;var k=d,l=c,m=f;c=d=f=null;k.apply(l,m)}var c,d,f,g;return function(k,l){c=k;d=l;f=va.call(arguments,2);l&&!g?g=P(b,a):!l&&g&&(ua(g),g=!1)}};e.onload=function(a,b){try{do{if(a.__adform_onload)break;a.__adform_onload=
!0;"complete"!=a.document.readyState&&(v.push(a),A||(aa=(new Date).getTime(),A=ta(ra,200)))}while(a!=a.parent&&(a=a.parent))}catch(c){}A?G.push(b):P(b,0)};e.overlap=ba;e.overlapElem=function(a,b){var c=e.offset(a),d=e.offset(b);return ba({x:c.left,y:c.top,width:a.offsetWidth,height:a.offsetHeight},{x:d.left,y:d.top,width:b.offsetWidth,height:b.offsetHeight})};e.hasClass=F;e.addClass=function(a,b){F(a,b)||(a.className+=" "+b)};e.removeClass=X;e.loadScript=function(a,b,c){ca("script",{src:b,type:"text/javascript"},
a,c)};e.loadCSS=function(a,b){ca("link",{href:b,type:"text/css",rel:"stylesheet"},a)};e.navigator=H;e.isTMX=function(a){var b,c,d=!1;try{d=(c=(b=a.document)&&b.body)&&F(c,"tmx")}catch(f){}return d};e.isolate=function(a,b){var c=a.__adform_isolate;if(!c){var d=a.document;c=E(d,"head")[0];d=d.createElement("script");d.type="text/javascript";d.text='function __adform_isolate(f){new Function("window","("+f+")(window)")(window)}';c.insertBefore(d,c.firstChild);c.removeChild(d);c=a.__adform_isolate}c?c(b):
(new Function("window","("+b+")(window)"))(a)};e.addEvent=function(a,b,c){return a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent?a.attachEvent("on"+b,c):!1};e.removeEvent=function(a,b,c){return a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent?a.detachEvent("on"+b,c):!1};e.curCSS=ea&&ea.getComputedStyle&&ha||n.documentElement.currentStyle&&ja;e.offsetFromWindow=function(a){var b=a&&a.ownerDocument;if(!b)return null;var c=b.documentElement;if("getBoundingClientRect"in c){try{var d=
a.getBoundingClientRect();var f=c.getBoundingClientRect()}catch(g){}if(!d)return{top:0,left:0};if(0<f.left||0<f.top)d.top-=f.top,d.left-=f.left;return{top:d.top,left:d.left}}d=b.defaultView||b.parentWindow;f=b.body;if(a===b.body)return K(a);a=e.offset(a);b=d&&d.pageYOffset||c.scrollTop||f.scrollTop;c=d&&d.pageXOffset||c.scrollLeft||f.scrollLeft;a.top-=b;a.left-=c;return a};e.offset="getBoundingClientRect"in n.documentElement?ma:na;e.client=function(a){a=a.ownerDocument||a;var b=a.defaultView||a.parentWindow;
var c=a.documentElement;var d=a.body;if(b.innerWidth){a=b.innerWidth;var f=b.innerHeight}else c?(a=c.clientWidth,f=c.clientHeight,a&&d.clientHeight==d.offsetHeight||(a=Math.min(a||123456789,d.clientWidth||123456789),f=Math.min(f||123456789,d.clientHeight||123456789))):(a=d.clientWidth,f=d.clientHeight);return{left:b&&b.pageXOffset||c&&c.scrollLeft||d&&d.scrollLeft||0,top:b&&b.pageYOffset||c&&c.scrollTop||d&&d.scrollTop||0,width:a,height:f}};e.isArray=Array.isArray||pa;e.getMousePos=function(a){for(var b;b=
y.shift();)if("undefined"!=typeof a[b[0]]){y=b;break}b||(y=["x","y"]);e.getMousePos=Z;return Z(a)};e.html=function(a,b){var c=!b&&wa||b.createElement("div");c.innerHTML=a;return c.firstChild&&c.removeChild(c.firstChild)};e.setMapValues=T;e.testPlace=z&&8>Ca?function(){return!1}:qa;J.lib||(J.lib=e);return e});
a(na,[i],function(f){function k(a){this._delay=a||0;this._diff=this._start=this._count=this._partial=0;this.active=!1;this.count=this.time=0;this._list=[]}var g=Date.now||function(){return(new Date).getTime()};f.ET.Timer=k;k.calculateEngagement=function(){var a,b;var c=arguments;var d=[],h=g(),l=0;for(a=0;a<c.length;a++){var e=c[a]._list;for(b=0;b<e.length;b+=2)d.push([e[b],e[b+1]||h])}d.sort(function(m,n){return m[0]-n[0]});if(d.length){c=[[d[0][0],d[0][1]]];a=1;b=0;for(e=d.length;a<e;a++)c[b][1]<
d[a][0]?c[++b]=[d[a][0],d[a][1]]:c[b][1]<d[a][1]&&(c[b][1]=d[a][1]);a=0;for(e=c.length;a<e;a++)l+=c[a][1]-c[a][0]}return l};f=k.prototype;f.update=function(){this.active=!1;this._diff=0;var a=this._list,b=this._start,c=this._paused,d=a.length%2;if(b){var h=(c||g())-b;h>=this._delay&&(this.active=!c,this.count=this._count+1,this.time=this._partial+h,this._diff=h,d||c||a.push(b))}!d||b&&!c||a.push(g());return this};f.start=function(){this._start||(this._start=g(),this.update());return this};f.stop=
function(){this._start&&(this.update(),this._count=this.count,this._partial=this.time,this._start=0,this.update());return this};f.paused=function(a){a&&!this._paused?(this._paused=g(),this.update()):!a&&this._paused&&(this.update(),this._paused=0,this._partial=this.time,this._start&&(this._start=g()),this.update());return this};return k});
a(ka,[c,b,i,m,x],function(p,q,e,k,r){function l(){a={visible:!0,interacted:!0,focus:!0,lastUpdate:m(),mouse:{x:-1,y:-1}};d();n&&(a.focus=f.top.document.hasFocus());g()}function g(){var c=m(),t=a.visible&&a.interacted&&a.focus;u(h,"visibilitychange",d);d();n&&(a.focus=a.focus||f.top.document.hasFocus());a.lastInteraction&&(a.interacted=3E4>c-a.lastInteraction);c=a.visible&&a.interacted&&a.focus;t!==c&&b.emit(b.VISIBLE,c);b.wasActive=b.wasActive||c;
return c}function d(c){c=a.visible;a.visible=!h[v];c&&!a.visible&&b.emit(b.VISIBLE,!1)}e=e.ET;var f=p.window,h=f.document,w=k.removeEvent,u=k.addEvent,m=Date.now||function(){return+new Date},n=!1,v=q.hidden,b=new r;b.init=l;b.isActive=g;b.update=g;b.destroy=function(){b.clear();w(h,"visibilitychange",d);a=null};b.IDLE="idle";b.VISIBLE="visible";var a;e.ActiveTab=b;l();return b});
a(oa,[i,na,m],function(c,a,e){function b(){this.exposure=this._exp=this._exposure=this._mod=0;b.super_.apply(this,arguments)}c=c.ET;e.inherit(b,a);a=b.prototype;a._update=a.update;a.update=function(){this._update();this._exp=this._exposure+this._mod*this._diff;this.exposure=Math.round(this._exp);return this};a._stop=a.stop;a.stop=function(){this._start&&(this.update(),this._exposure=this._exp);return this._stop()};a.modifier=function(d){d!=this._mod&&this.active&&
(this.stop(),this._mod=d,this.start());this._mod=d};return c.ExposureTimer=b});
a(ma,[i,na,ka,oa],function(f,e,k,n){function h(b,a){this.minPercent=b;this.minTime=a;var d=this.visibility=new e;this.mouse=(new e(1E3)).paused(!0);this.delaylessMouse=new e;this.video=new e;this.expand=new e;var c=this.exposure=new n;this.viewableVideo=(new e).paused(!0);k.on(k.IDLE,function(g){0<d._start&&(d._start+=g);0<c._start&&(c._start+=g)})}function l(b){var a=this.exposure,d=this.mouse,c=this.visibility,g=c.active,p=c.update().time,
m=this.viewableVideo;!b&&p<this.minTime&&(c._start=null,c.time=0);this.impression=c.time>this.minTime;b&&!g?(a.start(),c.start(),d.paused(!1),m.paused(!1)):!b&&g&&(a.stop(),c.stop(),d.paused(!0),m.paused(!0))}f.ET.Counter=h;f=h.prototype;f.update=function(b,a,d){b=this.visiblePercent=Math.round(100*a/b)||0;this.exposure.modifier(a/d||0);l.call(this,b>=this.minPercent)};f.visiblePercent=0;f.action=function(b){var a=this,d={start:function(){a.mouse.start();a.delaylessMouse.start()},stop:function(){a.mouse.stop();
a.delaylessMouse.stop()}},c={start:function(){a.video.start();a.viewableVideo.start()},stop:function(){a.video.stop();a.viewableVideo.stop()}};if("stop"===b)return l.call(a,!1);if((b={over:1,out:2,expand:3,collapse:4,videoPlay:5,videoStop:6}[b])&&b--)[d,a.expand,c][b>>1][b%2?"stop":"start"]()};return h});
a(k,[i,m],function(u,k){function q(){function d(b){h.push(this);this._doc=b;this._events={};this.dispatchHover=k.bind(this,r)}function r(){var b,a;var c=d._hoverTarget;for(var e=[],g=[],f=d._hoverChain,l=RegExp("adform-domevents-hover-\\S+","g");c&&"undefined"!=(b=typeof c.className);)"string"==b&&0<=c.className.indexOf("adform-domevents-hover-")&&e.unshift(c),c=c.parentNode;for(a=Math.max(e.length,f.length)-1;0<=a&&f[a]!=e[a];a--){if(f[a])for(b=p(f[a].className,"adform-domevents-hover-",
l),c=0;c<b.length;c++)b[c].call(f[a],"hoverout",f[a]);if(e[a])for(b=p(e[a].className,"adform-domevents-hover-",l),c=0;c<b.length;c++)g.push([b[c],e[a]])}if(g.length)for(a=0;a<g.length;a++)g[a][0].call(g[a][1],"hoverin",g[a][1]);d._hoverChain=e}function p(b,a,c){b=b.match(c);c=[];if(b)for(b=("x|"+b.join("|")).split("|"+a).slice(1),a=0;a<b.length;a++)m[b[a]]&&c.push(m[b[a]]);return c}function t(b){var a;for(a=0;a<h.length;a++)if(h[a]._doc==b)return h[a]}var h=[],m={},n=d.prototype;d.create=q;d.destroy=
function(b){var a;if(b)(a=t(b))&&a.destroy();else for(;h.length;)h[0].destroy()};d.on=function(b,a,c){var e=b.ownerDocument;(d.find(e)||new d(e)).on(b,a,c);return this};d.off=function(b,a,c){var e=d.find(b.ownerDocument);e&&e.off(b,a,c);return this};d.find=t;d.dispatchHover=r;d.dispatchClick=function(b,a){for(var c,e,g,f=[],l=RegExp("adform-domevents-click-\\S+","g");b&&"undefined"!=(c=typeof b.className);)"string"==c&&0<=b.className.indexOf("adform-domevents-click-")&&f.unshift(b),b=b.parentNode;
for(c=f.length-1;0<=c;c--)for(e=p(f[c].className,"adform-domevents-click-",l),g=0;g<e.length;g++)e[g].call(f[c],"click",f[c],a)};d._hoverChain=[];d._hoverTarget=null;n.on=function(b,a,c){var e=c._adform_dom_key;e||(e=c._adform_dom_key=k.gid());e in m||(m[e]=c);c="adform-domevents-"+a+"-"+e;0>b.className.indexOf(c)&&(b.className+=" "+c,this.setup(a))};n.off=function(b,a,c){if(c=c._adform_dom_key)b.className=b.className.replace("adform-domevents-"+a+"-"+c,"")};n.destroy=function(){var b,a,c=this._events,
e=this._doc,g=d._hoverChain;for(b in c){var f=c[b];for(a in f)k.removeEvent(e,a,f[a])}for(b=h.length;0<b--;)if(h[b]==this){h.splice(b,1);break}g[0]&&g[0].ownerDocument==e&&(d._hoverChain=[],d._hoverTarget=null);this._doc=this._events=null};n.setup=function(b){var a=this._doc,c=a.defaultView||a.parentWindow;if(!this._events[b])if(this._events[b]={},"hover"==b){if(a.addEventListener){var e=function(f){d._hoverTarget!=f.target&&(d._hoverTarget=f.target,d.dispatchHover())};var g=function(f){d._hoverTarget!=
f.relatedTarget&&(d._hoverTarget=f.relatedTarget,d.dispatchHover())}}else e=function(){c=a.defaultView||a.parentWindow;d._hoverTarget!=c.event.srcElement&&(d._hoverTarget=c.event.srcElement,d.dispatchHover())},g=function(){c=a.defaultView||a.parentWindow;d._hoverTarget!=c.event.toElement&&(d._hoverTarget=c.event.toElement,d.dispatchHover())};k.addEvent(a,"mouseover",this._events[b].mouseover=e);k.addEvent(a,"mouseout",this._events[b].mouseout=g);k.addEvent(a,"mousemove",this._events[b].mousemove=
e);d._hoverChain=[]}else"click"==b&&(e=a.addEventListener?function(f){d.dispatchClick(f.target,f)}:function(f){c=a.defaultView||a.parentWindow;f=c.event;d.dispatchClick(f.srcElement,f)},k.addEvent(a,"mousedown",this._events[b].mousedown=e))};return d}var v=q();return u.RMB.DOMEvents=v});
a(Y,[k],function(a){return a.create()});
a(Aa,function(){return function(f){for(var g=f.length,a=f[g-1],b=0,c=0,d=a.width,e=a.height,h=0,k=0;0<g--;)a=f[g],b=Math.max(0,b),c=Math.max(0,c),d=Math.min(a.width,d),e=Math.min(a.height,e),b+=a.x,c+=a.y,d+=a.x,e+=a.y,h+=a.x,k+=a.y;return b<d&&c<e&&{elemx:h,elemy:k,x:b,y:c,width:d-b,height:e-c}||{x:0,y:0,width:0,height:0}}});
a(n,[c,b,i],function(g,k,l){function p(b,c,f,d){Math.random()<(f||.03)&&a.queue.push({category:b,message:c,level:d});return{send:m}}function m(){for(var b=a.queue,c=b.length,f=c,d=new q,h;c--;)h=b.pop(),d.append("key"+(c+1),h.category),d.append("msg"+(c+1),h.message),d.append("level"+(c+1),h.level||"error");f&&(b=r((l&&l.host||"//track.adform.net")+"/serving/jslog/"))&&(b.onload=k.nop,b.onerror=k.nop,b.send(d))}function r(b){var c=null;return c={send:function(f){t.sendBeacon(b,
f)}}}var n=g.window,t=n.navigator,e=k.topAcc,u=e.setInterval;e=e.Adform=e.Adform||{};var q=n.FormData;g=g.log;var a=l.Log=e.Log=e.Log||{};a.queue=a.queue||[];a.sendMessage=a.sendMessage||g;a.pushMessage=a.pushMessage||p;a.notify=a.notify||u(m,1E3);return a});
a(J,[c,b,i,m,Aa,n],function(w,I,J,z,x,K){function E(){var b,d;if((b=q.$sf)&&(b=b.ext)&&b.geom&&(b=b.geom())){var a=b.self;if(d=b.par){b=+a.t;var k=+a.r,e=+a.b;a=+a.l;var c=+d.t,l=+d.r,g=+d.b;d=+d.l;d=Math.max(a,d);c=Math.max(b,c);k=Math.min(k,l);e=Math.min(e,g);b={x:d-a,y:c-b,width:k-d,height:e-c}}else b={x:0,y:0,width:a.w*a.xiv,height:a.h*a.yiv};return b}}function F(b){var d=b.screen,
a=d.availLeft||d.left||0,k=d.availTop||d.top||0,e=d.availWidth;d=d.availHeight;n=Math.min(n,a);r=Math.max(r,a+e);p=Math.min(p,k);t=Math.max(t,k+d);var c=[b.mozInnerScreenX,b.mozInnerScreenY];var l=b.screenX;a=b.screenY;k=l+b.outerWidth;b=a+b.outerHeight;n>=k-8&&(n=Math.floor(l/e)*e);r<=l+8&&(r=Math.ceil(k/e)*e);p>=b-8&&(p=Math.floor(a/d)*d);t<=a+8&&(t=Math.ceil(b/d)*d);return c}var q=w.window;w=q.screen;var y,A=[],G=!0,n=0,r=w.availWidth,p=0,t=w.availHeight;return J.ET.ViewUtil={inView:function(b,
d){var a=[],k=b,e=I.access,c,l=e.length,g=q,H=k.ownerDocument,B=[];if(!y)for(y=[],A=[],c=0;c<l;c++){y[c]=e[c]?g:null;if(e[c+1]){var L=A,M=c+1;if(e[c])var u=g.frameElement;else a:{u=g;for(var C=g.parent.document.getElementsByTagName("iframe"),D=C.length;D--;)if(C[D].contentWindow==u){u=C[D];break a}u=void 0}L[M]=u}g=g.parent}g=H.defaultView||H.parentWindow;for(c=0;c<l;c++)if(y[c]==g){B=A.slice(c);break}B[0]=k;e=B;c=0;l=e.length;for(k="PageGeometry";c<l;c++)if(b=e[c]){var m=z.client(b),f=z.offset(b);
f={x:f.left,y:f.top,width:b.offsetWidth,height:b.offsetHeight};if(!h){var h=f;h.area=h.width*h.height;h.visible=!0}if(!f.height||"hidden"==z.curCSS(b,"visibility"))return h.visible=!1,h;a.unshift({x:f.x-m.left,y:f.y-m.top,width:f.width,height:f.height});a.unshift({x:0,y:0,width:m.width,height:m.height});f=b.ownerDocument;f=f.defaultView||f.parentWindow}e={x:0,y:0,width:0,height:0};l=F(f);c={x:0,y:0,width:r-n,height:t-p};g={x:f.screenX-n,y:f.screenY-p,width:f.outerWidth,height:f.outerHeight};if(l)h.optimize=
!0,a.unshift(m={x:l[0]-n,y:l[1]-p,width:m.width,height:m.height}),f===f.top?m=x([c,m]):g?(a[0].x-=g.x,a[0].y-=g.y,a.unshift(g),m=x([c,g])):m=c,a.unshift(c);else{if(c=E()){G&&(K.pushMessage("safeframe",q.document.referrer||q.location.href),G=!1);k="SafeFrame";var v=c}v?(h.voidSend=!1,h.optimize=!0,a[0].x=-v.x,a[0].y=-v.y,e={x:0,y:0,width:v.width,height:v.height}):(h.optimize=!0,h.voidSend=!0);a.unshift(e);g&&(m=g)}h.visible&&(a=x(a),a.area=a.width*a.height,h.overlap=a,h.client=m);h.element=b;h.source=
k;return h},getOverlap:x,safeFrame:E,getScreenXY:F}});
a(pa,[i,ma,na,ka,Y,J,m,x,W,n],function(p,E,t,A,v,G,k,H,I,J){function w(a){this.isAppView=I();this.isFirst=1;this.settings=a;this.viewabilitySource=0;var b=a.visitor||{},c=a.visibility||{area:[50],time:[1]},d=(a.publisher||{}).visibility||{area:50,time:1},
f=c.area,g=c.time,e=d.time,h=d.area;"object"!=typeof f&&(f=[f]);"object"!=typeof g&&(g=[g]);this.visibilityArea=f;this.publisherVisibilityArea=h;var q=this.counters=[];for(d=0;d<f.length;d++)50>f[d]&&(this.fullSearch=!0),q.push(new E(f[d],1E3*g[d]));this.viewImpr=new E(h,1E3*e);e=q[0];this.visibility=e.visibility;this.mouse=e.mouse;this.delaylessMouse=e.delaylessMouse;this.video=e.video;this.expand=e.expand;this.exposure=e.exposure;this.viewableVideo=e.viewableVideo;this.clicks={length:0};this.flashClicksCount=
this.jsClicksCount=0;this.hmClicks=[];this.jsClicks=[];this.flashClicks=[];this.children=[];e=(a.banner||{}).size||{};this.dimensions=[{width:e.width,height:e.height}];this.bannerProperties={};this.status="NOT VISIBLE";this.bn=a.bn;this.id=a.id;this.unloadID=a.interactionId;this.width=e.width;this.height=e.height;this.sendUnloadData=c.sendUnload;this.isMobile=b.isMobile;this.objectId||(this.objectId="FlashID"+this.id);this.data={visibilityT:0,mouseO:0,activeT:0,exposure:0,visibilityArea:f[0],visibilityTime:g[0],
maxVisibility:0,currentVisibleArea:0};this.hoverDelay=k.singleCall(0);this.hover=k.bind(this,K);this.click=k.bind(this,L);this.hmClick=k.bind(this,M);this._attributes={_videoPlay:!0};1<(a.compoundSeqNo||0)&&(this.unloadID=0)}function L(){this.jsClicksCount++;this.updateData()}function M(a,b,c){(a="object"==b.nodeName.toLowerCase()&&k.byTag(b,"embed")[0])&&20<a.offsetHeight&&(b=a);a=k.offset(b);var d=k.getMousePos(c);c=Math.floor(d.pageX-a.left);a=Math.floor(d.pageY-a.top);0<c&&0<a?this.hmClicks.push({x:c,
y:a}):J.pushMessage("outside_heatmap",this.bn+" "+b.nodeName,.01)}function K(a){this.hoverDelay(this,N,"hoverin"==a)}function N(a){x(this,a?"over":"out");this.updateData()}function x(a,b,c,d,f){var g=a.counters,e=g.length,h=!a.isMobile&&242500<=c;a.isLarge=h?1:a.isLarge;c&&(a.data.visibilityArea=g[0].minPercent=h?30:a.visibilityArea[0]);for(a.viewImpr&&(c&&(a.viewImpr.minPercent=h?30:a.publisherVisibilityArea),g=[a.viewImpr].concat(g),e+=1);e--;)c&&g[e].update(c,d,f),b&&g[e].action(b)}function F(a){for(var b=
y.EngagementTracker().windows,c=0,d=b.length,f,g;c<d;c++)if((g=b[c].document)&&(f=k.byId(a,g)))return f}function B(a,b){return a>=b?a:0}var O={PageGeometry:0,IntersectionObserver:1,mozInnerScreen:2,DOMEvents:3,elementFromPoint:4,requestAnimationFrame:5,SafeFrame:6,MRAID:7,wisp:8,AMP:9,OMID:10},y=p.ET;k.inherit(w,H);y.EngagementItem=w;p=w.prototype;p.attr=function(a,b){var c=this._attributes,d=arguments.length;return 1<d?c[a]=b:d?c[a]:c};p.update=function(){var a,b=(this._elements||this.elements()).slice(),
c=this.fullyLoaded=this.attr("loaded"),d,f=[],g=this.children;if(g.length)for(a=0;a<g.length;a++)b.push.apply(b,g[a]._elements||g[a].elements(this));if(!this.optimizeLoop||A.isActive())for(a=0;a<b.length;a++)if(g=b[a]){var e="object"==g.nodeName.toLowerCase()&&k.byTag(g,"embed")[0];e&&20<e.offsetHeight&&(g=e);try{var h=G.inView(g,this.fullSearch);this.viewabilitySource=O[h.source]||0}catch(n){setTimeout(function(){throw n;},0);return}"voidSend"in h&&(this.doNotSendData=h.voidSend);h.optimize&&(this.optimizeLoop=
!0);d||(d=h);h.visible&&f.push(h)}if(c&&A.isActive()&&this.attr("_videoPlay")&&f.length){d=f[0];e=g=c=b=0;var q=d.client.width*d.client.height;a=0;for(h=f.length;a<h;a++){b+=f[a].overlap.area;g+=f[a].area;for(var l=a+1,r;l<h;l++)r=k.overlap(f[a].overlap,f[l].overlap),c+=r.width*r.height,r=k.overlap(f[a],f[l]),e+=r.width*r.height}x(this,null,g-e,b-c,q||0);a=this.data.currentVisibleArea=this.counters[0].visiblePercent;this.data.maxVisibility=Math.max(this.data.maxVisibility,a)}else x(this,"stop");d&&
(this.data.x=Math.floor(d.x),this.data.y=Math.floor(d.y));this.updateData()};p.elements=function(a){var b,c,d=this,f=a||d,g=d.settings;a=[];var e=g.trackElements,h=k.singleCall(500);if(e){var q=!0;for(c=0;c<e.length;c++)(b=F(e[c]))?a.push(b):q=!1;if(c=g.trackHeatMap)if(b=F(c))v.on(b,"click",d.hmClick);else q=!1;q&&(d._elements=a)}d.object=d.object||a[0];d.onclick=d.onclick||function(){d.emit.apply(d,arguments);f.click.apply(this,arguments)};d.ontouch=d.ontouch||function(){h(f,f.hover)};c=0;for(b;c<
a.length;c++)if(b=a[c])if(v.on(b,"hover",f.hover),v.on(b,"click",d.onclick),b.addEventListener&&!b.__touch&&(b.addEventListener("touchstart",d.ontouch),b.__touch=!0),!e)v.on(b,"click",d.hmClick);return a};p.flashClick=function(a,b){this.flashClicksCount++;this.flashClicks.push({x:parseInt(a,10),y:parseInt(b,10)});this.updateData()};p.engage=function(a){x(this,a)};p.updateData=function(){var a=this.data,b=this.visibility.update();this.status=b.active?"VISIBLE":"NOT VISIBLE";a.visibilityT=b.time;b=
this.mouse.update();a.activeT=b.time;a.mouseO=b.count;a.exposure=this.exposure.update().exposure;this.clicks.length=Math.max(this.jsClicksCount,this.flashClicksCount)};p.toUnloadString=function(a){var b;if(!this.doNotSendData&&this.unloadID&&this.bn&&this.object&&this.sendUnloadData){var c=this.data,d=this.visibility.update(),f=this.mouse.update(),g=this.delaylessMouse.update(),e=this.video.update(),h=this.expand.update(),q=this.exposure.update(),l=this.viewableVideo.update(),r=this.settings,n=this.hmClicks.length?
this.hmClicks:this.flashClicks,u=[],m=0;for(b=n.length;m<b;m++){var C=n[m].x,D=n[m].y;C&&0<C&&D&&0<D&&u.push(C+":"+D)}b=t.calculateEngagement;e=[e];h=[h];l=[l];n=this.children;for(m=0;m<n.length;m++)e.push(n[m].video.update()),h.push(n[m].expand.update()),l.push(n[m].viewableVideo.update());m=b.apply(t,e);l=b.apply(t,l);l=l<=m?l:m;n=b.apply(t,h);b=b.apply(t,[f].concat(e,h));e=this.counters;h=r.publisher||{};c=[c.maxVisibility,B(d.time,e[0].minTime),f.count,c.x||0,c.y||0,f.time,m,b,n,u.join(";"),q.exposure,
y.EngagementTracker().friendly?0:1,"","",e[1]?B(e[1].visibility.update().time,e[1].minTime):"",e[2]?B(e[2].visibility.update().time,e[2].minTime):"",A.wasActive?1:0,g.count,g.time,r.uData||"",h.adxvars||"",this.isLarge||"",this.isFirst+""+this.viewabilitySource,this.isAppView,l,0,""];d=this.bn+","+this.unloadID+",";f=d+c.join("|");a=y.EngagementTracker().queryLimit-(a||100);if(f.length>a){f=0;g=u.length;for(var z;f<g;)c[9]=u.slice(0,z=f+g>>1).join(";"),(d+c.join("|")).length>a?g=z:f=z+1;c[9]=u.slice(0,
z).join(";");f=d+c.join("|")}this.isFirst=0;return f}};p.addChild=function(a){this.dimensions.push({width:a.width,height:a.height});this.children.push(a);a._attributes=this._attributes;a.unloadID&&(this.unloadID=a.unloadID)};p.destroy=function(){var a=this._elements,b=this.mouseCallbacks;if(a)var c=a[0];b&&c&&(k.removeEvent(c,"mouseenter",b.enter),k.removeEvent(c,"mouseleave",b.leave));this._elements=this.object=null};return w});
a(ua,[c],function(l){function g(d){function h(){var a,b,e=+new Date;for(b=0;b<f.length;b++)(a=f[b])&&e>a.startTime+a.delay&&(a.fn(),f.splice(b,1));for(b=0;b<k.length;b++)a=k[b],e>a.startTime+a.delay&&(a.fn(),a.startTime=e);m(h)}var c=d||l.window,m=c.requestAnimationFrame;d=c.setInterval;var n=c.setTimeout,p=c.clearInterval;c=c.clearTimeout;var f=[],k=[];h();return{create:g,setInterval:d,setTimeout:n,clearInterval:p,clearTimeout:c}}return g()});
a(G,[c,i,pa,Y,ka,b,m,x,M,O,v,ua],function(y,n,J,z,r,t,m,h,p,K,u,v){function k(){var a=this;if(k._instance)return k._instance;if(!(a instanceof k))return new k;k._instance=n.ADFEventsInstance=a;a.maxTime=6E5;a.items=a.events={};a.version=15;a.windows=[];a.byBN={};a._items={};a.startTime=q();
a.friendly=!1;try{A.document.getElementById,a.friendly=!0}catch(d){}a.queryLimit=2E3;a.update=m.bind(a,L);a.optimized=m.bind(a,M);m.addEvent(l,"pagehide",function e(c){m.removeEvent(l,"pagehide",e);a.send(!0);c&&c.persisted||a.destroy()});m.addEvent(l,"pageshow",function g(e){e.persisted&&(m.removeEvent(l,"pageshow",g),y.log("pageshow",(a.friendly?A:l).location.href,.1,"info"))});var b=m.bind(a,B);C(b,5E3);r.on("visible",function(e){e?b():b(!0)});C(b,54E4);a.setupWindow(l);try{w!=N&&w.document.getElementById&&
a.setupWindow(w)}catch(e){}try{l.MESSENGER_POPUP&&a.setupWindow(O)}catch(e){}a.registerAll();a.registerInEvents()}function D(){var a=E();if(a)for(var b in a)this.register(a[b])}function F(a){var b=E();b&&(a=this.register(b[a]))&&a.update()}function B(a){this.sendQuery(this.query())}function E(){var a=K();return a&&a.banners}function L(){var a,b=[],d=this.items;r.update();for(a in d){var c=d[a],e=c.settings,g=e.publisher||{},f=e.dsp||{};g=g.publisherUnloadData;e=f.rtbdata;f=f.rtbwp;c.update&&(c.update(),
c.counters&&G(c.counters)&&b.push(c),c.viewImpr&&G([c.viewImpr])&&(g&&this.sendQuery(this.query([c],!0),"&pud="+g),e&&f&&q()-this.startTime<=this.maxTime&&p.sendEvent(c.id,178,0,"Viewable impressions"),c.viewImpr=null))}b.length&&this.sendQuery(this.query(b));this.emit("update")}function G(a){for(var b=!1,d=a.length;d--;)b=!a[d].imprest&&(a[d].imprest=a[d].impression)||b;return b}function P(a,b){var d=this._items[a];if(d){b=","+b+",";var c=H,e;for(e in c)c[e]&&~c[e].indexOf(b)&&d.engage(e)}}function M(){var a=
q();100<a-I&&(I=a,this.update())}var l=y.window,Q=v.setInterval,C=v.setTimeout,R=v.clearInterval,N=l,O=l.MESSENGER_POPUP,A=l.top,w=l.parent,x=t.topAcc;t=n.ET;var q=Date.now||function(){return+new Date};m.inherit(k,h);t.EngagementTracker=k.getInstance=n.ADFEvents=k;var I=0,H={expand:[21,22],collapse:[143],videoPlay:[30],videoStop:[31,32,29,21,22,23,143]};h=k.prototype;h.subscribe=function(a){this.on("update",a)};h.unsubscribe=function(a){this.off("update",a)};h.getItem=function(a){var b=this._items;
if(b&&(b=b[a]))return this.byBN[b.bn]||b};h.registerAll=D;h.registerAllBanners=D;h.register=function(a){var b=this._items,d=this.items,c=this.byBN,e=a.id,g=a.bn,f=b[e];f||1!=a.registered||(f=b[e]=new J(a),a.compoundSeqNo?c[g]?c[g].addChild(f):(d[e]=c[g]=f,f.update()):(d[e]=f,f.update()));return f};h.addObjectEvents=F;h.addStandardEvent=F;h.checkVisibility=function(a){a&&a.update&&a.update()};h.registerBannerProperties=function(){};h.addClick=function(a,b,d){(a=this.items[a])&&a.flashClick&&a.flashClick(b,
d)};h.registerInEvents=function(){if(p&&p.registerCallback){var a=H,b;for(b in a)a[b].join&&(a[b]=","+a[b].join(",")+",");p.registerCallback(P,this)}};h.query=function(a,b){var d=[],c,e;a=a||this.items;for(var g in a)if((c=a[g])&&c.toUnloadString){var f=c.sendUnloadData;b&&(c.sendUnloadData=1);(e=c.toUnloadString())&&d.push(e);c.sendUnloadData=f}if(0<d.length)return d.join("@@")};h.send=B;h.sendQuery=function(a,b){if(q()-this.startTime<=this.maxTime&&a){a=n.host+"/serving/unload/?version="+this.version+
(b||"")+"&unload=@@"+a;var d=this.queryLimit;if(a.length>d){for(var c=a.split("@@"),e=c.shift(),g=e+"@@"+c[0],f=1;f<c.length;f++)(g+"@@"+c[f]).length>d&&(u(g,x),g=e),g+="@@"+c[f];u(g,x)}else u(a,x)}};h.addElement=function(a,b,d){if(a=this._items[a]){d&&this.setupWindow(d);d=a.settings.trackElements;var c=d.length;d.push.apply(d,b);a._elements=null;a.elements();d.length=c;a._elements=null}};h.removeElement=function(a,b,d){this._items&&(a=this._items[a])&&d&&(this.removeWindow(d),a._elements=null)};
h.setupWindow=function(a){for(var b=this.windows,d=0;d<b.length;d++)if(b[d]==a)return;try{var c=a.document;b.push(a);var e=this.update,g=this.optimized,f=m.addEvent;f(a,"resize",e);f(a,"load",e);f(a,"scroll",g);f(c,"mousemove",g);f(c,"mousedown",g);f(c,"mouseup",g);this._winInterval||(this._winInterval=Q(g,100))}catch(U){}};h.removeWindow=function(a){try{var b=a.document,d=this.update,c=this.optimized,e=m.removeEvent;e(a,"resize",d);e(a,"load",d);e(a,"scroll",c);e(b,"mousemove",c);e(b,"mousedown",
c);e(b,"mouseup",c);z.destroy(b)}catch(g){}b=this.windows;for(d=b.length;d--;)if(b[d]==a){b.splice(d,1);break}};h.destroy=function(){this.emit("destroy");for(var a=this.windows,b=a.length;b--;)this.removeWindow(a[b]);this.windows=[];R(this._winInterval);a=this._items;for(b in a)a[b]&&a[b].destroy&&a[b].destroy();r.destroy();z.destroy();this._items=this.items=this.events=this.byBN=null};n._etCallback?n._etCallback(k()):k();return k});
a(p,[i,x,m,G],function(t,e,u,v){function n(){k||(k=v(),k.on("destroy",w),k.subscribe(r),r());return k}function f(b){var a=n();return a&&a.getItem(b)}function l(b){if(this instanceof l)throw Error('This function cannot be used with operator "new".');var a=f(b);a&&a.id&&(b=a.id);return h[b]||(h[b]=new p(b))}function r(){for(var b in h)h[b].refresh()}function w(){for(var b in h)h[b].emit("destroy")}function p(b){var a=this;a.xId=b;
a._queue=[];a._attributes={};a.set("visible",!1);a.set("loaded",!1);a.set("percent",0);a.set("clicksCount",0);a.on("change:loaded",function d(){var c=f(a.xId);if(c){var m=c.elements().slice();if(c.children)for(var q=0;q<c.children.length;q++)m.push.apply(m,c.children[q].elements())}else m=void 0;m.length&&(a.off("change:loaded",d),a._settings.events.emit("trackingElements",m,{creativeId:c.settings.banner.id,tagId:c.settings.bn,impressionId:c.settings.interactionId}))});a.refresh();a._changes=null;
if(!n())a.once("newListener",x)}function x(){n(!0)}var k,h={};u.inherit(p,e);e=p.prototype;e.set=function(b,a){var g=f(this.xId),d=this.get(b),c=this._changes;g?g.attr(b,a):(this._attributes[b]=a,this._queue.push([b,a]));d!==a&&(c||(c=this._changes={}),c[b]=a,this.emit("change:"+b,a,d));return this};e.get=function(b){if(this["get_"+b])return this["get_"+b]();var a=f(this.xId);return a?a.attr(b):this._attributes[b]};e.get_visibleTime=function(){var b=f(this.xId);return b&&b.visibility.time};e.refresh=
function(){var b=this._queue;var a=0,g=b.length,d=f(this.xId);if(d){if(g){for(this.emit("registered");a<g;a++)d.attr(b[a][0],b[a][1]);b.length=0}this.set("visible",d.visibility.active);this.set("percent",d.data.currentVisibleArea);this.set("clicksCount",d.clicks.length);if(b=this._changes)this._changes=null,this.emit("change",b)}return this};e.engage=function(b){var a=f(this.xId);a&&a.engage(b);return this};l.version=function(){};l.load=function(b,a){if(a){var g=l(a.options.xId);g._settings=a}n(!0)};
return t.RMB.EngagementAPI=l});
a(Z,[c,i,x],function(n,u,v){function p(a){var g=k.length,l=d&&w||b&&x||k;if(l)for(;g--;)l[g]&&a.hasOwnProperty(k[g])&&(e[l[g]]=a[k[g]]);if(!q){q=!0;try{d?d.init(e):b?b.register(e.width,e.height,m):f&&y(z,100)}catch(A){n.rethrow(A,"frame-api")}}}function z(){f.enableExpansion({width:e.width+e.left+e.right,height:e.height+e.top+e.bottom,expansionMode:0,collapseCallback:r,expansionCallback:t})}function t(){m("expanded")}function r(){m("collapsed")}function m(a){c.emit(a)}
var y=n.window.setTimeout,d,b,f,q,c=new v,e={},k="width height top right bottom left pushdown".split(" "),w="width height offsetTop offsetRight offsetBottom offsetLeft".split(" "),x="width height t r b l push".split(" "),h={over:!1,pushdown:!1};c.support=h;c.init=function(a){var g=a.inDapMgrIf||a.inDapIF||a.inFIF;b=(b=a.$sf)&&(b=b.ext)&&b.supports&&b;f=a.IN_ADSENSE_IFRAME&&a.CreativeToolset&&new a.CreativeToolset;if(!b&&!f&&g)try{d=a.$WLXRmAd||a.parent.$WLXRmAd}catch(l){}c.msAPI=d;c.sfAPI=b;c.ctAPI=
f;c.hasAPI=!!(d||b||f);d||f?(h.over=!0,h.pushdown=!1):b&&(a=b.supports(),h.over=!0===a["exp-ovr"]||"1"===a["exp-ovr"],h.pushdown=!0===a["exp-push"]||"1"===a["exp-push"])};c.register=p;c.update=p;c.expand=function(a){if(a)c.once("expanded",a);f?f.expandWindow():d?(d.expand(),t()):b&&b.expand(e)};c.collapse=function(a){if(a)c.once("collapsed",a);f?f.collapseWindow():d?(d.collapse(),r()):b&&b.collapse()};return u.IframeApiWrapper=c});
a(z,[i,m,x,Z],function(n,p,u,k){var t={colPosition:"C",expPosition:"TL",x:0,y:0,expX:0,expY:0,xId:"1x",zIndex:1E5,fixed:0,restartAnimation:0,clickEvent:"",showDelay:0,autoShow:0,autoHide:0,behavior:"default",frameRate:0,showTime:0,hideTime:0,loadDelay:0,type:"none",keepCollapsed:0,sideKickAnim:1,landingPageTarget:"_blank",showFloat:1,scriptsBase:n.scriptBase,messenger:!1,hideType:0},v={$tag:"$tag",placeId:"placeId",placement:"placement",
csImpressionUrl:"csImpressionUrl",syncMembersCount:"syncMembersCount",banner:{id:"bannerId",innerBannerId:"innerban",version:"bv",template:{dcoEngineId:"dcoEngineId"},tagId:"bn",wallpaper:{isStreaming:"isStreaming",backgroundImageUrl:"AdformBgImage",backgroundColor:"AdformBgColor",backgroundRepeat:"AdformBgRepeat",backgroundScroll:"AdformBgScroll",backgroundHorizontalPosition:"AdformBgHorizontalPosition",backgroundVerticalPosition:"AdformBgVerticalPosition",isClickable:"isClickable",clickLandingUrl:"AdformBgLink"},
animation:{animationAssetURL:"animURL"},animationAssetUrls:"animURLs",multipanel:"multiPanel",floating:{show:"showFloat",position:"floatingPosition",fromBannerId:"floatFrom"},type:{type:"type",subType:"subtype"},customVariables:"userParams",properties:{zIndex:"zIndex",autoShowAfter:"autoShow",autoCloseAfter:"autoHide",showTimeout:"autoShow",closeTimeout:"autoHide",landingPageTarget:"landingPageTarget",overlayOpacity:"overlayOpacity",overlayColor:"overlayColor",x:"x",y:"y",bannerAlign:"position",fixed:"fixed",
isStreaming:"streamingVideo",expandsTo:"expPosition",pushdown:"behavior",position:"floatPosition",frameRate:"frameRate",collapseTime:"hideTime",closeOnRollOut:"hideType",expandTime:"showTime",showType:"showType",keepCollapsed:"keepCollapsed",enableSideKickAnimation:"sideKickAnim",restartAnimation:"restartAnimation",expandedX:"expX",expandedY:"expY",flashVersion:"version",landingTarget:"landingPageTarget",align:"position",expandDelay:"showDelay",tearPosition:"position",showOnRollOver:"showOnRollOver",
ivTitle:"title",ivPageOverlayOpacityValue:"overlayOpacity",ivAutoCloseIsEnabled:"autoCloseEnabled",ivAutoCloseValue:"autoCloseAfter",quality:"quality",wmode:"wmode"},videoSources:"sources",seqNo:"seqNo",xId:"Id"},isAdNoticeEnabled:"adNotice",visibility:{sendUnload:"sendUnload"},publisher:{adxvars:"adxvars",publisherUnloadData:"publisherUnloadData",visibility:{area:"publisherVisibilityArea",time:"publisherVisibilityTime"}},dsp:{rtbdata:"rtbdata",rtbwp:"rtbwp"},disableFlash:"disableFlash",userParams:{settingsXml:"settingsXml"},
_beforeScript:"_beforeScript"},h="zIndex autoShow autoHide fixed frameRate hideType hideTime showTime showType keepCollapsed restartAnimation expX expY".split(" "),m=["overlayOpacity"],w={0:"default",1:"pushdown",2:"sidekick",3:"floating",takeOver:"takeover",4:"slider"};return function(c){k.init(window);var a=p.extend({},t);p.setMapValues(v,c,a);for(var b=0,f=h.length;b<f;b++)void 0!==a[h[b]]&&(a[h[b]]=parseFloat(a[h[b]]),isNaN(a[h[b]])&&(a[h[b]]=t[h[b]]));b=0;for(f=m.length;b<f;b++)void 0!==a[m[b]]&&
(a[m[b]]+="");b=c.banner;a.hideType=a.hasOwnProperty("hideType")?1==a.hideType?0:1:0;a.showType=a.hasOwnProperty("showType")?0==a.showType?1:2==a.showType?2:0:0;a.showFloat=a.showFloat?1:0;a.position=c.banner.properties&&void 0!==c.banner.properties.bannerAlign?a.position?a.position:"":"L";a.subtype=b.isRMB?"rmb":a.subtype;a.backCompat="standard"==a.type&&!b.isRMB;a.css=a.scriptsBase+"assets/css/Adform.RMB.css?bv="+n.cache;a.ADFban=a.bn;a.disturber=new u;a.iframeAPI=k;a.iab=(!k.hasAPI||k.msAPI)&&
(window.inDapMgrIf||window.inDapIF||window.inFIF)&&!1;a.forceBackup=!(a.iab||k.hasAPI);a.userParams=a.userParams||{};a.xId=c.id;a.behavior=w[a.behavior]||a.behavior;a.animURL&&(a.userParams.animURL=a.animURL);a.animURLs&&(a.userParams.animURL=a.animURLs[0]);"takeover"==a.behavior&&(a.autoShow=.01,a.autoHide=8);if(a.sources){f=a.sources;c=c.staticContentUrl;for(var d=0;d<f.length;d++){var g=f[d];g.external||(g.file=c+g.file);g.external=g.external>>0?"1":"0"}}"expanding"==a.type&&"slider"==a.behavior&&
(a.type="slider");"floating"==a.type&&(delete a.subtype,a.restartAnimation=1,a.position=a.floatFrom?a.floatingPosition>>0:a.floatPosition||a.floatingPosition||a.position);k.msAPI&&!a.showType&&(a.showType=1);f=a.AdformBgImage&&a;g=(c=(c=n.ADFBannerUtils)&&c.getInstance?c.getInstance():void 0)&&c.banners;c={Color:"",Repeat:"",Scroll:"",HorizontalPosition:"center",VerticalPosition:"top"};for(e in g)if(d=g[e],d.bn==a.bn&&d.AdformBgImage){f=d;break}if(f){d='url("'+f.AdformBgImage+'")';for(e in c)d+=" "+
(f["AdformBg"+e]||c[e]);a.wallpaper={link:f.AdformBgLink,background:d}}var e=a.position;f=a.expPosition;d=a.floatFrom;g={1:"M",2:"T",3:"T",4:"T",5:"B",6:"B",7:"M",8:"M",9:"B"};var q={1:"C",2:"C",3:"L",4:"R",5:"L",6:"R",7:"L",8:"R",9:"C"},l={1:"M",2:"Y",3:"Y",4:"Y",5:"N",6:"N",7:"M",8:"M",9:"N"},r={1:"C",2:"C",3:"K",4:"E",5:"K",6:"E",7:"K",8:"E",9:"C"};c=[0,"MC","TC","TL","TR","BL","BR","ML","MR","BC"];g=d?l:g;r=d?r:q;q={custom:"TL","left-up":"BR",takeOver:"BR",left:"TR","left-down":"TR",up:"BL","right-up":"BL",
down:"TL",right:"TL","right-down":"TL"};l=a.$tag&&a.$tag.parentNode;l="inline"==(l&&p.curCSS(l,"display"));switch(a.type){case "standard":d={left:"L",center:"C",right:"R"};a.position=d[e]||(a.backCompat&&!l?"I":"C");break;case "interstitial":a.fixed=1;e=(a.y?"T":"M")+(a.x?"L":"C");a.position=e;a.x>>=0;a.y>>=0;break;case "floating":a.x>>=0;a.y>>=0;d||(0>a.x&&(a.x=0),0>a.y&&(a.y=0));e=(a.y?"T":g[e]||"M")+(a.x?"L":r[e]||"C");a.position=e;break;case "expanding":case "singleExpanding":d={left:"L",center:"C",
right:"R"};a.position=a.colPosition=d[e]||e;a.expPosition=q[f]||f;a.floatPosition=c[a.floatPosition]||a.floatPosition;"custom"!=f&&(a.expX=a.expY=0);break;case "tearback":a.position=a.colPosition=a.expPosition="2"==""+e?"TR":"TL";break;case "slider":a.floatPosition=c[a.floatPosition]||a.floatPosition}e=b.frequency;b=b.properties;e&&b&&b.expandFreqCap&&e[b.expandFreqType]>=b.expandFreqCap&&(a.autoShow=0);return a}});
a(A,[c,m],function(f,e){var d=f.window,g={expandsTo:"TL",wmode:"undefined"},h={banner:{clientSiteId:"cid",tagId:"bn",template:{groupId:"gid",version:"tv",id:"tid",dcoEngineId:"dcoEngineId"},version:"bv",campaignId:"ADFcmpgnID",membershipId:"ADFmembID",id:"ADFbanID",innerBannerId:"ADFbanID",bannerPlacementId:"ADFbanPlacID",streamingVideo:"isStreaming",videoCDN:"videoCDNs",properties:{wMode:"wmode",autoPlay:"autoPlay",soundOn:"soundOn",loop:"loopVideo",wmode:"wmode",isStreaming:"isStreaming",
fonts:"fonts",ivBtnGoToWebsiteIsEnabled:"gotoWebPageEnabled",ivBtnPlayAgainIsEnabled:"playAgainButtonEnabled",expPosition:"expandsTo"},settingsXML:"settingsXML",dynamicAdContent:"dynamicAdContent",rotationSeqenceNumber:"rotseqno",smId:"smid",videoSources:"videoSources"},xId:"ADFid",interactionId:"unloadID",trackingSetupId:"trackingSetupId",compoundSeqNo:"seqNo",visitor:{cookieId:"icid",gdpr:"gdpr",gdpr_consent:"gdpr_consent",gpp:"gpp",gpp_sid:"gpp_sid",us_privacy:"us_privacy",isCcpaOptOut:"ccpa"},
staticContentUrl:"staticDomain",hash:"hash",timeDiff:"timeDiff"},k={gdpr:!0};return function(c){var a=e.extend({},g);e.setMapValues(h,c,a);var b;if(b=c.geoLocation)b=c.geoLocation,b=[b.city.id,b.region.id,b.country.id].join(";");a.geo=b;a.hvfdomain=d.ADFDomainCDN;a.domain=a.staticDomain;c.banner.isRMB&&(a.ADFDomain=a.staticDomain&&a.staticDomain.slice(0,-1),a.evtBaseLink="");b=d.ADFDynamicDomain;d.ADFDomain&&b&&(a.domain=encodeURIComponent(b));a.videoSources&&"standard"!==c.banner.type.type&&(a.ADFDomainCDN=
a.hvfdomain&&a.hvfdomain.slice(0,-1),a.videoCDNs="");for(prop in a)if(a.hasOwnProperty(prop)){value=a[prop];if("object"!==typeof value&&!k[prop])try{value=decodeURIComponent(value)}catch(l){}a[prop]=value}return a}});
a(B,function(){return function(){return{title:"Adform.com",linkText:"Read more",text:"Would you like to know more about why you are seeing this ad?",link:"https://site.adform.com/privacy/adchoices/"}}});
a(q,[c,i,x,m,y,z,A,B],function(M,G,W,B,X,Y,N,O){function P(a,b){for(var d=B.extend({},Q),c=a.assets||[],g=a.backup=a.backup||c&&R(c)||{},e=0;e<c.length;e++)if("image"===c[e].type)if("besrc"===c[e].name){d.src=c[e].url;d.link=C(c[e].clickUrls).backupClickUrl||g.clickUrl||b.backupClickUrl;c[e].size&&(d.height=c[e].size.height,d.width=c[e].size.width);break}else if("esrc"===c[e].name){d.src=c[e].url;
d.link=C(c[e].clickUrls).clickTAG||b.clickTAG;c[e].size&&(d.height=c[e].size.height,d.width=c[e].size.width);break}d.assetId=H(d.src);d.link=d.link?D(d.link):d.link;return d}function R(a){for(var b,d=0;d<a.length;d++)"bsrc"===a[d].name&&(b=a[d]);return b}function K(a,b,d){for(var c=a.banner,g=B.extend({},Z),e=c.asset,h=c.assets||[],n=a.banner.clickUrls[0]&&a.banner.clickUrls[0].name,f=0;f<h.length;f++)if(d){if("html"===h[f].type&&"esrc"===h[f].name){e=h[f];break}if("html"===h[f].type&&"besrc"===h[f].name){e=
h[f];break}}else if("html"===h[f].type&&"src"===h[f].name){e=h[f];break}e&&(g.src=e.url,g.assetId=(e.id||H(e.url))+"",g.flashvars=N(a),c.isRMB?(g.quality=c.properties.quality,g.wmode=c.properties.wmode):g.defaultClickTAG=n,g.link=b.backupClickUrl?b.backupClickUrl:b.clickTAG||b.clickTag||a.clickUrl,e.size&&(g.width=e.size.width||g.width,g.height=e.size.height||g.height),B.extend(g.flashvars,b));g.link=g.link?D(g.link):g.link;return g}function C(a){var b={};a=a?a:[];for(var d=0;d<a.length;d++)b[a[d].name]||
(b[a[d].name]=a[d].url);return b}function D(a){for(var b,d=3;d--&&(2>(b=a.indexOf("://"))||8<b);)try{a=decodeURIComponent(a)}catch(c){d=0}return a}function S(a,b){var d={BR:"TL",TR:"BL",BL:"TR",TL:"BR"};switch(a.type){case I:case T:b.closeButtonAlign=d[a.expPosition]||b.closeButtonAlign;"TR"==b.closeButtonAlign&&b.adNotice&&(b.closeButtonAlign="TL");break;case L:b.closeButtonAlign="TL"==a.position?"BR":"BL";break;case U:b.closeButtonAlign=b.adNotice?"TL":"TR"}}function H(a,b){return a&&~a.indexOf("ADFassetID=")&&
a.match(aa)[1]||b&&b.ADFassetID||0}function V(a){if(a){try{a=decodeURIComponent(a)}catch(b){}0<=a.indexOf("&")||!a.indexOf("http")?a=encodeURIComponent(a):0<=a.indexOf(";CREFURL=")&&(a=a.split(";CREFURL="),a=a.concat(a.pop().split(";C=")),a=a[0]+";CREFURL="+encodeURIComponent(a[1])+(a[2]?";C="+a[2]:""))}return a}var y=M.window,ba=y.parent,J=y.document,ca=J.location,r={},I=r.EXPANDING="expanding",L=r.TEARBACK="tearback",U=r.FLOATING="floating";r.STANDARD="standard";var T=r.SINGLE_EXPANDING="singleExpanding";
r.INTERSTITIAL="interstitial";var da=r.SLIDER="slider",aa=/ADFassetID=(\d*)/,ea=/;obaId=([^;]+)/,Q={src:"",width:0,height:0,link:""},fa={width:0,height:0,poster:"",css:null,closeButtonAlign:null,loop:"false",muted:"true",autoplay:"false",link:null,assetId:0},Z={src:"",width:0,height:0,flashvars:{}};r.getData=function(a){var b=Y(a),d={},c,g,e=a.banner=a.banner||{},h=e.properties=e.properties||{},n=e.clickUrls=e.clickUrls||[],f=(f=G.ADFBannerUtils)&&f.getInstance?f.getInstance():void 0,u=f&&f.banners&&
f.banners[b.xId],p=C(n);n=e.type&&e.type.type||b.type;var ha=e.size&&e.size.width||0,ia=e.size&&e.size.height||0,q=a.banner;f=B.extend({},Q);for(var w=q.assets||[],z=q.backup=q.backup||w&&R(w),E=0;E<w.length;E++)if("image"===w[E].type&&"src"===w[E].name){var A=w[E];break}z?(f.src=z.url,f.link=z.clickUrl||C(z.clickUrls).backupClickUrl||p.backupClickUrl):A?(f.src=A.url,f.link=C(A.clickUrls).clickTAG||p.clickTAG):(f.src=q.url,f.link=p.clickTAG||a.clickUrl||f.link);f.assetId=H(f.src);f.link=f.link?D(f.link):
f.link;A=K(a,p);q={};w=e.assets||[];var l;for(z=0;z<w.length;z++)"politeSrc"===w[z].name&&(l=w[z]);l&&(q.src=l.url,q.assetId=(l.id||H(l.url))+"",q.link=p.backupClickUrl?p.backupClickUrl:p.clickTAG||p.clickTag,l.size&&(q.width=l.size.width,q.height=l.size.height));q.link=q.link?D(q.link):q.link;n==T&&(d.expHtml=c=K(a,p),d.expImage=g=P(e,p),c.height=h.expandedHeight?parseInt(h.expandedHeight,10):c.height,c.width=h.expandedWidth?parseInt(h.expandedWidth,10):c.width,"sidekick"!=b.behavior&&(b.sideKickAnim=
1),delete b.subtype);n==I&&(d.expHtml=c=K(a,p,!0),d.expImage=g=P(e,p),delete b.subtype);n==I&&"slider"==b.behavior&&(n=b.type=da);n==L&&(b.behavior=L);A.width=f.width=ha;A.height=f.height=ia;if(b.sources){var k="expanding"===n||"singleExpanding"===n||"slider"===n?c.src?c:g:A;c=B.extend({},fa);g=N(a);c.sources=b.sources;c.link=k.link||c.link;c.loop="true"===g.loopVideo;c.muted=g.soundOn?"false"===g.soundOn:!0;c.autoplay="true"===g.autoPlay;c.assetId=k.assetId||c.assetId;c.width=k.width||c.width;c.height=
k.height||c.height;c.css=b.css;e.backup&&(c.poster=e.backup.url?e.backup.url:c.poster);c.link=c.link?D(c.link):c.link;k=c}if(u&&(u.compoundSeqNo&&(a.seqNo=u.compoundSeqNo,b.seqNo=b.seqNo||a.seqNo),!b.iframeAPI.ctAPI&&u.isDSPTag&&y!=y.parent))try{y.parent.document.getElementById,y.inFIF=b.iab=!0}catch(ja){G.ADFIframe=1}d.image=d.colImage=f;d.html=d.colHtml=A;d.polite=q;k&&(d.video=k);d.options=b;var m;e=new RegExp("[?;]bn="+b.bn+"\\b");c=b.seqNo&&new RegExp("[?;]compoundSeqNo="+b.seqNo+"\\b|[?;]singleTag=1\\b");
g=B.byTag(J,"script");h=g.length;l=J.body;for(p="compound-"+(c?b.seqNo:"");h--;){var t=m=g[h];if((a=m.src)&&0<a.indexOf("adfscript")&&a.match(e))if(!c){if(!m.getAttribute("adfscript-parsed")){m.setAttribute("adfscript-parsed",!0);break}}else if(a.match(c)&&!m.getAttribute(p)){m.setAttribute(p,!0);break}}for(;0<=h&&t&&l&&t!=l;)t=t.parentNode;b.$tag=b.placement||(t!=l?l&&(l.firstChild||l.appendChild(J.createTextNode(" "))):m);t=m&&m.src;l=u||{};m=b||{};u=O();a=!1;e=l.adNotice||m.adNotice;h=l.dsa||{};
c=h.dsaBuyerRenderRequired;g=h.dsaOnBehalfOf;h=h.dsaPaidBy;l=l.OBAUrl;G.ADFIframe&&(t=ca.search);(t=t&&t.match(ea))&&t[1]&&(m.obaId=t[1],u.link="https://site.adform.com/privacy/adchoices/",a=!0);e||a||c?(l&&(u.link=l),c&&(u.link+="?dsabehalf="+encodeURIComponent(g)+"&dsapaid="+encodeURIComponent(h)),m=u):m=void 0;m&&(A.adNotice=f.adNotice=m,n!=I&&k&&(k.adNotice=m),b.adNotice=1);b.sources&&S(b,k);k={events:new W};for(var v in d)if(d[v].src||d[v].sources)k[v]=d[v];k.image&&B.isIE&&10>B.ieVersion&&(delete k.video,
delete k.html,delete k.expHtml,delete k.colHtml);k.image||k.html||M.log("no_content",b.bn,1);k.options=b;b=k.options;d={zIndex:b.zIndex-1};v=b.iab?ba:y;try{var F=v.ADFORM_OVERLAY||y.ADFORM_OVERLAY}catch(ja){F=y.ADFORM_OVERLAY}f={bn:b.bn+"",closeOnClick:b.overlayCloseOnClick||1,style:d};b.overlayOpacity&&(d.opacity=(b.overlayOpacity>>0)/100);b.overlayColor&&(d.background=b.overlayColor);if(b.type==U&&F){v=0;for(n=F.length;v<n;v++)if(b.bn==F[v].bn){var x=F[v];break}x&&("undefined"!=typeof x.callFrom&&
(f.callFrom=x.callFrom),"undefined"!=typeof x.closeOnClick&&(f.closeOnClick=x.closeOnClick),x.color&&(d.background=x.color),x.opacity&&(d.opacity=x.opacity))}if(x||b.overlayOpacity)k.overlay=f;return k};r.parseFlashvars=function(a){var b,d={};if("string"!=typeof a)d=a||{};else{a=a.split("&");var c=0;for(b=a.length;c<b;c++){var g=a[c].split("=");d[g.shift()]=V(g.join("="))}}return d};r.fixFlashvarsValue=V;r.applyHooks=function(a,b){var d,c;X(a,b);var g=(a.html||a.image||a.video||{}).adNotice||O();
if(d=a.options._adNotice){for(c in d)d.hasOwnProperty(c)&&(g[c]=d[c]);delete a.options._adNotice}a.video&&S(a.options,a.video);return a};return G.RMB.DataParser=r});
a(j,[i,m,x],function(l,g,m){function k(){k.super_.call(this);this._previous={};this._attributes={};this._sets=[]}g.inherit(k,m);g=k.prototype;g.set=function(b,a){var d,c=this._sets,e=this._attributes;if("object"==typeof b)for(d in b)b.hasOwnProperty(d)&&(e[d]=b[d],c.push(d));else e[b]=a,c.push(b);return this.commit()};g.get=function(b){var a=this._attributes;return b?a[b]:a};g.commit=function(){var b,a,d=this._sets,c=this._attributes,e=this._previous,f=this._changes,
h=!1;if(!this._commit&&d.length){this._commit=!0;f||(f=this._changes={});for(b=0;a=d[b];b++)c[a]!==e[a]&&c[a]!==f[a]&&(f[a]=c[a],h=!0,this.emit("change:"+a,c[a],e[a],a));if(h){f={};h=!1;for(a in c)c[a]!==e[a]&&(f[a]=c[a],h=!0);h&&this.emit("change",f)}this._commit=!1;d.splice(0,b);if(d.length)this.commit();else for(a in this._changes=null,c)c.hasOwnProperty(a)&&(e[a]=c[a])}return this};g.onchange=function(b,a){return a?this.on("change:"+b,a):this.on("change",b)};return l.RMB.StateEmitter=k});
a(l,[c,i,m],function(e,u,n){function l(a,b){"string"!=typeof a&&(b=a,a="default");if(this instanceof l)this._id="adfrom-styleSheet-"+a,this._doc=b||v;else return new l(a,b)}var k,p,q;e=e.window;var v=e.document,w=e.setTimeout;e=l.prototype;e.node=function(){var a=this._doc;var b=this._id,c=n.byId(b,a);c||(c=a.createElement("style"),c.type="text/css",c.id=b,c._rules={},n.byTag(a,"head")[0].appendChild(c));!k&&(p=c.sheet?"sheet":"styleSheet",a=c[p])&&(q=a.insertRule?function(d,
f,g,h){d.insertRule(f+" {"+g+"}",h)}:function(d,f,g,h){d.addRule(f,g,h)},k=a.cssRules?"cssRules":"rules");return c};e.set=function(a,b){var c=this.node(),d=c[p];try{var f=c._rules;var g=f[a]}catch(t){}var h=a.split(/\s*,\s*/),m;try{if(1<h.length)for(m=h.length-1;0<=m;--m)this.set(h[m],b);else if(g)g.style.cssText+=";"+b;else if(!d||!d[k])c.appendChild(this._doc.createTextNode(a+"{"+b+"}"));else if(b){var r=d[k].length;try{q(d,a,b,r)}catch(t){w(function(){q(d,a,b,r)},0)}f&&(f[a]=d[k][r])}}catch(t){}return this};
e.destroy=function(){var a=n.byId(this._id,this._doc);a&&a.parentNode.removeChild(a);this._doc=null};return u.RMB.StyleSheet=l});
a(h,[c,i,j,k,l,m,n],function(z,aa,ba,W,O,f,ca){function q(){var b=f.bind;q.super_.call(this);this.cssQueue=[];this.id=f.gid("adform-adbox-");this.set({showing:!1,visible:!0}).onchange("visible",X).onchange("element",X).onchange("zIndex",da).onchange(ea);this._contents={};this._pos={};this.findElement=b(this,fa);this.repositionPage=b(this,P);this.repositionFloated=b(this,L);this.repositionSticky=b(this,Q)}function ha(b){var a;
(a=this._hub)&&a.emit("element",this,this._hubName,b)}function da(b){this.style({zIndex:b})}function fa(){var b=f.byId(this.id,this._doc),a=this.get("frame");this._findCalls||(this._findCalls=(new Date).getTime()+q.fTimeout);if(b)this.handleHover=f.bind(this,ia),this.handleClick=f.bind(this,ja),W.on(a||b,"hover",this.handleHover),f.addEvent(b,"mousedown",this.handleClick),b.innerHTML="",this.set("element",b).css("").style();else if(this._findCalls>(new Date).getTime())E(this.findElement,0);else throw ca.pushMessage("adbox",
"AdBox element not found"),Error("AdBox element not found");}function ia(b){var a=this.hovered="hoverin"==b;this.emit("hover",a,this);this.emit(b,a,this)}function ja(b){this.emit("click",b||this._win.event)}function Y(b){var a=this._doc,d=b.from;a=b.type||(d?d.window==d?"fixed":d===a?"page":"floated":"static");var c=b.position||"",e=R.exec(c);c=S.exec(c);var h=this.get(),k=this.get(),g=k.postype;if(k=k.element)k.className=k.className.replace(new RegExp("\\s*adform-adbox-"+g+"(-\\w+)?\\s*","g")," ");
e=e?e[0]:"L";c=c?c[0]:"T";h.vpos=c;h.hpos=e;h.postype=a;h.frompos=d;this.resetPosition&&this.resetPosition();ka.call(this,a,h,b)}function ka(b,a,d){var c=this,e=c._win,h=c._doc,k=a.element,g=!1,l=!1,p=!1,t=a.vpos,n=a.hpos;k&&(f.addClass(k,"adform-adbox-"+b+"-"+a.vpos),f.addClass(k,"adform-adbox-"+b+"-"+a.hpos),f.addClass(k,"adform-adbox-"+b));c.positionType=b;if("static"==b)c.onchange("x",G).onchange("y",G).onchange("showing",G),c.resetPosition=function(){c.off("change:x",G).off("change:y",G).off("change:showing",
G);c.resetPosition=null};else if("fixed"==b){var v=h.documentElement;var B=h.body;var C=function(m){if(a.showing&&!1!==a.fixedBounding){var x=v.clientWidth||B.clientWidth;var y=v.clientHeight||B.clientHeight;var w=a.element;var D=w.offsetWidth-a.x;w=w.offsetHeight-a.y;m&&m.showing&&(g=l=null);c._hp||l==x<D||(m=(l=x<D)?0:"",c.style({left:m,marginLeft:m,marginRight:m}));c._vp||g==y<w||(m=(g=y<w)?0:"",c.style({top:m,marginTop:m,marginBottom:m}))}};var F=function(m){!1===m?(l=g=!1,m="",c.style({left:m,
marginLeft:m,marginRight:m,top:m,marginTop:m,marginBottom:m})):C()};la&&(c.iOSFixed=function(){var m={},x=v.scrollLeft||B.scrollLeft,y=v.scrollTop||B.scrollTop,w=v.clientWidth||B.clientWidth,D=v.clientHeight||B.clientHeight;"L"==n&&(m.left=x+"px");"C"==n&&(m.left=x+Math.round(w/2)+"px");"R"==n&&(m.right=-x+"px");"T"==t&&(m.top=y+"px");"M"==t&&(m.top=y+Math.round(D/2)+"px");"B"==t&&(m.bottom=-y+"px");c.style(m)},f.addEvent(e,"scroll",this.iOSFixed));f.addEvent(e,"resize",C);c.onchange(T).onchange(C).onchange("fixedBounding",
F);T.call(this);C();c.resetPosition=function(){c.off("change:fixedBounding",F).off("change",C).off("change",T);C&&f.removeEvent(e,"resize",C);c.iOSFixed&&f.removeEvent(e,"scroll",c.iOSFixed);c.css("margin:0");F(!1);c.resetPosition=null}}else if("sticky"==b)c.onchange(Q),c.handleResize=f.bind(c,ma),f.addEvent(e,"resize",c.handleResize),f.addEvent(e,"scroll",c.handleResize),f.addEvent(e,"load",c.handleResize),c.handleResize(),E(c.handleResize,50),c.resetPosition=function(){c.off("change",Q);c.handleResize&&
(f.removeEvent(e,"resize",c.handleResize),f.removeEvent(e,"scroll",c.handleResize),f.removeEvent(e,"load",c.handleResize),c.handleResize=null);c.resetPosition=null};else if("page"==b){c.onchange(P);c.resizeDelay=f.singleCall(100);c.handleResize=f.bind(c,na);f.addEvent(e,"resize",c.handleResize);f.addEvent(e,"scroll",c.handleResize);f.addEvent(e,"load",c.handleResize);c.handleResize();var A=U(c.handleResize,100);E(function(){M(A)},3E3);c.resetPosition=function(){c.off("change",P);c.handleResize&&(f.removeEvent(e,
"resize",c.handleResize),f.removeEvent(e,"scroll",c.handleResize),f.removeEvent(e,"load",c.handleResize),c.handleResize=null);M(A);c.resetPosition=null}}else if("floated"==b)c.onchange(L),d.container!=d.from?(c.resizeDelay=f.singleCall(10),c.handleResize=f.bind(c,oa),f.addEvent(e,"resize",c.handleResize),c._fromInt=U(c.handleResize,500),f.onload(H,c.handleResize),E(c.handleResize,50),c.handleResize()):E(function(){L.call(c)},0),c.resetPosition=function(){c._lastFromPos=null;c.off("change",L);c.handleResize&&
(f.removeEvent(e,"resize",c.handleResize),c.handleResize=null);M(c._fromInt);c.resetPosition=null};else if("mobile"==b){var r=e.innerWidth>=e.innerHeight;b=function(){c.pos.width=c.pos.height=0};var u=function(){var m,x,y=a.width,w=a.height;var D=c._hp;var pa=c._vp,Z=c.pos||{};if(a.showing&&!p){var I=k.getBoundingClientRect();var J=e.innerWidth;var K=e.innerHeight;r&&J<K||!r&&J>=K?(p=!0,E(function(){p=!1},500)):(y=D?J*parseFloat(y)/100:y,w=pa?K*parseFloat(w)/100:w,D=(parseFloat(Z.left)||0)-I.left,
I=(parseFloat(Z.top)||0)-I.top,"C"==n?m=Math.round(D+(J-y)/2):"L"==n?m=Math.floor(D):"R"==n&&(m=Math.ceil(D+(J-y))),"M"==t?x=Math.round(I+(K-w)/2):"T"==t?x=Math.floor(I):"B"==t&&(x=Math.ceil(I+(K-w))),c.setPosition(x,m,0,0,0,0,y,w));r=J>=K}};var N=U(u,100);f.addEvent(e,"resize",u);f.addEvent(e,"scroll",u);c.onchange("showing",u).onchange("width",b).onchange("height",b);u();c.resetPosition=function(){f.removeEvent(e,"resize",u);f.removeEvent(e,"scroll",u);c.resetPosition=null;M(N)}}}function na(){this.repositionPage({showing:1})}
function ma(){this.repositionSticky({showing:1})}function qa(b){var a=b.defaultView||b.parentWindow,d=b.documentElement||b.body;a.self||(a=H);this._doc=b;this._win=a;this.sheet=O("adbox",b);if(!a.__adform_adbox_init){var c=O("adbox-static",b);c.set(".adform-adbox-hidden","visibility:hidden").set(".adform-adbox-mobile","position:absolute").set(".adform-adbox-static","position:relative").set(".adform-adbox-static-L","margin:0 auto 0 0").set(".adform-adbox-static-C","margin:0 auto").set(".adform-adbox-static-R",
"margin:0 0 0 auto").set(".adform-adbox-static-I","display:inline-block;*display:inline;zoom:1").set(".adform-adbox-floated","position:absolute;display:block!important").set(".adform-adbox-page,.adform-adbox-fixed,.adform-adbox-sticky","position:fixed;display:block!important").set(".adform-adbox-page-L,.adform-adbox-fixed-L","left:0").set(".adform-adbox-page-C,.adform-adbox-fixed-C","left:50%").set(".adform-adbox-page-R,.adform-adbox-fixed-R","right:0").set(".adform-adbox-page-T,.adform-adbox-fixed-T",
"top:0").set(".adform-adbox-page-M,.adform-adbox-fixed-M","top:50%").set(".adform-adbox-page-B,.adform-adbox-fixed-B","bottom:0").set(".adform-adbox-overlay","position:fixed;right:0;bottom:0;width:300%;height:300%").set(".adform-adbox-overlay iframe","display:none;position:absolute;top:0;right:0;width:100%;height:100%").set("* html .adform-adbox-page,* html .adform-adbox-fixed","position:absolute").set("* html .adform-adbox-fixed-L","left:expression(eval(__adform_adbox_fixedLeft(this)))").set("* html .adform-adbox-fixed-C",
"left:expression(eval(__adform_adbox_fixedCenter(this)))").set("* html .adform-adbox-fixed-R","left:expression(eval(__adform_adbox_fixedRight(this)))").set("* html .adform-adbox-fixed-T","top:expression(eval(__adform_adbox_fixedTop(this)))").set("* html .adform-adbox-fixed-M","top:expression(eval(__adform_adbox_fixedMiddle(this)))").set("* html .adform-adbox-fixed-B","top:expression(eval(__adform_adbox_fixedBottom(this)))").set("* html .adform-adbox-overlay","position:absolute;top:expression(eval(__adform_adbox_fixedTop(this)));left:expression(eval(__adform_adbox_fixedLeft(this)));width:100%;height:100%");
V&&"BackCompat"==b.compatMode&&c.set(".adform-adbox-page","position:absolute");a.__adform_adbox_fixedLeft=function(){return d.scrollLeft};a.__adform_adbox_fixedCenter=function(){return d.scrollLeft+Math.round(d.clientWidth/2)};a.__adform_adbox_fixedRight=function(e){return d.scrollLeft+d.clientWidth-e.offsetWidth};a.__adform_adbox_fixedTop=function(){return d.scrollTop};a.__adform_adbox_fixedMiddle=function(){return d.scrollTop+Math.round(d.clientHeight/2)};a.__adform_adbox_fixedBottom=function(e){return d.scrollTop+
d.clientHeight-e.offsetHeight};a.__adform_adbox_init=0}a.__adform_adbox_init++}function G(){var b=this.get();b.showing&&this.style({left:b.x+"px",top:b.y+"px"})}function T(b){var a=this.get(),d=a.vpos,c=a.hpos,e=a.width,h=a.height,k=a.y,g=a.x,l=("C"==c||"M"==d)&&{};a.showing&&(!b||"x"in b||"y"in b||"width"in b||"height"in b||"showing"in b)&&("C"==c&&(this._hp?l.left=50-parseFloat(e)/2+"%":(g-=e/2,l.left="")),"M"==d&&(this._vp?l.top=50-parseFloat(h)/2+"%":(k-=h/2,l.top="")),this.css("margin:"+k+"px "+
-g+"px "+-k+"px "+g+"px"),l&&this.style(l))}function Q(b){var a=this.get();var d=this._win;var c=this._doc;var e=a.element;var h=a.stickyOffset||0;if(a.showing&&(!b||"x"in b||"y"in b||"width"in b||"height"in b||"showing"in b||"stickyOffset"in b)){var k=this.from();var g=f.offsetFromWindow(k);!0===h&&(g.top=f.offset(k).top,h=g.top);var l=this._hp;var p=this._vp;b=a.x;var t=a.y;var n=l?e.offsetWidth:a.width||0;var v=p?e.offsetHeight:a.height||0;e=g.left;var B=g.top;g=k.offsetWidth;k=k.offsetHeight;
var C=d.innerWidth||c.body.clientWidth;var F=d.innerHeight||c.body.clientHeight;var A=a.vpos;var r=a.hpos;d="K"==r;c="C"==r;var u="R"==r;r="E"==r;var N="Y"==A;var m="M"==A;var x="B"==A;A="N"==A;l&&(n=C*parseFloat(a.width)/100,this.style({width:n+"px"}));p&&(v=F*parseFloat(a.height)/100,this.style({height:v+"px"}));a=t+B+(N?-v:m?(k-v)/2:x?k-v:A?k:0);this.setPosition(a>h?a:h,b+e+(d?-n:c?(g-n)/2:u?g-n:r?g:0),0,0)}}function P(b){var a=this.get();var d=this._win;var c=this._doc;var e=a.vpos;var h=a.hpos;
var k=a.x;var g=a.y;var l=a.element;var p=this._hp;var t=this._vp;var n=this._absolute;if(a.showing&&(!b||"x"in b||"y"in b||"width"in b||"height"in b||"showing"in b)){b=p?l.offsetWidth:a.width;l=t?l.offsetHeight:a.height;var v="K"==h;var B="C"==h;t="R"==h;var C="E"==h;var F="Y"==e;var A="M"==e;h="B"==e;e="N"==e;if(null==n){if(n="absolute"==f.curCSS(a.element,"position"))f.removeEvent(d,"resize",this.handleResize),f.removeEvent(d,"scroll",this.handleResize);this._absolute=n}if(n)g=Math.round(A?-(l/
2):0)+g,b=Math.round(B?-(b/2):0)+k,this.setPosition(null,null,h?0:g,t?0:b,h?-g:0,t?-b:0);else{n=c.documentElement;var r=c.body;c=n&&n.clientHeight||r&&r.clientHeight;var u=Math.max(n&&n.scrollWidth||0,r&&r.scrollWidth||0);var N=Math.max(n&&n.scrollLeft||0,r&&r.scrollLeft||0);d=Math.max(n&&n.scrollTop||0,r&&r.scrollTop||0);p&&(p=Math.max(n&&n.clientWidth||0,r&&r.clientWidth||0),b=Math.round(u*parseFloat(a.width)/100),this.style({width:f.isFF&&p>=u?a.width:b+"px"}));k=-N+(v?-b:B?(u-b)/2:t?u-b:C?u:0)+
k;g=-d+(F?-l:A?(c-l)/2:h?c-l:e?c:0)+g;a=this._pp||(this._pp={t:0,l:0});(a.t>-l&&a.l>-b||g>-l&&k>-b)&&this.setPosition(g,k,0,0);a.t=g;a.l=k}}}function oa(){var b=this.get();var a=this._lastFromPos;if(b.showing&&(b=this.from())){var d=f.offset(b);d.w=b.offsetWidth;d.h=b.offsetHeight;a&&a.left==d.left&&a.top==d.top&&a.w==d.w&&a.h==d.h||(this._lastFromPos=d,L.call(this))}}function L(b){var a;var d=this.get();var c=d.element;var e={};if(!b||"x"in b||"y"in b||"width"in b||"height"in b||"showing"in b)if(d.showing){if(a=
this.from()){b=d.vpos;var h=d.hpos;var k=this._hp;var g=this._vp;k&&(e.width=Math.round(a.offsetWidth*parseFloat(d.width)/100)+"px");g&&(e.height=Math.round(a.offsetHeight*parseFloat(d.height)/100)+"px");(k||g)&&this.style(e);e=d.x;var l=d.y;k=k?c.offsetWidth:d.width;d=g?c.offsetHeight:d.height;g=f.offset(a);c=c.parentNode;"static"!=f.curCSS(c,"position")&&(c=f.offset(c),g.top-=c.top,g.left-=c.left);c=g.left;g=g.top;var p=a.offsetWidth;a=a.offsetHeight;l=Math.round("M"==b?-(d/2):0)+l;e=Math.round("C"==
h?-(k/2):0)+e;this.setPosition(g+("Y"==b?-d:"M"==b?a/2:"B"==b?a-d:"N"==b?a:0),c+("K"==h?-k:"C"==h?p/2:"R"==h?p-k:"E"==h?p:0),l,e)}}else this.setPosition(-3E3,-3E3,0,0)}function ea(b){var a=this.get(),d=a.width;a=a.height;if("mobile"!=this.positionType&&("width"in b||"height"in b)){b=this._hp="string"==typeof d&&0<d.indexOf("%");var c=this._vp="string"==typeof a&&0<a.indexOf("%");this.style({width:"auto"===d?d:b?d:d+"px",height:"auto"===a?a:c?a:a+"px"})}}function X(){var b=this,a=b.get(),d=a.visible,
c=a.element;a=b._visibilityTimer;if(c){a&&(a=ra(a));var e=function(){var h=c.className,k=~h.indexOf(" adform-adbox-hidden");b._visibilityTimer=!1;k&&d?c.className=h.replace(" adform-adbox-hidden",""):k||d||(c.className=h+" adform-adbox-hidden")};c.addEventListener&&!V?a=E(e,d?10:100):e();b._visibilityTimer=a}b.set("showing",d&&!!c)}function sa(b){this.emit("content:"+(b?"show":"hide"),this.get("element"),this);this.emit(b?"show":"hide")}var H=z.window,M=H.clearInterval,ra=H.clearTimeout,E=H.setTimeout,
U=H.setInterval,V=f.isIOS,la=V&&!f.isIOSF,S=/Y|T|M|B|N/,R=/K|L|C|R|E|I/;q.LEFT_OUT="K";q.LEFT="L";q.CENTER="C";q.RIGHT="R";q.RIGHT_OUT="E";q.TOP_OUT="Y";q.TOP="T";q.MIDDLE="M";q.BOTTOM="B";q.BOTTOM_OUT="N";q.INLINE="I";q.CLASS="adform-adbox";q.PREFIX="adform-adbox-";q.hPosRegExp=R;q.vPosRegExp=S;q.fTimeout=1E4;q.toCustom=function(b,a,d){var c=R.exec(d);d=S.exec(d);var e=a.x,h=a.y,k=a.width;a=a.height;var g=b.width;b=b.height;c=c?c[0]:"L";d=d?d[0]:"T";return{x:("K"==c?-k:"C"==c?(g-k)/2:"R"==c?g-k:
"E"==c?g:0)+e,y:("Y"==d?-a:"M"==d?(b-a)/2:"B"==d?b-a:"N"==d?b:0)+h}};f.inherit(q,ba);z=q.prototype;z.css=function(b,a){var d,c=this.sheet,e=this.cssQueue;if(c){if(e){this.cssQueue=null;var h=0;for(d=e.length;h<d;h+=2)this.css(e[h],e[h+1])}c.set("#"+this.id+(a?" "+b:""),a||b)}else e.push(b,a);return this};z.content=function(b,a,d){var c=this._contents;if(c)return d||"string"!=typeof a||(d=a,a=!1),d=d||"main",b&&(c[d]=b,b.bind(this),a&&(b=b.data,this.set({width:b.width,height:b.height}))),c[d]};z.setPosition=
function(b,a,d,c,e,h,k,g){var l,p,t=this.get("element"),n=this.pos||{};b={top:b,left:a,marginTop:d,marginRight:h,marginBottom:e,marginLeft:c,width:k,height:g};if(t){for(l in b)b[l]!=n[l]&&(p||(p={}),p[l]=b[l]+"px");p&&(this.pos=b,this.style(p))}};z.from=function(){var b,a=this.get("frompos");"string"==typeof a&&(a=f.byId(a,this._doc))&&("OBJECT"==a.nodeName&&30>a.offsetHeight&&(b=f.byTag(a,"embed")[0])&&20<b.offsetHeight&&(a=b),this.set("frompos",a));if(a&&(!a._contents||(a=a.get("element"))))return a};
z.style=function(b){var a=this.get("element"),d=this._styles;a?(d&&(f.extend(a.style,d),d=null),b&&f.extend(a.style,b)):d=f.extend(d||{},b);this._styles=d;return this};z.reset=Y;z.destroy=function(){var b,a,d=this.get("element"),c=this.get("frame"),e=this._win,h=this._doc;d&&(this.emit("content:destroy",d,this),this.clear(),this._contents=null,W.off(c||d,"hover",this.handleHover),f.removeEvent(d,"mousedown",this.handleClick),this.resetPosition&&this.resetPosition(),(b=this.handleResize)&&f.removeEvent(e,
"resize",b),(a=this._fromInt)&&M(a),--e.__adform_adbox_init||(O("adbox-static",h).destroy(),this.sheet.destroy(),e.__adform_adbox_fixedLeft=e.__adform_adbox_fixedCenter=e.__adform_adbox_fixedRight=e.__adform_adbox_fixedTop=e.__adform_adbox_fixedMiddle=e.__adform_adbox_fixedBottom=null),this.sheet=null,this._changes={},this._previous={},this._attributes={},d.parentNode&&d.parentNode.removeChild(d))};z.draw=function(b,a){var d;a=a||{};(d=this._hub)&&d.emit("draw",this,this._hubName,a);this.set("frame",
a.frame);d=a.container;var c=a.before;var e=a.from;b=d&&d.ownerDocument||c&&c.ownerDocument||e&&(e.ownerDocument||e._doc||(e.defaultView||e.parentWindow||e).document)||b;qa.call(this,b);Y.call(this,a);d=a;c=d.from;e=d.container;var h=d.before,k=this.get();var g=k.postype;var l=this._doc,p='<div id="'+this.id+'" class="adform-adbox '+(k.visible?"":"adform-adbox-hidden ")+"adform-adbox-"+g+" adform-adbox-"+g+"-"+k.vpos+" adform-adbox-"+g+"-"+k.hpos+'">AdBox</div>';if(c||h||e){try{l.body||l.write("<html><body></body></html>")}catch(t){}if(l.body.insertAdjacentHTML&&
f.isIE){g="afterBegin";c?(e||(e=l.body),"end"==h&&(g="beforeEnd")):h&&(g="beforeBegin",e=h);try{e.insertAdjacentHTML(g,p)}catch(t){l.write(p)}}else c?(e||(e=l.body),h=null):h&&(e=h.parentNode),e.insertBefore(f.html(p,l),h||e.firstChild)}else l.write(p);this.set({x:d.x||k.x||0,y:d.y||k.y||0});this.onchange("showing",sa);this.findElement();return this};z.pull=function(b,a){var d=this.get();if(b in d)a.call(this,d[b]);else this.once("change:"+b,a);return this};z.publish=function(b,a){this._hubName=b;
this._hub=a;this.pull("element",ha);return this};return aa.RMB.AdBox=q});
a(r,[c,i,q,h,m],function(T,H,U,I,w){function J(a,b,c){var e={};a=a.replace(/[\r\n]+/g,b).split(b);var d=a.length;for(b=0;b<d;b++){var g=a[b].split(c);var m=g.shift();g=g.join(c);e[m]=g?"true"===g||"false"===g?"true"===g:1*g==g?1*g:g:null}return e}function B(a){var b=a.options,c=a.panel.from,e=b.seqNo&&parseInt(c,10)==c;if({standard:1,expanding:1,singleExpanding:1}[b.type]&&"floating"!=b.behavior)if(e)var d=V(a);else"string"==typeof c?(b=w.byId(a.panel.from,
(a.options.iab?t.parent:t).document))?(C(a,{container:b},!0),d=void 0):d=!0:(C(a,{before:a.options.iab?t.frameElement:a.options.$tag},!0),d=void 0);else K.AdConstructor.initialize(a);d?(z.push(a),D||(D=L(W,100))):z.length&&B(z.shift())}function V(a){var b=E[a.options.bn+"#"+a.panel.from];if(!b||!b.box)return!0;var c=a.panel,e=F(c.position,!0),d=b.settings,g=d.image||d.html||d.video;d=(d=d.panel)&&d.space;var m;d&&g&&"C"!=e&&(m=d.width>>0)&&(m=.5*(m-g.width),c.x=(c.x||0)+("L"==e?-1:1)*m);b.box.pull("element",
function(){C(a,{from:b.box})})}function W(){D=0;z.length&&B(z.shift())}function C(a,b,c){function e(n){var u=l?"stickyBox":"box";r=A[u]=(new I).publish("panel-"+u,a.events);M&&r.set("zIndex",h.zIndex=M);r.set({width:N,height:p?O:"auto",x:!l&&f.x||0,y:!l&&f.y||0,visible:!f.hidden}).set(v?{stickyOffset:f.sticky}:{}).pull("element",d).draw(x,{type:v&&"sticky",position:l?"":F(f.position,c),container:G,before:P,from:n||b.from})}function d(n){var u={item:A,settings:a,content:q};n.innerHTML="<span></span>";
h.iab=!1;h.window=y;h.$tag=n.firstChild;n=u.exports={set:w.bind(u,Q),get:w.bind(u,X)};h.panel=n;u.constructor=k=K.AdConstructor.initialize(a);k._panel_show=k.show;k._panel_hide=k.hide;k.show=g;k.hide=m}function g(){var n=b.from;n&&n.pull&&!n.get("visible")?L(g,100):(l&&l.set("visible",!0),r.set("visible",!0),k._panel_show())}function m(){k._panel_hide();r.set("visible",!1);l&&l.set("visible",!1)}var r,l,k,q=a.image||a.html,h=a.options,f=a.panel,y=h.iab?t.parent:t,x=y.document,A=E[h.bn+"#"+h.seqNo],
p=!!b.from,v="sticky"in f&&!1!==f.sticky,G=b.container,P=b.before,M="z"in f?f.z:v||p?1E4:null,N=q.width,O=q.height;h.hidden?f.hidden=h.hidden:f.hidden&&(h.hidden=f.hidden);v&&!p?(G=P=null,(l=A.box=new I).publish("panel-box",a.events).set({width:N,height:O,visible:!f.hidden,x:f.x||0,y:f.y||0}).pull("element",e).draw(x,{position:F(f.position,c),before:b.before,container:b.container})):e()}function Q(a,b){var c=this.item,e=c.box;c=c.stickyBox;a=R[a]||a;if("string"!==typeof a)for(b in a)Q.call(this,b,
a[b]);else"zIndex"==a?((c||e).set(a,b),this.constructor.setZIndex&&this.constructor.setZIndex(b)):c&&"stickyOffset"==a?c.set(a,b):e.set(a,b);c&&c.repositionSticky()}function X(a){var b=this.item,c=b.box;a=R[a]||a;if("width"==a||"height"==a)a=this.content[a];else{if("zIndex"==a||"stickyOffset"==a)c=b.stickyBox||c;a=c.get(a)}return a}function F(a,b){var c;a=(a||"").toLowerCase();var e={r:"E",ri:"R",l:"K",li:"L"}[(c=a.match(/[rl]i?/))&&c[0]]||"C",d={t:"Y",ti:"T",b:"N",bi:"B"}[(c=a.match(/[tb]i?/))&&
c[0]]||"M";return b?{E:"R",K:"L"}[e]||e:e+d}var t=T.window,L=t.setTimeout,K=H.RMB,z=[],D,E={},S={},R={z:"zIndex",sticky:"stickyOffset"};return function(a){var b=H.ADFUtilInstance,c=a.options,e=c.bn;if(b&&b.getPropByBn){var d=a.panel,g=a.events,m=c.seqNo,r=1==m;var l=S[e];if(!l)for(var k=w.byTag("script"),q=k.length,h,f;0<q--;)if(h=k[q],(f=h.getAttribute("data-panels"))&&h.src&&~h.src.indexOf("?bn="+e)){k=void 0;var y=J(f,";","="),x={length:0},A={w:"width",h:"height",pos:"position",p:"position",f:"from",
s:"sticky"};for(k in y)if(k){h=y[k]?J(y[k],",",":"):{};q={};for(var p in h)p&&(f=A[p]||p,q[f]="hidden"==f||null===h[p]||h[p]);x["#"+k]=q;x.length++}f=x;f.length&&(l=S[e]=f);break}try{var v=t.frameElement}catch(G){}l&&(r&&!b.getPropByBn("syncMembersCount",e)&&b.addBannerAttribute(c.xId,"syncMembersCount",l.length),l=l["#"+m])&&(d=a.panel=w.extend(d||{},l));d&&(c.iab&&v&&(v.style.display="none"),E[e+"#"+m]={settings:a},r&&(d.id=d.id||"top"),d.id&&(g.clear("setup"),b=d.id,c=a.options,e=a.panel,d={options:{iab:c.iab},
events:a.events},U.applyHooks(d,["#"+b,c.bn+"#"+b]),d.panel&&(e?w.extend(e,d.panel):a.panel=d.panel),g.emit("setup",a)),a.preventInitialization=!0,B(a))}}});
a(u,[c,i,m,p],function(w,A,r,B){var t=w.window,x=t.setTimeout,C=t.clearTimeout,D=Array.prototype.slice;A.PAGE_LOAD_COMPLETE="pageLoadComplete";return{polite:function(a){function c(){f||(f=!0,this!=a&&a.emit("pageLoadComplete"))}function h(){f?(g=!1,a.callSwfMethod("pageLoadComplete")):g||(g=!0,a.once("pageLoadComplete",h))}var f,g,e=a.options.loadDelay;if(e)x(c,1E3*e);else r.onload(t,c);a.on("pageLoadComplete",c);a.on("politeReady",h)},inscreen:function(a,
c){function h(l){var n=new Date,d=n-g;l=r.extend(b||{},l);d>=c?(g=n,b={},a.callSwfMethod("updateInScreen",l),e&&(e=C(e))):e||(e=x(function(){h(l)},c-d))}var f,g,e,b;c=c||0;a.on("initInScreen",function(){g=0;f||(f=B(a.options.xId),f.on("change",h));h({visible:f.get("visible"),percent:f.get("percent"),loaded:f.get("loaded")})})},setCallbacks:function(a,c){function h(d,k,p,q,m){b(d,{x:parseInt(k,10)+e.x,y:parseInt(p,10)+e.y,width:parseInt(q,10),height:parseInt(m,10)})}function f(d){b(d);t.IABcloseAD&&
t.IABcloseAD()}for(var g=a.win,e={x:0,y:0},b=r.bind(a,a.emit),l=[["initPoliteMode",b,"politeReady"],["initVideoMode","video",!0],["initCube3D","cube3D",!0],["initExtender",b,"extender"],["initInScreen",b,"initInScreen"],["startDrag",b,"startDrag"],["endDrag",h,"endDrag"],["updateBox",h,"updateBox"],["expandComplete",b,"expandComplete"],["collapseComplete",b,"collapseComplete"],["close",f,"hide"],["superClose",f,"close"],["expand",b,"show"],["rollOutAd",b,"rollOut"],["videoPlayStartHandler",b,"video:start"],
["videoCompleteHandler",b,"video:end"]],n=l.length;0<n--;)(function(d,k,p){function q(){var u=D.call(arguments);"undefined"!==typeof p&&u.unshift(p);k.apply(a,u)}function m(){a[k]=p}c[d]="function"==typeof k?q:m}).apply(a,l[n]);c.initScroll=function(){var d=a.options.iab?g.parent:g;r.addEvent(d,"scroll",function(){r.removeEvent(d,"scroll",arguments.callee);a.callSwfMethod("scroll")})};c.initSingleExpanding=function(d,k){b("expandSettings",e={x:-parseInt(d,10),y:-parseInt(k,10)})};c.toggleFullScreen=
function(d){b("fullScreen","true"==""+d)}},factory:function(a,c,h){var f=[],g=[],e=c.html,b=c.video,l=c.image,n=c.polite,d=c.options,k="Standard"==a;a=k&&b&&!e;var p=k&&(l&&!e||n);k&&e&&(g[0]=f.push("contents/HTML"));a&&(g[1]=f.push("contents/VideoTag"));p&&(g[2]=f.push("contents/ImageTag"));w.require(f,function(){var q,m=arguments,u=m[g[0]-1],y=m[g[1]-1];m=m[g[2]-1];if(k){if(e){var v=new u(d,e);var z=!0}else b&&y.supported(b.sources)?v=new y(d,b):l&&(v=new m(d,l),z=!e);n&&(q=new m(d,n))}c.$c={h:!!z,
c:v,ec:void 0,pc:q};h(c)});h}}});
a(w,[i,x,p,m,u],function(d,m,n,e,p){function g(a,b){var c;a.xId&&(c=n(a.xId));g.super_.call(this);this.created=0;this.options=a;this.data=b;this.container=e.bind(this,this.container);this.show=e.bind(this,this.show);this.hide=e.bind(this,this.hide);this.clear=e.bind(this,this.clear);this.reload=e.bind(this,this.reload);if(c)this.on("loaded",function(){c.set("loaded",!0)}).on("video:end",function(){c.engage("videoStop")});
b.adNotice&&"window"!=b.wmode&&this.setupExtra(this.adNotice=new h.AdNotice(a,b));p.polite(this)}function k(){}var h=d.RMB.Content;d.RMB.AdContent=g;e.inherit(g,m);d=g.prototype;d.container=function(a){var b=this.doc=a.ownerDocument;this.win=b.defaultView||b.parentWindow;this._element=a};d.show=k;d.hide=k;d.reload=function(){this instanceof h.AdNotice||(this.destroy(),this._adbox.get("showing")&&this.show())};d.destroy=k;d.element=function(a,b){var c=this._elem,f=!(this instanceof h.AdNotice)&&this.options.wrapper;
f&&(f=e.html(f,b&&b.ownerDocument));!1!==b?(c||(c=e.html('<div style="position:relative;width:100%;height:100%;overflow:hidden">',b&&b.ownerDocument)),c&&(b&&(f&&(f.appendChild(c),this.wrapper=f),b.appendChild(f||c)),"string"==typeof a&&(c.innerHTML=a))):c&&(c.parentNode&&c.parentNode.removeChild(c),c=null);return this._elem=c};d.bind=function(a){var b;this._adbox||(this._adbox=a,a.on("change:element",this.container),a.on("content:show",this.show),a.on("content:hide",this.hide),a.on("content:destroy",
this.clear),a.on("content:reload",this.reload),(b=a.get("element"))&&this.container(b),a.get("showing")&&this.show())};d._clear=d.clear;d.clear=function(){var a=this._adbox;a&&(a.off("change:element",this.container),a.off("content:show",this.show),a.off("content:hide",this.hide),a.off("content:destroy",this.clear),a.off("content:reload",this.reload),this.destroy(),this._clear(),this._adbox=this.doc=this.win=this._element=null)};d.style=function(a){var b=this.element();b&&e.extend(b.style,a);return this};
d.setupExtra=function(a){var b=this,c=b.bind,f=b.clear;b.bind=function(l){var q=c.call(b,l);a.bind(l);return q};b.clear=function(){a.clear(b._adbox);return f.call(b)}};return g});
a(D,[c,l],function(e,f){var c=e.window.navigator,g=c.userLanguage||c.language||"";return{createCSSStyles:function(a){a=f("adbox-static",a);a.set(".adform-adnotice","z-index:1;position:absolute!important;top:0!important;right:0!important;left:auto!important;padding:0!important;margin:0!important");return a},appendIconStyles:function(a,b){var d=b.elementId;a.set(".adform-adnotice a","display:block;width:19px;height:15px;margin:0!important;padding:0!important;position:static!important;background:url("+
b.iconUrl+") no-repeat;").set(".adform-adnotice img","display:none;border:none;margin:0!important;padding:0!important;position:static!important");b.fullView&&a.set("#"+d+" a:hover","width:auto;position:absolute;top:0;right:0;background-position:0 -100px").set("#"+d+" a:hover img","display:block;")},useFullIcon:function(a,b){return 105<=a&&.1>1575/(a*b)},getLinkHTML:function(a){var b=a.imageUrl;return'<a href="'+a.link+'" target="_blank">'+(a.fullView?'<img src="'+b+'" alt="">':"")+"</a>"},getLocalImage:function(a){a=
a||g;a=a.toLowerCase().match(/^(bg|cs|da|de-at|de-ch|de|el|es|fi|fr-be|fr-ch|fr|ga|hu|it-ch|it|nl-be|nl|no|pl|ro|sk|sv|uk|en)/);return a=(a&&a[0]||"en")+".png"},getContainerHTML:function(a){return'<div class="adform-adnotice" id="'+a+'">'},PREFIX:"adform-adnotice-button-",ASSET_PATH:"assets/images/OBA/",ICON:"oba.png"}});
a(s,[i,w,D,m,k],function(g,r,e,m,t){function k(a,c){k.super_.call(this,a,c.adNotice);var b=this.data;b.width=c.width;b.height=c.height;this.id=m.gid(u);this.base=a.scriptsBase+e.ASSET_PATH}var u=e.PREFIX,q={};g.RMB.Content.AdNotice=k;m.inherit(k,r);k.supported=function(){return!0};k.READY="ready";g=k.prototype;g.show=function(){this._element&&!this.created&&this.write()};g.write=function(){var a=this,c=a._element,b=a.doc,f=a.win,
h=a.options,d=h.obaId,n=h.scriptsBase+"adplayer/css/adplayer.min.css",l=h.scriptsBase+"adplayer/js/adplayer.min.js";a.created=(new Date).getTime();a.statics=e.createCSSStyles(b);a._elem=m.html(e.getContainerHTML(a.id),b);d?f.$ADP?a.setupAdPlayer(d,c):(m.loadCSS(b,n),m.loadScript(b,l,function(p){p||!f.$ADP?a.setupDefault(c):a.setupAdPlayer(d,c)})):a.setupDefault(c);t.on(a._elem,"hover",function(p){h.disturber.emit("hover","hoverin"==p)})};g.destroy=function(){this.element("",!1);this.created=0};g.getOBAImage=
function(a){a=e.getLocalImage(a);return this.base+a};g.setupAdPlayer=function(a,c){var b=this.win,f=b.$ADP.Registry,h=this.id,d=this.data,n=this.options,l=[{title:d.title,text:d.text,url:d.link,linkText:d.linkText,usePopup:!!(b.Adform&&b.Adform.ADFIframe||n.iab)}];this.element("",c);if(!q[a]){b.ADFCall(n.xId,function(){this.emit("setupADP",l)});if(l)for(b=0,d=l.length;b<d;++b)f.register(a,l[b]);q[a]=!0}f.createPlayer(a,{domId:h});this.emit("ready")};g.setupDefault=function(a){var c=this.data,b=this.id,
f=this.statics,h=e.useFullIcon(c.width,c.height);c={elementId:b,link:c.link,imageUrl:this.getOBAImage(),iconUrl:this.base+e.ICON,fullView:h};e.appendIconStyles(f,c);f=e.getLinkHTML(c);this.element(f,a);this.emit("ready")};return k});
a(t,[m,w],function(g,h){function e(){return{create:e,register:function(b){for(var a in b)b[a]&&"function"==typeof b[a].content&&f(b[a]);b.on("draw",function(d){f(d)})}}}function f(b){var a=b.content(),d=b.content(null,"click");a&&!d&&(a=a.data.link||a.flashvars&&a.flashvars.clickTAG)&&(0>a.indexOf("://")&&(a=decodeURIComponent(a)),a=~a.indexOf(";CREFURL")?a.split(";CREFURL").join(";fc=1;CREFURL"):a.replace(/bn=\d+/,"$&;fc=1"),b.content(new c({},{link:a}),!1,"click"))}function c(b,
a){c.super_.call(this,b,a)}g.inherit(c,h);c.prototype.show=function(){var b=this._element;!this.created&&b&&(this.created=new Date,this.element('<a href="'+this.data.link+'" style="width:1px;height:1px;display:block;border:0;"></a>',b),this.style({top:0,left:0,position:"absolute",zIndex:-1}))};return e()});
a(o,[c,i,p,q,r,k,l,m,s,t,u,v],function(r,p,C,x,D,E,F,h,G,H,I,J){function t(a){var b=this.options=a.options,c=q,d=a.events,e=this.adDestroy=h.bind(this,y);this.settings=a;b.BANNER_TYPE=this.BANNER_TYPE;b.iab?(c=K,b.iframe=q.frameElement):b.window&&(c=b.window);this.win=c;a=c.Adform=c.Adform||{};a.adRegister=a.adRegister||{};p.adRegister=c.Adform.adRegister;
z.call(this);(this._wallpaper=b.wallpaper&&b.wallpaper.background&&!h.isTMX(c))&&this.setupWallpaper();this.on=function(){d.on.apply(d,arguments);return this};this.off=function(){d.off.apply(d,arguments);return this};this.once=function(){d.once.apply(d,arguments);return this};this.emit=function(){var f=this._events;this._events=d._events;d.emit.apply(this,arguments);this._events=f;return this};this._clearEvents=function(f){d.clear(f)};L(c);q.ADFReload=c.ADFReload;q.ADFcall=q.ADFCall=c.ADFCall;h.addEvent(q,
"pagehide",e);c!=q&&(M(c),h.isOpera||9>h.ieVersion)&&(c.Adform&&c.Adform.trackIframe||N(c),c.Adform.trackIframe(b.iframe,e));try{H.register(this)}catch(f){r.log("fctest",f,1)}}function N(a){function b(){for(var k=e.length;k--;)e[k][0].parentNode||(e[k][1](),e.splice(k,1));e.length||(c=g(c))}var c,d=a.Adform=a.Adform||{},e=[],f=a.setInterval,g=a.clearInterval;d.trackIframe=function(k,l){e.push([k,l]);c||(c=f(b,200))}}function y(a){var b=this.options.xId,c=this.getUtils();a&&a.persisted||(h.removeEvent(q,
"pagehide",this.adDestroy),this.emit("destroy"),this.destroy&&this.destroy(),E.destroy(),z.call(this,!0),this._clearEvents(),this._wallpaper&&(this.toggleWallpaper(),delete this._wallpaper),c&&c.wipeOutBanner&&c.wipeOutBanner(b),this.settings=this.options=null)}function z(a){var b=this.options,c=b.bn,d=b.xId;b=b.seqNo;b=c+(b?"#"+b:"");var e=p.adRegister,f=this.win.Adform.adRegister;a?(delete e[b],delete e[c],delete e[d],delete f[b],delete f[c],delete f[d]):e[b]=e[c]=e[d]=f[b]=f[c]=f[d]=this}function L(a){function b(d,
e){var f=[].slice,g=a.Adform.adRegister;if(g[d]){var k=[g[d]];if(!/x|#/.test(d))for(var l in g)k[0]==g[l]||l.indexOf(d)||k.push(g[l]);g=arguments;g=2<g.length?f.call(g,2):!1;for(f=0;f<k.length;f++){l=k[f];var m="string"==typeof e?l[e]:e;"function"==typeof m&&(g?m.apply(l,g):m.call(l))}}}var c=a.setTimeout;a.ADFReload=function(d){c(function(){b(d||"1x","reload")},0)};a.ADFcall=a.ADFCall=b}function M(a){var b=a.Adform;b.Events=b.Events||{sendEvent:function(c,d,e,f,g){a.ADFCall(c,"sendEvent",d,e,f,g)}}}
function A(a){function b(){}var c=a.options,d=u[c.type],e=v.Type[d];h.inherit(b,e);var f=new b;I.factory(d,a,function(){var g=c.csImpressionUrl;try{e.call(f,a),f.emit("init",a)}catch(k){r.rethrow(k,"init")}g&&J(g)});return f}function w(a){function b(){a._beforeScript=!1;w(a)}var c=a._beforeScript,d=u[a.options.type];if(v.Type[d])if(c)O(b,0);else{x.applyHooks(a);try{a.events.emit("setup",a),D(a)}catch(e){r.rethrow(e,"setup")}a.preventInitialization||A(a)}else r.require(["types/"+d],b)}function P(a,
b){if(this._hovered!=a&&(this._hovered=a,this.interacted=!0,a?this._eventDelay(this,this.sendEvent,"141",b.content().assetId,"Mouse Over on Banner"):this._eventDelay(),this.onEngage))this.onEngage()}var q=r.window,K=q.parent,O=q.setTimeout,v=p.RMB,u={expanding:"Expanding",tearback:"Expanding",floating:"Floating",standard:"Standard",singleExpanding:"SingleExpanding",interstitial:"Interstitial",slider:"Slider"},n=t.prototype;G.supported();t.cbuild=function(a){var b=x.getData(a),c=b&&b.options;c&&(C.load(c.unloadVersion,
b),b._beforeScript=a._beforeScript,w(b))};t.ibuild=w;t.initialize=A;n.BANNER_TYPE="";n.setupUtils=function(a,b){var c=this.getUtils(),d=this.options.xId;c&&("string"==typeof a&&(a=[a]),c.addBannerAttribute(d,"relativeTargetSWFID",a[0]),c.addBannerAttribute(d,"trackElements",a),b&&c.addBannerAttribute(d,"trackHeatMap",b))};n.setupEngagement=function(a){var b=this,c=h.singleCall(0),d=0;b._eventDelay=h.singleCall(1E3);b._hovered=!1;for(a.length||(a=[a]);d<a.length;d++)a[d].on("hover",function(e,f){c(b,
P,e,f)})};n.sendEvent=function(a,b,c,d){return p.Events&&p.Events.sendEvent?(p.Events.sendEvent(this.options.xId,a,b,c,d||"",this.BANNER_TYPE),!0):!1};n.getUtils=function(){var a=p.ADFBannerUtils;if(a&&a.getInstance)return a.getInstance()};n.setupWallpaper=function(){var a=this.options,b=a.wallpaper,c=this.win.document,d=b.cssClass="adform-wallpaper-"+a.bn,e=b.element||"";e="html"==e?"":e.indexOf("#")?c.documentElement?" body":"":" "+e;b.target=a.landingPageTarget;F("adform-wallpaper",c).set("."+
d+e,"background: "+b.background);("undefined"==typeof b.autoShow||b.autoShow)&&this.toggleWallpaper(!0)};n.toggleWallpaper=function(a){function b(m){var B=(m=m||e.event,m.target||m.srcElement);return l?B.id==l:/^(html|body)$/i.test(B.nodeName)}function c(m){k.style.cursor=b(m)?"pointer":""}var d,e=this.win,f=this.options.wallpaper;if(this._wallpaper){"string"==typeof a&&(a="true"==a);try{var g=e.document,k=g.documentElement||g.body;(d=e.__adform_wallpaper)&&(a||d.cssClass==f.cssClass)&&(e.__adform_wallpaper=
null,k.style.cursor="",h.removeClass(k,d.cssClass),d.link&&(h.removeEvent(g,"mousemove",d._move),h.removeEvent(g,"mouseover",d._cursor),h.removeEvent(g,"click",d._click)));if(a&&(e.__adform_wallpaper=f,h.addClass(k,f.cssClass),f.link)){var l=(l=f.element)&&!l.indexOf("#")?l.slice(1):"";h.addEvent(g,"mousemove",f._move=function(m){h.removeEvent(g,"mousemove",arguments.callee);c(m)});h.addEvent(g,"mouseover",f._cursor=c);h.addEvent(g,"click",f._click=function(m){b(m)&&e.open(f.link,f.target)})}}catch(m){}}};
n.setupGateway=function(a,b){var c=this,d=c.options,e=c.getUtils();if(a.get("element"))p.Wallpaper&&p.Wallpaper.setup&&!a.get("frompos")&&(r.log("legacy_wallpaper",d.bn),p.Wallpaper.setup({bn:d.bn,utils:e&&e.banners&&e.banners[d.xId],element:a.get("element"),width:a.get("width"),height:a.get("height"),callback:b}));else a.onchange("element",function(){a.off("change:element",arguments.callee);c.setupGateway(a,b)})};n.adDestroy=y;n.reload=function(){this.adBox&&this.adBox.emit("content:reload")};n.setZIndex=
function(a){var b=this.options,c=u[b.type],d="adBox collapsed expanded wallpaper container overlay".split(" "),e=d.length;a=parseInt(a,10);if(!isNaN(a))for(this.zIndex=a;e--;){var f=d[e],g=this[f];!g||"container"==f&&"floating"!=b.behavior||"collapsed"==f&&"SingleExpanding"==c||g.set("zIndex","expanded"==f&&"Expanding"==c?a+1:"overlay"==f?a-1:a)}};return v.AdConstructor=t});
a(ya,[b],function(a){var c={},d=[180,181,182,183,184],e=["Viewable at 0%","Viewable at 25%","Viewable at 50%","Viewable at 75%","Viewable at 100%"],b=[25,26,27,28,29];a=b;for(b=0;b<a.length;b++)c[a[b]]={viewable:d[b],viewable_name:e[b],plays:!0};c[a[a.length-1]].plays=!1;c[a[a.length-1]].avoc=185;c[a[a.length-1]].avoc_name="AVOC";return c});
a(ca,[p,M,ya],function(l,k,d){function m(a,b){return function(c){a.engage(n[c]||b?"videoPlay":"videoStop")}}function p(a,b){return function(c){a.set("muted",null===b?c:b)}}function q(a,b){return function(){if(a.get("visible")){k.sendEvent(a.xId,b.viewable,0,b.viewable_name);var c;if(c=b.avoc)c=!a.get("muted");c&&k.sendEvent(a.xId,b.avoc,0,b.avoc_name)}a.engage(b.plays?
"videoPlay":"videoStop")}}var e={33:!1,34:!0,"video:muted":null},f={"video:state":null,31:!1,37:!0},n={playing:!0,stopped:!1,paused:!1,finished:!1};return function(a){var b=l(a.options.xId);a=a.sharedEvents;for(var c in e)if(e.hasOwnProperty(c))a.on(c,p(b,e[c]));for(var g in f)if(f.hasOwnProperty(g))a.on(g,m(b,f[g]));for(var h in d)if(d.hasOwnProperty(h))try{a.on(h,q(b,d[h]))}catch(v){}}});
a(da,function(){return{PAGE_LOAD_COMPLETE:"pageLoadComplete",LOAD_COMPLETE:"pageLoadComplete",READY:"ready",PERCENT:"percentLoaded",LOADED:"loaded",CANCELED:"canceled",POLITE_READY:"politeReady",HIDE:"hide",CLOSE:"close",SHOW:"show",ROLL_OUT:"rollOut",EXPAND_SETTINGS:"expandSettings",EXPAND_UPDATE:"updateBox",EXPAND_END:"expandComplete",COLLAPSE_END:"collapseComplete",FULL_SCREEN:"fullScreen",INSCREEN_INIT:"initInScreen",INSCREEN_UPDATE:"updateInScreen",EXTENDER:"extender",START_DRAG:"startDrag",
END_DRAG:"endDrag"}});
a(ba,[c,i,w,m,p,x,u,ca,n,da],function(q,u,J,k,K,L,C,M,N,D){function v(a,c){var d,b=this,h=a.userParams;v.super_.call(b,a,c);b.id="ad"+k.gid("Adform");b.video=!1;b.external={};C.setCallbacks(b,b.external);b.external.resize=function(e,f){var r,n=b.element(),w=b.wrapper,x=!1;c.width=e;c.height=f;if(n&&n.childNodes)for(r=a.iframe&&a.iframe.parentNode;r&&!x;)n===r&&(x=
!0),r=r.parentNode;w&&(w.style.width="100%",w.style.height="100%");n&&(n=k.byTag(n,"iframe")[0])&&(n.height=n.width="100%");b._adbox&&b._adbox.set({width:e,height:f})};b.external.setLayout=function(e){var f=e.type&&k.isMobile&&(k.isIOS||k.isAndroid);b.external.resize(e.width,e.height);b._adbox&&f&&b._adbox.reset(e)};b.sharedEvents=new L;var g=b.flashvars=c.flashvars;c=k.extend({},c);g.expandTime=a.showTime||0;g.collapseTime=a.hideTime||0;g.behavior=a.behavior;var p=a.landingPageTarget;g.landingPageTarget=
"_self"==p?"_parent":p;if(h)for(d in h)!h.hasOwnProperty(d)||d in g||(g[d]=h[d]);c.id=b.id;b.data=c;b.assetId=c.assetId||0;b.state("initial");b.once(O,b.write);C.inscreen(b);M(b)}function P(a,c,d,b,h){var g=k.isIE&&11>k.ieVersion,p=g?"frameElement":"this",e=a.createElement("div"),f=d.src.replace(/[^\/]+$/,"").replace(/^\/\//,a.location.protocol+"//")+(h?"bvpath_"+h+"/":"");h=!g&&!0;f="<!DOCTYPE html><title>ad</title><base href='"+f+"'>";var r="eval("+p+".getAttribute('data-onload'))";b=""+f+"<script>try{parent."+
b+"(window)}catch(ex){new Image().src='"+(u.host||"https://track.adform.net")+"/serving/jslog/?src=htmlcb&msg='+encodeURIComponent(''+(ex.stack||ex))}\x3c/script><script src='"+d.src+"' charset='UTF-8'>\x3c/script>";e.innerHTML='<iframe width="'+d.width+'" height="'+d.height+'" src="javascript:\'\';" allowtransparency="true" webkitallowfullscreen mozallowfullscreen allowfullscreen marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>';e=e.firstChild;e.setAttribute("data-contents",
b);e.setAttribute("data-onload","("+E+")("+p+","+g+")");c.appendChild(e);h&&k.addEvent(e,"load",function(){e.contentWindow.__rendered__||(eval(e.getAttribute("data-onload")),k.removeEvent(e,"load",arguments.callee))},!1);if(g)try{e.onload=e.contentWindow.onload=function(){e.contentWindow.onload=e.onload=null;E(e)}}catch(n){e.src="javascript:void(document.write('"+(f+"<script>document.domain='"+a.domain+"';"+r+"\x3c/script>").replace(/'/g,"\\'").replace(/\//g,"\\/")+"'));"}}function E(a,c){function d(){c?
p.open():p.open("text/html","replace");r?f.call(p,b):p.write(b);h.__rendered__=!0}var b=a.getAttribute("data-contents"),h=a.contentWindow,g=h.parent,p=h.document,e=h.setTimeout;try{var f=g.parent&&g.parent.HTMLDocument&&g.parent.HTMLDocument.prototype.write}catch(n){}var r=f&&g.HTMLDocument&&g.HTMLDocument.prototype.write!==f;-1==a.offsetHeight||h.__rendered__||(h.__rendered__=!0,c?d():e(d,0))}q=q.window;var A=q.setTimeout,B=q.clearTimeout,O=D.PAGE_LOAD_COMPLETE,F=D.READY;k.inherit(v,J);v.READY=F;
v.supported=function(){return!0};q=v.prototype;q.show=function(){var a=this._element;this.write();A(function(){a&&(a.style.background="")},100);this.element().style.width=this._width;this.state("visible")};q.hide=function(){var a=this._element;this.state("hidden");a&&this.created&&(this.callSwfMethod("pauseVideo"),a=this.element().style,this._width=a.width,a.width=0)};q.write=function(){var a=this,c=a._element,d=a.options,b=a.data,h=a.doc,g=a.win,p=k.gid("AdformWin"),e=d.bv;c&&!a.created&&(g[p]=function(f){function r(l){var t;
l+="";y.length?y.splice(-1,0,l):(t=l.match(/(\x3c!--[\s\S]*?--\x3e)|(<script(?:\s+[^>]*)?>[\s\S]*?<\/script>)/i))?(l=t[2],t=RegExp.leftContext+t[0],y.unshift(RegExp.rightContext),l?m._write(t+(l.match(/^<script[^>]+?src/i)?Q:"<script>document._continue();\x3c/script>")):(m._write(t),m._continue())):n(l)}function n(l){m._write(l+"<script>document._finish();\x3c/script>")}function w(){m.close()}function x(){var l=u.ADFEventsInstance;if(l&&l.addElement){var t=m.documentElement.id=a.id;l.addElement(d.xId,
[t],f);return!0}}var G,H,m=f.document,z=a.flashvars;z=u.cache||z.bv;var I=d.scriptsBase,Q='<script src="'+I+"rmb/Adform.WriteHelper.js?bv="+z+'">\x3c/script>',y=[];B(a.callbackDelay);a._contentWindow=f;f._Adform=u;f._Adform.Data=f._Adform.Data||a.data.flashvars;f._AdformContent=a;f.API_URL=I+"rmb/Adform.DHTML.js?bv="+z;m._write=m.write;m.write=k.isIE&&10>k.ieVersion?r:n;m._continue=function(){var l=y.join("");y.length=0;m.write(l)};m._writeln=m.writeln;m.writeln=function(l){m.write(l+"\r\n")};m._finish=
function(){B(G);G=A(w,10)};k.addEvent(f,"load",function(){if(!H){H=!0;k.removeEvent(f,"load",arguments.callee);if(!x())K(d.xId).on("registered",x);a.emit("loaded")}})},c=a.element(" ",c),P(h,a._container||c,b,p,e),a.callbackDelay=A(function(){N.pushMessage("callbackDelay",d.bn+" "+h.referrer||g.location.href,1)},1E4),b=c.style,a._width=b.width,b.width=0,a.created=(new Date).getTime(),a.emit(F))};q.destroy=function(){var a,c=u.ADFEventsInstance,d;if(this._elem&&this.created){this.state("destroyed");
if(a=k.byTag(this._elem,"iframe")[0]){var b=a.contentWindow||this._contentWindow;c&&c.removeElement&&(d=b.document)&&(d=d.documentElement)&&c.removeElement(this.options.xId,[d.id],b);this.docCloseTimer=B(this.docCloseTimer);b.cleanupAdform&&b.cleanupAdform();b._AdformContent=b._Adform=null;this.sharedEvents.clear();k.isIE&&(a.src="about:blank")}this.element("",!1)}this.created=0};q.callSwfMethod=function(a){var c=this.sharedEvents;c.emit.apply(c,arguments);this.emit("call:"+a)};q.state=function(a){var c=
this._state,d=this.sharedEvents;a&&a!=c&&(this._state=a,d.emit("changed:state",a),"visible"==a?d.emit("show"):"visible"==c&&d.emit("hide"));return this._state};return u.RMB.Content.HTML=v});
a(Ia,[c,i,h,o,m],function(e,q,r,t,n){function m(a){var b=this,c=a.options,h=a.$c,f=h.c,g=h.pc;h=h.h;var k=c.iab&&p.frameElement;m.super_.call(b,a);if(f){var d=b.adBox=(new r).publish("adBox",b);c.hidden&&b.hide();g?(g.style({position:"absolute",top:0,left:0,zIndex:1}),d.content(g,!0),g.once("pageLoadComplete",function(){d.content(f);f.once("loaded",n.bind(g,g.clear))})):d.content(f,!0);b.onEngage=function(){b.onEngage=null;d.content().emit("pageLoadComplete")};
b.setupEngagement(d);a=f.data;if(k&&!1!==c.iabResize){var l=k.style;l.width=a.width+"px";l.height=a.height+"px"}(l=c.iframeAPI)&&l.hasAPI&&l.register(a);a={position:c.position};c.$tag&&(a.before=c.$tag);k&&c.responsive&&(a.before=k,k.style.display="none");d.draw(u,a);b.setupUtils(d.id,h?f.id:null);b.setupGateway(d)}}var p=e.window,u=p.document;n.inherit(m,t);e=m.prototype;e.BANNER_TYPE="Standard Banner";e.destroy=function(){this.adBox&&this.adBox.destroy();this.adBox=null};e.show=function(){this._hidden&&
(this._hidden=!1,this.adBox.set("visible",!0))};e.hide=function(){this._hidden||(this._hidden=!0,this.adBox.set("visible",!1),this.reload())};return q.RMB.Type.Standard=m});
a(f,function(){return"u.C----cb4LZuCA"});
})(_adfq.define,"common/lib","$boot","Adform","engagement/Timer","engagement/ActiveTab","$env","common/EventEmitter","engagement/ExposureTimer","engagement/Counter","common/DOMEvents","common/DOMEventsET","engagement/overlap","common/Log","engagement/ViewUtil","engagement/EngagementItem","bootstrap/isAppView","h/timers","engagement/EngagementTracker","bootstrap/Events","bootstrap/Utils","h/beacon","engagement/EngagementAPI","iframe/IframeApiWrapper","common/Options","common/Flashvars","common/AdNoticeDefaults","DataParser","api/ARMA","common/StateEmitter","common/StyleSheet","AdBox","extra/Panels","api/content","AdContent","common/AdNoticeMarkup","contents/AdNotice","adqa/FCTest","AdConstructor","engagement/videoEventsMap","engagement/VideoEvents","contents/eventNames","contents/HTML","types/Standard","$ignore");