})(); init(); 
})(node); init(); 
dojox.fx.sizeTo = function(/* Object */args){	// summary: Create an animation that will size a node	// description:	//	Returns an animation that will size "node" 	//	defined in args Object about it's center to	//	a width and height defined by (args.width, args.height), 	//	supporting an optional method: chain||combine mixin	//	(defaults to chain).		//	//	- works best on absolutely or relatively positioned elements? 	//		// example:	// |	// size #myNode to 400px x 200px over 1 second	// |	dojo.fx.sizeTo({ node:'myNode',	// |		duration: 1000,	// |		width: 400,	// |		height: 200,	// |		method: "chain"	// |	}).play();	//	var node = (args.node = dojo.byId(args.node));	var compute = dojo.getComputedStyle;	var method = args.method || "chain"; 	if (method=="chain"){ args.duration = Math.floor(args.duration/2); } 		var top, newTop, left, newLeft, width, height = null;	var init = (function(){		var innerNode = node;		return function(){			var pos = compute(innerNode).position;			top = (pos == 'absolute' ? node.offsetTop : parseInt(compute(node).top) || 0);			left = (pos == 'absolute' ? node.offsetLeft : parseInt(compute(node).left) || 0);			width = parseInt(dojo.style(node,'width'));			height = parseInt(dojo.style(node,'height'));			newLeft = left - Math.floor((args.width - width)/2); 			newTop = top - Math.floor((args.height - height)/2); 			if(pos != 'absolute' && pos != 'relative'){				var ret = dojo.coords(innerNode, true);				top = ret.y;				left = ret.x;				innerNode.style.position="absolute";				innerNode.style.top=top+"px";				innerNode.style.left=left+"px";			}		}	})();	init(); // hmmm, do we need to init() or just the once beforeBegin?	var anim1 = dojo.animateProperty(dojo.mixin({		properties: {			height: { start: height, end: args.height || 0, unit:"px" },			top: { start: top, end: newTop }		}	}, args));	var anim2 = dojo.animateProperty(dojo.mixin({		properties: {			width: { start: width, end: args.width || 0, unit:"px" },			left: { start: left, end: newLeft }		}	}, args));	var anim = dojo.fx[((args.method == "combine") ? "combine" : "chain")]([anim1,anim2]);	dojo.connect(anim, "beforeBegin", anim, init);	return anim; // dojo._Animation};
5168	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5168/95fbd5c1c96ba26717639535e4a4f11096b8be7b/_base.js/buggy/fx/_base.js