If you want the script at that site, then take it. It's JavaScript so the full source is there and it looks like they too took it from somewhere else. (Judging by the copyright notice in the source code)
You'd just have to set up your server-side code to write out the correct filenames (and number of files to animate) at the beginning of the script to make it work.
Btw, the ANIS approach is a Java applet, not JavaScript, which I pointed out to you in this post:
http://www.programmingtalk.com/showthread.php?t=19983 so ask in the other forum about that please.