$(function(){
$(window).scroll(function() {
var top = $(document).scrollTop();
if (top < 160) $(".menu-fixed").css({top: '0', position: 'relative',});
else $(".menu-fixed").css({top: '0', position: 'fixed'});
});
});