(function(){function g(a,b,c){if(a.addEventListener)a.addEventListener(b,c,!1);else if(a.attachEvent)a.attachEvent("on"+b,c);else{var d=a["on"+b];a["on"+b]=function(){c.call(this);d&&d.call(this)}}};window.pagespeed=window.pagespeed||{};var h=window.pagespeed;h.deferJsNs={};var l=h.deferJsNs;function m(){this.s=[];this.m=[];this.w=this.o=0;this.A=[];this.i="";this.u={};this.L="application/ecmascript application/javascript application/x-ecmascript application/x-javascript text/ecmascript text/javascript text/javascript1.0 text/javascript1.1 text/javascript1.2 text/javascript1.3 text/javascript1.4 text/javascript1.5 text/jscript text/livescript text/x-ecmascript text/x-javascript".split(" ");this.f=!0;this.W=document.getElementById;this.H=document.getElementsByTagName;this.V=document.write;this.U=document.open;this.T=document.close;this.R=document.addEventListener;this.X=window.addEventListener;this.S=document.attachEvent;this.Y=window.attachEvent;this.j=document.createElement;this.a=n;this.I=p;this.l=this.G=!0;this.c=null;this.B=0;this.C=[];this.b=this.g="";this.D=-1}var q=!1,n=0,p=0;m.prototype.log=function(a,b){this.m&&(this.m.push(""+a),b&&(this.m.push(b.message),"undefined"!=typeof console&&"undefined"!=typeof console.log&&console.log("PSA ERROR: "+a+b.message)))};function t(a,b,c){a.s.splice(c?c:a.s.length,0,b)}function u(a,b,c){c=v(a,c);c.text=b;c.setAttribute("type","text/javascript");a=w(a);a.parentNode.insertBefore(c,a);return c} function x(a){for(var b=document.getElementsByTagName("*"),c="",d=0;d=E()))for(var c=document.querySelectorAll("["+a.b+"]"),d=0;d=E()||(document.getElementsByTagName=function(b){if(a.f)try{return document.querySelectorAll(b+":not(["+a.b+"])")}catch(e){}return a.H.call(document,b)});document.createElement=function(b){var c=a.j.call(document,b);a.f&&"script"==b.toLowerCase()&&(a.A.push(c),a.w++,b=function(){a.w--;var b=a.A.indexOf(this);-1!=b&&(a.A.splice(b,1),O(a)&&G(a))},l.h(c,b),g(c,"error",b));return c}}m.prototype.v=function(){if(2==this.a){var a=0;this.B&&(a=N(this.C));this.B==a&&this.run()}};m.prototype.execute=m.prototype.v;m.prototype.run=function(){2==this.a&&(this.G&&M(this,1),this.a=3,S(this),B(this))};m.prototype.run=m.prototype.run;function V(a,b){if("SCRIPT"!=b.nodeName)return!1;if(b.hasAttribute("type")){var c=b.getAttribute("type");return!c||-1!=a.L.indexOf(c)}return b.hasAttribute("language")?(c=b.getAttribute("language"),!c||-1!=a.L.indexOf("text/"+c.toLowerCase())):!0} function W(a,b,c){if(b.childNodes){b=R(b.childNodes);for(var d=b.length,e=0;e_"+b;e.removeChild(e.firstChild);b=[];W(a,e,b);if(c)for(var e=R(e.childNodes),f=e.length,k=c.parentNode,r=0;rf.I&&("DOMContentLoaded"==b||"readystatechange"==b||"onDOMContentLoaded"==b||"onreadystatechange"==b))b=2,k="DOMContentLoaded";else if(3>f.I&&("load"==b||"onload"==b))b=3,k="load";else if("onbeforescripts"==b)b=1;else if("onafterscripts"==b)b=4;else{d&&d.call(a,b,c,e);return}f.u[b]||(f.u[b]=[]);f.u[b].push(function(){var b={bubbles:!1,cancelable:!1,eventPhase:2};b.timeStamp=(new Date).getTime();b.type=k;b.target=a!=window?a:document;b.currentTarget=a;c.call(a,b)})} m.prototype.registerScriptTags=function(a,b){if(!(2<=this.a)){if(a){if(!q){a();return}this.l=!1;this.c=a;b&&(this.D=b)}else this.l=!0;this.a=2;for(var c=document.getElementsByTagName("script"),d=c.length,e=0;e