code: function(element) {
      var r = { x: element.offsetLeft, y: element.offsetTop };
      if (element.offsetParent) {
        var tmp = getAbsolutePosition(element.offsetParent);
        r.x += tmp.x;
        r.y += tmp.y;
      }
      return r;
    }
docs: Returns the absolute position of an element for certain browsers.
  @param {HTMLElement} element The element to get a position
  for.
  @returns {Object} An object containing x and y as the
  absolute position of the given element.
  @memberOf module:Misc