function getbounds(el) {
      el = $(el);
      var offset = el.offset();

      var bounds = {
        left: offset.left,
        right: offset.left + el.outerWidth(),
        top: offset.top,
        bottom: offset.top + el.outerHeight()
      }

      return bounds;
    }
Returns a bounds object with left, right, top and bottom properties for the element specified.
@param {DomNode} The DOM node to get the bounds for.