Files
g.hnyhua.cn/Mtxfw.shop/Scripts/shop_global_site_top.js
2026-02-07 15:48:27 +08:00

5000 lines
179 KiB
JavaScript

/* SVN.committedRevision=188693 */
(function (ca, bw) {
function c() {
if (!bT.isReady) {
try {
bv.documentElement.doScroll("left")
} catch (a) {
setTimeout(c, 1);
return
}
bT.ready()
}
}
function bC(a, b) {
b.src ? bT.ajax({
url: b.src,
async: false,
dataType: "script"
}) : bT.globalEval(b.text || b.textContent || b.innerHTML || "");
b.parentNode && b.parentNode.removeChild(b)
}
function bL(g, i, d, h, f, b) {
var a = g.length;
if (typeof i === "object") {
for (var e in i) {
bL(g, e, i[e], h, f, d)
}
return g
}
if (d !== bw) {
h = !b && h && bT.isFunction(d);
for (e = 0; e < a; e++) {
f(g[e], i, h ? d.call(g[e], e, f(g[e], i)) : d, b)
}
return g
}
return a ? f(g[0], i) : bw
}
function cj() {
return (new Date).getTime()
}
function bM() {
return false
}
function bO() {
return true
}
function ce(b, d, a) {
a[0].type = b;
return bT.event.handle.apply(d, a)
}
function bU(d) {
var e, g = [],
i = [],
h = arguments,
l, k, m, a, j, f;
k = bT.data(this, "events");
if (!(d.liveFired === this || !k || !k.live || d.button && d.type === "click")) {
d.liveFired = this;
var b = k.live.slice(0);
for (a = 0; a < b.length; a++) {
k = b[a];
k.origType.replace(bx, "") === d.type ? i.push(k.selector) : b.splice(a--, 1)
}
l = bT(d.target).closest(i, d.currentTarget);
j = 0;
for (f = l.length; j < f; j++) {
for (a = 0; a < b.length; a++) {
k = b[a];
if (l[j].selector === k.selector) {
m = l[j].elem;
i = null;
if (k.preType === "mouseenter" || k.preType === "mouseleave") {
i = bT(d.relatedTarget).closest(k.selector)[0]
}
if (!i || i !== m) {
g.push({
elem: m,
handleObj: k
})
}
}
}
}
j = 0;
for (f = g.length; j < f; j++) {
l = g[j];
d.currentTarget = l.elem;
d.data = l.handleObj.data;
d.handleObj = l.handleObj;
if (l.handleObj.origHandler.apply(l.elem, h) === false) {
e = false;
break
}
}
return e
}
}
function s(a, b) {
return "live." + (a && a !== "*" ? a + "." : "") + b.replace(/\./g, "`").replace(/ /g, "&")
}
function R(a) {
return !a || !a.parentNode || a.parentNode.nodeType === 11
}
function bl(b, d) {
var a = 0;
d.each(function () {
if (this.nodeName === (b[a] && b[a].nodeName)) {
var g = bT.data(b[a++]),
f = bT.data(this, g);
if (g = g && g.events) {
delete f.handle;
f.events = {};
for (var e in g) {
for (var h in g[e]) {
bT.event.add(this, e, g[e][h], g[e][h].data)
}
}
}
}
})
}
function cv(e, g, d) {
var a, f, b;
g = g && g[0] ? g[0].ownerDocument || g[0] : bv;
if (e.length === 1 && typeof e[0] === "string" && e[0].length < 512 && g === bv && !b9.test(e[0]) && (bT.support.checkClone || !bQ.test(e[0]))) {
f = true;
if (b = bT.fragments[e[0]]) {
if (b !== 1) {
a = b
}
}
}
if (!a) {
a = g.createDocumentFragment();
bT.clean(e, g, a, d)
}
if (f) {
bT.fragments[e[0]] = b ? a : 1
}
return {
fragment: a,
cacheable: f
}
}
function cm(b, d) {
var a = {};
bT.each(bE.concat.apply([], bE.slice(0, d)), function () {
a[this] = b
});
return a
}
function O(a) {
return "scrollTo" in a && a.document ? a : a.nodeType === 9 ? a.defaultView || a.parentWindow : false
}
var bT = function (a, b) {
return new bT.fn.init(a, b)
},
N = ca.jQuery,
ab = ca.$,
bv = ca.document,
bH, cr = /^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,
b5 = /^.[^:#\[\.,]*$/,
bN = /\S/,
by = /^(\s|\u00A0)+|(\s|\u00A0)+$/g,
L = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
bA = navigator.userAgent,
a0 = false,
bD = [],
cn, cx = Object.prototype.toString,
b3 = Object.prototype.hasOwnProperty,
bz = Array.prototype.push,
bF = Array.prototype.slice,
cs = Array.prototype.indexOf;
bT.fn = bT.prototype = {
init: function (d, e) {
var a, b;
if (!d) {
return this
}
if (d.nodeType) {
this.context = this[0] = d;
this.length = 1;
return this
}
if (d === "body" && !e) {
this.context = bv;
this[0] = bv.body;
this.selector = "body";
this.length = 1;
return this
}
if (typeof d === "string") {
if ((a = cr.exec(d)) && (a[1] || !e)) {
if (a[1]) {
b = e ? e.ownerDocument || e : bv;
if (d = L.exec(d)) {
if (bT.isPlainObject(e)) {
d = [bv.createElement(d[1])];
bT.fn.attr.call(d, e, true)
} else {
d = [b.createElement(d[1])]
}
} else {
d = cv([a[1]], [b]);
d = (d.cacheable ? d.fragment.cloneNode(true) : d.fragment).childNodes
}
return bT.merge(this, d)
} else {
if (e = bv.getElementById(a[2])) {
if (e.id !== a[2]) {
return bH.find(d)
}
this.length = 1;
this[0] = e
}
this.context = bv;
this.selector = d;
return this
}
} else {
if (!e && /^\w+$/.test(d)) {
this.selector = d;
this.context = bv;
d = bv.getElementsByTagName(d);
return bT.merge(this, d)
} else {
return !e || e.jquery ? (e || bH).find(d) : bT(e).find(d)
}
}
} else {
if (bT.isFunction(d)) {
return bH.ready(d)
}
}
if (d.selector !== bw) {
this.selector = d.selector;
this.context = d.context
}
return bT.makeArray(d, this)
},
selector: "",
jquery: "1.4.2",
length: 0,
size: function () {
return this.length
},
toArray: function () {
return bF.call(this, 0)
},
get: function (a) {
return a == null ? this.toArray() : a < 0 ? this.slice(a)[0] : this[a]
},
pushStack: function (d, e, a) {
var b = bT();
bT.isArray(d) ? bz.apply(b, d) : bT.merge(b, d);
b.prevObject = this;
b.context = this.context;
if (e === "find") {
b.selector = this.selector + (this.selector ? " " : "") + a
} else {
if (e) {
b.selector = this.selector + "." + e + "(" + a + ")"
}
}
return b
},
each: function (a, b) {
return bT.each(this, a, b)
},
ready: function (a) {
bT.bindReady();
if (bT.isReady) {
a.call(bv, bT)
} else {
bD && bD.push(a)
}
return this
},
eq: function (a) {
return a === -1 ? this.slice(a) : this.slice(a, +a + 1)
},
first: function () {
return this.eq(0)
},
last: function () {
return this.eq(-1)
},
slice: function () {
return this.pushStack(bF.apply(this, arguments), "slice", bF.call(arguments).join(","))
},
map: function (a) {
return this.pushStack(bT.map(this, function (d, b) {
return a.call(d, b, d)
}))
},
end: function () {
return this.prevObject || bT(null)
},
push: bz,
sort: [].sort,
splice: [].splice
};
bT.fn.init.prototype = bT.fn;
bT.extend = bT.fn.extend = function () {
var g = arguments[0] || {},
i = 1,
d = arguments.length,
h = false,
f, b, a, e;
if (typeof g === "boolean") {
h = g;
g = arguments[1] || {};
i = 2
}
if (typeof g !== "object" && !bT.isFunction(g)) {
g = {}
}
if (d === i) {
g = this;
--i
}
for (; i < d; i++) {
if ((f = arguments[i]) != null) {
for (b in f) {
a = g[b];
e = f[b];
if (g !== e) {
if (h && e && (bT.isPlainObject(e) || bT.isArray(e))) {
a = a && (bT.isPlainObject(a) || bT.isArray(a)) ? a : bT.isArray(e) ? [] : {};
g[b] = bT.extend(h, a, e)
} else {
if (e !== bw) {
g[b] = e
}
}
}
}
}
}
return g
};
bT.extend({
noConflict: function (a) {
ca.$ = ab;
if (a) {
ca.jQuery = N
}
return bT
},
isReady: false,
ready: function () {
if (!bT.isReady) {
if (!bv.body) {
return setTimeout(bT.ready, 13)
}
bT.isReady = true;
if (bD) {
for (var a, b = 0; a = bD[b++];) {
a.call(bv, bT)
}
bD = null
}
bT.fn.triggerHandler && bT(bv).triggerHandler("ready")
}
},
bindReady: function () {
if (!a0) {
a0 = true;
if (bv.readyState === "complete") {
return bT.ready()
}
if (bv.addEventListener) {
bv.addEventListener("DOMContentLoaded", cn, false);
ca.addEventListener("load", bT.ready, false)
} else {
if (bv.attachEvent) {
bv.attachEvent("onreadystatechange", cn);
ca.attachEvent("onload", bT.ready);
var a = false;
try {
a = ca.frameElement == null
} catch (b) {}
bv.documentElement.doScroll && a && c()
}
}
}
},
isFunction: function (a) {
return cx.call(a) === "[object Function]"
},
isArray: function (a) {
return cx.call(a) === "[object Array]"
},
isPlainObject: function (a) {
if (!a || cx.call(a) !== "[object Object]" || a.nodeType || a.setInterval) {
return false
}
if (a.constructor && !b3.call(a, "constructor") && !b3.call(a.constructor.prototype, "isPrototypeOf")) {
return false
}
var b;
for (b in a) {}
return b === bw || b3.call(a, b)
},
isEmptyObject: function (a) {
for (var b in a) {
return false
}
return true
},
error: function (a) {
throw a
},
parseJSON: function (a) {
if (typeof a !== "string" || !a) {
return null
}
a = bT.trim(a);
if (/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, "@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, "]").replace(/(?:^|:|,)(?:\s*\[)+/g, ""))) {
return ca.JSON && ca.JSON.parse ? ca.JSON.parse(a) : (new Function("return " + a))()
} else {
bT.error("Invalid JSON: " + a)
}
},
noop: function () {},
globalEval: function (b) {
if (b && bN.test(b)) {
var d = bv.getElementsByTagName("head")[0] || bv.documentElement,
a = bv.createElement("script");
a.type = "text/javascript";
if (bT.support.scriptEval) {
a.appendChild(bv.createTextNode(b))
} else {
a.text = b
}
d.insertBefore(a, d.firstChild);
d.removeChild(a)
}
},
nodeName: function (a, b) {
return a.nodeName && a.nodeName.toUpperCase() === b.toUpperCase()
},
each: function (f, h, d) {
var g, e = 0,
b = f.length,
a = b === bw || bT.isFunction(f);
if (d) {
if (a) {
for (g in f) {
if (h.apply(f[g], d) === false) {
break
}
}
} else {
for (; e < b;) {
if (h.apply(f[e++], d) === false) {
break
}
}
}
} else {
if (a) {
for (g in f) {
if (h.call(f[g], g, f[g]) === false) {
break
}
}
} else {
for (d = f[0]; e < b && h.call(d, e, d) !== false; d = f[++e]) {}
}
}
return f
},
trim: function (a) {
return (a || "").replace(by, "")
},
makeArray: function (a, b) {
b = b || [];
if (a != null) {
a.length == null || typeof a === "string" || bT.isFunction(a) || typeof a !== "function" && a.setInterval ? bz.call(b, a) : bT.merge(b, a)
}
return b
},
inArray: function (d, e) {
if (e.indexOf) {
return e.indexOf(d)
}
for (var a = 0, b = e.length; a < b; a++) {
if (e[a] === d) {
return a
}
}
return -1
},
merge: function (d, f) {
var e = d.length,
b = 0;
if (typeof f.length === "number") {
for (var a = f.length; b < a; b++) {
d[e++] = f[b]
}
} else {
for (; f[b] !== bw;) {
d[e++] = f[b++]
}
}
d.length = e;
return d
},
grep: function (e, g, d) {
for (var a = [], f = 0, b = e.length; f < b; f++) {
!d !== !g(e[f], f) && a.push(e[f])
}
return a
},
map: function (f, h, d) {
for (var g = [], e, b = 0, a = f.length; b < a; b++) {
e = h(f[b], b, d);
if (e != null) {
g[g.length] = e
}
}
return g.concat.apply([], g)
},
guid: 1,
proxy: function (b, d, a) {
if (arguments.length === 2) {
if (typeof d === "string") {
a = b;
b = a[d];
d = bw
} else {
if (d && !bT.isFunction(d)) {
a = d;
d = bw
}
}
}
if (!d && b) {
d = function () {
return b.apply(a || this, arguments)
}
}
if (b) {
d.guid = b.guid = b.guid || d.guid || bT.guid++
}
return d
},
uaMatch: function (a) {
a = a.toLowerCase();
a = /(webkit)[ \/]([\w.]+)/.exec(a) || /(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a) || /(msie) ([\w.]+)/.exec(a) || !/compatible/.test(a) && /(mozilla)(?:.*? rv:([\w.]+))?/.exec(a) || [];
return {
browser: a[1] || "",
version: a[2] || "0"
}
},
browser: {}
});
bA = bT.uaMatch(bA);
if (bA.browser) {
bT.browser[bA.browser] = true;
bT.browser.version = bA.version
}
if (bT.browser.webkit) {
bT.browser.safari = true
}
if (cs) {
bT.inArray = function (a, b) {
return cs.call(b, a)
}
}
bH = bT(bv);
if (bv.addEventListener) {
cn = function () {
bv.removeEventListener("DOMContentLoaded", cn, false);
bT.ready()
}
} else {
if (bv.attachEvent) {
cn = function () {
if (bv.readyState === "complete") {
bv.detachEvent("onreadystatechange", cn);
bT.ready()
}
}
}
}(function () {
bT.support = {};
var d = bv.documentElement,
e = bv.createElement("script"),
f = bv.createElement("div"),
i = "script" + cj();
f.style.display = "none";
f.innerHTML = " <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
var h = f.getElementsByTagName("*"),
g = f.getElementsByTagName("a")[0];
if (!(!h || !h.length || !g)) {
bT.support = {
leadingWhitespace: f.firstChild.nodeType === 3,
tbody: !f.getElementsByTagName("tbody").length,
htmlSerialize: !! f.getElementsByTagName("link").length,
style: /red/.test(g.getAttribute("style")),
hrefNormalized: g.getAttribute("href") === "/a",
opacity: /^0.55$/.test(g.style.opacity),
cssFloat: !! g.style.cssFloat,
checkOn: f.getElementsByTagName("input")[0].value === "on",
optSelected: bv.createElement("select").appendChild(bv.createElement("option")).selected,
parentNode: f.removeChild(f.appendChild(bv.createElement("div"))).parentNode === null,
deleteExpando: true,
checkClone: false,
scriptEval: false,
noCloneEvent: true,
boxModel: null
};
e.type = "text/javascript";
try {
e.appendChild(bv.createTextNode("window." + i + "=1;"))
} catch (a) {}
d.insertBefore(e, d.firstChild);
if (ca[i]) {
bT.support.scriptEval = true;
delete ca[i]
}
try {
delete e.test
} catch (b) {
bT.support.deleteExpando = false
}
d.removeChild(e);
if (f.attachEvent && f.fireEvent) {
f.attachEvent("onclick", function j() {
bT.support.noCloneEvent = false;
f.detachEvent("onclick", j)
});
f.cloneNode(true).fireEvent("onclick")
}
f = bv.createElement("div");
f.innerHTML = "<input type='radio' name='radiotest' checked='checked'/>";
d = bv.createDocumentFragment();
d.appendChild(f.firstChild);
bT.support.checkClone = d.cloneNode(true).cloneNode(true).lastChild.checked;
bT(function () {
var k = bv.createElement("div");
k.style.width = k.style.paddingLeft = "1px";
bv.body.appendChild(k);
bT.boxModel = bT.support.boxModel = k.offsetWidth === 2;
bv.body.removeChild(k).style.display = "none"
});
d = function (m) {
var k = bv.createElement("div");
m = "on" + m;
var l = m in k;
if (!l) {
k.setAttribute(m, "return;");
l = typeof k[m] === "function"
}
return l
};
bT.support.submitBubbles = d("submit");
bT.support.changeBubbles = d("change");
d = e = f = h = g = null
}
})();
bT.props = {
"for": "htmlFor",
"class": "className",
readonly: "readOnly",
maxlength: "maxLength",
cellspacing: "cellSpacing",
rowspan: "rowSpan",
colspan: "colSpan",
tabindex: "tabIndex",
usemap: "useMap",
frameborder: "frameBorder"
};
var ch = "jQuery" + cj(),
aa = 0,
b6 = {};
bT.extend({
cache: {},
expando: ch,
noData: {
embed: true,
object: true,
applet: true
},
data: function (d, f, e) {
if (!(d.nodeName && bT.noData[d.nodeName.toLowerCase()])) {
d = d == ca ? b6 : d;
var b = d[ch],
a = bT.cache;
if (!b && typeof f === "string" && e === bw) {
return null
}
b || (b = ++aa);
if (typeof f === "object") {
d[ch] = b;
a[b] = bT.extend(true, {}, f)
} else {
if (!a[b]) {
d[ch] = b;
a[b] = {}
}
}
d = a[b];
if (e !== bw) {
d[f] = e
}
return typeof f === "string" ? d[f] : d
}
},
removeData: function (d, f) {
if (!(d.nodeName && bT.noData[d.nodeName.toLowerCase()])) {
d = d == ca ? b6 : d;
var e = d[ch],
b = bT.cache,
a = b[e];
if (f) {
if (a) {
delete a[f];
bT.isEmptyObject(a) && bT.removeData(d)
}
} else {
if (bT.support.deleteExpando) {
delete d[bT.expando]
} else {
d.removeAttribute && d.removeAttribute(bT.expando)
}
delete b[e]
}
}
}
});
bT.fn.extend({
data: function (d, e) {
if (typeof d === "undefined" && this.length) {
return bT.data(this[0])
} else {
if (typeof d === "object") {
return this.each(function () {
bT.data(this, d)
})
}
}
var a = d.split(".");
a[1] = a[1] ? "." + a[1] : "";
if (e === bw) {
var b = this.triggerHandler("getData" + a[1] + "!", [a[0]]);
if (b === bw && this.length) {
b = bT.data(this[0], d)
}
return b === bw && a[1] ? this.data(a[0]) : b
} else {
return this.trigger("setData" + a[1] + "!", [a[0], e]).each(function () {
bT.data(this, d, e)
})
}
},
removeData: function (a) {
return this.each(function () {
bT.removeData(this, a)
})
}
});
bT.extend({
queue: function (d, e, a) {
if (d) {
e = (e || "fx") + "queue";
var b = bT.data(d, e);
if (!a) {
return b || []
}
if (!b || bT.isArray(a)) {
b = bT.data(d, e, bT.makeArray(a))
} else {
b.push(a)
}
return b
}
},
dequeue: function (d, e) {
e = e || "fx";
var a = bT.queue(d, e),
b = a.shift();
if (b === "inprogress") {
b = a.shift()
}
if (b) {
e === "fx" && a.unshift("inprogress");
b.call(d, function () {
bT.dequeue(d, e)
})
}
}
});
bT.fn.extend({
queue: function (a, b) {
if (typeof a !== "string") {
b = a;
a = "fx"
}
if (b === bw) {
return bT.queue(this[0], a)
}
return this.each(function () {
var d = bT.queue(this, a, b);
a === "fx" && d[0] !== "inprogress" && bT.dequeue(this, a)
})
},
dequeue: function (a) {
return this.each(function () {
bT.dequeue(this, a)
})
},
delay: function (a, b) {
a = bT.fx ? bT.fx.speeds[a] || a : a;
b = b || "fx";
return this.queue(b, function () {
var d = this;
setTimeout(function () {
bT.dequeue(d, b)
}, a)
})
},
clearQueue: function (a) {
return this.queue(a || "fx", [])
}
});
var br = /[\n\t]/g,
bp = /\s+/,
cq = /\r/g,
cc = /href|src|style/,
b4 = /(button|input)/i,
bB = /(button|input|object|select|textarea)/i,
bs = /^(a|area)$/i,
b0 = /radio|checkbox/;
bT.fn.extend({
attr: function (a, b) {
return bL(this, a, b, true, bT.attr)
},
removeAttr: function (a) {
return this.each(function () {
bT.attr(this, a, "");
this.nodeType === 1 && this.removeAttribute(a)
})
},
addClass: function (d) {
if (bT.isFunction(d)) {
return this.each(function (k) {
var l = bT(this);
l.addClass(d.call(this, k, l.attr("class")))
})
}
if (d && typeof d === "string") {
for (var e = (d || "").split(bp), f = 0, i = this.length; f < i; f++) {
var h = this[f];
if (h.nodeType === 1) {
if (h.className) {
for (var g = " " + h.className + " ", a = h.className, b = 0, j = e.length; b < j; b++) {
if (g.indexOf(" " + e[b] + " ") < 0) {
a += " " + e[b]
}
}
h.className = bT.trim(a)
} else {
h.className = d
}
}
}
}
return this
},
removeClass: function (g) {
if (bT.isFunction(g)) {
return this.each(function (j) {
var k = bT(this);
k.removeClass(g.call(this, j, k.attr("class")))
})
}
if (g && typeof g === "string" || g === bw) {
for (var i = (g || "").split(bp), d = 0, h = this.length;
d < h; d++) {
var f = this[d];
if (f.nodeType === 1 && f.className) {
if (g) {
for (var b = (" " + f.className + " ").replace(br, " "), a = 0, e = i.length; a < e; a++) {
b = b.replace(" " + i[a] + " ", " ")
}
f.className = bT.trim(b)
} else {
f.className = ""
}
}
}
}
return this
},
toggleClass: function (d, e) {
var a = typeof d,
b = typeof e === "boolean";
if (bT.isFunction(d)) {
return this.each(function (f) {
var g = bT(this);
g.toggleClass(d.call(this, f, g.attr("class"), e), e)
})
}
return this.each(function () {
if (a === "string") {
for (var g, i = 0, h = bT(this), f = e, j = d.split(bp); g = j[i++];) {
f = b ? f : !h.hasClass(g);
h[f ? "addClass" : "removeClass"](g)
}
} else {
if (a === "undefined" || a === "boolean") {
this.className && bT.data(this, "__className__", this.className);
this.className = this.className || d === false ? "" : bT.data(this, "__className__") || ""
}
}
})
},
hasClass: function (b) {
b = " " + b + " ";
for (var d = 0, a = this.length; d < a;
d++) {
if ((" " + this[d].className + " ").replace(br, " ").indexOf(b) > -1) {
return true
}
}
return false
},
val: function (g) {
if (g === bw) {
var i = this[0];
if (i) {
if (bT.nodeName(i, "option")) {
return (i.attributes.value || {}).specified ? i.value : i.text
}
if (bT.nodeName(i, "select")) {
var d = i.selectedIndex,
h = [],
f = i.options;
i = i.type === "select-one";
if (d < 0) {
return null
}
var b = i ? d : 0;
for (d = i ? d + 1 : f.length; b < d; b++) {
var a = f[b];
if (a.selected) {
g = bT(a).val();
if (i) {
return g
}
h.push(g)
}
}
return h
}
if (b0.test(i.type) && !bT.support.checkOn) {
return i.getAttribute("value") === null ? "on" : i.value
}
return (i.value || "").replace(cq, "")
}
return bw
}
var e = bT.isFunction(g);
return this.each(function (j) {
var k = bT(this),
l = g;
if (this.nodeType === 1) {
if (e) {
l = g.call(this, j, k.val())
}
if (typeof l === "number") {
l += ""
}
if (bT.isArray(l) && b0.test(this.type)) {
this.checked = bT.inArray(k.val(), l) >= 0
} else {
if (bT.nodeName(this, "select")) {
var m = bT.makeArray(l);
bT("option", this).each(function () {
this.selected = bT.inArray(bT(this).val(), m) >= 0
});
if (!m.length) {
this.selectedIndex = -1
}
} else {
this.value = l
}
}
}
})
}
});
bT.extend({
attrFn: {
val: true,
css: true,
html: true,
text: true,
data: true,
width: true,
height: true,
offset: true
},
attr: function (e, g, d, a) {
if (!e || e.nodeType === 3 || e.nodeType === 8) {
return bw
}
if (a && g in bT.attrFn) {
return bT(e)[g](d)
}
a = e.nodeType !== 1 || !bT.isXMLDoc(e);
var f = d !== bw;
g = a && bT.props[g] || g;
if (e.nodeType === 1) {
var b = cc.test(g);
if (g in e && a && !b) {
if (f) {
g === "type" && b4.test(e.nodeName) && e.parentNode && bT.error("type property can't be changed");
e[g] = d
}
if (bT.nodeName(e, "form") && e.getAttributeNode(g)) {
return e.getAttributeNode(g).nodeValue
}
if (g === "tabIndex") {
return (g = e.getAttributeNode("tabIndex")) && g.specified ? g.value : bB.test(e.nodeName) || bs.test(e.nodeName) && e.href ? 0 : bw
}
return e[g]
}
if (!bT.support.style && a && g === "style") {
if (f) {
e.style.cssText = "" + d
}
return e.style.cssText
}
f && e.setAttribute(g, "" + d);
e = !bT.support.hrefNormalized && a && b ? e.getAttribute(g, 2) : e.getAttribute(g);
return e === null ? bw : e
}
return bT.style(e, g, d)
}
});
var bx = /\.(.*)$/,
K = function (a) {
return a.replace(/[^\w\s\.\|`]/g, function (b) {
return "\\" + b
})
};
bT.event = {
add: function (d, e, h, j) {
if (!(d.nodeType === 3 || d.nodeType === 8)) {
if (d.setInterval && d !== ca && !d.frameElement) {
d = ca
}
var i, m;
if (h.handler) {
i = h;
h = i.handler
}
if (!h.guid) {
h.guid = bT.guid++
}
if (m = bT.data(d)) {
var l = m.events = m.events || {},
n = m.handle;
if (!n) {
m.handle = n = function () {
return typeof bT !== "undefined" && !bT.event.triggered ? bT.event.handle.apply(n.elem, arguments) : bw
}
}
n.elem = d;
e = e.split(" ");
for (var a, k = 0, g; a = e[k++];) {
m = i ? bT.extend({}, i) : {
handler: h,
data: j
};
if (a.indexOf(".") > -1) {
g = a.split(".");
a = g.shift();
m.namespace = g.slice(0).sort().join(".")
} else {
g = [];
m.namespace = ""
}
m.type = a;
m.guid = h.guid;
var b = l[a],
f = bT.event.special[a] || {};
if (!b) {
b = l[a] = [];
if (!f.setup || f.setup.call(d, j, g, n) === false) {
if (d.addEventListener) {
d.addEventListener(a, n, false)
} else {
d.attachEvent && d.attachEvent("on" + a, n)
}
}
}
if (f.add) {
f.add.call(d, m);
if (!m.handler.guid) {
m.handler.guid = h.guid
}
}
b.push(m);
bT.event.global[a] = true
}
d = null
}
}
},
global: {},
remove: function (d, e, g, j) {
if (!(d.nodeType === 3 || d.nodeType === 8)) {
var h, l = 0,
k, a, n, o, i, b, f = bT.data(d),
p = f && f.events;
if (f && p) {
if (e && e.type) {
g = e.handler;
e = e.type
}
if (!e || typeof e === "string" && e.charAt(0) === ".") {
e = e || "";
for (h in p) {
bT.event.remove(d, h + e)
}
} else {
for (e = e.split(" "); h = e[l++];) {
o = h;
k = h.indexOf(".") < 0;
a = [];
if (!k) {
a = h.split(".");
h = a.shift();
n = new RegExp("(^|\\.)" + bT.map(a.slice(0).sort(), K).join("\\.(?:.*\\.)?") + "(\\.|$)")
}
if (i = p[h]) {
if (g) {
o = bT.event.special[h] || {};
for (m = j || 0; m < i.length; m++) {
b = i[m];
if (g.guid === b.guid) {
if (k || n.test(b.namespace)) {
j == null && i.splice(m--, 1);
o.remove && o.remove.call(d, b)
}
if (j != null) {
break
}
}
}
if (i.length === 0 || j != null && i.length === 1) {
if (!o.teardown || o.teardown.call(d, a) === false) {
ci(d, h, f.handle)
}
delete p[h]
}
} else {
for (var m = 0; m < i.length; m++) {
b = i[m];
if (k || n.test(b.namespace)) {
bT.event.remove(d, o, b.handler, m);
i.splice(m--, 1)
}
}
}
}
}
if (bT.isEmptyObject(p)) {
if (e = f.handle) {
e.elem = null
}
delete f.events;
delete f.handle;
bT.isEmptyObject(f) && bT.removeData(d)
}
}
}
}
},
trigger: function (b, e, f, i) {
var g = b.type || b;
if (!i) {
b = typeof b === "object" ? b[ch] ? b : bT.extend(bT.Event(g), b) : bT.Event(g);
if (g.indexOf("!") >= 0) {
b.type = g = g.slice(0, -1);
b.exclusive = true
}
if (!f) {
b.stopPropagation();
bT.event.global[g] && bT.each(bT.cache, function () {
this.events && this.events[g] && bT.event.trigger(b, e, this.handle.elem)
})
}
if (!f || f.nodeType === 3 || f.nodeType === 8) {
return bw
}
b.result = bw;
b.target = f;
e = bT.makeArray(e);
e.unshift(b)
}
b.currentTarget = f;
(i = bT.data(f, "handle")) && i.apply(f, e);
i = f.parentNode || f.ownerDocument;
try {
if (!(f && f.nodeName && bT.noData[f.nodeName.toLowerCase()])) {
if (f["on" + g] && f["on" + g].apply(f, e) === false) {
b.result = false
}
}
} catch (a) {}
if (!b.isPropagationStopped() && i) {
bT.event.trigger(b, e, i, true)
} else {
if (!b.isDefaultPrevented()) {
i = b.target;
var j, d = bT.nodeName(i, "a") && g === "click",
h = bT.event.special[g] || {};
if ((!h._default || h._default.call(f, b) === false) && !d && !(i && i.nodeName && bT.noData[i.nodeName.toLowerCase()])) {
try {
if (i[g]) {
if (j = i["on" + g]) {
i["on" + g] = null
}
bT.event.triggered = true;
i[g]()
}
} catch (k) {}
if (j) {
i["on" + g] = j
}
bT.event.triggered = false
}
}
}
},
handle: function (f) {
var h, d, g, e;
f = arguments[0] = bT.event.fix(f || ca.event);
f.currentTarget = this;
h = f.type.indexOf(".") < 0 && !f.exclusive;
if (!h) {
d = f.type.split(".");
f.type = d.shift();
g = new RegExp("(^|\\.)" + d.slice(0).sort().join("\\.(?:.*\\.)?") + "(\\.|$)")
}
e = bT.data(this, "events");
d = e[f.type];
if (e && d) {
d = d.slice(0);
e = 0;
for (var b = d.length; e < b; e++) {
var a = d[e];
if (h || g.test(a.namespace)) {
f.handler = a.handler;
f.data = a.data;
f.handleObj = a;
a = a.handler.apply(this, arguments);
if (a !== bw) {
f.result = a;
if (a === false) {
f.preventDefault();
f.stopPropagation()
}
}
if (f.isImmediatePropagationStopped()) {
break
}
}
}
}
return f.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 originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix: function (d) {
if (d[ch]) {
return d
}
var e = d;
d = bT.Event(e);
for (var a = this.props.length, b; a;) {
b = this.props[--a];
d[b] = e[b]
}
if (!d.target) {
d.target = d.srcElement || bv
}
if (d.target.nodeType === 3) {
d.target = d.target.parentNode
}
if (!d.relatedTarget && d.fromElement) {
d.relatedTarget = d.fromElement === d.target ? d.toElement : d.fromElement
}
if (d.pageX == null && d.clientX != null) {
e = bv.documentElement;
a = bv.body;
d.pageX = d.clientX + (e && e.scrollLeft || a && a.scrollLeft || 0) - (e && e.clientLeft || a && a.clientLeft || 0);
d.pageY = d.clientY + (e && e.scrollTop || a && a.scrollTop || 0) - (e && e.clientTop || a && a.clientTop || 0)
}
if (!d.which && (d.charCode || d.charCode === 0 ? d.charCode : d.keyCode)) {
d.which = d.charCode || d.keyCode
}
if (!d.metaKey && d.ctrlKey) {
d.metaKey = d.ctrlKey
}
if (!d.which && d.button !== bw) {
d.which = d.button & 1 ? 1 : d.button & 2 ? 3 : d.button & 4 ? 2 : 0
}
return d
},
guid: 100000000,
proxy: bT.proxy,
special: {
ready: {
setup: bT.bindReady,
teardown: bT.noop
},
live: {
add: function (a) {
bT.event.add(this, a.origType, bT.extend({}, a, {
handler: bU
}))
},
remove: function (b) {
var d = true,
a = b.origType.replace(bx, "");
bT.each(bT.data(this, "events").live || [], function () {
if (a === this.origType.replace(bx, "")) {
return d = false
}
});
d && bT.event.remove(this, b.origType, bU)
}
},
beforeunload: {
setup: function (b, d, a) {
if (this.setInterval) {
this.onbeforeunload = a
}
return false
},
teardown: function (a, b) {
if (this.onbeforeunload === b) {
this.onbeforeunload = null
}
}
}
}
};
var ci = bv.removeEventListener ?
function (b, d, a) {
b.removeEventListener(d, a, false)
} : function (b, d, a) {
b.detachEvent("on" + d, a)
};
bT.Event = function (a) {
if (!this.preventDefault) {
return new bT.Event(a)
}
if (a && a.type) {
this.originalEvent = a;
this.type = a.type
} else {
this.type = a
}
this.timeStamp = cj();
this[ch] = true
};
bT.Event.prototype = {
preventDefault: function () {
this.isDefaultPrevented = bO;
var a = this.originalEvent;
if (a) {
a.preventDefault && a.preventDefault();
a.returnValue = false
}
},
stopPropagation: function () {
this.isPropagationStopped = bO;
var a = this.originalEvent;
if (a) {
a.stopPropagation && a.stopPropagation();
a.cancelBubble = true
}
},
stopImmediatePropagation: function () {
this.isImmediatePropagationStopped = bO;
this.stopPropagation()
},
isDefaultPrevented: bM,
isPropagationStopped: bM,
isImmediatePropagationStopped: bM
};
var bW = function (b) {
var d = b.relatedTarget;
try {
for (; d && d !== this;) {
d = d.parentNode
}
if (d !== this) {
b.type = b.data;
bT.event.handle.apply(this, arguments)
}
} catch (a) {}
},
A = function (a) {
a.type = a.data;
bT.event.handle.apply(this, arguments)
};
bT.each({
mouseenter: "mouseover",
mouseleave: "mouseout"
}, function (a, b) {
bT.event.special[a] = {
setup: function (d) {
bT.event.add(this, b, d && d.selector ? A : bW, a)
},
teardown: function (d) {
bT.event.remove(this, b, d && d.selector ? A : bW)
}
}
});
if (!bT.support.submitBubbles) {
bT.event.special.submit = {
setup: function () {
if (this.nodeName.toLowerCase() !== "form") {
bT.event.add(this, "click.specialSubmit", function (b) {
var d = b.target,
a = d.type;
if ((a === "submit" || a === "image") && bT(d).closest("form").length) {
return ce("submit", this, arguments)
}
});
bT.event.add(this, "keypress.specialSubmit", function (b) {
var d = b.target,
a = d.type;
if ((a === "text" || a === "password") && bT(d).closest("form").length && b.keyCode === 13) {
return ce("submit", this, arguments)
}
})
} else {
return false
}
},
teardown: function () {
bT.event.remove(this, ".specialSubmit")
}
}
}
if (!bT.support.changeBubbles) {
var J = /textarea|input|select/i,
Y, V = function (b) {
var d = b.type,
a = b.value;
if (d === "radio" || d === "checkbox") {
a = b.checked
} else {
if (d === "select-multiple") {
a = b.selectedIndex > -1 ? bT.map(b.options, function (e) {
return e.selected
}).join("-") : ""
} else {
if (b.nodeName.toLowerCase() === "select") {
a = b.selectedIndex
}
}
}
return a
},
bt = function (d, f) {
var e = d.target,
b, a;
if (!(!J.test(e.nodeName) || e.readOnly)) {
b = bT.data(e, "_change_data");
a = V(e);
if (d.type !== "focusout" || e.type !== "radio") {
bT.data(e, "_change_data", a)
}
if (!(b === bw || a === b)) {
if (b != null || a) {
d.type = "change";
return bT.event.trigger(d, f, e)
}
}
}
};
bT.event.special.change = {
filters: {
focusout: bt,
click: function (b) {
var d = b.target,
a = d.type;
if (a === "radio" || a === "checkbox" || d.nodeName.toLowerCase() === "select") {
return bt.call(this, b)
}
},
keydown: function (b) {
var d = b.target,
a = d.type;
if (b.keyCode === 13 && d.nodeName.toLowerCase() !== "textarea" || b.keyCode === 32 && (a === "checkbox" || a === "radio") || a === "select-multiple") {
return bt.call(this, b)
}
},
beforeactivate: function (a) {
a = a.target;
bT.data(a, "_change_data", V(a))
}
},
setup: function () {
if (this.type === "file") {
return false
}
for (var a in Y) {
bT.event.add(this, a + ".specialChange", Y[a])
}
return J.test(this.nodeName)
},
teardown: function () {
bT.event.remove(this, ".specialChange");
return J.test(this.nodeName)
}
};
Y = bT.event.special.change.filters
}
bv.addEventListener && bT.each({
focus: "focusin",
blur: "focusout"
}, function (b, d) {
function a(e) {
e = bT.event.fix(e);
e.type = d;
return bT.event.handle.call(this, e)
}
bT.event.special[d] = {
setup: function () {
this.addEventListener(b, a, true)
},
teardown: function () {
this.removeEventListener(b, a, true)
}
}
});
bT.each(["bind", "one"], function (a, b) {
bT.fn[b] = function (f, i, h) {
if (typeof f === "object") {
for (var e in f) {
this[b](e, i, f[e], h)
}
return this
}
if (bT.isFunction(i)) {
h = i;
i = bw
}
var d = b === "one" ? bT.proxy(h, function (j) {
bT(this).unbind(j, d);
return h.apply(this, arguments)
}) : h;
if (f === "unload" && b !== "one") {
this.one(f, i, h)
} else {
e = 0;
for (var g = this.length; e < g; e++) {
bT.event.add(this[e], f, d, i)
}
}
return this
}
});
bT.fn.extend({
unbind: function (d, e) {
if (typeof d === "object" && !d.preventDefault) {
for (var a in d) {
this.unbind(a, d[a])
}
} else {
a = 0;
for (var b = this.length; a < b; a++) {
bT.event.remove(this[a], d, e)
}
}
return this
},
delegate: function (d, e, a, b) {
return this.live(e, a, b, d)
},
undelegate: function (b, d, a) {
return arguments.length === 0 ? this.unbind("live") : this.die(d, null, a, b)
},
trigger: function (a, b) {
return this.each(function () {
bT.event.trigger(a, b, this)
})
},
triggerHandler: function (a, b) {
if (this[0]) {
a = bT.Event(a);
a.preventDefault();
a.stopPropagation();
bT.event.trigger(a, b, this[0]);
return a.result
}
},
toggle: function (b) {
for (var d = arguments, a = 1; a < d.length;) {
bT.proxy(b, d[a++])
}
return this.click(bT.proxy(b, function (e) {
var f = (bT.data(this, "lastToggle" + b.guid) || 0) % a;
bT.data(this, "lastToggle" + b.guid, f + 1);
e.preventDefault();
return d[f].apply(this, arguments) || false
}))
},
hover: function (a, b) {
return this.mouseenter(a).mouseleave(b || a)
}
});
var bn = {
focus: "focusin",
blur: "focusout",
mouseenter: "mouseover",
mouseleave: "mouseout"
};
bT.each(["live", "die"], function (a, b) {
bT.fn[b] = function (f, h, g, j) {
var i, d = 0,
l, m, k = j || this.selector,
e = j ? this : bT(this.context);
if (bT.isFunction(h)) {
g = h;
h = bw
}
for (f = (f || "").split(" ");
(i = f[d++]) != null;) {
j = bx.exec(i);
l = "";
if (j) {
l = j[0];
i = i.replace(bx, "")
}
if (i === "hover") {
f.push("mouseenter" + l, "mouseleave" + l)
} else {
m = i;
if (i === "focus" || i === "blur") {
f.push(bn[i] + l);
i += l
} else {
i = (bn[i] || i) + l
}
b === "live" ? e.each(function () {
bT.event.add(this, s(i, k), {
data: h,
selector: k,
handler: g,
origType: i,
origHandler: g,
preType: m
})
}) : e.unbind(s(i, k), g)
}
}
return this
}
});
bT.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) {
bT.fn[b] = function (d) {
return d ? this.bind(b, d) : this.trigger(b)
};
if (bT.attrFn) {
bT.attrFn[b] = true
}
});
ca.attachEvent && !ca.addEventListener && ca.attachEvent("onunload", function () {
for (var a in bT.cache) {
if (bT.cache[a].handle) {
try {
bT.event.remove(bT.cache[a].handle.elem)
} catch (b) {}
}
}
});
(function () {
function b(u) {
for (var x = "", v, y = 0; u[y]; y++) {
v = u[y];
if (v.nodeType === 3 || v.nodeType === 4) {
x += v.nodeValue
} else {
if (v.nodeType !== 8) {
x += b(v.childNodes)
}
}
}
return x
}
function d(C, D, E, u, x, v) {
x = 0;
for (var z = u.length; x < z; x++) {
var y = u[x];
if (y) {
y = y[C];
for (var B = false; y;) {
if (y.sizcache === E) {
B = u[y.sizset];
break
}
if (y.nodeType === 1 && !v) {
y.sizcache = E;
y.sizset = x
}
if (y.nodeName.toLowerCase() === D) {
B = y;
break
}
y = y[C]
}
u[x] = B
}
}
}
function e(C, D, E, u, x, v) {
x = 0;
for (var z = u.length; x < z; x++) {
var y = u[x];
if (y) {
y = y[C];
for (var B = false; y;) {
if (y.sizcache === E) {
B = u[y.sizset];
break
}
if (y.nodeType === 1) {
if (!v) {
y.sizcache = E;
y.sizset = x
}
if (typeof D !== "string") {
if (y === D) {
B = true;
break
}
} else {
if (j.filter(D, [y]).length > 0) {
B = y;
break
}
}
}
y = y[C]
}
u[x] = B
}
}
}
var g = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
f = 0,
i = Object.prototype.toString,
h = false,
l = true;
[0, 0].sort(function () {
l = false;
return 0
});
var j = function (C, D, H, U) {
H = H || [];
var y = D = D || bv;
if (D.nodeType !== 1 && D.nodeType !== 9) {
return []
}
if (!C || typeof C !== "string") {
return H
}
for (var v = [], M, I, x, E, S = true, B = q(D), u = C;
(g.exec(""), M = g.exec(u)) !== null;) {
u = M[3];
v.push(M[1]);
if (M[2]) {
E = M[3];
break
}
}
if (v.length > 1 && o.exec(C)) {
if (v.length === 2 && k.relative[v[0]]) {
I = a(v[0] + v[1], D)
} else {
for (I = k.relative[v[0]] ? [D] : j(v.shift(), D); v.length;) {
C = v.shift();
if (k.relative[C]) {
C += v.shift()
}
I = a(C, I)
}
}
} else {
if (!U && v.length > 1 && D.nodeType === 9 && !B && k.match.ID.test(v[0]) && !k.match.ID.test(v[v.length - 1])) {
M = j.find(v.shift(), D, B);
D = M.expr ? j.filter(M.expr, M.set)[0] : M.set[0]
}
if (D) {
M = U ? {
expr: v.pop(),
set: t(U)
} : j.find(v.pop(), v.length === 1 && (v[0] === "~" || v[0] === "+") && D.parentNode ? D.parentNode : D, B);
I = M.expr ? j.filter(M.expr, M.set) : M.set;
if (v.length > 0) {
x = t(I)
} else {
S = false
}
for (; v.length;) {
var z = v.pop();
M = z;
if (k.relative[z]) {
M = v.pop()
} else {
z = ""
}
if (M == null) {
M = D
}
k.relative[z](x, M, B)
}
} else {
x = []
}
}
x || (x = I);
x || j.error(z || C);
if (i.call(x) === "[object Array]") {
if (S) {
if (D && D.nodeType === 1) {
for (C = 0; x[C] != null; C++) {
if (x[C] && (x[C] === true || x[C].nodeType === 1 && r(D, x[C]))) {
H.push(I[C])
}
}
} else {
for (C = 0; x[C] != null; C++) {
x[C] && x[C].nodeType === 1 && H.push(I[C])
}
}
} else {
H.push.apply(H, x)
}
} else {
t(x, H)
}
if (E) {
j(E, y, H, U);
j.uniqueSort(H)
}
return H
};
j.uniqueSort = function (u) {
if (m) {
h = l;
u.sort(m);
if (h) {
for (var v = 1; v < u.length; v++) {
u[v] === u[v - 1] && u.splice(v--, 1)
}
}
}
return u
};
j.matches = function (u, v) {
return j(u, null, null, v)
};
j.find = function (C, D, E) {
var u, x;
if (!C) {
return []
}
for (var v = 0, z = k.order.length; v < z; v++) {
var y = k.order[v];
if (x = k.leftMatch[y].exec(C)) {
var B = x[1];
x.splice(1, 1);
if (B.substr(B.length - 1) !== "\\") {
x[1] = (x[1] || "").replace(/\\/g, "");
u = k.find[y](x, D, E);
if (u != null) {
C = C.replace(k.match[y], "");
break
}
}
}
}
u || (u = D.getElementsByTagName("*"));
return {
set: u,
expr: C
}
};
j.filter = function (B, C, E, ad) {
for (var y = B, v = [], M = C, I, ac, D = C && C[0] && q(C[0]); B && C.length;) {
for (var S in k.filter) {
if ((I = k.leftMatch[S].exec(B)) != null && I[2]) {
var x = k.filter[S],
U, z;
z = I[1];
ac = false;
I.splice(1, 1);
if (z.substr(z.length - 1) !== "\\") {
if (M === v) {
v = []
}
if (k.preFilter[S]) {
if (I = k.preFilter[S](I, M, E, v, ad, D)) {
if (I === true) {
continue
}
} else {
ac = U = true
}
}
if (I) {
for (var H = 0;
(z = M[H]) != null; H++) {
if (z) {
U = x(z, I, H, M);
var u = ad ^ !! U;
if (E && U != null) {
if (u) {
ac = true
} else {
M[H] = false
}
} else {
if (u) {
v.push(z);
ac = true
}
}
}
}
}
if (U !== bw) {
E || (M = v);
B = B.replace(k.match[S], "");
if (!ac) {
return []
}
break
}
}
}
}
if (B === y) {
if (ac == null) {
j.error(B)
} else {
break
}
}
y = B
}
return M
};
j.error = function (u) {
throw "Syntax error, unrecognized expression: " + u
};
var k = j.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 (u) {
return u.getAttribute("href")
}
},
relative: {
"+": function (u, x) {
var v = typeof x === "string",
z = v && !/\W/.test(x);
v = v && !z;
if (z) {
x = x.toLowerCase()
}
z = 0;
for (var B = u.length, y; z < B; z++) {
if (y = u[z]) {
for (;
(y = y.previousSibling) && y.nodeType !== 1;) {}
u[z] = v || y && y.nodeName.toLowerCase() === x ? y || false : y === x
}
}
v && j.filter(x, u, true)
},
">": function (u, x) {
var v = typeof x === "string";
if (v && !/\W/.test(x)) {
x = x.toLowerCase();
for (var z = 0, B = u.length; z < B; z++) {
var y = u[z];
if (y) {
v = y.parentNode;
u[z] = v.nodeName.toLowerCase() === x ? v : false
}
}
} else {
z = 0;
for (B = u.length; z < B; z++) {
if (y = u[z]) {
u[z] = v ? y.parentNode : y.parentNode === x
}
}
v && j.filter(x, u, true)
}
},
"": function (u, x, v) {
var z = f++,
B = e;
if (typeof x === "string" && !/\W/.test(x)) {
var y = x = x.toLowerCase();
B = d
}
B("parentNode", x, z, u, y, v)
},
"~": function (u, x, v) {
var z = f++,
B = e;
if (typeof x === "string" && !/\W/.test(x)) {
var y = x = x.toLowerCase();
B = d
}
B("previousSibling", x, z, u, y, v)
}
},
find: {
ID: function (v, u, x) {
if (typeof u.getElementById !== "undefined" && !x) {
return (v = u.getElementById(v[1])) ? [v] : []
}
},
NAME: function (u, x) {
if (typeof x.getElementsByName !== "undefined") {
var v = [];
x = x.getElementsByName(u[1]);
for (var y = 0, z = x.length; y < z; y++) {
x[y].getAttribute("name") === u[1] && v.push(x[y])
}
return v.length === 0 ? null : v
}
},
TAG: function (u, v) {
return v.getElementsByTagName(u[1])
}
},
preFilter: {
CLASS: function (C, u, x, z, y, B) {
C = " " + C[1].replace(/\\/g, "") + " ";
if (B) {
return C
}
B = 0;
for (var v;
(v = u[B]) != null; B++) {
if (v) {
if (y ^ (v.className && (" " + v.className + " ").replace(/[\t\n]/g, " ").indexOf(C) >= 0)) {
x || z.push(v)
} else {
if (x) {
u[B] = false
}
}
}
}
return false
},
ID: function (u) {
return u[1].replace(/\\/g, "")
},
TAG: function (u) {
return u[1].toLowerCase()
},
CHILD: function (u) {
if (u[1] === "nth") {
var v = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(u[2] === "even" && "2n" || u[2] === "odd" && "2n+1" || !/\D/.test(u[2]) && "0n+" + u[2] || u[2]);
u[2] = v[1] + (v[2] || 1) - 0;
u[3] = v[3] - 0
}
u[0] = f++;
return u
},
ATTR: function (u, x, v, z, B, y) {
x = u[1].replace(/\\/g, "");
if (!y && k.attrMap[x]) {
u[1] = k.attrMap[x]
}
if (u[2] === "~=") {
u[4] = " " + u[4] + " "
}
return u
},
PSEUDO: function (u, x, v, y, z) {
if (u[1] === "not") {
if ((g.exec(u[3]) || "").length > 1 || /^\w/.test(u[3])) {
u[3] = j(u[3], null, null, x)
} else {
u = j.filter(u[3], x, v, true ^ z);
v || y.push.apply(y, u);
return false
}
} else {
if (k.match.POS.test(u[0]) || k.match.CHILD.test(u[0])) {
return true
}
}
return u
},
POS: function (u) {
u.unshift(true);
return u
}
},
filters: {
enabled: function (u) {
return u.disabled === false && u.type !== "hidden"
},
disabled: function (u) {
return u.disabled === true
},
checked: function (u) {
return u.checked === true
},
selected: function (u) {
return u.selected === true
},
parent: function (u) {
return !!u.firstChild
},
empty: function (u) {
return !u.firstChild
},
has: function (v, u, x) {
return !!j(x[3], v).length
},
header: function (u) {
return /h\d/i.test(u.nodeName)
},
text: function (u) {
return "text" === u.type
},
radio: function (u) {
return "radio" === u.type
},
checkbox: function (u) {
return "checkbox" === u.type
},
file: function (u) {
return "file" === u.type
},
password: function (u) {
return "password" === u.type
},
submit: function (u) {
return "submit" === u.type
},
image: function (u) {
return "image" === u.type
},
reset: function (u) {
return "reset" === u.type
},
button: function (u) {
return "button" === u.type || u.nodeName.toLowerCase() === "button"
},
input: function (u) {
return /input|select|textarea|button/i.test(u.nodeName)
}
},
setFilters: {
first: function (u, v) {
return v === 0
},
last: function (u, x, v, y) {
return x === y.length - 1
},
even: function (u, v) {
return v % 2 === 0
},
odd: function (u, v) {
return v % 2 === 1
},
lt: function (v, u, x) {
return u < x[3] - 0
},
gt: function (v, u, x) {
return u > x[3] - 0
},
nth: function (v, u, x) {
return x[3] - 0 === u
},
eq: function (v, u, x) {
return x[3] - 0 === u
}
},
filter: {
PSEUDO: function (u, x, v, z) {
var B = x[1],
y = k.filters[B];
if (y) {
return y(u, v, x, z)
} else {
if (B === "contains") {
return (u.textContent || u.innerText || b([u]) || "").indexOf(x[3]) >= 0
} else {
if (B === "not") {
x = x[3];
v = 0;
for (z = x.length; v < z; v++) {
if (x[v] === u) {
return false
}
}
return true
} else {
j.error("Syntax error, unrecognized expression: " + B)
}
}
}
},
CHILD: function (C, u) {
var x = u[1],
z = C;
switch (x) {
case "only":
case "first":
for (; z = z.previousSibling;) {
if (z.nodeType === 1) {
return false
}
}
if (x === "first") {
return true
}
z = C;
case "last":
for (; z = z.nextSibling;) {
if (z.nodeType === 1) {
return false
}
}
return true;
case "nth":
x = u[2];
var y = u[3];
if (x === 1 && y === 0) {
return true
}
u = u[0];
var B = C.parentNode;
if (B && (B.sizcache !== u || !C.nodeIndex)) {
var v = 0;
for (z = B.firstChild; z; z = z.nextSibling) {
if (z.nodeType === 1) {
z.nodeIndex = ++v
}
}
B.sizcache = u
}
C = C.nodeIndex - y;
return x === 0 ? C === 0 : C % x === 0 && C / x >= 0
}
},
ID: function (u, v) {
return u.nodeType === 1 && u.getAttribute("id") === v
},
TAG: function (u, v) {
return v === "*" && u.nodeType === 1 || u.nodeName.toLowerCase() === v
},
CLASS: function (u, v) {
return (" " + (u.className || u.getAttribute("class")) + " ").indexOf(v) > -1
},
ATTR: function (u, x) {
var v = x[1];
u = k.attrHandle[v] ? k.attrHandle[v](u) : u[v] != null ? u[v] : u.getAttribute(v);
v = u + "";
var y = x[2];
x = x[4];
return u == null ? y === "!=" : y === "=" ? v === x : y === "*=" ? v.indexOf(x) >= 0 : y === "~=" ? (" " + v + " ").indexOf(x) >= 0 : !x ? v && u !== false : y === "!=" ? v !== x : y === "^=" ? v.indexOf(x) === 0 : y === "$=" ? v.substr(v.length - x.length) === x : y === "|=" ? v === x || v.substr(0, x.length + 1) === x + "-" : false
},
POS: function (u, x, v, y) {
var z = k.setFilters[x[2]];
if (z) {
return z(u, v, x, y)
}
}
}
},
o = k.match.POS;
for (var n in k.match) {
k.match[n] = new RegExp(k.match[n].source + /(?![^\[]*\])(?![^\(]*\))/.source);
k.leftMatch[n] = new RegExp(/(^(?:.|\r|\n)*?)/.source + k.match[n].source.replace(/\\(\d+)/g, function (u, v) {
return "\\" + (v - 0 + 1)
}))
}
var t = function (u, v) {
u = Array.prototype.slice.call(u, 0);
if (v) {
v.push.apply(v, u);
return v
}
return u
};
try {
Array.prototype.slice.call(bv.documentElement.childNodes, 0)
} catch (p) {
t = function (u, x) {
x = x || [];
if (i.call(u) === "[object Array]") {
Array.prototype.push.apply(x, u)
} else {
if (typeof u.length === "number") {
for (var v = 0, y = u.length; v < y; v++) {
x.push(u[v])
}
} else {
for (v = 0; u[v]; v++) {
x.push(u[v])
}
}
}
return x
}
}
var m;
if (bv.documentElement.compareDocumentPosition) {
m = function (u, v) {
if (!u.compareDocumentPosition || !v.compareDocumentPosition) {
if (u == v) {
h = true
}
return u.compareDocumentPosition ? -1 : 1
}
u = u.compareDocumentPosition(v) & 4 ? -1 : u === v ? 0 : 1;
if (u === 0) {
h = true
}
return u
}
} else {
if ("sourceIndex" in bv.documentElement) {
m = function (u, v) {
if (!u.sourceIndex || !v.sourceIndex) {
if (u == v) {
h = true
}
return u.sourceIndex ? -1 : 1
}
u = u.sourceIndex - v.sourceIndex;
if (u === 0) {
h = true
}
return u
}
} else {
if (bv.createRange) {
m = function (u, x) {
if (!u.ownerDocument || !x.ownerDocument) {
if (u == x) {
h = true
}
return u.ownerDocument ? -1 : 1
}
var v = u.ownerDocument.createRange(),
y = x.ownerDocument.createRange();
v.setStart(u, 0);
v.setEnd(u, 0);
y.setStart(x, 0);
y.setEnd(x, 0);
u = v.compareBoundaryPoints(Range.START_TO_END, y);
if (u === 0) {
h = true
}
return u
}
}
}
}(function () {
var v = bv.createElement("div"),
u = "script" + (new Date).getTime();
v.innerHTML = "<a name='" + u + "'/>";
var x = bv.documentElement;
x.insertBefore(v, x.firstChild);
if (bv.getElementById(u)) {
k.find.ID = function (y, B, z) {
if (typeof B.getElementById !== "undefined" && !z) {
return (B = B.getElementById(y[1])) ? B.id === y[1] || typeof B.getAttributeNode !== "undefined" && B.getAttributeNode("id").nodeValue === y[1] ? [B] : bw : []
}
};
k.filter.ID = function (y, B) {
var z = typeof y.getAttributeNode !== "undefined" && y.getAttributeNode("id");
return y.nodeType === 1 && z && z.nodeValue === B
}
}
x.removeChild(v);
x = v = null
})();
(function () {
var u = bv.createElement("div");
u.appendChild(bv.createComment(""));
if (u.getElementsByTagName("*").length > 0) {
k.find.TAG = function (v, y) {
y = y.getElementsByTagName(v[1]);
if (v[1] === "*") {
v = [];
for (var x = 0; y[x]; x++) {
y[x].nodeType === 1 && v.push(y[x])
}
y = v
}
return y
}
}
u.innerHTML = "<a href='#'></a>";
if (u.firstChild && typeof u.firstChild.getAttribute !== "undefined" && u.firstChild.getAttribute("href") !== "#") {
k.attrHandle.href = function (v) {
return v.getAttribute("href", 2)
}
}
u = null
})();
bv.querySelectorAll &&
function () {
var v = j,
u = bv.createElement("div");
u.innerHTML = "<p class='TEST'></p>";
if (!(u.querySelectorAll && u.querySelectorAll(".TEST").length === 0)) {
j = function (y, D, B, C) {
D = D || bv;
if (!C && D.nodeType === 9 && !q(D)) {
try {
return t(D.querySelectorAll(y), B)
} catch (z) {}
}
return v(y, D, B, C)
};
for (var x in v) {
j[x] = v[x]
}
u = null
}
}();
(function () {
var u = bv.createElement("div");
u.innerHTML = "<div class='test e'></div><div class='test'></div>";
if (!(!u.getElementsByClassName || u.getElementsByClassName("e").length === 0)) {
u.lastChild.className = "e";
if (u.getElementsByClassName("e").length !== 1) {
k.order.splice(1, 0, "CLASS");
k.find.CLASS = function (v, y, x) {
if (typeof y.getElementsByClassName !== "undefined" && !x) {
return y.getElementsByClassName(v[1])
}
};
u = null
}
}
})();
var r = bv.compareDocumentPosition ?
function (u, v) {
return !!(u.compareDocumentPosition(v) & 16)
} : function (u, v) {
return u !== v && (u.contains ? u.contains(v) : true)
}, q = function (u) {
return (u = (u ? u.ownerDocument || u : 0).documentElement) ? u.nodeName !== "HTML" : false
}, a = function (u, x) {
var v = [],
z = "",
B;
for (x = x.nodeType ? [x] : x; B = k.match.PSEUDO.exec(u);) {
z += B[0];
u = u.replace(k.match.PSEUDO, "")
}
u = k.relative[u] ? u + "*" : u;
B = 0;
for (var y = x.length; B < y; B++) {
j(u, x[B], v)
}
return j.filter(z, v)
};
bT.find = j;
bT.expr = j.selectors;
bT.expr[":"] = bT.expr.filters;
bT.unique = j.uniqueSort;
bT.text = b;
bT.isXMLDoc = q;
bT.contains = r
})();
var Z = /Until$/,
cp = /^(?:parents|prevUntil|prevAll)/,
b2 = /,/;
bF = Array.prototype.slice;
var cd = function (d, e, a) {
if (bT.isFunction(e)) {
return bT.grep(d, function (f, g) {
return !!e.call(f, g, f) === a
})
} else {
if (e.nodeType) {
return bT.grep(d, function (f) {
return f === e === a
})
} else {
if (typeof e === "string") {
var b = bT.grep(d, function (f) {
return f.nodeType === 1
});
if (b5.test(e)) {
return bT.filter(e, b, !a)
} else {
e = bT.filter(e, b)
}
}
}
}
return bT.grep(d, function (f) {
return bT.inArray(f, e) >= 0 === a
})
};
bT.fn.extend({
find: function (f) {
for (var h = this.pushStack("", "find", f), d = 0, g = 0, e = this.length;
g < e; g++) {
d = h.length;
bT.find(f, this[g], h);
if (g > 0) {
for (var b = d; b < h.length; b++) {
for (var a = 0; a < d; a++) {
if (h[a] === h[b]) {
h.splice(b--, 1);
break
}
}
}
}
}
return h
},
has: function (a) {
var b = bT(a);
return this.filter(function () {
for (var d = 0, e = b.length; d < e; d++) {
if (bT.contains(this, b[d])) {
return true
}
}
})
},
not: function (a) {
return this.pushStack(cd(this, a, false), "not", a)
},
filter: function (a) {
return this.pushStack(cd(this, a, true), "filter", a)
},
is: function (a) {
return !!a && bT.filter(a, this).length > 0
},
closest: function (d, e) {
if (bT.isArray(d)) {
var f = [],
i = this[0],
h, g = {},
a;
if (i && d.length) {
h = 0;
for (var b = d.length; h < b; h++) {
a = d[h];
g[a] || (g[a] = bT.expr.match.POS.test(a) ? bT(a, e || this.context) : a)
}
for (; i && i.ownerDocument && i !== e;) {
for (a in g) {
h = g[a];
if (h.jquery ? h.index(i) > -1 : bT(i).is(h)) {
f.push({
selector: a,
elem: i
});
delete g[a]
}
}
i = i.parentNode
}
}
return f
}
var j = bT.expr.match.POS.test(d) ? bT(d, e || this.context) : null;
return this.map(function (k, l) {
for (; l && l.ownerDocument && l !== e;) {
if (j ? j.index(l) > -1 : bT(l).is(d)) {
return l
}
l = l.parentNode
}
return null
})
},
index: function (a) {
if (!a || typeof a === "string") {
return bT.inArray(this[0], a ? bT(a) : this.parent().children())
}
return bT.inArray(a.jquery ? a[0] : a, this)
},
add: function (a, b) {
a = typeof a === "string" ? bT(a, b || this.context) : bT.makeArray(a);
b = bT.merge(this.get(), a);
return this.pushStack(R(a[0]) || R(b[0]) ? b : bT.unique(b))
},
andSelf: function () {
return this.add(this.prevObject)
}
});
bT.each({
parent: function (a) {
return (a = a.parentNode) && a.nodeType !== 11 ? a : null
},
parents: function (a) {
return bT.dir(a, "parentNode")
},
parentsUntil: function (b, d, a) {
return bT.dir(b, "parentNode", a)
},
next: function (a) {
return bT.nth(a, 2, "nextSibling")
},
prev: function (a) {
return bT.nth(a, 2, "previousSibling")
},
nextAll: function (a) {
return bT.dir(a, "nextSibling")
},
prevAll: function (a) {
return bT.dir(a, "previousSibling")
},
nextUntil: function (b, d, a) {
return bT.dir(b, "nextSibling", a)
},
prevUntil: function (b, d, a) {
return bT.dir(b, "previousSibling", a)
},
siblings: function (a) {
return bT.sibling(a.parentNode.firstChild, a)
},
children: function (a) {
return bT.sibling(a.firstChild)
},
contents: function (a) {
return bT.nodeName(a, "iframe") ? a.contentDocument || a.contentWindow.document : bT.makeArray(a.childNodes)
}
}, function (a, b) {
bT.fn[a] = function (f, e) {
var d = bT.map(this, b, f);
Z.test(a) || (e = f);
if (e && typeof e === "string") {
d = bT.filter(e, d)
}
d = this.length > 1 ? bT.unique(d) : d;
if ((this.length > 1 || b2.test(e)) && cp.test(a)) {
d = d.reverse()
}
return this.pushStack(d, a, bF.call(arguments).join(","))
}
});
bT.extend({
filter: function (b, d, a) {
if (a) {
b = ":not(" + b + ")"
}
return bT.find.matches(b, d)
},
dir: function (d, e, a) {
var b = [];
for (d = d[e]; d && d.nodeType !== 9 && (a === bw || d.nodeType !== 1 || !bT(d).is(a));) {
d.nodeType === 1 && b.push(d);
d = d[e]
}
return b
},
nth: function (d, e, a) {
e = e || 1;
for (var b = 0; d; d = d[a]) {
if (d.nodeType === 1 && ++b === e) {
break
}
}
return d
},
sibling: function (b, d) {
for (var a = []; b; b = b.nextSibling) {
b.nodeType === 1 && b !== d && a.push(b)
}
return a
}
});
var bS = / jQuery\d+="(?:\d+|null)"/g,
bJ = /^\s+/,
bI = /(<([\w:]+)[^>]*?)\/>/g,
cl = /^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,
Q = /<([\w:]+)/,
bY = /<tbody/i,
G = /<|&#?\w+;/,
b9 = /<script|<object|<embed|<option|<style/i,
bQ = /checked\s*(?:[^=]|=\s*.checked.)/i,
bb = function (b, d, a) {
return cl.test(a) ? b : d + "></" + a + ">"
},
cf = {
option: [1, "<select multiple='multiple'>", "</select>"],
legend: [1, "<fieldset>", "</fieldset>"],
thead: [1, "<table>", "</table>"],
tr: [2, "<table><tbody>", "</tbody></table>"],
td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],
col: [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"],
area: [1, "<map>", "</map>"],
_default: [0, "", ""]
};
cf.optgroup = cf.option;
cf.tbody = cf.tfoot = cf.colgroup = cf.caption = cf.thead;
cf.th = cf.td;
if (!bT.support.htmlSerialize) {
cf._default = [1, "div<div>", "</div>"]
}
bT.fn.extend({
text: function (a) {
if (bT.isFunction(a)) {
return this.each(function (d) {
var b = bT(this);
b.text(a.call(this, d, b.text()))
})
}
if (typeof a !== "object" && a !== bw) {
return this.empty().append((this[0] && this[0].ownerDocument || bv).createTextNode(a))
}
return bT.text(this)
},
wrapAll: function (a) {
if (bT.isFunction(a)) {
return this.each(function (d) {
bT(this).wrapAll(a.call(this, d))
})
}
if (this[0]) {
var b = bT(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 (bT.isFunction(a)) {
return this.each(function (b) {
bT(this).wrapInner(a.call(this, b))
})
}
return this.each(function () {
var d = bT(this),
b = d.contents();
b.length ? b.wrapAll(a) : d.append(a)
})
},
wrap: function (a) {
return this.each(function () {
bT(this).wrapAll(a)
})
},
unwrap: function () {
return this.parent().each(function () {
bT.nodeName(this, "body") || bT(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 = bT(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, bT(arguments[0]).toArray());
return a
}
}
},
remove: function (d, e) {
for (var a = 0, b;
(b = this[a]) != null; a++) {
if (!d || bT.filter(d, [b]).length) {
if (!e && b.nodeType === 1) {
bT.cleanData(b.getElementsByTagName("*"));
bT.cleanData([b])
}
b.parentNode && b.parentNode.removeChild(b)
}
}
return this
},
empty: function () {
for (var a = 0, b;
(b = this[a]) != null; a++) {
for (b.nodeType === 1 && bT.cleanData(b.getElementsByTagName("*")); b.firstChild;) {
b.removeChild(b.firstChild)
}
}
return this
},
clone: function (a) {
var b = this.map(function () {
if (!bT.support.noCloneEvent && !bT.isXMLDoc(this)) {
var d = this.outerHTML,
e = this.ownerDocument;
if (!d) {
d = e.createElement("div");
d.appendChild(this.cloneNode(true));
d = d.innerHTML
}
return bT.clean([d.replace(bS, "").replace(/=([^="'>\s]+\/)>/g, '="$1">').replace(bJ, "")], e)[0]
} else {
return this.cloneNode(true)
}
});
if (a === true) {
bl(this, b);
bl(this.find("*"), b.find("*"))
}
return b
},
html: function (d) {
if (d === bw) {
return this[0] && this[0].nodeType === 1 ? this[0].innerHTML.replace(bS, "") : null
} else {
if (typeof d === "string" && !b9.test(d) && (bT.support.leadingWhitespace || !bJ.test(d)) && !cf[(Q.exec(d) || ["", ""])[1].toLowerCase()]) {
d = d.replace(bI, bb);
try {
for (var e = 0, a = this.length; e < a; e++) {
if (this[e].nodeType === 1) {
bT.cleanData(this[e].getElementsByTagName("*"));
this[e].innerHTML = d
}
}
} catch (b) {
this.empty().append(d)
}
} else {
bT.isFunction(d) ? this.each(function (f) {
var h = bT(this),
g = h.html();
h.empty().append(function () {
return d.call(this, f, g)
})
}) : this.empty().append(d)
}
}
return this
},
replaceWith: function (a) {
if (this[0] && this[0].parentNode) {
if (bT.isFunction(a)) {
return this.each(function (e) {
var b = bT(this),
d = b.html();
b.replaceWith(a.call(this, e, d))
})
}
if (typeof a !== "string") {
a = bT(a).detach()
}
return this.each(function () {
var d = this.nextSibling,
b = this.parentNode;
bT(this).remove();
d ? bT(d).before(a) : bT(b).append(a)
})
} else {
return this.pushStack(bT(bT.isFunction(a) ? a() : a), "replaceWith", a)
}
},
detach: function (a) {
return this.remove(a, true)
},
domManip: function (b, d, f) {
function h(m) {
return bT.nodeName(m, "table") ? m.getElementsByTagName("tbody")[0] || m.appendChild(m.ownerDocument.createElement("tbody")) : m
}
var g, k, j = b[0],
l = [],
a;
if (!bT.support.checkClone && arguments.length === 3 && typeof j === "string" && bQ.test(j)) {
return this.each(function () {
bT(this).domManip(b, d, f, true)
})
}
if (bT.isFunction(j)) {
return this.each(function (n) {
var m = bT(this);
b[0] = j.call(this, n, d ? m.html() : bw);
m.domManip(b, d, f)
})
}
if (this[0]) {
g = j && j.parentNode;
g = bT.support.parentNode && g && g.nodeType === 11 && g.childNodes.length === this.length ? {
fragment: g
} : cv(b, this, l);
a = g.fragment;
if (k = a.childNodes.length === 1 ? (a = a.firstChild) : a.firstChild) {
d = d && bT.nodeName(k, "tr");
for (var i = 0, e = this.length; i < e; i++) {
f.call(d ? h(this[i], k) : this[i], i > 0 || g.cacheable || this.length > 1 ? a.cloneNode(true) : a)
}
}
l.length && bT.each(l, bC)
}
return this
}
});
bT.fragments = {};
bT.each({
appendTo: "append",
prependTo: "prepend",
insertBefore: "before",
insertAfter: "after",
replaceAll: "replaceWith"
}, function (a, b) {
bT.fn[a] = function (f) {
var h = [];
f = bT(f);
var g = this.length === 1 && this[0].parentNode;
if (g && g.nodeType === 11 && g.childNodes.length === 1 && f.length === 1) {
f[b](this[0]);
return this
} else {
g = 0;
for (var e = f.length; g < e; g++) {
var d = (g > 0 ? this.clone(true) : this).get();
bT.fn[b].apply(bT(f[g]), d);
h = h.concat(d)
}
return this.pushStack(h, a, f.selector)
}
}
});
bT.extend({
clean: function (b, d, f, h) {
d = d || bv;
if (typeof d.createElement === "undefined") {
d = d.ownerDocument || d[0] && d[0].ownerDocument || bv
}
for (var g = [], k = 0, j;
(j = b[k]) != null; k++) {
if (typeof j === "number") {
j += ""
}
if (j) {
if (typeof j === "string" && !G.test(j)) {
j = d.createTextNode(j)
} else {
if (typeof j === "string") {
j = j.replace(bI, bb);
var l = (Q.exec(j) || ["", ""])[1].toLowerCase(),
a = cf[l] || cf._default,
i = a[0],
e = d.createElement("div");
for (e.innerHTML = a[1] + j + a[2]; i--;) {
e = e.lastChild
}
if (!bT.support.tbody) {
i = bY.test(j);
l = l === "table" && !i ? e.firstChild && e.firstChild.childNodes : a[1] === "<table>" && !i ? e.childNodes : [];
for (a = l.length - 1; a >= 0; --a) {
bT.nodeName(l[a], "tbody") && !l[a].childNodes.length && l[a].parentNode.removeChild(l[a])
}
}!bT.support.leadingWhitespace && bJ.test(j) && e.insertBefore(d.createTextNode(bJ.exec(j)[0]), e.firstChild);
j = e.childNodes
}
}
if (j.nodeType) {
g.push(j)
} else {
g = bT.merge(g, j)
}
}
}
if (f) {
for (k = 0; g[k]; k++) {
if (h && bT.nodeName(g[k], "script") && (!g[k].type || g[k].type.toLowerCase() === "text/javascript")) {
h.push(g[k].parentNode ? g[k].parentNode.removeChild(g[k]) : g[k])
} else {
g[k].nodeType === 1 && g.splice.apply(g, [k + 1, 0].concat(bT.makeArray(g[k].getElementsByTagName("script"))));
f.appendChild(g[k])
}
}
}
return g
},
cleanData: function (d) {
for (var e, f, i = bT.cache, h = bT.event.special, g = bT.support.deleteExpando, a = 0, b;
(b = d[a]) != null; a++) {
if (f = b[bT.expando]) {
e = i[f];
if (e.events) {
for (var j in e.events) {
h[j] ? bT.event.remove(b, j) : ci(b, j, e.handle)
}
}
if (g) {
delete b[bT.expando]
} else {
b.removeAttribute && b.removeAttribute(bT.expando)
}
delete i[f]
}
}
}
});
var X = /z-?index|font-?weight|opacity|zoom|line-?height/i,
cu = /alpha\([^)]*\)/,
b8 = /opacity=([^)]*)/,
ck = /float/i,
bX = /-([a-z])/ig,
bq = /([A-Z])/g,
bZ = /^-?\d+(?:px)?$/i,
cg = /^-?\d/,
bV = {
position: "absolute",
visibility: "hidden",
display: "block"
},
w = ["Left", "Right"],
T = ["Top", "Bottom"],
bm = bv.defaultView && bv.defaultView.getComputedStyle,
bP = bT.support.cssFloat ? "cssFloat" : "styleFloat",
F = function (a, b) {
return b.toUpperCase()
};
bT.fn.css = function (a, b) {
return bL(this, a, b, true, function (f, e, d) {
if (d === bw) {
return bT.curCSS(f, e)
}
if (typeof d === "number" && !X.test(e)) {
d += "px"
}
bT.style(f, e, d)
})
};
bT.extend({
style: function (d, f, e) {
if (!d || d.nodeType === 3 || d.nodeType === 8) {
return bw
}
if ((f === "width" || f === "height") && parseFloat(e) < 0) {
e = bw
}
var b = d.style || d,
a = e !== bw;
if (!bT.support.opacity && f === "opacity") {
if (a) {
b.zoom = 1;
f = parseInt(e, 10) + "" === "NaN" ? "" : "alpha(opacity=" + e * 100 + ")";
d = b.filter || bT.curCSS(d, "filter") || "";
b.filter = cu.test(d) ? d.replace(cu, f) : f
}
return b.filter && b.filter.indexOf("opacity=") >= 0 ? parseFloat(b8.exec(b.filter)[1]) / 100 + "" : ""
}
if (ck.test(f)) {
f = bP
}
f = f.replace(bX, F);
if (a) {
b[f] = e
}
return b[f]
},
css: function (f, h, d, g) {
if (h === "width" || h === "height") {
var e, b = h === "width" ? w : T;
function a() {
e = h === "width" ? f.offsetWidth : f.offsetHeight;
g !== "border" && bT.each(b, function () {
g || (e -= parseFloat(bT.curCSS(f, "padding" + this, true)) || 0);
if (g === "margin") {
e += parseFloat(bT.curCSS(f, "margin" + this, true)) || 0
} else {
e -= parseFloat(bT.curCSS(f, "border" + this + "Width", true)) || 0
}
})
}
f.offsetWidth !== 0 ? a() : bT.swap(f, bV, a);
return Math.max(0, Math.round(e))
}
return bT.curCSS(f, h, d)
},
curCSS: function (e, g, d) {
var a, f = e.style;
if (!bT.support.opacity && g === "opacity" && e.currentStyle) {
a = b8.test(e.currentStyle.filter || "") ? parseFloat(RegExp.$1) / 100 + "" : "";
return a === "" ? "1" : a
}
if (ck.test(g)) {
g = bP
}
if (!d && f && f[g]) {
a = f[g]
} else {
if (bm) {
if (ck.test(g)) {
g = "float"
}
g = g.replace(bq, "-$1").toLowerCase();
f = e.ownerDocument.defaultView;
if (!f) {
return null
}
if (e = f.getComputedStyle(e, null)) {
a = e.getPropertyValue(g)
}
if (g === "opacity" && a === "") {
a = "1"
}
} else {
if (e.currentStyle) {
d = g.replace(bX, F);
a = e.currentStyle[g] || e.currentStyle[d];
if (!bZ.test(a) && cg.test(a)) {
g = f.left;
var b = e.runtimeStyle.left;
e.runtimeStyle.left = e.currentStyle.left;
f.left = d === "fontSize" ? "1em" : a || 0;
a = f.pixelLeft + "px";
f.left = g;
e.runtimeStyle.left = b
}
}
}
}
return a
},
swap: function (d, f, e) {
var b = {};
for (var a in f) {
b[a] = d.style[a];
d.style[a] = f[a]
}
e.call(d);
for (a in f) {
d.style[a] = b[a]
}
}
});
if (bT.expr && bT.expr.filters) {
bT.expr.filters.hidden = function (d) {
var e = d.offsetWidth,
a = d.offsetHeight,
b = d.nodeName.toLowerCase() === "tr";
return e === 0 && a === 0 && !b ? true : e > 0 && a > 0 && !b ? false : bT.curCSS(d, "display") === "none"
};
bT.expr.filters.visible = function (a) {
return !bT.expr.filters.hidden(a)
}
}
var cw = cj(),
cb = /<script(.|\s)*?\/script>/gi,
bR = /select|textarea/i,
bG = /color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,
co = /=\?(&|$)/,
W = /\?/,
P = /(\?|&)_=.*?(&|$)/,
ba = /^(\w+:)?\/\/([^\/?#]+)/,
ct = /%20/g,
b7 = bT.fn.load;
bT.fn.extend({
load: function (e, g, d) {
if (typeof e !== "string") {
return b7.call(this, e)
} else {
if (!this.length) {
return this
}
}
var a = e.indexOf(" ");
if (a >= 0) {
var f = e.slice(a, e.length);
e = e.slice(0, a)
}
a = "GET";
if (g) {
if (bT.isFunction(g)) {
d = g;
g = null
} else {
if (typeof g === "object") {
g = bT.param(g, bT.ajaxSettings.traditional);
a = "POST"
}
}
}
var b = this;
bT.ajax({
url: e,
type: a,
dataType: "html",
data: g,
complete: function (i, h) {
if (h === "success" || h === "notmodified") {
b.html(f ? bT("<div />").append(i.responseText.replace(cb, "")).find(f) : i.responseText)
}
d && b.each(d, [i.responseText, h, i])
}
});
return this
},
serialize: function () {
return bT.param(this.serializeArray())
},
serializeArray: function () {
return this.map(function () {
return this.elements ? bT.makeArray(this.elements) : this
}).filter(function () {
return this.name && !this.disabled && (this.checked || bR.test(this.nodeName) || bG.test(this.type))
}).map(function (a, b) {
a = bT(this).val();
return a == null ? null : bT.isArray(a) ? bT.map(a, function (d) {
return {
name: b.name,
value: d
}
}) : {
name: b.name,
value: a
}
}).get()
}
});
bT.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), function (a, b) {
bT.fn[b] = function (d) {
return this.bind(b, d)
}
});
bT.extend({
get: function (d, e, a, b) {
if (bT.isFunction(e)) {
b = b || a;
a = e;
e = null
}
return bT.ajax({
type: "GET",
url: d,
data: e,
success: a,
dataType: b
})
},
getScript: function (a, b) {
return bT.get(a, null, b, "script")
},
getJSON: function (b, d, a) {
return bT.get(b, d, a, "json")
},
post: function (d, e, a, b) {
if (bT.isFunction(e)) {
b = b || a;
a = e;
e = {}
}
return bT.ajax({
type: "POST",
url: d,
data: e,
success: a,
dataType: b
})
},
ajaxSetup: function (a) {
bT.extend(bT.ajaxSettings, a)
},
ajaxSettings: {
url: location.href,
global: true,
type: "GET",
contentType: "application/x-www-form-urlencoded",
processData: true,
async: true,
xhr: ca.XMLHttpRequest && (ca.location.protocol !== "file:" || !ca.ActiveXObject) ?
function () {
return new ca.XMLHttpRequest
} : function () {
try {
return new ca.ActiveXObject("Microsoft.XMLHTTP")
} catch (a) {}
},
accepts: {
xml: "application/xml, text/xml",
html: "text/html",
script: "text/javascript, application/javascript",
json: "application/json, text/javascript",
text: "text/plain",
_default: "*/*"
}
},
lastModified: {},
etag: {},
ajax: function (y) {
function a() {
d.success && d.success.call(j, n, h, t);
d.global && e("ajaxSuccess", [t, d])
}
function b() {
d.complete && d.complete.call(j, t, h);
d.global && e("ajaxComplete", [t, d]);
d.global && !--bT.active && bT.event.trigger("ajaxStop")
}
function e(B, z) {
(d.context ? bT(d.context) : bT.event).trigger(B, z)
}
var d = bT.extend(true, {}, bT.ajaxSettings, y),
i, h, n, j = y && y.context || d,
m = d.type.toUpperCase();
if (d.data && d.processData && typeof d.data !== "string") {
d.data = bT.param(d.data, d.traditional)
}
if (d.dataType === "jsonp") {
if (m === "GET") {
co.test(d.url) || (d.url += (W.test(d.url) ? "&" : "?") + (d.jsonp || "callback") + "=?")
} else {
if (!d.data || !co.test(d.data)) {
d.data = (d.data ? d.data + "&" : "") + (d.jsonp || "callback") + "=?"
}
}
d.dataType = "json"
}
if (d.dataType === "json" && (d.data && co.test(d.data) || co.test(d.url))) {
i = d.jsonpCallback || "jsonp" + cw++;
if (d.data) {
d.data = (d.data + "").replace(co, "=" + i + "$1")
}
d.url = d.url.replace(co, "=" + i + "$1");
d.dataType = "script";
ca[i] = ca[i] ||
function (B) {
n = B;
a();
b();
ca[i] = bw;
try {
delete ca[i]
} catch (z) {}
v && v.removeChild(r)
}
}
if (d.dataType === "script" && d.cache === null) {
d.cache = false
}
if (d.cache === false && m === "GET") {
var q = cj(),
p = d.url.replace(P, "$1_=" + q + "$2");
d.url = p + (p === d.url ? (W.test(d.url) ? "&" : "?") + "_=" + q : "")
}
if (d.data && m === "GET") {
d.url += (W.test(d.url) ? "&" : "?") + d.data
}
d.global && !bT.active++ && bT.event.trigger("ajaxStart");
q = (q = ba.exec(d.url)) && (q[1] && q[1] !== location.protocol || q[2] !== location.host);
if (d.dataType === "script" && m === "GET" && q) {
var v = bv.getElementsByTagName("head")[0] || bv.documentElement,
r = bv.createElement("script");
r.src = d.url;
if (d.scriptCharset) {
r.charset = d.scriptCharset
}
if (!i) {
var o = false;
r.onload = r.onreadystatechange = function () {
if (!o && (!this.readyState || this.readyState === "loaded" || this.readyState === "complete")) {
o = true;
a();
b();
r.onload = r.onreadystatechange = null;
v && r.parentNode && v.removeChild(r)
}
}
}
v.insertBefore(r, v.firstChild);
return bw
}
var u = false,
t = d.xhr();
if (t) {
d.username ? t.open(m, d.url, d.async, d.username, d.password) : t.open(m, d.url, d.async);
try {
if (d.data || y && y.contentType) {
t.setRequestHeader("Content-Type", d.contentType)
}
if (d.ifModified) {
bT.lastModified[d.url] && t.setRequestHeader("If-Modified-Since", bT.lastModified[d.url]);
bT.etag[d.url] && t.setRequestHeader("If-None-Match", bT.etag[d.url])
}
q || t.setRequestHeader("X-Requested-With", "XMLHttpRequest");
t.setRequestHeader("Accept", d.dataType && d.accepts[d.dataType] ? d.accepts[d.dataType] + ", */*" : d.accepts._default)
} catch (x) {}
if (d.beforeSend && d.beforeSend.call(j, t, d) === false) {
d.global && !--bT.active && bT.event.trigger("ajaxStop");
t.abort();
return false
}
d.global && e("ajaxSend", [t, d]);
var f = t.onreadystatechange = function (z) {
if (!t || t.readyState === 0 || z === "abort") {
u || b();
u = true;
if (t) {
t.onreadystatechange = bT.noop
}
} else {
if (!u && t && (t.readyState === 4 || z === "timeout")) {
u = true;
t.onreadystatechange = bT.noop;
h = z === "timeout" ? "timeout" : !bT.httpSuccess(t) ? "error" : d.ifModified && bT.httpNotModified(t, d.url) ? "notmodified" : "success";
var C;
if (h === "success") {
try {
n = bT.httpData(t, d.dataType, d)
} catch (B) {
h = "parsererror";
C = B
}
}
if (h === "success" || h === "notmodified") {
i || a()
} else {
bT.handleError(d, t, h, C)
}
b();
z === "timeout" && t.abort();
if (d.async) {
t = null
}
}
}
};
try {
var g = t.abort;
t.abort = function () {
t && g.call(t);
f("abort")
}
} catch (k) {}
d.async && d.timeout > 0 && setTimeout(function () {
t && !u && f("timeout")
}, d.timeout);
try {
t.send(m === "POST" || m === "PUT" || m === "DELETE" ? d.data : null)
} catch (l) {
bT.handleError(d, t, null, l);
b()
}
d.async || f();
return t
}
},
handleError: function (d, e, a, b) {
if (d.error) {
d.error.call(d.context || d, e, a, b)
}
if (d.global) {
(d.context ? bT(d.context) : bT.event).trigger("ajaxError", [e, d, b])
}
},
active: 0,
httpSuccess: function (a) {
try {
return !a.status && location.protocol === "file:" || a.status >= 200 && a.status < 300 || a.status === 304 || a.status === 1223 || a.status === 0
} catch (b) {}
return false
},
httpNotModified: function (d, e) {
var a = d.getResponseHeader("Last-Modified"),
b = d.getResponseHeader("Etag");
if (a) {
bT.lastModified[e] = a
}
if (b) {
bT.etag[e] = b
}
return d.status === 304 || d.status === 0
},
httpData: function (d, f, e) {
var b = d.getResponseHeader("content-type") || "",
a = f === "xml" || !f && b.indexOf("xml") >= 0;
d = a ? d.responseXML : d.responseText;
a && d.documentElement.nodeName === "parsererror" && bT.error("parsererror");
if (e && e.dataFilter) {
d = e.dataFilter(d, f)
}
if (typeof d === "string") {
if (f === "json" || !f && b.indexOf("json") >= 0) {
d = bT.parseJSON(d)
} else {
if (f === "script" || !f && b.indexOf("javascript") >= 0) {
bT.globalEval(d)
}
}
}
return d
},
param: function (e, g) {
function d(i, h) {
if (bT.isArray(h)) {
bT.each(h, function (j, k) {
g || /\[\]$/.test(i) ? a(i, k) : d(i + "[" + (typeof k === "object" || bT.isArray(k) ? j : "") + "]", k)
})
} else {
!g && h != null && typeof h === "object" ? bT.each(h, function (j, k) {
d(i + "[" + j + "]", k)
}) : a(i, h)
}
}
function a(i, h) {
h = bT.isFunction(h) ? h() : h;
f[f.length] = encodeURIComponent(i) + "=" + encodeURIComponent(h)
}
var f = [];
if (g === bw) {
g = bT.ajaxSettings.traditional
}
if (bT.isArray(e) || e.jquery) {
bT.each(e, function () {
a(this.name, this.value)
})
} else {
for (var b in e) {
d(b, e[b])
}
}
return f.join("&").replace(ct, "+")
}
});
var bo = {},
bu = /toggle|show|hide/,
b1 = /^([+-]=)?([\d+-.]+)(.*)$/,
bK, bE = [
["height", "marginTop", "marginBottom", "paddingTop", "paddingBottom"],
["width", "marginLeft", "marginRight", "paddingLeft", "paddingRight"],
["opacity"]
];
bT.fn.extend({
show: function (d, f) {
if (d || d === 0) {
return this.animate(cm("show", 3), d, f)
} else {
d = 0;
for (f = this.length; d < f; d++) {
var e = bT.data(this[d], "olddisplay");
this[d].style.display = e || "";
if (bT.css(this[d], "display") === "none") {
e = this[d].nodeName;
var b;
if (bo[e]) {
b = bo[e]
} else {
var a = bT("<" + e + " />").appendTo("body");
b = a.css("display");
if (b === "none") {
b = "block"
}
a.remove();
bo[e] = b
}
bT.data(this[d], "olddisplay", b)
}
}
d = 0;
for (f = this.length; d < f; d++) {
this[d].style.display = bT.data(this[d], "olddisplay") || ""
}
return this
}
},
hide: function (b, d) {
if (b || b === 0) {
return this.animate(cm("hide", 3), b, d)
} else {
b = 0;
for (d = this.length; b < d; b++) {
var a = bT.data(this[b], "olddisplay");
!a && a !== "none" && bT.data(this[b], "olddisplay", bT.css(this[b], "display"))
}
b = 0;
for (d = this.length; b < d; b++) {
this[b].style.display = "none"
}
return this
}
},
_toggle: bT.fn.toggle,
toggle: function (b, d) {
var a = typeof b === "boolean";
if (bT.isFunction(b) && bT.isFunction(d)) {
this._toggle.apply(this, arguments)
} else {
b == null || a ? this.each(function () {
var e = a ? b : bT(this).is(":hidden");
bT(this)[e ? "show" : "hide"]()
}) : this.animate(cm("toggle", 3), b, d)
}
return this
},
fadeTo: function (b, d, a) {
return this.filter(":hidden").css("opacity", 0).show().end().animate({
opacity: d
}, b, a)
},
animate: function (d, f, e, b) {
var a = bT.speed(f, e, b);
if (bT.isEmptyObject(d)) {
return this.each(a.complete)
}
return this[a.queue === false ? "each" : "queue"](function () {
var i = bT.extend({}, a),
h, g = this.nodeType === 1 && bT(this).is(":hidden"),
j = this;
for (h in d) {
var k = h.replace(bX, F);
if (h !== k) {
d[k] = d[h];
delete d[h];
h = k
}
if (d[h] === "hide" && g || d[h] === "show" && !g) {
return i.complete.call(this)
}
if ((h === "height" || h === "width") && this.style) {
i.display = bT.css(this, "display");
i.overflow = this.style.overflow
}
if (bT.isArray(d[h])) {
(i.specialEasing = i.specialEasing || {})[h] = d[h][1];
d[h] = d[h][0]
}
}
if (i.overflow != null) {
this.style.overflow = "hidden"
}
i.curAnim = bT.extend({}, d);
bT.each(d, function (p, q) {
var m = new bT.fx(j, i, p);
if (bu.test(q)) {
m[q === "toggle" ? g ? "show" : "hide" : q](d)
} else {
var n = b1.exec(q),
l = m.cur(true) || 0;
if (n) {
q = parseFloat(n[2]);
var o = n[3] || "px";
if (o !== "px") {
j.style[p] = (q || 1) + o;
l = (q || 1) / m.cur(true) * l;
j.style[p] = l + o
}
if (n[1]) {
q = (n[1] === "-=" ? -1 : 1) * q + l
}
m.custom(l, q, o)
} else {
m.custom(l, q, "")
}
}
});
return true
})
},
stop: function (b, d) {
var a = bT.timers;
b && this.queue([]);
this.each(function () {
for (var e = a.length - 1; e >= 0; e--) {
if (a[e].elem === this) {
d && a[e](true);
a.splice(e, 1)
}
}
});
d || this.dequeue();
return this
}
});
bT.each({
slideDown: cm("show", 1),
slideUp: cm("hide", 1),
slideToggle: cm("toggle", 1),
fadeIn: {
opacity: "show"
},
fadeOut: {
opacity: "hide"
}
}, function (a, b) {
bT.fn[a] = function (d, e) {
return this.animate(b, d, e)
}
});
bT.extend({
speed: function (d, e, a) {
var b = d && typeof d === "object" ? d : {
complete: a || !a && e || bT.isFunction(d) && d,
duration: d,
easing: a && e || e && !bT.isFunction(e) && e
};
b.duration = bT.fx.off ? 0 : typeof b.duration === "number" ? b.duration : bT.fx.speeds[b.duration] || bT.fx.speeds._default;
b.old = b.complete;
b.complete = function () {
b.queue !== false && bT(this).dequeue();
bT.isFunction(b.old) && b.old.call(this)
};
return b
},
easing: {
linear: function (d, e, a, b) {
return a + b * d
},
swing: function (d, e, a, b) {
return (-Math.cos(d * Math.PI) / 2 + 0.5) * b + a
}
},
timers: [],
fx: function (b, d, a) {
this.options = d;
this.elem = b;
this.prop = a;
if (!d.orig) {
d.orig = {}
}
}
});
bT.fx.prototype = {
update: function () {
this.options.step && this.options.step.call(this.elem, this.now, this);
(bT.fx.step[this.prop] || bT.fx.step._default)(this);
if ((this.prop === "height" || this.prop === "width") && this.elem.style) {
this.elem.style.display = "block"
}
},
cur: function (a) {
if (this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null)) {
return this.elem[this.prop]
}
return (a = parseFloat(bT.css(this.elem, this.prop, a))) && a > -10000 ? a : parseFloat(bT.curCSS(this.elem, this.prop)) || 0
},
custom: function (d, f, e) {
function b(g) {
return a.step(g)
}
this.startTime = cj();
this.start = d;
this.end = f;
this.unit = e || this.unit || "px";
this.now = this.start;
this.pos = this.state = 0;
var a = this;
b.elem = this.elem;
if (b() && bT.timers.push(b) && !bK) {
bK = setInterval(bT.fx.tick, 13)
}
},
show: function () {
this.options.orig[this.prop] = bT.style(this.elem, this.prop);
this.options.show = true;
this.custom(this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur());
bT(this.elem).show()
},
hide: function () {
this.options.orig[this.prop] = bT.style(this.elem, this.prop);
this.options.hide = true;
this.custom(this.cur(), 0)
},
step: function (d) {
var f = cj(),
e = true;
if (d || f >= this.options.duration + this.startTime) {
this.now = this.end;
this.pos = this.state = 1;
this.update();
this.options.curAnim[this.prop] = true;
for (var b in this.options.curAnim) {
if (this.options.curAnim[b] !== true) {
e = false
}
}
if (e) {
if (this.options.display != null) {
this.elem.style.overflow = this.options.overflow;
d = bT.data(this.elem, "olddisplay");
this.elem.style.display = d ? d : this.options.display;
if (bT.css(this.elem, "display") === "none") {
this.elem.style.display = "block"
}
}
this.options.hide && bT(this.elem).hide();
if (this.options.hide || this.options.show) {
for (var a in this.options.curAnim) {
bT.style(this.elem, a, this.options.orig[a])
}
}
this.options.complete.call(this.elem)
}
return false
} else {
a = f - this.startTime;
this.state = a / this.options.duration;
d = this.options.easing || (bT.easing.swing ? "swing" : "linear");
this.pos = bT.easing[this.options.specialEasing && this.options.specialEasing[this.prop] || d](this.state, a, 0, 1, this.options.duration);
this.now = this.start + (this.end - this.start) * this.pos;
this.update()
}
return true
}
};
bT.extend(bT.fx, {
tick: function () {
for (var a = bT.timers, b = 0; b < a.length; b++) {
a[b]() || a.splice(b--, 1)
}
a.length || bT.fx.stop()
},
stop: function () {
clearInterval(bK);
bK = null
},
speeds: {
slow: 600,
fast: 200,
_default: 400
},
step: {
opacity: function (a) {
bT.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 (bT.expr && bT.expr.filters) {
bT.expr.filters.animated = function (a) {
return bT.grep(bT.timers, function (b) {
return a === b.elem
}).length
}
}
bT.fn.offset = "getBoundingClientRect" in bv.documentElement ?
function (d) {
var e = this[0];
if (d) {
return this.each(function (f) {
bT.offset.setOffset(this, d, f)
})
}
if (!e || !e.ownerDocument) {
return null
}
if (e === e.ownerDocument.body) {
return bT.offset.bodyOffset(e)
}
var a = e.getBoundingClientRect(),
b = e.ownerDocument;
e = b.body;
b = b.documentElement;
return {
top: a.top + (self.pageYOffset || bT.support.boxModel && b.scrollTop || e.scrollTop) - (b.clientTop || e.clientTop || 0),
left: a.left + (self.pageXOffset || bT.support.boxModel && b.scrollLeft || e.scrollLeft) - (b.clientLeft || e.clientLeft || 0)
}
} : function (b) {
var e = this[0];
if (b) {
return this.each(function (l) {
bT.offset.setOffset(this, b, l)
})
}
if (!e || !e.ownerDocument) {
return null
}
if (e === e.ownerDocument.body) {
return bT.offset.bodyOffset(e)
}
bT.offset.initialize();
var f = e.offsetParent,
i = e,
g = e.ownerDocument,
a, j = g.documentElement,
d = g.body;
i = (g = g.defaultView) ? g.getComputedStyle(e, null) : e.currentStyle;
for (var h = e.offsetTop, k = e.offsetLeft;
(e = e.parentNode) && e !== d && e !== j;) {
if (bT.offset.supportsFixedPosition && i.position === "fixed") {
break
}
a = g ? g.getComputedStyle(e, null) : e.currentStyle;
h -= e.scrollTop;
k -= e.scrollLeft;
if (e === f) {
h += e.offsetTop;
k += e.offsetLeft;
if (bT.offset.doesNotAddBorder && !(bT.offset.doesAddBorderForTableAndCells && /^t(able|d|h)$/i.test(e.nodeName))) {
h += parseFloat(a.borderTopWidth) || 0;
k += parseFloat(a.borderLeftWidth) || 0
}
i = f;
f = e.offsetParent
}
if (bT.offset.subtractsBorderForOverflowNotVisible && a.overflow !== "visible") {
h += parseFloat(a.borderTopWidth) || 0;
k += parseFloat(a.borderLeftWidth) || 0
}
i = a
}
if (i.position === "relative" || i.position === "static") {
h += d.offsetTop;
k += d.offsetLeft
}
if (bT.offset.supportsFixedPosition && i.position === "fixed") {
h += Math.max(j.scrollTop, d.scrollTop);
k += Math.max(j.scrollLeft, d.scrollLeft)
}
return {
top: h,
left: k
}
};
bT.offset = {
initialize: function () {
var e = bv.body,
g = bv.createElement("div"),
d, a, f, b = parseFloat(bT.curCSS(e, "marginTop", true)) || 0;
bT.extend(g.style, {
position: "absolute",
top: 0,
left: 0,
margin: 0,
border: 0,
width: "1px",
height: "1px",
visibility: "hidden"
});
g.innerHTML = "<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
e.insertBefore(g, e.firstChild);
d = g.firstChild;
a = d.firstChild;
f = d.nextSibling.firstChild.firstChild;
this.doesNotAddBorder = a.offsetTop !== 5;
this.doesAddBorderForTableAndCells = f.offsetTop === 5;
a.style.position = "fixed";
a.style.top = "20px";
this.supportsFixedPosition = a.offsetTop === 20 || a.offsetTop === 15;
a.style.position = a.style.top = "";
d.style.overflow = "hidden";
d.style.position = "relative";
this.subtractsBorderForOverflowNotVisible = a.offsetTop === -5;
this.doesNotIncludeMarginInBodyOffset = e.offsetTop !== b;
e.removeChild(g);
bT.offset.initialize = bT.noop
},
bodyOffset: function (b) {
var d = b.offsetTop,
a = b.offsetLeft;
bT.offset.initialize();
if (bT.offset.doesNotIncludeMarginInBodyOffset) {
d += parseFloat(bT.curCSS(b, "marginTop", true)) || 0;
a += parseFloat(bT.curCSS(b, "marginLeft", true)) || 0
}
return {
top: d,
left: a
}
},
setOffset: function (f, h, d) {
if (/static/.test(bT.curCSS(f, "position"))) {
f.style.position = "relative"
}
var g = bT(f),
e = g.offset(),
b = parseInt(bT.curCSS(f, "top", true), 10) || 0,
a = parseInt(bT.curCSS(f, "left", true), 10) || 0;
if (bT.isFunction(h)) {
h = h.call(f, d, e)
}
d = {
top: h.top - e.top + b,
left: h.left - e.left + a
};
"using" in h ? h.using.call(f, d) : g.css(d)
}
};
bT.fn.extend({
position: function () {
if (!this[0]) {
return null
}
var d = this[0],
e = this.offsetParent(),
a = this.offset(),
b = /^body|html$/i.test(e[0].nodeName) ? {
top: 0,
left: 0
} : e.offset();
a.top -= parseFloat(bT.curCSS(d, "marginTop", true)) || 0;
a.left -= parseFloat(bT.curCSS(d, "marginLeft", true)) || 0;
b.top += parseFloat(bT.curCSS(e[0], "borderTopWidth", true)) || 0;
b.left += parseFloat(bT.curCSS(e[0], "borderLeftWidth", true)) || 0;
return {
top: a.top - b.top,
left: a.left - b.left
}
},
offsetParent: function () {
return this.map(function () {
for (var a = this.offsetParent || bv.body; a && !/^body|html$/i.test(a.nodeName) && bT.css(a, "position") === "static";) {
a = a.offsetParent
}
return a
})
}
});
bT.each(["Left", "Top"], function (b, d) {
var a = "scroll" + d;
bT.fn[a] = function (g) {
var f = this[0],
e;
if (!f) {
return null
}
if (g !== bw) {
return this.each(function () {
if (e = O(this)) {
e.scrollTo(!b ? g : bT(e).scrollLeft(), b ? g : bT(e).scrollTop())
} else {
this[a] = g
}
})
} else {
return (e = O(f)) ? "pageXOffset" in e ? e[b ? "pageYOffset" : "pageXOffset"] : bT.support.boxModel && e.document.documentElement[a] || e.document.body[a] : f[a]
}
}
});
bT.each(["Height", "Width"], function (b, d) {
var a = d.toLowerCase();
bT.fn["inner" + d] = function () {
return this[0] ? bT.css(this[0], a, false, "padding") : null
};
bT.fn["outer" + d] = function (e) {
return this[0] ? bT.css(this[0], a, false, e ? "margin" : "border") : null
};
bT.fn[a] = function (e) {
var f = this[0];
if (!f) {
return e == null ? null : this
}
if (bT.isFunction(e)) {
return this.each(function (h) {
var g = bT(this);
g[a](e.call(this, h, g[a]()))
})
}
return "scrollTo" in f && f.document ? f.document.compatMode === "CSS1Compat" && f.document.documentElement["client" + d] || f.document.body["client" + d] : f.nodeType === 9 ? Math.max(f.documentElement["client" + d], f.body["scroll" + d], f.documentElement["scroll" + d], f.body["offset" + d], f.documentElement["offset" + d]) : e === bw ? bT.css(f, a) : this.css(a, typeof e === "string" ? e : e + "px")
}
});
ca.jQuery = ca.$ = bT
})(window);
jQuery.cookie = function (w, p, i) {
if (typeof p != "undefined") {
i = i || {};
if (p === null) {
p = "";
i.expires = -1
}
var t = "";
if (i.expires && (typeof i.expires == "number" || i.expires.toUTCString)) {
var s;
if (typeof i.expires == "number") {
s = new Date();
s.setTime(s.getTime() + (i.expires * 24 * 60 * 60 * 1000))
} else {
s = i.expires
}
t = "; expires=" + s.toUTCString()
}
var n = i.path ? "; path=" + (i.path) : "";
var r = i.domain ? "; domain=" + (i.domain) : "";
var x = i.secure ? "; secure" : "";
document.cookie = [w, "=", encodeURIComponent(p), t, n, r, x].join("")
} else {
var u = null;
if (document.cookie && document.cookie != "") {
var o = document.cookie.split(";");
for (var q = 0; q < o.length; q++) {
var v = jQuery.trim(o[q]);
if (v.substring(0, w.length + 1) == (w + "=")) {
u = decodeURIComponent(v.substring(w.length + 1));
break
}
}
}
return u
}
};
(function (u) {
u.fn.jqm = function (a) {
var b = {
overlay: 50,
overlayClass: "jqmOverlay",
closeClass: "jqmClose",
trigger: ".jqModal",
ajax: f,
ajaxP: f,
ajaxText: "",
target: f,
modal: f,
toTop: f,
onShow: f,
onHide: f,
onLoad: f
};
return this.each(function () {
if (this._jqm) {
return i[this._jqm].c = u.extend({}, i[this._jqm].c, a)
}
e++;
this._jqm = e;
i[e] = {
c: u.extend(b, u.jqm.params, a),
a: f,
w: u(this).addClass("jqmID" + e),
s: e
};
if (b.trigger) {
u(this).jqmAddTrigger(b.trigger)
}
})
};
u.fn.jqmAddClose = function (a) {
return m(this, a, "jqmHide")
};
u.fn.jqmAddTrigger = function (a) {
return m(this, a, "jqmShow")
};
u.fn.jqmShow = function (a) {
return this.each(function () {
a = a || window.event;
u.jqm.open(this._jqm, a)
})
};
u.fn.jqmHide = function (a) {
return this.each(function () {
a = a || window.event;
u.jqm.close(this._jqm, a)
})
};
u.jqm = {
hash: {},
open: function (b, c) {
var d = i[b],
a = d.c,
g = "." + a.closeClass,
n = (parseInt(d.w.css("z-index"))),
n = (n > 0) ? n : 3000,
h = u("<div></div>").css({
height: "100%",
width: "100%",
position: "fixed",
left: 0,
top: 0,
"z-index": n - 1,
opacity: a.overlay / 100
});
if (d.a) {
return f
}
d.t = c;
d.a = true;
d.w.css("z-index", n);
if (a.modal) {
if (!x[0]) {
q("bind")
}
x.push(b)
} else {
if (a.overlay > 0) {
d.w.jqmAddClose(h)
} else {
h = f
}
}
d.o = (h) ? h.addClass(a.overlayClass).prependTo("body") : f;
if (v) {
u("html,body").css({
height: "100%",
width: "100%"
});
if (h) {
h = h.css({
position: "absolute"
})[0];
for (var l in {
Top: 1,
Left: 1
}) {
h.style.setExpression(l.toLowerCase(), "(_=(document.documentElement.scroll" + l + " || document.body.scroll" + l + "))+'px'")
}
}
}
if (a.ajax) {
var j = a.target || d.w,
k = a.ajax,
j = (typeof j == "string") ? u(j, d.w) : u(j),
k = (k.substr(0, 1) == "@") ? u(c).attr(k.substring(1)) : k;
j.html(a.ajaxText).load(k, a.ajaxP, function () {
if (a.onLoad) {
a.onLoad.call(this, d)
}
if (g) {
d.w.jqmAddClose(u(g, d.w))
}
r(d)
})
} else {
if (g) {
d.w.jqmAddClose(u(g, d.w))
}
}
if (a.toTop && d.o) {
d.w.before('<span id="jqmP' + d.w[0]._jqm + '"></span>').insertAfter(d.o)
}(a.onShow) ? a.onShow(d) : d.w.show();
r(d);
return f
},
close: function (a) {
var b = i[a];
if (!b.a) {
return f
}
b.a = f;
if (x[0]) {
x.pop();
if (!x[0]) {
q("unbind")
}
}
if (b.c.toTop && b.o) {
u("#jqmP" + b.w[0]._jqm).after(b.w).remove()
}
if (b.c.onHide) {
b.c.onHide(b)
} else {
b.w.hide();
if (b.o) {
b.o.remove()
}
}
return f
},
params: {}
};
var e = 0,
i = u.jqm.hash,
x = [],
v = u.browser.msie && (u.browser.version == "6.0"),
f = false,
t = u('<iframe src="javascript:false;document.write(\'\');" class="jqm"></iframe>').css({
opacity: 0
}),
r = function (a) {
if (v) {
if (a.o) {
a.o.html('<p style="width:100%;height:100%"/>').prepend(t)
} else {
if (!u("iframe.jqm", a.w)[0]) {
a.w.prepend(t)
}
}
}
s(a)
},
s = function (a) {
try {
u(":input:visible", a.w)[0].focus()
} catch (b) {}
},
q = function (a) {
u()[a]("keypress", w)[a]("keydown", w)[a]("mousedown", w)
},
w = function (a) {
var c = i[x[x.length - 1]],
b = (!u(a.target).parents(".jqmID" + c.s)[0]);
if (b) {
s(c)
}
return !b
},
m = function (c, b, a) {
return c.each(function () {
var d = this._jqm;
u(b).each(function () {
if (!this[a]) {
this[a] = [];
u(this).click(function () {
for (var h in {
jqmShow: 1,
jqmHide: 1
}) {
for (var g in this[h]) {
if (i[this[h][g]]) {
i[this[h][g]].w[h](this)
}
}
}
return f
})
}
this[a].push(d)
})
})
}
})(jQuery);
var lazyLoadImageObjArry = lazyLoadImageObjArry || [];
var isBusy = false;
var threadCount = 0;
var imgCountPerTime = 1000;
var lazyLoadDelay = 50;
(function (b) {
b.YHD = {
imgLoad: {
objArray: [],
loadImg: function (e) {
if (e && e.length > 0) {
for (var f = 0, a = e.length; f < a; f++) {
if (b.inArray(e[f], b.YHD.imgLoad.objArray) == -1) {
b.YHD.imgLoad.objArray.push(e[f])
}
}
}
},
pageTop: function () {
return document.documentElement.clientHeight + Math.max(document.documentElement.scrollTop, document.body.scrollTop)
},
load: function () {
isBusy = true;
threadCount = 0;
var a = b.YHD.imgLoad.pageTop();
for (var p = 0, q = b.YHD.imgLoad.objArray.length; p < q; p++) {
var m = b("#" + b.YHD.imgLoad.objArray[p]);
if (m) {
var n = m.find("img");
for (var i = 0, l = n.size(); i < l; i++) {
var o = b(n[i]);
if (o.offset().top <= a + 100) {
var r = o.attr("original");
if (r) {
o.attr("src", r).removeAttr("original");
threadCount++;
if (threadCount >= imgCountPerTime) {
break
}
}
}
}
}
if (threadCount >= imgCountPerTime) {
break
}
}
if (threadCount >= imgCountPerTime) {
setTimeout("$.YHD.imgLoad.load()", lazyLoadDelay)
} else {
isBusy = false
}
}
}
}
})(jQuery);
function initImageLoad() {
if (lazyLoadImageObjArry && lazyLoadImageObjArry.length > 0) {
$.YHD.imgLoad.loadImg(lazyLoadImageObjArry);
window.scrollTo(0, 0);
$(window).bind("scroll", function () {
if (!isBusy) {
$.YHD.imgLoad.load()
} else {}
})
}
}
jQuery("#footer").ready(function () {
if (isIndex != 1) {
initImageLoad()
}
});
jQuery(document).ready(function () {
if (isIndex == null || isIndex != 1) {
jQuery("#yhd_pop_win").bgiframe()
}
});
var YHD = {
init: function () {
if (jQuery("#yhd_pop_win").size() > 0) {
jQuery("#yhd_pop_win").jqm({
overlay: 50,
overlayClass: "jqmOverlay",
closeClass: "jqmClose",
trigger: ".jqModal",
ajax: false,
ajaxP: false,
ajaxText: "",
target: false,
modal: false,
toTop: false,
onShow: false,
onHide: false,
onLoad: false
})
}
},
initPosition: function (o, l, n, m, p) {
var r = (l == null ? o.width() : l);
var k = (n == null ? o.height() : n);
jQuery(o).width(r).height(k);
if (m && p) {
jQuery(o).css({
top: m,
left: p
})
} else {
if (m != null) {
jQuery(o).css({
top: m
})
} else {
if (p != null) {
jQuery(o).css({
left: p
})
} else {
var q = (jQuery(window).width() - o.width()) / 2 + jQuery(window).scrollLeft() + "px";
var h = (jQuery(window).height() - o.height()) / 2 + jQuery(window).scrollTop() + "px";
jQuery(o).css("left", q).css("top", h)
}
}
}
if (l != null && n != null) {
jQuery(o).jqm({
onHide: function (a) {
a.w.width(0).height(0).hide();
if (a.o) {
a.o.remove()
}
}
})
}
},
popwin: function (h, n, m, j, k, l) {
YHD.init();
var i = jQuery("#yhd_pop_win");
if (h != null) {
jQuery(i).html(h)
}
YHD.initPosition(i, n, m, j, k);
jQuery(i).jqm({
overlay: 10,
overlayClass: "pop_win_bg",
modal: true,
toTop: true
}).jqmShow().jqmAddClose(".popwinClose")
},
popwinId: function (j, k, h, n, l, m) {
var i = jQuery("#" + j);
YHD.initPosition(i, h, n, l, m);
i.css("height", "auto");
i.css("z-index", "1000");
i.show();
if (!k) {
k = "popwinClose"
}
jQuery("." + k, i).bind("click", function () {
i.hide()
})
},
popTitleWin: function (k, p, j, o, l, m, n) {
var h = '<H3 class="pop_win_title" >' + k + '<img src="' + imagePath + '/icon_close.jpg" class="popwinClose"/></H3>';
h += '<div class="pop_win_content" class="content">' + p + "</div>";
h += '<div style="clear:both"></div>';
YHD.popwin(h, j, o, l, m, n)
},
alert: function (i, j, h, l, k) {
var g = '<div class="aptab" style="left: 0px; top: 0px;"><div class="aptab_header"><ul><li class="fl pl10">温馨提示</li><li class="popwinClose fr btn_close mr10"><img src="' + imagePath + '/popwin/icon_close.jpg"></li><li class="popwinClose fr mr5 color_white"><a href="###">关闭</a></li></ul> <div class="clear"></div></div>';
g += '<div class="aptab_center" align="center"><p class="pt10">' + i + "</p>";
g += '<p class="pt5"><input name="submit" class="pop_win_button popwinClose" id="pop_win_ok_btn" type="button" value="确 定" /></p>';
g += "</div>";
g += '<div class="aptab_footer"><img src="' + imagePath + '/popwin/aptab_footer.jpg"></div></div>';
if (h == null) {
h = 300
}
YHD.popwin(g, h, l, null, null, k);
if (j) {
jQuery("#pop_win_ok_btn").click(function () {
j()
})
}
},
alertPrescriotion: function (q, o, h, m, t) {
var p = "";
if (q == null) {
p = ""
} else {
if (q == 14) {
p = "本品为处方药,为了用药安全,已经将您的个人信息进行登记,谢谢配合!如需用药指导帮助请联系在线客服!"
} else {
if (q == 16 || q == 17 || q == 18) {
p = "本品为处方药,不能网络订购;如需购买,请到药店凭处方购买或咨询客服!"
} else {
p = "本品为处方药,请在提交订单前上传处方,如需用药师指导帮助,请联系在线客服!"
}
}
}
var r = "确定";
if (q != null && (q == 16 || q == 17 || q == 18)) {
r = "关闭"
}
var l = '<input name="submit" class="pop_win_button popwinClose fl" id="pop_win_ok_btn" type="button" value="' + r + '" />';
var n = '<a href="http://vipwebchat.tq.cn/sendmain.jsp?admiuin=8987730&uin=8987730&tag=call&ltype=1&rand=15214019897292372&iscallback=0&agentid=0&comtimes=48&preuin=8987730&buttonsflag=1010011111111&is_appraise=1&color=6&style=1&isSendPreWords=1&welcome_msg=%C4%FA%BA%C3%A3%A1%CE%D2%CA%C7%C6%BD%B0%B2%D2%A9%CD%F8%B5%C4%D6%B4%D0%D0%D2%A9%CA%A6%A3%AC%C7%EB%CE%CA%C4%FA%D0%E8%D2%AA%CA%B2%C3%B4%B0%EF%D6%FA%A3%BF&tq_right_infocard_url=' + imagePath + "/images/yaowang/v2/tq01.jpg&cp_title=%BB%B6%D3%AD%CA%B9%D3%C3%C6%BD%B0%B2%D2%A9%CD%F8%D4%DA%CF%DF%BD%D3%B4%FD%CF%B5%CD%B3&page=" + imagePath + "/&localurl=" + imagePath + "/channel/15694&spage=" + imagePath + '/&nocache=0.6430502517039929" class="pop_win_button fl" style="display:block;">咨询</a>';
var s = '<div class="aptab" style="left: 0px; top: 0px;"><div class="aptab_header"><ul><li class="fl pl10">温馨提示</li><li class="popwinClose fr btn_close mr10"><img src="' + imagePath + '/popwin/icon_close.jpg"></li><li class="popwinClose fr mr5 color_white"><a href="###">关闭</a></li></ul> <div class="clear"></div></div>';
s += '<div class="aptab_center" align="center"><p class="pt10">' + p + "</p>";
s += '<div class="pt5" style="width:150px;">';
if (q != null && (q == 16 || q == 17 || q == 18)) {
s += n;
s += l
} else {
s += l;
s += n
}
s += '<div class="clear"></div></div>';
s += '<p class="pt10 mb10" style="color:#b00000;font-weight:bold;">免费客服热线:400-820-2766</p></div>';
s += '<div class="aptab_footer"><img src="' + imagePath + '/popwin/aptab_footer.jpg"></div></div>';
if (h == null) {
h = 300
}
YHD.popwin(s, h, m, null, null, t);
if (o) {
if (q != null && q != 16 && q != 17 && q != 18) {
jQuery("#pop_win_ok_btn").click(function () {
o()
})
}
}
},
alertForLottery: function (i, j, h, l, k) {
var g = '<div class="popbox"><div><h2><a href="#" class="popwinClose">关闭</a>温馨提示</h2><dl class="noaward">';
g += "<dt>" + i + "</dt>";
g += '</dl><p><button class="btn_go" id="pop_win_ok_btn">确定</button></p></div></div>';
if (h == null) {
h = 300
}
YHD.popwin(g, h, l, null, null, k);
if (j) {
jQuery("#pop_win_ok_btn").click(function () {
j()
})
}
},
confirm: function (j, n, h, i, l, k) {
var m = '<div class="aptab" style="left: 0px; top: 0px;"><div class="aptab_header"><ul><li class="fl pl10">温馨提示</li><li class="popwinClose fr btn_close mr10"><img src="' + imagePath + '/popwin/icon_close.jpg"></li><li class="popwinClose fr mr5 color_white"><a href="###">关闭</a></li></ul> <div class="clear"></div></div>';
m += '<div class="aptab_center" align="center"><p class="pt10">' + j + "</p>";
m += '<div align="center"><input name="submit" class="pop_win_button popwinClose" id="pop_win_ok_btn" type="button" value="确 定" /><input name="submit" class="pop_win_button popwinClose" type="button" id="pop_win_cancel_btn" value="返回购物车" /></div>';
m += "</div>";
m += '<div class="aptab_footer"><img src="' + imagePath + '/popwin/aptab_footer.jpg"></div></div>';
if (i == null) {
i = 300
}
YHD.popwin(m, i, l, null, null, k);
if (n) {
jQuery("#pop_win_ok_btn").click(function () {
n()
})
}
if (h) {
jQuery("#pop_win_cancel_btn").click(function () {
h()
})
}
},
confirmToLottery: function (j, n, h, i, l, k) {
var m = "" + j + "";
if (i == null) {
i = 300
}
YHD.popwin(m, i, l, null, null, k);
if (n) {
jQuery("#pop_win_ok_btn").click(function () {
n()
})
}
if (h) {
jQuery("#pop_win_cancel_btn").click(function () {
h()
})
}
},
processBar: function (d, c) {
if (d) {
YHD.popwin('<img src="' + imagePath + '/loading.gif" />', null, null, null, null, c)
} else {
jQuery("#yhd_pop_win").jqmHide()
}
},
ajax: function (m, n, j, l) {
var i = jQuery("#yhd_pop_win");
i.jqm({
ajax: m,
ajaxP: n,
ajaxText: '<img src="' + imagePath + '/loading.gif" />',
onLoad: j,
modal: true,
toTop: true,
closeClass: "popwinClose"
}).jqmShow();
var k = (jQuery(window).width() - i.width()) / 2 + jQuery(window).scrollLeft() + "px";
var h = (jQuery(window).height() - i.height()) / 2 + jQuery(window).scrollTop() + "px";
jQuery(i).css("left", k).css("top", h)
},
ajaxPointAlert: function (m, n, j, l) {
var i = jQuery("#yhd_pop_win");
i.jqm({
ajax: m,
ajaxP: n,
ajaxText: '<img src="' + imagePath + '/loading.gif" />',
onLoad: j,
modal: true,
toTop: true,
closeClass: "popwinClose"
}).jqmShow();
var k = "436.5px";
var h = (jQuery(window).height() - i.height()) / 2 + jQuery(window).scrollTop() + "px";
jQuery(i).css("left", k).css("top", h)
},
pageX: function (b) {
b = b || window.event;
return b.pageX || b.clientX + document.body.scrollLeft
},
pageY: function (b) {
b = b || window.event;
return b.pageY || b.clientY + document.body.scrollTop
}
};
function DrawImage(d, a, c) {
var b = new Image();
b.src = d.src;
if (b.width > 0 && b.height > 0) {
if (b.width / b.height >= a / c) {
if (b.width > a) {
d.width = a;
d.height = (b.height * a) / b.width
} else {
d.width = b.width;
d.height = b.height
}
} else {
if (b.height > c) {
d.height = c;
d.width = (b.width * c) / b.height
} else {
d.width = b.width;
d.height = b.height
}
}
}
}
function switch_btn_img(a, b) {
if (a != null && b != null) {
jQuery(a).attr("src", b)
}
};
Array.prototype.toTRACKERJSONString = function () {
var d = "[";
for (var c = 0; c < this.length; c++) {
if (this[c] instanceof Parameter) {
if (this[c].value instanceof Array) {
d += "{" + this[c].key + "=" + this[c].value.toTRACKERJSONString() + "},"
} else {
d += this[c].toJSONString() + ","
}
}
}
if (d.indexOf(",") > 0) {
d = d.substring(0, d.length - 1)
}
return d + "]"
};
var trackerUrl = "";
function Parameter(d, c) {
this.key = d;
if (this.key == "internalKeyword") {
this.value = encodeURI(c)
} else {
this.value = c
}
this.toJSONString = function () {
return "{" + this.key + "=" + this.value + "}"
}
}
function TrackerContainer(b) {
this.url = b;
this.parameterArray = new Array();
this.stockArray = new Array();
this.commonAttached = new Array();
this.addParameter = function (a) {
this.parameterArray.push(a)
};
this.addStock = function (d, a) {
this.stockArray.push(new Parameter(d, a))
};
this.addCommonAttached = function (a, d) {
this.commonAttached.push(new Parameter(a, d))
};
this.buildAttached = function () {
if (this.stockArray.length > 0) {
this.commonAttached.push(new Parameter("1", this.stockArray))
}
if (this.commonAttached.length > 0) {
this.addParameter(new Parameter("attachedInfo", this.commonAttached.toTRACKERJSONString("attachedInfo")))
}
};
this.toUrl = function () {
this.buildAttached();
for (var f = 0; f < this.parameterArray.length; f++) {
var a = this.parameterArray[f].key;
var e = this.parameterArray[f].value;
this.url += "&" + a + "=" + e
}
trackerUrl = this.url;
return this.url
}
}
var trackerUrl = ("https:" == document.location.protocol ? "https://" : "http://") + "tracker.yihaodian.com/tracker/info.do?1=1";
var trackerContainer = new TrackerContainer(trackerUrl);
trackerContainer.addParameter(new Parameter("ieVersion", navigator.appVersion));
trackerContainer.addParameter(new Parameter("platform", navigator.platform));
function clearTrackPositionToCookie(d, f) {
var e = new Date();
e.setTime(e.getTime() - 10000);
document.cookie = d + "=" + f + ";path=/;domain=;expires=" + e.toGMTString()
}
function addTrackPositionToCookie(c, d) {
if (c == "1") {
document.cookie = "linkPosition=" + d + ";path=/;domain=.;"
} else {
if (c == "2") {
document.cookie = "buttonPosition=" + d + ";path=/;domain=.;"
}
}
}
function getCookie(f) {
var i = document.cookie;
var h = i.split("; ");
for (var j = 0; j < h.length; j++) {
var g = h[j].split("=");
if (g[0] == f) {
return g[1]
}
}
return null
}
var linkPosition = "";
var buttonPosition = "";
if (getCookie("linkPosition") != null) {
linkPosition = getCookie("linkPosition");
trackerContainer.addParameter(new Parameter("linkPosition", linkPosition));
clearTrackPositionToCookie("linkPosition", linkPosition)
} else {
if (getCookie("buttonPosition") != null) {
buttonPosition = getCookie("buttonPosition");
trackerContainer.addParameter(new Parameter("buttonPosition", buttonPosition));
clearTrackPositionToCookie("buttonPosition", buttonPosition)
}
}
function gotracker(h, g, i) {
var f = trackerUrl;
var j = new RegExp("&linkPosition=\\w*", "g");
f = f.replace(j, "");
var j = new RegExp("&buttonPosition=\\w*", "g");
f = f.replace(j, "");
var j = new RegExp("&productId=\\w*", "g");
f = f.replace(j, "");
if (h != null) {
if (h == 2) {
f = f + "&buttonPosition=" + g
} else {
f = f + "&linkPosition=" + g
}
}
if (i != null) {
f = f + "&productId=" + i
}
jQuery.ajax({
async: true,
url: f,
type: "GET",
dataType: "jsonp",
jsonp: "jsoncallback"
})
}
function bindLinkClickTracker(e, f) {
var d = jQuery("#" + e + " a");
d.click(function () {
var a = jQuery(this).text();
a = f + "_" + encodeURIComponent(jQuery.trim(a));
addTrackPositionToCookie("1", a)
})
};
function pingan_quit() {
var a = new Date((new Date()).getTime()).toGMTString();
document.cookie = "ut=;expires=" + a + ";domain=.;path=/";
document.cookie = "ucocode=;expires=" + a + ";domain=.;path=/";
document.cookie = "cocode=;expires=" + a + ";domain=.;path=/";
location.href = "https://www.wanlitong.com/eloyalty_chs/start.swe?SWENeedContext=false&SWECmd=Logoff&SWEC=2&SWEBID=-1&SWETS="
}
function kx001_onlogout() {
window.location.href = httpUrl + "/passport/logoff.do"
}
function hightLightMenu(b, g) {
var f, e;
var d = jQuery(b);
var a = jQuery("a", b);
f = location.href;
jQuery(d[0]).addClass("select");
for (var c = 1; c < a.length; c++) {
e = a[c].getAttribute("href");
if (f.indexOf(e) > -1) {
if (c != 0) {
jQuery(d[0]).removeClass("select");
jQuery(d[c]).addClass("select")
}
break
}
if (f.indexOf("point2channel.do") > -1) {
if (e.indexOf("/point2/pointIndex.do") > -1) {
jQuery(d[0]).removeClass("select");
jQuery(d[c]).addClass("select");
break
}
}
}
}
function resetGlobalFloatSearchOffSet() {
var a = jQuery("#keyword").offset();
if (a != null) {
jQuery("#searchSuggest").css({
left: a.left
})
}
}
function elementPosByScrollBar(f, d, c) {
var b = jQuery(f);
if (b.length > 0) {
var e = parseInt(b.css("top").replace("px", "")) + (d == null ? 0 : d);
var a = parseInt(b.css("left").replace("px", "")) + (c == null ? 0 : c);
jQuery(window).scroll(function () {
var h = jQuery(f);
var i = a + jQuery(window).scrollLeft() + "px";
var g = e + jQuery(window).scrollTop() + "px";
jQuery(h).css("top", g)
})
}
}
function showMenuPopBox(b) {
for (var i = 0; i <= 15; i++) {
if (i == b) {
$("#ap_listboxnew_" + i).show();
}
else {
$("#ap_listboxnew_" + i).hide();
}
}
}
function hideMenuPopBox(b) {
$("#ap_listboxnew_" + b ).hide();
}
var selectedProvinceID = 1;
function initProvince() {
if (strprovincename != "") {
jQuery("#currProvince").text(strprovincename);
}
else {
jQuery("#currProvince").text("全国");
}
}
var Class = {
create: function () {
return function () {
this.initialize.apply(this, arguments)
}
}
};
var Extend = function (a, c) {
for (var b in c) {
a[b] = c[b]
}
};
function stopDefault(a) {
if (a && a.preventDefault) {
a.preventDefault()
} else {
window.event.returnValue = false
}
return false
}
jQuery("#index_header").ready(function () {
jQuery(".unfold,#ownedweb").mouseover(function () {
jQuery(this).addClass("on");
jQuery(".unfold dl").width(jQuery(this).width() + 27 + "px");
jQuery(this).find("dl").show()
});
jQuery(".topnav li").mouseout(function () {
jQuery(this).removeClass("on");
jQuery(this).find("dl").hide()
});
function a() {
jQuery("#apbox1").html("").removeClass()
}
});