(function() {var n = this, g, A = n.jQuery, r = n.$, q = n.jQuery = n.$ = function(G, H) { return new q.fn.init(G, H) }, F = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/, f = /^.[^:#\[\.,]*$/; q.fn = q.prototype = { init: function(G, J) { G = G || document; if (G.nodeType) { this[0] = G; this.length = 1; this.context = G; return this } if (typeof G === "string") { var I = F.exec(G); if (I && (I[1] || !J)) { if (I[1]) { G = q.clean([I[1]], J) } else { var K = document.getElementById(I[3]); if (K && K.id != I[3]) { return q().find(G) } var H = q(K || []); H.context = document; H.selector = G; return H } } else { return q(J).find(G) } } else { if (q.isFunction(G)) { return q(document).ready(G) } } if (G.selector && G.context) { this.selector = G.selector; this.context = G.context } return this.setArray(q.isArray(G) ? G : q.makeArray(G)) }, selector: "", jquery: "1.3.2", size: function() { return this.length }, get: function(G) { return G === g ? Array.prototype.slice.call(this) : this[G] }, pushStack: function(H, J, G) { var I = q(H); I.prevObject = this; I.context = this.context; if (J === "find") { I.selector = this.selector + (this.selector ? " " : "") + G } else { if (J) { I.selector = this.selector + "." + J + "(" + G + ")" } } return I }, setArray: function(G) { this.length = 0; Array.prototype.push.apply(this, G); return this }, each: function(H, G) { return q.each(this, H, G) }, index: function(G) { return q.inArray(G && G.jquery ? G[0] : G, this) }, attr: function(H, J, I) { var G = H; if (typeof H === "string") { if (J === g) { return this[0] && q[I || "attr"](this[0], H) } else { G = {}; G[H] = J } } return this.each(function(K) { for (H in G) { q.attr(I ? this.style : this, H, q.prop(this, G[H], I, K, H)) } }) }, css: function(G, H) { if ((G == "width" || G == "height") && parseFloat(H) < 0) { H = g } return this.attr(G, H, "curCSS") }, text: function(H) { if (typeof H !== "object" && H != null) { return this.empty().append((this[0] && this[0].ownerDocument || document).createTextNode(H)) } var G = ""; q.each(H || this, function() { q.each(this.childNodes, function() { if (this.nodeType != 8) { G += this.nodeType != 1 ? this.nodeValue : q.fn.text([this]) } }) }); return G }, wrapAll: function(G) { if (this[0]) { var H = q(G, this[0].ownerDocument).clone(); if (this[0].parentNode) { H.insertBefore(this[0]) } H.map(function() { var I = this; while (I.firstChild) { I = I.firstChild } return I }).append(this) } return this }, wrapInner: function(G) { return this.each(function() { q(this).contents().wrapAll(G) }) }, wrap: function(G) { return this.each(function() { q(this).wrapAll(G) }) }, append: function() { return this.domManip(arguments, true, function(G) { if (this.nodeType == 1) { this.appendChild(G) } }) }, prepend: function() { return this.domManip(arguments, true, function(G) { if (this.nodeType == 1) { this.insertBefore(G, this.firstChild) } }) }, before: function() { return this.domManip(arguments, false, function(G) { this.parentNode.insertBefore(G, this) }) }, after: function() { return this.domManip(arguments, false, function(G) { this.parentNode.insertBefore(G, this.nextSibling) }) }, end: function() { return this.prevObject || q([]) }, push: [].push, sort: [].sort, splice: [].splice, find: function(G) { if (this.length === 1) { var H = this.pushStack([], "find", G); H.length = 0; q.find(G, this[0], H); return H } else { return this.pushStack(q.unique(q.map(this, function(I) { return q.find(G, I) })), "find", G) } }, clone: function(I) { var G = this.map(function() { if (!q.support.noCloneEvent && !q.isXMLDoc(this)) { var K = this.outerHTML; if (!K) { var L = this.ownerDocument.createElement("div"); L.appendChild(this.cloneNode(true)); K = L.innerHTML } return q.clean([K.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0] } else { return this.cloneNode(true) } }); if (I === true) { var J = this.find("*").andSelf(), H = 0; G.find("*").andSelf().each(function() { if (this.nodeName !== J[H].nodeName) { return } var K = q.data(J[H], "events"); for (var M in K) { for (var L in K[M]) { q.event.add(this, M, K[M][L], K[M][L].data) } } H++ }) } return G }, filter: function(G) { return this.pushStack(q.isFunction(G) && q.grep(this, function(I, H) { return G.call(I, H) }) || q.multiFilter(G, q.grep(this, function(H) { return H.nodeType === 1 })), "filter", G) }, closest: function(G) { var I = q.expr.match.POS.test(G) ? q(G) : null, H = 0; return this.map(function() { var J = this; while (J && J.ownerDocument) { if (I ? I.index(J) > -1 : q(J).is(G)) { q.data(J, "closest", H); return J } J = J.parentNode; H++ } }) }, not: function(G) { if (typeof G === "string") { if (f.test(G)) { return this.pushStack(q.multiFilter(G, this, true), "not", G) } else { G = q.multiFilter(G, this) } } var H = G.length && G[G.length - 1] !== g && !G.nodeType; return this.filter(function() { return H ? q.inArray(this, G) < 0 : this != G }) }, add: function(G) { return this.pushStack(q.unique(q.merge(this.get(), typeof G === "string" ? q(G) : q.makeArray(G)))) }, is: function(G) { return !!G && q.multiFilter(G, this).length > 0 }, hasClass: function(G) { return !!G && this.is("." + G) }, val: function(M) { if (M === g) { var G = this[0]; if (G) { if (q.nodeName(G, "option")) { return (G.attributes.value || {}).specified ? G.value : G.text } if (q.nodeName(G, "select")) { var K = G.selectedIndex, N = [], O = G.options, J = G.type == "select-one"; if (K < 0) { return null } for (var H = J ? K : 0, L = J ? K + 1 : O.length; H < L; H++) { var I = O[H]; if (I.selected) { M = q(I).val(); if (J) { return M } N.push(M) } } return N } return (G.value || "").replace(/\r/g, "") } return g } if (typeof M === "number") { M += "" } return this.each(function() { if (this.nodeType != 1) { return } if (q.isArray(M) && /radio|checkbox/.test(this.type)) { this.checked = (q.inArray(this.value, M) >= 0 || q.inArray(this.name, M) >= 0) } else { if (q.nodeName(this, "select")) { var P = q.makeArray(M); q("option", this).each(function() { this.selected = (q.inArray(this.value, P) >= 0 || q.inArray(this.text, P) >= 0) }); if (!P.length) { this.selectedIndex = -1 } } else { this.value = M } } }) }, html: function(G) { return G === g ? (this[0] ? this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") : null) : this.empty().append(G) }, replaceWith: function(G) { return this.after(G).remove() }, eq: function(G) { return this.slice(G, +G + 1) }, slice: function() { return this.pushStack(Array.prototype.slice.apply(this, arguments), "slice", Array.prototype.slice.call(arguments).join(",")) }, map: function(G) { return this.pushStack(q.map(this, function(I, H) { return G.call(I, H, I) })) }, andSelf: function() { return this.add(this.prevObject) }, domManip: function(L, O, N) { if (this[0]) { var K = (this[0].ownerDocument || this[0]).createDocumentFragment(), H = q.clean(L, (this[0].ownerDocument || this[0]), K), J = K.firstChild; if (J) { for (var I = 0, G = this.length; I < G; I++) { N.call(M(this[I], J), this.length > 1 || I > 0 ? K.cloneNode(true) : K) } } if (H) { q.each(H, B) } } return this; function M(P, Q) { return O && q.nodeName(P, "table") && q.nodeName(Q, "tr") ? (P.getElementsByTagName("tbody")[0] || P.appendChild(P.ownerDocument.createElement("tbody"))) : P } } }; q.fn.init.prototype = q.fn; function B(G, H) { if (H.src) { q.ajax({ url: H.src, async: false, dataType: "script" }) } else { q.globalEval(H.text || H.textContent || H.innerHTML || "") } if (H.parentNode) { H.parentNode.removeChild(H) } } function e() { return +new Date } q.extend = q.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" && !q.isFunction(L)) { L = {} } if (K == J) { L = this; --J } for (; J < K; J++) { if ((I = arguments[J]) != null) { for (var H in I) { var M = L[H], N = I[H]; if (L === N) { continue } if (G && N && typeof N === "object" && !N.nodeType) { L[H] = q.extend(G, M || (N.length != null ? [] : {}), N) } else { if (N !== g) { L[H] = N } } } } } return L }; var b = /z-?index|font-?weight|opacity|zoom|line-?height/i, s = document.defaultView || {}, u = Object.prototype.toString; q.extend({ noConflict: function(G) { n.$ = r; if (G) { n.jQuery = A } return q }, isFunction: function(G) { return u.call(G) === "[object Function]" }, isArray: function(G) { return u.call(G) === "[object Array]" }, isXMLDoc: function(G) { return G.nodeType === 9 && G.documentElement.nodeName !== "HTML" || !!G.ownerDocument && q.isXMLDoc(G.ownerDocument) }, globalEval: function(I) { if (I && /\S/.test(I)) { var H = document.getElementsByTagName("head")[0] || document.documentElement, G = document.createElement("script"); G.type = "text/javascript"; if (q.support.scriptEval) { G.appendChild(document.createTextNode(I)) } else { G.text = I } H.insertBefore(G, H.firstChild); H.removeChild(G) } }, nodeName: function(H, G) { return H.nodeName && H.nodeName.toUpperCase() == G.toUpperCase() }, each: function(I, M, H) { var G, J = 0, K = I.length; if (H) { if (K === g) { for (G in I) { if (M.apply(I[G], H) === false) { break } } } else { for (; J < K; ) { if (M.apply(I[J++], H) === false) { break } } } } else { if (K === g) { for (G in I) { if (M.call(I[G], G, I[G]) === false) { break } } } else { for (var L = I[0]; J < K && M.call(L, J, L) !== false; L = I[++J]) { } } } return I }, prop: function(J, K, I, H, G) { if (q.isFunction(K)) { K = K.call(J, H) } return typeof K === "number" && I == "curCSS" && !b.test(G) ? K + "px" : K }, className: { add: function(G, H) { q.each((H || "").split(/\s+/), function(I, J) { if (G.nodeType == 1 && !q.className.has(G.className, J)) { G.className += (G.className ? " " : "") + J } }) }, remove: function(G, H) { if (G.nodeType == 1) { G.className = H !== g ? q.grep(G.className.split(/\s+/), function(I) { return !q.className.has(H, I) }).join(" ") : "" } }, has: function(H, G) { return H && q.inArray(G, (H.className || H).toString().split(/\s+/)) > -1 } }, swap: function(J, I, K) { var G = {}; for (var H in I) { G[H] = J.style[H]; J.style[H] = I[H] } K.call(J); for (var H in I) { J.style[H] = G[H] } }, css: function(J, H, L, G) { if (H == "width" || H == "height") { var N, I = { position: "absolute", visibility: "hidden", display: "block" }, M = H == "width" ? ["Left", "Right"] : ["Top", "Bottom"]; function K() { N = H == "width" ? J.offsetWidth : J.offsetHeight; if (G === "border") { return } q.each(M, function() { if (!G) { N -= parseFloat(q.curCSS(J, "padding" + this, true)) || 0 } if (G === "margin") { N += parseFloat(q.curCSS(J, "margin" + this, true)) || 0 } else { N -= parseFloat(q.curCSS(J, "border" + this + "Width", true)) || 0 } }) } if (J.offsetWidth !== 0) { K() } else { q.swap(J, I, K) } return Math.max(0, Math.round(N)) } return q.curCSS(J, H, L) }, curCSS: function(K, H, I) { var N, G = K.style; if (H == "opacity" && !q.support.opacity) { N = q.attr(G, "opacity"); return N == "" ? "1" : N } if (H.match(/float/i)) { H = y } if (!I && G && G[H]) { N = G[H] } else { if (s.getComputedStyle) { if (H.match(/float/i)) { H = "float" } H = H.replace(/([A-Z])/g, "-$1").toLowerCase(); var O = s.getComputedStyle(K, null); if (O) { N = O.getPropertyValue(H) } if (H == "opacity" && N == "") { N = "1" } } else { if (K.currentStyle) { var L = H.replace(/\-(\w)/g, function(P, Q) { return Q.toUpperCase() }); N = K.currentStyle[H] || K.currentStyle[L]; if (!/^\d+(px)?$/i.test(N) && /^\d/.test(N)) { var J = G.left, M = K.runtimeStyle.left; K.runtimeStyle.left = K.currentStyle.left; G.left = N || 0; N = G.pixelLeft + "px"; G.left = J; K.runtimeStyle.left = M } } } } return N }, clean: function(H, M, K) { M = M || document; if (typeof M.createElement === "undefined") { M = M.ownerDocument || M[0] && M[0].ownerDocument || document } if (!K && H.length === 1 && typeof H[0] === "string") { var J = /^<(\w+)\s*\/?>$/.exec(H[0]); if (J) { return [M.createElement(J[1])] } } var I = [], G = [], N = M.createElement("div"); q.each(H, function(R, U) { if (typeof U === "number") { U += "" } if (!U) { return } if (typeof U === "string") { U = U.replace(/(<(\w+)[^>]*?)\/>/g, function(W, X, V) { return V.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? W : X + "></" + V + ">" }); var Q = U.replace(/^\s+/, "").substring(0, 10).toLowerCase(); var S = !Q.indexOf("<opt") && [1, "<select multiple='multiple'>", "</select>"] || !Q.indexOf("<leg") && [1, "<fieldset>", "</fieldset>"] || Q.match(/^<(thead|tbody|tfoot|colg|cap)/) && [1, "<table>", "</table>"] || !Q.indexOf("<tr") && [2, "<table><tbody>", "</tbody></table>"] || (!Q.indexOf("<td") || !Q.indexOf("<th")) && [3, "<table><tbody><tr>", "</tr></tbody></table>"] || !Q.indexOf("<col") && [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"] || !q.support.htmlSerialize && [1, "div<div>", "</div>"] || [0, "", ""]; N.innerHTML = S[1] + U + S[2]; while (S[0]--) { N = N.lastChild } if (!q.support.tbody) { var T = /<tbody/i.test(U), P = !Q.indexOf("<table") && !T ? N.firstChild && N.firstChild.childNodes : S[1] == "<table>" && !T ? N.childNodes : []; for (var O = P.length - 1; O >= 0; --O) { if (q.nodeName(P[O], "tbody") && !P[O].childNodes.length) { P[O].parentNode.removeChild(P[O]) } } } if (!q.support.leadingWhitespace && /^\s/.test(U)) { N.insertBefore(M.createTextNode(U.match(/^\s*/)[0]), N.firstChild) } U = q.makeArray(N.childNodes) } if (U.nodeType) { I.push(U) } else { I = q.merge(I, U) } }); if (K) { for (var L = 0; I[L]; L++) { if (q.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(q.makeArray(I[L].getElementsByTagName("script")))) } K.appendChild(I[L]) } } return G } return I }, attr: function(L, I, M) { if (!L || L.nodeType == 3 || L.nodeType == 8) { return g } var J = !q.isXMLDoc(L), N = M !== g; I = J && q.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 (N) { if (I == "type" && q.nodeName(L, "input") && L.parentNode) { throw "type property can't be changed" } L[I] = M } if (q.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 : g } return L[I] } if (!q.support.style && J && I == "style") { return q.attr(L.style, "cssText", M) } if (N) { L.setAttribute(I, "" + M) } var G = !q.support.hrefNormalized && J && H ? L.getAttribute(I, 2) : L.getAttribute(I); return G === null ? g : G } if (!q.support.opacity && I == "opacity") { if (N) { L.zoom = 1; L.filter = (L.filter || "").replace(/alpha\([^)]*\)/, "") + (parseInt(M) + "" == "NaN" ? "" : "alpha(opacity=" + M * 100 + ")") } return L.filter && L.filter.indexOf("opacity=") >= 0 ? (parseFloat(L.filter.match(/opacity=([^)]*)/)[1]) / 100) + "" : "" } I = I.replace(/-([a-z])/ig, function(O, P) { return P.toUpperCase() }); if (N) { L[I] = M } return L[I] }, trim: function(G) { return (G || "").replace(/^\s+|\s+$/g, "") }, makeArray: function(I) { var G = []; if (I != null) { var H = I.length; if (H == null || typeof I === "string" || q.isFunction(I) || I.setInterval) { G[0] = I } else { while (H) { G[--H] = I[H] } } } return G }, inArray: function(I, J) { for (var G = 0, H = J.length; G < H; G++) { if (J[G] === I) { return G } } return -1 }, merge: function(J, G) { var H = 0, I, K = J.length; if (!q.support.getAll) { while ((I = G[H++]) != null) { if (I.nodeType != 8) { J[K++] = I } } } else { while ((I = G[H++]) != null) { J[K++] = I } } return J }, unique: function(M) { var H = [], G = {}; try { for (var I = 0, J = M.length; I < J; I++) { var L = q.data(M[I]); if (!G[L]) { G[L] = true; H.push(M[I]) } } } catch (K) { H = M } return H }, grep: function(H, L, G) { var I = []; for (var J = 0, K = H.length; J < K; J++) { if (!G != !L(H[J], J)) { I.push(H[J]) } } return I }, map: function(G, L) { var H = []; for (var I = 0, J = G.length; I < J; I++) { var K = L(G[I], I); if (K != null) { H[H.length] = K } } return H.concat.apply([], H) } }); var E = navigator.userAgent.toLowerCase(); q.browser = { version: (E.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/) || [0, "0"])[1], safari: /webkit/.test(E), opera: /opera/.test(E), msie: /msie/.test(E) && !/opera/.test(E), mozilla: /mozilla/.test(E) && !/(compatible|webkit)/.test(E) }; q.each({ parent: function(G) { return G.parentNode }, parents: function(G) { return q.dir(G, "parentNode") }, next: function(G) { return q.nth(G, 2, "nextSibling") }, prev: function(G) { return q.nth(G, 2, "previousSibling") }, nextAll: function(G) { return q.dir(G, "nextSibling") }, prevAll: function(G) { return q.dir(G, "previousSibling") }, siblings: function(G) { return q.sibling(G.parentNode.firstChild, G) }, children: function(G) { return q.sibling(G.firstChild) }, contents: function(G) { return q.nodeName(G, "iframe") ? G.contentDocument || G.contentWindow.document : q.makeArray(G.childNodes) } }, function(G, H) { q.fn[G] = function(I) { var J = q.map(this, H); if (I && typeof I == "string") { J = q.multiFilter(I, J) } return this.pushStack(q.unique(J), G, I) } }); q.each({ appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, function(G, H) { q.fn[G] = function(I) { var L = [], N = q(I); for (var M = 0, J = N.length; M < J; M++) { var K = (M > 0 ? this.clone(true) : this).get(); q.fn[H].apply(q(N[M]), K); L = L.concat(K) } return this.pushStack(L, G, I) } }); q.each({ removeAttr: function(G) { q.attr(this, G, ""); if (this.nodeType == 1) { this.removeAttribute(G) } }, addClass: function(G) { q.className.add(this, G) }, removeClass: function(G) { q.className.remove(this, G) }, toggleClass: function(H, G) { if (typeof G !== "boolean") { G = !q.className.has(this, H) } q.className[G ? "add" : "remove"](this, H) }, remove: function(G) { if (!G || q.filter(G, [this]).length) { q("*", this).add([this]).each(function() { q.event.remove(this); q.removeData(this) }); if (this.parentNode) { this.parentNode.removeChild(this) } } }, empty: function() { q(this).children().remove(); while (this.firstChild) { this.removeChild(this.firstChild) } } }, function(G, H) { q.fn[G] = function() { return this.each(H, arguments) } }); function l(G, H) { return G[0] && parseInt(q.curCSS(G[0], H, true), 10) || 0 } var h = "jQuery" + e(), x = 0, C = {}; q.extend({ cache: {}, data: function(H, G, I) { H = H == n ? C : H; var J = H[h]; if (!J) { J = H[h] = ++x } if (G && !q.cache[J]) { q.cache[J] = {} } if (I !== g) { q.cache[J][G] = I } return G ? q.cache[J][G] : J }, removeData: function(H, G) { H = H == n ? C : H; var J = H[h]; if (G) { if (q.cache[J]) { delete q.cache[J][G]; G = ""; for (G in q.cache[J]) { break } if (!G) { q.removeData(H) } } } else { try { delete H[h] } catch (I) { if (H.removeAttribute) { H.removeAttribute(h) } } delete q.cache[J] } }, queue: function(H, G, J) { if (H) { G = (G || "fx") + "queue"; var I = q.data(H, G); if (!I || q.isArray(J)) { I = q.data(H, G, q.makeArray(J)) } else { if (J) { I.push(J) } } } return I }, dequeue: function(J, I) { var G = q.queue(J, I), H = G.shift(); if (!I || I === "fx") { H = G[0] } if (H !== g) { H.call(J) } } }); q.fn.extend({ data: function(G, I) { var J = G.split("."); J[1] = J[1] ? "." + J[1] : ""; if (I === g) { var H = this.triggerHandler("getData" + J[1] + "!", [J[0]]); if (H === g && this.length) { H = q.data(this[0], G) } return H === g && J[1] ? this.data(J[0]) : H } else { return this.trigger("setData" + J[1] + "!", [J[0], I]).each(function() { q.data(this, G, I) }) } }, removeData: function(G) { return this.each(function() { q.removeData(this, G) }) }, queue: function(G, H) { if (typeof G !== "string") { H = G; G = "fx" } if (H === g) { return q.queue(this[0], G) } return this.each(function() { var I = q.queue(this, G, H); if (G == "fx" && I.length == 1) { I[0].call(this) } }) }, dequeue: function(G) { return this.each(function() { q.dequeue(this, G) }) } });(function() { var T = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g, N = 0, J = Object.prototype.toString; var H = function(aa, W, ad, ae) { ad = ad || []; W = W || document; if (W.nodeType !== 1 && W.nodeType !== 9) { return [] } if (!aa || typeof aa !== "string") { return ad } var ab = [], Y, ah, ak, V, af, X, Z = true; T.lastIndex = 0; while ((Y = T.exec(aa)) !== null) { ab.push(Y[1]); if (Y[2]) { X = RegExp.rightContext; break } } if (ab.length > 1 && O.exec(aa)) { if (ab.length === 2 && K.relative[ab[0]]) { ah = L(ab[0] + ab[1], W) } else { ah = K.relative[ab[0]] ? [W] : H(ab.shift(), W); while (ab.length) { aa = ab.shift(); if (K.relative[aa]) { aa += ab.shift() } ah = L(aa, ah) } } } else { var ag = ae ? { expr: ab.pop(), set: G(ae)} : H.find(ab.pop(), ab.length === 1 && W.parentNode ? W.parentNode : W, S(W)); ah = H.filter(ag.expr, ag.set); if (ab.length > 0) { ak = G(ah) } else { Z = false } while (ab.length) { var aj = ab.pop(), ai = aj; if (!K.relative[aj]) { aj = "" } else { ai = ab.pop() } if (ai == null) { ai = W } K.relative[aj](ak, ai, S(W)) } } if (!ak) { ak = ah } if (!ak) { throw "Syntax error, unrecognized expression: " + (aj || aa) } if (J.call(ak) === "[object Array]") { if (!Z) { ad.push.apply(ad, ak) } else { if (W.nodeType === 1) { for (var ac = 0; ak[ac] != null; ac++) { if (ak[ac] && (ak[ac] === true || ak[ac].nodeType === 1 && M(W, ak[ac]))) { ad.push(ah[ac]) } } } else { for (var ac = 0; ak[ac] != null; ac++) { if (ak[ac] && ak[ac].nodeType === 1) { ad.push(ah[ac]) } } } } } else { G(ak, ad) } if (X) { H(X, W, ad, ae); if (I) { hasDuplicate = false; ad.sort(I); if (hasDuplicate) { for (var ac = 1; ac < ad.length; ac++) { if (ad[ac] === ad[ac - 1]) { ad.splice(ac--, 1) } } } } } return ad }; H.matches = function(V, W) { return H(V, null, null, W) }; H.find = function(ac, V, ad) { var ab, Z; if (!ac) { return [] } for (var Y = 0, X = K.order.length; Y < X; Y++) { var aa = K.order[Y], Z; if ((Z = K.match[aa].exec(ac))) { var W = RegExp.leftContext; if (W.substr(W.length - 1) !== "\\") { Z[1] = (Z[1] || "").replace(/\\/g, ""); ab = K.find[aa](Z, V, ad); if (ab != null) { ac = ac.replace(K.match[aa], ""); break } } } } if (!ab) { ab = V.getElementsByTagName("*") } return { set: ab, expr: ac} }; H.filter = function(af, ae, ai, Y) { var X = af, ak = [], ac = ae, aa, V, ab = ae && ae[0] && S(ae[0]); while (af && ae.length) { for (var ad in K.filter) { if ((aa = K.match[ad].exec(af)) != null) { var W = K.filter[ad], aj, ah; V = false; if (ac == ak) { ak = [] } if (K.preFilter[ad]) { aa = K.preFilter[ad](aa, ac, ai, ak, Y, ab); if (!aa) { V = aj = true } else { if (aa === true) { continue } } } if (aa) { for (var Z = 0; (ah = ac[Z]) != null; Z++) { if (ah) { aj = W(ah, aa, Z, ac); var ag = Y ^ !!aj; if (ai && aj != null) { if (ag) { V = true } else { ac[Z] = false } } else { if (ag) { ak.push(ah); V = true } } } } } if (aj !== g) { if (!ai) { ac = ak } af = af.replace(K.match[ad], ""); if (!V) { return [] } break } } } if (af == X) { if (V == null) { throw "Syntax error, unrecognized expression: " + af } else { break } } X = af } return ac }; var K = H.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(V) { return V.getAttribute("href") } }, relative: { "+": function(ac, V, ab) { var Z = typeof V === "string", ad = Z && !/\W/.test(V), aa = Z && !ad; if (ad && !ab) { V = V.toUpperCase() } for (var Y = 0, X = ac.length, W; Y < X; Y++) { if ((W = ac[Y])) { while ((W = W.previousSibling) && W.nodeType !== 1) { } ac[Y] = aa || W && W.nodeName === V ? W || false : W === V } } if (aa) { H.filter(V, ac, true) } }, ">": function(ab, W, ac) { var Z = typeof W === "string"; if (Z && !/\W/.test(W)) { W = ac ? W : W.toUpperCase(); for (var X = 0, V = ab.length; X < V; X++) { var aa = ab[X]; if (aa) { var Y = aa.parentNode; ab[X] = Y.nodeName === W ? Y : false } } } else { for (var X = 0, V = ab.length; X < V; X++) { var aa = ab[X]; if (aa) { ab[X] = Z ? aa.parentNode : aa.parentNode === W } } if (Z) { H.filter(W, ab, true) } } }, "": function(Y, W, aa) { var X = N++, V = U; if (!W.match(/\W/)) { var Z = W = aa ? W : W.toUpperCase(); V = R } V("parentNode", W, X, Y, Z, aa) }, "~": function(Y, W, aa) { var X = N++, V = U; if (typeof W === "string" && !W.match(/\W/)) { var Z = W = aa ? W : W.toUpperCase(); V = R } V("previousSibling", W, X, Y, Z, aa) } }, find: { ID: function(W, X, Y) { if (typeof X.getElementById !== "undefined" && !Y) { var V = X.getElementById(W[1]); return V ? [V] : [] } }, NAME: function(X, aa, ab) { if (typeof aa.getElementsByName !== "undefined") { var W = [], Z = aa.getElementsByName(X[1]); for (var Y = 0, V = Z.length; Y < V; Y++) { if (Z[Y].getAttribute("name") === X[1]) { W.push(Z[Y]) } } return W.length === 0 ? null : W } }, TAG: function(V, W) { return W.getElementsByTagName(V[1]) } }, preFilter: { CLASS: function(Y, W, X, V, ab, ac) { Y = " " + Y[1].replace(/\\/g, "") + " "; if (ac) { return Y } for (var Z = 0, aa; (aa = W[Z]) != null; Z++) { if (aa) { if (ab ^ (aa.className && (" " + aa.className + " ").indexOf(Y) >= 0)) { if (!X) { V.push(aa) } } else { if (X) { W[Z] = false } } } } return false }, ID: function(V) { return V[1].replace(/\\/g, "") }, TAG: function(W, V) { for (var X = 0; V[X] === false; X++) { } return V[X] && S(V[X]) ? W[1] : W[1].toUpperCase() }, CHILD: function(V) { if (V[1] == "nth") { var W = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(V[2] == "even" && "2n" || V[2] == "odd" && "2n+1" || !/\D/.test(V[2]) && "0n+" + V[2] || V[2]); V[2] = (W[1] + (W[2] || 1)) - 0; V[3] = W[3] - 0 } V[0] = N++; return V }, ATTR: function(Z, W, X, V, aa, ab) { var Y = Z[1].replace(/\\/g, ""); if (!ab && K.attrMap[Y]) { Z[1] = K.attrMap[Y] } if (Z[2] === "~=") { Z[4] = " " + Z[4] + " " } return Z }, PSEUDO: function(Z, W, X, V, aa) { if (Z[1] === "not") { if (Z[3].match(T).length > 1 || /^\w/.test(Z[3])) { Z[3] = H(Z[3], null, null, W) } else { var Y = H.filter(Z[3], W, X, true ^ aa); if (!X) { V.push.apply(V, Y) } return false } } else { if (K.match.POS.test(Z[0]) || K.match.CHILD.test(Z[0])) { return true } } return Z }, POS: function(V) { V.unshift(true); return V } }, filters: { enabled: function(V) { return V.disabled === false && V.type !== "hidden" }, disabled: function(V) { return V.disabled === true }, checked: function(V) { return V.checked === true }, selected: function(V) { V.parentNode.selectedIndex; return V.selected === true }, parent: function(V) { return !!V.firstChild }, empty: function(V) { return !V.firstChild }, has: function(X, W, V) { return !!H(V[3], X).length }, header: function(V) { return /h\d/i.test(V.nodeName) }, text: function(V) { return "text" === V.type }, radio: function(V) { return "radio" === V.type }, checkbox: function(V) { return "checkbox" === V.type }, file: function(V) { return "file" === V.type }, password: function(V) { return "password" === V.type }, submit: function(V) { return "submit" === V.type }, image: function(V) { return "image" === V.type }, reset: function(V) { return "reset" === V.type }, button: function(V) { return "button" === V.type || V.nodeName.toUpperCase() === "BUTTON" }, input: function(V) { return /input|select|textarea|button/i.test(V.nodeName) } }, setFilters: { first: function(W, V) { return V === 0 }, last: function(X, W, V, Y) { return W === Y.length - 1 }, even: function(W, V) { return V % 2 === 0 }, odd: function(W, V) { return V % 2 === 1 }, lt: function(X, W, V) { return W < V[3] - 0 }, gt: function(X, W, V) { return W > V[3] - 0 }, nth: function(X, W, V) { return V[3] - 0 == W }, eq: function(X, W, V) { return V[3] - 0 == W } }, filter: { PSEUDO: function(ab, X, Y, ac) { var W = X[1], Z = K.filters[W]; if (Z) { return Z(ab, Y, X, ac) } else { if (W === "contains") { return (ab.textContent || ab.innerText || "").indexOf(X[3]) >= 0 } else { if (W === "not") { var aa = X[3]; for (var Y = 0, V = aa.length; Y < V; Y++) { if (aa[Y] === ab) { return false } } return true } } } }, CHILD: function(V, Y) { var ab = Y[1], W = V; switch (ab) { case "only": case "first": while (W = W.previousSibling) { if (W.nodeType === 1) { return false } } if (ab == "first") { return true } W = V; case "last": while (W = W.nextSibling) { if (W.nodeType === 1) { return false } } return true; case "nth": var X = Y[2], ae = Y[3]; if (X == 1 && ae == 0) { return true } var aa = Y[0], ad = V.parentNode; if (ad && (ad.sizcache !== aa || !V.nodeIndex)) { var Z = 0; for (W = ad.firstChild; W; W = W.nextSibling) { if (W.nodeType === 1) { W.nodeIndex = ++Z } } ad.sizcache = aa } var ac = V.nodeIndex - ae; if (X == 0) { return ac == 0 } else { return (ac % X == 0 && ac / X >= 0) } } }, ID: function(W, V) { return W.nodeType === 1 && W.getAttribute("id") === V }, TAG: function(W, V) { return (V === "*" && W.nodeType === 1) || W.nodeName === V }, CLASS: function(W, V) { return (" " + (W.className || W.getAttribute("class")) + " ").indexOf(V) > -1 }, ATTR: function(aa, Y) { var X = Y[1], V = K.attrHandle[X] ? K.attrHandle[X](aa) : aa[X] != null ? aa[X] : aa.getAttribute(X), ab = V + "", Z = Y[2], W = Y[4]; return V == null ? Z === "!=" : Z === "=" ? ab === W : Z === "*=" ? ab.indexOf(W) >= 0 : Z === "~=" ? (" " + ab + " ").indexOf(W) >= 0 : !W ? ab && V !== false : Z === "!=" ? ab != W : Z === "^=" ? ab.indexOf(W) === 0 : Z === "$=" ? ab.substr(ab.length - W.length) === W : Z === "|=" ? ab === W || ab.substr(0, W.length + 1) === W + "-" : false }, POS: function(Z, W, X, aa) { var V = W[2], Y = K.setFilters[V]; if (Y) { return Y(Z, X, W, aa) } } } }; var O = K.match.POS; for (var Q in K.match) { K.match[Q] = RegExp(K.match[Q].source + /(?![^\[]*\])(?![^\(]*\))/.source) } var G = function(W, V) { W = Array.prototype.slice.call(W); if (V) { V.push.apply(V, W); return V } return W }; try { Array.prototype.slice.call(document.documentElement.childNodes) } catch (P) { G = function(Z, Y) { var W = Y || []; if (J.call(Z) === "[object Array]") { Array.prototype.push.apply(W, Z) } else { if (typeof Z.length === "number") { for (var X = 0, V = Z.length; X < V; X++) { W.push(Z[X]) } } else { for (var X = 0; Z[X]; X++) { W.push(Z[X]) } } } return W } } var I; if (document.documentElement.compareDocumentPosition) { I = function(W, V) { var X = W.compareDocumentPosition(V) & 4 ? -1 : W === V ? 0 : 1; if (X === 0) { hasDuplicate = true } return X } } else { if ("sourceIndex" in document.documentElement) { I = function(W, V) { var X = W.sourceIndex - V.sourceIndex; if (X === 0) { hasDuplicate = true } return X } } else { if (document.createRange) { I = function(Y, W) { var X = Y.ownerDocument.createRange(), V = W.ownerDocument.createRange(); X.selectNode(Y); X.collapse(true); V.selectNode(W); V.collapse(true); var Z = X.compareBoundaryPoints(Range.START_TO_END, V); if (Z === 0) { hasDuplicate = true } return Z } } } } (function() { var W = document.createElement("form"), X = "script" + (new Date).getTime(); W.innerHTML = "<input name='" + X + "'/>"; var V = document.documentElement; V.insertBefore(W, V.firstChild); if (!!document.getElementById(X)) { K.find.ID = function(Z, aa, ab) { if (typeof aa.getElementById !== "undefined" && !ab) { var Y = aa.getElementById(Z[1]); return Y ? Y.id === Z[1] || typeof Y.getAttributeNode !== "undefined" && Y.getAttributeNode("id").nodeValue === Z[1] ? [Y] : g : [] } }; K.filter.ID = function(aa, Y) { var Z = typeof aa.getAttributeNode !== "undefined" && aa.getAttributeNode("id"); return aa.nodeType === 1 && Z && Z.nodeValue === Y } } V.removeChild(W) })(); (function() { var V = document.createElement("div"); V.appendChild(document.createComment("")); if (V.getElementsByTagName("*").length > 0) { K.find.TAG = function(W, aa) { var Z = aa.getElementsByTagName(W[1]); if (W[1] === "*") { var Y = []; for (var X = 0; Z[X]; X++) { if (Z[X].nodeType === 1) { Y.push(Z[X]) } } Z = Y } return Z } } V.innerHTML = "<a href='#'></a>"; if (V.firstChild && typeof V.firstChild.getAttribute !== "undefined" && V.firstChild.getAttribute("href") !== "#") { K.attrHandle.href = function(W) { return W.getAttribute("href", 2) } } })(); if (document.querySelectorAll) { (function() { var V = H, W = document.createElement("div"); W.innerHTML = "<p class='TEST'></p>"; if (W.querySelectorAll && W.querySelectorAll(".TEST").length === 0) { return } H = function(aa, Z, X, Y) { Z = Z || document; if (!Y && Z.nodeType === 9 && !S(Z)) { try { return G(Z.querySelectorAll(aa), X) } catch (ab) { } } return V(aa, Z, X, Y) }; H.find = V.find; H.filter = V.filter; H.selectors = V.selectors; H.matches = V.matches })() } if (document.getElementsByClassName && document.documentElement.getElementsByClassName) { (function() { var V = document.createElement("div"); V.innerHTML = "<div class='test e'></div><div class='test'></div>"; if (V.getElementsByClassName("e").length === 0) { return } V.lastChild.className = "e"; if (V.getElementsByClassName("e").length === 1) { return } K.order.splice(1, 0, "CLASS"); K.find.CLASS = function(W, X, Y) { if (typeof X.getElementsByClassName !== "undefined" && !Y) { return X.getElementsByClassName(W[1]) } } })() } function R(W, ab, aa, af, ac, ae) { var ad = W == "previousSibling" && !ae; for (var Y = 0, X = af.length; Y < X; Y++) { var V = af[Y]; if (V) { if (ad && V.nodeType === 1) { V.sizcache = aa; V.sizset = Y } V = V[W]; var Z = false; while (V) { if (V.sizcache === aa) { Z = af[V.sizset]; break } if (V.nodeType === 1 && !ae) { V.sizcache = aa; V.sizset = Y } if (V.nodeName === ab) { Z = V; break } V = V[W] } af[Y] = Z } } } function U(W, ab, aa, af, ac, ae) { var ad = W == "previousSibling" && !ae; for (var Y = 0, X = af.length; Y < X; Y++) { var V = af[Y]; if (V) { if (ad && V.nodeType === 1) { V.sizcache = aa; V.sizset = Y } V = V[W]; var Z = false; while (V) { if (V.sizcache === aa) { Z = af[V.sizset]; break } if (V.nodeType === 1) { if (!ae) { V.sizcache = aa; V.sizset = Y } if (typeof ab !== "string") { if (V === ab) { Z = true; break } } else { if (H.filter(ab, [V]).length > 0) { Z = V; break } } } V = V[W] } af[Y] = Z } } } var M = document.compareDocumentPosition ? function(W, V) { return W.compareDocumentPosition(V) & 16 } : function(W, V) { return W !== V && (W.contains ? W.contains(V) : true) }; var S = function(V) { return V.nodeType === 9 && V.documentElement.nodeName !== "HTML" || !!V.ownerDocument && S(V.ownerDocument) }; var L = function(V, ac) { var Y = [], Z = "", aa, X = ac.nodeType ? [ac] : ac; while ((aa = K.match.PSEUDO.exec(V))) { Z += aa[0]; V = V.replace(K.match.PSEUDO, "") } V = K.relative[V] ? V + "*" : V; for (var ab = 0, W = X.length; ab < W; ab++) { H(V, X[ab], Y) } return H.filter(Z, Y) }; q.find = H; q.filter = H.filter; q.expr = H.selectors; q.expr[":"] = q.expr.filters; H.selectors.filters.hidden = function(V) { return V.offsetWidth === 0 || V.offsetHeight === 0 }; H.selectors.filters.visible = function(V) { return V.offsetWidth > 0 || V.offsetHeight > 0 }; H.selectors.filters.animated = function(V) { return q.grep(q.timers, function(W) { return V === W.elem }).length }; q.multiFilter = function(X, V, W) { if (W) { X = ":not(" + X + ")" } return H.matches(X, V) }; q.dir = function(X, W) { var V = [], Y = X[W]; while (Y && Y != document) { if (Y.nodeType == 1) { V.push(Y) } Y = Y[W] } return V }; q.nth = function(Z, V, X, Y) { V = V || 1; var W = 0; for (; Z; Z = Z[X]) { if (Z.nodeType == 1 && ++W == V) { break } } return Z }; q.sibling = function(X, W) { var V = []; for (; X; X = X.nextSibling) { if (X.nodeType == 1 && X != W) { V.push(X) } } return V }; return; n.Sizzle = H })(); q.event = { add: function(K, H, J, M) { if (K.nodeType == 3 || K.nodeType == 8) { return } if (K.setInterval && K != n) { K = n } if (!J.guid) { J.guid = this.guid++ } if (M !== g) { var I = J; J = this.proxy(I); J.data = M } var G = q.data(K, "events") || q.data(K, "events", {}), L = q.data(K, "handle") || q.data(K, "handle", function() { return typeof q !== "undefined" && !q.event.triggered ? q.event.handle.apply(arguments.callee.elem, arguments) : g }); L.elem = K; q.each(H.split(/\s+/), function(O, P) { var Q = P.split("."); P = Q.shift(); J.type = Q.slice().sort().join("."); var N = G[P]; if (q.event.specialAll[P]) { q.event.specialAll[P].setup.call(K, M, Q) } if (!N) { N = G[P] = {}; if (!q.event.special[P] || q.event.special[P].setup.call(K, M, Q) === false) { if (K.addEventListener) { K.addEventListener(P, L, false) } else { if (K.attachEvent) { K.attachEvent("on" + P, L) } } } } N[J.guid] = J; q.event.global[P] = true }); K = null }, guid: 1, global: {}, remove: function(M, J, L) { if (M.nodeType == 3 || M.nodeType == 8) { return } var I = q.data(M, "events"), H, G; if (I) { if (J === g || (typeof J === "string" && J.charAt(0) == ".")) { for (var K in I) { this.remove(M, K + (J || "")) } } else { if (J.type) { L = J.handler; J = J.type } q.each(J.split(/\s+/), function(O, Q) { var S = Q.split("."); Q = S.shift(); var P = RegExp("(^|\\.)" + S.slice().sort().join(".*\\.") + "(\\.|$)"); if (I[Q]) { if (L) { delete I[Q][L.guid] } else { for (var R in I[Q]) { if (P.test(I[Q][R].type)) { delete I[Q][R] } } } if (q.event.specialAll[Q]) { q.event.specialAll[Q].teardown.call(M, S) } for (H in I[Q]) { break } if (!H) { if (!q.event.special[Q] || q.event.special[Q].teardown.call(M, S) === false) { if (M.removeEventListener) { M.removeEventListener(Q, q.data(M, "handle"), false) } else { if (M.detachEvent) { M.detachEvent("on" + Q, q.data(M, "handle")) } } } H = null; delete I[Q] } } }) } for (H in I) { break } if (!H) { var N = q.data(M, "handle"); if (N) { N.elem = null } q.removeData(M, "events"); q.removeData(M, "handle") } } }, trigger: function(K, M, J, G) { var I = K.type || K; if (!G) { K = typeof K === "object" ? K[h] ? K : q.extend(q.Event(I), K) : q.Event(I); if (I.indexOf("!") >= 0) { K.type = I = I.slice(0, -1); K.exclusive = true } if (!J) { K.stopPropagation(); if (this.global[I]) { q.each(q.cache, function() { if (this.events && this.events[I]) { q.event.trigger(K, M, this.handle.elem) } }) } } if (!J || J.nodeType == 3 || J.nodeType == 8) { return g } K.result = g; K.target = J; M = q.makeArray(M); M.unshift(K) } K.currentTarget = J; var L = q.data(J, "handle"); if (L) { L.apply(J, M) } if ((!J[I] || (q.nodeName(J, "a") && I == "click")) && J["on" + I] && J["on" + I].apply(J, M) === false) { K.result = false } if (!G && J[I] && !K.isDefaultPrevented() && !(q.nodeName(J, "a") && I == "click")) { this.triggered = true; try { J[I]() } catch (N) { } } this.triggered = false; if (!K.isPropagationStopped()) { var H = J.parentNode || J.ownerDocument; if (H) { q.event.trigger(K, M, H, true) } } }, handle: function(M) { var L, G; M = arguments[0] = q.event.fix(M || n.event); M.currentTarget = this; var N = M.type.split("."); M.type = N.shift(); L = !N.length && !M.exclusive; var K = RegExp("(^|\\.)" + N.slice().sort().join(".*\\.") + "(\\.|$)"); G = (q.data(this, "events") || {})[M.type]; for (var I in G) { var J = G[I]; if (L || K.test(J.type)) { M.handler = J; M.data = J.data; var H = J.apply(this, arguments); if (H !== g) { M.result = H; if (H === false) { M.preventDefault(); M.stopPropagation() } } if (M.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[h]) { return J } var H = J; J = q.Event(H); for (var I = this.props.length, L; I; ) { L = this.props[--I]; J[L] = H[L] } 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 K = document.documentElement, G = document.body; J.pageX = J.clientX + (K && K.scrollLeft || G && G.scrollLeft || 0) - (K.clientLeft || 0); J.pageY = J.clientY + (K && K.scrollTop || G && G.scrollTop || 0) - (K.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(H, G) { G = G || function() { return H.apply(this, arguments) }; G.guid = H.guid = H.guid || G.guid || this.guid++; return G }, special: { ready: { setup: D, teardown: function() { } } }, specialAll: { live: { setup: function(G, H) { q.event.add(this, H[0], c) }, teardown: function(I) { if (I.length) { var G = 0, H = RegExp("(^|\\.)" + I[0] + "(\\.|$)"); q.each((q.data(this, "events").live || {}), function() { if (H.test(this.type)) { G++ } }); if (G < 1) { q.event.remove(this, I[0], c) } } } }} }; q.Event = function(G) { if (!this.preventDefault) { return new q.Event(G) } if (G && G.type) { this.originalEvent = G; this.type = G.type } else { this.type = G } this.timeStamp = e(); this[h] = true }; function m() { return false } function w() { return true } q.Event.prototype = { preventDefault: function() { this.isDefaultPrevented = w; var G = this.originalEvent; if (!G) { return } if (G.preventDefault) { G.preventDefault() } G.returnValue = false }, stopPropagation: function() { this.isPropagationStopped = w; var G = this.originalEvent; if (!G) { return } if (G.stopPropagation) { G.stopPropagation() } G.cancelBubble = true }, stopImmediatePropagation: function() { this.isImmediatePropagationStopped = w; this.stopPropagation() }, isDefaultPrevented: m, isPropagationStopped: m, isImmediatePropagationStopped: m }; var a = function(H) { var G = H.relatedTarget; while (G && G != this) { try { G = G.parentNode } catch (I) { G = this } } if (G != this) { H.type = H.data; q.event.handle.apply(this, arguments) } }; q.each({ mouseover: "mouseenter", mouseout: "mouseleave" }, function(H, G) { q.event.special[G] = { setup: function() { q.event.add(this, H, a, G) }, teardown: function() { q.event.remove(this, H, a) } } }); q.fn.extend({ bind: function(H, I, G) { return H == "unload" ? this.one(H, I, G) : this.each(function() { q.event.add(this, H, G || I, G && I) }) }, one: function(I, J, H) { var G = q.event.proxy(H || J, function(K) { q(this).unbind(K, G); return (H || J).apply(this, arguments) }); return this.each(function() { q.event.add(this, I, G, H && J) }) }, unbind: function(H, G) { return this.each(function() { q.event.remove(this, H, G) }) }, trigger: function(G, H) { return this.each(function() { q.event.trigger(G, H, this) }) }, triggerHandler: function(G, I) { if (this[0]) { var H = q.Event(G); H.preventDefault(); H.stopPropagation(); q.event.trigger(H, I, this[0]); return H.result } }, toggle: function(I) { var G = arguments, H = 1; while (H < G.length) { q.event.proxy(I, G[H++]) } return this.click(q.event.proxy(I, function(J) { this.lastToggle = (this.lastToggle || 0) % H; J.preventDefault(); return G[this.lastToggle++].apply(this, arguments) || false })) }, hover: function(G, H) { return this.mouseenter(G).mouseleave(H) }, ready: function(G) { D(); if (q.isReady) { G.call(document, q) } else { q.readyList.push(G) } return this }, live: function(I, H) { var G = q.event.proxy(H); G.guid += this.selector + I; q(document).bind(k(I, this.selector), this.selector, G); return this }, die: function(H, G) { q(document).unbind(k(H, this.selector), G ? { guid: G.guid + this.selector + H} : null); return this } }); function c(J) { var G = RegExp("(^|\\.)" + J.type + "(\\.|$)"), I = true, H = []; q.each(q.data(this, "events").live || [], function(K, L) { if (G.test(L.type)) { var M = q(J.target).closest(L.data)[0]; if (M) { H.push({ elem: M, fn: L }) } } }); H.sort(function(L, K) { return q.data(L.elem, "closest") - q.data(K.elem, "closest") }); q.each(H, function() { if (this.fn.call(this.elem, J, this.fn.data) === false) { return (I = false) } }); return I } function k(H, G) { return ["live", H, G.replace(/\./g, "`").replace(/ /g, "|")].join(".") } q.extend({ isReady: false, readyList: [], ready: function() { if (!q.isReady) { q.isReady = true; if (q.readyList) { q.each(q.readyList, function() { this.call(document, q) }); q.readyList = null } q(document).triggerHandler("ready") } } }); var z = false; function D() { if (z) { return } z = true; if (document.addEventListener) { document.addEventListener("DOMContentLoaded", function() { document.removeEventListener("DOMContentLoaded", arguments.callee, false); q.ready() }, false) } else { if (document.attachEvent) { document.attachEvent("onreadystatechange", function() { if (document.readyState === "complete") { document.detachEvent("onreadystatechange", arguments.callee); q.ready() } }); if (document.documentElement.doScroll && n == n.top) { (function() { if (q.isReady) { return } try { document.documentElement.doScroll("left") } catch (G) { setTimeout(arguments.callee, 0); return } q.ready() })() } } } q.event.add(n, "load", q.ready) } q.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(H, G) { q.fn[G] = function(I) { return I ? this.bind(G, I) : this.trigger(G) } }); q(n).bind("unload", function() { for (var G in q.cache) { if (G != 1 && q.cache[G].handle) { q.event.remove(q.cache[G].handle.elem) } } }); (function() { q.support = {}; var H = document.documentElement, I = document.createElement("script"), M = document.createElement("div"), L = "script" + (new Date).getTime(); M.style.display = "none"; M.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 = M.getElementsByTagName("*"), G = M.getElementsByTagName("a")[0]; if (!J || !J.length || !G) { return } q.support = { leadingWhitespace: M.firstChild.nodeType == 3, tbody: !M.getElementsByTagName("tbody").length, objectAll: !!M.getElementsByTagName("object")[0].getElementsByTagName("*").length, htmlSerialize: !!M.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." + L + "=1;")) } catch (K) { } H.insertBefore(I, H.firstChild); if (n[L]) { q.support.scriptEval = true; delete n[L] } H.removeChild(I); if (M.attachEvent && M.fireEvent) { M.attachEvent("onclick", function() { q.support.noCloneEvent = false; M.detachEvent("onclick", arguments.callee) }); M.cloneNode(true).fireEvent("onclick") } q(function() { var N = document.createElement("div"); N.style.width = N.style.paddingLeft = "1px"; document.body.appendChild(N); q.boxModel = q.support.boxModel = N.offsetWidth === 2; document.body.removeChild(N).style.display = "none" }) })(); var y = q.support.cssFloat ? "cssFloat" : "styleFloat"; q.props = { "for": "htmlFor", "class": "className", "float": y, cssFloat: y, styleFloat: y, readonly: "readOnly", maxlength: "maxLength", cellspacing: "cellSpacing", rowspan: "rowSpan", tabindex: "tabIndex" }; q.fn.extend({ _load: q.fn.load, load: function(I, L, M) { 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 (L) { if (q.isFunction(L)) { M = L; L = null } else { if (typeof L === "object") { L = q.param(L); J = "POST" } } } var H = this; q.ajax({ url: I, type: J, dataType: "html", data: L, complete: function(O, N) { if (N == "success" || N == "notmodified") { H.html(G ? q("<div/>").append(O.responseText.replace(/<script(.|\s)*?\/script>/g, "")).find(G) : O.responseText) } if (M) { H.each(M, [O.responseText, N, O]) } } }); return this }, serialize: function() { return q.param(this.serializeArray()) }, serializeArray: function() { return this.map(function() { return this.elements ? q.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, H) { var I = q(this).val(); return I == null ? null : q.isArray(I) ? q.map(I, function(K, J) { return { name: H.name, value: K} }) : { name: H.name, value: I} }).get() } }); q.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","), function(G, H) { q.fn[H] = function(I) { return this.bind(H, I) } }); var t = e(); q.extend({ get: function(G, I, J, H) { if (q.isFunction(I)) { J = I; I = null } return q.ajax({ type: "GET", url: G, data: I, success: J, dataType: H }) }, getScript: function(G, H) { return q.get(G, null, H, "script") }, getJSON: function(G, H, I) { return q.get(G, H, I, "json") }, post: function(G, I, J, H) { if (q.isFunction(I)) { J = I; I = {} } return q.ajax({ type: "POST", url: G, data: I, success: J, dataType: H }) }, ajaxSetup: function(G) { q.extend(q.ajaxSettings, G) }, ajaxSettings: { url: location.href, global: true, type: "GET", contentType: "application/x-www-form-urlencoded", processData: true, async: true, xhr: function() { return n.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(O) { O = q.extend(true, O, q.extend(true, {}, q.ajaxSettings, O)); var Y, H = /=\?(&|$)/g, T, X, I = O.type.toUpperCase(); if (O.data && O.processData && typeof O.data !== "string") { O.data = q.param(O.data) } if (O.dataType == "jsonp") { if (I == "GET") { if (!O.url.match(H)) { O.url += (O.url.match(/\?/) ? "&" : "?") + (O.jsonp || "callback") + "=?" } } else { if (!O.data || !O.data.match(H)) { O.data = (O.data ? O.data + "&" : "") + (O.jsonp || "callback") + "=?" } } O.dataType = "json" } if (O.dataType == "json" && (O.data && O.data.match(H) || O.url.match(H))) { Y = "jsonp" + t++; if (O.data) { O.data = (O.data + "").replace(H, "=" + Y + "$1") } O.url = O.url.replace(H, "=" + Y + "$1"); O.dataType = "script"; n[Y] = function(Z) { X = Z; K(); N(); n[Y] = g; try { delete n[Y] } catch (aa) { } if (J) { J.removeChild(V) } } } if (O.dataType == "script" && O.cache == null) { O.cache = false } if (O.cache === false && I == "GET") { var G = e(); var W = O.url.replace(/(\?|&)_=.*?(&|$)/, "$1_=" + G + "$2"); O.url = W + ((W == O.url) ? (O.url.match(/\?/) ? "&" : "?") + "_=" + G : "") } if (O.data && I == "GET") { O.url += (O.url.match(/\?/) ? "&" : "?") + O.data; O.data = null } if (O.global && !q.active++) { q.event.trigger("ajaxStart") } var S = /^(\w+:)?\/\/([^\/?#]+)/.exec(O.url); if (O.dataType == "script" && I == "GET" && S && (S[1] && S[1] != location.protocol || S[2] != location.host)) { var J = document.getElementsByTagName("head")[0]; var V = document.createElement("script"); V.src = O.url; if (O.scriptCharset) { V.charset = O.scriptCharset } if (!Y) { var Q = false; V.onload = V.onreadystatechange = function() { if (!Q && (!this.readyState || this.readyState == "loaded" || this.readyState == "complete")) { Q = true; K(); N(); V.onload = V.onreadystatechange = null; J.removeChild(V) } } } J.appendChild(V); return g } var M = false; var L = O.xhr(); if (O.username) { L.open(I, O.url, O.async, O.username, O.password) } else { L.open(I, O.url, O.async) } try { if (O.data) { L.setRequestHeader("Content-Type", O.contentType) } if (O.ifModified) { L.setRequestHeader("If-Modified-Since", q.lastModified[O.url] || "Thu, 01 Jan 1970 00:00:00 GMT") } L.setRequestHeader("X-Requested-With", "XMLHttpRequest"); L.setRequestHeader("Accept", O.dataType && O.accepts[O.dataType] ? O.accepts[O.dataType] + ", */*" : O.accepts._default) } catch (U) { } if (O.beforeSend && O.beforeSend(L, O) === false) { if (O.global && ! --q.active) { q.event.trigger("ajaxStop") } L.abort(); return false } if (O.global) { q.event.trigger("ajaxSend", [L, O]) } var P = function(Z) { if (L.readyState == 0) { if (R) { clearInterval(R); R = null; if (O.global && ! --q.active) { q.event.trigger("ajaxStop") } } } else { if (!M && L && (L.readyState == 4 || Z == "timeout")) { M = true; if (R) { clearInterval(R); R = null } T = Z == "timeout" ? "timeout" : !q.httpSuccess(L) ? "error" : O.ifModified && q.httpNotModified(L, O.url) ? "notmodified" : "success"; if (T == "success") { try { X = q.httpData(L, O.dataType, O) } catch (ab) { T = "parsererror" } } if (T == "success") { var aa; try { aa = L.getResponseHeader("Last-Modified") } catch (ab) { } if (O.ifModified && aa) { q.lastModified[O.url] = aa } if (!Y) { K() } } else { q.handleError(O, L, T) } N(); if (Z) { L.abort() } if (O.async) { L = null } } } }; if (O.async) { var R = setInterval(P, 13); if (O.timeout > 0) { setTimeout(function() { if (L && !M) { P("timeout") } }, O.timeout) } } try { L.send(O.data) } catch (U) { q.handleError(O, L, null, U) } if (!O.async) { P() } function K() { if (O.success) { O.success(X, T) } if (O.global) { q.event.trigger("ajaxSuccess", [L, O]) } } function N() { if (O.complete) { O.complete(L, T) } if (O.global) { q.event.trigger("ajaxComplete", [L, O]) } if (O.global && ! --q.active) { q.event.trigger("ajaxStop") } } return L }, handleError: function(H, J, G, I) { if (H.error) { H.error(J, G, I) } if (H.global) { q.event.trigger("ajaxError", [J, H, I]) } }, active: 0, httpSuccess: function(H) { try { return !H.status && location.protocol == "file:" || (H.status >= 200 && H.status < 300) || H.status == 304 || H.status == 1223 } catch (G) { } return false }, httpNotModified: function(I, G) { try { var J = I.getResponseHeader("Last-Modified"); return I.status == 304 || J == q.lastModified[G] } catch (H) { } return false }, httpData: function(L, J, I) { var H = L.getResponseHeader("content-type"), G = J == "xml" || !J && H && H.indexOf("xml") >= 0, K = G ? L.responseXML : L.responseText; if (G && K.documentElement.tagName == "parsererror") { throw "parsererror" } if (I && I.dataFilter) { K = I.dataFilter(K, J) } if (typeof K === "string") { if (J == "script") { q.globalEval(K) } if (J == "json") { K = n["eval"]("(" + K + ")") } } return K }, param: function(G) { var I = []; function J(K, L) { I[I.length] = encodeURIComponent(K) + "=" + encodeURIComponent(L) } if (q.isArray(G) || G.jquery) { q.each(G, function() { J(this.name, this.value) }) } else { for (var H in G) { if (q.isArray(G[H])) { q.each(G[H], function() { J(H, this) }) } else { J(H, q.isFunction(G[H]) ? G[H]() : G[H]) } } } return I.join("&").replace(/%20/g, "+") } }); var o = {}, p, d = [["height", "marginTop", "marginBottom", "paddingTop", "paddingBottom"], ["width", "marginLeft", "marginRight", "paddingLeft", "paddingRight"], ["opacity"]]; function v(H, G) { var I = {}; q.each(d.concat.apply([], d.slice(0, G)), function() { I[this] = H }); return I } q.fn.extend({ show: function(L, N) { if (L) { return this.animate(v("show", 3), L, N) } else { for (var J = 0, H = this.length; J < H; J++) { var G = q.data(this[J], "olddisplay"); this[J].style.display = G || ""; if (q.css(this[J], "display") === "none") { var I = this[J].tagName, M; if (o[I]) { M = o[I] } else { var K = q("<" + I + " />").appendTo("body"); M = K.css("display"); if (M === "none") { M = "block" } K.remove(); o[I] = M } q.data(this[J], "olddisplay", M) } } for (var J = 0, H = this.length; J < H; J++) { this[J].style.display = q.data(this[J], "olddisplay") || "" } return this } }, hide: function(J, K) { if (J) { return this.animate(v("hide", 3), J, K) } else { for (var I = 0, H = this.length; I < H; I++) { var G = q.data(this[I], "olddisplay"); if (!G && G !== "none") { q.data(this[I], "olddisplay", q.css(this[I], "display")) } } for (var I = 0, H = this.length; I < H; I++) { this[I].style.display = "none" } return this } }, _toggle: q.fn.toggle, toggle: function(I, H) { var G = typeof I === "boolean"; return q.isFunction(I) && q.isFunction(H) ? this._toggle.apply(this, arguments) : I == null || G ? this.each(function() { var J = G ? I : q(this).is(":hidden"); q(this)[J ? "show" : "hide"]() }) : this.animate(v("toggle", 3), I, H) }, fadeTo: function(G, I, H) { return this.animate({ opacity: I }, G, H) }, animate: function(K, H, J, I) { var G = q.speed(H, J, I); return this[G.queue === false ? "each" : "queue"](function() { var M = q.extend({}, G), O, N = this.nodeType == 1 && q(this).is(":hidden"), L = this; for (O in K) { if (K[O] == "hide" && N || K[O] == "show" && !N) { return M.complete.call(this) } if ((O == "height" || O == "width") && this.style) { M.display = q.css(this, "display"); M.overflow = this.style.overflow } } if (M.overflow != null) { this.style.overflow = "hidden" } M.curAnim = q.extend({}, K); q.each(K, function(Q, U) { var T = new q.fx(L, M, Q); if (/toggle|show|hide/.test(U)) { T[U == "toggle" ? N ? "show" : "hide" : U](K) } else { var S = U.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/), V = T.cur(true) || 0; if (S) { var P = parseFloat(S[2]), R = S[3] || "px"; if (R != "px") { L.style[Q] = (P || 1) + R; V = ((P || 1) / T.cur(true)) * V; L.style[Q] = V + R } if (S[1]) { P = ((S[1] == "-=" ? -1 : 1) * P) + V } T.custom(V, P, R) } else { T.custom(V, U, "") } } }); return true }) }, stop: function(H, G) { var I = q.timers; if (H) { this.queue([]) } this.each(function() { for (var J = I.length - 1; J >= 0; J--) { if (I[J].elem == this) { if (G) { I[J](true) } I.splice(J, 1) } } }); if (!G) { this.dequeue() } return this } }); q.each({ slideDown: v("show", 1), slideUp: v("hide", 1), slideToggle: v("toggle", 1), fadeIn: { opacity: "show" }, fadeOut: { opacity: "hide"} }, function(G, H) { q.fn[G] = function(I, J) { return this.animate(H, I, J) } }); q.extend({ speed: function(I, J, H) { var G = typeof I === "object" ? I : { complete: H || !H && J || q.isFunction(I) && I, duration: I, easing: H && J || J && !q.isFunction(J) && J }; G.duration = q.fx.off ? 0 : typeof G.duration === "number" ? G.duration : q.fx.speeds[G.duration] || q.fx.speeds._default; G.old = G.complete; G.complete = function() { if (G.queue !== false) { q(this).dequeue() } if (q.isFunction(G.old)) { G.old.call(this) } }; return G }, easing: { linear: function(I, J, G, H) { return G + H * I }, swing: function(I, J, G, H) { return ((-Math.cos(I * Math.PI) / 2) + 0.5) * H + G } }, timers: [], fx: function(H, G, I) { this.options = G; this.elem = H; this.prop = I; if (!G.orig) { G.orig = {} } } }); q.fx.prototype = { update: function() { if (this.options.step) { this.options.step.call(this.elem, this.now, this) } (q.fx.step[this.prop] || q.fx.step._default)(this); if ((this.prop == "height" || this.prop == "width") && this.elem.style) { this.elem.style.display = "block" } }, cur: function(H) { if (this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null)) { return this.elem[this.prop] } var G = parseFloat(q.css(this.elem, this.prop, H)); return G && G > -10000 ? G : parseFloat(q.curCSS(this.elem, this.prop)) || 0 }, custom: function(K, J, I) { this.startTime = e(); this.start = K; this.end = J; this.unit = I || this.unit || "px"; this.now = this.start; this.pos = this.state = 0; var G = this; function H(L) { return G.step(L) } H.elem = this.elem; if (H() && q.timers.push(H) && !p) { p = setInterval(function() { var M = q.timers; for (var L = 0; L < M.length; L++) { if (!M[L]()) { M.splice(L--, 1) } } if (!M.length) { clearInterval(p); p = g } }, 13) } }, show: function() { this.options.orig[this.prop] = q.attr(this.elem.style, this.prop); this.options.show = true; this.custom(this.prop == "width" || this.prop == "height" ? 1 : 0, this.cur()); q(this.elem).show() }, hide: function() { this.options.orig[this.prop] = q.attr(this.elem.style, this.prop); this.options.hide = true; this.custom(this.cur(), 0) }, step: function(J) { var I = e(); 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 (q.css(this.elem, "display") == "none") { this.elem.style.display = "block" } } if (this.options.hide) { q(this.elem).hide() } if (this.options.hide || this.options.show) { for (var K in this.options.curAnim) { q.attr(this.elem.style, K, this.options.orig[K]) } } this.options.complete.call(this.elem) } return false } else { var L = I - this.startTime; this.state = L / this.options.duration; this.pos = q.easing[this.options.easing || (q.easing.swing ? "swing" : "linear")](this.state, L, 0, 1, this.options.duration); this.now = this.start + ((this.end - this.start) * this.pos); this.update() } return true } }; q.extend(q.fx, { speeds: { slow: 600, fast: 200, _default: 400 }, step: { opacity: function(G) { q.attr(G.elem.style, "opacity", G.now) }, _default: function(G) { if (G.elem.style && G.elem.style[G.prop] != null) { G.elem.style[G.prop] = G.now + G.unit } else { G.elem[G.prop] = G.now } } } }); if (document.documentElement.getBoundingClientRect) { q.fn.offset = function() { if (!this[0]) { return { top: 0, left: 0} } if (this[0] === this[0].ownerDocument.body) { return q.offset.bodyOffset(this[0]) } var I = this[0].getBoundingClientRect(), L = this[0].ownerDocument, H = L.body, G = L.documentElement, N = G.clientTop || H.clientTop || 0, M = G.clientLeft || H.clientLeft || 0, K = I.top + (self.pageYOffset || q.boxModel && G.scrollTop || H.scrollTop) - N, J = I.left + (self.pageXOffset || q.boxModel && G.scrollLeft || H.scrollLeft) - M; return { top: K, left: J} } } else { q.fn.offset = function() { if (!this[0]) { return { top: 0, left: 0} } if (this[0] === this[0].ownerDocument.body) { return q.offset.bodyOffset(this[0]) } q.offset.initialized || q.offset.initialize(); var L = this[0], I = L.offsetParent, H = L, Q = L.ownerDocument, O, J = Q.documentElement, M = Q.body, N = Q.defaultView, G = N.getComputedStyle(L, null), P = L.offsetTop, K = L.offsetLeft; while ((L = L.parentNode) && L !== M && L !== J) { O = N.getComputedStyle(L, null); P -= L.scrollTop, K -= L.scrollLeft; if (L === I) { P += L.offsetTop, K += L.offsetLeft; if (q.offset.doesNotAddBorder && !(q.offset.doesAddBorderForTableAndCells && /^t(able|d|h)$/i.test(L.tagName))) { P += parseInt(O.borderTopWidth, 10) || 0, K += parseInt(O.borderLeftWidth, 10) || 0 } H = I, I = L.offsetParent } if (q.offset.subtractsBorderForOverflowNotVisible && O.overflow !== "visible") { P += parseInt(O.borderTopWidth, 10) || 0, K += parseInt(O.borderLeftWidth, 10) || 0 } G = O } if (G.position === "relative" || G.position === "static") { P += M.offsetTop, K += M.offsetLeft } if (G.position === "fixed") { P += Math.max(J.scrollTop, M.scrollTop), K += Math.max(J.scrollLeft, M.scrollLeft) } return { top: P, left: K} } } q.offset = { initialize: function() { if (this.initialized) { return } var N = document.body, H = document.createElement("div"), J, I, P, K, O, G, L = N.style.marginTop, M = '<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>'; O = { position: "absolute", top: 0, left: 0, margin: 0, border: 0, width: "1px", height: "1px", visibility: "hidden" }; for (G in O) { H.style[G] = O[G] } H.innerHTML = M; N.insertBefore(H, N.firstChild); J = H.firstChild, I = J.firstChild, K = J.nextSibling.firstChild.firstChild; this.doesNotAddBorder = (I.offsetTop !== 5); this.doesAddBorderForTableAndCells = (K.offsetTop === 5); J.style.overflow = "hidden", J.style.position = "relative"; this.subtractsBorderForOverflowNotVisible = (I.offsetTop === -5); N.style.marginTop = "1px"; this.doesNotIncludeMarginInBodyOffset = (N.offsetTop === 0); N.style.marginTop = L; N.removeChild(H); this.initialized = true }, bodyOffset: function(G) { q.offset.initialized || q.offset.initialize(); var I = G.offsetTop, H = G.offsetLeft; if (q.offset.doesNotIncludeMarginInBodyOffset) { I += parseInt(q.curCSS(G, "marginTop", true), 10) || 0, H += parseInt(q.curCSS(G, "marginLeft", true), 10) || 0 } return { top: I, left: H} } }; q.fn.extend({ position: function() { var K = 0, J = 0, H; if (this[0]) { var I = this.offsetParent(), L = this.offset(), G = /^body|html$/i.test(I[0].tagName) ? { top: 0, left: 0} : I.offset(); L.top -= l(this, "marginTop"); L.left -= l(this, "marginLeft"); G.top += l(I, "borderTopWidth"); G.left += l(I, "borderLeftWidth"); H = { top: L.top - G.top, left: L.left - G.left} } return H }, offsetParent: function() { var G = this[0].offsetParent || document.body; while (G && (!/^body|html$/i.test(G.tagName) && q.css(G, "position") == "static")) { G = G.offsetParent } return q(G) } }); q.each(["Left", "Top"], function(H, G) { var I = "scroll" + G; q.fn[I] = function(J) { if (!this[0]) { return null } return J !== g ? this.each(function() { this == n || this == document ? n.scrollTo(!H ? J : q(n).scrollLeft(), H ? J : q(n).scrollTop()) : this[I] = J }) : this[0] == n || this[0] == document ? self[H ? "pageYOffset" : "pageXOffset"] || q.boxModel && document.documentElement[I] || document.body[I] : this[0][I] } }); q.each(["Height", "Width"], function(K, I) { var G = K ? "Left" : "Top", J = K ? "Right" : "Bottom", H = I.toLowerCase(); q.fn["inner" + I] = function() { return this[0] ? q.css(this[0], H, false, "padding") : null }; q.fn["outer" + I] = function(M) { return this[0] ? q.css(this[0], H, false, M ? "margin" : "border") : null }; var L = I.toLowerCase(); q.fn[L] = function(M) { return this[0] == n ? 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]) : M === g ? (this.length ? q.css(this[0], L) : null) : this.css(L, typeof M === "string" ? M : M + "px") } })})(); jQuery.noConflict(); if (!cGB) { var cGB = true; if (!cm_ClientID) { var cm_ClientID = "99999999" } if (!cm_HOST) { var cm_HOST = "test.coremetrics.com/cm?" } if (!cm_ClientTS) { var dt = new Date(); var cm_ClientTS = dt.getTime() } if (!cm_TrackLink) { var cm_TrackLink = "" } if (!cm_DelayHandlerReg) { var cm_DelayHandlerReg = "" } if (!cm_SkipHandlerReg) { var cm_SkipHandlerReg = "" } if (!cm_TrackTime) { var cm_TrackTime = false } if (!cm_TrackImpressions) { var cm_TrackImpressions = "" } if (!cm_SecureTags || cm_SecureTags == null) { var cm_SecureTags = "|2|3|" } if (!cm_FirstPartyDetect) { var cm_FirstPartyDetect = false } if (!cm_DownloadExtensions) { var cm_DownloadExtensions = null } if (!cm_UseUTF8) { var cm_UseUTF8 = false } if (!cm_FormError) { var cm_FormError = "" } if (cm_UseCookie == null) { var cm_UseCookie = true } if (!cm_TimeoutSecs) { var cm_TimeoutSecs = 15 } if (!cm_OffsiteImpressionsEnabled) { var cm_OffsiteImpressionsEnabled = false } if (!cm_AvidHost) { var cm_AvidHost = "ad.coremetrics.com/cookie-id.js?fn=cmSetAvid" } var cm_AvidLoadTimedOut = false; if (!cm_JSFEnabled) { var cm_JSFEnabled = false } if (!cm_JSFPCookieDomain) { var cm_JSFPCookieDomain = null } if (!cm_JSFMigrationEnabled) { var cm_JSFMigrationEnabled = 0 } if (!cm_JSFSessionType) { var cm_JSFSessionType = "I" } if (!cm_JSFSessionTimeout) { var cm_JSFSessionTimeout = 1800 } if (!cm_JSFCoreCookieName) { var cm_JSFCoreCookieName = "CoreID6" } if (!cm_JSFSpecCookieNames) { var cm_JSFSpecCookieNames = new Array() } if (!cmUA) { var cmUA = new Object(); cmUA.MSIE = 2083 } if (!cmDefaultLimit) { var cmDefaultLimit = 8197 } if (cGQ == null) { var cGQ = true } if (!cGO) { var cGO = 1024 } if (!cGR) { var cGR = 600000 } if (!encodeURIComponent) { var encodeURIComponent = null } var cG8; var cG8Index; var cG6 = document; var cGT; var cG7 = new _cG7(); cG6.cmTagCtl = cG7; var CI = cmStartTagSet; var CJ = cmSendTagSet; var cG1 = 0; var cG0 = new Array("vn1", "vn2", "st", "pi", "rs", "ec", "rf", "ul"); var cmLastPageID = null; var cGA = null; var cmMigrationDisabled = 0; var cmMigrationFrom1p_CM = 1; var cmMigrationFrom1p_SA = 2; var cmValidFlag_SessionContinue = 1; var cmValidFlag_NewSession = 2; var cmValidFlag_NewVisitor = 4; var cmValidFlag_SessionReset = 32; var cmSACookieName = "sauid"; var cmCore_JSFParamEnabled = "cjen"; var cmCore_JSFParamUserID = "cjuid"; var cmCore_JSFParamSessionID = "cjsid"; var cmCore_JSFParamValidFlag = "cjvf"; var cmCore_JSFParamSpecCookiesCount = "cjscc"; var cmCore_JSFParamSpecCookiesNames = "cjscn"; var cmCore_JSFParamSpecCookiesValues = "cjscv"; var cmSpecCookieNames = ""; var cmSpecCookieValues = ""; var cmSpecCookiesCount = 0; if (!cG4) { var cG4 = 5000 } if (!cG5) { var cG5 = 200 } var cG2 = new Object(); var cG3 = new Object(); var cGM = navigator.appVersion; var cGN = navigator.userAgent; var cGS = cGN.indexOf("Opera") >= 0; var cGU = cGN.indexOf("Safari") >= 0; var cmT2 = -1; var cmT3 = -1; var cGC = ""; var cGD = ""; var cGE = ""; var cGF = ""; var cGG = ""; var cGH = ""; var cGI = ""; var cGJ = ""; var cGK = ""; var cGL = ""; var chost = null; var cci = null; CI(); for (var cmSpecCookieIndex = 0; cmSpecCookieIndex < cm_JSFSpecCookieNames.length; cmSpecCookieIndex++) { var currSpecCookieName = cm_JSFSpecCookieNames[cmSpecCookieIndex]; var currSpecCookieValue = cI(cm_JSFSpecCookieNames[cmSpecCookieIndex]); if (currSpecCookieValue == null) { continue } if (currSpecCookieValue.length == 0) { continue } cmSpecCookieNames = cmSpecCookieNames + (cmSpecCookieNames != "" ? "|" : "") + escape(currSpecCookieName); cmSpecCookieValues = cmSpecCookieValues + (cmSpecCookieValues != "" ? "|" : "") + escape(currSpecCookieValue); cmSpecCookiesCount++ } var dt = new Date(); var cmYearOffset = 0; if (dt.getFullYear) { cmYearOffset = dt.getFullYear() } else { cmYearOffset = dt.getYear(); if (cmYearOffset < 1900) { cmYearOffset += 1900 } } dt.setYear(cmYearOffset + 15); var cmCookieExpDate = dt.toGMTString(); if (cm_UseCookie) { var pi = cI("cmRS", "pi", ""); if (pi != "") { cmLastPageID = pi } chost = cm_HOST; cm_HOST = cI("cmRS", "ho", chost); cci = cm_ClientID; cm_ClientID = cI("cmRS", "ci", cci); var cT3 = cI("cmRS", "t3", ""); if (cT3 != "") { cGA = cT3 } var jsfpdata = cI("cmRS", "cjen", ""); if (jsfpdata != "") { cm_JSFEnabled = true } var cT1 = cI("cmRS", "t1", ""); if (cT1 != "" && (!cGA || cm_ClientTS - cGA < cGR)) { cmAddShared("st", cT1); var ul = cI("cmRS", "ul", ""); var rf = cI("cmRS", "rf", ""); var cT2 = cI("cmRS", "t2", ""); var cT4 = cI("cmRS", "t4", ""); if (cm_TrackTime) { cN(cT1, cT2, cT3, cT4, true, pi) } var hr = cI("cmRS", "hr", ""); if (hr != "") { var ti = cI("cmRS", "lti", ""); if (cm_ClientTS - ti < cGR) { var nm = cI("cmRS", "ln", ""); cM(cT1, ti, nm, hr, true, pi, ul, rf) } } var cV6 = cI("cmRS", "ac", ""); var cV7 = cI("cmRS", "fd", ""); if ((cV6 != "") || (cV7 != "")) { var ti = cI("cmRS", "fti", ""); if (cm_ClientTS - ti < cGR) { var cV9 = cI("cmRS", "fn", ""); var cV0 = cI("cmRS", "fu", ""); cL(cT1, ti, cV9, cV6, cV0, cV7, true, pi, ul, rf) } } var cError = unescape(cI("cmRS", "uer", "")); CH(cT1, cT3, cError, true, pi) } CC("cmRS") } if (!cGS && (cF(4) || CD(5))) { this.onload = cK(this, "onload", this.onload, "cY(e)", cY); this.onunload = cK(this, "onunload", this.onunload, "cZ(e)", cZ); if (cm_DelayHandlerReg.indexOf("L") == -1) { window.cX("main") } if (cm_DelayHandlerReg.indexOf("F") == -1) { cU() } } CJ(1); if (cm_OffsiteImpressionsEnabled) { var cm_Avid = cI("CMAVID"); if (cm_Avid == null) { document.write("<script src='" + C8(null) + "//" + cm_AvidHost + "' language='javascript1.1' type='text/javascript'><\/script>"); var cm_AvidLoadTimer = setTimeout("cm_AvidLoadTimedOut=true", 2000) } } if (chost) { cm_HOST = chost } if (cci) { cm_ClientID = cci } } var cI = cI; var cE = cE; function cmStartTagSet() { if (cG8) { return } cG8 = new Array(); cG8[0] = new _cm(); cG8Index = 1 } function cmAddShared(a, b) { if (cG8) { cG8[0][a] = b } } function cmSendTagSet() { var b; var a = cG8; while ((b = C7(arguments[0])) != null) { c9(b, a[0].ci) } cG8 = null } function CQ(c, b, a) { this.pl = c; this.hosts = b.split(","); if (a) { this.qs = a } this.cM5 = CR } function CR() { var b = arguments; var c = b[0] ? b[0] : this.hosts[0]; return this.pl + "//" + c + (this.qs ? this.qs : "") } function _cG7() { this.cM0 = new Object(); this.uls = new Object(); this.rfs = new Object(); this.cTI = new Array(); this.cPE = 0; this.normalizeURL = c2; this.getPageID = c1; this.getPluginPageID = cmGetPluginPageID } function cmGetPluginPageID(a) { splitClientIDs = cm_ClientID.split(";"); finalClientID = a; for (var b = 0; b < splitClientIDs.length; b++) { if (splitClientIDs[b] == a) { finalClientID = cm_ClientID; break } } return this.getPageID(finalClientID) } function c1(a) { var b = cG7.cM0[a]; return b ? b : "" } function CS(a) { var b = cG7.uls[a]; if (!b) { b = window.location.href } return b ? b : "" } function CT(b) { var a = cG7.rfs[b]; if (!a) { a = cG6.referrer } return a ? a : "" } function CP(e) { var d = cGT; if (!d) { d = cGT = cG7.normalizeURL(window.location.href, false) } var c = e.indexOf("#"); if (c >= 0 && c <= d.length) { var b = d.indexOf("#"); if (b < 0) { b = d.length } if (e.substring(0, c) == d.substring(0, b)) { return e.substring(c) } } return e } function c2(b, a) { if (a) { b = CP(b); var c = window.location.protocol + "//" + window.location.host; if (b.indexOf(c) == 0) { b = b.substring(c.length) } } return cD(b) } function c4() { for (var a in cmUA) { if (cGM.indexOf(a) != -1) { return cmUA[a] } } return cmDefaultLimit } function C0(a) { if (cG7) { if (cG7.cTI && cG7.cTI[a]) { cG7.cTI[a].cmLD = true; if (cG7.cTI[a].ci) { cmJSFSetValidFlagValue(cmValidFlag_SessionContinue, false, cG7.cTI[a].ci); cmJSFSetSessionCookies(false, cG7.cTI[a].ci) } } cG7.cPE--; if (cG7.onResponse) { cG7.onResponse(a) } } dontExit = false } function CN(b) { if (cG7) { cG7.cPE--; var a = null; if (cG7.cTI && cG7.cTI[b]) { a = cG7.cTI[b]; a.cmLD = true } if (cG7.onError && (!a || !a.cmTO)) { cG7.onError(3, a) } } } function c6(a, b) { if (cG3) { cG3[a] = true } C0(b) } function CO(b) { if (cG7 && cG7.cTI && cG7.cTI[b] && !(cG7.cTI[b].cmLD)) { var a = cG7.cTI[b]; a.cmTO = a.src; a.src = ""; if (cG7.onError) { cG7.onError(4, a.cmTO) } } } function c8(a) { if (!cG3 || cG3[a]) { return true } var b = new Date(); if ((b.getTime() - cG2[a]) > cG4) { return true } return false } function CV(g, c, f) { if (!f) { f = cm_ClientID } if ((!cG2[g] || c8(g)) && (cm_OffsiteImpressionsEnabled == false || cm_Avid != null || cm_AvidLoadTimedOut)) { var a = new Image(); var d = cG1; cG7.cTI[cG1++] = a; if (!cG2[g]) { var e = new Date(); cG2[g] = e.getTime(); a.onload = new Function("if(c6)c6('" + g + "'," + d + ");") } else { a.onload = new Function("if(C0)C0(" + d + ");") } a.onerror = new Function("if(CN)CN(" + d + ");"); if (cm_OffsiteImpressionsEnabled && cm_Avid != null) { c += "&avid=" + cm_Avid } var b = c4(); if (c.length > b) { c = c.substring(0, b - 6) + "&err=O" } if (cG7.onTagSent) { cG7.onTagSent(c, d) } a.src = c; a.ci = f; setTimeout("if(CO)CO(" + d + ");", cm_TimeoutSecs * 1000) } else { setTimeout('if(CV)CV("' + g + '","' + c + '","' + f + '");', cG5) } } function c9(a, c) { if (cI("CMDisabled")) { return } for (var d in a.hosts) { var b = a.cM5(a.hosts[d]); cG7.cPE++; CV(a.hosts[d], b, c) } } function cC() { if (!this.ul) { if (this.tid == "8" || (this.tid == "9" || this.tid == "10")) { this.ul = window.location.protocol + "//" + window.location.hostname } else { this.ul = window.location.href } } if (cG8) { cG8[cG8Index++] = this } else { var a = this.getImgSrc(arguments[0], 1); c9(a, this.ci); return a } } function C4(c, d, a) { if (!a) { if (!c.rf) { if (!document.referrer) { d.rf = "" } else { d.rf = document.referrer } } else { if (c != d) { d.rf = c.rf } } if (!c.ul || c.ul == "" || c.ul == "(none)") { d.ul = window.location.href } else { if (c != d) { d.ul = c.ul } } var b = cG7.normalizeURL(d.ul, false); if (b != "") { d.ul = b } } } function C5(b, a) { if (cm_FirstPartyDetect && !a) { if (cI("cmRS") || cI("TestSess")) { b.ts = "Y" } else { CB("TestSess", "Y"); b.ts = cI("TestSess") } b.tp = cI("TestPerm"); if (b.tp != "Y") { dt.setHours(dt.getHours() + 5); CB("TestPerm", "Y", dt.toGMTString()); b.tp = cI("TestPerm") } } } function C6(b, g, e) { var a = ""; if (b.tid) { a += "tid=" + b.tid } var d = (b.tid == 1 || (b.pc && b.pc.charAt(0) == "Y")); if (!b.lp && d) { b.lp = cmLastPageID } for (var c in b) { if (!b[c] || b[c] == "" || b[c].constructor == Function || c == "qs" || c == "tid") { continue } if (g && g[c] == b[c]) { continue } if (a != "") { a += "&" } a += cD(c) + "=" + cE(cD(b[c])) } if (!b.rs && b.ci) { if (b.pi && d) { cG7.cM0[b.ci] = b.pi } if (b.ul) { cG7.uls[b.ci] = b.ul } if (b.rf) { cG7.rfs[b.ci] = b.rf } } if (g && cm_SecureTags.indexOf("|" + b.tid + "|") != -1) { g.protocol = "https:" } if (cm_JSFEnabled && !e) { cmJSFSetSessionCookies(false, b.ci); a += (a != "" ? "&" : "") + cmCore_JSFParamEnabled + "=1"; var f = cI(cm_JSFCoreCookieName); a += "&" + cmCore_JSFParamUserID + "=" + (f != null ? f : ""); a += "&" + cmCore_JSFParamSessionID + "=" + cmJSFGetSessionValue(b.ci); if (cmSpecCookiesCount > 0) { a += "&" + cmCore_JSFParamSpecCookiesCount + "=" + cmSpecCookiesCount; a += "&" + cmCore_JSFParamSpecCookiesNames + "=" + cmSpecCookieNames; a += "&" + cmCore_JSFParamSpecCookiesValues + "=" + cmSpecCookieValues } a += "&" + cmCore_JSFParamValidFlag + "=" + cmJSFGetValidFlagValue(b.ci) } return a } function C8(b) { var a = location.protocol; if (b && b.protocol) { a = b.protocol } if (a != "http:" && a != "https:") { a = "http:" } return a } function c0() { var c = arguments; C4(this, this, c[0]); C5(this, c[0]); var e = new Object(); var b = C6(this, e); var d = new CQ(C8(e), cm_HOST, b); return c[1] ? d : d.cM5() } function C7() { var g, f, b, q, e, c, n, d, k, o; if (!cG8 || cG8.length < 2) { return null } g = cG8[0]; f = cG8[1]; g.ci = f.ci; for (k = 2; k < cG8.length; k++) { if (g.ci.indexOf(cG8[k].ci) == -1) { g.ci += ";" + cG8[k].ci } } for (k = 0; k < cG0.length; k++) { b = cG0[k]; if (!g[b]) { g[b] = f[b] } } q = arguments; C4(f, g, q[0]); C5(g, q[0]); e = C8(g); img = new CQ(e, cm_HOST); img.qs = C6(g); c = c4(); n = 0; for (var m = 0; m < img.hosts.length; m++) { d = e.length + img.hosts[m].length + img.qs.length; if (d > n) { n = d } } for (k = 1; k < cG8.length; k++) { o = C6(cG8[k], g, true); if (k > 1 && n + o.length + 1 > c) { for (j = 1; j < cG8.length - k + 1; j++) { cG8[j] = cG8[j + k - 1] } cG8.length = cG8.length - k + 1; break } n += o.length + 1; img.qs += "&" + o } if (k == cG8.length) { cG8 = null } return img } function _cm() { var d, b = arguments; this.ci = cm_ClientID; for (d = 0; d < b.length; d++) { this[b[d]] = b[++d] } this.write = cC; this.getImgSrc = c0; this.writeImg = cC; this.st = cm_ClientTS; this.vn1 = "4.2.5"; if (cF(5.5) || !cF(0)) { var c = (cm_UseUTF8 && encodeURIComponent) || cGU ? "utf-8" : cG6.charset; if (!c) { c = cG6.defaultCharset } if (!c) { c = cG6.characterSet } this.ec = c } } function cD(a) { var b = ""; a = b + (!a ? "" : a); return a.split("'").join(b).split('"').join(b).split("\r").join(b).split("\n").join(b) } function cE(d) { var c = 0, b; while (d.charAt(c) == " " && c != d.length) { c++ } b = d.length - 1; while (d.charAt(b) == " " && b != 0) { b-- } d = d.substring(c, b + 1); if (cm_UseUTF8 && encodeURIComponent) { d = encodeURIComponent(d) } else { d = preEscape(d); d = escape(d); var a = new RegExp("%25u00", "g"); d = d.replace(a, "%u00") } d = d.split("+").join("%2B"); return d } function preEscape(b) { for (var a = 160; a < 256; a++) { var c = new RegExp(String.fromCharCode(a), "g"); b = b.replace(c, "%u00" + a.toString(16)) } return b } function cF(a) { var b = cGM.indexOf("MSIE"); if (b != -1) { return (parseFloat(cGM.substring(b + 5)) >= a) } return false } function CD(a) { return (cGN.indexOf("Gecko") != -1 && parseInt(cGM) >= a) } function cI(a, e, c) { var b = cG6.cookie; var d = cJ(a, b, ";"); if (!e || !d) { if (!d && c != null) { return c } return d } d = cJ(e, d, "&"); if (!d && c != null) { return c } return unescape(d) } function CL() { var e, a, b, d, f = 0; a = cG6.cookie; if (a) { e = a.split(";"); f = e.length; for (d = 0; d < e.length; d++) { b = e[d].split("="); if (b.length < 2 || b[1] == null || b[1] == "") { f-- } } } return f } function CB(c, h, e, b) { var g, a, f, d = cG6.cookie; g = null; a = h.length + 1; if (!cI(c)) { a += c.length } if (a > 4096) { g = 1 } else { if (d) { if (CL() >= 50) { g = 2 } } } if (g) { if (cG7.onError) { cG7.onError(g, name) } return false } f = c + "=" + h + ";path=/"; if (b) { f += ";domain=" + b } if (e) { f += ";expires=" + e } cG6.cookie = f; return true } function cmSetSubCookie(n, h, k, g, f) { var d = cI(n); var c; if (!d) { c = h + "=" + k } else { var m = "&"; var l = h + "="; var b = d.indexOf(l); if (b >= 0) { if (b > 0 && d.charAt(b - 1) != m) { b = d.indexOf(m + l); if (b >= 0) { b++ } } } if (b >= 0) { var a = b + h.length + 1; var e = d.indexOf(m, a); if (e < 0) { e = d.length } c = d.substring(0, a) + k + d.substring(e) } else { c = d + m + h + "=" + k } } CB(n, c, g, f) } function CC(a, c) { var b = cI(a); if (b != null) { var d = new Date(); d.setYear(1973); var b = a + "=;path=/;expires=" + d.toGMTString(); if (c) { b += ";domain=" + c } cG6.cookie = b } return b } function cJ(a, g, c) { var f, d, h, b, e = null; f = a + "="; d = c + " "; h = g.indexOf(d + f); if (h == -1) { d = c; h = g.indexOf(d + f) } if (h == -1) { h = g.indexOf(f); if (h != 0) { return null } } else { h += d.length } b = g.indexOf(d, h); if (b == -1) { b = g.length } return g.substring(h + f.length, b) } function cK(a, e, c, b, h) { if (c) { var g = c.toString(); if (g.indexOf(b) == -1) { if (cGU && g.indexOf("function (") == 0) { if (e == "onload") { b = g.substring(g.indexOf("{"), g.length) + ";" + b + ";" } else { b = b + ";" + g.substring(g.indexOf("{"), g.length) } } else { a["_c_" + e] = c; if (e == "onload") { b = "if(!e)var e=null;var ret=this._c_" + e + "(" + (cF(5) ? "" : "e") + ");" + b + ";return ret;" } else { b = "if(!e)var e=null;" + b + ";return this._c_" + e + "(" + (cF(5) ? "" : "e") + ");" } } if (e == "onsubmit") { a.cmFunction1 = cP; a.cmFunction2 = a.onsubmit; return cmAlternateOnSubmit } else { var d = new Function("e", b); return d } } else { return c } } else { if (e == "onsubmit") { a.cmFunction1 = cP; return cmAlternateOnSubmit } else { return h } } } function cmAlternateOnSubmit(a) { a = CG(a); if (!a) { if (document.cmPostbackForm) { a = document.cmPostbackForm } else { if (this.cmFunction1) { a = this } else { return true } } } else { if (a) { if (a.form) { a = a.form } } else { return true } } if (a.cM1 >= 0) { CI(); cO(a ? a.cM1 : -1, "S"); CA(1); CJ(1); CE() } if (a.cmFunction2) { return a.cmFunction2() } else { return true } } function CG(a) { var a; if (cF(4)) { if (window.event) { a = window.event.srcElement } } else { if (a) { if (CD(5)) { a = a.currentTarget } else { a = a.target } } } return a } function CU(a, e, g, b, f) { var d, c; a.pi = g ? g : c1(e); if (cGQ) { if (b || f) { a.ul = b ? b : ""; a.rf = f ? f : "" } else { d = CS(e); c = CT(e); if (a.pi == "" || d.indexOf("cm_") > 0 || (c != "" && c.indexOf(window.location.protocol + "//" + window.location.host) != 0)) { a.ul = d; a.rf = c } } } } function cL(h, e, c, l, a, k, g, f, d, b) { var m = new _cm("tid", "10"); CU(m, m.ci, f, d, b); m.st = h; m.ti = e; m.fo = c; m.ac = l; m.hr = a; m.fi = k; if (g) { m.rs = "Y" } m.write(1) } function cM(d, a, m, k, g, c, e, b) { var n = new _cm("tid", "8"); CU(n, n.ci, c, e, b); n.st = d; n.ti = a; n.nm = m; n.hr = k; var l = k.indexOf("cm_cr="); var h = k.indexOf("cm_me="); if (l > -1) { var f = k.indexOf("&", l); if (f == -1) { n.cm_cr = k.substring(l + 6) } else { n.cm_cr = k.substring(l + 6, f) } } if (h > -1) { var f = k.indexOf("&", h); if (f == -1) { n.cm_me = k.substring(h + 6) } else { n.cm_me = k.substring(h + 6, f) } } if (g) { n.rs = "Y" } n.write(1) } function cN(e, d, b, c, g, f) { var a = new _cm("tid", "11"); a.pi = f ? f : c1(a.ci); a.st = e; a.lc = d; a.lx = c; a.cx = b; if (g) { a.rs = "Y" } a.write(1) } function CM(d) { var f, b, c, e; if ((f = d.indexOf("?")) == -1) { f = d.lastIndexOf("/") } if (f != -1) { b = d.indexOf("#", f); if (b == -1) { b = d.length } while (f != -1 && f < b) { f = d.indexOf("cm_", f); if (f != -1) { c = d.indexOf("&", f); if (c == -1) { c = b } e = d.indexOf("=", f); if (e != -1 && e < c) { this[d.substring(f, e)] = d.substring(e + 1, c) } f = c } } } } function CK(a, g, f, e, d) { var l, b, c, m, h, k; if ((g || f) && a) { l = new _cm("tid", "9"); b = new CM(CP(a)); if (g) { c = l.cm_sp_o = b.cm_sp_o; if (!c) { c = l.cm_sp = b.cm_sp } } if (f) { m = l.cm_re_o = b.cm_re_o; if (!m) { m = l.cm_re = b.cm_re } } if (e) { if (a.indexOf("#") == -1) { h = l.cm_cr = b.cm_cr } } if (d) { k = l.cm_me = b.cm_me } if (c || m || h || k) { l.pi = c1(l.ci); l.st = cm_ClientTS; l.write(1) } } } function CH(d, c, f, b, e) { if (f != cGL) { var a = new _cm("tid", "12"); a.pi = e ? e : c1(a.ci); a.st = d; a.ti = c; if (b) { a.rs = "Y" } a.er = f; a.write(1); cGL = cm_FormError } } function cO(c, e) { var d, b = ""; e = c + ":" + e; if (c != -1) { var a = cG6.forms[c]; if (cF(5)) { b = a.attributes.action.nodeValue } else { if (a.attributes.getNamedItem) { b = a.attributes.getNamedItem("action"); if (b) { b = b.value } } else { b = a.action } } if (!b) { b = "" } } if (cV(b)) { d = new Date(); cGH = d.getTime(); cGF = e; cGE = cG7.normalizeURL(b, true); cL(cm_ClientTS, cGH, cGD, cGF, cGE, cGC, false); cGG = cGC; cGC = "" } else { cGF = "" } } function cP(a) { CI(); var a = CG(a); cO(a ? a.cM1 : -1, "S"); CA(1); CJ(1); CE() } function cQ(a) { var a = CG(a); if (a) { cO(a.cM1, "R") } } function cR(a) { var a = CG(a); if (a) { a.cM3 = "xyzzy" } } function cS(a) { var a = CG(a); if (a) { a.cM3 = a.value } } function cT(b) { var b = CG(b); if (b && (b.type != "submit") && (b.type != "reset")) { if (b.value != b.cM3) { var c = b.name; if (!c) { c = b.id } var a = cGC + b.cM1 + ":" + b.cM2 + ":" + c.split(":").join("|").split(";").join("|") + ";"; if (a.length < 1000) { cGC = a } } } } function CF(a) { var a = CG(a); if (a) { cGC = cGC + a.cM1 + ":" + a.cM2 + ":" + a.name + ";" } } function cU() { if (cm_SkipHandlerReg.indexOf("F") == -1) { var c, d, b, a, f; for (c = 0; c < cG6.forms.length; c++) { d = cG6.forms[c]; if (d.cM1 == null) { d.cM1 = c; if (cF(5)) { b = d.attributes.name.nodeValue } else { if (d.attributes.getNamedItem) { b = d.attributes.getNamedItem("name"); if (b) { b = b.value } } else { b = d.name } } if (!b) { b = "" } cGD = cGD + b + ":" + c + ";"; d.onsubmit = cK(d, "onsubmit", d.onsubmit, "cP(e)", cP); d.onreset = cK(d, "onreset", d.onreset, "cQ(e)", cQ); for (a = 0; a < d.elements.length; a++) { f = d.elements[a]; f.cM1 = c; f.cM2 = a; f.cM3 = ""; f.onfocus = cK(f, "onfocus", f.onfocus, "cS(e)", cS); f.onblur = cK(f, "onblur", f.onblur, "cT(e)", cT); f.onchange = cK(f, "onchange", f.onchange, "cR(e)", cR); if (f.type == "submit" || f.type == "button") { f.onclick = cK(f, "onclick", f.onclick, "CF(e)", CF) } } } } } } function cV(b) { if (cm_TrackLink == true || cm_TrackLink == "A") { return true } else { if (cm_TrackLink == "E" && b.indexOf("/") != 0) { return true } var f; if ((f = cm_DownloadExtensions) != null) { var d = b.lastIndexOf("."); if (d != -1) { var a = b.substring(d); for (var c = 0; c < f.length; c++) { if (a == f[c]) { return true } } } } return false } } function cW(a) { CI(); var a = CG(a); if (a) { C9(a) } CA(1); CJ(1); CE() } function C9(d) { cGI = ""; cGJ = ""; cGK = ""; var a = d.tagName.toUpperCase(); if (a == "AREA") { cGJ = d.href ? d.href : ""; var c = d.parentElement ? d.parentElement : d.parentNode; if (c != null) { cGI = c.name ? c.name : "" } } else { while (a != "A" && a != "HTML") { if (!d.parentElement) { d = d.parentNode } else { d = d.parentElement } if (d) { a = d.tagName.toUpperCase() } } if (a == "A") { cGJ = d.href ? d.href : ""; cGI = d.name ? d.name : "" } } var g = d.getAttribute("manual_cm_re"); if (g) { cGJ = cGJ + ((cGJ.indexOf("?") > -1) ? "&" : "?") + "cm_re=" + g } var f = d.getAttribute("manual_cm_sp"); if (f) { cGJ = cGJ + ((cGJ.indexOf("?") > -1) ? "&" : "?") + "cm_sp=" + f } cGJ = cG7.normalizeURL(cGJ, true); if (cV(cGJ) == true) { var b = new Date(); cGK = b.getTime(); cM(cm_ClientTS, cGK, cGI, cGJ, false) } else { cGJ = "" } } function cX(c) { CI(); var h, k, a, g, f, e, d; a = cm_TrackImpressions; g = (a.indexOf("S") != -1); f = (a.indexOf("R") != -1); e = (a.indexOf("C") != -1); d = (a.indexOf("C") != -1); for (h = 0; h < cG6.links.length; h++) { k = cG6.links[h]; if (cm_SkipHandlerReg.indexOf("L") == -1) { if (!CD(5)) { k.onclick = cK(k, "onclick", k.onclick, "cW(e)", cW) } else { if (!k.cM4) { k.addEventListener("click", cW, false); k.cM4 = 1 } } } if (c == "onload") { var b = k.href; if (k.getAttribute("manual_cm_re")) { if (k.href.indexOf("?") > -1) { b = b + "&cm_re=" + k.getAttribute("manual_cm_re") } else { b = b + "?cm_re=" + k.getAttribute("manual_cm_re") } } if (k.getAttribute("manual_cm_sp")) { if (k.href.indexOf("?") > -1) { b = b + "&cm_sp=" + k.getAttribute("manual_cm_sp") } else { b = b + "?cm_sp=" + k.getAttribute("manual_cm_sp") } } if (!k.cmImpressionSent) { CK(b, g, f, e, d); k.cmImpressionSent = 1 } } } CJ(1) } function cY(b) { var a = new Date(); cmT2 = a.getTime(); CH(cm_ClientTS, cmT2, cm_FormError, false); if (!cGS && (cF(4) || CD(5))) { window.cX("onload"); cU() } cGB = null } function cZ(g) { cG3 = null; CI(); var a = false; if (cGC != "") { cO(-1, "U"); a = true } CA(0); CH(cm_ClientTS, cmT3, cm_FormError, false); CJ(1); if (a) { dontExit = true; var d = new Date(); var c = new Date(); for (; dontExit && (c - d < 1000); ) { c = new Date() } } CE(); if (cm_UseCookie && cG7.cPE == 0) { var f = escape(c1(cm_ClientID)); CB("cmRS", "t3=" + cmT3 + "&pi=" + f) } if (cG7.onUnload) { cG7.onUnload() } if (cF(5) && !cF(5.5) && window.parent != window) { cG7.cTI = null } else { if (!cGU) { for (var b = 0; b < cG7.cTI.length; b++) { cG7.cTI[b].onload = null; cG7.cTI[b].onerror = null } } } } function CA(c) { var b = new Date(); var a = b.getTime(); if (cm_TrackTime && (cmT3 == -1 || c == 1 || (a - cmT3) > 10000)) { cN(cm_ClientTS, cmT2, a, cGA, false) } cmT3 = a } function CE() { if (cm_UseCookie) { var b, a, f, d, c = ""; b = cGA ? "&t4=" + cGA : ""; a = (cGJ != "") ? "&lti=" + cGK + "&ln=" + escape(cGI) + "&hr=" + escape(cGJ) : ""; f = new Object(); CU(f, cm_ClientID); var e = ""; if (cm_JSFEnabled) { e = "&cjen=1" } d = "&t1=" + cm_ClientTS + "&t2=" + cmT2 + "&t3=" + cmT3 + b + a + "&fti=" + cGH + "&fn=" + escape(cGD) + "&ac=" + cGF + "&fd=" + escape(cGG) + "&uer=" + escape(cm_FormError) + "&fu=" + escape(cGE) + "&pi=" + escape(f.pi) + "&ho=" + escape(cm_HOST) + "&ci=" + escape(cm_ClientID); if (f.ul && f.rf && f.ul.length + f.rf.length < cGO) { c = "&ul=" + escape(f.ul) + "&rf=" + escape(f.rf) } if (!CB("cmRS", d + c + e)) { if (!CB("cmRS", d + e)) { CB("cmRS", "t3=" + cmT3 + "&pi=" + escape(f.pi) + e) } } } } function cmSetAvid(a) { clearTimeout(cm_AvidLoadTimer); if (a) { cm_Avid = a; CB("CMAVID", cm_Avid) } cm_AvidLoadTimedOut = false } function cmJSFConvertSAtoCM(d) { var b = d.length; var c = 22; var a = 23; if (b < 19) { return null } if (d.charAt(0) != "U" && d.charAt(0) != "u") { return null } if (b < c) { d = d + d.substring(b - (c - b), b) } var e = "99"; e = e + d.substring(1, a - 1); return e } function cmJSFSetSessionCookies(c, b) { if (!cm_JSFEnabled) { return } var a = b.split(";"); for (var d = 0; d < a.length; d++) { cmJSFSetSingleSessionCookie(c, a[d]) } } function debugReadCookie(b) { var e = b + "="; var a = document.cookie.split(";"); for (var d = 0; d < a.length; d++) { var f = a[d]; while (f.charAt(0) == " ") { f = f.substring(1, f.length) } if (f.indexOf(e) == 0) { return f.substring(e.length, f.length) } } return null } function cmJSFSetSingleSessionCookie(h, k, g) { if (!cm_JSFEnabled) { return } if (cI(cm_JSFCoreCookieName) == null) { if (!cmJSFDoMigrateCookies()) { CB(cm_JSFCoreCookieName, cmJSFCreateUserId(), cmCookieExpDate, cm_JSFPCookieDomain) } if (!g) { cmJSFSetSingleSessionCookie(true, k, true) } cmJSFSetValidFlagSingleValue(cmValidFlag_NewSession, false, k); cmJSFSetValidFlagSingleValue(cmValidFlag_NewVisitor, true, k); return } var f = (cmJSFGetSessionLoginCookieValue(k) != null); if (!f) { if (cmJSFCombineSessionCookies(k)) { f = (cmJSFGetSessionLoginCookieValue(k) != null) } } if (!f && !h) { if (!g) { cmJSFSetSingleSessionCookie(true, k, true) } cmJSFSetValidFlagSingleValue(cmValidFlag_NewSession, true, k); return } var a = new Date(); var e = a.getTime(); var d = e + cm_JSFSessionTimeout * 1000; var c = cmJSFIsSessionExpired(cmJSFGetSessionExpireCookieValue(k)); if ((h != null && h == true) || c) { var b = e.toString(); if (b.length < 10) { while (b.length < 10) { b = "0" + b } } else { b = b.substring(0, 10) } cmJSFSetSessionLoginCookieValue(k, b); if (c) { cmJSFSetValidFlagSingleValue(cmValidFlag_SessionReset, true, k) } else { cmJSFSetValidFlagSingleValue(cmValidFlag_NewSession, true, k) } if (cm_JSFSessionType == "T") { cmJSFSetSessionExpiresCookieValue(k, d.toString()) } } if (cm_JSFSessionType == "I") { cmJSFSetSessionExpiresCookieValue(k, d.toString()) } } function cmJSFIsSessionExpired(a) { if (a == null) { return false } var b = new Date(); if (b.getTime() > a) { return true } else { return false } } function cmJSFCreateUserId() { var c = new Date(); var b = Math.random(); if (b == 0) { b = Math.random() } var f = Math.random(); if (f == 0) { f = Math.random() } var e = b.toString().substring(2, 4) + f.toString().substring(2, 12) + c.getTime().toString(); var a = e.length; var d = 23; if (a < d) { e = e + e.substring(a - (d - a), a) } if (a > d) { e = e.substring(0, d) } return e } function cmJSFSetValidFlagValue(d, c, b) { if (!cm_JSFEnabled) { return } var a = b.split(";"); for (var e = 0; e < a.length; e++) { cmJSFSetValidFlagSingleValue(d, c, a[e]) } } function cmJSFSetValidFlagSingleValue(d, b, a) { var f = null; var e = cmJSFGetSessionValidFlagCookieValue(a); if (e) { var c = parseInt(e); if (!isNaN(c)) { f = c } } if (f == null) { f = cmValidFlag_SessionContinue } if (b) { if (d == cmValidFlag_NewSession) { f &= ~cmValidFlag_SessionReset } if (d == cmValidFlag_SessionReset) { f &= ~cmValidFlag_NewSession } f |= d } else { f = d } f |= cmValidFlag_SessionContinue; cmJSFSetSessionValidFlagCookieValue(a, f) } function cmJSFCreateCombinedSessionCookieName(a) { return a + "_clogin" } function cmJSFCombineSessionCookies(d) { var b = cI(d + "_login"); var c = cI(d + "_expires"); var a = cI(d + "_valid"); if (b != null && c != null & a != null) { var e = "l=" + b + "&e=" + c + "&v=" + a; CB(cmJSFCreateCombinedSessionCookieName(d), e, null, cm_JSFPCookieDomain); CC(d + "_login", cm_JSFPCookieDomain); CC(d + "_expires", cm_JSFPCookieDomain); CC(d + "_valid", cm_JSFPCookieDomain); return true } return false } function cmJSFSetSessionLoginCookieValue(a, b) { cmSetSubCookie(cmJSFCreateCombinedSessionCookieName(a), "l", b, null, cm_JSFPCookieDomain) } function cmJSFSetSessionExpiresCookieValue(a, b) { cmSetSubCookie(cmJSFCreateCombinedSessionCookieName(a), "e", b, null, cm_JSFPCookieDomain) } function cmJSFSetSessionValidFlagCookieValue(a, b) { cmSetSubCookie(cmJSFCreateCombinedSessionCookieName(a), "v", b, null, cm_JSFPCookieDomain) } function cmJSFGetSessionLoginCookieValue(a) { return cI(cmJSFCreateCombinedSessionCookieName(a), "l") } function cmJSFGetSessionExpireCookieValue(a) { return cI(cmJSFCreateCombinedSessionCookieName(a), "e") } function cmJSFGetSessionValidFlagCookieValue(a) { return cI(cmJSFCreateCombinedSessionCookieName(a), "v") } function cmJSFGetSessionValue(f) { var e = ""; var d = ""; var c = f.split(";"); for (var g = 0; g < c.length; g++) { var b = c[g]; if (b == "") { continue } var a = cmJSFGetSessionLoginCookieValue(b); e += d + (a != null ? a : ""); if (d == "") { d = "|" } } return e } function cmJSFGetValidFlagValue(a) { var g = ""; var e = ""; var d = a.split(";"); for (var f = 0; f < d.length; f++) { var b = d[f]; if (b == "") { continue } var c = cmJSFGetSessionValidFlagCookieValue(b); g += e + (c != null ? c : ""); if (e == "") { e = "|" } } return g } function cmJSFDoMigrateCookies() { if (cm_JSFMigrationEnabled == cmMigrationFrom1p_SA) { if (cI(cm_JSFCoreCookieName) == null) { var a = cI(cmSACookieName); if (a) { a = cmJSFConvertSAtoCM(a); if (a != null) { CB(cm_JSFCoreCookieName, a, cmCookieExpDate, cm_JSFPCookieDomain); return true } } } } return false } _cm.prototype.addTP = function() { var b = new cmTP(new cmApp()); for (var a in b) { if (b[a] == null || b[a] == "" || b[a].toString().indexOf("function ") == 0) { continue } this[a] = cE(cD(b[a])) } return this }; function cmApp() { var e = navigator, a = e.appName, d = this; if (a == "Netscape") { d.b = "ns" } else { if (a == "Microsoft Internet Explorer") { d.b = "ie" } else { d.b = a } } d.v = parseInt(e.appVersion) } function cmTP(c) { var n = navigator, w = window.screen; this.jv = cmJv; if (c.b == "ns" && c.v >= 3) { for (var i = 0; i < n.plugins.length; i++) { eval("this.np" + i + "=n.plugins[" + i + "].name") } } if (c.v > 3) { if (c.v >= 4 && (c.b == "ns" || c.b == "ie")) { this.je = (n.javaEnabled() == true) ? "y" : "n" } if (c.b == "ie") { this.ce = n.cookieEnabled; this.cp = n.cpuClass } this.sw = w.width; this.sh = w.height; this.pd = w.colorDepth; if (this.pd == 0) { this.pd = w.pixelDepth } var fs = w.fontSmoothingEnabled; if (fs) { this.fs = fs ? "y" : "n" } } var tz = new Date(); if (tz.getTimezoneOffset() == 0) { this.tz = "0" } else { this.tz = tz.getTimezoneOffset() / 60 } } _cm.prototype.addTP = function() { var b = new cmTP(new cmApp()); for (var a in b) { if (b[a] == null || b[a] == "" || b[a].toString().indexOf("function ") == 0) { continue } this[a] = cE(cD(b[a])) } return this }; function cmApp() { var e = navigator, a = e.appName, d = this; if (a == "Netscape") { d.b = "ns" } else { if (a == "Microsoft Internet Explorer") { d.b = "ie" } else { d.b = a } } d.v = parseInt(e.appVersion) } function cmTP(c) { var n = navigator, w = window.screen; this.jv = cmJv; if (c.b == "ns" && c.v >= 3) { for (var i = 0; i < n.plugins.length; i++) { eval("this.np" + i + "=n.plugins[" + i + "].name") } } if (c.v > 3) { if (c.v >= 4 && (c.b == "ns" || c.b == "ie")) { this.je = (n.javaEnabled() == true) ? "y" : "n" } if (c.b == "ie") { this.ce = n.cookieEnabled; this.cp = n.cpuClass } this.sw = w.width; this.sh = w.height; this.pd = w.colorDepth; if (this.pd == 0) { this.pd = w.pixelDepth } var fs = w.fontSmoothingEnabled; if (fs) { this.fs = fs ? "y" : "n" } } var tz = new Date(); this.tz = tz.getTimezoneOffset() / 60 } var cm_exAttr = new Array; var cm_ClientID = "90081360"; var cm_TrackLink = "A"; var cm_TrackImpressions = ""; var cm_JSFEnabled = false; var cmJv = "1.0"; if (typeof (isNaN) == "function") { cmJv = "1.1" } if (typeof (isFinite) == "function") { cmJv = "1.2" } if (typeof (NaN) == "number") { cmJv = "1.3" } if (typeof (decodeURI) == "function") { cmJv = "1.5" } if (typeof (Array.forEach) == "function") { cmJv = "1.6" } if (typeof (Iterator) == "object") { cmJv = "1.7" } var cmCheckCMEMFlag = true; var cmUserAgentString = "0"; if (cGN.indexOf("Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; KTXN)") >= 0) { var cmUserAgentString = "1" } if (cGN.indexOf("Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; KTXN") >= 0) { var cmUserAgentString = "1" } function cmSetProduction() { cm_HOST = "www2.coldwatercreek.com/eluminate?" } function cmCreateManualImpressionTag(d, c, b) { var a = new _cm("tid", "9", "vn2", "e4.0"); a.pi = d; a.cm_sp = c; a.cm_re = b; a.st = cm_ClientTS; a.writeImg() } function cmCreateManualLinkClickTag(d, c, b) { if (a == null && cM != null) { var a = cM } if (a != null) { var e = new Date(); cmLnkT3 = e.getTime(); a(cm_ClientTS, cmLnkT3, c, d, false, b) } } function cmCreateManualPageviewTag(f, e, d, c, b) { var a = new _cm("tid", "1", "vn2", "e4.0"); a.pi = f; a.cg = e; a.ul = d; a.rf = c; if (b) { a.se = b } a.writeImg() } function cmCreateTechPropsTag(c, b) { if (c == null) { c = cmGetDefaultPageID() } var a = new _cm("tid", "6", "vn2", "e4.0"); a.pc = "Y"; a.pi = c; a.cg = b; a.ul = document.URL; if (parent.cm_ref != null) { a.rf = parent.cm_ref; parent.cm_ref = document.URL } if (parent.cm_set_mmc) { a.ul = document.location.href + ((document.location.href.indexOf("?") < 0) ? "?" : "&") + parent.cm_mmc_params; parent.cm_ref = a.ul; parent.cm_set_mmc = false } a.addTP(); if (cmUserAgentString == "0") { a.writeImg() } } function cmCreatePageviewTag(h, g, f, e, d, b, c, a, v, u, t, s, r, q, p, o, n, m, l) { if (h == null) { h = cmGetDefaultPageID() } var k = new _cm("tid", "1", "vn2", "e4.0"); k.pi = h; if (f) { k.se = f } k.sr = e; if (g) { k.cg = g } if (d) { k.pv1 = d } if (b) { k.pv2 = b } if (c) { k.pv3 = c } if (a) { k.pv4 = a } if (v) { k.pv5 = v } if (u) { k.pv6 = u } if (t) { k.pv7 = t } if (s) { k.pv8 = s } if (r) { k.pv9 = r } if (q) { k.pv10 = q } if (p) { k.pv11 = p } if (o) { k.pv12 = o } if (n) { k.pv13 = n } if (m) { k.pv14 = m } if (l) { k.pv15 = l } k.ul = document.URL; if (parent.cm_ref != null) { k.rf = parent.cm_ref; parent.cm_ref = document.URL } if (parent.cm_set_mmc) { k.ul = document.location.href + ((document.location.href.indexOf("?") < 0) ? "?" : "&") + parent.cm_mmc_params; parent.cm_ref = k.ul; parent.cm_set_mmc = false } if (cmUserAgentString == "0") { k.writeImg() } } function cmCreateDefaultPageviewTag(a) { cmCreatePageviewTag(cmGetDefaultPageID(), a, null) } function cmCreateProductviewTag(c, b, d) { var a = new _cm("tid", "5", "vn2", "e4.0"); if (b == null) { b = "" } if (parent.cm_ref != null) { a.rf = parent.cm_ref; parent.cm_ref = document.URL } a.ul = document.URL; if (parent.cm_set_mmc) { a.ul = document.location.href + ((document.location.href.indexOf("?") < 0) ? "?" : "&") + parent.cm_mmc_params; parent.cm_ref = a.ul; parent.cm_set_mmc = false } a.pr = c; a.pm = b; a.cg = d; a.pc = "N"; a.pi = "PRODUCT: " + b + " (" + c + ")"; if (cmUserAgentString == "0") { a.writeImg() } } function ThrowPageView(b, a) { cmCreatePageviewTag(b, a, null, null, null, null) } var cmShopProducts = new Array(); var cmShopIds = new Array(); var cmShopCats = new Array(); var cmShopQtys = new Array(); var cmShopPrices = new Array(); var cmShopCounter = 0; var cmShopOrderIds = new Array(); var cmShopCustomerIds = new Array(); var cmShopOrderPrices = new Array(); var cmDiscountedPrices = new Array(); var cmShopSKUs = ""; var cmBasketGUID = ""; function cmGetProductIndex(b) { var a = 0; for (a = 0; a < cmShopCounter; a++) { if (b == cmShopIds[a]) { return a } } return -1 } function cmCreateShopAction5Tag(p, o, n, m, k, g, e) { p = p.toUpperCase(); var c = cmGetProductIndex(p); if (c != -1) { var b = cmShopPrices[c]; var a = cmShopQtys[c]; var l = cmDiscountedPrices[c]; var h = a + parseInt(n); var f = (b * a + parseInt(n) * parseFloat(m)) / (h); var d = (l * a + parseInt(n) * parseFloat(g)) / (h); cmDiscountedPrices[c] = d; cmShopPrices[c] = f; cmShopQtys[c] = h } else { if (!k) { k = "" } cmShopProducts[cmShopCounter] = o; cmShopIds[cmShopCounter] = p; cmShopCats[cmShopCounter] = k; cmShopQtys[cmShopCounter] = parseInt(n); cmShopPrices[cmShopCounter] = parseFloat(m); cmDiscountedPrices[cmShopCounter] = parseFloat(g); cmShopCounter++ } if (e != null) { cmBasketGUID = e } cmShopSKUs = cmGetOSK() } function cmDisplayShop5s() { var b; for (b = 0; b < cmShopCounter; b++) { var a = new _cm("tid", "4", "vn2", "e4.0"); a.at = "5"; a.pr = cmShopIds[b]; a.pm = cmShopProducts[b]; a.cg = cmShopCats[b]; a.qt = cmShopQtys[b]; a.bp = cmShopPrices[b]; a.pc = "N"; a.sx1 = cmDiscountedPrices[b]; a.sx2 = cmBasketGUID; a.ul = document.URL; if (cmUserAgentString == "0") { a.writeImg() } } cmShopSKUs = cmGetOSK(); cmShopCounter = 0 } function cmCreateShopAction9Tag(s, r, q, p, n, l, h, f, d, a) { s = s.toUpperCase(); var o = cmGetProductIndex(s); if (o != -1) { var m = cmShopPrices[o]; var k = cmShopQtys[o]; var g = cmDiscountedPrices[o]; var e = k + parseInt(q); var c = (m * k + parseInt(q) * parseFloat(p)) / (e); var b = (g * k + parseInt(q) * parseFloat(d)) / (e); cmDiscountedPrices[o] = b; cmShopPrices[o] = c; cmShopQtys[o] = e } else { if (!f) { f = "" } cmShopProducts[cmShopCounter] = r; cmShopIds[cmShopCounter] = s; cmShopOrderIds[cmShopCounter] = l; cmShopOrderPrices[cmShopCounter] = h; cmShopCustomerIds[cmShopCounter] = n; cmShopCats[cmShopCounter] = f; cmShopQtys[cmShopCounter] = parseInt(q); cmShopPrices[cmShopCounter] = parseFloat(p); cmShopQtys[o] = e; cmDiscountedPrices[cmShopCounter] = parseFloat(d); cmShopCounter++ } if (a != null) { cmBasketGUID = a } cmShopSKUs = cmGetOSK() } function cmDisplayShop9s() { var b; for (b = 0; b < cmShopCounter; b++) { var a = new _cm("tid", "4", "vn2", "e4.0"); a.at = "9"; a.pr = cmShopIds[b]; a.pm = cmShopProducts[b]; a.cg = cmShopCats[b]; a.qt = cmShopQtys[b]; a.bp = cmShopPrices[b]; a.cd = cmShopCustomerIds[b]; a.on = cmShopOrderIds[b]; a.tr = cmShopOrderPrices[b]; a.sx1 = cmDiscountedPrices[b]; a.sx2 = cmBasketGUID; a.pc = "N"; a.ul = document.URL; if (cmUserAgentString == "0") { a.writeImg() } } cmShopSKUs = cmGetOSK(); cmShopCounter = 0 } function cmCreateOrderTag(h, g, f, e, d, b, a, k) { var c = new _cm("tid", "3", "vn2", "e4.0"); c.on = h; c.tr = g; c.osk = cmShopSKUs; c.sg = f; c.cd = e; c.sa = b; c.ct = d; c.zp = a; c.or1 = cmBasketGUID; c.ul = document.URL; if (cmUserAgentString == "0") { c.writeImg() } } function cmGetOSK() { var a = 0; var b = ""; for (a = 0; a < cmShopCounter; a++) { b += "|" + cmShopIds[a] + "|" + cmShopPrices[a] + "|" + cmShopQtys[a] + "|" } return b } function cmCreateRegistrationTag(h, f, g, e, d, c, b) { var a = new _cm("tid", "2", "vn2", "e4.0"); a.cd = h; a.em = f; a.sa = e; a.ct = g; a.zp = d; a.ul = document.URL; if (c && b) { a.nl = c; a.sd = b } if (cmUserAgentString == "0") { a.writeImg() } } function cmCreateErrorTag(c, b) { var a = new _cm("tid", "404", "vn2", "e4.0"); if (parent.cm_ref != null) { a.rf = parent.cm_ref; parent.cm_ref = document.URL } a.ul = document.URL; if (parent.cm_set_mmc) { a.ul = document.location.href + ((document.location.href.indexOf("?") < 0) ? "?" : "&") + parent.cm_mmc_params; parent.cm_ref = a.ul; parent.cm_set_mmc = false } a.pc = "Y"; if (c == null) { a.pi = cmGetDefaultPageID() } else { a.pi = c } a.cg = b; if (cmUserAgentString == "0") { a.writeImg() } } function cmGetDefaultPageID() { var a = window.location.pathname; if (a.toLowerCase().match("cwc.aspx") == "cwc.aspx") { a = "cwc.aspx?provider=" + getQueryStringVal("provider") } else { var e = a.indexOf("?"); if (e != -1) { a = a.substr(0, e) } var d = a.indexOf("#"); if (d != -1) { a = a.substr(0, d) } var c = a.indexOf(";"); if (c != -1) { a = a.substr(0, c) } var b = a.lastIndexOf("/"); if (b == a.length - 1) { a = a + "default.aspx" } while (a.indexOf("/") == 0) { a = a.substr(1, a.length) } } return (a) } function getQueryStringVal(d) { var c = unescape(location.search.substr(1)).split("&"); for (var b = 0; b < c.length; b++) { var a = c[b].split("="); if (a[0].toLowerCase() == d.toLowerCase()) { return a[1] } } return "" } if (defaultNormalize == null) { var defaultNormalize = null } function myNormalizeURL(a, c) { var b = a; if (defaultNormalize != null) { b = defaultNormalize(b, c) } return b } if (document.cmTagCtl != null) { var func = "" + document.cmTagCtl.normalizeURL; if (func.indexOf("myNormalizeURL") == -1) { defaultNormalize = document.cmTagCtl.normalizeURL; document.cmTagCtl.normalizeURL = myNormalizeURL } } var isAOL = (navigator.userAgent.search(/ AOL/) > 5); var isIE = (!isAOL && navigator.userAgent.search(/MSIE/i) > 5); var isMAC = (navigator.userAgent.search(/MAC/i) >= 5); var isNS4 = (!isIE && navigator.userAgent.search(/MOZILLA\/4\./i) >= 0); var isNS6 = (navigator.userAgent.search(/NETSCAPE/i) > 5 || navigator.userAgent.search(/MOZILLA\/5\./i) >= 0); var isFramed = (window != top); var searchMessage = "search by keyword or item#"; var popup = null; function openWin(f, d, e, a) { if (popup) { if (!popup.closed) { popup.close() } } popup = null; var c = ((screen.height / 2) - (e / 2)) / 2; var b = ((screen.width / 2) - (d / 2)) / 2; if (a != null) { if (a.substring(0, 1) != ",") { a = "," + a } } popup = window.open(f, "_blank", "height=" + e + ",width=" + d + a); popup.focus() } function getCookieValue(c) { var d = document.cookie; var b = d.search(c + "="); if (b == -1) { return "" } var a = d.indexOf(";", b); return unescape(d.substring(b + 1 + c.length, (a == -1) ? d.length : a)) } function keepShopping() { var c = ""; var b = self.location.host; var a = getCookieValue("KeepShopping"); if (0 != a.length && -1 < a.toLowerCase().indexOf("productid")) { c = "products/productlink.aspx?" + a } document.location.href = "http://" + b + "/" + c } function executeLink(d, e) { var b = self.location.hostname; if (!isMAC) { if (navigator.userAgent.search(/MSIE/i) != -1) { var c = e.toLowerCase().indexOf("deptid="); var f = 0; var a = ""; var g = ""; a = e.indexOf("&", c); g = e.substring(c + 7, (a == -1) ? e.length : a); f = g; if (0 > c || 1 > f) { e = e.replace("asp/product.asp", "products/productLink.aspx"); e = e.replace("asp/Product.asp", "products/productLink.aspx") } if (f < 30 || e.toLowerCase().search("deptid=9000") != -1) { e = e.replace("asp/product.asp", "products/product.aspx") } } } if (e.toLowerCase().search("deptid=9000") != -1) { e = e.replace("asp/productlist.asp?SearchMethod=UseCriteria", "aspx/productList.aspx?itemSetId=6") } if (e.toLowerCase().search("productid=7538") != -1) { e = "aspx/productlist.aspx?itemSetId=7" } if (e.toLowerCase().search("productid=16616") != -1) { e = "aspx/GiftCard/GiftCard.aspx" } if (d == true) { document.location.href = "https://" + b + "/" + e } else { document.location.href = "http://" + b + "/" + e } } function FixAction(b, c, e) { var d = document.getElementById(e); var a = self.location.host; c = (c.substring(0, 1) == "/") ? c : "/" + c; if (b == true) { d.action = "https://" + a + c } else { d.action = "http://" + a + c } d.submit() } function ValidateEmailOpt(b) { var a = document.optout.email; if (a.value == "") { alert("Please include your email address."); a.focus(); return false } FixAction(false, "asp/emailoptthankyou.asp", b); return true } function ReturnAction(b, c) { var a = self.location.host; if (b == true) { return ("https://" + a + "/" + c) } else { return ("http://" + a + "/" + c) } } function setupLayerEvent(a) { } function fireGoButton() { var a = document.getElementById("question").value.toLowerCase(); if (a.indexOf("keyword or item#") == -1 && a.replace(/^\s+/g, "").replace(/\s+$/g, "") != "") { a = a.replace("&", "and"); var b = (getQueryString("IsOutlet") == "1" || self.location.pathname.toLowerCase().indexOf("outlet") > -1) ? "&IsOutlet=1" : ""; self.location = ReturnAction(false, "Products/ProductSearch.aspx?provider=productSearch&cmd=czsearch&question=" + a + b) } } function Certify(a) { popupWin = window.open(a, "Participant", "location,scrollbars,width=450,height=300,left=350,top=0"); window.top.name = "opener" } function popUp(a) { sealWin = window.open(a, "win", "toolbar=1,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=800,height=650"); self.name = "mainWin" } function KeywordSearch() { if (document.location.protocol == "http:") { document.write('<input type="text" 	style="float:left;" 	id="question" 	name="question" 	value="search by keyword or item#" 	onkeypress="if(event.keyCode==13){fireGoButton();return false;}" 	onfocus="if(this.value==\'search by keyword or item#\')this.value=\'\';" 	onblur="if(this.value.replace(/ /g, \'\')==\'\')this.value=\'search by keyword or item#\'" 	><img style="float:left;" 	id="goButtonImg" 	src="http://image.coldwatercreek.com/spcr.gif" 	border="0" 	onclick="fireGoButton();" 	onmouseover="this.style.cursor=\'pointer\';" 	onmouseout="this.style.cursor=\'default\';" 	 >') } return "" } function getDOMElementValue(c, a) { if (document.layers) { for (var b = 0; b < document.forms[a].elements.length; b++) { if (document.forms[a].elements[b].name == c) { switch (document.forms[a].elements[b].type) { case "text": return (document.forms[a].elements[b].value); break; case "select-one": return (document.forms[a].elements[b].options[document.forms[a].elements[b].selectedIndex].value); break } } } return null } else { return document.all(c).value } } function getCookieParm(c, g) { var b = document.cookie; var e = c + "="; var d = b.indexOf("; " + e); if (d == -1) { d = b.indexOf(e); if (d != 0) { return "" } } else { d += 2 } var a = document.cookie.indexOf(";", d); if (a == -1) { a = b.length } var f = unescape(b.substring(d + e.length, a)); e = g + "="; d = f.indexOf(e); if (d == -1) { d = f.indexOf(e); if (d != 0) { return "" } } else { a = f.indexOf("&", d) } if (a == -1) { a = f.length } return unescape(f.substring(d + e.length, a)) } function showEmailForm() { if (httpIs != "https:") { document.getElementById("tblFtrEmailUpdate").style.visibility = "visible" } } var httpIs = location.protocol; var strImgHost = (httpIs == "https:") ? "https://a248.e.akamai.net/f/248/1791/1d/origin.image.coldwatercreek.com" : "http://image.coldwatercreek.com"; function imageChange(imageID, imageName) { document.images[imageID].src = eval(imageName + ".src") } function wireupOnload(a) { if (window.addEventListener) { window.addEventListener("load", a, false) } else { if (window.attachEvent) { window.attachEvent("onload", a) } } } function getQueryString(e) { var c, a, d; d = self.location.search; e = e.toLowerCase(); urlParamStrLower = d.toLowerCase(); if (self.location.search.length > 1) { var b = (urlParamStrLower.indexOf("?" + e + "=") > -1) ? "?" + e + "=" : "&" + e + "="; if (urlParamStrLower.indexOf(b) > -1) { c = urlParamStrLower.indexOf(b) + b.length; a = urlParamStrLower.indexOf("&", c); if (a == (-1)) { a = urlParamStrLower.length } return (d.substring(c, a)) } else { return ("") } } else { if (self.location.hash.length > 1) { if ((self.location.hash.indexOf("?" + e + "=") > -1) || (self.location.hash.indexOf("&" + e + "=") > -1)) { c = self.location.hash.indexOf(e + "=") + e.length + 1; a = self.location.hash.indexOf("&", c); if (a == (-1)) { a = self.location.hash.length } return (self.location.hash.substring(c, a)) } else { return ("") } } else { return ("") } } } function executeChat(a) { cmSetProduction(); cmCreatePageviewTag("CUSTOMER SERVICE: INSTANT HELP", "A21000000", null, null, null, null); document.cookie = "CHAT=" + escape(document.location.href) + ";path=/;"; document.location.href = "http://www.coldwatercreek.com/asp/chat.asp?load=&ver=" + a } function BTT() { document.write("<div align='right'><a href='#top' class='btt'>back to top</a></div>") } function myvoid() { } function showDetailView(a, b) { var c; c = "/GiftCard/GiftCardPopup.aspx?ImageFileName=" + a + "&cid=" + b; openPicWin(c, 600, 350, "directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no") } function textCounter(h, e) { var g = h; var c = h.rows; var f = h.cols; var d; var b = 0; var a = g.value.split("\n"); if (g.value.length > e || a.length > c || (a.length == c && a[c - 1].length > f)) { if (g.value.length > e) { g.value = g.value.substring(0, e) } else { for (d = 0; d < c; d++) { b += a[d].length } g.value = g.value.substring(0, b + 2) } } } var popup = null; function openPicWin(f, d, e, a) { if (popup) { if (!popup.closed) { popup.close() } } popup = null; var c = (screen.height / 2) - (e / 2); var b = (screen.width / 2) - (d / 2); if (a != null) { if (a.substring(0, 1) != ",") { a = "," + a } } popup = window.open(f, "ColdwaterCreek", "TOP=" + c + ",LEFT=" + b + ",HEIGHT=" + e + ",WIDTH=" + d + a); popup.focus() } function btnOn(a) { a.className = a.className.replace(/_off/i, "_on") } function btnOff(a) { a.className = a.className.replace(/_on/i, "_off") } function getQueryStringParam(f) { var e = location.search; var b = 0; var c = 0; var a = 0; var d = ""; if (f) { if (e.indexOf(f) != -1) { b = e.indexOf(f) + f.length + 1; c = ((a = (e.indexOf("&", b))) == -1) ? e.length : a; d = e.substring(b, c); d = unescape(d) } } return d } function disableButton(a) { document.getElementById(a + "_Disabled").style.display = "block"; document.getElementById(a + "_Enabled").style.display = "none" } var navloaded = false; AddEvent(window, "load", LoadNav); function $(a) { return document.getElementById(a) } function AddEvent(c, a, b) { if (c.addEventListener) { c.addEventListener(a, b, false); return true } else { if (c.attachEvent) { return c.attachEvent("on" + a, b) } else { return false } } } function LoadNav(a) { if (!navloaded) { ele = $(document.navnode); if (ele) { SelectNode(ele) } navloaded = true } } function SelectNode(b) { if (b.parentNode.className == "lvl2") { b.style.color = "#C44506"; for (var a = 0; a < b.parentNode.childNodes.length; a++) { if (b.parentNode.childNodes[a].nodeName == "DIV") { b.parentNode.childNodes[a].style.display = "block" } } } b.parentNode.className += "_on"; for (var a = 0; a < b.parentNode.parentNode.childNodes.length; a++) { if (b.parentNode.parentNode.childNodes[a].nodeName == "DIV") { b.parentNode.parentNode.childNodes[a].style.display = "block" } } if (b.parentNode.parentNode.className.substr(0, 3) == "lvl") { SelectNode(b.parentNode) } } var imgObject; var strNewImgPath = ""; var finalAltImg = strImgHost + "/Spcr.gif"; function testImage(b) { imgObject = b; var c = imgObject.src.toLowerCase(); strNewImgPath = newImagePath(c); var a = new Image(); a.onload = isGoodImgPath; a.onerror = isBadImgPath; a.src = strNewImgPath } function isGoodImgPath() { imgObject.src = strNewImgPath } function isBadImgPath() { var a = finalAltImg; if (strNewImgPath != a) { imgObject.src = a } } function newImagePath(b) { var a = ""; if (b.match("36x45") != null) { a = strImgHost + "/Products/36x45/missing_36x45.gif" } else { if (b.match("104x130") != null) { a = strImgHost + "/Products/104x130/missing_104x130.gif" } else { if (b.match("144x180") != null) { a = strImgHost + "/Products/144x180/missing_144x180.gif" } else { if (b.match("220x275") != null) { a = strImgHost + "/Products/220x275/missing_220x275.gif" } else { if (b.match("296x370") != null) { a = strImgHost + "/Products/296x370/missing_296x370.gif" } else { if (b.match("524x655") != null) { a = strImgHost + "/Products/524x655/missing_524x655.gif" } else { a = finalAltImg } } } } } } return a } function setSecureImage(a, b) { a.src = strImgHost + b } function renderSecureImage(c, a) { var b = ""; b = '<img src="' + strImgHost + c + '" ' + a + " />"; document.write(b) } function assignUrl(a, b) { if (document.location.hostname != "localhost") { if (b) { document.location.href = "https://" + document.location.host + a } else { document.location.href = "http://" + document.location.host + a } } else { document.location.href = a } } function setHttpSecure(b, a) { if (document.location.hostname != "localhost") { if (b) { a.href = a.href.replace(/http:/i, "https:") } else { a.href = a.href.replace(/https:/i, "http:") } } } var Url = { encode: function(a) { return escape(this._utf8_encode(a)) }, decode: function(a) { return this._utf8_decode(unescape(a)) }, _utf8_encode: function(b) { b = b.replace(/\r\n/g, "\n"); var a = ""; for (var e = 0; e < b.length; e++) { var d = b.charCodeAt(e); if (d < 128) { a += String.fromCharCode(d) } else { if ((d > 127) && (d < 2048)) { a += String.fromCharCode((d >> 6) | 192); a += String.fromCharCode((d & 63) | 128) } else { a += String.fromCharCode((d >> 12) | 224); a += String.fromCharCode(((d >> 6) & 63) | 128); a += String.fromCharCode((d & 63) | 128) } } } return a }, _utf8_decode: function(a) { var b = ""; var d = 0; var e = c1 = c2 = 0; while (d < a.length) { e = a.charCodeAt(d); if (e < 128) { b += String.fromCharCode(e); d++ } else { if ((e > 191) && (e < 224)) { c2 = a.charCodeAt(d + 1); b += String.fromCharCode(((e & 31) << 6) | (c2 & 63)); d += 2 } else { c2 = a.charCodeAt(d + 1); c3 = a.charCodeAt(d + 2); b += String.fromCharCode(((e & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)); d += 3 } } } return b } }; var requiredMajorVersion = 8; var requiredMinorVersion = 0; var requiredRevision = 0; var jsVersion = 1; var flashKeyword = ""; function showFlash(g, l, c, f, e, a, h) { flashKeyword = h; var d = document.getElementById(e); if (d) { var k = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision); if (k) { var b = String("http://image.coldwatercreek.com/Flash/" + g); d.innerHTML = AC_FL_RunContent("codebase", "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,19,0", "wmode", "transparent", "width", c, "height", f, "loop", "true", "title", l, "src", b, "quality", "high", "pluginspage", "http://www.macromedia.com/go/getflashplayer", "movie", b, "docwrite", a, "allowscriptaccess", "always", "FlashVars", "keyword=" + flashKeyword) } } } function AC_AddExtension(b, a) { if (b.indexOf("?") != -1) { return b.replace(/\?/, a + "?") } else { return b + a } } function AC_Generateobj(e, d, a) { var c = "<object "; for (var b in e) { c += b + '="' + e[b] + '" ' } c += ">"; for (var b in d) { c += '<param name="' + b + '" value="' + d[b] + '" /> ' } c += "<embed "; for (var b in a) { c += b + '="' + a[b] + '" ' } c += " ></embed></object>"; return c } function AC_FL_RunContent() { var d = document.URL.replace(/&/g, "%26").replace(/%/g, "%25"); var c = String(".swf"); var b = AC_GetArgs(arguments, c, "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000", "application/x-shockwave-flash"); var a = AC_Generateobj(b.objAttrs, b.params, b.embedAttrs); if (b.docWrite == true) { document.write(a) } else { return a } } function AC_SW_RunContent() { var b = AC_GetArgs(arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000", null); var a = AC_Generateobj(b.objAttrs, b.params, b.embedAttrs); if (b.docWrite == true) { document.write(a) } else { return a } } function AC_GetArgs(b, e, g, d, h) { var a = new Object(); a.embedAttrs = new Object(); a.params = new Object(); a.objAttrs = new Object(); a.docWrite = new Boolean(true); for (var c = 0; c < b.length; c = c + 2) { var f = b[c].toLowerCase(); switch (f) { case "classid": break; case "pluginspage": a.embedAttrs[b[c]] = b[c + 1]; break; case "src": case "movie": b[c + 1] = AC_AddExtension(b[c + 1], e); a.embedAttrs.src = b[c + 1]; a.params[g] = b[c + 1]; break; case "onafterupdate": case "onbeforeupdate": case "onblur": case "oncellchange": case "onclick": case "ondblClick": case "ondrag": case "ondragend": case "ondragenter": case "ondragleave": case "ondragover": case "ondrop": case "onfinish": case "onfocus": case "onhelp": case "onmousedown": case "onmouseup": case "onmouseover": case "onmousemove": case "onmouseout": case "onkeypress": case "onkeydown": case "onkeyup": case "onload": case "onlosecapture": case "onpropertychange": case "onreadystatechange": case "onrowsdelete": case "onrowenter": case "onrowexit": case "onrowsinserted": case "onstart": case "onscroll": case "onbeforeeditfocus": case "onactivate": case "onbeforedeactivate": case "ondeactivate": case "type": case "codebase": a.objAttrs[b[c]] = b[c + 1]; break; case "allowscriptaccess": a.params[b[c]] = b[c + 1]; a.embedAttrs[b[c]] = a.objAttrs[b[c]] = b[c + 1]; break; case "FlashVars": a.params[b[c]] = b[c + 1]; a.embedAttrs[b[c]] = a.objAttrs[b[c]] = b[c + 1]; break; case "width": case "height": case "align": case "vspace": case "hspace": case "class": case "title": case "accesskey": case "name": case "id": case "tabindex": a.embedAttrs[b[c]] = a.objAttrs[b[c]] = b[c + 1]; break; case "docwrite": a.docWrite = b[c + 1]; break; default: a.embedAttrs[b[c]] = a.params[b[c]] = b[c + 1] } } a.objAttrs.classid = d; if (h) { a.embedAttrs.type = h } return a } var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false; jsVersion = 1.1; function JSGetSwfVer(b) { if (navigator.plugins != null && navigator.plugins.length > 0) { if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) { var c = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; var a = navigator.plugins["Shockwave Flash" + c].description; descArray = a.split(" "); tempArrayMajor = descArray[2].split("."); versionMajor = tempArrayMajor[0]; versionMinor = tempArrayMajor[1]; if (descArray[3] != "") { tempArrayMinor = descArray[3].split("r") } else { tempArrayMinor = descArray[4].split("r") } versionRevision = tempArrayMinor[1] > 0 ? tempArrayMinor[1] : 0; flashVer = versionMajor + "." + versionMinor + "." + versionRevision } else { flashVer = -1 } } else { if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) { flashVer = 4 } else { if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) { flashVer = 3 } else { if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) { flashVer = 2 } else { flashVer = -1 } } } } return flashVer } function DetectFlashVer(c, b, a) { reqVer = parseFloat(c + "." + a); for (i = 25; i > 0; i--) { if (isIE && isWin && !isOpera) { versionStr = VBGetSwfVer(i) } else { versionStr = JSGetSwfVer(i) } if (versionStr == -1) { return false } else { if (versionStr != 0) { if (isIE && isWin && !isOpera) { tempArray = versionStr.split(" "); tempString = tempArray[1]; versionArray = tempString.split(",") } else { versionArray = versionStr.split(".") } versionMajor = versionArray[0]; versionMinor = versionArray[1]; versionRevision = versionArray[2]; versionString = versionMajor + "." + versionRevision; versionNum = parseFloat(versionString); if ((versionMajor > c) && (versionNum >= reqVer)) { return true } else { return ((versionNum >= reqVer && versionMinor >= b) ? true : false) } } } } return (reqVer ? false : 0) } (function(d) { d.fn.jqm = function(f) { var e = { overlay: 50, overlayClass: "jqmOverlay", closeClass: "jqmClose", trigger: ".jqModal", ajax: p, ajaxText: "", target: p, modal: p, toTop: p, onShow: p, onHide: p, onLoad: p }; return this.each(function() { if (this._jqm) { return o[this._jqm].c = d.extend({}, o[this._jqm].c, f) } q++; this._jqm = q; o[q] = { c: d.extend(e, d.jqm.params, f), a: p, w: d(this).addClass("jqmID" + q), s: q }; if (e.trigger) { d(this).jqmAddTrigger(e.trigger) } }) }; d.fn.jqmAddClose = function(f) { return n(this, f, "jqmHide") }; d.fn.jqmAddTrigger = function(f) { return n(this, f, "jqmShow") }; d.fn.jqmShow = function(e) { return this.each(function() { e = e || window.event; d.jqm.open(this._jqm, e) }) }; d.fn.jqmHide = function(e) { return this.each(function() { e = e || window.event; d.jqm.close(this._jqm, e) }) }; d.jqm = { hash: {}, open: function(D, C) { var v = o[D], w = v.c, m = "." + w.closeClass, x = (parseInt(v.w.css("z-index"))), x = (x > 0) ? x : 3000, f = d("<div></div>").css({ height: "100%", width: "100%", position: "fixed", left: 0, top: 0, "z-index": x - 1, opacity: w.overlay / 100 }); if (v.a) { return p } v.t = C; v.a = true; v.w.css("z-index", x); if (w.modal) { if (!a[0]) { l("bind") } a.push(D) } else { if (w.overlay > 0) { v.w.jqmAddClose(f) } else { f = p } } v.o = (f) ? f.addClass(w.overlayClass).prependTo("body") : p; if (c) { d("html,body").css({ height: "100%", width: "100%" }); if (f) { f = f.css({ position: "absolute" })[0]; for (var A in { Top: 1, Left: 1 }) { f.style.setExpression(A.toLowerCase(), "(_=(document.documentElement.scroll" + A + " || document.body.scroll" + A + "))+'px'") } } } if (w.ajax) { var e = w.target || v.w, B = w.ajax, e = (typeof e == "string") ? d(e, v.w) : d(e), B = (B.substr(0, 1) == "@") ? d(C).attr(B.substring(1)) : B; e.html(w.ajaxText).load(B, function() { if (w.onLoad) { w.onLoad.call(this, v) } if (m) { v.w.jqmAddClose(d(m, v.w)) } k(v) }) } else { if (m) { v.w.jqmAddClose(d(m, v.w)) } } if (w.toTop && v.o) { v.w.before('<span id="jqmP' + v.w[0]._jqm + '"></span>').insertAfter(v.o) } (w.onShow) ? w.onShow(v) : v.w.show(); k(v); return p }, close: function(f) { var e = o[f]; if (!e.a) { return p } e.a = p; if (a[0]) { a.pop(); if (!a[0]) { l("unbind") } } if (e.c.toTop && e.o) { d("#jqmP" + e.w[0]._jqm).after(e.w).remove() } if (e.c.onHide) { e.c.onHide(e) } else { e.w.hide(); if (e.o) { e.o.remove() } } return p }, params: {} }; var q = 0, o = d.jqm.hash, a = [], c = d.browser.msie && (d.browser.version == "6.0"), p = false, g = d('<iframe src="javascript:false;document.write(\'\');" class="jqm"></iframe>').css({ opacity: 0 }), k = function(e) { if (c) { if (e.o) { e.o.html('<p style="width:100%;height:100%"/>').prepend(g) } else { if (!d("iframe.jqm", e.w)[0]) { e.w.prepend(g) } } } h(e) }, h = function(f) { try { d(":input:visible", f.w)[0].focus() } catch (e) { } }, l = function(e) { d()[e]("keypress", b)[e]("keydown", b)[e]("mousedown", b) }, b = function(s) { var f = o[a[a.length - 1]], m = (!d(s.target).parents(".jqmID" + f.s)[0]); if (m) { h(f) } return !m }, n = function(e, f, m) { return e.each(function() { var r = this._jqm; d(f).each(function() { if (!this[m]) { this[m] = []; d(this).click(function() { for (var t in { jqmShow: 1, jqmHide: 1 }) { for (var u in this[t]) { if (o[this[t][u]]) { o[this[t][u]].w[t](this) } } } return p }) } this[m].push(r) }) }) } })(jQuery); function showProductVideo(a, b, c) { jQuery(a).load("/contentzone/?zonename=PD_Videos&filename=" + c + "&keyword=" + b) };