﻿jQuery.extend({easing:{easein:function(e,a,b,c,d){return c*(a/=d)*a+b},easeinout:function(f,c,e,b,a){if(c<a/2)return 2*b*c*c/(a*a)+e;var d=c-a/2;return -2*b*d*d/(a*a)+2*b*d/a+b/2+e},easeout:function(e,b,d,c,a){return -c*b*b/(a*a)+2*c*b/a+d},expoin:function(f,e,c,a,d){var b=1;if(a<0){b*=-1;a*=-1}return b*Math.exp(Math.log(a)/d*e)+c},expoout:function(f,e,d,a,c){var b=1;if(a<0){b*=-1;a*=-1}return b*(-Math.exp(-Math.log(a)/c*(e-c))+a+1)+d},expoinout:function(f,d,e,a,b){var c=1;if(a<0){c*=-1;a*=-1}if(d<b/2)return c*Math.exp(Math.log(a/2)/(b/2)*d)+e;return c*(-Math.exp(-2*Math.log(a/2)/b*(d-b))+a+1)+e},bouncein:function(e,d,c,a,b){return a-jQuery.easing["bounceout"](e,b-d,0,a,b)+c},bounceout:function(e,a,b,c,d){if((a/=d)<1/2.75)return c*(7.5625*a*a)+b;else if(a<2/2.75)return c*(7.5625*(a-=1.5/2.75)*a+.75)+b;else if(a<2.5/2.75)return c*(7.5625*(a-=2.25/2.75)*a+.9375)+b;else return c*(7.5625*(a-=2.625/2.75)*a+.984375)+b},bounceinout:function(e,c,d,b,a){if(c<a/2)return jQuery.easing["bouncein"](e,c*2,0,b,a)*.5+d;return jQuery.easing["bounceout"](e,c*2-a,0,b,a)*.5+b*.5+d},elasin:function(h,d,e,a,f){var g=1.70158,b=0,c=a;if(d==0)return e;if((d/=f)==1)return e+a;if(!b)b=f*.3;if(c<Math.abs(a)){c=a;var g=b/4}else var g=b/(2*Math.PI)*Math.asin(a/c);return -(c*Math.pow(2,10*(d-=1))*Math.sin((d*f-g)*(2*Math.PI)/b))+e},elasout:function(h,d,e,a,f){var g=1.70158,b=0,c=a;if(d==0)return e;if((d/=f)==1)return e+a;if(!b)b=f*.3;if(c<Math.abs(a)){c=a;var g=b/4}else var g=b/(2*Math.PI)*Math.asin(a/c);return c*Math.pow(2,-10*d)*Math.sin((d*f-g)*(2*Math.PI)/b)+a+e},elasinout:function(h,a,e,b,f){var g=1.70158,c=0,d=b;if(a==0)return e;if((a/=f/2)==2)return e+b;if(!c)c=f*(.3*1.5);if(d<Math.abs(b)){d=b;var g=c/4}else var g=c/(2*Math.PI)*Math.asin(b/d);if(a<1)return -.5*(d*Math.pow(2,10*(a-=1))*Math.sin((a*f-g)*(2*Math.PI)/c))+e;return d*Math.pow(2,-10*(a-=1))*Math.sin((a*f-g)*(2*Math.PI)/c)*.5+b+e},backin:function(f,a,c,d,e){var b=1.70158;return d*(a/=e)*a*((b+1)*a-b)+c},backout:function(f,a,c,d,e){var b=1.70158;return d*((a=a/e-1)*a*((b+1)*a+b)+1)+c},backinout:function(f,a,c,d,e){var b=1.70158;if((a/=e/2)<1)return d/2*(a*a*(((b*=1.525)+1)*a-b))+c;return d/2*((a-=2)*a*(((b*=1.525)+1)*a+b)+2)+c},linear:function(e,d,a,b,c){return b*d/c+a}}})