AJS.fx={_shades:{0:"ffffff",1:"ffffee",2:"ffffdd",3:"ffffcc",4:"ffffbb",5:"ffffaa",6:"ffff99"},highlight:function(C,A){var B=new AJS.fx.Base();B.elm=AJS.$(C);B.options.duration=600;B.setOptions(A);AJS.update(B,{increase:function(){if(this.now==7){C.style.backgroundColor="#fff"}else{C.style.backgroundColor="#"+AJS.fx._shades[Math.floor(this.now)]}}});return B.custom(6,0)},fadeIn:function(C,A){A=A||{};if(!A.from){A.from=0;AJS.setOpacity(C,0)}if(!A.to){A.to=1}var B=new AJS.fx.Style(C,"opacity",A);return B.custom(A.from,A.to)},fadeOut:function(C,A){A=A||{};if(!A.from){A.from=1}if(!A.to){A.to=0}A.duration=300;var B=new AJS.fx.Style(C,"opacity",A);return B.custom(A.from,A.to)},setWidth:function(C,A){var B=new AJS.fx.Style(C,"width",A);return B.custom(A.from,A.to)},setHeight:function(C,A){var B=new AJS.fx.Style(C,"height",A);return B.custom(A.from,A.to)}};AJS.fx.Base=new AJS.Class({init:function(A){this.options={onStart:function(){},onComplete:function(){},transition:AJS.fx.Transitions.sineInOut,duration:500,wait:true,fps:50};AJS.update(this.options,A);AJS.bindMethods(this)},setOptions:function(A){AJS.update(this.options,A)},step:function(){var A=new Date().getTime();if(A<this.time+this.options.duration){this.cTime=A-this.time;this.setNow()}else{setTimeout(AJS.$b(this.options.onComplete,this,[this.elm]),10);this.clearTimer();this.now=this.to}this.increase()},setNow:function(){this.now=this.compute(this.from,this.to)},compute:function(C,B){var A=B-C;return this.options.transition(this.cTime,C,A,this.options.duration)},clearTimer:function(){clearInterval(this.timer);this.timer=null;return this},_start:function(B,A){if(!this.options.wait){this.clearTimer()}if(this.timer){return }setTimeout(AJS.$p(this.options.onStart,this.elm),10);this.from=B;this.to=A;this.time=new Date().getTime();this.timer=setInterval(this.step,Math.round(1000/this.options.fps));return this},custom:function(B,A){return this._start(B,A)},set:function(A){this.now=A;this.increase();return this},setStyle:function(C,A,B){if(this.property=="opacity"){AJS.setOpacity(C,B)}else{AJS.setStyle(C,A,B)}}});AJS.fx.Style=AJS.fx.Base.extend({init:function(C,B,A){this.parent();this.elm=C;this.setOptions(A);this.property=B},increase:function(){this.setStyle(this.elm,this.property,this.now)}});AJS.fx.Styles=AJS.fx.Base.extend({init:function(B,A){this.parent();this.elm=AJS.$(B);this.setOptions(A);this.now={}},setNow:function(){for(p in this.from){this.now[p]=this.compute(this.from[p],this.to[p])}},custom:function(A){if(this.timer&&this.options.wait){return }var C={};var B={};for(p in A){C[p]=A[p][0];B[p]=A[p][1]}return this._start(C,B)},increase:function(){for(var A in this.now){this.setStyle(this.elm,A,this.now[A])}}});AJS.fx.Transitions={linear:function(B,A,D,C){return D*B/C+A},sineInOut:function(B,A,D,C){return -D/2*(Math.cos(Math.PI*B/C)-1)+A}};script_loaded=true