Affixing navbars using bootstrap. Start at http://twitter.github.com/bootstrap/javascript.html#affix

Add a .myelement.affix {top: 50px;} style to set where the nav should stop at.