(function(h) {
	h.pixelentity = h.pixelentity || {
		version : "1.0.0"
	};
	h.pixelentity.kenburnsImg = {
		conf : {
			zoom : "random",
			align : "random",
			pan : "random",
			duration : "15",
			paused : false
		}
	};
	var i = {
		width : 0,
		height : 0,
		"margin-left" : 0,
		"margin-top" : 0
	};
	var k = [ "top", "center", "bottom" ];
	var d = [ "left", "center", "right" ];
	var b = false;
	var j = false;
	var e = false;
	var f = h.browser.msie && h.browser.version > 8;
	if (h.browser.msie) {
		b = true;
		e = h.browser.msie
	}
	if (!b && !!document.createElement("canvas").getContext) {
		j = true
	}
	var a = navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad)/);
	if (a) {
		b = true;
		j = false
	}
	function c(r, n, l, q, p, o, m) {
		if (j) {
			if (n) {
				n.drawImage(r[0], o, m, l * p, q * p)
			}
		} else {
			if (b) {
				if (r) {
					r.transform(p, o, m)
				}
			} else {
				i.width = l * p;
				i.height = q * p;
				i["margin-left"] = o;
				i["margin-top"] = m;
				if (r) {
					r.css(i)
				}
			}
		}
	}
	function g(D, z) {
		var F = this;
		var E = D;
		if (j) {
			D.hide()
		}
		var O, s, A, L, o, M, P, G, H, q, N, B, y, C = 500, p = 0, x, l;
		var m, I, K;
		var J = false;
		function n() {
			var t;
			if (p > 0) {
				P = G;
				H = q;
				o = M
			} else {
				t = h.pixelentity.Geom.getScaler(m == "out" ? "fill" : "none",
						K.w, K.h, A, L, O, s);
				P = t.offset.w;
				H = t.offset.h;
				o = t.ratio
			}
			t = h.pixelentity.Geom.getScaler(m == "in" ? "fill" : "none", I.w,
					I.h, A, L, O, s);
			G = t.offset.w;
			q = t.offset.h;
			M = t.ratio;
			N = 0;
			B = 0;
			C = parseFloat(z.duration) * 33;
			y = f ? 20 : 0;
			p++
		}
		function r() {
			return k[parseInt(Math.random() * 2 + 0.5)] + ","
					+ d[parseInt(Math.random() * 2 + 0.5)]
		}
		function v() {
			m = z.zoom == "random" ? (Math.random() > 0.5 ? "out" : "in")
					: z.zoom;
			if (a) {
				m = "none"
			}
			K = h.pixelentity.Geom.splitProps(z.align == "random" ? r()
					: z.align);
			I = h.pixelentity.Geom.splitProps(z.pan == "random" ? r() : z.pan)
		}
		function u() {
			if (J) {
				return
			}
			var t = y / C;
			var R = o + (M - o) * t;
			var Q = P + (G - P) * t;
			var w = H + (q - H) * t;
			c(E, x, O, s, R, Q, w);
			y++;
			if ((y + (f ? 20 : 0)) > C) {
				F.pause()
			}
		}
		h.extend(F, {
			init : function(w) {
				O = D.width() || D[0].width;
				s = D.height() || D[0].height;
				var t = D.parent();
				while (t && !t.width()) {
					t = t.parent()
				}
				A = t ? t.width() : 800;
				L = t ? t.height() : 600;
				E.css("image-rendering", "optimizeQuality").css(
						"-ms-interpolation-mode", "bicubic");
				if (e) {
					E.parent().css("background-color", "black")
				}
				F.start()
			},
			start : function() {
				p = 0;
				v();
				n();
				J = false;
				if (j) {
					if (!x) {
						l = h('<canvas width="' + A + '" height="' + L
								+ '"></canvas>');
						x = l[0];
						E.hide().after(l);
						x = x.getContext("2d");
						x.fillStyle = "rgb(255,255,255)"
					}
				}
				if (z.paused) {
					u();
					J = true
				}
				h.pixelentity.ticker.bind("tick", u)
			},
			stop : function() {
				h.pixelentity.ticker.unbind("tick", u)
			},
			reset : function() {
				J = true;
				p = 0;
				v();
				n();
				J = false
			},
			getTarget : function() {
				if (l) {
					return l
				}
				return E
			},
			pause : function() {
				J = true
			},
			resume : function() {
				J = false
			},
			destroy : function() {
				F.paused = true;
				F.stop();
				F = undefined;
				E.data("peKenburnsImg", undefined)
			}
		});
		if (D.width() == 0 && D[0].width == 0) {
			D.one("load", F.init)
		} else {
			F.init()
		}
	}
	h.fn.peKenburnsImg = function(l) {
		var m = this.data("peKenburnsImg");
		if (m) {
			m.start();
			return m
		}
		l = h.extend(true, {}, h.pixelentity.kenburnsImg.conf, l);
		this.each(function() {
			m = new g(h(this), l);
			h(this).data("peKenburnsImg", m)
		});
		return l.api ? m : this
	}
})(jQuery);
(function(c) {
	c.pixelentity = c.pixelentity || {
		version : "1.0.0"
	};
	c.pixelentity.kenburnsSlider = {
		conf : {
			externalFont : false
		}
	};
	function b(e, i, h, d) {
		var f = (1 << 24) | (parseInt(i) << 16) | (parseInt(h) << 8)
				| parseInt(d);
		return "#" + f.toString(16).substr(1)
	}
	function a(W, aC) {
		var aI = this;
		var ah = W.addClass("peKenBurns").removeClass("peNoJs");
		var al = false;
		if (ah.is("img")) {
			var x = false;
			if (W.parent().is("a")) {
				x = true
			}
			var a3 = '<img src="' + W.attr("src") + '" data-src="'
					+ (W.attr("data-src") || "") + '"/>';
			var i = c('<div class="peKenBurns" data-autopause="none" data-controls="disabled" data-shadow="'
					+ (W.attr("data-shadow") || "disabled")
					+ '" data-logo="disabled"><div class="peKb_slides" ><div class="peKb_active" data-delay="'
					+ (W.attr("data-delay") || "3")
					+ '" data-duration="'
					+ (W.attr("data-duration") || "10")
					+ '">'
					+ a3
					+ (W.attr("alt") ? "<h1>" + W.attr("alt") + "</h1>" : "")
					+ '</div><div data-delay="'
					+ (W.attr("data-delay") || "3")
					+ '" data-duration="'
					+ (W.attr("data-duration") || "15")
					+ '">' + a3 + "</div></div></div>");
			W.replaceWith(i);
			ah = W = i;
			W.data("peKenburnsSlider", this);
			if (x) {
				W.css("cursor", "pointer")
			}
			al = true
		} else {
			W.css({
				"background-color" : "transparent",
				"-moz-border-radius" : "0px",
				"-webkit-border-radius" : "0px",
				"border-radius" : "0px",
				padding : "0px"
			})
		}
		var an = c.pixelentity && c.pixelentity.kenburnsImg
				&& (W.attr("data-mode") != "swipe");
		var E = false;
		var aR = true;
		(function() {
			var h = W.attr("data-autopause");
			if (h) {
				E = h.match(/controls/) != undefined;
				aR = h.match(/image/) != undefined
			}
		})();
		var am = c('<div class="peKb_spinner"></div>');
		var a8 = c('<div class="peKb_videooverlay"></div>');
		var ai = "";
		if (W.attr("data-captions") != "disabled") {
			ai = c('<div class="peKb_caption"></div>')
		}
		var s = false;
		if (W.attr("data-thumb") != "disabled") {
			s = c('<div class="peKb_Thumb"><div>/div>');
			var l = s.find("div");
			var S = s.find("img");
			var ar = false
		}
		var aA = c('<div class="peKb_timer"><div class="peKb_overlay"></div></div>');
		var a2;
		var aB;
		var L;
		var aU;
		var aP = 800;
		var O = 0;
		var p;
		var ab;
		var bc = -1;
		var aH;
		var a6 = [];
		var aZ = false;
		var av = false;
		var T = W.width();
		var Z = W.height();
		var aT = !(c.browser.msie && c.browser.version >= 7 && c.browser.version < 9);
		var r = false;
		var a7 = 0;
		var a0 = -1;
		var V = false;
		var n = false;
		var a5 = false;
		var aQ = false;
		var C = 0;
		var K = false;
		var e = false;
		var aO = false;
		var aa = !(W.attr("data-shadow") == "disabled");
		var Y = !(W.attr("data-controls") == "disabled");
		var y = (W.attr("data-controls") == "inner");
		var j = (W.attr("data-logo") == "enabled");
		var aq = navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad)/);
		if (j) {
			W.css("overflow", "visible")
		}
		if (al && aa) {
			Z -= 36
		}
		if (!al && aa && !Y) {
			Z -= 50
		}
		if (!al && !aa && y) {
			Z += 50
		}
		var I = W.find("div.peKb_slides");
		if (I.length == 0) {
			W.wrapInner('<div class="peKb_slides"></div>');
			I = W.find("div.peKb_slides")
		}
		var aY = parseInt(I.css("padding-left").replace(/px/, "")) || 0;
		var A = "";
		if (Y) {
			A += '<div class="peKb_controls"><div class="peKb_holder"><div class="peKb_mainPanel"><div class="peKb_iebg"><ul class="peKb_slideBtns"><li><a href="#" class="peKb_currentSlide">1</a></li></ul><div class="peKb_arrows"><a class="peKb_prev" href="#">p</a><a class="peKb_next" href="#">n</a></div><span class="peKb_iebgRight"></span></div></div><div class="peKb_videoClose"><a href="#">close</a></div></div></div>'
		}
		if (j) {
			A += '<div class="peKb_logoLabel"><a href="'
					+ (W.attr("data-logo-link") || "#") + '" target="'
					+ (W.attr("data-logo-target") || "_self")
					+ '" >logo</a></div>'
		}
		if (aa) {
			A += '<div class="peKb_shadow"><div class="peKb_left"></div><div class="peKb_middle"></div><div class="peKb_right"></div></div>'
		}
		var f = A ? c(A) : false;
		var D = 0;
		if (f) {
			if (c.browser.msie) {
				var u = "";
				if (c.browser.version < 10) {
					W.wrap('<div class="ie' + Math.floor(c.browser.version)
							+ '"></div>')
				}
			}
			I.after(f);
			if (y) {
				var ay = f.filter(".peKb_controls");
				f.addClass("peKb_controlsInner");
				D = f.height();
				ay.css("margin-top", -D - aY + 10 + (aq ? 1 : 0))
			} else {
				if (aY != 15) {
					f.filter(".peKb_controls").css("margin-top", -(aY + 1))
				}
			}
			if (aa) {
				var aL = f.filter(".peKb_shadow").css("z-index", "0");
				I.before(aL)
			}
		}
		if (Y) {
			I.before(aA.hide());
			aU = aA.css("color").replace(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/g, b);
			var Q = aA.find(".peKb_overlay");
			L = Q.width();
			if (document.createElement("canvas").getContext) {
				a2 = c('<canvas width="' + L + '" height="' + L + '"></canvas>');
				Q.after(a2);
				a2 = a2[0].getContext("2d")
			} else {
				aB = c('<div class="peKb_sprite"></div>');
				aA.find(".peKb_overlay").after(aB)
			}
			f.find(".peKb_prev, .peKb_next").click(X).end();
			D = f.height();
			var B = f.find("ul.peKb_slideBtns").empty();
			var aE = f.find(".peKb_videoClose");
			var H = f.find(".peKb_mainPanel");
			var af = (c.browser.msie && c.browser.version >= 8 && c.browser.version < 9) ? "top"
					: "margin-top";
			aE.find("a").click(q).end();
			if (y) {
				aE.fadeOut(0)
			} else {
				aE.css(af, -D)
			}
		}
		var a1 = T - 2 * aY;
		var a9 = Z - 2 * aY - D;
		if (aa) {
			var d = W.find(".peKb_shadow");
			d.width(T).find(".peKb_middle").width(
					T - d.find(".peKb_left").width()
							- d.find(".peKb_right").width())
		}
		W.append(s);
		if (s) {
			var ag = W.offset();
			ag.top = ag.top + a9 + aY - s.height() + 13;
			if (y) {
				ag.top -= D - 10
			}
			s.data("top", ag.top);
			s.offset(ag);
			s.hide()
		}
		flashEnabled = c.flash.available;
		var J = {
			width : a1,
			height : a9,
			left : 0,
			overflow : "hidden",
			visible : true,
			display : "block",
			opacity : 0
		};
		var P = "next";
		var aj = I.width(a1).height(a9).find(" > div");
		var ad = c('<div class="peKb_frame"></div>').width(a1).height(a9);
		W.find("div.peKb_slides").append(am).append(a8).append(ai).bind(
				"mouseenter", az).bind("mouseleave", az).end();
		var N = 0;
		var aN = 0;
		if (ai) {
			N = parseInt(ai.css("margin-bottom").replace(/px/));
			aN = parseInt(ai.css("margin-left").replace(/px/))
		}
		if (!an) {
			I.wrapInner('<div class="peKb_slides"></div>');
			var ax = I.find("> div");
			ax.width(a1).height(a9).css({
				position : "absolute",
				"border-width" : 0,
				"border-radius" : 0,
				"background-image" : "none",
				"background-color" : ad.css("background-color"),
				"z-index" : 1,
				top : aY,
				left : aY,
				padding : "0px",
				margin : "0px"
			}).show();
			if (ai) {
				ai.width(a1).height(a9)
			}
		} else {
			aj.css("margin-left", aY);
			if (ai) {
				ai.width(a1).height(a9).css("margin-top", aY).css(
						"margin-left", aY)
			}
		}
		I.prepend(ad);
		var G = ad.css("background-color").replace(
				/rgb\((\d+),\s*(\d+),\s*(\d+)\)/g, b);
		function au(bh, bg, bj) {
			bj = bh ? bj : "fade";
			aP = bj == "swipe" ? 700 : 1000;
			p = bg;
			function bf() {
				aX();
				if (bh) {
					bh.fadeOut(0);
					bh.find("img:eq(0)").css("margin-left", 0)
				}
			}
			if (bh) {
				var bd = bh.find("img:eq(0)").data("peKenburnsImg");
				if (bd) {
					bd.stop()
				}
			}
			if (bg.find("a.video").length > 0) {
				a8.empty().removeClass("peKb_noBack").fadeIn(0);
				if (!flashEnabled) {
					var bi = c("<a>");
					bi.attr("href", bg.find("a.video").attr("href")).attr(
							"target", "_blank");
					bi.width(a8.width()).height(a8.height()).css("position",
							"absolute").show();
					a8.empty().append(bi)
				} else {
					if (bg.find("a.video").hasClass("autostart")) {
						if (r) {
							setTimeout(function() {
								a8.triggerHandler("click")
							}, 500)
						} else {
							a8.triggerHandler("click")
						}
					}
				}
			} else {
				if (bg.find("a").length > 0) {
					a8.fadeIn(0);
					var bi = c("<a>");
					c.each(bg.find("a").data("events"), function(bk, bl) {
						c.each(bl, function(bm, bn) {
							bi.bind(bk, bn.handler)
						})
					});
					bi.attr("href", bg.find("a").attr("href")).attr("target",
							bg.find("a").attr("target"));
					bi.width(a8.width()).height(a8.height()).css("position",
							"absolute").show();
					a8.empty().addClass("peKb_noBack").append(bi)
				} else {
					a8.empty().removeClass("peKb_noBack").fadeOut(0)
				}
			}
			switch (bj) {
			case "fade":
				if (bh) {
					bh.css(J).css("opacity", 1).fadeTo(aP, 0)
				}
				bg.css(J).css("opacity", 0).fadeTo(aP, 1, aX);
				break;
			case "whitefade":
				bg.css(J).css("opacity", 0);
				bh.css(J).css("opacity", 1).fadeTo(aP / 2, 0, "easeOutQuad",
						function() {
							bg.fadeTo(aP / 2, 1, "easeInQuad", aX)
						});
				break;
			case "flyBy":
				if (P == "next") {
					if (bh) {
						bh.css(J).css("opacity", 1)
					}
					bg.css(J).css("left", 50);
					if (bh) {
						bh.animate({
							left : -100,
							opacity : 0
						}, aP, "easeOutCubic")
					}
					bg.animate({
						left : 0,
						opacity : 1
					}, aP, "easeOutCubic", aX)
				} else {
					if (bh) {
						bh.css(J).css("opacity", 1)
					}
					bg.css(J).css("left", -50);
					if (bh) {
						bh.animate({
							left : 100,
							opacity : 0
						}, aP, "easeOutCubic")
					}
					bg.animate({
						left : 0,
						opacity : 1
					}, aP, "easeOutCubic", aX)
				}
				break;
			case "swipe":
				var w;
				var h = 100;
				bg.css(J);
				if (bh) {
					bh.css(J).css("opacity", 1)
				}
				w = (P == "next") ? bg.find("img:eq(0)") : bh ? bh
						.find("img:eq(0)") : null;
				function be(bk, bm) {
					var bl = Math.round(bk * a1);
					var bn = Math.round(h * (1 - bk));
					bg.css("left", -bn).width(bl + h);
					if (w) {
						w.css("margin-left", -bl)
					}
					if (bh) {
						bh.css("opacity", 0.5 + 0.5 * (1 - bk)).css("left",
								bl + h - bn).width(a1 - bl)
					}
				}
				function t(bk, bm) {
					var bl = Math.round(bk * a1);
					var bn = Math.round(h * (1 - bk));
					bg.css("left", a1 - bl + bn).width(bl);
					if (w) {
						w.css("margin-left", bl - a1)
					}
					if (bh) {
						bh.css("opacity", 0.5 + 0.5 * (1 - bk)).css("left",
								bn - h).width(a1 - bl + h)
					}
				}
				bg.animate({
					opacity : 1
				}, {
					duration : aP,
					easing : "easeOutCubic",
					complete : bf,
					step : P == "next" ? t : be
				});
				break
			}
		}
		function F(h) {
			aZ = false;
			aW(parseInt(h.target.id), true)
		}
		function aX() {
			aZ = false
		}
		function aG(w, t) {
			var h = a6[w].resource;
			if (!h) {
				return true
			}
			var bd = c(h).attr("src") ? "" : c(h).attr("data-src");
			if (bd) {
				c(h).attr("src", bd)
			}
			if (!h.complete) {
				if (t) {
					c(h).one("load", t)
				}
			}
			return h.complete
		}
		function aD() {
			if (!a5 && ab && !av) {
				aA.show().offset(ab.offset())
			}
		}
		function at() {
			av = false;
			aD()
		}
		function ae(h) {
			if (B) {
				ab = B.find("a").removeClass("peKb_currentSlide").eq(h)
						.addClass("peKb_currentSlide");
				ac(0);
				aD()
			}
		}
		function z(h) {
			if (!K) {
				return
			}
			var w = a6[h].caption;
			var bd;
			var t;
			if (w) {
				bd = w.find(".peKb_real");
				t = w.find(".peKb_background");
				bd.css("margin-left", 10).css("opacity", 0).width(0).show();
				t.css("margin-left", 100).css("opacity", 0).width(0).show();
				bd.stop(true).delay(al ? 500 : 500).animate({
					"margin-left" : 0,
					opacity : 1,
					width : t.data("width")
				}, 1000, "easeOutCubic");
				t.stop(true).delay(al ? 0 : 200).animate({
					"margin-left" : 0,
					opacity : 0.5,
					width : t.data("width")
				}, 1000, "easeOutCubic")
			}
			if (aH) {
				bd = aH.find(".peKb_real");
				t = aH.find(".peKb_background");
				bd.stop(true).fadeTo(al ? 0 : 500, 0);
				t.stop(true).fadeTo(al ? 0 : 500, 0)
			}
			aH = w
		}
		function aW(h, bd) {
			if (bc != h && !aZ) {
				aZ = true;
				if (!bd && !aG(h, F)) {
					am.fadeIn(500);
					return
				}
				q();
				aG(a4(h, "next"));
				if (!al) {
					ae(h);
					z(h)
				}
				O = bc = h;
				am.fadeOut(100);
				var bg = aj.filter(".peKb_active").removeClass("peKb_active");
				var bf = aj.eq(h).addClass("peKb_active");
				var be = bf.attr("data-transition") || "swipe";
				var t;
				if (an) {
					t = bf.find("img");
					if (t) {
						be = "fade"
					}
				}
				var w = bf.attr("data-delay");
				if (w) {
					a7 = a0 = parseFloat(w) * 20
				} else {
					a7 = a0 = -1;
					ac(360)
				}
				bf.show().fadeOut(0);
				if (t) {
					t = t.peKenburnsImg({
						zoom : bf.attr("data-zoom"),
						align : bf.attr("data-align"),
						pan : bf.attr("data-pan"),
						duration : bf.attr("data-duration"),
						paused : al,
						api : true
					});
					if (al && n) {
						t.resume()
					}
				}
				au(bg[0] ? bg : null, bf, be);
				if (aQ) {
					aQ = false;
					C = setTimeout(U, 1000)
				}
			}
		}
		function ac(w) {
			if (!B) {
				return
			}
			if (a2) {
				var t = L - 1;
				var h = L / 2;
				var bd = h + 1;
				a2.clearRect(0, 0, L, L);
				if (w > 0) {
					a2.beginPath();
					a2.moveTo(h, bd);
					a2.arc(h, bd, t / 2, (270 / 360) * 2 * Math.PI,
							((w + 270) / 360) * 2 * Math.PI, false);
					a2.lineTo(h, bd);
					a2.closePath();
					a2.fillStyle = aU;
					a2.fill()
				}
			} else {
				aB.css("background-position-y", "-"
						+ Math.round(12 - (12 * (w / 360))) * L + "px")
			}
		}
		function aK() {
			if (V || a0 < 0) {
				return
			}
			ac(360 * (a7 - a0) / a7);
			if (a0 == 0) {
				aW(a4(O, "next"))
			}
			a0--
		}
		function a4(w, h) {
			var t = w;
			t += (h == "prev" ? -1 : 1);
			t %= a6.length;
			if (t < 0) {
				t += a6.length
			}
			return t
		}
		function X(h) {
			P = c(h.currentTarget).hasClass("peKb_next") ? "next" : "prev";
			aW(a4(O, P));
			return false
		}
		function k(t) {
			var h = parseInt(t.currentTarget.id);
			P = h >= O ? "next" : "prev";
			aW(h);
			return false
		}
		function aF() {
			var bd;
			var t;
			if (e) {
				clearTimeout(e)
			}
			for ( var be = 0; be < a6.length; be++) {
				bd = a6[be].caption;
				if (bd) {
					bd.width(a1);
					t = false;
					var bg = bd.find(".peKb_real");
					var w = bd.find(".peKb_background");
					if (bd == aH) {
						bg.stop().css("margin-left", 0).css("opacity", 1);
						w.stop().css("margin-left", 0).css("opacity", 0.5);
						t = true
					}
					var h;
					var bf;
					if (al) {
						h = a1 - 2 * N
					} else {
						bg.width("auto");
						w.width("auto");
						h = bg.outerWidth()
					}
					bf = bg.outerHeight();
					w.width(h).height(bf).data("width", h);
					bd.width(h).height(bf);
					bd.css("margin-left", (a1 - w.width()) / 2);
					bd.css("margin-top", (a9 - w.height() - N - (y ? (D - 10)
							: 0)));
					if (!t) {
						bg.fadeOut(0);
						w.fadeOut(0)
					}
				}
			}
			K = true
		}
		function aV(t, be) {
			var bf = c(be).attr("id", t);
			var bd = bf.find(" > h1").detach();
			if (ai && bd.length > 0) {
				bd.wrap('<div class="peKb_real" />');
				bd = bd.parent();
				bd.wrap('<div class="peKb_holder" />');
				bd = bd.parent();
				bd.append('<div class="peKb_background" />');
				ai.append(bd);
				bd.find(".peKb_real").fadeOut(0);
				bd.find(".peKb_background").fadeOut(0)
			} else {
				bd = false
			}
			var h = bf.find("img").attr({
				id : t
			})[0];
			var w = bf.attr("data-thumb");
			a6[t] = {
				caption : bd,
				resource : h,
				thumb : w
			};
			if (B) {
				B.append('<li><a href="#" '
						+ (t == 0 ? 'class="peKb_currentSlide"' : "") + ' id="'
						+ t + '">1</a></li>')
			}
		}
		function m() {
			am.empty();
			r = false;
			if (!n) {
				V = false
			}
		}
		function o(h) {
			if (y) {
				if (c.browser.msie) {
					aE[h ? "show" : "hide"]()
				} else {
					aE.stop().fadeTo(300, h ? 1 : 0, "easeOutCubic")
				}
				ak(!h)
			} else {
				var t = {};
				t[af] = (h ? 0 : -D);
				aE.stop().animate(t, 300, "easeOutCubic")
			}
		}
		function ak(h, t) {
			if (!H) {
				return
			}
			a5 = !h;
			if (!h) {
				aS(false)
			}
			t = t == null ? 300 : t;
			H.stop();
			if (!y && r) {
				o(h)
			}
			aA.hide();
			av = true;
			if (y) {
				a5 = false;
				if (!(c.browser.msie && c.browser.version < 8)) {
					f.css("z-index", h ? 209 : 0);
					if (h && aa) {
						I.before(f.filter(".peKb_shadow").css("z-index", "0"))
					}
				}
				if (h) {
					f.find(".peKb_holder").show();
					at()
				} else {
					f.find(".peKb_holder").hide()
				}
			} else {
				H.animate({
					"margin-top" : (h ? 0 : -D)
				}, {
					duration : t,
					easing : "easeOutCubic",
					complete : at
				})
			}
		}
		function g() {
			o(true)
		}
		function aJ() {
			o(false)
		}
		function bb(h) {
			ak(true, h)
		}
		function U(h) {
			ak(false, h)
		}
		function q() {
			if (r) {
				am.css("background-color", "none");
				am.fadeOut(500, m);
				a8.fadeIn(0);
				aJ();
				var h = aj.filter(".peKb_active").find("img:eq(0)").data(
						"peKenburnsImg");
				if (h) {
					h.resume()
				}
			}
			return false
		}
		function ba(t) {
			var h = c(t.currentTarget);
			if (h.hasClass("video")) {
				v(h[0].href, h.hasClass("hd"), h.hasClass("autoplay"), h
						.hasClass("loop"));
				return false
			}
			return true
		}
		function v(t, bg, w, h) {
			if (r) {
				return false
			}
			var bh, bf;
			if (bh = t.match(/http:\/\/www.youtube.com\/watch\?v=([\w|\-]+)/)) {
				bf = "youtube"
			} else {
				if (bh = t.match(/http:\/\/vimeo.com\/(\w+)/)) {
					bf = "vimeo"
				}
			}
			if (bf) {
				q();
				r = true;
				V = true;
				var be = aj.filter(".peKb_active").find("img:eq(0)").data(
						"peKenburnsImg");
				if (be) {
					be.pause()
				}
				am.css("background-color", G);
				am.fadeIn(500);
				a8.fadeOut(0);
				g();
				var bd = am.vid({
					type : bf,
					videoId : bh[1],
					hd : bg,
					autoPlay : w,
					loop : h,
					bgcolor : G
				})
			}
		}
		function aM() {
			var h = p.find("a.video");
			if (h.length > 0) {
				h.trigger("click")
			}
		}
		function aw() {
			ar = false;
			s.hide()
		}
		function aS(h, t) {
			if (!aO || !s) {
				return
			}
			if (h) {
				s.stop(true);
				if (aT) {
					s.fadeTo(500, 1, "easeOutQuad")
				} else {
					s.show()
				}
			} else {
				if (parseInt(t) > 0) {
					s.delay(t)
				} else {
					s.stop(true)
				}
				if (aT) {
					s.fadeTo(300, 0, "easeOutQuad", aw)
				} else {
					s.queue(aw)
				}
			}
		}
		function ap(h) {
			l.html(S);
			if (W.attr("data-thumb") != "fixed") {
				S.peKenburnsImg({
					zoom : "in",
					align : "top,center",
					pan : "center,center",
					duration : "10"
				})
			}
			l.stop(true).fadeTo(0, 0).fadeTo(300, 1, "easeInQuad")
		}
		function M(h) {
			if (ab) {
				ab.triggerHandler(h.type)
			}
		}
		function R(be) {
			var h = be.currentTarget.id;
			switch (be.type) {
			case "mouseenter":
				var w = a6[h].thumb;
				if (!w) {
					return
				}
				aO = true;
				aS(true);
				var t = c(be.currentTarget).width();
				var bd = c(be.currentTarget).offset();
				bd.top = s.data("top");
				bd.left = bd.left - (s.width() - t) / 2;
				if (ar != w) {
					if (S.data("peKenburnsImg")) {
						S.data("peKenburnsImg").destroy()
					}
					S = c("<img>");
					l.html("");
					S.load(ap);
					S.attr("src", w)
				}
				s.offset(bd);
				ar = w;
				break;
			case "mouseleave":
				aS(false, 200);
				break
			}
		}
		function az(h) {
			aQ = false;
			if (C) {
				clearTimeout(C)
			}
			if (h.currentTarget == W[0]) {
				switch (h.type) {
				case "mouseenter":
					if (E) {
						V = true
					}
					bb();
					break;
				case "mouseleave":
					if (!r && E) {
						V = false
					}
					U();
					break
				}
			} else {
				switch (h.type) {
				case "mouseenter":
					if (al) {
						V = false;
						ao().resume();
						z(0)
					} else {
						if (aR) {
							V = true
						}
					}
					n = true;
					break;
				case "mouseleave":
					if (al) {
						V = true;
						ao().pause();
						z(1)
					} else {
						if (!r && aR) {
							V = false
						}
					}
					n = false;
					break
				}
			}
		}
		function ao() {
			var h;
			if (p) {
				h = p.find("img:eq(0)");
				if (h) {
					h = h.data("peKenburnsImg")
				}
			}
			return h || false
		}
		c.extend(aI, {
			init : function(bd) {
				if (c.browser.msie && c.browser.version > 8) {
					aj.find("img").each(function() {
						var be = c(this);
						if (!be.attr("data-src")) {
							be.attr("data-src", be.attr("src"));
							be.removeAttr("src")
						}
					}).end()
				}
				am.width(a1).height(a9);
				a8.width(a1).height(a9);
				aj.width(a1).height(a9).show().fadeOut(0).removeClass(
						"peKb_active").find("img[src*='blank.png']")
						.removeAttr("src").end().find("a").click(ba).end()
						.each(aV).end();
				if (Y && H) {
					H.css("margin-left", (T - H.width()) / 2);
					if (y) {
						if (c.browser.msie && c.browser.version < 8) {
							f.filter(".peKb_shadow").css("z-index", "-1")
						}
						aE.css("z-index", 204);
						aE.css("position", "absolute");
						aE.css("margin-left", 0);
						aE.css("margin-top", -Z + aE.height() + aY);
						aE.css("margin-left", aY);
						aE.detach();
						ah.append(aE);
						aE = ah.find(".peKb_videoClose");
						aE.addClass("peKb_videoCloseInner")
					}
				}
				if (aC.externalFont) {
					e = setTimeout(aF, 10000)
				} else {
					aF()
				}
				if (B) {
					var h = B.find("a");
					h.click(k);
					if (s) {
						h.bind("mouseenter", R).bind("mouseleave", R);
						aA.bind("mouseenter", M).bind("mouseleave", M)
					}
				}
				if (flashEnabled) {
					a8.hide().click(aM)
				}
				var w = true;
				var t = W.attr("data-controls");
				if (aq) {
					t = (t == "over" || t == "hideOnFirst") ? "always" : t
				}
				switch (t) {
				case "over":
					U(0);
					break;
				case "hideOnFirst":
					aQ = true;
					break;
				case "disabled":
					U(0);
				default:
					w = false;
					break
				}
				if (w) {
					W.bind("mouseenter", az).bind("mouseleave", az)
				}
				V = true;
				setInterval(aK, 50);
				aI.start()
			},
			start : function() {
				V = al;
				aW(0)
			},
			fontsLoaded : function() {
				aF();
				z(O)
			},
			pauseTimer : function() {
				V = true
			},
			resumeTimer : function() {
				V = false
			},
			pause : function() {
				var h = ao();
				h && h.pause();
				aI.pauseTimer()
			},
			resume : function() {
				var h = ao();
				h && h.resume();
				aI.resumeTimer()
			},
			prev : function() {
				aI.resumeTimer();
				aW(a4(O, "prev"))
			},
			next : function() {
				aI.resumeTimer();
				aW(a4(O, "next"))
			},
			show : function(h) {
				aI.resumeTimer();
				h = parseInt(h) - 1;
				if (h >= 0 && h < a6.length) {
					aW(h)
				}
			},
			length : function() {
				return (a6 && a6.length) || 0
			}
		});
		if (W.width() == 0 && W[0].width == 0) {
			W.one("load", aI.init)
		} else {
			aI.init()
		}
	}
	c.fn.peKenburnsSlider = function(d) {
		var e = this.data("peKenburnsSlider");
		if (e) {
			e.start();
			return e
		}
		d = c.extend(true, {}, c.pixelentity.kenburnsSlider.conf, d);
		this.each(function() {
			e = new a(c(this), d);
			c(this).data("peKenburnsSlider", e)
		});
		return d.api ? e : this
	}
})(jQuery);
(function(f) {
	var h = "0px 0px";
	var l = "bilinear";
	var g = /progid:DXImageTransform\.Microsoft\.Matrix\(.*?\)/;
	var d = document.createElement("modernizr"), e = d.style;
	function k() {
		var m = {
			transformProperty : "",
			MozTransform : "-moz-",
			WebkitTransform : "-webkit-",
			OTransform : "-o-",
			msTransform : "-ms-"
		};
		for ( var n in m) {
			if (typeof e[n] != "undefined") {
				return m[n]
			}
		}
		return null
	}
	function i() {
		var n = [ "transformProperty", "WebkitTransform", "MozTransform",
				"OTransform", "msTransform" ];
		for ( var m in n) {
			if (e[n[m]] !== undefined) {
				return true
			}
		}
	}
	var a = k(), b = a !== null ? a + "transform" : false, j = a !== null ? a
			+ "transform-origin" : false;
	f.support.csstransforms = i();
	if (a == "-ms-") {
		b = "msTransform";
		j = "msTransformOrigin"
	}
	function c(s, r, p, m) {
		if (f.support.csstransforms) {
			var t = (p != undefined) ? "translate(" + p + "px," + m + "px) "
					: "";
			f(s).css(j, h).css(b, t + "scale(" + r + ")")
		} else {
			if (f.browser.msie) {
				var q = s.style;
				var o = 'progid:DXImageTransform.Microsoft.Matrix(FilterType="'
						+ l + '",M11=' + r + ",M12=0,M21=0,M22=" + r + ",Dx="
						+ p + ",Dy=" + m + ")";
				var n = q.filter || f.curCSS(s, "filter") || "";
				q.filter = g.test(n) ? n.replace(g, o) : n ? n + " " + o : o
			}
		}
	}
	f.fn.transform = function(o, n, m) {
		this.each(function() {
			c(this, o, n, m)
		});
		return this
	}
})(jQuery);
if (!jQuery.easing.easeInQuad) {
	jQuery
			.extend(
					jQuery.easing,
					{
						easeInQuad : function(e, f, a, h, g) {
							return h * (f /= g) * f + a
						},
						easeOutQuad : function(e, f, a, h, g) {
							return -h * (f /= g) * (f - 2) + a
						},
						easeInOutQuad : function(e, f, a, h, g) {
							if ((f /= g / 2) < 1) {
								return h / 2 * f * f + a
							}
							return -h / 2 * ((--f) * (f - 2) - 1) + a
						},
						easeInCubic : function(e, f, a, h, g) {
							return h * (f /= g) * f * f + a
						},
						easeOutCubic : function(e, f, a, h, g) {
							return h * ((f = f / g - 1) * f * f + 1) + a
						},
						easeInOutCubic : function(e, f, a, h, g) {
							if ((f /= g / 2) < 1) {
								return h / 2 * f * f * f + a
							}
							return h / 2 * ((f -= 2) * f * f + 2) + a
						},
						easeInOutQuint : function(e, f, a, h, g) {
							if ((f /= g / 2) < 1) {
								return h / 2 * f * f * f * f * f + a
							}
							return h / 2 * ((f -= 2) * f * f * f * f + 2) + a
						},
						easeInExpo : function(e, f, a, h, g) {
							return (f == 0) ? a : h
									* Math.pow(2, 10 * (f / g - 1)) + a
						},
						easeOutExpo : function(e, f, a, h, g) {
							return (f == g) ? a + h : h
									* (-Math.pow(2, -10 * f / g) + 1) + a
						},
						easeInOutExpo : function(e, f, a, h, g) {
							if (f == 0) {
								return a
							}
							if (f == g) {
								return a + h
							}
							if ((f /= g / 2) < 1) {
								return h / 2 * Math.pow(2, 10 * (f - 1)) + a
							}
							return h / 2 * (-Math.pow(2, -10 * --f) + 2) + a
						},
						easeInElastic : function(f, h, e, l, k) {
							var i = 1.70158;
							var j = 0;
							var g = l;
							if (h == 0) {
								return e
							}
							if ((h /= k) == 1) {
								return e + l
							}
							if (!j) {
								j = k * 0.3
							}
							if (g < Math.abs(l)) {
								g = l;
								var i = j / 4
							} else {
								var i = j / (2 * Math.PI) * Math.asin(l / g)
							}
							return -(g * Math.pow(2, 10 * (h -= 1)) * Math
									.sin((h * k - i) * (2 * Math.PI) / j))
									+ e
						},
						easeOutElastic : function(f, h, e, l, k) {
							var i = 1.70158;
							var j = 0;
							var g = l;
							if (h == 0) {
								return e
							}
							if ((h /= k) == 1) {
								return e + l
							}
							if (!j) {
								j = k * 0.3
							}
							if (g < Math.abs(l)) {
								g = l;
								var i = j / 4
							} else {
								var i = j / (2 * Math.PI) * Math.asin(l / g)
							}
							return g * Math.pow(2, -10 * h)
									* Math.sin((h * k - i) * (2 * Math.PI) / j)
									+ l + e
						},
						easeInOutElastic : function(f, h, e, l, k) {
							var i = 1.70158;
							var j = 0;
							var g = l;
							if (h == 0) {
								return e
							}
							if ((h /= k / 2) == 2) {
								return e + l
							}
							if (!j) {
								j = k * (0.3 * 1.5)
							}
							if (g < Math.abs(l)) {
								g = l;
								var i = j / 4
							} else {
								var i = j / (2 * Math.PI) * Math.asin(l / g)
							}
							if (h < 1) {
								return -0.5
										* (g * Math.pow(2, 10 * (h -= 1)) * Math
												.sin((h * k - i)
														* (2 * Math.PI) / j))
										+ e
							}
							return g * Math.pow(2, -10 * (h -= 1))
									* Math.sin((h * k - i) * (2 * Math.PI) / j)
									* 0.5 + l + e
						},
						easeInBack : function(e, f, a, i, h, g) {
							if (g == undefined) {
								g = 1.70158
							}
							return i * (f /= h) * f * ((g + 1) * f - g) + a
						},
						easeOutBack : function(e, f, a, i, h, g) {
							if (g == undefined) {
								g = 1.70158
							}
							return i
									* ((f = f / h - 1) * f * ((g + 1) * f + g) + 1)
									+ a
						},
						easeInOutBack : function(e, f, a, i, h, g) {
							if (g == undefined) {
								g = 1.70158
							}
							if ((f /= h / 2) < 1) {
								return i
										/ 2
										* (f * f * (((g *= (1.525)) + 1) * f - g))
										+ a
							}
							return i
									/ 2
									* ((f -= 2) * f
											* (((g *= (1.525)) + 1) * f + g) + 2)
									+ a
						},
						easeInBounce : function(e, f, a, h, g) {
							return h
									- jQuery.easing.easeOutBounce(e, g - f, 0,
											h, g) + a
						},
						easeOutBounce : function(e, f, a, h, g) {
							if ((f /= g) < (1 / 2.75)) {
								return h * (7.5625 * f * f) + a
							} else {
								if (f < (2 / 2.75)) {
									return h
											* (7.5625 * (f -= (1.5 / 2.75)) * f + 0.75)
											+ a
								} else {
									if (f < (2.5 / 2.75)) {
										return h
												* (7.5625
														* (f -= (2.25 / 2.75))
														* f + 0.9375) + a
									} else {
										return h
												* (7.5625
														* (f -= (2.625 / 2.75))
														* f + 0.984375) + a
									}
								}
							}
						},
						easeInOutBounce : function(e, f, a, h, g) {
							if (f < g / 2) {
								return jQuery.easing.easeInBounce(e, f * 2, 0,
										h, g)
										* 0.5 + a
							}
							return jQuery.easing.easeOutBounce(e, f * 2 - g, 0,
									h, g)
									* 0.5 + h * 0.5 + a
						}
					})
};
(function($) {
	$.pixelentity = $.pixelentity || {
		version : "1.0.0"
	};
	$.pixelentity.Geom = {
		getScaler : function(scaleMode, halign, valign, w, h, tw, th) {
			var info = {};
			var rw = w / tw;
			var rh = h / th;
			var r;
			if (typeof scaleMode == "string") {
				switch (scaleMode) {
				case "fill":
				case "fillmax":
					r = rw > rh ? rw : rh;
					if (scaleMode == "fill") {
						r = Math.min(1, r)
					}
					break;
				case "fit":
				case "fitmax":
					r = rw < rh ? rw : rh;
					if (scaleMode == "fit") {
						r = Math.min(1, r)
					}
					break;
				case "none":
					r = 1;
					break
				}
			} else {
				r = scaleMode
			}
			info.ratio = r;
			info.diff = {};
			info.offset = {};
			info.align = {
				w : halign,
				h : valign
			};
			with (info) {
				diff.w = offset.w = w - tw * r;
				diff.h = offset.h = h - th * r;
				switch (halign) {
				case "center":
					offset.w = diff.w / 2;
					break;
				case "left":
					offset.w = 0
				}
				switch (valign) {
				case "center":
					offset.h = diff.h / 2;
					break;
				case "top":
					offset.h = 0
				}
			}
			return info
		},
		splitProps : function(comma, numeric) {
			var token = comma.split(/,/);
			return numeric ? {
				h : parseFloat(token[0]),
				w : parseFloat(token[1])
			} : {
				h : token[0],
				w : token[1]
			}
		}
	}
})(jQuery);
(function(f) {
	f.pixelentity = f.pixelentity || {
		version : "1.0.0"
	};
	var g = f.pixelentity.ticker = f("<div>");
	function a() {
		return (new Date).getTime()
	}
	var e = a();
	var d, c;
	function b() {
		var h = a();
		if (h - e >= 30) {
			g.triggerHandler("tick");
			e = h
		}
	}
	setInterval(b, 16);
	setInterval(b, 30)
})(jQuery);
(function(a) {
	a.fn.vid = function() {
		var b = {
			type : "youtube",
			videoId : "4wGR4-SeuJ0",
			autoPlay : false,
			loop : false,
			hq : true,
			chromeless : false,
			resize : true,
			bgcolor : "#000000"
		};
		if (arguments[0]) {
			a.extend(b, arguments[0])
		}
		this
				.each(function() {
					var f = a(this);
					var d = "";
					var c = {};
					switch (b.type) {
					case "youtube":
						d += "youtube.com/"
								+ (b.chromeless ? "apiplayer" : "v/"
										+ b.videoId)
								+ "?enablejsapi=1&version=3&autoplay="
								+ (b.autoPlay ? "1" : "0") + "&loop="
								+ (b.loop ? "1" : "0") + (b.hq ? "&hd=1" : "");
						break;
					case "vimeo":
						d += "vimeo.com/moogaloop.swf?clip_id=" + b.videoId
								+ "&autoplay=" + (b.autoPlay ? "1" : "0")
								+ "&js_api=1" + (b.hq ? "" : "&hd_off=1")
								+ "&loop=" + (b.loop ? "1" : "0");
						break;
					case "dailymotion":
						d += "dailymotion.com/swf/" + b.videoId
								+ "?enablejsapi=1&autoplay="
								+ (b.autoPlay ? "1" : "0");
						break;
					case "1click2fame":
						d += "1click2fame.com/flash/Player.swf?videoID="
								+ b.videoId + "&autoPlay=" + b.autoPlay;
						break
					}
					f.flash({
						swf : "http://" + d,
						height : f.height(),
						width : f.width(),
						bgcolor : b.bgcolor,
						flashvars : c
					});
					if (b.resize) {
						a(this).parent().resize(function() {
							var e = [ a("object", f), a("embed", f) ];
							a(e).each(function() {
								a(this).attr("height", f.height());
								a(this).attr("width", f.width())
							})
						})
					}
				});
		return this
	}
})(jQuery);
(function(g, h, m) {
	var f = "object", b = true;
	function l(o, n) {
		var e = (o[0] || 0) - (n[0] || 0);
		return e > 0 || (!e && o.length > 0 && l(o.slice(1), n.slice(1)))
	}
	function c(o) {
		if (typeof o != f) {
			return o
		}
		var e = [], p = "";
		for ( var n in o) {
			if (typeof o[n] == f) {
				p = c(o[n])
			} else {
				p = [ n, (b) ? encodeURI(o[n]) : o[n] ].join("=")
			}
			e.push(p)
		}
		return e.join("&")
	}
	function d(o) {
		var e = [];
		for ( var n in o) {
			if (o[n]) {
				e.push([ n, '="', o[n], '"' ].join(""))
			}
		}
		return e.join(" ")
	}
	function k(o) {
		var e = [];
		for ( var n in o) {
			e.push([ '<param name="', n, '" value="', c(o[n]), '" />' ]
					.join(""))
		}
		return e.join("")
	}
	try {
		var j = m.description
				|| (function() {
					return (new m("ShockwaveFlash.ShockwaveFlash"))
							.GetVariable("$version")
				}())
	} catch (i) {
		j = "Unavailable"
	}
	var a = j.match(/\d+/g) || [ 0 ];
	g[h] = {
		available : a[0] > 0,
		activeX : m && !m.name,
		version : {
			original : j,
			array : a,
			string : a.join("."),
			major : parseInt(a[0], 10) || 0,
			minor : parseInt(a[1], 10) || 0,
			release : parseInt(a[2], 10) || 0
		},
		hasVersion : function(n) {
			var e = (/string|number/.test(typeof n)) ? n.toString().split(".")
					: (/object/.test(typeof n)) ? [ n.major, n.minor ] : n
							|| [ 0, 0 ];
			return l(a, e)
		},
		encodeParams : true,
		expressInstall : "expressInstall.swf",
		expressInstallIsActive : false,
		create : function(o) {
			var e = this;
			if (!o.swf || e.expressInstallIsActive
					|| (!e.available && !o.hasVersionFail)) {
				return false
			}
			if (!e.hasVersion(o.hasVersion || 1)) {
				e.expressInstallIsActive = true;
				if (typeof o.hasVersionFail == "function") {
					if (!o.hasVersionFail.apply(o)) {
						return false
					}
				}
				o = {
					swf : o.expressInstall || e.expressInstall,
					height : 137,
					width : 214,
					flashvars : {
						MMredirectURL : location.href,
						MMplayerType : (e.activeX) ? "ActiveX" : "PlugIn",
						MMdoctitle : document.title.slice(0, 47)
								+ " - Flash Player Installation"
					}
				}
			}
			attrs = {
				data : o.swf,
				type : "application/x-shockwave-flash",
				id : o.id || "flash_" + Math.floor(Math.random() * 999999999),
				width : o.width || 320,
				height : o.height || 240,
				style : o.style || ""
			};
			b = typeof o.useEncode !== "undefined" ? o.useEncode
					: e.encodeParams;
			o.movie = o.swf;
			o.wmode = o.wmode || "opaque";
			o.bgcolor = o.bgcolor || "#FFFFFF";
			delete o.fallback;
			delete o.hasVersion;
			delete o.hasVersionFail;
			delete o.height;
			delete o.id;
			delete o.swf;
			delete o.useEncode;
			delete o.width;
			var n = document.createElement("div");
			n.innerHTML = [ "<object ", d(attrs), ">", k(o), "</object>" ]
					.join("");
			return n.firstChild
		}
	};
	g.fn[h] = function(e) {
		var n = this.find(f).andSelf().filter(f);
		if (/string|object/.test(typeof e)) {
			this.each(function() {
				var p = g(this), o;
				e = (typeof e == f) ? e : {
					swf : e
				};
				e.fallback = this;
				o = g[h].create(e);
				if (o) {
					p.children().remove();
					p.html(o)
				}
			})
		}
		if (typeof e == "function") {
			n.each(function() {
				var o = this, p = "jsInteractionTimeoutMs";
				o[p] = o[p] || 0;
				if (o[p] < 660) {
					if (o.clientWidth || o.clientHeight) {
						e.call(o)
					} else {
						setTimeout(function() {
							g(o)[h](e)
						}, o[p] + 66)
					}
				}
			})
		}
		return n
	}
}
		(jQuery, "flash", navigator.plugins["Shockwave Flash"]
				|| window.ActiveXObject));
