I'm trying to incorporate a Mootools based accordion (Moo.fx2) into my own site for navigation, but
I haven't been able to extract the Javascript code from the HTML source and put it into a separate file. I thought it was just a matter of copying the code and removing the <script type="text/javascript"> and </script> but apparently I've missed something as it doesn't work.

Here's my accordion (with the Javascript in a separate file)

Another thing (and I'm not sure if this is HTML or Javascript related): what makes the "What's new" tab open when accessed for the first time? It doesn't seem obvious from the HTML code and I don't know anything about Javascript programming unfortunately.