!function(a, b) { var c, d, e = typeof b, f = a.location, g = a.document, h = g.documentElement, i = a.jQuery, j = a.$, k = {}, l = [], m = "1.10.2", n = l.concat, o = l.push, p = l.slice, q = l.indexOf, r = k.toString, s = k.hasOwnProperty, t = m.trim, u = function(a, b) { return new u.fn.init(a, b, d); }, v = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, w = /\S+/g, x = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, y = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, z = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, A = /^[\],:{}\s]*$/, B = /(?:^|:|,)(?:\s*\[)+/g, C = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g, D = /"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g, E = /^-ms-/, F = /-([\da-z])/gi, G = function(a, b) { return b.toUpperCase(); }, H = function(a) { if (g.addEventListener || "load" === a.type || "complete" === g.readyState) { I(); u.ready(); } }, I = function() { if (g.addEventListener) { g.removeEventListener("DOMContentLoaded", H, false); a.removeEventListener("load", H, false); } else { g.detachEvent("onreadystatechange", H); a.detachEvent("onload", H); } }; u.fn = u.prototype = { jquery: m, constructor: u, init: function(a, c, d) { var e, f; if (!a) return this; if ("string" === typeof a) { if ("<" === a.charAt(0) && ">" === a.charAt(a.length - 1) && a.length >= 3) e = [ null, a, null ]; else e = y.exec(a); if (e && (e[1] || !c)) if (e[1]) { c = c instanceof u ? c[0] : c; u.merge(this, u.parseHTML(e[1], c && c.nodeType ? c.ownerDocument || c : g, true)); if (z.test(e[1]) && u.isPlainObject(c)) for (e in c) if (u.isFunction(this[e])) this[e](c[e]); else this.attr(e, c[e]); return this; } else { f = g.getElementById(e[2]); if (f && f.parentNode) { if (f.id !== e[2]) return d.find(a); this.length = 1; this[0] = f; } this.context = g; this.selector = a; return this; } else if (!c || c.jquery) return (c || d).find(a); else return this.constructor(c).find(a); } else if (a.nodeType) { this.context = this[0] = a; this.length = 1; return this; } else if (u.isFunction(a)) return d.ready(a); if (a.selector !== b) { this.selector = a.selector; this.context = a.context; } return u.makeArray(a, this); }, selector: "", length: 0, toArray: function() { return p.call(this); }, get: function(a) { return null == a ? this.toArray() : a < 0 ? this[this.length + a] : this[a]; }, pushStack: function(a) { var b = u.merge(this.constructor(), a); b.prevObject = this; b.context = this.context; return b; }, each: function(a, b) { return u.each(this, a, b); }, ready: function(a) { u.ready.promise().done(a); return this; }, slice: function() { return this.pushStack(p.apply(this, arguments)); }, first: function() { return this.eq(0); }, last: function() { return this.eq(-1); }, eq: function(a) { var b = this.length, c = +a + (a < 0 ? b : 0); return this.pushStack(c >= 0 && c < b ? [ this[c] ] : []); }, map: function(a) { return this.pushStack(u.map(this, function(b, c) { return a.call(b, c, b); })); }, end: function() { return this.prevObject || this.constructor(null); }, push: o, sort: [].sort, splice: [].splice }; u.fn.init.prototype = u.fn; u.extend = u.fn.extend = function() { var a, c, d, e, f, g, h = arguments[0] || {}, i = 1, j = arguments.length, k = false; if ("boolean" === typeof h) { k = h; h = arguments[1] || {}; i = 2; } if ("object" !== typeof h && !u.isFunction(h)) h = {}; if (j === i) { h = this; --i; } for (;i < j; i++) if (null != (f = arguments[i])) for (e in f) { a = h[e]; d = f[e]; if (h === d) continue; if (k && d && (u.isPlainObject(d) || (c = u.isArray(d)))) { if (c) { c = false; g = a && u.isArray(a) ? a : []; } else g = a && u.isPlainObject(a) ? a : {}; h[e] = u.extend(k, g, d); } else if (d !== b) h[e] = d; } return h; }; u.extend({ expando: "jQuery" + (m + Math.random()).replace(/\D/g, ""), noConflict: function(b) { if (a.$ === u) a.$ = j; if (b && a.jQuery === u) a.jQuery = i; return u; }, isReady: false, readyWait: 1, holdReady: function(a) { if (a) u.readyWait++; else u.ready(true); }, ready: function(a) { if (true === a ? --u.readyWait : u.isReady) return; if (!g.body) return setTimeout(u.ready); u.isReady = true; if (true !== a && --u.readyWait > 0) return; c.resolveWith(g, [ u ]); if (u.fn.trigger) u(g).trigger("ready").off("ready"); }, isFunction: function(a) { return "function" === u.type(a); }, isArray: Array.isArray || function(a) { return "array" === u.type(a); }, isWindow: function(a) { return null != a && a == a.window; }, isNumeric: function(a) { return !isNaN(parseFloat(a)) && isFinite(a); }, type: function(a) { if (null == a) return String(a); return "object" === typeof a || "function" === typeof a ? k[r.call(a)] || "object" : typeof a; }, isPlainObject: function(a) { var c; if (!a || "object" !== u.type(a) || a.nodeType || u.isWindow(a)) return false; try { if (a.constructor && !s.call(a, "constructor") && !s.call(a.constructor.prototype, "isPrototypeOf")) return false; } catch (d) { return false; } if (u.support.ownLast) for (c in a) return s.call(a, c); for (c in a) ; return c === b || s.call(a, c); }, isEmptyObject: function(a) { var b; for (b in a) return false; return true; }, error: function(a) { throw new Error(a); }, parseHTML: function(a, b, c) { if (!a || "string" !== typeof a) return null; if ("boolean" === typeof b) { c = b; b = false; } b = b || g; var d = z.exec(a), e = !c && []; if (d) return [ b.createElement(d[1]) ]; d = u.buildFragment([ a ], b, e); if (e) u(e).remove(); return u.merge([], d.childNodes); }, parseJSON: function(b) { if (a.JSON && a.JSON.parse) return a.JSON.parse(b); if (null === b) return b; if ("string" === typeof b) { b = u.trim(b); if (b) if (A.test(b.replace(C, "@").replace(D, "]").replace(B, ""))) return new Function("return " + b)(); } u.error("Invalid JSON: " + b); }, parseXML: function(c) { var d, e; if (!c || "string" !== typeof c) return null; try { if (a.DOMParser) { e = new DOMParser(); d = e.parseFromString(c, "text/xml"); } else { d = new ActiveXObject("Microsoft.XMLDOM"); d.async = "false"; d.loadXML(c); } } catch (f) { d = b; } if (!d || !d.documentElement || d.getElementsByTagName("parsererror").length) u.error("Invalid XML: " + c); return d; }, noop: function() {}, globalEval: function(b) { if (b && u.trim(b)) (a.execScript || function(b) { a["eval"].call(a, b); })(b); }, camelCase: function(a) { return a.replace(E, "ms-").replace(F, G); }, nodeName: function(a, b) { return a.nodeName && a.nodeName.toLowerCase() === b.toLowerCase(); }, each: function(a, b, c) { var d, e = 0, f = a.length, g = J(a); if (c) if (g) for (;e < f; e++) { d = b.apply(a[e], c); if (false === d) break; } else for (e in a) { d = b.apply(a[e], c); if (false === d) break; } else if (g) for (;e < f; e++) { d = b.call(a[e], e, a[e]); if (false === d) break; } else for (e in a) { d = b.call(a[e], e, a[e]); if (false === d) break; } return a; }, trim: t && !t.call(" ") ? function(a) { return null == a ? "" : t.call(a); } : function(a) { return null == a ? "" : (a + "").replace(x, ""); }, makeArray: function(a, b) { var c = b || []; if (null != a) if (J(Object(a))) u.merge(c, "string" === typeof a ? [ a ] : a); else o.call(c, a); return c; }, inArray: function(a, b, c) { var d; if (b) { if (q) return q.call(b, a, c); d = b.length; c = c ? c < 0 ? Math.max(0, d + c) : c : 0; for (;c < d; c++) if (c in b && b[c] === a) return c; } return -1; }, merge: function(a, c) { var d = c.length, e = a.length, f = 0; if ("number" === typeof d) for (;f < d; f++) a[e++] = c[f]; else while (c[f] !== b) a[e++] = c[f++]; a.length = e; return a; }, grep: function(a, b, c) { var d, e = [], f = 0, g = a.length; c = !!c; for (;f < g; f++) { d = !!b(a[f], f); if (c !== d) e.push(a[f]); } return e; }, map: function(a, b, c) { var d, e = 0, f = a.length, g = J(a), h = []; if (g) for (;e < f; e++) { d = b(a[e], e, c); if (null != d) h[h.length] = d; } else for (e in a) { d = b(a[e], e, c); if (null != d) h[h.length] = d; } return n.apply([], h); }, guid: 1, proxy: function(a, c) { var d, e, f; if ("string" === typeof c) { f = a[c]; c = a; a = f; } if (!u.isFunction(a)) return b; d = p.call(arguments, 2); e = function() { return a.apply(c || this, d.concat(p.call(arguments))); }; e.guid = a.guid = a.guid || u.guid++; return e; }, access: function(a, c, d, e, f, g, h) { var i = 0, j = a.length, k = null == d; if ("object" === u.type(d)) { f = true; for (i in d) u.access(a, c, i, d[i], true, g, h); } else if (e !== b) { f = true; if (!u.isFunction(e)) h = true; if (k) if (h) { c.call(a, e); c = null; } else { k = c; c = function(a, b, c) { return k.call(u(a), c); }; } if (c) for (;i < j; i++) c(a[i], d, h ? e : e.call(a[i], i, c(a[i], d))); } return f ? a : k ? c.call(a) : j ? c(a[0], d) : g; }, now: function() { return new Date().getTime(); }, swap: function(a, b, c, d) { var e, f, g = {}; for (f in b) { g[f] = a.style[f]; a.style[f] = b[f]; } e = c.apply(a, d || []); for (f in b) a.style[f] = g[f]; return e; } }); u.ready.promise = function(b) { if (!c) { c = u.Deferred(); if ("complete" === g.readyState) setTimeout(u.ready); else if (g.addEventListener) { g.addEventListener("DOMContentLoaded", H, false); a.addEventListener("load", H, false); } else { g.attachEvent("onreadystatechange", H); a.attachEvent("onload", H); var d = false; try { d = null == a.frameElement && g.documentElement; } catch (e) {} if (d && d.doScroll) !function f() { if (!u.isReady) { try { d.doScroll("left"); } catch (a) { return setTimeout(f, 50); } I(); u.ready(); } }(); } } return c.promise(b); }; u.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(a, b) { k["[object " + b + "]"] = b.toLowerCase(); }); function J(a) { var b = a.length, c = u.type(a); if (u.isWindow(a)) return false; if (1 === a.nodeType && b) return true; return "array" === c || "function" !== c && (0 === b || "number" === typeof b && b > 0 && b - 1 in a); } d = u(g); !function(a, b) { var c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t = "sizzle" + -new Date(), v = a.document, w = 0, x = 0, y = hb(), z = hb(), A = hb(), B = false, C = function(a, b) { if (a === b) { B = true; return 0; } return 0; }, D = typeof b, E = 1 << 31, F = {}.hasOwnProperty, G = [], H = G.pop, I = G.push, J = G.push, K = G.slice, L = G.indexOf || function(a) { var b = 0, c = this.length; for (;b < c; b++) if (this[b] === a) return b; return -1; }, M = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", N = "[\\x20\\t\\r\\n\\f]", O = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", P = O.replace("w", "w#"), Q = "\\[" + N + "*(" + O + ")" + N + "*(?:([*^$|!~]?=)" + N + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + P + ")|)|)" + N + "*\\]", R = ":(" + O + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + Q.replace(3, 8) + ")*)|.*)\\)|)", S = new RegExp("^" + N + "+|((?:^|[^\\\\])(?:\\\\.)*)" + N + "+$", "g"), T = new RegExp("^" + N + "*," + N + "*"), U = new RegExp("^" + N + "*([>+~]|" + N + ")" + N + "*"), V = new RegExp(N + "*[+~]"), W = new RegExp("=" + N + "*([^\\]'\"]*)" + N + "*\\]", "g"), X = new RegExp(R), Y = new RegExp("^" + P + "$"), Z = { ID: new RegExp("^#(" + O + ")"), CLASS: new RegExp("^\\.(" + O + ")"), TAG: new RegExp("^(" + O.replace("w", "w*") + ")"), ATTR: new RegExp("^" + Q), PSEUDO: new RegExp("^" + R), CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + N + "*(even|odd|(([+-]|)(\\d*)n|)" + N + "*(?:([+-]|)" + N + "*(\\d+)|))" + N + "*\\)|)", "i"), bool: new RegExp("^(?:" + M + ")$", "i"), needsContext: new RegExp("^" + N + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + N + "*((?:-\\d)?\\d*)" + N + "*\\)|)(?=[^-]|$)", "i") }, $ = /^[^{]+\{\s*\[native \w/, _ = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, ab = /^(?:input|select|textarea|button)$/i, bb = /^h\d$/i, cb = /'|\\/g, db = new RegExp("\\\\([\\da-f]{1,6}" + N + "?|(" + N + ")|.)", "ig"), eb = function(a, b, c) { var d = "0x" + b - 65536; return d !== d || c ? b : d < 0 ? String.fromCharCode(d + 65536) : String.fromCharCode(d >> 10 | 55296, 1023 & d | 56320); }; try { J.apply(G = K.call(v.childNodes), v.childNodes); G[v.childNodes.length].nodeType; } catch (fb) { J = { apply: G.length ? function(a, b) { I.apply(a, K.call(b)); } : function(a, b) { var c = a.length, d = 0; while (a[c++] = b[d++]) ; a.length = c - 1; } }; } function gb(a, b, c, e) { var f, g, h, i, j, k, n, q, r, u; if ((b ? b.ownerDocument || b : v) !== m) l(b); b = b || m; c = c || []; if (!a || "string" !== typeof a) return c; if (1 !== (i = b.nodeType) && 9 !== i) return []; if (o && !e) { if (f = _.exec(a)) if (h = f[1]) { if (9 === i) { g = b.getElementById(h); if (g && g.parentNode) { if (g.id === h) { c.push(g); return c; } } else return c; } else if (b.ownerDocument && (g = b.ownerDocument.getElementById(h)) && s(b, g) && g.id === h) { c.push(g); return c; } } else if (f[2]) { J.apply(c, b.getElementsByTagName(a)); return c; } else if ((h = f[3]) && d.getElementsByClassName && b.getElementsByClassName) { J.apply(c, b.getElementsByClassName(h)); return c; } if (d.qsa && (!p || !p.test(a))) { q = n = t; r = b; u = 9 === i && a; if (1 === i && "object" !== b.nodeName.toLowerCase()) { k = qb(a); if (n = b.getAttribute("id")) q = n.replace(cb, "\\$&"); else b.setAttribute("id", q); q = "[id='" + q + "'] "; j = k.length; while (j--) k[j] = q + rb(k[j]); r = V.test(a) && b.parentNode || b; u = k.join(","); } if (u) try { J.apply(c, r.querySelectorAll(u)); return c; } catch (w) {} finally { if (!n) b.removeAttribute("id"); } } } return zb(a.replace(S, "$1"), b, c, e); } function hb() { var a = []; function b(c, d) { if (a.push(c += " ") > f.cacheLength) delete b[a.shift()]; return b[c] = d; } return b; } function ib(a) { a[t] = true; return a; } function jb(a) { var b = m.createElement("div"); try { return !!a(b); } catch (c) { return false; } finally { if (b.parentNode) b.parentNode.removeChild(b); b = null; } } function kb(a, b) { var c = a.split("|"), d = a.length; while (d--) f.attrHandle[c[d]] = b; } function lb(a, b) { var c = b && a, d = c && 1 === a.nodeType && 1 === b.nodeType && (~b.sourceIndex || E) - (~a.sourceIndex || E); if (d) return d; if (c) while (c = c.nextSibling) if (c === b) return -1; return a ? 1 : -1; } function mb(a) { return function(b) { var c = b.nodeName.toLowerCase(); return "input" === c && b.type === a; }; } function nb(a) { return function(b) { var c = b.nodeName.toLowerCase(); return ("input" === c || "button" === c) && b.type === a; }; } function ob(a) { return ib(function(b) { b = +b; return ib(function(c, d) { var e, f = a([], c.length, b), g = f.length; while (g--) if (c[e = f[g]]) c[e] = !(d[e] = c[e]); }); }); } h = gb.isXML = function(a) { var b = a && (a.ownerDocument || a).documentElement; return b ? "HTML" !== b.nodeName : false; }; d = gb.support = {}; l = gb.setDocument = function(a) { var b = a ? a.ownerDocument || a : v, c = b.defaultView; if (b === m || 9 !== b.nodeType || !b.documentElement) return m; m = b; n = b.documentElement; o = !h(b); if (c && c.attachEvent && c !== c.top) c.attachEvent("onbeforeunload", function() { l(); }); d.attributes = jb(function(a) { a.className = "i"; return !a.getAttribute("className"); }); d.getElementsByTagName = jb(function(a) { a.appendChild(b.createComment("")); return !a.getElementsByTagName("*").length; }); d.getElementsByClassName = jb(function(a) { a.innerHTML = "
"; a.firstChild.className = "i"; return 2 === a.getElementsByClassName("i").length; }); d.getById = jb(function(a) { n.appendChild(a).id = t; return !b.getElementsByName || !b.getElementsByName(t).length; }); if (d.getById) { f.find["ID"] = function(a, b) { if (typeof b.getElementById !== D && o) { var c = b.getElementById(a); return c && c.parentNode ? [ c ] : []; } }; f.filter["ID"] = function(a) { var b = a.replace(db, eb); return function(a) { return a.getAttribute("id") === b; }; }; } else { delete f.find["ID"]; f.filter["ID"] = function(a) { var b = a.replace(db, eb); return function(a) { var c = typeof a.getAttributeNode !== D && a.getAttributeNode("id"); return c && c.value === b; }; }; } f.find["TAG"] = d.getElementsByTagName ? function(a, b) { if (typeof b.getElementsByTagName !== D) return b.getElementsByTagName(a); } : function(a, b) { var c, d = [], e = 0, f = b.getElementsByTagName(a); if ("*" === a) { while (c = f[e++]) if (1 === c.nodeType) d.push(c); return d; } return f; }; f.find["CLASS"] = d.getElementsByClassName && function(a, b) { if (typeof b.getElementsByClassName !== D && o) return b.getElementsByClassName(a); }; q = []; p = []; if (d.qsa = $.test(b.querySelectorAll)) { jb(function(a) { a.innerHTML = ""; if (!a.querySelectorAll("[selected]").length) p.push("\\[" + N + "*(?:value|" + M + ")"); if (!a.querySelectorAll(":checked").length) p.push(":checked"); }); jb(function(a) { var c = b.createElement("input"); c.setAttribute("type", "hidden"); a.appendChild(c).setAttribute("t", ""); if (a.querySelectorAll("[t^='']").length) p.push("[*^$]=" + N + "*(?:''|\"\")"); if (!a.querySelectorAll(":enabled").length) p.push(":enabled", ":disabled"); a.querySelectorAll("*,:x"); p.push(",.*:"); }); } if (d.matchesSelector = $.test(r = n.webkitMatchesSelector || n.mozMatchesSelector || n.oMatchesSelector || n.msMatchesSelector)) jb(function(a) { d.disconnectedMatch = r.call(a, "div"); r.call(a, "[s!='']:x"); q.push("!=", R); }); p = p.length && new RegExp(p.join("|")); q = q.length && new RegExp(q.join("|")); s = $.test(n.contains) || n.compareDocumentPosition ? function(a, b) { var c = 9 === a.nodeType ? a.documentElement : a, d = b && b.parentNode; return a === d || !!(d && 1 === d.nodeType && (c.contains ? c.contains(d) : a.compareDocumentPosition && 16 & a.compareDocumentPosition(d))); } : function(a, b) { if (b) while (b = b.parentNode) if (b === a) return true; return false; }; C = n.compareDocumentPosition ? function(a, c) { if (a === c) { B = true; return 0; } var e = c.compareDocumentPosition && a.compareDocumentPosition && a.compareDocumentPosition(c); if (e) { if (1 & e || !d.sortDetached && c.compareDocumentPosition(a) === e) { if (a === b || s(v, a)) return -1; if (c === b || s(v, c)) return 1; return k ? L.call(k, a) - L.call(k, c) : 0; } return 4 & e ? -1 : 1; } return a.compareDocumentPosition ? -1 : 1; } : function(a, c) { var d, e = 0, f = a.parentNode, g = c.parentNode, h = [ a ], i = [ c ]; if (a === c) { B = true; return 0; } else if (!f || !g) return a === b ? -1 : c === b ? 1 : f ? -1 : g ? 1 : k ? L.call(k, a) - L.call(k, c) : 0; else if (f === g) return lb(a, c); d = a; while (d = d.parentNode) h.unshift(d); d = c; while (d = d.parentNode) i.unshift(d); while (h[e] === i[e]) e++; return e ? lb(h[e], i[e]) : h[e] === v ? -1 : i[e] === v ? 1 : 0; }; return b; }; gb.matches = function(a, b) { return gb(a, null, null, b); }; gb.matchesSelector = function(a, b) { if ((a.ownerDocument || a) !== m) l(a); b = b.replace(W, "='$1']"); if (d.matchesSelector && o && (!q || !q.test(b)) && (!p || !p.test(b))) try { var c = r.call(a, b); if (c || d.disconnectedMatch || a.document && 11 !== a.document.nodeType) return c; } catch (e) {} return gb(b, m, null, [ a ]).length > 0; }; gb.contains = function(a, b) { if ((a.ownerDocument || a) !== m) l(a); return s(a, b); }; gb.attr = function(a, c) { if ((a.ownerDocument || a) !== m) l(a); var e = f.attrHandle[c.toLowerCase()], g = e && F.call(f.attrHandle, c.toLowerCase()) ? e(a, c, !o) : b; return g === b ? d.attributes || !o ? a.getAttribute(c) : (g = a.getAttributeNode(c)) && g.specified ? g.value : null : g; }; gb.error = function(a) { throw new Error("Syntax error, unrecognized expression: " + a); }; gb.uniqueSort = function(a) { var b, c = [], e = 0, f = 0; B = !d.detectDuplicates; k = !d.sortStable && a.slice(0); a.sort(C); if (B) { while (b = a[f++]) if (b === a[f]) e = c.push(f); while (e--) a.splice(c[e], 1); } return a; }; g = gb.getText = function(a) { var b, c = "", d = 0, e = a.nodeType; if (!e) for (;b = a[d]; d++) c += g(b); else if (1 === e || 9 === e || 11 === e) if ("string" === typeof a.textContent) return a.textContent; else for (a = a.firstChild; a; a = a.nextSibling) c += g(a); else if (3 === e || 4 === e) return a.nodeValue; return c; }; f = gb.selectors = { cacheLength: 50, createPseudo: ib, match: Z, attrHandle: {}, find: {}, relative: { ">": { dir: "parentNode", first: true }, " ": { dir: "parentNode" }, "+": { dir: "previousSibling", first: true }, "~": { dir: "previousSibling" } }, preFilter: { ATTR: function(a) { a[1] = a[1].replace(db, eb); a[3] = (a[4] || a[5] || "").replace(db, eb); if ("~=" === a[2]) a[3] = " " + a[3] + " "; return a.slice(0, 4); }, CHILD: function(a) { a[1] = a[1].toLowerCase(); if ("nth" === a[1].slice(0, 3)) { if (!a[3]) gb.error(a[0]); a[4] = +(a[4] ? a[5] + (a[6] || 1) : 2 * ("even" === a[3] || "odd" === a[3])); a[5] = +(a[7] + a[8] || "odd" === a[3]); } else if (a[3]) gb.error(a[0]); return a; }, PSEUDO: function(a) { var c, d = !a[5] && a[2]; if (Z["CHILD"].test(a[0])) return null; if (a[3] && a[4] !== b) a[2] = a[4]; else if (d && X.test(d) && (c = qb(d, true)) && (c = d.indexOf(")", d.length - c) - d.length)) { a[0] = a[0].slice(0, c); a[2] = d.slice(0, c); } return a.slice(0, 3); } }, filter: { TAG: function(a) { var b = a.replace(db, eb).toLowerCase(); return "*" === a ? function() { return true; } : function(a) { return a.nodeName && a.nodeName.toLowerCase() === b; }; }, CLASS: function(a) { var b = y[a + " "]; return b || (b = new RegExp("(^|" + N + ")" + a + "(" + N + "|$)")) && y(a, function(a) { return b.test("string" === typeof a.className && a.className || typeof a.getAttribute !== D && a.getAttribute("class") || ""); }); }, ATTR: function(a, b, c) { return function(d) { var e = gb.attr(d, a); if (null == e) return "!=" === b; if (!b) return true; e += ""; return "=" === b ? e === c : "!=" === b ? e !== c : "^=" === b ? c && 0 === e.indexOf(c) : "*=" === b ? c && e.indexOf(c) > -1 : "$=" === b ? c && e.slice(-c.length) === c : "~=" === b ? (" " + e + " ").indexOf(c) > -1 : "|=" === b ? e === c || e.slice(0, c.length + 1) === c + "-" : false; }; }, CHILD: function(a, b, c, d, e) { var f = "nth" !== a.slice(0, 3), g = "last" !== a.slice(-4), h = "of-type" === b; return 1 === d && 0 === e ? function(a) { return !!a.parentNode; } : function(b, c, i) { var j, k, l, m, n, o, p = f !== g ? "nextSibling" : "previousSibling", q = b.parentNode, r = h && b.nodeName.toLowerCase(), s = !i && !h; if (q) { if (f) { while (p) { l = b; while (l = l[p]) if (h ? l.nodeName.toLowerCase() === r : 1 === l.nodeType) return false; o = p = "only" === a && !o && "nextSibling"; } return true; } o = [ g ? q.firstChild : q.lastChild ]; if (g && s) { k = q[t] || (q[t] = {}); j = k[a] || []; n = j[0] === w && j[1]; m = j[0] === w && j[2]; l = n && q.childNodes[n]; while (l = ++n && l && l[p] || (m = n = 0) || o.pop()) if (1 === l.nodeType && ++m && l === b) { k[a] = [ w, n, m ]; break; } } else if (s && (j = (b[t] || (b[t] = {}))[a]) && j[0] === w) m = j[1]; else while (l = ++n && l && l[p] || (m = n = 0) || o.pop()) if ((h ? l.nodeName.toLowerCase() === r : 1 === l.nodeType) && ++m) { if (s) (l[t] || (l[t] = {}))[a] = [ w, m ]; if (l === b) break; } m -= e; return m === d || m % d === 0 && m / d >= 0; } }; }, PSEUDO: function(a, b) { var c, d = f.pseudos[a] || f.setFilters[a.toLowerCase()] || gb.error("unsupported pseudo: " + a); if (d[t]) return d(b); if (d.length > 1) { c = [ a, a, "", b ]; return f.setFilters.hasOwnProperty(a.toLowerCase()) ? ib(function(a, c) { var e, f = d(a, b), g = f.length; while (g--) { e = L.call(a, f[g]); a[e] = !(c[e] = f[g]); } }) : function(a) { return d(a, 0, c); }; } return d; } }, pseudos: { not: ib(function(a) { var b = [], c = [], d = i(a.replace(S, "$1")); return d[t] ? ib(function(a, b, c, e) { var f, g = d(a, null, e, []), h = a.length; while (h--) if (f = g[h]) a[h] = !(b[h] = f); }) : function(a, e, f) { b[0] = a; d(b, null, f, c); return !c.pop(); }; }), has: ib(function(a) { return function(b) { return gb(a, b).length > 0; }; }), contains: ib(function(a) { return function(b) { return (b.textContent || b.innerText || g(b)).indexOf(a) > -1; }; }), lang: ib(function(a) { if (!Y.test(a || "")) gb.error("unsupported lang: " + a); a = a.replace(db, eb).toLowerCase(); return function(b) { var c; do if (c = o ? b.lang : b.getAttribute("xml:lang") || b.getAttribute("lang")) { c = c.toLowerCase(); return c === a || 0 === c.indexOf(a + "-"); } while ((b = b.parentNode) && 1 === b.nodeType); return false; }; }), target: function(b) { var c = a.location && a.location.hash; return c && c.slice(1) === b.id; }, root: function(a) { return a === n; }, focus: function(a) { return a === m.activeElement && (!m.hasFocus || m.hasFocus()) && !!(a.type || a.href || ~a.tabIndex); }, enabled: function(a) { return false === a.disabled; }, disabled: function(a) { return true === a.disabled; }, checked: function(a) { var b = a.nodeName.toLowerCase(); return "input" === b && !!a.checked || "option" === b && !!a.selected; }, selected: function(a) { if (a.parentNode) a.parentNode.selectedIndex; return true === a.selected; }, empty: function(a) { for (a = a.firstChild; a; a = a.nextSibling) if (a.nodeName > "@" || 3 === a.nodeType || 4 === a.nodeType) return false; return true; }, parent: function(a) { return !f.pseudos["empty"](a); }, header: function(a) { return bb.test(a.nodeName); }, input: function(a) { return ab.test(a.nodeName); }, button: function(a) { var b = a.nodeName.toLowerCase(); return "input" === b && "button" === a.type || "button" === b; }, text: function(a) { var b; return "input" === a.nodeName.toLowerCase() && "text" === a.type && (null == (b = a.getAttribute("type")) || b.toLowerCase() === a.type); }, first: ob(function() { return [ 0 ]; }), last: ob(function(a, b) { return [ b - 1 ]; }), eq: ob(function(a, b, c) { return [ c < 0 ? c + b : c ]; }), even: ob(function(a, b) { var c = 0; for (;c < b; c += 2) a.push(c); return a; }), odd: ob(function(a, b) { var c = 1; for (;c < b; c += 2) a.push(c); return a; }), lt: ob(function(a, b, c) { var d = c < 0 ? c + b : c; for (;--d >= 0; ) a.push(d); return a; }), gt: ob(function(a, b, c) { var d = c < 0 ? c + b : c; for (;++d < b; ) a.push(d); return a; }) } }; f.pseudos["nth"] = f.pseudos["eq"]; for (c in { radio: true, checkbox: true, file: true, password: true, image: true }) f.pseudos[c] = mb(c); for (c in { submit: true, reset: true }) f.pseudos[c] = nb(c); function pb() {} pb.prototype = f.filters = f.pseudos; f.setFilters = new pb(); function qb(a, b) { var c, d, e, g, h, i, j, k = z[a + " "]; if (k) return b ? 0 : k.slice(0); h = a; i = []; j = f.preFilter; while (h) { if (!c || (d = T.exec(h))) { if (d) h = h.slice(d[0].length) || h; i.push(e = []); } c = false; if (d = U.exec(h)) { c = d.shift(); e.push({ value: c, type: d[0].replace(S, " ") }); h = h.slice(c.length); } for (g in f.filter) if ((d = Z[g].exec(h)) && (!j[g] || (d = j[g](d)))) { c = d.shift(); e.push({ value: c, type: g, matches: d }); h = h.slice(c.length); } if (!c) break; } return b ? h.length : h ? gb.error(a) : z(a, i).slice(0); } function rb(a) { var b = 0, c = a.length, d = ""; for (;b < c; b++) d += a[b].value; return d; } function sb(a, b, c) { var d = b.dir, f = c && "parentNode" === d, g = x++; return b.first ? function(b, c, e) { while (b = b[d]) if (1 === b.nodeType || f) return a(b, c, e); } : function(b, c, h) { var i, j, k, l = w + " " + g; if (h) { while (b = b[d]) if (1 === b.nodeType || f) if (a(b, c, h)) return true; } else while (b = b[d]) if (1 === b.nodeType || f) { k = b[t] || (b[t] = {}); if ((j = k[d]) && j[0] === l) { if (true === (i = j[1]) || i === e) return true === i; } else { j = k[d] = [ l ]; j[1] = a(b, c, h) || e; if (true === j[1]) return true; } } }; } function tb(a) { return a.length > 1 ? function(b, c, d) { var e = a.length; while (e--) if (!a[e](b, c, d)) return false; return true; } : a[0]; } function ub(a, b, c, d, e) { var f, g = [], h = 0, i = a.length, j = null != b; for (;h < i; h++) if (f = a[h]) if (!c || c(f, d, e)) { g.push(f); if (j) b.push(h); } return g; } function vb(a, b, c, d, e, f) { if (d && !d[t]) d = vb(d); if (e && !e[t]) e = vb(e, f); return ib(function(f, g, h, i) { var j, k, l, m = [], n = [], o = g.length, p = f || yb(b || "*", h.nodeType ? [ h ] : h, []), q = a && (f || !b) ? ub(p, m, a, h, i) : p, r = c ? e || (f ? a : o || d) ? [] : g : q; if (c) c(q, r, h, i); if (d) { j = ub(r, n); d(j, [], h, i); k = j.length; while (k--) if (l = j[k]) r[n[k]] = !(q[n[k]] = l); } if (f) { if (e || a) { if (e) { j = []; k = r.length; while (k--) if (l = r[k]) j.push(q[k] = l); e(null, r = [], j, i); } k = r.length; while (k--) if ((l = r[k]) && (j = e ? L.call(f, l) : m[k]) > -1) f[j] = !(g[j] = l); } } else { r = ub(r === g ? r.splice(o, r.length) : r); if (e) e(null, g, r, i); else J.apply(g, r); } }); } function wb(a) { var b, c, d, e = a.length, g = f.relative[a[0].type], h = g || f.relative[" "], i = g ? 1 : 0, k = sb(function(a) { return a === b; }, h, true), l = sb(function(a) { return L.call(b, a) > -1; }, h, true), m = [ function(a, c, d) { return !g && (d || c !== j) || ((b = c).nodeType ? k(a, c, d) : l(a, c, d)); } ]; for (;i < e; i++) if (c = f.relative[a[i].type]) m = [ sb(tb(m), c) ]; else { c = f.filter[a[i].type].apply(null, a[i].matches); if (c[t]) { d = ++i; for (;d < e; d++) if (f.relative[a[d].type]) break; return vb(i > 1 && tb(m), i > 1 && rb(a.slice(0, i - 1).concat({ value: " " === a[i - 2].type ? "*" : "" })).replace(S, "$1"), c, i < d && wb(a.slice(i, d)), d < e && wb(a = a.slice(d)), d < e && rb(a)); } m.push(c); } return tb(m); } function xb(a, b) { var c = 0, d = b.length > 0, g = a.length > 0, h = function(h, i, k, l, n) { var o, p, q, r = [], s = 0, t = "0", u = h && [], v = null != n, x = j, y = h || g && f.find["TAG"]("*", n && i.parentNode || i), z = w += null == x ? 1 : Math.random() || .1; if (v) { j = i !== m && i; e = c; } for (;null != (o = y[t]); t++) { if (g && o) { p = 0; while (q = a[p++]) if (q(o, i, k)) { l.push(o); break; } if (v) { w = z; e = ++c; } } if (d) { if (o = !q && o) s--; if (h) u.push(o); } } s += t; if (d && t !== s) { p = 0; while (q = b[p++]) q(u, r, i, k); if (h) { if (s > 0) while (t--) if (!(u[t] || r[t])) r[t] = H.call(l); r = ub(r); } J.apply(l, r); if (v && !h && r.length > 0 && s + b.length > 1) gb.uniqueSort(l); } if (v) { w = z; j = x; } return u; }; return d ? ib(h) : h; } i = gb.compile = function(a, b) { var c, d = [], e = [], f = A[a + " "]; if (!f) { if (!b) b = qb(a); c = b.length; while (c--) { f = wb(b[c]); if (f[t]) d.push(f); else e.push(f); } f = A(a, xb(e, d)); } return f; }; function yb(a, b, c) { var d = 0, e = b.length; for (;d < e; d++) gb(a, b[d], c); return c; } function zb(a, b, c, e) { var g, h, j, k, l, m = qb(a); if (!e) if (1 === m.length) { h = m[0] = m[0].slice(0); if (h.length > 2 && "ID" === (j = h[0]).type && d.getById && 9 === b.nodeType && o && f.relative[h[1].type]) { b = (f.find["ID"](j.matches[0].replace(db, eb), b) || [])[0]; if (!b) return c; a = a.slice(h.shift().value.length); } g = Z["needsContext"].test(a) ? 0 : h.length; while (g--) { j = h[g]; if (f.relative[k = j.type]) break; if (l = f.find[k]) if (e = l(j.matches[0].replace(db, eb), V.test(h[0].type) && b.parentNode || b)) { h.splice(g, 1); a = e.length && rb(h); if (!a) { J.apply(c, e); return c; } break; } } } i(a, m)(e, b, !o, c, V.test(a)); return c; } d.sortStable = t.split("").sort(C).join("") === t; d.detectDuplicates = B; l(); d.sortDetached = jb(function(a) { return 1 & a.compareDocumentPosition(m.createElement("div")); }); if (!jb(function(a) { a.innerHTML = ""; return "#" === a.firstChild.getAttribute("href"); })) kb("type|href|height|width", function(a, b, c) { if (!c) return a.getAttribute(b, "type" === b.toLowerCase() ? 1 : 2); }); if (!d.attributes || !jb(function(a) { a.innerHTML = ""; a.firstChild.setAttribute("value", ""); return "" === a.firstChild.getAttribute("value"); })) kb("value", function(a, b, c) { if (!c && "input" === a.nodeName.toLowerCase()) return a.defaultValue; }); if (!jb(function(a) { return null == a.getAttribute("disabled"); })) kb(M, function(a, b, c) { var d; if (!c) return (d = a.getAttributeNode(b)) && d.specified ? d.value : true === a[b] ? b.toLowerCase() : null; }); u.find = gb; u.expr = gb.selectors; u.expr[":"] = u.expr.pseudos; u.unique = gb.uniqueSort; u.text = gb.getText; u.isXMLDoc = gb.isXML; u.contains = gb.contains; }(a); var K = {}; function L(a) { var b = K[a] = {}; u.each(a.match(w) || [], function(a, c) { b[c] = true; }); return b; } u.Callbacks = function(a) { a = "string" === typeof a ? K[a] || L(a) : u.extend({}, a); var c, d, e, f, g, h, i = [], j = !a.once && [], k = function(b) { d = a.memory && b; e = true; g = h || 0; h = 0; f = i.length; c = true; for (;i && g < f; g++) if (false === i[g].apply(b[0], b[1]) && a.stopOnFalse) { d = false; break; } c = false; if (i) if (j) { if (j.length) k(j.shift()); } else if (d) i = []; else l.disable(); }, l = { add: function() { if (i) { var b = i.length; !function e(b) { u.each(b, function(b, c) { var d = u.type(c); if ("function" === d) { if (!a.unique || !l.has(c)) i.push(c); } else if (c && c.length && "string" !== d) e(c); }); }(arguments); if (c) f = i.length; else if (d) { h = b; k(d); } } return this; }, remove: function() { if (i) u.each(arguments, function(a, b) { var d; while ((d = u.inArray(b, i, d)) > -1) { i.splice(d, 1); if (c) { if (d <= f) f--; if (d <= g) g--; } } }); return this; }, has: function(a) { return a ? u.inArray(a, i) > -1 : !!(i && i.length); }, empty: function() { i = []; f = 0; return this; }, disable: function() { i = j = d = b; return this; }, disabled: function() { return !i; }, lock: function() { j = b; if (!d) l.disable(); return this; }, locked: function() { return !j; }, fireWith: function(a, b) { if (i && (!e || j)) { b = b || []; b = [ a, b.slice ? b.slice() : b ]; if (c) j.push(b); else k(b); } return this; }, fire: function() { l.fireWith(this, arguments); return this; }, fired: function() { return !!e; } }; return l; }; u.extend({ Deferred: function(a) { var b = [ [ "resolve", "done", u.Callbacks("once memory"), "resolved" ], [ "reject", "fail", u.Callbacks("once memory"), "rejected" ], [ "notify", "progress", u.Callbacks("memory") ] ], c = "pending", d = { state: function() { return c; }, always: function() { e.done(arguments).fail(arguments); return this; }, then: function() { var a = arguments; return u.Deferred(function(c) { u.each(b, function(b, f) { var g = f[0], h = u.isFunction(a[b]) && a[b]; e[f[1]](function() { var a = h && h.apply(this, arguments); if (a && u.isFunction(a.promise)) a.promise().done(c.resolve).fail(c.reject).progress(c.notify); else c[g + "With"](this === d ? c.promise() : this, h ? [ a ] : arguments); }); }); a = null; }).promise(); }, promise: function(a) { return null != a ? u.extend(a, d) : d; } }, e = {}; d.pipe = d.then; u.each(b, function(a, f) { var g = f[2], h = f[3]; d[f[1]] = g.add; if (h) g.add(function() { c = h; }, b[1 ^ a][2].disable, b[2][2].lock); e[f[0]] = function() { e[f[0] + "With"](this === e ? d : this, arguments); return this; }; e[f[0] + "With"] = g.fireWith; }); d.promise(e); if (a) a.call(e, e); return e; }, when: function(a) { var b = 0, c = p.call(arguments), d = c.length, e = 1 !== d || a && u.isFunction(a.promise) ? d : 0, f = 1 === e ? a : u.Deferred(), g = function(a, b, c) { return function(d) { b[a] = this; c[a] = arguments.length > 1 ? p.call(arguments) : d; if (c === h) f.notifyWith(b, c); else if (!--e) f.resolveWith(b, c); }; }, h, i, j; if (d > 1) { h = new Array(d); i = new Array(d); j = new Array(d); for (;b < d; b++) if (c[b] && u.isFunction(c[b].promise)) c[b].promise().done(g(b, j, c)).fail(f.reject).progress(g(b, i, h)); else --e; } if (!e) f.resolveWith(j, c); return f.promise(); } }); u.support = function(b) { var c, d, f, h, i, j, k, l, m, n = g.createElement("div"); n.setAttribute("className", "t"); n.innerHTML = "
a"; c = n.getElementsByTagName("*") || []; d = n.getElementsByTagName("a")[0]; if (!d || !d.style || !c.length) return b; h = g.createElement("select"); j = h.appendChild(g.createElement("option")); f = n.getElementsByTagName("input")[0]; d.style.cssText = "top:1px;float:left;opacity:.5"; b.getSetAttribute = "t" !== n.className; b.leadingWhitespace = 3 === n.firstChild.nodeType; b.tbody = !n.getElementsByTagName("tbody").length; b.htmlSerialize = !!n.getElementsByTagName("link").length; b.style = /top/.test(d.getAttribute("style")); b.hrefNormalized = "/a" === d.getAttribute("href"); b.opacity = /^0.5/.test(d.style.opacity); b.cssFloat = !!d.style.cssFloat; b.checkOn = !!f.value; b.optSelected = j.selected; b.enctype = !!g.createElement("form").enctype; b.html5Clone = "<:nav>" !== g.createElement("nav").cloneNode(true).outerHTML; b.inlineBlockNeedsLayout = false; b.shrinkWrapBlocks = false; b.pixelPosition = false; b.deleteExpando = true; b.noCloneEvent = true; b.reliableMarginRight = true; b.boxSizingReliable = true; f.checked = true; b.noCloneChecked = f.cloneNode(true).checked; h.disabled = true; b.optDisabled = !j.disabled; try { delete n.test; } catch (o) { b.deleteExpando = false; } f = g.createElement("input"); f.setAttribute("value", ""); b.input = "" === f.getAttribute("value"); f.value = "t"; f.setAttribute("type", "radio"); b.radioValue = "t" === f.value; f.setAttribute("checked", "t"); f.setAttribute("name", "t"); i = g.createDocumentFragment(); i.appendChild(f); b.appendChecked = f.checked; b.checkClone = i.cloneNode(true).cloneNode(true).lastChild.checked; if (n.attachEvent) { n.attachEvent("onclick", function() { b.noCloneEvent = false; }); n.cloneNode(true).click(); } for (m in { submit: true, change: true, focusin: true }) { n.setAttribute(k = "on" + m, "t"); b[m + "Bubbles"] = k in a || false === n.attributes[k].expando; } n.style.backgroundClip = "content-box"; n.cloneNode(true).style.backgroundClip = ""; b.clearCloneStyle = "content-box" === n.style.backgroundClip; for (m in u(b)) break; b.ownLast = "0" !== m; u(function() { var c, d, f, h = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;", i = g.getElementsByTagName("body")[0]; if (!i) return; c = g.createElement("div"); c.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px"; i.appendChild(c).appendChild(n); n.innerHTML = "
t
"; f = n.getElementsByTagName("td"); f[0].style.cssText = "padding:0;margin:0;border:0;display:none"; l = 0 === f[0].offsetHeight; f[0].style.display = ""; f[1].style.display = "none"; b.reliableHiddenOffsets = l && 0 === f[0].offsetHeight; n.innerHTML = ""; n.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%;"; u.swap(i, null != i.style.zoom ? { zoom: 1 } : {}, function() { b.boxSizing = 4 === n.offsetWidth; }); if (a.getComputedStyle) { b.pixelPosition = "1%" !== (a.getComputedStyle(n, null) || {}).top; b.boxSizingReliable = "4px" === (a.getComputedStyle(n, null) || { width: "4px" }).width; d = n.appendChild(g.createElement("div")); d.style.cssText = n.style.cssText = h; d.style.marginRight = d.style.width = "0"; n.style.width = "1px"; b.reliableMarginRight = !parseFloat((a.getComputedStyle(d, null) || {}).marginRight); } if (typeof n.style.zoom !== e) { n.innerHTML = ""; n.style.cssText = h + "width:1px;padding:1px;display:inline;zoom:1"; b.inlineBlockNeedsLayout = 3 === n.offsetWidth; n.style.display = "block"; n.innerHTML = "
"; n.firstChild.style.width = "5px"; b.shrinkWrapBlocks = 3 !== n.offsetWidth; if (b.inlineBlockNeedsLayout) i.style.zoom = 1; } i.removeChild(c); c = n = f = d = null; }); c = h = i = j = d = f = null; return b; }({}); var M = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, N = /([A-Z])/g; function O(a, c, d, e) { if (!u.acceptData(a)) return; var f, g, h = u.expando, i = a.nodeType, j = i ? u.cache : a, k = i ? a[h] : a[h] && h; if ((!k || !j[k] || !e && !j[k].data) && d === b && "string" === typeof c) return; if (!k) if (i) k = a[h] = l.pop() || u.guid++; else k = h; if (!j[k]) j[k] = i ? {} : { toJSON: u.noop }; if ("object" === typeof c || "function" === typeof c) if (e) j[k] = u.extend(j[k], c); else j[k].data = u.extend(j[k].data, c); g = j[k]; if (!e) { if (!g.data) g.data = {}; g = g.data; } if (d !== b) g[u.camelCase(c)] = d; if ("string" === typeof c) { f = g[c]; if (null == f) f = g[u.camelCase(c)]; } else f = g; return f; } function P(a, b, c) { if (!u.acceptData(a)) return; var d, e, f = a.nodeType, g = f ? u.cache : a, h = f ? a[u.expando] : u.expando; if (!g[h]) return; if (b) { d = c ? g[h] : g[h].data; if (d) { if (!u.isArray(b)) if (b in d) b = [ b ]; else { b = u.camelCase(b); if (b in d) b = [ b ]; else b = b.split(" "); } else b = b.concat(u.map(b, u.camelCase)); e = b.length; while (e--) delete d[b[e]]; if (c ? !R(d) : !u.isEmptyObject(d)) return; } } if (!c) { delete g[h].data; if (!R(g[h])) return; } if (f) u.cleanData([ a ], true); else if (u.support.deleteExpando || g != g.window) delete g[h]; else g[h] = null; } u.extend({ cache: {}, noData: { applet: true, embed: true, object: "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" }, hasData: function(a) { a = a.nodeType ? u.cache[a[u.expando]] : a[u.expando]; return !!a && !R(a); }, data: function(a, b, c) { return O(a, b, c); }, removeData: function(a, b) { return P(a, b); }, _data: function(a, b, c) { return O(a, b, c, true); }, _removeData: function(a, b) { return P(a, b, true); }, acceptData: function(a) { if (a.nodeType && 1 !== a.nodeType && 9 !== a.nodeType) return false; var b = a.nodeName && u.noData[a.nodeName.toLowerCase()]; return !b || true !== b && a.getAttribute("classid") === b; } }); u.fn.extend({ data: function(a, c) { var d, e, f = null, g = 0, h = this[0]; if (a === b) { if (this.length) { f = u.data(h); if (1 === h.nodeType && !u._data(h, "parsedAttrs")) { d = h.attributes; for (;g < d.length; g++) { e = d[g].name; if (0 === e.indexOf("data-")) { e = u.camelCase(e.slice(5)); Q(h, e, f[e]); } } u._data(h, "parsedAttrs", true); } } return f; } if ("object" === typeof a) return this.each(function() { u.data(this, a); }); return arguments.length > 1 ? this.each(function() { u.data(this, a, c); }) : h ? Q(h, a, u.data(h, a)) : null; }, removeData: function(a) { return this.each(function() { u.removeData(this, a); }); } }); function Q(a, c, d) { if (d === b && 1 === a.nodeType) { var e = "data-" + c.replace(N, "-$1").toLowerCase(); d = a.getAttribute(e); if ("string" === typeof d) { try { d = "true" === d ? true : "false" === d ? false : "null" === d ? null : +d + "" === d ? +d : M.test(d) ? u.parseJSON(d) : d; } catch (f) {} u.data(a, c, d); } else d = b; } return d; } function R(a) { var b; for (b in a) { if ("data" === b && u.isEmptyObject(a[b])) continue; if ("toJSON" !== b) return false; } return true; } u.extend({ queue: function(a, b, c) { var d; if (a) { b = (b || "fx") + "queue"; d = u._data(a, b); if (c) if (!d || u.isArray(c)) d = u._data(a, b, u.makeArray(c)); else d.push(c); return d || []; } }, dequeue: function(a, b) { b = b || "fx"; var c = u.queue(a, b), d = c.length, e = c.shift(), f = u._queueHooks(a, b), g = function() { u.dequeue(a, b); }; if ("inprogress" === e) { e = c.shift(); d--; } if (e) { if ("fx" === b) c.unshift("inprogress"); delete f.stop; e.call(a, g, f); } if (!d && f) f.empty.fire(); }, _queueHooks: function(a, b) { var c = b + "queueHooks"; return u._data(a, c) || u._data(a, c, { empty: u.Callbacks("once memory").add(function() { u._removeData(a, b + "queue"); u._removeData(a, c); }) }); } }); u.fn.extend({ queue: function(a, c) { var d = 2; if ("string" !== typeof a) { c = a; a = "fx"; d--; } if (arguments.length < d) return u.queue(this[0], a); return c === b ? this : this.each(function() { var b = u.queue(this, a, c); u._queueHooks(this, a); if ("fx" === a && "inprogress" !== b[0]) u.dequeue(this, a); }); }, dequeue: function(a) { return this.each(function() { u.dequeue(this, a); }); }, delay: function(a, b) { a = u.fx ? u.fx.speeds[a] || a : a; b = b || "fx"; return this.queue(b, function(b, c) { var d = setTimeout(b, a); c.stop = function() { clearTimeout(d); }; }); }, clearQueue: function(a) { return this.queue(a || "fx", []); }, promise: function(a, c) { var d, e = 1, f = u.Deferred(), g = this, h = this.length, i = function() { if (!--e) f.resolveWith(g, [ g ]); }; if ("string" !== typeof a) { c = a; a = b; } a = a || "fx"; while (h--) { d = u._data(g[h], a + "queueHooks"); if (d && d.empty) { e++; d.empty.add(i); } } i(); return f.promise(c); } }); var S, T, U = /[\t\r\n\f]/g, V = /\r/g, W = /^(?:input|select|textarea|button|object)$/i, X = /^(?:a|area)$/i, Y = /^(?:checked|selected)$/i, Z = u.support.getSetAttribute, $ = u.support.input; u.fn.extend({ attr: function(a, b) { return u.access(this, u.attr, a, b, arguments.length > 1); }, removeAttr: function(a) { return this.each(function() { u.removeAttr(this, a); }); }, prop: function(a, b) { return u.access(this, u.prop, a, b, arguments.length > 1); }, removeProp: function(a) { a = u.propFix[a] || a; return this.each(function() { try { this[a] = b; delete this[a]; } catch (c) {} }); }, addClass: function(a) { var b, c, d, e, f, g = 0, h = this.length, i = "string" === typeof a && a; if (u.isFunction(a)) return this.each(function(b) { u(this).addClass(a.call(this, b, this.className)); }); if (i) { b = (a || "").match(w) || []; for (;g < h; g++) { c = this[g]; d = 1 === c.nodeType && (c.className ? (" " + c.className + " ").replace(U, " ") : " "); if (d) { f = 0; while (e = b[f++]) if (d.indexOf(" " + e + " ") < 0) d += e + " "; c.className = u.trim(d); } } } return this; }, removeClass: function(a) { var b, c, d, e, f, g = 0, h = this.length, i = 0 === arguments.length || "string" === typeof a && a; if (u.isFunction(a)) return this.each(function(b) { u(this).removeClass(a.call(this, b, this.className)); }); if (i) { b = (a || "").match(w) || []; for (;g < h; g++) { c = this[g]; d = 1 === c.nodeType && (c.className ? (" " + c.className + " ").replace(U, " ") : ""); if (d) { f = 0; while (e = b[f++]) while (d.indexOf(" " + e + " ") >= 0) d = d.replace(" " + e + " ", " "); c.className = a ? u.trim(d) : ""; } } } return this; }, toggleClass: function(a, b) { var c = typeof a; if ("boolean" === typeof b && "string" === c) return b ? this.addClass(a) : this.removeClass(a); if (u.isFunction(a)) return this.each(function(c) { u(this).toggleClass(a.call(this, c, this.className, b), b); }); return this.each(function() { if ("string" === c) { var b, d = 0, f = u(this), g = a.match(w) || []; while (b = g[d++]) if (f.hasClass(b)) f.removeClass(b); else f.addClass(b); } else if (c === e || "boolean" === c) { if (this.className) u._data(this, "__className__", this.className); this.className = this.className || false === a ? "" : u._data(this, "__className__") || ""; } }); }, hasClass: function(a) { var b = " " + a + " ", c = 0, d = this.length; for (;c < d; c++) if (1 === this[c].nodeType && (" " + this[c].className + " ").replace(U, " ").indexOf(b) >= 0) return true; return false; }, val: function(a) { var c, d, e, f = this[0]; if (!arguments.length) { if (f) { d = u.valHooks[f.type] || u.valHooks[f.nodeName.toLowerCase()]; if (d && "get" in d && (c = d.get(f, "value")) !== b) return c; c = f.value; return "string" === typeof c ? c.replace(V, "") : null == c ? "" : c; } return; } e = u.isFunction(a); return this.each(function(c) { var f; if (1 !== this.nodeType) return; if (e) f = a.call(this, c, u(this).val()); else f = a; if (null == f) f = ""; else if ("number" === typeof f) f += ""; else if (u.isArray(f)) f = u.map(f, function(a) { return null == a ? "" : a + ""; }); d = u.valHooks[this.type] || u.valHooks[this.nodeName.toLowerCase()]; if (!d || !("set" in d) || d.set(this, f, "value") === b) this.value = f; }); } }); u.extend({ valHooks: { option: { get: function(a) { var b = u.find.attr(a, "value"); return null != b ? b : a.text; } }, select: { get: function(a) { var b, c, d = a.options, e = a.selectedIndex, f = "select-one" === a.type || e < 0, g = f ? null : [], h = f ? e + 1 : d.length, i = e < 0 ? h : f ? e : 0; for (;i < h; i++) { c = d[i]; if ((c.selected || i === e) && (u.support.optDisabled ? !c.disabled : null === c.getAttribute("disabled")) && (!c.parentNode.disabled || !u.nodeName(c.parentNode, "optgroup"))) { b = u(c).val(); if (f) return b; g.push(b); } } return g; }, set: function(a, b) { var c, d, e = a.options, f = u.makeArray(b), g = e.length; while (g--) { d = e[g]; if (d.selected = u.inArray(u(d).val(), f) >= 0) c = true; } if (!c) a.selectedIndex = -1; return f; } } }, attr: function(a, c, d) { var f, g, h = a.nodeType; if (!a || 3 === h || 8 === h || 2 === h) return; if (typeof a.getAttribute === e) return u.prop(a, c, d); if (1 !== h || !u.isXMLDoc(a)) { c = c.toLowerCase(); f = u.attrHooks[c] || (u.expr.match.bool.test(c) ? T : S); } if (d !== b) if (null === d) u.removeAttr(a, c); else if (f && "set" in f && (g = f.set(a, d, c)) !== b) return g; else { a.setAttribute(c, d + ""); return d; } else if (f && "get" in f && null !== (g = f.get(a, c))) return g; else { g = u.find.attr(a, c); return null == g ? b : g; } }, removeAttr: function(a, b) { var c, d, e = 0, f = b && b.match(w); if (f && 1 === a.nodeType) while (c = f[e++]) { d = u.propFix[c] || c; if (u.expr.match.bool.test(c)) if ($ && Z || !Y.test(c)) a[d] = false; else a[u.camelCase("default-" + c)] = a[d] = false; else u.attr(a, c, ""); a.removeAttribute(Z ? c : d); } }, attrHooks: { type: { set: function(a, b) { if (!u.support.radioValue && "radio" === b && u.nodeName(a, "input")) { var c = a.value; a.setAttribute("type", b); if (c) a.value = c; return b; } } } }, propFix: { "for": "htmlFor", "class": "className" }, prop: function(a, c, d) { var e, f, g, h = a.nodeType; if (!a || 3 === h || 8 === h || 2 === h) return; g = 1 !== h || !u.isXMLDoc(a); if (g) { c = u.propFix[c] || c; f = u.propHooks[c]; } if (d !== b) return f && "set" in f && (e = f.set(a, d, c)) !== b ? e : a[c] = d; else return f && "get" in f && null !== (e = f.get(a, c)) ? e : a[c]; }, propHooks: { tabIndex: { get: function(a) { var b = u.find.attr(a, "tabindex"); return b ? parseInt(b, 10) : W.test(a.nodeName) || X.test(a.nodeName) && a.href ? 0 : -1; } } } }); T = { set: function(a, b, c) { if (false === b) u.removeAttr(a, c); else if ($ && Z || !Y.test(c)) a.setAttribute(!Z && u.propFix[c] || c, c); else a[u.camelCase("default-" + c)] = a[c] = true; return c; } }; u.each(u.expr.match.bool.source.match(/\w+/g), function(a, c) { var d = u.expr.attrHandle[c] || u.find.attr; u.expr.attrHandle[c] = $ && Z || !Y.test(c) ? function(a, c, e) { var f = u.expr.attrHandle[c], g = e ? b : (u.expr.attrHandle[c] = b) != d(a, c, e) ? c.toLowerCase() : null; u.expr.attrHandle[c] = f; return g; } : function(a, c, d) { return d ? b : a[u.camelCase("default-" + c)] ? c.toLowerCase() : null; }; }); if (!$ || !Z) u.attrHooks.value = { set: function(a, b, c) { if (u.nodeName(a, "input")) a.defaultValue = b; else return S && S.set(a, b, c); } }; if (!Z) { S = { set: function(a, c, d) { var e = a.getAttributeNode(d); if (!e) a.setAttributeNode(e = a.ownerDocument.createAttribute(d)); e.value = c += ""; return "value" === d || c === a.getAttribute(d) ? c : b; } }; u.expr.attrHandle.id = u.expr.attrHandle.name = u.expr.attrHandle.coords = function(a, c, d) { var e; return d ? b : (e = a.getAttributeNode(c)) && "" !== e.value ? e.value : null; }; u.valHooks.button = { get: function(a, c) { var d = a.getAttributeNode(c); return d && d.specified ? d.value : b; }, set: S.set }; u.attrHooks.contenteditable = { set: function(a, b, c) { S.set(a, "" === b ? false : b, c); } }; u.each([ "width", "height" ], function(a, b) { u.attrHooks[b] = { set: function(a, c) { if ("" === c) { a.setAttribute(b, "auto"); return c; } } }; }); } if (!u.support.hrefNormalized) u.each([ "href", "src" ], function(a, b) { u.propHooks[b] = { get: function(a) { return a.getAttribute(b, 4); } }; }); if (!u.support.style) u.attrHooks.style = { get: function(a) { return a.style.cssText || b; }, set: function(a, b) { return a.style.cssText = b + ""; } }; if (!u.support.optSelected) u.propHooks.selected = { get: function(a) { var b = a.parentNode; if (b) { b.selectedIndex; if (b.parentNode) b.parentNode.selectedIndex; } return null; } }; u.each([ "tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable" ], function() { u.propFix[this.toLowerCase()] = this; }); if (!u.support.enctype) u.propFix.enctype = "encoding"; u.each([ "radio", "checkbox" ], function() { u.valHooks[this] = { set: function(a, b) { if (u.isArray(b)) return a.checked = u.inArray(u(a).val(), b) >= 0; } }; if (!u.support.checkOn) u.valHooks[this].get = function(a) { return null === a.getAttribute("value") ? "on" : a.value; }; }); var _ = /^(?:input|select|textarea)$/i, ab = /^key/, bb = /^(?:mouse|contextmenu)|click/, cb = /^(?:focusinfocus|focusoutblur)$/, db = /^([^.]*)(?:\.(.+)|)$/; function eb() { return true; } function fb() { return false; } function gb() { try { return g.activeElement; } catch (a) {} } u.event = { global: {}, add: function(a, c, d, f, g) { var h, i, j, k, l, m, n, o, p, q, r, s = u._data(a); if (!s) return; if (d.handler) { k = d; d = k.handler; g = k.selector; } if (!d.guid) d.guid = u.guid++; if (!(i = s.events)) i = s.events = {}; if (!(m = s.handle)) { m = s.handle = function(a) { return typeof u !== e && (!a || u.event.triggered !== a.type) ? u.event.dispatch.apply(m.elem, arguments) : b; }; m.elem = a; } c = (c || "").match(w) || [ "" ]; j = c.length; while (j--) { h = db.exec(c[j]) || []; p = r = h[1]; q = (h[2] || "").split(".").sort(); if (!p) continue; l = u.event.special[p] || {}; p = (g ? l.delegateType : l.bindType) || p; l = u.event.special[p] || {}; n = u.extend({ type: p, origType: r, data: f, handler: d, guid: d.guid, selector: g, needsContext: g && u.expr.match.needsContext.test(g), namespace: q.join(".") }, k); if (!(o = i[p])) { o = i[p] = []; o.delegateCount = 0; if (!l.setup || false === l.setup.call(a, f, q, m)) if (a.addEventListener) a.addEventListener(p, m, false); else if (a.attachEvent) a.attachEvent("on" + p, m); } if (l.add) { l.add.call(a, n); if (!n.handler.guid) n.handler.guid = d.guid; } if (g) o.splice(o.delegateCount++, 0, n); else o.push(n); u.event.global[p] = true; } a = null; }, remove: function(a, b, c, d, e) { var f, g, h, i, j, k, l, m, n, o, p, q = u.hasData(a) && u._data(a); if (!q || !(k = q.events)) return; b = (b || "").match(w) || [ "" ]; j = b.length; while (j--) { h = db.exec(b[j]) || []; n = p = h[1]; o = (h[2] || "").split(".").sort(); if (!n) { for (n in k) u.event.remove(a, n + b[j], c, d, true); continue; } l = u.event.special[n] || {}; n = (d ? l.delegateType : l.bindType) || n; m = k[n] || []; h = h[2] && new RegExp("(^|\\.)" + o.join("\\.(?:.*\\.|)") + "(\\.|$)"); i = f = m.length; while (f--) { g = m[f]; if ((e || p === g.origType) && (!c || c.guid === g.guid) && (!h || h.test(g.namespace)) && (!d || d === g.selector || "**" === d && g.selector)) { m.splice(f, 1); if (g.selector) m.delegateCount--; if (l.remove) l.remove.call(a, g); } } if (i && !m.length) { if (!l.teardown || false === l.teardown.call(a, o, q.handle)) u.removeEvent(a, n, q.handle); delete k[n]; } } if (u.isEmptyObject(k)) { delete q.handle; u._removeData(a, "events"); } }, trigger: function(c, d, e, f) { var h, i, j, k, l, m, n, o = [ e || g ], p = s.call(c, "type") ? c.type : c, q = s.call(c, "namespace") ? c.namespace.split(".") : []; j = m = e = e || g; if (3 === e.nodeType || 8 === e.nodeType) return; if (cb.test(p + u.event.triggered)) return; if (p.indexOf(".") >= 0) { q = p.split("."); p = q.shift(); q.sort(); } i = p.indexOf(":") < 0 && "on" + p; c = c[u.expando] ? c : new u.Event(p, "object" === typeof c && c); c.isTrigger = f ? 2 : 3; c.namespace = q.join("."); c.namespace_re = c.namespace ? new RegExp("(^|\\.)" + q.join("\\.(?:.*\\.|)") + "(\\.|$)") : null; c.result = b; if (!c.target) c.target = e; d = null == d ? [ c ] : u.makeArray(d, [ c ]); l = u.event.special[p] || {}; if (!f && l.trigger && false === l.trigger.apply(e, d)) return; if (!f && !l.noBubble && !u.isWindow(e)) { k = l.delegateType || p; if (!cb.test(k + p)) j = j.parentNode; for (;j; j = j.parentNode) { o.push(j); m = j; } if (m === (e.ownerDocument || g)) o.push(m.defaultView || m.parentWindow || a); } n = 0; while ((j = o[n++]) && !c.isPropagationStopped()) { c.type = n > 1 ? k : l.bindType || p; h = (u._data(j, "events") || {})[c.type] && u._data(j, "handle"); if (h) h.apply(j, d); h = i && j[i]; if (h && u.acceptData(j) && h.apply && false === h.apply(j, d)) c.preventDefault(); } c.type = p; if (!f && !c.isDefaultPrevented()) if ((!l._default || false === l._default.apply(o.pop(), d)) && u.acceptData(e)) if (i && e[p] && !u.isWindow(e)) { m = e[i]; if (m) e[i] = null; u.event.triggered = p; try { e[p](); } catch (r) {} u.event.triggered = b; if (m) e[i] = m; } return c.result; }, dispatch: function(a) { a = u.event.fix(a); var c, d, e, f, g, h = [], i = p.call(arguments), j = (u._data(this, "events") || {})[a.type] || [], k = u.event.special[a.type] || {}; i[0] = a; a.delegateTarget = this; if (k.preDispatch && false === k.preDispatch.call(this, a)) return; h = u.event.handlers.call(this, a, j); c = 0; while ((f = h[c++]) && !a.isPropagationStopped()) { a.currentTarget = f.elem; g = 0; while ((e = f.handlers[g++]) && !a.isImmediatePropagationStopped()) if (!a.namespace_re || a.namespace_re.test(e.namespace)) { a.handleObj = e; a.data = e.data; d = ((u.event.special[e.origType] || {}).handle || e.handler).apply(f.elem, i); if (d !== b) if (false === (a.result = d)) { a.preventDefault(); a.stopPropagation(); } } } if (k.postDispatch) k.postDispatch.call(this, a); return a.result; }, handlers: function(a, c) { var d, e, f, g, h = [], i = c.delegateCount, j = a.target; if (i && j.nodeType && (!a.button || "click" !== a.type)) for (;j != this; j = j.parentNode || this) if (1 === j.nodeType && (true !== j.disabled || "click" !== a.type)) { f = []; for (g = 0; g < i; g++) { e = c[g]; d = e.selector + " "; if (f[d] === b) f[d] = e.needsContext ? u(d, this).index(j) >= 0 : u.find(d, this, null, [ j ]).length; if (f[d]) f.push(e); } if (f.length) h.push({ elem: j, handlers: f }); } if (i < c.length) h.push({ elem: this, handlers: c.slice(i) }); return h; }, fix: function(a) { if (a[u.expando]) return a; var b, c, d, e = a.type, f = a, h = this.fixHooks[e]; if (!h) this.fixHooks[e] = h = bb.test(e) ? this.mouseHooks : ab.test(e) ? this.keyHooks : {}; d = h.props ? this.props.concat(h.props) : this.props; a = new u.Event(f); b = d.length; while (b--) { c = d[b]; a[c] = f[c]; } if (!a.target) a.target = f.srcElement || g; if (3 === a.target.nodeType) a.target = a.target.parentNode; a.metaKey = !!a.metaKey; return h.filter ? h.filter(a, f) : a; }, 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(a, b) { if (null == a.which) a.which = null != b.charCode ? b.charCode : b.keyCode; return a; } }, mouseHooks: { props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "), filter: function(a, c) { var d, e, f, h = c.button, i = c.fromElement; if (null == a.pageX && null != c.clientX) { e = a.target.ownerDocument || g; f = e.documentElement; d = e.body; a.pageX = c.clientX + (f && f.scrollLeft || d && d.scrollLeft || 0) - (f && f.clientLeft || d && d.clientLeft || 0); a.pageY = c.clientY + (f && f.scrollTop || d && d.scrollTop || 0) - (f && f.clientTop || d && d.clientTop || 0); } if (!a.relatedTarget && i) a.relatedTarget = i === a.target ? c.toElement : i; if (!a.which && h !== b) a.which = 1 & h ? 1 : 2 & h ? 3 : 4 & h ? 2 : 0; return a; } }, special: { load: { noBubble: true }, focus: { trigger: function() { if (this !== gb() && this.focus) try { this.focus(); return false; } catch (a) {} }, delegateType: "focusin" }, blur: { trigger: function() { if (this === gb() && this.blur) { this.blur(); return false; } }, delegateType: "focusout" }, click: { trigger: function() { if (u.nodeName(this, "input") && "checkbox" === this.type && this.click) { this.click(); return false; } }, _default: function(a) { return u.nodeName(a.target, "a"); } }, beforeunload: { postDispatch: function(a) { if (a.result !== b) a.originalEvent.returnValue = a.result; } } }, simulate: function(a, b, c, d) { var e = u.extend(new u.Event(), c, { type: a, isSimulated: true, originalEvent: {} }); if (d) u.event.trigger(e, null, b); else u.event.dispatch.call(b, e); if (e.isDefaultPrevented()) c.preventDefault(); } }; u.removeEvent = g.removeEventListener ? function(a, b, c) { if (a.removeEventListener) a.removeEventListener(b, c, false); } : function(a, b, c) { var d = "on" + b; if (a.detachEvent) { if (typeof a[d] === e) a[d] = null; a.detachEvent(d, c); } }; u.Event = function(a, b) { if (!(this instanceof u.Event)) return new u.Event(a, b); if (a && a.type) { this.originalEvent = a; this.type = a.type; this.isDefaultPrevented = a.defaultPrevented || false === a.returnValue || a.getPreventDefault && a.getPreventDefault() ? eb : fb; } else this.type = a; if (b) u.extend(this, b); this.timeStamp = a && a.timeStamp || u.now(); this[u.expando] = true; }; u.Event.prototype = { isDefaultPrevented: fb, isPropagationStopped: fb, isImmediatePropagationStopped: fb, preventDefault: function() { var a = this.originalEvent; this.isDefaultPrevented = eb; if (!a) return; if (a.preventDefault) a.preventDefault(); else a.returnValue = false; }, stopPropagation: function() { var a = this.originalEvent; this.isPropagationStopped = eb; if (!a) return; if (a.stopPropagation) a.stopPropagation(); a.cancelBubble = true; }, stopImmediatePropagation: function() { this.isImmediatePropagationStopped = eb; this.stopPropagation(); } }; u.each({ mouseenter: "mouseover", mouseleave: "mouseout" }, function(a, b) { u.event.special[a] = { delegateType: b, bindType: b, handle: function(a) { var c, d = this, e = a.relatedTarget, f = a.handleObj; if (!e || e !== d && !u.contains(d, e)) { a.type = f.origType; c = f.handler.apply(this, arguments); a.type = b; } return c; } }; }); if (!u.support.submitBubbles) u.event.special.submit = { setup: function() { if (u.nodeName(this, "form")) return false; u.event.add(this, "click._submit keypress._submit", function(a) { var c = a.target, d = u.nodeName(c, "input") || u.nodeName(c, "button") ? c.form : b; if (d && !u._data(d, "submitBubbles")) { u.event.add(d, "submit._submit", function(a) { a._submit_bubble = true; }); u._data(d, "submitBubbles", true); } }); }, postDispatch: function(a) { if (a._submit_bubble) { delete a._submit_bubble; if (this.parentNode && !a.isTrigger) u.event.simulate("submit", this.parentNode, a, true); } }, teardown: function() { if (u.nodeName(this, "form")) return false; u.event.remove(this, "._submit"); } }; if (!u.support.changeBubbles) u.event.special.change = { setup: function() { if (_.test(this.nodeName)) { if ("checkbox" === this.type || "radio" === this.type) { u.event.add(this, "propertychange._change", function(a) { if ("checked" === a.originalEvent.propertyName) this._just_changed = true; }); u.event.add(this, "click._change", function(a) { if (this._just_changed && !a.isTrigger) this._just_changed = false; u.event.simulate("change", this, a, true); }); } return false; } u.event.add(this, "beforeactivate._change", function(a) { var b = a.target; if (_.test(b.nodeName) && !u._data(b, "changeBubbles")) { u.event.add(b, "change._change", function(a) { if (this.parentNode && !a.isSimulated && !a.isTrigger) u.event.simulate("change", this.parentNode, a, true); }); u._data(b, "changeBubbles", true); } }); }, handle: function(a) { var b = a.target; if (this !== b || a.isSimulated || a.isTrigger || "radio" !== b.type && "checkbox" !== b.type) return a.handleObj.handler.apply(this, arguments); }, teardown: function() { u.event.remove(this, "._change"); return !_.test(this.nodeName); } }; if (!u.support.focusinBubbles) u.each({ focus: "focusin", blur: "focusout" }, function(a, b) { var c = 0, d = function(a) { u.event.simulate(b, a.target, u.event.fix(a), true); }; u.event.special[b] = { setup: function() { if (0 === c++) g.addEventListener(a, d, true); }, teardown: function() { if (0 === --c) g.removeEventListener(a, d, true); } }; }); u.fn.extend({ on: function(a, c, d, e, f) { var g, h; if ("object" === typeof a) { if ("string" !== typeof c) { d = d || c; c = b; } for (g in a) this.on(g, c, d, a[g], f); return this; } if (null == d && null == e) { e = c; d = c = b; } else if (null == e) if ("string" === typeof c) { e = d; d = b; } else { e = d; d = c; c = b; } if (false === e) e = fb; else if (!e) return this; if (1 === f) { h = e; e = function(a) { u().off(a); return h.apply(this, arguments); }; e.guid = h.guid || (h.guid = u.guid++); } return this.each(function() { u.event.add(this, a, e, d, c); }); }, one: function(a, b, c, d) { return this.on(a, b, c, d, 1); }, off: function(a, c, d) { var e, f; if (a && a.preventDefault && a.handleObj) { e = a.handleObj; u(a.delegateTarget).off(e.namespace ? e.origType + "." + e.namespace : e.origType, e.selector, e.handler); return this; } if ("object" === typeof a) { for (f in a) this.off(f, c, a[f]); return this; } if (false === c || "function" === typeof c) { d = c; c = b; } if (false === d) d = fb; return this.each(function() { u.event.remove(this, a, d, c); }); }, trigger: function(a, b) { return this.each(function() { u.event.trigger(a, b, this); }); }, triggerHandler: function(a, b) { var c = this[0]; if (c) return u.event.trigger(a, b, c, true); } }); var hb = /^.[^:#\[\.,]*$/, ib = /^(?:parents|prev(?:Until|All))/, jb = u.expr.match.needsContext, kb = { children: true, contents: true, next: true, prev: true }; u.fn.extend({ find: function(a) { var b, c = [], d = this, e = d.length; if ("string" !== typeof a) return this.pushStack(u(a).filter(function() { for (b = 0; b < e; b++) if (u.contains(d[b], this)) return true; })); for (b = 0; b < e; b++) u.find(a, d[b], c); c = this.pushStack(e > 1 ? u.unique(c) : c); c.selector = this.selector ? this.selector + " " + a : a; return c; }, has: function(a) { var b, c = u(a, this), d = c.length; return this.filter(function() { for (b = 0; b < d; b++) if (u.contains(this, c[b])) return true; }); }, not: function(a) { return this.pushStack(mb(this, a || [], true)); }, filter: function(a) { return this.pushStack(mb(this, a || [], false)); }, is: function(a) { return !!mb(this, "string" === typeof a && jb.test(a) ? u(a) : a || [], false).length; }, closest: function(a, b) { var c, d = 0, e = this.length, f = [], g = jb.test(a) || "string" !== typeof a ? u(a, b || this.context) : 0; for (;d < e; d++) for (c = this[d]; c && c !== b; c = c.parentNode) if (c.nodeType < 11 && (g ? g.index(c) > -1 : 1 === c.nodeType && u.find.matchesSelector(c, a))) { c = f.push(c); break; } return this.pushStack(f.length > 1 ? u.unique(f) : f); }, index: function(a) { if (!a) return this[0] && this[0].parentNode ? this.first().prevAll().length : -1; if ("string" === typeof a) return u.inArray(this[0], u(a)); return u.inArray(a.jquery ? a[0] : a, this); }, add: function(a, b) { var c = "string" === typeof a ? u(a, b) : u.makeArray(a && a.nodeType ? [ a ] : a), d = u.merge(this.get(), c); return this.pushStack(u.unique(d)); }, addBack: function(a) { return this.add(null == a ? this.prevObject : this.prevObject.filter(a)); } }); function lb(a, b) { do a = a[b]; while (a && 1 !== a.nodeType); return a; } u.each({ parent: function(a) { var b = a.parentNode; return b && 11 !== b.nodeType ? b : null; }, parents: function(a) { return u.dir(a, "parentNode"); }, parentsUntil: function(a, b, c) { return u.dir(a, "parentNode", c); }, next: function(a) { return lb(a, "nextSibling"); }, prev: function(a) { return lb(a, "previousSibling"); }, nextAll: function(a) { return u.dir(a, "nextSibling"); }, prevAll: function(a) { return u.dir(a, "previousSibling"); }, nextUntil: function(a, b, c) { return u.dir(a, "nextSibling", c); }, prevUntil: function(a, b, c) { return u.dir(a, "previousSibling", c); }, siblings: function(a) { return u.sibling((a.parentNode || {}).firstChild, a); }, children: function(a) { return u.sibling(a.firstChild); }, contents: function(a) { return u.nodeName(a, "iframe") ? a.contentDocument || a.contentWindow.document : u.merge([], a.childNodes); } }, function(a, b) { u.fn[a] = function(c, d) { var e = u.map(this, b, c); if ("Until" !== a.slice(-5)) d = c; if (d && "string" === typeof d) e = u.filter(d, e); if (this.length > 1) { if (!kb[a]) e = u.unique(e); if (ib.test(a)) e = e.reverse(); } return this.pushStack(e); }; }); u.extend({ filter: function(a, b, c) { var d = b[0]; if (c) a = ":not(" + a + ")"; return 1 === b.length && 1 === d.nodeType ? u.find.matchesSelector(d, a) ? [ d ] : [] : u.find.matches(a, u.grep(b, function(a) { return 1 === a.nodeType; })); }, dir: function(a, c, d) { var e = [], f = a[c]; while (f && 9 !== f.nodeType && (d === b || 1 !== f.nodeType || !u(f).is(d))) { if (1 === f.nodeType) e.push(f); f = f[c]; } return e; }, sibling: function(a, b) { var c = []; for (;a; a = a.nextSibling) if (1 === a.nodeType && a !== b) c.push(a); return c; } }); function mb(a, b, c) { if (u.isFunction(b)) return u.grep(a, function(a, d) { return !!b.call(a, d, a) !== c; }); if (b.nodeType) return u.grep(a, function(a) { return a === b !== c; }); if ("string" === typeof b) { if (hb.test(b)) return u.filter(b, a, c); b = u.filter(b, a); } return u.grep(a, function(a) { return u.inArray(a, b) >= 0 !== c; }); } function nb(a) { var b = ob.split("|"), c = a.createDocumentFragment(); if (c.createElement) while (b.length) c.createElement(b.pop()); return c; } var ob = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" + "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", pb = / jQuery\d+="(?:null|\d+)"/g, qb = new RegExp("<(?:" + ob + ")[\\s/>]", "i"), rb = /^\s+/, sb = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, tb = /<([\w:]+)/, ub = /\s*$/g, Cb = { option: [ 1, "" ], legend: [ 1, "
", "
" ], area: [ 1, "", "" ], param: [ 1, "", "" ], thead: [ 1, "", "
" ], tr: [ 2, "", "
" ], col: [ 2, "", "
" ], td: [ 3, "", "
" ], _default: u.support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X
", "
" ] }, Db = nb(g), Eb = Db.appendChild(g.createElement("div")); Cb.optgroup = Cb.option; Cb.tbody = Cb.tfoot = Cb.colgroup = Cb.caption = Cb.thead; Cb.th = Cb.td; u.fn.extend({ text: function(a) { return u.access(this, function(a) { return a === b ? u.text(this) : this.empty().append((this[0] && this[0].ownerDocument || g).createTextNode(a)); }, null, a, arguments.length); }, append: function() { return this.domManip(arguments, function(a) { if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) { var b = Fb(this, a); b.appendChild(a); } }); }, prepend: function() { return this.domManip(arguments, function(a) { if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) { var b = Fb(this, a); b.insertBefore(a, b.firstChild); } }); }, before: function() { return this.domManip(arguments, function(a) { if (this.parentNode) this.parentNode.insertBefore(a, this); }); }, after: function() { return this.domManip(arguments, function(a) { if (this.parentNode) this.parentNode.insertBefore(a, this.nextSibling); }); }, remove: function(a, b) { var c, d = a ? u.filter(a, this) : this, e = 0; for (;null != (c = d[e]); e++) { if (!b && 1 === c.nodeType) u.cleanData(Lb(c)); if (c.parentNode) { if (b && u.contains(c.ownerDocument, c)) Ib(Lb(c, "script")); c.parentNode.removeChild(c); } } return this; }, empty: function() { var a, b = 0; for (;null != (a = this[b]); b++) { if (1 === a.nodeType) u.cleanData(Lb(a, false)); while (a.firstChild) a.removeChild(a.firstChild); if (a.options && u.nodeName(a, "select")) a.options.length = 0; } return this; }, clone: function(a, b) { a = null == a ? false : a; b = null == b ? a : b; return this.map(function() { return u.clone(this, a, b); }); }, html: function(a) { return u.access(this, function(a) { var c = this[0] || {}, d = 0, e = this.length; if (a === b) return 1 === c.nodeType ? c.innerHTML.replace(pb, "") : b; if ("string" === typeof a && !wb.test(a) && (u.support.htmlSerialize || !qb.test(a)) && (u.support.leadingWhitespace || !rb.test(a)) && !Cb[(tb.exec(a) || [ "", "" ])[1].toLowerCase()]) { a = a.replace(sb, "<$1>"); try { for (;d < e; d++) { c = this[d] || {}; if (1 === c.nodeType) { u.cleanData(Lb(c, false)); c.innerHTML = a; } } c = 0; } catch (f) {} } if (c) this.empty().append(a); }, null, a, arguments.length); }, replaceWith: function() { var a = u.map(this, function(a) { return [ a.nextSibling, a.parentNode ]; }), b = 0; this.domManip(arguments, function(c) { var d = a[b++], e = a[b++]; if (e) { if (d && d.parentNode !== e) d = this.nextSibling; u(this).remove(); e.insertBefore(c, d); } }, true); return b ? this : this.remove(); }, detach: function(a) { return this.remove(a, true); }, domManip: function(a, b, c) { a = n.apply([], a); var d, e, f, g, h, i, j = 0, k = this.length, l = this, m = k - 1, o = a[0], p = u.isFunction(o); if (p || !(k <= 1 || "string" !== typeof o || u.support.checkClone || !yb.test(o))) return this.each(function(d) { var e = l.eq(d); if (p) a[0] = o.call(this, d, e.html()); e.domManip(a, b, c); }); if (k) { i = u.buildFragment(a, this[0].ownerDocument, false, !c && this); d = i.firstChild; if (1 === i.childNodes.length) i = d; if (d) { g = u.map(Lb(i, "script"), Gb); f = g.length; for (;j < k; j++) { e = i; if (j !== m) { e = u.clone(e, true, true); if (f) u.merge(g, Lb(e, "script")); } b.call(this[j], e, j); } if (f) { h = g[g.length - 1].ownerDocument; u.map(g, Hb); for (j = 0; j < f; j++) { e = g[j]; if (zb.test(e.type || "") && !u._data(e, "globalEval") && u.contains(h, e)) if (e.src) u._evalUrl(e.src); else u.globalEval((e.text || e.textContent || e.innerHTML || "").replace(Bb, "")); } } i = d = null; } } return this; } }); function Fb(a, b) { return u.nodeName(a, "table") && u.nodeName(1 === b.nodeType ? b : b.firstChild, "tr") ? a.getElementsByTagName("tbody")[0] || a.appendChild(a.ownerDocument.createElement("tbody")) : a; } function Gb(a) { a.type = (null !== u.find.attr(a, "type")) + "/" + a.type; return a; } function Hb(a) { var b = Ab.exec(a.type); if (b) a.type = b[1]; else a.removeAttribute("type"); return a; } function Ib(a, b) { var c, d = 0; for (;null != (c = a[d]); d++) u._data(c, "globalEval", !b || u._data(b[d], "globalEval")); } function Jb(a, b) { if (1 !== b.nodeType || !u.hasData(a)) return; var c, d, e, f = u._data(a), g = u._data(b, f), h = f.events; if (h) { delete g.handle; g.events = {}; for (c in h) for (d = 0, e = h[c].length; d < e; d++) u.event.add(b, c, h[c][d]); } if (g.data) g.data = u.extend({}, g.data); } function Kb(a, b) { var c, d, e; if (1 !== b.nodeType) return; c = b.nodeName.toLowerCase(); if (!u.support.noCloneEvent && b[u.expando]) { e = u._data(b); for (d in e.events) u.removeEvent(b, d, e.handle); b.removeAttribute(u.expando); } if ("script" === c && b.text !== a.text) { Gb(b).text = a.text; Hb(b); } else if ("object" === c) { if (b.parentNode) b.outerHTML = a.outerHTML; if (u.support.html5Clone && a.innerHTML && !u.trim(b.innerHTML)) b.innerHTML = a.innerHTML; } else if ("input" === c && xb.test(a.type)) { b.defaultChecked = b.checked = a.checked; if (b.value !== a.value) b.value = a.value; } else if ("option" === c) b.defaultSelected = b.selected = a.defaultSelected; else if ("input" === c || "textarea" === c) b.defaultValue = a.defaultValue; } u.each({ appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, function(a, b) { u.fn[a] = function(a) { var c, d = 0, e = [], f = u(a), g = f.length - 1; for (;d <= g; d++) { c = d === g ? this : this.clone(true); u(f[d])[b](c); o.apply(e, c.get()); } return this.pushStack(e); }; }); function Lb(a, c) { var d, f, g = 0, h = typeof a.getElementsByTagName !== e ? a.getElementsByTagName(c || "*") : typeof a.querySelectorAll !== e ? a.querySelectorAll(c || "*") : b; if (!h) for (h = [], d = a.childNodes || a; null != (f = d[g]); g++) if (!c || u.nodeName(f, c)) h.push(f); else u.merge(h, Lb(f, c)); return c === b || c && u.nodeName(a, c) ? u.merge([ a ], h) : h; } function Mb(a) { if (xb.test(a.type)) a.defaultChecked = a.checked; } u.extend({ clone: function(a, b, c) { var d, e, f, g, h, i = u.contains(a.ownerDocument, a); if (u.support.html5Clone || u.isXMLDoc(a) || !qb.test("<" + a.nodeName + ">")) f = a.cloneNode(true); else { Eb.innerHTML = a.outerHTML; Eb.removeChild(f = Eb.firstChild); } if ((!u.support.noCloneEvent || !u.support.noCloneChecked) && (1 === a.nodeType || 11 === a.nodeType) && !u.isXMLDoc(a)) { d = Lb(f); h = Lb(a); for (g = 0; null != (e = h[g]); ++g) if (d[g]) Kb(e, d[g]); } if (b) if (c) { h = h || Lb(a); d = d || Lb(f); for (g = 0; null != (e = h[g]); g++) Jb(e, d[g]); } else Jb(a, f); d = Lb(f, "script"); if (d.length > 0) Ib(d, !i && Lb(a, "script")); d = h = e = null; return f; }, buildFragment: function(a, b, c, d) { var e, f, g, h, i, j, k, l = a.length, m = nb(b), n = [], o = 0; for (;o < l; o++) { f = a[o]; if (f || 0 === f) if ("object" === u.type(f)) u.merge(n, f.nodeType ? [ f ] : f); else if (!vb.test(f)) n.push(b.createTextNode(f)); else { h = h || m.appendChild(b.createElement("div")); i = (tb.exec(f) || [ "", "" ])[1].toLowerCase(); k = Cb[i] || Cb._default; h.innerHTML = k[1] + f.replace(sb, "<$1>") + k[2]; e = k[0]; while (e--) h = h.lastChild; if (!u.support.leadingWhitespace && rb.test(f)) n.push(b.createTextNode(rb.exec(f)[0])); if (!u.support.tbody) { f = "table" === i && !ub.test(f) ? h.firstChild : "" === k[1] && !ub.test(f) ? h : 0; e = f && f.childNodes.length; while (e--) if (u.nodeName(j = f.childNodes[e], "tbody") && !j.childNodes.length) f.removeChild(j); } u.merge(n, h.childNodes); h.textContent = ""; while (h.firstChild) h.removeChild(h.firstChild); h = m.lastChild; } } if (h) m.removeChild(h); if (!u.support.appendChecked) u.grep(Lb(n, "input"), Mb); o = 0; while (f = n[o++]) { if (d && u.inArray(f, d) !== -1) continue; g = u.contains(f.ownerDocument, f); h = Lb(m.appendChild(f), "script"); if (g) Ib(h); if (c) { e = 0; while (f = h[e++]) if (zb.test(f.type || "")) c.push(f); } } h = null; return m; }, cleanData: function(a, b) { var c, d, f, g, h = 0, i = u.expando, j = u.cache, k = u.support.deleteExpando, m = u.event.special; for (;null != (c = a[h]); h++) if (b || u.acceptData(c)) { f = c[i]; g = f && j[f]; if (g) { if (g.events) for (d in g.events) if (m[d]) u.event.remove(c, d); else u.removeEvent(c, d, g.handle); if (j[f]) { delete j[f]; if (k) delete c[i]; else if (typeof c.removeAttribute !== e) c.removeAttribute(i); else c[i] = null; l.push(f); } } } }, _evalUrl: function(a) { return u.ajax({ url: a, type: "GET", dataType: "script", async: false, global: false, "throws": true }); } }); u.fn.extend({ wrapAll: function(a) { if (u.isFunction(a)) return this.each(function(b) { u(this).wrapAll(a.call(this, b)); }); if (this[0]) { var b = u(a, this[0].ownerDocument).eq(0).clone(true); if (this[0].parentNode) b.insertBefore(this[0]); b.map(function() { var a = this; while (a.firstChild && 1 === a.firstChild.nodeType) a = a.firstChild; return a; }).append(this); } return this; }, wrapInner: function(a) { if (u.isFunction(a)) return this.each(function(b) { u(this).wrapInner(a.call(this, b)); }); return this.each(function() { var b = u(this), c = b.contents(); if (c.length) c.wrapAll(a); else b.append(a); }); }, wrap: function(a) { var b = u.isFunction(a); return this.each(function(c) { u(this).wrapAll(b ? a.call(this, c) : a); }); }, unwrap: function() { return this.parent().each(function() { if (!u.nodeName(this, "body")) u(this).replaceWith(this.childNodes); }).end(); } }); var Nb, Ob, Pb, Qb = /alpha\([^)]*\)/i, Rb = /opacity\s*=\s*([^)]*)/, Sb = /^(top|right|bottom|left)$/, Tb = /^(none|table(?!-c[ea]).+)/, Ub = /^margin/, Vb = new RegExp("^(" + v + ")(.*)$", "i"), Wb = new RegExp("^(" + v + ")(?!px)[a-z%]+$", "i"), Xb = new RegExp("^([+-])=(" + v + ")", "i"), Yb = { BODY: "block" }, Zb = { position: "absolute", visibility: "hidden", display: "block" }, $b = { letterSpacing: 0, fontWeight: 400 }, _b = [ "Top", "Right", "Bottom", "Left" ], ac = [ "Webkit", "O", "Moz", "ms" ]; function bc(a, b) { if (b in a) return b; var c = b.charAt(0).toUpperCase() + b.slice(1), d = b, e = ac.length; while (e--) { b = ac[e] + c; if (b in a) return b; } return d; } function cc(a, b) { a = b || a; return "none" === u.css(a, "display") || !u.contains(a.ownerDocument, a); } function dc(a, b) { var c, d, e, f = [], g = 0, h = a.length; for (;g < h; g++) { d = a[g]; if (!d.style) continue; f[g] = u._data(d, "olddisplay"); c = d.style.display; if (b) { if (!f[g] && "none" === c) d.style.display = ""; if ("" === d.style.display && cc(d)) f[g] = u._data(d, "olddisplay", hc(d.nodeName)); } else if (!f[g]) { e = cc(d); if (c && "none" !== c || !e) u._data(d, "olddisplay", e ? c : u.css(d, "display")); } } for (g = 0; g < h; g++) { d = a[g]; if (!d.style) continue; if (!b || "none" === d.style.display || "" === d.style.display) d.style.display = b ? f[g] || "" : "none"; } return a; } u.fn.extend({ css: function(a, c) { return u.access(this, function(a, c, d) { var e, f, g = {}, h = 0; if (u.isArray(c)) { f = Ob(a); e = c.length; for (;h < e; h++) g[c[h]] = u.css(a, c[h], false, f); return g; } return d !== b ? u.style(a, c, d) : u.css(a, c); }, a, c, arguments.length > 1); }, show: function() { return dc(this, true); }, hide: function() { return dc(this); }, toggle: function(a) { if ("boolean" === typeof a) return a ? this.show() : this.hide(); return this.each(function() { if (cc(this)) u(this).show(); else u(this).hide(); }); } }); u.extend({ cssHooks: { opacity: { get: function(a, b) { if (b) { var c = Pb(a, "opacity"); return "" === c ? "1" : c; } } } }, cssNumber: { columnCount: true, fillOpacity: true, fontWeight: true, lineHeight: true, opacity: true, order: true, orphans: true, widows: true, zIndex: true, zoom: true }, cssProps: { "float": u.support.cssFloat ? "cssFloat" : "styleFloat" }, style: function(a, c, d, e) { if (!a || 3 === a.nodeType || 8 === a.nodeType || !a.style) return; var f, g, h, i = u.camelCase(c), j = a.style; c = u.cssProps[i] || (u.cssProps[i] = bc(j, i)); h = u.cssHooks[c] || u.cssHooks[i]; if (d !== b) { g = typeof d; if ("string" === g && (f = Xb.exec(d))) { d = (f[1] + 1) * f[2] + parseFloat(u.css(a, c)); g = "number"; } if (null == d || "number" === g && isNaN(d)) return; if ("number" === g && !u.cssNumber[i]) d += "px"; if (!u.support.clearCloneStyle && "" === d && 0 === c.indexOf("background")) j[c] = "inherit"; if (!h || !("set" in h) || (d = h.set(a, d, e)) !== b) try { j[c] = d; } catch (k) {} } else { if (h && "get" in h && (f = h.get(a, false, e)) !== b) return f; return j[c]; } }, css: function(a, c, d, e) { var f, g, h, i = u.camelCase(c); c = u.cssProps[i] || (u.cssProps[i] = bc(a.style, i)); h = u.cssHooks[c] || u.cssHooks[i]; if (h && "get" in h) g = h.get(a, true, d); if (g === b) g = Pb(a, c, e); if ("normal" === g && c in $b) g = $b[c]; if ("" === d || d) { f = parseFloat(g); return true === d || u.isNumeric(f) ? f || 0 : g; } return g; } }); if (a.getComputedStyle) { Ob = function(b) { return a.getComputedStyle(b, null); }; Pb = function(a, c, d) { var e, f, g, h = d || Ob(a), i = h ? h.getPropertyValue(c) || h[c] : b, j = a.style; if (h) { if ("" === i && !u.contains(a.ownerDocument, a)) i = u.style(a, c); if (Wb.test(i) && Ub.test(c)) { e = j.width; f = j.minWidth; g = j.maxWidth; j.minWidth = j.maxWidth = j.width = i; i = h.width; j.width = e; j.minWidth = f; j.maxWidth = g; } } return i; }; } else if (g.documentElement.currentStyle) { Ob = function(a) { return a.currentStyle; }; Pb = function(a, c, d) { var e, f, g, h = d || Ob(a), i = h ? h[c] : b, j = a.style; if (null == i && j && j[c]) i = j[c]; if (Wb.test(i) && !Sb.test(c)) { e = j.left; f = a.runtimeStyle; g = f && f.left; if (g) f.left = a.currentStyle.left; j.left = "fontSize" === c ? "1em" : i; i = j.pixelLeft + "px"; j.left = e; if (g) f.left = g; } return "" === i ? "auto" : i; }; } function ec(a, b, c) { var d = Vb.exec(b); return d ? Math.max(0, d[1] - (c || 0)) + (d[2] || "px") : b; } function fc(a, b, c, d, e) { var f = c === (d ? "border" : "content") ? 4 : "width" === b ? 1 : 0, g = 0; for (;f < 4; f += 2) { if ("margin" === c) g += u.css(a, c + _b[f], true, e); if (d) { if ("content" === c) g -= u.css(a, "padding" + _b[f], true, e); if ("margin" !== c) g -= u.css(a, "border" + _b[f] + "Width", true, e); } else { g += u.css(a, "padding" + _b[f], true, e); if ("padding" !== c) g += u.css(a, "border" + _b[f] + "Width", true, e); } } return g; } function gc(a, b, c) { var d = true, e = "width" === b ? a.offsetWidth : a.offsetHeight, f = Ob(a), g = u.support.boxSizing && "border-box" === u.css(a, "boxSizing", false, f); if (e <= 0 || null == e) { e = Pb(a, b, f); if (e < 0 || null == e) e = a.style[b]; if (Wb.test(e)) return e; d = g && (u.support.boxSizingReliable || e === a.style[b]); e = parseFloat(e) || 0; } return e + fc(a, b, c || (g ? "border" : "content"), d, f) + "px"; } function hc(a) { var b = g, c = Yb[a]; if (!c) { c = ic(a, b); if ("none" === c || !c) { Nb = (Nb || u("", error: '

The requested content cannot be loaded.
Please try again later.

', closeBtn: '', next: '', prev: '' }, openEffect: "fade", openSpeed: 250, openEasing: "swing", openOpacity: true, openMethod: "zoomIn", closeEffect: "fade", closeSpeed: 250, closeEasing: "swing", closeOpacity: true, closeMethod: "zoomOut", nextEffect: "elastic", nextSpeed: 250, nextEasing: "swing", nextMethod: "changeIn", prevEffect: "elastic", prevSpeed: 250, prevEasing: "swing", prevMethod: "changeOut", helpers: { overlay: true, title: true }, onCancel: c.noop, beforeLoad: c.noop, afterLoad: c.noop, beforeShow: c.noop, afterShow: c.noop, beforeChange: c.noop, beforeClose: c.noop, afterClose: c.noop }, group: {}, opts: {}, previous: null, coming: null, current: null, isActive: false, isOpen: false, isOpened: false, wrap: null, skin: null, outer: null, inner: null, player: { timer: null, isActive: false }, ajaxLoad: null, imgPreload: null, transitions: {}, helpers: {}, open: function(a, b) { if (!a) return; if (!c.isPlainObject(b)) b = {}; if (false === h.close(true)) return; if (!c.isArray(a)) a = l(a) ? c(a).get() : [ a ]; c.each(a, function(e, f) { var g = {}, i, j, k, n, o, p, q; if ("object" === c.type(f)) { if (f.nodeType) f = c(f); if (l(f)) { g = { href: f.data("fancybox-href") || f.attr("href"), title: f.data("fancybox-title") || f.attr("title"), isDom: true, element: f }; if (c.metadata) c.extend(true, g, f.metadata()); } else g = f; } i = b.href || g.href || (m(f) ? f : null); j = b.title !== d ? b.title : g.title || ""; k = b.content || g.content; n = k ? "html" : b.type || g.type; if (!n && g.isDom) { n = f.data("fancybox-type"); if (!n) { o = f.prop("class").match(/fancybox\.(\w+)/); n = o ? o[1] : null; } } if (m(i)) { if (!n) if (h.isImage(i)) n = "image"; else if (h.isSWF(i)) n = "swf"; else if ("#" === i.charAt(0)) n = "inline"; else if (m(f)) { n = "html"; k = f; } if ("ajax" === n) { p = i.split(/\s+/, 2); i = p.shift(); q = p.shift(); } } if (!k) if ("inline" === n) { if (i) k = c(m(i) ? i.replace(/.*(?=#[^\s]+$)/, "") : i); else if (g.isDom) k = f; } else if ("html" === n) k = i; else if (!n && !i && g.isDom) { n = "inline"; k = f; } c.extend(g, { href: i, type: n, content: k, title: j, selector: q }); a[e] = g; }); h.opts = c.extend(true, {}, h.defaults, b); if (b.keys !== d) h.opts.keys = b.keys ? c.extend({}, h.defaults.keys, b.keys) : false; h.group = a; return h._start(h.opts.index); }, cancel: function() { var a = h.coming; if (!a || false === h.trigger("onCancel")) return; h.hideLoading(); if (h.ajaxLoad) h.ajaxLoad.abort(); h.ajaxLoad = null; if (h.imgPreload) h.imgPreload.onload = h.imgPreload.onerror = null; if (a.wrap) a.wrap.stop(true, true).trigger("onReset").remove(); h.coming = null; if (!h.current) h._afterZoomOut(a); }, close: function(a) { h.cancel(); if (false === h.trigger("beforeClose")) return; h.unbindEvents(); if (!h.isActive) return; if (!h.isOpen || true === a) { c(".fancybox-wrap").stop(true).trigger("onReset").remove(); h._afterZoomOut(); } else { h.isOpen = h.isOpened = false; h.isClosing = true; c(".fancybox-item, .fancybox-nav").remove(); h.wrap.stop(true, true).removeClass("fancybox-opened"); h.transitions[h.current.closeMethod](); } }, play: function(a) { var b = function() { clearTimeout(h.player.timer); }, c = function() { b(); if (h.current && h.player.isActive) h.player.timer = setTimeout(h.next, h.current.playSpeed); }, d = function() { b(); g.unbind(".player"); h.player.isActive = false; h.trigger("onPlayEnd"); }, e = function() { if (h.current && (h.current.loop || h.current.index < h.group.length - 1)) { h.player.isActive = true; g.bind({ "onCancel.player beforeClose.player": d, "onUpdate.player": c, "beforeLoad.player": b }); c(); h.trigger("onPlayStart"); } }; if (true === a || !h.player.isActive && false !== a) e(); else d(); }, next: function(a) { var b = h.current; if (b) { if (!m(a)) a = b.direction.next; h.jumpto(b.index + 1, a, "next"); } }, prev: function(a) { var b = h.current; if (b) { if (!m(a)) a = b.direction.prev; h.jumpto(b.index - 1, a, "prev"); } }, jumpto: function(a, b, c) { var e = h.current; if (!e) return; a = p(a); h.direction = b || e.direction[a >= e.index ? "next" : "prev"]; h.router = c || "jumpto"; if (e.loop) { if (a < 0) a = e.group.length + a % e.group.length; a %= e.group.length; } if (e.group[a] !== d) { h.cancel(); h._start(a); } }, reposition: function(a, b) { var d = h.current, e = d ? d.wrap : null, f; if (e) { f = h._getPosition(b); if (a && "scroll" === a.type) { delete f.position; e.stop(true, true).animate(f, 200); } else { e.css(f); d.pos = c.extend({}, d.dim, f); } } }, update: function(a) { var b = a && a.type, c = !b || "orientationchange" === b; if (c) { clearTimeout(j); j = null; } if (!h.isOpen || j) return; j = setTimeout(function() { var d = h.current; if (!d || h.isClosing) return; h.wrap.removeClass("fancybox-tmp"); if (c || "load" === b || "resize" === b && d.autoResize) h._setDimension(); if (!("scroll" === b && d.canShrink)) h.reposition(a); h.trigger("onUpdate"); j = null; }, c && !k ? 0 : 300); }, toggle: function(a) { if (h.isOpen) { h.current.fitToView = "boolean" === c.type(a) ? a : !h.current.fitToView; if (k) { h.wrap.removeAttr("style").addClass("fancybox-tmp"); h.trigger("onUpdate"); } h.update(); } }, hideLoading: function() { g.unbind(".loading"); c("#fancybox-loading").remove(); }, showLoading: function() { var a, b; h.hideLoading(); a = c('
').click(h.cancel).appendTo("body"); g.bind("keydown.loading", function(a) { if (27 === (a.which || a.keyCode)) { a.preventDefault(); h.cancel(); } }); if (!h.defaults.fixed) { b = h.getViewport(); a.css({ position: "absolute", top: .5 * b.h + b.y, left: .5 * b.w + b.x }); } }, getViewport: function() { var b = h.current && h.current.locked || false, c = { x: f.scrollLeft(), y: f.scrollTop() }; if (b) { c.w = b[0].clientWidth; c.h = b[0].clientHeight; } else { c.w = k && a.innerWidth ? a.innerWidth : f.width(); c.h = k && a.innerHeight ? a.innerHeight : f.height(); } return c; }, unbindEvents: function() { if (h.wrap && l(h.wrap)) h.wrap.unbind(".fb"); g.unbind(".fb"); f.unbind(".fb"); }, bindEvents: function() { var a = h.current, b; if (!a) return; f.bind("orientationchange.fb" + (k ? "" : " resize.fb") + (a.autoCenter && !a.locked ? " scroll.fb" : ""), h.update); b = a.keys; if (b) g.bind("keydown.fb", function(e) { var f = e.which || e.keyCode, g = e.target || e.srcElement; if (27 === f && h.coming) return false; if (!e.ctrlKey && !e.altKey && !e.shiftKey && !e.metaKey && !(g && (g.type || c(g).is("[contenteditable]")))) c.each(b, function(b, g) { if (a.group.length > 1 && g[f] !== d) { h[b](g[f]); e.preventDefault(); return false; } if (c.inArray(f, g) > -1) { h[b](); e.preventDefault(); return false; } }); }); if (c.fn.mousewheel && a.mouseWheel) h.wrap.bind("mousewheel.fb", function(b, d, e, f) { var g = b.target || null, i = c(g), j = false; while (i.length) { if (j || i.is(".fancybox-skin") || i.is(".fancybox-wrap")) break; j = o(i[0]); i = c(i).parent(); } if (0 !== d && !j) if (h.group.length > 1 && !a.canShrink) { if (f > 0 || e > 0) h.prev(f > 0 ? "down" : "left"); else if (f < 0 || e < 0) h.next(f < 0 ? "up" : "right"); b.preventDefault(); } }); }, trigger: function(a, b) { var d, e = b || h.coming || h.current; if (!e) return; if (c.isFunction(e[a])) d = e[a].apply(e, Array.prototype.slice.call(arguments, 1)); if (false === d) return false; if (e.helpers) c.each(e.helpers, function(b, d) { if (d && h.helpers[b] && c.isFunction(h.helpers[b][a])) h.helpers[b][a](c.extend(true, {}, h.helpers[b].defaults, d), e); }); g.trigger(a); }, isImage: function(a) { return m(a) && a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i); }, isSWF: function(a) { return m(a) && a.match(/\.(swf)((\?|#).*)?$/i); }, _start: function(a) { var b = {}, d, e, f, g, i; a = p(a); d = h.group[a] || null; if (!d) return false; b = c.extend(true, {}, h.opts, d); g = b.margin; i = b.padding; if ("number" === c.type(g)) b.margin = [ g, g, g, g ]; if ("number" === c.type(i)) b.padding = [ i, i, i, i ]; if (b.modal) c.extend(true, b, { closeBtn: false, closeClick: false, nextClick: false, arrows: false, mouseWheel: false, keys: null, helpers: { overlay: { closeClick: false } } }); if (b.autoSize) b.autoWidth = b.autoHeight = true; if ("auto" === b.width) b.autoWidth = true; if ("auto" === b.height) b.autoHeight = true; b.group = h.group; b.index = a; h.coming = b; if (false === h.trigger("beforeLoad")) { h.coming = null; return; } f = b.type; e = b.href; if (!f) { h.coming = null; if (h.current && h.router && "jumpto" !== h.router) { h.current.index = a; return h[h.router](h.direction); } return false; } h.isActive = true; if ("image" === f || "swf" === f) { b.autoHeight = b.autoWidth = false; b.scrolling = "visible"; } if ("image" === f) b.aspectRatio = true; if ("iframe" === f && k) b.scrolling = "scroll"; b.wrap = c(b.tpl.wrap).addClass("fancybox-" + (k ? "mobile" : "desktop") + " fancybox-type-" + f + " fancybox-tmp " + b.wrapCSS).appendTo(b.parent || "body"); c.extend(b, { skin: c(".fancybox-skin", b.wrap), outer: c(".fancybox-outer", b.wrap), inner: c(".fancybox-inner", b.wrap) }); c.each([ "Top", "Right", "Bottom", "Left" ], function(a, c) { b.skin.css("padding" + c, q(b.padding[a])); }); h.trigger("onReady"); if ("inline" === f || "html" === f) { if (!b.content || !b.content.length) return h._error("content"); } else if (!e) return h._error("href"); if ("image" === f) h._loadImage(); else if ("ajax" === f) h._loadAjax(); else if ("iframe" === f) h._loadIframe(); else h._afterLoad(); }, _error: function(a) { c.extend(h.coming, { type: "html", autoWidth: true, autoHeight: true, minWidth: 0, minHeight: 0, scrolling: "no", hasError: a, content: h.coming.tpl.error }); h._afterLoad(); }, _loadImage: function() { var a = h.imgPreload = new Image(); a.onload = function() { this.onload = this.onerror = null; h.coming.width = this.width / h.opts.pixelRatio; h.coming.height = this.height / h.opts.pixelRatio; h._afterLoad(); }; a.onerror = function() { this.onload = this.onerror = null; h._error("image"); }; a.src = h.coming.href; if (true !== a.complete) h.showLoading(); }, _loadAjax: function() { var a = h.coming; h.showLoading(); h.ajaxLoad = c.ajax(c.extend({}, a.ajax, { url: a.href, error: function(a, b) { if (h.coming && "abort" !== b) h._error("ajax", a); else h.hideLoading(); }, success: function(b, c) { if ("success" === c) { a.content = b; h._afterLoad(); } } })); }, _loadIframe: function() { var a = h.coming, b = c(a.tpl.iframe.replace(/\{rnd\}/g, new Date().getTime())).attr("scrolling", k ? "auto" : a.iframe.scrolling).attr("src", a.href); c(a.wrap).bind("onReset", function() { try { c(this).find("iframe").hide().attr("src", "//about:blank").end().empty(); } catch (a) {} }); if (a.iframe.preload) { h.showLoading(); b.one("load", function() { c(this).data("ready", 1); if (!k) c(this).bind("load.fb", h.update); c(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(); h._afterLoad(); }); } a.content = b.appendTo(a.inner); if (!a.iframe.preload) h._afterLoad(); }, _preloadImages: function() { var a = h.group, b = h.current, c = a.length, d = b.preload ? Math.min(b.preload, c - 1) : 0, e, f; for (f = 1; f <= d; f += 1) { e = a[(b.index + f) % c]; if ("image" === e.type && e.href) new Image().src = e.href; } }, _afterLoad: function() { var a = h.coming, b = h.current, d = "fancybox-placeholder", e, f, g, i, j, k; h.hideLoading(); if (!a || false === h.isActive) return; if (false === h.trigger("afterLoad", a, b)) { a.wrap.stop(true).trigger("onReset").remove(); h.coming = null; return; } if (b) { h.trigger("beforeChange", b); b.wrap.stop(true).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove(); } h.unbindEvents(); e = a; f = a.content; g = a.type; i = a.scrolling; c.extend(h, { wrap: e.wrap, skin: e.skin, outer: e.outer, inner: e.inner, current: e, previous: b }); j = e.href; switch (g) { case "inline": case "ajax": case "html": if (e.selector) f = c("
").html(f).find(e.selector); else if (l(f)) { if (!f.data(d)) f.data(d, c('
').insertAfter(f).hide()); f = f.show().detach(); e.wrap.bind("onReset", function() { if (c(this).find(f).length) f.hide().replaceAll(f.data(d)).data(d, false); }); } break; case "image": f = e.tpl.image.replace("{href}", j); break; case "swf": f = ''; k = ""; c.each(e.swf, function(a, b) { f += ''; k += " " + a + '="' + b + '"'; }); f += '"; } if (!(l(f) && f.parent().is(e.inner))) e.inner.append(f); h.trigger("beforeShow"); e.inner.css("overflow", "yes" === i ? "scroll" : "no" === i ? "hidden" : i); h._setDimension(); h.reposition(); h.isOpen = false; h.coming = null; h.bindEvents(); if (!h.isOpened) c(".fancybox-wrap").not(e.wrap).stop(true).trigger("onReset").remove(); else if (b.prevMethod) h.transitions[b.prevMethod](); h.transitions[h.isOpened ? e.nextMethod : e.openMethod](); h._preloadImages(); }, _setDimension: function() { var a = h.getViewport(), b = 0, d = false, e = false, f = h.wrap, g = h.skin, i = h.inner, j = h.current, k = j.width, l = j.height, m = j.minWidth, o = j.minHeight, r = j.maxWidth, s = j.maxHeight, t = j.scrolling, u = j.scrollOutside ? j.scrollbarWidth : 0, v = j.margin, w = p(v[1] + v[3]), x = p(v[0] + v[2]), y, z, A, B, C, D, E, F, G, H, I, J, K, L, M; f.add(g).add(i).width("auto").height("auto").removeClass("fancybox-tmp"); y = p(g.outerWidth(true) - g.width()); z = p(g.outerHeight(true) - g.height()); A = w + y; B = x + z; C = n(k) ? (a.w - A) * p(k) / 100 : k; D = n(l) ? (a.h - B) * p(l) / 100 : l; if ("iframe" === j.type) { L = j.content; if (j.autoHeight && 1 === L.data("ready")) try { if (L[0].contentWindow.document.location) { i.width(C).height(9999); M = L.contents().find("body"); if (u) M.css("overflow-x", "hidden"); D = M.outerHeight(true); } } catch (N) {} } else if (j.autoWidth || j.autoHeight) { i.addClass("fancybox-tmp"); if (!j.autoWidth) i.width(C); if (!j.autoHeight) i.height(D); if (j.autoWidth) C = i.width(); if (j.autoHeight) D = i.height(); i.removeClass("fancybox-tmp"); } k = p(C); l = p(D); G = C / D; m = p(n(m) ? p(m, "w") - A : m); r = p(n(r) ? p(r, "w") - A : r); o = p(n(o) ? p(o, "h") - B : o); s = p(n(s) ? p(s, "h") - B : s); E = r; F = s; if (j.fitToView) { r = Math.min(a.w - A, r); s = Math.min(a.h - B, s); } J = a.w - w; K = a.h - x; if (j.aspectRatio) { if (k > r) { k = r; l = p(k / G); } if (l > s) { l = s; k = p(l * G); } if (k < m) { k = m; l = p(k / G); } if (l < o) { l = o; k = p(l * G); } } else { k = Math.max(m, Math.min(k, r)); if (j.autoHeight && "iframe" !== j.type) { i.width(k); l = i.height(); } l = Math.max(o, Math.min(l, s)); } if (j.fitToView) { i.width(k).height(l); f.width(k + y); H = f.width(); I = f.height(); if (j.aspectRatio) while ((H > J || I > K) && k > m && l > o) { if (b++ > 19) break; l = Math.max(o, Math.min(s, l - 10)); k = p(l * G); if (k < m) { k = m; l = p(k / G); } if (k > r) { k = r; l = p(k / G); } i.width(k).height(l); f.width(k + y); H = f.width(); I = f.height(); } else { k = Math.max(m, Math.min(k, k - (H - J))); l = Math.max(o, Math.min(l, l - (I - K))); } } if (u && "auto" === t && l < D && k + y + u < J) k += u; i.width(k).height(l); f.width(k + y); H = f.width(); I = f.height(); d = (H > J || I > K) && k > m && l > o; e = j.aspectRatio ? k < E && l < F && k < C && l < D : (k < E || l < F) && (k < C || l < D); c.extend(j, { dim: { width: q(H), height: q(I) }, origWidth: C, origHeight: D, canShrink: d, canExpand: e, wPadding: y, hPadding: z, wrapSpace: I - g.outerHeight(true), skinSpace: g.height() - l }); if (!L && j.autoHeight && l > o && l < s && !e) i.height("auto"); }, _getPosition: function(a) { var b = h.current, c = h.getViewport(), d = b.margin, e = h.wrap.width() + d[1] + d[3], f = h.wrap.height() + d[0] + d[2], g = { position: "absolute", top: d[0], left: d[3] }; if (b.autoCenter && b.fixed && !a && f <= c.h && e <= c.w) g.position = "fixed"; else if (!b.locked) { g.top += c.y; g.left += c.x; } g.top = q(Math.max(g.top, g.top + (c.h - f) * b.topRatio)); g.left = q(Math.max(g.left, g.left + (c.w - e) * b.leftRatio)); return g; }, _afterZoomIn: function() { var a = h.current; if (!a) return; h.isOpen = h.isOpened = true; h.wrap.css("overflow", "visible").addClass("fancybox-opened"); h.update(); if (a.closeClick || a.nextClick && h.group.length > 1) h.inner.css("cursor", "pointer").bind("click.fb", function(b) { if (!c(b.target).is("a") && !c(b.target).parent().is("a")) { b.preventDefault(); h[a.closeClick ? "close" : "next"](); } }); if (a.closeBtn) c(a.tpl.closeBtn).appendTo(h.skin).bind("click.fb", function(a) { a.preventDefault(); h.close(); }); if (a.arrows && h.group.length > 1) { if (a.loop || a.index > 0) c(a.tpl.prev).appendTo(h.outer).bind("click.fb", h.prev); if (a.loop || a.index < h.group.length - 1) c(a.tpl.next).appendTo(h.outer).bind("click.fb", h.next); } h.trigger("afterShow"); if (!a.loop && a.index === a.group.length - 1) h.play(false); else if (h.opts.autoPlay && !h.player.isActive) { h.opts.autoPlay = false; h.play(); } }, _afterZoomOut: function(a) { a = a || h.current; c(".fancybox-wrap").trigger("onReset").remove(); c.extend(h, { group: {}, opts: {}, router: false, current: null, isActive: false, isOpened: false, isOpen: false, isClosing: false, wrap: null, skin: null, outer: null, inner: null }); h.trigger("afterClose", a); } }); h.transitions = { getOrigPosition: function() { var a = h.current, b = a.element, c = a.orig, d = {}, e = 50, f = 50, g = a.hPadding, i = a.wPadding, j = h.getViewport(); if (!c && a.isDom && b.is(":visible")) { c = b.find("img:first"); if (!c.length) c = b; } if (l(c)) { d = c.offset(); if (c.is("img")) { e = c.outerWidth(); f = c.outerHeight(); } } else { d.top = j.y + (j.h - f) * a.topRatio; d.left = j.x + (j.w - e) * a.leftRatio; } if ("fixed" === h.wrap.css("position") || a.locked) { d.top -= j.y; d.left -= j.x; } d = { top: q(d.top - g * a.topRatio), left: q(d.left - i * a.leftRatio), width: q(e + i), height: q(f + g) }; return d; }, step: function(a, b) { var c, d, e, f = b.prop, g = h.current, i = g.wrapSpace, j = g.skinSpace; if ("width" === f || "height" === f) { c = b.end === b.start ? 1 : (a - b.start) / (b.end - b.start); if (h.isClosing) c = 1 - c; d = "width" === f ? g.wPadding : g.hPadding; e = a - d; h.skin[f](p("width" === f ? e : e - i * c)); h.inner[f](p("width" === f ? e : e - i * c - j * c)); } }, zoomIn: function() { var a = h.current, b = a.pos, d = a.openEffect, e = "elastic" === d, f = c.extend({ opacity: 1 }, b); delete f.position; if (e) { b = this.getOrigPosition(); if (a.openOpacity) b.opacity = .1; } else if ("fade" === d) b.opacity = .1; h.wrap.css(b).animate(f, { duration: "none" === d ? 0 : a.openSpeed, easing: a.openEasing, step: e ? this.step : null, complete: h._afterZoomIn }); }, zoomOut: function() { var a = h.current, b = a.closeEffect, c = "elastic" === b, d = { opacity: .1 }; if (c) { d = this.getOrigPosition(); if (a.closeOpacity) d.opacity = .1; } h.wrap.animate(d, { duration: "none" === b ? 0 : a.closeSpeed, easing: a.closeEasing, step: c ? this.step : null, complete: h._afterZoomOut }); }, changeIn: function() { var a = h.current, b = a.nextEffect, c = a.pos, d = { opacity: 1 }, e = h.direction, f = 200, g; c.opacity = .1; if ("elastic" === b) { g = "down" === e || "up" === e ? "top" : "left"; if ("down" === e || "right" === e) { c[g] = q(p(c[g]) - f); d[g] = "+=" + f + "px"; } else { c[g] = q(p(c[g]) + f); d[g] = "-=" + f + "px"; } } if ("none" === b) h._afterZoomIn(); else h.wrap.css(c).animate(d, { duration: a.nextSpeed, easing: a.nextEasing, complete: h._afterZoomIn }); }, changeOut: function() { var a = h.previous, b = a.prevEffect, d = { opacity: .1 }, e = h.direction, f = 200; if ("elastic" === b) d["down" === e || "up" === e ? "top" : "left"] = ("up" === e || "left" === e ? "-" : "+") + "=" + f + "px"; a.wrap.animate(d, { duration: "none" === b ? 0 : a.prevSpeed, easing: a.prevEasing, complete: function() { c(this).trigger("onReset").remove(); } }); } }; h.helpers.overlay = { defaults: { closeClick: true, speedOut: 200, showEarly: true, css: {}, locked: !k, fixed: true }, overlay: null, fixed: false, el: c("html"), create: function(a) { a = c.extend({}, this.defaults, a); if (this.overlay) this.close(); this.overlay = c('
').appendTo(h.coming ? h.coming.parent : a.parent); this.fixed = false; if (a.fixed && h.defaults.fixed) { this.overlay.addClass("fancybox-overlay-fixed"); this.fixed = true; } }, open: function(a) { var b = this; a = c.extend({}, this.defaults, a); if (this.overlay) this.overlay.unbind(".overlay").width("auto").height("auto"); else this.create(a); if (!this.fixed) { f.bind("resize.overlay", c.proxy(this.update, this)); this.update(); } if (a.closeClick) this.overlay.bind("click.overlay", function(a) { if (c(a.target).hasClass("fancybox-overlay")) { if (h.isActive) h.close(); else b.close(); return false; } }); this.overlay.css(a.css).show(); }, close: function() { var a, b; f.unbind("resize.overlay"); if (this.el.hasClass("fancybox-lock")) { c(".fancybox-margin").removeClass("fancybox-margin"); a = f.scrollTop(); b = f.scrollLeft(); this.el.removeClass("fancybox-lock"); f.scrollTop(a).scrollLeft(b); } c(".fancybox-overlay").remove().hide(); c.extend(this, { overlay: null, fixed: false }); }, update: function() { var a = "100%", c; this.overlay.width(a).height("100%"); if (i) { c = Math.max(b.documentElement.offsetWidth, b.body.offsetWidth); if (g.width() > c) a = g.width(); } else if (g.width() > f.width()) a = g.width(); this.overlay.width(a).height(g.height()); }, onReady: function(a, b) { var d = this.overlay; c(".fancybox-overlay").stop(true, true); if (!d) this.create(a); if (a.locked && this.fixed && b.fixed) { if (!d) this.margin = g.height() > f.height() ? c("html").css("margin-right").replace("px", "") : false; b.locked = this.overlay.append(b.wrap); b.fixed = false; } if (true === a.showEarly) this.beforeShow.apply(this, arguments); }, beforeShow: function(a, b) { var d, e; if (b.locked) { if (false !== this.margin) { c("*").filter(function() { return "fixed" === c(this).css("position") && !c(this).hasClass("fancybox-overlay") && !c(this).hasClass("fancybox-wrap"); }).addClass("fancybox-margin"); this.el.addClass("fancybox-margin"); } d = f.scrollTop(); e = f.scrollLeft(); this.el.addClass("fancybox-lock"); f.scrollTop(d).scrollLeft(e); } this.open(a); }, onUpdate: function() { if (!this.fixed) this.update(); }, afterClose: function(a) { if (this.overlay && !h.coming) this.overlay.fadeOut(a.speedOut, c.proxy(this.close, this)); } }; h.helpers.title = { defaults: { type: "float", position: "bottom" }, beforeShow: function(a) { var b = h.current, d = b.title, e = a.type, f, g; if (c.isFunction(d)) d = d.call(b.element, b); if (!m(d) || "" === c.trim(d)) return; f = c('
' + d + "
"); switch (e) { case "inside": g = h.skin; break; case "outside": g = h.wrap; break; case "over": g = h.inner; break; default: g = h.skin; f.appendTo("body"); if (i) f.width(f.width()); f.wrapInner(''); h.current.margin[2] += Math.abs(p(f.css("margin-bottom"))); } f["top" === a.position ? "prependTo" : "appendTo"](g); } }; c.fn.fancybox = function(a) { var b, d = c(this), e = this.selector || "", f = function(f) { var g = c(this).blur(), i = b, j, k; if (!(f.ctrlKey || f.altKey || f.shiftKey || f.metaKey) && !g.is(".fancybox-wrap")) { j = a.groupAttr || "data-fancybox-group"; k = g.attr(j); if (!k) { j = "rel"; k = g.get(0)[j]; } if (k && "" !== k && "nofollow" !== k) { g = e.length ? c(e) : d; g = g.filter("[" + j + '="' + k + '"]'); i = g.index(this); } a.index = i; if (false !== h.open(g, a)) f.preventDefault(); } }; a = a || {}; b = a.index || 0; if (!e || false === a.live) d.unbind("click.fb-start").bind("click.fb-start", f); else g.undelegate(e, "click.fb-start").delegate(e + ":not('.fancybox-item, .fancybox-nav')", "click.fb-start", f); this.filter("[data-fancybox-start=1]").trigger("click"); return this; }; g.ready(function() { var b, f; if (c.scrollbarWidth === d) c.scrollbarWidth = function() { var a = c('
').appendTo("body"), b = a.children(), d = b.innerWidth() - b.height(99).innerWidth(); a.remove(); return d; }; if (c.support.fixedPosition === d) c.support.fixedPosition = function() { var a = c('
').appendTo("body"), b = 20 === a[0].offsetTop || 15 === a[0].offsetTop; a.remove(); return b; }(); c.extend(h.defaults, { scrollbarWidth: c.scrollbarWidth(), fixed: c.support.fixedPosition, parent: c("body") }); b = c(a).width(); e.addClass("fancybox-lock-test"); f = c(a).width(); e.removeClass("fancybox-lock-test"); c("").appendTo("head"); }); }(window, document, jQuery); (function() { var a = [].indexOf || function(a) { for (var b = 0, c = this.length; b < c; b++) if (b in this && this[b] === a) return b; return -1; }, b = [].slice; !function(a, b) { if ("function" === typeof define && define.amd) return define("waypoints", [ "jquery" ], function(c) { return b(c, a); }); else return b(a.jQuery, a); }(window, function(c, d) { var e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t; e = c(d); l = a.call(d, "ontouchstart") >= 0; h = { horizontal: {}, vertical: {} }; i = 1; k = {}; j = "waypoints-context-id"; o = "resize.waypoints"; p = "scroll.waypoints"; q = 1; r = "waypoints-waypoint-ids"; s = "waypoint"; t = "waypoints"; f = function() { function a(a) { var b = this; this.$element = a; this.element = a[0]; this.didResize = false; this.didScroll = false; this.id = "context" + i++; this.oldScroll = { x: a.scrollLeft(), y: a.scrollTop() }; this.waypoints = { horizontal: {}, vertical: {} }; this.element[j] = this.id; k[this.id] = this; a.bind(p, function() { var a; if (!(b.didScroll || l)) { b.didScroll = true; a = function() { b.doScroll(); return b.didScroll = false; }; return d.setTimeout(a, c[t].settings.scrollThrottle); } }); a.bind(o, function() { var a; if (!b.didResize) { b.didResize = true; a = function() { c[t]("refresh"); return b.didResize = false; }; return d.setTimeout(a, c[t].settings.resizeThrottle); } }); } a.prototype.doScroll = function() { var a, b = this; a = { horizontal: { newScroll: this.$element.scrollLeft(), oldScroll: this.oldScroll.x, forward: "right", backward: "left" }, vertical: { newScroll: this.$element.scrollTop(), oldScroll: this.oldScroll.y, forward: "down", backward: "up" } }; if (l && (!a.vertical.oldScroll || !a.vertical.newScroll)) c[t]("refresh"); c.each(a, function(a, d) { var e, f, g; g = []; f = d.newScroll > d.oldScroll; e = f ? d.forward : d.backward; c.each(b.waypoints[a], function(a, b) { var c, e; if (d.oldScroll < (c = b.offset) && c <= d.newScroll) return g.push(b); else if (d.newScroll < (e = b.offset) && e <= d.oldScroll) return g.push(b); }); g.sort(function(a, b) { return a.offset - b.offset; }); if (!f) g.reverse(); return c.each(g, function(a, b) { if (b.options.continuous || a === g.length - 1) return b.trigger([ e ]); }); }); return this.oldScroll = { x: a.horizontal.newScroll, y: a.vertical.newScroll }; }; a.prototype.refresh = function() { var a, b, d, e = this; d = c.isWindow(this.element); b = this.$element.offset(); this.doScroll(); a = { horizontal: { contextOffset: d ? 0 : b.left, contextScroll: d ? 0 : this.oldScroll.x, contextDimension: this.$element.width(), oldScroll: this.oldScroll.x, forward: "right", backward: "left", offsetProp: "left" }, vertical: { contextOffset: d ? 0 : b.top, contextScroll: d ? 0 : this.oldScroll.y, contextDimension: d ? c[t]("viewportHeight") : this.$element.height(), oldScroll: this.oldScroll.y, forward: "down", backward: "up", offsetProp: "top" } }; return c.each(a, function(a, b) { return c.each(e.waypoints[a], function(a, d) { var e, f, g, h, i; e = d.options.offset; g = d.offset; f = c.isWindow(d.element) ? 0 : d.$element.offset()[b.offsetProp]; if (c.isFunction(e)) e = e.apply(d.element); else if ("string" === typeof e) { e = parseFloat(e); if (d.options.offset.indexOf("%") > -1) e = Math.ceil(b.contextDimension * e / 100); } d.offset = f - b.contextOffset + b.contextScroll - e; if (d.options.onlyOnScroll && null != g || !d.enabled) return; if (null !== g && g < (h = b.oldScroll) && h <= d.offset) return d.trigger([ b.backward ]); else if (null !== g && g > (i = b.oldScroll) && i >= d.offset) return d.trigger([ b.forward ]); else if (null === g && b.oldScroll >= d.offset) return d.trigger([ b.forward ]); }); }); }; a.prototype.checkEmpty = function() { if (c.isEmptyObject(this.waypoints.horizontal) && c.isEmptyObject(this.waypoints.vertical)) { this.$element.unbind([ o, p ].join(" ")); return delete k[this.id]; } }; return a; }(); g = function() { function a(a, b, d) { var e, f; if ("bottom-in-view" === d.offset) d.offset = function() { var a; a = c[t]("viewportHeight"); if (!c.isWindow(b.element)) a = b.$element.height(); return a - c(this).outerHeight(); }; this.$element = a; this.element = a[0]; this.axis = d.horizontal ? "horizontal" : "vertical"; this.callback = d.handler; this.context = b; this.enabled = d.enabled; this.id = "waypoints" + q++; this.offset = null; this.options = d; b.waypoints[this.axis][this.id] = this; h[this.axis][this.id] = this; e = null != (f = this.element[r]) ? f : []; e.push(this.id); this.element[r] = e; } a.prototype.trigger = function(a) { if (!this.enabled) return; if (null != this.callback) this.callback.apply(this.element, a); if (this.options.triggerOnce) return this.destroy(); }; a.prototype.disable = function() { return this.enabled = false; }; a.prototype.enable = function() { this.context.refresh(); return this.enabled = true; }; a.prototype.destroy = function() { delete h[this.axis][this.id]; delete this.context.waypoints[this.axis][this.id]; return this.context.checkEmpty(); }; a.getWaypointsByElement = function(a) { var b, d; d = a[r]; if (!d) return []; b = c.extend({}, h.horizontal, h.vertical); return c.map(d, function(a) { return b[a]; }); }; return a; }(); n = { init: function(a, b) { var d; b = c.extend({}, c.fn[s].defaults, b); if (null == (d = b.handler)) b.handler = a; this.each(function() { var a, d, e, h; a = c(this); e = null != (h = b.context) ? h : c.fn[s].defaults.context; if (!c.isWindow(e)) e = a.closest(e); e = c(e); d = k[e[0][j]]; if (!d) d = new f(e); return new g(a, d, b); }); c[t]("refresh"); return this; }, disable: function() { return n._invoke.call(this, "disable"); }, enable: function() { return n._invoke.call(this, "enable"); }, destroy: function() { return n._invoke.call(this, "destroy"); }, prev: function(a, b) { return n._traverse.call(this, a, b, function(a, b, c) { if (b > 0) return a.push(c[b - 1]); }); }, next: function(a, b) { return n._traverse.call(this, a, b, function(a, b, c) { if (b < c.length - 1) return a.push(c[b + 1]); }); }, _traverse: function(a, b, e) { var f, g; if (null == a) a = "vertical"; if (null == b) b = d; g = m.aggregate(b); f = []; this.each(function() { var b; b = c.inArray(this, g[a]); return e(f, b, g[a]); }); return this.pushStack(f); }, _invoke: function(a) { this.each(function() { var b; b = g.getWaypointsByElement(this); return c.each(b, function(b, c) { c[a](); return true; }); }); return this; } }; c.fn[s] = function() { var a, d; d = arguments[0], a = 2 <= arguments.length ? b.call(arguments, 1) : []; if (n[d]) return n[d].apply(this, a); else if (c.isFunction(d)) return n.init.apply(this, arguments); else if (c.isPlainObject(d)) return n.init.apply(this, [ null, d ]); else if (!d) return c.error("jQuery Waypoints needs a callback function or handler option."); else return c.error("The " + d + " method does not exist in jQuery Waypoints."); }; c.fn[s].defaults = { context: d, continuous: true, enabled: true, horizontal: false, offset: 0, triggerOnce: false }; m = { refresh: function() { return c.each(k, function(a, b) { return b.refresh(); }); }, viewportHeight: function() { var a; return null != (a = d.innerHeight) ? a : e.height(); }, aggregate: function(a) { var b, d, e; b = h; if (a) b = null != (e = k[c(a)[0][j]]) ? e.waypoints : void 0; if (!b) return []; d = { horizontal: [], vertical: [] }; c.each(d, function(a, e) { c.each(b[a], function(a, b) { return e.push(b); }); e.sort(function(a, b) { return a.offset - b.offset; }); d[a] = c.map(e, function(a) { return a.element; }); return d[a] = c.unique(d[a]); }); return d; }, above: function(a) { if (null == a) a = d; return m._filter(a, "vertical", function(a, b) { return b.offset <= a.oldScroll.y; }); }, below: function(a) { if (null == a) a = d; return m._filter(a, "vertical", function(a, b) { return b.offset > a.oldScroll.y; }); }, left: function(a) { if (null == a) a = d; return m._filter(a, "horizontal", function(a, b) { return b.offset <= a.oldScroll.x; }); }, right: function(a) { if (null == a) a = d; return m._filter(a, "horizontal", function(a, b) { return b.offset > a.oldScroll.x; }); }, enable: function() { return m._invoke("enable"); }, disable: function() { return m._invoke("disable"); }, destroy: function() { return m._invoke("destroy"); }, extendFn: function(a, b) { return n[a] = b; }, _invoke: function(a) { var b; b = c.extend({}, h.vertical, h.horizontal); return c.each(b, function(b, c) { c[a](); return true; }); }, _filter: function(a, b, d) { var e, f; e = k[c(a)[0][j]]; if (!e) return []; f = []; c.each(e.waypoints[b], function(a, b) { if (d(e, b)) return f.push(b); }); f.sort(function(a, b) { return a.offset - b.offset; }); return c.map(f, function(a) { return a.element; }); } }; c[t] = function() { var a, c; c = arguments[0], a = 2 <= arguments.length ? b.call(arguments, 1) : []; if (m[c]) return m[c].apply(null, a); else return m.aggregate.call(null, c); }; c[t].settings = { resizeThrottle: 100, scrollThrottle: 30 }; return e.on("load.waypoints", function() { return c[t]("refresh"); }); }); }).call(this); !function(a) { a.extend(a.fn, { validate: function(b) { if (!this.length) { b && b.debug && window.console && console.warn("nothing selected, can't validate, returning nothing"); return; } var c = a.data(this[0], "validator"); return c ? c : (this.attr("novalidate", "novalidate"), c = new a.validator(b, this[0]), a.data(this[0], "validator", c), c.settings.onsubmit && (this.validateDelegate(":submit", "click", function(b) { c.settings.submitHandler && (c.submitButton = b.target), a(b.target).hasClass("cancel") && (c.cancelSubmit = !0); }), this.submit(function(b) { function d() { var d; return c.settings.submitHandler ? (c.submitButton && (d = a("").attr("name", c.submitButton.name).val(c.submitButton.value).appendTo(c.currentForm)), c.settings.submitHandler.call(c, c.currentForm, b), c.submitButton && d.remove(), !1) : !0; } return c.settings.debug && b.preventDefault(), c.cancelSubmit ? (c.cancelSubmit = !1, d()) : c.form() ? c.pendingRequest ? (c.formSubmitted = !0, !1) : d() : (c.focusInvalid(), !1); })), c); }, valid: function() { if (a(this[0]).is("form")) return this.validate().form(); var b = !0, c = a(this[0].form).validate(); return this.each(function() { b &= c.element(this); }), b; }, removeAttrs: function(b) { var c = {}, d = this; return a.each(b.split(/\s/), function(a, b) { c[b] = d.attr(b), d.removeAttr(b); }), c; }, rules: function(b, c) { var d = this[0]; if (b) { var e = a.data(d.form, "validator").settings, f = e.rules, g = a.validator.staticRules(d); switch (b) { case "add": a.extend(g, a.validator.normalizeRule(c)), f[d.name] = g, c.messages && (e.messages[d.name] = a.extend(e.messages[d.name], c.messages)); break; case "remove": if (!c) return delete f[d.name], g; var h = {}; return a.each(c.split(/\s/), function(a, b) { h[b] = g[b], delete g[b]; }), h; } } var i = a.validator.normalizeRules(a.extend({}, a.validator.metadataRules(d), a.validator.classRules(d), a.validator.attributeRules(d), a.validator.staticRules(d)), d); if (i.required) { var j = i.required; delete i.required, i = a.extend({ required: j }, i); } return i; } }), a.extend(a.expr[":"], { blank: function(b) { return !a.trim("" + b.value); }, filled: function(b) { return !!a.trim("" + b.value); }, unchecked: function(a) { return !a.checked; } }), a.validator = function(b, c) { this.settings = a.extend(!0, {}, a.validator.defaults, b), this.currentForm = c, this.init(); }, a.validator.format = function(b, c) { return 1 === arguments.length ? function() { var c = a.makeArray(arguments); return c.unshift(b), a.validator.format.apply(this, c); } : (arguments.length > 2 && c.constructor !== Array && (c = a.makeArray(arguments).slice(1)), c.constructor !== Array && (c = [ c ]), a.each(c, function(a, c) { b = b.replace(new RegExp("\\{" + a + "\\}", "g"), c); }), b); }, a.extend(a.validator, { defaults: { messages: {}, groups: {}, rules: {}, errorClass: "error", validClass: "valid", errorElement: "label", focusInvalid: !0, errorContainer: a([]), errorLabelContainer: a([]), onsubmit: !0, ignore: ":hidden", ignoreTitle: !1, onfocusin: function(a, b) { this.lastActive = a, this.settings.focusCleanup && !this.blockFocusCleanup && (this.settings.unhighlight && this.settings.unhighlight.call(this, a, this.settings.errorClass, this.settings.validClass), this.addWrapper(this.errorsFor(a)).hide()); }, onfocusout: function(a, b) { !this.checkable(a) && (a.name in this.submitted || !this.optional(a)) && this.element(a); }, onkeyup: function(a, b) { if (9 === b.which && "" === this.elementValue(a)) return; (a.name in this.submitted || a === this.lastActive) && this.element(a); }, onclick: function(a, b) { a.name in this.submitted ? this.element(a) : a.parentNode.name in this.submitted && this.element(a.parentNode); }, highlight: function(b, c, d) { "radio" === b.type ? this.findByName(b.name).addClass(c).removeClass(d) : a(b).addClass(c).removeClass(d); }, unhighlight: function(b, c, d) { "radio" === b.type ? this.findByName(b.name).removeClass(c).addClass(d) : a(b).removeClass(c).addClass(d); } }, setDefaults: function(b) { a.extend(a.validator.defaults, b); }, messages: { required: "This field is required.", remote: "Please fix this field.", email: "Please enter a valid email address.", url: "Please enter a valid URL.", date: "Please enter a valid date.", dateISO: "Please enter a valid date (ISO).", number: "Please enter a valid number.", digits: "Please enter only digits.", creditcard: "Please enter a valid credit card number.", equalTo: "Please enter the same value again.", maxlength: a.validator.format("Please enter no more than {0} characters."), minlength: a.validator.format("Please enter at least {0} characters."), rangelength: a.validator.format("Please enter a value between {0} and {1} characters long."), range: a.validator.format("Please enter a value between {0} and {1}."), max: a.validator.format("Please enter a value less than or equal to {0}."), min: a.validator.format("Please enter a value greater than or equal to {0}.") }, autoCreateRanges: !1, prototype: { init: function() { function b(b) { var c = a.data(this[0].form, "validator"), d = "on" + b.type.replace(/^validate/, ""); c.settings[d] && c.settings[d].call(c, this[0], b); } this.labelContainer = a(this.settings.errorLabelContainer), this.errorContext = this.labelContainer.length && this.labelContainer || a(this.currentForm), this.containers = a(this.settings.errorContainer).add(this.settings.errorLabelContainer), this.submitted = {}, this.valueCache = {}, this.pendingRequest = 0, this.pending = {}, this.invalid = {}, this.reset(); var c = this.groups = {}; a.each(this.settings.groups, function(b, d) { a.each(d.split(/\s/), function(a, d) { c[d] = b; }); }); var d = this.settings.rules; a.each(d, function(b, c) { d[b] = a.validator.normalizeRule(c); }), a(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'] ", "focusin focusout keyup", b).validateDelegate("[type='radio'], [type='checkbox'], select, option", "click", b), this.settings.invalidHandler && a(this.currentForm).bind("invalid-form.validate", this.settings.invalidHandler); }, form: function() { return this.checkForm(), a.extend(this.submitted, this.errorMap), this.invalid = a.extend({}, this.errorMap), this.valid() || a(this.currentForm).triggerHandler("invalid-form", [ this ]), this.showErrors(), this.valid(); }, checkForm: function() { this.prepareForm(); for (var a = 0, b = this.currentElements = this.elements(); b[a]; a++) this.check(b[a]); return this.valid(); }, element: function(b) { b = this.validationTargetFor(this.clean(b)), this.lastElement = b, this.prepareElement(b), this.currentElements = a(b); var c = this.check(b) !== !1; return c ? delete this.invalid[b.name] : this.invalid[b.name] = !0, this.numberOfInvalids() || (this.toHide = this.toHide.add(this.containers)), this.showErrors(), c; }, showErrors: function(b) { if (b) { a.extend(this.errorMap, b), this.errorList = []; for (var c in b) this.errorList.push({ message: b[c], element: this.findByName(c)[0] }); this.successList = a.grep(this.successList, function(a) { return !(a.name in b); }); } this.settings.showErrors ? this.settings.showErrors.call(this, this.errorMap, this.errorList) : this.defaultShowErrors(); }, resetForm: function() { a.fn.resetForm && a(this.currentForm).resetForm(), this.submitted = {}, this.lastElement = null, this.prepareForm(), this.hideErrors(), this.elements().removeClass(this.settings.errorClass).removeData("previousValue"); }, numberOfInvalids: function() { return this.objectLength(this.invalid); }, objectLength: function(a) { var b = 0; for (var c in a) b++; return b; }, hideErrors: function() { this.addWrapper(this.toHide).hide(); }, valid: function() { return 0 === this.size(); }, size: function() { return this.errorList.length; }, focusInvalid: function() { if (this.settings.focusInvalid) try { a(this.findLastActive() || this.errorList.length && this.errorList[0].element || []).filter(":visible").focus().trigger("focusin"); } catch (b) {} }, findLastActive: function() { var b = this.lastActive; return b && 1 === a.grep(this.errorList, function(a) { return a.element.name === b.name; }).length && b; }, elements: function() { var b = this, c = {}; return a(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function() { return !this.name && b.settings.debug && window.console && console.error("%o has no name assigned", this), this.name in c || !b.objectLength(a(this).rules()) ? !1 : (c[this.name] = !0, !0); }); }, clean: function(b) { return a(b)[0]; }, errors: function() { var b = this.settings.errorClass.replace(" ", "."); return a(this.settings.errorElement + "." + b, this.errorContext); }, reset: function() { this.successList = [], this.errorList = [], this.errorMap = {}, this.toShow = a([]), this.toHide = a([]), this.currentElements = a([]); }, prepareForm: function() { this.reset(), this.toHide = this.errors().add(this.containers); }, prepareElement: function(a) { this.reset(), this.toHide = this.errorsFor(a); }, elementValue: function(b) { var c = a(b).attr("type"), d = a(b).val(); return "radio" === c || "checkbox" === c ? a('input[name="' + a(b).attr("name") + '"]:checked').val() : "string" == typeof d ? d.replace(/\r/g, "") : d; }, check: function(b) { b = this.validationTargetFor(this.clean(b)); var c = a(b).rules(), d = !1, e = this.elementValue(b), f; for (var g in c) { var h = { method: g, parameters: c[g] }; try { f = a.validator.methods[g].call(this, e, b, h.parameters); if ("dependency-mismatch" === f) { d = !0; continue; } d = !1; if ("pending" === f) { this.toHide = this.toHide.not(this.errorsFor(b)); return; } if (!f) return this.formatAndAdd(b, h), !1; } catch (i) { throw this.settings.debug && window.console && console.log("exception occured when checking element " + b.id + ", check the '" + h.method + "' method", i), i; } } if (d) return; return this.objectLength(c) && this.successList.push(b), !0; }, customMetaMessage: function(b, c) { if (!a.metadata) return; var d = this.settings.meta ? a(b).metadata()[this.settings.meta] : a(b).metadata(); return d && d.messages && d.messages[c]; }, customDataMessage: function(b, c) { return a(b).data("msg-" + c.toLowerCase()) || b.attributes && a(b).attr("data-msg-" + c.toLowerCase()); }, customMessage: function(a, b) { var c = this.settings.messages[a]; return c && (c.constructor === String ? c : c[b]); }, findDefined: function() { for (var a = 0; a < arguments.length; a++) if (void 0 !== arguments[a]) return arguments[a]; return void 0; }, defaultMessage: function(b, c) { return this.findDefined(this.customMessage(b.name, c), this.customDataMessage(b, c), this.customMetaMessage(b, c), !this.settings.ignoreTitle && b.title || void 0, a.validator.messages[c], "Warning: No message defined for " + b.name + ""); }, formatAndAdd: function(b, c) { var d = this.defaultMessage(b, c.method), e = /\$?\{(\d+)\}/g; "function" == typeof d ? d = d.call(this, c.parameters, b) : e.test(d) && (d = a.validator.format(d.replace(e, "{$1}"), c.parameters)), this.errorList.push({ message: d, element: b }), this.errorMap[b.name] = d, this.submitted[b.name] = d; }, addWrapper: function(a) { return this.settings.wrapper && (a = a.add(a.parent(this.settings.wrapper))), a; }, defaultShowErrors: function() { var a, b; for (a = 0; this.errorList[a]; a++) { var c = this.errorList[a]; this.settings.highlight && this.settings.highlight.call(this, c.element, this.settings.errorClass, this.settings.validClass), this.showLabel(c.element, c.message); } this.errorList.length && (this.toShow = this.toShow.add(this.containers)); if (this.settings.success) for (a = 0; this.successList[a]; a++) this.showLabel(this.successList[a]); if (this.settings.unhighlight) for (a = 0, b = this.validElements(); b[a]; a++) this.settings.unhighlight.call(this, b[a], this.settings.errorClass, this.settings.validClass); this.toHide = this.toHide.not(this.toShow), this.hideErrors(), this.addWrapper(this.toShow).show(); }, validElements: function() { return this.currentElements.not(this.invalidElements()); }, invalidElements: function() { return a(this.errorList).map(function() { return this.element; }); }, showLabel: function(b, c) { var d = this.errorsFor(b); d.length ? (d.removeClass(this.settings.validClass).addClass(this.settings.errorClass), d.attr("generated") && d.html(c)) : (d = a("<" + this.settings.errorElement + "/>").attr({ "for": this.idOrName(b), generated: !0 }).addClass(this.settings.errorClass).html(c || ""), this.settings.wrapper && (d = d.hide().show().wrap("<" + this.settings.wrapper + "/>").parent()), this.labelContainer.append(d).length || (this.settings.errorPlacement ? this.settings.errorPlacement(d, a(b)) : d.insertAfter(b))), !c && this.settings.success && (d.text(""), "string" == typeof this.settings.success ? d.addClass(this.settings.success) : this.settings.success(d, b)), this.toShow = this.toShow.add(d); }, errorsFor: function(b) { var c = this.idOrName(b); return this.errors().filter(function() { return a(this).attr("for") === c; }); }, idOrName: function(a) { return this.groups[a.name] || (this.checkable(a) ? a.name : a.id || a.name); }, validationTargetFor: function(a) { return this.checkable(a) && (a = this.findByName(a.name).not(this.settings.ignore)[0]), a; }, checkable: function(a) { return /radio|checkbox/i.test(a.type); }, findByName: function(b) { return a(this.currentForm).find('[name="' + b + '"]'); }, getLength: function(b, c) { switch (c.nodeName.toLowerCase()) { case "select": return a("option:selected", c).length; case "input": if (this.checkable(c)) return this.findByName(c.name).filter(":checked").length; } return b.length; }, depend: function(a, b) { return this.dependTypes[typeof a] ? this.dependTypes[typeof a](a, b) : !0; }, dependTypes: { "boolean": function(a, b) { return a; }, string: function(b, c) { return !!a(b, c.form).length; }, "function": function(a, b) { return a(b); } }, optional: function(b) { var c = this.elementValue(b); return !a.validator.methods.required.call(this, c, b) && "dependency-mismatch"; }, startRequest: function(a) { this.pending[a.name] || (this.pendingRequest++, this.pending[a.name] = !0); }, stopRequest: function(b, c) { this.pendingRequest--, this.pendingRequest < 0 && (this.pendingRequest = 0), delete this.pending[b.name], c && 0 === this.pendingRequest && this.formSubmitted && this.form() ? (a(this.currentForm).submit(), this.formSubmitted = !1) : !c && 0 === this.pendingRequest && this.formSubmitted && (a(this.currentForm).triggerHandler("invalid-form", [ this ]), this.formSubmitted = !1); }, previousValue: function(b) { return a.data(b, "previousValue") || a.data(b, "previousValue", { old: null, valid: !0, message: this.defaultMessage(b, "remote") }); } }, classRuleSettings: { required: { required: !0 }, email: { email: !0 }, url: { url: !0 }, date: { date: !0 }, dateISO: { dateISO: !0 }, number: { number: !0 }, digits: { digits: !0 }, creditcard: { creditcard: !0 } }, addClassRules: function(b, c) { b.constructor === String ? this.classRuleSettings[b] = c : a.extend(this.classRuleSettings, b); }, classRules: function(b) { var c = {}, d = a(b).attr("class"); return d && a.each(d.split(" "), function() { this in a.validator.classRuleSettings && a.extend(c, a.validator.classRuleSettings[this]); }), c; }, attributeRules: function(b) { var c = {}, d = a(b); for (var e in a.validator.methods) { var f; "required" === e ? (f = d.get(0).getAttribute(e), "" === f && (f = !0), f = !!f) : f = d.attr(e), f ? c[e] = f : d[0].getAttribute("type") === e && (c[e] = !0); } return c.maxlength && /-1|2147483647|524288/.test(c.maxlength) && delete c.maxlength, c; }, metadataRules: function(b) { if (!a.metadata) return {}; var c = a.data(b.form, "validator").settings.meta; return c ? a(b).metadata()[c] : a(b).metadata(); }, staticRules: function(b) { var c = {}, d = a.data(b.form, "validator"); return d.settings.rules && (c = a.validator.normalizeRule(d.settings.rules[b.name]) || {}), c; }, normalizeRules: function(b, c) { return a.each(b, function(d, e) { if (e === !1) { delete b[d]; return; } if (e.param || e.depends) { var f = !0; switch (typeof e.depends) { case "string": f = !!a(e.depends, c.form).length; break; case "function": f = e.depends.call(c, c); } f ? b[d] = void 0 !== e.param ? e.param : !0 : delete b[d]; } }), a.each(b, function(d, e) { b[d] = a.isFunction(e) ? e(c) : e; }), a.each([ "minlength", "maxlength", "min", "max" ], function() { b[this] && (b[this] = Number(b[this])); }), a.each([ "rangelength", "range" ], function() { b[this] && (b[this] = [ Number(b[this][0]), Number(b[this][1]) ]); }), a.validator.autoCreateRanges && (b.min && b.max && (b.range = [ b.min, b.max ], delete b.min, delete b.max), b.minlength && b.maxlength && (b.rangelength = [ b.minlength, b.maxlength ], delete b.minlength, delete b.maxlength)), b.messages && delete b.messages, b; }, normalizeRule: function(b) { if ("string" == typeof b) { var c = {}; a.each(b.split(/\s/), function() { c[this] = !0; }), b = c; } return b; }, addMethod: function(b, c, d) { a.validator.methods[b] = c, a.validator.messages[b] = void 0 !== d ? d : a.validator.messages[b], c.length < 3 && a.validator.addClassRules(b, a.validator.normalizeRule(b)); }, methods: { required: function(b, c, d) { if (!this.depend(d, c)) return "dependency-mismatch"; if ("select" === c.nodeName.toLowerCase()) { var e = a(c).val(); return e && e.length > 0; } return this.checkable(c) ? this.getLength(b, c) > 0 : a.trim(b).length > 0; }, remote: function(b, c, d) { if (this.optional(c)) return "dependency-mismatch"; var e = this.previousValue(c); this.settings.messages[c.name] || (this.settings.messages[c.name] = {}), e.originalMessage = this.settings.messages[c.name].remote, this.settings.messages[c.name].remote = e.message, d = "string" == typeof d && { url: d } || d; if (this.pending[c.name]) return "pending"; if (e.old === b) return e.valid; e.old = b; var f = this; this.startRequest(c); var g = {}; return g[c.name] = b, a.ajax(a.extend(!0, { url: d, mode: "abort", port: "validate" + c.name, dataType: "json", data: g, success: function(d) { f.settings.messages[c.name].remote = e.originalMessage; var g = d === !0 || "true" === d; if (g) { var h = f.formSubmitted; f.prepareElement(c), f.formSubmitted = h, f.successList.push(c), delete f.invalid[c.name], f.showErrors(); } else { var i = {}, j = d || f.defaultMessage(c, "remote"); i[c.name] = e.message = a.isFunction(j) ? j(b) : j, f.invalid[c.name] = !0, f.showErrors(i); } e.valid = g, f.stopRequest(c, g); } }, d)), "pending"; }, minlength: function(b, c, d) { var e = a.isArray(b) ? b.length : this.getLength(a.trim(b), c); return this.optional(c) || e >= d; }, maxlength: function(b, c, d) { var e = a.isArray(b) ? b.length : this.getLength(a.trim(b), c); return this.optional(c) || e <= d; }, rangelength: function(b, c, d) { var e = a.isArray(b) ? b.length : this.getLength(a.trim(b), c); return this.optional(c) || e >= d[0] && e <= d[1]; }, min: function(a, b, c) { return this.optional(b) || a >= c; }, max: function(a, b, c) { return this.optional(b) || a <= c; }, range: function(a, b, c) { return this.optional(b) || a >= c[0] && a <= c[1]; }, email: function(a, b) { return this.optional(b) || /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(a); }, url: function(a, b) { return this.optional(b) || /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(a); }, date: function(a, b) { return this.optional(b) || !/Invalid|NaN/.test(new Date(a)); }, dateISO: function(a, b) { return this.optional(b) || /^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(a); }, number: function(a, b) { return this.optional(b) || /^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(a); }, digits: function(a, b) { return this.optional(b) || /^\d+$/.test(a); }, creditcard: function(a, b) { if (this.optional(b)) return "dependency-mismatch"; if (/[^0-9 \-]+/.test(a)) return !1; var c = 0, d = 0, e = !1; a = a.replace(/\D/g, ""); for (var f = a.length - 1; f >= 0; f--) { var g = a.charAt(f); d = parseInt(g, 10), e && (d *= 2) > 9 && (d -= 9), c += d, e = !e; } return c % 10 === 0; }, equalTo: function(b, c, d) { var e = a(d); return this.settings.onfocusout && e.unbind(".validate-equalTo").bind("blur.validate-equalTo", function() { a(c).valid(); }), b === e.val(); } } }), a.format = a.validator.format; }(jQuery), function(a) { var b = {}; if (a.ajaxPrefilter) a.ajaxPrefilter(function(a, c, d) { var e = a.port; "abort" === a.mode && (b[e] && b[e].abort(), b[e] = d); }); else { var c = a.ajax; a.ajax = function(d) { var e = ("mode" in d ? d : a.ajaxSettings).mode, f = ("port" in d ? d : a.ajaxSettings).port; return "abort" === e ? (b[f] && b[f].abort(), b[f] = c.apply(this, arguments)) : c.apply(this, arguments); }; } }(jQuery), function(a) { !jQuery.event.special.focusin && !jQuery.event.special.focusout && document.addEventListener && a.each({ focus: "focusin", blur: "focusout" }, function(b, c) { function d(b) { return b = a.event.fix(b), b.type = c, a.event.handle.call(this, b); } a.event.special[c] = { setup: function() { this.addEventListener(b, d, !0); }, teardown: function() { this.removeEventListener(b, d, !0); }, handler: function(b) { var d = arguments; return d[0] = a.event.fix(b), d[0].type = c, a.event.handle.apply(this, d); } }; }), a.extend(a.fn, { validateDelegate: function(b, c, d) { return this.bind(c, function(c) { var e = a(c.target); if (e.is(b)) return d.apply(e, arguments); }); } }); }(jQuery); $(document).ready(function() { $(".product-carousel#cs6 .slide img").each(function() { $(this).hover(function() { var a = $(this).data("alt-src"); var b = a.split("_slide"); $(".carousel-top-image#cs6 img").attr("src", a); if(b[1] == undefined){b[1] =""} $(".carousel-top-image#cs6 a").attr("href", b[0] + b[1]); }); }); $(".product-carousel#cs7 .slide img").each(function() { $(this).hover(function() { var a = $(this).data("alt-src"); var b = a.split("_slide"); $(".carousel-top-image#cs7 img").attr("src", a); if(b[1] == undefined){b[1] =""} $(".carousel-top-image#cs7 a").attr("href", b[0] + b[1]); }); }); $(".product-carousel#cs8 .slide img").each(function() { $(this).hover(function() { var a = $(this).data("alt-src"); var b = a.split("_slide"); $(".carousel-top-image#cs8 img").attr("src", a); if(b[1] == undefined){b[1] =""} $(".carousel-top-image#cs8 a").attr("href", b[0] + b[1]); }); }); $(".product-carousel#cs9 .slide img").each(function() { $(this).hover(function() { var a = $(this).data("alt-src"); var b = a.split("_slide"); $(".carousel-top-image#cs9 img").attr("src", a); if(b[1] == undefined){b[1] =""} $(".carousel-top-image#cs9 a").attr("href", b[0] + b[1]); }); }); $(".product-carousel#imp .slide img").each(function() { $(this).hover(function() { var a = $(this).data("alt-src"); var b = a.split("_slide"); $(".carousel-top-image#imp img").attr("src", a); $(".carousel-top-image#imp a").attr("href", b[0] + b[1]); }); }); $(".product-carousel#cs1 .slide img").each(function() { $(this).hover(function() { var a = $(this).data("alt-src"); var b = a.split("_slide"); $(".carousel-top-image#cs1 img").attr("src", a); $(".carousel-top-image#cs1 a").attr("href", b[0] + b[1]); }); }); $(".product-carousel#cs2 .slide img").each(function() { $(this).hover(function() { var a = $(this).data("alt-src"); var b = a.split("_slide"); $(".carousel-top-image#cs2 img").attr("src", a); $(".carousel-top-image#cs2 a").attr("href", b[0] + b[1]); }); }); $(".product-carousel#cs3 .slide img").each(function() { $(this).hover(function() { var a = $(this).data("alt-src"); var b = a.split("_slide"); $(".carousel-top-image#cs3 img").attr("src", a); $(".carousel-top-image#cs3 a").attr("href", b[0] + b[1]); }); }); $(".product-carousel#cs4 .slide img").each(function() { $(this).hover(function() { var a = $(this).data("alt-src"); var b = a.split("_slide"); $(".carousel-top-image#cs4 img").attr("src", a); $(".carousel-top-image#cs4 a").attr("href", b[0] + b[1]); }); }); $(".trigger-fade-in").waypoint(function(a, b) { $(this).addClass("in ready"); }, { offset: function() { return $.waypoints("viewportHeight") - $(this).outerHeight() / 4; } }); $(".transitions").each(function() { $(".transition", this).each(function(a, b) { $(this).addClass("t-" + (a + 1)); }); }); $(".background").each(function() { var a = $(this).data("background"); color = $(this).data("color"); if (void 0 !== a) $(this).css("background-image", "url(" + a + ")"); if (void 0 !== color) $(this).css("background-color", color); }); $(".toggle-button").click(function() { $(this).toggleClass("open"); }); $("#sub-navigation").stick_in_parent({ offset_top: 176 }); $(".fancybox").fancybox(); $(".fancybox-noclickoff").fancybox({ helpers: { overlay: { closeClick: false } }, closeClick: false, maxHeight: 600 }); $(".selectpicker").selectpicker(); if (!Modernizr.touch) $(".video-player").fancybox({ beforeShow: function() { var a = $(this.element).data("width"), b = $(this.element).data("height"); if (a) this.width = a; if (b) this.height = b; } }); else $(".video-player").each(function(a) { var b = $(this).data("video"); $(this).attr("href", b); }); $(".mobile-nav-trigger").click(function() { $(".main-nav").css("height", "auto"); }); /* per inserire nuovo menu var a = document.getElementById("mobile-nav"), b = document.getElementById("showRight"), c = document.body; b.onclick = function() { classie.toggle(this, "active"); $("body").toggleClass("push-to-left"); classie.toggle(a, "cbp-spmenu-open"); d("showRight"); }; function d(a) { if ("showRight" !== a) classie.toggle(b, "disabled"); } */ $(".main-nav .has-children").click(function() { classie.toggle(this, "open"); }); $(".dropdown").hover(function(){$(this).find(".dropdown-menu").first().stop(true,true).slideToggle(400)},function(){$(this).find(".dropdown-menu").first().stop(true,true).slideToggle(0)});$(".dropdown-click").click(function(){$(this).find(".dropdown-menu").first().stop(true,true).slideToggle(400)},function(){$(this).find(".dropdown-menu").first().stop(true,true).slideToggle(400)}); jQuery(".nav-search").click(function(a) { a.stopPropagation(); }); eqHeights(); $(".spr-ir-pagination").removeClass(".spr-ir-pagination").find("ul").addClass("pagination").find(".current").removeClass("current").addClass("active"); $(".validate-form, .spr-ir-form").validate({ rules: { first_name: { required: true, minlength: 2, regex: /^[A-Za-z\s-]+$/ }, last_name: { required: true, minlength: 2, regex: /^[A-Za-z\s-]+$/ }, email: { required: true }, comments: { required: true, minlength: 5 }, company: { minlength: 2, regex: /^[A-Za-z\s-]+$/ }, city: { minlength: 2, regex: /^[A-Za-z\s-]+$/ }, state: { minlength: 2, regex: /^[A-Za-z\s-]+$/ }, country: { minlength: 2, regex: /^[A-Za-z\s-]+$/ }, other: { minlength: 2, regex: /^[A-Za-z\s-]+$/ }, xss: { regex: /^[A-Za-z\s-]+$/ } } }); $.validator.addMethod("regex", function(a, b, c) { var d = false; var e = new RegExp(c); return this.optional(b) || e.test(a); }, "No special Characters allowed here. Use only upper and lowercase letters (A through Z; a through z) and hyphens (-)"); if ($(".media-video-gallery").length) $.get("https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId=PLhuA58w83Z-HnoCAZsOBbOuLlyFr7XLb5&maxResults=50&key=AIzaSyBLWqTuQUMeV18Ol3ssI7CQBM8clqM1O1g").success(function(a) { populateVideos(a); }).fail(function() { videoError(); }); if ($(".contact-pg").length) if (getQueryVariable("inquiry")) { $(".contact-form select").val(getQueryVariable("inquiry")); $(".contact-form select").trigger("change"); } $(".filter-group .filter").click(function() { $("html, body").animate({ scrollTop: $(".filter-bar").offset().top - $("header").outerHeight() }, 400); }); if ("undefined" != typeof map) $(window).resize(function() { map.resize(); }); }); $(window).resize(function() { eqHeights(); }); $(window).load(function() { eqHeights(); }); function numberWithCommas(a) { return a.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); } function populateQuoteBox(a) { var b = $('.quote-box[data-symbol="' + a.symbol + '"]'); change = a.change.replace(/[+|\-]/g, ""); theDate = a.last_trade_time.substr(0, a.last_trade_time.indexOf(" ")); while ("0" === theDate.charAt(0)) theDate = theDate.substr(1); var c = a.last_trade_time.substr(a.last_trade_time.indexOf(" ") + 1); theHour = c.substr(0, c.indexOf(":")); theHour = (+theHour + 11) % 12 + 1; theMinute = c.substr(c.indexOf(":") + 1); c = theHour + ":" + theMinute; b.find(".date").html(""); b.find("time").attr("date-time", a.last_trade_time).html(theDate + " • " + c); b.find(".price .value").html("$" + a.last); b.find(".volume .value").html(numberWithCommas(a.volume)); if ("N/A" == a.market_cap) b.find(".market-cap").hide(); else b.find(".market-cap .value").html("$" + a.market_cap); b.find(".change .value").html("$" + change); if (a.change.indexOf("+") > -1) b.find(".change").addClass("up"); else if (a.change.indexOf("-") > -1) b.find(".change").addClass("down"); } function eqHeights() { if ($(window).width() >= 768) { $(".same-height-row").each(function() { var a = $(this).find(".height"); var b = 0; a.css("min-height", "0"); a.each(function() { b = $(this).outerHeight() > b ? $(this).outerHeight() : b; }); a.css("min-height", b + "px"); }); var a = 0; $(".same-height").each(function() { $(this).css("min-height", "0"); a = $(this).outerHeight() > a ? $(this).outerHeight() : a; }).css("min-height", a + "px"); $(".height.exact").each(function() { $(this).css("height", $(this).css("min-height")); }); } else $(".same-height, .height").css({ height: "auto", "min-height": "0" }); if ($(window).width() < 990) $(".right-sidebar").removeClass("height").removeAttr("style"); else $(".right-sidebar").addClass("height"); } function populateVideos(a) { if (void 0 !== a && a.items.length > 0) { $.each(a.items, function(a) { $(".media-video-gallery .row").append(b(this)); }); if ($(".media-video-gallery .module-media-item").length > 6) { $(".media-video-gallery .module-media-item:gt(5)").wrapAll('
'); $(".additional-videos").hide(); $(".media-video-gallery .row").after('
 
'); $(".additional-video-toggle").on("click", function() { $(".additional-videos").slideToggle("slow"); $(".additional-video-toggle").toggleClass("down"); }); } $(".media-video-gallery .module-media").fadeIn("slow"); eqHeights(); } function b(a) { var b = a.snippet.resourceId.videoId; var c = "//youtube.com/embed/" + b; var d = a.snippet.thumbnails.high.url; var e = '
'; e += ''; e += '
'; e += '' + a.snippet.title + ""; e += "
"; e += "
"; return e; } function c(a) { var b = parseInt(a, 10); var c = Math.floor(b / 3600); var d = Math.floor((b - 3600 * c) / 60); var e = b - 3600 * c - 60 * d; if (c < 10) c = "0" + c; if (d < 10) d = "0" + d; if (e < 10) e = "0" + e; var f = c + ":" + d + ":" + e; return f; } } function videoError() {} function getQueryVariable(a) { var b = window.location.search.substring(1); var c = b.split("&"); for (var d = 0; d < c.length; d++) { var e = c[d].split("="); if (e[0] == a) return e[1]; } return false; } !function(a) { var b = /MSIE/.test(navigator.userAgent); var c = document.createElement("div").style, d = void 0 !== c["MozBorderRadius"], e = void 0 !== c["WebkitBorderRadius"], f = void 0 !== c["borderRadius"] || void 0 !== c["BorderRadius"], g = document.documentMode || 0, h = b && (!g || g < 8), i = b && function() { var a = document.createElement("div"); try { a.style.setExpression("width", "0+0"); a.style.removeExpression("width"); } catch (b) { return false; } return true; }(); a.support = a.support || {}; a.support.borderRadius = d || e || f; function j(b, c) { return parseInt(a.css(b, c), 10) || 0; } function k(a) { a = parseInt(a, 10).toString(16); return a.length < 2 ? "0" + a : a; } function l(b) { while (b) { var c = a.css(b, "backgroundColor"), d; if (c && "transparent" != c && "rgba(0, 0, 0, 0)" != c) { if (c.indexOf("rgb") >= 0) { d = c.match(/\d+/g); return "#" + k(d[0]) + k(d[1]) + k(d[2]); } return c; } if ("html" == b.nodeName.toLowerCase()) break; b = b.parentNode; } return "#ffffff"; } function m(a, b, c) { switch (a) { case "round": return Math.round(c * (1 - Math.cos(Math.asin(b / c)))); case "cool": return Math.round(c * (1 + Math.cos(Math.asin(b / c)))); case "sharp": return c - b; case "bite": return Math.round(c * Math.cos(Math.asin((c - b - 1) / c))); case "slide": return Math.round(c * Math.atan2(b, c / b)); case "jut": return Math.round(c * Math.atan2(c, c - b - 1)); case "curl": return Math.round(c * Math.atan(b)); case "tear": return Math.round(c * Math.cos(b)); case "wicked": return Math.round(c * Math.tan(b)); case "long": return Math.round(c * Math.sqrt(b)); case "sculpt": return Math.round(c * Math.log(c - b - 1, c)); case "dogfold": case "dog": return 1 & b ? b + 1 : c; case "dog2": return 2 & b ? b + 1 : c; case "dog3": return 3 & b ? b + 1 : c; case "fray": return b % 2 * c; case "notch": return c; case "bevelfold": case "bevel": return b + 1; case "steep": return b / 2 + 1; case "invsteep": return (c - b) / 2 + 1; } } a.fn.corner = function(c) { if (0 === this.length) { if (!a.isReady && this.selector) { var g = this.selector, k = this.context; a(function() { a(g, k).corner(c); }); } return this; } return this.each(function(g) { var k = a(this), n = [ k.attr(a.fn.corner.defaults.metaAttr) || "", c || "" ].join(" ").toLowerCase(), o = /keep/.test(n), p = (n.match(/cc:(#[0-9a-f]+)/) || [])[1], q = (n.match(/sc:(#[0-9a-f]+)/) || [])[1], r = parseInt((n.match(/(\d+)px/) || [])[1], 10) || 10, s = /round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog|invsteep|steep/, t = (n.match(s) || [ "round" ])[0], u = /dogfold|bevelfold/.test(n), v = { T: 0, B: 1 }, w = { TL: /top|tl|left/.test(n), TR: /top|tr|right/.test(n), BL: /bottom|bl|left/.test(n), BR: /bottom|br|right/.test(n) }, x, y, z, A, B, C, D, E, F, G, H, I, J, K; if (!w.TL && !w.TR && !w.BL && !w.BR) w = { TL: 1, TR: 1, BL: 1, BR: 1 }; if (a.fn.corner.defaults.useNative && "round" == t && (f || d || e) && !p && !q) { if (w.TL) k.css(f ? "border-top-left-radius" : d ? "-moz-border-radius-topleft" : "-webkit-border-top-left-radius", r + "px"); if (w.TR) k.css(f ? "border-top-right-radius" : d ? "-moz-border-radius-topright" : "-webkit-border-top-right-radius", r + "px"); if (w.BL) k.css(f ? "border-bottom-left-radius" : d ? "-moz-border-radius-bottomleft" : "-webkit-border-bottom-left-radius", r + "px"); if (w.BR) k.css(f ? "border-bottom-right-radius" : d ? "-moz-border-radius-bottomright" : "-webkit-border-bottom-right-radius", r + "px"); return; } x = document.createElement("div"); a(x).css({ overflow: "hidden", height: "1px", minHeight: "1px", fontSize: "1px", backgroundColor: q || "transparent", borderStyle: "solid" }); y = { T: parseInt(a.css(this, "paddingTop"), 10) || 0, R: parseInt(a.css(this, "paddingRight"), 10) || 0, B: parseInt(a.css(this, "paddingBottom"), 10) || 0, L: parseInt(a.css(this, "paddingLeft"), 10) || 0 }; if (void 0 !== typeof this.style.zoom) this.style.zoom = 1; if (!o) this.style.border = "none"; x.style.borderColor = p || l(this.parentNode); z = a(this).outerHeight(); for (A in v) { B = v[A]; if (B && (w.BL || w.BR) || !B && (w.TL || w.TR)) { x.style.borderStyle = "none " + (w[A + "R"] ? "solid" : "none") + " none " + (w[A + "L"] ? "solid" : "none"); C = document.createElement("div"); a(C).addClass("jquery-corner"); D = C.style; B ? this.appendChild(C) : this.insertBefore(C, this.firstChild); if (B && "auto" != z) { if ("static" == a.css(this, "position")) this.style.position = "relative"; D.position = "absolute"; D.bottom = D.left = D.padding = D.margin = "0"; if (i) D.setExpression("width", "this.parentNode.offsetWidth"); else D.width = "100%"; } else if (!B && b) { if ("static" == a.css(this, "position")) this.style.position = "relative"; D.position = "absolute"; D.top = D.left = D.right = D.padding = D.margin = "0"; if (i) { E = j(this, "borderLeftWidth") + j(this, "borderRightWidth"); D.setExpression("width", "this.parentNode.offsetWidth - " + E + '+ "px"'); } else D.width = "100%"; } else { D.position = "relative"; D.margin = !B ? "-" + y.T + "px -" + y.R + "px " + (y.T - r) + "px -" + y.L + "px" : y.B - r + "px -" + y.R + "px -" + y.B + "px -" + y.L + "px"; } for (F = 0; F < r; F++) { G = Math.max(0, m(t, F, r)); H = x.cloneNode(false); H.style.borderWidth = "0 " + (w[A + "R"] ? G : 0) + "px 0 " + (w[A + "L"] ? G : 0) + "px"; B ? C.appendChild(H) : C.insertBefore(H, C.firstChild); } if (u && a.support.boxModel) { if (B && h) continue; for (I in w) { if (!w[I]) continue; if (B && ("TL" == I || "TR" == I)) continue; if (!B && ("BL" == I || "BR" == I)) continue; J = { position: "absolute", border: "none", margin: 0, padding: 0, overflow: "hidden", backgroundColor: x.style.borderColor }; K = a("
").css(J).css({ width: r + "px", height: "1px" }); switch (I) { case "TL": K.css({ bottom: 0, left: 0 }); break; case "TR": K.css({ bottom: 0, right: 0 }); break; case "BL": K.css({ top: 0, left: 0 }); break; case "BR": K.css({ top: 0, right: 0 }); } C.appendChild(K[0]); var L = a("
").css(J).css({ top: 0, bottom: 0, width: "1px", height: r + "px" }); switch (I) { case "TL": L.css({ left: r }); break; case "TR": L.css({ right: r }); break; case "BL": L.css({ left: r }); break; case "BR": L.css({ right: r }); } C.appendChild(L[0]); } } } } }); }; a.fn.uncorner = function() { if (f || d || e) this.css(f ? "border-radius" : d ? "-moz-border-radius" : "-webkit-border-radius", 0); a("div.jquery-corner", this).remove(); return this; }; a.fn.corner.defaults = { useNative: true, metaAttr: "data-corner" }; }(jQuery); $('input[type=checkbox]').each(function() { this.checked = true; }); function anchorScroll(fragment) { "use strict"; var amount, ttarget; amount = $('header').height(); ttarget = $('#' + fragment); console.log(amount + "=amount" + ttarget + "=target"); if (typeof amount !== 'undefined') { $('html,body').animate({ scrollTop: ttarget.offset().top - amount }, 300); return false; } else { console.log('amount is not defined'); } } function outsideToHash() { "use strict"; var fragment; if (window.location.hash) { fragment = window.location.hash.substring(1); anchorScroll(fragment); } } function insideToHash(nnode) { "use strict"; var fragment; fragment = $(nnode).attr('href').substring(1); anchorScroll(fragment); } function setCheckboxImageSrc(checkbox, image, checkedUrl, uncheckedUrl) { if (checkbox.is(":checked")) { image.attr("src", checkedUrl); } else { image.attr("src", uncheckedUrl); } } function setCheckboxImage(checkboxObj, className, checkedUrl, uncheckedUrl) { checkboxObj.hide(); var $image = $("").insertAfter(checkboxObj); setCheckboxImageSrc(checkboxObj, $image, checkedUrl, uncheckedUrl); $image.click(function () { var $checkbox = $image.prev("." + className); $checkbox.click(); setCheckboxImageSrc($checkbox, $image, checkedUrl, uncheckedUrl); }); } $(document).ready(function () { "use strict"; $("a[href^='#']").bind('click', function () {insideToHash(this); }); outsideToHash(); var currentDirectory = $("ul.nav-justified").attr('rel'); //$('[data-toggle="tooltip"]').tooltip({trigger : 'manual',placement: 'bottom',html:true}); if ($('div#breadcrumbs img.breadcrumbs[id=5]').attr("rel")==="5" && $('div#breadcrumbs img.breadcrumbs[id=6]').attr("rel")==="6") { //$("img.breadcrumbs[id=7]").popover({ html: true, animation:false,content: 'Thank you for submitting your quote information! Our sales team will be reviewing your enquiry and get back to you soon to provide you our detailed offer.
For further inquiries, please contact us here

or

'}) $("#nav-links a[id=7]").attr("href", "//www.bio-komp.com/contact-form?cid=" + currentDirectory + ""); $("#nav-links a[id=7]").attr("title", "Click to send your data"); }else{ $("img.breadcrumbs[id=7]").popover({ html: true, animation:false,content: '
ATTENTION !


Remember to click at least one option of the Enclosure and Certificates fields before proceeding to submit your request!'}) $("#nav-links a[id=7]").removeAttr("href"); } $("img.breadcrumbs[id=7]").on("mouseenter", function (e) { var _this = this; $(this).popover("show"); $('[data-toggle=popover]').not(this).popover('hide'); $(this).removeClass("hide"); $("button.btn-blue").popover("hide"); $(".popover").on("mouseleave", function () { $(_this).popover('hide'); $('[data-toggle=popover]').not(this).popover('hide'); }); }) $("img.breadcrumbs[id=6]").popover({ html: true, animation:false,content: 'Do you have specific needs for certificates and / or compliance to specific technical Standards? Check out the different available options and specify your requirements.

'}) $("img.breadcrumbs[id=6]").on("mouseenter", function () { var _this = this; $(this).popover("show"); $('[data-toggle=popover]').not(this).popover('hide'); var $popover = $(this); $popover.popover('show'); $("button.btn-blue").popover("hide"); $(".popover").on("mouseleave", function () { $(_this).popover('hide'); $('[data-toggle=popover]').not(this).popover('hide'); }); }) $("img.breadcrumbs[id=5]").popover({ html: true, animation:false,content: 'All our systems are available with different enclosures, according to the specific installation conditions. From open skids to fully-equipped containers, Biokomp can design and provide the right solution for your project.

'}) $("img.breadcrumbs[id=5]").on("mouseenter", function () { var _this = this; $(this).popover("show"); $('[data-toggle=popover]').not(this).popover('hide'); $("button.btn-blue").popover("hide"); $(".popover").on("mouseleave", function () { $(_this).popover('hide'); $('[data-toggle=popover]').not(this).popover('hide'); }); }) $("img.breadcrumbs[id=4]").popover({ html: true, animation:false,content: 'Check out our wide range of devices such as flame arrestors, flow meters, shut off valves, piping, gas sensors and analyzers, vibration dampers, and pressure reducers to enhance your compression package with all required accessories.

'}) $("img.breadcrumbs[id=4]").on("mouseenter", function () { var _this = this; $(this).popover("show"); $('[data-toggle=popover]').not(this).popover('hide'); $("button.btn-blue").popover("hide"); $(".popover").on("mouseleave", function () { $(_this).popover('hide'); $('[data-toggle=popover]').not(this).popover('hide'); }); }) $("img.breadcrumbs[id=3]").popover({ html: true, animation:false,content: 'Our post-compression treatment units include different filters, dryers and chillers with condensate drainers, and liquid-vapour separators to safely remove liquids, dirt, particles, and other impurities from the compressed gas.

'}) $("img.breadcrumbs[id=3]").on("mouseenter", function () { var _this = this; $('[data-toggle=popover]').not(this).popover('hide'); $(this).popover("show"); $("button.btn-blue").popover("hide"); $(".popover").on("mouseleave", function () { $(_this).popover('hide'); $('[data-toggle=popover]').not(this).popover('hide'); }); }) $("img.breadcrumbs[id=2]").popover({ html: true, animation:false,content: 'Biokomp’s family of compressors ranges from low-pressure (-0.5-1 bar) blowers to medium-pressure (0-25 bar) screw-compressors and high-pressure (0-500 bar) piston-groups.

'}) $("img.breadcrumbs[id=2]").on("mouseenter", function () { var _this = this; $(this).popover("show"); $('[data-toggle=popover]').not(this).popover('hide'); $("button.btn-blue").popover("hide"); $(".popover").on("mouseleave", function () { $(_this).popover('hide'); $('[data-toggle=popover]').not(this).popover('hide'); }); }) var txt = 'Biokomp’s portfolio of low-pressure gas treatment solutions includes the equipment for purification and dehumidification of the inlet gas, in order to remove contaminants and impurities before compression.'; var noNewLines = txt.replace(/^\s*(\n)\s*$/, ''); $("img.breadcrumbs[id=1]").popover({ html: true, animation:false,content: noNewLines.trim() + '

'}) $("img.breadcrumbs[id=1]").on("mouseenter", function () { var _this = this; $(this).popover("show"); if(currentDirectory == "2" || currentDirectory == "3") { $(this).popover("hide"); $("nav nav-tabs li a[id=1]").attr('href', '').css({'cursor': 'pointer', 'pointer-events' : 'none'}); } $('[data-toggle=popover]').not(this).popover('hide'); $("button.btn-blue").popover("hide"); $(".popover").on("mouseleave", function () { $(_this).popover('hide'); $('[data-toggle=popover]').not(this).popover('hide'); }); }) $(".title img").tooltip(); $(".content a").tooltip(); $("#bottone").click(function () { $("#miaimmagine").toggle("slow"); }); $("fieldset#deum, fieldset#filtrooilfree, fieldset#rgas, fieldset#ecotcr, fieldset#bp, fieldset#mp, fieldset#hp, fieldset#h2s, fieldset#Silossani, fieldset#Demister, fieldset#Dedusting, fieldset#flux, fieldset#aga, fieldset#af, fieldset#man, fieldset#rdp, fieldset#vds, fieldset#vbr, fieldset#term, fieldset#aperta, fieldset#chiusa, fieldset#container").after(""); $("a#case-6").click(function() { $('html, body').animate({ scrollTop: $("a#case-6").offset().top }, 2000); }); $("a#case-7").click(function() { $('html, body').animate({ scrollTop: $("a#case-7").offset().top }, 2000); }); $("a#case-8").click(function() { $('html, body').animate({ scrollTop: $("a#case-8").offset().top }, 2000); }); $("a#case-9").click(function() { $('html, body').animate({ scrollTop: $("a#case-9").offset().top }, 2000); }); $("img[usemap]").rwdImageMaps(); $('form#contactFormSpareParts #AGREET').prop('checked', false); // Unchecks it $('form#contactFormSpareParts #AGREE').prop('checked', false); // Unchecks it $('form#contactForm #AGREET').prop('checked', false); // Unchecks it $('form#contactForm #AGREE').prop('checked', false); // Unchecks it $('form#signupForm #AGREET').prop('checked', false); // Unchecks it $('form#signupForm #AGREE').prop('checked', false); // Unchecks it });