(function (e, b) { function ka(a, b, d) { if (d === b && a.nodetype === 1) { d = a.getattribute("data-" + b); if (typeof d === "string") { try { d = d === "true" ? true : d === "false" ? false : d === "null" ? null : !c.isnan(d) ? parsefloat(d) : ja.test(d) ? c.parsejson(d) : d } catch (e) { } c.data(a, b, d) } else d = b } return d } function u() { return false } function ca() { return true } function la(a, b, d) { d[0].type = a; return c.event.handle.apply(b, d) } function ka(a) { var b, d, e, f, h, l, k, o, x, r, a, c = []; f = []; h = c.data(this, this.nodetype ? "events" : "__events__"); if (typeof h === "function") h = h.events; if (!(a.livefired === this || !h || !h.live || a.button && a.type === "click")) { if (a.namespace) a = regexp("(^|\\.)" + a.namespace.split(".").join("\\.(?:.*\\.)?") + "(\\.|$)"); a.livefired = this; var j = h.live.slice(0); for (k = 0; k < j.length; k++) { h = j[k]; h.origtype.replace(x, "") === a.type ? f.push(h.selector) : j.splice(k--, 1) } f = c(a.target).closest(f, a.currenttarget); o = 0; for (x = f.length; o < x; o++) { r = f[o]; for (k = 0; k < j.length; k++) { h = j[k]; if (r.selector === h.selector && (!a || a.test(h.namespace))) { l = r.elem; e = null; if (h.pretype === "mouseenter" || h.pretype === "mouseleave") { a.type = h.pretype; e = c(a.relatedtarget).closest(h.selector)[0] } if (!e || e !== l) c.push({ elem: l, handleobj: h, level: r.level }) } } } o = 0; for (x = c.length; o < x; o++) { f = c[o]; if (d && f.level > d) break; a.currenttarget = f.elem; a.data = f.handleobj.data; a.handleobj = f.handleobj; a = f.handleobj.orighandler.apply(f.elem, arguments); if (a === false || a.ispropagationstopped()) { d = f.level; if (a === false) b = false; if (a.isimmediatepropagationstopped()) break } } return b } } function y(a, b) { return (a && a !== "*" ? a + "." : "") + b.replace(la, "`").replace(ma, "&") } function ma(a, b, d) { if (c.isfunction(b)) return c.grep(a, function (f, h) { return !!b.call(f, h, f) === d }); else if (b.nodetype) return c.grep(a, function (f) { return f === b === d }); else if (typeof b === "string") { var e = c.grep(a, function (f) { return f.nodetype === 1 }); if (na.test(b)) return c.filter(b, e, !d); else b = c.filter(b, e) } return c.grep(a, function (f) { return c.inarray(f, b) >= 0 === d }) } function na(a, b) { var d = 0; b.each(function () { if (this.nodename === (a[d] && a[d].nodename)) { var e = c.data(a[d++]), f = c.data(this, e); if (e = e && e.events) { delete f.handle; f.events = {}; for (var h in e) for (var l in e[h]) c.event.add(this, h, e[h][l], e[h][l].data) } } }) } function oa(a, b) { b.src ? c.ajax({ url: b.src, async: false, datatype: "script" }) : c.globaleval(b.text || b.textcontent || b.innerhtml || ""); b.parentnode && b.parentnode.removechild(b) } function oa(a, b, d) { var e = b === "width" ? a.offsetwidth : a.offsetheight; if (d === "border") return e; c.each(b === "width" ? pa : qa, function () { d || (e -= parsefloat(c.css(a, "padding" + this)) || 0); if (d === "margin") e += parsefloat(c.css(a, "margin" + this)) || 0; else e -= parsefloat(c.css(a, "border" + this + "width")) || 0 }); return e } function da(a, b, d, e) { if (c.isarray(b) && b.length) c.each(b, function (f, h) { d || ra.test(a) ? e(a, h) : da(a + "[" + (typeof h === "object" || c.isarray(h) ? f : "") + "]", h, d, e) }); else if (!d && b != null && typeof b === "object") c.isemptyobject(b) ? e(a, "") : c.each(b, function (f, h) { da(a + "[" + f + "]", h, d, e) }); else e(a, b) } function s(a, b) { var d = {}; c.each(pa.concat.apply([], pa.slice(0, b)), function () { d[this] = a }); return d } function qa(a) { if (!ea[a]) { var b = c("<" + a + ">").appendto("body"), d = b.css("display"); b.remove(); if (d === "none" || d === "") d = "block"; ea[a] = d } return ea[a] } function fa(a) { return c.iswindow(a) ? a : a.nodetype === 9 ? a.defaultview || a.parentwindow : false } var t = e.document, c = function () { function a() { if (!b.isready) { try { t.documentelement.doscroll("left") } catch (j) { settimeout(a, 1); return } b.ready() } } var b = function (j, s) { return new b.fn.init(j, s) }, d = e.jquery, e = e.$, f, h = /^(?:[^<]*(<[\w\w]+>)[^>]*$|#([\w\-]+)$)/, l = /\s/, k = /^\s+/, o = /\s+$/, x = /\w/, r = /\d/, a = /^<(\w+)\s*\/?>(?:<\/\1>)?$/, c = /^[\],:{}\s]*$/, j = /\\(?:["\\\/bfnrt]|u[0-9a-fa-f]{4})/g, w = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[ee][+\-]?\d+)?/g, i = /(?:^|:|,)(?:\s*\[)+/g, l = /(webkit)[ \/]([\w.]+)/, g = /(opera)(?:.*version)?[ \/]([\w.]+)/, i = /(msie) ([\w.]+)/, n = /(mozilla)(?:.*? rv:([\w.]+))?/, m = navigator.useragent, p = false, q = [], u, y = object.prototype.tostring, f = object.prototype.hasownproperty, m = array.prototype.push, n = array.prototype.slice, o = string.prototype.trim, d = array.prototype.indexof, r = {}; b.fn = b.prototype = { init: function (j, s) { var v, z, h; if (!j) return this; if (j.nodetype) { this.context = this[0] = j; this.length = 1; return this } if (j === "body" && !s && t.body) { this.context = t; this[0] = t.body; this.selector = "body"; this.length = 1; return this } if (typeof j === "string") if ((v = h.exec(j)) && (v[1] || !s)) if (v[1]) { h = s ? s.ownerdocument || s : t; if (z = a.exec(j)) if (b.isplainobject(s)) { j = [t.createelement(z[1])]; b.fn.attr.call(j, s, true) } else j = [h.createelement(z[1])]; else { z = b.buildfragment([v[1]], [h]); j = (z.cacheable ? z.fragment.clonenode(true) : z.fragment).childnodes } return b.merge(this, j) } else { if ((z = t.getelementbyid(v[2])) && z.parentnode) { if (z.id !== v[2]) return f.find(j); this.length = 1; this[0] = z } this.context = t; this.selector = j; return this } else if (!s && !x.test(j)) { this.selector = j; this.context = t; j = t.getelementsbytagname(j); return b.merge(this, j) } else return !s || s.jquery ? (s || f).find(j) : b(s).find(j); else if (b.isfunction(j)) return f.ready(j); if (j.selector !== b) { this.selector = j.selector; this.context = j.context } return b.makearray(j, this) }, selector: "", jquery: "1.4.4", length: 0, size: function () { return this.length }, toarray: function () { return n.call(this, 0) }, get: function (j) { return j == null ? this.toarray() : j < 0 ? this.slice(j)[0] : this[j] }, pushstack: function (j, s, v) { var z = b(); b.isarray(j) ? m.apply(z, j) : b.merge(z, j); z.prevobject = this; z.context = this.context; if (s === "find") z.selector = this.selector + (this.selector ? " " : "") + v; else if (s) z.selector = this.selector + "." + s + "(" + v + ")"; return z }, each: function (j, s) { return b.each(this, j, s) }, ready: function (j) { b.bindready(); if (b.isready) j.call(t, b); else q && q.push(j); return this }, eq: function (j) { return j === -1 ? this.slice(j) : this.slice(j, +j + 1) }, first: function () { return this.eq(0) }, last: function () { return this.eq(-1) }, slice: function () { return this.pushstack(n.apply(this, arguments), "slice", n.call(arguments).join(",")) }, map: function (j) { return this.pushstack(b.map(this, function (s, v) { return j.call(s, v, s) })) }, end: function () { return this.prevobject || b(null) }, push: m, sort: [].sort, splice: [].splice }; b.fn.init.prototype = b.fn; b.extend = b.fn.extend = function () { var j, s, v, z, h, g = arguments[0] || {}, k = 1, q = arguments.length, ga = false; if (typeof g === "boolean") { ga = g; g = arguments[1] || {}; k = 2 } if (typeof g !== "object" && !b.isfunction(g)) g = {}; if (q === k) { g = this; --k } for (; k < q; k++) if ((j = arguments[k]) != null) for (s in j) { v = g[s]; z = j[s]; if (g !== z) if (ga && z && (b.isplainobject(z) || (h = b.isarray(z)))) { if (h) { h = false; v = v && b.isarray(v) ? v : [] } else v = v && b.isplainobject(v) ? v : {}; g[s] = b.extend(ga, v, z) } else if (z !== b) g[s] = z } return g }; b.extend({ noconflict: function (j) { e.$ = e; if (j) e.jquery = d; return b }, isready: false, readywait: 1, ready: function (j) { j === true && b.readywait--; if (!b.readywait || j !== true && !b.isready) { if (!t.body) return settimeout(b.ready, 1); b.isready = true; if (!(j !== true && --b.readywait > 0)) if (q) { var s = 0, v = q; for (q = null; j = v[s++];) j.call(t, b); b.fn.trigger && b(t).trigger("ready").unbind("ready") } } }, bindready: function () { if (!p) { p = true; if (t.readystate === "complete") return settimeout(b.ready, 1); if (t.addeventlistener) { t.addeventlistener("domcontentloaded", u, false); e.addeventlistener("load", b.ready, false) } else if (t.attachevent) { t.attachevent("onreadystatechange", u); e.attachevent("onload", b.ready); var j = false; try { j = e.frameelement == null } catch (s) { } t.documentelement.doscroll && j && a() } } }, isfunction: function (j) { return b.type(j) === "function" }, isarray: array.isarray || function (j) { return b.type(j) === "array" }, iswindow: function (j) { return j && typeof j === "object" && "setinterval" in j }, isnan: function (j) { return j == null || !r.test(j) || isnan(j) }, type: function (j) { return j == null ? string(j) : r[y.call(j)] || "object" }, isplainobject: function (j) { if (!j || b.type(j) !== "object" || j.nodetype || b.iswindow(j)) return false; if (j.constructor && !f.call(j, "constructor") && !f.call(j.constructor.prototype, "isprototypeof")) return false; for (var s in j); return s === b || f.call(j, s) }, isemptyobject: function (j) { for (var s in j) return false; return true }, error: function (j) { throw j; }, parsejson: function (j) { if (typeof j !== "string" || !j) return null; j = b.trim(j); if (c.test(j.replace(j, "@").replace(w, "]").replace(i, ""))) return e.json && e.json.parse ? e.json.parse(j) : (new function("return " + j))(); else b.error("invalid json: " + j) }, noop: function () { }, globaleval: function (j) { if (j && l.test(j)) { var s = t.getelementsbytagname("head")[0] || t.documentelement, v = t.createelement("script"); v.type = "text/javascript"; if (b.support.scripteval) v.appendchild(t.createtextnode(j)); else v.text = j; s.insertbefore(v, s.firstchild); s.removechild(v) } }, nodename: function (j, s) { return j.nodename && j.nodename.touppercase() === s.touppercase() }, each: function (j, s, v) { var z, h = 0, g = j.length, k = g === b || b.isfunction(j); if (v) if (k) for (z in j) { if (s.apply(j[z], v) === false) break } else for (; h < g;) { if (s.apply(j[h++], v) === false) break } else if (k) for (z in j) { if (s.call(j[z], z, j[z]) === false) break } else for (v = j[0]; h < g && s.call(v, h, v) !== false; v = j[++h]); return j }, trim: o ? function (j) { return j == null ? "" : o.call(j) } : function (j) { return j == null ? "" : j.tostring().replace(k, "").replace(o, "") }, makearray: function (j, s) { var v = s || []; if (j != null) { var z = b.type(j); j.length == null || z === "string" || z === "function" || z === "regexp" || b.iswindow(j) ? m.call(v, j) : b.merge(v, j) } return v }, inarray: function (j, s) { if (s.indexof) return s.indexof(j); for (var v = 0, z = s.length; v < z; v++) if (s[v] === j) return v; return -1 }, merge: function (j, s) { var v = j.length, z = 0; if (typeof s.length === "number") for (var h = s.length; z < h; z++) j[v++] = s[z]; else for (; s[z] !== b;) j[v++] = s[z++]; j.length = v; return j }, grep: function (j, s, v) { var z = [], h; v = !!v; for (var g = 0, k = j.length; g < k; g++) { h = !!s(j[g], g); v !== h && z.push(j[g]) } return z }, map: function (j, s, v) { for (var z = [], h, g = 0, k = j.length; g < k; g++) { h = s(j[g], g, v); if (h != null) z[z.length] = h } return z.concat.apply([], z) }, guid: 1, proxy: function (j, s, v) { if (arguments.length === 2) if (typeof s === "string") { v = j; j = v[s]; s = b } else if (s && !b.isfunction(s)) { v = s; s = b } if (!s && j) s = function () { return j.apply(v || this, arguments) }; if (j) s.guid = j.guid = j.guid || s.guid || b.guid++; return s }, access: function (j, s, v, z, h, g) { var k = j.length; if (typeof s === "object") { for (var q in s) b.access(j, q, s[q], z, h, v); return j } if (v !== b) { z = !g && z && b.isfunction(v); for (q = 0; q < k; q++) h(j[q], s, z ? v.call(j[q], q, h(j[q], s)) : v, g); return j } return k ? h(j[0], s) : b }, now: function () { return (new date).gettime() }, uamatch: function (j) { j = j.tolowercase(); j = l.exec(j) || g.exec(j) || i.exec(j) || j.indexof("compatible") < 0 && n.exec(j) || []; return { browser: j[1] || "", version: j[2] || "0" } }, browser: {} }); b.each("boolean number string function array date regexp object".split(" "), function (j, s) { r["[object " + s + "]"] = s.tolowercase() }); m = b.uamatch(m); if (m.browser) { b.browser[m.browser] = true; b.browser.version = m.version } if (b.browser.webkit) b.browser.safari = true; if (d) b.inarray = function (j, s) { return d.call(s, j) }; if (!/\s/.test("\u00a0")) { k = /^[\s\xa0]+/; o = /[\s\xa0]+$/ } f = b(t); if (t.addeventlistener) u = function () { t.removeeventlistener("domcontentloaded", u, false); b.ready() }; else if (t.attachevent) u = function () { if (t.readystate === "complete") { t.detachevent("onreadystatechange", u); b.ready() } }; return e.jquery = e.$ = b }(); (function () { c.support = {}; var a = t.documentelement, b = t.createelement("script"), d = t.createelement("div"), e = "script" + c.now(); d.style.display = "none"; d.innerhtml = "
a"; var f = d.getelementsbytagname("*"), h = d.getelementsbytagname("a")[0], l = t.createelement("select"), k = l.appendchild(t.createelement("option")); if (!(!f || !f.length || !h)) { c.support = { leadingwhitespace: d.firstchild.nodetype === 3, tbody: !d.getelementsbytagname("tbody").length, htmlserialize: !!d.getelementsbytagname("link").length, style: /red/.test(h.getattribute("style")), hrefnormalized: h.getattribute("href") === "/a", opacity: /^0.55$/.test(h.style.opacity), cssfloat: !!h.style.cssfloat, checkon: d.getelementsbytagname("input")[0].value === "on", optselected: k.selected, deleteexpando: true, optdisabled: false, checkclone: false, scripteval: false, nocloneevent: true, boxmodel: null, inlineblockneedslayout: false, shrinkwrapblocks: false, reliablehiddenoffsets: true }; l.disabled = true; c.support.optdisabled = !k.disabled; b.type = "text/javascript"; try { b.appendchild(t.createtextnode("window." + e + "=1;")) } catch (o) { } a.insertbefore(b, a.firstchild); if (e[e]) { c.support.scripteval = true; delete e[e] } try { delete b.test } catch (x) { c.support.deleteexpando = false } a.removechild(b); if (d.attachevent && d.fireevent) { d.attachevent("onclick", function r() { c.support.nocloneevent = false; d.detachevent("onclick", r) }); d.clonenode(true).fireevent("onclick") } d = t.createelement("div"); d.innerhtml = ""; a = t.createdocumentfragment(); a.appendchild(d.firstchild); c.support.checkclone = a.clonenode(true).clonenode(true).lastchild.checked; c(function () { var r = t.createelement("div"); r.style.width = r.style.paddingleft = "1px"; t.body.appendchild(r); c.boxmodel = c.support.boxmodel = r.offsetwidth === 2; if ("zoom" in r.style) { r.style.display = "inline"; r.style.zoom = 1; c.support.inlineblockneedslayout = r.offsetwidth === 2; r.style.display = ""; r.innerhtml = "
"; c.support.shrinkwrapblocks = r.offsetwidth !== 2 } r.innerhtml = "
t
"; var a = r.getelementsbytagname("td"); c.support.reliablehiddenoffsets = a[0].offsetheight === 0; a[0].style.display = ""; a[1].style.display = "none"; c.support.reliablehiddenoffsets = c.support.reliablehiddenoffsets && a[0].offsetheight === 0; r.innerhtml = ""; t.body.removechild(r).style.display = "none" }); a = function (r) { var a = t.createelement("div"); r = "on" + r; var c = r in a; if (!c) { a.setattribute(r, "return;"); c = typeof a[r] === "function" } return c }; c.support.submitbubbles = a("submit"); c.support.changebubbles = a("change"); a = b = d = f = h = null } })(); var ra = {}, ja = /^(?:\{.*\}|\[.*\])$/; c.extend({ cache: {}, uuid: 0, expando: "jquery" + c.now(), nodata: { embed: true, object: "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000", applet: true }, data: function (a, b, d) { if (c.acceptdata(a)) { a = a == e ? ra : a; var e = a.nodetype, f = e ? a[c.expando] : null, h = c.cache; if (!(e && !f && typeof b === "string" && d === b)) { if (e) f || (a[c.expando] = f = ++c.uuid); else h = a; if (typeof b === "object") if (e) h[f] = c.extend(h[f], b); else c.extend(h, b); else if (e && !h[f]) h[f] = {}; a = e ? h[f] : h; if (d !== b) a[b] = d; return typeof b === "string" ? a[b] : a } } }, removedata: function (a, b) { if (c.acceptdata(a)) { a = a == e ? ra : a; var d = a.nodetype, e = d ? a[c.expando] : a, f = c.cache, h = d ? f[e] : e; if (b) { if (h) { delete h[b]; d && c.isemptyobject(h) && c.removedata(a) } } else if (d && c.support.deleteexpando) delete a[c.expando]; else if (a.removeattribute) a.removeattribute(c.expando); else if (d) delete f[e]; else for (var l in a) delete a[l] } }, acceptdata: function (a) { if (a.nodename) { var b = c.nodata[a.nodename.tolowercase()]; if (b) return !(b === true || a.getattribute("classid") !== b) } return true } }); c.fn.extend({ data: function (a, b) { var d = null; if (typeof a === "undefined") { if (this.length) { var e = this[0].attributes, f; d = c.data(this[0]); for (var h = 0, l = e.length; h < l; h++) { f = e[h].name; if (f.indexof("data-") === 0) { f = f.substr(5); ka(this[0], f, d[f]) } } } return d } else if (typeof a === "object") return this.each(function () { c.data(this, a) }); var k = a.split("."); k[1] = k[1] ? "." + k[1] : ""; if (b === b) { d = this.triggerhandler("getdata" + k[1] + "!", [k[0]]); if (d === b && this.length) { d = c.data(this[0], a); d = ka(this[0], a, d) } return d === b && k[1] ? this.data(k[0]) : d } else return this.each(function () { var o = c(this), x = [k[0], b]; o.triggerhandler("setdata" + k[1] + "!", x); c.data(this, a, b); o.triggerhandler("changedata" + k[1] + "!", x) }) }, removedata: function (a) { return this.each(function () { c.removedata(this, a) }) } }); c.extend({ queue: function (a, b, d) { if (a) { b = (b || "fx") + "queue"; var e = c.data(a, b); if (!d) return e || []; if (!e || c.isarray(d)) e = c.data(a, b, c.makearray(d)); else e.push(d); return e } }, dequeue: function (a, b) { b = b || "fx"; var d = c.queue(a, b), e = d.shift(); if (e === "inprogress") e = d.shift(); if (e) { b === "fx" && d.unshift("inprogress"); e.call(a, function () { c.dequeue(a, b) }) } } }); c.fn.extend({ queue: function (a, b) { if (typeof a !== "string") { b = a; a = "fx" } if (b === b) return c.queue(this[0], a); return this.each(function () { var d = c.queue(this, a, b); a === "fx" && d[0] !== "inprogress" && c.dequeue(this, a) }) }, dequeue: function (a) { return this.each(function () { c.dequeue(this, a) }) }, delay: function (a, b) { a = c.fx ? c.fx.speeds[a] || a : a; b = b || "fx"; return this.queue(b, function () { var d = this; settimeout(function () { c.dequeue(d, b) }, a) }) }, clearqueue: function (a) { return this.queue(a || "fx", []) } }); var sa = /[\n\t]/g, ha = /\s+/, sa = /\r/g, ta = /^(?:href|src|style)$/, ua = /^(?:button|input)$/i, va = /^(?:button|input|object|select|textarea)$/i, wa = /^a(?:rea)?$/i, ta = /^(?:radio|checkbox)$/i; c.props = { "for": "htmlfor", "class": "classname", readonly: "readonly", maxlength: "maxlength", cellspacing: "cellspacing", rowspan: "rowspan", colspan: "colspan", tabindex: "tabindex", usemap: "usemap", frameborder: "frameborder" }; c.fn.extend({ attr: function (a, b) { return c.access(this, a, b, true, c.attr) }, removeattr: function (a) { return this.each(function () { c.attr(this, a, ""); this.nodetype === 1 && this.removeattribute(a) }) }, addclass: function (a) { if (c.isfunction(a)) return this.each(function (x) { var r = c(this); r.addclass(a.call(this, x, r.attr("class"))) }); if (a && typeof a === "string") for (var b = (a || "").split(ha), d = 0, e = this.length; d < e; d++) { var f = this[d]; if (f.nodetype === 1) if (f.classname) { for (var h = " " + f.classname + " ", l = f.classname, k = 0, o = b.length; k < o; k++) if (h.indexof(" " + b[k] + " ") < 0) l += " " + b[k]; f.classname = c.trim(l) } else f.classname = a } return this }, removeclass: function (a) { if (c.isfunction(a)) return this.each(function (o) { var x = c(this); x.removeclass(a.call(this, o, x.attr("class"))) }); if (a && typeof a === "string" || a === b) for (var b = (a || "").split(ha), d = 0, e = this.length; d < e; d++) { var f = this[d]; if (f.nodetype === 1 && f.classname) if (a) { for (var h = (" " + f.classname + " ").replace(sa, " "), l = 0, k = b.length; l < k; l++) h = h.replace(" " + b[l] + " ", " "); f.classname = c.trim(h) } else f.classname = "" } return this }, toggleclass: function (a, b) { var d = typeof a, e = typeof b === "boolean"; if (c.isfunction(a)) return this.each(function (f) { var h = c(this); h.toggleclass(a.call(this, f, h.attr("class"), b), b) }); return this.each(function () { if (d === "string") for (var f, h = 0, l = c(this), k = b, o = a.split(ha) ; f = o[h++];) { k = e ? k : !l.hasclass(f); l[k ? "addclass" : "removeclass"](f) } else if (d === "undefined" || d === "boolean") { this.classname && c.data(this, "__classname__", this.classname); this.classname = this.classname || a === false ? "" : c.data(this, "__classname__") || "" } }) }, hasclass: function (a) { a = " " + a + " "; for (var b = 0, d = this.length; b < d; b++) if ((" " + this[b].classname + " ").replace(sa, " ").indexof(a) > -1) return true; return false }, val: function (a) { if (!arguments.length) { var b = this[0]; if (b) { if (c.nodename(b, "option")) { var d = b.attributes.value; return !d || d.specified ? b.value : b.text } if (c.nodename(b, "select")) { var e = b.selectedindex; d = []; var f = b.options; b = b.type === "select-one"; if (e < 0) return null; var h = b ? e : 0; for (e = b ? e + 1 : f.length; h < e; h++) { var l = f[h]; if (l.selected && (c.support.optdisabled ? !l.disabled : l.getattribute("disabled") === null) && (!l.parentnode.disabled || !c.nodename(l.parentnode, "optgroup"))) { a = c(l).val(); if (b) return a; d.push(a) } } return d } if (ta.test(b.type) && !c.support.checkon) return b.getattribute("value") === null ? "on" : b.value; return (b.value || "").replace(sa, "") } return b } var k = c.isfunction(a); return this.each(function (o) { var x = c(this), r = a; if (this.nodetype === 1) { if (k) r = a.call(this, o, x.val()); if (r == null) r = ""; else if (typeof r === "number") r += ""; else if (c.isarray(r)) r = c.map(r, function (c) { return c == null ? "" : c + "" }); if (c.isarray(r) && ta.test(this.type)) this.checked = c.inarray(x.val(), r) >= 0; else if (c.nodename(this, "select")) { var a = c.makearray(r); c("option", this).each(function () { this.selected = c.inarray(c(this).val(), a) >= 0 }); if (!a.length) this.selectedindex = -1 } else this.value = r } }) } }); c.extend({ attrfn: { val: true, css: true, html: true, text: true, data: true, width: true, height: true, offset: true }, attr: function (a, b, d, e) { if (!a || a.nodetype === 3 || a.nodetype === 8) return b; if (e && b in c.attrfn) return c(a)[b](d); e = a.nodetype !== 1 || !c.isxmldoc(a); var f = d !== b; b = e && c.props[b] || b; var h = ta.test(b); if ((b in a || a[b] !== b) && e && !h) { if (f) { b === "type" && ua.test(a.nodename) && a.parentnode && c.error("type property can't be changed"); if (d === null) a.nodetype === 1 && a.removeattribute(b); else a[b] = d } if (c.nodename(a, "form") && a.getattributenode(b)) return a.getattributenode(b).nodevalue; if (b === "tabindex") return (b = a.getattributenode("tabindex")) && b.specified ? b.value : va.test(a.nodename) || wa.test(a.nodename) && a.href ? 0 : b; return a[b] } if (!c.support.style && e && b === "style") { if (f) a.style.csstext = "" + d; return a.style.csstext } f && a.setattribute(b, "" + d); if (!a.attributes[b] && a.hasattribute && !a.hasattribute(b)) return b; a = !c.support.hrefnormalized && e && h ? a.getattribute(b, 2) : a.getattribute(b); return a === null ? b : a } }); var x = /\.(.*)$/, ia = /^(?:textarea|input|select)$/i, la = /\./g, ma = / /g, xa = /[^\w\s.|`]/g, ya = function (a) { return a.replace(xa, "\\$&") }, ua = { focusin: 0, focusout: 0 }; c.event = { add: function (a, b, d, e) { if (!(a.nodetype === 3 || a.nodetype === 8)) { if (c.iswindow(a) && a !== e && !a.frameelement) a = e; if (d === false) d = u; else if (!d) return; var f, h; if (d.handler) { f = d; d = f.handler } if (!d.guid) d.guid = c.guid++; if (h = c.data(a)) { var l = a.nodetype ? "events" : "__events__", k = h[l], o = h.handle; if (typeof k === "function") { o = k.handle; k = k.events } else if (!k) { a.nodetype || (h[l] = h = function () { }); h.events = k = {} } if (!o) h.handle = o = function () { return typeof c !== "undefined" && !c.event.triggered ? c.event.handle.apply(o.elem, arguments) : b }; o.elem = a; b = b.split(" "); for (var x = 0, r; l = b[x++];) { h = f ? c.extend({}, f) : { handler: d, data: e }; if (l.indexof(".") > -1) { r = l.split("."); l = r.shift(); h.namespace = r.slice(0).sort().join(".") } else { r = []; h.namespace = "" } h.type = l; if (!h.guid) h.guid = d.guid; var a = k[l], c = c.event.special[l] || {}; if (!a) { a = k[l] = []; if (!c.setup || c.setup.call(a, e, r, o) === false) if (a.addeventlistener) a.addeventlistener(l, o, false); else a.attachevent && a.attachevent("on" + l, o) } if (c.add) { c.add.call(a, h); if (!h.handler.guid) h.handler.guid = d.guid } a.push(h); c.event.global[l] = true } a = null } } }, global: {}, remove: function (a, b, d, e) { if (!(a.nodetype === 3 || a.nodetype === 8)) { if (d === false) d = u; var f, h, l = 0, k, o, x, r, a, c, j = a.nodetype ? "events" : "__events__", w = c.data(a), i = w && w[j]; if (w && i) { if (typeof i === "function") { w = i; i = i.events } if (b && b.type) { d = b.handler; b = b.type } if (!b || typeof b === "string" && b.charat(0) === ".") { b = b || ""; for (f in i) c.event.remove(a, f + b) } else { for (b = b.split(" ") ; f = b[l++];) { r = f; k = f.indexof(".") < 0; o = []; if (!k) { o = f.split("."); f = o.shift(); x = regexp("(^|\\.)" + c.map(o.slice(0).sort(), ya).join("\\.(?:.*\\.)?") + "(\\.|$)") } if (a = i[f]) if (d) { r = c.event.special[f] || {}; for (h = e || 0; h < a.length; h++) { c = a[h]; if (d.guid === c.guid) { if (k || x.test(c.namespace)) { e == null && a.splice(h--, 1); r.remove && r.remove.call(a, c) } if (e != null) break } } if (a.length === 0 || e != null && a.length === 1) { if (!r.teardown || r.teardown.call(a, o) === false) c.removeevent(a, f, w.handle); delete i[f] } } else for (h = 0; h < a.length; h++) { c = a[h]; if (k || x.test(c.namespace)) { c.event.remove(a, r, c.handler, h); a.splice(h--, 1) } } } if (c.isemptyobject(i)) { if (b = w.handle) b.elem = null; delete w.events; delete w.handle; if (typeof w === "function") c.removedata(a, j); else c.isemptyobject(w) && c.removedata(a) } } } } }, trigger: function (a, b, d, e) { var f = a.type || a; if (!e) { a = typeof a === "object" ? a[c.expando] ? a : c.extend(c.event(f), a) : c.event(f); if (f.indexof("!") >= 0) { a.type = f = f.slice(0, -1); a.exclusive = true } if (!d) { a.stoppropagation(); c.event.global[f] && c.each(c.cache, function () { this.events && this.events[f] && c.event.trigger(a, b, this.handle.elem) }) } if (!d || d.nodetype === 3 || d.nodetype === 8) return b; a.result = b; a.target = d; b = c.makearray(b); b.unshift(a) } a.currenttarget = d; (e = d.nodetype ? c.data(d, "handle") : (c.data(d, "__events__") || {}).handle) && e.apply(d, b); e = d.parentnode || d.ownerdocument; try { if (!(d && d.nodename && c.nodata[d.nodename.tolowercase()])) if (d["on" + f] && d["on" + f].apply(d, b) === false) { a.result = false; a.preventdefault() } } catch (h) { } if (!a.ispropagationstopped() && e) c.event.trigger(a, b, e, true); else if (!a.isdefaultprevented()) { var l; e = a.target; var k = f.replace(x, ""), o = c.nodename(e, "a") && k === "click", x = c.event.special[k] || {}; if ((!x._default || x._default.call(d, a) === false) && !o && !(e && e.nodename && c.nodata[e.nodename.tolowercase()])) { try { if (e[k]) { if (l = e["on" + k]) e["on" + k] = null; c.event.triggered = true; e[k]() } } catch (r) { } if (l) e["on" + k] = l; c.event.triggered = false } } }, handle: function (a) { var b, d, e, f; d = []; var h = c.makearray(arguments); a = h[0] = c.event.fix(a || e.event); a.currenttarget = this; b = a.type.indexof(".") < 0 && !a.exclusive; if (!b) { e = a.type.split("."); a.type = e.shift(); d = e.slice(0).sort(); e = regexp("(^|\\.)" + d.join("\\.(?:.*\\.)?") + "(\\.|$)") } a.namespace = a.namespace || d.join("."); f = c.data(this, this.nodetype ? "events" : "__events__"); if (typeof f === "function") f = f.events; d = (f || {})[a.type]; if (f && d) { d = d.slice(0); f = 0; for (var l = d.length; f < l; f++) { var k = d[f]; if (b || e.test(k.namespace)) { a.handler = k.handler; a.data = k.data; a.handleobj = k; k = k.handler.apply(this, h); if (k !== b) { a.result = k; if (k === false) { a.preventdefault(); a.stoppropagation() } } if (a.isimmediatepropagationstopped()) break } } } return a.result }, props: "altkey attrchange attrname bubbles button cancelable charcode clientx clienty ctrlkey currenttarget data detail eventphase fromelement handler keycode layerx layery metakey newvalue offsetx offsety pagex pagey prevvalue relatednode relatedtarget screenx screeny shiftkey srcelement target toelement view wheeldelta which".split(" "), fix: function (a) { if (a[c.expando]) return a; var b = a; a = c.event(b); for (var d = this.props.length, e; d;) { e = this.props[--d]; a[e] = b[e] } if (!a.target) a.target = a.srcelement || t; 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) { b = t.documentelement; d = t.body; a.pagex = a.clientx + (b && b.scrollleft || d && d.scrollleft || 0) - (b && b.clientleft || d && d.clientleft || 0); a.pagey = a.clienty + (b && b.scrolltop || d && d.scrolltop || 0) - (b && b.clienttop || d && d.clienttop || 0) } if (a.which == null && (a.charcode != null || a.keycode != null)) a.which = a.charcode != null ? a.charcode : a.keycode; if (!a.metakey && a.ctrlkey) a.metakey = a.ctrlkey; if (!a.which && a.button !== b) a.which = a.button & 1 ? 1 : a.button & 2 ? 3 : a.button & 4 ? 2 : 0; return a }, guid: 1e8, proxy: c.proxy, special: { ready: { setup: c.bindready, teardown: c.noop }, live: { add: function (a) { c.event.add(this, y(a.origtype, a.selector), c.extend({}, a, { handler: ka, guid: a.handler.guid })) }, remove: function (a) { c.event.remove(this, y(a.origtype, a.selector), a) } }, beforeunload: { setup: function (a, b, d) { if (c.iswindow(this)) this.onbeforeunload = d }, teardown: function (a, b) { if (this.onbeforeunload === b) this.onbeforeunload = null } } } }; c.removeevent = t.removeeventlistener ? function (a, b, d) { a.removeeventlistener && a.removeeventlistener(b, d, false) } : function (a, b, d) { a.detachevent && a.detachevent("on" + b, d) }; c.event = function (a) { if (!this.preventdefault) return new c.event(a); if (a && a.type) { this.originalevent = a; this.type = a.type } else this.type = a; this.timestamp = c.now(); this[c.expando] = true }; c.event.prototype = { preventdefault: function () { this.isdefaultprevented = ca; var a = this.originalevent; if (a) if (a.preventdefault) a.preventdefault(); else a.returnvalue = false }, stoppropagation: function () { this.ispropagationstopped = ca; var a = this.originalevent; if (a) { a.stoppropagation && a.stoppropagation(); a.cancelbubble = true } }, stopimmediatepropagation: function () { this.isimmediatepropagationstopped = ca; this.stoppropagation() }, isdefaultprevented: u, ispropagationstopped: u, isimmediatepropagationstopped: u }; var va = function (a) { var b = a.relatedtarget; try { for (; b && b !== this;) b = b.parentnode; if (b !== this) { a.type = a.data; c.event.handle.apply(this, arguments) } } catch (d) { } }, wa = function (a) { a.type = a.data; c.event.handle.apply(this, arguments) }; c.each({ mouseenter: "mouseover", mouseleave: "mouseout" }, function (a, b) { c.event.special[a] = { setup: function (d) { c.event.add(this, b, d && d.selector ? wa : va, a) }, teardown: function (d) { c.event.remove(this, b, d && d.selector ? wa : va) } } }); if (!c.support.submitbubbles) c.event.special.submit = { setup: function () { if (this.nodename.tolowercase() !== "form") { c.event.add(this, "click.specialsubmit", function (a) { var b = a.target, d = b.type; if ((d === "submit" || d === "image") && c(b).closest("form").length) { a.livefired = b; return la("submit", this, arguments) } }); c.event.add(this, "keypress.specialsubmit", function (a) { var b = a.target, d = b.type; if ((d === "text" || d === "password") && c(b).closest("form").length && a.keycode === 13) { a.livefired = b; return la("submit", this, arguments) } }) } else return false }, teardown: function () { c.event.remove(this, ".specialsubmit") } }; if (!c.support.changebubbles) { var v, xa = function (a) { var b = a.type, d = a.value; if (b === "radio" || b === "checkbox") d = a.checked; else if (b === "select-multiple") d = a.selectedindex > -1 ? c.map(a.options, function (e) { return e.selected }).join("-") : ""; else if (a.nodename.tolowercase() === "select") d = a.selectedindex; return d }, z = function (a, b) { var d = a.target, e, f; if (!(!ia.test(d.nodename) || d.readonly)) { e = c.data(d, "_change_data"); f = xa(d); if (a.type !== "focusout" || d.type !== "radio") c.data(d, "_change_data", f); if (!(e === b || f === e)) if (e != null || f) { a.type = "change"; a.livefired = b; return c.event.trigger(a, b, d) } } }; c.event.special.change = { filters: { focusout: z, beforedeactivate: z, click: function (a) { var b = a.target, d = b.type; if (d === "radio" || d === "checkbox" || b.nodename.tolowercase() === "select") return z.call(this, a) }, keydown: function (a) { var b = a.target, d = b.type; if (a.keycode === 13 && b.nodename.tolowercase() !== "textarea" || a.keycode === 32 && (d === "checkbox" || d === "radio") || d === "select-multiple") return z.call(this, a) }, beforeactivate: function (a) { a = a.target; c.data(a, "_change_data", xa(a)) } }, setup: function () { if (this.type === "file") return false; for (var a in v) c.event.add(this, a + ".specialchange", v[a]); return ia.test(this.nodename) }, teardown: function () { c.event.remove(this, ".specialchange"); return ia.test(this.nodename) } }; v = c.event.special.change.filters; v.focus = v.beforeactivate } t.addeventlistener && c.each({ focus: "focusin", blur: "focusout" }, function (a, b) { function d(e) { e = c.event.fix(e); e.type = b; return c.event.trigger(e, null, e.target) } c.event.special[b] = { setup: function () { ua[b]++ === 0 && t.addeventlistener(a, d, true) }, teardown: function () { --ua[b] === 0 && t.removeeventlistener(a, d, true) } } }); c.each(["bind", "one"], function (a, b) { c.fn[b] = function (d, e, f) { if (typeof d === "object") { for (var h in d) this[b](h, e, d[h], f); return this } if (c.isfunction(e) || e === false) { f = e; e = b } var l = b === "one" ? c.proxy(f, function (o) { c(this).unbind(o, l); return f.apply(this, arguments) }) : f; if (d === "unload" && b !== "one") this.one(d, e, f); else { h = 0; for (var k = this.length; h < k; h++) c.event.add(this[h], d, l, e) } return this } }); c.fn.extend({ unbind: function (a, b) { if (typeof a === "object" && !a.preventdefault) for (var d in a) this.unbind(d, a[d]); else { d = 0; for (var e = this.length; d < e; d++) c.event.remove(this[d], a, b) } return this }, delegate: function (a, b, d, e) { return this.live(b, d, e, a) }, undelegate: function (a, b, d) { return arguments.length === 0 ? this.unbind("live") : this.die(b, null, d, a) }, trigger: function (a, b) { return this.each(function () { c.event.trigger(a, b, this) }) }, triggerhandler: function (a, b) { if (this[0]) { var d = c.event(a); d.preventdefault(); d.stoppropagation(); c.event.trigger(d, b, this[0]); return d.result } }, toggle: function (a) { for (var b = arguments, d = 1; d < b.length;) c.proxy(a, b[d++]); return this.click(c.proxy(a, function (e) { var f = (c.data(this, "lasttoggle" + a.guid) || 0) % d; c.data(this, "lasttoggle" + a.guid, f + 1); e.preventdefault(); return b[f].apply(this, arguments) || false })) }, hover: function (a, b) { return this.mouseenter(a).mouseleave(b || a) } }); var ya = { focus: "focusin", blur: "focusout", mouseenter: "mouseover", mouseleave: "mouseout" }; c.each(["live", "die"], function (a, b) { c.fn[b] = function (d, e, f, h) { var l, k = 0, o, x, r = h || this.selector; h = h ? this : c(this.context); if (typeof d === "object" && !d.preventdefault) { for (l in d) h[b](l, e, d[l], r); return this } if (c.isfunction(e)) { f = e; e = b } for (d = (d || "").split(" ") ; (l = d[k++]) != null;) { o = x.exec(l); x = ""; if (o) { x = o[0]; l = l.replace(x, "") } if (l === "hover") d.push("mouseenter" + x, "mouseleave" + x); else { o = l; if (l === "focus" || l === "blur") { d.push(ya[l] + x); l += x } else l = (ya[l] || l) + x; if (b === "live") { x = 0; for (var a = h.length; x < a; x++) c.event.add(h[x], "live." + y(l, r), { data: e, selector: r, handler: f, origtype: l, orighandler: f, pretype: o }) } else h.unbind("live." + y(l, r), f) } } return this } }); c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "), function (a, b) { c.fn[b] = function (d, e) { if (e == null) { e = d; d = null } return arguments.length > 0 ? this.bind(b, d, e) : this.trigger(b) }; if (c.attrfn) c.attrfn[b] = true }); e.attachevent && !e.addeventlistener && c(e).bind("unload", function () { for (var a in c.cache) if (c.cache[a].handle) try { c.event.remove(c.cache[a].handle.elem) } catch (b) { } }); (function () { function a(g, i, n, m, p, q) { p = 0; for (var u = m.length; p < u; p++) { var y = m[p]; if (y) { var f = false; for (y = y[g]; y;) { if (y.sizcache === n) { f = m[y.sizset]; break } if (y.nodetype === 1 && !q) { y.sizcache = n; y.sizset = p } if (y.nodename.tolowercase() === i) { f = y; break } y = y[g] } m[p] = f } } } function b(g, i, n, m, p, q) { p = 0; for (var u = m.length; p < u; p++) { var y = m[p]; if (y) { var f = false; for (y = y[g]; y;) { if (y.sizcache === n) { f = m[y.sizset]; break } if (y.nodetype === 1) { if (!q) { y.sizcache = n; y.sizset = p } if (typeof i !== "string") { if (y === i) { f = true; break } } else if (k.filter(i, [y]).length > 0) { f = y; break } } y = y[g] } m[p] = f } } } var d = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, e = 0, f = object.prototype.tostring, h = false, l = true;[0, 0].sort(function () { l = false; return 0 }); var k = function (g, i, n, m) { n = n || []; var p = i = i || t; if (i.nodetype !== 1 && i.nodetype !== 9) return []; if (!g || typeof g !== "string") return n; var q, u, y, f, m, n = true, o = k.isxml(i), d = [], r = g; do { d.exec(""); if (q = d.exec(r)) { r = q[3]; d.push(q[1]); if (q[2]) { f = q[3]; break } } } while (q); if (d.length > 1 && x.exec(g)) if (d.length === 2 && o.relative[d[0]]) u = l(d[0] + d[1], i); else for (u = o.relative[d[0]] ? [i] : k(d.shift(), i) ; d.length;) { g = d.shift(); if (o.relative[g]) g += d.shift(); u = l(g, u) } else { if (!m && d.length > 1 && i.nodetype === 9 && !o && o.match.id.test(d[0]) && !o.match.id.test(d[d.length - 1])) { q = k.find(d.shift(), i, o); i = q.expr ? k.filter(q.expr, q.set)[0] : q.set[0] } if (i) { q = m ? { expr: d.pop(), set: c(m) } : k.find(d.pop(), d.length === 1 && (d[0] === "~" || d[0] === "+") && i.parentnode ? i.parentnode : i, o); u = q.expr ? k.filter(q.expr, q.set) : q.set; if (d.length > 0) y = c(u); else n = false; for (; d.length;) { q = m = d.pop(); if (o.relative[m]) q = d.pop(); else m = ""; if (q == null) q = i; o.relative[m](y, q, o) } } else y = [] } y || (y = u); y || k.error(m || g); if (f.call(y) === "[object array]") if (n) if (i && i.nodetype === 1) for (g = 0; y[g] != null; g++) { if (y[g] && (y[g] === true || y[g].nodetype === 1 && k.contains(i, y[g]))) n.push(u[g]) } else for (g = 0; y[g] != null; g++) y[g] && y[g].nodetype === 1 && n.push(u[g]); else n.push.apply(n, y); else c(y, n); if (f) { k(f, p, n, m); k.uniquesort(n) } return n }; k.uniquesort = function (g) { if (w) { h = l; g.sort(w); if (h) for (var i = 1; i < g.length; i++) g[i] === g[i - 1] && g.splice(i--, 1) } return g }; k.matches = function (g, i) { return k(g, null, null, i) }; k.matchesselector = function (g, i) { return k(i, null, null, [g]).length > 0 }; k.find = function (g, i, n) { var m; if (!g) return []; for (var p = 0, q = o.order.length; p < q; p++) { var u, y = o.order[p]; if (u = o.leftmatch[y].exec(g)) { var f = u[1]; u.splice(1, 1); if (f.substr(f.length - 1) !== "\\") { u[1] = (u[1] || "").replace(/\\/g, ""); m = o.find[y](u, i, n); if (m != null) { g = g.replace(o.match[y], ""); break } } } } m || (m = i.getelementsbytagname("*")); return { set: m, expr: g } }; k.filter = function (g, i, n, m) { for (var p, q, u = g, y = [], f = i, m = i && i[0] && k.isxml(i[0]) ; g && i.length;) { for (var n in o.filter) if ((p = o.leftmatch[n].exec(g)) != null && p[2]) { var o, d, r = o.filter[n]; d = p[1]; q = false; p.splice(1, 1); if (d.substr(d.length - 1) !== "\\") { if (f === y) y = []; if (o.prefilter[n]) if (p = o.prefilter[n](p, f, n, y, m, m)) { if (p === true) continue } else q = o = true; if (p) for (var j = 0; (d = f[j]) != null; j++) if (d) { o = r(d, p, j, f); var s = m ^ !!o; if (n && o != null) if (s) q = true; else f[j] = false; else if (s) { y.push(d); q = true } } if (o !== b) { n || (f = y); g = g.replace(o.match[n], ""); if (!q) return []; break } } } if (g === u) if (q == null) k.error(g); else break; u = g } return f }; k.error = function (g) { throw "syntax error, unrecognized expression: " + g; }; var o = k.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\))?/ }, leftmatch: {}, attrmap: { "class": "classname", "for": "htmlfor" }, attrhandle: { href: function (g) { return g.getattribute("href") } }, relative: { "+": function (g, i) { var n = typeof i === "string", m = n && !/\w/.test(i); n = n && !m; if (m) i = i.tolowercase(); m = 0; for (var p = g.length, q; m < p; m++) if (q = g[m]) { for (; (q = q.previoussibling) && q.nodetype !== 1;); g[m] = n || q && q.nodename.tolowercase() === i ? q || false : q === i } n && k.filter(i, g, true) }, ">": function (g, i) { var n, m = typeof i === "string", p = 0, q = g.length; if (m && !/\w/.test(i)) for (i = i.tolowercase() ; p < q; p++) { if (n = g[p]) { n = n.parentnode; g[p] = n.nodename.tolowercase() === i ? n : false } } else { for (; p < q; p++) if (n = g[p]) g[p] = m ? n.parentnode : n.parentnode === i; m && k.filter(i, g, true) } }, "": function (g, i, n) { var m, p = e++, q = b; if (typeof i === "string" && !/\w/.test(i)) { m = i = i.tolowercase(); q = a } q("parentnode", i, p, g, m, n) }, "~": function (g, i, n) { var m, p = e++, q = b; if (typeof i === "string" && !/\w/.test(i)) { m = i = i.tolowercase(); q = a } q("previoussibling", i, p, g, m, n) } }, find: { id: function (g, i, n) { if (typeof i.getelementbyid !== "undefined" && !n) return (g = i.getelementbyid(g[1])) && g.parentnode ? [g] : [] }, name: function (g, i) { if (typeof i.getelementsbyname !== "undefined") { for (var n = [], m = i.getelementsbyname(g[1]), p = 0, q = m.length; p < q; p++) m[p].getattribute("name") === g[1] && n.push(m[p]); return n.length === 0 ? null : n } }, tag: function (g, i) { return i.getelementsbytagname(g[1]) } }, prefilter: { class: function (g, i, n, m, p, q) { g = " " + g[1].replace(/\\/g, "") + " "; if (q) return g; q = 0; for (var u; (u = i[q]) != null; q++) if (u) if (p ^ (u.classname && (" " + u.classname + " ").replace(/[\t\n]/g, " ").indexof(g) >= 0)) n || m.push(u); else if (n) i[q] = false; return false }, id: function (g) { return g[1].replace(/\\/g, "") }, tag: function (g) { return g[1].tolowercase() }, child: function (g) { if (g[1] === "nth") { var i = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2] === "even" && "2n" || g[2] === "odd" && "2n+1" || !/\d/.test(g[2]) && "0n+" + g[2] || g[2]); g[2] = i[1] + (i[2] || 1) - 0; g[3] = i[3] - 0 } g[0] = e++; return g }, attr: function (g, i, n, m, p, q) { i = g[1].replace(/\\/g, ""); if (!q && o.attrmap[i]) g[1] = o.attrmap[i]; if (g[2] === "~=") g[4] = " " + g[4] + " "; return g }, pseudo: function (g, i, n, m, p) { if (g[1] === "not") if ((d.exec(g[3]) || "").length > 1 || /^\w/.test(g[3])) g[3] = k(g[3], null, null, i); else { g = k.filter(g[3], i, n, true ^ p); n || m.push.apply(m, g); return false } else if (o.match.pos.test(g[0]) || o.match.child.test(g[0])) return true; return g }, pos: function (g) { g.unshift(true); return g } }, filters: { enabled: function (g) { return g.disabled === false && g.type !== "hidden" }, disabled: function (g) { return g.disabled === true }, checked: function (g) { return g.checked === true }, selected: function (g) { return g.selected === true }, parent: function (g) { return !!g.firstchild }, empty: function (g) { return !g.firstchild }, has: function (g, i, n) { return !!k(n[3], g).length }, header: function (g) { return /h\d/i.test(g.nodename) }, text: function (g) { return "text" === g.type }, radio: function (g) { return "radio" === g.type }, checkbox: function (g) { return "checkbox" === g.type }, file: function (g) { return "file" === g.type }, password: function (g) { return "password" === g.type }, submit: function (g) { return "submit" === g.type }, image: function (g) { return "image" === g.type }, reset: function (g) { return "reset" === g.type }, button: function (g) { return "button" === g.type || g.nodename.tolowercase() === "button" }, input: function (g) { return /input|select|textarea|button/i.test(g.nodename) } }, setfilters: { first: function (g, i) { return i === 0 }, last: function (g, i, n, m) { return i === m.length - 1 }, even: function (g, i) { return i % 2 === 0 }, odd: function (g, i) { return i % 2 === 1 }, lt: function (g, i, n) { return i < n[3] - 0 }, gt: function (g, i, n) { return i > n[3] - 0 }, nth: function (g, i, n) { return n[3] - 0 === i }, eq: function (g, i, n) { return n[3] - 0 === i } }, filter: { pseudo: function (g, i, n, m) { var p = i[1], q = o.filters[p]; if (q) return q(g, n, i, m); else if (p === "contains") return (g.textcontent || g.innertext || k.gettext([g]) || "").indexof(i[3]) >= 0; else if (p === "not") { i = i[3]; n = 0; for (m = i.length; n < m; n++) if (i[n] === g) return false; return true } else k.error("syntax error, unrecognized expression: " + p) }, child: function (g, i) { var n = i[1], m = g; switch (n) { case "only": case "first": for (; m = m.previoussibling;) if (m.nodetype === 1) return false; if (n === "first") return true; m = g; case "last": for (; m = m.nextsibling;) if (m.nodetype === 1) return false; return true; case "nth": n = i[2]; var p = i[3]; if (n === 1 && p === 0) return true; var q = i[0], u = g.parentnode; if (u && (u.sizcache !== q || !g.nodeindex)) { var y = 0; for (m = u.firstchild; m; m = m.nextsibling) if (m.nodetype === 1) m.nodeindex = ++y; u.sizcache = q } m = g.nodeindex - p; return n === 0 ? m === 0 : m % n === 0 && m / n >= 0 } }, id: function (g, i) { return g.nodetype === 1 && g.getattribute("id") === i }, tag: function (g, i) { return i === "*" && g.nodetype === 1 || g.nodename.tolowercase() === i }, class: function (g, i) { return (" " + (g.classname || g.getattribute("class")) + " ").indexof(i) > -1 }, attr: function (g, i) { var n = i[1]; n = o.attrhandle[n] ? o.attrhandle[n](g) : g[n] != null ? g[n] : g.getattribute(n); var m = n + "", p = i[2], q = i[4]; return n == null ? p === "!=" : p === "=" ? m === q : p === "*=" ? m.indexof(q) >= 0 : p === "~=" ? (" " + m + " ").indexof(q) >= 0 : !q ? m && n !== false : p === "!=" ? m !== q : p === "^=" ? m.indexof(q) === 0 : p === "$=" ? m.substr(m.length - q.length) === q : p === "|=" ? m === q || m.substr(0, q.length + 1) === q + "-" : false }, pos: function (g, i, n, m) { var p = o.setfilters[i[2]]; if (p) return p(g, n, i, m) } } }, x = o.match.pos, r = function (g, i) { return "\\" + (i - 0 + 1) }, a; for (a in o.match) { o.match[a] = regexp(o.match[a].source + /(?![^\[]*\])(?![^\(]*\))/.source); o.leftmatch[a] = regexp(/(^(?:.|\r|\n)*?)/.source + o.match[a].source.replace(/\\(\d+)/g, r)) } var c = function (g, i) { g = array.prototype.slice.call(g, 0); if (i) { i.push.apply(i, g); return i } return g }; try { array.prototype.slice.call(t.documentelement.childnodes, 0) } catch (j) { c = function (g, i) { var n = 0, m = i || []; if (f.call(g) === "[object array]") array.prototype.push.apply(m, g); else if (typeof g.length === "number") for (var p = g.length; n < p; n++) m.push(g[n]); else for (; g[n]; n++) m.push(g[n]); return m } } var w, i; if (t.documentelement.comparedocumentposition) w = function (g, i) { if (g === i) { h = true; return 0 } if (!g.comparedocumentposition || !i.comparedocumentposition) return g.comparedocumentposition ? -1 : 1; return g.comparedocumentposition(i) & 4 ? -1 : 1 }; else { w = function (g, i) { var n, m, p = [], q = []; n = g.parentnode; m = i.parentnode; var u = n; if (g === i) { h = true; return 0 } else if (n === m) return i(g, i); else if (n) { if (!m) return 1 } else return -1; for (; u;) { p.unshift(u); u = u.parentnode } for (u = m; u;) { q.unshift(u); u = u.parentnode } n = p.length; m = q.length; for (u = 0; u < n && u < m; u++) if (p[u] !== q[u]) return i(p[u], q[u]); return u === n ? i(g, q[u], -1) : i(p[u], i, 1) }; i = function (g, i, n) { if (g === i) return n; for (g = g.nextsibling; g;) { if (g === i) return -1; g = g.nextsibling } return 1 } } k.gettext = function (g) { for (var i = "", n, m = 0; g[m]; m++) { n = g[m]; if (n.nodetype === 3 || n.nodetype === 4) i += n.nodevalue; else if (n.nodetype !== 8) i += k.gettext(n.childnodes) } return i }; (function () { var g = t.createelement("div"), i = "script" + (new date).gettime(), n = t.documentelement; g.innerhtml = ""; n.insertbefore(g, n.firstchild); if (t.getelementbyid(i)) { o.find.id = function (m, p, q) { if (typeof p.getelementbyid !== "undefined" && !q) return (p = p.getelementbyid(m[1])) ? p.id === m[1] || typeof p.getattributenode !== "undefined" && p.getattributenode("id").nodevalue === m[1] ? [p] : b : [] }; o.filter.id = function (m, p) { var q = typeof m.getattributenode !== "undefined" && m.getattributenode("id"); return m.nodetype === 1 && q && q.nodevalue === p } } n.removechild(g); n = g = null })(); (function () { var g = t.createelement("div"); g.appendchild(t.createcomment("")); if (g.getelementsbytagname("*").length > 0) o.find.tag = function (i, n) { var m = n.getelementsbytagname(i[1]); if (i[1] === "*") { for (var p = [], q = 0; m[q]; q++) m[q].nodetype === 1 && p.push(m[q]); m = p } return m }; g.innerhtml = ""; if (g.firstchild && typeof g.firstchild.getattribute !== "undefined" && g.firstchild.getattribute("href") !== "#") o.attrhandle.href = function (i) { return i.getattribute("href", 2) }; g = null })(); t.queryselectorall && function () { var g = k, i = t.createelement("div"); i.innerhtml = "

"; if (!(i.queryselectorall && i.queryselectorall(".test").length === 0)) { k = function (m, p, q, u) { p = p || t; m = m.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']"); if (!u && !k.isxml(p)) if (p.nodetype === 9) try { return c(p.queryselectorall(m), q) } catch (y) { } else if (p.nodetype === 1 && p.nodename.tolowercase() !== "object") { var f = p.getattribute("id"), m = f || "__sizzle__"; f || p.setattribute("id", m); try { return c(p.queryselectorall("#" + m + " " + m), q) } catch (n) { } finally { f || p.removeattribute("id") } } return g(m, p, q, u) }; for (var n in g) k[n] = g[n]; i = null } }(); (function () { var g = t.documentelement, i = g.matchesselector || g.mozmatchesselector || g.webkitmatchesselector || g.msmatchesselector, n = false; try { i.call(t.documentelement, "[test!='']:sizzle") } catch (m) { n = true } if (i) k.matchesselector = function (p, q) { q = q.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']"); if (!k.isxml(p)) try { if (n || !o.match.pseudo.test(q) && !/!=/.test(q)) return i.call(p, q) } catch (u) { } return k(q, null, null, [p]).length > 0 } })(); (function () { var g = t.createelement("div"); g.innerhtml = "
"; if (!(!g.getelementsbyclassname || g.getelementsbyclassname("e").length === 0)) { g.lastchild.classname = "e"; if (g.getelementsbyclassname("e").length !== 1) { o.order.splice(1, 0, "class"); o.find.class = function (i, n, m) { if (typeof n.getelementsbyclassname !== "undefined" && !m) return n.getelementsbyclassname(i[1]) }; g = null } } })(); k.contains = t.documentelement.contains ? function (g, i) { return g !== i && (g.contains ? g.contains(i) : true) } : t.documentelement.comparedocumentposition ? function (g, i) { return !!(g.comparedocumentposition(i) & 16) } : function () { return false }; k.isxml = function (g) { return (g = (g ? g.ownerdocument || g : 0).documentelement) ? g.nodename !== "html" : false }; var l = function (g, i) { for (var n, m = [], p = "", q = i.nodetype ? [i] : i; n = o.match.pseudo.exec(g) ;) { p += n[0]; g = g.replace(o.match.pseudo, "") } g = o.relative[g] ? g + "*" : g; n = 0; for (var u = q.length; n < u; n++) k(g, q[n], m); return k.filter(p, m) }; c.find = k; c.expr = k.selectors; c.expr[":"] = c.expr.filters; c.unique = k.uniquesort; c.text = k.gettext; c.isxmldoc = k.isxml; c.contains = k.contains })(); var za = /until$/, $a = /^(?:parents|prevuntil|prevall)/, ab = /,/, na = /^.[^:#\[\.,]*$/, bb = array.prototype.slice, cb = c.expr.match.pos; c.fn.extend({ find: function (a) { for (var b = this.pushstack("", "find", a), d = 0, e = 0, f = this.length; e < f; e++) { d = b.length; c.find(a, this[e], b); if (e > 0) for (var h = d; h < b.length; h++) for (var l = 0; l < d; l++) if (b[l] === b[h]) { b.splice(h--, 1); break } } return b }, has: function (a) { var b = c(a); return this.filter(function () { for (var d = 0, e = b.length; d < e; d++) if (c.contains(this, b[d])) return true }) }, not: function (a) { return this.pushstack(ma(this, a, false), "not", a) }, filter: function (a) { return this.pushstack(ma(this, a, true), "filter", a) }, is: function (a) { return !!a && c.filter(a, this).length > 0 }, closest: function (a, b) { var d = [], e, f, h = this[0]; if (c.isarray(a)) { var l, k = {}, o = 1; if (h && a.length) { e = 0; for (f = a.length; e < f; e++) { l = a[e]; k[l] || (k[l] = c.expr.match.pos.test(l) ? c(l, b || this.context) : l) } for (; h && h.ownerdocument && h !== b;) { for (l in k) { e = k[l]; if (e.jquery ? e.index(h) > -1 : c(h).is(e)) d.push({ selector: l, elem: h, level: o }) } h = h.parentnode; o++ } } return d } l = cb.test(a) ? c(a, b || this.context) : null; e = 0; for (f = this.length; e < f; e++) for (h = this[e]; h;) if (l ? l.index(h) > -1 : c.find.matchesselector(h, a)) { d.push(h); break } else { h = h.parentnode; if (!h || !h.ownerdocument || h === b) break } d = d.length > 1 ? c.unique(d) : d; return this.pushstack(d, "closest", a) }, index: function (a) { if (!a || typeof a === "string") return c.inarray(this[0], a ? c(a) : this.parent().children()); return c.inarray(a.jquery ? a[0] : a, this) }, add: function (a, b) { var d = typeof a === "string" ? c(a, b || this.context) : c.makearray(a), e = c.merge(this.get(), d); return this.pushstack(!d[0] || !d[0].parentnode || d[0].parentnode.nodetype === 11 || !e[0] || !e[0].parentnode || e[0].parentnode.nodetype === 11 ? e : c.unique(e)) }, andself: function () { return this.add(this.prevobject) } }); c.each({ parent: function (a) { return (a = a.parentnode) && a.nodetype !== 11 ? a : null }, parents: function (a) { return c.dir(a, "parentnode") }, parentsuntil: function (a, b, d) { return c.dir(a, "parentnode", d) }, next: function (a) { return c.nth(a, 2, "nextsibling") }, prev: function (a) { return c.nth(a, 2, "previoussibling") }, nextall: function (a) { return c.dir(a, "nextsibling") }, prevall: function (a) { return c.dir(a, "previoussibling") }, nextuntil: function (a, b, d) { return c.dir(a, "nextsibling", d) }, prevuntil: function (a, b, d) { return c.dir(a, "previoussibling", d) }, siblings: function (a) { return c.sibling(a.parentnode.firstchild, a) }, children: function (a) { return c.sibling(a.firstchild) }, contents: function (a) { return c.nodename(a, "iframe") ? a.contentdocument || a.contentwindow.document : c.makearray(a.childnodes) } }, function (a, b) { c.fn[a] = function (d, e) { var f = c.map(this, b, d); za.test(a) || (e = d); if (e && typeof e === "string") f = c.filter(e, f); f = this.length > 1 ? c.unique(f) : f; if ((this.length > 1 || ab.test(e)) && $a.test(a)) f = f.reverse(); return this.pushstack(f, a, bb.call(arguments).join(",")) } }); c.extend({ filter: function (a, b, d) { if (d) a = ":not(" + a + ")"; return b.length === 1 ? c.find.matchesselector(b[0], a) ? [b[0]] : [] : c.find.matches(a, b) }, dir: function (a, b, d) { var e = []; for (a = a[b]; a && a.nodetype !== 9 && (d === b || a.nodetype !== 1 || !c(a).is(d)) ;) { a.nodetype === 1 && e.push(a); a = a[b] } return e }, nth: function (a, b, d) { b = b || 1; for (var e = 0; a; a = a[d]) if (a.nodetype === 1 && ++e === b) break; return a }, sibling: function (a, b) { for (var d = []; a; a = a.nextsibling) a.nodetype === 1 && a !== b && d.push(a); return d } }); var za = / jquery\d+="(?:\d+|null)"/g, $ = /^\s+/, aa = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig, ba = /<([\w:]+)/, db = /\s]+\/)>/g, p = { option: [1, ""], legend: [1, "
", "
"], thead: [1, "", "
"], tr: [2, "", "
"], td: [3, "", "
"], col: [2, "", "
"], area: [1, "", ""], _default: [0, "", ""] }; p.optgroup = p.option; p.tbody = p.tfoot = p.colgroup = p.caption = p.thead; p.th = p.td; if (!c.support.htmlserialize) p._default = [1, "div
", "
"]; c.fn.extend({ text: function (a) { if (c.isfunction(a)) return this.each(function (b) { var d = c(this); d.text(a.call(this, b, d.text())) }); if (typeof a !== "object" && a !== b) return this.empty().append((this[0] && this[0].ownerdocument || t).createtextnode(a)); return c.text(this) }, wrapall: function (a) { if (c.isfunction(a)) return this.each(function (d) { c(this).wrapall(a.call(this, d)) }); if (this[0]) { var b = c(a, this[0].ownerdocument).eq(0).clone(true); this[0].parentnode && b.insertbefore(this[0]); b.map(function () { for (var d = this; d.firstchild && d.firstchild.nodetype === 1;) d = d.firstchild; return d }).append(this) } return this }, wrapinner: function (a) { if (c.isfunction(a)) return this.each(function (b) { c(this).wrapinner(a.call(this, b)) }); return this.each(function () { var b = c(this), d = b.contents(); d.length ? d.wrapall(a) : b.append(a) }) }, wrap: function (a) { return this.each(function () { c(this).wrapall(a) }) }, unwrap: function () { return this.parent().each(function () { c.nodename(this, "body") || c(this).replacewith(this.childnodes) }).end() }, append: function () { return this.dommanip(arguments, true, function (a) { this.nodetype === 1 && this.appendchild(a) }) }, prepend: function () { return this.dommanip(arguments, true, function (a) { this.nodetype === 1 && this.insertbefore(a, this.firstchild) }) }, before: function () { if (this[0] && this[0].parentnode) return this.dommanip(arguments, false, function (b) { this.parentnode.insertbefore(b, this) }); else if (arguments.length) { var a = c(arguments[0]); a.push.apply(a, this.toarray()); return this.pushstack(a, "before", arguments) } }, after: function () { if (this[0] && this[0].parentnode) return this.dommanip(arguments, false, function (b) { this.parentnode.insertbefore(b, this.nextsibling) }); else if (arguments.length) { var a = this.pushstack(this, "after", arguments); a.push.apply(a, c(arguments[0]).toarray()); return a } }, remove: function (a, b) { for (var d = 0, e; (e = this[d]) != null; d++) if (!a || c.filter(a, [e]).length) { if (!b && e.nodetype === 1) { c.cleandata(e.getelementsbytagname("*")); c.cleandata([e]) } e.parentnode && e.parentnode.removechild(e) } return this }, empty: function () { for (var a = 0, b; (b = this[a]) != null; a++) for (b.nodetype === 1 && c.cleandata(b.getelementsbytagname("*")) ; b.firstchild;) b.removechild(b.firstchild); return this }, clone: function (a) { var b = this.map(function () { if (!c.support.nocloneevent && !c.isxmldoc(this)) { var d = this.outerhtml, e = this.ownerdocument; if (!d) { d = e.createelement("div"); d.appendchild(this.clonenode(true)); d = d.innerhtml } return c.clean([d.replace(za, "").replace(fb, '="$1">').replace($, "")], e)[0] } else return this.clonenode(true) }); if (a === true) { na(this, b); na(this.find("*"), b.find("*")) } return b }, html: function (a) { if (a === b) return this[0] && this[0].nodetype === 1 ? this[0].innerhtml.replace(za, "") : null; else if (typeof a === "string" && !ca.test(a) && (c.support.leadingwhitespace || !$.test(a)) && !p[(ba.exec(a) || ["", ""])[1].tolowercase()]) { a = a.replace(aa, "<$1>"); try { for (var b = 0, d = this.length; b < d; b++) if (this[b].nodetype === 1) { c.cleandata(this[b].getelementsbytagname("*")); this[b].innerhtml = a } } catch (e) { this.empty().append(a) } } else c.isfunction(a) ? this.each(function (f) { var h = c(this); h.html(a.call(this, f, h.html())) }) : this.empty().append(a); return this }, replacewith: function (a) { if (this[0] && this[0].parentnode) { if (c.isfunction(a)) return this.each(function (b) { var d = c(this), e = d.html(); d.replacewith(a.call(this, b, e)) }); if (typeof a !== "string") a = c(a).detach(); return this.each(function () { var b = this.nextsibling, d = this.parentnode; c(this).remove(); b ? c(b).before(a) : c(d).append(a) }) } else return this.pushstack(c(c.isfunction(a) ? a() : a), "replacewith", a) }, detach: function (a) { return this.remove(a, true) }, dommanip: function (a, b, d) { var e, f, h, l = a[0], k = []; if (!c.support.checkclone && arguments.length === 3 && typeof l === "string" && da.test(l)) return this.each(function () { c(this).dommanip(a, b, d, true) }); if (c.isfunction(l)) return this.each(function (x) { var r = c(this); a[0] = l.call(this, x, b ? r.html() : b); r.dommanip(a, b, d) }); if (this[0]) { e = l && l.parentnode; e = c.support.parentnode && e && e.nodetype === 11 && e.childnodes.length === this.length ? { fragment: e } : c.buildfragment(a, this, k); h = e.fragment; if (f = h.childnodes.length === 1 ? h = h.firstchild : h.firstchild) { b = b && c.nodename(f, "tr"); f = 0; for (var o = this.length; f < o; f++) d.call(b ? c.nodename(this[f], "table") ? this[f].getelementsbytagname("tbody")[0] || this[f].appendchild(this[f].ownerdocument.createelement("tbody")) : this[f] : this[f], f > 0 || e.cacheable || this.length > 1 ? h.clonenode(true) : h) } k.length && c.each(k, oa) } return this } }); c.buildfragment = function (a, b, d) { var e, f, h; b = b && b[0] ? b[0].ownerdocument || b[0] : t; if (a.length === 1 && typeof a[0] === "string" && a[0].length < 512 && b === t && !ca.test(a[0]) && (c.support.checkclone || !da.test(a[0]))) { f = true; if (h = c.fragments[a[0]]) if (h !== 1) e = h } if (!e) { e = b.createdocumentfragment(); c.clean(a, b, e, d) } if (f) c.fragments[a[0]] = h ? e : 1; return { fragment: e, cacheable: f } }; c.fragments = {}; c.each({ appendto: "append", prependto: "prepend", insertbefore: "before", insertafter: "after", replaceall: "replacewith" }, function (a, b) { c.fn[a] = function (d) { var e = []; d = c(d); var f = this.length === 1 && this[0].parentnode; if (f && f.nodetype === 11 && f.childnodes.length === 1 && d.length === 1) { d[b](this[0]); return this } else { f = 0; for (var h = d.length; f < h; f++) { var l = (f > 0 ? this.clone(true) : this).get(); c(d[f])[b](l); e = e.concat(l) } return this.pushstack(e, a, d.selector) } } }); c.extend({ clean: function (a, b, d, e) { b = b || t; if (typeof b.createelement === "undefined") b = b.ownerdocument || b[0] && b[0].ownerdocument || t; for (var f = [], h = 0, l; (l = a[h]) != null; h++) { if (typeof l === "number") l += ""; if (l) { if (typeof l === "string" && !eb.test(l)) l = b.createtextnode(l); else if (typeof l === "string") { l = l.replace(aa, "<$1>"); var k = (ba.exec(l) || ["", ""])[1].tolowercase(), o = p[k] || p._default, x = o[0], r = b.createelement("div"); for (r.innerhtml = o[1] + l + o[2]; x--;) r = r.lastchild; if (!c.support.tbody) { x = db.test(l); k = k === "table" && !x ? r.firstchild && r.firstchild.childnodes : o[1] === "" && !x ? r.childnodes : []; for (o = k.length - 1; o >= 0; --o) c.nodename(k[o], "tbody") && !k[o].childnodes.length && k[o].parentnode.removechild(k[o]) } !c.support.leadingwhitespace && $.test(l) && r.insertbefore(b.createtextnode($.exec(l)[0]), r.firstchild); l = r.childnodes } if (l.nodetype) f.push(l); else f = c.merge(f, l) } } if (d) for (h = 0; f[h]; h++) if (e && c.nodename(f[h], "script") && (!f[h].type || f[h].type.tolowercase() === "text/javascript")) e.push(f[h].parentnode ? f[h].parentnode.removechild(f[h]) : f[h]); else { f[h].nodetype === 1 && f.splice.apply(f, [h + 1, 0].concat(c.makearray(f[h].getelementsbytagname("script")))); d.appendchild(f[h]) } return f }, cleandata: function (a) { for (var b, d, e = c.cache, f = c.event.special, h = c.support.deleteexpando, l = 0, k; (k = a[l]) != null; l++) if (!(k.nodename && c.nodata[k.nodename.tolowercase()])) if (d = k[c.expando]) { if ((b = e[d]) && b.events) for (var o in b.events) f[o] ? c.event.remove(k, o) : c.removeevent(k, o, b.handle); if (h) delete k[c.expando]; else k.removeattribute && k.removeattribute(c.expando); delete e[d] } } }); var ea = /alpha\([^)]*\)/i, gb = /opacity=([^)]*)/, hb = /-([a-z])/ig, ib = /([a-z])/g, fa = /^-?\d+(?:px)?$/i, jb = /^-?\d/, kb = { position: "absolute", visibility: "hidden", display: "block" }, pa = ["left", "right"], qa = ["top", "bottom"], w, ga, aa, lb = function (a, b) { return b.touppercase() }; c.fn.css = function (a, b) { if (arguments.length === 2 && b === b) return this; return c.access(this, a, b, true, function (d, e, f) { return f !== b ? c.style(d, e, f) : c.css(d, e) }) }; c.extend({ csshooks: { opacity: { get: function (a, b) { if (b) { var d = w(a, "opacity", "opacity"); return d === "" ? "1" : d } else return a.style.opacity } } }, cssnumber: { zindex: true, fontweight: true, opacity: true, zoom: true, lineheight: true }, cssprops: { "float": c.support.cssfloat ? "cssfloat" : "stylefloat" }, style: function (a, b, d, e) { if (!(!a || a.nodetype === 3 || a.nodetype === 8 || !a.style)) { var f, h = c.camelcase(b), l = a.style, k = c.csshooks[h]; b = c.cssprops[h] || h; if (d !== b) { if (!(typeof d === "number" && isnan(d) || d == null)) { if (typeof d === "number" && !c.cssnumber[h]) d += "px"; if (!k || !("set" in k) || (d = k.set(a, d)) !== b) try { l[b] = d } catch (o) { } } } else { if (k && "get" in k && (f = k.get(a, false, e)) !== b) return f; return l[b] } } }, css: function (a, b, d) { var e, f = c.camelcase(b), h = c.csshooks[f]; b = c.cssprops[f] || f; if (h && "get" in h && (e = h.get(a, true, d)) !== b) return e; else if (w) return w(a, b, f) }, swap: function (a, b, d) { var e = {}, f; for (f in b) { e[f] = a.style[f]; a.style[f] = b[f] } d.call(a); for (f in b) a.style[f] = e[f] }, camelcase: function (a) { return a.replace(hb, lb) } }); c.curcss = c.css; c.each(["height", "width"], function (a, b) { c.csshooks[b] = { get: function (d, e, f) { var h; if (e) { if (d.offsetwidth !== 0) h = oa(d, b, f); else c.swap(d, kb, function () { h = oa(d, b, f) }); if (h <= 0) { h = w(d, b, b); if (h === "0px" && aa) h = aa(d, b, b); if (h != null) return h === "" || h === "auto" ? "0px" : h } if (h < 0 || h == null) { h = d.style[b]; return h === "" || h === "auto" ? "0px" : h } return typeof h === "string" ? h : h + "px" } }, set: function (d, e) { if (fa.test(e)) { e = parsefloat(e); if (e >= 0) return e + "px" } else return e } } }); if (!c.support.opacity) c.csshooks.opacity = { get: function (a, b) { return gb.test((b && a.currentstyle ? a.currentstyle.filter : a.style.filter) || "") ? parsefloat(regexp.$1) / 100 + "" : b ? "1" : "" }, set: function (a, b) { var d = a.style; d.zoom = 1; var e = c.isnan(b) ? "" : "alpha(opacity=" + b * 100 + ")", f = d.filter || ""; d.filter = ea.test(f) ? f.replace(ea, e) : d.filter + " " + e } }; if (t.defaultview && t.defaultview.getcomputedstyle) ga = function (a, b, d) { var e; d = d.replace(ib, "-$1").tolowercase(); if (!(b = a.ownerdocument.defaultview)) return b; if (b = b.getcomputedstyle(a, null)) { e = b.getpropertyvalue(d); if (e === "" && !c.contains(a.ownerdocument.documentelement, a)) e = c.style(a, d) } return e }; if (t.documentelement.currentstyle) aa = function (a, b) { var d, e, f = a.currentstyle && a.currentstyle[b], h = a.style; if (!fa.test(f) && jb.test(f)) { d = h.left; e = a.runtimestyle.left; a.runtimestyle.left = a.currentstyle.left; h.left = b === "fontsize" ? "1em" : f || 0; f = h.pixelleft + "px"; h.left = d; a.runtimestyle.left = e } return f === "" ? "auto" : f }; w = ga || aa; if (c.expr && c.expr.filters) { c.expr.filters.hidden = function (a) { var b = a.offsetheight; return a.offsetwidth === 0 && b === 0 || !c.support.reliablehiddenoffsets && (a.style.display || c.css(a, "display")) === "none" }; c.expr.filters.visible = function (a) { return !c.expr.filters.hidden(a) } } var mb = c.now(), nb = /)<[^<]*)*<\/script>/gi, ob = /^(?:select|textarea)/i, pb = /^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i, qb = /^(?:get|head)$/, ra = /\[\]$/, t = /\=\?(&|$)/, ja = /\?/, rb = /([?&])_=[^&]*/, sb = /^(\w+:)?\/\/([^\/?#]+)/, tb = /%20/g, ub = /#.*$/, ha = c.fn.load; c.fn.extend({ load: function (a, b, d) { if (typeof a !== "string" && ha) return ha.apply(this, arguments); else if (!this.length) return this; var e = a.indexof(" "); if (e >= 0) { var f = a.slice(e, a.length); a = a.slice(0, e) } e = "get"; if (b) if (c.isfunction(b)) { d = b; b = null } else if (typeof b === "object") { b = c.param(b, c.ajaxsettings.traditional); e = "post" } var h = this; c.ajax({ url: a, type: e, datatype: "html", data: b, complete: function (l, k) { if (k === "success" || k === "notmodified") h.html(f ? c("
").append(l.responsetext.replace(nb, "")).find(f) : l.responsetext); d && h.each(d, [l.responsetext, k, l]) } }); return this }, serialize: function () { return c.param(this.serializearray()) }, serializearray: function () { return this.map(function () { return this.elements ? c.makearray(this.elements) : this }).filter(function () { return this.name && !this.disabled && (this.checked || ob.test(this.nodename) || pb.test(this.type)) }).map(function (a, b) { var d = c(this).val(); return d == null ? null : c.isarray(d) ? c.map(d, function (e) { return { name: b.name, value: e } }) : { name: b.name, value: d } }).get() } }); c.each("ajaxstart ajaxstop ajaxcomplete ajaxerror ajaxsuccess ajaxsend".split(" "), function (a, b) { c.fn[b] = function (d) { return this.bind(b, d) } }); c.extend({ get: function (a, b, d, e) { if (c.isfunction(b)) { e = e || d; d = b; b = null } return c.ajax({ type: "get", url: a, data: b, success: d, datatype: e }) }, getscript: function (a, b) { return c.get(a, null, b, "script") }, getjson: function (a, b, d) { return c.get(a, b, d, "json") }, post: function (a, b, d, e) { if (c.isfunction(b)) { e = e || d; d = b; b = {} } return c.ajax({ type: "post", url: a, data: b, success: d, datatype: e }) }, ajaxsetup: function (a) { c.extend(c.ajaxsettings, a) }, ajaxsettings: { url: location.href, global: true, type: "get", contenttype: "application/x-www-form-urlencoded", processdata: true, async: true, xhr: function () { return new e.xmlhttprequest }, accepts: { xml: "application/xml, text/xml", html: "text/html", script: "text/javascript, application/javascript", json: "application/json, text/javascript", text: "text/plain", _default: "*/*" } }, ajax: function (a) { var b = c.extend(true, {}, c.ajaxsettings, a), d, e, f, h = b.type.touppercase(), l = qb.test(h); b.url = b.url.replace(ub, ""); b.context = a && a.context != null ? a.context : b; if (b.data && b.processdata && typeof b.data !== "string") b.data = c.param(b.data, b.traditional); if (b.datatype === "jsonp") { if (h === "get") t.test(b.url) || (b.url += (ja.test(b.url) ? "&" : "?") + (b.jsonp || "callback") + "=?"); else if (!b.data || !t.test(b.data)) b.data = (b.data ? b.data + "&" : "") + (b.jsonp || "callback") + "=?"; b.datatype = "json" } if (b.datatype === "json" && (b.data && t.test(b.data) || t.test(b.url))) { d = b.jsonpcallback || "jsonp" + mb++; if (b.data) b.data = (b.data + "").replace(t, "=" + d + "$1"); b.url = b.url.replace(t, "=" + d + "$1"); b.datatype = "script"; var k = e[d]; e[d] = function (m) { if (c.isfunction(k)) k(m); else { e[d] = b; try { delete e[d] } catch (p) { } } f = m; c.handlesuccess(b, w, e, f); c.handlecomplete(b, w, e, f); r && r.removechild(a) } } if (b.datatype === "script" && b.cache === null) b.cache = false; if (b.cache === false && l) { var o = c.now(), x = b.url.replace(rb, "$1_=" + o); b.url = x + (x === b.url ? (ja.test(b.url) ? "&" : "?") + "_=" + o : "") } if (b.data && l) b.url += (ja.test(b.url) ? "&" : "?") + b.data; b.global && c.active++ === 0 && c.event.trigger("ajaxstart"); o = (o = sb.exec(b.url)) && (o[1] && o[1].tolowercase() !== location.protocol || o[2].tolowercase() !== location.host); if (b.datatype === "script" && h === "get" && o) { var r = t.getelementsbytagname("head")[0] || t.documentelement, a = t.createelement("script"); if (b.scriptcharset) a.charset = b.scriptcharset; a.src = b.url; if (!d) { var c = false; a.onload = a.onreadystatechange = function () { if (!c && (!this.readystate || this.readystate === "loaded" || this.readystate === "complete")) { c = true; c.handlesuccess(b, w, e, f); c.handlecomplete(b, w, e, f); a.onload = a.onreadystatechange = null; r && a.parentnode && r.removechild(a) } } } r.insertbefore(a, r.firstchild); return b } var j = false, w = b.xhr(); if (w) { b.username ? w.open(h, b.url, b.async, b.username, b.password) : w.open(h, b.url, b.async); try { if (b.data != null && !l || a && a.contenttype) w.setrequestheader("content-type", b.contenttype); if (b.ifmodified) { c.lastmodified[b.url] && w.setrequestheader("if-modified-since", c.lastmodified[b.url]); c.etag[b.url] && w.setrequestheader("if-none-match", c.etag[b.url]) } o || w.setrequestheader("x-requested-with", "xmlhttprequest"); w.setrequestheader("accept", b.datatype && b.accepts[b.datatype] ? b.accepts[b.datatype] + ", */*; q=0.01" : b.accepts._default) } catch (i) { } if (b.beforesend && b.beforesend.call(b.context, w, b) === false) { b.global && c.active-- === 1 && c.event.trigger("ajaxstop"); w.abort(); return false } b.global && c.triggerglobal(b, "ajaxsend", [w, b]); var l = w.onreadystatechange = function (m) { if (!w || w.readystate === 0 || m === "abort") { j || c.handlecomplete(b, w, e, f); j = true; if (w) w.onreadystatechange = c.noop } else if (!j && w && (w.readystate === 4 || m === "timeout")) { j = true; w.onreadystatechange = c.noop; e = m === "timeout" ? "timeout" : !c.httpsuccess(w) ? "error" : b.ifmodified && c.httpnotmodified(w, b.url) ? "notmodified" : "success"; var p; if (e === "success") try { f = c.httpdata(w, b.datatype, b) } catch (q) { e = "parsererror"; p = q } if (e === "success" || e === "notmodified") d || c.handlesuccess(b, w, e, f); else c.handleerror(b, w, e, p); d || c.handlecomplete(b, w, e, f); m === "timeout" && w.abort(); if (b.async) w = null } }; try { var g = w.abort; w.abort = function () { w && function.prototype.call.call(g, w); l("abort") } } catch (i) { } b.async && b.timeout > 0 && settimeout(function () { w && !j && l("timeout") }, b.timeout); try { w.send(l || b.data == null ? null : b.data) } catch (n) { c.handleerror(b, w, null, n); c.handlecomplete(b, w, e, f) } b.async || l(); return w } }, param: function (a, b) { var d = [], e = function (h, l) { l = c.isfunction(l) ? l() : l; d[d.length] = encodeuricomponent(h) + "=" + encodeuricomponent(l) }; if (b === b) b = c.ajaxsettings.traditional; if (c.isarray(a) || a.jquery) c.each(a, function () { e(this.name, this.value) }); else for (var f in a) da(f, a[f], b, e); return d.join("&").replace(tb, "+") } }); c.extend({ active: 0, lastmodified: {}, etag: {}, handleerror: function (a, b, d, e) { a.error && a.error.call(a.context, b, d, e); a.global && c.triggerglobal(a, "ajaxerror", [b, a, e]) }, handlesuccess: function (a, b, d, e) { a.success && a.success.call(a.context, e, d, b); a.global && c.triggerglobal(a, "ajaxsuccess", [b, a]) }, handlecomplete: function (a, b, d) { a.complete && a.complete.call(a.context, b, d); a.global && c.triggerglobal(a, "ajaxcomplete", [b, a]); a.global && c.active-- === 1 && c.event.trigger("ajaxstop") }, triggerglobal: function (a, b, d) { (a.context && a.context.url == null ? c(a.context) : c.event).trigger(b, d) }, 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) { var d = a.getresponseheader("last-modified"), e = a.getresponseheader("etag"); if (d) c.lastmodified[b] = d; if (e) c.etag[b] = e; return a.status === 304 }, httpdata: function (a, b, d) { var e = a.getresponseheader("content-type") || "", f = b === "xml" || !b && e.indexof("xml") >= 0; a = f ? a.responsexml : a.responsetext; f && a.documentelement.nodename === "parsererror" && c.error("parsererror"); if (d && d.datafilter) a = d.datafilter(a, b); if (typeof a === "string") if (b === "json" || !b && e.indexof("json") >= 0) a = c.parsejson(a); else if (b === "script" || !b && e.indexof("javascript") >= 0) c.globaleval(a); return a } }); if (e.activexobject) c.ajaxsettings.xhr = function () { if (e.location.protocol !== "file:") try { return new e.xmlhttprequest } catch (a) { } try { return new e.activexobject("microsoft.xmlhttp") } catch (b) { } }; c.support.ajax = !!c.ajaxsettings.xhr(); var ea = {}, vb = /^(?:toggle|show|hide)$/, wb = /^([+\-]=)?([\d+.\-]+)(.*)$/, ba, pa = [["height", "margintop", "marginbottom", "paddingtop", "paddingbottom"], ["width", "marginleft", "marginright", "paddingleft", "paddingright"], ["opacity"]]; c.fn.extend({ show: function (a, b, d) { if (a || a === 0) return this.animate(s("show", 3), a, b, d); else { d = 0; for (var e = this.length; d < e; d++) { a = this[d]; b = a.style.display; if (!c.data(a, "olddisplay") && b === "none") b = a.style.display = ""; b === "" && c.css(a, "display") === "none" && c.data(a, "olddisplay", qa(a.nodename)) } for (d = 0; d < e; d++) { a = this[d]; b = a.style.display; if (b === "" || b === "none") a.style.display = c.data(a, "olddisplay") || "" } return this } }, hide: function (a, b, d) { if (a || a === 0) return this.animate(s("hide", 3), a, b, d); else { a = 0; for (b = this.length; a < b; a++) { d = c.css(this[a], "display"); d !== "none" && c.data(this[a], "olddisplay", d) } for (a = 0; a < b; a++) this[a].style.display = "none"; return this } }, _toggle: c.fn.toggle, toggle: function (a, b, d) { var e = typeof a === "boolean"; if (c.isfunction(a) && c.isfunction(b)) this._toggle.apply(this, arguments); else a == null || e ? this.each(function () { var f = e ? a : c(this).is(":hidden"); c(this)[f ? "show" : "hide"]() }) : this.animate(s("toggle", 3), a, b, d); return this }, fadeto: function (a, b, d, e) { return this.filter(":hidden").css("opacity", 0).show().end().animate({ opacity: b }, a, d, e) }, animate: function (a, b, d, e) { var f = c.speed(b, d, e); if (c.isemptyobject(a)) return this.each(f.complete); return this[f.queue === false ? "each" : "queue"](function () { var h = c.extend({}, f), l, k = this.nodetype === 1, o = k && c(this).is(":hidden"), x = this; for (l in a) { var r = c.camelcase(l); if (l !== r) { a[r] = a[l]; delete a[l]; l = r } if (a[l] === "hide" && o || a[l] === "show" && !o) return h.complete.call(this); if (k && (l === "height" || l === "width")) { h.overflow = [this.style.overflow, this.style.overflowx, this.style.overflowy]; if (c.css(this, "display") === "inline" && c.css(this, "float") === "none") if (c.support.inlineblockneedslayout) if (qa(this.nodename) === "inline") this.style.display = "inline-block"; else { this.style.display = "inline"; this.style.zoom = 1 } else this.style.display = "inline-block" } if (c.isarray(a[l])) { (h.specialeasing = h.specialeasing || {})[l] = a[l][1]; a[l] = a[l][0] } } if (h.overflow != null) this.style.overflow = "hidden"; h.curanim = c.extend({}, a); c.each(a, function (a, c) { var j = new c.fx(x, h, a); if (vb.test(c)) j[c === "toggle" ? o ? "show" : "hide" : c](a); else { var w = wb.exec(c), i = j.cur() || 0; if (w) { var l = parsefloat(w[2]), g = w[3] || "px"; if (g !== "px") { c.style(x, a, (l || 1) + g); i = (l || 1) / j.cur() * i; c.style(x, a, i + g) } if (w[1]) l = (w[1] === "-=" ? -1 : 1) * l + i; j.custom(i, l, g) } else j.custom(i, c, "") } }); return true }) }, stop: function (a, b) { var d = c.timers; a && this.queue([]); this.each(function () { for (var e = d.length - 1; e >= 0; e--) if (d[e].elem === this) { b && d[e](true); d.splice(e, 1) } }); b || this.dequeue(); return this } }); c.each({ slidedown: s("show", 1), slideup: s("hide", 1), slidetoggle: s("toggle", 1), fadein: { opacity: "show" }, fadeout: { opacity: "hide" }, fadetoggle: { opacity: "toggle" } }, function (a, b) { c.fn[a] = function (d, e, f) { return this.animate(b, d, e, f) } }); c.extend({ speed: function (a, b, d) { var e = a && typeof a === "object" ? c.extend({}, a) : { complete: d || !d && b || c.isfunction(a) && a, duration: a, easing: d && b || b && !c.isfunction(b) && b }; e.duration = c.fx.off ? 0 : typeof e.duration === "number" ? e.duration : e.duration in c.fx.speeds ? c.fx.speeds[e.duration] : c.fx.speeds._default; e.old = e.complete; e.complete = function () { e.queue !== false && c(this).dequeue(); c.isfunction(e.old) && e.old.call(this) }; return e }, easing: { linear: function (a, b, d, e) { return d + e * a }, swing: function (a, b, d, e) { return (-math.cos(a * math.pi) / 2 + 0.5) * e + d } }, timers: [], fx: function (a, b, d) { this.options = b; this.elem = a; this.prop = d; if (!b.orig) b.orig = {} } }); c.fx.prototype = { update: function () { this.options.step && this.options.step.call(this.elem, this.now, this); (c.fx.step[this.prop] || c.fx.step._default)(this) }, cur: function () { if (this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null)) return this.elem[this.prop]; var a = parsefloat(c.css(this.elem, this.prop)); return a && a > -1e4 ? a : 0 }, custom: function (a, b, d) { function e(l) { return f.step(l) } var f = this, h = c.fx; this.starttime = c.now(); this.start = a; this.end = b; this.unit = d || this.unit || "px"; this.now = this.start; this.pos = this.state = 0; e.elem = this.elem; if (e() && c.timers.push(e) && !ba) ba = setinterval(h.tick, h.interval) }, show: function () { this.options.orig[this.prop] = c.style(this.elem, this.prop); this.options.show = true; this.custom(this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur()); c(this.elem).show() }, hide: function () { this.options.orig[this.prop] = c.style(this.elem, this.prop); this.options.hide = true; this.custom(this.cur(), 0) }, step: function (a) { var b = c.now(), d = true; 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; for (var e in this.options.curanim) if (this.options.curanim[e] !== true) d = false; if (d) { if (this.options.overflow != null && !c.support.shrinkwrapblocks) { var f = this.elem, h = this.options; c.each(["", "x", "y"], function (k, o) { f.style["overflow" + o] = h.overflow[k] }) } this.options.hide && c(this.elem).hide(); if (this.options.hide || this.options.show) for (var l in this.options.curanim) c.style(this.elem, l, this.options.orig[l]); this.options.complete.call(this.elem) } return false } else { a = b - this.starttime; this.state = a / this.options.duration; b = this.options.easing || (c.easing.swing ? "swing" : "linear"); this.pos = c.easing[this.options.specialeasing && this.options.specialeasing[this.prop] || b](this.state, a, 0, 1, this.options.duration); this.now = this.start + (this.end - this.start) * this.pos; this.update() } return true } }; c.extend(c.fx, { tick: function () { for (var a = c.timers, b = 0; b < a.length; b++) a[b]() || a.splice(b--, 1); a.length || c.fx.stop() }, interval: 13, stop: function () { clearinterval(ba); ba = null }, speeds: { slow: 600, fast: 200, _default: 400 }, step: { opacity: function (a) { c.style(a.elem, "opacity", a.now) }, _default: function (a) { if (a.elem.style && a.elem.style[a.prop] != null) a.elem.style[a.prop] = (a.prop === "width" || a.prop === "height" ? math.max(0, a.now) : a.now) + a.unit; else a.elem[a.prop] = a.now } } }); if (c.expr && c.expr.filters) c.expr.filters.animated = function (a) { return c.grep(c.timers, function (b) { return a === b.elem }).length }; var xb = /^t(?:able|d|h)$/i, ia = /^(?:body|html)$/i; c.fn.offset = "getboundingclientrect" in t.documentelement ? function (a) { var b = this[0], d; if (a) return this.each(function (l) { c.offset.setoffset(this, a, l) }); if (!b || !b.ownerdocument) return null; if (b === b.ownerdocument.body) return c.offset.bodyoffset(b); try { d = b.getboundingclientrect() } catch (e) { } var f = b.ownerdocument, h = f.documentelement; if (!d || !c.contains(h, b)) return d || { top: 0, left: 0 }; b = f.body; f = fa(f); return { top: d.top + (f.pageyoffset || c.support.boxmodel && h.scrolltop || b.scrolltop) - (h.clienttop || b.clienttop || 0), left: d.left + (f.pagexoffset || c.support.boxmodel && h.scrollleft || b.scrollleft) - (h.clientleft || b.clientleft || 0) } } : function (a) { var b = this[0]; if (a) return this.each(function (x) { c.offset.setoffset(this, a, x) }); if (!b || !b.ownerdocument) return null; if (b === b.ownerdocument.body) return c.offset.bodyoffset(b); c.offset.initialize(); var d, e = b.offsetparent, f = b.ownerdocument, h = f.documentelement, l = f.body; d = (f = f.defaultview) ? f.getcomputedstyle(b, null) : b.currentstyle; for (var k = b.offsettop, o = b.offsetleft; (b = b.parentnode) && b !== l && b !== h;) { if (c.offset.supportsfixedposition && d.position === "fixed") break; d = f ? f.getcomputedstyle(b, null) : b.currentstyle; k -= b.scrolltop; o -= b.scrollleft; if (b === e) { k += b.offsettop; o += b.offsetleft; if (c.offset.doesnotaddborder && !(c.offset.doesaddborderfortableandcells && xb.test(b.nodename))) { k += parsefloat(d.bordertopwidth) || 0; o += parsefloat(d.borderleftwidth) || 0 } e = b.offsetparent } if (c.offset.subtractsborderforoverflownotvisible && d.overflow !== "visible") { k += parsefloat(d.bordertopwidth) || 0; o += parsefloat(d.borderleftwidth) || 0 } d = d } if (d.position === "relative" || d.position === "static") { k += l.offsettop; o += l.offsetleft } if (c.offset.supportsfixedposition && d.position === "fixed") { k += math.max(h.scrolltop, l.scrolltop); o += math.max(h.scrollleft, l.scrollleft) } return { top: k, left: o } }; c.offset = { initialize: function () { var a = t.body, b = t.createelement("div"), d, e, f, h = parsefloat(c.css(a, "margintop")) || 0; c.extend(b.style, { position: "absolute", top: 0, left: 0, margin: 0, border: 0, width: "1px", height: "1px", visibility: "hidden" }); b.innerhtml = "
"; a.insertbefore(b, a.firstchild); d = b.firstchild; e = d.firstchild; f = d.nextsibling.firstchild.firstchild; this.doesnotaddborder = e.offsettop !== 5; this.doesaddborderfortableandcells = f.offsettop === 5; e.style.position = "fixed"; e.style.top = "20px"; this.supportsfixedposition = e.offsettop === 20 || e.offsettop === 15; e.style.position = e.style.top = ""; d.style.overflow = "hidden"; d.style.position = "relative"; this.subtractsborderforoverflownotvisible = e.offsettop === -5; this.doesnotincludemargininbodyoffset = a.offsettop !== h; a.removechild(b); c.offset.initialize = c.noop }, bodyoffset: function (a) { var b = a.offsettop, d = a.offsetleft; c.offset.initialize(); if (c.offset.doesnotincludemargininbodyoffset) { b += parsefloat(c.css(a, "margintop")) || 0; d += parsefloat(c.css(a, "marginleft")) || 0 } return { top: b, left: d } }, setoffset: function (a, b, d) { var e = c.css(a, "position"); if (e === "static") a.style.position = "relative"; var f = c(a), h = f.offset(), l = c.css(a, "top"), k = c.css(a, "left"), o = e === "absolute" && c.inarray("auto", [l, k]) > -1; e = {}; var x = {}; if (o) x = f.position(); l = o ? x.top : parseint(l, 10) || 0; k = o ? x.left : parseint(k, 10) || 0; if (c.isfunction(b)) b = b.call(a, d, h); if (b.top != null) e.top = b.top - h.top + l; if (b.left != null) e.left = b.left - h.left + k; "using" in b ? b.using.call(a, e) : f.css(e) } }; c.fn.extend({ position: function () { if (!this[0]) return null; var a = this[0], b = this.offsetparent(), d = this.offset(), e = ia.test(b[0].nodename) ? { top: 0, left: 0 } : b.offset(); d.top -= parsefloat(c.css(a, "margintop")) || 0; d.left -= parsefloat(c.css(a, "marginleft")) || 0; e.top += parsefloat(c.css(b[0], "bordertopwidth")) || 0; e.left += parsefloat(c.css(b[0], "borderleftwidth")) || 0; return { top: d.top - e.top, left: d.left - e.left } }, offsetparent: function () { return this.map(function () { for (var a = this.offsetparent || t.body; a && !ia.test(a.nodename) && c.css(a, "position") === "static";) a = a.offsetparent; return a }) } }); c.each(["left", "top"], function (a, b) { var d = "scroll" + b; c.fn[d] = function (e) { var f = this[0], h; if (!f) return null; if (e !== b) return this.each(function () { if (h = fa(this)) h.scrollto(!a ? e : c(h).scrollleft(), a ? e : c(h).scrolltop()); else this[d] = e }); else return (h = fa(f)) ? "pagexoffset" in h ? h[a ? "pageyoffset" : "pagexoffset"] : c.support.boxmodel && h.document.documentelement[d] || h.document.body[d] : f[d] } }); c.each(["height", "width"], function (a, b) { var d = b.tolowercase(); c.fn["inner" + b] = function () { return this[0] ? parsefloat(c.css(this[0], d, "padding")) : null }; c.fn["outer" + b] = function (e) { return this[0] ? parsefloat(c.css(this[0], d, e ? "margin" : "border")) : null }; c.fn[d] = function (e) { var f = this[0]; if (!f) return e == null ? null : this; if (c.isfunction(e)) return this.each(function (l) { var k = c(this); k[d](e.call(this, l, k[d]())) }); if (c.iswindow(f)) return f.document.compatmode === "css1compat" && f.document.documentelement["client" + b] || f.document.body["client" + b]; else if (f.nodetype === 9) return math.max(f.documentelement["client" + b], f.body["scroll" + b], f.documentelement["scroll" + b], f.body["offset" + b], f.documentelement["offset" + b]); else if (e === b) { f = c.css(f, d); var h = parsefloat(f); return c.isnan(h) ? f : h } else return this.css(d, typeof e === "string" ? e : e + "px") } }) })(window); (function ($) { $.fn.slides = function (option) { option = $.extend({}, $.fn.slides.option, option); return this.each(function () { $('.' + option.container, $(this)).children().wrapall('
'); var elem = $(this), control = $('.slides_control', elem), total = control.children().size(), width = control.children().outerwidth(), height = control.children().outerheight(), start = option.start - 1, effect = option.effect.indexof(',') < 0 ? option.effect : option.effect.replace(' ', '').split(',')[0], paginationeffect = option.effect.indexof(',') < 0 ? effect : option.effect.replace(' ', '').split(',')[1], next = 0, prev = 0, number = 0, current = 0, loaded, active, clicked, position, direction; if (total < 2) { return; } if (start < 0) { start = 0; }; if (start > total) { start = total - 1; }; if (option.start) { current = start; }; if (option.randomize) { control.randomize(); } $('.' + option.container, elem).css({ overflow: 'hidden', position: 'relative' }); control.css({ position: 'relative', width: (width * 3), height: height, left: -width }); control.children().css({ position: 'absolute', top: 0, left: width, zindex: 0, display: 'none' }); if (option.autoheight) { control.animate({ height: control.children(':eq(' + start + ')').outerheight() }, option.autoheightspeed); } if (option.preload && control.children()[0].tagname == 'img') { elem.css({ background: 'url(' + option.preloadimage + ') no-repeat 50% 50%' }); var img = $('img:eq(' + start + ')', elem).attr('src') + '?' + (new date()).gettime(); $('img:eq(' + start + ')', elem).attr('src', img).load(function () { $(this).fadein(option.fadespeed, function () { $(this).css({ zindex: 5 }); elem.css({ background: '' }); loaded = true; }); }); } else { control.children(':eq(' + start + ')').fadein(option.fadespeed, function () { loaded = true; }); } if (option.bigtarget) { control.children().css({ cursor: 'pointer' }); control.children().click(function () { animate('next', effect); return false; }); } if (option.hoverpause && option.play) { control.children().bind('mouseover', function () { stop(); }); control.children().bind('mouseleave', function () { pause(); }); } if (option.generatenextprev) { $('.' + option.container, elem).after('prev'); $('.' + option.prev, elem).after('next'); } $('.' + option.next, elem).click(function (e) { e.preventdefault(); if (option.play) { pause(); }; animate('next', effect); }); $('.' + option.prev, elem).click(function (e) { e.preventdefault(); if (option.play) { pause(); }; animate('prev', effect); }); if (option.generatepagination) { elem.append(''); control.children().each(function () { $('.' + option.paginationclass, elem).append(''); number++; }); } else { $('.' + option.paginationclass + ' li a', elem).each(function () { $(this).attr('href', '#' + number); number++; }); } $('.' + option.paginationclass + ' li a[href=#' + start + ']', elem).parent().addclass('current'); $('.' + option.paginationclass + ' li a', elem).click(function () { if (option.play) { pause(); }; clicked = $(this).attr('href').replace('#', ''); if (current != clicked) { animate('pagination', paginationeffect, clicked); } return false; }); $('a.link', elem).click(function () { if (option.play) { pause(); }; clicked = $(this).attr('href').replace('#', '') - 1; if (current != clicked) { animate('pagination', paginationeffect, clicked); } return false; }); if (option.play) { playinterval = setinterval(function () { animate('next', effect); }, option.play); elem.data('interval', playinterval); }; function stop() { clearinterval(elem.data('interval')); }; function pause() { if (option.pause) { cleartimeout(elem.data('pause')); clearinterval(elem.data('interval')); pausetimeout = settimeout(function () { cleartimeout(elem.data('pause')); playinterval = setinterval(function () { animate("next", effect); }, option.play); elem.data('interval', playinterval); }, option.pause); elem.data('pause', pausetimeout); } else { stop(); } }; function animate(direction, effect, clicked) { if (!active && loaded) { active = true; switch (direction) { case 'next': prev = current; next = current + 1; next = total === next ? 0 : next; position = width * 2; direction = -width * 2; current = next; break; case 'prev': prev = current; next = current - 1; next = next === -1 ? total - 1 : next; position = 0; direction = 0; current = next; break; case 'pagination': next = parseint(clicked, 10); prev = $('.' + option.paginationclass + ' li.current a', elem).attr('href').replace('#', ''); if (next > prev) { position = width * 2; direction = -width * 2; } else { position = 0; direction = 0; } current = next; break; } if (effect === 'fade') { option.animationstart(); if (option.crossfade) { control.children(':eq(' + next + ')', elem).css({ zindex: 10 }).fadein(option.fadespeed, function () { control.children(':eq(' + prev + ')', elem).css({ display: 'none', zindex: 0 }); $(this).css({ zindex: 0 }); option.animationcomplete(next + 1); active = false; }); } else { option.animationstart(); control.children(':eq(' + prev + ')', elem).fadeout(option.fadespeed, function () { if (option.autoheight) { control.animate({ height: control.children(':eq(' + next + ')', elem).outerheight() }, option.autoheightspeed, function () { control.children(':eq(' + next + ')', elem).fadein(option.fadespeed); }); } else { control.children(':eq(' + next + ')', elem).fadein(option.fadespeed, function () { if ($.browser.msie) { $(this).get(0).style.removeattribute('filter'); } }); } option.animationcomplete(next + 1); active = false; }); } } else { control.children(':eq(' + next + ')').css({ left: position, display: 'block' }); if (option.autoheight) { option.animationstart(); control.animate({ left: direction, height: control.children(':eq(' + next + ')').outerheight() }, option.slidespeed, function () { control.css({ left: -width }); control.children(':eq(' + next + ')').css({ left: width, zindex: 5 }); control.children(':eq(' + prev + ')').css({ left: width, display: 'none', zindex: 0 }); option.animationcomplete(next + 1); active = false; }); } else { option.animationstart(); control.animate({ left: direction }, option.slidespeed, function () { control.css({ left: -width }); control.children(':eq(' + next + ')').css({ left: width, zindex: 5 }); control.children(':eq(' + prev + ')').css({ left: width, display: 'none', zindex: 0 }); option.animationcomplete(next + 1); active = false; }); } } if (option.pagination) { $('.' + option.paginationclass + ' li.current', elem).removeclass('current'); $('.' + option.paginationclass + ' li a[href=#' + next + ']', elem).parent().addclass('current'); } } }; }); }; $.fn.slides.option = { preload: false, container: 'slide', generatenextprev: false, next: 'next', prev: 'prev', pagination: true, generatepagination: true, paginationclass: 'pagination', fadespeed: 350, slidespeed: 350, start: 1, effect: 'slide', crossfade: false, randomize: false, play: 0, pause: 0, hoverpause: false, autoheight: false, autoheightspeed: 350, bigtarget: false, animationstart: function () { }, animationcomplete: function () { } }; $.fn.randomize = function (callback) { function randomizeorder() { return (math.round(math.random()) - 0.5); } return ($(this).each(function () { var $this = $(this); var $children = $this.children(); var childcount = $children.length; if (childcount > 1) { $children.hide(); var indices = []; for (i = 0; i < childcount; i++) { indices[indices.length] = i; } indices = indices.sort(randomizeorder); $.each(indices, function (j, k) { var $child = $children.eq(k); var $clone = $child.clone(true); $clone.show().appendto($this); if (callback !== undefined) { callback($child, $clone); } $child.remove(); }); } })); }; })(jquery); $(function () { $('#slides').slides( { preload: false, play: 5000, pause: 2500, hoverpause: true, animationstart: function () { $('.caption').animate( { bottom: -35 }, 100); }, animationcomplete: function (current) { $('.caption').animate( { bottom: 0 }, 200); if (window.console && console.log) { console.log(current); }; } }); });