(function(){function animateSideNavigation(sideMenu){var menuItems=sideMenu.find("a");var scrollItems=menuItems.map(function(){var item=jQuery(jQuery(this).attr("href"));if(item.length){return item;}});var fromTop=jQuery(this).scrollTop()+window.innerHeight/2;var cur=scrollItems.map(function(){if(jQuery(this).offset().top'+section['data-label']+'');if(!section['data-visible']){listElement.addClass('hidden-bullet');} sideMenu.find('ul').append(listElement);});} return sideMenu;};window.mesmerizeDomReady(function(){var $=jQuery;var sideMenu=window.highlight_makeSidebarNavigation();animateSideNavigation(sideMenu);jQuery(window).scroll(function(){animateSideNavigation(sideMenu);});jQuery(window).resize(function(){animateSideNavigation(sideMenu);});sideMenu.on('click tap','li, a',function(e){e.preventDefault();e.stopPropagation();sideMenu.addClass('no-activation');var target="#",link=$(this);if(jQuery(this).is('li')){link=jQuery(this).find('a');target=link.attr('href');}else{target=link.attr('href');} link.closest('li').addClass('active').siblings().removeClass('active');jQuery([document.documentElement,document.body]).animate({scrollTop:jQuery(target).offset().top},500,'swing',function(){sideMenu.removeClass('no-activation');link.closest('li').addClass('active');});return false;});});})();