//MooTools, My Object Oriented Javascript Tools. Copyright (c) 2006 Valerio Proietti, <http://mad4milk.net>, MIT Style License.

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('u bt={bs:\'1.bC\'};u 14=m(1F){u 6Z=m(){B(1b[0]!==1V&&k.1k&&$F(k.1k)==\'m\')o k.1k.4o(k,1b);R o k};$T(6Z,k);6Z.1I=1F;o 6Z};14.1o=m(){};14.1I={T:m(1F){u 77=K k(1V);N(u M 18 1F){u 9H=77[M];77[M]=$9o(9H,1F[M])}o K 14(77)},2a:m(1F){$T(k.1I,1F)}};m $F(O){B(O==74)o L;u F=8p O;B(F==\'1z\'){B(O.4V)o\'G\';B(O.1d)o\'1B\';B(O.c2){2e(O.7s){12 1:o\'G\';12 3:o O.c4.2g(/\\S/)?\'bU\':\'bX\'}}}B((F==\'1z\'||F==\'m\')&&O.aG)o\'5t\';o F};m $29(){u 4y={};N(u i=0;i<1b.U;i++){N(u M 18 1b[i]){u ap=1b[i][M];u 6H=4y[M];B(6H&&$F(ap)==\'1z\'&&$F(6H)==\'1z\')4y[M]=$29(6H,ap);R 4y[M]=ap}}o 4y};m $9o(2d,2l){B(2d&&2d!=2l){u 8h=$F(2d);u 7l=$F(2l);B(8h==\'m\'&&7l==\'m\'){u 7O=m(){k.1r=1b.97.1r;o 2l.4o(k,1b)};7O.1r=2d;o 7O}R B(8h==\'1z\'&&7l==\'1z\'){o $29(2d,2l)}}o 2l};u $T=6i.T=m(){u 1l=1b;B(!1l[1])1l=[k,1l[0]];N(u M 18 1l[1])1l[0][M]=1l[1][M];o 1l[0]};u $6j=6i.co=m(){N(u i=0;i<1b.U;i++)1b[i].T=$6j.T};$6j.T=m(2j){N(u 2Z 18 2j){B(!k.1I[2Z])k.1I[2Z]=2j[2Z]}};$6j(7A,2H,69,9m,14);u 3y=m(O){O=O||{};O.T=$T;o O};u bw=K 3y(W);u cJ=K 3y(Q);Q.64=Q.33(\'64\')[0];m $2q(O){o!!(O||O===0)};m $5K(O,ad){o(O!=74)?O:ad};m $8t(3O,1D){o 1e.9f(1e.8t()*(1D-3O+1)+3O)};m $3z(){o K ak().aD()};m $4Q(1L){bY(1L);cc(1L);o 1V};B(W.aT)W.3g=W[W.6o?\'cr\':\'9Q\']=1m;R B(Q.a9&&!Q.bS&&!cz.bl)W.3t=1m;R B(Q.bR!=1V)W.9X=1m;W.3U=!!(Q.5f);B(8p 5g==\'74\'){u 5g=14.1o;B(W.3t)Q.af("bI");5g.1I=(W.3t)?W["[[bm.1I]]"]:{}}5g.1I.4V=1m;B(W.9Q)5x{Q.bD("bz",L,1m)}5s(e){};u 7r=K 14({aM:m(Y){k.4c=k.4c||[];k.4c.1d(Y);o k},7B:m(){B(k.4c&&k.4c.U)k.4c.9x().2r(10,k)},8C:m(){k.4c=[]}});u 1Q=K 14({1J:m(F,Y){B(Y!=14.1o){k.$1h=k.$1h||{};k.$1h[F]=k.$1h[F]||[];k.$1h[F].5L(Y)}o k},1g:m(F,1l,2r){B(k.$1h&&k.$1h[F]){k.$1h[F].1q(m(Y){Y.3u({\'V\':k,\'2r\':2r,\'1b\':1l})()},k)}o k},3Y:m(F,Y){B(k.$1h&&k.$1h[F])k.$1h[F].2T(Y);o k}});u 48=K 14({2J:m(){u 1l=(1b.U==1)?[k.C,1b[0]]:1b;k.C=$29.4o(k,1l);B(k.1J){N(u 5k 18 k.C){B(($F(k.C[5k])==\'m\')&&5k.2g(/^5H[A-Z]/))k.1J(5k,k.C[5k])}}o k}});2H.T({8u:m(Y,V){N(u i=0,j=k.U;i<j;i++)Y.1N(V,k[i],i,k)},3s:m(Y,V){u 4D=[];N(u i=0,j=k.U;i<j;i++){B(Y.1N(V,k[i],i,k))4D.1d(k[i])}o 4D},3H:m(Y,V){u 4D=[];N(u i=0,j=k.U;i<j;i++)4D[i]=Y.1N(V,k[i],i,k);o 4D},4d:m(Y,V){N(u i=0,j=k.U;i<j;i++){B(!Y.1N(V,k[i],i,k))o L}o 1m},be:m(Y,V){N(u i=0,j=k.U;i<j;i++){B(Y.1N(V,k[i],i,k))o 1m}o L},3A:m(3m,19){u 3q=k.U;N(u i=(19<0)?1e.1D(0,3q+19):19||0;i<3q;i++){B(k[i]===3m)o i}o-1},8o:m(1c,U){1c=1c||0;B(1c<0)1c=k.U+1c;U=U||(k.U-1c);u 8r=[];N(u i=0;i<U;i++)8r[i]=k[1c++];o 8r},2T:m(3m){u i=0;u 3q=k.U;6r(i<3q){B(k[i]===3m){k.8e(i,1);3q--}R{i++}}o k},1s:m(3m,19){o k.3A(3m,19)!=-1},bf:m(23){u O={},U=1e.3O(k.U,23.U);N(u i=0;i<U;i++)O[23[i]]=k[i];o O},T:m(1B){N(u i=0,j=1B.U;i<j;i++)k.1d(1B[i]);o k},29:m(1B){N(u i=0,l=1B.U;i<l;i++)k.5L(1B[i]);o k},5L:m(3m){B(!k.U||!k.1s(3m))k.1d(3m);o k},cw:m(){o k[$8t(0,k.U-1)]},ac:m(){o k[k.U-1]}});2H.1I.1q=2H.1I.8u;2H.1I.2g=2H.1I.1s;2H.1I.cv=2H.1I.2T;m $A(1B,1c,U){o 2H.1I.8o.1N(1B,1c,U)};m $1q(4A,Y,V){B(4A.U!=74)2H.1I.8u.1N(4A,Y,V);R N(u 1y 18 4A)Y.1N(V||4A,4A[1y],1y)};69.T({2g:m(7b,9z){o((8p 7b==\'2D\')?K ae(7b,9z):7b).2g(k)},2C:m(){o 6z(k,10)},a6:m(){o 5o(k)},7m:m(){o k.3I(/-\\D/g,m(2Q){o 2Q.8m(1).98()})},b7:m(){o k.3I(/\\w[A-Z]/g,m(2Q){o(2Q.8m(0)+\'-\'+2Q.8m(1).4I())})},8K:m(){o k.3I(/\\b[a-z]/g,m(2Q){o 2Q.98()})},5R:m(){o k.3I(/^\\s+|\\s+$/g,\'\')},7E:m(){o k.3I(/\\s{2,}/g,\' \').5R()},5y:m(1B){u 1v=k.2Q(/\\d{1,3}/g);o(1v)?1v.5y(1B):L},5u:m(1B){u 3E=k.2Q(/^#?(\\w{1,2})(\\w{1,2})(\\w{1,2})$/);o(3E)?3E.bZ(1).5u(1B):L},1s:m(2D,s){o(s)?(s+k+s).3A(s+2D+s)>-1:k.3A(2D)>-1},as:m(){o k.3I(/([.*+?^${}()|[\\]\\/\\\\])/g,\'\\\\$1\')}});2H.T({5y:m(1B){B(k.U<3)o L;B(k[3]&&(k[3]==0)&&!1B)o\'bT\';u 3E=[];N(u i=0;i<3;i++){u 4M=(k[i]-0).4f(16);3E.1d((4M.U==1)?\'0\'+4M:4M)}o 1B?3E:\'#\'+3E.2i(\'\')},5u:m(1B){B(k.U!=3)o L;u 1v=[];N(u i=0;i<3;i++){1v.1d(6z((k[i].U==1)?k[i]+k[i]:k[i],16))}o 1B?1v:\'1v(\'+1v.2i(\',\')+\')\'}});9m.T({2C:m(){o 6z(k)},a6:m(){o 5o(k)}});7A.T({3u:m(C){u Y=k;C=$29({\'V\':Y,\'I\':L,\'1b\':1V,\'2r\':L,\'3L\':L,\'6d\':L},C);B($2q(C.1b)&&$F(C.1b)!=\'1B\')C.1b=[C.1b];o m(I){u 1l;B(C.I){I=I||W.I;1l=[(C.I===1m)?I:K C.I(I)];B(C.1b)1l=1l.4H(C.1b)}R 1l=C.1b||1b;u 3w=m(){o Y.4o($5K(C.V,Y),1l)};B(C.2r)o ax(3w,C.2r);B(C.3L)o c6(3w,C.3L);B(C.6d)5x{o 3w()}5s(ch){o L};o 3w()}},cf:m(1l,V){o k.3u({\'1b\':1l,\'V\':V})},6d:m(1l,V){o k.3u({\'1b\':1l,\'V\':V,\'6d\':1m})()},V:m(V,1l){o k.3u({\'V\':V,\'1b\':1l})},7X:m(V,1l){o k.3u({\'V\':V,\'I\':1m,\'1b\':1l})},2r:m(2r,V,1l){o k.3u({\'2r\':2r,\'V\':V,\'1b\':1l})()},3L:m(a1,V,1l){o k.3u({\'3L\':a1,\'V\':V,\'1b\':1l})()}});u P=K 14({1k:m(el,2j){B($F(el)==\'2D\'){B(W.3g&&2j&&(2j.1y||2j.F)){u 1y=(2j.1y)?\' 1y="\'+2j.1y+\'"\':\'\';u F=(2j.F)?\' F="\'+2j.F+\'"\':\'\';4u 2j.1y;4u 2j.F;el=\'<\'+el+1y+F+\'>\'}el=Q.af(el)}el=$(el);B(!2j||!el)o el;N(u 2Z 18 2j){u 4q=2j[2Z];2e(2Z){12\'7o\':el.4p(4q);1O;12\'1h\':B(el.6b)el.6b(4q);1O;12\'1F\':el.65(4q);1O;5W:el.6y(2Z,4q)}}o el}});u 3k=K 14({});3k.T=14.1I.2a;m $(el){B(!el)o L;B(el.4V)o 2K.4U(el);B([W,Q].1s(el))o el;u F=$F(el);B(F==\'2D\'){el=Q.6J(el);F=(el)?\'G\':L}B(F!=\'G\')o L;B(el.4V)o 2K.4U(el);B([\'1z\',\'c8\'].1s(el.5l.4I()))o el;$T(el,P.1I);el.4V=1m;o 2K.4U(el)};Q.6L=Q.33;m $$(){B(!1b)o L;u 15=[];N(u i=0,j=1b.U;i<j;i++){u 1n=1b[i];2e($F(1n)){12\'G\':15.1d(1n);12\'c9\':12 L:1O;12\'2D\':1n=Q.6L(1n,1m);5W:15=15.4H((1n.1d)?1n:$A(1n))}}o $$.4S(15)};$$.4S=m(1B){u 15=[];N(u i=0,l=1B.U;i<l;i++){B(1B[i].$6G)87;u G=$(1B[i]);B(G&&!G.$6G){G.$6G=1m;15.1d(G)}}N(u i=0,l=15.U;i<l;i++)15[i].$6G=1V;o $T(15,K 3k)};3k.67=m(M){o m(){u 1l=1b;u 1u=[];u 15=1m;N(u i=0,j=k.U,3w;i<j;i++){3w=k[i][M].4o(k[i],1l);B($F(3w)!=\'G\')15=L;1u.1d(3w)};o(15)?$$.4S(1u):1u}};P.T=m(1F){N(u M 18 1F){5g.1I[M]=1F[M];P.1I[M]=1F[M];3k.1I[M]=3k.67(M)}};P.T({2b:m(el,ay){el=$(el);2e(ay){12\'ab\':el.3c.8E(k,el);1O;12\'b2\':u 3n=el.8q();B(!3n)el.3c.7u(k);R el.3c.8E(k,3n);1O;12\'1j\':u 8F=el.an;B(8F){el.8E(k,8F);1O}5W:el.7u(k)}o k},7Y:m(el){o k.2b(el,\'ab\')},6O:m(el){o k.2b(el,\'b2\')},ah:m(el){o k.2b(el,\'34\')},cy:m(el){o k.2b(el,\'1j\')},9c:m(){$$.4S(1b).ah(k);o k},2T:m(){o k.3c.bO(k)},ag:m(bb){o $(k.bq(bb!==L))},bp:m(el){el=$(el);k.3c.bo(el,k);o el},bv:m(1Z){B(W.3g){2e(k.6C()){12\'2h\':k.bn.aK=1Z;o k;12\'2P\':o k.6y(\'1Z\',1Z)}}k.7u(Q.bF(1Z));o k},7D:m(1C){o k.1C.1s(1C,\' \')},am:m(1C){B(!k.7D(1C))k.1C=(k.1C+\' \'+1C).7E();o k},a7:m(1C){k.1C=k.1C.3I(K ae(\'(^|\\\\s)\'+1C+\'(?:\\\\s|$)\'),\'$1\').7E();o k},bE:m(1C){o k.7D(1C)?k.a7(1C):k.am(1C)},1P:m(M,J){2e(M){12\'28\':o k.aA(5o(J));12\'bj\':M=(W.3g)?\'bk\':\'bi\'}M=M.7m();2e($F(J)){12\'73\':B(![\'bh\',\'aJ\'].1s(M))J+=\'6B\';1O;12\'1B\':J=\'1v(\'+J.2i(\',\')+\')\'}k.2h[M]=J;o k},4p:m(1Y){2e($F(1Y)){12\'1z\':P.7a(k,\'1P\',1Y);1O;12\'2D\':k.2h.aK=1Y}o k},aA:m(28){B(28==0){B(k.2h.4b!="4v")k.2h.4b="4v"}R{B(k.2h.4b!="7p")k.2h.4b="7p"}B(!k.6A||!k.6A.cP)k.2h.aJ=1;B(W.3g)k.2h.3s=(28==1)?\'\':"6Q(28="+28*2X+")";k.2h.28=k.$.28=28;o k},2c:m(M){M=M.7m();u 1G=k.2h[M];B(!$2q(1G)){B(M==\'28\')o k.$.28;u 1G=[];N(u 2h 18 P.43){B(M==2h){P.43[2h].1q(m(s){1G.1d(k.2c(s))},k);B(M==\'3C\'){u 4d=1G.4d(m(4M){o(4M==1G[0])});o(4d)?1G[0]:L}o 1G.2i(\' \')}}B(P.43.3C.1s(M)){[\'b0\',\'2y\',\'7h\'].1q(m(p){1G.1d(k.2c(M+p))},k);o 1G.2i(\' \')}B(Q.b5)1G=Q.b5.cq(k,1V).cs(M.b7());R B(k.6A)1G=k.6A[M]}B(W.3g)1G=P.aY(M,1G,k);o(1G&&M.2g(/2R/i)&&1G.1s(\'1v\'))?1G.5y():1G},9i:m(){o P.7Q(k,\'2c\',1b)},5G:m(6v,1c){6v+=\'cO\';u el=(1c)?k[1c]:k[6v];6r(el&&$F(el)!=\'G\')el=el[6v];o $(el)},b6:m(){o k.5G(\'2d\')},8q:m(){o k.5G(\'3n\')},cI:m(){o k.5G(\'3n\',\'an\')},ac:m(){o k.5G(\'2d\',\'cC\')},cH:m(){o $(k.3c)},7t:m(){o $$(k.a9)},7z:m(el){o!!$A(k.33(\'*\')).1s(el)},6h:m(M){u 24=P.6c[M];o(24)?k[24]:k.cG(M)},c1:m(M){u 24=P.6c[M];B(24)k[24]=\'\';R k.ba(M);o k},c3:m(){o P.7Q(k,\'6h\',1b)},6y:m(M,J){u 24=P.6c[M];B(24)k[24]=J;R k.bV(M,J);o k},65:m(1Y){o P.7a(k,\'6y\',1Y)},5M:m(){k.bW=$A(1b).2i(\'\');o k},6C:m(){o k.5l.4I()},1o:m(){2K.54(k.33(\'*\'));o k.5M(\'\')}});P.aY=m(M,1G,G){B($2q(6z(1G)))o 1G;B([\'2M\',\'2s\'].1s(M)){u 1T=(M==\'2s\')?[\'1p\',\'3Z\']:[\'1j\',\'34\'];u 36=0;1T.1q(m(J){36+=G.2c(\'3C-\'+J+\'-2s\').2C()+G.2c(\'4R-\'+J).2C()});o G[\'1E\'+M.8K()]-36+\'6B\'}R B(M.2g(/3C(.+)b0/)){o\'c7\'}o 1G};P.43={\'3C\':[],\'4R\':[],\'3l\':[]};[\'ce\',\'ca\',\'cb\',\'cd\'].1q(m(5X){N(u 2h 18 P.43)P.43[2h].1d(2h+5X)});P.7Q=m(el,2z,23){u 1G={};$1q(23,m(1i){1G[1i]=el[2z](1i)});o 1G};P.7a=m(el,2z,7V){N(u 1i 18 7V)el[2z](1i,7V[1i]);o el};P.6c=K 3y({\'5N\':\'1C\',\'N\':\'ck\',\'cj\':\'ci\',\'cg\':\'c0\',\'c5\':\'cl\',\'cm\':\'cF\',\'cE\':\'cN\',\'cM\':\'cK\',\'J\':\'J\',\'7R\':\'7R\',\'7Z\':\'7Z\',\'8c\':\'8c\'});P.79={2N:m(F,Y){B(k.7U)k.7U(F,Y,L);R k.cL(\'5H\'+F,Y);o k},35:m(F,Y){B(k.9S)k.9S(F,Y,L);R k.cB(\'5H\'+F,Y);o k}};W.T(P.79);Q.T(P.79);P.T(P.79);P.1Q=K 3y({});u 2K={15:[],4U:m(el){B(!el.$){2K.15.1d(el);el.$={\'28\':1}}o el},54:m(15){N(u i=0,j=15.U,el;i<j;i++){B(!(el=15[i])||!el.$)o;B(el.$1h){el.1g(\'cA\');el.84()}N(u p 18 el.$)el.$[p]=1V;N(u p 18 P.1I)el[p]=1V;el.4V=el.$=1V;2K.15.2T(el)}},1o:m(){2K.4U(W);2K.4U(Q);2K.54(2K.15)}};W.2N(\'cp\',2K.1o);u 4g=K 14({1k:m(I){I=I||W.I;k.I=I;k.F=I.F;k.3R=I.3R||I.cn;B(k.3R.7s==3)k.3R=k.3R.3c;k.9x=I.ct;k.cu=I.cx;k.bg=I.bJ;k.bH=I.bG;B([\'9W\',\'4E\'].1s(k.F)){k.5Q=I.9Z?(I.9Z/(W.7v?-a4:a4)):-(I.bK||0)/3}R B(k.F.1s(\'1i\')){k.6U=I.9j||I.bL;N(u 1y 18 4g.23){B(4g.23[1y]==k.6U){k.1i=1y;1O}}B(k.F==\'bQ\'){u 6Y=k.6U-bP;B(6Y>0&&6Y<13)k.1i=\'f\'+6Y}k.1i=k.1i||69.bM(k.6U).4I()}R B(k.F.2g(/(88|2B|bN)/)){k.1H={\'x\':I.7q||I.96+Q.2O.5e,\'y\':I.7y||I.9p+Q.2O.5i};k.9J={\'x\':I.7q?I.7q-W.95:I.96,\'y\':I.7y?I.7y-W.90:I.9p};k.bu=(I.9j==3)||(I.bA==2);2e(k.F){12\'8U\':k.2F=I.2F||I.bB;1O;12\'9T\':k.2F=I.2F||I.8I}B(k.2F&&k.2F.7s==3)k.2F=k.2F.3c}},1S:m(){o k.6W().6X()},6W:m(){B(k.I.6W)k.I.6W();R k.I.by=1m;o k},6X:m(){B(k.I.6X)k.I.6X();R k.I.bx=L;o k}});4g.23=K 3y({\'cD\':13,\'8J\':38,\'8R\':40,\'1p\':37,\'3Z\':39,\'eo\':27,\'ep\':32,\'en\':8,\'em\':9,\'4u\':46});P.1Q.T({\'7P\':{F:\'8U\',3H:m(I){I=K 4g(I);B(I.2F==k||k.7z(I.2F))o;k.1g(\'7P\',I)}},\'7L\':{F:\'9T\',3H:m(I){I=K 4g(I);B(I.2F==k||k.7z(I.2F))o;k.1g(\'7L\',I)}}});7A.T({2w:m(V,1l){o k.3u({\'V\':V,\'1b\':1l,\'I\':4g})}});m $E(1n,3s){o($(3s)||Q).9E(1n)};m $ei(1n,3s){o($(3s)||Q).6L(1n)};$$.1W={4s:{},5t:/^(\\w*|\\*)(?:#([\\w-]+)|\\.([\\w-]+))?(?:\\[(\\w+)(?:([!*^$]?=)["\']?([^"\'\\]]*)["\']?)?])?$/,9w:m(1n,1u,31,1a,i){3d.1n=1a;B(i==0){B(1a[2]){u el=31.6J(1a[2]);B(!el||((1a[1]!=\'*\')&&(el.5l.4I()!=1a[1])))o L;1u=[el]}R{1u=$A(31.33(1a[1]))}}R{1u=$$.1W.33(1u,1a[1]);B(1a[2])1u=1u.3s(3d.4a)}B(1a[3])1u=1u.3s(3d.1C);B(1a[4])1u=1u.3s(3d.9D);o 1u},9u:m(1n,1u,31,1a,i){B($$.1W.4s[1n].3U){1u.1d($$.1W.4s[1n].3U);o 1u}u 1X=31.ej?[\'7i:\']:[];1X.1d(1a[1]);B(1a[2])1X.1d(\'[@4a="\',1a[2],\'"]\');B(1a[3])1X.1d(\'[1s(4H(" ", @5N, " "), " \',1a[3],\' ")]\');B(1a[4]){B(1a[5]&&1a[6]){2e(1a[5]){12\'*=\':1X.1d(\'[1s(@\',1a[4],\', "\',1a[6],\'")]\');1O;12\'^=\':1X.1d(\'[ek-eq(@\',1a[4],\', "\',1a[6],\'")]\');1O;12\'$=\':1X.1d(\'[er(@\',1a[4],\', 2D-U(@\',1a[4],\') - \',1a[6].U,\' + 1) = "\',1a[6],\'"]\');1O;12\'=\':1X.1d(\'[@\',1a[4],\'="\',1a[6],\'"]\');1O;12\'!=\':1X.1d(\'[@\',1a[4],\'!="\',1a[6],\'"]\')}}R{1X.1d(\'[@\',1a[4],\']\')}}1X=1X.2i(\'\');$$.1W.4s[1n].3U=1X;1u.1d(1X);o 1u},9L:m(1u,31,3P){o(3P)?1u:$$.4S(1u)},9v:m(1u,31,3P){u 15=[];u 3U=Q.5f(\'.//\'+1u.2i(\'//\'),31,$$.1W.a0,ew.ex,1V);N(u i=0,j=3U.ev;i<j;i++)15.1d(3U.eu(i));o(3P)?15:$T(15.3H($),K 3k)},a0:m(9N){o(9N==\'7i\')?\'al://aL.ez.et/eh/7i\':L},33:m(31,5l){u 71=[];N(u i=0,j=31.U;i<j;i++)71=71.4H($A(31[i].33(5l)));o 71}};B(W.3U){$$.1W.7g=$$.1W.9u;$$.1W.85=$$.1W.9v}R{$$.1W.7g=$$.1W.9w;$$.1W.85=$$.1W.9L}P.83={6K:m(1n,3P){u 1u=[];1n=1n.5R().6E(\' \');N(u i=0,j=1n.U;i<j;i++){u 4T=1n[i];u 1a;B($$.1W.4s[4T]){1a=$$.1W.4s[4T].1a}R{1a=4T.2Q($$.1W.5t);B(!1a)1O;1a[1]=1a[1]||\'*\';$$.1W.4s[4T]={\'1a\':1a}}u 1X=$$.1W.7g(4T,1u,k,1a,i);B(!1X)1O;1u=1X}o $$.1W.85(1u,k,3P)},9E:m(1n){o $(k.6K(1n,1m)[0]||L)},6L:m(1n,3P){u 15=[];1n=1n.6E(\',\');N(u i=0,j=1n.U;i<j;i++)15=15.4H(k.6K(1n[i],1m));o(3P)?15:$$.4S(15)},eg:m(1C){o k.6K(\'.\'+1C)}};P.T({6J:m(4a){u el=Q.6J(4a);B(!el)o L;N(u 1r=el.3c;1r!=k;1r=1r.3c){B(!1r)o L}o el}});Q.T(P.83);P.T(P.83);u 3d={1n:[],4a:m(el){o(el.4a==3d.1n[2])},1C:m(el){o el.1C.1s(3d.1n[3],\' \')},9D:m(el){u 2l=P.1I.6h.1N(el,3d.1n[4]);B(!2l)o L;u 89=3d.1n[5];B(!89)o 1m;u J=3d.1n[6];2e(89){12\'=\':o(2l==J);12\'*=\':o(2l.1s(J));12\'^=\':o(2l.2g(\'^\'+J));12\'$=\':o(2l.2g(J+\'$\'));12\'!=\':o(2l!=J);12\'~=\':o 2l.1s(J,\' \')}o L}};P.T({3V:m(){2e(k.6C()){12\'4x\':u 1T=[];$1q(k.C,m(6N){B(6N.e6)1T.1d($5K(6N.J,6N.1Z))});o(k.8c)?1T:1T[0];12\'9y\':B(!(k.7Z&&[\'e7\',\'e5\'].1s(k.F))&&![\'4v\',\'1Z\',\'e4\'].1s(k.F))1O;12\'9B\':o k.J}o L},9A:m(){o $$(k.33(\'9y\'),k.33(\'4x\'),k.33(\'9B\'))},5z:m(){u 59=[];k.9A().1q(m(el){u 1y=el.1y;u J=el.3V();B(J===L||!1y||el.7R)o;u 7W=m(4q){59.1d(1y+\'=\'+6k(4q))};B($F(J)==\'1B\')J.1q(7W);R 7W(J)});o 59.2i(\'&\')}});P.T({3D:m(x,y){k.5e=x;k.5i=y},6R:m(){o{\'2t\':{\'x\':k.5e,\'y\':k.5i},\'36\':{\'x\':k.42,\'y\':k.3f},\'6P\':{\'x\':k.63,\'y\':k.5Y}}},3h:m(45){45=45||[];u el=k,1p=0,1j=0;do{1p+=el.e1||0;1j+=el.e2||0;el=el.e3}6r(el);45.1q(m(G){1p-=G.5e||0;1j-=G.5i||0});o{\'x\':1p,\'y\':1j}},b8:m(){o k.3h().y},aW:m(){o k.3h().x},4m:m(45){u 1x=k.3h(45);u O={\'2s\':k.42,\'2M\':k.3f,\'1p\':1x.x,\'1j\':1x.y};O.3Z=O.1p+O.2s;O.34=O.1j+O.2M;o O}});P.7c={1J:m(F,Y){k.$1h=k.$1h||{};k.$1h[F]=k.$1h[F]||{\'23\':[],\'1T\':[]};B(k.$1h[F].23.1s(Y))o k;k.$1h[F].23.1d(Y);u 8a=F;u 1t=L;B(P.1Q[F]){B(P.1Q[F].7n)P.1Q[F].7n.1N(k,Y);B(P.1Q[F].3H)1t=P.1Q[F].3H.7X(k);8a=P.1Q[F].F||F}B(!k.7U)1t=1t||Y.7X(k);R 1t=1t||Y;k.$1h[F].1T.1d(1t);o k.2N(8a,1t)},3Y:m(F,Y){B(!k.$1h||!k.$1h[F])o k;u 1A=k.$1h[F].23.3A(Y);B(1A==-1)o k;u 1i=k.$1h[F].23.8e(1A,1)[0];u J=k.$1h[F].1T.8e(1A,1)[0];B(P.1Q[F]){B(P.1Q[F].2T)P.1Q[F].2T.1N(k,Y);F=P.1Q[F].F||F}o k.35(F,J)},6b:m(1Y){o P.7a(k,\'1J\',1Y)},84:m(F){B(!k.$1h)o k;B(F){B(k.$1h[F]){$A(k.$1h[F].23).1q(m(Y,i){k.3Y(F,Y)},k);k.$1h[F]=1V}}R{N(u a3 18 k.$1h)k.84(a3);k.$1h=1V}o k},1g:m(F,1l){B(k.$1h&&k.$1h[F]){k.$1h[F].23.1q(m(Y){Y.V(k,1l)()},k)}}};P.1Q.4E={F:(W.9X)?\'9W\':\'4E\'};W.T(P.7c);Q.T(P.7c);P.T(P.7c);P.1Q.7w={7n:m(Y){B(W.76){Y.1N(k);o}u 5c=m(){B(W.76)o;W.76=1m;W.1L=$4Q(W.1L);k.1g(\'7w\')}.V(k);B(Q.4C&&W.3t){W.1L=m(){B([\'76\',\'8D\'].1s(Q.4C))5c()}.3L(50)}R B(Q.4C&&W.3g){B(!$(\'8f\')){u 4z=(W.55.e8==\'e9:\')?\'://0\':\'8x:ee(0)\';Q.ef(\'<2P 4a="8f" ed 4z="\'+4z+\'"><\\/2P>\');$(\'8f\').6q=m(){B(k.4C==\'8D\')5c()}}}R{W.2N("5v",5c);Q.2N("ec",5c)}}};W.ea=m(Y){o k.1J(\'7w\',Y)};W.T({7T:m(){B(k.3t)o k.eb;B(k.7v)o Q.4w.93;o Q.2O.93},86:m(){B(k.3t)o k.ey;B(k.7v)o Q.4w.91;o Q.2O.91},8Z:m(){B(k.3g)o 1e.1D(Q.2O.42,Q.2O.63);B(k.3t)o Q.4w.63;o Q.2O.63},8S:m(){B(k.3g)o 1e.1D(Q.2O.3f,Q.2O.5Y);B(k.3t)o Q.4w.5Y;o Q.2O.5Y},7K:m(){o k.95||Q.2O.5e},7J:m(){o k.90||Q.2O.5i},6R:m(){o{\'36\':{\'x\':k.7T(),\'y\':k.86()},\'6P\':{\'x\':k.8Z(),\'y\':k.8S()},\'2t\':{\'x\':k.7K(),\'y\':k.7J()}}},3h:m(){o{\'x\':0,\'y\':0}}});u 1f={4K:{}};1f.2p=K 14({C:{3K:14.1o,21:14.1o,66:14.1o,2v:m(t,c,d){o-c/2*(1e.eI(1e.82*t/d)-1)},3W:eV,2A:\'6B\',3x:1m,8X:50},1k:m(C){k.G=k.G||1V;k.2J(C);B(k.C.1k)k.C.1k.1N(k)},1M:m(){u 3z=$3z();B(3z<k.3z+k.C.3W){k.8T=3z-k.3z;k.4k();k.3T()}R{k.1S(1m);k.17=k.11;k.3T();k.1g(\'21\',k.G,10);k.7B()}},22:m(11){k.17=11;k.3T();o k},4k:m(){k.17=k.4h(k.19,k.11)},4h:m(19,11){o k.C.2v(k.8T,(11-19),k.C.3W)+19},1c:m(19,11){B(!k.C.3x)k.1S();R B(k.1L)o k;k.19=19;k.11=11;k.3z=$3z();k.1L=k.1M.3L(1e.2S(ai/k.C.8X),k);k.1g(\'3K\',k.G);o k},1S:m(2o){B(!k.1L)o k;k.1L=$4Q(k.1L);B(!2o)k.1g(\'66\',k.G);o k},eS:m(19,11){o k.1c(19,11)},eU:m(2o){o k.1S(2o)}});1f.2p.2a(K 7r);1f.2p.2a(K 1Q);1f.2p.2a(K 48);1f.3b={4x:m(M,11){B(M.2g(/2R/i))o k.2y;B(11.1s&&11.1s(\' \'))o k.67;o k.8W},2U:m(el,M,4Y){B(!4Y.1d)4Y=[4Y];u 19=4Y[0],11=4Y[1];B(!11&&11!=0){11=19;19=el.2c(M)}u 1w=k.4x(M,11);o{19:1w.2U(19),11:1w.2U(11),1w:1w}}};1f.3b.8W={2U:m(J){o 5o(J)},4W:m(19,11,2n){o 2n.4h(19,11)},3V:m(J,2A){o J+2A}};1f.3b.67={2U:m(J){o J.1d?J:J.6E(\' \').3H(m(v){o 5o(v)})},4W:m(19,11,2n){u 17=[];N(u i=0;i<19.U;i++)17[i]=2n.4h(19[i],11[i]);o 17},3V:m(J,2A){o J.2i(2A+\' \')+2A}};1f.3b.2y={2U:m(J){o J.1d?J:J.5u(1m)},4W:m(19,11,2n){u 17=[];N(u i=0;i<19.U;i++)17[i]=1e.2S(2n.4h(19[i],11[i]));o 17},3V:m(J){o\'1v(\'+J.2i(\',\')+\')\'}};1f.7h=1f.2p.T({1k:m(el,M,C){k.G=$(el);k.M=M;k.1r(C)},6a:m(){o k.22(0)},4k:m(){k.17=k.1w.4W(k.19,k.11,k)},22:m(11){k.1w=1f.3b.4x(k.M,11);o k.1r(k.1w.2U(11))},1c:m(19,11){B(k.1L&&k.C.3x)o k;u 26=1f.3b.2U(k.G,k.M,[19,11]);k.1w=26.1w;o k.1r(26.19,26.11)},3T:m(){k.G.1P(k.M,k.1w.3V(k.17,k.C.2A))}});P.T({eQ:m(M,C){o K 1f.7h(k,M,C)}});1f.43=1f.2p.T({1k:m(el,C){k.G=$(el);k.1r(C)},4k:m(){N(u p 18 k.19)k.17[p]=k.1w[p].4W(k.19[p],k.11[p],k)},22:m(11){u 26={};k.1w={};N(u p 18 11){k.1w[p]=1f.3b.4x(p,11[p]);26[p]=k.1w[p].2U(11[p])}o k.1r(26)},1c:m(O){B(k.1L&&k.C.3x)o k;k.17={};k.1w={};u 19={},11={};N(u p 18 O){u 26=1f.3b.2U(k.G,p,O[p]);19[p]=26.19;11[p]=26.11;k.1w[p]=26.1w}o k.1r(19,11)},3T:m(){N(u p 18 k.17)k.G.1P(p,k.1w[p].3V(k.17[p],k.C.2A))}});P.T({3i:m(C){o K 1f.43(k,C)}});1f.3k=1f.2p.T({1k:m(15,C){k.15=$$(15);k.1r(C)},4k:m(){N(u i 18 k.19){u 5B=k.19[i],3X=k.11[i],3F=k.1w[i],5A=k.17[i]={};N(u p 18 5B)5A[p]=3F[p].4W(5B[p],3X[p],k)}},22:m(11){u 26={};k.1w={};N(u i 18 11){u 3X=11[i],3F=k.1w[i]={},9s=26[i]={};N(u p 18 3X){3F[p]=1f.3b.4x(p,3X[p]);9s[p]=3F[p].2U(3X[p])}}o k.1r(26)},1c:m(O){B(k.1L&&k.C.3x)o k;k.17={};k.1w={};u 19={},11={};N(u i 18 O){u 81=O[i],5B=19[i]={},3X=11[i]={},3F=k.1w[i]={};N(u p 18 81){u 26=1f.3b.2U(k.15[i],p,81[p]);5B[p]=26.19;3X[p]=26.11;3F[p]=26.1w}}o k.1r(19,11)},3T:m(){N(u i 18 k.17){u 5A=k.17[i],3F=k.1w[i];N(u p 18 5A)k.15[i].1P(p,3F[p].3V(5A[p],k.C.2A))}}});1f.aP=1f.2p.T({1k:m(G,C){k.17=[];k.G=$(G);k.1J(\'3K\',m(){k.G.1J(\'4E\',k.1S.V(k,L))}.V(k));k.3Y(\'21\',m(){k.G.3Y(\'4E\',k.1S.V(k,L))}.V(k));k.1r(C)},4k:m(){N(u i=0;i<2;i++)k.17[i]=k.4h(k.19[i],k.11[i])},3D:m(x,y){B(k.1L&&k.C.3x)o k;u el=k.G.6R();u 1T={\'x\':x,\'y\':y};N(u z 18 el.36){u 1D=el.6P[z]-el.36[z];B($2q(1T[z]))1T[z]=($F(1T[z])==\'73\')?1e.1D(1e.3O(1T[z],1D),0):1D;R 1T[z]=el.2t[z]}o k.1c([el.2t.x,el.2t.y],[1T.x,1T.y])},eR:m(){o k.3D(L,0)},eP:m(){o k.3D(L,\'9q\')},eT:m(){o k.3D(0,L)},eW:m(){o k.3D(\'9q\',L)},8I:m(el){u 1r=k.G.3h();u 3R=$(el).3h();o k.3D(3R.x-1r.x,3R.y-1r.y)},3T:m(){k.G.3D(k.17[0],k.17[1])}});1f.eN=1f.2p.T({C:{1K:\'8l\'},1k:m(el,C){k.G=$(el);k.3a=K P(\'4P\',{\'7o\':$T(k.G.9i(\'3l\'),{\'9G\':\'4v\'})}).6O(k.G).9c(k.G);k.G.1P(\'3l\',0);k.2J(C);k.17=[];k.1r(k.C)},4k:m(){N(u i=0;i<2;i++)k.17[i]=k.4h(k.19[i],k.11[i])},8l:m(){k.3l=\'3l-1j\';k.5F=\'2M\';k.1E=k.G.3f},8k:m(){k.3l=\'3l-1p\';k.5F=\'2s\';k.1E=k.G.42},9e:m(1K){k[1K||k.C.1K]();o k.1c([k.G.2c(k.3l).2C(),k.3a.2c(k.5F).2C()],[0,k.1E])},9h:m(1K){k[1K||k.C.1K]();o k.1c([k.G.2c(k.3l).2C(),k.3a.2c(k.5F).2C()],[-k.1E,0])},6a:m(1K){k[1K||k.C.1K]();o k.22([-k.1E,0])},47:m(1K){k[1K||k.C.1K]();o k.22([0,k.1E])},eE:m(1K){B(k.3a.3f==0||k.3a.42==0)o k.9e(1K);o k.9h(1K)},3T:m(){k.G.1P(k.3l,k.17[0]+k.C.2A);k.3a.1P(k.5F,k.17[1]+k.C.2A)}});1f.51=K 3y({eF:m(t,c,d){o c*(t/d)}});1f.4K.aN=m(2v,F){$T(2v,{aS:m(t,c,d,x,y,z){o c-c*2v((d-t)/d,t,c,d,x,y,z)},eD:m(t,c,d,x,y,z){o c*2v(t/d,t,c,d,x,y,z)},eC:m(t,c,d,x,y,z){d/=2,c/=2;u p=t/d;o(p<1)?2v.aS(t,c,d,x,y,z):c*(2v(p-1,t,c,d,x,y,z)+1)}});[\'eA\',\'eB\',\'eO\'].1q(m(1K){2v[\'7M\'+1K].22=1f.4K.8b(2v[\'7M\'+1K]);1f.51[F.4I()+1K]=2v[\'7M\'+1K]})};1f.4K.8b=m(2v){o m(){u 1l=$A(1b);o m(){o 2v.4o(1f.51,$A(1b).4H(1l))}}};1f.51.T=m(4L){N(u F 18 4L){B(F.2g(/^[A-Z]/))1f.4K.aN(4L[F],F);R 4L[F].22=1f.4K.8b(4L[F]);1f.51[F]=4L[F]}};1f.51.T({eG:m(p){o 1e.aB(p*(1e.82/2))},eH:m(p){o-(1e.2W(p-1,2)-1)},eM:m(p){o 1e.2W(p-1,3)+1},eK:m(p){o-(1e.2W(p-1,4)-1)},eJ:m(p){o 1e.2W(p-1,5)+1},eL:m(p){o-1e.2W(2,-10*p)+1},es:m(p){o 1e.au(1-1e.2W(p-1,2))},dZ:m(p){u b=7.de;B(p<(1/2.75))o b*1e.2W(p,2);R B(p<(2/2.75))o b*(p-=(1.5/2.75))*p+0.75;R B(p<(2.5/2.75))o b*(p-=(2.25/2.75))*p+0.df;R o b*(p-=(2.dd/2.75))*p+0.dc},d9:m(p,t,c,d,x){x=x||1.da;p-=1;o 1e.2W(p,2)*((x+1)*p+x)+1},db:m(p,t,c,d,x){x=d*0.3/(x||1);o(c*1e.2W(2,-10*p)*1e.aB((p*d-x/4)*(2*1e.82)/ x) + c) /c}});u 3G={};3G.2p=K 14({C:{3r:L,2A:\'6B\',3K:14.1o,ao:14.1o,21:14.1o,av:14.1o,8w:14.1o,1U:L,3o:{x:\'1p\',y:\'1j\'},4r:L,6g:6},1k:m(el,C){k.2J(C);k.G=$(el);k.3r=$(k.C.3r)||k.G;k.2B={\'17\':{},\'1A\':{}};k.J={\'1c\':{},\'17\':{}};k.1t={\'1c\':k.1c.2w(k),\'41\':k.41.2w(k),\'2V\':k.2V.2w(k),\'1S\':k.1S.V(k)};k.6w();B(k.C.1k)k.C.1k.1N(k)},6w:m(){k.3r.1J(\'53\',k.1t.1c);o k},aE:m(){k.3r.3Y(\'53\',k.1t.1c);o k},1c:m(I){k.1g(\'ao\',k.G);k.2B.1c=I.1H;u 1U=k.C.1U;k.1U={\'x\':[],\'y\':[]};N(u z 18 k.C.3o){B(!k.C.3o[z])87;k.J.17[z]=k.G.2c(k.C.3o[z]).2C();k.2B.1A[z]=I.1H[z]-k.J.17[z];B(1U&&1U[z]){N(u i=0;i<2;i++){B($2q(1U[z][i]))k.1U[z][i]=1U[z][i].4o?1U[z][i].1N(k):1U[z][i]}}}B($F(k.C.4r)==\'73\')k.C.4r={\'x\':k.C.4r,\'y\':k.C.4r};Q.2N(\'2E\',k.1t.41);Q.2N(\'6m\',k.1t.1S);k.1g(\'3K\',k.G);I.1S()},41:m(I){u aw=1e.2S(1e.au(1e.2W(I.1H.x-k.2B.1c.x,2)+1e.2W(I.1H.y-k.2B.1c.y,2)));B(aw>k.C.6g){Q.35(\'2E\',k.1t.41);Q.2N(\'2E\',k.1t.2V);k.2V(I);k.1g(\'av\',k.G)}I.1S()},2V:m(I){k.5r=L;k.2B.17=I.1H;N(u z 18 k.C.3o){B(!k.C.3o[z])87;k.J.17[z]=k.2B.17[z]-k.2B.1A[z];B(k.1U[z]){B($2q(k.1U[z][1])&&(k.J.17[z]>k.1U[z][1])){k.J.17[z]=k.1U[z][1];k.5r=1m}R B($2q(k.1U[z][0])&&(k.J.17[z]<k.1U[z][0])){k.J.17[z]=k.1U[z][0];k.5r=1m}}B(k.C.4r[z])k.J.17[z]-=(k.J.17[z]%k.C.4r[z]);k.G.1P(k.C.3o[z],k.J.17[z]+k.C.2A)}k.1g(\'8w\',k.G);I.1S()},1S:m(){Q.35(\'2E\',k.1t.41);Q.35(\'2E\',k.1t.2V);Q.35(\'6m\',k.1t.1S);k.1g(\'21\',k.G)}});3G.2p.2a(K 1Q);3G.2p.2a(K 48);P.T({dg:m(C){o K 3G.2p(k,$29({3o:{x:\'2s\',y:\'2M\'}},C))}});3G.aX=3G.2p.T({C:{5d:[],2L:L,45:[]},1k:m(el,C){k.2J(C);k.G=$(el);k.1x=k.G.2c(\'1x\');k.5d=$$(k.C.5d);B(![\'4N\',\'a2\'].1s(k.1x))k.1x=\'4N\';u 1j=k.G.2c(\'1j\').2C();u 1p=k.G.2c(\'1p\').2C();B(k.1x==\'4N\'){1j=$2q(1j)?1j:k.G.b8();1p=$2q(1p)?1p:k.G.aW()}R{1j=$2q(1j)?1j:0;1p=$2q(1p)?1p:0}k.G.4p({\'1j\':1j,\'1p\':1p,\'1x\':k.1x});k.1r(k.G,k.C)},1c:m(I){k.2L=$(k.C.2L);B(k.2L){u 3J=k.2L.4m();u el=k.G.4m();B(k.1x==\'4N\'){k.C.1U={\'x\':[3J.1p,3J.3Z-el.2s],\'y\':[3J.1j,3J.34-el.2M]}}R{u 7C=el.1p-k.G.2c(\'1p\').2C();u 8g=el.1j-k.G.2c(\'1j\').2C();k.C.1U={\'y\':[-(8g)+3J.1j,3J.34-8g-el.2M],\'x\':[-(7C)+3J.1p,3J.3Z-7C-el.2s]}}}k.1r(I)},2V:m(I){k.1r(I);B(k.5r)o k;k.5d.1q(m(2G){B(k.7k($(2G))){B(!2G.6u)2G.1g(\'dh\',[k.G,k]);2G.6u=1m}R{B(2G.6u)2G.1g(\'dn\',[k.G,k]);2G.6u=L}},k);o k},7k:m(el){el=el.4m(k.C.45);o(k.2B.17.x>el.1p&&k.2B.17.x<el.3Z&&k.2B.17.y<el.34&&k.2B.17.y>el.1j)},1S:m(){B(!k.5r){u 7f=L;k.5d.1q(m(2G){B(k.7k(2G)){2G.1g(\'2G\',[k.G,k]);7f=1m}},k);B(!7f)k.G.1g(\'dp\',k)}k.1r();o k}});P.T({dm:m(C){o K 3G.aX(k,C)}});u 56=K 14({C:{2z:\'5a\',7F:1m,aF:14.1o,58:14.1o,6n:14.1o,aR:1m,5q:\'dl-8\',aq:L,4t:{}},1k:m(C){k.2k=(W.6o)?K 6o():(W.3g?K aT(\'di.dj\'):L);B(!k.2k)o;k.2J(C);k.C.5m=k.C.5m||k.5m;k.4t={};B(k.C.aR&&k.C.2z==\'5a\'){u 5q=(k.C.5q)?\'; e0=\'+k.C.5q:\'\';k.57(\'bc-F\',\'aU/x-aL-dk-d8\'+5q)}B(k.C.1k)k.C.1k.1N(k)},aC:m(){B(k.2k.4C!=4||!k.4Z)o;k.4Z=L;u 4n=0;5x{4n=k.2k.4n}5s(e){};B(k.C.5m.1N(k,4n))k.58();R k.6n();k.2k.6q=14.1o},5m:m(4n){o((4n>=d7)&&(4n<cW))},58:m(){k.3B={\'1Z\':k.2k.cX,\'5h\':k.2k.cV};k.1g(\'58\',[k.3B.1Z,k.3B.5h]);k.7B()},6n:m(){k.1g(\'6n\',k.2k)},57:m(1y,J){k.4t[1y]=J;o k},5w:m(2u,1R){B(k.C.aq)k.aZ();R B(k.4Z)o k;k.4Z=1m;B(1R&&k.C.2z==\'2Y\')2u=2u+(2u.1s(\'?\')?\'&\':\'?\')+1R,1R=1V;(m(){k.2k.cU(k.C.2z,2u,k.C.7F);k.2k.6q=k.aC.V(k);B((k.C.2z==\'5a\')&&k.2k.cR)k.57(\'cS\',\'cT\');$T(k.4t,k.C.4t);N(u F 18 k.4t)5x{k.2k.cY(F,k.4t[F])}5s(e){};k.1g(\'aF\');k.2k.5w($5K(1R,1V))}).2r(k.C.7F?1:L,k);o k},aZ:m(){B(!k.4Z)o k;k.4Z=L;k.2k.8Y();k.2k.6q=14.1o;k.1g(\'66\');o k}});56.2a(K 7r);56.2a(K 1Q);56.2a(K 48);u b1=56.T({C:{1R:1V,8d:1V,21:14.1o,6p:L,8L:L},1k:m(2u,C){k.1J(\'58\',k.21);k.2J(C);k.C.1R=k.C.1R||k.C.b4;B(![\'5a\',\'2Y\'].1s(k.C.2z)){k.5E=\'5E=\'+k.C.2z;k.C.2z=\'5a\'}k.1r(k.C);k.57(\'X-cZ-d5\',\'6o\');k.57(\'d6\',\'1Z/8x, 1Z/cQ, aU/5h, 1Z/5h, */*\');k.2u=2u},21:m(){B(k.C.8d)$(k.C.8d).5M(k.3B.1Z);B(k.C.6p||k.C.8L)k.6p();k.1g(\'21\',[k.3B.1Z,k.3B.5h],20)},aj:m(1R){1R=1R||k.C.1R;2e($F(1R)){12\'G\':1R=$(1R).5z();1O;12\'1z\':1R=6i.5z(1R)}B(k.5E)1R=(1R)?[k.5E,1R].2i(\'&\'):k.5E;o k.5w(k.2u,1R)},6p:m(){B(k.C.8L||/(d4|d3)2P/.2g(k.at(\'bc-F\')))u 3N=k.3B.1Z;R{u 2P,3N=[],5t=/<2P[^>]*>([\\s\\S]*?)<\\/2P>/d0;6r((2P=5t.aG(k.3B.1Z)))3N.1d(2P[1]);3N=3N.2i(\'\\n\')}B(3N)(W.a8)?W.a8(3N):W.ax(3N,0)},at:m(1y){5x{o k.2k.d1(1y)}5s(e){};o 1V}});6i.5z=m(1Y){u 59=[];N(u M 18 1Y)59.1d(6k(M)+\'=\'+6k(1Y[M]));o 59.2i(\'&\')};P.T({5w:m(C){o K b1(k.6h(\'d2\'),$29({b4:k.5z()},C,{2z:\'5a\'})).aj()}});u 6x=K 3y({C:{6l:L,6t:L,3W:L,8G:L},22:m(1i,J,C){C=$29(k.C,C);J=6k(J);B(C.6l)J+=\'; 6l=\'+C.6l;B(C.6t)J+=\'; 6t=\'+C.6t;B(C.3W){u 6D=K ak();6D.dq(6D.aD()+C.3W/ai);J+=\'; dr=\'+6D.dP()}B(C.8G)J+=\'; 8G\';Q.4i=1i+\'=\'+J;o $T(C,{\'1i\':1i,\'J\':J})},2Y:m(1i){u J=Q.4i.2Q(\'(?:^|;)\\\\s*\'+1i.as()+\'=([^;]*)\');o J?dQ(J[1]):L},2T:m(4i,C){B($F(4i)==\'1z\')k.22(4i.1i,\'\',$29(4i,{3W:-1}));R k.22(4i,\'\',$29(C,{3W:-1}))}});6x.3j=K 14({1k:m(1y,C){k.1y=1y;k.C=C;o},22:m(1i,J){u 1z=k.2Y()||{};1z[1i]=J;k.52(1z);o k},52:m(1z){1z=3j.4f(1z);B(1z.U>dO)o L;6x.22(k.1y,1z,k.C);o k},2T:m(1i){u 1z=k.2Y();4u 1z[1i];k.52(1z);o k},2Y:m(1i){u 1z=3j.5f(6x.2Y(k.1y));o(1i)?1z[1i]:1z},1o:m(){k.52(1V)},29:m(O){k.52($29(k.2Y(),O))},dN:m(O){k.52($29(O,k.2Y()))}});u 3j={4f:m(O){2e($F(O)){12\'2D\':o\'"\'+O.3I(/(["\\\\])/g,\'\\\\$1\')+\'"\';12\'1B\':o\'[\'+O.3H(m(ar){o 3j.4f(ar)}).2i(\',\')+\']\';12\'1z\':u 2D=[];N(u M 18 O)2D.1d(3j.4f(M)+\':\'+3j.4f(O[M]));o\'{\'+2D.2i(\',\')+\'}\'}o 69(O)},5f:m(aI){o dK(\'(\'+aI+\')\')}};3j.dL=56.T({1k:m(2u,C){k.2u=2u;k.1J(\'58\',k.21);k.1r(C);k.57(\'X-dM\',\'dR\')},5w:m(O){o k.1r(k.2u,\'dS=\'+3j.4f(O))},21:m(){k.1g(\'21\',3j.5f(k.3B.1Z))}});u a5=K 3y({8x:m(1Y,1F){1F=$29({\'5D\':14.1o},1F);u 2P=K P(\'2P\',{\'4z\':1Y}).6b({\'5v\':1F.5D,\'dX\':m(){B(k.4C==\'8D\')k.1g(\'5v\')}});4u 1F.5D;o 2P.65(1F).2b(Q.64)},1w:m(1Y,1F){o K P(\'4j\',$29({\'aa\':\'dY\',\'dW\':\'dV\',\'F\':\'1Z/1w\',\'4O\':1Y},1F)).2b(Q.64)},4F:m(1Y,1F){1F=$29({\'5D\':14.1o,\'dT\':14.1o,\'dU\':14.1o},1F);u 4F=K dJ();4F.4z=1Y;u G=K P(\'8v\',{\'4z\':1Y});[\'5v\',\'8Y\',\'dI\'].1q(m(F){u I=1F[\'5H\'+F];4u 1F[\'5H\'+F];G.1J(F,m(){k.3Y(F,1b.97);I.1N(k)})});B(4F.2s&&4F.2M)G.1g(\'5v\');o G.65(1F)},7e:m(4B,C){C=$29({21:14.1o,9O:14.1o},C);B(!4B.1d)4B=[4B];u 7e=[];u 78=0;4B.1q(m(1Y){u 8v=K a5.4F(1Y,{\'5D\':m(){C.9O.1N(k,78);78++;B(78==4B.U)C.21()}});7e.1d(8v)});o $T(7e,K 3k)}});u 9Y=K 14({U:0,1k:m(O){k.O={};k.T(O)},2Y:m(1i){o k.O[1i]},dx:m(1i){o(1i 18 k.O)},22:m(1i,J){B(1i 18 k.O)k.U++;k.O[1i]=J;o k},2T:m(1i){B(!(1i 18 k.O))o k;4u k.O[1i];k.U--;o k},1q:m(Y,V){$1q(k.O,Y,V)},T:m(O){N(u 1i 18 O)k.22(1i,O[1i]);o k},1o:m(){k.O={};k.U=0;o k},23:m(){u 23=[];N(u M 18 k.O)23.1d(M);o 23},1T:m(){u 1T=[];N(u M 18 k.O)1T.1d(k.O[M]);o 1T}});m $H(O){o K 9Y(O)};u 2y=K 14({1k:m(2R,F){F=F||(2R.1d?\'1v\':\'3E\');u 1v,2f;2e(F){12\'1v\':1v=2R;2f=1v.8N();1O;12\'2f\':1v=2R.9V();2f=2R;1O;5W:1v=2R.5u(1m);2f=1v.8N()}1v.2f=2f;1v.3E=1v.5y();o $T(1v,2y.1I)},4y:m(){u 5C=$A(1b);u 6Q=($F(5C[5C.U-1])==\'73\')?5C.dy():50;u 1v=k.8o();5C.1q(m(2R){2R=K 2y(2R);N(u i=0;i<3;i++)1v[i]=1e.2S((1v[i]/ 2X * (2X - 6Q)) + (2R[i] /2X*6Q))});o K 2y(1v,\'1v\')},dw:m(){o K 2y(k.3H(m(J){o 4J-J}))},dv:m(J){o K 2y([J,k.2f[1],k.2f[2]],\'2f\')},ds:m(6M){o K 2y([k.2f[0],6M,k.2f[2]],\'2f\')},dt:m(6M){o K 2y([k.2f[0],k.2f[1],6M],\'2f\')}});m $du(r,g,b){o K 2y([r,g,b],\'1v\')};m $dz(h,s,b){o K 2y([h,s,b],\'2f\')};2H.T({8N:m(){u 5p=k[0],5n=k[1],72=k[2];u 2I,6V,8M;u 1D=1e.1D(5p,5n,72),3O=1e.3O(5p,5n,72);u 5j=1D-3O;8M=1D/4J;6V=(1D!=0)?5j/1D:0;B(6V==0){2I=0}R{u 8O=(1D-5p)/5j;u 8Q=(1D-5n)/5j;u br=(1D-72)/5j;B(5p==1D)2I=br-8Q;R B(5n==1D)2I=2+8O-br;R 2I=4+8Q-8O;2I/=6;B(2I<0)2I++}o[1e.2S(2I*9r),1e.2S(6V*2X),1e.2S(8M*2X)]},9V:m(){u br=1e.2S(k[2]/2X*4J);B(k[1]==0){o[br,br,br]}R{u 2I=k[0]%9r;u f=2I%60;u p=1e.2S((k[2]*(2X-k[1]))/dA*4J);u q=1e.2S((k[2]*(9b-k[1]*f))/aH*4J);u t=1e.2S((k[2]*(9b-k[1]*(60-f)))/aH*4J);2e(1e.9f(2I/60)){12 0:o[br,t,p];12 1:o[q,br,p];12 2:o[p,br,t];12 3:o[p,q,br];12 4:o[t,p,br];12 5:o[br,p,q]}}o L}});u 8i=K 14({C:{5P:20,8j:1,6f:m(x,y){k.G.3D(x,y)}},1k:m(G,C){k.2J(C);k.G=$(G);k.8P=([W,Q].1s(G))?$(Q.4w):k.G},1c:m(){k.8s=k.9K.2w(k);k.8P.2N(\'2E\',k.8s)},1S:m(){k.8P.35(\'2E\',k.8s);k.1L=$4Q(k.1L)},9K:m(I){k.1H=(k.G==W)?I.9J:I.1H;B(!k.1L)k.1L=k.2t.3L(50,k)},2t:m(){u el=k.G.6R();u 1A=k.G.3h();u 4e={\'x\':0,\'y\':0};N(u z 18 k.1H){B(k.1H[z]<(k.C.5P+1A[z])&&el.2t[z]!=0)4e[z]=(k.1H[z]-k.C.5P-1A[z])*k.C.8j;R B(k.1H[z]+k.C.5P>(el.36[z]+1A[z])&&el.2t[z]+el.36[z]!=el.6P[z])4e[z]=(k.1H[z]-el.36[z]+k.C.5P-1A[z])*k.C.8j}B(4e.y||4e.x)k.1g(\'6f\',[el.2t.x+4e.x,el.2t.y+4e.y])}});8i.2a(K 1Q);8i.2a(K 48);u 8B=K 14({C:{6f:14.1o,21:14.1o,8H:m(1A){k.44.1P(k.p,1A)},1K:\'8k\',9R:1m,5J:2X,5Q:L,1E:0},1k:m(el,44,C){k.G=$(el);k.44=$(44);k.2J(C);k.8y=-1;k.8z=-1;k.1M=-1;k.G.1J(\'53\',k.9l.2w(k));B(k.C.5Q)k.G.1J(\'4E\',k.9t.2w(k));u 7d,1E;B(k.C.1K==\'8k\'){k.z=\'x\';k.p=\'1p\';7d={\'x\':\'1p\',\'y\':L};1E=\'42\'}R B(k.C.1K==\'8l\'){k.z=\'y\';k.p=\'1j\';7d={\'x\':L,\'y\':\'1j\'};1E=\'3f\'}k.1D=k.G[1E]-k.44[1E]+(k.C.1E*2);k.94=k.44[1E]/2;k.92=k.G[\'2Y\'+k.p.8K()].V(k.G);k.44.1P(\'1x\',\'a2\').1P(k.p,-k.C.1E);u 8n={};8n[k.z]=[-k.C.1E,k.1D-k.C.1E];k.2V=K 3G.2p(k.44,{1U:8n,3o:7d,6g:0,3K:m(){k.68()}.V(k),8w:m(){k.68()}.V(k),21:m(){k.68();k.2o()}.V(k)});B(k.C.9R)k.G.1J(\'53\',k.2V.1c.2w(k.2V));B(k.C.1k)k.C.1k.1N(k)},22:m(1M){B(1M>k.C.5J)1M=k.C.5J;R B(1M<0)1M=0;k.1M=1M;k.6e();k.2o();k.1g(\'8H\',k.9d(k.1M));o k},9t:m(I){B(I.5Q<0)k.22(k.1M+1);R B(I.5Q>0)k.22(k.1M-1);I.1S()},9l:m(I){u 1x=I.1H[k.z]-k.92()-k.94;B(1x>k.1D-k.C.1E)1x=k.1D-k.C.1E;R B(1x<-k.C.1E)1x=-k.C.1E;k.1M=k.8A(1x);k.6e();k.2o();k.1g(\'8H\',1x)},68:m(){k.1M=k.8A(k.2V.J.17[k.z]);k.6e()},6e:m(){B(k.8y!=k.1M){k.8y=k.1M;k.1g(\'6f\',k.1M)}},2o:m(){B(k.8z!==k.1M){k.8z=k.1M;k.1g(\'21\',k.1M+\'\')}},8A:m(1x){o 1e.2S((1x+k.C.1E)/k.1D*k.C.5J)},9d:m(1M){o(k.1D)*1M/k.C.5J}});8B.2a(K 1Q);8B.2a(K 48);u dG=1f.aP.T({1k:m(C){k.1r(W,C);k.5O=(k.C.5O)?$$(k.C.5O):$$(Q.5O);k.1J(\'66\',k.8C);u 55=W.55.4O.2Q(/^[^#]*/)[0]+\'#\';k.5O.1q(m(4j){B(4j.4O.3A(55)!=0)o;u 49=4j.4O.b9(55.U);B(49&&$(49))k.aO(4j,49)},k)},aO:m(4j,49){4j.1J(\'88\',m(I){B(!W.3t){k.8C();k.aM(m(){W.55.dH=49})}k.8I(49);I.1S()}.2w(k))}});u 7j=K 14({C:{4l:L,3K:14.1o,21:14.1o,2x:1m,6g:3,b3:m(G,2x){2x.1P(\'28\',0.7);G.1P(\'28\',0.7)},aV:m(G,2x){G.1P(\'28\',1);2x.2T();k.54.2T()}},1k:m(5b,C){k.2J(C);k.5b=$(5b);k.15=k.5b.7t();k.4l=(k.C.4l)?$$(k.C.4l):k.15;k.1t={\'1c\':[],\'61\':k.61.2w(k)};N(u i=0,l=k.4l.U;i<l;i++){k.1t.1c[i]=k.1c.2w(k,k.15[i])}k.6w();B(k.C.1k)k.C.1k.1N(k);k.1t.5V=k.5V.2w(k);k.1t.2o=k.2o.V(k)},6w:m(){k.4l.1q(m(3r,i){3r.1J(\'53\',k.1t.1c[i])},k)},aE:m(){k.4l.1q(m(3r,i){3r.3Y(\'53\',k.1t.1c[i])},k)},1c:m(I,el){k.3p=el;k.5S=k.5b.4m();B(k.C.2x){u 1x=el.3h();k.1E=I.1H.y-1x.y;k.54=K P(\'4P\').2b(Q.4w);k.2x=el.ag().2b(k.54).4p({\'1x\':\'4N\',\'1p\':1x.x,\'1j\':I.1H.y-k.1E});Q.2N(\'2E\',k.1t.61);k.1g(\'b3\',[el,k.2x])}Q.2N(\'2E\',k.1t.5V);Q.2N(\'6m\',k.1t.2o);k.1g(\'3K\',el);I.1S()},61:m(I){u J=I.1H.y-k.1E;B(J<k.5S.1j)J=k.5S.1j;R B(J+k.2x.3f>k.5S.34)J=k.5S.34-k.2x.3f;k.2x.1P(\'1j\',J);I.1S()},5V:m(I){k.3p.3p=1m;k.2d=k.2d||I.1H.y;k.17=I.1H.y;u 5X=((k.2d-k.17)<=0)?\'8R\':\'8J\';u 6s=k.3p.b6();u 3n=k.3p.8q();B(6s&&5X==\'8J\'){u bd=6s.4m();B(I.1H.y<bd.34)k.3p.7Y(6s)}B(3n&&5X==\'8R\'){u 9k=3n.4m();B(I.1H.y>9k.1j)k.3p.6O(3n)}k.2d=I.1H.y},dF:m(){u 7G=[];k.5b.7t().1q(m(el,i){7G[i]=k.15.3A(el)},k);o 7G},2o:m(){k.2d=1V;Q.35(\'2E\',k.1t.5V);Q.35(\'6m\',k.1t.2o);B(k.C.2x){Q.35(\'2E\',k.1t.61);k.1g(\'aV\',[k.3p,k.2x])}k.1g(\'21\',k.3p)}});7j.2a(K 1Q);7j.2a(K 48);u 7I=K 14({C:{99:m(3Q){3Q.1P(\'4b\',\'7p\')},8V:m(3Q){3Q.1P(\'4b\',\'4v\')},80:30,9g:2X,9a:2X,1C:\'dE\',5T:{\'x\':16,\'y\':16},7N:L},1k:m(15,C){k.2J(C);k.3M=K P(\'4P\',{\'5N\':k.C.1C+\'-3Q\',\'7o\':{\'1x\':\'4N\',\'1j\':\'0\',\'1p\':\'0\',\'4b\':\'4v\'}}).2b(Q.4w);k.3a=K P(\'4P\').2b(k.3M);$1q(15,m(el){k.az($(el))},k);B(k.C.1k)k.C.1k.1N(k)},az:m(el){el.$.3S=(el.4O&&el.6C()==\'a\')?el.4O.3I(\'al://\',\'\'):(el.aa||L);B(el.4G){u 6F=el.4G.6E(\'::\');B(6F.U>1){el.$.3S=6F[0].5R();el.$.5I=6F[1].5R()}R{el.$.5I=el.4G}el.ba(\'4G\')}R{el.$.5I=L}B(el.$.3S&&el.$.3S.U>k.C.80)el.$.3S=el.$.3S.b9(0,k.C.80-1)+"&dB;";el.1J(\'7P\',m(I){k.1c(el);B(!k.C.7N)k.7S(I);R k.1x(el)}.V(k));B(!k.C.7N)el.1J(\'2E\',k.7S.2w(k));el.1J(\'7L\',k.2o.V(k))},1c:m(el){k.3a.1o();B(el.$.3S){k.4G=K P(\'aQ\').2b(K P(\'4P\',{\'5N\':k.C.1C+\'-4G\'}).2b(k.3a)).5M(el.$.3S)}B(el.$.5I){k.1Z=K P(\'aQ\').2b(K P(\'4P\',{\'5N\':k.C.1C+\'-1Z\'}).2b(k.3a)).5M(el.$.5I)}$4Q(k.1L);k.1L=k.47.2r(k.C.9g,k)},2o:m(I){$4Q(k.1L);k.1L=k.6a.2r(k.C.9a,k)},1x:m(G){u 1A=G.3h();k.3M.4p({\'1p\':1A.x+k.C.5T.x,\'1j\':1A.y+k.C.5T.y})},7S:m(I){u 9n={\'x\':W.7T(),\'y\':W.86()};u 2t={\'x\':W.7K(),\'y\':W.7J()};u 3Q={\'x\':k.3M.42,\'y\':k.3M.3f};u 2Z={\'x\':\'1p\',\'y\':\'1j\'};N(u z 18 2Z){u 1A=I.1H[z]+k.C.5T[z];B((1A+3Q[z]-2t[z])>9n[z])1A=I.1H[z]-k.C.5T[z]-3Q[z];k.3M.1P(2Z[z],1A)}},47:m(){k.1g(\'99\',[k.3M])},6a:m(){k.1g(\'8V\',[k.3M])}});7I.2a(K 1Q);7I.2a(K 48);u dC=K 14({1k:m(){k.62=$A(1b);k.1h={};k.4X={}},1J:m(F,Y){k.4X[F]=k.4X[F]||{};k.1h[F]=k.1h[F]||[];B(k.1h[F].1s(Y))o L;R k.1h[F].1d(Y);k.62.1q(m(5U,i){5U.1J(F,k.41.V(k,[F,5U,i]))},k);o k},41:m(F,5U,i){k.4X[F][i]=1m;u 4d=k.62.4d(m(2l,j){o k.4X[F][j]||L},k);B(!4d)o;k.62.1q(m(2l,j){k.4X[F][j]=L},k);k.1h[F].1q(m(I){I.1N(k,k.62,5U)},k)}});u 7x=1f.3k.T({C:{7H:14.1o,9M:14.1o,3v:0,47:L,2M:1m,2s:L,28:1m,6T:L,6S:L,3x:L,70:L},1k:m(){u C,2m,15,2L;$1q(1b,m(5Z,i){2e($F(5Z)){12\'1z\':C=5Z;1O;12\'G\':2L=$(5Z);1O;5W:u 1X=$$(5Z);B(!2m)2m=1X;R 15=1X}});k.2m=2m||[];k.15=15||[];k.2L=$(2L);k.2J(C);k.2d=-1;B(k.C.70)k.C.3x=1m;B($2q(k.C.47)){k.C.3v=L;k.2d=k.C.47}B(k.C.1c){k.C.3v=L;k.C.47=L}k.3i={};B(k.C.28)k.3i.28=\'9I\';B(k.C.2s)k.3i.2s=k.C.6S?\'9F\':\'42\';B(k.C.2M)k.3i.2M=k.C.6T?\'9U\':\'5Y\';N(u i=0,l=k.2m.U;i<l;i++)k.9P(k.2m[i],k.15[i]);k.15.1q(m(el,i){B(k.C.47===i)k.1g(\'7H\',[k.2m[i],el]);R N(u 2n 18 k.3i)el.1P(2n,0)},k);k.1r(k.15,k.C);B($2q(k.C.3v))k.3v(k.C.3v)},9P:m(3e,G,1A){3e=$(3e);G=$(G);u 2g=k.2m.1s(3e);u 3q=k.2m.U;k.2m.5L(3e);k.15.5L(G);B(3q&&(!2g||1A)){1A=$5K(1A,3q-1);3e.7Y(k.2m[1A]);G.6O(3e)}R B(k.2L&&!2g){3e.2b(k.2L);G.2b(k.2L)}u 9C=k.2m.3A(3e);3e.1J(\'88\',k.3v.V(k,9C));B(k.C.2M)G.4p({\'4R-1j\':0,\'3C-1j\':\'6I\',\'4R-34\':0,\'3C-34\':\'6I\'});B(k.C.2s)G.4p({\'4R-1p\':0,\'3C-1p\':\'6I\',\'4R-3Z\':0,\'3C-3Z\':\'6I\'});G.9I=1;B(k.C.6S)G.9F=k.C.6S;B(k.C.6T)G.9U=k.C.6T;G.1P(\'9G\',\'4v\');B(!2g)N(u 2n 18 k.3i)G.1P(2n,0);o k},3v:m(24){24=($F(24)==\'G\')?k.15.3A(24):24;B((k.1L&&k.C.3x)||(24===k.2d&&!k.C.70))o k;k.2d=24;u O={};k.15.1q(m(el,i){O[i]={};B((i!=24)||(k.C.70&&(el.3f>0))){k.1g(\'9M\',[k.2m[i],el]);N(u 2n 18 k.3i)O[i][2n]=0}R{k.1g(\'7H\',[k.2m[i],el]);N(u 2n 18 k.3i)O[i][2n]=el[k.3i[2n]]}},k);o k.1c(O)},dD:m(24){o k.3v(24)}});1f.7x=7x;',62,927,'||||||||||||||||||||this||function||return||||||var|||||||if|options|||type|element||event|value|new|false|property|for|obj|Element|document|else||extend|length|bind|window||fn|||to|case||Class|elements||now|in|from|param|arguments|start|push|Math|Fx|fireEvent|events|key|top|initialize|args|true|selector|empty|left|each|parent|contains|bound|items|rgb|css|position|name|object|pos|array|className|max|offset|properties|result|page|prototype|addEvent|mode|timer|step|call|break|setStyle|Events|data|stop|values|limit|null|shared|temp|source|text||onComplete|set|keys|index||parsed||opacity|merge|implement|inject|getStyle|previous|switch|hsb|test|style|join|props|transport|current|togglers|fx|end|Base|chk|delay|width|scroll|url|transition|bindWithEvent|ghost|Color|method|unit|mouse|toInt|string|mousemove|relatedTarget|drop|Array|hue|setOptions|Garbage|container|height|addListener|documentElement|script|match|color|round|remove|parse|drag|pow|100|get|prop||context||getElementsByTagName|bottom|removeListener|size||||wrapper|CSS|parentNode|Filters|toggler|offsetHeight|ie|getPosition|effects|Json|Elements|margin|item|next|modifiers|active|len|handle|filter|khtml|create|display|returns|wait|Abstract|time|indexOf|response|border|scrollTo|hex|iCss|Drag|map|replace|cont|onStart|periodical|toolTip|scripts|min|nocash|tip|target|myTitle|increase|xpath|getValue|duration|iTo|removeEvent|right||check|offsetWidth|Styles|knob|overflown||show|Options|anchor|id|visibility|chains|every|change|toString|Event|compute|cookie|link|setNow|handles|getCoordinates|status|apply|setStyles|val|grid|cache|headers|delete|hidden|body|select|mix|src|iterable|sources|readyState|results|mousewheel|image|title|concat|toLowerCase|255|Shared|transitions|bit|absolute|href|div|clear|padding|unique|sel|collect|htmlElement|getNow|checker|fromTo|running||Transitions|save|mousedown|trash|location|XHR|setHeader|onSuccess|queryString|post|list|domReady|droppables|scrollLeft|evaluate|HTMLElement|xml|scrollTop|delta|option|tagName|isSuccess|green|parseFloat|red|encoding|out|catch|regexp|hexToRgb|load|send|try|rgbToHex|toQueryString|iNow|iFrom|colors|onload|_method|layout|walk|on|myText|steps|pick|include|setHTML|class|links|area|wheel|trim|coordinates|offsets|instance|move|default|direction|scrollHeight|argument||moveGhost|instances|scrollWidth|head|setProperties|onCancel|Multi|draggedKnob|String|hide|addEvents|Properties|attempt|checkStep|onChange|snap|getProperty|Object|native|encodeURIComponent|domain|mouseup|onFailure|XMLHttpRequest|evalScripts|onreadystatechange|while|prev|path|overing|brother|attach|Cookie|setProperty|parseInt|currentStyle|px|getTag|date|split|dual|included|mp|none|getElementById|getElements|getElementsBySelector|percent|opt|injectAfter|scrollSize|alpha|getSize|fixedWidth|fixedHeight|code|saturation|stopPropagation|preventDefault|fKey|klass|alwaysHide|found|blue|number|undefined||loaded|proto|counter|listenerMethods|setMany|regex|eventMethods|mod|images|dropped|getParam|Style|xhtml|Sortables|checkAgainst|ctype|camelCase|add|styles|visible|pageX|Chain|nodeType|getChildren|appendChild|opera|domready|Accordion|pageY|hasChild|Function|callChain|diffx|hasClass|clean|async|serial|onActive|Tips|getScrollTop|getScrollLeft|mouseleave|ease|fixed|merged|mouseenter|getMany|disabled|locate|getWidth|addEventListener|pairs|qs|bindAsEventListener|injectBefore|checked|maxTitleChars|iProps|PI|domMethods|removeEvents|getItems|getHeight|continue|click|operator|realType|SetTransitionValues|multiple|update|splice|ie_ready|diffy|ptype|Scroller|velocity|horizontal|vertical|charAt|lim|copy|typeof|getNext|newArray|coord|random|forEach|img|onDrag|javascript|previousChange|previousEnd|toStep|Slider|clearChain|complete|insertBefore|first|secure|onTick|toElement|up|capitalize|evalResponse|brightness|rgbToHsb|rr|mousemover|gr|down|getScrollHeight|cTime|mouseover|onHide|Single|fps|abort|getScrollWidth|pageYOffset|clientHeight|getPos|clientWidth|half|pageXOffset|clientX|callee|toUpperCase|onShow|hideDelay|6000|adopt|toPosition|slideIn|floor|showDelay|slideOut|getStyles|which|nextPos|clickedElement|Number|win|mergeClass|clientY|full|360|iParsed|scrolledElement|getXpathParam|getXpathItems|getNormalParam|shift|input|params|getFormElements|textarea|idx|attribute|getElement|fullWidth|overflow|pp|fullOpacity|client|getCoords|getNormalItems|onBackground|prefix|onProgress|addSection|ie6|clickDrags|removeEventListener|mouseout|fullHeight|hsbToRgb|DOMMouseScroll|gecko|Hash|wheelDelta|resolver|interval|relative|evType|120|Asset|toFloat|removeClass|execScript|childNodes|rel|before|getLast|picked|RegExp|createElement|clone|injectInside|1000|request|Date|http|addClass|firstChild|onBeforeStart||autoCancel||escapeRegExp|getHeader|sqrt|onSnap|distance|setTimeout|where|build|setOpacity|sin|onStateChange|getTime|detach|onRequest|exec|600000|str|zoom|cssText|www|chain|CreateTransitionEases|useLink|Scroll|span|urlEncoded|easeIn|ActiveXObject|application|onDragComplete|getLeft|Move|fixStyle|cancel|Width|Ajax|after|onDragStart|postBody|defaultView|getPrevious|hyphenate|getTop|substr|removeAttribute|contents|Content|prevPos|some|associate|alt|zIndex|cssFloat|float|styleFloat|taintEnabled|DOMElement|styleSheet|replaceChild|replaceWith|cloneNode||version|MooTools|rightClick|appendText|Window|returnValue|cancelBubble|BackgroundImageCache|button|fromElement|1dev|execCommand|toggleClass|createTextNode|metaKey|meta|iframe|altKey|detail|keyCode|fromCharCode|menu|removeChild|111|keydown|getBoxObjectFor|all|transparent|textnode|setAttribute|innerHTML|whitespace|clearTimeout|slice|rowSpan|removeProperty|nodeName|getProperties|nodeValue|accesskey|setInterval|0px|embed|boolean|Right|Bottom|clearInterval|Left|Top|pass|rowspan|err|colSpan|colspan|htmlFor|accessKey|tabindex|srcElement|Native|unload|getComputedStyle|ie7|getPropertyValue|shiftKey|control|removeItem|getRandom|ctrlKey|injectTop|navigator|onTrash|detachEvent|lastChild|enter|maxlength|tabIndex|getAttribute|getParent|getFirst|Document|readOnly|attachEvent|readonly|maxLength|Sibling|hasLayout|html|overrideMimeType|Connection|close|open|responseXML|300|responseText|setRequestHeader|Requested|gi|getResponseHeader|action|java|ecma|With|Accept|200|urlencoded|Back|70158|Elastic|984375|625|5625|9375|makeResizable|over|Microsoft|XMLHTTP|form|utf|makeDraggable|leave||emptydrop|setTime|expires|setSaturation|setBrightness|RGB|setHue|invert|hasKey|pop|HSB|10000|hellip|Group|showThisHideOpen|tool|serialize|SmoothScroll|hash|error|Image|eval|Remote|Request|fill|4096|toGMTString|decodeURIComponent|JSON|json|onabort|onerror|screen|media|readystatechange|stylesheet|Bounce|charset|offsetLeft|offsetTop|offsetParent|password|radio|selected|checkbox|protocol|https|onDomReady|innerWidth|DOMContentLoaded|defer|void|write|getElementsByClassName|1999|ES|namespaceURI|starts||tab|backspace|esc|space|with|substring|Circ|org|snapshotItem|snapshotLength|XPathResult|UNORDERED_NODE_SNAPSHOT_TYPE|innerHeight|w3|In|Out|easeInOut|easeOut|toggle|linear|Sine|Quad|cos|Quint|Quart|Expo|Cubic|Slide|InOut|toBottom|effect|toTop|custom|toLeft|clearTimer|500|toRight'.split('|'),0,{}))

/* Copyright (c) Fluid Creativity, 2007 */

var initMouseOvers = function(){
	var preload = new Image();

	$$('.rollover').each(function(el){
		if (el.src.test(/\.(gif|jpg|jpeg|png)$/i)) {

			// preload images
			preload.src = el.src.replace(/\.(gif|jpg|jpeg|png)/, '_over.$1');

			el.addEvents({
				mouseover: function(){
					this.src = this.src.replace(/\.(gif|jpg|jpeg|png)/, '_over.$1');
				},
				mouseout: function(){
					this.src = this.src.replace(/_over\.(gif|jpg|jpeg|png)/, '.$1');
				}
			});
		}
	});
}


// and initialise the mouseovers on page load

window.addEvent('domready', initMouseOvers);

var initImageReplace = function(){
	$$('#nav a').each(function(el){
		el.setHTML('<img src="images/nav-' + urlFormat(el.innerHTML) + '.gif" alt="' + el.innerHTML.replace(/"/, "'") + '">');
	});
}

Window.addEvent('domready', initImageReplace);

var urlFormat = function(input){
	return input.trim().toLowerCase().replace(/[^a-z0-9-]/g, '-');
}

var Lightbox={init:function(options){this.options=$extend({resizeDuration:400,resizeTransition:false,initialWidth:230,initialHeight:250,animateCaption:true,showCounter:true},options||{});this.anchors=[];$each(document.links,function(el){if(el.rel&&el.rel.test(/^lightbox/i)){el.onclick=this.click.pass(el,this);this.anchors.push(el)}},this);this.eventKeyDown=this.keyboardListener.bindAsEventListener(this);this.eventPosition=this.position.bind(this);this.overlay=new Element('div',{'id':'lbOverlay'}).injectInside(document.body);this.center=new Element('div',{'id':'lbCenter','styles':{'width':this.options.initialWidth,'height':this.options.initialHeight,'marginLeft':-(this.options.initialWidth/2),'display':'none'}}).injectInside(document.body);this.image=new Element('div',{'id':'lbImage'}).injectInside(this.center);this.prevLink=new Element('a',{'id':'lbPrevLink','href':'#','styles':{'display':'none'}}).injectInside(this.image);this.nextLink=this.prevLink.clone().setProperty('id','lbNextLink').injectInside(this.image);this.prevLink.onclick=this.previous.bind(this);this.nextLink.onclick=this.next.bind(this);this.bottomContainer=new Element('div',{'id':'lbBottomContainer','styles':{'display':'none'}}).injectInside(document.body);this.bottom=new Element('div',{'id':'lbBottom'}).injectInside(this.bottomContainer);new Element('a',{'id':'lbCloseLink','href':'#'}).injectInside(this.bottom).onclick=this.overlay.onclick=this.close.bind(this);this.caption=new Element('div',{'id':'lbCaption'}).injectInside(this.bottom);this.number=new Element('div',{'id':'lbNumber'}).injectInside(this.bottom);new Element('div',{'styles':{'clear':'both'}}).injectInside(this.bottom);var nextEffect=this.nextEffect.bind(this);this.fx={overlay:this.overlay.effect('opacity',{duration:500}).hide(),resize:this.center.effects($extend({duration:this.options.resizeDuration,onComplete:nextEffect},this.options.resizeTransition?{transition:this.options.resizeTransition}:{})),image:this.image.effect('opacity',{duration:500,onComplete:nextEffect}),bottom:this.bottom.effect('margin-top',{duration:400,onComplete:nextEffect})};this.preloadPrev=new Image();this.preloadNext=new Image()},click:function(link){if(link.rel.length==8)return this.show(link.href,link.title);var j,imageNum,images=[];this.anchors.each(function(el){if(el.rel==link.rel){for(j=0;j<images.length;j++)if(images[j][0]==el.href)break;if(j==images.length){images.push([el.href,el.title]);if(el.href==link.href)imageNum=j}}},this);return this.open(images,imageNum)},show:function(url,title){return this.open([[url,title]],0)},open:function(images,imageNum){this.images=images;this.position();this.setup(true);this.top=window.getScrollTop()+(window.getHeight()/15);this.center.setStyles({top:this.top,display:''});this.fx.overlay.start(0.8);return this.changeImage(imageNum)},position:function(){this.overlay.setStyles({'top':window.getScrollTop(),'height':window.getHeight()})},setup:function(open){var elements=$A(document.getElementsByTagName('object'));elements.extend(document.getElementsByTagName(window.ie?'select':'embed'));elements.each(function(el){if(open)el.lbBackupStyle=el.style.visibility;el.style.visibility=open?'hidden':el.lbBackupStyle});var fn=open?'addEvent':'removeEvent';window[fn]('scroll',this.eventPosition)[fn]('resize',this.eventPosition);document[fn]('keydown',this.eventKeyDown);this.step=0},keyboardListener:function(event){switch(event.keyCode){case 27:case 88:case 67:this.close();break;case 37:case 80:this.previous();break;case 39:case 78:this.next()}},previous:function(){return this.changeImage(this.activeImage-1)},next:function(){return this.changeImage(this.activeImage+1)},changeImage:function(imageNum){if(this.step||(imageNum<0)||(imageNum>=this.images.length))return false;this.step=1;this.activeImage=imageNum;this.bottomContainer.style.display=this.prevLink.style.display=this.nextLink.style.display='none';this.fx.image.hide();this.center.className='lbLoading';this.preload=new Image();this.preload.onload=this.nextEffect.bind(this);this.preload.src=this.images[imageNum][0];return false},nextEffect:function(){switch(this.step++){case 1:this.center.className='';this.image.style.backgroundImage='url('+this.images[this.activeImage][0]+')';this.image.style.width=this.bottom.style.width=this.preload.width+'px';this.image.style.height=this.prevLink.style.height=this.nextLink.style.height=this.preload.height+'px';this.caption.setHTML(this.images[this.activeImage][1]||'');this.number.setHTML((!this.options.showCounter||(this.images.length==1))?'':'Image '+(this.activeImage+1)+' of '+this.images.length);if(this.activeImage)this.preloadPrev.src=this.images[this.activeImage-1][0];if(this.activeImage!=(this.images.length-1))this.preloadNext.src=this.images[this.activeImage+1][0];if(this.center.clientHeight!=this.image.offsetHeight){this.fx.resize.start({height:this.image.offsetHeight});break}this.step++;case 2:if(this.center.clientWidth!=this.image.offsetWidth){this.fx.resize.start({width:this.image.offsetWidth,marginLeft:-this.image.offsetWidth/2});break}this.step++;case 3:this.bottomContainer.setStyles({top:this.top+this.center.clientHeight,height:0,marginLeft:this.center.style.marginLeft,display:''});this.fx.image.start(1);break;case 4:if(this.options.animateCaption){this.fx.bottom.set(-this.bottom.offsetHeight);this.bottomContainer.style.height='';this.fx.bottom.start(0);break}this.bottomContainer.style.height='';case 5:if(this.activeImage)this.prevLink.style.display='';if(this.activeImage!=(this.images.length-1))this.nextLink.style.display='';this.step=0}},close:function(){if(this.step<0)return;this.step=-1;if(this.preload){this.preload.onload=Class.empty;this.preload=null}for(var f in this.fx)this.fx[f].stop();this.center.style.display=this.bottomContainer.style.display='none';this.fx.overlay.chain(this.setup.pass(false,this)).start(0);return false}};window.addEvent('domready',Lightbox.init.bind(Lightbox));

var initGallery = function(){
	var params = {timed: true, showArrows: false, showInfopane: false, delay: 5000, showCarousel: false, embedLinks: false};
	var myGallery = new gallery($('myGallery'), params);
}

Window.onDomReady(initGallery);

var $removeEvents = function (object, type)
{
	if (!object.events) return object;
	if (type){
		if (!object.events[type]) return object;
		for (var fn in object.events[type]) object.removeEvent(type, fn);
		object.events[type] = null;
	} else {
		for (var evType in object.events) object.removeEvents(evType);
		object.events = null;
	}
	return object;
};
		
		
// declaring the class
var gallery = new Class({
	initialize: function(element, options) {
		this.setOptions({
			showArrows: true,
			showCarousel: true,
			showInfopane: true,
			thumbHeight: 75,
			thumbWidth: 100,
			thumbSpacing: 10,
			embedLinks: true,
			fadeDuration: 500,
			timed: false,
			delay: 9000,
			preloader: true,
			manualData: [],
			populateData: true,
			elementSelector: "div.imageElement",
			titleSelector: "h3",
			subtitleSelector: "p",
			linkSelector: "a.open",
			imageSelector: "img.full",
			thumbnailSelector: "img.thumbnail",
			slideInfoZoneOpacity: 0.7,
			carouselMinimizedOpacity: 0.4,
			carouselMinimizedHeight: 20,
			carouselMaximizedOpacity: 0.7, 
			destroyAfterPopulate: true,
			baseClass: 'jdGallery',
			withArrowsClass: 'withArrows',
			textShowCarousel: 'Pictures',
			useThumbGenerator: false,
			thumbGenerator: 'resizer.php'
		}, options);
		this.fireEvent('onInit');
		this.currentIter = 0;
		this.lastIter = 0;
		this.maxIter = 0;
		this.galleryElement = element;
		this.galleryData = this.options.manualData;
		this.galleryInit = 1;
		this.galleryElements = Array();
		this.thumbnailElements = Array();
		this.galleryElement.addClass(this.options.baseClass);
		if (this.options.populateData)
			this.populateData();
		element.style.display="block";
		
		if (this.options.embedLinks)
		{
			this.currentLink = new Element('a').addClass('open').setProperties({
				href: '#',
				title: ''
			}).injectInside(element);
			if ((!this.options.showArrows) && (!this.options.showCarousel))
				this.galleryElement = element = this.currentLink;
			else
				this.currentLink.setStyle('display', 'none');
		}
		
		this.constructElements();
		if ((data.length>1)&&(this.options.showArrows))
		{
			var leftArrow = new Element('a').addClass('left').addEvent(
				'click',
				this.prevItem.bind(this)
			).injectInside(element);
			var rightArrow = new Element('a').addClass('right').addEvent(
				'click',
				this.nextItem.bind(this)
			).injectInside(element);
			this.galleryElement.addClass(this.options.withArrowsClass);
		}
		this.loadingElement = new Element('div').addClass('loadingElement').injectInside(element);
		if (this.options.showInfopane) this.initInfoSlideshow();
		if (this.options.showCarousel) this.initCarousel();
		this.doSlideShow(1);
	},
	populateData: function() {
		currentArrayPlace = this.galleryData.length;
		options = this.options;
		data = this.galleryData;
		this.galleryElement.getElements(options.elementSelector).each(function(el) {
			elementDict = {
				image: el.getElement(options.imageSelector).getProperty('src'),
				number: currentArrayPlace
			};
			if ((options.showInfopane) | (options.showCarousel))
				Object.extend(elementDict, {
					title: el.getElement(options.titleSelector).innerHTML,
					description: el.getElement(options.subtitleSelector).innerHTML
				});
			if (options.embedLinks)
				Object.extend(elementDict, {
					link: el.getElement(options.linkSelector).href||false,
					linkTitle: el.getElement(options.linkSelector).title||false
				});
			if ((!options.useThumbGenerator) && (options.showCarousel))
				Object.extend(elementDict, {
					thumbnail: el.getElement(options.thumbnailSelector).src
				});
			else if (options.useThumbGenerator)
				Object.extend(elementDict, {
					thumbnail: 'resizer.php?imgfile=' + elementDict.image + '&max_width=' + options.thumbWidth + '&max_height=' + options.thumbHeight
				});
			
			data[currentArrayPlace] = elementDict;
			currentArrayPlace++;
			if (this.options.destroyAfterPopulate)
				el.remove();
		});
		this.galleryData = data;
		this.fireEvent('onPopulated');
	},
	constructElements: function() {
		el = this.galleryElement;
		this.maxIter = this.galleryData.length;
		var currentImg;
		for(i=0;i<this.galleryData.length;i++)
		{
			var currentImg = new Fx.Style(
				new Element('div').addClass('slideElement').setStyles({
					'position':'absolute',
					'left':'0px',
					'right':'0px',
					'margin':'0px',
					'padding':'0px',
					'backgroundImage':"url('" + this.galleryData[i].image + "')",
					'backgroundPosition':"center center",
					'opacity':'0'
				}).injectInside(el),
				'opacity',
				{duration: this.options.fadeDuration}
			);
			this.galleryElements[parseInt(i)] = currentImg;
		}
	},
	destroySlideShow: function(element) {
		var myClassName = element.className;
		var newElement = new Element('div').addClass('myClassName');
		element.parentNode.replaceChild(newElement, element);
	},
	startSlideShow: function() {
		this.fireEvent('onStart');
		this.loadingElement.style.display = "none";
		this.lastIter = this.maxIter - 1;
		this.currentIter = 0;
		this.galleryInit = 0;
		this.galleryElements[parseInt(this.currentIter)].set(1);
		if (this.options.showInfopane)
			this.showInfoSlideShow.delay(1000, this);
		this.prepareTimer();
		if (this.options.embedLinks)
			this.makeLink(this.currentIter);
	},
	nextItem: function() {
		this.fireEvent('onNextCalled');
		this.nextIter = this.currentIter+1;
		if (this.nextIter >= this.maxIter)
			this.nextIter = 0;
		this.galleryInit = 0;
		this.goTo(this.nextIter);
	},
	prevItem: function() {
		this.fireEvent('onPreviousCalled');
		this.nextIter = this.currentIter-1;
		if (this.nextIter <= -1)
			this.nextIter = this.maxIter - 1;
		this.galleryInit = 0;
		this.goTo(this.nextIter);
	},
	goTo: function(num) {
		this.clearTimer();
		if (this.options.embedLinks)
			this.clearLink();
		if (this.options.showInfopane)
		{
			this.slideInfoZone.clearChain();
			this.hideInfoSlideShow().chain(this.changeItem.pass(num, this));
		} else
			this.changeItem.delay(500, this, num);
		if (this.options.embedLinks)
			this.makeLink(num);
		this.prepareTimer();
		/*if (this.options.showCarousel)
			this.clearThumbnailsHighlights();*/
	},
	changeItem: function(num) {
		this.fireEvent('onStartChanging');
		this.galleryInit = 0;
		if (this.currentIter != num)
		{
			for(i=0;i<this.maxIter;i++)
			{
				if ((i != this.currentIter)) this.galleryElements[i].set(0);
			}
			if (num > this.currentIter) this.galleryElements[num].custom(1);
			else
			{
				this.galleryElements[num].set(1);
				this.galleryElements[this.currentIter].custom(0);
			}
			this.currentIter = num;
		}
		this.doSlideShow.bind(this)();
		this.fireEvent('onChanged');
	},
	clearTimer: function() {
		if (this.options.timed)
			$clear(this.timer);
	},
	prepareTimer: function() {
		if (this.options.timed)
			this.timer = this.nextItem.delay(this.options.delay, this);
	},
	doSlideShow: function(position) {
		if (this.galleryInit == 1)
		{
			imgPreloader = new Image();
			imgPreloader.onload=function(){
				this.startSlideShow.delay(10, this);
			}.bind(this);
			imgPreloader.src = this.galleryData[0].image;
		} else {
			if (this.options.showInfopane)
			{
				if (this.options.showInfopane)
				{
					this.showInfoSlideShow.delay((500 + this.options.fadeDuration), this);
				} else
					if (this.options.showCarousel)
						this.centerCarouselOn(position);
			}
		}
	},
	initCarousel: function () {
		var carouselContainerElement = new Element('div').addClass('carouselContainer').injectInside(this.galleryElement);
		this.carouselContainer = new Fx.Styles(carouselContainerElement, {transition: Fx.Transitions.expoOut});
		this.carouselContainer.normalHeight = carouselContainerElement.offsetHeight;
		this.carouselContainer.set({'opacity': this.options.carouselMinimizedOpacity, 'top': (this.options.carouselMinimizedHeight - this.carouselContainer.normalHeight)});
		
		this.carouselBtn = new Element('a').addClass('carouselBtn').setProperties({
			title: this.options.textShowCarousel
		}).setHTML(this.options.textShowCarousel).injectInside(carouselContainerElement);
		
		this.carouselBtn.addEvent(
			'click',
			function () {
				this.carouselContainer.clearTimer();
				this.toggleCarousel();
			}.bind(this)
		);
		this.carouselActive = false;

		var carouselElement = new Element('div').addClass('carousel').injectInside(carouselContainerElement);
		this.carousel = new Fx.Styles(carouselElement);
		
		this.carouselLabel = new Element('p').addClass('label').injectInside(this.carousel.element);
		this.carouselWrapper = new Element('div').addClass('carouselWrapper').injectInside(this.carousel.element);
		this.carouselInner = new Element('div').addClass('carouselInner').injectInside(this.carouselWrapper);

		this.carouselWrapper.scroller = new Scroller(this.carouselWrapper, {
			area: 100,
			velocity: 0.2
		})
		
		this.carouselWrapper.elementScroller = new Fx.Scroll(this.carouselWrapper, {
			duration: 400,
			onStart: this.carouselWrapper.scroller.stop.bind(this.carouselWrapper.scroller),
			onComplete: this.carouselWrapper.scroller.start.bind(this.carouselWrapper.scroller)
		});

		this.constructThumbnails();

		this.carouselInner.style.width = ((this.maxIter * (this.options.thumbWidth + this.options.thumbSpacing)) - this.options.thumbSpacing + this.options.thumbWidth) + "px";
	},
	toggleCarousel: function() {
		if (this.carouselActive)
			this.hideCarousel();
		else
			this.showCarousel();
	},
	showCarousel: function () {
		this.fireEvent('onShowCarousel');
		this.carouselContainer.custom({
			'opacity': this.options.carouselMaximizedOpacity,
			'top': 0
		}).addEvent('onComplete', function() { this.carouselActive = true; this.carouselWrapper.scroller.start(); }.bind(this));
	},
	hideCarousel: function () {
		this.fireEvent('onHideCarousel');
		this.carouselContainer.custom({
			'opacity': this.options.carouselMinimizedOpacity,
			'top': (this.options.carouselMinimizedHeight - this.carouselContainer.normalHeight)
		}).addEvent('onComplete', function() { this.carouselActive = false; this.carouselWrapper.scroller.stop(); }.bind(this));
	},
	constructThumbnails: function () {
		element = this.carouselInner;
		for(i=0;i<this.galleryData.length;i++)
		{
			var currentImg = new Fx.Style(new Element ('div').addClass("thumbnail").setStyles({
					backgroundImage: "url('" + this.galleryData[i].thumbnail + "')",
					backgroundPosition: "center center",
					backgroundRepeat: 'no-repeat',
					marginLeft: this.options.thumbSpacing + "px",
					width: this.options.thumbWidth + "px",
					height: this.options.thumbHeight + "px"
				}).injectInside(element), "opacity", {duration: 200}).set(0.2);
			currentImg.element.addEvents({
				'mouseover': function (myself) {
					myself.clearTimer();
					myself.custom(0.99);
					$(this.carouselLabel).setHTML('<span class="number">' + (myself.relatedImage.number + 1) + "/" + this.maxIter + ":</span> " + myself.relatedImage.title);
				}.pass(currentImg, this),
				'mouseout': function (myself) {
					myself.clearTimer();
					myself.custom(0.2);
				}.pass(currentImg, this),
				'click': function (myself) {
					this.goTo(myself.relatedImage.number);
				}.pass(currentImg, this)
			});
			
			currentImg.relatedImage = this.galleryData[i];
			this.thumbnailElements[parseInt(i)] = currentImg;
		}
	},
	clearThumbnailsHighlights: function()
	{
		for(i=0;i<this.galleryData.length;i++)
		{
			this.thumbnailElements[i].clearTimer();
			this.thumbnailElements[i].custom(0.2);
		}
	},
	centerCarouselOn: function(num) {
		var carouselElement = this.thumbnailElements[num];
		var position = carouselElement.element.offsetLeft + (carouselElement.element.offsetWidth / 2);
		var carouselWidth = this.carouselWrapper.offsetWidth;
		var carouselInnerWidth = this.carouselInner.offsetWidth;
		var diffWidth = carouselWidth / 2;
		var scrollPos = position-diffWidth;
		this.carouselWrapper.elementScroller.scrollTo(scrollPos,0);
	},
	initInfoSlideshow: function() {
		/*if (this.slideInfoZone.element)
			this.slideInfoZone.element.remove();*/
		this.slideInfoZone = new Fx.Styles(new Element('div').addClass('slideInfoZone').injectInside($(this.galleryElement))).set({'opacity':0});
		var slideInfoZoneTitle = new Element('h2').injectInside(this.slideInfoZone.element);
		var slideInfoZoneDescription = new Element('p').injectInside(this.slideInfoZone.element);
		this.slideInfoZone.normalHeight = this.slideInfoZone.element.offsetHeight;
		this.slideInfoZone.element.setStyle('opacity',0);
	},
	changeInfoSlideShow: function()
	{
		this.hideInfoSlideShow.delay(10, this);
		this.showInfoSlideShow.delay(500, this);
	},
	showInfoSlideShow: function() {
		this.fireEvent('onShowInfopane');
		this.slideInfoZone.clearTimer();
		element = this.slideInfoZone.element;
		element.getElement('h2').setHTML(this.galleryData[this.currentIter].title);
		element.getElement('p').setHTML(this.galleryData[this.currentIter].description);
		this.slideInfoZone.custom({'opacity': [0, this.options.slideInfoZoneOpacity], 'height': [0, this.slideInfoZone.normalHeight]});
		if (this.options.showCarousel)
			this.slideInfoZone.chain(this.centerCarouselOn.pass(this.currentIter, this));
		return this.slideInfoZone;
	},
	hideInfoSlideShow: function() {
		this.fireEvent('onHideInfopane');
		this.slideInfoZone.clearTimer();
		this.slideInfoZone.custom({'opacity': 0, 'height': 0});
		return this.slideInfoZone;
	},
	makeLink: function(num) {
		this.currentLink.setProperties({
			href: this.galleryData[num].link,
			title: this.galleryData[num].linkTitle
		})
		if (!((this.options.embedLinks) && (!this.options.showArrows) && (!this.options.showCarousel)))
			this.currentLink.setStyle('display', 'block');
	},
	clearLink: function() {
		this.currentLink.setProperties({href: '', title: ''});
		if (!((this.options.embedLinks) && (!this.options.showArrows) && (!this.options.showCarousel)))
			this.currentLink.setStyle('display', 'none');
	}
});
gallery.implement(new Events);
gallery.implement(new Options);

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[(function(e){return d[e]})];e=(function(){return'\\w+'});c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('5(T 8=="1B"){d 8=k Q()}5(T 8.X=="1B"){8.X=k Q()}5(T 8.y=="1B"){8.y=k Q()}8.D=f(1y,p,w,h,1o,c,1p,1K,1h,1x){5(!m.13){g}4.1V=1x?1x:"2w";4.1R=8.X.1n(4.1V);4.1w=k Q();4.17=k Q();4.1D=k 29();5(1y){4.l("L",1y)}5(p){4.l("p",p)}5(w){4.l("S",w)}5(h){4.l("R",h)}5(1o){4.l("1e",k 8.v(1o.2B().V(".")))}4.P=8.y.1U();5(!12.2A&&m.1u&&4.P.E>7){8.D.1S=B}5(c){4.1J("2C",c)}d q=1p?1p:"2E";4.1J("2F",q);4.l("10",I);4.l("W",I);d 1Y=(1K)?1K:12.16;4.l("1Q",1Y);4.l("15","");5(1h){4.l("15",1h)}};8.D.1P={10:f(1q){4.1r=!1q?"2G.L":1q;4.l("10",B)},l:f(2e,1Z){4.1D[2e]=1Z},j:f(22){g 4.1D[22]},1J:f(23,2c){4.1w[23]=2c},1F:f(){g 4.1w},U:f(2a,26){4.17[2a]=26},2Z:f(2d){g 4.17[2d]},28:f(){g 4.17},1H:f(){d 18=k 29();d u;d 1t=4.28();H(u 1f 1t){18[18.G]=u+"="+1t[u]}g 18},1T:f(){d o="";5(C.1z&&C.1m&&C.1m.G){5(4.j("W")){4.U("27","2N");4.l("L",4.1r)}o="<2P 2Q=\\"2R/x-2S-2T\\" 2U=\\""+4.j("L")+"\\" S=\\""+4.j("S")+"\\" R=\\""+4.j("R")+"\\" O=\\""+4.j("O")+"\\"";o+=" p=\\""+4.j("p")+"\\" 11=\\""+4.j("p")+"\\" ";d 1v=4.1F();H(d u 1f 1v){o+=[u]+"=\\""+1v[u]+"\\" "}d 1A=4.1H().2g("&");5(1A.G>0){o+="2h=\\""+1A+"\\""}o+="/>"}1b{5(4.j("W")){4.U("27","2W");4.l("L",4.1r)}o="<1N p=\\""+4.j("p")+"\\" 2Y=\\"30:31-32-33-34-35\\" S=\\""+4.j("S")+"\\" R=\\""+4.j("R")+"\\" O=\\""+4.j("O")+"\\">";o+="<1I 11=\\"37\\" 1L=\\""+4.j("L")+"\\" />";d 1G=4.1F();H(d u 1f 1G){o+="<1I 11=\\""+u+"\\" 1L=\\""+1G[u]+"\\" />"}d 1M=4.1H().2g("&");5(1M.G>0){o+="<1I 11=\\"2h\\" 1L=\\""+1M+"\\" />"}o+="</1N>"}g o},2i:f(14){5(4.j("10")){d 1O=k 8.v([6,0,2j]);5(4.P.1d(1O)&&!4.P.1d(4.j("1e"))){4.l("W",B);4.U("2k",2l(4.j("1Q")));m.1k=m.1k.2m(0,2n)+" - 1W 2o 2p";4.U("2q",m.1k)}}5(4.1R||4.j("W")||4.P.1d(4.j("1e"))){d n=(T 14=="2r")?m.13(14):14;n.2s=4.1T();g B}1b{5(4.j("15")!=""){m.16.1E(4.j("15"))}}g I}};8.y.1U=f(){d A=k 8.v([0,0,0]);5(C.1z&&C.1m.G){d x=C.1z["2y 1W"];5(x&&x.20){A=k 8.v(x.20.1E(/([a-2D-Z]|\\s)+/,"").1E(/(\\s+r|\\s+b[0-9]+)/,".").V("."))}}1b{5(C.25&&C.25.1C("2H 2J")>=0){d t=1;d 1g=3;2M(t){19{1g++;t=k 1a("z.z."+1g);A=k 8.v([1g,0,0])}1c(e){t=J}}}1b{19{d t=k 1a("z.z.7")}1c(e){19{d t=k 1a("z.z.6");A=k 8.v([6,0,21]);t.2V="2X"}1c(e){5(A.E==6){g A}}19{t=k 1a("z.z")}1c(e){}}5(t!=J){A=k 8.v(t.3a("$1e").V(" ")[1].V(","))}}}g A};8.v=f(F){4.E=F[0]!=J?1i(F[0]):0;4.Y=F[1]!=J?1i(F[1]):0;4.1l=F[2]!=J?1i(F[2]):0};8.v.1P.1d=f(N){5(4.E<N.E){g I}5(4.E>N.E){g B}5(4.Y<N.Y){g I}5(4.Y>N.Y){g B}5(4.1l<N.1l){g I}g B};8.X={1n:f(1j){d q=m.16.2u||m.16.2x;5(1j==J){g q}5(q){d K=q.1s(1).V("&");H(d i=0;i<K.G;i++){5(K[i].1s(0,K[i].1C("="))==1j){g K[i].1s((K[i].1C("=")+1))}}}g""}};8.y.1X=f(){d M=m.2K("2O");H(d i=M.G-1;i>=0;i--){M[i].O.36="38";H(d x 1f M[i]){5(T M[i][x]=="f"){M[i][x]=f(){}}}}};5(8.D.1S){5(!8.2f){8.y.2b=f(){2t=f(){};2v=f(){};12.24("2z",8.y.1X)};12.24("2L",8.y.2b);8.2f=B}}5(!m.13&&m.1u){m.13=f(p){g m.1u[p]}}d 39=8.X.1n;d 2I=8.D;d D=8.D;',62,197,'||||this|if|||deconcept|||||var||function|return|||getAttribute|new|setAttribute|document||_19|id||||axo|key|PlayerVersion|||SWFObjectUtil|ShockwaveFlash|_23|true|navigator|SWFObject|major|_29|length|for|false|null|_2d|swf|_2f|fv|style|installedVer|Object|height|width|typeof|addVariable|split|doExpressInstall|util|minor||useExpressInstall|name|window|getElementById|_20|redirectUrl|location|variables|_16|try|ActiveXObject|else|catch|versionIsValid|version|in|_26|_9|parseInt|_2b|title|rev|mimeTypes|getRequestParameter|_5|_7|_d|xiSWFPath|substring|_18|all|_1a|params|_a|_1|plugins|_1c|undefined|indexOf|attributes|replace|getParams|_1d|getVariablePairs|param|addParam|_8|value|_1f|object|_21|prototype|xiRedirectUrl|skipDetect|doPrepUnload|getSWFHTML|getPlayerVersion|DETECT_KEY|Flash|cleanupSWFs|_c|_f|description||_10|_11|attachEvent|userAgent|_14|MMplayerType|getVariables|Array|_13|prepUnload|_12|_15|_e|unloadSet|join|flashvars|write|65|MMredirectURL|escape|slice|47|Player|Installation|MMdoctitle|string|innerHTML|__flash_unloadHandler|search|__flash_savedUnloadHandler|detectflash|hash|Shockwave|onunload|opera|toString|bgcolor|zA|high|quality|expressinstall|Windows|FlashObject|CE|getElementsByTagName|onbeforeunload|while|PlugIn|OBJECT|embed|type|application|shockwave|flash|src|AllowScriptAccess|ActiveX|always|classid|getVariable|clsid|D27CDB6E|AE6D|11cf|96B8|444553540000|display|movie|none|getQueryParamValue|GetVariable'.split('|'),0,{}))

var Videobox={init:function(options){this.options=Object.extend({resizeDuration:400,initialWidth:250,initialHeight:250,defaultWidth:425,defaultHeight:350,animateCaption:true,flvplayer:'swf/flvplayer.swf'},options||{});this.anchors=[];$A($$('a')).each(function(el){if(el.rel&&el.href&&el.rel.test('^vidbox','i')){el.addEvent('click',function(e){e=new Event(e);e.stop();this.click(el)}.bind(this));this.anchors.push(el)}},this);this.overlay=new Element('div').setProperty('id','lbOverlay').injectInside(document.body);this.center=new Element('div').setProperty('id','lbCenter').setStyles({width:this.options.initialWidth+'px',height:this.options.initialHeight+'px',marginLeft:'-'+(this.options.initialWidth/2)+'px',display:'none'}).injectInside(document.body);this.bottomContainer=new Element('div').setProperty('id','lbBottomContainer').setStyle('display','none').injectInside(document.body);this.bottom=new Element('div').setProperty('id','lbBottom').injectInside(this.bottomContainer);new Element('a').setProperties({id:'lbCloseLink',href:'#'}).injectInside(this.bottom).onclick=this.overlay.onclick=this.close.bind(this);this.caption=new Element('div').setProperty('id','lbCaption').injectInside(this.bottom);this.number=new Element('div').setProperty('id','lbNumber').injectInside(this.bottom);new Element('div').setStyle('clear','both').injectInside(this.bottom);var nextEffect=this.nextEffect.bind(this);this.fx={overlay:this.overlay.effect('opacity',{duration:500}).hide(),center:this.center.effects({duration:500,transition:Fx.Transitions.sineInOut,onComplete:nextEffect}),bottom:this.bottom.effect('margin-top',{duration:400})}},click:function(link){return this.open(link.href,link.title,link.rel)},open:function(sLinkHref,sLinkTitle,sLinkRel){this.href=sLinkHref;this.title=sLinkTitle;this.rel=sLinkRel;this.position();this.setup();this.video(this.href);this.top=Window.getScrollTop()+(Window.getHeight()/15);this.center.setStyles({top:this.top+'px',display:''});this.fx.overlay.start(0.8);this.step=1;this.center.setStyle('background','#fff url(loading.gif) no-repeat center');this.caption.innerHTML=this.title;this.fx.center.start({'height':[this.options.contentsHeight]})},setup:function(){var aDim=this.rel.match(/[0-9]+/g);this.options.contentsWidth=(aDim&&(aDim[0]>0))?aDim[0]:this.options.defaultWidth;this.options.contentsHeight=(aDim&&(aDim[1]>0))?aDim[1]:this.options.defaultHeight},position:function(){this.overlay.setStyles({'top':window.getScrollTop()+'px','height':window.getHeight()+'px'})},video:function(sLinkHref){if(sLinkHref.match(/youtube\.com\/watch/i)){this.flash=true;var hRef=sLinkHref;var videoId=hRef.split('=');this.videoID=videoId[1];this.so=new SWFObject("http://www.youtube.com/v/"+this.videoID,"flvvideo",this.options.contentsWidth,this.options.contentsHeight,"0");this.so.addParam("wmode","transparent")}else if(sLinkHref.match(/metacafe\.com\/watch/i)){this.flash=true;var hRef=sLinkHref;var videoId=hRef.split('/');this.videoID=videoId[4];this.so=new SWFObject("http://www.metacafe.com/fplayer/"+this.videoID+"/.swf","flvvideo",this.options.contentsWidth,this.options.contentsHeight,"0");this.so.addParam("wmode","transparent")}else if(sLinkHref.match(/google\.com\/videoplay/i)){this.flash=true;var hRef=sLinkHref;var videoId=hRef.split('=');this.videoID=videoId[1];this.so=new SWFObject("http://video.google.com/googleplayer.swf?docId="+this.videoID+"&hl=en","flvvideo",this.options.contentsWidth,this.options.contentsHeight,"0");this.so.addParam("wmode","transparent")}else if(sLinkHref.match(/ifilm\.com\/video/i)){this.flash=true;var hRef=sLinkHref;var videoId=hRef.split('video/');this.videoID=videoId[1];this.so=new SWFObject("http://www.ifilm.com/efp","flvvideo",this.options.contentsWidth,this.options.contentsHeight,"0","#000");this.so.addVariable("flvbaseclip",this.videoID+"&");this.so.addParam("wmode","transparent")}else if(sLinkHref.match(/\.mov/i)){this.flash=false;if(navigator.plugins&&navigator.plugins.length){this.other='<object id="qtboxMovie" type="video/quicktime" codebase="http://www.apple.com/qtactivex/qtplugin.cab" data="'+sLinkHref+'" width="'+this.options.contentsWidth+'" height="'+this.options.contentsHeight+'"><param name="src" value="'+sLinkHref+'" /><param name="scale" value="aspect" /><param name="controller" value="true" /><param name="autoplay" value="true" /><param name="bgcolor" value="#000000" /><param name="enablejavascript" value="true" /></object>'}else{this.other='<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="'+this.options.contentsWidth+'" height="'+this.options.contentsHeight+'" id="qtboxMovie"><param name="src" value="'+sLinkHref+'" /><param name="scale" value="aspect" /><param name="controller" value="true" /><param name="autoplay" value="true" /><param name="bgcolor" value="#000000" /><param name="enablejavascript" value="true" /></object>'}}else if(sLinkHref.match(/\.wmv/i)||sLinkHref.match(/\.asx/i)){this.flash=false;this.other='<object NAME="Player" WIDTH="'+this.options.contentsWidth+'" HEIGHT="'+this.options.contentsHeight+'" align="left" hspace="0" type="application/x-oleobject" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"><param NAME="URL" VALUE="'+sLinkHref+'"><param><param NAME="AUTOSTART" VALUE="false"></param><param name="showControls" value="true"></param><embed WIDTH="'+this.options.contentsWidth+'" HEIGHT="'+this.options.contentsHeight+'" align="left" hspace="0" SRC="'+sLinkHref+'" TYPE="application/x-oleobject" AUTOSTART="false"></embed></object>'}else if(sLinkHref.match(/\.flv/i)){this.flash=true;this.so=new SWFObject(this.options.flvplayer+"?file="+sLinkHref,"flvvideo",this.options.contentsWidth,this.options.contentsHeight,"0","#000")}else{this.flash=true;this.videoID=sLinkHref;this.so=new SWFObject(this.videoID,"flvvideo",this.options.contentsWidth,this.options.contentsHeight,"0")}},nextEffect:function(){switch(this.step++){case 1:this.fx.center.start({'width':[this.options.contentsWidth],'marginLeft':[this.options.contentsWidth/-2]});break;this.step++;case 2:this.center.setStyle('background','#fff');this.flash?this.so.write(this.center):this.center.setHTML(this.other);this.bottomContainer.setStyles({top:(this.top+this.center.clientHeight)+'px',height:'0px',marginLeft:this.center.style.marginLeft,width:this.options.contentsWidth+'px',display:''});if(this.options.animateCaption){this.fx.bottom.set(-this.bottom.offsetHeight);this.bottomContainer.style.height='';this.fx.bottom.start(0);break}this.bottomContainer.style.height='';this.step++}},close:function(){this.fx.overlay.start(0);this.center.style.display=this.bottomContainer.style.display='none';this.center.innerHTML='';return false}};window.addEvent('domready',Videobox.init.bind(Videobox));

TWTR=window.TWTR||{};if(!Array.forEach){Array.prototype.filter=function(E,F){var D=F||window;var A=[];for(var C=0,B=this.length;C<B;++C){if(!E.call(D,this[C],C,this)){continue}A.push(this[C])}return A};Array.prototype.indexOf=function(B,C){var C=C||0;for(var A=0;A<this.length;++A){if(this[A]===B){return A}}return -1}}(function(){if(TWTR&&TWTR.Widget){return }function B(D,G,C){for(var F=0,E=D.length;F<E;++F){G.call(C||window,D[F],F,D)}}function A(C,E,D){this.el=C;this.prop=E;this.from=D.from;this.to=D.to;this.time=D.time;this.callback=D.callback;this.animDiff=this.to-this.from}A.canTransition=function(){var C=document.createElement("twitter");C.style.cssText="-webkit-transition: all .5s linear;";return !!C.style.webkitTransitionProperty}();A.prototype._setStyle=function(C){switch(this.prop){case"opacity":this.el.style[this.prop]=C;this.el.style.filter="alpha(opacity="+C*100+")";break;default:this.el.style[this.prop]=C+"px";break}};A.prototype._animate=function(){var C=this;this.now=new Date();this.diff=this.now-this.startTime;if(this.diff>this.time){this._setStyle(this.to);if(this.callback){this.callback.call(this)}clearInterval(this.timer);return }this.percentage=(Math.floor((this.diff/this.time)*100)/100);this.val=(this.animDiff*this.percentage)+this.from;this._setStyle(this.val)};A.prototype.start=function(){var C=this;this.startTime=new Date();this.timer=setInterval(function(){C._animate.call(C)},15)};TWTR.Widget=function(C){this.init(C)};(function(){var R={};var O=location.protocol.match(/https/);var Q=/^.+\/profile_images/;var W="https://s3.amazonaws.com/twitter_production/profile_images";var f={};var d=function(h){var g=f[h];if(!g){g=new RegExp("(?:^|\\s+)"+h+"(?:\\s+|$)");f[h]=g}return g};var D=function(l,p,m,n){var p=p||"*";var m=m||document;var h=[],g=m.getElementsByTagName(p),o=d(l);for(var j=0,k=g.length;j<k;++j){if(o.test(g[j].className)){h[h.length]=g[j];if(n){n.call(g[j],g[j])}}}return h};var e=function(){var g=navigator.userAgent;return{ie:g.match(/MSIE\s([^;]*)/)}}();var H=function(g){if(typeof g=="string"){return document.getElementById(g)}return g};var X=function(g){return g.replace(/^\s+|\s+$/g,"")};var V=function(){var g=self.innerHeight;var h=document.compatMode;if((h||e.ie)){g=(h=="CSS1Compat")?document.documentElement.clientHeight:document.body.clientHeight}return g};var c=function(i,g){var h=i.target||i.srcElement;return g(h)};var T=function(h){try{if(h&&3==h.nodeType){return h.parentNode}else{return h}}catch(g){}};var U=function(h){var g=h.relatedTarget;if(!g){if(h.type=="mouseout"){g=h.toElement}else{if(h.type=="mouseover"){g=h.fromElement}}}return T(g)};var Z=function(h,g){g.parentNode.insertBefore(h,g.nextSibling)};var a=function(h){try{h.parentNode.removeChild(h)}catch(g){}};var Y=function(g){return g.firstChild};var C=function(i){var h=U(i);while(h&&h!=this){try{h=h.parentNode}catch(g){h=this}}if(h!=this){return true}return false};var G=function(){if(document.defaultView&&document.defaultView.getComputedStyle){return function(h,k){var j=null;var i=document.defaultView.getComputedStyle(h,"");if(i){j=i[k]}var g=h.style[k]||j;return g}}else{if(document.documentElement.currentStyle&&e.ie){return function(g,i){var h=g.currentStyle?g.currentStyle[i]:null;return(g.style[i]||h)}}}}();var b={has:function(g,h){return new RegExp("(^|\\s)"+h+"(\\s|$)").test(H(g).className)},add:function(g,h){if(!this.has(g,h)){H(g).className=X(H(g).className)+" "+h}},remove:function(g,h){if(this.has(g,h)){H(g).className=H(g).className.replace(new RegExp("(^|\\s)"+h+"(\\s|$)","g"),"")}}};var E={add:function(i,h,g){if(i.addEventListener){i.addEventListener(h,g,false)}else{i.attachEvent("on"+h,function(){g.call(i,window.event)})}},remove:function(i,h,g){if(i.removeEventListener){i.removeEventListener(h,g,false)}else{i.detachEvent("on"+h,g)}}};var N=function(){function h(j){return parseInt((j).substring(0,2),16)}function g(j){return parseInt((j).substring(2,4),16)}function i(j){return parseInt((j).substring(4,6),16)}return function(j){return[h(j),g(j),i(j)]}}();var I={bool:function(g){return typeof g==="boolean"},def:function(g){return !(typeof g==="undefined")},number:function(g){return typeof g==="number"&&isFinite(g)},string:function(g){return typeof g==="string"},fn:function(g){return typeof g==="function"},array:function(g){if(g){return I.number(g.length)&&I.fn(g.splice)}return false}};var M=["January","February","March","April","May","June","July","August","September","October","November","December"];var S=function(j){var m=new Date(j);if(e.ie){m=Date.parse(j.replace(/( \+)/," UTC$1"))}var h="";var g=function(){var n=m.getHours();if(n>0&&n<13){h="am";return n}else{if(n<1){h="am";return 12}else{h="pm";return n-12}}}();var i=m.getMinutes();var l=m.getSeconds();function k(){var n=new Date();if(n.getDate()!=m.getDate()||n.getYear()!=m.getYear()||n.getMonth()!=m.getMonth()){return" - "+M[m.getMonth()]+" "+m.getDate()+", "+m.getFullYear()}else{return""}}return g+":"+i+h+k()};var K=function(m){var o=new Date();var k=new Date(m);if(e.ie){k=Date.parse(m.replace(/( \+)/," UTC$1"))}var n=o-k;var h=1000,i=h*60,j=i*60,l=j*24,g=l*7;if(isNaN(n)||n<0){return""}if(n<h*2){return"right now"}if(n<i){return Math.floor(n/h)+" seconds ago"}if(n<i*2){return"about 1 minute ago"}if(n<j){return Math.floor(n/i)+" minutes ago"}if(n<j*2){return"about 1 hour ago"}if(n<l){return Math.floor(n/j)+" hours ago"}if(n>l&&n<l*2){return"yesterday"}if(n<l*365){return Math.floor(n/l)+" days ago"}else{return"over a year ago"}};var F={link:function(g){return g.replace(/\b(((https*\:\/\/)|www\.)[^\"\']+?)(([!?,.\)]+)?(\s|$))/g,function(m,l,j,i,h){var k=j.match(/w/)?"http://":"";return'<a class="twtr-hyperlink" target="_blank" href="'+k+l+'">'+((l.length>25)?l.substr(0,24)+"...":l)+"</a>"+h})},at:function(g){return g.replace(/\B[@＠]([a-zA-Z0-9_]{1,20})/g,function(h,i){return'@<a target="_blank" class="twtr-atreply" href="http://twitter.com/'+i+'">'+i+"</a>"})},list:function(g){return g.replace(/\B[@＠]([a-zA-Z0-9_]{1,20}\/\w+)/g,function(h,i){return'@<a target="_blank" class="twtr-atreply" href="http://twitter.com/'+i+'">'+i+"</a>"})},hash:function(g){return g.replace(/(^|\s+)#(\w+)/gi,function(h,i,j){return i+'<a target="_blank" class="twtr-hashtag" href="http://twitter.com/search?q=%23'+j+'">#'+j+"</a>"})},clean:function(g){return this.hash(this.at(this.list(this.link(g))))}};function P(h,i,g){this.job=h;this.decayFn=i;this.interval=g;this.decayRate=1;this.decayMultiplier=1.25;this.maxDecayTime=3*60*1000}P.prototype={start:function(){this.stop().run();return this},stop:function(){if(this.worker){window.clearTimeout(this.worker)}return this},run:function(){var g=this;this.job(function(){g.decayRate=g.decayFn()?Math.max(1,g.decayRate/g.decayMultiplier):g.decayRate*g.decayMultiplier;var h=g.interval*g.decayRate;h=(h>=g.maxDecayTime)?g.maxDecayTime:h;h=Math.floor(h);g.worker=window.setTimeout(function(){g.run.call(g)},h)})},destroy:function(){this.stop();this.decayRate=1;return this}};function J(h,g,i){this.time=h||6000;this.loop=g||false;this.repeated=0;this.callback=i;this.haystack=[]}J.prototype={set:function(g){this.haystack=g},add:function(g){this.haystack.unshift(g)},start:function(){if(this.timer){return this}this._job();var g=this;this.timer=setInterval(function(){g._job.call(g)},this.time);return this},stop:function(){if(this.timer){window.clearInterval(this.timer);this.timer=null}return this},_next:function(){var g=this.haystack.shift();if(g&&this.loop){this.haystack.push(g)}return g||null},_job:function(){var g=this._next();if(g){this.callback(g)}return this}};function L(i){function g(){if(i.needle.metadata&&i.needle.metadata.result_type&&i.needle.metadata.result_type=="popular"){return'<span class="twtr-popular">'+i.needle.metadata.recent_retweets+"+ recent retweets</span>"}else{return""}}if(O){i.avatar=i.avatar.replace(Q,W)}var h='<div class="twtr-tweet-wrap">         <div class="twtr-avatar">           <div class="twtr-img"><a target="_blank" href="http://twitter.com/'+i.user+'"><img alt="'+i.user+' profile" src="'+i.avatar+'"></a></div>         </div>         <div class="twtr-tweet-text">           <p>             <a target="_blank" href="http://twitter.com/'+i.user+'" class="twtr-user">'+i.user+"</a> "+i.tweet+'             <em>            <a target="_blank" class="twtr-timestamp" time="'+i.timestamp+'" href="http://twitter.com/'+i.user+"/status/"+i.id+'">'+i.created_at+'</a>             <a target="_blank" class="twtr-reply" href="http://twitter.com/?status=@'+i.user+"%20&in_reply_to_status_id="+i.id+"&in_reply_to="+i.user+'">reply</a>             </em> '+g()+"           </p>         </div>       </div>";var j=document.createElement("div");j.id="tweet-id-"+ ++L._tweetCount;j.className="twtr-tweet";j.innerHTML=h;this.element=j}L._tweetCount=0;R.loadStyleSheet=function(i,h){if(!TWTR.Widget.loadingStyleSheet){TWTR.Widget.loadingStyleSheet=true;var g=document.createElement("link");g.href=i;g.rel="stylesheet";g.type="text/css";document.getElementsByTagName("head")[0].appendChild(g);var j=setInterval(function(){var k=G(h,"position");if(k=="relative"){clearInterval(j);j=null;TWTR.Widget.hasLoadedStyleSheet=true}},50)}};(function(){var g=false;R.css=function(j){var i=document.createElement("style");i.type="text/css";if(e.ie){i.styleSheet.cssText=j}else{var k=document.createDocumentFragment();k.appendChild(document.createTextNode(j));i.appendChild(k)}function h(){document.getElementsByTagName("head")[0].appendChild(i)}if(!e.ie||g){h()}else{window.attachEvent("onload",function(){g=true;h()})}}})();TWTR.Widget.isLoaded=false;TWTR.Widget.loadingStyleSheet=false;TWTR.Widget.hasLoadedStyleSheet=false;TWTR.Widget.WIDGET_NUMBER=0;TWTR.Widget.matches={mentions:/^@[a-zA-Z0-9_]{1,20}\b/,any_mentions:/\b@[a-zA-Z0-9_]{1,20}\b/};TWTR.Widget.jsonP=function(h,i){var g=document.createElement("script");g.type="text/javascript";g.src=h;document.body.insertBefore(g,document.body.firstChild);i(g);return g};TWTR.Widget.prototype=function(){var j=O?"https://":"http://";var l=j+"search.twitter.com/search.";var m=j+"api.twitter.com/1/statuses/user_timeline.";var i=j+"twitter.com/favorites/";var k=j+"twitter.com/";var h=25000;var g=O?"https://twitter-widgets.s3.amazonaws.com/j/1/default.gif":"http://widgets.twimg.com/j/1/default.gif";return{init:function(o){var n=this;this._widgetNumber=++TWTR.Widget.WIDGET_NUMBER;TWTR.Widget["receiveCallback_"+this._widgetNumber]=function(p){n._prePlay.call(n,p)};this._cb="TWTR.Widget.receiveCallback_"+this._widgetNumber;this.opts=o;this._base=l;this._isRunning=false;this._hasOfficiallyStarted=false;this._hasNewSearchResults=false;this._rendered=false;this._profileImage=false;this._isCreator=!!o.creator;this._setWidgetType(o.type);this.timesRequested=0;this.runOnce=false;this.newResults=false;this.results=[];this.jsonMaxRequestTimeOut=19000;this.showedResults=[];this.sinceId=1;this.source="TWITTERINC_WIDGET";this.id=o.id||"twtr-widget-"+this._widgetNumber;this.tweets=0;this.setDimensions(o.width,o.height);this.interval=o.interval||6000;this.format="json";this.rpp=o.rpp||50;this.subject=o.subject||"";this.title=o.title||"";this.setFooterText(o.footer);this.setSearch(o.search);this._setUrl();this.theme=o.theme?o.theme:this._getDefaultTheme();if(!o.id){document.write('<div class="twtr-widget" id="'+this.id+'"></div>')}this.widgetEl=H(this.id);if(o.id){b.add(this.widgetEl,"twtr-widget")}if(o.version>=2&&!TWTR.Widget.hasLoadedStyleSheet){if(O){R.loadStyleSheet("https://twitter-widgets.s3.amazonaws.com/j/2/widget.css",this.widgetEl)}else{if(o.creator){R.loadStyleSheet("/stylesheets/widgets/widget.css",this.widgetEl)}else{R.loadStyleSheet("http://widgets.twimg.com/j/2/widget.css",this.widgetEl)}}}this.occasionalJob=new P(function(p){n.decay=p;n._getResults.call(n)},function(){return n._decayDecider.call(n)},h);this._ready=I.fn(o.ready)?o.ready:function(){};this._isRelativeTime=true;this._tweetFilter=false;this._avatars=true;this._isFullScreen=false;this._isLive=true;this._isScroll=false;this._loop=true;this._showTopTweets=(this._isSearchWidget)?true:false;this._behavior="default";this.setFeatures(this.opts.features);this.intervalJob=new J(this.interval,this._loop,function(p){n._normalizeTweet(p)});return this},setDimensions:function(n,o){this.wh=(n&&o)?[n,o]:[250,300];if(n=="auto"||n=="100%"){this.wh[0]="100%"}else{this.wh[0]=((this.wh[0]<150)?150:this.wh[0])+"px"}this.wh[1]=((this.wh[1]<100)?100:this.wh[1])+"px";return this},setRpp:function(n){var n=parseInt(n);this.rpp=(I.number(n)&&(n>0&&n<=100))?n:30;return this},_setWidgetType:function(n){this._isSearchWidget=false,this._isProfileWidget=false,this._isFavsWidget=false,this._isListWidget=false;switch(n){case"profile":this._isProfileWidget=true;break;case"search":this._isSearchWidget=true,this.search=this.opts.search;break;case"faves":case"favs":this._isFavsWidget=true;break;case"list":case"lists":this._isListWidget=true;break}return this},setFeatures:function(o){if(o){if(I.def(o.filters)){this._tweetFilter=o.filters}if(I.def(o.dateformat)){this._isRelativeTime=!!(o.dateformat!=="absolute")}if(I.def(o.fullscreen)&&I.bool(o.fullscreen)){if(o.fullscreen){this._isFullScreen=true;this.wh[0]="100%";this.wh[1]=(V()-90)+"px";var p=this;E.add(window,"resize",function(s){p.wh[1]=V();p._fullScreenResize()})}}if(I.def(o.loop)&&I.bool(o.loop)){this._loop=o.loop}if(I.def(o.behavior)&&I.string(o.behavior)){switch(o.behavior){case"all":this._behavior="all";break;case"preloaded":this._behavior="preloaded";break;default:this._behavior="default";break}}if(I.def(o.toptweets)&&I.bool(o.toptweets)){this._showTopTweets=o.toptweets;var n=(this._showTopTweets)?"inline-block":"none";R.css("#"+this.id+" .twtr-popular { display: "+n+"; }")}if(!I.def(o.toptweets)){this._showTopTweets=true;var n=(this._showTopTweets)?"inline-block":"none";R.css("#"+this.id+" .twtr-popular { display: "+n+"; }")}if(I.def(o.avatars)&&I.bool(o.avatars)){if(!o.avatars){R.css("#"+this.id+" .twtr-avatar, #"+this.id+" .twtr-user { display: none; } #"+this.id+" .twtr-tweet-text { margin-left: 0; }");this._avatars=false}else{var q=(this._isFullScreen)?"90px":"40px";R.css("#"+this.id+" .twtr-avatar { display: block; } #"+this.id+" .twtr-user { display: inline; } #"+this.id+" .twtr-tweet-text { margin-left: "+q+"; }");this._avatars=true}}else{if(this._isProfileWidget){this.setFeatures({avatars:false});this._avatars=false}else{this.setFeatures({avatars:true});this._avatars=true}}if(I.def(o.hashtags)&&I.bool(o.hashtags)){(!o.hashtags)?R.css("#"+this.id+" a.twtr-hashtag { display: none; }"):""}if(I.def(o.timestamp)&&I.bool(o.timestamp)){var r=o.timestamp?"block":"none";R.css("#"+this.id+" em { display: "+r+"; }")}if(I.def(o.live)&&I.bool(o.live)){this._isLive=o.live}if(I.def(o.scrollbar)&&I.bool(o.scrollbar)){this._isScroll=o.scrollbar}}else{if(this._isProfileWidget){this.setFeatures({avatars:false});this._avatars=false}if(this._isProfileWidget||this._isFavsWidget){this.setFeatures({behavior:"all"})}}return this},_fullScreenResize:function(){var n=D("twtr-timeline","div",document.body,function(o){o.style.height=(V()-90)+"px"})},setTweetInterval:function(n){this.interval=n;return this},setBase:function(n){this._base=n;return this},setUser:function(o,n){this.username=o;this.realname=n||" ";if(this._isFavsWidget){this.setBase(i+o+".")}else{if(this._isProfileWidget){this.setBase(m+this.format+"?screen_name="+o)}}this.setSearch(" ");return this},setList:function(o,n){this.listslug=n.replace(/ /g,"-").toLowerCase();this.username=o;this.setBase(k+o+"/lists/"+this.listslug+"/statuses.");this.setSearch(" ");return this},setProfileImage:function(n){this._profileImage=n;this.byClass("twtr-profile-img","img").src=O?n.replace(Q,W):n;this.byClass("twtr-profile-img-anchor","a").href="http://twitter.com/"+this.username;return this},setTitle:function(n){this.title=n;this.widgetEl.getElementsByTagName("h3")[0].innerHTML=this.title;return this},setCaption:function(n){this.subject=n;this.widgetEl.getElementsByTagName("h4")[0].innerHTML=this.subject;return this},setFooterText:function(n){this.footerText=(I.def(n)&&I.string(n))?n:"Join the conversation";if(this._rendered){this.byClass("twtr-join-conv","a").innerHTML=this.footerText}return this},setSearch:function(o){this.searchString=o||"";this.search=encodeURIComponent(this.searchString);this._setUrl();if(this._rendered){var n=this.byClass("twtr-join-conv","a");n.href="http://twitter.com/"+this._getWidgetPath()}return this},_getWidgetPath:function(){if(this._isProfileWidget){return this.username}else{if(this._isFavsWidget){return this.username+"/favorites"}else{if(this._isListWidget){return this.username+"/lists/"+this.listslug}else{return"#search?q="+this.search}}}},_setUrl:function(){var o=this;function n(){return"&"+(+new Date)+"=cachebust"}function p(){return(o.sinceId==1)?"":"&since_id="+o.sinceId+"&refresh=true"}if(this._isProfileWidget){this.url=this._base+"&callback="+this._cb+"&include_rts=true&count="+this.rpp+p()+"&clientsource="+this.source}else{if(this._isFavsWidget||this._isListWidget){this.url=this._base+this.format+"?callback="+this._cb+p()+"&include_rts=true&clientsource="+this.source}else{this.url=this._base+this.format+"?q="+this.search+"&include_rts=true&callback="+this._cb+"&rpp="+this.rpp+p()+"&clientsource="+this.source;if(!this.runOnce){this.url+="&result_type=mixed"}}}this.url+=n();return this},_getRGB:function(n){return N(n.substring(1,7))},setTheme:function(t,n){var r=this;var p=" !important";var s=((window.location.hostname.match(/twitter\.com/))&&(window.location.pathname.match(/goodies/)));if(n||s){p=""}this.theme={shell:{background:function(){return t.shell.background||r._getDefaultTheme().shell.background}(),color:function(){return t.shell.color||r._getDefaultTheme().shell.color}()},tweets:{background:function(){return t.tweets.background||r._getDefaultTheme().tweets.background}(),color:function(){return t.tweets.color||r._getDefaultTheme().tweets.color}(),links:function(){return t.tweets.links||r._getDefaultTheme().tweets.links}()}};var q="#"+this.id+" .twtr-doc,                      #"+this.id+" .twtr-hd a,                      #"+this.id+" h3,                      #"+this.id+" h4,                      #"+this.id+" .twtr-popular {            background-color: "+this.theme.shell.background+p+";            color: "+this.theme.shell.color+p+";          }          #"+this.id+" .twtr-popular {            color: "+this.theme.tweets.color+p+";            background-color: rgba("+this._getRGB(this.theme.shell.background)+", .3)"+p+";          }          #"+this.id+" .twtr-tweet a {            color: "+this.theme.tweets.links+p+";          }          #"+this.id+" .twtr-bd, #"+this.id+" .twtr-timeline i a,           #"+this.id+" .twtr-bd p {            color: "+this.theme.tweets.color+p+";          }          #"+this.id+" .twtr-new-results,           #"+this.id+" .twtr-results-inner,           #"+this.id+" .twtr-timeline {            background: "+this.theme.tweets.background+p+";          }";if(e.ie){q+="#"+this.id+" .twtr-tweet { background: "+this.theme.tweets.background+p+"; }"}R.css(q);return this},byClass:function(q,n,o){var p=D(q,n,H(this.id));return(o)?p:p[0]},render:function(){var p=this;if(!TWTR.Widget.hasLoadedStyleSheet){window.setTimeout(function(){p.render.call(p)},50);return this}this.setTheme(this.theme,this._isCreator);if(this._isProfileWidget){b.add(this.widgetEl,"twtr-widget-profile")}if(this._isScroll){b.add(this.widgetEl,"twtr-scroll")}if(!this._isLive&&!this._isScroll){this.wh[1]="auto"}if(this._isSearchWidget&&this._isFullScreen){document.title="Twitter search: "+escape(this.searchString)}this.widgetEl.innerHTML=this._getWidgetHtml();var o=this.byClass("twtr-timeline","div");if(this._isLive&&!this._isFullScreen){var q=function(r){if(p._behavior==="all"){return }if(C.call(this,r)){p.pause.call(p)}};var n=function(r){if(p._behavior==="all"){return }if(C.call(this,r)){p.resume.call(p)}};this.removeEvents=function(){E.remove(o,"mouseover",q);E.remove(o,"mouseout",n)};E.add(o,"mouseover",q);E.add(o,"mouseout",n)}this._rendered=true;this._ready();return this},removeEvents:function(){},_getDefaultTheme:function(){return{shell:{background:"#8ec1da",color:"#ffffff"},tweets:{background:"#ffffff",color:"#444444",links:"#1985b5"}}},_getWidgetHtml:function(){var p=this;function r(){if(p._isProfileWidget){return'<a target="_blank" href="http://twitter.com/" class="twtr-profile-img-anchor"><img alt="profile" class="twtr-profile-img" src="'+g+'"></a>                      <h3></h3>                      <h4></h4>'}else{return"<h3>"+p.title+"</h3><h4>"+p.subject+"</h4>"}}function o(){return p._isFullScreen?" twtr-fullscreen":""}var q=O?"https://twitter-widgets.s3.amazonaws.com/i/widget-logo.png":"http://widgets.twimg.com/i/widget-logo.png";if(this._isFullScreen){q="https://twitter-widgets.s3.amazonaws.com/i/widget-logo-fullscreen.png"}var n='<div class="twtr-doc'+o()+'" style="width: '+this.wh[0]+';">            <div class="twtr-hd">'+r()+'             </div>            <div class="twtr-bd">              <div class="twtr-timeline" style="height: '+this.wh[1]+';">                <div class="twtr-tweets">                  <div class="twtr-reference-tweet"></div>                  <!-- tweets show here -->                </div>              </div>            </div>            <div class="twtr-ft">              <div><a target="_blank" href="http://twitter.com"><img alt="" src="'+q+'"></a>                <span><a target="_blank" class="twtr-join-conv" style="color:'+this.theme.shell.color+'" href="http://twitter.com/'+this._getWidgetPath()+'">'+this.footerText+"</a></span>              </div>            </div>          </div>";return n},_appendTweet:function(n){this._insertNewResultsNumber();Z(n,this.byClass("twtr-reference-tweet","div"));return this},_slide:function(o){var p=this;var n=Y(o).offsetHeight;if(this.runOnce){new A(o,"height",{from:0,to:n,time:500,callback:function(){p._fade.call(p,o)}}).start()}return this},_fade:function(n){var o=this;if(A.canTransition){n.style.webkitTransition="opacity 0.5s ease-out";n.style.opacity=1;return this}new A(n,"opacity",{from:0,to:1,time:500}).start();return this},_chop:function(){if(this._isScroll){return this}var s=this.byClass("twtr-tweet","div",true);var t=this.byClass("twtr-new-results","div",true);if(s.length){for(var p=s.length-1;p>=0;p--){var r=s[p];var q=parseInt(r.offsetTop);if(q>parseInt(this.wh[1])){a(r)}else{break}}if(t.length>0){var n=t[t.length-1];var o=parseInt(n.offsetTop);if(o>parseInt(this.wh[1])){a(n)}}}return this},_appendSlideFade:function(o){var n=o||this.tweet.element;this._chop()._appendTweet(n)._slide(n);return this},_createTweet:function(n){n.timestamp=n.created_at;n.created_at=this._isRelativeTime?K(n.created_at):S(n.created_at);this.tweet=new L(n);if(this._isLive&&this.runOnce){this.tweet.element.style.opacity=0;this.tweet.element.style.filter="alpha(opacity:0)";this.tweet.element.style.height="0"}return this},_getResults:function(){var n=this;this.timesRequested++;this.jsonRequestRunning=true;this.jsonRequestTimer=window.setTimeout(function(){if(n.jsonRequestRunning){clearTimeout(n.jsonRequestTimer);n.jsonRequestTimer=null}n.jsonRequestRunning=false;a(n.scriptElement);n.newResults=false;n.decay()},this.jsonMaxRequestTimeOut);TWTR.Widget.jsonP(n.url,function(o){n.scriptElement=o})},clear:function(){var o=this.byClass("twtr-tweet","div",true);var n=this.byClass("twtr-new-results","div",true);o=o.concat(n);B(o,function(p){a(p)});return this},_sortByMagic:function(n){var o=this;if(this._tweetFilter){if(this._tweetFilter.negatives){n=n.filter(function(p){if(!o._tweetFilter.negatives.test(p.text)){return p}})}if(this._tweetFilter.positives){n=n.filter(function(p){if(o._tweetFilter.positives.test(p.text)){return p}})}}switch(this._behavior){case"all":this._sortByLatest(n);break;case"preloaded":default:this._sortByDefault(n);break}if(this._isLive&&this._behavior!=="all"){this.intervalJob.set(this.results);this.intervalJob.start()}return this},_loadTopTweetsAtTop:function(p){var q=[],r=[],o=[];B(p,function(s){if(s.metadata&&s.metadata.result_type&&s.metadata.result_type=="popular"){r.push(s)}else{q.push(s)}});var n=r.concat(q);return n},_sortByLatest:function(n){this.results=n;this.results=this.results.slice(0,this.rpp);this.results=this._loadTopTweetsAtTop(this.results);this.results.reverse();return this},_sortByDefault:function(o){var p=this;var n=function(r){return new Date(r).getTime()};this.results.unshift.apply(this.results,o);B(this.results,function(r){if(!r.views){r.views=0}});this.results.sort(function(s,r){if(n(s.created_at)>n(r.created_at)){return -1}else{if(n(s.created_at)<n(r.created_at)){return 1}else{return 0}}});this.results=this.results.slice(0,this.rpp);this.results=this._loadTopTweetsAtTop(this.results);var q=this.results;this.results=this.results.sort(function(s,r){if(s.views<r.views){return -1}else{if(s.views>r.views){return 1}}return 0});if(!this._isLive){this.results.reverse()}},_prePlay:function(o){if(this.jsonRequestTimer){clearTimeout(this.jsonRequestTimer);this.jsonRequestTimer=null}if(!e.ie){a(this.scriptElement)}if(o.error){this.newResults=false}else{if(o.results&&o.results.length>0){this.response=o;this.newResults=true;this.sinceId=o.max_id;this._sortByMagic(o.results);if(this.isRunning()){this._play()}}else{if((this._isProfileWidget||this._isFavsWidget||this._isListWidget)&&I.array(o)&&o.length&&o.length>0){this.newResults=true;if(!this._profileImage&&this._isProfileWidget){var n=o[0].user.screen_name;this.setProfileImage(o[0].user.profile_image_url);this.setTitle(o[0].user.name);this.setCaption('<a target="_blank" href="http://twitter.com/'+n+'">'+n+"</a>")}this.sinceId=o[0].id;this._sortByMagic(o);if(this.isRunning()){this._play()}}else{this.newResults=false}}}this._setUrl();if(this._isLive){this.decay()}},_play:function(){var n=this;if(this.runOnce){this._hasNewSearchResults=true}if(this._avatars){this._preloadImages(this.results)}if(this._isRelativeTime&&(this._behavior=="all"||this._behavior=="preloaded")){B(this.byClass("twtr-timestamp","a",true),function(o){o.innerHTML=K(o.getAttribute("time"))})}if(!this._isLive||this._behavior=="all"||this._behavior=="preloaded"){B(this.results,function(p){if(p.retweeted_status){p=p.retweeted_status}if(n._isProfileWidget){p.from_user=p.user.screen_name;p.profile_image_url=p.user.profile_image_url}if(n._isFavsWidget||n._isListWidget){p.from_user=p.user.screen_name;p.profile_image_url=p.user.profile_image_url}n._createTweet({id:p.id,user:p.from_user,tweet:F.clean(p.text),avatar:p.profile_image_url,created_at:p.created_at,needle:p});var o=n.tweet.element;(n._behavior=="all")?n._appendSlideFade(o):n._appendTweet(o)});if(this._behavior!="preloaded"){return this}}return this},_normalizeTweet:function(o){var n=this;o.views++;if(this._isProfileWidget){o.from_user=n.username;o.profile_image_url=o.user.profile_image_url}if(this._isFavsWidget||this._isListWidget){o.from_user=o.user.screen_name;o.profile_image_url=o.user.profile_image_url}if(this._isFullScreen){o.profile_image_url=o.profile_image_url.replace(/_normal\./,"_bigger.")}this._createTweet({id:o.id,user:o.from_user,tweet:F.clean(o.text),avatar:o.profile_image_url,created_at:o.created_at,needle:o})._appendSlideFade()},_insertNewResultsNumber:function(){if(!this._hasNewSearchResults){this._hasNewSearchResults=false;return }if(this.runOnce&&this._isSearchWidget){var q=this.response.total>this.rpp?this.response.total:this.response.results.length;var n=q>1?"s":"";var p=(this.response.warning&&this.response.warning.match(/adjusted since_id/))?"more than":"";var o=document.createElement("div");b.add(o,"twtr-new-results");o.innerHTML='<div class="twtr-results-inner"> &nbsp; </div><div class="twtr-results-hr"> &nbsp; </div><span>'+p+" <strong>"+q+"</strong> new tweet"+n+"</span>";Z(o,this.byClass("twtr-reference-tweet","div"));this._hasNewSearchResults=false}},_preloadImages:function(n){if(this._isProfileWidget||this._isFavsWidget||this._isListWidget){B(n,function(p){var o=new Image();o.src=p.user.profile_image_url})}else{B(n,function(o){(new Image()).src=o.profile_image_url})}},_decayDecider:function(){var n=false;if(!this.runOnce){this.runOnce=true;n=true}else{if(this.newResults){n=true}}return n},start:function(){var n=this;if(!this._rendered){setTimeout(function(){n.start.call(n)},50);return this}if(!this._isLive){this._getResults()}else{this.occasionalJob.start()}this._isRunning=true;this._hasOfficiallyStarted=true;return this},stop:function(){this.occasionalJob.stop();if(this.intervalJob){this.intervalJob.stop()}this._isRunning=false;return this},pause:function(){if(this.isRunning()&&this.intervalJob){this.intervalJob.stop();b.add(this.widgetEl,"twtr-paused");this._isRunning=false}if(this._resumeTimer){clearTimeout(this._resumeTimer);this._resumeTimer=null}return this},resume:function(){var n=this;if(!this.isRunning()&&this._hasOfficiallyStarted&&this.intervalJob){this._resumeTimer=window.setTimeout(function(){n.intervalJob.start();n._isRunning=true;b.remove(n.widgetEl,"twtr-paused")},2000)}return this},isRunning:function(){return this._isRunning},destroy:function(){this.stop();this.clear();this.runOnce=false;this._hasOfficiallyStarted=false;this._profileImage=false;this._isLive=true;this._tweetFilter=false;this._isScroll=false;this.newResults=false;this._isRunning=false;this.sinceId=1;this.results=[];this.showedResults=[];this.occasionalJob.destroy();if(this.jsonRequestRunning){clearTimeout(this.jsonRequestTimer)}b.remove(this.widgetEl,"twtr-scroll");this.removeEvents();return this}}}()})()})();

