I am not exactly sure which one your after, but to give a bit of help, I did a quick search and it could be any of the these files:

templates/your template/js/jquery.fancybox.source.js...