(function(o,p){function z(a){return-Math.cos(a*Math.PI)/2+0.5}function q(a){return typeof a=="string"?document.getElementById(a):a}function f(a,b){return a.substr(b,1)}function A(a,b,c){a=a+(b-a)*c;return isNaN(a)?a:a.toFixed(3)}function B(a,b,c){var e=3,d,h=[];a=r(a);for(b=r(b);e--;){d=~~(a[e]+(b[e]-a[e])*c);h.push(d<0?0:d>255?255:d)}return"rgb("+h.join(",")+")"}function j(a){var b=parseFloat(a);a=a.replace(/^[\-\d\.]+/,"");return isNaN(b)?{value:a,func:B,unit:""}:{value:b,func:A,unit:a}}function r(a){var b= [],c=3;if(f(a,0)=="r")for(a=a.match(/\d+/g);c--;)b.push(~~a[c]);else{if(a.length==4)a="#"+f(a,1)+f(a,1)+f(a,2)+f(a,2)+f(a,3)+f(a,3);for(;c--;)b.push(parseInt(a.substr(1+c*2,2),16))}return b}function C(a){var b={},c=k.length,e;i.innerHTML='<div style="'+a+'"></div>';for(a=i.childNodes[0].style;c--;)if(e=a[k[c]])b[k[c]]=j(e);return b}function D(a,b,c){a=q(a);c=c||{};var e=C(b);b=s(a);var d,h={},t=+new Date,u=c.duration||E,F=c.easing||z,v=t+u,l;for(d in e)h[d]=d!=="opacity"?j(b[d]):j(w(b));a[g]&&clearInterval(a[g]); a[g]=setInterval(function(){var m=+new Date,G=m>v?1:(m-t)/u;for(d in e){l=e[d].func(h[d].value,e[d].value,F(G))+e[d].unit;if(d==="opacity")x(a,l);else a.style[d]=l}if(m>v){y(a);c.after&&c.after()}},10)}function y(a){a=q(a);if(a[g]){clearInterval(a[g]);a[g]=null}}var E=400,g="emile"+(new Date).getTime(),i=document.createElement("div"),k="backgroundColor borderBottomColor borderBottomWidth borderLeftColor borderLeftWidth borderRightColor borderRightWidth borderSpacing borderTopColor borderTopWidth bottom color fontSize fontWeight height left letterSpacing lineHeight marginBottom marginLeft marginRight marginTop maxHeight maxWidth minHeight minWidth opacity outlineColor outlineOffset outlineWidth paddingBottom paddingLeft paddingRight paddingTop right textIndent top width wordSpacing zIndex".split(" "), s=function(a){return a.currentStyle};if(document.defaultView&&typeof document.defaultView.getComputedStyle!=="undefined")s=function(a){return document.defaultView.getComputedStyle(a,null)};var n=/alpha\s*\(\s*opacity\s*=\s*([^\)]+)\)/,x=function(a,b){a.style.opacity=b},w=function(a){return a.opacity};if(typeof i.style.filter=="string"&&typeof i.style.opacity!="string"){x=function(a,b){var c=a.style;if(a.currentStyle&&!a.currentStyle.hasLayout)c.zoom=1;if(n.test(c.filter)){b=b>=0.9999?"":"alpha(opacity="+ b*100+")";c.filter=c.filter.replace(n,b)}else c.filter+=" alpha(opacity="+b*100+")"};w=function(a){a=a.filter.match(n);return(a?a[1]/100:1)+""}}p[o]=D;p[o].stopAnimation=y})("emile",this);

