"] } ah.fn.extend({ text: function (c) { if (ah.isFunction(c)) { return this.each(function (s) { var w = ah(this); w.text(c.call(this, s, w.text())) }) } if (typeof c !== "object" && c !== I) { return this.empty().append((this[0] && this[0].ownerDocument || M).createTextNode(c)) } return ah.text(this) }, wrapAll: function (s) { if (ah.isFunction(s)) { return this.each(function (w) { ah(this).wrapAll(s.call(this, w)) }) } if (this[0]) { var c = ah(s, this[0].ownerDocument).eq(0).clone(true); this[0].parentNode && c.insertBefore(this[0]); c.map(function () { for (var w = this; w.firstChild && w.firstChild.nodeType === 1; ) { w = w.firstChild } return w }).append(this) } return this }, wrapInner: function (c) { if (ah.isFunction(c)) { return this.each(function (s) { ah(this).wrapInner(c.call(this, s)) }) } return this.each(function () { var s = ah(this), w = s.contents(); w.length ? w.wrapAll(c) : s.append(c) }) }, wrap: function (c) { return this.each(function () { ah(this).wrapAll(c) }) }, unwrap: function () { return this.parent().each(function () { ah.nodeName(this, "body") || ah(this).replaceWith(this.childNodes) }).end() }, append: function () { return this.domManip(arguments, true, function (c) { this.nodeType === 1 && this.appendChild(c) }) }, prepend: function () { return this.domManip(arguments, true, function (c) { this.nodeType === 1 && this.insertBefore(c, this.firstChild) }) }, before: function () { if (this[0] && this[0].parentNode) { return this.domManip(arguments, false, function (s) { this.parentNode.insertBefore(s, this) }) } else { if (arguments.length) { var c = ah(arguments[0]); c.push.apply(c, this.toArray()); return this.pushStack(c, "before", arguments) } } }, after: function () { if (this[0] && this[0].parentNode) { return this.domManip(arguments, false, function (s) { this.parentNode.insertBefore(s, this.nextSibling) }) } else { if (arguments.length) { var c = this.pushStack(this, "after", arguments); c.push.apply(c, ah(arguments[0]).toArray()); return c } } }, remove: function (s, c) { for (var A = 0, w; (w = this[A]) != null; A++) { if (!s || ah.filter(s, [w]).length) { if (!c && w.nodeType === 1) { ah.cleanData(w.getElementsByTagName("*")); ah.cleanData([w]) } w.parentNode && w.parentNode.removeChild(w) } } return this }, empty: function () { for (var s = 0, c; (c = this[s]) != null; s++) { for (c.nodeType === 1 && ah.cleanData(c.getElementsByTagName("*")); c.firstChild; ) { c.removeChild(c.firstChild) } } return this }, clone: function (s) { var c = this.map(function () { if (!ah.support.noCloneEvent && !ah.isXMLDoc(this)) { var A = this.outerHTML, w = this.ownerDocument; if (!A) { A = w.createElement("div"); A.appendChild(this.cloneNode(true)); A = A.innerHTML } return ah.clean([A.replace(ai, "").replace(/=([^="'>\s]+\/)>/g, '="$1">').replace(ar, "")], w)[0] } else { return this.cloneNode(true) } }); if (s === true) { bj(this, c); bj(this.find("*"), c.find("*")) } return c }, html: function (s) { if (s === I) { return this[0] && this[0].nodeType === 1 ? this[0].innerHTML.replace(ai, "") : null } else { if (typeof s === "string" && !aP.test(s) && (ah.support.leadingWhitespace || !ar.test(s)) && !aJ[(m.exec(s) || ["", ""])[1].toLowerCase()]) { s = s.replace(B, bk); try { for (var c = 0, A = this.length; c < A; c++) { if (this[c].nodeType === 1) { ah.cleanData(this[c].getElementsByTagName("*")); this[c].innerHTML = s } } } catch (w) { this.empty().append(s) } } else { ah.isFunction(s) ? this.each(function (J) { var F = ah(this), G = F.html(); F.empty().append(function () { return s.call(this, J, G) }) }) : this.empty().append(s) } } return this }, replaceWith: function (c) { if (this[0] && this[0].parentNode) { if (ah.isFunction(c)) { return this.each(function (s) { var A = ah(this), w = A.html(); A.replaceWith(c.call(this, s, w)) }) } if (typeof c !== "string") { c = ah(c).detach() } return this.each(function () { var s = this.nextSibling, w = this.parentNode; ah(this).remove(); s ? ah(s).before(c) : ah(w).append(c) }) } else { return this.pushStack(ah(ah.isFunction(c) ? c() : c), "replaceWith", c) } }, detach: function (c) { return this.remove(c, true) }, domManip: function (O, N, L) { function J(P) { return ah.nodeName(P, "table") ? P.getElementsByTagName("tbody")[0] || P.appendChild(P.ownerDocument.createElement("tbody")) : P } var K, F, G = O[0], s = [], A; if (!ah.support.checkClone && arguments.length === 3 && typeof G === "string" && ak.test(G)) { return this.each(function () { ah(this).domManip(O, N, L, true) }) } if (ah.isFunction(G)) { return this.each(function (P) { var Q = ah(this); O[0] = G.call(this, P, N ? Q.html() : I); Q.domManip(O, N, L) }) } if (this[0]) { K = G && G.parentNode; K = ah.support.parentNode && K && K.nodeType === 11 && K.childNodes.length === this.length ? { fragment: K} : a3(O, this, s); A = K.fragment; if (F = A.childNodes.length === 1 ? (A = A.firstChild) : A.firstChild) { N = N && ah.nodeName(F, "tr"); for (var w = 0, c = this.length; w < c; w++) { L.call(N ? J(this[w], F) : this[w], w > 0 || K.cacheable || this.length > 1 ? A.cloneNode(true) : A) } } s.length && ah.each(s, E) } return this } }); ah.fragments = {}; ah.each({ appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, function (s, c) { ah.fn[s] = function (J) { var F = []; J = ah(J); var G = this.length === 1 && this[0].parentNode; if (G && G.nodeType === 11 && G.childNodes.length === 1 && J.length === 1) { J[c](this[0]); return this } else { G = 0; for (var w = J.length; G < w; G++) { var A = (G > 0 ? this.clone(true) : this).get(); ah.fn[c].apply(ah(J[G]), A); F = F.concat(A) } return this.pushStack(F, s, J.selector) } } }); ah.extend({ clean: function (O, N, L, J) { N = N || M; if (typeof N.createElement === "undefined") { N = N.ownerDocument || N[0] && N[0].ownerDocument || M } for (var K = [], F = 0, G; (G = O[F]) != null; F++) { if (typeof G === "number") { G += "" } if (G) { if (typeof G === "string" && !u.test(G)) { G = N.createTextNode(G) } else { if (typeof G === "string") { G = G.replace(B, bk); var s = (m.exec(G) || ["", ""])[1].toLowerCase(), A = aJ[s] || aJ._default, w = A[0], c = N.createElement("div"); for (c.innerHTML = A[1] + G + A[2]; w--; ) { c = c.lastChild } if (!ah.support.tbody) { w = ac.test(G); s = s === "table" && !w ? c.firstChild && c.firstChild.childNodes : A[1] === "
" && !w ? c.childNodes : []; for (A = s.length - 1; A >= 0; --A) { ah.nodeName(s[A], "tbody") && !s[A].childNodes.length && s[A].parentNode.removeChild(s[A]) } } !ah.support.leadingWhitespace && ar.test(G) && c.insertBefore(N.createTextNode(ar.exec(G)[0]), c.firstChild); G = c.childNodes } } if (G.nodeType) { K.push(G) } else { K = ah.merge(K, G) } } } if (L) { for (F = 0; K[F]; F++) { if (J && ah.nodeName(K[F], "script") && (!K[F].type || K[F].type.toLowerCase() === "text/javascript")) { J.push(K[F].parentNode ? K[F].parentNode.removeChild(K[F]) : K[F]) } else { K[F].nodeType === 1 && K.splice.apply(K, [F + 1, 0].concat(ah.makeArray(K[F].getElementsByTagName("script")))); L.appendChild(K[F]) } } } return K }, cleanData: function (L) { for (var K, J, F = ah.cache, G = ah.event.special, w = ah.support.deleteExpando, A = 0, c; (c = L[A]) != null; A++) { if (J = c[ah.expando]) { K = F[J]; if (K.events) { for (var s in K.events) { G[s] ? ah.event.remove(c, s) : aG(c, s, K.handle) } } if (w) { delete c[ah.expando] } else { c.removeAttribute && c.removeAttribute(ah.expando) } delete F[J] } } } }); var h = /z-?index|font-?weight|opacity|zoom|line-?height/i, a4 = /alpha\([^)]*\)/, aQ = /opacity=([^)]*)/, aE = /float/i, ad = /-([a-z])/ig, bf = /([A-Z])/g, aZ = /^-?\d+(?:px)?$/i, aI = /^-?\d/, af = { position: "absolute", visibility: "hidden", display: "block" }, y = ["Left", "Right"], k = ["Top", "Bottom"], bi = M.defaultView && M.defaultView.getComputedStyle, al = ah.support.cssFloat ? "cssFloat" : "styleFloat", v = function (s, c) { return c.toUpperCase() }; ah.fn.css = function (s, c) { return ap(this, s, c, true, function (F, w, A) { if (A === I) { return ah.curCSS(F, w) } if (typeof A === "number" && !h.test(w)) { A += "px" } ah.style(F, w, A) }) }; ah.extend({ style: function (s, c, F) { if (!s || s.nodeType === 3 || s.nodeType === 8) { return I } if ((c === "width" || c === "height") && parseFloat(F) < 0) { F = I } var w = s.style || s, A = F !== I; if (!ah.support.opacity && c === "opacity") { if (A) { w.zoom = 1; c = parseInt(F, 10) + "" === "NaN" ? "" : "alpha(opacity=" + F * 100 + ")"; s = w.filter || ah.curCSS(s, "filter") || ""; w.filter = a4.test(s) ? s.replace(a4, c) : c } return w.filter && w.filter.indexOf("opacity=") >= 0 ? parseFloat(aQ.exec(w.filter)[1]) / 100 + "" : "" } if (aE.test(c)) { c = al } c = c.replace(ad, v); if (A) { w[c] = F } return w[c] }, css: function (s, c, J, F) { if (c === "width" || c === "height") { var G, w = c === "width" ? y : k; function A() { G = c === "width" ? s.offsetWidth : s.offsetHeight; F !== "border" && ah.each(w, function () { F || (G -= parseFloat(ah.curCSS(s, "padding" + this, true)) || 0); if (F === "margin") { G += parseFloat(ah.curCSS(s, "margin" + this, true)) || 0 } else { G -= parseFloat(ah.curCSS(s, "border" + this + "Width", true)) || 0 } }) } s.offsetWidth !== 0 ? A() : ah.swap(s, af, A); return Math.max(0, Math.round(G)) } return ah.curCSS(s, c, J) }, curCSS: function (s, c, G) { var A, F = s.style; if (!ah.support.opacity && c === "opacity" && s.currentStyle) { A = aQ.test(s.currentStyle.filter || "") ? parseFloat(RegExp.$1) / 100 + "" : ""; return A === "" ? "1" : A } if (aE.test(c)) { c = al } if (!G && F && F[c]) { A = F[c] } else { if (bi) { if (aE.test(c)) { c = "float" } c = c.replace(bf, "-$1").toLowerCase(); F = s.ownerDocument.defaultView; if (!F) { return null } if (s = F.getComputedStyle(s, null)) { A = s.getPropertyValue(c) } if (c === "opacity" && A === "") { A = "1" } } else { if (s.currentStyle) { G = c.replace(ad, v); A = s.currentStyle[c] || s.currentStyle[G]; if (!aZ.test(A) && aI.test(A)) { c = F.left; var w = s.runtimeStyle.left; s.runtimeStyle.left = s.currentStyle.left; F.left = G === "fontSize" ? "1em" : A || 0; A = F.pixelLeft + "px"; F.left = c; s.runtimeStyle.left = w } } } } return A }, swap: function (s, c, F) { var w = {}; for (var A in c) { w[A] = s.style[A]; s.style[A] = c[A] } F.call(s); for (A in c) { s.style[A] = w[A] } } }); if (ah.expr && ah.expr.filters) { ah.expr.filters.hidden = function (s) { var c = s.offsetWidth, A = s.offsetHeight, w = s.nodeName.toLowerCase() === "tr"; return c === 0 && A === 0 && !w ? true : c > 0 && A > 0 && !w ? false : ah.curCSS(s, "display") === "none" }; ah.expr.filters.visible = function (c) { return !ah.expr.filters.hidden(c) } } var a2 = aF(), aN = //g", ""); e = e.replace("//g", "").replace("http://", "").replace("http://", ""); g = g.replace("//g", ""); d = d.replace("//g", "").replace("http://", "").replace("http://", ""); var b = "/Tools/Message.aspx?result=" + a + "&btntitle=" + encodeURIComponent(g) + "&btnhref=" + encodeURIComponent(e) + "&defaulthref=" + encodeURIComponent(d) + "&delay=" + c + "&msg=" + encodeURIComponent(f); location.href = b } function hideMsg() { showDdl(); var a = $j("mesbook1"); hideFullBg(); a.fadeOut(80) } function setCM(b, e) { var d; if (typeof (b).toString().toLowerCase() == "string") { d = $j(b) } else { d = $(b) } if (e == null) { e = 80 } var c = d.height() / 2; var a = d.width() / 2; d.css({ top: "50%", "margin-top": "-" + c + "px", left: "50%", "margin-left": "-" + a + "px" }); d.css({ position: "absolute", "z-index": "999" }); d.fadeIn(e) } function setCMS(c, f) { var e; if (typeof (c).toString().toLowerCase() == "string") { e = $j(c) } else { e = $(c) } if (f == null) { f = 80 } var d = e.height() / 2; var b = e.width() / 2; var a = document.documentElement.scrollTop; if (a > 100) { e.css({ top: "50%", "margin-top": "-" + d + "px", left: "50%", "margin-left": "-" + b + "px" }) } else { d = 200; e.css({ "margin-top": "-" + d + "px", left: "50%", "margin-left": "-" + b + "px" }) } e.css({ position: "absolute", "z-index": "999" }); e.fadeIn(f) } function showFullBg(n, e, h, k, i, d, b) { if (n == null) { n = "oran_full_bg" } var a = $j(n); if (a.length == 0) { var l = ""; $(document.body).append(l) } if (h == null) { h = 0.75 } if (k == null) { k = "#777" } if (i == null) { i = "9" } if (d == null) { d = 80 } if (e == null) { e = true } var a = $j(n); var m = document.documentElement; var c = m.scrollWidth; var g = m.scrollHeight; var f = m.clientHeight; var j = m.clientWidth; if (g < f) { g = f } if (c < j) { c = j } a.css({ "z-index": i, background: k, opacity: h, filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=" + h * 100 + ")" }); a.css({ height: g, width: c }); if (e) { hideDdl(null, b) } a.fadeIn(d); if (b != null) { b() } } function hideFullBg(a, c) { if (a == null) { a = "oran_full_bg" } if (c == null) { c = 80 } var b = $j(a); b.fadeOut(c); showDdl() } function $closeLayer(a, b) { $j(a).fadeOut(80, function () { hideFullBg(b) }) } function limitLength(a) { var l = a.value; var n = parseInt($(a).attr("max")); var c = a.id; var e = l.replace(/[^\x00-\xff]/g, "**"); var d = e.length; if (d * 1 <= n * 1) { return } var j = e.substr(0, n); var h = 0; var k = ""; for (var g = 0; g < j.length; g++) { var b = j.substr(g, 1); if (b == "*") { h++ } } var m = 0; var f = e.substr(n * 1 - 1, 1); if (h % 2 == 0) { m = h / 2 + (n * 1 - h); k = l.substr(0, m) } else { m = (h - 1) / 2 + (n * 1 - h); k = l.substr(0, m) } alert("大输入" + n + "个字节(相当于" + n / 2 + "个汉字)!"); document.getElementById(c).value = k; return } function $g(a) { return document.getElementById(a) } function $name(a) { return document.getElementsByName(a) } function $tag(b, a) { var c = b; if (c != Object) { c = $g(b) } return c.getElementsByTagName(a) } function digiKeyOnly(b) { var a = window.event ? event.keyCode : b.which; if (a < 27 || a > 128) { return true } else { if (a >= 48 && a <= 57) { return true } else { return false } } } function digiOnly(a) { a.value = a.value.replace(/[^0-9]/g, "") } function $o(b, a, d, c) { if (b == null || b == "") { return } if (a == null) { a = "300" } if (d == null) { d = "300" } if (c == null) { c = "location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0;top=0,left=0" } if (a) { c += ",width=" + a } if (d) { c += ",height=" + d } window.open(b, "", c, false) } function emptyText(a) { var c; if (a == null) { c = $("body").find("input[type=text]") } else { c = $j(a).find("input[type=text]") } var b; if (a == null) { b = $("body").find("input[type=password]") } else { b = $j(a).find("input[type=password]") } c.each(function () { $(this).val("") }); b.each(function () { $(this).val("") }); if (a == null) { c = $("body").find("textarea") } else { c = $j(a).find("textarea") } c.each(function () { $(this).val("") }) } $cookie = function (d, g, b) { if (g == null && b == null) { var e = d + "="; begin = document.cookie.indexOf(e); if (begin != -1) { begin += e.length; end = document.cookie.indexOf(";", begin); if (end == -1) { end = document.cookie.length } return document.cookie.substring(begin, end) } return null } else { if (typeof (g) == "boolean") { $cookie(d, "", -999999) } else { if (b == null) { b = 9986400000 } var a = new Date(); var f = new Date(); var c = b; f.setTime(a.getTime() + c); document.cookie = d + "=" + g + ";expires=" + f.toGMTString() } } }; function $qs(g) { var b = new Object(); var f = location.search.substring(1); var e = f.split("&"); for (var c = 0; c < e.length; ++c) { var h = e[c].indexOf("="); if (!h) { continue } var d = e[c].substring(0, h); var a = e[c].substring(h + 1); a = decodeURIComponent(a); b[d] = a } return b[g] == null ? "" : b[g] } function selectAll(d, b) { var a = $tag(b, "input"); for (var c = 0; c < a.length; ++c) { a[c].checked = d.checked } } function invertSelect(b) { var a = $tag(b, "input"); for (var c = 0; c < a.length; ++c) { a[c].checked = !a[c].checked } } function getPageFilename() { var b = location.pathname; var c = b.lastIndexOf("/") + 1; var a = b.substring(c, b.length); return a } function getRawUrl() { var b = location.href; var c = b.lastIndexOf("/") + 1; var a = b.substring(c, b.length); c = a.lastIndexOf("#"); a = a.substring(0, c); return a } function getIntactRawUrl() { var a = location.href; var b; b = a.lastIndexOf("#"); a = a.substring(0, b); return a } function toggleArg(c, f) { var b = $$.intactRawUrl(); var g = b.indexOf("?"); if (g == -1) { return b + "?" + c + "=" + f } else { var a = b.substring(g); var e = b.substring(0, g); var d = new RegExp("&?" + c + "=?\\w*\\[?\\w*\\]?\\|?\\d?", "i"); a = a.replace(d, ""); if (a.length == 1) { a += c + "=" + f } else { a += "&" + c + "=" + f } return e + a } } function increase(c, b) { if (b == null) { b = "show" } var a = $j(c); a.animate({ height: b, width: b, opacity: b }, "fast") } function fadeToggle(a, b) { if (b == null) { b = "fast" } if ($("#" + a).is(":visible")) { $("#" + a).fadeOut(b) } else { $("#" + a).fadeIn(b) } } function clearAllElms(a, b) { clearDdls(a, b); clearTextBoxes(a, b); clearRdos(a, b); clearChks(a, b) } function clearRdos(a, c) { if (c == null) { c = "tfocus" } var b = $j(a).find("input[type=radio]"); b.focus(function () { $(this).addClass(c) }); b.blur(function () { $(this).removeClass(c) }) } function clearChks(a, c) { if (c == null) { c = "tfocus" } var b = $j(a).find("input[type=checkbox]"); b.focus(function () { $(this).addClass(c) }); b.blur(function () { $(this).removeClass(c) }) } function clearDdls(a, c) { if (c == null) { c = "tfocus" } var b = $j(a).find("select"); b.focus(function () { $(this).addClass(c) }); b.blur(function () { $(this).removeClass(c) }) } function clearTextBoxes(a, c) { if (c == null) { c = "tfocus" } var b = $j(a).find("input[type=text]"); b.focus(function () { $(this).addClass(c) }); b.blur(function () { $(this).removeClass(c) }); var b = $j(a).find("input[type=password]"); b.focus(function () { $(this).addClass(c) }); b.blur(function () { $(this).removeClass(c) }); b = $j(a).find("textarea"); b.focus(function () { $(this).addClass(c) }); b.blur(function () { $(this).removeClass(c) }) }; function setSelectByValue(a, d) { var e = $g(a); for (var c = 0; c < e.options.length; ++c) { var b = e.options[c]; b.selected = (b.value == d) } } function showVerifyCode(a, c, b, f) { if (a == null) { a = "spVerCode" } if (c == null) { c = "spVerCodeMsg" } if (b == null) { b = "imgVerCode" } if (f == null) { f = "spChgVerCode" } var h = $j(a); var e = $j(c); var d = $j(f); if (h.html() == "") { e.html("正在加载验证码..."); e.show(); h.html("") } var g = $j(b); g.load(function () { e.hide(); g.show(); d.show() }) } function changeVerCode(a, b) { if (a == null) { a = "imgVerCode" } if (b == null) { b = "spVerCodeMsg" } var d = $j(a); var c = $j(b); c.html("正在刷新验证码...").show(); d.attr({ src: "/Tools/ValidCode.aspx?x=" + Math.random(), alt: "验证码" }); d.hide(); d.load(function () { c.hide(); d.show() }) } function showProc(c, a) { var b = $j("imgProc"); if (a == null) { a = true } if (a) { $(c).hide(); if (b.length > 0) { b.remove() } $("").insertAfter(c) } else { $(c).show(); b.remove() } } function enlarge(c, b) { if (c == null) { c = true } if (b == null) { b = "Content" } var e = $j(b); var d = parseInt(e.css("font-size")); var a = (c ? d * 1.2 : d / 1.2); e.css("font-size", a + "px") } function altRow(c, g, f, h) { var e = $tag(g, "tr"); for (var d = c; d < e.length; ++d) { var b; if (d % 2 == 0) { b = h } else { b = f } if (typeof (b) == "object") { for (var a in b) { e[d].style[a] = b[a] } } else { e[d].className = b } } } function getCheckedVal(c, d) { if (d == null) { d = -1 } var b = $j(c).find("input:checked"); var e = ""; var a = false; b.each(function (f) { if (f > d) { if (a) { e += "," } e += $(this).val(); a = true } }); return e } function checkAll(c, b) { var a = $j(b).find("input[type=checkbox]"); a.each(function (d) { this.checked = c.checked }) } function GetSearchURL(e, b) { if (b == null) { b = getIntactRawUrl() } var h = e.split("|"); for (var f = 0; f < h.length; f++) { var c = h[f].split(","); var a; var g = document.getElementById(c[0]); if (c.length == 2) { a = c[1] } else { a = c[0] } if (g != null) { var d = g.value; if (d != null) { b += "&" + a + "=" + encodeURIComponent(d) } } } return b } function SearchObjectByGet(c, b, a) { if (a == null) { a = false } var d = GetSearchURL(c, b); if (a) { return d } window.location.href = d } function SearchObjects(c, b) { if (c == "请填写关键词" || c == "请输入关键词") { $a("您还没有输入关键词,请填写后查询。"); return } if (b == "product") { var a = "/Search/Index.aspx?objtype=product&kwd=" + escape(c); window.location.href = a } else { var a = "/Search/News.aspx?objtype=news&kwd=" + escape(c); window.location.href = a } } function GoToURL(c, b) { var a; a = SetURLField(a, c, b); location.href = a } function GoToURLByGet(c, b) { var a; a = location.href; a = SetURLField(a, "page", "1"); a = SetURLField(a, c, b) } function SetURLField(a, f, c) { var b; b = a.indexOf("?"); if (b == -1) { a += "?" + f + "=" + c } else { var d = f + "="; var e = a.indexOf(d); if (e != -1) { e += d.length; end = a.indexOf("&", e); if (end == -1) { a = a.substring(0, e) + c } else { a = a.substring(0, e) + c + a.substring(end) } } else { a = a + "&" + f + "=" + c } } return a } function readURLParameter(e) { var c = e + "="; var b = ""; var a = location.href; var d = a.indexOf(c); if (d != -1) { d += c.length; end = a.indexOf("&", d); if (end == -1) { b = a.substring(d) } else { b = a.substring(d, end) } } return b } function focusToRemoveText(c) { var a = $(c); var b = (a.attr("hadfocused") == "1"); if (!b) { a.val(""); a.attr("hadfocused", "1") } } function SUR_ShowTable(f) { var e = ""; var c; switch (f.SelectionMode) { case 1: c = "radio"; break; case 2: c = "checkbox"; break } switch (f.ShowMode) { case 1: e = '
' + f.Title + '
'; for (var b = 0; b < f.Items.length; ++b) { var d = f.Items[b]; var a = "SUR_item_" + f.SubjectId + b; e += '
" } e += '
'; break } document.write(e) } function SUR_senddata(f, a) { var c = "SUR_post_msg_" + a.SubjectId; var d = "正在提交,请稍后..."; var b = "/ajax.ashx?action=Survey&t=" + Math.random(); var e = getCheckedVal("SUR_itemTab_" + a.SubjectId); if (e == null || e.length == 0) { $a("您至少需要选中一个投票项。"); return } $(f).after(d).hide(); $.post(b, { _SUR_SubjectID: a.SubjectId, _CheckedItems: e }, function (h) { var i = gav(h, "state"); var g = gav(h, "msg"); if (i == "1") { $confirm("投票成功,感谢您的参与。", { title: "确定", toDo: function () { hideConfirm() } }, { title: "查看结果", toDo: function () { window.open("/tools/survey.aspx?oid=" + a.SubjectId); hideConfirm() } }) } else { $a(g) } $j(c).remove(); $(f).show() }) } function LEW_ShowTable() { var a = '
留言
* 标题:
* 联系人:
联系电话:
手机号码:
* 电子邮箱地址:
* 留言分类:
留言内容:
'; document.write(a); fillLeavewordCategories() } function PAY_ShowTable() { var a = '
付款
* 付款方式:
* 付款人:
* 电子邮箱地址:
联系电话:
手机号码:
我公司业务员姓名:
* 付款金额:
* 款项用途:
'; document.write(a) } function LoginCheck(a, c) { var b = window.location; if (a == undefined || a.length == 0) { $a("请输入用户名", "错误提示", "txtUsername"); return } if (c == undefined || c.length == 0) { $a("请输入密码", "错误提示", "txtPassword"); return } $.post("/ajax.ashx?action=logincheck&t=" + Math.random(), { username: a, password: c }, function (d) { if (gav(d, "state") == "1") { $a(gav(d, "msg")); window.location.href = b } else { $a(gav(d, "msg")) } }) } function xuanze() { var a = document.getElementById("seachkeywords").value; if (a == "请输入关键词搜索") { a = "" } window.location.href = "/Search/Index.aspx?objtype=product&kwd=" + a } $(function () { $("#seachkeywords").val("请输入关键词搜索").css({ color: "#666" }); $("#seachkeywords").click(function () { $(this).val("").css({ color: "#000" }) }).blur(function () { if ($.trim($(this).val()) == "") { $(this).val("请输入关键词搜索").css({ color: "#666" }) } }) }); function ChangeFontSize(b, a) { $(b).addClass("cur").siblings("a").removeClass("cur"); $j("cntrBody").css("font-size", a).find("*").css("font-size", a) } function getUrlParms() { var b = new Object(); var f = location.search.substring(1); var e = f.split("&"); for (var c = 0; c < e.length; c++) { var g = e[c].indexOf("="); if (g == -1) { continue } var a = e[c].substring(0, g); var d = e[c].substring(g + 1); b[a] = unescape(d) } return b } function SetHome(c, d) { try { c.style.behavior = "url(#default#homepage)"; c.setHomePage(d) } catch (b) { if (window.netscape) { try { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect") } catch (b) { alert("抱歉!您的浏览器不支持直接设为首页。请在浏览器地址栏输入“about:config”并回车然后将[signed.applets.codebase_principal_support]设置为“true”,点击“加入收藏”后忽略安全提示,即可设置成功。") } var a = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch); a.setCharPref("browser.startup.homepage", d) } else { alert("抱歉,您的浏览器不支持自动设置首页, 请使用浏览器菜单手动设置!") } } }; function addBookmark(_this) { try { var _title = document.title; var url = document.URL; if (window.sidebar) { var ua = navigator.userAgent.toLowerCase(); if (ua.indexOf("firefox") > -1 && ua.match(/firefox\/([\d.]+)/)[1] == "23.0") { _this.setAttribute("title", _title) } else { window.sidebar.addPanel(_title, url, "") } } else if (window.opera && window.print) { var __mbm = document.createElement("a"); __mbm.setAttribute("rel", "sidebar"); __mbm.setAttribute("href", url); __mbm.setAttribute("title", _title); __mbm.click() } else if (document.all) { window.external.AddFavorite(url, _title); return } else { alert("浏览器不支持该操作,尝试快捷键 Ctrl + D !") } } catch (e) { alert("浏览器不支持该操作,尝试快捷键 Ctrl + D !") } }
/*ajax.js*/
function productLoad() { hits(OBJ_ID, "product"); writeComment(OBJ_ID, MARK); addHistory(OBJ_ID, MARK); initImages(OBJ_ID); getHistory("product"); getRecommentProductByHistory(OBJ_ID); getRelevantViewed(OBJ_ID); } function projectLoad() { hits(OBJ_ID, "project"); writeComment(OBJ_ID, MARK); addHistory(OBJ_ID, MARK); getHistory("project"); getRecommentProjectByHistory(OBJ_ID); } function checkSize() { $(document).ready(function () { $(".pro_kuang").find("li").click(function () { $(this).parent().find("a").removeClass(); $(this).find("a").addClass("img") }) }) } function checkWishSize(g) { $(g).parent().find("a").removeClass(); $(g).addClass("clicked"); if ($("#txtAttr").html() == "") { $("#txtAttr").append($(g).attr("title")) } else { var a = new Array(); a = $("#txtAttr").html().split(","); for (var e = 0; e < a.length; e++) { var b = a[e].split(":")[0]; var d = $(g).attr("title").split(":")[0]; var c = $(g).attr("title").split(":")[1]; var f = b + ":" + c; if (b == d) { $("#txtAttr").html($("#txtAttr").html().replace(a[e], f)); return } } $("#txtAttr").append("," + $(g).attr("title")) } } function getAttrValesPhotos(a) { $.post("/ajax.ashx?action=attrValuesPhotos&t=" + Math.random(), { oid: a }, function (b) { $j("img_list").html(b) }) } function switchProdTab(d) { var b = $(d); var a = b.attr("target_id"); var c = b.parent().find("a[class=cr]"); if (c.attr("target_id") == a) { return } c.removeClass("cr"); b.addClass("cr"); $j("cntrRelevantProd>div").hide(); $j(a).show() } function gav(d, a) { var c = $(d); var b = $(c.find("node[key=" + a + "]")).text(); return b } function initImages(c) { var a = '
'; var d = ""; for (var b = 0; b < ARR_IMG_PATH.length; ++b) { if (b == 0) { d = a.replace(/\{\$co\$\}/ig, "class='now'").replace(/\{\$path\$\}/ig, ARR_IMG_PATH[b]).replace(/\{\$title\$\}/ig, OBJ_TITLE) } else { d += a.replace(/\{\$co\$\}/ig, "").replace(/\{\$path\$\}/ig, ARR_IMG_PATH[b]).replace(/\{\$title\$\}/ig, OBJ_TITLE) } } $("#img_list").html(d) } function setSelectedImg(a) { $(a).parent().find("a").removeClass("cur"); $(a).addClass("cur") } function viewBigImage(b) { var c = window.location.host; var a = "/product/gallery.aspx?oid=" + b; if (c != "undefined") { a += "&selectedpath=http://" + c } window.open(a) } function switchImage(d) { var a = $(".MagicZoom"); var b = a.find("img:eq(0)"); var c = $(".MagicZoomBigImageCont img"); var e = $(d).find("img").attr("srcimg"); a.attr("href", e); b.attr("src", e); c.attr("src", e); $j("btnShowOrgiImg").click(function () { window.open(e, "orgiImg") }) } function productSelectCurrentPosition(a) { $("div.nr h4[sid='" + a + "']").addClass("cur"); $("div.nr h5[sid='" + a + "']").addClass("cur"); $("div.nr li[sid='" + a + "']").addClass("cur") } function onclPrReAtts(b, f, a) { var g = false; $("#" + b).html(f); if (atts == null || atts == "") { atts = a + "," + f } else { var d = new Array(); d = atts.split("$"); if (d.length <= 0) { atts = atts + "$" + a + "," + f } else { atts = ""; for (var e = 0; e < d.length; e++) { var h = ""; var c = d[e].split(","); if (c.length == 2) { h = c[1]; if (c[0] == a) { h = f; g = true } if (atts == null || atts == "") { atts = c[0] + "," + h } else { atts = atts + "$" + c[0] + "," + h } } } if (g == false) { if (atts == null || atts == "") { atts = a + "," + f } else { atts = atts + "$" + a + "," + f } } } } } function switchAttrTab(c) { var a = $(c); if (a.attr("class") == "cur") { return } var b = a.attr("item_name"); $j("div__detail").hide(); $j("div__attr").hide(); $j("div__" + b).show(); $(".prod_tab").find("a").removeClass("cur"); a.addClass("cur") } function switchExtendAttrTab(f, g) { var d = f; var a = f.substring(f.length - 1, f.length); for (var b = 0; b < g; b++) { var c = "detailvalue" + b; var e = "detail" + b; if (a == b) { $j(c).show(); $j(e).addClass("cur") } else { $j(c).hide(); $j(e).removeClass() } } } function switchExtendContentTab(g, h, a) { var e = g; var b = g.substring(g.length - 1, g.length); for (var c = 0; c < h; c++) { var d = "contentvalue" + a + c; var f = "content" + a + c; if (b == c) { $j(d).show(); $j(f).addClass("cur") } else { $j(d).hide(); $j(f).removeClass() } } } function removeProductInfoTags() { if (!$.trim($("div.pd_attr").text())) { $("div.pd_attr").remove() } if (!$.trim($("div.pd_short").text())) { $("div.pd_short").remove() } } function initCommonHeader() { $.get("/ajax.ashx?action=initcommonheader&t=" + Math.random(), function (b) { var a = gav(b, "showIM"); showIM(a); var c = gav(b, "username"); if (c.length > 0) { $("#guest").hide(); $("#user").show(); $j("commonHeaderGuest").hide(); $j("commonHeaderUsername").html(c); $j("commonHeaderUser").fadeIn(80) } }) } function showIM(a) { if ($("#bodd").html() != "") { if (a == "True") { $("#bodd").show(); $("#kefubtn").hide(); $("#divOranIm").show() } else { $("#bodd").hide(); $("#kefubtn").show(); $("#divOranIm").hide() } } } function initCommonHeaderKeywords(a) { if (a == "") { a = "6" } $.post("/ajax.ashx?action=initcommonheaderkeywords&t=" + Math.random(), { s: a }, function (b) { $j("commonHeaderkeywords").html(b) }) } function hits(a, b) { $.post("/ajax.ashx?action=hits&t=" + Math.random(), { oid: a, mark: b }) } function addHistory(a, b) { $.get("/ajax.ashx?action=addhistory&t=" + Math.random(), { oid: a, mark: b }) } function getHistory(a) { $.post("/ajax.ashx?action=gethistory&t=" + Math.random(), { mark: a }, function (b) { if (b.length == 0) { b = "
无浏览历史
" } $j("divHistoryCntr").html(b + "") }) } function getHits(a, b) { $.post("/ajax.ashx?action=gethits", { mark: b, oid: a }, function (c) { $j("cntrHits").html(c) }) } function cleanHistory(b, a) { $.post("/ajax.ashx?action=cleanhistory", { mark: b }, function (c) { $j("divHistoryCntr").html("
无浏览历史
") }) } function subscription(d, a) { if (a == null) { a = "txtSubscriptionEmail" } var c = $.trim($j(a).val()); var b = /\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/; if (c.length == 0) { $a("E-Mail 不可为空"); $j(a).focus(); return false } if (!b.test(c)) { $a("E-Mail 格式错误。"); $j(a).focus(); return false } showProc(d); $.post("/ajax.ashx?action=subscription&t=" + Math.random(), { email: c }, function (g) { var f = gav(g, "state"); var e = gav(g, "msg"); if (f == "1") { $a(e, 1) } else { $a(e) } showProc(d, false) }) } function checkAuthority(b, a) { $.post("/ajax.ashx?action=checkauthority&t=" + Math.random(), { authIDs: b }, function (c) { if (c == "1") { $j("div___________Perm").hide(); document.oncontextmenu = function () { return true }; document.onselectstart = function () { return true } } else { showMsgPage("您不具有查看 " + a + " 的权限。"); return } }) } function changeFavColumn(c, a) { var b = getCheckedVal(a); if (b.length == 0) { $a("无选中项。"); return } showProc(c); $.post("/ajax.ashx?action=changefavcolumn&t=" + Math.random(), { ids: b, targetId: c.value }, function (f) { var e = gav(f, "state"); var d = gav(f, "msg"); if (e == "1") { location.reload() } else { } }); showProc(c, false) } function getRecommentProductByHistory(a) { $.post("/ajax.ashx?action=GetRecommentProductByHistory&t=" + Math.random(), { oid: a }, function (c) { var b = $j("divHistoryRecommentCntr"); if (c.length == 0) { b.remove() } else { b.html(c) } }) } function getRecommentProjectByHistory(a) { $.post("/ajax.ashx?action=GetRecommentProjectByHistory&t=" + Math.random(), { oid: a }, function (c) { var b = $j("divHistoryRecommentCntr"); if (c.length == 0) { b.remove() } else { b.html(c) } }) } function getRelevantSales(a) { $.post("/ajax.ashx?action=GetRelevantSales&t=" + Math.random(), { oid: a }, function (c) { var b = $j("divRelevantSalesCntr"); if (c.length == 0) { b.remove() } else { b.html(c) } }) } function getRelevantViewed(a) { $.post("/ajax.ashx?action=GetRelevantViewed&t=" + Math.random(), { oid: a }, function (c) { var b = $j("divRelevantViewedCntr"); if (c.length == 0) { b.remove() } else { b.html(c) } }) } function getRelevantViewedProject(a) { $.post("/ajax.ashx?action=GetRelevantViewedProject&t=" + Math.random(), { oid: a }, function (c) { var b = $j("divRelevantViewedCntr"); if (c.length == 0) { b.remove() } else { b.html(c) } }) } function getRelevantViewedDownload(a) { $.post("/ajax.ashx?action=GetRelevantViewedDownload&t=" + Math.random(), { oid: a }, function (c) { var b = $j("divRelevantViewedCntr"); if (c.length == 0) { b.remove() } else { b.html(c) } }) } function delInitationlog(c, a) { var b = getCheckedVal(a); if (b.length == 0) { $a("无选中项。"); return } showBgProc(); $.post("/ajax.ashx?action=DelInitationlog&t=" + Math.random(), { ids: b }, function (e) { if (gav(e, "state") == "1") { var d = $j(a).find("input[name=item]:checked"); d.each(function (f) { $(this).parent().parent().remove() }) } else { $a(gav(e, "msg")) } showBgProc(false) }) } function directPay(a) { var f = $v("DIR_PAY_txtPayer"); var k = $v("DIR_PAY_txtEmail"); var h = $v("DIR_PAY_txtTel"); var j = $v("DIR_PAY_txtMobile"); var e = $v("DIR_PAY_txtSalesManName"); var d = $v("DIR_PAY_txtMoney"); var b = $v("DIR_PAY_txtUse"); var c = $v("DIR_PAY_ddlPayment"); var g = ""; if (f.length == 0) { g += "
付款人不可为空。
" } if (k == "") { g += "
电子邮箱地址不可为空
" } else { if (!PTN_EMAIL.test(k)) { g += "
电子邮箱地址格式错误
" } } if (d.length == 0) { g += "
付款金额不可为空。
" } else { if (!PTN_FLOAT.test(d)) { g += "
付款金额必须为数字,如89.00。
" } } if (b.length == 0) { g += "
款项用途不可为空。
" } if (c.length == 0) { g += "
请选择付款方式。
" } if (g.length > 0) { $a(g); return } showProc(a); $.post("/ajax.ashx?action=DirectPay&t=" + Math.random(), { payer: f, email: k, tel: h, mobile: j, salesMan: e, _money: d, _use: b, payment: c }, function (n) { var m = gav(n, "state"); var l = gav(n, "msg"); if (m == "1") { location.href = "/Paycenter/PayDirectConfirm.aspx"; return } else { $a(l) } showProc(a, false) }) } function submitOrder(a, e) { showProc(a); var d = $j("txtContact").val(); var j = $j("txtCompName").val(); var k = $j("txtTel").val(); var h = $j("txtMobile").val(); var m = $j("txtEmail").val(); var c = $j("txtAddr").val(); var g = $j("txtContent").val(); var n = $j("txtValidate").val(); var f = ""; if (d.length == 0) { f += "
联系人不可为空
" } if (h.length == 0) { f += "
手机不可为空
" } var l = /^\d{11,13}$/; if (h.length > 0 && !l.test(h)) { f += "
手机格式错误
" } var b = /\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/; if (m.length > 0 && !b.test(m)) { f += "
E-Mail格式错误
" } if (g.length == 0) { f += "
采购意向描述不可为空
" } if (n.length == 0) { f += "
验证码不可为空
" } if (f.length > 0) { $a(f); showProc(a, false); return } $.post("/ajax.ashx?action=submitorder&t=" + Math.random(), { oid: e, contact: d, compName: j, tel: k, mobile: h, email: m, addr: c, content: g, vali: n }, function (q) { var p = gav(q, "state"); var o = gav(q, "msg"); if (p == "1") { $a(o, 1); emptyText("tbForm1"); emptyText("caigou"); document.getElementById("imgvalidate").src = "/Tools/ValidCodes.aspx?" + new Date().getTime() } else { $a(o); if ($.trim(o).indexOf("验证码错误") != -1) { document.getElementById("imgvalidate").src = "/Tools/ValidCodes.aspx?" + new Date().getTime() } else { emptyText("tbForm1") } } }); showProc(a, false) } function showProductInfo(h, c, g) { var f = null; var e = null; var a = null; var d = null; $(h).hover(function () { f = new Date(); b() }, function () { window.clearInterval(a) }); function b() { a = window.setInterval(function () { e = new Date(); d = e - f; if (d > 400) { if ($(h).parent().parent().next().attr("class") == "mesbook4" || $(h).parent().parent().next().attr("class") == "mesbook40") { if ($(h).parent().parent().next().is(":visible")) { return } else { $(h).parent().parent().next().show() } } else { $.post("/ajax.ashx?action=showProductInfo&t=" + Math.random(), { oid: c, index: g }, function (j) { if ($(h).parent().parent().next().attr("class") == "mesbook4" || $(h).parent().parent().next().attr("class") == "mesbook40") { return } else { $(h).parent().parent().after(j); return } }) } } }, 450) } } function showProductInfos(g, c) { var f = null; var e = null; var a = null; var d = null; $(g).hover(function () { f = new Date(); b() }, function () { window.clearInterval(a) }); function b() { a = window.setInterval(function () { e = new Date(); d = e - f; if (d > 400) { if ($(g).parent().parent().next().attr("class") == "mesbook44") { if ($(g).parent().parent().next().is(":visible")) { return } else { $(g).parent().parent().next().show() } } else { $.post("/ajax.ashx?action=showProductInfos&t=" + Math.random(), { oid: c }, function (h) { if ($(g).parent().parent().next().attr("class") == "mesbook44") { return } else { $(g).parent().parent().after(h); return } }) } } }, 450) } } function hideProductInfo(a) { if ($(a).parent().parent().next().attr("class") == "mesbook4" || $(a).parent().parent().next().attr("class") == "mesbook40" || $(a).parent().parent().next().attr("class") == "mesbook44") { $(a).parent().parent().next().mouseover(function () { $(a).parent().parent().next().show(); return }); $(a).parent().parent().next().mouseout(function () { $(a).parent().parent().next().hide(); return }); $(a).parent().parent().next().hide() } } function showProductTips(b) { var a = $j("div_nsw_tips"); if (a.length == 0) { var c = "
"; $(document.body).append(c) } setCM("div_nsw_tips"); showFullBg("div_nsw_tips_bg"); relocation("div_nsw_tips") } function submitProductTips(e, f, c, d) { var e = $j("txtHide").val(); var f = $j("txtEmail").val(); var c = $j("txtContent").val(); var a = $("input[name=rdoTips]:checked").val(); if (c.length > 500) { $a("简述太长,不能超过500个字节,请填写简短描述") } var b = /\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/; if (f.length == 0) { $a("E-Mail 不可为空"); return false } if (!b.test(f)) { $a("E-Mail 格式错误"); return false } $.post("/ajax.ashx?action=postProductTips&t=" + Math.random(), { oid: e, email: f, content: c, state: a }, function (g) { if (gav(g, "state") == "1") { $a(gav(g, "msg"), 1) } else { $a(gav(g, "msg")) } }); $j("div_nsw_tips").hide(); hideFullBg("div_nsw_tips_bg") } function showMyWish(b) { var a = $j("div_nsw_wishs"); if (a.length == 0) { var c = ''; $(document.body).append(c) } $.post("/ajax.ashx?action=showMyWish&t=" + Math.random(), { oid: b }, function (d) { $j("div_nsw_wishs").html(d) }); setCM("div_nsw_wishs"); showFullBg("div_nsw_wishs_bg"); relocation("div_nsw_wishs") } function submitProductWishs(b, c, a) { var b = $j("txtHide").val(); var c = $j("txtAttr").html(); var a = $j("txtNum").val(); $.post("/ajax.ashx?action=postProductWishs&t=" + Math.random(), { oid: b, attr: c, num: a }, function (d) { if (gav(d, "state") == "1") { $a(gav(d, "msg"), 1) } else { $a(gav(d, "msg")) } }); $j("div_nsw_wishs").hide(); hideFullBg("div_nsw_wishs_bg") } function sendGetProductsNotify(c) { var b = $j("ddlProductsColumns").val(); var a = $j("txtSearch").val(); if (a == "关键词") { a = "" } $.post("/ajax.ashx?action=sendGetProductsByColumn&t=" + Math.random(), { columnID: b, searchText: a }, function (d) { InitDropdownlist(document.getElementById("PackageSelectList"), "请选择关联资讯", "0", d) }) } function InitDropdownlist(e, d, c, f) { var a = e.options.length; for (i = 0; i < a; i++) { e.remove(0) } var b = f.split("||"); a = b.length; if (a) { for (i = 0; i < a - 1; i++) { text_value = b[i].split("$$"); text = text_value[1]; value = text_value[0]; e.add(new Option(text, value)) } } } function userorder(a) { var b = $tv("txtname"); var e = $tv("txttitle"); var c = $tv("txtemail"); var j = $tv("txttel"); var f = $tv("txtcontent"); var h = $tv("txtaddress"); var k = $tv("txtenddate"); var g = $("#PackagePickList").val(); if (e == "") { $a("定单名称不能为空", "txttitle"); return } if (b == "") { $a("下单人姓名不能为空", "txtname"); return } if (j == "") { $a("联系电话不能为空", "txttel"); return } if (h == "") { $a("联系地址不能为空", "txtaddress"); return } if (k == "") { $a("到货时间不能为空", "txtenddate"); return } if (f == "" || f.length > 1000) { $a("详细描述不能为空或者大于1000字", "txtcontent"); return } else { var l = $.trim($(a).val()); var d = /\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/; if (!d.test(c)) { $a("E-Mail错误"); return false } } $.post("/ajax.ashx?action=agentorder&t=" + Math.random(), { s_name: b, s_title: e, s_email: c, s_tel: j, s_content: f, s_address: h, s_enddate: k, s_IDList: g }, function (o) { var n = gav(o, "state"); var m = gav(o, "msg"); if (n == "1") { showMsgPage("
定单提交成功,我们会尽快与您联系,谢谢!
", 1, "/User/UserOrder.aspx", "在线定单", "/User/UserOrder.aspx"); return } else { if (m.length > 0) { $a(m) } else { $a(o) } } }) } function delAgentOrder(c, a) { var b = getCheckedVal(a); if (b.length == 0) { $a("无选中项。"); return } showBgProc(); $.post("/ajax.ashx?action=delAgentOrder&t=" + Math.random(), { ids: b }, function (e) { if (gav(e, "state") == "1") { var d = $j(a).find("input[name=item]:checked"); d.each(function (f) { $(this).parent().parent().remove() }); $a(gav(e, "msg"), 1) } else { $a(gav(e, "msg")) } showBgProc(false) }) } function AddCompare(b) { var c = false; if (b.checked) { c = true; $(b).next().next().next().show() } else { c = false; $(b).next().next().next().hide() } var a = $(b).val(); $.post("/ajax.ashx?action=addCompare&t=" + Math.random(), { ids: a, flag: c }, function (g) { if (gav(g, "state") == "1") { var f = gav(g, "newcookie"); var d = new Array(); d = f.split(","); if (d.length > 0) { for (var e = 0; e < d.length; e++) { if (e == d.length - 1) { $(".pro_main").find("input[id=" + d[e] + "]").show() } else { $(".pro_main").find("input[id=" + d[e] + "]").hide() } } } } }) } function DelOneCompare(b) { var a = $(b).attr("id"); $.post("/ajax.ashx?action=delOneCompare&t=" + Math.random(), { ids: a }, function (c) { if (gav(c, "state") == "1") { window.location = "/product/Compare.aspx" } else { showMsgPage("
产品对比车中不存在对比的产品记录,请选择需要对比的产品
", 0, "/", "首页", "/") } }) } function DelAllCompare() { $.post("/ajax.ashx?action=delAllCompare&t=" + Math.random(), {}, function (a) { showMsgPage("
产品对比车中所有产品已移除,您可以继续挑选产品进行比较
", 1, "/", "首页", "/") }) } function getSubSiteInfos() { $.post("/ajax.ashx?action=subsiteinfos&t=" + Math.random(), { domain: document.domain }, function (c) { var a = gav(c, "phone"); var b = gav(c, "address"); $("#phones").html(a) }) } function getSubSiteInfo() { $.post("/ajax.ashx?action=subsiteinfo&t=" + Math.random(), { domain: document.domain }, function (a) { if (a) { $("#site ul").html(a) } else { $("#site").remove() } }) } function postComment(e, c, d) { showProc(e); var a = $tv("txtCmtContent"); var b = $tv("txtCmtVerCode"); if (a == "") { $a("内容必填。"); showProc(e, false); return } if ($g("txtVerCode") != null && s_verCode == "") { $a("验证码不可空。"); showProc(e, false); return } $.post("/ajax.ashx?action=postcomment&t=" + Math.random(), { content: a, oid: c, verCode: b, mark: d }, function (h) { var k = gav(h, "state"); var j = gav(h, "msg"); if (k == "") { $a(h, -1) } else { if (k == "2") { $a(j, 1); emptyText("tbCmt") } else { if (k == "1") { var o = gav(h, "time"); var g = gav(h, "username"); var p = gav(h, "ip"); var m = gav(h, "comment"); var f = gav(h, "feedback"); var l = gav(h, "num"); var n = "
{$username$}IP:{$ip$}时间:{$time$}
{$content$}
管理员回复:
{$feedback$}
"; var q = n.replace("{$username$}", g).replace("{$ip$}", p).replace("{$time$}", o).replace("{$feedback$}", f).replace("{$content$}", m); var r = $j("divComments").html(); if (r == "暂无评论") { r = "" } $j("divComments").html(q + r); $j("spCommentCount").html(l); $a(j, 1); emptyText("tbCmt") } else { $a(j) } } } showProc(e, false) }) } function writeComment(a, b) { $.post("/ajax.ashx?action=getcomment&t=" + Math.random(), { oid: a, mark: b }, function (e) { var h = $(e).find("count").text(); $j("spCommentCount").html(h); var n = $(e).find("comment"); var m = ""; var k = "
{$username$}IP:{$ip$}时间:{$time$}
{$content$}
管理员回复:
{$feedback$}
"; for (var f = 0; f < n.length; ++f) { var o = $(n[f]); var d = o.find("username").text(); var g = o.find("content").text(); var l = o.find("ip").text(); var j = o.find("inputTime").text(); var c = o.find("feedback").text(); m += k.replace("{$username$}", d).replace("{$ip$}", l).replace("{$time$}", j).replace("{$content$}", g).replace("{$feedback$}", c) } if (m.length > 0) { $j("divComments").html(m) } else { $j("divComments").html("暂无评论") } }) } function getAd(b, a) { $.post("/ajax.ashx?action=getadd", { keyname: b }, function (c) { $j(a).html(c) }) };
//加载js,src为文件路径,fn为回调函数,doc为当前文档
var loadJs = function (src, fn, doc) { if (!src) { return false } doc = doc || document; src = src.toLowerCase(); var head = doc.getElementsByTagName("head")[0]; var file = src.lastIndexOf("/") > 0 ? src.substr(src.lastIndexOf("/")) : src; var script = $(head).find("script[src$='" + file + "']"); if (script.length) { if (fn && jQuery.isFunction(fn)) { if (script.attr("state") == "loading") { setTimeout(function () { fn() }, 300) } else { fn() } } return false } var nodeScript = doc.createElement("script"); nodeScript.type = "text/javascript"; nodeScript.src = src; nodeScript.charset = "utf-8"; head.appendChild(nodeScript); $(nodeScript).attr("state", "loading"); nodeScript.onload = nodeScript.onreadystatechange = function () { if (nodeScript.ready) { return false } if (!nodeScript.readyState || nodeScript.readyState === "loaded" || nodeScript.readyState === "complete") { if (fn && jQuery.isFunction(fn)) { fn() } $(nodeScript).attr("state", "complete"); nodeScript.onload = nodeScript.onreadystatechange = null } } };
function loadCss(b, e) { e = e || document; var d = e.getElementsByTagName("head")[0]; var c = b.lastIndexOf("/") > 0 ? b.substr(b.lastIndexOf("/")) : b; var a = $(d).find("link[href$='" + c + "']"); if (a.length == 0) { a = document.createElement("link"); a.rel = "stylesheet"; a.rev = "stylesheet"; a.type = "text/css"; a.media = "screen"; a.href = b; d.appendChild(a) } };
!function (a) { a.fn.slide = function (b) { return a.fn.slide.defaults = { type: "slide", effect: "fade", autoPlay: !1, delayTime: 500, interTime: 2500, triggerTime: 150, defaultIndex: 0, titCell: ".hd li", mainCell: ".bd", targetCell: null, trigger: "mouseover", scroll: 1, vis: 1, titOnClassName: "on", autoPage: !1, prevCell: ".prev", nextCell: ".next", pageStateCell: ".pageState", opp: !1, pnLoop: !0, easing: "swing", startFun: null, endFun: null, switchLoad: null, playStateCell: ".playState", mouseOverStop: !0, defaultPlay: !0, returnDefault: !1 }, this.each(function () { var c = a.extend({}, a.fn.slide.defaults, b), d = a(this), e = c.effect, f = a(c.prevCell, d), g = a(c.nextCell, d), h = a(c.pageStateCell, d), i = a(c.playStateCell, d), j = a(c.titCell, d), k = j.size(), l = a(c.mainCell, d), m = l.children().size(), n = c.switchLoad, o = a(c.targetCell, d), p = parseInt(c.defaultIndex), q = parseInt(c.delayTime), r = parseInt(c.interTime); parseInt(c.triggerTime); var Q, t = parseInt(c.scroll), u = parseInt(c.vis), v = "false" == c.autoPlay || 0 == c.autoPlay ? !1 : !0, w = "false" == c.opp || 0 == c.opp ? !1 : !0, x = "false" == c.autoPage || 0 == c.autoPage ? !1 : !0, y = "false" == c.pnLoop || 0 == c.pnLoop ? !1 : !0, z = "false" == c.mouseOverStop || 0 == c.mouseOverStop ? !1 : !0, A = "false" == c.defaultPlay || 0 == c.defaultPlay ? !1 : !0, B = "false" == c.returnDefault || 0 == c.returnDefault ? !1 : !0, C = 0, D = 0, E = 0, F = 0, G = c.easing, H = null, I = null, J = null, K = c.titOnClassName, L = j.index(d.find("." + K)), M = p = -1 == L ? p : L, N = p, O = p, P = m >= u ? 0 != m % t ? m % t : t : 0, R = "leftMarquee" == e || "topMarquee" == e ? !0 : !1, S = function () { a.isFunction(c.startFun) && c.startFun(p, k, d, a(c.titCell, d), l, o, f, g) }, T = function () { a.isFunction(c.endFun) && c.endFun(p, k, d, a(c.titCell, d), l, o, f, g) }, U = function () { j.removeClass(K), A && j.eq(N).addClass(K) }; if ("menu" == c.type) return A && j.removeClass(K).eq(p).addClass(K), j.hover(function () { Q = a(this).find(c.targetCell); var b = j.index(a(this)); I = setTimeout(function () { switch (p = b, j.removeClass(K).eq(p).addClass(K), S(), e) { case "fade": Q.stop(!0, !0).animate({ opacity: "show" }, q, G, T); break; case "slideDown": Q.stop(!0, !0).animate({ height: "show" }, q, G, T) } }, c.triggerTime) }, function () { switch (clearTimeout(I), e) { case "fade": Q.animate({ opacity: "hide" }, q, G); break; case "slideDown": Q.animate({ height: "hide" }, q, G) } }), B && d.hover(function () { clearTimeout(J) }, function () { J = setTimeout(U, q) }), void 0; if (0 == k && (k = m), R && (k = 2), x) { if (m >= u) if ("leftLoop" == e || "topLoop" == e) k = 0 != m % t ? (0 ^ m / t) + 1 : m / t; else { var V = m - u; k = 1 + parseInt(0 != V % t ? V / t + 1 : V / t), 0 >= k && (k = 1) } else k = 1; j.html(""); var W = ""; if (1 == c.autoPage || "true" == c.autoPage) for (var X = 0; k > X; X++) W += "
" + (X + 1) + "
"; else for (var X = 0; k > X; X++) W += c.autoPage.replace("$", X + 1); j.html(W); var j = j.children() } if (m >= u) { l.children().each(function () { a(this).width() > E && (E = a(this).width(), D = a(this).outerWidth(!0)), a(this).height() > F && (F = a(this).height(), C = a(this).outerHeight(!0)) }); var Y = l.children(), Z = function () { for (var a = 0; u > a; a++) Y.eq(a).clone().addClass("clone").appendTo(l); for (var a = 0; P > a; a++) Y.eq(m - a - 1).clone().addClass("clone").prependTo(l) }; switch (e) { case "fold": l.css({ position: "relative", width: D, height: C }).children().css({ position: "absolute", width: E, left: 0, top: 0, display: "none" }); break; case "top": l.wrap('').css({ top: -(p * t) * C, position: "relative", padding: "0", margin: "0" }).children().css({ height: F }); break; case "left": l.wrap('').css({ width: m * D, left: -(p * t) * D, position: "relative", overflow: "hidden", padding: "0", margin: "0" }).children().css({ "float": "left", width: E }); break; case "leftLoop": case "leftMarquee": Z(), l.wrap('').css({ width: (m + u + P) * D, position: "relative", overflow: "hidden", padding: "0", margin: "0", left: -(P + p * t) * D }).children().css({ "float": "left", width: E }); break; case "topLoop": case "topMarquee": Z(), l.wrap('').css({ height: (m + u + P) * C, position: "relative", padding: "0", margin: "0", top: -(P + p * t) * C }).children().css({ height: F }) } } var $ = function (a) { var b = a * t; return a == k ? b = m : -1 == a && 0 != m % t && (b = -m % t), b }, _ = function (b) { var c = function (c) { for (var d = c; u + c > d; d++) b.eq(d).find("img[" + n + "]").each(function () { var b = a(this); if (b.attr("src", b.attr(n)).removeAttr(n), l.find(".clone")[0]) for (var c = l.children(), d = 0; d < c.size(); d++) c.eq(d).find("img[" + n + "]").each(function () { a(this).attr(n) == b.attr("src") && a(this).attr("src", a(this).attr(n)).removeAttr(n) }) }) }; switch (e) { case "fade": case "fold": case "top": case "left": case "slideDown": c(p * t); break; case "leftLoop": case "topLoop": c(P + $(O)); break; case "leftMarquee": case "topMarquee": var d = "leftMarquee" == e ? l.css("left").replace("px", "") : l.css("top").replace("px", ""), f = "leftMarquee" == e ? D : C, g = P; if (0 != d % f) { var h = Math.abs(0 ^ d / f); g = 1 == p ? P + h : P + h - 1 } c(g) } }, ab = function (a) { if (!A || M != p || a || R) { if (R ? p >= 1 ? p = 1 : 0 >= p && (p = 0) : (O = p, p >= k ? p = 0 : 0 > p && (p = k - 1)), S(), null != n && _(l.children()), o[0] && (Q = o.eq(p), null != n && _(o), "slideDown" == e ? (o.not(Q).stop(!0, !0).slideUp(q), Q.slideDown(q, G, function () { l[0] || T() })) : (o.not(Q).stop(!0, !0).hide(), Q.animate({ opacity: "show" }, q, function () { l[0] || T() }))), m >= u) switch (e) { case "fade": l.children().stop(!0, !0).eq(p).animate({ opacity: "show" }, q, G, function () { T() }).siblings().hide(); break; case "fold": l.children().stop(!0, !0).eq(p).animate({ opacity: "show" }, q, G, function () { T() }).siblings().animate({ opacity: "hide" }, q, G); break; case "top": l.stop(!0, !1).animate({ top: -p * t * C }, q, G, function () { T() }); break; case "left": l.stop(!0, !1).animate({ left: -p * t * D }, q, G, function () { T() }); break; case "leftLoop": var b = O; l.stop(!0, !0).animate({ left: -($(O) + P) * D }, q, G, function () { -1 >= b ? l.css("left", -(P + (k - 1) * t) * D) : b >= k && l.css("left", -P * D), T() }); break; case "topLoop": var b = O; l.stop(!0, !0).animate({ top: -($(O) + P) * C }, q, G, function () { -1 >= b ? l.css("top", -(P + (k - 1) * t) * C) : b >= k && l.css("top", -P * C), T() }); break; case "leftMarquee": var c = l.css("left").replace("px", ""); 0 == p ? l.animate({ left: ++c }, 0, function () { l.css("left").replace("px", "") >= 0 && l.css("left", -m * D) }) : l.animate({ left: --c }, 0, function () { l.css("left").replace("px", "") <= -(m + P) * D && l.css("left", -P * D) }); break; case "topMarquee": var d = l.css("top").replace("px", ""); 0 == p ? l.animate({ top: ++d }, 0, function () { l.css("top").replace("px", "") >= 0 && l.css("top", -m * C) }) : l.animate({ top: --d }, 0, function () { l.css("top").replace("px", "") <= -(m + P) * C && l.css("top", -P * C) }) } j.removeClass(K).eq(p).addClass(K), M = p, y || (g.removeClass("nextStop"), f.removeClass("prevStop"), 0 == p && f.addClass("prevStop"), p == k - 1 && g.addClass("nextStop")), h.html("" + (p + 1) + "/" + k) } }; A && ab(!0), B && d.hover(function () { clearTimeout(J) }, function () { J = setTimeout(function () { p = N, A ? ab() : "slideDown" == e ? Q.slideUp(q, U) : Q.animate({ opacity: "hide" }, q, U), M = p }, 300) }); var bb = function (a) { H = setInterval(function () { w ? p-- : p++, ab() }, a ? a : r) }, cb = function (a) { H = setInterval(ab, a ? a : r) }, db = function () { z || (clearInterval(H), bb()) }, eb = function () { (y || p != k - 1) && (p++, ab(), R || db()) }, fb = function () { (y || 0 != p) && (p--, ab(), R || db()) }, gb = function () { clearInterval(H), R ? cb() : bb(), i.removeClass("pauseState") }, hb = function () { clearInterval(H), i.addClass("pauseState") }; if (v ? R ? (w ? p-- : p++, cb(), z && l.hover(hb, gb)) : (bb(), z && d.hover(hb, gb)) : (R && (w ? p-- : p++), i.addClass("pauseState")), i.click(function () { i.hasClass("pauseState") ? gb() : hb() }), "mouseover" == c.trigger ? j.hover(function () { var a = j.index(this); I = setTimeout(function () { p = a, ab(), db() }, c.triggerTime) }, function () { clearTimeout(I) }) : j.click(function () { p = j.index(this), ab(), db() }), R) { if (g.mousedown(eb), f.mousedown(fb), y) { var ib, jb = function () { ib = setTimeout(function () { clearInterval(H), cb(0 ^ r / 10) }, 150) }, kb = function () { clearTimeout(ib), clearInterval(H), cb() }; g.mousedown(jb), g.mouseup(kb), f.mousedown(jb), f.mouseup(kb) } "mouseover" == c.trigger && (g.hover(eb, function () { }), f.hover(fb, function () { })) } else g.click(eb), f.click(fb) }) } } (jQuery), jQuery.easing.jswing = jQuery.easing.swing, jQuery.extend(jQuery.easing, { def: "easeOutQuad", swing: function (a, b, c, d, e) { return jQuery.easing[jQuery.easing.def](a, b, c, d, e) }, easeInQuad: function (a, b, c, d, e) { return d * (b /= e) * b + c }, easeOutQuad: function (a, b, c, d, e) { return -d * (b /= e) * (b - 2) + c }, easeInOutQuad: function (a, b, c, d, e) { return (b /= e / 2) < 1 ? d / 2 * b * b + c : -d / 2 * (--b * (b - 2) - 1) + c }, easeInCubic: function (a, b, c, d, e) { return d * (b /= e) * b * b + c }, easeOutCubic: function (a, b, c, d, e) { return d * ((b = b / e - 1) * b * b + 1) + c }, easeInOutCubic: function (a, b, c, d, e) { return (b /= e / 2) < 1 ? d / 2 * b * b * b + c : d / 2 * ((b -= 2) * b * b + 2) + c }, easeInQuart: function (a, b, c, d, e) { return d * (b /= e) * b * b * b + c }, easeOutQuart: function (a, b, c, d, e) { return -d * ((b = b / e - 1) * b * b * b - 1) + c }, easeInOutQuart: function (a, b, c, d, e) { return (b /= e / 2) < 1 ? d / 2 * b * b * b * b + c : -d / 2 * ((b -= 2) * b * b * b - 2) + c }, easeInQuint: function (a, b, c, d, e) { return d * (b /= e) * b * b * b * b + c }, easeOutQuint: function (a, b, c, d, e) { return d * ((b = b / e - 1) * b * b * b * b + 1) + c }, easeInOutQuint: function (a, b, c, d, e) { return (b /= e / 2) < 1 ? d / 2 * b * b * b * b * b + c : d / 2 * ((b -= 2) * b * b * b * b + 2) + c }, easeInSine: function (a, b, c, d, e) { return -d * Math.cos(b / e * (Math.PI / 2)) + d + c }, easeOutSine: function (a, b, c, d, e) { return d * Math.sin(b / e * (Math.PI / 2)) + c }, easeInOutSine: function (a, b, c, d, e) { return -d / 2 * (Math.cos(Math.PI * b / e) - 1) + c }, easeInExpo: function (a, b, c, d, e) { return 0 == b ? c : d * Math.pow(2, 10 * (b / e - 1)) + c }, easeOutExpo: function (a, b, c, d, e) { return b == e ? c + d : d * (-Math.pow(2, -10 * b / e) + 1) + c }, easeInOutExpo: function (a, b, c, d, e) { return 0 == b ? c : b == e ? c + d : (b /= e / 2) < 1 ? d / 2 * Math.pow(2, 10 * (b - 1)) + c : d / 2 * (-Math.pow(2, -10 * --b) + 2) + c }, easeInCirc: function (a, b, c, d, e) { return -d * (Math.sqrt(1 - (b /= e) * b) - 1) + c }, easeOutCirc: function (a, b, c, d, e) { return d * Math.sqrt(1 - (b = b / e - 1) * b) + c }, easeInOutCirc: function (a, b, c, d, e) { return (b /= e / 2) < 1 ? -d / 2 * (Math.sqrt(1 - b * b) - 1) + c : d / 2 * (Math.sqrt(1 - (b -= 2) * b) + 1) + c }, easeInElastic: function (a, b, c, d, e) { var f = 1.70158, g = 0, h = d; if (0 == b) return c; if (1 == (b /= e)) return c + d; if (g || (g = .3 * e), h < Math.abs(d)) { h = d; var f = g / 4 } else var f = g / (2 * Math.PI) * Math.asin(d / h); return -(h * Math.pow(2, 10 * (b -= 1)) * Math.sin((b * e - f) * 2 * Math.PI / g)) + c }, easeOutElastic: function (a, b, c, d, e) { var f = 1.70158, g = 0, h = d; if (0 == b) return c; if (1 == (b /= e)) return c + d; if (g || (g = .3 * e), h < Math.abs(d)) { h = d; var f = g / 4 } else var f = g / (2 * Math.PI) * Math.asin(d / h); return h * Math.pow(2, -10 * b) * Math.sin((b * e - f) * 2 * Math.PI / g) + d + c }, easeInOutElastic: function (a, b, c, d, e) { var f = 1.70158, g = 0, h = d; if (0 == b) return c; if (2 == (b /= e / 2)) return c + d; if (g || (g = e * .3 * 1.5), h < Math.abs(d)) { h = d; var f = g / 4 } else var f = g / (2 * Math.PI) * Math.asin(d / h); return 1 > b ? -.5 * h * Math.pow(2, 10 * (b -= 1)) * Math.sin((b * e - f) * 2 * Math.PI / g) + c : .5 * h * Math.pow(2, -10 * (b -= 1)) * Math.sin((b * e - f) * 2 * Math.PI / g) + d + c }, easeInBack: function (a, b, c, d, e, f) { return void 0 == f && (f = 1.70158), d * (b /= e) * b * ((f + 1) * b - f) + c }, easeOutBack: function (a, b, c, d, e, f) { return void 0 == f && (f = 1.70158), d * ((b = b / e - 1) * b * ((f + 1) * b + f) + 1) + c }, easeInOutBack: function (a, b, c, d, e, f) { return void 0 == f && (f = 1.70158), (b /= e / 2) < 1 ? d / 2 * b * b * (((f *= 1.525) + 1) * b - f) + c : d / 2 * ((b -= 2) * b * (((f *= 1.525) + 1) * b + f) + 2) + c }, easeInBounce: function (a, b, c, d, e) { return d - jQuery.easing.easeOutBounce(a, e - b, 0, d, e) + c }, easeOutBounce: function (a, b, c, d, e) { return (b /= e) < 1 / 2.75 ? d * 7.5625 * b * b + c : 2 / 2.75 > b ? d * (7.5625 * (b -= 1.5 / 2.75) * b + .75) + c : 2.5 / 2.75 > b ? d * (7.5625 * (b -= 2.25 / 2.75) * b + .9375) + c : d * (7.5625 * (b -= 2.625 / 2.75) * b + .984375) + c }, easeInOutBounce: function (a, b, c, d, e) { return e / 2 > b ? .5 * jQuery.easing.easeInBounce(a, 2 * b, 0, d, e) + c : .5 * jQuery.easing.easeOutBounce(a, 2 * b - e, 0, d, e) + .5 * d + c } });
window.SetScrollPicleft = function (scrollContId, arrLeftId, arrRightId, frameWidth, pageWidth, speed, space, autoPlayTime, autoPlay) {
var adsdl = new ScrollPicleft();
adsdl.scrollContId = scrollContId;
if (arrLeftId)
adsdl.arrLeftId = arrLeftId;
if (arrRightId)
adsdl.arrRightId = arrRightId;
adsdl.frameWidth = frameWidth; //显示框宽度
adsdl.pageWidth = pageWidth; //翻页宽度
adsdl.speed = 10; //移动速度(单位毫秒,越小越快)
adsdl.space = 10; //每次移动像素(单位px,越大越快)
adsdl.autoPlayTime = 2; //自动播放间隔时间(秒)
adsdl.autoPlay = !autoPlay; //自动播放
if (speed) adsdl.speed = speed;
if (space) adsdl.space = space;
if (autoPlayTime) adsdl.autoPlayTime = autoPlayTime;
adsdl.initialize(); //初始化}
window.TabCat = function (newInfoLi, dtCon, spanA, fn) {
newInfoLi = $(newInfoLi);
dtCon = $(dtCon);
dtCon.addClass("tabCat");
if (spanA) {
spanA = $(spanA);
}
fn = fn || function (index, ob, dtCon, spanA) {
ob.addClass('cur').siblings().removeClass('cur');
dtCon.eq(index).show().siblings(".tabCat").hide();
if (spanA) {
$(spanA).attr('href', ob.attr("href") || ob.find("a").attr('href'));
}
}
newInfoLi.mouseenter(function (event) {
var ob = $(this);
var index = newInfoLi.index(ob);
fn(index, ob, dtCon, spanA);
}).eq(0).mouseenter();
newInfoLi.filter(':last').parent().addClass('nobor');
}
$(function () {
if ($(".proviewbox").length) {
var page = 0;
var $ul = $(".ul_prothumb"), $li = $(".ul_prothumb li");
var $liL = $li.length;
var $bigShowBox = $(".probigshow");
var str = '';
$bigShowBox.append(str);
var $pre = $("#probig_preview");
var $preimg = $(".probigshow");
var $zoom = $(".probigshow .zoomplepopup");
var $link = $('#a_enlarge').attr('href');
var $SPage = Math.floor($liL / 5), sLong = $li.width() * 5;
var sto;
function btnStyle() {
if (page == 0) { $('.span_prev').addClass('span_prevb'); } else { $('.span_prev').removeClass('span_prevb'); }
if (page == $SPage) { $('.span_next').addClass('span_nextb'); } else { $('.span_next').removeClass('span_nextb'); }
};
if (page < 1) {
var _src = $(".a_probigshow:first").attr("ref");
$preimg.attr("src", _src);
} else {
$preimg.attr("src", $li.find("a").attr("href"));
}
btnStyle();
//$li.overOnlyClass("now");
$('#a_enlarge').attr('href', $link + '#' + '0');
$(".span_prev").click(function () {
if (page > 0) { page--; $(".ul_prothumb").animate({ left: "+=" + sLong }); };
btnStyle();
});
$(".span_next").click(function () {
if (page < $SPage) { page++; $(".ul_prothumb").animate({ left: "-=" + sLong }); };
btnStyle();
});
window.lichange = function (indx) {
var obj = $li.eq(indx);
if (typeof (OBJ_TITLE) != "undefined") {
$preimg.find("img").attr({ "src": (obj.find("a").attr("href")), "title": OBJ_TITLE });
$preimg.find("a").attr({ "href": (obj.find("a").attr("href")), "title": OBJ_TITLE });
} else {
$preimg.find("img").attr("src", (obj.find("a").attr("href")));
$preimg.find("a").attr("href", (obj.find("a").attr("href")));
}
$(".a_probigshow img").attr("src", obj.find("img").attr("longdesc"));
$('#a_enlarge').attr('href', $link + '#' + indx);
$li.removeClass('now').eq(indx).addClass('now');
}
$li.mouseenter(function () {
var indx = $li.index($(this));
sto = setTimeout('lichange(' + indx + ')', 150);
}).mouseleave(function () {
clearTimeout(sto);
}).click(function () {
var indx = $li.index($(this)); lichange(indx);
return false;
});
};
});
/*
* JQZoom Evolution 1.0.1 - Javascript Image magnifier
*
* Copyright (c) Engineer Renzi Marco(www.mind-projects.it)
*
* $Date: 12-12-2008
*
* ChangeLog:
** $License : GPL,so any change to the code you should copy and paste this section,and would be nice to report this to me(renzi.mrc@gmail.com).
*/
eval(function (p, a, c, k, e, r) { e = function (c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] } ]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('(6($){$.30.31=6(G){I H={17:\'32\',18:2l,19:2l,1a:10,1b:0,Q:"2m",2n:1s,2o:12,2p:0.3,14:1s,1p:12,2q:\'1g\',2r:\'23\',2s:\'24\',2t:\'33\',2u:12,2v:1s,2w:\'34 35\',2x:\'1t\'};G=G||{};$.36(H,G);R 4.37(6(){I a=$(4);I d=a.1q(\'14\');$(a).1Q(\'14\');$(a).J(\'38-K\',\'1r\');$(a).J(\'39-3a\',\'1r\');I f=$(a).1q(\'3b\');I g=$("1H",4);I j=g.1q(\'14\');g.1Q(\'14\');I k=U 25(g);I l={};I m=0;I n=0;I p=1u;p=U 1R();I q=(26(d).Y>0)?d:(26(j).Y>0)?j:1u;I r=U 27();I s=U 1v(a[0].2y);I t=U 1c();I u={};I v=12;I y={};I z=1u;I A=12;I B={};I C=0;I D=12;I E=12;I F=12;k.1I();$(4).3c(6(){R 12});$(4).3d(6(e){B.x=e.1w;B.y=e.1x;k.1S();1d()},6(){k.1S();2z()});8(H.1p){2A(6(){1d()},3e)}6 1d(){8(!A){k.28();A=1s;j=g.1q(\'14\');g.1Q(\'14\');d=a.1q(\'14\');$(a).1Q(\'14\');s=U 1v(a[0].2y);8(!v||$.1e.2B){s.1I()}V{8(H.17!=\'1j\'){z=U 1J();z.1d()}t=U 1c;t.1d()}a[0].3f();R 12}};6 2z(){8(H.17==\'1K\'&&!H.1p){g.J({\'1T\':1})}8(!H.1p){A=12;v=12;$(t.5).29(\'1L\');t.Z();8($(\'P.1M\').Y>0){z.Z()}8($(\'P.2a\').Y>0){r.Z()}g.1q(\'14\',j);a.1q(\'14\',d);$().29();a.29(\'1L\');C=0;8(1y(\'.2b\').Y>0){1y(\'.2b\').Z()}}V{8(H.2o){1k(H.17){11\'1j\':s.2c();N;1l:t.1t();N}}}8(H.1p){1d()}};6 25(c){4.5=c[0];4.1I=6(){4.5.1m=c[0].1m};4.28=6(){I a=\'\';a=$(g).J(\'2C-L-W\');m=\'\';I b=\'\';b=$(g).J(\'2C-M-W\');n=\'\';8(a){1U(i=0;i<3;i++){I x=[];x=a.1n(i,1);8(1V(x)==12){m=m+\'\'+a.1n(i,1)}V{N}}}8(b){1U(i=0;i<3;i++){8(!1V(b.1n(i,1))){n=n+b.1n(i,1)}V{N}}}m=(m.Y>0)?1W(m):0;n=(n.Y>0)?1W(n):0};4.5.2D=6(){a.J({\'2E\':\'2F\',\'1h\':\'1X\'});8(a.J(\'Q\')!=\'15\'&&a.2d().J(\'Q\')){a.J({\'2E\':\'2F\',\'Q\':\'2G\',\'1h\':\'1X\'})}8(a.2d().J(\'Q\')!=\'15\'){a.2d().J(\'Q\',\'2G\')}V{}8($.1e.2B||$.1e.3g){$(g).J({Q:\'15\',L:\'2H\',M:\'2H\'})}l.w=$(4).W();l.h=$(4).1f();l.9=$(4).1i();l.9.l=$(4).1i().M;l.9.t=$(4).1i().L;l.9.r=l.w+l.9.l;l.9.b=l.h+l.9.t;a.1f(l.h);a.W(l.w);8(H.2u){k.1S();s.1I()}};R 4};25.13.1S=6(){l.9=$(g).1i();l.9.l=$(g).1i().M;l.9.t=$(g).1i().L;l.9.r=l.w+l.9.l;l.9.b=l.h+l.9.t};6 1c(){4.5=16.2e("P");$(4.5).1Y(\'X\');4.5.3h=6(){$(t.5).Z();t=U 1c();t.1d()};4.2I=6(){1k(H.17){11\'1K\':4.1z=U 1Z();4.1z.1m=k.5.1m;4.5.1N(4.1z);$(4.5).J({\'1T\':1});N;11\'1j\':4.1z=U 1Z();4.1z.1m=s.5.1m;4.5.1N(4.1z);$(4.5).J({\'1T\':1});N;1l:N}1k(H.17){11\'1j\':u.w=l.w;u.h=l.h;N;1l:u.w=(H.18)/y.x;u.h=(H.19)/y.y;N}$(4.5).J({W:u.w+\'S\',1f:u.h+\'S\',Q:\'15\',1h:\'1r\',3i:1+\'S\'});a.3j(4.5)};R 4};1c.13.1d=6(){4.2I();1k(H.17){11\'1K\':g.J({\'1T\':H.2p});(H.1p)?t.1t():t.1o(1u);a.2f(\'1L\',6(e){B.x=e.1w;B.y=e.1x;t.1o(e)});N;11\'1j\':$(4.5).J({L:0,M:0});8(H.14){r.2g()}s.2c();a.2f(\'1L\',6(e){B.x=e.1w;B.y=e.1x;s.2J(e)});N;1l:(H.1p)?t.1t():t.1o(1u);$(a).2f(\'1L\',6(e){B.x=e.1w;B.y=e.1x;t.1o(e)});N}R 4};1c.13.1o=6(e){8(e){B.x=e.1w;B.y=e.1x}8(C==0){I b=(l.w)/2-(u.w)/2;I c=(l.h)/2-(u.h)/2;$(\'P.X\').1g();8(H.2n){4.5.K.20=\'2K\'}V{4.5.K.20=\'2h\';$(\'P.X\').23()}C=1}V{I b=B.x-l.9.l-(u.w)/2;I c=B.y-l.9.t-(u.h)/2}8(2L()){b=0+n}V 8(2M()){8($.1e.1O&&$.1e.2i<7){b=l.w-u.w+n-1}V{b=l.w-u.w+n-1}}8(2N()){c=0+m}V 8(2O()){8($.1e.1O&&$.1e.2i<7){c=l.h-u.h+m-1}V{c=l.h-u.h-1+m}}b=1A(b);c=1A(c);$(\'P.X\',a).J({L:c,M:b});8(H.17==\'1K\'){$(\'P.X 1H\',a).J({\'Q\':\'15\',\'L\':-(c-m+1),\'M\':-(b-n+1)})}4.5.K.M=b+\'S\';4.5.K.L=c+\'S\';s.1o();6 2L(){R B.x-(u.w+2*1)/2-nl.9.r+n}6 2N(){R B.y-(u.h+2*1)/2-ml.9.b+m}R 4};1c.13.1t=6(){$(\'P.X\',a).J(\'1h\',\'1r\');I b=(l.w)/2-(u.w)/2;I c=(l.h)/2-(u.h)/2;4.5.K.M=b+\'S\';4.5.K.L=c+\'S\';$(\'P.X\',a).J({L:c,M:b});8(H.17==\'1K\'){$(\'P.X 1H\',a).J({\'Q\':\'15\',\'L\':-(c-m+1),\'M\':-(b-n+1)})}s.1o();8($.1e.1O){$(\'P.X\',a).1g()}V{2A(6(){$(\'P.X\').2P(\'24\')},10)}};1c.13.1P=6(){I o={};o.M=1A(4.5.K.M);o.L=1A(4.5.K.L);R o};1c.13.Z=6(){8(H.17==\'1j\'){$(\'P.X\',a).2Q(\'24\',6(){$(4).Z()})}V{$(\'P.X\',a).Z()}};1c.13.28=6(){I a=\'\';a=$(\'P.X\').J(\'3k\');1B=\'\';I b=\'\';b=$(\'P.X\').J(\'3l\');1C=\'\';8($.1e.1O){I c=a.2R(\' \');a=c[1];I c=b.2R(\' \');b=c[1]}8(a){1U(i=0;i<3;i++){I x=[];x=a.1n(i,1);8(1V(x)==12){1B=1B+\'\'+a.1n(i,1)}V{N}}}8(b){1U(i=0;i<3;i++){8(!1V(b.1n(i,1))){1C=1C+b.1n(i,1)}V{N}}}1B=(1B.Y>0)?1W(1B):0;1C=(1C.Y>0)?1W(1C):0};6 1v(a){4.2S=a;4.5=U 1Z();4.1I=6(){8(!4.5)4.5=U 1Z();4.5.K.Q=\'15\';4.5.K.1h=\'1r\';4.5.K.M=\'-3m\';4.5.K.L=\'3n\';p=U 1R();8(H.2v&&!D){p.1g();D=1s}16.2j.1N(4.5);4.5.1m=4.2S};4.5.2D=6(){4.K.1h=\'1X\';I w=O.21($(4).W());I h=O.21($(4).1f());4.K.1h=\'1r\';y.x=(w/l.w);y.y=(h/l.h);8($(\'P.1D\').Y>0){$(\'P.1D\').Z()}v=1s;8(H.17!=\'1j\'&&A){z=U 1J();z.1d()}8(A){t=U 1c();t.1d()}8($(\'P.1D\').Y>0){$(\'P.1D\').Z()}};R 4};1v.13.1o=6(){4.5.K.M=O.1E(-y.x*1A(t.1P().M)+n)+\'S\';4.5.K.L=O.1E(-y.y*1A(t.1P().L)+m)+\'S\'};1v.13.2J=6(e){4.5.K.M=O.1E(-y.x*O.T(e.1w-l.9.l))+\'S\';4.5.K.L=O.1E(-y.y*O.T(e.1x-l.9.t))+\'S\';$(\'P.X 1H\',a).J({\'Q\':\'15\',\'L\':4.5.K.L,\'M\':4.5.K.M})};1v.13.2c=6(){4.5.K.M=O.1E(-y.x*O.T((l.w)/2))+\'S\';4.5.K.L=O.1E(-y.y*O.T((l.h)/2))+\'S\';$(\'P.X 1H\',a).J({\'Q\':\'15\',\'L\':4.5.K.L,\'M\':4.5.K.M})};6 1J(){I a=1y(g).1i().M;I b=1y(g).1i().L;4.5=16.2e("P");$(4.5).1Y(\'1M\');$(4.5).J({Q:\'15\',W:O.21(H.18)+\'S\',1f:O.21(H.19)+\'S\',1h:\'1r\',2T:3o,3p:\'2h\'});1k(H.Q){11"2m":a=(a+$(g).W()+O.T(H.1a)+H.18<$(16).W())?(a+$(g).W()+O.T(H.1a)):(a-H.18-10);1F=b+H.1b+H.19;b=(1F<$(16).1f()&&1F>0)?b+H.1b:b;N;11"M":a=(l.9.l-O.T(H.1a)-H.18>0)?(l.9.l-O.T(H.1a)-H.18):(l.9.l+l.w+10);1F=l.9.t+H.1b+H.19;b=(1F<$(16).1f()&&1F>0)?l.9.t+H.1b:l.9.t;N;11"L":b=(l.9.t-O.T(H.1b)-H.19>0)?(l.9.t-O.T(H.1b)-H.19):(l.9.t+l.h+10);1G=l.9.l+H.1a+H.18;a=(1G<$(16).W()&&1G>0)?l.9.l+H.1a:l.9.l;N;11"3q":b=(l.9.b+O.T(H.1b)+H.19<$(16).1f())?(l.9.b+O.T(H.1b)):(l.9.t-H.19-10);1G=l.9.l+H.1a+H.18;a=(1G<$(16).W()&&1G>0)?l.9.l+H.1a:l.9.l;N;1l:a=(l.9.l+l.w+H.1a+H.18<$(16).W())?(l.9.l+l.w+O.T(H.1a)):(l.9.l-H.18-O.T(H.1a));b=(l.9.b+O.T(H.1b)+H.19<$(16).1f())?(l.9.b+O.T(H.1b)):(l.9.t-H.19-O.T(H.1b));N}4.5.K.M=a+\'S\';4.5.K.L=b+\'S\';R 4};1J.13.1d=6(){8(!4.5.3r)4.5.1N(s.5);8(H.14){r.2g()}16.2j.1N(4.5);1k(H.2q){11\'1g\':$(4.5).1g();N;11\'3s\':$(4.5).2P(H.2s);N;1l:$(4.5).1g();N}$(4.5).1g();8($.1e.1O&&$.1e.2i<7){4.3t=$(\'<2U 3u="2b" 3v="3w" 3x="0" 1m="#" K="3y-3z: 2V" 3A="2V">2U>\').J({Q:"15",M:4.5.K.M,L:4.5.K.L,2T:3B,W:(H.18+2),1f:(H.19)}).3C(4.5)};s.5.K.1h=\'1X\'};1J.13.Z=6(){1k(H.2r){11\'23\':$(\'.1M\').Z();N;11\'3D\':$(\'.1M\').2Q(H.2t);N;1l:$(\'.1M\').Z();N}};6 27(){4.5=1y(\'\').1Y(\'2a\').2W(\'\'+q+\'\');4.2g=6(){8(H.17==\'1j\'){$(4.5).J({Q:\'15\',L:l.9.b+3,M:(l.9.l+1),W:l.w}).2k(\'2j\')}V{$(4.5).2k(z.5)}}};27.13.Z=6(){$(\'.2a\').Z()};6 1R(){4.5=16.2e("P");$(4.5).1Y(\'1D\');$(4.5).2W(H.2w);$(4.5).2k(a).J(\'20\',\'2h\');4.1g=6(){1k(H.2x){11\'1t\':2X=(l.h-$(4.5).1f())/2;2Y=(l.w-$(4.5).W())/2;$(4.5).J({L:2X,M:2Y});N;1l:I a=4.1P();N}$(4.5).J({Q:\'15\',20:\'2K\'})};R 4};1R.13.1P=6(){I o=1u;o=$(\'P.1D\').1i();R o}})}})(1y);6 26(a){2Z(a.22(0,1)==\' \'){a=a.22(1,a.Y)}2Z(a.22(a.Y-1,a.Y)==\' \'){a=a.22(0,a.Y-1)}R a};', 62, 226, '||||this|node|function||if|pos|||||||||||||||||||||||||||||||||||var|css|style|top|left|break|Math|div|position|return|px|abs|new|else|width|jqZoomPup|length|remove||case|false|prototype|title|absolute|document|zoomType|zoomWidth|zoomHeight|xOffset|yOffset|Lens|activate|browser|height|show|display|offset|innerzoom|switch|default|src|substr|setposition|alwaysOn|attr|none|true|center|null|Largeimage|pageX|pageY|jQuery|image|parseInt|lensbtop|lensbleft|preload|ceil|topwindow|leftwindow|img|loadimage|Stage|reverse|mousemove|jqZoomWindow|appendChild|msie|getoffset|removeAttr|Loader|setpos|opacity|for|isNaN|eval|block|addClass|Image|visibility|round|substring|hide|fast|Smallimage|trim|zoomTitle|findborder|unbind|jqZoomTitle|zoom_ieframe|setcenter|parent|createElement|bind|loadtitle|hidden|version|body|appendTo|200|right|lens|lensReset|imageOpacity|showEffect|hideEffect|fadeinSpeed|fadeoutSpeed|preloadImages|showPreload|preloadText|preloadPosition|href|deactivate|setTimeout|safari|border|onload|cursor|crosshair|relative|0px|loadlens|setinner|visible|overleft|overright|overtop|overbottom|fadeIn|fadeOut|split|url|zIndex|iframe|transparent|html|loadertop|loaderleft|while|fn|jqzoom|standard|slow|Loading|zoom|extend|each|outline|text|decoration|rel|click|hover|150|blur|opera|onerror|borderWidth|append|borderTop|borderLeft|5000px|10px|10000|overflow|bottom|firstChild|fadein|ieframe|class|name|content|frameborder|background|color|bgcolor|99|insertBefore|fadeout'.split('|'), 0, {}))