(function(s,u,r){var k=["top","right","bottom","left","opacity","height","width"],t=["top","right","bottom","left"],o=["","-webkit-","-moz-","-o-"],x=["avoidTransforms","useTranslate3d","leaveTransforms"],i=/^([+-]=)?([\d+-.]+)(.*)$/,B=/([A-Z])/g,y={secondary:{},meta:{top:0,right:0,bottom:0,left:0}},f="px",n="jQe",c="cubic-bezier(",A=")",b=null,w=false;var l=document.body||document.documentElement,e=l.style,a=(e.WebkitTransition!==undefined)?"webkitTransitionEnd":(e.OTransition!==undefined)?"oTransitionEnd":"transitionend",z=e.WebkitTransition!==undefined||e.MozTransition!==undefined||e.OTransition!==undefined||e.transition!==undefined,h=("WebKitCSSMatrix" in window&&"m11" in new WebKitCSSMatrix()),g=h;if(s.expr&&s.expr.filters){b=s.expr.filters.animated;s.expr.filters.animated=function(F){return s(F).data("events")&&s(F).data("events")[a]?true:b.call(this,F)}}function E(F){return F.match(/\D+$/)}function j(P,J,G,K){if(G=="d"){return}var M=i.exec(J),H=P.css(G)==="auto"?0:P.css(G),Q=typeof H=="string"?C(H):H,I=typeof J=="string"?C(J):J,O=K===true?0:Q,N=P.is(":hidden"),F=P.translation();if(G=="left"){O=parseInt(Q,10)+F.x}if(G=="right"){O=parseInt(Q,10)+F.x}if(G=="top"){O=parseInt(Q,10)+F.y}if(G=="bottom"){O=parseInt(Q,10)+F.y}if(!M&&J=="show"){O=1;if(N){P.css({display:"block",opacity:0})}}else{if(!M&&J=="hide"){O=0}}if(M){var L=parseFloat(M[2]);if(M[1]){L=((M[1]==="-="?-1:1)*L)+parseInt(O,10)}return L}else{return O}}function v(F,H,G){return((G===true||(g===true&&G!==false))&&h)?"translate3d("+F+"px, "+H+"px, 0)":"translate("+F+"px,"+H+"px)"}function m(N,S,L,O,R,H,K,F){var G=N.data(n),M=G&&!d(G)?G:s.extend(true,{},y),J=R,Q=s.inArray(S,t)>-1;if(Q){var T=M.meta,I=C(N.css(S))||0,P=S+"_o";J=R-I;T[S]=J;T[P]=N.css(S)=="auto"?0+J:I+J||0;M.meta=T;if(K&&J===0){J=0-T[P];T[S]=J;T[P]=0}}return N.data(n,D(N,M,S,L,O,J,H,K,F))}function D(X,R,K,F,T,U,L,I,H){var P=false,O=L===true&&I===true;R=R||{};if(!R.original){R.original={};P=true}R.properties=R.properties||{};R.secondary=R.secondary||{};var Q=R.meta,V=R.original,M=R.properties,S=R.secondary;for(var W=o.length-1;W>=0;W--){var G=o[W]+"transition-property",N=o[W]+"transition-duration",J=o[W]+"transition-timing-function";K=(O?o[W]+"transform":K);if(P){V[G]=X.css(G)||"";V[N]=X.css(N)||"";V[J]=X.css(J)||""}S[K]=O?v(Q.left,Q.top,H):U;M[G]=(M[G]?M[G]+",":"")+K;M[N]=(M[N]?M[N]+",":"")+F+"ms";M[J]=(M[J]?M[J]+",":"")+T}return R}function p(G){for(var F in G){if((F=="width"||F=="height")&&(G[F]=="show"||G[F]=="hide"||G[F]=="toggle")){return true}}return false}function d(G){for(var F in G){return false}return true}function C(F){f=E(F);return parseFloat(F.replace(/px/i,""))}function q(I,H,F){var G=s.inArray(I,k)>-1;if((I=="width"||I=="height")&&(H===parseFloat(F.css(I)))){G=false}return G}s.extend({toggle3DByDefault:function(){return g=!g},toggleDisabledByDefault:function(){return w=!w}});s.fn.translation=function(){if(!this[0]){return null}var J=this[0],G=window.getComputedStyle(J,null),K={x:0,y:0};if(G){for(var I=o.length-1;I>=0;I--){var H=G.getPropertyValue(o[I]+"transform");if(H&&(/matrix/i).test(H)){var F=H.replace(/^matrix\(/i,"").split(/, |\)$/g);K={x:parseInt(F[4],10),y:parseInt(F[5],10)};break}}}return K};s.fn.animate=function(G,H,M,O){G=G||{};var I=!(typeof G.bottom!=="undefined"||typeof G.right!=="undefined"),N=s.speed(H,M,O),F=this,L=0,K=function(){L--;if(L===0){if(typeof N.complete==="function"){N.complete.apply(F[0],arguments)}}},J=(typeof G.avoidCSSTransitions!=="undefined")?G.avoidCSSTransitions:w;if(J===true||!z||d(G)||p(G)||N.duration<=0||(s.fn.animate.defaults.avoidTransforms===true&&G.avoidTransforms!==false)){return u.apply(this,arguments)}return this[N.queue===true?"queue":"each"](function(){var Z=s(this),Q=s.extend({},N),V=function(){var ae=Z.data(n)||{original:{}},ad={};if(G.leaveTransforms!==true){for(var ac=o.length-1;ac>=0;ac--){ad[o[ac]+"transform"]=""}if(I&&typeof ae.meta!=="undefined"){for(var ab=0,aa;(aa=t[ab]);++ab){ad[aa]=ae.meta[aa+"_o"]+f}}}Z.unbind(a).css(ae.original).css(ad).data(n,null);if(G.opacity==="hide"){Z.css({display:"none",opacity:""})}K.call(Z)},S={bounce:c+"0.0, 0.35, .5, 1.3"+A,linear:"linear",swing:"ease-in-out",easeInQuad:c+"0.550, 0.085, 0.680, 0.530"+A,easeInCubic:c+"0.550, 0.055, 0.675, 0.190"+A,easeInQuart:c+"0.895, 0.030, 0.685, 0.220"+A,easeInQuint:c+"0.755, 0.050, 0.855, 0.060"+A,easeInSine:c+"0.470, 0.000, 0.745, 0.715"+A,easeInExpo:c+"0.950, 0.050, 0.795, 0.035"+A,easeInCirc:c+"0.600, 0.040, 0.980, 0.335"+A,easeInBack:c+"0.600, -0.280, 0.735, 0.045"+A,easeOutQuad:c+"0.250, 0.460, 0.450, 0.940"+A,easeOutCubic:c+"0.215, 0.610, 0.355, 1.000"+A,easeOutQuart:c+"0.165, 0.840, 0.440, 1.000"+A,easeOutQuint:c+"0.230, 1.000, 0.320, 1.000"+A,easeOutSine:c+"0.390, 0.575, 0.565, 1.000"+A,easeOutExpo:c+"0.190, 1.000, 0.220, 1.000"+A,easeOutCirc:c+"0.075, 0.820, 0.165, 1.000"+A,easeOutBack:c+"0.175, 0.885, 0.320, 1.275"+A,easeInOutQuad:c+"0.455, 0.030, 0.515, 0.955"+A,easeInOutCubic:c+"0.645, 0.045, 0.355, 1.000"+A,easeInOutQuart:c+"0.770, 0.000, 0.175, 1.000"+A,easeInOutQuint:c+"0.860, 0.000, 0.070, 1.000"+A,easeInOutSine:c+"0.445, 0.050, 0.550, 0.950"+A,easeInOutExpo:c+"1.000, 0.000, 0.000, 1.000"+A,easeInOutCirc:c+"0.785, 0.135, 0.150, 0.860"+A,easeInOutBack:c+"0.680, -0.550, 0.265, 1.550"+A},U={},T=S[Q.easing||"swing"]?S[Q.easing||"swing"]:Q.easing||"swing";for(var P in G){if(s.inArray(P,x)===-1){var W=s.inArray(P,t)>-1,Y=j(Z,G[P],P,(W&&G.avoidTransforms!==true));if(G.avoidTransforms!==true&&q(P,Y,Z)){m(Z,P,Q.duration,T,W&&G.avoidTransforms===true?Y+f:Y,W&&G.avoidTransforms!==true,I,G.useTranslate3d===true)}else{U[P]=G[P]}}}Z.unbind(a);var R=Z.data(n);if(R&&!d(R)&&!d(R.secondary)){L++;Z.css(R.properties);var X=R.secondary;setTimeout(function(){Z.bind(a,V).css(X)})}else{Q.queue=false}if(!d(U)){L++;u.apply(Z,[U,{duration:Q.duration,easing:s.easing[Q.easing]?Q.easing:(s.easing.swing?"swing":"linear"),complete:K,queue:Q.queue}])}return true})};s.fn.animate.defaults={};s.fn.stop=function(H,F,G){if(!z){return r.apply(this,[H,F])}if(H){this.queue([])}this.each(function(){var K=s(this),N=K.data(n);if(N&&!d(N)){var L,M={};if(F){M=N.secondary;if(!G&&typeof N.meta.left_o!==undefined||typeof N.meta.top_o!==undefined){M.left=typeof N.meta.left_o!==undefined?N.meta.left_o:"auto";M.top=typeof N.meta.top_o!==undefined?N.meta.top_o:"auto";for(L=o.length-1;L>=0;L--){M[o[L]+"transform"]=""}}}else{if(!d(N.secondary)){var J=window.getComputedStyle(K[0],null);if(J){for(var O in N.secondary){if(N.secondary.hasOwnProperty(O)){O=O.replace(B,"-$1").toLowerCase();M[O]=J.getPropertyValue(O);if(!G&&(/matrix/i).test(M[O])){var I=M[O].replace(/^matrix\(/i,"").split(/, |\)$/g);M.left=(parseFloat(I[4])+parseFloat(K.css("left"))+f)||"auto";M.top=(parseFloat(I[5])+parseFloat(K.css("top"))+f)||"auto";for(L=o.length-1;L>=0;L--){M[o[L]+"transform"]=""}}}}}}}K.unbind(a).css(N.original).css(M).data(n,null)}else{r.apply(K,[H,F])}});return this}})(jq18,jq18.fn.animate,jq18.fn.stop);