// jquery.royalslider v9.5.1
(function(n) {
function u(b, f) {
var c, a = this,
e = window.navigator,
g = e.useragent.tolowercase();
a.uid = n.rsmodules.uid++;
a.ns = ".rs" + a.uid;
var d = document.createelement("div").style,
h = ["webkit", "moz", "ms", "o"],
k = "",
l = 0,
r;
for (c = 0; c < h.length; c++) r = h[c], !k && r + "transform" in d && (k = r), r = r.tolowercase(), window.requestanimationframe || (window.requestanimationframe = window[r + "requestanimationframe"], window.cancelanimationframe = window[r + "cancelanimationframe"] || window[r + "cancelrequestanimationframe"]);
window.requestanimationframe || (window.requestanimationframe = function(a, b) {
var c = (new date).gettime(),
d = math.max(0, 16 - (c - l)),
e = window.settimeout(function() {
a(c + d)
}, d);
l = c + d;
return e
});
window.cancelanimationframe || (window.cancelanimationframe = function(a) {
cleartimeout(a)
});
a.isipad = g.match(/(ipad)/);
a.isios = a.isipad || g.match(/(iphone|ipod)/);
c = function(a) {
a = /(chrome)[ \/]([\w.]+)/.exec(a) || /(webkit)[ \/]([\w.]+)/.exec(a) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a) || /(msie) ([\w.]+)/.exec(a) || 0 > a.indexof("compatible") && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a) || [];
return {
browser: a[1] || "",
version: a[2] || "0"
}
}(g);
h = {};
c.browser && (h[c.browser] = !0, h.version = c.version);
h.chrome && (h.webkit = !0);
a._a = h;
a.isandroid = -1 < g.indexof("android");
a.slider = n(b);
a.ev = n(a);
a._b = n(document);
a.st = n.extend({}, n.fn.royalslider.defaults, f);
a._c = a.st.transitionspeed;
a._d = 0;
!a.st.allowcss3 || h.webkit && !a.st.allowcss3onwebkit || (c = k + (k ? "t" : "t"), a._e = c + "ransform" in d && c + "ransition" in d, a._e && (a._f = k + (k ? "p" : "p") + "erspective" in d));
k = k.tolowercase();
a._g = "-" + k + "-";
a._h = "vertical" === a.st.slidesorientation ? !1 : !0;
a._i = a._h ? "left" : "top";
a._j = a._h ? "width" : "height";
a._k = -1;
a._l = "fade" === a.st.transitiontype ? !1 : !0;
a._l || (a.st.sliderdrag = !1, a._m = 10);
a._n = "z-index:0; display:none; opacity:0;";
a._o = 0;
a._p = 0;
a._q = 0;
n.each(n.rsmodules, function(b, c) {
"uid" !== b && c.call(a)
});
a.slides = [];
a._r = 0;
(a.st.slides ? n(a.st.slides) : a.slider.children().detach()).each(function() {
a._s(this, !0)
});
a.st.randomizeslides && a.slides.sort(function() {
return 0.5 - math.random()
});
a.numslides = a.slides.length;
a._t();
a.st.startslideid ? a.st.startslideid > a.numslides - 1 && (a.st.startslideid = a.numslides - 1) : a.st.startslideid = 0;
a._o = a.staticslideid = a.currslideid = a._u = a.st.startslideid;
a.currslide = a.slides[a.currslideid];
a._v = 0;
a.pointermultitouch = !1;
a.slider.addclass((a._h ? "rshor" : "rsver") + (a._l ? "" : " rsfade"));
d = '
';
a.slidesspacing = a.st.slidesspacing;
a._w = (a._h ? a.slider.width() : a.slider.height()) + a.st.slidesspacing;
a._x = boolean(0 < a._y);
1 >= a.numslides && (a._z = !1);
a._a1 = a._z && a._l ? 2 === a.numslides ? 1 : 2 : 0;
a._b1 = 6 > a.numslides ? a.numslides : 6;
a._c1 = 0;
a._d1 = 0;
a.slidesjq = [];
for (c = 0; c < a.numslides; c++) a.slidesjq.push(n(''));
a._e1 = d = n(d + "
");
var m = a.ns,
k = function(b, c, d, e, f) {
a._j1 = b + c + m;
a._k1 = b + d + m;
a._l1 = b + e + m;
f && (a._m1 = b + f + m)
};
c = e.pointerenabled;
a.pointerenabled = c || e.mspointerenabled;
a.pointerenabled ? (a.hastouch = !1, a._n1 = 0.2, a.pointermultitouch = boolean(1 < e[(c ? "m" : "msm") + "axtouchpoints"]), c ? k("pointer", "down", "move", "up", "cancel") : k("mspointer", "down", "move", "up", "cancel")) : (a.isios ? a._j1 = a._k1 = a._l1 = a._m1 = "" : k("mouse", "down", "move", "up"), "ontouchstart" in window || "createtouch" in document ? (a.hastouch = !0, a._j1 += " touchstart" + m, a._k1 += " touchmove" + m, a._l1 += " touchend" + m, a._m1 += " touchcancel" + m, a._n1 = 0.5, a.st.slidertouch && (a._f1 = !0)) : (a.hastouch = !1, a._n1 = 0.2));
a.st.sliderdrag && (a._f1 = !0, h.msie || h.opera ? a._g1 = a._h1 = "move" : h.mozilla ? (a._g1 = "-moz-grab", a._h1 = "-moz-grabbing") : h.webkit && -1 != e.platform.indexof("mac") && (a._g1 = "-webkit-grab", a._h1 = "-webkit-grabbing"), a._i1());
a.slider.html(d);
a._o1 = a.st.controlsinside ? a._e1 : a.slider;
a._p1 = a._e1.children(".rscontainer");
a.pointerenabled && a._p1.css((c ? "" : "-ms-") + "touch-action", a._h ? "pan-y" : "pan-x");
a._q1 = n('');
e = a._p1.children(".rsslide");
a._r1 = a.slidesjq[a.currslideid];
a._s1 = 0;
a._e ? (a._t1 = "transition-property", a._u1 = "transition-duration", a._v1 = "transition-timing-function", a._w1 = a._x1 = a._g + "transform", a._f ? (h.webkit && !h.chrome && a.slider.addclass("rswebkit3d"), a._y1 = "translate3d(", a._z1 = "px, ", a._a2 = "px, 0px)") : (a._y1 = "translate(", a._z1 = "px, ", a._a2 = "px)"), a._l ? a._p1[a._g + a._t1] = a._g + "transform" : (h = {}, h[a._g + a._t1] = "opacity", h[a._g + a._u1] = a.st.transitionspeed + "ms", h[a._g + a._v1] = a.st.css3easeinout, e.css(h))) : (a._x1 = "left", a._w1 = "top");
var p;
n(window).on("resize" + a.ns, function() {
p && cleartimeout(p);
p = settimeout(function() {
a.updateslidersize()
}, 50)
});
a.ev.trigger("rsafterpropssetup");
a.updateslidersize();
a.st.keyboardnavenabled && a._b2();
a.st.arrowsnavhideontouch && (a.hastouch || a.pointermultitouch) && (a.st.arrowsnav = !1);
a.st.arrowsnav && (e = a._o1, n('').appendto(e), a._c2 = e.children(".rsarrowleft").click(function(b) {
b.preventdefault();
a.prev()
}), a._d2 = e.children(".rsarrowright").click(function(b) {
b.preventdefault();
a.next()
}), a.st.arrowsnavautohide && !a.hastouch && (a._c2.addclass("rshidden"), a._d2.addclass("rshidden"), e.one("mousemove.arrowshover", function() {
a._c2.removeclass("rshidden");
a._d2.removeclass("rshidden")
}), e.hover(function() {
a._e2 || (a._c2.removeclass("rshidden"), a._d2.removeclass("rshidden"))
}, function() {
a._e2 || (a._c2.addclass("rshidden"), a._d2.addclass("rshidden"))
})), a.ev.on("rsonupdatenav", function() {
a._f2()
}), a._f2());
if (a._f1) a._p1.on(a._j1, function(b) {
a._g2(b)
});
else a.dragsuccess = !1;
var q = ["rsplaybtnicon", "rsplaybtn", "rsclosevideobtn", "rsclosevideoicn"];
a._p1.click(function(b) {
if (!a.dragsuccess) {
var c = n(b.target).attr("class");
if (-1 !== n.inarray(c, q) && a.togglevideo()) return !1;
if (a.st.navigatebyclick && !a._h2) {
if (n(b.target).closest(".rsnodrag", a._r1).length) return !0;
a._i2(b)
}
a.ev.trigger("rsslideclick", b)
}
}).on("click.rs", "a", function(b) {
if (a.dragsuccess) return !1;
a._h2 = !0;
settimeout(function() {
a._h2 = !1
}, 3)
});
a.ev.trigger("rsafterinit")
}
n.rsmodules || (n.rsmodules = {
uid: 0
});
u.prototype = {
constructor: u,
_i2: function(b) {
b = b[this._h ? "pagex" : "pagey"] - this._j2;
b >= this._q ? this.next() : 0 > b && this.prev()
},
_t: function() {
var b;
b = this.st.numimagestopreload;
if (this._z = this.st.loop) 2 === this.numslides ? (this._z = !1, this.st.looprewind = !0) : 2 > this.numslides && (this.st.looprewind = this._z = !1);
this._z && 0 < b && (4 >= this.numslides ? b = 1 : this.st.numimagestopreload > (this.numslides - 1) / 2 && (b = math.floor((this.numslides - 1) / 2)));
this._y = b
},
_s: function(b, f) {
function c(b, c) {
c ? g.images.push(b.attr(c)) : g.images.push(b.text());
if (h) {
h = !1;
g.caption = "src" === c ? b.attr("alt") : b.contents();
g.image = g.images[0];
g.videourl = b.attr("data-rsvideo");
var d = b.attr("data-rsw"),
e = b.attr("data-rsh");
"undefined" !== typeof d && !1 !== d && "undefined" !== typeof e && !1 !== e ? (g.iw = parseint(d, 10), g.ih = parseint(e, 10)) : a.st.imgwidth && a.st.imgheight && (g.iw = a.st.imgwidth, g.ih = a.st.imgheight)
}
}
var a = this,
e, g = {},
d, h = !0;
b = n(b);
a._k2 = b;
a.ev.trigger("rsbeforeparsenode", [b, g]);
if (!g.stopparsing) return b = a._k2, g.id = a._r, g.contentadded = !1, a._r++, g.images = [], g.isbig = !1, g.hascover || (b.hasclass("rsimg") ? (d = b, e = !0) : (d = b.find(".rsimg"), d.length && (e = !0)), e ? (g.bigimage = d.eq(0).attr("data-rsbigimg"), d.each(function() {
var a = n(this);
a.is("a") ? c(a, "href") : a.is("img") ? c(a, "src") : c(a)
})) : b.is("img") && (b.addclass("rsimg rsmainslideimage"), c(b, "src"))), d = b.find(".rscaption"), d.length && (g.caption = d.remove()), g.content = b, a.ev.trigger("rsafterparsenode", [b, g]), f && a.slides.push(g), 0 === g.images.length && (g.isloaded = !0, g.isrendered = !1, g.isloading = !1, g.images = null), g
},
_b2: function() {
var b = this,
f, c, a = function(a) {
37 === a ? b.prev() : 39 === a && b.next()
};
b._b.on("keydown" + b.ns, function(e) {
b._l2 || (c = e.keycode, 37 !== c && 39 !== c || f || (a(c), f = setinterval(function() {
a(c)
}, 700)))
}).on("keyup" + b.ns, function(a) {
f && (clearinterval(f), f = null)
})
},
goto: function(b, f) {
b !== this.currslideid && this._m2(b, this.st.transitionspeed, !0, !f)
},
destroy: function(b) {
this.ev.trigger("rsbeforedestroy");
this._b.off("keydown" + this.ns + " keyup" + this.ns + " " + this._k1 + " " + this._l1);
this._p1.off(this._j1 + " click");
this.slider.data("royalslider", null);
n.removedata(this.slider, "royalslider");
n(window).off("resize" + this.ns);
b && this.slider.remove();
this.ev = this.slider = this.slides = null
},
_n2: function(b, f) {
function c(c, f, g) {
c.isadded ? (a(f, c), e(f, c)) : (g || (g = d.slidesjq[f]), c.holder ? g = c.holder : (g = d.slidesjq[f] = n(g), c.holder = g), c.appendonloaded = !1, e(f, c, g), a(f, c), d._p2(c, g, b), c.isadded = !0)
}
function a(a, c) {
c.contentadded || (d.setitemhtml(c, b), b || (c.contentadded = !0))
}
function e(a, b, c) {
d._l && (c || (c = d.slidesjq[a]), c.css(d._i, (a + d._d1 + p) * d._w))
}
function g(a) {
if (l) {
if (a > r - 1) return g(a - r);
if (0 > a) return g(r + a)
}
return a
}
var d = this,
h, k, l = d._z,
r = d.numslides;
if (!isnan(f)) return g(f);
var m = d.currslideid,
p, q = b ? math.abs(d._o2 - d.currslideid) >= d.numslides - 1 ? 0 : 1 : d._y,
s = math.min(2, q),
v = !1,
u = !1,
t;
for (k = m; k < m + 1 + s; k++) if (t = g(k), (h = d.slides[t]) && (!h.isadded || !h.positionset)) {
v = !0;
break
}
for (k = m - 1; k > m - 1 - s; k--) if (t = g(k), (h = d.slides[t]) && (!h.isadded || !h.positionset)) {
u = !0;
break
}
if (v) for (k = m; k < m + q + 1; k++) t = g(k), p = math.floor((d._u - (m - k)) / d.numslides) * d.numslides, (h = d.slides[t]) && c(h, t);
if (u) for (k = m - 1; k > m - 1 - q; k--) t = g(k), p = math.floor((d._u - (m - k)) / r) * r, (h = d.slides[t]) && c(h, t);
if (!b) for (s = g(m - q), m = g(m + q), q = s > m ? 0 : s, k = 0; k < r; k++) s > m && k > s - 1 || !(k < q || k > m) || (h = d.slides[k]) && h.holder && (h.holder.detach(), h.isadded = !1)
},
setitemhtml: function(b, f) {
var c = this,
a = function() {
if (!b.images) b.isrendered = !0, b.isloaded = !0, b.isloading = !1, d(!0);
else if (!b.isloading) {
var a, f;
b.content.hasclass("rsimg") ? (a = b.content, f = !0) : a = b.content.find(".rsimg:not(img)");
a && !a.is("img") && a.each(function() {
var a = n(this),
c = '';
f ? b.content = n(c) : a.replacewith(c)
});
a = f ? b.content : b.content.find("img.rsimg");
k();
a.eq(0).addclass("rsmainslideimage");
b.iw && b.ih && (b.isloaded || c._q2(b), d());
b.isloading = !0;
if (b.isbig) n("").on("load.rs error.rs", function(a) {
n(this).off("load.rs error.rs");
e([this], !0)
}).attr("src", b.image);
else {
b.loaded = [];
b.numstartedload = 0;
a = function(a) {
n(this).off("load.rs error.rs");
b.loaded.push(this);
b.loaded.length === b.numstartedload && e(b.loaded, !1)
};
for (var g = 0; g < b.images.length; g++) {
var h = n("");
b.numstartedload++;
h.on("load.rs error.rs", a).attr("src", b.images[g])
}
}
}
},
e = function(a, c) {
if (a.length) {
var d = a[0];
if (c !== b.isbig)(d = b.holder.children()) && 1 < d.length && l();
else if (b.iw && b.ih) g();
else if (b.iw = d.width, b.ih = d.height, b.iw && b.ih) g();
else {
var e = new image;
e.onload = function() {
e.width ? (b.iw = e.width, b.ih = e.height, g()) : settimeout(function() {
e.width && (b.iw = e.width, b.ih = e.height);
g()
}, 1e3)
};
e.src = d.src
}
} else g()
},
g = function() {
b.isloaded = !0;
b.isloading = !1;
d();
l();
h()
},
d = function() {
if (!b.isappended && c.ev) {
var a = c.st.visiblenearby,
d = b.id - c._o;
f || b.appendonloaded || !c.st.fadeinloadedslide || 0 !== d && (!(a || c._r2 || c._l2) || -1 !== d && 1 !== d) || (a = {
visibility: "visible",
opacity: 0
}, a[c._g + "transition"] = "opacity 400ms ease-in-out", b.content.css(a), settimeout(function() {
b.content.css("opacity", 1)
}, 16));
b.holder.find(".rspreloader").length ? b.holder.append(b.content) : b.holder.html(b.content);
b.isappended = !0;
b.isloaded && (c._q2(b), h());
b.sizeready || (b.sizeready = !0, settimeout(function() {
c.ev.trigger("rsmaybesizeready", b)
}, 100))
}
},
h = function() {
!b.loadedtriggered && c.ev && (b.isloaded = b.loadedtriggered = !0, b.holder.trigger("rsaftercontentset"), c.ev.trigger("rsaftercontentset", b))
},
k = function() {
c.st.usepreloader && b.holder.html(c._q1.clone())
},
l = function(a) {
c.st.usepreloader && (a = b.holder.find(".rspreloader"), a.length && a.remove())
};
b.isloaded ? d() : f ? !c._l && b.images && b.iw && b.ih ? a() : (b.holder.iswaiting = !0, k(), b.holder.slideid = -99) : a()
},
_p2: function(b, f, c) {
this._p1.append(b.holder);
b.appendonloaded = !1
},
_g2: function(b, f) {
var c = this,
a, e = "touchstart" === b.type;
c._s2 = e;
c.ev.trigger("rsdragstart");
if (n(b.target).closest(".rsnodrag", c._r1).length) return c.dragsuccess = !1, !0;
!f && c._r2 && (c._t2 = !0, c._u2());
c.dragsuccess = !1;
if (c._l2) e && (c._v2 = !0);
else {
e && (c._v2 = !1);
c._w2();
if (e) {
var g = b.originalevent.touches;
if (g && 0 < g.length) a = g[0], 1 < g.length && (c._v2 = !0);
else return
} else b.preventdefault(), a = b, c.pointerenabled && (a = a.originalevent);
c._l2 = !0;
c._b.on(c._k1, function(a) {
c._x2(a, f)
}).on(c._l1, function(a) {
c._y2(a, f)
});
c._z2 = "";
c._a3 = !1;
c._b3 = a.pagex;
c._c3 = a.pagey;
c._d3 = c._v = (f ? c._e3 : c._h) ? a.pagex : a.pagey;
c._f3 = 0;
c._g3 = 0;
c._h3 = f ? c._i3 : c._p;
c._j3 = (new date).gettime();
if (e) c._e1.on(c._m1, function(a) {
c._y2(a, f)
})
}
},
_k3: function(b, f) {
if (this._l3) {
var c = this._m3,
a = b.pagex - this._b3,
e = b.pagey - this._c3,
g = this._h3 + a,
d = this._h3 + e,
h = f ? this._e3 : this._h,
g = h ? g : d,
d = this._z2;
this._a3 = !0;
this._b3 = b.pagex;
this._c3 = b.pagey;
"x" === d && 0 !== a ? this._f3 = 0 < a ? 1 : -1 : "y" === d && 0 !== e && (this._g3 = 0 < e ? 1 : -1);
d = h ? this._b3 : this._c3;
a = h ? a : e;
f ? g > this._n3 ? g = this._h3 + a * this._n1 : g < this._o3 && (g = this._h3 + a * this._n1) : this._z || (0 >= this.currslideid && 0 < d - this._d3 && (g = this._h3 + a * this._n1), this.currslideid >= this.numslides - 1 && 0 > d - this._d3 && (g = this._h3 + a * this._n1));
this._h3 = g;
200 < c - this._j3 && (this._j3 = c, this._v = d);
f ? this._q3(this._h3) : this._l && this._p3(this._h3)
}
},
_x2: function(b, f) {
var c = this,
a, e = "touchmove" === b.type;
if (!c._s2 || e) {
if (e) {
if (c._r3) return;
var g = b.originalevent.touches;
if (g) {
if (1 < g.length) return;
a = g[0]
} else return
} else a = b, c.pointerenabled && (a = a.originalevent);
c._a3 || (c._e && (f ? c._s3 : c._p1).css(c._g + c._u1, "0s"), function h() {
c._l2 && (c._t3 = requestanimationframe(h), c._u3 && c._k3(c._u3, f))
}());
if (c._l3) b.preventdefault(), c._m3 = (new date).gettime(), c._u3 = a;
else if (g = f ? c._e3 : c._h, a = math.abs(a.pagex - c._b3) - math.abs(a.pagey - c._c3) - (g ? -7 : 7), 7 < a) {
if (g) b.preventdefault(), c._z2 = "x";
else if (e) {
c._v3(b);
return
}
c._l3 = !0
} else if (-7 > a) {
if (!g) b.preventdefault(), c._z2 = "y";
else if (e) {
c._v3(b);
return
}
c._l3 = !0
}
}
},
_v3: function(b, f) {
this._r3 = !0;
this._a3 = this._l2 = !1;
this._y2(b)
},
_y2: function(b, f) {
function c(a) {
return 100 > a ? 100 : 500 < a ? 500 : a
}
function a(a, b) {
if (e._l || f) h = (-e._u - e._d1) * e._w, k = math.abs(e._p - h), e._c = k / b, a && (e._c += 250), e._c = c(e._c), e._x3(h, !1)
}
var e = this,
g, d, h, k;
g = -1 < b.type.indexof("touch");
if (!e._s2 || g) if (e._s2 = !1, e.ev.trigger("rsdragrelease"), e._u3 = null, e._l2 = !1, e._r3 = !1, e._l3 = !1, e._m3 = 0, cancelanimationframe(e._t3), e._a3 && (f ? e._q3(e._h3) : e._l && e._p3(e._h3)), e._b.off(e._k1).off(e._l1), g && e._e1.off(e._m1), e._i1(), !e._a3 && !e._v2 && f && e._w3) {
var l = n(b.target).closest(".rsnavitem");
l.length && e.goto(l.index())
} else {
d = f ? e._e3 : e._h;
if (!e._a3 || "y" === e._z2 && d || "x" === e._z2 && !d) if (!f && e._t2) {
e._t2 = !1;
if (e.st.navigatebyclick) {
e._i2(e.pointerenabled ? b.originalevent : b);
e.dragsuccess = !0;
return
}
e.dragsuccess = !0
} else {
e._t2 = !1;
e.dragsuccess = !1;
return
} else e.dragsuccess = !0;
e._t2 = !1;
e._z2 = "";
var r = e.st.minslideoffset;
g = g ? b.originalevent.changedtouches[0] : e.pointerenabled ? b.originalevent : b;
var m = d ? g.pagex : g.pagey,
p = e._d3;
g = e._v;
var q = e.currslideid,
s = e.numslides,
v = d ? e._f3 : e._g3,
u = e._z;
math.abs(m - p);
g = m - g;
d = (new date).gettime() - e._j3;
d = math.abs(g) / d;
if (0 === v || 1 >= s) a(!0, d);
else {
if (!u && !f) if (0 >= q) {
if (0 < v) {
a(!0, d);
return
}
} else if (q >= s - 1 && 0 > v) {
a(!0, d);
return
}
if (f) {
h = e._i3;
if (h > e._n3) h = e._n3;
else if (h < e._o3) h = e._o3;
else {
m = d * d / 0.006;
l = -e._i3;
p = e._y3 - e._z3 + e._i3;
0 < g && m > l ? (l += e._z3 / (15 / (m / d * 0.003)), d = d * l / m, m = l) : 0 > g && m > p && (p += e._z3 / (15 / (m / d * 0.003)), d = d * p / m, m = p);
l = math.max(math.round(d / 0.003), 50);
h += m * (0 > g ? -1 : 1);
if (h > e._n3) {
e._a4(h, l, !0, e._n3, 200);
return
}
if (h < e._o3) {
e._a4(h, l, !0, e._o3, 200);
return
}
}
e._a4(h, l, !0)
} else l = function(a) {
var b = math.floor(a / e._w);
a - b * e._w > r && b++;
return b
}, p + r < m ? 0 > v ? a(!1, d) : (l = l(m - p), e._m2(e.currslideid - l, c(math.abs(e._p - (-e._u - e._d1 + l) * e._w) / d), !1, !0, !0)) : p - r > m ? 0 < v ? a(!1, d) : (l = l(p - m), e._m2(e.currslideid + l, c(math.abs(e._p - (-e._u - e._d1 - l) * e._w) / d), !1, !0, !0)) : a(!1, d)
}
}
},
_p3: function(b) {
b = this._p = b;
this._e ? this._p1.css(this._x1, this._y1 + (this._h ? b + this._z1 + 0 : 0 + this._z1 + b) + this._a2) : this._p1.css(this._h ? this._x1 : this._w1, b)
},
updateslidersize: function(b) {
var f, c;
if (this.st.autoscaleslider) {
var a = this.st.autoscalesliderwidth,
e = this.st.autoscalesliderheight;
this.st.autoscaleheight ? (f = this.slider.width(), f != this.width && (this.slider.css("height", e / a * f), f = this.slider.width()), c = this.slider.height()) : (c = this.slider.height(), c != this.height && (this.slider.css("width", a / e * c), c = this.slider.height()), f = this.slider.width())
} else f = this.slider.width(), c = this.slider.height();
if (b || f != this.width || c != this.height) {
this.width = f;
this.height = c;
this._b4 = f;
this._c4 = c;
this.ev.trigger("rsbeforesizeset");
this.ev.trigger("rsaftersizepropset");
this._e1.css({
width: this._b4,
height: this._c4
});
this._w = (this._h ? this._b4 : this._c4) + this.st.slidesspacing;
this._d4 = this.st.imagescalepadding;
for (f = 0; f < this.slides.length; f++) b = this.slides[f], b.positionset = !1, b && b.images && b.isloaded && (b.isrendered = !1, this._q2(b));
if (this._e4) for (f = 0; f < this._e4.length; f++) b = this._e4[f], b.holder.css(this._i, (b.id + this._d1) * this._w);
this._n2();
this._l && (this._e && this._p1.css(this._g + "transition-duration", "0s"), this._p3((-this._u - this._d1) * this._w));
this.ev.trigger("rsonupdatenav")
}
this._j2 = this._e1.offset();
this._j2 = this._j2[this._i]
},
appendslide: function(b, f) {
var c = this._s(b);
if (isnan(f) || f > this.numslides) f = this.numslides;
this.slides.splice(f, 0, c);
this.slidesjq.splice(f, 0, n(''));
f < this.currslideid && this.currslideid++;
this.ev.trigger("rsonappendslide", [c, f]);
this._f4(f);
f === this.currslideid && this.ev.trigger("rsafterslidechange")
},
removeslide: function(b) {
var f = this.slides[b];
f && (f.holder && f.holder.remove(), b < this.currslideid && this.currslideid--, this.slides.splice(b, 1), this.slidesjq.splice(b, 1), this.ev.trigger("rsonremoveslide", [b]), this._f4(b), b === this.currslideid && this.ev.trigger("rsafterslidechange"))
},
_f4: function(b) {
var f = this;
b = f.numslides;
b = 0 >= f._u ? 0 : math.floor(f._u / b);
f.numslides = f.slides.length;
0 === f.numslides ? (f.currslideid = f._d1 = f._u = 0, f.currslide = f._g4 = null) : f._u = b * f.numslides + f.currslideid;
for (b = 0; b < f.numslides; b++) f.slides[b].id = b;
f.currslide = f.slides[f.currslideid];
f._r1 = f.slidesjq[f.currslideid];
f.currslideid >= f.numslides ? f.goto(f.numslides - 1) : 0 > f.currslideid && f.goto(0);
f._t();
f._l && f._z && f._p1.css(f._g + f._u1, "0ms");
f._h4 && cleartimeout(f._h4);
f._h4 = settimeout(function() {
f._l && f._p3((-f._u - f._d1) * f._w);
f._n2();
f._l || f._r1.css({
display: "block",
opacity: 1
})
}, 14);
f.ev.trigger("rsonupdatenav")
},
_i1: function() {
this._f1 && this._l && (this._g1 ? this._e1.css("cursor", this._g1) : (this._e1.removeclass("grabbing-cursor"), this._e1.addclass("grab-cursor")))
},
_w2: function() {
this._f1 && this._l && (this._h1 ? this._e1.css("cursor", this._h1) : (this._e1.removeclass("grab-cursor"), this._e1.addclass("grabbing-cursor")))
},
next: function(b) {
this._m2("next", this.st.transitionspeed, !0, !b)
},
prev: function(b) {
this._m2("prev", this.st.transitionspeed, !0, !b)
},
_m2: function(b, f, c, a, e) {
var g = this,
d, h, k;
g.ev.trigger("rsbeforemove", [b, a]);
k = "next" === b ? g.currslideid + 1 : "prev" === b ? g.currslideid - 1 : b = parseint(b, 10);
if (!g._z) {
if (0 > k) {
g._i4("left", !a);
return
}
if (k >= g.numslides) {
g._i4("right", !a);
return
}
}
g._r2 && (g._u2(!0), c = !1);
h = k - g.currslideid;
k = g._o2 = g.currslideid;
var l = g.currslideid + h;
a = g._u;
var n;
g._z ? (l = g._n2(!1, l), a += h) : a = l;
g._o = l;
g._g4 = g.slidesjq[g.currslideid];
g._u = a;
g.currslideid = g._o;
g.currslide = g.slides[g.currslideid];
g._r1 = g.slidesjq[g.currslideid];
var l = g.st.slidesdiff,
m = boolean(0 < h);
h = math.abs(h);
var p = math.floor(k / g._y),
q = math.floor((k + (m ? l : -l)) / g._y),
p = (m ? math.max(p, q) : math.min(p, q)) * g._y + (m ? g._y - 1 : 0);
p > g.numslides - 1 ? p = g.numslides - 1 : 0 > p && (p = 0);
k = m ? p - k : k - p;
k > g._y && (k = g._y);
if (h > k + l) for (g._d1 += (h - (k + l)) * (m ? -1 : 1), f *= 1.4, k = 0; k < g.numslides; k++) g.slides[k].positionset = !1;
g._c = f;
g._n2(!0);
e || (n = !0);
d = (-a - g._d1) * g._w;
n ? settimeout(function() {
g._j4 = !1;
g._x3(d, b, !1, c);
g.ev.trigger("rsonupdatenav")
}, 0) : (g._x3(d, b, !1, c), g.ev.trigger("rsonupdatenav"))
},
_f2: function() {
this.st.arrowsnav && (1 >= this.numslides ? (this._c2.css("display", "none"), this._d2.css("display", "none")) : (this._c2.css("display", "block"), this._d2.css("display", "block"), this._z || this.st.looprewind || (0 === this.currslideid ? this._c2.addclass("rsarrowdisabled") : this._c2.removeclass("rsarrowdisabled"), this.currslideid === this.numslides - 1 ? this._d2.addclass("rsarrowdisabled") : this._d2.removeclass("rsarrowdisabled"))))
},
_x3: function(b, f, c, a, e) {
function g() {
var a;
h && (a = h.data("rstimeout")) && (h !== k && h.css({
opacity: 0,
display: "none",
zindex: 0
}), cleartimeout(a), h.data("rstimeout", ""));
if (a = k.data("rstimeout")) cleartimeout(a), k.data("rstimeout", "")
}
var d = this,
h, k, l = {};
isnan(d._c) && (d._c = 400);
d._p = d._h3 = b;
d.ev.trigger("rsbeforeanimstart");
d._e ? d._l ? (d._c = parseint(d._c, 10), c = d._g + d._v1, l[d._g + d._u1] = d._c + "ms", l[c] = a ? n.rscss3easing[d.st.easeinout] : n.rscss3easing[d.st.easeout], d._p1.css(l), a || !d.hastouch ? settimeout(function() {
d._p3(b)
}, 5) : d._p3(b)) : (d._c = d.st.transitionspeed, h = d._g4, k = d._r1, k.data("rstimeout") && k.css("opacity", 0), g(), h && h.data("rstimeout", settimeout(function() {
l[d._g + d._u1] = "0ms";
l.zindex = 0;
l.display = "none";
h.data("rstimeout", "");
h.css(l);
settimeout(function() {
h.css("opacity", 0)
}, 16)
}, d._c + 60)), l.display = "block", l.zindex = d._m, l.opacity = 0, l[d._g + d._u1] = "0ms", l[d._g + d._v1] = n.rscss3easing[d.st.easeinout], k.css(l), k.data("rstimeout", settimeout(function() {
k.css(d._g + d._u1, d._c + "ms");
k.data("rstimeout", settimeout(function() {
k.css("opacity", 1);
k.data("rstimeout", "")
}, 20))
}, 20))) : d._l ? (l[d._h ? d._x1 : d._w1] = b + "px", d._p1.animate(l, d._c, a ? d.st.easeinout : d.st.easeout)) : (h = d._g4, k = d._r1, k.stop(!0, !0).css({
opacity: 0,
display: "block",
zindex: d._m
}), d._c = d.st.transitionspeed, k.animate({
opacity: 1
}, d._c, d.st.easeinout), g(), h && h.data("rstimeout", settimeout(function() {
h.stop(!0, !0).css({
opacity: 0,
display: "none",
zindex: 0
})
}, d._c + 60)));
d._r2 = !0;
d.loadingtimeout && cleartimeout(d.loadingtimeout);
d.loadingtimeout = e ? settimeout(function() {
d.loadingtimeout = null;
e.call()
}, d._c + 60) : settimeout(function() {
d.loadingtimeout = null;
d._k4(f)
}, d._c + 60)
},
_u2: function(b) {
this._r2 = !1;
cleartimeout(this.loadingtimeout);
if (this._l) if (!this._e) this._p1.stop(!0), this._p = parseint(this._p1.css(this._x1), 10);
else {
if (!b) {
b = this._p;
var f = this._h3 = this._l4();
this._p1.css(this._g + this._u1, "0ms");
b !== f && this._p3(f)
}
} else 20 < this._m ? this._m = 10 : this._m++
},
_l4: function() {
var b = window.getcomputedstyle(this._p1.get(0), null).getpropertyvalue(this._g + "transform").replace(/^matrix\(/i, "").split(/, |\)$/g),
f = 0 === b[0].indexof("matrix3d");
return parseint(b[this._h ? f ? 12 : 4 : f ? 13 : 5], 10)
},
_m4: function(b, f) {
return this._e ? this._y1 + (f ? b + this._z1 + 0 : 0 + this._z1 + b) + this._a2 : b
},
_k4: function(b) {
this._l || (this._r1.css("z-index", 0), this._m = 10);
this._r2 = !1;
this.staticslideid = this.currslideid;
this._n2();
this._n4 = !1;
this.ev.trigger("rsafterslidechange")
},
_i4: function(b, f) {
var c = this,
a = (-c._u - c._d1) * c._w;
if (0 !== c.numslides && !c._r2) if (c.st.looprewind) c.goto("left" === b ? c.numslides - 1 : 0, f);
else if (c._l) {
c._c = 200;
var e = function() {
c._r2 = !1
};
c._x3(a + ("left" === b ? 30 : -30), "", !1, !0, function() {
c._r2 = !1;
c._x3(a, "", !1, !0, e)
})
}
},
_q2: function(b, f) {
if (!b.isrendered) {
var c = b.content,
a = "rsmainslideimage",
e, g = this.st.imagealigncenter,
d = this.st.imagescalemode,
h;
b.videourl && (a = "rsvideocontainer", "fill" !== d ? e = !0 : (h = c, h.hasclass(a) || (h = h.find("." + a)), h.css({
width: "100%",
height: "100%"
}), a = "rsmainslideimage"));
c.hasclass(a) || (c = c.find("." + a));
if (c) {
var k = b.iw,
l = b.ih;
b.isrendered = !0;
if ("none" !== d || g) {
a = "fill" !== d ? this._d4 : 0;
h = this._b4 - 2 * a;
var n = this._c4 - 2 * a,
m, p, q = {};
"fit-if-smaller" === d && (k > h || l > n) && (d = "fit");
if ("fill" === d || "fit" === d) m = h / k, p = n / l, m = "fill" == d ? m > p ? m : p : "fit" == d ? m < p ? m : p : 1, k = math.ceil(k * m, 10), l = math.ceil(l * m, 10);
"none" !== d && (q.width = k, q.height = l, e && c.find(".rsimg").css({
width: "100%",
height: "100%"
}));
g && (q.marginleft = math.floor((h - k) / 2) + a, q.margintop = math.floor((n - l) / 2) + a);
c.css(q)
}
}
}
}
};
n.rsproto = u.prototype;
n.fn.royalslider = function(b) {
var f = arguments;
return this.each(function() {
var c = n(this);
if ("object" !== typeof b && b) {
if ((c = c.data("royalslider")) && c[b]) return c[b].apply(c, array.prototype.slice.call(f, 1))
} else c.data("royalslider") || c.data("royalslider", new u(c, b))
})
};
n.fn.royalslider.defaults = {
slidesspacing: 8,
startslideid: 0,
loop: !1,
looprewind: !1,
numimagestopreload: 4,
fadeinloadedslide: !0,
slidesorientation: "horizontal",
transitiontype: "move",
transitionspeed: 600,
controlnavigation: "bullets",
controlsinside: !0,
arrowsnav: !0,
arrowsnavautohide: !0,
navigatebyclick: !0,
randomizeslides: !1,
sliderdrag: !0,
slidertouch: !0,
keyboardnavenabled: !1,
fadeinafterloaded: !0,
allowcss3: !0,
allowcss3onwebkit: !0,
addactiveclass: !1,
autoheight: !1,
easeout: "easeoutsine",
easeinout: "easeinoutsine",
minslideoffset: 10,
imagescalemode: "fit-if-smaller",
imagealigncenter: !0,
imagescalepadding: 4,
usepreloader: !0,
autoscaleslider: !1,
autoscalesliderwidth: 800,
autoscalesliderheight: 400,
autoscaleheight: !0,
arrowsnavhideontouch: !1,
globalcaption: !1,
slidesdiff: 2
};
n.rscss3easing = {
easeoutsine: "cubic-bezier(0.390, 0.575, 0.565, 1.000)",
easeinoutsine: "cubic-bezier(0.445, 0.050, 0.550, 0.950)"
};
n.extend(jquery.easing, {
easeinoutsine: function(b, f, c, a, e) {
return -a / 2 * (math.cos(math.pi * f / e) - 1) + c
},
easeoutsine: function(b, f, c, a, e) {
return a * math.sin(f / e * (math.pi / 2)) + c
},
easeoutcubic: function(b, f, c, a, e) {
return a * ((f = f / e - 1) * f * f + 1) + c
}
})
})(jquery, window);
// jquery.rs.active-class v1.0.1
(function(c) {
c.rsproto._o4 = function() {
var b, a = this;
if (a.st.addactiveclass) a.ev.on("rsonupdatenav", function() {
b && cleartimeout(b);
b = settimeout(function() {
a._g4 && a._g4.removeclass("rsactiveslide");
a._r1 && a._r1.addclass("rsactiveslide");
b = null
}, 50)
})
};
c.rsmodules.activeclass = c.rsproto._o4
})(jquery);
// jquery.rs.animated-blocks v1.0.7
(function(l) {
l.extend(l.rsproto, {
_p4: function() {
function m() {
var g = a.currslide;
if (a.currslide && a.currslide.isloaded && a._t4 !== g) {
if (0 < a._s4.length) {
for (b = 0; b < a._s4.length; b++) cleartimeout(a._s4[b]);
a._s4 = []
}
if (0 < a._r4.length) {
var f;
for (b = 0; b < a._r4.length; b++) if (f = a._r4[b]) a._e ? (f.block.css(a._g + a._u1, "0s"), f.block.css(f.css)) : f.block.stop(!0).css(f.css), a._t4 = null, g.animblocksdisplayed = !1;
a._r4 = []
}
g.animblocks && (g.animblocksdisplayed = !0, a._t4 = g, a._u4(g.animblocks))
}
}
var a = this,
b;
a._q4 = {
fadeeffect: !0,
moveeffect: "top",
moveoffset: 20,
speed: 400,
easing: "easeoutsine",
delay: 200
};
a.st.block = l.extend({}, a._q4, a.st.block);
a._r4 = [];
a._s4 = [];
a.ev.on("rsafterinit", function() {
m()
});
a.ev.on("rsbeforeparsenode", function(a, b, d) {
b = l(b);
d.animblocks = b.find(".rsablock").css("display", "none");
d.animblocks.length || (b.hasclass("rsablock") ? d.animblocks = b.css("display", "none") : d.animblocks = !1)
});
a.ev.on("rsaftercontentset", function(b, f) {
f.id === a.slides[a.currslideid].id && settimeout(function() {
m()
}, a.st.fadeinloadedslide ? 300 : 0)
});
a.ev.on("rsafterslidechange", function() {
m()
})
},
_v4: function(l, a) {
settimeout(function() {
l.css(a)
}, 6)
},
_u4: function(m) {
var a = this,
b, g, f, d, h, e, n;
a._s4 = [];
m.each(function(m) {
b = l(this);
g = {};
f = {};
d = null;
var c = b.attr("data-move-offset"),
c = c ? parseint(c, 10) : a.st.block.moveoffset;
if (0 < c && ((e = b.data("move-effect")) ? (e = e.tolowercase(), "none" === e ? e = !1 : "left" !== e && "top" !== e && "bottom" !== e && "right" !== e && (e = a.st.block.moveeffect, "none" === e && (e = !1))) : e = a.st.block.moveeffect, e && "none" !== e)) {
var p;
p = "right" === e || "left" === e ? !0 : !1;
var k;
n = !1;
a._e ? (k = 0, h = a._x1) : (p ? isnan(parseint(b.css("right"), 10)) ? h = "left" : (h = "right", n = !0) : isnan(parseint(b.css("bottom"), 10)) ? h = "top" : (h = "bottom", n = !0), h = "margin-" + h, n && (c = -c), a._e ? k = parseint(b.css(h), 10) : (k = b.data("rs-start-move-prop"), void 0 === k && (k = parseint(b.css(h), 10), isnan(k) && (k = 0), b.data("rs-start-move-prop", k))));
f[h] = a._m4("top" === e || "left" === e ? k - c : k + c, p);
g[h] = a._m4(k, p)
}
c = b.attr("data-fade-effect");
if (!c) c = a.st.block.fadeeffect;
else if ("none" === c.tolowercase() || "false" === c.tolowercase()) c = !1;
c && (f.opacity = 0, g.opacity = 1);
if (c || e) d = {}, d.hasfade = boolean(c), boolean(e) && (d.moveprop = h, d.hasmove = !0), d.speed = b.data("speed"), isnan(d.speed) && (d.speed = a.st.block.speed), d.easing = b.data("easing"), d.easing || (d.easing = a.st.block.easing), d.css3easing = l.rscss3easing[d.easing], d.delay = b.data("delay"), isnan(d.delay) && (d.delay = a.st.block.delay * m);
c = {};
a._e && (c[a._g + a._u1] = "0ms");
c.moveprop = g.moveprop;
c.opacity = g.opacity;
c.display = "none";
a._r4.push({
block: b,
css: c
});
a._v4(b, f);
a._s4.push(settimeout(function(b, d, c, e) {
return function() {
b.css("display", "block");
if (c) {
var g = {};
if (a._e) {
var f = "";
c.hasmove && (f += c.moveprop);
c.hasfade && (c.hasmove && (f += ", "), f += "opacity");
g[a._g + a._t1] = f;
g[a._g + a._u1] = c.speed + "ms";
g[a._g + a._v1] = c.css3easing;
b.css(g);
settimeout(function() {
b.css(d)
}, 24)
} else settimeout(function() {
b.animate(d, c.speed, c.easing)
}, 16)
}
delete a._s4[e]
}
}(b, g, d, m), 6 >= d.delay ? 12 : d.delay))
})
}
});
l.rsmodules.animatedblocks = l.rsproto._p4
})(jquery);
// jquery.rs.auto-height v1.0.3
(function(b) {
b.extend(b.rsproto, {
_w4: function() {
var a = this;
if (a.st.autoheight) {
var b, c, e, f = !0,
d = function(d) {
e = a.slides[a.currslideid];
(b = e.holder) && (c = b.height()) && void 0 !== c && c > (a.st.minautoheight || 30) && (a._c4 = c, a._e || !d ? a._e1.css("height", c) : a._e1.stop(!0, !0).animate({
height: c
}, a.st.transitionspeed), a.ev.trigger("rsautoheightchange", c), f && (a._e && settimeout(function() {
a._e1.css(a._g + "transition", "height " + a.st.transitionspeed + "ms ease-in-out")
}, 16), f = !1))
};
a.ev.on("rsmaybesizeready.rsautoheight", function(a, b) {
e === b && d()
});
a.ev.on("rsaftercontentset.rsautoheight", function(a, b) {
e === b && d()
});
a.slider.addclass("rsautoheight");
a.ev.one("rsafterinit", function() {
settimeout(function() {
d(!1);
settimeout(function() {
a.slider.append('')
}, 16)
}, 16)
});
a.ev.on("rsbeforeanimstart", function() {
d(!0)
});
a.ev.on("rsbeforesizeset", function() {
settimeout(function() {
d(!1)
}, 16)
})
}
}
});
b.rsmodules.autoheight = b.rsproto._w4
})(jquery);
// jquery.rs.autoplay v1.0.5
(function(b) {
b.extend(b.rsproto, {
_x4: function() {
var a = this,
d;
a._y4 = {
enabled: !0,
stopataction: !0,
pauseonhover: !0,
delay: 2e3
};
!a.st.autoplay && a.st.autoplay && (a.st.autoplay = a.st.autoplay);
a.st.autoplay = b.extend({}, a._y4, a.st.autoplay);
a.st.autoplay.enabled && (a.ev.on("rsbeforeparsenode", function(a, c, f) {
c = b(c);
if (d = c.attr("data-rsdelay")) f.customdelay = parseint(d, 10)
}), a.ev.one("rsafterinit", function() {
a._z4()
}), a.ev.on("rsbeforedestroy", function() {
a.stopautoplay();
a.slider.off("mouseenter mouseleave");
b(window).off("blur" + a.ns + " focus" + a.ns)
}))
},
_z4: function() {
var a = this;
a.startautoplay();
a.ev.on("rsaftercontentset", function(b, e) {
a._l2 || a._r2 || !a._a5 || e !== a.currslide || a._b5()
});
a.ev.on("rsdragrelease", function() {
a._a5 && a._c5 && (a._c5 = !1, a._b5())
});
a.ev.on("rsafterslidechange", function() {
a._a5 && a._c5 && (a._c5 = !1, a.currslide.isloaded && a._b5())
});
a.ev.on("rsdragstart", function() {
a._a5 && (a.st.autoplay.stopataction ? a.stopautoplay() : (a._c5 = !0, a._d5()))
});
a.ev.on("rsbeforemove", function(b, e, c) {
a._a5 && (c && a.st.autoplay.stopataction ? a.stopautoplay() : (a._c5 = !0, a._d5()))
});
a._e5 = !1;
a.ev.on("rsvideostop", function() {
a._a5 && (a._e5 = !1, a._b5())
});
a.ev.on("rsvideoplay", function() {
a._a5 && (a._c5 = !1, a._d5(), a._e5 = !0)
});
b(window).on("blur" + a.ns, function() {
a._a5 && (a._c5 = !0, a._d5())
}).on("focus" + a.ns, function() {
a._a5 && a._c5 && (a._c5 = !1, a._b5())
});
a.st.autoplay.pauseonhover && (a._f5 = !1, a.slider.hover(function() {
a._a5 && (a._c5 = !1, a._d5(), a._f5 = !0)
}, function() {
a._a5 && (a._f5 = !1, a._b5())
}))
},
toggleautoplay: function() {
this._a5 ? this.stopautoplay() : this.startautoplay()
},
startautoplay: function() {
this._a5 = !0;
this.currslide.isloaded && this._b5()
},
stopautoplay: function() {
this._e5 = this._f5 = this._c5 = this._a5 = !1;
this._d5()
},
_b5: function() {
var a = this;
a._f5 || a._e5 || (a._g5 = !0, a._h5 && cleartimeout(a._h5), a._h5 = settimeout(function() {
var b;
a._z || a.st.looprewind || (b = !0, a.st.looprewind = !0);
a.next(!0);
b && (a.st.looprewind = !1)
}, a.currslide.customdelay ? a.currslide.customdelay : a.st.autoplay.delay))
},
_d5: function() {
this._f5 || this._e5 || (this._g5 = !1, this._h5 && (cleartimeout(this._h5), this._h5 = null))
}
});
b.rsmodules.autoplay = b.rsproto._x4
})(jquery);
// jquery.rs.bullets v1.0.1
(function(c) {
c.extend(c.rsproto, {
_i5: function() {
var a = this;
"bullets" === a.st.controlnavigation && (a.ev.one("rsafterpropssetup", function() {
a._j5 = !0;
a.slider.addclass("rswithbullets");
for (var b = '', e = 0; e < a.numslides; e++) b += '
';
a._k5 = b = c(b + "
");
a._l5 = b.appendto(a.slider).children();
a._k5.on("click.rs", ".rsnavitem", function(b) {
a._m5 || a.goto(c(this).index())
})
}), a.ev.on("rsonappendslide", function(b, c, d) {
d >= a.numslides ? a._k5.append('
') : a._l5.eq(d).before('
');
a._l5 = a._k5.children()
}), a.ev.on("rsonremoveslide", function(b, c) {
var d = a._l5.eq(c);
d && d.length && (d.remove(), a._l5 = a._k5.children())
}), a.ev.on("rsonupdatenav", function() {
var b = a.currslideid;
a._n5 && a._n5.removeclass("rsnavselected");
b = a._l5.eq(b);
b.addclass("rsnavselected");
a._n5 = b
}))
}
});
c.rsmodules.bullets = c.rsproto._i5
})(jquery);
// jquery.rs.deeplinking v1.0.6 + jquery hashchange plugin v1.3 copyright (c) 2010 ben alman
(function(d) {
d.extend(d.rsproto, {
_o5: function() {
var a = this,
l, g, f;
a._p5 = {
enabled: !1,
change: !1,
prefix: ""
};
a.st.deeplinking = d.extend({}, a._p5, a.st.deeplinking);
if (a.st.deeplinking.enabled) {
var k = a.st.deeplinking.change,
c = a.st.deeplinking.prefix,
e = "#" + c,
h = function() {
var b = window.location.hash;
return b && 0 < b.indexof(c) && (b = parseint(b.substring(e.length), 10), 0 <= b) ? b - 1 : -1
},
m = h(); - 1 !== m && (a.st.startslideid = m);
k && (d(window).on("hashchange" + a.ns, function(b) {
l || (b = h(), 0 > b || (b > a.numslides - 1 && (b = a.numslides - 1), a.goto(b)))
}), a.ev.on("rsbeforeanimstart", function() {
g && cleartimeout(g);
f && cleartimeout(f)
}), a.ev.on("rsafterslidechange", function() {
g && cleartimeout(g);
f && cleartimeout(f);
f = settimeout(function() {
l = !0;
window.location.replace(("" + window.location).split("#")[0] + e + (a.currslideid + 1));
g = settimeout(function() {
l = !1;
g = null
}, 60)
}, 400)
}));
a.ev.on("rsbeforedestroy", function() {
g = f = null;
k && d(window).off("hashchange" + a.ns)
})
}
}
});
d.rsmodules.deeplinking = d.rsproto._o5
})(jquery);
(function(d, a, l) {
function g(b) {
b = b || location.href;
return "#" + b.replace(/^[^#]*#?(.*)$/, "$1")
}
"$:nomunge";
var f = "hashchange",
k = document,
c, e = d.event.special,
h = k.documentmode,
m = "on" + f in a && (h === l || 7 < h);
d.fn[f] = function(b) {
return b ? this.bind(f, b) : this.trigger(f)
};
d.fn[f].delay = 50;
e[f] = d.extend(e[f], {
setup: function() {
if (m) return !1;
d(c.start)
},
teardown: function() {
if (m) return !1;
d(c.stop)
}
});
c = function() {
function b() {
var c = g(),
n = r(h);
c !== h ? (p(h = c, n), d(a).trigger(f)) : n !== h && (location.href = location.href.replace(/#.*/, "") + n);
e = settimeout(b, d.fn[f].delay)
}
var c = {},
e, h = g(),
q = function(b) {
return b
},
p = q,
r = q;
c.start = function() {
e || b()
};
c.stop = function() {
e && cleartimeout(e);
e = l
};
a.attachevent && !a.addeventlistener && !m &&
function() {
var a, e;
c.start = function() {
a || (e = (e = d.fn[f].src) && e + g(), a = d('').hide().one("load", function() {
e || p(g());
b()
}).attr("src", e || "javascript:0").insertafter("body")[0].contentwindow, k.onpropertychange = function() {
try {
"title" === event.propertyname && (a.document.title = k.title)
} catch (b) {}
})
};
c.stop = q;
r = function() {
return g(a.location.href)
};
p = function(b, e) {
var c = a.document,
g = d.fn[f].domain;
b !== e && (c.title = k.title, c.open(), g && c.write('