﻿(function (c) {
    function a(a) { c.fn.cycle.debug && e(a) } function e() { window.console && window.console.log && window.console.log("[cycle] " + Array.prototype.join.call(arguments, " ")) } function b(a, b, d) {
        function h(a, b, k) { if (!a && !0 === b) { a = c(k).data("cycle.opts"); if (!a) return e("options not found, can not resume"), !1; if (k.cycleTimeout) clearTimeout(k.cycleTimeout), k.cycleTimeout = 0; n(a.elements, a, 1, !m.rev && !m.backwards) } } if (void 0 == a.cycleStop) a.cycleStop = 0; if (void 0 === b || null === b) b = {}; if (b.constructor == String) switch (b) {
            case "destroy": case "stop": var m =
c(a).data("cycle.opts"); if (!m) return !1; a.cycleStop++; a.cycleTimeout && clearTimeout(a.cycleTimeout); a.cycleTimeout = 0; c(a).removeData("cycle.opts"); "destroy" == b && g(m); return !1; case "toggle": return a.cyclePause = 1 === a.cyclePause ? 0 : 1, h(a.cyclePause, d, a), !1; case "pause": return a.cyclePause = 1, !1; case "resume": return a.cyclePause = 0, h(!1, d, a), !1; case "prev": case "next": m = c(a).data("cycle.opts"); if (!m) return e('options not found, "prev/next" ignored'), !1; c.fn.cycle[b](m); return !1; default: b = { fx: b}
        } else if (b.constructor ==
Number) { var f = b, b = c(a).data("cycle.opts"); if (!b) return e("options not found, can not advance slide"), !1; if (0 > f || f >= b.elements.length) return e("invalid slide index: " + f), !1; b.nextSlide = f; if (a.cycleTimeout) clearTimeout(a.cycleTimeout), a.cycleTimeout = 0; if ("string" == typeof d) b.oneTimeFx = d; n(b.elements, b, 1, f >= b.currSlide); return !1 } return b
    } function d(a, b) { if (!c.support.opacity && b.cleartype && a.style.filter) try { a.style.removeAttribute("filter") } catch (d) { } } function g(a) {
        a.next && c(a.next).unbind(a.prevNextEvent);
        a.prev && c(a.prev).unbind(a.prevNextEvent); if (a.pager || a.pagerAnchorBuilder) c.each(a.pagerAnchors || [], function () { this.unbind().remove() }); a.pagerAnchors = null; a.destroy && a.destroy(a)
    } function h(a, b, h, g, m) {
        var f = c.extend({}, c.fn.cycle.defaults, g || {}, c.metadata ? a.metadata() : c.meta ? a.data() : {}); if (f.autostop) f.countdown = f.autostopCount || h.length; var j = a[0]; a.data("cycle.opts", f); f.$cont = a; f.stopCount = j.cycleStop; f.elements = h; f.before = f.before ? [f.before] : []; f.after = f.after ? [f.after] : []; f.after.unshift(function () {
            f.busy =
0
        }); !c.support.opacity && f.cleartype && f.after.push(function () { d(this, f) }); f.continuous && f.after.push(function () { n(h, f, 0, !f.rev && !f.backwards) }); i(f); !c.support.opacity && f.cleartype && !f.cleartypeNoBg && v(b); "static" == a.css("position") && a.css("position", "relative"); f.width && a.width(f.width); f.height && "auto" != f.height && a.height(f.height); if (f.startingSlide) f.startingSlide = parseInt(f.startingSlide); else if (f.backwards) f.startingSlide = h.length - 1; if (f.random) {
            f.randomMap = []; for (j = 0; j < h.length; j++) f.randomMap.push(j);
            f.randomMap.sort(function () { return Math.random() - 0.5 }); f.randomIndex = 1; f.startingSlide = f.randomMap[1]
        } else if (f.startingSlide >= h.length) f.startingSlide = 0; f.currSlide = f.startingSlide || 0; var l = f.startingSlide; b.css({ position: "absolute", top: 0, left: 0 }).hide().each(function (a) { a = f.backwards ? l ? a <= l ? h.length + (a - l) : l - a : h.length - a : l ? a >= l ? h.length - (a - l) : l - a : h.length - a; c(this).css("z-index", a) }); c(h[l]).css("opacity", 1).show(); d(h[l], f); f.fit && f.width && b.width(f.width); f.fit && f.height && "auto" != f.height && b.height(f.height);
        if (f.containerResize && !a.innerHeight()) { for (var t = j = 0, w = 0; w < h.length; w++) { var r = c(h[w]), z = r[0], A = r.outerWidth(), B = r.outerHeight(); A || (A = z.offsetWidth || z.width || r.attr("width")); B || (B = z.offsetHeight || z.height || r.attr("height")); j = A > j ? A : j; t = B > t ? B : t } 0 < j && 0 < t && a.css({ width: j + "px", height: t + "px" }) } f.pause && a.hover(function () { this.cyclePause++ }, function () { this.cyclePause-- }); if (!1 === o(f)) return !1; var D = !1; g.requeueAttempts = g.requeueAttempts || 0; b.each(function () {
            var a = c(this); this.cycleH = f.fit && f.height ?
f.height : a.height() || this.offsetHeight || this.height || a.attr("height") || 0; this.cycleW = f.fit && f.width ? f.width : a.width() || this.offsetWidth || this.width || a.attr("width") || 0; if (a.is("img")) {
                var a = c.browser.mozilla && 34 == this.cycleW && 19 == this.cycleH && !this.complete, b = c.browser.opera && (42 == this.cycleW && 19 == this.cycleH || 37 == this.cycleW && 17 == this.cycleH) && !this.complete, k = 0 == this.cycleH && 0 == this.cycleW && !this.complete; if (c.browser.msie && 28 == this.cycleW && 30 == this.cycleH && !this.complete || a || b || k) {
                    if (m.s && f.requeueOnImageNotLoaded &&
100 > ++g.requeueAttempts) return e(g.requeueAttempts, " - img slide not loaded, requeuing slideshow: ", this.src, this.cycleW, this.cycleH), setTimeout(function () { c(m.s, m.c).cycle(g) }, f.requeueTimeout), D = !0, !1; e("could not determine size of image: " + this.src, this.cycleW, this.cycleH)
                } 
            } return !0
        }); if (D) return !1; f.cssBefore = f.cssBefore || {}; f.animIn = f.animIn || {}; f.animOut = f.animOut || {}; b.not(":eq(" + l + ")").css(f.cssBefore); f.cssFirst && c(b[l]).css(f.cssFirst); if (f.timeout) {
            f.timeout = parseInt(f.timeout); if (f.speed.constructor ==
String) f.speed = c.fx.speeds[f.speed] || parseInt(f.speed); f.sync || (f.speed /= 2); for (j = "shuffle" == f.fx ? 500 : 250; f.timeout - f.speed < j; ) f.timeout += f.speed
        } if (f.easing) f.easeIn = f.easeOut = f.easing; if (!f.speedIn) f.speedIn = f.speed; if (!f.speedOut) f.speedOut = f.speed; f.slideCount = h.length; f.currSlide = f.lastSlide = l; if (f.random) { if (++f.randomIndex == h.length) f.randomIndex = 0; f.nextSlide = f.randomMap[f.randomIndex] } else f.nextSlide = f.backwards ? 0 == f.startingSlide ? h.length - 1 : f.startingSlide - 1 : f.startingSlide >= h.length - 1 ?
0 : f.startingSlide + 1; if (!f.multiFx) if (j = c.fn.cycle.transitions[f.fx], c.isFunction(j)) j(a, b, f); else if ("custom" != f.fx && !f.multiFx) return e("unknown transition: " + f.fx, "; slideshow terminating"), !1; a = b[l]; f.before.length && f.before[0].apply(a, [a, a, f, !0]); 1 < f.after.length && f.after[1].apply(a, [a, a, f, !0]); f.next && c(f.next).bind(f.prevNextEvent, function () { return x(f, f.rev ? -1 : 1) }); f.prev && c(f.prev).bind(f.prevNextEvent, function () { return x(f, f.rev ? 1 : -1) }); (f.pager || f.pagerAnchorBuilder) && y(h, f); q(f, h); return f
    }
    function i(a) { a.original = { before: [], after: [] }; a.original.cssBefore = c.extend({}, a.cssBefore); a.original.cssAfter = c.extend({}, a.cssAfter); a.original.animIn = c.extend({}, a.animIn); a.original.animOut = c.extend({}, a.animOut); c.each(a.before, function () { a.original.before.push(this) }); c.each(a.after, function () { a.original.after.push(this) }) } function o(b) {
        var d, h, g = c.fn.cycle.transitions; if (0 < b.fx.indexOf(",")) {
            b.multiFx = !0; b.fxs = b.fx.replace(/\s*/g, "").split(","); for (d = 0; d < b.fxs.length; d++) {
                var m = b.fxs[d]; h =
g[m]; if (!h || !g.hasOwnProperty(m) || !c.isFunction(h)) e("discarding unknown transition: ", m), b.fxs.splice(d, 1), d--
            } if (!b.fxs.length) return e("No valid transitions named; slideshow terminating."), !1
        } else if ("all" == b.fx) for (p in b.multiFx = !0, b.fxs = [], g) h = g[p], g.hasOwnProperty(p) && c.isFunction(h) && b.fxs.push(p); if (b.multiFx && b.randomizeEffects) { h = Math.floor(20 * Math.random()) + 30; for (d = 0; d < h; d++) g = Math.floor(Math.random() * b.fxs.length), b.fxs.push(b.fxs.splice(g, 1)[0]); a("randomized fx sequence: ", b.fxs) } return !0
    }
    function q(a, b) {
        a.addSlide = function (d, e) {
            var h = c(d), f = h[0]; a.autostopCount || a.countdown++; b[e ? "unshift" : "push"](f); if (a.els) a.els[e ? "unshift" : "push"](f); a.slideCount = b.length; h.css("position", "absolute"); h[e ? "prependTo" : "appendTo"](a.$cont); e && (a.currSlide++, a.nextSlide++); !c.support.opacity && a.cleartype && !a.cleartypeNoBg && v(h); a.fit && a.width && h.width(a.width); a.fit && a.height && "auto" != a.height && $slides.height(a.height); f.cycleH = a.fit && a.height ? a.height : h.height(); f.cycleW = a.fit && a.width ? a.width : h.width();
            h.css(a.cssBefore); (a.pager || a.pagerAnchorBuilder) && c.fn.cycle.createPagerAnchor(b.length - 1, f, c(a.pager), b, a); if (c.isFunction(a.onAddSlide)) a.onAddSlide(h); else h.hide()
        } 
    } function n(b, d, e, h) {
        if (e && d.busy && d.manualTrump) a("manualTrump in go(), stopping active transition"), c(b).stop(!0, !0), d.busy = !1; if (d.busy) a("transition active, ignoring new tx request"); else {
            var g = d.$cont[0], f = b[d.currSlide], j = b[d.nextSlide]; if (!(g.cycleStop != d.stopCount || 0 === g.cycleTimeout && !e)) if (!e && !g.cyclePause && !d.bounce &&
(d.autostop && 0 >= --d.countdown || d.nowrap && !d.random && d.nextSlide < d.currSlide)) d.end && d.end(d); else {
                var l = !1; if ((e || !g.cyclePause) && d.nextSlide != d.currSlide) {
                    var l = !0, i = d.fx; f.cycleH = f.cycleH || c(f).height(); f.cycleW = f.cycleW || c(f).width(); j.cycleH = j.cycleH || c(j).height(); j.cycleW = j.cycleW || c(j).width(); if (d.multiFx) { if (void 0 == d.lastFx || ++d.lastFx >= d.fxs.length) d.lastFx = 0; i = d.fxs[d.lastFx]; d.currFx = i } if (d.oneTimeFx) i = d.oneTimeFx, d.oneTimeFx = null; c.fn.cycle.resetState(d, i); d.before.length && c.each(d.before,
function (a, c) { g.cycleStop == d.stopCount && c.apply(j, [f, j, d, h]) }); i = function () { c.each(d.after, function (a, c) { g.cycleStop == d.stopCount && c.apply(j, [f, j, d, h]) }) }; a("tx firing; currSlide: " + d.currSlide + "; nextSlide: " + d.nextSlide); d.busy = 1; if (d.fxFn) d.fxFn(f, j, d, i, h, e && d.fastOnEvent); else if (c.isFunction(c.fn.cycle[d.fx])) c.fn.cycle[d.fx](f, j, d, i, h, e && d.fastOnEvent); else c.fn.cycle.custom(f, j, d, i, h, e && d.fastOnEvent)
                } if (l || d.nextSlide == d.currSlide) if (d.lastSlide = d.currSlide, d.random) {
                    d.currSlide = d.nextSlide;
                    if (++d.randomIndex == b.length) d.randomIndex = 0; d.nextSlide = d.randomMap[d.randomIndex]; if (d.nextSlide == d.currSlide) d.nextSlide = d.currSlide == d.slideCount - 1 ? 0 : d.currSlide + 1
                } else d.backwards ? (e = 0 > d.nextSlide - 1) && d.bounce ? (d.backwards = !d.backwards, d.nextSlide = 1, d.currSlide = 0) : (d.nextSlide = e ? b.length - 1 : d.nextSlide - 1, d.currSlide = e ? 0 : d.nextSlide + 1) : (e = d.nextSlide + 1 == b.length) && d.bounce ? (d.backwards = !d.backwards, d.nextSlide = b.length - 2, d.currSlide = b.length - 1) : (d.nextSlide = e ? 0 : d.nextSlide + 1, d.currSlide = e ? b.length -
1 : d.nextSlide - 1); l && d.pager && d.updateActivePagerLink(d.pager, d.currSlide, d.activePagerClass); l = 0; d.timeout && !d.continuous ? l = r(b[d.currSlide], b[d.nextSlide], d, h) : d.continuous && g.cyclePause && (l = 10); if (0 < l) g.cycleTimeout = setTimeout(function () { n(b, d, 0, !d.rev && !d.backwards) }, l)
            } 
        } 
    } function r(c, b, d, e) { if (d.timeoutFn) { for (c = d.timeoutFn.call(c, c, b, d, e); 250 > c - d.speed; ) c += d.speed; a("calculated timeout: " + c + "; speed: " + d.speed); if (!1 !== c) return c } return d.timeout } function x(a, b) {
        var d = a.elements, e = a.$cont[0],
h = e.cycleTimeout; if (h) clearTimeout(h), e.cycleTimeout = 0; if (a.random && 0 > b) { a.randomIndex--; if (-2 == --a.randomIndex) a.randomIndex = d.length - 2; else if (-1 == a.randomIndex) a.randomIndex = d.length - 1; a.nextSlide = a.randomMap[a.randomIndex] } else if (a.random) a.nextSlide = a.randomMap[a.randomIndex]; else if (a.nextSlide = a.currSlide + b, 0 > a.nextSlide) { if (a.nowrap) return !1; a.nextSlide = d.length - 1 } else if (a.nextSlide >= d.length) { if (a.nowrap) return !1; a.nextSlide = 0 } e = a.onPrevNextEvent || a.prevNextClick; c.isFunction(e) && e(0 < b,
a.nextSlide, d[a.nextSlide]); n(d, a, 1, 0 <= b); return !1
    } function y(a, b) { var d = c(b.pager); c.each(a, function (e, h) { c.fn.cycle.createPagerAnchor(e, h, d, a, b) }); b.updateActivePagerLink(b.pager, b.startingSlide, b.activePagerClass) } function v(b) {
        function d(a) { a = parseInt(a).toString(16); return 2 > a.length ? "0" + a : a } function e(a) { for (; a && "html" != a.nodeName.toLowerCase(); a = a.parentNode) { var b = c.css(a, "background-color"); if (0 <= b.indexOf("rgb")) return a = b.match(/\d+/g), "#" + d(a[0]) + d(a[1]) + d(a[2]); if (b && "transparent" != b) return b } return "#ffffff" }
        a("applying clearType background-color hack"); b.each(function () { c(this).css("background-color", e(this)) })
    } if (void 0 == c.support) c.support = { opacity: !c.browser.msie }; c.fn.cycle = function (d, g) {
        var s = { s: this.selector, c: this.context }; if (0 === this.length && "stop" != d) { if (!c.isReady && s.s) return e("DOM not ready, queuing slideshow"), c(function () { c(s.s, s.c).cycle(d, g) }), this; e("terminating; zero elements found by selector" + (c.isReady ? "" : " (DOM not ready)")); return this } return this.each(function () {
            var i = b(this,
d, g); if (!1 !== i) {
                i.updateActivePagerLink = i.updateActivePagerLink || c.fn.cycle.updateActivePagerLink; this.cycleTimeout && clearTimeout(this.cycleTimeout); this.cycleTimeout = this.cyclePause = 0; var m = c(this), f = i.slideExpr ? c(i.slideExpr, this) : m.children(), j = f.get(); if (2 > j.length) e("terminating; too few slides: " + j.length); else {
                    var l = h(m, f, j, i, s); if (!1 !== l && (m = l.continuous ? 10 : r(j[l.currSlide], j[l.nextSlide], l, !l.rev))) m += l.delay || 0, 10 > m && (m = 10), a("first timeout: " + m), this.cycleTimeout = setTimeout(function () {
                        n(j,
l, 0, !l.rev && !i.backwards)
                    }, m)
                } 
            } 
        })
    }; c.fn.cycle.resetState = function (a, b) { b = b || a.fx; a.before = []; a.after = []; a.cssBefore = c.extend({}, a.original.cssBefore); a.cssAfter = c.extend({}, a.original.cssAfter); a.animIn = c.extend({}, a.original.animIn); a.animOut = c.extend({}, a.original.animOut); a.fxFn = null; c.each(a.original.before, function () { a.before.push(this) }); c.each(a.original.after, function () { a.after.push(this) }); var d = c.fn.cycle.transitions[b]; c.isFunction(d) && d(a.$cont, c(a.elements), a) }; c.fn.cycle.updateActivePagerLink =
function (a, b, d) { c(a).each(function () { c(this).children().removeClass(d).eq(b).addClass(d) }) }; c.fn.cycle.next = function (a) { x(a, a.rev ? -1 : 1) }; c.fn.cycle.prev = function (a) { x(a, a.rev ? 1 : -1) }; c.fn.cycle.createPagerAnchor = function (b, d, e, h, g) {
    c.isFunction(g.pagerAnchorBuilder) ? (d = g.pagerAnchorBuilder(b, d), a("pagerAnchorBuilder(" + b + ", el) returned: " + d)) : d = '<a href="#">' + (b + 1) + "</a>"; if (d) {
        var f = c(d); if (0 === f.parents("body").length) {
            var i = []; 1 < e.length ? (e.each(function () { var a = f.clone(!0); c(this).append(a); i.push(a[0]) }),
f = c(i)) : f.appendTo(e)
        } g.pagerAnchors = g.pagerAnchors || []; g.pagerAnchors.push(f); f.bind(g.pagerEvent, function (a) { a.preventDefault(); g.nextSlide = b; var a = g.$cont[0], d = a.cycleTimeout; if (d) clearTimeout(d), a.cycleTimeout = 0; a = g.onPagerEvent || g.pagerClick; c.isFunction(a) && a(g.nextSlide, h[g.nextSlide]); n(h, g, 1, g.currSlide < b) }); !/^click/.test(g.pagerEvent) && !g.allowPagerClickBubble && f.bind("click.cycle", function () { return !1 }); g.pauseOnPagerHover && f.hover(function () { g.$cont[0].cyclePause++ }, function () { g.$cont[0].cyclePause-- })
    } 
};
    c.fn.cycle.hopsFromLast = function (a, b) { var c = a.lastSlide, d = a.currSlide; return b ? d > c ? d - c : a.slideCount - c : d < c ? c - d : c + a.slideCount - d }; c.fn.cycle.commonReset = function (a, b, d, e, h, f) { c(d.elements).not(a).hide(); d.cssBefore.opacity = 1; d.cssBefore.display = "block"; if (!1 !== e && 0 < b.cycleW) d.cssBefore.width = b.cycleW; if (!1 !== h && 0 < b.cycleH) d.cssBefore.height = b.cycleH; d.cssAfter = d.cssAfter || {}; d.cssAfter.display = "none"; c(a).css("zIndex", d.slideCount + (!0 === f ? 1 : 0)); c(b).css("zIndex", d.slideCount + (!0 === f ? 0 : 1)) }; c.fn.cycle.custom =
function (a, b, d, e, h, f) { var g = c(a), i = c(b), r = d.speedIn, a = d.speedOut, w = d.easeIn, b = d.easeOut; i.css(d.cssBefore); f && (r = "number" == typeof f ? a = f : a = 1, w = b = null); g.animate(d.animOut, a, b, function () { d.cssAfter && g.css(d.cssAfter); d.sync || i.animate(d.animIn, r, w, e) }); d.sync && i.animate(d.animIn, r, w, e) }; c.fn.cycle.transitions = { fade: function (a, b, d) {
    b.not(":eq(" + d.currSlide + ")").css("opacity", 0); d.before.push(function (a, b, d) { c.fn.cycle.commonReset(a, b, d); d.cssBefore.opacity = 0 }); d.animIn = { opacity: 1 }; d.animOut = { opacity: 0 };
    d.cssBefore = { top: 0, left: 0}
} 
}; c.fn.cycle.ver = function () { return "2.88" }; c.fn.cycle.defaults = { fx: "fade", timeout: 4E3, timeoutFn: null, continuous: 0, speed: 1E3, speedIn: null, speedOut: null, next: null, prev: null, onPrevNextEvent: null, prevNextEvent: "click.cycle", pager: null, onPagerEvent: null, pagerEvent: "click.cycle", allowPagerClickBubble: !1, pagerAnchorBuilder: null, before: null, after: null, end: null, easing: null, easeIn: null, easeOut: null, shuffle: null, animIn: null, animOut: null, cssBefore: null, cssAfter: null, fxFn: null, height: "auto",
    startingSlide: 0, sync: 1, random: 0, fit: 0, containerResize: 1, pause: 0, pauseOnPagerHover: 0, autostop: 0, autostopCount: 0, delay: 0, slideExpr: null, cleartype: !c.support.opacity, cleartypeNoBg: !1, nowrap: 0, fastOnEvent: 0, randomizeEffects: 1, rev: 0, manualTrump: !0, requeueOnImageNotLoaded: !0, requeueTimeout: 250, activePagerClass: "activeSlide", updateActivePagerLink: null, backwards: !1
}
})(jQuery);
(function (c) {
    c.fn.cycle.transitions.none = function (a, e, b) { b.fxFn = function (a, b, e, i) { c(b).show(); c(a).hide(); i() } }; c.fn.cycle.transitions.scrollUp = function (a, e, b) { a.css("overflow", "hidden"); b.before.push(c.fn.cycle.commonReset); a = a.height(); b.cssBefore = { top: a, left: 0 }; b.cssFirst = { top: 0 }; b.animIn = { top: 0 }; b.animOut = { top: -a} }; c.fn.cycle.transitions.scrollDown = function (a, e, b) {
        a.css("overflow", "hidden"); b.before.push(c.fn.cycle.commonReset); a = a.height(); b.cssFirst = { top: 0 }; b.cssBefore = { top: -a, left: 0 }; b.animIn =
{ top: 0 }; b.animOut = { top: a}
    }; c.fn.cycle.transitions.scrollLeft = function (a, e, b) { a.css("overflow", "hidden"); b.before.push(c.fn.cycle.commonReset); a = a.width(); b.cssFirst = { left: 0 }; b.cssBefore = { left: a, top: 0 }; b.animIn = { left: 0 }; b.animOut = { left: 0 - a} }; c.fn.cycle.transitions.scrollRight = function (a, e, b) { a.css("overflow", "hidden"); b.before.push(c.fn.cycle.commonReset); a = a.width(); b.cssFirst = { left: 0 }; b.cssBefore = { left: -a, top: 0 }; b.animIn = { left: 0 }; b.animOut = { left: a} }; c.fn.cycle.transitions.scrollHorz = function (a, e,
b) { a.css("overflow", "hidden").width(); b.before.push(function (a, b, e, i) { c.fn.cycle.commonReset(a, b, e); e.cssBefore.left = i ? b.cycleW - 1 : 1 - b.cycleW; e.animOut.left = i ? -a.cycleW : a.cycleW }); b.cssFirst = { left: 0 }; b.cssBefore = { top: 0 }; b.animIn = { left: 0 }; b.animOut = { top: 0} }; c.fn.cycle.transitions.scrollVert = function (a, e, b) {
    a.css("overflow", "hidden"); b.before.push(function (a, b, e, i) { c.fn.cycle.commonReset(a, b, e); e.cssBefore.top = i ? 1 - b.cycleH : b.cycleH - 1; e.animOut.top = i ? a.cycleH : -a.cycleH }); b.cssFirst = { top: 0 }; b.cssBefore =
{ left: 0 }; b.animIn = { top: 0 }; b.animOut = { left: 0}
}; c.fn.cycle.transitions.slideX = function (a, e, b) { b.before.push(function (a, b, e) { c(e.elements).not(a).hide(); c.fn.cycle.commonReset(a, b, e, !1, !0); e.animIn.width = b.cycleW }); b.cssBefore = { left: 0, top: 0, width: 0 }; b.animIn = { width: "show" }; b.animOut = { width: 0} }; c.fn.cycle.transitions.slideY = function (a, e, b) {
    b.before.push(function (a, b, e) { c(e.elements).not(a).hide(); c.fn.cycle.commonReset(a, b, e, !0, !1); e.animIn.height = b.cycleH }); b.cssBefore = { left: 0, top: 0, height: 0 }; b.animIn =
{ height: "show" }; b.animOut = { height: 0}
}; c.fn.cycle.transitions.shuffle = function (a, e, b) {
    a = a.css("overflow", "visible").width(); e.css({ left: 0, top: 0 }); b.before.push(function (a, b, e) { c.fn.cycle.commonReset(a, b, e, !0, !0, !0) }); if (!b.speedAdjusted) b.speed /= 2, b.speedAdjusted = !0; b.random = 0; b.shuffle = b.shuffle || { left: -a, top: 15 }; b.els = []; for (a = 0; a < e.length; a++) b.els.push(e[a]); for (a = 0; a < b.currSlide; a++) b.els.push(b.els.shift()); b.fxFn = function (a, b, e, i, o) {
        var q = o ? c(a) : c(b); c(b).css(e.cssBefore); var n = e.slideCount;
        q.animate(e.shuffle, e.speedIn, e.easeIn, function () { for (var b = c.fn.cycle.hopsFromLast(e, o), g = 0; g < b; g++) o ? e.els.push(e.els.shift()) : e.els.unshift(e.els.pop()); if (o) { b = 0; for (g = e.els.length; b < g; b++) c(e.els[b]).css("z-index", g - b + n) } else b = c(a).css("z-index"), q.css("z-index", parseInt(b) + 1 + n); q.animate({ left: 0, top: 0 }, e.speedOut, e.easeOut, function () { c(o ? this : a).hide(); i && i() }) })
    }; b.cssBefore = { display: "block", opacity: 1, top: 0, left: 0}
}; c.fn.cycle.transitions.turnUp = function (a, e, b) {
    b.before.push(function (a, b,
e) { c.fn.cycle.commonReset(a, b, e, !0, !1); e.cssBefore.top = b.cycleH; e.animIn.height = b.cycleH }); b.cssFirst = { top: 0 }; b.cssBefore = { left: 0, height: 0 }; b.animIn = { top: 0 }; b.animOut = { height: 0}
}; c.fn.cycle.transitions.turnDown = function (a, e, b) { b.before.push(function (a, b, e) { c.fn.cycle.commonReset(a, b, e, !0, !1); e.animIn.height = b.cycleH; e.animOut.top = a.cycleH }); b.cssFirst = { top: 0 }; b.cssBefore = { left: 0, top: 0, height: 0 }; b.animOut = { height: 0} }; c.fn.cycle.transitions.turnLeft = function (a, e, b) {
    b.before.push(function (a, b, e) {
        c.fn.cycle.commonReset(a,
b, e, !1, !0); e.cssBefore.left = b.cycleW; e.animIn.width = b.cycleW
    }); b.cssBefore = { top: 0, width: 0 }; b.animIn = { left: 0 }; b.animOut = { width: 0}
}; c.fn.cycle.transitions.turnRight = function (a, e, b) { b.before.push(function (a, b, e) { c.fn.cycle.commonReset(a, b, e, !1, !0); e.animIn.width = b.cycleW; e.animOut.left = a.cycleW }); b.cssBefore = { top: 0, left: 0, width: 0 }; b.animIn = { left: 0 }; b.animOut = { width: 0} }; c.fn.cycle.transitions.zoom = function (a, e, b) {
    b.before.push(function (a, b, e) {
        c.fn.cycle.commonReset(a, b, e, !1, !1, !0); e.cssBefore.top = b.cycleH /
2; e.cssBefore.left = b.cycleW / 2; e.animIn = { top: 0, left: 0, width: b.cycleW, height: b.cycleH }; e.animOut = { width: 0, height: 0, top: a.cycleH / 2, left: a.cycleW / 2}
    }); b.cssFirst = { top: 0, left: 0 }; b.cssBefore = { width: 0, height: 0}
}; c.fn.cycle.transitions.fadeZoom = function (a, e, b) { b.before.push(function (a, b, e) { c.fn.cycle.commonReset(a, b, e, !1, !1); e.cssBefore.left = b.cycleW / 2; e.cssBefore.top = b.cycleH / 2; e.animIn = { top: 0, left: 0, width: b.cycleW, height: b.cycleH} }); b.cssBefore = { width: 0, height: 0 }; b.animOut = { opacity: 0} }; c.fn.cycle.transitions.blindX =
function (a, e, b) { a = a.css("overflow", "hidden").width(); b.before.push(function (a, b, e) { c.fn.cycle.commonReset(a, b, e); e.animIn.width = b.cycleW; e.animOut.left = a.cycleW }); b.cssBefore = { left: a, top: 0 }; b.animIn = { left: 0 }; b.animOut = { left: a} }; c.fn.cycle.transitions.blindY = function (a, e, b) { a = a.css("overflow", "hidden").height(); b.before.push(function (a, b, e) { c.fn.cycle.commonReset(a, b, e); e.animIn.height = b.cycleH; e.animOut.top = a.cycleH }); b.cssBefore = { top: a, left: 0 }; b.animIn = { top: 0 }; b.animOut = { top: a} }; c.fn.cycle.transitions.blindZ =
function (a, e, b) { e = a.css("overflow", "hidden").height(); a = a.width(); b.before.push(function (a, b, e) { c.fn.cycle.commonReset(a, b, e); e.animIn.height = b.cycleH; e.animOut.top = a.cycleH }); b.cssBefore = { top: e, left: a }; b.animIn = { top: 0, left: 0 }; b.animOut = { top: e, left: a} }; c.fn.cycle.transitions.growX = function (a, e, b) { b.before.push(function (a, b, e) { c.fn.cycle.commonReset(a, b, e, !1, !0); e.cssBefore.left = this.cycleW / 2; e.animIn = { left: 0, width: this.cycleW }; e.animOut = { left: 0} }); b.cssBefore = { width: 0, top: 0} }; c.fn.cycle.transitions.growY =
function (a, e, b) { b.before.push(function (a, b, e) { c.fn.cycle.commonReset(a, b, e, !0, !1); e.cssBefore.top = this.cycleH / 2; e.animIn = { top: 0, height: this.cycleH }; e.animOut = { top: 0} }); b.cssBefore = { height: 0, left: 0} }; c.fn.cycle.transitions.curtainX = function (a, e, b) { b.before.push(function (a, b, e) { c.fn.cycle.commonReset(a, b, e, !1, !0, !0); e.cssBefore.left = b.cycleW / 2; e.animIn = { left: 0, width: this.cycleW }; e.animOut = { left: a.cycleW / 2, width: 0} }); b.cssBefore = { top: 0, width: 0} }; c.fn.cycle.transitions.curtainY = function (a, e, b) {
    b.before.push(function (a,
b, e) { c.fn.cycle.commonReset(a, b, e, !0, !1, !0); e.cssBefore.top = b.cycleH / 2; e.animIn = { top: 0, height: b.cycleH }; e.animOut = { top: a.cycleH / 2, height: 0} }); b.cssBefore = { left: 0, height: 0}
}; c.fn.cycle.transitions.cover = function (a, e, b) {
    var d = b.direction || "left", g = a.css("overflow", "hidden").width(), h = a.height(); b.before.push(function (a, b, e) { c.fn.cycle.commonReset(a, b, e); "right" == d ? e.cssBefore.left = -g : "up" == d ? e.cssBefore.top = h : "down" == d ? e.cssBefore.top = -h : e.cssBefore.left = g }); b.animIn = { left: 0, top: 0 }; b.animOut = { opacity: 1 };
    b.cssBefore = { top: 0, left: 0}
}; c.fn.cycle.transitions.uncover = function (a, e, b) { var d = b.direction || "left", g = a.css("overflow", "hidden").width(), h = a.height(); b.before.push(function (a, b, e) { c.fn.cycle.commonReset(a, b, e, !0, !0, !0); "right" == d ? e.animOut.left = g : "up" == d ? e.animOut.top = -h : "down" == d ? e.animOut.top = h : e.animOut.left = -g }); b.animIn = { left: 0, top: 0 }; b.animOut = { opacity: 1 }; b.cssBefore = { top: 0, left: 0} }; c.fn.cycle.transitions.toss = function (a, e, b) {
    var d = a.css("overflow", "visible").width(), g = a.height(); b.before.push(function (a,
b, e) { c.fn.cycle.commonReset(a, b, e, !0, !0, !0); !e.animOut.left && !e.animOut.top ? e.animOut = { left: 2 * d, top: -g / 2, opacity: 0} : e.animOut.opacity = 0 }); b.cssBefore = { left: 0, top: 0 }; b.animIn = { left: 0}
}; c.fn.cycle.transitions.wipe = function (a, e, b) {
    var d = a.css("overflow", "hidden").width(), g = a.height(); b.cssBefore = b.cssBefore || {}; var h; b.clip && (/l2r/.test(b.clip) ? h = "rect(0px 0px " + g + "px 0px)" : /r2l/.test(b.clip) ? h = "rect(0px " + d + "px " + g + "px " + d + "px)" : /t2b/.test(b.clip) ? h = "rect(0px " + d + "px 0px 0px)" : /b2t/.test(b.clip) ? h =
"rect(" + g + "px " + d + "px " + g + "px 0px)" : /zoom/.test(b.clip) && (a = parseInt(g / 2), e = parseInt(d / 2), h = "rect(" + a + "px " + e + "px " + a + "px " + e + "px)")); b.cssBefore.clip = b.cssBefore.clip || h || "rect(0px 0px 0px 0px)"; var a = b.cssBefore.clip.match(/(\d+)/g), i = parseInt(a[0]), o = parseInt(a[1]), q = parseInt(a[2]), n = parseInt(a[3]); b.before.push(function (a, b, e) {
    if (a != b) {
        var h = c(a), k = c(b); c.fn.cycle.commonReset(a, b, e, !0, !0, !1); e.cssAfter.display = "block"; var u = 1, s = parseInt(e.speedIn / 13) - 1; (function m() {
            var a = i ? i - parseInt(u * (i / s)) :
0, b = n ? n - parseInt(u * (n / s)) : 0, c = q < g ? q + parseInt(u * ((g - q) / s || 1)) : g, e = o < d ? o + parseInt(u * ((d - o) / s || 1)) : d; k.css({ clip: "rect(" + a + "px " + e + "px " + c + "px " + b + "px)" }); u++ <= s ? setTimeout(m, 13) : h.css("display", "none")
        })()
    } 
}); b.cssBefore = { display: "block", opacity: 1, top: 0, left: 0 }; b.animIn = { left: 0 }; b.animOut = { left: 0}
} 
})(jQuery); jQuery.easing.jswing = jQuery.easing.swing;
jQuery.extend(jQuery.easing, { def: "easeOutQuad", swing: function (c, a, e, b, d) { return jQuery.easing[jQuery.easing.def](c, a, e, b, d) }, easeInQuad: function (c, a, e, b, d) { return b * (a /= d) * a + e }, easeOutQuad: function (c, a, e, b, d) { return -b * (a /= d) * (a - 2) + e }, easeInOutQuad: function (c, a, e, b, d) { return 1 > (a /= d / 2) ? b / 2 * a * a + e : -b / 2 * (--a * (a - 2) - 1) + e }, easeInCubic: function (c, a, e, b, d) { return b * (a /= d) * a * a + e }, easeOutCubic: function (c, a, e, b, d) { return b * ((a = a / d - 1) * a * a + 1) + e }, easeInOutCubic: function (c, a, e, b, d) {
    return 1 > (a /= d / 2) ? b / 2 * a * a * a + e :
b / 2 * ((a -= 2) * a * a + 2) + e
}, easeInQuart: function (c, a, e, b, d) { return b * (a /= d) * a * a * a + e }, easeOutQuart: function (c, a, e, b, d) { return -b * ((a = a / d - 1) * a * a * a - 1) + e }, easeInOutQuart: function (c, a, e, b, d) { return 1 > (a /= d / 2) ? b / 2 * a * a * a * a + e : -b / 2 * ((a -= 2) * a * a * a - 2) + e }, easeInQuint: function (c, a, e, b, d) { return b * (a /= d) * a * a * a * a + e }, easeOutQuint: function (c, a, e, b, d) { return b * ((a = a / d - 1) * a * a * a * a + 1) + e }, easeInOutQuint: function (c, a, e, b, d) { return 1 > (a /= d / 2) ? b / 2 * a * a * a * a * a + e : b / 2 * ((a -= 2) * a * a * a * a + 2) + e }, easeInSine: function (c, a, e, b, d) {
    return -b * Math.cos(a /
d * (Math.PI / 2)) + b + e
}, easeOutSine: function (c, a, e, b, d) { return b * Math.sin(a / d * (Math.PI / 2)) + e }, easeInOutSine: function (c, a, e, b, d) { return -b / 2 * (Math.cos(Math.PI * a / d) - 1) + e }, easeInExpo: function (c, a, e, b, d) { return 0 == a ? e : b * Math.pow(2, 10 * (a / d - 1)) + e }, easeOutExpo: function (c, a, e, b, d) { return a == d ? e + b : b * (-Math.pow(2, -10 * a / d) + 1) + e }, easeInOutExpo: function (c, a, e, b, d) { return 0 == a ? e : a == d ? e + b : 1 > (a /= d / 2) ? b / 2 * Math.pow(2, 10 * (a - 1)) + e : b / 2 * (-Math.pow(2, -10 * --a) + 2) + e }, easeInCirc: function (c, a, e, b, d) {
    return -b * (Math.sqrt(1 - (a /= d) *
a) - 1) + e
}, easeOutCirc: function (c, a, e, b, d) { return b * Math.sqrt(1 - (a = a / d - 1) * a) + e }, easeInOutCirc: function (c, a, e, b, d) { return 1 > (a /= d / 2) ? -b / 2 * (Math.sqrt(1 - a * a) - 1) + e : b / 2 * (Math.sqrt(1 - (a -= 2) * a) + 1) + e }, easeInElastic: function (c, a, e, b, d) { var c = 1.70158, g = 0, h = b; if (0 == a) return e; if (1 == (a /= d)) return e + b; g || (g = 0.3 * d); h < Math.abs(b) ? (h = b, c = g / 4) : c = g / (2 * Math.PI) * Math.asin(b / h); return -(h * Math.pow(2, 10 * (a -= 1)) * Math.sin((a * d - c) * 2 * Math.PI / g)) + e }, easeOutElastic: function (c, a, e, b, d) {
    var c = 1.70158, g = 0, h = b; if (0 == a) return e; if (1 ==
(a /= d)) return e + b; g || (g = 0.3 * d); h < Math.abs(b) ? (h = b, c = g / 4) : c = g / (2 * Math.PI) * Math.asin(b / h); return h * Math.pow(2, -10 * a) * Math.sin((a * d - c) * 2 * Math.PI / g) + b + e
}, easeInOutElastic: function (c, a, e, b, d) { var c = 1.70158, g = 0, h = b; if (0 == a) return e; if (2 == (a /= d / 2)) return e + b; g || (g = d * 0.3 * 1.5); h < Math.abs(b) ? (h = b, c = g / 4) : c = g / (2 * Math.PI) * Math.asin(b / h); return 1 > a ? -0.5 * h * Math.pow(2, 10 * (a -= 1)) * Math.sin((a * d - c) * 2 * Math.PI / g) + e : 0.5 * h * Math.pow(2, -10 * (a -= 1)) * Math.sin((a * d - c) * 2 * Math.PI / g) + b + e }, easeInBack: function (c, a, e, b, d, g) {
    void 0 ==
g && (g = 1.70158); return b * (a /= d) * a * ((g + 1) * a - g) + e
}, easeOutBack: function (c, a, e, b, d, g) { void 0 == g && (g = 1.70158); return b * ((a = a / d - 1) * a * ((g + 1) * a + g) + 1) + e }, easeInOutBack: function (c, a, e, b, d, g) { void 0 == g && (g = 1.70158); return 1 > (a /= d / 2) ? b / 2 * a * a * (((g *= 1.525) + 1) * a - g) + e : b / 2 * ((a -= 2) * a * (((g *= 1.525) + 1) * a + g) + 2) + e }, easeInBounce: function (c, a, e, b, d) { return b - jQuery.easing.easeOutBounce(c, d - a, 0, b, d) + e }, easeOutBounce: function (c, a, e, b, d) {
    return (a /= d) < 1 / 2.75 ? b * 7.5625 * a * a + e : a < 2 / 2.75 ? b * (7.5625 * (a -= 1.5 / 2.75) * a + 0.75) + e : a < 2.5 / 2.75 ?
b * (7.5625 * (a -= 2.25 / 2.75) * a + 0.9375) + e : b * (7.5625 * (a -= 2.625 / 2.75) * a + 0.984375) + e
}, easeInOutBounce: function (c, a, e, b, d) { return a < d / 2 ? 0.5 * jQuery.easing.easeInBounce(c, 2 * a, 0, b, d) + e : 0.5 * jQuery.easing.easeOutBounce(c, 2 * a - d, 0, b, d) + 0.5 * b + e } 
});
jQuery.extend(jQuery.easing, { easeIn: function (c, a, e, b, d) { return jQuery.easing.easeInQuad(c, a, e, b, d) }, easeOut: function (c, a, e, b, d) { return jQuery.easing.easeOutQuad(c, a, e, b, d) }, easeInOut: function (c, a, e, b, d) { return jQuery.easing.easeInOutQuad(c, a, e, b, d) }, expoin: function (c, a, e, b, d) { return jQuery.easing.easeInExpo(c, a, e, b, d) }, expoout: function (c, a, e, b, d) { return jQuery.easing.easeOutExpo(c, a, e, b, d) }, expoinout: function (c, a, e, b, d) { return jQuery.easing.easeInOutExpo(c, a, e, b, d) }, bouncein: function (c, a, e, b, d) {
    return jQuery.easing.easeInBounce(c,
a, e, b, d)
}, bounceout: function (c, a, e, b, d) { return jQuery.easing.easeOutBounce(c, a, e, b, d) }, bounceinout: function (c, a, e, b, d) { return jQuery.easing.easeInOutBounce(c, a, e, b, d) }, elasin: function (c, a, e, b, d) { return jQuery.easing.easeInElastic(c, a, e, b, d) }, elasout: function (c, a, e, b, d) { return jQuery.easing.easeOutElastic(c, a, e, b, d) }, elasinout: function (c, a, e, b, d) { return jQuery.easing.easeInOutElastic(c, a, e, b, d) }, backin: function (c, a, e, b, d) { return jQuery.easing.easeInBack(c, a, e, b, d) }, backout: function (c, a, e, b, d) {
    return jQuery.easing.easeOutBack(c,
a, e, b, d)
}, backinout: function (c, a, e, b, d) { return jQuery.easing.easeInOutBack(c, a, e, b, d) } 
});
(function (c) {
    function a() { url = location.href; return hashtag = -1 != url.indexOf("#!") ? decodeURI(url.substring(url.indexOf("#!") + 2, url.length)) : !1 } function e(a, c) { var a = a.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"), e = RegExp("[\\?&]" + a + "=([^&#]*)").exec(c); return null == e ? "" : e[1] } c.prettyPhoto = { version: "3.1.3" }; c.fn.prettyPhoto = function (b) {
        function d() {
            c(".pp_loaderIcon").hide(); projectedTop = scroll_pos.scrollTop + (j / 2 - k.containerHeight / 2); 0 > projectedTop && (projectedTop = 0); $ppt.fadeTo(settings.animation_speed,
1); $pp_pic_holder.find(".pp_content").animate({ height: k.contentHeight, width: k.contentWidth }, settings.animation_speed); $pp_pic_holder.animate({ top: projectedTop, left: l / 2 - k.containerWidth / 2, width: k.containerWidth }, settings.animation_speed, function () {
    $pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(k.height).width(k.width); $pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed); isSet && "image" == q(pp_images[set_position]) ? $pp_pic_holder.find(".pp_hoverContainer").show() : $pp_pic_holder.find(".pp_hoverContainer").hide();
    k.resized ? c("a.pp_expand,a.pp_contract").show() : c("a.pp_expand").hide(); settings.autoplay_slideshow && !t && !u && c.prettyPhoto.startSlideshow(); settings.changepicturecallback(); u = !0
}); isSet && settings.overlay_gallery && "image" == q(pp_images[set_position]) && settings.ie6_fallback && !(c.browser.msie && 6 == parseInt(c.browser.version)) ? (itemWidth = 57, navWidth = "facebook" == settings.theme || "pp_default" == settings.theme ? 50 : 30, itemsPerPage = Math.floor((k.containerWidth - 100 - navWidth) / itemWidth), itemsPerPage = itemsPerPage <
pp_images.length ? itemsPerPage : pp_images.length, totalPage = Math.ceil(pp_images.length / itemsPerPage) - 1, 0 == totalPage ? (navWidth = 0, $pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").hide()) : $pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").show(), galleryWidth = itemsPerPage * itemWidth, fullGalleryWidth = pp_images.length * itemWidth, $pp_gallery.css("margin-left", -(galleryWidth / 2 + navWidth / 2)).find("div:first").width(galleryWidth + 5).find("ul").width(fullGalleryWidth).find("li.selected").removeClass("selected"),
goToPage = Math.floor(set_position / itemsPerPage) < totalPage ? Math.floor(set_position / itemsPerPage) : totalPage, c.prettyPhoto.changeGalleryPage(goToPage), $pp_gallery_li.filter(":eq(" + set_position + ")").addClass("selected")) : $pp_pic_holder.find(".pp_content").unbind("mouseenter mouseleave")
        } function g(a) { $pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility", "hidden"); $pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed, function () { c(".pp_loaderIcon").show(); a() }) } function h(a) {
            1 <
a ? c(".pp_nav").show() : c(".pp_nav").hide()
        } function i(a, b) {
            resized = !1; o(a, b); imageWidth = a; imageHeight = b; if ((f > l || m > j) && doresize && settings.allow_resize && !v) { for (resized = !0, fitting = !1; !fitting; ) f > l ? (imageWidth = l - 200, imageHeight = b / a * imageWidth) : m > j ? (imageHeight = j - 200, imageWidth = a / b * imageHeight) : fitting = !0, m = imageHeight, f = imageWidth; o(imageWidth, imageHeight); (f > l || m > j) && i(f, m) } return { width: Math.floor(imageWidth), height: Math.floor(imageHeight), containerHeight: Math.floor(m), containerWidth: Math.floor(f) +
2 * settings.horizontal_padding, contentHeight: Math.floor(s), contentWidth: Math.floor(C), resized: resized
            }
        } function o(a, b) {
            a = parseFloat(a); b = parseFloat(b); $pp_details = $pp_pic_holder.find(".pp_details"); $pp_details.width(a); detailsHeight = parseFloat($pp_details.css("marginTop")) + parseFloat($pp_details.css("marginBottom")); $pp_details = $pp_details.clone().addClass(settings.theme).width(a).appendTo(c("body")).css({ position: "absolute", top: -1E4 }); detailsHeight += $pp_details.height(); detailsHeight = 34 >= detailsHeight ?
36 : detailsHeight; c.browser.msie && 7 == c.browser.version && (detailsHeight += 8); $pp_details.remove(); $pp_title = $pp_pic_holder.find(".ppt"); $pp_title.width(a); titleHeight = parseFloat($pp_title.css("marginTop")) + parseFloat($pp_title.css("marginBottom")); $pp_title = $pp_title.clone().appendTo(c("body")).css({ position: "absolute", top: -1E4 }); titleHeight += $pp_title.height(); $pp_title.remove(); s = b + detailsHeight; C = a; m = s + titleHeight + $pp_pic_holder.find(".pp_top").height() + $pp_pic_holder.find(".pp_bottom").height();
            f = a
        } function q(a) { return a.match(/youtube\.com\/watch/i) || a.match(/youtu\.be/i) ? "youtube" : a.match(/vimeo\.com/i) ? "vimeo" : a.match(/\b.mov\b/i) ? "quicktime" : a.match(/\b.swf\b/i) ? "flash" : a.match(/\biframe=true\b/i) ? "iframe" : a.match(/\bajax=true\b/i) ? "ajax" : a.match(/\bcustom=true\b/i) ? "custom" : "#" == a.substr(0, 1) ? "inline" : "image" } function n() {
            doresize && "undefined" != typeof $pp_pic_holder && (scroll_pos = r(), contentHeight = $pp_pic_holder.height(), contentwidth = $pp_pic_holder.width(), projectedTop = j / 2 + scroll_pos.scrollTop -
contentHeight / 2, 0 > projectedTop && (projectedTop = 0), contentHeight > j || $pp_pic_holder.css({ top: projectedTop, left: l / 2 + scroll_pos.scrollLeft - contentwidth / 2 }))
        } function r() { if (self.pageYOffset) return { scrollTop: self.pageYOffset, scrollLeft: self.pageXOffset }; if (document.documentElement && document.documentElement.scrollTop) return { scrollTop: document.documentElement.scrollTop, scrollLeft: document.documentElement.scrollLeft }; if (document.body) return { scrollTop: document.body.scrollTop, scrollLeft: document.body.scrollLeft} }
        function x() {
            settings.social_tools && (facebook_like_link = settings.social_tools.replace("{location_href}", encodeURIComponent(location.href))); settings.markup = settings.markup.replace("{pp_social}", settings.social_tools ? facebook_like_link : ""); c("body").append(settings.markup); $pp_pic_holder = c(".pp_pic_holder"); $ppt = c(".ppt"); $pp_overlay = c("div.pp_overlay"); if (isSet && settings.overlay_gallery) {
                currentGalleryPage = 0; toInject = ""; for (var a = 0; a < pp_images.length; a++) pp_images[a].match(/\b(jpg|jpeg|png|gif)\b/gi) ?
(classname = "", img_src = pp_images[a]) : (classname = "default", img_src = ""), toInject += "<li class='" + classname + "'><a href='#'><img src='" + img_src + "' width='50' alt='' /></a></li>"; toInject = settings.gallery_markup.replace(/{gallery}/g, toInject); $pp_pic_holder.find("#pp_full_res").after(toInject); $pp_gallery = c(".pp_pic_holder .pp_gallery"); $pp_gallery_li = $pp_gallery.find("li"); $pp_gallery.find(".pp_arrow_next").click(function () { c.prettyPhoto.changeGalleryPage("next"); c.prettyPhoto.stopSlideshow(); return !1 });
                $pp_gallery.find(".pp_arrow_previous").click(function () { c.prettyPhoto.changeGalleryPage("previous"); c.prettyPhoto.stopSlideshow(); return !1 }); $pp_pic_holder.find(".pp_content").hover(function () { $pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn() }, function () { $pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut() }); itemWidth = 57; $pp_gallery_li.each(function (a) { c(this).find("a").click(function () { c.prettyPhoto.changePage(a); c.prettyPhoto.stopSlideshow(); return !1 }) })
            } settings.slideshow && ($pp_pic_holder.find(".pp_nav").prepend('<a href="#" class="pp_play">Play</a>'),
$pp_pic_holder.find(".pp_nav .pp_play").click(function () { c.prettyPhoto.startSlideshow(); return !1 })); $pp_pic_holder.attr("class", "pp_pic_holder " + settings.theme); $pp_overlay.css({ opacity: 0, height: c(document).height(), width: c(window).width() }).bind("click", function () { settings.modal || c.prettyPhoto.close() }); c("a.pp_close").bind("click", function () { c.prettyPhoto.close(); return !1 }); c("a.pp_expand").bind("click", function () {
    c(this).hasClass("pp_expand") ? (c(this).removeClass("pp_expand").addClass("pp_contract"),
doresize = !1) : (c(this).removeClass("pp_contract").addClass("pp_expand"), doresize = !0); g(function () { c.prettyPhoto.open() }); return !1
}); $pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click", function () { c.prettyPhoto.changePage("previous"); c.prettyPhoto.stopSlideshow(); return !1 }); $pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click", function () { c.prettyPhoto.changePage("next"); c.prettyPhoto.stopSlideshow(); return !1 }); n()
        } var b = jQuery.extend({ animation_speed: "fast", slideshow: 5E3,
            autoplay_slideshow: !1, opacity: 0.8, show_title: !0, allow_resize: !0, default_width: 500, default_height: 344, counter_separator_label: "/", theme: "pp_default", horizontal_padding: 20, hideflash: !1, wmode: "opaque", autoplay: !0, modal: !1, deeplinking: !0, overlay_gallery: !0, keyboard_shortcuts: !0, changepicturecallback: function () { }, callback: function () { }, ie6_fallback: !0, markup: '<div class="pp_pic_holder"> <div class="ppt">&nbsp;</div> <div class="pp_top"> <div class="pp_left"></div> <div class="pp_middle"></div> <div class="pp_right"></div> </div> <div class="pp_content_container"> <div class="pp_left"> <div class="pp_right"> <div class="pp_content"> <div class="pp_loaderIcon"></div> <div class="pp_fade"> <a href="#" class="pp_expand" title="Expand the image">Expand</a> <div class="pp_hoverContainer"> <a class="pp_next" href="#">next</a> <a class="pp_previous" href="#">previous</a> </div> <div id="pp_full_res"></div> <div class="pp_details"> <div class="pp_nav"> <a href="#" class="pp_arrow_previous">Previous</a> <p class="currentTextHolder">0/0</p> <a href="#" class="pp_arrow_next">Next</a> </div> <p class="pp_description"></p> <div class="pp_social">{pp_social}</div> <a class="pp_close" href="#">Close</a> </div> </div> </div> </div> </div> </div> <div class="pp_bottom"> <div class="pp_left"></div> <div class="pp_middle"></div> <div class="pp_right"></div> </div> </div> <div class="pp_overlay"></div>',
            gallery_markup: '<div class="pp_gallery"> <a href="#" class="pp_arrow_previous">Previous</a> <div> <ul> {gallery} </ul> </div> <a href="#" class="pp_arrow_next">Next</a> </div>', image_markup: '<img id="fullResImage" src="{path}" />', flash_markup: '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',
            quicktime_markup: '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>', iframe_markup: '<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',
            inline_markup: '<div class="pp_inline">{content}</div>', custom_markup: "", social_tools: '<div class="twitter"><a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"><\/script></div><div class="facebook"><iframe src="http://www.facebook.com/plugins/like.php?locale=en_US&href={location_href}&amp;layout=button_count&amp;show_faces=true&amp;width=500&amp;action=like&amp;font&amp;colorscheme=light&amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div>'
        },
b), y = this, v = !1, k, u, s, C, m, f, j = c(window).height(), l = c(window).width(), t; doresize = !0; scroll_pos = r(); c(window).unbind("resize.prettyphoto").bind("resize.prettyphoto", function () { n(); j = c(window).height(); l = c(window).width(); "undefined" != typeof $pp_overlay && $pp_overlay.height(c(document).height()).width(l) }); b.keyboard_shortcuts && c(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto", function (a) {
    if ("undefined" != typeof $pp_pic_holder && $pp_pic_holder.is(":visible")) switch (a.keyCode) {
        case 37: c.prettyPhoto.changePage("previous");
            a.preventDefault(); break; case 39: c.prettyPhoto.changePage("next"); a.preventDefault(); break; case 27: settings.modal || c.prettyPhoto.close(), a.preventDefault()
    } 
}); c.prettyPhoto.initialize = function () {
    settings = b; if ("pp_default" == settings.theme) settings.horizontal_padding = 16; if (settings.ie6_fallback && c.browser.msie && 6 == parseInt(c.browser.version)) settings.theme = "light_square"; theRel = c(this).attr("rel"); galleryRegExp = /\[(?:.*)\]/; pp_images = (isSet = galleryRegExp.exec(theRel) ? !0 : !1) ? jQuery.map(y, function (a) {
        if (-1 !=
c(a).attr("rel").indexOf(theRel)) return c(a).attr("href")
    }) : c.makeArray(c(this).attr("href")); pp_titles = isSet ? jQuery.map(y, function (a) { if (-1 != c(a).attr("rel").indexOf(theRel)) return c(a).find("img").attr("alt") ? c(a).find("img").attr("alt") : "" }) : c.makeArray(c(this).find("img").attr("alt")); pp_descriptions = isSet ? jQuery.map(y, function (a) { if (-1 != c(a).attr("rel").indexOf(theRel)) return c(a).attr("title") ? c(a).attr("title") : "" }) : c.makeArray(c(this).attr("title")); if (30 < pp_images.length) settings.overlay_gallery =
!1; set_position = jQuery.inArray(c(this).attr("href"), pp_images); rel_index = isSet ? set_position : c("a[rel^='" + theRel + "']").index(c(this)); x(this); settings.allow_resize && c(window).bind("scroll.prettyphoto", function () { n() }); c.prettyPhoto.open(); return !1
}; c.prettyPhoto.open = function (a, f, g) {
    if ("undefined" == typeof settings) {
        settings = b; if (c.browser.msie && 6 == c.browser.version) settings.theme = "light_square"; pp_images = c.makeArray(a); pp_titles = f ? c.makeArray(f) : c.makeArray(""); pp_descriptions = g ? c.makeArray(g) : c.makeArray("");
        isSet = 1 < pp_images.length ? !0 : !1; set_position = 0; x(a.target)
    } c.browser.msie && 6 == c.browser.version && c("select").css("visibility", "hidden"); settings.hideflash && c("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility", "hidden"); h(c(pp_images).size()); c(".pp_loaderIcon").show(); if (settings.deeplinking && "undefined" != typeof theRel) location.hash = "!" + theRel + "/" + rel_index + "/"; settings.social_tools && (facebook_like_link = settings.social_tools.replace("{location_href}", encodeURIComponent(location.href)),
$pp_pic_holder.find(".pp_social").html(facebook_like_link)); $ppt.is(":hidden") && $ppt.css("opacity", 0).show(); $pp_overlay.show().fadeTo(settings.animation_speed, settings.opacity); $pp_pic_holder.find(".currentTextHolder").text(set_position + 1 + settings.counter_separator_label + c(pp_images).size()); "" != pp_descriptions[set_position] ? $pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position])) : $pp_pic_holder.find(".pp_description").hide(); movie_width = parseFloat(e("width", pp_images[set_position])) ?
e("width", pp_images[set_position]) : settings.default_width.toString(); movie_height = parseFloat(e("height", pp_images[set_position])) ? e("height", pp_images[set_position]) : settings.default_height.toString(); v = !1; -1 != movie_height.indexOf("%") && (movie_height = parseFloat(c(window).height() * parseFloat(movie_height) / 100 - 150), v = !0); -1 != movie_width.indexOf("%") && (movie_width = parseFloat(c(window).width() * parseFloat(movie_width) / 100 - 150), v = !0); $pp_pic_holder.fadeIn(function () {
    settings.show_title && "" != pp_titles[set_position] &&
"undefined" != typeof pp_titles[set_position] ? $ppt.html(unescape(pp_titles[set_position])) : $ppt.html("&nbsp;"); imgPreloader = ""; skipInjection = !1; switch (q(pp_images[set_position])) {
        case "image": imgPreloader = new Image; nextImage = new Image; if (isSet && set_position < c(pp_images).size() - 1) nextImage.src = pp_images[set_position + 1]; prevImage = new Image; if (isSet && pp_images[set_position - 1]) prevImage.src = pp_images[set_position - 1]; $pp_pic_holder.find("#pp_full_res")[0].innerHTML = settings.image_markup.replace(/{path}/g,
pp_images[set_position]); imgPreloader.onload = function () { k = i(imgPreloader.width, imgPreloader.height); d() }; imgPreloader.onerror = function () { alert("Image cannot be loaded. Make sure the path is correct and image exist."); c.prettyPhoto.close() }; imgPreloader.src = pp_images[set_position]; break; case "youtube": k = i(movie_width, movie_height); movie_id = e("v", pp_images[set_position]); "" == movie_id && (movie_id = pp_images[set_position].split("youtu.be/"), movie_id = movie_id[1], 0 < movie_id.indexOf("?") && (movie_id = movie_id.substr(0,
movie_id.indexOf("?"))), 0 < movie_id.indexOf("&") && (movie_id = movie_id.substr(0, movie_id.indexOf("&")))); movie = "http://www.youtube.com/embed/" + movie_id; e("rel", pp_images[set_position]) ? movie += "?rel=" + e("rel", pp_images[set_position]) : movie += "?rel=1"; settings.autoplay && (movie += "&autoplay=1"); toInject = settings.iframe_markup.replace(/{width}/g, k.width).replace(/{height}/g, k.height).replace(/{wmode}/g, settings.wmode).replace(/{path}/g, movie); break; case "vimeo": k = i(movie_width, movie_height); movie_id = pp_images[set_position];
            movie = "http://player.vimeo.com/video/" + movie_id.match(/http:\/\/(www\.)?vimeo.com\/(\d+)/)[2] + "?title=0&amp;byline=0&amp;portrait=0"; settings.autoplay && (movie += "&autoplay=1;"); vimeo_width = k.width + "/embed/?moog_width=" + k.width; toInject = settings.iframe_markup.replace(/{width}/g, vimeo_width).replace(/{height}/g, k.height).replace(/{path}/g, movie); break; case "quicktime": k = i(movie_width, movie_height); k.height += 15; k.contentHeight += 15; k.containerHeight += 15; toInject = settings.quicktime_markup.replace(/{width}/g,
k.width).replace(/{height}/g, k.height).replace(/{wmode}/g, settings.wmode).replace(/{path}/g, pp_images[set_position]).replace(/{autoplay}/g, settings.autoplay); break; case "flash": k = i(movie_width, movie_height); flash_vars = pp_images[set_position]; flash_vars = flash_vars.substring(pp_images[set_position].indexOf("flashvars") + 10, pp_images[set_position].length); filename = pp_images[set_position]; filename = filename.substring(0, filename.indexOf("?")); toInject = settings.flash_markup.replace(/{width}/g, k.width).replace(/{height}/g,
k.height).replace(/{wmode}/g, settings.wmode).replace(/{path}/g, filename + "?" + flash_vars); break; case "iframe": k = i(movie_width, movie_height); frame_url = pp_images[set_position]; frame_url = frame_url.substr(0, frame_url.indexOf("iframe") - 1); toInject = settings.iframe_markup.replace(/{width}/g, k.width).replace(/{height}/g, k.height).replace(/{path}/g, frame_url); break; case "ajax": doresize = !1; k = i(movie_width, movie_height); skipInjection = doresize = !0; c.get(pp_images[set_position], function (a) {
    toInject = settings.inline_markup.replace(/{content}/g,
a); $pp_pic_holder.find("#pp_full_res")[0].innerHTML = toInject; d()
}); break; case "custom": k = i(movie_width, movie_height); toInject = settings.custom_markup; break; case "inline": myClone = c(pp_images[set_position]).clone().append('<br clear="all" />').css({ width: settings.default_width }).wrapInner('<div id="pp_full_res"><div class="pp_inline"></div></div>').appendTo(c("body")).show(), doresize = !1, k = i(c(myClone).width(), c(myClone).height()), doresize = !0, c(myClone).remove(), toInject = settings.inline_markup.replace(/{content}/g,
c(pp_images[set_position]).html())
    } if (!imgPreloader && !skipInjection) $pp_pic_holder.find("#pp_full_res")[0].innerHTML = toInject, d()
}); return !1
}; c.prettyPhoto.changePage = function (a) { currentGalleryPage = 0; "previous" == a ? (set_position--, 0 > set_position && (set_position = c(pp_images).size() - 1)) : "next" == a ? (set_position++, set_position > c(pp_images).size() - 1 && (set_position = 0)) : set_position = a; rel_index = set_position; doresize || (doresize = !0); c(".pp_contract").removeClass("pp_contract").addClass("pp_expand"); g(function () { c.prettyPhoto.open() }) };
        c.prettyPhoto.changeGalleryPage = function (a) { "next" == a ? (currentGalleryPage++, currentGalleryPage > totalPage && (currentGalleryPage = 0)) : "previous" == a ? (currentGalleryPage--, 0 > currentGalleryPage && (currentGalleryPage = totalPage)) : currentGalleryPage = a; slide_speed = "next" == a || "previous" == a ? settings.animation_speed : 0; slide_to = currentGalleryPage * itemsPerPage * itemWidth; $pp_gallery.find("ul").animate({ left: -slide_to }, slide_speed) }; c.prettyPhoto.startSlideshow = function () {
            "undefined" == typeof t ? ($pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function () {
                c.prettyPhoto.stopSlideshow();
                return !1
            }), t = setInterval(c.prettyPhoto.startSlideshow, settings.slideshow)) : c.prettyPhoto.changePage("next")
        }; c.prettyPhoto.stopSlideshow = function () { $pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function () { c.prettyPhoto.startSlideshow(); return !1 }); clearInterval(t); t = void 0 }; c.prettyPhoto.close = function () {
            $pp_overlay.is(":animated") || (c.prettyPhoto.stopSlideshow(), $pp_pic_holder.stop().find("object,embed").css("visibility", "hidden"), c("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,
function () { c(this).remove() }), $pp_overlay.fadeOut(settings.animation_speed, function () { c.browser.msie && 6 == c.browser.version && c("select").css("visibility", "visible"); settings.hideflash && c("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility", "visible"); c(this).remove(); c(window).unbind("scroll.prettyphoto"); settings.callback(); doresize = !0; u = !1; delete settings }))
        }; !pp_alreadyInitialized && a() && (pp_alreadyInitialized = !0, hashRel = hashIndex = a(), hashIndex = hashIndex.substring(hashIndex.indexOf("/") +
1, hashIndex.length - 1), hashRel = hashRel.substring(0, hashRel.indexOf("/")), setTimeout(function () { c("a[rel^='" + hashRel + "']:eq(" + hashIndex + ")").trigger("click") }, 50)); return this.unbind("click.prettyphoto").bind("click.prettyphoto", c.prettyPhoto.initialize)
    } 
})(jQuery); var pp_alreadyInitialized = !1;
jQuery.QapTcha = { build: function (c) {
    var a = { txtLock: "Locked : form can't be submited", txtUnlock: "Unlocked : form can be submited", disabledSubmit: !0, autoRevert: !1, PHPfile: "php/Qaptcha.jquery.php" }; if (0 < this.length) return jQuery(this).each(function (e) {
        var b = $.extend(a, c), d = $(this); $("form").has(d); var g = jQuery("<div>", { "class": "clr" }), h = jQuery("<div>", { id: "bgSlider" }), i = jQuery("<div>", { id: "Slider" }), o = jQuery("<div>", { id: "Icons" }), q = jQuery("<div>", { id: "TxtStatus", "class": "dropError", text: b.txtLock }), n =
jQuery("<input>", { name: "iQapTcha", value: function () { var a = ""; for (e = 0; 10 > e; e++) var b = Math.round(54 * Math.random()), a = a + "azertyupqsdfghjkmwxcvbn23456789AZERTYUPQSDFGHJKMWXCVBN".substring(b, b + 1); return a } (), type: "hidden" }); b.disabledSubmit && $("input:submit[name=contactSubmit]").attr("disabled", "disabled"); h.appendTo(d); o.insertAfter(h); g.insertAfter(o); q.insertAfter(g); n.appendTo(d); i.appendTo(h); d.show(); i.draggable({ revert: function () { if (b.autoRevert) return 150 < parseInt(i.css("left")) ? !1 : !0 }, containment: h,
    axis: "x", stop: function (a, c) { 150 < c.position.left && (i.draggable("disable").css("cursor", "default"), n.val(""), q.text(b.txtUnlock).addClass("dropSuccess").removeClass("dropError"), o.css("background-position", "-16px 0"), $("input:submit[name=contactSubmit]").removeAttr("disabled")) } 
})
    })
} 
}; jQuery.fn.QapTcha = jQuery.QapTcha.build;
