/*! Lazy Load 1.9.3 - MIT license - Copyright 2010-2013 Mika Tuupola */ !
function(a, b, c, d) {
var e = a(b);
a.fn.lazyload = function(f) {
function g() {
var b = 0;
i.each(function() {
var c = a(this);
if (!j.skip_invisible || c.is(":visible"))
if (a.abovethetop(this, j) || a.leftofbegin(this, j));
else if (a.belowthefold(this, j) || a.rightoffold(this, j)) {
if (++b > j.failure_limit) return !1
} else c.trigger("appear"),
b = 0
})
}
var h, i = this,
j = {
threshold: 0,
failure_limit: 0,
event: "scroll",
effect: "show",
container: b,
data_attribute: "original",
skip_invisible: !0,
appear: null,
load: null,
placeholder: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"
};
return f && (d !== f.failurelimit && (f.failure_limit = f.failurelimit, delete f.failurelimit), d !== f.effectspeed && (f.effect_speed = f.effectspeed, delete f.effectspeed), a.extend(j, f)),
h = j.container === d || j.container === b ? e : a(j.container),
0 === j.event.indexOf("scroll") && h.bind(j.event,
function() {
return g()
}),
this.each(function() {
var b = this,
c = a(b);
b.loaded = !1, (c.attr("src") === d || c.attr("src") === !1) && c.is("img") && c.attr("src", j.placeholder),
c.one("appear",
function() {
if (!this.loaded) {
if (j.appear) {
var d = i.length;
j.appear.call(b, d, j)
}
a("
").bind("load",
function() {
var d = c.attr("data-" + j.data_attribute);
c.hide(),
c.is("img") ? c.attr("src", d) : c.css("background-image", "url('" + d + "')"),
c[j.effect](j.effect_speed),
b.loaded = !0;
var e = a.grep(i,
function(a) {
return !a.loaded
});
if (i = a(e), j.load) {
var f = i.length;
j.load.call(b, f, j)
}
}).attr("src", c.attr("data-" + j.data_attribute))
}
}),
0 !== j.event.indexOf("scroll") && c.bind(j.event,
function() {
b.loaded || c.trigger("appear")
})
}),
e.bind("resize",
function() {
g()
}),
/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion) && e.bind("pageshow",
function(b) {
b.originalEvent && b.originalEvent.persisted && i.each(function() {
a(this).trigger("appear")
})
}),
a(c).ready(function() {
g()
}),
this
},
a.belowthefold = function(c, f) {
var g;
return g = f.container === d || f.container === b ? (b.innerHeight ? b.innerHeight : e.height()) + e.scrollTop() : a(f.container).offset().top + a(f.container).height(),
g <= a(c).offset().top - f.threshold
},
a.rightoffold = function(c, f) {
var g;
return g = f.container === d || f.container === b ? e.width() + e.scrollLeft() : a(f.container).offset().left + a(f.container).width(),
g <= a(c).offset().left - f.threshold
},
a.abovethetop = function(c, f) {
var g;
return g = f.container === d || f.container === b ? e.scrollTop() : a(f.container).offset().top,
g >= a(c).offset().top + f.threshold + a(c).height()
},
a.leftofbegin = function(c, f) {
var g;
return g = f.container === d || f.container === b ? e.scrollLeft() : a(f.container).offset().left,
g >= a(c).offset().left + f.threshold + a(c).width()
},
a.inviewport = function(b, c) {
return !(a.rightoffold(b, c) || a.leftofbegin(b, c) || a.belowthefold(b, c) || a.abovethetop(b, c))
},
a.extend(a.expr[":"], {
"below-the-fold": function(b) {
return a.belowthefold(b, {
threshold: 0
})
},
"above-the-top": function(b) {
return !a.belowthefold(b, {
threshold: 0
})
},
"right-of-screen": function(b) {
return a.rightoffold(b, {
threshold: 0
})
},
"left-of-screen": function(b) {
return !a.rightoffold(b, {
threshold: 0
})
},
"in-viewport": function(b) {
return a.inviewport(b, {
threshold: 0
})
},
"above-the-fold": function(b) {
return !a.belowthefold(b, {
threshold: 0
})
},
"right-of-fold": function(b) {
return a.rightoffold(b, {
threshold: 0
})
},
"left-of-fold": function(b) {
return !a.rightoffold(b, {
threshold: 0
})
}
})
}(jQuery, window, document);
/*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
* Uses the built in easing capabilities added In jQuery 1.1
* to offer multiple easing options
*
* TERMS OF USE - jQuery Easing
*
* Open source under the BSD License.
*
* Copyright ? 2008 George McGinley Smith
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* Neither the name of the author nor the names of contributors may be used to endorse
* or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
// t: current time, b: begInnIng value, c: change In value, d: duration
jQuery.easing['jswing'] = jQuery.easing['swing'];
jQuery.extend(jQuery.easing, {
def: 'easeOutQuad',
swing: function(x, t, b, c, d) {
return jQuery.easing[jQuery.easing.def](x, t, b, c, d)
},
easeInQuad: function(x, t, b, c, d) {
return c * (t /= d) * t + b
},
easeOutQuad: function(x, t, b, c, d) {
return -c * (t /= d) * (t - 2) + b
},
easeInOutQuad: function(x, t, b, c, d) {
if ((t /= d / 2) < 1) return c / 2 * t * t + b;
return -c / 2 * ((--t) * (t - 2) - 1) + b
},
easeInCubic: function(x, t, b, c, d) {
return c * (t /= d) * t * t + b
},
easeOutCubic: function(x, t, b, c, d) {
return c * ((t = t / d - 1) * t * t + 1) + b
},
easeInOutCubic: function(x, t, b, c, d) {
if ((t /= d / 2) < 1) return c / 2 * t * t * t + b;
return c / 2 * ((t -= 2) * t * t + 2) + b
},
easeInQuart: function(x, t, b, c, d) {
return c * (t /= d) * t * t * t + b
},
easeOutQuart: function(x, t, b, c, d) {
return -c * ((t = t / d - 1) * t * t * t - 1) + b
},
easeInOutQuart: function(x, t, b, c, d) {
if ((t /= d / 2) < 1) return c / 2 * t * t * t * t + b;
return -c / 2 * ((t -= 2) * t * t * t - 2) + b
},
easeInQuint: function(x, t, b, c, d) {
return c * (t /= d) * t * t * t * t + b
},
easeOutQuint: function(x, t, b, c, d) {
return c * ((t = t / d - 1) * t * t * t * t + 1) + b
},
easeInOutQuint: function(x, t, b, c, d) {
if ((t /= d / 2) < 1) return c / 2 * t * t * t * t * t + b;
return c / 2 * ((t -= 2) * t * t * t * t + 2) + b
},
easeInSine: function(x, t, b, c, d) {
return -c * Math.cos(t / d * (Math.PI / 2)) + c + b
},
easeOutSine: function(x, t, b, c, d) {
return c * Math.sin(t / d * (Math.PI / 2)) + b
},
easeInOutSine: function(x, t, b, c, d) {
return -c / 2 * (Math.cos(Math.PI * t / d) - 1) + b
},
easeInExpo: function(x, t, b, c, d) {
return (t == 0) ? b : c * Math.pow(2, 10 * (t / d - 1)) + b
},
easeOutExpo: function(x, t, b, c, d) {
return (t == d) ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b
},
easeInOutExpo: function(x, t, b, c, d) {
if (t == 0) return b;
if (t == d) return b + c;
if ((t /= d / 2) < 1) return c / 2 * Math.pow(2, 10 * (t - 1)) + b;
return c / 2 * (-Math.pow(2, -10 * --t) + 2) + b
},
easeInCirc: function(x, t, b, c, d) {
return -c * (Math.sqrt(1 - (t /= d) * t) - 1) + b
},
easeOutCirc: function(x, t, b, c, d) {
return c * Math.sqrt(1 - (t = t / d - 1) * t) + b
},
easeInOutCirc: function(x, t, b, c, d) {
if ((t /= d / 2) < 1) return -c / 2 * (Math.sqrt(1 - t * t) - 1) + b;
return c / 2 * (Math.sqrt(1 - (t -= 2) * t) + 1) + b
},
easeInElastic: function(x, t, b, c, d) {
var s = 1.70158;
var p = 0;
var a = c;
if (t == 0) return b;
if ((t /= d) == 1) return b + c;
if (!p) p = d * .3;
if (a < Math.abs(c)) {
a = c;
var s = p / 4
} else var s = p / (2 * Math.PI) * Math.asin(c / a);
return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b
},
easeOutElastic: function(x, t, b, c, d) {
var s = 1.70158;
var p = 0;
var a = c;
if (t == 0) return b;
if ((t /= d) == 1) return b + c;
if (!p) p = d * .3;
if (a < Math.abs(c)) {
a = c;
var s = p / 4
} else var s = p / (2 * Math.PI) * Math.asin(c / a);
return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * (2 * Math.PI) / p) + c + b
},
easeInOutElastic: function(x, t, b, c, d) {
var s = 1.70158;
var p = 0;
var a = c;
if (t == 0) return b;
if ((t /= d / 2) == 2) return b + c;
if (!p) p = d * (.3 * 1.5);
if (a < Math.abs(c)) {
a = c;
var s = p / 4
} else var s = p / (2 * Math.PI) * Math.asin(c / a);
if (t < 1) return -.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b;
return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p) * .5 + c + b
},
easeInBack: function(x, t, b, c, d, s) {
if (s == undefined) s = 1.70158;
return c * (t /= d) * t * ((s + 1) * t - s) + b
},
easeOutBack: function(x, t, b, c, d, s) {
if (s == undefined) s = 1.70158;
return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b
},
easeInOutBack: function(x, t, b, c, d, s) {
if (s == undefined) s = 1.70158;
if ((t /= d / 2) < 1) return c / 2 * (t * t * (((s *= (1.525)) + 1) * t - s)) + b;
return c / 2 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2) + b
},
easeInBounce: function(x, t, b, c, d) {
return c - jQuery.easing.easeOutBounce(x, d - t, 0, c, d) + b
},
easeOutBounce: function(x, t, b, c, d) {
if ((t /= d) < (1 / 2.75)) {
return c * (7.5625 * t * t) + b
} else if (t < (2 / 2.75)) {
return c * (7.5625 * (t -= (1.5 / 2.75)) * t + .75) + b
} else if (t < (2.5 / 2.75)) {
return c * (7.5625 * (t -= (2.25 / 2.75)) * t + .9375) + b
} else {
return c * (7.5625 * (t -= (2.625 / 2.75)) * t + .984375) + b
}
},
easeInOutBounce: function(x, t, b, c, d) {
if (t < d / 2) return jQuery.easing.easeInBounce(x, t * 2, 0, c, d) * .5 + b;
return jQuery.easing.easeOutBounce(x, t * 2 - d, 0, c, d) * .5 + c * .5 + b
}
});
/*! http://responsiveslides.com v1.54 by @viljamis */
;
(function(c, I, B) {
c.fn.responsiveSlides = function(l) {
var a = c.extend({
auto: !0,
speed: 500,
timeout: 4E3,
pager: !1,
nav: !1,
random: !1,
pause: !1,
pauseControls: !0,
prevText: "Previous",
nextText: "Next",
maxwidth: "",
navContainer: "",
manualControls: "",
namespace: "rslides",
before: c.noop,
after: c.noop
},
l);
return this.each(function() {
B++;
var f = c(this),
s,
r,
t,
m,
p,
q,
n = 0,
e = f.children(),
C = e.size(),
h = parseFloat(a.speed),
D = parseFloat(a.timeout),
u = parseFloat(a.maxwidth),
g = a.namespace,
d = g + B,
E = g + "_nav " + d + "_nav",
v = g + "_here",
j = d + "_on",
w = d + "_s",
k = c("
"),
x = {
"float": "left",
position: "relative",
opacity: 1,
zIndex: 2
},
y = {
"float": "none",
position: "absolute",
opacity: 0,
zIndex: 1
},
F = function() {
var b = (document.body || document.documentElement).style,
a = "transition";
if ("string" === typeof b[a]) return !0;
s = ["Moz", "Webkit", "Khtml", "O", "ms"];
var a = a.charAt(0).toUpperCase() + a.substr(1),
c;
for (c = 0; c < s.length; c++)
if ("string" === typeof b[s[c] + a]) return !0;
return !1
}(),
z = function(b) {
a.before(b);
F ? (e.removeClass(j).css(y).eq(b).addClass(j).css(x), n = b, setTimeout(function() {
a.after(b)
},
h)) : e.stop().fadeOut(h,
function() {
c(this).removeClass(j).css(y).css("opacity", 1)
}).eq(b).fadeIn(h,
function() {
c(this).addClass(j).css(x);
a.after(b);
n = b
})
};
a.random && (e.sort(function() {
return Math.round(Math.random()) - 0.5
}), f.empty().append(e));
e.each(function(a) {
this.id = w + a
});
f.addClass(g + " " + d);
l && l.maxwidth && f.css("max-width", u);
e.hide().css(y).eq(0).addClass(j).css(x).show();
F && e.show().css({
"-webkit-transition": "opacity " + h + "ms ease-in-out",
"-moz-transition": "opacity " + h + "ms ease-in-out",
"-o-transition": "opacity " + h + "ms ease-in-out",
transition: "opacity " + h + "ms ease-in-out"
});
if (1 < e.size()) {
if (D < h + 100) return;
if (a.pager && !a.manualControls) {
var A = [];
e.each(function(a) {
a += 1;
A += "" + a + ""
});
k.append(A);
l.navContainer ? c(a.navContainer).append(k) : f.after(k)
}
a.manualControls && (k = c(a.manualControls), k.addClass(g + "_tabs " + d + "_tabs"));
(a.pager || a.manualControls) && k.find("li").each(function(a) {
c(this).addClass(w + (a + 1))
});
if (a.pager || a.manualControls) q = k.find("a"),
r = function(a) {
q.closest("li").removeClass(v).eq(a).addClass(v)
};
a.auto && (t = function() {
p = setInterval(function() {
e.stop(!0, !0);
var b = n + 1 < C ? n + 1 : 0;
(a.pager || a.manualControls) && r(b);
z(b)
},
D)
},
t());
m = function() {
a.auto && (clearInterval(p), t())
};
a.pause && f.hover(function() {
clearInterval(p)
},
function() {
m()
});
if (a.pager || a.manualControls) q.bind("click",
function(b) {
b.preventDefault();
a.pauseControls || m();
b = q.index(this);
n === b || c("." + j).queue("fx").length || (r(b), z(b))
}).eq(0).closest("li").addClass(v),
a.pauseControls && q.hover(function() {
clearInterval(p)
},
function() {
m()
});
if (a.nav) {
g = "" + a.prevText + "" + a.nextText + "";
l.navContainer ? c(a.navContainer).append(g) : f.after(g);
var d = c("." + d + "_nav"),
G = d.filter(".prev");
d.bind("click",
function(b) {
b.preventDefault();
b = c("." + j);
if (!b.queue("fx").length) {
var d = e.index(b);
b = d - 1;
d = d + 1 < C ? n + 1 : 0;
z(c(this)[0] === G[0] ? b : d);
if (a.pager || a.manualControls) r(c(this)[0] === G[0] ? b : d);
a.pauseControls || m()
}
});
a.pauseControls && d.hover(function() {
clearInterval(p)
},
function() {
m()
})
}
}
if ("undefined" === typeof document.body.style.maxWidth && l.maxwidth) {
var H = function() {
f.css("width", "100%");
f.width() > u && f.css("width", u)
};
H();
c(I).bind("resize",
function() {
H()
})
}
})
}
})(jQuery, this, 0);;
(function($) {
var defaults = {
auto: 1,
defaultIndex: 0,
slideDirection: 1,
speed: "normal",
stay: 5e3,
delay: 150,
showPrevNext: 1,
prev: null,
next: null,
showPagination: 1,
pagination: null,
onChange: function(index) {}
};
$.fn.jSlider = function(options) {
if (this.length > 0) {
var o = $.extend({},
defaults, options);
return this.each(function() {
var that = $(this),
a = that.find("ul"),
b = a.find("li"),
c = b.outerWidth(),
d = b.outerHeight(),
e = b.length,
n,
p,
s,
m = null,
l = null,
p,
k,
clickAble = !0,
left,
top;
function init() {
if (b.length < 2) {
return
}
if (o.showPrevNext) {
if (o.prev == null || o.next == null) {
n = $('next');
p = $('prev');
that.append(n),
that.append(p)
} else {
n = $(o.next);
p = $(o.prev)
}
n.bind("click",
function(e) {
if (!clickAble) {
return false
}
$("#pv").html("");
$("#pv").hide();
clickAble = !1;
k = o.defaultIndex;
k++;
play(k);
return false
});
p.bind("click",
function(e) {
if (!clickAble) {
return false
}
$("#pv").html("");
$("#pv").hide();
clickAble = !1;
k = o.defaultIndex;
k--;
play(k);
return false
});
n.bind("mouseenter",
function() {
pause()
}).bind("mouseleave",
function() {
o.auto && auto()
});
p.bind("mouseenter",
function() {
pause()
}).bind("mouseleave",
function() {
o.auto && auto()
})
}
if (o.showPagination) {
if (o.pagination == null) {
s = '";
s = $(s);
that.append(s)
} else {
s = $(o.pagination)
}
}
if (o.slideDirection == 1) {
var strtemp = b.clone();
strtemp.each(function(index) {
$(this).css("marginLeft", -(e - index) * c)
});
a.prepend(strtemp);
a.append(b.clone());
a.css({
width: 3 * c * e
})
} else if (o.slideDirection == 2) {
a.prepend(b.eq(e - 1).clone().css("marginTop", -d));
a.append(b.eq(0).clone())
}
that.bind("mouseenter",
function() {
pause()
}).bind("mouseleave",
function() {
o.auto && auto()
});
s.children().bind("mouseenter",
function() {
pause();
var i = $(this).index();
l = setTimeout(function() {
play(i)
},
100)
}).bind("mouseleave",
function() {
l && clearTimeout(l);
o.auto && auto()
});
o.auto && auto()
}
function auto() {
m && clearInterval(m);
m = setInterval(function() {
k = o.defaultIndex;
k++;
play(k)
},
o.stay)
}
function pause() {
m && clearInterval(m)
}
function play(k) {
if (o.slideDirection == 3) {
k == -1 && (k = e - 1);
k == e && (k = 0);
adjustpagination(k);
b.eq(o.defaultIndex).css({
zIndex: 0
}),
b.eq(k).css({
zIndex: 1
}),
b.eq(o.defaultIndex).fadeOut("fast"),
b.eq(k).fadeIn("fast",
function() {
clickAble = !0
}),
o.defaultIndex = k
} else {
var ac = k;
if (k == e) {
ac = 0
}
if (k == -1) {
ac = e - 1
}
adjustpagination(ac);
1 == o.slideDirection ? (top = 0, left = -c * k) : (left = 0, top = -d * k),
$.isFunction(o.onChange) ? o.onChange(k, ac) : "",
a.animate({
top: top + "px",
left: left + "px"
},
o.speed,
function() {
adjust(k)
})
}
}
function adjustpagination(k) {
s.children().eq(k).addClass("current").siblings().removeClass("current")
}
function adjust(k) {
if (o.slideDirection == 1) {
if (k == e) {
a.css("left", 0),
k = 0
}
if (k == -1) {
a.css("left", -1 * (e - 1) * c);
k = e - 1
}
o.defaultIndex = k
} else {
if (k == e) {
a.css("top", 0),
k = 0
}
if (k == -1) {
a.css("top", -1 * (e - 1) * d);
k = e - 1
}
o.defaultIndex = k
}
clickAble = !0
}
init()
})
}
}
})(jQuery);
(function(a) {
a.fn.imgScroll = function(b, c) {
var d = {
data: [],
template: null,
evtType: "click",
visible: 1,
direction: "x",
next: "#next",
prev: "#prev",
disableClass: "disabled",
disableClassPerfix: !1,
speed: 300,
step: 1,
loop: !1,
showControl: !1,
width: null,
height: null,
navItems: !1,
navItmesWrapClass: "scroll-nav-wrap",
navItemActivedClass: "current",
status: !1,
statusWrapSelector: ".scroll-status-wrap"
},
e = a.extend(d, b);
return this.each(function() {
var f, b = a(this),
d = b.find("ul").eq(0),
g = d.children("li"),
h = g.length,
i = null,
j = null,
k = "string" == typeof e.next ? a(e.next) : e.next,
l = "string" == typeof e.prev ? a(e.prev) : e.prev,
m = 0,
n = e.step,
o = e.visible,
p = Math.ceil((h - o) / n) + 1,
q = e.loop,
r = e.direction,
s = e.evtType,
t = e.disableClass,
u = e.disableClassPerfix ? "prev-" + t : t,
v = e.disableClassPerfix ? "next-" + t : t,
w = e.navItems,
x = e.navItmesWrapClass,
y = a("." + x).length > 0,
z = e.navItemActivedClass,
A = e.status,
B = e.statusWrapSelector,
C = a(B).length > 0,
D = !1,
E = !0,
F = (h - o) % n === 0,
G = e.template || '{for slide in list}
{/for}
';
function H(a) {
h >= n + o && !q ? (l.addClass(u), k.removeClass(v)) : q || k.addClass(v),
"left" !== g.eq(0).css("float") && g.css("float", "left"),
i = e.width || g.eq(0).outerWidth(),
j = e.height || g.eq(0).outerHeight(),
b.css({
position: "static" == b.css("position") ? "relative" : b.css("position"),
width: "x" == a ? i * o : i,
height: "x" == a ? j : j * o,
overflow: "hidden"
}),
d.css({
position: "absolute",
width: "x" == a ? i * h : i,
height: "x" == a ? j : j * h,
top: 0,
left: 0
}),
"function" == typeof c && c.apply(b, [m, p, g.slice(m * n, m * n + o), g.slice(m * n + o - n, m * n + o)])
}
function I() {
h = e.data.length,
d = b.find("ul").eq(0),
g = d.children("li"),
p = Math.ceil((h - o) / n) + 1,
F = (h - o) % n === 0
}
function J(a) {
var c = {
list: a
};
b.html(G.process(c)),
I()
}
function K(a, s) {
if (d.is(":animated")) return !1;
if (q) E && s && (m = p),
D && !s && (m = -1),
a = s ? --m : ++m;
else {
if (E && s || D && !s) return !1;
a = s ? --m : ++m
}
f = "x" == r ? {
left: a >= p - 1 ? -(h - o) * i : -a * n * i
} : {
top: a >= p - 1 ? -(h - o) * j : -a * n * j
};
function t() {
q ? (D = o >= h - a * n ? !0 : !1, E = 0 >= a ? !0 : !1) : (o >= h - a * n ? (k.addClass(v), D = !0) : (k.removeClass(v), D = !1), 0 >= a ? (l.addClass(u), E = !0) : (l.removeClass(u), E = !1)), (w || A) && N(a),
"function" == typeof c && c.apply(b, [a, p, g.slice(a * n, a * n + o), g.slice(a * n + o - n, a * n + o)])
}
e.speed ? d.animate(f, e.speed, t) : (d.css(f), t())
}
function L(c, d) {
for (var e = y ? a("." + c).eq(0) : a(''), f = 0; p > f; f++) e.append("' + (f + 1) + "");
y || b.after(e)
}
function M() {
var c = C ? a(B).eq(0) : a('');
c.html("1/" + p),
C || b.after(c)
}
function N(b) {
w && a("." + x).find("em").removeClass(z).eq(b).addClass(z),
A && a(B).html("" + (b + 1) + "/" + p)
}
function O() {
l.unbind(s).bind(s,
function() {
K(m, !0)
}),
k.unbind(s).bind(s,
function() {
K(m, !1)
})
}
if (e.data.length > 0) {
if (!e.width || !e.height) return !1;
J(e.data)
}
h > o && o >= n ? (H(r), O(), w && L(x, z), A && M(B)) : (e.showControl ? k.add(l).show() : k.add(l).hide(), l.addClass(u), k.addClass(v))
})
}
})(jQuery);
$(".J_slide").jSlider();
$(".J_slide2").jSlider({
onChange: function(k, ac) {
$("#J_eventReviewTxt .txt-item").eq(ac).show().siblings().hide()
}
});
//微电影
$("#J_weiDianYin").jSlider({
auto: false,
onChange: function(k, ac) {
$("#J_weiDianYinTxt .txt-item").eq(ac).show().siblings().hide();
}
});
$("img.lazy").lazyload({
threshold: 200
});
$("#activeProducts .piclist").imgScroll({
width: 224,
height: 207,
visible: 4,
step: 1,
loop: !0,
next: "#activeProducts .next",
prev: "#activeProducts .prev"
});
$(".scroll").each(function() {
$(".scroll-main", $(this)).imgScroll({
width: 240,
height: 190,
visible: 4,
step: 1,
loop: !0,
next: $(".next", $(this)),
prev: $(".prev", $(this))
})
});
$(".i-mod-2 .item").hover(function() {
$(this).find(".shadow").stop(false, false).fadeIn();
$(this).find(".text").stop(false, false).fadeIn()
},
function() {
$(this).find(".text").fadeOut();
$(this).find(".shadow").fadeOut()
});
$(".mod-cover").hover(function() {
$(this).find(".cover").animate({
opacity: 0.7
}, {
queue: false
});
$(this).find(".txt").animate({
opacity: 1
}, {
queue: false
})
},
function() {
$(this).find(".cover").animate({
opacity: 0
}, {
queue: false
});
$(this).find(".txt").animate({
opacity: 0
}, {
queue: false
})
});
$(function() {
var quickNav = $("#J_quickNav");
quickNav.find(">li>i").click(function(e) {
e.stopPropagation();
$(this).parent().find(".slide").slideToggle(300);
$(this).parent().siblings().find(".slide").slideUp(300);
})
var $J_iproducts = $("#J_iproducts");
$J_iproducts.on("mouseenter", ".list a",
function() {
$(".pic li", $J_iproducts).eq($(this).index()).stop().fadeIn().siblings().stop().fadeOut()
}).on("mouseleave", ".list a",
function() {
$(".pic li", $J_iproducts).stop().fadeOut()
})
});
function addFavorite() {
var url = window.location;
var title = document.title;
var ua = navigator.userAgent.toLowerCase();
if (ua.indexOf("360se") > -1) {
alert("由于360浏览器功能限制,请按 Ctrl+D 手动收藏!")
} else if (ua.indexOf("msie 8") > -1) {
window.external.AddToFavoritesBar(url, title)
} else if (document.all) {
try {
window.external.addFavorite(url, title)
} catch (e) {
alert('您的浏览器不支持,请按 Ctrl+D 手动收藏!')
}
} else if (window.sidebar) {
window.sidebar.addPanel(title, url, "")
} else {
alert('您的浏览器不支持,请按 Ctrl+D 手动收藏!')
}
}
var MS = MS || {};
MS.Meun = {
init: function() {
this.navSubnav = $(".nav-subnav");
this.nav = $(".nav", this.navSubnav);
this.navLink = $("a", this.nav);
this.subnav = $(".subnav", this.navSubnav);
this.arrowEle = $(".arrow", this.nav);
this.arrowShow = false;
this.timer = null;
this.timer2 = null;
this.timer3 = null;
this.bindEvent()
},
bindEvent: function() {
var that = this;
this.navLink.on("mouseenter",
function() {
var $this = $(this);
if ($(this).parent().hasClass("logo")) {
return
}
that.timer3 = setTimeout(function() {
that.moveArrow($this);
that.showSecondMeun($this);
that.showCover()
},
100)
}).on("mouseleave",
function() {
that.timer3 && clearTimeout(that.timer3)
});
that.nav.on("mouseleave",
function() {
that.timer = setTimeout(function() {
that.hideArrow();
that.hideSecondMeun();
that.hideCover()
},
500)
}).on("mouseenter",
function() {
that.timer2 && clearTimeout(that.timer2)
});
that.subnav.on("mouseenter",
function() {
that.timer && clearTimeout(that.timer)
}).on("mouseleave",
function() {
that.timer2 = setTimeout(function() {
that.hideArrow();
that.hideSecondMeun();
that.hideCover()
},
200)
})
},
showSecondMeun: function(a) {
var e = a,
h, e2;
e2 = $(".active-show-" + e.parent().attr("data-tab"), this.subnav);
e2.fadeIn().siblings().fadeOut();
h = e2.outerHeight();
this.subnav.animate({
height: h
}, {
queue: false
})
},
hideSecondMeun: function() {
this.subnav.animate({
height: 0
}, {
queue: false
})
},
showCover: function() {
if (!$("#hasActiveOverLayer").length) {
$("body").append($(""))
}
$("#hasActiveOverLayer").show().fadeIn()
},
hideCover: function() {
$("#hasActiveOverLayer").fadeOut()
},
moveArrow: function(a) {
var posLeft = a.position().left + a.width() / 2
if (!this.arrowShow) {
$(".nav .arrow").css("left", posLeft)
} else {
this.arrowEle.animate({
left: posLeft
}, {
queue: false
})
}
this.arrowEle.animate({
bottom: 0
}, {
queue: false
});
this.arrowShow = true
},
hideArrow: function() {
this.arrowEle.animate({
bottom: -this.arrowEle.height()
}, {
queue: false
});
this.arrowShow = false
}
}
MS.Meun.init();
$(document).ready(function(e) {
var winWidth;
var winHeight;
function init() {
if (window.innerWidth) winWidth = window.innerWidth;
else if ((document.body) && (document.body.clientWidth)) winWidth = document.body.clientWidth;
if (window.innerHeight) winHeight = window.innerHeight;
else if ((document.body) && (document.body.clientHeight)) winHeight = document.body.clientHeight;
if (document.documentElement && document.documentElement.clientHeight && document.documentElement.clientWidth) {
winHeight = document.documentElement.clientHeight;
winWidth = document.documentElement.clientWidth
}
$(".zmenubg").css({
"width": winWidth + 100,
"left": -(winWidth - 1000) / 2 - 60
});
$(".ztm").css({
"width": winWidth + 100,
"height": winHeight,
"left": -(winWidth - 1000) / 2 - 60
});
var bw = winWidth < 1000 ? 1000 : winWidth;
$(".bprev").css("left", -(bw - 1000) / 2 + 20);
$(".bnext").css("left", 918 + (bw - 1000) / 2)
}
init();
window.onresize = init;
window.onload = init;
$(".dzbt a").click(function() {
$(".dzc").slideToggle()
});
var sn = 0;
var sArr = [0, 0, 0];
var sw = $(".sjqhca").width();
var sbool = false;
var lArr = [];
$(".sjqh").each(function(e) {
lArr[e] = $(this).find(".sjqhca").length;
$(this).find(".sjqhca").css({
"left": sw
});
$(this).find(".sjqhca").eq(0).css({
"left": "0px"
})
});
$(".mssjmenu a").click(function() {
var n = $(".mssjmenu a").index(this);
if (n == 0) return;
if ($(this).hasClass("on")) return;
$(".mssjmenu a").removeClass("on");
$(".mssjmenu a").eq(n).addClass("on");
$(".sjqh").addClass("hide");
$(".sjqh").eq(n - 1).removeClass("hide");
sn = n - 1
});
$(".sprev").click(function() {
if (sbool) return;
sbool = true;
sArr[sn]--;
if (sArr[sn] < 0) {
sArr[sn] = 0;
sbool = false;
return
}
smove()
});
$(".snext").click(function() {
if (sbool) return;
sbool = true;
sArr[sn]++;
if (sArr[sn] >= lArr[sn]) {
sArr[sn] = lArr[sn] - 1;
sbool = false;
return
}
smove()
});
$(".smenu a").click(function() {
if (sbool) return;
sbool = true;
sArr[sn] = $(".sjqh").eq(sn).find(".smenu a").index(this);
smove()
});
function smove() {
var n;
$(".sjqh").eq(sn).find(".smenu a").each(function(e) {
if ($(this).hasClass("on")) {
n = e
}
});
var s = sArr[sn];
var sobj = $(".sjqh").eq(sn).find(".sjqhca");
if (s > n) {
sobj.eq(s).css({
"left": sw
});
sobj.eq(s).animate({
"left": "0px"
},
800, "linear");
sobj.eq(n).animate({
"left": -sw
},
800, "linear",
function() {
sbool = false
})
} else if (s < n) {
sobj.eq(s).css({
"left": -sw
});
sobj.eq(s).animate({
"left": "0px"
},
800, "linear");
sobj.eq(n).animate({
"left": sw
},
800, "linear",
function() {
sbool = false
})
}
$(".sjqh").eq(sn).find(".smenu a").removeClass("on");
$(".sjqh").eq(sn).find(".smenu a").eq(s).addClass("on")
}
$(".sjdown em").click(function() {
var y = $(".msspbg").offset().top - $(".headerbg").height();
$("body,html").animate({
scrollTop: y
},
500)
});
$(".smdown em").click(function() {
var y = $(".footerbg").offset().top - $(".headerbg").height();
$("body,html").animate({
scrollTop: y
},
500)
})
});
var JS = function(e) {
e.rmenu = function() {
var mArr = [
[".bannerbg", ".mssjbg", ".msspbg", ".footerbg"],
[".gyms", ".msymr", ".msygy", ".footerbg"],
[".msxw", ".mszp", ".footerbg"],
[".srdz", ".smxt", ".lgsm", ".wdy", ".smyy", ".footerbg"],
[".jksm", ".yhqy", ".sqrh", ".hyhd", ".footerbg"],
[".qqwl", ".wyjmms", ".footerbg"],
[".zxkf", ".tsjy", ".footerbg"],
[".wdms", ".xxlb", ".footerbg"],
[".cpxl", ".dzwdcp", ".footerbg"]
];
var im = 0;
function addMenu() {
$("body").prepend('');
for (var i = 0; i < mArr[m].length; i++) {
$(".r_menu").append('')
}
$(".r_menu a").eq(0).addClass("on");
$(".r_menu a").click(function() {
im = $(".r_menu a").index(this);
var top = $(mArr[m][im]).offset().top - $(".kbjg").height();
$("body,html").animate({
scrollTop: top
},
1000)
})
}
function setScroll() {
var len = mArr[m].length - 1;
$(window).bind("scroll",
function(e) {
var fold = $(window).scrollTop();
for (var i = len; i >= 0; i--) {
if (fold >= ($(mArr[m][i]).offset().top - $(mArr[m][i]).height() / 2)) {
setIM(i);
return
}
}
})
}
function setIM(v) {
var $this = $(".r_menu a").eq(v);
$(".r_menu a").removeClass("on");
$this.addClass("on");
im = $(".r_menu a").index($this)
}
}
e.move = function(clickObj, prevObj, nextObj, moveObj, w, t, easing, boolean) {
var movebool = (boolean != undefined) ? true : false;
var b = 0;
var bw = w;
var bl = $(moveObj).length;
var bool = false;
var movetime = null;
if (bl < 2) {
return
}
$(moveObj).css({
"left": bw
});
$(moveObj).eq(b).css({
"left": "0px"
});
$(prevObj).click(function() {
if (bool) return;
bool = true;
b--;
if (b < 0) {
b = 0;
bool = false;
return
}
bmove()
});
$(nextObj).click(function() {
if (bool) return;
bool = true;
b++;
if (b >= bl) {
b = bl - 1;
bool = false;
return
}
bmove()
});
$(clickObj).click(function() {
if (bool) return;
bool = true;
b = $(clickObj).index(this);
bmove()
});
function bmove() {
var n;
$(clickObj).each(function(e) {
if ($(this).hasClass("on")) {
n = e
}
});
if (b > n) {
$(moveObj).eq(b).css({
"left": bw
});
$(moveObj).eq(b).animate({
"left": "0px"
},
t, easing);
$(moveObj).eq(n).animate({
"left": -bw
},
t, easing,
function() {
bool = false
})
} else if (b < n) {
$(moveObj).eq(b).css({
"left": -bw
});
$(moveObj).eq(b).animate({
"left": "0px"
},
t, easing);
$(moveObj).eq(n).animate({
"left": bw
},
t, easing,
function() {
bool = false
})
} else {
bool = false
}
$(clickObj).removeClass("on");
$(clickObj).eq(b).addClass("on");
if (movebool) {
stoptime();
starttime()
}
}
function starttime() {
if (movetime == null) movetime = setInterval(function() {
tmove()
},
6000)
}
function tmove() {
if (bool) return;
bool = true;
b++;
if (b >= bl) {
b = 0
}
var n;
$(clickObj).each(function(e) {
if ($(this).hasClass("on")) {
n = e
}
});
$(moveObj).eq(b).css({
"left": bw
});
$(moveObj).eq(b).animate({
"left": "0px"
},
t, easing);
$(moveObj).eq(n).animate({
"left": -bw
},
t, easing,
function() {
bool = false
});
$(clickObj).removeClass("on");
$(clickObj).eq(b).addClass("on")
}
function stoptime() {
clearTimeout(movetime);
movetime = null
}
if (movebool) starttime()
}
return e
}(JS || {});
JS.rmenu();
JS.move(".dmenu a", ".bprev", ".bnext", ".bc", $(".bc").width(), 800, "linear", true);
JS.move(".p1 .pagec a", ".p1 .prev", ".p1 .next", ".xlh .qhimgc", 1980, 800, "easeOutBack");
JS.move(".p2 .pagec a", ".p2 .prev", ".p2 .next", ".jmh .qhimgc", 1980, 800, "easeOutBack");
JS.move(".p3 .pagec a", ".p3 .prev", ".p3 .next", ".gyh .qhimgc", 1980, 800, "easeOutBack");
JS.move(".p4 .pagec a", ".p4 .prev", ".p4 .next", ".mrh .qhimgc", 1980, 800, "easeOutBack");
JS.move(".p5 .pagec a", ".p5 .prev", ".p5 .next", ".smgyh .qhimgc", 1980, 800, "easeOutBack");
JS.move(".p6 .pagec a", ".p6 .prev", ".p6 .next", ".xwh .qhimgc", 1980, 800, "easeOutBack");
$(".shili .hd a").click(function() {
$(this).addClass("cur").siblings().removeClass("cur");
$(".shili .bd > .item ").eq($(this).index()).show().siblings().hide()
});
$(".J_slideShiLi").jSlider({
onChange: function(k, ac) {
$(".J_slideShiIiTxt .txt-item").hide();
$(".J_slideShiIiTxt [data-num=" + ac + "]").show();
}
});
$(".J_slideZhengHe").jSlider({
onChange: function(k, ac) {
$(".J_slideZhengHeTxt .txt-item").hide();
$(".J_slideZhengHeTxt [data-num=" + ac + "]").show();
}
});
$(".rslides").responsiveSlides({
pager: false,
nav: true
});
JS.move("#J_advantage1 .pagec a", "#J_advantage1 .prev", "#J_advantage1 .next", "#J_advantage1 li", 1980, 800, "easeOutBack", true);
JS.move("#focus_Box .pagination span", "#focus_Box .prev", "#focus_Box .next", "#focus_Box li", 1000, 800, "easeOutBack", true);
JS.move("#J_slide2 .pagination span", "", "", "#J_slide2 .slide-plane-wrap li", 980, 800, "easeOutBack", true);
if ($("#J_carousel").length) {
$("#J_carousel ul").carouFredSel({
items: 3,
prev: "#J_carousel .prev",
next: "#J_carousel .next",
auto: false,
scroll: {
items: 1,
circular: true
}
})
}
$(".mn-select").click(function() {
$(this).toggleClass("mn-select-open")
});
$(".album-slide .pagination span").click(function() {
if ($(this).hasClass("cur")) {
return
}
$(this).addClass("cur").siblings().removeClass("cur");
$(".album-slide .item").eq($(this).index()).fadeIn().siblings(".item").fadeOut()
});
$("#J_share .weixin").hover(function() {
$(this).addClass("on")
},
function() {
$(this).removeClass("on")
});
$("#indexSlider").responsiveSlides({
auto: true,
pager: true,
speed: 300,
nav: true
});
$("#J_istarpic").responsiveSlides({
auto: true,
pager: true,
speed: 300,
nav: false
});
$(".mod-slide .slide-wrap").responsiveSlides({
auto: true,
pager: true,
speed: 300,
nav: false
});
$(".J_slides .pic-wrap").responsiveSlides({
auto: true,
pager: true,
speed: 300,
nav: false
});