Are you sure you have something like this in your captions div (I guess you want a caption control?):
`close
previous
next`
if that's the case and it still doesnt work maybe you could try to give your captions a common id like "the-caption" and then add `hs.captionId = 'the-caption';` where you have already the hs.graphicsDir and place the above code I mentioned in the first place in a div like ` `
You could then just place an individual image caption with ` <?php printImageDesc(true); ?>` which would be probably very useful because you already use zenphoto to manage your descriptions
Sorry I'm no expert on that it's just what I did