Creating multiple galleries with lightbox js

anyone know how to create more then 1 image gallery with lightbox?

here’s the code im using, I a bit confused on where to place the additional folders for my separate galleries and how to modify the code. Any help would be great…

This is the javascript I typed in my header:

<script type=“text/javascript”>
function LightboxDelegate1(url,caption) {
var objLink = document.createElement(‘a’);
objLink.setAttribute(‘href’,url);
objLink.setAttribute(‘rel’,‘lightbox[iceland]’);
objLink.setAttribute(‘title’,caption);
Lightbox.prototype.start(objLink);
}
</script>

<script type=“text/javascript”>
function LightboxDelegate2(url,caption) {
var objLink = document.createElement(‘a’);
objLink.setAttribute(‘href’,url);
objLink.setAttribute(‘rel’,‘lightbox[hans]’);
objLink.setAttribute(‘title’,caption);
Lightbox.prototype.start(objLink);
}
</script>

This is the code in the flash button:

on (release) {
getURL(“javascript:LightboxDelegate1(‘billeder/iceland/_MG_0725.jpg’ , ‘Seydisfjordur’)”);
}

on (release) {
getURL(“javascript:LightboxDelegate2(‘billeder/hans/hans_01.jpg’ , ‘Hans Nielsen, dwarf’)”);
}

Strangely enough, the caption I enter in the flash file is necessary, but it is the title written in the html document that counts:

<a href=“billeder/iceland/_MG_0725.jpg” rel=“lightbox[iceland]” title=“Seyðisfjörður, Iceland”></a>
<a href=“billeder/iceland/_MG_0714.jpg” rel=“lightbox[iceland]” title=“Seyðisfjörður, Iceland”></a>

<a href=“billeder/hans/hans_01.jpg” rel=“lightbox[hans]” title=“Hans Nielsen, dværg”></a>
<a href=“billeder/hans/hans_02.jpg” rel=“lightbox[hans]” title=“Hans Nielsen, dværg”></a>
<a href=“billeder/hans/hans_03.jpg” rel=“lightbox[hans]” title=“Hans Nielsen, dværg”></a>
<a href=“billeder/hans/hans_04.jpg” rel=“lightbox[hans]” title=“Hans Nielsen, dværg”></a>

heres the site that uses the code above:

http://www.kaaresmith.dk/test.html