- var p = (t - this.startTime) / z.o.duration;\r
- z.now = ((-Math.cos(p*Math.PI)/2) + 0.5) * (lastNum-firstNum) + firstNum;\r
+ var p = n / z.o.duration;\r
+ //if the easing function exists then use it else use default linear easing\r
+ if (jQuery.easing && jQuery.easing[z.o.easing])\r
+ z.now = jQuery.easing[z.o.easing](p, n, firstNum, (lastNum-firstNum), z.o.duration);\r
+ else \r
+ z.now = ((-Math.cos(p*Math.PI)/2) + 0.5) * (lastNum-firstNum) + firstNum;\r