(function () { function D(a, b) { var c = {}; e.each(C.concat.apply([], C.slice(0, b)), function () { c[this] = a }); return c } function x() { if (w) { return } w = true; if (document.addEventListener) { document.addEventListener("DOMContentLoaded", function () { document.removeEventListener("DOMContentLoaded", arguments.callee, false); e.ready() }, false) } else { if (document.attachEvent) { document.attachEvent("onreadystatechange", function () { if (document.readyState === "complete") { document.detachEvent("onreadystatechange", arguments.callee); e.ready() } }); if (document.documentElement.doScroll && a == a.top) { (function () { if (e.isReady) { return } try { document.documentElement.doScroll("left") } catch (a) { setTimeout(arguments.callee, 0); return } e.ready() })() } } } e.event.add(a, "load", e.ready) } function v(a, b) { return ["live", a, b.replace(/\./g, "`").replace(/ /g, "|")].join(".") } function u(a) { var b = RegExp("(^|\\.)" + a.type + "(\\.|$)"), c = true, d = []; e.each(e.data(this, "events").live || [], function (c, f) { if (b.test(f.type)) { var g = e(a.target).closest(f.data)[0]; if (g) { d.push({ elem: g, fn: f }) } } }); d.sort(function (a, b) { return e.data(a.elem, "closest") - e.data(b.elem, "closest") }); e.each(d, function () { if (this.fn.call(this.elem, a, this.fn.data) === false) { return c = false } }); return c } function s() { return true } function r() { return false } function n(a, b) { return a[0] && parseInt(e.curCSS(a[0], b, true), 10) || 0 } function i() { return +(new Date) } function h(a, b) { if (b.src) { e.ajax({ url: b.src, async: false, dataType: "script" }) } else { e.globalEval(b.text || b.textContent || b.innerHTML || "") } if (b.parentNode) { b.parentNode.removeChild(b) } } var a = this, b, c = a.jQuery, d = a.$, e = a.jQuery = a.$ = function (a, b) { return new e.fn.init(a, b) }, f = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/, g = /^.[^:#\[\.,]*$/; e.fn = e.prototype = { init: function (a, b) { a = a || document; if (a.nodeType) { this[0] = a; this.length = 1; this.context = a; return this } if (typeof a === "string") { var c = f.exec(a); if (c && (c[1] || !b)) { if (c[1]) { a = e.clean([c[1]], b) } else { var d = document.getElementById(c[3]); if (d && d.id != c[3]) { return e().find(a) } var g = e(d || []); g.context = document; g.selector = a; return g } } else { return e(b).find(a) } } else { if (e.isFunction(a)) { return e(document).ready(a) } } if (a.selector && a.context) { this.selector = a.selector; this.context = a.context } return this.setArray(e.isArray(a) ? a : e.makeArray(a)) }, selector: "", jquery: "1.3.2", size: function () { return this.length }, get: function (a) { return a === b ? Array.prototype.slice.call(this) : this[a] }, pushStack: function (a, b, c) { var d = e(a); d.prevObject = this; d.context = this.context; if (b === "find") { d.selector = this.selector + (this.selector ? " " : "") + c } else { if (b) { d.selector = this.selector + "." + b + "(" + c + ")" } } return d }, setArray: function (a) { this.length = 0; Array.prototype.push.apply(this, a); return this }, each: function (a, b) { return e.each(this, a, b) }, index: function (a) { return e.inArray(a && a.jquery ? a[0] : a, this) }, attr: function (a, c, d) { var f = a; if (typeof a === "string") { if (c === b) { return this[0] && e[d || "attr"](this[0], a) } else { f = {}; f[a] = c } } return this.each(function (b) { for (a in f) { e.attr(d ? this.style : this, a, e.prop(this, f[a], d, b, a)) } }) }, css: function (a, c) { if ((a == "width" || a == "height") && parseFloat(c) < 0) { c = b } return this.attr(a, c, "curCSS") }, text: function (a) { if (typeof a !== "object" && a != null) { return this.empty().append((this[0] && this[0].ownerDocument || document).createTextNode(a)) } var b = ""; e.each(a || this, function () { e.each(this.childNodes, function () { if (this.nodeType != 8) { b += this.nodeType != 1 ? this.nodeValue : e.fn.text([this]) } }) }); return b }, wrapAll: function (a) { if (this[0]) { var b = e(a, this[0].ownerDocument).clone(); if (this[0].parentNode) { b.insertBefore(this[0]) } b.map(function () { var a = this; while (a.firstChild) { a = a.firstChild } return a }).append(this) } return this }, wrapInner: function (a) { return this.each(function () { e(this).contents().wrapAll(a) }) }, wrap: function (a) { return this.each(function () { e(this).wrapAll(a) }) }, append: function () { return this.domManip(arguments, true, function (a) { if (this.nodeType == 1) { this.appendChild(a) } }) }, prepend: function () { return this.domManip(arguments, true, function (a) { if (this.nodeType == 1) { this.insertBefore(a, this.firstChild) } }) }, before: function () { return this.domManip(arguments, false, function (a) { this.parentNode.insertBefore(a, this) }) }, after: function () { return this.domManip(arguments, false, function (a) { this.parentNode.insertBefore(a, this.nextSibling) }) }, end: function () { return this.prevObject || e([]) }, push: [].push, sort: [].sort, splice: [].splice, find: function (a) { if (this.length === 1) { var b = this.pushStack([], "find", a); b.length = 0; e.find(a, this[0], b); return b } else { return this.pushStack(e.unique(e.map(this, function (b) { return e.find(a, b) })), "find", a) } }, clone: function (a) { var b = this.map(function () { if (!e.support.noCloneEvent && !e.isXMLDoc(this)) { var a = this.outerHTML; if (!a) { var b = this.ownerDocument.createElement("div"); b.appendChild(this.cloneNode(true)); a = b.innerHTML } return e.clean([a.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0] } else { return this.cloneNode(true) } }); if (a === true) { var c = this.find("*").andSelf(), d = 0; b.find("*").andSelf().each(function () { if (this.nodeName !== c[d].nodeName) { return } var a = e.data(c[d], "events"); for (var b in a) { for (var f in a[b]) { e.event.add(this, b, a[b][f], a[b][f].data) } } d++ }) } return b }, filter: function (a) { return this.pushStack(e.isFunction(a) && e.grep(this, function (b, c) { return a.call(b, c) }) || e.multiFilter(a, e.grep(this, function (a) { return a.nodeType === 1 })), "filter", a) }, closest: function (a) { var b = e.expr.match.POS.test(a) ? e(a) : null, c = 0; return this.map(function () { var d = this; while (d && d.ownerDocument) { if (b ? b.index(d) > -1 : e(d).is(a)) { e.data(d, "closest", c); return d } d = d.parentNode; c++ } }) }, not: function (a) { if (typeof a === "string") { if (g.test(a)) { return this.pushStack(e.multiFilter(a, this, true), "not", a) } else { a = e.multiFilter(a, this) } } var c = a.length && a[a.length - 1] !== b && !a.nodeType; return this.filter(function () { return c ? e.inArray(this, a) < 0 : this != a }) }, add: function (a) { return this.pushStack(e.unique(e.merge(this.get(), typeof a === "string" ? e(a) : e.makeArray(a)))) }, is: function (a) { return !!a && e.multiFilter(a, this).length > 0 }, hasClass: function (a) { return !!a && this.is("." + a) }, val: function (a) { if (a === b) { var c = this[0]; if (c) { if (e.nodeName(c, "option")) { return (c.attributes.value || {}).specified ? c.value : c.text } if (e.nodeName(c, "select")) { var d = c.selectedIndex, f = [], g = c.options, h = c.type == "select-one"; if (d < 0) { return null } for (var i = h ? d : 0, j = h ? d + 1 : g.length; i < j; i++) { var k = g[i]; if (k.selected) { a = e(k).val(); if (h) { return a } f.push(a) } } return f } return (c.value || "").replace(/\r/g, "") } return b } if (typeof a === "number") { a += "" } return this.each(function () { if (this.nodeType != 1) { return } if (e.isArray(a) && /radio|checkbox/.test(this.type)) { this.checked = e.inArray(this.value, a) >= 0 || e.inArray(this.name, a) >= 0 } else { if (e.nodeName(this, "select")) { var b = e.makeArray(a); e("option", this).each(function () { this.selected = e.inArray(this.value, b) >= 0 || e.inArray(this.text, b) >= 0 }); if (!b.length) { this.selectedIndex = -1 } } else { this.value = a } } }) }, html: function (a) { return a === b ? this[0] ? this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") : null : this.empty().append(a) }, replaceWith: function (a) { return this.after(a).remove() }, eq: function (a) { return this.slice(a, +a + 1) }, slice: function () { return this.pushStack(Array.prototype.slice.apply(this, arguments), "slice", Array.prototype.slice.call(arguments).join(",")) }, map: function (a) { return this.pushStack(e.map(this, function (b, c) { return a.call(b, c, b) })) }, andSelf: function () { return this.add(this.prevObject) }, domManip: function (a, b, c) { function k(a, c) { return b && e.nodeName(a, "table") && e.nodeName(c, "tr") ? a.getElementsByTagName("tbody")[0] || a.appendChild(a.ownerDocument.createElement("tbody")) : a } if (this[0]) { var d = (this[0].ownerDocument || this[0]).createDocumentFragment(), f = e.clean(a, this[0].ownerDocument || this[0], d), g = d.firstChild; if (g) { for (var i = 0, j = this.length; i < j; i++) { c.call(k(this[i], g), this.length > 1 || i > 0 ? d.cloneNode(true) : d) } } if (f) { e.each(f, h) } } return this } }; e.fn.init.prototype = e.fn; e.extend = e.fn.extend = function () { var a = arguments[0] || {}, c = 1, d = arguments.length, f = false, g; if (typeof a === "boolean") { f = a; a = arguments[1] || {}; c = 2 } if (typeof a !== "object" && !e.isFunction(a)) { a = {} } if (d == c) { a = this; --c } for (; c < d; c++) { if ((g = arguments[c]) != null) { for (var h in g) { var i = a[h], j = g[h]; if (a === j) { continue } if (f && j && typeof j === "object" && !j.nodeType) { a[h] = e.extend(f, i || (j.length != null ? [] : {}), j) } else { if (j !== b) { a[h] = j } } } } } return a }; var j = /z-?index|font-?weight|opacity|zoom|line-?height/i, k = document.defaultView || {}, l = Object.prototype.toString; e.extend({ noConflict: function (b) { a.$ = d; if (b) { a.jQuery = c } return e }, isFunction: function (a) { return l.call(a) === "[object Function]" }, isArray: function (a) { return l.call(a) === "[object Array]" }, isXMLDoc: function (a) { return a.nodeType === 9 && a.documentElement.nodeName !== "HTML" || !!a.ownerDocument && e.isXMLDoc(a.ownerDocument) }, globalEval: function (a) { if (a && /\S/.test(a)) { var b = document.getElementsByTagName("head")[0] || document.documentElement, c = document.createElement("script"); c.type = "text/javascript"; if (e.support.scriptEval) { c.appendChild(document.createTextNode(a)) } else { c.text = a } b.insertBefore(c, b.firstChild); b.removeChild(c) } }, nodeName: function (a, b) { return a.nodeName && a.nodeName.toUpperCase() == b.toUpperCase() }, each: function (a, c, d) { var e, f = 0, g = a.length; if (d) { if (g === b) { for (e in a) { if (c.apply(a[e], d) === false) { break } } } else { for (; f < g; ) { if (c.apply(a[f++], d) === false) { break } } } } else { if (g === b) { for (e in a) { if (c.call(a[e], e, a[e]) === false) { break } } } else { for (var h = a[0]; f < g && c.call(h, f, h) !== false; h = a[++f]) { }; } } return a }, prop: function (a, b, c, d, f) { if (e.isFunction(b)) { b = b.call(a, d) } return typeof b === "number" && c == "curCSS" && !j.test(f) ? b + "px" : b }, className: { add: function (a, b) { e.each((b || "").split(/\s+/), function (b, c) { if (a.nodeType == 1 && !e.className.has(a.className, c)) { a.className += (a.className ? " " : "") + c } }) }, remove: function (a, c) { if (a.nodeType == 1) { a.className = c !== b ? e.grep(a.className.split(/\s+/), function (a) { return !e.className.has(c, a) }).join(" ") : "" } }, has: function (a, b) { return a && e.inArray(b, (a.className || a).toString().split(/\s+/)) > -1 } }, swap: function (a, b, c) { var d = {}; for (var e in b) { d[e] = a.style[e]; a.style[e] = b[e] } c.call(a); for (var e in b) { a.style[e] = d[e] } }, css: function (a, b, c, d) { if (b == "width" || b == "height") { var f, g = { position: "absolute", visibility: "hidden", display: "block" }, h = b == "width" ? ["Left", "Right"] : ["Top", "Bottom"]; function i() { f = b == "width" ? a.offsetWidth : a.offsetHeight; if (d === "border") { return } e.each(h, function () { if (!d) { f -= parseFloat(e.curCSS(a, "padding" + this, true)) || 0 } if (d === "margin") { f += parseFloat(e.curCSS(a, "margin" + this, true)) || 0 } else { f -= parseFloat(e.curCSS(a, "border" + this + "Width", true)) || 0 } }) } if (a.offsetWidth !== 0) { i() } else { e.swap(a, g, i) } return Math.max(0, Math.round(f)) } return e.curCSS(a, b, c) }, curCSS: function (a, b, c) { var d, f = a.style; if (b == "opacity" && !e.support.opacity) { d = e.attr(f, "opacity"); return d == "" ? "1" : d } if (b.match(/float/i)) { b = y } if (!c && f && f[b]) { d = f[b] } else { if (k.getComputedStyle) { if (b.match(/float/i)) { b = "float" } b = b.replace(/([A-Z])/g, "-$1").toLowerCase(); var g = k.getComputedStyle(a, null); if (g) { d = g.getPropertyValue(b) } if (b == "opacity" && d == "") { d = "1" } } else { if (a.currentStyle) { var h = b.replace(/\-(\w)/g, function (a, b) { return b.toUpperCase() }); d = a.currentStyle[b] || a.currentStyle[h]; if (!/^\d+(px)?$/i.test(d) && /^\d/.test(d)) { var i = f.left, j = a.runtimeStyle.left; a.runtimeStyle.left = a.currentStyle.left; f.left = d || 0; d = f.pixelLeft + "px"; f.left = i; a.runtimeStyle.left = j } } } } return d }, clean: function (a, b, c) { b = b || document; if (typeof b.createElement === "undefined") { b = b.ownerDocument || b[0] && b[0].ownerDocument || document } if (!c && a.length === 1 && typeof a[0] === "string") { var d = /^<(\w+)\s*\/?>$/.exec(a[0]); if (d) { return [b.createElement(d[1])] } } var f = [], g = [], h = b.createElement("div"); e.each(a, function (a, c) { if (typeof c === "number") { c += "" } if (!c) { return } if (typeof c === "string") { c = c.replace(/(<(\w+)[^>]*?)\/>/g, function (a, b, c) { return c.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? a : b + "></" + c + ">" }); var d = c.replace(/^\s+/, "").substring(0, 10).toLowerCase(); var g = !d.indexOf("<opt") && [1, "<select multiple='multiple'>", "</select>"] || !d.indexOf("<leg") && [1, "<fieldset>", "</fieldset>"] || d.match(/^<(thead|tbody|tfoot|colg|cap)/) && [1, "<table>", "</table>"] || !d.indexOf("<tr") && [2, "<table><tbody>", "</tbody></table>"] || (!d.indexOf("<td") || !d.indexOf("<th")) && [3, "<table><tbody><tr>", "</tr></tbody></table>"] || !d.indexOf("<col") && [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"] || !e.support.htmlSerialize && [1, "div<div>", "</div>"] || [0, "", ""]; h.innerHTML = g[1] + c + g[2]; while (g[0]--) { h = h.lastChild } if (!e.support.tbody) { var i = /<tbody/i.test(c), j = !d.indexOf("<table") && !i ? h.firstChild && h.firstChild.childNodes : g[1] == "<table>" && !i ? h.childNodes : []; for (var k = j.length - 1; k >= 0; --k) { if (e.nodeName(j[k], "tbody") && !j[k].childNodes.length) { j[k].parentNode.removeChild(j[k]) } } } if (!e.support.leadingWhitespace && /^\s/.test(c)) { h.insertBefore(b.createTextNode(c.match(/^\s*/)[0]), h.firstChild) } c = e.makeArray(h.childNodes) } if (c.nodeType) { f.push(c) } else { f = e.merge(f, c) } }); if (c) { for (var i = 0; f[i]; i++) { if (e.nodeName(f[i], "script") && (!f[i].type || f[i].type.toLowerCase() === "text/javascript")) { g.push(f[i].parentNode ? f[i].parentNode.removeChild(f[i]) : f[i]) } else { if (f[i].nodeType === 1) { f.splice.apply(f, [i + 1, 0].concat(e.makeArray(f[i].getElementsByTagName("script")))) } c.appendChild(f[i]) } } return g } return f }, attr: function (a, c, d) { if (!a || a.nodeType == 3 || a.nodeType == 8) { return b } var f = !e.isXMLDoc(a), g = d !== b; c = f && e.props[c] || c; if (a.tagName) { var h = /href|src|style/.test(c); if (c == "selected" && a.parentNode) { a.parentNode.selectedIndex } if (c in a && f && !h) { if (g) { if (c == "type" && e.nodeName(a, "input") && a.parentNode) { throw "type property can't be changed" } a[c] = d } if (e.nodeName(a, "form") && a.getAttributeNode(c)) { return a.getAttributeNode(c).nodeValue } if (c == "tabIndex") { var i = a.getAttributeNode("tabIndex"); return i && i.specified ? i.value : a.nodeName.match(/(button|input|object|select|textarea)/i) ? 0 : a.nodeName.match(/^(a|area)$/i) && a.href ? 0 : b } return a[c] } if (!e.support.style && f && c == "style") { return e.attr(a.style, "cssText", d) } if (g) { a.setAttribute(c, "" + d) } var j = !e.support.hrefNormalized && f && h ? a.getAttribute(c, 2) : a.getAttribute(c); return j === null ? b : j } if (!e.support.opacity && c == "opacity") { if (g) { a.zoom = 1; a.filter = (a.filter || "").replace(/alpha\([^)]*\)/, "") + (parseInt(d) + "" == "NaN" ? "" : "alpha(opacity=" + d * 100 + ")") } return a.filter && a.filter.indexOf("opacity=") >= 0 ? parseFloat(a.filter.match(/opacity=([^)]*)/)[1]) / 100 + "" : "" } c = c.replace(/-([a-z])/ig, function (a, b) { return b.toUpperCase() }); if (g) { a[c] = d } return a[c] }, trim: function (a) { return (a || "").replace(/^\s+|\s+$/g, "") }, makeArray: function (a) { var b = []; if (a != null) { var c = a.length; if (c == null || typeof a === "string" || e.isFunction(a) || a.setInterval) { b[0] = a } else { while (c) { b[--c] = a[c] } } } return b }, inArray: function (a, b) { for (var c = 0, d = b.length; c < d; c++) { if (b[c] === a) { return c } } return -1 }, merge: function (a, b) { var c = 0, d, f = a.length; if (!e.support.getAll) { while ((d = b[c++]) != null) { if (d.nodeType != 8) { a[f++] = d } } } else { while ((d = b[c++]) != null) { a[f++] = d } } return a }, unique: function (a) { var b = [], c = {}; try { for (var d = 0, f = a.length; d < f; d++) { var g = e.data(a[d]); if (!c[g]) { c[g] = true; b.push(a[d]) } } } catch (h) { b = a } return b }, grep: function (a, b, c) { var d = []; for (var e = 0, f = a.length; e < f; e++) { if (!c != !b(a[e], e)) { d.push(a[e]) } } return d }, map: function (a, b) { var c = []; for (var d = 0, e = a.length; d < e; d++) { var f = b(a[d], d); if (f != null) { c[c.length] = f } } return c.concat.apply([], c) } }); var m = navigator.userAgent.toLowerCase(); e.browser = { version: (m.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/) || [0, "0"])[1], safari: /webkit/.test(m), opera: /opera/.test(m), msie: /msie/.test(m) && !/opera/.test(m), mozilla: /mozilla/.test(m) && !/(compatible|webkit)/.test(m) }; e.each({ parent: function (a) { return a.parentNode }, parents: function (a) { return e.dir(a, "parentNode") }, next: function (a) { return e.nth(a, 2, "nextSibling") }, prev: function (a) { return e.nth(a, 2, "previousSibling") }, nextAll: function (a) { return e.dir(a, "nextSibling") }, prevAll: function (a) { return e.dir(a, "previousSibling") }, siblings: function (a) { return e.sibling(a.parentNode.firstChild, a) }, children: function (a) { return e.sibling(a.firstChild) }, contents: function (a) { return e.nodeName(a, "iframe") ? a.contentDocument || a.contentWindow.document : e.makeArray(a.childNodes) } }, function (a, b) { e.fn[a] = function (c) { var d = e.map(this, b); if (c && typeof c == "string") { d = e.multiFilter(c, d) } return this.pushStack(e.unique(d), a, c) } }); e.each({ appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, function (a, b) { e.fn[a] = function (c) { var d = [], f = e(c); for (var g = 0, h = f.length; g < h; g++) { var i = (g > 0 ? this.clone(true) : this).get(); e.fn[b].apply(e(f[g]), i); d = d.concat(i) } return this.pushStack(d, a, c) } }); e.each({ removeAttr: function (a) { e.attr(this, a, ""); if (this.nodeType == 1) { this.removeAttribute(a) } }, addClass: function (a) { e.className.add(this, a) }, removeClass: function (a) { e.className.remove(this, a) }, toggleClass: function (a, b) { if (typeof b !== "boolean") { b = !e.className.has(this, a) } e.className[b ? "add" : "remove"](this, a) }, remove: function (a) { if (!a || e.filter(a, [this]).length) { e("*", this).add([this]).each(function () { e.event.remove(this); e.removeData(this) }); if (this.parentNode) { this.parentNode.removeChild(this) } } }, empty: function () { e(this).children().remove(); while (this.firstChild) { this.removeChild(this.firstChild) } } }, function (a, b) { e.fn[a] = function () { return this.each(b, arguments) } }); var o = "jQuery" + i(), p = 0, q = {}; e.extend({ cache: {}, data: function (c, d, f) { c = c == a ? q : c; var g = c[o]; if (!g) { g = c[o] = ++p } if (d && !e.cache[g]) { e.cache[g] = {} } if (f !== b) { e.cache[g][d] = f } return d ? e.cache[g][d] : g }, removeData: function (b, c) { b = b == a ? q : b; var d = b[o]; if (c) { if (e.cache[d]) { delete e.cache[d][c]; c = ""; for (c in e.cache[d]) { break } if (!c) { e.removeData(b) } } } else { try { delete b[o] } catch (f) { if (b.removeAttribute) { b.removeAttribute(o) } } delete e.cache[d] } }, queue: function (a, b, c) { if (a) { b = (b || "fx") + "queue"; var d = e.data(a, b); if (!d || e.isArray(c)) { d = e.data(a, b, e.makeArray(c)) } else { if (c) { d.push(c) } } } return d }, dequeue: function (a, c) { var d = e.queue(a, c), f = d.shift(); if (!c || c === "fx") { f = d[0] } if (f !== b) { f.call(a) } } }); e.fn.extend({ data: function (a, c) { var d = a.split("."); d[1] = d[1] ? "." + d[1] : ""; if (c === b) { var f = this.triggerHandler("getData" + d[1] + "!", [d[0]]); if (f === b && this.length) { f = e.data(this[0], a) } return f === b && d[1] ? this.data(d[0]) : f } else { return this.trigger("setData" + d[1] + "!", [d[0], c]).each(function () { e.data(this, a, c) }) } }, removeData: function (a) { return this.each(function () { e.removeData(this, a) }) }, queue: function (a, c) { if (typeof a !== "string") { c = a; a = "fx" } if (c === b) { return e.queue(this[0], a) } return this.each(function () { var b = e.queue(this, a, c); if (a == "fx" && b.length == 1) { b[0].call(this) } }) }, dequeue: function (a) { return this.each(function () { e.dequeue(this, a) }) } }); (function () { function o(a, b, c, d, e, f) { var h = a == "previousSibling" && !f; for (var i = 0, j = d.length; i < j; i++) { var k = d[i]; if (k) { if (h && k.nodeType === 1) { k.sizcache = c; k.sizset = i } k = k[a]; var l = false; while (k) { if (k.sizcache === c) { l = d[k.sizset]; break } if (k.nodeType === 1) { if (!f) { k.sizcache = c; k.sizset = i } if (typeof b !== "string") { if (k === b) { l = true; break } } else { if (g.filter(b, [k]).length > 0) { l = k; break } } } k = k[a] } d[i] = l } } } function n(a, b, c, d, e, f) { var g = a == "previousSibling" && !f; for (var h = 0, i = d.length; h < i; h++) { var j = d[h]; if (j) { if (g && j.nodeType === 1) { j.sizcache = c; j.sizset = h } j = j[a]; var k = false; while (j) { if (j.sizcache === c) { k = d[j.sizset]; break } if (j.nodeType === 1 && !f) { j.sizcache = c; j.sizset = h } if (j.nodeName === b) { k = j; break } j = j[a] } d[h] = k } } } var c = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g, d = 0, f = Object.prototype.toString; var g = function (a, b, d, e) { d = d || []; b = b || document; if (b.nodeType !== 1 && b.nodeType !== 9) { return [] } if (!a || typeof a !== "string") { return d } var j = [], l, n, o, s, t, u, v = true; c.lastIndex = 0; while ((l = c.exec(a)) !== null) { j.push(l[1]); if (l[2]) { u = RegExp.rightContext; break } } if (j.length > 1 && i.exec(a)) { if (j.length === 2 && h.relative[j[0]]) { n = r(j[0] + j[1], b) } else { n = h.relative[j[0]] ? [b] : g(j.shift(), b); while (j.length) { a = j.shift(); if (h.relative[a]) { a += j.shift() } n = r(a, n) } } } else { var w = e ? { expr: j.pop(), set: k(e)} : g.find(j.pop(), j.length === 1 && b.parentNode ? b.parentNode : b, q(b)); n = g.filter(w.expr, w.set); if (j.length > 0) { o = k(n) } else { v = false } while (j.length) { var x = j.pop(), y = x; if (!h.relative[x]) { x = "" } else { y = j.pop() } if (y == null) { y = b } h.relative[x](o, y, q(b)) } } if (!o) { o = n } if (!o) { throw "Syntax error, unrecognized expression: " + (x || a) } if (f.call(o) === "[object Array]") { if (!v) { d.push.apply(d, o) } else { if (b.nodeType === 1) { for (var z = 0; o[z] != null; z++) { if (o[z] && (o[z] === true || o[z].nodeType === 1 && p(b, o[z]))) { d.push(n[z]) } } } else { for (var z = 0; o[z] != null; z++) { if (o[z] && o[z].nodeType === 1) { d.push(n[z]) } } } } } else { k(o, d) } if (u) { g(u, b, d, e); if (m) { hasDuplicate = false; d.sort(m); if (hasDuplicate) { for (var z = 1; z < d.length; z++) { if (d[z] === d[z - 1]) { d.splice(z--, 1) } } } } } return d }; g.matches = function (a, b) { return g(a, null, null, b) }; g.find = function (a, b, c) { var d, e; if (!a) { return [] } for (var f = 0, g = h.order.length; f < g; f++) { var i = h.order[f], e; if (e = h.match[i].exec(a)) { var j = RegExp.leftContext; if (j.substr(j.length - 1) !== "\\") { e[1] = (e[1] || "").replace(/\\/g, ""); d = h.find[i](e, b, c); if (d != null) { a = a.replace(h.match[i], ""); break } } } } if (!d) { d = b.getElementsByTagName("*") } return { set: d, expr: a} }; g.filter = function (a, c, d, e) { var f = a, g = [], i = c, j, k, l = c && c[0] && q(c[0]); while (a && c.length) { for (var m in h.filter) { if ((j = h.match[m].exec(a)) != null) { var n = h.filter[m], o, p; k = false; if (i == g) { g = [] } if (h.preFilter[m]) { j = h.preFilter[m](j, i, d, g, e, l); if (!j) { k = o = true } else { if (j === true) { continue } } } if (j) { for (var r = 0; (p = i[r]) != null; r++) { if (p) { o = n(p, j, r, i); var s = e ^ !!o; if (d && o != null) { if (s) { k = true } else { i[r] = false } } else { if (s) { g.push(p); k = true } } } } } if (o !== b) { if (!d) { i = g } a = a.replace(h.match[m], ""); if (!k) { return [] } break } } } if (a == f) { if (k == null) { throw "Syntax error, unrecognized expression: " + a } else { break } } f = a } return i }; var h = g.selectors = { order: ["ID", "NAME", "TAG"], match: { ID: /#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/, CLASS: /\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/, NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/, ATTR: /\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/, TAG: /^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/, CHILD: /:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/, POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/, PSEUDO: /:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/ }, attrMap: { "class": "className", "for": "htmlFor" }, attrHandle: { href: function (a) { return a.getAttribute("href") } }, relative: { "+": function (a, b, c) { var d = typeof b === "string", e = d && !/\W/.test(b), f = d && !e; if (e && !c) { b = b.toUpperCase() } for (var h = 0, i = a.length, j; h < i; h++) { if (j = a[h]) { while ((j = j.previousSibling) && j.nodeType !== 1) { } a[h] = f || j && j.nodeName === b ? j || false : j === b } } if (f) { g.filter(b, a, true) } }, ">": function (a, b, c) { var d = typeof b === "string"; if (d && !/\W/.test(b)) { b = c ? b : b.toUpperCase(); for (var e = 0, f = a.length; e < f; e++) { var h = a[e]; if (h) { var i = h.parentNode; a[e] = i.nodeName === b ? i : false } } } else { for (var e = 0, f = a.length; e < f; e++) { var h = a[e]; if (h) { a[e] = d ? h.parentNode : h.parentNode === b } } if (d) { g.filter(b, a, true) } } }, "": function (a, b, c) { var e = d++, f = o; if (!b.match(/\W/)) { var g = b = c ? b : b.toUpperCase(); f = n } f("parentNode", b, e, a, g, c) }, "~": function (a, b, c) { var e = d++, f = o; if (typeof b === "string" && !b.match(/\W/)) { var g = b = c ? b : b.toUpperCase(); f = n } f("previousSibling", b, e, a, g, c) } }, find: { ID: function (a, b, c) { if (typeof b.getElementById !== "undefined" && !c) { var d = b.getElementById(a[1]); return d ? [d] : [] } }, NAME: function (a, b, c) { if (typeof b.getElementsByName !== "undefined") { var d = [], e = b.getElementsByName(a[1]); for (var f = 0, g = e.length; f < g; f++) { if (e[f].getAttribute("name") === a[1]) { d.push(e[f]) } } return d.length === 0 ? null : d } }, TAG: function (a, b) { return b.getElementsByTagName(a[1]) } }, preFilter: { CLASS: function (a, b, c, d, e, f) { a = " " + a[1].replace(/\\/g, "") + " "; if (f) { return a } for (var g = 0, h; (h = b[g]) != null; g++) { if (h) { if (e ^ (h.className && (" " + h.className + " ").indexOf(a) >= 0)) { if (!c) { d.push(h) } } else { if (c) { b[g] = false } } } } return false }, ID: function (a) { return a[1].replace(/\\/g, "") }, TAG: function (a, b) { for (var c = 0; b[c] === false; c++) { } return b[c] && q(b[c]) ? a[1] : a[1].toUpperCase() }, CHILD: function (a) { if (a[1] == "nth") { var b = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(a[2] == "even" && "2n" || a[2] == "odd" && "2n+1" || !/\D/.test(a[2]) && "0n+" + a[2] || a[2]); a[2] = b[1] + (b[2] || 1) - 0; a[3] = b[3] - 0 } a[0] = d++; return a }, ATTR: function (a, b, c, d, e, f) { var g = a[1].replace(/\\/g, ""); if (!f && h.attrMap[g]) { a[1] = h.attrMap[g] } if (a[2] === "~=") { a[4] = " " + a[4] + " " } return a }, PSEUDO: function (a, b, d, e, f) { if (a[1] === "not") { if (a[3].match(c).length > 1 || /^\w/.test(a[3])) { a[3] = g(a[3], null, null, b) } else { var i = g.filter(a[3], b, d, true ^ f); if (!d) { e.push.apply(e, i) } return false } } else { if (h.match.POS.test(a[0]) || h.match.CHILD.test(a[0])) { return true } } return a }, POS: function (a) { a.unshift(true); return a } }, filters: { enabled: function (a) { return a.disabled === false && a.type !== "hidden" }, disabled: function (a) { return a.disabled === true }, checked: function (a) { return a.checked === true }, selected: function (a) { a.parentNode.selectedIndex; return a.selected === true }, parent: function (a) { return !!a.firstChild }, empty: function (a) { return !a.firstChild }, has: function (a, b, c) { return !!g(c[3], a).length }, header: function (a) { return /h\d/i.test(a.nodeName) }, text: function (a) { return "text" === a.type }, radio: function (a) { return "radio" === a.type }, checkbox: function (a) { return "checkbox" === a.type }, file: function (a) { return "file" === a.type }, password: function (a) { return "password" === a.type }, submit: function (a) { return "submit" === a.type }, image: function (a) { return "image" === a.type }, reset: function (a) { return "reset" === a.type }, button: function (a) { return "button" === a.type || a.nodeName.toUpperCase() === "BUTTON" }, input: function (a) { return /input|select|textarea|button/i.test(a.nodeName) } }, setFilters: { first: function (a, b) { return b === 0 }, last: function (a, b, c, d) { return b === d.length - 1 }, even: function (a, b) { return b % 2 === 0 }, odd: function (a, b) { return b % 2 === 1 }, lt: function (a, b, c) { return b < c[3] - 0 }, gt: function (a, b, c) { return b > c[3] - 0 }, nth: function (a, b, c) { return c[3] - 0 == b }, eq: function (a, b, c) { return c[3] - 0 == b } }, filter: { PSEUDO: function (a, b, c, d) { var e = b[1], f = h.filters[e]; if (f) { return f(a, c, b, d) } else { if (e === "contains") { return (a.textContent || a.innerText || "").indexOf(b[3]) >= 0 } else { if (e === "not") { var g = b[3]; for (var c = 0, i = g.length; c < i; c++) { if (g[c] === a) { return false } } return true } } } }, CHILD: function (a, b) { var c = b[1], d = a; switch (c) { case "only": case "first": while (d = d.previousSibling) { if (d.nodeType === 1) { return false } } if (c == "first") { return true } d = a; case "last": while (d = d.nextSibling) { if (d.nodeType === 1) { return false } } return true; case "nth": var e = b[2], f = b[3]; if (e == 1 && f == 0) { return true } var g = b[0], h = a.parentNode; if (h && (h.sizcache !== g || !a.nodeIndex)) { var i = 0; for (d = h.firstChild; d; d = d.nextSibling) { if (d.nodeType === 1) { d.nodeIndex = ++i } } h.sizcache = g } var j = a.nodeIndex - f; if (e == 0) { return j == 0 } else { return j % e == 0 && j / e >= 0 } } }, ID: function (a, b) { return a.nodeType === 1 && a.getAttribute("id") === b }, TAG: function (a, b) { return b === "*" && a.nodeType === 1 || a.nodeName === b }, CLASS: function (a, b) { return (" " + (a.className || a.getAttribute("class")) + " ").indexOf(b) > -1 }, ATTR: function (a, b) { var c = b[1], d = h.attrHandle[c] ? h.attrHandle[c](a) : a[c] != null ? a[c] : a.getAttribute(c), e = d + "", f = b[2], g = b[4]; return d == null ? f === "!=" : f === "=" ? e === g : f === "*=" ? e.indexOf(g) >= 0 : f === "~=" ? (" " + e + " ").indexOf(g) >= 0 : !g ? e && d !== false : f === "!=" ? e != g : f === "^=" ? e.indexOf(g) === 0 : f === "$=" ? e.substr(e.length - g.length) === g : f === "|=" ? e === g || e.substr(0, g.length + 1) === g + "-" : false }, POS: function (a, b, c, d) { var e = b[2], f = h.setFilters[e]; if (f) { return f(a, c, b, d) } } } }; var i = h.match.POS; for (var j in h.match) { h.match[j] = RegExp(h.match[j].source + /(?![^\[]*\])(?![^\(]*\))/.source) } var k = function (a, b) { a = Array.prototype.slice.call(a); if (b) { b.push.apply(b, a); return b } return a }; try { Array.prototype.slice.call(document.documentElement.childNodes) } catch (l) { k = function (a, b) { var c = b || []; if (f.call(a) === "[object Array]") { Array.prototype.push.apply(c, a) } else { if (typeof a.length === "number") { for (var d = 0, e = a.length; d < e; d++) { c.push(a[d]) } } else { for (var d = 0; a[d]; d++) { c.push(a[d]) } } } return c } } var m; if (document.documentElement.compareDocumentPosition) { m = function (a, b) { var c = a.compareDocumentPosition(b) & 4 ? -1 : a === b ? 0 : 1; if (c === 0) { hasDuplicate = true } return c } } else { if ("sourceIndex" in document.documentElement) { m = function (a, b) { var c = a.sourceIndex - b.sourceIndex; if (c === 0) { hasDuplicate = true } return c } } else { if (document.createRange) { m = function (a, b) { var c = a.ownerDocument.createRange(), d = b.ownerDocument.createRange(); c.selectNode(a); c.collapse(true); d.selectNode(b); d.collapse(true); var e = c.compareBoundaryPoints(Range.START_TO_END, d); if (e === 0) { hasDuplicate = true } return e } } } } (function () { var a = document.createElement("form"), c = "script" + (new Date).getTime(); a.innerHTML = "<input name='" + c + "'/>"; var d = document.documentElement; d.insertBefore(a, d.firstChild); if (!!document.getElementById(c)) { h.find.ID = function (a, c, d) { if (typeof c.getElementById !== "undefined" && !d) { var e = c.getElementById(a[1]); return e ? e.id === a[1] || typeof e.getAttributeNode !== "undefined" && e.getAttributeNode("id").nodeValue === a[1] ? [e] : b : [] } }; h.filter.ID = function (a, b) { var c = typeof a.getAttributeNode !== "undefined" && a.getAttributeNode("id"); return a.nodeType === 1 && c && c.nodeValue === b } } d.removeChild(a) })(); (function () { var a = document.createElement("div"); a.appendChild(document.createComment("")); if (a.getElementsByTagName("*").length > 0) { h.find.TAG = function (a, b) { var c = b.getElementsByTagName(a[1]); if (a[1] === "*") { var d = []; for (var e = 0; c[e]; e++) { if (c[e].nodeType === 1) { d.push(c[e]) } } c = d } return c } } a.innerHTML = "<a href='#'></a>"; if (a.firstChild && typeof a.firstChild.getAttribute !== "undefined" && a.firstChild.getAttribute("href") !== "#") { h.attrHandle.href = function (a) { return a.getAttribute("href", 2) } } })(); if (document.querySelectorAll) { (function () { var a = g, b = document.createElement("div"); b.innerHTML = "<p class='TEST'></p>"; if (b.querySelectorAll && b.querySelectorAll(".TEST").length === 0) { return } g = function (b, c, d, e) { c = c || document; if (!e && c.nodeType === 9 && !q(c)) { try { return k(c.querySelectorAll(b), d) } catch (f) { } } return a(b, c, d, e) }; g.find = a.find; g.filter = a.filter; g.selectors = a.selectors; g.matches = a.matches })() } if (document.getElementsByClassName && document.documentElement.getElementsByClassName) { (function () { var a = document.createElement("div"); a.innerHTML = "<div class='test e'></div><div class='test'></div>"; if (a.getElementsByClassName("e").length === 0) { return } a.lastChild.className = "e"; if (a.getElementsByClassName("e").length === 1) { return } h.order.splice(1, 0, "CLASS"); h.find.CLASS = function (a, b, c) { if (typeof b.getElementsByClassName !== "undefined" && !c) { return b.getElementsByClassName(a[1]) } } })() } var p = document.compareDocumentPosition ? function (a, b) { return a.compareDocumentPosition(b) & 16 } : function (a, b) { return a !== b && (a.contains ? a.contains(b) : true) }; var q = function (a) { return a.nodeType === 9 && a.documentElement.nodeName !== "HTML" || !!a.ownerDocument && q(a.ownerDocument) }; var r = function (a, b) { var c = [], d = "", e, f = b.nodeType ? [b] : b; while (e = h.match.PSEUDO.exec(a)) { d += e[0]; a = a.replace(h.match.PSEUDO, "") } a = h.relative[a] ? a + "*" : a; for (var i = 0, j = f.length; i < j; i++) { g(a, f[i], c) } return g.filter(d, c) }; e.find = g; e.filter = g.filter; e.expr = g.selectors; e.expr[":"] = e.expr.filters; g.selectors.filters.hidden = function (a) { return a.offsetWidth === 0 || a.offsetHeight === 0 }; g.selectors.filters.visible = function (a) { return a.offsetWidth > 0 || a.offsetHeight > 0 }; g.selectors.filters.animated = function (a) { return e.grep(e.timers, function (b) { return a === b.elem }).length }; e.multiFilter = function (a, b, c) { if (c) { a = ":not(" + a + ")" } return g.matches(a, b) }; e.dir = function (a, b) { var c = [], d = a[b]; while (d && d != document) { if (d.nodeType == 1) { c.push(d) } d = d[b] } return c }; e.nth = function (a, b, c, d) { b = b || 1; var e = 0; for (; a; a = a[c]) { if (a.nodeType == 1 && ++e == b) { break } } return a }; e.sibling = function (a, b) { var c = []; for (; a; a = a.nextSibling) { if (a.nodeType == 1 && a != b) { c.push(a) } } return c }; return; a.Sizzle = g })(); e.event = { add: function (c, d, f, g) { if (c.nodeType == 3 || c.nodeType == 8) { return } if (c.setInterval && c != a) { c = a } if (!f.guid) { f.guid = this.guid++ } if (g !== b) { var h = f; f = this.proxy(h); f.data = g } var i = e.data(c, "events") || e.data(c, "events", {}), j = e.data(c, "handle") || e.data(c, "handle", function () { return typeof e !== "undefined" && !e.event.triggered ? e.event.handle.apply(arguments.callee.elem, arguments) : b }); j.elem = c; e.each(d.split(/\s+/), function (a, b) { var d = b.split("."); b = d.shift(); f.type = d.slice().sort().join("."); var h = i[b]; if (e.event.specialAll[b]) { e.event.specialAll[b].setup.call(c, g, d) } if (!h) { h = i[b] = {}; if (!e.event.special[b] || e.event.special[b].setup.call(c, g, d) === false) { if (c.addEventListener) { c.addEventListener(b, j, false) } else { if (c.attachEvent) { c.attachEvent("on" + b, j) } } } } h[f.guid] = f; e.event.global[b] = true }); c = null }, guid: 1, global: {}, remove: function (a, c, d) { if (a.nodeType == 3 || a.nodeType == 8) { return } var f = e.data(a, "events"), g, h; if (f) { if (c === b || typeof c === "string" && c.charAt(0) == ".") { for (var i in f) { this.remove(a, i + (c || "")) } } else { if (c.type) { d = c.handler; c = c.type } e.each(c.split(/\s+/), function (b, c) { var h = c.split("."); c = h.shift(); var i = RegExp("(^|\\.)" + h.slice().sort().join(".*\\.") + "(\\.|$)"); if (f[c]) { if (d) { delete f[c][d.guid] } else { for (var j in f[c]) { if (i.test(f[c][j].type)) { delete f[c][j] } } } if (e.event.specialAll[c]) { e.event.specialAll[c].teardown.call(a, h) } for (g in f[c]) { break } if (!g) { if (!e.event.special[c] || e.event.special[c].teardown.call(a, h) === false) { if (a.removeEventListener) { a.removeEventListener(c, e.data(a, "handle"), false) } else { if (a.detachEvent) { a.detachEvent("on" + c, e.data(a, "handle")) } } } g = null; delete f[c] } } }) } for (g in f) { break } if (!g) { var j = e.data(a, "handle"); if (j) { j.elem = null } e.removeData(a, "events"); e.removeData(a, "handle") } } }, trigger: function (a, c, d, f) { var g = a.type || a; if (!f) { a = typeof a === "object" ? a[o] ? a : e.extend(e.Event(g), a) : e.Event(g); if (g.indexOf("!") >= 0) { a.type = g = g.slice(0, -1); a.exclusive = true } if (!d) { a.stopPropagation(); if (this.global[g]) { e.each(e.cache, function () { if (this.events && this.events[g]) { e.event.trigger(a, c, this.handle.elem) } }) } } if (!d || d.nodeType == 3 || d.nodeType == 8) { return b } a.result = b; a.target = d; c = e.makeArray(c); c.unshift(a) } a.currentTarget = d; var h = e.data(d, "handle"); if (h) { h.apply(d, c) } if ((!d[g] || e.nodeName(d, "a") && g == "click") && d["on" + g] && d["on" + g].apply(d, c) === false) { a.result = false } if (!f && d[g] && !a.isDefaultPrevented() && !(e.nodeName(d, "a") && g == "click")) { this.triggered = true; try { d[g]() } catch (i) { } } this.triggered = false; if (!a.isPropagationStopped()) { var j = d.parentNode || d.ownerDocument; if (j) { e.event.trigger(a, c, j, true) } } }, handle: function (c) { var d, f; c = arguments[0] = e.event.fix(c || a.event); c.currentTarget = this; var g = c.type.split("."); c.type = g.shift(); d = !g.length && !c.exclusive; var h = RegExp("(^|\\.)" + g.slice().sort().join(".*\\.") + "(\\.|$)"); f = (e.data(this, "events") || {})[c.type]; for (var i in f) { var j = f[i]; if (d || h.test(j.type)) { c.handler = j; c.data = j.data; var k = j.apply(this, arguments); if (k !== b) { c.result = k; if (k === false) { c.preventDefault(); c.stopPropagation() } } if (c.isImmediatePropagationStopped()) { break } } } }, props: "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "), fix: function (a) { if (a[o]) { return a } var b = a; a = e.Event(b); for (var c = this.props.length, d; c; ) { d = this.props[--c]; a[d] = b[d] } if (!a.target) { a.target = a.srcElement || document } if (a.target.nodeType == 3) { a.target = a.target.parentNode } if (!a.relatedTarget && a.fromElement) { a.relatedTarget = a.fromElement == a.target ? a.toElement : a.fromElement } if (a.pageX == null && a.clientX != null) { var f = document.documentElement, g = document.body; a.pageX = a.clientX + (f && f.scrollLeft || g && g.scrollLeft || 0) - (f.clientLeft || 0); a.pageY = a.clientY + (f && f.scrollTop || g && g.scrollTop || 0) - (f.clientTop || 0) } if (!a.which && (a.charCode || a.charCode === 0 ? a.charCode : a.keyCode)) { a.which = a.charCode || a.keyCode } if (!a.metaKey && a.ctrlKey) { a.metaKey = a.ctrlKey } if (!a.which && a.button) { a.which = a.button & 1 ? 1 : a.button & 2 ? 3 : a.button & 4 ? 2 : 0 } return a }, proxy: function (a, b) { b = b || function () { return a.apply(this, arguments) }; b.guid = a.guid = a.guid || b.guid || this.guid++; return b }, special: { ready: { setup: x, teardown: function () { } } }, specialAll: { live: { setup: function (a, b) { e.event.add(this, b[0], u) }, teardown: function (a) { if (a.length) { var b = 0, c = RegExp("(^|\\.)" + a[0] + "(\\.|$)"); e.each(e.data(this, "events").live || {}, function () { if (c.test(this.type)) { b++ } }); if (b < 1) { e.event.remove(this, a[0], u) } } } }} }; e.Event = function (a) { if (!this.preventDefault) { return new e.Event(a) } if (a && a.type) { this.originalEvent = a; this.type = a.type } else { this.type = a } this.timeStamp = i(); this[o] = true }; e.Event.prototype = { preventDefault: function () { this.isDefaultPrevented = s; var a = this.originalEvent; if (!a) { return } if (a.preventDefault) { a.preventDefault() } a.returnValue = false }, stopPropagation: function () { this.isPropagationStopped = s; var a = this.originalEvent; if (!a) { return } if (a.stopPropagation) { a.stopPropagation() } a.cancelBubble = true }, stopImmediatePropagation: function () { this.isImmediatePropagationStopped = s; this.stopPropagation() }, isDefaultPrevented: r, isPropagationStopped: r, isImmediatePropagationStopped: r }; var t = function (a) { var b = a.relatedTarget; while (b && b != this) { try { b = b.parentNode } catch (c) { b = this } } if (b != this) { a.type = a.data; e.event.handle.apply(this, arguments) } }; e.each({ mouseover: "mouseenter", mouseout: "mouseleave" }, function (a, b) { e.event.special[b] = { setup: function () { e.event.add(this, a, t, b) }, teardown: function () { e.event.remove(this, a, t) } } }); e.fn.extend({ bind: function (a, b, c) { return a == "unload" ? this.one(a, b, c) : this.each(function () { e.event.add(this, a, c || b, c && b) }) }, one: function (a, b, c) { var d = e.event.proxy(c || b, function (a) { e(this).unbind(a, d); return (c || b).apply(this, arguments) }); return this.each(function () { e.event.add(this, a, d, c && b) }) }, unbind: function (a, b) { return this.each(function () { e.event.remove(this, a, b) }) }, trigger: function (a, b) { return this.each(function () { e.event.trigger(a, b, this) }) }, triggerHandler: function (a, b) { if (this[0]) { var c = e.Event(a); c.preventDefault(); c.stopPropagation(); e.event.trigger(c, b, this[0]); return c.result } }, toggle: function (a) { var b = arguments, c = 1; while (c < b.length) { e.event.proxy(a, b[c++]) } return this.click(e.event.proxy(a, function (a) { this.lastToggle = (this.lastToggle || 0) % c; a.preventDefault(); return b[this.lastToggle++].apply(this, arguments) || false })) }, hover: function (a, b) { return this.mouseenter(a).mouseleave(b) }, ready: function (a) { x(); if (e.isReady) { a.call(document, e) } else { e.readyList.push(a) } return this }, live: function (a, b) { var c = e.event.proxy(b); c.guid += this.selector + a; e(document).bind(v(a, this.selector), this.selector, c); return this }, die: function (a, b) { e(document).unbind(v(a, this.selector), b ? { guid: b.guid + this.selector + a} : null); return this } }); e.extend({ isReady: false, readyList: [], ready: function () { if (!e.isReady) { e.isReady = true; if (e.readyList) { e.each(e.readyList, function () { this.call(document, e) }); e.readyList = null } e(document).triggerHandler("ready") } } }); var w = false; e.each("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error".split(","), function (a, b) { e.fn[b] = function (a) { return a ? this.bind(b, a) : this.trigger(b) } }); e(a).bind("unload", function () { for (var a in e.cache) { if (a != 1 && e.cache[a].handle) { e.event.remove(e.cache[a].handle.elem) } } }); (function () { e.support = {}; var b = document.documentElement, c = document.createElement("script"), d = document.createElement("div"), f = "script" + (new Date).getTime(); d.style.display = "none"; d.innerHTML = '   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>'; var g = d.getElementsByTagName("*"), h = d.getElementsByTagName("a")[0]; if (!g || !g.length || !h) { return } e.support = { leadingWhitespace: d.firstChild.nodeType == 3, tbody: !d.getElementsByTagName("tbody").length, objectAll: !!d.getElementsByTagName("object")[0].getElementsByTagName("*").length, htmlSerialize: !!d.getElementsByTagName("link").length, style: /red/.test(h.getAttribute("style")), hrefNormalized: h.getAttribute("href") === "/a", opacity: h.style.opacity === "0.5", cssFloat: !!h.style.cssFloat, scriptEval: false, noCloneEvent: true, boxModel: null }; c.type = "text/javascript"; try { c.appendChild(document.createTextNode("window." + f + "=1;")) } catch (i) { } b.insertBefore(c, b.firstChild); if (a[f]) { e.support.scriptEval = true; delete a[f] } b.removeChild(c); if (d.attachEvent && d.fireEvent) { d.attachEvent("onclick", function () { e.support.noCloneEvent = false; d.detachEvent("onclick", arguments.callee) }); d.cloneNode(true).fireEvent("onclick") } e(function () { var a = document.createElement("div"); a.style.width = a.style.paddingLeft = "1px"; document.body.appendChild(a); e.boxModel = e.support.boxModel = a.offsetWidth === 2; document.body.removeChild(a).style.display = "none" }) })(); var y = e.support.cssFloat ? "cssFloat" : "styleFloat"; e.props = { "for": "htmlFor", "class": "className", "float": y, cssFloat: y, styleFloat: y, readonly: "readOnly", maxlength: "maxLength", cellspacing: "cellSpacing", rowspan: "rowSpan", tabindex: "tabIndex" }; e.fn.extend({ _load: e.fn.load, load: function (a, b, c) { if (typeof a !== "string") { return this._load(a) } var d = a.indexOf(" "); if (d >= 0) { var f = a.slice(d, a.length); a = a.slice(0, d) } var g = "GET"; if (b) { if (e.isFunction(b)) { c = b; b = null } else { if (typeof b === "object") { b = e.param(b); g = "POST" } } } var h = this; e.ajax({ url: a, type: g, dataType: "html", data: b, complete: function (a, b) { if (b == "success" || b == "notmodified") { h.html(f ? e("<div/>").append(a.responseText.replace(/<script(.|\s)*?\/script>/g, "")).find(f) : a.responseText) } if (c) { h.each(c, [a.responseText, b, a]) } } }); return this }, serialize: function () { return e.param(this.serializeArray()) }, serializeArray: function () { return this.map(function () { return this.elements ? e.makeArray(this.elements) : this }).filter(function () { return this.name && !this.disabled && (this.checked || /select|textarea/i.test(this.nodeName) || /text|hidden|password|search/i.test(this.type)) }).map(function (a, b) { var c = e(this).val(); return c == null ? null : e.isArray(c) ? e.map(c, function (a, c) { return { name: b.name, value: a} }) : { name: b.name, value: c} }).get() } }); e.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","), function (a, b) { e.fn[b] = function (a) { return this.bind(b, a) } }); var z = i(); e.extend({ get: function (a, b, c, d) { if (e.isFunction(b)) { c = b; b = null } return e.ajax({ type: "GET", url: a, data: b, success: c, dataType: d }) }, getScript: function (a, b) { return e.get(a, null, b, "script") }, getJSON: function (a, b, c) { return e.get(a, b, c, "json") }, post: function (a, b, c, d) { if (e.isFunction(b)) { c = b; b = {} } return e.ajax({ type: "POST", url: a, data: b, success: c, dataType: d }) }, ajaxSetup: function (a) { e.extend(e.ajaxSettings, a) }, ajaxSettings: { url: location.href, global: true, type: "GET", contentType: "application/x-www-form-urlencoded", processData: true, async: true, xhr: function () { return a.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest }, accepts: { xml: "application/xml, text/xml", html: "text/html", script: "text/javascript, application/javascript", json: "application/json, text/javascript", text: "text/plain", _default: "*/*"} }, lastModified: {}, ajax: function (c) { function w() { if (c.complete) { c.complete(r, g) } if (c.global) { e.event.trigger("ajaxComplete", [r, c]) } if (c.global && ! --e.active) { e.event.trigger("ajaxStop") } } function v() { if (c.success) { c.success(h, g) } if (c.global) { e.event.trigger("ajaxSuccess", [r, c]) } } c = e.extend(true, c, e.extend(true, {}, e.ajaxSettings, c)); var d, f = /=\?(&|$)/g, g, h, j = c.type.toUpperCase(); if (c.data && c.processData && typeof c.data !== "string") { c.data = e.param(c.data) } if (c.dataType == "jsonp") { if (j == "GET") { if (!c.url.match(f)) { c.url += (c.url.match(/\?/) ? "&" : "?") + (c.jsonp || "callback") + "=?" } } else { if (!c.data || !c.data.match(f)) { c.data = (c.data ? c.data + "&" : "") + (c.jsonp || "callback") + "=?" } } c.dataType = "json" } if (c.dataType == "json" && (c.data && c.data.match(f) || c.url.match(f))) { d = "jsonp" + z++; if (c.data) { c.data = (c.data + "").replace(f, "=" + d + "$1") } c.url = c.url.replace(f, "=" + d + "$1"); c.dataType = "script"; a[d] = function (c) { h = c; v(); w(); a[d] = b; try { delete a[d] } catch (e) { } if (n) { n.removeChild(o) } } } if (c.dataType == "script" && c.cache == null) { c.cache = false } if (c.cache === false && j == "GET") { var k = i(); var l = c.url.replace(/(\?|&)_=.*?(&|$)/, "$1_=" + k + "$2"); c.url = l + (l == c.url ? (c.url.match(/\?/) ? "&" : "?") + "_=" + k : "") } if (c.data && j == "GET") { c.url += (c.url.match(/\?/) ? "&" : "?") + c.data; c.data = null } if (c.global && !(e.active++)) { e.event.trigger("ajaxStart") } var m = /^(\w+:)?\/\/([^\/?#]+)/.exec(c.url); if (c.dataType == "script" && j == "GET" && m && (m[1] && m[1] != location.protocol || m[2] != location.host)) { var n = document.getElementsByTagName("head")[0]; var o = document.createElement("script"); o.src = c.url; if (c.scriptCharset) { o.charset = c.scriptCharset } if (!d) { var p = false; o.onload = o.onreadystatechange = function () { if (!p && (!this.readyState || this.readyState == "loaded" || this.readyState == "complete")) { p = true; v(); w(); o.onload = o.onreadystatechange = null; n.removeChild(o) } } } n.appendChild(o); return b } var q = false; var r = c.xhr(); if (c.username) { r.open(j, c.url, c.async, c.username, c.password) } else { r.open(j, c.url, c.async) } try { if (c.data) { r.setRequestHeader("Content-Type", c.contentType) } if (c.ifModified) { r.setRequestHeader("If-Modified-Since", e.lastModified[c.url] || "Thu, 01 Jan 1970 00:00:00 GMT") } r.setRequestHeader("X-Requested-With", "XMLHttpRequest"); r.setRequestHeader("Accept", c.dataType && c.accepts[c.dataType] ? c.accepts[c.dataType] + ", */*" : c.accepts._default) } catch (s) { } if (c.beforeSend && c.beforeSend(r, c) === false) { if (c.global && ! --e.active) { e.event.trigger("ajaxStop") } r.abort(); return false } if (c.global) { e.event.trigger("ajaxSend", [r, c]) } var t = function (a) { if (r.readyState == 0) { if (u) { clearInterval(u); u = null; if (c.global && ! --e.active) { e.event.trigger("ajaxStop") } } } else { if (!q && r && (r.readyState == 4 || a == "timeout")) { q = true; if (u) { clearInterval(u); u = null } g = a == "timeout" ? "timeout" : !e.httpSuccess(r) ? "error" : c.ifModified && e.httpNotModified(r, c.url) ? "notmodified" : "success"; if (g == "success") { try { h = e.httpData(r, c.dataType, c) } catch (b) { g = "parsererror" } } if (g == "success") { var f; try { f = r.getResponseHeader("Last-Modified") } catch (b) { } if (c.ifModified && f) { e.lastModified[c.url] = f } if (!d) { v() } } else { e.handleError(c, r, g) } w(); if (a) { r.abort() } if (c.async) { r = null } } } }; if (c.async) { var u = setInterval(t, 13); if (c.timeout > 0) { setTimeout(function () { if (r && !q) { t("timeout") } }, c.timeout) } } try { r.send(c.data) } catch (s) { e.handleError(c, r, null, s) } if (!c.async) { t() } return r }, handleError: function (a, b, c, d) { if (a.error) { a.error(b, c, d) } if (a.global) { e.event.trigger("ajaxError", [b, a, d]) } }, active: 0, httpSuccess: function (a) { try { return !a.status && location.protocol == "file:" || a.status >= 200 && a.status < 300 || a.status == 304 || a.status == 1223 } catch (b) { } return false }, httpNotModified: function (a, b) { try { var c = a.getResponseHeader("Last-Modified"); return a.status == 304 || c == e.lastModified[b] } catch (d) { } return false }, httpData: function (b, c, d) { var f = b.getResponseHeader("content-type"), g = c == "xml" || !c && f && f.indexOf("xml") >= 0, h = g ? b.responseXML : b.responseText; if (g && h.documentElement.tagName == "parsererror") { throw "parsererror" } if (d && d.dataFilter) { h = d.dataFilter(h, c) } if (typeof h === "string") { if (c == "script") { e.globalEval(h) } if (c == "json") { h = a["eval"]("(" + h + ")") } } return h }, param: function (a) { function c(a, c) { b[b.length] = encodeURIComponent(a) + "=" + encodeURIComponent(c) } var b = []; if (e.isArray(a) || a.jquery) { e.each(a, function () { c(this.name, this.value) }) } else { for (var d in a) { if (e.isArray(a[d])) { e.each(a[d], function () { c(d, this) }) } else { c(d, e.isFunction(a[d]) ? a[d]() : a[d]) } } } return b.join("&").replace(/%20/g, "+") } }); var A = {}, B, C = [["height", "marginTop", "marginBottom", "paddingTop", "paddingBottom"], ["width", "marginLeft", "marginRight", "paddingLeft", "paddingRight"], ["opacity"]]; e.fn.extend({ show: function (a, b) { if (a) { return this.animate(D("show", 3), a, b) } else { for (var c = 0, d = this.length; c < d; c++) { var f = e.data(this[c], "olddisplay"); this[c].style.display = f || ""; if (e.css(this[c], "display") === "none") { var g = this[c].tagName, h; if (A[g]) { h = A[g] } else { var i = e("<" + g + " />").appendTo("body"); h = i.css("display"); if (h === "none") { h = "block" } i.remove(); A[g] = h } e.data(this[c], "olddisplay", h) } } for (var c = 0, d = this.length; c < d; c++) { this[c].style.display = e.data(this[c], "olddisplay") || "" } return this } }, hide: function (a, b) { if (a) { return this.animate(D("hide", 3), a, b) } else { for (var c = 0, d = this.length; c < d; c++) { var f = e.data(this[c], "olddisplay"); if (!f && f !== "none") { e.data(this[c], "olddisplay", e.css(this[c], "display")) } } for (var c = 0, d = this.length; c < d; c++) { this[c].style.display = "none" } return this } }, _toggle: e.fn.toggle, toggle: function (a, b) { var c = typeof a === "boolean"; return e.isFunction(a) && e.isFunction(b) ? this._toggle.apply(this, arguments) : a == null || c ? this.each(function () { var b = c ? a : e(this).is(":hidden"); e(this)[b ? "show" : "hide"]() }) : this.animate(D("toggle", 3), a, b) }, fadeTo: function (a, b, c) { return this.animate({ opacity: b }, a, c) }, animate: function (a, b, c, d) { var f = e.speed(b, c, d); return this[f.queue === false ? "each" : "queue"](function () { var b = e.extend({}, f), c, d = this.nodeType == 1 && e(this).is(":hidden"), g = this; for (c in a) { if (a[c] == "hide" && d || a[c] == "show" && !d) { return b.complete.call(this) } if ((c == "height" || c == "width") && this.style) { b.display = e.css(this, "display"); b.overflow = this.style.overflow } } if (b.overflow != null) { this.style.overflow = "hidden" } b.curAnim = e.extend({}, a); e.each(a, function (c, f) { var h = new e.fx(g, b, c); if (/toggle|show|hide/.test(f)) { h[f == "toggle" ? d ? "show" : "hide" : f](a) } else { var i = f.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/), j = h.cur(true) || 0; if (i) { var k = parseFloat(i[2]), l = i[3] || "px"; if (l != "px") { g.style[c] = (k || 1) + l; j = (k || 1) / h.cur(true) * j; g.style[c] = j + l } if (i[1]) { k = (i[1] == "-=" ? -1 : 1) * k + j } h.custom(j, k, l) } else { h.custom(j, f, "") } } }); return true }) }, stop: function (a, b) { var c = e.timers; if (a) { this.queue([]) } this.each(function () { for (var a = c.length - 1; a >= 0; a--) { if (c[a].elem == this) { if (b) { c[a](true) } c.splice(a, 1) } } }); if (!b) { this.dequeue() } return this } }); e.each({ slideDown: D("show", 1), slideUp: D("hide", 1), slideToggle: D("toggle", 1), fadeIn: { opacity: "show" }, fadeOut: { opacity: "hide"} }, function (a, b) { e.fn[a] = function (a, c) { return this.animate(b, a, c) } }); e.extend({ speed: function (a, b, c) { var d = typeof a === "object" ? a : { complete: c || !c && b || e.isFunction(a) && a, duration: a, easing: c && b || b && !e.isFunction(b) && b }; d.duration = e.fx.off ? 0 : typeof d.duration === "number" ? d.duration : e.fx.speeds[d.duration] || e.fx.speeds._default; d.old = d.complete; d.complete = function () { if (d.queue !== false) { e(this).dequeue() } if (e.isFunction(d.old)) { d.old.call(this) } }; return d }, easing: { linear: function (a, b, c, d) { return c + d * a }, swing: function (a, b, c, d) { return (-Math.cos(a * Math.PI) / 2 + .5) * d + c } }, timers: [], fx: function (a, b, c) { this.options = b; this.elem = a; this.prop = c; if (!b.orig) { b.orig = {} } } }); e.fx.prototype = { update: function () { if (this.options.step) { this.options.step.call(this.elem, this.now, this) } (e.fx.step[this.prop] || e.fx.step._default)(this); if ((this.prop == "height" || this.prop == "width") && this.elem.style) { this.elem.style.display = "block" } }, cur: function (a) { if (this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null)) { return this.elem[this.prop] } var b = parseFloat(e.css(this.elem, this.prop, a)); return b && b > -1e4 ? b : parseFloat(e.curCSS(this.elem, this.prop)) || 0 }, custom: function (a, c, d) { function g(a) { return f.step(a) } this.startTime = i(); this.start = a; this.end = c; this.unit = d || this.unit || "px"; this.now = this.start; this.pos = this.state = 0; var f = this; g.elem = this.elem; if (g() && e.timers.push(g) && !B) { B = setInterval(function () { var a = e.timers; for (var c = 0; c < a.length; c++) { if (!a[c]()) { a.splice(c--, 1) } } if (!a.length) { clearInterval(B); B = b } }, 13) } }, show: function () { this.options.orig[this.prop] = e.attr(this.elem.style, this.prop); this.options.show = true; this.custom(this.prop == "width" || this.prop == "height" ? 1 : 0, this.cur()); e(this.elem).show() }, hide: function () { this.options.orig[this.prop] = e.attr(this.elem.style, this.prop); this.options.hide = true; this.custom(this.cur(), 0) }, step: function (a) { var b = i(); if (a || b >= this.options.duration + this.startTime) { this.now = this.end; this.pos = this.state = 1; this.update(); this.options.curAnim[this.prop] = true; var c = true; for (var d in this.options.curAnim) { if (this.options.curAnim[d] !== true) { c = false } } if (c) { if (this.options.display != null) { this.elem.style.overflow = this.options.overflow; this.elem.style.display = this.options.display; if (e.css(this.elem, "display") == "none") { this.elem.style.display = "block" } } if (this.options.hide) { e(this.elem).hide() } if (this.options.hide || this.options.show) { for (var f in this.options.curAnim) { e.attr(this.elem.style, f, this.options.orig[f]) } } this.options.complete.call(this.elem) } return false } else { var g = b - this.startTime; this.state = g / this.options.duration; this.pos = e.easing[this.options.easing || (e.easing.swing ? "swing" : "linear")](this.state, g, 0, 1, this.options.duration); this.now = this.start + (this.end - this.start) * this.pos; this.update() } return true } }; e.extend(e.fx, { speeds: { slow: 600, fast: 200, _default: 400 }, step: { opacity: function (a) { e.attr(a.elem.style, "opacity", a.now) }, _default: function (a) { if (a.elem.style && a.elem.style[a.prop] != null) { a.elem.style[a.prop] = a.now + a.unit } else { a.elem[a.prop] = a.now } } } }); if (document.documentElement.getBoundingClientRect) { e.fn.offset = function () { if (!this[0]) { return { top: 0, left: 0} } if (this[0] === this[0].ownerDocument.body) { return e.offset.bodyOffset(this[0]) } var a = this[0].getBoundingClientRect(), b = this[0].ownerDocument, c = b.body, d = b.documentElement, f = d.clientTop || c.clientTop || 0, g = d.clientLeft || c.clientLeft || 0, h = a.top + (self.pageYOffset || e.boxModel && d.scrollTop || c.scrollTop) - f, i = a.left + (self.pageXOffset || e.boxModel && d.scrollLeft || c.scrollLeft) - g; return { top: h, left: i} } } else { e.fn.offset = function () { if (!this[0]) { return { top: 0, left: 0} } if (this[0] === this[0].ownerDocument.body) { return e.offset.bodyOffset(this[0]) } e.offset.initialized || e.offset.initialize(); var a = this[0], b = a.offsetParent, c = a, d = a.ownerDocument, f, g = d.documentElement, h = d.body, i = d.defaultView, j = i.getComputedStyle(a, null), k = a.offsetTop, l = a.offsetLeft; while ((a = a.parentNode) && a !== h && a !== g) { f = i.getComputedStyle(a, null); k -= a.scrollTop, l -= a.scrollLeft; if (a === b) { k += a.offsetTop, l += a.offsetLeft; if (e.offset.doesNotAddBorder && !(e.offset.doesAddBorderForTableAndCells && /^t(able|d|h)$/i.test(a.tagName))) { k += parseInt(f.borderTopWidth, 10) || 0, l += parseInt(f.borderLeftWidth, 10) || 0 } c = b, b = a.offsetParent } if (e.offset.subtractsBorderForOverflowNotVisible && f.overflow !== "visible") { k += parseInt(f.borderTopWidth, 10) || 0, l += parseInt(f.borderLeftWidth, 10) || 0 } j = f } if (j.position === "relative" || j.position === "static") { k += h.offsetTop, l += h.offsetLeft } if (j.position === "fixed") { k += Math.max(g.scrollTop, h.scrollTop), l += Math.max(g.scrollLeft, h.scrollLeft) } return { top: k, left: l} } } e.offset = { initialize: function () { if (this.initialized) { return } var a = document.body, b = document.createElement("div"), c, d, e, f, g, h, i = a.style.marginTop, j = '<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>'; g = { position: "absolute", top: 0, left: 0, margin: 0, border: 0, width: "1px", height: "1px", visibility: "hidden" }; for (h in g) { b.style[h] = g[h] } b.innerHTML = j; a.insertBefore(b, a.firstChild); c = b.firstChild, d = c.firstChild, f = c.nextSibling.firstChild.firstChild; this.doesNotAddBorder = d.offsetTop !== 5; this.doesAddBorderForTableAndCells = f.offsetTop === 5; c.style.overflow = "hidden", c.style.position = "relative"; this.subtractsBorderForOverflowNotVisible = d.offsetTop === -5; a.style.marginTop = "1px"; this.doesNotIncludeMarginInBodyOffset = a.offsetTop === 0; a.style.marginTop = i; a.removeChild(b); this.initialized = true }, bodyOffset: function (a) { e.offset.initialized || e.offset.initialize(); var b = a.offsetTop, c = a.offsetLeft; if (e.offset.doesNotIncludeMarginInBodyOffset) { b += parseInt(e.curCSS(a, "marginTop", true), 10) || 0, c += parseInt(e.curCSS(a, "marginLeft", true), 10) || 0 } return { top: b, left: c} } }; e.fn.extend({ position: function () { var a = 0, b = 0, c; if (this[0]) { var d = this.offsetParent(), e = this.offset(), f = /^body|html$/i.test(d[0].tagName) ? { top: 0, left: 0} : d.offset(); e.top -= n(this, "marginTop"); e.left -= n(this, "marginLeft"); f.top += n(d, "borderTopWidth"); f.left += n(d, "borderLeftWidth"); c = { top: e.top - f.top, left: e.left - f.left} } return c }, offsetParent: function () { var a = this[0].offsetParent || document.body; while (a && !/^body|html$/i.test(a.tagName) && e.css(a, "position") == "static") { a = a.offsetParent } return e(a) } }); e.each(["Left", "Top"], function (c, d) { var f = "scroll" + d; e.fn[f] = function (d) { if (!this[0]) { return null } return d !== b ? this.each(function () { this == a || this == document ? a.scrollTo(!c ? d : e(a).scrollLeft(), c ? d : e(a).scrollTop()) : this[f] = d }) : this[0] == a || this[0] == document ? self[c ? "pageYOffset" : "pageXOffset"] || e.boxModel && document.documentElement[f] || document.body[f] : this[0][f] } }); e.each(["Height", "Width"], function (c, d) { var f = c ? "Left" : "Top", g = c ? "Right" : "Bottom", h = d.toLowerCase(); e.fn["inner" + d] = function () { return this[0] ? e.css(this[0], h, false, "padding") : null }; e.fn["outer" + d] = function (a) { return this[0] ? e.css(this[0], h, false, a ? "margin" : "border") : null }; var i = d.toLowerCase(); e.fn[i] = function (c) { return this[0] == a ? document.compatMode == "CSS1Compat" && document.documentElement["client" + d] || document.body["client" + d] : this[0] == document ? Math.max(document.documentElement["client" + d], document.body["scroll" + d], document.documentElement["scroll" + d], document.body["offset" + d], document.documentElement["offset" + d]) : c === b ? this.length ? e.css(this[0], i) : null : this.css(i, typeof c === "string" ? c : c + "px") } }) })()
