(function(b){var a;geopage.ClientLocator=function(){var d,c=this;c._googleData=google.loader.ClientLocation;d=new Date();c._tzOffset=d.getTimezoneOffset()*(-60)};a=geopage.ClientLocator.prototype;a.hasData=function(){var c=this;return c._googleData!=null};a.latitude=function(){var d,c=this;d=c._googleData;return d?d.latitude:null};a.longitude=function(){var d,c=this;d=c._googleData;return d?d.longitude:null};a.usCity=function(){var e,c,d=this;e=d._googleData;if(!e){return null}c=e.address;if(c.country_code!="US"){return null}return c.city};a.usState=function(){var e,c,d=this;e=d._googleData;if(!e){return null}c=e.address;if(c.country_code!="US"){return null}return c.region};a.timezoneOffset=function(){var c=this;return c._tzOffset};a.ajaxUpdateLocation=function(){var c=this;$.post("/explore_aux/set_context_location",{city:c.usCity(),state:c.usState(),tz_offset:c.timezoneOffset()})};a.exploreUrl=function(){var d,f,e,c=this;f=c.usCity();if(f==null){f="Seattle"}e=c.usState();if(e==null){e="WA"}return location.protocol+"//"+location.host+"/explore?redir=1&fromsplash=1&state="+encodeURIComponent(e)+"&city="+encodeURIComponent(f)}})(this);