title: How to call a function when shadowbox finished to open
body: <p>i need to call a function when shadowbox is opened and displayed in my page.
  I try this:</p>
  
  <pre><code>Shadowbox.open({
      content:    contentD,
      player:     "html",
      title:      "Pubblicazione annunci in corso...",
      height:     350,
      width:      350,
      options: { 
              modal:   true,
              onOpen: myOpen
      }
  });
  
  function myOpen(){
     alert('ok');
  }
  </code></pre>
  
  <p>My problem is that <code>alert('ok')</code> is shown before shadowbox is displayed, what can i do? can someone help me? </p>