add: sibling = _('contacts', {role: 'online'}).nextSibling; else if(availability == 'available' && show == 'chat') 
context: function _reposition(contact) {    var availability = contact.getAttribute('availability');    var show = contact.getAttribute('show');    _('contacts').removeChild(contact);    contact.style.opacity = 0;    var sibling;    if(contact.getAttribute('open') == 'true')        sibling = _('contacts', {role: 'open'}).nextSibling;    else if(availability == 'available' && show == '')        sibling = _('contacts', {role: 'online'}).nextSibling;    else if(availability == 'available' && show == 'away')        sibling = _('contacts', {role: 'away'}).nextSibling;    else if(availability == 'available' && show == 'xa')        sibling = _('contacts', {role: 'away'}).nextSibling;    else if(availability == 'available' && show == 'dnd')        sibling = _('contacts', {role: 'dnd'}).nextSibling;    else        sibling = _('contacts', {role: 'offline'}).nextSibling;    while(sibling &&          sibling.getAttribute('role') == 'contact' &&          sibling.getElementsByAttribute('role', 'name')[0].getAttribute('value').toLowerCase() <           contact.getElementsByAttribute('role', 'name')[0].getAttribute('value').toLowerCase())        sibling = sibling.nextSibling;        if(!sibling)        _('contacts').appendChild(contact);    else        _('contacts').insertBefore(contact, sibling);        fadeIn(contact);}
meta: 1705	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1705/0197cc708291c9aa289d777bc84935c4bf3920b9/contacts.js/clean/chrome/content/contacts.js