@kuroi,
I solved the incompatibility issue of that javascript by putting it in an html page and linking to it with an iframe.
I know it's not in a sidebox now, it is in the main page, but even there, it was breaking the site without the iframe, possibly because of the other javascript running on that page.
I know it is a bad script, there are lots of things that I need to polish, but, what the heck, it works for now.
I think this iframe concept could solve a lot of problems, I'll try to work in putting a slideshow in there, maybe a parallel development to what misty is doing.