Javascript navigation effects
First of all, having scroll handlers is not the best idea. Usually it kills performance.
If you have no choise - use debounce-like function within - in 99% you do not need explict calls on every move.
Don't use $('smth') within your handler. Save them to variables somewhere before. Do not look for them in your DOM tree on every scroll event.