array.length == not working
<p>So I have a feeling I'm having a typeOf problem, but I don't know how to get around it.  The if statement is always false, even when the console traces the same numbers (6 in my case).</p>

<pre><code>var newNum = $(thumb).index();
var allSlides = activeSlide.parent().children();
if (newNum == allSlides.length) { ...
</code></pre>
