(function () { if (window.jQuery) var _jQuery = window.jQuery; var jQuery = window.jQuery = function (a, b) { return new jQuery.prototype.init(a, b) }; if (window.$) var _$ = window.$; window.$ = jQuery; var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/, isSimple = /^.[^:#\[\.]*$/; jQuery.fn = jQuery.prototype = { init: function (a, c) { a = a || document; if (a.nodeType) { this[0] = a; this.length = 1; return this } else if (typeof a == "string") { var b = quickExpr.exec(a); if (b && (b[1] || !c)) if (b[1]) a = jQuery.clean([b[1]], c); else { var d = document.getElementById(b[3]); if (d) if (d.id != b[3]) return jQuery().find(a); else { this[0] = d; this.length = 1; return this } else a = [] } else return (new jQuery(c)).find(a) } else if (jQuery.isFunction(a)) return new jQuery(document)[jQuery.fn.ready ? "ready" : "load"](a); return this.setArray(a.constructor == Array && a || (a.jquery || a.length && a != window && !a.nodeType && a[0] != undefined && a[0].nodeType) && jQuery.makeArray(a) || [a]) }, jquery: "1.2.3", size: function () { return this.length }, length: 0, "get": function (a) { return a == undefined ? jQuery.makeArray(this) : this[a] }, pushStack: function (b) { var a = jQuery(b); a.prevObject = this; return a }, setArray: function (a) { this.length = 0; Array.prototype.push.apply(this, a); return this }, each: function (a, b) { return jQuery.each(this, a, b) }, index: function (b) { var a = -1; this.each(function (c) { if (this == b) a = c }); return a }, attr: function (a, d, c) { var b = a; if (a.constructor == String) if (d == undefined) return this.length && jQuery[c || "attr"](this[0], a) || undefined; else { b = {}; b[a] = d } return this.each(function (d) { for (a in b) jQuery.attr(c ? this.style : this, a, jQuery.prop(this, b[a], c, d, a)) }) }, css: function (b, a) { if ((b == "width" || b == "height") && parseFloat(a) < 0) a = undefined; return this.attr(b, a, "curCSS") }, text: function (a) { if (typeof a != "object" && a != null) return this.empty().append((this[0] && this[0].ownerDocument || document).createTextNode(a)); var b = ""; jQuery.each(a || this, function () { jQuery.each(this.childNodes, function () { if (this.nodeType != 8) b += this.nodeType != 1 ? this.nodeValue : jQuery.fn.text([this]) }) }); return b }, wrapAll: function (a) { this[0] && jQuery(a, this[0].ownerDocument).clone().insertBefore(this[0]).map(function () { var a = this; while (a.firstChild) a = a.firstChild; return a }).append(this); return this }, wrapInner: function (a) { return this.each(function () { jQuery(this).contents().wrapAll(a) }) }, wrap: function (a) { return this.each(function () { jQuery(this).wrapAll(a) }) }, append: function () { return this.domManip(arguments, true, false, function (a) { this.nodeType == 1 && this.appendChild(a) }) }, prepend: function () { return this.domManip(arguments, true, true, function (a) { this.nodeType == 1 && this.insertBefore(a, this.firstChild) }) }, before: function () { return this.domManip(arguments, false, false, function (a) { this.parentNode.insertBefore(a, this) }) }, after: function () { return this.domManip(arguments, false, true, function (a) { this.parentNode.insertBefore(a, this.nextSibling) }) }, end: function () { return this.prevObject || jQuery([]) }, find: function (a) { var b = jQuery.map(this, function (b) { return jQuery.find(a, b) }); return this.pushStack(/[^+>] [^+>]/.test(a) || a.indexOf("..") > -1 ? jQuery.unique(b) : b) }, clone: function (b) { var a = this.map(function () { if (jQuery.browser.msie && !jQuery.isXMLDoc(this)) { var b = this.cloneNode(true), a = document.createElement("div"); a.appendChild(b); return jQuery.clean([a.innerHTML])[0] } else return this.cloneNode(true) }), c = a.find("*").andSelf().each(function () { if (this[expando] != undefined) this[expando] = null }); b === true && this.find("*").andSelf().each(function (e) { if (this.nodeType == 3) return; var a = jQuery.data(this, "events"); for (var b in a) for (var d in a[b]) jQuery.event.add(c[e], b, a[b][d], a[b][d].data) }); return a }, filter: function (a) { return this.pushStack(jQuery.isFunction(a) && jQuery.grep(this, function (b, c) { return a.call(b, c) }) || jQuery.multiFilter(a, this)) }, not: function (a) { if (a.constructor == String) if (isSimple.test(a)) return this.pushStack(jQuery.multiFilter(a, this, true)); else a = jQuery.multiFilter(a, this); var b = a.length && a[a.length - 1] !== undefined && !a.nodeType; return this.filter(function () { return b ? jQuery.inArray(this, a) < 0 : this != a }) }, add: function (a) { return !a ? this : this.pushStack(jQuery.merge(this.get(), a.constructor == String ? jQuery(a).get() : a.length != undefined && (!a.nodeName || jQuery.nodeName(a, "form")) ? a : [a])) }, is: function (a) { return a ? jQuery.multiFilter(a, this).length > 0 : false }, hasClass: function (a) { return this.is("." + a) }, val: function (a) { if (a == undefined) { if (this.length) { var c = this[0]; if (jQuery.nodeName(c, "select")) { var d = c.selectedIndex, h = [], g = c.options, e = c.type == "select-one"; if (d < 0) return null; for (var f = e ? d : 0, i = e ? d + 1 : g.length; f < i; f++) { var b = g[f]; if (b.selected) { a = jQuery.browser.msie && !b.attributes.value.specified ? b.text : b.value; if (e) return a; h.push(a) } } return h } else return (this[0].value || "").replace(/\r/g, "") } return undefined } return this.each(function () { if (this.nodeType != 1) return; if (a.constructor == Array && /radio|checkbox/.test(this.type)) this.checked = jQuery.inArray(this.value, a) >= 0 || jQuery.inArray(this.name, a) >= 0; else if (jQuery.nodeName(this, "select")) { var b = a.constructor == Array ? a : [a]; jQuery("option", this).each(function () { this.selected = jQuery.inArray(this.value, b) >= 0 || jQuery.inArray(this.text, b) >= 0 }); if (!b.length) this.selectedIndex = -1 } else this.value = a }) }, html: function (a) { return a == undefined ? this.length ? this[0].innerHTML : null : this.empty().append(a) }, replaceWith: function (a) { return this.after(a).remove() }, eq: function (a) { return this.slice(a, a + 1) }, slice: function () { return this.pushStack(Array.prototype.slice.apply(this, arguments)) }, map: function (a) { return this.pushStack(jQuery.map(this, function (b, c) { return a.call(b, c, b) })) }, andSelf: function () { return this.add(this.prevObject) }, data: function (d, c) { var a = d.split("."); a[1] = a[1] ? "." + a[1] : ""; if (c == null) { var b = this.triggerHandler("getData" + a[1] + "!", [a[0]]); if (b == undefined && this.length) b = jQuery.data(this[0], d); return b == null && a[1] ? this.data(a[0]) : b } else return this.trigger("setData" + a[1] + "!", [a[0], c]).each(function () { jQuery.data(this, d, c) }) }, removeData: function (a) { return this.each(function () { jQuery.removeData(this, a) }) }, domManip: function (f, e, c, b) { var d = this.length > 1, a; return this.each(function () { if (!a) { a = jQuery.clean(f, this.ownerDocument); c && a.reverse() } var h = this; if (e && jQuery.nodeName(this, "table") && jQuery.nodeName(a[0], "tr")) h = this.getElementsByTagName("tbody")[0] || this.appendChild(this.ownerDocument.createElement("tbody")); var g = jQuery([]); jQuery.each(a, function () { var a = d ? jQuery(this).clone(true)[0] : this; if (jQuery.nodeName(a, "script")) g = g.add(a); else { if (a.nodeType == 1) g = g.add(jQuery("script", a).remove()); b.call(h, a) } }); g.each(evalScript) }) } }; jQuery.prototype.init.prototype = jQuery.prototype; function evalScript(b, a) { if (a.src) jQuery.ajax({ url: a.src, async: false, dataType: "script" }); else jQuery.globalEval(a.text || a.textContent || a.innerHTML || ""); a.parentNode && a.parentNode.removeChild(a) } jQuery.extend = jQuery.fn.extend = function () { var a = arguments[0] || {}, d = 1, e = arguments.length, f = false, c; if (a.constructor == Boolean) { f = a; a = arguments[1] || {}; d = 2 } if (typeof a != "object" && typeof a != "function") a = {}; if (e == 1) { a = this; d = 0 } for (; d < e; d++) if ((c = arguments[d]) != null) for (var b in c) { if (a === c[b]) continue; if (f && c[b] && typeof c[b] == "object" && a[b] && !c[b].nodeType) a[b] = jQuery.extend(a[b], c[b]); else if (c[b] != undefined) a[b] = c[b] } return a }; var expando = "jQuery" + (new Date).getTime(), uuid = 0, windowData = {}, exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i; jQuery.extend({ noConflict: function (a) { window.$ = _$; if (a) window.jQuery = _jQuery; return jQuery }, isFunction: function (a) { return !!a && typeof a != "string" && !a.nodeName && a.constructor != Array && /function/i.test(a + "") }, isXMLDoc: function (a) { return a.documentElement && !a.body || a.tagName && a.ownerDocument && !a.ownerDocument.body }, globalEval: function (b) { b = jQuery.trim(b); if (b) { var c = document.getElementsByTagName("head")[0] || document.documentElement, a = document.createElement("script"); a.type = "text/javascript"; if (jQuery.browser.msie) a.text = b; else a.appendChild(document.createTextNode(b)); c.appendChild(a); c.removeChild(a) } }, nodeName: function (a, b) { return a.nodeName && a.nodeName.toUpperCase() == b.toUpperCase() }, cache: {}, data: function (b, c, d) { b = b == window ? windowData : b; var a = b[expando]; if (!a) a = b[expando] = ++uuid; if (c && !jQuery.cache[a]) jQuery.cache[a] = {}; if (d != undefined) jQuery.cache[a][c] = d; return c ? jQuery.cache[a][c] : a }, removeData: function (a, b) { a = a == window ? windowData : a; var c = a[expando]; if (b) { if (jQuery.cache[c]) { delete jQuery.cache[c][b]; b = ""; for (b in jQuery.cache[c]) break; !b && jQuery.removeData(a) } } else { try { delete a[expando] } catch (d) { a.removeAttribute && a.removeAttribute(expando) } delete jQuery.cache[c] } }, each: function (a, c, f) { if (f) { if (a.length == undefined) { for (var d in a) if (c.apply(a[d], f) === false) break } else for (var b = 0, g = a.length; b < g; b++) if (c.apply(a[b], f) === false) break } else if (a.length == undefined) { for (var d in a) if (c.call(a[d], d, a[d]) === false) break } else for (var b = 0, g = a.length, e = a[0]; b < g && c.call(e, b, e) !== false; e = a[++b]); return a }, prop: function (b, a, d, e, c) { if (jQuery.isFunction(a)) a = a.call(b, e); return a && a.constructor == Number && d == "curCSS" && !exclude.test(c) ? a + "px" : a }, className: { add: function (a, b) { jQuery.each((b || "").split(/\s+/), function (c, b) { if (a.nodeType == 1 && !jQuery.className.has(a.className, b)) a.className += (a.className ? " " : "") + b }) }, remove: function (a, b) { if (a.nodeType == 1) a.className = b != undefined ? jQuery.grep(a.className.split(/\s+/), function (a) { return !jQuery.className.has(b, a) }).join(" ") : "" }, has: function (a, b) { return jQuery.inArray(b, (a.className || a).toString().split(/\s+/)) > -1 } }, swap: function (b, c, e) { var d = {}; for (var a in c) { d[a] = b.style[a]; b.style[a] = c[a] } e.call(b); for (var a in c) b.style[a] = d[a] }, css: function (a, b, e) { if (b == "width" || b == "height") { var c, f = { position: "absolute", visibility: "hidden", display: "block" }, g = b == "width" ? ["Left", "Right"] : ["Top", "Bottom"]; function d() { c = b == "width" ? a.offsetWidth : a.offsetHeight; var d = 0, e = 0; jQuery.each(g, function () { d += parseFloat(jQuery.curCSS(a, "padding" + this, true)) || 0; e += parseFloat(jQuery.curCSS(a, "border" + this + "Width", true)) || 0 }); c -= Math.round(d + e) } if (jQuery(a).is(":visible")) d(); else jQuery.swap(a, f, d); return Math.max(0, c) } return jQuery.curCSS(a, b, e) }, curCSS: function (a, b, l) { var c; function i(b) { if (!jQuery.browser.safari) return false; var a = document.defaultView.getComputedStyle(b, null); return !a || a.getPropertyValue("color") == "" } if (b == "opacity" && jQuery.browser.msie) { c = jQuery.attr(a.style, "opacity"); return c == "" ? "1" : c } if (jQuery.browser.opera && b == "display") { var n = a.style.outline; a.style.outline = "0 solid black"; a.style.outline = n } if (b.match(/float/i)) b = styleFloat; if (!l && a.style && a.style[b]) c = a.style[b]; else if (document.defaultView && document.defaultView.getComputedStyle) { if (b.match(/float/i)) b = "float"; b = b.replace(/([A-Z])/g, "-$1").toLowerCase(); var h = document.defaultView.getComputedStyle(a, null); if (h && !i(a)) c = h.getPropertyValue(b); else { for (var f = [], e = [], g = a; g && i(g); g = g.parentNode) e.unshift(g); for (var d = 0; d < e.length; d++) if (i(e[d])) { f[d] = e[d].style.display; e[d].style.display = "block" } c = b == "display" && f[e.length - 1] != null ? "none" : h && h.getPropertyValue(b) || ""; for (var d = 0; d < f.length; d++) if (f[d] != null) e[d].style.display = f[d] } if (b == "opacity" && c == "") c = "1" } else if (a.currentStyle) { var k = b.replace(/\-(\w)/g, function (b, a) { return a.toUpperCase() }); c = a.currentStyle[b] || a.currentStyle[k]; if (!/^\d+(px)?$/i.test(c) && /^\d/.test(c)) { var m = a.style.left, j = a.runtimeStyle.left; a.runtimeStyle.left = a.currentStyle.left; a.style.left = c || 0; c = a.style.pixelLeft + "px"; a.style.left = m; a.runtimeStyle.left = j } } return c }, clean: function (c, a) { var b = []; a = a || document; if (typeof a.createElement == "undefined") a = a.ownerDocument || a[0] && a[0].ownerDocument || document; jQuery.each(c, function (i, c) { if (!c) return; if (c.constructor == Number) c = c.toString(); if (typeof c == "string") { c = c.replace(/(<(\w+)[^>]*?)\/>/g, function (c, b, a) { return a.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? c : b + "></" + a + ">" }); var d = jQuery.trim(c).toLowerCase(), e = a.createElement("div"), h = !d.indexOf("<opt") && [1, "<select multiple='multiple'>", "</select>"] || !d.indexOf("<leg") && [1, "<fieldset>", "</fieldset>"] || d.match(/^<(thead|tbody|tfoot|colg|cap)/) && [1, "<table>", "</table>"] || !d.indexOf("<tr") && [2, "<table><tbody>", "</tbody></table>"] || (!d.indexOf("<td") || !d.indexOf("<th")) && [3, "<table><tbody><tr>", "</tr></tbody></table>"] || !d.indexOf("<col") && [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"] || jQuery.browser.msie && [1, "div<div>", "</div>"] || [0, "", ""]; e.innerHTML = h[1] + c + h[2]; while (h[0]--) e = e.lastChild; if (jQuery.browser.msie) { for (var g = !d.indexOf("<table") && d.indexOf("<tbody") < 0 ? e.firstChild && e.firstChild.childNodes : h[1] == "<table>" && d.indexOf("<tbody") < 0 ? e.childNodes : [], f = g.length - 1; f >= 0; --f) jQuery.nodeName(g[f], "tbody") && !g[f].childNodes.length && g[f].parentNode.removeChild(g[f]); /^\s/.test(c) && e.insertBefore(a.createTextNode(c.match(/^\s*/)[0]), e.firstChild) } c = jQuery.makeArray(e.childNodes) } if (c.length === 0 && (!jQuery.nodeName(c, "form") && !jQuery.nodeName(c, "select"))) return; if (c[0] == undefined || jQuery.nodeName(c, "form") || c.options) b.push(c); else b = jQuery.merge(b, c) }); return b }, attr: function (a, b, c) { if (!a || a.nodeType == 3 || a.nodeType == 8) return undefined; var d = jQuery.isXMLDoc(a) ? {} : jQuery.props; if (b == "selected" && jQuery.browser.safari) a.parentNode.selectedIndex; if (d[b]) { if (c != undefined) a[d[b]] = c; return a[d[b]] } else if (jQuery.browser.msie && b == "style") return jQuery.attr(a.style, "cssText", c); else if (c == undefined && jQuery.browser.msie && jQuery.nodeName(a, "form") && (b == "action" || b == "method")) return a.getAttributeNode(b).nodeValue; else if (a.tagName) { if (c != undefined) { if (b == "type" && jQuery.nodeName(a, "input") && a.parentNode) throw "type property can't be changed"; a.setAttribute(b, "" + c) } if (jQuery.browser.msie && /href|src/.test(b) && !jQuery.isXMLDoc(a)) return a.getAttribute(b, 2); return a.getAttribute(b) } else { if (b == "opacity" && jQuery.browser.msie) { if (c != undefined) { a.zoom = 1; a.filter = (a.filter || "").replace(/alpha\([^)]*\)/, "") + (parseFloat(c).toString() == "NaN" ? "" : "alpha(opacity=" + c * 100 + ")") } return a.filter && a.filter.indexOf("opacity=") >= 0 ? (parseFloat(a.filter.match(/opacity=([^)]*)/)[1]) / 100).toString() : "" } b = b.replace(/-([a-z])/ig, function (b, a) { return a.toUpperCase() }); if (c != undefined) a[b] = c; return a[b] } }, trim: function (a) { return (a || "").replace(/^\s+|\s+$/g, "") }, makeArray: function (a) { var b = []; if (typeof a != "array") for (var c = 0, d = a.length; c < d; c++) b.push(a[c]); else b = a.slice(0); return b }, inArray: function (d, b) { for (var a = 0, c = b.length; a < c; a++) if (b[a] == d) return a; return -1 }, merge: function (c, b) { if (jQuery.browser.msie) for (var a = 0; b[a]; a++) b[a].nodeType != 8 && c.push(b[a]); else for (var a = 0; b[a]; a++) c.push(b[a]); return c }, unique: function (a) { var c = [], d = {}; try { for (var b = 0, f = a.length; b < f; b++) { var e = jQuery.data(a[b]); if (!d[e]) { d[e] = true; c.push(a[b]) } } } catch (g) { c = a } return c }, grep: function (b, c, d) { for (var e = [], a = 0, f = b.length; a < f; a++) (!d && c(b[a], a) || d && !c(b[a], a)) && e.push(b[a]); return e }, map: function (d, e) { for (var c = [], b = 0, f = d.length; b < f; b++) { var a = e(d[b], b); if (a !== null && a != undefined) { if (a.constructor != Array) a = [a]; c = c.concat(a) } } return c } }); var userAgent = navigator.userAgent.toLowerCase(); jQuery.browser = { version: (userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/) || [])[1], safari: /webkit/.test(userAgent), opera: /opera/.test(userAgent), msie: /msie/.test(userAgent) && !/opera/.test(userAgent), mozilla: /mozilla/.test(userAgent) && !/(compatible|webkit)/.test(userAgent) }; var styleFloat = jQuery.browser.msie ? "styleFloat" : "cssFloat"; jQuery.extend({ boxModel: !jQuery.browser.msie || document.compatMode == "CSS1Compat", props: { "for": "htmlFor", "class": "className", "float": styleFloat, cssFloat: styleFloat, styleFloat: styleFloat, innerHTML: "innerHTML", className: "className", value: "value", disabled: "disabled", checked: "checked", readonly: "readOnly", selected: "selected", maxlength: "maxLength", selectedIndex: "selectedIndex", defaultValue: "defaultValue", tagName: "tagName", nodeName: "nodeName"} }); jQuery.each({ parent: function (a) { return a.parentNode }, parents: function (a) { return jQuery.dir(a, "parentNode") }, next: function (a) { return jQuery.nth(a, 2, "nextSibling") }, prev: function (a) { return jQuery.nth(a, 2, "previousSibling") }, nextAll: function (a) { return jQuery.dir(a, "nextSibling") }, prevAll: function (a) { return jQuery.dir(a, "previousSibling") }, siblings: function (a) { return jQuery.sibling(a.parentNode.firstChild, a) }, children: function (a) { return jQuery.sibling(a.firstChild) }, contents: function (a) { return jQuery.nodeName(a, "iframe") ? a.contentDocument || a.contentWindow.document : jQuery.makeArray(a.childNodes) } }, function (a, b) { jQuery.fn[a] = function (a) { var c = jQuery.map(this, b); if (a && typeof a == "string") c = jQuery.multiFilter(a, c); return this.pushStack(jQuery.unique(c)) } }); jQuery.each({ appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, function (b, a) { jQuery.fn[b] = function () { var b = arguments; return this.each(function () { for (var c = 0, d = b.length; c < d; c++) jQuery(b[c])[a](this) }) } }); jQuery.each({ removeAttr: function (a) { jQuery.attr(this, a, ""); this.nodeType == 1 && this.removeAttribute(a) }, addClass: function (a) { jQuery.className.add(this, a) }, removeClass: function (a) { jQuery.className.remove(this, a) }, toggleClass: function (a) { jQuery.className[jQuery.className.has(this, a) ? "remove" : "add"](this, a) }, remove: function (a) { if (!a || jQuery.filter(a, [this]).r.length) { jQuery("*", this).add(this).each(function () { jQuery.event.remove(this); jQuery.removeData(this) }); this.parentNode && this.parentNode.removeChild(this) } }, empty: function () { jQuery(">*", this).remove(); while (this.firstChild) this.removeChild(this.firstChild) } }, function (a, b) { jQuery.fn[a] = function () { return this.each(b, arguments) } }); jQuery.each(["Height", "Width"], function (c, a) { var b = a.toLowerCase(); jQuery.fn[b] = function (c) { return this[0] == window ? jQuery.browser.opera && document.body["client" + a] || jQuery.browser.safari && window["inner" + a] || document.compatMode == "CSS1Compat" && document.documentElement["client" + a] || document.body["client" + a] : this[0] == document ? Math.max(Math.max(document.body["scroll" + a], document.documentElement["scroll" + a]), Math.max(document.body["offset" + a], document.documentElement["offset" + a])) : c == undefined ? this.length ? jQuery.css(this[0], b) : null : this.css(b, c.constructor == String ? c : c + "px") } }); var chars = jQuery.browser.safari && parseInt(jQuery.browser.version) < 417 ? "(?:[\\w*_-]|\\\\.)" : "(?:[\\w\u0128-\uffff*_-]|\\\\.)", quickChild = new RegExp("^>\\s*(" + chars + "+)"), quickID = new RegExp("^(" + chars + "+)(#)(" + chars + "+)"), quickClass = new RegExp("^([#.]?)(" + chars + "*)"); jQuery.extend({ expr: { "": function (b, c, a) { return a[2] == "*" || jQuery.nodeName(b, a[2]) }, "#": function (a, c, b) { return a.getAttribute("id") == b[2] }, ":": { lt: function (c, a, b) { return a < b[3] - 0 }, gt: function (c, a, b) { return a > b[3] - 0 }, nth: function (c, a, b) { return b[3] - 0 == a }, eq: function (c, a, b) { return b[3] - 0 == a }, first: function (b, a) { return a == 0 }, last: function (c, a, d, b) { return a == b.length - 1 }, even: function (b, a) { return a % 2 == 0 }, odd: function (b, a) { return a % 2 }, "first-child": function (a) { return a.parentNode.getElementsByTagName("*")[0] == a }, "last-child": function (a) { return jQuery.nth(a.parentNode.lastChild, 1, "previousSibling") == a }, "only-child": function (a) { return !jQuery.nth(a.parentNode.lastChild, 2, "previousSibling") }, parent: function (a) { return a.firstChild }, empty: function (a) { return !a.firstChild }, contains: function (a, c, b) { return (a.textContent || a.innerText || jQuery(a).text() || "").indexOf(b[3]) >= 0 }, visible: function (a) { return "hidden" != a.type && jQuery.css(a, "display") != "none" && jQuery.css(a, "visibility") != "hidden" }, hidden: function (a) { return "hidden" == a.type || jQuery.css(a, "display") == "none" || jQuery.css(a, "visibility") == "hidden" }, enabled: function (a) { return !a.disabled }, disabled: function (a) { return a.disabled }, checked: function (a) { return a.checked }, selected: function (a) { return a.selected || jQuery.attr(a, "selected") }, text: function (a) { return "text" == a.type }, radio: function (a) { return "radio" == a.type }, checkbox: function (a) { return "checkbox" == a.type }, file: function (a) { return "file" == a.type }, password: function (a) { return "password" == a.type }, submit: function (a) { return "submit" == a.type }, image: function (a) { return "image" == a.type }, reset: function (a) { return "reset" == a.type }, button: function (a) { return "button" == a.type || jQuery.nodeName(a, "button") }, input: function (a) { return /input|select|textarea|button/i.test(a.nodeName) }, has: function (a, c, b) { return jQuery.find(b[3], a).length }, header: function (a) { return /h\d/i.test(a.nodeName) }, animated: function (a) { return jQuery.grep(jQuery.timers, function (b) { return a == b.elem }).length } } }, parse: [/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/, /^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/, new RegExp("^([:.#]*)(" + chars + "+)")], multiFilter: function (a, d, e) { var f, b = []; while (a && a != f) { f = a; var c = jQuery.filter(a, d, e); a = c.t.replace(/^\s*,\s*/, ""); b = e ? (d = c.r) : jQuery.merge(b, c.r) } return b }, find: function (b, f) { if (typeof b != "string") return [b]; if (f && f.nodeType != 1 && f.nodeType != 9) return []; f = f || document; var c = [f], k = [], s, i; while (b && s != b) { var d = []; s = b; b = jQuery.trim(b); var p = false, m = quickChild, a = m.exec(b); if (a) { i = a[1].toUpperCase(); for (var e = 0; c[e]; e++) for (var j = c[e].firstChild; j; j = j.nextSibling) j.nodeType == 1 && (i == "*" || j.nodeName.toUpperCase() == i) && d.push(j); c = d; b = b.replace(m, ""); if (b.indexOf(" ") == 0) continue; p = true } else { m = /^([>+~])\s*(\w*)/i; if ((a = m.exec(b)) != null) { d = []; var r = {}; i = a[2].toUpperCase(); a = a[1]; for (var o = 0, w = c.length; o < w; o++) for (var h = a == "~" || a == "+" ? c[o].nextSibling : c[o].firstChild; h; h = h.nextSibling) if (h.nodeType == 1) { var v = jQuery.data(h); if (a == "~" && r[v]) break; if (!i || h.nodeName.toUpperCase() == i) { if (a == "~") r[v] = true; d.push(h) } if (a == "+") break } c = d; b = jQuery.trim(b.replace(m, "")); p = true } } if (b && !p) if (!b.indexOf(",")) { f == c[0] && c.shift(); k = jQuery.merge(k, c); d = c = [f]; b = " " + b.substr(1, b.length) } else { var n = quickID, a = n.exec(b); if (a) a = [0, a[2], a[3], a[1]]; else { n = quickClass; a = n.exec(b) } a[2] = a[2].replace(/\\/g, ""); var l = c[c.length - 1]; if (a[1] == "#" && l && l.getElementById && !jQuery.isXMLDoc(l)) { var g = l.getElementById(a[2]); if ((jQuery.browser.msie || jQuery.browser.opera) && g && typeof g.id == "string" && g.id != a[2]) g = jQuery('[@id="' + a[2] + '"]', l)[0]; c = d = g && (!a[3] || jQuery.nodeName(g, a[3])) ? [g] : [] } else { for (var e = 0; c[e]; e++) { var q = a[1] == "#" && a[3] ? a[3] : a[1] != "" || a[0] == "" ? "*" : a[2]; if (q == "*" && c[e].nodeName.toLowerCase() == "object") q = "param"; d = jQuery.merge(d, c[e].getElementsByTagName(q)) } if (a[1] == ".") d = jQuery.classFilter(d, a[2]); if (a[1] == "#") { for (var t = [], e = 0; d[e]; e++) if (d[e].getAttribute("id") == a[2]) { t = [d[e]]; break } d = t } c = d } b = b.replace(n, "") } if (b) { var u = jQuery.filter(b, d); c = d = u.r; b = jQuery.trim(u.t) } } if (b) c = []; c && f == c[0] && c.shift(); k = jQuery.merge(k, c); return k }, classFilter: function (c, b, e) { b = " " + b + " "; for (var f = [], a = 0; c[a]; a++) { var d = (" " + c[a].className + " ").indexOf(b) >= 0; (!e && d || e && !d) && f.push(c[a]) } return f }, filter: function (t, r, not) { var last; while (t && t != last) { last = t; for (var p = jQuery.parse, m, i = 0; p[i]; i++) { m = p[i].exec(t); if (m) { t = t.substring(m[0].length); m[2] = m[2].replace(/\\/g, ""); break } } if (!m) break; if (m[1] == ":" && m[2] == "not") r = isSimple.test(m[3]) ? jQuery.filter(m[3], r, true).r : jQuery(r).not(m[3]); else if (m[1] == ".") r = jQuery.classFilter(r, m[2], not); else if (m[1] == "[") { for (var tmp = [], type = m[3], i = 0, rl = r.length; i < rl; i++) { var a = r[i], z = a[jQuery.props[m[2]] || m[2]]; if (z == null || /href|src|selected/.test(m[2])) z = jQuery.attr(a, m[2]) || ""; (type == "" && !!z || type == "=" && z == m[5] || type == "!=" && z != m[5] || type == "^=" && z && !z.indexOf(m[5]) || type == "$=" && z.substr(z.length - m[5].length) == m[5] || (type == "*=" || type == "~=") && z.indexOf(m[5]) >= 0) ^ not && tmp.push(a) } r = tmp } else if (m[1] == ":" && m[2] == "nth-child") { for (var merge = {}, tmp = [], test = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3] == "even" && "2n" || m[3] == "odd" && "2n+1" || !/\D/.test(m[3]) && "0n+" + m[3] || m[3]), first = test[1] + (test[2] || 1) - 0, last = test[3] - 0, i = 0, rl = r.length; i < rl; i++) { var node = r[i], parentNode = node.parentNode, id = jQuery.data(parentNode); if (!merge[id]) { for (var c = 1, n = parentNode.firstChild; n; n = n.nextSibling) if (n.nodeType == 1) n.nodeIndex = c++; merge[id] = true } var add = false; if (first == 0) { if (node.nodeIndex == last) add = true } else if ((node.nodeIndex - last) % first == 0 && (node.nodeIndex - last) / first >= 0) add = true; add ^ not && tmp.push(node) } r = tmp } else { var fn = jQuery.expr[m[1]]; if (typeof fn == "object") fn = fn[m[2]]; if (typeof fn == "string") fn = eval("false||function(a,i){return " + fn + ";}"); r = jQuery.grep(r, function (a, b) { return fn(a, b, m, r) }, not) } } return { r: r, t: t} }, dir: function (d, c) { var b = [], a = d[c]; while (a && a != document) { a.nodeType == 1 && b.push(a); a = a[c] } return b }, nth: function (a, b, c) { b = b || 1; for (var d = 0; a; a = a[c]) if (a.nodeType == 1 && ++d == b) break; return a }, sibling: function (a, b) { for (var c = []; a; a = a.nextSibling) a.nodeType == 1 && (!b || a != b) && c.push(a); return c } }); jQuery.event = { add: function (a, g, b, e) { if (a.nodeType == 3 || a.nodeType == 8) return; if (jQuery.browser.msie && a.setInterval != undefined) a = window; if (!b.guid) b.guid = this.guid++; if (e != undefined) { var f = b; b = function () { return f.apply(this, arguments) }; b.data = e; b.guid = f.guid } var d = jQuery.data(a, "events") || jQuery.data(a, "events", {}), c = jQuery.data(a, "handle") || jQuery.data(a, "handle", function () { var a; if (typeof jQuery == "undefined" || jQuery.event.triggered) return a; a = jQuery.event.handle.apply(arguments.callee.elem, arguments); return a }); c.elem = a; jQuery.each(g.split(/\s+/), function (h, e) { var g = e.split("."); e = g[0]; b.type = g[1]; var f = d[e]; if (!f) { f = d[e] = {}; if (!jQuery.event.special[e] || jQuery.event.special[e].setup.call(a) === false) if (a.addEventListener) a.addEventListener(e, c, false); else a.attachEvent && a.attachEvent("on" + e, c) } f[b.guid] = b; jQuery.event.global[e] = true }); a = null }, guid: 1, global: {}, remove: function (a, c, d) { if (a.nodeType == 3 || a.nodeType == 8) return; var b = jQuery.data(a, "events"), e, h; if (b) { if (c == undefined || typeof c == "string" && c.charAt(0) == ".") for (var g in b) this.remove(a, g + (c || "")); else { if (c.type) { d = c.handler; c = c.type } jQuery.each(c.split(/\s+/), function (g, c) { var f = c.split("."); c = f[0]; if (b[c]) { if (d) delete b[c][d.guid]; else for (d in b[c]) if (!f[1] || b[c][d].type == f[1]) delete b[c][d]; for (e in b[c]) break; if (!e) { if (!jQuery.event.special[c] || jQuery.event.special[c].teardown.call(a) === false) if (a.removeEventListener) a.removeEventListener(c, jQuery.data(a, "handle"), false); else a.detachEvent && a.detachEvent("on" + c, jQuery.data(a, "handle")); e = null; delete b[c] } } }) } for (e in b) break; if (!e) { var f = jQuery.data(a, "handle"); if (f) f.elem = null; jQuery.removeData(a, "events"); jQuery.removeData(a, "handle") } } }, trigger: function (c, b, a, j, e) { b = jQuery.makeArray(b || []); if (c.indexOf("!") >= 0) { c = c.slice(0, -1); var i = true } if (!a) this.global[c] && jQuery("*").add([window, document]).trigger(c, b); else { if (a.nodeType == 3 || a.nodeType == 8) return undefined; var d, f, h = jQuery.isFunction(a[c] || null), g = !b[0] || !b[0].preventDefault; g && b.unshift(this.fix({ type: c, target: a })); b[0].type = c; if (i) b[0].exclusive = true; if (jQuery.isFunction(jQuery.data(a, "handle"))) d = jQuery.data(a, "handle").apply(a, b); if (!h && a["on" + c] && a["on" + c].apply(a, b) === false) d = false; g && b.shift(); if (e && jQuery.isFunction(e)) { f = e.apply(a, d == null ? b : b.concat(d)); if (f !== undefined) d = f } if (h && j !== false && d !== false && !(jQuery.nodeName(a, "a") && c == "click")) { this.triggered = true; try { a[c]() } catch (k) { } } this.triggered = false } return d }, handle: function (a) { var e; a = jQuery.event.fix(a || window.event || {}); var d = a.type.split("."); a.type = d[0]; var f = jQuery.data(this, "events") && jQuery.data(this, "events")[a.type], c = Array.prototype.slice.call(arguments, 1); c.unshift(a); for (var h in f) { var b = f[h]; c[0].handler = b; c[0].data = b.data; if (!d[1] && !a.exclusive || b.type == d[1]) { var g = b.apply(this, c); if (e !== false) e = g; if (g === false) { a.preventDefault(); a.stopPropagation() } } } if (jQuery.browser.msie) a.target = a.preventDefault = a.stopPropagation = a.handler = a.data = null; return e }, fix: function (a) { var b = a; a = jQuery.extend({}, b); a.preventDefault = function () { b.preventDefault && b.preventDefault(); b.returnValue = false }; a.stopPropagation = function () { b.stopPropagation && b.stopPropagation(); b.cancelBubble = true }; if (!a.target) a.target = a.srcElement || document; if (a.target.nodeType == 3) a.target = b.target.parentNode; if (!a.relatedTarget && a.fromElement) a.relatedTarget = a.fromElement == a.target ? a.toElement : a.fromElement; if (a.pageX == null && a.clientX != null) { var c = document.documentElement, d = document.body; a.pageX = a.clientX + (c && c.scrollLeft || d && d.scrollLeft || 0) - (c.clientLeft || 0); a.pageY = a.clientY + (c && c.scrollTop || d && d.scrollTop || 0) - (c.clientTop || 0) } if (!a.which && (a.charCode || a.charCode === 0 ? a.charCode : a.keyCode)) a.which = a.charCode || a.keyCode; if (!a.metaKey && a.ctrlKey) a.metaKey = a.ctrlKey; if (!a.which && a.button) a.which = a.button & 1 ? 1 : a.button & 2 ? 3 : a.button & 4 ? 2 : 0; return a }, special: { ready: { setup: function () { bindReady(); return }, teardown: function () { return } }, mouseenter: { setup: function () { if (jQuery.browser.msie) return false; jQuery(this).bind("mouseover", jQuery.event.special.mouseenter.handler); return true }, teardown: function () { if (jQuery.browser.msie) return false; jQuery(this).unbind("mouseover", jQuery.event.special.mouseenter.handler); return true }, handler: function (a) { if (withinElement(a, this)) return true; arguments[0].type = "mouseenter"; return jQuery.event.handle.apply(this, arguments) } }, mouseleave: { setup: function () { if (jQuery.browser.msie) return false; jQuery(this).bind("mouseout", jQuery.event.special.mouseleave.handler); return true }, teardown: function () { if (jQuery.browser.msie) return false; jQuery(this).unbind("mouseout", jQuery.event.special.mouseleave.handler); return true }, handler: function (a) { if (withinElement(a, this)) return true; arguments[0].type = "mouseleave"; return jQuery.event.handle.apply(this, arguments) } }} }; jQuery.fn.extend({ bind: function (b, a, c) { return b == "unload" ? this.one(b, a, c) : this.each(function () { jQuery.event.add(this, b, c || a, c && a) }) }, one: function (c, a, b) { return this.each(function () { jQuery.event.add(this, c, function (c) { jQuery(this).unbind(c); return (b || a).apply(this, arguments) }, b && a) }) }, unbind: function (a, b) { return this.each(function () { jQuery.event.remove(this, a, b) }) }, trigger: function (b, a, c) { return this.each(function () { jQuery.event.trigger(b, a, this, true, c) }) }, triggerHandler: function (b, a, c) { if (this[0]) return jQuery.event.trigger(b, a, this[0], false, c); return undefined }, toggle: function () { var a = arguments; return this.click(function (b) { this.lastToggle = 0 == this.lastToggle ? 1 : 0; b.preventDefault(); return a[this.lastToggle].apply(this, arguments) || false }) }, hover: function (a, b) { return this.bind("mouseenter", a).bind("mouseleave", b) }, ready: function (a) { bindReady(); if (jQuery.isReady) a.call(document, jQuery); else jQuery.readyList.push(function () { return a.call(this, jQuery) }); return this } }); jQuery.extend({ isReady: false, readyList: [], ready: function () { if (!jQuery.isReady) { jQuery.isReady = true; if (jQuery.readyList) { jQuery.each(jQuery.readyList, function () { this.apply(document) }); jQuery.readyList = null } jQuery(document).triggerHandler("ready") } } }); var readyBound = false; function bindReady() { if (readyBound) return; readyBound = true; document.addEventListener && !jQuery.browser.opera && document.addEventListener("DOMContentLoaded", jQuery.ready, false); jQuery.browser.msie && window == top && function () { if (jQuery.isReady) return; try { document.documentElement.doScroll("left") } catch (a) { setTimeout(arguments.callee, 0); return } jQuery.ready() } (); jQuery.browser.opera && document.addEventListener("DOMContentLoaded", function () { if (jQuery.isReady) return; for (var a = 0; a < document.styleSheets.length; a++) if (document.styleSheets[a].disabled) { setTimeout(arguments.callee, 0); return } jQuery.ready() }, false); if (jQuery.browser.safari) { var a; (function () { if (jQuery.isReady) return; if (document.readyState != "loaded" && document.readyState != "complete") { setTimeout(arguments.callee, 0); return } if (a === undefined) a = jQuery("style, link[rel=stylesheet]").length; if (document.styleSheets.length != a) { setTimeout(arguments.callee, 0); return } jQuery.ready() })() } jQuery.event.add(window, "load", jQuery.ready) } jQuery.each("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,change,select,submit,keydown,keypress,keyup,error".split(","), function (b, a) { jQuery.fn[a] = function (b) { return b ? this.bind(a, b) : this.trigger(a) } }); var withinElement = function (d, b) { var a = d.relatedTarget; while (a && a != b) try { a = a.parentNode } catch (c) { a = b } return a == b }; jQuery(window).bind("unload", function () { jQuery("*").add(document).unbind() }); jQuery.fn.extend({ load: function (a, b, c) { if (jQuery.isFunction(a)) return this.bind("load", a); var d = a.indexOf(" "); if (d >= 0) { var e = a.slice(d, a.length); a = a.slice(0, d) } c = c || function () { }; var g = "GET"; if (b) if (jQuery.isFunction(b)) { c = b; b = null } else { b = jQuery.param(b); g = "POST" } var f = this; jQuery.ajax({ url: a, type: g, dataType: "html", data: b, complete: function (a, b) { (b == "success" || b == "notmodified") && f.html(e ? jQuery("<div/>").append(a.responseText.replace(/<script(.|\s)*?\/script>/g, "")).find(e) : a.responseText); f.each(c, [a.responseText, b, a]) } }); return this }, serialize: function () { return jQuery.param(this.serializeArray()) }, serializeArray: function () { return this.map(function () { return jQuery.nodeName(this, "form") ? jQuery.makeArray(this.elements) : this }).filter(function () { return this.name && !this.disabled && (this.checked || /select|textarea/i.test(this.nodeName) || /text|hidden|password/i.test(this.type)) }).map(function (c, b) { var a = jQuery(this).val(); return a == null ? null : a.constructor == Array ? jQuery.map(a, function (a) { return { name: b.name, value: a} }) : { name: b.name, value: a} }).get() } }); jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","), function (b, a) { jQuery.fn[a] = function (b) { return this.bind(a, b) } }); var jsc = (new Date).getTime(); jQuery.extend({ "get": function (d, a, b, c) { if (jQuery.isFunction(a)) { b = a; a = null } return jQuery.ajax({ type: "GET", url: d, data: a, success: b, dataType: c }) }, getScript: function (b, a) { return jQuery.get(b, null, a, "script") }, getJSON: function (c, b, a) { return jQuery.get(c, b, a, "json") }, post: function (d, a, b, c) { if (jQuery.isFunction(a)) { b = a; a = {} } return jQuery.ajax({ type: "POST", url: d, data: a, success: b, dataType: c }) }, ajaxSetup: function (a) { jQuery.extend(jQuery.ajaxSettings, a) }, ajaxSettings: { global: true, type: "GET", timeout: 0, contentType: "application/x-www-form-urlencoded", processData: true, async: true, data: null, username: null, password: null, 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 (a) { var c, f = /=\?(&|$)/g, e, l; a = jQuery.extend(true, a, jQuery.extend(true, {}, jQuery.ajaxSettings, a)); if (a.data && a.processData && typeof a.data != "string") a.data = jQuery.param(a.data); if (a.dataType == "jsonp") { if (a.type.toLowerCase() == "get") { if (!a.url.match(f)) a.url += (a.url.match(/\?/) ? "&" : "?") + (a.jsonp || "callback") + "=?" } else if (!a.data || !a.data.match(f)) a.data = (a.data ? a.data + "&" : "") + (a.jsonp || "callback") + "=?"; a.dataType = "json" } if (a.dataType == "json" && (a.data && a.data.match(f) || a.url.match(f))) { c = "jsonp" + jsc++; if (a.data) a.data = (a.data + "").replace(f, "=" + c + "$1"); a.url = a.url.replace(f, "=" + c + "$1"); a.dataType = "script"; window[c] = function (a) { l = a; k(); j(); window[c] = undefined; try { delete window[c] } catch (b) { } g && g.removeChild(d) } } if (a.dataType == "script" && a.cache == null) a.cache = false; if (a.cache === false && a.type.toLowerCase() == "get") { var q = (new Date).getTime(), p = a.url.replace(/(\?|&)_=.*?(&|$)/, "$1_=" + q + "$2"); a.url = p + (p == a.url ? (a.url.match(/\?/) ? "&" : "?") + "_=" + q : "") } if (a.data && a.type.toLowerCase() == "get") { a.url += (a.url.match(/\?/) ? "&" : "?") + a.data; a.data = null } a.global && !jQuery.active++ && jQuery.event.trigger("ajaxStart"); if ((!a.url.indexOf("http") || !a.url.indexOf("//")) && a.dataType == "script" && a.type.toLowerCase() == "get") { var g = document.getElementsByTagName("head")[0], d = document.createElement("script"); d.src = a.url; if (a.scriptCharset) d.charset = a.scriptCharset; if (!c) { var o = false; d.onload = d.onreadystatechange = function () { if (!o && (!this.readyState || this.readyState == "loaded" || this.readyState == "complete")) { o = true; k(); j(); g.removeChild(d) } } } g.appendChild(d); return undefined } var i = false, b = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest; b.open(a.type, a.url, a.async, a.username, a.password); try { a.data && b.setRequestHeader("Content-Type", a.contentType); a.ifModified && b.setRequestHeader("If-Modified-Since", jQuery.lastModified[a.url] || "Thu, 01 Jan 1970 00:00:00 GMT"); b.setRequestHeader("X-Requested-With", "XMLHttpRequest"); b.setRequestHeader("Accept", a.dataType && a.accepts[a.dataType] ? a.accepts[a.dataType] + ", */*" : a.accepts._default) } catch (n) { } a.beforeSend && a.beforeSend(b); a.global && jQuery.event.trigger("ajaxSend", [b, a]); var h = function (f) { if (!i && b && (b.readyState == 4 || f == "timeout")) { i = true; if (m) { clearInterval(m); m = null } e = f == "timeout" && "timeout" || !jQuery.httpSuccess(b) && "error" || a.ifModified && jQuery.httpNotModified(b, a.url) && "notmodified" || "success"; if (e == "success") try { l = jQuery.httpData(b, a.dataType) } catch (g) { e = "parsererror" } if (e == "success") { var d; try { d = b.getResponseHeader("Last-Modified") } catch (g) { } if (a.ifModified && d) jQuery.lastModified[a.url] = d; !c && k() } else jQuery.handleError(a, b, e); j(); if (a.async) b = null } }; if (a.async) { var m = setInterval(h, 13); a.timeout > 0 && setTimeout(function () { if (b) { b.abort(); !i && h("timeout") } }, a.timeout) } try { b.send(a.data) } catch (n) { jQuery.handleError(a, b, null, n) } !a.async && h(); function k() { a.success && a.success(l, e); a.global && jQuery.event.trigger("ajaxSuccess", [b, a]) } function j() { a.complete && a.complete(b, e); a.global && jQuery.event.trigger("ajaxComplete", [b, a]); a.global && ! --jQuery.active && jQuery.event.trigger("ajaxStop") } return b }, handleError: function (a, b, d, c) { a.error && a.error(b, d, c); a.global && jQuery.event.trigger("ajaxError", [b, a, c]) }, active: 0, httpSuccess: function (a) { try { return !a.status && location.protocol == "file:" || a.status >= 200 && a.status < 300 || a.status == 304 || a.status == 1223 || jQuery.browser.safari && a.status == undefined } catch (b) { } return false }, httpNotModified: function (a, c) { try { var b = a.getResponseHeader("Last-Modified"); return a.status == 304 || b == jQuery.lastModified[c] || jQuery.browser.safari && a.status == undefined } catch (d) { } return false }, httpData: function (r, type) { var ct = r.getResponseHeader("content-type"), xml = type == "xml" || !type && ct && ct.indexOf("xml") >= 0, data = xml ? r.responseXML : r.responseText; if (xml && data.documentElement.tagName == "parsererror") throw "parsererror"; type == "script" && jQuery.globalEval(data); if (type == "json") data = eval("(" + data + ")"); return data }, param: function (a) { var c = []; if (a.constructor == Array || a.jquery) jQuery.each(a, function () { c.push(encodeURIComponent(this.name) + "=" + encodeURIComponent(this.value)) }); else for (var b in a) if (a[b] && a[b].constructor == Array) jQuery.each(a[b], function () { c.push(encodeURIComponent(b) + "=" + encodeURIComponent(this)) }); else c.push(encodeURIComponent(b) + "=" + encodeURIComponent(a[b])); return c.join("&").replace(/%20/g, "+") } }); jQuery.fn.extend({ show: function (a, b) { return a ? this.animate({ height: "show", width: "show", opacity: "show" }, a, b) : this.filter(":hidden").each(function () { this.style.display = this.oldblock || ""; if (jQuery.css(this, "display") == "none") { var a = jQuery("<" + this.tagName + " />").appendTo("body"); this.style.display = a.css("display"); if (this.style.display == "none") this.style.display = "block"; a.remove() } }).end() }, hide: function (a, b) { return a ? this.animate({ height: "hide", width: "hide", opacity: "hide" }, a, b) : this.filter(":visible").each(function () { this.oldblock = this.oldblock || jQuery.css(this, "display"); this.style.display = "none" }).end() }, _toggle: jQuery.fn.toggle, toggle: function (a, b) { return jQuery.isFunction(a) && jQuery.isFunction(b) ? this._toggle(a, b) : a ? this.animate({ height: "toggle", width: "toggle", opacity: "toggle" }, a, b) : this.each(function () { jQuery(this)[jQuery(this).is(":hidden") ? "show" : "hide"]() }) }, slideDown: function (b, a) { return this.animate({ height: "show" }, b, a) }, slideUp: function (b, a) { return this.animate({ height: "hide" }, b, a) }, slideToggle: function (b, a) { return this.animate({ height: "toggle" }, b, a) }, fadeIn: function (b, a) { return this.animate({ opacity: "show" }, b, a) }, fadeOut: function (b, a) { return this.animate({ opacity: "hide" }, b, a) }, fadeTo: function (b, c, a) { return this.animate({ opacity: c }, b, a) }, animate: function (a, e, d, c) { var b = jQuery.speed(e, d, c); return this[b.queue === false ? "each" : "queue"](function () { if (this.nodeType != 1) return false; var c = jQuery.extend({}, b), e = jQuery(this).is(":hidden"), f = this; for (var d in a) { if (a[d] == "hide" && e || a[d] == "show" && !e) return jQuery.isFunction(c.complete) && c.complete.apply(this); if (d == "height" || d == "width") { c.display = jQuery.css(this, "display"); c.overflow = this.style.overflow } } if (c.overflow != null) this.style.overflow = "hidden"; c.curAnim = jQuery.extend({}, a); jQuery.each(a, function (k, h) { var i = new jQuery.fx(f, c, k); if (/toggle|show|hide/.test(h)) i[h == "toggle" ? e ? "show" : "hide" : h](a); else { var d = h.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/), b = i.cur(true) || 0; if (d) { var g = parseFloat(d[2]), j = d[3] || "px"; if (j != "px") { f.style[k] = (g || 1) + j; b = (g || 1) / i.cur(true) * b; f.style[k] = b + j } if (d[1]) g = (d[1] == "-=" ? -1 : 1) * g + b; i.custom(b, g, j) } else i.custom(b, h, "") } }); return true }) }, queue: function (a, b) { if (jQuery.isFunction(a) || a && a.constructor == Array) { b = a; a = "fx" } if (!a || typeof a == "string" && !b) return queue(this[0], a); return this.each(function () { if (b.constructor == Array) queue(this, a, b); else { queue(this, a).push(b); queue(this, a).length == 1 && b.apply(this) } }) }, stop: function (c, b) { var a = jQuery.timers; c && this.queue([]); this.each(function () { for (var c = a.length - 1; c >= 0; c--) if (a[c].elem == this) { b && a[c](true); a.splice(c, 1) } }); !b && this.dequeue(); return this } }); var queue = function (c, a, b) { if (!c) return undefined; a = a || "fx"; var d = jQuery.data(c, a + "queue"); if (!d || b) d = jQuery.data(c, a + "queue", b ? jQuery.makeArray(b) : []); return d }; jQuery.fn.dequeue = function (a) { a = a || "fx"; return this.each(function () { var b = queue(this, a); b.shift(); b.length && b[0].apply(this) }) }; jQuery.extend({ speed: function (b, c, d) { var a = b && b.constructor == Object ? b : { complete: d || !d && c || jQuery.isFunction(b) && b, duration: b, easing: d && c || c && c.constructor != Function && c }; a.duration = (a.duration && a.duration.constructor == Number ? a.duration : ({ slow: 600, fast: 200 })[a.duration]) || 400; a.old = a.complete; a.complete = function () { a.queue !== false && jQuery(this).dequeue(); jQuery.isFunction(a.old) && a.old.apply(this) }; return a }, easing: { linear: function (c, d, a, b) { return a + b * c }, swing: function (c, d, a, b) { return (-Math.cos(c * Math.PI) / 2 + .5) * b + a } }, timers: [], timerId: null, fx: function (b, a, c) { this.options = a; this.elem = b; this.prop = c; if (!a.orig) a.orig = {} } }); jQuery.fx.prototype = { update: function () { this.options.step && this.options.step.apply(this.elem, [this.now, this]); (jQuery.fx.step[this.prop] || jQuery.fx.step._default)(this); if (this.prop == "height" || this.prop == "width") this.elem.style.display = "block" }, cur: function (b) { if (this.elem[this.prop] != null && this.elem.style[this.prop] == null) return this.elem[this.prop]; var a = parseFloat(jQuery.css(this.elem, this.prop, b)); return a && a > -1e4 ? a : parseFloat(jQuery.curCSS(this.elem, this.prop)) || 0 }, custom: function (b, e, d) { this.startTime = (new Date).getTime(); this.start = b; this.end = e; this.unit = d || this.unit || "px"; this.now = this.start; this.pos = this.state = 0; this.update(); var c = this; function a(a) { return c.step(a) } a.elem = this.elem; jQuery.timers.push(a); if (jQuery.timerId == null) jQuery.timerId = setInterval(function () { for (var a = jQuery.timers, b = 0; b < a.length; b++) !a[b]() && a.splice(b--, 1); if (!a.length) { clearInterval(jQuery.timerId); jQuery.timerId = null } }, 13) }, show: function () { this.options.orig[this.prop] = jQuery.attr(this.elem.style, this.prop); this.options.show = true; this.custom(0, this.cur()); if (this.prop == "width" || this.prop == "height") this.elem.style[this.prop] = "1px"; jQuery(this.elem).show() }, hide: function () { this.options.orig[this.prop] = jQuery.attr(this.elem.style, this.prop); this.options.hide = true; this.custom(this.cur(), 0) }, step: function (e) { var d = (new Date).getTime(); if (e || d > this.options.duration + this.startTime) { this.now = this.end; this.pos = this.state = 1; this.update(); this.options.curAnim[this.prop] = true; var a = true; for (var f in this.options.curAnim) if (this.options.curAnim[f] !== true) a = false; if (a) { if (this.options.display != null) { this.elem.style.overflow = this.options.overflow; this.elem.style.display = this.options.display; if (jQuery.css(this.elem, "display") == "none") this.elem.style.display = "block" } if (this.options.hide) this.elem.style.display = "none"; if (this.options.hide || this.options.show) for (var c in this.options.curAnim) jQuery.attr(this.elem.style, c, this.options.orig[c]) } a && jQuery.isFunction(this.options.complete) && this.options.complete.apply(this.elem); return false } else { var b = d - this.startTime; this.state = b / this.options.duration; this.pos = jQuery.easing[this.options.easing || (jQuery.easing.swing ? "swing" : "linear")](this.state, b, 0, 1, this.options.duration); this.now = this.start + (this.end - this.start) * this.pos; this.update() } return true } }; jQuery.fx.step = { scrollLeft: function (a) { a.elem.scrollLeft = a.now }, scrollTop: function (a) { a.elem.scrollTop = a.now }, opacity: function (a) { jQuery.attr(a.elem.style, "opacity", a.now) }, _default: function (a) { a.elem.style[a.prop] = a.now + a.unit } }; jQuery.fn.offset = function () { var left = 0, top = 0, elem = this[0], results; if (elem) with (jQuery.browser) { var parent = elem.parentNode, offsetChild = elem, offsetParent = elem.offsetParent, doc = elem.ownerDocument, safari2 = safari && parseInt(version) < 522 && !/adobeair/i.test(userAgent), fixed = jQuery.css(elem, "position") == "fixed"; if (elem.getBoundingClientRect) { var box = elem.getBoundingClientRect(); add(box.left + Math.max(doc.documentElement.scrollLeft, doc.body.scrollLeft), box.top + Math.max(doc.documentElement.scrollTop, doc.body.scrollTop)); add(-doc.documentElement.clientLeft, -doc.documentElement.clientTop) } else { add(elem.offsetLeft, elem.offsetTop); while (offsetParent) { add(offsetParent.offsetLeft, offsetParent.offsetTop); (mozilla && !/^t(able|d|h)$/i.test(offsetParent.tagName) || safari && !safari2) && border(offsetParent); if (!fixed && jQuery.css(offsetParent, "position") == "fixed") fixed = true; offsetChild = /^body$/i.test(offsetParent.tagName) ? offsetChild : offsetParent; offsetParent = offsetParent.offsetParent } while (parent && parent.tagName && !/^body|html$/i.test(parent.tagName)) { !/^inline|table.*$/i.test(jQuery.css(parent, "display")) && add(-parent.scrollLeft, -parent.scrollTop); mozilla && jQuery.css(parent, "overflow") != "visible" && border(parent); parent = parent.parentNode } (safari2 && (fixed || jQuery.css(offsetChild, "position") == "absolute") || mozilla && jQuery.css(offsetChild, "position") != "absolute") && add(-doc.body.offsetLeft, -doc.body.offsetTop); fixed && add(Math.max(doc.documentElement.scrollLeft, doc.body.scrollLeft), Math.max(doc.documentElement.scrollTop, doc.body.scrollTop)) } results = { top: top, left: left} } function border(a) { add(jQuery.curCSS(a, "borderLeftWidth", true), jQuery.curCSS(a, "borderTopWidth", true)) } function add(a, b) { left += parseInt(a) || 0; top += parseInt(b) || 0 } return results } })(); $(window).ready(function () { try { $("#dvImagens a").lightBox() } catch (d) { } var b = null, e = null; $("#btnEnviar").click(function c() { var d = 0; if (document.getElementById("formNome").value == "Nome" || document.getElementById("formNome").value == "Digite seu nome" || document.getElementById("formNome").value == "Ocorreu um erro no envio, tente mais tarde =)" || document.getElementById("formNome").value == "Mensagem Enviada Com Sucesso") { document.getElementById("formNome").value = "Digite seu nome"; document.getElementById("formNome").style.backgroundColor = "#990000"; document.getElementById("formNome").style.color = "#FFFFFF"; document.getElementById("formNome").parentNode.style.backgroundColor = "#990000"; d++ } if (document.getElementById("formMail").value == "E-mail" || document.getElementById("formMail").value == "Informe seu e-mail") { document.getElementById("formMail").value = "Informe seu e-mail"; document.getElementById("formMail").style.backgroundColor = "#990000"; document.getElementById("formMail").style.color = "#FFFFFF"; document.getElementById("formMail").parentNode.style.backgroundColor = "#990000"; d++ } else if (document.getElementById("formMail").value.indexOf("@") == -1 && document.getElementById("formMail").value.indexOf(".") == -1) { document.getElementById("formMail").value = "E-mail inv\u00e1lido"; document.getElementById("formMail").style.backgroundColor = "#990000"; document.getElementById("formMail").style.color = "#FFFFFF"; document.getElementById("formMail").parentNode.style.backgroundColor = "#990000"; d++ } if (document.getElementById("formMsg").value == "Mensagem" || document.getElementById("formMsg").value == "Escreva sua mensagem") { document.getElementById("formMsg").value = "Escreva sua mensagem"; document.getElementById("formMsg").style.backgroundColor = "#990000"; document.getElementById("formMsg").style.color = "#FFFFFF"; document.getElementById("formMsg").parentNode.style.backgroundColor = "#990000"; d++ } if (d == 0) { $("#btnEnviar").unbind("click"); var a = []; a[0] = document.getElementById("formMail").value; a[1] = document.getElementById("formMsg").value; a[2] = document.getElementById("formNome").value; $.get("handlers/contatoHandler.ashx", { nome: encodeURI(document.getElementById("formNome").value), mail: encodeURI(document.getElementById("formMail").value), msg: encodeURI(document.getElementById("formMsg").value) }, function (d) { if (d == "err") { document.getElementById("formMail").value = ""; document.getElementById("formMsg").value = ""; document.getElementById("formNome").value = "Ocorreu um erro no envio, tente mais tarde =)"; document.getElementById("formNome").style.backgroundColor = "#990000"; document.getElementById("formNome").style.color = "#FFFFFF"; document.getElementById("formNome").parentNode.style.backgroundColor = "#990000"; b = setTimeout(function () { document.getElementById("formMail").value = a[0]; document.getElementById("formMsg").value = a[1]; document.getElementById("formNome").value = a[2]; document.getElementById("formNome").style.color = "#999999"; document.getElementById("formNome").style.backgroundColor = "#E4E9EC"; document.getElementById("formNome").parentNode.style.backgroundColor = "#E4E9EC"; $("#btnEnviar").bind("click", c) }, 3e3) } else { document.getElementById("formMail").value = ""; document.getElementById("formMsg").value = ""; document.getElementById("formNome").value = "Mensagem Enviada Com Sucesso"; document.getElementById("formNome").style.backgroundColor = "#fbed21"; document.getElementById("formNome").style.color = "#666666"; document.getElementById("formNome").parentNode.style.backgroundColor = "#fbed21"; b = setTimeout(function () { document.getElementById("formMail").value = "E-mail"; document.getElementById("formMsg").value = "Mensagem"; document.getElementById("formNome").value = "Nome"; document.getElementById("formNome").style.color = "#999999"; document.getElementById("formNome").style.backgroundColor = "#E4E9EC"; document.getElementById("formNome").parentNode.style.backgroundColor = "#E4E9EC"; $("#btnEnviar").bind("click", c) }, 3e3) } }) } }); $("#dvMsg").hide(); $("#btnNewsEnviar").click(function a() { var c = 0; if (document.getElementById("newsNome").value == "Nome" || document.getElementById("newsNome").value == "") { document.getElementById("newsNome").className = "inputError"; c++ } else document.getElementById("newsNome").className = ""; if (document.getElementById("newsEmail").value == "E-mail" || document.getElementById("newsEmail").value == "") { document.getElementById("newsEmail").className = "inputError"; c++ } else if (document.getElementById("newsEmail").value.indexOf("@") == -1 && document.getElementById("newsEmail").value.indexOf(".") == -1) { document.getElementById("newsEmail").className = "inputError"; c++ } else document.getElementById("newsEmail").className = ""; if (document.getElementById("dia").selectedIndex == 0) { document.getElementById("dia").className = "inputError"; c++ } else document.getElementById("dia").className = ""; if (document.getElementById("mes").selectedIndex == 0) { document.getElementById("mes").className = "inputError"; c++ } else document.getElementById("mes").className = ""; if (c == 0) { $("#btnNewsEnviar").unbind("click"); var b = []; $.get("handlers/newsHandler.ashx", { newsNome: encodeURI(document.getElementById("newsNome").value), newsEmail: encodeURI(document.getElementById("newsEmail").value), dia: encodeURI(document.getElementById("dia").value), mes: encodeURI(document.getElementById("mes").value), op: encodeURI(document.getElementById("op").value) }, function (d) { b[0] = document.getElementById("newsNome").value; b[1] = document.getElementById("newsEmail").value; b[2] = document.getElementById("dia").value; b[3] = document.getElementById("mes").value; b[4] = document.getElementById("op").value; if (d == "sucCad" || d == "sucReat") { var c; $("#dvOrg").animate({ opacity: 0 }, 500); setTimeout(function () { document.getElementById("newsNome").value = "Nome"; document.getElementById("newsEmail").value = "E-mail"; document.getElementById("dia").selectedIndex = 0; document.getElementById("mes").selectedIndex = 0; c = document.getElementById("dvOrg").innerHTML; document.getElementById("dvOrg").innerHTML = "<h3 style='margin-top:-5px;'>Cadastro realizado com sucesso!</h3>"; $("#dvOrg").animate({ opacity: 1 }, 500) }, 1e3); setTimeout(function () { $("#dvOrg").animate({ opacity: 0 }, 500); setTimeout(function () { document.getElementById("dvOrg").innerHTML = c; $("#btnNewsEnviar").bind("click", a); $("#dvOrg").animate({ opacity: 1 }, 1e3) }, 1e3) }, 4e3) } else if (d == "errCad") { var c; $("#dvOrg").animate({ opacity: 0 }, 500); setTimeout(function () { c = document.getElementById("dvOrg").innerHTML; document.getElementById("dvOrg").innerHTML = "<h3 style='margin-top:-5px;'>E-mail n\u00e3o cadastrado</h3>"; $("#dvOrg").animate({ opacity: 1 }, 500) }, 1e3); setTimeout(function () { $("#dvOrg").animate({ opacity: 0 }, 500); setTimeout(function () { document.getElementById("dvOrg").innerHTML = c; document.getElementById("newsNome").value = b[0]; document.getElementById("newsEmail").value = b[1]; document.getElementById("dia").value = b[2]; document.getElementById("mes").value = b[3]; $("#btnNewsEnviar").bind("click", a); $("#dvOrg").animate({ opacity: 1 }, 1e3) }, 1e3) }, 4e3) } else if (d == "errCanc") { var c; $("#dvOrg").animate({ opacity: 0 }, 500); setTimeout(function () { document.getElementById("newsNome").value = "Nome"; document.getElementById("newsEmail").value = "E-mail"; document.getElementById("dia").selectedIndex = 0; document.getElementById("mes").selectedIndex = 0; c = document.getElementById("dvOrg").innerHTML; document.getElementById("dvOrg").innerHTML = "<h3 style='margin-top:-5px;'>E-mail j\u00e1 cadastrado</h3>"; $("#dvOrg").animate({ opacity: 1 }, 500) }, 1e3); setTimeout(function () { $("#dvOrg").animate({ opacity: 0 }, 500); setTimeout(function () { document.getElementById("dvOrg").innerHTML = c; document.getElementById("newsNome").value = b[0]; document.getElementById("newsEmail").value = b[1]; document.getElementById("dia").value = b[2]; document.getElementById("mes").value = b[3]; $("#btnNewsEnviar").bind("click", a); $("#dvOrg").animate({ opacity: 1 }, 1e3) }, 1e3) }, 4e3) } else if (d == "sucCanc") { var c; $("#dvOrg").animate({ opacity: 0 }, 500); setTimeout(function () { document.getElementById("newsNome").value = "Nome"; document.getElementById("newsEmail").value = "E-mail"; document.getElementById("dia").selectedIndex = 0; document.getElementById("mes").selectedIndex = 0; c = document.getElementById("dvOrg").innerHTML; document.getElementById("dvOrg").innerHTML = "<h3 style='margin-top:-5px;'>Cancelamento realizado com sucesso!</h3>"; $("#dvOrg").animate({ opacity: 1 }, 500) }, 1e3); setTimeout(function () { $("#dvOrg").animate({ opacity: 0 }, 500); setTimeout(function () { document.getElementById("dvOrg").innerHTML = c; $("#btnNewsEnviar").bind("click", a); $("#dvOrg").animate({ opacity: 1 }, 1e3) }, 1e3) }, 4e3) } else { var c; $("#dvOrg").animate({ opacity: 0 }, 500); setTimeout(function () { document.getElementById("newsNome").value = "Nome"; document.getElementById("newsEmail").value = "E-mail"; document.getElementById("dia").selectedIndex = 0; document.getElementById("mes").selectedIndex = 0; c = document.getElementById("dvOrg").innerHTML; document.getElementById("dvOrg").innerHTML = "<h3 style='margin-top:-5px;'>Ocorreu um erro no servidor,tente enviar mais tarde</h3>"; $("#dvOrg").animate({ opacity: 1 }, 500) }, 1e3); setTimeout(function () { $("#dvOrg").animate({ opacity: 0 }, 500); setTimeout(function () { document.getElementById("dvOrg").innerHTML = c; document.getElementById("newsNome").value = b[0]; document.getElementById("newsEmail").value = b[1]; document.getElementById("dia").value = b[2]; document.getElementById("mes").value = b[3]; $("#btnNewsEnviar").bind("click", a); $("#dvOrg").animate({ opacity: 1 }, 1e3) }, 1e3) }, 4e3) } }) } }); $("#mailLightBox").click(function () { jQuery.facebox("<div style='width: 470px; height: 230px;margin-left:42px;padding:0px;'><h3 id='dvPaiH3'>Enviar Por Email</h3><div class='inputContato'><input onfocus='clearInput(\"Seu Nome\", \"Digite o seu nome\", this.id)' onblur='fillInput(\"Seu Nome\", this.id)' id='mailBoxNome' type='text' value='Seu Nome' /></div><div class='inputContato'><input onfocus='clearInput(\"Seu E-mail\", \"Informe o seu e-mail\", this.id,\"Seu email \u00e9 inv\u00e1lido\")' onblur='fillInput(\"Seu E-mail\", this.id)' id='mailBoxMail' type='text' value='Seu E-mail' /></div><div class='inputContato' style='margin-bottom:25px;'><input onfocus='clearInput(\"E-mail do destin\u00e1tario\", \"Informe o e-mail do destino\", this.id,\"Email do destino inv\u00e1lido\")'  onblur='fillInput(\"E-mail do destin\u00e1tario\", this.id)' id='mailBoxDestino' type='text' value='E-mail do destin\u00e1tario' /></div><div><a id='btnEnviaMail' onclick='enviaMail();' class='divFooterLink' style='background-color: White; padding: 0px;' href='javascript:void(0);'><img alt='Botao' src='img/btnEnviar.jpg' /></a></div></div>");}) }); function enviaMail() { var b = 0; if (document.getElementById("mailBoxNome").value == "Seu Nome" || document.getElementById("mailBoxNome").value == "Digite o seu nome" || document.getElementById("mailBoxNome").value == "Ocorreu um erro no envio, tente mais tarde =)" || document.getElementById("mailBoxNome").value == "Mensagem Enviada Com Sucesso") { document.getElementById("mailBoxNome").value = "Digite o seu nome"; document.getElementById("mailBoxNome").style.backgroundColor = "#990000"; document.getElementById("mailBoxNome").style.color = "#FFFFFF"; document.getElementById("mailBoxNome").parentNode.style.backgroundColor = "#990000"; b++ } if (document.getElementById("mailBoxMail").value == "Seu E-mail" || document.getElementById("mailBoxMail").value == "Informe o seu e-mail") { document.getElementById("mailBoxMail").value = "Informe o seu e-mail"; document.getElementById("mailBoxMail").style.backgroundColor = "#990000"; document.getElementById("mailBoxMail").style.color = "#FFFFFF"; document.getElementById("mailBoxMail").parentNode.style.backgroundColor = "#990000"; b++ } else if (document.getElementById("mailBoxMail").value.indexOf("@") == -1 && document.getElementById("mailBoxMail").value.indexOf(".") == -1) { document.getElementById("mailBoxMail").value = "Seu email \u00e9 inv\u00e1lido"; document.getElementById("mailBoxMail").style.backgroundColor = "#990000"; document.getElementById("mailBoxMail").style.color = "#FFFFFF"; document.getElementById("mailBoxMail").parentNode.style.backgroundColor = "#990000"; b++ } if (document.getElementById("mailBoxDestino").value == "E-mail do destin\u00e1tario" || document.getElementById("mailBoxDestino").value == "Informe o e-mail do destino") { document.getElementById("mailBoxDestino").value = "Informe o e-mail do destino"; document.getElementById("mailBoxDestino").style.backgroundColor = "#990000"; document.getElementById("mailBoxDestino").style.color = "#FFFFFF"; document.getElementById("mailBoxDestino").parentNode.style.backgroundColor = "#990000"; b++ } else if (document.getElementById("mailBoxDestino").value.indexOf("@") == -1 && document.getElementById("mailBoxDestino").value.indexOf(".") == -1) { document.getElementById("mailBoxDestino").value = "Email do destino inv\u00e1lido"; document.getElementById("mailBoxDestino").style.backgroundColor = "#990000"; document.getElementById("mailBoxDestino").style.color = "#FFFFFF"; document.getElementById("mailBoxDestino").parentNode.style.backgroundColor = "#990000"; b++ } if (b == 0) { document.getElementById("btnEnviaMail").onclick = null; var a = []; a[0] = document.getElementById("mailBoxMail").value; a[1] = document.getElementById("mailBoxDestino").value; a[2] = document.getElementById("mailBoxNome").value; $.get("handlers/mailShareHandler.ashx", { nome: encodeURI(document.getElementById("mailBoxNome").value), mail: encodeURI(document.getElementById("mailBoxMail").value), destino: encodeURI(document.getElementById("mailBoxDestino").value), url: encodeURI(document.location), titulo: encodeURI(document.getElementById("h1Titulo").innerHTML) }, function (b) { if (b == "err") { document.getElementById("mailBoxMail").value = ""; document.getElementById("mailBoxDestino").value = ""; document.getElementById("mailBoxNome").value = "Ocorreu um erro no envio, tente mais tarde =)"; document.getElementById("mailBoxNome").style.backgroundColor = "#990000"; document.getElementById("mailBoxNome").style.color = "#FFFFFF"; document.getElementById("mailBoxNome").parentNode.style.backgroundColor = "#990000"; timerr = setTimeout(function () { document.getElementById("mailBoxMail").value = a[0]; document.getElementById("mailBoxDestino").value = a[1]; document.getElementById("mailBoxNome").value = a[2]; document.getElementById("mailBoxNome").style.color = "#999999"; document.getElementById("mailBoxNome").style.backgroundColor = "#E4E9EC"; document.getElementById("mailBoxNome").parentNode.style.backgroundColor = "#E4E9EC"; document.getElementById("btnEnviaMail").onclick = enviaMail }, 3e3) } else { document.getElementById("mailBoxMail").value = ""; document.getElementById("mailBoxDestino").value = ""; document.getElementById("mailBoxNome").value = "Mensagem Enviada Com Sucesso"; document.getElementById("mailBoxNome").style.backgroundColor = "#fbed21"; document.getElementById("mailBoxNome").style.color = "#666666"; document.getElementById("mailBoxNome").parentNode.style.backgroundColor = "#fbed21"; setTimeout(function () { $.facebox.close() }, 3e3) } }) } } function getScrollHeight() { var a = window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop; return a ? a : 0 } function isIE() { return /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) } function clearInput(c, b, a) { if (document.getElementById(a).value == c || document.getElementById(a).value == b || document.getElementById(a).value == arguments[3] || document.getElementById(a).value == arguments[4] || document.getElementById(a).value == arguments[5]) { document.getElementById(a).value = ""; document.getElementById(a).style.color = "#999999"; document.getElementById(a).style.backgroundColor = "#EEEEEE"; document.getElementById(a).parentNode.style.backgroundColor = "#EEEEEE"; try { clearTimeout(timerr) } catch (d) { } } } function fillInput(b, a) { if (document.getElementById(a).value == "") document.getElementById(a).value = b } function clearInputNewsLetter(c, b, a) { if (document.getElementById(a).value == c || document.getElementById(a).value == b || document.getElementById(a).value == arguments[3] || document.getElementById(a).value == arguments[4] || document.getElementById(a).value == arguments[5]) { document.getElementById(a).value = ""; document.getElementById(a).className = "" } } function clearSelectNewsLetter(b, a) { if (a == 0) document.getElementById(b).className = "" }