(function(w,d,h,b,$){var header=$("header"),image=$("image"),nocontent=d.querySelector("main:empty"),map=$("map"),menu=$("menu"),navicon=$("nav").firstChild,scroll=0,caption,top;if(image){caption=image.querySelector("figcaption");image=image.firstChild;if(caption)top=parseInt(w.getComputedStyle(caption).getPropertyValue("top"));}navicon.addEventListener("click",function(){menu.dataset.open=(menu.dataset.open!=="true").toString();},0);if(nocontent)nocontent.parentNode.removeChild(nocontent);if(navicon.offsetWidth!==60||caption)w.addEventListener("scroll",function(){scroll=d.body.scrollTop||h.scrollTop||w.pageYOffset||0;console.log(scroll);header.classList[scroll>100?"add":"remove"]("scroll");if(navicon.offsetWidth!==60&&image){image.style.top=(scroll/1.25)+"px";if(caption&&scroll<=100)caption.style.top=(scroll+top)+"px";}},0);if(map){var gmap={coordinates:map.dataset.coordinates.split(","),script:d.createElement("script"),init:function(){this.script=loadjs("https://maps.googleapis.com/maps/api/js?key=AIzaSyBzKMGbywShrhLTkUvJUx082I4uZLWaewY®ion=IE");this.script.addEventListener("load",function(){this.coordinates=new google.maps.LatLng(this.coordinates[0],this.coordinates[1]);this.canvas=new google.maps.Map(map,{center:this.coordinates,mapTypeId:google.maps.MapTypeId.ROADMAP,mapTypeControl:0,styles:[{stylers:[{hue:"#005276"}]}],zoom:15});this.marker=new google.maps.Marker({map:this.canvas,position:this.coordinates});map.firstChild.classList.add("oh");map.firstChild.style.height="calc(100% - 20px)";}.bind(this),0);}};gmap.init();}function loadjs(u){var s=d.createElement("script");s.async=1;s.src=u;b.appendChild(s);return s;}})(window,document,document.documentElement,document.body,function(i){return document.getElementById(i);});