Topic: multiple gallery.xml support within one html

if have a lot of picturs all within one image-directory and I am using different galleries and differnt html-files for presenting this pictures and I have integrated simplerviewer-pro in a wrapper-window of my content-management-system (joomla). it works fine but the problem is, that i have to define e separate html-file for each gallery.

my idea:
i will use one html-file which will be called with the "gallery_name.xml" as a parameter.
e.g. index.html?gallery="gallery_name.xml"

my question:
is there an example for a index.html available, which uses the xml-file-name as a parameter and starts viewer.swf with this xml-gallery ?