Javascript height issue
<p>I'm using javascript to add either the class vertical or horizontal to all image articles on a page. I'm having the problem that the code is working, but it's ALWAYS adding .horizontal to the article class, even photos that should have .vertical (posts that contain images larger than 450px high). Any help would be appreciated.</p>

<pre><code>$('img.photo').each(function(){
            if($(this).height() &gt; 450) { 
                $(this).closest('article').addClass('vertical'); 
            } else {
                $(this).closest('article').addClass('horizontal'); 
            }
        });
</code></pre>

<p>Example: <a href="http://blog.jamescharless.com/" rel="nofollow">http://blog.jamescharless.com/</a> 
The first photo of the boy is way more than 450px tall but it doesn't have the class of vertical, instead it has horizontal.</p>
