Have different menus for both logged in and logged out users.

How do you create a different menu for logged in and logged out users? I want to show the register page for logged out users and hide it for logged in users.