(function(){var e=void 0,f=!0,h=null,i=!1,j,l=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},m=function(a){return"array"==aa(a)},n=function(a){return"string"==typeof a},p=function(a){return"number"==typeof a},r=function(a){return"function"==aa(a)};Math.floor(2147483648*Math.random()).toString(36);
var ba=function(a,b,c){return a.call.apply(a.bind,arguments)},ca=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)}},da=function(a,b,c){da=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ba:ca;return da.apply(h,arguments)},t=function(a,b){function c(){}
c.prototype=b.prototype;a.yb=b.prototype;a.prototype=new c};var u=function(){return l.googletag||(l.googletag={})},v=function(a,b,c){var d=u();if(!(a in d)||c)d[a]=b},ea=function(a,b){a.attachEvent?a.attachEvent("onload",b):a.addEventListener&&a.addEventListener("load",b,i)};var w=function(a,b,c,d,g){this.Y=new Date;this.Qa=d||h;this.Pa=c||h;this.va=a;this.wa=b;this.X=g||h};j=w.prototype;j.Ia=function(){return this.Qa};j.Ha=function(){return this.Pa};j.Ga=function(){return this.va};j.Ca=function(){return this.Y};j.hb=function(){return this.wa};j.jb=function(){return this.X};var fa=["Debug","Info","Warning","Error","Fatal"];
w.prototype.toString=function(){var a=this.Y.toTimeString()+": "+fa[this.va]+": "+this.wa;this.X&&(a+=" Duration: "+(this.Y.getTime()-this.X.Ca().getTime())+"ms.");return a};w.prototype.getTimestamp=w.prototype.Ca;w.prototype.getService=w.prototype.Ha;w.prototype.getSlot=w.prototype.Ia;w.prototype.getLevel=w.prototype.Ga;w.prototype.getMessage=w.prototype.hb;w.prototype.getReference=w.prototype.jb;var x=function(){this.B=[]};x.prototype.$a=function(){return this.B};x.prototype.eb=function(a){return ga(this,function(b){return b.Ha()===a})};x.prototype.fb=function(a){return ga(this,function(b){return b.Ia()===a})};x.prototype.cb=function(a){return ga(this,function(b){return b.Ga()>=a})};var ga=function(a,b){for(var c=[],d=0;d<a.B.length;++d)b(a.B[d])&&c.push(a.B[d]);return c};x.prototype.log=function(a,b,c,d,g){a=new w(a,b,c,d,g);this.B.push(a);return a};
x.prototype.info=function(a,b,c,d){return this.log(1,a,b,c,d)};var A=function(a,b,c,d){a.log(2,b,c,d,e)};x.prototype.error=function(a,b,c,d){return this.log(3,a,b,c,d)};var B=function(){var a=u();return a.debug_log||(a.debug_log=new x)};v("getEventLog",B);x.prototype.getAllEvents=x.prototype.$a;x.prototype.getEventsByService=x.prototype.eb;x.prototype.getEventsBySlot=x.prototype.fb;x.prototype.getEventsByLevel=x.prototype.cb;var C=function(){this.Da=this.ca=0};C.prototype.push=function(a){for(var b=B(),c=0;c<arguments.length;++c)try{r(arguments[c])&&(arguments[c](),this.ca++)}catch(d){this.Da++,b.error("Exception invoking function: "+d.message)}b.info("Invoked queued function. Total: "+this.ca+" Errors: "+this.Da);return this.ca};C.prototype.push=C.prototype.push;var ha=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)},ia=new ha;window.GPT_jstiming={Timer:ha,load:ia};if(window.performance&&window.performance.timing){var ja=window.performance.timing,ka=window.GPT_jstiming.load,la=ja.navigationStart,ma=ja.responseStart;0<la&&ma>=la&&(ka.tick("_wtsrt",e,la),ka.tick("wtsrt_","_wtsrt",ma))}
try{var D=h;window.chrome&&window.chrome.csi&&(D=Math.floor(window.chrome.csi().pageT));D==h&&window.gtbExternal&&(D=window.gtbExternal.pageT());D==h&&window.external&&(D=window.external.pageT);D&&(window.GPT_jstiming.pt=D)}catch(na){};if(window.GPT_jstiming){window.GPT_jstiming.Fa={};window.GPT_jstiming.Ra=1;var oa=function(a,b,c){var d=a.t[b],g=a.t.start;if(d&&(g||c))return d=a.t[b][0],c!=e?g=c:g=g[0],d-g},pa=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(g){}var k=
window.chrome;if(k&&(k=k.loadTimes)){k().wasFetchedViaSpdy&&(d+="&p=s");if(k().wasNpnNegotiated){var d=d+"&npn=1",o=k().npnNegotiatedProtocol;o&&(d+="&npnv="+(encodeURIComponent||escape)(o))}k().wasAlternateProtocolAvailable&&(d+="&apa=1")}var y=a.t,G=y.start,k=[],o=[],s;for(s in y)if("start"!=s&&0!=s.indexOf("_")){var q=y[s][1];q?y[q]&&o.push(s+"."+oa(a,s,y[q][0])):G&&k.push(s+"."+oa(a,s))}delete y.start;if(b)for(var z in b)d+="&"+z+"="+b[z];(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,o.length?"&it="+o.join(","):"","",d,"&rt=",k.join(",")].join("");if(!a)return"";var d=new Image,va=window.GPT_jstiming.Ra++;window.GPT_jstiming.Fa[va]=d;d.onload=d.onerror=function(){window.GPT_jstiming&&delete window.GPT_jstiming.Fa[va]};d.src=a;d=h;return a};window.GPT_jstiming.report=function(a,b,c){if("prerender"==document.webkitVisibilityState){var d=i,g=function(){if(!d){b?b.prerender="1":b={prerender:"1"};
var k;"prerender"==document.webkitVisibilityState?k=i:(pa(a,b,c),k=f);k&&(d=f,document.removeEventListener("webkitvisibilitychange",g,i))}};document.addEventListener("webkitvisibilitychange",g,i);return""}return pa(a,b,c)}};var E,qa,F,ra,sa=function(){return l.navigator?l.navigator.userAgent:h};ra=F=qa=E=i;var H;if(H=sa()){var ta=l.navigator;E=0==H.indexOf("Opera");qa=!E&&-1!=H.indexOf("MSIE");F=!E&&-1!=H.indexOf("WebKit");ra=!E&&!F&&"Gecko"==ta.product}var I=qa,ua=ra,wa=F,xa;
a:{var J="",K;if(E&&l.opera)var ya=l.opera.version,J="function"==typeof ya?ya():ya;else if(ua?K=/rv\:([^\);]+)(\)|;)/:I?K=/MSIE\s+([^\);]+)(\)|;)/:wa&&(K=/WebKit\/(\S+)/),K)var za=K.exec(sa()),J=za?za[1]:"";if(I){var Aa,Ba=l.document;Aa=Ba?Ba.documentMode:e;if(Aa>parseFloat(J)){xa=String(Aa);break a}}xa=J}
var Ca=xa,Da={},Ea=function(a){if(!Da[a]){for(var b=0,c=String(Ca).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),g=Math.max(c.length,d.length),k=0;0==b&&k<g;k++){var o=c[k]||"",y=d[k]||"",G=RegExp("(\\d*)(\\D*)","g"),s=RegExp("(\\d*)(\\D*)","g");do{var q=G.exec(o)||["","",""],z=s.exec(y)||["","",""];if(0==q[0].length&&0==z[0].length)break;b=((0==q[1].length?0:parseInt(q[1],10))<(0==z[1].length?0:parseInt(z[1],10))?-1:(0==q[1].length?0:
parseInt(q[1],10))>(0==z[1].length?0:parseInt(z[1],10))?1:0)||((0==q[2].length)<(0==z[2].length)?-1:(0==q[2].length)>(0==z[2].length)?1:0)||(q[2]<z[2]?-1:q[2]>z[2]?1:0)}while(0==b)}Da[a]=0<=b}},Fa={},Ga=function(){return Fa[9]||(Fa[9]=I&&!!document.documentMode&&9<=document.documentMode)};!I||Ga();!ua&&!I||I&&Ga()||ua&&Ea("1.9.1");I&&Ea("9");var L=function(a,b){this.Ta=a;this.Sa=b};L.prototype.nb=function(){return this.Ta};L.prototype.gb=function(){return this.Sa};L.prototype.getWidth=L.prototype.nb;L.prototype.getHeight=L.prototype.gb;var M=function(a,b,c){this.s=a;this.za=p(b)?b:0;this.f=this.s+"_"+this.za;this.Oa=c||"gpt_unit_"+this.f};j=M.prototype;j.o=function(){return this.f};j.getName=function(){return this.s};j.Ba=function(){return this.za};j.toString=M.prototype.o;j.l=function(){return this.Oa};M.prototype.getId=M.prototype.o;M.prototype.getName=M.prototype.getName;M.prototype.getDomId=M.prototype.l;M.prototype.getInstance=M.prototype.Ba;var Ha=function(a){return a.replace(/[^a-zA-Z0-9]/g,function(a){return"&#"+a.charCodeAt()+";"})},Ia=function(){var a=document,b=h;try{b=a.location.protocol}catch(c){}return"https:"==b?"https:":"http:"};var N=function(a,b,c,d){this.s=a;var g=[];if(m(c))if(1<c.length&&p(c[0])&&p(c[1]))g.push(new L(c[0],c[1]));else for(var k=0;k<c.length;++k){var o=c[k];m(o)&&(1<o.length&&p(o[0])&&p(o[1]))&&g.push(new L(o[0],o[1]))}this.Ka=g;this.f=new M(a,b,d);this.c=[];this.h={};this.m=h;this.b=B();this.b.info("Created slot: "+this.f,h,this);this.r=this.G=h;this.ka=this.ja="";this.M=f;this.g={};this.la=i};j=N.prototype;
j.set=function(a,b){var c=[" attribute ",a," with value ",b," for slot ",this.getName()].join("");a&&n(a)&&b?(this.h[a]=b,this.G||this.r?A(this.b,"Setting"+c+" after its contents have been loaded",h,this):this.b.info("Setting"+c,h,this)):A(this.b,"Unable to set"+c,h,this);return this};j.get=function(a){return a in this.h?this.h[a]:h};j.w=function(){var a=[],b;for(b in this.h)r(this.h[b])||a.push(b);return a};
j.xa=function(a){for(var b=0;b<this.c.length;++b)if(a==this.c[b])return A(this.b,"Service "+a.getName()+" is already associated with slot "+this.f,a,this),this;this.c.push(a);a.U(this);return this};j.getName=function(){return this.s};j.i=function(){return this.f};j.kb=function(){return this.c};j.lb=function(){return this.Ka};j.v=function(){return!!document.getElementById(this.f.l())};j.L=function(a){this.m=a};j.ya=function(a){this.ka=a;return this};j.Q=function(){return this.ka};
j.da=function(a,b){var c=[];m(b)?c=b:b&&c.push(b.toString());var d=[" targeting attribute ",a," with value ",c.join()," for slot ",this.getName()].join("");if(a&&n(a)){if(this.b.info("Setting"+d,h,this),this.g[a]=c,this.G||this.r)for(d=0;d<this.c.length;++d){var g=this.c[d];g.isEnabled()&&g.oa(this,a,c)}}else A(this.b,"Unable to set"+d,h,this);return this};j.Ua=function(){this.b.info("Clearing slot targeting.",h,this);this.g={};for(var a=0;a<this.c.length;++a){var b=this.c[a];b.isEnabled()&&b.clearSlotTargeting(this)}return this};
j.ib=function(){return this.la};var Ja=function(a){if(!a.v())return a.b.error("Unable to write to slot "+a.f+". It has not yet been rendered.",h,a),i;var b=l.document,c=a.f.l(),b=b&&b.getElementById(c);if(!b)return a.b.error("Unable to find the div container with id "+c+" for slot "+a.f,h,a),i;c=a.m;return n(c)&&0<c.length?(a.qa(),b.innerHTML=c,a.pa(),f):i};j=N.prototype;j.Za=function(a){this.G=this.b.info("Fetching ad for slot "+this.getName(),h,this);this.ja=a};j.ab=function(){return this.ja};
j.Ya=function(){this.b.info("Receiving ad for slot "+this.getName(),h,this,this.G)};j.qa=function(){this.r=this.b.info("Rendering ad for slot "+this.getName(),h,this)};j.pa=function(){this.b.info("Completed rendering ad for slot "+this.getName(),h,this,this.r)};N.prototype.set=N.prototype.set;N.prototype.get=N.prototype.get;N.prototype.getName=N.prototype.getName;N.prototype.getSlotId=N.prototype.i;N.prototype.getSizes=N.prototype.lb;N.prototype.addService=N.prototype.xa;
N.prototype.getOutOfPage=N.prototype.ib;N.prototype.getServices=N.prototype.kb;N.prototype.getAttributeKeys=N.prototype.w;N.prototype.fetchStarted=N.prototype.Za;N.prototype.fetchEnded=N.prototype.Ya;N.prototype.renderStarted=N.prototype.qa;N.prototype.renderEnded=N.prototype.pa;N.prototype.hasWrapperDiv=N.prototype.v;N.prototype.getContentUrl=N.prototype.ab;N.prototype.setClickUrl=N.prototype.ya;N.prototype.getClickUrl=N.prototype.Q;N.prototype.clearTargeting=N.prototype.Ua;
N.prototype.setTargeting=N.prototype.da;var O=function(){this.A={};this.H={};this.b=B()};O.prototype.add=function(a,b,c){if(!n(a)||0>=a.length||!b)return h;a in this.A||(this.A[a]=[]);b=new N(a,this.A[a].length,b,c);c=b.i().l();if(this.H[c])return this.b.error("Div element "+c+" is already associated with another slot"),h;this.A[a].push(b);return this.H[b.i().l()]=b};O.prototype.find=function(a,b){var c=b||0,d=n(a)&&this.A[a]||[];return 0<=c&&c<d.length&&(d=d[c],d.i().Ba()==c)?d:h};
var P=function(){var a=u();return a.slot_manager_instance||(a.slot_manager_instance=new O)},Q=function(a,b,c){var d=P();return d&&d.add(a,b,c)};v("defineOutOfPageSlot",function(a,b){var c=P();return!c?h:(c=c.add(a,[1,1],b))?(c.la=f,c):h});v("defineSlot",Q);v("defineUnit",Q);O.prototype.find=O.prototype.find;O.getInstance=P;var Ka=function(a){var b=B();if(n(a)){var c;c=P();c.H[a]?c=c.H[a]:(A(c.b,"Ad unit lookup for div "+a+" failed."),c=h);if(c)if(a=c,a.M&&!a.v())A(a.b,"Slot "+a.s+" does not have a container div with id: "+a.f.l()+".",h,a);else for(b=0;b<a.c.length;++b)a.c[b].isEnabled()&&a.c[b].C(a);else b.error("Div "+a+" is not mapped to a known ad unit.")}else b.error("Unknown div id in display(): "+a.toString())};v("display",Ka,f);var R=function(){this.ta=[];this.ua={};this.Z=i;this.h={};this.log=B();this.log.info("Created service: "+this.getName(),this)};j=R.prototype;j.getName=function(){return"unknown"};j.set=function(a,b){var c=["attribute ",a," with value ",b," for service ",this.getName()].join("");n(a)&&0<a.length?(this.h[a]=b,this.log.info("Setting "+c,this,h)):A(this.log,"Unable to set "+c,this,h);return this};j.get=function(a){return this.h[a]};
j.w=function(){var a=[],b;for(b in this.h)"function"!=typeof this.h[b]&&a.push(b);return a};j.k=function(){return this.ta};j.Ea=function(){return this.ua};j.isEnabled=function(){return this.Z};j.enable=function(){if(this.Z)this.log.info("Service is already enabled.",this);else{this.Z=f;try{this.ba()}catch(a){this.log.error("Failed to enable service: "+a,this)}}};j.display=function(a,b,c,d){this.enable();a=c?Q(a,b,c):Q(a,b);a.xa(this);d&&a.ya(d);Ka(a.i().l())};
j.U=function(a){this.ta.push(a);this.ua[a.i().o()]=a;this.log.info("Associated "+this.getName()+" service with slot "+a.getName(),this,a)};j.clearSlotTargeting=function(){};j.oa=function(){};R.prototype.getSlots=R.prototype.k;R.prototype.getSlotIdMap=R.prototype.Ea;R.prototype.enable=R.prototype.enable;R.prototype.set=R.prototype.set;R.prototype.get=R.prototype.get;R.prototype.getAttributeKeys=R.prototype.w;R.prototype.display=R.prototype.display;var La=function(a,b){this.name=a;this.aa=b?b:new l.GPT_jstiming.Timer;this.aa.name=a;this.$=[]};j=La.prototype;j.getName=function(){return this.name};j.tick=function(a,b){this.aa.tick(a,b)};j.Aa=function(a){a&&this.$.push(a)};j.report=function(){var a="https:"==l.location.protocol?"https://www.google.com/csi":"http://csi.gstatic.com/csi",b={};this.$.length&&(b.e=this.$.join());return l.GPT_jstiming.report(this.aa,b,a)};j.Ja=function(a){ea(window,function(){setTimeout(a,10)})};
var S=function(a){this.name=a};t(S,La);S.prototype.tick=function(){};S.prototype.Aa=function(){};S.prototype.report=function(){return h};S.prototype.Ja=function(){};if(!u()._gpt_timer_&&l.GPT_jstiming){var T,Ma=l.GPT_jstiming.load,Na=0.01;Na==e&&(Na=0.01);T=l.GPT_jstiming&&l.GPT_jstiming.load&&("http:"==l.location.protocol||"https:"==l.location.protocol)&&Math.random()<Na?new La("global",Ma):new S("global");T.Ja(function(){T.tick("load");T.report()});v("_gpt_timer_",T)}u();var U=function(){this.c={};this.N=i;this.b=B();this.Ma=this.b.info("Google service JS loaded");ea(window,da(U.prototype.Na,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.Na=function(){this.N=f;this.b.info("Page load complete",h,h,this.Ma)};var V=function(){var a=u();return a.service_manager_instance||(a.service_manager_instance=new U)};
v("enableServices",function(){var a=V(),b;for(b in a.c){var c=a.c[b];if(!r(c)){c.enable();var c=b,d=u()._gpt_timer_;d&&d.Aa(c)}}});var W=function(){R.call(this);this.ma=f;this.W=i;this.J=0;this.K="";this.T=this.S=this.R=this.z=e;this.na=this.V=i;this.P={};this.I=i};t(W,R);j=W.prototype;
j.ba=function(){if(this.ma){if(!this.na){var a=document,b=document.createElement("script");b.async=f;b.type="text/javascript";b.src=this.n();try{var c=a.getElementsByTagName("script")[0];this.log.info("Fetching companion ads implementation",this);this.na=f;c.parentNode&&c.parentNode.insertBefore(b,c)}catch(d){this.log.error("Unable to fetch companion ads implementation",this)}}}else this.V||(l.document.write('<script type="text/javascript" src="'+Ha(this.n())+'"><\/script>'),this.V=f)};
j.Va=function(){this.ma=i};j.tb=function(a){"boolean"==typeof a&&(this.W=a)};j.pb=function(a){if(this.W){for(var b=this.Ea(),c=[],d=0;d<a.length;++d){var g=a[d];g in b?c.push(b[g]):A(this.log,"Cannot find slot with id "+g+".",this)}Oa(this,c)}};j.ra=function(){var a=googletag.pubads();if(!a.isEnabled())return i;var a=a.k(),b=this.k();if(a.length!=b.length)return i;for(var c=0;c<b.length;++c){for(var d=i,g=0;g<a.length;++g)if(b[c]===a[g]){d=f;break}if(!d)return i}return f};
j.sb=function(){this.W&&Oa(this,h)};
j.vb=function(a,b,c,d,g,k,o){this.I=i;this.J=0;this.K="";this.T=this.S=this.R=this.z=e;this.J=a;this.K=b;this.z=c;0==this.z.length&&(this.z=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.R=a;g!==e&&(this.S=g);k!==e&&(this.T=k);o!==e&&(this.I=o)};
j.bb=function(){return googletag.pubads().getCorrelator()};j.getVideoStreamCorrelator=function(){return googletag.pubads().getVideoStreamCorrelator()};j.wb=function(a){this.J=a};j.xb=function(a){this.K=a};
var Oa=function(a,b){var c=googletag.pubads();if(c.isEnabled()){if(a.I){if(!a.ra()){A(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.sa(b,a.J,a.K,a.z,a.R,a.S,a.T,a.I)}else a.log.error("Pubads service is not enabled, cannot use refresh feature.")};j=W.prototype;
j.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 i};j.getName=function(){return"companion_ads"};j.n=function(){return Ia()+"//pagead2.googlesyndication.com/pagead/show_companion_ad.js"};j.rb=function(){this.log.info("Companion ads implementation fetched.",this);this.V=f};
j.p=function(a){var b=a&&a.i().o();return b&&b in this.P&&a.v()&&this.isEnabled()&&!this.isSlotAPersistentRoadblock(a)?(a.L(this.P[b]),Ja(a)):i};j.C=function(a){this.p(a)};j.fillSlot=function(a,b){return a&&n(b)&&0<b.length?(this.P[a.i().toString()]=b,this.p(a)):i};v("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.Va;W.prototype.isSlotAPersistentRoadblock=W.prototype.isSlotAPersistentRoadblock;
W.prototype.isRoadblockingSupported=W.prototype.ra;W.prototype.onImplementationLoaded=W.prototype.rb;W.prototype.notifyUnfilledSlots=W.prototype.pb;W.prototype.refreshAllSlots=W.prototype.sb;W.prototype.setRefreshUnfilledSlots=W.prototype.tb;W.prototype.setXfpCorrelator=W.prototype.wb;W.prototype.setXfpPreviousAdsToken=W.prototype.xb;W.prototype.setVideoSessionInfo=W.prototype.vb;W.prototype.getDisplayAdsCorrelator=W.prototype.bb;W.prototype.getVideoStreamCorrelator=W.prototype.getVideoStreamCorrelator;var X=function(){R.call(this);this.m={}};t(X,R);j=X.prototype;j.getName=function(){return"content"};j.p=function(a){var b=a&&a.i().o();return b in this.m&&this.isEnabled()&&a.v()&&!a.r?(a.L(this.m[b]),Ja(a)):i};j.ba=function(){for(var a=this.k(),b=0;b<a.length;++b)this.p(a[b])};j.C=function(a){this.p(a)};j.L=function(a,b){a&&(n(b)&&0<b.length)&&(this.m[a.i().o()]=b,this.p(a))};v("content",function(){var a=V(),b=a.find("content");b||(b=new X,a.add(b));return b});X.prototype.setContent=X.prototype.L;var Y=function(){R.call(this);this.u=i;this.a=h;this.g={};this.ga=i;this.fa=f;this.q=this.ea=i;this.d=f;this.F=i;this.j=[];this.D=[];this.O=i;this.ha=this.ia=""};t(Y,R);
var Z={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"};
Y.prototype.ba=function(){if(this.d){if(!this.u){var a=document,b=a.createElement("script");V();b.async=f;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=f):this.log.error("Unable to fetch GPT implementation",this)}}else Pa(this)};Y.prototype.getName=function(){return"publisher_ads"};Y.prototype.n=function(){return Ia()+"//partner.googleadservices.com/gampad/google_ads_gpt.js"};
var Pa=function(a){var b=V();!a.u&&!b.N&&(b=document,a.u=f,b.write('<script type="text/javascript" src="'+Ha(a.n())+'"><\/script>'))};
Y.prototype.qb=function(){V();var a=u().impl;if(a&&a.pubads){this.a=a.pubads;this.log.info("GPT implementation fetched.",this);this.fa||this.a.disableFetch();this.F&&this.a.collapseEmptyDivs();if(this.q){this.d?this.a.enableAsyncSingleRequest():this.a.enableSingleRequest();Qa(this);for(var a=this.k(),b=0;b<a.length;++b)Ra(this,a[b])}else this.d&&this.a.enableAsyncRendering();this.ea&&this.a.disableInitialLoad();Sa(this);if(0<this.j.length)for(b=0;b<this.j.length;++b)this.C(this.j[b]);if(0<this.D.length)for(b=
0;b<this.D.length;++b)Ta(this,this.D[b])}else this.log.error("Unable to fetch pubads service implementation from "+this.n(),this)};Y.prototype.U=function(a){this.d||(a.M=i);R.prototype.U.call(this,a)};
Y.prototype.C=function(a){if(V().N&&!this.d)this.log.error("Attempting to display ad in sync mode after page load is complete.",this);else if(this.a){if(Qa(this),this.q||Ra(this,a))this.log.info("Calling fillslot"),this.a.fillSlot(a)}else if(this.d||this.u&&0==this.j.length){for(var b=i,c=0;c<this.j.length;++c)a===this.j[c]&&(b=f);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 Ra=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),i;for(var c=b.w(),d=0;d<c.length;++d)c[d]in Z?a.a.addAdSenseSlotAttribute(b,Z[c[d]],b.get(c[d])):A(a.log,"Ignoring unknown pubads attribute "+c[d]+" with value "+b.get(c[d])+" for slot "+b.getName(),a,b);if(r(a.a.addSlotTargeting)){var c=[],g;for(g in b.g)r(b.g[g])||c.push(g);for(g=0;g<c.length;++g)a.a.addSlotTargeting(b,c[g],c[g]in b.g?b.g[c[g]]:[])}b.Q()&&r(a.a.La)&&a.a.La(b,b.Q());
return f},Qa=function(a){if(!a.ga){a.ga=f;for(var b=a.w(),c=0;c<b.length;++c)b[c]in Z?a.a.addAdSensePageAttribute(Z[b[c]],a.get(b[c])):A(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.g)if(b=a.g[d],m(b))for(c=0;c<b.length;++c)a.a.addAttribute(d,b[c])}};j=Y.prototype;
j.da=function(a,b){var c=[];n(b)?c.push(b):c=b;var d=[" targeting attribute ",a," with value ",c.join()," for service ",this.getName()].join("");a&&n(a)?(this.g[a]=c,this.log.info("Setting"+d,this)):A(this.log,"Unable to set"+d,this);return this};j.ob=function(){this.a?A(this.log,"Ignoring noFetch since the pubads service is already enabled",this):this.fa=i};j.disableInitialLoad=function(){this.a?A(this.log,"Ignoring disableInitialLoad since the pubads service is already enabled",this):this.ea=f};
j.enableSingleRequest=function(){this.isEnabled()&&!this.q?A(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.q=f);return this.q};j.enableAsyncRendering=function(){this.isEnabled()&&!this.d?A(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.d=f);return this.d};
j.Wa=function(){if(this.isEnabled()&&this.d)A(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.d=i;for(var a=this.k(),b=0;b<a.length;++b)a[b].M=i}return!this.d};j.passback=function(a,b){if(n(a)&&!(0>=a.length)&&b){Pa(this);var c=new N(a,0,b);Ta(this,c)}};
var Ta=function(a,b){a.a?r(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.D.push(b))};j=Y.prototype;
j.refresh=function(a){if(a&&!m(a))A(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 N?b.push(d):A(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 A(this.log,"The ads cannot be refreshed because the GPT implementation Javascript is not yet loaded.",
this)};
j.sa=function(a,b,c,d,g,k,o,y){if(a&&!m(a))A(this.log,"Slots to refresh must be an array.",this);else if(b&&!p(b))A(this.log,"Correlator must be a number.",this);else if(c&&!n(c))A(this.log,"Pstok must be a string.",this);else if(d&&!n(d))A(this.log,"Video IU must be a string.",this);else if(g&&!m(g))A(this.log,"Video IU sizes must be an array.",this);else if(k&&!p(k))A(this.log,"Pod number must be a number.",this);else if(o&&!p(o))A(this.log,"Pod position must be a number.",this);else if(y&&"boolean"!=
typeof y)A(this.log,"Persistent roadblocks only must be a boolean.",this);else if(this.a){var G=h;if(a){for(var G=[],s=0;s<a.length;++s){var q=a[s];q instanceof N?G.push(q):A(this.log,"Slot object at position "+s+" is of incorrect type.",this)}if(!G.length){this.log.error("No valid slot ids found, refresh aborted.",this);return}}if(g)for(s=0;s<g.length;++s){a=g[s];if(!m(a)||2!=a.length){this.log.error("Video size array must have only two values, refresh aborted.",this);return}for(q=0;q<a.length;++q)if(!p(a[q])){this.log.error("Video size array must contain only numbers, refresh aborted.",
this);return}}this.log.info("Refreshing ads",this);this.a.refresh(G,b,c,d,g,k,o,y)}else A(this.log,"The ads cannot be refreshed because the GPT implementation Javascript is not yet loaded.",this)};j.Xa=function(){this.O=f;Sa(this)};j.ub=function(a,b){this.O=f;this.ia=a;this.ha=b;Sa(this)};j.mb=function(){return!this.a||this.a.getVideoContentInformation==h?h:this.a.getVideoContentInformation()};var Sa=function(a){a.O&&(a.a&&a.a.setVideoContentInformation)&&a.a.setVideoContentInformation(a.ia,a.ha)};
j=Y.prototype;j.getCorrelator=function(){return 0==this.k().length?"not_available":!this.a?"not_loaded":this.a.getCorrelator==h?"not_available":this.a.getCorrelator()};j.getVideoStreamCorrelator=function(){if(!this.a||this.a.getVideoStreamCorrelator==h)return 0;var a=this.a.getVideoStreamCorrelator();return isNaN(a)?0:a};j.isAdRequestFinished=function(){return!this.a?i:this.a.isAdRequestFinished!=h?this.a.isAdRequestFinished():h};
j.isSlotAPersistentRoadblock=function(a){return this.a&&this.a.isSlotAPersistentRoadblock!=h?this.a.isSlotAPersistentRoadblock(a):i};j.collapseEmptyDivs=function(){this.F?A(this.log,"Ignoring subsequent call to set div collapse mode (already set)",this):this.isEnabled()?A(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.F=f);return this.F};
j.clear=function(){if(!this.a)return A(this.log,"The slot contents cannot be cleared because the GPT implementation Javascript is not yet loaded.",this),i;if(this.a.clearSlotContents!=h)return this.log.info("Clearing slot contents.",this),this.a.clearSlotContents();A(this.log,"The GPT implementation does not yet support clearing slots.");return i};
j.clearNoRefreshState=function(){this.a?this.a.clearNoRefreshState!=h?(this.log.info("Clearing no_refresh state.",this),this.a.clearNoRefreshState()):A(this.log,"The GPT implementation does not yet support clearNoRefreshState"):A(this.log,"The no_refresh state cannot be cleared because the GPT implementation Javascript is not yet loaded.",this)};j.clearSlotTargeting=function(a){this.a&&r(this.a.clearSlotTargeting)&&this.a.clearSlotTargeting(a)};
j.oa=function(a,b,c){this.a&&r(this.a.addSlotTargeting)&&this.a.addSlotTargeting(a,b,c)};v("pubads",function(){var a=V(),b=a.find("publisher_ads");b||(b=new Y,a.add(b));return b});Y.prototype.clear=Y.prototype.clear;Y.prototype.clearNoRefreshState=Y.prototype.clearNoRefreshState;Y.prototype.collapseEmptyDivs=Y.prototype.collapseEmptyDivs;Y.prototype.enableAsyncRendering=Y.prototype.enableAsyncRendering;Y.prototype.enableSingleRequest=Y.prototype.enableSingleRequest;
Y.prototype.enableSyncRendering=Y.prototype.Wa;Y.prototype.enableVideoAds=Y.prototype.Xa;Y.prototype.getCorrelator=Y.prototype.getCorrelator;Y.prototype.getVideoContent=Y.prototype.mb;Y.prototype.getVideoStreamCorrelator=Y.prototype.getVideoStreamCorrelator;Y.prototype.isAdRequestFinished=Y.prototype.isAdRequestFinished;Y.prototype.isSlotAPersistentRoadblock=Y.prototype.isSlotAPersistentRoadblock;Y.prototype.noFetch=Y.prototype.ob;Y.prototype.onGoogleAdsJsLoad=Y.prototype.qb;
Y.prototype.passback=Y.prototype.passback;Y.prototype.refresh=Y.prototype.refresh;Y.prototype.setTargeting=Y.prototype.da;Y.prototype.setVideoContent=Y.prototype.ub;Y.prototype.videoRefresh=Y.prototype.sa;var Ua=/#|$/,Va=function(a,b){var c=a.search(Ua),d;a:{d=0;for(var g=b.length;0<=(d=a.indexOf(b,d))&&d<c;){var k=a.charCodeAt(d-1);if(38==k||63==k)if(k=a.charCodeAt(d+g),!k||61==k||38==k||35==k)break a;d+=g+1}d=-1}if(0>d)return h;g=a.indexOf("&",d);if(0>g||g>c)g=c;d+=b.length+1;return decodeURIComponent(a.substr(d,g-d).replace(/\+/g," "))};var Wa=function(){var a=window,b=document;if(u()._pubconsole_disable_)return i;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 f;V();c=i;try{c=a.top.document.URL===b.URL}catch(d){}a=c?b.URL:b.referrer;return Va(a,"google_debug")!==h||Va(a,"google_console")!==h||Va(a,"google_force_console")!==h};
ea(window,function(){if(Wa()){var a=document,b=a.createElement("script");b.type="text/javascript";b.src=Ia()+"//publisherconsole.appspot.com/js/loader.js";b.async=f;(a=a.getElementsByTagName("script")[0])&&a.parentNode&&a.parentNode.insertBefore(b,a)}});v("disablePublisherConsole",function(){u()._pubconsole_disable_=f});var $=u().cmd;if(!$||m($)){var Xa=u().cmd=new C;$&&0<$.length&&Xa.push.apply(Xa,$)}(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=f,eval(a.innerHTML)))})();})()
