(function(window) { if (!window.yuuk) { window.yuuk = {} } yuuk.using = function() { var a = arguments, o = this, i = 0, j, d, arg, isexist; arg = a[0], isexist = a[1]; if (arg && arg.indexof(".")) { d = arg.split("."); for (j = (d[0] == "yuuk") ? 1 : 0; j < d.length; j++) { if (!o[d[j]] && isexist) { return null } o[d[j]] = o[d[j]] || {}; o = o[d[j]] } } else { o[arg] = o[arg] || {} } return o }; })(window); (function(a) { $.extend(a, { lazyloadimg: function(g, i) { var f = { threshold: 0, failurelimit: 0, event: "scroll", effect: "show", loadingeffect: false, container: window }; var c = $(g); var b = []; c.filter("img").each(function() { var k = this; k.loaded = false; var m = $(k); if (m.attr("data-src") == undefined) { m.attr("data-src", m.attr("src")); m.removeattr("src") } }); } }) })(yuuk.using("utils")); (function(a) { $.extend(a, { timer: function(g, f) { var d = { name: "timer#0000", interval: 1000, immediately: true }; if (f) { $.extend(d, f) } if (typeof g !== "function") { throw new error("您没有为timer指定有效的执行函数。") } var e = null; var c = 0; var b = { start: function() { if (e != null) { clearinterval(e); e = null } var h = function() { c += 1; g(b) }; e = setinterval(h, d.interval); if (d.immediately) { h() } }, stop: function() { if (e != null) { clearinterval(e); e = null } }, getcounter: function() { return c } }; return b }, gotoanchor: yuuk.using("utils").gotoanchor }) })(yuuk.using("common")); (function(a) { a.slider = function(g, f) { var d = { stepsize: 1, clipsize: 1, sliderfinder: ".j-silder", slideritemfinder: ".j-item", slideritemwidth: 0, slideritemcount: 0, mode: "default", gomode: "left", oninit: function(s, r) {}, onslidbegin: function(s, r) {}, onslidend: function(s, r) {} }; if (f) { $.extend(d, f) } var i = $(g); var m = $(d.sliderfinder, i); var q = $(d.slideritemfinder, i); var b = d.slideritemcount > 0 ? d.slideritemcount: q.size(); var k = d.slideritemwidth > 0 ? d.slideritemwidth: q.outerwidth(true); var e = false; var l = false; var j = 0; var c = function(r) { switch (d.gomode) { case "left": return { left: r * k * -1 }; case "top": return { top: r * k * -1 }; case "marginleft": return { marginleft: r * k * -1 }; case "margintop": return { margintop: r * k * -1 }; default: return { left: r * k * -1 } } }; if (b > d.clipsize) { if (d.mode === "round") { m.append(q.clone(true)); m.append(q.clone(true)); e = true; l = true; q = $(d.slideritemfinder, i) } else { var h = 0; var n = b - d.clipsize; if (j >= n) { j = n; l = false } else { l = true } if (j <= h) { j = 0; e = false } else { e = true } } } else { e = false; l = false } var o = null; var p = { gotoindex: function(r) { d.onslidbegin(p, { index: r }); m.animate(c(r), { queue: false, complete: function() { j = r; cleartimeout(o); o = settimeout(function() { d.onslidend(p, { index: r }) }, 100) } }); for (var s = r; s < r + d.stepsize; s++) { q.eq(s).find("img[data-src]").trigger("do-load") } }, gotonextstep: function() { var s = j + d.stepsize; if (d.mode === "round") { var r = b * 3 - d.clipsize; if (s > r) { j = j - b; m.css(c(j)); s = j + d.stepsize } } else { var r = b - d.clipsize; if (s >= r) { s = r; l = false } else { l = true } e = true } this.gotoindex(s); return l }, gotoprestep: function() { var r = j - d.stepsize; if (d.mode === "round") { if (r < 0) { j = j + b; m.css(c(j)); r = j - d.stepsize } } else { if (r <= 0) { r = 0; e = false } else { e = true } l = true } this.gotoindex(r); return e }, ispreenable: function() { return e }, isnextenable: function() { return l } }; p.gotoindex(0); d.oninit(p, {}); return p }; a.slider = a.slider })(yuuk.using("ui")); (function(c) { var d = yuuk.using("ui"); var a = yuuk.using("common"); (function(g, e) { function f(i, k) { var j = this; if (!g(i)[0]) { throw "path container error" } if (! (j instanceof f)) { return new f(i, k) } g.extend(j.options = {}, f.options, k); j.container = g(i); j._init() } g.extend(f, { options: { size: [110, 124], xy: [10, 226], zindex: 100, menusize: [65, 65], itemsize: [30, 30], modcls: "path", itemcls: "path-item", duration: 100, rate: 100 } }); g.extend(f.prototype, { _init: function() { var j = this, i = j.container, l = j.options, m = l.itemcls, p = l.zindex, o = l.itemsize, k = l.menusize, n = j.xy = { menu: l.button[0][0] }; i.hide().addclass(l.modcls).css({ position: "relative", zindex: p, width: l.size[0], height: l.size[1], left: l.xy[0], top: l.xy[1] }).show(); n.button = [(k[0] - o[0]) / 2 + n.menu[0], (k[1] - o[1]) / 2 + n.menu[1]]; j.buttons = []; g.each(l.button, function(r, q) { var t = r === 0, s = g('').appendto(i).attr({ "class": m + " " + q[1], title: q[2], href: q[3], target: q[4] || "_blank", hidefocus: "true" }).css({ cursor: "pointer", position: "absolute", left: (t ? n.menu: n.button)[0], top: (t ? n.menu: n.button)[1], width: t ? k[0] : o[0], height: t ? k[1] : o[1], outline: "none", zindex: p + (t ? 2 : 1) }); if (r === 0) { j.menu = s } else { j.buttons.push(s) } }); j._attach() }, _attach: function() { var k = this, l = k.options, o, i, n, m, j; if (k._task) { return k } m = k.xy.menu; j = k.xy.button; i = l.duration; n = k.buttons.length * i; k._task = function(p) { g(k.buttons).each(function(r, q) { p = p === true; var s = l.button[r + 1][0]; g(q).stop().animate({ left: p ? m[0] + s[0] : j[0], top: p ? m[1] + s[1] : j[1] }, i + (p ? l.rate * r: (n - l.rate * r))) }) }; k.menu.mouseenter(function(p) { cleartimeout(o); k._task(true) }); k.container.mouseleave(function(p) { cleartimeout(o); o = settimeout(k._task, 100) }); return k }, }); e.using("ui").path = f })(jquery, yuuk); (function b() { var picw = $(window).width(); if (picw < 1180) { picw = 1180; } // alert(picw); var j = d.slider("#j-focuspic", { sliderfinder: ".j-slider", slideritemfinder: ".j-item", slideritemwidth: picw, slideritemcount: 6, stepsize: 1, clipsize: 1, mode: "round", onslidbegin: function(o, n) { $(".picul .j-info").fadeout(); $(".picul .j-infobg").css("opacity", 0) }, onslidend: function(p, n) { var o = []; o.push("