We created a page that shows videos using FancyBox via JQuery and it all works fine. We set an onclick handler on each video link. You can see the page working here: http://www.globalpartnerships.org/learn-more/videos/
(Note that the v= parameter will only work if the video id passed is one already contained on the page. The one in the example above is the first video on the page).
We tried tracing with Firebug and it showed a message of "TypeError: loading is undefined" and it shows loading.hide as the function in error. I suppose that's FancyBox's "loading" animation but I have no idea how this error comes into effect or even why.
The function CustomPageInitContent() is where all our code is that relates to FancyBox.
Any ideas or help would be greatly appreciated!