(function(a){a(document).ready(function(){a(window).load(function(){a("#st-container").removeClass("disable-scrolling");a("#loading-animation").fadeOut();a("#preloader").delay(350).fadeOut(800);var b=document.createElement("script");b.type="text/javascript";b.async=!0;b.src="https://apis.google.com/js/platform.js";var d=document.getElementsByTagName("script")[0];d.parentNode.insertBefore(b,d);equalheight(".same-height")});1500a(window).width()&&
(a(".animated").removeClass("animated").removeClass("hiding"),a(".stat span").removeClass("timer"),a(".timeslot-label").addClass("stick-label"));512>a(window).height()&&a("#bottom-navlinks").removeClass("bottom-navlinks").addClass("bottom-navlinks-small");100<=a(window).scrollTop()&&(a("#top-header").addClass("after-scroll"),a("#logo-header .logo").removeClass("logo-light").addClass("logo-dark"));a(window).scroll(function(){var b=a(this).scrollTop(),d=a("#top-header"),c=a("#logo-header .logo"),e=
a(".right-nav-button"),f=d.height()+a(".track-header").height();100<=b?(d.addClass("after-scroll"),c.removeClass("logo-light").addClass("logo-dark")):(d.removeClass("after-scroll"),c.removeClass("logo-dark").addClass("logo-light"));b>=a(".top-section").height()&&767a(window).width()?(a(".same-height").css("height","100%"),a(".timeslot-label").addClass("stick-label")):(a(".timeslot-label").removeClass("stick-label"),c.hasClass("st-menu-open")&&(c.removeClass("st-menu-open"),a("body").css("overflow","auto")),equalheight(".same-height"));
512>a(window).height()?(a(".st-menu").addClass("scrollable"),a("#bottom-navlinks").removeClass("bottom-navlinks").addClass("bottom-navlinks-small")):(a(".st-menu").removeClass("scrollable"),a("#bottom-navlinks").removeClass("bottom-navlinks-small").addClass("bottom-navlinks"))});a(function(){a("a[href*=#]:not([href=#])").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var b=a(this.hash),b=b.length?b:a("[name="+this.hash.slice(1)+
"]");if(b.length)return a("html,body").animate({scrollTop:b.offset().top},1E3),!1}})});a(function(){a("a[href=#]").click(function(){event.preventDefault()})});a(function(){-1$1');
e=e.replace(/(^|[^\/])(www\.[\S]+(\b|$))/gim,'$1$2');e=e.replace(/#(\S*)/g,'#$1');e=e.replace(/\B@([\w-]+)/gm,'@$1');e='
";a("#tweets").append(e)});
h()})}});"undefined"!==typeof staticGoogleMaps&&a("#canvas-map").addClass("image-section").css("background-image","url(https://maps.googleapis.com/maps/api/staticmap?zoom=17¢er="+mobileCenterMapCoordinates+"&size="+a(window).width()+"x700&scale=2&language=en&markers=icon:"+icon+"|"+eventPlaceCoordinates+"&maptype=roadmap&style=visibility:on|lightness:40|gamma:1.1|weight:0.9&style=element:labels|visibility:off&style=feature:water|hue:0x0066ff&style=feature:road|visibility:on&style=feature:road|element:labels|saturation:-30)");
if("undefined"!==typeof googleMaps){var c,q,n,r,p,h,l=[],x=new google.maps.DirectionsService;google.maps.event.addDomListener(window,"load",function(){function m(k,f){x.route({origin:k,destination:eventPlace,travelMode:google.maps.TravelMode[f]},function(d,e){if(e==google.maps.DirectionsStatus.OK){c.setMapTypeId("zoomed");n.setMap(c);n.setDirections(d);var g=d.routes[0].legs[0];b(g.start_location);b(g.end_location);a("#distance").text(g.distance.text);a("#estimateTime").text(g.duration.text);a("#mode-select").val(f);
a("#mode").removeClass("hidden");g=a("#mode-icon use").attr("xlink:href");g=g.substring(0,g.indexOf("#")+1)+"icon-"+f.toLowerCase();a("#mode-icon use").attr("xlink:href",g)}else e!=google.maps.DirectionsStatus.OK&&"DRIVING"!=f?m(k,"DRIVING"):(g=p.getPath(),g.push(k),g.push(eventPlace),b(k),b(eventPlace),g=new google.maps.LatLngBounds,g.extend(k),g.extend(eventPlace),c.fitBounds(g),p.setMap(c),g=Math.round(google.maps.geometry.spherical.computeDistanceBetween(k,eventPlace)/1E3),a("#distance").text(g+
" km"),a("#estimateTime").text(""),a("#find-flight").removeClass("hidden"),a("#mode").addClass("hidden"))});d();a("#find-way").addClass("location-active");e(k);a("#find-way h3").removeClass("fadeInUp").addClass("fadeOutDown")}function u(){navigator.geolocation&&navigator.geolocation.getCurrentPosition(function(a){h=new google.maps.LatLng(a.coords.latitude,a.coords.longitude);m(h,"TRANSIT")})}function b(a){a=new google.maps.Marker({position:a,map:c,icon:icon});l.push(a)}function d(){for(var a=0;a<
l.length;a++)l[a].setMap(null);l=[]}function v(a){var b=c.getZoom(),d=Math.abs(a-b),e=a>b?1:-1;for(a=0;aa(window).width()&&(f.center=mobileCenterMap);"logistics"==googleMaps&&(f.zoom=5,f.zoomControl=!0);c=new google.maps.Map(document.getElementById("canvas-map"),
f);var t=new google.maps.Marker({position:eventPlace,animation:google.maps.Animation.DROP,icon:icon,map:c});l.push(t);var f=new google.maps.StyledMapType([{stylers:[{lightness:40},{visibility:"on"},{gamma:.9},{weight:.4}]},{elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"water",stylers:[{color:"#5dc7ff"}]},{featureType:"road",stylers:[{visibility:"off"}]}],{name:"Default Style"}),w=new google.maps.StyledMapType([{stylers:[{lightness:40},{visibility:"on"},{gamma:1.1},{weight:.9}]},
{elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"water",stylers:[{color:"#5dc7ff"}]},{featureType:"road",stylers:[{visibility:"on"}]},{featureType:"road",elementType:"labels",stylers:[{saturation:-30}]}],{name:"Zoomed Style"});c.mapTypes.set("default",f);c.mapTypes.set("zoomed",w);"logistics"===googleMaps?(c.setMapTypeId("default"),f=document.getElementById("location-input"),q=new google.maps.places.Autocomplete(f),google.maps.event.addListener(q,"place_changed",function(){t.setVisible(!1);
var a=q.getPlace();if("undefined"!=a.geometry&&a.geometry){var b="";a.address_components&&(b=[a.address_components[0]&&a.address_components[0].short_name||"",a.address_components[1]&&a.address_components[1].short_name||"",a.address_components[2]&&a.address_components[2].short_name||""].join(" "));r.geocode({address:b},function(a,b){b==google.maps.GeocoderStatus.OK?(h=a[0].geometry.location,m(h,"TRANSIT")):alert("Geocode was not successful for the following reason: "+b)})}})):c.setMapTypeId("zoomed");
a("#mode-select").change(function(){var b=a(this).val();m(h,b)});a("#direction-locate").click(u);a("#direction-cancel").click(function(){a("#find-way").removeClass("location-active");a("#location-input").val("");a("#find-flight").addClass("hidden");d();n.setMap(null);p.setMap(null);c.setMapTypeId("default");c.panTo(eventPlace);768>a(window).width()?c.setCenter(mobileCenterMap):c.setCenter(centerMap);b(eventPlace);v(5);a("#find-way h3").removeClass("fadeOutDown").addClass("fadeInUp")});"undefined"!==
typeof autoDirectionEnabled&&1==autoDirectionEnabled&&u()})}})(jQuery);