/*
 Adform.Bootstrap.js, version 1.7.43

 Copyright Adform
 http://www.adform.com

 Date: 2016-03-17 11:20:25
*/
(function(a,f,h,p){function u(a,q){(q?9==q.nodeType?q:q.document:h).write('<script type="text/javascript" src="'+a+'">\x3c/script>')}function r(h){for(var q=a._prepareBannerDataCB,t={},g="ADFVideoCDN ADFDomainCDN ADFDomain VideoCDN ADFVideoCDNList ADFcmpgnID ADFmembID ADFtagID ADFafbanID ADFBanVer ADFBanVerBak ADFbanID ADFbanPlacID ADFUnloadID ADFClientSiteId ADFGeoData ADFGroupId ADFTemplateVersion ADFTemplateId ADF_ClickEvent".split(" "),l=g.length-1;0<=l;l--)g[l]in f&&(t[g[l]]=f[g[l]]);var p=a.RMBData=
{clicktags:""};a._prepareBannerDataCB=function(){for(var l=g.length-1;0<=l;l--)g[l]in t&&(f[g[l]]=t[g[l]]);a.prepareBannerData(h);for(l in p)a.RMBData[l]="clicktags"!=l?p[l]:a.RMBData[l]+p[l];q&&q()};q||u(a.scriptBase+"bootstrap/Adform.BannerData.js?v="+a.cache)}a.host&&(ADFDynamicDomain=a.host+"/banners/");a.shost&&(ADFTemplateDomain=a.shost+"/banners/");a.ENV={akamaiHost:("https:"==h.location.protocol?"https://":"http://")+"adformvod-vh.akamaihd.net/i/Banners"};a.Log=a.Log||{sendMessage:function(n,
q,t){try{Math.random()<(t||1)&&(t=[],t.push(a.host+"/jslog/"),t.push("?src="),t.push(encodeURIComponent(n)),t.push("&msg="),t.push(encodeURIComponent(q)),(f.Image?new Image(1,1):h.createElement("img")).src=t.join(""))}catch(g){}}};a.loadResource=a.loadResource||u;a.prepareBannerData=a.prepareBannerData||r})(Adform=window.Adform||{},window,document);
(function(a){function f(a){var f={random:h,int32:function(){var a,f,h=[0,2567483615];if(624<=n)for(f=n=0;624>f;f++)a=r[f]&2147483648|r[(f+1)%624]&2147483647,r[f]=r[(f+397)%624]^a>>>1^h[a&1];a=r[n++];a^=a>>>11;a^=a<<7&2636928640;a^=a<<15&4022730752;return(a^a>>>18)>>>0}},r=[],n;a||(a=Math.round(1E5*((new Date).getTime()+Math.random())));r[0]=a>>>0;for(n=1;a=n-1,624>n;n++)a=r[a]^r[a]>>>30,r[n]=(1812433253*((a&4294901760)>>>16)<<16)+1812433253*(a&65535)+n,r[n]>>>=0;return f}function h(){return Math.floor(this.int32()/
2)}a.random=function(a){return f(a).random()}})(Adform=window.Adform||{});
(function(a,f,h){function p(){if(B)return B;if(this instanceof p){this.banners={};this.compoundBanners={};try{h.body||h.write("<html><body></body></html>")}catch(a){}var b=navigator,c=screen,d=b.browserLanguage||b.language||0,b=b.systemLanguage||d,e=c?c.width+"X"+c.height:0,c=c?c.colorDepth:0,f=this.getFlashVersion(),l=this.getWin(),k=50*Math.round(l.w/50),l=50*Math.round(l.h/50),g=this.hasIframeSanbox();this.settings=[escape(b),escape(d),e,f,k,l,c,8,3,7,g].join("|")}else return B=new p}function u(b){return this.compoundBanners["c"+
b]||null}function r(b){function c(b){var c=b.url;"stubFileExists"in g||(b.helper&&setTimeout(function(){a.Log.sendMessage("StubFileError","Cref: "+w+" > Adfserve: "+y+" > bn: "+r)},100),(g.stubFileExists=b.exists)?(c=M(c),l(a.scriptBase+"iframe/recache.html?bv="+N,"position:absolute;width:10px;height:10px;left:-9999px;top:-9999px"),l(c+"#"+N+"#"+A(r).src,"position:absolute;top:0;left:0;width:100%;height:100%",f._adform&&f._adform.tagFrame&&f.parent.document)):((d=a.RMB)&&(d=d.AdConstructor)&&(d=d.cbuild)||
(a.RMB=a.RMB||{},a.RMB.AdConstructor={build:q},a.thirdPartyCB=n),D(y)))}var d,e=this,k=e.getTagID(),g=e.addNewBanner(k,"undefined"==typeof a.ADFIframe?0:1);b=g.params=C(b,e);var m=b.get("compoundSeqNo");b.tracks&&(g.msn=1,g.OOBClickTracks=b.tracks);b.get("singleTag")&&(g.singleTag=!0,m=m||1,b.set("compoundSeqNo",m));g.compoundSeqNo=m;"prerender"==h[G]&&(b.set("hid",2),g.prerender=!0,h.addEventListener(H,function(){"prerender"!=h[G]&&g.prerender&&(h.removeEventListener(H,arguments.callee,!1),e.registerImpression(g))},
!1));var t=Math.floor(11E3*Math.random())+";set",r=b.BN,p=e.getCompoundBannerInfo(r),z=e.getPropByBn("smid",r),v=b.ROTSEQ,u=!1,x=!1;m&&(m=e.getRotSeed(),u=m.gen(r),m.compound[r]?x=m.compound[r]:v&&(m.compound[r]=v));b.set("js",1);b.set("adfxid",k);b.set(t,e.settings);u&&b.set("rotseed",u);x&&b.set("rotseq",E(x));p&&b.set("rotseqno",p.replace("r",""));z&&b.set("smid",z);a.CDNHost&&b.set("cdnhost",E(a.CDNHost));var y=g.params.toString(),w=g.params.CREFURL;if(w&&e.needStubFile()&&!a.ADF_STUB)w=M(w).replace(/(:\/\/[^\/]+\/).*/,
"$1"),a.stubFile=c,D(a.host+"/adfstub/?bn="+r+"&CREFURL="+E(w)),D(a.scriptBase+"extra/StubHelper.js?bv="+a.cache);else{if(a.ADF_STUB)try{a.Log.sendMessage("StubFile","Banner loaded using stubFile",.1)}catch(B){}(d=a.RMB)&&(d=d.AdConstructor)&&(d=d.cbuild)||(a.RMB=a.RMB||{},a.RMB.AdConstructor={build:q},a.thirdPartyCB=n);D(y)}return g}function n(b){var c=b.placeId="+ADFP"+b.adfxid;h.write('<i id="'+c+'" style="display:none"></i>');t(["types/ThirdParty",b])}function q(){var b,c,d,e=a.BannerList&&a.BannerList.shift()||
a.RMBData;e&&(b=e.type,c=e.behavior,d=e.adfxid||e.ADFid,e._beforeScript=a._beforeScript,a._beforeScript=!1,{standard:1,expanding:1,singleExpanding:1}[b]&&![0,0,0,1,1][c]&&(e.placeId="+ADFP"+d,b=B.banners[d],h.write('<div id="'+e.placeId+'"'+(b.singleTag?"":' style="width:'+b.width+"px;height:"+b.height+'px;"')+'></div><i style="display:none"></i>')),t(["$main",e]))}function t(b){if(!a.bootLoaded){var c=h.getElementsByTagName("script")[0],d=h.createElement("script"),e=a.shost?a.shost.split("/")[2]:
"s1.adform.net";d.type="text/javascript";d.src=(a.shost||("https:"==location.protocol?"https://":"http://s1.adform.net"))+"/stoat/"+a.cache+"/"+e+"/boot.js";c.parentNode.insertBefore(d,c);a.bootLoaded=!0}(f._adfq||(f._adfq=[])).push(b)}function g(){var b=f.$sf,c=f.parent,a=this._stub,e=f._adform&&f._adform.tagFrame;if(null==a){a=!(f==c||f.inDapMgrIf||f.inDapIF||f.inFIF||b&&b.ext);!a&&e&&(a=!0,c=e.parent);if(a)try{c.document.getElementById,a=!1}catch(g){}this._stub=a}return a}function l(b,c,a){a=a||
h;var e=a.createElement("div");e.innerHTML='<iframe src="'+b+'" allowtransparency="true" webkitallowfullscreen mozallowfullscreen allowfullscreen marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" style="'+(c||"")+'"></iframe>';a.body.appendChild(e.removeChild(e.firstChild))}function A(b){var c=a.ADFIframe&&{src:f.location.href.replace(/cpjs=2/,"cpjs=0")},d,e,g,l=/\/adfscript/;if(!c)for(d=h.getElementsByTagName("script"),e=d.length;e--&&!c;)(g=d[e]).src&&g.src.match(l)&&
-1<g.src.indexOf(b)&&(c=g);return c||{}}function C(b){var c,a,e=f._adform&&f._adform.tagFrame;c=b;if("undefined"!=typeof b.URL){try{a=f.top.location.href.split("#")[0]}catch(g){c=e||f,a=(a=c.location.ancestorOrigins)&&a[a.length-1],a=c.document.referrer||a}a=a?E(a):b.CREFURL;c=new I(b.URL);c.append.push("&CREFURL="+a);c.CREFURL=a;c.BN=b.BN;c.ROTSEQ=b.ROTSEQ}return c}function y(b,a){return this.banners[b]={id:b,type:a,adfserveLoadTime:this.now()}}function z(b,a){var d=this.banners[b];if(!d||!d.params)return null;
var d=d.params.copy(),e;for(e in a)O.call(a,e)&&d.set(e,a[e]);return this.createBanner(d)}function v(b){var c=this.banners[b];c&&(x&&(x.id=a.random(),x.compound&&delete x.compound[c.bn]),delete this.compoundBanners["c"+c.bn],delete this.banners[b])}function m(b,a,d){(b=this.banners[b])&&(b[a]=d)}function w(){var b=this.getRotSeed();b.xId||(b.xId=0);return++b.xId+"x"}function S(){var b,c,d,e,g;if(!x){try{for(b=J(f.top),c=0,d=b.length;c<d;c++)if(e=b[c],e!=f&&(g=P(e))&&g.getRotSeed){x=g.getRotSeed();
break}}catch(l){}x?x.gen=Q:x={compound:{},id:a.random(),gen:Q}}return x}function T(b){try{for(var a=J(f.top),d=a.length,e,g,l,h;d--;)for(l in e=(g=P(a[d]))&&g.banners,e)if(h=e[l],h.bn==b&&1==h.compoundSeqNo)return h.unloadID}catch(k){}}function J(b,a){try{if(b){(a=a||[]).push(b);for(var d=0;d<b.frames.length;d++)J(b.frames[d],a);return a}}catch(e){}}function Q(b){return a.random(b+this.id)}function P(b){try{return b.Adform&&b.Adform.ADFUtilInstance}catch(a){}}function U(){if(-1==K){var b=navigator.plugins,
a=navigator.mimeTypes,d=f.ActiveXObject,e=16,g,b=b&&b["Shockwave Flash"]&&(!a||!a["application/x-shockwave-flash"]||a["application/x-shockwave-flash"].enabledPlugin)&&(b["Shockwave Flash"].version||b["Shockwave Flash"].description)||"";if(!b&&d)for(;6<=e--;)try{g=new d("ShockwaveFlash.ShockwaveFlash."+e);6==e&&(g.AllowScriptAccess="always",b="WIN 6.0.21.0");try{b=g.GetVariable("$version").replace(/,/g,".")}catch(l){}break}catch(l){}K=parseFloat(b.replace(/^.*?(\d+[\.,].*$)/,"$1").replace(/(^\d+\.)|\./g,
"$1"))||0}return K}function V(){var b=h.documentElement,a=h.body;return{w:f.innerWidth||b&&b.clientWidth||a&&a.clientWidth,h:f.innerHeight||b&&b.clientHeight||a&&a.clientHeight}}function W(){return this.settings}function X(b){("undefined"==typeof Image?h.createElement("img"):new Image).src=b}function Y(b){var a=this.TargAd||{};a[b]||((this.TargAd=a)[b]=!0,b=b.replace("{gmtr}",Math.floor(9999999999*Math.random())).replace("{gmttzd}",(new Date).getTimezoneOffset()),this.firePixel(b))}function Z(b){if(b&&
b.prerender){var a=b.params.copy();a.set("hid",1);b.rotseqno&&a.set("rotseqno",b.rotseqno);var d=h.createElement("script");d.src=a.toString();d.type="text/javascript";h.body.appendChild(d);delete b.prerender}}function aa(b,a){this.compoundBanners["c"+b]="r"+a}function ba(b){var c=this.banners[b],d=this.now(),e=d-c.adfserveLoadTime,g=parseInt(c.serverTime,10),f=1,l=c.syncMembersCount;this.addBannerAttribute(b,"adfserveLoadTime",e);g&&(g+=Math.round(.5*e),this.addBannerAttribute(b,"serverTime",g),this.addBannerAttribute(b,
"timeDiff",g-d));this.addBannerAttribute(b,"registered",1);this.sendLoadMetrics(b);if(c.singleTag&&1==c.compoundSeqNo)for(;f++<l;)this.copyBanner(b,{compoundSeqNo:f,compoundImpr:0});try{var h=a.ADFEventsInstance;h&&h.register(c);b=R;for(var f=0,k=b.length;f<k;f++)b[f].call(this)}catch(m){}}function ca(b){b=this.banners[b];if(!b.metricsSent){b.metricsSent=!0;b=[{map:{adfserveLoadTime:"adfserve"},source:b},{map:{Country:"ls",Region:"lr",City:"lc"},source:a.locationInfo||{}}];for(var c=[],d=b.length,
e,g,f;d--;)for(e in g=b[d].map,f=b[d].source,g)f.hasOwnProperty(e)&&c.push(g[e]+"="+f[e]);.1>Math.random()&&((new Image).src=a.host+"/jsmetrics/?"+c.join("&"))}}function da(b){R.push(b)}function ea(){var b=this._sandbox;if("number"!=typeof b){b=1;try{f.top.document.getElementById,b=0}catch(a){}this._sandbox=b}return b}function fa(b,a){var d,e,g=this.banners;for(d in g)if(e=g[d],e.bn==a&&b in e)return e[b]}function ga(){return(new Date).getTime()}function ha(b,a){return function(){a.apply(b,arguments)}}
function ia(b,a,d,e){d.addEventListener?d.addEventListener(b,this.ADFCreateObjectCallback(eval(e),eval(a)),!1):d.attachEvent&&d.attachEvent("on"+b,this.ADFCreateObjectCallback(eval(e),eval(a)),!1)}function ja(b){try{var a={};a.y=b.offsetTop;a.x=b.offsetLeft;for(var d;null!=b.offsetParent;)d=b.offsetParent,a.y+=d.offsetTop,a.x+=d.offsetLeft,b=d;return a}catch(e){}}function ka(){try{var b={x:0,y:0};"number"==typeof f.pageYOffset?(b.y=f.pageYOffset,b.x=f.pageXOffset):h.body&&(h.body.scrollLeft||h.body.scrollTop)?
(b.y=h.body.scrollTop,b.x=h.body.scrollLeft):h.documentElement&&(h.documentElement.scrollLeft||h.documentElement.scrollTop)&&(b.y=h.documentElement.scrollTop,b.x=h.documentElement.scrollLeft);return b}catch(a){}}function la(){try{if(-1!=navigator.appVersion.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Opera"))return"MSIE";if(-1!=navigator.userAgent.indexOf("Safari"))return"Safari";if(-1!=navigator.userAgent.indexOf("Opera"))return"Opera";if(-1!=navigator.appName.indexOf("Netscape"))return-1==navigator.product.indexOf("Gecko")||
-1==navigator.vendor.indexOf("Firefox")&&-1==navigator.userAgent.indexOf("Firefox")?"Netscape":"Firefox"}catch(a){}}function I(a){a=a||"";var c=a.split(";oobclicktrack=");c.shift();c.length&&(this.tracks=c);a=a.split("?");this._base=a.shift();this._parts=a.join("?").split(";");this.append=[]}function ma(){var a=new I,c;for(c in this)O.call(this,c)&&(a[c]=this[c]&&this[c].slice?this[c].slice(0):this[c]);return a}function na(a,c){var d=this._parts,e=L(d,a,c);if(~e)return d[e].slice(a.length+1)}function oa(a,
c,d){var e=this._parts;d=L(e,a,d);~d?e[d]=e[d].slice(0,a.length+1)+c:e.push(a+"="+c);return this}function pa(a,c){var d=this._parts,e=L(d,a,c);~e&&d.splice(e,1);return this}function qa(){return this._base+"?"+this._parts.join(";")+this.append.join("")}function L(a,c,d){var e=a.length;c+="=";var g,f=c.length;for(d||(c=c.toLowerCase());e--&&(g=a[e].slice(0,f),d||(g=g.toLowerCase()),g!==c););return e}if(!a.ADFBannerUtils){var O=Object.prototype.hasOwnProperty,D=a.loadResource,E=f.encodeURIComponent,
ra=f.decodeURIComponent,M=function(a){var c;try{c=ra(a)}catch(g){c=a}return c},G=null,H=null,k={webkitVisibilityState:"webkitvisibilitychange",mozVisibilityState:"mozvisibilitychange",msVisibilityState:"msvisibilitychange",visibilityState:"visibilitychange"},F;for(F in k)F in h&&(G=F,H=k[F]);var N=a.cache,K=-1,B,x,k=p.prototype;k.getCompoundBannerInfo=u;k.createBanner=r;k.addNewBanner=y;k.copyBanner=z;k.wipeOutBanner=v;k.addBannerAttribute=m;k.getTagID=w;k.getRotSeed=S;k.getFlashVersion=U;k.getWin=
V;k.getSettings=W;k.firePixel=X;k.fireTargAdPixel=Y;k.registerImpression=Z;k.addCompoundBannerInfo=aa;k.setBannerRegisteredStatus=ba;k.onBannerRegisteredStatus=da;k.hasIframeSanbox=ea;k.getPropByBn=fa;k.now=ga;k.needStubFile=g;k.getAdfscript=A;k.getUnloadId=T;k.sendLoadMetrics=ca;a.ADFBannerUtils=p.getInstance=p;a.ADFUtilInstance=p();var R=[];k.ADFCreateObjectCallback=ha;k.eventRegister=ia;k.getPosition=ja;k.getScrollXY=ka;k.getBrowser=la;k=I.prototype;k.copy=ma;k.get=na;k.set=oa;k.unset=pa;k.toString=
qa}})(Adform=window.Adform||{},window,document);
(function(a,f,h){var p=a.ADFUtilInstance,u=a.host;(a.ADFBanner=function(){var f=u+"/jslog/?src=ADFBanner&severity=4&msg=",n=a.ADFBannerParams&&a.ADFBannerParams.length?a.ADFBannerParams.shift():a.ADFBannerData;try{p.createBanner(n)}catch(v){if((new Image).src=f+(n?"data:":"error:")+encodeURIComponent(""+(v.stack||v)),n)try{var q=n.URL,t=n.BN,g=p.getAdfscript(t),l=h.createElement("div"),n=g,A,C,y,z,q=q.split(";");q[0]+=";srctype=4";for(q=q.join(";");n;)A="BODY"==n.nodeName,C="HEAD"==n.nodeName,n=!(A||
C)&&n.parentNode;A?(y=g.parentNode,z=g):y=h.body;l.innerHTML='<a href="'+u+"/C/?bn="+t+';C=0"><img src="'+q+'"></a>';y.insertBefore(l.firstChild,z||null)}catch(m){(new Image).src=f+"fallback:"+encodeURIComponent(""+(m.stack||m))}}})()})(Adform=window.Adform||{},window,document);
(function(a,f,h){function p(g,l,n,q,r){try{this.notifyAboutEvent.apply(this,arguments)}catch(t){}var p=(new Date).getTime()-this.InitTime,p=0<p?Math.round(p/1E3):0,p=Math.min(p,3600),v=a.ADFBannerUtils&&a.ADFBannerUtils.getInstance(),m=v&&v.banners&&v.banners[g],w=a.adRegister&&a.adRegister[g];if(!m&&w)return w.sendEvent(l,n,q,r);if(m&&m.isEventsEnabled){w=m.bn;!m._imprID&&1<m.compoundSeqNo&&(m._imprID=v.getUnloadId(w)||m.unloadID);for(var p=["bn",w,"event",l,"time",p,"banner",m.ban,"innerbanner",
m.innerban,"asset",n,"name",q,"imprid",m._imprID||m.unloadID,"icid",m.cookieID,"adxvars",m.adxvars,"rnd",Math.floor(1E9*Math.random())],v=[],m=0,w=p.length,u;m<w;m+=2)(u=p[m+1])&&v.push(p[m]+"="+encodeURIComponent(u));v=this.Host+"/Serving/Event/?"+v.join("&")+(r||"");return(f.Image?new f.Image(1,1):h.createElement("img")).src=v}}var u=Object.prototype.hasOwnProperty,r=a.ADFBannerUtils&&a.ADFBannerUtils.getInstance(),n={Initialized:!1,InitTime:(new Date).getTime(),Host:a.host||("https:"==h.location.protocol?
"https://":"http://")+"track.adform.net",callbacks:[],sendEvent:p,Initialize:function(){this.Initialized=!0;var a=this.Host+"/jslog/?src=ADFBanner&severity=4&msg=";(new Image).src=a+"initEvents"},registerCallback:function(a,f){"function"==typeof a&&this.callbacks.push([a,f])},unregisterCallback:function(a){var f=this.callbacks,h=f.length;if("function"==typeof a)for(;h--;)f[h][0]==a&&f.splice(h,1)},notifyAboutEvent:function(){for(var a=this.callbacks.slice(),f=0,h=a.length;f<h;f++)a[f][0].apply(a[f][1]||
this,arguments)}},q=a.Events;if(q){for(var t in n)u.call(n,t)&&!u.call(q,t)&&(q[t]=n[t]);q.sendEvent=p}else q=a.Events=n;a.ADFEvents2||(a.ADFEvents2=q);r.onBannerRegisteredStatus(function(){var g=r.banners,h;for(h in g)g="FSCommandID"+h,"function"!=f[g]&&function(g,h){f[h]=function(f,h){a.Events.sendEvent(g,h.split("#|#")[1])}}(h,g)})})(Adform=window.Adform||{},window,document);