/**
*	@name realOffset
*	@version 1.0.0
*	@description Returns the offset coordinates of the selected element relative to document bounds
*	@author Trey Shugart
*	@date 2008-02-18
*	@copyright Copyright 2008 Trey Shugart
*	@license GNU LGPL (http://www.gnu.org/licenses/lgpl.html)
*/
(function($) {
	$.fn.realOffset = function() {
		var $$ = this.get(0);
		var x = y= 0;
		if ($$.offsetParent) {
			do {
				x += $$.offsetLeft;
				y += $$.offsetTop;
			} while ($$ = $$.offsetParent);
		}
		return {left: x, top: y};
	};
})(jQuery);