rem: moveX = originalWidth; moveY = originalHeight; 
add: moveX = dims.width; moveY = dims.height; 
context: Effect.Shrink = function(element) {  element = $(element);  var options = arguments[1] || {};    var originalWidth = element.clientWidth;  var originalHeight = element.clientHeight;  var oldTop = element.style.top;  var oldLeft = element.style.left;  var oldHeight = element.style.height;  var oldWidth = element.style.width;  var oldOpacity = Element.getInlineOpacity(element);  var direction = options.direction || 'center';  var moveTransition = options.moveTransition || Effect.Transitions.sinoidal;  var scaleTransition = options.scaleTransition || Effect.Transitions.sinoidal;  var opacityTransition = options.opacityTransition || Effect.Transitions.none;    var moveX, moveY;    switch (direction) {    case 'top-left':      moveX = moveY = 0;      break;    case 'top-right':      moveX = originalWidth;      moveY = 0;      break;    case 'bottom-left':      moveX = 0;      moveY = originalHeight;      break;    case 'bottom-right':      moveX = originalWidth;      moveY = originalHeight;      break;    case 'center':        moveX = originalWidth / 2;      moveY = originalHeight / 2;      break;  }    return new Effect.Parallel(    [ new Effect.Opacity(element, { sync: true, to: 0.0, from: 1.0, transition: opacityTransition }),      new Effect.Scale(element, window.opera ? 1 : 0, { sync: true, transition: scaleTransition, restoreAfterFinish: true}),      new Effect.MoveBy(element, moveY, moveX, { sync: true, transition: moveTransition })    ], Object.extend({                     beforeStartInternal: function(effect) {            Element.makePositioned(effect.effects[0].element);           Element.makeClipping(effect.effects[0].element);         },         afterFinishInternal: function(effect) {           var el = effect.effects[0].element;           var els = el.style;           Element.hide(el);           Element.undoClipping(el);            Element.undoPositioned(el);           els.top = oldTop;           els.left = oldLeft;           els.height = oldHeight;           els.width = oldWidth;           Element.setInlineOpacity(el, oldOpacity);         }       }, options)  );}
meta: 3974	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3974/af9adbf17404d887f31369756326b0109da7ae2b/effects.js/clean/root/static/js/effects.js