//Copyright (c) 2011. Adobe Systems Incorporated. // 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 Adobe Systems Incorporated nor the names of its // 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. // // AdobePatentID="B1316" // AdobePatentID="B1318" // // edge.0.0.1.min.js - version 0.1.1 (function(e){if(typeof e.Edge==="undefined")e.Edge={};var f=e.Edge;f.version="0.1.3";f.cloneJSONObject=function(n){var m,c;if(e.isArray(n)){m=[];var i,j=n.length;for(i=0;i=0;c--)this.observers[c].deleted&&this.observers.splice(c,1)}},enableNotifications:function(){if(--this.suppressNotifications<0)this.suppressNotifications=0,f.Debug.reportError("Unbalanced enableNotifications() call!\n")},disableNotifications:function(){++this.suppressNotifications}});f.trimString=function(f){return f.replace(/^\s+|\s+$/g, "")}})(jQuery);(function(e,f){function n(){f.Notifier.call(this);this.animationID="animID-"+n.nextID++}function m(a,b,c){f.Animation.call(this);if(typeof a=="function")this.handler=a;else if(typeof a=="string")this.eventType=a;this.handlerContext=c;this.data=b;this.isTrigger=!0}function c(a,b,o,h){f.Notifier.call(this);this.animation=a;this.position=0;this.duration=-1;this.easing=typeof h=="function"?h:h&&e.easing[h]?h:c.defaultEasing;if(b!==void 0)this.position=b;if(o!==void 0)this.duration=o;this.timeline=null; this.dScale=1;this.dDuration=0;this.done=!1}function i(a){this.parameters={};a&&e.extend(this,a)}function j(a){f.Animation.call(this);e.extend(this,f.Timeline.config);e.extend(this,a);this.startPosition=this.timerStart=this.timer=0;this.currentPosition=-1;this.duration=0;this.interval=1E3/this.fps;this.objects=[]}var l={};n.nextID=1;e.extend(n.prototype,f.Notifier.prototype,{constructor:n,_setup:function(){},_update:function(){},getDuration:function(){return 0}});e.extend(m.prototype,n.prototype, {constructor:m,_update:function(a){if(!this.fired)this.fired=!0,this.handler?this.handler.call(this.handlerContext,a,this.data):this.eventType&&this.timeline&&this.timeline.notifyObservers(this.eventType,{elapsed:a,data:this.data})},setup:function(a,b){this.fired=b.startingFromCurrent?b.playDirection!="reverse"?a.currentPosition>=b.position:a.currentPosition<=b.position:b.playDirection!="reverse"?a.currentPosition>b.position:a.currentPosition=0?1:0:(c>=h&&(c=h),c<=0&&(c=0),i=e.easing[this.easing](c/ h,c,0,1,h));this.animation.update(c*this.dScale,i,b)}(b.playDirection=="reverse"?c<=0:c>=h)&&this.complete()}},complete:function(){this.done=!0;this.timeline&&this.timeline._updateComplete(this)},getPosition:function(){return this.position},setPosition:function(a){this.position=a},getDuration:function(){return this.duration!=-1?this.duration:this.animation&&this.animation.getDuration?this.animation.getDuration():0},setDuration:function(a){this.duration=a>=0?a:-1}});j.config={dropFrames:!0,fps:60}; var p=[];j.tick=function(){var a=p.slice(0);p=[];for(var b=a.length,c=0;c=j.position:a<=j.position+j.duration))this.currentPosition=j.position}for(e=0;e=j.position:a<=j.position+j.duration)&&j._update(a-j.position,c);for(e=0;e=j.position:a<=j.position+j.duration)&&j.animation._update(a-j.position,c);this.notifyObservers("postUpdate", {elapsed:a,easingConst:b,context:c});this.notifyObservers("update",{elapsed:a,easingConst:b});this.currentContext=null},_handleTimer:function(a,b){var c=(new Date).getTime()-this.timerStart,h=a.playDirection=="reverse",h=this.startPosition+(h?-c:c);this.currentPosition=h=Math.max(0,Math.min(h,this.duration));this._update(h,1,a);h=a.playDirection=="reverse";(!h?this.currentPosition0)?a.externalClock?p.push(b):this.timer=setTimeout(b,this.interval):(this.stop(),this.notifyObservers("complete", {elapsed:c}))},_setup:function(a,b){f.Animation.prototype._setup.call(this,a);for(var c=this.objects,h=this.objects.length,i=0;i1&&!this.valueTemplate&&alert("Multiple values specified for attribute tween, but no template was provided!");l.length>1&&(!this.fromValue||!e.isArray(this.fromValue))&&alert("Multiple values specified for attribute tween, but no from values specified!"); if(this.fromValue){l=this.fromValues=[];if((c=this.parseValue(this.fromValue))&&c.length>0)this.fromValue=c;else if(!e.isArray(this.fromValue))this.fromValue=[this.fromValue];i=this.fromValue.length;for(c=0;c0))if(h){j=h.length;e=[];for(o=0;o0)for(var c=c.fromValues=[],a=b.length,f=0;f1?e[1]:"0px";g.translateZ=e.length>2? e[2]:"0px";d.translate3d=d.translate=d.translateX=d.translateY=d.translateZ=!0;break;case "translate":g.translateX=e[0];g.translateY=e.length>1?e[1]:"0px";d.translate3d=d.translate=d.translateX=d.translateY=!0;break;case "translateX":g.translateX=e[0];d.translate3d=d.translate=d.translateX=!0;break;case "translateY":g.translateY=e[0];d.translate3d=d.translate=d.translateY=!0;break;case "translateZ":g.translateZ=e[0];d.translate3d=d.translateZ=!0;break;case "rotate3d":return d.rotate3d=d.rotate=d.rotateX= d.rotateY=d.rotateZ=!0,null;case "rotateX":g.rotateX=e[0];d.rotate3d=d.rotateX=!0;break;case "rotateY":g.rotateY=e[0];d.rotate3d=d.rotateY=!0;break;case "rotateZ":case "rotate":g.rotateZ=e[0];d.rotate3d=d.rotate=d.rotateZ=!0;break;case "skew":g.skewX=e[0];g.skewY=e.length>1?e[1]:"0px";d.skew=d.skewX=d.skewY=!0;break;case "skewX":g.skewX=e[0];d.skew=d.skewX=!0;break;case "skewY":g.skewY=e[0];d.skew=d.skewY=!0;break;case "scale3d":g.scaleX=e[0];g.scaleY=e.length>1?e[1]:"0px";g.scaleZ=e.length>2?e[2]: "0px";d.scale3d=d.scale=d.scaleX=d.scaleY=d.scaleZ=!0;break;case "scale":g.scaleX=e[0];g.scaleY=e.length>1?e[1]:"0px";d.scale=d.scaleX=d.scaleY=!0;break;case "scaleX":g.scaleX=e[0];d.scale3d=d.scale=d.scaleX=!0;break;case "scaleY":g.scaleY=e[0];d.scale3d=d.scale=d.scaleY=!0;break;case "scaleZ":g.scaleZ=e[0];d.scale3d=d.scaleZ=!0;break;case "perspective":d.perspective=!0}}return g};f.TransformTween=m;c=function(a){this.handlers={};this.timeline=a};c.Register=function(a,k,b){var d=a.updateFinalizer; if(typeof d=="undefined")d=new c(a),a.updateFinalizer=d,a.addObserver(d);d.handlers[k]=b};c.unRegister=function(a,k){var b=a.updateFinalizer;typeof b!="undefined"&&delete b.handlers[k]};e.extend(c.prototype,{_finalizeUpdate:function(a,k){var b={elapsed:a,context:k},d;for(d in this.handlers)if(this.handlers.hasOwnProperty(d)){var g=this.handlers[d];if(g.onFinalUpdate)g.onFinalUpdate(b)}},postUpdate:function(a,k){this._finalizeUpdate(k.elapsed,k.context)},complete:function(){this.timeline&&this.timeline.removeObserver(this); this.timeline.updateFinalizer=void 0},_applyTransform:function(a){var k=e.data(this.element,m.dataName);m.applyTransform(this.element,k,k.tween,a.context)}});m.UpdateFinalizer=c;if(typeof CSSMatrix=="undefined")if(typeof WebKitCSSMatrix!="undefined")f.CSSMatrix=WebKitCSSMatrix;else{if(typeof MozCSSMatrix!="undefined")f.CSSMatrix=MozCSSMatrix}else f.CSSMatrix=CSSMatrix;var z=function(a,k){for(var b=0,d=a.length,g=0;g1?s(g[1]).num:0;h=g.length>2?s(g[2]).num:0;b.translate3d(d, e,h);break;case "translate":d=s(g[0]).num;e=g.length>1?s(g[1]).num:0;b.translate3d(d,e,0);break;case "translateX":g=s(g[0]).num;b.translate3d(g,0,0);break;case "translateY":g=s(g[0]).num;b.translate3d(0,g,0);break;case "translateZ":g=s(g[0]).num;b.translate3d(0,0,g);break;case "rotate3d":if(g.length>=3)d=s(g[0]).num,e=s(g[1]).num,h=s(g[2]).num,g=x(g[3]),b.rotate3d(d,e,h,g,!0);break;case "rotateX":g=x(g[0]);b.rotateX(g);break;case "rotateY":g=x(g[0]);b.rotateY(g);break;case "rotateZ":case "rotate":g= x(g[0]);b.rotateZ(g);break;case "skew":d=x(g[0]);g=x(g[1]);b.skew(d,g);break;case "skewX":g=x(g[0]);b.skew(g,0);break;case "skewY":g=x(g[0]);b.skew(0,g);break;case "scale3d":d=parseFloat(g[0]);e=g.length>1?parseFloat(g[1]):1;g=g.length>2?parseFloat(g[2]):1;b.scale(d,e,g);break;case "scale":d=parseFloat(g[0]);e=g.length>1?parseFloat(g[1]):1;b.scale(d,e,1);break;case "scaleX":g=parseFloat(g[0]);b.scale(g,1,1);break;case "scaleY":g=parseFloat(g[0]);b.scale(1,g,1);break;case "scaleZ":g=parseFloat(g[0]); b.scale(1,1,g);break;case "perspective":g=parseFloat(g[0]),b.perspective(g)}}return b};e.extend(i.prototype,{identity:function(){for(var a=0;a<4;a++){this[a]=Array(4);for(var b=0;b<4;b++)this[a][b]=0;this[a][a]=1}return this},determinant:function(){var a=this[0][0],b=this[0][1],c=this[0][2],d=this[0][3],g=this[1][0],e=this[1][1],h=this[1][2],f=this[1][3],i=this[2][0],j=this[2][1],o=this[2][2],C=this[2][3],l=this[3][0],m=this[3][1],n=this[3][2],r=this[3][3];return d*h*j*l-c*f*j*l-d*e*o*l+b*f*o*l+c* e*C*l-b*h*C*l-d*h*i*m+c*f*i*m+d*g*o*m-a*f*o*m-c*g*C*m+a*h*C*m+d*e*i*n-b*f*i*n-d*g*j*n+a*f*j*n+b*g*C*n-a*e*C*n-c*e*i*r+b*h*i*r+c*g*j*r-a*h*j*r-b*g*o*r+a*e*o*r},normalizeTransform:function(){if(this[3][3]===0)return!1;for(var a=0;a<4;a++)for(var b=0;b<4;b++)this[a][b]/=this[3][3];return!0},transpose:function(){for(var a=new i,b=0;b<4;b++)for(var c=0;c<4;c++)a[b][c]=this[c][b];return a},toCSSMatrix:function(){var a=new f.CSSMatrix;a.m11=this[0][0];a.m12=this[0][1];a.m13=this[0][2];a.m14=this[0][3];a.m21= this[1][0];a.m22=this[1][1];a.m23=this[1][2];a.m24=this[1][3];a.m31=this[2][0];a.m32=this[2][1];a.m33=this[2][2];a.m34=this[2][3];a.m41=this[3][0];a.m42=this[3][1];a.m43=this[3][2];a.m44=this[3][3];return a},_inverse:function(){return this},inverse:function(){if(f.CSSMatrix!==void 0){var a=this.toCSSMatrix().inverse();return i.fromCSSMatrix(a)}return this._inverse()},rotate3d:function(a,b,c,d,g){var e=new f.Matrix4x4;g||(d*=o);d&&(g=Math.sqrt(a*a+b*b+c*c),g!==0&&(a/=g,b/=g,c/=g,g=l(d),d=p(d),e[0][0]= 1+(1-d)*(a*a-1),e[1][0]=-c*g+(1-d)*a*b,e[2][0]=b*g+(1-d)*a*c,e[3][0]=0,e[0][1]=c*g+(1-d)*a*b,e[1][1]=1+(1-d)*(b*b-1),e[2][1]=-a*g+(1-d)*b*c,e[3][1]=0,e[0][2]=-b*g+(1-d)*a*c,e[1][2]=a*g+(1-d)*b*c,e[2][2]=1+(1-d)*(c*c-1),e[3][2]=0,e[0][3]=0,e[1][3]=0,e[2][3]=0,e[3][3]=1));return this.preMultiplyBy(e)},rotateX:function(a){return this.rotate3d(1,0,0,a)},rotateY:function(a){return this.rotate3d(0,1,0,a)},rotateZ:function(a){return this.rotate3d(0,0,1,a)},translate3d:function(a,b,c){var d=new f.Matrix4x4; d[3][0]+=a;d[3][1]+=b;d[3][2]+=c;return this.preMultiplyBy(d)},scale:function(a,b,c){if(a!=1||b!=1||c!=1){var d=new f.Matrix4x4;d[0][0]=a;d[1][1]=b;d[2][2]=c;return this.preMultiplyBy(d)}return this},skew:function(b,c,e){e||(b*=o,c*=o);b!==0&&(e=new f.Matrix4x4,e[1][0]=a(b),this.preMultiplyBy(e));c!==0&&(b=new f.Matrix4x4,b[0][1]=a(c),this.preMultiplyBy(b));return this},perspective:function(a){if(a!==0){var b=new f.Matrix4x4;b[2][3]=1/a;this.preMultiplyBy(b)}return this},skewByFactors:function(a, b,c){a=new f.Matrix4x4;a[2][1]=c;this.preMultiplyBy(a);a.identity();a[2][0]=c;this.preMultiplyBy(a);a.identity();a[1][0]=c;this.preMultiplyBy(a);return this},applyPerspective:function(a,b,c,d){var e=new f.Matrix4x4;e[0][3]=a;e[1][3]=b;e[2][3]=c;e[3][3]=d;this.preMultiplyBy(e);return this},preMultiplyBy:function(a){var b=a[0][0],c=a[0][1],d=a[0][2],e=a[0][3],h=a[1][0],f=a[1][1],i=a[1][2],j=a[1][3],F=a[2][0],o=a[2][1],l=a[2][2],m=a[2][3],n=a[3][0],r=a[3][1],p=a[3][2],a=a[3][3],u=this[0][0],q=this[0][1], s=this[0][2],A=this[0][3],v=this[1][0],w=this[1][1],x=this[1][2],y=this[1][3],z=this[2][0],G=this[2][1],H=this[2][2],I=this[2][3],J=this[3][0],K=this[3][1],L=this[3][2],M=this[3][3];this[0][0]=b*u+c*v+d*z+e*J;this[0][1]=b*q+c*w+d*G+e*K;this[0][2]=b*s+c*x+d*H+e*L;this[0][3]=b*A+c*y+d*I+e*M;this[1][0]=h*u+f*v+i*z+j*J;this[1][1]=h*q+f*w+i*G+j*K;this[1][2]=h*s+f*x+i*H+j*L;this[1][3]=h*A+f*y+i*I+j*M;this[2][0]=F*u+o*v+l*z+m*J;this[2][1]=F*q+o*w+l*G+m*K;this[2][2]=F*s+o*x+l*H+m*L;this[2][3]=F*A+o*y+l*I+ m*M;this[3][0]=n*u+r*v+p*z+a*J;this[3][1]=n*q+r*w+p*G+a*K;this[3][2]=n*s+r*x+p*H+a*L;this[3][3]=n*A+r*y+p*I+a*M;return this}});f.Matrix4x4=i;f.decomposeTransform=function(a){var c={},e=new i(a);if(!e.normalizeTransform())return null;c=new i(a);for(a=0;a<3;a++)c[a][3]=0;c[3][3]=1;if(c.determinant(c)===0)return window.edge_authoring_mode&&alert("Bad perspective matrix"),null;var d=Array(4),a=Array(4);if(e[0][3]!==0||e[1][3]!==0||e[2][3]!==0){d[0]=e[0][3];d[1]=e[1][3];d[2]=e[2][3];d[3]=e[3][3];a=c.inverse(); if(!a)return!1;a=a.transpose().rightMultiply(d);e[0][3]=e[1][3]=e[2][3]=0;e[3][3]=1}else a[0]=a[1]=a[2]=0,a[3]=1;c=Array(3);c[0]=e[3][0];e[3][0]=0;c[1]=e[3][1];e[3][1]=0;c[2]=e[3][2];e[3][2]=0;d=Array(3);d[0]=Array(3);d[1]=Array(3);d[2]=Array(3);for(var g=0;g<3;g++)d[g][0]=e[g][0],d[g][1]=e[g][1],d[g][2]=e[g][2];e=Array(3);e[0]=v(d[0]);d[0]=q(d[0]);g=Array(3);g[0]=z(d[0],d[1]);d[1]=w(d[1],d[0],1,-g[0]);e[1]=v(d[1]);d[1]=q(d[1]);e[1]!==0&&(g[0]/=e[1]);g[1]=z(d[0],d[2]);d[2]=w(d[2],d[0],1,-g[1]);g[2]= z(d[1],d[2]);d[2]=w(d[2],d[1],1,-g[2]);e[2]=v(d[2]);e[2]!==0&&(d[2]=q(d[2]));e[2]!==0&&(g[1]/=e[2],g[2]/=e[2]);var h;h=d[1];var f=d[2],o=Array(3);h.length!=3||f.length!=3?h=null:(o[0]=h[1]*f[2]-h[2]*f[1],o[1]=h[2]*f[0]-h[0]*f[2],o[2]=h[0]*f[1]-h[1]*f[0],h=o);if(z(d[0],h)<0)for(h=0;h<3;h++)e[h]*=-1,d[h][0]*=-1,d[h][1]*=-1,d[h][2]*=-1;h=Array(3);h[1]=j(-d[0][2]);p(h[1])!==0?(h[0]=b(d[1][2],d[2][2]),h[2]=b(d[0][1],d[0][0])):(h[0]=b(-d[2][0],d[1][1]),h[2]=0);return c={translation:c,rotation:h,scale:e, skew:g,perspective:a}};f.Timeline.addTweenType("transform",function(a,b,c,d){return new m("transform",a,b,c,d)})})(jQuery,jQuery.Edge,jQuery.Edge.PropertyTween);(function(e,f,n){function m(a,b,c,e,i){f.PropertyTween.call(this,a,b,c,e,i);this.name="colorTween"}e.extend(m.prototype,n.prototype,{constructor:m,getValue:function(a){return e(this).css(a)},setValue:function(a,b,c){e(this).css(b,c)},parseValue:function(a){var b=f.parseColorValue(a);if(b&&b.colorFunction&&b.values){var a=b.values,b=b.colorFunction,c=/hsl/gi;if(b.match(/rgb/gi))if(this.animationColorSpace&&this.animationColorSpace=="HSL")b={r:a[0],g:a[1],b:a[2]},(b=f.rgbToHSL(b))?a.length>3?(a=a[3], a=[b.h,b.s,b.l,a]):a=[b.h,b.s,b.l]:a=[];else if(this.animationColorSpace){if(this.animationColorSpace!="RGB")return a}else this.animationColorSpace="RGB";else if(b.match(c))if(this.animationColorSpace&&this.animationColorSpace=="RGB")b={h:a[0],s:a[1],l:a[2]},(b=f.hslToRGB(b))?a.length>3?(a=a[3],a=[b.r,b.g,b.b,a]):a=[b.r,b.g,b.b]:a=[];else if(this.animationColorSpace){if(this.animationColorSpace!="HSL")return a}else this.animationColorSpace="HSL";a.length==3&&(a[3]=1);return a}},formatValue:function(a){if(a){var b; this.animationColorSpace=="HSL"?(b="hsl",a=a.length==4?b+"a("+a[0]+","+a[1]+"%,"+a[2]+"%,"+a[3]+")":b+"("+a[0]+","+a[1]+"%,"+a[2]+"%)"):(b="rgb",a=a.length==4?b+"a("+a[0]+"%,"+a[1]+"%,"+a[2]+"%,"+a[3]+")":b+"("+a[0]+"%,"+a[1]+"%,"+a[2]+"%)");return a}}});f.ColorTween=m;f.parseColorValue=function(a){if(a){var b=[],c,h,f=/^\s*#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])\s*$/;(h=/^\s*#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})\s*$/.exec(a))?(b=[parseInt(h[1],16)/255*100,parseInt(h[2],16)/255*100,parseInt(h[3], 16)/255*100],c="rgb"):(h=f.exec(a))?(b=[parseInt(h[1]+h[1],16)/255*100,parseInt(h[2]+h[2],16)/255*100,parseInt(h[3]+h[3],16)/255*100],c="rgb"):a=="transparent"&&(b=[0,0,0,0],c="rgb");c||(c=a.match(/\w+/),e.isArray(c)?c=c[0]:c||(c=""),(h=a.match(/\([^\)]*\)/))&&h.length>0&&(h=h[0].replace(/[\(\)]/g,"")));a=/rgb/gi;f=/hsl/gi;if(b.length===0)if(c.match(a))if((f=/^\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*(?:,\s*([0-9](?:\.[0-9]+)?)\s*)?$/.exec(h))&&f.length>=4){for(a=0;a<3;a++)b[a]=f[a+ 1]/255*100;f.length>4&&(f[4]||(f[4]=1),b[3]=f[4])}else{if((h=/^\s*([0-9]{1,3}(?:\.[0-9]+)?)\s*%\s*,\s*([0-9]{1,3}(?:\.[0-9]+)?)\s*%\s*,\s*([0-9]{1,3}(?:\.[0-9]+)?)\s*%\s*(?:,\s*([0-9](?:\.[0-9]+)?)\s*)?$/.exec(h))&&h.length>=4){if(h.length>=5)h.length=5,h[4]||(h[4]=1);for(a=0;a=4){if(h.length>= 5)h.length=5,h[4]||(h[4]=1);for(a=0;a1?a-1:a},p=function(a,b,c,e){return e100||a.l<0||a.l>100)return null;for(;a.h>360;)a.h-=360;for(;a.h<0;)a.h=360+a.h;var b={},e=a.h/360,h=a.s/100,a=a.l/100;if(h===0)b.r=b.g=b.b=1;else{var h=a<=0.5?a*(1+h):a+h-a* h,a=2*a-h,f=l(e+c),i=l(e),e=l(e-c),j=(h-a)*6;b.r=p(a,h,j,f);b.g=p(a,h,j,i);b.b=p(a,h,j,e)}b.r=Math.min(b.r*100,100);b.g=Math.min(b.g*100,100);b.b=Math.min(b.b*100,100);b.r=Math.round(b.r*1E4)/1E4;b.g=Math.round(b.g*1E4)/1E4;b.b=Math.round(b.b*1E4)/1E4;return b};f.rgbToHSL=function(a){if(a===null||a.r<0||a.r>100||a.g<0||a.g>100||a.b<0||a.b>100)return null;var b={h:0,s:0,l:0},c=a.r/100,e=a.g/100,a=a.b/100,f=Math.max(c,e,a),i=Math.min(c,e,a);b.l=(f+i)/2;if(f==i||b.l<=0)return b;var j=f-i;b.s=b.l<=0.5? j/(f+i):j/(2-f-i);b.h=f==a?4+(c-e)/j:f==e?2+(a-c)/j:(e-a)/j;b.h*=60;if(b.h>360)b.h-=360;else if(b.h<0)b.h=360+b.h;b.s=Math.min(b.s*100,100);b.l=Math.min(b.l*100,100);b.h=Math.round(b.h*1E4)/1E4;b.s=Math.round(b.s*1E4)/1E4;b.l=Math.round(b.l*1E4)/1E4;return b};f.Timeline.addTweenType("color",function(a,b,c,e){return new m("color",a,b,c,e)})})(jQuery,jQuery.Edge,jQuery.Edge.PropertyTween);(function(e,f,n,m){function c(a){for(;a&&typeof a.originalEvent!=="undefined";)a=a.originalEvent;return a}function i(a){for(var b={},c,d;a;){c=e.data(a,y);for(d in c)if(c[d])b[d]=b.hasVirtualBinding=!0;a=a.parentNode}return b}function j(){w&&(clearTimeout(w),w=0);w=setTimeout(function(){B=w=0;k.length=0;N=!1;d=!0},e.vmouse.resetTimerDuration)}function l(a,b,d){var g,f;if(!(f=d&&d[a])){if(d=!d)a:{for(d=b.target;d;){if((f=e.data(d,y))&&(!a||f[a]))break a;d=d.parentNode}d=null}f=d}if(f){g=b;var d=g.type, h,i;g=e.Event(g);g.type=a;f=g.originalEvent;h=e.event.props;if(f)for(i=h.length;i;)a=h[--i],g[a]=f[a];if(d.search(/mouse(down|up)|click/)>-1&&!g.which)g.which=1;if(d.search(/^touch/)!==-1&&(a=c(f),d=a.touches,a=a.changedTouches,d=d&&d.length?d[0]:a&&a.length?a[0]:m)){f=0;for(len=v.length;ff||Math.abs(b.pageY-x)>f;flags=i(a.target);t&& !g&&l("vmousecancel",a,flags);l("vmousemove",a,flags);j()}}function h(a){if(!d){d=!0;var b=i(a.target),e;l("vmouseup",a,b);if(!t&&(e=l("vclick",a,b))&&e.isDefaultPrevented())e=c(a).changedTouches[0],k.push({touchID:B,x:e.clientX,y:e.clientY}),N=!0;l("vmouseout",a,b);t=!1;j()}}function r(a){var a=e.data(a,y),b;if(a)for(b in a)if(a[b])return!0;return!1}function u(){}function A(c){var d=c.substr(1);return{setup:function(){r(this)||e.data(this,y,{});e.data(this,y)[c]=!0;q[c]=(q[c]||0)+1;q[c]===1&&D.bind(d, p);e(this).bind(d,u);if(g)q.touchstart=(q.touchstart||0)+1,q.touchstart===1&&D.bind("touchstart",a).bind("touchend",h).bind("touchmove",o).bind("scroll",b)},teardown:function(){--q[c];q[c]||D.unbind(d,p);g&&(--q.touchstart,q.touchstart||D.unbind("touchstart",a).unbind("touchmove",o).unbind("touchend",h).unbind("scroll",b));var f=e(this),i=e.data(this,y);i&&(i[c]=!1);f.unbind(d,u);r(this)||f.removeData(y)}}}var y="virtualMouseBindings",z="virtualTouchID",f="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "), v="clientX clientY pageX pageY screenX screenY".split(" "),q={},w=0,s=0,x=0,t=!1,k=[],N=!1,d=!1,g="addEventListener"in n,D=e(n),O=1,B=0;e.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};for(var E=0;E