animate: function(){
var time = 1;//длительность анимации в секундах
drag.obj.style.left = old.X+"px";
drag.obj.style.top = old.Y+"px";
cls.addClass(drag.obj,"animate_for_old_postion");
return (time*1000) - 100;
}
time = action.animate();
setTimeout(function(){
old.state()
cls.removeClass(drag.obj,"animate_for_old_postion");
},time);