eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(u($){$.S.1x=u(e){8(!e){e={}}G f=u(a){8(e.U){G b=$(\'.\'+e.U);b.2R(\'1O\',u(){8($.S.1d){b.1d(\'6v\').2r("1t").16()}H{b.2r("1t").16()}});8(e.3g){e.4I()}}H{G c=$(\'#2M\');G d=$(\'#1e\');c.2R(\'1O\',u(){c.2r(\'1t\').2q().16()});d.2R(\'1O\',u(){8($.S.1d){d.1d("6r").2r("1t").16()}H{d.2r("1t").16()}});$(14).2q(\'4G.1e\');$(14).2q(\'4F.1e\');8($.S.1R.1D){$(\'#3r\').16()}8(e.3g){e.4I()}}};8(e.2o){I w.13(u(a){$(w).1T(e.2o,u(){f(w);I 1w})})}H{f()}};$.1x=u(s){$.S.1x(s)};$.S.1R=u(h){G i=$.S.1R;i.4z={U:\'\',2Y:\'\',37:\'#4x\',3b:\'4\',1d:0,2o:1j,4w:1h,2l:1j,3g:1j,Q:4v,39:1,3c:28,2j:\'/5O/5J/5I/5H/2u/3x-5D.5C\',2V:28,4n:0,2Q:1,4m:\'#5v\',2L:\'65\',26:0,2g:0,29:\'2B\',L:4v,3h:\'#3k\',2b:1j,3o:\'5n\',3q:10,3w:\'3t\',1I:\'\',R:\'\',4i:\'3y\'};G j=$.1B({},$.S.1R.4z,h||{});i.2e=u(){I 2E.4g||T.1m.4f||T.N.4f};i.2J=u(){I 2E.4e||T.1m.4d||T.N.4d};i.1X=u(){I 2E.54||T.1m.2k||T.N.2k};i.1V=u(){I 2E.53||T.1m.3i||T.N.3i};i.1D=2H T.N.1c.52==="3n";G k=u(){G a=$(\'#2M\');8(i.1D){G b=T.1m.2I+T.1m.2k-4;G c=T.1m.2K-21;a.J({\'Q\':b+\'M\',\'L\':c+\'M\'})}H{a.J({\'Q\':\'1h%\',\'L\':\'1h%\',\'19\':\'2P\'})}};G l=u(){G a=T.1m.2I+T.1m.2k-4;G b=T.1m.2K-21;$(\'#3r\').J({\'Q\':a+\'M\',\'L\':b+\'M\'})};G n=u(){G a=$(\'#1e\');8(j.Q+50>i.2e()){a.J(\'W\',X.1b(i.2J()/2)+i.1V()-X.1b((a.48())/2))}H{a.J(\'W\',X.1b(i.2J()/2)+i.1V()-X.1b((a.48())/2));a.J(\'V\',X.1b(i.2e()/2)+i.1X()-X.1b((a.4T())/2))}};G o=u(){G a=$(\'#2m\');8(i.1D){a.J({\'W\':X.1b(i.2J()/2)+i.1V()-X.1b((a.4e())/2),\'19\':\'1C\'});a.J({\'V\':X.1b(i.2e()/2)+i.1X()-X.1b((a.4g())/2),\'19\':\'1C\'})}H{a.J({\'W\':\'50%\',\'V\':\'50%\',\'19\':\'2P\'})}};G p=u(){G a=$(\'#1e\');a.J(\'W\',j.26+i.1V());a.J(\'V\',+j.2g+i.1X())};G q=u(a){8(46[0]){$(\'.\'+a+\' #2m\').16();$(\'.\'+a+\' #1L\').2A(\'1O\',u(){8(j.2l){j.2l()}});$(\'.\'+a+\'.1x\').2v(u(){$.1x();I 1w})}H{$(\'#2m\').16();$(\'#1e\').2A(\'1O\',u(){8(j.2l){j.2l()}});$(\'#1e .1x\').2v(u(){$.1x();I 1w})}};G r=u(s){G b={};s.43(/b([^&=]*)=([^&=]*)b/g,u(m,a,d){8(2H b[a]!=\'3n\'){b[a]+=\',\'+d}H{b[a]=d}});I b};G t=u(a){j.1I=$(a).1N(\'3y\')||j.1I;j.R=$(a).1N(j.4i)||j.R;j.2b=j.2b?\'1u-4L:1l(\'+j.2b+\')\':\'\';G b,1G;8(j.29==\'4K\'){G c=$(j.2Y).19();G d=c.W+j.26;G e=c.V+j.2g;$(\'N\').11(\'<O 2a="\'+j.U+\'" 1c="\'+j.2b+\';1u-2w:41-2w;3Z:\'+j.3q+\'M;3Y:2O;19:1C;V:\'+e+\'M;W:\'+d+\'M;Q:\'+j.Q+\'M;L:\'+j.L+\'M;1u-27:\'+j.3h+\';2f:\'+j.3b+\'M 2S \'+j.37+\';z-2h:3X"><O 17="1L" 1c="2X:22"></O></O>\');8(j.39&&j.2j!==\'\'){$(\'.\'+j.U).11(\'<O 17="2m" 1c="L:\'+j.2V+\'M;Q:\'+j.3c+\'M;"><3W 1H="\'+j.2j+\'" /></O>\')}8($.S.1d){8(j.1d){$(\'.\'+j.U).1d({3V:\'3T\'})}}34(j.3w){1n\'3t\':$(\'.\'+j.U+" #1L").11($(j.1I).2s());$(\'.\'+j.U).1t(u(){$(\'.\'+j.1I).11($(\'.\'+j.U+" #1L").2s())});q(j.U);1a;1n\'1z\':$(\'.\'+j.U+" #1L").11(\'<1z 3S="0" 3R="0" 3Q="0" 1H="\'+j.R+\'" 3P="2y\'+X.1b(X.2z()*3d)+\'" 1c="L:1h%;Q:1h%;2f:22;1u-27:#3k;" 2a="\'+j.U+\'3O" ></1z>\');$(\'.\'+j.U+\'3O\').1W(q(j.U));1a;1n\'3x\':8(j.3o==\'3M\'){8(j.R.1U("?")!==-1){b=j.R.3L(0,j.R.1U("?"));1G=r(j.R)}H{b=j.R;1G={}}$(\'.\'+j.U+" #1L").1W(b,1G,u(){q(j.U)})}H{8(j.R.1U("?")==-1){j.R+=\'?\'}$(\'.\'+j.U+" #1L").1W(j.R+\'&2z=\'+(3K 3J().3I()),u(){q(j.U)})}1a}}H{8(j.2Q){$(\'N\').11(\'<O 17="2M" 1c="z-2h:3H;2X:22;19:1C;V:0;W:0;1u-27:\'+j.4m+\';2G:3F(1S=\'+j.2L+\');-4Z-1S: 0.\'+j.2L+\';1S: 0.\'+j.2L+\';"></O>\');8(i.1D){$(\'N\').11(\'<1z 17="3r"  1H="4V.1E"  1c="L:1h%;Q:1h%;z-2h:5T;19:1C;V:0;W:0;2G:3F(1S=0);"></1z>\');l()}k();G f=$(\'#2M\');f.2A(\'1O\');8(!j.4n){f.2v(u(){$.1x()})}}8(j.39&&j.2j!==\'\'){$(\'N\').11(\'<O 17="2m" 1c="z-2h:5S;L:\'+j.2V+\'M;Q:\'+j.3c+\'M;"><3W 1H="\'+j.2j+\'" /></O>\');o()}$(\'N\').11(\'<O 17="1e" 1c="1u-2w:41-2w;\'+j.2b+\';3Y:2O;3Z:\'+j.3q+\'M;2X:22;Q:\'+j.Q+\'M;L:\'+j.L+\'M;1u-27:\'+j.3h+\';2f:\'+j.3b+\'M 2S \'+j.37+\'; 19:1C;z-2h:3X"></O>\');G g=$(\'#1e\');34(j.29){1n\'2B\':n();8(j.Q+50>i.2e()){g.J(\'V\',(j.4w+i.1X())+\'M\')}1a;1n\'1C\':g.J({\'V\':(j.2g+i.1X())+\'M\',\'W\':(j.26+i.1V())+\'M\'});8($.S.1d){8(j.1d){g.1d({3V:\'3T\'})}}1a;1n\'2P\':p();1a;1n\'5R\':G c=$(j.2Y).19();G d=c.W+j.26;G e=c.V+j.2g;g.J({\'V\':e+\'M\',\'W\':d+\'M\'});1a}$(14).1T(\'4G.1e\',u(){8(j.2Q){k()}8(i.1D){l()}8(j.29==\'2B\'){n()}8(j.29==\'2P\'){p()}});$(14).1T(\'4F.1e\',u(){8(i.1D){l()}8(j.2Q){k()}8(j.29==\'2B\'){n()}});34(j.3w){1n\'3t\':g.11($(j.1I).2s());g.1t(u(){$(j.1I).11(g.2s())});q();1a;1n\'1z\':g.11(\'<1z 3S="0" 3R="0" 3Q="0" 1H="\'+j.R+\'" 3P="2y\'+X.1b(X.2z()*3d)+\'" 1c="L:1h%;Q:1h%;2f:22;1u-27:#3k;" 17="2y" ></1z>\');$(\'#2y\').1W(q());1a;1n\'3x\':8(j.3o==\'3M\'){8(j.R.1U("?")!==-1){b=j.R.3L(0,j.R.1U("?"));1G=r(j.R)}H{b=j.R;1G={}}g.1W(b,1G,u(){q()})}H{8(j.R.1U("?")==-1){j.R+=\'?\'}g.1W(j.R+\'&2z=\'+(3K 3J().3I()),u(){q()})}1a}}};8(j.2o){I w.13(u(a){$(w).1T(j.2o,u(){t(w);I 1w})})}H{t()}};$.1R=u(s){$.S.1R(s)}})(1F);(u(A){A.1B(A.S,{3u:u(B){G B=A.1B({1J:["強度　非常に弱い","強度　弱い","強度　普通","強度　強い","強度　最強"],1P:["#42","#6f","#5r","#5V","#64"],1y:[10,15,30,40],2u:["5e","5f","5g","5h","5j","5l","5o","5A","5B","5K","5L","5P","5Q"],1M:6},B);I w.13(u(){G C=A(w).1N("17");A(w).3A("<O 2a=\\"3u-63\\" 17=\\""+C+"3B\\"></O>");A(w).3A("<O 2a=\\"3u-66\\" 17=\\""+C+"3C\\" 1c=\\"2f: 3D 2S 4M; 4N-4O: 3D; Q: 4P; L: 4Q;\\"></O>");A(w).4S(u(){A.S.3E(A(w).4U(),C,B)})})},3E:u(D,F,C){1f=A.S.3G(D,C);G B="#"+F+"3C";G E="#"+F+"3B";8(1f==-3j){1r="#42";1v="危険なパスワードです";A(B).J({L:"0%"})}H{8(1f<0&&1f>-5k){1r="#4x";1v="入力不足";A(B).J({L:"5%"})}H{8(1f<=C.1y[0]){1r=C.1P[0];1v=C.1J[0];A(B).J({L:"10%"})}H{8(1f>C.1y[0]&&1f<=C.1y[1]){1r=C.1P[1];1v=C.1J[1];A(B).J({L:"25%"})}H{8(1f>C.1y[1]&&1f<=C.1y[2]){1r=C.1P[2];1v=C.1J[2];A(B).J({L:"50%"})}H{8(1f>C.1y[2]&&1f<=C.1y[3]){1r=C.1P[3];1v=C.1J[3];A(B).J({L:"4J%"})}H{1r=C.1P[4];1v=C.1J[4];A(B).J({L:"5s%"})}}}}}}A(B).J({5y:1r});A(E).1E("<3N 1c=\'27: "+1r+";\'>"+1v+"</3N>")},3G:u(C,B){G F=0;G E=B.1J[0];8(C.1K<B.1M){F=(F-1h)}H{8(C.1K>=B.1M&&C.1K<=(B.1M+2)){F=(F+6)}H{8(C.1K>=(B.1M+3)&&C.1K<=(B.1M+4)){F=(F+12)}H{8(C.1K>=(B.1M+5)){F=(F+18)}}}}8(C.1g(/[a-z]/)){F=(F+1)}8(C.1g(/[A-Z]/)){F=(F+5)}8(C.1g(/\\d+/)){F=(F+5)}8(C.1g(/(.*[0-9].*[0-9].*[0-9])/)){F=(F+7)}8(C.1g(/.[!,@,#,$,%,^,&,*,?,2i,~]/)){F=(F+5)}8(C.1g(/(.*[!,@,#,$,%,^,&,*,?,2i,~].*[!,@,#,$,%,^,&,*,?,2i,~])/)){F=(F+7)}8(C.1g(/([a-z].*[A-Z])|([A-Z].*[a-z])/)){F=(F+2)}8(C.1g(/([a-32-Z])/)&&C.1g(/([0-9])/)){F=(F+3)}8(C.1g(/([a-32-3U-9].*[!,@,#,$,%,^,&,*,?,2i,~])|([!,@,#,$,%,^,&,*,?,2i,~].*[a-32-3U-9])/)){F=(F+3)}1Z(G D=0;D<B.2u.1K;D++){8(C.5X()==B.2u[D]){F=-3j}}I F}})})(1F);(u(a){a.S.5Y=u(b){G c=1F.1B({Q:9,L:9},b);w.13(u(){G d=c.Q,g=c.L,i=a(w).Q(),f=a(w).L(),h=X.61,e=X.62;8(i>=f){g=e(h(f/i*d))}H{d=e(h(i/f*g))}a(w).1N({Q:d,L:g})})}})(1F);(u($){G e={},Y,1o,2d,2c=$.6l.6m&&/6n\\s(5\\.5|6\\.)/.6q(6s.6t),2D=1w;$.1i={23:1w,3z:{3e:3j,1A:1w,44:45,35:"",V:15,W:15,17:"1i"},4R:u(){$.1i.23=!$.1i.23}};$.S.1B({1i:u(a){a=$.1B({},$.1i.3z,a);47(a);I w.13(u(){$.2n(w,"1i",a);w.2Z=e.K.J("1S");w.3m=w.1o;$(w).4W("1o");w.4X=""}).4Y(49).51(1q).2v(1q)},2x:2c?u(){I w.13(u(){G b=$(w).J(\'3a\');8(b.1g(/^1l\\(["\']?(.*\\.55)["\']?\\)$/i)){b=56.$1;$(w).J({\'3a\':\'22\',\'2G\':"57:58.59.5a(5b=45, 5c=5d, 1H=\'"+b+"\')"}).13(u(){G a=$(w).J(\'19\');8(a!=\'1C\'&&a!=\'4a\')$(w).J(\'19\',\'4a\')})}})}:u(){I w},4b:2c?u(){I w.13(u(){$(w).J({\'2G\':\'\',3a:\'\'})})}:u(){I w},4c:u(){I w.13(u(){$(w)[$(w).1E()?"1k":"1q"]()})},1l:u(){I w.1N(\'3y\')||w.1N(\'1H\')}});u 47(a){8(e.K)I;e.K=$(\'<O 17="\'+a.17+\'"><36></36><O 2a="N"></O><O 2a="1l"></O></O>\').5i(T.N).1q();8($.S.2F)e.K.2F();e.1o=$(\'36\',e.K);e.N=$(\'O.N\',e.K);e.1l=$(\'O.1l\',e.K)}u P(a){I $.2n(a,"1i")}u 4h(a){8(P(w).3e)2d=5m(1k,P(w).3e);H 1k();2D=!!P(w).2D;$(T.N).1T(\'3p\',24);24(a)}u 49(){8($.1i.23||w==Y||(!w.3m&&!P(w).33))I;Y=w;1o=w.3m;8(P(w).33){e.1o.1q();G a=P(w).33.4j(w);8(a.5p||a.5q){e.N.4k().11(a)}H{e.N.1E(a)}e.N.1k()}H 8(P(w).4l){G b=1o.5t(P(w).4l);e.1o.1E(b.5u()).1k();e.N.4k();1Z(G i=0,31;(31=b[i]);i++){8(i>0)e.N.11("<5w/>");e.N.11(31)}e.N.4c()}H{e.1o.1E(1o).1k();e.N.1q()}8(P(w).44&&$(w).1l())e.1l.1E($(w).1l().43(\'5x://\',\'\')).1k();H e.1l.1q();e.K.2W(P(w).35);8(P(w).2x)e.K.2x();4h.5z(w,46)}u 1k(){2d=1j;8((!2c||!$.S.2F)&&P(Y).1A){8(e.K.2t(":4o"))e.K.2T().1k().3v(P(Y).1A,Y.2Z);H e.K.2t(\':4p\')?e.K.3v(P(Y).1A,Y.2Z):e.K.2A(P(Y).1A)}H{e.K.1k()}24()}u 24(a){8($.1i.23)I;8(a&&a.5E.5F=="5G"){I}8(!2D&&e.K.2t(":4p")){$(T.N).2q(\'3p\',24)}8(Y==1j){$(T.N).2q(\'3p\',24);I}e.K.3s("1Y-3l").3s("1Y-4q");G b=e.K[0].4r;G c=e.K[0].4s;8(a){b=a.5M+P(Y).W;c=a.5N+P(Y).V;G d=\'2O\';8(P(Y).26){d=$(14).L()-b;b=\'2O\'}e.K.J({W:b,3l:d,V:c})}G v=1Y(),h=e.K[0];8(v.x+v.4t<h.4r+h.2K){b-=h.2K+20+P(Y).W;e.K.J({W:b+\'M\'}).2W("1Y-3l")}8(v.y+v.4u<h.4s+h.2I){c-=h.2I+20+P(Y).V;e.K.J({V:c+\'M\'}).2W("1Y-4q")}}u 1Y(){I{x:$(14).3i(),y:$(14).2k(),4t:$(14).L(),4u:$(14).Q()}}u 1q(a){8($.1i.23)I;8(2d)5U(2d);Y=1j;G b=P(w);u 2C(){e.K.3s(b.35).1q().J("1S","")}8((!2c||!$.S.2F)&&b.1A){8(e.K.2t(\':4o\'))e.K.2T().3v(b.1A,0,2C);H e.K.2T().2R(b.1A,2C)}H 2C();8(P(w).2x)e.K.4b()}})(1F);(u($){$.S.1B({5W:u(a,b,c,d){I w.13(u(){$.1p.38(w,a,b,c,d)})},5Z:u(a,b,c){I w.13(u(){$.1p.38(w,a,b,c,1)})},60:u(a,b){I w.13(u(){$.1p.16(w,a,b)})}});$.1B({1p:{2U:[],4y:1,2p:"1F.1p",4A:/^([0-9]+(?:\\.[0-9]*)?)\\s*(.*s)?$/,4B:{\'67\':1,\'68\':10,\'69\':1h,\'s\':3d,\'6a\':3H,\'6b\':6c,\'6d\':6e},4C:u(a){8(a==3n||a==1j)I 1j;G b=w.4A.6g($.6h(a.6i()));8(b[2]){G c=6j(b[1]);G d=w.4B[b[2]]||1;I c*d}H{I a}},38:u(a,b,c,d,e){G f=0;8($.6k(c)){8(!e)e=d;d=c;c=b}b=$.1p.4C(b);8(2H b!=\'4D\'||4E(b)||b<0)I;8(2H e!=\'4D\'||4E(e)||e<0)e=0;e=e||0;G g=$.2n(a,w.2p)||$.2n(a,w.2p,{});8(!g[c])g[c]={};d.1s=d.1s||w.4y++;G h=u(){8((++f>e&&e!==0)||d.4j(a,f)===1w)$.1p.16(a,c,d)};h.1s=d.1s;8(!g[c][d.1s])g[c][d.1s]=14.6o(h,b);w.2U.6p(a)},16:u(a,b,c){G d=$.2n(a,w.2p),1Q;8(d){8(!b){1Z(b 2N d)w.16(a,b,c)}H 8(d[b]){8(c){8(c.1s){14.4H(d[b][c.1s]);3f d[b][c.1s]}}H{1Z(G c 2N d[b]){14.4H(d[b][c]);3f d[b][c]}}1Z(1Q 2N d[b])1a;8(!1Q){1Q=1j;3f d[b]}}1Z(1Q 2N d)1a;8(!1Q)$.6u(a,w.2p)}}}});$(14).1T("1t",u(){$.13($.1p.2U,u(a,b){$.1p.16(b)})})})(1F);',62,404,'||||||||if||||||||||||||||||||||function||this||||||||||var|else|return|css|parent|width|px|body|div|settings|height|windowSourceURL|fn|document|anchoredClassName|top|left|Math|current|||append||each|window||remove|id||position|break|round|style|draggable|DOMWindow|nPerc|match|100|tooltip|null|show|url|documentElement|case|title|timer|hide|strColor|timerID|unload|background|strText|false|closeDOMWindow|scores|iframe|fade|extend|absolute|isIE6|html|jQuery|urlQueryObject|src|windowSourceID|verdects|length|DOMWindowContent|minchar|attr|fast|colors|ret|openDOMWindow|opacity|bind|indexOf|scrollOffsetWidth|load|scrollOffsetHeight|viewport|for|||none|blocked|update||positionLeft|color||positionType|class|windowBGImage|IE|tID|viewPortHeight|border|positionTop|index|_|loaderImagePath|scrollTop|functionCallOnOpen|DOMWindowLoader|data|eventType|dataKey|unbind|trigger|children|is|common|click|repeat|fixPNG|DOMWindowIframe|random|fadeIn|centered|complete|track|self|bgiframe|filter|typeof|offsetHeight|viewPortWidth|offsetWidth|overlayOpacity|DOMWindowOverlay|in|auto|fixed|overlay|fadeOut|solid|stop|global|loaderWidth|addClass|display|anchoredSelector|tOpacity||part|zA|bodyHandler|switch|extraClass|h3|borderColor|add|loader|backgroundImage|borderSize|loaderHeight|1000|delay|delete|functionCallOnClose|windowBGColor|scrollLeft|200|fff|right|tooltipText|undefined|windowHTTPType|mousemove|windowPadding|DOMWindowIE6FixIframe|removeClass|inline|pstrength|fadeTo|windowSource|ajax|href|defaults|after|_text|_bar|1px|runPassword|alpha|checkPassword|10000|getTime|Date|new|substr|post|span|Iframe|name|wspace|hspace|frameborder|move|Z0|cursor|img|10001|overflow|padding||no|f00|replace|showURL|true|arguments|createHelper|outerWidth|save|relative|unfixPNG|hideWhenEmpty|clientWidth|innerWidth|clientHeight|innerHeight|handle|windowSourceAttrURL|call|empty|showBody|overlayColor|modal|animated|visible|bottom|offsetLeft|offsetTop|cx|cy|500|fixedWindowY|ccc|guid|defaultsSettings|regex|powers|timeParse|number|isNaN|resize|scroll|clearInterval|functionCallAfterClose|75|anchored|image|white|font|size|5px|0px|block|keyup|outerHeight|val|blank|removeAttr|alt|mouseover|moz||mouseout|maxHeight|pageXOffset|pageYOffset|png|RegExp|progid|DXImageTransform|Microsoft|AlphaImageLoader|enabled|sizingMethod|crop|password|sex|god|123456|appendTo|123|199|liverpool|setTimeout|get|letmein|nodeType|jquery|f60|92|split|shift|000|br|http|backgroundColor|apply|qwerty|monkey|gif|loader3|target|tagName|OPTION|frontend|2010|images|bidbuy|987654|pageX|pageY|res|asdfgh|zxcvbn|anchoredSingleWindow|10002|9999|clearTimeout|3c0|everyTime|toLowerCase|aeImageResize|oneTime|stopTime|ceil|floor|info|3f0||bar|ms|cs|ds|das|hs|100000|ks|1000000|c06|exec|trim|toString|parseFloat|isFunction|browser|msie|MSIE|setInterval|push|test|destroy|navigator|userAgent|removeData|destory'.split('|'),0,{}));


/*
* Slides, A Slideshow Plugin for jQuery
* Intructions: http://slidesjs.com
* By: Nathan Searles, http://nathansearles.com
* Version: 1.1.2
* Updated: February 14th, 2011
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

(function($){$.fn.slides=function(option){option=$.extend({},$.fn.slides.option,option);return this.each(function(){$('.'+option.container,$(this)).children().wrapAll('<div class="slides_control"/>');var elem=$(this),control=$('.slides_control',elem),total=control.children().size(),width=control.children().outerWidth(),height=control.children().outerHeight(),start=option.start-1,effect=option.effect.indexOf(',')<0?option.effect:option.effect.replace(' ','').split(',')[0],paginationEffect=option.effect.indexOf(',')<0?effect:option.effect.replace(' ','').split(',')[1],next=0,prev=0,number=0,current=0,loaded,active,clicked,position,direction,imageParent;if(total<2){return;}
if(start<0){start=0;};if(start>total){start=total-1;};if(option.start){current=start;};if(option.randomize){control.randomize();}
$('.'+option.container,elem).css({overflow:'hidden',position:'relative'});control.children().css({position:'absolute',top:0,left:control.children().outerWidth(),zIndex:0,display:'none'});control.css({position:'relative',width:(width*3),height:height,left:-width});$('.'+option.container,elem).css({display:'block'});if(option.autoHeight){control.children().css({height:'auto'});control.animate({height:control.children(':eq('+start+')').outerHeight()},option.autoHeightSpeed);}
if(option.preload&&control.find('img').length){$('.'+option.container,elem).css({background:'url('+option.preloadImage+') no-repeat 50% 50%'});var img=control.find('img:eq('+start+')').attr('src')+'?'+(new Date()).getTime();if($('img',elem).parent().attr('class')!='slides_control'){imageParent=control.children(':eq(0)')[0].tagName.toLowerCase();}else{imageParent=control.find('img:eq('+start+')');}
control.find('img:eq('+start+')').attr('src',img).load(function(){control.find(imageParent+':eq('+start+')').fadeIn(option.fadeSpeed,function(){$(this).css({zIndex:5});elem.css({background:''});loaded=true;});});}else{control.children(':eq('+start+')').fadeIn(option.fadeSpeed,function(){loaded=true;});}
if(option.bigTarget){control.children().css({cursor:'pointer'});control.children().click(function(){animate('next',effect);return false;});}
if(option.hoverPause&&option.play){control.children().bind('mouseover',function(){stop();});control.children().bind('mouseleave',function(){pause();});}
if(option.generateNextPrev){$('.'+option.container,elem).after('<a href="#" class="'+option.prev+'">Prev</a>');$('.'+option.prev,elem).after('<a href="#" class="'+option.next+'">Next</a>');}
$('.'+option.next,elem).click(function(e){e.preventDefault();if(option.play){pause();};animate('next',effect);});$('.'+option.prev,elem).click(function(e){e.preventDefault();if(option.play){pause();};animate('prev',effect);});if(option.generatePagination){elem.append('<ul class='+option.paginationClass+'></ul>');control.children().each(function(){$('.'+option.paginationClass,elem).append('<li><a href="#'+number+'">'+(number+1)+'</a></li>');number++;});}else{$('.'+option.paginationClass+' li a',elem).each(function(){$(this).attr('href','#'+number);number++;});}
$('.'+option.paginationClass+' li:eq('+start+')',elem).addClass('current');$('.'+option.paginationClass+' li a',elem).click(function(){if(option.play){pause();};clicked=$(this).attr('href').match('[^#/]+$');if(current!=clicked){animate('pagination',paginationEffect,clicked);}
return false;});$('a.link',elem).click(function(){if(option.play){pause();};clicked=$(this).attr('href').match('[^#/]+$')-1;if(current!=clicked){animate('pagination',paginationEffect,clicked);}
return false;});if(option.play){playInterval=setInterval(function(){animate('next',effect);},option.play);elem.data('interval',playInterval);};function stop(){clearInterval(elem.data('interval'));};function pause(){if(option.pause){clearTimeout(elem.data('pause'));clearInterval(elem.data('interval'));pauseTimeout=setTimeout(function(){clearTimeout(elem.data('pause'));playInterval=setInterval(function(){animate("next",effect);},option.play);elem.data('interval',playInterval);},option.pause);elem.data('pause',pauseTimeout);}else{stop();}};function animate(direction,effect,clicked){if(!active&&loaded){active=true;switch(direction){case'next':prev=current;next=current+1;next=total===next?0:next;position=width*2;direction=-width*2;current=next;break;case'prev':prev=current;next=current-1;next=next===-1?total-1:next;position=0;direction=0;current=next;break;case'pagination':next=parseInt(clicked,10);prev=$('.'+option.paginationClass+' li.current a',elem).attr('href').match('[^#/]+$');if(next>prev){position=width*2;direction=-width*2;}else{position=0;direction=0;}
current=next;break;}
if(effect==='fade'){option.animationStart();if(option.crossfade){control.children(':eq('+next+')',elem).css({zIndex:10}).fadeIn(option.fadeSpeed,function(){if(option.autoHeight){control.animate({height:control.children(':eq('+next+')',elem).outerHeight()},option.autoHeightSpeed,function(){control.children(':eq('+prev+')',elem).css({display:'none',zIndex:0});control.children(':eq('+next+')',elem).css({zIndex:0});option.animationComplete(next+1);active=false;});}else{control.children(':eq('+prev+')',elem).css({display:'none',zIndex:0});control.children(':eq('+next+')',elem).css({zIndex:0});option.animationComplete(next+1);active=false;}});}else{option.animationStart();control.children(':eq('+prev+')',elem).fadeOut(option.fadeSpeed,function(){if(option.autoHeight){control.animate({height:control.children(':eq('+next+')',elem).outerHeight()},option.autoHeightSpeed,function(){control.children(':eq('+next+')',elem).fadeIn(option.fadeSpeed);});}else{control.children(':eq('+next+')',elem).fadeIn(option.fadeSpeed,function(){if($.browser.msie){$(this).get(0).style.removeAttribute('filter');}});}
option.animationComplete(next+1);active=false;});}}else{control.children(':eq('+next+')').css({left:position,display:'block'});if(option.autoHeight){option.animationStart();control.animate({left:direction,height:control.children(':eq('+next+')').outerHeight()},option.slideSpeed,function(){control.css({left:-width});control.children(':eq('+next+')').css({left:width,zIndex:5});control.children(':eq('+prev+')').css({left:width,display:'none',zIndex:0});option.animationComplete(next+1);active=false;});}else{option.animationStart();control.animate({left:direction},option.slideSpeed,function(){control.css({left:-width});control.children(':eq('+next+')').css({left:width,zIndex:5});control.children(':eq('+prev+')').css({left:width,display:'none',zIndex:0});option.animationComplete(next+1);active=false;});}}
if(option.pagination){$('.'+option.paginationClass+' li.current',elem).removeClass('current');$('.'+option.paginationClass+' li:eq('+next+')',elem).addClass('current');}}};});};$.fn.slides.option={preload:false,preloadImage:'/img/loading.gif',container:'slides_container',generateNextPrev:false,next:'next',prev:'prev',pagination:true,generatePagination:true,paginationClass:'pagination',fadeSpeed:350,slideSpeed:350,start:1,effect:'slide',crossfade:false,randomize:false,play:0,pause:0,hoverPause:false,autoHeight:false,autoHeightSpeed:350,bigTarget:false,animationStart:function(){},animationComplete:function(){}};$.fn.randomize=function(callback){function randomizeOrder(){return(Math.round(Math.random())-0.5);}
return($(this).each(function(){var $this=$(this);var $children=$this.children();var childCount=$children.length;if(childCount>1){$children.hide();var indices=[];for(i=0;i<childCount;i++){indices[indices.length]=i;}
indices=indices.sort(randomizeOrder);$.each(indices,function(j,k){var $child=$children.eq(k);var $clone=$child.clone(true);$clone.show().appendTo($this);if(callback!==undefined){callback($child,$clone);}
$child.remove();});}}));};})(jQuery);
