!function(o){var t={init:function(){this.aiosFramePopUp(),this.aiosImagePopUp(),this.aiosContentPopup(),this.aios_scroll_top()},aiosFramePopUp:function(){o(".aios-frame-popup, .aios-video-popup").aiosPopup({disableOn:700,type:"iframe",mainClass:"aiosp-fade",removalDelay:160,preloader:!1,fixedBgPos:!0,fixedContentPos:!0,callbacks:{open:function(){$data=this.st.el.data("popup"),$dataSrc=this.currItem.src,"mp4"===$data&&(this.currTemplate.iframe.remove(),o(".aiosp-content").html('
'))}}})},aiosImagePopUp:function(){o(".aios-image-popup").aiosPopup({type:"image",closeOnContentClick:!0,mainClass:"aiosp-img-mobile",image:{verticalFit:!0}})},aiosContentPopup:function(){o(".aios-content-popup").aiosPopup({type:"inline",preloader:!1,focus:"#username",modal:!0,callbacks:{open:function(){var t=o(".aiosp-content");t.addClass("aios-popup-body"),o(".aios-popup-body").append(''),t.parent().append('
'),o(".outside-content").on("click",(function(){o(this).aiosPopup("close")}))}}})},aios_scroll_top:function(){var t=jQuery("html, body");jQuery(document).on("click",".aios-scroll-to",(function(e){var s=o(this).attr("href"),i=null==o(this).data("offset")?0:o(this).data("offset"),a=null==o(this).data("speed")?1500:o(this).data("speed");return t.bind("scroll mousedown DOMMouseScroll mousewheel keyup",(function(o){(o.which>0||"mousedown"===o.type||"mousewheel"===o.type)&&t.stop().unbind("scroll mousedown DOMMouseScroll mousewheel keyup")})),o("html, body").animate({scrollTop:o(s).offset().top-i},a),!1}))}};jQuery(document).ready((function(){t.init()}))}(jQuery);