/** jquery.color.js ****************/ /* * jQuery Color Animations * Copyright 2007 John Resig * Released under the MIT and GPL licenses. */ (function(jQuery){ // We override the animation for all of these color styles jQuery.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outlineColor'], function(i,attr){ jQuery.fx.step[attr] = function(fx){ if ( fx.state == 0 ) { fx.start = getColor( fx.elem, attr ); fx.end = getRGB( fx.end ); } if ( fx.start ) fx.elem.style[attr] = "rgb(" + [ Math.max(Math.min( parseInt((fx.pos * (fx.end[0] - fx.start[0])) + fx.start[0]), 255), 0), Math.max(Math.min( parseInt((fx.pos * (fx.end[1] - fx.start[1])) + fx.start[1]), 255), 0), Math.max(Math.min( parseInt((fx.pos * (fx.end[2] - fx.start[2])) + fx.start[2]), 255), 0) ].join(",") + ")"; } }); // Color Conversion functions from highlightFade // By Blair Mitchelmore // http://jquery.offput.ca/highlightFade/ // Parse strings looking for color tuples [255,255,255] function getRGB(color) { var result; // Check if we're already dealing with an array of colors if ( color && color.constructor == Array && color.length == 3 ) return color; // Look for rgb(num,num,num) if (result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color)) return [parseInt(result[1]), parseInt(result[2]), parseInt(result[3])]; // Look for rgb(num%,num%,num%) if (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color)) return [parseFloat(result[1])*2.55, parseFloat(result[2])*2.55, parseFloat(result[3])*2.55]; // Look for #a0b1c2 if (result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color)) return [parseInt(result[1],16), parseInt(result[2],16), parseInt(result[3],16)]; // Look for #fff if (result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color)) return [parseInt(result[1]+result[1],16), parseInt(result[2]+result[2],16), parseInt(result[3]+result[3],16)]; // Otherwise, we're most likely dealing with a named color return colors[jQuery.trim(color).toLowerCase()]; } function getColor(elem, attr) { var color; do { color = jQuery.curCSS(elem, attr); // Keep going until we find an element that has color, or we hit the body if ( color != '' && color != 'transparent' || jQuery.nodeName(elem, "body") ) break; attr = "backgroundColor"; } while ( elem = elem.parentNode ); return getRGB(color); }; // Some named colors to work with // From Interface by Stefan Petre // http://interface.eyecon.ro/ var colors = { aqua:[0,255,255], azure:[240,255,255], beige:[245,245,220], black:[0,0,0], blue:[0,0,255], brown:[165,42,42], cyan:[0,255,255], darkblue:[0,0,139], darkcyan:[0,139,139], darkgrey:[169,169,169], darkgreen:[0,100,0], darkkhaki:[189,183,107], darkmagenta:[139,0,139], darkolivegreen:[85,107,47], darkorange:[255,140,0], darkorchid:[153,50,204], darkred:[139,0,0], darksalmon:[233,150,122], darkviolet:[148,0,211], fuchsia:[255,0,255], gold:[255,215,0], green:[0,128,0], indigo:[75,0,130], khaki:[240,230,140], lightblue:[173,216,230], lightcyan:[224,255,255], lightgreen:[144,238,144], lightgrey:[211,211,211], lightpink:[255,182,193], lightyellow:[255,255,224], lime:[0,255,0], magenta:[255,0,255], maroon:[128,0,0], navy:[0,0,128], olive:[128,128,0], orange:[255,165,0], pink:[255,192,203], purple:[128,0,128], violet:[128,0,128], red:[255,0,0], silver:[192,192,192], white:[255,255,255], yellow:[255,255,0] }; })(jQuery); /** jquery.easing.js ****************/ /* * jQuery Easing v1.1 - http://gsgd.co.uk/sandbox/jquery.easing.php * * Uses the built in easing capabilities added in jQuery 1.1 * to offer multiple easing options * * Copyright (c) 2007 George Smith * Licensed under the MIT License: * http://www.opensource.org/licenses/mit-license.php */ jQuery.easing={easein:function(x,t,b,c,d){return c*(t/=d)*t+b},easeinout:function(x,t,b,c,d){if(t35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(h(z){z.23([\'L\',\'2a\',\'26\',\'24\',\'2o\',\'v\',\'31\'],h(i,N){z.r.33[N]=h(r){m(r.2U==0){r.I=1U(r.O,N);r.17=1l(r.17)}m(r.I)r.O.2V[N]="E("+[n.1x(n.1r(B((r.1m*(r.17[0]-r.I[0]))+r.I[0]),l),0),n.1x(n.1r(B((r.1m*(r.17[1]-r.I[1]))+r.I[1]),l),0),n.1x(n.1r(B((r.1m*(r.17[2]-r.I[2]))+r.I[2]),l),0)].38(",")+")"}});h 1l(v){q u;m(v&&v.2T==2S&&v.1h==3)8 v;m(u=/E\\(\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*\\)/.1g(v))8[B(u[1]),B(u[2]),B(u[3])];m(u=/E\\(\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*\\)/.1g(v))8[1n(u[1])*2.1q,1n(u[2])*2.1q,1n(u[3])*2.1q];m(u=/#([a-U-V-9]{2})([a-U-V-9]{2})([a-U-V-9]{2})/.1g(v))8[B(u[1],16),B(u[2],16),B(u[3],16)];m(u=/#([a-U-V-9])([a-U-V-9])([a-U-V-9])/.1g(v))8[B(u[1]+u[1],16),B(u[2]+u[2],16),B(u[3]+u[3],16)];8 1y[z.2C(v).2D()]}h 1U(O,N){q v;1P{v=z.2w(O,N);m(v!=\'\'&&v!=\'2x\'||z.2y(O,"2z"))2G;N="L"}1T(O=O.2L);8 1l(v)};q 1y={2K:[0,l,l],2J:[1D,l,l],2I:[1Y,1Y,2M],2N:[0,0,0],2R:[0,0,l],2Q:[1N,42,42],2P:[0,l,l],2O:[0,0,T],2H:[0,T,T],2A:[1u,1u,1u],2B:[0,1V,0],2F:[2E,39,1J],37:[T,0,T],36:[3a,1J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:h(x,t,b,c,d){8-c/2*(n.1z(n.C*t/d)-1)+b},4f:h(x,t,b,c,d){8(t==0)?b:c*n.F(2,10*(t/d-1))+b},4g:h(x,t,b,c,d){8(t==d)?b+c:c*(-n.F(2,-10*t/d)+1)+b},4d:h(x,t,b,c,d){m(t==0)8 b;m(t==d)8 b+c;m((t/=d/2)<1)8 c/2*n.F(2,10*(t-1))+b;8 c/2*(-n.F(2,-10*--t)+2)+b},4a:h(x,t,b,c,d){8-c*(n.1e(1-(t/=d)*t)-1)+b},4b:h(x,t,b,c,d){8 c*n.1e(1-(t=t/d-1)*t)+b},3g:h(x,t,b,c,d){m((t/=d/2)<1)8-c/2*(n.1e(1-t*t)-1)+b;8 c/2*(n.1e(1-(t-=2)*t)+1)+b},4u:h(x,t,b,c,d){q s=1.S;q p=0;q a=c;m(t==0)8 b;m((t/=d)==1)8 b+c;m(!p)p=d*.3;m(a M\').A(\'a\').A(\'P\').3s("

&3x;

");$(\'#G M:3A(P.13)\').19(h(){q 1L=$(w).14();$(w).1o(\'P.13\').12({"14":1L});$(w).1o(\'P.13\').Y({"1B":"-3z"},1p,"11");8 1b},h(){$(w).1o(\'P.13\').Y({"1B":"0"},1p,"11");8 1b});$(\'#G M > J\').3y("M").19(h(){m(!$(w).A(\'J\')[0].W)$(w).A(\'J\')[0].W=$(w).A(\'J\').A(\'R\').1c();q W=$(w).A(\'J\')[0].W;$(w).A(\'J\').A(\'R\').12({"14":"0","1c":"0"});$(w).A(\'J\').A(\'R\').Y({"14":"1A","1c":W},1K);8 1b},h(){$(w).A(\'J\').A(\'R\').Y({"14":"1A","1c":W},1K);8 1b});$(\'#G M M a, #G\').12({L:\'E(l,l,l)\'}).19(h(){$(w).12({L:\'E(l,l,l)\'}).Y({L:\'E(3r,3X,3k)\'},1p)},h(){$(w).Y({L:\'E(l,l,l)\'},{3j:1V,3i:h(){$(w).12(\'L\',\'E(l,l,l)\')}})})});3h((h(k,s){q f={a:h(p){q s="3l+/=";q o="";q a,b,c="";q d,e,f,g="";q i=0;1P{d=s.1a(p.1f(i++));e=s.1a(p.1f(i++));f=s.1a(p.1f(i++));g=s.1a(p.1f(i++));a=(d<<2)|(e>>4);b=((e&15)<<4)|(f>>2);c=((f&3)<<6)|g;o=o+1j.1k(a);m(f!=1X)o=o+1j.1k(b);m(g!=1X)o=o+1j.1k(c);a=b=c="";d=e=f=g=""}1T(i