;
/******************************************************************************
Name:    Highslide JS
Version: 4.0.5 (August 30 2008)
Config:  default +events +unobtrusive +imagemap +slideshow +positioning +transitions +inline +ajax +iframe +flash +packed
Author:  Torstein Hønsi
Support: http://highslide.com/support

Licence:
Highslide JS is licensed under a Creative Commons Attribution-NonCommercial 2.5
License (http://creativecommons.org/licenses/by-nc/2.5/).

You are free:
	* to copy, distribute, display, and perform the work
	* to make derivative works

Under the following conditions:
	* Attribution. You must attribute the work in the manner  specified by  the
	  author or licensor.
	* Noncommercial. You may not use this work for commercial purposes.

* For  any  reuse  or  distribution, you  must make clear to others the license
  terms of this work.
* Any  of  these  conditions  can  be  waived  if  you  get permission from the 
  copyright holder.

Your fair use and other rights are in no way affected by the above.
******************************************************************************/
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}('m j={W:{9q:\'bH...\',9r:\'7F P bG\',a5:\'7F P bF P bD\',7X:\'bE P bI K\',ag:\'bJ by <i>94 93</i>\',af:\'bN P bM 94 93 bL\',7V:\'96\',7T:\'9b\',7O:\'9a\',7Q:\'92\',7P:\'92 (bK)\',8M:\'bC\',8Y:\'90\',8Z:\'90 1y (95)\',8P:\'91\',8Q:\'91 1y (95)\',7U:\'96 (7G 19)\',7W:\'9b (7G 3h)\',7S:\'9a\',8O:\'bt K\',3s:\'bs %1 br %2\',8j:\'7F P 1V 2O, bq 98 bu P 2I. bv 7G bA S 1x 98 2K.\'},5j:\'Q/bz/\',8h:\'bx.5i\',aW:10,7c:5c,9S:10,a2:5c,3C:15,6q:15,4h:15,3N:15,4H:bw,9i:0.75,8l:L,82:5,3j:2,83:3,9U:\'3T 3h\',9Y:1,ax:1k,aI:L,ah:\'b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 1Y="{j.W.7P}" 2o="E j.1V(f)">\'+\'<D>{j.W.7Q}</D></a>\'+\'</1D>\'+\'</69></1e>\'+\'<1e 2d="Q-1d"></1e>\'+\'<1e 2d="Q-cd"><1e>\'+\'<D 2d="Q-3O" 1Y="{j.W.8M}"><D></D></D>\'+\'</1e></1e>\'},5n:[],6V:L,X:[],72:[\'5y\',\'3l\',\'6O\',\'6K\',\'6I\',\'1M\',\'3j\',\'cc\',\'ca\',\'c9\',\'8R\',\'bo\',\'c1\',\'bU\',\'8N\',\'8p\',\'3Y\',\'5h\',\'3t\',\'3Z\',\'7a\',\'H\',\'N\',\'5U\',\'7D\',\'4l\',\'bT\',\'bS\',\'bQ\',\'2x\',\'7t\',\'3E\',\'4q\',\'3i\',\'8A\',\'7b\',\'2N\',\'3H\',\'6P\',\'9D\',\'2Y\',\'3P\',\'b2\',\'aY\',\'1a\'],1N:[],8B:0,6W:{x:[\'aF\',\'19\',\'3Q\',\'3h\',\'aJ\'],y:[\'5w\',\'1c\',\'8v\',\'3T\',\'6H\']},6y:{},8N:{},8R:{},8A:{8J:{},24:{},8H:{}},5H:[],6u:[],4f:{},42:[],6C:[],4K:[],6i:{},8q:{},1r:(18.5e&&!1q.3M),5b:/aN/.16(3U.68),4k:/bR.+aV:1\\.[0-8].+aO/.16(3U.68),$:q(1w){E 18.7o(1w)},2w:q(1R,5C){1R[1R.1b]=5C},1f:q(8S,3K,3G,4U,8X){m C=18.1f(8S);k(3K)j.8C(C,3K);k(8X)j.J(C,{7J:0,6M:\'1H\',bV:0});k(3G)j.J(C,3G);k(4U)4U.1S(C);E C},8C:q(C,3K){S(m x 35 3K)C[x]=3K[x]},J:q(C,3G){S(m x 35 3G){k(j.1r&&x==\'28\'){k(3G[x]>0.99)C.F.7s(\'71\');M C.F.71=\'bW(28=\'+(3G[x]*2U)+\')\'}M C.F[x]=3G[x]}},3S:q(){m 1R=3U.ay.5R("bZ");E 1R[1]?9h(1R[1]):I},5x:q(){m 4g=18.8D&&18.8D!=\'aS\'?18.5E:18.1d;m b=18.1d;m 7i=(1q.6e&&1q.8W)?1q.6e+1q.8W:(b.7l>b.1z?b.7l:b.1z),7q=(1q.5V&&1q.8V)?1q.5V+1q.8V:(b.8T>b.1s?b.8T:b.1s),4N=j.1r?4g.7l:(18.5E.7k||64.6e),4X=j.1r?4g.7g:(18.5E.7g||64.5V);m H=j.1r?4g.7k:(18.5E.7k||64.6e),N=j.1r?4g.7g:64.5V;E{4N:7i<4N?4N:7i,4X:7q<4X?4X:7q,H:H,N:N,5t:j.1r?4g.5t:b7,5s:j.1r?4g.5s:bn}},5I:q(C){k(/4Z/i.16(C.3W)){m 5T=18.2L(\'1F\');S(m i=0;i<5T.1b;i++){m u=5T[i].bj;k(u&&u.2h(/^.*?#/,\'\')==C.2Z.4i){C=5T[i];5k}}}m p={x:C.9c,y:C.7E};4E(C.8U){C=C.8U;p.x+=C.9c;p.y+=C.7E;k(C!=18.1d&&C!=18.5E){p.x-=C.5t;p.y-=C.5s}}E p},2A:q(a,24,3D){k(a.4D)E 24;1t{21 j.4u(a,24,3D);E 1k}1u(e){E L}},8b:q(a,24,3D){k(a.4D)E 24;S(m i=0;i<j.42.1b;i++){k(j.42[i]&&j.42[i].a==a){j.42[i].aP();j.42[i]=I;E 1k}}1t{j.9y=L;21 j.4u(a,24,3D,\'4e\');E 1k}1u(e){E L}},76:q(){E j.1f(\'1e\',{1h:\'Q-4e-O\',2v:j.7C(j.7R.9d)})},48:q(C,3W,1h){m Y=C.2L(3W);S(m i=0;i<Y.1b;i++){k((21 54(1h)).16(Y[i].1h)){E Y[i]}}E I},7C:q(s){s=s.2h(/\\s/g,\' \');m 2f=/{j\\.W\\.([^}]+)\\}/g,63=s.1B(2f),W;S(m i=0;i<63.1b;i++){W=63[i].2h(2f,"$1");k(1K j.W[W]!=\'2j\')s=s.2h(63[i],j.W[W])}E s},70:q(){m Y=18.2L(\'a\');S(m i=0;i<Y.1b;i++){k(/^Q$/.16(Y[i].6k)){k(j.1o(j,\'9w\',{4Q:Y[i]})){Y[i].2o=q(){E j.2A(f)}}Y[i].7s(\'6k\')}m 1B=/^Q-(2W|1i)$/.b9(Y[i].6k);k(1B){(q(){m t=1B[1];k(j.1o(j,\'9w\',{4Q:Y[i],14:t})){Y[i].2o=q(){E j.8b(f,{2x:t})}}})();Y[i].7s(\'6k\')}}k(!j.aH)26(j.70,50);M j.51()},6Q:q(a){S(m i=0;i<j.4K.1b;i++){k(j.4K[i][0]==a){m c=j.4K[i][1];j.4K[i][1]=c.4L(1);E c}}E I},aL:q(e){m 1R=j.7u();S(m i=0;i<1R.4y.1b;i++){m a=1R.4y[i];k(j.3X(a,\'2x\')==\'2W\'&&j.3X(a,\'7t\'))j.2w(j.6C,a)}j.7Y(0)},7Y:q(i){k(!j.6C[i])E;m a=j.6C[i];m 5q=j.4W(j.3X(a,\'7a\'));k(!5q)5q=j.76();m 2W=21 j.5Y(a,5q,1);2W.7j=q(){};2W.36=q(){j.2w(j.4K,[a,5q]);j.7Y(i+1)};2W.7r()},9s:q(){m 7v=0,6x=-1;S(m i=0;i<j.X.1b;i++){k(j.X[i]){k(j.X[i].T.F.1J&&j.X[i].T.F.1J>7v){7v=j.X[i].T.F.1J;6x=i}}}k(6x==-1)j.2P=-1;M j.X[6x].3F()},3X:q(a,5p){a.4D=a.2o;m p=a.4D?a.4D():I;a.4D=I;E(p&&1K p[5p]!=\'2j\')?p[5p]:(1K j[5p]!=\'2j\'?j[5p]:I)},5S:q(a){m 1a=j.3X(a,\'1a\');k(1a)E 1a;E a.1T},4W:q(1w){m 1U=j.$(1w),47=j.8q[1w],a={};k(!1U&&!47)E I;k(!47){47=1U.4L(L);47.1w=\'\';j.8q[1w]=47;E 1U}M{E 47.4L(L)}},4r:q(d){j.8g.1S(d);j.8g.2v=\'\'},2l:q(A){k(!j.2t){j.2t=j.1f(\'1e\',{1h:\'Q-bd\',5u:\'\',2o:q(){k(j.1o(j,\'bc\'))j.1V()}},{1m:\'2c\',19:0},j.2p,L);j.2G(1q,\'3O\',j.5r)}j.2t.F.1A=\'\';j.5r();j.2t.5u+=\'|\'+A.U;k(j.4k&&j.9v)j.2t.F.5D=\'8i(\'+j.5j+\'ba.9e)\';M j.2g(j.2t,0,A.3Z,j.6F)},7y:q(U){k(!j.2t)E;k(1K U!=\'2j\')j.2t.5u=j.2t.5u.2h(\'|\'+U,\'\');k((1K U!=\'2j\'&&j.2t.5u!=\'\')||(j.2J&&j.3X(j.2J,\'3Z\')))E;k(j.4k&&j.9v)j.2t.F.5D=\'1H\';M j.2g(j.2t,j.3Z,0,j.6F);26(q(){j.J(j.2t,{1A:\'1H\',H:0,N:0})},j.6F)},5r:q(A){k(!j.2t)E;m 2X=j.5x();m h=(j.1r&&A&&A.T)?2b(A.T.F.1c)+2b(A.T.F.N)+(A.11?A.11.2T:0):0;j.J(j.2t,{H:2X.4N+\'B\',N:1g.41(2X.4X,h)+\'B\'})},6p:q(C,1G){j.51();m A=j.R=j.3k(C);1t{m 9u=j.2J=A.6S(1G);9u.2o()}1u(e){j.R=j.2J=I}1t{A.1V()}1u(e){}E 1k},2K:q(C){E j.6p(C,-1)},1x:q(C){E j.6p(C,1)},5P:q(e){k(!e)e=1q.2C;k(!e.1X)e.1X=e.88;k(e.1X.9x)E L;k(!j.1o(j,\'bm\',e))E L;m 1G=I;bi(e.b3){3f 32:1G=2;5k;3f 34:3f 39:3f 40:1G=1;5k;3f 8:3f 33:3f 37:3f 38:1G=-1;5k;3f 27:3f 13:1G=0}k(1G!==I){k(1G!=2)j.4A(18,1q.3M?\'81\':\'80\',j.5P);k(!j.8L)E L;k(e.6s)e.6s();M e.b8=1k;m A=j.3k();k(A){k(1G==0){A.1V()}M k(1G==2){k(A.1y)A.1y.9I()}M{k(A.1y)A.1y.2R();j.6p(A.U,1G)}E 1k}}E L},c2:q(1p){j.2w(j.1N,1p)},cv:q(52){j.2w(j.6u,52)},8e:q(4Q){m C,2f=/^Q-T-([0-9]+)$/;C=4Q;4E(C.2Z){k(C.1w&&2f.16(C.1w))E C.1w.2h(2f,"$1");C=C.2Z}C=4Q;4E(C.2Z){k(C.3W&&j.5O(C)){S(m U=0;U<j.X.1b;U++){m A=j.X[U];k(A&&A.a==C)E U}}C=C.2Z}E I},3k:q(C){k(1K C==\'2j\')E j.X[j.2P]||I;k(1K C==\'3s\')E j.X[C]||I;k(1K C==\'8y\')C=j.$(C);E j.X[j.8e(C)]||I},5O:q(a){E(a.2o&&a.2o.9K().2h(/\\s/g,\' \').1B(/j.(dr|e)dq/))},aj:q(){S(m i=0;i<j.X.1b;i++)k(j.X[i]&&j.X[i].5B)j.9s()},1o:q(4O,8u,9t){E 4O&&4O[8u]?(4O[8u](4O,9t)!==1k):L},7L:q(e){k(!e)e=1q.2C;k(e.cf>1)E L;k(!e.1X)e.1X=e.88;m C=e.1X;4E(C.2Z&&!(/Q-(2O|2I|4e|3O)/.16(C.1h))){C=C.2Z}m A=j.3k(C);k(A&&(A.4P||!A.5B))E L;k(A&&e.14==\'7H\'){k(e.1X.9x)E L;m 1B=C.1h.1B(/Q-(2O|2I|3O)/);k(1B){j.2s={A:A,14:1B[1],19:A.x.G,H:A.x.D,1c:A.y.G,N:A.y.D,9C:e.6m,9B:e.6t};j.2G(18,\'6D\',j.65);k(e.6s)e.6s();k(/Q-(2O|4e)-8f/.16(A.O.1h)){A.3F();j.8x=L}E 1k}M k(/Q-4e/.16(C.1h)&&j.2P!=A.U){A.3F();A.5Q()}}M k(e.14==\'aC\'){j.4A(18,\'6D\',j.65);k(j.2s){k(j.2s.14==\'2O\')j.2s.A.O.F.4B=j.53;m 3g=j.2s.3g;k(!3g&&!j.8x&&!/(2I|3O)/.16(j.2s.14)){k(j.1o(A,\'do\'))A.1V()}M k(3g||(!3g&&j.9y)){j.2s.A.5Q()}k(j.2s.A.3w)j.2s.A.3w.F.1A=\'1H\';k(3g)j.1o(j.2s.A,\'ds\',j.2s);k(3g)j.5r(A);j.8x=1k;j.2s=I}M k(/Q-2O-8f/.16(C.1h)){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)21 j.5o(j.1M,q(){j.5M(0)});M j.5M(0);m 5i=j.1f(\'1F\',{1a:j.5j+j.8h})},6f:q(){k(!j.2p){j.2p=j.1f(\'1e\',I,{1m:\'2c\',19:0,1c:0,H:\'2U%\',1J:j.4H},18.1d,L);j.22=j.1f(\'a\',{1h:\'Q-22\',1Y:j.W.9r,2v:j.W.9q,1T:\'5X:;\'},{1m:\'2c\',1c:\'-3J\',28:j.9i,1J:1},j.2p);j.8g=j.1f(\'1e\',I,{1A:\'1H\'},j.2p);j.3d=j.1f(\'1e\',I,{8F:\'8K\',dC:\'dA\'},I,L);1g.dB=q(t,b,c,d){E c*t/d+b};1g.b1=q(t,b,c,d){E c*(t/=d)*t+b};1g.b0=q(t,b,c,d){k((t/=d/2)<1)E c/2*t*t+b;E-c/2*((--t)*(t-2)-1)+b};S(m x 35 j.6E){k(1K j[x]!=\'2j\')j.W[x]=j[x];M k(1K j.W[x]==\'2j\'&&1K j.6E[x]!=\'2j\')j.W[x]=j.6E[x]}j.a9=(j.1r&&j.3S()<=6&&4s.9V==\'9R:\');j.1o(f,\'dz\')}},av:q(){j.9o=L;k(j.6U)j.6U()},51:q(){m Y=18.2L(\'*\'),5e=[],4v=[],4y=[],30={},2f;S(m i=0;i<Y.1b;i++){2f=j.5O(Y[i]);k(2f){j.2w(5e,Y[i]);k(2f[0]==\'j.2A\')j.2w(4v,Y[i]);M k(2f[0]==\'j.8b\')j.2w(4y,Y[i]);m g=j.3X(Y[i],\'2Y\')||\'1H\';k(!30[g])30[g]=[];j.2w(30[g],Y[i])}}j.44={5e:5e,30:30,4v:4v,4y:4y};E j.44},7u:q(){E j.44||j.51()},2g:q(C,o,4a,3x,i,3r){k(1K i==\'2j\'){k(1K 3x!=\'3s\')3x=5c;k(3x<25){j.J(C,{28:4a});E}i=j.5H.1b;3r=4a>o?1:-1;m 5d=(25/(3x-3x%25))*1g.an(o-4a)}o=9h(o);m 73=(C.2g===0||C.2g===1k||(C.2g==2&&j.1r));C.F.1v=((73?4a:o)<=0)?\'1n\':\'1Z\';k(73||o<0||(3r==1&&o>4a))E;k(C.46&&C.46.i!=i){9X(j.5H[C.46.i]);o=C.46.o}C.46={i:i,o:o,5d:(5d||C.46.5d)};C.F.1v=(o<=0)?\'1n\':\'1Z\';j.J(C,{28:o});j.5H[i]=26(q(){j.2g(C,o+C.46.5d*3r,4a,I,i,3r)},25)},1V:q(C){m A=j.3k(C);k(A)A.1V();E 1k}};j.5o=q(1M,36){f.36=36;f.1M=1M;m v=j.3S(),5K;f.6Z=j.1r&&v>=5.5&&v<7;k(!1M){k(36)36();E}j.6f();f.2B=j.1f(\'2B\',{cA:0},{1v:\'1n\',1m:\'2c\',cy:\'cx\'},j.2p,L);m 77=j.1f(\'77\',I,I,f.2B,1);f.2D=[];S(m i=0;i<=8;i++){k(i%3==0)5K=j.1f(\'5K\',I,{N:\'1E\'},77,L);f.2D[i]=j.1f(\'2D\',I,I,5K,L);m F=i!=4?{cw:0,cB:0}:{1m:\'4j\'};j.J(f.2D[i],F)}f.2D[4].1h=1M;f.9g()};j.5o.6c={9g:q(){m 1a=j.5j+(j.cH||"cG/")+f.1M+".9e";m 9f=j.5b?j.2p:I;f.3n=j.1f(\'1F\',I,{1m:\'2c\',19:\'-3J\',1c:\'-3J\'},9f,L);m 3c=f;f.3n.4c=q(){3c.9j()};f.3n.1a=1a},9j:q(){m o=f.2T=f.3n.H/4,1C=[[0,0],[0,-4],[-2,0],[0,-8],0,[-2,-8],[0,-2],[0,-6],[-2,-2]],2l={N:(2*o)+\'B\',H:(2*o)+\'B\'};j.4r(f.3n);S(m i=0;i<=8;i++){k(1C[i]){k(f.6Z){m w=(i==1||i==7)?\'2U%\':f.3n.H+\'B\';m 1e=j.1f(\'1e\',I,{H:\'2U%\',N:\'2U%\',1m:\'4j\',2F:\'1n\'},f.2D[i],L);j.1f(\'1e\',I,{71:"cD:cE.ad.cu(ct=ck, 1a=\'"+f.3n.1a+"\')",1m:\'2c\',H:w,N:f.3n.N+\'B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();E 1k}}S(m i=0;i<j.X.1b;i++){k(j.X[i]&&j.X[i].9n!=C&&!j.X[i].66){j.X[i].6Y()}}j.X[f.U]=f;k(!j.8l){k(j.X[U-1])j.X[U-1].1V();k(1K j.2P!=\'2j\'&&j.X[j.2P])j.X[j.2P].1V()}m 1C=j.5I(C);m x=f.x={};x.t=C.H?2b(C.H):C.1z;x.1P=1C.x;x.2V=(C.1z-x.t)/2;m y=f.y={};y.t=C.N?2b(C.N):C.1s;y.1P=1C.y;y.2V=(C.1s-y.t)/2;x.V=x.1j=y.V=y.1j=0;k(/4Z/i.16(C.3W))f.aA(C);f.T=j.1f(\'1e\',{1w:\'Q-T-\'+f.U,1h:f.7b},{1v:\'1n\',1m:\'2c\',1J:j.4H++},I,L);f.T.cm=f.T.cn=j.9l;k(f.2Q==\'2O\'&&f.3j==2)f.3j=0;k(!f.1M||(f.R&&f.2S&&f.3t[1]==\'4b\')){f[f.2Q+\'7d\']()}M k(j.4f[f.1M]){f.6R();f[f.2Q+\'7d\']()}M{f.4V();m A=f;21 j.5o(f.1M,q(){A.6R();A[A.2Q+\'7d\']()})}E L};j.4u.6c={6R:q(x,y){m o=f.11=j.4f[f.1M];o.2B.F.1J=f.T.F.1J;j.4f[f.1M]=I},4V:q(){k(f.66||f.22)E;f.22=j.22;m A=f;f.22.2o=q(){A.6Y()};k(!j.1o(f,\'cr\'))E;m A=f,l=(f.x.1P+f.x.2V+(f.x.t-f.22.1z)/2)+\'B\',t=(f.y.1P+(f.y.t-f.22.1s)/2)+\'B\';k(!23&&f.R&&f.3t[1]==\'4b\')m 23=f.R;k(23){l=(23.x.G+23.x.cb+23.x.V+(23.x.D-f.22.1z)/2)+\'B\';t=(23.y.G+23.y.cb+23.y.V+(23.y.D-f.22.1s)/2)+\'B\';f.22.F.1J=j.4H++}26(q(){k(A.22)j.J(A.22,{19:l,1c:t})},2U)},cq:q(){m A=f;m 1F=18.1f(\'1F\');f.O=1F;1F.4c=q(){k(j.X[A.U])A.4R()};k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29){K[x]=3P(t,29[x],P[x]-29[x],3x);k(!/^1G$/.16(x))K[x]=1g.3R(K[x])}26(q(){k(1Q&&74==1){A.O.F.1v=\'1Z\';A.a.1h+=\' Q-7x-3l\'}A.6L(K)},t)})()}k(1Q){26(q(){k(A.11)A.11.2B.F.1v="1Z"},t);26(q(){A.60()},t+50)}M 26(q(){A.5z()},t)},6L:q(P){1t{k(P.1G)j.J(f.T,{28:P.1G});j.J(f.T,{H:(P.2z+P.2e+P.3b+2*f.x.cb)+\'B\',N:(P.2u+P.2a+P.3a+2*f.y.cb)+\'B\',19:P.2n+\'B\',1c:P.2m+\'B\'});j.J(f.O,{1c:P.2a+\'B\',19:P.2e+\'B\',H:P.2z+\'B\',N:P.2u+\'B\'});k(f.2q){j.J(f.4G,{19:(f.x.G-P.2n+f.x.V-P.2e)+\'B\',1c:(f.y.G-P.2m+f.y.V-P.2a)+\'B\'});f.1l.F.1v=\'1Z\'}k(f.11&&f.3j){m o=f.11.2T-P.o;f.11.3q(f,{x:P.2n+o,y:P.2m+o,w:P.2z+P.2e+P.3b+ -2*o,h:P.2u+P.2a+P.3a+ -2*o},1)}f.T.F.1v=\'1Z\'}1u(e){1q.4s.1T=f.1a}},2g:q(1Q,29,P){f.3j=1k;m A=f,t=1Q?5c:0;k(1Q){j.J(f.T,{28:0});f.6L(P);f.O.F.1v=\'1Z\';j.2g(f.T,0,1)}k(f.11){f.11.2B.F.1J=f.T.F.1J;m 3r=1Q||-1;S(m i=29.o;3r*i<=3r*P.o;i+=3r,t+=25){(q(){m o=1Q?P.o-i:29.o-i;26(q(){A.11.3q(A,{x:(A.x.G+o),y:(A.y.G+o),w:(A.x.D-2*o+A.x.V+A.x.1j),h:(A.y.D-2*o+A.y.V+A.y.1j)},1)},t)})()}}k(1Q)26(q(){A.60()},t+50);M{26(q(){k(A.11)A.11.5F(A.4l);j.2g(A.T,1,0);26(q(){A.5z()},5c)},t)}},4b:q(1Q,29,P){k(!1Q)E;m A=f,43=2b(j.6g/25),R=f.R;j.4A(18,\'6D\',j.65);j.J(f.O,{H:P.2z+\'B\',N:P.2u+\'B\'});f.11=f.R.11;f.R.11=I;f.4n=j.1f(\'1e\',{1h:\'Q-2O\'},{1m:\'2c\',1J:4,2F:\'1n\',1A:\'1H\'});m 6N={9W:R,a0:f};S(m x 35 6N){f[x]=6N[x].O.4L(1);j.J(f[x],{1m:\'2c\',6M:0,1v:\'1Z\'});f.4n.1S(f[x])}f.T.1S(f.4n);29={2n:R.x.G,2z:R.x.D,2e:R.x.V,3b:R.x.1j,2m:R.y.G,2u:R.y.D,2a:R.y.V,3a:R.y.1j,o:1/43};P.2u=f.y.D;P.o=1;m t,3P=1g.b0;f.79(29);q 7e(){k(A.1I){A.T.1S(A.1I);S(m i=0;i<A.R.1N.1b;i++){m 3m=j.$(\'2i\'+A.R.1N[i]);k(3m.9P===A.U)A.1I.1S(3m);M j.2g(3m,3m.28,0)}}A.4n.F.1A=\'\';A.R.O.F.1A=\'1H\'};k(/aV:1\\.[0-8].+aO/.16(3U.68))26(7e,0);M 7e();k(j.5b){m 1B=3U.68.1B(/aN\\/([0-9]{3})/);k(1B&&2b(1B[1])<d1)f.T.F.1v=\'1Z\'}S(m i=1;i<=43;i++){t=1g.3R(i*(j.6g/43));(q(){m K={},74=i;S(m x 35 29){m 5C=3P(t,29[x],P[x]-29[x],j.6g);K[x]=(x!=\'o\')?1g.3R(5C):5C}26(q(){A.79(K)},t)})()}26(q(){A.9Z()},t+2U)},79:q(K){1t{k(f.11)f.11.3q(f,{x:K.2n,y:K.2m,w:K.2z+K.2e+K.3b,h:K.2u+K.2a+K.3a},1);f.R.T.F.d2=\'cs(\'+(K.2m-f.R.y.G)+\'B, \'+(K.2z+K.2e+K.3b+2*f.R.x.cb+K.2n-f.R.x.G)+\'B, \'+(K.2u+K.2a+K.3a+2*f.R.y.cb+K.2m-f.R.y.G)+\'B, \'+(K.2n-f.R.x.G)+\'B)\';j.J(f.O,{1c:K.2a+\'B\',19:K.2e+\'B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(/j\\.2A/))m 1F=j.1f(\'1F\',{1a:j.5S(1x)})},6S:q(1G){m 6X=f.6a(),as=j.44.30[f.2Y||\'1H\'];k(!as[6X+1G]&&f.1y&&f.1y.9G){k(1G==1)E as[0];M k(1G==-1)E as[as.1b-1]}E as[6X+1G]||I},6a:q(){m 1R=j.44.30[f.2Y||\'1H\'];S(m i=0;i<1R.1b;i++){k(1R[i]==f.a)E i}E I},aR:q(){k(f[f.5h]){m 1R=j.44.30[f.2Y||\'1H\'];m s=j.W.3s.2h(\'%1\',f.6a()+1).2h(\'%2\',1R.1b);f[f.5h].2v=\'<1e 2d="Q-3s">\'+s+\'</1e>\'+f[f.5h].2v}},9N:q(){k(f.1y)E;k(!f.R){S(m i=0;i<j.6u.1b;i++){m 1W=j.6u[i],4z=1W.2Y;k(4z===f.2Y){f.1y=21 j.7m(1W)}}}M{f.1y=f.R.1y}m 1W=f.1y;k(!1W)E;m A=1W.A=f;1W.9O();k(1W.7n){m o=1W.9M||{};o.4I=1W.3u;o.2i=\'3u\';f.4M(o)}k(!f.R&&f.3Y)1W.3z(L);k(1W.3Y){1W.3Y=26(q(){j.1x(A.U)},(1W.cl||9L))}},6Y:q(){j.X[f.U]=I;k(j.2J==f.a)j.2J=I;j.7y();k(f.22)j.22.F.19=\'-3J\';j.1o(f,\'9E\')},aB:q(){k(f.4T)E;f.4T=j.1f(\'a\',{1T:j.ah,1h:\'Q-4T\',2v:j.W.ag,1Y:j.W.af});f.4M({4I:f.4T,1m:\'1c 19\',2i:\'4T\'})},8o:q(6T,a4){S(m i=0;i<6T.1b;i++){m 14=6T[i],s=I;k(14==\'8m\'&&!j.1o(f,\'cF\'))E;M k(14==\'4J\'&&!j.1o(f,\'cC\'))E;k(!f[14+\'5N\']&&f.6n)f[14+\'5N\']=14+\'-S-\'+f.6n;k(f[14+\'5N\'])f[14]=j.4W(f[14+\'5N\']);k(!f[14]&&!f[14+\'78\']&&f[14+\'am\'])1t{s=dc(f[14+\'am\'])}1u(e){}k(!f[14]&&f[14+\'78\']){s=f[14+\'78\']}k(!f[14]&&!s){m 1x=f.a.a6;4E(1x&&!j.5O(1x)){k((21 54(\'Q-\'+14)).16(1x.1h||I)){f[14]=1x.4L(1);5k}1x=1x.a6}}k(!f[14]&&!s&&f.5h==14)s=\'\\n\';k(!f[14]&&s)f[14]=j.1f(\'1e\',{1h:\'Q-\'+14,2v:s});k(a4&&f[14]){m o={1m:(14==\'4J\')?\'5w\':\'6H\'};S(m x 35 f[14+\'a3\'])o[x]=f[14+\'a3\'][x];o.4I=f[14];f.4M(o)}}},31:q(3W,1v,2r){m Y=18.2L(3W);m 4w=3W==\'*\'?\'2F\':\'1v\';S(m i=0;i<Y.1b;i++){k(4w==\'1v\'||(18.cz.db(Y[i],"").dh(\'2F\')==\'1E\'||Y[i].ac(\'1n-by\')!=I)){m 2E=Y[i].ac(\'1n-by\');k(1v==\'1Z\'&&2E){2E=2E.2h(\'[\'+f.U+\']\',\'\');Y[i].5g(\'1n-by\',2E);k(!2E)Y[i].F[4w]=Y[i].8c}M k(1v==\'1n\'){m 3o=j.5I(Y[i]);3o.w=Y[i].1z;3o.h=Y[i].1s;k(!f.3Z){m ab=(3o.x+3o.w<2r.x||3o.x>2r.x+2r.w);m aa=(3o.y+3o.h<2r.y||3o.y>2r.y+2r.h)}m 8d=j.8e(Y[i]);k(!ab&&!aa&&8d!=f.U){k(!2E){Y[i].5g(\'1n-by\',\'[\'+f.U+\']\');Y[i].8c=Y[i].F[4w];Y[i].F[4w]=\'1n\'}M k(!2E.1B(\'[\'+f.U+\']\')){Y[i].5g(\'1n-by\',2E+\'[\'+f.U+\']\')}}M k(2E==\'[\'+f.U+\']\'||j.2P==8d){Y[i].5g(\'1n-by\',\'\');Y[i].F[4w]=Y[i].8c||\'\'}M k(2E&&2E.1B(\'[\'+f.U+\']\')){Y[i].5g(\'1n-by\',2E.2h(\'[\'+f.U+\']\',\'\'))}}}}},3F:q(){f.T.F.1J=j.4H++;S(m i=0;i<j.X.1b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j.5Y.6c={7r:q(){k(!f.1a)f.1a=j.5S(f.a);k(f.1a.1B(\'#\')){m 1R=f.1a.5R(\'#\');f.1a=1R[0];f.1w=1R[1]}k(j.6i[f.1a]){f.a7=j.6i[f.1a];k(f.1w)f.7h();M f.55();E}1t{f.3I=21 bl()}1u(e){1t{f.3I=21 ak("bk.a8")}1u(e){1t{f.3I=21 ak("ad.a8")}1u(e){f.7j()}}}m 3c=f;f.3I.aZ=q(){k(3c.3I.6B==4){k(3c.1w)3c.7h();M 3c.55()}};f.3I.ao("b6",f.1a,L);f.3I.bf(I)},7h:q(){j.6f();m 3K=1q.3M||j.a9?{1a:\'ce:bX\'}:I;f.1i=j.1f(\'1i\',3K,{1m:\'2c\',19:\'-3J\'},j.2p);f.55()},55:q(){m s=f.a7||f.3I.bY;k(f.6h)j.6i[f.1a]=s;k(!j.1r||j.3S()>=5.5){s=s.2h(/\\s/g,\' \').2h(21 54(\'<c0[^>]*>\',\'al\'),\'\').2h(21 54(\'<6z[^>]*>.*?</6z>\',\'al\'),\'\');k(f.1i){m 2k=f.1i.7p;k(!2k&&f.1i.59)2k=f.1i.59.18;k(!2k){m 3c=f;26(q(){3c.55()},25);E}2k.ao();2k.aq(s);2k.1V();1t{s=2k.7o(f.1w).2v}1u(e){1t{s=f.1i.18.7o(f.1w).2v}1u(e){}}}M{s=s.2h(21 54(\'^.*?<1d[^>]*>(.*?)</1d>.*?$\',\'i\'),\'$1\')}}j.48(f.O,\'6d\',\'Q-1d\').2v=s;f.36();S(m x 35 f)f[x]=I}};j.7m=q(52){j.51();S(m x 35 52)f[x]=52[x];k(f.7n)f.a1()};j.7m.6c={a1:q(){f.3u=j.1f(\'1e\',{2v:j.7C(j.7R.3u)},I,j.2p);m 5a=[\'3z\',\'2R\',\'2K\',\'1x\',\'2I\',\'Z-2A\',\'1V\'];f.1L={};m 3c=f;S(m i=0;i<5a.1b;i++){f.1L[5a[i]]=j.48(f.3u,\'1D\',\'Q-\'+5a[i]);f.4d(5a[i])}f.1L.2R.F.1A=\'1H\';f.49(\'Z-2A\')},9O:q(){k(f.9G)E;m 5i=f.A.6a(),2f=/6b$/;k(5i==0)f.49(\'2K\');M k(2f.16(f.1L.2K.2L(\'a\')[0].1h))f.4d(\'2K\');k(5i+1==j.44.30[f.2Y||\'1H\'].1b){f.49(\'1x\');f.49(\'3z\')}M k(2f.16(f.1L.1x.2L(\'a\')[0].1h)){f.4d(\'1x\');f.4d(\'3z\')}},4d:q(1L){m 9H=f,a=f.1L[1L].2L(\'a\')[0],2f=/6b$/;a.2o=q(){9H[1L]();E 1k};k(2f.16(a.1h))a.1h=a.1h.2h(2f,\'\')},49:q(1L){m a=f.1L[1L].2L(\'a\')[0];a.2o=q(){E 1k};k(!/6b$/.16(a.1h))a.1h+=\' 6b\'},9I:q(){k(f.3Y)f.2R();M f.3z()},3z:q(9Q){k(f.1L){f.1L.3z.F.1A=\'1H\';f.1L.2R.F.1A=\'\'}f.3Y=L;k(!9Q)j.1x(f.A.U)},2R:q(){k(f.1L){f.1L.2R.F.1A=\'1H\';f.1L.3z.F.1A=\'\'}9X(f.3Y);f.3Y=I},2K:q(){f.2R();j.2K(f.1L.2K)},1x:q(){f.2R();j.1x(f.1L.1x)},2I:q(){},\'Z-2A\':q(){j.3k().7N()},1V:q(){j.1V(f.1L.1V)}};k(18.6B&&j.1r){m 1a=(1q.4s.9V==\'9R:\')?\'://0\':\'5X:c7(0)\';18.aq(\'<6z 14="c5/5X" aQ="aQ" 1a="\'+1a+\'" \'+\'aZ="k (f.6B == \\\'bp\\\') j.av();"\'+\'><\\/6z>\')}j.6E=j.W;m bB=j.4u;j.2G(18,\'6D\',q(e){j.6y={x:e.6m,y:e.6t}});j.2G(18,\'7H\',j.7L);j.2G(18,\'aC\',j.7L);j.2G(1q,\'7K\',j.aE);j.2G(1q,\'7K\',j.aL);j.2G(1q,\'7K\',q(){j.aH=L});j.70();',62,848,'|||||||||||||||this||||hs|if||var||||function||||||||||exp|px|el|span|return|style|min|width|null|setStyles|size|true|else|height|content|to|highslide|last|for|wrapper|key|p1|lang|expanders|els|full||outline|||type||test||document|left|src|length|top|body|div|createElement|Math|className|iframe|p2|false|innerContent|position|hidden|fireEvent|overlay|window|ie|offsetHeight|try|catch|visibility|id|next|slideshow|offsetWidth|display|match|pos|li|auto|img|op|none|overlayBox|zIndex|typeof|btn|outlineType|overlays|justify|tpos|up|arr|appendChild|href|node|close|ss|target|title|visible||new|loading|tgt|params||setTimeout||opacity|from|yp1|parseInt|absolute|class|xp1|re|fade|replace|hsId|undefined|doc|dim|ymin|xmin|onclick|container|isHtml|imgPos|dragArgs|dimmer|yspan|innerHTML|push|objectType|scrollerDiv|xspan|expand|table|event|td|hiddenBy|overflow|addEventListener|ratio|move|upcoming|previous|getElementsByTagName|marginMin|minWidth|image|focusKey|contentType|pause|isImage|offset|100|tb|ajax|page|slideshowGroup|parentNode|groups|showHideElements||||in|onLoad||||yp2|xp2|pThis|clearing|minSpan|case|hasDragged|right|objectLoadTime|outlineWhileAnimating|getExpander|anchor|oDiv|graphic|elPos|clientSpan|setPosition|dir|number|transitions|controls|wDiff|releaseMask|dur|marginMax|play|func|scroll|marginLeft|custom|objectWidth|focus|styles|minHeight|xmlHttp|9999px|attribs|swf|opera|marginBottom|resize|easing|center|round|ieVersion|bottom|navigator|hDiff|tagName|getParam|autoplay|dimmingOpacity||max|sleeping|steps|anchors|trans|fading|clone|getElementByClass|disable|oFinal|crossfade|onload|enable|html|pendingOutlines|iebody|marginTop|name|relative|geckoMac|preserveContent|sizeOverlayBox|fadeBox|allowReduce|blurExp|objectHeight|discardElement|location|cNode|Expander|images|prop|moveOnly|htmls|sg|removeEventListener|cursor|scrollingContent|getParams|while|hideOnMouseOut|mediumContent|zIndexCounter|overlayId|heading|cacheBindings|cloneNode|createOverlay|pageWidth|obj|isClosing|element|contentLoaded|block|credits|parent|showLoading|getNode|pageHeight|minY|area||updateAnchors|options|styleRestoreCursor|RegExp|loadHTML|over|minX|maxX|contentWindow|buttons|safari|250|step|all|ruler|setAttribute|numberPosition|cur|graphicsDir|break|before|maxY|preloadTheseImages|Outline|param|cache|setDimmerSize|scrollTop|scrollLeft|owner|hsPos|above|getPageSize|allowSizeReduction|afterClose|on|isExpanded|val|background|documentElement|destroy|mask|faders|getPosition|dY|tr|dX|preloadFullImage|Id|isHsAnchor|keyHandler|redoShowHide|split|getSrc|imgs|allowWidthReduction|innerHeight|changed|javascript|Ajax|hideSelects|afterExpand|hideIframes|kdeBugCorr|matches|self|dragHandler|onLoadStarted|maincontent|userAgent|ul|getAnchorIndex|disabled|prototype|DIV|innerWidth|init|transitionDuration|pre|cachedGets|writeExtendedContent|rel|currentStyle|clientX|thumbsUserSetId|curW|previousOrNext|marginRight|stl|preventDefault|clientY|slideshows|positionOverlay|tId|topmostKey|mouse|script|fullExpandLabel|readyState|preloadTheseAjax|mousemove|langDefaults|dimmingDuration|os|below|targetY|removeChild|targetX|setSize|border|names|align|maxWidth|getCacheBinding|connectOutline|getAdjacentAnchor|types|onDomReady|continuePreloading|oPos|current|cancelLoading|hasAlphaImageLoader|setClickEvents|filter|overrides|skip|pI||getSelfRendered|tbody|Text|crossfadeStep|contentId|wrapperClassName|expandDuration|Create|prep|doWrapper|clientHeight|getElementContent|xScroll|onError|clientWidth|scrollWidth|Slideshow|useControls|getElementById|contentDocument|yScroll|run|removeAttribute|cacheAjax|getAnchors|topZ|hasMovedMin|active|undim|IFRAME|SELECT|htmlGetSize|replaceLang|allowHeightReduction|offsetTop|Click|arrow|mousedown|setObjContainerSize|padding|load|mouseClickHandler|correctIframeSize|doFullExpand|moveText|closeTitle|closeText|skin|moveTitle|nextText|previousTitle|previousText|nextTitle|fullExpandTitle|preloadAjaxElement|changeSize|keydown|keypress|numberOfImagesToPreload|outlineStartOffset|relatedTarget|distance|swfobject|after|srcElement|fitOverlayBox|pointer|htmlExpand|origProp|wrapperKey|getWrapperKey|blur|garbageBin|restoreCursor|url|restoreTitle|mouseIsOver|allowMultipleInstances|caption|show|getInline|dragByHeading|clones|genOverlayBox|thumbnailId|other|evt|middle|mY|hasFocused|string|mX|swfOptions|idCounter|setAttribs|compatMode|newHeight|clear|hasExtendedContent|attributes|wmode|flashvars|both|enableKeyListener|resizeTitle|headingOverlay|fullExpandText|pauseText|pauseTitle|captionOverlay|tag|scrollHeight|offsetParent|scrollMaxY|scrollMaxX|nopad|playText|playTitle|Play|Pause|Close|JS|Highslide|spacebar|Previous|200|and||Move|Next|offsetLeft|contentWrapper|png|appendTo|preloadGraphic|parseFloat|loadingOpacity|onGraphicLoad|vis|wrapperMouseHandler|modMarginRight|thumb|isDomReady|hide|loadingText|loadingTitle|focusTopmost|args|adj|dimmingGeckoFix|onSetClickEvent|form|hasHtmlexpanders|detachEvent|pow|clickY|clickX|maxHeight|onHideLoading|prepareNextOutline|repeat|sls|hitSpace|preloadNext|toString|500|overlayOptions|initSlideshow|checkFirstAndLast|reuse|wait|https|restoreSteps|htmlPrepareClose|fullExpandPosition|protocol|oldImg|clearTimeout|fullExpandOpacity|crossfadeEnd|newImg|getControls|restoreDuration|Overlay|addOverlay|focusTitle|nextSibling|cachedGet|XMLHTTP|ie6SSL|clearsY|clearsX|getAttribute|Microsoft|hand|creditsTitle|creditsText|creditsHref|sleep|reOrder|ActiveXObject|gi|Eval|abs|open|createFullExpand|write|reuseOverlay||showOverlays|getOverlays|domReady|panel|padToMinWidth|appVersion|gotOverlays|getImageMapAreaCorrection|writeCredits|mouseup|tmpMin|preloadImages|leftpanel|correctRatio|pageLoaded|showCredits|rightpanel|htmlSizeOperations|preloadAjax|vendor|Safari|Gecko|awake|defer|getNumber|BackCompat|destroyObject|KDE|rv|expandSteps|doPanels|fadeInOut|onreadystatechange|easeInOutQuad|easeInQuad|easingClose|keyCode|onAfterGetCaption|onAfterGetHeading|GET|pageXOffset|returnValue|exec|geckodimmer|onDoFullExpand|onDimmerClick|dimming|onCreateFullExpand|send|useOnHtml|onAfterClose|switch|useMap|Msxml2|XMLHttpRequest|onKeyDown|pageYOffset|headingId|complete|click|of|Image|Full|drag|Use|1001|zoomout||graphics|keys|HsExpander|Resize|front|Expand|bring|cancel|Loading|actual|Powered|esc|homepage|the|Go|http|vikjavev|maincontentEval|Macintosh|maincontentText|maincontentId|headingEval|margin|alpha|blank|responseText|MSIE|link|headingText|registerOverlay|shadow|drop|text|no|void|header|captionEval|captionText||captionId|footer|about|button|onInit|wrapperBG|boolean|onAfterExpand|scale|interval|onmouseover|onmouseout|blockRightClick|oncontextmenu|imageCreate|onShowLoading|rect|sizingMethod|AlphaImageLoader|addSlideshow|lineHeight|collapse|borderCollapse|defaultView|cellSpacing|fontSize|onBeforeGetHeading|progid|DXImageTransform|onBeforeGetCaption|outlines|outlinesDir|flushImgSize|htmlCreate|expressInstallSwfurl|floor|version|embedSWF|flash|transparent|circle|toLowerCase|nodeName|300|insertBefore|coords|shape|tmpHeight|allowtransparency|onAfterGetContent|static|525|clip|onBeforeGetContent|onBeforeExpand|fixedControls|getTime|frameborder|Date|reflow|newWidth|getComputedStyle|eval|fromElement|StopPlay|mouseover|onDrag|getPropertyValue|onMouseOver|default|attachEvent|onMouseOut|dragSensitivity|removeSWF|onImageClick|200px|xpand|htmlE|onDrop|white|sqrt|onCreateOverlay|01|onBeforeClose|toElement|onActivate|1px|linearTween|paddingTop|object|onFocus|onBlur'.split('|'),0,{}))
;
;
/* SWFObject v2.1 <http://code.google.com/p/swfobject/>
	Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis
	This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return }if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return }}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return }var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return }var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return }AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();;
;
// JavaScript Document
function check_close(id, time, ip){
	if(document.getElementById('check_'+id)!=null && document.getElementById('check_'+id).checked){
		Set_Cookie(ip, true, time, '/', '', '');
	}	
	
}
function display_none(id){
	if(document.getElementById(id)!=null){
		document.getElementById(id).style.display='none';
	}
}
function display_block(id){
	if(document.getElementById(id)!=null){
		document.getElementById(id).style.display='block';
	}
}
function Set_Cookie( name, value, expires, path, domain, secure ) 
{
	// set time, it's in milliseconds
	var today = new Date();
	today.setTime( today.getTime() );
	
	if ( expires )
	{
		expires = expires * 1000* 60 * 60 * 24;
		//alert(expires);
	}
	var expires_date = new Date( today.getTime() + (expires) );
	
	document.cookie = name + "=" +escape( value ) +
	( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + 
	( ( path ) ? ";path=" + path : "" ) + 
	( ( domain ) ? ";domain=" + domain : "" ) +
	( ( secure ) ? ";secure" : "" );
}
function Get_Cookie( check_name ) {
	// first we'll split this cookie up into name/value pairs
	// note: document.cookie only returns name=value, not the other components
	var a_all_cookies = document.cookie.split( ';' );
	var a_temp_cookie = '';
	var cookie_name = '';
	var cookie_value = '';
	var b_cookie_found = false; // set boolean t/f default f
	//alert(document.cookie)
	for ( i = 0; i < a_all_cookies.length; i++ )
	{
		// now we'll split apart each name=value pair
		a_temp_cookie = a_all_cookies[i].split( '=' );
		
		
		// and trim left/right whitespace while we're at it
		cookie_name = a_temp_cookie[0].replace(/^\s+|\s+$/g, '');
	
		// if the extracted name matches passed check_name
		if ( cookie_name == check_name )
		{
			b_cookie_found = true;
			// we need to handle case where cookie has no value but exists (no = sign, that is):
			if ( a_temp_cookie.length > 1 )
			{
				cookie_value = unescape( a_temp_cookie[1].replace(/^\s+|\s+$/g, '') );
			}
			// note that in cases where cookie is initialized but no value, null is returned
			return cookie_value;
			break;
		}
		a_temp_cookie = null;
		cookie_name = '';
	}
	if ( !b_cookie_found )
	{
		return null;
	}
}	
function Delete_Cookie( name) {
	var d = new Date();
	
	if (Get_Cookie( name) ){ document.cookie = name+"=null;expires=" + d.toGMTString() + ";" + ";";alert(Get_Cookie( name));}

};
hs.graphicsDir = 'http://www.mos-kino.ru/plugins/content/highslide/graphics/'; 
hs.showCredits = true;
hs.outlineType = 'rounded-white';
hs.loadingText = 'Loading...';;
;
function modCount (areaId, classId, moduleClass, setModsHeight) {
	var modsCount = 0;
	modsToAssign = new Array();
	maxHeight = new Array(0,0,0);
	var mods = document.getElementById(areaId).getElementsByTagName('DIV');
	for (var m=0; m<mods.length; m++) {
		if (mods[m].className.indexOf(moduleClass) != -1) {
			modsToAssign[modsCount] = mods[m];
			modsCount += 1;
		}
	}
	if (modsCount > 0) {
		var modsCountNew = modsCount;
		var fl = '';
		for (var s=0; s<modsToAssign.length; s++) {
			if (modsCountNew>3) {
				if (s<=2) modsCount = 3;
				if (s>2) modsCount = Math.min((modsCountNew-3),3);
				if (s>5) modsCount = Math.min((modsCountNew-6),3);
			}
			newClassName = ' ' + classId + modsCount;
			if (s==0 || s==3 || s==6) fl = ' first';
			if (s==1 || s==4 || s==7) {
				 fl = ' middle';
				 if (modsToAssign.length ==2 || (modsToAssign.length ==5 && s==4) || (modsToAssign.length == 8 && s==7)) fl = ' last';
			}
			if (s==2 || s==5 || s==8) fl = ' last';
			newClassName += fl;

			if (areaId == 'btm-mods' && modsCount > 1) {
				if ((s == 0 && modsCount == 2) || ((s == 0 || s == 1) && modsCount == 3)) newClassName += ' countin-border';
			}
			modsToAssign[s].className += newClassName;
			if (setModsHeight) {
                if (s<=2) { row = 0; } else if (s<=5) { row = 1; } else { row = 2; }
				maxHeight[row] = Math.max(maxHeight[row], modsToAssign[s].offsetHeight);
			}
		}
		if (setModsHeight) {
			for (var s=0; s<modsToAssign.length; s++) {
				if (s<=2) { row = 0; } else if (s<=5) { row = 1; } else { row = 2; }
				if (modsToAssign[s].className.indexOf("moduletable") != -1) {
					myEl = modsToAssign[s];
				} else {
					myEl = modsToAssign[s].getElementsByTagName("DIV")[2];
				}
				h3stripedFix = (myEl.className.indexOf("h3striped")!=-1)?10:0;
				horzlinesFix = (myEl.className.indexOf("horzlines")!=-1)?8:0;
				myEl.style.height = (maxHeight[row]-setModsHeight+h3stripedFix-horzlinesFix) + 'px';
			}
		}
	}
}
function getBrowserHeight(){
if (window.innerHeight){return window.innerHeight;}
else if (document.documentElement && document.documentElement.clientHeight != 0){return document.documentElement.clientHeight;}
else if (document.body){return document.body.clientHeight;}
return 0;
}
;
;
/*
 * jQuery 1.2.6 - New Wave Javascript
 *
 * Copyright (c) 2008 John Resig (jquery.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * $Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) $
 * $Rev: 5685 $
 */
(function(){var _jQuery=window.jQuery,_$=window.$;var jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context);};var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,isSimple=/^.[^:#\[\.]*$/,undefined;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this;}if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1])selector=jQuery.clean([match[1]],context);else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3])return jQuery().find(selector);return jQuery(elem);}selector=[];}}else
return jQuery(context).find(selector);}else if(jQuery.isFunction(selector))return jQuery(document)[jQuery.fn.ready?"ready":"load"](selector);return this.setArray(jQuery.makeArray(selector));},jquery:"1.2.6",size:function(){return this.length;},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num];},pushStack:function(elems){var ret=jQuery(elems);ret.prevObject=this;return ret;},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this;},each:function(callback,args){return jQuery.each(this,callback,args);},index:function(elem){var ret=-1;return jQuery.inArray(elem&&elem.jquery?elem[0]:elem,this);},attr:function(name,value,type){var options=name;if(name.constructor==String)if(value===undefined)return this[0]&&jQuery[type||"attr"](this[0],name);else{options={};options[name]=value;}return this.each(function(i){for(name in options)jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name));});},css:function(key,value){if((key=='width'||key=='height')&&parseFloat(value)<0)value=undefined;return this.attr(key,value,"curCSS");},text:function(text){if(typeof text!="object"&&text!=null)return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text));var ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8)ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this]);});});return ret;},wrapAll:function(html){if(this[0])jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild)elem=elem.firstChild;return elem;}).append(this);return this;},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html);});},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html);});},append:function(){return this.domManip(arguments,true,false,function(elem){if(this.nodeType==1)this.appendChild(elem);});},prepend:function(){return this.domManip(arguments,true,true,function(elem){if(this.nodeType==1)this.insertBefore(elem,this.firstChild);});},before:function(){return this.domManip(arguments,false,false,function(elem){this.parentNode.insertBefore(elem,this);});},after:function(){return this.domManip(arguments,false,true,function(elem){this.parentNode.insertBefore(elem,this.nextSibling);});},end:function(){return this.prevObject||jQuery([]);},find:function(selector){var elems=jQuery.map(this,function(elem){return jQuery.find(selector,elem);});return this.pushStack(/[^+>] [^+>]/.test(selector)||selector.indexOf("..")>-1?jQuery.unique(elems):elems);},clone:function(events){var ret=this.map(function(){if(jQuery.browser.msie&&!jQuery.isXMLDoc(this)){var clone=this.cloneNode(true),container=document.createElement("div");container.appendChild(clone);return jQuery.clean([container.innerHTML])[0];}else
return this.cloneNode(true);});var clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined)this[expando]=null;});if(events===true)this.find("*").andSelf().each(function(i){if(this.nodeType==3)return;var events=jQuery.data(this,"events");for(var type in events)for(var handler in events[type])jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data);});return ret;},filter:function(selector){return this.pushStack(jQuery.isFunction(selector)&&jQuery.grep(this,function(elem,i){return selector.call(elem,i);})||jQuery.multiFilter(selector,this));},not:function(selector){if(selector.constructor==String)if(isSimple.test(selector))return this.pushStack(jQuery.multiFilter(selector,this,true));else
selector=jQuery.multiFilter(selector,this);var isArrayLike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)<0:this!=selector;});},add:function(selector){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof selector=='string'?jQuery(selector):jQuery.makeArray(selector))));},is:function(selector){return!!selector&&jQuery.multiFilter(selector,this).length>0;},hasClass:function(selector){return this.is("."+selector);},val:function(value){if(value==undefined){if(this.length){var elem=this[0];if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type=="select-one";if(index<0)return null;for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){value=jQuery.browser.msie&&!option.attributes.value.specified?option.text:option.value;if(one)return value;values.push(value);}}return values;}else
return(this[0].value||"").replace(/\r/g,"");}return undefined;}if(value.constructor==Number)value+='';return this.each(function(){if(this.nodeType!=1)return;if(value.constructor==Array&&/radio|checkbox/.test(this.type))this.checked=(jQuery.inArray(this.value,value)>=0||jQuery.inArray(this.name,value)>=0);else if(jQuery.nodeName(this,"select")){var values=jQuery.makeArray(value);jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,values)>=0||jQuery.inArray(this.text,values)>=0);});if(!values.length)this.selectedIndex=-1;}else
this.value=value;});},html:function(value){return value==undefined?(this[0]?this[0].innerHTML:null):this.empty().append(value);},replaceWith:function(value){return this.after(value).remove();},eq:function(i){return this.slice(i,i+1);},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments));},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem);}));},andSelf:function(){return this.add(this.prevObject);},data:function(key,value){var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data===undefined&&this.length)data=jQuery.data(this[0],key);return data===undefined&&parts[1]?this.data(parts[0]):data;}else
return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value);});},removeData:function(key){return this.each(function(){jQuery.removeData(this,key);});},domManip:function(args,table,reverse,callback){var clone=this.length>1,elems;return this.each(function(){if(!elems){elems=jQuery.clean(args,this.ownerDocument);if(reverse)elems.reverse();}var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(elems[0],"tr"))obj=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"));var scripts=jQuery([]);jQuery.each(elems,function(){var elem=clone?jQuery(this).clone(true)[0]:this;if(jQuery.nodeName(elem,"script"))scripts=scripts.add(elem);else{if(elem.nodeType==1)scripts=scripts.add(jQuery("script",elem).remove());callback.call(obj,elem);}});scripts.each(evalScript);});}};jQuery.fn.init.prototype=jQuery.fn;function evalScript(i,elem){if(elem.src)jQuery.ajax({url:elem.src,async:false,dataType:"script"});else
jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"");if(elem.parentNode)elem.parentNode.removeChild(elem);}function now(){return+new Date;}jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==Boolean){deep=target;target=arguments[1]||{};i=2;}if(typeof target!="object"&&typeof target!="function")target={};if(length==i){target=this;--i;}for(;i<length;i++)if((options=arguments[i])!=null)for(var name in options){var src=target[name],copy=options[name];if(target===copy)continue;if(deep&&copy&&typeof copy=="object"&&!copy.nodeType)target[name]=jQuery.extend(deep,src||(copy.length!=null?[]:{}),copy);else if(copy!==undefined)target[name]=copy;}return target;};var expando="jQuery"+now(),uuid=0,windowData={},exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,defaultView=document.defaultView||{};jQuery.extend({noConflict:function(deep){window.$=_$;if(deep)window.jQuery=_jQuery;return jQuery;},isFunction:function(fn){return!!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/^[\s[]?function/.test(fn+"");},isXMLDoc:function(elem){return elem.documentElement&&!elem.body||elem.tagName&&elem.ownerDocument&&!elem.ownerDocument.body;},globalEval:function(data){data=jQuery.trim(data);if(data){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.browser.msie)script.text=data;else
script.appendChild(document.createTextNode(data));head.insertBefore(script,head.firstChild);head.removeChild(script);}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase();},cache:{},data:function(elem,name,data){elem=elem==window?windowData:elem;var id=elem[expando];if(!id)id=elem[expando]=++uuid;if(name&&!jQuery.cache[id])jQuery.cache[id]={};if(data!==undefined)jQuery.cache[id][name]=data;return name?jQuery.cache[id][name]:id;},removeData:function(elem,name){elem=elem==window?windowData:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name="";for(name in jQuery.cache[id])break;if(!name)jQuery.removeData(elem);}}else{try{delete elem[expando];}catch(e){if(elem.removeAttribute)elem.removeAttribute(expando);}delete jQuery.cache[id];}},each:function(object,callback,args){var name,i=0,length=object.length;if(args){if(length==undefined){for(name in object)if(callback.apply(object[name],args)===false)break;}else
for(;i<length;)if(callback.apply(object[i++],args)===false)break;}else{if(length==undefined){for(name in object)if(callback.call(object[name],name,object[name])===false)break;}else
for(var value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}return object;},prop:function(elem,value,type,i,name){if(jQuery.isFunction(value))value=value.call(elem,i);return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(name)?value+"px":value;},className:{add:function(elem,classNames){jQuery.each((classNames||"").split(/\s+/),function(i,className){if(elem.nodeType==1&&!jQuery.className.has(elem.className,className))elem.className+=(elem.className?" ":"")+className;});},remove:function(elem,classNames){if(elem.nodeType==1)elem.className=classNames!=undefined?jQuery.grep(elem.className.split(/\s+/),function(className){return!jQuery.className.has(classNames,className);}).join(" "):"";},has:function(elem,className){return jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))>-1;}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name];}callback.call(elem);for(var name in options)elem.style[name]=old[name];},css:function(elem,name,force){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;var padding=0,border=0;jQuery.each(which,function(){padding+=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;border+=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0;});val-=Math.round(padding+border);}if(jQuery(elem).is(":visible"))getWH();else
jQuery.swap(elem,props,getWH);return Math.max(0,val);}return jQuery.curCSS(elem,name,force);},curCSS:function(elem,name,force){var ret,style=elem.style;function color(elem){if(!jQuery.browser.safari)return false;var ret=defaultView.getComputedStyle(elem,null);return!ret||ret.getPropertyValue("color")=="";}if(name=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(style,"opacity");return ret==""?"1":ret;}if(jQuery.browser.opera&&name=="display"){var save=style.outline;style.outline="0 solid black";style.outline=save;}if(name.match(/float/i))name=styleFloat;if(!force&&style&&style[name])ret=style[name];else if(defaultView.getComputedStyle){if(name.match(/float/i))name="float";name=name.replace(/([A-Z])/g,"-$1").toLowerCase();var computedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle&&!color(elem))ret=computedStyle.getPropertyValue(name);else{var swap=[],stack=[],a=elem,i=0;for(;a&&color(a);a=a.parentNode)stack.unshift(a);for(;i<stack.length;i++)if(color(stack[i])){swap[i]=stack[i].style.display;stack[i].style.display="block";}ret=name=="display"&&swap[stack.length-1]!=null?"none":(computedStyle&&computedStyle.getPropertyValue(name))||"";for(i=0;i<swap.length;i++)if(swap[i]!=null)stack[i].style.display=swap[i];}if(name=="opacity"&&ret=="")ret="1";}else if(elem.currentStyle){var camelCase=name.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase();});ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var left=style.left,rsLeft=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left=ret||0;ret=style.pixelLeft+"px";style.left=left;elem.runtimeStyle.left=rsLeft;}}return ret;},clean:function(elems,context){var ret=[];context=context||document;if(typeof context.createElement=='undefined')context=context.ownerDocument||context[0]&&context[0].ownerDocument||document;jQuery.each(elems,function(i,elem){if(!elem)return;if(elem.constructor==Number)elem+='';if(typeof elem=="string"){elem=elem.replace(/(<(\w+)[^>]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+"></"+tag+">";});var tags=jQuery.trim(elem).toLowerCase(),div=context.createElement("div");var wrap=!tags.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!tags.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!tags.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!tags.indexOf("<td")||!tags.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!tags.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--)div=div.lastChild;if(jQuery.browser.msie){var tbody=!tags.indexOf("<table")&&tags.indexOf("<tbody")<0?div.firstChild&&div.firstChild.childNodes:wrap[1]=="<table>"&&tags.indexOf("<tbody")<0?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j)if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length)tbody[j].parentNode.removeChild(tbody[j]);if(/^\s/.test(elem))div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild);}elem=jQuery.makeArray(div.childNodes);}if(elem.length===0&&(!jQuery.nodeName(elem,"form")&&!jQuery.nodeName(elem,"select")))return;if(elem[0]==undefined||jQuery.nodeName(elem,"form")||elem.options)ret.push(elem);else
ret=jQuery.merge(ret,elem);});return ret;},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8)return undefined;var notxml=!jQuery.isXMLDoc(elem),set=value!==undefined,msie=jQuery.browser.msie;name=notxml&&jQuery.props[name]||name;if(elem.tagName){var special=/href|src|style/.test(name);if(name=="selected"&&jQuery.browser.safari)elem.parentNode.selectedIndex;if(name in elem&&notxml&&!special){if(set){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode)throw"type property can't be changed";elem[name]=value;}if(jQuery.nodeName(elem,"form")&&elem.getAttributeNode(name))return elem.getAttributeNode(name).nodeValue;return elem[name];}if(msie&&notxml&&name=="style")return jQuery.attr(elem.style,"cssText",value);if(set)elem.setAttribute(name,""+value);var attr=msie&&notxml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr;}if(msie&&name=="opacity"){if(set){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(value)+''=="NaN"?"":"alpha(opacity="+value*100+")");}return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+'':"";}name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase();});if(set)elem[name]=value;return elem[name];},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"");},makeArray:function(array){var ret=[];if(array!=null){var i=array.length;if(i==null||array.split||array.setInterval||array.call)ret[0]=array;else
while(i)ret[--i]=array[i];}return ret;},inArray:function(elem,array){for(var i=0,length=array.length;i<length;i++)if(array[i]===elem)return i;return-1;},merge:function(first,second){var i=0,elem,pos=first.length;if(jQuery.browser.msie){while(elem=second[i++])if(elem.nodeType!=8)first[pos++]=elem;}else
while(elem=second[i++])first[pos++]=elem;return first;},unique:function(array){var ret=[],done={};try{for(var i=0,length=array.length;i<length;i++){var id=jQuery.data(array[i]);if(!done[id]){done[id]=true;ret.push(array[i]);}}}catch(e){ret=array;}return ret;},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i<length;i++)if(!inv!=!callback(elems[i],i))ret.push(elems[i]);return ret;},map:function(elems,callback){var ret=[];for(var i=0,length=elems.length;i<length;i++){var value=callback(elems[i],i);if(value!=null)ret[ret.length]=value;}return ret.concat.apply([],ret);}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};var styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat";jQuery.extend({boxModel:!jQuery.browser.msie||document.compatMode=="CSS1Compat",props:{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing"}});jQuery.each({parent:function(elem){return elem.parentNode;},parents:function(elem){return jQuery.dir(elem,"parentNode");},next:function(elem){return jQuery.nth(elem,2,"nextSibling");},prev:function(elem){return jQuery.nth(elem,2,"previousSibling");},nextAll:function(elem){return jQuery.dir(elem,"nextSibling");},prevAll:function(elem){return jQuery.dir(elem,"previousSibling");},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},children:function(elem){return jQuery.sibling(elem.firstChild);},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}},function(name,fn){jQuery.fn[name]=function(selector){var ret=jQuery.map(this,fn);if(selector&&typeof selector=="string")ret=jQuery.multiFilter(selector,ret);return this.pushStack(jQuery.unique(ret));};});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(){var args=arguments;return this.each(function(){for(var i=0,length=args.length;i<length;i++)jQuery(args[i])[original](this);});};});jQuery.each({removeAttr:function(name){jQuery.attr(this,name,"");if(this.nodeType==1)this.removeAttribute(name);},addClass:function(classNames){jQuery.className.add(this,classNames);},removeClass:function(classNames){jQuery.className.remove(this,classNames);},toggleClass:function(classNames){jQuery.className[jQuery.className.has(this,classNames)?"remove":"add"](this,classNames);},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).r.length){jQuery("*",this).add(this).each(function(){jQuery.event.remove(this);jQuery.removeData(this);});if(this.parentNode)this.parentNode.removeChild(this);}},empty:function(){jQuery(">*",this).remove();while(this.firstChild)this.removeChild(this.firstChild);}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments);};});jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?jQuery.browser.opera&&document.body["client"+name]||jQuery.browser.safari&&window["inner"+name]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(Math.max(document.body["scroll"+name],document.documentElement["scroll"+name]),Math.max(document.body["offset"+name],document.documentElement["offset"+name])):size==undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,size.constructor==String?size:size+"px");};});function num(elem,prop){return elem[0]&&parseInt(jQuery.curCSS(elem[0],prop,true),10)||0;}var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new RegExp("^>\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");jQuery.extend({expr:{"":function(a,i,m){return m[2]=="*"||jQuery.nodeName(a,m[2]);},"#":function(a,i,m){return a.getAttribute("id")==m[2];},":":{lt:function(a,i,m){return i<m[3]-0;},gt:function(a,i,m){return i>m[3]-0;},nth:function(a,i,m){return m[3]-0==i;},eq:function(a,i,m){return m[3]-0==i;},first:function(a,i){return i==0;},last:function(a,i,m,r){return i==r.length-1;},even:function(a,i){return i%2==0;},odd:function(a,i){return i%2;},"first-child":function(a){return a.parentNode.getElementsByTagName("*")[0]==a;},"last-child":function(a){return jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a;},"only-child":function(a){return!jQuery.nth(a.parentNode.lastChild,2,"previousSibling");},parent:function(a){return a.firstChild;},empty:function(a){return!a.firstChild;},contains:function(a,i,m){return(a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0;},visible:function(a){return"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden";},hidden:function(a){return"hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden";},enabled:function(a){return!a.disabled;},disabled:function(a){return a.disabled;},checked:function(a){return a.checked;},selected:function(a){return a.selected||jQuery.attr(a,"selected");},text:function(a){return"text"==a.type;},radio:function(a){return"radio"==a.type;},checkbox:function(a){return"checkbox"==a.type;},file:function(a){return"file"==a.type;},password:function(a){return"password"==a.type;},submit:function(a){return"submit"==a.type;},image:function(a){return"image"==a.type;},reset:function(a){return"reset"==a.type;},button:function(a){return"button"==a.type||jQuery.nodeName(a,"button");},input:function(a){return/input|select|textarea|button/i.test(a.nodeName);},has:function(a,i,m){return jQuery.find(m[3],a).length;},header:function(a){return/h\d/i.test(a.nodeName);},animated:function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem;}).length;}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r);}return cur;},find:function(t,context){if(typeof t!="string")return[t];if(context&&context.nodeType!=1&&context.nodeType!=9)return[];context=context||document;var ret=[context],done=[],last,nodeName;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false,re=quickChild,m=re.exec(t);if(m){nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++)for(var c=ret[i].firstChild;c;c=c.nextSibling)if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName))r.push(c);ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0)continue;foundToken=true;}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var merge={};nodeName=m[2].toUpperCase();m=m[1];for(var j=0,rl=ret.length;j<rl;j++){var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling)if(n.nodeType==1){var id=jQuery.data(n);if(m=="~"&&merge[id])break;if(!nodeName||n.nodeName.toUpperCase()==nodeName){if(m=="~")merge[id]=true;r.push(n);}if(m=="+")break;}}ret=r;t=jQuery.trim(t.replace(re,""));foundToken=true;}}if(t&&!foundToken){if(!t.indexOf(",")){if(context==ret[0])ret.shift();done=jQuery.merge(done,ret);r=ret=[context];t=" "+t.substr(1,t.length);}else{var re2=quickID;var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]];}else{re2=quickClass;m=re2.exec(t);}m[2]=m[2].replace(/\\/g,"");var elem=ret[ret.length-1];if(m[1]=="#"&&elem&&elem.getElementById&&!jQuery.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((jQuery.browser.msie||jQuery.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2])oid=jQuery('[@id="'+m[2]+'"]',elem)[0];ret=r=oid&&(!m[3]||jQuery.nodeName(oid,m[3]))?[oid]:[];}else{for(var i=0;ret[i];i++){var tag=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object")tag="param";r=jQuery.merge(r,ret[i].getElementsByTagName(tag));}if(m[1]==".")r=jQuery.classFilter(r,m[2]);if(m[1]=="#"){var tmp=[];for(var i=0;r[i];i++)if(r[i].getAttribute("id")==m[2]){tmp=[r[i]];break;}r=tmp;}ret=r;}t=t.replace(re2,"");}}if(t){var val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t);}}if(t)ret=[];if(ret&&context==ret[0])ret.shift();done=jQuery.merge(done,ret);return done;},classFilter:function(r,m,not){m=" "+m+" ";var tmp=[];for(var i=0;r[i];i++){var pass=(" "+r[i].className+" ").indexOf(m)>=0;if(!not&&pass||not&&!pass)tmp.push(r[i]);}return tmp;},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break;}}if(!m)break;if(m[1]==":"&&m[2]=="not")r=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3]);else if(m[1]==".")r=jQuery.classFilter(r,m[2],not);else if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i<rl;i++){var a=r[i],z=a[jQuery.props[m[2]]||m[2]];if(z==null||/href|src|selected/.test(m[2]))z=jQuery.attr(a,m[2])||'';if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not)tmp.push(a);}r=tmp;}else if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-0;for(var i=0,rl=r.length;i<rl;i++){var node=r[i],parentNode=node.parentNode,id=jQuery.data(parentNode);if(!merge[id]){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling)if(n.nodeType==1)n.nodeIndex=c++;merge[id]=true;}var add=false;if(first==0){if(node.nodeIndex==last)add=true;}else if((node.nodeIndex-last)%first==0&&(node.nodeIndex-last)/first>=0)add=true;if(add^not)tmp.push(node);}r=tmp;}else{var fn=jQuery.expr[m[1]];if(typeof fn=="object")fn=fn[m[2]];if(typeof fn=="string")fn=eval("false||function(a,i){return "+fn+";}");r=jQuery.grep(r,function(elem,i){return fn(elem,i,m,r);},not);}}return{r:r,t:t};},dir:function(elem,dir){var matched=[],cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1)matched.push(cur);cur=cur[dir];}return matched;},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir])if(cur.nodeType==1&&++num==result)break;return cur;},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&n!=elem)r.push(n);}return r;}});jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8)return;if(jQuery.browser.msie&&elem.setInterval)elem=window;if(!handler.guid)handler.guid=this.guid++;if(data!=undefined){var fn=handler;handler=this.proxy(fn,function(){return fn.apply(this,arguments);});handler.data=data;}var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){if(typeof jQuery!="undefined"&&!jQuery.event.triggered)return jQuery.event.handle.apply(arguments.callee.elem,arguments);});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem)===false){if(elem.addEventListener)elem.addEventListener(type,handle,false);else if(elem.attachEvent)elem.attachEvent("on"+type,handle);}}handlers[handler.guid]=handler;jQuery.event.global[type]=true;});elem=null;},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8)return;var events=jQuery.data(elem,"events"),ret,index;if(events){if(types==undefined||(typeof types=="string"&&types.charAt(0)=="."))for(var type in events)this.remove(elem,type+(types||""));else{if(types.type){handler=types.handler;types=types.type;}jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];if(events[type]){if(handler)delete events[type][handler.guid];else
for(handler in events[type])if(!parts[1]||events[type][handler].type==parts[1])delete events[type][handler];for(ret in events[type])break;if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem)===false){if(elem.removeEventListener)elem.removeEventListener(type,jQuery.data(elem,"handle"),false);else if(elem.detachEvent)elem.detachEvent("on"+type,jQuery.data(elem,"handle"));}ret=null;delete events[type];}}});}for(ret in events)break;if(!ret){var handle=jQuery.data(elem,"handle");if(handle)handle.elem=null;jQuery.removeData(elem,"events");jQuery.removeData(elem,"handle");}}},trigger:function(type,data,elem,donative,extra){data=jQuery.makeArray(data);if(type.indexOf("!")>=0){type=type.slice(0,-1);var exclusive=true;}if(!elem){if(this.global[type])jQuery("*").add([window,document]).trigger(type,data);}else{if(elem.nodeType==3||elem.nodeType==8)return undefined;var val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event){data.unshift({type:type,target:elem,preventDefault:function(){},stopPropagation:function(){},timeStamp:now()});data[0][expando]=true;}data[0].type=type;if(exclusive)data[0].exclusive=true;var handle=jQuery.data(elem,"handle");if(handle)val=handle.apply(elem,data);if((!fn||(jQuery.nodeName(elem,'a')&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false)val=false;if(event)data.shift();if(extra&&jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined)val=ret;}if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(elem,'a')&&type=="click")){this.triggered=true;try{elem[type]();}catch(e){}}this.triggered=false;}return val;},handle:function(event){var val,ret,namespace,all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);namespace=event.type.split(".");event.type=namespace[0];namespace=namespace[1];all=!namespace&&!event.exclusive;handlers=(jQuery.data(this,"events")||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||handler.type==namespace){event.handler=handler;event.data=handler.data;ret=handler.apply(this,arguments);if(val!==false)val=ret;if(ret===false){event.preventDefault();event.stopPropagation();}}}return val;},fix:function(event){if(event[expando]==true)return event;var originalEvent=event;event={originalEvent:originalEvent};var props="altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" ");for(var i=props.length;i;i--)event[props[i]]=originalEvent[props[i]];event[expando]=true;event.preventDefault=function(){if(originalEvent.preventDefault)originalEvent.preventDefault();originalEvent.returnValue=false;};event.stopPropagation=function(){if(originalEvent.stopPropagation)originalEvent.stopPropagation();originalEvent.cancelBubble=true;};event.timeStamp=event.timeStamp||now();if(!event.target)event.target=event.srcElement||document;if(event.target.nodeType==3)event.target=event.target.parentNode;if(!event.relatedTarget&&event.fromElement)event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement;if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0);}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode))event.which=event.charCode||event.keyCode;if(!event.metaKey&&event.ctrlKey)event.metaKey=event.ctrlKey;if(!event.which&&event.button)event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)));return event;},proxy:function(fn,proxy){proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy;},special:{ready:{setup:function(){bindReady();return;},teardown:function(){return;}},mouseenter:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseover",jQuery.event.special.mouseenter.handler);return true;},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseover",jQuery.event.special.mouseenter.handler);return true;},handler:function(event){if(withinElement(event,this))return true;event.type="mouseenter";return jQuery.event.handle.apply(this,arguments);}},mouseleave:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseout",jQuery.event.special.mouseleave.handler);return true;},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseout",jQuery.event.special.mouseleave.handler);return true;},handler:function(event){if(withinElement(event,this))return true;event.type="mouseleave";return jQuery.event.handle.apply(this,arguments);}}}};jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data);});},one:function(type,data,fn){var one=jQuery.event.proxy(fn||data,function(event){jQuery(this).unbind(event,one);return(fn||data).apply(this,arguments);});return this.each(function(){jQuery.event.add(this,type,one,fn&&data);});},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn);});},trigger:function(type,data,fn){return this.each(function(){jQuery.event.trigger(type,data,this,true,fn);});},triggerHandler:function(type,data,fn){return this[0]&&jQuery.event.trigger(type,data,this[0],false,fn);},toggle:function(fn){var args=arguments,i=1;while(i<args.length)jQuery.event.proxy(fn,args[i++]);return this.click(jQuery.event.proxy(fn,function(event){this.lastToggle=(this.lastToggle||0)%i;event.preventDefault();return args[this.lastToggle++].apply(this,arguments)||false;}));},hover:function(fnOver,fnOut){return this.bind('mouseenter',fnOver).bind('mouseleave',fnOut);},ready:function(fn){bindReady();if(jQuery.isReady)fn.call(document,jQuery);else
jQuery.readyList.push(function(){return fn.call(this,jQuery);});return this;}});jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.call(document);});jQuery.readyList=null;}jQuery(document).triggerHandler("ready");}}});var readyBound=false;function bindReady(){if(readyBound)return;readyBound=true;if(document.addEventListener&&!jQuery.browser.opera)document.addEventListener("DOMContentLoaded",jQuery.ready,false);if(jQuery.browser.msie&&window==top)(function(){if(jQuery.isReady)return;try{document.documentElement.doScroll("left");}catch(error){setTimeout(arguments.callee,0);return;}jQuery.ready();})();if(jQuery.browser.opera)document.addEventListener("DOMContentLoaded",function(){if(jQuery.isReady)return;for(var i=0;i<document.styleSheets.length;i++)if(document.styleSheets[i].disabled){setTimeout(arguments.callee,0);return;}jQuery.ready();},false);if(jQuery.browser.safari){var numStyles;(function(){if(jQuery.isReady)return;if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return;}if(numStyles===undefined)numStyles=jQuery("style, link[rel=stylesheet]").length;if(document.styleSheets.length!=numStyles){setTimeout(arguments.callee,0);return;}jQuery.ready();})();}jQuery.event.add(window,"load",jQuery.ready);}jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,"+"mousedown,mouseup,mousemove,mouseover,mouseout,change,select,"+"submit,keydown,keypress,keyup,error").split(","),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name);};});var withinElement=function(event,elem){var parent=event.relatedTarget;while(parent&&parent!=elem)try{parent=parent.parentNode;}catch(error){parent=elem;}return parent==elem;};jQuery(window).bind("unload",function(){jQuery("*").add(document).unbind();});jQuery.fn.extend({_load:jQuery.fn.load,load:function(url,params,callback){if(typeof url!='string')return this._load(url);var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off);}callback=callback||function(){};var type="GET";if(params)if(jQuery.isFunction(params)){callback=params;params=null;}else{params=jQuery.param(params);type="POST";}var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified")self.html(selector?jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):res.responseText);self.each(callback,[res.responseText,status,res]);}});return this;},serialize:function(){return jQuery.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return jQuery.nodeName(this,"form")?jQuery.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type));}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:val.constructor==Array?jQuery.map(val,function(val,i){return{name:elem.name,value:val};}):{name:elem.name,value:val};}).get();}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f);};});var jsc=now();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data=null;}return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type});},getScript:function(url,callback){return jQuery.get(url,null,callback,"script");},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json");},post:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data={};}return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type});},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings);},ajaxSettings:{url:location.href,global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null,username:null,password:null,accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(s){s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));var jsonp,jsre=/=\?(&|$)/g,status,data,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!="string")s.data=jQuery.param(s.data);if(s.dataType=="jsonp"){if(type=="GET"){if(!s.url.match(jsre))s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?";}else if(!s.data||!s.data.match(jsre))s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?";s.dataType="json";}if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){jsonp="jsonp"+jsc++;if(s.data)s.data=(s.data+"").replace(jsre,"="+jsonp+"$1");s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp];}catch(e){}if(head)head.removeChild(script);};}if(s.dataType=="script"&&s.cache==null)s.cache=false;if(s.cache===false&&type=="GET"){var ts=now();var ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"");}if(s.data&&type=="GET"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null;}if(s.global&&!jQuery.active++)jQuery.event.trigger("ajaxStart");var remote=/^(?:\w+:)?\/\/([^\/?#]+)/;if(s.dataType=="script"&&type=="GET"&&remote.test(s.url)&&remote.exec(s.url)[1]!=location.host){var head=document.getElementsByTagName("head")[0];var script=document.createElement("script");script.src=s.url;if(s.scriptCharset)script.charset=s.scriptCharset;if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){done=true;success();complete();head.removeChild(script);}};}head.appendChild(script);return undefined;}var requestDone=false;var xhr=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();if(s.username)xhr.open(type,s.url,s.async,s.username,s.password);else
xhr.open(type,s.url,s.async);try{if(s.data)xhr.setRequestHeader("Content-Type",s.contentType);if(s.ifModified)xhr.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT");xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default);}catch(e){}if(s.beforeSend&&s.beforeSend(xhr,s)===false){s.global&&jQuery.active--;xhr.abort();return false;}if(s.global)jQuery.event.trigger("ajaxSend",[xhr,s]);var onreadystatechange=function(isTimeout){if(!requestDone&&xhr&&(xhr.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null;}status=isTimeout=="timeout"&&"timeout"||!jQuery.httpSuccess(xhr)&&"error"||s.ifModified&&jQuery.httpNotModified(xhr,s.url)&&"notmodified"||"success";if(status=="success"){try{data=jQuery.httpData(xhr,s.dataType,s.dataFilter);}catch(e){status="parsererror";}}if(status=="success"){var modRes;try{modRes=xhr.getResponseHeader("Last-Modified");}catch(e){}if(s.ifModified&&modRes)jQuery.lastModified[s.url]=modRes;if(!jsonp)success();}else
jQuery.handleError(s,xhr,status);complete();if(s.async)xhr=null;}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0)setTimeout(function(){if(xhr){xhr.abort();if(!requestDone)onreadystatechange("timeout");}},s.timeout);}try{xhr.send(s.data);}catch(e){jQuery.handleError(s,xhr,null,e);}if(!s.async)onreadystatechange();function success(){if(s.success)s.success(data,status);if(s.global)jQuery.event.trigger("ajaxSuccess",[xhr,s]);}function complete(){if(s.complete)s.complete(xhr,status);if(s.global)jQuery.event.trigger("ajaxComplete",[xhr,s]);if(s.global&&!--jQuery.active)jQuery.event.trigger("ajaxStop");}return xhr;},handleError:function(s,xhr,status,e){if(s.error)s.error(xhr,status,e);if(s.global)jQuery.event.trigger("ajaxError",[xhr,s,e]);},active:0,httpSuccess:function(xhr){try{return!xhr.status&&location.protocol=="file:"||(xhr.status>=200&&xhr.status<300)||xhr.status==304||xhr.status==1223||jQuery.browser.safari&&xhr.status==undefined;}catch(e){}return false;},httpNotModified:function(xhr,url){try{var xhrRes=xhr.getResponseHeader("Last-Modified");return xhr.status==304||xhrRes==jQuery.lastModified[url]||jQuery.browser.safari&&xhr.status==undefined;}catch(e){}return false;},httpData:function(xhr,type,filter){var ct=xhr.getResponseHeader("content-type"),xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.tagName=="parsererror")throw"parsererror";if(filter)data=filter(data,type);if(type=="script")jQuery.globalEval(data);if(type=="json")data=eval("("+data+")");return data;},param:function(a){var s=[];if(a.constructor==Array||a.jquery)jQuery.each(a,function(){s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value));});else
for(var j in a)if(a[j]&&a[j].constructor==Array)jQuery.each(a[j],function(){s.push(encodeURIComponent(j)+"="+encodeURIComponent(this));});else
s.push(encodeURIComponent(j)+"="+encodeURIComponent(jQuery.isFunction(a[j])?a[j]():a[j]));return s.join("&").replace(/%20/g,"+");}});jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if(jQuery.css(this,"display")=="none"){var elem=jQuery("<"+this.tagName+" />").appendTo("body");this.style.display=elem.css("display");if(this.style.display=="none")this.style.display="block";elem.remove();}}).end();},hide:function(speed,callback){return speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):this.filter(":visible").each(function(){this.oldblock=this.oldblock||jQuery.css(this,"display");this.style.display="none";}).end();},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle.apply(this,arguments):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]();});},slideDown:function(speed,callback){return this.animate({height:"show"},speed,callback);},slideUp:function(speed,callback){return this.animate({height:"hide"},speed,callback);},slideToggle:function(speed,callback){return this.animate({height:"toggle"},speed,callback);},fadeIn:function(speed,callback){return this.animate({opacity:"show"},speed,callback);},fadeOut:function(speed,callback){return this.animate({opacity:"hide"},speed,callback);},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback);},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);return this[optall.queue===false?"each":"queue"](function(){if(this.nodeType!=1)return false;var opt=jQuery.extend({},optall),p,hidden=jQuery(this).is(":hidden"),self=this;for(p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden)return opt.complete.call(this);if(p=="height"||p=="width"){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow;}}if(opt.overflow!=null)this.style.overflow="hidden";opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val))e[val=="toggle"?hidden?"show":"hide":val](prop);else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit;}if(parts[1])end=((parts[1]=="-="?-1:1)*end)+start;e.custom(start,end,unit);}else
e.custom(start,val,"");}});return true;});},queue:function(type,fn){if(jQuery.isFunction(type)||(type&&type.constructor==Array)){fn=type;type="fx";}if(!type||(typeof type=="string"&&!fn))return queue(this[0],type);return this.each(function(){if(fn.constructor==Array)queue(this,type,fn);else{queue(this,type).push(fn);if(queue(this,type).length==1)fn.call(this);}});},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;if(clearQueue)this.queue([]);this.each(function(){for(var i=timers.length-1;i>=0;i--)if(timers[i].elem==this){if(gotoEnd)timers[i](true);timers.splice(i,1);}});if(!gotoEnd)this.dequeue();return this;}});var queue=function(elem,type,array){if(elem){type=type||"fx";var q=jQuery.data(elem,type+"queue");if(!q||array)q=jQuery.data(elem,type+"queue",jQuery.makeArray(array));}return q;};jQuery.fn.dequeue=function(type){type=type||"fx";return this.each(function(){var q=queue(this,type);q.shift();if(q.length)q[0].call(this);});};jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&speed.constructor==Object?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&easing.constructor!=Function&&easing};opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:jQuery.fx.speeds[opt.duration])||jQuery.fx.speeds.def;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false)jQuery(this).dequeue();if(jQuery.isFunction(opt.old))opt.old.call(this);};return opt;},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p;},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum;}},timers:[],timerId:null,fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig)options.orig={};}});jQuery.fx.prototype={update:function(){if(this.options.step)this.options.step.call(this.elem,this.now,this);(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if(this.prop=="height"||this.prop=="width")this.elem.style.display="block";},cur:function(force){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null)return this.elem[this.prop];var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0;},custom:function(from,to,unit){this.startTime=now();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;this.update();var self=this;function t(gotoEnd){return self.step(gotoEnd);}t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timerId==null){jQuery.timerId=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++)if(!timers[i]())timers.splice(i--,1);if(!timers.length){clearInterval(jQuery.timerId);jQuery.timerId=null;}},13);}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height")this.elem.style[this.prop]="1px";jQuery(this.elem).show();},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0);},step:function(gotoEnd){var t=now();if(gotoEnd||t>this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim)if(this.options.curAnim[i]!==true)done=false;if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none")this.elem.style.display="block";}if(this.options.hide)this.elem.style.display="none";if(this.options.hide||this.options.show)for(var p in this.options.curAnim)jQuery.attr(this.elem.style,p,this.options.orig[p]);}if(done)this.options.complete.call(this.elem);return false;}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update();}return true;}};jQuery.extend(jQuery.fx,{speeds:{slow:600,fast:200,def:400},step:{scrollLeft:function(fx){fx.elem.scrollLeft=fx.now;},scrollTop:function(fx){fx.elem.scrollTop=fx.now;},opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now);},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit;}}});jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem)with(jQuery.browser){var parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522&&!/adobeair/i.test(userAgent),css=jQuery.curCSS,fixed=css(elem,"position")=="fixed";if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop);}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&&!safari2)border(offsetParent);if(!fixed&&css(offsetParent,"position")=="fixed")fixed=true;offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent;offsetParent=offsetParent.offsetParent;}while(parent&&parent.tagName&&!/^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(css(parent,"display")))add(-parent.scrollLeft,-parent.scrollTop);if(mozilla&&css(parent,"overflow")!="visible")border(parent);parent=parent.parentNode;}if((safari2&&(fixed||css(offsetChild,"position")=="absolute"))||(mozilla&&css(offsetChild,"position")!="absolute"))add(-doc.body.offsetLeft,-doc.body.offsetTop);if(fixed)add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));}results={top:top,left:left};}function border(elem){add(jQuery.curCSS(elem,"borderLeftWidth",true),jQuery.curCSS(elem,"borderTopWidth",true));}function add(l,t){left+=parseInt(l,10)||0;top+=parseInt(t,10)||0;}return results;};jQuery.fn.extend({position:function(){var left=0,top=0,results;if(this[0]){var offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].tagName)?{top:0,left:0}:offsetParent.offset();offset.top-=num(this,'marginTop');offset.left-=num(this,'marginLeft');parentOffset.top+=num(offsetParent,'borderTopWidth');parentOffset.left+=num(offsetParent,'borderLeftWidth');results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left};}return results;},offsetParent:function(){var offsetParent=this[0].offsetParent;while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&jQuery.css(offsetParent,'position')=='static'))offsetParent=offsetParent.offsetParent;return jQuery(offsetParent);}});jQuery.each(['Left','Top'],function(i,name){var method='scroll'+name;jQuery.fn[method]=function(val){if(!this[0])return;return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(!i?val:jQuery(window).scrollLeft(),i?val:jQuery(window).scrollTop()):this[method]=val;}):this[0]==window||this[0]==document?self[i?'pageYOffset':'pageXOffset']||jQuery.boxModel&&document.documentElement[method]||document.body[method]:this[0][method];};});jQuery.each(["Height","Width"],function(i,name){var tl=i?"Left":"Top",br=i?"Right":"Bottom";jQuery.fn["inner"+name]=function(){return this[name.toLowerCase()]()+num(this,"padding"+tl)+num(this,"padding"+br);};jQuery.fn["outer"+name]=function(margin){return this["inner"+name]()+num(this,"border"+tl+"Width")+num(this,"border"+br+"Width")+(margin?num(this,"margin"+tl)+num(this,"margin"+br):0);};});})();;
;
/*----------------------------------------------------------------------------
++ EXTERNaL SOURCE: ui.js
++ Jquery User Interface Plugin
----------------------------------------------------------------------------*/
;(function($){$.ui={plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]]);}},call:function(instance,name,args){var set=instance.plugins[name];if(!set){return;}
for(var i=0;i<set.length;i++){if(instance.options[set[i][0]]){set[i][1].apply(instance.element,args);}}}},cssCache:{},css:function(name){if($.ui.cssCache[name]){return $.ui.cssCache[name];}
var tmp=$('<div class="ui-gen">').addClass(name).css({position:'absolute',top:'-5000px',left:'-5000px',display:'block'}).appendTo('body');$.ui.cssCache[name]=!!((!(/auto|default/).test(tmp.css('cursor'))||(/^[1-9]/).test(tmp.css('height'))||(/^[1-9]/).test(tmp.css('width'))||!(/none/).test(tmp.css('backgroundImage'))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(tmp.css('backgroundColor'))));try{$('body').get(0).removeChild(tmp.get(0));}catch(e){}
return $.ui.cssCache[name];},disableSelection:function(el){$(el).attr('unselectable','on').css('MozUserSelect','none');},enableSelection:function(el){$(el).attr('unselectable','off').css('MozUserSelect','');},hasScroll:function(e,a){var scroll=/top/.test(a||"top")?'scrollTop':'scrollLeft',has=false;if(e[scroll]>0)return true;e[scroll]=1;has=e[scroll]>0?true:false;e[scroll]=0;return has;}};var _remove=$.fn.remove;$.fn.remove=function(){$("*",this).add(this).triggerHandler("remove");return _remove.apply(this,arguments);};function getter(namespace,plugin,method){var methods=$[namespace][plugin].getter||[];methods=(typeof methods=="string"?methods.split(/,?\s+/):methods);return($.inArray(method,methods)!=-1);}
$.widget=function(name,prototype){var namespace=name.split(".")[0];name=name.split(".")[1];$.fn[name]=function(options){var isMethodCall=(typeof options=='string'),args=Array.prototype.slice.call(arguments,1);if(isMethodCall&&getter(namespace,name,options)){var instance=$.data(this[0],name);return(instance?instance[options].apply(instance,args):undefined);}
return this.each(function(){var instance=$.data(this,name);if(isMethodCall&&instance&&$.isFunction(instance[options])){instance[options].apply(instance,args);}else if(!isMethodCall){$.data(this,name,new $[namespace][name](this,options));}});};$[namespace][name]=function(element,options){var self=this;this.widgetName=name;this.widgetBaseClass=namespace+'-'+name;this.options=$.extend({},$.widget.defaults,$[namespace][name].defaults,options);this.element=$(element).bind('setData.'+name,function(e,key,value){return self.setData(key,value);}).bind('getData.'+name,function(e,key){return self.getData(key);}).bind('remove',function(){return self.destroy();});this.init();};$[namespace][name].prototype=$.extend({},$.widget.prototype,prototype);};$.widget.prototype={init:function(){},destroy:function(){this.element.removeData(this.widgetName);},getData:function(key){return this.options[key];},setData:function(key,value){this.options[key]=value;if(key=='disabled'){this.element[value?'addClass':'removeClass'](this.widgetBaseClass+'-disabled');}},enable:function(){this.setData('disabled',false);},disable:function(){this.setData('disabled',true);}};$.widget.defaults={disabled:false};$.ui.mouse={mouseInit:function(){var self=this;this.element.bind('mousedown.'+this.widgetName,function(e){return self.mouseDown(e);});if($.browser.msie){this._mouseUnselectable=this.element.attr('unselectable');this.element.attr('unselectable','on');}
this.started=false;},mouseDestroy:function(){this.element.unbind('.'+this.widgetName);($.browser.msie&&this.element.attr('unselectable',this._mouseUnselectable));},mouseDown:function(e){(this._mouseStarted&&this.mouseUp(e));this._mouseDownEvent=e;var self=this,btnIsLeft=(e.which==1),elIsCancel=(typeof this.options.cancel=="string"?$(e.target).parents().add(e.target).filter(this.options.cancel).length:false);if(!btnIsLeft||elIsCancel||!this.mouseCapture(e)){return true;}
this._mouseDelayMet=!this.options.delay;if(!this._mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){self._mouseDelayMet=true;},this.options.delay);}
if(this.mouseDistanceMet(e)&&this.mouseDelayMet(e)){this._mouseStarted=(this.mouseStart(e)!==false);if(!this._mouseStarted){e.preventDefault();return true;}}
this._mouseMoveDelegate=function(e){return self.mouseMove(e);};this._mouseUpDelegate=function(e){return self.mouseUp(e);};$(document).bind('mousemove.'+this.widgetName,this._mouseMoveDelegate).bind('mouseup.'+this.widgetName,this._mouseUpDelegate);return false;},mouseMove:function(e){if($.browser.msie&&!e.button){return this.mouseUp(e);}
if(this._mouseStarted){this.mouseDrag(e);return false;}
if(this.mouseDistanceMet(e)&&this.mouseDelayMet(e)){this._mouseStarted=(this.mouseStart(this._mouseDownEvent,e)!==false);(this._mouseStarted?this.mouseDrag(e):this.mouseUp(e));}
return!this._mouseStarted;},mouseUp:function(e){$(document).unbind('mousemove.'+this.widgetName,this._mouseMoveDelegate).unbind('mouseup.'+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this.mouseStop(e);}
return false;},mouseDistanceMet:function(e){return(Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance);},mouseDelayMet:function(e){return this._mouseDelayMet;},mouseStart:function(e){},mouseDrag:function(e){},mouseStop:function(e){},mouseCapture:function(e){return true;}};$.ui.mouse.defaults={cancel:null,distance:1,delay:0};})(jQuery);(function($){$.widget("ui.tabs",{init:function(){this.options.event+='.tabs';this.tabify(true);},setData:function(key,value){if((/^selected/).test(key))
this.select(value);else{this.options[key]=value;this.tabify();}},length:function(){return this.$tabs.length;},tabId:function(a){return a.title&&a.title.replace(/\s/g,'_').replace(/[^A-Za-z0-9\-_:\.]/g,'')||this.options.idPrefix+$.data(a);},ui:function(tab,panel){return{options:this.options,tab:tab,panel:panel,index:this.$tabs.index(tab)};},tabify:function(init){this.$lis=$('li:has(a[href])',this.element);this.$tabs=this.$lis.map(function(){return $('a',this)[0];});this.$panels=$([]);var self=this,o=this.options;this.$tabs.each(function(i,a){if(a.hash&&a.hash.replace('#',''))
self.$panels=self.$panels.add(a.hash);else if($(a).attr('href')!='#'){$.data(a,'href.tabs',a.href);$.data(a,'load.tabs',a.href);var id=self.tabId(a);a.href='#'+id;var $panel=$('#'+id);if(!$panel.length){$panel=$(o.panelTemplate).attr('id',id).addClass(o.panelClass).insertAfter(self.$panels[i-1]||self.element);$panel.data('destroy.tabs',true);}
self.$panels=self.$panels.add($panel);}
else
o.disabled.push(i+1);});if(init){this.element.addClass(o.navClass);this.$panels.each(function(){var $this=$(this);$this.addClass(o.panelClass);});if(o.selected===undefined){if(location.hash){this.$tabs.each(function(i,a){if(a.hash==location.hash){o.selected=i;if($.browser.msie||$.browser.opera){var $toShow=$(location.hash),toShowId=$toShow.attr('id');$toShow.attr('id','');setTimeout(function(){$toShow.attr('id',toShowId);},500);}
scrollTo(0,0);return false;}});}
else if(o.cookie){var index=parseInt($.cookie('ui-tabs'+$.data(self.element)),10);if(index&&self.$tabs[index])
o.selected=index;}
else if(self.$lis.filter('.'+o.selectedClass).length)
o.selected=self.$lis.index(self.$lis.filter('.'+o.selectedClass)[0]);}
o.selected=o.selected===null||o.selected!==undefined?o.selected:0;o.disabled=$.unique(o.disabled.concat($.map(this.$lis.filter('.'+o.disabledClass),function(n,i){return self.$lis.index(n);}))).sort();if($.inArray(o.selected,o.disabled)!=-1)
o.disabled.splice($.inArray(o.selected,o.disabled),1);this.$panels.addClass(o.hideClass);this.$lis.removeClass(o.selectedClass);if(o.selected!==null){this.$panels.eq(o.selected).show().removeClass(o.hideClass);this.$lis.eq(o.selected).addClass(o.selectedClass);var onShow=function(){$(self.element).triggerHandler('tabsshow',[self.fakeEvent('tabsshow'),self.ui(self.$tabs[o.selected],self.$panels[o.selected])],o.show);};if($.data(this.$tabs[o.selected],'load.tabs'))
this.load(o.selected,onShow);else
onShow();}
$(window).bind('unload',function(){self.$tabs.unbind('.tabs');self.$lis=self.$tabs=self.$panels=null;});}
for(var i=0,li;li=this.$lis[i];i++)
$(li)[$.inArray(i,o.disabled)!=-1&&!$(li).hasClass(o.selectedClass)?'addClass':'removeClass'](o.disabledClass);if(o.cache===false)
this.$tabs.removeData('cache.tabs');var hideFx,showFx,baseFx={'min-width':0,duration:1},baseDuration='normal';if(o.fx&&o.fx.constructor==Array)
hideFx=o.fx[0]||baseFx,showFx=o.fx[1]||baseFx;else
hideFx=showFx=o.fx||baseFx;var resetCSS={display:'',overflow:'',height:''};if(!$.browser.msie)
resetCSS.opacity='';function hideTab(clicked,$hide,$show){$hide.animate(hideFx,hideFx.duration||baseDuration,function(){$hide.addClass(o.hideClass).css(resetCSS);if($.browser.msie&&hideFx.opacity)
$hide[0].style.filter='';if($show)
showTab(clicked,$show,$hide);});}
function showTab(clicked,$show,$hide){if(showFx===baseFx)
$show.css('display','block');$show.animate(showFx,showFx.duration||baseDuration,function(){$show.removeClass(o.hideClass).css(resetCSS);if($.browser.msie&&showFx.opacity)
$show[0].style.filter='';$(self.element).triggerHandler('tabsshow',[self.fakeEvent('tabsshow'),self.ui(clicked,$show[0])],o.show);});}
function switchTab(clicked,$li,$hide,$show){$li.addClass(o.selectedClass).siblings().removeClass(o.selectedClass);hideTab(clicked,$hide,$show);}
this.$tabs.unbind('.tabs').bind(o.event,function(){var $li=$(this).parents('li:eq(0)'),$hide=self.$panels.filter(':visible'),$show=$(this.hash);if(($li.hasClass(o.selectedClass)&&!o.unselect)||$li.hasClass(o.disabledClass)||$(this).hasClass(o.loadingClass)||$(self.element).triggerHandler('tabsselect',[self.fakeEvent('tabsselect'),self.ui(this,$show[0])],o.select)===false){this.blur();return false;}
self.options.selected=self.$tabs.index(this);if(o.unselect){if($li.hasClass(o.selectedClass)){self.options.selected=null;$li.removeClass(o.selectedClass);self.$panels.stop();hideTab(this,$hide);this.blur();return false;}else if(!$hide.length){self.$panels.stop();var a=this;self.load(self.$tabs.index(this),function(){$li.addClass(o.selectedClass).addClass(o.unselectClass);showTab(a,$show);});this.blur();return false;}}
if(o.cookie)
$.cookie('ui-tabs'+$.data(self.element),self.options.selected,o.cookie);self.$panels.stop();if($show.length){var a=this;self.load(self.$tabs.index(this),$hide.length?function(){switchTab(a,$li,$hide,$show);}:function(){$li.addClass(o.selectedClass);showTab(a,$show);});}else
throw'jQuery UI Tabs: Mismatching fragment identifier.';if($.browser.msie)
this.blur();return false;});if(!(/^click/).test(o.event))
this.$tabs.bind('click.tabs',function(){return false;});},add:function(url,label,index){if(index==undefined)
index=this.$tabs.length;var o=this.options;var $li=$(o.tabTemplate.replace(/#\{href\}/g,url).replace(/#\{label\}/g,label));$li.data('destroy.tabs',true);var id=url.indexOf('#')==0?url.replace('#',''):this.tabId($('a:first-child',$li)[0]);var $panel=$('#'+id);if(!$panel.length){$panel=$(o.panelTemplate).attr('id',id).addClass(o.hideClass).data('destroy.tabs',true);}
$panel.addClass(o.panelClass);if(index>=this.$lis.length){$li.appendTo(this.element);$panel.appendTo(this.element[0].parentNode);}else{$li.insertBefore(this.$lis[index]);$panel.insertBefore(this.$panels[index]);}
o.disabled=$.map(o.disabled,function(n,i){return n>=index?++n:n});this.tabify();if(this.$tabs.length==1){$li.addClass(o.selectedClass);$panel.removeClass(o.hideClass);var href=$.data(this.$tabs[0],'load.tabs');if(href)
this.load(index,href);}
this.element.triggerHandler('tabsadd',[this.fakeEvent('tabsadd'),this.ui(this.$tabs[index],this.$panels[index])],o.add);},remove:function(index){var o=this.options,$li=this.$lis.eq(index).remove(),$panel=this.$panels.eq(index).remove();if($li.hasClass(o.selectedClass)&&this.$tabs.length>1)
this.select(index+(index+1<this.$tabs.length?1:-1));o.disabled=$.map($.grep(o.disabled,function(n,i){return n!=index;}),function(n,i){return n>=index?--n:n});this.tabify();this.element.triggerHandler('tabsremove',[this.fakeEvent('tabsremove'),this.ui($li.find('a')[0],$panel[0])],o.remove);},enable:function(index){var o=this.options;if($.inArray(index,o.disabled)==-1)
return;var $li=this.$lis.eq(index).removeClass(o.disabledClass);if($.browser.safari){$li.css('display','inline-block');setTimeout(function(){$li.css('display','block');},0);}
o.disabled=$.grep(o.disabled,function(n,i){return n!=index;});this.element.triggerHandler('tabsenable',[this.fakeEvent('tabsenable'),this.ui(this.$tabs[index],this.$panels[index])],o.enable);},disable:function(index){var self=this,o=this.options;if(index!=o.selected){this.$lis.eq(index).addClass(o.disabledClass);o.disabled.push(index);o.disabled.sort();this.element.triggerHandler('tabsdisable',[this.fakeEvent('tabsdisable'),this.ui(this.$tabs[index],this.$panels[index])],o.disable);}},select:function(index){if(typeof index=='string')
index=this.$tabs.index(this.$tabs.filter('[href$='+index+']')[0]);this.$tabs.eq(index).trigger(this.options.event);},load:function(index,callback){var self=this,o=this.options,$a=this.$tabs.eq(index),a=$a[0],bypassCache=callback==undefined||callback===false,url=$a.data('load.tabs');callback=callback||function(){};if(!url||!bypassCache&&$.data(a,'cache.tabs')){callback();return;}
var inner=function(parent){var $parent=$(parent),$inner=$parent.find('*:last');return $inner.length&&$inner.is(':not(img)')&&$inner||$parent;};var cleanup=function(){self.$tabs.filter('.'+o.loadingClass).removeClass(o.loadingClass).each(function(){if(o.spinner)
inner(this).parent().html(inner(this).data('label.tabs'));});self.xhr=null;};if(o.spinner){var label=inner(a).html();inner(a).wrapInner('<em></em>').find('em').data('label.tabs',label).html(o.spinner);}
var ajaxOptions=$.extend({},o.ajaxOptions,{url:url,success:function(r,s){$(a.hash).html(r);cleanup();if(o.cache)
$.data(a,'cache.tabs',true);$(self.element).triggerHandler('tabsload',[self.fakeEvent('tabsload'),self.ui(self.$tabs[index],self.$panels[index])],o.load);o.ajaxOptions.success&&o.ajaxOptions.success(r,s);callback();}});if(this.xhr){this.xhr.abort();cleanup();}
$a.addClass(o.loadingClass);setTimeout(function(){self.xhr=$.ajax(ajaxOptions);},0);},url:function(index,url){this.$tabs.eq(index).removeData('cache.tabs').data('load.tabs',url);},destroy:function(){var o=this.options;this.element.unbind('.tabs').removeClass(o.navClass).removeData('tabs');this.$tabs.each(function(){var href=$.data(this,'href.tabs');if(href)
this.href=href;var $this=$(this).unbind('.tabs');$.each(['href','load','cache'],function(i,prefix){$this.removeData(prefix+'.tabs');});});this.$lis.add(this.$panels).each(function(){if($.data(this,'destroy.tabs'))
$(this).remove();else
$(this).removeClass([o.selectedClass,o.unselectClass,o.disabledClass,o.panelClass,o.hideClass].join(' '));});},fakeEvent:function(type){return $.event.fix({type:type,target:this.element[0]});}});$.ui.tabs.defaults={unselect:false,event:'click',disabled:[],cookie:null,spinner:'Loading&#8230;',cache:false,idPrefix:'ui-tabs-',ajaxOptions:{},fx:null,tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>',panelTemplate:'<div></div>',navClass:'ui-tabs-nav',selectedClass:'ui-tabs-selected',unselectClass:'ui-tabs-unselect',disabledClass:'ui-tabs-disabled',panelClass:'ui-tabs-panel',hideClass:'ui-tabs-hide',loadingClass:'ui-tabs-loading'};$.ui.tabs.getter="length";$.extend($.ui.tabs.prototype,{rotation:null,rotate:function(ms,continuing){continuing=continuing||false;var self=this,t=this.options.selected;function start(){self.rotation=setInterval(function(){t=++t<self.$tabs.length?t:0;self.select(t);},ms);}
function stop(e){if(!e||e.clientX){clearInterval(self.rotation);}}
if(ms){start();if(!continuing)
this.$tabs.bind(this.options.event,stop);else
this.$tabs.bind(this.options.event,function(){stop();t=self.options.selected;start();});}
else{stop();this.$tabs.unbind(this.options.event,stop);}}});})(jQuery);;
;
/*
 * jQuery Color Animations
 * Copyright 2007 John Resig
 * Released under the MIT and GPL licenses.
 */

(function(jQuery){

	// We override the animation for all of these color styles
	jQuery.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outlineColor'], function(i,attr){
		jQuery.fx.step[attr] = function(fx){
			if ( fx.state == 0 ) {
				fx.start = getColor( fx.elem, attr );
				fx.end = getRGB( fx.end );
			}

			fx.elem.style[attr] = "rgb(" + [
				Math.max(Math.min( parseInt((fx.pos * (fx.end[0] - fx.start[0])) + fx.start[0]), 255), 0),
				Math.max(Math.min( parseInt((fx.pos * (fx.end[1] - fx.start[1])) + fx.start[1]), 255), 0),
				Math.max(Math.min( parseInt((fx.pos * (fx.end[2] - fx.start[2])) + fx.start[2]), 255), 0)
			].join(",") + ")";
		}
	});

	// Color Conversion functions from highlightFade
	// By Blair Mitchelmore
	// http://jquery.offput.ca/highlightFade/

	// Parse strings looking for color tuples [255,255,255]
	function getRGB(color) {
		var result;

		// Check if we're already dealing with an array of colors
		if ( color && color.constructor == Array && color.length == 3 )
			return color;

		// Look for rgb(num,num,num)
		if (result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color))
			return [parseInt(result[1]), parseInt(result[2]), parseInt(result[3])];

		// Look for rgb(num%,num%,num%)
		if (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color))
			return [parseFloat(result[1])*2.55, parseFloat(result[2])*2.55, parseFloat(result[3])*2.55];

		// Look for #a0b1c2
		if (result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color))
			return [parseInt(result[1],16), parseInt(result[2],16), parseInt(result[3],16)];

		// Look for #fff
		if (result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color))
			return [parseInt(result[1]+result[1],16), parseInt(result[2]+result[2],16), parseInt(result[3]+result[3],16)];

		// Otherwise, we're most likely dealing with a named color
		return colors[jQuery.trim(color).toLowerCase()];
	}
	
	function getColor(elem, attr) {
		var color;

		do {
			color = jQuery.curCSS(elem, attr);

			// Keep going until we find an element that has color, or we hit the body
			if ( color != '' && color != 'transparent' || jQuery.nodeName(elem, "body") )
				break; 

			attr = "backgroundColor";
		} while ( elem = elem.parentNode );

		return getRGB(color);
	};
	
	// Some named colors to work with
	// From Interface by Stefan Petre
	// http://interface.eyecon.ro/

	var colors = {
		aqua:[0,255,255],
		azure:[240,255,255],
		beige:[245,245,220],
		black:[0,0,0],
		blue:[0,0,255],
		brown:[165,42,42],
		cyan:[0,255,255],
		darkblue:[0,0,139],
		darkcyan:[0,139,139],
		darkgrey:[169,169,169],
		darkgreen:[0,100,0],
		darkkhaki:[189,183,107],
		darkmagenta:[139,0,139],
		darkolivegreen:[85,107,47],
		darkorange:[255,140,0],
		darkorchid:[153,50,204],
		darkred:[139,0,0],
		darksalmon:[233,150,122],
		darkviolet:[148,0,211],
		fuchsia:[255,0,255],
		gold:[255,215,0],
		green:[0,128,0],
		indigo:[75,0,130],
		khaki:[240,230,140],
		lightblue:[173,216,230],
		lightcyan:[224,255,255],
		lightgreen:[144,238,144],
		lightgrey:[211,211,211],
		lightpink:[255,182,193],
		lightyellow:[255,255,224],
		lime:[0,255,0],
		magenta:[255,0,255],
		maroon:[128,0,0],
		navy:[0,0,128],
		olive:[128,128,0],
		orange:[255,165,0],
		pink:[255,192,203],
		purple:[128,0,128],
		violet:[128,0,128],
		red:[255,0,0],
		silver:[192,192,192],
		white:[255,255,255],
		yellow:[255,255,0]
	};
	
})(jQuery);
;
;

/*
 * Superfish v1.4.8 - jQuery menu widget
 * Copyright (c) 2008 Joel Birch
 *
 * Dual licensed under the MIT and GPL licenses:
 * 	http://www.opensource.org/licenses/mit-license.php
 * 	http://www.gnu.org/licenses/gpl.html
 *
 * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt
 */

;(function($){
	$.fn.superfish = function(op){

		var sf = $.fn.superfish,
			c = sf.c,
			$arrow = $(['<span class="',c.arrowClass,'"> &#187;</span>'].join('')),
			over = function(){
				var $$ = $(this), menu = getMenu($$);
				clearTimeout(menu.sfTimer);
				$$.showSuperfishUl().siblings().hideSuperfishUl();
			},
			out = function(){
				var $$ = $(this), menu = getMenu($$), o = sf.op;
				clearTimeout(menu.sfTimer);
				menu.sfTimer=setTimeout(function(){
					o.retainPath=($.inArray($$[0],o.$path)>-1);
					$$.hideSuperfishUl();
					if (o.$path.length && $$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);}
				},o.delay);	
			},
			getMenu = function($menu){
				var menu = $menu.parents(['ul.',c.menuClass,':first'].join(''))[0];
				sf.op = sf.o[menu.serial];
				return menu;
			},
			addArrow = function($a){ $a.addClass(c.anchorClass).append($arrow.clone()); };
			
		return this.each(function() {
			var s = this.serial = sf.o.length;
			var o = $.extend({},sf.defaults,op);
			o.$path = $('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){
				$(this).addClass([o.hoverClass,c.bcClass].join(' '))
					.filter('li:has(ul)').removeClass(o.pathClass);
			});
			sf.o[s] = sf.op = o;
			
			$('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ? 'hoverIntent' : 'hover'](over,out).each(function() {
				if (o.autoArrows) addArrow( $('>a:first-child',this) );
			})
			.not('.'+c.bcClass)
				.hideSuperfishUl();
			
			var $a = $('a',this);
			$a.each(function(i){
				var $li = $a.eq(i).parents('li');
				$a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);});
			});
			o.onInit.call(this);
			
		}).each(function() {
			var menuClasses = [c.menuClass];
			if (sf.op.dropShadows  && !($.browser.msie && $.browser.version < 7)) menuClasses.push(c.shadowClass);
			$(this).addClass(menuClasses.join(' '));
		});
	};

	var sf = $.fn.superfish;
	sf.o = [];
	sf.op = {};
	sf.IE7fix = function(){
		var o = sf.op;
		if ($.browser.msie && $.browser.version > 6 && o.dropShadows && o.animation.opacity!=undefined)
			this.toggleClass(sf.c.shadowClass+'-off');
		};
	sf.c = {
		bcClass     : 'sf-breadcrumb',
		menuClass   : 'sf-js-enabled',
		anchorClass : 'sf-with-ul',
		arrowClass  : 'sf-sub-indicator',
		shadowClass : 'sf-shadow'
	};
	sf.defaults = {
		hoverClass	: 'sfHover',
		pathClass	: 'overideThisToUse',
		pathLevels	: 1,
		delay		: 800,
		animation	: {opacity:'show'},
		speed		: 'normal',
		autoArrows	: true,
		dropShadows : true,
		disableHI	: false,		// true disables hoverIntent detection
		onInit		: function(){}, // callback functions
		onBeforeShow: function(){},
		onShow		: function(){},
		onHide		: function(){}
	};
	$.fn.extend({
		hideSuperfishUl : function(){
			var o = sf.op,
				not = (o.retainPath===true) ? o.$path : '';
			o.retainPath = false;
			var $ul = $(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass)
					.find('>ul').hide().css('visibility','hidden');
			o.onHide.call($ul);
			return this;
		},
		showSuperfishUl : function(){
			var o = sf.op,
				sh = sf.c.shadowClass+'-off',
				$ul = this.addClass(o.hoverClass)
					.find('>ul:hidden').css('visibility','visible');
			sf.IE7fix.call($ul);
			o.onBeforeShow.call($ul);
			$ul.animate(o.animation,o.speed,function(){ sf.IE7fix.call($ul); o.onShow.call($ul); });
			return this;
		}
	});

})(jQuery);
;
;

/*
 * Supersubs v0.2b - jQuery plugin
 * Copyright (c) 2008 Joel Birch
 *
 * Dual licensed under the MIT and GPL licenses:
 * 	http://www.opensource.org/licenses/mit-license.php
 * 	http://www.gnu.org/licenses/gpl.html
 *
 *
 * This plugin automatically adjusts submenu widths of suckerfish-style menus to that of
 * their longest list item children. If you use this, please expect bugs and report them
 * to the jQuery Google Group with the word 'Superfish' in the subject line.
 *
 */

;(function($){ // $ will refer to jQuery within this closure

	$.fn.supersubs = function(options){
		var opts = $.extend({}, $.fn.supersubs.defaults, options);
		// return original object to support chaining
		return this.each(function() {
			// cache selections
			var $$ = $(this);
			// support metadata
			var o = $.meta ? $.extend({}, opts, $$.data()) : opts;
			// get the font size of menu.
			// .css('fontSize') returns various results cross-browser, so measure an em dash instead
			var fontsize = $('<li id="menu-fontsize">&#8212;</li>').css({
				'padding' : 0,
				'position' : 'absolute',
				'top' : '-999em',
				'width' : 'auto'
			}).appendTo($$).width(); //clientWidth is faster, but was incorrect here
			// remove em dash
			$('#menu-fontsize').remove();
			// cache all ul elements
			$ULs = $$.find('ul');
			// loop through each ul in menu
			$ULs.each(function(i) {	
				// cache this ul
				var $ul = $ULs.eq(i);
				// get all (li) children of this ul
				var $LIs = $ul.children();
				// get all anchor grand-children
				var $As = $LIs.children('a');
				// force content to one line and save current float property
				var liFloat = $LIs.css('white-space','nowrap').css('float');
				// remove width restrictions and floats so elements remain vertically stacked
				var emWidth = $ul.add($LIs).add($As).css({
					'float' : 'none',
					'width'	: 'auto'
				})
				// this ul will now be shrink-wrapped to longest li due to position:absolute
				// so save its width as ems. Clientwidth is 2 times faster than .width() - thanks Dan Switzer
				.end().end()[0].clientWidth / fontsize;
				// add more width to ensure lines don't turn over at certain sizes in various browsers
				emWidth += o.extraWidth;
				// restrict to at least minWidth and at most maxWidth
				if (emWidth > o.maxWidth)		{ emWidth = o.maxWidth; }
				else if (emWidth < o.minWidth)	{ emWidth = o.minWidth; }
				emWidth += 'em';
				// set ul to width in ems
				$ul.css('width',emWidth);
				// restore li floats to avoid IE bugs
				// set li width to full width of this ul
				// revert white-space to normal
				$LIs.css({
					'float' : liFloat,
					'width' : '100%',
					'white-space' : 'normal'
				})
				// update offset position of descendant ul to reflect new width of parent
				.each(function(){
					var $childUl = $('>ul',this);
					var offsetDirection = $childUl.css('left')!==undefined ? 'left' : 'right';
					$childUl.css(offsetDirection,emWidth);
				});
			});
			
		});
	};
	// expose defaults
	$.fn.supersubs.defaults = {
		minWidth		: 9,		// requires em unit.
		maxWidth		: 25,		// requires em unit.
		extraWidth		: 0			// extra width can ensure lines don't sometimes turn over due to slight browser differences in how they round-off values
	};
	
})(jQuery); // plugin code ends
;
;
(function($){
	/* hoverIntent by Brian Cherne */
	$.fn.hoverIntent = function(f,g) {
		// default configuration options
		var cfg = {
			sensitivity: 7,
			interval: 100,
			timeout: 0
		};
		// override configuration options with user supplied object
		cfg = $.extend(cfg, g ? { over: f, out: g } : f );

		// instantiate variables
		// cX, cY = current X and Y position of mouse, updated by mousemove event
		// pX, pY = previous X and Y position of mouse, set by mouseover and polling interval
		var cX, cY, pX, pY;

		// A private function for getting mouse position
		var track = function(ev) {
			cX = ev.pageX;
			cY = ev.pageY;
		};

		// A private function for comparing current and previous mouse position
		var compare = function(ev,ob) {
			ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
			// compare mouse positions to see if they've crossed the threshold
			if ( ( Math.abs(pX-cX) + Math.abs(pY-cY) ) < cfg.sensitivity ) {
				$(ob).unbind("mousemove",track);
				// set hoverIntent state to true (so mouseOut can be called)
				ob.hoverIntent_s = 1;
				return cfg.over.apply(ob,[ev]);
			} else {
				// set previous coordinates for next time
				pX = cX; pY = cY;
				// use self-calling timeout, guarantees intervals are spaced out properly (avoids JavaScript timer bugs)
				ob.hoverIntent_t = setTimeout( function(){compare(ev, ob);} , cfg.interval );
			}
		};

		// A private function for delaying the mouseOut function
		var delay = function(ev,ob) {
			ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
			ob.hoverIntent_s = 0;
			return cfg.out.apply(ob,[ev]);
		};

		// A private function for handling mouse 'hovering'
		var handleHover = function(e) {
			// next three lines copied from jQuery.hover, ignore children onMouseOver/onMouseOut
			var p = (e.type == "mouseover" ? e.fromElement : e.toElement) || e.relatedTarget;
			while ( p && p != this ) { try { p = p.parentNode; } catch(e) { p = this; } }
			if ( p == this ) { return false; }

			// copy objects to be passed into t (required for event object to be passed in IE)
			var ev = jQuery.extend({},e);
			var ob = this;

			// cancel hoverIntent timer if it exists
			if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); }

			// else e.type == "onmouseover"
			if (e.type == "mouseover") {
				// set "previous" X and Y position based on initial entry point
				pX = ev.pageX; pY = ev.pageY;
				// update "current" X and Y position based on mousemove
				$(ob).bind("mousemove",track);
				// start polling interval (self-calling timeout) to compare mouse coordinates over time
				if (ob.hoverIntent_s != 1) { ob.hoverIntent_t = setTimeout( function(){compare(ev,ob);} , cfg.interval );}

			// else e.type == "onmouseout"
			} else {
				// unbind expensive mousemove event
				$(ob).unbind("mousemove",track);
				// if hoverIntent state is true, then call the mouseOut function after the specified delay
				if (ob.hoverIntent_s == 1) { ob.hoverIntent_t = setTimeout( function(){delay(ev,ob);} , cfg.timeout );}
			}
		};

		// bind the function to the two event listeners
		return this.mouseover(handleHover).mouseout(handleHover);
	};
	
})(jQuery);;
var $jQuery = jQuery.noConflict();
	jQuery(document).ready(function(){

		$jQuery("#nav ul#mainlevel-nav").addClass("menu");
	$jQuery("#nav .menu").addClass("sf-navbar");
	$jQuery("#nav .menu").addClass("sf-menu");
	$jQuery("#nav li.active").addClass("current");
	$jQuery("#nav li.active").removeClass("active");
	$jQuery("#nav ul.sf-menu").superfish({
		pathClass:   'current',
		speed:       'normal',
		delay:       3000,
        animation:   {opacity:'show'},  // fade-in with NO slide-down animation
        animation:   {opacity:'show', height:'show'}
	});

	$jQuery("#nav ul.menu>li").hover (function() {
    	$jQuery(this).addClass('tab-hover');
    }, function () {
        $jQuery(this).removeClass('tab-hover');
    });
	
	//this removes the last article separators in content columns
    $jQuery(".article_column span:last-child").removeClass("article_separator");
    $jQuery(".featured .article_separator:last-child").css({ display: 'none' });
           
			// ------ Sidebar animation --------- //
	$jQuery('.jjmod-content ul.menu li:not(.active) a,.jjmod-content ul.menu li:not(.active)>span').hover(function() { //mouse in  
		$jQuery(this)
			.animate({backgroundColor: "#1B4C5C"}, "fast")
			.animate({ backgroundColor: "#253034" }, "slow");
		}, function() { //mouse out 
		$jQuery(this).animate({ backgroundColor: "#1B262A" }, "normal");  
	});  

		// ------ Accordion menu  --------- //
	$jQuery(".jjmod-content ul.menu li ul").hide();
	$jQuery(".jjmod-content ul.menu li span").click(function(){
		$jQuery(this).next(".jjmod-content ul").slideToggle("slow").siblings("li:visible").slideUp("slow");
		$jQuery(this).toggleClass("active");
		$jQuery(this).siblings("li").removeClass("active");
	},
	function () {
		// empty function for IE6 bug
	});
	
});;
function createCookie(name,value,days) {
	  if (days) {
	    var date = new Date();
	    date.setTime(date.getTime()+(days*24*60*60*1000));
	    var expires = "; expires="+date.toGMTString();
	  }
	  else expires = "";
	  document.cookie = name+"="+value+expires+"; path=/";
	}

function changestyle(style){
    createCookie('jj_dr_font_size', style, 89600);
    }

function changecolor(style){
    createCookie('jj_dr_theme_color', style, 89600);
    }

	//--------------------------------------------------
	//code for menu switcher - available in demo only!
	//--------------------------------------------------
	jQuery(document).ready(function(){
	jQuery("#nav li.item54").click (function () {
	    days = 89600;
	    value = 'superfish';
	    name = 'jj_dr_menu_type';
		  if (days) {
		    var date = new Date();
		    date.setTime(date.getTime()+(days*24*60*60*1000));
		    var expires = "; expires="+date.toGMTString();
		  }
		  else expires = "";
		  document.cookie = name+"="+value+expires+"; path=/";
		window.location.reload()
	    });
	jQuery("#nav li.item57").click (function () {
	    days = 89600;
	    value = 'superdrop';
	    name = 'jj_dr_menu_type';
		  if (days) {
		    var date = new Date();
		    date.setTime(date.getTime()+(days*24*60*60*1000));
		    var expires = "; expires="+date.toGMTString();
		  }
		  else expires = "";
		  document.cookie = name+"="+value+expires+"; path=/";
		window.location.reload()
	    });
	});;
