1 AJS.fx={_shades:{0:"ffffff",1:"ffffee",2:"ffffdd",3:"ffffcc",4:"ffffbb",5:"ffffaa",6:"ffff99"},highlight:function(_1,_2){
2 var _3=new AJS.fx.Base();
5 _3.options.duration=600;
6 AJS.update(_3,{increase:function(){
8 _1.style.backgroundColor="transparent";
10 _1.style.backgroundColor="#"+AJS.fx._shades[Math.floor(this.now)];
13 return _3.custom(6,0);
14 },fadeIn:function(_4,_5){
23 var s=new AJS.fx.Style(_4,"opacity",_5);
24 return s.custom(_5.from,_5.to);
25 },fadeOut:function(_7,_8){
34 var s=new AJS.fx.Style(_7,"opacity",_8);
35 return s.custom(_8.from,_8.to);
36 },setWidth:function(_a,_b){
37 var s=new AJS.fx.Style(_a,"width",_b);
38 return s.custom(_b.from,_b.to);
39 },setHeight:function(_d,_e){
40 var s=new AJS.fx.Style(_d,"height",_e);
41 return s.custom(_e.from,_e.to);
43 AJS.fx.Base=new AJS.Class({init:function(){
44 AJS.bindMethods(this);
45 },setOptions:function(_10){
46 this.options=AJS.update({onStart:function(){
47 },onComplete:function(){
48 },transition:AJS.fx.Transitions.sineInOut,duration:500,wait:true,fps:50},_10||{});
50 var _11=new Date().getTime();
51 if(_11<this.time+this.options.duration){
52 this.cTime=_11-this.time;
55 setTimeout(AJS.$b(this.options.onComplete,this,[this.elm]),10);
61 this.now=this.compute(this.from,this.to);
62 },compute:function(_12,to){
64 return this.options.transition(this.cTime,_12,_14,this.options.duration);
65 },clearTimer:function(){
66 clearInterval(this.timer);
69 },_start:function(_15,to){
70 if(!this.options.wait){
76 setTimeout(AJS.$p(this.options.onStart,this.elm),10);
79 this.time=new Date().getTime();
80 this.timer=setInterval(this.step,Math.round(1000/this.options.fps));
82 },custom:function(_17,to){
83 return this._start(_17,to);
88 },setStyle:function(elm,_1b,val){
89 if(this.property=="opacity"){
90 AJS.setOpacity(elm,val);
92 AJS.setStyle(elm,_1b,val);
95 AJS.fx.Style=AJS.fx.Base.extend({init:function(elm,_1e,_1f){
100 },increase:function(){
101 this.setStyle(this.elm,this.property,this.now);
103 AJS.fx.Styles=AJS.fx.Base.extend({init:function(elm,_21){
106 this.setOptions(_21);
110 this.now[p]=this.compute(this.from[p],this.to[p]);
112 },custom:function(obj){
113 if(this.timer&&this.options.wait){
122 return this._start(_23,to);
123 },increase:function(){
124 for(var p in this.now){
125 this.setStyle(this.elm,p,this.now[p]);
128 AJS.fx.Transitions={linear:function(t,b,c,d){
130 },sineInOut:function(t,b,c,d){
131 return -c/2*(Math.cos(Math.PI*t/d)-1)+b;