How to add an "I am Online" LED/Light next to user name when member is online?

I would like to improve the look of a users profile by adding the ability to show others if the user is online or offline. Online would be represented by a “Green” light, whereas offline would be represented by a “Red” light. This is similar to how vBulletin and other forums!

What do you guys think?