jQuery(function($) {

var nav    = $('#nav-con'),
    offset = nav.offset();

$(window).scroll(function () {
  if($(window).scrollTop() > offset.top - 87) {
    nav.addClass('fixed');
  } else {
    nav.removeClass('fixed');
  }
});

});
