16 lines
13 KiB
JavaScript
16 lines
13 KiB
JavaScript
|
/*
|
||
|
|
||
|
GalleryView - jQuery Content Gallery Plugin
|
||
|
Author: Jack Anderson
|
||
|
Version: 2.0 (May 5, 2009)
|
||
|
Documentation: http://www.spaceforaname.com/galleryview/
|
||
|
|
||
|
Please use this development script if you intend to make changes to the
|
||
|
plugin code. For production sites, please use jquery.galleryview-2.0-pack.js.
|
||
|
|
||
|
See CHANGELOG.txt for a review of changes and LICENSE.txt for the applicable
|
||
|
licensing information.
|
||
|
|
||
|
|
||
|
*/
|
||
|
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}('T 2C=1K;(V($){$.2D.2E=V(g){T h=$.3t($.2D.2E.2X,g);T j;T k=0;T l=0;T m;T n;T o=1K;T q;T r;T t;T u;T v;T w;T z;T A;T B;T C=20;T D;T E;T F;T G={};T H={};T I={};T J={};T K=1O;T L=1K;T M;T N;T O;T P;T Q;T R;V 2d(i){$(\'.W-15-11\',M).2e(\'Y\');$(\'.W-16-11\',M).2e(\'Y\');$(\'.W-15\',M).2e(\'Y\');$(\'.W-16\',M).2e(\'Y\');O.2e(\'Y\');9(h.1q){O.2F(\'1P\').1l(\'17\').1Y().1L({\'1r\':h.1Z},h.1G);O.1d(i).1h(\'1P\').1l(\'17\').1Y().1L({\'1r\':1.0},h.1G)}9(h.1e&&h.21){Q.23(h.1G).1d(i%l).2f(h.1G,V(){9(!h.1q){$(\'.W-16-11\',M).Y(1n);$(\'.W-15-11\',M).Y(19);$(\'.W-16\',M).Y(1n);$(\'.W-15\',M).Y(19)}})}9(h.1q){9(m==\'1H\'){N.1Y();T a,2g,1Q;9(F==\'1s\'){a=1I(O[i]).X-(1I(R[0]).X+(u/2)-(A/2));2g=(a>=0?\'-=\':\'+=\')+Z.2Y(a)+\'4\';N.1L({\'X\':2g},h.1G,h.2h,V(){1Q=i;9(i>l){i=i%l;k=i;N.S(\'X\',\'-\'+((A+h.12)*i)+\'4\')}14 9(i<=(l-1t)){i=(i%l)+l;k=i;N.S(\'X\',\'-\'+((A+h.12)*i)+\'4\')}9(1Q!=i){O.1d(1Q).2F(\'1P\').1l(\'17\').S({\'1r\':h.1Z});O.1d(i).1h(\'1P\').1l(\'17\').S({\'1r\':1.0})}9(!h.21){Q.2o().1d(i%l).2p()}$(\'.W-16-11\',M).Y(1n);$(\'.W-15-11\',M).Y(19);$(\'.W-16\',M).Y(1n);$(\'.W-15\',M).Y(19);24()})}14{a=1I(O[i]).U-(1I(R[0]).U+(t)-(B/2));2g=(a>=0?\'-=\':\'+=\')+Z.2Y(a)+\'4\';N.1L({\'U\':2g},h.1G,h.2h,V(){1Q=i;9(i>l){i=i%l;k=i;N.S(\'U\',\'-\'+((B+h.12)*i)+\'4\')}14 9(i<=(l-1t)){i=(i%l)+l;k=i;N.S(\'U\',\'-\'+((B+h.12)*i)+\'4\')}9(1Q!=i){O.1d(1Q).2F(\'1P\').1l(\'17\').S({\'1r\':h.1Z});O.1d(i).1h(\'1P\').1l(\'17\').S({\'1r\':1.0})}9(!h.21){Q.2o().1d(i%l).2p()}$(\'.W-16-11\',M).Y(1n);$(\'.W-15-11\',M).Y(19);$(\'.W-16\',M).Y(1n);$(\'.W-15\',M).Y(19);24()})}}14 9(m==\'1u\'){R.1Y();T b=1I(O[i]);9(F==\'1s\'){R.1L({\'X\':(b.X+(A/2)-(u/2)+\'4\')},h.1G,h.2h,V(){9(!h.21){Q.2o().1d(i%l).2p()}$(\'.W-16-11\',M).Y(1n);$(\'.W-15-11\',M).Y(19);$(\'.W-16\',M).Y(1n);$(\'.W-15\',M).Y(19);24()})}14{R.1L({\'U\':(b.U+(B/2)-(t)+\'4\')},h.1G,h.2h,V(){9(!h.21){Q.2o().1d(i%l).2p()}$(\'.W-16-11\',M).Y(1n);$(\'.W-15-11\',M).Y(19);$(\'.W-16\',M).Y(1n);$(\'.W-15\',M).Y(19);24()})}}}};V 1R(a){9(!a){1z 0}9(a.1A===0){1z 0}a=a.1d(0);T b=0;b+=1m(a.S(\'3u\'));b+=1m(a.S(\'3v\'));b+=1m(a.S(\'2q\'));b+=1m(a.S(\'2r\'));1z b};V 25(a){9(!a){1z 0}9(a.1A===0){1z 0}a=a.1d(0);T b=0;b+=1m(a.S(\'2Z\'));b+=1m(a.S(\'3w\'));b+=1m(a.S(\'30\'));b+=1m(a.S(\'31\'));1z b};V 19(){$(1v).1S("1D");9(++k==O.1A){k=0}2d(k);9(!o){$(1v).2i(h.26,"1D",V(){19()})}};V 1n(){$(1v).1S("1D");9(--k<0){k=l-1}2d(k);9(!o){$(1v).2i(h.26,"1D",V(){19()})}};V 1I(a){T b=0,U=0;T c=a.2j;9(a.32){3x{b+=a.3y;U+=a.3z}3A(a=a.32)}9(c==j){1z{\'X\':b,\'U\':U}}14{T d=1I(M[0]);T e=d.X;T f=d.U;1z{\'X\':b-e,\'U\':U-f}}};V 24(){O.1B(V(i){9($(\'a\',13).1A===0){$(13).Y(V(){9(k!=i){$(1v).1S("1D");2d(i);k=i;9(!o){$(1v).2i(h.26,"1D",V(){19()})}}})}})};V 33(){Q.1B(V(i){9($(\'.1f-11\',13).1A>0){$(13).34(\'<1i 2k="11-2s"></1i>\')}});9(!h.1q){$(\'<17 />\').1h(\'W-15\').1j(\'1x\',n+h.1T+\'/15.27\').1y(M).S({\'1a\':\'1o\',\'1E\':\'35\',\'1U\':\'1u\',\'U\':((h.1b-22)/2)+D+\'4\',\'28\':10+1m(Q.S(\'2r\'))+\'4\',\'2l\':\'29\'}).Y(19);$(\'<17 />\').1h(\'W-16\').1j(\'1x\',n+h.1T+\'/16.27\').1y(M).S({\'1a\':\'1o\',\'1E\':\'35\',\'1U\':\'1u\',\'U\':((h.1b-22)/2)+D+\'4\',\'X\':10+1m(Q.S(\'2q\'))+\'4\',\'2l\':\'29\'}).Y(1n);$(\'<17 />\').1h(\'W-15-11\').1j(\'1x\',n+h.1T+\'/1f-W-15.27\').1y(M).S({\'1a\':\'1o\',\'1E\':\'36\',\'U\':((h.1b-22)/2)+D-10+\'4\',\'28\':1m(Q.S(\'2r\'))+\'4\',\'2l\':\'29\',\'1U\':\'1u\',\'1r\':0.37}).Y(19);$(\'<17 />\').1h(\'W-16-11\').1j(\'1x\',n+h.1T+\'/1f-W-16.27\').1y(M).S({\'1a\':\'1o\',\'1E\':\'36\',\'U\':((h.1b-22)/2)+D-10+\'4\',\'X\':1m(Q.S(\'2q\'))+\'4\',\'2l\':\'29\',\'1U\':\'1u\',\'1r\':0.37}).Y(1n)}Q.1B(V(i){$(13).S({\'1k\':(h.1g-1R(Q))+\'4\',\'1w\':(h.1b-25(Q))+\'4\',\'1a\':\'1o\',\'2t\':\'2a\',\'2l\':\'29\'});2G(h.1p){1F\'U\':$(13).S({\'U\':w+Z.1c(D,E)+\'4\',\'X\':D+\'4\'});1C;1F\'X\':$(13).S({\'U
|