title: Jquery - fancybox and callback
body: <p>I have problem with fancybox.<br>
  I want to write a function that will run when the fancybox opened. How and when to call the function?</p>
  
  <p>Example:</p>
  
  <pre><code>function myFunc() {
      alert("Opened!");
  }
  
  $('.content a').fancybox({ 
      'hideOnContentClick': false ,
      'callBackOnShow': myFunc(), // This not working! It call function when page is loaded
      'frameWidth': 920,
      'frameHeight': 530
  });
  </code></pre>