Lightbox2 hiding or disabling flash when it loads

I recently had an issue with flash widgets, particularly the dynamic rendering module, being disabled when the lightbox launched/opened. I originally thought that this was an attribute of javascript and flash incompatibility or a layering issue (which is usually the case).

Upon clicking a thumbnail, the lightbox transition would begin and immediately the flash would disappear or be hidden.

After much searching, I discovered that this is actually feature or function of lightbox2. Lightbox2 intentionally (for whatever reason) is setup to disable flash on the page as it opens. Thankfully, although finding the solution wasn't easy, implementing it is - read on.

To allow your flash and swf files to stay functioning when the lightbox opens you will need to find this snippet (around line 260) in your lightbox.js file (inside of the lightbox module):

// Replaces hideSelectBoxes() and hideFlash() calls in original lightbox2.
    Lightbox.toggleSelectsFlash('hide');

Change 'hide' to 'show' and all will be right with the world again.

// Replaces hideSelectBoxes() and hideFlash() calls in original lightbox2.
    Lightbox.toggleSelectsFlash('show');