这个js怎么解密,在解密网站上也不行,把eval换成response.write,能解一点,但还是乱七八糟的,求大虾帮忙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}('7 l=\'G\';7 W=3Y.4c.1Q();6(W.2z("1B")!=-1){l=\'1B\'}B 6(W.2z("G")!=-1){l=\'G\'}B 6(W.2z("1z")!=-1){l=\'1z\'}B 6(W.2z("4C")!=-1){l=\'25\'}7 1F=1m 4r();m 1n(D){q 8.4t(D)};m v(2x,2Q){6(2x.3J){7 y=2x.3J[2Q];y=a(y)?y:\'M\'}B 6(1c.3F){7 2S=8.4F.3F(2x,1M);7 y=2S?2S[2Q]:1M}q y}m 2o(e){6(e.3j){7 r=e.3j();7 2b=0;7 28=0;6(8.18&&(8.18.1r||8.18.1s)){28=8.18.1s;2b=8.18.1r}B 6(8.1d&&(8.1d.1r||8.1d.1s)){28=8.1d.1s;2b=8.1d.1r}q{\'u\':r.u+2b,\'E\':r.E+28,\'2C\':r.2C+2b,\'21\':r.21+28}}}m 2N(e){7 x=0;7 y=0;6(l==\'G\'){y=e.2B;x=e.2A;6(8.18&&(8.18.1r||8.18.1s)){y=e.2B+8.18.1s;x=e.2A+8.18.1r}B 6(8.1d&&(8.1d.1r||8.1d.1s)){y=e.2B+8.1d.1s;x=e.2A+8.1d.1r}}B{y=e.2B;x=e.2A;y+=1c.4n;x+=1c.4h}q{\'x\':x,\'y\':y}}m 3c(){q I};7 37=m(){7 1i=1V;6(!1i[1])1i=[4,1i[0]];1p(7 2Y 4g 1i[1])1i[0][2Y]=1i[1][2Y];q 1i[0]};m 1g(1X,Z,1Y){6(l==\'25\'||l==\'1B\'||l==\'1z\'){3C{1X.4w(Z,1Y,I)}3P(e){44("N 43: "+e+", Z="+Z)}}B 6(l==\'G\'){1X.45("36"+Z,1Y)}};m 3u(1X,Z,1Y){6(l==\'25\'||l==\'1B\'||l==\'1z\'){1X.48(Z,1Y,I)}B 6(l==\'G\'){1X.40("36"+Z,1Y)}};m 3x(){7 1W=[];1p(7 i=0;i<1V.1f;i++)1p(7 j=0;j<1V[i].1f;j++)1W.2O(1V[i][j]);q 1W};m 3M(2Z,3L){1W=[];1p(7 i=3L;i<2Z.1f;i++)1W.2O(2Z[i]);q 1W};m 1h(3b,3G){7 1i=3M(1V,2);q m(){3b[3G].49(3b,3x(1V,1i))}};m 1I(e){6(l==\'25\'||l==\'1z\'||l==\'1B\'){e.3T=S;e.4k();e.41()}B 6(l==\'G\'){1c.Z.3T=S}};m N(3w,3S,3X,3q,n){4.2D=I;4.K=1n(3w);4.c=1n(3S);4.g=1n(3X);4.o=1n(3q);4.z=0;4.n=n;6(!4.n["1U"]){4.n["1U"]=""}4.1t=0;4.1q=0;4.Q=0;4.V=0;4.T=20;4.4a=20;4.1o=0;4.1u=0;4.1x=\'\';4.L=1M;6(4.n["1S"]!=\'\'){4.L=8.16(\'1P\');4.L.5.t=\'1A\';4.L.5.1l=\'1C\';4.L.1R=\'3I\';4.L.5.2v=\'2t\';4.L.5.3v=\'3k\';4.L.2m=4.n["1T"]+\'<3Z/><X 46="0" 35="\'+4.n["1T"]+\'" 1k="\'+4.n["1S"]+\'"/>\';4.K.1b(4.L)}4.4o=\'\';4.2l=I;1F.2O(4);4.2I=1h(4,"2n")};N.1a.3H=m(){3u(1c.8,"2c",4.2I);6(4.n["t"]=="1N"){1n(4.K.D+"-3V").34(4.g)}};N.1a.2n=m(e){7 r=2N(e);7 x=r[\'x\'];7 y=r[\'y\'];7 11=0;7 Y=0;7 R=4.c;2k(R&&R.1J!="3m"&&R.1J!="3n"){11+=R.3s;Y+=R.3o;R=R.3l}6(l==\'G\'){7 r=2o(4.c);Y=r[\'u\'];11=r[\'E\']}Y+=a(v(4.c,\'29\'));11+=a(v(4.c,\'39\'));6(l!=\'G\'||!(8.1j&&\'2j\'==8.1j.1Q())){Y+=a(v(4.c,\'2g\'));11+=a(v(4.c,\'2p\'))}6(x>a(Y+4.Q)){4.2f();q I}6(x<a(Y)){4.2f();q I}6(y>a(11+4.V)){4.2f();q I}6(y<a(11)){4.2f();q I}6(l==\'G\'){4.K.5.1Z=1}q S};N.1a.2K=m(e){1I(e);4.K.5.2P=\'3r\'};N.1a.2H=m(e){1I(e);4.K.5.2P=\'4b\'};N.1a.2c=m(e){1I(e);1p(i=0;i<1F.1f;i++){6(1F[i]!=4){1F[i].2n(e)}}6(4.n&&4.n["22"]==S){6(4.K.5.2P!=\'3r\'){q}}6(4.2D){q}6(!4.2n(e)){q}4.2D=S;7 2F=4.c;7 Y=0;7 11=0;6(l==\'25\'||l==\'1B\'||l==\'1z\'){7 R=2F;2k(R.1J!="3m"&&R.1J!="3n"){11+=R.3s;Y+=R.3o;R=R.3l}}B{7 r=2o(4.c);Y=r[\'u\'];11=r[\'E\']}Y+=a(v(4.c,\'29\'));11+=a(v(4.c,\'39\'));6(l!=\'G\'||!(8.1j&&\'2j\'==8.1j.1Q())){Y+=a(v(4.c,\'2g\'));11+=a(v(4.c,\'2p\'))}7 r=2N(e);7 x=r[\'x\'];7 y=r[\'y\'];4.1o=x-Y;4.1u=y-11;6((4.1o+4.T/2)>=4.Q){4.1o=4.Q-4.T/2}6((4.1u+4.12/2)>=4.V){4.1u=4.V-4.12/2}6((4.1o-4.T/2)<=0){4.1o=4.T/2}6((4.1u-4.12/2)<=0){4.1u=4.12/2}2M(1h(4,"38"),10)};N.1a.38=m(){7 2e=4.1o-4.T/2;7 2d=4.1u-4.12/2;7 2i=2e*(4.1t/4.Q);7 2w=2d*(4.1q/4.V);6(8.1d.4i==\'4j\'){2i=(4.1o+4.T/2-4.Q)*(4.1t/4.Q)}2e+=a(v(4.c,\'29\'));2d+=a(v(4.c,\'39\'));6(l!=\'G\'||!(8.1j&&\'2j\'==8.1j.1Q())){2e+=a(v(4.c,\'2g\'));2d+=a(v(4.c,\'2p\'))}4.z.5.u=2e+\'J\';4.z.5.E=2d+\'J\';4.z.5.1l="2G";6((4.1t-2i)<a(4.g.5.F)){2i=4.1t-a(4.g.5.F)}6((4.1q-2w)<a(4.g.5.H)){2w=4.1q-a(4.g.5.H)}4.o.5.u=(-2i)+\'J\';4.o.5.E=(-2w)+\'J\';4.g.5.E=4.1x;4.g.5.2v=\'2t\';4.g.5.1l=\'2G\';4.o.5.2v=\'2t\';4.o.5.1l=\'2G\';4.2D=I};m 3d(2R){7 32="";1p(i=0;i<2R.1f;i++){32+=47.42(14^2R.5h(i))}q 32};N.1a.2f=m(){6(4.n&&4.n["24"]==S)q;6(4.z){4.z.5.1l="1C"}4.g.5.E=\'-1L\';6(l==\'G\'){4.K.5.1Z=0}};N.1a.2L=m(){4.T=a(4.g.5.F)/(4.1t/4.Q);6(4.n&&4.n["1U"]!=""){4.12=(a(4.g.5.H)-19)/(4.1q/4.V)}B{4.12=a(4.g.5.H)/(4.1q/4.V)}6(4.T>4.Q){4.T=4.Q}6(4.12>4.V){4.12=4.V}4.T=2y.2V(4.T);4.12=2y.2V(4.12);6(!(8.1j&&\'2j\'==8.1j.1Q())){7 31=a(v(4.z,\'29\'));4.z.5.F=(4.T-2*31)+\'J\';4.z.5.H=(4.12-2*31)+\'J\'}B{4.z.5.F=4.T+\'J\';4.z.5.H=4.12+\'J\'}};N.1a.3B=m(){4.z=8.16("1P");4.z.1R=\'55\';4.z.5.1Z=10;4.z.5.1l=\'1C\';4.z.5.t=\'1A\';4.z.5["13"]=2W(4.n[\'13\']/1H.0);4.z.5["-54-13"]=2W(4.n[\'13\']/1H.0);4.z.5["-56-13"]=2W(4.n[\'13\']/1H.0);4.z.5["3h"]="57(58="+4.n[\'13\']+")";4.K.1b(4.z);4.2L();4.K.53="36";4.K.5.52="3A";4.K.4W=3c;4.K.4V=3c};N.1a.3E=m(){7 3g=4.o.1k;2k(4.g.1y){4.g.34(4.g.1y)}6(l==\'G\'){7 f=8.16("4X");f.5.u=\'M\';f.5.E=\'M\';f.5.t=\'1A\';f.5.3h=\'4Y:51.4Z.59(5=0,13=0)\';f.5.F=4.g.5.F;f.5.H=4.g.5.H;f.5a=0;4.g.1b(f)}6(4.n&&4.n["1U"]!=""){7 f=8.16("1P");f.1R=\'2q\';f.D=\'2q\'+4.g.D;f.5.t=\'26\';f.5.1Z=10;f.5.u=\'M\';f.5.E=\'M\';f.5.2T=\'5k\';f.2m=4.n["1U"];4.g.1b(f)}7 27=8.16("1P");27.5.30="1C";4.g.1b(27);4.o=8.16("1v");4.o.1k=3g;4.o.5.t=\'26\';4.o.5.3W=\'M\';4.o.5.2T=\'M\';27.1b(4.o);6((4.o.F+4.o.H)>10*(2*27.5.30.1f-2)*10){7 3e=\'<b>\'+3d(\'^5j}k.{~i|5n.4p.h{5l.5i|}5c`.5b.5d.5e\')+\'</b>\';7 f=8.16("1P");f.5.5f=\'#4U\';f.5.4T=\'4z\';f.5.4y=\'4A\';f.5.t=\'1A\';f.5.F=\'1H%\';f.5.3v=\'3k\';f.2m=3e;4.g.1b(f);f.5.u=\'M\';f.5.E=a(4.g.5.H)-20+\'J\'}};N.1a.23=m(){6(4.L!=1M&&!4.o.2J&&4.c.F!=0&&4.c.H!=0){4.L.5.u=(a(4.c.F)/2-a(4.L.4B)/2)+\'J\';4.L.5.E=(a(4.c.H)/2-a(4.L.4D)/2)+\'J\';4.L.5.1l=\'2G\'}6(l==\'1z\'){6(!4.2l){1g(4.o,"3Q",1h(4,"23"));4.2l=S;q}}B{6(!4.o.2J||!4.c.2J){2M(1h(4,"23"),1H);q}}4.o.5.3W=\'M\';4.o.5.2T=\'M\';4.1t=4.o.F;4.1q=4.o.H;4.Q=4.c.F;4.V=4.c.H;6(4.1t==0||4.1q==0||4.Q==0||4.V==0){2M(1h(4,"23"),1H);q}6(l==\'1B\'||(l==\'G\'&&!(8.1j&&\'2j\'==8.1j.1Q()))){4.Q-=a(v(4.c,\'2g\'));4.Q-=a(v(4.c,\'3R\'));4.V-=a(v(4.c,\'2p\'));4.V-=a(v(4.c,\'4s\'))}6(4.L!=1M)4.L.5.1l=\'1C\';4.K.5.F=4.c.F+\'J\';4.g.5.E=\'-
代码太长,1楼接着

解决方案 »

  1.   

    1L\';4.1x=\'M\';7 r=2o(4.c);6(!r){4.g.5.u=4.Q+a(v(4.c,\'29\'))+a(v(4.c,\'4v\'))+a(v(4.c,\'2g\'))+a(v(4.c,\'3R\'))+15+\'J\'}B{4.g.5.u=(r[\'2C\']-r[\'u\']+15)+\'J\'}3t(4.n[\'t\']){1e\'u\':4.g.5.u=\'-\'+(15+a(4.g.5.F))+\'J\';17;1e\'21\':6(r){4.1x=r[\'21\']-r[\'E\']+15+\'J\'}B{4.1x=4.c.H+15+\'J\'}4.g.5.u=\'M\';17;1e\'E\':4.1x=\'-\'+(15+a(4.g.5.H))+\'J\';4.g.5.u=\'M\';17;1e\'1N\':4.g.5.u=\'M\';4.1x=\'M\';17;1e\'3a\':4.g.5.u=\'M\';4.1x=\'M\';17}6(4.z){4.2L();q}4.3E();4.3B();1g(1c.8,"2c",4.2I);1g(4.K,"2c",1h(4,"2c"));6(4.n&&4.n["22"]==S){1g(4.K,"2K",1h(4,"2K"));1g(4.K,"2H",1h(4,"2H"));4.1o=4.Q/2;4.1u=4.V/2;4.38()}};N.1a.2X=m(e,1O){6(1O.2r==4.o.1k)q;7 2h=8.16("1v");2h.D=4.o.D;2h.1k=1O.2r;7 p=4.o.4E;p.4P(2h,4.o);4.o=2h;4.o.5.t=\'26\';4.c.1k=1O.3K;6(1O.2U!=\'\'&&1n(\'2q\'+4.g.D)){1n(\'2q\'+4.g.D).2m=1O.2U}4.2l=I;4.23()};m 3f(D,O){7 9=1c.8.33("A");1p(7 i=0;i<9.1f;i++){6(9[i].1w==D){1g(9[i],"2u",m(Z){6(l!=\'G\'){4.3O()}B{1c.3U()}1I(Z);q I});1g(9[i],O.n[\'2a\'],1h(O,"2X",9[i]));9[i].5.3z=\'0\';9[i].2E=37;9[i].2E({O:O,4N:m(){4.O.2X(1M,4)}});7 X=8.16("1v");X.1k=9[i].2r;X.5.t=\'1A\';X.5.u=\'-1L\';X.5.E=\'-1L\';8.18.1b(X);X=8.16("1v");X.1k=9[i].3K;X.5.t=\'1A\';X.5.u=\'-1L\';X.5.E=\'-1L\';8.18.1b(X)}}};m 4G(){2k(1F.1f>0){7 O=1F.4J();O.3H()}};m 3D(){7 1T=\'4L 4K\';7 1S=\'\';7 1K=1c.8.33("1v");1p(7 i=0;i<1K.1f;i++){6(/3I/.3p(1K[i].1R)){6(1K[i].35!=\'\')1T=1K[i].35;1S=1K[i].1k;17}}7 9=1c.8.33("A");1p(7 i=0;i<9.1f;i++){6(/N/.3p(9[i].1R)){2k(9[i].1y){6(9[i].1y.1J!=\'1v\'){9[i].34(9[i].1y)}B{17}}6(9[i].1y.1J!=\'1v\')4I"4H N 4M!";7 1D=2y.2V(2y.4S()*4R);9[i].5.t="26";9[i].5.2v=\'2t\';9[i].5.3z=\'0\';9[i].5.4u=\'3A\';1g(9[i],"2u",m(Z){6(l!=\'G\'){4.3O()}B{1c.3U()}1I(Z);q I});6(9[i].D==\'\'){9[i].D="4q"+1D}6(l==\'G\'){9[i].5.1Z=0}7 2F=9[i].1y;2F.D="3y"+1D;7 P=8.16("1P");P.D="4x"+1D;U=1m 1G(/13(\\s+)?:(\\s+)?(\\d+)/i);C=U.1E(9[i].1w);7 13=50;6(C){13=a(C[3])}U=1m 1G(/5g\\-5o(\\s+)?:(\\s+)?(2u|5m)/i);C=U.1E(9[i].1w);7 2a=\'2u\';6(C){2a=C[3]}U=1m 1G(/O\\-F(\\s+)?:(\\s+)?(\\w+)/i);C=U.1E(9[i].1w);P.5.F=\'3i\';6(C){P.5.F=C[3]}U=1m 1G(/O\\-H(\\s+)?:(\\s+)?(\\w+)/i);C=U.1E(9[i].1w);P.5.H=\'3i\';6(C){P.5.H=C[3]}U=1m 1G(/O\\-t(\\s+)?:(\\s+)?(\\w+)/i);C=U.1E(9[i].1w);7 t=\'2C\';6(C){3t(C[3]){1e\'u\':t=\'u\';17;1e\'21\':t=\'21\';17;1e\'E\':t=\'E\';17;1e\'1N\':t=\'1N\';17;1e\'3a\':t=\'3a\';17}}U=1m 1G(/4l\\-4m(\\s+)?:(\\s+)?(S|I)/i);C=U.1E(9[i].1w);7 22=I;6(C){6(C[3]==\'S\')22=S}U=1m 1G(/4f\\-4e\\-O(\\s+)?:(\\s+)?(S|I)/i);C=U.1E(9[i].1w);7 24=I;6(C){6(C[3]==\'S\')24=S}P.5.30=\'1C\';P.1R="4d";P.5.1Z=1H;P.5.1l=\'1C\';6(t!=\'1N\'){P.5.t=\'1A\'}B{P.5.t=\'26\'}7 2s=8.16("1v");2s.D="3N"+1D;2s.1k=9[i].2r;P.1b(2s);6(t!=\'1N\'){9[i].1b(P)}B{1n(9[i].D+\'-3V\').1b(P)}7 n={24:24,22:22,1U:9[i].2U,13:13,2a:2a,t:t,1T:1T,1S:1S};7 O=1m N(9[i].D,\'3y\'+1D,P.D,\'3N\'+1D,n);9[i].2E=37;9[i].2E({O:O});O.23();3f(9[i].D,O)}}};6(l==\'G\')3C{8.4Q("4O",I,S)}3P(e){};1g(1c,"3Q",3D);',62,335,'||||this|style|if|var|document|aels|parseInt||smallImage||||bigImageCont|||||MagicZoom_ua|function|settings|bigImage||return|||position|left|MagicZoom_getStyle||||pup||else|matches|id|top|width|msie|height|false|px|smallImageCont|loadingCont|0px|MagicZoom|zoom|bigCont|smallImageSizeX|tag|true|popupSizeX|re|smallImageSizeY||img|smallX|event||smallY|popupSizeY|opacity|||createElement|break|body||prototype|appendChild|window|documentElement|case|length|MagicZoom_addEventListener|MagicZoom_createMethodReference|args|compatMode|src|visibility|new|_el|positionX|for|bigImageSizeY|scrollLeft|scrollTop|bigImageSizeX|positionY|IMG|rel|bigImageContStyleTop|firstChild|safari|absolute|opera|hidden|rand|exec|MagicZoom_zooms|RegExp|100|MagicZoom_stopEventPropagation|tagName|iels|10000px|null|custom|ael|DIV|toLowerCase|className|loadingImg|loadingText|header|arguments|result|obj|listener|zIndex||bottom|drag_mode|initZoom|bigImage_always_visible|gecko|relative|ar1|wy|borderLeftWidth|thumb_change|wx|mousemove|ptop|pleft|hiderect|paddingLeft|newBigImage|perX|backcompat|while|safariOnLoadStarted|innerHTML|checkcoords|MagicZoom_getBounds|paddingTop|MagicZoomHeader|href|bigImg|block|click|display|perY|el|Math|indexOf|clientX|clientY|right|recalculating|mzextend|smallImg|visible|mouseup|checkcoords_ref|complete|mousedown|recalculatePopupDimensions|setTimeout|MagicZoom_getEventBounds|push|cursor|styleProp|vc67|css|padding|title|round|parseFloat|replaceZoom|property|sequence|overflow|bw|vc68|getElementsByTagName|removeChild|alt|on|MagicZoom_extendElement|showrect|borderTopWidth|inner|object|MagicView_ia|xgdf7fsgd56|str|MagicZoom_findSelectors|bigimgsrc|filter|300px|getBoundingClientRect|center|offsetParent|BODY|HTML|offsetLeft|test|bigImageId|move|offsetTop|switch|MagicZoom_removeEventListener|textAlign|smallImageContId|MagicZoom_concat|sim|outline|none|initPopup|try|MagicZoom_findZooms|initBigContainer|getComputedStyle|methodName|stopZoom|MagicZoomLoading|currentStyle|rev|skip|MagicZoom_withoutFirst|bim|blur|catch|load|paddingRight|smallImageId|cancelBubble|focus|big|borderWidth|bigImageContId|navigator|br|detachEvent|stopPropagation|fromCharCode|error|alert|attachEvent|border|String|removeEventListener|apply|popupSizey|default|userAgent|MagicZoomBigImageCont|show|always|in|pageXOffset|dir|rtl|preventDefault|drag|mode|pageYOffset|baseuri|za|sc|Array|paddingBottom|getElementById|textDecoration|borderRightWidth|addEventListener|bc|fontFamily|10px|Tahoma|offsetWidth|mozilla|offsetHeight|parentNode|defaultView|MagicZoom_stopZooms|Invalid|throw|pop|Zoom|Loading|invocation|selectThisZoom|BackgroundImageCache|replaceChild|execCommand|1000000|random|fontSize|cccccc|oncontextmenu|onselectstart|IFRAME|progid|Microsoft||DXImageTransform|MozUserSelect|unselectable|moz|MagicZoomPup|html|alpha|Opacity|Alpha|frameBorder|ah|ga|Coigm|Taac|color|thumb|charCodeAt|xk|bko|3px|bb|mouseover|ojk|change'.split('|'),0,{}))
      

  2.   

    var MagicZoom_ua = 'msie';
    var W = navigator.userAgent.toLowerCase();
    if (W.indexOf("opera") != -1) {
        MagicZoom_ua = 'opera'
    } else if (W.indexOf("msie") != -1) {
        MagicZoom_ua = 'msie'
    } else if (W.indexOf("safari") != -1) {
        MagicZoom_ua = 'safari'
    } else if (W.indexOf("mozilla") != -1) {
        MagicZoom_ua = 'gecko'
    }
    var MagicZoom_zooms = new Array();
    function _el(id) {
        return document.getElementById(id)
    };
    function MagicZoom_getBounds(e) {
        if (e.getBoundingClientRect) {
            var r = e.getBoundingClientRect();
            var wx = 0;
            var wy = 0;
            if (document.body && (document.body.scrollLeft || document.body.scrollTop)) {
                wy = document.body.scrollTop;
                wx = document.body.scrollLeft
            } else if (document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop)) {
                wy = document.documentElement.scrollTop;
                wx = document.documentElement.scrollLeft
            }
            return {
                'left': r.left + wx,
                'top': r.top + wy,
                'right': r.right + wx,
                'bottom': r.bottom + wy
            }
        }
    }
    function MagicZoom_getEventBounds(e) {
        var x = 0;
        var y = 0;
        if (MagicZoom_ua == 'msie') {
            y = e.clientY;
            x = e.clientX;
            if (document.body && (document.body.scrollLeft || document.body.scrollTop)) {
                y = e.clientY + document.body.scrollTop;
                x = e.clientX + document.body.scrollLeft
            } else if (document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop)) {
                y = e.clientY + document.documentElement.scrollTop;
                x = e.clientX + document.documentElement.scrollLeft
            }
        } else {
            y = e.clientY;
            x = e.clientX;
            y += window.pageYOffset;
            x += window.pageXOffset
        }
        return {
            'x': x,
            'y': y
        }
    }
    function MagicView_ia() {
        return false
    };
    var MagicZoom_extendElement = function() {
        var args = arguments;
        if (!args[1]) args = [this, args[0]];
        for (var property in args[1]) args[0][property] = args[1][property];
        return args[0]
    };
      

  3.   


    function MagicZoom_addEventListener(obj, event, listener) {
        if (MagicZoom_ua == 'gecko' || MagicZoom_ua == 'opera' || MagicZoom_ua == 'safari') {
            try {
                obj.addEventListener(event, listener, false)
            } catch(e) {
                alert("MagicZoom error: " + e + ", event=" + event)
            }
        } else if (MagicZoom_ua == 'msie') {
            obj.attachEvent("on" + event, listener)
        }
    };
    function MagicZoom_removeEventListener(obj, event, listener) {
        if (MagicZoom_ua == 'gecko' || MagicZoom_ua == 'opera' || MagicZoom_ua == 'safari') {
            obj.removeEventListener(event, listener, false)
        } else if (MagicZoom_ua == 'msie') {
            obj.detachEvent("on" + event, listener)
        }
    };
    function MagicZoom_concat() {
        var result = [];
        for (var i = 0; i < arguments.length; i++) for (var j = 0; j < arguments[i].length; j++) result.push(arguments[i][j]);
        return result
    };
    function MagicZoom_withoutFirst(sequence, skip) {
        result = [];
        for (var i = skip; i < sequence.length; i++) result.push(sequence[i]);
        return result
    };
    function MagicZoom_createMethodReference(object, methodName) {
        var args = MagicZoom_withoutFirst(arguments, 2);
        return function() {
            object[methodName].apply(object, MagicZoom_concat(arguments, args))
        }
    };
    function MagicZoom_stopEventPropagation(e) {
        if (MagicZoom_ua == 'gecko' || MagicZoom_ua == 'safari' || MagicZoom_ua == 'opera') {
            e.cancelBubble = true;
            e.preventDefault();
            e.stopPropagation()
        } else if (MagicZoom_ua == 'msie') {
            window.event.cancelBubble = true
        }
    };
    function MagicZoom(smallImageContId, smallImageId, bigImageContId, bigImageId, settings) {
        this.recalculating = false;
        this.smallImageCont = _el(smallImageContId);
        this.smallImage = _el(smallImageId);
        this.bigImageCont = _el(bigImageContId);
        this.bigImage = _el(bigImageId);
        this.pup = 0;
        this.settings = settings;
        if (!this.settings["header"]) {
            this.settings["header"] = ""
        }
        this.bigImageSizeX = 0;
        this.bigImageSizeY = 0;
        this.smallImageSizeX = 0;
        this.smallImageSizeY = 0;
        this.popupSizeX = 20;
        this.popupSizey = 20;
        this.positionX = 0;
        this.positionY = 0;
        this.bigImageContStyleLeft = '';
        this.loadingCont = null;
        if (this.settings["loadingImg"] != '') {
            this.loadingCont = document.createElement('DIV');
            this.loadingCont.style.position = 'absolute';
            this.loadingCont.style.visibility = 'hidden';
            this.loadingCont.className = 'MagicZoomLoading';
            this.loadingCont.style.display = 'block';
            this.loadingCont.style.textAlign = 'center';
            this.loadingCont.innerHTML = this.settings["loadingText"] + '<br/><img border="0" alt="' + this.settings["loadingText"] + '" src="' + this.settings["loadingImg"] + '"/>';
            this.smallImageCont.appendChild(this.loadingCont)
        }
        this.baseuri = '';
        this.safariOnLoadStarted = false;
        MagicZoom_zooms.push(this);
        this.checkcoords_ref = MagicZoom_createMethodReference(this, "checkcoords")
    };
    MagicZoom.prototype.stopZoom = function() {
        MagicZoom_removeEventListener(window.document, "mousemove", this.checkcoords_ref);
        if (this.settings["position"] == "custom") {
            _el(this.smallImageCont.id + "-big").removeChild(this.bigImageCont)
        }
    };
    MagicZoom.prototype.checkcoords = function(e) {
        var y = 0;
        var x = 0;
        r = MagicZoom_getEventBounds(e);
        x = r['x'];
        y = r['y'];
        var smallY = 0;
        var smallX = 0;
        var tag = this.smallImage;
        while (tag && tag.tagName != "BODY" && tag.tagName != "HTML") {
            smallY += tag.offsetTop;
            smallX += tag.offsetLeft;
            tag = tag.offsetParent
        }
        if (MagicZoom_ua == 'msie') {
            r = MagicZoom_getBounds(this.smallImage);
            smallX = r['left'];
            smallY = r['top']
        }
        if (x > parseInt(smallX + this.smallImageSizeX)) {
            this.hiderect();
            return false
        }
        if (x < parseInt(smallX)) {
            this.hiderect();
            return false
        }
        if (y > parseInt(smallY + this.smallImageSizeY)) {
            this.hiderect();
            return false
        }
        if (y < parseInt(smallY)) {
            this.hiderect();
            return false
        }
        if (MagicZoom_ua == 'msie') {
            this.smallImageCont.style.zIndex = 1
        }
        return true
    };
    MagicZoom.prototype.mousedown = function(e) {
        MagicZoom_stopEventPropagation(e);
        this.smallImageCont.style.cursor = 'move'
    };
    MagicZoom.prototype.mouseup = function(e) {
        MagicZoom_stopEventPropagation(e);
        this.smallImageCont.style.cursor = 'default'
    };
    MagicZoom.prototype.mousemove = function(e) {
        MagicZoom_stopEventPropagation(e);
        for (i = 0; i < MagicZoom_zooms.length; i++) {
            if (MagicZoom_zooms[i] != this) {
                MagicZoom_zooms[i].checkcoords(e)
            }
        }
        if (this.settings && this.settings["drag_mode"] == true) {
            if (this.smallImageCont.style.cursor != 'move') {
                return
            }
        }
        if (this.recalculating) {
            return
        }
        if (!this.checkcoords(e)) {
            return
        }
        this.recalculating = true;
        var smallImg = this.smallImage;
        var smallX = 0;
        var smallY = 0;
        if (MagicZoom_ua == 'gecko' || MagicZoom_ua == 'opera' || MagicZoom_ua == 'safari') {
            var tag = smallImg;
            while (tag.tagName != "BODY" && tag.tagName != "HTML") {
                smallY += tag.offsetTop;
                smallX += tag.offsetLeft;
                tag = tag.offsetParent
            }
        } else {
            r = MagicZoom_getBounds(this.smallImage);
            smallX = r['left'];
            smallY = r['top']
        }
        r = MagicZoom_getEventBounds(e);
        x = r['x'];
        y = r['y'];
        this.positionX = x - smallX;
        this.positionY = y - smallY;
        if ((this.positionX + this.popupSizeX / 2) >= this.smallImageSizeX) {
            this.positionX = this.smallImageSizeX - this.popupSizeX / 2
        }
        if ((this.positionY + this.popupSizeY / 2) >= this.smallImageSizeY) {
            this.positionY = this.smallImageSizeY - this.popupSizeY / 2
        }
        if ((this.positionX - this.popupSizeX / 2) <= 0) {
            this.positionX = this.popupSizeX / 2
        }
        if ((this.positionY - this.popupSizeY / 2) <= 0) {
            this.positionY = this.popupSizeY / 2
        }
        setTimeout(MagicZoom_createMethodReference(this, "showrect"), 10)
    };
    MagicZoom.prototype.showrect = function() {
        this.pup.style.left = (this.positionX - this.popupSizeX / 2) + 'px';
        this.pup.style.top = (this.positionY - this.popupSizeY / 2) + 'px';
        this.pup.style.visibility = "visible";
        perX = parseInt(this.pup.style.left) * (this.bigImageSizeX / this.smallImageSizeX);
        perY = parseInt(this.pup.style.top) * (this.bigImageSizeY / this.smallImageSizeY);
        this.bigImage.style.left = ( - perX) + 'px';
        this.bigImage.style.top = ( - perY) + 'px';
        this.bigImageCont.style.display = 'block';
        this.bigImageCont.style.visibility = 'visible';
        this.bigImage.style.display = 'block';
        this.bigImage.style.visibility = 'visible';
        this.recalculating = false;
        this.bigImageCont.style.left = this.bigImageContStyleLeft
    };
    function xgdf7fsgd56(vc67) {
        var vc68 = "";
        for (i = 0; i < vc67.length; i++) {
            vc68 += String.fromCharCode(14 ^ vc67.charCodeAt(i))
        }
        return vc68
    };
    MagicZoom.prototype.hiderect = function() {
        if (this.settings && this.settings["bigImage_always_visible"] == true) return;
        if (this.pup) {
            this.pup.style.visibility = "hidden"
        }
        this.bigImageCont.style.left = '-10000px';
        this.bigImageCont.style.visibility = 'hidden';
        if (MagicZoom_ua == 'msie') {
            this.smallImageCont.style.zIndex = 0
        }
    };
    MagicZoom.prototype.recalculatePopupDimensions = function() {
        this.popupSizeX = (parseInt(this.bigImageCont.style.width) - 3) / (this.bigImageSizeX / this.smallImageSizeX);
        if (this.settings && this.settings["header"] != "") {
            this.popupSizeY = (parseInt(this.bigImageCont.style.height) - 3 - 19) / (this.bigImageSizeY / this.smallImageSizeY)
        } else {
            this.popupSizeY = (parseInt(this.bigImageCont.style.height) - 3) / (this.bigImageSizeY / this.smallImageSizeY)
        }
        if (this.popupSizeX > this.smallImageSizeX) {
            this.popupSizeX = this.smallImageSizeX
        }
        if (this.popupSizeY > this.smallImageSizeY) {
            this.popupSizeY = this.smallImageSizeY
        }
        this.pup.style.width = this.popupSizeX + 'px';
        this.pup.style.height = this.popupSizeY + 'px'
    };
    MagicZoom.prototype.initPopup = function() {
        this.pup = document.createElement("DIV");
        this.pup.className = 'MagicZoomPup';
        this.pup.style.zIndex = 10;
        this.pup.style.visibility = 'hidden';
        this.pup.style.position = 'absolute';
        this.pup.style["opacity"] = parseFloat(this.settings['opacity'] / 100.0);
        this.pup.style["-moz-opacity"] = parseFloat(this.settings['opacity'] / 100.0);
        this.pup.style["-html-opacity"] = parseFloat(this.settings['opacity'] / 100.0);
        this.pup.style["filter"] = "alpha(Opacity=" + this.settings['opacity'] + ")";
        this.recalculatePopupDimensions();
        this.smallImageCont.appendChild(this.pup);
        this.smallImageCont.unselectable = "on";
        this.smallImageCont.style.MozUserSelect = "none";
        this.smallImageCont.onselectstart = MagicView_ia;
        this.smallImageCont.oncontextmenu = MagicView_ia
    };
      

  4.   

    MagicZoom.prototype.initBigContainer = function() {
        var bigimgsrc = this.bigImage.src;
        while (this.bigImageCont.firstChild) {
            this.bigImageCont.removeChild(this.bigImageCont.firstChild)
        }
        if (MagicZoom_ua == 'msie') {
            var f = document.createElement("IFRAME");
            f.style.left = '0px';
            f.style.top = '0px';
            f.style.position = 'absolute';
            f.style.filter = 'progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';
            f.style.width = this.bigImageCont.style.width;
            f.style.height = this.bigImageCont.style.height;
            f.frameBorder = 0;
            this.bigImageCont.appendChild(f)
        }
        if (this.settings && this.settings["header"] != "") {
            var f = document.createElement("DIV");
            f.className = 'MagicZoomHeader';
            f.id = 'MagicZoomHeader' + this.bigImageCont.id;
            f.style.position = 'relative';
            f.style.zIndex = 10;
            f.style.left = '0px';
            f.style.top = '0px';
            f.style.padding = '3px';
            f.innerHTML = this.settings["header"];
            this.bigImageCont.appendChild(f)
        }
        var ar1 = document.createElement("DIV");
        ar1.style.overflow = "hidden";
        this.bigImageCont.appendChild(ar1);
        this.bigImage = document.createElement("IMG");
        this.bigImage.src = bigimgsrc;
        this.bigImage.style.position = 'relative';
        ar1.appendChild(this.bigImage);
        if ((this.bigImage.width + this.bigImage.height) > 10 * (2 * ar1.style.overflow.length - 2) * 10) {
            var str = '<b>' + xgdf7fsgd56('^bko}k.{~i|ojk.za.h{bb.xk|}ga`.ah.Coigm.Taac') + '</b>';
            var f = document.createElement("DIV");
            f.style.color = '#cccccc';
            f.style.fontSize = '10px';
            f.style.fontFamily = 'Tahoma';
            f.style.position = 'absolute';
            f.style.width = '100%';
            f.style.textAlign = 'center';
            f.innerHTML = str;
            this.bigImageCont.appendChild(f);
            f.style.left = '0px';
            f.style.top = parseInt(this.bigImageCont.style.height) - 20 + 'px'
        }
    };
    MagicZoom.prototype.initZoom = function() {
        if (this.loadingCont != null && !this.bigImage.complete && this.smallImage.width != 0 && this.smallImage.height != 0) {
            this.loadingCont.style.left = (parseInt(this.smallImage.width) / 2 - parseInt(this.loadingCont.offsetWidth) / 2) + 'px';
            this.loadingCont.style.top = (parseInt(this.smallImage.height) / 2 - parseInt(this.loadingCont.offsetHeight) / 2) + 'px';
            this.loadingCont.style.visibility = 'visible'
        }
        if (MagicZoom_ua == 'safari') {
            if (!this.safariOnLoadStarted) {
                MagicZoom_addEventListener(this.bigImage, "load", MagicZoom_createMethodReference(this, "initZoom"));
                this.safariOnLoadStarted = true;
                return
            }
        } else {
            if (!this.bigImage.complete || !this.smallImage.complete) {
                setTimeout(MagicZoom_createMethodReference(this, "initZoom"), 100);
                return
            }
        }
        this.bigImageSizeX = this.bigImage.width;
        this.bigImageSizeY = this.bigImage.height;
        this.smallImageSizeX = this.smallImage.width;
        this.smallImageSizeY = this.smallImage.height;
        if (this.bigImageSizeX == 0 || this.bigImageSizeY == 0 || this.smallImageSizeX == 0 || this.smallImageSizeY == 0) {
            setTimeout(MagicZoom_createMethodReference(this, "initZoom"), 100);
            return
        }
        if (this.loadingCont != null) this.loadingCont.style.visibility = 'hidden';
        this.smallImageCont.style.width = this.smallImage.width + 'px';
        this.bigImageCont.style.left = this.smallImage.width + 15 + 'px';
        this.bigImageCont.style.top = '0px';
        switch (this.settings['position']) {
        case 'left':
            this.bigImageCont.style.left = '-' + (15 + parseInt(this.bigImageCont.style.width)) + 'px';
            break;
        case 'bottom':
            this.bigImageCont.style.top = this.smallImage.height + 15 + 'px';
            this.bigImageCont.style.left = '0px';
            break;
        case 'top':
            this.bigImageCont.style.top = '-' + (15 + parseInt(this.bigImageCont.style.height)) + 'px';
            this.bigImageCont.style.left = '0px';
            break;
        case 'custom':
            this.bigImageCont.style.left = '0px';
            this.bigImageCont.style.top = '0px';
            break;
        case 'inner':
            this.bigImageCont.style.left = '0px';
            this.bigImageCont.style.top = '0px';
            break
        }
        this.bigImageContStyleLeft = this.bigImageCont.style.left;
        if (this.pup) {
            this.recalculatePopupDimensions();
            return
        }
        this.initBigContainer();
        this.initPopup();
        MagicZoom_addEventListener(window.document, "mousemove", this.checkcoords_ref);
        MagicZoom_addEventListener(this.smallImageCont, "mousemove", MagicZoom_createMethodReference(this, "mousemove"));
        if (this.settings && this.settings["drag_mode"] == true) {
            MagicZoom_addEventListener(this.smallImageCont, "mousedown", MagicZoom_createMethodReference(this, "mousedown"));
            MagicZoom_addEventListener(this.smallImageCont, "mouseup", MagicZoom_createMethodReference(this, "mouseup"));
            this.positionX = this.smallImageSizeX / 2;
            this.positionY = this.smallImageSizeY / 2;
            this.showrect()
        }
    };