jQuery.easing={easein:function(e,f,a,h,g){return h*(f/=g)*f+a},easeinout:function(f,h,e,j,i){if(h<i/2){return 2*j*h*h/(i*i)+e}var g=h-i/2;return -2*j*g*g/(i*i)+2*j*g/i+j/2+e},easeout:function(e,f,a,h,g){return -h*f*f/(g*g)+2*h*f/g+a},expoin:function(f,h,e,j,i){var g=1;if(j<0){g*=-1;j*=-1}return g*(Math.exp(Math.log(j)/i*h))+e},expoout:function(f,h,e,j,i){var g=1;if(j<0){g*=-1;j*=-1}return g*(-Math.exp(-Math.log(j)/i*(h-i))+j+1)+e},expoinout:function(f,h,e,j,i){var g=1;if(j<0){g*=-1;j*=-1}if(h<i/2){return g*(Math.exp(Math.log(j/2)/(i/2)*h))+e}return g*(-Math.exp(-2*Math.log(j/2)/i*(h-i))+j+1)+e},bouncein:function(e,f,a,h,g){return h-jQuery.easing.bounceout(e,g-f,0,h,g)+a},bounceout: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}}}},bounceinout:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.bouncein(e,f*2,0,h,g)*0.5+a}return jQuery.easing.bounceout(e,f*2-g,0,h,g)*0.5+h*0.5+a},elasin: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<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},elasout: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<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},elasinout:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},backin:function(e,f,a,i,h){var g=1.70158;return i*(f/=h)*f*((g+1)*f-g)+a},backout:function(e,f,a,i,h){var g=1.70158;return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},backinout:function(e,f,a,i,h){var 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},linear:function(e,f,a,h,g){return h*f/g+a}};(function(a){a.fn.lavaLamp=function(b){b=a.extend({fx:"linear",speed:500,click:function(){}},b||{});return this.each(function(){var c=a(this),f=function(){},h=a('<li class="back"><div class="left"></div></li>').appendTo(c),i=a("li",this),g=a("li.current",this)[0]||a(i[0]).addClass("current")[0];i.not(".back").hover(function(){d(this)},f);a(this).hover(f,function(){d(g)});i.click(function(j){e(this);return b.click.apply(this,[j,this])});e(g);function e(j){h.css({left:j.offsetLeft+"px",width:j.offsetWidth+"px"});g=j}function d(j){h.each(function(){a.dequeue(this,"fx")}).animate({width:j.offsetWidth,left:j.offsetLeft},b.speed,b.fx)}})}})(jQuery);
