/*!
 * jQuery.bounds
 * author: Andrew Powell
 */
$.fn.bounds = function() 
	{
		var e = this[0], t = this;
		if(!e){
			return;
		}
		
		var offset = t.offset(),
			pos = {
				width: e.offsetWidth,
				height: e.offsetHeight,
				left: offset.left,
				top: offset.top
			};

		$.extend(pos, {
			right: (pos.left + pos.width),
			bottom: (pos.top + pos.height),
			inner: {width: t.width(), height: t.height()}
		});

		$.extend(pos, {toString: function(){
			var t = this;
			return ' width: ' + t.width + ' height: ' + 'top: ' + t.top + ' left: ' + t.left + t.height + ' right: ' + t.right + ' bottom: ' + t.bottom;
		}});

		return pos;
	};

