Creating a conditional message on a log off popup

How can I create two messages, one of which will display when the person logs off- based on who was logged in. Example: admin logs off: Thanks for being part of our Artist's Alley!; User logs off: Thanks for your support! I do have a popup that I was hoping to use, but I don't know how to have it set up to conditionally respond to the user role.