rem: var parent = Position.offsetParent(target); var delta = Position.page(parent); 
add: var delta = [0, 0]; var parent = null;   if (Element.getStyle(target,'position') == 'absolute') { parent = Position.offsetParent(target); delta = Position.page(parent); } 
context: Position.clone = function(source, target) {  var options = Object.extend({    setLeft:    true,    setTop:     true,    setWidth:   true,    setHeight:  true,    offsetTop:  0,    offsetLeft: 0  }, arguments[2] || {})    // find page position of source  source = $(source);  var p = Position.page(source);  // find coordinate system to use  target = $(target);  var parent = Position.offsetParent(target);  var delta = Position.page(parent);    // correct by body offsets (fixes Safari)  if (parent==document.body) {    delta[0] -= document.body.offsetLeft;    delta[1] -= document.body.offsetTop;   }  // set position  if(options.setLeft)   target.style.left  = (p[0] - delta[0] + options.offsetLeft) + "px";  if(options.setTop)    target.style.top   = (p[1] - delta[1] + options.offsetTop) + "px";  if(options.setWidth)  target.style.width = source.offsetWidth + "px";  if(options.setHeight) target.style.height = source.offsetHeight + "px";}
meta: 4973	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4973/cdfd65b24c35cfb3ffa9589211762adec603301d/util.js/clean/src/util.js