also... instead of having a global template for all the features of the pager, why not build a single template for each page displayed ?!... this would be easier to manipulate, and to load...
btw, chat functions are just great, don't think i'm bad, it's just that many errors only occurs because php is not written properly.
if you want someone to play with it and clean, i can do it by the week-end, and even add some functions in the game! (even add a button for arcade challenges in the chatbox, etc)