__gcssload__('my_location.css', '#my_location_failure{position:absolute;width:100%;text-align:center}#my_location_failure div{position:relative;top:-1.6em}#my_location_failure div span{font-weight:bold;background:#fff1a8;padding:4px 8px}#my_location_failure div span a{padding-left:0.5em}');GAddMessages({10001:"Google Maps",13131:"Your location could not be determined.",13132:"%1$s does not have permission to use your location. %2$sHelp%3$s",13133:"Use Gears to automatically provide your location in %1$s."});
__gjsload_maps2__('ml', 'var nY="failed";function oY(){this.F=this.C=this.o=i;this.R=0;this.ry=this.j=this.cr=i} var qY=function(a){if(a.j){clearTimeout(a.j);a.j=i}if(ma(a.cr)){a.o.clearWatch(a.cr);a.cr=i}a.C=i;a.F=i;a.R=0;pY(a)}, pY=function(a){x(a,Ta,a.R)}, Mqa=function(a,b){if(!a.o)a.o=Lqa();a.ry=mh(a);b.tick("mlwp0");if(typeof a.o.getPermission!="undefined"&&!a.o.getPermission(F(10001),Hi("maps_32up"),Y(F(13133),F(10001)))){var c={PERMISSION_DENIED:1,code:1,message:"User denied Gears Geolocation permissions."};Rk(a,function(){this.LG(c,b);nh(this)}, 0,b)}else{var d={};d.maximumAge=3E5;d.timeout=1E4;d.gearsLocationProviderUrls=["https://www.google.com/loc/json"];var e=s(a.G,a),f=s(a.LG,a),g=xl(b);a.cr=a.o.watchPosition(s(function(k){e(k,g);this.ry.jb()&&g.done();nh(this)}, a),s(function(k){f(k,g);if(this.cr==i){g.done();nh(this)}}, a),d)}}; oY.prototype.I=function(){this.j=i;this.R=3;pY(this)}; oY.prototype.G=function(a,b){this.ry.jb()&&b.tick("mlwp1");if(this.j){clearTimeout(this.j);this.j=i}var c=new u(a.coords.latitude,a.coords.longitude),d=a.coords.accuracy;if(!(this.C&&this.C.equals(c))||d!=this.F){this.C=c;this.F=d;this.R=2;pY(this)}this.ry.jb()&&b.tick("mlwp2")}; oY.prototype.LG=function(a,b){if(!(!ma(this.cr)&&typeof this.o.getPermission=="undefined"))if(a.code==a.TIMEOUT)if(this.R==1){b.tick("mlwp1e");x(this,nY,2);qY(this);b.tick("mlwp2")}else{if(this.R==2)if(!this.j)this.j=Rk(this,this.I,6E5)}else if(a.code==a.PERMISSION_DENIED){b.tick("mlwp1p");x(this,nY,1);qY(this);b.tick("mlwp2")}}; var Lqa=function(){var a=i;if(navigator&&navigator.geolocation)a=navigator.geolocation;else if(window.google&&google.gears)a=google.gears.factory.create("beta.geolocation");return a};fw.prototype.md=function(a,b){this.j=new oY;this.Pi=new rY(a,this.j);b.F(this.Pi)}; fw.prototype.jI=function(a){this.Pi.M();if(this.Pi.j&&!this.Pi.D.pa().contains(this.Pi.j))sY(this.Pi);else{var b=this.j;if(b.R!=1)if(b.R==2||b.R==3)qY(b);else{b.R=1;pY(b);Mqa(b,a)}}};function rY(a,b){this.D=a;this.J=b;this.C=this.j=i;this.R=0;this.L=this.F=this.o=i;W(this.J,Ta,this,this.O);W(this.J,nY,this,this.T);this.G=this.K=this.I=i} var tY=[{dt:0,opacity:0.25},{dt:25,opacity:0.2},{dt:50,opacity:0.15},{dt:100,opacity:0.1},{dt:150,opacity:0.05}],Nqa=Og(30,30),uY=[];uY[1]=Y(F(13132),F(10001),\'<a target="_blank" href="http://maps.google.com/support/bin/answer.py?answer=152197">\',"</a>");uY[2]=F(13131);var vY=function(a,b,c){var d=new tt;d.iconSize=new N(a,a);d.iconAnchor=new R(a/2,a/2);d.sprite={};d.sprite.image=Hi("my_location");d.sprite.width=a;d.sprite.height=a;d.sprite.top=b;d.sprite.left=c;return d}, Oqa=vY(15,0,15),Pqa=vY(15,0,0),Qqa=vY(13,15,19),Rqa=vY(13,28,19);rY.prototype.Xb=l("R"); rY.prototype.O=function(a){var b=this.R;this.R=a;x(this,Ta,this.R);switch(this.R){case 1:break;case 0:this.C=this.j=i;wY(this);if(this.I){B(this.I);this.I=i}break;case 3:xY(this,this.D.ja());break;case 2:a=this.J.C;var c=this.J.F,d=j;if(a&&c){d=!(this.j&&this.j.equals(a))||this.C!=c;this.j=a;this.C=c;d=d}this.R==2&&b==1&&sY(this);if(d)if(c<1E3){b=this.D.ja();if(this.o){this.o.pd(this.j);xY(this,b)}else{this.o=new tq(this.j,{icon:yY(this,b),ground:h,clickable:j});this.D.na(this.o)}b=this.j;a=this.C; c=this.D;a=new u(b.lat()+a/111120,b.lng());c=c.va().Wb();d=0;for(var e=[],f=0;f<=Nqa;f++){var g=c.uc(b,f),k=c.uc(a,f);for(g=g.y-k.y;tY[d+1]&&g>=tY[d+1].dt;)d++;e[f]=tY[d].opacity}this.L=e;b=this.j;a=this.C;c=new u(a/111120,a/(111120*Math.cos(b.Nh())));a=[];for(d=0;d<=100;d++){e=2*Math.PI*d/100;a.push(new u(b.lat()+c.lat()*Math.cos(e),b.lng()+c.lng()*Math.sin(e)))}b={};b.clickable=j;b=new Fs(a,"#0077D2",1,0.2,"#0077D2",this.L[this.D.ja()],b);this.F&&this.D.Ga(this.F);this.F=b;this.D.na(this.F);if(this.I== i)this.I=W(this.D,Tb,this,this.V)}else wY(this);break}}; rY.prototype.T=function(a){a=uY[a];this.M();this.K=Rk(this,this.M,5E3);this.G=G("div",document.getElementById("header"));this.G.id="my_location_failure";var b=G("div",this.G);b=G("span",b);K(b,a)}; rY.prototype.M=function(){if(this.G){document.getElementById("header").removeChild(this.G);this.G=i}if(this.K){clearTimeout(this.K);this.K=i}}; var wY=function(a){if(a.o){a.D.Ga(a.o);a.o=i}if(a.F){a.D.Ga(a.F);a.F=i}}, sY=function(a){if(a.j&&a.C){var b=new u(a.C/111120,a.C/(111120*Math.cos(a.j.Nh())));b=new u(4*b.lat(),4*b.lng());b=a.D.va().hm(a.j,b,a.D.nb());a.D.lc(a.j,Dh(b,16))}}; rY.prototype.V=function(a,b){xY(this,b);this.F.Hq({opacity:this.L[b]})}; var xY=function(a,b){var c=yY(a,b);a.o.Le()!=c&&a.o.Of(c)}, yY=function(a,b){var c=b>=14;switch(a.R){case 2:return c?Oqa:Qqa;case 3:return c?Pqa:Rqa;default:}};X("ml",1,fw);X("ml");');
