jQuery.extend($.easing,{easeNone:function(e,f,a,h,g){return h*f/g+a},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeOutInQuad:function(e,f,a,h,g){if(f<g/2){return easeOutQuad(f*2,a,h/2,g)}return easeInQuad((f*2)-g,a+h/2,h/2,g)},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeOutInCubic:function(e,f,a,h,g){if(f<g/2){return easeOutCubic(f*2,a,h/2,g)}return easeInCubic((f*2)-g,a+h/2,h/2,g)},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeOutInQuart:function(e,f,a,h,g){if(f<g/2){return easeOutQuart(f*2,a,h/2,g)}return easeInQuart((f*2)-g,a+h/2,h/2,g)},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeOutInQuint:function(e,f,a,h,g){if(f<g/2){return easeOutQuint(f*2,a,h/2,g)}return easeInQuint((f*2)-g,a+h/2,h/2,g)},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeOutInSine:function(e,f,a,h,g){if(f<g/2){return easeOutSine(f*2,a,h/2,g)}return easeInSine((f*2)-g,a+h/2,h/2,g)},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a-h*0.001},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*1.001*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a-h*0.0005}return h/2*1.0005*(-Math.pow(2,-10*--f)+2)+a},easeOutInExpo:function(e,f,a,h,g){if(f<g/2){return easeOutExpo(f*2,a,h/2,g)}return easeInExpo((f*2)-g,a+h/2,h/2,g)},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeOutInCirc:function(e,f,a,h,g){if(f<g/2){return easeOutCirc(f*2,a,h/2,g)}return easeInCirc((f*2)-g,a+h/2,h/2,g)},easeInElastic:function(g,h,e,l,k,f,j){var i;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(!f||f<Math.abs(l)){f=l;i=j/4}else{i=j/(2*Math.PI)*Math.asin(l/f)}return -(f*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(g,h,e,l,k,f,j){var i;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(!f||f<Math.abs(l)){f=l;i=j/4}else{i=j/(2*Math.PI)*Math.asin(l/f)}return(f*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e)},easeInOutElastic:function(g,h,e,l,k,f,j){var i;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(!f||f<Math.abs(l)){f=l;i=j/4}else{i=j/(2*Math.PI)*Math.asin(l/f)}if(h<1){return -0.5*(f*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return f*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeOutInElastic:function(g,h,e,k,j,f,i){if(h<j/2){return easeOutElastic(h*2,e,k/2,j,f,i)}return easeInElastic((h*2)-j,e+k/2,k/2,j,f,i)},easeInBack:function(e,f,a,i,h,g){if(isNaN(g)){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(isNaN(g)){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(isNaN(g)){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeOutInBack:function(e,f,a,i,h,g){if(f<h/2){return easeOutBack(f*2,a,i/2,h,g)}return easeInBack((f*2)-h,a+i/2,i/2,h,g)},easeInBounce:function(e,f,a,h,g){return h-easeOutBounce(g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return easeInBounce(f*2,0,h,g)*0.5+a}else{return easeOutBounce(f*2-g,0,h,g)*0.5+h*0.5+a}},easeOutInBounce:function(e,f,a,h,g){if(f<g/2){return easeOutBounce(f*2,a,h/2,g)}return easeInBounce((f*2)-g,a+h/2,h/2,g)}});
