/*
 * JSTween JavaScript Library v1.0
 * http://www.jstween.org/
 *
 * Copyright 2011, Marco Wolfsheimer
 * JSTween by Marco Wolfsheimer is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
 *
 * Date: Sun Mar 13 12:46:40 2011 -0000
 */
var JSTween=(function(e){var d=/[\-]{0,1}[0-9\.]{1,}|#[0-9\.abcdef]{3,6}/gi,r=/[pxemtcin%]{1,2}|deg/gi,p=/[0-9\.\-]{1,}/gi,a=/[0-9a-f]{3,6}/gi,j=/^#/,f=/^[0-9\.\-]{1,}([pxemtcin%]{1,2}|deg)$/,m=/[a-z]{1,}/,q=/^rgb\(/,c=/^scroll/,g=/-([a-z])/ig,u=/^-ms/ig,o={opacity:["opacity","-moz-opacity","filter"],shadow:["box-shadow","-moz-box-shadow","-o-box-shadow","-ms-box-shadow","-webkit-box-shadow"],transform:["-moz-transform","transform","-o-transform","-ms-transform","-webkit-transform"],transformOrigin:["-moz-transform-origin","transform-origin","-o-transform-origin","-ms-transform-origin","-webkit-transform-origin"],borderRadius:["-moz-border-radius","border-radius","-webkit-border-radius"],borderRadiusTopLeft:["-moz-border-radius-topleft","border-top-left-radius","-webkit-border-top-left-radius"],borderRadiusTopRight:["-moz-border-radius-topright","border-top-right-radius","-webkit-border-top-right-radius"],borderRadiusBottomLeft:["-moz-border-radius-bottomleft","border-bottom-left-radius","-webkit-border-bottom-left-radius"],borderRadiusBottomRight:["-moz-border-radius-bottomright","border-bottom-right-radius","-webkit-border-bottom-right-radius"],backgroundSize:["background-size","-moz-background-size","-o-background-size","-webkit-background-size"]},t={},l=[],h=0,n=0,v=false,b=false,k=0,s={};e.init=function(){e.framerate(45);e.cssSupport();try{e.attach()}catch(w){return}};e.attach=function(){jQuery.JSTween=e;jQuery.fn.tween=function(w){var x,y=this.length;for(x=0;x<y;x++){jQuery.JSTween.tween(this[x],w)}return this};jQuery.framerate=function(w){jQuery.JSTween.framerate(w)};jQuery.play=function(){jQuery.JSTween.play()};jQuery.clear=function(w,x){jQuery.JSTween.clear(w,x)};jQuery.fn.play=function(){jQuery.JSTween.play();return this};jQuery.fn.clear=function(y){var w,x=this.length;for(w=0;w<x;w++){jQuery.JSTween.clear(this[w],y)}return this};jQuery.fn.property=function(w){var z=[],x,y=this.length;for(x=0;x<y;x++){z.push(jQuery.JSTween.property(this[x],w))}return z.length===1?z[0]:z};jQuery.fn.opacity=function(y){var w,x=this.length;for(w=0;w<x;w++){jQuery.JSTween.opacity(this[w],y)}return this};jQuery.fn.alpha=jQuery.fn.opacity;jQuery.fn.transparency=jQuery.fn.opacity;jQuery.fn.rotate=function(y){var w,x=this.length;for(w=0;w<x;w++){jQuery.JSTween.rotate(this[w],y)}return this};jQuery.fn.action=function(B,C,A,E){var D,w,z,x=this.length,y={};if(typeof B==="object"){for(w in B){if(B.hasOwnProperty(w)&&typeof B[w]==="string"){if(B[w].match(f)){y[w]={value:parseFloat(B[w].match(p)[0],10),units:B[w].match(r)[0]}}else{y[w]={value:B[w],units:undefined}}}}for(z=0;z<x;z++){D=jQuery.JSTween.register(this[z]);for(w in y){if(y.hasOwnProperty(w)){jQuery.JSTween.action(D,w,y[w].value,y[w].units,undefined,true)}}}}else{for(z=0;z<x;z++){jQuery.JSTween.action(jQuery.JSTween.register(this[z]),B,C,A,E,true)}}return this};jQuery.fn.state=function(w){if(this.length>0){if(this[0].__animate!==undefined){if(w!==undefined&&this[0].__animate.state[w]!==undefined){return this[0].__animate.state[w]}else{if(w===undefined){return this[0].__animate.state}}}}};jQuery.fn.transform=function(y){var w,x=this.length;for(w=0;w<x;w++){jQuery.JSTween.transform(this[w],y)}return this};jQuery.fn.transformOrigin=function(y){var w,x=this.length;for(w=0;w<x;w++){jQuery.JSTween.transformOrigin(this[w],y)}return this};jQuery.fn.backgroundSize=function(y){var w,x=this.length;for(w=0;w<x;w++){jQuery.JSTween.backgroundSize(this[w],y)}return this};jQuery.fn.shadow=function(y){var w,x=this.length;for(w=0;w<x;w++){jQuery.JSTween.shadow(this[w],y)}return this};jQuery.fn.borderRadius=function(z,w){var x,y=this.length;for(x=0;x<y;x++){jQuery.JSTween.borderRadius(this[x],z,w)}return this};jQuery.fn.borderRadiusTopRight=function(z,w){var x,y=this.length;for(x=0;x<y;x++){jQuery.JSTween.borderRadiusCorner(this[x],"top","right",z,w)}return this};jQuery.fn.borderRadiusTopLeft=function(z,w){var x,y=this.length;for(x=0;x<y;x++){jQuery.JSTween.borderRadiusCorner(this[x],"top","left",z,w)}return this};jQuery.fn.borderRadiusBottomRight=function(z,w){var x,y=this.length;for(x=0;x<y;x++){jQuery.JSTween.borderRadiusCorner(this[x],"bottom","right",z,w)}return this};jQuery.fn.borderRadiusBottomLeft=function(z,w){var x,y=this.length;for(x=0;x<y;x++){jQuery.JSTween.borderRadiusCorner(this[x],"bottom","left",z,w)}return this};jQuery.fn.borderRadiusCorner=function(B,y,A,w){var x,z=this.length;for(x=0;x<this.length;x++){jQuery.JSTween.borderRadiusCorner(this[x],B,y,A,w)}return this}};e.upperCase=function(w,x){return x.toUpperCase()};e.camelCase=function(w){return w.replace(u,"ms").replace(g,e.upperCase)};e.framerate=function(w){s.frameRate=w||45;s.frameDelay=Math.round(1000/s.frameRate);s.frameLength=(1/s.frameRate)};e.cssSupport=function(){var x=document.getElementsByTagName("html"),w,y;if(x[0]!==undefined){w=x[0].style;for(y in o){if(o.hasOwnProperty(y)){for(i=0;i<o[y].length;i++){if(w[o[y][i]]!==undefined){o[y]=o[y][i];break}else{if(w[e.camelCase(o[y][i])]!==undefined){o[y]=e.camelCase(o[y][i]);break}}}}}}};e.property=function(x,w){if(x.__animate!==undefined){if(w===undefined){return x.__animate.state}else{if(x.__animate.state[w]){return x.__animate.state[w]}else{return false}}}else{return false}};e.getScroll=function(x,y,w){if(x.tagName===undefined&&(x.scroll!==undefined||x.scrollTo!==undefined)){return $(x).scrollLeft()+"px "+$(x).scrollTop()+"px"}else{return x.scrollLeft+"px "+x.scrollTop+"px"}};e.getComputedStyle=function(B,D,A){var z=e.property(B,D),y,C,x,w;if(z!==false&&!D.match(c)){return{value:z.value,units:B.__animate.state[D].units}}else{switch(D){case"transform":C=A;break;case"transformOrigin":C=A;break;case"shadow":C=A;break;case"boxShadow":C=A;break;case"backgroundSize":C=A;break;case"opacity":C=100;break;case"transparency":C=100;break;case"alpha":C=100;break;case"scrollLeft":C=e.getScroll(B,D,A);break;case"scrollTop":C=e.getScroll(B,D,A);break;case"scroll":C=e.getScroll(B,D,A);break;case"scrollTo":C=e.getScroll(B,D,A);break;default:if(window.getComputedStyle!==undefined){y=window.getComputedStyle(B,null)[D]}else{if(B.currentStyle!==undefined){y=B.currentStyle[D]}}if(y==="auto"||y===undefined||y===""){C=0;x="px"}else{if(y.match(q)){C=e.convertRGBToHex(y)}else{C=parseFloat(y.match(p),10);x=y.match(r)}}break}return{value:C,units:x}}};e.parseOptions=function(y,x){var A={},z,w;for(z in x){if(x.hasOwnProperty(z)&&z!=="onStart"&&z!=="onStop"&&z!=="onFrame"){A[z]={};if(x[z].start===undefined){w=e.getComputedStyle(y,z,x[z].stop);A[z].start=w.value}else{A[z].start=e.parseProperty(x[z].start)}A[z].stop=e.parseProperty(x[z].stop,1);A[z].duration=e.parseProperty(x[z].duration||A[z].dur,1);A[z].time=e.parseProperty(x[z].time,0);A[z].merge=e.parseProperty(x[z].merge,false);A[z].effect=e.parseProperty(x[z].effect,"linear");A[z].framerate=e.parseProperty(x[z].framerate,s.frameRate);A[z].units=e.parseProperty(x[z].units,w?w.units:"px");A[z].end=e.parseProperty(x[z].end,(A[z].time+A[z].duration));if(z.match(c)){if(typeof A[z].start==="number"){A[z].start=A[z].start+"px "+A[z].start+"px"}if(typeof A[z].stop==="number"){A[z].stop=A[z].stop+"px "+A[z].stop+"px"}}A[z].callback={onStart:x[z].onStart,onFrame:x[z].onFrame,onStop:x[z].onStop}}}return A};e.parseProperty=function(x,w){if(typeof x==="function"){return x()}else{if(x!==undefined){return x}else{return w}}};e.convertRGBToHex=function(x){var A=x.match(p),z,y,w;z=parseInt(A[0],10).toString(16);if(z.length===1){z="0"+z}y=parseInt(A[1],10).toString(16);if(y.length===1){y="0"+y}w=parseInt(A[2],10).toString(16);if(w.length===1){w="0"+w}return"#"+z+y+w};e.parseColor=function(w){if(w.length===3){return[parseInt(w.substr(0,1),16)*16,parseInt(w.substr(1,1),16)*16,parseInt(w.substr(2,1),16)*16]}else{return[parseInt(w.substr(0,2),16),parseInt(w.substr(2,2),16),parseInt(w.substr(4,2),16)]}};e.parseCSSProperty=function(A){var x=A.match(d),z=A.split(d),w=[],B,y=x.length;for(B=0;B<y;B++){if(x[B].match(j)){x[B]=e.parseColor(x[B].match(a)[0])}else{x[B]=parseFloat(x[B].match(p)[0],10)}}return{value:x,delimiter:z}};e.mergeStringProperty=function(w,E,G,H,z,B){var F="",A="",D,y,x=w.value.length,C=0;for(D=0;D<x;D++){if(typeof w.value[D]==="object"&&w.value[D].length!==undefined){F+=w.delimiter[D]+"#";C=w.value[D].length;for(y=0;y<C;y++){A=Math.round(e.effects[H.effect]((z-H.time),w.value[D][y],(E.value[D][y]-w.value[D][y]),(B-H.time)),10).toString(16);if(A.length===1){A="0"+A}F+=A}}else{F+=w.delimiter[D]+e.effects[H.effect]((z-H.time),w.value[D],(E.value[D]-w.value[D]),(B-H.time))}}return F+w.delimiter[w.delimiter.length-1]};e.loopStringFrames=function(F,G,x){var w,H=e.parseCSSProperty(x.start),y=e.parseCSSProperty(x.stop),A,C,D,z,E=s.frameLength,B=x.end;w=z=Math.round(s.frameRate/x.framerate-1);for(A=x.time;A<B;A+=E){C=h+Math.round(A*s.frameRate);if(w===0){D=e.mergeStringProperty(H,y,G,x,A,x.end);e.makeFrame(C,F,G,D,x.units,false,false);w=z}else{e.makeFrame(C,F,G);w--}}C=h+(Math.round(x.end*s.frameRate));e.makeFrame(C,F,G,x.stop,x.units,false,true)};e.loopFrames=function(E,F,x){var w,z,B,C,y,D=s.frameLength,A=x.end;w=y=Math.round(s.frameRate/x.framerate-1);for(z=x.time;z<A;z+=D){B=h+(Math.round(z*s.frameRate));if(w===0){C=e.effects[x.effect]((z-x.time),x.start,(x.stop-x.start),(x.end-x.time));e.makeFrame(B,E,F,C,x.units,false,false);w=y}else{e.makeFrame(B,E,F);w--}}B=h+(Math.round(x.end*s.frameRate));e.makeFrame(B,E,F,x.stop,x.units,false,true)};e.getTimeBounds=function(w){var x={start:0,stop:0},y;for(y in w){if(w.hasOwnProperty(y)){if(w[y].end>x.stop){x.stop=w[y].end}}}x.start=x.stop;for(y in w){if(w.hasOwnProperty(y)){if(w[y].time<x.start){x.start=w[y].time}}}return x};e.tween=function(C,z){var D=e.register(C),B=0,A=0,F,x,y=0,G=e.parseOptions(C,z),E,w=e.getTimeBounds(G);for(E in G){if(G.hasOwnProperty(E)){if(typeof G[E].start==="string"){e.loopStringFrames(D,E,G[E])}else{e.loopFrames(D,E,G[E])}if(typeof G[E].callback.onStart==="function"){e.addCallback(h+(Math.round(G[E].time*s.frameRate)),D,E,G[E].callback.onStart)}if(typeof G[E].callback.onFrame==="function"){for(A=G[E].time;A<G[E].end;A+=s.frameLength){B=h+(Math.round(A*s.frameRate));e.addCallback(B,D,E,G[E].callback.onFrame)}}if(typeof G[E].callback.onStop==="function"){e.addCallback(h+(Math.round(G[E].end*s.frameRate)),D,E,G[E].callback.onStop)}B=h+(Math.round(G[E].end*s.frameRate));if(B>n){n=B}}}if(typeof z.onStart==="function"){e.addCallback(h+(Math.round(w.start*s.frameRate)),D,"callback",z.onStart)}if(typeof z.onFrame==="function"){for(frame=h+Math.round(w.start*s.frameRate);frame<=h+Math.round(w.stop*s.frameRate);frame++){e.addCallback(frame,D,"callback",z.onFrame)}}if(typeof z.onStop==="function"){e.addCallback(h+(Math.round(w.stop*s.frameRate)),D,"callback",z.onStop)}};e.makeFrame=function(B,w,y,A,x,C,z){if(w!==undefined){if(t[B]===undefined){t[B]={};t[B][w]={};t[B][w][y]={value:A,units:x,callback:[],skip:z}}else{if(t[B][w]===undefined){t[B][w]={};t[B][w][y]={value:A,units:x,callback:[],skip:z}}else{if(t[B][w][y]===undefined){t[B][w][y]={value:A,units:x,callback:[],skip:z}}else{if(A!==false){t[B][w][y].value=A}if(x!==false){t[B][w][y].units=x}t[B][w][y].skip=z}}}if(typeof C==="function"){t[B][w][y].callback.push(C)}}else{if(t[B]===undefined){t[B]={}}}};e.addCallback=function(y,w,x,z){e.makeFrame(y,w,x,false,false,z,true)};e.play=function(){if(v===false){b=false;v=true;k=e.timestamp();e.playHead()}};e.clear=function(w,x){var y;if(w!==undefined&&x!==undefined&&w.__animate!==undefined){for(y in t){if(t.hasOwnProperty(y)&&t[y][w.__animate.id]!==undefined&&t[y][w.__animate.id][x]!==undefined){delete t[y][w.__animate.id][x]}}}else{if(w!==undefined&&w.__animate!==undefined){for(y in t){if(t.hasOwnProperty(y)&&t[y][w.__animate.id]!==undefined){delete t[y][w.__animate.id]}}}else{for(y in t){if(t.hasOwnProperty(y)){delete t[y]}}}}};e.timestamp=function(){var w=new Date();return w.getTime()};e.playHead=function(){var z,w,y,x;if(h<=n){x=(s.frameDelay-((e.timestamp()-k)-(h*s.frameDelay)));if(x<0){x=0}else{if(x>s.frameDelay){x=s.frameDelay}}setTimeout(function(){e.playHead(x?true:false)},x);for(w in t[h]){if(t[h].hasOwnProperty(w)){z=t[h][w];for(y in z){if(z.hasOwnProperty(y)){e.action(w,y,z[y].value,z[y].units,z[y].callback,(z[y].skip===true?true:(x?true:false)))}}}}delete t[h];h++;b=e.timestamp()}else{b=v=false;h=0}};e.action=function(w,z,A,x,B,y){if(y===true&&A!==false){switch(z){case"zIndex":l[w].style.zIndex=A;break;case"alpha":e.opacity(l[w],A);break;case"transparency":e.opacity(l[w],A);break;case"opacity":e.opacity(l[w],A);break;case"scroll":e.scroll(l[w],z,A);break;case"scrollTop":e.scroll(l[w],z,A);break;case"scrollLeft":e.scroll(l[w],z,A);break;case"scrollTo":e.scroll(l[w],z,A);break;case"shadow":e.shadow(l[w],A);break;case"boxShadow":e.shadow(l[w],A);break;case"rotate":e.rotate(l[w],A);break;case"transformOrigin":e.transformOrigin(l[w],A);break;case"transform":e.transform(l[w],A);break;case"backgroundSize":e.backgroundSize(l[w],A);break;case"borderRadius":e.borderRadius(l[w],A,x);break;case"borderRadiusTopRight":e.borderRadiusCorner(l[w],"top","right",A,x);break;case"borderRadiusTopLeft":e.borderRadiusCorner(l[w],"top","left",A,x);break;case"borderRadiusBottomRight":e.borderRadiusCorner(l[w],"bottom","right",A,x);break;case"borderRadiusBottomLeft":e.borderRadiusCorner(l[w],"bottom","left",A,x);break;default:if(typeof A==="string"){l[w].style[z]=A}else{l[w].style[z]=A+x}break}}l[w].__animate.state[z]={value:A,units:x};if(B!==undefined&&B.length>0){for(i=0;i<B.length;i++){if(typeof B[i]==="function"){B[i](l[w],{type:z,value:A,units:x,id:w})}}}};e.scroll=function(x,z,y){var w;if(x.tagName===undefined&&(typeof x.scroll==="function"||typeof x.scrollTo==="function")&&typeof y==="string"){w=y.match(p);if(w){if(self.pageYOffset){window.scroll(parseInt(w[0],10),parseInt(w[1],10))}else{if(document.documentElement&&document.documentElement.scrollTop){window.scrollTo(parseInt(w[0],10),parseInt(w[1],10))}else{if(document.body){window.scrollTo(parseInt(w[0],10),parseInt(w[1],10))}}}}}else{if(typeof y==="string"){w=y.match(p)}else{w=[y,y]}if(z==="scrollTop"){x.scrollTop=parseInt(w[1],10)}else{if(z==="scrollLeft"){x.scrollLeft=parseInt(w[0],10)}else{x.scrollLeft=parseInt(w[0],10);x.scrollTop=parseInt(w[1],10)}}}};e.setProperty=function(x,z,y,w){x.style[z]=y+(w?w:"")};e.opacity=function(w,x){if(o.opacity==="filter"){e.setProperty(w,"filter","alpha(opacity="+x+")")}else{e.setProperty(w,o.opacity,(x/100))}};e.shadow=function(w,x){e.setProperty(w,o.shadow,x)};e.rotate=function(w,x){e.setProperty(w,o.transform,"rotate("+x+"deg)")};e.transform=function(w,x){e.setProperty(w,o.transform,x)};e.backgroundSize=function(w,x){e.setProperty(w,o.backgroundSize,x)};e.transformOrigin=function(w,x){e.setProperty(w,o.transformOrigin,x)};e.borderRadius=function(x,y,w){e.setProperty(x,o.borderRadius,y,w)};e.borderRadiusCorner=function(y,x,z,A,w){if(x==="top"){if(z==="left"){e.setProperty(y,o.borderRadiusTopLeft,A,w)}else{e.setProperty(y,o.borderRadiusTopRight,A,w)}}else{if(z==="left"){e.setProperty(y,o.borderRadiusBottomLeft,A,w)}else{e.setProperty(y,o.borderRadiusBottomRight,A,w)}}};e.register=function(x){if(x.__animate===undefined){var w=l.length;x.__animate={id:w,state:{},callback:{},dragging:false};l.push(x);return w}else{return x.__animate.id}};e.effects={linear:function(x,w,z,y){return z*x/y+w},quadIn:function(x,w,z,y){return z*(x/=y)*x+w},quadOut:function(x,w,z,y){return -z*(x/=y)*(x-2)+w},quadInOut:function(x,w,z,y){if((x/=y/2)<1){return z/2*x*x+w}return -z/2*((--x)*(x-2)-1)+w},cubicIn:function(x,w,z,y){return z*(x/=y)*x*x+w},cubicOut:function(x,w,z,y){return z*((x=x/y-1)*x*x+1)+w},cubicInOut:function(x,w,z,y){if((x/=y/2)<1){return z/2*x*x*x+w}return z/2*((x-=2)*x*x+2)+w},easeIn:function(x,w,z,y){return z*(x/=y)*x*x+w},easeOut:function(x,w,z,y){return z*((x=x/y-1)*x*x+1)+w},easeInOut:function(x,w,z,y){if((x/=y/2)<1){return z/2*x*x*x+w}return z/2*((x-=2)*x*x+2)+w},quartIn:function(x,w,z,y){return z*(x/=y)*x*x*x+w},quartOut:function(x,w,z,y){return -z*((x=x/y-1)*x*x*x-1)+w},quartInOut:function(x,w,z,y){if((x/=y/2)<1){return z/2*x*x*x*x+w}return -z/2*((x-=2)*x*x*x-2)+w},quintIn:function(x,w,z,y){return z*(x/=y)*x*x*x*x+w},quintOut:function(x,w,z,y){return z*((x=x/y-1)*x*x*x*x+1)+w},quintInOut:function(x,w,z,y){if((x/=y/2)<1){return z/2*x*x*x*x*x+w}return z/2*((x-=2)*x*x*x*x+2)+w},sineIn:function(x,w,z,y){return -z*Math.cos(x/y*(Math.PI/2))+z+w},sineOut:function(x,w,z,y){return z*Math.sin(x/y*(Math.PI/2))+w},sineInOut:function(x,w,z,y){return -z/2*(Math.cos(Math.PI*x/y)-1)+w},expoIn:function(x,w,z,y){return(x===0)?w:z*Math.pow(2,10*(x/y-1))+w},expoOut:function(x,w,z,y){return(x===y)?w+z:z*(-Math.pow(2,-10*x/y)+1)+w},expoInOut:function(x,w,z,y){if(x===0){return w}if(x===y){return w+z}if((x/=y/2)<1){return z/2*Math.pow(2,10*(x-1))+w}return z/2*(-Math.pow(2,-10*--x)+2)+w},circIn:function(x,w,z,y){return -z*(Math.sqrt(1-(x/=y)*x)-1)+w},circOut:function(x,w,z,y){return z*Math.sqrt(1-(x=x/y-1)*x)+w},circInOut:function(x,w,z,y){if((x/=y/2)<1){return -z/2*(Math.sqrt(1-x*x)-1)+w}return z/2*(Math.sqrt(1-(x-=2)*x)+1)+w},bounceIn:function(x,w,z,y){return z-e.effects.bounceOut(y-x,0,z,y)+w},bounceOut:function(x,w,z,y){if((x/=y)<(1/2.75)){return z*(7.5625*x*x)+w}else{if(x<(2/2.75)){return z*(7.5625*(x-=(1.5/2.75))*x+0.75)+w}else{if(x<(2.5/2.75)){return z*(7.5625*(x-=(2.25/2.75))*x+0.9375)+w}else{return z*(7.5625*(x-=(2.625/2.75))*x+0.984375)+w}}}},bounceInOut:function(x,w,z,y){if(x<y/2){return e.effects.bounceIn(x*2,0,z,y)*0.5+w}return e.effects.bounceOut(x*2-y,0,z,y)*0.5+z*0.5+w},elasticIn:function(y,w,C,B,x,A){if(y===0){return w}if((y/=B)===1){return w+C}if(!A){A=B*0.3}if(!x){x=1}var z=0;if(x<Math.abs(C)){x=C;z=A/4}else{z=A/(2*Math.PI)*Math.asin(C/x)}return -(x*Math.pow(2,10*(y-=1))*Math.sin((y*B-z)*(2*Math.PI)/A))+w},elasticOut:function(y,w,C,B,x,A){if(y===0){return w}if((y/=B)===1){return w+C}if(!A){A=B*0.3}if(!x){x=1}var z=0;if(x<Math.abs(C)){x=C;z=A/4}else{z=A/(2*Math.PI)*Math.asin(C/x)}return x*Math.pow(2,-10*y)*Math.sin((y*B-z)*(2*Math.PI)/A)+C+w},elasticInOut:function(y,w,C,B,x,A){if(y===0){return w}if((y/=B/2)===2){return w+C}if(!A){A=B*(0.3*1.5)}if(!x){x=1}var z=0;if(x<Math.abs(C)){x=C;z=A/4}else{z=A/(2*Math.PI)*Math.asin(C/x)}if(y<1){return -0.5*(x*Math.pow(2,10*(y-=1))*Math.sin((y*B-z)*(2*Math.PI)/A))+w}return x*Math.pow(2,-10*(y-=1))*Math.sin((y*B-z)*(2*Math.PI)/A)*0.5+C+w}};e.init();return e}(JSTween||{}));
