jQuery(document).ready(function(e){var h=e("#intro-background"),b=h.height(),g=0.3,a=1;var d=1170;f();e(window).on("resize",function(){f()});function f(){if(e(window).width()>=d){e(window).on("scroll",function(){window.requestAnimationFrame(c)})}else{e(window).off("scroll")}}function c(){var i=(e(window).scrollTop()/b).toFixed(5),j=1-i*g;if(e(window).scrollTop()<b){h.css({"-moz-transform":"scale("+j+") translateZ(0)","-webkit-transform":"scale("+j+") translateZ(0)","-ms-transform":"scale("+j+") translateZ(0)","-o-transform":"scale("+j+") translateZ(0)",transform:"scale("+j+") translateZ(0)",opacity:1-i*a})}}e(".main-nav").on("click",function(i){if(e(i.target).is(".main-nav")){e(this).children("ul").toggleClass("is-visible")}})});