/* * jquery easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * uses the built in easing capabilities added in jquery 1.1 * to offer multiple easing options * * terms of use - easing equations * * open source under the bsd license. * * copyright â© 2001 robert penner * all rights reserved. * * terms of use - jquery easing * * open source under the bsd license. * * copyright â© 2008 george mcginley smith * all rights reserved. * * redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * redistributions of source code must retain the above copyright notice, this list of * conditions and the following disclaimer. * redistributions in binary form must reproduce the above copyright notice, this list * of conditions and the following disclaimer in the documentation and/or other materials * provided with the distribution. * * neither the name of the author nor the names of contributors may be used to endorse * or promote products derived from this software without specific prior written permission. * * this software is provided by the copyright holders and contributors "as is" and any * express or implied warranties, including, but not limited to, the implied warranties of * merchantability and fitness for a particular purpose are disclaimed. in no event shall the * copyright owner or contributors be liable for any direct, indirect, incidental, special, * exemplary, or consequential damages (including, but not limited to, procurement of substitute * goods or services; loss of use, data, or profits; or business interruption) however caused * and on any theory of liability, whether in contract, strict liability, or tort (including * negligence or otherwise) arising in any way out of the use of this software, even if advised * of the possibility of such damage. * */ jquery.easing.jswing=jquery.easing.swing;jquery.extend(jquery.easing,{def:"easeoutquad",swing:function(e,f,a,h,g){return jquery.easing[jquery.easing.def](e,f,a,h,g)},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},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},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},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},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},easeinexpo:function(e,f,a,h,g){return(f==0)?a:h*math.pow(2,10*(f/g-1))+a},easeoutexpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-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}return h/2*(-math.pow(2,-10*--f)+2)+a},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},easeinelastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g