Hi ARI Soft,
Although script fragment you have recommended works great on pages that use the lightbox, it also seems to be messing up behavior for generic anchor links.
See
www.estherjansen.com/fotos/#ib-toc-anchor-2 , for example (or go to the page without the anchor, and click on a link in the table of contents).
Here, the browser first correctly scrolls down to the anchor further up on the page, but then goes back to the previous page.
How can the script you provided be modified so that it doesn't interfere with other anchor links?
Thank you!