<@ for $atom in $attr split_by ', ' @>
<@ if ['aim', 'bonjour', 'gadu-gadu', 'icq', 'sametime', 'irc', 'meanwhile', 'mrim', 'msn', 'mxit', 'myspace', 'netsoul', 'novell', 'qq', 'rss', 'silc', 'simple', 'skype', 'sms', 'twitter', 'vkontakte','winpopup', 'yahoo', 'xmpp', 'zephyr'] contains $atom @>
<@ if $atom as lowercase contain 'aim' @>
<@ elseif $atom as lowercase contain 'bonjour' @>
<@ elseif $atom as lowercase contain 'gadu-gadu' @>
<@ elseif $atom as lowercase contain 'icq' @>
<@ elseif $atom as lowercase contain 'sametime' @>
<@ elseif $atom as lowercase contain 'irc' @>
<@ elseif $atom as lowercase contain 'meanwhile' @>
<@ elseif $atom as lowercase contain 'mrim' @>
<@ elseif $atom as lowercase contain 'msn' @>
<@ elseif $atom as lowercase contain 'mxit' @>
<@ elseif $atom as lowercase contain 'myspace' @>
<@ elseif $atom as lowercase contain 'netsoul' @>
<@ elseif $atom as lowercase contain 'novell' @>
<@ elseif $atom as lowercase contain 'qq' @>
<@ elseif $atom as lowercase contain 'rss' @>
<@ elseif $atom as lowercase contain 'silc' @>
<@ elseif $atom as lowercase contain 'simple' @>
<@ elseif $atom as lowercase contain 'skype' @>
<@ elseif $atom as lowercase contain 'sms' @>
<@ elseif $atom as lowercase contain 'twitter' @>
<@ elseif $atom as lowercase contain 'vkontakte' @>
<@ elseif $atom as lowercase contain 'winpopup' @>
<@ elseif $atom as lowercase contain 'xmpp' @>
<@ elseif $atom as lowercase contain 'yahoo' @>
<@ elseif $atom as lowercase contain 'zephyr' @>
<@ endif @>
<@ else @>
<@ $atom @>
<@ endif @>
<@ endfor @>
<@ elseif $loop.index == 5 @>
<@ for $atom in $attr split_by ', ' @> <@ $atom
<@ if $loop.revindex > 1 @> |
<@ endif @>
<@ endfor @>