I am using jquery fancybox and i want to hide an iframe containing a pdf file right before the fancybox pops open (which is working fine) and then beforeClose of the fancybox I want to make the iframe visible again due to a z-index issue with the pdf iframe. My issue is that the beforeClose even doesn't seem to be firing. Here is the code I placed below the images and iframe.\[code\]<script src="http://www.elevateweb.co.uk/wp-content/themes/radial/jquery.fancybox.pack.js" type="text/javascript"></script> var frame = document.getElementById('Frame'); jQuery("#zoom_08").bind("click", function (e) { e.preventDefault(); var ez = $('#zoom_08').data('elevateZoom'); $.fancybox(ez.getGalleryList()); frame.style.display = 'none'; return false; }); $.fancybox({ beforeClose: function () { frame.style.display = ''; } });\[/code\]I'm still new to Jquery so I'm not sure I understand what I'm doing wrong. Thanks in advance for any help.\[code\]<iframe id="Frame" width="680" height="1000" runat="server" />\[/code\]On Page_Load i do the following to set the iFrame's src\[code\] Frame.Attributes.Add("src", "./Files/" + Request.QueryString["certfile"].ToString());\[/code\]