title: Do something if position is less than X. Jquery
body: <pre><code>$("#rightControl").click(function(){
      $("#thumb_menu").animate({"left": "-=520px"}, "slow");
      var pos = $('#thumb_menu').position();
      if(pos.left &lt; 0) { 
          $('#header')
              .prepend('&lt;span class="control" id="leftControl"&gt;Move left&lt;/span&gt;')
  }
  });
  </code></pre>
  
  <p>Clicking <code>#rightControl</code> once moves <code>#thumb_menu</code> to -450px left so the <code>if</code> should run but I cant seem to get this working.</p>
  
  <p>Where am I going wrong?</p>