title: jquery fancybox close errors
body: <p>Have the following in an fancybox ajax call</p>
  
  <pre><code>               $.ajax({
                      type: 'POST',
                      url: 'sendmesse.php',
                      data: $("#messform").serialize(),
                      success: function(data) {
                          if(data == "true") {
                              $("#messform").fadeOut("fast", function(){
                                  $(this).before("&lt;strong&gt;Success! Your feedback has been sent, thanks :)&lt;/strong&gt;");
                                  setTimeout($.fancybox.close(), 1000);
                                  // $('.fancybox').close();
                                  // $.fancybox.close();
  
                              });
                          }
                      }
                  });
  </code></pre>
  
  <p>all works fine appart from the closing, tried various variations without sucess.
  The timeout above gives me 
      <code>Error: useless setTimeout call (missing quotes around argument?)</code></p>
  
  <p>so i tried both 
  <code>setTimeout('$.fancybox.close()', 1000);</code>
  and
  <code>setTimeout("$.fancybox.close()", 1000);</code>
  to which i get the following error <code>TypeError: $ is undefined</code></p>
  
  <p>...help !</p>