/*
 * jQuery Cycle Plugin (core engine)
 * Examples and documentation at: http://jquery.malsup.com/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version: 2.88 (08-JUN-2010)
 * Dual licensed under the MIT and GPL licenses.
 * http://jquery.malsup.com/license.html
 * Requires: jQuery v1.2.6 or later
 */
(function (d) { function i() { window.console && window.console.log && window.console.log("[cycle] " + Array.prototype.join.call(arguments, "")) } function m(h, c, f, k) { if (!c.busy) { var l = c.container, n = h[c.currSlide], a = h[c.nextSlide]; if (!(l.cycleStop != c.stopCount || l.cycleTimeout === 0 && !f)) if (!f && !l.cyclePause && (c.autostop && --c.countdown <= 0 || c.nowrap && !c.random && c.nextSlide < c.currSlide)) c.end && c.end(c); else { if (f || !l.cyclePause) { c.before.length && d.each(c.before, function (s, q) { l.cycleStop == c.stopCount && q.apply(a, [n, a, c, k]) }); var p = function () { d.browser.msie && c.cleartype && this.style.removeAttribute("filter"); d.each(c.after, function (s, q) { l.cycleStop == c.stopCount && q.apply(a, [n, a, c, k]) }) }; if (c.nextSlide != c.currSlide) { c.busy = 1; if (c.fxFn) c.fxFn(n, a, c, p, k); else d.isFunction(d.fn.cycle[c.fx]) ? d.fn.cycle[c.fx](n, a, c, p) : d.fn.cycle.custom(n, a, c, p, f && c.fastOnEvent) } if (c.random) { c.currSlide = c.nextSlide; if (++c.randomIndex == h.length) c.randomIndex = 0; c.nextSlide = c.randomMap[c.randomIndex] } else { f = c.nextSlide + 1 == h.length; c.nextSlide = f ? 0 : c.nextSlide + 1; c.currSlide = f ? h.length - 1 : c.nextSlide - 1 } c.pager && d.fn.cycle.updateActivePagerLink(c.pager, c.currSlide) } if (c.timeout && !c.continuous) l.cycleTimeout = setTimeout(function () { m(h, c, 0, !c.rev) }, b(n, a, c, k)); else if (c.continuous && l.cyclePause) l.cycleTimeout = setTimeout(function () { m(h, c, 0, !c.rev) }, 10) } } } function b(h, c, f, k) { if (f.timeoutFn) { h = f.timeoutFn(h, c, f, k); if (h !== false) return h } return f.timeout } function e(h, c, f) { var k = c.container, l = k.cycleTimeout; if (l) { clearTimeout(l); k.cycleTimeout = 0 } if (c.random && f < 0) { c.randomIndex--; if (--c.randomIndex == -2) c.randomIndex = h.length - 2; else if (c.randomIndex == -1) c.randomIndex = h.length - 1; c.nextSlide = c.randomMap[c.randomIndex] } else if (c.random) { if (++c.randomIndex == h.length) c.randomIndex = 0; c.nextSlide = c.randomMap[c.randomIndex] } else { c.nextSlide = c.currSlide + f; if (c.nextSlide < 0) { if (c.nowrap) return false; c.nextSlide = h.length - 1 } else if (c.nextSlide >= h.length) { if (c.nowrap) return false; c.nextSlide = 0 } } c.prevNextClick && typeof c.prevNextClick == "function" && c.prevNextClick(f > 0, c.nextSlide, h[c.nextSlide]); m(h, c, 1, f >= 0); return false } function j(h, c) { var f = d(c.pager); d.each(h, function (k, l) { d.fn.cycle.createPagerAnchor(k, l, f, h, c) }); d.fn.cycle.updateActivePagerLink(c.pager, c.startingSlide) } function g(h) { function c(k) { k = parseInt(k).toString(16); return k.length < 2 ? "0" + k : k } function f(k) { for (; k && k.nodeName.toLowerCase() != "html"; k = k.parentNode) { var l = d.css(k, "background-color"); if (l.indexOf("rgb") >= 0) { k = l.match(/\d+/g); return "#" + c(k[0]) + c(k[1]) + c(k[2]) } if (l && l != "transparent") return l } return "#ffffff" } h.each(function () { d(this).css("background-color", f(this)) }) } if (d.support == undefined) d.support = { opacity: !(d.browser.msie && /MSIE 6.0/.test(navigator.userAgent)) }; d.fn.cycle = function (h, c) { if (this.length == 0) { i("terminating; zero elements found by selector" + (d.isReady ? "" : " (DOM not ready)")); return this } return this.each(function () { if (this.cycleStop == undefined) this.cycleStop = 0; if (h === undefined || h === null) h = {}; if (h.constructor == String) switch (h) { case "stop": this.cycleStop++; this.cycleTimeout && clearTimeout(this.cycleTimeout); this.cycleTimeout = 0; d(this).removeData("cycle.opts"); return; case "pause": this.cyclePause = 1; return; case "resume": this.cyclePause = 0; if (c === true) { h = d(this).data("cycle.opts"); if (!h) { i("options not found, can not resume"); return } if (this.cycleTimeout) { clearTimeout(this.cycleTimeout); this.cycleTimeout = 0 } m(h.elements, h, 1, 1) } return; default: h = { fx: h} } else if (h.constructor == Number) { var f = h; h = d(this).data("cycle.opts"); if (!h) { i("options not found, can not advance slide"); return } if (f < 0 || f >= h.elements.length) { i("invalid slide index: " + f); return } h.nextSlide = f; if (this.cycleTimeout) { clearTimeout(this.cycleTimeout); this.cycleTimeout = 0 } m(h.elements, h, 1, f >= h.currSlide); return } this.cycleTimeout && clearTimeout(this.cycleTimeout); this.cyclePause = this.cycleTimeout = 0; var k = d(this), l = h.slideExpr ? d(h.slideExpr, this) : k.children(), n = l.get(); if (n.length < 2) i("terminating; too few slides: " + n.length); else { var a = d.extend({}, d.fn.cycle.defaults, h || {}, d.metadata ? k.metadata() : d.meta ? k.data() : {}); if (a.autostop) a.countdown = a.autostopCount || n.length; k.data("cycle.opts", a); a.container = this; a.stopCount = this.cycleStop; a.elements = n; a.before = a.before ? [a.before] : []; a.after = a.after ? [a.after] : []; a.after.unshift(function () { a.busy = 0 }); a.continuous && a.after.push(function () { m(n, a, 0, !a.rev) }); !d.support.opacity && a.cleartype && !a.cleartypeNoBg && g(l); f = this.className; a.width = parseInt((f.match(/w:(\d+)/) || [])[1]) || a.width; a.height = parseInt((f.match(/h:(\d+)/) || [])[1]) || a.height; a.timeout = parseInt((f.match(/t:(\d+)/) || [])[1]) || a.timeout; k.css("position") == "static" && k.css("position", "relative"); a.width && k.width(a.width); a.height && a.height != "auto" && k.height(a.height); if (a.startingSlide) a.startingSlide = parseInt(a.startingSlide); if (a.random) { a.randomMap = []; for (f = 0; f < n.length; f++) a.randomMap.push(f); a.randomMap.sort(function () { return Math.random() - 0.5 }); a.randomIndex = 0; a.startingSlide = a.randomMap[0] } else if (a.startingSlide >= n.length) a.startingSlide = 0; var p = a.startingSlide || 0; l.css({ position: "absolute", top: 0, left: 0 }).hide().each(function (o) { o = p ? o >= p ? n.length - (o - p) : p - o : n.length - o; d(this).css("z-index", o) }); d(n[p]).css("opacity", 1).show(); d.browser.msie && n[p].style.removeAttribute("filter"); a.fit && a.width && l.width(a.width); a.fit && a.height && a.height != "auto" && l.height(a.height); if (a.containerResize) { var s = 0, q = 0; for (f = 0; f < n.length; f++) { var r = d(n[f]), t = r.outerWidth(); r = r.outerHeight(); s = t > s ? t : s; q = r > q ? r : q } k.css({ width: s + "px", height: q + "px" }) } a.pause && k.hover(function () { this.cyclePause++ }, function () { this.cyclePause-- }); f = d.fn.cycle.transitions[a.fx]; if (d.isFunction(f)) f(k, l, a); else a.fx != "custom" && i("unknown transition: " + a.fx); l.each(function () { var o = d(this); this.cycleH = a.fit && a.height ? a.height : o.height(); this.cycleW = a.fit && a.width ? a.width : o.width() }); a.cssBefore = a.cssBefore || {}; a.animIn = a.animIn || {}; a.animOut = a.animOut || {}; l.not(":eq(" + p + ")").css(a.cssBefore); a.cssFirst && d(l[p]).css(a.cssFirst); if (a.timeout) { a.timeout = parseInt(a.timeout); if (a.speed.constructor == String) a.speed = d.fx.speeds[a.speed] || parseInt(a.speed); for (a.sync || (a.speed /= 2); a.timeout - a.speed < 250; ) a.timeout += a.speed } if (a.easing) a.easeIn = a.easeOut = a.easing; if (!a.speedIn) a.speedIn = a.speed; if (!a.speedOut) a.speedOut = a.speed; a.slideCount = n.length; a.currSlide = p; if (a.random) { a.nextSlide = a.currSlide; if (++a.randomIndex == n.length) a.randomIndex = 0; a.nextSlide = a.randomMap[a.randomIndex] } else a.nextSlide = a.startingSlide >= n.length - 1 ? 0 : a.startingSlide + 1; f = l[p]; a.before.length && a.before[0].apply(f, [f, f, a, true]); a.after.length > 1 && a.after[1].apply(f, [f, f, a, true]); if (a.click && !a.next) a.next = a.click; a.next && d(a.next).bind("click", function () { return e(n, a, a.rev ? -1 : 1) }); a.prev && d(a.prev).bind("click", function () { return e(n, a, a.rev ? 1 : -1) }); a.pager && j(n, a); a.addSlide = function (o, v) { o = d(o); var u = o[0]; a.autostopCount || a.countdown++; n[v ? "unshift" : "push"](u); if (a.els) a.els[v ? "unshift" : "push"](u); a.slideCount = n.length; o.css("position", "absolute"); o[v ? "prependTo" : "appendTo"](k); if (v) { a.currSlide++; a.nextSlide++ } !d.support.opacity && a.cleartype && !a.cleartypeNoBg && g(o); a.fit && a.width && o.width(a.width); a.fit && a.height && a.height != "auto" && l.height(a.height); u.cycleH = a.fit && a.height ? a.height : o.height(); u.cycleW = a.fit && a.width ? a.width : o.width(); o.css(a.cssBefore); a.pager && d.fn.cycle.createPagerAnchor(n.length - 1, u, d(a.pager), n, a); typeof a.onAddSlide == "function" && a.onAddSlide(o) }; if (a.timeout || a.continuous) this.cycleTimeout = setTimeout(function () { m(n, a, 0, !a.rev) }, a.continuous ? 10 : a.timeout + (a.delay || 0)) } }) }; d.fn.cycle.updateActivePagerLink = function (h, c) { d(h).find("a").removeClass("activeSlide").filter("a:eq(" + c + ")").addClass("activeSlide") }; d.fn.cycle.createPagerAnchor = function (h, c, f, k, l) { if (c = typeof l.pagerAnchorBuilder == "function" ? l.pagerAnchorBuilder(h, c) : '<a href="#">' + (h + 1) + "</a>") { c = d(c); c.parents("body").length == 0 && c.appendTo(f); c.bind(l.pagerEvent, function () { l.nextSlide = h; var n = l.container, a = n.cycleTimeout; if (a) { clearTimeout(a); n.cycleTimeout = 0 } typeof l.pagerClick == "function" && l.pagerClick(l.nextSlide, k[l.nextSlide]); m(k, l, 1, l.currSlide < h); return false }); l.pauseOnPagerHover && c.hover(function () { l.container.cyclePause++ }, function () { l.container.cyclePause-- }) } }; d.fn.cycle.custom = function (h, c, f, k, l) { var n = d(h), a = d(c); a.css(f.cssBefore); var p = l ? 1 : f.speedIn, s = l ? null : f.easeIn, q = function () { a.animate(f.animIn, p, s, k) }; n.animate(f.animOut, l ? 1 : f.speedOut, l ? null : f.easeOut, function () { f.cssAfter && n.css(f.cssAfter); f.sync || q() }); f.sync && q() }; d.fn.cycle.transitions = { fade: function (h, c, f) { c.not(":eq(" + f.startingSlide + ")").css("opacity", 0); f.before.push(function () { d(this).show() }); f.animIn = { opacity: 1 }; f.animOut = { opacity: 0 }; f.cssBefore = { opacity: 0 }; f.cssAfter = { display: "none" }; f.onAddSlide = function (k) { k.hide() } } }; d.fn.cycle.ver = function () { return "2.34" }; d.fn.cycle.defaults = { fx: "fade", timeout: 4E3, timeoutFn: null, continuous: 0, speed: 1E3, speedIn: null, speedOut: null, next: null, prev: null, prevNextClick: null, pager: null, pagerClick: null, pagerEvent: "click", 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: 0, nowrap: 0, fastOnEvent: 0} })(jQuery); (function (d) { d.fn.cycle.transitions.scrollUp = function (i, m, b) { i.css("overflow", "hidden"); b.before.push(function (e, j, g) { d(this).show(); g.cssBefore.top = j.offsetHeight; g.animOut.top = 0 - e.offsetHeight }); b.cssFirst = { top: 0 }; b.animIn = { top: 0 }; b.cssAfter = { display: "none"} }; d.fn.cycle.transitions.scrollDown = function (i, m, b) { i.css("overflow", "hidden"); b.before.push(function (e, j, g) { d(this).show(); g.cssBefore.top = 0 - j.offsetHeight; g.animOut.top = e.offsetHeight }); b.cssFirst = { top: 0 }; b.animIn = { top: 0 }; b.cssAfter = { display: "none"} }; d.fn.cycle.transitions.scrollLeft = function (i, m, b) { i.css("overflow", "hidden"); b.before.push(function (e, j, g) { d(this).show(); g.cssBefore.left = j.offsetWidth; g.animOut.left = 0 - e.offsetWidth }); b.cssFirst = { left: 0 }; b.animIn = { left: 0} }; d.fn.cycle.transitions.scrollRight = function (i, m, b) { i.css("overflow", "hidden"); b.before.push(function (e, j, g) { d(this).show(); g.cssBefore.left = 0 - j.offsetWidth; g.animOut.left = e.offsetWidth }); b.cssFirst = { left: 0 }; b.animIn = { left: 0} }; d.fn.cycle.transitions.scrollHorz = function (i, m, b) { i.css("overflow", "hidden").width(); b.before.push(function (e, j, g, h) { d(this).show(); var c = e.offsetWidth; j = j.offsetWidth; g.cssBefore = h ? { left: j} : { left: -j }; g.animIn.left = 0; g.animOut.left = h ? -c : c; m.not(e).css(g.cssBefore) }); b.cssFirst = { left: 0 }; b.cssAfter = { display: "none"} }; d.fn.cycle.transitions.scrollVert = function (i, m, b) { i.css("overflow", "hidden"); b.before.push(function (e, j, g, h) { d(this).show(); var c = e.offsetHeight; j = j.offsetHeight; g.cssBefore = h ? { top: -j} : { top: j }; g.animIn.top = 0; g.animOut.top = h ? c : -c; m.not(e).css(g.cssBefore) }); b.cssFirst = { top: 0 }; b.cssAfter = { display: "none"} }; d.fn.cycle.transitions.slideX = function (i, m, b) { b.before.push(function (e) { d(e).css("zIndex", 1) }); b.onAddSlide = function (e) { e.hide() }; b.cssBefore = { zIndex: 2 }; b.animIn = { width: "show" }; b.animOut = { width: "hide"} }; d.fn.cycle.transitions.slideY = function (i, m, b) { b.before.push(function (e) { d(e).css("zIndex", 1) }); b.onAddSlide = function (e) { e.hide() }; b.cssBefore = { zIndex: 2 }; b.animIn = { height: "show" }; b.animOut = { height: "hide"} }; d.fn.cycle.transitions.shuffle = function (i, m, b) { i = i.css("overflow", "visible").width(); m.css({ left: 0, top: 0 }); b.before.push(function () { d(this).show() }); b.speed /= 2; b.random = 0; b.shuffle = b.shuffle || { left: -i, top: 15 }; b.els = []; for (i = 0; i < m.length; i++) b.els.push(m[i]); for (i = 0; i < b.startingSlide; i++) b.els.push(b.els.shift()); b.fxFn = function (e, j, g, h, c) { var f = c ? d(e) : d(j); f.animate(g.shuffle, g.speedIn, g.easeIn, function () { c ? g.els.push(g.els.shift()) : g.els.unshift(g.els.pop()); if (c) for (var k = 0, l = g.els.length; k < l; k++) d(g.els[k]).css("z-index", l - k); else { k = d(e).css("z-index"); f.css("z-index", parseInt(k) + 1) } f.animate({ left: 0, top: 0 }, g.speedOut, g.easeOut, function () { d(c ? this : e).hide(); h && h() }) }) }; b.onAddSlide = function (e) { e.hide() } }; d.fn.cycle.transitions.turnUp = function (i, m, b) { b.before.push(function (e, j, g) { d(this).show(); g.cssBefore.top = j.cycleH; g.animIn.height = j.cycleH }); b.onAddSlide = function (e) { e.hide() }; b.cssFirst = { top: 0 }; b.cssBefore = { height: 0 }; b.animIn = { top: 0 }; b.animOut = { height: 0 }; b.cssAfter = { display: "none"} }; d.fn.cycle.transitions.turnDown = function (i, m, b) { b.before.push(function (e, j, g) { d(this).show(); g.animIn.height = j.cycleH; g.animOut.top = e.cycleH }); b.onAddSlide = function (e) { e.hide() }; b.cssFirst = { top: 0 }; b.cssBefore = { top: 0, height: 0 }; b.animOut = { height: 0 }; b.cssAfter = { display: "none"} }; d.fn.cycle.transitions.turnLeft = function (i, m, b) { b.before.push(function (e, j, g) { d(this).show(); g.cssBefore.left = j.cycleW; g.animIn.width = j.cycleW }); b.onAddSlide = function (e) { e.hide() }; b.cssBefore = { width: 0 }; b.animIn = { left: 0 }; b.animOut = { width: 0 }; b.cssAfter = { display: "none"} }; d.fn.cycle.transitions.turnRight = function (i, m, b) { b.before.push(function (e, j, g) { d(this).show(); g.animIn.width = j.cycleW; g.animOut.left = e.cycleW }); b.onAddSlide = function (e) { e.hide() }; b.cssBefore = { left: 0, width: 0 }; b.animIn = { left: 0 }; b.animOut = { width: 0 }; b.cssAfter = { display: "none"} }; d.fn.cycle.transitions.zoom = function (i, m, b) { b.cssFirst = { top: 0, left: 0 }; b.cssAfter = { display: "none" }; b.before.push(function (e, j, g) { d(this).show(); g.cssBefore = { width: 0, height: 0, top: j.cycleH / 2, left: j.cycleW / 2 }; g.cssAfter = { display: "none" }; g.animIn = { top: 0, left: 0, width: j.cycleW, height: j.cycleH }; g.animOut = { width: 0, height: 0, top: e.cycleH / 2, left: e.cycleW / 2 }; d(e).css("zIndex", 2); d(j).css("zIndex", 1) }); b.onAddSlide = function (e) { e.hide() } }; d.fn.cycle.transitions.fadeZoom = function (i, m, b) { b.before.push(function (e, j, g) { g.cssBefore = { width: 0, height: 0, opacity: 1, left: j.cycleW / 2, top: j.cycleH / 2, zIndex: 1 }; g.animIn = { top: 0, left: 0, width: j.cycleW, height: j.cycleH} }); b.animOut = { opacity: 0 }; b.cssAfter = { zIndex: 0} }; d.fn.cycle.transitions.blindX = function (i, m, b) { i = i.css("overflow", "hidden").width(); m.show(); b.before.push(function (e) { d(e).css("zIndex", 1) }); b.cssBefore = { left: i, zIndex: 2 }; b.cssAfter = { zIndex: 1 }; b.animIn = { left: 0 }; b.animOut = { left: i} }; d.fn.cycle.transitions.blindY = function (i, m, b) { i = i.css("overflow", "hidden").height(); m.show(); b.before.push(function (e) { d(e).css("zIndex", 1) }); b.cssBefore = { top: i, zIndex: 2 }; b.cssAfter = { zIndex: 1 }; b.animIn = { top: 0 }; b.animOut = { top: i} }; d.fn.cycle.transitions.blindZ = function (i, m, b) { var e = i.css("overflow", "hidden").height(); i = i.width(); m.show(); b.before.push(function (j) { d(j).css("zIndex", 1) }); b.cssBefore = { top: e, left: i, zIndex: 2 }; b.cssAfter = { zIndex: 1 }; b.animIn = { top: 0, left: 0 }; b.animOut = { top: e, left: i} }; d.fn.cycle.transitions.growX = function (i, m, b) { b.before.push(function (e, j, g) { g.cssBefore = { left: this.cycleW / 2, width: 0, zIndex: 2 }; g.animIn = { left: 0, width: this.cycleW }; g.animOut = { left: 0 }; d(e).css("zIndex", 1) }); b.onAddSlide = function (e) { e.hide().css("zIndex", 1) } }; d.fn.cycle.transitions.growY = function (i, m, b) { b.before.push(function (e, j, g) { g.cssBefore = { top: this.cycleH / 2, height: 0, zIndex: 2 }; g.animIn = { top: 0, height: this.cycleH }; g.animOut = { top: 0 }; d(e).css("zIndex", 1) }); b.onAddSlide = function (e) { e.hide().css("zIndex", 1) } }; d.fn.cycle.transitions.curtainX = function (i, m, b) { b.before.push(function (e, j, g) { g.cssBefore = { left: j.cycleW / 2, width: 0, zIndex: 1, display: "block" }; g.animIn = { left: 0, width: this.cycleW }; g.animOut = { left: e.cycleW / 2, width: 0 }; d(e).css("zIndex", 2) }); b.onAddSlide = function (e) { e.hide() }; b.cssAfter = { zIndex: 1, display: "none"} }; d.fn.cycle.transitions.curtainY = function (i, m, b) { b.before.push(function (e, j, g) { g.cssBefore = { top: j.cycleH / 2, height: 0, zIndex: 1, display: "block" }; g.animIn = { top: 0, height: this.cycleH }; g.animOut = { top: e.cycleH / 2, height: 0 }; d(e).css("zIndex", 2) }); b.onAddSlide = function (e) { e.hide() }; b.cssAfter = { zIndex: 1, display: "none"} }; d.fn.cycle.transitions.cover = function (i, m, b) { var e = b.direction || "left", j = i.css("overflow", "hidden").width(), g = i.height(); b.before.push(function (h, c, f) { f.cssBefore = f.cssBefore || {}; f.cssBefore.zIndex = 2; f.cssBefore.display = "block"; if (e == "right") f.cssBefore.left = -j; else if (e == "up") f.cssBefore.top = g; else if (e == "down") f.cssBefore.top = -g; else f.cssBefore.left = j; d(h).css("zIndex", 1) }); if (!b.animIn) b.animIn = { left: 0, top: 0 }; if (!b.animOut) b.animOut = { left: 0, top: 0 }; b.cssAfter = b.cssAfter || {}; b.cssAfter.zIndex = 2; b.cssAfter.display = "none" }; d.fn.cycle.transitions.uncover = function (i, m, b) { var e = b.direction || "left", j = i.css("overflow", "hidden").width(), g = i.height(); b.before.push(function (h, c, f) { f.cssBefore.display = "block"; if (e == "right") f.animOut.left = j; else if (e == "up") f.animOut.top = -g; else if (e == "down") f.animOut.top = g; else f.animOut.left = -j; d(h).css("zIndex", 2); d(c).css("zIndex", 1) }); b.onAddSlide = function (h) { h.hide() }; if (!b.animIn) b.animIn = { left: 0, top: 0 }; b.cssBefore = b.cssBefore || {}; b.cssBefore.top = 0; b.cssBefore.left = 0; b.cssAfter = b.cssAfter || {}; b.cssAfter.zIndex = 1; b.cssAfter.display = "none" }; d.fn.cycle.transitions.toss = function (i, m, b) { var e = i.css("overflow", "visible").width(), j = i.height(); b.before.push(function (g, h, c) { d(g).css("zIndex", 2); c.cssBefore.display = "block"; if (!c.animOut.left && !c.animOut.top) c.animOut = { left: e * 2, top: -j / 2, opacity: 0 }; else c.animOut.opacity = 0 }); b.onAddSlide = function (g) { g.hide() }; b.cssBefore = { left: 0, top: 0, zIndex: 1, opacity: 1 }; b.animIn = { left: 0 }; b.cssAfter = { zIndex: 2, display: "none"} }; d.fn.cycle.transitions.wipe = function (i, m, b) { var e = i.css("overflow", "hidden").width(), j = i.height(); b.cssBefore = b.cssBefore || {}; var g; if (b.clip) if (/l2r/.test(b.clip)) g = "rect(0px 0px " + j + "px 0px)"; else if (/r2l/.test(b.clip)) g = "rect(0px " + e + "px " + j + "px " + e + "px)"; else if (/t2b/.test(b.clip)) g = "rect(0px " + e + "px 0px 0px)"; else if (/b2t/.test(b.clip)) g = "rect(" + j + "px " + e + "px " + j + "px 0px)"; else if (/zoom/.test(b.clip)) { var h = parseInt(j / 2), c = parseInt(e / 2); g = "rect(" + h + "px " + c + "px " + h + "px " + c + "px)" } b.cssBefore.clip = b.cssBefore.clip || g || "rect(0px 0px 0px 0px)"; i = b.cssBefore.clip.match(/(\d+)/g); h = parseInt(i[0]); var f = parseInt(i[1]), k = parseInt(i[2]); c = parseInt(i[3]); b.before.push(function (l, n, a) { function p() { var o = h ? h - parseInt(r * (h / t)) : 0, v = c ? c - parseInt(r * (c / t)) : 0, u = k < j ? k + parseInt(r * ((j - k) / t || 1)) : j, w = f < e ? f + parseInt(r * ((e - f) / t || 1)) : e; q.css({ clip: "rect(" + o + "px " + w + "px " + u + "px " + v + "px)" }); r++ <= t ? setTimeout(p, 13) : s.css("display", "none") } if (l != n) { var s = d(l).css("zIndex", 2), q = d(n).css({ zIndex: 3, display: "block" }), r = 1, t = parseInt(a.speedIn / 13) - 1; p() } }); b.cssAfter = {}; b.animIn = { left: 0 }; b.animOut = { left: 0} } })(jQuery);
