Get coordinates of image within a box
<p>I need to grab the following coordinates topX, topY, bottomX, bottomY, as they represent a box around a source image.  They are equal to:</p>

<p>topX = X coordinate at top left corner on source image<br>
topY = Y Coordinate at top left corner on source image<br>
bottomX = X coordinate at bottom right corner on source image<br>
bottomY = Y coordinate at bottom right corner on source image</p>

<p>Here is a sample plugin that calculates these values.  The source image width = 1024px and the height = 750px:</p>

<p><a href="http://thindery.com/jsfiddle/crop_move.html" rel="nofollow">http://thindery.com/jsfiddle/crop_move.html</a></p>

<p>However, I have a new plugin that does more functionality than the above plugin, but I can't figure out how to get these 4 variables I need.</p>

<p>here is the jsfiddle <a href="http://jsfiddle.net/thindery/cv96e/" rel="nofollow">http://jsfiddle.net/thindery/cv96e/</a></p>

<p>i tried to create my own <code>boxedCoords()</code>, based on how the original plugin calculated the values.  However i'm still new to jQuery and I can't get it to work. </p>

<p>anybody have an idea how I can get these 4 variables?</p>
