$(function(){$("[data-toggle='tooltip']").tooltip()}),$(document).ready(function(){$("img").not("#avatar_pic").each(function(){var a=$(this),e=a.attr("alt"),s=a.parent("a");if(s.size()<1){var i=this.getAttribute("src"),o=i.lastIndexOf("?");-1!=o&&(i=i.substring(0,o)),s=a.wrap('<a href="'+i+'"></a>').parent("a")}s.attr("data-fancybox","images"),e&&s.attr("data-caption",e)}),$().fancybox({selector:'[data-fancybox="images"]',thumbs:!1,hash:!0,loop:!1,fullScreen:!1,slideShow:!1,protect:!0})}),$(document).ready(function(){$("table").wrap("<div class='table-responsive'></div>"),$("table").addClass("table")}),$(document).ready(function(){$('iframe[src*="youtube.com"]').wrap('<div class="embed-responsive embed-responsive-16by9"></div>'),$('iframe[src*="youtube.com"]').addClass("embed-responsive-item"),$('iframe[src*="vimeo.com"]').wrap('<div class="embed-responsive embed-responsive-16by9"></div>'),$('iframe[src*="vimeo.com"]').addClass("embed-responsive-item")}),jQuery(document).ready(function(a){if(a(window).width()>1170){var e=a(".navbar-custom").height();a(window).on("scroll",{previousTop:0},function(){var s=a(window).scrollTop();s<this.previousTop?s>0&&a(".navbar-custom").hasClass("is-fixed")?a(".navbar-custom").addClass("is-visible"):a(".navbar-custom").removeClass("is-visible is-fixed"):(a(".navbar-custom").removeClass("is-visible"),s>e&&!a(".navbar-custom").hasClass("is-fixed")&&a(".navbar-custom").addClass("is-fixed")),this.previousTop=s})}});