JQuery-Fixed-Header-Plugin is a project mainly written in ..., it's free.
Allow a header to be fixed in the layout
$('.navigation').fixedHeader();