Change button status upon login

Friends i am setting up a drop down menu for member links. I want to include a login link but want it to change to logout after they have logged in.