jQuery.noConflict();
jQuery.preloadImages = function() {
  for(var b = 0;b < arguments.length;b++) {
    jQuery("<img>").attr("src", arguments[b])
  }
};
jQuery.fn.delay = function(b, h) {
  this.each(function() {
    setTimeout(h, b)
  });
  return this
};
function cyclePagerUpdate() {
  jQuery.fn.cycle.updateActivePagerLink = function(b, h) {
    jQuery(b).find("img").removeClass("active_slider_img").filter("#slider_preview_img img:eq(" + h + ")").addClass("active_slider_img")
  }
}
function cyclePause() {
  jQuery("#feature").hover(function() {
    jQuery("#slider_img").cycle("pause")
  }, function() {
    jQuery("#slider_img").cycle("resume")
  })
}
function cycleStart() {
  jQuery("#loading_slider").remove();
  jQuery("#slider_img").css("display", "block");
  jQuery("#slider_thumbnails").css("display", "block");
  cyclePagerUpdate();
  cyclePause();
  var b = jQuery("meta[name=slider_disable]").attr("content"), h = jQuery("meta[name=slider_speed]").attr("content");
  $duration = b == 1 ? 0 : h != "" && b == "" ? h : 7E3;
  jQuery("#slider_img").cycle({fx:"fade", before:onBefore, after:onAfter, easing:"easeInOutQuad", next:".slider_nav .slider_next_btn", timeout:$duration, speed:700, pauseOnPagerHover:true, cleartypeNoBg:true, cleartype:true, pager:"#slider_preview_img", pagerAnchorBuilder:function(m) {
    return"#slider_preview_img img:eq(" + m + ")"
  }})
}
function onBefore(b, h) {
  jQuery(h).css({width:960});
  if(jQuery(h).attr("class") == "slider_cropped") {
    jQuery("#feature").addClass("staged");
    jQuery(".slider_content").css({marginTop:"0px"})
  }else {
    jQuery("#feature").removeClass("staged");
    jQuery(".slider_content").css({marginTop:"22px"})
  }
  jQuery(b).find(".slider_frame").css({height:"340px"});
  b.id != h.id && jQuery(b).find(".slider_content").css({display:"none"})
}
function onAfter() {
  jQuery(this).find(".slider_content").css({display:"block"});
  jQuery(this).find(".slider_frame").css({height:"358px"})
}
(function(b) {
  function h(a) {
    b.fn.cycle.debug && m(a)
  }
  function m() {
    window.console && window.console.log && window.console.log("[cycle] " + Array.prototype.join.call(arguments, " "))
  }
  function e(a, c, g) {
    if(a.cycleStop == undefined) {
      a.cycleStop = 0
    }
    if(c === undefined || c === null) {
      c = {}
    }
    if(c.constructor == String) {
      switch(c) {
        case "stop":
          a.cycleStop++;
          a.cycleTimeout && clearTimeout(a.cycleTimeout);
          a.cycleTimeout = 0;
          b(a).removeData("cycle.opts");
          return false;
        case "pause":
          a.cyclePause = 1;
          return false;
        case "resume":
          a.cyclePause = 0;
          if(g === true) {
            c = b(a).data("cycle.opts");
            if(!c) {
              m("options not found, can not resume");
              return false
            }
            if(a.cycleTimeout) {
              clearTimeout(a.cycleTimeout);
              a.cycleTimeout = 0
            }
            r(c.elements, c, 1, 1)
          }
          return false;
        case "prev":
        ;
        case "next":
          a = b(a).data("cycle.opts");
          if(!a) {
            m('options not found, "prev/next" ignored');
            return false
          }
          b.fn.cycle[c](a);
          return false;
        default:
          c = {fx:c}
      }
      return c
    }else {
      if(c.constructor == Number) {
        var j = c;
        c = b(a).data("cycle.opts");
        if(!c) {
          m("options not found, can not advance slide");
          return false
        }
        if(j < 0 || j >= c.elements.length) {
          m("invalid slide index: " + j);
          return false
        }
        c.nextSlide = j;
        if(a.cycleTimeout) {
          clearTimeout(a.cycleTimeout);
          a.cycleTimeout = 0
        }
        if(typeof g == "string") {
          c.oneTimeFx = g
        }
        r(c.elements, c, 1, j >= c.currSlide);
        return false
      }
    }
    return c
  }
  function k(a, c) {
    if(!b.support.opacity && c.cleartype && a.style.filter) {
      try {
        a.style.removeAttribute("filter")
      }catch(g) {
      }
    }
  }
  function i(a, c, g, j, l) {
    var d = b.extend({}, b.fn.cycle.defaults, j || {}, b.metadata ? a.metadata() : b.meta ? a.data() : {});
    if(d.autostop) {
      d.countdown = d.autostopCount || g.length
    }
    var o = a[0];
    a.data("cycle.opts", d);
    d.$cont = a;
    d.stopCount = o.cycleStop;
    d.elements = g;
    d.before = d.before ? [d.before] : [];
    d.after = d.after ? [d.after] : [];
    d.after.unshift(function() {
      d.busy = 0
    });
    !b.support.opacity && d.cleartype && d.after.push(function() {
      k(this, d)
    });
    d.continuous && d.after.push(function() {
      r(g, d, 0, !d.rev)
    });
    f(d);
    !b.support.opacity && d.cleartype && !d.cleartypeNoBg && x(c);
    a.css("position") == "static" && a.css("position", "relative");
    d.width && a.width(d.width);
    d.height && d.height != "auto" && a.height(d.height);
    if(d.startingSlide) {
      d.startingSlide = parseInt(d.startingSlide)
    }
    if(d.random) {
      d.randomMap = [];
      for(o = 0;o < g.length;o++) {
        d.randomMap.push(o)
      }
      d.randomMap.sort(function() {
        return Math.random() - 0.5
      });
      d.randomIndex = 0;
      d.startingSlide = d.randomMap[0]
    }else {
      if(d.startingSlide >= g.length) {
        d.startingSlide = 0
      }
    }
    d.currSlide = d.startingSlide = d.startingSlide || 0;
    var q = d.startingSlide;
    c.css({position:"absolute", top:0, left:0}).hide().each(function(y) {
      y = q ? y >= q ? g.length - (y - q) : q - y : g.length - y;
      b(this).css("z-index", y)
    });
    b(g[q]).css("opacity", 1).show();
    k(g[q], d);
    d.fit && d.width && c.width(d.width);
    d.fit && d.height && d.height != "auto" && c.height(d.height);
    if(d.containerResize && !a.innerHeight()) {
      for(var w = o = 0, A = 0;A < g.length;A++) {
        var z = b(g[A]), C = z[0], B = z.outerWidth();
        z = z.outerHeight();
        if(!B) {
          B = C.offsetWidth
        }
        if(!z) {
          z = C.offsetHeight
        }
        o = B > o ? B : o;
        w = z > w ? z : w
      }
      o > 0 && w > 0 && a.css({width:o + "px", height:w + "px"})
    }
    d.pause && a.hover(function() {
      this.cyclePause++
    }, function() {
      this.cyclePause--
    });
    if(n(d) === false) {
      return false
    }
    var D = false;
    j.requeueAttempts = j.requeueAttempts || 0;
    c.each(function() {
      var y = b(this);
      this.cycleH = d.fit && d.height ? d.height : y.height();
      this.cycleW = d.fit && d.width ? d.width : y.width();
      if(y.is("img")) {
        y = b.browser.mozilla && this.cycleW == 34 && this.cycleH == 19 && !this.complete;
        var E = b.browser.opera && (this.cycleW == 42 && this.cycleH == 19 || this.cycleW == 37 && this.cycleH == 17) && !this.complete, F = this.cycleH == 0 && this.cycleW == 0 && !this.complete;
        if(b.browser.msie && this.cycleW == 28 && this.cycleH == 30 && !this.complete || y || E || F) {
          if(l.s && d.requeueOnImageNotLoaded && ++j.requeueAttempts < 100) {
            m(j.requeueAttempts, " - img slide not loaded, requeuing slideshow: ", this.src, this.cycleW, this.cycleH);
            setTimeout(function() {
              b(l.s, l.c).cycle(j)
            }, d.requeueTimeout);
            D = true;
            return false
          }else {
            m("could not determine size of image: " + this.src, this.cycleW, this.cycleH)
          }
        }
      }
      return true
    });
    if(D) {
      return false
    }
    d.cssBefore = d.cssBefore || {};
    d.animIn = d.animIn || {};
    d.animOut = d.animOut || {};
    c.not(":eq(" + q + ")").css(d.cssBefore);
    d.cssFirst && b(c[q]).css(d.cssFirst);
    if(d.timeout) {
      d.timeout = parseInt(d.timeout);
      if(d.speed.constructor == String) {
        d.speed = b.fx.speeds[d.speed] || parseInt(d.speed)
      }
      for(d.sync || (d.speed /= 2);d.timeout - d.speed < 250;) {
        d.timeout += d.speed
      }
    }
    if(d.easing) {
      d.easeIn = d.easeOut = d.easing
    }
    if(!d.speedIn) {
      d.speedIn = d.speed
    }
    if(!d.speedOut) {
      d.speedOut = d.speed
    }
    d.slideCount = g.length;
    d.currSlide = d.lastSlide = q;
    if(d.random) {
      d.nextSlide = d.currSlide;
      if(++d.randomIndex == g.length) {
        d.randomIndex = 0
      }
      d.nextSlide = d.randomMap[d.randomIndex]
    }else {
      d.nextSlide = d.startingSlide >= g.length - 1 ? 0 : d.startingSlide + 1
    }
    if(!d.multiFx) {
      o = b.fn.cycle.transitions[d.fx];
      if(b.isFunction(o)) {
        o(a, c, d)
      }else {
        if(d.fx != "custom" && !d.multiFx) {
          m("unknown transition: " + d.fx, "; slideshow terminating");
          return false
        }
      }
    }
    a = c[q];
    d.before.length && d.before[0].apply(a, [a, a, d, true]);
    d.after.length > 1 && d.after[1].apply(a, [a, a, d, true]);
    d.next && b(d.next).bind(d.prevNextEvent, function() {
      return s(d, d.rev ? -1 : 1)
    });
    d.prev && b(d.prev).bind(d.prevNextEvent, function() {
      return s(d, d.rev ? 1 : -1)
    });
    d.pager && v(g, d);
    t(d, g);
    return d
  }
  function f(a) {
    a.original = {before:[], after:[]};
    a.original.cssBefore = b.extend({}, a.cssBefore);
    a.original.cssAfter = b.extend({}, a.cssAfter);
    a.original.animIn = b.extend({}, a.animIn);
    a.original.animOut = b.extend({}, a.animOut);
    b.each(a.before, function() {
      a.original.before.push(this)
    });
    b.each(a.after, function() {
      a.original.after.push(this)
    })
  }
  function n(a) {
    var c, g, j = b.fn.cycle.transitions;
    if(a.fx.indexOf(",") > 0) {
      a.multiFx = true;
      a.fxs = a.fx.replace(/\s*/g, "").split(",");
      for(c = 0;c < a.fxs.length;c++) {
        var l = a.fxs[c];
        g = j[l];
        if(!g || !j.hasOwnProperty(l) || !b.isFunction(g)) {
          m("discarding unknown transition: ", l);
          a.fxs.splice(c, 1);
          c--
        }
      }
      if(!a.fxs.length) {
        m("No valid transitions named; slideshow terminating.");
        return false
      }
    }else {
      if(a.fx == "all") {
        a.multiFx = true;
        a.fxs = [];
        for(p in j) {
          g = j[p];
          j.hasOwnProperty(p) && b.isFunction(g) && a.fxs.push(p)
        }
      }
    }
    if(a.multiFx && a.randomizeEffects) {
      g = Math.floor(Math.random() * 20) + 30;
      for(c = 0;c < g;c++) {
        a.fxs.push(a.fxs.splice(Math.floor(Math.random() * a.fxs.length), 1)[0])
      }
      h("randomized fx sequence: ", a.fxs)
    }
    return true
  }
  function t(a, c) {
    a.addSlide = function(g, j) {
      var l = b(g), d = l[0];
      a.autostopCount || a.countdown++;
      c[j ? "unshift" : "push"](d);
      if(a.els) {
        a.els[j ? "unshift" : "push"](d)
      }
      a.slideCount = c.length;
      l.css("position", "absolute");
      l[j ? "prependTo" : "appendTo"](a.$cont);
      if(j) {
        a.currSlide++;
        a.nextSlide++
      }
      !b.support.opacity && a.cleartype && !a.cleartypeNoBg && x(l);
      a.fit && a.width && l.width(a.width);
      a.fit && a.height && a.height != "auto" && $slides.height(a.height);
      d.cycleH = a.fit && a.height ? a.height : l.height();
      d.cycleW = a.fit && a.width ? a.width : l.width();
      l.css(a.cssBefore);
      a.pager && b.fn.cycle.createPagerAnchor(c.length - 1, d, b(a.pager), c, a);
      b.isFunction(a.onAddSlide) ? a.onAddSlide(l) : l.hide()
    }
  }
  function r(a, c, g, j) {
    if(g && c.busy && c.manualTrump) {
      b(a).stop(true, true);
      c.busy = false
    }
    if(!c.busy) {
      var l = c.$cont[0], d = a[c.currSlide], o = a[c.nextSlide];
      if(!(l.cycleStop != c.stopCount || l.cycleTimeout === 0 && !g)) {
        if(!g && !l.cyclePause && (c.autostop && --c.countdown <= 0 || c.nowrap && !c.random && c.nextSlide < c.currSlide)) {
          c.end && c.end(c)
        }else {
          if(g || !l.cyclePause) {
            var q = c.fx;
            d.cycleH = d.cycleH || b(d).height();
            d.cycleW = d.cycleW || b(d).width();
            o.cycleH = o.cycleH || b(o).height();
            o.cycleW = o.cycleW || b(o).width();
            if(c.multiFx) {
              if(c.lastFx == undefined || ++c.lastFx >= c.fxs.length) {
                c.lastFx = 0
              }
              q = c.fxs[c.lastFx];
              c.currFx = q
            }
            if(c.oneTimeFx) {
              q = c.oneTimeFx;
              c.oneTimeFx = null
            }
            b.fn.cycle.resetState(c, q);
            c.before.length && b.each(c.before, function(w, A) {
              l.cycleStop == c.stopCount && A.apply(o, [d, o, c, j])
            });
            q = function() {
              b.each(c.after, function(w, A) {
                l.cycleStop == c.stopCount && A.apply(o, [d, o, c, j])
              })
            };
            if(c.nextSlide != c.currSlide) {
              c.busy = 1;
              if(c.fxFn) {
                c.fxFn(d, o, c, q, j)
              }else {
                b.isFunction(b.fn.cycle[c.fx]) ? b.fn.cycle[c.fx](d, o, c, q) : b.fn.cycle.custom(d, o, c, q, g && c.fastOnEvent)
              }
            }
            c.lastSlide = c.currSlide;
            if(c.random) {
              c.currSlide = c.nextSlide;
              if(++c.randomIndex == a.length) {
                c.randomIndex = 0
              }
              c.nextSlide = c.randomMap[c.randomIndex]
            }else {
              g = c.nextSlide + 1 == a.length;
              c.nextSlide = g ? 0 : c.nextSlide + 1;
              c.currSlide = g ? a.length - 1 : c.nextSlide - 1
            }
            c.pager && b.fn.cycle.updateActivePagerLink(c.pager, c.currSlide)
          }
          g = 0;
          if(c.timeout && !c.continuous) {
            g = u(d, o, c, j)
          }else {
            if(c.continuous && l.cyclePause) {
              g = 10
            }
          }
          if(g > 0) {
            l.cycleTimeout = setTimeout(function() {
              r(a, c, 0, !c.rev)
            }, g)
          }
        }
      }
    }
  }
  function u(a, c, g, j) {
    if(g.timeoutFn) {
      for(a = g.timeoutFn(a, c, g, j);a - g.speed < 250;) {
        a += g.speed
      }
      h("calculated timeout: " + a + "; speed: " + g.speed);
      if(a !== false) {
        return a
      }
    }
    return g.timeout
  }
  function s(a, c) {
    var g = a.elements, j = a.$cont[0], l = j.cycleTimeout;
    if(l) {
      clearTimeout(l);
      j.cycleTimeout = 0
    }
    if(a.random && c < 0) {
      a.randomIndex--;
      if(--a.randomIndex == -2) {
        a.randomIndex = g.length - 2
      }else {
        if(a.randomIndex == -1) {
          a.randomIndex = g.length - 1
        }
      }
      a.nextSlide = a.randomMap[a.randomIndex]
    }else {
      if(a.random) {
        if(++a.randomIndex == g.length) {
          a.randomIndex = 0
        }
        a.nextSlide = a.randomMap[a.randomIndex]
      }else {
        a.nextSlide = a.currSlide + c;
        if(a.nextSlide < 0) {
          if(a.nowrap) {
            return false
          }
          a.nextSlide = g.length - 1
        }else {
          if(a.nextSlide >= g.length) {
            if(a.nowrap) {
              return false
            }
            a.nextSlide = 0
          }
        }
      }
    }
    b.isFunction(a.prevNextClick) && a.prevNextClick(c > 0, a.nextSlide, g[a.nextSlide]);
    r(g, a, 1, c >= 0);
    return false
  }
  function v(a, c) {
    var g = b(c.pager);
    b.each(a, function(j, l) {
      b.fn.cycle.createPagerAnchor(j, l, g, a, c)
    });
    b.fn.cycle.updateActivePagerLink(c.pager, c.startingSlide)
  }
  function x(a) {
    function c(j) {
      j = parseInt(j).toString(16);
      return j.length < 2 ? "0" + j : j
    }
    function g(j) {
      for(;j && j.nodeName.toLowerCase() != "html";j = j.parentNode) {
        var l = b.css(j, "background-color");
        if(l.indexOf("rgb") >= 0) {
          j = l.match(/\d+/g);
          return"#" + c(j[0]) + c(j[1]) + c(j[2])
        }
        if(l && l != "transparent") {
          return l
        }
      }
      return"#ffffff"
    }
    a.each(function() {
      b(this).css("background-color", g(this))
    })
  }
  if(b.support == undefined) {
    b.support = {opacity:!b.browser.msie}
  }
  b.fn.cycle = function(a, c) {
    var g = {s:this.selector, c:this.context};
    if(this.length === 0 && a != "stop") {
      if(!b.isReady && g.s) {
        m("DOM not ready, queuing slideshow");
        b(function() {
          b(g.s, g.c).cycle(a, c)
        });
        return this
      }
      m("terminating; zero elements found by selector" + (b.isReady ? "" : " (DOM not ready)"));
      return this
    }
    return this.each(function() {
      var j = e(this, a, c);
      if(j !== false) {
        this.cycleTimeout && clearTimeout(this.cycleTimeout);
        this.cycleTimeout = this.cyclePause = 0;
        var l = b(this), d = j.slideExpr ? b(j.slideExpr, this) : l.children(), o = d.get();
        if(o.length < 2) {
          m("terminating; too few slides: " + o.length)
        }else {
          var q = i(l, d, o, j, g);
          if(q !== false) {
            if(j = q.continuous ? 10 : u(q.currSlide, q.nextSlide, q, !q.rev)) {
              j += q.delay || 0;
              if(j < 10) {
                j = 10
              }
              h("first timeout: " + j);
              this.cycleTimeout = setTimeout(function() {
                r(o, q, 0, !q.rev)
              }, j)
            }
          }
        }
      }
    })
  };
  b.fn.cycle.resetState = function(a, c) {
    c = c || a.fx;
    a.before = [];
    a.after = [];
    a.cssBefore = b.extend({}, a.original.cssBefore);
    a.cssAfter = b.extend({}, a.original.cssAfter);
    a.animIn = b.extend({}, a.original.animIn);
    a.animOut = b.extend({}, a.original.animOut);
    a.fxFn = null;
    b.each(a.original.before, function() {
      a.before.push(this)
    });
    b.each(a.original.after, function() {
      a.after.push(this)
    });
    var g = b.fn.cycle.transitions[c];
    b.isFunction(g) && g(a.$cont, b(a.elements), a)
  };
  b.fn.cycle.updateActivePagerLink = function(a, c) {
    b(a).find("a").removeClass("activeSlide").filter("a:eq(" + c + ")").addClass("activeSlide")
  };
  b.fn.cycle.next = function(a) {
    s(a, a.rev ? -1 : 1)
  };
  b.fn.cycle.prev = function(a) {
    s(a, a.rev ? 1 : -1)
  };
  b.fn.cycle.createPagerAnchor = function(a, c, g, j, l) {
    if(c = b.isFunction(l.pagerAnchorBuilder) ? l.pagerAnchorBuilder(a, c) : '<a href="#">' + (a + 1) + "</a>") {
      var d = b(c);
      if(d.parents("body").length === 0) {
        var o = [];
        if(g.length > 1) {
          g.each(function() {
            var q = d.clone(true);
            b(this).append(q);
            o.push(q)
          });
          d = b(o)
        }else {
          d.appendTo(g)
        }
      }
      d.bind(l.pagerEvent, function(q) {
        q.preventDefault();
        l.nextSlide = a;
        q = l.$cont[0];
        var w = q.cycleTimeout;
        if(w) {
          clearTimeout(w);
          q.cycleTimeout = 0
        }
        b.isFunction(l.pagerClick) && l.pagerClick(l.nextSlide, j[l.nextSlide]);
        r(j, l, 1, l.currSlide < a);
        return false
      });
      l.pagerEvent != "click" && d.click(function() {
        return false
      });
      l.pauseOnPagerHover && d.hover(function() {
        l.$cont[0].cyclePause++
      }, function() {
        l.$cont[0].cyclePause--
      })
    }
  };
  b.fn.cycle.hopsFromLast = function(a, c) {
    var g = a.lastSlide, j = a.currSlide;
    return c ? j > g ? j - g : a.slideCount - g : j < g ? g - j : g + a.slideCount - j
  };
  b.fn.cycle.commonReset = function(a, c, g, j, l, d) {
    b(g.elements).not(a).hide();
    g.cssBefore.opacity = 1;
    g.cssBefore.display = "block";
    if(j !== false && c.cycleW > 0) {
      g.cssBefore.width = c.cycleW
    }
    if(l !== false && c.cycleH > 0) {
      g.cssBefore.height = c.cycleH
    }
    g.cssAfter = g.cssAfter || {};
    g.cssAfter.display = "none";
    b(a).css("zIndex", g.slideCount + (d === true ? 1 : 0));
    b(c).css("zIndex", g.slideCount + (d === true ? 0 : 1))
  };
  b.fn.cycle.custom = function(a, c, g, j, l) {
    var d = b(a), o = b(c), q = g.speedIn;
    a = g.speedOut;
    var w = g.easeIn;
    c = g.easeOut;
    o.css(g.cssBefore);
    if(l) {
      q = typeof l == "number" ? a = l : a = 1;
      w = c = null
    }
    d.animate(g.animOut, a, c, function() {
      g.cssAfter && d.css(g.cssAfter);
      g.sync || o.animate(g.animIn, q, w, j)
    });
    g.sync && o.animate(g.animIn, q, w, j)
  };
  b.fn.cycle.transitions = {fade:function(a, c, g) {
    c.not(":eq(" + g.currSlide + ")").css("opacity", 0);
    g.before.push(function(j, l, d) {
      b.fn.cycle.commonReset(j, l, d);
      d.cssBefore.opacity = 0
    });
    g.animIn = {opacity:1};
    g.animOut = {opacity:0};
    g.cssBefore = {top:0, left:0}
  }};
  b.fn.cycle.ver = function() {
    return"2.72"
  };
  b.fn.cycle.defaults = {fx:"fade", timeout:4E3, timeoutFn:null, continuous:0, speed:1E3, speedIn:null, speedOut:null, next:null, prev:null, prevNextClick:null, prevNextEvent:"click", 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:!b.support.opacity, cleartypeNoBg:false, nowrap:0, fastOnEvent:0, randomizeEffects:1, rev:0, manualTrump:true, requeueOnImageNotLoaded:true, requeueTimeout:250}
})(jQuery);
(function(b) {
  b.fn.cycle.transitions.none = function(h, m, e) {
    e.fxFn = function(k, i, f, n) {
      b(i).show();
      b(k).hide();
      n()
    }
  };
  b.fn.cycle.transitions.scrollUp = function(h, m, e) {
    h.css("overflow", "hidden");
    e.before.push(b.fn.cycle.commonReset);
    h = h.height();
    e.cssBefore = {top:h, left:0};
    e.cssFirst = {top:0};
    e.animIn = {top:0};
    e.animOut = {top:-h}
  };
  b.fn.cycle.transitions.scrollDown = function(h, m, e) {
    h.css("overflow", "hidden");
    e.before.push(b.fn.cycle.commonReset);
    h = h.height();
    e.cssFirst = {top:0};
    e.cssBefore = {top:-h, left:0};
    e.animIn = {top:0};
    e.animOut = {top:h}
  };
  b.fn.cycle.transitions.scrollLeft = function(h, m, e) {
    h.css("overflow", "hidden");
    e.before.push(b.fn.cycle.commonReset);
    h = h.width();
    e.cssFirst = {left:0};
    e.cssBefore = {left:h, top:0};
    e.animIn = {left:0};
    e.animOut = {left:0 - h}
  };
  b.fn.cycle.transitions.scrollRight = function(h, m, e) {
    h.css("overflow", "hidden");
    e.before.push(b.fn.cycle.commonReset);
    h = h.width();
    e.cssFirst = {left:0};
    e.cssBefore = {left:-h, top:0};
    e.animIn = {left:0};
    e.animOut = {left:h}
  };
  b.fn.cycle.transitions.scrollHorz = function(h, m, e) {
    h.css("overflow", "hidden").width();
    e.before.push(function(k, i, f, n) {
      b.fn.cycle.commonReset(k, i, f);
      f.cssBefore.left = n ? i.cycleW - 1 : 1 - i.cycleW;
      f.animOut.left = n ? -k.cycleW : k.cycleW
    });
    e.cssFirst = {left:0};
    e.cssBefore = {top:0};
    e.animIn = {left:0};
    e.animOut = {top:0}
  };
  b.fn.cycle.transitions.scrollVert = function(h, m, e) {
    h.css("overflow", "hidden");
    e.before.push(function(k, i, f, n) {
      b.fn.cycle.commonReset(k, i, f);
      f.cssBefore.top = n ? 1 - i.cycleH : i.cycleH - 1;
      f.animOut.top = n ? k.cycleH : -k.cycleH
    });
    e.cssFirst = {top:0};
    e.cssBefore = {left:0};
    e.animIn = {top:0};
    e.animOut = {left:0}
  };
  b.fn.cycle.transitions.slideX = function(h, m, e) {
    e.before.push(function(k, i, f) {
      b(f.elements).not(k).hide();
      b.fn.cycle.commonReset(k, i, f, false, true);
      f.animIn.width = i.cycleW
    });
    e.cssBefore = {left:0, top:0, width:0};
    e.animIn = {width:"show"};
    e.animOut = {width:0}
  };
  b.fn.cycle.transitions.slideY = function(h, m, e) {
    e.before.push(function(k, i, f) {
      b(f.elements).not(k).hide();
      b.fn.cycle.commonReset(k, i, f, true, false);
      f.animIn.height = i.cycleH
    });
    e.cssBefore = {left:0, top:0, height:0};
    e.animIn = {height:"show"};
    e.animOut = {height:0}
  };
  b.fn.cycle.transitions.shuffle = function(h, m, e) {
    h = h.css("overflow", "visible").width();
    m.css({left:0, top:0});
    e.before.push(function(k, i, f) {
      b.fn.cycle.commonReset(k, i, f, true, true, true)
    });
    if(!e.speedAdjusted) {
      e.speed /= 2;
      e.speedAdjusted = true
    }
    e.random = 0;
    e.shuffle = e.shuffle || {left:-h, top:15};
    e.els = [];
    for(h = 0;h < m.length;h++) {
      e.els.push(m[h])
    }
    for(h = 0;h < e.currSlide;h++) {
      e.els.push(e.els.shift())
    }
    e.fxFn = function(k, i, f, n, t) {
      var r = t ? b(k) : b(i);
      b(i).css(f.cssBefore);
      var u = f.slideCount;
      r.animate(f.shuffle, f.speedIn, f.easeIn, function() {
        for(var s = b.fn.cycle.hopsFromLast(f, t), v = 0;v < s;v++) {
          t ? f.els.push(f.els.shift()) : f.els.unshift(f.els.pop())
        }
        if(t) {
          s = 0;
          for(v = f.els.length;s < v;s++) {
            b(f.els[s]).css("z-index", v - s + u)
          }
        }else {
          s = b(k).css("z-index");
          r.css("z-index", parseInt(s) + 1 + u)
        }
        r.animate({left:0, top:0}, f.speedOut, f.easeOut, function() {
          b(t ? this : k).hide();
          n && n()
        })
      })
    };
    e.cssBefore = {display:"block", opacity:1, top:0, left:0}
  };
  b.fn.cycle.transitions.turnUp = function(h, m, e) {
    e.before.push(function(k, i, f) {
      b.fn.cycle.commonReset(k, i, f, true, false);
      f.cssBefore.top = i.cycleH;
      f.animIn.height = i.cycleH
    });
    e.cssFirst = {top:0};
    e.cssBefore = {left:0, height:0};
    e.animIn = {top:0};
    e.animOut = {height:0}
  };
  b.fn.cycle.transitions.turnDown = function(h, m, e) {
    e.before.push(function(k, i, f) {
      b.fn.cycle.commonReset(k, i, f, true, false);
      f.animIn.height = i.cycleH;
      f.animOut.top = k.cycleH
    });
    e.cssFirst = {top:0};
    e.cssBefore = {left:0, top:0, height:0};
    e.animOut = {height:0}
  };
  b.fn.cycle.transitions.turnLeft = function(h, m, e) {
    e.before.push(function(k, i, f) {
      b.fn.cycle.commonReset(k, i, f, false, true);
      f.cssBefore.left = i.cycleW;
      f.animIn.width = i.cycleW
    });
    e.cssBefore = {top:0, width:0};
    e.animIn = {left:0};
    e.animOut = {width:0}
  };
  b.fn.cycle.transitions.turnRight = function(h, m, e) {
    e.before.push(function(k, i, f) {
      b.fn.cycle.commonReset(k, i, f, false, true);
      f.animIn.width = i.cycleW;
      f.animOut.left = k.cycleW
    });
    e.cssBefore = {top:0, left:0, width:0};
    e.animIn = {left:0};
    e.animOut = {width:0}
  };
  b.fn.cycle.transitions.zoom = function(h, m, e) {
    e.before.push(function(k, i, f) {
      b.fn.cycle.commonReset(k, i, f, false, false, true);
      f.cssBefore.top = i.cycleH / 2;
      f.cssBefore.left = i.cycleW / 2;
      f.animIn = {top:0, left:0, width:i.cycleW, height:i.cycleH};
      f.animOut = {width:0, height:0, top:k.cycleH / 2, left:k.cycleW / 2}
    });
    e.cssFirst = {top:0, left:0};
    e.cssBefore = {width:0, height:0}
  };
  b.fn.cycle.transitions.fadeZoom = function(h, m, e) {
    e.before.push(function(k, i, f) {
      b.fn.cycle.commonReset(k, i, f, false, false);
      f.cssBefore.left = i.cycleW / 2;
      f.cssBefore.top = i.cycleH / 2;
      f.animIn = {top:0, left:0, width:i.cycleW, height:i.cycleH}
    });
    e.cssBefore = {width:0, height:0};
    e.animOut = {opacity:0}
  };
  b.fn.cycle.transitions.blindX = function(h, m, e) {
    h = h.css("overflow", "hidden").width();
    e.before.push(function(k, i, f) {
      b.fn.cycle.commonReset(k, i, f);
      f.animIn.width = i.cycleW;
      f.animOut.left = k.cycleW
    });
    e.cssBefore = {left:h, top:0};
    e.animIn = {left:0};
    e.animOut = {left:h}
  };
  b.fn.cycle.transitions.blindY = function(h, m, e) {
    h = h.css("overflow", "hidden").height();
    e.before.push(function(k, i, f) {
      b.fn.cycle.commonReset(k, i, f);
      f.animIn.height = i.cycleH;
      f.animOut.top = k.cycleH
    });
    e.cssBefore = {top:h, left:0};
    e.animIn = {top:0};
    e.animOut = {top:h}
  };
  b.fn.cycle.transitions.blindZ = function(h, m, e) {
    m = h.css("overflow", "hidden").height();
    h = h.width();
    e.before.push(function(k, i, f) {
      b.fn.cycle.commonReset(k, i, f);
      f.animIn.height = i.cycleH;
      f.animOut.top = k.cycleH
    });
    e.cssBefore = {top:m, left:h};
    e.animIn = {top:0, left:0};
    e.animOut = {top:m, left:h}
  };
  b.fn.cycle.transitions.growX = function(h, m, e) {
    e.before.push(function(k, i, f) {
      b.fn.cycle.commonReset(k, i, f, false, true);
      f.cssBefore.left = this.cycleW / 2;
      f.animIn = {left:0, width:this.cycleW};
      f.animOut = {left:0}
    });
    e.cssBefore = {width:0, top:0}
  };
  b.fn.cycle.transitions.growY = function(h, m, e) {
    e.before.push(function(k, i, f) {
      b.fn.cycle.commonReset(k, i, f, true, false);
      f.cssBefore.top = this.cycleH / 2;
      f.animIn = {top:0, height:this.cycleH};
      f.animOut = {top:0}
    });
    e.cssBefore = {height:0, left:0}
  };
  b.fn.cycle.transitions.curtainX = function(h, m, e) {
    e.before.push(function(k, i, f) {
      b.fn.cycle.commonReset(k, i, f, false, true, true);
      f.cssBefore.left = i.cycleW / 2;
      f.animIn = {left:0, width:this.cycleW};
      f.animOut = {left:k.cycleW / 2, width:0}
    });
    e.cssBefore = {top:0, width:0}
  };
  b.fn.cycle.transitions.curtainY = function(h, m, e) {
    e.before.push(function(k, i, f) {
      b.fn.cycle.commonReset(k, i, f, true, false, true);
      f.cssBefore.top = i.cycleH / 2;
      f.animIn = {top:0, height:i.cycleH};
      f.animOut = {top:k.cycleH / 2, height:0}
    });
    e.cssBefore = {left:0, height:0}
  };
  b.fn.cycle.transitions.cover = function(h, m, e) {
    var k = e.direction || "left", i = h.css("overflow", "hidden").width(), f = h.height();
    e.before.push(function(n, t, r) {
      b.fn.cycle.commonReset(n, t, r);
      if(k == "right") {
        r.cssBefore.left = -i
      }else {
        if(k == "up") {
          r.cssBefore.top = f
        }else {
          if(k == "down") {
            r.cssBefore.top = -f
          }else {
            r.cssBefore.left = i
          }
        }
      }
    });
    e.animIn = {left:0, top:0};
    e.animOut = {opacity:1};
    e.cssBefore = {top:0, left:0}
  };
  b.fn.cycle.transitions.uncover = function(h, m, e) {
    var k = e.direction || "left", i = h.css("overflow", "hidden").width(), f = h.height();
    e.before.push(function(n, t, r) {
      b.fn.cycle.commonReset(n, t, r, true, true, true);
      if(k == "right") {
        r.animOut.left = i
      }else {
        if(k == "up") {
          r.animOut.top = -f
        }else {
          if(k == "down") {
            r.animOut.top = f
          }else {
            r.animOut.left = -i
          }
        }
      }
    });
    e.animIn = {left:0, top:0};
    e.animOut = {opacity:1};
    e.cssBefore = {top:0, left:0}
  };
  b.fn.cycle.transitions.toss = function(h, m, e) {
    var k = h.css("overflow", "visible").width(), i = h.height();
    e.before.push(function(f, n, t) {
      b.fn.cycle.commonReset(f, n, t, true, true, true);
      if(!t.animOut.left && !t.animOut.top) {
        t.animOut = {left:k * 2, top:-i / 2, opacity:0}
      }else {
        t.animOut.opacity = 0
      }
    });
    e.cssBefore = {left:0, top:0};
    e.animIn = {left:0}
  };
  b.fn.cycle.transitions.wipe = function(h, m, e) {
    var k = h.css("overflow", "hidden").width(), i = h.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 " + k + "px " + i + "px " + k + "px)"
        }else {
          if(/t2b/.test(e.clip)) {
            f = "rect(0px " + k + "px 0px 0px)"
          }else {
            if(/b2t/.test(e.clip)) {
              f = "rect(" + i + "px " + k + "px " + i + "px 0px)"
            }else {
              if(/zoom/.test(e.clip)) {
                h = parseInt(i / 2);
                m = parseInt(k / 2);
                f = "rect(" + h + "px " + m + "px " + h + "px " + m + "px)"
              }
            }
          }
        }
      }
    }
    e.cssBefore.clip = e.cssBefore.clip || f || "rect(0px 0px 0px 0px)";
    h = e.cssBefore.clip.match(/(\d+)/g);
    var n = parseInt(h[0]), t = parseInt(h[1]), r = parseInt(h[2]), u = parseInt(h[3]);
    e.before.push(function(s, v, x) {
      if(s != v) {
        var a = b(s), c = b(v);
        b.fn.cycle.commonReset(s, v, x, true, true, false);
        x.cssAfter.display = "block";
        var g = 1, j = parseInt(x.speedIn / 13) - 1;
        (function l() {
          var d = n ? n - parseInt(g * (n / j)) : 0, o = u ? u - parseInt(g * (u / j)) : 0, q = r < i ? r + parseInt(g * ((i - r) / j || 1)) : i, w = t < k ? t + parseInt(g * ((k - t) / j || 1)) : k;
          c.css({clip:"rect(" + d + "px " + w + "px " + q + "px " + o + "px)"});
          g++ <= j ? setTimeout(l, 13) : a.css("display", "none")
        })()
      }
    });
    e.cssBefore = {display:"block", opacity:1, top:0, left:0};
    e.animIn = {left:0};
    e.animOut = {left:0}
  }
})(jQuery);
(function(b) {
  b.fn.expander = function(h) {
    function m(f) {
      f.hide().prev("span.read-more").show()
    }
    function e(f, n) {
      if(f.collapseTimer) {
        i = setTimeout(function() {
          m(n);
          f.onCollapse(n.parent(), false)
        }, f.collapseTimer)
      }
    }
    var k = b.extend({}, b.fn.expander.defaults, h), i;
    return this.each(function() {
      var f = b(this), n = b.meta ? b.extend({}, k, f.data()) : k, t, r, u;
      u = f.html();
      var s = u.slice(0, n.slicePoint).replace(/\w+$/, "");
      if(r = s.match(/<\w[^>]*>/g)) {
        s = u.slice(0, n.slicePoint + r.join("").length).replace(/\w+$/, "")
      }
      if(s.lastIndexOf("<") > s.lastIndexOf(">")) {
        s = s.slice(0, s.lastIndexOf("<"))
      }
      var v = u.slice(s.length);
      if(!b("span.details", this).length) {
        if(v.replace(/\s+$/, "").split(" ").length < n.widow) {
          return
        }
        if(v.indexOf("</") > -1) {
          u = v.match(/<(\/)?[^>]*>/g);
          for(var x = 0;x < u.length;x++) {
            if(u[x].indexOf("</") > -1) {
              for(var a, c = false, g = 0;g < x;g++) {
                a = u[g].slice(0, u[g].indexOf(" ")).replace(/(\w)$/, "$1>");
                if(a == u[x].replace(/\//, "")) {
                  c = true
                }
              }
              if(!c) {
                s += u[x];
                a = false;
                for(c = r.length - 1;c >= 0;c--) {
                  if(r[c].slice(0, r[c].indexOf(" ")).replace(/(\w)$/, "$1>") == u[x].replace(/\//, "") && a == false) {
                    t = t ? r[c] + t : r[c];
                    a = true
                  }
                }
              }
            }
          }
          v = t && t + v || v
        }
        f.html([s, '<span class="read-more">', n.expandPrefix, '<a href="#">', n.expandText, '</a></span><span class="details">', v, "</span>"].join(""))
      }
      var j = b("span.details", this), l = b("span.read-more", this);
      j.hide();
      l.find("a").click(function() {
        l.hide();
        if(n.expandEffect === "show" && !n.expandSpeed) {
          n.beforeExpand(f);
          j.show();
          n.afterExpand(f);
          e(n, j)
        }else {
          n.beforeExpand(f);
          j[n.expandEffect](n.expandSpeed, function() {
            j.css({zoom:""});
            n.afterExpand(f);
            e(n, j)
          })
        }
        return false
      });
      if(n.userCollapse) {
        f.find("span.details").append('<span class="re-collapse">' + n.userCollapsePrefix + '<a href="#">' + n.userCollapseText + "</a></span>");
        f.find("span.re-collapse a").click(function() {
          clearTimeout(i);
          var d = b(this).parents("span.details");
          m(d);
          n.onCollapse(f, true);
          return false
        })
      }
    })
  };
  b.fn.expander.defaults = {slicePoint:170, widow:4, expandText:"weiterlesen", expandPrefix:"&hellip; ", collapseTimer:0, expandEffect:"fadeIn", expandSpeed:"", userCollapse:true, userCollapseText:"[zuklappen]", userCollapsePrefix:" ", beforeExpand:function() {
  }, afterExpand:function() {
  }, onCollapse:function() {
  }}
})(jQuery);

function createTicker(){
	//set the quotes array
	tickerItems = new Array(
	'Blog Eintrag: <a href="http://blog.webconsult2.com/2011/06/30/die-osterreichische-handelspolitik-unter-beobachtung/" target="_blank">"Die &ouml;sterreichische Handelspolitik unter..."</a>',    
	'Blog Eintrag: <a href="http://blog.webconsult2.com/2011/06/30/das-produkt-richtig-zu-positionieren-ist-der-schlussel-zum-erfolg/" target="_blank">"Das Produkt richtig zu positionieren – ist..."</a>',    
    'Blog Eintrag: <a href="http://blog.webconsult2.com/2011/05/11/trend-marketing/" target="_blank">"Trend Marketing"</a>',
	'Blog Eintrag: <a href="http://blog.webconsult2.com/2011/04/28/marketing-channel-design/" target="_blank">"Marketing Channel Design"</a>',
	'Blog Eintrag: <a href="http://blog.webconsult2.com/2010/10/18/social-media-mit-hintergedanken/" target="_blank">"Social Media mit Hintergedanken"</a>',
	'Blog Eintrag: <a href="http://blog.webconsult2.com/2010/10/06/willkommen-im-mobile-club-der-zukunft/" target="_blank">"Willkommen im Mobile Club der Zukunft"</a>',
	'Blog Eintrag: <a href="http://blog.webconsult2.com/2010/10/02/trend-zum-video/" target="_blank">"Trend zum Video"</a>'
	);
	i = 0;
	tickerIt();
}

function tickerIt(){
	if( i == tickerItems.length ){
		i = 0;
	}
	//change without effect
	//$('#ticker').html(tickerItems[i]);

	//change with effect
	jQuery('#ticker').fadeOut("slow", function(){
		jQuery(this).html(tickerItems[i]).fadeIn("slow");
		i++;
	});
	
	//repeat - change 5000 - time interval
	setTimeout("tickerIt()", 8000);
}

jQuery(document).ready(function() {

createTicker();
  jQuery("div.expandable p").expander();
  if(jQuery("meta[name=disable_cufon]").attr("content") != "true") {
    Cufon.replace("h1,h2,h3,h4,h5,#blurb,#site_name,#intro_blurb_title,", {hover:"true"});
    navigator.userAgent.toLowerCase();
    if(jQuery.browser.msie) {
      var b = jQuery.browser.version.substring(0, 1);
      if(b == 7) {
        jQuery("#intro_blurb_title span").css({paddingTop:"8px"});
        jQuery(".dropcap1").css({paddingTop:"0px"})
      }
      b == 6 && jQuery(".last").each(function() {
        jQuery(this).wrap('<div class="ie6_gallery_fix" />');
        jQuery(".dropcap1").css({paddingTop:"0px"})
      })
    }
  }
  jQuery("#slider_img").length && jQuery(function() {
    function h(k, i) {
      if(k < i) {
        jQuery('<span id="img' + (k + 1) + '"></span>').each(function() {
          jQuery(this).appendTo("#image_loader_" + (k + 1) + " a.load_slider_img")
        });
        var f = new Image, n = jQuery("#img" + (k + 1));
        jQuery(f).load(function() {
          jQuery(this).css("display", "none");
          jQuery(this).attr({alt:""});
          jQuery(n).append(this);
          jQuery(this).fadeIn(250, function() {
            jQuery("#image_loader_" + (k + 1)).children().children(".loading_gallery").remove();
            if(k == i - 1) {
              cycleStart();
              if(i == 1) {
                jQuery(".slider_content").css({display:"block"});
                jQuery(".slider_content").css({marginTop:"22px"});
                jQuery("#image_loader_1").hasClass("slider_cropped") && jQuery("#feature").addClass("staged")
              }
            }else {
              h(k + 1, i)
            }
          });
          $startCycle = Math.ceil(i / 2)
        }).error(function() {
          jQuery(n).remove();
          h(k + 1, i)
        }).attr("src", jQuery(m[k]).attr("src"))
      }
    }
    var m = jQuery("div[id^='image_loader_'] span img"), e = m.length;
    jQuery(".rm_portfolio_img").remove();
    e > 0 && h(0, e)
  })
});

