(function(){var e=void 0,g=!0,h=null,j=!1,k,m=this,aa=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&
!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},n=function(a){return"array"==aa(a)},ba=function(a){var b=aa(a);return"array"==b||"object"==b&&"number"==typeof a.length},q=function(a){return"string"==typeof a},r=function(a){return"number"==typeof a},s=function(a){return"function"==aa(a)},ca="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),da=0,ea=function(a,b,c){return a.call.apply(a.bind,
arguments)},fa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},ga=function(a,b,c){ga=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ea:fa;return ga.apply(h,arguments)},t=function(a,b){function c(){}c.prototype=b.prototype;a.Eb=b.prototype;
a.prototype=new c};var w=function(){return m.googletag||(m.googletag={})},x=function(a,b,c){var d=w();if(!(a in d)||c)d[a]=b},ha=function(a,b){a.attachEvent?a.attachEvent("onload",b):a.addEventListener&&a.addEventListener("load",b,j)};var z=function(a,b,c,d,f){this.da=new Date;this.p=d||h;this.ca=c||h;this.Ca=a;this.Da=b;this.ba=f||h};k=z.prototype;k.Na=function(){return this.p};k.Ma=function(){return this.ca};k.La=function(){return this.Ca};k.Ha=function(){return this.da};k.lb=function(){return this.Da};k.nb=function(){return this.ba};var ia=["Debug","Info","Warning","Error","Fatal"];
z.prototype.toString=function(){var a=this.da.toTimeString()+": "+ia[this.Ca]+": "+this.Da;this.ba&&(a+=" Duration: "+(this.da.getTime()-this.ba.Ha().getTime())+"ms.");return a};z.prototype.getTimestamp=z.prototype.Ha;z.prototype.getService=z.prototype.Ma;z.prototype.getSlot=z.prototype.Na;z.prototype.getLevel=z.prototype.La;z.prototype.getMessage=z.prototype.lb;z.prototype.getReference=z.prototype.nb;var B=function(){this.F=[]};B.prototype.eb=function(){return this.F};B.prototype.ib=function(a){return ja(this,function(b){return b.Ma()===a})};B.prototype.jb=function(a){return ja(this,function(b){return b.Na()===a})};B.prototype.hb=function(a){return ja(this,function(b){return b.La()>=a})};var ja=function(a,b){for(var c=[],d=0;d<a.F.length;++d)b(a.F[d])&&c.push(a.F[d]);return c};B.prototype.log=function(a,b,c,d,f){a=new z(a,b,c,d,f);this.F.push(a);return a};
B.prototype.info=function(a,b,c,d){return this.log(1,a,b,c,d)};var C=function(a,b,c,d){a.log(2,b,c,d,e)};B.prototype.error=function(a,b,c,d){return this.log(3,a,b,c,d)};var E=function(){var a=w();return a.debug_log||(a.debug_log=new B)};x("getEventLog",E);B.prototype.getAllEvents=B.prototype.eb;B.prototype.getEventsByService=B.prototype.ib;B.prototype.getEventsBySlot=B.prototype.jb;B.prototype.getEventsByLevel=B.prototype.hb;var F=function(){this.Ia=this.ia=0};F.prototype.push=function(a){for(var b=E(),c=0;c<arguments.length;++c)try{s(arguments[c])&&(arguments[c](),this.ia++)}catch(d){this.Ia++,b.error("Exception invoking function: "+d.message)}b.info("Invoked queued function. Total: "+this.ia+" Errors: "+this.Ia);return this.ia};F.prototype.push=F.prototype.push;var ka=function(a){this.t={};this.tick=function(a,c,d){this.t[a]=[d!=e?d:(new Date).getTime(),c]};this.tick("start",h,a)},la=new ka;window.GPT_jstiming={Timer:ka,load:la};if(window.performance&&window.performance.timing){var ma=window.performance.timing,G=window.GPT_jstiming.load,H=ma.navigationStart,na=ma.responseStart;0<H&&na>=H&&(G.tick("_wtsrt",e,H),G.tick("wtsrt_","_wtsrt",na),G.tick("tbsd_","wtsrt_"))}
try{var I=h;window.chrome&&window.chrome.csi&&(I=Math.floor(window.chrome.csi().pageT),G&&0<H&&(G.tick("_tbnd",e,window.chrome.csi().startE),G.tick("tbnd_","_tbnd",H)));I==h&&window.gtbExternal&&(I=window.gtbExternal.pageT());I==h&&window.external&&(I=window.external.pageT,G&&0<H&&(G.tick("_tbnd",e,window.external.startE),G.tick("tbnd_","_tbnd",H)));I&&(window.GPT_jstiming.pt=I)}catch(oa){};if(window.GPT_jstiming){window.GPT_jstiming.Ka={};window.GPT_jstiming.Ua=1;var pa=function(a,b,c){var d=a.t[b],f=a.t.start;if(d&&(f||c))return d=a.t[b][0],c!=e?f=c:f=f[0],d-f},qa=function(a,b,c){var d="";window.GPT_jstiming.pt&&(d+="&srt="+window.GPT_jstiming.pt,delete window.GPT_jstiming.pt);try{window.external&&window.external.tran?d+="&tran="+window.external.tran:window.gtbExternal&&window.gtbExternal.tran?d+="&tran="+window.gtbExternal.tran():window.chrome&&window.chrome.csi&&(d+="&tran="+window.chrome.csi().tran)}catch(f){}var l=
window.chrome;if(l&&(l=l.loadTimes)){l().wasFetchedViaSpdy&&(d+="&p=s");if(l().wasNpnNegotiated){var d=d+"&npn=1",p=l().npnNegotiatedProtocol;p&&(d+="&npnv="+(encodeURIComponent||escape)(p))}l().wasAlternateProtocolAvailable&&(d+="&apa=1")}var y=a.t,A=y.start,l=[],p=[],u;for(u in y)if("start"!=u&&0!=u.indexOf("_")){var v=y[u][1];v?y[v]&&p.push(u+"."+pa(a,u,y[v][0])):A&&l.push(u+"."+pa(a,u))}delete y.start;if(b)for(var D in b)d+="&"+D+"="+b[D];(b=c)||(b="https:"==document.location.protocol?"https://csi.gstatic.com/csi":
"http://csi.gstatic.com/csi");a=[b,"?v=3","&s="+(window.GPT_jstiming.sn||"gpt")+"&action=",a.name,p.length?"&it="+p.join(","):"","",d,"&rt=",l.join(",")].join("");if(!a)return"";var d=new Image,Aa=window.GPT_jstiming.Ua++;window.GPT_jstiming.Ka[Aa]=d;d.onload=d.onerror=function(){window.GPT_jstiming&&delete window.GPT_jstiming.Ka[Aa]};d.src=a;d=h;return a};window.GPT_jstiming.report=function(a,b,c){if("prerender"==document.webkitVisibilityState){var d=j,f=function(){if(!d){b?b.prerender="1":b={prerender:"1"};
var l;"prerender"==document.webkitVisibilityState?l=j:(qa(a,b,c),l=g);l&&(d=g,document.removeEventListener("webkitvisibilitychange",f,j))}};document.addEventListener("webkitvisibilitychange",f,j);return""}return qa(a,b,c)}};var J,ra,K,sa,ta=function(){return m.navigator?m.navigator.userAgent:h};sa=K=ra=J=j;var ua;if(ua=ta()){var va=m.navigator;J=0==ua.indexOf("Opera");ra=!J&&-1!=ua.indexOf("MSIE");K=!J&&-1!=ua.indexOf("WebKit");sa=!J&&!K&&"Gecko"==va.product}var wa=J,L=ra,xa=sa,ya=K,za=function(){var a=m.document;return a?a.documentMode:e},Ba;
a:{var Ca="",M;if(wa&&m.opera)var Da=m.opera.version,Ca="function"==typeof Da?Da():Da;else if(xa?M=/rv\:([^\);]+)(\)|;)/:L?M=/MSIE\s+([^\);]+)(\)|;)/:ya&&(M=/WebKit\/(\S+)/),M)var Ea=M.exec(ta()),Ca=Ea?Ea[1]:"";if(L){var Fa=za();if(Fa>parseFloat(Ca)){Ba=String(Fa);break a}}Ba=Ca}
var Ga=Ba,Ha={},Ia=function(a){if(!Ha[a]){for(var b=0,c=String(Ga).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),f=Math.max(c.length,d.length),l=0;0==b&&l<f;l++){var p=c[l]||"",y=d[l]||"",A=RegExp("(\\d*)(\\D*)","g"),u=RegExp("(\\d*)(\\D*)","g");do{var v=A.exec(p)||["","",""],D=u.exec(y)||["","",""];if(0==v[0].length&&0==D[0].length)break;b=((0==v[1].length?0:parseInt(v[1],10))<(0==D[1].length?0:parseInt(D[1],10))?-1:(0==v[1].length?0:
parseInt(v[1],10))>(0==D[1].length?0:parseInt(D[1],10))?1:0)||((0==v[2].length)<(0==D[2].length)?-1:(0==v[2].length)>(0==D[2].length)?1:0)||(v[2]<D[2]?-1:v[2]>D[2]?1:0)}while(0==b)}Ha[a]=0<=b}},Ja=m.document,Ka=!Ja||!L?e:za()||("CSS1Compat"==Ja.compatMode?parseInt(Ga,10):5);if(xa||L){var La;if(La=L)La=L&&9<=Ka;La||xa&&Ia("1.9.1")}L&&Ia("9");var N=function(a,b){this.Wa=a;this.Va=b};N.prototype.sb=function(){return this.Wa};N.prototype.kb=function(){return this.Va};N.prototype.getWidth=N.prototype.sb;N.prototype.getHeight=N.prototype.kb;var O=function(a,b,c){this.w=a;this.Ea=r(b)?b:0;this.g=this.w+"_"+this.Ea;this.Ta=c||"gpt_unit_"+this.g};k=O.prototype;k.o=function(){return this.g};k.getName=function(){return this.w};k.Ga=function(){return this.Ea};k.toString=O.prototype.o;k.l=function(){return this.Ta};O.prototype.getId=O.prototype.o;O.prototype.getName=O.prototype.getName;O.prototype.getDomId=O.prototype.l;O.prototype.getInstance=O.prototype.Ga;var Ma=function(a){return a.replace(/[^a-zA-Z0-9]/g,function(a){return"&#"+a.charCodeAt()+";"})},Na=function(){var a=h,b=window,c=h;try{for(;b!=h&&b!==a;){c=b.location.protocol;if("https:"===c)break;else if("http:"===c||"file:"===c)return j;a=b;b=b.parent}}catch(d){}return g};var P=function(a,b,c,d){this.w=a;var f=[];if(n(c))if(1<c.length&&r(c[0])&&r(c[1]))f.push(new N(c[0],c[1]));else for(var l=0;l<c.length;++l){var p=c[l];n(p)&&(1<p.length&&r(p[0])&&r(p[1]))&&f.push(new N(p[0],p[1]))}this.Pa=f;this.g=new O(a,b,d);this.c=[];this.h={};this.m=h;this.b=E();this.b.info("Created slot: "+this.g,h,this);this.v=this.J=h;this.ra=this.qa="";this.P=g;this.d={};this.sa=j};k=P.prototype;
k.set=function(a,b){var c=[" attribute ",a," with value ",b," for slot ",this.getName()].join("");a&&q(a)&&b?(this.h[a]=b,this.J||this.v?C(this.b,"Setting"+c+" after its contents have been loaded",h,this):this.b.info("Setting"+c,h,this)):C(this.b,"Unable to set"+c,h,this);return this};k.get=function(a){return a in this.h?this.h[a]:h};k.A=function(){var a=[],b;for(b in this.h)s(this.h[b])||a.push(b);return a};
k.aa=function(a){for(var b=0;b<this.c.length;++b)if(a==this.c[b])return C(this.b,"Service "+a.getName()+" is already associated with slot "+this.g,a,this),this;this.c.push(a);a.Y(this);return this};k.getName=function(){return this.w};k.i=function(){return this.g};k.ob=function(){return this.c};k.pb=function(){return this.Pa};k.z=function(){return!!document.getElementById(this.g.l())};k.O=function(a){this.m=a};k.D=function(a){this.ra=a;return this};k.U=function(){return this.ra};
k.r=function(a,b){var c=[];n(b)?c=b:b&&c.push(b.toString());var d=[" targeting attribute ",a," with value ",c.join()," for slot ",this.getName()].join("");if(a&&q(a)){this.b.info("Setting"+d,h,this);a:{var d=this.d[a],f=c;if(!ba(d)||!ba(f)||d.length!=f.length)d=j;else{for(var l=d.length,p=0;p<l;p++)if(d[p]!==f[p]){d=j;break a}d=g}}this.d[a]=c;if(!d&&(this.J||this.v))for(d=0;d<this.c.length;++d)f=this.c[d],f.isEnabled()&&f.ta(this,a,c)}else C(this.b,"Unable to set"+d,h,this);return this};
k.Xa=function(){this.b.info("Clearing slot targeting.",h,this);var a;a:{for(a in this.d){a=j;break a}a=g}this.d={};if(!a)for(a=0;a<this.c.length;++a){var b=this.c[a];b.isEnabled()&&b.clearSlotTargeting(this)}return this};k.qb=function(){var a=this.d,b={},c;for(c in a)b[c]=a[c];return b};k.mb=function(){return this.sa};
var Oa=function(a){if(!a.z())return a.b.error("Unable to write to slot "+a.g+". It has not yet been rendered.",h,a),j;var b=m.document,c=a.g.l(),b=b&&b.getElementById(c);if(!b)return a.b.error("Unable to find the div container with id "+c+" for slot "+a.g,h,a),j;c=a.m;return q(c)&&0<c.length?(a.xa(),b.innerHTML=c,a.wa(),g):j};k=P.prototype;k.cb=function(a){this.J=this.b.info("Fetching ad for slot "+this.getName(),h,this);this.qa=a};k.fb=function(){return this.qa};
k.bb=function(){this.b.info("Receiving ad for slot "+this.getName(),h,this,this.J)};k.xa=function(){this.v=this.b.info("Rendering ad for slot "+this.getName(),h,this)};k.wa=function(){this.b.info("Completed rendering ad for slot "+this.getName(),h,this,this.v)};P.prototype.set=P.prototype.set;P.prototype.get=P.prototype.get;P.prototype.getName=P.prototype.getName;P.prototype.getSlotId=P.prototype.i;P.prototype.getSizes=P.prototype.pb;P.prototype.addService=P.prototype.aa;
P.prototype.getOutOfPage=P.prototype.mb;P.prototype.getServices=P.prototype.ob;P.prototype.getAttributeKeys=P.prototype.A;P.prototype.fetchStarted=P.prototype.cb;P.prototype.fetchEnded=P.prototype.bb;P.prototype.renderStarted=P.prototype.xa;P.prototype.renderEnded=P.prototype.wa;P.prototype.hasWrapperDiv=P.prototype.z;P.prototype.getContentUrl=P.prototype.fb;P.prototype.setClickUrl=P.prototype.D;P.prototype.getClickUrl=P.prototype.U;P.prototype.clearTargeting=P.prototype.Xa;
P.prototype.getTargetingMap=P.prototype.qb;P.prototype.setTargeting=P.prototype.r;var Q=function(){this.C={};this.K={};this.b=E()};Q.prototype.add=function(a,b,c){if(!q(a)||0>=a.length||!b)return h;a in this.C||(this.C[a]=[]);b=new P(a,this.C[a].length,b,c);c=b.i().l();if(this.K[c])return this.b.error("Div element "+c+" is already associated with another slot"),h;this.C[a].push(b);return this.K[b.i().l()]=b};Q.prototype.find=function(a,b){var c=b||0,d=q(a)&&this.C[a]||[];return 0<=c&&c<d.length&&(d=d[c],d.i().Ga()==c)?d:h};
var Pa=function(){var a=w();return a.slot_manager_instance||(a.slot_manager_instance=new Q)},Qa=function(a,b,c){var d=Pa();return d&&d.add(a,b,c)};x("defineOutOfPageSlot",function(a,b){var c=Pa();return!c?h:(c=c.add(a,[1,1],b))?(c.sa=g,c):h});x("defineSlot",Qa);x("defineUnit",Qa);Q.prototype.find=Q.prototype.find;Q.getInstance=Pa;var Ra=function(a){var b=E();if(q(a)){var c;c=Pa();c.K[a]?c=c.K[a]:(C(c.b,"Ad unit lookup for div "+a+" failed."),c=h);if(c)if(a=c,a.P&&!a.z())C(a.b,"Slot "+a.w+" does not have a container div with id: "+a.g.l()+".",h,a);else for(b=0;b<a.c.length;++b)a.c[b].isEnabled()&&a.c[b].G(a);else b.error("Div "+a+" is not mapped to a known ad unit.")}else b.error("Unknown div id in display(): "+a.toString())};x("display",Ra,g);var R=function(){this.Aa=[];this.Ba={};this.ea=j;this.h={};this.log=E();this.log.info("Created service: "+this.getName(),this)};k=R.prototype;k.getName=function(){return"unknown"};k.getVersion=function(){return"unversioned"};k.set=function(a,b){var c=["attribute ",a," with value ",b," for service ",this.getName()].join("");q(a)&&0<a.length?(this.h[a]=b,this.log.info("Setting "+c,this,h)):C(this.log,"Unable to set "+c,this,h);return this};k.get=function(a){return this.h[a]};
k.A=function(){var a=[],b;for(b in this.h)"function"!=typeof this.h[b]&&a.push(b);return a};k.k=function(){return this.Aa};k.Ja=function(){return this.Ba};k.isEnabled=function(){return this.ea};k.enable=function(){if(this.ea)this.log.info("Service is already enabled.",this);else{this.ea=g;try{this.ha()}catch(a){this.log.error("Failed to enable service: "+a,this)}}};k.display=function(a,b,c,d){this.enable();a=c?Qa(a,b,c):Qa(a,b);a.aa(this);d&&a.D(d);Ra(a.i().l())};
k.Y=function(a){this.Aa.push(a);this.Ba[a.i().o()]=a;this.log.info("Associated "+this.getName()+" service with slot "+a.getName(),this,a)};k.clearSlotTargeting=function(){};k.ta=function(){};R.prototype.getSlots=R.prototype.k;R.prototype.getSlotIdMap=R.prototype.Ja;R.prototype.enable=R.prototype.enable;R.prototype.set=R.prototype.set;R.prototype.get=R.prototype.get;R.prototype.getAttributeKeys=R.prototype.A;R.prototype.display=R.prototype.display;var Sa=function(a,b){this.name=a;this.ga=b?b:new m.GPT_jstiming.Timer;this.ga.name=a;this.fa=[]};k=Sa.prototype;k.getName=function(){return this.name};k.tick=function(a,b){this.ga.tick(a,b)};k.Fa=function(a){a&&this.fa.push(a)};k.report=function(){var a="https:"==m.location.protocol?"https://www.google.com/csi":"http://csi.gstatic.com/csi",b={};this.fa.length&&(b.e=this.fa.join());return m.GPT_jstiming.report(this.ga,b,a)};k.Oa=function(a){ha(window,function(){setTimeout(a,10)})};
var S=function(a){this.name=a};t(S,Sa);S.prototype.tick=function(){};S.prototype.Fa=function(){};S.prototype.report=function(){return h};S.prototype.Oa=function(){};if(!w()._gpt_timer_&&m.GPT_jstiming){var T,Ta=m.GPT_jstiming.load,Ua=0.01;Ua==e&&(Ua=0.01);T=m.GPT_jstiming&&m.GPT_jstiming.load&&("http:"==m.location.protocol||"https:"==m.location.protocol)&&Math.random()<Ua?new Sa("global",Ta):new S("global");T.Oa(function(){T.tick("load");T.report()});x("_gpt_timer_",T)}w();var U=function(){this.c={};this.S=j;this.b=E();this.Ra=this.b.info("Google service JS loaded");ha(window,ga(U.prototype.Sa,this))};U.prototype.add=function(a){this.c[a.getName()]=a};U.prototype.find=function(a){var b=h;a in this.c&&(b=this.c[a]);return b};U.prototype.Sa=function(){this.S=g;this.b.info("Page load complete",h,h,this.Ra)};var V=function(){var a=w();return a.service_manager_instance||(a.service_manager_instance=new U)};
x("enableServices",function(){var a=V(),b;for(b in a.c){var c=a.c[b];if(!s(c)){c.enable();var c=b,d=w()._gpt_timer_;d&&d.Fa(c)}}});var W=function(){R.call(this);this.ua=g;this.$=j;this.M=0;this.N="";this.X=this.W=this.V=this.B=e;this.va=this.Z=j;this.T={};this.L=j};t(W,R);k=W.prototype;
k.ha=function(){if(this.ua){if(!this.va){var a=document,b=document.createElement("script");b.async=g;b.type="text/javascript";b.src=this.n();try{var c=a.getElementsByTagName("script")[0];this.log.info("Fetching companion ads implementation",this);this.va=g;c.parentNode&&c.parentNode.insertBefore(b,c)}catch(d){this.log.error("Unable to fetch companion ads implementation",this)}}}else this.Z||(m.document.write('<script type="text/javascript" src="'+Ma(this.n())+'"><\/script>'),this.Z=g)};
k.Za=function(){this.ua=j};k.zb=function(a){"boolean"==typeof a&&(this.$=a)};k.ub=function(a){if(this.$){for(var b=this.Ja(),c=[],d=0;d<a.length;++d){var f=a[d];f in b?c.push(b[f]):C(this.log,"Cannot find slot with id "+f+".",this)}Va(this,c)}};k.ya=function(){var a=googletag.pubads();if(!a.isEnabled())return j;var a=a.k(),b=this.k();if(a.length!=b.length)return j;for(var c=0;c<b.length;++c){for(var d=j,f=0;f<a.length;++f)if(b[c]===a[f]){d=g;break}if(!d)return j}return g};
k.xb=function(){this.$&&Va(this,h)};
k.Bb=function(a,b,c,d,f,l,p){this.L=j;this.M=0;this.N="";this.X=this.W=this.V=this.B=e;this.M=a;this.N=b;this.B=c;0==this.B.length&&(this.B=e);a:{a=d.split(",");b=[];for(c=0;c<a.length;++c){d=a[c].split("x");if(2!=d.length){this.log.error("The master ad size specified is invalid.");a=e;break a}d=[Number(d[0]),Number(d[1])];if(isNaN(d[0])||isNaN(d[1])){this.log.error("The master ad size specified is invalid.");a=e;break a}b.push(d)}a=b}this.V=a;f!==e&&(this.W=f);l!==e&&(this.X=l);p!==e&&(this.L=p)};
k.gb=function(){return googletag.pubads().getCorrelator()};k.getVideoStreamCorrelator=function(){return googletag.pubads().getVideoStreamCorrelator()};k.Cb=function(a){this.M=a};k.Db=function(a){this.N=a};
var Va=function(a,b){var c=googletag.pubads();if(c.isEnabled()){if(a.L){if(!a.ya()){C(a.log,"Persistent roadblock requested, but ad slots are incorrectly configured. All ad slots on page must have both pubads and companionAds services attached. Skipping refresh.");return}c.clearNoRefreshState();c.clear()}c.za(b,a.M,a.N,a.B,a.V,a.W,a.X,a.L)}else a.log.error("Pubads service is not enabled, cannot use refresh feature.")};k=W.prototype;
k.isSlotAPersistentRoadblock=function(a){var b=googletag.pubads();if(b.isEnabled())return b.isSlotAPersistentRoadblock(a);this.log.error("Pubads service is not enabled, cannot check whether slot is a persistent roadblock.  Content writing allowed.");return j};k.getName=function(){return"companion_ads"};k.n=function(){var a=document,b=h;try{b=a.location.protocol}catch(c){}return("https:"==b?"https:":"http:")+"//pagead2.googlesyndication.com/pagead/show_companion_ad.js"};
k.wb=function(){this.log.info("Companion ads implementation fetched.",this);this.Z=g};k.q=function(a){var b=a&&a.i().o();return b&&b in this.T&&a.z()&&this.isEnabled()&&!this.isSlotAPersistentRoadblock(a)?(a.O(this.T[b]),Oa(a)):j};k.G=function(a){this.q(a)};k.fillSlot=function(a,b){return a&&q(b)&&0<b.length?(this.T[a.i().toString()]=b,this.q(a)):j};x("companionAds",function(){var a=V(),b=a.find("companion_ads");b||(b=new W,a.add(b));return b});W.prototype.fillSlot=W.prototype.fillSlot;
W.prototype.enableSyncLoading=W.prototype.Za;W.prototype.isSlotAPersistentRoadblock=W.prototype.isSlotAPersistentRoadblock;W.prototype.isRoadblockingSupported=W.prototype.ya;W.prototype.onImplementationLoaded=W.prototype.wb;W.prototype.notifyUnfilledSlots=W.prototype.ub;W.prototype.refreshAllSlots=W.prototype.xb;W.prototype.setRefreshUnfilledSlots=W.prototype.zb;W.prototype.setXfpCorrelator=W.prototype.Cb;W.prototype.setXfpPreviousAdsToken=W.prototype.Db;W.prototype.setVideoSessionInfo=W.prototype.Bb;
W.prototype.getDisplayAdsCorrelator=W.prototype.gb;W.prototype.getVideoStreamCorrelator=W.prototype.getVideoStreamCorrelator;var X=function(){R.call(this);this.m={}};t(X,R);k=X.prototype;k.getName=function(){return"content"};k.q=function(a){var b=a&&a.i().o();return b in this.m&&this.isEnabled()&&a.z()&&!a.v?(a.O(this.m[b]),Oa(a)):j};k.ha=function(){for(var a=this.k(),b=0;b<a.length;++b)this.q(a[b])};k.G=function(a){this.q(a)};k.O=function(a,b){a&&(q(b)&&0<b.length)&&(this.m[a.i().o()]=b,this.q(a))};x("content",function(){var a=V(),b=a.find("content");b||(b=new X,a.add(b));return b});X.prototype.setContent=X.prototype.O;var Wa=h,Xa=xa||ya||wa||"function"==typeof m.atob;var Y=function(a,b,c){!q(a)||0>=a.length||!b||!c?E().error("Illegal slot name or size in PassbackSlot(). Name: "+a+"; size: "+b+"; service: "+c):(this.p=new P(a,this[ca]||(this[ca]=++da),b),this.p.aa(c),this.ca=c)};Y.prototype.D=function(a){this.p.D(a);return this};Y.prototype.r=function(a,b){this.p.r(a,b);return this};Y.prototype.display=function(){Ya(this.ca,this.p)};Y.prototype.setClickUrl=Y.prototype.D;Y.prototype.setTargeting=Y.prototype.r;Y.prototype.display=Y.prototype.display;var Z=function(){R.call(this);this.u=j;this.a=h;this.d={};this.na=this.Q="";this.ma=j;this.ka=g;this.s=this.ja=j;this.f=g;this.I=this.la=j;this.j=[];this.H=[];this.R=j;this.oa=this.pa=""};t(Z,R);
var Za={adsense_ad_format:"google_ad_format",adsense_ad_types:"google_ad_type",adsense_allow_expandable_ads:"google_allow_expandable_ads",adsense_background_color:"google_color_bg",adsense_bid:"google_bid",adsense_border_color:"google_color_border",adsense_channel_ids:"google_ad_channel",adsense_content_section:"google_ad_section",adsense_cpm:"google_cpm",adsense_ed:"google_ed",adsense_encoding:"google_encoding",adsense_family_safe:"google_safe",adsense_feedback:"google_feedback",adsense_flash_version:"google_flash_version",
adsense_font_face:"google_font_face",adsense_font_size:"google_font_size",adsense_hints:"google_hints",adsense_host:"google_ad_host",adsense_host_channel:"google_ad_host_channel",adsense_host_tier_id:"google_ad_host_tier_id",adsense_keyword_type:"google_kw_type",adsense_keywords:"google_kw",adsense_line_color:"google_line_color",adsense_link_color:"google_color_link",adsense_relevant_content:"google_contents",adsense_reuse_colors:"google_reuse_colors",adsense_targeting:"google_targeting",adsense_targeting_types:"google_targeting",
adsense_test_mode:"google_adtest",adsense_text_color:"google_color_text",adsense_ui_features:"google_ui_features",adsense_ui_version:"google_ui_version",adsense_url_color:"google_color_url",alternate_ad_iframe_color:"google_alternate_color",alternate_ad_url:"google_alternate_ad_url",demographic_age:"google_cust_age",demographic_ch:"google_cust_ch",demographic_gender:"google_cust_gender",demographic_interests:"google_cust_interests",demographic_job:"google_cust_job",demographic_l:"google_cust_l",demographic_lh:"google_cust_lh",
demographic_u_url:"google_cust_u_url",demographic_unique_id:"google_cust_id",document_language:"google_language",geography_override_city:"google_city",geography_override_country:"google_country",geography_override_region:"google_region",page_url:"google_page_url"};
Z.prototype.ha=function(){if(this.f){if(!this.u){var a=document,b=a.createElement("script");V();b.async=g;b.type="text/javascript";b.src=this.n();(a=a.getElementsByTagName("head")[0]||a.getElementsByTagName("body")[0])?(this.log.info("Fetching GPT implementation",this),a.appendChild(b),this.u=g):this.log.error("Unable to fetch GPT implementation",this)}}else $a(this)};Z.prototype.getName=function(){return"publisher_ads"};Z.prototype.n=function(){return(Na()?"https:":"http:")+"//partner.googleadservices.com/gampad/google_ads_gpt.js"};
var $a=function(a){var b=V();!a.u&&!b.S&&(b=document,a.u=g,b.write('<script type="text/javascript" src="'+Ma(a.n())+'"><\/script>'))};
Z.prototype.vb=function(){V();var a=w().impl;if(a&&a.pubads){this.a=a.pubads;this.log.info("GPT implementation fetched.",this);this.ka||this.a.disableFetch();this.I&&this.a.collapseEmptyDivs();if(this.s){this.f?this.a.enableAsyncSingleRequest():this.a.enableSingleRequest();ab(this);for(var a=this.k(),b=0;b<a.length;++b)bb(this,a[b])}else this.f&&this.a.enableAsyncRendering();this.ja&&this.a.disableInitialLoad();cb(this);if(0<this.j.length)for(b=0;b<this.j.length;++b)this.G(this.j[b]);if(0<this.H.length)for(b=
0;b<this.H.length;++b)Ya(this,this.H[b])}else this.log.error("Unable to fetch pubads service implementation from "+this.n(),this)};Z.prototype.Y=function(a){this.f||(a.P=j);R.prototype.Y.call(this,a)};
Z.prototype.G=function(a){if(V().S&&!this.f)this.log.error("Attempting to display ad in sync mode after page load is complete.",this);else if(this.a){if(ab(this),this.s||bb(this,a))this.log.info("Calling fillslot"),this.a.fillSlot(a)}else if(this.f||this.u&&0==this.j.length){for(var b=j,c=0;c<this.j.length;++c)a===this.j[c]&&(b=g);b||(this.log.info("Delaying rendering of ad slot "+a.getName()+" pending loading of the GPT implementation",this,a),this.j.push(a))}else this.log.error("Skipping rendering of slot "+
a.getName()+" due to missing GPT implementaition",this,a)};
var bb=function(a,b){if(a.a&&a.a.addSlot(b)==h)return a.log.error("Unable to process name for slot "+b.getName(),a,b),j;for(var c=b.A(),d=0;d<c.length;++d)c[d]in Za?a.a.addAdSenseSlotAttribute(b,Za[c[d]],b.get(c[d])):C(a.log,"Ignoring unknown pubads attribute "+c[d]+" with value "+b.get(c[d])+" for slot "+b.getName(),a,b);if(s(a.a.addSlotTargeting)){var c=[],f;for(f in b.d)s(b.d[f])||c.push(f);for(f=0;f<c.length;++f)a.a.addSlotTargeting(b,c[f],c[f]in b.d?b.d[c[f]]:[])}b.U()&&s(a.a.Qa)&&a.a.Qa(b,b.U());
return g},ab=function(a){if(!a.ma){a.ma=g;for(var b=a.A(),c=0;c<b.length;++c)b[c]in Za?a.a.addAdSensePageAttribute(Za[b[c]],a.get(b[c])):C(a.log,"Ignoring unknown pubads attribute "+b[c]+" with value "+a.get(b[c]),a);a.a.addAdSensePageAttribute("google_tag_info","v2");for(var d in a.d)if(b=a.d[d],n(b))for(c=0;c<b.length;++c)a.a.addAttribute(d,b[c]);s(a.a.setPublisherProvidedId)&&a.a.setPublisherProvidedId(a.na);a.Q&&a.a.setLocation(a.Q);a.a.setCenterAds!==e&&a.a.setCenterAds(a.la)}};k=Z.prototype;
k.r=function(a,b){var c=[];q(b)?c.push(b):c=b;var d=[" targeting attribute ",a," with value ",c.join()," for service ",this.getName()].join("");a&&q(a)?(this.d[a]=c,this.log.info("Setting"+d,this)):C(this.log,"Unable to set"+d,this);return this};k.tb=function(){this.a?C(this.log,"Ignoring noFetch since the pubads service is already enabled",this):this.ka=j};k.disableInitialLoad=function(){this.a?C(this.log,"Ignoring disableInitialLoad since the pubads service is already enabled",this):this.ja=g};
k.enableSingleRequest=function(){this.isEnabled()&&!this.s?C(this.log,"Ignoring change to single request mode since the service is already enabled",this):(this.log.info("Using single request mode to fetch ads",this),this.s=g);return this.s};k.enableAsyncRendering=function(){this.isEnabled()&&!this.f?C(this.log,"Ignoring change to async-rendering mode since the service is already enabled",this):(this.log.info("Using async-rendering mode to fetch ads",this),this.f=g);return this.f};
k.$a=function(){if(this.isEnabled()&&this.f)C(this.log,"Ignoring change to async-rendering mode since the service is already enabled",this);else{this.log.info("Using sync-rendering mode to fetch ads",this);this.f=j;for(var a=this.k(),b=0;b<a.length;++b)a[b].P=j}return!this.f};k.yb=function(a){this.log.info("Setting centering to "+a,this);this.la=a};
k.setPublisherProvidedId=function(a){this.isEnabled()?C(this.log,"Ignoring change to PPID since the service is already enabled. Not setting: "+a,this):(this.log.info("Setting PPID to "+a,this),this.na=a);return this};k.Ya=function(a,b){return new Y(a,b,this)};var Ya=function(a,b){$a(a);a.a?s(a.a.passback)?a.a.passback(b):a.log.error("The GPT impl does not yet support passbacks.",a,b):(a.log.info("Delaying passback of ad slot "+b.getName()+" pending loading of the GPT implementation",a,b),a.H.push(b))};
k=Z.prototype;
k.refresh=function(a){if(a&&!n(a))C(this.log,"Slots to refresh must be an array.",this);else if(this.a){var b=h;if(a){for(var b=[],c=0;c<a.length;++c){var d=a[c];d instanceof P?b.push(d):C(this.log,"Slot object at position "+c+" is of incorrect type.",this)}if(!b.length){this.log.error("No valid slot ids found, refresh aborted.",this);return}}this.log.info("Refreshing ads",this);this.a.refresh(b)}else C(this.log,"The ads cannot be refreshed because the GPT implementation Javascript is not yet loaded.",this)};
k.za=function(a,b,c,d,f,l,p,y){if(a&&!n(a))C(this.log,"Slots to refresh must be an array.",this);else if(b&&!r(b))C(this.log,"Correlator must be a number.",this);else if(c&&!q(c))C(this.log,"Pstok must be a string.",this);else if(d&&!q(d))C(this.log,"Video IU must be a string.",this);else if(f&&!n(f))C(this.log,"Video IU sizes must be an array.",this);else if(l&&!r(l))C(this.log,"Pod number must be a number.",this);else if(p&&!r(p))C(this.log,"Pod position must be a number.",this);else if(y&&"boolean"!=
typeof y)C(this.log,"Persistent roadblocks only must be a boolean.",this);else if(this.a){var A=h;if(a){for(var A=[],u=0;u<a.length;++u){var v=a[u];v instanceof P?A.push(v):C(this.log,"Slot object at position "+u+" is of incorrect type.",this)}if(!A.length){this.log.error("No valid slot ids found, refresh aborted.",this);return}}if(f)for(u=0;u<f.length;++u){a=f[u];if(!n(a)||2!=a.length){this.log.error("Video size array must have only two values, refresh aborted.",this);return}for(v=0;v<a.length;++v)if(!r(a[v])){this.log.error("Video size array must contain only numbers, refresh aborted.",
this);return}}this.log.info("Refreshing ads",this);this.a.refresh(A,b,c,d,f,l,p,y)}else C(this.log,"The ads cannot be refreshed because the GPT implementation Javascript is not yet loaded.",this)};k.ab=function(){this.R=g;cb(this)};k.Ab=function(a,b){this.R=g;this.pa=a;this.oa=b;cb(this)};k.rb=function(){return!this.a||this.a.getVideoContentInformation==h?h:this.a.getVideoContentInformation()};var cb=function(a){a.R&&(a.a&&a.a.setVideoContentInformation)&&a.a.setVideoContentInformation(a.pa,a.oa)};
k=Z.prototype;k.getCorrelator=function(){return 0==this.k().length?"not_available":!this.a?"not_loaded":this.a.getCorrelator==h?"not_available":this.a.getCorrelator()};k.getVideoStreamCorrelator=function(){if(!this.a||this.a.getVideoStreamCorrelator==h)return 0;var a=this.a.getVideoStreamCorrelator();return isNaN(a)?0:a};k.isAdRequestFinished=function(){return!this.a?j:this.a.isAdRequestFinished!=h?this.a.isAdRequestFinished():h};
k.isSlotAPersistentRoadblock=function(a){return this.a&&this.a.isSlotAPersistentRoadblock!=h?this.a.isSlotAPersistentRoadblock(a):j};k.collapseEmptyDivs=function(){this.I?C(this.log,"Ignoring subsequent call to set div collapse mode (already set)",this):this.isEnabled()?C(this.log,"Ignoring change to div collapse mode since the service is already enabled",this):(this.log.info("Enabling collapsing of containers when there is no ad content",this),this.I=g);return this.I};
k.clear=function(){if(!this.a)return C(this.log,"The slot contents cannot be cleared because the GPT implementation Javascript is not yet loaded.",this),j;if(this.a.clearSlotContents!=h)return this.log.info("Clearing slot contents.",this),this.a.clearSlotContents();C(this.log,"The GPT implementation does not yet support clearing slots.");return j};
k.clearNoRefreshState=function(){this.a?this.a.clearNoRefreshState!=h?(this.log.info("Clearing no_refresh state.",this),this.a.clearNoRefreshState()):C(this.log,"The GPT implementation does not yet support clearNoRefreshState"):C(this.log,"The no_refresh state cannot be cleared because the GPT implementation Javascript is not yet loaded.",this)};k.clearSlotTargeting=function(a){this.a&&s(this.a.clearSlotTargeting)&&this.a.clearSlotTargeting(a)};
k.ta=function(a,b,c){this.a&&s(this.a.addSlotTargeting)&&this.a.addSlotTargeting(a,b,c)};
k.setLocation=function(a,b,c){var d="role:1 producer:12";if(b!==e){if(!r(a)||!r(b))return C(this.log,"Latitude and longitude are expected to be numbers"),this;d+=" latlng{ latitude_e7: "+Math.round(1E7*a)+" longitude_e7: "+Math.round(1E7*b)+"}";if(c!==e){if(isNaN(c))return C(this.log,"Radius is expected to be a number"),this;d+=" radius:"+Math.round(c)}}else 50<a.length&&(b=a.substring(0,50),C(this.log,"Location: "+a+" is longer than 50. Truncating it to"+b+"."),a=b),d+=' loc:"'+a+'"';if(Xa)d=m.btoa(d);
else{a=d;d=[];for(c=b=0;c<a.length;c++){for(var f=a.charCodeAt(c);255<f;)d[b++]=f&255,f>>=8;d[b++]=f}if(!ba(d))throw Error("encodeByteArray takes an array as a parameter");if(!Wa){Wa={};for(a=0;65>a;a++)Wa[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a)}a=Wa;b=[];for(c=0;c<d.length;c+=3){var l=d[c],p=(f=c+1<d.length)?d[c+1]:0,y=c+2<d.length,A=y?d[c+2]:0,u=l>>2,l=(l&3)<<4|p>>4,p=(p&15)<<2|A>>6,A=A&63;y||(A=64,f||(p=64));b.push(a[u],a[l],a[p],a[A])}d=b.join("")}this.Q=
"a "+d;return this};k.getVersion=function(){return!this.a?e:this.a.getVersion==h?"unversioned":this.a.getVersion()};x("pubads",function(){var a=V(),b=a.find("publisher_ads");b||(b=new Z,a.add(b));return b});Z.prototype.clear=Z.prototype.clear;Z.prototype.clearNoRefreshState=Z.prototype.clearNoRefreshState;Z.prototype.collapseEmptyDivs=Z.prototype.collapseEmptyDivs;Z.prototype.definePassback=Z.prototype.Ya;Z.prototype.enableAsyncRendering=Z.prototype.enableAsyncRendering;
Z.prototype.enableSingleRequest=Z.prototype.enableSingleRequest;Z.prototype.enableSyncRendering=Z.prototype.$a;Z.prototype.enableVideoAds=Z.prototype.ab;Z.prototype.getCorrelator=Z.prototype.getCorrelator;Z.prototype.getVideoContent=Z.prototype.rb;Z.prototype.getVideoStreamCorrelator=Z.prototype.getVideoStreamCorrelator;Z.prototype.isAdRequestFinished=Z.prototype.isAdRequestFinished;Z.prototype.isSlotAPersistentRoadblock=Z.prototype.isSlotAPersistentRoadblock;Z.prototype.noFetch=Z.prototype.tb;
Z.prototype.onGoogleAdsJsLoad=Z.prototype.vb;Z.prototype.refresh=Z.prototype.refresh;Z.prototype.setLocation=Z.prototype.setLocation;Z.prototype.setTargeting=Z.prototype.r;Z.prototype.setVideoContent=Z.prototype.Ab;Z.prototype.getVersion=Z.prototype.getVersion;Z.prototype.videoRefresh=Z.prototype.za;Z.prototype.setCentering=Z.prototype.yb;Z.prototype.setPublisherProvidedId=Z.prototype.setPublisherProvidedId;var db=/#|$/,eb=function(a,b){var c=a.search(db),d;a:{d=0;for(var f=b.length;0<=(d=a.indexOf(b,d))&&d<c;){var l=a.charCodeAt(d-1);if(38==l||63==l)if(l=a.charCodeAt(d+f),!l||61==l||38==l||35==l)break a;d+=f+1}d=-1}if(0>d)return h;f=a.indexOf("&",d);if(0>f||f>c)f=c;d+=b.length+1;return decodeURIComponent(a.substr(d,f-d).replace(/\+/g," "))};var fb=function(){var a=window,b=document;if(w()._pubconsole_disable_)return j;var c;c=document.cookie.split("google_pubconsole=");if(c=2==c.length?c[1].split(";")[0]:"")if(c=c.split("|"),0<c.length&&("1"==c[0]||"0"==c[0]))return g;V();c=j;try{c=a.top.document.URL===b.URL}catch(d){}a=c?b.URL:b.referrer;return eb(a,"google_debug")!==h||eb(a,"google_console")!==h||eb(a,"google_force_console")!==h};
ha(window,function(){if(fb()){var a=document,b=a.createElement("script");b.type="text/javascript";b.src=(Na()?"https:":"http:")+"//publisherconsole.appspot.com/js/loader.js";b.async=g;(a=a.getElementsByTagName("script")[0])&&a.parentNode&&a.parentNode.insertBefore(b,a)}});x("disablePublisherConsole",function(){w()._pubconsole_disable_=g});x("getVersion",function(){return"14"});var $=w().cmd;if(!$||n($)){var gb=w().cmd=new F;$&&0<$.length&&gb.push.apply(gb,$)}(function(){var a=document.getElementsByTagName("script");0<a.length&&(a=a[a.length-1],a.src&&(0<=a.src.indexOf("/tag/js/gpt.js")&&a.innerHTML&&!a.googletag_executed)&&(a.googletag_executed=g,eval(a.innerHTML)))})();})()
