small calculation issue
<p>I have a small problem with a javascript calculation. I have a function like this:</p>

<pre><code>$( "#main-nav li[class]" ).each(function( index ) {
     var position = $(this).offset();
     var width = $(this).width();
     var center = parseInt(position) - (parseInt(width) / 2);
     console.log("Position: " + position.left + ", width: " + width +  ", center: " + center);
});   
</code></pre>

<p>But it results in this. Anyone have an idea how the calculation isn't done?</p>

<pre><code>Position: 722, width: 83, center: NaN 
</code></pre>
