/* JS */ gapi.loaded_2(function(_){var window=this;
var HF=function(a,b,c,d,e){this.width=a;this.height=b;this.So=c;this.To=d;this.opacity=e},IF=function(a,b,c,d){return new HF(void 0==b?a.width:b,void 0==c?a.height:c,a.So,a.To,void 0==d?a.opacity:d)};HF.prototype.equals=function(a){return this.width==a.width&&this.height==a.height&&this.So==a.So&&this.To==a.To&&this.opacity==a.opacity}; HF.prototype.interpolate=function(a,b){var c=1-b;return new HF(Math.round(this.width*c+a.width*b),Math.round(this.height*c+a.height*b),Math.round(this.So*c+a.So*b),Math.round(this.To*c+a.To*b),this.opacity*c+a.opacity*b)};
_.JF=function(a){_.Vt.call(this,a);this.Ca=new _.ju(this)};_.z(_.JF,_.Xt);
_.JF.prototype.create=function(){var a=Number(this.Al(200,"widgetWidth","width")),b=Number(this.Al(100,"widgetHeight","height")),c=this.Al("auto","corner"),d=this.Al({},"menuCss"),e=this.Al(!0,"hideOnClick");this.vu=!!this.Al(!0,"hideOnLeave");this.hJ=!!this.Al((0,_.fx)(),"useCss3Transition");this.GX=!!this.Al(!0,"allowOffset");var f=window.document.createElement("div");this.va=f;var h=this.Gg();h.parentNode.appendChild(f);var k=window.document.createElement("div");this.Ro=k;f.appendChild(k);d.position=
"absolute";d.width=a+"px";d.height="0";d.border=d.border||"1px solid #aaa";d.background=d.background||"#fff";d.zIndex=_.au(this);d.overflow="hidden";d.boxShadow=d.MozBoxShadow=d.webkitBoxShadow=d.boxShadow||"0 2px 2px rgba(0,0,0,0.3)";_.Q(f,d);_.Q(k,{left:"-1000px",top:"-1000px",position:"absolute",width:a+"px",height:b+"px"});this.E9=f.offsetWidth-a;this.I9=f.offsetHeight;d="auto"==c?["top","start"]:c.split("-");h=_.zt(h);this.cx="bottom"==d[0];this.vA="right"==d[1]||"left"!=d[1]&&h;this.Di=KF(this,
a,b,"auto"==c);this.BI=_.r.setTimeout((0,_.u)(this.s8,this),500);this.Ca.U(f,"mouseover",this.uG);this.Ca.Ou(f,"mouseout",this.tG,!1,this);e&&_.r.setTimeout((0,_.u)(function(){this.Os||this.Ca.U(window.document,"click",this.V4)},this),0)};
_.JF.prototype.open=function(){this.create();this.$.eg(this.va);this.$.Rd("resize",(0,_.u)(this.resize,this));this.$.tf("showMenu",(0,_.u)(this.ZS,this));var a=this.$.methods;a.setHideOnLeave=(0,_.u)(this.Fv,this);a.displayStateCallback&&(this.tM=a.displayStateCallback,delete a.displayStateCallback);this.$.Kg(this.Ro,{height:"100%"});_.LF(this,this.Di)};_.JF.prototype.open=_.JF.prototype.open;
_.JF.prototype.Pd=function(a){this.Os||(a=a||{},this.Ro.style.left="0",this.Ro.style.top="0",this.Jk&&(_.dh(this.Jk),this.Jk=null),this.BI&&(_.r.clearTimeout(this.BI),this.BI=null),MF(this,(0,window.parseInt)(a.width,10)||(0,window.parseInt)(this.$.width,10)||this.Di.width,(0,window.parseInt)(a.height,10)||(0,window.parseInt)(this.$.height,10)||this.Di.height))};_.JF.prototype.onready=_.JF.prototype.Pd;
_.JF.prototype.resize=function(a){this.Os||MF(this,(0,window.isNaN)(+a.width)?this.Di.width:+a.width,(0,window.isNaN)(+a.height)?this.Di.height:+a.height)};_.JF.prototype.close=function(){this.aF?NF(this):(this.FC=!0,OF(this))};_.JF.prototype.close=_.JF.prototype.close;_.JF.prototype.Al=function(a,b){for(var c,d=1,e=arguments.length;d<e&&(c=this.Ba[arguments[d]],void 0===c);++d);return void 0!==c?c&&"object"==typeof c?(d={},_.ft(d,c),d):c:a};
var KF=function(a,b,c,d){var e=a.Gg(),f=_.Pt(e.offsetParent);f.right-=a.E9;f.bottom-=a.I9;if(d){var h=e.offsetLeft;d=h+b<f.right;h=h+e.offsetWidth-b>=f.left;a.vA=a.vA?!d||h:!d&&h;h=e.offsetTop;d=h+c<f.bottom;h=h+e.offsetHeight-c>=f.top;a.cx=a.cx?!d||h:!d&&h}d=a.Pt(a.vA,e.offsetLeft,e.offsetWidth,b,f.left,f.right);a=a.Pt(a.cx,e.offsetTop,e.offsetHeight,c,f.top,f.bottom);return new HF(b,c,d,a,1)};
_.JF.prototype.Pt=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))};var MF=function(a,b,c){a.$.Xa().style.width=b+"px";a.$.Xa().style.height=c+"px";a.Ro.style.width=b+"px";a.Ro.style.height=c+"px";b=a.GX?KF(a,b,c,!1):IF(a.cE,b,c);a.Di=b;a.Nl||PF(a,b)};_.g=_.JF.prototype;_.g.Fv=function(a){this.vu=!!a};_.g.uG=function(){!this.Nl&&this.Gn&&(_.r.clearTimeout(this.Gn),this.Gn=null)};
_.g.tG=function(a){if(!(this.Nl||this.Gn||!this.vu||a.relatedTarget&&_.ih(this.va,a.relatedTarget))){var b=_.Qt(this.va);a=a.clientY>b.top&&a.clientY<b.top+b.height?0:300;this.Gn=_.r.setTimeout((0,_.u)(this.Af,this),a)}};_.g.V4=function(a){_.$t(this.va,a)||this.Af()};_.g.ZS=function(a){this.show(!!a||void 0===a)};_.g.show=function(a){a?this.wj():this.Af()};_.g.wj=function(){!this.Os&&this.aF&&(this.Nl=this.aF=!1,_.LF(this,this.Di))};
_.LF=function(a,b){QF(a,IF(b,void 0,0,0));_.r.setTimeout((0,_.u)(function(){this.Nl||(this.Di=b,this.hJ&&_.ex(this.va,"width 350ms cubic-bezier(.23, .50, .32, 1),height 350ms cubic-bezier(.23, .50, .32, 1),left 350ms cubic-bezier(.23, .50, .32, 1),top 350ms cubic-bezier(.23, .50, .32, 1),opacity 350ms cubic-bezier(.23, .50, .32, 1)"),PF(this,b),this.hx(!0,!1),this.Mv&&(_.r.clearTimeout(this.Mv),this.FC=!1),this.Mv=_.r.setTimeout((0,_.u)(this.hx,this,!0,!0),350))},a),0)};
_.JF.prototype.Af=function(){this.Nl||OF(this)};
var OF=function(a){a.Nl||(a.hx(!1,!1),PF(a,IF(a.cE,void 0,0,0)),a.Nl=!0,a.Mv&&_.r.clearTimeout(a.Mv),a.Mv=_.r.setTimeout((0,_.u)(function(){this.aF=!0;this.FC?(NF(this),this.FC=!1):(this.hJ&&_.ex(this.va,""),this.va.visibility="hidden",this.va.left="-1000px",this.va.top="-1000px");this.hx(!1,!0)},a),350))},NF=function(a){a.Os=!0;_.ie(a.Ca);a.Ca=null;a.Gn&&(_.r.clearTimeout(a.Gn),a.Gn=null);a.ip&&(_.r.clearTimeout(a.ip),a.ip=null);_.dh(a.va);a.va=null;_.dh(a.Gg());a.Ro=null;a.Jk=null};
_.JF.prototype.hx=function(a,b){var c=this.tM;c&&_.r.setTimeout(function(){c(a,b)},0)};_.JF.prototype.s8=function(){this.Jk=window.document.createElement("div");this.Jk.style.width=this.Jk.style.height="100%";this.Jk.style.position="absolute";this.Jk.style.background="url(//ssl.gstatic.com/ui/v1/activityindicator/loading_gs.gif) no-repeat "+(this.Di.width-19)/2+"px "+(this.Di.height-19)/2+"px";this.va.appendChild(this.Jk)};
var PF=function(a,b){if(!a.Nl)if(a.hJ)QF(a,b);else{var c=(0,_.Fa)()-20+350;a.ip&&_.r.clearTimeout(a.ip);a.ZP(a.cE,b,c)}},QF=function(a,b){var c=a.va,d=a.Gg();c.style.left=a.vA?d.offsetLeft+d.offsetWidth+b.So-b.width+"px":d.offsetLeft+b.So+"px";c.style.width=b.width+"px";c.style.top=a.cx?d.offsetTop+d.offsetHeight+b.To-b.height+"px":d.offsetTop+b.To+"px";c.style.height=b.height+"px";_.wt(c,b.opacity);a.cE=b}; _.JF.prototype.ZP=function(a,b,c){this.ip=null;if(!this.Os&&!a.equals(b)){var d=(0,_.Fa)();d>=c?QF(this,b):(QF(this,a.interpolate(b,1-Math.pow(1-Math.min(1-(c-d)/350,1),3))),this.ip=_.r.setTimeout((0,_.u)(this.ZP,this,a,b,c),20))}};

_.co["slide-menu"]=function(a){var b=new _.JF(_.pO(a)),c=new _.fu(b);b.open=function(){};b.create();a.attributes={height:"100%"};a.where=b.Ro;a.onClose=function(){b.close()};a.onRestyle=function(a){if(a){var c=!1;a.hasOwnProperty("showMenu")&&(b.ZS(a.showMenu),c=!0);a.hasOwnProperty("setHideOnLeave")&&(b.Fv(a.setHideOnLeave),c=!0);c||b.resize(a)}};a.onCreate=function(a){a.Kd=function(){return this.Qt("openerIframe")};c.$=b.$=a;a.eg(b.va);a.register("_ready",(0,_.u)(b.Pd,b),_.P);b.tM=function(b,c){!a.Rb&& a.Nq([b,c])};_.LF(b,b.Di);c.open()}};

});
// Google Inc.
