codice:
$("a#inline").fancybox({
      hideOnContentClick: true,
      width: 800,
      height: 800,
      type: 'iframe',
      afterClose: function () {
        $.fancybox($('#zoom'), { 
          hideOnContentClick: true,
          width: 800,
          height: 800,
          type: 'iframe' 
        });
    }
  });

  link
 see page