right-rails 0.4.4 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. data/init.rb +37 -8
  2. data/javascripts/right-autocompleter-src.js +55 -41
  3. data/javascripts/right-autocompleter.js +2 -2
  4. data/javascripts/right-behavior-src.js +5 -5
  5. data/javascripts/right-behavior.js +2 -2
  6. data/javascripts/right-calendar-src.js +139 -67
  7. data/javascripts/right-calendar.js +2 -2
  8. data/javascripts/right-dnd-src.js +7 -7
  9. data/javascripts/right-dnd.js +2 -2
  10. data/javascripts/right-effects-src.js +9 -9
  11. data/javascripts/right-effects.js +2 -2
  12. data/javascripts/right-events-src.js +8 -8
  13. data/javascripts/right-events.js +2 -2
  14. data/javascripts/right-in-edit-src.js +10 -8
  15. data/javascripts/right-in-edit.js +2 -2
  16. data/javascripts/right-json-src.js +14 -15
  17. data/javascripts/right-json.js +2 -2
  18. data/javascripts/right-lightbox-src.js +141 -86
  19. data/javascripts/right-lightbox.js +3 -3
  20. data/javascripts/right-olds-src.js +26 -48
  21. data/javascripts/right-olds.js +2 -2
  22. data/javascripts/right-rails-src.js +109 -31
  23. data/javascripts/right-rails.js +2 -2
  24. data/javascripts/right-rater-src.js +20 -12
  25. data/javascripts/right-rater.js +2 -2
  26. data/javascripts/right-selectable-src.js +3 -3
  27. data/javascripts/right-selectable.js +1 -1
  28. data/javascripts/right-slider-src.js +3 -3
  29. data/javascripts/right-slider.js +1 -1
  30. data/javascripts/right-sortable-src.js +28 -28
  31. data/javascripts/right-sortable.js +2 -2
  32. data/javascripts/right-src.js +612 -405
  33. data/javascripts/right-tabs-src.js +115 -44
  34. data/javascripts/right-tabs.js +2 -2
  35. data/javascripts/right-tooltips-src.js +131 -74
  36. data/javascripts/right-tooltips.js +2 -2
  37. data/javascripts/right-ui-i18n-fr.js +4 -4
  38. data/javascripts/right-uploader-src.js +170 -0
  39. data/javascripts/right-uploader.js +9 -0
  40. data/javascripts/right.js +2 -4
  41. data/lib/right_rails.rb +1 -1
  42. data/lib/right_rails/helpers/basic.rb +10 -2
  43. data/lib/right_rails/helpers/misc.rb +16 -17
  44. data/lib/right_rails/helpers/rails.rb +0 -7
  45. data/spec/lib/right_rails/helpers/basic_spec.rb +0 -1
  46. data/spec/lib/right_rails/helpers/rails_spec.rb +24 -0
  47. data/spec/spec_helper.rb +9 -1
  48. metadata +14 -5
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Home page: http://rightjs.org/ui/calendar
5
5
  *
6
- * @copyright (C) 2009 Nikolay V. Nemshilov aka St.
6
+ * @copyright (C) 2009-2010 Nikolay V. Nemshilov
7
7
  */
8
8
  if (!RightJS) { throw "Gimme RightJS. Please." };
9
- 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})("19 35=68 Class(Observer,{extend:{EVENTS:$w('show 101 41 102'),164:{67:'ISO',100:74,157:false,min48:74,max48:74,151:1,178:'fade',128:200,53:1,36:1,checkTags:'*',rel186:'14',44:74,135:false},Formats:{ISO:'%Y-%m-%d',POSIX:'%Y/%m/%d',EUR:'%d-%m-%Y',US:'%m/%d/%Y'},57:{Done:'Done',Now:'Now',180:'180 167',184:'184ious 167',180181:'180 181',184181:'184 181',85:$w('Sun115 Mon115 Tues115 Wednes115 Thurs115 Fri115 Satur115'),85183:$w('Sun Mon Tue Wed Thu Fri Sat'),85Min:$w('Su Mo Tu We Th Fr Sa'),65182:$w('January February March April May June July August September October November December'),65182183:$w('Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec')},rescan:17(s){19 k=35.164.rel186;19 a=68 176(k+'\\\\[(.+?)\\\\]');($(s)||91).41(35.164.checkTags+'[rel*='+k+']').127(17(e){19 d=e.get('data-'+k+'-25');19 c=68 35(eval('('+d+')')||{});19 r=e.get('rel').158(a);if(r){19 i=$(r[1]);if(i)c.153(i,e)}92 c.153(e)})}},initialize:17(o){11.$super(o);11.30=$E('28',{'70':'16-14'});11.build().148().set48(68 48())},set164:17(u){11.$super(u);19 a=11.constructor;19 o=11.25;with(11.25){o.57={};144(19 k in a.57)57[k]=isArray(a.57[k])?a.57[k].clone():a.57[k];$ext(57,(u||{}).57);o.85=57.85Min;if(151)85.push(85.111());if(!isArray(53))53=[53,1];if(min48)min48=11.119(min48);if(max48){max48=11.119(max48);max48.set48(max48.get48()+1)}67=(a.Formats[67]||67).trim();if(100===74)100=67.search(/%[HkIl]/)>-1;if(44===74)44=67.search(/%[Il]/)<0;if(36>60&&12 %(36/60).133())44=true}21 11},set48:17(d){11.43=11.15648=11.119(d);21 11.up43()},get48:17(){21 11.43},101:17(){11.30.101(11.25.178,{duration:11.25.128});35.95=74;21 11},show:17(p){11.30.show(11.25.178,{duration:11.25.128});35.95=11;21 11},31:17(e,p){11.30.89('16-14-83').31(e,p);21 11}});35.131({up43:17(d){19 d=68 48(d||11.43),o=11.25;19 a=11.30.41('28.16-14-65');19 b=a.length;144(19 i=-(b-b/2).133()+1;i<(b-b/2).floor()+1;i++){19 m=68 48(d);m.76(d.61()+i);11.up43167(a.111(),m)}11.up43180184167185s(d,b);if(o.100){11.96.73=o.36<60?d.150():(d.150()/(o.36/60)).round()*(o.36/60);11.114.73=(d.173()/(o.36 % 60)).round()*o.36}21 11},up43167:17(g,d){d.set48(32);19 f=32-d.get48();d.76(d.61()-1);19 b=(11.43.getTime()/86400000).133();19 r=g.41('72 tr');19 a=r.111().41('td');g.41('72 td').127(17(t){t.137='';t.70186='16-14-115-blank'});19 o=11.25;144(19 i=1;i<=f;i++){d.set48(i);19 e=d.get187();if(11.25.151)e=e?e-1:6;a[e].137=''+i;a[e].70186=b==(d.getTime()/86400000).133()?'16-14-115-41ed':'';if((o.min48&&o.min48>d)||(o.max48&&o.max48<d))a[e].70186='16-14-115-59';a[e].43=68 48(d);if(e==6)a=r.111().41('td')}19 c=(o.135?o.57.65182183[d.61()]+',':o.57.65182[d.61()])+' '+d.79();g.first('28.16-14-65-166').up43(c)},up43180184167185s:17(a,f){19 o=11.25;if(o.min48){19 b=68 48(a.79(),0,1,0,0,0);19 c=68 48(o.min48.79(),0,1,0,0,0);11.121=b>c;b.76(a.61()-(f-f/2).133());c.76(o.min48.61());11.118=b>=c}92 11.118=11.121=true;if(o.max48){19 e=68 48(a);19 m=68 48(o.max48);[e,m].127(17(d){d.set48(32);d.76(d.61()-1);d.set48(32-d.get48());d.setHours(0);d.174(0);d.setSeconds(0);d.setMilliseconds(0)});11.117=e<m;[e,m].127('76',0);11.122=e<m}92 11.117=11.122=true;11.104[11.117?'80':'89']('16-ui-26-59');11.105[11.118?'80':'89']('16-ui-26-59');if(11.69){11.69[11.122?'80':'89']('16-ui-26-59');11.98[11.121?'80':'89']('16-ui-26-59')}},build:17(){11.170();19 g=72=$E('42',{'70':'16-14-163'}).31(11.30);19 o=11.25;if(Browser.OLD)72=$E('72').31(g);144(19 y=0;y<o.53[1];y++){19 r=$E('tr').31(72);144(19 x=0;x<o.53[0];x++)$E('td').31(r).94(11.build167())}if(o.100)11.buildTime();11.154();21 11},170:17(){19 i=11.25.57;11.105=$E('28',{'70':'16-ui-26 16-14-156-26',84:'&lsaquo;',159:i.184}).31(11.30);11.104=$E('28',{'70':'16-ui-26 16-14-134-26',84:'&rsaquo;',159:i.180}).31(11.30);if(11.25.135){11.98=$E('28',{'70':'16-ui-26 16-14-156-140-26',84:'&laquo;',159:i.184181}).31(11.105,'after');11.69=$E('28',{'70':'16-ui-26 16-14-134-140-26',84:'&raquo;',159:i.180181}).31(11.104,'be144e')}},build167:17(){21 $E('28',{'70':'16-14-65'}).94('<28 70=\"16-14-65-166\"></28>'+'<42><thead><tr>'+11.25.85.map(17(n){21 '<th>'+n+'</th>'}).join('')+'</tr></thead><72>'+'123456'.split('').map(17(){21 '<tr><td><td><td><td><td><td><td></tr>'}).join('')+'</72></42>')},buildTime:17(){19 o=11.25;19 t=$E('28',{'70':'16-14-time',84:':'}).31(11.30);11.96=$E('41').31(t,'112');11.114=$E('41').31(t);19 m=o.36<60?o.36:60;19 h=o.36<60?1:(o.36/60).133();(60).times(17(a){19 c=(a<10?'0':'')+a;if(a<24&&a % h==0){if(o.44)11.96.94($E('143',{73:a,84:c}));92 if(a<12)11.96.94($E('143',{73:a,84:a==0?12:a}))}if(a % m==0)11.114.94($E('143',{73:a,84:c}))},11);if(!o.44){11.124=$E('41').31(t);(o.67.131s(/%P/)?['am','pm']:['AM','PM']).127(17(v){11.124.94($E('143',{73:v.97(),84:v}))},11)}},154:17(){if(!11.25.157)21;11.113=$E('28',{'70':'16-ui-26 16-14-now-26',84:11.25.57.Now});11.102185=$E('28',{'70':'16-ui-26 16-14-102-26',84:11.25.57.Done});$E('28',{'70':'16-ui-26s 16-14-26s'}).94([11.102185,11.113]).31(11.30)}});91.onKeydown(17(e){if(35.95){19 n;switch(e.keyCode){52 27:n='101';58;52 37:n='156187';58;52 39:n='134187';58;52 38:n='156Week';58;52 40:n='134Week';58;52 34:n='134167';58;52 33:n='139';58;52 13:35.95.41(35.95.43);n='102';58}if(n){35.95[n]();e.s112()}}});35.131({41:17(d){11.43=d;21 11.fire('41',d)},102:17(){if(!11.30.152('16-14-83'))11.101();21 11.fire('102',11.43)},134187:17(){21 11.17748({'48':1})},156187:17(){21 11.17748({'48':-1})},134Week:17(){21 11.17748({'48':7})},156Week:17(){21 11.17748({'48':-7})},134167:17(){21 11.17748({167:1})},139:17(){21 11.17748({167:-1})},134181:17(){21 11.17748({Full181:1})},156181:17(){21 11.17748({Full181:-1})},17748:17(h){19 d=68 48(11.43),o=11.25;144(19 k in h)d['set'+k](d['get'+k]()+h[k]);if(o.min48&&o.min48>d)d=68 48(o.min48);if(o.max48&&o.max48<d){d=68 48(o.max48);d.set48(d.get48()-1)}21 11.up43(11.43=d)},148:17(){11.105.62(11.139.63(11));11.104.62(11.134167.63(11));if(11.69){11.98.62(11.156181.63(11));11.69.62(11.134181.63(11))}11.30.41('28.16-14-65 42 72 td').127(17(c){c.62(17(){if(c.137!=''&&!c.152('16-14-115-59')){19 p=11.30.first('.16-14-115-41ed');if(p)p.80('16-14-115-41ed');c.89('16-14-115-41ed');11.116(c.43)}}.63(11))},11);if(11.96){11.96.on('177',11.116.63(11));11.114.on('177',11.116.63(11));if(!11.25.44)11.124.on('177',11.116.63(11))}if(11.113){11.113.62(11.set48.63(11,68 48()));11.102185.62(11.102.63(11))}11.30.62(17(a){a.s112()});21 11},116:17(d){if(d 172 48){11.43.set181(d.79());11.43.76(d.61());11.43.set48(d.get48())}if(11.96){11.43.setHours(11.96.73.toInt()+(!11.25.44&&11.124.73=='pm'?12:0));11.43.174(11.114.73)}21 11.41(11.43)}});35.131({153:17(i,t){19 i=$(i),t=$(t);if(t)t.62(17(a){a.s112();11.126(i.focus())}.63(11));92 i.on({focus:11.126.63(11,i),click:17(a){a.s112();if(11.30.hidden())11.126(i)}.63(11),keyDown:17(a){if(a.keyCode==9&&11.30.visible())11.101()}.63(11)});91.62(11.101.63(11));21 11},126:17(e){19 e=$(e),d=e.dimensions();11.set48(11.119(e.73));11.30.setStyle({90:'120',109:'0',left:(d.left)+'px',112:(d.112+d.93)+'px'}).31(91.body);11.s112Observing('41').s112Observing('102');11.on(11.102185?'102':'41',17(){e.73=11.67()}.63(11));21 11.101Others().show()},toggleAt:17(i){if(11.30.parentNode&&11.30.visible())11.101();92 11.126(i);21 11},101Others:17(){$$('28.16-14').127(17(e){if(!e.152('16-14-83')){if(e!=11.30)e.101()}});21 11}});35.131({119:17(g){19 d;if(g 172 48||48.119(g))d=68 48(g);92 if(isString(g)&&g){19 t=176.escape(11.25.67);19 h=t.158(/%[a-z]/ig).map('158',/[a-z]$/i).map('first').without('%');19 r=68 176('^'+t.169(/%p/i,'(pm|PM|am|AM)').169(/(%[a-z])/ig,'(.+?)')+'$');19 m=g.trim().158(r);if(m){m.111();19 y=74,f=74,d=74,b=74,e=74,s=74,c;while(m.length){19 v=m.111();19 k=h.111();if(k.97()=='b')f=11.25.57[k=='b'?'65182183':'65182'].indexOf(v);92 if(k.97()=='p')c=v.97();92{v=v.toInt();switch(k){52 'd':52 'e':d=v;58;52 'm':f=v-1;58;52 'y':52 'Y':y=v;58;52 'H':52 'k':52 'I':52 'l':b=v;58;52 'M':e=v;58;52 'S':s=v;58}}}if(c){b=b==12?0:b;b=(c=='pm'?b+12:b)}d=68 48(y,f,d,b,e,s)}}92 d=68 48();21 d},67:17(g){19 j=11.25.57;19 f=11.43.get187();19 q=11.43.61();19 c=11.43.get48();19 t=11.43.79();19 h=11.43.150();19 o=11.43.173();19 s=11.43.getSeconds();19 i=(h==0?12:h<13?h:h-12);19 v={a:j.85183[f],A:j.85[f],b:j.65182183[q],B:j.65182[q],d:(c<10?'0':'')+c,e:''+c,m:(q<9?'0':'')+(q+1),y:(''+t).substring(2,4),Y:''+t,H:(h<10?'0':'')+h,k:''+h,I:(h>0&&(h<10||(h>12&&h<22))?'0':'')+i,l:''+i,p:h<12?'AM':'PM',P:h<12?'am':'pm',M:(o<10?'0':'')+o,S:(s<10?'0':'')+s,'%':'%'};19 r=g||11.25.67;144(19 n in v)r=r.169('%'+n,v[n]);21 r}});91.onReady(17(){35.rescan()});91.write(\"<style type=\\\"141/css\\\">28.16-14,28.16-14 42,28.16-14 42 tr,28.16-14 42 th,28.16-14 42 td,28.16-14 42 72,28.16-14 42 thead{47:155;29:155;width:auto;93:auto;109:0;71:0}*.16-ui-26{132:83-block;*132:83;*zoom:1;93:1em;line-93:1em;71:.82 .168;141-108:146;29:1px 161 #165;29-78:.82;-moz-29-78:.82;-125-29-78:.82;110:pointer;46:#555;47-46:#FFF}*.16-ui-26:hover{46:#222;29-46:#999;47-46:#165}*.16-ui-26-59,*.16-ui-26-59:hover{46:#888;47:#EEE;29-46:#165;110:129}*.16-ui-26s{109-112:.168}28.16-14{90:120;93:auto;29:1px 161 #BBB;90:relative;71:.168;29-78:.3em;-moz-29-78:.3em;-125-29-78:.3em;110:129;47-46:#EEE;-moz-box-142:.82 .4em .8em #666;-125-box-142:.82 .4em .8em #666}28.16-14-83{90:relative;132:83-block;vertical-108:112;*132:83;*zoom:1;-moz-box-142:155;-125-box-142:155}28.16-14-156-26,28.16-14-134-26,28.16-14-156-140-26,28.16-14-134-140-26{90:120;float:left;width:1em;71:.1168 .4em}28.16-14-134-26{16:.168}28.16-14-156-140-26{left:2.5168}28.16-14-134-140-26{16:2.5168}28.16-14-65-166{141-108:146;93:1.82;line-93:1.82}42.16-14-163{29-spacing:0px}42.16-14-163 td{vertical-108:112;71-16:.4em}42.16-14-163>72>td:last-child{71:0}28.16-14-65 42{109-112:.82;29-spacing:1px;29-collapse:separate}28.16-14-65 42 th{46:#777;141-108:146}28.16-14-65 42 td{141-108:16;71:.1em .3em;47-46:#FFF;29:1px 161 #165;110:pointer;46:#555;29-78:.82;-moz-29-78:.82;-125-29-78:.82}28.16-14-65 42 td:hover{47-46:#165;29-46:#AAA;46:#000}28.16-14-65 42 td.16-14-115-blank{47:transparent;110:129;29:155}28.16-14-65 42 td.16-14-115-41ed{47-46:#BBB;29-46:#AAA;46:#222;font-weight:bold;71:.1em .82}28.16-14-65 42 td.16-14-115-59{46:#888;47:#EEE;29-46:#165;110:129}28.16-14-time{29-112:1px 161 #ccc;109-112:.3em;71-112:.168;141-108:146}28.16-14-time 41{109:0 .4em}28.16-14-26s 28.16-ui-26{width:3.82}28.16-14-102-26{90:120;16:.168}</style>\");",",,,,,,,,,,,this,,,calendar,,right,function,,var,,return,,,,options,button,,div,border,element,insertTo,,,,Calendar,timePeriod,,,,,select,table,date,twentyFourHour,,color,background,Date,maxDate,changeDate,minDate,case,numberOfMonths,setDate,,,i18n,break,disabled,,getMonth,onClick,bind,,month,,format,new,nextYearButton,class,padding,tbody,value,null,monthNamesShort,setMonth,,radius,getFullYear,removeClass,getDate,2em,inline,html,dayNames,,updateNextPrevMonthButtons,,addClass,position,document,else,height,insert,current,hours,toLowerCase,prevYearButton,,showTime,hide,done,selected,nextButton,prevButton,doneButton,monthNames,align,margin,cursor,shift,top,nowButton,minutes,day,setTime,hasNextMonth,hasPrevMonth,parse,absolute,hasPrevYear,hasNextYear,,meridian,webkit,showAt,each,fxDuration,default,buttons,include,display,ceil,next,listYears,nextMonth,innerHTML,className,prevMonth,year,text,shadow,option,for,update,center,stopObserving,connectEvents,dayNamesShort,getHours,firstDay,hasClass,assignTo,buildButtons,none,prev,showButtons,match,title,updateMonth,solid,dayNamesMin,greed,Options,CCC,caption,Month,5em,replace,buildSwaps,buildMonth,instanceof,getMinutes,setMinutes,hideOthers,RegExp,change,fxName,stop,Next,Year,Names,Short,Prev,Button,Name,Day".split(",")));
9
+ 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})("19 28=62 Class(Observer,{extend:{EVENTS:$w('show 94 44 103'),178:{65:'ISO',101:73,171:false,min46:73,max46:73,125184:1,fxName:'fade',131:200,53:1,36:1,42:73,146:false,168:'[rel^=14]'},Formats:{ISO:'%Y-%m-%d',POSIX:'%Y/%m/%d',EUR:'%d-%m-%Y',US:'%m/%d/%Y'},57:{Done:'Done',Now:'Now',183:'183 169',186:'186ious 169',183181:'183 181',186181:'186ious 181',92:$w('Sun117 Mon117 Tues117 Wednes117 Thurs117 Fri117 Satur117'),92185:$w('Sun Mon Tue Wed Thu Fri Sat'),92Min:$w('Su Mo Tu We Th Fr Sa'),63182:$w('January February March April May June July August September October November December'),63182185:$w('Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec')},72:73,148:{},find:16(a){19 e=a.149;if(isElement(e)&&e.138(28.178.168)){19 u=$uid(e);21 28.148[u]=28.148[u]||62 28(eval('('+e.get('data-14-25')+')'))}},rescan:16(s){}},initialize:16(o){11.$super(o);11.31=$E('29',{'69':'17-14'});11.build().151().set46(62 46())},set178:16(u){11.$super(u);19 a=11.constructor;19 o=11.25;with(11.25){o.57={};152(19 k in a.57)57[k]=isArray(a.57[k])?a.57[k].clone():a.57[k];$ext(57,(u||{}).57);o.92=57.92Min;if(125184)92.push(92.110());if(!isArray(53))53=[53,1];if(min46)min46=11.127(min46);if(max46){max46=11.127(max46);max46.set46(max46.get46()+1)}65=(a.Formats[65]||65).trim();if(101===73)101=65.search(/%[HkIl]/)>-1;if(42===73)42=65.search(/%[Il]/)<0;if(36>60&&12 %(36/60).142())42=161}21 11},set46:16(d){11.43=11.16346=11.127(d);21 11.up43()},get46:16(){21 11.43},94:16(){11.31.94(11.25.fxName,{duration:11.25.131});28.72=73;21 11},show:16(p){11.31.show(11.25.fxName,{duration:11.25.131});21 28.72=11},35:16(e,p){11.31.93('17-14-85').35(e,p);21 11}});28.133({up43:16(d){19 d=62 46(d||11.43),o=11.25;19 a=11.31.44('29.17-14-63');19 b=a.length;152(19 i=-(b-b/2).142()+1;i<(b-b/2).floor()+1;i++){19 m=62 46(d);m.80(d.61()+i);11.up43169(a.110(),m)}11.up43183186169187s(d,b);if(o.101){11.97.74=o.36<60?d.158():(d.158()/(o.36/60)).round()*(o.36/60);11.115.74=(d.getMinutes()/(o.36 % 60)).round()*o.36}21 11},up43169:16(g,d){d.set46(32);19 f=32-d.get46();d.80(d.61()-1);19 b=(11.43.164()/86400000).142();19 r=g.44('75 tr');19 a=r.110().44('td');g.44('75 td').139(16(t){t.143='';t.69Name='17-14-117-blank'});19 o=11.25;152(19 i=1;i<=f;i++){d.set46(i);19 e=d.get184();if(11.25.125184)e=e?e-1:6;a[e].143=''+i;a[e].69Name=b==(d.164()/86400000).142()?'17-14-117-44ed':'';if((o.min46&&o.min46>d)||(o.max46&&o.max46<d))a[e].69Name='17-14-117-59';a[e].43=62 46(d);if(e==6)a=r.110().44('td')}19 c=(o.146?o.57.63182185[d.61()]+',':o.57.63182[d.61()])+' '+d.82();g.125('29.17-14-63-167').up43(c)},up43183186169187s:16(a,f){19 o=11.25;if(o.min46){19 b=62 46(a.82(),0,1,0,0,0);19 c=62 46(o.min46.82(),0,1,0,0,0);11.121=b>c;b.80(a.61()-(f-f/2).142());c.80(o.min46.61());11.119=b>=c}89 11.119=11.121=161;if(o.max46){19 e=62 46(a);19 m=62 46(o.max46);[e,m].139(16(d){d.set46(32);d.80(d.61()-1);d.set46(32-d.get46());d.setHours(0);d.179(0);d.setSeconds(0);d.setMilliseconds(0)});11.120=e<m;[e,m].139('80',0);11.122=e<m}89 11.120=11.122=161;11.105[11.120?'81':'93']('17-ui-26-59');11.106[11.119?'81':'93']('17-ui-26-59');if(11.68){11.68[11.122?'81':'93']('17-ui-26-59');11.102[11.121?'81':'93']('17-ui-26-59')}},build:16(){11.buildSwaps();19 g=75=$E('41',{'69':'17-14-174'}).35(11.31);19 o=11.25;if(Browser.OLD)75=$E('75').35(g);152(19 y=0;y<o.53[1];y++){19 r=$E('tr').35(75);152(19 x=0;x<o.53[0];x++)$E('td').35(r).95(11.build169())}if(o.101)11.buildTime();11.160();21 11},buildSwaps:16(){19 i=11.25.57;11.106=$E('29',{'69':'17-ui-26 17-14-163-26',87:'&lsaquo;',176:i.186}).35(11.31);11.105=$E('29',{'69':'17-ui-26 17-14-140-26',87:'&rsaquo;',176:i.183}).35(11.31);if(11.25.146){11.102=$E('29',{'69':'17-ui-26 17-14-163-137-26',87:'&laquo;',176:i.186181}).35(11.106,'after');11.68=$E('29',{'69':'17-ui-26 17-14-140-137-26',87:'&raquo;',176:i.183181}).35(11.105,'be152e')}},build169:16(){21 $E('29',{'69':'17-14-63'}).95('<29 69=\"17-14-63-167\"></29>'+'<41><thead><tr>'+11.25.92.map(16(n){21 '<th>'+n+'</th>'}).join('')+'</tr></thead><75>'+'123456'.144('').map(16(){21 '<tr><td><td><td><td><td><td><td></tr>'}).join('')+'</75></41>')},buildTime:16(){19 o=11.25;19 t=$E('29',{'69':'17-14-time',87:':'}).35(11.31);11.97=$E('44').35(t,'118');11.115=$E('44').35(t);19 m=o.36<60?o.36:60;19 h=o.36<60?1:(o.36/60).142();(60).times(16(a){19 c=(a<10?'0':'')+a;if(a<24&&a % h==0){if(o.42)11.97.95($E('155',{74:a,87:c}));89 if(a<12)11.97.95($E('155',{74:a,87:a==0?12:a}))}if(a % m==0)11.115.95($E('155',{74:a,87:c}))},11);if(!o.42){11.124=$E('44').35(t);(o.65.133s(/%P/)?['am','pm']:['AM','PM']).139(16(v){11.124.95($E('155',{74:v.98(),87:v}))},11)}},160:16(){if(!11.25.171)21;11.116=$E('29',{'69':'17-ui-26 17-14-now-26',87:11.25.57.Now});11.103187=$E('29',{'69':'17-ui-26 17-14-103-26',87:11.25.57.Done});$E('29',{'69':'17-ui-26s 17-14-26s'}).95([11.103187,11.116]).35(11.31)}});28.133({44:16(d){11.43=d;21 11.fire('44',d)},103:16(){if(!11.31.104('17-14-85'))11.94();21 11.fire('103',11.43)},140184:16(){21 11.change46({'46':1})},163184:16(){21 11.change46({'46':-1})},140Week:16(){21 11.change46({'46':7})},163Week:16(){21 11.change46({'46':-7})},136:16(){21 11.change46({169:1})},145:16(){21 11.change46({169:-1})},140181:16(){21 11.change46({Full181:1})},163181:16(){21 11.change46({Full181:-1})},change46:16(h){19 d=62 46(11.43),o=11.25;152(19 k in h)d['set'+k](d['get'+k]()+h[k]);if(o.min46&&o.min46>d)d=62 46(o.min46);if(o.max46&&o.max46<d){d=62 46(o.max46);d.set46(d.get46()-1)}21 11.up43(11.43=d)},151:16(){11.106.70(11.145.67(11));11.105.70(11.136.67(11));if(11.68){11.102.70(11.163181.67(11));11.68.70(11.140181.67(11))}11.31.44('29.17-14-63 41 75 td').139(16(c){c.70(16(){if(c.143!=''&&!c.104('17-14-117-59')){19 p=11.31.125('.17-14-117-44ed');if(p)p.81('17-14-117-44ed');c.93('17-14-117-44ed');11.114(c.43)}}.67(11))},11);if(11.97){11.97.on('change',11.114.67(11));11.115.on('change',11.114.67(11));if(!11.25.42)11.124.on('change',11.114.67(11))}if(11.116){11.116.70(11.set46.67(11,62 46()));11.103187.70(11.103.67(11))}11.31.70(16(a){a.s118()});21 11},114:16(d){if(d 180 46){11.43.set181(d.82());11.43.80(d.61());11.43.set46(d.get46())}if(11.97){11.43.setHours(11.97.74.toInt()+(!11.25.42&&11.124.74=='pm'?12:0));11.43.179(11.115.74)}21 11.44(11.43)}});28.133({assignTo:16(i,t){19 i=$(i),t=$(t);if(t)t.70(16(a){a.s118();11.112(i.focus())}.67(11));89 i.on({focus:11.112.67(11,i),click:16(a){a.s118();if(11.31.hidden())11.112(i)}.67(11),keyDown:16(a){if(a.keyCode==9&&11.31.visible())11.94()}.67(11)});21 11},112:16(e){19 e=$(e),d=e.dimensions();11.set46(11.127(e.74));11.31.setStyle({91:'126',113:'0',left:(d.left)+'px',118:(d.118+d.96)+'px'}).35(79.body);11.s118Observing('44').s118Observing('103');11.on(11.103187?'103':'44',16(){e.74=11.65()}.67(11));21 11.94Others().show()},toggleAt:16(i){if(11.31.parentNode&&11.31.visible())11.94();89 11.112(i);21 11},94Others:16(){$$('29.17-14').139(16(e){if(!e.104('17-14-85')){if(e!=11.31)e.94()}});21 11}});28.133({127:16(g){19 d;if(g 180 46||46.127(g))d=62 46(g);89 if(isString(g)&&g){19 t=RegExp.escape(11.25.65);19 h=t.138(/%[a-z]/ig).map('138',/[a-z]$/i).map('125').without('%');19 r=62 RegExp('^'+t.173(/%p/i,'(pm|PM|am|AM)').173(/(%[a-z])/ig,'(.+?)')+'$');19 m=g.trim().138(r);if(m){m.110();19 y=73,f=73,d=73,b=73,e=73,s=73,c;while(m.length){19 v=m.110();19 k=h.110();if(k.98()=='b')f=11.25.57[k=='b'?'63182185':'63182'].indexOf(v);89 if(k.98()=='p')c=v.98();89{v=v.toInt();switch(k){52 'd':52 'e':d=v;58;52 'm':f=v-1;58;52 'y':52 'Y':y=v;58;52 'H':52 'k':52 'I':52 'l':b=v;58;52 'M':e=v;58;52 'S':s=v;58}}}if(c){b=b==12?0:b;b=(c=='pm'?b+12:b)}d=62 46(y,f,d,b,e,s)}}89 d=62 46();21 isNaN(d.164())?62 46:d},65:16(g){19 j=11.25.57;19 f=11.43.get184();19 q=11.43.61();19 c=11.43.get46();19 t=11.43.82();19 h=11.43.158();19 o=11.43.getMinutes();19 s=11.43.getSeconds();19 i=(h==0?12:h<13?h:h-12);19 v={a:j.92185[f],A:j.92[f],b:j.63182185[q],B:j.63182[q],d:(c<10?'0':'')+c,e:''+c,m:(q<9?'0':'')+(q+1),y:(''+t).substring(2,4),Y:''+t,H:(h<10?'0':'')+h,k:''+h,I:(h>0&&(h<10||(h>12&&h<22))?'0':'')+i,l:''+i,p:h<12?'AM':'PM',P:h<12?'am':'pm',M:(o<10?'0':'')+o,S:(s<10?'0':'')+s,'%':'%'};19 r=g||11.25.65;152(19 n in v)r=r.173('%'+n,v[n]);21 r}});(16(){19 s=16(e){19 c=28.find(Event.ext(e));if(c){19 i=e.149;19 b=28.178.168.144('[').last();19 k=b.144('=').last().144(']').125();19 a=62 RegExp(k+'\\\\[(.+?)\\\\]');19 r=i.get(b.144('^=')[0]);if(r&&(r=r.138(a))){i=$(r[1]);e.s118()}c.112(i)}};19 h=16(e){s(e);19 t=e.149;if([t].concat(t.parents()).125('104','17-14'))e.s118()};19 d=16(e){19 t=e.149;if(28.find(e)){if(t.tagName=='A')e.s118()}89 if(28.72){if(![t].concat(t.parents()).125('104','17-14'))28.72.94()}};19 f=16(e){s(e)};19 o=16(e){19 c=28.find(Event.ext(e));if(c)c.94()};19 g=16(e){if(28.72){19 n;switch(e.keyCode){52 27:n='94';58;52 37:n='163184';58;52 39:n='140184';58;52 38:n='163Week';58;52 40:n='140Week';58;52 34:n='136';58;52 33:n='145';58;52 13:28.72.44(28.72.43);n='103';58}if(n){28.72[n]();e.s118()}}};79.on({mousedown:h,click:d,keydown:g});if(Browser.IE){79.166('onfocusin',f);79.166('onfocusout',o)}89{79.130('focus',f,161);79.130('blur',o,161)}})();79.write(\"<style type=\\\"147/css\\\">29.17-14,29.17-14 41,29.17-14 41 tr,29.17-14 41 th,29.17-14 41 td,29.17-14 41 75,29.17-14 41 thead{48:162;30:162;width:auto;96:auto;113:0;71:0}*.17-ui-26{135:85-block;*135:85;*zoom:1;96:1em;line-96:1em;71:.84 .165;147-109:150;30:1px 177 #175;30-78:.84;-moz-30-78:.84;-129-30-78:.84;111:pointer;47:#555;48-47:#FFF}*.17-ui-26:hover{47:#222;30-47:#999;48-47:#175}*.17-ui-26-59,*.17-ui-26-59:hover{47:#888;48:#EEE;30-47:#175;111:134}*.17-ui-26s{113-118:.165}29.17-14{91:126;96:auto;30:1px 177 #BBB;91:relative;71:.165;30-78:.3em;-moz-30-78:.3em;-129-30-78:.3em;111:134;48-47:#EEE;-moz-box-156:.84 .4em .8em #666;-129-box-156:.84 .4em .8em #666}29.17-14-85{91:relative;135:85-block;vertical-109:118;*135:85;*zoom:1;-moz-box-156:162;-129-box-156:162}29.17-14-163-26,29.17-14-140-26,29.17-14-163-137-26,29.17-14-140-137-26{91:126;float:left;width:1em;71:.1165 .4em}29.17-14-140-26{17:.165}29.17-14-163-137-26{left:2.5165}29.17-14-140-137-26{17:2.5165}29.17-14-63-167{147-109:150;96:1.84;line-96:1.84}41.17-14-174{30-spacing:0px}41.17-14-174 td{vertical-109:118;71-17:.4em}41.17-14-174>75>td:last-child{71:0}29.17-14-63 41{113-118:.84;30-spacing:1px;30-collapse:separate}29.17-14-63 41 th{47:#777;147-109:150}29.17-14-63 41 td{147-109:17;71:.1em .3em;48-47:#FFF;30:1px 177 #175;111:pointer;47:#555;30-78:.84;-moz-30-78:.84;-129-30-78:.84}29.17-14-63 41 td:hover{48-47:#175;30-47:#AAA;47:#000}29.17-14-63 41 td.17-14-117-blank{48:transparent;111:134;30:162}29.17-14-63 41 td.17-14-117-44ed{48-47:#BBB;30-47:#AAA;47:#222;font-weight:bold;71:.1em .84}29.17-14-63 41 td.17-14-117-59{47:#888;48:#EEE;30-47:#175;111:134}29.17-14-time{30-118:1px 177 #ccc;113-118:.3em;71-118:.165;147-109:150}29.17-14-time 44{113:0 .4em}29.17-14-26s 29.17-ui-26{width:3.84}29.17-14-103-26{91:126;17:.165}</style>\");",",,,,,,,,,,,this,,,calendar,,function,right,,var,,return,,,,options,button,,Calendar,div,border,element,,,,insertTo,timePeriod,,,,,table,twentyFourHour,date,select,,Date,color,background,maxDate,changeDate,minDate,case,numberOfMonths,setDate,,,i18n,break,disabled,,getMonth,new,month,,format,,bind,nextYearButton,class,onClick,padding,current,null,value,tbody,monthNamesShort,,radius,document,setMonth,removeClass,getFullYear,getDate,2em,inline,,html,,else,updateNextPrevMonthButtons,position,dayNames,addClass,hide,insert,height,hours,toLowerCase,,selected,showTime,prevYearButton,done,hasClass,nextButton,prevButton,monthNames,doneButton,align,shift,cursor,showAt,margin,setTime,minutes,nowButton,day,top,hasPrevMonth,hasNextMonth,hasPrevYear,hasNextYear,,meridian,first,absolute,parse,stop,webkit,addEventListener,fxDuration,buttons,include,default,display,nextMonth,year,match,each,next,className,ceil,innerHTML,split,prevMonth,listYears,text,instances,target,center,connectEvents,for,dayNamesShort,stopObserving,option,shadow,update,getHours,firstDay,buildButtons,true,none,prev,getTime,5em,attachEvent,caption,cssRule,Month,dayNamesMin,showButtons,updateMonth,replace,greed,CCC,title,solid,Options,setMinutes,instanceof,Year,Names,Next,Day,Short,Prev,Button".split(",")));
@@ -3,14 +3,14 @@
3
3
  *
4
4
  * See http://rightjs.org/goods/drag-n-drop
5
5
  *
6
- * Copyright (C) Nikolay V. Nemshilov aka St.
6
+ * Copyright (C) 2009-2010 Nikolay V. Nemshilov
7
7
  */
8
8
  if (!RightJS) throw "Gimme RightJS";
9
9
 
10
10
  /**
11
11
  * Draggable unit
12
12
  *
13
- * Copyright (C) Nikolay V. Nemshilov aka St.
13
+ * Copyright (C) 2009-2010 Nikolay V. Nemshilov
14
14
  */
15
15
  var Draggable = new Class(Observer, {
16
16
  extend: {
@@ -262,7 +262,7 @@ var Draggable = new Class(Observer, {
262
262
  width: this.clone.getStyle('width'),
263
263
  height: this.clone.getStyle('height'),
264
264
  position: this.clone.getStyle('position'),
265
- zIndex: this.clone.getStyle('zIndex')
265
+ zIndex: this.clone.getStyle('zIndex') || ''
266
266
  }), 'before'
267
267
  ).remove();
268
268
  }
@@ -310,7 +310,7 @@ var Draggable = new Class(Observer, {
310
310
  /**
311
311
  * Droppable unit
312
312
  *
313
- * Copyright (C) Nikolay V. Nemshilov aka St.
313
+ * Copyright (C) 2009-2010 Nikolay V. Nemshilov
314
314
  */
315
315
  var Droppable = new Class(Observer, {
316
316
  extend: {
@@ -503,7 +503,7 @@ var Droppable = new Class(Observer, {
503
503
  /**
504
504
  * The document events hooker
505
505
  *
506
- * Copyright (C) 2009 Nikolay V. Nemshilov aka St.
506
+ * Copyright (C) 2009-2010 Nikolay V. Nemshilov
507
507
  */
508
508
  document.on({
509
509
  // parocesses the automatically discovered elements
@@ -530,9 +530,9 @@ document.on({
530
530
  /**
531
531
  * Element level hooks for drag'n'drops
532
532
  *
533
- * Copyright (C) Nikolay V. Nemshilov aka St.
533
+ * Copyright (C) 2009-2010 Nikolay V. Nemshilov
534
534
  */
535
- Element.addMethods({
535
+ Element.include({
536
536
 
537
537
  makeDraggable: function(options) {
538
538
  new Draggable(this, options);
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * See http://rightjs.org/goods/drag-n-drop
5
5
  *
6
- * Copyright (C) Nikolay V. Nemshilov aka St.
6
+ * Copyright (C) 2009-2010 Nikolay V. Nemshilov
7
7
  */
8
8
  if (!RightJS) throw "Gimme RightJS";
9
- 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})("13 9=74 111(83,{96:{97:$w('57 110 119 s31 75'),46:{29:38,60:0,114:38,108:38,53:'119ging',18:54,42:54,27:'normal',95:41,36:32,39:10000000,88:54,63:'119gable'},20:38,40:8(s){13 k=4.46.63;($(s)||59).select('*[rel^=\"'+k+'\"]').each(8(e){if(!e.19){13 d=e.get('data-'+k+'-7');74 4(e,116('('+d+')')||{})}},4)}},67:8(e,o){4.6=$(e);4.72(o);4.6.19=4.118()},48:8(){4.29.s31Observing('mousedown',4.43);99(4.6.19);11 4},set46:8(o){4.72(o);4.29=4.7.29?$(4.7.29):4.6;if(isArray(4.7.60)){4.60X=4.7.60[0];4.60Y=4.7.60[1]}50 4.60X=4.60Y=4.7.60;11 4},42:8(){13 p=4.18.25();13 e={31:(p.y+4.56)+'px',24:(p.x+4.55)+'px'};if(4.7.27&&4.6.109)4.6.109(e,{duration:4.7.27,onFinish:4.58.115(4)});50{4.6.34(e);4.58()}11 4},118:8(){4.43=4.76.115(4);4.29.onMousedown(4.43);11 4},76:8(e){4.30('57',4,e.s31());13 p=p=4.6.25();4.103=e.78-p.x;4.113=e.79-p.y;13 r={y:4.6.16('31').87(),x:4.6.16('24').87()};4.55=104(r.x)?0:(r.x-p.x);4.56=104(r.y)?0:(r.y-p.y);13 s={x:4.6.16('17'),y:4.6.16('15')};if(s.x=='117')s.x=4.6.offsetWidth+'px';if(s.y=='117')s.y=4.6.offsetHeight+'px';if(4.7.18||4.7.42)4.18=$(4.6.18Node(41)).34({visibility:4.7.18?'visible':'hidden'}).81(4.6,'57');4.6.34({25:'absolute',39:9.46.39++,31:(p.y+4.56)+'px',24:(p.x+4.55)+'px',17:s.x,15:s.y}).82(4.7.53);if(4.7.88)4.6.81(59.body);4.12=69.95s();4.26=69.106();9.20=4.47().30('110',4,e)},61:8(e){13 p=e.78,a=e.79,x=p-4.103,y=a-4.113;if(4.70){if(4.90>x)x=4.90;if(4.91<x)x=4.91;if(4.94>y)y=4.94;if(4.92<y)y=4.92}if(4.7.95){13 s={x:4.12.x,y:4.12.y},b=4.7.36;if((a-s.y)<b)s.y=a-b;50 if((s.y+4.26.y-a)<b)s.y=a-4.26.y+b;if((p-s.x)<b)s.x=p-b;50 if((s.x+4.26.x-p)<b)s.x=p-4.26.x+b;if(s.y<0)s.y=0;if(s.x<0)s.x=0;if(s.y<4.12.y||s.y>4.12.y||s.x<4.12.x||s.x>4.12.x)69.95To(4.12=s)}if(4.60X)x=x-x % 4.60X;if(4.60Y)y=y-y % 4.60Y;if(!4.105)4.6.101.24=(x+4.55)+'px';if(!4.112)4.6.101.31=(y+4.56)+'px';4.30('119',4,e)},119S31:8(e){4.6.37(4.7.53);14.33(e,4);if(4.7.42)4.42();9.20=38;4.30('s31',4,e)},58:8(){if(4.18)4.18.insert(4.6.34({17:4.18.16('17'),15:4.18.16('15'),25:4.18.16('25'),39:4.18.16('39')}),'57').remove()},47:8(){13 a=4.7.114;4.112=['x','68'].89(a);4.105=['y','86'].89(a);4.70=54;13 r=4.7.108;if(r){4.70=41;13 e=$(r);if(is121(e)){13 d=e.44();r={x:[d.24,d.24+d.17],y:[d.31,d.31+d.15]}}if(isHash(r)){13 s=4.6.106();if(r.x){4.90=r.x[0];4.91=r.x[1]-s.x}if(r.y){4.94=r.y[0];4.92=r.y[1]-s.y}}}11 4}});13 14=74 111(83,{96:{97:$w('75 102 107'),46:{71:'*',21:38,62:38,62122:0.5,45:'49-allow',51:'49-deny',63:'49'},40:116('({f:'+9.40.toString().replace(/\\.19/g,'.23')+'})').f,28:8(e,d){120(13 i=0,l=4.22.98;i<l;i++)4.22[i].28(e,d)},33:8(e,d){120(13 i=0,l=4.22.98;i<l;i++)4.22[i].33(e,d)},22:[]},67:8(e,o){4.6=$(e);4.72(o);14.22.push(4.6.23=4)},48:8(){14.22=14.22.without(4);99(4.6.23);11 4},28:8(e,d){if(4.52(e,d)){if(!4.35){4.35=41;4.6.82(4.7[4.73(d)?'45':'51']);4.30('102',d,4,e)}}50 if(4.35){4.35=54;4.84().30('107',d,4,e)}},33:8(e,d){4.84();if(4.52(e,d)&&4.73(d)){d.30('75',4,d,e);4.30('75',d,4,e)}},84:8(){4.6.37(4.7.45).37(4.7.51);11 4},52:8(e,c){13 d=4.6.44(),k=d.31,i=d.24,j=d.24+d.17,t=d.31+d.15,f=e.78,g=e.79;if(4.7.62){13 a=c.6.44(),h=4.7.62122,m=a.31,l=a.24,r=a.24+a.17,b=a.31+a.15;switch(4.7.62){77 'x':77 '68':11((m>k&&m<t)||(b>k&&b<t))&&((l>i&&l<(j-d.17*h))||(r<j&&r>(i+d.17*h)));77 'y':77 '86':11((l>i&&l<j)||(r>i&&r<j))&&((m>k&&m<(t-d.15*h))||(b<t&&b>(k+d.15*h)));default:11((l>i&&l<(j-d.17*h))||(r<j&&r>(i+d.17*h)))&&((m>k&&m<(t-d.15*h))||(b<t&&b>(k+d.15*h)))}}50 11 f>i&&f<j&&g>k&&g<t},73:8(d){if(4.7.21&&!4.80){4.7.21.walk($);4.80=41}13 w=4.7.21?4.7.21.89s(d.6):41;11 w&&(4.7.71=='*'?41:d.6.match(4.7.71))}});59.on({ready:8(){9.40();14.40()},mousemove:8(e){if(9.20){9.20.61(e);14.28(e,9.20)}},mouseup:8(e){if(9.20)9.20.119S31(e)}});121.addMethods({make9:8(o){74 9(4,o);11 4},undo9:8(){if(4.19)4.19.48();11 4},make14:8(o){74 14(4,o);11 4},undo14:8(){if(4.23)4.23.48();11 4}});",",,,,this,,element,options,function,Draggable,,return,winScrolls,var,Droppable,height,getStyle,width,clone,_draggable,current,containment,active,_droppable,left,position,winSizes,revertDuration,checkHover,handle,fire,top,,checkDrop,setStyle,_hovered,scrollSensitivity,removeClass,null,zIndex,rescan,true,revert,_dragStart,dimensions,allowClass,Options,calcConstraints,destroy,droppable,else,denyClass,hoveredBy,dragClass,false,rxDiff,ryDiff,before,swapBack,document,snap,dragProcess,overlap,relName,snapX,overlapSize,snapY,initialize,horizontal,window,ranged,accept,$super,allows,new,drop,dragStart,case,pageX,pageY,_scanned,insertTo,addClass,Observer,reset,dragStop,vertical,toFloat,moveOut,include,minX,maxX,maxY,stop,minY,scroll,extend,EVENTS,length,delete,,style,hover,xDiff,isNaN,axisY,sizes,leave,range,morph,start,Class,axisX,yDiff,axis,bind,eval,auto,init,drag,for,Element,Size".split(",")));
9
+ 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})("13 9=75 112(83,{97:{98:$w('57 105 119 s31 78'),46:{29:39,60:0,114:39,108:39,53:'119ging',18:54,41:54,27:'normal',96:42,36:32,38:10000000,89:54,63:'119gable'},20:39,40:8(s){13 k=4.46.63;($(s)||59).select('*[rel^=\"'+k+'\"]').each(8(e){if(!e.19){13 d=e.get('data-'+k+'-7');75 4(e,116('('+d+')')||{})}},4)}},68:8(e,o){4.6=$(e);4.71(o);4.6.19=4.118()},47:8(){4.29.s31Observing('mousedown',4.43);99(4.6.19);11 4},set46:8(o){4.71(o);4.29=4.7.29?$(4.7.29):4.6;if(isArray(4.7.60)){4.60X=4.7.60[0];4.60Y=4.7.60[1]}50 4.60X=4.60Y=4.7.60;11 4},41:8(){13 p=4.18.25();13 e={31:(p.y+4.56)+'px',24:(p.x+4.55)+'px'};if(4.7.27&&4.6.109)4.6.109(e,{duration:4.7.27,onFinish:4.58.115(4)});50{4.6.34(e);4.58()}11 4},118:8(){4.43=4.77.115(4);4.29.onMousedown(4.43);11 4},77:8(e){4.30('57',4,e.s31());13 p=p=4.6.25();4.106=e.79-p.x;4.113=e.85-p.y;13 r={y:4.6.16('31').88(),x:4.6.16('24').88()};4.55=104(r.x)?0:(r.x-p.x);4.56=104(r.y)?0:(r.y-p.y);13 s={x:4.6.16('17'),y:4.6.16('15')};if(s.x=='117')s.x=4.6.offsetWidth+'px';if(s.y=='117')s.y=4.6.offsetHeight+'px';if(4.7.18||4.7.41)4.18=$(4.6.18Node(42)).34({visibility:4.7.18?'visible':'hidden'}).80(4.6,'57');4.6.34({25:'absolute',38:9.46.38++,31:(p.y+4.56)+'px',24:(p.x+4.55)+'px',17:s.x,15:s.y}).87(4.7.53);if(4.7.89)4.6.80(59.body);4.12=70.96s();4.26=70.107();9.20=4.48().30('105',4,e)},62:8(e){13 p=e.79,a=e.85,x=p-4.106,y=a-4.113;if(4.73){if(4.93>x)x=4.93;if(4.94<x)x=4.94;if(4.92>y)y=4.92;if(4.91<y)y=4.91}if(4.7.96){13 s={x:4.12.x,y:4.12.y},b=4.7.36;if((a-s.y)<b)s.y=a-b;50 if((s.y+4.26.y-a)<b)s.y=a-4.26.y+b;if((p-s.x)<b)s.x=p-b;50 if((s.x+4.26.x-p)<b)s.x=p-4.26.x+b;if(s.y<0)s.y=0;if(s.x<0)s.x=0;if(s.y<4.12.y||s.y>4.12.y||s.x<4.12.x||s.x>4.12.x)70.96To(4.12=s)}if(4.60X)x=x-x % 4.60X;if(4.60Y)y=y-y % 4.60Y;if(!4.103)4.6.110.24=(x+4.55)+'px';if(!4.101)4.6.110.31=(y+4.56)+'px';4.30('119',4,e)},119S31:8(e){4.6.37(4.7.53);14.33(e,4);if(4.7.41)4.41();9.20=39;4.30('s31',4,e)},58:8(){if(4.18)4.18.insert(4.6.34({17:4.18.16('17'),15:4.18.16('15'),25:4.18.16('25'),38:4.18.16('38')||''}),'57').remove()},48:8(){13 a=4.7.114;4.101=['x','69'].66(a);4.103=['y','82'].66(a);4.73=54;13 r=4.7.108;if(r){4.73=42;13 e=$(r);if(is121(e)){13 d=e.45();r={x:[d.24,d.24+d.17],y:[d.31,d.31+d.15]}}if(isHash(r)){13 s=4.6.107();if(r.x){4.93=r.x[0];4.94=r.x[1]-s.x}if(r.y){4.92=r.y[0];4.91=r.y[1]-s.y}}}11 4}});13 14=75 112(83,{97:{98:$w('78 102 111'),46:{72:'*',21:39,61:39,61122:0.5,44:'51-allow',49:'51-deny',63:'51'},40:116('({f:'+9.40.toString().replace(/\\.19/g,'.23')+'})').f,28:8(e,d){120(13 i=0,l=4.22.95;i<l;i++)4.22[i].28(e,d)},33:8(e,d){120(13 i=0,l=4.22.95;i<l;i++)4.22[i].33(e,d)},22:[]},68:8(e,o){4.6=$(e);4.71(o);14.22.push(4.6.23=4)},47:8(){14.22=14.22.without(4);99(4.6.23);11 4},28:8(e,d){if(4.52(e,d)){if(!4.35){4.35=42;4.6.87(4.7[4.74(d)?'44':'49']);4.30('102',d,4,e)}}50 if(4.35){4.35=54;4.81().30('111',d,4,e)}},33:8(e,d){4.81();if(4.52(e,d)&&4.74(d)){d.30('78',4,d,e);4.30('78',d,4,e)}},81:8(){4.6.37(4.7.44).37(4.7.49);11 4},52:8(e,c){13 d=4.6.45(),k=d.31,i=d.24,j=d.24+d.17,t=d.31+d.15,f=e.79,g=e.85;if(4.7.61){13 a=c.6.45(),h=4.7.61122,m=a.31,l=a.24,r=a.24+a.17,b=a.31+a.15;switch(4.7.61){76 'x':76 '69':11((m>k&&m<t)||(b>k&&b<t))&&((l>i&&l<(j-d.17*h))||(r<j&&r>(i+d.17*h)));76 'y':76 '82':11((l>i&&l<j)||(r>i&&r<j))&&((m>k&&m<(t-d.15*h))||(b<t&&b>(k+d.15*h)));default:11((l>i&&l<(j-d.17*h))||(r<j&&r>(i+d.17*h)))&&((m>k&&m<(t-d.15*h))||(b<t&&b>(k+d.15*h)))}}50 11 f>i&&f<j&&g>k&&g<t},74:8(d){if(4.7.21&&!4.86){4.7.21.walk($);4.86=42}13 w=4.7.21?4.7.21.66s(d.6):42;11 w&&(4.7.72=='*'?42:d.6.match(4.7.72))}});59.on({ready:8(){9.40();14.40()},mousemove:8(e){if(9.20){9.20.62(e);14.28(e,9.20)}},mouseup:8(e){if(9.20)9.20.119S31(e)}});121.66({make9:8(o){75 9(4,o);11 4},undo9:8(){if(4.19)4.19.47();11 4},make14:8(o){75 14(4,o);11 4},undo14:8(){if(4.23)4.23.47();11 4}});",",,,,this,,element,options,function,Draggable,,return,winScrolls,var,Droppable,height,getStyle,width,clone,_draggable,current,containment,active,_droppable,left,position,winSizes,revertDuration,checkHover,handle,fire,top,,checkDrop,setStyle,_hovered,scrollSensitivity,removeClass,zIndex,null,rescan,revert,true,_dragStart,allowClass,dimensions,Options,destroy,calcConstraints,denyClass,else,droppable,hoveredBy,dragClass,false,rxDiff,ryDiff,before,swapBack,document,snap,overlap,dragProcess,relName,snapX,snapY,include,overlapSize,initialize,horizontal,window,$super,accept,ranged,allows,new,case,dragStart,drop,pageX,insertTo,reset,vertical,Observer,dragStop,pageY,_scanned,addClass,toFloat,moveOut,stop,maxY,minY,minX,maxX,length,scroll,extend,EVENTS,delete,,axisX,hover,axisY,isNaN,start,xDiff,sizes,range,morph,style,leave,Class,yDiff,axis,bind,eval,auto,init,drag,for,Element,Size".split(",")));
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * Additional visual effects module
3
3
  *
4
- * Copyright (C) 2008-2009 Nikolay V. Nemshilov aka St. <nemshilov#gma-il>
4
+ * Copyright (C) 2008-2010 Nikolay V. Nemshilov
5
5
  */
6
6
  if (!self.Fx) throw "RightJS Fx is missing";
7
7
  /**
8
8
  * The basic move visual effect
9
9
  *
10
- * @copyright (C) 2009 Nikolay V. Nemshilov aka St.
10
+ * @copyright (C) 2009-2010 Nikolay V. Nemshilov
11
11
  */
12
12
  Fx.Move = new Class(Fx.Morph, {
13
13
  extend: {
@@ -75,7 +75,7 @@ Fx.Move = new Class(Fx.Morph, {
75
75
  /**
76
76
  * Zoom visual effect, graduately zoom and element in or out
77
77
  *
78
- * @copyright (C) 2009 Nikolay V. Nemshilov aka St.
78
+ * @copyright (C) 2009-2010 Nikolay V. Nemshilov
79
79
  */
80
80
  Fx.Zoom = new Class(Fx.Move, {
81
81
  PROPERTIES: $w('width height lineHeight paddingTop paddingRight paddingBottom paddingLeft fontSize borderWidth'),
@@ -189,7 +189,7 @@ Fx.Zoom = new Class(Fx.Move, {
189
189
  /**
190
190
  * Bounce visual effect, slightly moves an element forward and back
191
191
  *
192
- * @copyright (C) 2009 Nikolay V. Nemshilov aka St.
192
+ * @copyright (C) 2009 Nikolay V. Nemshilov
193
193
  */
194
194
  Fx.Bounce = new Class(Fx, {
195
195
  extend: {
@@ -234,7 +234,7 @@ Fx.Bounce = new Class(Fx, {
234
234
  /**
235
235
  * run out and run in efffects
236
236
  *
237
- * Copyright (C) 2009 Nikolay V. Nemshilov aka St.
237
+ * Copyright (C) 2009-2010 Nikolay V. Nemshilov
238
238
  */
239
239
  Fx.Run = new Class(Fx.Move, {
240
240
  extend: {
@@ -276,7 +276,7 @@ Fx.Run = new Class(Fx.Move, {
276
276
  /**
277
277
  * The puff visual effect
278
278
  *
279
- * Copyright (C) Nikolay V. Nemshilov aka St.
279
+ * Copyright (C) 2009-2010 Nikolay V. Nemshilov
280
280
  */
281
281
  Fx.Puff = new Class(Fx.Zoom, {
282
282
  extend: {
@@ -326,7 +326,7 @@ Fx.Puff = new Class(Fx.Zoom, {
326
326
  /**
327
327
  * Handles the to-class and from-class visual effects
328
328
  *
329
- * Copyright (C) Nikolay V. Nemshilov aka St.
329
+ * Copyright (C) 2009-2010 Nikolay V. Nemshilov
330
330
  */
331
331
  Fx.CSS = new Class(Fx.Morph, {
332
332
  STYLES: $w('width height lineHeight opacity border padding margin color fontSize background top left right bottom'),
@@ -362,9 +362,9 @@ Fx.CSS = new Class(Fx.Morph, {
362
362
  /**
363
363
  * Element shortcuts for the additional effects
364
364
  *
365
- * @copyright (C) 2009 Nikolay V. Nemshilov aka St.
365
+ * @copyright (C) 2009-2010 Nikolay V. Nemshilov
366
366
  */
367
- Element.addMethods({
367
+ Element.include({
368
368
  /**
369
369
  * The move visual effect shortcut
370
370
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Additional visual effects module
3
3
  *
4
- * Copyright (C) 2008-2009 Nikolay V. Nemshilov aka St. <nemshilov#gma-il>
4
+ * Copyright (C) 2008-2010 Nikolay V. Nemshilov
5
5
  */
6
- 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.addMethods({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(",")));
6
+ 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(",")));
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * Advanced dom events handling module
3
3
  *
4
- * Copyright (C) 2008-2009 Nikolay V. Nemshilov aka St. <nemshilov#gma-il>
4
+ * Copyright (C) 2008-2010 Nikolay V. Nemshilov
5
5
  */
6
6
 
7
7
  /**
8
8
  * The Event class additional functionality
9
9
  *
10
- * Copyright (C) 2008-2009 Nikolay V. Nemshilov aka St. <nemshilov#gma-il>
10
+ * Copyright (C) 2008-2010 Nikolay V. Nemshilov
11
11
  */
12
12
  Event.extend({
13
13
  // keyboard key codes
@@ -71,7 +71,7 @@ Event.prototype.initialize = function() {
71
71
  /**
72
72
  * presents the basic events class
73
73
  *
74
- * Copyright (C) 2008-2009 Nikolay V. Nemshilov aka St. <nemshilov#gma-ilc-om>
74
+ * Copyright (C) 2008-2010 Nikolay V. Nemshilov
75
75
  */
76
76
  Event.Base = new Class({
77
77
  extend: {
@@ -140,7 +140,7 @@ Event.Base = new Class({
140
140
  * unextended mouse event.
141
141
  * Use the Event general constructor, if you need a usual extened event.
142
142
  *
143
- * Copyright (C) 2008-2009 Nikolay V. Nemshilov aka St. <nemshilov#gma-ilc-om>
143
+ * Copyright (C) 2008-2010 Nikolay V. Nemshilov
144
144
  */
145
145
  Event.Mouse = new Class(Event.Base, {
146
146
 
@@ -200,7 +200,7 @@ Event.Mouse = new Class(Event.Base, {
200
200
  }
201
201
  });
202
202
 
203
- Event.addMethods(Event.Mouse.Methods);
203
+ Event.include(Event.Mouse.Methods);
204
204
  /**
205
205
  * presents the keyboard events class
206
206
  *
@@ -208,7 +208,7 @@ Event.addMethods(Event.Mouse.Methods);
208
208
  * unextended mouse event.
209
209
  * Use the Event general constructor, if you need a usual extened event.
210
210
  *
211
- * Copyright (C) 2008-2009 Nikolay V. Nemshilov aka St. <nemshilov#gma-ilc-om>
211
+ * Copyright (C) 2008-2010 Nikolay V. Nemshilov
212
212
  */
213
213
  Event.Keyboard = new Class(Event.Base, {
214
214
 
@@ -292,13 +292,13 @@ Event.Keyboard = new Class(Event.Base, {
292
292
  })(key, Event.KEYS[key]);
293
293
  };
294
294
 
295
- Event.addMethods(Event.Keyboard.Methods);
295
+ Event.include(Event.Keyboard.Methods);
296
296
  })();
297
297
 
298
298
  /**
299
299
  * Reassigning the element #fire method to support the native events dispatching
300
300
  *
301
- * @copyright 2009 Nikolay V. Nemshilov aka St.
301
+ * @copyright 2009-2010 Nikolay V. Nemshilov
302
302
  */
303
303
  Element.include({
304
304
  fire: function() {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Advanced dom events handling module
3
3
  *
4
- * Copyright (C) 2008-2009 Nikolay V. Nemshilov aka St. <nemshilov#gma-il>
4
+ * Copyright (C) 2008-2010 Nikolay V. Nemshilov
5
5
  */
6
- 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})("11.47({77:{BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,66:37,UP:38,54:39,DOWN:40,INSERT:45,DELETE:46},74:(18.IE||18.Konqueror)?{66:1,64:4,54:2}:{66:0,64:1,54:2}});11.proto85.62=10(){44 a=$A(68),e=a.69(),o=a.pop()||{};if(isString(e)){44 n=11.clean92(e);if(11.58.57.72(n))e=50 11.58(n,o);51 if(11.26.57.72(n))e=50 11.26(n,o);51 e=50 11.80(n,o)}14 11.ext(e)};11.65=50 70({47:{29:{30:87,22:87,19:56,17:56,16:56,24:56}},62:10(n,o){14 12.53(12.52(n,o))},53:18.IE?10(o){44 e=15.create1182();e.85=e.67=\"on\"+o.21;e.19=o.19;e.17=o.17;e.16=o.16;14 e}:78,52:10(n,o){o=82.83({},11.65.29,12.29,o);o.21=n;14 o}});11.58=50 70(11.65,{47:{57:$w('click 55 59 71 mousedown mouseup mouseover mouseout mousemove'),28:{isLeft91:10(){14 12.84==1},isRight91:10(){14 12.84==3},over:10(e){44 d=$(e).dimensions(),x=12.pageX,y=12.pageY;14!(x<d.86||x>(d.86+d.width)||y<d.88||y>(d.88+d.height))}}},29:{41:0,42:0,43:0},53:10(o){44 e=18.IE?12.63(o):15.create11(\"5811\");12[18.IE?'48':'76'](e,o);14 e},52:10(n,o){o=12.63(n,o);o.43=11.74[o.21=='59'?'54':o.21=='55'?'64':'66'];o.21=11.real92(o.21);14 o},48:10(e,o){e.clientX=o.41;e.clientY=o.42;e.43=o.43},76:10(e,o){e.init5811(o.21,o.30,o.22,15.25,21=='71'?2:1,o.41,o.42,o.41,o.42,o.17,o.19,o.16,o.24,o.43,o.75)}});11.add28(11.58.28);11.26=50 70(11.65,{47:{57:$w('keypress keydown keyup'),28:{}},29:{20:0,23:0},53:10(o){44 a=78;if(18.IE){a=12.63(o);12.48(a,o)}51 try{a=15.create11('2611');12['init'+(18.WebKit?'89':'90')](a,o)}catch(e){a=15.create11('UI11');12.73(a,o)}14 a},init90:10(e,o){e.initKey11(o.21,o.30,o.22,15.25,o.17,o.19,o.16,o.24,o.20,o.23)},init89:10(e,o){e.init2611(o.21,o.30,o.22,15.25,78,0,o.17,o.19,o.16,o.24)},73:10(e,o){e.initUI11(o.21,o.30,o.22,15.25,1);e.20=o.20;e.23=o.23;e.19=o.19;e.24=o.24;e.17=o.17;e.16=o.16},48:10(e,o){e.20=o.20;e.23=o.23}});(10(){for(44 b in 11.77)(10(k,a){11.26.28[('is_'+k.toLowerCase()).camelize()]=10(){14 12.20==a}})(b,11.77[b]);;11.add28(11.26.28)})();Element.include({fire:10(){44 b=$A(68),e=50 11(b.69(),82.83(b.69(),{75:12}));if(e instanceof 11.80){(12.$listeners||[]).each(10(a){if(a.e==e.85)a.f.apply(12,[e].79(a.a).79(b))},12)}51 if(12.dispatch11)12.dispatch11(e);51 12.fire11(e.67,e);14 12}});",",,,,,,,,,,function,Event,this,,return,document,shiftKey,ctrlKey,Browser,altKey,keyCode,name,cancelable,charCode,metaKey,defaultView,Keyboard,,Methods,Options,bubbles,createEvent,,,,,,,,,,pointerX,pointerY,button,var,,,extend,initIE,dispatchEvent,new,else,options,build,RIGHT,middleclick,false,NAMES,Mouse,rightclick,addMethods,,initialize,$super,MIDDLE,Base,LEFT,eventType,arguments,shift,Class,dblclick,includes,initDOM2,BUTTONS,element,initW3C,KEYS,null,concat,Custom,,Object,merge,which,type,left,true,top,Webkit,Gecko,Click,Name".split(",")));
6
+ 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})("11.48({78:{BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,68:37,UP:38,57:39,DOWN:40,INSERT:45,DELETE:46},76:(20.IE||20.Konqueror)?{68:1,64:4,57:2}:{68:0,64:1,57:2}});11.proto84.62=10(){44 a=$A(66),e=a.70(),o=a.pop()||{};if(isString(e)){44 n=11.clean91(e);if(11.56.58.59s(n))e=49 11.56(n,o);51 if(11.26.58.59s(n))e=49 11.26(n,o);51 e=49 11.79(n,o)}14 11.ext(e)};11.65=49 72({48:{30:{28:85,21:85,19:54,17:54,16:54,24:54}},62:10(n,o){14 12.55(12.52(n,o))},55:20.IE?10(o){44 e=15.create1181();e.84=e.67=\"on\"+o.22;e.19=o.19;e.17=o.17;e.16=o.16;14 e}:77,52:10(n,o){o=81.83({},11.65.30,12.30,o);o.22=n;14 o}});11.56=49 72(11.65,{48:{58:$w('click 53 60 69 mousedown mouseup mouseover mouseout mousemove'),29:{isLeft90:10(){14 12.82==1},isRight90:10(){14 12.82==3},over:10(e){44 d=$(e).dimensions(),x=12.pageX,y=12.pageY;14!(x<d.86||x>(d.86+d.width)||y<d.87||y>(d.87+d.height))}}},30:{31:0,42:0,43:0},55:10(o){44 e=20.IE?12.63(o):15.create11(\"5611\");12[20.IE?'47':'74'](e,o);14 e},52:10(n,o){o=12.63(n,o);o.43=11.76[o.22=='60'?'57':o.22=='53'?'64':'68'];o.22=11.real91(o.22);14 o},47:10(e,o){e.clientX=o.31;e.clientY=o.42;e.43=o.43},74:10(e,o){e.init5611(o.22,o.28,o.21,15.25,22=='69'?2:1,o.31,o.42,o.31,o.42,o.17,o.19,o.16,o.24,o.43,o.75)}});11.59(11.56.29);11.26=49 72(11.65,{48:{58:$w('keypress keydown keyup'),29:{}},30:{18:0,23:0},55:10(o){44 a=77;if(20.IE){a=12.63(o);12.47(a,o)}51 try{a=15.create11('2611');12['init'+(20.WebKit?'88':'89')](a,o)}catch(e){a=15.create11('UI11');12.73(a,o)}14 a},init89:10(e,o){e.initKey11(o.22,o.28,o.21,15.25,o.17,o.19,o.16,o.24,o.18,o.23)},init88:10(e,o){e.init2611(o.22,o.28,o.21,15.25,77,0,o.17,o.19,o.16,o.24)},73:10(e,o){e.initUI11(o.22,o.28,o.21,15.25,1);e.18=o.18;e.23=o.23;e.19=o.19;e.24=o.24;e.17=o.17;e.16=o.16},47:10(e,o){e.18=o.18;e.23=o.23}});(10(){for(44 b in 11.78)(10(k,a){11.26.29[('is_'+k.toLowerCase()).camelize()]=10(){14 12.18==a}})(b,11.78[b]);;11.59(11.26.29)})();Element.59({fire:10(){44 b=$A(66),e=49 11(b.70(),81.83(b.70(),{75:12}));if(e instanceof 11.79){(12.$listeners||[]).each(10(a){if(a.e==e.84)a.f.apply(12,[e].80(a.a).80(b))},12)}51 if(12.dispatch11)12.dispatch11(e);51 12.fire11(e.67,e);14 12}});",",,,,,,,,,,function,Event,this,,return,document,shiftKey,ctrlKey,keyCode,altKey,Browser,cancelable,name,charCode,metaKey,defaultView,Keyboard,,bubbles,Methods,Options,pointerX,,,,,,,,,,createEvent,pointerY,button,var,,,initIE,extend,new,dispatchEvent,else,options,middleclick,false,build,Mouse,RIGHT,NAMES,include,rightclick,,initialize,$super,MIDDLE,Base,arguments,eventType,LEFT,dblclick,shift,includes,Class,initDOM2,initW3C,element,BUTTONS,null,KEYS,Custom,concat,Object,which,merge,type,true,left,top,Webkit,Gecko,Click,Name".split(",")));
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Inline editor feature for RightJS (http://rightjs.org/ui/in-edit)
3
3
  *
4
- * Copyright (C) 2009 Nikolay V. Nemshilov
4
+ * Copyright (C) 2009-2010 Nikolay V. Nemshilov
5
5
  */
6
6
 
7
7
  /**
@@ -68,7 +68,7 @@ var InEdit = new Class(Observer, {
68
68
  this.submit.show();
69
69
 
70
70
  if (this.options.toggle)
71
- this.options.toggle.hide();
71
+ $(this.options.toggle).hide();
72
72
  }
73
73
 
74
74
  if (this.options.type != 'file')
@@ -146,8 +146,8 @@ var InEdit = new Class(Observer, {
146
146
  buildField: function() {
147
147
  return (this.options.type == 'textarea' ? $E('textarea') :
148
148
  $E('input', {type: this.options.type}))
149
- .addClass('right-in-edit-field')
150
- .set('name', this.options.name);
149
+ .addClass('right-in-edit-field')
150
+ .set('name', this.options.name);
151
151
  },
152
152
 
153
153
  buildSpinner: function() {
@@ -157,7 +157,9 @@ var InEdit = new Class(Observer, {
157
157
  });
158
158
 
159
159
  (function() {
160
- spinner.insertBefore(spinner.lastChild, spinner.firstChild)
160
+ if (spinner.firstChild) {
161
+ spinner.insertBefore(spinner.lastChild, spinner.firstChild);
162
+ }
161
163
  }).periodical(400);
162
164
 
163
165
  return spinner;
@@ -168,7 +170,7 @@ var InEdit = new Class(Observer, {
168
170
  /**
169
171
  * The document hooks for in-edit form
170
172
  *
171
- * Copyright (C) Nikolay V. Nemshilov
173
+ * Copyright (C) 2010 Nikolay V. Nemshilov
172
174
  */
173
175
  document.onKeydown(function(event) {
174
176
  if (event.keyCode == 27 && InEdit.current)
@@ -178,9 +180,9 @@ document.onKeydown(function(event) {
178
180
  /**
179
181
  * The element level inline editor extension
180
182
  *
181
- * Copyright (C) 2009 Nikolay V. Nemshilov
183
+ * Copyright (C) 2009-2010 Nikolay V. Nemshilov
182
184
  */
183
- Element.addMethods({
185
+ Element.include({
184
186
  /**
185
187
  * Triggers an inline-editor feature on the element
186
188
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Inline editor feature for RightJS (http://rightjs.org/ui/in-edit)
3
3
  *
4
- * Copyright (C) 2009 Nikolay V. Nemshilov
4
+ * Copyright (C) 2009-2010 Nikolay V. Nemshilov
5
5
  */
6
- 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})("78 16=65 81(Observer,{extend:{EVENTS:$w('30 23 41 21'),80:{66:39,53:'42',46:'put',28:'42',32:39,21:true,60:{}},54:{73:'Save',19:'Cancel'},15:39},initialize:11(e,o){6.set80(o);6.29=$(e);6.64()},30:11(){if(16.15!==6){if(16.15)16.15.23();6.34=6.29.49;if(!['68','password'].include(6.13.28))6.22.62=6.34;6.29.clean().56(6.31);6.12.23();6.17.30();if(6.13.32)6.13.32.23()}if(6.13.28!='68')6.22.focus();16.15=6;20 6.47('30',6)},23:11(){6.29.49=6.34;if(6.48)6.48.19();20 6.45()},41:11(){6.12.30().resize(6.17.sizes());6.17.23();6.48=65 60(6.13.66,Object.merge(6.13.60,{46:6.13.46,12:6.12,onComplete:6.21.52(6)})).41(6.31);20 6.47('41',6)},45:11(){if(6.13.32)6.13.32.30();16.15=39;20 6.47('23',6)},21:11(){if(6.13.21){6.29.21(6.48.42);6.47('21',6)}6.48=39;6.45()},64:11(){6.22=6.44();6.12=6.38();6.17=$E('63',{28:'17','35':'9-in-14-17',62:6.43.54.73});6.19=$E('a',{href:'','35':'9-in-14-19',69:6.43.54.19});6.31=$E('31',{'35':'9-in-14',action:6.13.66}).56([6.22,6.12,6.17,6.19]);6.31.onSubmit(11(a){a.72();6.41()}.52(6));6.19.onClick(11(a){a.72();6.23()}.52(6))},44:11(){20(6.13.28=='37'?$E('37'):$E('63',{28:6.13.28})).add81('9-in-14-22').set('53',6.13.53)},38:11(){78 s=$E('24',{'35':'9-in-14-12','69':'<24 35=\"71\"></24><24></24><24></24>'});(11(){s.56Before(s.last82,s.first82)}).periodical(400);20 s}});50.onKeydown(11(e){if(e.keyCode==27&&16.15)16.15.23()});Element.addMethods({inEdit:11(o){20 65 16(6,o).30()}});50.write(\"<59 28=\\\"42/css\\\">31.9-in-14,*.9-in-14-22,*.9-in-14-17,*.9-in-14-19,*.9-in-14-12,*.9-in-14-12 24{33:0;padding:0}31.9-in-14,*.9-in-14-12,*.9-in-14-12 24{51:57-block;*51:57;*zoom:1;26:70;25:70}37.9-in-14-22{67:75%;33-bottom:.5em}*.9-in-14-22,*.9-in-14-17,*.9-in-14-12{33-9:.61}*.9-in-14-12{25:#EEE;26:1px solid #DDD;-76-26-36:.61;-55-26-36:.61;42-align:center;line-58:75%}*.9-in-14-12 24{67:.79;58:.7em;33-top:.79;25:#BBB;33-9:2px;-76-26-36:.74;-55-26-36:.74}*.9-in-14-12 24.71{25:#777}</59>\");",",,,,,,this,,,right,,function,spinner,options,edit,current,InEdit,submit,,cancel,return,update,field,hide,div,background,border,,type,element,show,form,toggle,margin,oldContent,class,radius,textarea,buildSpinner,null,,send,text,constructor,buildField,finish,method,fire,xhr,innerHTML,document,display,bind,name,i18n,webkit,insert,inline,height,style,Xhr,2em,value,input,build,new,url,width,file,html,none,glow,stop,save,1em,100,moz,,var,3em,Options,Class,Child".split(",")));
6
+ 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})("80 16=68 83(Observer,{extend:{EVENTS:$w('31 23 39 21'),82:{67:41,54:'42',46:'put',29:'42',30:41,21:true,62:{}},56:{75:'Save',19:'Cancel'},15:41},initialize:11(e,o){6.set82(o);6.28=$(e);6.63()},31:11(){if(16.15!==6){if(16.15)16.15.23();6.34=6.28.50;if(!['70','password'].52(6.13.29))6.22.61=6.34;6.28.clean().58(6.32);6.12.23();6.17.31();if(6.13.30)$(6.13.30).23()}if(6.13.29!='70')6.22.focus();16.15=6;20 6.48('31',6)},23:11(){6.28.50=6.34;if(6.49)6.49.19();20 6.47()},39:11(){6.12.31().resize(6.17.sizes());6.17.23();6.49=68 62(6.13.67,Object.merge(6.13.62,{46:6.13.46,12:6.12,onComplete:6.21.55(6)})).39(6.32);20 6.48('39',6)},47:11(){if(6.13.30)6.13.30.31();16.15=41;20 6.48('23',6)},21:11(){if(6.13.21){6.28.21(6.49.42);6.48('21',6)}6.49=41;6.47()},63:11(){6.22=6.45();6.12=6.38();6.17=$E('65',{29:'17','35':'9-in-14-17',61:6.43.56.75});6.19=$E('a',{href:'','35':'9-in-14-19',71:6.43.56.19});6.32=$E('32',{'35':'9-in-14',action:6.13.67}).58([6.22,6.12,6.17,6.19]);6.32.onSubmit(11(a){a.74();6.39()}.55(6));6.19.onClick(11(a){a.74();6.23()}.55(6))},45:11(){20(6.13.29=='37'?$E('37'):$E('65',{29:6.13.29})).add83('9-in-14-22').set('54',6.13.54)},38:11(){80 s=$E('24',{'35':'9-in-14-12','71':'<24 35=\"73\"></24><24></24><24></24>'});(11(){if(s.44)s.58Before(s.lastChild,s.44)}).periodical(400);20 s}});51.onKeydown(11(e){if(e.keyCode==27&&16.15)16.15.23()});Element.52({inEdit:11(o){20 68 16(6,o).31()}});51.write(\"<64 29=\\\"42/css\\\">32.9-in-14,*.9-in-14-22,*.9-in-14-17,*.9-in-14-19,*.9-in-14-12,*.9-in-14-12 24{33:0;padding:0}32.9-in-14,*.9-in-14-12,*.9-in-14-12 24{53:57-block;*53:57;*zoom:1;26:72;25:72}37.9-in-14-22{69:78%;33-bottom:.5em}*.9-in-14-22,*.9-in-14-17,*.9-in-14-12{33-9:.66}*.9-in-14-12{25:#EEE;26:1px solid #DDD;-79-26-36:.66;-60-26-36:.66;42-align:center;line-59:78%}*.9-in-14-12 24{69:.81;59:.7em;33-top:.81;25:#BBB;33-9:2px;-79-26-36:.76;-60-26-36:.76}*.9-in-14-12 24.73{25:#777}</64>\");",",,,,,,this,,,right,,function,spinner,options,edit,current,InEdit,submit,,cancel,return,update,field,hide,div,background,border,,element,type,toggle,show,form,margin,oldContent,class,radius,textarea,buildSpinner,send,,null,text,constructor,firstChild,buildField,method,finish,fire,xhr,innerHTML,document,include,display,name,bind,i18n,inline,insert,height,webkit,value,Xhr,build,style,input,2em,url,new,width,file,html,none,glow,stop,save,1em,,100,moz,var,3em,Options,Class".split(",")));
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The JSON encode/decode feature
3
3
  *
4
- * Copyright (C) 2009 Nikolay V. Nemshilov aka St. <nemshilov#gma-il>
4
+ * Copyright (C) 2009-2010 Nikolay V. Nemshilov
5
5
  */
6
6
 
7
7
  /**
@@ -11,7 +11,7 @@
11
11
  * Based on the original JSON escaping implementation
12
12
  * http://www.json.org/json2.js
13
13
  *
14
- * @copyright (C) 2009-2010 Nikolay V. Nemshilov aka St.
14
+ * @copyright (C) 2009-2010 Nikolay V. Nemshilov
15
15
  */
16
16
  var JSON = (function(native_JSON) {
17
17
  // see the original JSON decoder implementation for descriptions http://www.json.org/json2.js
@@ -34,7 +34,7 @@ var JSON = (function(native_JSON) {
34
34
 
35
35
 
36
36
  // converts the value into a JSON string
37
- var stringify = native_JSON.stringify || function(value) {
37
+ var stringify = native_JSON ? native_JSON.stringify : function(value) {
38
38
  if (value === null) {
39
39
  return 'null';
40
40
  } else if (value.toJSON) {
@@ -51,13 +51,13 @@ var JSON = (function(native_JSON) {
51
51
  return '['+value.map(JSON.stringify).join(',')+']';
52
52
 
53
53
  else if (value instanceof Date)
54
- return value.getUTCFullYear() + '-' +
55
- zerofy(value.getUTCMonth() + 1) + '-' +
56
- zerofy(value.getUTCDate()) + 'T' +
57
- zerofy(value.getUTCHours()) + ':' +
58
- zerofy(value.getUTCMinutes()) + ':' +
59
- zerofy(value.getUTCSeconds()) + '.' +
60
- zerofy(value..getMilliseconds()) + 'Z' ;
54
+ return value.getUTCFullYear() + '-' +
55
+ zerofy(value.getUTCMonth() + 1) + '-' +
56
+ zerofy(value.getUTCDate()) + 'T' +
57
+ zerofy(value.getUTCHours()) + ':' +
58
+ zerofy(value.getUTCMinutes()) + ':' +
59
+ zerofy(value.getUTCSeconds()) + '.' +
60
+ zerofy(value.getMilliseconds()) + 'Z' ;
61
61
 
62
62
  else {
63
63
  var result = [];
@@ -71,7 +71,7 @@ var JSON = (function(native_JSON) {
71
71
  };
72
72
 
73
73
  // parses a json string
74
- var parse = native_JSON.parse || function(string) {
74
+ var parse = native_JSON ? native_JSON.parse : function(string) {
75
75
  if (isString(string) && string) {
76
76
  // getting back the UTF-8 symbols
77
77
  string = string.replace(cx, function (a) {
@@ -89,7 +89,6 @@ var JSON = (function(native_JSON) {
89
89
  throw "JSON parse error: "+string;
90
90
  };
91
91
 
92
-
93
92
  return {
94
93
 
95
94
  stringify: stringify,
@@ -106,7 +105,7 @@ return {
106
105
  * were automatically exported/imported into JSON strings
107
106
  * and it allowed transparent objects and arrays saving
108
107
  *
109
- * @copyright (C) 2009 Nikolay V. Nemshilov aka St.
108
+ * @copyright (C) 2009-2010 Nikolay V. Nemshilov
110
109
  */
111
110
  if (window['Cookie']) {
112
111
  (function(Cookie_prototype) {
@@ -115,11 +114,11 @@ if (window['Cookie']) {
115
114
 
116
115
  $ext(Cookie_prototype, {
117
116
  set: function(value) {
118
- return old_set.call(this, JSON.encode(value));
117
+ return old_set.call(this, JSON.stringify(value));
119
118
  },
120
119
 
121
120
  get: function() {
122
- return JSON.decode(old_get.call(this));
121
+ return JSON.parse(old_get.call(this));
123
122
  }
124
123
  });
125
124
  })(Cookie.prototype);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * The JSON encode/decode feature
3
3
  *
4
- * Copyright (C) 2009 Nikolay V. Nemshilov aka St. <nemshilov#gma-il>
4
+ * Copyright (C) 2009-2010 Nikolay V. Nemshilov
5
5
  */
6
- 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})("14 12=(11(d){14 a=/[\\u52\\36\\49-\\41\\45\\50\\48\\34-\\47\\46-\\42\\40-\\38\\37\\35-\\44]/g,f={'\\b':'\\\\b','\\t':'\\\\t','\\n':'\\\\n','\\f':'\\\\f','\\r':'\\\\r','\"':'\\\\\"','\\\\\': '\\\\\\\\\'},q=/[\\\\\\\"\\x00-\\x1f\\x7f-\\x9f\\36\\49-\\41\\45\\50\\48\\34-\\47\\46-\\42\\40-\\38\\37\\35-\\44]/g;11 e(s){3 s.13(q,11(c){3 f[c]||'\\\\u'+('52'+c.22(0).30(16)).43(-4)})};14 z=11(n){3(n<10?'0':'')+n};14 g=d.15||11(v){if(v===25)3 '25';19 if(v.to12)3 v.to12();19 switch(typeof(v)){26 'boolean':3 33(v);26 'number':3 33(v+0);26 'string':3 '\"'+e(v)+'\"';26 'object':if(v 21 Array)3 '['+v.map(12.15).53(',')+']';19 if(v 21 56)3 v.55UTCFullYear()+'-'+z(v.55UTCMonth()+1)+'-'+z(v.55UTC56())+'T'+z(v.55UTCHours())+':'+z(v.55UTCMinutes())+':'+z(v.55UTCSeconds())+'.'+z(v..55Milliseconds())+'Z';19{14 r=[];for(14 k in v)r.push(12.18(k)+\":\"+12.18(v[k]));3 '{'+r.53(',')+'}'}}};14 p=d.29||11(s){if(is33(s)&&s){s=s.13(a,11(b){3 '\\\\u'+('52'+b.22(0).30(16)).43(-4)});if(/^[\\],:{}\\s]*$/.test(s.13(/\\\\(?:[\"\\\\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').13(/\"[^\"\\\\\\n\\r]*\"|true|false|25|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?/g,']').13(/(?:^|:|,)(?:\\s*\\[)+/g,'')))3 eval('('+s+')')}39 \"12 29 error: \"+s};3{15:g,29:p,18:g,23:p}})(self.12);if(window['31'])(11(C){14 a=C.54,o=C.55;$ext(C,{54:11(v){3 a.51(27,12.18(v))},55:11(){3 12.23(o.51(27))}})})(31.24);Xhr.24.sanitized12=11(){try{3 12.23(27.text)}catch(e){if(27.secure12)39 e;19 3 25}};",",,,return,,,,,,,,function,JSON,replace,var,stringify,,,encode,else,,instanceof,charCodeAt,decode,prototype,null,case,this,,parse,toString,Cookie,toJSON,String,u200c,ufff0,u00ad,ufeff,u206f,throw,u2060,u0604,u202f,slice,uffff,u070f,u2028,u200f,u17b5,u0600,u17b4,call,0000,join,set,get,Date".split(",")));
6
+ 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})("15 12=(11(d){15 a=/[\\u52\\43\\49-\\45\\46\\50\\48\\37-\\47\\44-\\42\\40-\\38\\34\\36-\\39]/g,f={'\\b':'\\\\b','\\t':'\\\\t','\\n':'\\\\n','\\f':'\\\\f','\\r':'\\\\r','\"':'\\\\\"','\\\\\': '\\\\\\\\\'},q=/[\\\\\\\"\\x00-\\x1f\\x7f-\\x9f\\43\\49-\\45\\46\\50\\48\\37-\\47\\44-\\42\\40-\\38\\34\\36-\\39]/g;11 e(s){3 s.14(q,11(c){3 f[c]||'\\\\u'+('52'+c.22(0).29(16)).41(-4)})};15 z=11(n){3(n<10?'0':'')+n};15 g=d?d.13:11(v){if(v===27)3 '27';18 if(v.to12)3 v.to12();18 switch(typeof(v)){24 'boolean':3 30(v);24 'number':3 30(v+0);24 'string':3 '\"'+e(v)+'\"';24 'object':if(v 21 Array)3 '['+v.map(12.13).53(',')+']';18 if(v 21 56)3 v.55UTCFullYear()+'-'+z(v.55UTCMonth()+1)+'-'+z(v.55UTC56())+'T'+z(v.55UTCHours())+':'+z(v.55UTCMinutes())+':'+z(v.55UTCSeconds())+'.'+z(v.55Milliseconds())+'Z';18{15 r=[];for(15 k in v)r.push(12.23(k)+\":\"+12.23(v[k]));3 '{'+r.53(',')+'}'}}};15 p=d?d.19:11(s){if(is30(s)&&s){s=s.14(a,11(b){3 '\\\\u'+('52'+b.22(0).29(16)).41(-4)});if(/^[\\],:{}\\s]*$/.test(s.14(/\\\\(?:[\"\\\\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').14(/\"[^\"\\\\\\n\\r]*\"|true|false|27|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?/g,']').14(/(?:^|:|,)(?:\\s*\\[)+/g,'')))3 eval('('+s+')')}35 \"12 19 error: \"+s};3{13:g,19:p,23:g,32:p}})(self.12);if(window['31'])(11(C){15 a=C.54,o=C.55;$ext(C,{54:11(v){3 a.51(26,12.13(v))},55:11(){3 12.19(o.51(26))}})})(31.25);Xhr.25.sanitized12=11(){try{3 12.32(26.text)}catch(e){if(26.secure12)35 e;18 3 27}};",",,,return,,,,,,,,function,JSON,stringify,replace,var,,,else,parse,,instanceof,charCodeAt,encode,case,prototype,this,null,,toString,String,Cookie,decode,toJSON,ufeff,throw,ufff0,u200c,u206f,uffff,u2060,slice,u202f,u00ad,u2028,u0604,u070f,u200f,u17b5,u0600,u17b4,call,0000,join,set,get,Date".split(",")));
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Home page: http://rightjs.org/ui/lightbox
5
5
  *
6
- * @copyright (C) 2009 Nikolay V. Nemshilov aka St.
6
+ * Copyright (C) 2009-2010 Nikolay V. Nemshilov
7
7
  */
8
- if (!RightJS || !Fx) { throw "Gimme RightJS with Fx. Please." };
8
+ if (!RightJS) { throw "Gimme RightJS please." };
9
9
 
10
10
  /**
11
11
  * The lightbox widget
@@ -15,7 +15,7 @@ if (!RightJS || !Fx) { throw "Gimme RightJS with Fx. Please." };
15
15
  * -- http://www.huddletogether.com/projects/lightbox2/
16
16
  * Copyright (C) Lokesh Dhakar
17
17
  *
18
- * @copyright (C) 2009 Nikolay V. Nemshilov aka St.
18
+ * Copyright (C) 2009-2010 Nikolay V. Nemshilov
19
19
  */
20
20
  Browser.IE6 = navigator.userAgent.indexOf("MSIE 6") != -1;
21
21
  var Lightbox = new Class({
@@ -26,12 +26,17 @@ var Lightbox = new Class({
26
26
 
27
27
  Options: {
28
28
  endOpacity: 0.8,
29
- fxDuration: 300,
29
+ fxDuration: 200,
30
+
30
31
  hideOnEsc: true,
31
32
  hideOnOutClick: true,
32
33
  showCloseButton: true,
33
34
  blockContent: false,
34
- relName: 'lightbox'
35
+
36
+ cssRule: "a[rel^=lightbox]", // all lightbox links css-rule
37
+
38
+ mediaWidth: 425, // video links default size
39
+ mediaHeight: 350
35
40
  },
36
41
 
37
42
  i18n: {
@@ -43,46 +48,17 @@ var Lightbox = new Class({
43
48
  NextTitle: 'Next Image'
44
49
  },
45
50
 
51
+ // media content sources
52
+ Medias: [
53
+ [/(http:\/\/.*?youtube\.[a-z]+)\/watch\?v=([^&]+)/, '$1/v/$2', 'swf'],
54
+ [/(http:\/\/video.google.com)\/videoplay\?docid=([^&]+)/, '$1/googleplayer.swf?docId=$2', 'swf'],
55
+ [/(http:\/\/vimeo\.[a-z]+)\/([0-9]+).*?/, '$1/moogaloop.swf?clip_id=$2', 'swf']
56
+ ],
57
+
46
58
  boxes: [],
47
59
 
48
- // scans the page for auto-discoverable lighbox links
49
- rescan: function(scope) {
50
- var key = Lightbox.Options.relName;
51
- var get_options = function(element) {
52
- var data = element.get('data-'+key+'-options');
53
- return eval('('+data+')') || {};
54
- };
55
-
56
- // grabbing the singles
57
- ($(scope)||document).select('a[rel='+key+']').each(function(a) {
58
- if (!a.showLightbox) {
59
- var options = get_options(a);
60
- a.showLightbox = function(event) {
61
- event.stop();
62
- new Lightbox(options).show(this);
63
- };
64
- a.onClick(a.showLightbox);
65
- }
66
- });
67
-
68
- // grabbing the roadtrip
69
- var roadtrip = $$('a[rel="'+key+'[roadtrip]"]');
70
- roadtrip.each(function(a) {
71
- // removing the listener case the roadmap might get changed
72
- if (a.showLightbox) {
73
- a.stopObserving(a.showLightbox);
74
- }
75
-
76
- var options = get_options(a);
77
-
78
- a.roadtrip = roadtrip;
79
- a.showLightbox = function(event) {
80
- event.stop();
81
- new Lightbox(options).show(this);
82
- };
83
- a.onClick(a.showLightbox);
84
- });
85
- }
60
+ // DEPRECATED: we use events delegation now, there's no need to call this function any more
61
+ rescan: function() {}
86
62
  },
87
63
 
88
64
  /**
@@ -102,13 +78,10 @@ var Lightbox = new Class({
102
78
  * @param mixed string or element or somethin'
103
79
  * @return Lighbox self
104
80
  */
105
- setTitle: function(txt) {
106
- this.caption.fade('out', {
107
- duration: this.options.fxDuration/2,
108
- onFinish: function() {
109
- this.caption.update(txt).fade('in', {duration: this.options.fxDuration/2});
110
- }.bind(this)
111
- });
81
+ setTitle: function(text) {
82
+ (function() {
83
+ this.caption.update(text)
84
+ }).bind(this).delay(this.options.fxDuration);
112
85
 
113
86
  return this;
114
87
  },
@@ -243,22 +216,13 @@ var Lightbox = new Class({
243
216
  Lightbox.boxes.without(this).each('hide');
244
217
 
245
218
  if (this.element.hidden()) {
246
- this.locker.setStyle('opacity:0');
247
- this.dialog.setStyle('opacity:0');
248
-
249
219
  this.element.insertTo(document.body).show();
250
220
 
251
221
  this.boxResize();
252
-
253
- var options = {duration: this.options.fxDuration};
254
-
255
- this.locker.morph({opacity: this.options.endOpacity}, options);
256
- this.dialog.morph({opacity: 1}, options);
257
-
258
- callback.delay(this.options.fxDuration);
259
- } else {
260
- callback();
261
222
  }
223
+
224
+ callback();
225
+
262
226
  return this;
263
227
  },
264
228
 
@@ -330,17 +294,17 @@ var Lightbox = new Class({
330
294
  var dialog_end_top = dialog_style.top.toInt();
331
295
  var dialog_start_width = this.dialog.sizes().x;
332
296
  var dialog_end_width = (dialog_style.width || '0').toInt();
333
- var body = this.body;
334
- var dialog = this.dialog;
297
+ var body_style = this.body.style;
298
+ var dialog_style = this.dialog.style;
335
299
 
336
300
  $ext(new Fx(this.dialog, {duration: this.options.fxDuration}), {
337
301
  render: function(delta) {
338
- body.style.width = (body_start_width + (body_end_width - body_start_width) * delta) + 'px';
339
- body.style.height = (body_start_height + (body_end_height - body_start_height) * delta) + 'px';
340
- dialog.style.top = (dialog_start_top + (dialog_end_top - dialog_start_top) * delta) + 'px';
302
+ body_style.width = (body_start_width + (body_end_width - body_start_width) * delta) + 'px';
303
+ body_style.height = (body_start_height + (body_end_height - body_start_height) * delta) + 'px';
304
+ dialog_style.top = (dialog_start_top + (dialog_end_top - dialog_start_top) * delta) + 'px';
341
305
 
342
306
  if (Browser.IE6) {
343
- dialog.style.width = (dialog_start_width + (dialog_end_width - dialog_start_width) * delta) + 'px';
307
+ dialog_style.width = (dialog_start_width + (dialog_end_width - dialog_start_width) * delta) + 'px';
344
308
  }
345
309
  }
346
310
  }).onFinish(this.resizeUnlock.bind(this)).start();
@@ -359,11 +323,11 @@ var Lightbox = new Class({
359
323
  /**
360
324
  * Ajax loading support module
361
325
  *
362
- * @copyright (C) 2009 Nikolay V. Nemshilov aka St.
326
+ * Copyright (C) 2009-2010 Nikolay V. Nemshilov
363
327
  */
364
- Lightbox.include((function() {
365
- var old_show = Lightbox.prototype.show;
366
- var old_build = Lightbox.prototype.build;
328
+ Lightbox.include((function(proto) {
329
+ var old_show = proto.show;
330
+ var old_build = proto.build;
367
331
 
368
332
  return {
369
333
  // hightjacking the links
@@ -371,7 +335,9 @@ Lightbox.include((function() {
371
335
  if (content && content.href) {
372
336
  return this.load(content.href, {
373
337
  onComplete: function(request) {
374
- this.setTitle(content.title).content.update(request.responseText);
338
+ this.checkTheRoad(content)
339
+ .setTitle(content.title)
340
+ .content.update(request.responseText);
375
341
  }.bind(this)
376
342
  });
377
343
  } else {
@@ -438,17 +404,17 @@ Lightbox.include((function() {
438
404
  return res;
439
405
  }
440
406
  };
441
- })());
407
+ })(Lightbox.prototype));
442
408
 
443
409
  /**
444
410
  * Roadtrips support module for the lightbox
445
411
  *
446
- * @copyright (C) 2009 Nikolay V. Nemshilov aka St.
412
+ * Copyright (C) 2009-2010 Nikolay V. Nemshilov
447
413
  */
448
- Lightbox.include((function() {
449
- var old_show = Lightbox.prototype.show;
450
- var old_build = Lightbox.prototype.build;
451
- var old_event = Lightbox.prototype.connectEvents;
414
+ Lightbox.include((function(proto) {
415
+ var old_show = proto.show;
416
+ var old_build = proto.build;
417
+ var old_event = proto.connectEvents;
452
418
 
453
419
  return {
454
420
  // highjacking a roadtrip content
@@ -512,14 +478,31 @@ Lightbox.include((function() {
512
478
  // checks if there is a next image link
513
479
  hasNext: function() {
514
480
  return this.roadLink && this.roadLink.roadtrip && this.roadLink.roadtrip.last() != this.roadLink;
481
+ },
482
+
483
+ // updates the roadtrip links list
484
+ checkTheRoad: function(link) {
485
+ if (isElement(link)) {
486
+ var rule = this.options.cssRule.split('[').last(),
487
+ value = link.get(rule.split('^=').first()) || '',
488
+ match = value.match(/\[(.+?)\]/);
489
+
490
+ if (match) {
491
+ var marker = rule.split('^=').last().split(']').first();
492
+ link.roadtrip = $$(this.options.cssRule.replace(marker, "'"+marker+"["+match[1]+"]'"));
493
+ }
494
+ }
495
+ this.roadLink = link;
496
+
497
+ return this;
515
498
  }
516
499
  };
517
- })());
500
+ })(Lightbox.prototype));
518
501
 
519
502
  /**
520
503
  * The images displaying functionality module
521
504
  *
522
- * @copyright (C) 2009 Nikolay V. Nemshilov aka St.
505
+ * Copyright (C) 2009-2010 Nikolay V. Nemshilov
523
506
  */
524
507
  Lightbox.include((function() {
525
508
  var old_show = Lightbox.prototype.show;
@@ -535,7 +518,7 @@ Lightbox.include((function() {
535
518
 
536
519
  if (content && content.href && this.isImageUrl(content.href)) {
537
520
  return this.showingSelf(function() {
538
- this.loadLock().roadLink = content;
521
+ this.checkTheRoad(content).loadLock();
539
522
 
540
523
  // using the iframed request to make the browser cache work
541
524
  var image = new Image();
@@ -563,10 +546,71 @@ Lightbox.include((function() {
563
546
  };
564
547
  })());
565
548
 
549
+ /**
550
+ * This module handles media-links, like youtube, vimeo etc.
551
+ *
552
+ * Copyright (C) 2010 Nikolay V. Nemshilov
553
+ */
554
+ Lightbox.include((function(proto) {
555
+ var old_show = proto.show;
556
+
557
+ var media_types = {
558
+ swf: [
559
+ 'D27CDB6E-AE6D-11cf-96B8-444553540000',
560
+ 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0',
561
+ 'application/x-shockwave-flash'
562
+ ]
563
+ };
564
+
565
+ // builds the actual embedded tag
566
+ function build_embedded(addr, type) {
567
+ var sizes = ' width="'+ this.options.mediaWidth + '" height="'+ this.options.mediaHeight + '"';
568
+
569
+ return '<object classid="clsid:' + media_types[type][0] +
570
+ '" codebase="' + media_types[type][1] + '"'+ sizes + '>' +
571
+ '<param name="src" value="'+addr+'" />'+
572
+ '<embed src="'+ addr +'" type="'+ media_types[type][2]+'"'+ sizes + ' />' +
573
+ '</object>';
574
+ };
575
+
576
+ // checks and builds an embedded object content if necessary
577
+ function build_media_content(link) {
578
+ if (isElement(link) && link.href) {
579
+ var addr = link.href;
580
+
581
+ return Lightbox.Medias.map(function(desc) {
582
+ return addr.match(desc[0]) ? build_embedded.call(this, addr.replace(desc[0], desc[1]), desc[2]) : null;
583
+ }, this).compact()[0];
584
+ }
585
+ }
586
+
587
+ return {
588
+
589
+ // stubbs the show method to hijack the media links
590
+ show: function(link) {
591
+ var media_content = build_media_content.call(this, link);
592
+
593
+ this.element[media_content ? 'addClass' : 'removeClass']('lightbox-media');
594
+
595
+ if (media_content) {
596
+ this.content.update(media_content);
597
+ return this.showingSelf(function() {
598
+ this
599
+ .checkTheRoad(link)
600
+ .setTitle(link.title);
601
+
602
+ }.bind(this));
603
+ }
604
+
605
+ return old_show.apply(this, arguments);
606
+ }
607
+
608
+ }})(Lightbox.prototype));
609
+
566
610
  /**
567
611
  * The class level interface
568
612
  *
569
- * @copyright (C) 2009 Nikolay V. Nemshilov aka St.
613
+ * @copyright (C) 2009 Nikolay V. Nemshilov
570
614
  */
571
615
  Lightbox.extend({
572
616
  hide: function() {
@@ -592,8 +636,19 @@ Lightbox.extend({
592
636
  /**
593
637
  * document on-load rescan
594
638
  *
595
- * @copyright (C) 2009 Nikolay V. Nemshilov aka St.
639
+ * Copyright (C) 2009-2010 Nikolay V. Nemshilov
596
640
  */
597
- document.onReady(function() { Lightbox.rescan(); });
641
+ $(document.documentElement).onClick(function(event) {
642
+ var target = $(event.target);
643
+ var suspects = [target].concat(target.parents());
644
+
645
+ // we chop off the HTML and BODY element from the end of the list
646
+ var link = suspects.slice(0, suspects.length-2).first('match', Lightbox.Options.cssRule);
647
+
648
+ if (link) {
649
+ event.stop();
650
+ new Lightbox(eval('('+link.get('data-lightbox-options')+')')).show(link);
651
+ }
652
+ });
598
653
 
599
- document.write("<style type=\"text/css\">div.lightbox{position:fixed;top:0px;left:0px;width:100%;text-align:center;z-index:9999}div.lightbox div{line-height:normal}div.lightbox-locker{position:absolute;top:0px;left:0px;width:100%;height:100%;background-color:black}div.lightbox-dialog{display:inline-block;*display:inline;*zoom:1;position:relative;text-align:left;padding-bottom:1.6em}div.lightbox-body-wrap{background-color:white;padding:1em;border-radius:.6em;-moz-border-radius:.6em;-webkit-border-radius:.6em;-moz-box-shadow:#111 .1em .1em .4em;-webkit-box-shadow:#111 .1em .1em .4em}div.lightbox-body{position:relative;height:10em;width:10em;min-height:10em;min-width:10em;overflow:hidden;*background-color:white}div.lightbox-content{position:absolute;*background-color:white}div.lightbox-body-lock{background-color:white;position:absolute;left:0px;top:0px;width:100%;height:100%;text-align:center}div.lightbox-body-lock-spinner{display:none;position:absolute;bottom:0;right:0}div.lightbox-body-lock-spinner div{float:left;width:.5em;height:.9em;background:#AAA;margin-left:.1em;-moz-border-radius:.15em;-webkit-border-radius:.15em}div.lightbox-body-lock-spinner div.glow{background:#666;height:1em;margin-top:-0.05em}div.lightbox-body-lock-loading div.lightbox-body-lock-spinner{display:inline-block;*display:inline;*zoom:1}div.lightbox-body-lock-transparent{background:none}div.lightbox-caption{height:1.2em;margin:0 .7em;margin-bottom:.1em;white-space:nowrap;color:#DDD;font-weight:bold;font-size:1.6em;font-family:Helvetica;text-shadow:black 2px 2px 2px}div.lightbox-close-button,div.lightbox-prev-link,div.lightbox-next-link{position:absolute;bottom:0;color:#888;cursor:pointer;font-size:150%;font-weight:bold;font-family:Arial}div.lightbox-close-button:hover,div.lightbox-prev-link:hover,div.lightbox-next-link:hover{color:white}div.lightbox-close-button{right:.5em}div.lightbox-prev-link,div.lightbox-next-link{padding:0 .2em;bottom:2px}div.lightbox-prev-link{left:.2em}div.lightbox-next-link{left:2em}div.lightbox-image div.lightbox-body-wrap{padding:0;border:1px solid #777;border-radius:0px;-moz-border-radius:0px;-webkit-border-radius:0px}div.lightbox-image div.lightbox-content img{vertical-align:middle}div.lightbox-image div.lightbox-caption{margin-left:.2em}div.lightbox-image div.lightbox-body-wrap,div.lightbox-image div.lightbox-body-lock{background-color:#DDD}div.lightbox-image div.lightbox-body-lock-spinner{bottom:1em;right:1em}div.lightbox-image div.lightbox-close-button{right:.2em}div.lightbox-image div.lightbox-prev-link{left:0}</style>");
654
+ document.write("<style type=\"text/css\">div.lightbox{position:fixed;top:0px;left:0px;width:100%;text-align:center;z-index:9999}div.lightbox div{line-height:normal}div.lightbox-locker{position:absolute;top:0px;left:0px;width:100%;height:100%;background-color:#000;opacity:0.84;filter:alpha(opacity=84)}div.lightbox-dialog{display:inline-block;*display:inline;*zoom:1;position:relative;text-align:left;padding-bottom:1.6em}div.lightbox-body-wrap{background-color:white;padding:1em;border-radius:.6em;-moz-border-radius:.6em;-webkit-border-radius:.6em}div.lightbox-body{position:relative;height:10em;width:10em;min-height:10em;min-width:10em;overflow:hidden;*background-color:white}div.lightbox-content{position:absolute;*background-color:white}div.lightbox-body-lock{background-color:white;position:absolute;left:0px;top:0px;width:100%;height:100%;text-align:center}div.lightbox-body-lock-spinner{display:none;position:absolute;bottom:0;right:0}div.lightbox-body-lock-spinner div{float:left;width:.5em;height:.9em;background:#AAA;margin-left:.1em;-moz-border-radius:.15em;-webkit-border-radius:.15em}div.lightbox-body-lock-spinner div.glow{background:#666;height:1em;margin-top:-0.05em}div.lightbox-body-lock-loading div.lightbox-body-lock-spinner{display:inline-block;*display:inline;*zoom:1}div.lightbox-body-lock-transparent{background:none}div.lightbox-caption{height:1.2em;margin:0 .7em;margin-bottom:.1em;white-space:nowrap;color:#DDD;font-weight:bold;font-size:1.6em;font-family:Helvetica}div.lightbox-close-button,div.lightbox-prev-link,div.lightbox-next-link{position:absolute;bottom:0;color:#888;cursor:pointer;font-size:150%;font-weight:bold;font-family:Arial}div.lightbox-close-button:hover,div.lightbox-prev-link:hover,div.lightbox-next-link:hover{color:white}div.lightbox-close-button{right:.5em}div.lightbox-prev-link,div.lightbox-next-link{padding:0 .2em;bottom:2px}div.lightbox-prev-link{left:.2em}div.lightbox-next-link{left:2em}div.lightbox-image div.lightbox-body-wrap,div.lightbox-media div.lightbox-body-wrap{padding:0;border:1px solid #777;border-radius:0px;-moz-border-radius:0px;-webkit-border-radius:0px}div.lightbox-image div.lightbox-content img{vertical-align:middle}div.lightbox-image div.lightbox-caption,div.lightbox-media div.lightbox-caption{margin-left:.2em}div.lightbox-image div.lightbox-body-wrap,div.lightbox-image div.lightbox-body-lock,div.lightbox-media div.lightbox-body-wrap,div.lightbox-media div.lightbox-body-lock{background-color:#DDD}div.lightbox-image div.lightbox-body-lock-spinner{bottom:1em;right:1em}div.lightbox-image div.lightbox-close-button{right:.2em}div.lightbox-image div.lightbox-prev-link{left:0}</style>");