Skip to main content
Glama
topics.jqueryplugins.2012.min.js110 kB
/* This file contains the minimized javascript for the various jQuery plugins used by this template. Each plugin is licensed according to the information contained in the individual copyright notice. */ /*! * jQuery Cookie Plugin * https://github.com/carhartl/jquery-cookie * * Copyright 2011, Klaus Hartl * Dual licensed under the MIT or GPL Version 2 licenses. * http://www.opensource.org/licenses/mit-license.php * http://www.opensource.org/licenses/GPL-2.0 */ (function ($) { $.cookie = function (key, value, options) { if (arguments.length > 1 && (!/Object/.test(Object.prototype.toString.call(value)) || value === null || value === undefined)) { options = $.extend({}, options); if (value === null || value === undefined) options.expires = -1; if (typeof options.expires === "number") { var days = options.expires, t = options.expires = new Date; t.setDate(t.getDate() + days) } value = String(value); return document.cookie = [encodeURIComponent(key), "=", options.raw ? value : encodeURIComponent(value), options.expires ? "; expires=" + options.expires.toUTCString() : "", options.path ? "; path=" + options.path : "", options.domain ? "; domain=" + options.domain : "", options.secure ? "; secure" : ""].join("") } options = value || {}; var decode = options.raw ? function (s) { return s } : decodeURIComponent; var pairs = document.cookie.split("; "); for (var i = 0, pair; pair = pairs[i] && pairs[i].split("="); i++) if (decode(pair[0]) === key) return decode(pair[1] || ""); return null } })(jQuery); /* json2.js 2011-10-19 Public Domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. See http://www.JSON.org/js.html */ var JSON; if (!JSON) JSON = {}; (function () { function f(n) { return n < 10 ? "0" + n : n } if (typeof Date.prototype.toJSON !== "function") { Date.prototype.toJSON = function (key) { return isFinite(this.valueOf()) ? this.getUTCFullYear() + "-" + f(this.getUTCMonth() + 1) + "-" + f(this.getUTCDate()) + "T" + f(this.getUTCHours()) + ":" + f(this.getUTCMinutes()) + ":" + f(this.getUTCSeconds()) + "Z" : null }; String.prototype.toJSON = Number.prototype.toJSON = Boolean.prototype.toJSON = function (key) { return this.valueOf() } } var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, gap, indent, meta = { "\u0008": "\\b", "\t": "\\t", "\n": "\\n", "\u000c": "\\f", "\r": "\\r", '"': '\\"', "\\": "\\\\" }, rep; function quote(string) { escapable.lastIndex = 0; return escapable.test(string) ? '"' + string.replace(escapable, function (a) { var c = meta[a]; return typeof c === "string" ? c : "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4) }) + '"' : '"' + string + '"' } function str(key, holder) { var i, k, v, length, mind = gap, partial, value = holder[key]; if (value && typeof value === "object" && typeof value.toJSON === "function") value = value.toJSON(key); if (typeof rep === "function") value = rep.call(holder, key, value); switch (typeof value) { case "string": return quote(value); case "number": return isFinite(value) ? String(value) : "null"; case "boolean": case "null": return String(value); case "object": if (!value) return "null"; gap += indent; partial = []; if (Object.prototype.toString.apply(value) === "[object Array]") { length = value.length; for (i = 0; i < length; i += 1) partial[i] = str(i, value) || "null"; v = partial.length === 0 ? "[]" : gap ? "[\n" + gap + partial.join(",\n" + gap) + "\n" + mind + "]" : "[" + partial.join(",") + "]"; gap = mind; return v } if (rep && typeof rep === "object") { length = rep.length; for (i = 0; i < length; i += 1) if (typeof rep[i] === "string") { k = rep[i]; v = str(k, value); if (v) partial.push(quote(k) + (gap ? ": " : ":") + v) } } else for (k in value) if (Object.prototype.hasOwnProperty.call(value, k)) { v = str(k, value); if (v) partial.push(quote(k) + (gap ? ": " : ":") + v) } v = partial.length === 0 ? "{}" : gap ? "{\n" + gap + partial.join(",\n" + gap) + "\n" + mind + "}" : "{" + partial.join(",") + "}"; gap = mind; return v } } if (typeof JSON.stringify !== "function") JSON.stringify = function (value, replacer, space) { var i; gap = ""; indent = ""; if (typeof space === "number") for (i = 0; i < space; i += 1) indent += " "; else if (typeof space === "string") indent = space; rep = replacer; if (replacer && typeof replacer !== "function" && (typeof replacer !== "object" || typeof replacer.length !== "number")) throw new Error("JSON.stringify"); return str("", { "": value }) }; if (typeof JSON.parse !== "function") JSON.parse = function (text, reviver) { var j; function walk(holder, key) { var k, v, value = holder[key]; if (value && typeof value === "object") for (k in value) if (Object.prototype.hasOwnProperty.call(value, k)) { v = walk(value, k); if (v !== undefined) value[k] = v; else delete value[k] } return reviver.call(holder, key, value) } text = String(text); cx.lastIndex = 0; if (cx.test(text)) text = text.replace(cx, function (a) { return "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4) }); if (/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, "@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, "]").replace(/(?:^|:|,)(?:\s*\[)+/g, ""))) { j = eval("(" + text + ")"); return typeof reviver === "function" ? walk({ "": j }, "") : j } throw new SyntaxError("JSON.parse"); } })(); /* * qTip2 - Pretty powerful tooltips * http://craigsworks.com/projects/qtip2/ * * Version: nightly * Copyright 2009-2010 Craig Michael Thompson - http://craigsworks.com * * Dual licensed under MIT or GPLv2 licenses * http://en.wikipedia.org/wiki/MIT_License * http://en.wikipedia.org/wiki/GNU_General_Public_License * * Date: Tue Apr 10 11:58:19.0000000000 2012 *//*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true *//*global window: false, jQuery: false, console: false, define: false */ (function (d) { "function" === typeof define && define.amd ? define(["jquery"], d) : d(jQuery) })(function (d) { function O() { O.history = O.history || []; O.history.push(arguments); if ("object" === typeof console) { var d = console[console.warn ? "warn" : "log"], a = Array.prototype.slice.call(arguments); "string" === typeof arguments[0] && (a[0] = "qTip2: " + a[0]); d.apply ? d.apply(console, a) : d(a) } } function R(c) { var a; if (!c || "object" !== typeof c) return g; if (c.metadata === k || "object" !== typeof c.metadata) c.metadata = { type: c.metadata }; if ("content" in c) { if (c.content === k || "object" !== typeof c.content || c.content.jquery) c.content = { text: c.content }; a = c.content.text || g; if (!d.isFunction(a) && (!a && !a.attr || 1 > a.length || "object" === typeof a && !a.jquery)) c.content.text = g; if ("title" in c.content) { if (c.content.title === k || "object" !== typeof c.content.title) c.content.title = { text: c.content.title }; a = c.content.title.text || g; if (!d.isFunction(a) && (!a && !a.attr || 1 > a.length || "object" === typeof a && !a.jquery)) c.content.title.text = g } } if ("position" in c && (c.position === k || "object" !== typeof c.position)) c.position = { my: c.position, at: c.position }; if ("show" in c && (c.show === k || "object" !== typeof c.show)) c.show = c.show.jquery ? { target: c.show} : { event: c.show }; if ("hide" in c && (c.hide === k || "object" !== typeof c.hide)) c.hide = c.hide.jquery ? { target: c.hide} : { event: c.hide }; if ("style" in c && (c.style === k || "object" !== typeof c.style)) c.style = { classes: c.style }; d.each(A, function () { this.sanitize && this.sanitize(c) }); return c } function X(c, a, q, p) { function r(b) { for (var d = 0, f, e = a, b = b.split("."); e = e[b[d++]]; ) d < b.length && (f = e); return [f || a, b.pop()] } function o() { var b = a.style.widget; f.toggleClass(U, b).toggleClass(W, a.style.def && !b); i.content.toggleClass(U + "-content", b); i.titlebar && i.titlebar.toggleClass(U + "-header", b); i.button && i.button.toggleClass(G + "-icon", !b) } function y(b) { i.title && (i.titlebar.remove(), i.titlebar = i.title = i.button = k, b !== g && e.reposition()) } function j() { var b = a.content.title.button, c = "string" === typeof b ? b : "Close tooltip"; i.button && i.button.remove(); i.button = b.jquery ? b : d("<a />", { "class": "ui-state-default ui-tooltip-close " + (a.style.widget ? "" : G + "-icon"), title: c, "aria-label": c }).prepend(d("<span />", { "class": "ui-icon ui-icon-close", html: "&times;" })); i.button.appendTo(i.titlebar).attr("role", "button").click(function (b) { f.hasClass(H) || e.hide(b); return g }); e.redraw() } function u() { var b = P + "-title"; i.titlebar && y(); i.titlebar = d("<div />", { "class": G + "-titlebar " + (a.style.widget ? "ui-widget-header" : "") }).append(i.title = d("<div />", { id: b, "class": G + "-title", "aria-atomic": w })).insertBefore(i.content).delegate(".ui-tooltip-close", "mousedown keydown mouseup keyup mouseout", function (b) { d(this).toggleClass("ui-state-active ui-state-focus", "down" === b.type.substr(-4)) }).delegate(".ui-tooltip-close", "mouseover mouseout", function (b) { d(this).toggleClass("ui-state-hover", "mouseover" === b.type) }); a.content.title.button ? j() : e.rendered && e.redraw() } function s(b, a) { var m = i.title; if (!e.rendered || !b) return g; d.isFunction(b) && (b = b.call(c, z.event, e)); if (b === g || !b && "" !== b) return y(g); b.jquery && 0 < b.length ? m.empty().append(b.css({ display: "block" })) : m.html(b); e.redraw(); a !== g && e.rendered && 0 < f[0].offsetWidth && e.reposition(z.event) } function n(b, a) { function m(b) { function f(c) { c && (delete m[c.src], clearTimeout(e.timers.img[c.src]), d(c).unbind(h)); d.isEmptyObject(m) && (e.redraw(), a !== g && e.reposition(z.event), b()) } var c, m = {}; if (0 === (c = v.find("img[src]:not([height]):not([width])")).length) return f(); c.each(function (b, a) { if (m[a.src] === I) { var c = 0; (function Y() { if (a.height || a.width || 3 < c) return f(a); c += 1; e.timers.img[a.src] = setTimeout(Y, 700) })(); d(a).bind("error" + h + " load" + h, function () { f(this) }); m[a.src] = a } }) } var v = i.content; if (!e.rendered || !b) return g; d.isFunction(b) && (b = b.call(c, z.event, e) || ""); b.jquery && 0 < b.length ? v.empty().append(b.css({ display: "block" })) : v.html(b); 0 > e.rendered ? f.queue("fx", m) : (x = 0, m(d.noop)); return e } function E() { var b, K, m, t, N; function j(b) { if (f.hasClass(H)) return g; clearTimeout(e.timers.show); clearTimeout(e.timers.hide); var d = function () { e.toggle(w, b) }; 0 < a.show.delay ? e.timers.show = setTimeout(d, a.show.delay) : d() } function p(c) { if (f.hasClass(H) || v || x) return g; var m = d(c.relatedTarget || c.target), l = m.closest(Q)[0] === f[0], m = m[0] === b[0]; clearTimeout(e.timers.show); clearTimeout(e.timers.hide); if ("mouse" === u.target && l || a.hide.fixed && /mouse(out|leave|move)/.test(c.type) && (l || m)) try { c.preventDefault(), c.stopImmediatePropagation() } catch (K) { } else 0 < a.hide.delay ? e.timers.hide = setTimeout(function () { e.hide(c) }, a.hide.delay) : e.hide(c) } function o(b) { if (f.hasClass(H)) return g; clearTimeout(e.timers.inactive); e.timers.inactive = setTimeout(function () { e.hide(b) }, a.hide.inactive) } function s(b) { e.rendered && 0 < f[0].offsetWidth && e.reposition(b) } var u = a.position; b = a.show.target; K = a.hide.target; m = d(u.viewport); t = d(document); d(document.body); N = d(window); var n = d.trim("" + a.show.event).split(" "), r = d.trim("" + a.hide.event).split(" "), k = d.browser.msie && 6 === parseInt(d.browser.version, 10); f.bind("mouseenter" + h + " mouseleave" + h, function (b) { var a = "mouseenter" === b.type; a && e.focus(b); f.toggleClass(Z, a) }); a.hide.fixed && (K = K.add(f), f.bind("mouseover" + h, function () { f.hasClass(H) || clearTimeout(e.timers.hide) })); /mouse(out|leave)/i.test(a.hide.event) ? "window" === a.hide.leave && N.bind("mouseout" + h + " blur" + h, function (b) { /select|option/.test(b.target) && !b.relatedTarget && e.hide(b) }) : /mouse(over|enter)/i.test(a.show.event) && K.bind("mouseleave" + h, function () { clearTimeout(e.timers.show) }); -1 < ("" + a.hide.event).indexOf("unfocus") && u.container.closest("html").bind("mousedown" + h, function (b) { var a = d(b.target); e.rendered && f.hasClass(H); var m = a.parents(Q).filter(f[0]).length > 0; a[0] !== c[0] && a[0] !== f[0] && !m && !c.has(a[0]).length && !a.attr("disabled") && e.hide(b) }); "number" === typeof a.hide.inactive && (b.bind("qtip-" + q + "-inactive", o), d.each(D.inactiveEvents, function (b, a) { K.add(i.tooltip).bind(a + h + "-inactive", o) })); d.each(r, function (a, c) { var e = d.inArray(c, n), m = d(K); if (e > -1 && m.add(b).length === m.length || c === "unfocus") { b.bind(c + h, function (b) { f[0].offsetWidth > 0 ? p(b) : j(b) }); delete n[e] } else K.bind(c + h, p) }); d.each(n, function (a, d) { b.bind(d + h, j) }); "number" === typeof a.hide.distance && b.add(f).bind("mousemove" + h, function (b) { var d = z.origin || {}, c = a.hide.distance, f = Math.abs; (f(b.pageX - d.pageX) >= c || f(b.pageY - d.pageY) >= c) && e.hide(b) }); "mouse" === u.target && (b.bind("mousemove" + h, function (b) { J = { pageX: b.pageX, pageY: b.pageY, type: "mousemove"} }), u.adjust.mouse && (a.hide.event && (f.bind("mouseleave" + h, function (a) { (a.relatedTarget || a.target) !== b[0] && e.hide(a) }), i.target.bind("mouseenter" + h + " mouseleave" + h, function (b) { z.onTarget = b.type === "mouseenter" })), t.bind("mousemove" + h, function (b) { e.rendered && z.onTarget && !f.hasClass(H) && f[0].offsetWidth > 0 && e.reposition(b || J) }))); if (u.adjust.resize || m.length) (d.event.special.resize ? m : N).bind("resize" + h, s); (m.length || k && "fixed" === f.css("position")) && m.bind("scroll" + h, s) } function F() { var b = [a.show.target[0], a.hide.target[0], e.rendered && i.tooltip[0], a.position.container[0], a.position.viewport[0], window, document]; e.rendered ? d([]).pushStack(d.grep(b, function (b) { return "object" === typeof b })).unbind(h) : a.show.target.unbind(h + "-create") } var e = this, B = document.body, P = G + "-" + q, v = 0, x = 0, f = d(), h = ".qtip-" + q, i, z; e.id = q; e.rendered = g; e.elements = i = { target: c }; e.timers = { img: {} }; e.options = a; e.checks = {}; e.plugins = {}; e.cache = z = { event: {}, target: d(), disabled: g, attr: p, onTarget: g }; e.checks.builtin = { "^id$": function (b, a, c) { b = c === w ? D.nextid : c; a = G + "-" + b; b !== g && 0 < b.length && !d("#" + a).length && (f[0].id = a, i.content[0].id = a + "-content", i.title[0].id = a + "-title") }, "^content.text$": function (b, a, d) { n(d) }, "^content.title.text$": function (b, a, d) { if (!d) return y(); !i.title && d && u(); s(d) }, "^content.title.button$": function (b, a, d) { b = i.button; a = i.title; e.rendered && (d ? (a || u(), j()) : b.remove()) }, "^position.(my|at)$": function (b, a, d) { "string" === typeof d && (b[a] = new A.Corner(d)) }, "^position.container$": function (b, a, d) { e.rendered && f.appendTo(d) }, "^show.ready$": function () { e.rendered ? e.toggle(w) : e.render(1) }, "^style.classes$": function (b, a, d) { f.attr("class", G + " qtip ui-helper-reset " + d) }, "^style.widget|content.title": o, "^events.(render|show|move|hide|focus|blur)$": function (b, a, c) { f[(d.isFunction(c) ? "" : "un") + "bind"]("tooltip" + a, c) }, "^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)": function () { var b = a.position; f.attr("tracking", "mouse" === b.target && b.adjust.mouse); F(); E() } }; d.extend(e, { render: function (b) { if (e.rendered) return e; var h = a.content.text, m = a.content.title.text, t = a.position, N = d.Event("tooltiprender"); d.attr(c[0], "aria-describedby", P); f = i.tooltip = d("<div/>", { id: P, "class": G + " qtip ui-helper-reset " + W + " " + a.style.classes + " " + G + "-pos-" + a.position.my.abbrev(), width: a.style.width || "", height: a.style.height || "", tracking: "mouse" === t.target && t.adjust.mouse, role: "alert", "aria-live": "polite", "aria-atomic": g, "aria-describedby": P + "-content", "aria-hidden": w }).toggleClass(H, z.disabled).data("qtip", e).appendTo(a.position.container).append(i.content = d("<div />", { "class": G + "-content", id: P + "-content", "aria-atomic": w })); e.rendered = -1; v = x = 1; m && (u(), d.isFunction(m) || s(m, g)); d.isFunction(h) || n(h, g); e.rendered = w; o(); d.each(a.events, function (b, a) { d.isFunction(a) && f.bind(b === "toggle" ? "tooltipshow tooltiphide" : "tooltip" + b, a) }); d.each(A, function () { this.initialize === "render" && this(e) }); E(); f.queue("fx", function (d) { N.originalEvent = z.event; f.trigger(N, [e]); v = x = 0; e.redraw(); (a.show.ready || b) && e.toggle(w, z.event, g); d() }); return e }, get: function (b) { switch (b.toLowerCase()) { case "dimensions": b = { height: f.outerHeight(), width: f.outerWidth() }; break; case "offset": b = A.offset(f, a.position.container); break; default: b = r(b.toLowerCase()), b = b[0][b[1]], b = b.precedance ? b.string() : b } return b }, set: function (b, c) { var m = /^position\.(my|at|adjust|target|container)|style|content|show\.ready/i, t = /^content\.(title|attr)|style/i, h = g, i = g, q = e.checks, j; "string" === typeof b ? (j = b, b = {}, b[j] = c) : b = d.extend(w, {}, b); d.each(b, function (a, c) { var f = r(a.toLowerCase()), e; e = f[0][f[1]]; f[0][f[1]] = "object" === typeof c && c.nodeType ? d(c) : c; b[a] = [f[0], f[1], c, e]; h = m.test(a) || h; i = t.test(a) || i }); R(a); v = x = 1; d.each(b, function (b, a) { var d, c, f; for (d in q) for (c in q[d]) if (f = RegExp(c, "i").exec(b)) { a.push(f); q[d][c].apply(e, a) } }); v = x = 0; e.rendered && 0 < f[0].offsetWidth && (h && e.reposition("mouse" === a.position.target ? k : z.event), i && e.redraw()); return e }, toggle: function (b, c, v) { function t() { b ? (d.browser.msie && f[0].style.removeAttribute("filter"), f.css("overflow", ""), "string" === typeof i.autofocus && d(i.autofocus, f).focus(), i.target.trigger("qtip-" + q + "-inactive")) : f.css({ display: "", visibility: "", opacity: "", left: "", top: "" }); r = d.Event("tooltip" + (b ? "visible" : "hidden")); r.originalEvent = c ? z.event : k; f.trigger(r, [e]) } if (!e.rendered) return b ? e.render(1) : e; var h = b ? "show" : "hide", i = a[h], x = a.position, j = a.content, p = 0 < f[0].offsetWidth, u = b || 1 === i.target.length, o = !c || 2 > i.target.length || z.target[0] === c.target, r; (typeof b).search("boolean|number") && (b = !p); if (!f.is(":animated") && p === b && o) return e; if (c) { if (/over|enter/.test(c.type) && /out|leave/.test(z.event.type) && a.show.target.add(c.target).length === a.show.target.length && f.has(c.relatedTarget).length) return e; z.event = d.extend({}, c) } r = d.Event("tooltip" + h); r.originalEvent = c ? z.event : k; f.trigger(r, [e, 90]); if (r.isDefaultPrevented()) return e; d.attr(f[0], "aria-hidden", !b); b ? (z.origin = d.extend({}, J), e.focus(c), d.isFunction(j.text) && n(j.text, g), d.isFunction(j.title.text) && s(j.title.text, g), !S && "mouse" === x.target && x.adjust.mouse && (d(document).bind("mousemove.qtip", function (b) { J = { pageX: b.pageX, pageY: b.pageY, type: "mousemove"} }), S = w), e.reposition(c, v), (r.solo = !!i.solo) && d(Q, i.solo).not(f).qtip("hide", r)) : (clearTimeout(e.timers.show), delete z.origin, S && !d(Q + '[tracking="true"]:visible', i.solo).not(f).length && (d(document).unbind("mousemove.qtip"), S = g), e.blur(c)); i.effect === g || u === g ? (f[h](), t.call(f)) : d.isFunction(i.effect) ? (f.stop(1, 1), i.effect.call(f, e), f.queue("fx", function (b) { t(); b() })) : f.fadeTo(90, b ? 1 : 0, t); b && i.target.trigger("qtip-" + q + "-inactive"); return e }, show: function (b) { return e.toggle(w, b) }, hide: function (b) { return e.toggle(g, b) }, focus: function (b) { if (!e.rendered) return e; var a = d(Q), c = parseInt(f[0].style.zIndex, 10), v = D.zindex + a.length, b = d.extend({}, b), i; f.hasClass(T) || (i = d.Event("tooltipfocus"), i.originalEvent = b, f.trigger(i, [e, v]), i.isDefaultPrevented() || (c !== v && (a.each(function () { this.style.zIndex > c && (this.style.zIndex -= 1) }), a.filter("." + T).qtip("blur", b)), f.addClass(T)[0].style.zIndex = v)); return e }, blur: function (b) { var b = d.extend({}, b), a; f.removeClass(T); a = d.Event("tooltipblur"); a.originalEvent = b; f.trigger(a, [e]); return e }, reposition: function (b, c) { if (!e.rendered || v) return e; v = 1; var m = a.position.target, h = a.position, x = h.my, q = h.at, j = h.adjust, p = j.method.split(" "), u = f.outerWidth(), o = f.outerHeight(), r = 0, s = 0, n = d.Event("tooltipmove"), w = "fixed" === f.css("position"), k = h.viewport, l = { left: 0, top: 0 }, y = h.container, E = g, C = e.plugins.tip, D = 0 < f[0].offsetWidth, F = { horizontal: p[0], vertical: p[1] = p[1] || p[0], enabled: k.jquery && m[0] !== window && m[0] !== B && "none" !== j.method, left: function (b) { var a = "shift" === F.horizontal, c = -y.offset.left + k.offset.left + k.scrollLeft, d = "left" === x.x ? u : "right" === x.x ? -u : -u / 2, f = "left" === q.x ? r : "right" === q.x ? -r : -r / 2, e = C && C.size ? C.size.width || 0 : 0, v = C && C.corner && "x" === C.corner.precedance && !a ? e : 0, i = c - b + v, h = b + u - k.width - c + v, f = d - ("x" === x.precedance || x.x === x.y ? f : 0) - ("center" === q.x ? r / 2 : 0), v = "center" === x.x; if (a) v = C && C.corner && "y" === C.corner.precedance ? e : 0, f = ("left" === x.x ? 1 : -1) * d - v, l.left += 0 < i ? i : 0 < h ? -h : 0, l.left = Math.max(-y.offset.left + k.offset.left + (v && "center" === C.corner.x ? C.offset : 0), b - f, Math.min(Math.max(-y.offset.left + k.offset.left + k.width, b + f), l.left)); else { if (0 < i && ("left" !== x.x || 0 < h)) l.left -= f; else if (0 < h && ("right" !== x.x || 0 < i)) l.left -= v ? -f : f; l.left !== b && v && (l.left -= j.x); l.left < c && -l.left > h && (l.left = b) } return l.left - b }, top: function (b) { var a = "shift" === F.vertical, c = -y.offset.top + k.offset.top + k.scrollTop, d = "top" === x.y ? o : "bottom" === x.y ? -o : -o / 2, f = "top" === q.y ? s : "bottom" === q.y ? -s : -s / 2, e = C && C.size ? C.size.height || 0 : 0, v = C && C.corner && "y" === C.corner.precedance && !a ? e : 0, h = c - b + v, c = b + o - k.height - c + v, f = d - ("y" === x.precedance || x.x === x.y ? f : 0) - ("center" === q.y ? s / 2 : 0), v = "center" === x.y; if (a) v = C && C.corner && "x" === C.corner.precedance ? e : 0, f = ("top" === x.y ? 1 : -1) * d - v, l.top += 0 < h ? h : 0 < c ? -c : 0, l.top = Math.max(-y.offset.top + k.offset.top + (v && "center" === C.corner.x ? C.offset : 0), b - f, Math.min(Math.max(-y.offset.top + k.offset.top + k.height, b + f), l.top)); else { if (0 < h && ("top" !== x.y || 0 < c)) l.top -= f; else if (0 < c && ("bottom" !== x.y || 0 < h)) l.top -= v ? -f : f; l.top !== b && v && (l.top -= j.y); 0 > l.top && -l.top > c && (l.top = b) } return l.top - b } }; if (d.isArray(m) && 2 === m.length) q = { x: "left", y: "top" }, l = { left: m[0], top: m[1] }; else if ("mouse" === m && (b && b.pageX || z.event.pageX)) q = { x: "left", y: "top" }, b = (b && ("resize" === b.type || "scroll" === b.type) ? z.event : b && b.pageX && "mousemove" === b.type ? b : J && J.pageX && (j.mouse || !b || !b.pageX) ? { pageX: J.pageX, pageY: J.pageY} : !j.mouse && z.origin && z.origin.pageX && a.show.distance ? z.origin : b) || b || z.event || J || {}, l = { top: b.pageY, left: b.pageX }; else { m = "event" === m ? b && b.target && "scroll" !== b.type && "resize" !== b.type ? z.target = d(b.target) : z.target : z.target = d(m.jquery ? m : i.target); m = d(m).eq(0); if (0 === m.length) return e; m[0] === document || m[0] === window ? (r = A.iOS ? window.innerWidth : m.width(), s = A.iOS ? window.innerHeight : m.height(), m[0] === window && (l = { top: (k || m).scrollTop(), left: (k || m).scrollLeft() })) : m.is("area") && A.imagemap ? l = A.imagemap(m, q, F.enabled ? p : g) : "http://www.w3.org/2000/svg" === m[0].namespaceURI && A.svg ? l = A.svg(m, q) : (r = m.outerWidth(), s = m.outerHeight(), l = A.offset(m, y)); l.offset && (r = l.width, s = l.height, E = l.flipoffset, l = l.offset); if (4.1 > A.iOS && 3.1 < A.iOS || 4.3 == A.iOS || !A.iOS && w) p = d(window), l.left -= p.scrollLeft(), l.top -= p.scrollTop(); l.left += "right" === q.x ? r : "center" === q.x ? r / 2 : 0; l.top += "bottom" === q.y ? s : "center" === q.y ? s / 2 : 0 } l.left += j.x + ("right" === x.x ? -u : "center" === x.x ? -u / 2 : 0); l.top += j.y + ("bottom" === x.y ? -o : "center" === x.y ? -o / 2 : 0); if (F.enabled) { if (k = { elem: k, height: k[(k[0] === window ? "h" : "outerH") + "eight"](), width: k[(k[0] === window ? "w" : "outerW") + "idth"](), scrollLeft: w ? 0 : k.scrollLeft(), scrollTop: w ? 0 : k.scrollTop(), offset: k.offset() || { left: 0, top: 0} }, y = { elem: y, scrollLeft: y.scrollLeft(), scrollTop: y.scrollTop(), offset: y.offset() || { left: 0, top: 0} }, l.adjusted = { left: "none" !== F.horizontal ? F.left(l.left) : 0, top: "none" !== F.vertical ? F.top(l.top) : 0 }, l.adjusted.left + l.adjusted.top && f.attr("class", f[0].className.replace(/ui-tooltip-pos-\w+/i, G + "-pos-" + x.abbrev())), E && l.adjusted.left && (l.left += E.left), E && l.adjusted.top) l.top += E.top } else l.adjusted = { left: 0, top: 0 }; n.originalEvent = d.extend({}, b); f.trigger(n, [e, l, k.elem || k]); if (n.isDefaultPrevented()) return e; delete l.adjusted; c === g || !D || isNaN(l.left) || isNaN(l.top) || "mouse" === m || !d.isFunction(h.effect) ? f.css(l) : d.isFunction(h.effect) && (h.effect.call(f, e, d.extend({}, l)), f.queue(function (b) { d(this).css({ opacity: "", height: "" }); d.browser.msie && this.style.removeAttribute("filter"); b() })); v = 0; return e }, redraw: function () { if (1 > e.rendered || x) return e; var b = a.position.container, c, d, v; x = 1; a.style.height && f.css("height", a.style.height); a.style.width ? f.css("width", a.style.width) : (f.css("width", "").addClass(M), c = f.width() + 1, d = f.css("max-width") || "", v = f.css("min-width") || "", b = -1 < (d + v).indexOf("%") ? b.width() / 100 : 0, d = (-1 < d.indexOf("%") ? b : 1) * parseInt(d, 10) || c, v = (-1 < v.indexOf("%") ? b : 1) * parseInt(v, 10) || 0, c = d + v ? Math.min(Math.max(c, v), d) : c, f.css("width", Math.round(c)).removeClass(M)); x = 0; return e }, disable: function (b) { "boolean" !== typeof b && (b = !(f.hasClass(H) || z.disabled)); e.rendered ? (f.toggleClass(H, b), d.attr(f[0], "aria-disabled", b)) : z.disabled = !!b; return e }, enable: function () { return e.disable(g) }, destroy: function () { var b = c[0], v = d.attr(b, L), h = c.data("qtip"); e.rendered && (f.stop(1, 0).remove(), d.each(e.plugins, function () { this.destroy && this.destroy() })); clearTimeout(e.timers.show); clearTimeout(e.timers.hide); F(); if (!h || e === h) d.removeData(b, "qtip"), a.suppress && v && (d.attr(b, "title", v), c.removeAttr(L)), c.removeAttr("aria-describedby"); c.unbind(".qtip-" + q); delete V[e.id]; return c } }) } function $(c, a) { var q, p, r, o, y, j = d(this), u = d(document.body), s = this === document ? u : j; p = j.metadata ? j.metadata(a.metadata) : k; o = "html5" === a.metadata.type && p ? p[a.metadata.name] : k; var n = j.data(a.metadata.name || "qtipopts"); try { n = "string" === typeof n ? (new Function("return " + n))() : n } catch (E) { O("Unable to parse HTML5 attribute data: " + n) } o = d.extend(w, {}, D.defaults, a, "object" === typeof n ? R(n) : k, R(o || p)); p = o.position; o.id = c; if ("boolean" === typeof o.content.text) if (r = j.attr(o.content.attr), o.content.attr !== g && r) o.content.text = r; else return O("Unable to locate content for tooltip! Aborting render of tooltip on element: ", j), g; p.container.length || (p.container = u); p.target === g && (p.target = s); o.show.target === g && (o.show.target = s); o.show.solo === w && (o.show.solo = p.container.closest("body")); o.hide.target === g && (o.hide.target = s); o.position.viewport === w && (o.position.viewport = p.container); p.container = p.container.eq(0); p.at = new A.Corner(p.at); p.my = new A.Corner(p.my); if (d.data(this, "qtip")) if (o.overwrite) j.qtip("destroy"); else if (o.overwrite === g) return g; o.suppress && (y = d.attr(this, "title")) && d(this).removeAttr("title").attr(L, y); q = new X(j, o, c, !!r); d.data(this, "qtip", q); j.bind("remove.qtip-" + c + " removeqtip.qtip-" + c, function () { q.destroy() }); return q } function aa(c, a, d) { var g = Math.ceil(a / 2), k = Math.ceil(d / 2), a = { bottomright: [[0, 0], [a, d], [a, 0]], bottomleft: [[0, 0], [a, 0], [0, d]], topright: [[0, d], [a, 0], [a, d]], topleft: [[0, 0], [0, d], [a, d]], topcenter: [[0, d], [g, 0], [a, d]], bottomcenter: [[0, 0], [a, 0], [g, d]], rightcenter: [[0, 0], [a, k], [0, d]], leftcenter: [[a, 0], [a, d], [0, k]] }; a.lefttop = a.bottomright; a.righttop = a.bottomleft; a.leftbottom = a.topright; a.rightbottom = a.topleft; return a[c.string()] } function ba(c) { var a, q, p; function r(d, e, f) { if (s.tip) { var d = j.corner.clone(), e = f.adjusted, h = c.options.position.adjust.method.split(" "), i = h[0], h = h[1] || h[0], k = g, b = g, o = 0, m = 0, t, r = {}, n; j.corner.fixed !== w && ("shift" === i && "x" === d.precedance && e.left && "center" !== d.y ? d.precedance = "x" === d.precedance ? "y" : "x" : "flip" === i && e.left && (d.x = "center" === d.x ? 0 < e.left ? "left" : "right" : "left" === d.x ? "right" : "left"), "shift" === h && "y" === d.precedance && e.top && "center" !== d.x ? d.precedance = "y" === d.precedance ? "x" : "y" : "flip" === h && e.top && (d.y = "center" === d.y ? 0 < e.top ? "top" : "bottom" : "top" === d.y ? "bottom" : "top"), d.string() !== a.string() && (q !== e.top || p !== e.left) && j.update(d, g)); t = j.position(d, e); t.right !== I && (t.left = -t.right); t.bottom !== I && (t.top = -t.bottom); t.user = Math.max(0, u.offset); if (k = "shift" === i && !!e.left) if ("center" === d.x) r["margin-left"] = o = t["margin-left"] - e.left; else { n = t.right !== I ? [e.left, -t.left] : [-e.left, t.left]; if ((o = Math.max(n[0], n[1])) > n[0]) f.left -= e.left, k = g; r[t.right !== I ? "right" : "left"] = o } if (b = "shift" === h && !!e.top) if ("center" === d.y) r["margin-top"] = m = t["margin-top"] - e.top; else { n = t.bottom !== I ? [e.top, -t.top] : [-e.top, t.top]; if ((m = Math.max(n[0], n[1])) > n[0]) f.top -= e.top, b = g; r[t.bottom !== I ? "bottom" : "top"] = m } s.tip.css(r).toggle(!(o && m || "center" === d.x && m || "center" === d.y && o)); f.left -= t.left.charAt ? t.user : "shift" !== i || b || !k && !b ? t.left : 0; f.top -= t.top.charAt ? t.user : "shift" !== h || k || !k && !b ? t.top : 0; p = e.left; q = e.top; a = d.clone() } } function o(a, d, c) { var d = !d ? a[a.precedance] : d, e = n.hasClass(M), a = s.titlebar && "top" === a.y ? s.titlebar : s.content, d = "border-" + d + "-width"; n.addClass(M); a = parseInt(a.css(d), 10); a = (c ? a || parseInt(n.css(d), 10) : a) || 0; n.toggleClass(M, e); return a } function y(a) { var d = "y" === a.precedance, c = E[d ? "width" : "height"], e = E[d ? "height" : "width"], i = -1 < a.string().indexOf("center"), g = c * (i ? 0.5 : 1), b = Math.pow, a = Math.round, j = Math.sqrt(b(g, 2) + b(e, 2)), g = [B / g * j, B / e * j]; g[2] = Math.sqrt(b(g[0], 2) - b(B, 2)); g[3] = Math.sqrt(b(g[1], 2) - b(B, 2)); i = (j + g[2] + g[3] + (i ? 0 : g[0])) / j; c = [a(i * e), a(i * c)]; return { height: c[d ? 0 : 1], width: c[d ? 1 : 0]} } var j = this, u = c.options.style.tip, s = c.elements, n = s.tooltip; p = q = 0; a = void 0; var E = { width: u.width, height: u.height }, F, e, B = u.border || 0, D = !!(d("<canvas />")[0] || {}).getContext; j.corner = k; j.mimic = k; j.border = B; j.offset = u.offset; j.size = E; c.checks.tip = { "^position.my|style.tip.(corner|mimic|border)$": function () { j.init() || j.destroy(); c.reposition() }, "^style.tip.(height|width)$": function () { E = { width: u.width, height: u.height }; j.create(); j.update(); c.reposition() }, "^content.title.text|style.(classes|widget)$": function () { s.tip && j.update() } }; d.extend(j, { init: function () { var a = j.detectCorner() && (D || d.browser.msie); a && (j.create(), j.update(), n.unbind(".qtip-tip").bind("tooltipmove.qtip-tip", r)); return a }, detectCorner: function () { var d = u.corner, e = c.options.position, f = e.at, e = e.my.string ? e.my.string() : e.my; if (d === g || e === g && f === g) return g; d === w ? j.corner = new A.Corner(e) : d.string || (j.corner = new A.Corner(d), j.corner.fixed = w); a = new A.Corner(j.corner.string()); return "centercenter" !== j.corner.string() }, detectColours: function (a) { var g, f, h = s.tip.css("cssText", ""); g = a || j.corner; var i = g[g.precedance], a = "border-" + i + "-color"; f = "border" + i.charAt(0) + i.substr(1) + "Color"; var i = /rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i, q = d(document.body).css("color"); c.elements.content.css("color"); var b = s.titlebar && ("top" === g.y || "center" === g.y && h.position().top + E.height / 2 + u.offset < s.titlebar.outerHeight(1)) ? s.titlebar : s.content; n.addClass(M); F = g = h.css("background-color"); e = f = h[0].style[f] || h.css(a) || n.css(a); if (!g || i.test(g)) F = b.css("background-color") || "transparent", i.test(F) && (F = n.css("background-color") || g); if (!f || i.test(f) || f === q) e = b.css(a) || "transparent", i.test(e) && (e = f); d("*", h).add(h).css("cssText", "background-color:transparent !important;border:0 !important;"); n.removeClass(M) }, create: function () { var a = E.width, c = E.height; s.tip && s.tip.remove(); s.tip = d("<div />", { "class": "ui-tooltip-tip" }).css({ width: a, height: c }).prependTo(n); D ? d("<canvas />").appendTo(s.tip)[0].getContext("2d").save() : (s.tip.html('<vml:shape coordorigin="0,0" style="display:inline-block; position:absolute; behavior:url(#default#VML);"></vml:shape><vml:shape coordorigin="0,0" style="display:inline-block; position:absolute; behavior:url(#default#VML);"></vml:shape>'), d("*", s.tip).bind("click mousedown", function (a) { a.stopPropagation() })) }, update: function (c, q) { var f = s.tip, h = f.children(), i = E.width, p = E.height, b = u.mimic, r = Math.round, m, t, n; c || (c = a || j.corner); b === g ? b = c : (b = new A.Corner(b), b.precedance = c.precedance, "inherit" === b.x ? b.x = c.x : "inherit" === b.y ? b.y = c.y : b.x === b.y && (b[c.precedance] = c[c.precedance])); m = b.precedance; j.detectColours(c); "transparent" !== e && "#123456" !== e ? (B = o(c, k, w), 0 === u.border && 0 < B && (F = e), j.border = B = u.border !== w ? u.border : B) : j.border = B = 0; t = aa(b, i, p); j.size = n = y(c); f.css(n); f = "y" === c.precedance ? [r("left" === b.x ? B : "right" === b.x ? n.width - i - B : (n.width - i) / 2), r("top" === b.y ? n.height - p : 0)] : [r("left" === b.x ? n.width - i : 0), r("top" === b.y ? B : "bottom" === b.y ? n.height - p - B : (n.height - p) / 2)]; D ? (h.attr(n), h = h[0].getContext("2d"), h.restore(), h.save(), h.clearRect(0, 0, 3E3, 3E3), h.translate(f[0], f[1]), h.beginPath(), h.moveTo(t[0][0], t[0][1]), h.lineTo(t[1][0], t[1][1]), h.lineTo(t[2][0], t[2][1]), h.closePath(), h.fillStyle = F, h.strokeStyle = e, h.lineWidth = 2 * B, h.lineJoin = "miter", h.miterLimit = 100, B && h.stroke(), h.fill()) : (t = "m" + t[0][0] + "," + t[0][1] + " l" + t[1][0] + "," + t[1][1] + " " + t[2][0] + "," + t[2][1] + " xe", f[2] = B && /^(r|b)/i.test(c.string()) ? 8 === parseFloat(d.browser.version, 10) ? 2 : 1 : 0, h.css({ antialias: "" + (-1 < b.string().indexOf("center")), left: f[0] - f[2] * Number("x" === m), top: f[1] - f[2] * Number("y" === m), width: i + B, height: p + B }).each(function (b) { var a = d(this); a[a.prop ? "prop" : "attr"]({ coordsize: i + B + " " + (p + B), path: t, fillcolor: F, filled: !!b, stroked: !b }).css({ display: B || b ? "block" : "none" }); !b && a.html() === "" && a.html('<vml:stroke weight="' + B * 2 + 'px" color="' + e + '" miterlimit="1000" joinstyle="miter" style="behavior:url(#default#VML); display:inline-block;" />') })); q !== g && j.position(c) }, position: function (a) { var c = s.tip, e = {}, h = Math.max(0, u.offset), i, q, b; if (u.corner === g || !c) return g; a = a || j.corner; i = a.precedance; q = y(a); b = [a.x, a.y]; "x" === i && b.reverse(); d.each(b, function (b, c) { var g, j; if ("center" === c) g = "y" === i ? "left" : "top", e[g] = "50%", e["margin-" + g] = -Math.round(q["y" === i ? "width" : "height"] / 2) + h; else { g = o(a, c, w); j = d.browser.mozilla; var p = a.y + (j ? "" : "-") + a.x; j = (j ? "-moz-" : d.browser.webkit ? "-webkit-" : "") + (j ? "border-radius-" + p : "border-" + p + "-radius"); j = parseInt((s.titlebar && "top" === a.y ? s.titlebar : s.content).css(j), 10) || parseInt(n.css(j), 10) || 0; e[c] = b ? B ? o(a, c) : 0 : h + (j > g ? j : 0) } }); e[a[i]] -= q["x" === i ? "width" : "height"]; c.css({ top: "", bottom: "", left: "", right: "", margin: "" }).css(e); return e }, destroy: function () { s.tip && s.tip.remove(); n.unbind(".qtip-tip") } }); j.init() } var w = !0, g = !1, k = null, I, D, A, J, V = {}, G = "ui-tooltip", U = "ui-widget", H = "ui-state-disabled", Q = "div.qtip." + G, W = G + "-default", T = G + "-focus", Z = G + "-hover", M = G + "-fluid", L = "oldtitle", S; D = d.fn.qtip = function (c, a, q) { var p = ("" + c).toLowerCase(), r = k, o = d.makeArray(arguments).slice(1), y = o[o.length - 1], j = this[0] ? d.data(this[0], "qtip") : k; if (!arguments.length && j || "api" === p) return j; if ("string" === typeof c) return this.each(function () { var c = d.data(this, "qtip"); if (!c) return w; y && y.timeStamp && (c.cache.event = y); if (("option" === p || "options" === p) && a) if (d.isPlainObject(a) || q !== I) c.set(a, q); else return r = c.get(a), g; else c[p] && c[p].apply(c[p], o) }), r !== k ? r : this; if ("object" === typeof c || !arguments.length) return j = R(d.extend(w, {}, c)), D.bind.call(this, j, y) }; D.bind = function (c, a) { return this.each(function (q) { var p, k, o, y; function j(a) { function c() { n.render("object" === typeof a || u.show.ready); o.add(y).unbind(s) } if (n.cache.disabled) return g; n.cache.event = d.extend({}, a); n.cache.target = a ? d(a.target) : [I]; 0 < u.show.delay ? (clearTimeout(n.timers.show), n.timers.show = setTimeout(c, u.show.delay), p !== k && y.bind(k, function () { clearTimeout(n.timers.show) })) : c() } var u, s, n, q = d.isArray(c.id) ? c.id[q] : c.id, q = !q || q === g || 1 > q.length || V[q] ? D.nextid++ : V[q] = q; s = ".qtip-" + q + "-create"; n = $.call(this, q, c); if (n === g) return w; u = n.options; d.each(A, function () { "initialize" === this.initialize && this(n) }); o = u.show.target; y = u.hide.target; p = d.trim("" + u.show.event).replace(/ /g, s + " ") + s; k = d.trim("" + u.hide.event).replace(/ /g, s + " ") + s; /mouse(over|enter)/i.test(p) && !/mouse(out|leave)/i.test(k) && (k += " mouseleave" + s); o.bind("mousemove" + s, function (a) { J = { pageX: a.pageX, pageY: a.pageY, type: "mousemove" }; n.cache.onTarget = w }); o.bind(p, j); (u.show.ready || u.prerender) && j(a) }) }; A = D.plugins = { Corner: function (c) { c = ("" + c).replace(/([A-Z])/, " $1").replace(/middle/gi, "center").toLowerCase(); this.x = (c.match(/left|right/i) || c.match(/center/) || ["inherit"])[0].toLowerCase(); this.y = (c.match(/top|bottom|center/i) || ["inherit"])[0].toLowerCase(); c = c.charAt(0); this.precedance = "t" === c || "b" === c ? "y" : "x"; this.string = function () { return "y" === this.precedance ? this.y + this.x : this.x + this.y }; this.abbrev = function () { var a = this.x.substr(0, 1), c = this.y.substr(0, 1); return a === c ? a : "c" === a || "c" !== a && "c" !== c ? c + a : a + c }; this.clone = function () { return { x: this.x, y: this.y, precedance: this.precedance, string: this.string, abbrev: this.abbrev, clone: this.clone } } }, offset: function (c, a) { var g = c.offset(), k = c.closest("body")[0], r = a, o, w, j; if (r) { do if ("static" !== r.css("position") && (w = r.position(), g.left -= w.left + (parseInt(r.css("borderLeftWidth"), 10) || 0) + (parseInt(r.css("marginLeft"), 10) || 0), g.top -= w.top + (parseInt(r.css("borderTopWidth"), 10) || 0) + (parseInt(r.css("marginTop"), 10) || 0), !o && "hidden" !== (j = r.css("overflow")) && "visible" !== j)) o = r; while ((r = d(r[0].offsetParent)).length); o && o[0] !== k && (k = o, g.left += 1 * k.scrollLeft(), g.top += 1 * k.scrollTop()) } return g }, iOS: parseFloat(("" + (/CPU.*OS ([0-9_]{1,3})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent) || [0, ""])[1]).replace("undefined", "3_2").replace("_", ".")) || g, fn: { attr: function (c, a) { if (this.length) { var g = this[0], k = d.data(g, "qtip"); if ("title" === c && k && "object" === typeof k && k.options.suppress) { if (2 > arguments.length) return d.attr(g, L); k && "title" === k.options.content.attr && k.cache.attr && k.set("content.text", a); return this.attr(L, a) } } return d.fn.attr_replacedByqTip.apply(this, arguments) }, clone: function (c) { d([]); var a = d.fn.clone_replacedByqTip.apply(this, arguments); c || a.filter("[" + L + "]").attr("title", function () { return d.attr(this, L) }).removeAttr(L); return a } } }; d.each(A.fn, function (c, a) { if (!a || d.fn[c + "_replacedByqTip"]) return w; var g = d.fn[c + "_replacedByqTip"] = d.fn[c]; d.fn[c] = function () { return a.apply(this, arguments) || g.apply(this, arguments) } }); d.ui || (d.cleanData_replacedByqTip = d.cleanData, d.cleanData = function (c) { for (var a = 0, g; (g = c[a]) !== I; a++) try { d(g).triggerHandler("removeqtip") } catch (k) { } d.cleanData_replacedByqTip(c) }); D.version = "nightly"; D.nextid = 0; D.inactiveEvents = "click,dblclick,mousedown,mouseup,mousemove,mouseleave,mouseenter".split(","); D.zindex = 15E3; D.defaults = { prerender: g, id: g, overwrite: w, suppress: w, content: { text: w, attr: "title", title: { text: g, button: g} }, position: { my: "top left", at: "bottom right", target: g, container: g, viewport: g, adjust: { x: 0, y: 0, mouse: w, resize: w, method: "flip flip" }, effect: function (c, a) { d(this).animate(a, { duration: 200, queue: g }) } }, show: { target: g, event: "mouseenter", effect: w, delay: 90, solo: g, ready: g, autofocus: g }, hide: { target: g, event: "mouseleave", effect: w, delay: 0, fixed: g, inactive: g, leave: "window", distance: g }, style: { classes: "", widget: g, width: g, height: g, def: w }, events: { render: k, move: k, show: k, hide: k, toggle: k, visible: k, hidden: k, focus: k, blur: k} }; A.tip = function (c) { var a = c.plugins.tip; return "object" === typeof a ? a : c.plugins.tip = new ba(c) }; A.tip.initialize = "render"; A.tip.sanitize = function (c) { var a = c.style; if (a && "tip" in a) { a = c.style.tip; if (typeof a !== "object") c.style.tip = { corner: a }; if (!/string|boolean/i.test(typeof a.corner)) a.corner = w; typeof a.width !== "number" && delete a.width; typeof a.height !== "number" && delete a.height; typeof a.border !== "number" && a.border !== w && delete a.border; typeof a.offset !== "number" && delete a.offset } }; d.extend(w, D.defaults, { style: { tip: { corner: w, mimic: g, width: 6, height: 6, border: w, offset: 0}} }) }); (function(n){n.fn.zclip=function(t){if(typeof t!="object"||t.length){if(typeof t=="string")return this.each(function(){var r=n(this),u,i;t=t.toLowerCase(),u=r.data("zclipId"),i=n("#"+u+".zclip"),t=="remove"?(i.remove(),r.removeClass("active hover")):t=="hide"?(i.hide(),r.removeClass("active hover")):t=="show"&&i.show()})}else{var i=n.extend({path:"ZeroClipboard.swf",copy:null,beforeCopy:null,afterCopy:null,clickAfter:!0,setHandCursor:!0,setCSSEffects:!0},t);return this.each(function(){var t=n(this),r;(typeof i.copy=="string"||n.isFunction(i.copy))&&(ZeroClipboard.setMoviePath(i.path),r=new ZeroClipboard.Client,n.isFunction(i.copy)&&t.bind("zClip_copy",i.copy),n.isFunction(i.beforeCopy)&&t.bind("zClip_beforeCopy",i.beforeCopy),n.isFunction(i.afterCopy)&&t.bind("zClip_afterCopy",i.afterCopy),r.setHandCursor(i.setHandCursor),r.setCSSEffects(i.setCSSEffects),r.addEventListener("mouseOver",function(){t.trigger("mouseenter")}),r.addEventListener("mouseOut",function(){t.trigger("mouseleave")}),r.addEventListener("mouseDown",function(){t.trigger("mousedown"),n.isFunction(i.copy)?r.setText(t.triggerHandler("zClip_copy")):r.setText(i.copy),n.isFunction(i.beforeCopy)&&t.trigger("zClip_beforeCopy")}),r.addEventListener("complete",function(r,u){n.isFunction(i.afterCopy)?t.trigger("zClip_afterCopy"):(u.length>500&&(u=u.substr(0,500)+"...\n\n("+(u.length-500)+" characters not shown)"),t.removeClass("hover"),alert("Copied text to clipboard:\n\n "+u)),i.clickAfter&&t.trigger("click")}),r.glue(t[0],t.parent()[0]),n(window).bind("load resize",function(){r.reposition()}))})}}})(jQuery);var ZeroClipboard={version:"1.0.7",clients:{},moviePath:"ZeroClipboard.swf",nextId:1,$:function(n){return typeof n=="string"&&(n=document.getElementById(n)),n.addClass||(n.hide=function(){this.style.display="none"},n.show=function(){this.style.display=""},n.addClass=function(n){this.removeClass(n),this.className+=" "+n},n.removeClass=function(n){for(var i=this.className.split(/\s+/),r=-1,t=0;t<i.length;t++)i[t]==n&&(r=t,t=i.length);return r>-1&&(i.splice(r,1),this.className=i.join(" ")),this},n.hasClass=function(n){return!!this.className.match(new RegExp("\\s*"+n+"\\s*"))}),n},setMoviePath:function(n){this.moviePath=n},dispatch:function(n,t,i){var r=this.clients[n];r&&r.receiveEvent(t,i)},register:function(n,t){this.clients[n]=t},getDOMObjectPosition:function(n,t){var i={left:0,top:0,width:n.width?n.width:n.offsetWidth,height:n.height?n.height:n.offsetHeight};return n&&n!=t&&(i.left+=n.offsetLeft,i.top+=n.offsetTop),i},Client:function(n){this.handlers={},this.id=ZeroClipboard.nextId++,this.movieId="ZeroClipboardMovie_"+this.id,ZeroClipboard.register(this.id,this),n&&this.glue(n)}};ZeroClipboard.Client.prototype={id:0,ready:!1,movie:null,clipText:"",handCursorEnabled:!0,cssEffects:!0,handlers:null,glue:function(n,t,i){var f,u,r;if(this.domElement=ZeroClipboard.$(n),f=99,this.domElement.style.zIndex&&(f=parseInt(this.domElement.style.zIndex,10)+1),typeof t=="string"?t=ZeroClipboard.$(t):typeof t=="undefined"&&(t=document.getElementsByTagName("body")[0]),u=ZeroClipboard.getDOMObjectPosition(this.domElement,t),this.div=document.createElement("div"),this.div.className="zclip",this.div.id="zclip-"+this.movieId,$(this.domElement).data("zclipId","zclip-"+this.movieId),r=this.div.style,r.position="absolute",r.left=""+u.left+"px",r.top=""+u.top+"px",r.width=""+u.width+"px",r.height=""+u.height+"px",r.zIndex=f,typeof i=="object")for(addedStyle in i)r[addedStyle]=i[addedStyle];t.appendChild(this.div),this.div.innerHTML=this.getHTML(u.width,u.height)},getHTML:function(n,t){var i="",r="id="+this.id+"&width="+n+"&height="+t,u;return navigator.userAgent.match(/MSIE/)?(u=location.href.match(/^https/i)?"https://":"http://",i+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="'+u+'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+n+'" height="'+t+'" id="'+this.movieId+'" align="middle"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" /><param name="movie" value="'+ZeroClipboard.moviePath+'" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="bgcolor" value="#ffffff" /><param name="flashvars" value="'+r+'"/><param name="wmode" value="transparent"/><\/object>'):i+='<embed id="'+this.movieId+'" src="'+ZeroClipboard.moviePath+'" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="'+n+'" height="'+t+'" name="'+this.movieId+'" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="'+r+'" wmode="transparent" />',i},hide:function(){this.div&&(this.div.style.left="-2000px")},show:function(){this.reposition()},destroy:function(){if(this.domElement&&this.div){this.hide(),this.div.innerHTML="";var n=document.getElementsByTagName("body")[0];try{n.removeChild(this.div)}catch(t){}this.domElement=null,this.div=null}},reposition:function(n){if(n&&(this.domElement=ZeroClipboard.$(n),this.domElement||this.hide()),this.domElement&&this.div){var t=ZeroClipboard.getDOMObjectPosition(this.domElement),i=this.div.style;i.left=""+t.left+"px",i.top=""+t.top+"px"}},setText:function(n){this.clipText=n,this.ready&&this.movie.setText(n)},addEventListener:function(n,t){n=n.toString().toLowerCase().replace(/^on/,""),this.handlers[n]||(this.handlers[n]=[]),this.handlers[n].push(t)},setHandCursor:function(n){this.handCursorEnabled=n,this.ready&&this.movie.setHandCursor(n)},setCSSEffects:function(n){this.cssEffects=!!n},receiveEvent:function(n,t){var r,u,f,i;n=n.toString().toLowerCase().replace(/^on/,"");switch(n){case"load":if(this.movie=document.getElementById(this.movieId),!this.movie){r=this,setTimeout(function(){r.receiveEvent("load",null)},1);return}if(!this.ready&&navigator.userAgent.match(/Firefox/)&&navigator.userAgent.match(/Windows/)){r=this,setTimeout(function(){r.receiveEvent("load",null)},100),this.ready=!0;return}this.ready=!0;try{this.movie.setText(this.clipText)}catch(e){}try{this.movie.setHandCursor(this.handCursorEnabled)}catch(e){}break;case"mouseover":this.domElement&&this.cssEffects&&(this.domElement.addClass("hover"),this.recoverActive&&this.domElement.addClass("active"));break;case"mouseout":this.domElement&&this.cssEffects&&(this.recoverActive=!1,this.domElement.hasClass("active")&&(this.domElement.removeClass("active"),this.recoverActive=!0),this.domElement.removeClass("hover"));break;case"mousedown":this.domElement&&this.cssEffects&&this.domElement.addClass("active");break;case"mouseup":this.domElement&&this.cssEffects&&(this.domElement.removeClass("active"),this.recoverActive=!1)}if(this.handlers[n])for(u=0,f=this.handlers[n].length;u<f;u++)i=this.handlers[n][u],typeof i=="function"?i(this,t):typeof i=="object"&&i.length==2?i[0][i[1]](this,t):typeof i=="string"&&window[i](this,t)}}; //@ sourceMappingURL=jquery.zclip.min.js.map /* * JSizes - JQuery plugin v0.33 * * Licensed under the revised BSD License. * Copyright 2008-2010 Bram Stein * All rights reserved. */ (function ($) { var num = function (value) { return parseInt(value, 10) || 0 }; $.each(["min", "max"], function (i, name) { $.fn[name + "Size"] = function (value) { var width, height; if (value) { if (value.width !== undefined) this.css(name + "-width", value.width); if (value.height !== undefined) this.css(name + "-height", value.height); return this } else { width = this.css(name + "-width"); height = this.css(name + "-height"); return { "width": name === "max" && (width === undefined || width === "none" || num(width) === -1) && Number.MAX_VALUE || num(width), "height": name === "max" && (height === undefined || height === "none" || num(height) === -1) && Number.MAX_VALUE || num(height) } } } }); $.fn.isVisible = function () { return this.is(":visible") }; $.each(["border", "margin", "padding"], function (i, name) { $.fn[name] = function (value) { if (value) { if (value.top !== undefined) this.css(name + "-top" + (name === "border" ? "-width" : ""), value.top); if (value.bottom !== undefined) this.css(name + "-bottom" + (name === "border" ? "-width" : ""), value.bottom); if (value.left !== undefined) this.css(name + "-left" + (name === "border" ? "-width" : ""), value.left); if (value.right !== undefined) this.css(name + "-right" + (name === "border" ? "-width" : ""), value.right); return this } else return { top: num(this.css(name + "-top" + (name === "border" ? "-width" : ""))), bottom: num(this.css(name + "-bottom" + (name === "border" ? "-width" : ""))), left: num(this.css(name + "-left" + (name === "border" ? "-width" : ""))), right: num(this.css(name + "-right" + (name === "border" ? "-width" : "")))} } }) })(jQuery); /*! * jQuery UI 1.8.18 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI */(function(a,b){function d(b){return!a(b).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}function c(b,c){var e=b.nodeName.toLowerCase();if("area"===e){var f=b.parentNode,g=f.name,h;if(!b.href||!g||f.nodeName.toLowerCase()!=="map")return!1;h=a("img[usemap=#"+g+"]")[0];return!!h&&d(h)}return(/input|select|textarea|button|object/.test(e)?!b.disabled:"a"==e?b.href||c:c)&&d(b)}a.ui=a.ui||{};a.ui.version||(a.extend(a.ui,{version:"1.8.18",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),a.fn.extend({propAttr:a.fn.prop||a.fn.attr,_focus:a.fn.focus,focus:function(b,c){return typeof b=="number"?this.each(function(){var d=this;setTimeout(function(){a(d).focus(),c&&c.call(d)},b)}):this._focus.apply(this,arguments)},scrollParent:function(){var b;a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?b=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):b=this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(c){if(c!==b)return this.css("zIndex",c);if(this.length){var d=a(this[0]),e,f;while(d.length&&d[0]!==document){e=d.css("position");if(e==="absolute"||e==="relative"||e==="fixed"){f=parseInt(d.css("zIndex"),10);if(!isNaN(f)&&f!==0)return f}d=d.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.each(["Width","Height"],function(c,d){function h(b,c,d,f){a.each(e,function(){c-=parseFloat(a.curCSS(b,"padding"+this,!0))||0,d&&(c-=parseFloat(a.curCSS(b,"border"+this+"Width",!0))||0),f&&(c-=parseFloat(a.curCSS(b,"margin"+this,!0))||0)});return c}var e=d==="Width"?["Left","Right"]:["Top","Bottom"],f=d.toLowerCase(),g={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+d]=function(c){if(c===b)return g["inner"+d].call(this);return this.each(function(){a(this).css(f,h(this,c)+"px")})},a.fn["outer"+d]=function(b,c){if(typeof b!="number")return g["outer"+d].call(this,b);return this.each(function(){a(this).css(f,h(this,b,!0,c)+"px")})}}),a.extend(a.expr[":"],{data:function(b,c,d){return!!a.data(b,d[3])},focusable:function(b){return c(b,!isNaN(a.attr(b,"tabindex")))},tabbable:function(b){var d=a.attr(b,"tabindex"),e=isNaN(d);return(e||d>=0)&&c(b,!e)}}),a(function(){var b=document.body,c=b.appendChild(c=document.createElement("div"));c.offsetHeight,a.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),a.support.minHeight=c.offsetHeight===100,a.support.selectstart="onselectstart"in c,b.removeChild(c).style.display="none"}),a.extend(a.ui,{plugin:{add:function(b,c,d){var e=a.ui[b].prototype;for(var f in d)e.plugins[f]=e.plugins[f]||[],e.plugins[f].push([c,d[f]])},call:function(a,b,c){var d=a.plugins[b];if(!!d&&!!a.element[0].parentNode)for(var e=0;e<d.length;e++)a.options[d[e][0]]&&d[e][1].apply(a.element,c)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(b,c){if(a(b).css("overflow")==="hidden")return!1;var d=c&&c==="left"?"scrollLeft":"scrollTop",e=!1;if(b[d]>0)return!0;b[d]=1,e=b[d]>0,b[d]=0;return e},isOverAxis:function(a,b,c){return a>b&&a<b+c},isOver:function(b,c,d,e,f,g){return a.ui.isOverAxis(b,d,f)&&a.ui.isOverAxis(c,e,g)}}))})(jQuery);/*! * jQuery UI Widget 1.8.18 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Widget */(function(a,b){if(a.cleanData){var c=a.cleanData;a.cleanData=function(b){for(var d=0,e;(e=b[d])!=null;d++)try{a(e).triggerHandler("remove")}catch(f){}c(b)}}else{var d=a.fn.remove;a.fn.remove=function(b,c){return this.each(function(){c||(!b||a.filter(b,[this]).length)&&a("*",this).add([this]).each(function(){try{a(this).triggerHandler("remove")}catch(b){}});return d.call(a(this),b,c)})}}a.widget=function(b,c,d){var e=b.split(".")[0],f;b=b.split(".")[1],f=e+"-"+b,d||(d=c,c=a.Widget),a.expr[":"][f]=function(c){return!!a.data(c,b)},a[e]=a[e]||{},a[e][b]=function(a,b){arguments.length&&this._createWidget(a,b)};var g=new c;g.options=a.extend(!0,{},g.options),a[e][b].prototype=a.extend(!0,g,{namespace:e,widgetName:b,widgetEventPrefix:a[e][b].prototype.widgetEventPrefix||b,widgetBaseClass:f},d),a.widget.bridge(b,a[e][b])},a.widget.bridge=function(c,d){a.fn[c]=function(e){var f=typeof e=="string",g=Array.prototype.slice.call(arguments,1),h=this;e=!f&&g.length?a.extend.apply(null,[!0,e].concat(g)):e;if(f&&e.charAt(0)==="_")return h;f?this.each(function(){var d=a.data(this,c),f=d&&a.isFunction(d[e])?d[e].apply(d,g):d;if(f!==d&&f!==b){h=f;return!1}}):this.each(function(){var b=a.data(this,c);b?b.option(e||{})._init():a.data(this,c,new d(e,this))});return h}},a.Widget=function(a,b){arguments.length&&this._createWidget(a,b)},a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function(b,c){a.data(c,this.widgetName,this),this.element=a(c),this.options=a.extend(!0,{},this.options,this._getCreateOptions(),b);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()}),this._create(),this._trigger("create"),this._init()},_getCreateOptions:function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName),this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled "+"ui-state-disabled")},widget:function(){return this.element},option:function(c,d){var e=c;if(arguments.length===0)return a.extend({},this.options);if(typeof c=="string"){if(d===b)return this.options[c];e={},e[c]=d}this._setOptions(e);return this},_setOptions:function(b){var c=this;a.each(b,function(a,b){c._setOption(a,b)});return this},_setOption:function(a,b){this.options[a]=b,a==="disabled"&&this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled"+" "+"ui-state-disabled").attr("aria-disabled",b);return this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(b,c,d){var e,f,g=this.options[b];d=d||{},c=a.Event(c),c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase(),c.target=this.element[0],f=c.originalEvent;if(f)for(e in f)e in c||(c[e]=f[e]);this.element.trigger(c,d);return!(a.isFunction(g)&&g.call(this.element[0],c,d)===!1||c.isDefaultPrevented())}}})(jQuery);/*! * jQuery UI Mouse 1.8.18 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Mouse * * Depends: * jquery.ui.widget.js */(function(a,b){var c=!1;a(document).mouseup(function(a){c=!1}),a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(a){return b._mouseDown(a)}).bind("click."+this.widgetName,function(c){if(!0===a.data(c.target,b.widgetName+".preventClickEvent")){a.removeData(c.target,b.widgetName+".preventClickEvent"),c.stopImmediatePropagation();return!1}}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(b){if(!c){this._mouseStarted&&this._mouseUp(b),this._mouseDownEvent=b;var d=this,e=b.which==1,f=typeof this.options.cancel=="string"&&b.target.nodeName?a(b.target).closest(this.options.cancel).length:!1;if(!e||f||!this._mouseCapture(b))return!0;this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){d.mouseDelayMet=!0},this.options.delay));if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=this._mouseStart(b)!==!1;if(!this._mouseStarted){b.preventDefault();return!0}}!0===a.data(b.target,this.widgetName+".preventClickEvent")&&a.removeData(b.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(a){return d._mouseMove(a)},this._mouseUpDelegate=function(a){return d._mouseUp(a)},a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),b.preventDefault(),c=!0;return!0}},_mouseMove:function(b){if(a.browser.msie&&!(document.documentMode>=9)&&!b.button)return this._mouseUp(b);if(this._mouseStarted){this._mouseDrag(b);return b.preventDefault()}this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==!1,this._mouseStarted?this._mouseDrag(b):this._mouseUp(b));return!this._mouseStarted},_mouseUp:function(b){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,b.target==this._mouseDownEvent.target&&a.data(b.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(b));return!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(a){return this.mouseDelayMet},_mouseStart:function(a){},_mouseDrag:function(a){},_mouseStop:function(a){},_mouseCapture:function(a){return!0}})})(jQuery);/* * jQuery UI Position 1.8.18 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Position */(function(a,b){a.ui=a.ui||{};var c=/left|center|right/,d=/top|center|bottom/,e="center",f={},g=a.fn.position,h=a.fn.offset;a.fn.position=function(b){if(!b||!b.of)return g.apply(this,arguments);b=a.extend({},b);var h=a(b.of),i=h[0],j=(b.collision||"flip").split(" "),k=b.offset?b.offset.split(" "):[0,0],l,m,n;i.nodeType===9?(l=h.width(),m=h.height(),n={top:0,left:0}):i.setTimeout?(l=h.width(),m=h.height(),n={top:h.scrollTop(),left:h.scrollLeft()}):i.preventDefault?(b.at="left top",l=m=0,n={top:b.of.pageY,left:b.of.pageX}):(l=h.outerWidth(),m=h.outerHeight(),n=h.offset()),a.each(["my","at"],function(){var a=(b[this]||"").split(" ");a.length===1&&(a=c.test(a[0])?a.concat([e]):d.test(a[0])?[e].concat(a):[e,e]),a[0]=c.test(a[0])?a[0]:e,a[1]=d.test(a[1])?a[1]:e,b[this]=a}),j.length===1&&(j[1]=j[0]),k[0]=parseInt(k[0],10)||0,k.length===1&&(k[1]=k[0]),k[1]=parseInt(k[1],10)||0,b.at[0]==="right"?n.left+=l:b.at[0]===e&&(n.left+=l/2),b.at[1]==="bottom"?n.top+=m:b.at[1]===e&&(n.top+=m/2),n.left+=k[0],n.top+=k[1];return this.each(function(){var c=a(this),d=c.outerWidth(),g=c.outerHeight(),h=parseInt(a.curCSS(this,"marginLeft",!0))||0,i=parseInt(a.curCSS(this,"marginTop",!0))||0,o=d+h+(parseInt(a.curCSS(this,"marginRight",!0))||0),p=g+i+(parseInt(a.curCSS(this,"marginBottom",!0))||0),q=a.extend({},n),r;b.my[0]==="right"?q.left-=d:b.my[0]===e&&(q.left-=d/2),b.my[1]==="bottom"?q.top-=g:b.my[1]===e&&(q.top-=g/2),f.fractions||(q.left=Math.round(q.left),q.top=Math.round(q.top)),r={left:q.left-h,top:q.top-i},a.each(["left","top"],function(c,e){a.ui.position[j[c]]&&a.ui.position[j[c]][e](q,{targetWidth:l,targetHeight:m,elemWidth:d,elemHeight:g,collisionPosition:r,collisionWidth:o,collisionHeight:p,offset:k,my:b.my,at:b.at})}),a.fn.bgiframe&&c.bgiframe(),c.offset(a.extend(q,{using:b.using}))})},a.ui.position={fit:{left:function(b,c){var d=a(window),e=c.collisionPosition.left+c.collisionWidth-d.width()-d.scrollLeft();b.left=e>0?b.left-e:Math.max(b.left-c.collisionPosition.left,b.left)},top:function(b,c){var d=a(window),e=c.collisionPosition.top+c.collisionHeight-d.height()-d.scrollTop();b.top=e>0?b.top-e:Math.max(b.top-c.collisionPosition.top,b.top)}},flip:{left:function(b,c){if(c.at[0]!==e){var d=a(window),f=c.collisionPosition.left+c.collisionWidth-d.width()-d.scrollLeft(),g=c.my[0]==="left"?-c.elemWidth:c.my[0]==="right"?c.elemWidth:0,h=c.at[0]==="left"?c.targetWidth:-c.targetWidth,i=-2*c.offset[0];b.left+=c.collisionPosition.left<0?g+h+i:f>0?g+h+i:0}},top:function(b,c){if(c.at[1]!==e){var d=a(window),f=c.collisionPosition.top+c.collisionHeight-d.height()-d.scrollTop(),g=c.my[1]==="top"?-c.elemHeight:c.my[1]==="bottom"?c.elemHeight:0,h=c.at[1]==="top"?c.targetHeight:-c.targetHeight,i=-2*c.offset[1];b.top+=c.collisionPosition.top<0?g+h+i:f>0?g+h+i:0}}}},a.offset.setOffset||(a.offset.setOffset=function(b,c){/static/.test(a.curCSS(b,"position"))&&(b.style.position="relative");var d=a(b),e=d.offset(),f=parseInt(a.curCSS(b,"top",!0),10)||0,g=parseInt(a.curCSS(b,"left",!0),10)||0,h={top:c.top-e.top+f,left:c.left-e.left+g};"using"in c?c.using.call(b,h):d.css(h)},a.fn.offset=function(b){var c=this[0];if(!c||!c.ownerDocument)return null;if(b)return this.each(function(){a.offset.setOffset(this,b)});return h.call(this)}),function(){var b=document.getElementsByTagName("body")[0],c=document.createElement("div"),d,e,g,h,i;d=document.createElement(b?"div":"body"),g={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},b&&a.extend(g,{position:"absolute",left:"-1000px",top:"-1000px"});for(var j in g)d.style[j]=g[j];d.appendChild(c),e=b||document.documentElement,e.insertBefore(d,e.firstChild),c.style.cssText="position: absolute; left: 10.7432222px; top: 10.432325px; height: 30px; width: 201px;",h=a(c).offset(function(a,b){return b}).offset(),d.innerHTML="",e.removeChild(d),i=h.top+h.left+(b?2e3:0),f.fractions=i>21&&i<22}()})(jQuery);/* * jQuery UI Selectable 1.8.18 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Selectables * * Depends: * jquery.ui.core.js * jquery.ui.mouse.js * jquery.ui.widget.js */(function(a,b){a.widget("ui.selectable",a.ui.mouse,{options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch"},_create:function(){var b=this;this.element.addClass("ui-selectable"),this.dragged=!1;var c;this.refresh=function(){c=a(b.options.filter,b.element[0]),c.addClass("ui-selectee"),c.each(function(){var b=a(this),c=b.offset();a.data(this,"selectable-item",{element:this,$element:b,left:c.left,top:c.top,right:c.left+b.outerWidth(),bottom:c.top+b.outerHeight(),startselected:!1,selected:b.hasClass("ui-selected"),selecting:b.hasClass("ui-selecting"),unselecting:b.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=c.addClass("ui-selectee"),this._mouseInit(),this.helper=a("<div class='ui-selectable-helper'></div>")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable"),this._mouseDestroy();return this},_mouseStart:function(b){var c=this;this.opos=[b.pageX,b.pageY];if(!this.options.disabled){var d=this.options;this.selectees=a(d.filter,this.element[0]),this._trigger("start",b),a(d.appendTo).append(this.helper),this.helper.css({left:b.clientX,top:b.clientY,width:0,height:0}),d.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var d=a.data(this,"selectable-item");d.startselected=!0,!b.metaKey&&!b.ctrlKey&&(d.$element.removeClass("ui-selected"),d.selected=!1,d.$element.addClass("ui-unselecting"),d.unselecting=!0,c._trigger("unselecting",b,{unselecting:d.element}))}),a(b.target).parents().andSelf().each(function(){var d=a.data(this,"selectable-item");if(d){var e=!b.metaKey&&!b.ctrlKey||!d.$element.hasClass("ui-selected");d.$element.removeClass(e?"ui-unselecting":"ui-selected").addClass(e?"ui-selecting":"ui-unselecting"),d.unselecting=!e,d.selecting=e,d.selected=e,e?c._trigger("selecting",b,{selecting:d.element}):c._trigger("unselecting",b,{unselecting:d.element});return!1}})}},_mouseDrag:function(b){var c=this;this.dragged=!0;if(!this.options.disabled){var d=this.options,e=this.opos[0],f=this.opos[1],g=b.pageX,h=b.pageY;if(e>g){var i=g;g=e,e=i}if(f>h){var i=h;h=f,f=i}this.helper.css({left:e,top:f,width:g-e,height:h-f}),this.selectees.each(function(){var i=a.data(this,"selectable-item");if(!!i&&i.element!=c.element[0]){var j=!1;d.tolerance=="touch"?j=!(i.left>g||i.right<e||i.top>h||i.bottom<f):d.tolerance=="fit"&&(j=i.left>e&&i.right<g&&i.top>f&&i.bottom<h),j?(i.selected&&(i.$element.removeClass("ui-selected"),i.selected=!1),i.unselecting&&(i.$element.removeClass("ui-unselecting"),i.unselecting=!1),i.selecting||(i.$element.addClass("ui-selecting"),i.selecting=!0,c._trigger("selecting",b,{selecting:i.element}))):(i.selecting&&((b.metaKey||b.ctrlKey)&&i.startselected?(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.$element.addClass("ui-selected"),i.selected=!0):(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.startselected&&(i.$element.addClass("ui-unselecting"),i.unselecting=!0),c._trigger("unselecting",b,{unselecting:i.element}))),i.selected&&!b.metaKey&&!b.ctrlKey&&!i.startselected&&(i.$element.removeClass("ui-selected"),i.selected=!1,i.$element.addClass("ui-unselecting"),i.unselecting=!0,c._trigger("unselecting",b,{unselecting:i.element})))}});return!1}},_mouseStop:function(b){var c=this;this.dragged=!1;var d=this.options;a(".ui-unselecting",this.element[0]).each(function(){var d=a.data(this,"selectable-item");d.$element.removeClass("ui-unselecting"),d.unselecting=!1,d.startselected=!1,c._trigger("unselected",b,{unselected:d.element})}),a(".ui-selecting",this.element[0]).each(function(){var d=a.data(this,"selectable-item");d.$element.removeClass("ui-selecting").addClass("ui-selected"),d.selecting=!1,d.selected=!0,d.startselected=!0,c._trigger("selected",b,{selected:d.element})}),this._trigger("stop",b),this.helper.remove();return!1}}),a.extend(a.ui.selectable,{version:"1.8.18"})})(jQuery);/* * jQuery UI Accordion 1.8.18 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Accordion * * Depends: * jquery.ui.core.js * jquery.ui.widget.js */(function(a,b){a.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:!0,clearStyle:!1,collapsible:!1,event:"click",fillSpace:!1,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:!1,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var b=this,c=b.options;b.running=0,b.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix"),b.headers=b.element.find(c.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){c.disabled||a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){c.disabled||a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){c.disabled||a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){c.disabled||a(this).removeClass("ui-state-focus")}),b.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(c.navigation){var d=b.element.find("a").filter(c.navigationFilter).eq(0);if(d.length){var e=d.closest(".ui-accordion-header");e.length?b.active=e:b.active=d.closest(".ui-accordion-content").prev()}}b.active=b._findActive(b.active||c.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top"),b.active.next().addClass("ui-accordion-content-active"),b._createIcons(),b.resize(),b.element.attr("role","tablist"),b.headers.attr("role","tab").bind("keydown.accordion",function(a){return b._keydown(a)}).next().attr("role","tabpanel"),b.headers.not(b.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide(),b.active.length?b.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):b.headers.eq(0).attr("tabIndex",0),a.browser.safari||b.headers.find("a").attr("tabIndex",-1),c.event&&b.headers.bind(c.event.split(" ").join(".accordion ")+".accordion",function(a){b._clickHandler.call(b,a,this),a.preventDefault()})},_createIcons:function(){var b=this.options;b.icons&&(a("<span></span>").addClass("ui-icon "+b.icons.header).prependTo(this.headers),this.active.children(".ui-icon").toggleClass(b.icons.header).toggleClass(b.icons.headerSelected),this.element.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.children(".ui-icon").remove(),this.element.removeClass("ui-accordion-icons")},destroy:function(){var b=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex"),this.headers.find("a").removeAttr("tabIndex"),this._destroyIcons();var c=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");(b.autoHeight||b.fillHeight)&&c.css("height","");return a.Widget.prototype.destroy.call(this)},_setOption:function(b,c){a.Widget.prototype._setOption.apply(this,arguments),b=="active"&&this.activate(c),b=="icons"&&(this._destroyIcons(),c&&this._createIcons()),b=="disabled"&&this.headers.add(this.headers.next())[c?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(b){if(!(this.options.disabled||b.altKey||b.ctrlKey)){var c=a.ui.keyCode,d=this.headers.length,e=this.headers.index(b.target),f=!1;switch(b.keyCode){case c.RIGHT:case c.DOWN:f=this.headers[(e+1)%d];break;case c.LEFT:case c.UP:f=this.headers[(e-1+d)%d];break;case c.SPACE:case c.ENTER:this._clickHandler({target:b.target},b.target),b.preventDefault()}if(f){a(b.target).attr("tabIndex",-1),a(f).attr("tabIndex",0),f.focus();return!1}return!0}},resize:function(){var b=this.options,c;if(b.fillSpace){if(a.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}c=this.element.parent().height(),a.browser.msie&&this.element.parent().css("overflow",d),this.headers.each(function(){c-=a(this).outerHeight(!0)}),this.headers.next().each(function(){a(this).height(Math.max(0,c-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")}else b.autoHeight&&(c=0,this.headers.next().each(function(){c=Math.max(c,a(this).height("").height())}).height(c));return this},activate:function(a){this.options.active=a;var b=this._findActive(a)[0];this._clickHandler({target:b},b);return this},_findActive:function(b){return b?typeof b=="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===!1?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(b,c){var d=this.options;if(!d.disabled){if(!b.target){if(!d.collapsible)return;this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header),this.active.next().addClass("ui-accordion-content-active");var e=this.active.next(),f={options:d,newHeader:a([]),oldHeader:d.active,newContent:a([]),oldContent:e},g=this.active=a([]);this._toggle(g,e,f);return}var h=a(b.currentTarget||c),i=h[0]===this.active[0];d.active=d.collapsible&&i?!1:this.headers.index(h);if(this.running||!d.collapsible&&i)return;var j=this.active,g=h.next(),e=this.active.next(),f={options:d,newHeader:i&&d.collapsible?a([]):h,oldHeader:this.active,newContent:i&&d.collapsible?a([]):g,oldContent:e},k=this.headers.index(this.active[0])>this.headers.index(h[0]);this.active=i?a([]):h,this._toggle(g,e,f,i,k),j.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header),i||(h.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected),h.next().addClass("ui-accordion-content-active"));return}},_toggle:function(b,c,d,e,f){var g=this,h=g.options;g.toShow=b,g.toHide=c,g.data=d;var i=function(){if(!!g)return g._completed.apply(g,arguments)};g._trigger("changestart",null,g.data),g.running=c.size()===0?b.size():c.size();if(h.animated){var j={};h.collapsible&&e?j={toShow:a([]),toHide:c,complete:i,down:f,autoHeight:h.autoHeight||h.fillSpace}:j={toShow:b,toHide:c,complete:i,down:f,autoHeight:h.autoHeight||h.fillSpace},h.proxied||(h.proxied=h.animated),h.proxiedDuration||(h.proxiedDuration=h.duration),h.animated=a.isFunction(h.proxied)?h.proxied(j):h.proxied,h.duration=a.isFunction(h.proxiedDuration)?h.proxiedDuration(j):h.proxiedDuration;var k=a.ui.accordion.animations,l=h.duration,m=h.animated;m&&!k[m]&&!a.easing[m]&&(m="slide"),k[m]||(k[m]=function(a){this.slide(a,{easing:m,duration:l||700})}),k[m](j)}else h.collapsible&&e?b.toggle():(c.hide(),b.show()),i(!0);c.prev().attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).blur(),b.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;this.running||(this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""}),this.toHide.removeClass("ui-accordion-content-active"),this.toHide.length&&(this.toHide.parent()[0].className=this.toHide.parent()[0].className),this._trigger("change",null,this.data))}}),a.extend(a.ui.accordion,{version:"1.8.18",animations:{slide:function(b,c){b=a.extend({easing:"swing",duration:300},b,c);if(!b.toHide.size())b.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},b);else{if(!b.toShow.size()){b.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},b);return}var d=b.toShow.css("overflow"),e=0,f={},g={},h=["height","paddingTop","paddingBottom"],i,j=b.toShow;i=j[0].style.width,j.width(j.parent().width()-parseFloat(j.css("paddingLeft"))-parseFloat(j.css("paddingRight"))-(parseFloat(j.css("borderLeftWidth"))||0)-(parseFloat(j.css("borderRightWidth"))||0)),a.each(h,function(c,d){g[d]="hide";var e=(""+a.css(b.toShow[0],d)).match(/^([\d+-.]+)(.*)$/);f[d]={value:e[1],unit:e[2]||"px"}}),b.toShow.css({height:0,overflow:"hidden"}).show(),b.toHide.filter(":hidden").each(b.complete).end().filter(":visible").animate(g,{step:function(a,c){c.prop=="height"&&(e=c.end-c.start===0?0:(c.now-c.start)/(c.end-c.start)),b.toShow[0].style[c.prop]=e*f[c.prop].value+f[c.prop].unit},duration:b.duration,easing:b.easing,complete:function(){b.autoHeight||b.toShow.css("height",""),b.toShow.css({width:i,overflow:d}),b.complete()}})}},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1e3:200})}}})})(jQuery);/* * jQuery UI Tabs 1.8.18 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Tabs * * Depends: * jquery.ui.core.js * jquery.ui.widget.js */(function(a,b){function f(){return++d}function e(){return++c}var c=0,d=0;a.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:!1,cookie:null,collapsible:!1,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(!0)},_setOption:function(a,b){if(a=="selected"){if(this.options.collapsible&&b==this.options.selected)return;this.select(b)}else this.options[a]=b,this._tabify()},_tabId:function(a){return a.title&&a.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+e()},_sanitizeSelector:function(a){return a.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+f());return a.cookie.apply(null,[b].concat(a.makeArray(arguments)))},_ui:function(a,b){return{tab:a,panel:b,index:this.anchors.index(a)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b=a(this);b.html(b.data("label.tabs")).removeData("label.tabs")})},_tabify:function(c){function m(b,c){b.css("display",""),!a.support.opacity&&c.opacity&&b[0].style.removeAttribute("filter")}var d=this,e=this.options,f=/^#.+/;this.list=this.element.find("ol,ul").eq(0),this.lis=a(" > li:has(a[href])",this.list),this.anchors=this.lis.map(function(){return a("a",this)[0]}),this.panels=a([]),this.anchors.each(function(b,c){var g=a(c).attr("href"),h=g.split("#")[0],i;h&&(h===location.toString().split("#")[0]||(i=a("base")[0])&&h===i.href)&&(g=c.hash,c.href=g);if(f.test(g))d.panels=d.panels.add(d.element.find(d._sanitizeSelector(g)));else if(g&&g!=="#"){a.data(c,"href.tabs",g),a.data(c,"load.tabs",g.replace(/#.*$/,""));var j=d._tabId(c);c.href="#"+j;var k=d.element.find("#"+j);k.length||(k=a(e.panelTemplate).attr("id",j).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(d.panels[b-1]||d.list),k.data("destroy.tabs",!0)),d.panels=d.panels.add(k)}else e.disabled.push(b)}),c?(this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all"),this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"),this.lis.addClass("ui-state-default ui-corner-top"),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom"),e.selected===b?(location.hash&&this.anchors.each(function(a,b){if(b.hash==location.hash){e.selected=a;return!1}}),typeof e.selected!="number"&&e.cookie&&(e.selected=parseInt(d._cookie(),10)),typeof e.selected!="number"&&this.lis.filter(".ui-tabs-selected").length&&(e.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))),e.selected=e.selected||(this.lis.length?0:-1)):e.selected===null&&(e.selected=-1),e.selected=e.selected>=0&&this.anchors[e.selected]||e.selected<0?e.selected:0,e.disabled=a.unique(e.disabled.concat(a.map(this.lis.filter(".ui-state-disabled"),function(a,b){return d.lis.index(a)}))).sort(),a.inArray(e.selected,e.disabled)!=-1&&e.disabled.splice(a.inArray(e.selected,e.disabled),1),this.panels.addClass("ui-tabs-hide"),this.lis.removeClass("ui-tabs-selected ui-state-active"),e.selected>=0&&this.anchors.length&&(d.element.find(d._sanitizeSelector(d.anchors[e.selected].hash)).removeClass("ui-tabs-hide"),this.lis.eq(e.selected).addClass("ui-tabs-selected ui-state-active"),d.element.queue("tabs",function(){d._trigger("show",null,d._ui(d.anchors[e.selected],d.element.find(d._sanitizeSelector(d.anchors[e.selected].hash))[0]))}),this.load(e.selected)),a(window).bind("unload",function(){d.lis.add(d.anchors).unbind(".tabs"),d.lis=d.anchors=d.panels=null})):e.selected=this.lis.index(this.lis.filter(".ui-tabs-selected")),this.element[e.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible"),e.cookie&&this._cookie(e.selected,e.cookie);for(var g=0,h;h=this.lis[g];g++)a(h)[a.inArray(g,e.disabled)!=-1&&!a(h).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");e.cache===!1&&this.anchors.removeData("cache.tabs"),this.lis.add(this.anchors).unbind(".tabs");if(e.event!=="mouseover"){var i=function(a,b){b.is(":not(.ui-state-disabled)")&&b.addClass("ui-state-"+a)},j=function(a,b){b.removeClass("ui-state-"+a)};this.lis.bind("mouseover.tabs",function(){i("hover",a(this))}),this.lis.bind("mouseout.tabs",function(){j("hover",a(this))}),this.anchors.bind("focus.tabs",function(){i("focus",a(this).closest("li"))}),this.anchors.bind("blur.tabs",function(){j("focus",a(this).closest("li"))})}var k,l;e.fx&&(a.isArray(e.fx)?(k=e.fx[0],l=e.fx[1]):k=l=e.fx);var n=l?function(b,c){a(b).closest("li").addClass("ui-tabs-selected ui-state-active"),c.hide().removeClass("ui-tabs-hide").animate(l,l.duration||"normal",function(){m(c,l),d._trigger("show",null,d._ui(b,c[0]))})}:function(b,c){a(b).closest("li").addClass("ui-tabs-selected ui-state-active"),c.removeClass("ui-tabs-hide"),d._trigger("show",null,d._ui(b,c[0]))},o=k?function(a,b){b.animate(k,k.duration||"normal",function(){d.lis.removeClass("ui-tabs-selected ui-state-active"),b.addClass("ui-tabs-hide"),m(b,k),d.element.dequeue("tabs")})}:function(a,b,c){d.lis.removeClass("ui-tabs-selected ui-state-active"),b.addClass("ui-tabs-hide"),d.element.dequeue("tabs")};this.anchors.bind(e.event+".tabs",function(){var b=this,c=a(b).closest("li"),f=d.panels.filter(":not(.ui-tabs-hide)"),g=d.element.find(d._sanitizeSelector(b.hash));if(c.hasClass("ui-tabs-selected")&&!e.collapsible||c.hasClass("ui-state-disabled")||c.hasClass("ui-state-processing")||d.panels.filter(":animated").length||d._trigger("select",null,d._ui(this,g[0]))===!1){this.blur();return!1}e.selected=d.anchors.index(this),d.abort();if(e.collapsible){if(c.hasClass("ui-tabs-selected")){e.selected=-1,e.cookie&&d._cookie(e.selected,e.cookie),d.element.queue("tabs",function(){o(b,f)}).dequeue("tabs"),this.blur();return!1}if(!f.length){e.cookie&&d._cookie(e.selected,e.cookie),d.element.queue("tabs",function(){n(b,g)}),d.load(d.anchors.index(this)),this.blur();return!1}}e.cookie&&d._cookie(e.selected,e.cookie);if(g.length)f.length&&d.element.queue("tabs",function(){o(b,f)}),d.element.queue("tabs",function(){n(b,g)}),d.load(d.anchors.index(this));else throw"jQuery UI Tabs: Mismatching fragment identifier.";a.browser.msie&&this.blur()}),this.anchors.bind("click.tabs",function(){return!1})},_getIndex:function(a){typeof a=="string"&&(a=this.anchors.index(this.anchors.filter("[href$="+a+"]")));return a},destroy:function(){var b=this.options;this.abort(),this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs"),this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"),this.anchors.each(function(){var b=a.data(this,"href.tabs");b&&(this.href=b);var c=a(this).unbind(".tabs");a.each(["href","load","cache"],function(a,b){c.removeData(b+".tabs")})}),this.lis.unbind(".tabs").add(this.panels).each(function(){a.data(this,"destroy.tabs")?a(this).remove():a(this).removeClass(["ui-state-default","ui-corner-top","ui-tabs-selected","ui-state-active","ui-state-hover","ui-state-focus","ui-state-disabled","ui-tabs-panel","ui-widget-content","ui-corner-bottom","ui-tabs-hide"].join(" "))}),b.cookie&&this._cookie(null,b.cookie);return this},add:function(c,d,e){e===b&&(e=this.anchors.length);var f=this,g=this.options,h=a(g.tabTemplate.replace(/#\{href\}/g,c).replace(/#\{label\}/g,d)),i=c.indexOf("#")?this._tabId(a("a",h)[0]):c.replace("#","");h.addClass("ui-state-default ui-corner-top").data("destroy.tabs",!0);var j=f.element.find("#"+i);j.length||(j=a(g.panelTemplate).attr("id",i).data("destroy.tabs",!0)),j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"),e>=this.lis.length?(h.appendTo(this.list),j.appendTo(this.list[0].parentNode)):(h.insertBefore(this.lis[e]),j.insertBefore(this.panels[e])),g.disabled=a.map(g.disabled,function(a,b){return a>=e?++a:a}),this._tabify(),this.anchors.length==1&&(g.selected=0,h.addClass("ui-tabs-selected ui-state-active"),j.removeClass("ui-tabs-hide"),this.element.queue("tabs",function(){f._trigger("show",null,f._ui(f.anchors[0],f.panels[0]))}),this.load(0)),this._trigger("add",null,this._ui(this.anchors[e],this.panels[e]));return this},remove:function(b){b=this._getIndex(b);var c=this.options,d=this.lis.eq(b).remove(),e=this.panels.eq(b).remove();d.hasClass("ui-tabs-selected")&&this.anchors.length>1&&this.select(b+(b+1<this.anchors.length?1:-1)),c.disabled=a.map(a.grep(c.disabled,function(a,c){return a!=b}),function(a,c){return a>=b?--a:a}),this._tabify(),this._trigger("remove",null,this._ui(d.find("a")[0],e[0]));return this},enable:function(b){b=this._getIndex(b);var c=this.options;if(a.inArray(b,c.disabled)!=-1){this.lis.eq(b).removeClass("ui-state-disabled"),c.disabled=a.grep(c.disabled,function(a,c){return a!=b}),this._trigger("enable",null,this._ui(this.anchors[b],this.panels[b]));return this}},disable:function(a){a=this._getIndex(a);var b=this,c=this.options;a!=c.selected&&(this.lis.eq(a).addClass("ui-state-disabled"),c.disabled.push(a),c.disabled.sort(),this._trigger("disable",null,this._ui(this.anchors[a],this.panels[a])));return this},select:function(a){a=this._getIndex(a);if(a==-1)if(this.options.collapsible&&this.options.selected!=-1)a=this.options.selected;else return this;this.anchors.eq(a).trigger(this.options.event+".tabs");return this},load:function(b){b=this._getIndex(b);var c=this,d=this.options,e=this.anchors.eq(b)[0],f=a.data(e,"load.tabs");this.abort();if(!f||this.element.queue("tabs").length!==0&&a.data(e,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(b).addClass("ui-state-processing");if(d.spinner){var g=a("span",e);g.data("label.tabs",g.html()).html(d.spinner)}this.xhr=a.ajax(a.extend({},d.ajaxOptions,{url:f,success:function(f,g){c.element.find(c._sanitizeSelector(e.hash)).html(f),c._cleanup(),d.cache&&a.data(e,"cache.tabs",!0),c._trigger("load",null,c._ui(c.anchors[b],c.panels[b]));try{d.ajaxOptions.success(f,g)}catch(h){}},error:function(a,f,g){c._cleanup(),c._trigger("load",null,c._ui(c.anchors[b],c.panels[b]));try{d.ajaxOptions.error(a,f,b,e)}catch(g){}}})),c.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]),this.panels.stop(!1,!0),this.element.queue("tabs",this.element.queue("tabs").splice(-2,2)),this.xhr&&(this.xhr.abort(),delete this.xhr),this._cleanup();return this},url:function(a,b){this.anchors.eq(a).removeData("cache.tabs").data("load.tabs",b);return this},length:function(){return this.anchors.length}}),a.extend(a.ui.tabs,{version:"1.8.18"}),a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(a,b){var c=this,d=this.options,e=c._rotate||(c._rotate=function(b){clearTimeout(c.rotation),c.rotation=setTimeout(function(){var a=d.selected;c.select(++a<c.anchors.length?a:0)},a),b&&b.stopPropagation()}),f=c._unrotate||(c._unrotate=b?function(a){t=d.selected,e()}:function(a){a.clientX&&c.rotate(null)});a?(this.element.bind("tabsshow",e),this.anchors.bind(d.event+".tabs",f),e()):(clearTimeout(c.rotation),this.element.unbind("tabsshow",e),this.anchors.unbind(d.event+".tabs",f),delete this._rotate,delete this._unrotate);return this}})})(jQuery);/* * jQuery UI Effects 1.8.18 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Effects/ */jQuery.effects||function(a,b){function l(b){if(!b||typeof b=="number"||a.fx.speeds[b])return!0;if(typeof b=="string"&&!a.effects[b])return!0;return!1}function k(b,c,d,e){typeof b=="object"&&(e=c,d=null,c=b,b=c.effect),a.isFunction(c)&&(e=c,d=null,c={});if(typeof c=="number"||a.fx.speeds[c])e=d,d=c,c={};a.isFunction(d)&&(e=d,d=null),c=c||{},d=d||c.duration,d=a.fx.off?0:typeof d=="number"?d:d in a.fx.speeds?a.fx.speeds[d]:a.fx.speeds._default,e=e||c.complete;return[b,c,d,e]}function j(a,b){var c={_:0},d;for(d in b)a[d]!=b[d]&&(c[d]=b[d]);return c}function i(b){var c,d;for(c in b)d=b[c],(d==null||a.isFunction(d)||c in g||/scrollbar/.test(c)||!/color/i.test(c)&&isNaN(parseFloat(d)))&&delete b[c];return b}function h(){var a=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,b={},c,d;if(a&&a.length&&a[0]&&a[a[0]]){var e=a.length;while(e--)c=a[e],typeof a[c]=="string"&&(d=c.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()}),b[d]=a[c])}else for(c in a)typeof a[c]=="string"&&(b[c]=a[c]);return b}function d(b,d){var e;do{e=a.curCSS(b,d);if(e!=""&&e!="transparent"||a.nodeName(b,"body"))break;d="backgroundColor"}while(b=b.parentNode);return c(e)}function c(b){var c;if(b&&b.constructor==Array&&b.length==3)return b;if(c=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(b))return[parseInt(c[1],10),parseInt(c[2],10),parseInt(c[3],10)];if(c=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(b))return[parseFloat(c[1])*2.55,parseFloat(c[2])*2.55,parseFloat(c[3])*2.55];if(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(b))return[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)];if(c=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(b))return[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)];if(c=/rgba\(0, 0, 0, 0\)/.exec(b))return e.transparent;return e[a.trim(b).toLowerCase()]}a.effects={},a.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(b,e){a.fx.step[e]=function(a){a.colorInit||(a.start=d(a.elem,e),a.end=c(a.end),a.colorInit=!0),a.elem.style[e]="rgb("+Math.max(Math.min(parseInt(a.pos*(a.end[0]-a.start[0])+a.start[0],10),255),0)+","+Math.max(Math.min(parseInt(a.pos*(a.end[1]-a.start[1])+a.start[1],10),255),0)+","+Math.max(Math.min(parseInt(a.pos*(a.end[2]-a.start[2])+a.start[2],10),255),0)+")"}});var e={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},f=["add","remove","toggle"],g={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.effects.animateClass=function(b,c,d,e){a.isFunction(d)&&(e=d,d=null);return this.queue(function(){var g=a(this),k=g.attr("style")||" ",l=i(h.call(this)),m,n=g.attr("class");a.each(f,function(a,c){b[c]&&g[c+"Class"](b[c])}),m=i(h.call(this)),g.attr("class",n),g.animate(j(l,m),{queue:!1,duration:c,easing:d,complete:function(){a.each(f,function(a,c){b[c]&&g[c+"Class"](b[c])}),typeof g.attr("style")=="object"?(g.attr("style").cssText="",g.attr("style").cssText=k):g.attr("style",k),e&&e.apply(this,arguments),a.dequeue(this)}})})},a.fn.extend({_addClass:a.fn.addClass,addClass:function(b,c,d,e){return c?a.effects.animateClass.apply(this,[{add:b},c,d,e]):this._addClass(b)},_removeClass:a.fn.removeClass,removeClass:function(b,c,d,e){return c?a.effects.animateClass.apply(this,[{remove:b},c,d,e]):this._removeClass(b)},_toggleClass:a.fn.toggleClass,toggleClass:function(c,d,e,f,g){return typeof d=="boolean"||d===b?e?a.effects.animateClass.apply(this,[d?{add:c}:{remove:c},e,f,g]):this._toggleClass(c,d):a.effects.animateClass.apply(this,[{toggle:c},d,e,f])},switchClass:function(b,c,d,e,f){return a.effects.animateClass.apply(this,[{add:c,remove:b},d,e,f])}}),a.extend(a.effects,{version:"1.8.18",save:function(a,b){for(var c=0;c<b.length;c++)b[c]!==null&&a.data("ec.storage."+b[c],a[0].style[b[c]])},restore:function(a,b){for(var c=0;c<b.length;c++)b[c]!==null&&a.css(b[c],a.data("ec.storage."+b[c]))},setMode:function(a,b){b=="toggle"&&(b=a.is(":hidden")?"show":"hide");return b},getBaseline:function(a,b){var c,d;switch(a[0]){case"top":c=0;break;case"middle":c=.5;break;case"bottom":c=1;break;default:c=a[0]/b.height}switch(a[1]){case"left":d=0;break;case"center":d=.5;break;case"right":d=1;break;default:d=a[1]/b.width}return{x:d,y:c}},createWrapper:function(b){if(b.parent().is(".ui-effects-wrapper"))return b.parent();var c={width:b.outerWidth(!0),height:b.outerHeight(!0),"float":b.css("float")},d=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e=document.activeElement;b.wrap(d),(b[0]===e||a.contains(b[0],e))&&a(e).focus(),d=b.parent(),b.css("position")=="static"?(d.css({position:"relative"}),b.css({position:"relative"})):(a.extend(c,{position:b.css("position"),zIndex:b.css("z-index")}),a.each(["top","left","bottom","right"],function(a,d){c[d]=b.css(d),isNaN(parseInt(c[d],10))&&(c[d]="auto")}),b.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"}));return d.css(c).show()},removeWrapper:function(b){var c,d=document.activeElement;if(b.parent().is(".ui-effects-wrapper")){c=b.parent().replaceWith(b),(b[0]===d||a.contains(b[0],d))&&a(d).focus();return c}return b},setTransition:function(b,c,d,e){e=e||{},a.each(c,function(a,c){unit=b.cssUnit(c),unit[0]>0&&(e[c]=unit[0]*d+unit[1])});return e}}),a.fn.extend({effect:function(b,c,d,e){var f=k.apply(this,arguments),g={options:f[1],duration:f[2],callback:f[3]},h=g.options.mode,i=a.effects[b];if(a.fx.off||!i)return h?this[h](g.duration,g.callback):this.each(function(){g.callback&&g.callback.call(this)});return i.call(this,g)},_show:a.fn.show,show:function(a){if(l(a))return this._show.apply(this,arguments);var b=k.apply(this,arguments);b[1].mode="show";return this.effect.apply(this,b)},_hide:a.fn.hide,hide:function(a){if(l(a))return this._hide.apply(this,arguments);var b=k.apply(this,arguments);b[1].mode="hide";return this.effect.apply(this,b)},__toggle:a.fn.toggle,toggle:function(b){if(l(b)||typeof b=="boolean"||a.isFunction(b))return this.__toggle.apply(this,arguments);var c=k.apply(this,arguments);c[1].mode="toggle";return this.effect.apply(this,c)},cssUnit:function(b){var c=this.css(b),d=[];a.each(["em","px","%","pt"],function(a,b){c.indexOf(b)>0&&(d=[parseFloat(c),b])});return d}}),a.easing.jswing=a.easing.swing,a.extend(a.easing,{def:"easeOutQuad",swing:function(b,c,d,e,f){return a.easing[a.easing.def](b,c,d,e,f)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b+c;return-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b+c;return d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b*b+c;return-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b*b*b+c;return d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){if(b==0)return c;if(b==e)return c+d;if((b/=e/2)<1)return d/2*Math.pow(2,10*(b-1))+c;return d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){if((b/=e/2)<1)return-d/2*(Math.sqrt(1-b*b)-1)+c;return d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(b==0)return c;if((b/=e)==1)return c+d;g||(g=e*.3);if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g))+c},easeOutElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(b==0)return c;if((b/=e)==1)return c+d;g||(g=e*.3);if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*b)*Math.sin((b*e-f)*2*Math.PI/g)+d+c},easeInOutElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(b==0)return c;if((b/=e/2)==2)return c+d;g||(g=e*.3*1.5);if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);if(b<1)return-0.5*h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)+c;return h*Math.pow(2,-10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)*.5+d+c},easeInBack:function(a,c,d,e,f,g){g==b&&(g=1.70158);return e*(c/=f)*c*((g+1)*c-g)+d},easeOutBack:function(a,c,d,e,f,g){g==b&&(g=1.70158);return e*((c=c/f-1)*c*((g+1)*c+g)+1)+d},easeInOutBack:function(a,c,d,e,f,g){g==b&&(g=1.70158);if((c/=f/2)<1)return e/2*c*c*(((g*=1.525)+1)*c-g)+d;return e/2*((c-=2)*c*(((g*=1.525)+1)*c+g)+2)+d},easeInBounce:function(b,c,d,e,f){return e-a.easing.easeOutBounce(b,f-c,0,e,f)+d},easeOutBounce:function(a,b,c,d,e){return(b/=e)<1/2.75?d*7.5625*b*b+c:b<2/2.75?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:b<2.5/2.75?d*(7.5625*(b-=2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeInOutBounce:function(b,c,d,e,f){if(c<f/2)return a.easing.easeInBounce(b,c*2,0,e,f)*.5+d;return a.easing.easeOutBounce(b,c*2-f,0,e,f)*.5+e*.5+d}})}(jQuery);/* * jQuery UI Effects Fade 1.8.18 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Effects/Fade * * Depends: * jquery.effects.core.js */(function(a,b){a.effects.fade=function(b){return this.queue(function(){var c=a(this),d=a.effects.setMode(c,b.options.mode||"hide");c.animate({opacity:d},{queue:!1,duration:b.duration,easing:b.options.easing,complete:function(){b.callback&&b.callback.apply(this,arguments),c.dequeue()}})})}})(jQuery);/* * jQuery UI Effects Scale 1.8.18 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Effects/Scale * * Depends: * jquery.effects.core.js */(function(a,b){a.effects.puff=function(b){return this.queue(function(){var c=a(this),d=a.effects.setMode(c,b.options.mode||"hide"),e=parseInt(b.options.percent,10)||150,f=e/100,g={height:c.height(),width:c.width()};a.extend(b.options,{fade:!0,mode:d,percent:d=="hide"?e:100,from:d=="hide"?g:{height:g.height*f,width:g.width*f}}),c.effect("scale",b.options,b.duration,b.callback),c.dequeue()})},a.effects.scale=function(b){return this.queue(function(){var c=a(this),d=a.extend(!0,{},b.options),e=a.effects.setMode(c,b.options.mode||"effect"),f=parseInt(b.options.percent,10)||(parseInt(b.options.percent,10)==0?0:e=="hide"?0:100),g=b.options.direction||"both",h=b.options.origin;e!="effect"&&(d.origin=h||["middle","center"],d.restore=!0);var i={height:c.height(),width:c.width()};c.from=b.options.from||(e=="show"?{height:0,width:0}:i);var j={y:g!="horizontal"?f/100:1,x:g!="vertical"?f/100:1};c.to={height:i.height*j.y,width:i.width*j.x},b.options.fade&&(e=="show"&&(c.from.opacity=0,c.to.opacity=1),e=="hide"&&(c.from.opacity=1,c.to.opacity=0)),d.from=c.from,d.to=c.to,d.mode=e,c.effect("size",d,b.duration,b.callback),c.dequeue()})},a.effects.size=function(b){return this.queue(function(){var c=a(this),d=["position","top","bottom","left","right","width","height","overflow","opacity"],e=["position","top","bottom","left","right","overflow","opacity"],f=["width","height","overflow"],g=["fontSize"],h=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],i=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],j=a.effects.setMode(c,b.options.mode||"effect"),k=b.options.restore||!1,l=b.options.scale||"both",m=b.options.origin,n={height:c.height(),width:c.width()};c.from=b.options.from||n,c.to=b.options.to||n;if(m){var p=a.effects.getBaseline(m,n);c.from.top=(n.height-c.from.height)*p.y,c.from.left=(n.width-c.from.width)*p.x,c.to.top=(n.height-c.to.height)*p.y,c.to.left=(n.width-c.to.width)*p.x}var q={from:{y:c.from.height/n.height,x:c.from.width/n.width},to:{y:c.to.height/n.height,x:c.to.width/n.width}};if(l=="box"||l=="both")q.from.y!=q.to.y&&(d=d.concat(h),c.from=a.effects.setTransition(c,h,q.from.y,c.from),c.to=a.effects.setTransition(c,h,q.to.y,c.to)),q.from.x!=q.to.x&&(d=d.concat(i),c.from=a.effects.setTransition(c,i,q.from.x,c.from),c.to=a.effects.setTransition(c,i,q.to.x,c.to));(l=="content"||l=="both")&&q.from.y!=q.to.y&&(d=d.concat(g),c.from=a.effects.setTransition(c,g,q.from.y,c.from),c.to=a.effects.setTransition(c,g,q.to.y,c.to)),a.effects.save(c,k?d:e),c.show(),a.effects.createWrapper(c),c.css("overflow","hidden").css(c.from);if(l=="content"||l=="both")h=h.concat(["marginTop","marginBottom"]).concat(g),i=i.concat(["marginLeft","marginRight"]),f=d.concat(h).concat(i),c.find("*[width]").each(function(){child=a(this),k&&a.effects.save(child,f);var c={height:child.height(),width:child.width()};child.from={height:c.height*q.from.y,width:c.width*q.from.x},child.to={height:c.height*q.to.y,width:c.width*q.to.x},q.from.y!=q.to.y&&(child.from=a.effects.setTransition(child,h,q.from.y,child.from),child.to=a.effects.setTransition(child,h,q.to.y,child.to)),q.from.x!=q.to.x&&(child.from=a.effects.setTransition(child,i,q.from.x,child.from),child.to=a.effects.setTransition(child,i,q.to.x,child.to)),child.css(child.from),child.animate(child.to,b.duration,b.options.easing,function(){k&&a.effects.restore(child,f)})});c.animate(c.to,{queue:!1,duration:b.duration,easing:b.options.easing,complete:function(){c.to.opacity===0&&c.css("opacity",c.from.opacity),j=="hide"&&c.hide(),a.effects.restore(c,k?d:e),a.effects.removeWrapper(c),b.callback&&b.callback.apply(this,arguments),c.dequeue()}})})}})(jQuery);/* * jQuery UI Effects Slide 1.8.18 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Effects/Slide * * Depends: * jquery.effects.core.js */(function(a,b){a.effects.slide=function(b){return this.queue(function(){var c=a(this),d=["position","top","bottom","left","right"],e=a.effects.setMode(c,b.options.mode||"show"),f=b.options.direction||"left";a.effects.save(c,d),c.show(),a.effects.createWrapper(c).css({overflow:"hidden"});var g=f=="up"||f=="down"?"top":"left",h=f=="up"||f=="left"?"pos":"neg",i=b.options.distance||(g=="top"?c.outerHeight({margin:!0}):c.outerWidth({margin:!0}));e=="show"&&c.css(g,h=="pos"?isNaN(i)?"-"+i:-i:i);var j={};j[g]=(e=="show"?h=="pos"?"+=":"-=":h=="pos"?"-=":"+=")+i,c.animate(j,{queue:!1,duration:b.duration,easing:b.options.easing,complete:function(){e=="hide"&&c.hide(),a.effects.restore(c,d),a.effects.removeWrapper(c),b.callback&&b.callback.apply(this,arguments),c.dequeue()}})})}})(jQuery);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/multiluca2020/visum-thinker-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server