// JavaScript Document
!
function() {
	var e, n, t, a, i, o, r, s, l, d, c, p, u, m, g, f, h;
	e = function(e) {
		function n(e, n, t) {
			if (n && e && ("[object Object]" == Object.prototype.toString.call(n) || "[object Array]" == Object.prototype.toString.call(n))) {
				n = "[object Object]" === Object.prototype.toString.call(n) ? [n] : n;
				var a = function(e) {
						return e = e.replace(/([\'|\\])/gm, "\\$1").replace(/{{([^{}]*)}}/gim, "' + (data['$1'] == 'undefined' ? " + (t || "''") + " : data['$1']) + '").replace(/[\n\r]/gm, ""), e = ["return '", e, "';"].join(""), new Function("data", e)
					}(e),
					i = n.length;
				if (i > 0) for (var o = 0; i > o; o++) n[o] = a(n[o]);
				else n[0] = t || "";
				return n.join("")
			}
		}

		function t(e) {
			var n, t = new RegExp("(^| )" + e + "=([^;]*)(;|$)");
			return (n = document.cookie.match(t)) ? unescape(n[2]) : null
		}

		function a(e, n, t) {
			var t = t || 100,
				a = new Date;
			a.setTime(a.getTime() + 24 * t * 60 * 60 * 1e3), document.cookie = e + "=" + escape(n) + ";path=/;expires=" + a.toGMTString()
		}
		var i = function() {
				var e = "WebkitTransform" in document.documentElement.style ? !0 : !1;
				return e
			}(),
			o = function() {
				var e, n = !1,
					t = document.createElement("div"),
					e = ["&#173;", '<style id="smodernizr">', "@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}", "</style>"].join(""),
					a = document.documentElement.style;
				return t.id = "modernizr", t.innerHTML += e, document.body.appendChild(t), "WebkitPerspective" in a && "webkitPerspective" in a && (n = 9 === t.offsetLeft && 3 === t.offsetHeight), t.parentNode.removeChild(t), n
			}();
		return e = {
			getCookie: t,
			setCookie: a,
			template2HTML: n,
			hasTransform: i,
			has3d: o,
			isPhoneOrPad: /iPhone|iPad|iPod|Android/gi.test(navigator.userAgent)
		}
	}(), n = function(e) {
		var n = window.addEventListener ? "addEventListener" : "attachEvent",
			t = window.removeEventListener ? "removeEventListener" : "detachEvent",
			a = "addEventListener" !== n ? "on" : "";
		return e.bind = function(e, t, i, o) {
			return e[n](a + t, i, o || !1), i
		}, e.unbind = function(e, n, i, o) {
			return e[t](a + n, i, o || !1), i
		}, e
	}({}), t = function(e) {
		function n(e) {
			return e ? t(e) : void 0
		}

		function t(e) {
			for (var t in n.prototype) e[t] = n.prototype[t];
			return e
		}
		return e = n, n.prototype.on = n.prototype.addEventListener = function(e, n) {
			return this._callbacks = this._callbacks || {}, (this._callbacks[e] = this._callbacks[e] || []).push(n), this
		}, n.prototype.once = function(e, n) {
			function t() {
				a.off(e, t), n.apply(this, arguments)
			}
			var a = this;
			return this._callbacks = this._callbacks || {}, t.fn = n, this.on(e, t), this
		}, n.prototype.off = n.prototype.removeListener = n.prototype.removeAllListeners = n.prototype.removeEventListener = function(e, n) {
			if (this._callbacks = this._callbacks || {}, 0 == arguments.length) return this._callbacks = {}, this;
			var t = this._callbacks[e];
			if (!t) return this;
			if (1 == arguments.length) return delete this._callbacks[e], this;
			for (var a, i = 0; i < t.length; i++) if (a = t[i], a === n || a.fn === n) {
				t.splice(i, 1);
				break
			}
			return this
		}, n.prototype.emit = function(e) {
			this._callbacks = this._callbacks || {};
			var n = [].slice.call(arguments, 1),
				t = this._callbacks[e];
			if (t) {
				t = t.slice(0);
				for (var a = 0, i = t.length; i > a; ++a) t[a].apply(this, n)
			}
			return this
		}, n.prototype.listeners = function(e) {
			return this._callbacks = this._callbacks || {}, this._callbacks[e] || []
		}, n.prototype.hasListeners = function(e) {
			return !!this.listeners(e).length
		}, e
	}(), a = function(e) {
		function n(e, n) {
			var t = this,
				a = o.extend({
					debug: !0,
					reCheckTime: 2e3
				}, n || {});
			t.opts = a, t.$pele = o("#" + e), t.setUp()
		}

		function a(e) {
			var n = e.replace(/\s/g, "").split("|");
			if (1 == n.length) return n[0];
			for (var t, a = [], i = 0; i < n.length; i++) {
				var o = n[i].split(",");
				1 == o.length ? t = o[0] : 2 == o.length && a.push({
					size: parseInt(o[0]),
					url: o[1]
				})
			}
			a.sort(function(e, n) {
				return e.x > n.x ? 1 : -1
			});
			for (var r = 0; r < a.length; r++) if (d <= a[r].size) return a[r].url;
			return t
		}
		var i = t,
			o = window.jQuery;
		i(n.prototype);
		var r, s = function(e, n) {
				var t = e.store,
					a = e.opts,
					i = arguments,
					d = a.debug;
				if (0 == e.listSize) return clearTimeout(r), void e.emit("loadAll", e);
				e.emit("beginLoad", e);
				for (var c = 0; c < t.length; c++)!
				function(n, a) {
					var i = t[n];
					if (!i._lazyStatus_loading) {
						i._lazyStatus_loading = !0;
						var r = o(i),
							s = i.__url + (d ? "#!" + Math.random() : "");
						r.css({
							visibility: "hidden"
						}), l(s).then(function(t) {
							i.isImg ? (i.style.cssText += "visibility:visible;", i.src = t) : i.style.cssText += "visibility:visible;background-image:url(" + t + ")", e.listSize -= 1, a && a.call(e, i, n)
						}, function(e) {
							console.log("fail load %s, beigin reload...", e), i._lazyStatus_loading = !1
						})
					}
				}(c, n);
				r = setTimeout(function() {
					s.apply(null, i)
				}, a.reCheckTime)
			},
			l = function(e) {
				var n = o.Deferred(),
					t = new Image;
				return t.onload = function() {
					n.resolve(e)
				}, t.onerror = function() {
					n.reject(e)
				}, t.src = e, n.promise()
			};
		n.load = l, n.prototype.load = function(e) {
			{
				var n = this;
				n.opts
			}
			s(n, e)
		}, n.prototype.setUp = function() {
			var e = this,
				n = (e.opts, e.$pele.find("*[data-lazyimg]")),
				t = [];
			n.each(function(e, n) {
				var i = o(this);
				i.is("img") && (n.isImg = !0), n.__url = a(i.data("lazyimg")), t.push(n)
			}), e.listSize = t.length, e.store = t
		}; {
			var d = window.screen.height;
			window.screen.width
		}
		return e = n
	}(), i = function(e) {
		return e = '<div id="J_bannar_ad" class="am-bannar-ad bannar-stat-open">  <div class="am-adimgs" style="background-color:{{backgroundColor}};opacity:{{opacity}};">    <div class="laymid">      <a class="am-bannar-link" href="{{linkUrl}}" target="_blank">        <div id="J_bannar_big" class="am-adimg am-adimg-big" style="background-image:url({{normalImageUrl}})" alt="{{title}}"></div>        <div id="J_bannar_small" class="am-adimg am-adimg-small" style="background-image:url({{smallImageUrl}})" alt="{{title}}"></div>      </a>    </div>  </div>  <div class="am-ad-buttons laymid">    <a id="J_close" class="am-ad-button am-ad-close iconfont" href="javascript:;" title="\u5173\u95ed">&#xe610;</a>    <a id="J_open" class="am-ad-button am-ad-open iconfont" href="javascript:;" title="\u6253\u5f00">&#xe611;</a>  </div></div>'
	}(), o = function(n) {
		function a(e) {
			var n = l.extend({
				autoPlay: !1,
				readyToPlayOrNoVideoCallback: void 0,
				statElement: document.getElementById("J_videoContainer"),
				videoElement: document.getElementById("J_video_player"),
				responseToResizeTime: 200,
				videoOriginSize: {
					height: 1080,
					width: 1920
				}
			}, e || {}),
				t = l(n.videoElement),
				a = n.videoElement,
				i = l(n.statElement),
				r = t.parent(),
				s = this;
			s.opts = n, s.isVideoabel = o(), s.$player = t, s.player = a, s.$statElement = i, s.$holder = r, s.isPlaying = !1, s.stat = c.WAIT, d && (s.opts.autoPlay = !1);
			try {
				s.opts.videoOriginSize = {
					height: parseInt(t.data("height")),
					width: parseInt(t.data("width"))
				}
			} catch (p) {
				s.opts.videoOriginSize = {
					height: 1080,
					width: 1920
				}
			}
			s.initPlayer()
		}

		function i(e) {
			var n = e.opts,
				t = e.$player,
				a = e.$holder,
				i = n.videoOriginSize,
				o = a.width(),
				r = a.height(),
				s = o,
				l = o * i.height / i.width;
			r > l && (l = r, s = r * i.width / i.height);
			var d = 0,
				c = 0,
				p = l - r,
				u = s - o;
			c = -(Math.abs(p) / 2), d = -(Math.abs(u) / 2), t.css({
				position: "absolute",
				width: s + "px",
				height: l + "px",
				top: c + "px",
				left: d + "px"
			})
		}

		function o() {
			var e = document.createElement("video"),
				n = !1;
			try {
				(n = !! e.canPlayType) && (n = new Boolean(n), n.ogg = e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/, ""), n.h264 = e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/, ""), n.webm = e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/, ""), n.vp9 = e.canPlayType('video/webm; codecs="vp9"').replace(/^no$/, ""), n.hls = e.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/, ""))
			} catch (t) {}
			return "probably" === n.h264 ? !0 : !1
		}

		function r(e) {
			var n = e.$player,
				t = e.player;
			n.on("timeupdate", function() {
				t.ended && e.emit("end", e)
			}), l(window).on("resize", function() {
				e.emit("resize", e)
			})
		}
		var s = t,
			l = window.jQuery,
			d = e.isPhoneOrPad,
			c = {
				WAIT: "wait",
				READY: "ready",
				PLAYING: "playing",
				PAUSE: "pause",
				END: "end"
			};
		return s(a.prototype), a.prototype.initPlayer = function() {
			{
				var e, n = this,
					t = n.$statElement;
				n.$player
			}
			n.on("play", function() {
				t.addClass("stat-playing").removeClass("stat-ready").removeClass("stat-end").removeClass("stat-pause"), n.player.play(), n.isPlaying = !0, n.stat = c.PLAYING
			}), n.on("end", function() {
				t.removeClass("stat-ready").addClass("stat-end").removeClass("stat-playing"), n.isPlaying = !1, n.stat = c.end
			}), n.on("novideo", function() {
				t.addClass("stat-novideo"), n.opts.readyToPlayOrNoVideoCallback()
			}), n.on("ready", function() {
				t.addClass("stat-ready"), n.opts.autoPlay ? n.$player.on("loadeddata", function() {
					n.play(n.opts.readyToPlayOrNoVideoCallback)
				}) : (n.emit("end"), n.opts.readyToPlayOrNoVideoCallback())
			}), n.on("pause", function() {
				t.addClass("stat-pause").removeClass("stat-playing"), n.player.pause(), n.isPlaying = !1, n.stat = c.PAUSE
			}), n.on("resize", function() {
				clearTimeout(e), e = setTimeout(function() {
					i(n)
				}, n.opts.responseToResizeTime)
			}), n.isVideoabel ? (i(n), r(n), n.emit("ready")) : n.emit("novideo")
		}, a.prototype.play = function(e) {
			var n = this;
			!n.isPlaying && n.isVideoabel && (n.emit("play", n), e && e())
		}, a.prototype.pause = function() {
			var e = this;
			e.isVideoabel && (e.isPlaying || !e.player.paused) && e.emit("pause")
		}, n = a
	}(), r = function(e) {
		function n() {
			var e = window.innerWidth || window.document.documentElement.offsetWidth,
				n = window.innerHeight || window.document.documentElement.offsetHeight;
			650 >= n ? i.addClass("maxH650") : i.removeClass("maxH650"), n > 650 && 800 >= n ? i.addClass("maxH800") : i.removeClass("maxH800"), n > 800 ? (i.addClass("big800"), i.addClass("bigscreen")) : (i.removeClass("big800"), i.removeClass("bigscreen")), 1060 >= e ? i.addClass("belowW1060") : i.removeClass("belowW1060"), e > 1060 && 1110 >= e ? i.addClass("belowW1110") : i.removeClass("belowW1110"), e > 1110 && 1200 >= e ? i.addClass("belowW1200") : i.removeClass("belowW1200"), e > 1200 && 1300 >= e ? i.addClass("belowW1300") : i.removeClass("belowW1300")
		}
		var t, a = window.jQuery,
			i = a("body");
		return a(window).on("resize", function() {
			clearTimeout(t), t = setTimeout(function() {
				n()
			}, 200)
		}), e = {
			adjustView: n
		}
	}(), s = function(e) {
		function n() {
			t("#J_mainMenu").delegate(".channel", "click", function() {
				var e = t(this);
				e.addClass("hover").siblings().removeClass("hover")
			}).delegate(".close", "click", function(e) {
				e.stopPropagation();
				var n = t(this);
				n.closest(".channel").removeClass("hover")
			}), t(document).on("click", function(e) {
				var n = t(e.target);
				0 == n.closest(".channel").length && t("#J_mainMenu .channel").removeClass("hover")
			})
		}
		var t = window.jQuery;
		return e = {
			initNavMenu: n
		}
	}(), l = function(e) {
		return e = '<div id="staticLoginContainer">  <div id="userLogined">    <div class="user-container">      <h4 class="wellcome"></h4>      <span class="spitline">&nbsp;</span>      <div class="user-info">        <p class="user-info-button">          <a href="#" target="_self"></a>        </p>      </div>    </div>  </div></div>'
	}(), d = function(e) {
		function n(e, n) {
			if (!n || (n = n.replace(a, "-"), !i.getElementById(n))) {
				var r;
				if (!t || n ? (r = i.createElement("style"), n && (r.id = n), o.appendChild(r)) : r = t, r.styleSheet) {
					if (i.getElementsByTagName("style").length > 31) throw new Error("Exceed the maximal count of style tags in IE");
					r.styleSheet.cssText += e
				} else r.appendChild(i.createTextNode(e));
				n || (t = r)
			}
		}
		var t, a = /\W/g,
			i = document,
			o = document.getElementsByTagName("head")[0] || document.documentElement;
		return e = n
	}(), c = function(a) {
		function i(e, n) {
			var t = this,
				a = n || {},
				i = document.getElementById(e);
			l(a, {
				duration: 500,
				timingFunction: "ease",
				period: 100,
				wheelDelta: 100,
				pagination: !0,
				keyboard: !0,
				loop: "down",
				beforeMove: null,
				endMove: null
			}), t.opts = a, t.element = i, t.$element = p(i), t.isMoving = !1, t.setUp()
		}

		function o(e) {
			var n = e.element,
				t = e.$element,
				a = e.opts,
				i = t.find(".am-page"),
				o = [];
			
			var r;
			return a.pagination && (r = p('')), i.each(function(e, n) {
				if (o.push(n), a.pagination) {
					var t = o.length - 1,
						i = p('<a href="javascript:;" id="onepage-pagination-' + t + '" data-page="' + t + '"><i class="dotted"></i></a>');
					r.append(i)
				}
			}), r && r.appendTo("body").css({
				"margin-top": -(r.height() / 3) + "px"
			}), {
				$pagination: r,
				pages: o
			}
		}

		function r(e) {
			return function() {
				e.emit("endMove", e)
			}
		}

		function s(e) {
			function n(e) {
				e = e || window.event, e.preventDefault && e.preventDefault(), e.returnValue = !1
			}
			var t = e.opts,
				a = function(a) {
					n(a);
					var i = (new Date).getTime() - (e.transitioned || 0),
						o = t.period + t.duration;
					"undefined" != typeof a.wheelDelta ? i > o && Math.abs(a.wheelDelta) > t.wheelDelta && (a.wheelDelta > 0 ? e.pageUp() : e.pageDown()) : "undefined" != typeof a.detail && i > o && (a.detail > 0 ? e.pageDown() : e.pageUp())
				};
			d.bind(document, "mousewheel", a), d.bind(document, "DOMMouseScroll", a), d.bind(e.element, "touchstart", function(n) {
				var t, a, i = n.touches;
				if (i && i.length) {
					t = i[0].pageX, a = i[0].pageY;
					var o = function(n) {
							if (n.preventDefault(), !e.isMoving && n.touches && n.touches.length) {
								var i = t - n.touches[0].pageX,
									r = a - n.touches[0].pageY;
								r >= 50 ? e.pageDown() : -50 >= r && e.pageUp(), (Math.abs(i) >= 50 || Math.abs(r) >= 50) && d.unbind(e.element, "touchmove", o)
							}
						};
					d.bind(e.element, "touchmove", o)
				}
			}, !1), d.bind(e.element, "webkitTransitionEnd", r(e)), t.keyboard && d.bind(document, "keydown", function(n) {
				38 === n.keyCode ? e.pageUp() : 40 === n.keyCode && e.pageDown()
			}), t.pagination && e.$pagination.delegate("a", "click", function() {
				var n = p(this),
					t = n.data("page");
				e.move(t)
			}), e.on("beforeMove", function(e) {
				var n = e.pointPage;
				t.pagination && e.$pagination.find("a").removeClass("active").eq(n).addClass("active")
			}), t.beforeMove && e.on("beforeMove", t.beforeMove), e.on("endMove", function(e) {
				{
					var n = e.pointPage;
					e.opts
				}
				e.page = n, e.transitioned = (new Date).getTime(), e.isMoving = !1
			}), t.endMove && e.on("endMove", t.endMove)
		}

		function l(e, n) {
			for (var t in n)!
			function(t) {
				void 0 === e[t] && (e[t] = n[t])
			}(t)
		}
		var d = n,
			c = t,
			p = window.jQuery,
			u = e,
			m = u.hasTransform,
			g = u.has3d;
		return c(i.prototype), i.prototype.setUp = function() {
			var e = this,
				n = o(e);
			e.page = 0, e.transitioned = null, e.pages = n.pages, e.$pagination = n.$pagination, e.size = e.pages.length;
			var t = window.location.hash && window.location.hash.slice(1),
				a = document.getElementById("onepage-pagination-" + t);
			a && (e.page = parseInt(a.getAttribute("data-page"), 10) || 0), s(e), e.move(e.page)
		}, i.prototype.pageUp = function() {
			{
				var e = this,
					n = e.opts;
				n.loop
			}
			e.page > 0 && e.move(e.page - 1)
		}, i.prototype.pageDown = function() {
			{
				var e = this,
					n = e.opts;
				n.loop
			}
			e.page < e.pages.length - 1 && e.move(e.page + 1)
		}, i.prototype.move = function(e) {
			function n() {
				var n = 100 * e;
				a.element.style.cssText += ["-webkit-transform:translate3d(0,-" + n + "%,0)", "-o-transform:translate3d(0,-" + n + "%,0)", "-ms-transform:translate3d(0,-" + n + "%,0)", "-moz-transform:translate3d(0,-" + n + "%,0)", "transform:translate3d(0,-" + n + "%,0)"].join(";")
			}

			function t() {
				a.$element.stop().animate({
					top: -100 * e + "%"
				}, i.duration, r(a))
			}
			var a = this,
				i = a.opts;
			if (!(a.isMoving || (a.pointPage = e, 0 > e || e >= a.pages.length))) {
				if (a.emit("beforeMove", a), a.stopMove) return void(a.stopMove = !1);
				a.isMoving || (a.isMoving = !0, m && g ? n() : t()), a.emit("moving", e)
			}
		}, a = i
	}(), p = function() {
		d('')
	}(), u = function() {
		d('')
	}(), m = function(n) {
		function o(e) {
			var n = {
				channelAselector: ".channel-a",
				adConfigs: [{
					channelId: "",
					gifImageUrl: "",
					downlistNotice: ""
				}]
			},
				t = l.extend(n, e || {}),
				a = this;
			a.opts = t, a.adConfigs = a.opts.adConfigs || []
		}

		function r(e) {
			var n = {
				id: "J_bannar_box",
				title: "",
				smallImageUrl: "",
				normalImageUrl: "",
				smallImageUrlForRetain: null,
				normalImageUrlForRetain: null,
				opacity: 1,
				smallHight: 50,
				normalHeight: 150,
				autoDisappear: !0,
				disappearTime: 30,
				linkUrl: "",
				backgroundColor: "#d52d3b",
				template: m
			},
				t = l.extend(n, e || {}),
				a = this;
			a.opts = t, a.opts.disappearTime = 1e3 * a.opts.disappearTime, a.adData = {
				linkUrl: t.linkUrl,
				title: t.title,
				smallImageUrl: 2 == g && t.smallImageUrlForRetain ? t.smallImageUrlForRetain : t.smallImageUrl,
				normalImageUrl: 2 == g && t.normalImageUrlForRetain ? t.normalImageUrlForRetain : t.normalImageUrl,
				backgroundColor: t.backgroundColor,
				opacity: t.opacity
			}, a.$bannarAdBox = l("#" + t.id), a.$bannarAdBox.css({
				display: "none"
			}), a.template = t.template
		}

		function s(e) {
			function n() {
				f && clearTimeout(f), f = null, o.removeClass("bannar-stat-open").addClass("bannar-stat-close"), e.emit("close")
			}

			function t() {
				o.removeClass("bannar-stat-close").addClass("bannar-stat-open"), e.emit("open")
			}

			function a() {
				f = setTimeout(n, e.opts.disappearTime)
			}
			var i = e.$bannarAdBox,
				o = i.find("#J_bannar_ad");
			return i.on("click", "#J_close", function() {
				t()
			}), i.on("click", "#J_open", function() {
				n()
			}), e.opts.autoDisappear && a(), e
		}
		var l = window.jQuery,
			d = t,
			c = a,
			p = e,
			u = p.template2HTML;
		o.prototype.addAd = function(e) {
			var n = this;
			return n.adConfigs.push(e), n
		}, o.prototype.init = function() {
			function e(e, n) {
				if (n.length > 0) for (var t = 0; t < n.length; t++) e.eq(n[t] - 1).addClass("am-dot-notice")
			}

			function n(e, n) {
				/^http|^https/i.test(n) && c.load(n).done(function() {
					e.addClass("adchannel").css({
						background: "url(" + n + ") no-repeat center center"
					})
				})
			}
			var t = this,
				a = t.opts,
				i = t.adConfigs;
			if (0 != i.length) {
				console.log("begin load channel ad...");
				for (var o = 0; o < i.length; o++) {
					var r = l("#" + i[o].channelId),
						s = r.find(".listitem"),
						d = r.find(a.channelAselector),
						p = i[o].downlistNotice.replace(/\s/, "").split(","),
						u = i[o].gifImageUrl.replace(/\s/, "");
					n(d, u), e(s, p)
				}
				return t
			}
		};
		var m = i,
			g = window.devicePixelRatio || 1;
		d(r.prototype), r.prototype.render = function() {
			{
				var e = this;
				e.opts
			}
			return e.$bannarAdBox.html(e.html), e
		}, r.prototype.init = function() {
			var e = this,
				n = (e.opts, u(e.template, e.adData));
			return l.when(c.load(e.adData.smallImageUrl), c.load(e.adData.normalImageUrl)).then(function() {
				e.$bannarAdBox.css({
					display: "block"
				}).html(n), s(e)
			}), e
		};
		var f;
		return n = {
			ChannelAd: o,
			BannarAd: r
		}
	}(), g = function(e) {
		function n(e) {
			function n() {
				return clearTimeout(t), p = !0, u = !1, "undefined" != typeof loginboxLoadFailCallback && "[object Function]" === Object.prototype.toString.call(loginboxLoadFailCallback) ? loginboxLoadFailCallback() : void s.find(".iframe").html(c)
			}

			function l() {
				clearTimeout(t), p || (p = !0, u = !1, r.css({
					display: "none"
				}), o.css({
					display: "block",
					visibility: "visible"
				}))
			}

			function h() {
				if (!p && !u) {
					var e = o.data("src");
					o.on("load", l), o.on("error", n), o.attr("src", e), u = !0
				}
			}

			function v() {
				clearTimeout(t), i.hasClass("stat-login") || (i.addClass("stat-login"), d.addClass("fadeIn animated"), "undefined" != typeof isAnimateLoginbox && isAnimateLoginbox && s.addClass("bounceIn animated"), p || u || h(), "undefined" != typeof loginboxHack && loginboxHack && p && (o.css("height", "379px"), o.css("height", "380px")), !p && g && (t = setTimeout(function() {
					n()
				}, f)))
			}

			function b() {
				clearTimeout(t), i.removeClass("stat-login"), "undefined" != typeof isAnimateLoginbox && isAnimateLoginbox && s.removeClass("bounceIn animated"), d.removeClass("fadeIn animated")
			}
			a(document).delegate(".button-login", "click", v), i.delegate(".popbox-close", "click", b), "#login" == m && v(), window.showLoginIframe = l, !e || p || u || h()
		}
		var t, a = window.jQuery,
			i = a("#J_popbox"),
			o = a("#J_loginIframe"),
			r = a("#J_iframeMask"),
			s = i.find("#J_loginbox"),
			d = i.find("#J_popmask"),
			c = l,
			p = !1,
			u = !1,
			m = window.location.hash,
			g = "undefined" != typeof g ? g : !0,
			f = "undefined" != typeof f ? parseInt(f) : 5e3;
		return e = {
			initLoginBox: n
		}
	}(), f = function() {
		function n() {
			h.on("beginLoad", function(e) {
				console.log("begin lazy load %s image files...", e.store.length)
			}), h.on("loadAll", function() {
				console.log("load all, done work.")
			}), h.load(function(e) {
				var n = t(e),
					a = n.data("animate") || "";
				n.addClass(a)
			})
		}
		var t = window.jQuery,
			i = t("#J_buttons"),
			l = t("#J_gonext"),
			d = e,
			p = c,
			u = new p("screenHeight", {
				beforeMove: function(e) {
					i.length > 0 && (0 != e.pointPage ? i.removeClass("fn-hide") : i.addClass("fn-hide")), e.pointPage == e.size - 1 ? l.addClass("fn-hide") : l.removeClass("fn-hide")
				},
				endMove: function(e) {
					var n = e.pages[e.page],
						a = t(n);
					if (!n.isAnimateIn) {
						var i = a.data("animate") ? a.data("animate").replace(/(^\s+|\s+$)/g, "") : "";
						i && (a.addClass(i), n.isAnimateIn = !0)
					}
				}
			}),
			f = a,
			h = new f("screenHeight", {
				debug: !1
			}),
			v = m,
			b = o,
			y = new b({
				readyToPlayOrNoVideoCallback: function() {
					var e = d.isPhoneOrPad;
					if (!e && ("undefined" != typeof channelAdConfigs && new v.ChannelAd({
						adConfigs: "undefined" == typeof channelAdConfigs ? [] : channelAdConfigs
					}).init(), "undefined" != typeof bannarAdConfigs)) {
						var n = new v.BannarAd("undefined" == typeof bannarAdConfigs ? {} : bannarAdConfigs);
						n.on("open", function() {
							0 == u.page && y.isPlaying && y.pause()
						}), n.on("close", function() {
							0 != u.page || y.isPlaying || y.play()
						}), n.init()
					}
				},
				autoPlay: "undefined" == typeof autoPlay ? !1 : autoPlay
			}),
			w = r;
		u.on("beforeMove", function(e) {
			0 != e.pointPage && y.pause()
		}), w.adjustView(), s.initNavMenu(), g.initLoginBox(!0), t("#screenHeight").on("click", "#J_play", function() {
			y.play()
		}), l.on("click", function() {
			u.pageDown()
		}), n()
	}(), h = function(e) {
		var n = f;
		return e = n
	}()
}();