text: var cbpFixedScrollLayout=(function(){var config={$sections:$('#cbp-fbscroller > section'),$navlinks:$('#cbp-fbscroller > nav:first > a'),currentLink:0,$body:$('html, body'),animspeed:650,animeasing:'easeInOutExpo'};function init(){config.$navlinks.on('click',function(){scrollAnim(config.$sections.eq($(this).index()).offset().top);return false;});config.$sections.waypoint(function(direction){if(direction==='down'){changeNav($(this));}},{offset:'30%'}).waypoint(function(direction){if(direction==='up'){changeNav($(this));}},{offset:'-30%'});$(window).on('debouncedresize',function(){scrollAnim(config.$sections.eq(config.currentLink).offset().top);});}
  function changeNav($section){config.$navlinks.eq(config.currentLink).removeClass('cbp-fbcurrent');config.currentLink=$section.index('section');config.$navlinks.eq(config.currentLink).addClass('cbp-fbcurrent');}
  function scrollAnim(top){config.$body.stop().animate({scrollTop:top},config.animspeed,config.animeasing);}
  return{init:init};})();