the better way is , add all your friends mail ids into address book.. . when you are chatting , open your yahoo mail , and open your address book. Now you can see glowing smile symbole if your friend is online,. if he is offline, the symbole is in dull color black/white.. . irrespective of wether they put their status in Available/Invisible.