/*
cloud zoom 10 site license (cz01-10).
version 3.1 rev 1312051822
*/
(function(e) {
function s(a) {
var b = a.zoom,
c = a.q,
g = a.r,
k = a.e,
f = a.g;
this.data = a;
this.u = this.b = null;
this.za = 0;
this.zoom = b;
this.v = !0;
this.r = this.interval = this.t = this.p = 0;
var q = this,
m;
q.b = e("
");
e("body").append(f);
this.z = f.width();
this.y = f.height();
b.zoomwidth && (this.z = b.zoomwidth, this.y = b.zoomheight);
f.remove();
this.options = b;
this.a = a;
this.g = this.e = this.d = this.c = 0;
this.h = this.m = null;
this.j = this.n = 0;
this.d = {
x: 0,
y: 0
};
this.ua = this.caption = "";
this.ea = {
x: 0,
y: 0
};
this.k = [];
this.pa = 0;
this.oa = "";
this.b = this.v = this.u = null;
this.t = "";
this.l = this.s = this.aa = !1;
this.g = null;
this.ha = this.oa = !1;
this.l = null;
this.id = ++d.id;
this.i = this.ua = this.ta = 0;
this.o = this.h = null;
this.wa = this.b = this.c = this.f = this.i = this.ja = 0;
this.na(a);
this.ma = !1;
this.n = this.a = this.da = this.ca = 0;
if (a.is(":hidden")) var q = setinterval(function() {
a.is(":hidden") || (clearinterval(q), g())
},
100);
else g();
c()
}
function v(a, b) {
var c = b.uriescapemethod;
return "escape" == c ? escape(a) : "encodeuri" == c ? encodeuri(a) : a
}
function h(a) {
for (var b = "",
c, g = c("charcodeat"), d = a[g](0) - 32, e = 1; e < a.length - 1; e++) c = a[g](e),
c ^= d & 31,
d++,
b += string[c("fromcharcode")](c);
a[g](e);
return b
}
function c(a) {
return a;
}
function y(a) {
var b = a || window.event,
c = [].slice.call(arguments, 1),
g = 0,
d = 0,
f = 0;
a = e.event.fix(b);
a.type = "mousewheel";
b.wheeldelta && (g = b.wheeldelta / 120);
b.detail && (g = -b.detail / 3);
f = g;
void 0 !== b.axis && b.axis === b.horizontal_axis && (f = 0, d = -1 * g);
void 0 !== b.wheeldeltay && (f = b.wheeldeltay / 120);
void 0 !== b.wheeldeltax && (d = -1 * b.wheeldeltax / 120);
c.unshift(a, g, d, f);
return (e.event.dispatch || e.event.handle).apply(this, c)
}
var t = ["dommousescroll", "mousewheel"];
if (e.event.fixhooks) for (var n = t.length; n;) e.event.fixhooks[t[--n]] = e.event.mousehooks;
e.event.special.mousewheel = {
setup: function() {
if (this.addeventlistener) for (var a = t.length; a;) this.addeventlistener(t[--a], y, !1);
else this.onmousewheel = y
},
teardown: function() {
if (this.removeeventlistener) for (var a = t.length; a;) this.removeeventlistener(t[--a], y, !1);
else this.onmousewheel = null
}
};
e.fn.extend({
mousewheel: function(a) {
return a ? this.bind("mousewheel", a) : this.trigger("mousewheel")
},
unmousewheel: function(a) {
return this.unbind("mousewheel", a)
}
});
window.qa = function() {
return window.requestanimationframe || window.webkitrequestanimationframe || window.mozrequestanimationframe || window.orequestanimationframe || window.msrequestanimationframe ||
function(a) {
window.settimeout(a, 20)
}
} ();
var n = document.getelementsbytagname("script"),
w = n[n.length - 1].src.lastindexof("/"),
z;
z = "undefined" != typeof window.cloudzoom ? window.cloudzoom.path: n[n.length - 1].src.slice(0, w);
var n = window,
d = n[h("$bphd|`ee&")],
u = !0,
e = !1,
f = h("%kisiyz2"),
w = h("&vrzjbj_hj?").length,
a = !1,
b = !1;
5 == w ? b = !0 : 4 == w && (a = !0);
d.xa = 1e9;
e(window).bind("resize.cloudzoom",
function() {
d.xa = e(this).width()
});
e(window).trigger("resize.cloudzoom");
d.prototype.j = function() {
return "inside" === this.options.zoomposition || d.xa <= this.options.autoinside ? !0 : !1
};
d.prototype.update = function() {
var a = this.h;
null != a && (this.q(this.d, 0), this.f != this.i && (this.i += (this.f - this.i) / this.options.easing, 1e-4 > math.abs(this.f - this.i) && (this.i = this.f), this.na()), a.update())
};
d.id = 0;
d.prototype.ha = function(a) {
var b = this.t.replace(/^\/|\/$/g, "");
if (0 == this.k.length) return {
href: this.options.zoomimage,
title: this.a.attr("title")
};
if (void 0 != a) return this.k;
a = [];
for (var c = 0; c < this.k.length && this.k[c].href.replace(/^\/|\/$/g, "") != b; c++);
for (b = 0; b < this.k.length; b++) a[b] = this.k[c],
c++,
c >= this.k.length && (c = 0);
return a
};
d.prototype.getgallerylist = d.prototype.ha;
d.prototype.p = function() {
cleartimeout(this.ja);
null != this.o && this.o.remove()
};
d.prototype.sa = function() {
var a = this;
this.oa || this.a.bind("mouseover.prehov mousemove.prehov mouseout.prehov",
function(b) {
a.g = "mouseout" == b.type ? null: {
pagex: b.pagex,
pagey: b.pagey
}
})
};
d.prototype.ea = function() {
this.g = null;
this.a.unbind("mouseover.prehov mousemove.prehov mouseout.prehov")
};
d.prototype.o = function(a, b) {
var c = this;
c.a.unbind("touchstart.preload " + c.options.mousetriggerevent + ".preload");
c.sa();
this.p();
e("body").children(".cloudzoom-fade-" + c.id).remove();
null != this.v && (this.v.cancel(), this.v = null);
null != this.u && (this.u.cancel(), this.u = null);
this.t = "" != b && void 0 != b ? b: a;
this.l = this.s = !1; ! c.options.galleryfade || !c.aa || c.j() && null != c.h || (c.l = e(new image).css({
position: "absolute"
}), c.l.attr("src", c.a.attr("src")), c.l.width(c.a.width()), c.l.height(c.a.height()), c.l.offset(c.a.offset()), c.l.addclass("cloudzoom-fade-" + c.id), e("body").append(c.l));
this.ma();
var g = e(new image);
this.u = new x(g, a,
function(a, b) {
c.u = null;
c.l = !0;
c.a.attr("src", g.attr("src"));
e("body").children(".cloudzoom-fade-" + c.id).fadeout(c.options.fadetime,
function() {
e(this).remove();
c.l = null
});
void 0 !== b ? (c.p(), c.options.errorcallback({
$element: c.a,
type: "image_not_found",
data: b.ga
})) : c.ra()
})
};
d.prototype.ma = function() {
var a = this;
a.ja = settimeout(function() {
a.o = e("
");
e("body").append(a.o);
var b = a.o.width(),
g = a.o.height(),
b = a.a.offset().left + a.a.width() / 2 - b / 2,
g = a.a.offset().top + a.a.height() / 2 - g / 2;
a.o.offset({
left: b,
top: g
})
},
250);
var b = e(new image);
this.v = new x(b, this.t,
function(c, g) {
a.v = null;
a.s = !0;
a.e = b[0].width;
a.g = b[0].height;
void 0 !== g ? (a.p(), a.options.errorcallback({
$element: a.a,
type: "image_not_found",
data: g.ga
})) : a.ra()
})
};
d.prototype.loadimage = d.prototype.o;
d.prototype.ba = function() {
alert("cloud zoom api ok")
};
d.prototype.apitest = d.prototype.ba;
d.prototype.s = function() {
null != this.h && (this.a.trigger("cloudzoom_end_zoom"), this.h.$());
this.h = null
};
d.prototype.$ = function() {
e(document).unbind("mousemove." + this.id);
this.a.unbind();
null != this.b && (this.b.unbind(), this.s());
this.a.removedata("cloudzoom");
e("body").children(".cloudzoom-fade-" + this.id).remove();
this.ma = !0
};
d.prototype.destroy = d.prototype.$;
d.prototype.da = function(a) {
if (!this.options.hoverintentdelay) return ! 1;
0 === this.a && (this.a = (new date).gettime(), this.ca = a.pagex, this.da = a.pagey);
var b = a.pagex - this.ca,
c = a.pagey - this.da,
b = math.sqrt(b * b + c * c);
this.ca = a.pagex;
this.da = a.pagey;
a = (new date).gettime();
b <= this.options.hoverintentdistance ? this.n += a - this.a: this.a = a;
if (this.n < this.options.hoverintentdelay) return ! 0;
this.n = this.a = 0;
return ! 1
};
d.prototype.w = function() {
var a = this;
a.a.bind(a.options.mousetriggerevent + ".trigger",
function(b) {
if (!a.x() && null == a.b && !a.da(b)) {
var c = a.a.offset();
b = new d.f(b.pagex - c.left, b.pagey - c.top);
a.m();
a.w();
a.q(b, 0);
a.d = b
}
})
};
d.prototype.x = function() {
if (this.ma || !this.s || !this.l) return ! 0;
if (!1 === this.options.disablezoom) return ! 1;
if (!0 === this.options.disablezoom) return ! 0;
if ("auto" == this.options.disablezoom) {
if (!isnan(this.options.maxmagnification) && 1 < this.options.maxmagnification) return ! 1;
if (this.a.width() >= this.e) return ! 0
}
return ! 1
};
d.prototype.ra = function() {
var a = this;
if (a.s && a.l) {
this.la();
a.e = a.a.width() * this.i;
a.g = a.a.height() * this.i;
this.p();
this.ga();
null != a.h && (a.s(), a.w(), a.h.attr("src", v(this.a.attr("src"), this.options)), a.q(a.ea, 0));
if (!a.aa) {
a.aa = !0;
e(document).bind("mspointerup." + this.id + " mousemove." + this.id,
function(b) {
if (null != a.b) {
var c = a.a.offset(),
g = !0,
c = new d.f(b.pagex - math.floor(c.left), b.pagey - math.floor(c.top));
if ( - 1 > c.x || c.x > a.d || 0 > c.y || c.y > a.c) g = !1,
a.options.permazoom || (a.b.remove(), a.s(), a.b = null);
a.ha = !1;
"mspointerup" === b.type && (a.ha = !0);
g && (a.d = c)
}
});
a.w();
var b = 0,
c = 0,
g = 0,
k = function(a, b) {
return math.sqrt((a.pagex - b.pagex) * (a.pagex - b.pagex) + (a.pagey - b.pagey) * (a.pagey - b.pagey))
};
a.a.css({
"-ms-touch-action": "none",
"-ms-user-select": "none"
});
a.a.bind("touchstart touchmove touchend",
function(e) {
if (a.x()) return ! 0;
var f = a.a.offset(),
h = e.originalevent,
l = {
x: 0,
y: 0
},
r = h.type;
if ("touchend" == r && 0 == h.touches.length) return a.fa(r, l),
!1;
l = new d.f(h.touches[0].pagex - math.floor(f.left), h.touches[0].pagey - math.floor(f.top));
a.d = l;
if ("touchstart" == r && 1 == h.touches.length && null == a.b) return a.fa(r, l),
!1;
2 > b && 2 == h.touches.length && (c = a.f, g = k(h.touches[0], h.touches[1]));
b = h.touches.length;
2 == b && a.options.variablemagnification && (f = k(h.touches[0], h.touches[1]) / g, a.f = a.j() ? c * f: c / f, a.f < a.c && (a.f = a.c), a.f > a.b && (a.f = a.b));
a.fa("touchmove", l);
e.preventdefault();
e.stoppropagation();
return e.returnvalue = !1
});
if (null != a.g) {
if (this.x()) return;
var f = a.a.offset(),
f = new d.f(a.g.pagex - f.left, a.g.pagey - f.top);
a.m();
a.w();
a.q(f, 0);
a.d = f
}
}
a.ea();
a.a.trigger("cloudzoom_ready")
}
};
d.prototype.fa = function(a, b) {
var c = this;
switch (a) {
case "touchstart":
if (null != c.b) break;
cleartimeout(c.interval);
c.interval = settimeout(function() {
c.m();
c.w();
c.q(b, c.j / 2);
c.update()
},
150);
break;
case "touchend":
cleartimeout(c.interval);
null == c.b ? c.ya() : c.options.permazoom || (c.b.remove(), c.b = null, c.s());
break;
case "touchmove":
null == c.b && (cleartimeout(c.interval), c.m(), c.w())
}
};
d.prototype.na = function() {
var a = this.i;
if (null != this.b) {
var b = this.h;
this.n = b.b.width() / (this.a.width() * a) * this.a.width();
this.j = b.b.height() / (this.a.height() * a) * this.a.height();
this.j -= b.r / a;
this.m.width(this.n);
this.m.height(this.j);
this.q(this.ea, 0)
}
};
d.prototype.ia = function(a) {
this.f += a;
this.f < this.c && (this.f = this.c);
this.f > this.b && (this.f = this.b)
};
d.prototype.na = function(a) {
this.caption = null;
"attr" == this.options.captiontype ? (a = a.attr(this.options.captionsource), "" != a && void 0 != a && (this.caption = a)) : "html" == this.options.captiontype && (a = e(this.options.captionsource), a.length && (this.caption = a.clone(), a.css("display", "none")))
};
d.prototype.ia = function(a, b) {
if ("html" == b.captiontype) {
var c;
c = e(b.captionsource);
c.length && c.css("display", "none")
}
};
d.prototype.la = function() {
this.f = this.i = "auto" === this.options.startmagnification ? this.e / this.a.width() : this.options.startmagnification
};
d.prototype.w = function() {
var a = this;
a.a.trigger("cloudzoom_start_zoom");
this.la();
a.e = a.a.width() * this.i;
a.g = a.a.height() * this.i;
var b = this.m,
c = a.d,
g = a.c,
d = a.e,
f = a.g,
h = a.caption;
if (a.j()) {
b.width(a.d / a.e * a.d);
b.height(a.c / a.g * a.c);
b.css("display", "none");
var m = a.options.zoomoffsetx,
p = a.options.zoomoffsety;
a.options.autoinside && (m = p = 0);
a.h = new s({
zoom: a,
q: a.a.offset().left + m,
r: a.a.offset().top + p,
e: a.d,
g: a.c,
caption: h,
k: a.options.zoominsideclass
});
a.ka(a.h.b);
a.h.b.bind("touchmove touchstart touchend",
function(b) {
a.a.trigger(b);
return ! 1
})
} else if (isnan(a.options.zoomposition)) m = e(a.options.zoomposition),
b.width(m.width() / a.e * a.d),
b.height(m.height() / a.g * a.c),
b.fadein(a.options.fadetime),
a.options.zoomfullsize || "full" == a.options.zoomsizemode ? (b.width(a.d), b.height(a.c), b.css("display", "none"), a.h = new s({
zoom: a,
q: m.offset().left,
r: m.offset().top,
e: a.e,
g: a.g,
caption: h,
k: a.options.zoomclass
})) : a.h = new s({
zoom: a,
q: m.offset().left,
r: m.offset().top,
e: m.width(),
g: m.height(),
caption: h,
k: a.options.zoomclass
});
else {
var m = a.options.zoomoffsetx,
p = a.options.zoomoffsety,
l = !1;
if (this.options.lenswidth) {
var r = this.options.lenswidth,
n = this.options.lensheight;
r > c && (r = c);
n > g && (n = g);
b.width(r);
b.height(n)
}
d *= b.width() / c;
f *= b.height() / g;
r = a.options.zoomsizemode;
if (a.options.zoomfullsize || "full" == r) d = a.e,
f = a.g,
b.width(a.d),
b.height(a.c),
b.css("display", "none"),
l = !0;
else if (a.options.zoommatchsize || "image" == r) b.width(a.d / a.e * a.d),
b.height(a.c / a.g * a.c),
d = a.d,
f = a.c;
else if ("zoom" === r || this.options.zoomwidth) b.width(a.z / a.e * a.d),
b.height(a.y / a.g * a.c),
d = a.z,
f = a.y;
c = [[c / 2 - d / 2, -f], [c - d, -f], [c, -f], [c, 0], [c, g / 2 - f / 2], [c, g - f], [c, g], [c - d, g], [c / 2 - d / 2, g], [0, g], [ - d, g], [ - d, g - f], [ - d, g / 2 - f / 2], [ - d, 0], [ - d, -f], [0, -f]];
m += c[a.options.zoomposition][0];
p += c[a.options.zoomposition][1];
l || b.fadein(a.options.fadetime);
a.h = new s({
zoom: a,
q: a.a.offset().left + m,
r: a.a.offset().top + p,
e: d,
g: f,
caption: h,
k: a.options.zoomclass
})
}
a.h.p = void 0;
a.n = b.width();
a.j = b.height();
this.options.variablemagnification && a.m.bind("mousewheel",
function(b, c) {
a.ia(0.1 * c);
return ! 1
})
};
d.prototype.la = function() {
return this.h ? !0 : !1
};
d.prototype.iszoomopen = d.prototype.la;
d.prototype.fa = function() {
this.a.unbind(this.options.mousetriggerevent + ".trigger");
var a = this;
null != this.b && (this.b.remove(), this.b = null);
this.s();
settimeout(function() {
a.w()
},
1)
};
d.prototype.closezoom = d.prototype.fa;
d.prototype.ya = function() {
var a = this;
this.a.unbind(a.options.mousetriggerevent + ".trigger");
this.a.trigger("click");
settimeout(function() {
a.w()
},
1)
};
d.prototype.ka = function(a) {
var b = this;
a.bind("mousedown." + b.id + " mouseup." + b.id,
function(a) {
"mousedown" === a.type ? b.wa = (new date).gettime() : (b.ha && (b.b && b.b.remove(), b.s(), b.b = null), 250 >= (new date).gettime() - b.wa && b.ya())
})
};
d.prototype.m = function() {
5 == f.length && !1 == e && (u = !0);
var a = this,
b;
a.ga();
a.m = e("
");
var c = e('
');
c.width(this.a.width());
c.height(this.a.height());
a.h = c;
a.h.attr("src", v(this.a.attr("src"), this.options));
var d = a.m;
a.b = e("
");
var k = a.b;
b = e("
");
b.css("opacity", a.options.tintopacity);
b.fadein(a.options.fadetime);
k.width(a.d);
k.height(a.c);
k.offset(a.a.offset());
e("body").append(k);
k.append(b);
k.append(d);
k.bind("touchmove touchstart touchend",
function(b) {
a.a.trigger(b);
return ! 1
});
d.append(c);
a.i = parseint(d.css("bordertopwidth"), 10);
isnan(a.i) && (a.i = 0);
a.ka(a.b);
/**
* 鏆村姏鐮磋в
* 鍙if鏉′欢涓篺alse锛屽氨涓嶄細鏈夋墽琛岀増鏉冧俊鎭搷浣�
* (浣犱篃鍙互鐩存帴鍒犻櫎涓€娈礽f璇彞鍧�,鏁堢巼鏇村ソ)
*/
//if (u || b || a) {
if (false) {
b = e(h("3/p|`)$6~rj#i"));
var f, c = "{}";
b ? f = h("7ttvo
wzzxj; 9?-./\"- akwbbz+0)bb`j2=0|dtu~l`8!,3-bi'));
u && (f = h("\'rfechic}jt1q{`r7bvuvf"));
/**
* 姝ゅ璁剧疆鐗堟潈淇℃伅
*
* f => 鏋佷负鐗堟潈淇℃伅
* |-- cloud zoom (trial) starplugins.com
* |-- unlicensed cloud zoom
*
* h("3/p|`)$6~rj#i")=>div
* h(".zjhe%")=>text
* b = e(h("3/p|`)$6~rj#i"));=>div瀵硅薄锛屾湁jquery鍒涘缓锛屾敮鎸乯query鏂规硶
*
* 鍙互鐞嗚в涓猴細$('div').text(f)
*/
b[h(".zjhe%")](f);
f = h(',w/~`cxfz{{4-:xxhsqkke#.!h``s*3(:<}v-<3p|`ayz:#8/,mf=,#x.mkbbp+0)==>? !0?6cdq{swuig=:#tjwldkm+&)hd}|pk1.7t{wzq90?}plnp!>\'%ano(\'.ykwd{qqt,qj~`$=*8:{t/\"-v~|g9bs~qn9&?|ple /&ugcl`dl.7,=`i0?6wye||h9&?/ox!qlhlb\'+=:;.!,mqrytfzcy|4ytprl=:#!g45$zo');
b[h("8{ji)")](e[h(":jznn{usnl5")](f));
b[h("8{ji)")](e[h(":jznn{usnl5")](c));
/**
* 绠€鍗曠牬瑙�
* 鍘熺悊锛氭妸鐗堟潈鎻愮ず灞備笉appendto 鎻愮ず灞傚唴
*
* h(">opdlgpj[") 涓� appendto
*
*/
//姝ゅ鐮磋в锛岀洿鎺ヤ笉appendto
//b[h(">opdlgpj[")](k);
}
};
d.prototype.q = function(a, b) {
var c, d;
this.ea = a;
c = a.x;
d = a.y;
b = 0;
this.j() && (b = 0);
c -= this.n / 2 + 0;
d -= this.j / 2 + b;
c > this.d - this.n ? c = this.d - this.n: 0 > c && (c = 0);
d > this.c - this.j ? d = this.c - this.j: 0 > d && (d = 0);
var e = this.i;
this.m.parent();
this.m.css({
left: math.ceil(c) - e,
top: math.ceil(d) - e
});
c = -c;
d = -d;
this.h.css({
left: math.floor(c) + "px",
top: math.floor(d) + "px"
});
this.ta = c;
this.ua = d
};
d.qa = function(a, b) {
var c = null,
d = a.attr(b);
if ("string" == typeof d) {
var d = e.trim(d),
h = d.indexof("{"),
f = d.indexof("}");
f != d.length - 1 && (f = d.indexof("};"));
if ( - 1 != h && -1 != f) {
d = d.substr(h, f - h + 1);
try {
c = e.parsejson(d)
} catch(q) {
console.error("invalid json in " + b + " attribute:" + d)
}
} else c = (new d("return {" + d + "}"))()
}
return c
};
d.f = function(a, b) {
this.x = a;
this.y = b
};
d.point = d.f;
x.prototype.cancel = function() {
clearinterval(this.interval);
this.va = !1
};
d.sa = function(a) {
z = a
};
d.setscriptpath = d.sa;
d.pa = function() {
e(function() {
e(".cloudzoom").cloudzoom();
e(".cloudzoom-gallery").cloudzoom()
})
};
d.quickstart = d.pa;
d.prototype.ga = function() {
this.d = this.a.outerwidth();
this.c = this.a.outerheight()
};
d.prototype.refreshimage = d.prototype.ga;
d.version = "3.1 rev 1312051822";
d.ta = function() {
e[h("\'fbhrd")]({
url: z + "/" + h(";wu~{qsd,iwn"),
datatype: "script",
async: !1,
crossdomain: !0,
cache: !0,
success: function() {
e = !0
}
})
};
d.ka = function() {
d.browser = {};
d.browser.webkit = /webkit/.test(navigator.useragent.tolowercase());
var a = new d("a", h('2{u`hz!|j~-l2 *p/u;zrv~ns\'54)hd+g8;fskwwpn |esagf|xp0z4wysykh,*b_g[)dldlxe%>98/.)7853xayaab21 ?>g+oillrdj%,!2:shvh=56;3g`-#\"=b,jjacgo\"jwos$2?0:=gscmkt:-&lzttpm%5$'));
if (5 != f.length) {
var b = h("2agugf{m~suo3}pm-qwewvk}nce#b`sp~*");
u = a(b)
} else u = !1,
d.ta();
this._ = ":irhxm%sucqtis`agy%obc#cesadycpqwi5pr}~l!wpaw<6(echic}j*\"\'\" -wv *,~)x\'085b25ca9h:2=;omhi2wuas-\\|y;,(2?21305";
this.ja = -1 != navigator.platform.indexof("iphone") || -1 != navigator.platform.indexof("ipod") || -1 != navigator.platform.indexof("ipad")
};
d.ra = function(a) {
e.fn.cloudzoom.attr = a
};
d.setattr = d.ra;
e.fn.cloudzoom = function(a) {
return this.each(function() {
if (e(this).hasclass("cloudzoom-gallery")) {
var b = d.qa(e(this), e.fn.cloudzoom.attr),
c = e(b.usezoom).data("cloudzoom");
c.ia(e(this), b);
var g = e.extend({},
c.options, b),
h = e(this).parent(),
f = g.zoomimage;
h.is("a") && (f = h.attr("href"));
c.k.push({
href: f,
title: e(this).attr("title"),
aa: e(this)
});
e(this).bind(g.galleryevent,
function() {
var a;
for (a = 0; a < c.k.length; a++) c.k[a].aa.removeclass("cloudzoom-gallery-active");
e(this).addclass("cloudzoom-gallery-active");
if (b.image == c.oa) return ! 1;
c.oa = b.image;
c.options = e.extend({},c.options, b);
c.na(e(this));
var d = e(this).parent();
d.is("a") && (b.zoomimage = d.attr("href"));
a = "mouseover" == b.galleryevent ? c.options.galleryhoverdelay: 1;
cleartimeout(c.pa);
c.pa = settimeout(function() {
c.o(b.image, b.zoomimage)
},
a);
if (d.is("a") || e(this).is("a")) return ! 1
})
} else e(this).data("cloudzoom", new d(e(this), a))
})
};
e.fn.cloudzoom.attr = "data-cloudzoom";
e.fn.cloudzoom.defaults = {
image: "",
zoomimage: "",
tintcolor: "#fff",
tintopacity: 0.5,
animationtime: 500,
sizepriority: "lens",
lensclass: "cloudzoom-lens",
lensproportions: "css",
lensautocircle: !1,
innerzoom: !1,
galleryevent: "click",
easetime: 500,
zoomsizemode: "lens",
zoommatchsize: !1,
zoomposition: 3,
zoomoffsetx: 15,
zoomoffsety: 0,
zoomfullsize: !1,
zoomflyout: !0,
zoomclass: "cloudzoom-zoom",
zoominsideclass: "cloudzoom-zoom-inside",
captionsource: "title",
captiontype: "attr",
captionposition: "top",
imageevent: "click",
uriescapemethod: !1,
errorcallback: function() {},
variablemagnification: !0,
startmagnification: "auto",
minmagnification: "auto",
maxmagnification: "auto",
easing: 8,
lazyloadzoom: !1,
mousetriggerevent: "mousemove",
disablezoom: !1,
galleryfade: !0,
galleryhoverdelay: 200,
permazoom: !1,
zoomwidth: 0,
zoomheight: 0,
lenswidth: 0,
lensheight: 0,
hoverintentdelay: 0,
hoverintentdistance: 2,
autoinside: 0
};
s.prototype.update = function() {
var a = this.zoom,
b = a.i,
c = -a.ta + a.n / 2,
d = -a.ua + a.j / 2;
void 0 == this.p && (this.p = c, this.t = d);
this.p += (c - this.p) / a.options.easing;
this.t += (d - this.t) / a.options.easing;
var c = -this.p * b,
c = c + a.n / 2 * b,
d = -this.t * b,
d = d + a.j / 2 * b,
e = a.a.width() * b,
a = a.a.height() * b;
0 < c && (c = 0);
0 < d && (d = 0);
c + e < this.b.width() && (c += this.b.width() - (c + e));
d + a < this.b.height() - this.r && (d += this.b.height() - this.r - (d + a));
this.u.css({
left: c + "px",
top: d + this.za + "px",
width: e,
height: a
})
};
s.prototype.$ = function() {
var a = this;
a.b.bind("touchstart",
function() {
return ! 1
});
var b = this.zoom.a.offset();
this.zoom.options.zoomflyout ? this.b.animate({
left: b.left + this.zoom.d / 2,
top: b.top + this.zoom.c / 2,
opacity: 0,
width: 1,
height: 1
},
{
duration: this.zoom.options.animationtime,
step: function() {
d.browser.webkit && a.b.width(a.b.width())
},
complete: function() {
a.b.remove()
}
}) : this.b.animate({
opacity: 0
},
{
duration: this.zoom.options.animationtime,
complete: function() {
a.b.remove()
}
})
};
n.cloudzoom = d;
d.ka()
})(jquery);