//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}('o bB={bN:\'1.11\'};k $5z(15){m(15!=7r)};k $F(15){u(!$5z(15))m T;u(15.4s)m\'G\';o F=5o 15;u(F==\'3e\'&&15.aS){1X(15.6g){Y 1:m\'G\';Y 3:m(/\\S/).2j(15.8p)?\'aO\':\'aR\'}}u(F==\'3e\'||F==\'k\'){1X(15.98){Y 24:m\'1n\';Y 6u:m\'6J\';Y 1j:m\'4n\'}u(5o 15.U==\'4b\'){u(15.2V)m\'be\';u(15.8v)m\'1a\'}}m F};k $3L(){o 4p={};J(o i=0;i<1a.U;i++){J(o I 1c 1a[i]){o ap=1a[i][I];o 5i=4p[I];u(5i&&$F(ap)==\'3e\'&&$F(5i)==\'3e\')4p[I]=$3L(5i,ap);12 4p[I]=ap}}m 4p};o $R=k(){o 1f=1a;u(!1f[1])1f=[c,1f[0]];J(o I 1c 1f[1])1f[0][I]=1f[1][I];m 1f[0]};o $4f=k(){J(o i=0,l=1a.U;i<l;i++){1a[i].R=k(1G){J(o 1F 1c 1G){u(!c.1w[1F])c.1w[1F]=1G[1F];u(!c[1F])c[1F]=$4f.5L(1F)}}}};$4f.5L=k(1F){m k(X){m c.1w[1F].4g(X,24.1w.8K.2c(1a,1))}};$4f(6U,24,65,92);k $26(15){m!!(15||15===0)};k $4W(15,8k){m $5z(15)?15:8k};k $6m(2O,1C){m 19.9d(19.6m()*(1C-2O+1)+2O)};k $3i(){m P d3().d0()};k $4D(1D){cU(1D);cS(1D);m 1s};o 3O=k(15){15=15||{};15.R=$R;m 15};o cV=P 3O(N);o cW=P 3O(O);O.89=O.2F(\'89\')[0];N.3o=!!(O.7v);u(N.cY)N.2q=N[N.cX?\'cb\':\'9r\']=1e;12 u(O.7B&&!O.c9&&!cd.cf)N.3J=N[N.3o?\'ce\':\'59\']=1e;12 u(O.c7!=1s)N.6N=1e;N.c0=N.3J;c2.R=$R;u(5o 4Q==\'7r\'){o 4Q=k(){};u(N.3J)O.8G("ct");4Q.1w=(N.3J)?N["[[cv.1w]]"]:{}}4Q.1w.4s=k(){};u(N.9r)6f{O.9C("9F",T,1e)}6d(e){};o 1j=k(2N){o 4B=k(){m(1a[0]!==1s&&c.1v&&$F(c.1v)==\'k\')?c.1v.4g(c,1a):c};$R(4B,c);4B.1w=2N;4B.98=1j;m 4B};1j.21=k(){};1j.1w={R:k(2N){o 5j=P c(1s);J(o I 1c 2N){o 96=5j[I];5j[I]=1j.8i(96,2N[I])}m P 1j(5j)},5S:k(){J(o i=0,l=1a.U;i<l;i++)$R(c.1w,1a[i])}};1j.8i=k(2t,1Z){u(2t&&2t!=1Z){o F=$F(1Z);u(F!=$F(2t))m 1Z;1X(F){Y\'k\':o 6o=k(){c.1m=1a.8v.1m;m 1Z.4g(c,1a)};6o.1m=2t;m 6o;Y\'3e\':m $3L(2t,1Z)}}m 1Z};o 7L=P 1j({a1:k(Q){c.3W=c.3W||[];c.3W.1h(Q);m c},8H:k(){u(c.3W&&c.3W.U)c.3W.7V().1U(10,c)},a8:k(){c.3W=[]}});o 2x=P 1j({1H:k(F,Q){u(Q!=1j.21){c.$17=c.$17||{};c.$17[F]=c.$17[F]||[];c.$17[F].4K(Q)}m c},1B:k(F,1f,1U){u(c.$17&&c.$17[F]){c.$17[F].1t(k(Q){Q.2D({\'X\':c,\'1U\':1U,\'1a\':1f})()},c)}m c},4O:k(F,Q){u(c.$17&&c.$17[F])c.$17[F].3I(Q);m c}});o 5R=P 1j({45:k(){c.C=$3L.4g(1s,[c.C].R(1a));u(c.1H){J(o 3f 1c c.C){u($F(c.C[3f]==\'k\')&&(/^6b[A-Z]/).2j(3f))c.1H(3f,c.C[3f])}}m c}});24.R({5n:k(Q,X){J(o i=0,j=c.U;i<j;i++)Q.2c(X,c[i],i,c)},2B:k(Q,X){o 4r=[];J(o i=0,j=c.U;i<j;i++){u(Q.2c(X,c[i],i,c))4r.1h(c[i])}m 4r},2y:k(Q,X){o 4r=[];J(o i=0,j=c.U;i<j;i++)4r[i]=Q.2c(X,c[i],i,c);m 4r},5Y:k(Q,X){J(o i=0,j=c.U;i<j;i++){u(!Q.2c(X,c[i],i,c))m T}m 1e},af:k(Q,X){J(o i=0,j=c.U;i<j;i++){u(Q.2c(X,c[i],i,c))m 1e}m T},3a:k(2V,W){o 3b=c.U;J(o i=(W<0)?19.1C(0,3b+W):W||0;i<3b;i++){u(c[i]===2V)m i}m-1},7l:k(1g,U){1g=1g||0;u(1g<0)1g=c.U+1g;U=U||(c.U-1g);o 6n=[];J(o i=0;i<U;i++)6n[i]=c[1g++];m 6n},3I:k(2V){o i=0;o 3b=c.U;6F(i<3b){u(c[i]===2V){c.5t(i,1);3b--}12{i++}}m c},1d:k(2V,W){m c.3a(2V,W)!=-1},am:k(1O){o 15={},U=19.2O(c.U,1O.U);J(o i=0;i<U;i++)15[1O[i]]=c[i];m 15},R:k(1n){J(o i=0,j=1n.U;i<j;i++)c.1h(1n[i]);m c},3L:k(1n){J(o i=0,l=1n.U;i<l;i++)c.4K(1n[i]);m c},4K:k(2V){u(!c.1d(2V))c.1h(2V);m c},c1:k(){m c[$6m(0,c.U-1)]||1s},7i:k(){m c[c.U-1]||1s}});24.1w.1t=24.1w.5n;24.1t=24.5n;k $A(1n){m 24.7l(1n)};k $1t(3r,Q,X){u(3r&&5o 3r.U==\'4b\'&&$F(3r)!=\'3e\'){24.5n(3r,Q,X)}12{J(o 1J 1c 3r)Q.2c(X||3r,3r[1J],1J)}};24.1w.2j=24.1w.1d;65.R({2j:k(5h,2z){m(($F(5h)==\'2U\')?P 6u(5h,2z):5h).2j(c)},2H:k(){m 56(c,10)},93:k(){m 4T(c)},6r:k(){m c.33(/-\\D/g,k(2C){m 2C.6k(1).9g()})},7w:k(){m c.33(/\\w[A-Z]/g,k(2C){m(2C.6k(0)+\'-\'+2C.6k(1).4E())})},84:k(){m c.33(/\\b[a-z]/g,k(2C){m 2C.9g()})},4U:k(){m c.33(/^\\s+|\\s+$/g,\'\')},6t:k(){m c.33(/\\s{2,}/g,\' \').4U()},5a:k(1n){o 1i=c.2C(/\\d{1,3}/g);m(1i)?1i.5a(1n):T},58:k(1n){o 3k=c.2C(/^#?(\\w{1,2})(\\w{1,2})(\\w{1,2})$/);m(3k)?3k.8K(1).58(1n):T},1d:k(2U,s){m(s)?(s+c+s).3a(s+2U+s)>-1:c.3a(2U)>-1},aj:k(){m c.33(/([.*+?^${}()|[\\]\\/\\\\])/g,\'\\\\$1\')}});24.R({5a:k(1n){u(c.U<3)m T;u(c.U==4&&c[3]==0&&!1n)m\'aE\';o 3k=[];J(o i=0;i<3;i++){o 4o=(c[i]-0).ad(16);3k.1h((4o.U==1)?\'0\'+4o:4o)}m 1n?3k:\'#\'+3k.2m(\'\')},58:k(1n){u(c.U!=3)m T;o 1i=[];J(o i=0;i<3;i++){1i.1h(56((c[i].U==1)?c[i]+c[i]:c[i],16))}m 1n?1i:\'1i(\'+1i.2m(\',\')+\')\'}});6U.R({2D:k(C){o Q=c;C=$3L({\'X\':Q,\'H\':T,\'1a\':1s,\'1U\':T,\'3N\':T,\'5J\':T},C);u($26(C.1a)&&$F(C.1a)!=\'1n\')C.1a=[C.1a];m k(H){o 1f;u(C.H){H=H||N.H;1f=[(C.H===1e)?H:P C.H(H)];u(C.1a)1f.R(C.1a)}12 1f=C.1a||1a;o 31=k(){m Q.4g($4W(C.X,Q),1f)};u(C.1U)m ac(31,C.1U);u(C.3N)m ab(31,C.3N);u(C.5J)6f{m 31()}6d(aa){m T};m 31()}},ae:k(1f,X){m c.2D({\'1a\':1f,\'X\':X})},5J:k(1f,X){m c.2D({\'1a\':1f,\'X\':X,\'5J\':1e})()},X:k(X,1f){m c.2D({\'X\':X,\'1a\':1f})},ai:k(X,1f){m c.2D({\'X\':X,\'H\':1e,\'1a\':1f})},1U:k(1U,X,1f){m c.2D({\'1U\':1U,\'X\':X,\'1a\':1f})()},3N:k(95,X,1f){m c.2D({\'3N\':95,\'X\':X,\'1a\':1f})()}});92.R({2H:k(){m 56(c)},93:k(){m 4T(c)},1A:k(2O,1C){m 19.2O(1C,19.1C(2O,c))},2a:k(4M){4M=19.2Z(10,4M||0);m 19.2a(c*4M)/4M},ah:k(Q){J(o i=0;i<c;i++)Q(i)}});o L=P 1j({1v:k(B,1G){u($F(B)==\'2U\'){u(N.2q&&1G&&(1G.1J||1G.F)){o 1J=(1G.1J)?\' 1J="\'+1G.1J+\'"\':\'\';o F=(1G.F)?\' F="\'+1G.F+\'"\':\'\';6e 1G.1J;6e 1G.F;B=\'<\'+B+1J+F+\'>\'}B=O.8G(B)}B=$(B);m(!1G||!B)?B:B.2P(1G)}});o 1M=P 1j({1v:k(M){m(M)?$R(M,c):c}});1M.R=k(1G){J(o 1F 1c 1G){c.1w[1F]=1G[1F];c[1F]=$4f.5L(1F)}};k $(B){u(!B)m 1s;u(B.4s)m 2g.4q(B);u([N,O].1d(B))m B;o F=$F(B);u(F==\'2U\'){B=O.5m(B);F=(B)?\'G\':T}u(F!=\'G\')m 1s;u(B.4s)m 2g.4q(B);u([\'3e\',\'ag\'].1d(B.5O.4E()))m B;$R(B,L.1w);B.4s=k(){};m 2g.4q(B)};O.5q=O.2F;k $$(){o M=[];J(o i=0,j=1a.U;i<j;i++){o 1z=1a[i];1X($F(1z)){Y\'G\':M.1h(1z);Y\'a9\':1u;Y T:1u;Y\'2U\':1z=O.5q(1z,1e);4I:M.R(1z)}}m $$.54(M)};$$.54=k(1n){o M=[];J(o i=0,l=1n.U;i<l;i++){u(1n[i].$5P)5Q;o G=$(1n[i]);u(G&&!G.$5P){G.$5P=1e;M.1h(G)}}J(o n=0,d=M.U;n<d;n++)M[n].$5P=1s;m P 1M(M)};1M.5A=k(I){m k(){o 1f=1a;o 1k=[];o M=1e;J(o i=0,j=c.U,31;i<j;i++){31=c[i][I].4g(c[i],1f);u($F(31)!=\'G\')M=T;1k.1h(31)};m(M)?$$.54(1k):1k}};L.R=k(2N){J(o I 1c 2N){4Q.1w[I]=2N[I];L.1w[I]=2N[I];L[I]=$4f.5L(I);o 8Q=(24.1w[I])?I+\'1M\':I;1M.1w[8Q]=1M.5A(I)}};L.R({2P:k(1G){J(o 1F 1c 1G){o 3M=1G[1F];1X(1F){Y\'7k\':c.4a(3M);1u;Y\'17\':u(c.6w)c.6w(3M);1u;Y\'2N\':c.8m(3M);1u;4I:c.5T(1F,3M)}}m c},25:k(B,8N){B=$(B);1X(8N){Y\'8M\':B.2W.6l(c,B);1u;Y\'9s\':o 4V=B.7x();u(!4V)B.2W.6q(c);12 B.2W.6l(c,4V);1u;Y\'1l\':o 6p=B.6a;u(6p){B.6l(c,6p);1u}4I:B.6q(c)}m c},8w:k(B){m c.25(B,\'8M\')},7q:k(B){m c.25(B,\'9s\')},a0:k(B){m c.25(B,\'41\')},9Z:k(B){m c.25(B,\'1l\')},9u:k(){o M=[];$1t(1a,k(47){M=M.6A(47)});$$(M).25(c);m c},3I:k(){m c.2W.8q(c)},9Y:k(9n){o B=$(c.a2(9n!==T));u(!B.$17)m B;B.$17={};J(o F 1c c.$17)B.$17[F]={\'1O\':$A(c.$17[F].1O),\'1I\':$A(c.$17[F].1I)};m B.5x()},a3:k(B){B=$(B);c.2W.a7(B,c);m B},8x:k(2l){c.6q(O.a6(2l));m c},6s:k(1q){m c.1q.1d(1q,\' \')},9c:k(1q){u(!c.6s(1q))c.1q=(c.1q+\' \'+1q).6t();m c},9m:k(1q){c.1q=c.1q.33(P 6u(\'(^|\\\\s)\'+1q+\'(?:\\\\s|$)\'),\'$1\').6t();m c},a5:k(1q){m c.6s(1q)?c.9m(1q):c.9c(1q)},2b:k(I,K){1X(I){Y\'1W\':m c.7O(4T(K));Y\'a4\':I=(N.2q)?\'ak\':\'al\'}I=I.6r();1X($F(K)){Y\'4b\':u(![\'aC\',\'7Y\'].1d(I))K+=\'4m\';1u;Y\'1n\':K=\'1i(\'+K.2m(\',\')+\')\'}c.1y[I]=K;m c},4a:k(3p){1X($F(3p)){Y\'3e\':L.5w(c,\'2b\',3p);1u;Y\'2U\':c.1y.69=3p}m c},7O:k(1W){u(1W==0){u(c.1y.3T!="3V")c.1y.3T="3V"}12{u(c.1y.3T!="7h")c.1y.3T="7h"}u(!c.61||!c.61.aB)c.1y.7Y=1;u(N.2q)c.1y.2B=(1W==1)?\'\':"5X(1W="+1W*2Q+")";c.1y.1W=c.$1E.1W=1W;m c},1V:k(I){I=I.6r();o 1x=c.1y[I];u(!$26(1x)){u(I==\'1W\')m c.$1E.1W;1x=[];J(o 1y 1c L.3B){u(I==1y){L.3B[1y].1t(k(s){o 1y=c.1V(s);1x.1h(56(1y)?1y:\'82\')},c);u(I==\'2s\'){o 5Y=1x.5Y(k(4o){m(4o==1x[0])});m(5Y)?1x[0]:T}m 1x.2m(\' \')}}u(I.1d(\'2s\')){u(L.3B.2s.1d(I)){m[\'81\',\'64\',\'2n\'].2y(k(p){m c.1V(I+p)},c).2m(\' \')}12 u(L.8c.1d(I)){m[\'8f\',\'8g\',\'8e\',\'8d\'].2y(k(p){m c.1V(\'2s\'+p+I.33(\'2s\',\'\'))},c).2m(\' \')}}u(O.7u)1x=O.7u.aA(c,1s).az(I.7w());12 u(c.61)1x=c.61[I]}u(N.2q)1x=L.86(I,1x,c);u(1x&&I.2j(/2h/i)&&1x.1d(\'1i\')){m 1x.4Y(\'1i\').5t(1,4).2y(k(2h){m 2h.5a()}).2m(\' \')}m 1x},7X:k(){m L.66(c,\'1V\',1a)},53:k(5Z,1g){5Z+=\'9X\';o B=(1g)?c[1g]:c[5Z];6F(B&&$F(B)!=\'G\')B=B[5Z];m $(B)},aH:k(){m c.53(\'2t\')},7x:k(){m c.53(\'4V\')},aG:k(){m c.53(\'4V\',\'6a\')},7i:k(){m c.53(\'2t\',\'ay\')},ax:k(){m $(c.2W)},aq:k(){m $$(c.7B)},6O:k(B){m!!$A(c.2F(\'*\')).1d(B)},5s:k(I){o 1L=L.5v[I];u(1L)m c[1L];o 6j=L.8P[I]||0;u(!N.2q||6j)m c.ao(I,6j);o 6i=c.an[I];m(6i)?6i.8p:1s},ar:k(I){o 1L=L.5v[I];u(1L)c[1L]=\'\';12 c.7F(I);m c},as:k(){m L.66(c,\'5s\',1a)},5T:k(I,K){o 1L=L.5v[I];u(1L)c[1L]=K;12 c.aw(I,K);m c},8m:k(3p){m L.5w(c,\'5T\',3p)},5N:k(){c.8t=$A(1a).2m(\'\');m c},av:k(2l){o 2X=c.43();u([\'1y\',\'4w\'].1d(2X)){u(N.2q){u(2X==\'1y\')c.8s.69=2l;12 u(2X==\'4w\')c.5T(\'2l\',2l);m c}12{c.8q(c.6a);m c.8x(2l)}}c[$5z(c.68)?\'68\':\'8h\']=2l;m c},au:k(){o 2X=c.43();u([\'1y\',\'4w\'].1d(2X)){u(N.2q){u(2X==\'1y\')m c.8s.69;12 u(2X==\'4w\')m c.5s(\'2l\')}12{m c.8t}}m($4W(c.68,c.8h))},43:k(){m c.5O.4E()},21:k(){2g.4z(c.2F(\'*\'));m c.5N(\'\')}});L.86=k(I,1x,G){u($26(56(1x)))m 1x;u([\'2p\',\'2d\'].1d(I)){o 1I=(I==\'2d\')?[\'1o\',\'42\']:[\'1l\',\'41\'];o 44=0;1I.1t(k(K){44+=G.1V(\'2s-\'+K+\'-2d\').2H()+G.1V(\'3U-\'+K).2H()});m G[\'3h\'+I.84()]-44+\'4m\'}12 u(I.2j(/2s(.+)81|2J|3U/)){m\'82\'}m 1x};L.3B={\'2s\':[],\'3U\':[],\'2J\':[]};[\'8f\',\'8g\',\'8e\',\'8d\'].1t(k(8b){J(o 1y 1c L.3B)L.3B[1y].1h(1y+8b)});L.8c=[\'aI\',\'9E\',\'9W\'];L.66=k(B,3R,1O){o 1x={};$1t(1O,k(2w){1x[2w]=B[3R](2w)});m 1x};L.5w=k(B,3R,67){J(o 2w 1c 67)B[3R](2w,67[2w]);m B};L.5v=P 3O({\'4n\':\'1q\',\'J\':\'9J\',\'9I\':\'9M\',\'9R\':\'9H\',\'9P\':\'9V\',\'9B\':\'9A\',\'9G\':\'9Q\',\'9S\':\'9L\',\'9N\':\'9K\',\'K\':\'K\',\'6D\':\'6D\',\'6C\':\'6C\',\'6y\':\'6y\',\'6x\':\'6x\'});L.8P={\'4c\':2,\'5d\':2};L.2G={5H:{2R:k(F,Q){u(c.6v)c.6v(F,Q,T);12 c.9T(\'6b\'+F,Q);m c},4h:k(F,Q){u(c.8E)c.8E(F,Q,T);12 c.9z(\'6b\'+F,Q);m c}}};N.R(L.2G.5H);O.R(L.2G.5H);L.R(L.2G.5H);o 2g={M:[],4q:k(B){u(!B.$1E){2g.M.1h(B);B.$1E={\'1W\':1}}m B},4z:k(M){J(o i=0,j=M.U,B;i<j;i++){u(!(B=M[i])||!B.$1E)5Q;u(B.$17)B.1B(\'4z\').5x();J(o p 1c B.$1E)B.$1E[p]=1s;J(o d 1c L.1w)B[d]=1s;2g.M[2g.M.3a(B)]=1s;B.4s=B.$1E=B=1s}2g.M.3I(1s)},21:k(){2g.4q(N);2g.4q(O);2g.4z(2g.M)}};N.2R(\'8j\',k(){N.2R(\'6Q\',2g.21);u(N.2q)N.2R(\'6Q\',9y)});o 2r=P 1j({1v:k(H){u(H&&H.$8V)m H;c.$8V=1e;H=H||N.H;c.H=H;c.F=H.F;c.36=H.36||H.9D;u(c.36.6g==3)c.36=c.36.2W;c.7V=H.bX;c.cn=H.co;c.cm=H.cl;c.ci=H.cj;u([\'6K\',\'4j\'].1d(c.F)){c.ck=(H.8F)?H.8F/cp:-(H.cq||0)/3}12 u(c.F.1d(\'2w\')){c.5C=H.9p||H.cw;J(o 1J 1c 2r.1O){u(2r.1O[1J]==c.5C){c.2w=1J;1u}}u(c.F==\'8r\'){o 5F=c.5C-cx;u(5F>0&&5F<13)c.2w=\'f\'+5F}c.2w=c.2w||65.cu(c.5C).4E()}12 u(c.F.2j(/(5f|2M|cr)/)){c.3t={\'x\':H.6c||H.9k+O.2o.51,\'y\':H.6h||H.9e+O.2o.4F};c.cs={\'x\':H.6c?H.6c-N.8U:H.9k,\'y\':H.6h?H.6h-N.8T:H.9e};c.ch=(H.9p==3)||(H.cg==2);1X(c.F){Y\'6L\':c.23=H.23||H.c4;1u;Y\'6P\':c.23=H.23||H.7e}c.7A()}m c},1K:k(){m c.5E().5D()},5E:k(){u(c.H.5E)c.H.5E();12 c.H.c5=1e;m c},5D:k(){u(c.H.5D)c.H.5D();12 c.H.c6=T;m c}});2r.5G={23:k(){u(c.23&&c.23.6g==3)c.23=c.23.2W},7C:k(){6f{2r.5G.23.2c(c)}6d(e){c.23=c.36}}};2r.1w.7A=(N.6N)?2r.5G.7C:2r.5G.23;2r.1O=P 3O({\'bZ\':13,\'aJ\':38,\'c8\':40,\'1o\':37,\'42\':39,\'cc\':27,\'ca\':32,\'cz\':8,\'cQ\':9,\'6e\':46});L.2G.2x={1H:k(F,Q){c.$17=c.$17||{};c.$17[F]=c.$17[F]||{\'1O\':[],\'1I\':[]};u(c.$17[F].1O.1d(Q))m c;c.$17[F].1O.1h(Q);o 5B=F;o 28=L.2x[F];u(28){u(28.6E)28.6E.2c(c,Q);u(28.2y)Q=28.2y;u(28.F)5B=28.F}u(!c.6v)Q=Q.2D({\'X\':c,\'H\':1e});c.$17[F].1I.1h(Q);m(L.6M.1d(5B))?c.2R(5B,Q):c},4O:k(F,Q){u(!c.$17||!c.$17[F])m c;o 1p=c.$17[F].1O.3a(Q);u(1p==-1)m c;o 2w=c.$17[F].1O.5t(1p,1)[0];o K=c.$17[F].1I.5t(1p,1)[0];o 28=L.2x[F];u(28){u(28.3I)28.3I.2c(c,Q);u(28.F)F=28.F}m(L.6M.1d(F))?c.4h(F,K):c},6w:k(3p){m L.5w(c,\'1H\',3p)},5x:k(F){u(!c.$17)m c;u(!F){J(o 5y 1c c.$17)c.5x(5y);c.$17=1s}12 u(c.$17[F]){c.$17[F].1O.1t(k(Q){c.4O(F,Q)},c);c.$17[F]=1s}m c},1B:k(F,1f,1U){u(c.$17&&c.$17[F]){c.$17[F].1O.1t(k(Q){Q.2D({\'X\':c,\'1U\':1U,\'1a\':1f})()},c)}m c},87:k(W,F){u(!W.$17)m c;u(!F){J(o 5y 1c W.$17)c.87(W,5y)}12 u(W.$17[F]){W.$17[F].1O.1t(k(Q){c.1H(F,Q)},c)}m c}};N.R(L.2G.2x);O.R(L.2G.2x);L.R(L.2G.2x);L.2x=P 3O({\'79\':{F:\'6L\',2y:k(H){H=P 2r(H);u(H.23!=c&&!c.6O(H.23))c.1B(\'79\',H)}},\'7n\':{F:\'6P\',2y:k(H){H=P 2r(H);u(H.23!=c&&!c.6O(H.23))c.1B(\'7n\',H)}},\'4j\':{F:(N.6N)?\'6K\':\'4j\'}});L.6M=[\'5f\',\'d4\',\'70\',\'6Z\',\'4j\',\'6K\',\'6L\',\'6P\',\'3Z\',\'8r\',\'cR\',\'cF\',\'94\',\'6Q\',\'8j\',\'cG\',\'cE\',\'cD\',\'cA\',\'9a\',\'cB\',\'cC\',\'3w\',\'cH\',\'cI\',\'cO\',\'3C\'];6U.R({4d:k(X,1f){m c.2D({\'X\':X,\'1a\':1f,\'H\':2r})}});1M.R({cJ:k(2X){m P 1M(c.2B(k(B){m(L.43(B)==2X)}))},7H:k(1q,2f){o M=c.2B(k(B){m(B.1q&&B.1q.1d(1q,\' \'))});m(2f)?M:P 1M(M)},7t:k(3D,2f){o M=c.2B(k(B){m(B.3D==3D)});m(2f)?M:P 1M(M)},7Z:k(1J,6T,K,2f){o M=c.2B(k(B){o 1Z=L.5s(B,1J);u(!1Z)m T;u(!6T)m 1e;1X(6T){Y\'=\':m(1Z==K);Y\'*=\':m(1Z.1d(K));Y\'^=\':m(1Z.5V(0,K.U)==K);Y\'$=\':m(1Z.5V(1Z.U-K.U)==K);Y\'!=\':m(1Z!=K);Y\'~=\':m 1Z.1d(K,\' \')}m T});m(2f)?M:P 1M(M)}});k $E(1z,2B){m($(2B)||O).9t(1z)};k $cy(1z,2B){m($(2B)||O).5q(1z)};$$.3d={\'6J\':/^(\\w*|\\*)(?:#([\\w-]+)|\\.([\\w-]+))?(?:\\[(\\w+)(?:([!*^$]?=)["\']?([^"\'\\]]*)["\']?)?])?$/,\'3o\':{6I:k(1k,2K,18,i){o 22=[2K.b8?\'6S:\':\'\',18[1]];u(18[2])22.1h(\'[@3D="\',18[2],\'"]\');u(18[3])22.1h(\'[1d(6A(" ", @4n, " "), " \',18[3],\' ")]\');u(18[4]){u(18[5]&&18[6]){1X(18[5]){Y\'*=\':22.1h(\'[1d(@\',18[4],\', "\',18[6],\'")]\');1u;Y\'^=\':22.1h(\'[b9-ba(@\',18[4],\', "\',18[6],\'")]\');1u;Y\'$=\':22.1h(\'[b7(@\',18[4],\', 2U-U(@\',18[4],\') - \',18[6].U,\' + 1) = "\',18[6],\'"]\');1u;Y\'=\':22.1h(\'[@\',18[4],\'="\',18[6],\'"]\');1u;Y\'!=\':22.1h(\'[@\',18[4],\'!="\',18[6],\'"]\')}}12{22.1h(\'[@\',18[4],\']\')}}1k.1h(22.2m(\'\'));m 1k},6B:k(1k,2K,2f){o M=[];o 3o=O.7v(\'.//\'+1k.2m(\'//\'),2K,$$.3d.7I,b6.b3,1s);J(o i=0,j=3o.b4;i<j;i++)M.1h(3o.b5(i));m(2f)?M:P 1M(M.2y($))}},\'7K\':{6I:k(1k,2K,18,i){u(i==0){u(18[2]){o B=2K.5m(18[2]);u(!B||((18[1]!=\'*\')&&(L.43(B)!=18[1])))m T;1k=[B]}12{1k=$A(2K.2F(18[1]))}}12{1k=$$.3d.2F(1k,18[1]);u(18[2])1k=1M.7t(1k,18[2],1e)}u(18[3])1k=1M.7H(1k,18[3],1e);u(18[4])1k=1M.7Z(1k,18[4],18[5],18[6],1e);m 1k},6B:k(1k,2K,2f){m(2f)?1k:$$.54(1k)}},7I:k(7T){m(7T==\'6S\')?\'8y://bb.bc.bi/bj/6S\':T},2F:k(2K,5O){o 6R=[];J(o i=0,j=2K.U;i<j;i++)6R.R(2K[i].2F(5O));m 6R}};$$.3d.3R=(N.3o)?\'3o\':\'7K\';L.2G.6z={5b:k(1z,2f){o 1k=[];1z=1z.4U().4Y(\' \');J(o i=0,j=1z.U;i<j;i++){o 7J=1z[i];o 18=7J.2C($$.3d.6J);u(!18)1u;18[1]=18[1]||\'*\';o 22=$$.3d[$$.3d.3R].6I(1k,c,18,i);u(!22)1u;1k=22}m $$.3d[$$.3d.3R].6B(1k,c,2f)},9t:k(1z){m $(c.5b(1z,1e)[0]||T)},5q:k(1z,2f){o M=[];1z=1z.4Y(\',\');J(o i=0,j=1z.U;i<j;i++)M=M.6A(c.5b(1z[i],1e));m(2f)?M:$$.54(M)}};L.R({5m:k(3D){o B=O.5m(3D);u(!B)m T;J(o 1m=B.2W;1m!=c;1m=1m.2W){u(!1m)m T}m B},aP:k(1q){m c.5b(\'.\'+1q)}});O.R(L.2G.6z);L.R(L.2G.6z);L.R({3A:k(){1X(c.43()){Y\'3w\':o 1I=[];$1t(c.C,k(3f){u(3f.6x)1I.1h($4W(3f.K,3f.2l))});m(c.6y)?1I:1I[0];Y\'9f\':u(!(c.6C&&[\'aK\',\'aL\'].1d(c.F))&&![\'3V\',\'2l\',\'aM\'].1d(c.F))1u;Y\'9o\':m c.K}m T},9v:k(){m $$(c.2F(\'9f\'),c.2F(\'3w\'),c.2F(\'9o\'))},aT:k(){o 6G=[];c.9v().1t(k(B){o 1J=B.1J;o K=B.3A();u(K===T||!1J||B.6D)m;o 6H=k(3M){6G.1h(1J+\'=\'+aY(3M))};u($F(K)==\'1n\')K.1t(6H);12 6H(K)});m 6G.2m(\'&\')}});L.R({3q:k(x,y){c.51=x;c.4F=y},7p:k(){m{\'3C\':{\'x\':c.51,\'y\':c.4F},\'44\':{\'x\':c.48,\'y\':c.3Y},\'7o\':{\'x\':c.5k,\'y\':c.4J}}},3u:k(1T){1T=1T||[];o B=c,1o=0,1l=0;aV{1o+=B.aW||0;1l+=B.bk||0;B=B.bl}6F(B);1T.1t(k(G){1o-=G.51||0;1l-=G.4F||0});m{\'x\':1o,\'y\':1l}},7Q:k(1T){m c.3u(1T).y},7R:k(1T){m c.3u(1T).x},5U:k(1T){o 1N=c.3u(1T);o 15={\'2d\':c.48,\'2p\':c.3Y,\'1o\':1N.x,\'1l\':1N.y};15.42=15.1o+15.2d;15.41=15.1l+15.2p;m 15}});L.2x.63={6E:k(Q){u(N.5r){Q.2c(c);m}o 4A=k(){u(N.5r)m;N.5r=1e;N.1D=$4D(N.1D);c.1B(\'63\')}.X(c);u(O.5e&&N.3J){N.1D=k(){u([\'5r\',\'8S\'].1d(O.5e))4A()}.3N(50)}12 u(O.5e&&N.2q){u(!$(\'6V\')){o 5d=(N.4u.bK==\'bJ:\')?\'://0\':\'bG:bH(0)\';O.bI(\'<4w 3D="6V" bP 5d="\'+5d+\'"><\\/4w>\');$(\'6V\').bU=k(){u(c.5e==\'8S\')4A()}}}12{N.2R("94",4A);O.2R("bQ",4A)}}};N.bS=k(Q){m c.1H(\'63\',Q)};N.R({78:k(){u(c.59)m c.bE;u(c.91)m O.4Z.97;m O.2o.97},77:k(){u(c.59)m c.bs;u(c.91)m O.4Z.90;m O.2o.90},8Z:k(){u(c.2q)m 19.1C(O.2o.48,O.2o.5k);u(c.3J)m O.4Z.5k;m O.2o.5k},8Y:k(){u(c.2q)m 19.1C(O.2o.3Y,O.2o.4J);u(c.3J)m O.4Z.4J;m O.2o.4J},76:k(){m c.8U||O.2o.51},74:k(){m c.8T||O.2o.4F},7p:k(){m{\'44\':{\'x\':c.78(),\'y\':c.77()},\'7o\':{\'x\':c.8Z(),\'y\':c.8Y()},\'3C\':{\'x\':c.76(),\'y\':c.74()}}},3u:k(){m{\'x\':0,\'y\':0}}});o 1b={};1b.2I=P 1j({C:{4H:1j.21,3m:1j.21,9w:1j.21,1P:k(p){m-(19.9l(19.72*p)-1)/2},6W:bm,29:\'4m\',3j:1e,9i:50},1v:k(C){c.G=c.G||1s;c.45(C);u(c.C.1v)c.C.1v.2c(c)},8L:k(){o 3i=$3i();u(3i<c.3i+c.C.6W){c.3P=c.C.1P((3i-c.3i)/c.C.6W);c.3S();c.3G()}12{c.1K(1e);c.2P(c.V);c.1B(\'3m\',c.G,10);c.8H()}},2P:k(V){c.14=V;c.3G();m c},3S:k(){c.14=c.3K(c.W,c.V)},3K:k(W,V){m(V-W)*c.3P+W},1g:k(W,V){u(!c.C.3j)c.1K();12 u(c.1D)m c;c.W=W;c.V=V;c.9a=c.V-c.W;c.3i=$3i();c.1D=c.8L.3N(19.2a(bv/c.C.9i),c);c.1B(\'4H\',c.G);m c},1K:k(35){u(!c.1D)m c;c.1D=$4D(c.1D);u(!35)c.1B(\'9w\',c.G);m c},28:k(W,V){m c.1g(W,V)},bw:k(35){m c.1K(35)}});1b.2I.5S(P 7L,P 2x,P 5R);1b.2L={3w:k(I,V){u(I.2j(/2h/i))m c.2n;o F=$F(V);u((F==\'1n\')||(F==\'2U\'&&V.1d(\' \')))m c.5A;m c.7s},2u:k(B,I,4v){u(!4v.1h)4v=[4v];o W=4v[0],V=4v[1];u(!$26(V)){V=W;W=B.1V(I)}o 1r=c.3w(I,V);m{\'W\':1r.2u(W),\'V\':1r.2u(V),\'1r\':1r}}};1b.2L.7s={2u:k(K){m 4T(K)},4e:k(W,V,2i){m 2i.3K(W,V)},3A:k(K,29,I){u(29==\'4m\'&&I!=\'1W\')K=19.2a(K);m K+29}};1b.2L.5A={2u:k(K){m K.1h?K:K.4Y(\' \').2y(k(v){m 4T(v)})},4e:k(W,V,2i){o 14=[];J(o i=0;i<W.U;i++)14[i]=2i.3K(W[i],V[i]);m 14},3A:k(K,29,I){u(29==\'4m\'&&I!=\'1W\')K=K.2y(19.2a);m K.2m(29+\' \')+29}};1b.2L.2n={2u:k(K){m K.1h?K:K.58(1e)},4e:k(W,V,2i){o 14=[];J(o i=0;i<W.U;i++)14[i]=19.2a(2i.3K(W[i],V[i]));m 14},3A:k(K){m\'1i(\'+K.2m(\',\')+\')\'}};1b.64=1b.2I.R({1v:k(B,I,C){c.G=$(B);c.I=I;c.1m(C)},3s:k(){m c.2P(0)},3S:k(){c.14=c.1r.4e(c.W,c.V,c)},2P:k(V){c.1r=1b.2L.3w(c.I,V);m c.1m(c.1r.2u(V))},1g:k(W,V){u(c.1D&&c.C.3j)m c;o 1Q=1b.2L.2u(c.G,c.I,[W,V]);c.1r=1Q.1r;m c.1m(1Q.W,1Q.V)},3G:k(){c.G.2b(c.I,c.1r.3A(c.14,c.C.29,c.I))}});L.R({bx:k(I,C){m P 1b.64(c,I,C)}});1b.3B=1b.2I.R({1v:k(B,C){c.G=$(B);c.1m(C)},3S:k(){J(o p 1c c.W)c.14[p]=c.1r[p].4e(c.W[p],c.V[p],c)},2P:k(V){o 1Q={};c.1r={};J(o p 1c V){c.1r[p]=1b.2L.3w(p,V[p]);1Q[p]=c.1r[p].2u(V[p])}m c.1m(1Q)},1g:k(15){u(c.1D&&c.C.3j)m c;c.14={};c.1r={};o W={},V={};J(o p 1c 15){o 1Q=1b.2L.2u(c.G,p,15[p]);W[p]=1Q.W;V[p]=1Q.V;c.1r[p]=1Q.1r}m c.1m(W,V)},3G:k(){J(o p 1c c.14)c.G.2b(p,c.1r[p].3A(c.14[p],c.C.29,p))}});L.R({3g:k(C){m P 1b.3B(c,C)}});1b.1M=1b.2I.R({1v:k(M,C){c.M=$$(M);c.1m(C)},3S:k(){J(o i 1c c.W){o 52=c.W[i],3v=c.V[i],3c=c.1r[i],4R=c.14[i]={};J(o p 1c 52)4R[p]=3c[p].4e(52[p],3v[p],c)}},2P:k(V){o 1Q={};c.1r={};J(o i 1c V){o 3v=V[i],3c=c.1r[i]={},9x=1Q[i]={};J(o p 1c 3v){3c[p]=1b.2L.3w(p,3v[p]);9x[p]=3c[p].2u(3v[p])}}m c.1m(1Q)},1g:k(15){u(c.1D&&c.C.3j)m c;c.14={};c.1r={};o W={},V={};J(o i 1c 15){o 7f=15[i],52=W[i]={},3v=V[i]={},3c=c.1r[i]={};J(o p 1c 7f){o 1Q=1b.2L.2u(c.M[i],p,7f[p]);52[p]=1Q.W;3v[p]=1Q.V;3c[p]=1Q.1r}}m c.1m(W,V)},3G:k(){J(o i 1c c.14){o 4R=c.14[i],3c=c.1r[i];J(o p 1c 4R)c.M[i].2b(p,3c[p].3A(4R[p],c.C.29,p))}}});1b.8n=1b.2I.R({C:{1T:[],3h:{\'x\':0,\'y\':0},8a:1e},1v:k(G,C){c.14=[];c.G=$(G);c.2k={\'1K\':c.1K.X(c,T)};c.1m(C);u(c.C.8a){c.1H(\'4H\',k(){O.1H(\'4j\',c.2k.1K)}.X(c));c.1H(\'3m\',k(){O.4O(\'4j\',c.2k.1K)}.X(c))}},3S:k(){J(o i=0;i<2;i++)c.14[i]=c.3K(c.W[i],c.V[i])},3q:k(x,y){u(c.1D&&c.C.3j)m c;o B=c.G.7p();o 1I={\'x\':x,\'y\':y};J(o z 1c B.44){o 1C=B.7o[z]-B.44[z];u($26(1I[z]))1I[z]=($F(1I[z])==\'4b\')?1I[z].1A(0,1C):1C;12 1I[z]=B.3C[z];1I[z]+=c.C.3h[z]}m c.1g([B.3C.x,B.3C.y],[1I.x,1I.y])},bz:k(){m c.3q(T,0)},by:k(){m c.3q(T,\'7G\')},bA:k(){m c.3q(0,T)},bD:k(){m c.3q(\'7G\',T)},7e:k(B){o 1m=c.G.3u(c.C.1T);o 36=$(B).3u(c.C.1T);m c.3q(36.x-1m.x,36.y-1m.y)},3G:k(){c.G.3q(c.14[0],c.14[1])}});1b.bC=1b.2I.R({C:{1Y:\'9b\'},1v:k(B,C){c.G=$(B);c.2A=P L(\'4C\',{\'7k\':$R(c.G.7X(\'2J\'),{\'8D\':\'3V\'})}).7q(c.G).9u(c.G);c.G.2b(\'2J\',0);c.45(C);c.14=[];c.1m(c.C);c.55=1e;c.1H(\'3m\',k(){c.55=(c.14[0]===0)});u(N.59)c.1H(\'3m\',k(){u(c.55)c.G.3I().25(c.2A)})},3S:k(){J(o i=0;i<2;i++)c.14[i]=c.3K(c.W[i],c.V[i])},9b:k(){c.2J=\'2J-1l\';c.4L=\'2p\';c.3h=c.G.3Y},bo:k(){c.2J=\'2J-1o\';c.4L=\'2d\';c.3h=c.G.48},8X:k(1Y){c[1Y||c.C.1Y]();m c.1g([c.G.1V(c.2J).2H(),c.2A.1V(c.4L).2H()],[0,c.3h])},8W:k(1Y){c[1Y||c.C.1Y]();m c.1g([c.G.1V(c.2J).2H(),c.2A.1V(c.4L).2H()],[-c.3h,0])},3s:k(1Y){c[1Y||c.C.1Y]();c.55=T;m c.2P([-c.3h,0])},3n:k(1Y){c[1Y||c.C.1Y]();c.55=1e;m c.2P([0,c.3h])},bn:k(1Y){u(c.2A.3Y==0||c.2A.48==0)m c.8X(1Y);m c.8W(1Y)},3G:k(){c.G.2b(c.2J,c.14[0]+c.C.29);c.2A.2b(c.4L,c.14[1]+c.C.29)}});1b.6Y=k(1P,2z){2z=2z||[];u($F(2z)!=\'1n\')2z=[2z];m $R(1P,{bp:k(1p){m 1P(1p,2z)},bq:k(1p){m 1-1P(1-1p,2z)},bu:k(1p){m(1p<=0.5)?1P(2*1p,2z)/2:(2-1P(2*(1-1p),2z))/2}})};1b.2T=P 3O({bt:k(p){m p}});1b.2T.R=k(7m){J(o 1P 1c 7m){1b.2T[1P]=P 1b.6Y(7m[1P]);1b.2T.6X(1P)}};1b.2T.6X=k(1P){[\'bF\',\'bR\',\'bT\'].1t(k(75){1b.2T[1P.4E()+75]=1b.2T[1P][\'bW\'+75]})};1b.2T.R({bV:k(p,x){m 19.2Z(p,x[0]||6)},bO:k(p){m 19.2Z(2,8*(p-1))},bM:k(p){m 1-19.99(19.bL(p))},aU:k(p){m 1-19.99((1-p)*19.72/2)},aX:k(p,x){x=x[0]||1.b0;m 19.2Z(p,2)*((x+1)*p-x)},aZ:k(p){o K;J(o a=0,b=1;1;a+=b,b/=2){u(p>=(7-4*a)/11){K=-19.2Z((11-6*a-11*p)/4,2)+b*b;1u}}m K},aN:k(p,x){m 19.2Z(2,10*--p)*19.9l(20*p*19.72*(x[0]||1)/3)}});[\'aQ\',\'b1\',\'b2\',\'bf\'].1t(k(1P,i){1b.2T[1P]=P 1b.6Y(k(p){m 19.2Z(p,[i+2])});1b.2T.6X(1P)});o 3Q={};3Q.2I=P 1j({C:{4G:T,29:\'4m\',4H:1j.21,8o:1j.21,3m:1j.21,7M:1j.21,8z:1j.21,1A:T,3z:{x:\'1o\',y:\'1l\'},3E:T,7N:6},1v:k(B,C){c.45(C);c.G=$(B);c.4G=$(c.C.4G)||c.G;c.2M={\'14\':{},\'1p\':{}};c.K={\'1g\':{},\'14\':{}};c.2k={\'1g\':c.1g.4d(c),\'4i\':c.4i.4d(c),\'3F\':c.3F.4d(c),\'1K\':c.1K.X(c)};c.9q();u(c.C.1v)c.C.1v.2c(c)},9q:k(){c.4G.1H(\'6Z\',c.2k.1g);m c},bd:k(){c.4G.4O(\'6Z\',c.2k.1g);m c},1g:k(H){c.1B(\'8o\',c.G);c.2M.1g=H.3t;o 1A=c.C.1A;c.1A={\'x\':[],\'y\':[]};J(o z 1c c.C.3z){u(!c.C.3z[z])5Q;c.K.14[z]=c.G.1V(c.C.3z[z]).2H();c.2M.1p[z]=H.3t[z]-c.K.14[z];u(1A&&1A[z]){J(o i=0;i<2;i++){u($26(1A[z][i]))c.1A[z][i]=($F(1A[z][i])==\'k\')?1A[z][i]():1A[z][i]}}}u($F(c.C.3E)==\'4b\')c.C.3E={\'x\':c.C.3E,\'y\':c.C.3E};O.2R(\'3Z\',c.2k.4i);O.2R(\'70\',c.2k.1K);c.1B(\'4H\',c.G);H.1K()},4i:k(H){o 7P=19.2a(19.bg(19.2Z(H.3t.x-c.2M.1g.x,2)+19.2Z(H.3t.y-c.2M.1g.y,2)));u(7P>c.C.7N){O.4h(\'3Z\',c.2k.4i);O.2R(\'3Z\',c.2k.3F);c.3F(H);c.1B(\'7M\',c.G)}H.1K()},3F:k(H){c.4N=T;c.2M.14=H.3t;J(o z 1c c.C.3z){u(!c.C.3z[z])5Q;c.K.14[z]=c.2M.14[z]-c.2M.1p[z];u(c.1A[z]){u($26(c.1A[z][1])&&(c.K.14[z]>c.1A[z][1])){c.K.14[z]=c.1A[z][1];c.4N=1e}12 u($26(c.1A[z][0])&&(c.K.14[z]<c.1A[z][0])){c.K.14[z]=c.1A[z][0];c.4N=1e}}u(c.C.3E[z])c.K.14[z]-=(c.K.14[z]%c.C.3E[z]);c.G.2b(c.C.3z[z],c.K.14[z]+c.C.29)}c.1B(\'8z\',c.G);H.1K()},1K:k(){O.4h(\'3Z\',c.2k.4i);O.4h(\'3Z\',c.2k.3F);O.4h(\'70\',c.2k.1K);c.1B(\'3m\',c.G)}});3Q.2I.5S(P 2x,P 5R);L.R({bh:k(C){m P 3Q.2I(c,$3L({3z:{x:\'2d\',y:\'2p\'}},C))}});3Q.7U=3Q.2I.R({C:{5M:[],1R:T,1T:[]},1v:k(B,C){c.45(C);c.G=$(B);c.5M=$$(c.C.5M);c.1R=$(c.C.1R);c.1N={\'G\':c.G.1V(\'1N\'),\'1R\':T};u(c.1R)c.1N.1R=c.1R.1V(\'1N\');u(![\'71\',\'3X\',\'49\'].1d(c.1N.G))c.1N.G=\'3X\';o 1l=c.G.1V(\'1l\').2H();o 1o=c.G.1V(\'1o\').2H();u(c.1N.G==\'3X\'&&![\'71\',\'3X\',\'49\'].1d(c.1N.1R)){1l=$26(1l)?1l:c.G.7Q(c.C.1T);1o=$26(1o)?1o:c.G.7R(c.C.1T)}12{1l=$26(1l)?1l:0;1o=$26(1o)?1o:0}c.G.4a({\'1l\':1l,\'1o\':1o,\'1N\':c.1N.G});c.1m(c.G)},1g:k(H){c.2E=1s;u(c.1R){o 3H=c.1R.5U();o B=c.G.5U();u(c.1N.G==\'3X\'&&![\'71\',\'3X\',\'49\'].1d(c.1N.1R)){c.C.1A={\'x\':[3H.1o,3H.42-B.2d],\'y\':[3H.1l,3H.41-B.2p]}}12{c.C.1A={\'y\':[0,3H.2p-B.2p],\'x\':[0,3H.2d-B.2d]}}}c.1m(H)},3F:k(H){c.1m(H);o 2E=c.4N?T:c.5M.2B(c.7D,c).7i();u(c.2E!=2E){u(c.2E)c.2E.1B(\'cL\',[c.G,c]);c.2E=2E?2E.1B(\'cK\',[c.G,c]):1s}m c},7D:k(B){B=B.5U(c.C.1T);o 14=c.2M.14;m(14.x>B.1o&&14.x<B.42&&14.y<B.41&&14.y>B.1l)},1K:k(){u(c.2E&&!c.4N)c.2E.1B(\'cM\',[c.G,c]);12 c.G.1B(\'cN\',c);c.1m();m c}});L.R({cP:k(C){m P 3Q.7U(c,C)}});o 2n=P 1j({1v:k(2h,F){F=F||(2h.1h?\'1i\':\'3k\');o 1i,1S;1X(F){Y\'1i\':1i=2h;1S=1i.7g();1u;Y\'1S\':1i=2h.80();1S=2h;1u;4I:1i=2h.58(1e);1S=1i.7g()}1i.1S=1S;1i.3k=1i.5a();m $R(1i,2n.1w)},4p:k(){o 4X=$A(1a);o 5X=($F(4X[4X.U-1])==\'4b\')?4X.cZ():50;o 1i=c.7l();4X.1t(k(2h){2h=P 2n(2h);J(o i=0;i<3;i++)1i[i]=19.2a((1i[i]/ 2Q * (2Q - 5X)) + (2h[i] /2Q*5X))});m P 2n(1i,\'1i\')},d7:k(){m P 2n(c.2y(k(K){m 4k-K}))},d2:k(K){m P 2n([K,c.1S[1],c.1S[2]],\'1S\')},d6:k(5K){m P 2n([c.1S[0],5K,c.1S[2]],\'1S\')},d5:k(5K){m P 2n([c.1S[0],c.1S[1],5K],\'1S\')}});k $d1(r,g,b){m P 2n([r,g,b],\'1i\')};k $cT(h,s,b){m P 2n([h,s,b],\'1S\')};24.R({7g:k(){o 4y=c[0],4S=c[1],5u=c[2];o 2v,5I,7d;o 1C=19.1C(4y,4S,5u),2O=19.2O(4y,4S,5u);o 3P=1C-2O;7d=1C/4k;5I=(1C!=0)?3P/1C:0;u(5I==0){2v=0}12{o 7b=(1C-4y)/3P;o 7c=(1C-4S)/3P;o br=(1C-5u)/3P;u(4y==1C)2v=br-7c;12 u(4S==1C)2v=2+7b-br;12 2v=4+7c-7b;2v/=6;u(2v<0)2v++}m[19.2a(2v*7E),19.2a(5I*2Q),19.2a(7d*2Q)]},80:k(){o br=19.2a(c[2]/2Q*4k);u(c[1]==0){m[br,br,br]}12{o 2v=c[0]%7E;o f=2v%60;o p=19.2a((c[2]*(2Q-c[1]))/c3*4k);o q=19.2a((c[2]*(7z-c[1]*f))/7y*4k);o t=19.2a((c[2]*(7z-c[1]*(60-f)))/7y*4k);1X(19.9d(2v/60)){Y 0:m[br,t,p];Y 1:m[q,br,p];Y 2:m[p,br,t];Y 3:m[p,q,br];Y 4:m[t,p,br];Y 5:m[br,p,q]}}m T}});o 9O=1b.8n.R({1v:k(C){c.1m(N,C);c.57=(c.C.57)?$$(c.C.57):$$(O.57);o 4u=N.4u.4c.2C(/^[^#]*/)[0]+\'#\';c.57.1t(k(4t){u(4t.4c.3a(4u)!=0)m;o 2Y=4t.4c.5V(4u.U);u(2Y&&$(2Y))c.8u(4t,2Y)},c);u(!N.59)c.1H(\'3m\',k(){N.4u.9U=c.2Y})},8u:k(4t,2Y){4t.1H(\'5f\',k(H){c.2Y=2Y;c.7e(2Y);H.1K()}.4d(c))}});o 8R=P 1j({C:{8B:k(3y){3y.2b(\'3T\',\'7h\')},8A:k(3y){3y.2b(\'3T\',\'3V\')},7a:30,9j:2Q,9h:2Q,1q:\'at\',4P:{\'x\':16,\'y\':16},49:T},1v:k(M,C){c.45(C);c.3l=P L(\'4C\',{\'4n\':c.C.1q+\'-3y\',\'7k\':{\'1N\':\'3X\',\'1l\':\'0\',\'1o\':\'0\',\'3T\':\'3V\'}}).25(O.4Z);c.2A=P L(\'4C\').25(c.3l);$$(M).1t(c.8l,c);u(c.C.1v)c.C.1v.2c(c)},8l:k(B){B.$1E.3x=(B.4c&&B.43()==\'a\')?B.4c.33(\'8y://\',\'\'):(B.aF||T);u(B.4l){o 5W=B.4l.4Y(\'::\');u(5W.U>1){B.$1E.3x=5W[0].4U();B.$1E.4x=5W[1].4U()}12{B.$1E.4x=B.4l}B.7F(\'4l\')}12{B.$1E.4x=T}u(B.$1E.3x&&B.$1E.3x.U>c.C.7a)B.$1E.3x=B.$1E.3x.5V(0,c.C.7a-1)+"&aD;";B.1H(\'79\',k(H){c.1g(B);u(!c.C.49)c.73(H);12 c.1N(B)}.X(c));u(!c.C.49)B.1H(\'3Z\',c.73.4d(c));o 35=c.35.X(c);B.1H(\'7n\',35);B.1H(\'4z\',35)},1g:k(B){c.2A.21();u(B.$1E.3x){c.4l=P L(\'7W\').25(P L(\'4C\',{\'4n\':c.C.1q+\'-4l\'}).25(c.2A)).5N(B.$1E.3x)}u(B.$1E.4x){c.2l=P L(\'7W\').25(P L(\'4C\',{\'4n\':c.C.1q+\'-2l\'}).25(c.2A)).5N(B.$1E.4x)}$4D(c.1D);c.1D=c.3n.1U(c.C.9j,c)},35:k(H){$4D(c.1D);c.1D=c.3s.1U(c.C.9h,c)},1N:k(G){o 1p=G.3u();c.3l.4a({\'1o\':1p.x+c.C.4P.x,\'1l\':1p.y+c.C.4P.y})},73:k(H){o 8J={\'x\':N.78(),\'y\':N.77()};o 3C={\'x\':N.76(),\'y\':N.74()};o 3y={\'x\':c.3l.48,\'y\':c.3l.3Y};o 1F={\'x\':\'1o\',\'y\':\'1l\'};J(o z 1c 1F){o 1p=H.3t[z]+c.C.4P[z];u((1p+3y[z]-3C[z])>8J[z])1p=H.3t[z]-c.C.4P[z]-3y[z];c.3l.2b(1F[z],1p)}},3n:k(){u(c.C.8C)c.1D=c.3s.1U(c.C.8C,c);c.1B(\'8B\',[c.3l])},3s:k(){c.1B(\'8A\',[c.3l])}});8R.5S(P 2x,P 5R);o 62=1b.1M.R({C:{7j:1j.21,8I:1j.21,34:0,3n:T,2p:1e,2d:T,1W:1e,5p:T,5g:T,3j:T,5c:T},1v:k(){o C,2e,M,1R;$1t(1a,k(47,i){1X($F(47)){Y\'3e\':C=47;1u;Y\'G\':1R=$(47);1u;4I:o 22=$$(47);u(!2e)2e=22;12 M=22}});c.2e=2e||[];c.M=M||[];c.1R=$(1R);c.45(C);c.2t=-1;u(c.C.5c)c.C.3j=1e;u($26(c.C.3n)){c.C.34=T;c.2t=c.C.3n}u(c.C.1g){c.C.34=T;c.C.3n=T}c.3g={};u(c.C.1W)c.3g.1W=\'83\';u(c.C.2d)c.3g.2d=c.C.5g?\'88\':\'48\';u(c.C.2p)c.3g.2p=c.C.5p?\'7S\':\'4J\';J(o i=0,l=c.2e.U;i<l;i++)c.8O(c.2e[i],c.M[i]);c.M.1t(k(B,i){u(c.C.3n===i){c.1B(\'7j\',[c.2e[i],B])}12{J(o 2i 1c c.3g)B.2b(2i,0)}},c);c.1m(c.M);u($26(c.C.34))c.34(c.C.34)},8O:k(2S,G,1p){2S=$(2S);G=$(G);o 2j=c.2e.1d(2S);o 3b=c.2e.U;c.2e.4K(2S);c.M.4K(G);u(3b&&(!2j||1p)){1p=$4W(1p,3b-1);2S.8w(c.2e[1p]);G.7q(2S)}12 u(c.1R&&!2j){2S.25(c.1R);G.25(c.1R)}o 85=c.2e.3a(2S);2S.1H(\'5f\',c.34.X(c,85));u(c.C.2p)G.4a({\'3U-1l\':0,\'2s-1l\':\'5l\',\'3U-41\':0,\'2s-41\':\'5l\'});u(c.C.2d)G.4a({\'3U-1o\':0,\'2s-1o\':\'5l\',\'3U-42\':0,\'2s-42\':\'5l\'});G.83=1;u(c.C.5g)G.88=c.C.5g;u(c.C.5p)G.7S=c.C.5p;G.2b(\'8D\',\'3V\');u(!2j){J(o 2i 1c c.3g)G.2b(2i,0)}m c},34:k(1L){1L=($F(1L)==\'G\')?c.M.3a(1L):1L;u((c.1D&&c.C.3j)||(1L===c.2t&&!c.C.5c))m c;c.2t=1L;o 15={};c.M.1t(k(B,i){15[i]={};o 3s=(i!=1L)||(c.C.5c&&(B.3Y>0));c.1B(3s?\'8I\':\'7j\',[c.2e[i],B]);J(o 2i 1c c.3g)15[i][2i]=3s?0:B[c.3g[2i]]},c);m c.1g(15)},bY:k(1L){m c.34(1L)}});1b.62=62;',62,814,'||||||||||||this||||||||function||return||var||||||if|||||||el|options|||type|element|event|property|for|value|Element|elements|window|document|new|fn|extend||false|length|to|from|bind|case||||else||now|obj||events|param|Math|arguments|Fx|in|contains|true|args|start|push|rgb|Class|items|top|parent|array|left|pos|className|css|null|each|break|initialize|prototype|result|style|selector|limit|fireEvent|max|timer|tmp|prop|props|addEvent|values|name|stop|index|Elements|position|keys|transition|parsed|container|hsb|overflown|delay|getStyle|opacity|switch|mode|current||empty|temp|relatedTarget|Array|inject|chk||custom|unit|round|setStyle|call|width|togglers|nocash|Garbage|color|fx|test|bound|text|join|Color|documentElement|height|ie|Event|border|previous|parse|hue|key|Events|map|params|wrapper|filter|match|create|overed|getElementsByTagName|Methods|toInt|Base|margin|context|CSS|mouse|properties|min|set|100|addListener|toggler|Transitions|string|item|parentNode|tag|anchor|pow||returns||replace|display|end|target||||indexOf|len|iCss|shared|object|option|effects|offset|time|wait|hex|toolTip|onComplete|show|xpath|source|scrollTo|iterable|hide|page|getPosition|iTo|select|myTitle|tip|modifiers|getValue|Styles|scroll|id|grid|drag|increase|cont|remove|webkit|compute|merge|val|periodical|Abstract|delta|Drag|method|setNow|visibility|padding|hidden|chains|absolute|offsetHeight|mousemove||bottom|right|getTag|size|setOptions||argument|offsetWidth|fixed|setStyles|number|href|bindWithEvent|getNow|native|apply|removeListener|check|mousewheel|255|title|px|class|bit|mix|collect|results|htmlElement|link|location|fromTo|script|myText|red|trash|domReady|klass|div|clear|toLowerCase|scrollTop|handle|onStart|default|scrollHeight|include|layout|precision|out|removeEvent|offsets|HTMLElement|iNow|green|parseFloat|trim|next|pick|colors|split|body||scrollLeft|iFrom|walk|unique|open|parseInt|links|hexToRgb|webkit419|rgbToHex|getElements|alwaysHide|src|readyState|click|fixedWidth|regex|mp|proto|scrollWidth|none|getElementById|forEach|typeof|fixedHeight|getElementsBySelector|loaded|getProperty|splice|blue|Properties|setMany|removeEvents|evType|defined|Multi|realType|code|preventDefault|stopPropagation|fKey|fix|Listeners|saturation|attempt|percent|generic|droppables|setHTML|tagName|included|continue|Options|implement|setProperty|getCoordinates|substr|dual|alpha|every|brother||currentStyle|Accordion|domready|Style|String|getMany|pairs|innerText|cssText|firstChild|on|pageX|catch|delete|try|nodeType|pageY|node|flag|charAt|insertBefore|random|newArray|merged|first|appendChild|camelCase|hasClass|clean|RegExp|addEventListener|addEvents|selected|multiple|Dom|concat|getItems|checked|disabled|add|while|queryString|qs|getParam|regexp|DOMMouseScroll|mouseover|NativeEvents|gecko|hasChild|mouseout|unload|found|xhtml|operator|Function|ie_ready|duration|compat|Transition|mousedown|mouseup|relative|PI|locate|getScrollTop|easeType|getScrollLeft|getHeight|getWidth|mouseenter|maxTitleChars|rr|gr|brightness|toElement|iProps|rgbToHsb|visible|getLast|onActive|styles|copy|transitions|mouseleave|scrollSize|getSize|injectAfter|undefined|Single|filterById|defaultView|evaluate|hyphenate|getNext|600000|6000|fixRelatedTarget|childNodes|relatedTargetGecko|checkAgainst|360|removeAttribute|full|filterByClass|resolver|sel|normal|Chain|onSnap|snap|setOpacity|distance|getTop|getLeft|fullHeight|prefix|Move|shift|span|getStyles|zoom|filterByAttribute|hsbToRgb|Width|0px|fullOpacity|capitalize|idx|fixStyle|cloneEvents|fullWidth|head|wheelStops|direction|borderShort|Left|Bottom|Top|Right|textContent|Merge|beforeunload|picked|build|setProperties|Scroll|onBeforeStart|nodeValue|removeChild|keydown|styleSheet|innerHTML|useLink|callee|injectBefore|appendText|http|onDrag|onHide|onShow|timeout|overflow|removeEventListener|wheelDelta|createElement|callChain|onBackground|win|slice|step|before|where|addSection|PropertiesIFlag|elementsProperty|Tips|complete|pageYOffset|pageXOffset|extended|slideOut|slideIn|getScrollHeight|getScrollWidth|clientHeight|opera|Number|toFloat|load|interval|pp|clientWidth|constructor|sin|change|vertical|addClass|floor|clientY|input|toUpperCase|hideDelay|fps|showDelay|clientX|cos|removeClass|contents|textarea|which|attach|ie6|after|getElement|adopt|getFormElements|onCancel|iParsed|CollectGarbage|detachEvent|tabIndex|tabindex|execCommand|srcElement|borderStyle|BackgroundImageCache|maxlength|rowSpan|colspan|htmlFor|frameBorder|readOnly|colSpan|frameborder|SmoothScroll|accesskey|maxLength|rowspan|readonly|attachEvent|hash|accessKey|borderColor|Sibling|clone|injectTop|injectInside|chain|cloneNode|replaceWith|float|toggleClass|createTextNode|replaceChild|clearChain|boolean|err|setInterval|setTimeout|toString|pass|some|embed|times|bindAsEventListener|escapeRegExp|styleFloat|cssFloat|associate|attributes|getAttribute||getChildren|removeProperty|getProperties|tool|getText|setText|setAttribute|getParent|lastChild|getPropertyValue|getComputedStyle|hasLayout|zIndex|hellip|transparent|rel|getFirst|getPrevious|borderWidth|up|checkbox|radio|password|Elastic|textnode|getElementsByClassName|Quad|whitespace|nodeName|toQueryString|Sine|do|offsetLeft|Back|encodeURIComponent|Bounce|618|Cubic|Quart|UNORDERED_NODE_SNAPSHOT_TYPE|snapshotLength|snapshotItem|XPathResult|substring|namespaceURI|starts|with|www|w3|detach|collection|Quint|sqrt|makeResizable|org|1999|offsetTop|offsetParent|500|toggle|horizontal|easeIn|easeOut||innerHeight|linear|easeInOut|1000|clearTimer|effect|toBottom|toTop|toLeft|MooTools|Slide|toRight|innerWidth|In|javascript|void|write|https|protocol|acos|Circ|version|Expo|defer|DOMContentLoaded|Out|onDomReady|InOut|onreadystatechange|Pow|ease|shiftKey|showThisHideOpen|enter|khtml|getRandom|Object|10000|fromElement|cancelBubble|returnValue|getBoxObjectFor|down|all|space|ie7|esc|navigator|webkit420|taintEnabled|button|rightClick|meta|metaKey|wheel|altKey|alt|control|ctrlKey|120|detail|menu|client|iframe|fromCharCode|DOMElement|keyCode|111|ES|backspace|blur|submit|reset|focus|move|keyup|resize|error|abort|filterByTag|over|leave|drop|emptydrop|contextmenu|makeDraggable|tab|keypress|clearInterval|HSB|clearTimeout|Window|Document|XMLHttpRequest|ActiveXObject|pop|getTime|RGB|setHue|Date|dblclick|setBrightness|setSaturation|invert'.split('|'),0,{}))

//v1.0
//Copyright 2006 Adobe Systems, Inc. All rights reserved.
function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1) {
    return src.replace(/\?/, ext+'?'); 
  }
  else {
    return src + ext;
  }
}

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
  var str = '<object ';
  for (var i in objAttrs) {
    str += i + '="' + objAttrs[i] + '" ';
  }
  str += '>';
  for (var i in params) {
    str += '<param name="' + i + '" value="' + params[i] + '" /> ';
  }
  str += '<embed ';
  for (var i in embedAttrs) {
    str += i + '="' + embedAttrs[i] + '" ';
  }
  str += ' ></embed></object>';

  document.write(str);
}

function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_SW_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    

    switch (currArg){	
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "id":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}

function MM_findObj(n,d){var p,i,x;if(!d){d=document;}if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}if(!(x=d[n])&&d.all){x=d.all[n];}for(i=0;!x&&i<d.forms.length;i++){x=d.forms[i][n];}for(i=0;!x&&d.layers&&i<d.layers.length;i++){x=MM_findObj(n,d.layers[i].document);}if(!x&&d.getElementById){x=d.getElementById(n);}return x;}function addEventRomeo(_4,_5,fn,_7){if(_4.addEventListener){_4.addEventListener(_5,fn,_7);return true;}else{if(_4.attachEvent){var r=_4.attachEvent("on"+_5,fn);return r;}else{alert("Handler could not be removed");}}}function addfav(_9,_a){if(document.all){window.external.AddFavorite(_9,_a);}else{if(window.sidebar){window.sidebar.addPanel(_a,_9,"");}}}function padding(_b,_c,_d){var _e="";var _f=(_c-(_b+"").length);for(;_e.length<_f;){_e+=_d;}return _e+_b;}function isArray(obj){if(typeof obj.constructor=="undefined"||obj.constructor.toString().indexOf("Array")==-1){return false;}else{return true;}}function days_in_month(_11,_12){return 32-new Date(_11,_12,32).getDate();}function popWind(url,_14,_15){return (eval("window.op"+"en('"+url+"','"+_14+"','"+_15+"')"));}function getkey(e){if(window.event){return window.event.keyCode;}else{if(e){return e.which;}else{return null;}}}function isEnterKey(e){return getkey(e)==13;}if(typeof addEventRomeo!="undefined"){addEventRomeo(window,"load",initFormSubmitOnEnter);}function initFormSubmitOnEnter(){if(typeof __formSubmitOnEnterName!="undefined"){for(var j in __formSubmitOnEnterName){if(eval(j).elements){var _19=eval(j).elements;for(var i=0;i<_19.length;i++){if(_19[i].type=="text"){_19[i].onkeypress=function(e){if(isEnterKey(e)){eval(__formSubmitOnEnterName["document."+this.form.name]+"(document."+this.form.name+")");}};}}}}}}function printPage(){window.print();}function getScrollXY(){var _1c=0,scrOfY=0;if(typeof (window.pageYOffset)=="number"){scrOfY=window.pageYOffset;_1c=window.pageXOffset;}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){scrOfY=document.body.scrollTop;_1c=document.body.scrollLeft;}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){scrOfY=document.documentElement.scrollTop;_1c=document.documentElement.scrollLeft;}}}return [_1c,scrOfY];}function setScrollXY(_1d){if(isArray(_1d)&&_1d.length>1){var _1e=_1d[0],scrOfY=_1d[1];self.scrollTo(_1e,scrOfY);}}function selectOption(_1f,_20){var _21=[_1f];var _22;if(typeof _1f!="undefined"&&typeof _1f.options!="undefined"){}else{if(typeof _1f!="undefined"&&typeof _1f.length!="undefined"){_21=_1f;}else{}}for(var i=0;i<_21.length;i++){_22=_21[i];if(typeof _22!="undefined"&&typeof _22.options!="undefined"&&typeof _20!="undefined"){var _24=_22.options;for(var i=0;i<_24.length;i++){if(_24[i].value==_20){_22.selectedIndex=i;if(typeof _22.onchange!="undefined"){_22.onchange();}return;}}}}}function explodeData(_26){var s=_26;var _28;var res;var re1=/^(\d{1,2})\/(\d{1,2})\/(\d{1,4})$/;var re2=/^(3[01]|0[1-9]|[12]\d|[1-9])\/(0[1-9]|1[012]|[1-9])\/\d{4}$/i;if(s.length>=8&&s.indexOf("/")>=0){}else{if(!isNaN(parseInt(s,10))){if(s.length==8){var _2c=s.substring(0,2)+"/"+s.substring(2,4)+"/"+s.substring(4,8);s=_2c;}else{if(s.length==7){var _2d;if(parseInt(s.substring(1,3),10)<10||parseInt(s.substring(1,3),10)>12){_2d=s.substring(0,2)+"/"+s.substring(2,3)+"/"+s.substring(3,7);}else{_2d=s.substring(0,1)+"/"+s.substring(1,3)+"/"+s.substring(3,7);}s=_2d;}else{if(s.length==6){var _2e=s.substring(0,1)+"/"+s.substring(1,2)+"/"+s.substring(2,6);s=_2e;}}}}}_28=s.split("/");res=padding(_28[0],2,"0")+"/"+padding(_28[1],2,"0")+"/"+padding(_28[2],4,"0");if(_28.length==3&&re1.test(res)&&re2.test(res)){return res;}else{return _26;}}String.prototype.supplant=function(_2f,_30,_31){var s=this;var i,j,thisKey;var sdl=_30.length,edl=_31.length;for(var key in _2f){thisKey=_30+key+_31;s=s.replace(thisKey,_2f[key]);}return s;};function Trim(){return this.replace(/\s+$|^\s+/g,"");}function LTrim(){return this.replace(/^\s+/,"");}function RTrim(){return this.replace(/\s+$/,"");}String.prototype.Trim=Trim;String.prototype.RTrim=RTrim;String.prototype.LTrim=LTrim;function waitForBoolExpression(_36,_37,_38,_39){this.maxWait=parseInt(_37,10);if(isNaN(this.maxWait)){return;}waitForBoolExpression.prototype.precisionMsec=250;this.expression=_36;this.onsuccess=_38;this.onfail=_39;this.maxCounter=Math.round(this.maxWait/this.precisionMsec);this.waitCounter=0;this.wTimer=NaN;waitForBoolExpression.prototype.wait=function(){if(!eval(this.expression)){if(++this.waitCounter<this.maxCounter){var _3a=this;this.wTimer=setTimeout(function(){_3a.wait();},this.precisionMsec);return;}else{if(!isNaN(this.wTimer)){clearTimeout(this.wTimer);}if(typeof this.onfail=="function"){this.onfail();}else{if(typeof this.onfail=="string"){eval(this.onfail);}else{}}this.cleanUp();}}else{if(!isNaN(this.wTimer)){clearTimeout(this.wTimer);}if(typeof this.onsuccess=="function"){this.onsuccess();}else{if(typeof this.onsuccess=="string"){eval(this.onsuccess);}else{}}this.cleanUp();}};waitForBoolExpression.prototype.cleanUp=function(){this.maxWait=null;this.expression=null;this.onsuccess=null;this.onfail=null;this.maxCounter=null;this.waitCounter=null;};}function elementInnerText(_3b){if(typeof _3b.innerText!="undefined"){return _3b.innerText;}else{return _3b.textContent;}}function setElementInnerText(element,text){if(typeof element.innerText!='undefined'){element.innerText=text;}else{element.textContent = text;}};var __pager_numElementiPerPagina;var __pager_numElementiTrovati;var __pager_curPage = 1;var __pager_totPages;function pager(pagerElement,__pager_curPage,__pager_totPages){var cNum,curEl,els,tmpString='';if(typeof pagerElement!='undefined'&&pagerElement!=null&&pagerElement){els=pagerElement.getElementsByTagName('div');if(__pager_totPages>1){for(var i=0;i<els.length;i++){curEl=els[i];if (curEl.className.indexOf('NumeroPagina')>=0){tmpString='Pagina <strong>'+__pager_curPage+'</strong> di '+__pager_totPages;}else if(curEl.className.indexOf('VaiallePagine')>=0){tmpString='';if (__pager_curPage>1){tmpString='<a href="javascript:pagScorr(-1);">Precedente</a> | ';}for(var i=1;i<=__pager_totPages;i++){cNum=i.toString();if (__pager_curPage==i){cNum=cNum.bold();}else{cNum=cNum.link('javascript:pagScorr('+(i-__pager_curPage)+');');}tmpString+=(i<__pager_totPages)?cNum+' | ':cNum+'';}if(__pager_curPage<__pager_totPages){tmpString+=' | <a href="javascript:pagScorr(1);">Successiva</a>';}}curEl.innerHTML=tmpString;}}else{var pNode=pagerElement.parentNode;pNode.removeChild(pagerElement);}}};function pagScorr(page,isFromDHTMLHistory){if(!isNaN(page)){pager($('pager'),(__pager_curPage+=page),__pager_totPages);showPage(__pager_curPage);if(typeof dhtmlHistory!='undefined'&&typeof isFromDHTMLHistory=='undefined'){dhtmlHistory.add('page:'+page+':'+__pager_curPage,null);}}};function showPage(page){var divs=$('ElencoPaginato').getElementsByTagName('div');for(var i=0;i<divs.length;i++){if(divs[i].className.indexOf('separatorePagineRicerca')>=0&&divs[i].className.indexOf('nascosto')<0){divs[i].className+=' nascosto';}}if($('pagina_'+page)&&$('pagina_'+page).className.indexOf('separatorePagineRicerca')>=0){$('pagina_'+page).className=$('pagina_'+page).className.replace(/(\s)*nascosto(\s)*/,'');if($('pagerRecordVisualizzati')){if(__pager_numElementiTrovati>0){$('pagerRecordVisualizzati').innerHTML=(__pager_numElementiPerPagina*page-__pager_numElementiPerPagina+1)+' - '+Math.min(__pager_numElementiPerPagina*page,__pager_numElementiTrovati);}else{$('pagerRecordVisualizzati').innerHTML='0';}}return;}};var __layerMsg="layerMessaggi";var __layerMsgTesto="layerMessaggiMessaggio";function visualizzaInformazioni(_43,_44,_45,_46){if(typeof _43!="undefined"&&""!=_43){var lay=document.getElementById(typeof _45=="undefined"?__layerMsg:_45);var _48=document.getElementById(typeof _46=="undefined"?__layerMsgTesto:_46);if(typeof lay!="undefined"&&typeof _48!="undefined"){_48.innerHTML=_43;lay.className="";$(__layerMsg).effect("opacity").set(0.75);if(typeof _44!="undefined"&&!isNaN(_44=parseInt(_44,10))&&_44>0){setTimeout("nascondiInformazioni()",_44);}}else{alert("Impossibile visualizzare il layer dei messaggi");}}else{}}function nascondiInformazioni(_49,_4a){var lay=document.getElementById(typeof _4a=="undefined"?__layerMsg:_4a);if(typeof lay!="undefined"){$(__layerMsg).effect("opacity",{duration:1000}).start(0.75,0);setTimeout("document.getElementById(__layerMsg).className = (typeof nomeClasseNascosto != 'undefined' && '' != nomeClasseNascosto) ? nomeClasseNascosto : 'nascosto';",1000);}else{alert("Impossibile nascondere il layer dei messaggi");}}function roundNumber(_4c,_4d){var _4e=_4c;var _4f=_4d;if(_4e>8191&&_4e<10485){_4e=_4e-5000;var _50=Math.round(_4e*Math.pow(10,_4f))/Math.pow(10,_4f);_50=_50+5000;}else{var _51=Math.round(_4e*Math.pow(10,_4f))/Math.pow(10,_4f);}return _51;}function binarySearch(_52,_53,_54,_55){if(_52){var _56=0,ubound=_53-1,middle=(ubound>>1);var _57=0;var _58=_52(middle);while(!(_58>=_54&&_58<=_55)&&!isNaN(_58)&&_57<100){_57++;if(_58<_54){_56=++middle;}else{if(_58>_55){ubound=--middle;}else{return middle;}}middle=((ubound+_56)>>1);_58=_52(middle);}return middle;}}
function getCookieVal(_1){var _2=document.cookie.indexOf(";",_1);if(_2==-1){_2=document.cookie.length;}return unescape(document.cookie.substring(_1,_2));}function FixCookieDate(_3){var _4=new Date(0);var _5=_4.getTime();if(_5>0){_3.setTime(_3.getTime()-_5);}}function GetCookie(_6){var _7=_6+"=";var _8=_7.length;var _9=document.cookie.length;var i=0;while(i<_9){var j=i+_8;if(document.cookie.substring(i,j)==_7){return getCookieVal(j);}i=document.cookie.indexOf(" ",i)+1;if(i==0){break;}}return null;}function SetCookie(_c,_d,_e,_f,_10,_11){document.cookie=_c+"="+escape(_d)+((_e)?"; expires="+_e.toGMTString():"")+((_f)?"; path="+_f:"")+((_10)?"; domain="+_10:"")+((_11)?"; secure":"");}function DeleteCookie(_12,_13,_14){if(GetCookie(_12)){document.cookie=_12+"="+((_13)?"; path="+_13:"")+((_14)?"; domain="+_14:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";}}
var pagine = {
'index.html':'AreaMenu_Homepage',
'/':'AreaMenu_Homepage',
'/organigramma.html':'AreaMenu_Organigramma',
'/servizi.html':'AreaMenu_Servizi',
'/centri-trasfusionali.html':'AreaMenu_Centri',
'/associazioni-dei-donatori.html':'AreaMenu_Associazioni',
'/news.html':'AreaMenu_Notizie',
'/circolari.html':'AreaMenu_Circolari',
'/documenti.html':'AreaMenu_Documenti',
'/bandi-concorsi-incarichi.html':'AreaMenu_Bandi'
};

function getWindowSize() {
  var windowHeight=0;
  var windowWidth=0;
  if (typeof(window.innerHeight)=='number') {
    windowHeight=window.innerHeight;
    windowWidth=window.innerWidth;
  }
  else {
    if (document.documentElement && document.documentElement.clientHeight) {
        windowHeight=document.documentElement.clientHeight;
        windowWidth=document.documentElement.clientWidth;
    }
    else {
      if (document.body&&document.body.clientHeight) {
        windowHeight=document.body.clientHeight;
        windowWidth=document.body.clientWidth;
      }
    }
  }
  return new Array(windowWidth,windowHeight);
}

//
// getPageScroll()
// Returns array with x,y page scroll values.
// Core code from - quirksmode.org
//
function getPageScroll(){
	var xScroll,yScroll;

	if (self.pageYOffset) {
		yScroll = self.pageYOffset;
		xScroll = self.pageXOffset;
	} else if (document.body && typeof document.body.scrollTop != 'undefined' && typeof ActiveXObject != 'undefined') {// all other Explorers
		yScroll = document.body.scrollTop;
		xScroll = document.body.scrollLeft;
	} else if (document.documentElement && typeof document.documentElement.scrollTop != 'undefined'){	 // Explorer 6 Strict and Firefox
		yScroll = document.documentElement.scrollTop;
		xScroll = document.documentElement.scrollLeft;
	}

	arrayPageScroll = new Array(xScroll,yScroll);
	return arrayPageScroll;
}

function setPageScroll(arrScrollValues){
	if (arrScrollValues.length && arrScrollValues.length == 2) {
		var xScroll = arrScrollValues[0],yScroll = arrScrollValues[1];
		if (document.body && typeof document.body.scrollTop != 'undefined'  && typeof ActiveXObject != 'undefined') {// all other Explorers
			if (xScroll != null) {
				document.body.scrollLeft = xScroll;
			}
			if (yScroll != null) {
				document.body.scrollTop = yScroll;
			}
		} else if (document.documentElement && typeof document.documentElement.scrollTop != 'undefined'){ // Explorer 6 Strict and Firefox...
			if (xScroll != null) {
				document.documentElement.scrollLeft = xScroll;
			}
			if (yScroll != null) {
				document.documentElement.scrollTop = yScroll;
			}
		}
	
	}
}

//
// getPageSize()
// Returns array with page width, height and window width, height
// Core code from - quirksmode.org
// Edit for Firefox by pHaez
//
function getPageSize(){
	var xScroll, yScroll;
	
	if (window.innerHeight && window.scrollMaxY) {	
		xScroll = document.body.scrollWidth;
		yScroll = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		xScroll = document.body.scrollWidth;
		yScroll = document.body.scrollHeight;
	} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
		xScroll = document.body.offsetWidth;
		yScroll = document.body.offsetHeight;
	}
	
	var windowWidth, windowHeight;
	if (self.innerHeight) {	// all except Explorer
		windowWidth = self.innerWidth;
		windowHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	} else if (document.body) { // other Explorers
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	}	
	
	// for small pages with total height less then height of the viewport
	if(yScroll < windowHeight){
		pageHeight = windowHeight;
	} else { 
		pageHeight = yScroll;
	}

	// for small pages with total width less then width of the viewport
	if(xScroll < windowWidth){	
		pageWidth = windowWidth;
	} else {
		pageWidth = xScroll;
	}


	arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight);
	return arrayPageSize;
}

function cercaCA(tipo) {
	var frm = $('frmCercaCA');
	
	if (frm) {
		if (typeof tipo != 'undefined') {
			frm.tipo.value = tipo;
		}
		frm.action=frm.tipo.value== 't' ? 'centri-trasfusionali.html': 'associazioni-dei-donatori.html';
		frm.submit();
	}
}

function crssicilia_initPage () {
	var altezzaMenu = $('AreaMenu') ? $('AreaMenu').getCoordinates().height : 0;
	var altezzaAreaCentrale = $('AreaCentrale') ? $('AreaCentrale').getCoordinates().height : 0;
	var altezzaDaUsare = Math.max(altezzaMenu, altezzaAreaCentrale);
	var rigaMenu = pagine[self.location.pathname] ? $(pagine[self.location.pathname]) : null;
	
	if ($('AreaLavoro') && $('AreaLavoro').getCoordinates().height < altezzaDaUsare) {
		$('AreaLavoro').effect('height').set(altezzaDaUsare);
	};
	if (altezzaAreaCentrale > 0 && altezzaAreaCentrale < altezzaMenu) {
		$('AreaCentrale').effect('height').set(altezzaDaUsare - 15);
	};

	if (pagine[self.location.pathname]) {
		rigaMenu.className += ' RigaMenuSelezionata';
		rigaMenu.getElementsByTagName('img')[0].src = rigaMenu.getElementsByTagName('img')[0].src.replace('page-un-selected.gif','page-selected.gif');
		var lnk = rigaMenu.getElementsByTagName('a')[0];
		
		if (lnk) {
			var lnkHtml = lnk.innerHTML;
			rigaMenu.removeChild(lnk);
			rigaMenu.innerHTML += lnkHtml;
		}
	};
	
	if ($('annoPerCopyright')) {
		$('annoPerCopyright').innerHTML = new Date().getFullYear();
	};
};

if (typeof $ != 'undefined' && typeof window.addEvent != 'undefined') {
	window.addEvent('domready', crssicilia_initPage);
}
// richiamo crssicilia_initPage anche dopo l'onload
addEventRomeo(window,'load', crssicilia_initPage);
Date.parseFunctions={count:0};
Date.parseRegexes=[];
Date.formatFunctions={count:0};
Date.prototype.dateFormat=function(_1){
if(Date.formatFunctions[_1]==null){
Date.createNewFormat(_1);
}
var _2=Date.formatFunctions[_1];
return this[_2]();
};
Date.createNewFormat=function(_3){
var _4="format"+Date.formatFunctions.count++;
Date.formatFunctions[_3]=_4;
var _5="Date.prototype."+_4+" = function(){return ";
var _6=false;
var ch="";
for(var i=0;i<_3.length;++i){
ch=_3.charAt(i);
if(!_6&&ch=="\\"){
_6=true;
}else{
if(_6){
_6=false;
_5+="'"+String.escape(ch)+"' + ";
}else{
_5+=Date.getFormatCode(ch);
}
}
}
eval(_5.substring(0,_5.length-3)+";}");
};
Date.getFormatCode=function(_9){
switch(_9){
case "d":
return "String.leftPad(this.getDate(), 2, '0') + ";
case "D":
return "Date.dayNames[this.getDay()].substring(0, 3) + ";
case "j":
return "this.getDate() + ";
case "l":
return "Date.dayNames[this.getDay()] + ";
case "S":
return "this.getSuffix() + ";
case "w":
return "this.getDay() + ";
case "z":
return "this.getDayOfYear() + ";
case "W":
return "this.getWeekOfYear() + ";
case "F":
return "Date.monthNames[this.getMonth()] + ";
case "m":
return "String.leftPad(this.getMonth() + 1, 2, '0') + ";
case "M":
return "Date.monthNames[this.getMonth()].substring(0, 3) + ";
case "n":
return "(this.getMonth() + 1) + ";
case "t":
return "this.getDaysInMonth() + ";
case "L":
return "(this.isLeapYear() ? 1 : 0) + ";
case "Y":
return "this.getFullYear() + ";
case "y":
return "('' + this.getFullYear()).substring(2, 4) + ";
case "a":
return "(this.getHours() < 12 ? 'am' : 'pm') + ";
case "A":
return "(this.getHours() < 12 ? 'AM' : 'PM') + ";
case "g":
return "((this.getHours() %12) ? this.getHours() % 12 : 12) + ";
case "G":
return "this.getHours() + ";
case "h":
return "String.leftPad((this.getHours() %12) ? this.getHours() % 12 : 12, 2, '0') + ";
case "H":
return "String.leftPad(this.getHours(), 2, '0') + ";
case "i":
return "String.leftPad(this.getMinutes(), 2, '0') + ";
case "s":
return "String.leftPad(this.getSeconds(), 2, '0') + ";
case "O":
return "this.getGMTOffset() + ";
case "T":
return "this.getTimezone() + ";
case "Z":
return "(this.getTimezoneOffset() * -60) + ";
default:
return "'"+String.escape(_9)+"' + ";
}
};
Date.parseDate=function(_a,_b){
if(Date.parseFunctions[_b]==null){
Date.createParser(_b);
}
var _c=Date.parseFunctions[_b];
return Date[_c](_a);
};
Date.parseDateRomeo = Date.parseDate;
Date.createParser=function(_d){
var _e="parse"+Date.parseFunctions.count++;
var _f=Date.parseRegexes.length;
var _10=1;
Date.parseFunctions[_d]=_e;
var _11="Date."+_e+" = function(input){\n"+"var y = -1, m = -1, d = -1, h = -1, i = -1, s = -1;\n"+"var d = new Date();\n"+"y = d.getFullYear();\n"+"m = d.getMonth();\n"+"d = d.getDate();\n"+"var results = input.match(Date.parseRegexes["+_f+"]);\n"+"if (results && results.length > 0) {";
var _12="";
var _13=false;
var ch="";
for(var i=0;i<_d.length;++i){
ch=_d.charAt(i);
if(!_13&&ch=="\\"){
_13=true;
}else{
if(_13){
_13=false;
_12+=String.escape(ch);
}else{
obj=Date.formatCodeToRegex(ch,_10);
_10+=obj.g;
_12+=obj.s;
if(obj.g&&obj.c){
_11+=obj.c;
}
}
}
}
_11+="if (y > 0 && m >= 0 && d > 0 && h >= 0 && i >= 0 && s >= 0)\n"+"{return new Date(y, m, d, h, i, s);}\n"+"else if (y > 0 && m >= 0 && d > 0 && h >= 0 && i >= 0)\n"+"{return new Date(y, m, d, h, i);}\n"+"else if (y > 0 && m >= 0 && d > 0 && h >= 0)\n"+"{return new Date(y, m, d, h);}\n"+"else if (y > 0 && m >= 0 && d > 0)\n"+"{return new Date(y, m, d);}\n"+"else if (y > 0 && m >= 0)\n"+"{return new Date(y, m);}\n"+"else if (y > 0)\n"+"{return new Date(y);}\n"+"}return null;}";
Date.parseRegexes[_f]=new RegExp("^"+_12+"$");
eval(_11);
};
Date.formatCodeToRegex=function(_16,_17){
switch(_16){
case "D":
return {g:0,c:null,s:"(?:Sun|Mon|Tue|Wed|Thu|Fri|Sat)"};
case "j":
case "d":
return {g:1,c:"d = parseInt(results["+_17+"], 10);\n",s:"(\\d{1,2})"};
case "l":
return {g:0,c:null,s:"(?:"+Date.dayNames.join("|")+")"};
case "S":
return {g:0,c:null,s:"(?:st|nd|rd|th)"};
case "w":
return {g:0,c:null,s:"\\d"};
case "z":
return {g:0,c:null,s:"(?:\\d{1,3})"};
case "W":
return {g:0,c:null,s:"(?:\\d{2})"};
case "F":
return {g:1,c:"m = parseInt(Date.monthNumbers[results["+_17+"].substring(0, 3)], 10);\n",s:"("+Date.monthNames.join("|")+")"};
case "M":
return {g:1,c:"m = parseInt(Date.monthNumbers[results["+_17+"]], 10);\n",s:"(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)"};
case "n":
case "m":
return {g:1,c:"m = parseInt(results["+_17+"], 10) - 1;\n",s:"(\\d{1,2})"};
case "t":
return {g:0,c:null,s:"\\d{1,2}"};
case "L":
return {g:0,c:null,s:"(?:1|0)"};
case "Y":
return {g:1,c:"y = parseInt(results["+_17+"], 10);\n",s:"(\\d{4})"};
case "y":
return {g:1,c:"var ty = parseInt(results["+_17+"], 10);\n"+"y = ty > Date.y2kYear ? 1900 + ty : 2000 + ty;\n",s:"(\\d{1,2})"};
case "a":
return {g:1,c:"if (results["+_17+"] == 'am') {\n"+"if (h == 12) { h = 0; }\n"+"} else { if (h < 12) { h += 12; }}",s:"(am|pm)"};
case "A":
return {g:1,c:"if (results["+_17+"] == 'AM') {\n"+"if (h == 12) { h = 0; }\n"+"} else { if (h < 12) { h += 12; }}",s:"(AM|PM)"};
case "g":
case "G":
case "h":
case "H":
return {g:1,c:"h = parseInt(results["+_17+"], 10);\n",s:"(\\d{1,2})"};
case "i":
return {g:1,c:"i = parseInt(results["+_17+"], 10);\n",s:"(\\d{2})"};
case "s":
return {g:1,c:"s = parseInt(results["+_17+"], 10);\n",s:"(\\d{2})"};
case "O":
return {g:0,c:null,s:"[+-]\\d{4}"};
case "T":
return {g:0,c:null,s:"[A-Z]{3}"};
case "Z":
return {g:0,c:null,s:"[+-]\\d{1,5}"};
default:
return {g:0,c:null,s:String.escape(_16)};
}
};
Date.prototype.getTimezone=function(){
return this.toString().replace(/^.*? ([A-Z]{3}) [0-9]{4}.*$/,"$1").replace(/^.*?\(([A-Z])[a-z]+ ([A-Z])[a-z]+ ([A-Z])[a-z]+\)$/,"$1$2$3");
};
Date.prototype.getGMTOffset=function(){
return (this.getTimezoneOffset()>0?"-":"+")+String.leftPad(Math.floor(this.getTimezoneOffset()/60),2,"0")+String.leftPad(this.getTimezoneOffset()%60,2,"0");
};
Date.prototype.getDayOfYear=function(){
var num=0;
Date.daysInMonth[1]=this.isLeapYear()?29:28;
for(var i=0;i<this.getMonth();++i){
num+=Date.daysInMonth[i];
}
return num+this.getDate()-1;
};
Date.prototype.getWeekOfYear=function(){
var now=this.getDayOfYear()+(4-this.getDay());
var _1b=new Date(this.getFullYear(),0,1);
var _1c=(7-_1b.getDay()+4);
document.write(_1c);
return String.leftPad(((now-_1c)/7)+1,2,"0");
};
Date.prototype.isLeapYear=function(){
var _1d=this.getFullYear();
return ((_1d&3)==0&&(_1d%100||(_1d%400==0&&_1d)));
};
Date.prototype.getFirstDayOfMonth=function(){
var day=(this.getDay()-(this.getDate()-1))%7;
return (day<0)?(day+7):day;
};
Date.prototype.getLastDayOfMonth=function(){
var day=(this.getDay()+(Date.daysInMonth[this.getMonth()]-this.getDate()))%7;
return (day<0)?(day+7):day;
};
Date.prototype.getDaysInMonth=function(){
Date.daysInMonth[1]=this.isLeapYear()?29:28;
return Date.daysInMonth[this.getMonth()];
};
Date.prototype.getSuffix=function(){
switch(this.getDate()){
case 1:
case 21:
case 31:
return "st";
case 2:
case 22:
return "nd";
case 3:
case 23:
return "rd";
default:
return "th";
}
};
String.escape=function(_20){
return _20.replace(/('|\\)/g,"\\$1");
};
String.leftPad=function(val,_22,ch){
var _24=new String(val);
if(ch==null){
ch=" ";
}
while(_24.length<_22){
_24=ch+_24;
}
return _24;
};
Date.daysInMonth=[31,28,31,30,31,30,31,31,30,31,30,31];
Date.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"];
Date.dayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
Date.y2kYear=50;
Date.monthNumbers={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11};
Date.patterns={ISO8601LongPattern:"Y-m-d H:i:s",ISO8601ShortPattern:"Y-m-d",ShortDatePattern:"n/j/Y",LongDatePattern:"l, F d, Y",FullDateTimePattern:"l, F d, Y g:i:s A",MonthDayPattern:"F d",ShortTimePattern:"g:i A",LongTimePattern:"g:i:s A",SortableDateTimePattern:"Y-m-d\\TH:i:s",UniversalSortableDateTimePattern:"Y-m-d H:i:sO",YearMonthPattern:"F, Y"};


window.dhtmlHistory={initialize:function(){if(this.isInternetExplorer()==false){return;}if(historyStorage.hasKey("DhtmlHistory_pageLoaded")==false){this.fireOnNewListener=false;this.firstLoad=true;historyStorage.put("DhtmlHistory_pageLoaded",true);}else{this.fireOnNewListener=true;this.firstLoad=false;}},addListener:function(_1){this.listener=_1;if(this.fireOnNewListener==true){this.fireHistoryEvent(this.currentLocation);this.fireOnNewListener=false;}},add:function(_2,_3){var _4=this;var _5=function(){if(_4.currentWaitTime>0){_4.currentWaitTime=_4.currentWaitTime-_4.WAIT_TIME;}_2=_4.removeHash(_2);var _6=document.getElementById(_2);if(_6!=undefined||_6!=null){var _7="Exception: History locations can not have "+"the same value as _any_ id's "+"that might be in the document, "+"due to a bug in Internet "+"Explorer; please ask the "+"developer to choose a history "+"location that does not match "+"any HTML id's in this "+"document. The following ID "+"is already taken and can not "+"be a location: "+_2;throw _7;}historyStorage.put(_2,_3);_4.ignoreLocationChange=true;this.ieAtomicLocationChange=true;_4.currentLocation=_2;window.location.hash=_2;if(_4.isInternetExplorer()){_4.iframe.src="blank.html?"+_2;}this.ieAtomicLocationChange=false;};window.setTimeout(_5,this.currentWaitTime);this.currentWaitTime=this.currentWaitTime+this.WAIT_TIME;},isFirstLoad:function(){if(this.firstLoad==true){return true;}else{return false;}},isInternational:function(){return false;},getVersion:function(){return "0.05";},getCurrentLocation:function(){var _8=this.removeHash(window.location.hash);return _8;},currentLocation:null,listener:null,iframe:null,ignoreLocationChange:null,WAIT_TIME:200,currentWaitTime:0,fireOnNewListener:null,firstLoad:null,ieAtomicLocationChange:null,create:function(){var _9=this.getCurrentLocation();this.currentLocation=_9;if(this.isInternetExplorer()){var _a="<iframe style='border: 0px; width: 1px; "+"height: 1px; position: absolute; bottom: 0px; "+"right: 0px; visibility: visible;' "+"name='DhtmlHistoryFrame' id='DhtmlHistoryFrame' "+"src='blank.html?"+_9+"'>"+"</iframe>";document.body.innerHTML+=_a;this.WAIT_TIME=400;}var _b=this;window.onunload=function(){_b.firstLoad=null;};if(this.isInternetExplorer()==false){if(historyStorage.hasKey("DhtmlHistory_pageLoaded")==false){this.ignoreLocationChange=true;this.firstLoad=true;historyStorage.put("DhtmlHistory_pageLoaded",true);}else{this.ignoreLocationChange=false;this.fireOnNewListener=true;}}else{this.ignoreLocationChange=true;}if(this.isInternetExplorer()){this.iframe=document.getElementById("DhtmlHistoryFrame");}var _c=this;var _d=function(){_c.checkLocation();};setInterval(_d,100);},fireHistoryEvent:function(_e){var _f=historyStorage.get(_e);this.listener.call(null,_e,_f);},checkLocation:function(){if(this.isInternetExplorer()==false&&this.ignoreLocationChange==true){this.ignoreLocationChange=false;return;}if(this.isInternetExplorer()==false&&this.ieAtomicLocationChange==true){return;}var _10=this.getCurrentLocation();if(_10==this.currentLocation){return;}this.ieAtomicLocationChange=true;if(this.isInternetExplorer()&&this.getIFrameHash()!=_10){this.iframe.src="blank.html?"+_10;}else{if(this.isInternetExplorer()){return;}}this.currentLocation=_10;this.ieAtomicLocationChange=false;this.fireHistoryEvent(_10);},getIFrameHash:function(){var _11=document.getElementById("DhtmlHistoryFrame");var doc=_11.contentWindow.document;var _13=new String(doc.location.search);if(_13.length==1&&_13.charAt(0)=="?"){_13="";}else{if(_13.length>=2&&_13.charAt(0)=="?"){_13=_13.substring(1);}}return _13;},removeHash:function(_14){if(_14==null||_14==undefined){return null;}else{if(_14==""){return "";}else{if(_14.length==1&&_14.charAt(0)=="#"){return "";}else{if(_14.length>1&&_14.charAt(0)=="#"){return _14.substring(1);}else{return _14;}}}}},iframeLoaded:function(_15){if(this.ignoreLocationChange==true){this.ignoreLocationChange=false;return;}var _16=new String(_15.search);if(_16.length==1&&_16.charAt(0)=="?"){_16="";}else{if(_16.length>=2&&_16.charAt(0)=="?"){_16=_16.substring(1);}}if(this.pageLoadEvent!=true){window.location.hash=_16;}this.fireHistoryEvent(_16);},isInternetExplorer:function(){var _17=navigator.userAgent.toLowerCase();if(document.all&&_17.indexOf("msie")!=-1){return true;}else{return false;}}};window.historyStorage={debugging:false,storageHash:new Object(),hashLoaded:false,put:function(key,_19){this.assertValidKey(key);if(this.hasKey(key)){this.remove(key);}this.storageHash[key]=_19;this.saveHashTable();},get:function(key){this.assertValidKey(key);this.loadHashTable();var _1b=this.storageHash[key];if(_1b==undefined){return null;}else{return _1b;}},remove:function(key){this.assertValidKey(key);this.loadHashTable();delete this.storageHash[key];this.saveHashTable();},reset:function(){this.storageField.value="";this.storageHash=new Object();},hasKey:function(key){this.assertValidKey(key);this.loadHashTable();if(typeof this.storageHash[key]=="undefined"){return false;}else{return true;}},isValidKey:function(key){return (typeof key=="string");},storageField:null,init:function(){var _1f="position: absolute; top: -1000px; left: -1000px;";if(this.debugging==true){_1f="width: 30em; height: 30em;";}var _20="<form id='historyStorageForm' "+"method='GET' "+"style='"+_1f+"'>"+"<textarea id='historyStorageField' "+"style='"+_1f+"'"+"left: -1000px;' "+"name='historyStorageField'></textarea>"+"</form>";document.body.innerHTML+=_20;this.storageField=document.getElementById("historyStorageField");},assertValidKey:function(key){if(this.isValidKey(key)==false){throw "Please provide a valid key for "+"window.historyStorage, key= "+key;}},loadHashTable:function(){if(this.hashLoaded==false){var _22=this.storageField.value;if(_22!=""&&_22!=null){this.storageHash=eval("("+_22+")");}this.hashLoaded=true;}},saveHashTable:function(){this.loadHashTable();var _23=JSON.stringify(this.storageHash);this.storageField.value=_23;}};Array.prototype.______array="______array";var JSON={org:"http://www.JSON.org",copyright:"(c)2005 JSON.org",license:"http://www.crockford.com/JSON/license.html",stringify:function(arg){var c,i,l,s="",v;switch(typeof arg){case "object":if(arg){if(arg.______array=="______array"){for(i=0;i<arg.length;++i){v=this.stringify(arg[i]);if(s){s+=",";}s+=v;}return "["+s+"]";}else{if(typeof arg.toString!="undefined"){for(i in arg){v=arg[i];if(typeof v!="undefined"&&typeof v!="function"){v=this.stringify(v);if(s){s+=",";}s+=this.stringify(i)+":"+v;}}return "{"+s+"}";}}}return "null";case "number":return isFinite(arg)?String(arg):"null";case "string":l=arg.length;s="\"";for(i=0;i<l;i+=1){c=arg.charAt(i);if(c>=" "){if(c=="\\"||c=="\""){s+="\\";}s+=c;}else{switch(c){case "\b":s+="\\b";break;case "\f":s+="\\f";break;case "\n":s+="\\n";break;case "\r":s+="\\r";break;case "\t":s+="\\t";break;default:c=c.charCodeAt();s+="\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16);}}}return s+"\"";case "boolean":return String(arg);default:return "null";}},parse:function(_26){var at=0;var ch=" ";function error(m){throw {name:"JSONError",message:m,at:at-1,text:_26};}function next(){ch=_26.charAt(at);at+=1;return ch;}function white(){while(ch!=""&&ch<=" "){next();}}function str(){var i,s="",t,u;if(ch=="\""){outer:while(next()){if(ch=="\""){next();return s;}else{if(ch=="\\"){switch(next()){case "b":s+="\b";break;case "f":s+="\f";break;case "n":s+="\n";break;case "r":s+="\r";break;case "t":s+="\t";break;case "u":u=0;for(i=0;i<4;i+=1){t=parseInt(next(),16);if(!isFinite(t)){break outer;}u=u*16+t;}s+=String.fromCharCode(u);break;default:s+=ch;}}else{s+=ch;}}}}error("Bad string");}function arr(){var a=[];if(ch=="["){next();white();if(ch=="]"){next();return a;}while(ch){a.push(val());white();if(ch=="]"){next();return a;}else{if(ch!=","){break;}}next();white();}}error("Bad array");}function obj(){var k,o={};if(ch=="{"){next();white();if(ch=="}"){next();return o;}while(ch){k=str();white();if(ch!=":"){break;}next();o[k]=val();white();if(ch=="}"){next();return o;}else{if(ch!=","){break;}}next();white();}}error("Bad object");}function num(){var n="",v;if(ch=="-"){n="-";next();}while(ch>="0"&&ch<="9"){n+=ch;next();}if(ch=="."){n+=".";while(next()&&ch>="0"&&ch<="9"){n+=ch;}}if(ch=="e"||ch=="E"){n+="e";next();if(ch=="-"||ch=="+"){n+=ch;next();}while(ch>="0"&&ch<="9"){n+=ch;next();}}v=+n;if(!isFinite(v)){error("Bad number");}else{return v;}}function word(){switch(ch){case "t":if(next()=="r"&&next()=="u"&&next()=="e"){next();return true;}break;case "f":if(next()=="a"&&next()=="l"&&next()=="s"&&next()=="e"){next();return false;}break;case "n":if(next()=="u"&&next()=="l"&&next()=="l"){next();return null;}break;}error("Syntax error");}function val(){white();switch(ch){case "{":return obj();case "[":return arr();case "\"":return str();case "-":return num();default:return ch>="0"&&ch<="9"?num():word();}}return val();}};function initDhtmlHistory(){window.historyStorage.init();window.dhtmlHistory.create();}
function testPasswordCss(_1){var _2=new Array();_2[0]="Al di sotto del minimo";_2[1]="Scarsa";_2[2]="Discreta";_2[3]="Alta";_2[4]="Altissima";_2[5]="Digitare password";var _3=0;var _4=0;if(_1.length==0||!_1.length){_3=-1;}else{if(_1.length>0&&_1.length<5){_3=(_3+3);}else{if(_1.length>4&&_1.length<8){_3=(_3+6);}else{if(_1.length>7&&_1.length<12){_3=(_3+12);}else{if(_1.length>11){_3=(_3+18);}}}}}if(_1.match(/[a-z]/)){_3=(_3+1);}if(_1.match(/[A-Z]/)){_3=(_3+5);}if(_1.match(/\d+/)){_3=(_3+5);}if(_1.match(/(.*[0-9].*[0-9].*[0-9])/)){_3=(_3+5);}if(_1.match(/.[!,@,#,$,%,^,&,*,?,_,~]/)){_3=(_3+5);}if(_1.match(/(.*[!,@,#,$,%,^,&,*,?,_,~].*[!,@,#,$,%,^,&,*,?,_,~])/)){_3=(_3+5);}if(_1.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)){_3=(_3+2);}if(_1.match(/([a-zA-Z])/)&&_1.match(/([0-9])/)){_3=(_3+2);}if(_1.match(/([a-zA-Z0-9].*[!,@,#,$,%,^,&,*,?,_,~])|([!,@,#,$,%,^,&,*,?,_,~].*[a-zA-Z0-9])/)){_3=(_3+2);}if(_3==-1){_4=_2[5];document.getElementById("meterEmpty").style.width="100%";document.getElementById("meterFull").style.width="0";}else{if(_3>-1&&_3<16){_4=_2[0];document.getElementById("meterEmpty").style.width="100%";document.getElementById("meterFull").style.width="0%";}else{if(_3>15&&_3<25){_4=_2[1];document.getElementById("meterEmpty").style.width="100%";document.getElementById("meterFull").style.width="25%";}else{if(_3>24&&_3<35){_4=_2[2];document.getElementById("meterEmpty").style.width="100%";document.getElementById("meterFull").style.width="50%";}else{if(_3>34&&_3<45){_4=_2[3];document.getElementById("meterEmpty").style.width="100%";document.getElementById("meterFull").style.width="75%";}else{_4=_2[4];document.getElementById("meterEmpty").style.width="100%";document.getElementById("meterFull").style.width="100%";}}}}}document.getElementById("Words").innerHTML=(_4);}
eval(function(p,a,c,k,e,r){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--)r[e(c)]=k[c]||e(c);k=[function(e){return r[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}('k 1r={2o:n(b){6.H=2h.29({1Y:1T,1P:2x.2u.3t,1E:2i,2d:2i,1w:25,23:1q,1U:2G},b||{});e(t.2w&&v.2t=="2r"){6.H.1w=17}6.1I=[];$1G(v.3o,n(a){e(a.Z&&a.Z.3d(/^3a/i)){a.13=6.26.24(a,6);6.1I.1Z(a)}},6);6.1W=6.1V.2P(6);6.1x=6.1y.U(6);6.S=9 B(\'L\').K(\'x\',\'2v\').s(v.11);6.C=9 B(\'L\').K(\'x\',\'2s\').1a({u:6.H.1E+\'D\',o:6.H.2d+\'D\',1j:\'-\'+(6.H.1E/2)+\'D\',z:\'14\'}).s(v.11);6.p=9 B(\'L\').K(\'x\',\'3m\').s(6.C);6.V=9 B(\'a\').1b({x:\'3f\',T:\'#\'}).1B(\'z\',\'14\').s(6.p);6.O=6.V.38().K(\'x\',\'34\').s(6.p);6.V.13=6.1v.U(6);6.O.13=6.1u.U(6);6.N=9 B(\'L\').K(\'x\',\'30\').1B(\'z\',\'14\').s(v.11);6.G=9 B(\'L\').K(\'x\',\'2W\').s(6.N);9 B(\'a\').1b({x:\'2V\',T:\'#\'}).s(6.G).13=6.S.13=6.1t.U(6);6.21=9 B(\'L\').K(\'x\',\'2U\').s(6.G);6.1X=9 B(\'L\').K(\'x\',\'2T\').s(6.G);9 B(\'L\').1B(\'2S\',\'2Q\').s(6.G);k c=6.1c.U(6);6.F={S:6.S.1z(\'2e\',{1d:1q}).1R(),1C:6.C.2F({1d:6.H.1Y,2E:6.H.1P,1H:c}),W:6.p.1z(\'2e\',{1d:1q,1H:c}),G:6.N.1z(\'o\',{1d:1T,1H:c})};6.2l=9 1F();6.1O=9 1F()},26:n(b){e(b.Z.J==8)E 6.1N(b.T,b.1M,b.12);k j,1o,m=[];6.1I.1G(n(a){e(a.Z==b.Z){1L(j=0;j<m.J;j++)e(m[j][0]==a.T&&m[j][2]==a.12)R;e(j==m.J){m.1Z([a.T,a.1M,a.12]);e(a.T==b.T&&a.12==b.12)1o=j}}},6);E 6.1n(m,1o)},1N:n(a,b,c){E 6.1n([[a,b,c]],0)},1n:n(a,b){6.m=a;6.1y();6.1m(25);k c=(t.1h()==0)?t.1K():t.1h();k d=v.11.19||v.1J.19;6.Y=d+(c/15);6.C.1a({Y:6.Y+\'D\',z:\'\'});6.F.S.X(0.8);E 6.1l(b)},1y:n(){k a=(t.2p()==0)?t.3s()-22:t.2p();k b=(t.1h()==0)?t.1K():t.1h();k c=v.11.19||v.1J.19;6.S.1a({Y:c+\'D\',o:b+\'D\',u:a+\'D\'})},1m:n(b){k c=$A(v.2m(\'3r\'));e(t.3q)c.29(v.2m(\'3p\'));c.1G(n(a){a.l.3n=b?\'3k\':\'\'});k d=b?\'2k\':\'3j\';t[d](\'3i\',6.1x)[d](\'3h\',6.1x);v[d](\'3g\',6.1W);6.I=0},1V:n(a){2g(a.3e){y 27:y 3c:y 3b:6.1t();R;y 37:y 35:6.1v();R;y 39:y 33:6.1u()}},1v:n(){E 6.1l(6.r-1)},1u:n(){E 6.1l(6.r+1)},1l:n(a){e(6.I||(a<0)||(a>=6.m.J))E 17;6.I=1;6.r=a;6.N.l.z=6.V.l.z=6.O.l.z=\'14\';6.F.W.1R();6.C.2a=\'32\';6.1p();k b=6.m[6.r][0];k c=6.m[6.r][2];k d=/\\.(31?g|2Z|2Y|2X)/i;e(b.1k(d)){6.7=9 1F();6.7.1g=\'W\';6.7.w=6.16(c,9 1f("u=(\\\\d+%?)","i"),-1);6.7.h=6.16(c,9 1f("o=(\\\\d+%?)","i"),-1);6.7.20=6.1c.U(6);6.7.M=b}1s{6.7=9 2h();6.7.1g=\'2c\';6.7.w=6.16(c,9 1f("u=(\\\\d+)","i"),6.H.23);6.7.h=6.16(c,9 1f("o=(\\\\d+)","i"),6.H.1U);6.7.M=b;6.1c()}E 17},1c:n(){2g(6.I++){y 1:6.C.2a=\'\';e(6.7.1g==\'W\'){k a=(6.7.w==-1)?6.7.u.1i():6.7.w.1i();k b=(6.7.h==-1)?6.7.o.1i():6.7.h.1i();6.Q=(q=a.1k(/(\\d+)%/))?q[1]*6.7.u*0.2b:a;6.P=(q=b.1k(/(\\d+)%/))?q[1]*6.7.o*0.2b:b;9 B(\'2R\').1b({x:\'28\',M:6.7.M,u:6.Q,o:6.P}).s(6.p);6.O.l.2q=\'\'}1s{6.Q=6.7.w;6.P=6.7.h;6.1D="2O"+9 2N().36();9 B(\'2c\').1b({x:6.1D,u:6.Q,o:6.P,2M:0,2L:\'2K\',M:6.7.M}).s(6.p);6.O.l.2q=\'2J\'}6.p.l.u=6.G.l.u=6.Q+\'D\';6.p.l.o=6.V.l.o=6.O.l.o=6.P+\'D\';6.21.1S(6.m[6.r][1]||\'\');6.1X.1S((6.m.J==1)?\'\':\'2I \'+(6.r+1)+\' 2H \'+6.m.J);e(6.r)6.2l.M=6.m[6.r-1][0];e(6.r!=(6.m.J-1))6.1O.M=6.m[6.r+1][0];e(6.C.1A!=6.p.1e){k c=(6.P==6.p.1A)?6.p.1e:1Q(6.P)+18;6.F.1C.X({o:c});R}6.I++;y 2:e(6.C.2f!=6.p.2j){k d=(6.Q==6.p.2f)?6.p.2j:1Q(6.Q)+18;6.F.1C.X({u:d,1j:-d/2});R}6.I++;y 3:6.N.1a({Y:(6.Y+6.C.1A)+\'D\',o:\'3l\',1j:6.C.l.1j,u:6.C.l.u,z:\'\'});6.F.W.X(1);R;y 4:e(6.H.1w){6.F.G.X(0,6.G.1e+10);R}6.N.l.o=(6.G.1e+10)+\'D\';y 5:e(6.r){6.V.l.z=\'\'}e(6.r!=(6.m.J-1)){6.O.l.z=\'\'}6.I=0}},1t:n(){e(6.I<0)E;6.I=-1;6.1p();1L(k f 2D 6.F)6.F[f].2C();6.C.l.z=6.N.l.z=\'14\';6.F.S.2B(6.1m.24(17,6)).X(0);E 17},1p:n(){e(6.7){e(6.7.1g==\'W\'){$(\'28\').2n();6.7.20=2A.2z}1s{$(6.1D).2n()}6.7=2y}},16:n(a,b,c){k d=a.1k(b);E d?d[1]:c}};t.2k(\'3u\',1r.2o.U(1r));',62,217,'||||||this|preload||new|||||if||||||var|style|items|function|height|canvas||activeItem|injectInside|window|width|document||id|case|display||Element|center|px|return|fx|bottom|options|step|length|setProperty|div|src|bottomContainer|nextLink|p_height|p_width|break|overlay|href|bind|prevLink|image|start|top|rel||body|rev|onclick|none||matchOrDefault|false||scrollTop|setStyles|setProperties|nextEffect|duration|offsetHeight|RegExp|datatype|getHeight|toString|marginLeft|match|changeItem|setup|open|itemNumber|removeCurrentItem|500|Lightbox|else|close|next|previous|animateCaption|eventPosition|position|effect|clientHeight|setStyle|resizeCenter|iframeId|initialWidth|Image|each|onComplete|anchors|documentElement|getScrollHeight|for|title|show|preloadNext|resizeTransition|eval|hide|setHTML|400|defaultIframeHeight|keyboardListener|eventKeyDown|number|resizeDuration|push|onload|caption||defaultIframeWidth|pass|true|click||lbImage|extend|className|01|iframe|initialHeight|opacity|clientWidth|switch|Object|250|offsetWidth|addEvent|preloadPrev|getElementsByTagName|remove|init|getWidth|right|BackCompat|lbCenter|compatMode|Transitions|lbOverlay|ie6|Fx|null|empty|Class|chain|stop|in|transition|effects|300|of|Page|25px|auto|scrolling|frameBorder|Date|lbFrame_|bindAsEventListener|both|img|clear|lbNumber|lbCaption|lbCloseLink|lbBottom|bmp|gif|png|lbBottomContainer|jpe|lbLoading|78|lbNextLink|80|getTime||clone||lightbox|67|88|test|keyCode|lbPrevLink|keydown|resize|scroll|removeEvent|hidden|0px|lbCanvas|visibility|links|select|ie|object|getScrollWidth|sineInOut|domready'.split('|'),0,{}))
var messages={};

messages["COPYRIGHT"] = "&copy; Puntoexe S.r.l.<br />(<!--years-->)<br />Tel.: 0916731913";
messages["ERROR"] = "Attention: an error occurred:\n";
messages["ERROR_MISSING_FORM"] = "Attention: form not found!!!\nPlease contact the system admin!";
messages["ERROR_CONTACTS_MISSING_EVENT"] = "È necessario selezionare un tipo di evento!";
messages["ERROR_CONTACTS_MISSING_NOTES"] = "È necessario inserire delle note!";
messages["ERROR_CONTACTS_MISSING_SMSDATA"] = "È necessario inserire un testo per il messaggio!";
messages["DATA_ERROR"] = "The following errors occurred:\n";
messages["WAIT_PLEASE"] = "Please wait...";
messages["WAIT_PLEASE_ALERT"] = "Il comando è già in esecuzione, si prega di cliccare sul pulsante 'Ok' ed attendere.";
messages["CONFIRM_SUBMIT"] = "Have You carefully checked all the informations you typed in?\nDo You confirm your registration?";
messages["CONFIRM_SMS"] = "Confermate l\'invio del messaggio via SMS?";
messages["CONFIRM_EMAIL"] = "Confermate l\'invio del messaggio via email?";
messages["MISSING_MANDATORY_DATA"] = "The fields marked with an asterisk are mandatory!";
messages["MISSING_DOCUMENT"] = "È necessario scegliere un documento!";
messages["MISSING_LOGIN_DATA"] = "Attenzione: per effettuare il login bisogna inserire una userid ed una password!";
messages["CONFIRM_CUSTOMER_DELETE"] = "Confermate di voler eliminare il cliente?";
messages["CONFIRM_CONTACT_DELETE"] = "Confermate di voler eliminare il contatto?";
messages["GOTO_LAST_SEARCH"] = "Back to the last search";
messages["GOTO_HOMEPAGE"] = "Back to the homepage";
messages["GOTO_BACK"] = "Back";
messages["BOOKMARK_ADDED"] = "Bookmark correctly added!";
messages["BOOKMARK_DELETED"] = "Bookmark correctly deleted!";
messages["BOOKMARK_ALREADY"] = "Bookmark already added!";

var months = new Array ("Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre",
 "Novembre", "Dicembre");

// short month names
var months_short = new Array ("Gen", "Feb", "Mar", "Apr", "Mag", "Giu", "Lug", "Ago", "Set", "Ott", "Nov", "Dic");

var messages={};

messages["COPYRIGHT"] = "&copy; Puntoexe S.r.l.<br />(<!--years-->)<br />Tel.: 0916731913";
messages["ERROR"] = "Attenzione: si è verificato un errore:\n";
messages["ERROR_MISSING_FORM"] = "Attenzione: non è stato trovato il form!!!\nContattare il gestore del sistema!";
messages["ERROR_CONTACTS_MISSING_EVENT"] = "È necessario selezionare un tipo di evento!";
messages["ERROR_CONTACTS_MISSING_NOTES"] = "È necessario inserire delle note!";
messages["ERROR_CONTACTS_MISSING_SMSDATA"] = "È necessario inserire un testo per il messaggio!";
messages["DATA_ERROR"] = "Sono presenti degli errori nei dati:\n";
messages["WAIT_PLEASE"] = "Attendere...";
messages["WAIT_PLEASE_ALERT"] = "Il comando è già in esecuzione, si prega di cliccare sul pulsante 'Ok' ed attendere.";
messages["CONFIRM_SUBMIT"] = "Confermate l\'invio dei dati?";
messages["CONFIRM_SMS"] = "Confermate l\'invio del messaggio via SMS?";
messages["CONFIRM_EMAIL"] = "Confermate l\'invio del messaggio via email?";
messages["MISSING_MANDATORY_DATA"] = "I campi contrassegnati da un asterisco sono tutti obbligatori!";
messages["MISSING_DOCUMENT"] = "È necessario scegliere un documento!";
messages["MISSING_LOGIN_DATA"] = "Attenzione: per effettuare il login bisogna inserire una userid ed una password!";
messages["CONFIRM_CUSTOMER_DELETE"] = "Confermate di voler eliminare il cliente?";
messages["CONFIRM_CONTACT_DELETE"] = "Confermate di voler eliminare il contatto?";
messages["GOTO_LAST_SEARCH"] = "Torna all\'ultima ricerca effettuata";
messages["GOTO_HOMEPAGE"] = "Torna all\'homepage";
messages["GOTO_BACK"] = "Torna indietro";
messages["BOOKMARK_ADDED"] = "Segnalibro aggiunto correttamente!";
messages["BOOKMARK_DELETED"] = "Segnalibro eliminato correttamente!";
messages["BOOKMARK_ALREADY"] = "Segnalibro già presente!";


var months = new Array ("Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre",
 "Novembre", "Dicembre");

// short month names
var months_short = new Array ("Gen", "Feb", "Mar", "Apr", "Mag", "Giu", "Lug", "Ago", "Set", "Ott", "Nov", "Dic");

// ===================================================================
// Author: Matt Kruse <matt@ajaxtoolbox.com>
// WWW: http://www.AjaxToolbox.com/
//
// NOTICE: You may use this code for any purpose, commercial or
// private, without any further permission from the author. You may
// remove this notice from your final code if you wish, however it is
// appreciated by the author if at least my web site address is kept.
//
// You may *NOT* re-distribute this code in any way except through its
// use. That means, you can include it in your product, or your web
// site, or any other form where the code is actually being used. You
// may not put the plain javascript up on your site for download or
// include it in your javascript libraries for download. 
// If you wish to share this code with others, please just point them
// to the URL instead.
// Please DO NOT link directly to my .js files from your site. Copy
// the files to your server and use them there. Thank you.
// ===================================================================

function AjaxRequest(){var req =new Object();
req.timeout =null;
req.generateUniqueUrl =true;
req.url =window.location.href;
req.method ="GET";
req.async =true;
req.username =null;
req.password =null;
req.parameters =new Object();
req.requestIndex =AjaxRequest.numAjaxRequests++;
req.responseReceived =false;
req.groupName =null;
req.queryString ="";
req.responseText =null;
req.responseXML =null;
req.status =null;
req.statusText =null;
req.aborted =false;
req.xmlHttpRequest =null;
req.onTimeout=null;
req.onLoading=null;
req.onLoaded=null;
req.onInteractive=null;
req.onComplete=null;
req.onSuccess=null;
req.onError=null;
req.onGroupBegin=null;
req.onGroupEnd=null;
req.xmlHttpRequest =AjaxRequest.getXmlHttpRequest();
if(req.xmlHttpRequest==null){return null;}req.xmlHttpRequest.onreadystatechange =
function(){if(req==null || req.xmlHttpRequest==null){return;}if(req.xmlHttpRequest.readyState==1){req.onLoadingInternal(req);}if(req.xmlHttpRequest.readyState==2){req.onLoadedInternal(req);}if(req.xmlHttpRequest.readyState==3){req.onInteractiveInternal(req);}if(req.xmlHttpRequest.readyState==4){req.onCompleteInternal(req);}};
req.onLoadingInternalHandled=false;
req.onLoadedInternalHandled=false;
req.onInteractiveInternalHandled=false;
req.onCompleteInternalHandled=false;
req.onLoadingInternal=
function(){if(req.onLoadingInternalHandled){return;}AjaxRequest.numActiveAjaxRequests++;
if(AjaxRequest.numActiveAjaxRequests==1 && typeof(window['AjaxRequestBegin'])=="function"){AjaxRequestBegin();}if(req.groupName!=null){if(typeof(AjaxRequest.numActiveAjaxGroupRequests[req.groupName])=="undefined"){AjaxRequest.numActiveAjaxGroupRequests[req.groupName] =0;}AjaxRequest.numActiveAjaxGroupRequests[req.groupName]++;
if(AjaxRequest.numActiveAjaxGroupRequests[req.groupName]==1 && typeof(req.onGroupBegin)=="function"){req.onGroupBegin(req.groupName);}}if(typeof(req.onLoading)=="function"){req.onLoading(req);}req.onLoadingInternalHandled=true;};
req.onLoadedInternal=
function(){if(req.onLoadedInternalHandled){return;}if(typeof(req.onLoaded)=="function"){req.onLoaded(req);}req.onLoadedInternalHandled=true;};
req.onInteractiveInternal=
function(){if(req.onInteractiveInternalHandled){return;}if(typeof(req.onInteractive)=="function"){req.onInteractive(req);}req.onInteractiveInternalHandled=true;};
req.onCompleteInternal=
function(){if(req.onCompleteInternalHandled || req.aborted){return;}req.onCompleteInternalHandled=true;
AjaxRequest.numActiveAjaxRequests--;
if(AjaxRequest.numActiveAjaxRequests==0 && typeof(window['AjaxRequestEnd'])=="function"){AjaxRequestEnd(req.groupName);}if(req.groupName!=null){AjaxRequest.numActiveAjaxGroupRequests[req.groupName]--;
if(AjaxRequest.numActiveAjaxGroupRequests[req.groupName]==0 && typeof(req.onGroupEnd)=="function"){req.onGroupEnd(req.groupName);}}req.responseReceived =true;
req.status =req.xmlHttpRequest.status;
req.statusText =req.xmlHttpRequest.statusText;
req.responseText =req.xmlHttpRequest.responseText;

req.responseXML =req.xmlHttpRequest.responseXML;
if(typeof(req.onComplete)=="function"){req.onComplete(req);}if(req.xmlHttpRequest.status==200 && typeof(req.onSuccess)=="function"){req.onSuccess(req);}else if(typeof(req.onError)=="function"){req.onError(req);}delete req.xmlHttpRequest['onreadystatechange'];
req.xmlHttpRequest =null;};
req.onTimeoutInternal=
function(){if(req!=null && req.xmlHttpRequest!=null && !req.onCompleteInternalHandled){req.aborted =true;
req.xmlHttpRequest.abort();
AjaxRequest.numActiveAjaxRequests--;
if(AjaxRequest.numActiveAjaxRequests==0 && typeof(window['AjaxRequestEnd'])=="function"){AjaxRequestEnd(req.groupName);}if(req.groupName!=null){AjaxRequest.numActiveAjaxGroupRequests[req.groupName]--;
if(AjaxRequest.numActiveAjaxGroupRequests[req.groupName]==0 && typeof(req.onGroupEnd)=="function"){req.onGroupEnd(req.groupName);}}if(typeof(req.onTimeout)=="function"){req.onTimeout(req);}delete req.xmlHttpRequest['onreadystatechange'];
req.xmlHttpRequest =null;}};
req.process =
function(){if(req.xmlHttpRequest!=null){if(req.generateUniqueUrl && req.method=="GET"){req.parameters["AjaxRequestUniqueId"] =new Date().getTime() + "" + req.requestIndex;}var content =null;
for(var i in req.parameters){if(req.queryString.length>0){req.queryString +="&";}req.queryString +=encodeURIComponent(i) + "=" + encodeURIComponent(req.parameters[i]);}if(req.method=="GET"){if(req.queryString.length>0){req.url +=((req.url.indexOf("?")>-1)?"&":"?") + req.queryString;}}req.xmlHttpRequest.open(req.method,req.url,req.async,req.username,req.password);
if(req.method=="POST"){if(typeof(req.xmlHttpRequest.setRequestHeader)!="undefined"){req.xmlHttpRequest.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');}content =req.queryString;}if(req.timeout>0){setTimeout(req.onTimeoutInternal,req.timeout);}req.xmlHttpRequest.send(content);}};
req.handleArguments =
function(args){for(var i in args){if(typeof(req[i])=="undefined"){req.parameters[i] =args[i];}else{req[i] =args[i];}}};
req.getAllResponseHeaders =
function(){if(req.xmlHttpRequest!=null){if(req.responseReceived){return req.xmlHttpRequest.getAllResponseHeaders();}alert("Cannot getAllResponseHeaders because a response has not yet been received");}};
req.getResponseHeader =
function(headerName){if(req.xmlHttpRequest!=null){if(req.responseReceived){return req.xmlHttpRequest.getResponseHeader(headerName);}alert("Cannot getResponseHeader because a response has not yet been received");}};
return req;}AjaxRequest.getXmlHttpRequest =function(){if(window.XMLHttpRequest){return new XMLHttpRequest();}else if(window.ActiveXObject){/*@cc_on @*/
/*@if(@_jscript_version >=5)
try{return new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{return new ActiveXObject("Microsoft.XMLHTTP");}catch(E){return null;}}@end @*/}else{return null;}};
AjaxRequest.isActive =function(){return(AjaxRequest.numActiveAjaxRequests>0);};
AjaxRequest.get =function(args){AjaxRequest.doRequest("GET",args);};
AjaxRequest.post =function(args){AjaxRequest.doRequest("POST",args);};
AjaxRequest.doRequest =function(method,args){if(typeof(args)!="undefined" && args!=null){var myRequest =new AjaxRequest();
myRequest.method =method;
myRequest.handleArguments(args);
myRequest.process();}};
AjaxRequest.submit =function(theform, args){var myRequest =new AjaxRequest();
if(myRequest==null){return false;}var serializedForm =AjaxRequest.serializeForm(theform);
myRequest.method =theform.method.toUpperCase();
myRequest.url =theform.action;
myRequest.handleArguments(args);
myRequest.queryString =serializedForm;
myRequest.process();
return true;};
AjaxRequest.serializeForm =function(theform){var els =theform.elements;
var len =els.length;
var queryString ="";
this.addField =
function(name,value){if(queryString.length>0){queryString +="&";}queryString +=encodeURIComponent(name) + "=" + encodeURIComponent(value);};
for(var i=0;i<len;i++){var el =els[i];
if(!el.disabled){switch(el.type){case 'text': case 'password': case 'hidden': case 'textarea':
this.addField(el.name,el.value);
break;
case 'select-one':
if(el.selectedIndex>=0){this.addField(el.name,el.options[el.selectedIndex].value);}break;
case 'select-multiple':
for(var j=0;j<el.options.length;j++){if(el.options[j].selected){this.addField(el.name,el.options[j].value);}}break;
case 'checkbox': case 'radio':
if(el.checked){this.addField(el.name,el.value);}break;}}}return queryString;};
AjaxRequest.numActiveAjaxRequests =0;
AjaxRequest.numActiveAjaxGroupRequests =new Object();
AjaxRequest.numAjaxRequests =0;


var strErrors;document.strErrors='';function doSubmit(frm,btnSubmit,confirmation,azi,checkFunct){if(!frm){alert('html error: form not found!');return false;}
if(!messages){alert('html error: localized messages not found!');return false;}
document.strErrors='';var res;if((btnSubmit&&btnSubmit.value!=messages["WAIT_PLEASE"])){res=callCheckFieldsFunction(frm,checkFunct);if(res){if(!confirmation||window.confirm(messages["CONFIRM_SUBMIT"])){if(btnSubmit)btnSubmit.value=messages["WAIT_PLEASE"];frm.azi.value=azi;return true;}}else{errorAction();}}
return false;}
function callCheckFieldsFunction(frm,checkFunct){if(!checkFunct||typeof checkFunct!='function'){alert('javascript error: checkFunct function not found!');return false;}
var check;check=eval('checkFunct(frm)');if(!check&&document.strErrors&&document.strErrors!=''){document.strErrors=messages["DATA_ERROR"]+document.strErrors;}
return check;}
function errorAction(){if(document.firstErrorField){document.firstErrorField.focus();}
if(document.strErrors&&document.strErrors!='')alert(document.strErrors);}
function copyValue(sourceInput,targetInput){if(sourceInput&&targetInput){targetInput.value=sourceInput.value;}}
function emptySelect(selectInput,defaultLabel,defaultValue){selectInput.options.length=0;if(defaultLabel&&defaultValue){selectInput.options[0]=new Option(defaultLabel,defaultValue);}
selectInput.disabled=true;}
function selectValue(selectInput,valueToSelect,caseInSensitive){for(var i=0;i<selectInput.options.length;i++){if((caseInSensitive&&selectInput.options[i].value.toLocaleLowerCase()==valueToSelect.toLocaleLowerCase())||(!caseInSensitive&&selectInput.options[i].value==valueToSelect)){selectInput.selectedIndex=i;return true;}}
return false;}
function selectAllCheckBoxes(checkboxInput) {if(typeof checkboxInput != 'undefined'){if(checkboxInput.length){for(var i = 0; i < checkboxInput.length; i++) {checkboxInput[i].checked = true;}}else{checkboxInput.checked = true;}}}
function unselectAllCheckBoxes(checkboxInput){if(typeof checkboxInput != 'undefined'){if(checkboxInput.length){for(var i=0;i<checkboxInput.length;i++){checkboxInput[i].checked=false;}}else{checkboxInput.checked=false;}}}
function toggleSelectAllCheckBoxes(checkboxInput){if(typeof checkboxInput!='undefined'){if(checkboxInput.length){for(var i=0;i<checkboxInput.length;i++){checkboxInput[i].checked = !checkboxInput[i].checked;}}else{checkboxInput.checked=!checkboxInput[i].checked;}}}
function selectCheckboxValues(checkboxInput,valuesToSelect){var result=false;if (typeof checkboxInput != 'undefined' && typeof valuesToSelect != 'undefined') {valuesToSelect=valuesToSelect.replace('[','').replace(']','');valuesToSelect=valuesToSelect.split(',');if(valuesToSelect.length){for(var j=0;j<valuesToSelect.length;j++){if(checkboxInput.length){for(var i=0;i<checkboxInput.length;i++){if(checkboxInput[i].value==valuesToSelect[j].replace(/^(\s+)/,'').replace(/$(\s+)/,'')){checkboxInput[i].checked=true;result=true;}}}else{if(checkboxInput.value==valuesToSelect[j]){checkboxInput.checked=true;result=true;}}}}}
return result;}function loadSelectItems (selectElement, selectedItem, items) {if (typeof selectElement != 'undefined' && typeof selectElement.form != 'undefined') {var optns = selectElement.options;optns.length = 0;for (x in items) {if (x!='extend'){optns[optns.length]=new Option(x,items[x],false,selectedItem==items[x]);}}}}
function checkNumber (e){if(!e){e=window.event;}var code=e.keyCode;if (e.charCode){code=e.charCode;}else if(e.keyCode){code=e.keyCode;}var ret=(code==8||code==9||code==13||code==46||(48<=code&&code<=57));var elem=(e.target)?e.target:e.srcElement;var curValue=elem.value;if(code!=8&&code!=9&&code!=13){ret=ret&&!isNaN(curValue+String.fromCharCode(code))};e.returnValue=ret;if(!ret&&e.preventDefault){e.preventDefault();};return ret;}
function submitFormOnEnter(evt,callback){if(typeof evt=='undefined'){evt=event;}if(evt.keyCode==13){callback(evt);}};
function limitFields(){function gestExplodeData(evt){this.value=explodeData(this.value);}var inputs=document.documentElement.getElementsByTagName('input');for(var i=0;i<inputs.length;i++){if(inputs[i].className.indexOf('data')>=0){addEventRomeo(inputs[i],'blur',gestExplodeData.bind(inputs[i]));}else if(inputs[i].className.indexOf('numero')>=0){addEventRomeo(inputs[i],'keypress',checkNumber.bind(inputs[i]));}}};
function objLimits(_1,_2){var _3=null,myMax=null;if(_1!=null&&!isNaN(_1)){_3=_1;}if(_2!=null&&!isNaN(_2)){myMax=_2;}this.getMin=function(){return _3;};this.setMin=function(_4){if(!isNaN(_4)){_3=_4;}};this.getMax=function(){return myMax;};this.setMax=function(_5){if(!isNaN(_5)){myMax=_5;}};}function checkFields(_6,_7,_8,_9,_a,_b){if(_6==null){document.strErrors+="Il riferimento al form \xe8 nullo!\n";return (false);}var _c=_7.length;if(_8.length!=_c||_9.length!=_c||_a.length!=_c||_b.length!=_c){document.strErrors+="Gli array sono di dimensioni diverse!\n";return (false);}function convertNumber(_d){if(_d){_d = _d + '';var _e=_d.split(",");if(_e && _e.length==2){_d=_d.replace(".","");_d=_d.replace(",",".");}else{_e=_d.split(".");if(_e && _e.length==2){_d=_d.replace(",","");}}}return (!isNaN(_d)?_d:"");}function isInteger(_f){var re=/^-{0,1}\d+$/i;return re.test(_f);}function isFloat(_11){var re=/^-{0,1}\d+\.{0,1}\d+$/i;if(re.test(_11)){return (true);}_11=convertNumber(_11);if(re.test(_11)){return (true);}return (isInteger(_11));}function isCurrency(_13){var re=/^\d+\.{0,1}\d{2}$/i;_13=convertNumber(_13);if(re.test(_13)){return (true);}re=/^\d+\.{0,1}\d{1}$/i;if(re.test(_13)){return (true);}re=/^\d+\$/i;if(re.test(_13)){return (true);}return (false);}function isBoolean(_15){return (_15.toLowerCase()=="true"||_15.toLowerCase()=="false");}function isDate(_16){function IsDate(dt){var _18=dt.match(/^(\d{1,2})\/(\d{1,2})\/(\d{1,4})$/);if(!_18){return false;}else{var _19=dt.split("/");var _1a=new Date(parseInt(_19[2],10),parseInt(_19[1],10)-1,parseInt(_19[0],10));_1a.setHours(0);_1a.setMinutes(0);_1a.setSeconds(0);_1a.setMilliseconds(0);if(_1a.getDate()==parseInt(_19[0],10)){return true;}else{return false;}}return true;}var re=/^(3[01]|0[1-9]|[12]\d|[1-9])\/(0[1-9]|1[012]|[1-9])\/\d{4}$/i;return re.test(_16)&&IsDate(_16);}function isTime(_1c){var re=/^(\d|0[0-9]|1[0-9]|2[0-3])\.[0-5]?\d$/i;return re.test(_1c);}function isCap(_1e){var re=/^\d{5}$/i;return re.test(_1e);}function isProv(_20){var re=/^[a-z]{2}$/i;return re.test(_20);}function isCodFisc(_22){var re=/^[A-Z]{6}\d{2}[A-Z]\d{2}[A-Z]\d{3}[A-Z]$/i;return re.test(_22);}function isEmail(_24){var _25=/^(.+)@(.+)$/;var _26="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]";var _27="[^\\s"+_26+"]";var _28="(\"[^\"]*\")";var _29=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;var _2a=_27+"+";var _2b="("+_2a+"|"+_28+")";var _2c=new RegExp("^"+_2b+"(\\."+_2b+")*$");var _2d=new RegExp("^"+_2a+"(\\."+_2a+")*$");var _2e=_24.match(_25);if(_2e==null){return false;}var _2f=_2e[1];var _30=_2e[2];if(_2f.match(_2c)==null){return false;}var _31=_30.match(_29);if(_31!=null){for(var i=1;i<=4;i++){if(_31[i]>255){return false;}}return true;}var _33=_30.match(_2d);if(_33==null){return false;}var _34=new RegExp(_2a,"g");var _35=_30.match(_34);var len=_35.length;if(_35[_35.length-1].length<2||_35[_35.length-1].length>4){return false;}if(len<2){var _37="This address is missing a hostname!";return false;}return true;}function isWWWAddress(_38){var re=/^http:\/\/.*\..*$/i;return re.test(_38);}function isIban(x){function noBlanks(x){var _3c="";for(var i=0;i<x.length;++i){if(x.charAt(i)!=" "){_3c=_3c+x.charAt(i);}}return _3c;}function alph(x){var _3f=x.toUpperCase();for(var i=0;i<_3f.length;++i){var a=_3f.charCodeAt(i);if(a<65||a>90){return false;}}return true;}function alphnum(x){for(var i=0;i<x.length;++i){var c=x.charAt(i);if(!alph(c)&&!num(c)){return false;}}return true;}function num(x){for(var i=0;i<x.length;++i){var a=x.charCodeAt(i);if(a<48||a>57){return false;}}return true;}function checkDigitSum(s){var n;newS="";for(var i=0;i<s.length;++i){var a=s.charCodeAt(i);if(a>=65&a<=90){n=a-55;}else{n=s.charAt(i);}newS=newS+n;}var _4c=parseInt(newS.substring(0,2),10);var r=_4c%97;for(i=2;i<newS.length;++i){_4c=10*r+parseInt(newS.substring(i,i+1),10);r=_4c%97;}if(r==1){return true;}else{return false;}}var _4e=false;var st=new Array();x=noBlanks(x.toUpperCase());st[0]=x.substring(0,2);countryCode=st[0];st[1]=x.substring(2,4);st[2]=x.substring(4,8);st[3]=x.substring(8,x.length);sCheck=st[2]+st[3]+st[0]+st[1];if(!alph(st[0])){_4e=true;}if(!num(st[1])){_4e=true;}if(!alphnum(sCheck)){_4e=true;}if(countryCode=="GB"){if(!alph(st[2])){_4e=true;}gbLength=sCheck.length;if(gbLength!=22){_4e=true;}}if(!_4e&&checkDigitSum(sCheck)){return true;}else{return false;}}function strLenChecker(_50,_51,_52){if((_51!=null&&_52!=null)&&!(_51<=_50&&_50<=_52)){if(_51!=_52){document.strErrors+="Il campo "+_8[i]+" deve essere lungo tra "+_51+" e "+_52+" caratteri\n";}else{document.strErrors+="Il campo "+_8[i]+" deve essere lungo "+_51+" caratteri\n";}}else{if(_51!=null&&_51>_50){document.strErrors+="Il campo "+_8[i]+" deve essere lungo almeno "+_51+" caratteri\n";}else{if(_52!=null&&_52<_50){document.strErrors+="Il campo "+_8[i]+" deve essere lungo al massimo "+_52+" caratteri\n";}}}}function numLenChecker(_53,_54,_55){if((_54!=null&&_55!=null)&&!(_54<=_53&&_53<=_55)){if(_54!=_55){document.strErrors+="Il campo "+_8[i]+" deve essere compreso tra "+_54+" e "+_55+"\n";}else{document.strErrors+="Il campo "+_8[i]+" deve valere "+_54+"\n";}}else{if(_54!=null&&_54>_53){document.strErrors+="Il campo "+_8[i]+" deve valere almeno "+_54+"\n";}else{if(_55!=null&&_55<_53){document.strErrors+="Il campo "+_8[i]+" deve valere al massimo "+_55+"\n";}}}}var _56=false;var _57,tempvalue,templen,tempmin,tempmax;var _58;var i;document.firstErrorField=false;for(i=0;i<_b.length;i++){if(_6[_7[i-1]]&&!document.firstErrorField&&document.strErrors!=""){if(isNaN(_6[_7[i-1]].length)||_6[_7[i-1]].options){document.firstErrorField=_6[_7[i-1]];}else{document.firstErrorField=_6[_7[i-1]][0];}}_58=false;if(_9[i]=="ts"||_9[i]=="tr"||_9[i]=="tc"){_58=true;}_57=_6[_7[i]];if(!_57){document.strErrors+="Il campo "+_8[i]+" non esiste!\n";continue;}if(!_58){tempvalue=_57.value;if(!tempvalue&&tempvalue!=""){alert(_57.value);document.strErrors+="Il campo "+_8[i]+" non ha value!\n";continue;}templen=tempvalue.length;}if(!_58&&_a[i]&&templen==0){document.strErrors+="Il campo "+_8[i]+" \xe8 richiesto\n";continue;}else{if(_58&&_a[i]){switch(_9[i]){case "ts":if(_57.selectedIndex<0||_57.options[_57.selectedIndex].value==""){document.strErrors+="Il campo "+_8[i]+" \xe8 richiesto\n";}break;default:var _5a=_57.length;if(!isNaN(_5a)){for(var j=0;j<_5a;j++){if(_57[j].checked){break;}if(j==_5a-1){document.strErrors+="Il campo "+_8[i]+" \xe8 richiesto\n";}}}else{if(!_57.checked){document.strErrors+="Il campo "+_8[i]+" \xe8 richiesto\n";}}}continue;}}if(templen==0){continue;}if(_b[i]!=null){tempmin=_b[i].getMin();tempmax=_b[i].getMax();}switch(_9[i]){case "s":if(templen>0&&_b[i]!=null){strLenChecker(templen,tempmin,tempmax);}break;case "i":if(isInteger(tempvalue)){if(templen>0&&_b[i]!=null){tempvalue=parseInt(tempvalue);numLenChecker(tempvalue,tempmin,tempmax);}}else{document.strErrors+="Il campo "+_8[i]+" deve essere un numero intero\n";}break;case "f":if(isFloat(tempvalue)){if(templen>0&&_b[i]!=null){tempvalue=parseFloat(tempvalue);numLenChecker(tempvalue,tempmin,tempmax);}_6[_7[i]].value=strValue=convertNumber(tempvalue);}else{document.strErrors+="Il campo "+_8[i]+" deve essere un numero decimale\n";}break;case "m":if(isCurrency(tempvalue)){if(templen>0&&_b[i]!=null){tempvalue=parseFloat(tempvalue);numLenChecker(tempvalue,tempmin,tempmax);}_6[_7[i]].value=convertNumber(tempvalue);}else{document.strErrors+="Il campo "+_8[i]+" deve essere un numero con due cifre decimali\n";}break;case "d":if(!isDate(tempvalue)){document.strErrors+="Il campo "+_8[i]+" deve essere una data nel formato gg/mm/aaaa\n";}break;case "t":if(!isTime(tempvalue)){document.strErrors+="Il campo "+_8[i]+" deve essere un'orario nel formato hh.mm\n";}break;case "dt":break;case "e":if(!isEmail(tempvalue)){document.strErrors+="Il campo "+_8[i]+" deve essere un'email valida\n";}break;case "b":if(!isBoolean(tempvalue)){document.strErrors+="Il campo "+_8[i]+" deve essere un valore booleano (true-false)\n";}break;case "cap":if(!isCap(tempvalue)){document.strErrors+="Il campo "+_8[i]+" deve essere un codice di avviamento postale valido\n";}break;case "prov":if(!isProv(tempvalue)){document.strErrors+="Il campo "+_8[i]+" deve essere una provincia valida\n";}break;case "cf":if(!isCodFisc(tempvalue)){document.strErrors+="Il campo "+_8[i]+" deve essere un codice fiscale valido\n";}break;case "w":if(isWWWAddress(tempvalue)){if(templen>0&&_b[i]!=null){strLenChecker(templen,tempmin,tempmax);}}else{document.strErrors+="Il campo "+_8[i]+" deve essere un indirizzo web completo\n";}break;case "iban":if(isIban(tempvalue)){}else{document.strErrors+="Il campo "+_8[i]+" deve essere un numero iban valido\n";}break;}}if(document.strErrors==""){_56=true;}if(!document.firstErrorField&&document.strErrors!=""){if(isNaN(_6[_7[i-1]].length)){document.firstErrorField=_6[_7[i-1]];}else{document.firstErrorField=_6[_7[i-1]][0];}}return (_56);}function returnYearsMonthsDays(in1,in2){function check2k(a){return (a<1900)?a-=-1900:a;}function addYr(a){return new Date(check2k(1*a.getYear()+1),a.getMonth(),a.getDate());}function addMth(a){return new Date(check2k(a.getYear()),1*a.getMonth()+1,a.getDate());}function addDay(a){return new Date(check2k(a.getYear()),a.getMonth(),1*a.getDate()+1);}var _62=0,mthCount=0,dayCount=0;var _63=in1;var _64=in2;if(_63>_64){var _65=_63;_63=_64;_64=_65;}while(addYr(_63)<=_64){_63=addYr(_63);_62++;}while(addMth(_63)<=_64){_63=addMth(_63);mthCount++;}while(addDay(_63)<=_64){_63=addDay(_63);dayCount++;}return [_62,mthCount,dayCount];}function isMaggiorenne(_66,_67){return returnYearsMonthsDays(_66,_67)[0]>=18;}

