function skinChanger(){$(".right-sidebar .demo-choose-skin li").on("click",function(){var i=$("body"),e=$(this),t=$(".right-sidebar .demo-choose-skin li.active").data("theme");$(".right-sidebar .demo-choose-skin li").removeClass("active"),i.removeClass("theme-"+t),e.addClass("active"),i.addClass("theme-"+e.data("theme"))})}function setSkinListHeightAndScroll(i){var e=$(window).height()-($(".navbar").innerHeight()+$(".right-sidebar .nav-tabs").outerHeight()),t=$(".demo-choose-skin");i||(t.slimScroll({destroy:!0}).height("auto"),t.parent().find(".slimScrollBar, .slimScrollRail").remove()),t.slimscroll({height:e+"px",color:"rgba(0,0,0,0.5)",size:"6px",alwaysVisible:!1,borderRadius:"0",railBorderRadius:"0"})}function setSettingListHeightAndScroll(i){var e=$(window).height()-($(".navbar").innerHeight()+$(".right-sidebar .nav-tabs").outerHeight()),t=$(".right-sidebar .demo-settings");i||(t.slimScroll({destroy:!0}).height("auto"),t.parent().find(".slimScrollBar, .slimScrollRail").remove()),t.slimscroll({height:e+"px",color:"rgba(0,0,0,0.5)",size:"6px",alwaysVisible:!1,borderRadius:"0",railBorderRadius:"0"})}function activateNotificationAndTasksScroll(){$(".navbar-right .dropdown-menu .body .menu").slimscroll({height:"254px",color:"rgba(0,0,0,0.5)",size:"4px",alwaysVisible:!1,borderRadius:"0",railBorderRadius:"0"})}$(function(){skinChanger(),activateNotificationAndTasksScroll(),setSkinListHeightAndScroll(!0),setSettingListHeightAndScroll(!0),$(window).resize(function(){setSkinListHeightAndScroll(!1),setSettingListHeightAndScroll(!1)})});