(function(d) {
  function h(b) {
    d.fn.cycle.debug && i(b)
  }
  function i() {
    window.console && window.console.log && window.console.log("[cycle] " + Array.prototype.join.call(arguments, " "))
  }
  function a(b, g, a) {
    if(b.cycleStop == void 0) {
      b.cycleStop = 0
    }
    if(g === void 0 || g === null) {
      g = {}
    }
    if(g.constructor == String) {
      switch(g) {
        case "destroy":
        ;
        case "stop":
          a = d(b).data("cycle.opts");
          if(!a) {
            return!1
          }
          b.cycleStop++;
          b.cycleTimeout && clearTimeout(b.cycleTimeout);
          b.cycleTimeout = 0;
          d(b).removeData("cycle.opts");
          g == "destroy" && f(a);
          return!1;
        case "toggle":
          return b.cyclePause = b.cyclePause === 1 ? 0 : 1, !1;
        case "pause":
          return b.cyclePause = 1, !1;
        case "resume":
          b.cyclePause = 0;
          if(a === !0) {
            g = d(b).data("cycle.opts");
            if(!g) {
              return i("options not found, can not resume"), !1
            }
            if(b.cycleTimeout) {
              clearTimeout(b.cycleTimeout), b.cycleTimeout = 0
            }
            l(g.elements, g, 1, 1)
          }
          return!1;
        case "prev":
        ;
        case "next":
          a = d(b).data("cycle.opts");
          if(!a) {
            return i('options not found, "prev/next" ignored'), !1
          }
          d.fn.cycle[g](a);
          return!1;
        default:
          g = {fx:g}
      }
    }else {
      if(g.constructor == Number) {
        var c = g, g = d(b).data("cycle.opts");
        if(!g) {
          return i("options not found, can not advance slide"), !1
        }
        if(c < 0 || c >= g.elements.length) {
          return i("invalid slide index: " + c), !1
        }
        g.nextSlide = c;
        if(b.cycleTimeout) {
          clearTimeout(b.cycleTimeout), b.cycleTimeout = 0
        }
        if(typeof a == "string") {
          g.oneTimeFx = a
        }
        l(g.elements, g, 1, c >= g.currSlide);
        return!1
      }
    }
    return g
  }
  function j(b, g) {
    if(!d.support.opacity && g.cleartype && b.style.filter) {
      try {
        b.style.removeAttribute("filter")
      }catch(a) {
      }
    }
  }
  function f(b) {
    b.next && d(b.next).unbind(b.prevNextEvent);
    b.prev && d(b.prev).unbind(b.prevNextEvent);
    if(b.pager || b.pagerAnchorBuilder) {
      d.each(b.pagerAnchors || [], function() {
        this.unbind().remove()
      })
    }
    b.pagerAnchors = null;
    b.destroy && b.destroy(b)
  }
  function c(b, g, a, c, h) {
    var e = d.extend({}, d.fn.cycle.defaults, c || {}, d.metadata ? b.metadata() : d.meta ? b.data() : {});
    if(e.autostop) {
      e.countdown = e.autostopCount || a.length
    }
    var f = b[0];
    b.data("cycle.opts", e);
    e.$cont = b;
    e.stopCount = f.cycleStop;
    e.elements = a;
    e.before = e.before ? [e.before] : [];
    e.after = e.after ? [e.after] : [];
    e.after.unshift(function() {
      e.busy = 0
    });
    !d.support.opacity && e.cleartype && e.after.push(function() {
      j(this, e)
    });
    e.continuous && e.after.push(function() {
      l(a, e, 0, !e.rev)
    });
    m(e);
    !d.support.opacity && e.cleartype && !e.cleartypeNoBg && z(g);
    b.css("position") == "static" && b.css("position", "relative");
    e.width && b.width(e.width);
    e.height && e.height != "auto" && b.height(e.height);
    if(e.startingSlide) {
      e.startingSlide = parseInt(e.startingSlide)
    }
    if(e.random) {
      e.randomMap = [];
      for(f = 0;f < a.length;f++) {
        e.randomMap.push(f)
      }
      e.randomMap.sort(function() {
        return Math.random() - 0.5
      });
      e.randomIndex = 1;
      e.startingSlide = e.randomMap[1]
    }else {
      if(e.startingSlide >= a.length) {
        e.startingSlide = 0
      }
    }
    e.currSlide = e.startingSlide || 0;
    var k = e.startingSlide;
    g.css({position:"absolute", top:0, left:0}).hide().each(function(b) {
      b = k ? b >= k ? a.length - (b - k) : k - b : a.length - b;
      d(this).css("z-index", b)
    });
    d(a[k]).css("opacity", 1).show();
    j(a[k], e);
    e.fit && e.width && g.width(e.width);
    e.fit && e.height && e.height != "auto" && g.height(e.height);
    if(e.containerResize && !b.innerHeight()) {
      for(var n = f = 0, s = 0;s < a.length;s++) {
        var u = d(a[s]), w = u[0], x = u.outerWidth(), y = u.outerHeight();
        x || (x = w.offsetWidth || w.width || u.attr("width"));
        y || (y = w.offsetHeight || w.height || u.attr("height"));
        f = x > f ? x : f;
        n = y > n ? y : n
      }
      f > 0 && n > 0 && b.css({width:f + "px", height:n + "px"})
    }
    e.pause && b.hover(function() {
      this.cyclePause++
    }, function() {
      this.cyclePause--
    });
    if(q(e) === !1) {
      return!1
    }
    var A = !1;
    c.requeueAttempts = c.requeueAttempts || 0;
    g.each(function() {
      var b = d(this);
      this.cycleH = e.fit && e.height ? e.height : b.height() || this.offsetHeight || this.height || b.attr("height") || 0;
      this.cycleW = e.fit && e.width ? e.width : b.width() || this.offsetWidth || this.width || b.attr("width") || 0;
      if(b.is("img")) {
        var b = d.browser.mozilla && this.cycleW == 34 && this.cycleH == 19 && !this.complete, g = d.browser.opera && (this.cycleW == 42 && this.cycleH == 19 || this.cycleW == 37 && this.cycleH == 17) && !this.complete, a = this.cycleH == 0 && this.cycleW == 0 && !this.complete;
        if(d.browser.msie && this.cycleW == 28 && this.cycleH == 30 && !this.complete || b || g || a) {
          if(h.s && e.requeueOnImageNotLoaded && ++c.requeueAttempts < 100) {
            return i(c.requeueAttempts, " - img slide not loaded, requeuing slideshow: ", this.src, this.cycleW, this.cycleH), setTimeout(function() {
              d(h.s, h.c).cycle(c)
            }, e.requeueTimeout), A = !0, !1
          }else {
            i("could not determine size of image: " + this.src, this.cycleW, this.cycleH)
          }
        }
      }
      return!0
    });
    if(A) {
      return!1
    }
    e.cssBefore = e.cssBefore || {};
    e.animIn = e.animIn || {};
    e.animOut = e.animOut || {};
    g.not(":eq(" + k + ")").css(e.cssBefore);
    e.cssFirst && d(g[k]).css(e.cssFirst);
    if(e.timeout) {
      e.timeout = parseInt(e.timeout);
      if(e.speed.constructor == String) {
        e.speed = d.fx.speeds[e.speed] || parseInt(e.speed)
      }
      e.sync || (e.speed /= 2);
      for(f = e.fx == "shuffle" ? 500 : 250;e.timeout - e.speed < f;) {
        e.timeout += e.speed
      }
    }
    if(e.easing) {
      e.easeIn = e.easeOut = e.easing
    }
    if(!e.speedIn) {
      e.speedIn = e.speed
    }
    if(!e.speedOut) {
      e.speedOut = e.speed
    }
    e.slideCount = a.length;
    e.currSlide = e.lastSlide = k;
    if(e.random) {
      if(++e.randomIndex == a.length) {
        e.randomIndex = 0
      }
      e.nextSlide = e.randomMap[e.randomIndex]
    }else {
      e.nextSlide = e.startingSlide >= a.length - 1 ? 0 : e.startingSlide + 1
    }
    if(!e.multiFx) {
      if(f = d.fn.cycle.transitions[e.fx], d.isFunction(f)) {
        f(b, g, e)
      }else {
        if(e.fx != "custom" && !e.multiFx) {
          return i("unknown transition: " + e.fx, "; slideshow terminating"), !1
        }
      }
    }
    b = g[k];
    e.before.length && e.before[0].apply(b, [b, b, e, !0]);
    e.after.length > 1 && e.after[1].apply(b, [b, b, e, !0]);
    e.next && d(e.next).bind(e.prevNextEvent, function() {
      return o(e, e.rev ? -1 : 1)
    });
    e.prev && d(e.prev).bind(e.prevNextEvent, function() {
      return o(e, e.rev ? 1 : -1)
    });
    (e.pager || e.pagerAnchorBuilder) && B(a, e);
    r(e, a);
    return e
  }
  function m(b) {
    b.original = {before:[], after:[]};
    b.original.cssBefore = d.extend({}, b.cssBefore);
    b.original.cssAfter = d.extend({}, b.cssAfter);
    b.original.animIn = d.extend({}, b.animIn);
    b.original.animOut = d.extend({}, b.animOut);
    d.each(b.before, function() {
      b.original.before.push(this)
    });
    d.each(b.after, function() {
      b.original.after.push(this)
    })
  }
  function q(b) {
    var g, a, c = d.fn.cycle.transitions;
    if(b.fx.indexOf(",") > 0) {
      b.multiFx = !0;
      b.fxs = b.fx.replace(/s*/g, "").split(",");
      for(g = 0;g < b.fxs.length;g++) {
        var f = b.fxs[g];
        a = c[f];
        if(!a || !c.hasOwnProperty(f) || !d.isFunction(a)) {
          i("discarding unknown transition: ", f), b.fxs.splice(g, 1), g--
        }
      }
      if(!b.fxs.length) {
        return i("No valid transitions named; slideshow terminating."), !1
      }
    }else {
      if(b.fx == "all") {
        for(p in b.multiFx = !0, b.fxs = [], c) {
          a = c[p], c.hasOwnProperty(p) && d.isFunction(a) && b.fxs.push(p)
        }
      }
    }
    if(b.multiFx && b.randomizeEffects) {
      a = Math.floor(Math.random() * 20) + 30;
      for(g = 0;g < a;g++) {
        c = Math.floor(Math.random() * b.fxs.length), b.fxs.push(b.fxs.splice(c, 1)[0])
      }
      h("randomized fx sequence: ", b.fxs)
    }
    return!0
  }
  function r(b, g) {
    b.addSlide = function(a, c) {
      var f = d(a), e = f[0];
      b.autostopCount || b.countdown++;
      g[c ? "unshift" : "push"](e);
      if(b.els) {
        b.els[c ? "unshift" : "push"](e)
      }
      b.slideCount = g.length;
      f.css("position", "absolute");
      f[c ? "prependTo" : "appendTo"](b.$cont);
      c && (b.currSlide++, b.nextSlide++);
      !d.support.opacity && b.cleartype && !b.cleartypeNoBg && z(f);
      b.fit && b.width && f.width(b.width);
      b.fit && b.height && b.height != "auto" && $slides.height(b.height);
      e.cycleH = b.fit && b.height ? b.height : f.height();
      e.cycleW = b.fit && b.width ? b.width : f.width();
      f.css(b.cssBefore);
      (b.pager || b.pagerAnchorBuilder) && d.fn.cycle.createPagerAnchor(g.length - 1, e, d(b.pager), g, b);
      if(d.isFunction(b.onAddSlide)) {
        b.onAddSlide(f)
      }else {
        f.hide()
      }
    }
  }
  function l(b, g, a, c) {
    if(a && g.busy && g.manualTrump) {
      h("manualTrump in go(), stopping active transition"), d(b).stop(!0, !0), g.busy = !1
    }
    if(g.busy) {
      h("transition active, ignoring new tx request")
    }else {
      var f = g.$cont[0], e = b[g.currSlide], j = b[g.nextSlide];
      if(!(f.cycleStop != g.stopCount || f.cycleTimeout === 0 && !a)) {
        if(!a && !f.cyclePause && (g.autostop && --g.countdown <= 0 || g.nowrap && !g.random && g.nextSlide < g.currSlide)) {
          g.end && g.end(g)
        }else {
          var i = !1;
          if((a || !f.cyclePause) && g.nextSlide != g.currSlide) {
            var i = !0, n = g.fx;
            e.cycleH = e.cycleH || d(e).height();
            e.cycleW = e.cycleW || d(e).width();
            j.cycleH = j.cycleH || d(j).height();
            j.cycleW = j.cycleW || d(j).width();
            if(g.multiFx) {
              if(g.lastFx == void 0 || ++g.lastFx >= g.fxs.length) {
                g.lastFx = 0
              }
              n = g.fxs[g.lastFx];
              g.currFx = n
            }
            if(g.oneTimeFx) {
              n = g.oneTimeFx, g.oneTimeFx = null
            }
            d.fn.cycle.resetState(g, n);
            g.before.length && d.each(g.before, function(b, a) {
              f.cycleStop == g.stopCount && a.apply(j, [e, j, g, c])
            });
            n = function() {
              d.each(g.after, function(b, a) {
                f.cycleStop == g.stopCount && a.apply(j, [e, j, g, c])
              })
            };
            h("tx firing; currSlide: " + g.currSlide + "; nextSlide: " + g.nextSlide);
            g.busy = 1;
            if(g.fxFn) {
              g.fxFn(e, j, g, n, c, a && g.fastOnEvent)
            }else {
              if(d.isFunction(d.fn.cycle[g.fx])) {
                d.fn.cycle[g.fx](e, j, g, n, c, a && g.fastOnEvent)
              }else {
                d.fn.cycle.custom(e, j, g, n, c, a && g.fastOnEvent)
              }
            }
          }
          if(i || g.nextSlide == g.currSlide) {
            if(g.lastSlide = g.currSlide, g.random) {
              g.currSlide = g.nextSlide;
              if(++g.randomIndex == b.length) {
                g.randomIndex = 0
              }
              g.nextSlide = g.randomMap[g.randomIndex];
              if(g.nextSlide == g.currSlide) {
                g.nextSlide = g.currSlide == g.slideCount - 1 ? 0 : g.currSlide + 1
              }
            }else {
              a = g.nextSlide + 1 == b.length, g.nextSlide = a ? 0 : g.nextSlide + 1, g.currSlide = a ? b.length - 1 : g.nextSlide - 1
            }
          }
          i && g.pager && g.updateActivePagerLink(g.pager, g.currSlide, g.activePagerClass);
          i = 0;
          g.timeout && !g.continuous ? i = s(e, j, g, c) : g.continuous && f.cyclePause && (i = 10);
          if(i > 0) {
            f.cycleTimeout = setTimeout(function() {
              l(b, g, 0, !g.rev)
            }, i)
          }
        }
      }
    }
  }
  function s(b, a, d, c) {
    if(d.timeoutFn) {
      for(b = d.timeoutFn(b, a, d, c);b - d.speed < 250;) {
        b += d.speed
      }
      h("calculated timeout: " + b + "; speed: " + d.speed);
      if(b !== !1) {
        return b
      }
    }
    return d.timeout
  }
  function o(b, a) {
    var c = b.elements, f = b.$cont[0], h = f.cycleTimeout;
    if(h) {
      clearTimeout(h), f.cycleTimeout = 0
    }
    if(b.random && a < 0) {
      b.randomIndex--;
      if(--b.randomIndex == -2) {
        b.randomIndex = c.length - 2
      }else {
        if(b.randomIndex == -1) {
          b.randomIndex = c.length - 1
        }
      }
      b.nextSlide = b.randomMap[b.randomIndex]
    }else {
      if(b.random) {
        b.nextSlide = b.randomMap[b.randomIndex]
      }else {
        if(b.nextSlide = b.currSlide + a, b.nextSlide < 0) {
          if(b.nowrap) {
            return!1
          }
          b.nextSlide = c.length - 1
        }else {
          if(b.nextSlide >= c.length) {
            if(b.nowrap) {
              return!1
            }
            b.nextSlide = 0
          }
        }
      }
    }
    f = b.onPrevNextEvent || b.prevNextClick;
    d.isFunction(f) && f(a > 0, b.nextSlide, c[b.nextSlide]);
    l(c, b, 1, a >= 0);
    return!1
  }
  function B(b, a) {
    var c = d(a.pager);
    d.each(b, function(f, h) {
      d.fn.cycle.createPagerAnchor(f, h, c, b, a)
    });
    a.updateActivePagerLink(a.pager, a.startingSlide, a.activePagerClass)
  }
  function z(b) {
    function a(b) {
      b = parseInt(b).toString(16);
      return b.length < 2 ? "0" + b : b
    }
    function c(b) {
      for(;b && b.nodeName.toLowerCase() != "html";b = b.parentNode) {
        var f = d.css(b, "background-color");
        if(f.indexOf("rgb") >= 0) {
          return b = f.match(/d+/g), "#" + a(b[0]) + a(b[1]) + a(b[2])
        }
        if(f && f != "transparent") {
          return f
        }
      }
      return"#ffffff"
    }
    h("applying clearType background-color hack");
    b.each(function() {
      d(this).css("background-color", c(this))
    })
  }
  if(d.support == void 0) {
    d.support = {opacity:!d.browser.msie}
  }
  d.fn.cycle = function(b, g) {
    var f = {s:this.selector, c:this.context};
    if(this.length === 0 && b != "stop") {
      if(!d.isReady && f.s) {
        return i("DOM not ready, queuing slideshow"), d(function() {
          d(f.s, f.c).cycle(b, g)
        }), this
      }
      i("terminating; zero elements found by selector" + (d.isReady ? "" : " (DOM not ready)"));
      return this
    }
    return this.each(function() {
      var j = a(this, b, g);
      if(j !== !1) {
        j.updateActivePagerLink = j.updateActivePagerLink || d.fn.cycle.updateActivePagerLink;
        this.cycleTimeout && clearTimeout(this.cycleTimeout);
        this.cycleTimeout = this.cyclePause = 0;
        var v = d(this), e = j.slideExpr ? d(j.slideExpr, this) : v.children(), m = e.get();
        if(m.length < 2) {
          i("terminating; too few slides: " + m.length)
        }else {
          var k = c(v, e, m, j, f);
          if(k !== !1 && (j = k.continuous ? 10 : s(k.currSlide, k.nextSlide, k, !k.rev))) {
            j += k.delay || 0, j < 10 && (j = 10), h("first timeout: " + j), this.cycleTimeout = setTimeout(function() {
              l(m, k, 0, !k.rev)
            }, j)
          }
        }
      }
    })
  };
  d.fn.cycle.resetState = function(b, a) {
    a = a || b.fx;
    b.before = [];
    b.after = [];
    b.cssBefore = d.extend({}, b.original.cssBefore);
    b.cssAfter = d.extend({}, b.original.cssAfter);
    b.animIn = d.extend({}, b.original.animIn);
    b.animOut = d.extend({}, b.original.animOut);
    b.fxFn = null;
    d.each(b.original.before, function() {
      b.before.push(this)
    });
    d.each(b.original.after, function() {
      b.after.push(this)
    });
    var c = d.fn.cycle.transitions[a];
    d.isFunction(c) && c(b.$cont, d(b.elements), b)
  };
  d.fn.cycle.updateActivePagerLink = function(b, a, c) {
    d(b).each(function() {
      d(this).children().removeClass(c).eq(a).addClass(c)
    })
  };
  d.fn.cycle.next = function(b) {
    o(b, b.rev ? -1 : 1)
  };
  d.fn.cycle.prev = function(b) {
    o(b, b.rev ? 1 : -1)
  };
  d.fn.cycle.createPagerAnchor = function(b, a, c, f, j) {
    d.isFunction(j.pagerAnchorBuilder) ? (a = j.pagerAnchorBuilder(b, a), h("pagerAnchorBuilder(" + b + ", el) returned: " + a)) : a = '<a href="#">' + (b + 1) + "</a>";
    if(a) {
      var e = d(a);
      if(e.parents("body").length === 0) {
        var i = [];
        c.length > 1 ? (c.each(function() {
          var b = e.clone(!0);
          d(this).append(b);
          i.push(b[0])
        }), e = d(i)) : e.appendTo(c)
      }
      j.pagerAnchors = j.pagerAnchors || [];
      j.pagerAnchors.push(e);
      e.bind(j.pagerEvent, function(a) {
        a.preventDefault();
        j.nextSlide = b;
        var a = j.$cont[0], e = a.cycleTimeout;
        if(e) {
          clearTimeout(e), a.cycleTimeout = 0
        }
        a = j.onPagerEvent || j.pagerClick;
        d.isFunction(a) && a(j.nextSlide, f[j.nextSlide]);
        l(f, j, 1, j.currSlide < b)
      });
      !/^click/.test(j.pagerEvent) && !j.allowPagerClickBubble && e.bind("click.cycle", function() {
        return!1
      });
      j.pauseOnPagerHover && e.hover(function() {
        j.$cont[0].cyclePause++
      }, function() {
        j.$cont[0].cyclePause--
      })
    }
  };
  d.fn.cycle.hopsFromLast = function(b, a) {
    var d = b.lastSlide, c = b.currSlide;
    return a ? c > d ? c - d : b.slideCount - d : c < d ? d - c : d + b.slideCount - c
  };
  d.fn.cycle.commonReset = function(b, a, c, f, j, e) {
    d(c.elements).not(b).hide();
    c.cssBefore.opacity = 1;
    c.cssBefore.display = "block";
    if(f !== !1 && a.cycleW > 0) {
      c.cssBefore.width = a.cycleW
    }
    if(j !== !1 && a.cycleH > 0) {
      c.cssBefore.height = a.cycleH
    }
    c.cssAfter = c.cssAfter || {};
    c.cssAfter.display = "none";
    d(b).css("zIndex", c.slideCount + (e === !0 ? 1 : 0));
    d(a).css("zIndex", c.slideCount + (e === !0 ? 0 : 1))
  };
  d.fn.cycle.custom = function(b, a, c, f, j, e) {
    var h = d(b), i = d(a), m = c.speedIn, b = c.speedOut, q = c.easeIn, a = c.easeOut;
    i.css(c.cssBefore);
    e && (m = typeof e == "number" ? b = e : b = 1, q = a = null);
    h.animate(c.animOut, b, a, function() {
      c.cssAfter && h.css(c.cssAfter);
      c.sync || i.animate(c.animIn, m, q, f)
    });
    c.sync && i.animate(c.animIn, m, q, f)
  };
  d.fn.cycle.transitions = {fade:function(b, a, c) {
    a.not(":eq(" + c.currSlide + ")").css("opacity", 0);
    c.before.push(function(b, a, c) {
      d.fn.cycle.commonReset(b, a, c);
      c.cssBefore.opacity = 0
    });
    c.animIn = {opacity:1};
    c.animOut = {opacity:0};
    c.cssBefore = {top:0, left:0}
  }};
  d.fn.cycle.ver = function() {
    return"2.85"
  };
  d.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:!d.support.opacity, cleartypeNoBg:!1, nowrap:0, fastOnEvent:0, randomizeEffects:1, rev:0, manualTrump:!0, requeueOnImageNotLoaded:!0, requeueTimeout:250, activePagerClass:"activeSlide", updateActivePagerLink:null}
})(jQuery);
(function(d) {
  d.fn.cycle.transitions.none = function(h, i, a) {
    a.fxFn = function(a, f, c, h) {
      d(f).show();
      d(a).hide();
      h()
    }
  };
  d.fn.cycle.transitions.scrollUp = function(h, i, a) {
    h.css("overflow", "hidden");
    a.before.push(d.fn.cycle.commonReset);
    h = h.height();
    a.cssBefore = {top:h, left:0};
    a.cssFirst = {top:0};
    a.animIn = {top:0};
    a.animOut = {top:-h}
  };
  d.fn.cycle.transitions.scrollDown = function(h, i, a) {
    h.css("overflow", "hidden");
    a.before.push(d.fn.cycle.commonReset);
    h = h.height();
    a.cssFirst = {top:0};
    a.cssBefore = {top:-h, left:0};
    a.animIn = {top:0};
    a.animOut = {top:h}
  };
  d.fn.cycle.transitions.scrollLeft = function(h, i, a) {
    h.css("overflow", "hidden");
    a.before.push(d.fn.cycle.commonReset);
    h = h.width();
    a.cssFirst = {left:0};
    a.cssBefore = {left:h, top:0};
    a.animIn = {left:0};
    a.animOut = {left:0 - h}
  };
  d.fn.cycle.transitions.scrollRight = function(h, i, a) {
    h.css("overflow", "hidden");
    a.before.push(d.fn.cycle.commonReset);
    h = h.width();
    a.cssFirst = {left:0};
    a.cssBefore = {left:-h, top:0};
    a.animIn = {left:0};
    a.animOut = {left:h}
  };
  d.fn.cycle.transitions.scrollHorz = function(h, i, a) {
    h.css("overflow", "hidden").width();
    a.before.push(function(a, f, c, h) {
      d.fn.cycle.commonReset(a, f, c);
      c.cssBefore.left = h ? f.cycleW - 1 : 1 - f.cycleW;
      c.animOut.left = h ? -a.cycleW : a.cycleW
    });
    a.cssFirst = {left:0};
    a.cssBefore = {top:0};
    a.animIn = {left:0};
    a.animOut = {top:0}
  };
  d.fn.cycle.transitions.scrollVert = function(h, i, a) {
    h.css("overflow", "hidden");
    a.before.push(function(a, f, c, h) {
      d.fn.cycle.commonReset(a, f, c);
      c.cssBefore.top = h ? 1 - f.cycleH : f.cycleH - 1;
      c.animOut.top = h ? a.cycleH : -a.cycleH
    });
    a.cssFirst = {top:0};
    a.cssBefore = {left:0};
    a.animIn = {top:0};
    a.animOut = {left:0}
  };
  d.fn.cycle.transitions.slideX = function(h, i, a) {
    a.before.push(function(a, f, c) {
      d(c.elements).not(a).hide();
      d.fn.cycle.commonReset(a, f, c, !1, !0);
      c.animIn.width = f.cycleW
    });
    a.cssBefore = {left:0, top:0, width:0};
    a.animIn = {width:"show"};
    a.animOut = {width:0}
  };
  d.fn.cycle.transitions.slideY = function(h, i, a) {
    a.before.push(function(a, f, c) {
      d(c.elements).not(a).hide();
      d.fn.cycle.commonReset(a, f, c, !0, !1);
      c.animIn.height = f.cycleH
    });
    a.cssBefore = {left:0, top:0, height:0};
    a.animIn = {height:"show"};
    a.animOut = {height:0}
  };
  d.fn.cycle.transitions.shuffle = function(h, i, a) {
    h = h.css("overflow", "visible").width();
    i.css({left:0, top:0});
    a.before.push(function(a, f, c) {
      d.fn.cycle.commonReset(a, f, c, !0, !0, !0)
    });
    if(!a.speedAdjusted) {
      a.speed /= 2, a.speedAdjusted = !0
    }
    a.random = 0;
    a.shuffle = a.shuffle || {left:-h, top:15};
    a.els = [];
    for(h = 0;h < i.length;h++) {
      a.els.push(i[h])
    }
    for(h = 0;h < a.currSlide;h++) {
      a.els.push(a.els.shift())
    }
    a.fxFn = function(a, f, c, h, i) {
      var r = i ? d(a) : d(f);
      d(f).css(c.cssBefore);
      var l = c.slideCount;
      r.animate(c.shuffle, c.speedIn, c.easeIn, function() {
        for(var f = d.fn.cycle.hopsFromLast(c, i), o = 0;o < f;o++) {
          i ? c.els.push(c.els.shift()) : c.els.unshift(c.els.pop())
        }
        if(i) {
          f = 0;
          for(o = c.els.length;f < o;f++) {
            d(c.els[f]).css("z-index", o - f + l)
          }
        }else {
          f = d(a).css("z-index"), r.css("z-index", parseInt(f) + 1 + l)
        }
        r.animate({left:0, top:0}, c.speedOut, c.easeOut, function() {
          d(i ? this : a).hide();
          h && h()
        })
      })
    };
    a.cssBefore = {display:"block", opacity:1, top:0, left:0}
  };
  d.fn.cycle.transitions.turnUp = function(h, i, a) {
    a.before.push(function(a, f, c) {
      d.fn.cycle.commonReset(a, f, c, !0, !1);
      c.cssBefore.top = f.cycleH;
      c.animIn.height = f.cycleH
    });
    a.cssFirst = {top:0};
    a.cssBefore = {left:0, height:0};
    a.animIn = {top:0};
    a.animOut = {height:0}
  };
  d.fn.cycle.transitions.turnDown = function(h, i, a) {
    a.before.push(function(a, f, c) {
      d.fn.cycle.commonReset(a, f, c, !0, !1);
      c.animIn.height = f.cycleH;
      c.animOut.top = a.cycleH
    });
    a.cssFirst = {top:0};
    a.cssBefore = {left:0, top:0, height:0};
    a.animOut = {height:0}
  };
  d.fn.cycle.transitions.turnLeft = function(h, i, a) {
    a.before.push(function(a, f, c) {
      d.fn.cycle.commonReset(a, f, c, !1, !0);
      c.cssBefore.left = f.cycleW;
      c.animIn.width = f.cycleW
    });
    a.cssBefore = {top:0, width:0};
    a.animIn = {left:0};
    a.animOut = {width:0}
  };
  d.fn.cycle.transitions.turnRight = function(h, i, a) {
    a.before.push(function(a, f, c) {
      d.fn.cycle.commonReset(a, f, c, !1, !0);
      c.animIn.width = f.cycleW;
      c.animOut.left = a.cycleW
    });
    a.cssBefore = {top:0, left:0, width:0};
    a.animIn = {left:0};
    a.animOut = {width:0}
  };
  d.fn.cycle.transitions.zoom = function(h, i, a) {
    a.before.push(function(a, f, c) {
      d.fn.cycle.commonReset(a, f, c, !1, !1, !0);
      c.cssBefore.top = f.cycleH / 2;
      c.cssBefore.left = f.cycleW / 2;
      c.animIn = {top:0, left:0, width:f.cycleW, height:f.cycleH};
      c.animOut = {width:0, height:0, top:a.cycleH / 2, left:a.cycleW / 2}
    });
    a.cssFirst = {top:0, left:0};
    a.cssBefore = {width:0, height:0}
  };
  d.fn.cycle.transitions.fadeZoom = function(h, i, a) {
    a.before.push(function(a, f, c) {
      d.fn.cycle.commonReset(a, f, c, !1, !1);
      c.cssBefore.left = f.cycleW / 2;
      c.cssBefore.top = f.cycleH / 2;
      c.animIn = {top:0, left:0, width:f.cycleW, height:f.cycleH}
    });
    a.cssBefore = {width:0, height:0};
    a.animOut = {opacity:0}
  };
  d.fn.cycle.transitions.blindX = function(h, i, a) {
    h = h.css("overflow", "hidden").width();
    a.before.push(function(a, f, c) {
      d.fn.cycle.commonReset(a, f, c);
      c.animIn.width = f.cycleW;
      c.animOut.left = a.cycleW
    });
    a.cssBefore = {left:h, top:0};
    a.animIn = {left:0};
    a.animOut = {left:h}
  };
  d.fn.cycle.transitions.blindY = function(h, i, a) {
    h = h.css("overflow", "hidden").height();
    a.before.push(function(a, f, c) {
      d.fn.cycle.commonReset(a, f, c);
      c.animIn.height = f.cycleH;
      c.animOut.top = a.cycleH
    });
    a.cssBefore = {top:h, left:0};
    a.animIn = {top:0};
    a.animOut = {top:h}
  };
  d.fn.cycle.transitions.blindZ = function(h, i, a) {
    i = h.css("overflow", "hidden").height();
    h = h.width();
    a.before.push(function(a, f, c) {
      d.fn.cycle.commonReset(a, f, c);
      c.animIn.height = f.cycleH;
      c.animOut.top = a.cycleH
    });
    a.cssBefore = {top:i, left:h};
    a.animIn = {top:0, left:0};
    a.animOut = {top:i, left:h}
  };
  d.fn.cycle.transitions.growX = function(h, i, a) {
    a.before.push(function(a, f, c) {
      d.fn.cycle.commonReset(a, f, c, !1, !0);
      c.cssBefore.left = this.cycleW / 2;
      c.animIn = {left:0, width:this.cycleW};
      c.animOut = {left:0}
    });
    a.cssBefore = {width:0, top:0}
  };
  d.fn.cycle.transitions.growY = function(h, i, a) {
    a.before.push(function(a, f, c) {
      d.fn.cycle.commonReset(a, f, c, !0, !1);
      c.cssBefore.top = this.cycleH / 2;
      c.animIn = {top:0, height:this.cycleH};
      c.animOut = {top:0}
    });
    a.cssBefore = {height:0, left:0}
  };
  d.fn.cycle.transitions.curtainX = function(h, i, a) {
    a.before.push(function(a, f, c) {
      d.fn.cycle.commonReset(a, f, c, !1, !0, !0);
      c.cssBefore.left = f.cycleW / 2;
      c.animIn = {left:0, width:this.cycleW};
      c.animOut = {left:a.cycleW / 2, width:0}
    });
    a.cssBefore = {top:0, width:0}
  };
  d.fn.cycle.transitions.curtainY = function(h, i, a) {
    a.before.push(function(a, f, c) {
      d.fn.cycle.commonReset(a, f, c, !0, !1, !0);
      c.cssBefore.top = f.cycleH / 2;
      c.animIn = {top:0, height:f.cycleH};
      c.animOut = {top:a.cycleH / 2, height:0}
    });
    a.cssBefore = {left:0, height:0}
  };
  d.fn.cycle.transitions.cover = function(h, i, a) {
    var j = a.direction || "left", f = h.css("overflow", "hidden").width(), c = h.height();
    a.before.push(function(a, h, i) {
      d.fn.cycle.commonReset(a, h, i);
      j == "right" ? i.cssBefore.left = -f : j == "up" ? i.cssBefore.top = c : j == "down" ? i.cssBefore.top = -c : i.cssBefore.left = f
    });
    a.animIn = {left:0, top:0};
    a.animOut = {opacity:1};
    a.cssBefore = {top:0, left:0}
  };
  d.fn.cycle.transitions.uncover = function(h, i, a) {
    var j = a.direction || "left", f = h.css("overflow", "hidden").width(), c = h.height();
    a.before.push(function(a, h, i) {
      d.fn.cycle.commonReset(a, h, i, !0, !0, !0);
      j == "right" ? i.animOut.left = f : j == "up" ? i.animOut.top = -c : j == "down" ? i.animOut.top = c : i.animOut.left = -f
    });
    a.animIn = {left:0, top:0};
    a.animOut = {opacity:1};
    a.cssBefore = {top:0, left:0}
  };
  d.fn.cycle.transitions.toss = function(h, i, a) {
    var j = h.css("overflow", "visible").width(), f = h.height();
    a.before.push(function(a, h, i) {
      d.fn.cycle.commonReset(a, h, i, !0, !0, !0);
      !i.animOut.left && !i.animOut.top ? i.animOut = {left:j * 2, top:-f / 2, opacity:0} : i.animOut.opacity = 0
    });
    a.cssBefore = {left:0, top:0};
    a.animIn = {left:0}
  };
  d.fn.cycle.transitions.wipe = function(h, i, a) {
    var j = h.css("overflow", "hidden").width(), f = h.height();
    a.cssBefore = a.cssBefore || {};
    var c;
    a.clip && (/l2r/.test(a.clip) ? c = "rect(0px 0px " + f + "px 0px)" : /r2l/.test(a.clip) ? c = "rect(0px " + j + "px " + f + "px " + j + "px)" : /t2b/.test(a.clip) ? c = "rect(0px " + j + "px 0px 0px)" : /b2t/.test(a.clip) ? c = "rect(" + f + "px " + j + "px " + f + "px 0px)" : /zoom/.test(a.clip) && (h = parseInt(f / 2), i = parseInt(j / 2), c = "rect(" + h + "px " + i + "px " + h + "px " + i + "px)"));
    a.cssBefore.clip = a.cssBefore.clip || c || "rect(0px 0px 0px 0px)";
    var h = a.cssBefore.clip.match(/(d+)/g), m = parseInt(h[0]), q = parseInt(h[1]), r = parseInt(h[2]), l = parseInt(h[3]);
    a.before.push(function(a, c, h) {
      if(a != c) {
        var i = d(a), b = d(c);
        d.fn.cycle.commonReset(a, c, h, !0, !0, !1);
        h.cssAfter.display = "block";
        var g = 1, t = parseInt(h.speedIn / 13) - 1;
        (function v() {
          var a = m ? m - parseInt(g * (m / t)) : 0, c = l ? l - parseInt(g * (l / t)) : 0, d = r < f ? r + parseInt(g * ((f - r) / t || 1)) : f, h = q < j ? q + parseInt(g * ((j - q) / t || 1)) : j;
          b.css({clip:"rect(" + a + "px " + h + "px " + d + "px " + c + "px)"});
          g++ <= t ? setTimeout(v, 13) : i.css("display", "none")
        })()
      }
    });
    a.cssBefore = {display:"block", opacity:1, top:0, left:0};
    a.animIn = {left:0};
    a.animOut = {left:0}
  }
})(jQuery);
