/*
 * 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 - 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(h,f,e,g,a){return jQuery.easing[jQuery.easing.def](h,f,e,g,a)},easeInQuad:function(h,f,e,g,a){return g*(f/=a)*f+e},easeOutQuad:function(h,f,e,g,a){return -g*(f/=a)*(f-2)+e},easeInOutQuad:function(h,f,e,g,a){if((f/=a/2)<1){return g/2*f*f+e}return -g/2*((--f)*(f-2)-1)+e},easeInCubic:function(h,f,e,g,a){return g*(f/=a)*f*f+e},easeOutCubic:function(h,f,e,g,a){return g*((f=f/a-1)*f*f+1)+e},easeInOutCubic:function(h,f,e,g,a){if((f/=a/2)<1){return g/2*f*f*f+e}return g/2*((f-=2)*f*f+2)+e},easeInQuart:function(h,f,e,g,a){return g*(f/=a)*f*f*f+e},easeOutQuart:function(h,f,e,g,a){return -g*((f=f/a-1)*f*f*f-1)+e},easeInOutQuart:function(h,f,e,g,a){if((f/=a/2)<1){return g/2*f*f*f*f+e}return -g/2*((f-=2)*f*f*f-2)+e},easeInQuint:function(h,f,e,g,a){return g*(f/=a)*f*f*f*f+e},easeOutQuint:function(h,f,e,g,a){return g*((f=f/a-1)*f*f*f*f+1)+e},easeInOutQuint:function(h,f,e,g,a){if((f/=a/2)<1){return g/2*f*f*f*f*f+e}return g/2*((f-=2)*f*f*f*f+2)+e},easeInSine:function(h,f,e,g,a){return -g*Math.cos(f/a*(Math.PI/2))+g+e},easeOutSine:function(h,f,e,g,a){return g*Math.sin(f/a*(Math.PI/2))+e},easeInOutSine:function(h,f,e,g,a){return -g/2*(Math.cos(Math.PI*f/a)-1)+e},easeInExpo:function(h,f,e,g,a){return(f==0)?e:g*Math.pow(2,10*(f/a-1))+e},easeOutExpo:function(h,f,e,g,a){return(f==a)?e+g:g*(-Math.pow(2,-10*f/a)+1)+e},easeInOutExpo:function(h,f,e,g,a){if(f==0){return e}if(f==a){return e+g}if((f/=a/2)<1){return g/2*Math.pow(2,10*(f-1))+e}return g/2*(-Math.pow(2,-10*--f)+2)+e},easeInCirc:function(h,f,e,g,a){return -g*(Math.sqrt(1-(f/=a)*f)-1)+e},easeOutCirc:function(h,f,e,g,a){return g*Math.sqrt(1-(f=f/a-1)*f)+e},easeInOutCirc:function(h,f,e,g,a){if((f/=a/2)<1){return -g/2*(Math.sqrt(1-f*f)-1)+e}return g/2*(Math.sqrt(1-(f-=2)*f)+1)+e},easeInElastic:function(e,j,g,h,i){var k=1.70158;var f=0;var l=h;if(j==0){return g}if((j/=i)==1){return g+h}if(!f){f=i*0.3}if(l<Math.abs(h)){l=h;var k=f/4}else{var k=f/(2*Math.PI)*Math.asin(h/l)}return -(l*Math.pow(2,10*(j-=1))*Math.sin((j*i-k)*(2*Math.PI)/f))+g},easeOutElastic:function(e,j,g,h,i){var k=1.70158;var f=0;var l=h;if(j==0){return g}if((j/=i)==1){return g+h}if(!f){f=i*0.3}if(l<Math.abs(h)){l=h;var k=f/4}else{var k=f/(2*Math.PI)*Math.asin(h/l)}return l*Math.pow(2,-10*j)*Math.sin((j*i-k)*(2*Math.PI)/f)+h+g},easeInOutElastic:function(e,j,g,h,i){var k=1.70158;var f=0;var l=h;if(j==0){return g}if((j/=i/2)==2){return g+h}if(!f){f=i*(0.3*1.5)}if(l<Math.abs(h)){l=h;var k=f/4}else{var k=f/(2*Math.PI)*Math.asin(h/l)}if(j<1){return -0.5*(l*Math.pow(2,10*(j-=1))*Math.sin((j*i-k)*(2*Math.PI)/f))+g}return l*Math.pow(2,-10*(j-=1))*Math.sin((j*i-k)*(2*Math.PI)/f)*0.5+h+g},easeInBack:function(a,h,e,f,g,i){if(i==undefined){i=1.70158}return f*(h/=g)*h*((i+1)*h-i)+e},easeOutBack:function(a,h,e,f,g,i){if(i==undefined){i=1.70158}return f*((h=h/g-1)*h*((i+1)*h+i)+1)+e},easeInOutBack:function(a,h,e,f,g,i){if(i==undefined){i=1.70158}if((h/=g/2)<1){return f/2*(h*h*(((i*=(1.525))+1)*h-i))+e}return f/2*((h-=2)*h*(((i*=(1.525))+1)*h+i)+2)+e},easeInBounce:function(h,f,e,g,a){return g-jQuery.easing.easeOutBounce(h,a-f,0,g,a)+e},easeOutBounce:function(h,f,e,g,a){if((f/=a)<(1/2.75)){return g*(7.5625*f*f)+e}else{if(f<(2/2.75)){return g*(7.5625*(f-=(1.5/2.75))*f+0.75)+e}else{if(f<(2.5/2.75)){return g*(7.5625*(f-=(2.25/2.75))*f+0.9375)+e}else{return g*(7.5625*(f-=(2.625/2.75))*f+0.984375)+e}}}},easeInOutBounce:function(h,f,e,g,a){if(f<a/2){return jQuery.easing.easeInBounce(h,f*2,0,g,a)*0.5+e}return jQuery.easing.easeOutBounce(h,f*2-a,0,g,a)*0.5+g*0.5+e}});
