Fancy box gets hidden in frames having a pdf

Fancy box gets hidden in frames having a pdf

I am using frames which has a dynamic PDF showing in it. There is a link on the left menu frame that opens up a fancybox. Looks like because of the pdf the fancybox gets hidden behind the pdf and is not visible. Is there a way to bring the fancybox completely to the front