"use strict";!function(r,t){if("function"==typeof fitVids&&r("body").fitVids({ignore:".vimeo-video, .youtube-simple-wrap iframe, .iframe-video.for-btn iframe, .post-media.video-container iframe"}),"function"!=typeof e){var e,i=t.addEventListener;(e=function(e){t.innerWidth,t.innerHeight,e&&(i("load",e,!0),i("resize",e,!0),i("orientationchange",e,!1))})(function(){e()})}r(t).on("load",function(){r(".rela-preloader").length&&r(".rela-preloader").fadeOut(400),function(e,i){if(!e)return;var o,t,n;r(e).each(function(){n=r(this),t=n.data("s-hidden"),(o=(o=n.closest(i)).length?o:n.parent()).css("background-image","url("+this.src+")").addClass("s-back-switch"),t?(n.css("visibility","hidden"),n.show()):n.hide()})}(".js-bg")}),r(t).on("load resize orientationchange",function(){!function(){if(r(".rela-footer").length){var e=r(".rela-footer"),i=e.outerHeight();e.bind("heightChange",function(){r("body").css("padding-bottom",i)}),e.trigger("heightChange")}}(),r(".rela-blog--isotope").length&&r(".rela-blog--isotope").each(function(){r(this).isotope({itemSelector:".rela-blog--post",layoutMode:"masonry",masonry:{columnWidth:".rela-blog--post"}})}),r("#wpadminbar").length&&r("#wpadminbar").css("position","fixed"),function(){if(r(".rela-error--wrap").length){var e=r(".rela-footer").length?r(".rela-footer").outerHeight():0,i=r(".rela-header--wrap").length?r(".rela-header--wrap").outerHeight():0,o=r(t).height()-e-i;r(".rela-error--wrap").outerHeight(o)}}(),r(".menu-item-has-children a").focus(function(){r(this).siblings(".sub-menu").addClass("focused")}).blur(function(){r(this).siblings(".sub-menu").removeClass("focused")}),r(".sub-menu a").focus(function(){r(this).parents(".sub-menu").addClass("focused")}).blur(function(){r(this).parents(".sub-menu").removeClass("focused")})})}(jQuery,window,document);
//# sourceMappingURL=script.min.js.map
