smartcost.js 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746
  1. 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}('B F={2W:[],4F:8(){5(Y.1t){Y.5U(\'<11 57="5C/6p">.1R-5G-4T {3B: 2m !6a;}</11>\')};M.V(16,\'5m\',M.5E)},3O:8(g){B h=Y,J=16,23=6F;5(!h.1t||!h.4M)C;5(33(g)==\'3I\')g=Y.1t(g);5(g==Z||23.3b.2B(\'62\')!=-1||((23.3b.2B(\'6U\')!=-1||23.3b.2B(\'7d\')!=-1)&&!(33(5e)!="6x"&&5e.74))||23.7k==\'6h\'||(23.79.2B(\'7o\')!=-1&&23.3b.2B(\'70\')!=-1)){5(g!=Z)2b(g,\'1R-7g\',\'1R-5G-4T\');5(16.50)16.50(g);C};5(g.14){g.14.1G();C};5(F.5u(g))C;5(!g.1M||g.1M==\'\'){B k="6M",c=1;1B(Y.1t(k+c)!=Z){c++};g.1M=k+c}g.4I=2q 5q();g.14=2q 5q();B l=g.1M,4=g.4I,I=g.14;4.27={5Y:[\'-1s\',0],6Y:[0,\'-1s\'],6t:[\'1s\',0],7s:[0,\'1s\'],7f:[0,\'-1p\'],6e:[0,\'1p\'],7u:[0,\'-4W\'],77:[0,\'+4W\']};4.3R=["-2s","2s"];4.41=["-2s","2s"];4.1V=[[A,A],[A,A]];B m=T(\'6I\',E),H=T(\'7m\',E),G=T(\'66\',E),1l=T(\'72\',E);B o=T(\'7q\',E),1x=T(\'6B\',E),37=A;1l.D.1K=\'4P 5i 7i\';1l.2e();g.11.3B=\'2m\';1x.D.6l="7b";1x.D.1Z="53";1x.D.13="53";1x.D.1O="3h";1x.D.21="-6Q";1x.2e();B p=g.15,5y=g.1q;2u(g,1l,\'1g\',[\'1K-1b-13\',\'1K-25-13\',\'1K-1e-13\',\'1K-2g-13\']);B q=g.15,5k=g.1q,3D=5y-5k,43=p-q;B s=(g.2c)?g.2c:0,59=(g.2i)?g.2i:0;B t=Y.2Y.1f,3Q=/#([^#.]*)$/;B u=[\'5W\',\'6r\',\'6S\'];4.O=[];4.29=[];4.6c=4.U=[];4.6H=4.1I=[];4.1Q=[A,A];4.2D=A;4.2G=A;4.17=[];4.1T=[0,0];4.1v=[];4.3K=[];4.19=[];4.2o=[A,A];4.2x=[0,0];1B(g.4N){m.1a(g.4N)};m.1a(o);g.1a(H);g.1a(1l);B w=P(g,\'1O\');5(w!=\'3h\'&&w!=\'5g\'){g.11.1O=w="35"};5(w==\'5g\')g.11.1O="3h";B x=P(g,\'5C-64\');g.11.5s=\'1b\';H.D.13="52";H.D.1Z="52";H.D.1e="1g";H.D.1b="1g";2u(g,1l,"1g",[\'N-1b\',\'N-1e\',\'N-25\',\'N-2g\']);B y=g.1q,5w=g.15,48;48=H.15;H.D.6j="6O 5i 6z";5(H.15>48)37=E;H.D.6W="1g";2u(1l,g,A,[\'N-1b\',\'N-1e\',\'N-25\',\'N-2g\']);1N(H);1N(g);4.19[0]=H.1D-g.1D;4.19[2]=H.1F-g.1F;g.11.5o=P(g,"N-2g");g.11.5A=P(g,"N-25");1N(H);1N(g);4.19[1]=H.1D-g.1D;4.19[3]=H.1F-g.1F;g.11.5o=P(1l,"N-1e");g.11.5A=P(1l,"N-1b");B z=4.19[2]+4.19[3],3G=4.19[0]+4.19[1];g.11.1O=w;H.11.5s=x;2u(g,H,A,[\'N-1b\',\'N-25\',\'N-1e\',\'N-2g\']);G.D.13=g.1q+\'K\';G.D.1Z=g.15+\'K\';H.D.13=y+\'K\';H.D.1Z=5w+\'K\';G.D.1O=\'3h\';G.D.1e=\'1g\';G.D.1b=\'1g\';4.31=G.D.21;H.1a(m);g.1a(G);G.1a(1x);m.D.1O=\'35\';H.D.1O=\'35\';m.D.1e="0";m.D.13="46%";H.D.3B=\'2m\';H.D.1b="-"+4.19[2]+"K";H.D.1e="-"+4.19[0]+"K";4.4h=1x.15;4.3l=8(){B a=m.60,3p=6v=0;1n(B i=0;i<a.2y;i++){5(a[i].1q){3p=R.1X(a[i].1q,3p)}};4.U[0]=((4.17[1]&&!4.1v[1])||4.29[1])?g.1q-4.1T[0]:g.1q;4.1I[0]=3p+z;C 4.1I[0]};4.3f=8(){4.U[1]=((4.17[0]&&!4.1v[0])||4.29[0])?g.15-4.1T[1]:g.15;4.1I[1]=m.15+3G-2;C 4.1I[1]};4.4K=8(){m.D.2K=\'3T\';m.D.2K=\'6g\'};4.4d=8(){H.D.13=(37)?(4.U[0]-z-3D)+\'K\':4.U[0]+\'K\'};4.4l=8(){H.D.1Z=(37)?(4.U[1]-3G-43)+\'K\':4.U[1]+\'K\'};4.2O=8(){4.3l();4.3f();G.2U=2q 4j();B a=G.2U;2O(a,\'6K\',1);a.2S=[1j(P(a.7,\'N-1e\')),1j(P(a.7,\'N-2g\'))];a.7.D.N=\'1g\';a.7.Q=0;a.7.39=E;a.7.2w=1;m.4R=a.7;3M(a,0);4.1T[0]=(4.2o[1])?0:a.1k.1q;4.4d();G.3n=2q 4j();B b=G.3n;2O(b,\'68\',0);b.2S=[1j(P(b.7,\'N-1b\')),1j(P(b.7,\'N-25\'))];b.7.D.N=\'1g\';b.7.Q=0;b.7.39=A;b.7.2w=0;m.6D=b.7;5(J.55)b.7.D.1O=\'35\';3M(b,0);4.1T[1]=(4.2o[0])?0:b.1k.15;4.4l();G.D.1Z=g.15+\'K\';b.2I=T(\'6n\');G.1a(b.2I);b.2I.4a=8(){b.7.3j=E;4.1L=b.7;b.7.3t=E;b.7.2z=A;G.2U.7.2z=A;F.V(h,\'3Y\',1P);F.V(h,\'2M\',3r);F.V(h,\'3v\',2Q);C A}};4.1L=Z;4.2O();M.4f(o,G);5(!M.1z(g,\'4Y\',2A)||!M.1z(g,\'5c\',2A)){g.5V=2A};M.1z(g,\'4Y\',2A);M.1z(g,\'5c\',2A);M.1z(m,\'4G\',3C);M.1z(G,\'4G\',3C);g.6b(\'6G\',\'0\');M.V(g,\'6q\',8(e){5(g.2X)C;5(!e){B e=J.1m};B a=e.58;4.5D=a;I.24();5(4.27[\'1S\'+a]&&!16.55){I.1h(4.27[\'1S\'+a][0],4.27[\'1S\'+a][1],E);5(e.1u)e.1u();C A}});M.V(g,\'63\',8(e){5(g.2X)C;5(!e){B e=J.1m};B a=e.58;5(4.27[\'1S\'+a]){I.1h(4.27[\'1S\'+a][0],4.27[\'1S\'+a][1],E);5(e.1u)e.1u();C A}});M.V(g,\'6y\',8(){4.5D=A});M.V(h,\'3v\',2C);M.V(g,\'4U\',3P);8 3P(e){5(!e)e=J.1m;B a=(e.18)?e.18:(e.1C)?e.1C:A;5(!a||(a.1r&&a.1r.X(3c("\\\\6i\\\\b"))))C;4.5n=e.2f;4.5J=e.2l;34();1N(g);2C();F.V(h,\'2M\',3J);4.2J=[g.1F+10,g.1F+4.U[0]-10,g.1D+10,g.1D+4.U[1]-10]};8 3J(e){5(!e)e=J.1m;B a=e.2f,4i=e.2l,4x=a+4.4B,42=4i+4.4z;4.4D=(4x<4.2J[0]||4x>4.2J[1])?1:0;4.4E=(42<4.2J[2]||42>4.2J[3])?1:0;4.4s=a-4.5n;4.4C=4i-4.5J;4.3q=(4.4s>40)?1:(4.4s<-40)?-1:0;4.3i=(4.4C>40)?1:(4.4C<-40)?-1:0;5((4.3q!=0||4.3i!=0)&&!4.2j)4.2j=J.2R(8(){5(4.3q==0&&4.3i==0){J.2n(4.2j);4.2j=A;C};34();5(4.4D==1||4.4E==1)I.1h((4.3q*4.4D)+"s",(4.3i*4.4E)+"s",E)},45)};8 2C(){F.1H(h,\'2M\',3J);5(4.2j)J.2n(4.2j);4.2j=A;5(4.3V)J.51(4.3V);5(4.4b)J.2n(4.4b)};8 3x(a){5(4.2G){16.2n(4.2G);4.2G=A}5(!a)G.D.21=4.31};8 34(){4.4B=(J.5v)?J.5v:(h.2t&&h.2t.2i)?h.2t.2i:0;4.4z=(J.5f)?J.5f:(h.2t&&h.2t.2c)?h.2t.2c:0};I.4o=8(){1n(B j=0,3F;3F=u[j];j++){B a=g.30(3F);1n(B i=0,2r;2r=a[i];i++){5(!2r.4J){F.V(2r,\'5Z\',8(){g.2X=E});F.V(2r,\'6J\',6R=8(){g.2X=A});2r.4J=E}}}};g.6u=I.1G=8(a){5(G.W[1]()===0||G.W[0]()===0)C;m.D.N=\'4P\';B b=4.17[0],5b=4.17[1],47=G.2U,2F=G.3n,3e,3u,2T=[];G.D.13=g.1q-3D+\'K\';G.D.1Z=g.15-43+\'K\';2T[0]=4.U[0];2T[1]=4.U[1];4.17[0]=4.3l()>4.U[0];4.17[1]=4.3f()>4.U[1];B c=(b!=4.17[0]||5b!=4.17[1]||2T[0]!=4.U[0]||2T[1]!=4.U[1])?E:A;47.1k.3S(4.17[1]);2F.1k.3S(4.17[0]);3e=(4.17[1]||4.29[1]);3u=(4.17[0]||4.29[0]);4.3l();4.3f();4.4l();4.4d();5(!4.17[0]||!4.17[1]||4.1v[0]||4.1v[1])2F.2I.2e();1i 2F.2I.38();5(3e)3y(47,(3u&&!4.1v[0])?4.1T[1]:0);1i m.D.1e="0";5(3u)3y(2F,(3e&&!4.1v[1])?4.1T[0]:0);1i m.D.1b="0";5(c&&!a)I.1G(E);m.D.N=\'1g\';4.1Q[0]=4.1Q[1]=A};g.6f=I.1h=8(a,b,c,d){B e;5((a||a===0)&&4.O[0]){a=4u(a,0);e=G.3n.7;e.1c=(c)?R.28(R.1X(e.1J,e.1c-a),0):-a;e.3m()}5((b||b===0)&&4.O[1]){b=4u(b,1);e=G.2U.7;e.1c=(c)?R.28(R.1X(e.1J,e.1c-b),0):-b;e.3m()}5(!c)4.1Q[0]=4.1Q[1]=A;5(g.3z&&!d)g.3z();C 4.1V};I.4m=8(a,b){C I.1h(a,b,E)};I.3A=8(a){5(a==Z||!4X(a))C;B b=4Q(a);I.1h(b[0]+4.19[2],b[1]+4.19[0],A);I.1h(0,0,E)};2u(1l,g,\'1g\',[\'1K-1b-13\',\'1K-25-13\',\'1K-1e-13\',\'1K-2g-13\']);M.4f(1l,G);g.2c=0;g.2i=0;I.4o();M.2W[M.2W.2y]=g;2b(g,\'67\',A);I.1G();I.1h(59,s,E);5(t.X(3Q)){I.3A(h.1t(t.X(3Q)[1]))};4.7c=J.2R(8(){B n=1x.15;5(n!=4.4h){I.1G();4.4h=n}},6V);8 4u(v,i){B a=v.7j();v=6C(a);C 1j((a.X(/p$/))?v*4.U[i]*0.9:(a.X(/s$/))?v*4.U[i]*0.1:v)};8 P(a,b){C F.P(a,b)};8 2u(a,b,c,d){B e=2q 4j();1n(B i=0;i<d.2y;i++){e[i]=F.4e(d[i]);b.11[e[i]]=P(a,d[i],e[i]);5(c)a.11[e[i]]=c}};8 T(b,c,d,e){B f=(d)?d:h.4M(\'4q\');5(!d){f.1M=l+\'1S\'+b;f.1r=(c)?b:b+\' 73\'};f.W=[8(){C f.1q},8(){C f.15}];f.2N=(e)?[1P,1P]:[8(a){f.D.13=a},8(a){f.D.1Z=a}];f.5j=[8(){C P(f,"1b")},8(){C P(f,"1e")}];f.1y=(e)?[1P,1P]:[8(a){f.D.1b=a},8(a){f.D.1e=a}];f.2e=8(){f.D.2V="2m"};f.38=8(a){f.D.2V=(a)?P(a,\'2V\'):"6m"};f.D=f.11;C f};8 2O(a,b,c){B d=Y.1t(l+\'-1R-\'+b);B e=(d!=Z)?E:A;5(e){a.1k=T(A,A,d,E);4.2o[c]=E;a.2v=T(b+\'54\');a.1W=T(b+\'5z\');a.7=T(A,A,F.3X(d,\'4q\',\'1R-6N\')[0]);a.20=T(b+\'5r\');a.1E=T(b+\'5H\')}1i{a.1k=T(b+\'6Z\');a.2v=T(b+\'54\');a.1W=T(b+\'5z\');a.7=T(b+\'78\');a.20=T(b+\'5r\');a.1E=T(b+\'5H\');G.1a(a.1k);a.1k.1a(a.7);a.1k.1a(a.2v);a.1k.1a(a.1W);a.7.1a(a.20);a.7.1a(a.1E)}};8 3M(b,c){B d=b.1k,7=b.7,i=7.2w;7.1c=0;7.2E=b.2S[0];7.2Z=d;7.H=H;7.4H=m;7.1w=0;3y(b,c,E);7.3E=8(a){5(!a)7.Q=1j((7.1c*7.26)/7.1J);7.Q=(R.28(R.1X(7.Q,0),7.26));7.1y[i](7.Q+7.2E+"K");5(!7.1w)7.1w=7.1c-1j((7.Q/7.3d)*7.1J);7.1w=(7.Q==0)?0:(7.Q==7.26)?0:(!7.1w)?0:7.1w;5(a){7.1c=1j((7.Q/7.3d)*7.1J);m.1y[i](7.1c+7.1w+"K");4.1V[i]=[-7.1c-7.1w,-7.1J]}};7.3m=8(){7.Q=1j((7.1c*7.3d)/7.1J);7.Q=(R.28(R.1X(7.Q,0),7.26));m.1y[i](7.1c+"K");4.1V[i]=[-7.1c,-7.1J];7.1w=A;7.3E(A)};4.2L=P(7,\'z-5a\');7.D.21=(4.2L=="5X"||4.2L=="0"||4.2L==\'6X\')?2:4.2L;H.D.21=P(7,\'z-5a\');7.4a=8(){7.3t=E;4.1L=7;7.3j=A;7.2z=A;F.V(h,\'3Y\',1P);F.V(h,\'2M\',3r);F.V(h,\'3v\',2Q);C A};7.6s=2C;d.4a=d.7A=8(e){5(!e){B e=J.1m};5(e.18&&(e.18==b.20||e.18==b.1E||e.18==b.7))C;5(e.1C&&(e.1C==b.20||e.1C==b.1E||e.1C==b.7))C;B a,2k=[];34();I.24();1N(7);a=(7.39)?e.2l+4.4z-7.1D:e.2f+4.4B-7.1F;2k[7.2w]=(a<0)?4.41[0]:4.41[1];2k[1-7.2w]=0;I.1h(2k[0],2k[1],E);5(e.57!="7p"){2C();4.3V=J.4V(8(){4.4b=J.2R(8(){I.1h(2k[0],2k[1],E)},5M)},6d)};C A};d.3S=8(r){5(r){d.38(g);4.1v[i]=(P(d,"2V")=="2m"||4.2o[i])?E:A;5(!4.1v[i])7.38(g);1i 5(!4.2o[i])7.2e();4.O[i]=E;2b(d,"","5F")}1i{d.2e();7.2e();4.29[i]=(P(d,"2V")!="2m")?E:A;4.O[i]=A;7.Q=0;m.1y[i](\'1g\');4.1V[i]=[A,A];2b(d,"5F","")};H.1y[1-i]((4.3K[i]&&(r||4.29[i])&&!4.1v[i])?4.1T[1-i]-4.19[i*2]+"K":"-"+4.19[i*2]+"K")};d.7e=1P};8 3y(a,b,c){B d=a.1k,7=a.7,2v=a.2v,20=a.20,1W=a.1W,1E=a.1E,i=7.2w;d.2N[i](G.W[i]()-b+\'K\');d.1y[1-i](G.W[1-i]()-d.W[1-i]()+\'K\');4.3K[i]=(1j(d.5j[1-i]())===0)?E:A;a.4k=a.2S[0]+a.2S[1];a.44=1j((d.W[i]()-a.4k)*0.75);7.5p=R.28(R.1X(R.28(1j(4.U[i]/4.1I[i]*d.W[i]()),a.44),45),a.44);7.2N[i](7.5p+\'K\');7.26=d.W[i]()-7.W[i]()-a.4k;7.Q=R.28(R.1X(0,7.Q),7.26);7.1y[i](7.Q+7.2E+\'K\');7.1J=H.W[i]()-4.1I[i];7.3d=7.26;2v.2N[i](d.W[i]()-1W.W[i]()+\'K\');20.2N[i](7.W[i]()-1E.W[i]()+\'K\');1E.1y[i](7.W[i]()-1E.W[i]()+\'K\');1W.1y[i](d.W[i]()-1W.W[i]()+\'K\');5(!c)7.3m();4.4K()};I.24=8(){H.2c=0;H.2i=0;g.2c=0;g.2i=0};M.V(J,\'5m\',8(){5(g.14)I.1G()});M.V(J,\'7E\',8(){5(g.4t)J.51(g.4t);g.4t=J.4V(8(){5(g.14)I.1G()},5M)});8 1P(){C A};8 3r(e){5(!e){B e=J.1m};B a=4.1L,L,4y,7w,65;5(a==Z)C;5(!F.4O&&!e.76)2Q();4y=(a.3j)?2:1;1n(B i=0;i<4y;i++){L=(i==1)?a.4H.4R:a;5(a.3t){5(!L.2z){I.24();1N(L);1N(L.2Z);L.5x=e.2l-L.1D;L.5S=e.2f-L.1F;L.5O=L.Q;L.2z=E};L.Q=(L.39)?e.2l-L.5x-L.2Z.1D-L.2E:e.2f-L.5S-L.2Z.1F-L.2E;5(a.3j)L.Q=L.Q+(L.Q-L.5O);L.3E(E);5(g.3z)g.3z()}1i L.2z=A}};8 2Q(){5(4.1L!=Z){4.1L.3t=A;4.1L.1c+=4.1L.1w}4.1L=Z;F.1H(h,\'3Y\',1P);F.1H(h,\'2M\',3r);F.1H(h,\'3v\',2Q)};8 3C(e){5(!e)e=J.1m;5(M==G)G.D.21=4.31;5(e.2d.2y!=1||(!4.O[0]&&!4.O[1]))C A;B a=\'\',6A=(e.18&&(e.18.1f||(e.18.7t==3&&e.18.1d.1f)))?E:A;4.2x=[e.2d[0].2f,e.2d[0].2l];3x();F.1z(g,\'5h\',3L);F.1z(g,\'5K\',4c);4.5Q=(e.18&&e.18.1M&&e.18.1M.X(/1S[6k]7y[7C]e?/))?E:A;C A};8 3L(e){5(!e)e=J.1m;5(e.2d.2y!=1)C A;F.1H(g,\'4U\',3P);B a=[e.2d[0].2f,e.2d[0].2l];4.2D=E;4.12=[4.2x[0]-a[0],4.2x[1]-a[1]];5(4.5Q){4.12[0]*=-(4.1I[0]/4.U[0]);4.12[1]*=-(4.1I[1]/4.U[1])};I.4m(4.12[0],4.12[1]);4.2x[0]=a[0];4.2x[1]=a[1];1n(B i=0;i<2;i++){5(4.12[i]!==0&&4.O[i]&&(4.12[1-i]==0||!4.O[1-i])){5((4.12[i]>0&&4.1V[i][1]==4.1V[i][0])||(4.12[i]<0&&4.1V[i][0]==0))4.2D=A};5(!4.O[i]&&4.12[1-i]!==0&&R.3W(4.12[i]/4.12[1-i])>1.1)4.2D=A};5(4.2D){e.1u();G.D.21=\'7l\'}1i{G.D.21=4.31}};8 4c(e){5(!e)e=J.1m;e.1u();5(e.2d.2y>0)C A;F.1H(g,\'5h\',3L);F.1H(g,\'5K\',4c);5((4.O[0]&&R.3W(4.12[0])>6)||(4.O[1]&&R.3W(4.12[1])>6)){B a=0;3x(E);4.2G=16.2R(8(){I.4m(4p(4.12[0],0,10,a,0.3),4p(4.12[1],0,10,a,0.3));a++;5(a>10)3x()},46)}};8 2A(e){5(!e)e=J.1m;5(!M.14)C;B a=M,36,4A,1U=A,1A=0,22;I.24();4w=(e.18)?e.18:(e.1C)?e.1C:M;5(4w.1M&&4w.1M.X(/6P/))1U=E;5(e.4L)1A=-e.4L;5(e.5R)1A=e.5R;1A=(1A<0)?-1:+1;22=(1A<0)?0:1;4.1Q[1-22]=A;5((4.1Q[22]&&!1U)||(!4.O[0]&&!4.O[1]))C;5(4.O[1]&&!1U)1Y=I.1h(A,4.3R[22],E);36=!4.O[1]||1U||(4.O[1]&&((1Y[1][0]==1Y[1][1]&&1A>0)||(1Y[1][0]==0&&1A<0)));5(4.O[0]&&(!4.O[1]||1U))1Y=I.1h(4.3R[22],A,E);4A=!4.O[0]||(4.O[0]&&4.O[1]&&36&&!1U)||(4.O[0]&&((1Y[0][0]==1Y[0][1]&&1A>0)||(1Y[0][0]==0&&1A<0)));5(36&&4A&&!1U)4.1Q[22]=E;1i 4.1Q[22]=A;5(e.1u)e.1u();C A};8 4X(a){1B(a.1d){a=a.1d;5(a==g)C E}C A};8 1N(a){B b=a,2a=2h=0;5(b.32){1B(b){2a+=b.5I;2h+=b.5d;b=b.32}}1i 5(b.x){2a+=b.x;2h+=b.y};a.1F=2a;a.1D=2h};8 4Q(a){B b=a;2a=2h=0;1B(!b.15&&b.1d&&b!=m&&P(b,\'2K\')=="61"){b=b.1d};5(b.32){1B(b!=m){2a+=b.5I;2h+=b.5d;b=b.32}};C[2a,2h]};8 2b(a,b,c){F.2b(a,b,c)};8 4p(a,b,c,d,e){c=R.1X(c,1);B f=b-a,3o=a+(R.71(((1/c)*d),e)*f);C(3o>0)?R.6w(3o):R.7r(3o)}},5E:8(){5(F.3w)16.2n(F.3w);F.3H();F.3U();5(16.4Z)16.4Z()},2b:8(a,b,c){5(!a.1r)a.1r=\'\';B d=a.1r;5(b&&!d.X(3c("(^|\\\\s)"+b+"($|\\\\s)")))d=d.4n(/(\\S$)/,\'$1 \')+b;5(c)d=d.4n(3c("((^|\\\\s)+"+c+")+($|\\\\s)","g"),\'$2\').4n(/\\s$/,\'\');a.1r=d},3H:8(){B d=/#([^#.]*)$/,2H=/(.*)#.*$/,5N=/(^|\\s)1R-7h-6L-7B($|\\s)/,7x,49,i,1o,5t=Y.30("a"),2p=Y.2Y.1f;5(2p.X(2H))2p=2p.X(2H)[1];1n(i=0;1o=5t[i];i++){49=(1o.1r)?1o.1r:\'\';5(1o.1f&&!1o.3g&&1o.1f.X(d)&&((1o.1f.X(2H)&&2p===1o.1f.X(2H)[1])||49.X(5N))){1o.3g=E;F.V(1o,\'69\',8(e){5(!e)e=16.1m;B a=(e.1C)?e.1C:M;1B(!a.3g&&a.1d){a=a.1d};5(!a.3g)C;B b=Y.1t(a.1f.X(d)[1]),3a=A;5(b==Z)b=(b=Y.7D(a.1f.X(d)[1])[0])?b:Z;5(b!=Z){B c=b;1B(c.1d){c=c.1d;5(c.14){c.14.3A(b);3a=c}};5(3a){5(e.1u)e.1u();Y.2Y.1f=2p+"#"+a.1f.X(d)[1];3a.14.24();C A}}})}}},3U:8(a){F.7a=E;B b=F.3X(Y.30("7J")[0],"4q",(a)?a:\'1R\');1n(B i=0,3s;3s=b[i];i++)5(!3s.14)F.3O(3s)},7H:8(a,b){5(33(a)==\'3I\')a=Y.1t(a);5(a==Z)C A;B c=a;1B(c.1d){c=c.1d;5(c.14){5(b){Y.2Y.1f="#"+b};c.14.3A(a);c.14.24();C E}};C A},1G:8(a,b){1n(B i=0,3k;3k=F.2W[i];i++){3k.14.1G();5(b)3k.14.4o()};5(a)F.3H()},4e:8(a){B a=a.6E(\'-\'),3N=a[0],i;1n(i=1;4g=a[i];i++){3N+=4g.7v(0).7G()+4g.7I(1)};C 3N},3X:8(a,b,c){5(33(a)==\'3I\')a=Y.1t(a);5(a==Z)C A;B d=2q 3c("(^|\\\\s)"+c+"($|\\\\s)"),7K,3Z=[],4v=0;B e=a.30(b);1n(B i=0,2P;2P=e[i];i++){5(2P.1r&&2P.1r.X(d)){3Z[4v]=2P;4v++}}C 3Z},5u:8(a){5(a==Z)C E;B b;1B(a.1d){b=F.P(a,\'2K\');5(b==\'3T\')C E;a=a.1d};C A},P:8(a,b){5(16.4S)C 16.4S(a,Z).6o(b);5(a.5l)C a.5l[F.4e(b)];C A},3w:16.2R(8(){B a=Y.1t(\'1R-7n\');5(a!=Z){F.3U();16.2n(F.3w)}},46),4f:8(a,b){a.1d.7F(a);a.11.2K="3T";b.1a(a)},V:8(a,b,c){5(!F.1z(a,b,c)&&a.56){a.56(\'5L\'+b,c)}},1z:8(a,b,c){5(a.4r){a.4r(b,c,A);F.4O=E;16.4r("6T",8(){F.1H(a,b,c)},A);C E}1i C A},1H:8(a,b,c){5(!F.5B(a,b,c)&&a.5P)a.5P(\'5L\'+b,c)},5B:8(a,b,c){5(a.5T){a.5T(b,c,A);C E}1i C A}};8 7z(a){F.3O(a)};F.4F();',62,481,'||||sC|if||sBr|function||||||||||||||||||||||||||||false|var|return|sY|true|fleXenv|tDv|mDv|sfU|wD|px|movBr|this|padding|scroller|getStyle|curPos|Math||createDiv|cntRSize|addTrggr|getSize|match|document|null||style|moveDelta|width|fleXcroll|offsetHeight|window|reqS|target|paddings|appendChild|left|trgtScrll|parentNode|top|href|0px|setScrollPos|else|parseInt|sDv|pDv|event|for|anchoR||offsetWidth|className||getElementById|preventDefault|forcedHide|targetSkew|fDv|setPos|addChckTrggr|delta|while|srcElement|yPos|sSBr|xPos|updateScrollBars|remTrggr|cntSize|mxScroll|border|goScroll|id|findPos|position|retFalse|edge|flexcroll|_|barSpace|hoverH|scrollPosition|sSDv|max|scrollState|height|sFBr|zIndex|iNDx|nV|mDPosFix|right|maxPos|keyAct|min|forcedBar|curleft|classChange|scrollTop|targetTouches|fHide|clientX|bottom|curtop|scrollLeft|tSelectFunc|mV|clientY|hidden|clearInterval|externaL|urlBase|new|formItem||documentElement|copyStyles|sFDv|indx|touchPos|length|moved|mWheelProc|indexOf|intClear|touchPrevent|minPos|hBr|touchFlick|urlExt|jBox|mTBox|display|barZ|mousemove|setSize|createScrollBars|pusher|mMouseUp|setInterval|barPadding|cPSize|vrt|visibility|fleXlist|focusProtect|location|ofstParent|getElementsByTagName|tDivZ|offsetParent|typeof|pageScrolled|relative|vEdge|stdMode|fShow|vertical|eScroll|userAgent|RegExp|sRange|vUpReq|getContentHeight|fleXanchor|absolute|sYdir|scrollBoth|fleXdiv|getContentWidth|realScrollPos|hrz|stepp|maxCWidth|sXdir|mMoveBar|tgDiv|clicked|hUpReq|mouseup|catchFastInit|flickClear|updateScroll|onfleXcroll|scrollToElement|overflow|handleTouch|brdWidthLoss|doBarPos|inputName|padHeightComp|prepAnchors|string|tSelectMouse|forcedPos|handleTouchMove|prepareScroll|reT|fleXcrollMain|handleTextSelect|uReg|wheelAct|setVisibility|none|initByClass|barClickRetard|abs|getByClassName|selectstart|retArray||baseAct|mdY|brdHeightLoss|baseProp||100|vBr|mHeight|claSS|onmousedown|barClickScroll|handleTouchEnd|setWidth|camelConv|putAway|parT|zTHeight|mY|Array|padLoss|setHeight|scrollContent|replace|formUpdate|easeInOut|div|addEventListener|xAw|refreshTimeout|calcCScrollVal|key|hElem|mdX|maxx|yScrld|hEdge|xScrld|yAw|mOnXEdge|mOnYEdge|fleXcrollInit|touchstart|scrlTrgt|fleXdata|fleXprocess|fixIEDispBug|wheelDelta|createElement|firstChild|w3events|1px|findRCpos|vBar|getComputedStyle|default|mousedown|setTimeout|100p|isddvChild|mousewheel|onfleXcrollRun|onfleXcrollFail|clearTimeout|100px|1em|basebeg|opera|attachEvent|type|keyCode|oScrollX|index|reqV|DOMMouseScroll|offsetTop|HTMLElement|pageYOffset|fixed|touchmove|solid|getPos|intlWidth|currentStyle|load|inMposX|paddingTop|aSize|Object|barbeg|textAlign|anchorList|checkHidden|pageXOffset|postHeight|pointerOffsetY|brdWidth|baseend|paddingLeft|remChckTrggr|text|pkeY|globalInit|flexinactive|hide|barend|offsetLeft|inMposY|touchend|on|80|regExer|inCurPos|detachEvent|touchBar|detail|pointerOffsetX|removeEventListener|write|onmousewheel|textarea|auto|_37|focus|childNodes|inline|OmniWeb|keypress|align|yScroll|scrollwrapper|flexcrollactive|hscroller|click|important|setAttribute|containerSize|425|_34|contentScroll|block|KDE|bscrollgeneric|borderBottom|vh|fontSize|visible|scrollerjogbox|getPropertyValue|css|keydown|input|onmouseover|_39|scrollUpdate|compPad|floor|undefined|keyup|black|touchLink|zoomdetectdiv|parseFloat|hBar|split|navigator|tabIndex|contentSize|contentwrapper|blur|vscroller|page|flex__|scrollbar|2px|_hscroller|999|onblur|select|unload|AppleWebKit|2500|borderBottomWidth|normal|_38|base|MSIE|pow|copyholder|scrollgeneric|prototype||button|_35|bar|platform|initialized|12px|sizeChangeDetect|Safari|onmouseclick|_33|failed|in|blue|toString|vendor|9999|mcontentwrapper|init|Mac|dblclick|domfixdiv|ceil|_40|nodeType|_36|charAt|xScroll|matcH|scrollerba|CSBfleXcroll|ondblclick|link|rs|getElementsByName|resize|removeChild|toUpperCase|scrollTo|substr|body|clsnm'.split('|'),0,{}))
  2. !function ($) {
  3. "use strict"; // jshint ;_;
  4. /* MODAL CLASS DEFINITION
  5. * ====================== */
  6. var Modal = function (element, options) {
  7. this.options = options
  8. this.$element = $(element)
  9. .delegate('[data-dismiss="modal"]', 'click.dismiss.modal', $.proxy(this.hide, this))
  10. this.options.remote && this.$element.find('.modal-body').load(this.options.remote)
  11. }
  12. Modal.prototype = {
  13. constructor: Modal
  14. , toggle: function () {
  15. return this[!this.isShown ? 'show' : 'hide']()
  16. }
  17. , show: function () {
  18. var that = this
  19. , e = $.Event('show')
  20. this.$element.trigger(e)
  21. if (this.isShown || e.isDefaultPrevented()) return
  22. this.isShown = true
  23. this.escape()
  24. this.backdrop(function () {
  25. var transition = $.support.transition && that.$element.hasClass('fade')
  26. if (!that.$element.parent().length) {
  27. that.$element.appendTo(document.body) //don't move modals dom position
  28. }
  29. that.$element.show()
  30. if (transition) {
  31. that.$element[0].offsetWidth // force reflow
  32. }
  33. that.$element
  34. .addClass('in')
  35. .attr('aria-hidden', false)
  36. that.enforceFocus()
  37. transition ?
  38. that.$element.one($.support.transition.end, function () { that.$element.focus().trigger('shown') }) :
  39. that.$element.focus().trigger('shown')
  40. })
  41. }
  42. , hide: function (e) {
  43. e && e.preventDefault()
  44. var that = this
  45. e = $.Event('hide')
  46. this.$element.trigger(e)
  47. if (!this.isShown || e.isDefaultPrevented()) return
  48. this.isShown = false
  49. this.escape()
  50. $(document).off('focusin.modal')
  51. this.$element
  52. .removeClass('in')
  53. .attr('aria-hidden', true)
  54. $.support.transition && this.$element.hasClass('fade') ?
  55. this.hideWithTransition() :
  56. this.hideModal()
  57. }
  58. , enforceFocus: function () {
  59. var that = this
  60. $(document).on('focusin.modal', function (e) {
  61. if (that.$element[0] !== e.target && !that.$element.has(e.target).length) {
  62. that.$element.focus()
  63. }
  64. })
  65. }
  66. , escape: function () {
  67. var that = this
  68. if (this.isShown && this.options.keyboard) {
  69. this.$element.on('keyup.dismiss.modal', function ( e ) {
  70. e.which == 27 && that.hide()
  71. })
  72. } else if (!this.isShown) {
  73. this.$element.off('keyup.dismiss.modal')
  74. }
  75. }
  76. , hideWithTransition: function () {
  77. var that = this
  78. , timeout = setTimeout(function () {
  79. that.$element.off($.support.transition.end)
  80. that.hideModal()
  81. }, 500)
  82. this.$element.one($.support.transition.end, function () {
  83. clearTimeout(timeout)
  84. that.hideModal()
  85. })
  86. }
  87. , hideModal: function () {
  88. var that = this
  89. this.$element.hide()
  90. this.backdrop(function () {
  91. that.removeBackdrop()
  92. that.$element.trigger('hidden')
  93. })
  94. }
  95. , removeBackdrop: function () {
  96. this.$backdrop && this.$backdrop.remove()
  97. this.$backdrop = null
  98. }
  99. , backdrop: function (callback) {
  100. var that = this
  101. , animate = this.$element.hasClass('fade') ? 'fade' : ''
  102. if (this.isShown && this.options.backdrop) {
  103. var doAnimate = $.support.transition && animate
  104. this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />')
  105. .appendTo(document.body)
  106. this.$backdrop.click(
  107. this.options.backdrop == 'static' ?
  108. $.proxy(this.$element[0].focus, this.$element[0])
  109. : $.proxy(this.hide, this)
  110. )
  111. if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
  112. this.$backdrop.addClass('in')
  113. if (!callback) return
  114. doAnimate ?
  115. this.$backdrop.one($.support.transition.end, callback) :
  116. callback()
  117. } else if (!this.isShown && this.$backdrop) {
  118. this.$backdrop.removeClass('in')
  119. $.support.transition && this.$element.hasClass('fade')?
  120. this.$backdrop.one($.support.transition.end, callback) :
  121. callback()
  122. } else if (callback) {
  123. callback()
  124. }
  125. }
  126. }
  127. /* MODAL PLUGIN DEFINITION
  128. * ======================= */
  129. var old = $.fn.modal
  130. $.fn.modal = function (option) {
  131. return this.each(function () {
  132. var $this = $(this)
  133. , data = $this.data('modal')
  134. , options = $.extend({}, $.fn.modal.defaults, $this.data(), typeof option == 'object' && option)
  135. if (!data) $this.data('modal', (data = new Modal(this, options)))
  136. if (typeof option == 'string') data[option]()
  137. else if (options.show) data.show()
  138. })
  139. }
  140. $.fn.modal.defaults = {
  141. backdrop: true
  142. , keyboard: true
  143. , show: true
  144. }
  145. $.fn.modal.Constructor = Modal
  146. /* MODAL NO CONFLICT
  147. * ================= */
  148. $.fn.modal.noConflict = function () {
  149. $.fn.modal = old
  150. return this
  151. }
  152. /* MODAL DATA-API
  153. * ============== */
  154. $(document).on('click.modal.data-api', '[data-toggle="modal"]', function (e) {
  155. var $this = $(this)
  156. , href = $this.attr('href')
  157. , $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) //strip for ie7
  158. , option = $target.data('modal') ? 'toggle' : $.extend({ remote:!/#/.test(href) && href }, $target.data(), $this.data())
  159. e.preventDefault()
  160. $target
  161. .modal(option)
  162. .one('hide', function () {
  163. $this.focus()
  164. })
  165. })
  166. }(window.jQuery);
  167. !function ( $ ) {
  168. "use strict"
  169. /* SCROLLSPY CLASS DEFINITION
  170. * ========================== */
  171. function ScrollSpy( element, options) {
  172. var process = $.proxy(this.process, this)
  173. , $element = $(element).is('body') ? $(window) : $(element)
  174. , href
  175. this.options = $.extend({}, $.fn.scrollspy.defaults, options)
  176. this.$scrollElement = $element.on('scroll.scroll.data-api', process)
  177. this.selector = (this.options.target
  178. || ((href = $(element).attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
  179. || '') + ' .nav li > a'
  180. this.$body = $('body').on('click.scroll.data-api', this.selector, process)
  181. this.refresh()
  182. this.process()
  183. }
  184. ScrollSpy.prototype = {
  185. constructor: ScrollSpy
  186. , refresh: function () {
  187. this.targets = this.$body
  188. .find(this.selector)
  189. .map(function () {
  190. var href = $(this).attr('href')
  191. return /^#\w/.test(href) && $(href).length ? href : null
  192. })
  193. this.offsets = $.map(this.targets, function (id) {
  194. return $(id).position().top
  195. })
  196. }
  197. , process: function () {
  198. var scrollTop = this.$scrollElement.scrollTop() + this.options.offset
  199. , offsets = this.offsets
  200. , targets = this.targets
  201. , activeTarget = this.activeTarget
  202. , i
  203. for (i = offsets.length; i--;) {
  204. activeTarget != targets[i]
  205. && scrollTop >= offsets[i]
  206. && (!offsets[i + 1] || scrollTop <= offsets[i + 1])
  207. && this.activate( targets[i] )
  208. }
  209. }
  210. , activate: function (target) {
  211. var active
  212. this.activeTarget = target
  213. this.$body
  214. .find(this.selector).parent('.active')
  215. .removeClass('active')
  216. active = this.$body
  217. .find(this.selector + '[href="' + target + '"]')
  218. .parent('li')
  219. .addClass('active')
  220. if ( active.parent('.dropdown-menu') ) {
  221. active.closest('li.dropdown').addClass('active')
  222. }
  223. }
  224. }
  225. /* SCROLLSPY PLUGIN DEFINITION
  226. * =========================== */
  227. $.fn.scrollspy = function ( option ) {
  228. return this.each(function () {
  229. var $this = $(this)
  230. , data = $this.data('scrollspy')
  231. , options = typeof option == 'object' && option
  232. if (!data) $this.data('scrollspy', (data = new ScrollSpy(this, options)))
  233. if (typeof option == 'string') data[option]()
  234. })
  235. }
  236. $.fn.scrollspy.Constructor = ScrollSpy
  237. $.fn.scrollspy.defaults = {
  238. offset: 10
  239. }
  240. /* SCROLLSPY DATA-API
  241. * ================== */
  242. $(function () {
  243. $('[data-spy="scroll"]').each(function () {
  244. var $spy = $(this)
  245. $spy.scrollspy($spy.data())
  246. })
  247. })
  248. }( window.jQuery );
  249. (function($){
  250. var settings = {
  251. speed: 350 //animation duration
  252. , easing: "linear" //use easing plugin for more options
  253. , padding: 10
  254. , constrain: false
  255. }
  256. , $window = $(window)
  257. , stickyboxes = []
  258. , methods = {
  259. init:function(opts){
  260. settings = $.extend(settings,opts);
  261. return this.each(function () {
  262. var $this = $(this);
  263. setPosition($this);
  264. stickyboxes[stickyboxes.length] = $this;
  265. moveIntoView();
  266. });
  267. }
  268. , remove:function(){
  269. return this.each(function () {
  270. var sticky = this;
  271. $.each(stickyboxes, function (i, $sb) {
  272. if($sb.get(0) === sticky){
  273. reset(null, $sb);
  274. stickyboxes.splice(i, 1);
  275. return false;
  276. }
  277. });
  278. });
  279. }
  280. , destroy: function () {
  281. $.each(stickyboxes, function (i, $sb) {
  282. reset(null, $sb);
  283. });
  284. stickyboxes=[];
  285. $window.unbind("scroll", moveIntoView);
  286. $window.unbind("resize", reset);
  287. return this;
  288. }
  289. };
  290. var moveIntoView = function () {
  291. $.each(stickyboxes, function (i, $sb) {
  292. var $this = $sb
  293. , data = $this.data("stickySB");
  294. if (data) {
  295. var sTop = $window.scrollTop() - data.offs.top
  296. , currOffs = $this.offset()
  297. , origTop = data.orig.offset.top - data.offs.top
  298. , animTo = origTop;
  299. //scrolled down out of view
  300. if (origTop < sTop) {
  301. //make sure to stop inside parent
  302. if ((sTop + settings.padding) > data.offs.bottom)
  303. animTo = data.offs.bottom;
  304. else animTo = sTop + settings.padding;
  305. }
  306. $this
  307. .stop()
  308. .animate(
  309. {top: animTo}
  310. , settings.speed
  311. , settings.easing
  312. );
  313. }
  314. });
  315. }
  316. var setPosition = function ($sb) {
  317. if ($sb) {
  318. var $this = $sb
  319. , $parent = $this.parent()
  320. , parentOffs = $parent.offset()
  321. , currOff = $this.offset()
  322. , data = $this.data("stickySB");
  323. if (!data) {
  324. data = {
  325. offs: {} // our parents offset
  326. , orig: { // cache for original css
  327. top: $this.css("top")
  328. , left: $this.css("left")
  329. , position: $this.css("position")
  330. , marginTop: $this.css("marginTop")
  331. , marginLeft: $this.css("marginLeft")
  332. , offset: $this.offset()
  333. }
  334. }
  335. }
  336. //go up the tree until we find an elem to position from
  337. while (parentOffs && "top" in parentOffs
  338. && $parent.css("position") == "static") {
  339. $parent = $parent.parent();
  340. parentOffs = $parent.offset();
  341. }
  342. if (parentOffs) { // found a postioned ancestor
  343. var padBtm = parseInt($parent.css("paddingBottom"));
  344. padBtm = isNaN(padBtm) ? 0 : padBtm;
  345. data.offs = parentOffs;
  346. data.offs.bottom = settings.constrain ?
  347. Math.abs(($parent.innerHeight() - padBtm) - $this.outerHeight()) :
  348. $(document).height();
  349. }
  350. else data.offs = { // went to far set to doc
  351. top: 0
  352. , left: 0
  353. , bottom: $(document).height()
  354. };
  355. $this.css({
  356. position: "absolute"
  357. , top: Math.floor(currOff.top - data.offs.top) + "px"
  358. , left: Math.floor(currOff.left - data.offs.left) + "px"
  359. , margin: 0
  360. , width: $this.width()
  361. }).data("stickySB", data);
  362. }
  363. }
  364. var reset = function (ev, $toReset) {
  365. var stickies = stickyboxes;
  366. if ($toReset) { // just resetting selected items
  367. stickies = [$toReset];
  368. }
  369. $.each(stickies, function(i, $sb) {
  370. var data = $sb.data("stickySB");
  371. if (data) {
  372. $sb.css({
  373. position: data.orig.position
  374. , marginTop: data.orig.marginTop
  375. , marginLeft: data.orig.marginLeft
  376. , left: data.orig.left
  377. , top: data.orig.top
  378. });
  379. if (!$toReset) { // just resetting
  380. setPosition($sb);
  381. moveIntoView();
  382. }
  383. }
  384. });
  385. }
  386. $window.bind("scroll", moveIntoView);
  387. $window.bind("resize", reset);
  388. $.fn.stickySidebar = function (method) {
  389. if (methods[method]) {
  390. return methods[method].apply(
  391. this
  392. , Array.prototype.slice.call(arguments, 1)
  393. );
  394. } else if (!method || typeof method == "object") {
  395. return methods.init.apply(this, arguments);
  396. }
  397. }
  398. })(jQuery);
  399. (function($,g){var h={},id=1,etid=g+'ETID';$.fn[g]=function(e,f){id++;f=f||this.data(etid)||id;e=e||150;if(f===id)this.data(etid,f);this._hover=this.hover;this.hover=function(c,d){c=c||$.noop;d=d||$.noop;this._hover(function(a){var b=this;clearTimeout(h[f]);h[f]=setTimeout(function(){c.call(b,a)},e)},function(a){var b=this;clearTimeout(h[f]);h[f]=setTimeout(function(){d.call(b,a)},e)});return this};return this};$.fn[g+'Pause']=function(){clearTimeout(this.data(etid));return this};$[g]={get:function(){return id++},pause:function(a){clearTimeout(h[a])}}})(jQuery,'mouseDelay');
  400. //自动高度
  401. function autoFlashHeight(){
  402. $(".newsList").height($(window).height()-130 );$("#contentBg").height($(window).height()-112 );
  403. };
  404. $(window).resize(autoFlashHeight);
  405. //自动高度
  406. $(function(){
  407. $(".videoItem li").hover(function () {
  408. $(this).children(".videoCon").animate({top:'0'},"normal","swing");
  409. },
  410. function () {
  411. $(this).children(".videoCon").animate({top:'-170px'},"fast");
  412. }
  413. );
  414. });
  415. $(function(){
  416. $(".trainEntry").hover(function () {
  417. $(this).addClass("shake")
  418. },
  419. function () {
  420. $(this).removeClass("shake")
  421. }
  422. );
  423. $(".trainFormTab a").click(function(){
  424. $(this).addClass("now").siblings().removeClass("now");
  425. $(".trainFormItem > .formEntry ").hide().eq($(".trainFormTab a").index(this)).animate({opacity: 'toggle'},500);});
  426. $(".openAll").click(function(){
  427. $(".mainContact").animate({left:"340px"},"normal").hide();
  428. $(".allContact").show().animate({left:"0"},"normal");
  429. });
  430. $(".closeAll").click(function(){
  431. $(".allContact").hide().animate({left:"450px"},"normal");
  432. $(".mainContact").show().animate({left:"0"},"normal");
  433. });
  434. $(".indexSoft .softEntry").hover(function () {
  435. $(this).addClass("focus").children(".seList").show("fast");
  436. },
  437. function () {
  438. $(this).removeClass("focus").children(".seList").hide();
  439. }
  440. );
  441. $(".contentBottom").mouseDelay(800).hover(function () {
  442. $(this).children(".newsExtra").show().animate({top:"-255px",opacity:"1"});
  443. },
  444. function () {
  445. $(this).children(".newsExtra").animate({top:"-200",opacity:"0"}).fadeOut();
  446. }
  447. );
  448. $(".jobEntry").hover(function () {
  449. $(this).addClass("focus").siblings().removeClass("focus");
  450. },
  451. function () {
  452. $(this).removeClass("focus").siblings().removeClass("focus");
  453. }
  454. );
  455. $("li.search").hover(function () {
  456. $(this).children("a").addClass("now").siblings(".topSerach").slideDown("fast");
  457. }
  458. );
  459. $(".openMore").click(function () {
  460. $(this).siblings(".moreSchool").slideDown();
  461. }
  462. );
  463. $(".year h3").click(function () {
  464. $(this).siblings(".month").slideDown();
  465. }
  466. );
  467. /*2.0搜索*/
  468. $(".search-icon").click(function () {
  469. $(this).hide("").siblings(".search-bar").show("");
  470. }
  471. );
  472. /*2.0首页菜单*/
  473. $(".nav-main").click(function () {
  474. $(this).addClass("active").children(".nav-drop").slideDown("fast");
  475. $(this).siblings(".nav-main").removeClass("active").children(".nav-drop").slideUp("fast");
  476. }
  477. );
  478. // $(".nav-dropdown dl").click(function () {
  479. // $(this).children("dt").addClass("active").siblings(".nav-dropdown-content").show();
  480. // $(this).siblings("dl").children("dt").removeClass("active").siblings(".nav-dropdown-content").hide();
  481. // }
  482. // );
  483. $(".nav-dropdown dl").click(function () {
  484. var index = $(this).index();
  485. $(this).children("dt").addClass("active").siblings(".nav-dropdown-content").show();
  486. var height = $(this).children("dt").addClass("active").siblings(".nav-dropdown-content").height();
  487. $(this).parent().height(height);
  488. $(this).width(400);
  489. $(this).siblings("dl").children("dt").removeClass("active").siblings(".nav-dropdown-content").hide();
  490. }
  491. );
  492. $("body").click(function(event){
  493. var e = event || window.event; //浏览器兼容性
  494. if(!$(event.target).is('a')) {
  495. var elem = event.target || e.srcElement;
  496. while (elem) { //循环判断至跟节点,防止点击的是div子元素
  497. if (elem.className == 'nav-main active') {
  498. return false;
  499. }
  500. elem = elem.parentNode;
  501. }
  502. $(".nav-main").removeClass("active").children(".nav-drop").hide();// 关闭处理
  503. }
  504. });
  505. /*2.0首页菜单结束*/
  506. /*流动*/
  507. // function waveloop1(){
  508. // $("#banner_bolang_bg_1").css({"left":"-236px"}).animate({"left":"-1233px"},25000,'linear',waveloop1);
  509. // }
  510. // function waveloop2(){
  511. // $("#banner_bolang_bg_2").css({"left":"0px"}).animate({"left":"-1009px"},60000,'linear',waveloop2);
  512. // }
  513. // waveloop1();
  514. // waveloop2();
  515. // $('.selectTitle').click(function(){
  516. // $(this).siblings(".selectList").fadeToggle();
  517. // $(this).toggleClass("focus");
  518. // if ($(this).hasClass('focus')) $(this).find('b').html('&#x25B2;').addClass("down")
  519. // else $(this).find('b').html('&#x25BC;').removeClass("down")
  520. // });
  521. /*首页下载软件*/
  522. $('.selectTitle').hover(function(){
  523. $(this).siblings(".selectList").slideDown();
  524. $(this).addClass("focus");
  525. if ($(this).hasClass('focus')) $(this).siblings('b').html('&#x25B2;').addClass("down")
  526. else $(this).siblings('b').html(' ').removeClass("down")
  527. });
  528. $('.arrow').click(function(){
  529. $(this).siblings(".selectList").slideUp("fast");
  530. $(this).siblings(".selectTitle").removeClass("focus");
  531. $(this).html(' ').removeClass("down")
  532. });
  533. /*轮换1*/
  534. var q=1;
  535. var show_li = $("#pointer li");
  536. show_li.each(function(index){
  537. $(this).click(function(){
  538. $(this).addClass("now").siblings().removeClass("now");
  539. $("#slideBanner .bannerEntry").slideUp("normal").removeClass("show").eq($(".slidePointer li").index(this)).slideDown("normal").addClass("show");
  540. q=index+1;
  541. });
  542. });
  543. /*--------------------------------------------------------*/
  544. var auto_show = true;
  545. $("#pointer,.learnMore").hover(function(){
  546. auto_show = false;
  547. },function(){
  548. auto_show = true;
  549. });
  550. /*自动轮换*/
  551. var max_num=3;//最大数
  552. setInterval(function(){
  553. if(auto_show){
  554. if(q>2){//最大数减一
  555. q=0;
  556. }
  557. $("#slideBanner .bannerEntry").slideUp("normal").removeClass("show").eq(q).slideDown("normal").addClass("show");
  558. show_li.removeClass("now")
  559. show_li.eq(q).addClass("now");
  560. }
  561. q++;
  562. },6000);//end setInterval
  563. /*轮换2*/
  564. var k=1;
  565. var show_li = $("#banner-pointer li");
  566. show_li.each(function(index){
  567. $(this).click(function(){
  568. $(this).addClass("focus").siblings().removeClass("focus");
  569. $("#big-banner .banner-entry").removeClass("show").eq($("#banner-pointer li").index(this)).addClass("show");
  570. k=index+1;
  571. });
  572. });
  573. /*--------------------------------------------------------*/
  574. var auto_show = true;
  575. $("#banner-pointer,.hover-stop,.more-button").hover(function(){
  576. auto_show = false;
  577. },function(){
  578. auto_show = true;
  579. });
  580. /*自动轮换*/
  581. var max_num=4;//最大数
  582. setInterval(function(){
  583. if(auto_show){
  584. if(k>3){//最大数减一
  585. k=0;
  586. }
  587. $("#big-banner .banner-entry").removeClass("show").eq(k).addClass("show");
  588. show_li.removeClass("focus")
  589. show_li.eq(k).addClass("focus");
  590. }
  591. k++;
  592. },8000);//end setInterval
  593. });
  594. $(function(){
  595. $(".tips").click(function(){
  596. $(this).siblings(".security_input").focus()
  597. });
  598. $(".security_hover").hover(function(){
  599. $(".security_Lock").show();
  600. $(".tips").css("color","#ccc")
  601. },function(){
  602. $(".security_Lock").hide();
  603. $(".tips").css("color","#666")
  604. });
  605. //非IE
  606. $(".security_input").bind("input", function(){
  607. var curVal = $(this).val();
  608. var label = $(this).siblings(".tips");
  609. if(curVal != "") {
  610. label.hide();
  611. }else{
  612. label.show();
  613. }
  614. });
  615. // IE
  616. $(".security_input").bind("propertychange", function(){
  617. var curVal = $(this).val();
  618. var label = $(this).siblings(".tips");
  619. if(curVal != "") {
  620. label.hide();
  621. }else{
  622. label.show();
  623. }
  624. });
  625. })