var header_height      = $('header').height() - 120,
    projects_height    = $('.projects').height(),
    about_position     = projects_height + header_height - 120,
    about_height       = $('.about').height(),
    contact_position   = about_height + projects_height + header_height - 120,
    projects_link      = $("nav li")[0],
    about_link         = $("nav li")[1],
    contact_link       = $("nav li")[2]

function pageSlide() {
  var scroll_top = $(window).scrollTop();
  if (scroll_top >= header_height && scroll_top < about_position) {
    $("nav li").removeClass('active');
    $(projects_link).addClass('active');
  }
  else if (scroll_top >= about_position && scroll_top < contact_position) {
    $("nav li").removeClass('active');
    $(about_link).addClass('active');
  }
  else if (scroll_top >= contact_position) {
    $("nav li").removeClass('active');
    $(contact_link).addClass('active');
  }
  else {
    $("nav li").removeClass('active');
  }
}

var debounce = function(func, wait, immediate) {
  var timeout;
  return function() {
    var context = this, args = arguments;
    var later = function() {
      timeout = null;
      if (!immediate) func.apply(context, args);
    };
    var callNow = immediate && !timeout;
    clearTimeout(timeout);
    timeout = setTimeout(later, wait);
    if (callNow) func.apply(context, args);
  };
}

var lazyScroll = debounce(pageSlide, 100);


$(window).scroll(lazyScroll);
@@ -12,24 +12,25 @@
 height      
+ 
 = $('header'
@@ -43,248 +43,8 @@
 ht()
- - 120,%0A    projects_height    = $('.projects').height(),%0A    about_position     = projects_height + header_height - 120,%0A    about_height       = $('.about').height(),%0A    contact_position   = about_height + projects_height + header_height
  - 1
@@ -66,24 +66,25 @@
 s_link      
+ 
 = $(%22nav li%22
@@ -108,24 +108,25 @@
 ink         
+ 
 = $(%22nav li%22
@@ -146,32 +146,33 @@
 tact_link       
+ 
 = $(%22nav li%22)%5B2%5D
@@ -192,24 +192,25 @@
 geSlide() %7B%0A
+%0A
   var scroll
@@ -239,16 +239,264 @@
 lTop();%0A
+  var projects_height     = $('.projects').height(),%0A      about_position    = projects_height + header_height - 120,%0A      about_height        = $('.about').height(),%0A      contact_position  = about_height + projects_height + header_height - 150%0A%0A
   if (sc
@@ -976,16 +976,17 @@
 ');%0A  %7D%0A
+%0A
 %7D%0A%0Avar d
@@ -1419,16 +1419,16 @@
 100);%0A%0A%0A
-
 $(window
@@ -1448,8 +1448,9 @@
 Scroll);
+%0A

Move variables for postion of sections to the function so they change with the width of the window