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