(function($)
{
	jQuery.fn.aPosition = function() {
		var thisParent = this.parent(),
		
			offsetChild = this.offset(),
			offsetParent = thisParent.offset();
			
		return {
			left: offsetChild.left - offsetParent.left,
			top: offsetChild.top - offsetParent.top
		}
	}
})(jQuery);
