';}}}})().init({});var animationTime = {init: function() {var time = window.innerWidth * 30 / 2500;for(var elem = document.querySelectorAll('.ogmo'), x = 0, mx = elem.length; x < mx; ++x === !0) {elem[x].style.animationDuration = time + 's';}}};var windowScrollAnim = {init: function(scrollTo, firstScroll) {if ( scrollTo < 0) { scrollTo = 0;}if ( scrollTo > document.querySelectorAll('html')[0].scrollTopMax) { scrollTo = document.querySelectorAll('html')[0].scrollTopMax;}if (true === firstScroll) {this.scrollSpeed = 0;if (window.scrollY < scrollTo) {this.speedIncrementor = .3;} else if (window.scrollY > scrollTo) {this.speedIncrementor = -.3;}};this.scrollSpeed += this.speedIncrementor;window.scroll(0, window.scrollY + Math.floor(this.scrollSpeed));if ((window.scrollY >= scrollTo && this.speedIncrementor > 0) || (window.scrollY <= scrollTo && this.speedIncrementor < 0)) {window.scroll(0, scrollTo);return;}var that = this;setTimeout(function() {that.init(arguments[0], false);}, 5, scrollTo);}};for(var elem = document.querySelectorAll('.main-nav a'), x = 0, mx = elem.length; x < mx; ++x === !0) {elem[x].onclick = function() {windowScrollAnim.init(document.querySelectorAll(this.getAttribute('href'))[0].offsetTop - 100, true);return false;}}function mainImage() {document.querySelectorAll('.main-header .image img')[0].style.marginTop = -(document.querySelectorAll('.main-header .image img')[0].offsetHeight / 2) + 'px';}document.querySelectorAll('.main-header .image img')[0].onload = function() {mainImage();};window.onresize = function() {animationTime.init();mainImage();};document.querySelectorAll('.main-header')[0].style.height = window.innerHeight + 'px';window.onresize();