title: $.fancybox.close() not working
body: <p>I know that question was discussed plenty of times, but i tried all suggestions and noone didn't work. I am using fancybox with href atribute where content is loading using ajax.</p>
  
  <pre><code>$('a').fancybox(
          {
              href:'ajax/test.php',
              titleShow:false
          }); 
  </code></pre>
  
  <p>And in content i had custom close button </p>
  
  <pre><code>&lt;a href="javascript:void(1)" title="close" onclick="$.fancybox.close()"&gt;Pirkti prekes&lt;/a&gt;
  </code></pre>
  
  <p>And when i click that i got $.fancybox is undefined. </p>