(function(){var e=true,f=null,g=false,h,i=this,k=function(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array||!(a instanceof Object)&&Object.prototype.toString.call(a)=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(!(a instanceof Object)&&(Object.prototype.toString.call(a)=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call")))return"function"}else return"null";
else if(b=="function"&&typeof a.call=="undefined")return"object";return b},l=function(a){return typeof a=="string"},n=function(a){return typeof a=="number"};Math.floor(Math.random()*2147483648).toString(36);
var aa=function(a,b){var c=b||i;if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var j=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(j,d);return a.apply(c,j)}}else return function(){return a.apply(c,arguments)}},ba=function(a,b){function c(){}c.prototype=b.prototype;a.Ma=b.prototype;a.prototype=new c};var o=function(){return i.googletag||(i.googletag={})},p=function(a,b,c){var d=o();if(!(a in d)||c)d[a]=b;return d[a]},q=function(a,b){if(a.attachEvent){a.attachEvent("onload",b);return e}if(a.addEventListener){a.addEventListener("load",b,g);return e}return g};var r=function(a,b,c,d,j){this.N=new Date;this.Ia=d||f;this.Fa=c||f;this.Z=a;this.$=b;this.G=j||f};h=r.prototype;h.V=function(){return this.Ia};h.U=function(){return this.Fa};h.T=function(){return this.Z};h.W=function(){return this.N};h.ra=function(){return this.$};h.sa=function(){return this.G};var ca=["Debug","Info","Warning","Error","Fatal"];
r.prototype.toString=function(){var a=[];a.push(this.N.toTimeString());a.push(": ");a.push(ca[this.Z]);a.push(": ");a.push(this.$);if(this.G){a.push(" Duration: ");a.push(this.N.getTime()-this.G.W().getTime());a.push("ms.")}return a.join("")};r.prototype.getTimestamp=r.prototype.W;r.prototype.getService=r.prototype.U;r.prototype.getSlot=r.prototype.V;r.prototype.getLevel=r.prototype.T;r.prototype.getMessage=r.prototype.ra;r.prototype.getReference=r.prototype.sa;var t=function(){this.n=[]};t.prototype.ka=function(){return this.n};t.prototype.oa=function(a){return u(this,function(b){return b.U()===a})};t.prototype.pa=function(a){return u(this,function(b){return b.V()===a})};t.prototype.na=function(a){return u(this,function(b){return b.T()>=a})};var u=function(a,b){for(var c=[],d=0;d<a.n.length;++d)b(a.n[d])&&c.push(a.n[d]);return c};t.prototype.log=function(a,b,c,d,j){a=new r(a,b,c,d,j);this.n.push(a);return a};
t.prototype.info=function(a,b,c,d){return this.log(1,a,b,c,d)};t.prototype.error=function(a,b,c,d){return this.log(3,a,b,c,d)};var v=function(){var a=o();return a.debug_log||(a.debug_log=new t)};p("getEventLog",v);t.prototype.getAllEvents=t.prototype.ka;t.prototype.getEventsByService=t.prototype.oa;t.prototype.getEventsBySlot=t.prototype.pa;t.prototype.getEventsByLevel=t.prototype.na;var w=function(){this.aa=this.D=0};w.prototype.push=function(){for(var a=v(),b=0;b<arguments.length;++b)try{if(k(arguments[b])=="function"){arguments[b]();this.D++}}catch(c){this.aa++;a.error("Exception invoking function: "+c.message)}a.info("Invoked queued function. Total: "+this.D+" Errors: "+this.aa);return this.D};w.prototype.push=w.prototype.push;function da(a){this.t={};this.tick=function(b,c,d){this.t[b]=[d?d:(new Date).getTime(),c]};this.tick("start",f,a)}var ea=new da;window.GPT_jstiming={Timer:da,load:ea};try{var x=f;if(window.chrome&&window.chrome.csi)x=Math.floor(window.chrome.csi().pageT);if(x==f)if(window.gtbExternal)x=window.gtbExternal.pageT();if(x==f)if(window.external)x=window.external.pageT;if(x)window.GPT_jstiming.pt=x}catch(fa){};if(window.GPT_jstiming){window.GPT_jstiming.Q={};window.GPT_jstiming.Ea=1;var ga=function(a,b,c){var d=a.t[b],j=a.t.start;if(d&&(j||c)){d=a.t[b][0];j=c!=undefined?c:j[0];return d-j}},ha=function(a,b,c){var d="";if(window.GPT_jstiming.pt){d+="&srt="+window.GPT_jstiming.pt;delete window.GPT_jstiming.pt}try{if(window.external&&window.external.tran)d+="&tran="+window.external.tran;else if(window.gtbExternal&&window.gtbExternal.tran)d+="&tran="+window.gtbExternal.tran();else if(window.chrome&&window.chrome.csi)d+=
"&tran="+window.chrome.csi().tran}catch(j){}var m=window.chrome;if(m)if(m=m.loadTimes){if(m().wasFetchedViaSpdy)d+="&p=s";if(m().wasNpnNegotiated)d+="&npn=1";if(m().wasAlternateProtocolAvailable)d+="&apa=1"}if(a.ea)d+="&"+a.ea;m=a.t;var s=m.start,na=[],X=[];for(var z in m)if(z!="start")if(z.indexOf("_")!=0){var Y=m[z][1];if(Y)m[Y]&&X.push(z+"."+ga(a,z,m[Y][0]));else s&&na.push(z+"."+ga(a,z))}delete m.start;if(b)for(var oa in b)d+="&"+oa+"="+b[oa];return[c?c:"http://csi.gstatic.com/csi","?v=3","&s="+
(window.GPT_jstiming.sn||"gpt")+"&action=",a.name,X.length?"&it="+X.join(","):"","",d,"&rt=",na.join(",")].join("")};window.GPT_jstiming.report=function(a,b,c){a=ha(a,b,c);b=new Image;var d=window.GPT_jstiming.Ea++;window.GPT_jstiming.Q[d]=b;b.onload=b.onerror=function(){delete window.GPT_jstiming.Q[d]};b.src=a;b=f;return a}};var y,A,B,C,ia=function(){return i.navigator?i.navigator.userAgent:f};C=B=A=y=g;var D;if(D=ia()){var ja=i.navigator;y=D.indexOf("Opera")==0;A=!y&&D.indexOf("MSIE")!=-1;B=!y&&D.indexOf("WebKit")!=-1;C=!y&&!B&&ja.product=="Gecko"}var ka=A,la=C,ma=B,pa="",E;if(y&&i.opera){var qa=i.opera.version;pa=typeof qa=="function"?qa():qa}else{if(la)E=/rv\:([^\);]+)(\)|;)/;else if(ka)E=/MSIE\s+([^\);]+)(\)|;)/;else if(ma)E=/WebKit\/(\S+)/;if(E){var ra=E.exec(ia());pa=ra?ra[1]:""}};var F=function(a,b){this.Ka=a;this.xa=b};F.prototype.wa=function(){return this.Ka};F.prototype.qa=function(){return this.xa};F.prototype.getWidth=F.prototype.wa;F.prototype.getHeight=F.prototype.qa;var G=function(a,b,c){this.h=a;this.Y=n(b)?b:0;this.g=this.h+"_"+this.Y;this.fa=c||"gpt_unit_"+this.g};h=G.prototype;h.A=function(){return this.g};h.getName=function(){return this.h};h.S=function(){return this.Y};h.toString=G.prototype.A;h.l=function(){return this.fa};G.prototype.getId=G.prototype.A;G.prototype.getName=G.prototype.getName;G.prototype.getDomId=G.prototype.l;G.prototype.getInstance=G.prototype.S;var H=function(a,b,c,d){this.h=a;var j=[];if(k(c)=="array")if(c.length>1&&n(c[0])&&n(c[1]))j.push(new F(c[0],c[1]));else for(var m=0;m<c.length;++m){var s=c[m];k(s)=="array"&&s.length>1&&n(s[0])&&n(s[1])&&j.push(new F(s[0],s[1]))}this.Ha=j;this.g=new G(a,b,d);this.c=[];this.f={};this.La=f;this.a=v();this.a.info("Created slot: "+this.g,f,this);this.Ca=this.I=this.ia=this.z=f;this.R="";this.C=e};h=H.prototype;
h.J=function(a,b){var c=[" attribute ",a," with value ",b," for slot ",this.getName()].join("");if(a&&l(a)&&b){this.f[a]=b;this.z||this.I?this.a.log(2,"Setting"+c+" after its contents have been loaded",f,this,void 0):this.a.info("Setting"+c,f,this)}else this.a.log(2,"Unable to set"+c,f,this,void 0);return this};h.i=function(a){if(a in this.f)return this.f[a];return f};h.o=function(){var a=[];for(var b in this.f)k(this.f[b])=="function"||a.push(b);return a};
h.P=function(a){for(var b=0;b<this.c.length;++b)if(a==this.c[b]){this.a.log(2,"Service "+a.getName()+" is already associated with slot "+this.g,a,this,void 0);return this}this.c.push(a);a.K(this);return this};h.getName=function(){return this.h};h.m=function(){return this.g};h.ta=function(){return this.c};h.ua=function(){return this.Ha};h.X=function(){return!!document.getElementById(this.g.l())};h.ja=function(a){this.z=this.a.info("Fetching ad for slot "+this.getName(),f,this);this.R=a};h.la=function(){return this.R};
h.ha=function(){this.ia=this.a.info("Receiving ad for slot "+this.getName(),f,this,this.z)};h.Da=function(){this.I=this.a.info("Rendering ad for slot "+this.getName(),f,this)};h.Ba=function(){this.Ca=this.a.info("Completed rendering ad for slot "+this.getName(),f,this,this.I)};H.prototype.set=H.prototype.J;H.prototype.get=H.prototype.i;H.prototype.getName=H.prototype.getName;H.prototype.getSlotId=H.prototype.m;H.prototype.getSizes=H.prototype.ua;H.prototype.addService=H.prototype.P;
H.prototype.getServices=H.prototype.ta;H.prototype.getAttributeKeys=H.prototype.o;H.prototype.fetchStarted=H.prototype.ja;H.prototype.fetchEnded=H.prototype.ha;H.prototype.renderStarted=H.prototype.Da;H.prototype.renderEnded=H.prototype.Ba;H.prototype.hasWrapperDiv=H.prototype.X;H.prototype.getContentUrl=H.prototype.la;var I=function(){this.r={};this.s={};this.a=v()};I.prototype.add=function(a,b,c){if(!l(a)||a.length<=0||!b)return f;a in this.r||(this.r[a]=[]);b=new H(a,this.r[a].length,b,c);c=b.m().l();if(this.s[c]){this.a.error("Div element "+c+" is already associated with another slot");return f}this.r[a].push(b);return this.s[b.m().l()]=b};I.prototype.find=function(a,b){var c=b||0,d=l(a)&&this.r[a]||[];if(c>=0&&c<d.length){d=d[c];if(d.m().S()==c)return d}return f};
var sa=function(){var a=o();return a.slot_manager_instance||(a.slot_manager_instance=new I)},J=function(a,b,c){var d=sa();return d&&d.add(a,b,c)};p("defineSlot",J);p("defineUnit",J);I.prototype.find=I.prototype.find;I.getInstance=sa;var ua=function(a){var b=v();if(l(a)){var c;c=sa();if(c.s[a])c=c.s[a];else{c.a.log(2,"Ad unit lookup for div "+a+" failed.",void 0,void 0,void 0);c=f}if(c){a=c;if(a.C&&!a.X())a.a.log(2,"Slot "+a.h+" does not have a container div with id: "+a.g.l()+".",f,a,void 0);else for(b=0;b<a.c.length;++b)a.c[b].k&&ta(a.c[b],a)}else b.error("Div "+a+" is not mapped to a known ad unit.")}else b.error("Unknown div id in display(): "+a.toString())};p("display",ua,e);var K=function(a,b){this.h=a;this.M=b?b:new i.GPT_jstiming.Timer;this.M.name=a;this.w=[]};h=K.prototype;h.getName=function(){return this.h};h.tick=function(a,b){this.M.tick(a,b)};h.O=function(a){a&&this.w.push(a)};h.report=function(){var a={};if(this.w.length)a.e=this.w.join();return i.GPT_jstiming.report(this.M,a)};h.H=function(a){q(window,a)};var L=function(a){this.h=a};ba(L,K);L.prototype.tick=function(){};L.prototype.O=function(){};L.prototype.report=function(){return f};L.prototype.H=function(){};
var va=function(a,b,c,d){b=b;if(b==undefined)b=1;b=i.GPT_jstiming&&i.GPT_jstiming.load&&i.location.protocol=="http:"&&Math.random()<b?e:g;a=b?new K(a,d):new L(a,d);c&&a.H(aa(K.prototype.report,a));return a};(function(){if(!o()._gpt_timer_&&i.GPT_jstiming){var a=va("global",1,g,i.GPT_jstiming.load);a.H(function(){a.tick("load");a.report()});p("_gpt_timer_",a)}return o()._gpt_timer_})();var M=function(a,b){this.u=[];this.k=g;this.f={};this.da=va(this.getName(),a,b);this.log=v();this.log.info("Created service: "+this.getName(),this)};h=M.prototype;h.getName=function(){return"unknown"};h.ma=function(){return this.da};h.J=function(a,b){var c=["attribute ",a," with value ",b," for service ",this.getName()].join("");if(l(a)&&a.length>0){this.f[a]=b;this.log.info("Setting "+c,this,f)}else this.log.log(2,"Unable to set "+c,this,f,void 0);return this};h.i=function(a){return this.f[a]};
h.o=function(){var a=[];for(var b in this.f)typeof this.f[b]!="function"&&a.push(b);return a};h.B=function(){return this.u};h.va=function(){for(var a={},b=0;b<this.u.length;++b){var c=this.u[b];a[c.m().A()]=c}return a};
h.v=function(){if(this.k)this.log.info("Service is already enabled.",this);else{this.k=e;try{if(this.d){if(!this.p){var a=document,b=a.createElement("script"),c=N();b.async=e;b.type="text/javascript";b.src=wa(this,O(c,window,a));var d=a.getElementsByTagName("head")[0]||a.getElementsByTagName("body")[0];if(d){this.log.info("Fetching GDFP implementation",this);d.appendChild(b);this.p=e}else this.log.error("Unable to fetch GDFP implementation",this)}}else{a=N();if(!(this.p||a.F)){b=document;this.p=e;
b.write('<script type="text/javascript" src="'+wa(this,O(a,window,b))+'"><\/script>')}}}catch(j){this.log.error("Failed to enable service: "+j,this)}}};h.display=function(a,b,c){this.v();a=c?J(a,b,c):J(a,b);a.P(this);ua(a.m().l())};h.K=function(a){this.u.push(a);this.log.info("Associated "+this.getName()+" service with slot "+a.getName(),this,a)};M.prototype.getSlots=M.prototype.B;M.prototype.getSlotIdMap=M.prototype.va;M.prototype.enable=M.prototype.v;M.prototype.set=M.prototype.J;
M.prototype.get=M.prototype.i;M.prototype.getAttributeKeys=M.prototype.o;M.prototype.getCsiTimer=M.prototype.ma;M.prototype.display=M.prototype.display;var P=function(){this.c={};this.F=g;this.a=v();this.Ja=this.a.info("Google service JS loaded");q(window,aa(P.prototype.Aa,this))};P.prototype.add=function(a){this.c[a.getName()]=a};P.prototype.find=function(a){var b=f;if(a in this.c)b=this.c[a];return b};P.prototype.Aa=function(){this.F=e;this.a.info("Page load complete",f,f,this.Ja)};
var O=function(a,b,c){a=g;try{a=b.top.document.URL===c.URL}catch(d){}return a?c.URL:c.referrer},N=function(){var a=o();return a.service_manager_instance||(a.service_manager_instance=new P)};p("enableServices",function(){var a=N();for(var b in a.c){var c=a.c[b];if(k(c)!="function"){c.v();c=b;var d=o()._gpt_timer_;d&&d.O(c)}}});var Q=function(){M.call(this);this.p=g;this.b=f;this.L={};this.ba=g;this.ca=e;this.q=g;this.d=e;this.j=[]};ba(Q,M);
var R={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_text_color",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"};Q.prototype.getName=function(){return"publisher_ads"};var wa=function(a,b){if(b.indexOf("&google_debug")>0||b.indexOf("?google_debug")>0)return"http://partner.googleadservices.com/gampad/google_ads_gpt_dbg.js";return"http://partner.googleadservices.com/gampad/google_ads_gpt.js"};
Q.prototype.za=function(){var a=N(),b=o().impl;if(b&&b.pubads){this.b=b.pubads;this.log.info("GDFP implementation fetched.",this);this.ca||this.b.disableFetch();if(this.q){this.d?this.b.enableAsyncSingleRequest():this.b.enableSingleRequest();xa(this);a=this.B();for(b=0;b<a.length;++b)ya(this,a[b])}else this.d&&this.b.enableAsyncRendering();if(this.j.length>0)for(b=0;b<this.j.length;++b)ta(this,this.j[b])}else this.log.error("Unable to fetch pubads service implementation from "+wa(this,O(a,window,
document)),this)};Q.prototype.K=function(a){if(!this.d)a.C=g;M.prototype.K.call(this,a)};
var ta=function(a,b){if(N().F&&!a.d)a.log.error("Attempting to display ad in sync mode after page load is complete.",a);else if(a.b){xa(a);if(a.q||ya(a,b)){a.log.info("Calling fillslot");a.b.fillSlot(b)}}else if(a.d||a.p&&a.j.length==0){for(var c=g,d=0;d<a.j.length;++d)if(b===a.j[d])c=e;if(!c){a.log.info("Delaying rendering of ad slot "+b.getName()+" pending loading of the GDFP implementation",a,b);a.j.push(b)}}else a.log.error("Skipping rendering of slot "+b.getName()+" due to missing GDFP implementaition",
a,b)},ya=function(a,b){if(a.b&&a.b.addSlot(b)==f){a.log.error("Unable to process name for slot "+b.getName(),a,b);return g}for(var c=b.o(),d=0;d<c.length;++d)c[d]in R?a.b.addAdSenseSlotAttribute(b,R[c[d]],b.i(c[d])):a.log.log(2,"Ignoring unknown pubads attribute "+c[d]+" with value "+b.i(c[d])+" for slot "+b.getName(),a,b,void 0);return e},xa=function(a){if(!a.ba){a.ba=e;for(var b=a.o(),c=0;c<b.length;++c)b[c]in R?a.b.addAdSensePageAttribute(R[b[c]],a.i(b[c])):a.log.log(2,"Ignoring unknown pubads attribute "+
b[c]+" with value "+a.i(b[c]),a,void 0,void 0);a.b.addAdSensePageAttribute("google_tag_info","v2");for(var d in a.L){b=a.L[d];if(k(b)=="array")for(c=0;c<b.length;++c)a.b.addAttribute(d,b[c])}}};h=Q.prototype;h.Ga=function(a,b){var c=[];if(l(b))c.push(b);else c=b;var d=[" targeting attribute ",a," with value ",c.join()," for service ",this.getName()].join("");if(a&&l(a)){this.L[a]=c;this.log.info("Setting"+d,this)}else this.log.log(2,"Unable to set"+d,this,void 0,void 0)};
h.ya=function(){if(this.b)this.log.log(2,"Ignoring noFetch since the pubads service is already enabled",this,void 0,void 0);else this.ca=g};h.enableSingleRequest=function(){if(this.k&&!this.q)this.log.log(2,"Ignoring change to single request mode since the service is already enabled",this,void 0,void 0);else{this.log.info("Using single request mode to fetch ads",this);this.q=e}return this.q};
h.enableAsyncRendering=function(){if(this.k&&!this.d)this.log.log(2,"Ignoring change to async-rendering mode since the service is already enabled",this,void 0,void 0);else{this.log.info("Using async-rendering mode to fetch ads",this);this.d=e}return this.d};
h.ga=function(){if(this.k&&this.d)this.log.log(2,"Ignoring change to async-rendering mode since the service is already enabled",this,void 0,void 0);else{this.log.info("Using sync-rendering mode to fetch ads",this);this.d=g;for(var a=this.B(),b=0;b<a.length;++b)a[b].C=g}return!this.d};p("pubads",function(){var a=N(),b=a.find("publisher_ads");if(!b){b=new Q;a.add(b)}return b});Q.prototype.enableSingleRequest=Q.prototype.enableSingleRequest;Q.prototype.enableAsyncRendering=Q.prototype.enableAsyncRendering;
Q.prototype.enableSyncRendering=Q.prototype.ga;Q.prototype.noFetch=Q.prototype.ya;Q.prototype.setTargeting=Q.prototype.Ga;Q.prototype.onGoogleAdsJsLoad=Q.prototype.za;var za=function(){var a=document,b=a.createElement("script");b.type="text/javascript";b.src="http://publisherconsole.appspot.com/js/loader.js";b.async=e;(a=a.getElementsByTagName("script")[0])&&a.parentNode&&a.parentNode.insertBefore(b,a)},Aa;
a:{var Ba=window,Ca;var Da=document.cookie.split("google_pubconsole=");Ca=Da.length==2?Da[1].split(";")[0]:"";if(Ca){var Ea=Ca.split("|");if(Ea.length>0&&(Ea[0]=="1"||Ea[0]=="0")){Aa=e;break a}}var Fa;var S=O(N(),Ba,document),Ga=S.search(/#|$/),T;c:{for(var U=0;(U=S.indexOf("google_console",U))>=0&&U<Ga;){var Ha=S.charCodeAt(U-1);if(Ha==38||Ha==63){var V=S.charCodeAt(U+14);if(!V||V==61||V==38||V==35){T=U;break c}}U+=15}T=-1}if(T<0)Fa=f;else{var W=S.indexOf("&",T);if(W<0||W>Ga)W=Ga;T+=15;Fa=decodeURIComponent(S.substr(T,
W-T).replace(/\+/g," "))}Aa=f!==Fa}Aa&&q(window,za);var Z=o().cmd;if(!Z||k(Z)=="array"){var Ia=o().cmd=new w;Z&&Z.length>0&&Ia.push.apply(Ia,Z)}var Ja=document.getElementsByTagName("script");if(Ja.length>0){var $=Ja[Ja.length-1];if($.src&&$.src.indexOf("/tag/js/gpt.js")>=0&&$.innerHTML&&!$.googletag_executed){$.googletag_executed=e;eval($.innerHTML)}};})()
