/* Minification failed. Returning unminified contents.
(1,48096-48099): run-time warning JS1028: Expected identifier or string: for
(1,48112-48117): run-time warning JS1028: Expected identifier or string: class
 */
!function (e, t) { var n, r, i = typeof t, o = e.location, a = e.document, s = a.documentElement, c = e.jQuery, u = e.$, l = {}, f = [], p = "1.10.2", d = f.concat, h = f.push, m = f.slice, g = f.indexOf, y = l.toString, v = l.hasOwnProperty, x = p.trim, b = function (e, t) { return new b.fn.init(e, t, r) }, _ = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, w = /\S+/g, T = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, C = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, N = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, k = /^[\],:{}\s]*$/, E = /(?:^|:|,)(?:\s*\[)+/g, S = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g, A = /"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g, j = /^-ms-/, D = /-([\da-z])/gi, L = function (e, t) { return t.toUpperCase() }, H = function (e) { (a.addEventListener || "load" === e.type || "complete" === a.readyState) && (q(), b.ready()) }, q = function () { a.addEventListener ? (a.removeEventListener("DOMContentLoaded", H, !1), e.removeEventListener("load", H, !1)) : (a.detachEvent("onreadystatechange", H), e.detachEvent("onload", H)) }; function M(e) { var t = e.length, n = b.type(e); return !b.isWindow(e) && (!(1 !== e.nodeType || !t) || ("array" === n || "function" !== n && (0 === t || "number" == typeof t && t > 0 && t - 1 in e))) } b.fn = b.prototype = { jquery: p, constructor: b, init: function (e, n, r) { var i, o; if (!e) return this; if ("string" == typeof e) { if (!(i = "<" === e.charAt(0) && ">" === e.charAt(e.length - 1) && e.length >= 3 ? [null, e, null] : C.exec(e)) || !i[1] && n) return !n || n.jquery ? (n || r).find(e) : this.constructor(n).find(e); if (i[1]) { if (n = n instanceof b ? n[0] : n, b.merge(this, b.parseHTML(i[1], n && n.nodeType ? n.ownerDocument || n : a, !0)), N.test(i[1]) && b.isPlainObject(n)) for (i in n) b.isFunction(this[i]) ? this[i](n[i]) : this.attr(i, n[i]); return this } if ((o = a.getElementById(i[2])) && o.parentNode) { if (o.id !== i[2]) return r.find(e); this.length = 1, this[0] = o } return this.context = a, this.selector = e, this } return e.nodeType ? (this.context = this[0] = e, this.length = 1, this) : b.isFunction(e) ? r.ready(e) : (e.selector !== t && (this.selector = e.selector, this.context = e.context), b.makeArray(e, this)) }, selector: "", length: 0, toArray: function () { return m.call(this) }, get: function (e) { return null == e ? this.toArray() : 0 > e ? this[this.length + e] : this[e] }, pushStack: function (e) { var t = b.merge(this.constructor(), e); return t.prevObject = this, t.context = this.context, t }, each: function (e, t) { return b.each(this, e, t) }, ready: function (e) { return b.ready.promise().done(e), this }, slice: function () { return this.pushStack(m.apply(this, arguments)) }, first: function () { return this.eq(0) }, last: function () { return this.eq(-1) }, eq: function (e) { var t = this.length, n = +e + (0 > e ? t : 0); return this.pushStack(n >= 0 && t > n ? [this[n]] : []) }, map: function (e) { return this.pushStack(b.map(this, (function (t, n) { return e.call(t, n, t) }))) }, end: function () { return this.prevObject || this.constructor(null) }, push: h, sort: [].sort, splice: [].splice }, b.fn.init.prototype = b.fn, b.extend = b.fn.extend = function () { var e, n, r, i, o, a, s = arguments[0] || {}, c = 1, u = arguments.length, l = !1; for ("boolean" == typeof s && (l = s, s = arguments[1] || {}, c = 2), "object" == typeof s || b.isFunction(s) || (s = {}), u === c && (s = this, --c); u > c; c++)if (null != (o = arguments[c])) for (i in o) e = s[i], s !== (r = o[i]) && (l && r && (b.isPlainObject(r) || (n = b.isArray(r))) ? (n ? (n = !1, a = e && b.isArray(e) ? e : []) : a = e && b.isPlainObject(e) ? e : {}, s[i] = b.extend(l, a, r)) : r !== t && (s[i] = r)); return s }, b.extend({ expando: "jQuery" + (p + Math.random()).replace(/\D/g, ""), noConflict: function (t) { return e.$ === b && (e.$ = u), t && e.jQuery === b && (e.jQuery = c), b }, isReady: !1, readyWait: 1, holdReady: function (e) { e ? b.readyWait++ : b.ready(!0) }, ready: function (e) { if (!0 === e ? !--b.readyWait : !b.isReady) { if (!a.body) return setTimeout(b.ready); b.isReady = !0, !0 !== e && --b.readyWait > 0 || (n.resolveWith(a, [b]), b.fn.trigger && b(a).trigger("ready").off("ready")) } }, isFunction: function (e) { return "function" === b.type(e) }, isArray: Array.isArray || function (e) { return "array" === b.type(e) }, isWindow: function (e) { return null != e && e == e.window }, isNumeric: function (e) { return !isNaN(parseFloat(e)) && isFinite(e) }, type: function (e) { return null == e ? e + "" : "object" == typeof e || "function" == typeof e ? l[y.call(e)] || "object" : typeof e }, isPlainObject: function (e) { var n; if (!e || "object" !== b.type(e) || e.nodeType || b.isWindow(e)) return !1; try { if (e.constructor && !v.call(e, "constructor") && !v.call(e.constructor.prototype, "isPrototypeOf")) return !1 } catch (e) { return !1 } if (b.support.ownLast) for (n in e) return v.call(e, n); for (n in e); return n === t || v.call(e, n) }, isEmptyObject: function (e) { var t; for (t in e) return !1; return !0 }, error: function (e) { throw Error(e) }, parseHTML: function (e, t, n) { if (!e || "string" != typeof e) return null; "boolean" == typeof t && (n = t, t = !1), t = t || a; var r = N.exec(e), i = !n && []; return r ? [t.createElement(r[1])] : (r = b.buildFragment([e], t, i), i && b(i).remove(), b.merge([], r.childNodes)) }, parseJSON: function (n) { return e.JSON && e.JSON.parse ? e.JSON.parse(n) : null === n ? n : "string" == typeof n && ((n = b.trim(n)) && k.test(n.replace(S, "@").replace(A, "]").replace(E, ""))) ? Function("return " + n)() : (b.error("Invalid JSON: " + n), t) }, parseXML: function (n) { var r; if (!n || "string" != typeof n) return null; try { e.DOMParser ? r = (new DOMParser).parseFromString(n, "text/xml") : ((r = new ActiveXObject("Microsoft.XMLDOM")).async = "false", r.loadXML(n)) } catch (e) { r = t } return r && r.documentElement && !r.getElementsByTagName("parsererror").length || b.error("Invalid XML: " + n), r }, noop: function () { }, globalEval: function (t) { t && b.trim(t) && (e.execScript || function (t) { e.eval.call(e, t) })(t) }, camelCase: function (e) { return e.replace(j, "ms-").replace(D, L) }, nodeName: function (e, t) { return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase() }, each: function (e, t, n) { var r = 0, i = e.length, o = M(e); if (n) { if (o) for (; i > r && !1 !== t.apply(e[r], n); r++); else for (r in e) if (!1 === t.apply(e[r], n)) break } else if (o) for (; i > r && !1 !== t.call(e[r], r, e[r]); r++); else for (r in e) if (!1 === t.call(e[r], r, e[r])) break; return e }, trim: x && !x.call("\ufeff�") ? function (e) { return null == e ? "" : x.call(e) } : function (e) { return null == e ? "" : (e + "").replace(T, "") }, makeArray: function (e, t) { var n = t || []; return null != e && (M(Object(e)) ? b.merge(n, "string" == typeof e ? [e] : e) : h.call(n, e)), n }, inArray: function (e, t, n) { var r; if (t) { if (g) return g.call(t, e, n); for (r = t.length, n = n ? 0 > n ? Math.max(0, r + n) : n : 0; r > n; n++)if (n in t && t[n] === e) return n } return -1 }, merge: function (e, n) { var r = n.length, i = e.length, o = 0; if ("number" == typeof r) for (; r > o; o++)e[i++] = n[o]; else for (; n[o] !== t;)e[i++] = n[o++]; return e.length = i, e }, grep: function (e, t, n) { var r = [], i = 0, o = e.length; for (n = !!n; o > i; i++)n !== !!t(e[i], i) && r.push(e[i]); return r }, map: function (e, t, n) { var r, i = 0, o = e.length, a = []; if (M(e)) for (; o > i; i++)null != (r = t(e[i], i, n)) && (a[a.length] = r); else for (i in e) null != (r = t(e[i], i, n)) && (a[a.length] = r); return d.apply([], a) }, guid: 1, proxy: function (e, n) { var r, i, o; return "string" == typeof n && (o = e[n], n = e, e = o), b.isFunction(e) ? (r = m.call(arguments, 2), i = function () { return e.apply(n || this, r.concat(m.call(arguments))) }, i.guid = e.guid = e.guid || b.guid++ , i) : t }, access: function (e, n, r, i, o, a, s) { var c = 0, u = e.length, l = null == r; if ("object" === b.type(r)) for (c in o = !0, r) b.access(e, n, c, r[c], !0, a, s); else if (i !== t && (o = !0, b.isFunction(i) || (s = !0), l && (s ? (n.call(e, i), n = null) : (l = n, n = function (e, t, n) { return l.call(b(e), n) })), n)) for (; u > c; c++)n(e[c], r, s ? i : i.call(e[c], c, n(e[c], r))); return o ? e : l ? n.call(e) : u ? n(e[0], r) : a }, now: function () { return (new Date).getTime() }, swap: function (e, t, n, r) { var i, o, a = {}; for (o in t) a[o] = e.style[o], e.style[o] = t[o]; for (o in i = n.apply(e, r || []), t) e.style[o] = a[o]; return i } }), b.ready.promise = function (t) { if (!n) if (n = b.Deferred(), "complete" === a.readyState) setTimeout(b.ready); else if (a.addEventListener) a.addEventListener("DOMContentLoaded", H, !1), e.addEventListener("load", H, !1); else { a.attachEvent("onreadystatechange", H), e.attachEvent("onload", H); var r = !1; try { r = null == e.frameElement && a.documentElement } catch (e) { } r && r.doScroll && function e() { if (!b.isReady) { try { r.doScroll("left") } catch (t) { return setTimeout(e, 50) } q(), b.ready() } }() } return n.promise(t) }, b.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), (function (e, t) { l["[object " + t + "]"] = t.toLowerCase() })), r = b(a), function (e, t) { var n, r, i, o, a, s, c, u, l, f, p, d, h, m, g, y, v, x = "sizzle" + -new Date, _ = e.document, w = 0, T = 0, C = ae(), N = ae(), k = ae(), E = !1, S = function (e, t) { return e === t ? (E = !0, 0) : 0 }, A = typeof t, j = 1 << 31, D = {}.hasOwnProperty, L = [], H = L.pop, q = L.push, M = L.push, O = L.slice, F = L.indexOf || function (e) { for (var t = 0, n = this.length; n > t; t++)if (this[t] === e) return t; return -1 }, B = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", P = "[\\x20\\t\\r\\n\\f]", $ = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", R = $.replace("w", "w#"), W = "\\[" + P + "*(" + $ + ")" + P + "*(?:([*^$|!~]?=)" + P + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + R + ")|)|)" + P + "*\\]", I = ":(" + $ + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + W.replace(3, 8) + ")*)|.*)\\)|)", z = RegExp("^" + P + "+|((?:^|[^\\\\])(?:\\\\.)*)" + P + "+$", "g"), X = RegExp("^" + P + "*," + P + "*"), U = RegExp("^" + P + "*([>+~]|" + P + ")" + P + "*"), Y = RegExp(P + "*[+~]"), V = RegExp("=" + P + "*([^\\]'\"]*)" + P + "*\\]", "g"), J = RegExp(I), Q = RegExp("^" + R + "$"), G = { ID: RegExp("^#(" + $ + ")"), CLASS: RegExp("^\\.(" + $ + ")"), TAG: RegExp("^(" + $.replace("w", "w*") + ")"), ATTR: RegExp("^" + W), PSEUDO: RegExp("^" + I), CHILD: RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + P + "*(even|odd|(([+-]|)(\\d*)n|)" + P + "*(?:([+-]|)" + P + "*(\\d+)|))" + P + "*\\)|)", "i"), bool: RegExp("^(?:" + B + ")$", "i"), needsContext: RegExp("^" + P + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + P + "*((?:-\\d)?\\d*)" + P + "*\\)|)(?=[^-]|$)", "i") }, K = /^[^{]+\{\s*\[native \w/, Z = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, ee = /^(?:input|select|textarea|button)$/i, te = /^h\d$/i, ne = /'|\\/g, re = RegExp("\\\\([\\da-f]{1,6}" + P + "?|(" + P + ")|.)", "ig"), ie = function (e, t, n) { var r = "0x" + t - 65536; return r != r || n ? t : 0 > r ? String.fromCharCode(r + 65536) : String.fromCharCode(55296 | r >> 10, 56320 | 1023 & r) }; try { M.apply(L = O.call(_.childNodes), _.childNodes), L[_.childNodes.length].nodeType } catch (e) { M = { apply: L.length ? function (e, t) { q.apply(e, O.call(t)) } : function (e, t) { for (var n = e.length, r = 0; e[n++] = t[r++];); e.length = n - 1 } } } function oe(e, t, n, i) { var o, a, s, c, u, l, d, g, y, b; if ((t ? t.ownerDocument || t : _) !== p && f(t), n = n || [], !e || "string" != typeof e) return n; if (1 !== (c = (t = t || p).nodeType) && 9 !== c) return []; if (h && !i) { if (o = Z.exec(e)) if (s = o[1]) { if (9 === c) { if (!(a = t.getElementById(s)) || !a.parentNode) return n; if (a.id === s) return n.push(a), n } else if (t.ownerDocument && (a = t.ownerDocument.getElementById(s)) && v(t, a) && a.id === s) return n.push(a), n } else { if (o[2]) return M.apply(n, t.getElementsByTagName(e)), n; if ((s = o[3]) && r.getElementsByClassName && t.getElementsByClassName) return M.apply(n, t.getElementsByClassName(s)), n } if (r.qsa && (!m || !m.test(e))) { if (g = d = x, y = t, b = 9 === c && e, 1 === c && "object" !== t.nodeName.toLowerCase()) { for (l = me(e), (d = t.getAttribute("id")) ? g = d.replace(ne, "\\$&") : t.setAttribute("id", g), g = "[id='" + g + "'] ", u = l.length; u--;)l[u] = g + ge(l[u]); y = Y.test(e) && t.parentNode || t, b = l.join(",") } if (b) try { return M.apply(n, y.querySelectorAll(b)), n } catch (e) { } finally { d || t.removeAttribute("id") } } } return Te(e.replace(z, "$1"), t, n, i) } function ae() { var e = []; return function t(n, r) { return e.push(n += " ") > o.cacheLength && delete t[e.shift()], t[n] = r } } function se(e) { return e[x] = !0, e } function ce(e) { var t = p.createElement("div"); try { return !!e(t) } catch (e) { return !1 } finally { t.parentNode && t.parentNode.removeChild(t), t = null } } function ue(e, t) { for (var n = e.split("|"), r = e.length; r--;)o.attrHandle[n[r]] = t } function le(e, t) { var n = t && e, r = n && 1 === e.nodeType && 1 === t.nodeType && (~t.sourceIndex || j) - (~e.sourceIndex || j); if (r) return r; if (n) for (; n = n.nextSibling;)if (n === t) return -1; return e ? 1 : -1 } function fe(e) { return function (t) { return "input" === t.nodeName.toLowerCase() && t.type === e } } function pe(e) { return function (t) { var n = t.nodeName.toLowerCase(); return ("input" === n || "button" === n) && t.type === e } } function de(e) { return se((function (t) { return t = +t, se((function (n, r) { for (var i, o = e([], n.length, t), a = o.length; a--;)n[i = o[a]] && (n[i] = !(r[i] = n[i])) })) })) } for (n in s = oe.isXML = function (e) { var t = e && (e.ownerDocument || e).documentElement; return !!t && "HTML" !== t.nodeName }, r = oe.support = {}, f = oe.setDocument = function (e) { var n = e ? e.ownerDocument || e : _, i = n.defaultView; return n !== p && 9 === n.nodeType && n.documentElement ? (p = n, d = n.documentElement, h = !s(n), i && i.attachEvent && i !== i.top && i.attachEvent("onbeforeunload", (function () { f() })), r.attributes = ce((function (e) { return e.className = "i", !e.getAttribute("className") })), r.getElementsByTagName = ce((function (e) { return e.appendChild(n.createComment("")), !e.getElementsByTagName("*").length })), r.getElementsByClassName = ce((function (e) { return e.innerHTML = "<div class='a'></div><div class='a i'></div>", e.firstChild.className = "i", 2 === e.getElementsByClassName("i").length })), r.getById = ce((function (e) { return d.appendChild(e).id = x, !n.getElementsByName || !n.getElementsByName(x).length })), r.getById ? (o.find.ID = function (e, t) { if (typeof t.getElementById !== A && h) { var n = t.getElementById(e); return n && n.parentNode ? [n] : [] } }, o.filter.ID = function (e) { var t = e.replace(re, ie); return function (e) { return e.getAttribute("id") === t } }) : (delete o.find.ID, o.filter.ID = function (e) { var t = e.replace(re, ie); return function (e) { var n = typeof e.getAttributeNode !== A && e.getAttributeNode("id"); return n && n.value === t } }), o.find.TAG = r.getElementsByTagName ? function (e, n) { return typeof n.getElementsByTagName !== A ? n.getElementsByTagName(e) : t } : function (e, t) { var n, r = [], i = 0, o = t.getElementsByTagName(e); if ("*" === e) { for (; n = o[i++];)1 === n.nodeType && r.push(n); return r } return o }, o.find.CLASS = r.getElementsByClassName && function (e, n) { return typeof n.getElementsByClassName !== A && h ? n.getElementsByClassName(e) : t }, g = [], m = [], (r.qsa = K.test(n.querySelectorAll)) && (ce((function (e) { e.innerHTML = "<select><option selected=''></option></select>", e.querySelectorAll("[selected]").length || m.push("\\[" + P + "*(?:value|" + B + ")"), e.querySelectorAll(":checked").length || m.push(":checked") })), ce((function (e) { var t = n.createElement("input"); t.setAttribute("type", "hidden"), e.appendChild(t).setAttribute("t", ""), e.querySelectorAll("[t^='']").length && m.push("[*^$]=" + P + "*(?:''|\"\")"), e.querySelectorAll(":enabled").length || m.push(":enabled", ":disabled"), e.querySelectorAll("*,:x"), m.push(",.*:") }))), (r.matchesSelector = K.test(y = d.webkitMatchesSelector || d.mozMatchesSelector || d.oMatchesSelector || d.msMatchesSelector)) && ce((function (e) { r.disconnectedMatch = y.call(e, "div"), y.call(e, "[s!='']:x"), g.push("!=", I) })), m = m.length && RegExp(m.join("|")), g = g.length && RegExp(g.join("|")), v = K.test(d.contains) || d.compareDocumentPosition ? function (e, t) { var n = 9 === e.nodeType ? e.documentElement : e, r = t && t.parentNode; return e === r || !(!r || 1 !== r.nodeType || !(n.contains ? n.contains(r) : e.compareDocumentPosition && 16 & e.compareDocumentPosition(r))) } : function (e, t) { if (t) for (; t = t.parentNode;)if (t === e) return !0; return !1 }, S = d.compareDocumentPosition ? function (e, t) { if (e === t) return E = !0, 0; var i = t.compareDocumentPosition && e.compareDocumentPosition && e.compareDocumentPosition(t); return i ? 1 & i || !r.sortDetached && t.compareDocumentPosition(e) === i ? e === n || v(_, e) ? -1 : t === n || v(_, t) ? 1 : l ? F.call(l, e) - F.call(l, t) : 0 : 4 & i ? -1 : 1 : e.compareDocumentPosition ? -1 : 1 } : function (e, t) { var r, i = 0, o = e.parentNode, a = t.parentNode, s = [e], c = [t]; if (e === t) return E = !0, 0; if (!o || !a) return e === n ? -1 : t === n ? 1 : o ? -1 : a ? 1 : l ? F.call(l, e) - F.call(l, t) : 0; if (o === a) return le(e, t); for (r = e; r = r.parentNode;)s.unshift(r); for (r = t; r = r.parentNode;)c.unshift(r); for (; s[i] === c[i];)i++; return i ? le(s[i], c[i]) : s[i] === _ ? -1 : c[i] === _ ? 1 : 0 }, n) : p }, oe.matches = function (e, t) { return oe(e, null, null, t) }, oe.matchesSelector = function (e, t) { if ((e.ownerDocument || e) !== p && f(e), t = t.replace(V, "='$1']"), !(!r.matchesSelector || !h || g && g.test(t) || m && m.test(t))) try { var n = y.call(e, t); if (n || r.disconnectedMatch || e.document && 11 !== e.document.nodeType) return n } catch (e) { } return oe(t, p, null, [e]).length > 0 }, oe.contains = function (e, t) { return (e.ownerDocument || e) !== p && f(e), v(e, t) }, oe.attr = function (e, n) { (e.ownerDocument || e) !== p && f(e); var i = o.attrHandle[n.toLowerCase()], a = i && D.call(o.attrHandle, n.toLowerCase()) ? i(e, n, !h) : t; return a === t ? r.attributes || !h ? e.getAttribute(n) : (a = e.getAttributeNode(n)) && a.specified ? a.value : null : a }, oe.error = function (e) { throw Error("Syntax error, unrecognized expression: " + e) }, oe.uniqueSort = function (e) { var t, n = [], i = 0, o = 0; if (E = !r.detectDuplicates, l = !r.sortStable && e.slice(0), e.sort(S), E) { for (; t = e[o++];)t === e[o] && (i = n.push(o)); for (; i--;)e.splice(n[i], 1) } return e }, a = oe.getText = function (e) { var t, n = "", r = 0, i = e.nodeType; if (i) { if (1 === i || 9 === i || 11 === i) { if ("string" == typeof e.textContent) return e.textContent; for (e = e.firstChild; e; e = e.nextSibling)n += a(e) } else if (3 === i || 4 === i) return e.nodeValue } else for (; t = e[r]; r++)n += a(t); return n }, o = oe.selectors = { cacheLength: 50, createPseudo: se, match: G, attrHandle: {}, find: {}, relative: { ">": { dir: "parentNode", first: !0 }, " ": { dir: "parentNode" }, "+": { dir: "previousSibling", first: !0 }, "~": { dir: "previousSibling" } }, preFilter: { ATTR: function (e) { return e[1] = e[1].replace(re, ie), e[3] = (e[4] || e[5] || "").replace(re, ie), "~=" === e[2] && (e[3] = " " + e[3] + " "), e.slice(0, 4) }, CHILD: function (e) { return e[1] = e[1].toLowerCase(), "nth" === e[1].slice(0, 3) ? (e[3] || oe.error(e[0]), e[4] = +(e[4] ? e[5] + (e[6] || 1) : 2 * ("even" === e[3] || "odd" === e[3])), e[5] = +(e[7] + e[8] || "odd" === e[3])) : e[3] && oe.error(e[0]), e }, PSEUDO: function (e) { var n, r = !e[5] && e[2]; return G.CHILD.test(e[0]) ? null : (e[3] && e[4] !== t ? e[2] = e[4] : r && J.test(r) && (n = me(r, !0)) && (n = r.indexOf(")", r.length - n) - r.length) && (e[0] = e[0].slice(0, n), e[2] = r.slice(0, n)), e.slice(0, 3)) } }, filter: { TAG: function (e) { var t = e.replace(re, ie).toLowerCase(); return "*" === e ? function () { return !0 } : function (e) { return e.nodeName && e.nodeName.toLowerCase() === t } }, CLASS: function (e) { var t = C[e + " "]; return t || (t = RegExp("(^|" + P + ")" + e + "(" + P + "|$)")) && C(e, (function (e) { return t.test("string" == typeof e.className && e.className || typeof e.getAttribute !== A && e.getAttribute("class") || "") })) }, ATTR: function (e, t, n) { return function (r) { var i = oe.attr(r, e); return null == i ? "!=" === t : !t || (i += "", "=" === t ? i === n : "!=" === t ? i !== n : "^=" === t ? n && 0 === i.indexOf(n) : "*=" === t ? n && i.indexOf(n) > -1 : "$=" === t ? n && i.slice(-n.length) === n : "~=" === t ? (" " + i + " ").indexOf(n) > -1 : "|=" === t && (i === n || i.slice(0, n.length + 1) === n + "-")) } }, CHILD: function (e, t, n, r, i) { var o = "nth" !== e.slice(0, 3), a = "last" !== e.slice(-4), s = "of-type" === t; return 1 === r && 0 === i ? function (e) { return !!e.parentNode } : function (t, n, c) { var u, l, f, p, d, h, m = o !== a ? "nextSibling" : "previousSibling", g = t.parentNode, y = s && t.nodeName.toLowerCase(), v = !c && !s; if (g) { if (o) { for (; m;) { for (f = t; f = f[m];)if (s ? f.nodeName.toLowerCase() === y : 1 === f.nodeType) return !1; h = m = "only" === e && !h && "nextSibling" } return !0 } if (h = [a ? g.firstChild : g.lastChild], a && v) { for (d = (u = (l = g[x] || (g[x] = {}))[e] || [])[0] === w && u[1], p = u[0] === w && u[2], f = d && g.childNodes[d]; f = ++d && f && f[m] || (p = d = 0) || h.pop();)if (1 === f.nodeType && ++p && f === t) { l[e] = [w, d, p]; break } } else if (v && (u = (t[x] || (t[x] = {}))[e]) && u[0] === w) p = u[1]; else for (; (f = ++d && f && f[m] || (p = d = 0) || h.pop()) && ((s ? f.nodeName.toLowerCase() !== y : 1 !== f.nodeType) || !++p || (v && ((f[x] || (f[x] = {}))[e] = [w, p]), f !== t));); return (p -= i) === r || 0 == p % r && p / r >= 0 } } }, PSEUDO: function (e, t) { var n, r = o.pseudos[e] || o.setFilters[e.toLowerCase()] || oe.error("unsupported pseudo: " + e); return r[x] ? r(t) : r.length > 1 ? (n = [e, e, "", t], o.setFilters.hasOwnProperty(e.toLowerCase()) ? se((function (e, n) { for (var i, o = r(e, t), a = o.length; a--;)e[i = F.call(e, o[a])] = !(n[i] = o[a]) })) : function (e) { return r(e, 0, n) }) : r } }, pseudos: { not: se((function (e) { var t = [], n = [], r = c(e.replace(z, "$1")); return r[x] ? se((function (e, t, n, i) { for (var o, a = r(e, null, i, []), s = e.length; s--;)(o = a[s]) && (e[s] = !(t[s] = o)) })) : function (e, i, o) { return t[0] = e, r(t, null, o, n), !n.pop() } })), has: se((function (e) { return function (t) { return oe(e, t).length > 0 } })), contains: se((function (e) { return function (t) { return (t.textContent || t.innerText || a(t)).indexOf(e) > -1 } })), lang: se((function (e) { return Q.test(e || "") || oe.error("unsupported lang: " + e), e = e.replace(re, ie).toLowerCase(), function (t) { var n; do { if (n = h ? t.lang : t.getAttribute("xml:lang") || t.getAttribute("lang")) return (n = n.toLowerCase()) === e || 0 === n.indexOf(e + "-") } while ((t = t.parentNode) && 1 === t.nodeType); return !1 } })), target: function (t) { var n = e.location && e.location.hash; return n && n.slice(1) === t.id }, root: function (e) { return e === d }, focus: function (e) { return e === p.activeElement && (!p.hasFocus || p.hasFocus()) && !!(e.type || e.href || ~e.tabIndex) }, enabled: function (e) { return !1 === e.disabled }, disabled: function (e) { return !0 === e.disabled }, checked: function (e) { var t = e.nodeName.toLowerCase(); return "input" === t && !!e.checked || "option" === t && !!e.selected }, selected: function (e) { return e.parentNode && e.parentNode.selectedIndex, !0 === e.selected }, empty: function (e) { for (e = e.firstChild; e; e = e.nextSibling)if (e.nodeName > "@" || 3 === e.nodeType || 4 === e.nodeType) return !1; return !0 }, parent: function (e) { return !o.pseudos.empty(e) }, header: function (e) { return te.test(e.nodeName) }, input: function (e) { return ee.test(e.nodeName) }, button: function (e) { var t = e.nodeName.toLowerCase(); return "input" === t && "button" === e.type || "button" === t }, text: function (e) { var t; return "input" === e.nodeName.toLowerCase() && "text" === e.type && (null == (t = e.getAttribute("type")) || t.toLowerCase() === e.type) }, first: de((function () { return [0] })), last: de((function (e, t) { return [t - 1] })), eq: de((function (e, t, n) { return [0 > n ? n + t : n] })), even: de((function (e, t) { for (var n = 0; t > n; n += 2)e.push(n); return e })), odd: de((function (e, t) { for (var n = 1; t > n; n += 2)e.push(n); return e })), lt: de((function (e, t, n) { for (var r = 0 > n ? n + t : n; --r >= 0;)e.push(r); return e })), gt: de((function (e, t, n) { for (var r = 0 > n ? n + t : n; t > ++r;)e.push(r); return e })) } }, o.pseudos.nth = o.pseudos.eq, { radio: !0, checkbox: !0, file: !0, password: !0, image: !0 }) o.pseudos[n] = fe(n); for (n in { submit: !0, reset: !0 }) o.pseudos[n] = pe(n); function he() { } function me(e, t) { var n, r, i, a, s, c, u, l = N[e + " "]; if (l) return t ? 0 : l.slice(0); for (s = e, c = [], u = o.preFilter; s;) { for (a in (!n || (r = X.exec(s))) && (r && (s = s.slice(r[0].length) || s), c.push(i = [])), n = !1, (r = U.exec(s)) && (n = r.shift(), i.push({ value: n, type: r[0].replace(z, " ") }), s = s.slice(n.length)), o.filter) !(r = G[a].exec(s)) || u[a] && !(r = u[a](r)) || (n = r.shift(), i.push({ value: n, type: a, matches: r }), s = s.slice(n.length)); if (!n) break } return t ? s.length : s ? oe.error(e) : N(e, c).slice(0) } function ge(e) { for (var t = 0, n = e.length, r = ""; n > t; t++)r += e[t].value; return r } function ye(e, t, n) { var r = t.dir, o = n && "parentNode" === r, a = T++; return t.first ? function (t, n, i) { for (; t = t[r];)if (1 === t.nodeType || o) return e(t, n, i) } : function (t, n, s) { var c, u, l, f = w + " " + a; if (s) { for (; t = t[r];)if ((1 === t.nodeType || o) && e(t, n, s)) return !0 } else for (; t = t[r];)if (1 === t.nodeType || o) if ((u = (l = t[x] || (t[x] = {}))[r]) && u[0] === f) { if (!0 === (c = u[1]) || c === i) return !0 === c } else if ((u = l[r] = [f])[1] = e(t, n, s) || i, !0 === u[1]) return !0 } } function ve(e) { return e.length > 1 ? function (t, n, r) { for (var i = e.length; i--;)if (!e[i](t, n, r)) return !1; return !0 } : e[0] } function xe(e, t, n, r, i) { for (var o, a = [], s = 0, c = e.length, u = null != t; c > s; s++)(o = e[s]) && (!n || n(o, r, i)) && (a.push(o), u && t.push(s)); return a } function be(e, t, n, r, i, o) { return r && !r[x] && (r = be(r)), i && !i[x] && (i = be(i, o)), se((function (o, a, s, c) { var u, l, f, p = [], d = [], h = a.length, m = o || function (e, t, n) { for (var r = 0, i = t.length; i > r; r++)oe(e, t[r], n); return n }(t || "*", s.nodeType ? [s] : s, []), g = !e || !o && t ? m : xe(m, p, e, s, c), y = n ? i || (o ? e : h || r) ? [] : a : g; if (n && n(g, y, s, c), r) for (u = xe(y, d), r(u, [], s, c), l = u.length; l--;)(f = u[l]) && (y[d[l]] = !(g[d[l]] = f)); if (o) { if (i || e) { if (i) { for (u = [], l = y.length; l--;)(f = y[l]) && u.push(g[l] = f); i(null, y = [], u, c) } for (l = y.length; l--;)(f = y[l]) && (u = i ? F.call(o, f) : p[l]) > -1 && (o[u] = !(a[u] = f)) } } else y = xe(y === a ? y.splice(h, y.length) : y), i ? i(null, a, y, c) : M.apply(a, y) })) } function _e(e) { for (var t, n, r, i = e.length, a = o.relative[e[0].type], s = a || o.relative[" "], c = a ? 1 : 0, l = ye((function (e) { return e === t }), s, !0), f = ye((function (e) { return F.call(t, e) > -1 }), s, !0), p = [function (e, n, r) { return !a && (r || n !== u) || ((t = n).nodeType ? l(e, n, r) : f(e, n, r)) }]; i > c; c++)if (n = o.relative[e[c].type]) p = [ye(ve(p), n)]; else { if ((n = o.filter[e[c].type].apply(null, e[c].matches))[x]) { for (r = ++c; i > r && !o.relative[e[r].type]; r++); return be(c > 1 && ve(p), c > 1 && ge(e.slice(0, c - 1).concat({ value: " " === e[c - 2].type ? "*" : "" })).replace(z, "$1"), n, r > c && _e(e.slice(c, r)), i > r && _e(e = e.slice(r)), i > r && ge(e)) } p.push(n) } return ve(p) } function we(e, t) { var n = 0, r = t.length > 0, a = e.length > 0, s = function (s, c, l, f, d) { var h, m, g, y = [], v = 0, x = "0", b = s && [], _ = null != d, T = u, C = s || a && o.find.TAG("*", d && c.parentNode || c), N = w += null == T ? 1 : Math.random() || .1; for (_ && (u = c !== p && c, i = n); null != (h = C[x]); x++) { if (a && h) { for (m = 0; g = e[m++];)if (g(h, c, l)) { f.push(h); break } _ && (w = N, i = ++n) } r && ((h = !g && h) && v-- , s && b.push(h)) } if (v += x, r && x !== v) { for (m = 0; g = t[m++];)g(b, y, c, l); if (s) { if (v > 0) for (; x--;)b[x] || y[x] || (y[x] = H.call(f)); y = xe(y) } M.apply(f, y), _ && !s && y.length > 0 && v + t.length > 1 && oe.uniqueSort(f) } return _ && (w = N, u = T), b }; return r ? se(s) : s } function Te(e, t, n, i) { var a, s, u, l, f, p = me(e); if (!i && 1 === p.length) { if ((s = p[0] = p[0].slice(0)).length > 2 && "ID" === (u = s[0]).type && r.getById && 9 === t.nodeType && h && o.relative[s[1].type]) { if (!(t = (o.find.ID(u.matches[0].replace(re, ie), t) || [])[0])) return n; e = e.slice(s.shift().value.length) } for (a = G.needsContext.test(e) ? 0 : s.length; a-- && (u = s[a], !o.relative[l = u.type]);)if ((f = o.find[l]) && (i = f(u.matches[0].replace(re, ie), Y.test(s[0].type) && t.parentNode || t))) { if (s.splice(a, 1), !(e = i.length && ge(s))) return M.apply(n, i), n; break } } return c(e, p)(i, t, !h, n, Y.test(e)), n } he.prototype = o.filters = o.pseudos, o.setFilters = new he, c = oe.compile = function (e, t) { var n, r = [], i = [], o = k[e + " "]; if (!o) { for (t || (t = me(e)), n = t.length; n--;)(o = _e(t[n]))[x] ? r.push(o) : i.push(o); o = k(e, we(i, r)) } return o }, r.sortStable = x.split("").sort(S).join("") === x, r.detectDuplicates = E, f(), r.sortDetached = ce((function (e) { return 1 & e.compareDocumentPosition(p.createElement("div")) })), ce((function (e) { return e.innerHTML = "<a href='#'></a>", "#" === e.firstChild.getAttribute("href") })) || ue("type|href|height|width", (function (e, n, r) { return r ? t : e.getAttribute(n, "type" === n.toLowerCase() ? 1 : 2) })), r.attributes && ce((function (e) { return e.innerHTML = "<input/>", e.firstChild.setAttribute("value", ""), "" === e.firstChild.getAttribute("value") })) || ue("value", (function (e, n, r) { return r || "input" !== e.nodeName.toLowerCase() ? t : e.defaultValue })), ce((function (e) { return null == e.getAttribute("disabled") })) || ue(B, (function (e, n, r) { var i; return r ? t : (i = e.getAttributeNode(n)) && i.specified ? i.value : !0 === e[n] ? n.toLowerCase() : null })), b.find = oe, b.expr = oe.selectors, b.expr[":"] = b.expr.pseudos, b.unique = oe.uniqueSort, b.text = oe.getText, b.isXMLDoc = oe.isXML, b.contains = oe.contains }(e); var O = {}; b.Callbacks = function (e) { e = "string" == typeof e ? O[e] || function (e) { var t = O[e] = {}; return b.each(e.match(w) || [], (function (e, n) { t[n] = !0 })), t }(e) : b.extend({}, e); var n, r, i, o, a, s, c = [], u = !e.once && [], l = function (t) { for (r = e.memory && t, i = !0, a = s || 0, s = 0, o = c.length, n = !0; c && o > a; a++)if (!1 === c[a].apply(t[0], t[1]) && e.stopOnFalse) { r = !1; break } n = !1, c && (u ? u.length && l(u.shift()) : r ? c = [] : f.disable()) }, f = { add: function () { if (c) { var t = c.length; (function t(n) { b.each(n, (function (n, r) { var i = b.type(r); "function" === i ? e.unique && f.has(r) || c.push(r) : r && r.length && "string" !== i && t(r) })) })(arguments), n ? o = c.length : r && (s = t, l(r)) } return this }, remove: function () { return c && b.each(arguments, (function (e, t) { for (var r; (r = b.inArray(t, c, r)) > -1;)c.splice(r, 1), n && (o >= r && o-- , a >= r && a--) })), this }, has: function (e) { return e ? b.inArray(e, c) > -1 : !(!c || !c.length) }, empty: function () { return c = [], o = 0, this }, disable: function () { return c = u = r = t, this }, disabled: function () { return !c }, lock: function () { return u = t, r || f.disable(), this }, locked: function () { return !u }, fireWith: function (e, t) { return !c || i && !u || (t = [e, (t = t || []).slice ? t.slice() : t], n ? u.push(t) : l(t)), this }, fire: function () { return f.fireWith(this, arguments), this }, fired: function () { return !!i } }; return f }, b.extend({ Deferred: function (e) { var t = [["resolve", "done", b.Callbacks("once memory"), "resolved"], ["reject", "fail", b.Callbacks("once memory"), "rejected"], ["notify", "progress", b.Callbacks("memory")]], n = "pending", r = { state: function () { return n }, always: function () { return i.done(arguments).fail(arguments), this }, then: function () { var e = arguments; return b.Deferred((function (n) { b.each(t, (function (t, o) { var a = o[0], s = b.isFunction(e[t]) && e[t]; i[o[1]]((function () { var e = s && s.apply(this, arguments); e && b.isFunction(e.promise) ? e.promise().done(n.resolve).fail(n.reject).progress(n.notify) : n[a + "With"](this === r ? n.promise() : this, s ? [e] : arguments) })) })), e = null })).promise() }, promise: function (e) { return null != e ? b.extend(e, r) : r } }, i = {}; return r.pipe = r.then, b.each(t, (function (e, o) { var a = o[2], s = o[3]; r[o[1]] = a.add, s && a.add((function () { n = s }), t[1 ^ e][2].disable, t[2][2].lock), i[o[0]] = function () { return i[o[0] + "With"](this === i ? r : this, arguments), this }, i[o[0] + "With"] = a.fireWith })), r.promise(i), e && e.call(i, i), i }, when: function (e) { var t, n, r, i = 0, o = m.call(arguments), a = o.length, s = 1 !== a || e && b.isFunction(e.promise) ? a : 0, c = 1 === s ? e : b.Deferred(), u = function (e, n, r) { return function (i) { n[e] = this, r[e] = arguments.length > 1 ? m.call(arguments) : i, r === t ? c.notifyWith(n, r) : --s || c.resolveWith(n, r) } }; if (a > 1) for (t = Array(a), n = Array(a), r = Array(a); a > i; i++)o[i] && b.isFunction(o[i].promise) ? o[i].promise().done(u(i, r, o)).fail(c.reject).progress(u(i, n, t)) : --s; return s || c.resolveWith(r, o), c.promise() } }), b.support = function (t) { var n, r, o, s, c, u, l, f, p, d = a.createElement("div"); if (d.setAttribute("className", "t"), d.innerHTML = "  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>", n = d.getElementsByTagName("*") || [], !(r = d.getElementsByTagName("a")[0]) || !r.style || !n.length) return t; u = (s = a.createElement("select")).appendChild(a.createElement("option")), o = d.getElementsByTagName("input")[0], r.style.cssText = "top:1px;float:left;opacity:.5", t.getSetAttribute = "t" !== d.className, t.leadingWhitespace = 3 === d.firstChild.nodeType, t.tbody = !d.getElementsByTagName("tbody").length, t.htmlSerialize = !!d.getElementsByTagName("link").length, t.style = /top/.test(r.getAttribute("style")), t.hrefNormalized = "/a" === r.getAttribute("href"), t.opacity = /^0.5/.test(r.style.opacity), t.cssFloat = !!r.style.cssFloat, t.checkOn = !!o.value, t.optSelected = u.selected, t.enctype = !!a.createElement("form").enctype, t.html5Clone = "<:nav></:nav>" !== a.createElement("nav").cloneNode(!0).outerHTML, t.inlineBlockNeedsLayout = !1, t.shrinkWrapBlocks = !1, t.pixelPosition = !1, t.deleteExpando = !0, t.noCloneEvent = !0, t.reliableMarginRight = !0, t.boxSizingReliable = !0, o.checked = !0, t.noCloneChecked = o.cloneNode(!0).checked, s.disabled = !0, t.optDisabled = !u.disabled; try { delete d.test } catch (e) { t.deleteExpando = !1 } for (p in (o = a.createElement("input")).setAttribute("value", ""), t.input = "" === o.getAttribute("value"), o.value = "t", o.setAttribute("type", "radio"), t.radioValue = "t" === o.value, o.setAttribute("checked", "t"), o.setAttribute("name", "t"), (c = a.createDocumentFragment()).appendChild(o), t.appendChecked = o.checked, t.checkClone = c.cloneNode(!0).cloneNode(!0).lastChild.checked, d.attachEvent && (d.attachEvent("onclick", (function () { t.noCloneEvent = !1 })), d.cloneNode(!0).click()), { submit: !0, change: !0, focusin: !0 }) d.setAttribute(l = "on" + p, "t"), t[p + "Bubbles"] = l in e || !1 === d.attributes[l].expando; for (p in d.style.backgroundClip = "content-box", d.cloneNode(!0).style.backgroundClip = "", t.clearCloneStyle = "content-box" === d.style.backgroundClip, b(t)) break; return t.ownLast = "0" !== p, b((function () { var n, r, o, s = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;", c = a.getElementsByTagName("body")[0]; c && ((n = a.createElement("div")).style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px", c.appendChild(n).appendChild(d), d.innerHTML = "<table><tr><td></td><td>t</td></tr></table>", (o = d.getElementsByTagName("td"))[0].style.cssText = "padding:0;margin:0;border:0;display:none", f = 0 === o[0].offsetHeight, o[0].style.display = "", o[1].style.display = "none", t.reliableHiddenOffsets = f && 0 === o[0].offsetHeight, d.innerHTML = "", d.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;", b.swap(c, null != c.style.zoom ? { zoom: 1 } : {}, (function () { t.boxSizing = 4 === d.offsetWidth })), e.getComputedStyle && (t.pixelPosition = "1%" !== (e.getComputedStyle(d, null) || {}).top, t.boxSizingReliable = "4px" === (e.getComputedStyle(d, null) || { width: "4px" }).width, (r = d.appendChild(a.createElement("div"))).style.cssText = d.style.cssText = s, r.style.marginRight = r.style.width = "0", d.style.width = "1px", t.reliableMarginRight = !parseFloat((e.getComputedStyle(r, null) || {}).marginRight)), typeof d.style.zoom !== i && (d.innerHTML = "", d.style.cssText = s + "width:1px;padding:1px;display:inline;zoom:1", t.inlineBlockNeedsLayout = 3 === d.offsetWidth, d.style.display = "block", d.innerHTML = "<div></div>", d.firstChild.style.width = "5px", t.shrinkWrapBlocks = 3 !== d.offsetWidth, t.inlineBlockNeedsLayout && (c.style.zoom = 1)), c.removeChild(n), n = d = o = r = null) })), n = s = c = u = r = o = null, t }({}); var F = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, B = /([A-Z])/g; function P(e, n, r, i) { if (b.acceptData(e)) { var o, a, s = b.expando, c = e.nodeType, u = c ? b.cache : e, l = c ? e[s] : e[s] && s; if (l && u[l] && (i || u[l].data) || r !== t || "string" != typeof n) return l || (l = c ? e[s] = f.pop() || b.guid++ : s), u[l] || (u[l] = c ? {} : { toJSON: b.noop }), ("object" == typeof n || "function" == typeof n) && (i ? u[l] = b.extend(u[l], n) : u[l].data = b.extend(u[l].data, n)), a = u[l], i || (a.data || (a.data = {}), a = a.data), r !== t && (a[b.camelCase(n)] = r), "string" == typeof n ? null == (o = a[n]) && (o = a[b.camelCase(n)]) : o = a, o } } function $(e, t, n) { if (b.acceptData(e)) { var r, i, o = e.nodeType, a = o ? b.cache : e, s = o ? e[b.expando] : b.expando; if (a[s]) { if (t && (r = n ? a[s] : a[s].data)) { b.isArray(t) ? t = t.concat(b.map(t, b.camelCase)) : t in r ? t = [t] : t = (t = b.camelCase(t)) in r ? [t] : t.split(" "), i = t.length; for (; i--;)delete r[t[i]]; if (n ? !W(r) : !b.isEmptyObject(r)) return } (n || (delete a[s].data, W(a[s]))) && (o ? b.cleanData([e], !0) : b.support.deleteExpando || a != a.window ? delete a[s] : a[s] = null) } } } function R(e, n, r) { if (r === t && 1 === e.nodeType) { var i = "data-" + n.replace(B, "-$1").toLowerCase(); if ("string" == typeof (r = e.getAttribute(i))) { try { r = "true" === r || "false" !== r && ("null" === r ? null : +r + "" === r ? +r : F.test(r) ? b.parseJSON(r) : r) } catch (e) { } b.data(e, n, r) } else r = t } return r } function W(e) { var t; for (t in e) if (("data" !== t || !b.isEmptyObject(e[t])) && "toJSON" !== t) return !1; return !0 } b.extend({ cache: {}, noData: { applet: !0, embed: !0, object: "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" }, hasData: function (e) { return !!(e = e.nodeType ? b.cache[e[b.expando]] : e[b.expando]) && !W(e) }, data: function (e, t, n) { return P(e, t, n) }, removeData: function (e, t) { return $(e, t) }, _data: function (e, t, n) { return P(e, t, n, !0) }, _removeData: function (e, t) { return $(e, t, !0) }, acceptData: function (e) { if (e.nodeType && 1 !== e.nodeType && 9 !== e.nodeType) return !1; var t = e.nodeName && b.noData[e.nodeName.toLowerCase()]; return !t || !0 !== t && e.getAttribute("classid") === t } }), b.fn.extend({ data: function (e, n) { var r, i, o = null, a = 0, s = this[0]; if (e === t) { if (this.length && (o = b.data(s), 1 === s.nodeType && !b._data(s, "parsedAttrs"))) { for (r = s.attributes; r.length > a; a++)0 === (i = r[a].name).indexOf("data-") && R(s, i = b.camelCase(i.slice(5)), o[i]); b._data(s, "parsedAttrs", !0) } return o } return "object" == typeof e ? this.each((function () { b.data(this, e) })) : arguments.length > 1 ? this.each((function () { b.data(this, e, n) })) : s ? R(s, e, b.data(s, e)) : null }, removeData: function (e) { return this.each((function () { b.removeData(this, e) })) } }), b.extend({ queue: function (e, n, r) { var i; return e ? (n = (n || "fx") + "queue", i = b._data(e, n), r && (!i || b.isArray(r) ? i = b._data(e, n, b.makeArray(r)) : i.push(r)), i || []) : t }, dequeue: function (e, t) { t = t || "fx"; var n = b.queue(e, t), r = n.length, i = n.shift(), o = b._queueHooks(e, t); "inprogress" === i && (i = n.shift(), r--), i && ("fx" === t && n.unshift("inprogress"), delete o.stop, i.call(e, (function () { b.dequeue(e, t) }), o)), !r && o && o.empty.fire() }, _queueHooks: function (e, t) { var n = t + "queueHooks"; return b._data(e, n) || b._data(e, n, { empty: b.Callbacks("once memory").add((function () { b._removeData(e, t + "queue"), b._removeData(e, n) })) }) } }), b.fn.extend({ queue: function (e, n) { var r = 2; return "string" != typeof e && (n = e, e = "fx", r--), r > arguments.length ? b.queue(this[0], e) : n === t ? this : this.each((function () { var t = b.queue(this, e, n); b._queueHooks(this, e), "fx" === e && "inprogress" !== t[0] && b.dequeue(this, e) })) }, dequeue: function (e) { return this.each((function () { b.dequeue(this, e) })) }, delay: function (e, t) { return e = b.fx && b.fx.speeds[e] || e, t = t || "fx", this.queue(t, (function (t, n) { var r = setTimeout(t, e); n.stop = function () { clearTimeout(r) } })) }, clearQueue: function (e) { return this.queue(e || "fx", []) }, promise: function (e, n) { var r, i = 1, o = b.Deferred(), a = this, s = this.length, c = function () { --i || o.resolveWith(a, [a]) }; for ("string" != typeof e && (n = e, e = t), e = e || "fx"; s--;)(r = b._data(a[s], e + "queueHooks")) && r.empty && (i++ , r.empty.add(c)); return c(), o.promise(n) } }); var I, z, X = /[\t\r\n\f]/g, U = /\r/g, Y = /^(?:input|select|textarea|button|object)$/i, V = /^(?:a|area)$/i, J = /^(?:checked|selected)$/i, Q = b.support.getSetAttribute, G = b.support.input; b.fn.extend({ attr: function (e, t) { return b.access(this, b.attr, e, t, arguments.length > 1) }, removeAttr: function (e) { return this.each((function () { b.removeAttr(this, e) })) }, prop: function (e, t) { return b.access(this, b.prop, e, t, arguments.length > 1) }, removeProp: function (e) { return e = b.propFix[e] || e, this.each((function () { try { this[e] = t, delete this[e] } catch (e) { } })) }, addClass: function (e) { var t, n, r, i, o, a = 0, s = this.length, c = "string" == typeof e && e; if (b.isFunction(e)) return this.each((function (t) { b(this).addClass(e.call(this, t, this.className)) })); if (c) for (t = (e || "").match(w) || []; s > a; a++)if (r = 1 === (n = this[a]).nodeType && (n.className ? (" " + n.className + " ").replace(X, " ") : " ")) { for (o = 0; i = t[o++];)0 > r.indexOf(" " + i + " ") && (r += i + " "); n.className = b.trim(r) } return this }, removeClass: function (e) { var t, n, r, i, o, a = 0, s = this.length, c = 0 === arguments.length || "string" == typeof e && e; if (b.isFunction(e)) return this.each((function (t) { b(this).removeClass(e.call(this, t, this.className)) })); if (c) for (t = (e || "").match(w) || []; s > a; a++)if (r = 1 === (n = this[a]).nodeType && (n.className ? (" " + n.className + " ").replace(X, " ") : "")) { for (o = 0; i = t[o++];)for (; r.indexOf(" " + i + " ") >= 0;)r = r.replace(" " + i + " ", " "); n.className = e ? b.trim(r) : "" } return this }, toggleClass: function (e, t) { var n = typeof e; return "boolean" == typeof t && "string" === n ? t ? this.addClass(e) : this.removeClass(e) : b.isFunction(e) ? this.each((function (n) { b(this).toggleClass(e.call(this, n, this.className, t), t) })) : this.each((function () { if ("string" === n) for (var t, r = 0, o = b(this), a = e.match(w) || []; t = a[r++];)o.hasClass(t) ? o.removeClass(t) : o.addClass(t); else (n === i || "boolean" === n) && (this.className && b._data(this, "__className__", this.className), this.className = this.className || !1 === e ? "" : b._data(this, "__className__") || "") })) }, hasClass: function (e) { for (var t = " " + e + " ", n = 0, r = this.length; r > n; n++)if (1 === this[n].nodeType && (" " + this[n].className + " ").replace(X, " ").indexOf(t) >= 0) return !0; return !1 }, val: function (e) { var n, r, i, o = this[0]; return arguments.length ? (i = b.isFunction(e), this.each((function (n) { var o; 1 === this.nodeType && (null == (o = i ? e.call(this, n, b(this).val()) : e) ? o = "" : "number" == typeof o ? o += "" : b.isArray(o) && (o = b.map(o, (function (e) { return null == e ? "" : e + "" }))), (r = b.valHooks[this.type] || b.valHooks[this.nodeName.toLowerCase()]) && "set" in r && r.set(this, o, "value") !== t || (this.value = o)) }))) : o ? (r = b.valHooks[o.type] || b.valHooks[o.nodeName.toLowerCase()]) && "get" in r && (n = r.get(o, "value")) !== t ? n : "string" == typeof (n = o.value) ? n.replace(U, "") : null == n ? "" : n : void 0 } }), b.extend({ valHooks: { option: { get: function (e) { var t = b.find.attr(e, "value"); return null != t ? t : e.text } }, select: { get: function (e) { for (var t, n, r = e.options, i = e.selectedIndex, o = "select-one" === e.type || 0 > i, a = o ? null : [], s = o ? i + 1 : r.length, c = 0 > i ? s : o ? i : 0; s > c; c++)if (!(!(n = r[c]).selected && c !== i || (b.support.optDisabled ? n.disabled : null !== n.getAttribute("disabled")) || n.parentNode.disabled && b.nodeName(n.parentNode, "optgroup"))) { if (t = b(n).val(), o) return t; a.push(t) } return a }, set: function (e, t) { for (var n, r, i = e.options, o = b.makeArray(t), a = i.length; a--;)((r = i[a]).selected = b.inArray(b(r).val(), o) >= 0) && (n = !0); return n || (e.selectedIndex = -1), o } } }, attr: function (e, n, r) { var o, a, s = e.nodeType; if (e && 3 !== s && 8 !== s && 2 !== s) return typeof e.getAttribute === i ? b.prop(e, n, r) : (1 === s && b.isXMLDoc(e) || (n = n.toLowerCase(), o = b.attrHooks[n] || (b.expr.match.bool.test(n) ? z : I)), r === t ? o && "get" in o && null !== (a = o.get(e, n)) ? a : null == (a = b.find.attr(e, n)) ? t : a : null !== r ? o && "set" in o && (a = o.set(e, r, n)) !== t ? a : (e.setAttribute(n, r + ""), r) : (b.removeAttr(e, n), t)) }, removeAttr: function (e, t) { var n, r, i = 0, o = t && t.match(w); if (o && 1 === e.nodeType) for (; n = o[i++];)r = b.propFix[n] || n, b.expr.match.bool.test(n) ? G && Q || !J.test(n) ? e[r] = !1 : e[b.camelCase("default-" + n)] = e[r] = !1 : b.attr(e, n, ""), e.removeAttribute(Q ? n : r) }, attrHooks: { type: { set: function (e, t) { if (!b.support.radioValue && "radio" === t && b.nodeName(e, "input")) { var n = e.value; return e.setAttribute("type", t), n && (e.value = n), t } } } }, propFix: { for: "htmlFor", class: "className" }, prop: function (e, n, r) { var i, o, a = e.nodeType; if (e && 3 !== a && 8 !== a && 2 !== a) return (1 !== a || !b.isXMLDoc(e)) && (n = b.propFix[n] || n, o = b.propHooks[n]), r !== t ? o && "set" in o && (i = o.set(e, r, n)) !== t ? i : e[n] = r : o && "get" in o && null !== (i = o.get(e, n)) ? i : e[n] }, propHooks: { tabIndex: { get: function (e) { var t = b.find.attr(e, "tabindex"); return t ? parseInt(t, 10) : Y.test(e.nodeName) || V.test(e.nodeName) && e.href ? 0 : -1 } } } }), z = { set: function (e, t, n) { return !1 === t ? b.removeAttr(e, n) : G && Q || !J.test(n) ? e.setAttribute(!Q && b.propFix[n] || n, n) : e[b.camelCase("default-" + n)] = e[n] = !0, n } }, b.each(b.expr.match.bool.source.match(/\w+/g), (function (e, n) { var r = b.expr.attrHandle[n] || b.find.attr; b.expr.attrHandle[n] = G && Q || !J.test(n) ? function (e, n, i) { var o = b.expr.attrHandle[n], a = i ? t : (b.expr.attrHandle[n] = t) != r(e, n, i) ? n.toLowerCase() : null; return b.expr.attrHandle[n] = o, a } : function (e, n, r) { return r ? t : e[b.camelCase("default-" + n)] ? n.toLowerCase() : null } })), G && Q || (b.attrHooks.value = { set: function (e, n, r) { return b.nodeName(e, "input") ? (e.defaultValue = n, t) : I && I.set(e, n, r) } }), Q || (I = { set: function (e, n, r) { var i = e.getAttributeNode(r); return i || e.setAttributeNode(i = e.ownerDocument.createAttribute(r)), i.value = n += "", "value" === r || n === e.getAttribute(r) ? n : t } }, b.expr.attrHandle.id = b.expr.attrHandle.name = b.expr.attrHandle.coords = function (e, n, r) { var i; return r ? t : (i = e.getAttributeNode(n)) && "" !== i.value ? i.value : null }, b.valHooks.button = { get: function (e, n) { var r = e.getAttributeNode(n); return r && r.specified ? r.value : t }, set: I.set }, b.attrHooks.contenteditable = { set: function (e, t, n) { I.set(e, "" !== t && t, n) } }, b.each(["width", "height"], (function (e, n) { b.attrHooks[n] = { set: function (e, r) { return "" === r ? (e.setAttribute(n, "auto"), r) : t } } }))), b.support.hrefNormalized || b.each(["href", "src"], (function (e, t) { b.propHooks[t] = { get: function (e) { return e.getAttribute(t, 4) } } })), b.support.style || (b.attrHooks.style = { get: function (e) { return e.style.cssText || t }, set: function (e, t) { return e.style.cssText = t + "" } }), b.support.optSelected || (b.propHooks.selected = { get: function (e) { var t = e.parentNode; return t && (t.selectedIndex, t.parentNode && t.parentNode.selectedIndex), null } }), b.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], (function () { b.propFix[this.toLowerCase()] = this })), b.support.enctype || (b.propFix.enctype = "encoding"), b.each(["radio", "checkbox"], (function () { b.valHooks[this] = { set: function (e, n) { return b.isArray(n) ? e.checked = b.inArray(b(e).val(), n) >= 0 : t } }, b.support.checkOn || (b.valHooks[this].get = function (e) { return null === e.getAttribute("value") ? "on" : e.value }) })); var K = /^(?:input|select|textarea)$/i, Z = /^key/, ee = /^(?:mouse|contextmenu)|click/, te = /^(?:focusinfocus|focusoutblur)$/, ne = /^([^.]*)(?:\.(.+)|)$/; function re() { return !0 } function ie() { return !1 } function oe() { try { return a.activeElement } catch (e) { } } b.event = { global: {}, add: function (e, n, r, o, a) { var s, c, u, l, f, p, d, h, m, g, y, v = b._data(e); if (v) { for (r.handler && (r = (l = r).handler, a = l.selector), r.guid || (r.guid = b.guid++), (c = v.events) || (c = v.events = {}), (p = v.handle) || (p = v.handle = function (e) { return typeof b === i || e && b.event.triggered === e.type ? t : b.event.dispatch.apply(p.elem, arguments) }, p.elem = e), u = (n = (n || "").match(w) || [""]).length; u--;)m = y = (s = ne.exec(n[u]) || [])[1], g = (s[2] || "").split(".").sort(), m && (f = b.event.special[m] || {}, m = (a ? f.delegateType : f.bindType) || m, f = b.event.special[m] || {}, d = b.extend({ type: m, origType: y, data: o, handler: r, guid: r.guid, selector: a, needsContext: a && b.expr.match.needsContext.test(a), namespace: g.join(".") }, l), (h = c[m]) || ((h = c[m] = []).delegateCount = 0, f.setup && !1 !== f.setup.call(e, o, g, p) || (e.addEventListener ? e.addEventListener(m, p, !1) : e.attachEvent && e.attachEvent("on" + m, p))), f.add && (f.add.call(e, d), d.handler.guid || (d.handler.guid = r.guid)), a ? h.splice(h.delegateCount++, 0, d) : h.push(d), b.event.global[m] = !0); e = null } }, remove: function (e, t, n, r, i) { var o, a, s, c, u, l, f, p, d, h, m, g = b.hasData(e) && b._data(e); if (g && (l = g.events)) { for (u = (t = (t || "").match(w) || [""]).length; u--;)if (d = m = (s = ne.exec(t[u]) || [])[1], h = (s[2] || "").split(".").sort(), d) { for (f = b.event.special[d] || {}, p = l[d = (r ? f.delegateType : f.bindType) || d] || [], s = s[2] && RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)"), c = o = p.length; o--;)a = p[o], !i && m !== a.origType || n && n.guid !== a.guid || s && !s.test(a.namespace) || r && r !== a.selector && ("**" !== r || !a.selector) || (p.splice(o, 1), a.selector && p.delegateCount-- , f.remove && f.remove.call(e, a)); c && !p.length && (f.teardown && !1 !== f.teardown.call(e, h, g.handle) || b.removeEvent(e, d, g.handle), delete l[d]) } else for (d in l) b.event.remove(e, d + t[u], n, r, !0); b.isEmptyObject(l) && (delete g.handle, b._removeData(e, "events")) } }, trigger: function (n, r, i, o) { var s, c, u, l, f, p, d, h = [i || a], m = v.call(n, "type") ? n.type : n, g = v.call(n, "namespace") ? n.namespace.split(".") : []; if (u = p = i = i || a, 3 !== i.nodeType && 8 !== i.nodeType && !te.test(m + b.event.triggered) && (m.indexOf(".") >= 0 && (g = m.split("."), m = g.shift(), g.sort()), c = 0 > m.indexOf(":") && "on" + m, (n = n[b.expando] ? n : new b.Event(m, "object" == typeof n && n)).isTrigger = o ? 2 : 3, n.namespace = g.join("."), n.namespace_re = n.namespace ? RegExp("(^|\\.)" + g.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, n.result = t, n.target || (n.target = i), r = null == r ? [n] : b.makeArray(r, [n]), f = b.event.special[m] || {}, o || !f.trigger || !1 !== f.trigger.apply(i, r))) { if (!o && !f.noBubble && !b.isWindow(i)) { for (l = f.delegateType || m, te.test(l + m) || (u = u.parentNode); u; u = u.parentNode)h.push(u), p = u; p === (i.ownerDocument || a) && h.push(p.defaultView || p.parentWindow || e) } for (d = 0; (u = h[d++]) && !n.isPropagationStopped();)n.type = d > 1 ? l : f.bindType || m, (s = (b._data(u, "events") || {})[n.type] && b._data(u, "handle")) && s.apply(u, r), (s = c && u[c]) && b.acceptData(u) && s.apply && !1 === s.apply(u, r) && n.preventDefault(); if (n.type = m, !o && !n.isDefaultPrevented() && (!f._default || !1 === f._default.apply(h.pop(), r)) && b.acceptData(i) && c && i[m] && !b.isWindow(i)) { (p = i[c]) && (i[c] = null), b.event.triggered = m; try { i[m]() } catch (e) { } b.event.triggered = t, p && (i[c] = p) } return n.result } }, dispatch: function (e) { e = b.event.fix(e); var n, r, i, o, a, s = [], c = m.call(arguments), u = (b._data(this, "events") || {})[e.type] || [], l = b.event.special[e.type] || {}; if (c[0] = e, e.delegateTarget = this, !l.preDispatch || !1 !== l.preDispatch.call(this, e)) { for (s = b.event.handlers.call(this, e, u), n = 0; (o = s[n++]) && !e.isPropagationStopped();)for (e.currentTarget = o.elem, a = 0; (i = o.handlers[a++]) && !e.isImmediatePropagationStopped();)(!e.namespace_re || e.namespace_re.test(i.namespace)) && (e.handleObj = i, e.data = i.data, (r = ((b.event.special[i.origType] || {}).handle || i.handler).apply(o.elem, c)) !== t && !1 === (e.result = r) && (e.preventDefault(), e.stopPropagation())); return l.postDispatch && l.postDispatch.call(this, e), e.result } }, handlers: function (e, n) { var r, i, o, a, s = [], c = n.delegateCount, u = e.target; if (c && u.nodeType && (!e.button || "click" !== e.type)) for (; u != this; u = u.parentNode || this)if (1 === u.nodeType && (!0 !== u.disabled || "click" !== e.type)) { for (o = [], a = 0; c > a; a++)o[r = (i = n[a]).selector + " "] === t && (o[r] = i.needsContext ? b(r, this).index(u) >= 0 : b.find(r, this, null, [u]).length), o[r] && o.push(i); o.length && s.push({ elem: u, handlers: o }) } return n.length > c && s.push({ elem: this, handlers: n.slice(c) }), s }, fix: function (e) { if (e[b.expando]) return e; var t, n, r, i = e.type, o = e, s = this.fixHooks[i]; for (s || (this.fixHooks[i] = s = ee.test(i) ? this.mouseHooks : Z.test(i) ? this.keyHooks : {}), r = s.props ? this.props.concat(s.props) : this.props, e = new b.Event(o), t = r.length; t--;)e[n = r[t]] = o[n]; return e.target || (e.target = o.srcElement || a), 3 === e.target.nodeType && (e.target = e.target.parentNode), e.metaKey = !!e.metaKey, s.filter ? s.filter(e, o) : e }, props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), fixHooks: {}, keyHooks: { props: "char charCode key keyCode".split(" "), filter: function (e, t) { return null == e.which && (e.which = null != t.charCode ? t.charCode : t.keyCode), e } }, mouseHooks: { props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "), filter: function (e, n) { var r, i, o, s = n.button, c = n.fromElement; return null == e.pageX && null != n.clientX && (o = (i = e.target.ownerDocument || a).documentElement, r = i.body, e.pageX = n.clientX + (o && o.scrollLeft || r && r.scrollLeft || 0) - (o && o.clientLeft || r && r.clientLeft || 0), e.pageY = n.clientY + (o && o.scrollTop || r && r.scrollTop || 0) - (o && o.clientTop || r && r.clientTop || 0)), !e.relatedTarget && c && (e.relatedTarget = c === e.target ? n.toElement : c), e.which || s === t || (e.which = 1 & s ? 1 : 2 & s ? 3 : 4 & s ? 2 : 0), e } }, special: { load: { noBubble: !0 }, focus: { trigger: function () { if (this !== oe() && this.focus) try { return this.focus(), !1 } catch (e) { } }, delegateType: "focusin" }, blur: { trigger: function () { return this === oe() && this.blur ? (this.blur(), !1) : t }, delegateType: "focusout" }, click: { trigger: function () { return b.nodeName(this, "input") && "checkbox" === this.type && this.click ? (this.click(), !1) : t }, _default: function (e) { return b.nodeName(e.target, "a") } }, beforeunload: { postDispatch: function (e) { e.result !== t && (e.originalEvent.returnValue = e.result) } } }, simulate: function (e, t, n, r) { var i = b.extend(new b.Event, n, { type: e, isSimulated: !0, originalEvent: {} }); r ? b.event.trigger(i, null, t) : b.event.dispatch.call(t, i), i.isDefaultPrevented() && n.preventDefault() } }, b.removeEvent = a.removeEventListener ? function (e, t, n) { e.removeEventListener && e.removeEventListener(t, n, !1) } : function (e, t, n) { var r = "on" + t; e.detachEvent && (typeof e[r] === i && (e[r] = null), e.detachEvent(r, n)) }, b.Event = function (e, n) { return this instanceof b.Event ? (e && e.type ? (this.originalEvent = e, this.type = e.type, this.isDefaultPrevented = e.defaultPrevented || !1 === e.returnValue || e.getPreventDefault && e.getPreventDefault() ? re : ie) : this.type = e, n && b.extend(this, n), this.timeStamp = e && e.timeStamp || b.now(), this[b.expando] = !0, t) : new b.Event(e, n) }, b.Event.prototype = { isDefaultPrevented: ie, isPropagationStopped: ie, isImmediatePropagationStopped: ie, preventDefault: function () { var e = this.originalEvent; this.isDefaultPrevented = re, e && (e.preventDefault ? e.preventDefault() : e.returnValue = !1) }, stopPropagation: function () { var e = this.originalEvent; this.isPropagationStopped = re, e && (e.stopPropagation && e.stopPropagation(), e.cancelBubble = !0) }, stopImmediatePropagation: function () { this.isImmediatePropagationStopped = re, this.stopPropagation() } }, b.each({ mouseenter: "mouseover", mouseleave: "mouseout" }, (function (e, t) { b.event.special[e] = { delegateType: t, bindType: t, handle: function (e) { var n, r = this, i = e.relatedTarget, o = e.handleObj; return (!i || i !== r && !b.contains(r, i)) && (e.type = o.origType, n = o.handler.apply(this, arguments), e.type = t), n } } })), b.support.submitBubbles || (b.event.special.submit = { setup: function () { return !b.nodeName(this, "form") && (b.event.add(this, "click._submit keypress._submit", (function (e) { var n = e.target, r = b.nodeName(n, "input") || b.nodeName(n, "button") ? n.form : t; r && !b._data(r, "submitBubbles") && (b.event.add(r, "submit._submit", (function (e) { e._submit_bubble = !0 })), b._data(r, "submitBubbles", !0)) })), t) }, postDispatch: function (e) { e._submit_bubble && (delete e._submit_bubble, this.parentNode && !e.isTrigger && b.event.simulate("submit", this.parentNode, e, !0)) }, teardown: function () { return !b.nodeName(this, "form") && (b.event.remove(this, "._submit"), t) } }), b.support.changeBubbles || (b.event.special.change = { setup: function () { return K.test(this.nodeName) ? (("checkbox" === this.type || "radio" === this.type) && (b.event.add(this, "propertychange._change", (function (e) { "checked" === e.originalEvent.propertyName && (this._just_changed = !0) })), b.event.add(this, "click._change", (function (e) { this._just_changed && !e.isTrigger && (this._just_changed = !1), b.event.simulate("change", this, e, !0) }))), !1) : (b.event.add(this, "beforeactivate._change", (function (e) { var t = e.target; K.test(t.nodeName) && !b._data(t, "changeBubbles") && (b.event.add(t, "change._change", (function (e) { !this.parentNode || e.isSimulated || e.isTrigger || b.event.simulate("change", this.parentNode, e, !0) })), b._data(t, "changeBubbles", !0)) })), t) }, handle: function (e) { var n = e.target; return this !== n || e.isSimulated || e.isTrigger || "radio" !== n.type && "checkbox" !== n.type ? e.handleObj.handler.apply(this, arguments) : t }, teardown: function () { return b.event.remove(this, "._change"), !K.test(this.nodeName) } }), b.support.focusinBubbles || b.each({ focus: "focusin", blur: "focusout" }, (function (e, t) { var n = 0, r = function (e) { b.event.simulate(t, e.target, b.event.fix(e), !0) }; b.event.special[t] = { setup: function () { 0 == n++ && a.addEventListener(e, r, !0) }, teardown: function () { 0 == --n && a.removeEventListener(e, r, !0) } } })), b.fn.extend({ on: function (e, n, r, i, o) { var a, s; if ("object" == typeof e) { for (a in "string" != typeof n && (r = r || n, n = t), e) this.on(a, n, r, e[a], o); return this } if (null == r && null == i ? (i = n, r = n = t) : null == i && ("string" == typeof n ? (i = r, r = t) : (i = r, r = n, n = t)), !1 === i) i = ie; else if (!i) return this; return 1 === o && (s = i, i = function (e) { return b().off(e), s.apply(this, arguments) }, i.guid = s.guid || (s.guid = b.guid++)), this.each((function () { b.event.add(this, e, i, r, n) })) }, one: function (e, t, n, r) { return this.on(e, t, n, r, 1) }, off: function (e, n, r) { var i, o; if (e && e.preventDefault && e.handleObj) return i = e.handleObj, b(e.delegateTarget).off(i.namespace ? i.origType + "." + i.namespace : i.origType, i.selector, i.handler), this; if ("object" == typeof e) { for (o in e) this.off(o, n, e[o]); return this } return (!1 === n || "function" == typeof n) && (r = n, n = t), !1 === r && (r = ie), this.each((function () { b.event.remove(this, e, r, n) })) }, trigger: function (e, t) { return this.each((function () { b.event.trigger(e, t, this) })) }, triggerHandler: function (e, n) { var r = this[0]; return r ? b.event.trigger(e, n, r, !0) : t } }); var ae = /^.[^:#\[\.,]*$/, se = /^(?:parents|prev(?:Until|All))/, ce = b.expr.match.needsContext, ue = { children: !0, contents: !0, next: !0, prev: !0 }; function le(e, t) { do { e = e[t] } while (e && 1 !== e.nodeType); return e } function fe(e, t, n) { if (b.isFunction(t)) return b.grep(e, (function (e, r) { return !!t.call(e, r, e) !== n })); if (t.nodeType) return b.grep(e, (function (e) { return e === t !== n })); if ("string" == typeof t) { if (ae.test(t)) return b.filter(t, e, n); t = b.filter(t, e) } return b.grep(e, (function (e) { return b.inArray(e, t) >= 0 !== n })) } function pe(e) { var t = de.split("|"), n = e.createDocumentFragment(); if (n.createElement) for (; t.length;)n.createElement(t.pop()); return n } b.fn.extend({ find: function (e) { var t, n = [], r = this, i = r.length; if ("string" != typeof e) return this.pushStack(b(e).filter((function () { for (t = 0; i > t; t++)if (b.contains(r[t], this)) return !0 }))); for (t = 0; i > t; t++)b.find(e, r[t], n); return (n = this.pushStack(i > 1 ? b.unique(n) : n)).selector = this.selector ? this.selector + " " + e : e, n }, has: function (e) { var t, n = b(e, this), r = n.length; return this.filter((function () { for (t = 0; r > t; t++)if (b.contains(this, n[t])) return !0 })) }, not: function (e) { return this.pushStack(fe(this, e || [], !0)) }, filter: function (e) { return this.pushStack(fe(this, e || [], !1)) }, is: function (e) { return !!fe(this, "string" == typeof e && ce.test(e) ? b(e) : e || [], !1).length }, closest: function (e, t) { for (var n, r = 0, i = this.length, o = [], a = ce.test(e) || "string" != typeof e ? b(e, t || this.context) : 0; i > r; r++)for (n = this[r]; n && n !== t; n = n.parentNode)if (11 > n.nodeType && (a ? a.index(n) > -1 : 1 === n.nodeType && b.find.matchesSelector(n, e))) { n = o.push(n); break } return this.pushStack(o.length > 1 ? b.unique(o) : o) }, index: function (e) { return e ? "string" == typeof e ? b.inArray(this[0], b(e)) : b.inArray(e.jquery ? e[0] : e, this) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1 }, add: function (e, t) { var n = "string" == typeof e ? b(e, t) : b.makeArray(e && e.nodeType ? [e] : e), r = b.merge(this.get(), n); return this.pushStack(b.unique(r)) }, addBack: function (e) { return this.add(null == e ? this.prevObject : this.prevObject.filter(e)) } }), b.each({ parent: function (e) { var t = e.parentNode; return t && 11 !== t.nodeType ? t : null }, parents: function (e) { return b.dir(e, "parentNode") }, parentsUntil: function (e, t, n) { return b.dir(e, "parentNode", n) }, next: function (e) { return le(e, "nextSibling") }, prev: function (e) { return le(e, "previousSibling") }, nextAll: function (e) { return b.dir(e, "nextSibling") }, prevAll: function (e) { return b.dir(e, "previousSibling") }, nextUntil: function (e, t, n) { return b.dir(e, "nextSibling", n) }, prevUntil: function (e, t, n) { return b.dir(e, "previousSibling", n) }, siblings: function (e) { return b.sibling((e.parentNode || {}).firstChild, e) }, children: function (e) { return b.sibling(e.firstChild) }, contents: function (e) { return b.nodeName(e, "iframe") ? e.contentDocument || e.contentWindow.document : b.merge([], e.childNodes) } }, (function (e, t) { b.fn[e] = function (n, r) { var i = b.map(this, t, n); return "Until" !== e.slice(-5) && (r = n), r && "string" == typeof r && (i = b.filter(r, i)), this.length > 1 && (ue[e] || (i = b.unique(i)), se.test(e) && (i = i.reverse())), this.pushStack(i) } })), b.extend({ filter: function (e, t, n) { var r = t[0]; return n && (e = ":not(" + e + ")"), 1 === t.length && 1 === r.nodeType ? b.find.matchesSelector(r, e) ? [r] : [] : b.find.matches(e, b.grep(t, (function (e) { return 1 === e.nodeType }))) }, dir: function (e, n, r) { for (var i = [], o = e[n]; o && 9 !== o.nodeType && (r === t || 1 !== o.nodeType || !b(o).is(r));)1 === o.nodeType && i.push(o), o = o[n]; return i }, sibling: function (e, t) { for (var n = []; e; e = e.nextSibling)1 === e.nodeType && e !== t && n.push(e); return n } }); var de = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", he = / jQuery\d+="(?:null|\d+)"/g, me = RegExp("<(?:" + de + ")[\\s/>]", "i"), ge = /^\s+/, ye = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, ve = /<([\w:]+)/, xe = /<tbody/i, be = /<|&#?\w+;/, _e = /<(?:script|style|link)/i, we = /^(?:checkbox|radio)$/i, Te = /checked\s*(?:[^=]|=\s*.checked.)/i, Ce = /^$|\/(?:java|ecma)script/i, Ne = /^true\/(.*)/, ke = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g, Ee = { option: [1, "<select multiple='multiple'>", "</select>"], legend: [1, "<fieldset>", "</fieldset>"], area: [1, "<map>", "</map>"], param: [1, "<object>", "</object>"], thead: [1, "<table>", "</table>"], tr: [2, "<table><tbody>", "</tbody></table>"], col: [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"], td: [3, "<table><tbody><tr>", "</tr></tbody></table>"], _default: b.support.htmlSerialize ? [0, "", ""] : [1, "X<div>", "</div>"] }, Se = pe(a).appendChild(a.createElement("div")); function Ae(e, t) { return b.nodeName(e, "table") && b.nodeName(1 === t.nodeType ? t : t.firstChild, "tr") ? e.getElementsByTagName("tbody")[0] || e.appendChild(e.ownerDocument.createElement("tbody")) : e } function je(e) { return e.type = (null !== b.find.attr(e, "type")) + "/" + e.type, e } function De(e) { var t = Ne.exec(e.type); return t ? e.type = t[1] : e.removeAttribute("type"), e } function Le(e, t) { for (var n, r = 0; null != (n = e[r]); r++)b._data(n, "globalEval", !t || b._data(t[r], "globalEval")) } function He(e, t) { if (1 === t.nodeType && b.hasData(e)) { var n, r, i, o = b._data(e), a = b._data(t, o), s = o.events; if (s) for (n in delete a.handle, a.events = {}, s) for (r = 0, i = s[n].length; i > r; r++)b.event.add(t, n, s[n][r]); a.data && (a.data = b.extend({}, a.data)) } } function qe(e, t) { var n, r, i; if (1 === t.nodeType) { if (n = t.nodeName.toLowerCase(), !b.support.noCloneEvent && t[b.expando]) { for (r in (i = b._data(t)).events) b.removeEvent(t, r, i.handle); t.removeAttribute(b.expando) } "script" === n && t.text !== e.text ? (je(t).text = e.text, De(t)) : "object" === n ? (t.parentNode && (t.outerHTML = e.outerHTML), b.support.html5Clone && e.innerHTML && !b.trim(t.innerHTML) && (t.innerHTML = e.innerHTML)) : "input" === n && we.test(e.type) ? (t.defaultChecked = t.checked = e.checked, t.value !== e.value && (t.value = e.value)) : "option" === n ? t.defaultSelected = t.selected = e.defaultSelected : ("input" === n || "textarea" === n) && (t.defaultValue = e.defaultValue) } } function Me(e, n) { var r, o, a = 0, s = typeof e.getElementsByTagName !== i ? e.getElementsByTagName(n || "*") : typeof e.querySelectorAll !== i ? e.querySelectorAll(n || "*") : t; if (!s) for (s = [], r = e.childNodes || e; null != (o = r[a]); a++)!n || b.nodeName(o, n) ? s.push(o) : b.merge(s, Me(o, n)); return n === t || n && b.nodeName(e, n) ? b.merge([e], s) : s } function Oe(e) { we.test(e.type) && (e.defaultChecked = e.checked) } Ee.optgroup = Ee.option, Ee.tbody = Ee.tfoot = Ee.colgroup = Ee.caption = Ee.thead, Ee.th = Ee.td, b.fn.extend({ text: function (e) { return b.access(this, (function (e) { return e === t ? b.text(this) : this.empty().append((this[0] && this[0].ownerDocument || a).createTextNode(e)) }), null, e, arguments.length) }, append: function () { return this.domManip(arguments, (function (e) { 1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType || Ae(this, e).appendChild(e) })) }, prepend: function () { return this.domManip(arguments, (function (e) { if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) { var t = Ae(this, e); t.insertBefore(e, t.firstChild) } })) }, before: function () { return this.domManip(arguments, (function (e) { this.parentNode && this.parentNode.insertBefore(e, this) })) }, after: function () { return this.domManip(arguments, (function (e) { this.parentNode && this.parentNode.insertBefore(e, this.nextSibling) })) }, remove: function (e, t) { for (var n, r = e ? b.filter(e, this) : this, i = 0; null != (n = r[i]); i++)t || 1 !== n.nodeType || b.cleanData(Me(n)), n.parentNode && (t && b.contains(n.ownerDocument, n) && Le(Me(n, "script")), n.parentNode.removeChild(n)); return this }, empty: function () { for (var e, t = 0; null != (e = this[t]); t++) { for (1 === e.nodeType && b.cleanData(Me(e, !1)); e.firstChild;)e.removeChild(e.firstChild); e.options && b.nodeName(e, "select") && (e.options.length = 0) } return this }, clone: function (e, t) { return e = null != e && e, t = null == t ? e : t, this.map((function () { return b.clone(this, e, t) })) }, html: function (e) { return b.access(this, (function (e) { var n = this[0] || {}, r = 0, i = this.length; if (e === t) return 1 === n.nodeType ? n.innerHTML.replace(he, "") : t; if (!("string" != typeof e || _e.test(e) || !b.support.htmlSerialize && me.test(e) || !b.support.leadingWhitespace && ge.test(e) || Ee[(ve.exec(e) || ["", ""])[1].toLowerCase()])) { e = e.replace(ye, "<$1></$2>"); try { for (; i > r; r++)1 === (n = this[r] || {}).nodeType && (b.cleanData(Me(n, !1)), n.innerHTML = e); n = 0 } catch (e) { } } n && this.empty().append(e) }), null, e, arguments.length) }, replaceWith: function () { var e = b.map(this, (function (e) { return [e.nextSibling, e.parentNode] })), t = 0; return this.domManip(arguments, (function (n) { var r = e[t++], i = e[t++]; i && (r && r.parentNode !== i && (r = this.nextSibling), b(this).remove(), i.insertBefore(n, r)) }), !0), t ? this : this.remove() }, detach: function (e) { return this.remove(e, !0) }, domManip: function (e, t, n) { e = d.apply([], e); var r, i, o, a, s, c, u = 0, l = this.length, f = this, p = l - 1, h = e[0], m = b.isFunction(h); if (m || !(1 >= l || "string" != typeof h || b.support.checkClone) && Te.test(h)) return this.each((function (r) { var i = f.eq(r); m && (e[0] = h.call(this, r, i.html())), i.domManip(e, t, n) })); if (l && (r = (c = b.buildFragment(e, this[0].ownerDocument, !1, !n && this)).firstChild, 1 === c.childNodes.length && (c = r), r)) { for (o = (a = b.map(Me(c, "script"), je)).length; l > u; u++)i = c, u !== p && (i = b.clone(i, !0, !0), o && b.merge(a, Me(i, "script"))), t.call(this[u], i, u); if (o) for (s = a[a.length - 1].ownerDocument, b.map(a, De), u = 0; o > u; u++)i = a[u], Ce.test(i.type || "") && !b._data(i, "globalEval") && b.contains(s, i) && (i.src ? b._evalUrl(i.src) : b.globalEval((i.text || i.textContent || i.innerHTML || "").replace(ke, ""))); c = r = null } return this } }), b.each({ appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, (function (e, t) { b.fn[e] = function (e) { for (var n, r = 0, i = [], o = b(e), a = o.length - 1; a >= r; r++)n = r === a ? this : this.clone(!0), b(o[r])[t](n), h.apply(i, n.get()); return this.pushStack(i) } })), b.extend({ clone: function (e, t, n) { var r, i, o, a, s, c = b.contains(e.ownerDocument, e); if (b.support.html5Clone || b.isXMLDoc(e) || !me.test("<" + e.nodeName + ">") ? o = e.cloneNode(!0) : (Se.innerHTML = e.outerHTML, Se.removeChild(o = Se.firstChild)), !(b.support.noCloneEvent && b.support.noCloneChecked || 1 !== e.nodeType && 11 !== e.nodeType || b.isXMLDoc(e))) for (r = Me(o), s = Me(e), a = 0; null != (i = s[a]); ++a)r[a] && qe(i, r[a]); if (t) if (n) for (s = s || Me(e), r = r || Me(o), a = 0; null != (i = s[a]); a++)He(i, r[a]); else He(e, o); return (r = Me(o, "script")).length > 0 && Le(r, !c && Me(e, "script")), r = s = i = null, o }, buildFragment: function (e, t, n, r) { for (var i, o, a, s, c, u, l, f = e.length, p = pe(t), d = [], h = 0; f > h; h++)if ((o = e[h]) || 0 === o) if ("object" === b.type(o)) b.merge(d, o.nodeType ? [o] : o); else if (be.test(o)) { for (s = s || p.appendChild(t.createElement("div")), c = (ve.exec(o) || ["", ""])[1].toLowerCase(), l = Ee[c] || Ee._default, s.innerHTML = l[1] + o.replace(ye, "<$1></$2>") + l[2], i = l[0]; i--;)s = s.lastChild; if (!b.support.leadingWhitespace && ge.test(o) && d.push(t.createTextNode(ge.exec(o)[0])), !b.support.tbody) for (i = (o = "table" !== c || xe.test(o) ? "<table>" !== l[1] || xe.test(o) ? 0 : s : s.firstChild) && o.childNodes.length; i--;)b.nodeName(u = o.childNodes[i], "tbody") && !u.childNodes.length && o.removeChild(u); for (b.merge(d, s.childNodes), s.textContent = ""; s.firstChild;)s.removeChild(s.firstChild); s = p.lastChild } else d.push(t.createTextNode(o)); for (s && p.removeChild(s), b.support.appendChecked || b.grep(Me(d, "input"), Oe), h = 0; o = d[h++];)if ((!r || -1 === b.inArray(o, r)) && (a = b.contains(o.ownerDocument, o), s = Me(p.appendChild(o), "script"), a && Le(s), n)) for (i = 0; o = s[i++];)Ce.test(o.type || "") && n.push(o); return s = null, p }, cleanData: function (e, t) { for (var n, r, o, a, s = 0, c = b.expando, u = b.cache, l = b.support.deleteExpando, p = b.event.special; null != (n = e[s]); s++)if ((t || b.acceptData(n)) && (a = (o = n[c]) && u[o])) { if (a.events) for (r in a.events) p[r] ? b.event.remove(n, r) : b.removeEvent(n, r, a.handle); u[o] && (delete u[o], l ? delete n[c] : typeof n.removeAttribute !== i ? n.removeAttribute(c) : n[c] = null, f.push(o)) } }, _evalUrl: function (e) { return b.ajax({ url: e, type: "GET", dataType: "script", async: !1, global: !1, throws: !0 }) } }), b.fn.extend({ wrapAll: function (e) { if (b.isFunction(e)) return this.each((function (t) { b(this).wrapAll(e.call(this, t)) })); if (this[0]) { var t = b(e, this[0].ownerDocument).eq(0).clone(!0); this[0].parentNode && t.insertBefore(this[0]), t.map((function () { for (var e = this; e.firstChild && 1 === e.firstChild.nodeType;)e = e.firstChild; return e })).append(this) } return this }, wrapInner: function (e) { return b.isFunction(e) ? this.each((function (t) { b(this).wrapInner(e.call(this, t)) })) : this.each((function () { var t = b(this), n = t.contents(); n.length ? n.wrapAll(e) : t.append(e) })) }, wrap: function (e) { var t = b.isFunction(e); return this.each((function (n) { b(this).wrapAll(t ? e.call(this, n) : e) })) }, unwrap: function () { return this.parent().each((function () { b.nodeName(this, "body") || b(this).replaceWith(this.childNodes) })).end() } }); var Fe, Be, Pe, $e = /alpha\([^)]*\)/i, Re = /opacity\s*=\s*([^)]*)/, We = /^(top|right|bottom|left)$/, Ie = /^(none|table(?!-c[ea]).+)/, ze = /^margin/, Xe = RegExp("^(" + _ + ")(.*)$", "i"), Ue = RegExp("^(" + _ + ")(?!px)[a-z%]+$", "i"), Ye = RegExp("^([+-])=(" + _ + ")", "i"), Ve = { BODY: "block" }, Je = { position: "absolute", visibility: "hidden", display: "block" }, Qe = { letterSpacing: 0, fontWeight: 400 }, Ge = ["Top", "Right", "Bottom", "Left"], Ke = ["Webkit", "O", "Moz", "ms"]; function Ze(e, t) { if (t in e) return t; for (var n = t.charAt(0).toUpperCase() + t.slice(1), r = t, i = Ke.length; i--;)if ((t = Ke[i] + n) in e) return t; return r } function et(e, t) { return e = t || e, "none" === b.css(e, "display") || !b.contains(e.ownerDocument, e) } function tt(e, t) { for (var n, r, i, o = [], a = 0, s = e.length; s > a; a++)(r = e[a]).style && (o[a] = b._data(r, "olddisplay"), n = r.style.display, t ? (o[a] || "none" !== n || (r.style.display = ""), "" === r.style.display && et(r) && (o[a] = b._data(r, "olddisplay", ot(r.nodeName)))) : o[a] || (i = et(r), (n && "none" !== n || !i) && b._data(r, "olddisplay", i ? n : b.css(r, "display")))); for (a = 0; s > a; a++)(r = e[a]).style && (t && "none" !== r.style.display && "" !== r.style.display || (r.style.display = t ? o[a] || "" : "none")); return e } function nt(e, t, n) { var r = Xe.exec(t); return r ? Math.max(0, r[1] - (n || 0)) + (r[2] || "px") : t } function rt(e, t, n, r, i) { for (var o = n === (r ? "border" : "content") ? 4 : "width" === t ? 1 : 0, a = 0; 4 > o; o += 2)"margin" === n && (a += b.css(e, n + Ge[o], !0, i)), r ? ("content" === n && (a -= b.css(e, "padding" + Ge[o], !0, i)), "margin" !== n && (a -= b.css(e, "border" + Ge[o] + "Width", !0, i))) : (a += b.css(e, "padding" + Ge[o], !0, i), "padding" !== n && (a += b.css(e, "border" + Ge[o] + "Width", !0, i))); return a } function it(e, t, n) { var r = !0, i = "width" === t ? e.offsetWidth : e.offsetHeight, o = Be(e), a = b.support.boxSizing && "border-box" === b.css(e, "boxSizing", !1, o); if (0 >= i || null == i) { if ((0 > (i = Pe(e, t, o)) || null == i) && (i = e.style[t]), Ue.test(i)) return i; r = a && (b.support.boxSizingReliable || i === e.style[t]), i = parseFloat(i) || 0 } return i + rt(e, t, n || (a ? "border" : "content"), r, o) + "px" } function ot(e) { var t = a, n = Ve[e]; return n || ("none" !== (n = at(e, t)) && n || ((t = ((Fe = (Fe || b("<iframe frameborder='0' width='0' height='0'/>").css("cssText", "display:block !important")).appendTo(t.documentElement))[0].contentWindow || Fe[0].contentDocument).document).write("<!doctype html><html><body>"), t.close(), n = at(e, t), Fe.detach()), Ve[e] = n), n } function at(e, t) { var n = b(t.createElement(e)).appendTo(t.body), r = b.css(n[0], "display"); return n.remove(), r } b.fn.extend({ css: function (e, n) { return b.access(this, (function (e, n, r) { var i, o, a = {}, s = 0; if (b.isArray(n)) { for (o = Be(e), i = n.length; i > s; s++)a[n[s]] = b.css(e, n[s], !1, o); return a } return r !== t ? b.style(e, n, r) : b.css(e, n) }), e, n, arguments.length > 1) }, show: function () { return tt(this, !0) }, hide: function () { return tt(this) }, toggle: function (e) { return "boolean" == typeof e ? e ? this.show() : this.hide() : this.each((function () { et(this) ? b(this).show() : b(this).hide() })) } }), b.extend({ cssHooks: { opacity: { get: function (e, t) { if (t) { var n = Pe(e, "opacity"); return "" === n ? "1" : n } } } }, cssNumber: { columnCount: !0, fillOpacity: !0, fontWeight: !0, lineHeight: !0, opacity: !0, order: !0, orphans: !0, widows: !0, zIndex: !0, zoom: !0 }, cssProps: { float: b.support.cssFloat ? "cssFloat" : "styleFloat" }, style: function (e, n, r, i) { if (e && 3 !== e.nodeType && 8 !== e.nodeType && e.style) { var o, a, s, c = b.camelCase(n), u = e.style; if (n = b.cssProps[c] || (b.cssProps[c] = Ze(u, c)), s = b.cssHooks[n] || b.cssHooks[c], r === t) return s && "get" in s && (o = s.get(e, !1, i)) !== t ? o : u[n]; if ("string" === (a = typeof r) && (o = Ye.exec(r)) && (r = (o[1] + 1) * o[2] + parseFloat(b.css(e, n)), a = "number"), !(null == r || "number" === a && isNaN(r) || ("number" !== a || b.cssNumber[c] || (r += "px"), b.support.clearCloneStyle || "" !== r || 0 !== n.indexOf("background") || (u[n] = "inherit"), s && "set" in s && (r = s.set(e, r, i)) === t))) try { u[n] = r } catch (e) { } } }, css: function (e, n, r, i) { var o, a, s, c = b.camelCase(n); return n = b.cssProps[c] || (b.cssProps[c] = Ze(e.style, c)), (s = b.cssHooks[n] || b.cssHooks[c]) && "get" in s && (a = s.get(e, !0, r)), a === t && (a = Pe(e, n, i)), "normal" === a && n in Qe && (a = Qe[n]), "" === r || r ? (o = parseFloat(a), !0 === r || b.isNumeric(o) ? o || 0 : a) : a } }), e.getComputedStyle ? (Be = function (t) { return e.getComputedStyle(t, null) }, Pe = function (e, n, r) { var i, o, a, s = r || Be(e), c = s ? s.getPropertyValue(n) || s[n] : t, u = e.style; return s && ("" !== c || b.contains(e.ownerDocument, e) || (c = b.style(e, n)), Ue.test(c) && ze.test(n) && (i = u.width, o = u.minWidth, a = u.maxWidth, u.minWidth = u.maxWidth = u.width = c, c = s.width, u.width = i, u.minWidth = o, u.maxWidth = a)), c }) : a.documentElement.currentStyle && (Be = function (e) { return e.currentStyle }, Pe = function (e, n, r) { var i, o, a, s = r || Be(e), c = s ? s[n] : t, u = e.style; return null == c && u && u[n] && (c = u[n]), Ue.test(c) && !We.test(n) && (i = u.left, (a = (o = e.runtimeStyle) && o.left) && (o.left = e.currentStyle.left), u.left = "fontSize" === n ? "1em" : c, c = u.pixelLeft + "px", u.left = i, a && (o.left = a)), "" === c ? "auto" : c }), b.each(["height", "width"], (function (e, n) { b.cssHooks[n] = { get: function (e, r, i) { return r ? 0 === e.offsetWidth && Ie.test(b.css(e, "display")) ? b.swap(e, Je, (function () { return it(e, n, i) })) : it(e, n, i) : t }, set: function (e, t, r) { var i = r && Be(e); return nt(0, t, r ? rt(e, n, r, b.support.boxSizing && "border-box" === b.css(e, "boxSizing", !1, i), i) : 0) } } })), b.support.opacity || (b.cssHooks.opacity = { get: function (e, t) { return Re.test((t && e.currentStyle ? e.currentStyle.filter : e.style.filter) || "") ? .01 * parseFloat(RegExp.$1) + "" : t ? "1" : "" }, set: function (e, t) { var n = e.style, r = e.currentStyle, i = b.isNumeric(t) ? "alpha(opacity=" + 100 * t + ")" : "", o = r && r.filter || n.filter || ""; n.zoom = 1, (t >= 1 || "" === t) && "" === b.trim(o.replace($e, "")) && n.removeAttribute && (n.removeAttribute("filter"), "" === t || r && !r.filter) || (n.filter = $e.test(o) ? o.replace($e, i) : o + " " + i) } }), b((function () { b.support.reliableMarginRight || (b.cssHooks.marginRight = { get: function (e, n) { return n ? b.swap(e, { display: "inline-block" }, Pe, [e, "marginRight"]) : t } }), !b.support.pixelPosition && b.fn.position && b.each(["top", "left"], (function (e, n) { b.cssHooks[n] = { get: function (e, r) { return r ? (r = Pe(e, n), Ue.test(r) ? b(e).position()[n] + "px" : r) : t } } })) })), b.expr && b.expr.filters && (b.expr.filters.hidden = function (e) { return 0 >= e.offsetWidth && 0 >= e.offsetHeight || !b.support.reliableHiddenOffsets && "none" === (e.style && e.style.display || b.css(e, "display")) }, b.expr.filters.visible = function (e) { return !b.expr.filters.hidden(e) }), b.each({ margin: "", padding: "", border: "Width" }, (function (e, t) { b.cssHooks[e + t] = { expand: function (n) { for (var r = 0, i = {}, o = "string" == typeof n ? n.split(" ") : [n]; 4 > r; r++)i[e + Ge[r] + t] = o[r] || o[r - 2] || o[0]; return i } }, ze.test(e) || (b.cssHooks[e + t].set = nt) })); var st = /%20/g, ct = /\[\]$/, ut = /\r?\n/g, lt = /^(?:submit|button|image|reset|file)$/i, ft = /^(?:input|select|textarea|keygen)/i; function pt(e, t, n, r) { var i; if (b.isArray(t)) b.each(t, (function (t, i) { n || ct.test(e) ? r(e, i) : pt(e + "[" + ("object" == typeof i ? t : "") + "]", i, n, r) })); else if (n || "object" !== b.type(t)) r(e, t); else for (i in t) pt(e + "[" + i + "]", t[i], n, r) } b.fn.extend({ serialize: function () { return b.param(this.serializeArray()) }, serializeArray: function () { return this.map((function () { var e = b.prop(this, "elements"); return e ? b.makeArray(e) : this })).filter((function () { var e = this.type; return this.name && !b(this).is(":disabled") && ft.test(this.nodeName) && !lt.test(e) && (this.checked || !we.test(e)) })).map((function (e, t) { var n = b(this).val(); return null == n ? null : b.isArray(n) ? b.map(n, (function (e) { return { name: t.name, value: e.replace(ut, "\r\n") } })) : { name: t.name, value: n.replace(ut, "\r\n") } })).get() } }), b.param = function (e, n) { var r, i = [], o = function (e, t) { t = b.isFunction(t) ? t() : null == t ? "" : t, i[i.length] = encodeURIComponent(e) + "=" + encodeURIComponent(t) }; if (n === t && (n = b.ajaxSettings && b.ajaxSettings.traditional), b.isArray(e) || e.jquery && !b.isPlainObject(e)) b.each(e, (function () { o(this.name, this.value) })); else for (r in e) pt(r, e[r], n, o); return i.join("&").replace(st, "+") }, b.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "), (function (e, t) { b.fn[t] = function (e, n) { return arguments.length > 0 ? this.on(t, null, e, n) : this.trigger(t) } })), b.fn.extend({ hover: function (e, t) { return this.mouseenter(e).mouseleave(t || e) }, bind: function (e, t, n) { return this.on(e, null, t, n) }, unbind: function (e, t) { return this.off(e, null, t) }, delegate: function (e, t, n, r) { return this.on(t, e, n, r) }, undelegate: function (e, t, n) { return 1 === arguments.length ? this.off(e, "**") : this.off(t, e || "**", n) } }); var dt, ht, mt = b.now(), gt = /\?/, yt = /#.*$/, vt = /([?&])_=[^&]*/, xt = /^(.*?):[ \t]*([^\r\n]*)\r?$/gm, bt = /^(?:GET|HEAD)$/, _t = /^\/\//, wt = /^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/, Tt = b.fn.load, Ct = {}, Nt = {}, kt = "*/".concat("*"); try { ht = o.href } catch (e) { (ht = a.createElement("a")).href = "", ht = ht.href } function Et(e) { return function (t, n) { "string" != typeof t && (n = t, t = "*"); var r, i = 0, o = t.toLowerCase().match(w) || []; if (b.isFunction(n)) for (; r = o[i++];)"+" === r[0] ? (r = r.slice(1) || "*", (e[r] = e[r] || []).unshift(n)) : (e[r] = e[r] || []).push(n) } } function St(e, n, r, i) { var o = {}, a = e === Nt; function s(c) { var u; return o[c] = !0, b.each(e[c] || [], (function (e, c) { var l = c(n, r, i); return "string" != typeof l || a || o[l] ? a ? !(u = l) : t : (n.dataTypes.unshift(l), s(l), !1) })), u } return s(n.dataTypes[0]) || !o["*"] && s("*") } function At(e, n) { var r, i, o = b.ajaxSettings.flatOptions || {}; for (i in n) n[i] !== t && ((o[i] ? e : r || (r = {}))[i] = n[i]); return r && b.extend(!0, e, r), e } dt = wt.exec(ht.toLowerCase()) || [], b.fn.load = function (e, n, r) { if ("string" != typeof e && Tt) return Tt.apply(this, arguments); var i, o, a, s = this, c = e.indexOf(" "); return c >= 0 && (i = e.slice(c, e.length), e = e.slice(0, c)), b.isFunction(n) ? (r = n, n = t) : n && "object" == typeof n && (a = "POST"), s.length > 0 && b.ajax({ url: e, type: a, dataType: "html", data: n }).done((function (e) { o = arguments, s.html(i ? b("<div>").append(b.parseHTML(e)).find(i) : e) })).complete(r && function (e, t) { s.each(r, o || [e.responseText, t, e]) }), this }, b.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], (function (e, t) { b.fn[t] = function (e) { return this.on(t, e) } })), b.extend({ active: 0, lastModified: {}, etag: {}, ajaxSettings: { url: ht, type: "GET", isLocal: /^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(dt[1]), global: !0, processData: !0, async: !0, contentType: "application/x-www-form-urlencoded; charset=UTF-8", accepts: { "*": kt, text: "text/plain", html: "text/html", xml: "application/xml, text/xml", json: "application/json, text/javascript" }, contents: { xml: /xml/, html: /html/, json: /json/ }, responseFields: { xml: "responseXML", text: "responseText", json: "responseJSON" }, converters: { "* text": String, "text html": !0, "text json": b.parseJSON, "text xml": b.parseXML }, flatOptions: { url: !0, context: !0 } }, ajaxSetup: function (e, t) { return t ? At(At(e, b.ajaxSettings), t) : At(b.ajaxSettings, e) }, ajaxPrefilter: Et(Ct), ajaxTransport: Et(Nt), ajax: function (e, n) { "object" == typeof e && (n = e, e = t), n = n || {}; var r, i, o, a, s, c, u, l, f = b.ajaxSetup({}, n), p = f.context || f, d = f.context && (p.nodeType || p.jquery) ? b(p) : b.event, h = b.Deferred(), m = b.Callbacks("once memory"), g = f.statusCode || {}, y = {}, v = {}, x = 0, _ = "canceled", T = { readyState: 0, getResponseHeader: function (e) { var t; if (2 === x) { if (!l) for (l = {}; t = xt.exec(a);)l[t[1].toLowerCase()] = t[2]; t = l[e.toLowerCase()] } return null == t ? null : t }, getAllResponseHeaders: function () { return 2 === x ? a : null }, setRequestHeader: function (e, t) { var n = e.toLowerCase(); return x || (e = v[n] = v[n] || e, y[e] = t), this }, overrideMimeType: function (e) { return x || (f.mimeType = e), this }, statusCode: function (e) { var t; if (e) if (2 > x) for (t in e) g[t] = [g[t], e[t]]; else T.always(e[T.status]); return this }, abort: function (e) { var t = e || _; return u && u.abort(t), C(0, t), this } }; if (h.promise(T).complete = m.add, T.success = T.done, T.error = T.fail, f.url = ((e || f.url || ht) + "").replace(yt, "").replace(_t, dt[1] + "//"), f.type = n.method || n.type || f.method || f.type, f.dataTypes = b.trim(f.dataType || "*").toLowerCase().match(w) || [""], null == f.crossDomain && (r = wt.exec(f.url.toLowerCase()), f.crossDomain = !(!r || r[1] === dt[1] && r[2] === dt[2] && (r[3] || ("http:" === r[1] ? "80" : "443")) === (dt[3] || ("http:" === dt[1] ? "80" : "443")))), f.data && f.processData && "string" != typeof f.data && (f.data = b.param(f.data, f.traditional)), St(Ct, f, n, T), 2 === x) return T; for (i in (c = f.global) && 0 == b.active++ && b.event.trigger("ajaxStart"), f.type = f.type.toUpperCase(), f.hasContent = !bt.test(f.type), o = f.url, f.hasContent || (f.data && (o = f.url += (gt.test(o) ? "&" : "?") + f.data, delete f.data), !1 === f.cache && (f.url = vt.test(o) ? o.replace(vt, "$1_=" + mt++) : o + (gt.test(o) ? "&" : "?") + "_=" + mt++)), f.ifModified && (b.lastModified[o] && T.setRequestHeader("If-Modified-Since", b.lastModified[o]), b.etag[o] && T.setRequestHeader("If-None-Match", b.etag[o])), (f.data && f.hasContent && !1 !== f.contentType || n.contentType) && T.setRequestHeader("Content-Type", f.contentType), T.setRequestHeader("Accept", f.dataTypes[0] && f.accepts[f.dataTypes[0]] ? f.accepts[f.dataTypes[0]] + ("*" !== f.dataTypes[0] ? ", " + kt + "; q=0.01" : "") : f.accepts["*"]), f.headers) T.setRequestHeader(i, f.headers[i]); if (f.beforeSend && (!1 === f.beforeSend.call(p, T, f) || 2 === x)) return T.abort(); for (i in _ = "abort", { success: 1, error: 1, complete: 1 }) T[i](f[i]); if (u = St(Nt, f, n, T)) { T.readyState = 1, c && d.trigger("ajaxSend", [T, f]), f.async && f.timeout > 0 && (s = setTimeout((function () { T.abort("timeout") }), f.timeout)); try { x = 1, u.send(y, C) } catch (e) { if (!(2 > x)) throw e; C(-1, e) } } else C(-1, "No Transport"); function C(e, n, r, i) { var l, y, v, _, w, C = n; 2 !== x && (x = 2, s && clearTimeout(s), u = t, a = i || "", T.readyState = e > 0 ? 4 : 0, l = e >= 200 && 300 > e || 304 === e, r && (_ = function (e, n, r) { var i, o, a, s, c = e.contents, u = e.dataTypes; for (; "*" === u[0];)u.shift(), o === t && (o = e.mimeType || n.getResponseHeader("Content-Type")); if (o) for (s in c) if (c[s] && c[s].test(o)) { u.unshift(s); break } if (u[0] in r) a = u[0]; else { for (s in r) { if (!u[0] || e.converters[s + " " + u[0]]) { a = s; break } i || (i = s) } a = a || i } return a ? (a !== u[0] && u.unshift(a), r[a]) : t }(f, T, r)), _ = function (e, t, n, r) { var i, o, a, s, c, u = {}, l = e.dataTypes.slice(); if (l[1]) for (a in e.converters) u[a.toLowerCase()] = e.converters[a]; o = l.shift(); for (; o;)if (e.responseFields[o] && (n[e.responseFields[o]] = t), !c && r && e.dataFilter && (t = e.dataFilter(t, e.dataType)), c = o, o = l.shift()) if ("*" === o) o = c; else if ("*" !== c && c !== o) { if (!(a = u[c + " " + o] || u["* " + o])) for (i in u) if ((s = i.split(" "))[1] === o && (a = u[c + " " + s[0]] || u["* " + s[0]])) { !0 === a ? a = u[i] : !0 !== u[i] && (o = s[0], l.unshift(s[1])); break } if (!0 !== a) if (a && e.throws) t = a(t); else try { t = a(t) } catch (e) { return { state: "parsererror", error: a ? e : "No conversion from " + c + " to " + o } } } return { state: "success", data: t } }(f, _, T, l), l ? (f.ifModified && ((w = T.getResponseHeader("Last-Modified")) && (b.lastModified[o] = w), (w = T.getResponseHeader("etag")) && (b.etag[o] = w)), 204 === e || "HEAD" === f.type ? C = "nocontent" : 304 === e ? C = "notmodified" : (C = _.state, y = _.data, l = !(v = _.error))) : (v = C, (e || !C) && (C = "error", 0 > e && (e = 0))), T.status = e, T.statusText = (n || C) + "", l ? h.resolveWith(p, [y, C, T]) : h.rejectWith(p, [T, C, v]), T.statusCode(g), g = t, c && d.trigger(l ? "ajaxSuccess" : "ajaxError", [T, f, l ? y : v]), m.fireWith(p, [T, C]), c && (d.trigger("ajaxComplete", [T, f]), --b.active || b.event.trigger("ajaxStop"))) } return T }, getJSON: function (e, t, n) { return b.get(e, t, n, "json") }, getScript: function (e, n) { return b.get(e, t, n, "script") } }), b.each(["get", "post"], (function (e, n) { b[n] = function (e, r, i, o) { return b.isFunction(r) && (o = o || i, i = r, r = t), b.ajax({ url: e, type: n, dataType: o, data: r, success: i }) } })), b.ajaxSetup({ accepts: { script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" }, contents: { script: /(?:java|ecma)script/ }, converters: { "text script": function (e) { return b.globalEval(e), e } } }), b.ajaxPrefilter("script", (function (e) { e.cache === t && (e.cache = !1), e.crossDomain && (e.type = "GET", e.global = !1) })), b.ajaxTransport("script", (function (e) { if (e.crossDomain) { var n, r = a.head || b("head")[0] || a.documentElement; return { send: function (t, i) { (n = a.createElement("script")).async = !0, e.scriptCharset && (n.charset = e.scriptCharset), n.src = e.url, n.onload = n.onreadystatechange = function (e, t) { (t || !n.readyState || /loaded|complete/.test(n.readyState)) && (n.onload = n.onreadystatechange = null, n.parentNode && n.parentNode.removeChild(n), n = null, t || i(200, "success")) }, r.insertBefore(n, r.firstChild) }, abort: function () { n && n.onload(t, !0) } } } })); var jt = [], Dt = /(=)\?(?=&|$)|\?\?/; b.ajaxSetup({ jsonp: "callback", jsonpCallback: function () { var e = jt.pop() || b.expando + "_" + mt++; return this[e] = !0, e } }), b.ajaxPrefilter("json jsonp", (function (n, r, i) { var o, a, s, c = !1 !== n.jsonp && (Dt.test(n.url) ? "url" : "string" == typeof n.data && !(n.contentType || "").indexOf("application/x-www-form-urlencoded") && Dt.test(n.data) && "data"); return c || "jsonp" === n.dataTypes[0] ? (o = n.jsonpCallback = b.isFunction(n.jsonpCallback) ? n.jsonpCallback() : n.jsonpCallback, c ? n[c] = n[c].replace(Dt, "$1" + o) : !1 !== n.jsonp && (n.url += (gt.test(n.url) ? "&" : "?") + n.jsonp + "=" + o), n.converters["script json"] = function () { return s || b.error(o + " was not called"), s[0] }, n.dataTypes[0] = "json", a = e[o], e[o] = function () { s = arguments }, i.always((function () { e[o] = a, n[o] && (n.jsonpCallback = r.jsonpCallback, jt.push(o)), s && b.isFunction(a) && a(s[0]), s = a = t })), "script") : t })); var Lt, Ht, qt = 0, Mt = e.ActiveXObject && function () { var e; for (e in Lt) Lt[e](t, !0) }; function Ot() { try { return new e.XMLHttpRequest } catch (e) { } } b.ajaxSettings.xhr = e.ActiveXObject ? function () { return !this.isLocal && Ot() || function () { try { return new e.ActiveXObject("Microsoft.XMLHTTP") } catch (e) { } }() } : Ot, Ht = b.ajaxSettings.xhr(), b.support.cors = !!Ht && "withCredentials" in Ht, (Ht = b.support.ajax = !!Ht) && b.ajaxTransport((function (n) { var r; if (!n.crossDomain || b.support.cors) return { send: function (i, o) { var a, s, c = n.xhr(); if (n.username ? c.open(n.type, n.url, n.async, n.username, n.password) : c.open(n.type, n.url, n.async), n.xhrFields) for (s in n.xhrFields) c[s] = n.xhrFields[s]; n.mimeType && c.overrideMimeType && c.overrideMimeType(n.mimeType), n.crossDomain || i["X-Requested-With"] || (i["X-Requested-With"] = "XMLHttpRequest"); try { for (s in i) c.setRequestHeader(s, i[s]) } catch (e) { } c.send(n.hasContent && n.data || null), r = function (e, i) { var s, u, l, f; try { if (r && (i || 4 === c.readyState)) if (r = t, a && (c.onreadystatechange = b.noop, Mt && delete Lt[a]), i) 4 !== c.readyState && c.abort(); else { f = {}, s = c.status, u = c.getAllResponseHeaders(), "string" == typeof c.responseText && (f.text = c.responseText); try { l = c.statusText } catch (e) { l = "" } s || !n.isLocal || n.crossDomain ? 1223 === s && (s = 204) : s = f.text ? 200 : 404 } } catch (e) { i || o(-1, e) } f && o(s, l, f, u) }, n.async ? 4 === c.readyState ? setTimeout(r) : (a = ++qt, Mt && (Lt || (Lt = {}, b(e).unload(Mt)), Lt[a] = r), c.onreadystatechange = r) : r() }, abort: function () { r && r(t, !0) } } })); var Ft, Bt, Pt = /^(?:toggle|show|hide)$/, $t = RegExp("^(?:([+-])=|)(" + _ + ")([a-z%]*)$", "i"), Rt = /queueHooks$/, Wt = [function (e, t, n) { var r, i, o, a, s, c, u = this, l = {}, f = e.style, p = e.nodeType && et(e), d = b._data(e, "fxshow"); for (r in n.queue || (null == (s = b._queueHooks(e, "fx")).unqueued && (s.unqueued = 0, c = s.empty.fire, s.empty.fire = function () { s.unqueued || c() }), s.unqueued++ , u.always((function () { u.always((function () { s.unqueued-- , b.queue(e, "fx").length || s.empty.fire() })) }))), 1 === e.nodeType && ("height" in t || "width" in t) && (n.overflow = [f.overflow, f.overflowX, f.overflowY], "inline" === b.css(e, "display") && "none" === b.css(e, "float") && (b.support.inlineBlockNeedsLayout && "inline" !== ot(e.nodeName) ? f.zoom = 1 : f.display = "inline-block")), n.overflow && (f.overflow = "hidden", b.support.shrinkWrapBlocks || u.always((function () { f.overflow = n.overflow[0], f.overflowX = n.overflow[1], f.overflowY = n.overflow[2] }))), t) if (i = t[r], Pt.exec(i)) { if (delete t[r], o = o || "toggle" === i, i === (p ? "hide" : "show")) continue; l[r] = d && d[r] || b.style(e, r) } if (!b.isEmptyObject(l)) for (r in d ? "hidden" in d && (p = d.hidden) : d = b._data(e, "fxshow", {}), o && (d.hidden = !p), p ? b(e).show() : u.done((function () { b(e).hide() })), u.done((function () { var t; for (t in b._removeData(e, "fxshow"), l) b.style(e, t, l[t]) })), l) a = Xt(p ? d[r] : 0, r, u), r in d || (d[r] = a.start, p && (a.end = a.start, a.start = "width" === r || "height" === r ? 1 : 0)) }], It = { "*": [function (e, t) { var n = this.createTween(e, t), r = n.cur(), i = $t.exec(t), o = i && i[3] || (b.cssNumber[e] ? "" : "px"), a = (b.cssNumber[e] || "px" !== o && +r) && $t.exec(b.css(n.elem, e)), s = 1, c = 20; if (a && a[3] !== o) { o = o || a[3], i = i || [], a = +r || 1; do { a /= s = s || ".5", b.style(n.elem, e, a + o) } while (s !== (s = n.cur() / r) && 1 !== s && --c) } return i && (a = n.start = +a || +r || 0, n.unit = o, n.end = i[1] ? a + (i[1] + 1) * i[2] : +i[2]), n }] }; function zt() { return setTimeout((function () { Ft = t })), Ft = b.now() } function Xt(e, t, n) { for (var r, i = (It[t] || []).concat(It["*"]), o = 0, a = i.length; a > o; o++)if (r = i[o].call(n, t, e)) return r } function Ut(e, t, n) { var r, i, o = 0, a = Wt.length, s = b.Deferred().always((function () { delete c.elem })), c = function () { if (i) return !1; for (var t = Ft || zt(), n = Math.max(0, u.startTime + u.duration - t), r = 1 - (n / u.duration || 0), o = 0, a = u.tweens.length; a > o; o++)u.tweens[o].run(r); return s.notifyWith(e, [u, r, n]), 1 > r && a ? n : (s.resolveWith(e, [u]), !1) }, u = s.promise({ elem: e, props: b.extend({}, t), opts: b.extend(!0, { specialEasing: {} }, n), originalProperties: t, originalOptions: n, startTime: Ft || zt(), duration: n.duration, tweens: [], createTween: function (t, n) { var r = b.Tween(e, u.opts, t, n, u.opts.specialEasing[t] || u.opts.easing); return u.tweens.push(r), r }, stop: function (t) { var n = 0, r = t ? u.tweens.length : 0; if (i) return this; for (i = !0; r > n; n++)u.tweens[n].run(1); return t ? s.resolveWith(e, [u, t]) : s.rejectWith(e, [u, t]), this } }), l = u.props; for (function (e, t) { var n, r, i, o, a; for (n in e) if (r = b.camelCase(n), i = t[r], o = e[n], b.isArray(o) && (i = o[1], o = e[n] = o[0]), n !== r && (e[r] = o, delete e[n]), (a = b.cssHooks[r]) && "expand" in a) for (n in o = a.expand(o), delete e[r], o) n in e || (e[n] = o[n], t[n] = i); else t[r] = i }(l, u.opts.specialEasing); a > o; o++)if (r = Wt[o].call(u, e, l, u.opts)) return r; return b.map(l, Xt, u), b.isFunction(u.opts.start) && u.opts.start.call(e, u), b.fx.timer(b.extend(c, { elem: e, anim: u, queue: u.opts.queue })), u.progress(u.opts.progress).done(u.opts.done, u.opts.complete).fail(u.opts.fail).always(u.opts.always) } function Yt(e, t, n, r, i) { return new Yt.prototype.init(e, t, n, r, i) } function Vt(e, t) { var n, r = { height: e }, i = 0; for (t = t ? 1 : 0; 4 > i; i += 2 - t)r["margin" + (n = Ge[i])] = r["padding" + n] = e; return t && (r.opacity = r.width = e), r } function Jt(e) { return b.isWindow(e) ? e : 9 === e.nodeType && (e.defaultView || e.parentWindow) } b.Animation = b.extend(Ut, { tweener: function (e, t) { b.isFunction(e) ? (t = e, e = ["*"]) : e = e.split(" "); for (var n, r = 0, i = e.length; i > r; r++)n = e[r], It[n] = It[n] || [], It[n].unshift(t) }, prefilter: function (e, t) { t ? Wt.unshift(e) : Wt.push(e) } }), b.Tween = Yt, Yt.prototype = { constructor: Yt, init: function (e, t, n, r, i, o) { this.elem = e, this.prop = n, this.easing = i || "swing", this.options = t, this.start = this.now = this.cur(), this.end = r, this.unit = o || (b.cssNumber[n] ? "" : "px") }, cur: function () { var e = Yt.propHooks[this.prop]; return e && e.get ? e.get(this) : Yt.propHooks._default.get(this) }, run: function (e) { var t, n = Yt.propHooks[this.prop]; return this.pos = t = this.options.duration ? b.easing[this.easing](e, this.options.duration * e, 0, 1, this.options.duration) : e, this.now = (this.end - this.start) * t + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), n && n.set ? n.set(this) : Yt.propHooks._default.set(this), this } }, Yt.prototype.init.prototype = Yt.prototype, Yt.propHooks = { _default: { get: function (e) { var t; return null == e.elem[e.prop] || e.elem.style && null != e.elem.style[e.prop] ? (t = b.css(e.elem, e.prop, "")) && "auto" !== t ? t : 0 : e.elem[e.prop] }, set: function (e) { b.fx.step[e.prop] ? b.fx.step[e.prop](e) : e.elem.style && (null != e.elem.style[b.cssProps[e.prop]] || b.cssHooks[e.prop]) ? b.style(e.elem, e.prop, e.now + e.unit) : e.elem[e.prop] = e.now } } }, Yt.propHooks.scrollTop = Yt.propHooks.scrollLeft = { set: function (e) { e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now) } }, b.each(["toggle", "show", "hide"], (function (e, t) { var n = b.fn[t]; b.fn[t] = function (e, r, i) { return null == e || "boolean" == typeof e ? n.apply(this, arguments) : this.animate(Vt(t, !0), e, r, i) } })), b.fn.extend({ fadeTo: function (e, t, n, r) { return this.filter(et).css("opacity", 0).show().end().animate({ opacity: t }, e, n, r) }, animate: function (e, t, n, r) { var i = b.isEmptyObject(e), o = b.speed(t, n, r), a = function () { var t = Ut(this, b.extend({}, e), o); (i || b._data(this, "finish")) && t.stop(!0) }; return a.finish = a, i || !1 === o.queue ? this.each(a) : this.queue(o.queue, a) }, stop: function (e, n, r) { var i = function (e) { var t = e.stop; delete e.stop, t(r) }; return "string" != typeof e && (r = n, n = e, e = t), n && !1 !== e && this.queue(e || "fx", []), this.each((function () { var t = !0, n = null != e && e + "queueHooks", o = b.timers, a = b._data(this); if (n) a[n] && a[n].stop && i(a[n]); else for (n in a) a[n] && a[n].stop && Rt.test(n) && i(a[n]); for (n = o.length; n--;)o[n].elem !== this || null != e && o[n].queue !== e || (o[n].anim.stop(r), t = !1, o.splice(n, 1)); (t || !r) && b.dequeue(this, e) })) }, finish: function (e) { return !1 !== e && (e = e || "fx"), this.each((function () { var t, n = b._data(this), r = n[e + "queue"], i = n[e + "queueHooks"], o = b.timers, a = r ? r.length : 0; for (n.finish = !0, b.queue(this, e, []), i && i.stop && i.stop.call(this, !0), t = o.length; t--;)o[t].elem === this && o[t].queue === e && (o[t].anim.stop(!0), o.splice(t, 1)); for (t = 0; a > t; t++)r[t] && r[t].finish && r[t].finish.call(this); delete n.finish })) } }), b.each({ slideDown: Vt("show"), slideUp: Vt("hide"), slideToggle: Vt("toggle"), fadeIn: { opacity: "show" }, fadeOut: { opacity: "hide" }, fadeToggle: { opacity: "toggle" } }, (function (e, t) { b.fn[e] = function (e, n, r) { return this.animate(t, e, n, r) } })), b.speed = function (e, t, n) { var r = e && "object" == typeof e ? b.extend({}, e) : { complete: n || !n && t || b.isFunction(e) && e, duration: e, easing: n && t || t && !b.isFunction(t) && t }; return r.duration = b.fx.off ? 0 : "number" == typeof r.duration ? r.duration : r.duration in b.fx.speeds ? b.fx.speeds[r.duration] : b.fx.speeds._default, (null == r.queue || !0 === r.queue) && (r.queue = "fx"), r.old = r.complete, r.complete = function () { b.isFunction(r.old) && r.old.call(this), r.queue && b.dequeue(this, r.queue) }, r }, b.easing = { linear: function (e) { return e }, swing: function (e) { return .5 - Math.cos(e * Math.PI) / 2 } }, b.timers = [], b.fx = Yt.prototype.init, b.fx.tick = function () { var e, n = b.timers, r = 0; for (Ft = b.now(); n.length > r; r++)(e = n[r])() || n[r] !== e || n.splice(r--, 1); n.length || b.fx.stop(), Ft = t }, b.fx.timer = function (e) { e() && b.timers.push(e) && b.fx.start() }, b.fx.interval = 13, b.fx.start = function () { Bt || (Bt = setInterval(b.fx.tick, b.fx.interval)) }, b.fx.stop = function () { clearInterval(Bt), Bt = null }, b.fx.speeds = { slow: 600, fast: 200, _default: 400 }, b.fx.step = {}, b.expr && b.expr.filters && (b.expr.filters.animated = function (e) { return b.grep(b.timers, (function (t) { return e === t.elem })).length }), b.fn.offset = function (e) { if (arguments.length) return e === t ? this : this.each((function (t) { b.offset.setOffset(this, e, t) })); var n, r, o = { top: 0, left: 0 }, a = this[0], s = a && a.ownerDocument; return s ? (n = s.documentElement, b.contains(n, a) ? (typeof a.getBoundingClientRect !== i && (o = a.getBoundingClientRect()), r = Jt(s), { top: o.top + (r.pageYOffset || n.scrollTop) - (n.clientTop || 0), left: o.left + (r.pageXOffset || n.scrollLeft) - (n.clientLeft || 0) }) : o) : void 0 }, b.offset = { setOffset: function (e, t, n) { var r = b.css(e, "position"); "static" === r && (e.style.position = "relative"); var i, o, a = b(e), s = a.offset(), c = b.css(e, "top"), u = b.css(e, "left"), l = {}, f = {}; ("absolute" === r || "fixed" === r) && b.inArray("auto", [c, u]) > -1 ? (i = (f = a.position()).top, o = f.left) : (i = parseFloat(c) || 0, o = parseFloat(u) || 0), b.isFunction(t) && (t = t.call(e, n, s)), null != t.top && (l.top = t.top - s.top + i), null != t.left && (l.left = t.left - s.left + o), "using" in t ? t.using.call(e, l) : a.css(l) } }, b.fn.extend({ position: function () { if (this[0]) { var e, t, n = { top: 0, left: 0 }, r = this[0]; return "fixed" === b.css(r, "position") ? t = r.getBoundingClientRect() : (e = this.offsetParent(), t = this.offset(), b.nodeName(e[0], "html") || (n = e.offset()), n.top += b.css(e[0], "borderTopWidth", !0), n.left += b.css(e[0], "borderLeftWidth", !0)), { top: t.top - n.top - b.css(r, "marginTop", !0), left: t.left - n.left - b.css(r, "marginLeft", !0) } } }, offsetParent: function () { return this.map((function () { for (var e = this.offsetParent || s; e && !b.nodeName(e, "html") && "static" === b.css(e, "position");)e = e.offsetParent; return e || s })) } }), b.each({ scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, (function (e, n) { var r = /Y/.test(n); b.fn[e] = function (i) { return b.access(this, (function (e, i, o) { var a = Jt(e); return o === t ? a ? n in a ? a[n] : a.document.documentElement[i] : e[i] : (a ? a.scrollTo(r ? b(a).scrollLeft() : o, r ? o : b(a).scrollTop()) : e[i] = o, t) }), e, i, arguments.length, null) } })), b.each({ Height: "height", Width: "width" }, (function (e, n) { b.each({ padding: "inner" + e, content: n, "": "outer" + e }, (function (r, i) { b.fn[i] = function (i, o) { var a = arguments.length && (r || "boolean" != typeof i), s = r || (!0 === i || !0 === o ? "margin" : "border"); return b.access(this, (function (n, r, i) { var o; return b.isWindow(n) ? n.document.documentElement["client" + e] : 9 === n.nodeType ? (o = n.documentElement, Math.max(n.body["scroll" + e], o["scroll" + e], n.body["offset" + e], o["offset" + e], o["client" + e])) : i === t ? b.css(n, r, s) : b.style(n, r, i, s) }), n, a ? i : t, a, null) } })) })), b.fn.size = function () { return this.length }, b.fn.andSelf = b.fn.addBack, "object" == typeof module && module && "object" == typeof module.exports ? module.exports = b : (e.jQuery = e.$ = b, "function" == typeof define && define.amd && define("jquery", [], (function () { return b }))) }(window), function (e) { e.fn.hoverIntent = function (t, n) { var r, i, o, a, s = { sensitivity: 7, interval: 100, timeout: 0 }; s = e.extend(s, n ? { over: t, out: n } : t); var c = function (e) { r = e.pageX, i = e.pageY }, u = function (t, n) { if (n.hoverIntent_t = clearTimeout(n.hoverIntent_t), Math.abs(o - r) + Math.abs(a - i) < s.sensitivity) return e(n).unbind("mousemove", c), n.hoverIntent_s = 1, s.over.apply(n, [t]); o = r, a = i, n.hoverIntent_t = setTimeout((function () { u(t, n) }), s.interval) }, l = function (t) { var n = jQuery.extend({}, t), r = this; r.hoverIntent_t && (r.hoverIntent_t = clearTimeout(r.hoverIntent_t)), "mouseenter" == t.type ? (o = n.pageX, a = n.pageY, e(r).bind("mousemove", c), 1 != r.hoverIntent_s && (r.hoverIntent_t = setTimeout((function () { u(n, r) }), s.interval))) : (e(r).unbind("mousemove", c), 1 == r.hoverIntent_s && (r.hoverIntent_t = setTimeout((function () { !function (e, t) { t.hoverIntent_t = clearTimeout(t.hoverIntent_t), t.hoverIntent_s = 0, s.out.apply(t, [e]) }(n, r) }), s.timeout))) }; return this.bind("mouseenter", l).bind("mouseleave", l) } }(jQuery); var _0xaaa4 = ["val", "input#name", "", " ", "Name", '<div class="error">Hey, what is you name!?</div>', "before", "focus", "input#email", '<div class="error">Psst. You missed one.</div>', "test", '<div class="error">I think your email is wrong...</div>', "select", "#message", "Message", '<div class="error">Oops! You forgot to type a message!</div>', "serialize", "#megamenu_form", "POST", "email.php", "hide", ".error", "find", "#mgmenu_form", '<div class="success"></div>', "Your email has been sent successfully !", "html", ".success", "ajax", "click", "#mgmenu_form #submit"]; function megaMenuContactForm() { $(_0xaaa4[30])[_0xaaa4[29]]((function () { var e = $(_0xaaa4[1])[_0xaaa4[0]](); if (e == _0xaaa4[2] || e == _0xaaa4[3] || e == _0xaaa4[4]) return $(_0xaaa4[1])[_0xaaa4[7]]()[_0xaaa4[6]](_0xaaa4[5]), !1; var t = $(_0xaaa4[8])[_0xaaa4[0]](); if (t == _0xaaa4[2] || t == _0xaaa4[3]) return $(_0xaaa4[8])[_0xaaa4[7]]()[_0xaaa4[6]](_0xaaa4[9]), !1; if (!/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/[_0xaaa4[10]](t)) return $(_0xaaa4[8])[_0xaaa4[12]]()[_0xaaa4[6]](_0xaaa4[11]), !1; var n = $(_0xaaa4[13])[_0xaaa4[0]](); if (n == _0xaaa4[2] || n == _0xaaa4[3] || n == _0xaaa4[14]) return $(_0xaaa4[13])[_0xaaa4[7]]()[_0xaaa4[6]](_0xaaa4[15]), !1; var r = $(_0xaaa4[17])[_0xaaa4[16]](); return $[_0xaaa4[28]]({ type: _0xaaa4[18], url: _0xaaa4[19], data: r, success: function () { $(_0xaaa4[23])[_0xaaa4[22]](_0xaaa4[21])[_0xaaa4[20]](0), $(_0xaaa4[23])[_0xaaa4[6]](_0xaaa4[24]), $(_0xaaa4[27])[_0xaaa4[26]](_0xaaa4[25]) } }), !1 })) } var _0x6bc4 = ["universalMegaMenu", "hover_fade", "options", ".mgmenu", "children", "li", "span", ".dropdown_container, .dropdown_fullwidth", "find", ".dropdown_parent", "a", ".dropdown_flyout_level", ".mgmenu_button", "add", "init", "extend", "menu_click_outside", "menubar_trigger", "menubar_hide", "ontouchstart", "documentElement", "menu_responsive", "width", "hide", "show", "noactive", "toggleClass", "orientationchange", "bind", "mgmenu_button_active", "removeClass", ":visible", "is", "resize", "toggle", ":eq(0)", "not", "click", "block", "css", "active", "body", "stopPropagation", '<a class="mgmenu_trigger" href="#"></a>', "after", "next", ".mgmenu_trigger", "slideToggle", "prev", "addClass", "siblings", "first", "active noactive", "mouseenter mouseleave", "unbind", "fadeToggle", "fadeOut", "open_close_fade", "menu_effect", "hoverIntent", "menu_speed_hide", "menu_speed_show", "menu_speed_delay", "delay", ".mgmenu_tabs_nav > li > a", "substring", "href", "attr", "a.current", "length", ":animated", "current", ".mgmenu_tabs_nav li a", "fadeIn", "#", "height", "each", ".mgmenu_tabs", "fn", "megaMenu", "data"]; !function (e) { e[_0x6bc4[0]] = function (t, n) { _0x6bc4[1]; var r = this; r[_0x6bc4[2]] = {}; var i = e(t), o = (t = t, i[_0x6bc4[4]](_0x6bc4[3])), a = e(o)[_0x6bc4[4]](_0x6bc4[5]), s = e(a)[_0x6bc4[4]](_0x6bc4[6]), c = e(a)[_0x6bc4[8]](_0x6bc4[7]), u = e(a)[_0x6bc4[8]](_0x6bc4[9]), l = e(u)[_0x6bc4[4]](_0x6bc4[10]), f = e(u)[_0x6bc4[8]](_0x6bc4[11]), p = i[_0x6bc4[8]](_0x6bc4[12]), d = e(a)[_0x6bc4[13]](u), h = (e(s)[_0x6bc4[13]](l), e(c)[_0x6bc4[13]](f)), m = { sensitivity: 2, interval: 100, over: function () { var t = e(this); if (n[_0x6bc4[58]] === _0x6bc4[1]) t[_0x6bc4[4]](h)[_0x6bc4[73]](n[_0x6bc4[61]]) }, timeout: 200, out: function () { var t = e(this); if (n[_0x6bc4[58]] === _0x6bc4[1]) t[_0x6bc4[8]](h)[_0x6bc4[56]](n[_0x6bc4[60]]) } }; r[_0x6bc4[14]] = function () { r[_0x6bc4[2]] = e[_0x6bc4[15]]({}, n, n), g(), b(), _(), !0 === n[_0x6bc4[16]] && v(), !0 === n[_0x6bc4[17]] && (megamenuBarHide = n[_0x6bc4[18]], x(i)) }; var g = function () { _0x6bc4[19] in document[_0x6bc4[20]] && !0 === n[_0x6bc4[21]] ? (e(window)[_0x6bc4[22]]() < 768 ? (e(h)[_0x6bc4[23]](), e(a)[_0x6bc4[23]](0), e(p)[_0x6bc4[24]](0)) : y(), e(d)[_0x6bc4[26]](_0x6bc4[25]), e(window)[_0x6bc4[28]](_0x6bc4[27], (function () { y() }))) : (y(), e(window)[_0x6bc4[33]]((function () { y(), e(p)[_0x6bc4[30]](_0x6bc4[29]), !i[_0x6bc4[32]](_0x6bc4[31]) && e(window)[_0x6bc4[22]]() < 768 && i[_0x6bc4[24]](0) }))), e(p)[_0x6bc4[37]]((function () { e(p)[_0x6bc4[26]](_0x6bc4[29]), e(a)[_0x6bc4[36]](_0x6bc4[35])[_0x6bc4[34]](0) })) }, y = function () { e(window)[_0x6bc4[22]]() < 768 && !0 === n[_0x6bc4[21]] ? (e(h)[_0x6bc4[39]]({ display: _0x6bc4[38] })[_0x6bc4[23]](0), e(a)[_0x6bc4[23]](0), e(p)[_0x6bc4[24]](0)) : (e(h)[_0x6bc4[39]]({ display: _0x6bc4[38] })[_0x6bc4[23]](0), e(a)[_0x6bc4[24]](0)[_0x6bc4[30]](_0x6bc4[40]), e(p)[_0x6bc4[23]](0)) }, v = function () { e(t)[_0x6bc4[37]]((function (t) { e(_0x6bc4[41])[_0x6bc4[37]]((function () { e(d)[_0x6bc4[30]](_0x6bc4[40]), e(h)[_0x6bc4[23]](0) })), t[_0x6bc4[42]]() })) }, x = function (t) { t[_0x6bc4[44]](_0x6bc4[43]); var n = t[_0x6bc4[45]](_0x6bc4[10]); !0 === megamenuBarHide && e(window)[_0x6bc4[22]]() >= 768 && (t[_0x6bc4[23]](0), e(_0x6bc4[46])[_0x6bc4[26]](_0x6bc4[40])), n[_0x6bc4[37]]((function () { return e(this)[_0x6bc4[48]](t)[_0x6bc4[47]](300), e(this)[_0x6bc4[26]](_0x6bc4[40]), !1 })) }, b = function () { if (_0x6bc4[19] in document[_0x6bc4[20]] && !0 === n[_0x6bc4[21]]) return e(d)[_0x6bc4[54]](_0x6bc4[53])[_0x6bc4[37]]((function () { var t = e(this); t[_0x6bc4[50]]()[_0x6bc4[30]](_0x6bc4[40])[_0x6bc4[49]](_0x6bc4[25])[_0x6bc4[8]](h)[_0x6bc4[23]](0), t[_0x6bc4[26]](_0x6bc4[52])[_0x6bc4[8]](h)[_0x6bc4[51]]()[_0x6bc4[34]](0)[_0x6bc4[37]]((function (e) { e[_0x6bc4[42]]() })) })), e(document)[_0x6bc4[37]]((function () { e(d)[_0x6bc4[49]](_0x6bc4[25]), e(h)[_0x6bc4[23]](0) })), i[_0x6bc4[37]]((function (e) { e[_0x6bc4[42]]() })), void e(window)[_0x6bc4[28]](_0x6bc4[27], (function () { e(d)[_0x6bc4[49]](_0x6bc4[25]), e(h)[_0x6bc4[23]](0) })); if (n[_0x6bc4[58]] === _0x6bc4[57]) var t = _0x6bc4[55], r = _0x6bc4[56]; switch (n[_0x6bc4[58]]) { case _0x6bc4[1]: e(a)[_0x6bc4[59]](m), e(u)[_0x6bc4[59]](m); break; case _0x6bc4[57]: e(d)[_0x6bc4[54]](_0x6bc4[53])[_0x6bc4[37]]((function () { var i = e(this); i[_0x6bc4[50]]()[_0x6bc4[30]](_0x6bc4[40])[_0x6bc4[8]](h)[r](n[_0x6bc4[60]]), i[_0x6bc4[26]](_0x6bc4[40])[_0x6bc4[8]](h)[_0x6bc4[51]]()[_0x6bc4[63]](n[_0x6bc4[62]])[t](n[_0x6bc4[61]])[_0x6bc4[37]]((function (e) { e[_0x6bc4[42]]() })) })) } }, _ = function () { e(_0x6bc4[77])[_0x6bc4[76]]((function (t, n) { var r = e(this); menuTabsNav = r[_0x6bc4[8]](_0x6bc4[64]), menuTabsNav[_0x6bc4[37]]((function () { var t = r[_0x6bc4[8]](_0x6bc4[68])[_0x6bc4[67]](_0x6bc4[66])[_0x6bc4[65]](1), n = e(this), i = n[_0x6bc4[67]](_0x6bc4[66])[_0x6bc4[65]](1); return i != t && 0 == r[_0x6bc4[8]](_0x6bc4[70])[_0x6bc4[69]] && (r[_0x6bc4[8]](_0x6bc4[72])[_0x6bc4[30]](_0x6bc4[71]), n[_0x6bc4[49]](_0x6bc4[71]), r[_0x6bc4[8]](_0x6bc4[74] + t)[_0x6bc4[56]](300, (function () { r[_0x6bc4[8]](_0x6bc4[74] + i)[_0x6bc4[73]](300); r[_0x6bc4[8]](_0x6bc4[74] + i)[_0x6bc4[75]]() }))), !1 })) })) }; r[_0x6bc4[14]]() }, e[_0x6bc4[78]][_0x6bc4[0]] = function (t) { return this[_0x6bc4[76]]((function () { if (null == e(this)[_0x6bc4[80]](_0x6bc4[79])) { var n = new e[_0x6bc4[0]](this, t); e(this)[_0x6bc4[80]](_0x6bc4[79], n) } })) } }(jQuery);;$(document).ready(function () { function i() { $("a[data-gal^='prettyPhoto']").prettyPhoto() } jQuery().prettyPhoto && i(), $("#portfolio-filter li.active a").attr("class"); var t = $("ul#filter-item"), a = t.clone(); function e() { $(".caption-hover").css({ top: "100%" }) } function l() { $(".portfolio").hover(function () { var i = $(this).find(".caption-title").outerHeight(); $(this).find(".caption-title").parent().outerHeight(), $(this).find(".caption-hover").parent().outerHeight(), $(this).find(".caption-title").animate({ "margin-top": -i }, "200", "linear"), $(this).find(".caption-hover").animate({ top: 0 }, "200", "linear") }, function () { $(this).find(".caption-title").animate({ "margin-top": "0" }, "200", "linear"), $(this).find(".caption-hover").animate({ top: "100%" }, "200", "linear") }) } $("#category-filter li a, #client-filter li a").click(function (r) { var n = $(".portfolio-filters #category-filter"), o = $(".portfolio-filters #client-filter"); $(this).closest("li").siblings("li").removeClass("active"), $(this).parent().addClass("active"); var s = n.find(".active a").attr("class"), c = o.find(".active a").attr("class"); if (s = (s = s.replace(/slvzr-hover|slvzr-focus/gi, "")).replace(/^\s+|\s+/g, ""), c = (c = c.replace(/slvzr-hover|slvzr-focus/gi, "")).replace(/^\s+|\s+/g, ""), "all" == s) if ("all" == c) var f = a.children("li"); else f = a.find("li[data-beta=" + c + "]"); else f = "all" == c ? a.find("li[data-alpha=" + s + "]") : a.find("li[data-alpha=" + s + "]li[data-beta=" + c + "]"); return t.quicksand(f, { duration: 800, easing: "swing" }, function () { i(), l(), e() }), !1 }), $("#portfolio-filter li a").click(function (r) { $("#portfolio-filter li").removeClass("active"); var n = $(this).attr("class"); if (n = (n = n.replace(/slvzr-hover|slvzr-focus/gi, "")).replace(/^\s+|\s+/g, ""), $(this).parent().addClass("active"), "all" == n) var o = a.children("li"); else o = a.find("li[data-alpha*=" + n + "]"); return t.quicksand(o, { duration: 800, easing: "swing" }, function () { i(), l(), e() }), !1 }), e(), l() });;!function (e) { function t() { return url = location.href, hashtag = -1 != url.indexOf("#!") && decodeURI(url.substring(url.indexOf("#!") + 2, url.length)), hashtag } function i(e, t) { e = e.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var i = new RegExp("[\\?&]" + e + "=([^&#]*)").exec(t); return null == i ? "" : i[1] } e.prettyPhoto = { version: "3.1.2" }, e.fn.prettyPhoto = function (p) { p = jQuery.extend({ animation_speed: "fast", slideshow: 5e3, autoplay_slideshow: !1, opacity: .8, show_title: !1, allow_resize: !0, default_width: 500, default_height: 344, counter_separator_label: "/", theme: "facebook", horizontal_padding: 20, hideflash: !1, wmode: "opaque", autoplay: !0, modal: !1, deeplinking: !1, overlay_gallery: !0, keyboard_shortcuts: !0, changepicturecallback: function () { }, callback: function () { }, ie6_fallback: !0, markup: '<div class="pp_pic_holder"> <div class="ppt">&nbsp;</div> <div class="pp_top"> <div class="pp_left"></div> <div class="pp_middle"></div> <div class="pp_right"></div> </div> <div class="pp_content_container"> <div class="pp_left"> <div class="pp_right"> <div class="pp_content"> <div class="pp_loaderIcon"></div> <div class="pp_fade"> <a href="#" class="pp_expand" title="????????? ?? 100%">?????????</a> <div class="pp_hoverContainer"> <a class="pp_next" href="#">next</a> <a class="pp_previous" href="#">previous</a> </div> <div id="pp_full_res"></div> <div class="pp_details"> <div class="pp_nav"> <a href="#" class="pp_arrow_previous">Previous</a> <p class="currentTextHolder">0/0</p> <a href="#" class="pp_arrow_next">Next</a> </div> <p class="pp_description"></p> {pp_social} <a class="pp_close" href="#">Close</a> </div> </div> </div> </div> </div> </div> <div class="pp_bottom"> <div class="pp_left"></div> <div class="pp_middle"></div> <div class="pp_right"></div> </div> </div> <div class="pp_overlay"></div>', gallery_markup: '<div class="pp_gallery"> <a href="#" class="pp_arrow_previous">Previous</a> <div> <ul> {gallery} </ul> </div> <a href="#" class="pp_arrow_next">Next</a> </div>', image_markup: '<img id="fullResImage" src="{path}" />', flash_markup: '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>', quicktime_markup: '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>', iframe_markup: '<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>', inline_markup: '<div class="pp_inline">{content}</div>', custom_markup: "", social_tools: '<div class="pp_social"></div>' }, p); var a, o, s, r, n, l, d, h = this, c = !1, _ = e(window).height(), g = e(window).width(); function m() { e(".pp_loaderIcon").hide(), projectedTop = scroll_pos.scrollTop + (_ / 2 - a.containerHeight / 2), projectedTop < 0 && (projectedTop = 0), $ppt.fadeTo(settings.animation_speed, 1), $pp_pic_holder.find(".pp_content").animate({ height: a.contentHeight, width: a.contentWidth }, settings.animation_speed), $pp_pic_holder.animate({ top: projectedTop, left: g / 2 - a.containerWidth / 2, width: a.containerWidth }, settings.animation_speed, function () { $pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(a.height).width(a.width), $pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed), isSet && "image" == w(pp_images[set_position]) ? $pp_pic_holder.find(".pp_hoverContainer").show() : $pp_pic_holder.find(".pp_hoverContainer").hide(), a.resized ? e("a.pp_expand,a.pp_contract").show() : e("a.pp_expand").hide(), !settings.autoplay_slideshow || d || o || e.prettyPhoto.startSlideshow(), settings.deeplinking && ("undefined" != typeof theRel && (location.hash = "!" + theRel + "/" + rel_index + "/")), settings.changepicturecallback(), o = !0 }), isSet && settings.overlay_gallery && "image" == w(pp_images[set_position]) && settings.ie6_fallback && (!e.browser.msie || 6 != parseInt(e.browser.version)) ? (itemWidth = 57, navWidth = "facebook" == settings.theme || "pp_default" == settings.theme ? 50 : 30, itemsPerPage = Math.floor((a.containerWidth - 100 - navWidth) / itemWidth), itemsPerPage = itemsPerPage < pp_images.length ? itemsPerPage : pp_images.length, totalPage = Math.ceil(pp_images.length / itemsPerPage) - 1, 0 == totalPage ? (navWidth = 0, $pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").hide()) : $pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").show(), galleryWidth = itemsPerPage * itemWidth, fullGalleryWidth = pp_images.length * itemWidth, $pp_gallery.css("margin-left", -(galleryWidth / 2 + navWidth / 2)).find("div:first").width(galleryWidth + 5).find("ul").width(fullGalleryWidth).find("li.selected").removeClass("selected"), goToPage = Math.floor(set_position / itemsPerPage) < totalPage ? Math.floor(set_position / itemsPerPage) : totalPage, e.prettyPhoto.changeGalleryPage(goToPage), $pp_gallery_li.filter(":eq(" + set_position + ")").addClass("selected")) : $pp_pic_holder.find(".pp_content").unbind("mouseenter mouseleave") } function u(t) { $pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility", "hidden"), $pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed, function () { e(".pp_loaderIcon").show(), t() }) } function f(e, t) { if (resized = !1, v(e, t), imageWidth = e, imageHeight = t, (l > g || n > _) && doresize && settings.allow_resize && !c) { for (resized = !0, fitting = !1; !fitting;) l > g ? (imageWidth = g - 200, imageHeight = t / e * imageWidth) : n > _ ? (imageHeight = _ - 200, imageWidth = e / t * imageHeight) : fitting = !0, n = imageHeight, l = imageWidth; v(imageWidth, imageHeight), (l > g || n > _) && f(l, n) } return { width: Math.floor(imageWidth), height: Math.floor(imageHeight), containerHeight: Math.floor(n), containerWidth: Math.floor(l) + 2 * settings.horizontal_padding, contentHeight: Math.floor(s), contentWidth: Math.floor(r), resized: resized } } function v(t, i) { t = parseFloat(t), i = parseFloat(i), $pp_details = $pp_pic_holder.find(".pp_details"), $pp_details.width(t), detailsHeight = parseFloat($pp_details.css("marginTop")) + parseFloat($pp_details.css("marginBottom")), $pp_details = $pp_details.clone().addClass(settings.theme).width(t).appendTo(e("body")).css({ position: "absolute", top: -1e4 }), detailsHeight += $pp_details.height(), detailsHeight = detailsHeight <= 34 ? 36 : detailsHeight, e.browser.msie && 7 == e.browser.version && (detailsHeight += 8), $pp_details.remove(), $pp_title = $pp_pic_holder.find(".ppt"), $pp_title.width(t), titleHeight = parseFloat($pp_title.css("marginTop")) + parseFloat($pp_title.css("marginBottom")), $pp_title = $pp_title.clone().appendTo(e("body")).css({ position: "absolute", top: -1e4 }), titleHeight += $pp_title.height(), $pp_title.remove(), s = i + detailsHeight, r = t, n = s + titleHeight + $pp_pic_holder.find(".pp_top").height() + $pp_pic_holder.find(".pp_bottom").height(), l = t } function w(e) { return e.match(/youtube\.com\/watch/i) ? "youtube" : e.match(/vimeo\.com/i) ? "vimeo" : e.match(/\b.mov\b/i) ? "quicktime" : e.match(/\b.swf\b/i) ? "flash" : e.match(/\biframe=true\b/i) ? "iframe" : e.match(/\bajax=true\b/i) ? "ajax" : e.match(/\bcustom=true\b/i) ? "custom" : "#" == e.substr(0, 1) ? "inline" : "image" } function y() { if (doresize && "undefined" != typeof $pp_pic_holder) { if (scroll_pos = b(), contentHeight = $pp_pic_holder.height(), contentwidth = $pp_pic_holder.width(), projectedTop = _ / 2 + scroll_pos.scrollTop - contentHeight / 2, projectedTop < 0 && (projectedTop = 0), contentHeight > _) return; $pp_pic_holder.css({ top: projectedTop, left: g / 2 + scroll_pos.scrollLeft - contentwidth / 2 }) } } function b() { return self.pageYOffset ? { scrollTop: self.pageYOffset, scrollLeft: self.pageXOffset } : document.documentElement && document.documentElement.scrollTop ? { scrollTop: document.documentElement.scrollTop, scrollLeft: document.documentElement.scrollLeft } : document.body ? { scrollTop: document.body.scrollTop, scrollLeft: document.body.scrollLeft } : void 0 } function P(t) { if (settings.markup = settings.markup.replace("{pp_social}", settings.social_tools ? settings.social_tools : ""), e("body").append(settings.markup), $pp_pic_holder = e(".pp_pic_holder"), $ppt = e(".ppt"), $pp_overlay = e("div.pp_overlay"), isSet && settings.overlay_gallery) { currentGalleryPage = 0, toInject = ""; for (var i = 0; i < pp_images.length; i++) pp_images[i].match(/\b(jpg|jpeg|png|gif)\b/gi) ? (classname = "", img_src = pp_images[i]) : (classname = "default", img_src = ""), toInject += "<li class='" + classname + "'><a href='#'><img src='" + img_src + "' width='50' alt='' /></a></li>"; toInject = settings.gallery_markup.replace(/{gallery}/g, toInject), $pp_pic_holder.find("#pp_full_res").after(toInject), $pp_gallery = e(".pp_pic_holder .pp_gallery"), $pp_gallery_li = $pp_gallery.find("li"), $pp_gallery.find(".pp_arrow_next").click(function () { return e.prettyPhoto.changeGalleryPage("next"), e.prettyPhoto.stopSlideshow(), !1 }), $pp_gallery.find(".pp_arrow_previous").click(function () { return e.prettyPhoto.changeGalleryPage("previous"), e.prettyPhoto.stopSlideshow(), !1 }), $pp_pic_holder.find(".pp_content").hover(function () { $pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn() }, function () { $pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut() }), itemWidth = 57, $pp_gallery_li.each(function (t) { e(this).find("a").click(function () { return e.prettyPhoto.changePage(t), e.prettyPhoto.stopSlideshow(), !1 }) }) } settings.slideshow && ($pp_pic_holder.find(".pp_nav").prepend('<a href="#" class="pp_play">Play</a>'), $pp_pic_holder.find(".pp_nav .pp_play").click(function () { return e.prettyPhoto.startSlideshow(), !1 })), $pp_pic_holder.attr("class", "pp_pic_holder " + settings.theme), $pp_overlay.css({ opacity: 0, height: e(document).height(), width: e(window).width() }).bind("click", function () { settings.modal || e.prettyPhoto.close() }), e("a.pp_close").bind("click", function () { return e.prettyPhoto.close(), !1 }), e("a.pp_expand").bind("click", function (t) { return e(this).hasClass("pp_expand") ? (e(this).removeClass("pp_expand").addClass("pp_contract"), doresize = !1) : (e(this).removeClass("pp_contract").addClass("pp_expand"), doresize = !0), u(function () { e.prettyPhoto.open() }), !1 }), $pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click", function () { return e.prettyPhoto.changePage("previous"), e.prettyPhoto.stopSlideshow(), !1 }), $pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click", function () { return e.prettyPhoto.changePage("next"), e.prettyPhoto.stopSlideshow(), !1 }), y() } return doresize = !0, scroll_pos = b(), e(window).unbind("resize.prettyphoto").bind("resize.prettyphoto", function () { y(), _ = e(window).height(), g = e(window).width(), "undefined" != typeof $pp_overlay && $pp_overlay.height(e(document).height()).width(g) }), p.keyboard_shortcuts && e(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto", function (t) { if ("undefined" != typeof $pp_pic_holder && $pp_pic_holder.is(":visible")) switch (t.keyCode) { case 37: e.prettyPhoto.changePage("previous"), t.preventDefault(); break; case 39: e.prettyPhoto.changePage("next"), t.preventDefault(); break; case 27: settings.modal || e.prettyPhoto.close(), t.preventDefault() } }), e.prettyPhoto.initialize = function () { return settings = p, "pp_default" == settings.theme && (settings.horizontal_padding = 16), settings.ie6_fallback && e.browser.msie && 6 == parseInt(e.browser.version) && (settings.theme = "light_square"), theRel = e(this).attr("data-gal"), galleryRegExp = /\[(?:.*)\]/, isSet = !!galleryRegExp.exec(theRel), pp_images = isSet ? jQuery.map(h, function (t, i) { if (-1 != e(t).attr("data-gal").indexOf(theRel)) return e(t).attr("href") }) : e.makeArray(e(this).attr("href")), pp_titles = isSet ? jQuery.map(h, function (t, i) { if (-1 != e(t).attr("data-gal").indexOf(theRel)) return e(t).find("img").attr("alt") ? e(t).find("img").attr("alt") : "" }) : e.makeArray(e(this).find("img").attr("alt")), pp_descriptions = isSet ? jQuery.map(h, function (t, i) { if (-1 != e(t).attr("data-gal").indexOf(theRel)) return e(t).attr("title") ? e(t).attr("title") : "" }) : e.makeArray(e(this).attr("title")), set_position = jQuery.inArray(e(this).attr("href"), pp_images), rel_index = isSet ? set_position : e("a[rel^='" + theRel + "']").index(e(this)), P(), settings.allow_resize && e(window).bind("scroll.prettyphoto", function () { y() }), e.prettyPhoto.open(), !1 }, e.prettyPhoto.open = function (t) { return "undefined" == typeof settings && (settings = p, e.browser.msie && 6 == e.browser.version && (settings.theme = "light_square"), pp_images = e.makeArray(arguments[0]), pp_titles = arguments[1] ? e.makeArray(arguments[1]) : e.makeArray(""), pp_descriptions = arguments[2] ? e.makeArray(arguments[2]) : e.makeArray(""), isSet = pp_images.length > 1, set_position = 0, P(t.target)), e.browser.msie && 6 == e.browser.version && e("select").css("visibility", "hidden"), settings.hideflash && e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility", "hidden"), e(pp_images).size() > 1 ? e(".pp_nav").show() : e(".pp_nav").hide(), e(".pp_loaderIcon").show(), $ppt.is(":hidden") && $ppt.css("opacity", 0).show(), $pp_overlay.show().fadeTo(settings.animation_speed, settings.opacity), $pp_pic_holder.find(".currentTextHolder").text(set_position + 1 + settings.counter_separator_label + e(pp_images).size()), "" != pp_descriptions[set_position] ? $pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position])) : $pp_pic_holder.find(".pp_description").hide(), movie_width = parseFloat(i("width", pp_images[set_position])) ? i("width", pp_images[set_position]) : settings.default_width.toString(), movie_height = parseFloat(i("height", pp_images[set_position])) ? i("height", pp_images[set_position]) : settings.default_height.toString(), c = !1, -1 != movie_height.indexOf("%") && (movie_height = parseFloat(e(window).height() * parseFloat(movie_height) / 100 - 150), c = !0), -1 != movie_width.indexOf("%") && (movie_width = parseFloat(e(window).width() * parseFloat(movie_width) / 100 - 150), c = !0), $pp_pic_holder.fadeIn(function () { switch (settings.show_title && "" != pp_titles[set_position] && void 0 !== pp_titles[set_position] ? $ppt.html(unescape(pp_titles[set_position])) : $ppt.html("&nbsp;"), imgPreloader = "", skipInjection = !1, w(pp_images[set_position])) { case "image": imgPreloader = new Image, nextImage = new Image, isSet && set_position < e(pp_images).size() - 1 && (nextImage.src = pp_images[set_position + 1]), prevImage = new Image, isSet && pp_images[set_position - 1] && (prevImage.src = pp_images[set_position - 1]), $pp_pic_holder.find("#pp_full_res")[0].innerHTML = settings.image_markup.replace(/{path}/g, pp_images[set_position]), imgPreloader.onload = function () { a = f(imgPreloader.width, imgPreloader.height), m() }, imgPreloader.onerror = function () { alert("Image cannot be loaded. Make sure the path is correct and image exist."), e.prettyPhoto.close() }, imgPreloader.src = pp_images[set_position]; break; case "youtube": a = f(movie_width, movie_height), movie = "http://www.youtube.com/embed/" + i("v", pp_images[set_position]), i("rel", pp_images[set_position]) ? movie += "?rel=" + i("rel", pp_images[set_position]) : movie += "?rel=1", settings.autoplay && (movie += "&autoplay=1"), toInject = settings.iframe_markup.replace(/{width}/g, a.width).replace(/{height}/g, a.height).replace(/{wmode}/g, settings.wmode).replace(/{path}/g, movie); break; case "vimeo": a = f(movie_width, movie_height), movie_id = pp_images[set_position]; var t = movie_id.match(/http:\/\/(www\.)?vimeo.com\/(\d+)/); movie = "http://player.vimeo.com/video/" + t[2] + "?title=0&amp;byline=0&amp;portrait=0", settings.autoplay && (movie += "&autoplay=1;"), vimeo_width = a.width + "/embed/?moog_width=" + a.width, toInject = settings.iframe_markup.replace(/{width}/g, vimeo_width).replace(/{height}/g, a.height).replace(/{path}/g, movie); break; case "quicktime": (a = f(movie_width, movie_height)).height += 15, a.contentHeight += 15, a.containerHeight += 15, toInject = settings.quicktime_markup.replace(/{width}/g, a.width).replace(/{height}/g, a.height).replace(/{wmode}/g, settings.wmode).replace(/{path}/g, pp_images[set_position]).replace(/{autoplay}/g, settings.autoplay); break; case "flash": a = f(movie_width, movie_height), flash_vars = pp_images[set_position], flash_vars = flash_vars.substring(pp_images[set_position].indexOf("flashvars") + 10, pp_images[set_position].length), filename = pp_images[set_position], filename = filename.substring(0, filename.indexOf("?")), toInject = settings.flash_markup.replace(/{width}/g, a.width).replace(/{height}/g, a.height).replace(/{wmode}/g, settings.wmode).replace(/{path}/g, filename + "?" + flash_vars); break; case "iframe": a = f(movie_width, movie_height), frame_url = pp_images[set_position], frame_url = frame_url.substr(0, frame_url.indexOf("iframe") - 1), toInject = settings.iframe_markup.replace(/{width}/g, a.width).replace(/{height}/g, a.height).replace(/{path}/g, frame_url); break; case "ajax": doresize = !1, a = f(movie_width, movie_height), doresize = !0, skipInjection = !0, e.get(pp_images[set_position], function (e) { toInject = settings.inline_markup.replace(/{content}/g, e), $pp_pic_holder.find("#pp_full_res")[0].innerHTML = toInject, m() }); break; case "custom": a = f(movie_width, movie_height), toInject = settings.custom_markup; break; case "inline": myClone = e(pp_images[set_position]).clone().append('<br clear="all" />').css({ width: settings.default_width }).wrapInner('<div id="pp_full_res"><div class="pp_inline"></div></div>').appendTo(e("body")).show(), doresize = !1, a = f(e(myClone).width(), e(myClone).height()), doresize = !0, e(myClone).remove(), toInject = settings.inline_markup.replace(/{content}/g, e(pp_images[set_position]).html()) } imgPreloader || skipInjection || ($pp_pic_holder.find("#pp_full_res")[0].innerHTML = toInject, m()) }), !1 }, e.prettyPhoto.changePage = function (t) { currentGalleryPage = 0, "previous" == t ? (set_position--, set_position < 0 && (set_position = e(pp_images).size() - 1)) : "next" == t ? (set_position++, set_position > e(pp_images).size() - 1 && (set_position = 0)) : set_position = t, rel_index = set_position, u(function () { e.prettyPhoto.open() }) }, e.prettyPhoto.changeGalleryPage = function (e) { "next" == e ? (currentGalleryPage++, currentGalleryPage > totalPage && (currentGalleryPage = 0)) : "previous" == e ? (currentGalleryPage--, currentGalleryPage < 0 && (currentGalleryPage = totalPage)) : currentGalleryPage = e, slide_speed = "next" == e || "previous" == e ? settings.animation_speed : 0, slide_to = currentGalleryPage * (itemsPerPage * itemWidth), $pp_gallery.find("ul").animate({ left: -slide_to }, slide_speed) }, e.prettyPhoto.startSlideshow = function () { void 0 === d ? ($pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function () { return e.prettyPhoto.stopSlideshow(), !1 }), d = setInterval(e.prettyPhoto.startSlideshow, settings.slideshow)) : e.prettyPhoto.changePage("next") }, e.prettyPhoto.stopSlideshow = function () { $pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function () { return e.prettyPhoto.startSlideshow(), !1 }), clearInterval(d), d = void 0 }, e.prettyPhoto.close = function () { $pp_overlay.is(":animated") || (e.prettyPhoto.stopSlideshow(), $pp_pic_holder.stop().find("object,embed").css("visibility", "hidden"), e("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed, function () { e(this).remove() }), $pp_overlay.fadeOut(settings.animation_speed, function () { e.browser.msie && 6 == e.browser.version && e("select").css("visibility", "visible"), settings.hideflash && e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility", "visible"), e(this).remove(), e(window).unbind("scroll.prettyphoto"), settings.callback(), doresize = !0, o = !1, delete settings })) }, !pp_alreadyInitialized && t() && (pp_alreadyInitialized = !0, hashIndex = t(), hashRel = hashIndex, hashIndex = hashIndex.substring(hashIndex.indexOf("/") + 1, hashIndex.length - 1), hashRel = hashRel.substring(0, hashRel.indexOf("/")), setTimeout(function () { e("a[rel^='" + hashRel + "']:eq(" + hashIndex + ")").trigger("click") }, 50)), this.unbind("click.prettyphoto").bind("click.prettyphoto", e.prettyPhoto.initialize) } }(jQuery); var pp_alreadyInitialized = !1;;$(document).ready(function () { $("#slide a").each(function (e, t) { $(this).hoverdir() }), $(".b-link-stroke").prepend('<div class="b-top-line"></div>'), $(".b-link-stroke").prepend('<div class="b-bottom-line"></div>'), $(".b-link-twist").prepend('<div class="b-top-line"><b></b></div>'), $(".b-link-twist").prepend('<div class="b-bottom-line"><b></b></div>'), $(".b-link-twist img").each(function (e, t) { $(this).css("visibility", "hidden"), $(this).parent().find(".b-top-line, .b-bottom-line").css("background-image", "url(" + $(this).attr("src") + ")") }), $(".b-link-flip").prepend('<div class="b-top-line"><b></b></div>'), $(".b-link-flip").prepend('<div class="b-bottom-line"><b></b></div>'), $(".b-link-flip img").each(function (e, t) { $(this).css("visibility", "hidden"), $(this).parent().find(".b-top-line, .b-bottom-line").css("background-image", "url(" + $(this).attr("src") + ")") }), $(".b-link-fade").each(function (e, t) { $(this).append('<div class="b-top-line"></div>') }), $(".b-link-flow").each(function (e, t) { $(this).append('<div class="b-top-line"></div>') }), $(".b-link-box").prepend('<div class="b-top-line"></div>'), $(".b-link-box").prepend('<div class="b-bottom-line"></div>'), $(".b-link-stripe").each(function (e, t) { $(this).prepend('<div class="b-line b-line1"></div><div class="b-line b-line2"></div><div class="b-line b-line3"></div><div class="b-line b-line4"></div><div class="b-line b-line5"></div>') }), $(".b-link-apart-vertical, .b-link-apart-horisontal").each(function (e, t) { $(this).prepend('<div class="b-top-line"></div><div class="b-bottom-line"></div><div class="b-top-line-up"></div><div class="b-bottom-line-up"></div>') }), $(".b-link-diagonal").each(function (e, t) { $(this).prepend('<div class="b-line-group"><div class="b-line b-line1"></div><div class="b-line b-line2"></div><div class="b-line b-line3"></div><div class="b-line b-line4"></div><div class="b-line b-line5"></div></div>') }), setTimeout("calculate_margin();", 100) }); var count_calc_margin = 0; function calculate_margin() { $(".b-animate-go .b-wrapper").each(function (e, t) { var n = $(t).outerHeight(), i = 0, r = 0, o = 0, s = $(t).children().length; $(t).children().each(function (e, t) { i += $(t).outerHeight(), e > 0 && (r += parseInt($(t).css("margin-top"))), e + 1 <= s - 1 && (o += parseInt($(t).css("margin-bottom"))) }); var a = parseInt(n / 2 - (r + o + i) / 2); a > 0 ? $(t).children().first().css("margin-top", a) : count_calc_margin < 5 && (count_calc_margin++, setTimeout("calculate_margin();", 100)) }) } !function (e, t) { "use strict"; function n(e) { T[T.length] = e } function i(e) { var t = new RegExp(" ?\\b" + e + "\\b"); x.className = x.className.replace(t, "") } function r(e, t) { for (var n = 0, i = e.length; n < i; n++) t.call(e, e[n], n) } function o() { var t, i, o, s; x.className = x.className.replace(/ (w-|eq-|gt-|gte-|lt-|lte-|portrait|no-portrait|landscape|no-landscape)\d+/g, ""), t = e.innerWidth || x.clientWidth, i = e.outerWidth || e.screen.width, c.screen.innerWidth = t, c.screen.outerWidth = i, n("w-" + t), r(C.screens, function (e) { t > e ? (C.screensCss.gt && n("gt-" + e), C.screensCss.gte && n("gte-" + e)) : t < e ? (C.screensCss.lt && n("lt-" + e), C.screensCss.lte && n("lte-" + e)) : t === e && (C.screensCss.lte && n("lte-" + e), C.screensCss.eq && n("e-q" + e), C.screensCss.gte && n("gte-" + e)) }), o = e.innerHeight || x.clientHeight, s = e.outerHeight || e.screen.height, c.screen.innerHeight = o, c.screen.outerHeight = s, c.feature("portrait", o > t), c.feature("landscape", o < t) } function s() { e.clearTimeout(y), y = e.setTimeout(o, 50) } var a, c, l, u, d, f, p, b, h, m, v, g, y, w = e.document, k = e.navigator, $ = e.location, x = w.documentElement, T = [], C = { screens: [240, 320, 480, 640, 768, 800, 1024, 1280, 1440, 1680, 1920], screensCss: { gt: !0, gte: !1, lt: !0, lte: !1, eq: !1 }, browsers: [{ ie: { min: 6, max: 11 } }], browserCss: { gt: !0, gte: !1, lt: !0, lte: !1, eq: !0 }, html5: !0, page: "-page", section: "-section", head: "head" }; if (e.head_conf) for (a in e.head_conf) e.head_conf[a] !== t && (C[a] = e.head_conf[a]); switch ((c = e[C.head] = function () { c.ready.apply(null, arguments) }).feature = function (e, t, r) { return e ? ("[object Function]" === Object.prototype.toString.call(t) && (t = t.call()), n((t ? "" : "no-") + e), c[e] = !!t, r || (i("no-" + e), i(e), c.feature()), c) : (x.className += " " + T.join(" "), T = [], c) }, c.feature("js", !0), l = k.userAgent.toLowerCase(), u = /mobile|android|kindle|silk|midp|phone|(windows .+arm|touch)/.test(l), c.feature("mobile", u, !0), c.feature("desktop", !u, !0), d = (l = /(chrome|firefox)[ \/]([\w.]+)/.exec(l) || /(iphone|ipad|ipod)(?:.*version)?[ \/]([\w.]+)/.exec(l) || /(android)(?:.*version)?[ \/]([\w.]+)/.exec(l) || /(webkit|opera)(?:.*version)?[ \/]([\w.]+)/.exec(l) || /(msie) ([\w.]+)/.exec(l) || /(trident).+rv:(\w.)+/.exec(l) || [])[1], f = parseFloat(l[2]), d) { case "msie": case "trident": d = "ie", f = w.documentMode || f; break; case "firefox": d = "ff"; break; case "ipod": case "ipad": case "iphone": d = "ios"; break; case "webkit": d = "safari" } for (c.browser = { name: d, version: f }, c.browser[d] = !0, p = 0, b = C.browsers.length; p < b; p++) for (h in C.browsers[p]) if (d === h) for (n(h), m = C.browsers[p][h].min, v = C.browsers[p][h].max, g = m; g <= v; g++) f > g ? (C.browserCss.gt && n("gt-" + h + g), C.browserCss.gte && n("gte-" + h + g)) : f < g ? (C.browserCss.lt && n("lt-" + h + g), C.browserCss.lte && n("lte-" + h + g)) : f === g && (C.browserCss.lte && n("lte-" + h + g), C.browserCss.eq && n("eq-" + h + g), C.browserCss.gte && n("gte-" + h + g)); else n("no-" + h); n(d), n(d + parseInt(f, 10)), C.html5 && "ie" === d && f < 9 && r("abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|progress|section|summary|time|video".split("|"), function (e) { w.createElement(e) }), r($.pathname.split("/"), function (e, i) { if (this.length > 2 && this[i + 1] !== t) i && n(this.slice(i, i + 1).join("-").toLowerCase() + C.section); else { var r = e || "index", o = r.indexOf("."); o > 0 && (r = r.substring(0, o)), x.id = r.toLowerCase() + C.page, i || n("root" + C.section) } }), c.screen = { height: e.screen.height, width: e.screen.width }, o(), y = 0, e.addEventListener ? e.addEventListener("resize", s, !1) : e.attachEvent("onresize", s) }(window), function (e, t) { "use strict"; function n(e) { var n = e.charAt(0).toUpperCase() + e.substr(1); return !!function (e) { for (var n in e) if (r[e[n]] !== t) return !0; return !1 }((e + " " + s.join(n + " ") + n).split(" ")) } var i = e.document.createElement("i"), r = i.style, o = " -o- -moz- -ms- -webkit- -khtml- ".split(" "), s = "Webkit Moz O ms Khtml".split(" "), a = e.head_conf && e.head_conf.head || "head", c = e[a], l = { gradient: function () { var e = "background-image:"; return r.cssText = (e + o.join("gradient(linear,left top,right bottom,from(#9f9),to(#fff));" + e) + o.join("linear-gradient(left top,#eee,#fff);" + e)).slice(0, -e.length), !!r.backgroundImage }, rgba: function () { return r.cssText = "background-color:rgba(0,0,0,0.5)", !!r.backgroundColor }, opacity: function () { return "" === i.style.opacity }, textshadow: function () { return "" === r.textShadow }, multiplebgs: function () { r.cssText = "background:url(https://),url(https://),red url(https://)"; var e = (r.background || "").match(/url/g); return "[object Array]" === Object.prototype.toString.call(e) && 3 === e.length }, boxshadow: function () { return n("boxShadow") }, borderimage: function () { return n("borderImage") }, borderradius: function () { return n("borderRadius") }, cssreflections: function () { return n("boxReflect") }, csstransforms: function () { return n("transform") }, csstransitions: function () { return n("transition") }, touch: function () { return "ontouchstart" in e }, retina: function () { return e.devicePixelRatio > 1 }, fontface: function () { var e = c.browser.name, t = c.browser.version; switch (e) { case "ie": return t >= 9; case "chrome": return t >= 13; case "ff": return t >= 6; case "ios": return t >= 5; case "android": return !1; case "webkit": return t >= 5.1; case "opera": return t >= 10; default: return !1 } } }; for (var u in l) l[u] && c.feature(u, l[u].call(), !0); c.feature() }(window), function (e, t) { "use strict"; function n() { } function i(e, t) { if (e) { "object" == typeof e && (e = [].slice.call(e)); for (var n = 0, i = e.length; n < i; n++) t.call(e, e[n], n) } } function r(e, n) { var i = Object.prototype.toString.call(n).slice(8, -1); return n !== t && null !== n && i === e } function o(e) { return r("Function", e) } function s(e) { return r("Array", e) } function a(e) { (e = e || n)._done || (e(), e._done = 1) } function c(e) { var t, n, i, r, o, s, a = {}; if ("object" == typeof e) for (t in e) !e[t] || (a = { name: t, url: e[t] }); else a = { name: (i = e, r = i.split("/"), o = r[r.length - 1], s = o.indexOf("?"), -1 !== s ? o.substring(0, s) : o), url: e }; return (n = w[a.name]) && n.url === a.url ? n : (w[a.name] = a, a) } function l(e) { e = e || w; for (var t in e) if (e.hasOwnProperty(t) && e[t].state !== L) return !1; return !0 } function u(e) { e.state === t && (e.state = T, e.onpreload = [], f({ url: e.url, type: "cache" }, function () { var t; (t = e).state = C, i(t.onpreload, function (e) { e.call() }) })) } function d(e, t) { t = t || n, e.state !== L ? e.state !== E ? e.state !== T ? (e.state = E, f(e, function () { e.state = L, t(), i(y[e.name], function (e) { a(e) }), h && l() && i(y.ALL, function (e) { a(e) }) })) : e.onpreload.push(function () { d(e, t) }) : x.ready(e.name, t) : t() } function f(t, i) { function r(t) { t = t || e.event, s.onload = s.onreadystatechange = s.onerror = null, i() } function o(n) { ("load" === (n = n || e.event).type || /loaded|complete/.test(s.readyState) && (!v.documentMode || v.documentMode < 9)) && (e.clearTimeout(t.errorTimeout), e.clearTimeout(t.cssTimeout), s.onload = s.onreadystatechange = s.onerror = null, i()) } var s, a, c, l; i = i || n, c = t.url, "css" === (l = (c = c || "").split("?")[0].split("."))[l.length - 1].toLowerCase() ? ((s = v.createElement("link")).type = "text/" + (t.type || "css"), s.rel = "stylesheet", s.href = t.url, t.cssRetries = 0, t.cssTimeout = e.setTimeout(function n() { if (t.state !== L && t.cssRetries <= 20) { for (var i = 0, r = v.styleSheets.length; i < r; i++) if (v.styleSheets[i].href === s.href) return void o({ type: "load" }); t.cssRetries++, t.cssTimeout = e.setTimeout(n, 250) } }, 500)) : ((s = v.createElement("script")).type = "text/" + (t.type || "javascript"), s.src = t.url), s.onload = s.onreadystatechange = o, s.onerror = r, s.async = !1, s.defer = !1, t.errorTimeout = e.setTimeout(function () { r({ type: "timeout" }) }, 7e3), (a = v.head || v.getElementsByTagName("head")[0]).insertBefore(s, a.lastChild) } function p() { if (!v.body) return e.clearTimeout(x.readyTimeout), void (x.readyTimeout = e.setTimeout(p, 50)); h || (h = !0, function () { for (var e, t = v.getElementsByTagName("script"), n = 0, i = t.length; n < i; n++) if (e = t[n].getAttribute("data-headjs-load"), e) return void x.load(e) }(), i(g, function (e) { a(e) })) } function b() { v.addEventListener ? (v.removeEventListener("DOMContentLoaded", b, !1), p()) : "complete" === v.readyState && (v.detachEvent("onreadystatechange", b), p()) } var h, m, v = e.document, g = [], y = {}, w = {}, k = "async" in v.createElement("script") || "MozAppearance" in v.documentElement.style || e.opera, $ = e.head_conf && e.head_conf.head || "head", x = e[$] = e[$] || function () { x.ready.apply(null, arguments) }, T = 1, C = 2, E = 3, L = 4; if ("complete" === v.readyState) p(); else if (v.addEventListener) v.addEventListener("DOMContentLoaded", b, !1), e.addEventListener("load", p, !1); else { v.attachEvent("onreadystatechange", b), e.attachEvent("onload", p), m = !1; try { m = !e.frameElement && v.documentElement } catch (e) { } m && m.doScroll && function t() { if (!h) { try { m.doScroll("left") } catch (n) { return e.clearTimeout(x.readyTimeout), void (x.readyTimeout = e.setTimeout(t, 50)) } p() } }() } x.load = x.js = k ? function () { var e = arguments, t = e[e.length - 1], n = {}; return o(t) || (t = null), s(e[0]) ? (e[0].push(t), x.load.apply(null, e[0]), x) : (i(e, function (e) { e !== t && (e = c(e), n[e.name] = e) }), i(e, function (e) { e !== t && d(e = c(e), function () { l(n) && a(t) }) }), x) } : function () { var e = arguments, t = e[e.length - 1], n = [].slice.call(e, 1), r = n[0]; return o(t) || (t = null), s(e[0]) ? (e[0].push(t), x.load.apply(null, e[0]), x) : (r ? (i(n, function (e) { o(e) || !e || u(c(e)) }), d(c(e[0]), o(r) ? r : function () { x.load.apply(null, n) })) : d(c(e[0])), x) }, x.test = function (e, t, i, r) { var o = "object" == typeof e ? e : { test: e, success: !!t && (s(t) ? t : [t]), failure: !!i && (s(i) ? i : [i]), callback: r || n }, a = !!o.test; return a && o.success ? (o.success.push(o.callback), x.load.apply(null, o.success)) : a || !o.failure ? r() : (o.failure.push(o.callback), x.load.apply(null, o.failure)), x }, x.ready = function (e, t) { var n, r, c; return e === v ? (h ? a(t) : g.push(t), x) : (o(e) && (t = e, e = "ALL"), s(e) ? (n = {}, i(e, function (e) { n[e] = w[e], x.ready(e, function () { l(n) && a(t) }) }), x) : "string" == typeof e && o(t) ? (r = w[e]) && r.state === L || "ALL" === e && l() && h ? (a(t), x) : ((c = y[e]) ? c.push(t) : c = y[e] = [t], x) : x) }, x.ready(v, function () { l() && i(y.ALL, function (e) { a(e) }), x.feature && x.feature("domloaded", !0) }) }(window);;jQuery.easing.jswing = jQuery.easing.swing, jQuery.extend(jQuery.easing, { def: "easeOutQuad", swing: function (n, e, t, u, a) { return jQuery.easing[jQuery.easing.def](n, e, t, u, a) }, easeInQuad: function (n, e, t, u, a) { return u * (e /= a) * e + t }, easeOutQuad: function (n, e, t, u, a) { return -u * (e /= a) * (e - 2) + t }, easeInOutQuad: function (n, e, t, u, a) { return (e /= a / 2) < 1 ? u / 2 * e * e + t : -u / 2 * (--e * (e - 2) - 1) + t }, easeInCubic: function (n, e, t, u, a) { return u * (e /= a) * e * e + t }, easeOutCubic: function (n, e, t, u, a) { return u * ((e = e / a - 1) * e * e + 1) + t }, easeInOutCubic: function (n, e, t, u, a) { return (e /= a / 2) < 1 ? u / 2 * e * e * e + t : u / 2 * ((e -= 2) * e * e + 2) + t }, easeInQuart: function (n, e, t, u, a) { return u * (e /= a) * e * e * e + t }, easeOutQuart: function (n, e, t, u, a) { return -u * ((e = e / a - 1) * e * e * e - 1) + t }, easeInOutQuart: function (n, e, t, u, a) { return (e /= a / 2) < 1 ? u / 2 * e * e * e * e + t : -u / 2 * ((e -= 2) * e * e * e - 2) + t }, easeInQuint: function (n, e, t, u, a) { return u * (e /= a) * e * e * e * e + t }, easeOutQuint: function (n, e, t, u, a) { return u * ((e = e / a - 1) * e * e * e * e + 1) + t }, easeInOutQuint: function (n, e, t, u, a) { return (e /= a / 2) < 1 ? u / 2 * e * e * e * e * e + t : u / 2 * ((e -= 2) * e * e * e * e + 2) + t }, easeInSine: function (n, e, t, u, a) { return -u * Math.cos(e / a * (Math.PI / 2)) + u + t }, easeOutSine: function (n, e, t, u, a) { return u * Math.sin(e / a * (Math.PI / 2)) + t }, easeInOutSine: function (n, e, t, u, a) { return -u / 2 * (Math.cos(Math.PI * e / a) - 1) + t }, easeInExpo: function (n, e, t, u, a) { return 0 == e ? t : u * Math.pow(2, 10 * (e / a - 1)) + t }, easeOutExpo: function (n, e, t, u, a) { return e == a ? t + u : u * (1 - Math.pow(2, -10 * e / a)) + t }, easeInOutExpo: function (n, e, t, u, a) { return 0 == e ? t : e == a ? t + u : (e /= a / 2) < 1 ? u / 2 * Math.pow(2, 10 * (e - 1)) + t : u / 2 * (2 - Math.pow(2, -10 * --e)) + t }, easeInCirc: function (n, e, t, u, a) { return -u * (Math.sqrt(1 - (e /= a) * e) - 1) + t }, easeOutCirc: function (n, e, t, u, a) { return u * Math.sqrt(1 - (e = e / a - 1) * e) + t }, easeInOutCirc: function (n, e, t, u, a) { return (e /= a / 2) < 1 ? -u / 2 * (Math.sqrt(1 - e * e) - 1) + t : u / 2 * (Math.sqrt(1 - (e -= 2) * e) + 1) + t }, easeInElastic: function (n, e, t, u, a) { var r = 1.70158, i = 0, s = u; if (0 == e) return t; if (1 == (e /= a)) return t + u; if (i || (i = .3 * a), s < Math.abs(u)) { s = u; r = i / 4 } else r = i / (2 * Math.PI) * Math.asin(u / s); return -s * Math.pow(2, 10 * (e -= 1)) * Math.sin((e * a - r) * (2 * Math.PI) / i) + t }, easeOutElastic: function (n, e, t, u, a) { var r = 1.70158, i = 0, s = u; if (0 == e) return t; if (1 == (e /= a)) return t + u; if (i || (i = .3 * a), s < Math.abs(u)) { s = u; r = i / 4 } else r = i / (2 * Math.PI) * Math.asin(u / s); return s * Math.pow(2, -10 * e) * Math.sin((e * a - r) * (2 * Math.PI) / i) + u + t }, easeInOutElastic: function (n, e, t, u, a) { var r = 1.70158, i = 0, s = u; if (0 == e) return t; if (2 == (e /= a / 2)) return t + u; if (i || (i = a * (.3 * 1.5)), s < Math.abs(u)) { s = u; r = i / 4 } else r = i / (2 * Math.PI) * Math.asin(u / s); return e < 1 ? s * Math.pow(2, 10 * (e -= 1)) * Math.sin((e * a - r) * (2 * Math.PI) / i) * -.5 + t : s * Math.pow(2, -10 * (e -= 1)) * Math.sin((e * a - r) * (2 * Math.PI) / i) * .5 + u + t }, easeInBack: function (n, e, t, u, a, r) { return void 0 == r && (r = 1.70158), u * (e /= a) * e * ((r + 1) * e - r) + t }, easeOutBack: function (n, e, t, u, a, r) { return void 0 == r && (r = 1.70158), u * ((e = e / a - 1) * e * ((r + 1) * e + r) + 1) + t }, easeInOutBack: function (n, e, t, u, a, r) { return void 0 == r && (r = 1.70158), (e /= a / 2) < 1 ? u / 2 * (e * e * ((1 + (r *= 1.525)) * e - r)) + t : u / 2 * ((e -= 2) * e * ((1 + (r *= 1.525)) * e + r) + 2) + t }, easeInBounce: function (n, e, t, u, a) { return u - jQuery.easing.easeOutBounce(n, a - e, 0, u, a) + t }, easeOutBounce: function (n, e, t, u, a) { return (e /= a) < 1 / 2.75 ? u * (7.5625 * e * e) + t : e < 2 / 2.75 ? u * (7.5625 * (e -= 1.5 / 2.75) * e + .75) + t : e < 2.5 / 2.75 ? u * (7.5625 * (e -= 2.25 / 2.75) * e + .9375) + t : u * (7.5625 * (e -= 2.625 / 2.75) * e + .984375) + t }, easeInOutBounce: function (n, e, t, u, a) { return e < a / 2 ? .5 * jQuery.easing.easeInBounce(n, 2 * e, 0, u, a) + t : .5 * jQuery.easing.easeOutBounce(n, 2 * e - a, 0, u, a) + .5 * u + t } });;!function (n, e) { "function" == typeof define && define.amd ? define(e) : "object" == typeof exports ? module.exports = e() : n.NProgress = e() }(this, function () { function n(n, e, t) { return n < e ? e : n > t ? t : n } function e(n) { return 100 * (-1 + n) } function t(n, t, r) { var i; return (i = "translate3d" === c.positionUsing ? { transform: "translate3d(" + e(n) + "%,0,0)" } : "translate" === c.positionUsing ? { transform: "translate(" + e(n) + "%,0)" } : { "margin-left": e(n) + "%" }).transition = "all " + t + "ms " + r, i } function r(n, e) { return ("string" == typeof n ? n : s(n)).indexOf(" " + e + " ") >= 0 } function i(n, e) { var t = s(n), i = t + e; r(t, e) || (n.className = i.substring(1)) } function o(n, e) { var t, i = s(n); r(n, e) && (t = i.replace(" " + e + " ", " "), n.className = t.substring(1, t.length - 1)) } function s(n) { return (" " + (n.className || "") + " ").replace(/\s+/gi, " ") } function a(n) { n && n.parentNode && n.parentNode.removeChild(n) } var u = { version: "0.1.6" }, c = u.settings = { minimum: .08, easing: "ease", positionUsing: "", speed: 200, trickle: !0, trickleRate: .02, trickleSpeed: 800, showSpinner: !0, barSelector: '[role="bar"]', spinnerSelector: '[role="spinner"]', parent: "body", template: '<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>' }; u.configure = function (n) { var e, t; for (e in n) void 0 !== (t = n[e]) && n.hasOwnProperty(e) && (c[e] = t); return this }, u.status = null, u.set = function (e) { var r = u.isStarted(); e = n(e, c.minimum, 1), u.status = 1 === e ? null : e; var i = u.render(!r), o = i.querySelector(c.barSelector), s = c.speed, a = c.easing; return i.offsetWidth, l(function (n) { "" === c.positionUsing && (c.positionUsing = u.getPositioningCSS()), f(o, t(e, s, a)), 1 === e ? (f(i, { transition: "none", opacity: 1 }), i.offsetWidth, setTimeout(function () { f(i, { transition: "all " + s + "ms linear", opacity: 0 }), setTimeout(function () { u.remove(), n() }, s) }, s)) : setTimeout(n, s) }), this }, u.isStarted = function () { return "number" == typeof u.status }, u.start = function () { u.status || u.set(0); var n = function () { setTimeout(function () { u.status && (u.trickle(), n()) }, c.trickleSpeed) }; return c.trickle && n(), this }, u.done = function (n) { return n || u.status ? u.inc(.3 + .5 * Math.random()).set(1) : this }, u.inc = function (e) { var t = u.status; return t ? ("number" != typeof e && (e = (1 - t) * n(Math.random() * t, .1, .95)), t = n(t + e, 0, .994), u.set(t)) : u.start() }, u.trickle = function () { return u.inc(Math.random() * c.trickleRate) }, function () { var n = 0, e = 0; u.promise = function (t) { return t && "resolved" != t.state() ? (0 == e && u.start(), n++, e++, t.always(function () { 0 == --e ? (n = 0, u.done()) : u.set((n - e) / n) }), this) : this } }(), u.render = function (n) { if (u.isRendered()) return document.getElementById("nprogress"); i(document.documentElement, "nprogress-busy"); var t = document.createElement("div"); t.id = "nprogress", t.innerHTML = c.template; var r, o = t.querySelector(c.barSelector), s = n ? "-100" : e(u.status || 0), l = document.querySelector(c.parent); return f(o, { transition: "all 0 linear", transform: "translate3d(" + s + "%,0,0)" }), c.showSpinner || (r = t.querySelector(c.spinnerSelector)) && a(r), l != document.body && i(l, "nprogress-custom-parent"), l.appendChild(t), t }, u.remove = function () { o(document.documentElement, "nprogress-busy"), o(document.querySelector(c.parent), "nprogress-custom-parent"); var n = document.getElementById("nprogress"); n && a(n) }, u.isRendered = function () { return !!document.getElementById("nprogress") }, u.getPositioningCSS = function () { var n = document.body.style, e = "WebkitTransform" in n ? "Webkit" : "MozTransform" in n ? "Moz" : "msTransform" in n ? "ms" : "OTransform" in n ? "O" : ""; return e + "Perspective" in n ? "translate3d" : e + "Transform" in n ? "translate" : "margin" }; var l = function () { function n() { var t = e.shift(); t && t(n) } var e = []; return function (t) { e.push(t), 1 == e.length && n() } }(), f = function () { function n(n) { var e = document.body.style; if (n in e) return n; for (var t, i = r.length, o = n.charAt(0).toUpperCase() + n.slice(1) ; i--;) if ((t = r[i] + o) in e) return t; return n } function e(e) { return e = function (n) { return n.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, function (n, e) { return e.toUpperCase() }) }(e), i[e] || (i[e] = n(e)) } function t(n, t, r) { t = e(t), n.style[t] = r } var r = ["Webkit", "O", "Moz", "ms"], i = {}; return function (n, e) { var r, i, o = arguments; if (2 == o.length) for (r in e) void 0 !== (i = e[r]) && e.hasOwnProperty(r) && t(n, r, i); else t(n, o[1], o[2]) } }(); return u });;!function (t) { var s = 0, e = []; t.fn.skitter = function (i) { return this.each(function () { null == t(this).data("skitter_number") && (t(this).data("skitter_number", s), e.push(new a(this, i, s)), ++s) }) }; var n = { velocity: 1, interval: 2500, animation: "", numbers: !0, navigation: !0, label: !0, easing_default: "", box_skitter: null, time_interval: null, images_links: null, image_atual: null, link_atual: null, label_atual: null, target_atual: "_self", width_skitter: null, height_skitter: null, image_i: 1, is_animating: !1, is_hover_box_skitter: !1, random_ia: null, show_randomly: !1, thumbs: !1, animateNumberOut: !1, animateNumberOver: !1, animateNumberActive: !1, hideTools: !1, fullscreen: !1, xml: !1, dots: !1, width_label: null, opacity_elements: .75, interval_in_elements: 200, interval_out_elements: 300, onLoad: null, imageSwitched: null, max_number_height: 20, numbers_align: "left", preview: !1, focus: !1, foucs_active: !1, focus_position: "center", controls: !1, controls_position: "center", progressbar: !1, progressbar_css: {}, is_paused: !1, is_blur: !1, is_paused_time: !1, timeStart: 0, elapsedTime: 0, stop_over: !0, enable_navigation_keys: !1, with_animations: [], mouseOverButton: null, mouseOutButton: null, auto_play: !0, labelAnimation: "slideUp", theme: null, structure: '<a href="#" class="prev_button">prev</a><a href="#" class="next_button">next</a><span class="info_slide"></span><div class="container_skitter"><div class="image"><a href=""><img class="image_main" /></a><div class="label_skitter"></div></div></div>' }; t.skitter = function (i, s, e) { this.box_skitter = t(i), this.timer = null, this.settings = t.extend({}, n, s || {}), this.number_skitter = e, this.setup() }; var a = t.skitter; a.fn = a.prototype = {}, a.fn.extend = t.extend, a.fn.extend({ setup: function () { var i = this; if (this.settings.fullscreen) { var s = t(window).width(), e = t(window).height(); this.box_skitter.width(s).height(e), this.box_skitter.css({ position: "absolute", top: 0, left: 0, "z-index": 1e3 }), this.settings.stop_over = !1, t("body").css({ overflown: "hidden" }) } if (this.settings.width_skitter = parseFloat(this.box_skitter.css("width")), this.settings.height_skitter = parseFloat(this.box_skitter.css("height")), !this.settings.width_skitter || !this.settings.height_skitter) return console.warn("Width or height size is null! - Skitter Slideshow"), !1; this.settings.theme && this.box_skitter.addClass("skitter-" + this.settings.theme), this.box_skitter.append(this.settings.structure), this.settings.easing_default = this.getEasing(this.settings.easing), this.settings.velocity >= 2 && (this.settings.velocity = 1.3), this.settings.velocity <= 0 && (this.settings.velocity = 1), this.box_skitter.find(".info_slide").hide(), this.box_skitter.find(".label_skitter").hide(), this.box_skitter.find(".prev_button").hide(), this.box_skitter.find(".next_button").hide(), this.box_skitter.find(".container_skitter").width(this.settings.width_skitter), this.box_skitter.find(".container_skitter").height(this.settings.height_skitter); var n = this.settings.width_label ? this.settings.width_label : this.settings.width_skitter; this.box_skitter.find(".label_skitter").width(n); var a = " image_number_select", o = 0; this.settings.images_links = new Array; var h = function (t, s, e, n, h) { var r; (i.settings.images_links.push([s, t, e, n, h]), i.settings.thumbs) ? (r = i.settings.width_skitter > i.settings.height_skitter ? 'height="100"' : 'width="100"', i.box_skitter.find(".info_slide").append('<span class="image_number' + a + '" rel="' + (o - 1) + '" id="image_n_' + o + "_" + i.number_skitter + '"><img src="' + s + '" ' + r + " /></span> ")) : i.box_skitter.find(".info_slide").append('<span class="image_number' + a + '" rel="' + (o - 1) + '" id="image_n_' + o + "_" + i.number_skitter + '">' + o + "</span> "); a = "" }; if (this.settings.xml ? t.ajax({ type: "GET", url: this.settings.xml, async: !1, dataType: "xml", success: function (i) { t("<ul></ul>"), t(i).find("skitter slide").each(function () { ++o; var i = t(this).find("link").text() ? t(this).find("link").text() : "#", s = t(this).find("image").text(), e = t(this).find("image").attr("type"), n = t(this).find("label").text(), a = t(this).find("target").text() ? t(this).find("target").text() : "_self"; h(i, s, e, n, a) }) } }) : this.settings.json || this.box_skitter.find("ul li").each(function () { ++o; var i = t(this).find("a").length ? t(this).find("a").attr("href") : "#", s = t(this).find("img").attr("src"), e = t(this).find("img").attr("class"), n = t(this).find(".label_text").html(), a = t(this).find("a").length && t(this).find("a").attr("target") ? t(this).find("a").attr("target") : "_self"; h(i, s, e, n, a) }), i.settings.thumbs && !i.settings.fullscreen) { i.settings.animateNumberOut = { opacity: .3 }, i.settings.animateNumberOver = { opacity: .5 }, i.settings.animateNumberActive = { opacity: 1 }, i.box_skitter.find(".info_slide").addClass("info_slide_thumb"); var r = (o + 1) * i.box_skitter.find(".info_slide_thumb .image_number").width(); i.box_skitter.find(".info_slide_thumb").width(r), i.box_skitter.css({ height: i.box_skitter.height() + i.box_skitter.find(".info_slide").height() }), i.box_skitter.append('<div class="container_thumbs"></div>'); var g = i.box_skitter.find(".info_slide").clone(); i.box_skitter.find(".info_slide").remove(), i.box_skitter.find(".container_thumbs").width(i.settings.width_skitter).append(g); var l, d = 0, _ = this.settings.width_skitter, c = this.settings.height_skitter, u = i.box_skitter.find(".info_slide_thumb"), m = 0, f = i.box_skitter.offset().top; if (u.find(".image_number").each(function () { d += t(this).outerWidth() }), u.width(d + "px"), l = u.width(), width_value = this.settings.width_skitter, width_value = _ - 100, r > i.settings.width_skitter && i.box_skitter.mousemove(function (t) { m = i.box_skitter.offset().left + 90; var s = t.pageX, e = t.pageY, n = 0; novo_width = l - width_value, (n = -novo_width * (s -= m) / width_value) > 0 && (n = 0), -(l - _) > n && (n = -(l - _)), (e -= f) > c && u.css({ left: n }) }), i.box_skitter.find(".scroll_thumbs").css({ left: 10 }), r < i.settings.width_skitter) { i.box_skitter.find(".info_slide").width("auto"), i.box_skitter.find(".box_scroll_thumbs").hide(); var p = ".info_slide"; switch (i.settings.numbers_align) { case "center": var k = (i.settings.width_skitter - i.box_skitter.find(p).width()) / 2; i.box_skitter.find(p).css({ left: k }); break; case "right": i.box_skitter.find(p).css({ left: "auto", right: "-5px" }); break; case "left": i.box_skitter.find(p).css({ left: "0px" }) } } } else { switch (p = ".info_slide", i.settings.dots && (i.box_skitter.find(".info_slide").addClass("info_slide_dots").removeClass("info_slide"), p = ".info_slide_dots"), i.settings.numbers_align) { case "center": k = (i.settings.width_skitter - i.box_skitter.find(p).width()) / 2, i.box_skitter.find(p).css({ left: k }); break; case "right": i.box_skitter.find(p).css({ left: "auto", right: "15px" }); break; case "left": i.box_skitter.find(p).css({ left: "15px" }) } i.settings.dots || i.box_skitter.find(".info_slide").height() > 20 && i.box_skitter.find(".info_slide").hide() } if (this.box_skitter.find("ul").hide(), this.settings.show_randomly && this.settings.images_links.sort(function () { return Math.random() - .5 }), this.settings.image_atual = this.settings.images_links[0][0], this.settings.link_atual = this.settings.images_links[0][1], this.settings.label_atual = this.settings.images_links[0][3], this.settings.target_atual = this.settings.images_links[0][4], this.settings.images_links.length > 1 && (this.box_skitter.find(".prev_button").click(function () { return 0 == i.settings.is_animating && (i.settings.image_i -= 2, -2 == i.settings.image_i ? i.settings.image_i = i.settings.images_links.length - 2 : -1 == i.settings.image_i && (i.settings.image_i = i.settings.images_links.length - 1), i.jumpToImage(i.settings.image_i)), !1 }), this.box_skitter.find(".next_button").click(function () { return i.jumpToImage(i.settings.image_i), !1 }), i.box_skitter.find(".next_button, .prev_button").bind("mouseover", i.settings.mouseOverButton), i.box_skitter.find(".next_button, .prev_button").bind("mouseleave", i.settings.mouseOutButton), this.box_skitter.find(".image_number").hover(function () { "image_number image_number_select" != t(this).attr("class") && i.settings.animateNumberOver && t(this).stop().animate(i.settings.animateNumberOver, 300) }, function () { "image_number image_number_select" != t(this).attr("class") && i.settings.animateNumberOut && t(this).stop().animate(i.settings.animateNumberOut, 500) }), this.box_skitter.find(".image_number").click(function () { if ("image_number image_number_select" != t(this).attr("class")) { var s = parseInt(t(this).attr("rel")); i.jumpToImage(s) } return !1 }), i.settings.animateNumberOut && this.box_skitter.find(".image_number").css(i.settings.animateNumberOut), i.settings.animateNumberActive && this.box_skitter.find(".image_number:eq(0)").css(i.settings.animateNumberActive), i.settings.preview && i.settings.dots)) { for (var b = t('<div class="preview_slide"><ul></ul></div>'), v = 0; v < this.settings.images_links.length; v++) { var x = t("<li></li>"), w = t("<img />"); w.attr("src", this.settings.images_links[v][0]), x.append(w), b.find("ul").append(x) } var y = parseInt(100 * this.settings.images_links.length); b.find("ul").width(y), t(p).append(b), i.box_skitter.find(p).find(".image_number").mouseenter(function () { var s = parseFloat(i.box_skitter.find(p).offset().left), e = parseFloat(t(this).offset().left) - s - 43, n = parseInt(t(this).attr("rel")), a = (i.box_skitter.find(".preview_slide_current img").attr("src"), -100 * n); i.box_skitter.find(".preview_slide").find("ul").animate({ left: a }, { duration: 200, queue: !1, easing: "easeOutSine" }), i.box_skitter.find(".preview_slide").fadeTo(1, 1).animate({ left: e }, { duration: 200, queue: !1 }) }), i.box_skitter.find(p).mouseleave(function () { t(".preview_slide").animate({ opacity: "hide" }, { duration: 200, queue: !1 }) }) } i.settings.focus && i.focusSkitter(), i.settings.controls && i.setControls(), i.settings.progressbar && i.settings.auto_play && i.addProgressBar(), i.settings.hideTools && i.hideTools(), i.settings.enable_navigation_keys && i.enableNavigationKeys(), this.loadImages() }, loadImages: function () { var i = this, s = t('<div class="loading">Loading</div>'); this.box_skitter.append(s); var e = this.settings.images_links.length, n = 0; t.each(this.settings.images_links, function () { var s = t('<span class="image_loading"></span>'); s.css({ position: "absolute", top: "-9999em" }), i.box_skitter.append(s); var a = new Image; t(a).load(function () { ++n == e && (i.box_skitter.find(".loading").remove(), i.box_skitter.find(".image_loading").remove(), i.start()) }).error(function () { i.box_skitter.find(".loading, .image_loading, .image_number, .next_button, .prev_button").remove(), i.box_skitter.html('<p style="color:white;background:black;">Error loading images. One or more images were not found.</p>') }).attr("src", this[0]) }) }, start: function () { var i = this, s = !1; (this.settings.numbers || this.settings.thumbs) && this.box_skitter.find(".info_slide").fadeIn(500), this.settings.dots && this.box_skitter.find(".info_slide_dots").fadeIn(500), this.settings.label && this.box_skitter.find(".label_skitter").show(), this.settings.navigation && (this.box_skitter.find(".prev_button").fadeIn(500), this.box_skitter.find(".next_button").fadeIn(500)), i.settings.auto_play && i.startTime(), i.windowFocusOut(), i.setLinkAtual(), i.box_skitter.find(".image a img").attr({ src: i.settings.image_atual }), img_link = i.box_skitter.find(".image a"), img_link = i.resizeImage(img_link), img_link.find("img").fadeIn(1500), i.setValueBoxText(), i.showBoxText(), i.settings.auto_play && i.stopOnMouseOver(); var e = function () { i.settings.stop_over && (s = !0, i.settings.is_hover_box_skitter = !0, i.clearTimer(!0), i.pauseProgressBar()) }; i.box_skitter.mouseover(e), i.box_skitter.find(".next_button").mouseover(e), i.settings.images_links.length > 1 && !s ? i.settings.auto_play && (i.timer = setTimeout(function () { i.nextImage() }, i.settings.interval)) : i.box_skitter.find(".loading, .image_loading, .image_number, .next_button, .prev_button").remove(), t.isFunction(i.settings.onLoad) && i.settings.onLoad(i) }, jumpToImage: function (t) { 0 == this.settings.is_animating && (this.settings.elapsedTime = 0, this.box_skitter.find(".box_clone").stop(), this.clearTimer(!0), this.settings.image_i = Math.floor(t), this.box_skitter.find(".image a").attr({ href: this.settings.link_atual }), this.box_skitter.find(".image_main").attr({ src: this.settings.image_atual }), this.box_skitter.find(".box_clone").remove(), this.nextImage()) }, nextImage: function () { var t = this; if (animations_functions = ["cube", "cubeRandom", "block", "cubeStop", "cubeStopRandom", "cubeHide", "cubeSize", "horizontal", "showBars", "showBarsRandom", "tube", "fade", "fadeFour", "paralell", "blind", "blindHeight", "blindWidth", "directionTop", "directionBottom", "directionRight", "directionLeft", "cubeSpread", "glassCube", "glassBlock", "circles", "circlesInside", "circlesRotate", "cubeShow", "upBars", "downBars", "hideBars", "swapBars", "swapBarsBack", "swapBlocks", "cut"], t.settings.progressbar && t.hideProgressBar(), animation_type = "" == this.settings.animation && this.settings.images_links[this.settings.image_i][2] ? this.settings.images_links[this.settings.image_i][2] : "" == this.settings.animation ? "default" : this.settings.animation, "randomSmart" == animation_type) this.settings.random_ia || (animations_functions.sort(function () { return .5 - Math.random() }), this.settings.random_ia = animations_functions), animation_type = this.settings.random_ia[this.settings.image_i]; else if ("random" == animation_type) { var i = parseInt(Math.random() * animations_functions.length); animation_type = animations_functions[i] } else if (t.settings.with_animations.length > 0) { var s = t.settings.with_animations.length; null == this.settings._i_animation && (this.settings._i_animation = 0), animation_type = t.settings.with_animations[this.settings._i_animation], ++this.settings._i_animation, this.settings._i_animation >= s && (this.settings._i_animation = 0) } switch (animation_type) { case "cube": this.animationCube(); break; case "cubeRandom": this.animationCube({ random: !0 }); break; case "block": this.animationBlock(); break; case "cubeStop": this.animationCubeStop(); break; case "cubeStopRandom": this.animationCubeStop({ random: !0 }); break; case "cubeHide": this.animationCubeHide(); break; case "cubeSize": this.animationCubeSize(); break; case "horizontal": this.animationHorizontal(); break; case "showBars": this.animationShowBars(); break; case "showBarsRandom": this.animationShowBars({ random: !0 }); break; case "tube": this.animationTube(); break; case "fade": this.animationFade(); break; case "fadeFour": this.animationFadeFour(); break; case "paralell": this.animationParalell(); break; case "blind": this.animationBlind(); break; case "blindHeight": this.animationBlindDimension({ height: !0 }); break; case "blindWidth": this.animationBlindDimension({ height: !1, time_animate: 400, delay: 50 }); break; case "directionTop": this.animationDirection({ direction: "top" }); break; case "directionBottom": this.animationDirection({ direction: "bottom" }); break; case "directionRight": this.animationDirection({ direction: "right", total: 5 }); break; case "directionLeft": this.animationDirection({ direction: "left", total: 5 }); break; case "cubeSpread": this.animationCubeSpread(); break; case "cubeJelly": this.animationCubeJelly(); break; case "glassCube": this.animationGlassCube(); break; case "glassBlock": this.animationGlassBlock(); break; case "circles": this.animationCircles(); break; case "circlesInside": this.animationCirclesInside(); break; case "circlesRotate": this.animationCirclesRotate(); break; case "cubeShow": this.animationCubeShow(); break; case "upBars": this.animationDirectionBars({ direction: "top" }); break; case "downBars": this.animationDirectionBars({ direction: "bottom" }); break; case "hideBars": this.animationHideBars(); break; case "swapBars": this.animationSwapBars(); break; case "swapBarsBack": this.animationSwapBars({ easing: "easeOutBack" }); break; case "swapBlocks": this.animationSwapBlocks(); break; case "cut": this.animationCut(); break; default: this.animationTube() } }, animationCube: function (s) { var e = this; s = t.extend({}, { random: !1 }, s || {}), this.settings.is_animating = !0; var n = "" == this.settings.easing_default ? "easeOutExpo" : this.settings.easing_default, a = 700 / this.settings.velocity; this.setActualLevel(); var o = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 8)), h = Math.ceil(this.settings.height_skitter / (this.settings.height_skitter / 3)), r = o * h, g = Math.ceil(this.settings.width_skitter / o), l = Math.ceil(this.settings.height_skitter / h), d = this.settings.height_skitter + 200, _ = this.settings.height_skitter + 200, c = 0, u = 0; for (i = 0; i < r; i++) { d = i % 2 == 0 ? d : -d, _ = i % 2 == 0 ? _ : -_; var m = d + l * c + 150 * c, f = -e.settings.width_skitter, p = -l * c, k = -g * u, b = l * c, v = g * u, x = this.getBoxClone(); x.hide(); var w = 50 * i; s.random ? (w = 40 * u, x.css({ left: f + "px", top: m + "px", width: g, height: l })) : (a = 500, x.css({ left: this.settings.width_skitter + g * i, top: this.settings.height_skitter + l * i, width: g, height: l })), this.addBoxClone(x); var y = i == r - 1 ? function () { e.finishAnimation() } : ""; x.show().delay(w).animate({ top: b + "px", left: v + "px" }, a, n, y), s.random ? (x.find("img").css({ left: k + 100, top: p + 50 }), x.find("img").delay(w + a / 2).animate({ left: k, top: p }, 1e3, "easeOutBack")) : (x.find("img").css({ left: k, top: p }), x.find("img").delay(w + a / 2).fadeTo(100, .5).fadeTo(300, 1)), ++c == h && (c = 0, u++) } }, animationBlock: function () { var t = this; this.settings.is_animating = !0; var s = "" == this.settings.easing_default ? "easeOutQuad" : this.settings.easing_default, e = 500 / this.settings.velocity; this.setActualLevel(); var n = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 15)), a = Math.ceil(this.settings.width_skitter / n), o = this.settings.height_skitter; for (i = 0; i < n; i++) { var h = a * i, r = this.getBoxClone(); r.css({ left: this.settings.width_skitter + 100, top: 0, width: a, height: o }), r.find("img").css({ left: -a * i }), this.addBoxClone(r); var g = 80 * i, l = i == n - 1 ? function () { t.finishAnimation() } : ""; r.show().delay(g).animate({ top: 0, left: h }, e, s), r.find("img").hide().delay(g + 100).animate({ opacity: "show" }, e + 300, s, l) } }, animationCubeStop: function (s) { var e = this; s = t.extend({}, { random: !1 }, s || {}), this.settings.is_animating = !0; var n = "" == this.settings.easing_default ? "easeInQuad" : this.settings.easing_default, a = 300 / this.settings.velocity, o = this.box_skitter.find(".image_main").attr("src"); this.setActualLevel(), this.setLinkAtual(), this.box_skitter.find(".image_main").attr({ src: this.settings.image_atual }); var h = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 8)), r = Math.ceil(this.settings.height_skitter / (this.settings.width_skitter / 8)), g = h * r, l = Math.ceil(this.settings.width_skitter / h), d = Math.ceil(this.settings.height_skitter / r), _ = 0, c = 0, u = 0, m = 0, f = this.settings.width_skitter / 16; for (i = 0; i < g; i++) { var p = (_ = i % 2 == 0 ? _ : -_) + d * u, k = (c = i % 2 == 0 ? c : -c) + l * m, b = -d * u, v = -l * m, x = p - f, w = k - f, y = this.getBoxCloneImgOld(o); y.css({ left: k + "px", top: p + "px", width: l, height: d }), y.find("img").css({ left: v, top: b }), this.addBoxClone(y), y.show(); var B = 50 * i; s.random && (a = 400 * (e.getRandom(2) + 1) / this.settings.velocity, x = p, w = k, B = Math.ceil(30 * e.getRandom(30))), s.random && i == g - 1 && (a = 1200, B = 900); var C = i == g - 1 ? function () { e.finishAnimation() } : ""; y.delay(B).animate({ opacity: "hide", top: x + "px", left: w + "px" }, a, n, C), ++u == r && (u = 0, m++) } }, animationCubeHide: function () { var t = this; this.settings.is_animating = !0; var s = "" == this.settings.easing_default ? "easeOutQuad" : this.settings.easing_default, e = 500 / this.settings.velocity, n = this.box_skitter.find(".image_main").attr("src"); this.setActualLevel(), this.setLinkAtual(), this.box_skitter.find(".image_main").attr({ src: this.settings.image_atual }); var a = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 8)), o = Math.ceil(this.settings.height_skitter / (this.settings.height_skitter / 3)), h = a * o, r = Math.ceil(this.settings.width_skitter / a), g = Math.ceil(this.settings.height_skitter / o), l = 0, d = 0, _ = 0, c = 0; for (i = 0; i < h; i++) { var u = (l = i % 2 == 0 ? l : -l) + g * _, m = (d = i % 2 == 0 ? d : -d) + r * c, f = -g * _, p = -r * c, k = this.getBoxCloneImgOld(n); k.css({ left: m + "px", top: u + "px", width: r, height: g }), k.find("img").css({ left: p, top: f }), this.addBoxClone(k), k.show(); var b = 50 * i; b = i == h - 1 ? 50 * h : b; var v = i == h - 1 ? function () { t.finishAnimation() } : ""; k.delay(b).animate({ opacity: "hide" }, e, s, v), ++_ == o && (_ = 0, c++) } }, animationCubeJelly: function () { var t = this; this.settings.is_animating = !0; var s = "" == this.settings.easing_default ? "easeInBack" : this.settings.easing_default, e = 300 / this.settings.velocity, n = this.box_skitter.find(".image_main").attr("src"); this.setActualLevel(), this.setLinkAtual(), this.box_skitter.find(".image_main").attr({ src: this.settings.image_atual }); var a = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 8)), o = Math.ceil(this.settings.height_skitter / (this.settings.height_skitter / 3)), h = a * o, r = Math.ceil(this.settings.width_skitter / a), g = Math.ceil(this.settings.height_skitter / o), l = 0, d = 0, _ = 0, c = 0, u = -1; for (i = 0; i < h; i++) { c % 2 != 0 ? (0 == _ && (u = u + o + 1), u--) : (c > 0 && 0 == _ && (u += 2), u++); var m = (l = i % 2 == 0 ? l : -l) + g * _, f = (d = i % 2 == 0 ? d : -d) + r * c, p = -g * _, k = -r * c, b = this.getBoxCloneImgOld(n); b.css({ left: f + "px", top: m + "px", width: r, height: g }), b.find("img").css({ left: k, top: p }), this.addBoxClone(b), b.show(); var v = 50 * i, x = i == h - 1 ? function () { t.finishAnimation() } : ""; b.delay(v).animate({ width: "+=100px", height: "+=100px", top: "-=20px", left: "-=20px", opacity: "hide" }, e, s, x), ++_ == o && (_ = 0, c++) } }, animationCubeSize: function () { var t = this; this.settings.is_animating = !0; var s = "" == this.settings.easing_default ? "easeInOutQuad" : this.settings.easing_default, e = 600 / this.settings.velocity, n = this.box_skitter.find(".image_main").attr("src"); this.setActualLevel(), this.setLinkAtual(), this.box_skitter.find(".image_main").attr({ src: this.settings.image_atual }); var a = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 8)), o = Math.ceil(this.settings.height_skitter / (this.settings.height_skitter / 3)), h = a * o, r = Math.ceil(this.settings.width_skitter / a), g = Math.ceil(this.settings.height_skitter / o), l = 0, d = 0, _ = 0, c = 0; for (Math.ceil(this.settings.width_skitter / 6), i = 0; i < h; i++) { var u = (l = i % 2 == 0 ? l : -l) + g * _, m = (d = i % 2 == 0 ? d : -d) + r * c, f = -g * _, p = -r * c, k = this.getBoxCloneImgOld(n); k.css({ left: m, top: u, width: r, height: g }), k.find("img").css({ left: p, top: f }), this.addBoxClone(k), k.show(); var b = 50 * i, v = i == h - 1 ? function () { t.finishAnimation() } : ""; k.delay(b).animate({ opacity: "hide", width: "hide", height: "hide", top: u + 1.5 * r, left: m + 1.5 * g }, e, s, v), ++_ == o && (_ = 0, c++) } }, animationHorizontal: function () { var t = this; this.settings.is_animating = !0; var s = "" == this.settings.easing_default ? "easeOutExpo" : this.settings.easing_default, e = 700 / this.settings.velocity; this.setActualLevel(); var n = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 7)), a = this.settings.width_skitter, o = Math.ceil(this.settings.height_skitter / n); for (i = 0; i < n; i++) { var h = (i, "" + a), r = i * o, g = this.getBoxClone(); g.css({ left: h + "px", top: r + "px", width: a, height: o }), g.find("img").css({ left: 0, top: -r }), this.addBoxClone(g); var l = 90 * i, d = i == n - 1 ? function () { t.finishAnimation() } : ""; g.delay(l).animate({ opacity: "show", top: r, left: 0 }, e, s, d) } }, animationShowBars: function (s) { var e = this; s = t.extend({}, { random: !1 }, s || {}), this.settings.is_animating = !0; var n = "" == this.settings.easing_default ? "easeOutQuad" : this.settings.easing_default, a = 400 / this.settings.velocity; this.setActualLevel(); var o = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10)), h = Math.ceil(this.settings.width_skitter / o), r = this.settings.height_skitter; for (i = 0; i < o; i++) { var g = h * i, l = this.getBoxClone(); if (l.css({ left: g, top: -50, width: h, height: r }), l.find("img").css({ left: -h * i, top: 0 }), this.addBoxClone(l), s.random) { var d = 50 * this.getRandom(o); d = i == o - 1 ? 50 * o : d } else d = 70 * i, a -= 2 * i; var _ = i == o - 1 ? function () { e.finishAnimation() } : ""; l.delay(d).animate({ opacity: "show", top: "0px", left: g + "px" }, a, n, _) } }, animationTube: function () { var t = this; this.settings.is_animating = !0; var s = "" == this.settings.easing_default ? "easeOutElastic" : this.settings.easing_default, e = 600 / this.settings.velocity; this.setActualLevel(); var n = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10)), a = Math.ceil(this.settings.width_skitter / n), o = this.settings.height_skitter; for (i = 0; i < n; i++) { var h = o, r = a * i, g = this.getBoxClone(); g.css({ left: r, top: h, height: o, width: a }), g.find("img").css({ left: -r }), this.addBoxClone(g); var l = 30 * this.getRandom(n), d = i == n - 1 ? function () { t.finishAnimation() } : ""; g.show().delay(l).animate({ top: 0 }, e, s, d) } }, animationFade: function () { var t = this; this.settings.is_animating = !0; var s = "" == this.settings.easing_default ? "easeOutQuad" : this.settings.easing_default, e = 800 / this.settings.velocity; this.setActualLevel(); var n = this.settings.width_skitter, a = this.settings.height_skitter; for (i = 0; i < 2; i++) { var o = this.getBoxClone(); o.css({ left: 0, top: 0, width: n, height: a }), this.addBoxClone(o); var h = 1 == i ? function () { t.finishAnimation() } : ""; o.animate({ opacity: "show", left: 0, top: 0 }, e, s, h) } }, animationFadeFour: function () { var t = this; this.settings.is_animating = !0; var s = "" == this.settings.easing_default ? "easeOutQuad" : this.settings.easing_default, e = 500 / this.settings.velocity; this.setActualLevel(); var n = this.settings.width_skitter, a = this.settings.height_skitter; for (i = 0; i < 4; i++) { if (0 == i) var o = "-100px", h = "-100px"; else 1 == i ? (o = "-100px", h = "100px") : 2 == i ? (o = "100px", h = "-100px") : 3 == i && (o = "100px", h = "100px"); var r = this.getBoxClone(); r.css({ left: h, top: o, width: n, height: a }), this.addBoxClone(r); var g = 3 == i ? function () { t.finishAnimation() } : ""; r.animate({ opacity: "show", left: 0, top: 0 }, e, s, g) } }, animationParalell: function () { var t = this; this.settings.is_animating = !0; var s = "" == this.settings.easing_default ? "easeOutQuad" : this.settings.easing_default, e = 400 / this.settings.velocity; this.setActualLevel(); var n = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 16)), a = Math.ceil(this.settings.width_skitter / n), o = this.settings.height_skitter; for (i = 0; i < n; i++) { var h, r = a * i, g = this.getBoxClone(); g.css({ left: r, top: 0 - this.settings.height_skitter, width: a, height: o }), g.find("img").css({ left: -a * i, top: 0 }), this.addBoxClone(g), i <= n / 2 - 1 ? h = 1400 - 200 * i : i > n / 2 - 1 && (h = 200 * (i - n / 2)), h /= 2.5; var l = i == n - 1 ? function () { t.finishAnimation() } : ""; g.delay(h).animate({ top: "0px", left: r + "px", opacity: "show" }, e, s, l) } }, animationBlind: function (s) { var e = this; s = t.extend({}, { height: !1 }, s || {}), this.settings.is_animating = !0; var n = "" == this.settings.easing_default ? "easeOutQuad" : this.settings.easing_default, a = 400 / this.settings.velocity; this.setActualLevel(); var o = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 16)), h = Math.ceil(this.settings.width_skitter / o), r = this.settings.height_skitter; for (i = 0; i < o; i++) { var g, l = h * i, d = this.getBoxClone(); if (d.css({ left: l, top: 0, width: h, height: r }), d.find("img").css({ left: -h * i, top: 0 }), this.addBoxClone(d), s.height) { i <= o / 2 - 1 ? g = 200 + 200 * i : i > o / 2 - 1 && (g = 200 * (o / 2 - i) + 100 * o); var _ = i == o / 2 ? function () { e.finishAnimation() } : "" } else i <= o / 2 - 1 ? g = 1400 - 200 * i : i > o / 2 - 1 && (g = 200 * (i - o / 2)), _ = i == o - 1 ? function () { e.finishAnimation() } : ""; g /= 2.5, s.height ? (a += 2 * i, n = "easeOutQuad", d.delay(g).animate({ opacity: "show", top: "0px", left: l + "px", height: "show" }, a, n, _)) : d.delay(g).animate({ opacity: "show", top: "0px", left: l + "px", width: "show" }, a, n, _) } }, animationBlindDimension: function (s) { var e = this; s = t.extend({}, { height: !0, time_animate: 500, delay: 100 }, s || {}), this.settings.is_animating = !0; var n = "" == this.settings.easing_default ? "easeOutQuad" : this.settings.easing_default, a = s.time_animate / this.settings.velocity; this.setActualLevel(); var o = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 16)), h = Math.ceil(this.settings.width_skitter / o), r = this.settings.height_skitter; for (i = 0; i < o; i++) { var g = h * i, l = this.getBoxClone(); l.css({ left: g, top: 0, width: h, height: r }), l.find("img").css({ left: -h * i, top: 0 }), this.addBoxClone(l); var d = s.delay * i, _ = i == o - 1 ? function () { e.finishAnimation() } : ""; s.height ? (n = "easeOutQuad", l.delay(d).animate({ opacity: "show", top: "0px", left: g + "px", height: "show" }, a, n, _)) : l.delay(d).animate({ opacity: "show", top: "0px", left: g + "px", width: "show" }, a, n, _) } }, animationDirection: function (s) { var e = this; s = t.extend({}, { direction: "top", delay_type: "sequence", total: 7 }, s || {}), this.settings.is_animating = !0; var n = "" == this.settings.easing_default ? "easeInOutExpo" : this.settings.easing_default, a = 1200 / this.settings.velocity, o = this.box_skitter.find(".image_main").attr("src"); this.setActualLevel(), this.setLinkAtual(), this.box_skitter.find(".image_main").attr({ src: this.settings.image_atual }), this.box_skitter.find(".image_main").hide(); var h = s.total; for (i = 0; i < h; i++) { switch (s.direction) { default: case "top": var r = Math.ceil(this.settings.width_skitter / h), g = 0, l = -(b = this.settings.height_skitter), d = k = r * i, _ = b, c = k, u = 0, m = k, f = 0, p = -k; break; case "bottom": r = Math.ceil(this.settings.width_skitter / h), g = 0, l = b = this.settings.height_skitter, d = k = r * i, _ = -b, c = k, u = 0, m = k, f = 0, p = -k; break; case "right": r = this.settings.width_skitter; var k = 0; l = g = (b = Math.ceil(this.settings.height_skitter / h)) * i, _ = g, c = -(d = r), u = g, m = 0, f = -g, p = 0; break; case "left": var b; r = this.settings.width_skitter, k = 0, l = g = (b = Math.ceil(this.settings.height_skitter / h)) * i, _ = g, c = -(d = -r), u = g, m = 0, f = -g, p = 0 } switch (s.delay_type) { case "zebra": default: var v = i % 2 == 0 ? 0 : 150; break; case "random": v = 900 * Math.random(); break; case "sequence": v = 100 * i } var x = this.getBoxCloneImgOld(o); x.find("img").css({ left: p, top: f }), x.css({ top: g, left: k, width: r, height: b }), this.addBoxClone(x), x.show(), x.delay(v).animate({ top: l, left: d }, a, n); var w = this.getBoxClone(); w.find("img").css({ left: p, top: f }), w.css({ top: _, left: c, width: r, height: b }), this.addBoxClone(w), w.show(); var y = i == h - 1 ? function () { e.finishAnimation() } : ""; w.delay(v).animate({ top: u, left: m }, a, n, y) } }, animationCubeSpread: function () { var t = this; this.settings.is_animating = !0; var s = "" == this.settings.easing_default ? "easeOutQuad" : this.settings.easing_default, e = 700 / this.settings.velocity; this.setActualLevel(); var n = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 8)), a = Math.ceil(this.settings.height_skitter / (this.settings.width_skitter / 8)), o = n * a, h = Math.ceil(this.settings.width_skitter / n), r = Math.ceil(this.settings.height_skitter / a), g = 0, l = 0, d = 0, _ = 0, c = new Array, u = new Array; for (i = 0; i < o; i++) { var m = (g = i % 2 == 0 ? g : -g) + r * d, f = (l = i % 2 == 0 ? l : -l) + h * _; c[i] = [m, f], ++d == a && (d = 0, _++) } for (d = 0, _ = 0, i = 0; i < o; i++) u[i] = i; for (u = t.shuffleArray(u), i = 0; i < o; i++) { var p = -r * d, k = -h * _, b = m = (g = i % 2 == 0 ? g : -g) + r * d, v = f = (l = i % 2 == 0 ? l : -l) + h * _; m = c[u[i]][0], f = c[u[i]][1]; var x = this.getBoxClone(); x.css({ left: f + "px", top: m + "px", width: h, height: r }), x.find("img").css({ left: k, top: p }), this.addBoxClone(x); var w = 900 * Math.random(); i == o - 1 && (w = 900); var y = i == o - 1 ? function () { t.finishAnimation() } : ""; x.delay(w).animate({ opacity: "show", top: b + "px", left: v + "px" }, e, s, y), ++d == a && (d = 0, _++) } }, animationGlassCube: function () { var t = this; this.settings.is_animating = !0; var s = "" == this.settings.easing_default ? "easeOutExpo" : this.settings.easing_default, e = 500 / this.settings.velocity; this.setActualLevel(); var n = 2 * Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10)), a = 2 * Math.ceil(this.settings.width_skitter / n), o = this.settings.height_skitter / 2, h = 0; for (i = 0; i < n; i++) { mod = i % 2 == 0; var r = a * h, g = mod ? -t.settings.height_skitter : t.settings.height_skitter, l = a * h, d = mod ? 0 : o, _ = -a * h, c = mod ? 0 : -o, u = 120 * h, m = this.getBoxClone(); m.css({ left: r, top: g, width: a, height: o }), m.find("img").css({ left: _ + a / 1.5, top: c }).delay(u).animate({ left: _, top: c }, 1.9 * e, "easeOutQuad"), this.addBoxClone(m); var f = i == n - 1 ? function () { t.finishAnimation() } : ""; m.show().delay(u).animate({ top: d, left: l }, e, s, f), i % 2 != 0 && h++ } }, animationGlassBlock: function () { var t = this; this.settings.is_animating = !0; var s = "" == this.settings.easing_default ? "easeOutExpo" : this.settings.easing_default, e = 700 / this.settings.velocity; this.setActualLevel(); var n = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10)), a = Math.ceil(this.settings.width_skitter / n), o = this.settings.height_skitter; for (i = 0; i < n; i++) { var h = a * i, r = a * i, g = -a * i, l = 100 * i, d = this.getBoxClone(); d.css({ left: h, top: 0, width: a, height: o }), d.find("img").css({ left: g + a / 1.5, top: 0 }).delay(l).animate({ left: g, top: 0 }, 1.1 * e, "easeInOutQuad"), this.addBoxClone(d); var _ = i == n - 1 ? function () { t.finishAnimation() } : ""; d.delay(l).animate({ top: 0, left: r, opacity: "show" }, e, s, _) } }, animationCircles: function () { var t = this; this.settings.is_animating = !0; var s = "" == this.settings.easing_default ? "easeInQuad" : this.settings.easing_default, e = 500 / this.settings.velocity; this.setActualLevel(); var n = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10)), a = 100, o = Math.sqrt(Math.pow(this.settings.width_skitter, 2) + Math.pow(this.settings.height_skitter, 2)); for (o = Math.ceil(o), i = 0; i < n; i++) { var h = t.settings.width_skitter / 2 - a / 2, r = t.settings.height_skitter / 2 - a / 2, g = h, l = r, d = null; d = this.getBoxCloneBackground({ image: t.settings.image_atual, left: h, top: r, width: a, height: a, position: { top: -r, left: -h } }).css3({ "border-radius": o + "px" }), a += 100, this.addBoxClone(d); var _ = 70 * i, c = i == n - 1 ? function () { t.finishAnimation() } : ""; d.delay(_).animate({ top: l, left: g, opacity: "show" }, e, s, c) } }, animationCirclesInside: function () { var t = this; this.settings.is_animating = !0; var s = "" == this.settings.easing_default ? "easeInQuad" : this.settings.easing_default, e = 500 / this.settings.velocity, n = this.box_skitter.find(".image_main").attr("src"); this.setActualLevel(), this.setLinkAtual(), this.box_skitter.find(".image_main").attr({ src: this.settings.image_atual }); var a = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10)), o = Math.sqrt(Math.pow(this.settings.width_skitter, 2) + Math.pow(this.settings.height_skitter, 2)), h = o = Math.ceil(o); for (i = 0; i < a; i++) { var r = t.settings.width_skitter / 2 - h / 2, g = t.settings.height_skitter / 2 - h / 2, l = r, d = g, _ = null; _ = this.getBoxCloneBackground({ image: n, left: r, top: g, width: h, height: h, position: { top: -g, left: -r } }).css3({ "border-radius": o + "px" }), h -= 100, this.addBoxClone(_), _.show(); var c = 70 * i, u = i == a - 1 ? function () { t.finishAnimation() } : ""; _.delay(c).animate({ top: d, left: l, opacity: "hide" }, e, s, u) } }, animationCirclesRotate: function () { var t = this; this.settings.is_animating = !0; var s = "" == this.settings.easing_default ? "easeOutQuad" : this.settings.easing_default, e = 500 / this.settings.velocity, n = this.box_skitter.find(".image_main").attr("src"); this.setActualLevel(), this.setLinkAtual(), this.box_skitter.find(".image_main").attr({ src: this.settings.image_atual }); var a = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10)), o = Math.sqrt(Math.pow(this.settings.width_skitter, 2) + Math.pow(this.settings.height_skitter, 2)), h = o = Math.ceil(o); for (i = 0; i < a; i++) { var r = t.settings.width_skitter / 2 - h / 2, g = t.settings.height_skitter / 2 - h / 2, l = r, d = g, _ = null; (_ = this.getBoxCloneImgOld(n)).css({ left: r, top: g, width: h, height: h }).css3({ "border-radius": o + "px" }), _.find("img").css({ left: -r, top: -g }), h -= 100, this.addBoxClone(_), _.show(); var c = 100 * i, u = i == a - 1 ? function () { t.finishAnimation() } : "", m = i % 2 == 0 ? "20deg" : "-20deg"; _.delay(c).animate({ top: d, left: l, opacity: "hide", rotate: m }, e, s, u) } }, animationCubeShow: function () { var t = this; this.settings.is_animating = !0; var s = "" == this.settings.easing_default ? "easeOutQuad" : this.settings.easing_default, e = 400 / this.settings.velocity; this.setActualLevel(); var n = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 8)), a = Math.ceil(this.settings.height_skitter / (this.settings.height_skitter / 4)), o = n * a, h = Math.ceil(this.settings.width_skitter / n), r = Math.ceil(this.settings.height_skitter / a), g = 0, l = 0, d = 0, _ = 0; for (i = 0; i < o; i++) { g = r * d, l = h * _; var c = 30 * i, u = this.getBoxClone(); u.css({ left: l, top: g, width: h, height: r }).hide(), u.find("img").css({ left: -l, top: -g }), this.addBoxClone(u); var m = i == o - 1 ? function () { t.finishAnimation() } : ""; u.delay(c).animate({ width: "show", height: "show" }, e, s, m), ++d == a && (d = 0, _++) } }, animationDirectionBars: function (s) { var e = this; s = t.extend({}, { direction: "top" }, s || {}), this.settings.is_animating = !0; var n = "" == this.settings.easing_default ? "easeInOutQuad" : this.settings.easing_default, a = 400 / this.settings.velocity, o = this.box_skitter.find(".image_main").attr("src"); this.setActualLevel(), this.setLinkAtual(), this.box_skitter.find(".image_main").attr({ src: this.settings.image_atual }); var h = Math.ceil(this.settings.width_skitter / 12), r = this.settings.height_skitter, g = "top" == s.direction ? -r : r; for (i = 0; i < 12; i++) { var l = h * i, d = -h * i, _ = this.getBoxCloneImgOld(o); _.css({ left: l + "px", top: "0px", width: h, height: r }), _.find("img").css({ left: d, top: 0 }), this.addBoxClone(_), _.show(); var c = 70 * i, u = 11 == i ? function () { e.finishAnimation() } : ""; _.delay(c).animate({ top: g }, a, n, u) } }, animationHideBars: function (s) { var e = this; s = t.extend({}, { random: !1 }, s || {}), this.settings.is_animating = !0; var n = "" == this.settings.easing_default ? "easeOutCirc" : this.settings.easing_default, a = 700 / this.settings.velocity, o = this.box_skitter.find(".image_main").attr("src"); this.setActualLevel(), this.setLinkAtual(), this.box_skitter.find(".image_main").attr({ src: this.settings.image_atual }); var h = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10)), r = h, g = Math.ceil(this.settings.width_skitter / h), l = this.settings.height_skitter; for (i = 0; i < r; i++) { var d = g * i, _ = -g * i, c = "+=" + g, u = this.getBoxCloneImgOld(o); u.css({ left: 0, top: 0, width: g, height: l }), u.find("img").css({ left: _, top: 0 }); var m = this.getBoxCloneImgOld(o); m.css({ left: d + "px", top: "0px", width: g, height: l }), m.html(u), this.addBoxClone(m), u.show(), m.show(); var f = 50 * i, p = i == r - 1 ? function () { e.finishAnimation() } : ""; u.delay(f).animate({ left: c }, a, n, p) } }, animationSwapBars: function (s) { var e = this; s = t.extend({}, { direction: "top", delay_type: "sequence", total: 7, easing: "easeOutCirc" }, s || {}), this.settings.is_animating = !0; var n = "" == this.settings.easing_default ? s.easing : this.settings.easing_default, a = 500 / this.settings.velocity, o = this.box_skitter.find(".image_main").attr("src"); this.setActualLevel(), this.setLinkAtual(), this.box_skitter.find(".image_main").attr({ src: this.settings.image_atual }), this.box_skitter.find(".image_main").hide(); var h = s.total; for (i = 0; i < h; i++) { var r = Math.ceil(this.settings.width_skitter / h), g = this.settings.height_skitter, l = r * i, d = -l; switch (s.delay_type) { case "zebra": default: var _ = i % 2 == 0 ? 0 : 150; break; case "random": _ = 900 * Math.random(); break; case "sequence": _ = 100 * i } var c = this.getBoxCloneImgOld(o); c.find("img").css({ left: d, top: 0 }), c.css({ top: 0, left: 0, width: r, height: g }); var u = this.getBoxClone(); u.find("img").css({ left: d, top: 0 }), u.css({ top: 0, left: -r, width: r, height: g }); var m = this.getBoxClone(); m.html("").append(c).append(u), m.css({ top: 0, left: l, width: r, height: g }), this.addBoxClone(m), m.show(), c.show(), u.show(); var f = i == h - 1 ? function () { e.finishAnimation() } : ""; c.delay(_).animate({ left: r }, a, n), u.delay(_).animate({ left: 0 }, a, n, f) } }, animationSwapBlocks: function (i) { var s = this; i = t.extend({}, { easing_old: "easeInOutQuad", easing_new: "easeOutQuad" }, i || {}), this.settings.is_animating = !0; var e = "" == this.settings.easing_default ? i.easing_old : this.settings.easing_default, n = "" == this.settings.easing_default ? i.easing_new : this.settings.easing_default, a = 800 / this.settings.velocity, o = this.box_skitter.find(".image_main").attr("src"); this.setActualLevel(), this.setLinkAtual(), this.box_skitter.find(".image_main").attr({ src: this.settings.image_atual }), this.box_skitter.find(".image_main").hide(); var h = this.settings.width_skitter, r = Math.ceil(this.settings.height_skitter / 2), g = this.getBoxCloneImgOld(o), l = this.getBoxCloneImgOld(o); g.find("img").css({ left: 0, top: 0 }), g.css({ top: 0, left: 0, width: h, height: r }), l.find("img").css({ left: 0, top: -r }), l.css({ top: r, left: 0, width: h, height: r }); var d = this.getBoxClone(), _ = this.getBoxClone(); d.find("img").css({ left: 0, top: r }), d.css({ top: 0, left: 0, width: h, height: r }), _.find("img").css({ left: 0, top: -2 * r }), _.css({ top: r, left: 0, width: h, height: r }), this.addBoxClone(d), this.addBoxClone(_), this.addBoxClone(g), this.addBoxClone(l), g.show(), l.show(), d.show(), _.show(), g.find("img").animate({ top: r }, a, e, function () { g.remove() }), l.find("img").animate({ top: -2 * r }, a, e, function () { l.remove() }), d.find("img").animate({ top: 0 }, a, n), _.find("img").animate({ top: -r }, a, n, function () { s.finishAnimation() }) }, animationCut: function (i) { var s = this; i = t.extend({}, { easing_old: "easeInOutExpo", easing_new: "easeInOutExpo" }, i || {}), this.settings.is_animating = !0; var e = "" == this.settings.easing_default ? i.easing_old : this.settings.easing_default, n = "" == this.settings.easing_default ? i.easing_new : this.settings.easing_default, a = 900 / this.settings.velocity, o = this.box_skitter.find(".image_main").attr("src"); this.setActualLevel(), this.setLinkAtual(), this.box_skitter.find(".image_main").attr({ src: this.settings.image_atual }), this.box_skitter.find(".image_main").hide(); var h = this.settings.width_skitter, r = Math.ceil(this.settings.height_skitter / 2), g = this.getBoxCloneImgOld(o), l = this.getBoxCloneImgOld(o); g.find("img").css({ left: 0, top: 0 }), g.css({ top: 0, left: 0, width: h, height: r }), l.find("img").css({ left: 0, top: -r }), l.css({ top: r, left: 0, width: h, height: r }); var d = this.getBoxClone(), _ = this.getBoxClone(); d.find("img").css({ left: 0, top: 0 }), d.css({ top: 0, left: h, width: h, height: r }), _.find("img").css({ left: 0, top: -r }), _.css({ top: r, left: -h, width: h, height: r }), this.addBoxClone(d), this.addBoxClone(_), this.addBoxClone(g), this.addBoxClone(l), g.show(), l.show(), d.show(), _.show(), g.animate({ left: -h }, a, e, function () { g.remove() }), l.animate({ left: h }, a, e, function () { l.remove() }), d.animate({ left: 0 }, a, n), _.animate({ left: 0 }, a, n, function () { s.finishAnimation() }) }, finishAnimation: function () { var t = this; this.box_skitter.find(".image_main").show(), this.showBoxText(), this.settings.is_animating = !1, this.box_skitter.find(".image_main").attr({ src: this.settings.image_atual }), this.box_skitter.find(".image a").attr({ href: this.settings.link_atual }), this.settings.is_hover_box_skitter || this.settings.is_paused || this.settings.is_blur || (this.timer = setTimeout(function () { t.completeMove() }, this.settings.interval)), t.startTime() }, completeMove: function () { this.clearTimer(!0), this.box_skitter.find(".box_clone").remove(), this.settings.is_paused || this.settings.is_blur || this.nextImage() }, setActualLevel: function () { t.isFunction(this.settings.imageSwitched) && this.settings.imageSwitched(this.settings.image_i, this), this.setImageLink(), this.addClassNumber(), this.hideBoxText(), this.increasingImage() }, setImageLink: function () { var t = this.settings.images_links[this.settings.image_i][0], i = this.settings.images_links[this.settings.image_i][1], s = this.settings.images_links[this.settings.image_i][3], e = this.settings.images_links[this.settings.image_i][4]; this.settings.image_atual = t, this.settings.link_atual = i, this.settings.label_atual = s, this.settings.target_atual = e }, addClassNumber: function () { this.box_skitter.find(".image_number_select").removeClass("image_number_select"), t("#image_n_" + (this.settings.image_i + 1) + "_" + this.number_skitter).addClass("image_number_select") }, increasingImage: function () { this.settings.image_i++, this.settings.image_i == this.settings.images_links.length && (this.settings.image_i = 0) }, getBoxClone: function () { if ("#" != this.settings.link_atual) (i = t('<a href="' + this.settings.link_atual + '"><img src="' + this.settings.image_atual + '" /></a>')).attr({ target: this.settings.target_atual }); else var i = t('<img src="' + this.settings.image_atual + '" />'); i = this.resizeImage(i); var s = t('<div class="box_clone"></div>'); return s.append(i), s }, getBoxCloneImgOld: function (i) { if ("#" != this.settings.link_atual) (s = t('<a href="' + this.settings.link_atual + '"><img src="' + i + '" /></a>')).attr({ target: this.settings.target_atual }); else var s = t('<img src="' + i + '" />'); s = this.resizeImage(s); var e = t('<div class="box_clone"></div>'); return e.append(s), e }, resizeImage: function (t) { return this.settings.fullscreen && t.find("img").height(this.settings.height_skitter), t }, addBoxClone: function (t) { this.box_skitter.find(".container_skitter").append(t) }, getEasing: function (t) { return jQuery.inArray(t, ["easeInQuad", "easeOutQuad", "easeInOutQuad", "easeInCubic", "easeOutCubic", "easeInOutCubic", "easeInQuart", "easeOutQuart", "easeInOutQuart", "easeInQuint", "easeOutQuint", "easeInOutQuint", "easeInSine", "easeOutSine", "easeInOutSine", "easeInExpo", "easeOutExpo", "easeInOutExpo", "easeInCirc", "easeOutCirc", "easeInOutCirc", "easeInElastic", "easeOutElastic", "easeInOutElastic", "easeInBack", "easeOutBack", "easeInOutBack", "easeInBounce", "easeOutBounce", "easeInOutBounce"]) > 0 ? t : "" }, getRandom: function (t) { return Math.floor(Math.random() * t) }, setValueBoxText: function () { this.box_skitter.find(".label_skitter").html(this.settings.label_atual) }, showBoxText: function () { if (null != this.settings.label_atual && "" != this.settings.label_atual && this.settings.label) switch (this.settings.labelAnimation) { case "slideUp": default: this.box_skitter.find(".label_skitter").slideDown(400); break; case "left": case "right": this.box_skitter.find(".label_skitter").animate({ left: 0 }, 400, "easeInOutQuad"); break; case "fixed": } }, hideBoxText: function () { var t = this; switch (t.settings.labelAnimation) { case "slideUp": default: this.box_skitter.find(".label_skitter").slideUp(200, function () { t.setValueBoxText() }); break; case "left": case "right": var i = "left" == t.settings.labelAnimation ? -t.box_skitter.find(".label_skitter").width() : t.box_skitter.find(".label_skitter").width(); t.box_skitter.find(".label_skitter").animate({ left: i }, 400, "easeInOutQuad", function () { t.setValueBoxText() }); break; case "fixed": t.setValueBoxText() } }, stopOnMouseOver: function () { var t = this; t.settings.stop_over ? t.box_skitter.hover(function () { t.settings.stop_over && (t.settings.is_hover_box_skitter = !0), t.settings.is_paused_time || t.pauseTime(), t.setHideTools("hover"), t.clearTimer(!0) }, function () { t.settings.stop_over && (t.settings.is_hover_box_skitter = !1), 0 != t.settings.elapsedTime || t.settings.is_animating || t.settings.is_paused ? t.settings.is_paused || t.resumeTime() : t.startTime(), t.setHideTools("out"), t.clearTimer(!0), !t.settings.is_animating && t.settings.images_links.length > 1 && (t.timer = setTimeout(function () { t.completeMove() }, t.settings.interval - t.settings.elapsedTime), t.box_skitter.find(".image_main").attr({ src: t.settings.image_atual }), t.box_skitter.find(".image a").attr({ href: t.settings.link_atual })) }) : t.box_skitter.hover(function () { t.setHideTools("hover") }, function () { t.setHideTools("out") }) }, setHideTools: function (t) { var i = this, s = i.settings.opacity_elements, e = i.settings.interval_in_elements, n = i.settings.interval_out_elements; "hover" == t ? (i.settings.hideTools && (i.settings.numbers && i.box_skitter.find(".info_slide").show().css({ opacity: 0 }).animate({ opacity: s }, e), i.settings.navigation && i.box_skitter.find(".prev_button, .next_button").show().css({ opacity: 0 }).animate({ opacity: s }, e), i.settings.focus && !i.settings.foucs_active && i.box_skitter.find(".focus_button").stop().show().css({ opacity: 0 }).animate({ opacity: s }, e), i.settings.controls && i.box_skitter.find(".play_pause_button").stop().show().css({ opacity: 0 }).animate({ opacity: s }, e)), !i.settings.focus || i.settings.foucs_active || i.settings.hideTools || i.box_skitter.find(".focus_button").stop().animate({ opacity: 1 }, e), i.settings.controls && !i.settings.hideTools && i.box_skitter.find(".play_pause_button").stop().animate({ opacity: 1 }, e)) : (i.settings.hideTools && (i.settings.numbers && i.box_skitter.find(".info_slide").queue("fx", []).show().css({ opacity: s }).animate({ opacity: 0 }, n), i.settings.navigation && i.box_skitter.find(".prev_button, .next_button").queue("fx", []).show().css({ opacity: s }).animate({ opacity: 0 }, n), i.settings.focus && !i.settings.foucs_active && i.box_skitter.find(".focus_button").stop().css({ opacity: s }).animate({ opacity: 0 }, n), i.settings.controls && i.box_skitter.find(".play_pause_button").stop().css({ opacity: s }).animate({ opacity: 0 }, n)), !i.settings.focus || i.settings.foucs_active || i.settings.hideTools || i.box_skitter.find(".focus_button").stop().animate({ opacity: .3 }, n), i.settings.controls && !i.settings.hideTools && i.box_skitter.find(".play_pause_button").stop().animate({ opacity: .3 }, n)) }, clearTimer: function () { clearInterval(this.timer) }, setLinkAtual: function () { "#" != this.settings.link_atual && "" != this.settings.link_atual ? this.box_skitter.find(".image a").attr({ href: this.settings.link_atual, target: this.settings.target_atual }) : this.box_skitter.find(".image a").removeAttr("href") }, hideTools: function () { this.box_skitter.find(".info_slide").fadeTo(0, 0), this.box_skitter.find(".prev_button").fadeTo(0, 0), this.box_skitter.find(".next_button").fadeTo(0, 0), this.box_skitter.find(".focus_button").fadeTo(0, 0), this.box_skitter.find(".play_pause_button").fadeTo(0, 0) }, focusSkitter: function () { var i = this, s = t('<a href="#" class="focus_button">focus</a>'); i.box_skitter.append(s); var e = (i.settings.width_skitter - s.width()) / 2, n = 0; i.settings.controls && (e -= 25), i.settings.controls_position == i.settings.focus_position && (n = s.width() + 5); var a = { left: e }; switch (i.settings.focus_position) { case "leftTop": a = { left: 5 + n, top: 30 }; break; case "rightTop": a = { right: 5 + n, top: 30 }; break; case "leftBottom": a = { left: 5 + n, bottom: 5, top: "auto" }; break; case "rightBottom": a = { right: 5 + n, bottom: 5, top: "auto" } } s.css(a).animate({ opacity: .3 }, i.settings.interval_in_elements), t(document).keypress(function (i) { 27 == (i.keyCode ? i.keyCode : i.which) && t("#overlay_skitter").trigger("click") }); var o = t(".box_skitter").offset().top; e = t(".box_skitter").offset().left, i.box_skitter.find(".focus_button").click(function () { if (i.settings.foucs_active) return !1; i.settings.foucs_active = !0, t(this).stop().animate({ opacity: 0 }, i.settings.interval_out_elements); var s = t('<div id="overlay_skitter"></div>').height(t(document).height()).hide().fadeTo(i.settings.interval_in_elements, .98), n = (t(window).height() - t(".box_skitter").height()) / 2 + t(document).scrollTop(), a = (t(window).width() - t(".box_skitter").width()) / 2; return i.box_skitter.before('<div id="mark_position"></div>'), t("body").prepend(s), t("body").prepend(i.box_skitter), i.box_skitter.css({ top: o, left: e, position: "absolute", "z-index": 9999 }).animate({ top: n, left: a }, 2e3, "easeOutExpo"), t("#mark_position").width(t(".box_skitter").width()).height(t(".box_skitter").height()).css({ background: "none" }).fadeTo(300, .3), !1 }), t(document).on("click", "#overlay_skitter", function () { return !t(this).hasClass("finish_overlay_skitter") && (i.settings.foucs_active = !1, t(this).addClass("finish_overlay_skitter"), i.settings.hideTools || i.box_skitter.find(".focus_button").animate({ opacity: .3 }, 200), i.box_skitter.stop().animate({ top: o, left: e }, 200, "easeOutExpo", function () { t("#mark_position").before(i.box_skitter), t(this).css({ position: "relative", top: 0, left: 0 }), t("#mark_position").remove() }), t("#overlay_skitter").fadeTo(i.settings.interval_out_elements, 0, function () { t(this).remove() }), !1) }) }, setControls: function () { var i = this, s = t('<a href="#" class="play_pause_button">pause</a>'); i.box_skitter.append(s); var e = (i.settings.width_skitter - s.width()) / 2; i.settings.focus && (e += 25); var n = { left: e }; switch (i.settings.controls_position) { case "leftTop": n = { left: 5, top: 30 }; break; case "rightTop": n = { right: 5, top: 30 }; break; case "leftBottom": n = { left: 5, bottom: 5, top: "auto" }; break; case "rightBottom": n = { right: 5, bottom: 5, top: "auto" } } s.css(n).animate({ opacity: .3 }, i.settings.interval_in_elements), s.click(function () { return i.settings.is_paused ? (i.settings.is_animating || i.box_skitter.find(".progressbar").is(":visible") ? i.resumeTime() : i.settings.elapsedTime = 0, i.settings.progressbar || i.resumeTime(), i.settings.is_paused = !1, t(this).html("pause"), t(this).fadeTo(100, .5).fadeTo(100, 1), t(this).removeClass("play_button"), i.settings.stop_over || (i.clearTimer(!0), !i.settings.is_animating && i.settings.images_links.length > 1 && (i.timer = setTimeout(function () { i.completeMove() }, i.settings.interval - i.settings.elapsedTime), i.box_skitter.find(".image_main").attr({ src: i.settings.image_atual }), i.box_skitter.find(".image a").attr({ href: i.settings.link_atual })))) : (t(this).html("play"), t(this).fadeTo(100, .5).fadeTo(100, 1), t(this).addClass("play_button"), i.pauseTime(), i.settings.is_paused = !0, i.clearTimer(!0)), !1 }) }, objectSize: function (t) { var i, s = 0; for (i in t) t.hasOwnProperty(i) && s++; return s }, addProgressBar: function () { var i = this, s = t('<div class="progressbar"></div>'); i.box_skitter.append(s), 0 == i.objectSize(i.settings.progressbar_css) && (parseInt(s.css("width")) > 0 ? i.settings.progressbar_css.width = parseInt(s.css("width")) : i.settings.progressbar_css = { width: i.settings.width_skitter, height: 5 }), i.objectSize(i.settings.progressbar_css) > 0 && null == i.settings.progressbar_css.width && (i.settings.progressbar_css.width = i.settings.width_skitter), s.css(i.settings.progressbar_css).hide() }, startProgressBar: function () { var t = this; return !(t.settings.is_hover_box_skitter || t.settings.is_paused || t.settings.is_blur || !t.settings.progressbar) && void t.box_skitter.find(".progressbar").hide().dequeue().width(t.settings.progressbar_css.width).animate({ width: "show" }, t.settings.interval, "linear") }, pauseProgressBar: function () { this.settings.is_animating || this.box_skitter.find(".progressbar").stop() }, resumeProgressBar: function () { var t = this; return !(t.settings.is_hover_box_skitter || t.settings.is_paused || !t.settings.progressbar) && void t.box_skitter.find(".progressbar").dequeue().animate({ width: t.settings.progressbar_css.width }, t.settings.interval - t.settings.elapsedTime, "linear") }, hideProgressBar: function () { var i = this; return !!i.settings.progressbar && void i.box_skitter.find(".progressbar").stop().fadeOut(300, function () { t(this).width(i.settings.progressbar_css.width) }) }, startTime: function () { this.settings.is_paused_time = !1; var t = new Date; this.settings.elapsedTime = 0, this.settings.timeStart = t.getTime(), this.startProgressBar() }, pauseTime: function () { var t = this; if (t.settings.is_paused_time) return !1; t.settings.is_paused_time = !0; var i = new Date; t.settings.elapsedTime += i.getTime() - t.settings.timeStart, t.pauseProgressBar() }, resumeTime: function () { this.settings.is_paused_time = !1; var t = new Date; this.settings.timeStart = t.getTime(), this.resumeProgressBar() }, enableNavigationKeys: function () { var i = this; t(window).keydown(function (t) { 39 == t.keyCode || 40 == t.keyCode ? i.box_skitter.find(".next_button").trigger("click") : (37 == t.keyCode || 38 == t.keyCode) && i.box_skitter.find(".prev_button").trigger("click") }) }, getBoxCloneBackground: function (i) { var s = t('<div class="box_clone"></div>'); return s.css({ left: i.left, top: i.top, width: i.width, height: i.height, "background-image": "url(" + i.image + ")", "background-position": i.position.left + "px " + i.position.top + "px" }), s }, shuffleArray: function (t) { for (var i, s = new Array; t.length > 0;) i = this.randomUnique(0, t.length - 1), s[s.length] = t[i], t.splice(i, 1); return s }, randomUnique: function (t, i) { var s; do { s = Math.random() } while (1 == s); return s * (i - t + 1) + t | 0 }, windowFocusOut: function () { var i = this; t(window).bind("blur", function () { i.settings.is_blur = !0, i.pauseTime(), i.clearTimer(!0) }), t(window).bind("focus", function () { i.settings.images_links.length > 1 && (i.settings.is_blur = !1, 0 == i.settings.elapsedTime ? i.startTime() : i.resumeTime(), i.settings.elapsedTime <= i.settings.interval && (i.clearTimer(!0), i.timer = setTimeout(function () { i.completeMove() }, i.settings.interval - i.settings.elapsedTime), i.box_skitter.find(".image_main").attr({ src: i.settings.image_atual }), i.box_skitter.find(".image a").attr({ href: i.settings.link_atual }))) }) } }), t.fn.css3 = function (t) { var i = {}, s = ["moz", "ms", "o", "webkit"]; for (var e in t) { for (var n = 0; n < s.length; n++) i["-" + s[n] + "-" + e] = t[e]; i[e] = t[e] } return this.css(i), this }; var o = "deg"; t.fn.rotate = function (i) { var s, e = t(this).css("transform") || "none"; return void 0 === i ? e && (s = e.match(/rotate\(([^)]+)\)/)) && s[1] ? s[1] : 0 : ((s = i.toString().match(/^(-?\d+(\.\d+)?)(.+)?$/)) && (s[3] && (o = s[3]), t(this).css("transform", e.replace(/none|rotate\([^)]*\)/, "") + "rotate(" + s[1] + o + ")")), this) }, t.fn.scale = function (i) { var s = t(this).css("transform"); if (void 0 === i) { if (s) { var e = s.match(/scale\(([^)]+)\)/); if (e && e[1]) return e[1] } return 1 } return t(this).css("transform", s.replace(/none|scale\([^)]*\)/, "") + "scale(" + i + ")"), this }; var h = t.fx.prototype.cur; t.fx.prototype.cur = function () { return "rotate" == this.prop ? parseFloat(t(this.elem).rotate()) : "scale" == this.prop ? parseFloat(t(this.elem).scale()) : h.apply(this, arguments) }, t.fx.step.rotate = function (i) { t(i.elem).rotate(i.now + o) }, t.fx.step.scale = function (i) { t(i.elem).scale(i.now) }; var r = t.fn.animate; t.fn.animate = function (t) { if (void 0 !== t.rotate) { var i = t.rotate.toString().match(/^(([+-]=)?(-?\d+(\.\d+)?))(.+)?$/); i && i[5] && (o = i[5]), t.rotate = i[1] } return r.apply(this, arguments) }; var g = null, l = t.fn.css; t.fn.css = function (i, s) { if (null === g && (g = void 0 !== t.cssProps ? t.cssProps : void 0 !== t.props ? t.props : {}), void 0 === g.transform && ("transform" == i || "object" == typeof i && void 0 !== i.transform) && (g.transform = function (t) { for (var i, s = ["transform", "WebkitTransform", "msTransform", "MozTransform", "OTransform"]; i = s.shift() ;) if (void 0 !== t.style[i]) return i; return "transform" }(this.get(0))), "transform" != g.transform) if ("transform" == i) { if (i = g.transform, void 0 === s && jQuery.style) return jQuery.style(this.get(0), i) } else "object" == typeof i && void 0 !== i.transform && (i[g.transform] = i.transform, delete i.transform); return l.apply(this, arguments) } }(jQuery);;!function (t) { function e(e, i) { this.$el = t(e), this.id = Math.random(), this.options = i, this.multiple = this.$el.prop("multiple"), this.activeOpt = null, this.widthSet = !1, this.generate() } function i(e, i) { this.$el = t(e), this.wSelect = i } e.prototype = { generate: function () { if (!this.$select) { var e = this; this.$select = t('<div class="wSelect"><div class="wSelect-arrow"></div></div>'), this.$optionsHolder = t('<div class="wSelect-options-holder"></div>'), this.$options = t('<div class="wSelect-options"></div>'), t.support.placeholder || this.$select.css("zIndex", 100 - this.$el.index()); var i = function (i) { i.stopPropagation(), t("select").each(function () { var i = t(this).data("wSelect"); i && i.id !== e.id && (i.multiple || i.$optionsHolder.hide(), i.onBlur()) }), e.multiple || e.onClick(i), e.$el.focus() }; this.multiple ? (this.$select.addClass("wSelect-multiple"), this.$optionsHolder.click(i)) : (this.$selected = t('<div class="wSelect-selected"></div>'), this.$select.append(this.$selected), this.$select.click(i), this.$optionsHolder.click(function (t) { t.stopPropagation(), e.$el.focus() })), this.$select.hover(function () { e.onFocus("hover") }, function () { e.onBlur("hover") }), this.$el.addClass("wSelect-el").change(function () { e.change() }).focus(function () { e.onFocus() }).keydown(function (t) { e.keydown(t) }).keyup(function (t) { e.keyup(t) }), t(document).click(function () { e.multiple || e.$optionsHolder.hide(), e.onBlur() }), this.widthSet = this.$select.width() > 0, this.setTheme(this.options.theme), this.setSize(this.options.size), this.reset(), this.$optionsHolder.append(this.$options), this.$select.append(this.$optionsHolder), this.$el.after(this.$select) } return this.$select }, reset: function () { var e = this; this.$options.children().remove(), this.$el.children().each(function () { var s = new i(this, e); t.data(this, "wSelect-option", s), e.$options.append(s.generate()) }), this.$options.children().removeClass("wSelect-option-last").last().addClass("wSelect-option-last"), this.setSize(this.options.size) }, change: function () { this.$options.children().removeClass("wSelect-option-selected wSelect-option-active"), this.$el.children(":selected").each(function () { t(this).data("wSelect-option").select() }) }, keydown: function (t) { 9 === t.keyCode && (this.$optionsHolder.hide(), this.onBlur()) }, keyup: function (t) { if (13 === t.keyCode) this.$optionsHolder.hide(); else if (t.keyCode >= 37 && t.keyCode <= 40) { this.change(); var e = this.$options.find(".wSelect-option-selected:last"), i = this.$options.scrollTop(), s = e.position().top + i, o = this.$options.height(), l = e.outerHeight(!0); 0 > s - i ? this.$options.scrollTop(s) : s + l - i > o && this.$options.scrollTop(s - o + l) } }, onClick: function () { if (!this.$optionsHolder.is(":visible")) { var e = this.$select.offset().top - t(window).scrollTop(), i = this.$optionsHolder.outerHeight(), s = e - i, o = t(window).height() - (e + this.$select.outerHeight() + i + 5), l = o > 0 || o > s ? this.$select.height() : -i; this.$optionsHolder.css("top", l) } this.$optionsHolder.toggle() }, onFocus: function (t) { t = t || "active", this.options.highlight && this.$select.addClass("wSelect-" + t) }, onBlur: function (t) { t = t || "active", this.options.highlight && this.$select.removeClass("wSelect-" + t) }, setTheme: function (t) { this.$select.attr("class", this.$select.attr("class").replace(/wSelect-theme-.+\s|wSelect-theme-.+$/, "")), this.$select.addClass("wSelect-theme-" + t) }, setSize: function (e) { var i, s = this.$options.children(":first").clone().css({ position: "absolute", left: -1e4 }), o = this.$el.children().length; t("body").append(s), i = s.outerHeight(!0), s.remove(), !this.multiple && e > o && (e = o), this.$options.height(i * e - 1) } }, i.prototype = { generate: function () { var e = this; if (!this.$option) { var i = this.$el.attr("data-icon"); this.$option = t('<div class="wSelect-option"></div>'), this.$value = t('<div class="wSelect-option-value"></div>'), this.$option.append(this.$value), "string" == typeof i && (this.$value.addClass("wSelect-option-icon"), this.$value.css("backgroundImage", "url(" + i + ")")) } return this.$el.prop("selected") && this.select(), this.$el.prop("disabled") ? this.$option.addClass("wSelect-option-disabled") : (this.$option.removeClass("wSelect-option-disabled"), this.$option.unbind("click").click(function (t) { e.onClick(t) })), this.$value.html(this.$el.html()), this.setWidth(), this.$option }, select: function () { if (this.wSelect.activeOpt || (this.wSelect.activeOpt = this), !this.wSelect.multiple) { var t = this.$el.attr("data-icon"); "string" == typeof t ? (this.wSelect.$selected.addClass("wSelect-option-icon"), this.wSelect.$selected.css("backgroundImage", "url(" + t + ")")) : (this.wSelect.$selected.removeClass("wSelect-option-icon"), this.wSelect.$selected.css("backgroundImage", "")), this.wSelect.$selected.html(this.$el.html()) } this.$option.addClass("wSelect-option-selected") }, onClick: function (e) { var i = null; if (this.wSelect.multiple && (e.ctrlKey || e.shiftKey)) { if (e.ctrlKey || !this.wSelect.activeOpt) { i = this.wSelect.$el.val() || []; var s = this.$el.val(), o = t.inArray(s, i); -1 === o ? (i.push(this.$el.val()), this.wSelect.activeOpt = this) : i.splice(o, 1) } else if (e.shiftKey) { var l = this.wSelect.activeOpt.$el.index(), n = this.$el.index(), h = 0, c = 0, a = null; n > l ? (h = l, c = n) : (h = n, c = l), i = []; for (var p = h; c >= p; p++) (a = this.wSelect.$el.children(":eq(" + p + ")")).is(":not(:disabled)") && i.push(a.val()) } } else i = this.$el.val(), this.wSelect.$optionsHolder.hide(), this.wSelect.activeOpt = this; this.wSelect.$el.val(i).change() }, setWidth: function () { if (this.wSelect.multiple || this.wSelect.widthSet) return !0; this.$option.hide().appendTo("body"); var t = this.$option.width(); t > this.wSelect.$select.width() && this.wSelect.$select.width(t), this.$option.detach().show() } }, t.support.placeholder = "placeholder" in document.createElement("input"), t.fn.wSelect = function (i, s) { if ("string" == typeof i) { var o = [], l = this.each(function () { var e = t(this).data("wSelect"); if (e) { var l = (s ? "set" : "get") + i.charAt(0).toUpperCase() + i.substring(1).toLowerCase(); e[i] ? e[i].apply(e, [s]) : s ? (e[l] && e[l].apply(e, [s]), e.options[i] && (e.options[i] = s)) : e[l] ? o.push(e[l].apply(e, [s])) : e.options[i] ? o.push(e.options[i]) : o.push(null) } }); return 1 === o.length ? o[0] : o.length > 0 ? o : l } return i = t.extend({}, t.fn.wSelect.defaults, i), this.each(function () { !function (s) { var o = t.data(s, "wSelect"); if (!o) { var l = jQuery.extend(!0, {}, i); l.size = t(s).prop("size") || l.size, o = new e(s, l), t.data(s, "wSelect", o) } }(this) }) }, t.fn.wSelect.defaults = { theme: "classic", size: "4", highlight: !0 } }(jQuery);;