function dropdownHover(){$(window).width()>=768?$(".dropdown.first-level").hover(function(){$(".dropdown-menu",this).stop(!0,!0).fadeIn("fast"),$(this).toggleClass("open")},function(){$(".dropdown-menu",this).stop(!0,!0).fadeOut("fast"),$(this).toggleClass("open")}):$(".dropdown.first-level .dropdown-toggle").each(function(){$(this).attr("data-toggle","dropdown")})}$(document).ready(function(){dropdownHover(),$(".scroll-to-top").click(function(){return $("html, body").animate({scrollTop:0},600),!1}),$(window).scroll(function(){var a=$(window).scrollTop();a>=100?$(".scroll-to-top").addClass("active"):$(".scroll-to-top").removeClass("active")}),$(".navbar-toggle").click(function(){$("#menu").addClass("show-menu")})}),$(document).ready(function(){dropdownHover(),$(".scroll-to-down").click(function(){return $("html, body").animate({scrollTop:$("body").height()},600),!1}),$(window).scroll(function(){$(window).scrollTop();$(window).scrollTop()==$(document).height()-$(window).height()?$(".scroll-to-down").removeClass("active"):$(".scroll-to-down").addClass("active")}),$(".navbar-toggle").click(function(){$("#menu").addClass("show-menu")})}),$(window).resize(function(){dropdownHover()});