you are not using addEvent properly
addEvent(function, delay, functionArguments)
im assuming you want to call function "colore", with 0 delay, and use cid
just use colore(cid) instead of addEvent then
but i think the onLogout script cant see colore function (either it doesnt exist, or it is local somewhere else so it cant be used), so where is it?