Using categories on navigation bar instead of pages

If you are using the nav menus you can just add specific categories from your administration panel in Apperence->menus. If you don’t see the categories box open “screen options” and check them to display.
If you want dinamicly add them you will need to write a plugin.