﻿/*jquery.1.3.2.min.js*/
(function (aO, I) { function a0() { if (!ah.isReady) { try { M.documentElement.doScroll("left") } catch (c) { setTimeout(a0, 1); return } ah.ready() } } function E(s, c) { c.src ? ah.ajax({ url: c.src, async: false, dataType: "script" }) : ah.globalEval(c.text || c.textContent || c.innerHTML || ""); c.parentNode && c.parentNode.removeChild(c) } function ap(s, c, K, F, G, w) { var A = s.length; if (typeof c === "object") { for (var J in c) { ap(s, J, c[J], F, G, K) } return s } if (K !== I) { F = !w && F && ah.isFunction(K); for (J = 0; J < A; J++) { G(s[J], c, F ? K.call(s[J], J, G(s[J], c)) : K, w) } return s } return A ? G(s[0], c) : I } function aF() { return (new Date).getTime() } function ao() { return false } function am() { return true } function aK(s, c, w) { w[0].type = s; return ah.event.handle.apply(c, w) } function ag(O) { var N, L = [], J = [], K = arguments, F, G, s, A, w, c; G = ah.data(this, "events"); if (!(O.liveFired === this || !G || !G.live || O.button && O.type === "click")) { O.liveFired = this; var P = G.live.slice(0); for (A = 0; A < P.length; A++) { G = P[A]; G.origType.replace(az, "") === O.type ? J.push(G.selector) : P.splice(A--, 1) } F = ah(O.target).closest(J, O.currentTarget); w = 0; for (c = F.length; w < c; w++) { for (A = 0; A < P.length; A++) { G = P[A]; if (F[w].selector === G.selector) { s = F[w].elem; J = null; if (G.preType === "mouseenter" || G.preType === "mouseleave") { J = ah(O.relatedTarget).closest(G.selector)[0] } if (!J || J !== s) { L.push({ elem: s, handleObj: G }) } } } } w = 0; for (c = L.length; w < c; w++) { F = L[w]; O.currentTarget = F.elem; O.data = F.handleObj.data; O.handleObj = F.handleObj; if (F.handleObj.origHandler.apply(F.elem, K) === false) { N = false; break } } return N } } function z(s, c) { return "live." + (s && s !== "*" ? s + "." : "") + c.replace(/\./g, "`").replace(/ /g, "&") } function l(c) { return !c || !c.parentNode || c.parentNode.nodeType === 11 } function bj(s, c) { var w = 0; c.each(function () { if (this.nodeName === (s[w] && s[w].nodeName)) { var G = ah.data(s[w++]), J = ah.data(this, G); if (G = G && G.events) { delete J.handle; J.events = {}; for (var A in G) { for (var F in G[A]) { ah.event.add(this, A, G[A][F], G[A][F].data) } } } } }) } function a3(s, c, G) { var A, F, w; c = c && c[0] ? c[0].ownerDocument || c[0] : M; if (s.length === 1 && typeof s[0] === "string" && s[0].length < 512 && c === M && !aP.test(s[0]) && (ah.support.checkClone || !ak.test(s[0]))) { F = true; if (w = ah.fragments[s[0]]) { if (w !== 1) { A = w } } } if (!A) { A = c.createDocumentFragment(); ah.clean(s, c, A, G) } if (F) { ah.fragments[s[0]] = w ? A : 1 } return { fragment: A, cacheable: F} } function aC(s, c) { var w = {}; ah.each(D.concat.apply([], D.slice(0, c)), function () { w[this] = s }); return w } function o(c) { return "scrollTo" in c && c.document ? c : c.nodeType === 9 ? c.defaultView || c.parentWindow : false } var ah = function (s, c) { return new ah.fn.init(s, c) }, p = aO.jQuery, d = aO.$, M = aO.document, at, a7 = /^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/, aT = /^.[^:#\[\.,]*$/, an = /\S/, H = /^(\s|\u00A0)+|(\s|\u00A0)+$/g, q = /^<(\w+)\s*\/?>(?:<\/\1>)?$/, ax = navigator.userAgent, b = false, av = [], aB, a1 = Object.prototype.toString, aV = Object.prototype.hasOwnProperty, ay = Array.prototype.push, au = Array.prototype.slice, a6 = Array.prototype.indexOf; ah.fn = ah.prototype = { init: function (s, c) { var A, w; if (!s) { return this } if (s.nodeType) { this.context = this[0] = s; this.length = 1; return this } if (s === "body" && !c) { this.context = M; this[0] = M.body; this.selector = "body"; this.length = 1; return this } if (typeof s === "string") { if ((A = a7.exec(s)) && (A[1] || !c)) { if (A[1]) { w = c ? c.ownerDocument || c : M; if (s = q.exec(s)) { if (ah.isPlainObject(c)) { s = [M.createElement(s[1])]; ah.fn.attr.call(s, c, true) } else { s = [w.createElement(s[1])] } } else { s = a3([A[1]], [w]); s = (s.cacheable ? s.fragment.cloneNode(true) : s.fragment).childNodes } return ah.merge(this, s) } else { if (c = M.getElementById(A[2])) { if (c.id !== A[2]) { return at.find(s) } this.length = 1; this[0] = c } this.context = M; this.selector = s; return this } } else { if (!c && /^\w+$/.test(s)) { this.selector = s; this.context = M; s = M.getElementsByTagName(s); return ah.merge(this, s) } else { return !c || c.jquery ? (c || at).find(s) : ah(c).find(s) } } } else { if (ah.isFunction(s)) { return at.ready(s) } } if (s.selector !== I) { this.selector = s.selector; this.context = s.context } return ah.makeArray(s, this) }, selector: "", jquery: "1.4.2", length: 0, size: function () { return this.length }, toArray: function () { return au.call(this, 0) }, get: function (c) { return c == null ? this.toArray() : c < 0 ? this.slice(c)[0] : this[c] }, pushStack: function (s, c, A) { var w = ah(); ah.isArray(s) ? ay.apply(w, s) : ah.merge(w, s); w.prevObject = this; w.context = this.context; if (c === "find") { w.selector = this.selector + (this.selector ? " " : "") + A } else { if (c) { w.selector = this.selector + "." + c + "(" + A + ")" } } return w }, each: function (s, c) { return ah.each(this, s, c) }, ready: function (c) { ah.bindReady(); if (ah.isReady) { c.call(M, ah) } else { av && av.push(c) } return this }, eq: function (c) { return c === -1 ? this.slice(c) : this.slice(c, +c + 1) }, first: function () { return this.eq(0) }, last: function () { return this.eq(-1) }, slice: function () { return this.pushStack(au.apply(this, arguments), "slice", au.call(arguments).join(",")) }, map: function (c) { return this.pushStack(ah.map(this, function (s, w) { return c.call(s, w, s) })) }, end: function () { return this.prevObject || ah(null) }, push: ay, sort: [].sort, splice: [].splice }; ah.fn.init.prototype = ah.fn; ah.extend = ah.fn.extend = function () { var s = arguments[0] || {}, c = 1, K = arguments.length, F = false, G, w, A, J; if (typeof s === "boolean") { F = s; s = arguments[1] || {}; c = 2 } if (typeof s !== "object" && !ah.isFunction(s)) { s = {} } if (K === c) { s = this; --c } for (; c < K; c++) { if ((G = arguments[c]) != null) { for (w in G) { A = s[w]; J = G[w]; if (s !== J) { if (F && J && (ah.isPlainObject(J) || ah.isArray(J))) { A = A && (ah.isPlainObject(A) || ah.isArray(A)) ? A : ah.isArray(J) ? [] : {}; s[w] = ah.extend(F, A, J) } else { if (J !== I) { s[w] = J } } } } } } return s }; ah.extend({ noConflict: function (c) { aO.$ = d; if (c) { aO.jQuery = p } return ah }, isReady: false, ready: function () { if (!ah.isReady) { if (!M.body) { return setTimeout(ah.ready, 13) } ah.isReady = true; if (av) { for (var s, c = 0; s = av[c++]; ) { s.call(M, ah) } av = null } ah.fn.triggerHandler && ah(M).triggerHandler("ready") } }, bindReady: function () { if (!b) { b = true; if (M.readyState === "complete") { return ah.ready() } if (M.addEventListener) { M.addEventListener("DOMContentLoaded", aB, false); aO.addEventListener("load", ah.ready, false) } else { if (M.attachEvent) { M.attachEvent("onreadystatechange", aB); aO.attachEvent("onload", ah.ready); var s = false; try { s = aO.frameElement == null } catch (c) { } M.documentElement.doScroll && s && a0() } } } }, isFunction: function (c) { return a1.call(c) === "[object Function]" }, isArray: function (c) { return a1.call(c) === "[object Array]" }, isPlainObject: function (s) { if (!s || a1.call(s) !== "[object Object]" || s.nodeType || s.setInterval) { return false } if (s.constructor && !aV.call(s, "constructor") && !aV.call(s.constructor.prototype, "isPrototypeOf")) { return false } var c; for (c in s) { } return c === I || aV.call(s, c) }, isEmptyObject: function (s) { for (var c in s) { return false } return true }, error: function (c) { throw c }, parseJSON: function (c) { if (typeof c !== "string" || !c) { return null } c = ah.trim(c); if (/^[\],:{}\s]*$/.test(c.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, "@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, "]").replace(/(?:^|:|,)(?:\s*\[)+/g, ""))) { return aO.JSON && aO.JSON.parse ? aO.JSON.parse(c) : (new Function("return " + c))() } else { ah.error("Invalid JSON: " + c) } }, noop: function () { }, globalEval: function (s) { if (s && an.test(s)) { var c = M.getElementsByTagName("head")[0] || M.documentElement, w = M.createElement("script"); w.type = "text/javascript"; if (ah.support.scriptEval) { w.appendChild(M.createTextNode(s)) } else { w.text = s } c.insertBefore(w, c.firstChild); c.removeChild(w) } }, nodeName: function (s, c) { return s.nodeName && s.nodeName.toUpperCase() === c.toUpperCase() }, each: function (s, c, J) { var F, G = 0, w = s.length, A = w === I || ah.isFunction(s); if (J) { if (A) { for (F in s) { if (c.apply(s[F], J) === false) { break } } } else { for (; G < w; ) { if (c.apply(s[G++], J) === false) { break } } } } else { if (A) { for (F in s) { if (c.call(s[F], F, s[F]) === false) { break } } } else { for (J = s[0]; G < w && c.call(J, G, J) !== false; J = s[++G]) { } } } return s }, trim: function (c) { return (c || "").replace(H, "") }, makeArray: function (s, c) { c = c || []; if (s != null) { s.length == null || typeof s === "string" || ah.isFunction(s) || typeof s !== "function" && s.setInterval ? ay.call(c, s) : ah.merge(c, s) } return c }, inArray: function (s, c) { if (c.indexOf) { return c.indexOf(s) } for (var A = 0, w = c.length; A < w; A++) { if (c[A] === s) { return A } } return -1 }, merge: function (s, c) { var F = s.length, w = 0; if (typeof c.length === "number") { for (var A = c.length; w < A; w++) { s[F++] = c[w] } } else { for (; c[w] !== I; ) { s[F++] = c[w++] } } s.length = F; return s }, grep: function (s, c, G) { for (var A = [], F = 0, w = s.length; F < w; F++) { !G !== !c(s[F], F) && A.push(s[F]) } return A }, map: function (s, c, J) { for (var F = [], G, w = 0, A = s.length; w < A; w++) { G = c(s[w], w, J); if (G != null) { F[F.length] = G } } return F.concat.apply([], F) }, guid: 1, proxy: function (s, c, w) { if (arguments.length === 2) { if (typeof c === "string") { w = s; s = w[c]; c = I } else { if (c && !ah.isFunction(c)) { w = c; c = I } } } if (!c && s) { c = function () { return s.apply(w || this, arguments) } } if (s) { c.guid = s.guid = s.guid || c.guid || ah.guid++ } return c }, uaMatch: function (c) { c = c.toLowerCase(); c = /(webkit)[ \/]([\w.]+)/.exec(c) || /(opera)(?:.*version)?[ \/]([\w.]+)/.exec(c) || /(msie) ([\w.]+)/.exec(c) || !/compatible/.test(c) && /(mozilla)(?:.*? rv:([\w.]+))?/.exec(c) || []; return { browser: c[1] || "", version: c[2] || "0"} }, browser: {} }); ax = ah.uaMatch(ax); if (ax.browser) { ah.browser[ax.browser] = true; ah.browser.version = ax.version } if (ah.browser.webkit) { ah.browser.safari = true } if (a6) { ah.inArray = function (s, c) { return a6.call(c, s) } } at = ah(M); if (M.addEventListener) { aB = function () { M.removeEventListener("DOMContentLoaded", aB, false); ah.ready() } } else { if (M.attachEvent) { aB = function () { if (M.readyState === "complete") { M.detachEvent("onreadystatechange", aB); ah.ready() } } } } (function () { ah.support = {}; var L = M.documentElement, K = M.createElement("script"), J = M.createElement("div"), F = "script" + aF(); J.style.display = "none"; J.innerHTML = "   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>"; var G = J.getElementsByTagName("*"), w = J.getElementsByTagName("a")[0]; if (!(!G || !G.length || !w)) { ah.support = { leadingWhitespace: J.firstChild.nodeType === 3, tbody: !J.getElementsByTagName("tbody").length, htmlSerialize: !!J.getElementsByTagName("link").length, style: /red/.test(w.getAttribute("style")), hrefNormalized: w.getAttribute("href") === "/a", opacity: /^0.55$/.test(w.style.opacity), cssFloat: !!w.style.cssFloat, checkOn: J.getElementsByTagName("input")[0].value === "on", optSelected: M.createElement("select").appendChild(M.createElement("option")).selected, parentNode: J.removeChild(J.appendChild(M.createElement("div"))).parentNode === null, deleteExpando: true, checkClone: false, scriptEval: false, noCloneEvent: true, boxModel: null }; K.type = "text/javascript"; try { K.appendChild(M.createTextNode("window." + F + "=1;")) } catch (A) { } L.insertBefore(K, L.firstChild); if (aO[F]) { ah.support.scriptEval = true; delete aO[F] } try { delete K.test } catch (c) { ah.support.deleteExpando = false } L.removeChild(K); if (J.attachEvent && J.fireEvent) { J.attachEvent("onclick", function s() { ah.support.noCloneEvent = false; J.detachEvent("onclick", s) }); J.cloneNode(true).fireEvent("onclick") } J = M.createElement("div"); J.innerHTML = "<input type='radio' name='radiotest' checked='checked'/>"; L = M.createDocumentFragment(); L.appendChild(J.firstChild); ah.support.checkClone = L.cloneNode(true).cloneNode(true).lastChild.checked; ah(function () { var N = M.createElement("div"); N.style.width = N.style.paddingLeft = "1px"; M.body.appendChild(N); ah.boxModel = ah.support.boxModel = N.offsetWidth === 2; M.body.removeChild(N).style.display = "none" }); L = function (N) { var P = M.createElement("div"); N = "on" + N; var O = N in P; if (!O) { P.setAttribute(N, "return;"); O = typeof P[N] === "function" } return O }; ah.support.submitBubbles = L("submit"); ah.support.changeBubbles = L("change"); L = K = J = G = w = null } })(); ah.props = { "for": "htmlFor", "class": "className", readonly: "readOnly", maxlength: "maxLength", cellspacing: "cellSpacing", rowspan: "rowSpan", colspan: "colSpan", tabindex: "tabIndex", usemap: "useMap", frameborder: "frameBorder" }; var aH = "jQuery" + aF(), e = 0, aS = {}; ah.extend({ cache: {}, expando: aH, noData: { embed: true, object: true, applet: true }, data: function (s, c, F) { if (!(s.nodeName && ah.noData[s.nodeName.toLowerCase()])) { s = s == aO ? aS : s; var w = s[aH], A = ah.cache; if (!w && typeof c === "string" && F === I) { return null } w || (w = ++e); if (typeof c === "object") { s[aH] = w; A[w] = ah.extend(true, {}, c) } else { if (!A[w]) { s[aH] = w; A[w] = {} } } s = A[w]; if (F !== I) { s[c] = F } return typeof c === "string" ? s[c] : s } }, removeData: function (s, c) { if (!(s.nodeName && ah.noData[s.nodeName.toLowerCase()])) { s = s == aO ? aS : s; var F = s[aH], w = ah.cache, A = w[F]; if (c) { if (A) { delete A[c]; ah.isEmptyObject(A) && ah.removeData(s) } } else { if (ah.support.deleteExpando) { delete s[ah.expando] } else { s.removeAttribute && s.removeAttribute(ah.expando) } delete w[F] } } } }); ah.fn.extend({ data: function (s, c) { if (typeof s === "undefined" && this.length) { return ah.data(this[0]) } else { if (typeof s === "object") { return this.each(function () { ah.data(this, s) }) } } var A = s.split("."); A[1] = A[1] ? "." + A[1] : ""; if (c === I) { var w = this.triggerHandler("getData" + A[1] + "!", [A[0]]); if (w === I && this.length) { w = ah.data(this[0], s) } return w === I && A[1] ? this.data(A[0]) : w } else { return this.trigger("setData" + A[1] + "!", [A[0], c]).each(function () { ah.data(this, s, c) }) } }, removeData: function (c) { return this.each(function () { ah.removeData(this, c) }) } }); ah.extend({ queue: function (s, c, A) { if (s) { c = (c || "fx") + "queue"; var w = ah.data(s, c); if (!A) { return w || [] } if (!w || ah.isArray(A)) { w = ah.data(s, c, ah.makeArray(A)) } else { w.push(A) } return w } }, dequeue: function (s, c) { c = c || "fx"; var A = ah.queue(s, c), w = A.shift(); if (w === "inprogress") { w = A.shift() } if (w) { c === "fx" && A.unshift("inprogress"); w.call(s, function () { ah.dequeue(s, c) }) } } }); ah.fn.extend({ queue: function (s, c) { if (typeof s !== "string") { c = s; s = "fx" } if (c === I) { return ah.queue(this[0], s) } return this.each(function () { var w = ah.queue(this, s, c); s === "fx" && w[0] !== "inprogress" && ah.dequeue(this, s) }) }, dequeue: function (c) { return this.each(function () { ah.dequeue(this, c) }) }, delay: function (s, c) { s = ah.fx ? ah.fx.speeds[s] || s : s; c = c || "fx"; return this.queue(c, function () { var w = this; setTimeout(function () { ah.dequeue(w, c) }, s) }) }, clearQueue: function (c) { return this.queue(c || "fx", []) } }); var be = /[\n\t]/g, U = /\s+/, a8 = /\r/g, aM = /href|src|style/, aU = /(button|input)/i, aw = /(button|input|object|select|textarea)/i, S = /^(a|area)$/i, aY = /radio|checkbox/; ah.fn.extend({ attr: function (s, c) { return ap(this, s, c, true, ah.attr) }, removeAttr: function (c) { return this.each(function () { ah.attr(this, c, ""); this.nodeType === 1 && this.removeAttribute(c) }) }, addClass: function (L) { if (ah.isFunction(L)) { return this.each(function (O) { var N = ah(this); N.addClass(L.call(this, O, N.attr("class"))) }) } if (L && typeof L === "string") { for (var K = (L || "").split(U), J = 0, F = this.length; J < F; J++) { var G = this[J]; if (G.nodeType === 1) { if (G.className) { for (var w = " " + G.className + " ", A = G.className, c = 0, s = K.length; c < s; c++) { if (w.indexOf(" " + K[c] + " ") < 0) { A += " " + K[c] } } G.className = ah.trim(A) } else { G.className = L } } } } return this }, removeClass: function (s) { if (ah.isFunction(s)) { return this.each(function (L) { var N = ah(this); N.removeClass(s.call(this, L, N.attr("class"))) }) } if (s && typeof s === "string" || s === I) { for (var c = (s || "").split(U), K = 0, F = this.length; K < F; K++) { var G = this[K]; if (G.nodeType === 1 && G.className) { if (s) { for (var w = (" " + G.className + " ").replace(be, " "), A = 0, J = c.length; A < J; A++) { w = w.replace(" " + c[A] + " ", " ") } G.className = ah.trim(w) } else { G.className = "" } } } } return this }, toggleClass: function (s, c) { var A = typeof s, w = typeof c === "boolean"; if (ah.isFunction(s)) { return this.each(function (G) { var F = ah(this); F.toggleClass(s.call(this, G, F.attr("class"), c), c) }) } return this.each(function () { if (A === "string") { for (var K, G = 0, J = ah(this), L = c, F = s.split(U); K = F[G++]; ) { L = w ? L : !J.hasClass(K); J[L ? "addClass" : "removeClass"](K) } } else { if (A === "undefined" || A === "boolean") { this.className && ah.data(this, "__className__", this.className); this.className = this.className || s === false ? "" : ah.data(this, "__className__") || "" } } }) }, hasClass: function (s) { s = " " + s + " "; for (var c = 0, w = this.length; c < w; c++) { if ((" " + this[c].className + " ").replace(be, " ").indexOf(s) > -1) { return true } } return false }, val: function (s) { if (s === I) { var c = this[0]; if (c) { if (ah.nodeName(c, "option")) { return (c.attributes.value || {}).specified ? c.value : c.text } if (ah.nodeName(c, "select")) { var K = c.selectedIndex, F = [], G = c.options; c = c.type === "select-one"; if (K < 0) { return null } var w = c ? K : 0; for (K = c ? K + 1 : G.length; w < K; w++) { var A = G[w]; if (A.selected) { s = ah(A).val(); if (c) { return s } F.push(s) } } return F } if (aY.test(c.type) && !ah.support.checkOn) { return c.getAttribute("value") === null ? "on" : c.value } return (c.value || "").replace(a8, "") } return I } var J = ah.isFunction(s); return this.each(function (L) { var P = ah(this), O = s; if (this.nodeType === 1) { if (J) { O = s.call(this, L, P.val()) } if (typeof O === "number") { O += "" } if (ah.isArray(O) && aY.test(this.type)) { this.checked = ah.inArray(P.val(), O) >= 0 } else { if (ah.nodeName(this, "select")) { var N = ah.makeArray(O); ah("option", this).each(function () { this.selected = ah.inArray(ah(this).val(), N) >= 0 }); if (!N.length) { this.selectedIndex = -1 } } else { this.value = O } } } }) } }); ah.extend({ attrFn: { val: true, css: true, html: true, text: true, data: true, width: true, height: true, offset: true }, attr: function (s, c, G, A) { if (!s || s.nodeType === 3 || s.nodeType === 8) { return I } if (A && c in ah.attrFn) { return ah(s)[c](G) } A = s.nodeType !== 1 || !ah.isXMLDoc(s); var F = G !== I; c = A && ah.props[c] || c; if (s.nodeType === 1) { var w = aM.test(c); if (c in s && A && !w) { if (F) { c === "type" && aU.test(s.nodeName) && s.parentNode && ah.error("type property can't be changed"); s[c] = G } if (ah.nodeName(s, "form") && s.getAttributeNode(c)) { return s.getAttributeNode(c).nodeValue } if (c === "tabIndex") { return (c = s.getAttributeNode("tabIndex")) && c.specified ? c.value : aw.test(s.nodeName) || S.test(s.nodeName) && s.href ? 0 : I } return s[c] } if (!ah.support.style && A && c === "style") { if (F) { s.style.cssText = "" + G } return s.style.cssText } F && s.setAttribute(c, "" + G); s = !ah.support.hrefNormalized && A && w ? s.getAttribute(c, 2) : s.getAttribute(c); return s === null ? I : s } return ah.style(s, c, G) } }); var az = /\.(.*)$/, r = function (c) { return c.replace(/[^\w\s\.\|`]/g, function (s) { return "\\" + s }) }; ah.event = { add: function (P, O, L, J) { if (!(P.nodeType === 3 || P.nodeType === 8)) { if (P.setInterval && P !== aO && !P.frameElement) { P = aO } var K, F; if (L.handler) { K = L; L = K.handler } if (!L.guid) { L.guid = ah.guid++ } if (F = ah.data(P)) { var G = F.events = F.events || {}, s = F.handle; if (!s) { F.handle = s = function () { return typeof ah !== "undefined" && !ah.event.triggered ? ah.event.handle.apply(s.elem, arguments) : I } } s.elem = P; O = O.split(" "); for (var A, w = 0, c; A = O[w++]; ) { F = K ? ah.extend({}, K) : { handler: L, data: J }; if (A.indexOf(".") > -1) { c = A.split("."); A = c.shift(); F.namespace = c.slice(0).sort().join(".") } else { c = []; F.namespace = "" } F.type = A; F.guid = L.guid; var Q = G[A], N = ah.event.special[A] || {}; if (!Q) { Q = G[A] = []; if (!N.setup || N.setup.call(P, J, c, s) === false) { if (P.addEventListener) { P.addEventListener(A, s, false) } else { P.attachEvent && P.attachEvent("on" + A, s) } } } if (N.add) { N.add.call(P, F); if (!F.handler.guid) { F.handler.guid = L.guid } } Q.push(F); ah.event.global[A] = true } P = null } } }, global: {}, remove: function (R, Q, O, L) { if (!(R.nodeType === 3 || R.nodeType === 8)) { var N, J = 0, K, A, G, F, c, T, P = ah.data(R), s = P && P.events; if (P && s) { if (Q && Q.type) { O = Q.handler; Q = Q.type } if (!Q || typeof Q === "string" && Q.charAt(0) === ".") { Q = Q || ""; for (N in s) { ah.event.remove(R, N + Q) } } else { for (Q = Q.split(" "); N = Q[J++]; ) { F = N; K = N.indexOf(".") < 0; A = []; if (!K) { A = N.split("."); N = A.shift(); G = new RegExp("(^|\\.)" + ah.map(A.slice(0).sort(), r).join("\\.(?:.*\\.)?") + "(\\.|$)") } if (c = s[N]) { if (O) { F = ah.event.special[N] || {}; for (w = L || 0; w < c.length; w++) { T = c[w]; if (O.guid === T.guid) { if (K || G.test(T.namespace)) { L == null && c.splice(w--, 1); F.remove && F.remove.call(R, T) } if (L != null) { break } } } if (c.length === 0 || L != null && c.length === 1) { if (!F.teardown || F.teardown.call(R, A) === false) { aG(R, N, P.handle) } delete s[N] } } else { for (var w = 0; w < c.length; w++) { T = c[w]; if (K || G.test(T.namespace)) { ah.event.remove(R, F, T.handler, w); c.splice(w--, 1) } } } } } if (ah.isEmptyObject(s)) { if (Q = P.handle) { Q.elem = null } delete P.events; delete P.handle; ah.isEmptyObject(P) && ah.removeData(R) } } } } }, trigger: function (N, L, K, G) { var J = N.type || N; if (!G) { N = typeof N === "object" ? N[aH] ? N : ah.extend(ah.Event(J), N) : ah.Event(J); if (J.indexOf("!") >= 0) { N.type = J = J.slice(0, -1); N.exclusive = true } if (!K) { N.stopPropagation(); ah.event.global[J] && ah.each(ah.cache, function () { this.events && this.events[J] && ah.event.trigger(N, L, this.handle.elem) }) } if (!K || K.nodeType === 3 || K.nodeType === 8) { return I } N.result = I; N.target = K; L = ah.makeArray(L); L.unshift(N) } N.currentTarget = K; (G = ah.data(K, "handle")) && G.apply(K, L); G = K.parentNode || K.ownerDocument; try { if (!(K && K.nodeName && ah.noData[K.nodeName.toLowerCase()])) { if (K["on" + J] && K["on" + J].apply(K, L) === false) { N.result = false } } } catch (A) { } if (!N.isPropagationStopped() && G) { ah.event.trigger(N, L, G, true) } else { if (!N.isDefaultPrevented()) { G = N.target; var F, c = ah.nodeName(G, "a") && J === "click", w = ah.event.special[J] || {}; if ((!w._default || w._default.call(K, N) === false) && !c && !(G && G.nodeName && ah.noData[G.nodeName.toLowerCase()])) { try { if (G[J]) { if (F = G["on" + J]) { G["on" + J] = null } ah.event.triggered = true; G[J]() } } catch (s) { } if (F) { G["on" + J] = F } ah.event.triggered = false } } } }, handle: function (s) { var c, J, F, G; s = arguments[0] = ah.event.fix(s || aO.event); s.currentTarget = this; c = s.type.indexOf(".") < 0 && !s.exclusive; if (!c) { J = s.type.split("."); s.type = J.shift(); F = new RegExp("(^|\\.)" + J.slice(0).sort().join("\\.(?:.*\\.)?") + "(\\.|$)") } G = ah.data(this, "events"); J = G[s.type]; if (G && J) { J = J.slice(0); G = 0; for (var w = J.length; G < w; G++) { var A = J[G]; if (c || F.test(A.namespace)) { s.handler = A.handler; s.data = A.data; s.handleObj = A; A = A.handler.apply(this, arguments); if (A !== I) { s.result = A; if (A === false) { s.preventDefault(); s.stopPropagation() } } if (s.isImmediatePropagationStopped()) { break } } } } return s.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 (s) { if (s[aH]) { return s } var c = s; s = ah.Event(c); for (var A = this.props.length, w; A; ) { w = this.props[--A]; s[w] = c[w] } if (!s.target) { s.target = s.srcElement || M } if (s.target.nodeType === 3) { s.target = s.target.parentNode } if (!s.relatedTarget && s.fromElement) { s.relatedTarget = s.fromElement === s.target ? s.toElement : s.fromElement } if (s.pageX == null && s.clientX != null) { c = M.documentElement; A = M.body; s.pageX = s.clientX + (c && c.scrollLeft || A && A.scrollLeft || 0) - (c && c.clientLeft || A && A.clientLeft || 0); s.pageY = s.clientY + (c && c.scrollTop || A && A.scrollTop || 0) - (c && c.clientTop || A && A.clientTop || 0) } if (!s.which && (s.charCode || s.charCode === 0 ? s.charCode : s.keyCode)) { s.which = s.charCode || s.keyCode } if (!s.metaKey && s.ctrlKey) { s.metaKey = s.ctrlKey } if (!s.which && s.button !== I) { s.which = s.button & 1 ? 1 : s.button & 2 ? 3 : s.button & 4 ? 2 : 0 } return s }, guid: 100000000, proxy: ah.proxy, special: { ready: { setup: ah.bindReady, teardown: ah.noop }, live: { add: function (c) { ah.event.add(this, c.origType, ah.extend({}, c, { handler: ag })) }, remove: function (s) { var c = true, w = s.origType.replace(az, ""); ah.each(ah.data(this, "events").live || [], function () { if (w === this.origType.replace(az, "")) { return c = false } }); c && ah.event.remove(this, s.origType, ag) } }, beforeunload: { setup: function (s, c, w) { if (this.setInterval) { this.onbeforeunload = w } return false }, teardown: function (s, c) { if (this.onbeforeunload === c) { this.onbeforeunload = null } } }} }; var aG = M.removeEventListener ? function (s, c, w) { s.removeEventListener(c, w, false) } : function (s, c, w) { s.detachEvent("on" + c, w) }; ah.Event = function (c) { if (!this.preventDefault) { return new ah.Event(c) } if (c && c.type) { this.originalEvent = c; this.type = c.type } else { this.type = c } this.timeStamp = aF(); this[aH] = true }; ah.Event.prototype = { preventDefault: function () { this.isDefaultPrevented = am; var c = this.originalEvent; if (c) { c.preventDefault && c.preventDefault(); c.returnValue = false } }, stopPropagation: function () { this.isPropagationStopped = am; var c = this.originalEvent; if (c) { c.stopPropagation && c.stopPropagation(); c.cancelBubble = true } }, stopImmediatePropagation: function () { this.isImmediatePropagationStopped = am; this.stopPropagation() }, isDefaultPrevented: ao, isPropagationStopped: ao, isImmediatePropagationStopped: ao }; var ae = function (s) { var c = s.relatedTarget; try { for (; c && c !== this; ) { c = c.parentNode } if (c !== this) { s.type = s.data; ah.event.handle.apply(this, arguments) } } catch (w) { } }, x = function (c) { c.type = c.data; ah.event.handle.apply(this, arguments) }; ah.each({ mouseenter: "mouseover", mouseleave: "mouseout" }, function (s, c) { ah.event.special[s] = { setup: function (w) { ah.event.add(this, c, w && w.selector ? x : ae, s) }, teardown: function (w) { ah.event.remove(this, c, w && w.selector ? x : ae) } } }); if (!ah.support.submitBubbles) { ah.event.special.submit = { setup: function () { if (this.nodeName.toLowerCase() !== "form") { ah.event.add(this, "click.specialSubmit", function (s) { var c = s.target, w = c.type; if ((w === "submit" || w === "image") && ah(c).closest("form").length) { return aK("submit", this, arguments) } }); ah.event.add(this, "keypress.specialSubmit", function (s) { var c = s.target, w = c.type; if ((w === "text" || w === "password") && ah(c).closest("form").length && s.keyCode === 13) { return aK("submit", this, arguments) } }) } else { return false } }, teardown: function () { ah.event.remove(this, ".specialSubmit") } } } if (!ah.support.changeBubbles) { var t = /textarea|input|select/i, g, j = function (s) { var c = s.type, w = s.value; if (c === "radio" || c === "checkbox") { w = s.checked } else { if (c === "select-multiple") { w = s.selectedIndex > -1 ? ah.map(s.options, function (A) { return A.selected }).join("-") : "" } else { if (s.nodeName.toLowerCase() === "select") { w = s.selectedIndex } } } return w }, bd = function (s, c) { var F = s.target, w, A; if (!(!t.test(F.nodeName) || F.readOnly)) { w = ah.data(F, "_change_data"); A = j(F); if (s.type !== "focusout" || F.type !== "radio") { ah.data(F, "_change_data", A) } if (!(w === I || A === w)) { if (w != null || A) { s.type = "change"; return ah.event.trigger(s, c, F) } } } }; ah.event.special.change = { filters: { focusout: bd, click: function (s) { var c = s.target, w = c.type; if (w === "radio" || w === "checkbox" || c.nodeName.toLowerCase() === "select") { return bd.call(this, s) } }, keydown: function (s) { var c = s.target, w = c.type; if (s.keyCode === 13 && c.nodeName.toLowerCase() !== "textarea" || s.keyCode === 32 && (w === "checkbox" || w === "radio") || w === "select-multiple") { return bd.call(this, s) } }, beforeactivate: function (c) { c = c.target; ah.data(c, "_change_data", j(c)) } }, setup: function () { if (this.type === "file") { return false } for (var c in g) { ah.event.add(this, c + ".specialChange", g[c]) } return t.test(this.nodeName) }, teardown: function () { ah.event.remove(this, ".specialChange"); return t.test(this.nodeName) } }; g = ah.event.special.change.filters } M.addEventListener && ah.each({ focus: "focusin", blur: "focusout" }, function (s, c) { function w(A) { A = ah.event.fix(A); A.type = c; return ah.event.handle.call(this, A) } ah.event.special[c] = { setup: function () { this.addEventListener(s, w, true) }, teardown: function () { this.removeEventListener(s, w, true) } } }); ah.each(["bind", "one"], function (s, c) { ah.fn[c] = function (K, F, G) { if (typeof K === "object") { for (var w in K) { this[c](w, F, K[w], G) } return this } if (ah.isFunction(F)) { G = F; F = I } var A = c === "one" ? ah.proxy(G, function (L) { ah(this).unbind(L, A); return G.apply(this, arguments) }) : G; if (K === "unload" && c !== "one") { this.one(K, F, G) } else { w = 0; for (var J = this.length; w < J; w++) { ah.event.add(this[w], K, A, F) } } return this } }); ah.fn.extend({ unbind: function (s, c) { if (typeof s === "object" && !s.preventDefault) { for (var A in s) { this.unbind(A, s[A]) } } else { A = 0; for (var w = this.length; A < w; A++) { ah.event.remove(this[A], s, c) } } return this }, delegate: function (s, c, A, w) { return this.live(c, A, w, s) }, undelegate: function (s, c, w) { return arguments.length === 0 ? this.unbind("live") : this.die(c, null, w, s) }, trigger: function (s, c) { return this.each(function () { ah.event.trigger(s, c, this) }) }, triggerHandler: function (s, c) { if (this[0]) { s = ah.Event(s); s.preventDefault(); s.stopPropagation(); ah.event.trigger(s, c, this[0]); return s.result } }, toggle: function (s) { for (var c = arguments, w = 1; w < c.length; ) { ah.proxy(s, c[w++]) } return this.click(ah.proxy(s, function (A) { var F = (ah.data(this, "lastToggle" + s.guid) || 0) % w; ah.data(this, "lastToggle" + s.guid, F + 1); A.preventDefault(); return c[F].apply(this, arguments) || false })) }, hover: function (s, c) { return this.mouseenter(s).mouseleave(c || s) } }); var bh = { focus: "focusin", blur: "focusout", mouseenter: "mouseover", mouseleave: "mouseout" }; ah.each(["live", "die"], function (s, c) { ah.fn[c] = function (O, L, N, J) { var K, A = 0, G, F, w = J || this.selector, P = J ? this : ah(this.context); if (ah.isFunction(L)) { N = L; L = I } for (O = (O || "").split(" "); (K = O[A++]) != null; ) { J = az.exec(K); G = ""; if (J) { G = J[0]; K = K.replace(az, "") } if (K === "hover") { O.push("mouseenter" + G, "mouseleave" + G) } else { F = K; if (K === "focus" || K === "blur") { O.push(bh[K] + G); K += G } else { K = (bh[K] || K) + G } c === "live" ? P.each(function () { ah.event.add(this, z(K, w), { data: L, selector: w, handler: N, origType: K, origHandler: N, preType: F }) }) : P.unbind(z(K, w), N) } } return this } }); ah.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 (s, c) { ah.fn[c] = function (w) { return w ? this.bind(c, w) : this.trigger(c) }; if (ah.attrFn) { ah.attrFn[c] = true } }); aO.attachEvent && !aO.addEventListener && aO.attachEvent("onunload", function () { for (var s in ah.cache) { if (ah.cache[s].handle) { try { ah.event.remove(ah.cache[s].handle.elem) } catch (c) { } } } }); (function () { function W(ab) { for (var aa = "", Z, Y = 0; ab[Y]; Y++) { Z = ab[Y]; if (Z.nodeType === 3 || Z.nodeType === 4) { aa += Z.nodeValue } else { if (Z.nodeType !== 8) { aa += W(Z.childNodes) } } } return aa } function V(bb, ba, ab, aa, Y, Z) { Y = 0; for (var bm = aa.length; Y < bm; Y++) { var bn = aa[Y]; if (bn) { bn = bn[bb]; for (var bl = false; bn; ) { if (bn.sizcache === ab) { bl = aa[bn.sizset]; break } if (bn.nodeType === 1 && !Z) { bn.sizcache = ab; bn.sizset = Y } if (bn.nodeName.toLowerCase() === ba) { bl = bn; break } bn = bn[bb] } aa[Y] = bl } } } function T(bb, ba, ab, aa, Y, Z) { Y = 0; for (var bm = aa.length; Y < bm; Y++) { var bn = aa[Y]; if (bn) { bn = bn[bb]; for (var bl = false; bn; ) { if (bn.sizcache === ab) { bl = aa[bn.sizset]; break } if (bn.nodeType === 1) { if (!Z) { bn.sizcache = ab; bn.sizset = Y } if (typeof ba !== "string") { if (bn === ba) { bl = true; break } } else { if (N.filter(ba, [bn]).length > 0) { bl = bn; break } } } bn = bn[bb] } aa[Y] = bl } } } var Q = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, R = 0, O = Object.prototype.toString, P = false, K = true; [0, 0].sort(function () { K = false; return 0 }); var N = function (bm, bl, ba, ab) { ba = ba || []; var Z = bl = bl || M; if (bl.nodeType !== 1 && bl.nodeType !== 9) { return [] } if (!bm || typeof bm !== "string") { return ba } for (var aa = [], br, bs, bo, bb, bq = true, bn = s(bl), bp = bm; (Q.exec(""), br = Q.exec(bp)) !== null; ) { bp = br[3]; aa.push(br[1]); if (br[2]) { bb = br[3]; break } } if (aa.length > 1 && G.exec(bm)) { if (aa.length === 2 && L.relative[aa[0]]) { bs = X(aa[0] + aa[1], bl) } else { for (bs = L.relative[aa[0]] ? [bl] : N(aa.shift(), bl); aa.length; ) { bm = aa.shift(); if (L.relative[bm]) { bm += aa.shift() } bs = X(bm, bs) } } } else { if (!ab && aa.length > 1 && bl.nodeType === 9 && !bn && L.match.ID.test(aa[0]) && !L.match.ID.test(aa[aa.length - 1])) { br = N.find(aa.shift(), bl, bn); bl = br.expr ? N.filter(br.expr, br.set)[0] : br.set[0] } if (bl) { br = ab ? { expr: aa.pop(), set: c(ab)} : N.find(aa.pop(), aa.length === 1 && (aa[0] === "~" || aa[0] === "+") && bl.parentNode ? bl.parentNode : bl, bn); bs = br.expr ? N.filter(br.expr, br.set) : br.set; if (aa.length > 0) { bo = c(bs) } else { bq = false } for (; aa.length; ) { var Y = aa.pop(); br = Y; if (L.relative[Y]) { br = aa.pop() } else { Y = "" } if (br == null) { br = bl } L.relative[Y](bo, br, bn) } } else { bo = [] } } bo || (bo = bs); bo || N.error(Y || bm); if (O.call(bo) === "[object Array]") { if (bq) { if (bl && bl.nodeType === 1) { for (bm = 0; bo[bm] != null; bm++) { if (bo[bm] && (bo[bm] === true || bo[bm].nodeType === 1 && A(bl, bo[bm]))) { ba.push(bs[bm]) } } } else { for (bm = 0; bo[bm] != null; bm++) { bo[bm] && bo[bm].nodeType === 1 && ba.push(bs[bm]) } } } else { ba.push.apply(ba, bo) } } else { c(bo, ba) } if (bb) { N(bb, Z, ba, ab); N.uniqueSort(ba) } return ba }; N.uniqueSort = function (Z) { if (J) { P = K; Z.sort(J); if (P) { for (var Y = 1; Y < Z.length; Y++) { Z[Y] === Z[Y - 1] && Z.splice(Y--, 1) } } } return Z }; N.matches = function (Z, Y) { return N(Z, null, null, Y) }; N.find = function (bb, ba, ab) { var aa, Y; if (!bb) { return [] } for (var Z = 0, bm = L.order.length; Z < bm; Z++) { var bn = L.order[Z]; if (Y = L.leftMatch[bn].exec(bb)) { var bl = Y[1]; Y.splice(1, 1); if (bl.substr(bl.length - 1) !== "\\") { Y[1] = (Y[1] || "").replace(/\\/g, ""); aa = L.find[bn](Y, ba, ab); if (aa != null) { bb = bb.replace(L.match[bn], ""); break } } } } aa || (aa = ba.getElementsByTagName("*")); return { set: aa, expr: bb} }; N.filter = function (bn, bm, bb, ab) { for (var Z = bn, aa = [], bt = bm, bu, bq, bl = bm && bm[0] && s(bm[0]); bn && bm.length; ) { for (var bs in L.filter) { if ((bu = L.leftMatch[bs].exec(bn)) != null && bu[2]) { var bo = L.filter[bs], br, Y; Y = bu[1]; bq = false; bu.splice(1, 1); if (Y.substr(Y.length - 1) !== "\\") { if (bt === aa) { aa = [] } if (L.preFilter[bs]) { if (bu = L.preFilter[bs](bu, bt, bb, aa, ab, bl)) { if (bu === true) { continue } } else { bq = br = true } } if (bu) { for (var ba = 0; (Y = bt[ba]) != null; ba++) { if (Y) { br = bo(Y, bu, ba, bt); var bp = ab ^ !!br; if (bb && br != null) { if (bp) { bq = true } else { bt[ba] = false } } else { if (bp) { aa.push(Y); bq = true } } } } } if (br !== I) { bb || (bt = aa); bn = bn.replace(L.match[bs], ""); if (!bq) { return [] } break } } } } if (bn === Z) { if (bq == null) { N.error(bn) } else { break } } Z = bn } return bt }; N.error = function (Y) { throw "Syntax error, unrecognized expression: " + Y }; var L = N.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 (Y) { return Y.getAttribute("href") } }, relative: { "+": function (ab, aa) { var Z = typeof aa === "string", Y = Z && !/\W/.test(aa); Z = Z && !Y; if (Y) { aa = aa.toLowerCase() } Y = 0; for (var ba = ab.length, bb; Y < ba; Y++) { if (bb = ab[Y]) { for (; (bb = bb.previousSibling) && bb.nodeType !== 1; ) { } ab[Y] = Z || bb && bb.nodeName.toLowerCase() === aa ? bb || false : bb === aa } } Z && N.filter(aa, ab, true) }, ">": function (ab, aa) { var Z = typeof aa === "string"; if (Z && !/\W/.test(aa)) { aa = aa.toLowerCase(); for (var Y = 0, ba = ab.length; Y < ba; Y++) { var bb = ab[Y]; if (bb) { Z = bb.parentNode; ab[Y] = Z.nodeName.toLowerCase() === aa ? Z : false } } } else { Y = 0; for (ba = ab.length; Y < ba; Y++) { if (bb = ab[Y]) { ab[Y] = Z ? bb.parentNode : bb.parentNode === aa } } Z && N.filter(aa, ab, true) } }, "": function (ab, aa, Z) { var Y = R++, ba = T; if (typeof aa === "string" && !/\W/.test(aa)) { var bb = aa = aa.toLowerCase(); ba = V } ba("parentNode", aa, Y, ab, bb, Z) }, "~": function (ab, aa, Z) { var Y = R++, ba = T; if (typeof aa === "string" && !/\W/.test(aa)) { var bb = aa = aa.toLowerCase(); ba = V } ba("previousSibling", aa, Y, ab, bb, Z) } }, find: { ID: function (aa, Z, Y) { if (typeof Z.getElementById !== "undefined" && !Y) { return (aa = Z.getElementById(aa[1])) ? [aa] : [] } }, NAME: function (ab, aa) { if (typeof aa.getElementsByName !== "undefined") { var Z = []; aa = aa.getElementsByName(ab[1]); for (var Y = 0, ba = aa.length; Y < ba; Y++) { aa[Y].getAttribute("name") === ab[1] && Z.push(aa[Y]) } return Z.length === 0 ? null : Z } }, TAG: function (Z, Y) { return Y.getElementsByTagName(Z[1]) } }, preFilter: { CLASS: function (ba, ab, Z, Y, bb, bl) { ba = " " + ba[1].replace(/\\/g, "") + " "; if (bl) { return ba } bl = 0; for (var aa; (aa = ab[bl]) != null; bl++) { if (aa) { if (bb ^ (aa.className && (" " + aa.className + " ").replace(/[\t\n]/g, " ").indexOf(ba) >= 0)) { Z || Y.push(aa) } else { if (Z) { ab[bl] = false } } } } return false }, ID: function (Y) { return Y[1].replace(/\\/g, "") }, TAG: function (Y) { return Y[1].toLowerCase() }, CHILD: function (Z) { if (Z[1] === "nth") { var Y = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(Z[2] === "even" && "2n" || Z[2] === "odd" && "2n+1" || !/\D/.test(Z[2]) && "0n+" + Z[2] || Z[2]); Z[2] = Y[1] + (Y[2] || 1) - 0; Z[3] = Y[3] - 0 } Z[0] = R++; return Z }, ATTR: function (ab, aa, Z, Y, ba, bb) { aa = ab[1].replace(/\\/g, ""); if (!bb && L.attrMap[aa]) { ab[1] = L.attrMap[aa] } if (ab[2] === "~=") { ab[4] = " " + ab[4] + " " } return ab }, PSEUDO: function (ab, aa, Z, Y, ba) { if (ab[1] === "not") { if ((Q.exec(ab[3]) || "").length > 1 || /^\w/.test(ab[3])) { ab[3] = N(ab[3], null, null, aa) } else { ab = N.filter(ab[3], aa, Z, true ^ ba); Z || Y.push.apply(Y, ab); return false } } else { if (L.match.POS.test(ab[0]) || L.match.CHILD.test(ab[0])) { return true } } return ab }, POS: function (Y) { Y.unshift(true); return Y } }, filters: { enabled: function (Y) { return Y.disabled === false && Y.type !== "hidden" }, disabled: function (Y) { return Y.disabled === true }, checked: function (Y) { return Y.checked === true }, selected: function (Y) { return Y.selected === true }, parent: function (Y) { return !!Y.firstChild }, empty: function (Y) { return !Y.firstChild }, has: function (aa, Z, Y) { return !!N(Y[3], aa).length }, header: function (Y) { return /h\d/i.test(Y.nodeName) }, text: function (Y) { return "text" === Y.type }, radio: function (Y) { return "radio" === Y.type }, checkbox: function (Y) { return "checkbox" === Y.type }, file: function (Y) { return "file" === Y.type }, password: function (Y) { return "password" === Y.type }, submit: function (Y) { return "submit" === Y.type }, image: function (Y) { return "image" === Y.type }, reset: function (Y) { return "reset" === Y.type }, button: function (Y) { return "button" === Y.type || Y.nodeName.toLowerCase() === "button" }, input: function (Y) { return /input|select|textarea|button/i.test(Y.nodeName) } }, setFilters: { first: function (Z, Y) { return Y === 0 }, last: function (ab, aa, Z, Y) { return aa === Y.length - 1 }, even: function (Z, Y) { return Y % 2 === 0 }, odd: function (Z, Y) { return Y % 2 === 1 }, lt: function (aa, Z, Y) { return Z < Y[3] - 0 }, gt: function (aa, Z, Y) { return Z > Y[3] - 0 }, nth: function (aa, Z, Y) { return Y[3] - 0 === Z }, eq: function (aa, Z, Y) { return Y[3] - 0 === Z } }, filter: { PSEUDO: function (ab, aa, Z, Y) { var ba = aa[1], bb = L.filters[ba]; if (bb) { return bb(ab, Z, aa, Y) } else { if (ba === "contains") { return (ab.textContent || ab.innerText || W([ab]) || "").indexOf(aa[3]) >= 0 } else { if (ba === "not") { aa = aa[3]; Z = 0; for (Y = aa.length; Z < Y; Z++) { if (aa[Z] === ab) { return false } } return true } else { N.error("Syntax error, unrecognized expression: " + ba) } } } }, CHILD: function (ba, ab) { var Z = ab[1], Y = ba; switch (Z) { case "only": case "first": for (; Y = Y.previousSibling; ) { if (Y.nodeType === 1) { return false } } if (Z === "first") { return true } Y = ba; case "last": for (; Y = Y.nextSibling; ) { if (Y.nodeType === 1) { return false } } return true; case "nth": Z = ab[2]; var bb = ab[3]; if (Z === 1 && bb === 0) { return true } ab = ab[0]; var bl = ba.parentNode; if (bl && (bl.sizcache !== ab || !ba.nodeIndex)) { var aa = 0; for (Y = bl.firstChild; Y; Y = Y.nextSibling) { if (Y.nodeType === 1) { Y.nodeIndex = ++aa } } bl.sizcache = ab } ba = ba.nodeIndex - bb; return Z === 0 ? ba === 0 : ba % Z === 0 && ba / Z >= 0 } }, ID: function (Z, Y) { return Z.nodeType === 1 && Z.getAttribute("id") === Y }, TAG: function (Z, Y) { return Y === "*" && Z.nodeType === 1 || Z.nodeName.toLowerCase() === Y }, CLASS: function (Z, Y) { return (" " + (Z.className || Z.getAttribute("class")) + " ").indexOf(Y) > -1 }, ATTR: function (ab, aa) { var Z = aa[1]; ab = L.attrHandle[Z] ? L.attrHandle[Z](ab) : ab[Z] != null ? ab[Z] : ab.getAttribute(Z); Z = ab + ""; var Y = aa[2]; aa = aa[4]; return ab == null ? Y === "!=" : Y === "=" ? Z === aa : Y === "*=" ? Z.indexOf(aa) >= 0 : Y === "~=" ? (" " + Z + " ").indexOf(aa) >= 0 : !aa ? Z && ab !== false : Y === "!=" ? Z !== aa : Y === "^=" ? Z.indexOf(aa) === 0 : Y === "$=" ? Z.substr(Z.length - aa.length) === aa : Y === "|=" ? Z === aa || Z.substr(0, aa.length + 1) === aa + "-" : false }, POS: function (ab, aa, Z, Y) { var ba = L.setFilters[aa[2]]; if (ba) { return ba(ab, Z, aa, Y) } } } }, G = L.match.POS; for (var w in L.match) { L.match[w] = new RegExp(L.match[w].source + /(?![^\[]*\])(?![^\(]*\))/.source); L.leftMatch[w] = new RegExp(/(^(?:.|\r|\n)*?)/.source + L.match[w].source.replace(/\\(\d+)/g, function (Z, Y) { return "\\" + (Y - 0 + 1) })) } var c = function (Z, Y) { Z = Array.prototype.slice.call(Z, 0); if (Y) { Y.push.apply(Y, Z); return Y } return Z }; try { Array.prototype.slice.call(M.documentElement.childNodes, 0) } catch (F) { c = function (ab, aa) { aa = aa || []; if (O.call(ab) === "[object Array]") { Array.prototype.push.apply(aa, ab) } else { if (typeof ab.length === "number") { for (var Z = 0, Y = ab.length; Z < Y; Z++) { aa.push(ab[Z]) } } else { for (Z = 0; ab[Z]; Z++) { aa.push(ab[Z]) } } } return aa } } var J; if (M.documentElement.compareDocumentPosition) { J = function (Z, Y) { if (!Z.compareDocumentPosition || !Y.compareDocumentPosition) { if (Z == Y) { P = true } return Z.compareDocumentPosition ? -1 : 1 } Z = Z.compareDocumentPosition(Y) & 4 ? -1 : Z === Y ? 0 : 1; if (Z === 0) { P = true } return Z } } else { if ("sourceIndex" in M.documentElement) { J = function (Z, Y) { if (!Z.sourceIndex || !Y.sourceIndex) { if (Z == Y) { P = true } return Z.sourceIndex ? -1 : 1 } Z = Z.sourceIndex - Y.sourceIndex; if (Z === 0) { P = true } return Z } } else { if (M.createRange) { J = function (ab, aa) { if (!ab.ownerDocument || !aa.ownerDocument) { if (ab == aa) { P = true } return ab.ownerDocument ? -1 : 1 } var Z = ab.ownerDocument.createRange(), Y = aa.ownerDocument.createRange(); Z.setStart(ab, 0); Z.setEnd(ab, 0); Y.setStart(aa, 0); Y.setEnd(aa, 0); ab = Z.compareBoundaryPoints(Range.START_TO_END, Y); if (ab === 0) { P = true } return ab } } } } (function () { var aa = M.createElement("div"), Z = "script" + (new Date).getTime(); aa.innerHTML = "<a name='" + Z + "'/>"; var Y = M.documentElement; Y.insertBefore(aa, Y.firstChild); if (M.getElementById(Z)) { L.find.ID = function (ab, ba, bb) { if (typeof ba.getElementById !== "undefined" && !bb) { return (ba = ba.getElementById(ab[1])) ? ba.id === ab[1] || typeof ba.getAttributeNode !== "undefined" && ba.getAttributeNode("id").nodeValue === ab[1] ? [ba] : I : [] } }; L.filter.ID = function (ab, ba) { var bb = typeof ab.getAttributeNode !== "undefined" && ab.getAttributeNode("id"); return ab.nodeType === 1 && bb && bb.nodeValue === ba } } Y.removeChild(aa); Y = aa = null })(); (function () { var Y = M.createElement("div"); Y.appendChild(M.createComment("")); if (Y.getElementsByTagName("*").length > 0) { L.find.TAG = function (ab, aa) { aa = aa.getElementsByTagName(ab[1]); if (ab[1] === "*") { ab = []; for (var Z = 0; aa[Z]; Z++) { aa[Z].nodeType === 1 && ab.push(aa[Z]) } aa = ab } return aa } } Y.innerHTML = "<a href='#'></a>"; if (Y.firstChild && typeof Y.firstChild.getAttribute !== "undefined" && Y.firstChild.getAttribute("href") !== "#") { L.attrHandle.href = function (Z) { return Z.getAttribute("href", 2) } } Y = null })(); M.querySelectorAll && function () { var aa = N, Z = M.createElement("div"); Z.innerHTML = "<p class='TEST'></p>"; if (!(Z.querySelectorAll && Z.querySelectorAll(".TEST").length === 0)) { N = function (ab, bl, bm, ba) { bl = bl || M; if (!ba && bl.nodeType === 9 && !s(bl)) { try { return c(bl.querySelectorAll(ab), bm) } catch (bb) { } } return aa(ab, bl, bm, ba) }; for (var Y in aa) { N[Y] = aa[Y] } Z = null } } (); (function () { var Y = M.createElement("div"); Y.innerHTML = "<div class='test e'></div><div class='test'></div>"; if (!(!Y.getElementsByClassName || Y.getElementsByClassName("e").length === 0)) { Y.lastChild.className = "e"; if (Y.getElementsByClassName("e").length !== 1) { L.order.splice(1, 0, "CLASS"); L.find.CLASS = function (ab, aa, Z) { if (typeof aa.getElementsByClassName !== "undefined" && !Z) { return aa.getElementsByClassName(ab[1]) } }; Y = null } } })(); var A = M.compareDocumentPosition ? function (Z, Y) { return !!(Z.compareDocumentPosition(Y) & 16) } : function (Z, Y) { return Z !== Y && (Z.contains ? Z.contains(Y) : true) }, s = function (Y) { return (Y = (Y ? Y.ownerDocument || Y : 0).documentElement) ? Y.nodeName !== "HTML" : false }, X = function (ab, aa) { var Z = [], Y = "", ba; for (aa = aa.nodeType ? [aa] : aa; ba = L.match.PSEUDO.exec(ab); ) { Y += ba[0]; ab = ab.replace(L.match.PSEUDO, "") } ab = L.relative[ab] ? ab + "*" : ab; ba = 0; for (var bb = aa.length; ba < bb; ba++) { N(ab, aa[ba], Z) } return N.filter(Y, Z) }; ah.find = N; ah.expr = N.selectors; ah.expr[":"] = ah.expr.filters; ah.unique = N.uniqueSort; ah.text = W; ah.isXMLDoc = s; ah.contains = A })(); var f = /Until$/, a9 = /^(?:parents|prevUntil|prevAll)/, aW = /,/; au = Array.prototype.slice; var aL = function (s, c, A) { if (ah.isFunction(c)) { return ah.grep(s, function (G, F) { return !!c.call(G, F, G) === A }) } else { if (c.nodeType) { return ah.grep(s, function (F) { return F === c === A }) } else { if (typeof c === "string") { var w = ah.grep(s, function (F) { return F.nodeType === 1 }); if (aT.test(c)) { return ah.filter(c, w, !A) } else { c = ah.filter(c, w) } } } } return ah.grep(s, function (F) { return ah.inArray(F, c) >= 0 === A }) }; ah.fn.extend({ find: function (s) { for (var c = this.pushStack("", "find", s), J = 0, F = 0, G = this.length; F < G; F++) { J = c.length; ah.find(s, this[F], c); if (F > 0) { for (var w = J; w < c.length; w++) { for (var A = 0; A < J; A++) { if (c[A] === c[w]) { c.splice(w--, 1); break } } } } } return c }, has: function (s) { var c = ah(s); return this.filter(function () { for (var A = 0, w = c.length; A < w; A++) { if (ah.contains(this, c[A])) { return true } } }) }, not: function (c) { return this.pushStack(aL(this, c, false), "not", c) }, filter: function (c) { return this.pushStack(aL(this, c, true), "filter", c) }, is: function (c) { return !!c && ah.filter(c, this).length > 0 }, closest: function (L, K) { if (ah.isArray(L)) { var J = [], F = this[0], G, w = {}, A; if (F && L.length) { G = 0; for (var c = L.length; G < c; G++) { A = L[G]; w[A] || (w[A] = ah.expr.match.POS.test(A) ? ah(A, K || this.context) : A) } for (; F && F.ownerDocument && F !== K; ) { for (A in w) { G = w[A]; if (G.jquery ? G.index(F) > -1 : ah(F).is(G)) { J.push({ selector: A, elem: F }); delete w[A] } } F = F.parentNode } } return J } var s = ah.expr.match.POS.test(L) ? ah(L, K || this.context) : null; return this.map(function (O, N) { for (; N && N.ownerDocument && N !== K; ) { if (s ? s.index(N) > -1 : ah(N).is(L)) { return N } N = N.parentNode } return null }) }, index: function (c) { if (!c || typeof c === "string") { return ah.inArray(this[0], c ? ah(c) : this.parent().children()) } return ah.inArray(c.jquery ? c[0] : c, this) }, add: function (s, c) { s = typeof s === "string" ? ah(s, c || this.context) : ah.makeArray(s); c = ah.merge(this.get(), s); return this.pushStack(l(s[0]) || l(c[0]) ? c : ah.unique(c)) }, andSelf: function () { return this.add(this.prevObject) } }); ah.each({ parent: function (c) { return (c = c.parentNode) && c.nodeType !== 11 ? c : null }, parents: function (c) { return ah.dir(c, "parentNode") }, parentsUntil: function (s, c, w) { return ah.dir(s, "parentNode", w) }, next: function (c) { return ah.nth(c, 2, "nextSibling") }, prev: function (c) { return ah.nth(c, 2, "previousSibling") }, nextAll: function (c) { return ah.dir(c, "nextSibling") }, prevAll: function (c) { return ah.dir(c, "previousSibling") }, nextUntil: function (s, c, w) { return ah.dir(s, "nextSibling", w) }, prevUntil: function (s, c, w) { return ah.dir(s, "previousSibling", w) }, siblings: function (c) { return ah.sibling(c.parentNode.firstChild, c) }, children: function (c) { return ah.sibling(c.firstChild) }, contents: function (c) { return ah.nodeName(c, "iframe") ? c.contentDocument || c.contentWindow.document : ah.makeArray(c.childNodes) } }, function (s, c) { ah.fn[s] = function (F, w) { var A = ah.map(this, c, F); f.test(s) || (w = F); if (w && typeof w === "string") { A = ah.filter(w, A) } A = this.length > 1 ? ah.unique(A) : A; if ((this.length > 1 || aW.test(w)) && a9.test(s)) { A = A.reverse() } return this.pushStack(A, s, au.call(arguments).join(",")) } }); ah.extend({ filter: function (s, c, w) { if (w) { s = ":not(" + s + ")" } return ah.find.matches(s, c) }, dir: function (s, c, A) { var w = []; for (s = s[c]; s && s.nodeType !== 9 && (A === I || s.nodeType !== 1 || !ah(s).is(A)); ) { s.nodeType === 1 && w.push(s); s = s[c] } return w }, nth: function (s, c, A) { c = c || 1; for (var w = 0; s; s = s[A]) { if (s.nodeType === 1 && ++w === c) { break } } return s }, sibling: function (s, c) { for (var w = []; s; s = s.nextSibling) { s.nodeType === 1 && s !== c && w.push(s) } return w } }); var ai = / jQuery\d+="(?:\d+|null)"/g, ar = /^\s+/, B = /(<([\w:]+)[^>]*?)\/>/g, aD = /^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i, m = /<([\w:]+)/, ac = /<tbody/i, u = /<|&#?\w+;/, aP = /<script|<object|<embed|<option|<style/i, ak = /checked\s*(?:[^=]|=\s*.checked.)/i, bk = function (s, c, w) { return aD.test(w) ? s : c + "></" + w + ">" }, aJ = { 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, "", ""] }; aJ.optgroup = aJ.option; aJ.tbody = aJ.tfoot = aJ.colgroup = aJ.caption = aJ.thead; aJ.th = aJ.td; if (!ah.support.htmlSerialize) { aJ._default = [1, "div<div>", "</div>"] } ah.fn.extend({ text: function (c) { if (ah.isFunction(c)) { return this.each(function (s) { var w = ah(this); w.text(c.call(this, s, w.text())) }) } if (typeof c !== "object" && c !== I) { return this.empty().append((this[0] && this[0].ownerDocument || M).createTextNode(c)) } return ah.text(this) }, wrapAll: function (s) { if (ah.isFunction(s)) { return this.each(function (w) { ah(this).wrapAll(s.call(this, w)) }) } if (this[0]) { var c = ah(s, this[0].ownerDocument).eq(0).clone(true); this[0].parentNode && c.insertBefore(this[0]); c.map(function () { for (var w = this; w.firstChild && w.firstChild.nodeType === 1; ) { w = w.firstChild } return w }).append(this) } return this }, wrapInner: function (c) { if (ah.isFunction(c)) { return this.each(function (s) { ah(this).wrapInner(c.call(this, s)) }) } return this.each(function () { var s = ah(this), w = s.contents(); w.length ? w.wrapAll(c) : s.append(c) }) }, wrap: function (c) { return this.each(function () { ah(this).wrapAll(c) }) }, unwrap: function () { return this.parent().each(function () { ah.nodeName(this, "body") || ah(this).replaceWith(this.childNodes) }).end() }, append: function () { return this.domManip(arguments, true, function (c) { this.nodeType === 1 && this.appendChild(c) }) }, prepend: function () { return this.domManip(arguments, true, function (c) { this.nodeType === 1 && this.insertBefore(c, this.firstChild) }) }, before: function () { if (this[0] && this[0].parentNode) { return this.domManip(arguments, false, function (s) { this.parentNode.insertBefore(s, this) }) } else { if (arguments.length) { var c = ah(arguments[0]); c.push.apply(c, this.toArray()); return this.pushStack(c, "before", arguments) } } }, after: function () { if (this[0] && this[0].parentNode) { return this.domManip(arguments, false, function (s) { this.parentNode.insertBefore(s, this.nextSibling) }) } else { if (arguments.length) { var c = this.pushStack(this, "after", arguments); c.push.apply(c, ah(arguments[0]).toArray()); return c } } }, remove: function (s, c) { for (var A = 0, w; (w = this[A]) != null; A++) { if (!s || ah.filter(s, [w]).length) { if (!c && w.nodeType === 1) { ah.cleanData(w.getElementsByTagName("*")); ah.cleanData([w]) } w.parentNode && w.parentNode.removeChild(w) } } return this }, empty: function () { for (var s = 0, c; (c = this[s]) != null; s++) { for (c.nodeType === 1 && ah.cleanData(c.getElementsByTagName("*")); c.firstChild; ) { c.removeChild(c.firstChild) } } return this }, clone: function (s) { var c = this.map(function () { if (!ah.support.noCloneEvent && !ah.isXMLDoc(this)) { var A = this.outerHTML, w = this.ownerDocument; if (!A) { A = w.createElement("div"); A.appendChild(this.cloneNode(true)); A = A.innerHTML } return ah.clean([A.replace(ai, "").replace(/=([^="'>\s]+\/)>/g, '="$1">').replace(ar, "")], w)[0] } else { return this.cloneNode(true) } }); if (s === true) { bj(this, c); bj(this.find("*"), c.find("*")) } return c }, html: function (s) { if (s === I) { return this[0] && this[0].nodeType === 1 ? this[0].innerHTML.replace(ai, "") : null } else { if (typeof s === "string" && !aP.test(s) && (ah.support.leadingWhitespace || !ar.test(s)) && !aJ[(m.exec(s) || ["", ""])[1].toLowerCase()]) { s = s.replace(B, bk); try { for (var c = 0, A = this.length; c < A; c++) { if (this[c].nodeType === 1) { ah.cleanData(this[c].getElementsByTagName("*")); this[c].innerHTML = s } } } catch (w) { this.empty().append(s) } } else { ah.isFunction(s) ? this.each(function (J) { var F = ah(this), G = F.html(); F.empty().append(function () { return s.call(this, J, G) }) }) : this.empty().append(s) } } return this }, replaceWith: function (c) { if (this[0] && this[0].parentNode) { if (ah.isFunction(c)) { return this.each(function (s) { var A = ah(this), w = A.html(); A.replaceWith(c.call(this, s, w)) }) } if (typeof c !== "string") { c = ah(c).detach() } return this.each(function () { var s = this.nextSibling, w = this.parentNode; ah(this).remove(); s ? ah(s).before(c) : ah(w).append(c) }) } else { return this.pushStack(ah(ah.isFunction(c) ? c() : c), "replaceWith", c) } }, detach: function (c) { return this.remove(c, true) }, domManip: function (O, N, L) { function J(P) { return ah.nodeName(P, "table") ? P.getElementsByTagName("tbody")[0] || P.appendChild(P.ownerDocument.createElement("tbody")) : P } var K, F, G = O[0], s = [], A; if (!ah.support.checkClone && arguments.length === 3 && typeof G === "string" && ak.test(G)) { return this.each(function () { ah(this).domManip(O, N, L, true) }) } if (ah.isFunction(G)) { return this.each(function (P) { var Q = ah(this); O[0] = G.call(this, P, N ? Q.html() : I); Q.domManip(O, N, L) }) } if (this[0]) { K = G && G.parentNode; K = ah.support.parentNode && K && K.nodeType === 11 && K.childNodes.length === this.length ? { fragment: K} : a3(O, this, s); A = K.fragment; if (F = A.childNodes.length === 1 ? (A = A.firstChild) : A.firstChild) { N = N && ah.nodeName(F, "tr"); for (var w = 0, c = this.length; w < c; w++) { L.call(N ? J(this[w], F) : this[w], w > 0 || K.cacheable || this.length > 1 ? A.cloneNode(true) : A) } } s.length && ah.each(s, E) } return this } }); ah.fragments = {}; ah.each({ appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, function (s, c) { ah.fn[s] = function (J) { var F = []; J = ah(J); var G = this.length === 1 && this[0].parentNode; if (G && G.nodeType === 11 && G.childNodes.length === 1 && J.length === 1) { J[c](this[0]); return this } else { G = 0; for (var w = J.length; G < w; G++) { var A = (G > 0 ? this.clone(true) : this).get(); ah.fn[c].apply(ah(J[G]), A); F = F.concat(A) } return this.pushStack(F, s, J.selector) } } }); ah.extend({ clean: function (O, N, L, J) { N = N || M; if (typeof N.createElement === "undefined") { N = N.ownerDocument || N[0] && N[0].ownerDocument || M } for (var K = [], F = 0, G; (G = O[F]) != null; F++) { if (typeof G === "number") { G += "" } if (G) { if (typeof G === "string" && !u.test(G)) { G = N.createTextNode(G) } else { if (typeof G === "string") { G = G.replace(B, bk); var s = (m.exec(G) || ["", ""])[1].toLowerCase(), A = aJ[s] || aJ._default, w = A[0], c = N.createElement("div"); for (c.innerHTML = A[1] + G + A[2]; w--; ) { c = c.lastChild } if (!ah.support.tbody) { w = ac.test(G); s = s === "table" && !w ? c.firstChild && c.firstChild.childNodes : A[1] === "<table>" && !w ? c.childNodes : []; for (A = s.length - 1; A >= 0; --A) { ah.nodeName(s[A], "tbody") && !s[A].childNodes.length && s[A].parentNode.removeChild(s[A]) } } !ah.support.leadingWhitespace && ar.test(G) && c.insertBefore(N.createTextNode(ar.exec(G)[0]), c.firstChild); G = c.childNodes } } if (G.nodeType) { K.push(G) } else { K = ah.merge(K, G) } } } if (L) { for (F = 0; K[F]; F++) { if (J && ah.nodeName(K[F], "script") && (!K[F].type || K[F].type.toLowerCase() === "text/javascript")) { J.push(K[F].parentNode ? K[F].parentNode.removeChild(K[F]) : K[F]) } else { K[F].nodeType === 1 && K.splice.apply(K, [F + 1, 0].concat(ah.makeArray(K[F].getElementsByTagName("script")))); L.appendChild(K[F]) } } } return K }, cleanData: function (L) { for (var K, J, F = ah.cache, G = ah.event.special, w = ah.support.deleteExpando, A = 0, c; (c = L[A]) != null; A++) { if (J = c[ah.expando]) { K = F[J]; if (K.events) { for (var s in K.events) { G[s] ? ah.event.remove(c, s) : aG(c, s, K.handle) } } if (w) { delete c[ah.expando] } else { c.removeAttribute && c.removeAttribute(ah.expando) } delete F[J] } } } }); var h = /z-?index|font-?weight|opacity|zoom|line-?height/i, a4 = /alpha\([^)]*\)/, aQ = /opacity=([^)]*)/, aE = /float/i, ad = /-([a-z])/ig, bf = /([A-Z])/g, aZ = /^-?\d+(?:px)?$/i, aI = /^-?\d/, af = { position: "absolute", visibility: "hidden", display: "block" }, y = ["Left", "Right"], k = ["Top", "Bottom"], bi = M.defaultView && M.defaultView.getComputedStyle, al = ah.support.cssFloat ? "cssFloat" : "styleFloat", v = function (s, c) { return c.toUpperCase() }; ah.fn.css = function (s, c) { return ap(this, s, c, true, function (F, w, A) { if (A === I) { return ah.curCSS(F, w) } if (typeof A === "number" && !h.test(w)) { A += "px" } ah.style(F, w, A) }) }; ah.extend({ style: function (s, c, F) { if (!s || s.nodeType === 3 || s.nodeType === 8) { return I } if ((c === "width" || c === "height") && parseFloat(F) < 0) { F = I } var w = s.style || s, A = F !== I; if (!ah.support.opacity && c === "opacity") { if (A) { w.zoom = 1; c = parseInt(F, 10) + "" === "NaN" ? "" : "alpha(opacity=" + F * 100 + ")"; s = w.filter || ah.curCSS(s, "filter") || ""; w.filter = a4.test(s) ? s.replace(a4, c) : c } return w.filter && w.filter.indexOf("opacity=") >= 0 ? parseFloat(aQ.exec(w.filter)[1]) / 100 + "" : "" } if (aE.test(c)) { c = al } c = c.replace(ad, v); if (A) { w[c] = F } return w[c] }, css: function (s, c, J, F) { if (c === "width" || c === "height") { var G, w = c === "width" ? y : k; function A() { G = c === "width" ? s.offsetWidth : s.offsetHeight; F !== "border" && ah.each(w, function () { F || (G -= parseFloat(ah.curCSS(s, "padding" + this, true)) || 0); if (F === "margin") { G += parseFloat(ah.curCSS(s, "margin" + this, true)) || 0 } else { G -= parseFloat(ah.curCSS(s, "border" + this + "Width", true)) || 0 } }) } s.offsetWidth !== 0 ? A() : ah.swap(s, af, A); return Math.max(0, Math.round(G)) } return ah.curCSS(s, c, J) }, curCSS: function (s, c, G) { var A, F = s.style; if (!ah.support.opacity && c === "opacity" && s.currentStyle) { A = aQ.test(s.currentStyle.filter || "") ? parseFloat(RegExp.$1) / 100 + "" : ""; return A === "" ? "1" : A } if (aE.test(c)) { c = al } if (!G && F && F[c]) { A = F[c] } else { if (bi) { if (aE.test(c)) { c = "float" } c = c.replace(bf, "-$1").toLowerCase(); F = s.ownerDocument.defaultView; if (!F) { return null } if (s = F.getComputedStyle(s, null)) { A = s.getPropertyValue(c) } if (c === "opacity" && A === "") { A = "1" } } else { if (s.currentStyle) { G = c.replace(ad, v); A = s.currentStyle[c] || s.currentStyle[G]; if (!aZ.test(A) && aI.test(A)) { c = F.left; var w = s.runtimeStyle.left; s.runtimeStyle.left = s.currentStyle.left; F.left = G === "fontSize" ? "1em" : A || 0; A = F.pixelLeft + "px"; F.left = c; s.runtimeStyle.left = w } } } } return A }, swap: function (s, c, F) { var w = {}; for (var A in c) { w[A] = s.style[A]; s.style[A] = c[A] } F.call(s); for (A in c) { s.style[A] = w[A] } } }); if (ah.expr && ah.expr.filters) { ah.expr.filters.hidden = function (s) { var c = s.offsetWidth, A = s.offsetHeight, w = s.nodeName.toLowerCase() === "tr"; return c === 0 && A === 0 && !w ? true : c > 0 && A > 0 && !w ? false : ah.curCSS(s, "display") === "none" }; ah.expr.filters.visible = function (c) { return !ah.expr.filters.hidden(c) } } var a2 = aF(), aN = /<script(.|\s)*?\/script>/gi, aj = /select|textarea/i, C = /color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i, aA = /=\?(&|$)/, i = /\?/, n = /(\?|&)_=.*?(&|$)/, a = /^(\w+:)?\/\/([^\/?#]+)/, a5 = /%20/g, aR = ah.fn.load; ah.fn.extend({ load: function (s, c, G) { if (typeof s !== "string") { return aR.call(this, s) } else { if (!this.length) { return this } } var A = s.indexOf(" "); if (A >= 0) { var F = s.slice(A, s.length); s = s.slice(0, A) } A = "GET"; if (c) { if (ah.isFunction(c)) { G = c; c = null } else { if (typeof c === "object") { c = ah.param(c, ah.ajaxSettings.traditional); A = "POST" } } } var w = this; ah.ajax({ url: s, type: A, dataType: "html", data: c, complete: function (J, K) { if (K === "success" || K === "notmodified") { w.html(F ? ah("<div />").append(J.responseText.replace(aN, "")).find(F) : J.responseText) } G && w.each(G, [J.responseText, K, J]) } }); return this }, serialize: function () { return ah.param(this.serializeArray()) }, serializeArray: function () { return this.map(function () { return this.elements ? ah.makeArray(this.elements) : this }).filter(function () { return this.name && !this.disabled && (this.checked || aj.test(this.nodeName) || C.test(this.type)) }).map(function (s, c) { s = ah(this).val(); return s == null ? null : ah.isArray(s) ? ah.map(s, function (w) { return { name: c.name, value: w} }) : { name: c.name, value: s} }).get() } }); ah.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), function (s, c) { ah.fn[c] = function (w) { return this.bind(c, w) } }); ah.extend({ get: function (s, c, A, w) { if (ah.isFunction(c)) { w = w || A; A = c; c = null } return ah.ajax({ type: "GET", url: s, data: c, success: A, dataType: w }) }, getScript: function (s, c) { return ah.get(s, null, c, "script") }, getJSON: function (s, c, w) { return ah.get(s, c, w, "json") }, post: function (s, c, A, w) { if (ah.isFunction(c)) { w = w || A; A = c; c = {} } return ah.ajax({ type: "POST", url: s, data: c, success: A, dataType: w }) }, ajaxSetup: function (c) { ah.extend(ah.ajaxSettings, c) }, ajaxSettings: { url: location.href, global: true, type: "GET", contentType: "application/x-www-form-urlencoded", processData: true, async: true, xhr: aO.XMLHttpRequest && (aO.location.protocol !== "file:" || !aO.ActiveXObject) ? function () { return new aO.XMLHttpRequest } : function () { try { return new aO.ActiveXObject("Microsoft.XMLHTTP") } catch (c) { } }, 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 (aa) { function Z() { X.success && X.success.call(P, K, R, s); X.global && W("ajaxSuccess", [s, X]) } function Y() { X.complete && X.complete.call(P, s, R); X.global && W("ajaxComplete", [s, X]); X.global && ! --ah.active && ah.event.trigger("ajaxStop") } function W(ba, bb) { (X.context ? ah(X.context) : ah.event).trigger(ba, bb) } var X = ah.extend(true, {}, ah.ajaxSettings, aa), Q, R, K, P = aa && aa.context || X, L = X.type.toUpperCase(); if (X.data && X.processData && typeof X.data !== "string") { X.data = ah.param(X.data, X.traditional) } if (X.dataType === "jsonp") { if (L === "GET") { aA.test(X.url) || (X.url += (i.test(X.url) ? "&" : "?") + (X.jsonp || "callback") + "=?") } else { if (!X.data || !aA.test(X.data)) { X.data = (X.data ? X.data + "&" : "") + (X.jsonp || "callback") + "=?" } } X.dataType = "json" } if (X.dataType === "json" && (X.data && aA.test(X.data) || aA.test(X.url))) { Q = X.jsonpCallback || "jsonp" + a2++; if (X.data) { X.data = (X.data + "").replace(aA, "=" + Q + "$1") } X.url = X.url.replace(aA, "=" + Q + "$1"); X.dataType = "script"; aO[Q] = aO[Q] || function (ba) { K = ba; Z(); Y(); aO[Q] = I; try { delete aO[Q] } catch (bb) { } c && c.removeChild(F) } } if (X.dataType === "script" && X.cache === null) { X.cache = false } if (X.cache === false && L === "GET") { var G = aF(), w = X.url.replace(n, "$1_=" + G + "$2"); X.url = w + (w === X.url ? (i.test(X.url) ? "&" : "?") + "_=" + G : "") } if (X.data && L === "GET") { X.url += (i.test(X.url) ? "&" : "?") + X.data } X.global && !ah.active++ && ah.event.trigger("ajaxStart"); G = (G = a.exec(X.url)) && (G[1] && G[1] !== location.protocol || G[2] !== location.host); if (X.dataType === "script" && L === "GET" && G) { var c = M.getElementsByTagName("head")[0] || M.documentElement, F = M.createElement("script"); F.src = X.url; if (X.scriptCharset) { F.charset = X.scriptCharset } if (!Q) { var J = false; F.onload = F.onreadystatechange = function () { if (!J && (!this.readyState || this.readyState === "loaded" || this.readyState === "complete")) { J = true; Z(); Y(); F.onload = F.onreadystatechange = null; c && F.parentNode && c.removeChild(F) } } } c.insertBefore(F, c.firstChild); return I } var A = false, s = X.xhr(); if (s) { X.username ? s.open(L, X.url, X.async, X.username, X.password) : s.open(L, X.url, X.async); try { if (X.data || aa && aa.contentType) { s.setRequestHeader("Content-Type", X.contentType) } if (X.ifModified) { ah.lastModified[X.url] && s.setRequestHeader("If-Modified-Since", ah.lastModified[X.url]); ah.etag[X.url] && s.setRequestHeader("If-None-Match", ah.etag[X.url]) } G || s.setRequestHeader("X-Requested-With", "XMLHttpRequest"); s.setRequestHeader("Accept", X.dataType && X.accepts[X.dataType] ? X.accepts[X.dataType] + ", */*" : X.accepts._default) } catch (ab) { } if (X.beforeSend && X.beforeSend.call(P, s, X) === false) { X.global && ! --ah.active && ah.event.trigger("ajaxStop"); s.abort(); return false } X.global && W("ajaxSend", [s, X]); var V = s.onreadystatechange = function (bb) { if (!s || s.readyState === 0 || bb === "abort") { A || Y(); A = true; if (s) { s.onreadystatechange = ah.noop } } else { if (!A && s && (s.readyState === 4 || bb === "timeout")) { A = true; s.onreadystatechange = ah.noop; R = bb === "timeout" ? "timeout" : !ah.httpSuccess(s) ? "error" : X.ifModified && ah.httpNotModified(s, X.url) ? "notmodified" : "success"; var bl; if (R === "success") { try { K = ah.httpData(s, X.dataType, X) } catch (ba) { R = "parsererror"; bl = ba } } if (R === "success" || R === "notmodified") { Q || Z() } else { ah.handleError(X, s, R, bl) } Y(); bb === "timeout" && s.abort(); if (X.async) { s = null } } } }; try { var T = s.abort; s.abort = function () { s && T.call(s); V("abort") } } catch (O) { } X.async && X.timeout > 0 && setTimeout(function () { s && !A && V("timeout") }, X.timeout); try { s.send(L === "POST" || L === "PUT" || L === "DELETE" ? X.data : null) } catch (N) { ah.handleError(X, s, null, N); Y() } X.async || V(); return s } }, handleError: function (s, c, A, w) { if (s.error) { s.error.call(s.context || s, c, A, w) } if (s.global) { (s.context ? ah(s.context) : ah.event).trigger("ajaxError", [c, s, w]) } }, active: 0, httpSuccess: function (s) { try { return !s.status && location.protocol === "file:" || s.status >= 200 && s.status < 300 || s.status === 304 || s.status === 1223 || s.status === 0 } catch (c) { } return false }, httpNotModified: function (s, c) { var A = s.getResponseHeader("Last-Modified"), w = s.getResponseHeader("Etag"); if (A) { ah.lastModified[c] = A } if (w) { ah.etag[c] = w } return s.status === 304 || s.status === 0 }, httpData: function (s, c, F) { var w = s.getResponseHeader("content-type") || "", A = c === "xml" || !c && w.indexOf("xml") >= 0; s = A ? s.responseXML : s.responseText; A && s.documentElement.nodeName === "parsererror" && ah.error("parsererror"); if (F && F.dataFilter) { s = F.dataFilter(s, c) } if (typeof s === "string") { if (c === "json" || !c && w.indexOf("json") >= 0) { s = ah.parseJSON(s) } else { if (c === "script" || !c && w.indexOf("javascript") >= 0) { ah.globalEval(s) } } } return s }, param: function (s, c) { function G(J, K) { if (ah.isArray(K)) { ah.each(K, function (L, N) { c || /\[\]$/.test(J) ? A(J, N) : G(J + "[" + (typeof N === "object" || ah.isArray(N) ? L : "") + "]", N) }) } else { !c && K != null && typeof K === "object" ? ah.each(K, function (L, N) { G(J + "[" + L + "]", N) }) : A(J, K) } } function A(J, K) { K = ah.isFunction(K) ? K() : K; F[F.length] = encodeURIComponent(J) + "=" + encodeURIComponent(K) } var F = []; if (c === I) { c = ah.ajaxSettings.traditional } if (ah.isArray(s) || s.jquery) { ah.each(s, function () { A(this.name, this.value) }) } else { for (var w in s) { G(w, s[w]) } } return F.join("&").replace(a5, "+") } }); var bg = {}, bc = /toggle|show|hide/, aX = /^([+-]=)?([\d+-.]+)(.*)$/, aq, D = [["height", "marginTop", "marginBottom", "paddingTop", "paddingBottom"], ["width", "marginLeft", "marginRight", "paddingLeft", "paddingRight"], ["opacity"]]; ah.fn.extend({ show: function (s, c) { if (s || s === 0) { return this.animate(aC("show", 3), s, c) } else { s = 0; for (c = this.length; s < c; s++) { var F = ah.data(this[s], "olddisplay"); this[s].style.display = F || ""; if (ah.css(this[s], "display") === "none") { F = this[s].nodeName; var w; if (bg[F]) { w = bg[F] } else { var A = ah("<" + F + " />").appendTo("body"); w = A.css("display"); if (w === "none") { w = "block" } A.remove(); bg[F] = w } ah.data(this[s], "olddisplay", w) } } s = 0; for (c = this.length; s < c; s++) { this[s].style.display = ah.data(this[s], "olddisplay") || "" } return this } }, hide: function (s, c) { if (s || s === 0) { return this.animate(aC("hide", 3), s, c) } else { s = 0; for (c = this.length; s < c; s++) { var w = ah.data(this[s], "olddisplay"); !w && w !== "none" && ah.data(this[s], "olddisplay", ah.css(this[s], "display")) } s = 0; for (c = this.length; s < c; s++) { this[s].style.display = "none" } return this } }, _toggle: ah.fn.toggle, toggle: function (s, c) { var w = typeof s === "boolean"; if (ah.isFunction(s) && ah.isFunction(c)) { this._toggle.apply(this, arguments) } else { s == null || w ? this.each(function () { var A = w ? s : ah(this).is(":hidden"); ah(this)[A ? "show" : "hide"]() }) : this.animate(aC("toggle", 3), s, c) } return this }, fadeTo: function (s, c, w) { return this.filter(":hidden").css("opacity", 0).show().end().animate({ opacity: c }, s, w) }, animate: function (s, c, F, w) { var A = ah.speed(c, F, w); if (ah.isEmptyObject(s)) { return this.each(A.complete) } return this[A.queue === false ? "each" : "queue"](function () { var J = ah.extend({}, A), K, L = this.nodeType === 1 && ah(this).is(":hidden"), G = this; for (K in s) { var N = K.replace(ad, v); if (K !== N) { s[N] = s[K]; delete s[K]; K = N } if (s[K] === "hide" && L || s[K] === "show" && !L) { return J.complete.call(this) } if ((K === "height" || K === "width") && this.style) { J.display = ah.css(this, "display"); J.overflow = this.style.overflow } if (ah.isArray(s[K])) { (J.specialEasing = J.specialEasing || {})[K] = s[K][1]; s[K] = s[K][0] } } if (J.overflow != null) { this.style.overflow = "hidden" } J.curAnim = ah.extend({}, s); ah.each(s, function (P, O) { var T = new ah.fx(G, J, P); if (bc.test(O)) { T[O === "toggle" ? L ? "show" : "hide" : O](s) } else { var R = aX.exec(O), V = T.cur(true) || 0; if (R) { O = parseFloat(R[2]); var Q = R[3] || "px"; if (Q !== "px") { G.style[P] = (O || 1) + Q; V = (O || 1) / T.cur(true) * V; G.style[P] = V + Q } if (R[1]) { O = (R[1] === "-=" ? -1 : 1) * O + V } T.custom(V, O, Q) } else { T.custom(V, O, "") } } }); return true }) }, stop: function (s, c) { var w = ah.timers; s && this.queue([]); this.each(function () { for (var A = w.length - 1; A >= 0; A--) { if (w[A].elem === this) { c && w[A](true); w.splice(A, 1) } } }); c || this.dequeue(); return this } }); ah.each({ slideDown: aC("show", 1), slideUp: aC("hide", 1), slideToggle: aC("toggle", 1), fadeIn: { opacity: "show" }, fadeOut: { opacity: "hide"} }, function (s, c) { ah.fn[s] = function (A, w) { return this.animate(c, A, w) } }); ah.extend({ speed: function (s, c, A) { var w = s && typeof s === "object" ? s : { complete: A || !A && c || ah.isFunction(s) && s, duration: s, easing: A && c || c && !ah.isFunction(c) && c }; w.duration = ah.fx.off ? 0 : typeof w.duration === "number" ? w.duration : ah.fx.speeds[w.duration] || ah.fx.speeds._default; w.old = w.complete; w.complete = function () { w.queue !== false && ah(this).dequeue(); ah.isFunction(w.old) && w.old.call(this) }; return w }, easing: { linear: function (s, c, A, w) { return A + w * s }, swing: function (s, c, A, w) { return (-Math.cos(s * Math.PI) / 2 + 0.5) * w + A } }, timers: [], fx: function (s, c, w) { this.options = c; this.elem = s; this.prop = w; if (!c.orig) { c.orig = {} } } }); ah.fx.prototype = { update: function () { this.options.step && this.options.step.call(this.elem, this.now, this); (ah.fx.step[this.prop] || ah.fx.step._default)(this); if ((this.prop === "height" || this.prop === "width") && this.elem.style) { this.elem.style.display = "block" } }, cur: function (c) { if (this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null)) { return this.elem[this.prop] } return (c = parseFloat(ah.css(this.elem, this.prop, c))) && c > -10000 ? c : parseFloat(ah.curCSS(this.elem, this.prop)) || 0 }, custom: function (s, c, F) { function w(G) { return A.step(G) } this.startTime = aF(); this.start = s; this.end = c; this.unit = F || this.unit || "px"; this.now = this.start; this.pos = this.state = 0; var A = this; w.elem = this.elem; if (w() && ah.timers.push(w) && !aq) { aq = setInterval(ah.fx.tick, 13) } }, show: function () { this.options.orig[this.prop] = ah.style(this.elem, this.prop); this.options.show = true; this.custom(this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur()); ah(this.elem).show() }, hide: function () { this.options.orig[this.prop] = ah.style(this.elem, this.prop); this.options.hide = true; this.custom(this.cur(), 0) }, step: function (s) { var c = aF(), F = true; if (s || c >= this.options.duration + this.startTime) { this.now = this.end; this.pos = this.state = 1; this.update(); this.options.curAnim[this.prop] = true; for (var w in this.options.curAnim) { if (this.options.curAnim[w] !== true) { F = false } } if (F) { if (this.options.display != null) { this.elem.style.overflow = this.options.overflow; s = ah.data(this.elem, "olddisplay"); this.elem.style.display = s ? s : this.options.display; if (ah.css(this.elem, "display") === "none") { this.elem.style.display = "block" } } this.options.hide && ah(this.elem).hide(); if (this.options.hide || this.options.show) { for (var A in this.options.curAnim) { ah.style(this.elem, A, this.options.orig[A]) } } this.options.complete.call(this.elem) } return false } else { A = c - this.startTime; this.state = A / this.options.duration; s = this.options.easing || (ah.easing.swing ? "swing" : "linear"); this.pos = ah.easing[this.options.specialEasing && this.options.specialEasing[this.prop] || s](this.state, A, 0, 1, this.options.duration); this.now = this.start + (this.end - this.start) * this.pos; this.update() } return true } }; ah.extend(ah.fx, { tick: function () { for (var s = ah.timers, c = 0; c < s.length; c++) { s[c]() || s.splice(c--, 1) } s.length || ah.fx.stop() }, stop: function () { clearInterval(aq); aq = null }, speeds: { slow: 600, fast: 200, _default: 400 }, step: { opacity: function (c) { ah.style(c.elem, "opacity", c.now) }, _default: function (c) { if (c.elem.style && c.elem.style[c.prop] != null) { c.elem.style[c.prop] = (c.prop === "width" || c.prop === "height" ? Math.max(0, c.now) : c.now) + c.unit } else { c.elem[c.prop] = c.now } } } }); if (ah.expr && ah.expr.filters) { ah.expr.filters.animated = function (c) { return ah.grep(ah.timers, function (s) { return c === s.elem }).length } } ah.fn.offset = "getBoundingClientRect" in M.documentElement ? function (s) { var c = this[0]; if (s) { return this.each(function (F) { ah.offset.setOffset(this, s, F) }) } if (!c || !c.ownerDocument) { return null } if (c === c.ownerDocument.body) { return ah.offset.bodyOffset(c) } var A = c.getBoundingClientRect(), w = c.ownerDocument; c = w.body; w = w.documentElement; return { top: A.top + (self.pageYOffset || ah.support.boxModel && w.scrollTop || c.scrollTop) - (w.clientTop || c.clientTop || 0), left: A.left + (self.pageXOffset || ah.support.boxModel && w.scrollLeft || c.scrollLeft) - (w.clientLeft || c.clientLeft || 0)} } : function (N) { var L = this[0]; if (N) { return this.each(function (O) { ah.offset.setOffset(this, N, O) }) } if (!L || !L.ownerDocument) { return null } if (L === L.ownerDocument.body) { return ah.offset.bodyOffset(L) } ah.offset.initialize(); var K = L.offsetParent, G = L, J = L.ownerDocument, A, F = J.documentElement, c = J.body; G = (J = J.defaultView) ? J.getComputedStyle(L, null) : L.currentStyle; for (var w = L.offsetTop, s = L.offsetLeft; (L = L.parentNode) && L !== c && L !== F; ) { if (ah.offset.supportsFixedPosition && G.position === "fixed") { break } A = J ? J.getComputedStyle(L, null) : L.currentStyle; w -= L.scrollTop; s -= L.scrollLeft; if (L === K) { w += L.offsetTop; s += L.offsetLeft; if (ah.offset.doesNotAddBorder && !(ah.offset.doesAddBorderForTableAndCells && /^t(able|d|h)$/i.test(L.nodeName))) { w += parseFloat(A.borderTopWidth) || 0; s += parseFloat(A.borderLeftWidth) || 0 } G = K; K = L.offsetParent } if (ah.offset.subtractsBorderForOverflowNotVisible && A.overflow !== "visible") { w += parseFloat(A.borderTopWidth) || 0; s += parseFloat(A.borderLeftWidth) || 0 } G = A } if (G.position === "relative" || G.position === "static") { w += c.offsetTop; s += c.offsetLeft } if (ah.offset.supportsFixedPosition && G.position === "fixed") { w += Math.max(F.scrollTop, c.scrollTop); s += Math.max(F.scrollLeft, c.scrollLeft) } return { top: w, left: s} }; ah.offset = { initialize: function () { var s = M.body, c = M.createElement("div"), G, A, F, w = parseFloat(ah.curCSS(s, "marginTop", true)) || 0; ah.extend(c.style, { position: "absolute", top: 0, left: 0, margin: 0, border: 0, width: "1px", height: "1px", visibility: "hidden" }); c.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>"; s.insertBefore(c, s.firstChild); G = c.firstChild; A = G.firstChild; F = G.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 = ""; G.style.overflow = "hidden"; G.style.position = "relative"; this.subtractsBorderForOverflowNotVisible = A.offsetTop === -5; this.doesNotIncludeMarginInBodyOffset = s.offsetTop !== w; s.removeChild(c); ah.offset.initialize = ah.noop }, bodyOffset: function (s) { var c = s.offsetTop, w = s.offsetLeft; ah.offset.initialize(); if (ah.offset.doesNotIncludeMarginInBodyOffset) { c += parseFloat(ah.curCSS(s, "marginTop", true)) || 0; w += parseFloat(ah.curCSS(s, "marginLeft", true)) || 0 } return { top: c, left: w} }, setOffset: function (s, c, J) { if (/static/.test(ah.curCSS(s, "position"))) { s.style.position = "relative" } var F = ah(s), G = F.offset(), w = parseInt(ah.curCSS(s, "top", true), 10) || 0, A = parseInt(ah.curCSS(s, "left", true), 10) || 0; if (ah.isFunction(c)) { c = c.call(s, J, G) } J = { top: c.top - G.top + w, left: c.left - G.left + A }; "using" in c ? c.using.call(s, J) : F.css(J) } }; ah.fn.extend({ position: function () { if (!this[0]) { return null } var s = this[0], c = this.offsetParent(), A = this.offset(), w = /^body|html$/i.test(c[0].nodeName) ? { top: 0, left: 0} : c.offset(); A.top -= parseFloat(ah.curCSS(s, "marginTop", true)) || 0; A.left -= parseFloat(ah.curCSS(s, "marginLeft", true)) || 0; w.top += parseFloat(ah.curCSS(c[0], "borderTopWidth", true)) || 0; w.left += parseFloat(ah.curCSS(c[0], "borderLeftWidth", true)) || 0; return { top: A.top - w.top, left: A.left - w.left} }, offsetParent: function () { return this.map(function () { for (var c = this.offsetParent || M.body; c && !/^body|html$/i.test(c.nodeName) && ah.css(c, "position") === "static"; ) { c = c.offsetParent } return c }) } }); ah.each(["Left", "Top"], function (s, c) { var w = "scroll" + c; ah.fn[w] = function (F) { var G = this[0], A; if (!G) { return null } if (F !== I) { return this.each(function () { if (A = o(this)) { A.scrollTo(!s ? F : ah(A).scrollLeft(), s ? F : ah(A).scrollTop()) } else { this[w] = F } }) } else { return (A = o(G)) ? "pageXOffset" in A ? A[s ? "pageYOffset" : "pageXOffset"] : ah.support.boxModel && A.document.documentElement[w] || A.document.body[w] : G[w] } } }); ah.each(["Height", "Width"], function (s, c) { var w = c.toLowerCase(); ah.fn["inner" + c] = function () { return this[0] ? ah.css(this[0], w, false, "padding") : null }; ah.fn["outer" + c] = function (A) { return this[0] ? ah.css(this[0], w, false, A ? "margin" : "border") : null }; ah.fn[w] = function (A) { var F = this[0]; if (!F) { return A == null ? null : this } if (ah.isFunction(A)) { return this.each(function (G) { var J = ah(this); J[w](A.call(this, G, J[w]())) }) } return "scrollTo" in F && F.document ? F.document.compatMode === "CSS1Compat" && F.document.documentElement["client" + c] || F.document.body["client" + c] : F.nodeType === 9 ? Math.max(F.documentElement["client" + c], F.body["scroll" + c], F.documentElement["scroll" + c], F.body["offset" + c], F.documentElement["offset" + c]) : A === I ? ah.css(F, w) : this.css(w, typeof A === "string" ? A : A + "px") } }); aO.jQuery = aO.$ = ah })(window);
/*common.js*/
var SKIN_PATH = "/Skins/Default/"; var PTN_EMAIL = /\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/; var PTN_FLOAT = /\d+(\.\d+)?/; function $nsw() { } function $j(a) { return $("#" + a) } function $v(a, c) { if (c == null) { var b = $j(a).val(); if (b == null || b == undefined) { return "" } return b } else { return $j(a).val(c) } } function $tv(a) { return $.trim($v(a)) } function getChecked(a) { return $("#" + a).attr("checked") } function checkRadio(c, b) { var a; if (b == null) { a = $(document.body).find("input[type=radio]") } else { a = $j(b).find("input[type=radio]") } a.each(function (d) { var e = $(this); e.attr("checked", e.val() == c) }) } function getSelectedText(a) { var c = $("#" + a + ">option"); var b = ""; c.each(function (d) { if (this.selected) { b = this.text } }); return b } function hideDdl(b) { var d = ["select", "iframe", "applet", "object"]; var a; if (b != null) { a = $j(b) } else { a = $(document.body) } for (var c = 0; c < d.length; ++c) { a.find(d[c]).css("visibility", "hidden") } } function showDdl() { var b = ["select", "iframe", "applet", "object"]; for (var a = 0; a < b.length; ++a) { $(b[a]).css("visibility", "visible") } } function relocation(a) { var c; if (typeof (a).toString().toLowerCase() == "string") { c = $j(a) } else { c = $(a) } if (c.length == 0) { return } var d = document.documentElement.scrollTop || document.body.scrollTop; var b = (d - (c.height() / 2) + "px"); c.css({ "margin-top": b }) } $(function () { $(window).resize(function () { relocation("mesbook1"); relocation("mesbook1_c") }); $(window).scroll(function () { relocation("mesbook1"); relocation("mesbook1_c") }) }); function oran_msg(c, a, d, f, b, e) { window.onload = function () { $a(c, a, d, f, b, e) } } function $confirm(b, l, o) { hideDdl(); var n = "消息对话框"; var e = $j("mesbook1_c"); if (e.length == 0) { var m = "<div id='mesbook1_c'><div><img onclick='hideMsg()' id='mesbook1_cImgClose' src='" + SKIN_PATH + "Img/ico9_close.gif' alt='关闭' class='fr p vam' /><span id='mesbook1_cTitle'></span></div><dl class='b1'><dt><img id='mesbook1_cIcon' src='" + SKIN_PATH + "Img/message_ico_03.gif' alt='' title=''  /></dt><dd class='l_25' id='mesbook1_cMsg'></dd><dd class='b' style='visibility:hidden' id='mesbook1_cAutoClose'>此窗口<span id='mesbook1_cDelay' style='margin:0 5px;'></span>秒钟后自动关闭。</dd><dd id='mesbook1_cBtns'><input type='button' class='b15' value='确 定' /><input type='button' class='b15' value='取 消' /></dd></dl></div>"; $(document.body).append(m) } var e = $j("mesbook1_c"); var a = $j("mesbook1_cImgClose"); var d = $j("mesbook1_cIcon"); var j = $j("mesbook1_cMsg"); var k = $j("mesbook1_cAutoClose"); var c = $j("mesbook1_cDelay"); var h = $j("mesbook1_cTitle"); var p = $j("mesbook1_cBtns"); h.html(n); j.html(b); var g = SKIN_PATH + "Img/ico_ques.gif"; d.attr("src", g); var f = p.find("input:eq(0)"); var i = p.find("input:eq(1)"); f.removeAttr("onclick"); i.removeAttr("onclick"); if (l.title != null) { f.val(l.title) } if (typeof (l.toDo) == "string") { f.click(function () { location.href = l.toDo }) } else { f.click(function () { l.toDo() }) } if (o.title != null) { i.val(o.title) } if (typeof (o.toDo) == "string") { i.click(function () { location.href = o.toDo }) } else { i.click(function () { o.toDo() }) } a.removeAttr("onclick"); a.click(function () { hideConfirm() }); showFullBg(); setCM("mesbook1_c"); relocation("mesbook1_c"); e.fadeIn(80) } function hideConfirm() { showDdl(); var a = $j("mesbook1_c"); hideFullBg(); a.fadeOut(80) } function $a(c, p, g, l, o, a) { if (p == null) { p = 2 } if (g == null) { g = -1 } if (o == null) { o = "消息提示" } hideDdl(); var f = $j("mesbook1"); if (f.length == 0) { var n = "<div id='mesbook1'><div><img style='float:right' onclick='hideMsg()' id='mesbook1ImgClose' src='" + SKIN_PATH + "Img/ico9_close.gif' alt='关闭' class='fr p vam ml5' /><span id='mesbook1Title'></span></div><dl class='b1'><dt><img id='mesbook1Icon' src='" + SKIN_PATH + "Img/message_ico_03.gif' alt='' title='' /></dt><dd class='l_25' id='mesbook1Msg'></dd><dd class='b' style='visibility:hidden' id='mesbook1AutoClose'>此窗口<span id='mesbook1Delay' style='margin:0 5px;'></span>秒钟后自动关闭。</dd><dd id='mesbook1Btns'><input type='button' class='b15' value='关 闭' /></dd></dl></div>"; $(document.body).append(n) } var f = $j("mesbook1"); var b = $j("mesbook1ImgClose"); var e = $j("mesbook1Icon"); var k = $j("mesbook1Msg"); var m = $j("mesbook1AutoClose"); var d = $j("mesbook1Delay"); var j = $j("mesbook1Title"); var q = $j("mesbook1Btns"); j.html(o); k.html(c); var i = SKIN_PATH + "Img/"; switch (p) { case 1: i += "ico_ok.gif"; break; case 2: i += "ico_info.gif"; break; case 3: i += "ioc_ques.gif"; break; case -1: i += "ico_error.gif"; break; default: i += "ico_normal.gif"; break } e.attr("src", i); var h = q.find("input"); h.removeAttr("onclick"); h.click(function () { hideMsg(); if (l != null) { $j(l).focus() } if (a != null) { a() } }); b.removeAttr("onclick"); b.click(function () { hideMsg(); if (l != null) { $j(l).focus() } if (a != null) { a() } }); h.focus(); showFullBg(); setCM("mesbook1"); relocation("mesbook1"); f.fadeIn(80) } function showMsgPage(f, a, e, g, d, c) { if (a == null) { a = "Information" } else { switch (a) { case 1: a = "Successful"; break; case 2: a = "Information"; break; case 3: a = "Question"; break; case -1: a = "Failed"; break; default: a = "Information"; break } } if (e == null) { e = "/" } if (g == null) { g = "首页" } if (d == null) { d = "/" } if (c == null) { c = 9 } f = f.replace("/<script>/g", "").replace("/<\/script>/g", "").replace("/</sCript>/g", ""); e = e.replace("/<script>/g", "").replace("/<\/script>/g", "").replace("/</sCript>/g", "").replace("http://", "").replace("https://", ""); g = g.replace("/<script>/g", "").replace("/<\/script>/g", "").replace("/</sCript>/g", ""); d = d.replace("/<script>/g", "").replace("/<\/script>/g", "").replace("/</sCript>/g", "").replace("http://", "").replace("https://", ""); var b = "/Tools/Message.aspx?result=" + a + "&btntitle=" + encodeURIComponent(g) + "&btnhref=" + encodeURIComponent(e) + "&defaulthref=" + encodeURIComponent(d) + "&delay=" + c + "&msg=" + encodeURIComponent(f); location.href = b } function hideMsg() { showDdl(); var a = $j("mesbook1"); hideFullBg(); a.fadeOut(80) } function setCM(b, e) { var d; if (typeof (b).toString().toLowerCase() == "string") { d = $j(b) } else { d = $(b) } if (e == null) { e = 80 } var c = d.height() / 2; var a = d.width() / 2; d.css({ top: "50%", "margin-top": "-" + c + "px", left: "50%", "margin-left": "-" + a + "px" }); d.css({ position: "absolute", "z-index": "999" }); d.fadeIn(e) } function setCMS(c, f) { var e; if (typeof (c).toString().toLowerCase() == "string") { e = $j(c) } else { e = $(c) } if (f == null) { f = 80 } var d = e.height() / 2; var b = e.width() / 2; var a = document.documentElement.scrollTop; if (a > 100) { e.css({ top: "50%", "margin-top": "-" + d + "px", left: "50%", "margin-left": "-" + b + "px" }) } else { d = 200; e.css({ "margin-top": "-" + d + "px", left: "50%", "margin-left": "-" + b + "px" }) } e.css({ position: "absolute", "z-index": "999" }); e.fadeIn(f) } function showFullBg(n, e, h, k, i, d, b) { if (n == null) { n = "oran_full_bg" } var a = $j(n); if (a.length == 0) { var l = "<div style='position:absolute;top:0;left:0;display:none;' id='" + n + "'></div>"; $(document.body).append(l) } if (h == null) { h = 0.75 } if (k == null) { k = "#777" } if (i == null) { i = "9" } if (d == null) { d = 80 } if (e == null) { e = true } var a = $j(n); var m = document.documentElement; var c = m.scrollWidth; var g = m.scrollHeight; var f = m.clientHeight; var j = m.clientWidth; if (g < f) { g = f } if (c < j) { c = j } a.css({ "z-index": i, background: k, opacity: h, filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=" + h * 100 + ")" }); a.css({ height: g, width: c }); if (e) { hideDdl(null, b) } a.fadeIn(d); if (b != null) { b() } } function hideFullBg(a, c) { if (a == null) { a = "oran_full_bg" } if (c == null) { c = 80 } var b = $j(a); b.fadeOut(c); showDdl() } function $closeLayer(a, b) { $j(a).fadeOut(80, function () { hideFullBg(b) }) } function limitLength(a) { var l = a.value; var n = parseInt($(a).attr("max")); var c = a.id; var e = l.replace(/[^\x00-\xff]/g, "**"); var d = e.length; if (d * 1 <= n * 1) { return } var j = e.substr(0, n); var h = 0; var k = ""; for (var g = 0; g < j.length; g++) { var b = j.substr(g, 1); if (b == "*") { h++ } } var m = 0; var f = e.substr(n * 1 - 1, 1); if (h % 2 == 0) { m = h / 2 + (n * 1 - h); k = l.substr(0, m) } else { m = (h - 1) / 2 + (n * 1 - h); k = l.substr(0, m) } alert("最大输入" + n + "个字节（相当于" + n / 2 + "个汉字）！"); document.getElementById(c).value = k; return } function $g(a) { return document.getElementById(a) } function $name(a) { return document.getElementsByName(a) } function $tag(b, a) { var c = b; if (c != Object) { c = $g(b) } return c.getElementsByTagName(a) } function digiKeyOnly(b) { var a = window.event ? event.keyCode : b.which; if (a < 27 || a > 128) { return true } else { if (a >= 48 && a <= 57) { return true } else { return false } } } function digiOnly(a) { a.value = a.value.replace(/[^0-9]/g, "") } function $o(b, a, d, c) { if (b == null || b == "") { return } if (a == null) { a = "300" } if (d == null) { d = "300" } if (c == null) { c = "location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0;top=0,left=0" } if (a) { c += ",width=" + a } if (d) { c += ",height=" + d } window.open(b, "", c, false) } function emptyText(a) { var c; if (a == null) { c = $("body").find("input[type=text]") } else { c = $j(a).find("input[type=text]") } var b; if (a == null) { b = $("body").find("input[type=password]") } else { b = $j(a).find("input[type=password]") } c.each(function () { $(this).val("") }); b.each(function () { $(this).val("") }); if (a == null) { c = $("body").find("textarea") } else { c = $j(a).find("textarea") } c.each(function () { $(this).val("") }) } $cookie = function (d, g, b) { if (g == null && b == null) { var e = d + "="; begin = document.cookie.indexOf(e); if (begin != -1) { begin += e.length; end = document.cookie.indexOf(";", begin); if (end == -1) { end = document.cookie.length } return document.cookie.substring(begin, end) } return null } else { if (typeof (g) == "boolean") { $cookie(d, "", -999999) } else { if (b == null) { b = 9986400000 } var a = new Date(); var f = new Date(); var c = b; f.setTime(a.getTime() + c); document.cookie = d + "=" + g + ";expires=" + f.toGMTString() } } }; function $qs(g) { var b = new Object(); var f = location.search.substring(1); var e = f.split("&"); for (var c = 0; c < e.length; ++c) { var h = e[c].indexOf("="); if (!h) { continue } var d = e[c].substring(0, h); var a = e[c].substring(h + 1); a = decodeURIComponent(a); b[d] = a } return b[g] == null ? "" : b[g] } function selectAll(d, b) { var a = $tag(b, "input"); for (var c = 0; c < a.length; ++c) { a[c].checked = d.checked } } function invertSelect(b) { var a = $tag(b, "input"); for (var c = 0; c < a.length; ++c) { a[c].checked = !a[c].checked } } function getPageFilename() { var b = location.pathname; var c = b.lastIndexOf("/") + 1; var a = b.substring(c, b.length); return a } function getRawUrl() { var b = location.href; var c = b.lastIndexOf("/") + 1; var a = b.substring(c, b.length); c = a.lastIndexOf("#"); a = a.substring(0, c); return a } function getIntactRawUrl() { var a = location.href; var b; b = a.lastIndexOf("#"); a = a.substring(0, b); return a } function toggleArg(c, f) { var b = $$.intactRawUrl(); var g = b.indexOf("?"); if (g == -1) { return b + "?" + c + "=" + f } else { var a = b.substring(g); var e = b.substring(0, g); var d = new RegExp("&?" + c + "=?\\w*\\[?\\w*\\]?\\|?\\d?", "i"); a = a.replace(d, ""); if (a.length == 1) { a += c + "=" + f } else { a += "&" + c + "=" + f } return e + a } } function increase(c, b) { if (b == null) { b = "show" } var a = $j(c); a.animate({ height: b, width: b, opacity: b }, "fast") } function fadeToggle(a, b) { if (b == null) { b = "fast" } if ($("#" + a).is(":visible")) { $("#" + a).fadeOut(b) } else { $("#" + a).fadeIn(b) } } function clearAllElms(a, b) { clearDdls(a, b); clearTextBoxes(a, b); clearRdos(a, b); clearChks(a, b) } function clearRdos(a, c) { if (c == null) { c = "tfocus" } var b = $j(a).find("input[type=radio]"); b.focus(function () { $(this).addClass(c) }); b.blur(function () { $(this).removeClass(c) }) } function clearChks(a, c) { if (c == null) { c = "tfocus" } var b = $j(a).find("input[type=checkbox]"); b.focus(function () { $(this).addClass(c) }); b.blur(function () { $(this).removeClass(c) }) } function clearDdls(a, c) { if (c == null) { c = "tfocus" } var b = $j(a).find("select"); b.focus(function () { $(this).addClass(c) }); b.blur(function () { $(this).removeClass(c) }) } function clearTextBoxes(a, c) { if (c == null) { c = "tfocus" } var b = $j(a).find("input[type=text]"); b.focus(function () { $(this).addClass(c) }); b.blur(function () { $(this).removeClass(c) }); var b = $j(a).find("input[type=password]"); b.focus(function () { $(this).addClass(c) }); b.blur(function () { $(this).removeClass(c) }); b = $j(a).find("textarea"); b.focus(function () { $(this).addClass(c) }); b.blur(function () { $(this).removeClass(c) }) }; function setSelectByValue(a, d) { var e = $g(a); for (var c = 0; c < e.options.length; ++c) { var b = e.options[c]; b.selected = (b.value == d) } } function showVerifyCode(a, c, b, f) { if (a == null) { a = "spVerCode" } if (c == null) { c = "spVerCodeMsg" } if (b == null) { b = "imgVerCode" } if (f == null) { f = "spChgVerCode" } var h = $j(a); var e = $j(c); var d = $j(f); if (h.html() == "") { e.html("正在加载验证码..."); e.show(); h.html("<img src='/Tools/ValidCode.aspx' style='display:none;' id='" + b + "' alt='验证码' />") } var g = $j(b); g.load(function () { e.hide(); g.show(); d.show() }) } function changeVerCode(a, b) { if (a == null) { a = "imgVerCode" } if (b == null) { b = "spVerCodeMsg" } var d = $j(a); var c = $j(b); c.html("正在刷新验证码...").show(); d.attr({ src: "/Tools/ValidCode.aspx?x=" + Math.random(), alt: "验证码" }); d.hide(); d.load(function () { c.hide(); d.show() }) } function showProc(c, a) { var b = $j("imgProc"); if (a == null) { a = true } if (a) { $(c).hide(); if (b.length > 0) { b.remove() } $("<img src='" + SKIN_PATH + "img/processing.gif' id='imgProc' alt='正在处理' />").insertAfter(c) } else { $(c).show(); b.remove() } } function enlarge(c, b) { if (c == null) { c = true } if (b == null) { b = "Content" } var e = $j(b); var d = parseInt(e.css("font-size")); var a = (c ? d * 1.2 : d / 1.2); e.css("font-size", a + "px") } function altRow(c, g, f, h) { var e = $tag(g, "tr"); for (var d = c; d < e.length; ++d) { var b; if (d % 2 == 0) { b = h } else { b = f } if (typeof (b) == "object") { for (var a in b) { e[d].style[a] = b[a] } } else { e[d].className = b } } } function getCheckedVal(c, d) { if (d == null) { d = -1 } var b = $j(c).find("input:checked"); var e = ""; var a = false; b.each(function (f) { if (f > d) { if (a) { e += "," } e += $(this).val(); a = true } }); return e } function checkAll(c, b) { var a = $j(b).find("input[type=checkbox]"); a.each(function (d) { this.checked = c.checked }) } function GetSearchURL(e, b) { if (b == null) { b = getIntactRawUrl() } var h = e.split("|"); for (var f = 0; f < h.length; f++) { var c = h[f].split(","); var a; var g = document.getElementById(c[0]); if (c.length == 2) { a = c[1] } else { a = c[0] } if (g != null) { var d = g.value; if (d != null) { b += "&" + a + "=" + encodeURIComponent(d) } } } return b } function SearchObjectByGet(c, b, a) { if (a == null) { a = false } var d = GetSearchURL(c, b); if (a) { return d } window.location.href = d } function SearchObjects(c, b) { if (c == "请填写关键词" || c == "请输入关键词") { $a("您还没有输入关键词，请填写后查询。"); return } if (b == "product") { var a = "/Search/Index.aspx?objtype=product&kwd=" + escape(c); window.location.href = a } else { var a = "/Search/News.aspx?objtype=news&kwd=" + escape(c); window.location.href = a } } function GoToURL(c, b) { var a; a = SetURLField(a, c, b); location.href = a } function GoToURLByGet(c, b) { var a; a = location.href; a = SetURLField(a, "page", "1"); a = SetURLField(a, c, b) } function SetURLField(a, f, c) { var b; b = a.indexOf("?"); if (b == -1) { a += "?" + f + "=" + c } else { var d = f + "="; var e = a.indexOf(d); if (e != -1) { e += d.length; end = a.indexOf("&", e); if (end == -1) { a = a.substring(0, e) + c } else { a = a.substring(0, e) + c + a.substring(end) } } else { a = a + "&" + f + "=" + c } } return a } function readURLParameter(e) { var c = e + "="; var b = ""; var a = location.href; var d = a.indexOf(c); if (d != -1) { d += c.length; end = a.indexOf("&", d); if (end == -1) { b = a.substring(d) } else { b = a.substring(d, end) } } return b } function focusToRemoveText(c) { var a = $(c); var b = (a.attr("hadfocused") == "1"); if (!b) { a.val(""); a.attr("hadfocused", "1") } } function SUR_ShowTable(f) { var e = ""; var c; switch (f.SelectionMode) { case 1: c = "radio"; break; case 2: c = "checkbox"; break } switch (f.ShowMode) { case 1: e = '<div class="survey_1" style="width:' + f.Width + 'px;"><div class="sur_tit" style="width:' + (f.Width - 2) + 'px;">' + f.Title + '</div><table class="sur_tab" id="SUR_itemTab_' + f.SubjectId + '">'; for (var b = 0; b < f.Items.length; ++b) { var d = f.Items[b]; var a = "SUR_item_" + f.SubjectId + b; e += '<tr><td><input name="SUR_item' + f.SubjectId + '" type="' + c + '" value="' + d.id + '" id="' + a + '" /></td><td><label for="' + a + '">' + d.title + "</label></td></tr>" } e += '</table><div class="bot_btn2"><input type="button" value="提交" class="b15" onclick="SUR_senddata(this,' + f.ObjectName + ')" /><input type="button" onclick="window.open(\'/tools/survey.aspx?oid=' + f.SubjectId + '\')" value="查看" class="b16" /></div></div>'; break } document.write(e) } function SUR_senddata(f, a) { var c = "SUR_post_msg_" + a.SubjectId; var d = "<span id='" + c + "'>正在提交,请稍后...</span>"; var b = "/ajax.ashx?action=Survey&t=" + Math.random(); var e = getCheckedVal("SUR_itemTab_" + a.SubjectId); if (e == null || e.length == 0) { $a("您至少需要选中一个投票项。"); return } $(f).after(d).hide(); $.post(b, { _SUR_SubjectID: a.SubjectId, _CheckedItems: e }, function (h) { var i = gav(h, "state"); var g = gav(h, "msg"); if (i == "1") { $confirm("投票成功，感谢您的参与。", { title: "确定", toDo: function () { hideConfirm() } }, { title: "查看结果", toDo: function () { window.open("/tools/survey.aspx?oid=" + a.SubjectId); hideConfirm() } }) } else { $a(g) } $j(c).remove(); $(f).show() }) } function LEW_ShowTable() { var a = '<div class="reports" id="LEAVEWORD_cntr" style="margin:0 auto 10px auto;"><h1>留言</h1><table id="LEAVEWORD_tab"><tr><th>* 标题：</th><td><input type="text" size="40" id="LEAVEWORD_txtTitle" /></td></tr><tr><th>* 联系人：</th><td><input type="text" size="10" id="LEAVEWORD_txtContact" /></td></tr><tr><th>联系电话：</th><td><input type="text" size="30" id="LEAVEWORD_txtTel" /></td></tr><tr><th>手机号码：</th><td><input type="text" size="30" id="LEAVEWORD_txtMobile" /></td></tr><tr><th>* 电子邮箱地址：</th><td><input type="text" size="30" id="LEAVEWORD_txtEmail" /></td></tr><tr><th>* 留言分类：</th><td id="LEAVEWORD_tdCats"></td></tr><tr><th>留言内容：</th><td><textarea style="width:230px;height:80px;" id="LEAVEWORD_txtShortDesc"></textarea></td></tr><tr><th>&nbsp;</th><td><input type="button"  value="提交" class="b15" onclick="sendLeaveword(this)" /> </td></tr></table></div>'; document.write(a); fillLeavewordCategories() } function PAY_ShowTable() { var a = '<div class="reports" id="DIR_PAY_cntr" style="margin:0 auto 10px auto;"><h1>付款</h1><table id="DIR_PAY_tab" style="background:url(' + SKIN_PATH + 'img/Pay_ico.gif) no-repeat right top;width:400px;"><tr><tr><th>* 付款方式：</th><td><select id="DIR_PAY_ddlPayment"><option value="">请选择</option><option value="alipay">支付宝</option><option value="99bill">快钱</option></select></td></tr><th>* 付款人：</th><td><input type="text" size="20" id="DIR_PAY_txtPayer" /></td></tr><tr><th>* 电子邮箱地址：</th><td><input type="text" size="20" id="DIR_PAY_txtEmail" /></td></tr><tr><th>联系电话：</th><td><input type="text" size="20" id="DIR_PAY_txtTel" /></td></tr><tr><th>手机号码：</th><td><input type="text" size="20" id="DIR_PAY_txtMobile" /></td></tr><tr><th>我公司业务员姓名：</th><td><input type="text" size="20" id="DIR_PAY_txtSalesManName" /></td></tr><tr><th>* 付款金额：</th><td><input type="text" size="10" id="DIR_PAY_txtMoney" /></td></tr><tr><th>* 款项用途：</th><td><input type="text" size="40" id="DIR_PAY_txtUse" /></td></tr><tr><th>&nbsp;</th><td><input type="button"  value="提交" class="b15" onclick="directPay(this)" /> </td></tr></table></div>'; document.write(a) } function LoginCheck(a, c) { var b = window.location; if (a == undefined || a.length == 0) { $a("请输入用户名", "错误提示", "txtUsername"); return } if (c == undefined || c.length == 0) { $a("请输入密码", "错误提示", "txtPassword"); return } $.post("/ajax.ashx?action=logincheck&t=" + Math.random(), { username: a, password: c }, function (d) { if (gav(d, "state") == "1") { $a(gav(d, "msg")); window.location.href = b } else { $a(gav(d, "msg")) } }) } function xuanze() { var a = document.getElementById("seachkeywords").value; if (a == "请输入关键词搜索") { a = "" } window.location.href = "/Search/Index.aspx?objtype=product&kwd=" + a } $(function () { $("#seachkeywords").val("请输入关键词搜索").css({ color: "#666" }); $("#seachkeywords").click(function () { $(this).val("").css({ color: "#000" }) }).blur(function () { if ($.trim($(this).val()) == "") { $(this).val("请输入关键词搜索").css({ color: "#666" }) } }) }); function ChangeFontSize(b, a) { $(b).addClass("cur").siblings("a").removeClass("cur"); $j("cntrBody").css("font-size", a).find("*").css("font-size", a) } function getUrlParms() { var b = new Object(); var f = location.search.substring(1); var e = f.split("&"); for (var c = 0; c < e.length; c++) { var g = e[c].indexOf("="); if (g == -1) { continue } var a = e[c].substring(0, g); var d = e[c].substring(g + 1); b[a] = unescape(d) } return b } function SetHome(c, d) { try { c.style.behavior = "url(#default#homepage)"; c.setHomePage(d) } catch (b) { if (window.netscape) { try { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect") } catch (b) { alert("抱歉！您的浏览器不支持直接设为首页。请在浏览器地址栏输入“about:config”并回车然后将[signed.applets.codebase_principal_support]设置为“true”，点击“加入收藏”后忽略安全提示，即可设置成功。") } var a = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch); a.setCharPref("browser.startup.homepage", d) } else { alert("抱歉，您的浏览器不支持自动设置首页, 请使用浏览器菜单手动设置!") } } }; function addBookmark(_this) { try { var _title = document.title; var url = document.URL; if (window.sidebar) { var ua = navigator.userAgent.toLowerCase(); if (ua.indexOf("firefox") > -1 && ua.match(/firefox\/([\d.]+)/)[1] == "23.0") { _this.setAttribute("title", _title) } else { window.sidebar.addPanel(_title, url, "") } } else if (window.opera && window.print) { var __mbm = document.createElement("a"); __mbm.setAttribute("rel", "sidebar"); __mbm.setAttribute("href", url); __mbm.setAttribute("title", _title); __mbm.click() } else if (document.all) { window.external.AddFavorite(url, _title); return } else { alert("浏览器不支持该操作，尝试快捷键 Ctrl + D !") } } catch (e) { alert("浏览器不支持该操作，尝试快捷键 Ctrl + D !") } }
/*ajax.js*/
function productLoad(){hits(OBJ_ID,"product");writeComment(OBJ_ID,MARK);addHistory(OBJ_ID,MARK);initImages(OBJ_ID);getHistory("product");getRecommentProductByHistory(OBJ_ID);getRelevantViewed(OBJ_ID);}function projectLoad(){hits(OBJ_ID,"project");writeComment(OBJ_ID,MARK);addHistory(OBJ_ID,MARK);getHistory("project");getRecommentProjectByHistory(OBJ_ID);}function checkSize(){$(document).ready(function(){$(".pro_kuang").find("li").click(function(){$(this).parent().find("a").removeClass();$(this).find("a").addClass("img")})})}function checkWishSize(g){$(g).parent().find("a").removeClass();$(g).addClass("clicked");if($("#txtAttr").html()==""){$("#txtAttr").append($(g).attr("title"))}else{var a=new Array();a=$("#txtAttr").html().split(",");for(var e=0;e<a.length;e++){var b=a[e].split(":")[0];var d=$(g).attr("title").split(":")[0];var c=$(g).attr("title").split(":")[1];var f=b+":"+c;if(b==d){$("#txtAttr").html($("#txtAttr").html().replace(a[e],f));return}}$("#txtAttr").append(","+$(g).attr("title"))}}function getAttrValesPhotos(a){$.post("/ajax.ashx?action=attrValuesPhotos&t="+Math.random(),{oid:a},function(b){$j("img_list").html(b)})}function switchProdTab(d){var b=$(d);var a=b.attr("target_id");var c=b.parent().find("a[class=cr]");if(c.attr("target_id")==a){return}c.removeClass("cr");b.addClass("cr");$j("cntrRelevantProd>div").hide();$j(a).show()}function gav(d,a){var c=$(d);var b=$(c.find("node[key="+a+"]")).text();return b}function initImages(c){var a='<li {$co$}><a href="{$path$}" target="_blank" title="{$title$}"><img title="{$title$}" alt="{$title$}" longdesc="{$path$}" src="{$path$}"  width="60" height="60"></a></li>';var d="";for(var b=0;b<ARR_IMG_PATH.length;++b){if(b==0){d=a.replace(/\{\$co\$\}/ig,"class='now'").replace(/\{\$path\$\}/ig,ARR_IMG_PATH[b]).replace(/\{\$title\$\}/ig,OBJ_TITLE)}else{d+=a.replace(/\{\$co\$\}/ig,"").replace(/\{\$path\$\}/ig,ARR_IMG_PATH[b]).replace(/\{\$title\$\}/ig,OBJ_TITLE)}}$("#img_list").html(d)}function setSelectedImg(a){$(a).parent().find("a").removeClass("cur");$(a).addClass("cur")}function viewBigImage(b){var c=window.location.host;var a="/product/gallery.aspx?oid="+b;if(c!="undefined"){a+="&selectedpath=http://"+c}window.open(a)}function switchImage(d){var a=$(".MagicZoom");var b=a.find("img:eq(0)");var c=$(".MagicZoomBigImageCont img");var e=$(d).find("img").attr("srcimg");a.attr("href",e);b.attr("src",e);c.attr("src",e);$j("btnShowOrgiImg").click(function(){window.open(e,"orgiImg")})}function productSelectCurrentPosition(a){$("div.nr h4[sid='"+a+"']").addClass("cur");$("div.nr h5[sid='"+a+"']").addClass("cur");$("div.nr li[sid='"+a+"']").addClass("cur")}function onclPrReAtts(b,f,a){var g=false;$("#"+b).html(f);if(atts==null||atts==""){atts=a+","+f}else{var d=new Array();d=atts.split("$");if(d.length<=0){atts=atts+"$"+a+","+f}else{atts="";for(var e=0;e<d.length;e++){var h="";var c=d[e].split(",");if(c.length==2){h=c[1];if(c[0]==a){h=f;g=true}if(atts==null||atts==""){atts=c[0]+","+h}else{atts=atts+"$"+c[0]+","+h}}}if(g==false){if(atts==null||atts==""){atts=a+","+f}else{atts=atts+"$"+a+","+f}}}}}function switchAttrTab(c){var a=$(c);if(a.attr("class")=="cur"){return}var b=a.attr("item_name");$j("div__detail").hide();$j("div__attr").hide();$j("div__"+b).show();$(".prod_tab").find("a").removeClass("cur");a.addClass("cur")}function switchExtendAttrTab(f,g){var d=f;var a=f.substring(f.length-1,f.length);for(var b=0;b<g;b++){var c="detailvalue"+b;var e="detail"+b;if(a==b){$j(c).show();$j(e).addClass("cur")}else{$j(c).hide();$j(e).removeClass()}}}function switchExtendContentTab(g,h,a){var e=g;var b=g.substring(g.length-1,g.length);for(var c=0;c<h;c++){var d="contentvalue"+a+c;var f="content"+a+c;if(b==c){$j(d).show();$j(f).addClass("cur")}else{$j(d).hide();$j(f).removeClass()}}}function removeProductInfoTags(){if(!$.trim($("div.pd_attr").text())){$("div.pd_attr").remove()}if(!$.trim($("div.pd_short").text())){$("div.pd_short").remove()}}function initCommonHeader(){$.get("/ajax.ashx?action=initcommonheader&t="+Math.random(),function(b){var a=gav(b,"showIM");showIM(a);var c=gav(b,"username");if(c.length>0){$("#guest").hide();$("#user").show();$j("commonHeaderGuest").hide();$j("commonHeaderUsername").html(c);$j("commonHeaderUser").fadeIn(80)}})}function showIM(a){if($("#bodd").html()!=""){if(a=="True"){$("#bodd").show();$("#kefubtn").hide();$("#divOranIm").show()}else{$("#bodd").hide();$("#kefubtn").show();$("#divOranIm").hide()}}}function initCommonHeaderKeywords(a){if(a==""){a="6"}$.post("/ajax.ashx?action=initcommonheaderkeywords&t="+Math.random(),{s:a},function(b){$j("commonHeaderkeywords").html(b)})}function hits(a,b){$.post("/ajax.ashx?action=hits&t="+Math.random(),{oid:a,mark:b})}function addHistory(a,b){$.get("/ajax.ashx?action=addhistory&t="+Math.random(),{oid:a,mark:b})}function getHistory(a){$.post("/ajax.ashx?action=gethistory&t="+Math.random(),{mark:a},function(b){if(b.length==0){b="<li>&nbsp;&nbsp;无浏览历史</li>"}$j("divHistoryCntr").html(b+"<div class='clear'></div>")})}function getHits(a,b){$.post("/ajax.ashx?action=gethits",{mark:b,oid:a},function(c){$j("cntrHits").html(c)})}function cleanHistory(b,a){$.post("/ajax.ashx?action=cleanhistory",{mark:b},function(c){$j("divHistoryCntr").html("<li>&nbsp;&nbsp;无浏览历史</li>")})}function subscription(d,a){if(a==null){a="txtSubscriptionEmail"}var c=$.trim($j(a).val());var b=/\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;if(c.length==0){$a("E-Mail 不可为空");$j(a).focus();return false}if(!b.test(c)){$a("E-Mail 格式错误。");$j(a).focus();return false}showProc(d);$.post("/ajax.ashx?action=subscription&t="+Math.random(),{email:c},function(g){var f=gav(g,"state");var e=gav(g,"msg");if(f=="1"){$a(e,1)}else{$a(e)}showProc(d,false)})}function checkAuthority(b,a){$.post("/ajax.ashx?action=checkauthority&t="+Math.random(),{authIDs:b},function(c){if(c=="1"){$j("div___________Perm").hide();document.oncontextmenu=function(){return true};document.onselectstart=function(){return true}}else{showMsgPage("您不具有查看 "+a+" 的权限。");return}})}function changeFavColumn(c,a){var b=getCheckedVal(a);if(b.length==0){$a("无选中项。");return}showProc(c);$.post("/ajax.ashx?action=changefavcolumn&t="+Math.random(),{ids:b,targetId:c.value},function(f){var e=gav(f,"state");var d=gav(f,"msg");if(e=="1"){location.reload()}else{}});showProc(c,false)}function getRecommentProductByHistory(a){$.post("/ajax.ashx?action=GetRecommentProductByHistory&t="+Math.random(),{oid:a},function(c){var b=$j("divHistoryRecommentCntr");if(c.length==0){b.remove()}else{b.html(c)}})}function getRecommentProjectByHistory(a){$.post("/ajax.ashx?action=GetRecommentProjectByHistory&t="+Math.random(),{oid:a},function(c){var b=$j("divHistoryRecommentCntr");if(c.length==0){b.remove()}else{b.html(c)}})}function getRelevantSales(a){$.post("/ajax.ashx?action=GetRelevantSales&t="+Math.random(),{oid:a},function(c){var b=$j("divRelevantSalesCntr");if(c.length==0){b.remove()}else{b.html(c)}})}function getRelevantViewed(a){$.post("/ajax.ashx?action=GetRelevantViewed&t="+Math.random(),{oid:a},function(c){var b=$j("divRelevantViewedCntr");if(c.length==0){b.remove()}else{b.html(c)}})}function getRelevantViewedProject(a){$.post("/ajax.ashx?action=GetRelevantViewedProject&t="+Math.random(),{oid:a},function(c){var b=$j("divRelevantViewedCntr");if(c.length==0){b.remove()}else{b.html(c)}})}function getRelevantViewedDownload(a){$.post("/ajax.ashx?action=GetRelevantViewedDownload&t="+Math.random(),{oid:a},function(c){var b=$j("divRelevantViewedCntr");if(c.length==0){b.remove()}else{b.html(c)}})}function delInitationlog(c,a){var b=getCheckedVal(a);if(b.length==0){$a("无选中项。");return}showBgProc();$.post("/ajax.ashx?action=DelInitationlog&t="+Math.random(),{ids:b},function(e){if(gav(e,"state")=="1"){var d=$j(a).find("input[name=item]:checked");d.each(function(f){$(this).parent().parent().remove()})}else{$a(gav(e,"msg"))}showBgProc(false)})}function directPay(a){var f=$v("DIR_PAY_txtPayer");var k=$v("DIR_PAY_txtEmail");var h=$v("DIR_PAY_txtTel");var j=$v("DIR_PAY_txtMobile");var e=$v("DIR_PAY_txtSalesManName");var d=$v("DIR_PAY_txtMoney");var b=$v("DIR_PAY_txtUse");var c=$v("DIR_PAY_ddlPayment");var g="";if(f.length==0){g+="<li>付款人不可为空。</li>"}if(k==""){g+="<li>电子邮箱地址不可为空</li>"}else{if(!PTN_EMAIL.test(k)){g+="<li>电子邮箱地址格式错误</li>"}}if(d.length==0){g+="<li>付款金额不可为空。</li>"}else{if(!PTN_FLOAT.test(d)){g+="<li>付款金额必须为数字，如89.00。</li>"}}if(b.length==0){g+="<li>款项用途不可为空。</li>"}if(c.length==0){g+="<li>请选择付款方式。</li>"}if(g.length>0){$a(g);return}showProc(a);$.post("/ajax.ashx?action=DirectPay&t="+Math.random(),{payer:f,email:k,tel:h,mobile:j,salesMan:e,_money:d,_use:b,payment:c},function(n){var m=gav(n,"state");var l=gav(n,"msg");if(m=="1"){location.href="/Paycenter/PayDirectConfirm.aspx";return}else{$a(l)}showProc(a,false)})}function submitOrder(a,e){showProc(a);var d=$j("txtContact").val();var j=$j("txtCompName").val();var k=$j("txtTel").val();var h=$j("txtMobile").val();var m=$j("txtEmail").val();var c=$j("txtAddr").val();var g=$j("txtContent").val();var n=$j("txtValidate").val();var f="";if(d.length==0){f+="<p>联系人不可为空</p>"}if(h.length==0){f+="<p>手机不可为空</p>"}var l=/^\d{11,13}$/;if(h.length>0&&!l.test(h)){f+="<p>手机格式错误</p>"}var b=/\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;if(m.length>0&&!b.test(m)){f+="<p>E-Mail格式错误</p>"}if(g.length==0){f+="<p>采购意向描述不可为空</p>"}if(n.length==0){f+="<p>验证码不可为空</p>"}if(f.length>0){$a(f);showProc(a,false);return}$.post("/ajax.ashx?action=submitorder&t="+Math.random(),{oid:e,contact:d,compName:j,tel:k,mobile:h,email:m,addr:c,content:g,vali:n},function(q){var p=gav(q,"state");var o=gav(q,"msg");if(p=="1"){$a(o,1);emptyText("tbForm1");document.getElementById("imgvalidate").src="/Tools/ValidCodes.aspx?"+new Date().getTime()}else{$a(o);if($.trim(o).indexOf("验证码错误")!=-1){document.getElementById("imgvalidate").src="/Tools/ValidCodes.aspx?"+new Date().getTime()}else{emptyText("tbForm1")}}});showProc(a,false)}function showProductInfo(h,c,g){var f=null;var e=null;var a=null;var d=null;$(h).hover(function(){f=new Date();b()},function(){window.clearInterval(a)});function b(){a=window.setInterval(function(){e=new Date();d=e-f;if(d>400){if($(h).parent().parent().next().attr("class")=="mesbook4"||$(h).parent().parent().next().attr("class")=="mesbook40"){if($(h).parent().parent().next().is(":visible")){return}else{$(h).parent().parent().next().show()}}else{$.post("/ajax.ashx?action=showProductInfo&t="+Math.random(),{oid:c,index:g},function(j){if($(h).parent().parent().next().attr("class")=="mesbook4"||$(h).parent().parent().next().attr("class")=="mesbook40"){return}else{$(h).parent().parent().after(j);return}})}}},450)}}function showProductInfos(g,c){var f=null;var e=null;var a=null;var d=null;$(g).hover(function(){f=new Date();b()},function(){window.clearInterval(a)});function b(){a=window.setInterval(function(){e=new Date();d=e-f;if(d>400){if($(g).parent().parent().next().attr("class")=="mesbook44"){if($(g).parent().parent().next().is(":visible")){return}else{$(g).parent().parent().next().show()}}else{$.post("/ajax.ashx?action=showProductInfos&t="+Math.random(),{oid:c},function(h){if($(g).parent().parent().next().attr("class")=="mesbook44"){return}else{$(g).parent().parent().after(h);return}})}}},450)}}function hideProductInfo(a){if($(a).parent().parent().next().attr("class")=="mesbook4"||$(a).parent().parent().next().attr("class")=="mesbook40"||$(a).parent().parent().next().attr("class")=="mesbook44"){$(a).parent().parent().next().mouseover(function(){$(a).parent().parent().next().show();return});$(a).parent().parent().next().mouseout(function(){$(a).parent().parent().next().hide();return});$(a).parent().parent().next().hide()}}function showProductTips(b){var a=$j("div_nsw_tips");if(a.length==0){var c="<div class='mesbook5' id='div_nsw_tips'><h1><a href='javascript:void(0)' onclick=\"$(this).parent().parent().fadeOut(80);hideFullBg('div_nsw_tips_bg')\"><img src='"+SKIN_PATH+"img/ico9_close.gif' /></a>产品预定</h1><h4>告诉我该产品的好消息</h4><div class='con'>您需要等待该产品的上架吗？一旦该产品的价格降价之后，我们会第一时间把该商品的价格清单发送到您的电子邮件。</div> <h5>如果打折则发送电子邮件给我</h5><div class='inp'><input id='rdoTip1' type='radio' name='rdoTips' value='0' checked='true' /><label for='rdoTip1'>仅仅当前该产品</label></div><div class='inp'><input id='rdoTip2' type='radio' name='rdoTips' value='1' /><label for='rdoTip2'>当前产品所属分类</label></div><div class='inp'><input  id='rdoTip3' type='radio' name='rdoTips' value='2' /><label for='rdoTip3'>所有打折清单</label></div><div class='inp'><span>Email:</span><input type='text' id='txtEmail' name='txtEmail'  class='text' /><input id='txtHide' name='txtHide' type='hidden' value='"+b+"' /></div><div class='inp'><span>简述:</span><textarea id='txtContent' name='txtContent'class='textarea'></textarea></div><div class='mes_btn'><input type='button' class='b61' value='提  交' onclick=\"submitProductTips('txtHide','txtEmail','txtContent','rdoTips')\" /><input type='button' class='b62' value='取  消' onclick=\"$(this).parent().parent().fadeOut(80);hideFullBg('div_nsw_tips_bg')\" /></div></div>";$(document.body).append(c)}setCM("div_nsw_tips");showFullBg("div_nsw_tips_bg");relocation("div_nsw_tips")}function submitProductTips(e,f,c,d){var e=$j("txtHide").val();var f=$j("txtEmail").val();var c=$j("txtContent").val();var a=$("input[name=rdoTips]:checked").val();if(c.length>500){$a("简述太长，不能超过500个字节，请填写简短描述")}var b=/\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;if(f.length==0){$a("E-Mail 不可为空");return false}if(!b.test(f)){$a("E-Mail 格式错误");return false}$.post("/ajax.ashx?action=postProductTips&t="+Math.random(),{oid:e,email:f,content:c,state:a},function(g){if(gav(g,"state")=="1"){$a(gav(g,"msg"),1)}else{$a(gav(g,"msg"))}});$j("div_nsw_tips").hide();hideFullBg("div_nsw_tips_bg")}function showMyWish(b){var a=$j("div_nsw_wishs");if(a.length==0){var c='<div class="mesbook6" id="div_nsw_wishs"></div>';$(document.body).append(c)}$.post("/ajax.ashx?action=showMyWish&t="+Math.random(),{oid:b},function(d){$j("div_nsw_wishs").html(d)});setCM("div_nsw_wishs");showFullBg("div_nsw_wishs_bg");relocation("div_nsw_wishs")}function submitProductWishs(b,c,a){var b=$j("txtHide").val();var c=$j("txtAttr").html();var a=$j("txtNum").val();$.post("/ajax.ashx?action=postProductWishs&t="+Math.random(),{oid:b,attr:c,num:a},function(d){if(gav(d,"state")=="1"){$a(gav(d,"msg"),1)}else{$a(gav(d,"msg"))}});$j("div_nsw_wishs").hide();hideFullBg("div_nsw_wishs_bg")}function sendGetProductsNotify(c){var b=$j("ddlProductsColumns").val();var a=$j("txtSearch").val();if(a=="关键词"){a=""}$.post("/ajax.ashx?action=sendGetProductsByColumn&t="+Math.random(),{columnID:b,searchText:a},function(d){InitDropdownlist(document.getElementById("PackageSelectList"),"请选择关联资讯","0",d)})}function InitDropdownlist(e,d,c,f){var a=e.options.length;for(i=0;i<a;i++){e.remove(0)}var b=f.split("||");a=b.length;if(a){for(i=0;i<a-1;i++){text_value=b[i].split("$$");text=text_value[1];value=text_value[0];e.add(new Option(text,value))}}}function userorder(a){var b=$tv("txtname");var e=$tv("txttitle");var c=$tv("txtemail");var j=$tv("txttel");var f=$tv("txtcontent");var h=$tv("txtaddress");var k=$tv("txtenddate");var g=$("#PackagePickList").val();if(e==""){$a("定单名称不能为空","txttitle");return}if(b==""){$a("下单人姓名不能为空","txtname");return}if(j==""){$a("联系电话不能为空","txttel");return}if(h==""){$a("联系地址不能为空","txtaddress");return}if(k==""){$a("到货时间不能为空","txtenddate");return}if(f==""||f.length>1000){$a("详细描述不能为空或者大于1000字","txtcontent");return}else{var l=$.trim($(a).val());var d=/\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;if(!d.test(c)){$a("E-Mail错误");return false}}$.post("/ajax.ashx?action=agentorder&t="+Math.random(),{s_name:b,s_title:e,s_email:c,s_tel:j,s_content:f,s_address:h,s_enddate:k,s_IDList:g},function(o){var n=gav(o,"state");var m=gav(o,"msg");if(n=="1"){showMsgPage("<li>定单提交成功，我们会尽快与您联系，谢谢！</li>",1,"/User/UserOrder.aspx","在线定单","/User/UserOrder.aspx");return}else{if(m.length>0){$a(m)}else{$a(o)}}})}function delAgentOrder(c,a){var b=getCheckedVal(a);if(b.length==0){$a("无选中项。");return}showBgProc();$.post("/ajax.ashx?action=delAgentOrder&t="+Math.random(),{ids:b},function(e){if(gav(e,"state")=="1"){var d=$j(a).find("input[name=item]:checked");d.each(function(f){$(this).parent().parent().remove()});$a(gav(e,"msg"),1)}else{$a(gav(e,"msg"))}showBgProc(false)})}function AddCompare(b){var c=false;if(b.checked){c=true;$(b).next().next().next().show()}else{c=false;$(b).next().next().next().hide()}var a=$(b).val();$.post("/ajax.ashx?action=addCompare&t="+Math.random(),{ids:a,flag:c},function(g){if(gav(g,"state")=="1"){var f=gav(g,"newcookie");var d=new Array();d=f.split(",");if(d.length>0){for(var e=0;e<d.length;e++){if(e==d.length-1){$(".pro_main").find("input[id="+d[e]+"]").show()}else{$(".pro_main").find("input[id="+d[e]+"]").hide()}}}}})}function DelOneCompare(b){var a=$(b).attr("id");$.post("/ajax.ashx?action=delOneCompare&t="+Math.random(),{ids:a},function(c){if(gav(c,"state")=="1"){window.location="/product/Compare.aspx"}else{showMsgPage("<li>产品对比车中不存在对比的产品记录，请选择需要对比的产品</li>",0,"/","首页","/")}})}function DelAllCompare(){$.post("/ajax.ashx?action=delAllCompare&t="+Math.random(),{},function(a){showMsgPage("<li>产品对比车中所有产品已移除，您可以继续挑选产品进行比较</li>",1,"/","首页","/")})}function getSubSiteInfos(){$.post("/ajax.ashx?action=subsiteinfos&t="+Math.random(),{domain:document.domain},function(c){var a=gav(c,"phone");var b=gav(c,"address");$("#phones").html(a)})}function getSubSiteInfo(){$.post("/ajax.ashx?action=subsiteinfo&t="+Math.random(),{domain:document.domain},function(a){if(a){$("#site ul").html(a)}else{$("#site").remove()}})}function postComment(e,c,d){showProc(e);var a=$tv("txtCmtContent");var b=$tv("txtCmtVerCode");if(a==""){$a("内容必填。");showProc(e,false);return}if($g("txtVerCode")!=null&&s_verCode==""){$a("验证码不可空。");showProc(e,false);return}$.post("/ajax.ashx?action=postcomment&t="+Math.random(),{content:a,oid:c,verCode:b,mark:d},function(h){var k=gav(h,"state");var j=gav(h,"msg");if(k==""){$a(h,-1)}else{if(k=="2"){$a(j,1);emptyText("tbCmt")}else{if(k=="1"){var o=gav(h,"time");var g=gav(h,"username");var p=gav(h,"ip");var m=gav(h,"comment");var f=gav(h,"feedback");var l=gav(h,"num");var n="<dl><dd>{$username$}<span class='ip'>IP：{$ip$}</span>时间：{$time$}</dd><dd class='c666 con mt8 mb10'>{$content$}</dd><dd class='huifu'><h5>管理员回复：</h5><div>{$feedback$}</div></dd></dl>";var q=n.replace("{$username$}",g).replace("{$ip$}",p).replace("{$time$}",o).replace("{$feedback$}",f).replace("{$content$}",m);var r=$j("divComments").html();if(r=="暂无评论"){r=""}$j("divComments").html(q+r);$j("spCommentCount").html(l);$a(j,1);emptyText("tbCmt")}else{$a(j)}}}showProc(e,false)})}function writeComment(a,b){$.post("/ajax.ashx?action=getcomment&t="+Math.random(),{oid:a,mark:b},function(e){var h=$(e).find("count").text();$j("spCommentCount").html(h);var n=$(e).find("comment");var m="";var k="<dl><dd>{$username$}<span class='ip'>IP：{$ip$}</span>时间：{$time$}</dd><dd class='c666 con mt8 mb10'>{$content$}</dd><dd class='huifu'><h5>管理员回复：</h5><div>{$feedback$}</div></dd></dl>";for(var f=0;f<n.length;++f){var o=$(n[f]);var d=o.find("username").text();var g=o.find("content").text();var l=o.find("ip").text();var j=o.find("inputTime").text();var c=o.find("feedback").text();m+=k.replace("{$username$}",d).replace("{$ip$}",l).replace("{$time$}",j).replace("{$content$}",g).replace("{$feedback$}",c)}if(m.length>0){$j("divComments").html(m)}else{$j("divComments").html("暂无评论")}})}function getAd(b,a){$.post("/ajax.ashx?action=getadd",{keyname:b},function(c){$j(a).html(c)})};
/*jqzoom.pack.1.0.1.js*/
(function ($) { $.fn.jqzoom = function (options) { var settings = { zoomType: "standard", zoomWidth: 200, zoomHeight: 200, xOffset: 10, yOffset: 0, position: "right", lens: true, lensReset: false, imageOpacity: 0.2, title: true, alwaysOn: false, showEffect: "show", hideEffect: "hide", fadeinSpeed: "fast", fadeoutSpeed: "slow", preloadImages: true, showPreload: false, preloadText: "Loading zoom", preloadPosition: "center" }; options = options || {}; $.extend(settings, options); return this.each(function () { var a = $(this); var aTitle = a.attr("title"); $(a).removeAttr("title"); $(a).css("outline-style", "none"); var img = $("img", this); var imageTitle = img.attr("title"); img.removeAttr("title"); var smallimage = new Smallimage(img); var smallimagedata = {}; var btop = 0; var bleft = 0; var loader = null; loader = new Loader(); var ZoomTitle = (trim(aTitle).length > 0) ? aTitle : (trim(imageTitle).length > 0) ? imageTitle : null; var ZoomTitleObj = new zoomTitle(); var largeimage = new Largeimage(a[0].href); var lens = new Lens(); var lensdata = {}; var largeimageloaded = false; var scale = {}; var stage = null; var running = false; var mousepos = {}; var firstime = 0; var preloadshow = false; var isMouseDown = false; var dragstatus = false; smallimage.loadimage(); $(this).click(function () { return false }); $(this).hover(function (e) { mousepos.x = e.pageX; mousepos.y = e.pageY; activate() }, function () { deactivate() }); if (settings.alwaysOn) { setTimeout(function () { activate() }, 150) } function activate() { if (!running) { smallimage.findborder(); running = true; imageTitle = img.attr("title"); img.removeAttr("title"); aTitle = a.attr("title"); $(a).removeAttr("title"); if (!largeimage || $.browser.safari) { largeimage = new Largeimage(a[0].href) } if (!largeimageloaded || $.browser.safari) { largeimage.loadimage() } else { if (settings.zoomType != "innerzoom") { stage = new Stage(); stage.activate() } lens = new Lens; lens.activate() } a[0].blur(); return false } } function deactivate() { if (settings.zoomType == "reverse" && !settings.alwaysOn) { img.css({ opacity: 1 }) } if (!settings.alwaysOn) { running = false; largeimageloaded = false; $(lens.node).unbind("mousemove"); lens.remove(); if ($("div.jqZoomWindow").length > 0) { stage.remove() } if ($("div.jqZoomTitle").length > 0) { ZoomTitleObj.remove() } img.attr("title", imageTitle); a.attr("title", aTitle); $().unbind(); a.unbind("mousemove"); firstime = 0; if (jQuery(".zoom_ieframe").length > 0) { jQuery(".zoom_ieframe").remove() } } else { if (settings.lensReset) { switch (settings.zoomType) { case "innerzoom": largeimage.setcenter(); break; default: lens.center(); break } } } if (settings.alwaysOn) { activate() } } function Smallimage(image) { this.node = image[0]; this.loadimage = function () { this.node.src = image[0].src }; this.findborder = function () { var bordertop = ""; bordertop = $(img).css("border-top-width"); btop = ""; var borderleft = ""; borderleft = $(img).css("border-left-width"); bleft = ""; if (bordertop) { for (i = 0; i < 3; i++) { var x = []; x = bordertop.substr(i, 1); if (isNaN(x) == false) { btop = btop + "" + bordertop.substr(i, 1) } else { break } } } if (borderleft) { for (i = 0; i < 3; i++) { if (!isNaN(borderleft.substr(i, 1))) { bleft = bleft + borderleft.substr(i, 1) } else { break } } } btop = (btop.length > 0) ? eval(btop) : 0; bleft = (bleft.length > 0) ? eval(bleft) : 0 }; this.node.onload = function () { a.css({ cursor: "crosshair", display: "block" }); if (a.css("position") != "absolute" && a.parent().css("position")) { a.css({ cursor: "crosshair", position: "relative", display: "block" }) } if (a.parent().css("position") != "absolute") { a.parent().css("position", "relative") } else { } if ($.browser.safari || $.browser.opera) { $(img).css({ position: "absolute", top: "0px", left: "0px" }) } smallimagedata.w = $(this).width(); smallimagedata.h = $(this).height(); smallimagedata.h = $(this).height(); smallimagedata.pos = $(this).offset(); smallimagedata.pos.l = $(this).offset().left; smallimagedata.pos.t = $(this).offset().top; smallimagedata.pos.r = smallimagedata.w + smallimagedata.pos.l; smallimagedata.pos.b = smallimagedata.h + smallimagedata.pos.t; a.height(smallimagedata.h); a.width(smallimagedata.w); if (settings.preloadImages) { largeimage.loadimage() } }; return this } function Lens() { this.node = document.createElement("div"); $(this.node).addClass("jqZoomPup"); this.node.onerror = function () { $(lens.node).remove(); lens = new Lens(); lens.activate() }; this.loadlens = function () { switch (settings.zoomType) { case "reverse": this.image = new Image(); this.image.onload = function () { }; this.image.src = smallimage.node.src; this.node.appendChild(this.image); $(this.node).css({ opacity: 1 }); break; case "innerzoom": this.image = new Image(); this.image.onload = function () { }; this.image.src = largeimage.node.src; this.node.appendChild(this.image); $(this.node).css({ opacity: 1 }); break; default: break } switch (settings.zoomType) { case "innerzoom": lensdata.w = smallimagedata.w; lensdata.h = smallimagedata.h; break; default: lensdata.w = (settings.zoomWidth) / scale.x; lensdata.h = (settings.zoomHeight) / scale.y; break } $(this.node).css({ width: lensdata.w + "px", height: lensdata.h + "px", position: "absolute", display: "none", borderWidth: 1 + "px" }); a.append(this.node) }; return this } Lens.prototype.activate = function () { this.loadlens(); switch (settings.zoomType) { case "reverse": img.css({ opacity: settings.imageOpacity }); (settings.alwaysOn) ? lens.center() : lens.setposition(null); a.bind("mousemove", function (e) { mousepos.x = e.pageX; mousepos.y = e.pageY; lens.setposition(e) }); break; case "innerzoom": $(this.node).css({ top: 0, left: 0 }); if (settings.title) { ZoomTitleObj.loadtitle() } largeimage.setcenter(); a.bind("mousemove", function (e) { mousepos.x = e.pageX; mousepos.y = e.pageY; largeimage.setinner(e) }); break; default: (settings.alwaysOn) ? lens.center() : lens.setposition(null); $(a).bind("mousemove", function (e) { mousepos.x = e.pageX; mousepos.y = e.pageY; lens.setposition(e) }); break } return this }; Lens.prototype.setposition = function (e) { if (e) { mousepos.x = e.pageX; mousepos.y = e.pageY } if (firstime == 0) { var lensleft = (smallimagedata.w) / 2 - (lensdata.w) / 2; var lenstop = (smallimagedata.h) / 2 - (lensdata.h) / 2; $("div.jqZoomPup").show(); if (settings.lens) { this.node.style.visibility = "visible" } else { this.node.style.visibility = "hidden"; $("div.jqZoomPup").hide() } firstime = 1 } else { var lensleft = mousepos.x - smallimagedata.pos.l - (lensdata.w) / 2; var lenstop = mousepos.y - smallimagedata.pos.t - (lensdata.h) / 2 } if (overleft()) { lensleft = 0 + bleft } else { if (overright()) { if ($.browser.msie) { lensleft = smallimagedata.w - lensdata.w + bleft + 1 } else { lensleft = smallimagedata.w - lensdata.w + bleft - 1 } } } if (overtop()) { lenstop = 0 + btop } else { if (overbottom()) { if ($.browser.msie) { lenstop = smallimagedata.h - lensdata.h + btop + 1 } else { lenstop = smallimagedata.h - lensdata.h - 1 + btop } } } lensleft = parseInt(lensleft); lenstop = parseInt(lenstop); $("div.jqZoomPup", a).css({ top: lenstop, left: lensleft }); if (settings.zoomType == "reverse") { $("div.jqZoomPup img", a).css({ position: "absolute", top: -(lenstop - btop + 1), left: -(lensleft - bleft + 1) }) } this.node.style.left = lensleft + "px"; this.node.style.top = lenstop + "px"; largeimage.setposition(); function overleft() { return mousepos.x - (lensdata.w + 2 * 1) / 2 - bleft < smallimagedata.pos.l } function overright() { return mousepos.x + (lensdata.w + 2 * 1) / 2 > smallimagedata.pos.r + bleft } function overtop() { return mousepos.y - (lensdata.h + 2 * 1) / 2 - btop < smallimagedata.pos.t } function overbottom() { return mousepos.y + (lensdata.h + 2 * 1) / 2 > smallimagedata.pos.b + btop } return this }; Lens.prototype.center = function () { $("div.jqZoomPup", a).css("display", "none"); var lensleft = (smallimagedata.w) / 2 - (lensdata.w) / 2; var lenstop = (smallimagedata.h) / 2 - (lensdata.h) / 2; this.node.style.left = lensleft + "px"; this.node.style.top = lenstop + "px"; $("div.jqZoomPup", a).css({ top: lenstop, left: lensleft }); if (settings.zoomType == "reverse") { $("div.jqZoomPup img", a).css({ position: "absolute", top: -(lenstop - btop + 1), left: -(lensleft - bleft + 1) }) } largeimage.setposition(); if ($.browser.msie) { $("div.jqZoomPup", a).show() } else { setTimeout(function () { $("div.jqZoomPup").fadeIn("fast") }, 10) } }; Lens.prototype.getoffset = function () { var o = {}; o.left = parseInt(this.node.style.left); o.top = parseInt(this.node.style.top); return o }; Lens.prototype.remove = function () { if (settings.zoomType == "innerzoom") { $("div.jqZoomPup", a).fadeOut("fast", function () { $(this).remove() }) } else { $("div.jqZoomPup", a).remove() } }; Lens.prototype.findborder = function () { var bordertop = ""; bordertop = $("div.jqZoomPup").css("borderTop"); lensbtop = ""; var borderleft = ""; borderleft = $("div.jqZoomPup").css("borderLeft"); lensbleft = ""; if ($.browser.msie) { var temp = bordertop.split(" "); bordertop = temp[1]; var temp = borderleft.split(" "); borderleft = temp[1] } if (bordertop) { for (i = 0; i < 3; i++) { var x = []; x = bordertop.substr(i, 1); if (isNaN(x) == false) { lensbtop = lensbtop + "" + bordertop.substr(i, 1) } else { break } } } if (borderleft) { for (i = 0; i < 3; i++) { if (!isNaN(borderleft.substr(i, 1))) { lensbleft = lensbleft + borderleft.substr(i, 1) } else { break } } } lensbtop = (lensbtop.length > 0) ? eval(lensbtop) : 0; lensbleft = (lensbleft.length > 0) ? eval(lensbleft) : 0 }; function Largeimage(url) { this.url = url; this.node = new Image(); this.loadimage = function () { if (!this.node) { this.node = new Image() } this.node.style.position = "absolute"; this.node.style.display = "none"; this.node.style.left = "-5000px"; this.node.style.top = "10px"; loader = new Loader(); if (settings.showPreload && !preloadshow) { loader.show(); preloadshow = true } document.body.appendChild(this.node); this.node.src = this.url }; this.node.onload = function () { this.style.display = "block"; var w = Math.round($(this).width()); var h = Math.round($(this).height()); this.style.display = "none"; scale.x = (w / smallimagedata.w); scale.y = (h / smallimagedata.h); if ($("div.preload").length > 0) { $("div.preload").remove() } largeimageloaded = true; if (settings.zoomType != "innerzoom" && running) { stage = new Stage(); stage.activate() } if (running) { lens = new Lens(); lens.activate() } if ($("div.preload").length > 0) { $("div.preload").remove() } }; return this } Largeimage.prototype.setposition = function () { this.node.style.left = Math.ceil(-scale.x * parseInt(lens.getoffset().left) + bleft) + "px"; this.node.style.top = Math.ceil(-scale.y * parseInt(lens.getoffset().top) + btop) + "px" }; Largeimage.prototype.setinner = function (e) { this.node.style.left = Math.ceil(-scale.x * Math.abs(e.pageX - smallimagedata.pos.l)) + "px"; this.node.style.top = Math.ceil(-scale.y * Math.abs(e.pageY - smallimagedata.pos.t)) + "px"; $("div.jqZoomPup img", a).css({ position: "absolute", top: this.node.style.top, left: this.node.style.left }) }; Largeimage.prototype.setcenter = function () { this.node.style.left = Math.ceil(-scale.x * Math.abs((smallimagedata.w) / 2)) + "px"; this.node.style.top = Math.ceil(-scale.y * Math.abs((smallimagedata.h) / 2)) + "px"; $("div.jqZoomPup img", a).css({ position: "absolute", top: this.node.style.top, left: this.node.style.left }) }; function Stage() { var leftpos = smallimagedata.pos.l; var toppos = smallimagedata.pos.t; this.node = document.createElement("div"); $(this.node).addClass("jqZoomWindow"); $(this.node).css({ position: "absolute", width: Math.round(settings.zoomWidth) + "px", height: Math.round(settings.zoomHeight) + "px", display: "none", zIndex: 10000, overflow: "hidden" }); switch (settings.position) { case "right": leftpos = (smallimagedata.pos.r + Math.abs(settings.xOffset) + settings.zoomWidth < screen.width) ? (smallimagedata.pos.l + smallimagedata.w + Math.abs(settings.xOffset)) : (smallimagedata.pos.l - settings.zoomWidth - Math.abs(settings.xOffset)); topwindow = smallimagedata.pos.t + settings.yOffset + settings.zoomHeight; toppos = (topwindow < screen.height && topwindow > 0) ? smallimagedata.pos.t + settings.yOffset : smallimagedata.pos.t; break; case "left": leftpos = (smallimagedata.pos.l - Math.abs(settings.xOffset) - settings.zoomWidth > 0) ? (smallimagedata.pos.l - Math.abs(settings.xOffset) - settings.zoomWidth) : (smallimagedata.pos.l + smallimagedata.w + Math.abs(settings.xOffset)); topwindow = smallimagedata.pos.t + settings.yOffset + settings.zoomHeight; toppos = (topwindow < screen.height && topwindow > 0) ? smallimagedata.pos.t + settings.yOffset : smallimagedata.pos.t; break; case "top": toppos = (smallimagedata.pos.t - Math.abs(settings.yOffset) - settings.zoomHeight > 0) ? (smallimagedata.pos.t - Math.abs(settings.yOffset) - settings.zoomHeight) : (smallimagedata.pos.t + smallimagedata.h + Math.abs(settings.yOffset)); leftwindow = smallimagedata.pos.l + settings.xOffset + settings.zoomWidth; leftpos = (leftwindow < screen.width && leftwindow > 0) ? smallimagedata.pos.l + settings.xOffset : smallimagedata.pos.l; break; case "bottom": toppos = (smallimagedata.pos.b + Math.abs(settings.yOffset) + settings.zoomHeight < $("body").height()) ? (smallimagedata.pos.b + Math.abs(settings.yOffset)) : (smallimagedata.pos.t - settings.zoomHeight - Math.abs(settings.yOffset)); leftwindow = smallimagedata.pos.l + settings.xOffset + settings.zoomWidth; leftpos = (leftwindow < screen.width && leftwindow > 0) ? smallimagedata.pos.l + settings.xOffset : smallimagedata.pos.l; break; default: leftpos = (smallimagedata.pos.l + smallimagedata.w + settings.xOffset + settings.zoomWidth < screen.width) ? (smallimagedata.pos.l + smallimagedata.w + Math.abs(settings.xOffset)) : (smallimagedata.pos.l - settings.zoomWidth - Math.abs(settings.xOffset)); toppos = (smallimagedata.pos.b + Math.abs(settings.yOffset) + settings.zoomHeight < screen.height) ? (smallimagedata.pos.b + Math.abs(settings.yOffset)) : (smallimagedata.pos.t - settings.zoomHeight - Math.abs(settings.yOffset)); break } this.node.style.left = leftpos + "px"; this.node.style.top = toppos + "px"; return this } Stage.prototype.activate = function () { if (!this.node.firstChild) { this.node.appendChild(largeimage.node) } if (settings.title) { ZoomTitleObj.loadtitle() } document.body.appendChild(this.node); switch (settings.showEffect) { case "show": $(this.node).show(); break; case "fadein": $(this.node).fadeIn(settings.fadeinSpeed); break; default: $(this.node).show(); break } $(this.node).show(); if ($.browser.msie && $.browser.version < 7) { this.ieframe = $('<iframe class="zoom_ieframe" frameborder="0" src="#"></iframe>').css({ position: "absolute", left: this.node.style.left, top: this.node.style.top, zIndex: 99, width: settings.zoomWidth, height: settings.zoomHeight }).insertBefore(this.node) } largeimage.node.style.display = "block" }; Stage.prototype.remove = function () { switch (settings.hideEffect) { case "hide": $(".jqZoomWindow").remove(); break; case "fadeout": $(".jqZoomWindow").fadeOut(settings.fadeoutSpeed); break; default: $(".jqZoomWindow").remove(); break } }; function zoomTitle() { this.node = jQuery("<div />").addClass("jqZoomTitle").html("" + ZoomTitle + ""); this.loadtitle = function () { if (settings.zoomType == "innerzoom") { $(this.node).css({ position: "absolute", top: smallimagedata.pos.b + 3, left: (smallimagedata.pos.l + 1), width: smallimagedata.w }).appendTo("body") } else { $(this.node).appendTo(stage.node) } } } zoomTitle.prototype.remove = function () { $(".jqZoomTitle").remove() }; function Loader() { this.node = document.createElement("div"); $(this.node).addClass("preload"); $(this.node).html(settings.preloadText); $(this.node).appendTo("body").css("visibility", "hidden"); this.show = function () { switch (settings.preloadPosition) { case "center": loadertop = smallimagedata.pos.t + (smallimagedata.h - $(this.node).height()) / 2; loaderleft = smallimagedata.pos.l + (smallimagedata.w - $(this.node).width()) / 2; break; default: var loaderoffset = this.getoffset(); loadertop = !isNaN(loaderoffset.top) ? smallimagedata.pos.t + loaderoffset.top : smallimagedata.pos.t + 0; loaderleft = !isNaN(loaderoffset.left) ? smallimagedata.pos.l + loaderoffset.left : smallimagedata.pos.l + 0; break } $(this.node).css({ top: loadertop, left: loaderleft, position: "absolute", visibility: "visible" }) }; return this } Loader.prototype.getoffset = function () { var o = null; o = $("div.preload").offset(); return o } }) } })(jQuery); function trim(a) { while (a.substring(0, 1) == " ") { a = a.substring(1, a.length) } while (a.substring(a.length - 1, a.length) == " ") { a = a.substring(0, a.length - 1) } return a };
//加载js，src为文件路径，fn为回调函数，doc为当前文档
var loadJs = function (src, fn, doc) { if (!src) { return false } doc = doc || document; src = src.toLowerCase(); var head = doc.getElementsByTagName("head")[0]; var file = src.lastIndexOf("/") > 0 ? src.substr(src.lastIndexOf("/")) : src; var script = $(head).find("script[src$='" + file + "']"); if (script.length) { if (fn && jQuery.isFunction(fn)) { if (script.attr("state") == "loading") { setTimeout(function () { fn() }, 300) } else { fn() } } return false } var nodeScript = doc.createElement("script"); nodeScript.type = "text/javascript"; nodeScript.src = src; nodeScript.charset = "utf-8"; head.appendChild(nodeScript); $(nodeScript).attr("state", "loading"); nodeScript.onload = nodeScript.onreadystatechange = function () { if (nodeScript.ready) { return false } if (!nodeScript.readyState || nodeScript.readyState === "loaded" || nodeScript.readyState === "complete") { if (fn && jQuery.isFunction(fn)) { fn() } $(nodeScript).attr("state", "complete"); nodeScript.onload = nodeScript.onreadystatechange = null } } };
function loadCss(b, e) { e = e || document; var d = e.getElementsByTagName("head")[0]; var c = b.lastIndexOf("/") > 0 ? b.substr(b.lastIndexOf("/")) : b; var a = $(d).find("link[href$='" + c + "']"); if (a.length == 0) { a = document.createElement("link"); a.rel = "stylesheet"; a.rev = "stylesheet"; a.type = "text/css"; a.media = "screen"; a.href = b; d.appendChild(a) } };
/*pshow2.js*/
$(function () { if ($(".proviewbox").length) { var h = 0; var e = $(".ul_prothumb"), i = $(".ul_prothumb li"); var c = i.length; var d = $(".probigshow"); var j = '<div class="zoomplepopup"></div><div id="probig_preview" ><img  alt="" /></div>'; d.append(j); var o = $("#probig_preview"); var a = $(".probigshow"); var n = $(".probigshow .zoomplepopup"); var g = $("#a_enlarge").attr("href"); var shuliang = 3; var k = Math.floor(c / shuliang), f = i.width() * shuliang; if (c == shuliang) { k = 0; } var m; function l() { if (h == 0) { $(".span_prev").addClass("span_prevb") } else { $(".span_prev").removeClass("span_prevb") } if (h == k) { $(".span_next").addClass("span_nextb") } else { $(".span_next").removeClass("span_nextb") } } if (h < 1) { var b = $(".a_probigshow:first").attr("ref"); a.attr("src", b) } else { a.attr("src", i.find("a").attr("href")) } l(); $("#a_enlarge").attr("href", g + "#0"); $(".span_prev").click(function () { if (h > 0) { h--; $(".ul_prothumb").animate({ left: "+=" + f }) } l() }); $(".span_next").click(function () { if (h < k) { h++; $(".ul_prothumb").animate({ left: "-=" + f }) } l() }); window.lichange = function (p) { var q = i.eq(p); if (typeof (OBJ_TITLE) != "undefined") { a.find("img").attr({ src: (q.find("a").attr("href")), title: OBJ_TITLE }); a.find("a").attr({ href: (q.find("a").attr("href")), title: OBJ_TITLE }) } else { a.find("img").attr("src", (q.find("a").attr("href"))); a.find("a").attr("href", (q.find("a").attr("href"))) } $(".a_probigshow img").attr("src", q.find("img").attr("longdesc")); $("#a_enlarge").attr("href", g + "#" + p); i.removeClass("now").eq(p).addClass("now") }; i.mouseenter(function () { var p = i.index($(this)); m = setTimeout("lichange(" + p + ")", 150) }).mouseleave(function () { clearTimeout(m) }).click(function () { var p = i.index($(this)); lichange(p); return false }) } });
$(function () { if (!$.trim($("div.pd_attr").text())) { $("div.pd_attr").remove() } });