Help understanding jQuery button enable/disable code
<p>I grabbed this code form JCarousel and just trying to understand these lines below.  I'm new to jQuery and not that great at JavaScript so I am not sure what is jQuery and which is JavaScript below</p>

<pre><code>this.buttonNext[n ? 'bind' : 'unbind'](this.options.buttonNextEvent, this.funcNext)[n ? 'removeClass' : 'addClass'](this.className('jcarousel-next-disabled')).attr('disabled', n ? false : true);
this.buttonPrev[p ? 'bind' : 'unbind'](this.options.buttonPrevEvent, this.funcPrev)[p ? 'removeClass' : 'addClass'](this.className('jcarousel-prev-disabled')).attr('disabled', p ? false : true);
</code></pre>

<p>It's setting some of the css to set state and either enabling or disabling the button that is in a  but I want to modify this once I really understand it.  I just can't make out exactly what it's doing 100%.</p>

<p>Trying to understand things such as [n ? 'bind' : 'unbind'] and just the chaining here also.  There's a lot going on in those 4 lines.</p>

<p>The code comes from this plug-in: <a href="http://sorgalla.com/projects/jcarousel/" rel="nofollow">http://sorgalla.com/projects/jcarousel/</a></p>
