jquery orangeBox on close method doesnt work
<p>I am using <a href="http://orangebox.davidpaulhamilton.net/api.html" rel="nofollow">orangeBox lightbox</a> and have a video that is loading automatically, on page load - that works fine.</p>

<p>What I would like to happen, is that when the video (in orangeBox) is closed - that something else will happen on the page, but I can't get the on-close method to work.<br>
For some reason the method fires on page load and when I try bind it to the ob window - nothing at all fires.</p>

<p>Could someone please take a look at what I have - maybe i have set it up wrong?</p>

<p>Here is my code:</p>

<pre><code>$(function(){
    function autoOpen(){
        $('#autoOpen').orangeBox('create');
    }

    function checkOB(){
        if ($("#ob_window").length) {alert("OB closing");}
    }

    function checkOB2(){
        alert("OB closing");
    }

    function starting(){
        alert("OB starting");
    }

    $(document).bind('oB_closing', checkOB());
    $(document).bind('oB_closed', checkOB2());

    $(document).bind('oB_init', starting());
    setTimeout(autoOpen,500); 
});
</code></pre>

<p><a href="http://jsfiddle.net/qPEPB/2/" rel="nofollow">jsFiddle live demo</a></p>

<p>Thanks!</p>
