You can make an image inside the Carousel behave like an anchor for LightBox using it's id.
In the .xml Carousel configuration file you should link each image to a javascript call that simulates the click on a specific anchor passed as parameter:
function aclick(anchor_id) {
var a = document.getElementById(anchor_id);
mainLightbox.start(a);
} The start() method of the Lightbox class let the Lightbox popup as if the user clicked on the anchor provided as parameter.
--------------------------------------------------------------------------------
Remarks:
1.As already mentioned, if you don't want to see the html lightbox anchors in your page simply put them in a hidden div (use css). This way you can make a full window Carousel work with LightBox. Remember that in this case you don't need nice thumbnails inside the anchors: even simple text will be ok.
2.For the sake of clarity: LightBox does not interact with the Carousel at all. Indeed not even the Carousel interact with LightBox, it just call a js function. The js function acts as a bridge between the Carousel and LightBox. It's up to you to give correct ids to anchors and ensure that the Carousel call the js function with a proper parameter so that everything works fine.
3.By default LightBox hides Flash objects (all objects and embed tags actually) while it shows images. It does this because otherwise objects would render over the lightboxed images. With flash objects you can avoid this: you can set the "wmode" to "opaque" (or "transparent") instead of "window" (the default). Now, in order to prevent LightBox to hide objects you have to hack the file lightbox.js: you should comment the first line of the start() method (line 205 in lightbox.js version 2.04) and the list line of the end() method (line 441 in lightbox.js version 2.04). You can download my version of lightbox.js. I hope that in future versions of LightBox there will be a way to control this behavior without tweaks.
Enjoy,
Saverio