rem: var delta = [0, 0]; var parent = null;   if (Element.getStyle(target,'position') == 'absolute') { parent = Position.offsetParent(target); delta = Position.page(parent); }   if (parent == document.body) { delta[0] -= document.body.offsetLeft; delta[1] -= document.body.offsetTop; }   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'; }, 
add: target.style.position = 'absolute'; var offsets = this.cumulativeOffset(source); target.style.top    = offsets[1] + 'px'; target.style.left   = offsets[0] + 'px'; target.style.width  = source.offsetWidth + 'px'; target.style.height = source.offsetHeight + 'px'; } 
context:   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 delta = [0, 0];    var parent = null;    // delta [0,0] will do fine with position: fixed elements,    // position:absolute needs offsetParent deltas    if (Element.getStyle(target,'position') == 'absolute') {      parent = Position.offsetParent(target);      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: 1782	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1782/3f0bcc29b1d13b6ec87c6b75980c7f271e175e80/prototype.js/buggy/webapp/sandbox/scripts/prototype.js