code: function calculateOffsetLeft(obj)
  {
  	var curleft = 0;
  	if (obj.offsetParent) {
  		curleft = obj.offsetLeft
  		while (obj = obj.offsetParent) 
  			curleft += obj.offsetLeft;
  	} else if (obj.x)
  		curleft += obj.x;
  	return curleft;
  }
docs: /*
  This function calculates the absolute 'left' value for a html node