(function(c) {
    function x(b) { if (!b) return false; this.x = String(b).replace(/middle/i, "center").match(/left|right|center/i)[0].toLowerCase(); this.y = String(b).replace(/middle/i, "center").match(/top|bottom|center/i)[0].toLowerCase(); this.offset = { left: 0, top: 0 }; this.precedance = b.charAt(0).search(/^(t|b)/) > -1 ? "y" : "x"; this.string = function() { return this.precedance === "y" ? this.y + this.x : this.x + this.y } } function D(b, e, f) {
        e = { bottomright: [[0, 0], [e, f], [e, 0]], bottomleft: [[0, 0], [e, 0], [0, f]], topright: [[0, f], [e, 0], [e, f]],
            topleft: [[0, 0], [0, f], [e, f]], topcenter: [[0, f], [e / 2, 0], [e, f]], bottomcenter: [[0, 0], [e, 0], [e / 2, f]], rightcenter: [[0, 0], [e, f / 2], [0, f]], leftcenter: [[e, 0], [e, f], [0, f / 2]]
        }; e.lefttop = e.bottomright; e.righttop = e.bottomleft; e.leftbottom = e.topright; e.rightbottom = e.topleft; return e[b]
    } function E(b) {
        var e; if (c("<canvas />").get(0).getContext) e = { topLeft: [b, b], topRight: [0, b], bottomLeft: [b, 0], bottomRight: [0, 0] }; else if (c.browser.msie) e = { topLeft: [-90, 90, 0], topRight: [-90, 90, -b], bottomLeft: [90, 270, 0], bottomRight: [90, 270,
-b]
        }; return e
    } function y(b, e) { var f, a; f = c.extend(true, {}, b); for (a in f) if (e === true && /(tip|classes)/i.test(a)) delete f[a]; else !e && /(width|border|tip|title|classes|user)/i.test(a) && delete f[a]; return f } function F(b) {
        if (typeof b.tip !== "object") b.tip = { corner: b.tip }; if (typeof b.tip.size !== "object") b.tip.size = { width: b.tip.size, height: b.tip.size }; if (typeof b.border !== "object") b.border = { width: b.border }; if (typeof b.width !== "object") b.width = { value: b.width }; if (typeof b.width.max === "string") b.width.max = parseInt(b.width.max.replace(/([0-9]+)/i,
"$1"), 10); if (typeof b.width.min === "string") b.width.min = parseInt(b.width.min.replace(/([0-9]+)/i, "$1"), 10); if (typeof b.tip.size.x === "number") { b.tip.size.width = b.tip.size.x; delete b.tip.size.x } if (typeof b.tip.size.y === "number") { b.tip.size.height = b.tip.size.y; delete b.tip.size.y } return b
    } function G() {
        var b, e; e = [true, {}]; for (b = 0; b < arguments.length; b++) e.push(arguments[b]); for (b = [c.extend.apply(c, e)]; typeof b[0].name === "string"; ) b.unshift(F(c.fn.qtip.styles[b[0].name])); b.unshift(true, { classes: { tooltip: "qtip-" +
(arguments[0].name || "defaults")}
        }, c.fn.qtip.styles.defaults); b = c.extend.apply(c, b); e = c.browser.msie ? 1 : 0; b.tip.size.width += e; b.tip.size.height += e; if (b.tip.size.width % 2 > 0) b.tip.size.width += 1; if (b.tip.size.height % 2 > 0) b.tip.size.height += 1; if (b.tip.corner === true) b.tip.corner = this.options.position.corner.tooltip === "center" && this.options.position.corner.target === "center" ? false : this.options.position.corner.tooltip; return b
    } function H(b, e, f, a) {
        b = b.get(0).getContext("2d"); b.fillStyle = a; b.beginPath(); b.arc(e[0],
e[1], f, 0, Math.PI * 2, false); b.fill()
    } function N() {
        var b, e, f, a, d, g, i, h, j; b = this; b.elements.wrapper.find(".qtip-borderBottom, .qtip-borderTop").remove(); f = b.options.style.border.width; a = b.options.style.border.radius; d = b.options.style.border.color || b.options.style.tip.color; g = E(a); i = {}; for (e in g) {
            i[e] = '<div rel="' + e + '" style="' + (/Left/.test(e) ? "left" : "right") + ":0; position:absolute; height:" + a + "px; width:" + a + 'px; overflow:hidden; line-height:0.1px; font-size:1px">'; if (c("<canvas />").get(0).getContext) i[e] +=
'<canvas height="' + a + '" width="' + a + '" style="vertical-align: top"></canvas>'; else if (c.browser.msie) { h = a * 2 + 3; i[e] += '<v:arc stroked="false" fillcolor="' + d + '" startangle="' + g[e][0] + '" endangle="' + g[e][1] + '" style="width:' + h + "px; height:" + h + "px; margin-top:" + (/bottom/.test(e) ? -2 : -1) + "px; margin-left:" + (/Right/.test(e) ? g[e][2] - 3.5 : -1) + 'px; vertical-align:top; display:inline-block; behavior:url(#default#VML)"></v:arc>' } i[e] += "</div>"
        } e = b.getDimensions().width - Math.max(f, a) * 2; e = '<div class="qtip-betweenCorners" style="height:' +
a + "px; width:" + e + "px; overflow:hidden; background-color:" + d + '; line-height:0.1px; font-size:1px;">'; b.elements.wrapper.prepend('<div class="qtip-borderTop" dir="ltr" style="height:' + a + "px; margin-left:" + a + 'px; line-height:0.1px; font-size:1px; padding:0;">' + i.topLeft + i.topRight + e); b.elements.wrapper.append('<div class="qtip-borderBottom" dir="ltr" style="height:' + a + "px; margin-left:" + a + 'px; line-height:0.1px; font-size:1px; padding:0;">' + i.bottomLeft + i.bottomRight + e); if (c("<canvas />").get(0).getContext) b.elements.wrapper.find("canvas").each(function() {
    j =
g[c(this).parent("[rel]:first").attr("rel")]; H.call(b, c(this), j, a, d)
}); else c.browser.msie && b.elements.tooltip.append('<v:image style="behavior:url(#default#VML);"></v:image>'); i = Math.max(a, a + (f - a)); b.elements.contentWrapper.css({ border: "0px solid " + d, borderWidth: Math.max(f - a, 0) + "px " + i + "px" })
    } function I(b, e, f) { b = b.get(0).getContext("2d"); b.fillStyle = f; b.beginPath(); b.moveTo(e[0][0], e[0][1]); b.lineTo(e[1][0], e[1][1]); b.lineTo(e[2][0], e[2][1]); b.fill() } function J(b) {
        var e, f; if (!(this.options.style.tip.corner ===
false || !this.elements.tip)) {
            b || (b = new x(this.elements.tip.attr("rel"))); e = f = c.browser.msie ? 1 : 0; this.elements.tip.css(b[b.precedance], 0); if (b.precedance === "y") {
                if (c.browser.msie) f = parseInt(c.browser.version.charAt(0), 10) === 6 ? b.y === "top" ? -3 : 1 : b.y === "top" ? 1 : 2; if (b.x === "center") this.elements.tip.css({ left: "50%", marginLeft: -(this.options.style.tip.size.width / 2) }); else b.x === "left" ? this.elements.tip.css({ left: this.options.style.border.radius - e }) : this.elements.tip.css({ right: this.options.style.border.radius +
e
                }); b.y === "top" ? this.elements.tip.css({ top: -f }) : this.elements.tip.css({ bottom: f })
            } else { if (c.browser.msie) f = parseInt(c.browser.version.charAt(0), 10) === 6 ? 1 : b.x === "left" ? 1 : 2; if (b.y === "center") this.elements.tip.css({ top: "50%", marginTop: -(this.options.style.tip.size.height / 2) }); else b.y === "top" ? this.elements.tip.css({ top: this.options.style.border.radius - e }) : this.elements.tip.css({ bottom: this.options.style.border.radius + e }); b.x === "left" ? this.elements.tip.css({ left: -f }) : this.elements.tip.css({ right: f }) } e =
"padding-" + b[b.precedance]; b = this.options.style.tip.size[b.precedance === "x" ? "width" : "height"]; this.elements.tooltip.css("padding", 0).css(e, b); if (c.browser.msie && parseInt(c.browser.version.charAt(0), 6) === 6) { b = parseInt(this.elements.tip.css("margin-top"), 10) || 0; b += parseInt(this.elements.content.css("margin-top"), 10) || 0; this.elements.tip.css({ marginTop: b }) } 
        } 
    } function K(b) {
        var e, f, a, d; this.elements.tip !== null && this.elements.tip.remove(); e = this.options.style.tip.color || this.options.style.border.color;
        if (this.options.style.tip.corner !== false) {
            b || (b = new x(this.options.style.tip.corner)); f = D(b.string(), this.options.style.tip.size.width, this.options.style.tip.size.height); this.elements.tip = '<div class="' + this.options.style.classes.tip + '" dir="ltr" rel="' + b.string() + '" style="position:absolute; height:' + this.options.style.tip.size.height + "px; width:" + this.options.style.tip.size.width + 'px; margin:0 auto; line-height:0.1px; font-size:1px;"></div>'; this.elements.tooltip.prepend(this.elements.tip); if (c("<canvas />").get(0).getContext) a =
'<canvas height="' + this.options.style.tip.size.height + '" width="' + this.options.style.tip.size.width + '"></canvas>'; else if (c.browser.msie) {
                a = this.options.style.tip.size.width + "," + this.options.style.tip.size.height; d = "m" + f[0][0] + "," + f[0][1]; d += " l" + f[1][0] + "," + f[1][1]; d += " " + f[2][0] + "," + f[2][1]; d += " xe"; a = '<v:shape fillcolor="' + e + '" stroked="false" filled="true" path="' + d + '" coordsize="' + a + '" style="width:' + this.options.style.tip.size.width + "px; height:" + this.options.style.tip.size.height + "px; line-height:0.1px; display:inline-block; behavior:url(#default#VML); vertical-align:" +
(b.y === "top" ? "bottom" : "top") + '"></v:shape>'; a += '<v:image style="behavior:url(#default#VML);"></v:image>'; this.elements.contentWrapper.css("position", "relative")
            } this.elements.tip = this.elements.tooltip.find("." + this.options.style.classes.tip).eq(0); this.elements.tip.html(a); c("<canvas  />").get(0).getContext && I.call(this, this.elements.tip.find("canvas:first"), f, e); b.y === "top" && c.browser.msie && parseInt(c.browser.version.charAt(0), 10) === 6 && this.elements.tip.css({ marginTop: -4 }); J.call(this, b)
        } 
    } function O() {
        var b =
this; b.elements.title !== null && b.elements.title.remove(); b.elements.tooltip.attr("aria-labelledby", "qtip-" + b.id + "-title"); b.elements.title = c('<div id="qtip-' + b.id + '-title" class="' + b.options.style.classes.title + '"></div>').css(y(b.options.style.title, true)).css({ zoom: c.browser.msie ? 1 : 0 }).prependTo(b.elements.contentWrapper); b.options.content.title.text && b.updateTitle.call(b, b.options.content.title.text); if (b.options.content.title.button !== false && typeof b.options.content.title.button === "string") b.elements.button =
c('<a class="' + b.options.style.classes.button + '" role="button" style="float:right; position: relative"></a>').css(y(b.options.style.button, true)).html(b.options.content.title.button).prependTo(b.elements.title).click(function(e) { b.status.disabled || b.hide(e) })
    } function P() {
        function b(h) {
            if (a.status.disabled !== true) {
                clearTimeout(a.timers.inactive); a.timers.inactive = setTimeout(function() { c(i).each(function() { g.unbind(this + ".qtip-inactive"); a.elements.content.unbind(this + ".qtip-inactive") }); a.hide(h) },
a.options.hide.delay)
            } 
        } function e(h) { if (a.status.disabled !== true) { if (a.options.hide.when.event === "inactive") { c(i).each(function() { g.bind(this + ".qtip-inactive", b); a.elements.content.bind(this + ".qtip-inactive", b) }); b() } clearTimeout(a.timers.show); clearTimeout(a.timers.hide); if (a.options.show.delay > 0) a.timers.show = setTimeout(function() { a.show(h) }, a.options.show.delay); else a.show(h) } } function f(h) {
            if (a.status.disabled !== true) {
                if (a.options.hide.fixed === true && /mouse(out|leave)/i.test(a.options.hide.when.event) &&
c(h.relatedTarget).parents('div.qtip[id^="qtip"]').length > 0) { h.stopPropagation(); h.preventDefault(); clearTimeout(a.timers.hide); return false } clearTimeout(a.timers.show); clearTimeout(a.timers.hide); a.elements.tooltip.stop(true, true); a.timers.hide = setTimeout(function() { a.hide(h) }, a.options.hide.delay)
            } 
        } var a, d, g, i; a = this; d = a.options.show.when.target; g = a.options.hide.when.target; if (a.options.hide.fixed) g = g.add(a.elements.tooltip); i = ["click", "dblclick", "mousedown", "mouseup", "mousemove", "mouseout", "mouseenter",
"mouseleave", "mouseover"]; a.options.hide.fixed === true && a.elements.tooltip.bind("mouseover.qtip", function() { a.status.disabled !== true && clearTimeout(a.timers.hide) }); if (a.options.show.when.target.add(a.options.hide.when.target).length === 1 && a.options.show.when.event === a.options.hide.when.event && a.options.hide.when.event !== "inactive" || a.options.hide.when.event === "unfocus") { a.cache.toggle = 0; d.bind(a.options.show.when.event + ".qtip", function(h) { a.cache.toggle === 0 ? e(h) : f(h) }) } else {
            d.bind(a.options.show.when.event +
".qtip", e); a.options.hide.when.event !== "inactive" && g.bind(a.options.hide.when.event + ".qtip", f)
        } /(fixed|absolute)/.test(a.options.position.type) && a.elements.tooltip.bind("mouseover.qtip", a.focus); a.options.position.target === "mouse" && a.options.position.type !== "static" && d.bind("mousemove.qtip", function(h) { a.cache.mouse = { x: h.pageX, y: h.pageY }; a.status.disabled === false && a.options.position.adjust.mouse === true && a.options.position.type !== "static" && a.elements.tooltip.css("display") !== "none" && a.updatePosition(h) })
    }
    function Q() { var b; b = this.getDimensions(); this.elements.bgiframe = this.elements.wrapper.prepend('<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:false" style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=\'0\'); border: 1px solid red; height:' + b.height + "px; width:" + b.width + 'px" />').children(".qtip-bgiframe:first") } function L() {
        var b, e, f; this.beforeRender.call(this); this.status.rendered = 2; this.elements.tooltip = '<div qtip="' + this.id + '" id="qtip-' + this.id +
'" role="tooltip" aria-describedby="qtip-' + this.id + '-content" class="qtip ' + (this.options.style.classes.tooltip || this.options.style) + '" style="display:none; -moz-border-radius:0; -webkit-border-radius:0; border-radius:0; position:' + this.options.position.type + ';">   <div class="qtip-wrapper" style="position:relative; overflow:hidden; text-align:left;">     <div class="qtip-contentWrapper" style="overflow:hidden;">        <div id="qtip-' + this.id + '-content" class="qtip-content ' + this.options.style.classes.content +
'"></div> </div></div></div>'; this.elements.tooltip = c(this.elements.tooltip); this.elements.tooltip.appendTo(this.options.position.container); this.elements.tooltip.data("qtip", { current: 0, interfaces: [this] }); this.elements.wrapper = this.elements.tooltip.children("div:first"); this.elements.contentWrapper = this.elements.wrapper.children("div:first"); this.elements.content = this.elements.contentWrapper.children("div:first").css(y(this.options.style)); c.browser.msie && this.elements.wrapper.add(this.elements.content).css({ zoom: 1 });
        this.options.hide.when.event === "unfocus" && this.elements.tooltip.attr("unfocus", true); typeof this.options.style.width.value === "number" && this.updateWidth(); if (c("<canvas />").get(0).getContext || c.browser.msie) { this.options.style.border.radius > 0 ? N.call(this) : this.elements.contentWrapper.css({ border: this.options.style.border.width + "px solid " + this.options.style.border.color }); this.options.style.tip.corner !== false && K.call(this) } else {
            this.elements.contentWrapper.css({ border: this.options.style.border.width +
"px solid " + this.options.style.border.color
            }); this.options.style.border.radius = 0; this.options.style.tip.corner = false
        } if (typeof this.options.content.text === "string" && this.options.content.text.length > 0 || this.options.content.text.jquery && this.options.content.text.length > 0) b = this.options.content.text; else if (this.elements.target.attr("title").length > 0) { this.cache.attr = ["title", this.elements.target.attr("title")]; b = this.cache.attr[1].replace(/\n/gi, "<br />") } else if (this.elements.target.attr("alt").length >
0) { this.cache.attr = ["alt", this.elements.target.attr("alt")]; b = this.cache.attr[1].replace(/\n/gi, "<br />") } else b = " "; this.options.content.title.text !== false && O.call(this); this.updateContent(b, false); P.call(this); this.options.show.ready === true && this.show(); if (this.options.content.url !== false) { b = this.options.content.url; e = this.options.content.data; f = this.options.content.method || "get"; this.loadContent(b, e, f) } this.status.rendered = true; this.onRender.call(this)
    } function R(b, e, f) {
        var a = this; a.id = f; a.options =
e; a.status = { animated: false, rendered: false, disabled: false, focused: false }; a.elements = { target: b.addClass(a.options.style.classes.target), tooltip: null, wrapper: null, content: null, contentWrapper: null, title: null, button: null, tip: null, bgiframe: null }; a.cache = { attr: null, mouse: {}, toggle: 0, overflow: { left: false, top: false} }; a.timers = {}; c.extend(a, a.options.api, { show: function(d) {
    function g() {
        a.elements.tooltip.attr("aria-hidden", true); a.options.position.type !== "static" && a.focus(); a.onShow.call(a, d); c.browser.msie &&
a.elements.tooltip.get(0).style.removeAttribute("filter"); a.elements.tooltip.css({ opacity: "" })
    } var i; if (!a.status.rendered) return false; if (a.elements.tooltip.css("display") !== "none") return a; a.cache.attr && a.elements.target.removeAttr(a.cache.attr[0]); a.elements.tooltip.stop(true, false); if (a.beforeShow.call(a, d) === false) return a; a.cache.toggle = 1; a.options.position.type !== "static" && a.updatePosition(d, a.options.show.effect.length > 0 && a.rendered !== 2); if (typeof a.options.show.solo === "object") i = c(a.options.show.solo);
    else if (a.options.show.solo === true) i = c("div.qtip").not(a.elements.tooltip); i && i.each(function() { c(this).qtip("api").status.rendered === true && c(this).qtip("api").hide() }); if (typeof a.options.show.effect.type === "function") { a.options.show.effect.type.call(a.elements.tooltip, a.options.show.effect.length); a.elements.tooltip.queue(function() { g(); c(this).dequeue() }) } else {
        switch (a.options.show.effect.type.toLowerCase()) {
            case "fade": a.elements.tooltip.fadeIn(a.options.show.effect.length, g); break; case "slide": a.elements.tooltip.slideDown(a.options.show.effect.length,
function() { g(); a.options.position.type !== "static" && a.updatePosition(d, true) }); break; case "grow": a.elements.tooltip.show(a.options.show.effect.length, g); break; default: a.elements.tooltip.show(null, g); break
        } a.elements.tooltip.addClass(a.options.style.classes.active)
    } return a
}, hide: function(d) {
    function g() { a.elements.tooltip.attr("aria-hidden", true); a.elements.tooltip.css({ opacity: "" }); a.onHide.call(a, d) } if (a.status.rendered) { if (a.elements.tooltip.css("display") === "none") return a } else return false; a.cache.attr &&
a.elements.target.attr(a.cache.attr[0], a.cache.attr[1]); clearTimeout(a.timers.show); a.elements.tooltip.stop(true, false); if (a.beforeHide.call(a, d) === false) return a; a.cache.toggle = 0; if (typeof a.options.hide.effect.type === "function") { a.options.hide.effect.type.call(a.elements.tooltip, a.options.hide.effect.length); a.elements.tooltip.queue(function() { g(); c(this).dequeue() }) } else {
        switch (a.options.hide.effect.type.toLowerCase()) {
            case "fade": a.elements.tooltip.fadeOut(a.options.hide.effect.length, g); break;
            case "slide": a.elements.tooltip.slideUp(a.options.hide.effect.length, g); break; case "grow": a.elements.tooltip.hide(a.options.hide.effect.length, g); break; default: a.elements.tooltip.hide(null, g); break
        } a.elements.tooltip.removeClass(a.options.style.classes.active)
    } return a
}, toggle: function(d, g) { var i = /boolean|number/.test(typeof g) ? g : !a.elements.tooltip.is(":visible"); a[i ? "show" : "hide"](d); return a }, updatePosition: function(d, g) {
    if (!a.status.rendered) return false; var i = e.position, h = c(i.target), j = a.elements.tooltip.outerWidth(),
o = a.elements.tooltip.outerHeight(), m, s, k, q = i.corner.tooltip, z = i.corner.target, l, n, w, M = { left: function() { var t = c(window).scrollLeft(), r = c(window).width() + c(window).scrollLeft(), u = q.x === "center" ? j / 2 : j, A = q.x === "center" ? m / 2 : m, B = (q.x === "center" ? 1 : 2) * a.options.style.border.radius, C = -2 * i.adjust.x, v = k.left + j, p; if (v > r) { p = C - u - A + B; if (k.left + p > t || t - (k.left + p) < v - r) return { adjust: p, tip: "right"} } if (k.left < t) { p = C + u + A - B; if (v + p < r || v + p - r < t - k.left) return { adjust: p, tip: "left"} } return { adjust: 0, tip: q.x} }, top: function() {
    var t =
c(window).scrollTop(), r = c(window).height() + c(window).scrollTop(), u = q.y === "center" ? o / 2 : o, A = q.y === "center" ? s / 2 : s, B = (q.y === "center" ? 1 : 2) * a.options.style.border.radius, C = -2 * i.adjust.y, v = k.top + o, p; if (v > r) { p = C - u - A + B; if (k.top + p > t || t - (k.top + p) < v - r) return { adjust: p, tip: "bottom"} } if (k.top < t) { p = C + u + A - B; if (v + p < r || v + p - r < t - k.top) return { adjust: p, tip: "top"} } return { adjust: 0, tip: q.y}
} 
}; if (d && e.position.target === "mouse") { z = { x: "left", y: "top" }; m = s = 0; k = { top: d.pageY, left: d.pageX} } else {
        if (h[0] === document) {
            m = h.width(); s = h.height();
            k = { top: 0, left: 0}
        } else if (h[0] === window) { m = h.width(); s = h.height(); k = { top: h.scrollTop(), left: h.scrollLeft()} } else if (h.is("area")) {
            l = a.options.position.target.attr("coords").split(","); for (n = 0; n < l.length; n++) l[n] = parseInt(l[n], 10); n = a.options.position.target.parent("map").attr("name"); w = c('img[usemap="#' + n + '"]:first').offset(); h.position = { left: Math.floor(w.left + l[0]), top: Math.floor(w.top + l[1]) }; switch (a.options.position.target.attr("shape").toLowerCase()) {
                case "rect": m = Math.ceil(Math.abs(l[2] - l[0]));
                    s = Math.ceil(Math.abs(l[3] - l[1])); break; case "circle": m = l[2] + 1; s = l[2] + 1; break; case "poly": m = l[0]; s = l[1]; for (n = 0; n < l.length; n++) if (n % 2 === 0) { if (l[n] > m) m = l[n]; if (l[n] < l[0]) k.left = Math.floor(w.left + l[n]) } else { if (l[n] > s) s = l[n]; if (l[n] < l[1]) k.top = Math.floor(w.top + l[n]) } m -= k.left - w.left; s -= k.top - w.top; break
            } m -= 2; s -= 2
        } else { m = h.outerWidth(); s = h.outerHeight(); k = h.offset() } k.left += z.x === "right" ? m : z.x === "center" ? m / 2 : 0; k.top += z.y === "bottom" ? s : z.y === "center" ? s / 2 : 0
    } k.left += i.adjust.x + (q.x === "right" ? -j : q.x === "center" ?
-j / 2 : 0); k.top += i.adjust.y + (q.y === "bottom" ? -o : q.y === "center" ? -o / 2 : 0); if (a.options.style.border.radius > 0) { if (q.x === "left") k.left -= a.options.style.border.radius; else if (q.x === "right") k.left += a.options.style.border.radius; if (q.y === "top") k.top -= a.options.style.border.radius; else if (q.y === "bottom") k.top += a.options.style.border.radius } i.adjust.screen && function() {
    var t = { x: 0, y: 0 }, r = { x: M.left(), y: M.top() }, u = new x(e.style.tip.corner); if (a.elements.tip && u) {
        if (r.y.adjust !== 0) { k.top += r.y.adjust; u.y = t.y = r.y.tip } if (r.x.adjust !==
0) { k.left += r.x.adjust; u.x = t.x = r.x.tip } a.cache.overflow = { left: t.x === false, top: t.y === false }; a.elements.tip.attr("rel") !== u.string() && K.call(a, u)
    } 
} (); !a.elements.bgiframe && c.browser.msie && parseInt(c.browser.version.charAt(0), 10) === 6 && Q.call(a); if (a.beforePositionUpdate.call(a, d) === false) return a; if (e.position.target !== "mouse" && g === true) { a.status.animated = true; a.elements.tooltip.stop().animate(k, 200, "swing", function() { a.status.animated = false }) } else a.elements.tooltip.css(k); a.onPositionUpdate.call(a,
d); return a
}, updateWidth: function(d) {
    if (!a.status.rendered || d && typeof d !== "number") return false; var g = a.elements.contentWrapper.siblings().add(a.elements.tip).add(a.elements.button), i = a.elements.wrapper.add(a.elements.contentWrapper.children()), h = a.elements.tooltip, j = a.options.style.width.max, o = a.options.style.width.min; if (!d) if (typeof a.options.style.width.value === "number") d = a.options.style.width.value; else {
        a.elements.tooltip.css({ width: "auto" }); g.hide(); h.width(d); c.browser.msie && i.css({ zoom: "" });
        d = a.getDimensions().width; a.options.style.width.value || (d = Math.min(Math.max(d, o), j))
    } if (d % 2) d += 1; a.elements.tooltip.width(d); g.show(); a.options.style.border.radius && a.elements.tooltip.find(".qtip-betweenCorners").each(function() { c(this).width(d - a.options.style.border.radius * 2) }); if (c.browser.msie) { i.css({ zoom: 1 }); a.elements.wrapper.width(d); a.elements.bgiframe && a.elements.bgiframe.width(d).height(a.getDimensions.height) } return a
}, updateStyle: function(d) {
    var g, i, h, j; if (!a.status.rendered || typeof d !==
"string" || !c.fn.qtip.styles[d]) return false; a.options.style = G.call(a, c.fn.qtip.styles[d], a.options.user.style); a.elements.content.css(y(a.options.style)); a.options.content.title.text !== false && a.elements.title.css(y(a.options.style.title, true)); a.elements.contentWrapper.css({ borderColor: a.options.style.border.color }); if (a.options.style.tip.corner !== false) if (c("<canvas />").get(0).getContext) {
        d = a.elements.tooltip.find(".qtip-tip canvas:first"); i = d.get(0).getContext("2d"); i.clearRect(0, 0, 300, 300); h =
d.parent("div[rel]:first").attr("rel"); j = D(h, a.options.style.tip.size.width, a.options.style.tip.size.height); I.call(a, d, j, a.options.style.tip.color || a.options.style.border.color)
    } else if (c.browser.msie) { d = a.elements.tooltip.find('.qtip-tip [nodeName="shape"]'); d.attr("fillcolor", a.options.style.tip.color || a.options.style.border.color) } if (a.options.style.border.radius > 0) {
        a.elements.tooltip.find(".qtip-betweenCorners").css({ backgroundColor: a.options.style.border.color }); if (c("<canvas />").get(0).getContext) {
            g =
E(a.options.style.border.radius); a.elements.tooltip.find(".qtip-wrapper canvas").each(function() { i = c(this).get(0).getContext("2d"); i.clearRect(0, 0, 300, 300); h = c(this).parent("div[rel]:first").attr("rel"); H.call(a, c(this), g[h], a.options.style.border.radius, a.options.style.border.color) })
        } else c.browser.msie && a.elements.tooltip.find('.qtip-wrapper [nodeName="arc"]').each(function() { c(this).attr("fillcolor", a.options.style.border.color) })
    } return a
}, updateContent: function(d, g) {
    function i() {
        a.updateWidth();
        if (g !== false) { a.options.position.type !== "static" && a.updatePosition(a.elements.tooltip.is(":visible"), true); a.options.style.tip.corner !== false && J.call(a) } 
    } var h, j, o; if (!a.status.rendered || !d) return false; h = a.beforeContentUpdate.call(a, d); if (typeof h === "string") d = h; else if (h === false) return; c.browser.msie && a.elements.contentWrapper.children().css({ zoom: "normal" }); d.jquery && d.length > 0 ? d.clone(true).appendTo(a.elements.content).show() : a.elements.content.html(d); j = a.elements.content.find("img[complete=false]");
    if (j.length > 0) { o = 0; j.each(function() { c('<img src="' + c(this).attr("src") + '" />').load(function() { ++o === j.length && i() }) }) } else i(); a.onContentUpdate.call(a); return a
}, loadContent: function(d, g, i) { function h(j) { a.onContentLoad.call(a); a.updateContent(j) } if (!a.status.rendered) return false; if (a.beforeContentLoad.call(a) === false) return a; i === "post" ? c.post(d, g, h) : c.get(d, g, h); return a }, updateTitle: function(d) {
    if (!a.status.rendered || !d) return false; if (a.beforeTitleUpdate.call(a) === false) return a; if (a.elements.button) a.elements.button =
a.elements.button.clone(true); a.elements.title.html(d); a.elements.button && a.elements.title.prepend(a.elements.button); a.onTitleUpdate.call(a); return a
}, focus: function(d) {
    var g, i, h; if (!a.status.rendered || a.options.position.type === "static") return false; g = parseInt(a.elements.tooltip.css("z-index"), 10); i = 15E3 + c('div.qtip[id^="qtip"]').length - 1; if (!a.status.focused && g !== i) {
        g = a.beforeFocus.call(a, d); if (g === false) return a; c('div.qtip[id^="qtip"]').not(a.elements.tooltip).each(function() {
            if (c(this).qtip("api").status.rendered ===
true) { h = parseInt(c(this).css("z-index"), 10); typeof h === "number" && h > -1 && c(this).css({ zIndex: parseInt(c(this).css("z-index"), 10) - 1 }); c(this).qtip("api").status.focused = false } 
        }); a.elements.tooltip.css({ zIndex: i }); a.status.focused = true; a.onFocus.call(a, d)
    } return a
}, disable: function(d) { if (!a.status.rendered) return false; a.status.disabled = d ? true : false; return a }, destroy: function() {
    var d, g; if (a.beforeDestroy.call(a) === false) return a; if (a.status.rendered) {
        a.options.show.when.target.unbind("mousemove.qtip",
a.updatePosition); a.options.show.when.target.unbind("mouseout.qtip", a.hide); a.options.show.when.target.unbind(a.options.show.when.event + ".qtip"); a.options.hide.when.target.unbind(a.options.hide.when.event + ".qtip"); a.elements.tooltip.unbind(a.options.hide.when.event + ".qtip"); a.elements.tooltip.unbind("mouseover.qtip", a.focus); a.elements.tooltip.remove()
    } else a.options.show.when.target.unbind(a.options.show.when.event + ".qtip-" + a.id + "-create"); if (typeof a.elements.target.data("qtip") === "object") {
        g = a.elements.target.data("qtip").interfaces;
        if (typeof g === "object" && g.length > 0) for (d = 0; d < g.length - 1; d++) g[d].id === a.id && g.splice(d, 1)
    } c.fn.qtip.interfaces.splice(a.id, 1); if (typeof g === "object" && g.length > 0) a.elements.target.data("qtip").current = g.length - 1; else a.elements.target.removeData("qtip"); a.onDestroy.call(a); return a.elements.target
}, getPosition: function() {
    var d, g; if (!a.status.rendered) return false; (d = a.elements.tooltip.css("display") !== "none" ? false : true) && a.elements.tooltip.css({ visiblity: "hidden" }).show(); g = a.elements.tooltip.offset();
    d && a.elements.tooltip.css({ visiblity: "visible" }).hide(); return g
}, getDimensions: function() { var d, g; if (!a.status.rendered) return false; (d = !a.elements.tooltip.is(":visible") ? true : false) && a.elements.tooltip.css({ visiblity: "hidden" }).show(); g = { height: a.elements.tooltip.outerHeight(), width: a.elements.tooltip.outerWidth() }; d && a.elements.tooltip.css({ visiblity: "visible" }).hide(); return g } 
})
    } c(document).ready(function() {
        var b; c(window).bind("resize scroll", function(e) {
            for (b = 0; b < c.fn.qtip.interfaces.length; b++) {
                var f =
c.fn.qtip.interfaces[b]; if (f && f.status && f.status.rendered && f.options.position.type !== "static" && (f.options.position.adjust.scroll && e.type === "scroll" || f.options.position.adjust.resize && e.type === "resize")) f.updatePosition(e, true)
            } 
        }); c(document).bind("mousedown.qtip", function(e) { c(e.target).parents("div.qtip").length === 0 && c(".qtip[unfocus]").each(function() { var f = c(this).qtip("api"); c(this).is(":visible") && f && f.status && !f.status.disabled && c(e.target).add(f.elements.target).length > 1 && f.hide(e) }) })
    }); c.fn.qtip =
function(b, e) {
    var f, a, d, g, i, h, j, o; if (typeof b === "string") if (c(this).data("qtip")) if (b === "api") return c(this).data("qtip").interfaces[c(this).data("qtip").current]; else { if (b === "interfaces") return c(this).data("qtip").interfaces } else return c(this); else {
        b || (b = {}); if (typeof b.content !== "object" || b.content.jquery && b.content.length > 0) b.content = { text: b.content }; if (typeof b.content.title !== "object") b.content.title = { text: b.content.title }; if (typeof b.position !== "object") b.position = { corner: b.position }; if (typeof b.position.corner !==
"object") b.position.corner = { target: b.position.corner, tooltip: b.position.corner }; if (typeof b.show !== "object") b.show = { when: b.show }; if (typeof b.show.when !== "object") b.show.when = { event: b.show.when }; if (typeof b.show.effect !== "object") b.show.effect = { type: b.show.effect }; if (typeof b.hide !== "object") b.hide = { when: b.hide }; if (typeof b.hide.when !== "object") b.hide.when = { event: b.hide.when }; if (typeof b.hide.effect !== "object") b.hide.effect = { type: b.hide.effect }; if (typeof b.style !== "object") b.style = { name: b.style }; b.style =
F(b.style); g = c.extend(true, {}, c.fn.qtip.defaults, b); g.style = G.call({ options: g }, g.style); g.user = c.extend(true, {}, b)
    } return c(this).each(function() {
        if (typeof b === "string") {
            h = b.toLowerCase(); d = c(this).qtip("interfaces"); if (typeof d === "object") if (e === true && h === "destroy") for (f = d.length - 1; f > -1; f--) "object" === typeof d[f] && d[f].destroy(); else {
                if (e !== true) d = [c(this).qtip("api")]; for (f = 0; f < d.length; f++) if (h === "destroy") d[f].destroy(); else if (d[f].status.rendered === true) if (h === "show") d[f].show(); else if (h ===
"hide") d[f].hide(); else if (h === "focus") d[f].focus(); else if (h === "disable") d[f].disable(true); else if (h === "enable") d[f].disable(false); else h === "update" && d[f].updatePosition()
            } 
        } else {
            j = c.extend(true, {}, g); j.hide.effect.length = g.hide.effect.length; j.show.effect.length = g.show.effect.length; if (j.position.container === false) j.position.container = c(document.body); if (j.position.target === false) j.position.target = c(this); if (j.show.when.target === false) j.show.when.target = c(this); if (j.hide.when.target === false) j.hide.when.target =
c(this); j.position.corner.tooltip = new x(j.position.corner.tooltip); j.position.corner.target = new x(j.position.corner.target); a = c.fn.qtip.interfaces.length; for (f = 0; f < a; f++) if (typeof c.fn.qtip.interfaces[f] === "undefined") { a = f; break } i = new R(c(this), j, a); c.fn.qtip.interfaces[a] = i; if (typeof c(this).data("qtip") === "object" && c(this).data("qtip")) { if (typeof c(this).attr("qtip") === "undefined") c(this).data("qtip").current = c(this).data("qtip").interfaces.length; c(this).data("qtip").interfaces.push(i) } else c(this).data("qtip",
{ current: 0, interfaces: [i] }); if (j.content.prerender === false && j.show.when.event !== false && j.show.ready !== true) j.show.when.target.bind(j.show.when.event + ".qtip-" + a + "-create", { qtip: a }, function(m) { o = c.fn.qtip.interfaces[m.data.qtip]; o.options.show.when.target.unbind(o.options.show.when.event + ".qtip-" + m.data.qtip + "-create"); o.cache.mouse = { x: m.pageX, y: m.pageY }; L.call(o); o.options.show.when.target.trigger(o.options.show.when.event) }); else {
                i.cache.mouse = { x: j.show.when.target.offset().left, y: j.show.when.target.offset().top };
                L.call(i)
            } 
        } 
    })
}; c.fn.qtip.interfaces = []; c.fn.qtip.log = { error: function() { return this } }; c.fn.qtip.constants = {}; c.fn.qtip.defaults = { content: { prerender: false, text: false, url: false, data: null, title: { text: false, button: false} }, position: { target: false, corner: { target: "bottomRight", tooltip: "topLeft" }, adjust: { x: 0, y: 0, mouse: true, screen: false, scroll: true, resize: true }, type: "absolute", container: false }, show: { when: { target: false, event: "mouseover" }, effect: { type: "fade", length: 100 }, delay: 40, solo: false, ready: false }, hide: { when: { target: false,
    event: "mouseout"
}, effect: { type: "fade", length: 100 }, delay: 0, fixed: false
}, api: { beforeRender: function() { }, onRender: function() { }, beforePositionUpdate: function() { }, onPositionUpdate: function() { }, beforeShow: function() { }, onShow: function() { }, beforeHide: function() { }, onHide: function() { }, beforeContentUpdate: function() { }, onContentUpdate: function() { }, beforeContentLoad: function() { }, onContentLoad: function() { }, beforeTitleUpdate: function() { }, onTitleUpdate: function() { }, beforeDestroy: function() { }, onDestroy: function() { },
    beforeFocus: function() { }, onFocus: function() { } }
}; c.fn.qtip.styles = { defaults: { background: "white", color: "#111", overflow: "hidden", textAlign: "left", width: { min: 0, max: 250 }, padding: "5px 9px", border: { width: 1, radius: 0, color: "#d3d3d3" }, tip: { corner: false, color: false, size: { width: 10, height: 10 }, opacity: 1 }, title: { background: "#e1e1e1", fontWeight: "bold", padding: "7px 12px" }, button: { cursor: "pointer" }, classes: { target: "", tip: "qtip-tip", title: "qtip-title", button: "qtip-button", content: "qtip-content", active: "qtip-active"} },
    callMe: { border: { width: 3, radius: 0, color: "#faf3e1" }, title: { background: "#f9edc8", color: "#593400" }, background: "f9edc8", color: "#593400", classes: { tooltip: "qtip-light"} }, socialNetwork: { border: { width: 3, radius: 0, color: "#faf3e1" }, title: { background: "#f9edc8", color: "#593400" }, background: "f9edc8", color: "#593400", classes: { tooltip: "qtip-light"} }, red: { border: { width: 3, radius: 0, color: "#CE6F6F" }, title: { background: "#f28279", color: "#9C2F2F" }, background: "#F79992", color: "#9C2F2F", classes: { tooltip: "qtip-red"} }, green: { border: { width: 3,
        radius: 0, color: "#A9DB66"
    }, title: { background: "#b9db8c", color: "#58792E" }, background: "#CDE6AC", color: "#58792E", classes: { tooltip: "qtip-green"}
    }, blue: { border: { width: 3, radius: 0, color: "#ADD9ED" }, title: { background: "#D0E9F5", color: "#5E99BD" }, background: "#E5F6FE", color: "#4D9FBF", classes: { tooltip: "qtip-blue"}}}
})(jQuery);