/* JS */ gapi.loaded_3(function(_){var window=this; var pB=function(a,b,c,d,e){this.width=a;this.height=b;this.A=c;this.B=d;this.opacity=e},qB=function(a,b,c,d){return new pB(void 0==b?a.width:b,void 0==c?a.height:c,a.A,a.B,void 0==d?a.opacity:d)};pB.prototype.equals=function(a){return this.width==a.width&&this.height==a.height&&this.A==a.A&&this.B==a.B&&this.opacity==a.opacity}; pB.prototype.interpolate=function(a,b){var c=1-b;return new pB(Math.round(this.width*c+a.width*b),Math.round(this.height*c+a.height*b),Math.round(this.A*c+a.A*b),Math.round(this.B*c+a.B*b),this.opacity*c+a.opacity*b)}; _.rB=function(a){_.us.call(this,a);this.Z=new _.Ls(this)};(0,_.C)(_.rB,_.ws); _.tB=function(a){var b=Number(a.G(200,"widgetWidth","width")),c=Number(a.G(100,"widgetHeight","height")),d=a.G("auto","corner"),e=a.G({},"menuCss"),f=a.G(!0,"hideOnClick");a.Wc=!!a.G(!0,"hideOnLeave");a.Zb=!!a.G((0,_.uu)(),"useCss3Transition");a.Lf=!!a.G(!0,"allowOffset");var g=window.document.createElement("div");a.B=g;var k=(0,_.zs)(a);k.parentNode.appendChild(g);var l=window.document.createElement("div");a.O=l;g.appendChild(l);e.position="absolute";e.width=b+"px";e.height="0";e.border=e.border|| "1px solid #aaa";e.background=e.background||"#fff";e.zIndex=(0,_.Bs)(a);e.overflow="hidden";e.boxShadow=e.MozBoxShadow=e.webkitBoxShadow=e.boxShadow||"0 2px 2px rgba(0,0,0,0.3)";(0,_.V)(g,e);(0,_.V)(l,{left:"-1000px",top:"-1000px",position:"absolute",width:b+"px",height:c+"px"});a.Je=g.offsetWidth-b;a.Ke=g.offsetHeight;e="auto"==d?["top","start"]:d.split("-");k=(0,_.Wr)(k);a.Wa="bottom"==e[0];a.ua="right"==e[1]||"left"!=e[1]&&k;a.C=sB(a,b,c,"auto"==d);a.Xb=_.s.setTimeout((0,_.u)(a.Ld,a),500);a.Z.P(g, "mouseover",a.DF);(0,_.Ns)(a.Z,g,"mouseout",a.CF,!1,a);f&&_.s.setTimeout((0,_.u)(function(){this.Y||this.Z.P(window.document,"click",this.tG)},a),0)};_.rB.prototype.open=function(){(0,_.tB)(this);this.R.Od(this.B);this.R.Fb("resize",(0,_.u)(this.resize,this));this.R.Hc("showMenu",(0,_.u)(this.ez,this));var a=this.R.Kb;a.setHideOnLeave=(0,_.u)(this.tw,this);a.displayStateCallback&&(this.Gc=a.displayStateCallback,delete a.displayStateCallback);this.R.wd(this.O,{height:"100%"});(0,_.uB)(this,this.C)}; _.rB.prototype.open=_.rB.prototype.open;_.rB.prototype.Wb=function(a){this.Y||(a=a||{},this.O.style.left="0",this.O.style.top="0",this.D&&((0,_.Ef)(this.D),this.D=null),this.Xb&&(_.s.clearTimeout(this.Xb),this.Xb=null),vB(this,(0,window.parseInt)(a.width,10)||(0,window.parseInt)(this.R.width,10)||this.C.width,(0,window.parseInt)(a.height,10)||(0,window.parseInt)(this.R.height,10)||this.C.height))};_.rB.prototype.onready=_.rB.prototype.Wb; _.rB.prototype.resize=function(a){this.Y||vB(this,(0,window.isNaN)(+a.width)?this.C.width:+a.width,(0,window.isNaN)(+a.height)?this.C.height:+a.height)};_.rB.prototype.close=function(){this.gb?wB(this):(this.Ca=!0,xB(this))};_.rB.prototype.close=_.rB.prototype.close;_.rB.prototype.G=function(a,b){for(var c,d=1,e=arguments.length;d=f.left;a.ua=a.ua?!d||g:!d&&g;g=e.offsetTop;d=g+c=f.top;a.Wa=a.Wa?!d||g:!d&&g}d=yB(a.ua,e.offsetLeft,e.offsetWidth,b,f.left,f.right);a=yB(a.Wa,e.offsetTop,e.offsetHeight,c,f.top,f.bottom);return new pB(b,c,d,a,1)},yB=function(a,b,c,d,e,f){return a?(a=b+c,Math.min(f-a,Math.max(e+d-a,0))):Math.max(e-b,Math.min(f- b-d,0))},vB=function(a,b,c){a.R.Da().style.width=b+"px";a.R.Da().style.height=c+"px";a.O.style.width=b+"px";a.O.style.height=c+"px";b=a.Lf?sB(a,b,c,!1):qB(a.Na,b,c);a.C=b;a.M||zB(a,b)};_.h=_.rB.prototype;_.h.tw=function(a){this.Wc=!!a};_.h.DF=function(){!this.M&&this.K&&(_.s.clearTimeout(this.K),this.K=null)}; _.h.CF=function(a){if(!(this.M||this.K||!this.Wc||a.relatedTarget&&(0,_.If)(this.B,a.relatedTarget))){var b=(0,_.hs)(this.B);a=a.clientY>b.top&&a.clientY=c?AB(this,b):(d=Math.min(1-(c-d)/350,1),AB(this,a.interpolate(b,1-Math.pow(1-d,3))),this.S=_.s.setTimeout((0,_.u)(this.Xc,this,a,b,c),20))}}; _.sm["slide-menu"]=function(a){var b=new _.rB((0,_.QL)(a)),c=new _.Gs(b);b.open=function(){};(0,_.tB)(b);a.attributes={height:"100%"};a.where=b.O;a.onClose=function(){b.close()};a.onRestyle=function(a){if(a){var c=!1;a.hasOwnProperty("showMenu")&&(b.ez(a.showMenu),c=!0);a.hasOwnProperty("setHideOnLeave")&&(b.tw(a.setHideOnLeave),c=!0);c||b.resize(a)}};a.onCreate=function(a){a.Cb=function(){return this.Bj("openerIframe")};c.R=b.R=a;a.Od(b.B);a.register("_ready",(0,_.u)(b.Wb,b),_.dm);b.Gc=function(b, c){!a.jb()&&a.xi([b,c])};(0,_.uB)(b,b.C);c.open()}}; }); // Google Inc.