!function($){function e(){var e=$(window).height();window_width=$(window).width(),header_height=$("header").height(),block_height=e-header_height,block_height<350&&(block_height=350),third_block=block_height/3,content_margin=2*third_block-80,aside_height=$("aside").height()}function n(){$("section").addClass("loadIn"),$(".preloader").removeClass("loadIn")}function o(){$("body").css({"padding-top":header_height}),$(".not-home").css({"margin-top":-block_height}),$("body > section").css({height:block_height}),$(".block").css({height:block_height}),$(".inside_block h1").each(function(){block_text_center=block_height/2-[($(this).height()+37)/2],$(this).css({"margin-top":block_text_center})}),$("#internal article").css({"min-height":aside_height})}function t(){$('a[href^="'+i+'"]').not('a[href$=".jpg"], a[href$=".png"], a[href$=".gif"], a[href$=".jpeg"]').click(function(){return $("section").removeClass("loadIn"),$(".preloader").addClass("loadIn"),getHref=$(this).attr("href"),setTimeout(window.location.href=getHref,1e3),setTimeout(function(){$("section").addClass("loadIn"),$(".preloader").removeClass("loadIn")},3e3),!1}),$("a.open-search").click(function(){return $("header form").toggleClass("search-opened"),$(this).find(".fa-search").toggle(),$(this).find(".fa-close").toggle(),!1}),$(".open-menu").click(function(){return $("nav.hidden-menu").addClass("menu-opened"),!1}),$("nav.hidden-menu, .close-menu").click(function(){return $("nav.hidden-menu").removeClass("menu-opened"),!1}),$("nav.hidden-menu > div").click(function(e){e.stopPropagation()}),$(".go_to_comments").click(function(){return getAnchor=$(this).attr("href"),console.log(getAnchor),$("section").animate({scrollTop:$(getAnchor).offset().top},1500),!1}),$('a[href$=".jpg"], a[href$=".png"], a[href$=".gif"], a[href$=".jpeg"]').fancybox()}var i=document.location.origin;$(document).ready(function(){e(),o(),t()}),$(window).load(function(){n(),o()}),$(window).resize(function(){e(),o()})}(jQuery);