Detect a yahoo friend online or offline...

By using this link you can find out that a yahoo friend is online or offline. If a user online and he set status invisible then you can check out the current status of that user....

http://www.yahoostatus.org/