docs: function calculateOffsetTop(obj) {
  	var curtop = 0;
  	if (obj.offsetParent) {
  		curtop = obj.offsetTop
  		while (obj = obj.offsetParent) 
  			curtop += obj.offsetTop
  	} else if (obj.y)
  		curtop += obj.y;
  	return curtop;
  }