Multiple Galleries with Captions
2. Obtain the Script
This code contains the gallery object definition which we will use to create all our photo/image galleries (complete with captions).
You next attach the script into your web page that you wish to display your slideshows on by adding the following code into the end of the body section of your page (immediately before the *lt;/body> tag. We'll add a second script tag as well which will contain the definition of our galleries for this page. By placing the code in separate scripts we can reuse the gallery script for different galleries on different pages without having multiple copies of the code.
We also need to place div tag(s) in the body of the page where you want the gallery or galleries to appear and give each an id that the script can use to identify where to put each gallery. You can use whatever ids you like as long as they are all unique.
With that in place all that remains is to define the galleries that we want to appear in each of those divs.