rem: clone: function(source, target) { var options = Object.extend({ setLeft:    true, setTop:     true, setWidth:   true, setHeight:  true, offsetTop:  0, offsetLeft: 0 }, arguments[2] || {})   source = $(source); var p = Position.page(source);   target = $(target); 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: clone: function(source, target, options) { options = options || { }; return Element.clonePosition(target, source, options); } 
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: 8434	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8434/6873fc8026e87544ee93e0d9551ae57083313cff/prototype.js/clean/vendor/rails/railties/html/javascripts/prototype.js