- speed: function(s,o) {\r
- o = o || {};\r
- \r
- if ( o.constructor == Function )\r
- o = { complete: o };\r
- \r
- var ss = { slow: 600, fast: 200 };\r
- o.duration = (s && s.constructor == Number ? s : ss[s]) || 400;\r
+ speed: function(speed, easing, fn) {\r
+ var opt = speed.constructor == Object ? speed : {
+ complete: fn || !fn && easing ||
+ speed.constructor == Function && speed,
+ duration: speed,
+ easing: fn && easing || easing && easing.constructor != Function && easing
+ };
+\r
+ opt.duration = (opt.duration.constructor == Number ?
+ opt.duration :
+ { slow: 600, fast: 200 }[opt.duration]) || 400;\r