/*! jQuery v1.3.2.min.js jquery.com | jquery.org/license */
(function () { var d = this, C, u = d.jQuery, h = d.$, g = d.jQuery = d.$ = function (E, F) { return new g.fn.init(E, F) }, n = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/, B = /^.[^:#\[\.,]*$/; g.fn = g.prototype = { init: function (G, E) { G = G || document; if (G.nodeType) { this[0] = G; this.length = 1; this.context = G; return this } if (typeof G === "string") { var I = n.exec(G); if (I && (I[1] || !E)) { if (I[1]) { G = g.clean([I[1]], E) } else { var F = document.getElementById(I[3]); if (F && F.id != I[3]) { return g().find(G) } var H = g(F || []); H.context = document; H.selector = G; return H } } else { return g(E).find(G) } } else { if (g.isFunction(G)) { return g(document).ready(G) } } if (G.selector && G.context) { this.selector = G.selector; this.context = G.context } return this.setArray(g.isArray(G) ? G : g.makeArray(G)) }, selector: "", jquery: "1.3.2", size: function () { return this.length }, get: function (E) { return E === C ? Array.prototype.slice.call(this) : this[E] }, pushStack: function (H, F, G) { var E = g(H); E.prevObject = this; E.context = this.context; if (F === "find") { E.selector = this.selector + (this.selector ? " " : "") + G } else { if (F) { E.selector = this.selector + "." + F + "(" + G + ")" } } return E }, setArray: function (E) { this.length = 0; Array.prototype.push.apply(this, E); return this }, each: function (F, E) { return g.each(this, F, E) }, index: function (E) { return g.inArray(E && E.jquery ? E[0] : E, this) }, attr: function (H, F, E) { var G = H; if (typeof H === "string") { if (F === C) { return this[0] && g[E || "attr"](this[0], H) } else { G = {}; G[H] = F } } return this.each(function (I) { for (H in G) { g.attr(E ? this.style : this, H, g.prop(this, G[H], E, I, H)) } }) }, css: function (E, F) { if ((E == "width" || E == "height") && parseFloat(F) < 0) { F = C } return this.attr(E, F, "curCSS") }, text: function (F) { if (typeof F !== "object" && F != null) { return this.empty().append((this[0] && this[0].ownerDocument || document).createTextNode(F)) } var E = ""; g.each(F || this, function () { g.each(this.childNodes, function () { if (this.nodeType != 8) { E += this.nodeType != 1 ? this.nodeValue : g.fn.text([this]) } }) }); return E }, wrapAll: function (E) { if (this[0]) { var F = g(E, this[0].ownerDocument).clone(); if (this[0].parentNode) { F.insertBefore(this[0]) } F.map(function () { var G = this; while (G.firstChild) { G = G.firstChild } return G }).append(this) } return this }, wrapInner: function (E) { return this.each(function () { g(this).contents().wrapAll(E) }) }, wrap: function (E) { return this.each(function () { g(this).wrapAll(E) }) }, append: function () { return this.domManip(arguments, true, function (E) { if (this.nodeType == 1) { this.appendChild(E) } }) }, prepend: function () { return this.domManip(arguments, true, function (E) { if (this.nodeType == 1) { this.insertBefore(E, this.firstChild) } }) }, before: function () { return this.domManip(arguments, false, function (E) { this.parentNode.insertBefore(E, this) }) }, after: function () { return this.domManip(arguments, false, function (E) { this.parentNode.insertBefore(E, this.nextSibling) }) }, end: function () { return this.prevObject || g([]) }, push: [].push, sort: [].sort, splice: [].splice, find: function (E) { if (this.length === 1) { var F = this.pushStack([], "find", E); F.length = 0; g.find(E, this[0], F); return F } else { return this.pushStack(g.unique(g.map(this, function (G) { return g.find(E, G) })), "find", E) } }, clone: function (E) { var G = this.map(function () { if (!g.support.noCloneEvent && !g.isXMLDoc(this)) { var I = this.outerHTML; if (!I) { var J = this.ownerDocument.createElement("div"); J.appendChild(this.cloneNode(true)); I = J.innerHTML } return g.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0] } else { return this.cloneNode(true) } }); if (E === true) { var F = this.find("*").andSelf(), H = 0; G.find("*").andSelf().each(function () { if (this.nodeName !== F[H].nodeName) { return } var I = g.data(F[H], "events"); for (var K in I) { for (var J in I[K]) { g.event.add(this, K, I[K][J], I[K][J].data) } } H++ }) } return G }, filter: function (E) { return this.pushStack(g.isFunction(E) && g.grep(this, function (F, G) { return E.call(F, G) }) || g.multiFilter(E, g.grep(this, function (F) { return F.nodeType === 1 })), "filter", E) }, closest: function (G) { var F = g.expr.match.POS.test(G) ? g(G) : null, E = 0; return this.map(function () { var H = this; while (H && H.ownerDocument) { if (F ? F.index(H) > -1 : g(H).is(G)) { g.data(H, "closest", E); return H } H = H.parentNode; E++ } }) }, not: function (E) { if (typeof E === "string") { if (B.test(E)) { return this.pushStack(g.multiFilter(E, this, true), "not", E) } else { E = g.multiFilter(E, this) } } var F = E.length && E[E.length - 1] !== C && !E.nodeType; return this.filter(function () { return F ? g.inArray(this, E) < 0 : this != E }) }, add: function (E) { return this.pushStack(g.unique(g.merge(this.get(), typeof E === "string" ? g(E) : g.makeArray(E)))) }, is: function (E) { return !!E && g.multiFilter(E, this).length > 0 }, hasClass: function (E) { return !!E && this.is("." + E) }, val: function (K) { if (K === C) { var E = this[0]; if (E) { if (g.nodeName(E, "option")) { return (E.attributes.value || {}).specified ? E.value : E.text } if (g.nodeName(E, "select")) { var I = E.selectedIndex, L = [], M = E.options, H = E.type == "select-one"; if (I < 0) { return null } for (var F = H ? I : 0, J = H ? I + 1 : M.length; F < J; F++) { var G = M[F]; if (G.selected) { K = g(G).val(); if (H) { return K } L.push(K) } } return L } return (E.value || "").replace(/\r/g, "") } return C } if (typeof K === "number") { K += "" } return this.each(function () { if (this.nodeType != 1) { return } if (g.isArray(K) && /radio|checkbox/.test(this.type)) { this.checked = g.inArray(this.value, K) >= 0 || g.inArray(this.name, K) >= 0 } else { if (g.nodeName(this, "select")) { var N = g.makeArray(K); g("option", this).each(function () { this.selected = g.inArray(this.value, N) >= 0 || g.inArray(this.text, N) >= 0 }); if (!N.length) { this.selectedIndex = -1 } } else { this.value = K } } }) }, html: function (E) { return E === C ? this[0] ? this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") : null : this.empty().append(E) }, replaceWith: function (E) { return this.after(E).remove() }, eq: function (E) { return this.slice(E, +E + 1) }, slice: function () { return this.pushStack(Array.prototype.slice.apply(this, arguments), "slice", Array.prototype.slice.call(arguments).join(",")) }, map: function (E) { return this.pushStack(g.map(this, function (F, G) { return E.call(F, G, F) })) }, andSelf: function () { return this.add(this.prevObject) }, domManip: function (J, M, L) { if (this[0]) { var I = (this[0].ownerDocument || this[0]).createDocumentFragment(), F = g.clean(J, this[0].ownerDocument || this[0], I), H = I.firstChild; if (H) { for (var G = 0, E = this.length; G < E; G++) { L.call(K(this[G], H), this.length > 1 || G > 0 ? I.cloneNode(true) : I) } } if (F) { g.each(F, v) } } return this; function K(N, O) { return M && g.nodeName(N, "table") && g.nodeName(O, "tr") ? N.getElementsByTagName("tbody")[0] || N.appendChild(N.ownerDocument.createElement("tbody")) : N } } }; g.fn.init.prototype = g.fn; function v(E, F) { if (F.src) { g.ajax({ url: F.src, async: false, dataType: "script" }) } else { g.globalEval(F.text || F.textContent || F.innerHTML || "") } if (F.parentNode) { F.parentNode.removeChild(F) } } function A() { return +new Date() } g.extend = g.fn.extend = function () { var L = arguments[0] || {}, J = 1, K = arguments.length, G = false, I; if (typeof L === "boolean") { G = L; L = arguments[1] || {}; J = 2 } if (typeof L !== "object" && !g.isFunction(L)) { L = {} } if (K == J) { L = this; --J } for (; J < K; J++) { if ((I = arguments[J]) != null) { for (var H in I) { var E = L[H], F = I[H]; if (L === F) { continue } if (G && F && typeof F === "object" && !F.nodeType) { L[H] = g.extend(G, E || (F.length != null ? [] : {}), F) } else { if (F !== C) { L[H] = F } } } } } return L }; var x = /z-?index|font-?weight|opacity|zoom|line-?height/i, j = document.defaultView || {}, o = Object.prototype.toString; g.extend({ noConflict: function (E) { d.$ = h; if (E) { d.jQuery = u } return g }, isFunction: function (E) { return o.call(E) === "[object Function]" }, isArray: function (E) { return o.call(E) === "[object Array]" }, isXMLDoc: function (E) { return E.nodeType === 9 && E.documentElement.nodeName !== "HTML" || !!E.ownerDocument && g.isXMLDoc(E.ownerDocument) }, globalEval: function (F) { if (F && /\S/.test(F)) { var E = document.getElementsByTagName("head")[0] || document.documentElement, G = document.createElement("script"); G.type = "text/javascript"; if (g.support.scriptEval) { G.appendChild(document.createTextNode(F)) } else { G.text = F } E.insertBefore(G, E.firstChild); E.removeChild(G) } }, nodeName: function (F, E) { return F.nodeName && F.nodeName.toUpperCase() == E.toUpperCase() }, each: function (I, F, H) { var G, J = 0, K = I.length; if (H) { if (K === C) { for (G in I) { if (F.apply(I[G], H) === false) { break } } } else { for (; J < K; ) { if (F.apply(I[J++], H) === false) { break } } } } else { if (K === C) { for (G in I) { if (F.call(I[G], G, I[G]) === false) { break } } } else { for (var E = I[0]; J < K && F.call(E, J, E) !== false; E = I[++J]) { } } } return I }, prop: function (E, F, I, H, G) { if (g.isFunction(F)) { F = F.call(E, H) } return typeof F === "number" && I == "curCSS" && !x.test(G) ? F + "px" : F }, className: { add: function (E, F) { g.each((F || "").split(/\s+/), function (G, H) { if (E.nodeType == 1 && !g.className.has(E.className, H)) { E.className += (E.className ? " " : "") + H } }) }, remove: function (E, F) { if (E.nodeType == 1) { E.className = F !== C ? g.grep(E.className.split(/\s+/), function (G) { return !g.className.has(F, G) }).join(" ") : "" } }, has: function (F, E) { return F && g.inArray(E, (F.className || F).toString().split(/\s+/)) > -1 } }, swap: function (E, I, F) { var G = {}; for (var H in I) { G[H] = E.style[H]; E.style[H] = I[H] } F.call(E); for (var H in I) { E.style[H] = G[H] } }, css: function (J, H, L, G) { if (H == "width" || H == "height") { var F, I = { position: "absolute", visibility: "hidden", display: "block" }, E = H == "width" ? ["Left", "Right"] : ["Top", "Bottom"]; function K() { F = H == "width" ? J.offsetWidth : J.offsetHeight; if (G === "border") { return } g.each(E, function () { if (!G) { F -= parseFloat(g.curCSS(J, "padding" + this, true)) || 0 } if (G === "margin") { F += parseFloat(g.curCSS(J, "margin" + this, true)) || 0 } else { F -= parseFloat(g.curCSS(J, "border" + this + "Width", true)) || 0 } }) } if (J.offsetWidth !== 0) { K() } else { g.swap(J, I, K) } return Math.max(0, Math.round(F)) } return g.curCSS(J, H, L) }, curCSS: function (I, F, G) { var L, E = I.style; if (F == "opacity" && !g.support.opacity) { L = g.attr(E, "opacity"); return L == "" ? "1" : L } if (F.match(/float/i)) { F = s } if (!G && E && E[F]) { L = E[F] } else { if (j.getComputedStyle) { if (F.match(/float/i)) { F = "float" } F = F.replace(/([A-Z])/g, "-$1").toLowerCase(); var M = j.getComputedStyle(I, null); if (M) { L = M.getPropertyValue(F) } if (F == "opacity" && L == "") { L = "1" } } else { if (I.currentStyle) { var J = F.replace(/\-(\w)/g, function (N, O) { return O.toUpperCase() }); L = I.currentStyle[F] || I.currentStyle[J]; if (!/^\d+(px)?$/i.test(L) && /^\d/.test(L)) { var H = E.left, K = I.runtimeStyle.left; I.runtimeStyle.left = I.currentStyle.left; E.left = L || 0; L = E.pixelLeft + "px"; E.left = H; I.runtimeStyle.left = K } } } } return L }, clean: function (H, E, K) { E = E || document; if (typeof E.createElement === "undefined") { E = E.ownerDocument || E[0] && E[0].ownerDocument || document } if (!K && H.length === 1 && typeof H[0] === "string") { var J = /^<(\w+)\s*\/?>$/.exec(H[0]); if (J) { return [E.createElement(J[1])] } } var I = [], G = [], F = E.createElement("div"); g.each(H, function (N, Q) { if (typeof Q === "number") { Q += "" } if (!Q) { return } if (typeof Q === "string") { Q = Q.replace(/(<(\w+)[^>]*?)\/>/g, function (U, V, T) { return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? U : V + "></" + T + ">" }); var M = Q.replace(/^\s+/, "").substring(0, 10).toLowerCase(); var O = !M.indexOf("<opt") && [1, "<select multiple='multiple'>", "</select>"] || !M.indexOf("<leg") && [1, "<fieldset>", "</fieldset>"] || M.match(/^<(thead|tbody|tfoot|colg|cap)/) && [1, "<table>", "</table>"] || !M.indexOf("<tr") && [2, "<table><tbody>", "</tbody></table>"] || (!M.indexOf("<td") || !M.indexOf("<th")) && [3, "<table><tbody><tr>", "</tr></tbody></table>"] || !M.indexOf("<col") && [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"] || !g.support.htmlSerialize && [1, "div<div>", "</div>"] || [0, "", ""]; F.innerHTML = O[1] + Q + O[2]; while (O[0]--) { F = F.lastChild } if (!g.support.tbody) { var P = /<tbody/i.test(Q), S = !M.indexOf("<table") && !P ? F.firstChild && F.firstChild.childNodes : O[1] == "<table>" && !P ? F.childNodes : []; for (var R = S.length - 1; R >= 0; --R) { if (g.nodeName(S[R], "tbody") && !S[R].childNodes.length) { S[R].parentNode.removeChild(S[R]) } } } if (!g.support.leadingWhitespace && /^\s/.test(Q)) { F.insertBefore(E.createTextNode(Q.match(/^\s*/)[0]), F.firstChild) } Q = g.makeArray(F.childNodes) } if (Q.nodeType) { I.push(Q) } else { I = g.merge(I, Q) } }); if (K) { for (var L = 0; I[L]; L++) { if (g.nodeName(I[L], "script") && (!I[L].type || I[L].type.toLowerCase() === "text/javascript")) { G.push(I[L].parentNode ? I[L].parentNode.removeChild(I[L]) : I[L]) } else { if (I[L].nodeType === 1) { I.splice.apply(I, [L + 1, 0].concat(g.makeArray(I[L].getElementsByTagName("script")))) } K.appendChild(I[L]) } } return G } return I }, attr: function (L, I, E) { if (!L || L.nodeType == 3 || L.nodeType == 8) { return C } var J = !g.isXMLDoc(L), F = E !== C; I = J && g.props[I] || I; if (L.tagName) { var H = /href|src|style/.test(I); if (I == "selected" && L.parentNode) { L.parentNode.selectedIndex } if (I in L && J && !H) { if (F) { if (I == "type" && g.nodeName(L, "input") && L.parentNode) { throw "type property can't be changed" } L[I] = E } if (g.nodeName(L, "form") && L.getAttributeNode(I)) { return L.getAttributeNode(I).nodeValue } if (I == "tabIndex") { var K = L.getAttributeNode("tabIndex"); return K && K.specified ? K.value : L.nodeName.match(/(button|input|object|select|textarea)/i) ? 0 : L.nodeName.match(/^(a|area)$/i) && L.href ? 0 : C } return L[I] } if (!g.support.style && J && I == "style") { return g.attr(L.style, "cssText", E) } if (F) { L.setAttribute(I, "" + E) } var G = !g.support.hrefNormalized && J && H ? L.getAttribute(I, 2) : L.getAttribute(I); return G === null ? C : G } if (!g.support.opacity && I == "opacity") { if (F) { L.zoom = 1; L.filter = (L.filter || "").replace(/alpha\([^)]*\)/, "") + (parseInt(E) + "" == "NaN" ? "" : "alpha(opacity=" + E * 100 + ")") } return L.filter && L.filter.indexOf("opacity=") >= 0 ? parseFloat(L.filter.match(/opacity=([^)]*)/)[1]) / 100 + "" : "" } I = I.replace(/-([a-z])/gi, function (M, N) { return N.toUpperCase() }); if (F) { L[I] = E } return L[I] }, trim: function (E) { return (E || "").replace(/^\s+|\s+$/g, "") }, makeArray: function (F) { var G = []; if (F != null) { var E = F.length; if (E == null || typeof F === "string" || g.isFunction(F) || F.setInterval) { G[0] = F } else { while (E) { G[--E] = F[E] } } } return G }, inArray: function (E, F) { for (var G = 0, H = F.length; G < H; G++) { if (F[G] === E) { return G } } return -1 }, merge: function (E, G) { var H = 0, I, F = E.length; if (!g.support.getAll) { while ((I = G[H++]) != null) { if (I.nodeType != 8) { E[F++] = I } } } else { while ((I = G[H++]) != null) { E[F++] = I } } return E }, unique: function (F) { var H = [], G = {}; try { for (var I = 0, J = F.length; I < J; I++) { var E = g.data(F[I]); if (!G[E]) { G[E] = true; H.push(F[I]) } } } catch (K) { H = F } return H }, grep: function (H, F, G) { var I = []; for (var J = 0, E = H.length; J < E; J++) { if (!G != !F(H[J], J)) { I.push(H[J]) } } return I }, map: function (G, F) { var H = []; for (var I = 0, J = G.length; I < J; I++) { var E = F(G[I], I); if (E != null) { H[H.length] = E } } return H.concat.apply([], H) } }); var l = navigator.userAgent.toLowerCase(); g.browser = { version: (l.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/) || [0, "0"])[1], safari: /webkit/.test(l), opera: /opera/.test(l), msie: /msie/.test(l) && !/opera/.test(l), mozilla: /mozilla/.test(l) && !/(compatible|webkit)/.test(l) }; g.each({ parent: function (E) { return E.parentNode }, parents: function (E) { return g.dir(E, "parentNode") }, next: function (E) { return g.nth(E, 2, "nextSibling") }, prev: function (E) { return g.nth(E, 2, "previousSibling") }, nextAll: function (E) { return g.dir(E, "nextSibling") }, prevAll: function (E) { return g.dir(E, "previousSibling") }, siblings: function (E) { return g.sibling(E.parentNode.firstChild, E) }, children: function (E) { return g.sibling(E.firstChild) }, contents: function (E) { return g.nodeName(E, "iframe") ? E.contentDocument || E.contentWindow.document : g.makeArray(E.childNodes) } }, function (E, F) { g.fn[E] = function (G) { var H = g.map(this, F); if (G && typeof G == "string") { H = g.multiFilter(G, H) } return this.pushStack(g.unique(H), E, G) } }); g.each({ appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, function (E, F) { g.fn[E] = function (G) { var J = [], L = g(G); for (var K = 0, H = L.length; K < H; K++) { var I = (K > 0 ? this.clone(true) : this).get(); g.fn[F].apply(g(L[K]), I); J = J.concat(I) } return this.pushStack(J, E, G) } }); g.each({ removeAttr: function (E) { g.attr(this, E, ""); if (this.nodeType == 1) { this.removeAttribute(E) } }, addClass: function (E) { g.className.add(this, E) }, removeClass: function (E) { g.className.remove(this, E) }, toggleClass: function (F, E) { if (typeof E !== "boolean") { E = !g.className.has(this, F) } g.className[E ? "add" : "remove"](this, F) }, remove: function (E) { if (!E || g.filter(E, [this]).length) { g("*", this).add([this]).each(function () { g.event.remove(this); g.removeData(this) }); if (this.parentNode) { this.parentNode.removeChild(this) } } }, empty: function () { g(this).children().remove(); while (this.firstChild) { this.removeChild(this.firstChild) } } }, function (E, F) { g.fn[E] = function () { return this.each(F, arguments) } }); function b(E, F) { return E[0] && parseInt(g.curCSS(E[0], F, true), 10) || 0 } var D = "jQuery" + A(), r = 0, i = {}; g.extend({ cache: {}, data: function (H, G, E) { H = H == d ? i : H; var F = H[D]; if (!F) { F = H[D] = ++r } if (G && !g.cache[F]) { g.cache[F] = {} } if (E !== C) { g.cache[F][G] = E } return G ? g.cache[F][G] : F }, removeData: function (H, G) { H = H == d ? i : H; var F = H[D]; if (G) { if (g.cache[F]) { delete g.cache[F][G]; G = ""; for (G in g.cache[F]) { break } if (!G) { g.removeData(H) } } } else { try { delete H[D] } catch (E) { if (H.removeAttribute) { H.removeAttribute(D) } } delete g.cache[F] } }, queue: function (H, G, F) { if (H) { G = (G || "fx") + "queue"; var E = g.data(H, G); if (!E || g.isArray(F)) { E = g.data(H, G, g.makeArray(F)) } else { if (F) { E.push(F) } } } return E }, dequeue: function (F, E) { var G = g.queue(F, E), H = G.shift(); if (!E || E === "fx") { H = G[0] } if (H !== C) { H.call(F) } } }); g.fn.extend({ data: function (G, E) { var F = G.split("."); F[1] = F[1] ? "." + F[1] : ""; if (E === C) { var H = this.triggerHandler("getData" + F[1] + "!", [F[0]]); if (H === C && this.length) { H = g.data(this[0], G) } return H === C && F[1] ? this.data(F[0]) : H } else { return this.trigger("setData" + F[1] + "!", [F[0], E]).each(function () { g.data(this, G, E) }) } }, removeData: function (E) { return this.each(function () { g.removeData(this, E) }) }, queue: function (E, F) { if (typeof E !== "string") { F = E; E = "fx" } if (F === C) { return g.queue(this[0], E) } return this.each(function () { var G = g.queue(this, E, F); if (E == "fx" && G.length == 1) { G[0].call(this) } }) }, dequeue: function (E) { return this.each(function () { g.dequeue(this, E) }) } }); (function () { var R = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g, L = 0, H = Object.prototype.toString; var F = function (U, af, ab, T) { ab = ab || []; af = af || document; if (af.nodeType !== 1 && af.nodeType !== 9) { return [] } if (!U || typeof U !== "string") { return ab } var W = [], ah, Z, ad, ae, V, ag, aj = true; R.lastIndex = 0; while ((ah = R.exec(U)) !== null) { W.push(ah[1]); if (ah[2]) { ag = RegExp.rightContext; break } } if (W.length > 1 && M.exec(U)) { if (W.length === 2 && I.relative[W[0]]) { Z = J(W[0] + W[1], af) } else { Z = I.relative[W[0]] ? [af] : F(W.shift(), af); while (W.length) { U = W.shift(); if (I.relative[U]) { U += W.shift() } Z = J(U, Z) } } } else { var Y = T ? { expr: W.pop(), set: E(T)} : F.find(W.pop(), W.length === 1 && af.parentNode ? af.parentNode : af, Q(af)); Z = F.filter(Y.expr, Y.set); if (W.length > 0) { ad = E(Z) } else { aj = false } while (W.length) { var ac = W.pop(), aa = ac; if (!I.relative[ac]) { ac = "" } else { aa = W.pop() } if (aa == null) { aa = af } I.relative[ac](ad, aa, Q(af)) } } if (!ad) { ad = Z } if (!ad) { throw "Syntax error, unrecognized expression: " + (ac || U) } if (H.call(ad) === "[object Array]") { if (!aj) { ab.push.apply(ab, ad) } else { if (af.nodeType === 1) { for (var X = 0; ad[X] != null; X++) { if (ad[X] && (ad[X] === true || ad[X].nodeType === 1 && K(af, ad[X]))) { ab.push(Z[X]) } } } else { for (var X = 0; ad[X] != null; X++) { if (ad[X] && ad[X].nodeType === 1) { ab.push(Z[X]) } } } } } else { E(ad, ab) } if (ag) { F(ag, af, ab, T); if (G) { hasDuplicate = false; ab.sort(G); if (hasDuplicate) { for (var X = 1; X < ab.length; X++) { if (ab[X] === ab[X - 1]) { ab.splice(X--, 1) } } } } } return ab }; F.matches = function (T, U) { return F(T, null, null, U) }; F.find = function (V, X, W) { var U, ab; if (!V) { return [] } for (var aa = 0, Z = I.order.length; aa < Z; aa++) { var T = I.order[aa], ab; if (ab = I.match[T].exec(V)) { var Y = RegExp.leftContext; if (Y.substr(Y.length - 1) !== "\\") { ab[1] = (ab[1] || "").replace(/\\/g, ""); U = I.find[T](ab, X, W); if (U != null) { V = V.replace(I.match[T], ""); break } } } } if (!U) { U = X.getElementsByTagName("*") } return { set: U, expr: V} }; F.filter = function (W, T, ab, ah) { var ag = W, ad = [], Y = T, U, ae, V = T && T[0] && Q(T[0]); while (W && T.length) { for (var aa in I.filter) { if ((U = I.match[aa].exec(W)) != null) { var af = I.filter[aa], ac, Z; ae = false; if (Y == ad) { ad = [] } if (I.preFilter[aa]) { U = I.preFilter[aa](U, Y, ab, ad, ah, V); if (!U) { ae = ac = true } else { if (U === true) { continue } } } if (U) { for (var aj = 0; (Z = Y[aj]) != null; aj++) { if (Z) { ac = af(Z, U, aj, Y); var X = ah ^ !!ac; if (ab && ac != null) { if (X) { ae = true } else { Y[aj] = false } } else { if (X) { ad.push(Z); ae = true } } } } } if (ac !== C) { if (!ab) { Y = ad } W = W.replace(I.match[aa], ""); if (!ae) { return [] } break } } } if (W == ag) { if (ae == null) { throw "Syntax error, unrecognized expression: " + W } else { break } } ag = W } return Y }; var I = F.selectors = { order: ["ID", "NAME", "TAG"], match: { ID: /#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/, CLASS: /\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/, NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/, ATTR: /\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/, TAG: /^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/, CHILD: /:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/, POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/, PSEUDO: /:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/ }, attrMap: { "class": "className", "for": "htmlFor" }, attrHandle: { href: function (T) { return T.getAttribute("href") } }, relative: { "+": function (V, X, U) { var ab = typeof X === "string", W = ab && !/\W/.test(X), T = ab && !W; if (W && !U) { X = X.toUpperCase() } for (var aa = 0, Z = V.length, Y; aa < Z; aa++) { if (Y = V[aa]) { while ((Y = Y.previousSibling) && Y.nodeType !== 1) { } V[aa] = T || Y && Y.nodeName === X ? Y || false : Y === X } } if (T) { F.filter(X, V, true) } }, ">": function (V, Y, W) { var T = typeof Y === "string"; if (T && !/\W/.test(Y)) { Y = W ? Y : Y.toUpperCase(); for (var Z = 0, X = V.length; Z < X; Z++) { var U = V[Z]; if (U) { var aa = U.parentNode; V[Z] = aa.nodeName === Y ? aa : false } } } else { for (var Z = 0, X = V.length; Z < X; Z++) { var U = V[Z]; if (U) { V[Z] = T ? U.parentNode : U.parentNode === Y } } if (T) { F.filter(Y, V, true) } } }, "": function (Y, W, U) { var X = L++, V = S; if (!W.match(/\W/)) { var T = W = U ? W : W.toUpperCase(); V = P } V("parentNode", W, X, Y, T, U) }, "~": function (Y, W, U) { var X = L++, V = S; if (typeof W === "string" && !W.match(/\W/)) { var T = W = U ? W : W.toUpperCase(); V = P } V("previousSibling", W, X, Y, T, U) } }, find: { ID: function (U, V, W) { if (typeof V.getElementById !== "undefined" && !W) { var T = V.getElementById(U[1]); return T ? [T] : [] } }, NAME: function (Y, U, V) { if (typeof U.getElementsByName !== "undefined") { var X = [], T = U.getElementsByName(Y[1]); for (var Z = 0, W = T.length; Z < W; Z++) { if (T[Z].getAttribute("name") === Y[1]) { X.push(T[Z]) } } return X.length === 0 ? null : X } }, TAG: function (T, U) { return U.getElementsByTagName(T[1]) } }, preFilter: { CLASS: function (aa, Y, Z, X, V, W) { aa = " " + aa[1].replace(/\\/g, "") + " "; if (W) { return aa } for (var T = 0, U; (U = Y[T]) != null; T++) { if (U) { if (V ^ (U.className && (" " + U.className + " ").indexOf(aa) >= 0)) { if (!Z) { X.push(U) } } else { if (Z) { Y[T] = false } } } } return false }, ID: function (T) { return T[1].replace(/\\/g, "") }, TAG: function (U, T) { for (var V = 0; T[V] === false; V++) { } return T[V] && Q(T[V]) ? U[1] : U[1].toUpperCase() }, CHILD: function (T) { if (T[1] == "nth") { var U = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2] == "even" && "2n" || T[2] == "odd" && "2n+1" || !/\D/.test(T[2]) && "0n+" + T[2] || T[2]); T[2] = U[1] + (U[2] || 1) - 0; T[3] = U[3] - 0 } T[0] = L++; return T }, ATTR: function (T, X, Y, W, U, V) { var Z = T[1].replace(/\\/g, ""); if (!V && I.attrMap[Z]) { T[1] = I.attrMap[Z] } if (T[2] === "~=") { T[4] = " " + T[4] + " " } return T }, PSEUDO: function (T, W, X, V, U) { if (T[1] === "not") { if (T[3].match(R).length > 1 || /^\w/.test(T[3])) { T[3] = F(T[3], null, null, W) } else { var Y = F.filter(T[3], W, X, true ^ U); if (!X) { V.push.apply(V, Y) } return false } } else { if (I.match.POS.test(T[0]) || I.match.CHILD.test(T[0])) { return true } } return T }, POS: function (T) { T.unshift(true); return T } }, filters: { enabled: function (T) { return T.disabled === false && T.type !== "hidden" }, disabled: function (T) { return T.disabled === true }, checked: function (T) { return T.checked === true }, selected: function (T) { T.parentNode.selectedIndex; return T.selected === true }, parent: function (T) { return !!T.firstChild }, empty: function (T) { return !T.firstChild }, has: function (V, U, T) { return !!F(T[3], V).length }, header: function (T) { return /h\d/i.test(T.nodeName) }, text: function (T) { return "text" === T.type }, radio: function (T) { return "radio" === T.type }, checkbox: function (T) { return "checkbox" === T.type }, file: function (T) { return "file" === T.type }, password: function (T) { return "password" === T.type }, submit: function (T) { return "submit" === T.type }, image: function (T) { return "image" === T.type }, reset: function (T) { return "reset" === T.type }, button: function (T) { return "button" === T.type || T.nodeName.toUpperCase() === "BUTTON" }, input: function (T) { return /input|select|textarea|button/i.test(T.nodeName) } }, setFilters: { first: function (U, T) { return T === 0 }, last: function (V, U, T, W) { return U === W.length - 1 }, even: function (U, T) { return T % 2 === 0 }, odd: function (U, T) { return T % 2 === 1 }, lt: function (V, U, T) { return U < T[3] - 0 }, gt: function (V, U, T) { return U > T[3] - 0 }, nth: function (V, U, T) { return T[3] - 0 == U }, eq: function (V, U, T) { return T[3] - 0 == U } }, filter: { PSEUDO: function (V, Z, aa, W) { var Y = Z[1], T = I.filters[Y]; if (T) { return T(V, aa, Z, W) } else { if (Y === "contains") { return (V.textContent || V.innerText || "").indexOf(Z[3]) >= 0 } else { if (Y === "not") { var U = Z[3]; for (var aa = 0, X = U.length; aa < X; aa++) { if (U[aa] === V) { return false } } return true } } } }, CHILD: function (Y, ab) { var U = ab[1], Z = Y; switch (U) { case "only": case "first": while (Z = Z.previousSibling) { if (Z.nodeType === 1) { return false } } if (U == "first") { return true } Z = Y; case "last": while (Z = Z.nextSibling) { if (Z.nodeType === 1) { return false } } return true; case "nth": var aa = ab[2], X = ab[3]; if (aa == 1 && X == 0) { return true } var T = ab[0], W = Y.parentNode; if (W && (W.sizcache !== T || !Y.nodeIndex)) { var ac = 0; for (Z = W.firstChild; Z; Z = Z.nextSibling) { if (Z.nodeType === 1) { Z.nodeIndex = ++ac } } W.sizcache = T } var V = Y.nodeIndex - X; if (aa == 0) { return V == 0 } else { return V % aa == 0 && V / aa >= 0 } } }, ID: function (U, T) { return U.nodeType === 1 && U.getAttribute("id") === T }, TAG: function (U, T) { return T === "*" && U.nodeType === 1 || U.nodeName === T }, CLASS: function (U, T) { return (" " + (U.className || U.getAttribute("class")) + " ").indexOf(T) > -1 }, ATTR: function (U, Z) { var Y = Z[1], W = I.attrHandle[Y] ? I.attrHandle[Y](U) : U[Y] != null ? U[Y] : U.getAttribute(Y), V = W + "", T = Z[2], X = Z[4]; return W == null ? T === "!=" : T === "=" ? V === X : T === "*=" ? V.indexOf(X) >= 0 : T === "~=" ? (" " + V + " ").indexOf(X) >= 0 : !X ? V && W !== false : T === "!=" ? V != X : T === "^=" ? V.indexOf(X) === 0 : T === "$=" ? V.substr(V.length - X.length) === X : T === "|=" ? V === X || V.substr(0, X.length + 1) === X + "-" : false }, POS: function (T, W, X, U) { var V = W[2], Y = I.setFilters[V]; if (Y) { return Y(T, X, W, U) } } } }; var M = I.match.POS; for (var O in I.match) { I.match[O] = RegExp(I.match[O].source + /(?![^\[]*\])(?![^\(]*\))/.source) } var E = function (U, T) { U = Array.prototype.slice.call(U); if (T) { T.push.apply(T, U); return T } return U }; try { Array.prototype.slice.call(document.documentElement.childNodes) } catch (N) { E = function (T, X) { var V = X || []; if (H.call(T) === "[object Array]") { Array.prototype.push.apply(V, T) } else { if (typeof T.length === "number") { for (var W = 0, U = T.length; W < U; W++) { V.push(T[W]) } } else { for (var W = 0; T[W]; W++) { V.push(T[W]) } } } return V } } var G; if (document.documentElement.compareDocumentPosition) { G = function (U, T) { var V = U.compareDocumentPosition(T) & 4 ? -1 : U === T ? 0 : 1; if (V === 0) { hasDuplicate = true } return V } } else { if ("sourceIndex" in document.documentElement) { G = function (U, T) { var V = U.sourceIndex - T.sourceIndex; if (V === 0) { hasDuplicate = true } return V } } else { if (document.createRange) { G = function (X, V) { var W = X.ownerDocument.createRange(), U = V.ownerDocument.createRange(); W.selectNode(X); W.collapse(true); U.selectNode(V); U.collapse(true); var T = W.compareBoundaryPoints(Range.START_TO_END, U); if (T === 0) { hasDuplicate = true } return T } } } } (function () { var U = document.createElement("form"), V = "script" + new Date().getTime(); U.innerHTML = "<input name='" + V + "'/>"; var T = document.documentElement; T.insertBefore(U, T.firstChild); if (!!document.getElementById(V)) { I.find.ID = function (W, X, Y) { if (typeof X.getElementById !== "undefined" && !Y) { var Z = X.getElementById(W[1]); return Z ? Z.id === W[1] || typeof Z.getAttributeNode !== "undefined" && Z.getAttributeNode("id").nodeValue === W[1] ? [Z] : C : [] } }; I.filter.ID = function (X, Y) { var W = typeof X.getAttributeNode !== "undefined" && X.getAttributeNode("id"); return X.nodeType === 1 && W && W.nodeValue === Y } } T.removeChild(U) })(); (function () { var T = document.createElement("div"); T.appendChild(document.createComment("")); if (T.getElementsByTagName("*").length > 0) { I.find.TAG = function (W, V) { var U = V.getElementsByTagName(W[1]); if (W[1] === "*") { var Y = []; for (var X = 0; U[X]; X++) { if (U[X].nodeType === 1) { Y.push(U[X]) } } U = Y } return U } } T.innerHTML = "<a href='#'></a>"; if (T.firstChild && typeof T.firstChild.getAttribute !== "undefined" && T.firstChild.getAttribute("href") !== "#") { I.attrHandle.href = function (U) { return U.getAttribute("href", 2) } } })(); if (document.querySelectorAll) { (function () { var T = F, U = document.createElement("div"); U.innerHTML = "<p class='TEST'></p>"; if (U.querySelectorAll && U.querySelectorAll(".TEST").length === 0) { return } F = function (W, V, Y, Z) { V = V || document; if (!Z && V.nodeType === 9 && !Q(V)) { try { return E(V.querySelectorAll(W), Y) } catch (X) { } } return T(W, V, Y, Z) }; F.find = T.find; F.filter = T.filter; F.selectors = T.selectors; F.matches = T.matches })() } if (document.getElementsByClassName && document.documentElement.getElementsByClassName) { (function () { var T = document.createElement("div"); T.innerHTML = "<div class='test e'></div><div class='test'></div>"; if (T.getElementsByClassName("e").length === 0) { return } T.lastChild.className = "e"; if (T.getElementsByClassName("e").length === 1) { return } I.order.splice(1, 0, "CLASS"); I.find.CLASS = function (U, V, W) { if (typeof V.getElementsByClassName !== "undefined" && !W) { return V.getElementsByClassName(U[1]) } } })() } function P(aa, U, T, Y, V, X) { var W = aa == "previousSibling" && !X; for (var ac = 0, ab = Y.length; ac < ab; ac++) { var Z = Y[ac]; if (Z) { if (W && Z.nodeType === 1) { Z.sizcache = T; Z.sizset = ac } Z = Z[aa]; var ad = false; while (Z) { if (Z.sizcache === T) { ad = Y[Z.sizset]; break } if (Z.nodeType === 1 && !X) { Z.sizcache = T; Z.sizset = ac } if (Z.nodeName === U) { ad = Z; break } Z = Z[aa] } Y[ac] = ad } } } function S(aa, U, T, Y, V, X) { var W = aa == "previousSibling" && !X; for (var ac = 0, ab = Y.length; ac < ab; ac++) { var Z = Y[ac]; if (Z) { if (W && Z.nodeType === 1) { Z.sizcache = T; Z.sizset = ac } Z = Z[aa]; var ad = false; while (Z) { if (Z.sizcache === T) { ad = Y[Z.sizset]; break } if (Z.nodeType === 1) { if (!X) { Z.sizcache = T; Z.sizset = ac } if (typeof U !== "string") { if (Z === U) { ad = true; break } } else { if (F.filter(U, [Z]).length > 0) { ad = Z; break } } } Z = Z[aa] } Y[ac] = ad } } } var K = document.compareDocumentPosition ? function (U, T) { return U.compareDocumentPosition(T) & 16 } : function (U, T) { return U !== T && (U.contains ? U.contains(T) : true) }; var Q = function (T) { return T.nodeType === 9 && T.documentElement.nodeName !== "HTML" || !!T.ownerDocument && Q(T.ownerDocument) }; var J = function (X, V) { var aa = [], T = "", U, Z = V.nodeType ? [V] : V; while (U = I.match.PSEUDO.exec(X)) { T += U[0]; X = X.replace(I.match.PSEUDO, "") } X = I.relative[X] ? X + "*" : X; for (var W = 0, Y = Z.length; W < Y; W++) { F(X, Z[W], aa) } return F.filter(T, aa) }; g.find = F; g.filter = F.filter; g.expr = F.selectors; g.expr[":"] = g.expr.filters; F.selectors.filters.hidden = function (T) { return T.offsetWidth === 0 || T.offsetHeight === 0 }; F.selectors.filters.visible = function (T) { return T.offsetWidth > 0 || T.offsetHeight > 0 }; F.selectors.filters.animated = function (T) { return g.grep(g.timers, function (U) { return T === U.elem }).length }; g.multiFilter = function (V, T, U) { if (U) { V = ":not(" + V + ")" } return F.matches(V, T) }; g.dir = function (V, U) { var T = [], W = V[U]; while (W && W != document) { if (W.nodeType == 1) { T.push(W) } W = W[U] } return T }; g.nth = function (T, U, W, X) { U = U || 1; var V = 0; for (; T; T = T[W]) { if (T.nodeType == 1 && ++V == U) { break } } return T }; g.sibling = function (V, U) { var T = []; for (; V; V = V.nextSibling) { if (V.nodeType == 1 && V != U) { T.push(V) } } return T }; return; d.Sizzle = F })(); g.event = { add: function (K, H, J, F) { if (K.nodeType == 3 || K.nodeType == 8) { return } if (K.setInterval && K != d) { K = d } if (!J.guid) { J.guid = this.guid++ } if (F !== C) { var I = J; J = this.proxy(I); J.data = F } var G = g.data(K, "events") || g.data(K, "events", {}), E = g.data(K, "handle") || g.data(K, "handle", function () { return typeof g !== "undefined" && !g.event.triggered ? g.event.handle.apply(arguments.callee.elem, arguments) : C }); E.elem = K; g.each(H.split(/\s+/), function (L, M) { var N = M.split("."); M = N.shift(); J.type = N.slice().sort().join("."); var O = G[M]; if (g.event.specialAll[M]) { g.event.specialAll[M].setup.call(K, F, N) } if (!O) { O = G[M] = {}; if (!g.event.special[M] || g.event.special[M].setup.call(K, F, N) === false) { if (K.addEventListener) { K.addEventListener(M, E, false) } else { if (K.attachEvent) { K.attachEvent("on" + M, E) } } } } O[J.guid] = J; g.event.global[M] = true }); K = null }, guid: 1, global: {}, remove: function (E, J, L) { if (E.nodeType == 3 || E.nodeType == 8) { return } var I = g.data(E, "events"), H, G; if (I) { if (J === C || typeof J === "string" && J.charAt(0) == ".") { for (var K in I) { this.remove(E, K + (J || "")) } } else { if (J.type) { L = J.handler; J = J.type } g.each(J.split(/\s+/), function (M, O) { var Q = O.split("."); O = Q.shift(); var N = RegExp("(^|\\.)" + Q.slice().sort().join(".*\\.") + "(\\.|$)"); if (I[O]) { if (L) { delete I[O][L.guid] } else { for (var P in I[O]) { if (N.test(I[O][P].type)) { delete I[O][P] } } } if (g.event.specialAll[O]) { g.event.specialAll[O].teardown.call(E, Q) } for (H in I[O]) { break } if (!H) { if (!g.event.special[O] || g.event.special[O].teardown.call(E, Q) === false) { if (E.removeEventListener) { E.removeEventListener(O, g.data(E, "handle"), false) } else { if (E.detachEvent) { E.detachEvent("on" + O, g.data(E, "handle")) } } } H = null; delete I[O] } } }) } for (H in I) { break } if (!H) { var F = g.data(E, "handle"); if (F) { F.elem = null } g.removeData(E, "events"); g.removeData(E, "handle") } } }, trigger: function (K, E, J, G) { var I = K.type || K; if (!G) { K = typeof K === "object" ? K[D] ? K : g.extend(g.Event(I), K) : g.Event(I); if (I.indexOf("!") >= 0) { K.type = I = I.slice(0, -1); K.exclusive = true } if (!J) { K.stopPropagation(); if (this.global[I]) { g.each(g.cache, function () { if (this.events && this.events[I]) { g.event.trigger(K, E, this.handle.elem) } }) } } if (!J || J.nodeType == 3 || J.nodeType == 8) { return C } K.result = C; K.target = J; E = g.makeArray(E); E.unshift(K) } K.currentTarget = J; var L = g.data(J, "handle"); if (L) { L.apply(J, E) } if ((!J[I] || g.nodeName(J, "a") && I == "click") && J["on" + I] && J["on" + I].apply(J, E) === false) { K.result = false } if (!G && J[I] && !K.isDefaultPrevented() && !(g.nodeName(J, "a") && I == "click")) { this.triggered = true; try { J[I]() } catch (F) { } } this.triggered = false; if (!K.isPropagationStopped()) { var H = J.parentNode || J.ownerDocument; if (H) { g.event.trigger(K, E, H, true) } } }, handle: function (E) { var L, G; E = arguments[0] = g.event.fix(E || d.event); E.currentTarget = this; var F = E.type.split("."); E.type = F.shift(); L = !F.length && !E.exclusive; var K = RegExp("(^|\\.)" + F.slice().sort().join(".*\\.") + "(\\.|$)"); G = (g.data(this, "events") || {})[E.type]; for (var I in G) { var J = G[I]; if (L || K.test(J.type)) { E.handler = J; E.data = J.data; var H = J.apply(this, arguments); if (H !== C) { E.result = H; if (H === false) { E.preventDefault(); E.stopPropagation() } } if (E.isImmediatePropagationStopped()) { break } } } }, props: "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "), fix: function (J) { if (J[D]) { return J } var H = J; J = g.Event(H); for (var I = this.props.length, F; I; ) { F = this.props[--I]; J[F] = H[F] } if (!J.target) { J.target = J.srcElement || document } if (J.target.nodeType == 3) { J.target = J.target.parentNode } if (!J.relatedTarget && J.fromElement) { J.relatedTarget = J.fromElement == J.target ? J.toElement : J.fromElement } if (J.pageX == null && J.clientX != null) { var E = document.documentElement, G = document.body; J.pageX = J.clientX + (E && E.scrollLeft || G && G.scrollLeft || 0) - (E.clientLeft || 0); J.pageY = J.clientY + (E && E.scrollTop || G && G.scrollTop || 0) - (E.clientTop || 0) } if (!J.which && (J.charCode || J.charCode === 0 ? J.charCode : J.keyCode)) { J.which = J.charCode || J.keyCode } if (!J.metaKey && J.ctrlKey) { J.metaKey = J.ctrlKey } if (!J.which && J.button) { J.which = J.button & 1 ? 1 : J.button & 2 ? 3 : J.button & 4 ? 2 : 0 } return J }, proxy: function (F, E) { E = E || function () { return F.apply(this, arguments) }; E.guid = F.guid = F.guid || E.guid || this.guid++; return E }, special: { ready: { setup: k, teardown: function () { } } }, specialAll: { live: { setup: function (E, F) { g.event.add(this, F[0], y) }, teardown: function (F) { if (F.length) { var G = 0, E = RegExp("(^|\\.)" + F[0] + "(\\.|$)"); g.each(g.data(this, "events").live || {}, function () { if (E.test(this.type)) { G++ } }); if (G < 1) { g.event.remove(this, F[0], y) } } } }} }; g.Event = function (E) { if (!this.preventDefault) { return new g.Event(E) } if (E && E.type) { this.originalEvent = E; this.type = E.type } else { this.type = E } this.timeStamp = A(); this[D] = true }; function c() { return false } function q() { return true } g.Event.prototype = { preventDefault: function () { this.isDefaultPrevented = q; var E = this.originalEvent; if (!E) { return } if (E.preventDefault) { E.preventDefault() } E.returnValue = false }, stopPropagation: function () { this.isPropagationStopped = q; var E = this.originalEvent; if (!E) { return } if (E.stopPropagation) { E.stopPropagation() } E.cancelBubble = true }, stopImmediatePropagation: function () { this.isImmediatePropagationStopped = q; this.stopPropagation() }, isDefaultPrevented: c, isPropagationStopped: c, isImmediatePropagationStopped: c }; var w = function (E) { var G = E.relatedTarget; while (G && G != this) { try { G = G.parentNode } catch (F) { G = this } } if (G != this) { E.type = E.data; g.event.handle.apply(this, arguments) } }; g.each({ mouseover: "mouseenter", mouseout: "mouseleave" }, function (F, E) { g.event.special[E] = { setup: function () { g.event.add(this, F, w, E) }, teardown: function () { g.event.remove(this, F, w) } } }); g.fn.extend({ bind: function (E, F, G) { return E == "unload" ? this.one(E, F, G) : this.each(function () { g.event.add(this, E, G || F, G && F) }) }, one: function (E, F, H) { var G = g.event.proxy(H || F, function (I) { g(this).unbind(I, G); return (H || F).apply(this, arguments) }); return this.each(function () { g.event.add(this, E, G, H && F) }) }, unbind: function (F, E) { return this.each(function () { g.event.remove(this, F, E) }) }, trigger: function (E, F) { return this.each(function () { g.event.trigger(E, F, this) }) }, triggerHandler: function (G, F) { if (this[0]) { var E = g.Event(G); E.preventDefault(); E.stopPropagation(); g.event.trigger(E, F, this[0]); return E.result } }, toggle: function (F) { var G = arguments, E = 1; while (E < G.length) { g.event.proxy(F, G[E++]) } return this.click(g.event.proxy(F, function (H) { this.lastToggle = (this.lastToggle || 0) % E; H.preventDefault(); return G[this.lastToggle++].apply(this, arguments) || false })) }, hover: function (E, F) { return this.mouseenter(E).mouseleave(F) }, ready: function (E) { k(); if (g.isReady) { E.call(document, g) } else { g.readyList.push(E) } return this }, live: function (F, E) { var G = g.event.proxy(E); G.guid += this.selector + F; g(document).bind(a(F, this.selector), this.selector, G); return this }, die: function (F, E) { g(document).unbind(a(F, this.selector), E ? { guid: E.guid + this.selector + F} : null); return this } }); function y(F) { var G = RegExp("(^|\\.)" + F.type + "(\\.|$)"), E = true, H = []; g.each(g.data(this, "events").live || [], function (I, J) { if (G.test(J.type)) { var K = g(F.target).closest(J.data)[0]; if (K) { H.push({ elem: K, fn: J }) } } }); H.sort(function (J, I) { return g.data(J.elem, "closest") - g.data(I.elem, "closest") }); g.each(H, function () { if (this.fn.call(this.elem, F, this.fn.data) === false) { return E = false } }); return E } function a(F, E) { return ["live", F, E.replace(/\./g, "`").replace(/ /g, "|")].join(".") } g.extend({ isReady: false, readyList: [], ready: function () { if (!g.isReady) { g.isReady = true; if (g.readyList) { g.each(g.readyList, function () { this.call(document, g) }); g.readyList = null } g(document).triggerHandler("ready") } } }); var t = false; function k() { if (t) { return } t = true; if (document.addEventListener) { document.addEventListener("DOMContentLoaded", function () { document.removeEventListener("DOMContentLoaded", arguments.callee, false); g.ready() }, false) } else { if (document.attachEvent) { document.attachEvent("onreadystatechange", function () { if (document.readyState === "complete") { document.detachEvent("onreadystatechange", arguments.callee); g.ready() } }); if (document.documentElement.doScroll && d == d.top) { (function () { if (g.isReady) { return } try { document.documentElement.doScroll("left") } catch (E) { setTimeout(arguments.callee, 0); return } g.ready() })() } } } g.event.add(d, "load", g.ready) } g.each("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error".split(","), function (F, E) { g.fn[E] = function (G) { return G ? this.bind(E, G) : this.trigger(E) } }); g(d).bind("unload", function () { for (var E in g.cache) { if (E != 1 && g.cache[E].handle) { g.event.remove(g.cache[E].handle.elem) } } }); (function () { g.support = {}; var H = document.documentElement, I = document.createElement("script"), F = document.createElement("div"), E = "script" + new Date().getTime(); F.style.display = "none"; F.innerHTML = '   <link/><table></table><a href="a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>'; var J = F.getElementsByTagName("*"), G = F.getElementsByTagName("a")[0]; if (!J || !J.length || !G) { return } g.support = { leadingWhitespace: F.firstChild.nodeType == 3, tbody: !F.getElementsByTagName("tbody").length, objectAll: !!F.getElementsByTagName("object")[0].getElementsByTagName("*").length, htmlSerialize: !!F.getElementsByTagName("link").length, style: /red/.test(G.getAttribute("style")), hrefNormalized: G.getAttribute("href") === "/a", opacity: G.style.opacity === "0.5", cssFloat: !!G.style.cssFloat, scriptEval: false, noCloneEvent: true, boxModel: null }; I.type = "text/javascript"; try { I.appendChild(document.createTextNode("window." + E + "=1;")) } catch (K) { } H.insertBefore(I, H.firstChild); if (d[E]) { g.support.scriptEval = true; delete d[E] } H.removeChild(I); if (F.attachEvent && F.fireEvent) { F.attachEvent("onclick", function () { g.support.noCloneEvent = false; F.detachEvent("onclick", arguments.callee) }); F.cloneNode(true).fireEvent("onclick") } g(function () { var L = document.createElement("div"); L.style.width = L.style.paddingLeft = "1px"; document.body.appendChild(L); g.boxModel = g.support.boxModel = L.offsetWidth === 2; document.body.removeChild(L).style.display = "none" }) })(); var s = g.support.cssFloat ? "cssFloat" : "styleFloat"; g.props = { "for": "htmlFor", "class": "className", "float": s, cssFloat: s, styleFloat: s, readonly: "readOnly", maxlength: "maxLength", cellspacing: "cellSpacing", rowspan: "rowSpan", tabindex: "tabIndex" }; g.fn.extend({ _load: g.fn.load, load: function (I, E, F) { if (typeof I !== "string") { return this._load(I) } var K = I.indexOf(" "); if (K >= 0) { var G = I.slice(K, I.length); I = I.slice(0, K) } var J = "GET"; if (E) { if (g.isFunction(E)) { F = E; E = null } else { if (typeof E === "object") { E = g.param(E); J = "POST" } } } var H = this; g.ajax({ url: I, type: J, dataType: "html", data: E, complete: function (L, M) { if (M == "success" || M == "notmodified") { H.html(G ? g("<div/>").append(L.responseText.replace(/<script(.|\s)*?\/script>/g, "")).find(G) : L.responseText) } if (F) { H.each(F, [L.responseText, M, L]) } } }); return this }, serialize: function () { return g.param(this.serializeArray()) }, serializeArray: function () { return this.map(function () { return this.elements ? g.makeArray(this.elements) : this }).filter(function () { return this.name && !this.disabled && (this.checked || /select|textarea/i.test(this.nodeName) || /text|hidden|password|search/i.test(this.type)) }).map(function (G, E) { var F = g(this).val(); return F == null ? null : g.isArray(F) ? g.map(F, function (I, H) { return { name: E.name, value: I} }) : { name: E.name, value: F} }).get() } }); g.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","), function (E, F) { g.fn[F] = function (G) { return this.bind(F, G) } }); var m = A(); g.extend({ get: function (G, E, F, H) { if (g.isFunction(E)) { F = E; E = null } return g.ajax({ type: "GET", url: G, data: E, success: F, dataType: H }) }, getScript: function (E, F) { return g.get(E, null, F, "script") }, getJSON: function (G, E, F) { return g.get(G, E, F, "json") }, post: function (G, E, F, H) { if (g.isFunction(E)) { F = E; E = {} } return g.ajax({ type: "POST", url: G, data: E, success: F, dataType: H }) }, ajaxSetup: function (E) { g.extend(g.ajaxSettings, E) }, ajaxSettings: { url: location.href, global: true, type: "GET", contentType: "application/x-www-form-urlencoded", processData: true, async: true, xhr: function () { return d.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest() }, accepts: { xml: "application/xml, text/xml", html: "text/html", script: "text/javascript, application/javascript", json: "application/json, text/javascript", text: "text/plain", _default: "*/*"} }, lastModified: {}, ajax: function (M) { M = g.extend(true, M, g.extend(true, {}, g.ajaxSettings, M)); var W, F = /=\?(&|$)/g, R, V, G = M.type.toUpperCase(); if (M.data && M.processData && typeof M.data !== "string") { M.data = g.param(M.data) } if (M.dataType == "jsonp") { if (G == "GET") { if (!M.url.match(F)) { M.url += (M.url.match(/\?/) ? "&" : "?") + (M.jsonp || "callback") + "=?" } } else { if (!M.data || !M.data.match(F)) { M.data = (M.data ? M.data + "&" : "") + (M.jsonp || "callback") + "=?" } } M.dataType = "json" } if (M.dataType == "json" && (M.data && M.data.match(F) || M.url.match(F))) { W = "jsonp" + m++; if (M.data) { M.data = (M.data + "").replace(F, "=" + W + "$1") } M.url = M.url.replace(F, "=" + W + "$1"); M.dataType = "script"; d[W] = function (X) { V = X; I(); L(); d[W] = C; try { delete d[W] } catch (Y) { } if (H) { H.removeChild(T) } } } if (M.dataType == "script" && M.cache == null) { M.cache = false } if (M.cache === false && G == "GET") { var E = A(); var U = M.url.replace(/(\?|&)_=.*?(&|$)/, "$1_=" + E + "$2"); M.url = U + (U == M.url ? (M.url.match(/\?/) ? "&" : "?") + "_=" + E : "") } if (M.data && G == "GET") { M.url += (M.url.match(/\?/) ? "&" : "?") + M.data; M.data = null } if (M.global && !g.active++) { g.event.trigger("ajaxStart") } var Q = /^(\w+:)?\/\/([^\/?#]+)/.exec(M.url); if (M.dataType == "script" && G == "GET" && Q && (Q[1] && Q[1] != location.protocol || Q[2] != location.host)) { var H = document.getElementsByTagName("head")[0]; var T = document.createElement("script"); T.src = M.url; if (M.scriptCharset) { T.charset = M.scriptCharset } if (!W) { var O = false; T.onload = T.onreadystatechange = function () { if (!O && (!this.readyState || this.readyState == "loaded" || this.readyState == "complete")) { O = true; I(); L(); T.onload = T.onreadystatechange = null; H.removeChild(T) } } } H.appendChild(T); return C } var K = false; var J = M.xhr(); if (M.username) { J.open(G, M.url, M.async, M.username, M.password) } else { J.open(G, M.url, M.async) } try { if (M.data) { J.setRequestHeader("Content-Type", M.contentType) } if (M.ifModified) { J.setRequestHeader("If-Modified-Since", g.lastModified[M.url] || "Thu, 01 Jan 1970 00:00:00 GMT") } J.setRequestHeader("X-Requested-With", "XMLHttpRequest"); J.setRequestHeader("Accept", M.dataType && M.accepts[M.dataType] ? M.accepts[M.dataType] + ", */*" : M.accepts._default) } catch (S) { } if (M.beforeSend && M.beforeSend(J, M) === false) { if (M.global && ! --g.active) { g.event.trigger("ajaxStop") } J.abort(); return false } if (M.global) { g.event.trigger("ajaxSend", [J, M]) } var N = function (X) { if (J.readyState == 0) { if (P) { clearInterval(P); P = null; if (M.global && ! --g.active) { g.event.trigger("ajaxStop") } } } else { if (!K && J && (J.readyState == 4 || X == "timeout")) { K = true; if (P) { clearInterval(P); P = null } R = X == "timeout" ? "timeout" : !g.httpSuccess(J) ? "error" : M.ifModified && g.httpNotModified(J, M.url) ? "notmodified" : "success"; if (R == "success") { try { V = g.httpData(J, M.dataType, M) } catch (Z) { R = "parsererror" } } if (R == "success") { var Y; try { Y = J.getResponseHeader("Last-Modified") } catch (Z) { } if (M.ifModified && Y) { g.lastModified[M.url] = Y } if (!W) { I() } } else { g.handleError(M, J, R) } L(); if (X) { J.abort() } if (M.async) { J = null } } } }; if (M.async) { var P = setInterval(N, 13); if (M.timeout > 0) { setTimeout(function () { if (J && !K) { N("timeout") } }, M.timeout) } } try { J.send(M.data) } catch (S) { g.handleError(M, J, null, S) } if (!M.async) { N() } function I() { if (M.success) { M.success(V, R) } if (M.global) { g.event.trigger("ajaxSuccess", [J, M]) } } function L() { if (M.complete) { M.complete(J, R) } if (M.global) { g.event.trigger("ajaxComplete", [J, M]) } if (M.global && ! --g.active) { g.event.trigger("ajaxStop") } } return J }, handleError: function (H, F, G, E) { if (H.error) { H.error(F, G, E) } if (H.global) { g.event.trigger("ajaxError", [F, H, E]) } }, active: 0, httpSuccess: function (F) { try { return !F.status && location.protocol == "file:" || F.status >= 200 && F.status < 300 || F.status == 304 || F.status == 1223 } catch (E) { } return false }, httpNotModified: function (E, G) { try { var F = E.getResponseHeader("Last-Modified"); return E.status == 304 || F == g.lastModified[G] } catch (H) { } return false }, httpData: function (F, J, I) { var H = F.getResponseHeader("content-type"), G = J == "xml" || !J && H && H.indexOf("xml") >= 0, E = G ? F.responseXML : F.responseText; if (G && E.documentElement.tagName == "parsererror") { throw "parsererror" } if (I && I.dataFilter) { E = I.dataFilter(E, J) } if (typeof E === "string") { if (J == "script") { g.globalEval(E) } if (J == "json") { E = d["eval"]("(" + E + ")") } } return E }, param: function (G) { var E = []; function F(I, J) { E[E.length] = encodeURIComponent(I) + "=" + encodeURIComponent(J) } if (g.isArray(G) || G.jquery) { g.each(G, function () { F(this.name, this.value) }) } else { for (var H in G) { if (g.isArray(G[H])) { g.each(G[H], function () { F(H, this) }) } else { F(H, g.isFunction(G[H]) ? G[H]() : G[H]) } } } return E.join("&").replace(/%20/g, "+") } }); var e = {}, f, z = [["height", "marginTop", "marginBottom", "paddingTop", "paddingBottom"], ["width", "marginLeft", "marginRight", "paddingLeft", "paddingRight"], ["opacity"]]; function p(E, G) { var F = {}; g.each(z.concat.apply([], z.slice(0, G)), function () { F[this] = E }); return F } g.fn.extend({ show: function (L, F) { if (L) { return this.animate(p("show", 3), L, F) } else { for (var J = 0, H = this.length; J < H; J++) { var G = g.data(this[J], "olddisplay"); this[J].style.display = G || ""; if (g.css(this[J], "display") === "none") { var I = this[J].tagName, E; if (e[I]) { E = e[I] } else { var K = g("<" + I + " />").appendTo("body"); E = K.css("display"); if (E === "none") { E = "block" } K.remove(); e[I] = E } g.data(this[J], "olddisplay", E) } } for (var J = 0, H = this.length; J < H; J++) { this[J].style.display = g.data(this[J], "olddisplay") || "" } return this } }, hide: function (E, F) { if (E) { return this.animate(p("hide", 3), E, F) } else { for (var I = 0, H = this.length; I < H; I++) { var G = g.data(this[I], "olddisplay"); if (!G && G !== "none") { g.data(this[I], "olddisplay", g.css(this[I], "display")) } } for (var I = 0, H = this.length; I < H; I++) { this[I].style.display = "none" } return this } }, _toggle: g.fn.toggle, toggle: function (F, E) { var G = typeof F === "boolean"; return g.isFunction(F) && g.isFunction(E) ? this._toggle.apply(this, arguments) : F == null || G ? this.each(function () { var H = G ? F : g(this).is(":hidden"); g(this)[H ? "show" : "hide"]() }) : this.animate(p("toggle", 3), F, E) }, fadeTo: function (G, F, E) { return this.animate({ opacity: F }, G, E) }, animate: function (F, H, E, I) { var G = g.speed(H, E, I); return this[G.queue === false ? "each" : "queue"](function () { var L = g.extend({}, G), J, M = this.nodeType == 1 && g(this).is(":hidden"), K = this; for (J in F) { if (F[J] == "hide" && M || F[J] == "show" && !M) { return L.complete.call(this) } if ((J == "height" || J == "width") && this.style) { L.display = g.css(this, "display"); L.overflow = this.style.overflow } } if (L.overflow != null) { this.style.overflow = "hidden" } L.curAnim = g.extend({}, F); g.each(F, function (S, P) { var O = new g.fx(K, L, S); if (/toggle|show|hide/.test(P)) { O[P == "toggle" ? M ? "show" : "hide" : P](F) } else { var N = P.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/), Q = O.cur(true) || 0; if (N) { var R = parseFloat(N[2]), T = N[3] || "px"; if (T != "px") { K.style[S] = (R || 1) + T; Q = (R || 1) / O.cur(true) * Q; K.style[S] = Q + T } if (N[1]) { R = (N[1] == "-=" ? -1 : 1) * R + Q } O.custom(Q, R, T) } else { O.custom(Q, P, "") } } }); return true }) }, stop: function (E, G) { var F = g.timers; if (E) { this.queue([]) } this.each(function () { for (var H = F.length - 1; H >= 0; H--) { if (F[H].elem == this) { if (G) { F[H](true) } F.splice(H, 1) } } }); if (!G) { this.dequeue() } return this } }); g.each({ slideDown: p("show", 1), slideUp: p("hide", 1), slideToggle: p("toggle", 1), fadeIn: { opacity: "show" }, fadeOut: { opacity: "hide"} }, function (E, F) { g.fn[E] = function (G, H) { return this.animate(F, G, H) } }); g.extend({ speed: function (E, F, H) { var G = typeof E === "object" ? E : { complete: H || !H && F || g.isFunction(E) && E, duration: E, easing: H && F || F && !g.isFunction(F) && F }; G.duration = g.fx.off ? 0 : typeof G.duration === "number" ? G.duration : g.fx.speeds[G.duration] || g.fx.speeds._default; G.old = G.complete; G.complete = function () { if (G.queue !== false) { g(this).dequeue() } if (g.isFunction(G.old)) { G.old.call(this) } }; return G }, easing: { linear: function (E, F, G, H) { return G + H * E }, swing: function (E, F, G, H) { return (-Math.cos(E * Math.PI) / 2 + 0.5) * H + G } }, timers: [], fx: function (E, G, F) { this.options = G; this.elem = E; this.prop = F; if (!G.orig) { G.orig = {} } } }); g.fx.prototype = { update: function () { if (this.options.step) { this.options.step.call(this.elem, this.now, this) } (g.fx.step[this.prop] || g.fx.step._default)(this); if ((this.prop == "height" || this.prop == "width") && this.elem.style) { this.elem.style.display = "block" } }, cur: function (F) { if (this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null)) { return this.elem[this.prop] } var E = parseFloat(g.css(this.elem, this.prop, F)); return E && E > -10000 ? E : parseFloat(g.curCSS(this.elem, this.prop)) || 0 }, custom: function (F, E, I) { this.startTime = A(); this.start = F; this.end = E; this.unit = I || this.unit || "px"; this.now = this.start; this.pos = this.state = 0; var G = this; function H(J) { return G.step(J) } H.elem = this.elem; if (H() && g.timers.push(H) && !f) { f = setInterval(function () { var K = g.timers; for (var J = 0; J < K.length; J++) { if (!K[J]()) { K.splice(J--, 1) } } if (!K.length) { clearInterval(f); f = C } }, 13) } }, show: function () { this.options.orig[this.prop] = g.attr(this.elem.style, this.prop); this.options.show = true; this.custom(this.prop == "width" || this.prop == "height" ? 1 : 0, this.cur()); g(this.elem).show() }, hide: function () { this.options.orig[this.prop] = g.attr(this.elem.style, this.prop); this.options.hide = true; this.custom(this.cur(), 0) }, step: function (J) { var I = A(); if (J || I >= this.options.duration + this.startTime) { this.now = this.end; this.pos = this.state = 1; this.update(); this.options.curAnim[this.prop] = true; var G = true; for (var H in this.options.curAnim) { if (this.options.curAnim[H] !== true) { G = false } } if (G) { if (this.options.display != null) { this.elem.style.overflow = this.options.overflow; this.elem.style.display = this.options.display; if (g.css(this.elem, "display") == "none") { this.elem.style.display = "block" } } if (this.options.hide) { g(this.elem).hide() } if (this.options.hide || this.options.show) { for (var E in this.options.curAnim) { g.attr(this.elem.style, E, this.options.orig[E]) } } this.options.complete.call(this.elem) } return false } else { var F = I - this.startTime; this.state = F / this.options.duration; this.pos = g.easing[this.options.easing || (g.easing.swing ? "swing" : "linear")](this.state, F, 0, 1, this.options.duration); this.now = this.start + (this.end - this.start) * this.pos; this.update() } return true } }; g.extend(g.fx, { speeds: { slow: 600, fast: 200, _default: 400 }, step: { opacity: function (E) { g.attr(E.elem.style, "opacity", E.now) }, _default: function (E) { if (E.elem.style && E.elem.style[E.prop] != null) { E.elem.style[E.prop] = E.now + E.unit } else { E.elem[E.prop] = E.now } } } }); if (document.documentElement.getBoundingClientRect) { g.fn.offset = function () { if (!this[0]) { return { top: 0, left: 0} } if (this[0] === this[0].ownerDocument.body) { return g.offset.bodyOffset(this[0]) } var I = this[0].getBoundingClientRect(), L = this[0].ownerDocument, H = L.body, G = L.documentElement, F = G.clientTop || H.clientTop || 0, E = G.clientLeft || H.clientLeft || 0, K = I.top + (self.pageYOffset || g.boxModel && G.scrollTop || H.scrollTop) - F, J = I.left + (self.pageXOffset || g.boxModel && G.scrollLeft || H.scrollLeft) - E; return { top: K, left: J} } } else { g.fn.offset = function () { if (!this[0]) { return { top: 0, left: 0} } if (this[0] === this[0].ownerDocument.body) { return g.offset.bodyOffset(this[0]) } g.offset.initialized || g.offset.initialize(); var J = this[0], G = J.offsetParent, F = J, O = J.ownerDocument, M, H = O.documentElement, K = O.body, L = O.defaultView, E = L.getComputedStyle(J, null), N = J.offsetTop, I = J.offsetLeft; while ((J = J.parentNode) && J !== K && J !== H) { M = L.getComputedStyle(J, null); N -= J.scrollTop, I -= J.scrollLeft; if (J === G) { N += J.offsetTop, I += J.offsetLeft; if (g.offset.doesNotAddBorder && !(g.offset.doesAddBorderForTableAndCells && /^t(able|d|h)$/i.test(J.tagName))) { N += parseInt(M.borderTopWidth, 10) || 0, I += parseInt(M.borderLeftWidth, 10) || 0 } F = G, G = J.offsetParent } if (g.offset.subtractsBorderForOverflowNotVisible && M.overflow !== "visible") { N += parseInt(M.borderTopWidth, 10) || 0, I += parseInt(M.borderLeftWidth, 10) || 0 } E = M } if (E.position === "relative" || E.position === "static") { N += K.offsetTop, I += K.offsetLeft } if (E.position === "fixed") { N += Math.max(H.scrollTop, K.scrollTop), I += Math.max(H.scrollLeft, K.scrollLeft) } return { top: N, left: I} } } g.offset = { initialize: function () { if (this.initialized) { return } var L = document.body, F = document.createElement("div"), H, G, N, I, M, E, J = L.style.marginTop, K = '<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>'; M = { position: "absolute", top: 0, left: 0, margin: 0, border: 0, width: "1px", height: "1px", visibility: "hidden" }; for (E in M) { F.style[E] = M[E] } F.innerHTML = K; L.insertBefore(F, L.firstChild); H = F.firstChild, G = H.firstChild, I = H.nextSibling.firstChild.firstChild; this.doesNotAddBorder = G.offsetTop !== 5; this.doesAddBorderForTableAndCells = I.offsetTop === 5; H.style.overflow = "hidden", H.style.position = "relative"; this.subtractsBorderForOverflowNotVisible = G.offsetTop === -5; L.style.marginTop = "1px"; this.doesNotIncludeMarginInBodyOffset = L.offsetTop === 0; L.style.marginTop = J; L.removeChild(F); this.initialized = true }, bodyOffset: function (G) { g.offset.initialized || g.offset.initialize(); var F = G.offsetTop, E = G.offsetLeft; if (g.offset.doesNotIncludeMarginInBodyOffset) { F += parseInt(g.curCSS(G, "marginTop", true), 10) || 0, E += parseInt(g.curCSS(G, "marginLeft", true), 10) || 0 } return { top: F, left: E} } }; g.fn.extend({ position: function () { var E = 0, J = 0, H; if (this[0]) { var I = this.offsetParent(), F = this.offset(), G = /^body|html$/i.test(I[0].tagName) ? { top: 0, left: 0} : I.offset(); F.top -= b(this, "marginTop"); F.left -= b(this, "marginLeft"); G.top += b(I, "borderTopWidth"); G.left += b(I, "borderLeftWidth"); H = { top: F.top - G.top, left: F.left - G.left} } return H }, offsetParent: function () { var E = this[0].offsetParent || document.body; while (E && !/^body|html$/i.test(E.tagName) && g.css(E, "position") == "static") { E = E.offsetParent } return g(E) } }); g.each(["Left", "Top"], function (E, G) { var F = "scroll" + G; g.fn[F] = function (H) { if (!this[0]) { return null } return H !== C ? this.each(function () { this == d || this == document ? d.scrollTo(!E ? H : g(d).scrollLeft(), E ? H : g(d).scrollTop()) : this[F] = H }) : this[0] == d || this[0] == document ? self[E ? "pageYOffset" : "pageXOffset"] || g.boxModel && document.documentElement[F] || document.body[F] : this[0][F] } }); g.each(["Height", "Width"], function (E, I) { var G = E ? "Left" : "Top", J = E ? "Right" : "Bottom", H = I.toLowerCase(); g.fn["inner" + I] = function () { return this[0] ? g.css(this[0], H, false, "padding") : null }; g.fn["outer" + I] = function (K) { return this[0] ? g.css(this[0], H, false, K ? "margin" : "border") : null }; var F = I.toLowerCase(); g.fn[F] = function (K) { return this[0] == d ? document.compatMode == "CSS1Compat" && document.documentElement["client" + I] || document.body["client" + I] : this[0] == document ? Math.max(document.documentElement["client" + I], document.body["scroll" + I], document.documentElement["scroll" + I], document.body["offset" + I], document.documentElement["offset" + I]) : K === C ? this.length ? g.css(this[0], F) : null : this.css(F, typeof K === "string" ? K : K + "px") } }) })(); var SKIN_PATH = "/Skins/default/"; function initCommonHeader() { $.get("/ajax.ashx?action=initcommonheader&t=" + Math.random(), function (d) { var e = gav(d, "showIM"); showIM(e); var f = gav(d, "username"); if (f.length > 0) { $("#guest").hide(); $("#user").show(); $j("commonHeaderGuest").hide(); $j("commonHeaderUsername").html(f); $j("commonHeaderUser").fadeIn(80); $j("login_user").show(); $j("user_default").hide(); return f } }); return "" } function gav(g, f) { var h = $(g); var e = $(h.find("node[key=" + f + "]")).text(); return e } function showIM(b) { if ($("#bodd").html() != "") { if (b == "True") { $("#bodd").show(); $("#kefubtn").hide(); $("#divOranIm").show() } else { $("#bodd").hide(); $("#kefubtn").show(); $("#divOranIm").hide() } } } function initCommonHeaderKeywords(b) { if (b == "") { b = "6" } $.post("/ajax.ashx?action=initcommonheaderkeywords&t=" + Math.random(), { s: b }, function (a) { $j("commonHeaderkeywords").html(a) }) } function $j(b) { return $("#" + b) } function $v(e, f) { if (f == null) { var d = $j(e).attr("value"); if (d == null || d == undefined) { return "" } return d } else { return $j(e).attr("value", f) } } function $tv(b) { return $.trim($v(b)) } function subscription(g, f) { if (f == null) { f = "txtSubscriptionEmail" } var h = $.trim($j(f).val()); var e = /\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/; if (h.length == 0) { $a("E-Mail 不可为空"); $j(f).focus(); return false } if (!e.test(h)) { $a("E-Mail 格式错误。"); $j(f).focus(); return false } showProc(g); $.post("/ajax.ashx?action=subscription&t=" + Math.random(), { email: h }, function (a) { var b = gav(a, "state"); var c = gav(a, "msg"); if (b == "1") { $a(c, 1) } else { $a(c) } showProc(g, false) }) } function showProc(f, e) { var d = $j("imgProc"); if (e == null) { e = true } if (e) { $(f).hide(); if (d.length > 0) { d.remove() } $("<img src='" + SKIN_PATH + "img/processing.gif' id='imgProc' alt='正在处理' />").insertAfter(f) } else { $(f).show(); d.remove() } } function hideDdl(e) { var g = ["select", "iframe", "applet", "object"]; var f; if (e != null) { f = $j(e) } else { f = $(document.body) } for (var h = 0; h < g.length; ++h) { f.find(g[h]).css("visibility", "hidden") } } function $a(F, s, B, w, t, H) { if (s == null) { s = 2 } if (B == null) { B = -1 } if (t == null) { t = "消息提示" } hideDdl(); var C = $j("mesbook1"); if (C.length == 0) { var u = "<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(u) } var C = $j("mesbook1"); var G = $j("mesbook1ImgClose"); var D = $j("mesbook1Icon"); var x = $j("mesbook1Msg"); var v = $j("mesbook1AutoClose"); var E = $j("mesbook1Delay"); var y = $j("mesbook1Title"); var r = $j("mesbook1Btns"); y.html(t); x.html(F); var z = SKIN_PATH + "Img/"; switch (s) { case 1: z += "ico_ok.gif"/*tpa=http://wubaiyi.net/wby/16126/js/ico_ok.gif*/; break; case 2: z += "ico_info.gif"/*tpa=http://wubaiyi.net/wby/16126/js/ico_info.gif*/; break; case 3: z += "ioc_ques.gif"/*tpa=http://wubaiyi.net/wby/16126/js/ioc_ques.gif*/; break; case -1: z += "ico_error.gif"/*tpa=http://wubaiyi.net/wby/16126/js/ico_error.gif*/; break; default: z += "ico_normal.gif"/*tpa=http://wubaiyi.net/wby/16126/js/ico_normal.gif*/; break } D.attr("src", z); var A = r.find("input"); A.removeAttr("onclick"); A.click(function () { hideMsg(); if (w != null) { $j(w).focus() } if (H != null) { H() } }); G.removeAttr("onclick"); G.click(function () { hideMsg(); if (w != null) { $j(w).focus() } if (H != null) { H() } }); A.focus(); showFullBg(); setCM("mesbook1"); relocation("mesbook1"); C.fadeIn(80) } function showFullBg(o, x, u, r, t, y, A) { if (o == null) { o = "oran_full_bg" } var B = $j(o); if (B.length == 0) { var q = "<div style='position:absolute;top:0;left:0;display:none;' id='" + o + "'></div>"; $(document.body).append(q) } if (u == null) { u = 0.75 } if (r == null) { r = "#777" } if (t == null) { t = "9" } if (y == null) { y = 80 } if (x == null) { x = true } var B = $j(o); var p = document.documentElement; var z = p.scrollWidth; var v = p.scrollHeight; var w = p.clientHeight; var s = p.clientWidth; if (v < w) { v = w } if (z < s) { z = s } B.css({ "z-index": t, background: r, opacity: u, filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=" + u * 100 + ")" }); B.css({ height: v, width: z }); if (x) { hideDdl(null, A) } B.fadeIn(y); if (A != null) { A() } } function setCM(g, i) { var j; if (typeof g.toString().toLowerCase() == "string") { j = $j(g) } else { j = $(g) } if (i == null) { i = 80 } var k = j.height() / 2; var h = j.width() / 2; j.css({ top: "50%", "margin-top": "-" + k + "px", left: "50%", "margin-left": "-" + h + "px" }); var l = navigator.userAgent.toUpperCase().indexOf("MSIE") == -1 ? false : true; j.css({ position: "absolute", "z-index": "999" }); j.fadeIn(i) } function setCMS(l, i) { var j; if (typeof l.toString().toLowerCase() == "string") { j = $j(l) } else { j = $(l) } if (i == null) { i = 80 } var k = j.height() / 2; var g = j.width() / 2; var h = document.documentElement.scrollTop; if (h > 100) { j.css({ top: "50%", "margin-top": "-" + k + "px", left: "50%", "margin-left": "-" + g + "px" }) } else { k = 200; j.css({ "margin-top": "-" + k + "px", left: "50%", "margin-left": "-" + g + "px" }) } j.css({ position: "absolute", "z-index": "999" }); j.fadeIn(i) } function relocation(f) { var h; if (typeof f.toString().toLowerCase() == "string") { h = $j(f) } else { h = $(f) } if (h.length == 0) { return } var g = document.documentElement.scrollTop || document.body.scrollTop; var e = g - h.height() / 2 + "px"; h.css({ "margin-top": e }) } function hideMsg() { showDdl(); var b = $j("mesbook1"); hideFullBg(); b.fadeOut(80) } function showDdl() { var c = ["select", "iframe", "applet", "object"]; for (var d = 0; d < c.length; ++d) { $(c[d]).css("visibility", "visible") } } function hideFullBg(e, f) { if (e == null) { e = "oran_full_bg" } if (f == null) { f = 80 } var d = $j(e); d.fadeOut(f); showDdl() } function LoginCheck(d, c) { if (d == undefined || d.length == 0) { $a("请输入用户名", "错误提示", "txtUsername"); return } if (c == undefined || c.length == 0) { $a("请输入密码", "错误提示", "txtPassword"); return } $.post("/ajax.ashx?action=logincheck&t=" + Math.random(), { username: d, password: c }, function (a) { if (gav(a, "state") == "1") { $a(gav(a, "msg"), null, null, null, null, function () { window.location.href = location.href + "?t=" + Math.random() }) } else { $a(gav(a, "msg")) } }) } function SearchObjectByGet(h, e, f) { if (f == null) { f = false } var g = GetSearchURL(h, e); if (f) { return g } window.location.href = g } function GetSearchURL(n, i) { if (i == null) { i = getIntactRawUrl() } var k = n.split("|"); for (var m = 0; m < k.length; m++) { var p = k[m].split(","); var j; var l = document.getElementById(p[0]); if (p.length == 2) { j = p[1] } else { j = p[0] } if (l != null) { var o = l.value; if (o != null) { i += "&" + j + "=" + encodeURIComponent(o) } } } return i } function getIntactRawUrl() { var d = location.href; var c; c = d.lastIndexOf("#"); d = d.substring(0, c); return d } var addBookmark = function (j) { var i = document.title; var l = document.URL; var k = window.event || arguments.callee.caller.arguments[0]; var e = { IE: /MSIE/.test(window.navigator.userAgent) && !window.opera, FF: /Firefox/.test(window.navigator.userAgent), OP: !!window.opera }; j.onclick = null; if (e.IE) { j.attachEvent("onclick", function () { try { window.external.AddFavorite(l, i); window.event.returnValue = false } catch (b) { alert("加入收藏失败，请使用Ctrl+D进行添加") } }) } else { if (e.FF || j.nodeName.toLowerCase() == "a") { if (e.FF) { j.setAttribute("rel", "sidebar"), j.title = i, j.href = l } else { alert("加入收藏失败，请使用Ctrl+D进行添加") } } else { if (e.OP) { var a = document.createElement("a"); a.rel = "sidebar", a.title = i, a.href = l; j.parentNode.insertBefore(a, j); a.appendChild(j); a = null } else { alert("加入收藏失败，请使用Ctrl+D进行添加") } } } }; function subscription(g, f) { if (f == null) { f = "txtSubscriptionEmail" } var h = $.trim($j(f).val()); var e = /\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/; if (h.length == 0) { $a("E-Mail 不可为空"); $j(f).focus(); return false } if (!e.test(h)) { $a("E-Mail 格式错误。"); $j(f).focus(); return false } showProc(g); $.post("/ajax.ashx?action=subscription&t=" + Math.random(), { email: h }, function (a) { var b = gav(a, "state"); var c = gav(a, "msg"); if (b == "1") { $a(c, 1) } else { $a(c) } showProc(g, false) }) } function SetHome(h, g) { try { h.style.behavior = "url(#default#homepage)"; h.setHomePage(g) } catch (e) { if (window.netscape) { try { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect") } catch (e) { alert("抱歉！您的浏览器不支持直接设为首页。请在浏览器地址栏输入“about:config”并回车然后将[signed.applets.codebase_principal_support]设置为“true”，点击“加入收藏”后忽略安全提示，即可设置成功。") } var f = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch); f.setCharPref("browser.startup.homepage", g) } else { alert("抱歉，您的浏览器不支持自动设置首页, 请使用浏览器菜单手动设置!") } } } function Marquee() { this.ID = document.getElementById(arguments[0]); if (!this.ID) { alert('您要设置的"' + arguments[0] + '"初始化错误\r\n请检查标签ID设置是否正确!'); this.ID = -1; return } this.Direction = this.Width = this.Height = this.DelayTime = this.WaitTime = this.CTL = this.StartID = this.Stop = this.MouseOver = 0; this.Step = 1; this.Timer = 30; this.DirectionArray = { top: 0, up: 0, bottom: 1, down: 1, left: 2, right: 3 }; if (typeof arguments[1] == "number" || typeof arguments[1] == "string") { this.Direction = arguments[1] } if (typeof arguments[2] == "number") { this.Step = arguments[2] } if (typeof arguments[3] == "number") { this.Width = arguments[3] } if (typeof arguments[4] == "number") { this.Height = arguments[4] } if (typeof arguments[5] == "number") { this.Timer = arguments[5] } if (typeof arguments[6] == "number") { this.DelayTime = arguments[6] } if (typeof arguments[7] == "number") { this.WaitTime = arguments[7] } if (typeof arguments[8] == "number") { this.ScrollStep = arguments[8] } this.ID.style.overflow = this.ID.style.overflowX = this.ID.style.overflowY = "hidden"; this.ID.noWrap = true; this.IsNotOpera = navigator.userAgent.toLowerCase().indexOf("opera") == -1; if (arguments.length >= 7) { this.Start() } } Marquee.prototype.Start = function () { if (this.ID == -1) { return } if (this.WaitTime < 800) { this.WaitTime = 800 } if (this.Timer < 20) { this.Timer = 20 } if (this.Width == 0) { this.Width = parseInt(this.ID.style.width) } if (this.Height == 0) { this.Height = parseInt(this.ID.style.height) } if (typeof this.Direction == "string") { this.Direction = this.DirectionArray[this.Direction.toString().toLowerCase()] } this.HalfWidth = Math.round(this.Width / 2); this.HalfHeight = Math.round(this.Height / 2); this.BakStep = this.Step; this.ID.style.width = this.Width + "px"; this.ID.style.height = this.Height + "px"; if (typeof this.ScrollStep != "number") { this.ScrollStep = this.Direction > 1 ? this.Width : this.Height } var k = "<table cellspacing='0' cellpadding='0' style='border-collapse:collapse;display:inline;'><tr><td noWrap=true style='white-space: nowrap;word-break:keep-all;'>MSCLASS_TEMP_HTML</td><td noWrap=true style='white-space: nowrap;word-break:keep-all;'>MSCLASS_TEMP_HTML</td></tr></table>"; var g = "<table cellspacing='0' cellpadding='0' style='border-collapse:collapse;'><tr><td>MSCLASS_TEMP_HTML</td></tr><tr><td>MSCLASS_TEMP_HTML</td></tr></table>"; var j = this; j.tempHTML = j.ID.innerHTML; if (j.Direction <= 1) { j.ID.innerHTML = g.replace(/MSCLASS_TEMP_HTML/g, j.ID.innerHTML) } else { if (j.ScrollStep == 0 && j.DelayTime == 0) { j.ID.innerHTML += j.ID.innerHTML } else { j.ID.innerHTML = k.replace(/MSCLASS_TEMP_HTML/g, j.ID.innerHTML) } } var i = this.Timer; var h = this.DelayTime; var l = this.WaitTime; j.StartID = function () { j.Scroll() }; j.Continue = function () { if (j.MouseOver == 1) { setTimeout(j.Continue, h) } else { clearInterval(j.TimerID); j.CTL = j.Stop = 0; j.TimerID = setInterval(j.StartID, i) } }; j.Pause = function () { j.Stop = 1; clearInterval(j.TimerID); setTimeout(j.Continue, h) }; j.Begin = function () { j.ClientScroll = j.Direction > 1 ? j.ID.scrollWidth / 2 : j.ID.scrollHeight / 2; if (j.Direction <= 1 && j.ClientScroll <= j.Height + j.Step || j.Direction > 1 && j.ClientScroll <= j.Width + j.Step) { j.ID.innerHTML = j.tempHTML; delete j.tempHTML; return } delete j.tempHTML; j.TimerID = setInterval(j.StartID, i); if (j.ScrollStep < 0) { return } j.ID.onmousemove = function (a) { if (j.ScrollStep == 0 && j.Direction > 1) { var a = a || window.event; if (window.event) { if (j.IsNotOpera) { j.EventLeft = a.srcElement.id == j.ID.id ? a.offsetX - j.ID.scrollLeft : a.srcElement.offsetLeft - j.ID.scrollLeft + a.offsetX } else { j.ScrollStep = null; return } } else { j.EventLeft = a.layerX - j.ID.scrollLeft } j.Direction = j.EventLeft > j.HalfWidth ? 3 : 2; j.AbsCenter = Math.abs(j.HalfWidth - j.EventLeft); j.Step = Math.round(j.AbsCenter * j.BakStep * 2 / j.HalfWidth) } }; j.ID.onmouseover = function () { if (j.ScrollStep == 0) { return } j.MouseOver = 1; clearInterval(j.TimerID) }; j.ID.onmouseout = function () { if (j.ScrollStep == 0) { if (j.Step == 0) { j.Step = 1 } return } j.MouseOver = 0; if (j.Stop == 0) { clearInterval(j.TimerID); j.TimerID = setInterval(j.StartID, i) } } }; setTimeout(j.Begin, l) }; Marquee.prototype.Scroll = function () { switch (this.Direction) { case 0: this.CTL += this.Step; if (this.CTL >= this.ScrollStep && this.DelayTime > 0) { this.ID.scrollTop += this.ScrollStep + this.Step - this.CTL; this.Pause(); return } else { if (this.ID.scrollTop >= this.ClientScroll) { this.ID.scrollTop -= this.ClientScroll } this.ID.scrollTop += this.Step } break; case 1: this.CTL += this.Step; if (this.CTL >= this.ScrollStep && this.DelayTime > 0) { this.ID.scrollTop -= this.ScrollStep + this.Step - this.CTL; this.Pause(); return } else { if (this.ID.scrollTop <= 0) { this.ID.scrollTop += this.ClientScroll } this.ID.scrollTop -= this.Step } break; case 2: this.CTL += this.Step; if (this.CTL >= this.ScrollStep && this.DelayTime > 0) { this.ID.scrollLeft += this.ScrollStep + this.Step - this.CTL; this.Pause(); return } else { if (this.ID.scrollLeft >= this.ClientScroll) { this.ID.scrollLeft -= this.ClientScroll } this.ID.scrollLeft += this.Step } break; case 3: this.CTL += this.Step; if (this.CTL >= this.ScrollStep && this.DelayTime > 0) { this.ID.scrollLeft -= this.ScrollStep + this.Step - this.CTL; this.Pause(); return } else { if (this.ID.scrollLeft <= 0) { this.ID.scrollLeft += this.ClientScroll } this.ID.scrollLeft -= this.Step } break } }; var sina = { $: function (objName) { if (document.getElementById) { return eval('document.getElementById("' + objName + '")') } else { return eval("document.all." + objName) } }, isIE: navigator.appVersion.indexOf("MSIE") != -1 ? true : false, addEvent: function (e, f, d) { if (e.attachEvent) { e.attachEvent("on" + f, d) } else { e.addEventListener(f, d, false) } }, delEvent: function (e, f, d) { if (e.detachEvent) { e.detachEvent("on" + f, d) } else { e.removeEventListener(f, d, false) } }, readCookie: function (i) { var h = "", g = i + "="; if (document.cookie.length > 0) { var j = document.cookie.indexOf(g); if (j != -1) { j += g.length; var f = document.cookie.indexOf(";", j); if (f == -1) { f = document.cookie.length } h = unescape(document.cookie.substring(j, f)) } } return h }, writeCookie: function (l, h, j, i) { var k = "", c = ""; if (j != null) { k = new Date(new Date().getTime() + j * 3600000); k = "; expires=" + k.toGMTString() } if (i != null) { c = ";domain=" + i } document.cookie = l + "=" + escape(h) + k + c }, readStyle: function (d, e) { if (d.style[e]) { return d.style[e] } else { if (d.currentStyle) { return d.currentStyle[e] } else { if (document.defaultView && document.defaultView.getComputedStyle) { var f = document.defaultView.getComputedStyle(d, null); return f.getPropertyValue(e) } else { return null } } } } }; function ScrollPicleft(h, j, k, l) { this.scrollContId = h; this.arrLeftId = j; this.arrRightId = k; this.dotListId = l; this.dotClassName = "dotItem"; this.dotOnClassName = "dotItemOn"; this.dotObjArr = []; this.pageWidth = 0; this.frameWidth = 0; this.speed = 10; this.space = 10; this.pageIndex = 0; this.autoPlay = true; this.autoPlayTime = 5; var i, m, n = "ready"; this.stripDiv = document.createElement("DIV"); this.listDiv01 = document.createElement("DIV"); this.listDiv02 = document.createElement("DIV"); if (!ScrollPicleft.childs) { ScrollPicleft.childs = [] } this.ID = ScrollPicleft.childs.length; ScrollPicleft.childs.push(this); this.initialize = function () { if (!this.scrollContId) { throw new Error("必须指定scrollContId."); return } this.scrollContDiv = sina.$(this.scrollContId); if (!this.scrollContDiv) { throw new Error('scrollContId不是正确的对象.(scrollContId = "' + this.scrollContId + '")'); return } this.scrollContDiv.style.width = this.frameWidth + "px"; this.scrollContDiv.style.overflow = "hidden"; this.listDiv01.innerHTML = this.listDiv02.innerHTML = this.scrollContDiv.innerHTML; this.scrollContDiv.innerHTML = ""; this.scrollContDiv.appendChild(this.stripDiv); this.stripDiv.appendChild(this.listDiv01); this.stripDiv.appendChild(this.listDiv02); this.stripDiv.style.overflow = "hidden"; this.stripDiv.style.zoom = "1"; this.stripDiv.style.width = "32766px"; var a = navigator.userAgent.toUpperCase().indexOf("MSIE") == -1 ? false : true; if (a) { this.listDiv01.style.styleFloat = "left"; this.listDiv02.style.styleFloat = "left" } else { this.listDiv01.style.cssFloat = "left"; this.listDiv02.style.cssFloat = "left" } sina.addEvent(this.scrollContDiv, "mouseover", Function("ScrollPicleft.childs[" + this.ID + "].stop()")); sina.addEvent(this.scrollContDiv, "mouseout", Function("ScrollPicleft.childs[" + this.ID + "].play()")); if (this.arrLeftId) { this.arrLeftObj = sina.$(this.arrLeftId); if (this.arrLeftObj) { sina.addEvent(this.arrLeftObj, "mousedown", Function("ScrollPicleft.childs[" + this.ID + "].rightMouseDown()")); sina.addEvent(this.arrLeftObj, "mouseup", Function("ScrollPicleft.childs[" + this.ID + "].rightEnd()")); sina.addEvent(this.arrLeftObj, "mouseout", Function("ScrollPicleft.childs[" + this.ID + "].rightEnd()")) } } if (this.arrRightId) { this.arrRightObj = sina.$(this.arrRightId); if (this.arrRightObj) { sina.addEvent(this.arrRightObj, "mousedown", Function("ScrollPicleft.childs[" + this.ID + "].leftMouseDown()")); sina.addEvent(this.arrRightObj, "mouseup", Function("ScrollPicleft.childs[" + this.ID + "].leftEnd()")); sina.addEvent(this.arrRightObj, "mouseout", Function("ScrollPicleft.childs[" + this.ID + "].leftEnd()")) } } if (this.dotListId) { this.dotListObj = sina.$(this.dotListId); if (this.dotListObj) { var d = Math.round(this.listDiv01.offsetWidth / this.frameWidth + 0.4), b, c; for (b = 0; b < d; b++) { c = document.createElement("span"); this.dotListObj.appendChild(c); this.dotObjArr.push(c); if (b == this.pageIndex) { c.className = this.dotClassName } else { c.className = this.dotOnClassName } c.title = "第" + (b + 1) + "页"; sina.addEvent(c, "click", Function("ScrollPicleft.childs[" + this.ID + "].pageTo(" + b + ")")) } } } if (this.autoPlay) { this.play() } }; this.leftMouseDown = function () { if (n != "ready") { return } n = "floating"; m = setInterval("ScrollPicleft.childs[" + this.ID + "].moveLeft()", this.speed) }; this.rightMouseDown = function () { if (n != "ready") { return } n = "floating"; m = setInterval("ScrollPicleft.childs[" + this.ID + "].moveRight()", this.speed) }; this.moveLeft = function () { if (this.scrollContDiv.scrollLeft + this.space >= this.listDiv01.scrollWidth) { this.scrollContDiv.scrollLeft = this.scrollContDiv.scrollLeft + this.space - this.listDiv01.scrollWidth } else { this.scrollContDiv.scrollLeft += this.space } this.accountPageIndex() }; this.moveRight = function () { if (this.scrollContDiv.scrollLeft - this.space <= 0) { this.scrollContDiv.scrollLeft = this.listDiv01.scrollWidth + this.scrollContDiv.scrollLeft - this.space } else { this.scrollContDiv.scrollLeft -= this.space } this.accountPageIndex() }; this.leftEnd = function () { if (n != "floating") { return } n = "stoping"; clearInterval(m); var a = this.pageWidth - this.scrollContDiv.scrollLeft % this.pageWidth; this.move(a) }; this.rightEnd = function () { if (n != "floating") { return } n = "stoping"; clearInterval(m); var a = -this.scrollContDiv.scrollLeft % this.pageWidth; this.move(a) }; this.move = function (c, b) { var a = c / 5; if (!b) { if (a > this.space) { a = this.space } if (a < -this.space) { a = -this.space } } if (Math.abs(a) < 1 && a != 0) { a = a >= 0 ? 1 : -1 } else { a = Math.round(a) } var d = this.scrollContDiv.scrollLeft + a; if (a > 0) { if (this.scrollContDiv.scrollLeft + a >= this.listDiv01.scrollWidth) { this.scrollContDiv.scrollLeft = this.scrollContDiv.scrollLeft + a - this.listDiv01.scrollWidth } else { this.scrollContDiv.scrollLeft += a } } else { if (this.scrollContDiv.scrollLeft - a <= 0) { this.scrollContDiv.scrollLeft = this.listDiv01.scrollWidth + this.scrollContDiv.scrollLeft - a } else { this.scrollContDiv.scrollLeft += a } } c -= a; if (Math.abs(c) == 0) { n = "ready"; if (this.autoPlay) { this.play() } this.accountPageIndex(); return } else { this.accountPageIndex(); setTimeout("ScrollPicleft.childs[" + this.ID + "].move(" + c + "," + b + ")", this.speed) } }; this.next = function () { if (n != "ready") { return } n = "stoping"; this.move(this.pageWidth, true) }; this.play = function () { if (!this.autoPlay) { return } clearInterval(i); i = setInterval("ScrollPicleft.childs[" + this.ID + "].next()", this.autoPlayTime * 1000) }; this.stop = function () { clearInterval(i) }; this.pageTo = function (b) { if (n != "ready") { return } n = "stoping"; var a = b * this.frameWidth - this.scrollContDiv.scrollLeft; this.move(a, true) }; this.accountPageIndex = function () { this.pageIndex = Math.round(this.scrollContDiv.scrollLeft / this.frameWidth); if (this.pageIndex > Math.round(this.listDiv01.offsetWidth / this.frameWidth + 0.4) - 1) { this.pageIndex = 0 } var a; for (a = 0; a < this.dotObjArr.length; a++) { if (a == this.pageIndex) { this.dotObjArr[a].className = this.dotClassName } else { this.dotObjArr[a].className = this.dotOnClassName } } } } $(function () { var a = 1; function b(f) { var g = $("#flashs .btn span").index($("#flashs .btn span.cur")); if (g < 0) { g = 0 } $("#flashs .btn span.cur").css("opacity", 0.7).removeClass("cur"); $("#flashbg" + g).css({ opacity: 0, "z-index": 1 }); $("#flashbg" + a).css({ "z-index": 2 }); $("#flashbg" + a).animate({ opacity: 1 }, 500); $("#flashs .btn span").eq(a).css("opacity", 1).addClass("cur") } var e = $("#flashs .bgitem").css("opacity", 0).length; var d = "<div class='btn'>"; for (var c = 0; c < e; c++) { d += "<span>" + (c + 1) + "</span>" } d += "</div>"; $("#flashs").append(d); $("#flashs .btn span").css("opacity", 0.7).mouseenter(function () { a = $("#flashs .btn span").index(this); b(a) }).eq(0).trigger("mouseenter"); $("#flashs").hover(function () { clearInterval(picTimer) }, function () { picTimer = setInterval(function () { a++; if (a == e) { a = 0 } b(a) }, 5000) }).eq(0).trigger("mouseleave") }); function xuanze() { var b = document.getElementById("seachkeywords").value; if (b == "请输入关键词搜索") { b = "" } window.location.href = "?objtype=product&kwd=" + b } $(function () { $("div.menu li:first").addClass("cur"); $("#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 reScrollPic(h, j, l, n, k, i, m) { var h = new ScrollPicleft(); h.scrollContId = j; if (l != null || n != null) { h.arrLeftId = l; h.arrRightId = n } h.frameWidth = k; h.speed = 10; h.space = 10; h.autoPlay = true; if (m != null) { h.pageWidth = 1; h.autoPlayTime = 0.03 } else { h.pageWidth = i; h.autoPlayTime = 2 } h.initialize() } function nanOnly(b) { b.value = b.value.replace(/[^0-9]/g, "") } $(function () { var e = location.href; var d = 0; var f = $(".h_nav ul li").length; $(".h_nav ul li").each(function (a) { var b = $(this).find("a").attr("href"); if (b.length > 5 && e.substring(e.length - b.length).toUpperCase() == b.toUpperCase()) { $(this).addClass("cur"); $(this).siblings("li").removeClass("cur"); return } d++ }); if (d == f) { $(".h_nav ul li:eq(0)").addClass("cur"); $(".h_nav ul li:eq(0)").siblings("li").removeClass("cur") } }); $(function () { var b = $("#seachkeywords").val(); $("#seachkeywords").focus(function () { if (this.value == b) { this.value = "" } }).blur(function () { if (this.value == "") { this.value = b } }).keydown(function (a) { if (a.keyCode == "13") { $("#sousuo").click(); return false } }); $("#sousuo").click(function () { var a = $("#seachkeywords").val(); if (a == b) { a = "" } window.location.href = "?objtype=product&kwd=" + a }) }); function SendAgentLeaveword() { var b = $j("txtContact").val(); var d = $j("txtMobile").val(); var h = $j("txtEmail").val(); var g = $j("txtqqmsn").val(); var j = $j("txtContent").val(); var i = $j("txtAdd").val(); var e = $("#verCode").val(); var c = ""; if (b.length == 0) { c += "<p>姓名不可为空</p>" } if (d.length == 0) { c += "<p>手机不可为空</p>" } var f = /^\d{11,13}$/; if (d.length > 0 && !f.test(d)) { c += "<p>手机格式错误</p>" } var a = /\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/; if (e.length == 0) { c += "<p>验证码不可为空</p>" } if (c.length > 0) { $a(c); return } $.post("/ajax.ashx?action=SendAgentLeaveword&t=" + Math.random(), { contact: b, mobile: d, email: h, content: j, add: i, qqmsn: g, validate: e }, function (l) { var k = gav(l, "state"); var m = gav(l, "msg"); if (k == "1") { emptyText("oran_table_1"); $a(m, 1) } else { $a(m); emptyText("oran_table_1") } }) } function emptyText(b) { var a; if (b == null) { a = $("body").find("input[type=text]") } else { a = $j(b).find("input[type=text]") } var c; if (b == null) { c = $("body").find("input[type=password]") } else { c = $j(b).find("input[type=password]") } a.each(function () { $(this).attr("value", "") }); c.each(function () { $(this).attr("value", "") }); if (b == null) { a = $("body").find("textarea") } else { a = $j(b).find("textarea") } a.each(function () { $(this).attr("value", "") }) };

