jQuery.ui ||function (a) {    var b = a.browser.mozilla && parseFloat(a.browser.version) < 1.9;    a.ui = {        version: "1.8rc1",        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) {                    return                }                for (var e = 0; e < d.length; e++) {                    if (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 false            }            var d = c && c == "left" ? "scrollLeft" : "scrollTop",                e = false;            if (b[d] > 0) {                return true            }            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)        },        keyCode: {            BACKSPACE: 8,            CAPS_LOCK: 20,            COMMA: 188,            CONTROL: 17,            DELETE: 46,            DOWN: 40,            END: 35,            ENTER: 13,            ESCAPE: 27,            HOME: 36,            INSERT: 45,            LEFT: 37,            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        }    };    a.fn.extend({        _focus: a.fn.focus,        focus: function (b, c) {            return typeof b === "number" ? this.each(function () {                var e = this;                setTimeout(function () {                    a(e).focus();                    c && c.call(e)                }, b)            }) : this._focus.apply(this, arguments)        },        enableSelection: function () {            return this.attr("unselectable", "off").css("MozUserSelect", "").unbind("selectstart.ui")        },        disableSelection: function () {            return this.attr("unselectable", "on").css("MozUserSelect", "none").bind("selectstart.ui", function () {                return false            })        },        scrollParent: function () {            var b;            if (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)            } else {                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 (a) {            if (a !== undefined) {                return this.css("zIndex", a)            }            var b = this[0];            while (b && b.style) {                if (b.style.zIndex !== "" && b.style.zIndex !== 0) {                    return +b.style.zIndex                }                b = b.parentNode            }            return 0        }    });    a.extend(a.expr[":"], {        data: function (b, c, d) {            return !!a.data(b, d[3])        },        focusable: function (b) {            var c = b.nodeName.toLowerCase(),                d = a.attr(b, "tabindex");            return (/input|select|textarea|button|object/.test(c) ? !b.disabled : "a" == c || "area" == c ? b.href || !isNaN(d) : !isNaN(d)) && !a(b)["area" == c ? "parents" : "closest"](":hidden").length        },        tabbable: function (b) {            var c = a.attr(b, "tabindex");            return (isNaN(c) || c >= 0) && a(b).is(":focusable")        }    })}(jQuery);(function (a) {    var b = a.fn.remove;    a.fn.remove = function (c, d) {        if (!d) {            a("*", this).add(this).each(function () {                a(this).triggerHandler("remove")            })        }        return b.apply(this, arguments)    };    a.widget = function (b, c, d) {        var e = b.split(".")[0],            f;        b = b.split(".")[1];        f = e + "-" + b;        if (!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) {            if (arguments.length) {                this._createWidget(a, b)            }        };        var g = new c;        g.options = a.extend({}, g.options);        a[e][b].prototype = a.extend(true, 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 (b, c) {        a.fn[b] = function (e) {            var f = typeof e === "string",                g = Array.prototype.slice.call(arguments, 1),                h = this;            e = !f && g.length ? a.extend.apply(null, [true, e].concat(g)) : e;            if (f && e.substring(0, 1) === "_") {                return h            }            if (f) {                this.each(function () {                    var c = a.data(this, b),                        f = c && a.isFunction(c[e]) ? c[e].apply(c, g) : c;                    if (f !== c && f !== undefined) {                        h = f;                        return false                    }                })            } else {                this.each(function () {                    var f = a.data(this, b);                    if (f) {                        if (e) {                            f.option(e)                        }                        f._init()                    } else {                        a.data(this, b, new c(e, this))                    }                })            }            return h        }    };    a.Widget = function (a, b) {        if (arguments.length) {            this._createWidget(a, b)        }    };    a.Widget.prototype = {        widgetName: "widget",        widgetEventPrefix: "",        options: {            disabled: false        },        _createWidget: function (b, c) {            this.element = a(c).data(this.widgetName, this);            this.options = a.extend(true, {}, this.options, a.metadata && a.metadata.get(c)[this.widgetName], b);            var d = this;            this.element.bind("remove." + this.widgetName, function () {                d.destroy()            });            this._create();            this._init()        },        _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 " + this.namespace + "-state-disabled")        },        widget: function () {            return this.element        },        option: function (b, c) {            var d = b,                e = this;            if (arguments.length === 0) {                return a.extend({}, e.options)            }            if (typeof b === "string") {                if (c === undefined) {                    return this.options[b]                }                d = {};                d[b] = c            }            a.each(d, function (a, b) {                e._setOption(a, b)            });            return e        },        _setOption: function (a, b) {            this.options[a] = b;            if (a === "disabled") {                this.widget()[b ? "addClass" : "removeClass"](this.widgetBaseClass + "-disabled " + this.namespace + "-state-disabled").attr("aria-disabled", b)            }            return this        },        enable: function () {            return this._setOption("disabled", false)        },        disable: function () {            return this._setOption("disabled", true)        },        _trigger: function (b, c, d) {            var e = this.options[b];            c = a.Event(c);            c.type = (b === this.widgetEventPrefix ? b : this.widgetEventPrefix + b).toLowerCase();            d = d || {};            if (c.originalEvent) {                for (var f = a.event.props.length, g; f;) {                    g = a.event.props[--f];                    c[g] = c.originalEvent[g]                }            }            this.element.trigger(c, d);            return !(a.isFunction(e) && e.call(this.element[0], c, d) === false || c.isDefaultPrevented())        }    }})(jQuery);(function (a) {    a.widget("ui.mouse", {        options: {            cancel: ":input,option",            distance: 1,            delay: 0        },        _mouseInit: function () {            var a = this;            this.element.bind("mousedown." + this.widgetName, function (c) {                return a._mouseDown(c)            }).bind("click." + this.widgetName, function (c) {                if (a._preventClickEvent) {                    a._preventClickEvent = false;                    c.stopImmediatePropagation();                    return false                }            });            this.started = false        },        _mouseDestroy: function () {            this.element.unbind("." + this.widgetName)        },        _mouseDown: function (b) {            b.originalEvent = b.originalEvent || {};            if (b.originalEvent.mouseHandled) {                return            }            this._mouseStarted && this._mouseUp(b);            this._mouseDownEvent = b;            var c = this,                d = b.which == 1,                e = typeof this.options.cancel == "string" ? a(b.target).parents().add(b.target).filter(this.options.cancel).length : false;            if (!d || e || !this._mouseCapture(b)) {                return true            }            this.mouseDelayMet = !this.options.delay;            if (!this.mouseDelayMet) {                this._mouseDelayTimer = setTimeout(function () {                    c.mouseDelayMet = true                }, this.options.delay)            }            if (this._mouseDistanceMet(b) && this._mouseDelayMet(b)) {                this._mouseStarted = this._mouseStart(b) !== false;                if (!this._mouseStarted) {                    b.preventDefault();                    return true                }            }            this._mouseMoveDelegate = function (a) {                return c._mouseMove(a)            };            this._mouseUpDelegate = function (a) {                return c._mouseUp(a)            };            a(document).bind("mousemove." + this.widgetName, this._mouseMoveDelegate).bind("mouseup." + this.widgetName, this._mouseUpDelegate);            a.browser.safari || b.preventDefault();            b.originalEvent.mouseHandled = true;            return true        },        _mouseMove: function (b) {            if (a.browser.msie && !b.button) {                return this._mouseUp(b)            }            if (this._mouseStarted) {                this._mouseDrag(b);                return b.preventDefault()            }            if (this._mouseDistanceMet(b) && this._mouseDelayMet(b)) {                this._mouseStarted = this._mouseStart(this._mouseDownEvent, b) !== false;                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);            if (this._mouseStarted) {                this._mouseStarted = false;                this._preventClickEvent = b.target == this._mouseDownEvent.target;                this._mouseStop(b)            }            return false        },        _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 true        }    })})(jQuery);(function (a) {    var b = 5;    a.widget("ui.slider", a.ui.mouse, {        options: {            animate: false,            distance: 0,            max: 100,            min: 0,            orientation: "horizontal",            range: false,            step: 1,            value: 0,            values: null        },        _create: function () {            var c = this,                d = this.options;            this._keySliding = false;            this._animateOff = true;            this._handleIndex = null;            this._detectOrientation();            this._mouseInit();            this.element.addClass("ui-slider ui-slider-" + this.orientation + " ui-widget ui-widget-content ui-corner-all");            if (d.disabled) {                this.element.addClass("ui-slider-disabled ui-disabled")            }            this.range = a([]);            if (d.range) {                if (d.range === true) {                    this.range = a("<div></div>");                    if (!d.values) {                        d.values = [this._valueMin(), this._valueMin()]                    }                    if (d.values.length && d.values.length != 2) {                        d.values = [d.values[0], d.values[0]]                    }                } else {                    this.range = a("<div></div>")                }                this.range.appendTo(this.element).addClass("ui-slider-range");                if (d.range == "min" || d.range == "max") {                    this.range.addClass("ui-slider-range-" + d.range)                }                this.range.addClass("ui-widget-header")            }            if (a(".ui-slider-handle", this.element).length == 0) {                a('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle")            }            if (d.values && d.values.length) {                while (a(".ui-slider-handle", this.element).length < d.values.length) {                    a('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle")                }            }            this.handles = a(".ui-slider-handle", this.element).addClass("ui-state-default ui-corner-all");            this.handle = this.handles.eq(0);            this.handles.add(this.range).filter("a").click(function (a) {                a.preventDefault()            }).hover(function () {                if (!d.disabled) {                    a(this).addClass("ui-state-hover")                }            }, function () {                a(this).removeClass("ui-state-hover")            }).focus(function () {                if (!d.disabled) {                    a(".ui-slider .ui-state-focus").removeClass("ui-state-focus");                    a(this).addClass("ui-state-focus")                } else {                    a(this).blur()                }            }).blur(function () {                a(this).removeClass("ui-state-focus")            });            this.handles.each(function (b) {                a(this).data("index.ui-slider-handle", b)            });            this.handles.keydown(function (d) {                var e = true;                var f = a(this).data("index.ui-slider-handle");                if (c.options.disabled) {                    return                }                switch (d.keyCode) {                case a.ui.keyCode.HOME:                case a.ui.keyCode.END:                case a.ui.keyCode.PAGE_UP:                case a.ui.keyCode.PAGE_DOWN:                case a.ui.keyCode.UP:                case a.ui.keyCode.RIGHT:                case a.ui.keyCode.DOWN:                case a.ui.keyCode.LEFT:                    e = false;                    if (!c._keySliding) {                        c._keySliding = true;                        a(this).addClass("ui-state-active");                        c._start(d, f)                    }                    break                }                var g, h, i = c._step();                if (c.options.values && c.options.values.length) {                    g = h = c.values(f)                } else {                    g = h = c.value()                }                switch (d.keyCode) {                case a.ui.keyCode.HOME:                    h = c._valueMin();                    break;                case a.ui.keyCode.END:                    h = c._valueMax();                    break;                case a.ui.keyCode.PAGE_UP:                    h = g + (c._valueMax() - c._valueMin()) / b;                    break;                case a.ui.keyCode.PAGE_DOWN:                    h = g - (c._valueMax() - c._valueMin()) / b;                    break;                case a.ui.keyCode.UP:                case a.ui.keyCode.RIGHT:                    if (g == c._valueMax()) {                        return                    }                    h = g + i;                    break;                case a.ui.keyCode.DOWN:                case a.ui.keyCode.LEFT:                    if (g == c._valueMin()) {                        return                    }                    h = g - i;                    break                }                c._slide(d, f, h);                return e            }).keyup(function (b) {                var d = a(this).data("index.ui-slider-handle");                if (c._keySliding) {                    c._stop(b, d);                    c._change(b, d);                    c._keySliding = false;                    a(this).removeClass("ui-state-active")                }            });            this._refreshValue();            this._animateOff = false        },        destroy: function () {            this.handles.remove();            this.range.remove();            this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");            this._mouseDestroy();            return this        },        _mouseCapture: function (b) {            var c = this.options;            if (c.disabled) {                return false            }            this.elementSize = {                width: this.element.outerWidth(),                height: this.element.outerHeight()            };            this.elementOffset = this.element.offset();            var d = {                x: b.pageX,                y: b.pageY            };            var e = this._normValueFromMouse(d);            var f = this._valueMax() - this._valueMin() + 1,                g;            var h = this,                i;            this.handles.each(function (b) {                var c = Math.abs(e - h.values(b));                if (f > c) {                    f = c;                    g = a(this);                    i = b                }            });            if (c.range == true && this.values(1) == c.min) {                g = a(this.handles[++i])            }            this._start(b, i);            h._handleIndex = i;            g.addClass("ui-state-active").focus();            var j = g.offset();            var k = !a(b.target).parents().andSelf().is(".ui-slider-handle");            this._clickOffset = k ? {                left: 0,                top: 0            } : {                left: b.pageX - j.left - g.width() / 2,                top: b.pageY - j.top - g.height() / 2 - (parseInt(g.css("borderTopWidth"), 10) || 0) - (parseInt(g.css("borderBottomWidth"), 10) || 0) + (parseInt(g.css("marginTop"), 10) || 0)            };            e = this._normValueFromMouse(d);            this._slide(b, i, e);            this._animateOff = true;            return true        },        _mouseStart: function (a) {            return true        },        _mouseDrag: function (a) {            var b = {                x: a.pageX,                y: a.pageY            };            var c = this._normValueFromMouse(b);            this._slide(a, this._handleIndex, c);            return false        },        _mouseStop: function (a) {            this.handles.removeClass("ui-state-active");            this._stop(a, this._handleIndex);            this._change(a, this._handleIndex);            this._handleIndex = null;            this._clickOffset = null;            this._animateOff = false;            return false        },        _detectOrientation: function () {            this.orientation = this.options.orientation == "vertical" ? "vertical" : "horizontal"        },        _normValueFromMouse: function (a) {            var b, c;            if ("horizontal" == this.orientation) {                b = this.elementSize.width;                c = a.x - this.elementOffset.left - (this._clickOffset ? this._clickOffset.left : 0)            } else {                b = this.elementSize.height;                c = a.y - this.elementOffset.top - (this._clickOffset ? this._clickOffset.top : 0)            }            var d = c / b;            if (d > 1) {                d = 1            }            if (d < 0) {                d = 0            }            if ("vertical" == this.orientation) {                d = 1 - d            }            var e = this._valueMax() - this._valueMin(),                f = d * e,                g = f % this.options.step,                h = this._valueMin() + f - g;            if (g > this.options.step / 2) {                h += this.options.step            }            return parseFloat(h.toFixed(5))        },        _start: function (a, b) {            var c = {                handle: this.handles[b],                value: this.value()            };            if (this.options.values && this.options.values.length) {                c.value = this.values(b);                c.values = this.values()            }            this._trigger("start", a, c)        },        _slide: function (a, b, c) {            var d = this.handles[b];            if (this.options.values && this.options.values.length) {                var e = this.values(b ? 0 : 1);                if (this.options.values.length == 2 && this.options.range === true && (b == 0 && c > e || b == 1 && c < e)) {                    c = e                }                if (c != this.values(b)) {                    var f = this.values();                    f[b] = c;                    var g = this._trigger("slide", a, {                        handle: this.handles[b],                        value: c,                        values: f                    });                    var e = this.values(b ? 0 : 1);                    if (g !== false) {                        this.values(b, c, true)                    }                }            } else {                if (c != this.value()) {                    var g = this._trigger("slide", a, {                        handle: this.handles[b],                        value: c                    });                    if (g !== false) {                        this.value(c)                    }                }            }        },        _stop: function (a, b) {            var c = {                handle: this.handles[b],                value: this.value()            };            if (this.options.values && this.options.values.length) {                c.value = this.values(b);                c.values = this.values()            }            this._trigger("stop", a, c)        },        _change: function (a, b) {            var c = {                handle: this.handles[b],                value: this.value()            };            if (this.options.values && this.options.values.length) {                c.value = this.values(b);                c.values = this.values()            }            this._trigger("change", a, c)        },        value: function (a) {            if (arguments.length) {                this.options.value = this._trimValue(a);                this._refreshValue();                this._change(null, 0)            }            return this._value()        },        values: function (b, c) {            if (arguments.length > 1) {                this.options.values[b] = this._trimValue(c);                this._refreshValue();                this._change(null, b)            }            if (arguments.length) {                if (a.isArray(arguments[0])) {                    var d = this.options.values,                        e = arguments[0];                    for (var f = 0, g = d.length; f < g; f++) {                        d[f] = this._trimValue(e[f]);                        this._change(null, f)                    }                    this._refreshValue()                } else {                    if (this.options.values && this.options.values.length) {                        return this._values(b)                    } else {                        return this.value()                    }                }            } else {                return this._values()            }        },        _setOption: function (b, c) {            a.Widget.prototype._setOption.apply(this, arguments);            switch (b) {            case "disabled":                if (c) {                    this.handles.filter(".ui-state-focus").blur();                    this.handles.removeClass("ui-state-hover");                    this.handles.attr("disabled", "disabled");                    this.element.addClass("ui-disabled")                } else {                    this.handles.removeAttr("disabled");                    this.element.removeClass("ui-disabled")                };            case "orientation":                this._detectOrientation();                this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-" + this.orientation);                this._refreshValue();                break;            case "value":                this._animateOff = true;                this._refreshValue();                this._animateOff = false;                break;            case "values":                this._animateOff = true;                this._refreshValue();                this._animateOff = false;                break            }        },        _step: function () {            var a = this.options.step;            return a        },        _value: function () {            var a = this.options.value;            a = this._trimValue(a);            return a        },        _values: function (a) {            if (arguments.length) {                var b = this.options.values[a];                b = this._trimValue(b);                return b            } else {                var c = this.options.values.slice();                for (var d = 0, e = c.length; d < e; d++) {                    c[d] = this._trimValue(c[d])                }                return c            }        },        _trimValue: function (a) {            if (a < this._valueMin()) {                a = this._valueMin()            }            if (a > this._valueMax()) {                a = this._valueMax()            }            return a        },        _valueMin: function () {            var a = this.options.min;            return a        },        _valueMax: function () {            var a = this.options.max;            return a        },        _refreshValue: function () {            var b = this.options.range,                c = this.options,                d = this;            var e = !this._animateOff ? c.animate : false;            if (this.options.values && this.options.values.length) {                var f, g;                this.handles.each(function (b, f) {                    var g = (d.values(b) - d._valueMin()) / (d._valueMax() - d._valueMin()) * 100;                    var h = {};                    h[d.orientation == "horizontal" ? "left" : "bottom"] = g + "%";                    a(this).stop(1, 1)[e ? "animate" : "css"](h, c.animate);                    if (d.options.range === true) {                        if (d.orientation == "horizontal") {                            b == 0 && d.range.stop(1, 1)[e ? "animate" : "css"]({                                left: g + "%"                            }, c.animate);                            b == 1 && d.range[e ? "animate" : "css"]({                                width: g - lastValPercent + "%"                            }, {                                queue: false,                                duration: c.animate                            })                        } else {                            b == 0 && d.range.stop(1, 1)[e ? "animate" : "css"]({                                bottom: "-2%"                            }, c.animate);                            b == 1 && d.range[e ? "animate" : "css"]({                                height: "100%"                            }, {                                queue: false,                                duration: c.animate                            })                        }                    }                    lastValPercent = g                })            } else {                var h = this.value(),                    i = this._valueMin(),                    j = this._valueMax(),                    k = j != i ? (h - i) / (j - i) * 100 : 0;                var l = {};                l[d.orientation == "horizontal" ? "left" : "bottom"] = k + "%";                this.handle.stop(1, 1)[e ? "animate" : "css"](l, c.animate);                b == "min" && this.orientation == "horizontal" && this.range.stop(1, 1)[e ? "animate" : "css"]({                    width: k + "%"                }, c.animate);                b == "max" && this.orientation == "horizontal" && this.range[e ? "animate" : "css"]({                    width: 100 - k + "%"                }, {                    queue: false,                    duration: c.animate                });                b == "min" && this.orientation == "vertical" && this.range.stop(1, 1)[e ? "animate" : "css"]({                    height: k + "%"                }, c.animate);                b == "max" && this.orientation == "vertical" && this.range[e ? "animate" : "css"]({                    height: 100 - k + "%"                }, {                    queue: false,                    duration: c.animate                })            }        }    });    a.extend(a.ui.slider, {        version: "1.8rc1",        eventPrefix: "slide"    })})(jQuery);
