code:
function OnEvent_ContactStatusChange(Email,NewStatus) {
if(NewStatus == 6) {
var contact = Contacts.GetContact(Email);
MsgPlus.DisplayToastContact("Idle Alert",contact.Name,"Has gone idle.");
}
}
Something like that should do it for you. Should work, but can't really test it out right now.