Ubivectel,
kide.insert_sesion = function(user) {
var div = document.createElement('div');
div.setAttribute('style', 'cursor:pointer');
div.setAttribute('class', user._class);
div.onclick = function() { kide.mostrar_usuario(user.id, user.name, user.rango, user.sesion, user.profile, user.img) };
div.innerHTML = user.name;
div.addEventListener('contextmenu', function(event) {
event.preventDefault();
kide.insertSmile(user.name + ', ');
}, true);
this.$('KIDE_usuarios').insertBefore(div, this.$('KIDE_usuarios').firstChild);
};