var oEmoticons = new Array ( '(ap)', '(a)', ':-@', ':@', '(au)', '8o|', '(brb)', '(b)', '(^)', '(bah)', '(||)', '(z)', '(U)', '(u)', '(p)', '(@)', '(ci)', '(o)', '(c)', '(co)', ':-S', ':s', ':\'(', ':|', ':-|', ':|', ':-#', '(&)', '(e)', ':$', '8-)', '(~)', '(yn)', ':-P', '(g)', '(x)', '(nah)', '(%)', ':-)', ':)', '(h5)', '(h)', ':^)', '*help', '*red+u', '(ip)', '({)', '(i)', '(li)', '(d)', '(mp)', '(mo)', '(m)', '8-|', '-8', ':-D', ':d', '<:o)', '(pi)', '(pl)', '(\'.\')', '(l)', '(k)', '(f)', '(})', ':-(', ':(', '^o)', ':-*', '(s)', '|-)', ':-)', ':)', '(sn)', '(so)', '(*)', ':-P', ':P', '(st)', '(#)', ':o', ':-O', '(t)', '*-)', '(n)', '(y)', '(tu)', '(um)', ':-[', ':[', '(w)', ';-)', ';)', '(xx)' ); var oEmoticons2 = new Array ( '(​ap)', '(​a)', ':​-@', ':​@', '(​​​​au)', '8​o|', '(​brb)', '(​b)', '(​^)', '(​bah)', '(​||)', '(​z)', '(​U)', '(​u)', '(​p)', '(​@)', '(​ci)', '(​o)', '(​c)', '(​co)', ':​-S', ':​s', ':​\'(', ':​|', ':​-|', ':​|', ':​-#', '(​&)', '(​e)', ':​$', '8​-)', '(​~)', '(​yn)', ':​-P', '(​g)', '(​x)', '(​nah)', '(​%)', ':​-)', ':​)', '(​h5)', '(​h)', ':​^)', '*​help', '*​red+u', '(​ip)', '(​{)', '(​i)', '(​li)', '(​d)', '(​mp)', '(​mo)', '(​m)', '8​-|', '(​8)', ':​-D', ':​d', '<​:o)', '(​pi)', '(​pl)', '(​\'.\')', '(​l)', '(​k)', '(​f)', '(​})', ':​-(', ':​(', '^​o)', ':​-*', '(​s)', '|​-)', ':​-)', ':​)', '(​sn)', '(​so)', '(​*)', ':-​P', ':​P', '(​st)', '(​#)', ':​o', ':​-O', '(​t)', '*​-)', '(​n)', '(​y)', '(​tu)', '(​um)', ':​-[', ':​[', '(​w)', ';​-)', ';​)', '(​xx)' ); function OnEvent_ChatWndSendMessage ( oChatWnd , sMessage ){ for ( var oEmoticon in oEmoticons ) { sMessage = sMessage.replace ( oEmoticons[oEmoticon] , oEmoticons2[oEmoticon] ); } return sMessage; }