I have an element (a nav bar) on my website that has fixed positioning. How can I make it be fixed only up to a certain point?
The url: http://www.peresidences.com/index.php
I want the nav bar to be fixed positioning only until it reaches under the picture, and then it should stay where it is, and not come down further.
How can I do that???

thanks, I did find that, and I followed that script, but I came up with an issue:
The nav bar now scrolls until a certain point, like i wanted it to, but instead of staying put when i tell it to stop, it jumps to the bottom of the screen.