这个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楼接着
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]
};
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
};
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()
}
};