GRAPH - fix problems with calling fancybox() on PDF files