/** * Additional visual effects module * * Copyright (C) 2008-2010 Nikolay V. Nemshilov */ if (!self.Fx) throw "RightJS Fx is missing";eval((function(s,d){for(var i=d.length-1;i>-1;i--)if(d[i])s=s.replace(new RegExp(i,'g'),d[i]);return s})("Fx.22=40 43(Fx.66,{46:{17:28.35(Fx.17,{24:'long',14:'41'})},31:7(e){9 3.36(3.12(e))},12:7(e){11 b=3.5.get93('14'),a={};if(b!='41'||b!='26')3.5.68.14=b=b=='fixed'?'41':'26';if(e.44)e.y=e.44.76();if(e.21)e.x=e.21.76();11 c=3.5.14();11 p=3.45();11 r=c.x-p.x;11 d=c.y-p.y;if(3.19.14=='26'){if(b=='41'){if(32(e.x))e.x+=c.x;if(32(e.y))e.y+=c.x}33{if(32(e.x))e.x+=r;if(32(e.y))e.y+=d}}33 if(b=='26'){if(32(e.x))e.x+=r-c.x;if(32(e.y))e.y+=d-c.y}89(11 k in e)62(k){18 '44':18 '21':25;18 'y':a.44=e.y+'px';25;18 'x':a.21=e.x+'px';25;70:a[k]=e[k]}9 a},45:7(){Fx.22.52=Fx.22.52||40 69('78',{68:'37:0;23:0;20:61'});3.5.insert(Fx.22.52,'be89e');11 p=Fx.22.52.14();Fx.22.52.re84();9 p}});Fx.72=40 43(Fx.22,{58:$w('37 23 57 paddingTop paddingRight paddingBottom paddingLeft 65 30'),46:{17:28.35(Fx.22.17,{14:'26',24:'normal',87:'74'})},31:7(s,a){9 3.36(3.15(s,a))},15:7(s,a){11 p=3.51(s);9 28.35(3.50(p),3._12(p),a||{})},51:7(s){if(isHash(s)){11 a=$E('78').64($E('78',{68:\"20:61;float:21;23:0;37:0\"}).64(document.body)).13(s).55();if(s.23)s=a.y/3.5.55().y;33 s=a.x/3.5.55().x}33 if(is92(s))s=s.endsWith('%')?s.49()/100:s.49();9 s},50:7(p){11 s=3._clone93(3.5,3.58),r=/([\\d\\.]+)/g;89(11 k in s){if(k==='37'||k==='23')s[k]=s[k]||(3.5['offset'+k.capitalize()]+'px');if(s[k].match(r))s[k]=s[k].54(r,7(a){9 ''+(a.49()*p)});33 delete(s[k])}if(s.30&&s.30.49()<1)s.30='1px';9 s},_12:7(a){11 p={};11 s=3.5.55();11 x=s.x*(a-1);11 y=s.y*(a-1);62(3.19.87.54('-',' ').split(' ').sort().join('_')){18 '44':p.x=-x/2;25;18 '67':p.x=-x;p.y=-y/2;25;18 '60':p.x=-x/2;18 '60_21':p.y=-y;25;18 '60_67':p.y=-y;18 '67_44':p.x=-x;25;18 '74':p.x=-x/2;18 '21':p.y=-y/2;25;70:}9 p}});Fx.Bounce=40 43(Fx,{46:{17:28.35(Fx.17,{24:'short',27:'44',77:16})},31:7(v){v=v||3.19.77;11 p=3.5.14();11 a=Fx.Durations[3.19.24]||3.19.24;11 m={24:a,14:'26'};11 k='y';62(3.19.27){18 '67':v=-v;18 '21':k='x';25;18 '60':v=-v}11 u={},d={};u[k]=-v;d[k]=v;40 Fx.22(3.5,m).79(u);40 Fx.22(3.5,m).79(d);3.finish.71(3).delay(1);9 3}});Fx.Run=40 43(Fx.22,{46:{17:28.35(Fx.22.17,{27:'21'})},31:7(h){11 h=h||'53',p={},d=3.5.59(),t=80;if(h=='88'||(h=='53'&&3.5.39())){if(3.19.27=='21')p.x=-d.37-t;33 p.y=-d.23-t;3.34(7(){3.5.85().13(3.12({x:d.21,y:d.44}))})}33{d=3.5.13('20: 61').82().59();11 a={};if(3.19.27=='21'){a.x=-d.37-t;p.x=d.21}33{a.y=-d.23-t;p.y=d.44}3.5.13(3.12(a)).13('20: 39')}9 3.36(p)}});Fx.Puff=40 43(Fx.72,{46:{17:28.35(Fx.72.17,{81:1.4})},31:7(h){11 h=h||'53',o=0,s=3.19.81;if(h=='88'||(h=='53'&&3.5.39())){11 i=3.12(3.15(1));3.34(7(){i.47=1;3.5.85().13(i)})}33{3.5.13('20: 39').82();11 w=3.5.56;11 i=3.12(3.15(1));3.34(7(){3.5.13(i)});3.5.13(28.35(3.12(3.15(s)),{47:0,20:'39'}));s=w/3.5.56;o=1}9 3.36(s,{47:o})}});Fx.91=40 43(Fx.66,{73:$w('37 23 57 47 border padding margin color 65 background 44 21 67 60'),31:7(a,r){3.42=a||'';3.29=r||'';if(a)3.34(3.5.42.71(3.5,a));if(r)3.34(3.5.29.71(3.5,r));9 3.36({})},63:eval(\"({f:\"+Fx.66.prototype.63.to92().54(/(\\.13\\(\\w+\\))/,'$1.42(3.42).29(3.29)')+\"})\").f,_68Keys:7(){11 h={};3.73.each(7(n){h[n]=1});9 3.36(h)}});69.include({84:7(p,o){9 3.fx('84',[p,o||{}])},75:7(){9 3.fx('75',38)},83:7(s,o){9 3.fx('83',[s,o||{}])},90:7(){9 3.fx('90',38)},86:7(){9 3.fx('86',38)},morphTo43:7(){11 a=$A(38);if(a[0]===null)a[0]='';9 3.fx('91',a)}});",",,,this,,element,,function,,return,,var,getEndPosition,setStyle,position,_getZoomedStyle,,Options,case,options,visibility,left,Move,height,duration,break,relative,direction,Object,removeClass,borderWidth,prepare,defined,else,onFinish,merge,$super,width,arguments,visible,new,absolute,addClass,Class,top,getParentPosition,extend,opacity,_getEndPosition,toFloat,_getBasicStyle,_getProportion,Dummy,toggle,replace,sizes,offsetWidth,lineHeight,PROPERTIES,dimensions,bottom,hidden,switch,_endStyle,insertTo,fontSize,Morph,right,style,Element,default,bind,Zoom,STYLES,center,bounce,toInt,value,div,start,,size,show,zoom,move,hide,puff,from,out,for,run,CSS,String,Style".split(",")));