jQuery outside events plugin not funcitoning properly
<p>I have downloaded the jQuery outside events plugin as Sarfraz suggested, which seems really great, except, I cannot appear to get it functioning correctly.</p>

<p>Here is my code that I'm trying to call it with:</p>

<pre><code>$("#player").bind( "clickoutside", function(event){
  if($('#player').is(':visible')) {
    $('#player').slideToggle(500);
  }
}); 
</code></pre>

<p>I don't understand why this isn't working.</p>

<p>I think it may have a problem with this jQuery snippet form my other jQuery file:</p>

<pre><code>$('#text_music').click(function() {
  $('#jplayer').slideToggle(500);
});
</code></pre>

<p>But I'm not entirely sure.</p>

<p>In this context, <code>#player</code> is the <code>&lt;div&gt;</code> which contains my jPlayer plugin code, and <code>#text_music</code> is just the image which has text reading <code>Music</code>, which, upon click, should slideToggle the <code>#player</code> <code>&lt;div&gt;</code>.</p>

<p>Any ideas as to why this isn't working?</p>

<p>You can see the implementation (<i>attempted</i> implementation, rather) at <a href="http://www.marioplanet.com" rel="nofollow">http://www.marioplanet.com</a></p>

<p>Thanks guys!</p>
