It seems a shame to include the navigation bar, but not the code to handle selecting the active link, since it is a common task.  (A question on how to do this came up recently on the mailing list)