I actually understand that part, but I think in this script the onClick is both..maybe going by this:
...
I still think you're confused. Drupal settings is jQuery and AFAIK it has nothing to do with this ImageFlow tool you mention. I do not think you can mix them together.
HTH