//>>built
define("dojox/fx/scroll","dojo/_base/kernel dojo/_base/lang dojo/_base/fx dojo/_base/window dojox/fx/_base dojox/fx/_core dojo/dom-geometry dojo/_base/sniff".split(" "),function(c,g,l,m,d,n,h,p){c.experimental("dojox.fx.scroll");c=g.getObject("dojox.fx",!0);d.smoothScroll=function(a){a.target||(a.target=h.position(a.node));var c=a.win===m.global,e=a.target.x,f=a.target.y;if(!c)var d=h.position(a.win),e=e-d.x,f=f-d.y;var k=new l.Animation(g.mixin({beforeBegin:function(){this.curve&&delete this.curve;
var b=c?dojo._docScroll():{x:a.win.scrollLeft,y:a.win.scrollTop};k.curve=new n([b.x,b.y],[b.x+e,b.y+f])},onAnimate:c?function(b){a.win.scrollTo(b[0],b[1])}:function(b){a.win.scrollLeft=b[0];a.win.scrollTop=b[1]}},a));return k};return c.smoothScroll=d.smoothScroll});