// Instant Messenger // im_sincro.js function Sincro() { this.wait = 15000; // 15 segundos this.count = 0; // para atualização da lista } Sincro.prototype.synchronize = function() { if ( this.count++ < 4 ) IM.getMessage(); else IM.UpdateContacts(); setTimeout("Sincro.synchronize()", this.wait); } // Build Object var Sincro = new Sincro(); messages_timeout = setTimeout("Sincro.synchronize()",Sincro.wait);