Get bottom and right position of an element
<p>I'm trying to get the position of an element within the window like so:</p>

<pre><code>var link = $(element);

var offset = link.offset();
var top = offset.top;
var left = offset.left;
var bottom = $(window).height() - link.height();
bottom = offset.top - bottom;
var right = $(window).width() - link.width();
right = offset.left - right;
</code></pre>

<p>However the bottom and right have <code>-</code> in front of them... Why is this? as the numbers are correct just they should NOT be minus.</p>
