﻿(function() { var ae = this, M, I = ae.jQuery, Z = ae.$, aa = ae.jQuery = ae.$ = function(b, a) { return new aa.fn.init(b, a) }, T = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/, O = /^.[^:#\[\.,]*$/; aa.fn = aa.prototype = { init: function(c, f) { c = c || document; if (c.nodeType) { this[0] = c; this.length = 1; this.context = c; return this } if (typeof c === "string") { var a = T.exec(c); if (a && (a[1] || !f)) { if (a[1]) { c = aa.clean([a[1]], f) } else { var d = document.getElementById(a[3]); if (d && d.id != a[3]) { return aa().find(c) } var b = aa(d || []); b.context = document; b.selector = c; return b } } else { return aa(f).find(c) } } else { if (aa.isFunction(c)) { return aa(document).ready(c) } } if (c.selector && c.context) { this.selector = c.selector; this.context = c.context } return this.setArray(aa.isArray(c) ? c : aa.makeArray(c)) }, selector: "", jquery: "1.3.2", size: function() { return this.length }, get: function(a) { return a === M ? Array.prototype.slice.call(this) : this[a] }, pushStack: function(a, c, b) { var d = aa(a); d.prevObject = this; d.context = this.context; if (c === "find") { d.selector = this.selector + (this.selector ? " " : "") + b } else { if (c) { d.selector = this.selector + "." + c + "(" + b + ")" } } return d }, setArray: function(a) { this.length = 0; Array.prototype.push.apply(this, a); return this }, each: function(a, b) { return aa.each(this, a, b) }, index: function(a) { return aa.inArray(a && a.jquery ? a[0] : a, this) }, attr: function(a, c, d) { var b = a; if (typeof a === "string") { if (c === M) { return this[0] && aa[d || "attr"](this[0], a) } else { b = {}; b[a] = c } } return this.each(function(f) { for (a in b) { aa.attr(d ? this.style : this, a, aa.prop(this, b[a], d, f, a)) } }) }, css: function(b, a) { if ((b == "width" || b == "height") && parseFloat(a) < 0) { a = M } 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 = ""; aa.each(a || this, function() { aa.each(this.childNodes, function() { if (this.nodeType != 8) { b += this.nodeType != 1 ? this.nodeValue : aa.fn.text([this]) } }) }); return b }, wrapAll: function(b) { if (this[0]) { var a = aa(b, this[0].ownerDocument).clone(); if (this[0].parentNode) { a.insertBefore(this[0]) } a.map(function() { var c = this; while (c.firstChild) { c = c.firstChild } return c }).append(this) } return this }, wrapInner: function(a) { return this.each(function() { aa(this).contents().wrapAll(a) }) }, wrap: function(a) { return this.each(function() { aa(this).wrapAll(a) }) }, append: function() { return this.domManip(arguments, true, function(a) { if (this.nodeType == 1) { this.appendChild(a) } }) }, prepend: function() { return this.domManip(arguments, true, function(a) { if (this.nodeType == 1) { this.insertBefore(a, this.firstChild) } }) }, before: function() { return this.domManip(arguments, false, function(a) { this.parentNode.insertBefore(a, this) }) }, after: function() { return this.domManip(arguments, false, function(a) { this.parentNode.insertBefore(a, this.nextSibling) }) }, end: function() { return this.prevObject || aa([]) }, push: [].push, sort: [].sort, splice: [].splice, find: function(b) { if (this.length === 1) { var a = this.pushStack([], "find", b); a.length = 0; aa.find(b, this[0], a); return a } else { return this.pushStack(aa.unique(aa.map(this, function(c) { return aa.find(b, c) })), "find", b) } }, clone: function(d) { var b = this.map(function() { if (!aa.support.noCloneEvent && !aa.isXMLDoc(this)) { var g = this.outerHTML; if (!g) { var f = this.ownerDocument.createElement("div"); f.appendChild(this.cloneNode(true)); g = f.innerHTML } return aa.clean([g.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0] } else { return this.cloneNode(true) } }); if (d === true) { var c = this.find("*").andSelf(), a = 0; b.find("*").andSelf().each(function() { if (this.nodeName !== c[a].nodeName) { return } var h = aa.data(c[a], "events"); for (var f in h) { for (var g in h[f]) { aa.event.add(this, f, h[f][g], h[f][g].data) } } a++ }) } return b }, filter: function(a) { return this.pushStack(aa.isFunction(a) && aa.grep(this, function(c, b) { return a.call(c, b) }) || aa.multiFilter(a, aa.grep(this, function(b) { return b.nodeType === 1 })), "filter", a) }, closest: function(a) { var b = aa.expr.match.POS.test(a) ? aa(a) : null, c = 0; return this.map(function() { var d = this; while (d && d.ownerDocument) { if (b ? b.index(d) > -1 : aa(d).is(a)) { aa.data(d, "closest", c); return d } d = d.parentNode; c++ } }) }, not: function(b) { if (typeof b === "string") { if (O.test(b)) { return this.pushStack(aa.multiFilter(b, this, true), "not", b) } else { b = aa.multiFilter(b, this) } } var a = b.length && b[b.length - 1] !== M && !b.nodeType; return this.filter(function() { return a ? aa.inArray(this, b) < 0 : this != b }) }, add: function(a) { return this.pushStack(aa.unique(aa.merge(this.get(), typeof a === "string" ? aa(a) : aa.makeArray(a)))) }, is: function(a) { return !!a && aa.multiFilter(a, this).length > 0 }, hasClass: function(a) { return !!a && this.is("." + a) }, val: function(c) { if (c === M) { var k = this[0]; if (k) { if (aa.nodeName(k, "option")) { return (k.attributes.value || {}).specified ? k.value : k.text } if (aa.nodeName(k, "select")) { var f = k.selectedIndex, b = [], a = k.options, g = k.type == "select-one"; if (f < 0) { return null } for (var j = g ? f : 0, d = g ? f + 1 : a.length; j < d; j++) { var h = a[j]; if (h.selected) { c = aa(h).val(); if (g) { return c } b.push(c) } } return b } return (k.value || "").replace(/\r/g, "") } return M } if (typeof c === "number") { c += "" } return this.each(function() { if (this.nodeType != 1) { return } if (aa.isArray(c) && /radio|checkbox/.test(this.type)) { this.checked = (aa.inArray(this.value, c) >= 0 || aa.inArray(this.name, c) >= 0) } else { if (aa.nodeName(this, "select")) { var l = aa.makeArray(c); aa("option", this).each(function() { this.selected = (aa.inArray(this.value, l) >= 0 || aa.inArray(this.text, l) >= 0) }); if (!l.length) { this.selectedIndex = -1 } } else { this.value = c } } }) }, html: function(a) { return a === M ? (this[0] ? this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") : 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), "slice", Array.prototype.slice.call(arguments).join(",")) }, map: function(a) { return this.pushStack(aa.map(this, function(c, b) { return a.call(c, b, c) })) }, andSelf: function() { return this.add(this.prevObject) }, domManip: function(d, a, b) { if (this[0]) { var f = (this[0].ownerDocument || this[0]).createDocumentFragment(), j = aa.clean(d, (this[0].ownerDocument || this[0]), f), g = f.firstChild; if (g) { for (var h = 0, k = this.length; h < k; h++) { b.call(c(this[h], g), this.length > 1 || h > 0 ? f.cloneNode(true) : f) } } if (j) { aa.each(j, H) } } return this; function c(m, l) { return a && aa.nodeName(m, "table") && aa.nodeName(l, "tr") ? (m.getElementsByTagName("tbody")[0] || m.appendChild(m.ownerDocument.createElement("tbody"))) : m } } }; aa.fn.init.prototype = aa.fn; function H(b, a) { if (a.src) { aa.ajax({ url: a.src, async: false, dataType: "script" }) } else { aa.globalEval(a.text || a.textContent || a.innerHTML || "") } if (a.parentNode) { a.parentNode.removeChild(a) } } function Q() { return +new Date } aa.extend = aa.fn.extend = function() { var a = arguments[0] || {}, c = 1, b = arguments.length, g = false, d; if (typeof a === "boolean") { g = a; a = arguments[1] || {}; c = 2 } if (typeof a !== "object" && !aa.isFunction(a)) { a = {} } if (b == c) { a = this; --c } for (; c < b; c++) { if ((d = arguments[c]) != null) { for (var f in d) { var j = a[f], h = d[f]; if (a === h) { continue } if (g && h && typeof h === "object" && !h.nodeType) { a[f] = aa.extend(g, j || (h.length != null ? [] : {}), h) } else { if (h !== M) { a[f] = h } } } } } return a }; var F = /z-?index|font-?weight|opacity|zoom|line-?height/i, X = document.defaultView || {}, S = Object.prototype.toString; aa.extend({ noConflict: function(a) { ae.$ = Z; if (a) { ae.jQuery = I } return aa }, isFunction: function(a) { return S.call(a) === "[object Function]" }, isArray: function(a) { return S.call(a) === "[object Array]" }, isXMLDoc: function(a) { return a.nodeType === 9 && a.documentElement.nodeName !== "HTML" || !!a.ownerDocument && aa.isXMLDoc(a.ownerDocument) }, globalEval: function(b) { if (b && /\S/.test(b)) { var c = document.getElementsByTagName("head")[0] || document.documentElement, a = document.createElement("script"); a.type = "text/javascript"; if (aa.support.scriptEval) { a.appendChild(document.createTextNode(b)) } else { a.text = b } c.insertBefore(a, c.firstChild); c.removeChild(a) } }, nodeName: function(a, b) { return a.nodeName && a.nodeName.toUpperCase() == b.toUpperCase() }, each: function(c, g, d) { var f, b = 0, a = c.length; if (d) { if (a === M) { for (f in c) { if (g.apply(c[f], d) === false) { break } } } else { for (; b < a; ) { if (g.apply(c[b++], d) === false) { break } } } } else { if (a === M) { for (f in c) { if (g.call(c[f], f, c[f]) === false) { break } } } else { for (var h = c[0]; b < a && g.call(h, b, h) !== false; h = c[++b]) { } } } return c }, prop: function(f, d, a, b, c) { if (aa.isFunction(d)) { d = d.call(f, b) } return typeof d === "number" && a == "curCSS" && !F.test(c) ? d + "px" : d }, className: { add: function(b, a) { aa.each((a || "").split(/\s+/), function(d, c) { if (b.nodeType == 1 && !aa.className.has(b.className, c)) { b.className += (b.className ? " " : "") + c } }) }, remove: function(b, a) { if (b.nodeType == 1) { b.className = a !== M ? aa.grep(b.className.split(/\s+/), function(c) { return !aa.className.has(a, c) }).join(" ") : "" } }, has: function(a, b) { return a && aa.inArray(b, (a.className || a).toString().split(/\s+/)) > -1 } }, swap: function(f, a, d) { var c = {}; for (var b in a) { c[b] = f.style[b]; f.style[b] = a[b] } d.call(f); for (var b in a) { f.style[b] = c[b] } }, css: function(c, f, a, g) { if (f == "width" || f == "height") { var h, d = { position: "absolute", visibility: "hidden", display: "block" }, j = f == "width" ? ["Left", "Right"] : ["Top", "Bottom"]; function b() { h = f == "width" ? c.offsetWidth : c.offsetHeight; if (g === "border") { return } aa.each(j, function() { if (!g) { h -= parseFloat(aa.curCSS(c, "padding" + this, true)) || 0 } if (g === "margin") { h += parseFloat(aa.curCSS(c, "margin" + this, true)) || 0 } else { h -= parseFloat(aa.curCSS(c, "border" + this + "Width", true)) || 0 } }) } if (c.offsetWidth !== 0) { b() } else { aa.swap(c, d, b) } return Math.max(0, Math.round(h)) } return aa.curCSS(c, f, a) }, curCSS: function(f, j, h) { var b, k = f.style; if (j == "opacity" && !aa.support.opacity) { b = aa.attr(k, "opacity"); return b == "" ? "1" : b } if (j.match(/float/i)) { j = K } if (!h && k && k[j]) { b = k[j] } else { if (X.getComputedStyle) { if (j.match(/float/i)) { j = "float" } j = j.replace(/([A-Z])/g, "-$1").toLowerCase(); var a = X.getComputedStyle(f, null); if (a) { b = a.getPropertyValue(j) } if (j == "opacity" && b == "") { b = "1" } } else { if (f.currentStyle) { var d = j.replace(/\-(\w)/g, function(m, l) { return l.toUpperCase() }); b = f.currentStyle[j] || f.currentStyle[d]; if (!/^\d+(px)?$/i.test(b) && /^\d/.test(b)) { var g = k.left, c = f.runtimeStyle.left; f.runtimeStyle.left = f.currentStyle.left; k.left = b || 0; b = k.pixelLeft + "px"; k.left = g; f.runtimeStyle.left = c } } } } return b }, clean: function(f, j, b) { j = j || document; if (typeof j.createElement === "undefined") { j = j.ownerDocument || j[0] && j[0].ownerDocument || document } if (!b && f.length === 1 && typeof f[0] === "string") { var c = /^<(\w+)\s*\/?>$/.exec(f[0]); if (c) { return [j.createElement(c[1])] } } var d = [], g = [], h = j.createElement("div"); aa.each(f, function(p, m) { if (typeof m === "number") { m += "" } if (!m) { return } if (typeof m === "string") { m = m.replace(/(<(\w+)[^>]*?)\/>/g, function(s, r, t) { return t.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? s : r + "></" + t + ">" }); var q = m.replace(/^\s+/, "").substring(0, 10).toLowerCase(); var o = !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>"] || !aa.support.htmlSerialize && [1, "div<div>", "</div>"] || [0, "", ""]; h.innerHTML = o[1] + m + o[2]; while (o[0]--) { h = h.lastChild } if (!aa.support.tbody) { var n = /<tbody/i.test(m), k = !q.indexOf("<table") && !n ? h.firstChild && h.firstChild.childNodes : o[1] == "<table>" && !n ? h.childNodes : []; for (var l = k.length - 1; l >= 0; --l) { if (aa.nodeName(k[l], "tbody") && !k[l].childNodes.length) { k[l].parentNode.removeChild(k[l]) } } } if (!aa.support.leadingWhitespace && /^\s/.test(m)) { h.insertBefore(j.createTextNode(m.match(/^\s*/)[0]), h.firstChild) } m = aa.makeArray(h.childNodes) } if (m.nodeType) { d.push(m) } else { d = aa.merge(d, m) } }); if (b) { for (var a = 0; d[a]; a++) { if (aa.nodeName(d[a], "script") && (!d[a].type || d[a].type.toLowerCase() === "text/javascript")) { g.push(d[a].parentNode ? d[a].parentNode.removeChild(d[a]) : d[a]) } else { if (d[a].nodeType === 1) { d.splice.apply(d, [a + 1, 0].concat(aa.makeArray(d[a].getElementsByTagName("script")))) } b.appendChild(d[a]) } } return g } return d }, attr: function(a, d, j) { if (!a || a.nodeType == 3 || a.nodeType == 8) { return M } var c = !aa.isXMLDoc(a), h = j !== M; d = c && aa.props[d] || d; if (a.tagName) { var f = /href|src|style/.test(d); if (d == "selected" && a.parentNode) { a.parentNode.selectedIndex } if (d in a && c && !f) { if (h) { if (d == "type" && aa.nodeName(a, "input") && a.parentNode) { throw "type property can't be changed" } a[d] = j } if (aa.nodeName(a, "form") && a.getAttributeNode(d)) { return a.getAttributeNode(d).nodeValue } if (d == "tabIndex") { var b = a.getAttributeNode("tabIndex"); return b && b.specified ? b.value : a.nodeName.match(/(button|input|object|select|textarea)/i) ? 0 : a.nodeName.match(/^(a|area)$/i) && a.href ? 0 : M } return a[d] } if (!aa.support.style && c && d == "style") { return aa.attr(a.style, "cssText", j) } if (h) { a.setAttribute(d, "" + j) } var g = !aa.support.hrefNormalized && c && f ? a.getAttribute(d, 2) : a.getAttribute(d); return g === null ? M : g } if (!aa.support.opacity && d == "opacity") { if (h) { a.zoom = 1; a.filter = (a.filter || "").replace(/alpha\([^)]*\)/, "") + (parseInt(j) + "" == "NaN" ? "" : "alpha(opacity=" + j * 100 + ")") } return a.filter && a.filter.indexOf("opacity=") >= 0 ? (parseFloat(a.filter.match(/opacity=([^)]*)/)[1]) / 100) + "" : "" } d = d.replace(/-([a-z])/ig, function(l, k) { return k.toUpperCase() }); if (h) { a[d] = j } return a[d] }, trim: function(a) { return (a || "").replace(/^\s+|\s+$/g, "") }, makeArray: function(b) { var a = []; if (b != null) { var c = b.length; if (c == null || typeof b === "string" || aa.isFunction(b) || b.setInterval) { a[0] = b } else { while (c) { a[--c] = b[c] } } } return a }, inArray: function(d, c) { for (var b = 0, a = c.length; b < a; b++) { if (c[b] === d) { return b } } return -1 }, merge: function(f, c) { var b = 0, a, d = f.length; if (!aa.support.getAll) { while ((a = c[b++]) != null) { if (a.nodeType != 8) { f[d++] = a } } } else { while ((a = c[b++]) != null) { f[d++] = a } } return f }, unique: function(g) { var d = [], f = {}; try { for (var c = 0, b = g.length; c < b; c++) { var h = aa.data(g[c]); if (!f[h]) { f[h] = true; d.push(g[c]) } } } catch (a) { d = g } return d }, grep: function(c, f, d) { var b = []; for (var a = 0, g = c.length; a < g; a++) { if (!d != !f(c[a], a)) { b.push(c[a]) } } return b }, map: function(d, f) { var c = []; for (var b = 0, a = d.length; b < a; b++) { var g = f(d[b], b); if (g != null) { c[c.length] = g } } return c.concat.apply([], c) } }); var V = navigator.userAgent.toLowerCase(); aa.browser = { version: (V.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/) || [0, "0"])[1], safari: /webkit/.test(V), opera: /opera/.test(V), msie: /msie/.test(V) && !/opera/.test(V), mozilla: /mozilla/.test(V) && !/(compatible|webkit)/.test(V) }; aa.each({ parent: function(a) { return a.parentNode }, parents: function(a) { return aa.dir(a, "parentNode") }, next: function(a) { return aa.nth(a, 2, "nextSibling") }, prev: function(a) { return aa.nth(a, 2, "previousSibling") }, nextAll: function(a) { return aa.dir(a, "nextSibling") }, prevAll: function(a) { return aa.dir(a, "previousSibling") }, siblings: function(a) { return aa.sibling(a.parentNode.firstChild, a) }, children: function(a) { return aa.sibling(a.firstChild) }, contents: function(a) { return aa.nodeName(a, "iframe") ? a.contentDocument || a.contentWindow.document : aa.makeArray(a.childNodes) } }, function(b, a) { aa.fn[b] = function(d) { var c = aa.map(this, a); if (d && typeof d == "string") { c = aa.multiFilter(d, c) } return this.pushStack(aa.unique(c), b, d) } }); aa.each({ appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, function(b, a) { aa.fn[b] = function(j) { var f = [], c = aa(j); for (var d = 0, h = c.length; d < h; d++) { var g = (d > 0 ? this.clone(true) : this).get(); aa.fn[a].apply(aa(c[d]), g); f = f.concat(g) } return this.pushStack(f, b, j) } }); aa.each({ removeAttr: function(a) { aa.attr(this, a, ""); if (this.nodeType == 1) { this.removeAttribute(a) } }, addClass: function(a) { aa.className.add(this, a) }, removeClass: function(a) { aa.className.remove(this, a) }, toggleClass: function(a, b) { if (typeof b !== "boolean") { b = !aa.className.has(this, a) } aa.className[b ? "add" : "remove"](this, a) }, remove: function(a) { if (!a || aa.filter(a, [this]).length) { aa("*", this).add([this]).each(function() { aa.event.remove(this); aa.removeData(this) }); if (this.parentNode) { this.parentNode.removeChild(this) } } }, empty: function() { aa(this).children().remove(); while (this.firstChild) { this.removeChild(this.firstChild) } } }, function(b, a) { aa.fn[b] = function() { return this.each(a, arguments) } }); function ag(b, a) { return b[0] && parseInt(aa.curCSS(b[0], a, true), 10) || 0 } var ai = "jQuery" + Q(), L = 0, Y = {}; aa.extend({ cache: {}, data: function(a, b, d) { a = a == ae ? Y : a; var c = a[ai]; if (!c) { c = a[ai] = ++L } if (b && !aa.cache[c]) { aa.cache[c] = {} } if (d !== M) { aa.cache[c][b] = d } return b ? aa.cache[c][b] : c }, removeData: function(a, b) { a = a == ae ? Y : a; var c = a[ai]; if (b) { if (aa.cache[c]) { delete aa.cache[c][b]; b = ""; for (b in aa.cache[c]) { break } if (!b) { aa.removeData(a) } } } else { try { delete a[ai] } catch (d) { if (a.removeAttribute) { a.removeAttribute(ai) } } delete aa.cache[c] } }, queue: function(a, b, c) { if (a) { b = (b || "fx") + "queue"; var d = aa.data(a, b); if (!d || aa.isArray(c)) { d = aa.data(a, b, aa.makeArray(c)) } else { if (c) { d.push(c) } } } return d }, dequeue: function(c, d) { var b = aa.queue(c, d), a = b.shift(); if (!d || d === "fx") { a = b[0] } if (a !== M) { a.call(c) } } }); aa.fn.extend({ data: function(b, d) { var c = b.split("."); c[1] = c[1] ? "." + c[1] : ""; if (d === M) { var a = this.triggerHandler("getData" + c[1] + "!", [c[0]]); if (a === M && this.length) { a = aa.data(this[0], b) } return a === M && c[1] ? this.data(c[0]) : a } else { return this.trigger("setData" + c[1] + "!", [c[0], d]).each(function() { aa.data(this, b, d) }) } }, removeData: function(a) { return this.each(function() { aa.removeData(this, a) }) }, queue: function(b, a) { if (typeof b !== "string") { a = b; b = "fx" } if (a === M) { return aa.queue(this[0], b) } return this.each(function() { var c = aa.queue(this, b, a); if (b == "fx" && c.length == 1) { c[0].call(this) } }) }, dequeue: function(a) { return this.each(function() { aa.dequeue(this, a) }) } }); (function() { var b = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g, j = 0, n = Object.prototype.toString; var p = function(x, C, ak, y) { ak = ak || []; C = C || document; if (C.nodeType !== 1 && C.nodeType !== 9) { return [] } if (!x || typeof x !== "string") { return ak } var v = [], A, s, ab, D, w, B, z = true; b.lastIndex = 0; while ((A = b.exec(x)) !== null) { v.push(A[1]); if (A[2]) { B = RegExp.rightContext; break } } if (v.length > 1 && h.exec(x)) { if (v.length === 2 && m.relative[v[0]]) { s = l(v[0] + v[1], C) } else { s = m.relative[v[0]] ? [C] : p(v.shift(), C); while (v.length) { x = v.shift(); if (m.relative[x]) { x += v.shift() } s = l(x, s) } } } else { var t = y ? { expr: v.pop(), set: q(y)} : p.find(v.pop(), v.length === 1 && C.parentNode ? C.parentNode : C, c(C)); s = p.filter(t.expr, t.set); if (v.length > 0) { ab = q(s) } else { z = false } while (v.length) { var aj = v.pop(), r = aj; if (!m.relative[aj]) { aj = "" } else { r = v.pop() } if (r == null) { r = C } m.relative[aj](ab, r, c(C)) } } if (!ab) { ab = s } if (!ab) { throw "Syntax error, unrecognized expression: " + (aj || x) } if (n.call(ab) === "[object Array]") { if (!z) { ak.push.apply(ak, ab) } else { if (C.nodeType === 1) { for (var u = 0; ab[u] != null; u++) { if (ab[u] && (ab[u] === true || ab[u].nodeType === 1 && k(C, ab[u]))) { ak.push(s[u]) } } } else { for (var u = 0; ab[u] != null; u++) { if (ab[u] && ab[u].nodeType === 1) { ak.push(s[u]) } } } } } else { q(ab, ak) } if (B) { p(B, C, ak, y); if (o) { hasDuplicate = false; ak.sort(o); if (hasDuplicate) { for (var u = 1; u < ak.length; u++) { if (ak[u] === ak[u - 1]) { ak.splice(u--, 1) } } } } } return ak }; p.matches = function(s, r) { return p(s, null, null, r) }; p.find = function(w, u, v) { var x, z; if (!w) { return [] } for (var r = 0, s = m.order.length; r < s; r++) { var y = m.order[r], z; if ((z = m.match[y].exec(w))) { var t = RegExp.leftContext; if (t.substr(t.length - 1) !== "\\") { z[1] = (z[1] || "").replace(/\\/g, ""); x = m.find[y](z, u, v); if (x != null) { w = w.replace(m.match[y], ""); break } } } } if (!x) { x = u.getElementsByTagName("*") } return { set: x, expr: w} }; p.filter = function(v, y, ak, A) { var B = v, ab = [], t = y, x, D, w = y && y[0] && c(y[0]); while (v && y.length) { for (var r in m.filter) { if ((x = m.match[r].exec(v)) != null) { var C = m.filter[r], aj, s; D = false; if (t == ab) { ab = [] } if (m.preFilter[r]) { x = m.preFilter[r](x, t, ak, ab, A, w); if (!x) { D = aj = true } else { if (x === true) { continue } } } if (x) { for (var z = 0; (s = t[z]) != null; z++) { if (s) { aj = C(s, x, z, t); var u = A ^ !!aj; if (ak && aj != null) { if (u) { D = true } else { t[z] = false } } else { if (u) { ab.push(s); D = true } } } } } if (aj !== M) { if (!ak) { t = ab } v = v.replace(m.match[r], ""); if (!D) { return [] } break } } } if (v == B) { if (D == null) { throw "Syntax error, unrecognized expression: " + v } else { break } } B = v } return t }; var m = p.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(r) { return r.getAttribute("href") } }, relative: { "+": function(w, u, x) { var z = typeof u === "string", v = z && !/\W/.test(u), y = z && !v; if (v && !x) { u = u.toUpperCase() } for (var r = 0, s = w.length, t; r < s; r++) { if ((t = w[r])) { while ((t = t.previousSibling) && t.nodeType !== 1) { } w[r] = y || t && t.nodeName === u ? t || false : t === u } } if (y) { p.filter(u, w, true) } }, ">": function(s, x, r) { var u = typeof x === "string"; if (u && !/\W/.test(x)) { x = r ? x : x.toUpperCase(); for (var w = 0, y = s.length; w < y; w++) { var t = s[w]; if (t) { var v = t.parentNode; s[w] = v.nodeName === x ? v : false } } } else { for (var w = 0, y = s.length; w < y; w++) { var t = s[w]; if (t) { s[w] = u ? t.parentNode : t.parentNode === x } } if (u) { p.filter(x, s, true) } } }, "": function(v, r, t) { var w = j++, s = a; if (!r.match(/\W/)) { var u = r = t ? r : r.toUpperCase(); s = d } s("parentNode", r, w, v, u, t) }, "~": function(v, r, t) { var w = j++, s = a; if (typeof r === "string" && !r.match(/\W/)) { var u = r = t ? r : r.toUpperCase(); s = d } s("previousSibling", r, w, v, u, t) } }, find: { ID: function(t, s, r) { if (typeof s.getElementById !== "undefined" && !r) { var u = s.getElementById(t[1]); return u ? [u] : [] } }, NAME: function(w, t, s) { if (typeof t.getElementsByName !== "undefined") { var x = [], u = t.getElementsByName(w[1]); for (var v = 0, r = u.length; v < r; v++) { if (u[v].getAttribute("name") === w[1]) { x.push(u[v]) } } return x.length === 0 ? null : x } }, TAG: function(s, r) { return r.getElementsByTagName(s[1]) } }, preFilter: { CLASS: function(w, x, v, y, s, r) { w = " " + w[1].replace(/\\/g, "") + " "; if (r) { return w } for (var u = 0, t; (t = x[u]) != null; u++) { if (t) { if (s ^ (t.className && (" " + t.className + " ").indexOf(w) >= 0)) { if (!v) { y.push(t) } } else { if (v) { x[u] = false } } } } return false }, ID: function(r) { return r[1].replace(/\\/g, "") }, TAG: function(s, t) { for (var r = 0; t[r] === false; r++) { } return t[r] && c(t[r]) ? s[1] : s[1].toUpperCase() }, CHILD: function(s) { if (s[1] == "nth") { var r = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(s[2] == "even" && "2n" || s[2] == "odd" && "2n+1" || !/\D/.test(s[2]) && "0n+" + s[2] || s[2]); s[2] = (r[1] + (r[2] || 1)) - 0; s[3] = r[3] - 0 } s[0] = j++; return s }, ATTR: function(u, x, w, r, t, s) { var v = u[1].replace(/\\/g, ""); if (!s && m.attrMap[v]) { u[1] = m.attrMap[v] } if (u[2] === "~=") { u[4] = " " + u[4] + " " } return u }, PSEUDO: function(u, r, w, s, t) { if (u[1] === "not") { if (u[3].match(b).length > 1 || /^\w/.test(u[3])) { u[3] = p(u[3], null, null, r) } else { var v = p.filter(u[3], r, w, true ^ t); if (!w) { s.push.apply(s, v) } return false } } else { if (m.match.POS.test(u[0]) || m.match.CHILD.test(u[0])) { return true } } return u }, POS: function(r) { r.unshift(true); return r } }, filters: { enabled: function(r) { return r.disabled === false && r.type !== "hidden" }, disabled: function(r) { return r.disabled === true }, checked: function(r) { return r.checked === true }, selected: function(r) { r.parentNode.selectedIndex; return r.selected === true }, parent: function(r) { return !!r.firstChild }, empty: function(r) { return !r.firstChild }, has: function(r, s, t) { return !!p(t[3], r).length }, header: function(r) { return /h\d/i.test(r.nodeName) }, text: function(r) { return "text" === r.type }, radio: function(r) { return "radio" === r.type }, checkbox: function(r) { return "checkbox" === r.type }, file: function(r) { return "file" === r.type }, password: function(r) { return "password" === r.type }, submit: function(r) { return "submit" === r.type }, image: function(r) { return "image" === r.type }, reset: function(r) { return "reset" === r.type }, button: function(r) { return "button" === r.type || r.nodeName.toUpperCase() === "BUTTON" }, input: function(r) { return /input|select|textarea|button/i.test(r.nodeName) } }, setFilters: { first: function(r, s) { return s === 0 }, last: function(s, t, u, r) { return t === r.length - 1 }, even: function(r, s) { return s % 2 === 0 }, odd: function(r, s) { return s % 2 === 1 }, lt: function(r, s, t) { return s < t[3] - 0 }, gt: function(r, s, t) { return s > t[3] - 0 }, nth: function(r, s, t) { return t[3] - 0 == s }, eq: function(r, s, t) { return t[3] - 0 == s } }, filter: { PSEUDO: function(s, w, v, r) { var x = w[1], u = m.filters[x]; if (u) { return u(s, v, w, r) } else { if (x === "contains") { return (s.textContent || s.innerText || "").indexOf(w[3]) >= 0 } else { if (x === "not") { var t = w[3]; for (var v = 0, y = t.length; v < y; v++) { if (t[v] === s) { return false } } return true } } } }, CHILD: function(t, A) { var x = A[1], s = t; switch (x) { case "only": case "first": while (s = s.previousSibling) { if (s.nodeType === 1) { return false } } if (x == "first") { return true } s = t; case "last": while (s = s.nextSibling) { if (s.nodeType === 1) { return false } } return true; case "nth": var r = A[2], u = A[3]; if (r == 1 && u == 0) { return true } var y = A[0], v = t.parentNode; if (v && (v.sizcache !== y || !t.nodeIndex)) { var z = 0; for (s = v.firstChild; s; s = s.nextSibling) { if (s.nodeType === 1) { s.nodeIndex = ++z } } v.sizcache = y } var w = t.nodeIndex - u; if (r == 0) { return w == 0 } else { return (w % r == 0 && w / r >= 0) } } }, ID: function(r, s) { return r.nodeType === 1 && r.getAttribute("id") === s }, TAG: function(r, s) { return (s === "*" && r.nodeType === 1) || r.nodeName === s }, CLASS: function(r, s) { return (" " + (r.className || r.getAttribute("class")) + " ").indexOf(s) > -1 }, ATTR: function(t, v) { var w = v[1], r = m.attrHandle[w] ? m.attrHandle[w](t) : t[w] != null ? t[w] : t.getAttribute(w), s = r + "", u = v[2], x = v[4]; return r == null ? u === "!=" : u === "=" ? s === x : u === "*=" ? s.indexOf(x) >= 0 : u === "~=" ? (" " + s + " ").indexOf(x) >= 0 : !x ? s && r !== false : u === "!=" ? s != x : u === "^=" ? s.indexOf(x) === 0 : u === "$=" ? s.substr(s.length - x.length) === x : u === "|=" ? s === x || s.substr(0, x.length + 1) === x + "-" : false }, POS: function(u, r, w, t) { var s = r[2], v = m.setFilters[s]; if (v) { return v(u, w, r, t) } } } }; var h = m.match.POS; for (var f in m.match) { m.match[f] = RegExp(m.match[f].source + /(?![^\[]*\])(?![^\(]*\))/.source) } var q = function(r, s) { r = Array.prototype.slice.call(r); if (s) { s.push.apply(s, r); return s } return r }; try { Array.prototype.slice.call(document.documentElement.childNodes) } catch (g) { q = function(u, v) { var s = v || []; if (n.call(u) === "[object Array]") { Array.prototype.push.apply(s, u) } else { if (typeof u.length === "number") { for (var r = 0, t = u.length; r < t; r++) { s.push(u[r]) } } else { for (var r = 0; u[r]; r++) { s.push(u[r]) } } } return s } } var o; if (document.documentElement.compareDocumentPosition) { o = function(s, t) { var r = s.compareDocumentPosition(t) & 4 ? -1 : s === t ? 0 : 1; if (r === 0) { hasDuplicate = true } return r } } else { if ("sourceIndex" in document.documentElement) { o = function(s, t) { var r = s.sourceIndex - t.sourceIndex; if (r === 0) { hasDuplicate = true } return r } } else { if (document.createRange) { o = function(v, s) { var r = v.ownerDocument.createRange(), t = s.ownerDocument.createRange(); r.selectNode(v); r.collapse(true); t.selectNode(s); t.collapse(true); var u = r.compareBoundaryPoints(Range.START_TO_END, t); if (u === 0) { hasDuplicate = true } return u } } } } (function() { var s = document.createElement("form"), r = "script" + (new Date).getTime(); s.innerHTML = "<input name='" + r + "'/>"; var t = document.documentElement; t.insertBefore(s, t.firstChild); if (!!document.getElementById(r)) { m.find.ID = function(u, x, w) { if (typeof x.getElementById !== "undefined" && !w) { var v = x.getElementById(u[1]); return v ? v.id === u[1] || typeof v.getAttributeNode !== "undefined" && v.getAttributeNode("id").nodeValue === u[1] ? [v] : M : [] } }; m.filter.ID = function(w, v) { var u = typeof w.getAttributeNode !== "undefined" && w.getAttributeNode("id"); return w.nodeType === 1 && u && u.nodeValue === v } } t.removeChild(s) })(); (function() { var r = document.createElement("div"); r.appendChild(document.createComment("")); if (r.getElementsByTagName("*").length > 0) { m.find.TAG = function(s, t) { var u = t.getElementsByTagName(s[1]); if (s[1] === "*") { var v = []; for (var w = 0; u[w]; w++) { if (u[w].nodeType === 1) { v.push(u[w]) } } u = v } return u } } r.innerHTML = "<a href='#'></a>"; if (r.firstChild && typeof r.firstChild.getAttribute !== "undefined" && r.firstChild.getAttribute("href") !== "#") { m.attrHandle.href = function(s) { return s.getAttribute("href", 2) } } })(); if (document.querySelectorAll) { (function() { var s = p, r = document.createElement("div"); r.innerHTML = "<p class='TEST'></p>"; if (r.querySelectorAll && r.querySelectorAll(".TEST").length === 0) { return } p = function(t, u, w, v) { u = u || document; if (!v && u.nodeType === 9 && !c(u)) { try { return q(u.querySelectorAll(t), w) } catch (x) { } } return s(t, u, w, v) }; p.find = s.find; p.filter = s.filter; p.selectors = s.selectors; p.matches = s.matches })() } if (document.getElementsByClassName && document.documentElement.getElementsByClassName) { (function() { var r = document.createElement("div"); r.innerHTML = "<div class='test e'></div><div class='test'></div>"; if (r.getElementsByClassName("e").length === 0) { return } r.lastChild.className = "e"; if (r.getElementsByClassName("e").length === 1) { return } m.order.splice(1, 0, "CLASS"); m.find.CLASS = function(u, t, s) { if (typeof t.getElementsByClassName !== "undefined" && !s) { return t.getElementsByClassName(u[1]) } } })() } function d(r, x, y, t, w, u) { var v = r == "previousSibling" && !u; for (var A = 0, B = t.length; A < B; A++) { var s = t[A]; if (s) { if (v && s.nodeType === 1) { s.sizcache = y; s.sizset = A } s = s[r]; var z = false; while (s) { if (s.sizcache === y) { z = t[s.sizset]; break } if (s.nodeType === 1 && !u) { s.sizcache = y; s.sizset = A } if (s.nodeName === x) { z = s; break } s = s[r] } t[A] = z } } } function a(r, x, y, t, w, u) { var v = r == "previousSibling" && !u; for (var A = 0, B = t.length; A < B; A++) { var s = t[A]; if (s) { if (v && s.nodeType === 1) { s.sizcache = y; s.sizset = A } s = s[r]; var z = false; while (s) { if (s.sizcache === y) { z = t[s.sizset]; break } if (s.nodeType === 1) { if (!u) { s.sizcache = y; s.sizset = A } if (typeof x !== "string") { if (s === x) { z = true; break } } else { if (p.filter(x, [s]).length > 0) { z = s; break } } } s = s[r] } t[A] = z } } } var k = document.compareDocumentPosition ? function(r, s) { return r.compareDocumentPosition(s) & 16 } : function(r, s) { return r !== s && (r.contains ? r.contains(s) : true) }; var c = function(r) { return r.nodeType === 9 && r.documentElement.nodeName !== "HTML" || !!r.ownerDocument && c(r.ownerDocument) }; var l = function(y, s) { var w = [], u = "", t, v = s.nodeType ? [s] : s; while ((t = m.match.PSEUDO.exec(y))) { u += t[0]; y = y.replace(m.match.PSEUDO, "") } y = m.relative[y] ? y + "*" : y; for (var r = 0, x = v.length; r < x; r++) { p(y, v[r], w) } return p.filter(u, w) }; aa.find = p; aa.filter = p.filter; aa.expr = p.selectors; aa.expr[":"] = aa.expr.filters; p.selectors.filters.hidden = function(r) { return r.offsetWidth === 0 || r.offsetHeight === 0 }; p.selectors.filters.visible = function(r) { return r.offsetWidth > 0 || r.offsetHeight > 0 }; p.selectors.filters.animated = function(r) { return aa.grep(aa.timers, function(s) { return r === s.elem }).length }; aa.multiFilter = function(r, t, s) { if (s) { r = ":not(" + r + ")" } return p.matches(r, t) }; aa.dir = function(s, t) { var u = [], r = s[t]; while (r && r != document) { if (r.nodeType == 1) { u.push(r) } r = r[t] } return u }; aa.nth = function(u, t, r, v) { t = t || 1; var s = 0; for (; u; u = u[r]) { if (u.nodeType == 1 && ++s == t) { break } } return u }; aa.sibling = function(r, s) { var t = []; for (; r; r = r.nextSibling) { if (r.nodeType == 1 && r != s) { t.push(r) } } return t }; return; ae.Sizzle = p })(); aa.event = { add: function(a, d, b, g) { if (a.nodeType == 3 || a.nodeType == 8) { return } if (a.setInterval && a != ae) { a = ae } if (!b.guid) { b.guid = this.guid++ } if (g !== M) { var c = b; b = this.proxy(c); b.data = g } var f = aa.data(a, "events") || aa.data(a, "events", {}), h = aa.data(a, "handle") || aa.data(a, "handle", function() { return typeof aa !== "undefined" && !aa.event.triggered ? aa.event.handle.apply(arguments.callee.elem, arguments) : M }); h.elem = a; aa.each(d.split(/\s+/), function(j, m) { var l = m.split("."); m = l.shift(); b.type = l.slice().sort().join("."); var k = f[m]; if (aa.event.specialAll[m]) { aa.event.specialAll[m].setup.call(a, g, l) } if (!k) { k = f[m] = {}; if (!aa.event.special[m] || aa.event.special[m].setup.call(a, g, l) === false) { if (a.addEventListener) { a.addEventListener(m, h, false) } else { if (a.attachEvent) { a.attachEvent("on" + m, h) } } } } k[b.guid] = b; aa.event.global[m] = true }); a = null }, guid: 1, global: {}, remove: function(j, c, a) { if (j.nodeType == 3 || j.nodeType == 8) { return } var d = aa.data(j, "events"), f, g; if (d) { if (c === M || (typeof c === "string" && c.charAt(0) == ".")) { for (var b in d) { this.remove(j, b + (c || "")) } } else { if (c.type) { a = c.handler; c = c.type } aa.each(c.split(/\s+/), function(o, m) { var k = m.split("."); m = k.shift(); var n = RegExp("(^|\\.)" + k.slice().sort().join(".*\\.") + "(\\.|$)"); if (d[m]) { if (a) { delete d[m][a.guid] } else { for (var l in d[m]) { if (n.test(d[m][l].type)) { delete d[m][l] } } } if (aa.event.specialAll[m]) { aa.event.specialAll[m].teardown.call(j, k) } for (f in d[m]) { break } if (!f) { if (!aa.event.special[m] || aa.event.special[m].teardown.call(j, k) === false) { if (j.removeEventListener) { j.removeEventListener(m, aa.data(j, "handle"), false) } else { if (j.detachEvent) { j.detachEvent("on" + m, aa.data(j, "handle")) } } } f = null; delete d[m] } } }) } for (f in d) { break } if (!f) { var h = aa.data(j, "handle"); if (h) { h.elem = null } aa.removeData(j, "events"); aa.removeData(j, "handle") } } }, trigger: function(b, j, c, g) { var d = b.type || b; if (!g) { b = typeof b === "object" ? b[ai] ? b : aa.extend(aa.Event(d), b) : aa.Event(d); if (d.indexOf("!") >= 0) { b.type = d = d.slice(0, -1); b.exclusive = true } if (!c) { b.stopPropagation(); if (this.global[d]) { aa.each(aa.cache, function() { if (this.events && this.events[d]) { aa.event.trigger(b, j, this.handle.elem) } }) } } if (!c || c.nodeType == 3 || c.nodeType == 8) { return M } b.result = M; b.target = c; j = aa.makeArray(j); j.unshift(b) } b.currentTarget = c; var a = aa.data(c, "handle"); if (a) { a.apply(c, j) } if ((!c[d] || (aa.nodeName(c, "a") && d == "click")) && c["on" + d] && c["on" + d].apply(c, j) === false) { b.result = false } if (!g && c[d] && !b.isDefaultPrevented() && !(aa.nodeName(c, "a") && d == "click")) { this.triggered = true; try { c[d]() } catch (h) { } } this.triggered = false; if (!b.isPropagationStopped()) { var f = c.parentNode || c.ownerDocument; if (f) { aa.event.trigger(b, j, f, true) } } }, handle: function(j) { var a, g; j = arguments[0] = aa.event.fix(j || ae.event); j.currentTarget = this; var h = j.type.split("."); j.type = h.shift(); a = !h.length && !j.exclusive; var b = RegExp("(^|\\.)" + h.slice().sort().join(".*\\.") + "(\\.|$)"); g = (aa.data(this, "events") || {})[j.type]; for (var d in g) { var c = g[d]; if (a || b.test(c.type)) { j.handler = c; j.data = c.data; var f = c.apply(this, arguments); if (f !== M) { j.result = f; if (f === false) { j.preventDefault(); j.stopPropagation() } } if (j.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(a) { if (a[ai]) { return a } var c = a; a = aa.Event(c); for (var b = this.props.length, f; b; ) { f = this.props[--b]; a[f] = c[f] } if (!a.target) { a.target = a.srcElement || document } if (a.target.nodeType == 3) { a.target = a.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 g = document.documentElement, d = document.body; a.pageX = a.clientX + (g && g.scrollLeft || d && d.scrollLeft || 0) - (g.clientLeft || 0); a.pageY = a.clientY + (g && g.scrollTop || d && d.scrollTop || 0) - (g.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 }, proxy: function(a, b) { b = b || function() { return a.apply(this, arguments) }; b.guid = a.guid = a.guid || b.guid || this.guid++; return b }, special: { ready: { setup: W, teardown: function() { } } }, specialAll: { live: { setup: function(b, a) { aa.event.add(this, a[0], E) }, teardown: function(b) { if (b.length) { var a = 0, c = RegExp("(^|\\.)" + b[0] + "(\\.|$)"); aa.each((aa.data(this, "events").live || {}), function() { if (c.test(this.type)) { a++ } }); if (a < 1) { aa.event.remove(this, b[0], E) } } } }} }; aa.Event = function(a) { if (!this.preventDefault) { return new aa.Event(a) } if (a && a.type) { this.originalEvent = a; this.type = a.type } else { this.type = a } this.timeStamp = Q(); this[ai] = true }; function af() { return false } function N() { return true } aa.Event.prototype = { preventDefault: function() { this.isDefaultPrevented = N; var a = this.originalEvent; if (!a) { return } if (a.preventDefault) { a.preventDefault() } a.returnValue = false }, stopPropagation: function() { this.isPropagationStopped = N; var a = this.originalEvent; if (!a) { return } if (a.stopPropagation) { a.stopPropagation() } a.cancelBubble = true }, stopImmediatePropagation: function() { this.isImmediatePropagationStopped = N; this.stopPropagation() }, isDefaultPrevented: af, isPropagationStopped: af, isImmediatePropagationStopped: af }; var G = function(c) { var a = c.relatedTarget; while (a && a != this) { try { a = a.parentNode } catch (b) { a = this } } if (a != this) { c.type = c.data; aa.event.handle.apply(this, arguments) } }; aa.each({ mouseover: "mouseenter", mouseout: "mouseleave" }, function(a, b) { aa.event.special[b] = { setup: function() { aa.event.add(this, a, G, b) }, teardown: function() { aa.event.remove(this, a, G) } } }); aa.fn.extend({ bind: function(c, b, a) { return c == "unload" ? this.one(c, b, a) : this.each(function() { aa.event.add(this, c, a || b, a && b) }) }, one: function(d, c, a) { var b = aa.event.proxy(a || c, function(f) { aa(this).unbind(f, b); return (a || c).apply(this, arguments) }); return this.each(function() { aa.event.add(this, d, b, a && c) }) }, unbind: function(a, b) { return this.each(function() { aa.event.remove(this, a, b) }) }, trigger: function(b, a) { return this.each(function() { aa.event.trigger(b, a, this) }) }, triggerHandler: function(a, b) { if (this[0]) { var c = aa.Event(a); c.preventDefault(); c.stopPropagation(); aa.event.trigger(c, b, this[0]); return c.result } }, toggle: function(b) { var a = arguments, c = 1; while (c < a.length) { aa.event.proxy(b, a[c++]) } return this.click(aa.event.proxy(b, function(d) { this.lastToggle = (this.lastToggle || 0) % c; d.preventDefault(); return a[this.lastToggle++].apply(this, arguments) || false })) }, hover: function(b, a) { return this.mouseenter(b).mouseleave(a) }, ready: function(a) { W(); if (aa.isReady) { a.call(document, aa) } else { aa.readyList.push(a) } return this }, live: function(b, c) { var a = aa.event.proxy(c); a.guid += this.selector + b; aa(document).bind(ah(b, this.selector), this.selector, a); return this }, die: function(a, b) { aa(document).unbind(ah(a, this.selector), b ? { guid: b.guid + this.selector + a} : null); return this } }); function E(c) { var b = RegExp("(^|\\.)" + c.type + "(\\.|$)"), d = true, a = []; aa.each(aa.data(this, "events").live || [], function(h, g) { if (b.test(g.type)) { var f = aa(c.target).closest(g.data)[0]; if (f) { a.push({ elem: f, fn: g }) } } }); a.sort(function(f, g) { return aa.data(f.elem, "closest") - aa.data(g.elem, "closest") }); aa.each(a, function() { if (this.fn.call(this.elem, c, this.fn.data) === false) { return (d = false) } }); return d } function ah(a, b) { return ["live", a, b.replace(/\./g, "`").replace(/ /g, "|")].join(".") } aa.extend({ isReady: false, readyList: [], ready: function() { if (!aa.isReady) { aa.isReady = true; if (aa.readyList) { aa.each(aa.readyList, function() { this.call(document, aa) }); aa.readyList = null } aa(document).triggerHandler("ready") } } }); var J = false; function W() { if (J) { return } J = true; if (document.addEventListener) { document.addEventListener("DOMContentLoaded", function() { document.removeEventListener("DOMContentLoaded", arguments.callee, false); aa.ready() }, false) } else { if (document.attachEvent) { document.attachEvent("onreadystatechange", function() { if (document.readyState === "complete") { document.detachEvent("onreadystatechange", arguments.callee); aa.ready() } }); if (document.documentElement.doScroll && ae == ae.top) { (function() { if (aa.isReady) { return } try { document.documentElement.doScroll("left") } catch (a) { setTimeout(arguments.callee, 0); return } aa.ready() })() } } } aa.event.add(ae, "load", aa.ready) } aa.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(a, b) { aa.fn[b] = function(c) { return c ? this.bind(b, c) : this.trigger(b) } }); aa(ae).bind("unload", function() { for (var a in aa.cache) { if (a != 1 && aa.cache[a].handle) { aa.event.remove(aa.cache[a].handle.elem) } } }); (function() { aa.support = {}; var d = document.documentElement, c = document.createElement("script"), g = document.createElement("div"), h = "script" + (new Date).getTime(); g.style.display = "none"; g.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 b = g.getElementsByTagName("*"), f = g.getElementsByTagName("a")[0]; if (!b || !b.length || !f) { return } aa.support = { leadingWhitespace: g.firstChild.nodeType == 3, tbody: !g.getElementsByTagName("tbody").length, objectAll: !!g.getElementsByTagName("object")[0].getElementsByTagName("*").length, htmlSerialize: !!g.getElementsByTagName("link").length, style: /red/.test(f.getAttribute("style")), hrefNormalized: f.getAttribute("href") === "/a", opacity: f.style.opacity === "0.5", cssFloat: !!f.style.cssFloat, scriptEval: false, noCloneEvent: true, boxModel: null }; c.type = "text/javascript"; try { c.appendChild(document.createTextNode("window." + h + "=1;")) } catch (a) { } d.insertBefore(c, d.firstChild); if (ae[h]) { aa.support.scriptEval = true; delete ae[h] } d.removeChild(c); if (g.attachEvent && g.fireEvent) { g.attachEvent("onclick", function() { aa.support.noCloneEvent = false; g.detachEvent("onclick", arguments.callee) }); g.cloneNode(true).fireEvent("onclick") } aa(function() { var j = document.createElement("div"); j.style.width = j.style.paddingLeft = "1px"; document.body.appendChild(j); aa.boxModel = aa.support.boxModel = j.offsetWidth === 2; document.body.removeChild(j).style.display = "none" }) })(); var K = aa.support.cssFloat ? "cssFloat" : "styleFloat"; aa.props = { "for": "htmlFor", "class": "className", "float": K, cssFloat: K, styleFloat: K, readonly: "readOnly", maxlength: "maxLength", cellspacing: "cellSpacing", rowspan: "rowSpan", tabindex: "tabIndex" }; aa.fn.extend({ _load: aa.fn.load, load: function(c, h, g) { if (typeof c !== "string") { return this._load(c) } var a = c.indexOf(" "); if (a >= 0) { var f = c.slice(a, c.length); c = c.slice(0, a) } var b = "GET"; if (h) { if (aa.isFunction(h)) { g = h; h = null } else { if (typeof h === "object") { h = aa.param(h); b = "POST" } } } var d = this; aa.ajax({ url: c, type: b, dataType: "html", data: h, complete: function(j, k) { if (k == "success" || k == "notmodified") { d.html(f ? aa("<div/>").append(j.responseText.replace(/<script(.|\s)*?\/script>/g, "")).find(f) : j.responseText) } if (g) { d.each(g, [j.responseText, k, j]) } } }); return this }, serialize: function() { return aa.param(this.serializeArray()) }, serializeArray: function() { return this.map(function() { return this.elements ? aa.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(a, c) { var b = aa(this).val(); return b == null ? null : aa.isArray(b) ? aa.map(b, function(d, f) { return { name: c.name, value: d} }) : { name: c.name, value: b} }).get() } }); aa.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","), function(b, a) { aa.fn[a] = function(c) { return this.bind(a, c) } }); var U = Q(); aa.extend({ get: function(b, d, c, a) { if (aa.isFunction(d)) { c = d; d = null } return aa.ajax({ type: "GET", url: b, data: d, success: c, dataType: a }) }, getScript: function(b, a) { return aa.get(b, null, a, "script") }, getJSON: function(a, c, b) { return aa.get(a, c, b, "json") }, post: function(b, d, c, a) { if (aa.isFunction(d)) { c = d; d = {} } return aa.ajax({ type: "POST", url: b, data: d, success: c, dataType: a }) }, ajaxSetup: function(a) { aa.extend(aa.ajaxSettings, a) }, ajaxSettings: { url: location.href, global: true, type: "GET", contentType: "application/x-www-form-urlencoded", processData: true, async: true, xhr: function() { return ae.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest() }, accepts: { xml: "application/xml, text/xml", html: "text/html", script: "text/javascript, application/javascript", json: "application/json, text/javascript", text: "text/plain", _default: "*/*"} }, lastModified: {}, ajax: function(m) { m = aa.extend(true, m, aa.extend(true, {}, aa.ajaxSettings, m)); var a, t = /=\?(&|$)/g, g, b, s = m.type.toUpperCase(); if (m.data && m.processData && typeof m.data !== "string") { m.data = aa.param(m.data) } if (m.dataType == "jsonp") { if (s == "GET") { if (!m.url.match(t)) { m.url += (m.url.match(/\?/) ? "&" : "?") + (m.jsonp || "callback") + "=?" } } else { if (!m.data || !m.data.match(t)) { m.data = (m.data ? m.data + "&" : "") + (m.jsonp || "callback") + "=?" } } m.dataType = "json" } if (m.dataType == "json" && (m.data && m.data.match(t) || m.url.match(t))) { a = "jsonp" + U++; if (m.data) { m.data = (m.data + "").replace(t, "=" + a + "$1") } m.url = m.url.replace(t, "=" + a + "$1"); m.dataType = "script"; ae[a] = function(w) { b = w; q(); n(); ae[a] = M; try { delete ae[a] } catch (v) { } if (r) { r.removeChild(d) } } } if (m.dataType == "script" && m.cache == null) { m.cache = false } if (m.cache === false && s == "GET") { var u = Q(); var c = m.url.replace(/(\?|&)_=.*?(&|$)/, "$1_=" + u + "$2"); m.url = c + ((c == m.url) ? (m.url.match(/\?/) ? "&" : "?") + "_=" + u : "") } if (m.data && s == "GET") { m.url += (m.url.match(/\?/) ? "&" : "?") + m.data; m.data = null } if (m.global && !aa.active++) { aa.event.trigger("ajaxStart") } var h = /^(\w+:)?\/\/([^\/?#]+)/.exec(m.url); if (m.dataType == "script" && s == "GET" && h && (h[1] && h[1] != location.protocol || h[2] != location.host)) { var r = document.getElementsByTagName("head")[0]; var d = document.createElement("script"); d.src = m.url; if (m.scriptCharset) { d.charset = m.scriptCharset } if (!a) { var k = false; d.onload = d.onreadystatechange = function() { if (!k && (!this.readyState || this.readyState == "loaded" || this.readyState == "complete")) { k = true; q(); n(); d.onload = d.onreadystatechange = null; r.removeChild(d) } } } r.appendChild(d); return M } var o = false; var p = m.xhr(); if (m.username) { p.open(s, m.url, m.async, m.username, m.password) } else { p.open(s, m.url, m.async) } try { if (m.data) { p.setRequestHeader("Content-Type", m.contentType) } if (m.ifModified) { p.setRequestHeader("If-Modified-Since", aa.lastModified[m.url] || "Thu, 01 Jan 1970 00:00:00 GMT") } p.setRequestHeader("X-Requested-With", "XMLHttpRequest"); p.setRequestHeader("Accept", m.dataType && m.accepts[m.dataType] ? m.accepts[m.dataType] + ", */*" : m.accepts._default) } catch (f) { } if (m.beforeSend && m.beforeSend(p, m) === false) { if (m.global && ! --aa.active) { aa.event.trigger("ajaxStop") } p.abort(); return false } if (m.global) { aa.event.trigger("ajaxSend", [p, m]) } var l = function(x) { if (p.readyState == 0) { if (j) { clearInterval(j); j = null; if (m.global && ! --aa.active) { aa.event.trigger("ajaxStop") } } } else { if (!o && p && (p.readyState == 4 || x == "timeout")) { o = true; if (j) { clearInterval(j); j = null } g = x == "timeout" ? "timeout" : !aa.httpSuccess(p) ? "error" : m.ifModified && aa.httpNotModified(p, m.url) ? "notmodified" : "success"; if (g == "success") { try { b = aa.httpData(p, m.dataType, m) } catch (v) { g = "parsererror" } } if (g == "success") { var w; try { w = p.getResponseHeader("Last-Modified") } catch (v) { } if (m.ifModified && w) { aa.lastModified[m.url] = w } if (!a) { q() } } else { aa.handleError(m, p, g) } n(); if (x) { p.abort() } if (m.async) { p = null } } } }; if (m.async) { var j = setInterval(l, 13); if (m.timeout > 0) { setTimeout(function() { if (p && !o) { l("timeout") } }, m.timeout) } } try { p.send(m.data) } catch (f) { aa.handleError(m, p, null, f) } if (!m.async) { l() } function q() { if (m.success) { m.success(b, g) } if (m.global) { aa.event.trigger("ajaxSuccess", [p, m]) } } function n() { if (m.complete) { m.complete(p, g) } if (m.global) { aa.event.trigger("ajaxComplete", [p, m]) } if (m.global && ! --aa.active) { aa.event.trigger("ajaxStop") } } return p }, handleError: function(a, c, b, d) { if (a.error) { a.error(c, b, d) } if (a.global) { aa.event.trigger("ajaxError", [c, a, d]) } }, active: 0, httpSuccess: function(a) { try { return !a.status && location.protocol == "file:" || (a.status >= 200 && a.status < 300) || a.status == 304 || a.status == 1223 } catch (b) { } return false }, httpNotModified: function(d, b) { try { var c = d.getResponseHeader("Last-Modified"); return d.status == 304 || c == aa.lastModified[b] } catch (a) { } return false }, httpData: function(f, a, b) { var c = f.getResponseHeader("content-type"), d = a == "xml" || !a && c && c.indexOf("xml") >= 0, g = d ? f.responseXML : f.responseText; if (d && g.documentElement.tagName == "parsererror") { throw "parsererror" } if (b && b.dataFilter) { g = b.dataFilter(g, a) } if (typeof g === "string") { if (a == "script") { aa.globalEval(g) } if (a == "json") { g = ae["eval"]("(" + g + ")") } } return g }, param: function(b) { var d = []; function c(g, f) { d[d.length] = encodeURIComponent(g) + "=" + encodeURIComponent(f) } if (aa.isArray(b) || b.jquery) { aa.each(b, function() { c(this.name, this.value) }) } else { for (var a in b) { if (aa.isArray(b[a])) { aa.each(b[a], function() { c(a, this) }) } else { c(a, aa.isFunction(b[a]) ? b[a]() : b[a]) } } } return d.join("&").replace(/%20/g, "+") } }); var ad = {}, ac, R = [["height", "marginTop", "marginBottom", "paddingTop", "paddingBottom"], ["width", "marginLeft", "marginRight", "paddingLeft", "paddingRight"], ["opacity"]]; function P(c, a) { var b = {}; aa.each(R.concat.apply([], R.slice(0, a)), function() { b[this] = c }); return b } aa.fn.extend({ show: function(a, h) { if (a) { return this.animate(P("show", 3), a, h) } else { for (var c = 0, f = this.length; c < f; c++) { var g = aa.data(this[c], "olddisplay"); this[c].style.display = g || ""; if (aa.css(this[c], "display") === "none") { var d = this[c].tagName, j; if (ad[d]) { j = ad[d] } else { var b = aa("<" + d + " />").appendTo("body"); j = b.css("display"); if (j === "none") { j = "block" } b.remove(); ad[d] = j } aa.data(this[c], "olddisplay", j) } } for (var c = 0, f = this.length; c < f; c++) { this[c].style.display = aa.data(this[c], "olddisplay") || "" } return this } }, hide: function(f, d) { if (f) { return this.animate(P("hide", 3), f, d) } else { for (var a = 0, b = this.length; a < b; a++) { var c = aa.data(this[a], "olddisplay"); if (!c && c !== "none") { aa.data(this[a], "olddisplay", aa.css(this[a], "display")) } } for (var a = 0, b = this.length; a < b; a++) { this[a].style.display = "none" } return this } }, _toggle: aa.fn.toggle, toggle: function(b, c) { var a = typeof b === "boolean"; return aa.isFunction(b) && aa.isFunction(c) ? this._toggle.apply(this, arguments) : b == null || a ? this.each(function() { var d = a ? b : aa(this).is(":hidden"); aa(this)[d ? "show" : "hide"]() }) : this.animate(P("toggle", 3), b, c) }, fadeTo: function(a, b, c) { return this.animate({ opacity: b }, a, c) }, animate: function(d, b, f, a) { var c = aa.speed(b, f, a); return this[c.queue === false ? "each" : "queue"](function() { var g = aa.extend({}, c), j, k = this.nodeType == 1 && aa(this).is(":hidden"), h = this; for (j in d) { if (d[j] == "hide" && k || d[j] == "show" && !k) { return g.complete.call(this) } if ((j == "height" || j == "width") && this.style) { g.display = aa.css(this, "display"); g.overflow = this.style.overflow } } if (g.overflow != null) { this.style.overflow = "hidden" } g.curAnim = aa.extend({}, d); aa.each(d, function(m, p) { var q = new aa.fx(h, g, m); if (/toggle|show|hide/.test(p)) { q[p == "toggle" ? k ? "show" : "hide" : p](d) } else { var r = p.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/), o = q.cur(true) || 0; if (r) { var n = parseFloat(r[2]), l = r[3] || "px"; if (l != "px") { h.style[m] = (n || 1) + l; o = ((n || 1) / q.cur(true)) * o; h.style[m] = o + l } if (r[1]) { n = ((r[1] == "-=" ? -1 : 1) * n) + o } q.custom(o, n, l) } else { q.custom(o, p, "") } } }); return true }) }, stop: function(c, a) { var b = aa.timers; if (c) { this.queue([]) } this.each(function() { for (var d = b.length - 1; d >= 0; d--) { if (b[d].elem == this) { if (a) { b[d](true) } b.splice(d, 1) } } }); if (!a) { this.dequeue() } return this } }); aa.each({ slideDown: P("show", 1), slideUp: P("hide", 1), slideToggle: P("toggle", 1), fadeIn: { opacity: "show" }, fadeOut: { opacity: "hide"} }, function(b, a) { aa.fn[b] = function(d, c) { return this.animate(a, d, c) } }); aa.extend({ speed: function(d, c, a) { var b = typeof d === "object" ? d : { complete: a || !a && c || aa.isFunction(d) && d, duration: d, easing: a && c || c && !aa.isFunction(c) && c }; b.duration = aa.fx.off ? 0 : typeof b.duration === "number" ? b.duration : aa.fx.speeds[b.duration] || aa.fx.speeds._default; b.old = b.complete; b.complete = function() { if (b.queue !== false) { aa(this).dequeue() } if (aa.isFunction(b.old)) { b.old.call(this) } }; return b }, easing: { linear: function(d, c, b, a) { return b + a * d }, swing: function(d, c, b, a) { return ((-Math.cos(d * Math.PI) / 2) + 0.5) * a + b } }, timers: [], fx: function(c, a, b) { this.options = a; this.elem = c; this.prop = b; if (!a.orig) { a.orig = {} } } }); aa.fx.prototype = { update: function() { if (this.options.step) { this.options.step.call(this.elem, this.now, this) } (aa.fx.step[this.prop] || aa.fx.step._default)(this); if ((this.prop == "height" || this.prop == "width") && this.elem.style) { this.elem.style.display = "block" } }, cur: function(a) { if (this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null)) { return this.elem[this.prop] } var b = parseFloat(aa.css(this.elem, this.prop, a)); return b && b > -10000 ? b : parseFloat(aa.curCSS(this.elem, this.prop)) || 0 }, custom: function(d, f, a) { this.startTime = Q(); this.start = d; this.end = f; this.unit = a || this.unit || "px"; this.now = this.start; this.pos = this.state = 0; var c = this; function b(g) { return c.step(g) } b.elem = this.elem; if (b() && aa.timers.push(b) && !ac) { ac = setInterval(function() { var g = aa.timers; for (var h = 0; h < g.length; h++) { if (!g[h]()) { g.splice(h--, 1) } } if (!g.length) { clearInterval(ac); ac = M } }, 13) } }, show: function() { this.options.orig[this.prop] = aa.attr(this.elem.style, this.prop); this.options.show = true; this.custom(this.prop == "width" || this.prop == "height" ? 1 : 0, this.cur()); aa(this.elem).show() }, hide: function() { this.options.orig[this.prop] = aa.attr(this.elem.style, this.prop); this.options.hide = true; this.custom(this.cur(), 0) }, step: function(a) { var b = Q(); if (a || b >= this.options.duration + this.startTime) { this.now = this.end; this.pos = this.state = 1; this.update(); this.options.curAnim[this.prop] = true; var d = true; for (var c in this.options.curAnim) { if (this.options.curAnim[c] !== true) { d = false } } if (d) { if (this.options.display != null) { this.elem.style.overflow = this.options.overflow; this.elem.style.display = this.options.display; if (aa.css(this.elem, "display") == "none") { this.elem.style.display = "block" } } if (this.options.hide) { aa(this.elem).hide() } if (this.options.hide || this.options.show) { for (var g in this.options.curAnim) { aa.attr(this.elem.style, g, this.options.orig[g]) } } this.options.complete.call(this.elem) } return false } else { var f = b - this.startTime; this.state = f / this.options.duration; this.pos = aa.easing[this.options.easing || (aa.easing.swing ? "swing" : "linear")](this.state, f, 0, 1, this.options.duration); this.now = this.start + ((this.end - this.start) * this.pos); this.update() } return true } }; aa.extend(aa.fx, { speeds: { slow: 600, fast: 200, _default: 400 }, step: { opacity: function(a) { aa.attr(a.elem.style, "opacity", a.now) }, _default: function(a) { if (a.elem.style && a.elem.style[a.prop] != null) { a.elem.style[a.prop] = a.now + a.unit } else { a.elem[a.prop] = a.now } } } }); if (document.documentElement.getBoundingClientRect) { aa.fn.offset = function() { if (!this[0]) { return { top: 0, left: 0} } if (this[0] === this[0].ownerDocument.body) { return aa.offset.bodyOffset(this[0]) } var d = this[0].getBoundingClientRect(), a = this[0].ownerDocument, f = a.body, g = a.documentElement, h = g.clientTop || f.clientTop || 0, j = g.clientLeft || f.clientLeft || 0, b = d.top + (self.pageYOffset || aa.boxModel && g.scrollTop || f.scrollTop) - h, c = d.left + (self.pageXOffset || aa.boxModel && g.scrollLeft || f.scrollLeft) - j; return { top: b, left: c} } } else { aa.fn.offset = function() { if (!this[0]) { return { top: 0, left: 0} } if (this[0] === this[0].ownerDocument.body) { return aa.offset.bodyOffset(this[0]) } aa.offset.initialized || aa.offset.initialize(); var g = this[0], k = g.offsetParent, l = g, a = g.ownerDocument, c, j = a.documentElement, f = a.body, d = a.defaultView, m = d.getComputedStyle(g, null), b = g.offsetTop, h = g.offsetLeft; while ((g = g.parentNode) && g !== f && g !== j) { c = d.getComputedStyle(g, null); b -= g.scrollTop, h -= g.scrollLeft; if (g === k) { b += g.offsetTop, h += g.offsetLeft; if (aa.offset.doesNotAddBorder && !(aa.offset.doesAddBorderForTableAndCells && /^t(able|d|h)$/i.test(g.tagName))) { b += parseInt(c.borderTopWidth, 10) || 0, h += parseInt(c.borderLeftWidth, 10) || 0 } l = k, k = g.offsetParent } if (aa.offset.subtractsBorderForOverflowNotVisible && c.overflow !== "visible") { b += parseInt(c.borderTopWidth, 10) || 0, h += parseInt(c.borderLeftWidth, 10) || 0 } m = c } if (m.position === "relative" || m.position === "static") { b += f.offsetTop, h += f.offsetLeft } if (m.position === "fixed") { b += Math.max(j.scrollTop, f.scrollTop), h += Math.max(j.scrollLeft, f.scrollLeft) } return { top: b, left: h} } } aa.offset = { initialize: function() { if (this.initialized) { return } var c = document.body, k = document.createElement("div"), h, j, a, g, b, l, f = c.style.marginTop, d = '<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>'; b = { position: "absolute", top: 0, left: 0, margin: 0, border: 0, width: "1px", height: "1px", visibility: "hidden" }; for (l in b) { k.style[l] = b[l] } k.innerHTML = d; c.insertBefore(k, c.firstChild); h = k.firstChild, j = h.firstChild, g = h.nextSibling.firstChild.firstChild; this.doesNotAddBorder = (j.offsetTop !== 5); this.doesAddBorderForTableAndCells = (g.offsetTop === 5); h.style.overflow = "hidden", h.style.position = "relative"; this.subtractsBorderForOverflowNotVisible = (j.offsetTop === -5); c.style.marginTop = "1px"; this.doesNotIncludeMarginInBodyOffset = (c.offsetTop === 0); c.style.marginTop = f; c.removeChild(k); this.initialized = true }, bodyOffset: function(a) { aa.offset.initialized || aa.offset.initialize(); var b = a.offsetTop, c = a.offsetLeft; if (aa.offset.doesNotIncludeMarginInBodyOffset) { b += parseInt(aa.curCSS(a, "marginTop", true), 10) || 0, c += parseInt(aa.curCSS(a, "marginLeft", true), 10) || 0 } return { top: b, left: c} } }; aa.fn.extend({ position: function() { var g = 0, a = 0, c; if (this[0]) { var b = this.offsetParent(), f = this.offset(), d = /^body|html$/i.test(b[0].tagName) ? { top: 0, left: 0} : b.offset(); f.top -= ag(this, "marginTop"); f.left -= ag(this, "marginLeft"); d.top += ag(b, "borderTopWidth"); d.left += ag(b, "borderLeftWidth"); c = { top: f.top - d.top, left: f.left - d.left} } return c }, offsetParent: function() { var a = this[0].offsetParent || document.body; while (a && (!/^body|html$/i.test(a.tagName) && aa.css(a, "position") == "static")) { a = a.offsetParent } return aa(a) } }); aa.each(["Left", "Top"], function(c, a) { var b = "scroll" + a; aa.fn[b] = function(d) { if (!this[0]) { return null } return d !== M ? this.each(function() { this == ae || this == document ? ae.scrollTo(!c ? d : aa(ae).scrollLeft(), c ? d : aa(ae).scrollTop()) : this[b] = d }) : this[0] == ae || this[0] == document ? self[c ? "pageYOffset" : "pageXOffset"] || aa.boxModel && document.documentElement[b] || document.body[b] : this[0][b] } }); aa.each(["Height", "Width"], function(g, b) { var d = g ? "Left" : "Top", a = g ? "Right" : "Bottom", c = b.toLowerCase(); aa.fn["inner" + b] = function() { return this[0] ? aa.css(this[0], c, false, "padding") : null }; aa.fn["outer" + b] = function(h) { return this[0] ? aa.css(this[0], c, false, h ? "margin" : "border") : null }; var f = b.toLowerCase(); aa.fn[f] = function(h) { return this[0] == ae ? document.compatMode == "CSS1Compat" && document.documentElement["client" + b] || document.body["client" + b] : this[0] == document ? Math.max(document.documentElement["client" + b], document.body["scroll" + b], document.documentElement["scroll" + b], document.body["offset" + b], document.documentElement["offset" + b]) : h === M ? (this.length ? aa.css(this[0], f) : null) : this.css(f, typeof h === "string" ? h : h + "px") } }) })(); (function(b) { b.fn.lightBox = function(B) { B = jQuery.extend({ overlayBgColor: "#000", overlayOpacity: 0.8, fixedNavigation: false, imageLoading: "/images/lightbox-ico-loading.gif", imageBtnPrev: "/images/lightbox-btn-prev.gif", imageBtnNext: "/images/lightbox-btn-next.gif", imageBtnClose: "/images/lightbox-btn-close.gif", imageBlank: "/images/lightbox-blank.gif", containerBorderSize: 10, containerResizeSpeed: 400, txtImage: "Image", txtOf: "of", keyToClose: "c", keyToPrev: "p", keyToNext: "n", imageArray: [], activeImage: 0 }, B); var v = this; function x() { D(this, v); return false } function D(c, d) { b("embed, object, select").css({ visibility: "hidden" }); F(); B.imageArray.length = 0; B.activeImage = 0; if (d.length == 1) { B.imageArray.push(new Array(c.getAttribute("href"), c.getAttribute("title"))) } else { for (var f = 0; f < d.length; f++) { B.imageArray.push(new Array(d[f].getAttribute("href"), d[f].getAttribute("title"))) } } while (B.imageArray[B.activeImage][0] != c.getAttribute("href")) { B.activeImage++ } J() } function F() { b("body").append('<div id="jquery-overlay"></div><div id="jquery-lightbox"><div id="lightbox-container-image-box"><div id="lightbox-container-image"><img id="lightbox-image"><div style="" id="lightbox-nav"><a href="#" id="lightbox-nav-btnPrev"></a><a href="#" id="lightbox-nav-btnNext"></a></div><div id="lightbox-loading"><a href="#" id="lightbox-loading-link"><img src="' + B.imageLoading + '"></a></div></div></div><div id="lightbox-container-image-data-box"><div id="lightbox-container-image-data"><div id="lightbox-image-details"><span id="lightbox-image-details-caption"></span><span id="lightbox-image-details-currentNumber"></span></div><div id="lightbox-secNav"><a href="#" id="lightbox-secNav-btnClose"><img src="' + B.imageBtnClose + '"></a></div></div></div></div>'); var d = A(); b("#jquery-overlay").css({ backgroundColor: B.overlayBgColor, opacity: B.overlayOpacity, width: d[0], height: d[1] }).fadeIn(); var c = w(); b("#jquery-lightbox").css({ top: c[1] + (d[3] / 10), left: c[0] }).show(); b("#jquery-overlay,#jquery-lightbox").click(function() { I() }); b("#lightbox-loading-link,#lightbox-secNav-btnClose").click(function() { I(); return false }); b(window).resize(function() { var g = A(); b("#jquery-overlay").css({ width: g[0], height: g[1] }); var f = w(); b("#jquery-lightbox").css({ top: f[1] + (g[3] / 10), left: f[0] }) }) } function J() { b("#lightbox-loading").show(); if (B.fixedNavigation) { b("#lightbox-image,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide() } else { b("#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide() } var c = new Image(); c.onload = function() { b("#lightbox-image").attr("src", B.imageArray[B.activeImage][0]); u(c.width, c.height); c.onload = function() { } }; c.src = B.imageArray[B.activeImage][0] } function u(l, h) { var g = b("#lightbox-container-image-box").width(); var j = b("#lightbox-container-image-box").height(); var k = (l + (B.containerBorderSize * 2)); var d = (h + (B.containerBorderSize * 2)); var f = g - k; var c = j - d; b("#lightbox-container-image-box").animate({ width: k, height: d }, B.containerResizeSpeed, function() { y() }); if ((f == 0) && (c == 0)) { if (b.browser.msie) { G(250) } else { G(100) } } b("#lightbox-container-image-data-box").css({ width: l }); b("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({ height: h + (B.containerBorderSize * 2) }) } function y() { b("#lightbox-loading").hide(); b("#lightbox-image").fadeIn(function() { t(); a() }); z() } function t() { b("#lightbox-container-image-data-box").slideDown("fast"); b("#lightbox-image-details-caption").hide(); if (B.imageArray[B.activeImage][1]) { b("#lightbox-image-details-caption").html(B.imageArray[B.activeImage][1]).show() } if (B.imageArray.length > 1) { b("#lightbox-image-details-currentNumber").html(B.txtImage + " " + (B.activeImage + 1) + " " + B.txtOf + " " + B.imageArray.length).show() } } function a() { b("#lightbox-nav").show(); b("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({ background: "transparent url(" + B.imageBlank + ") no-repeat" }); if (B.activeImage != 0) { if (B.fixedNavigation) { b("#lightbox-nav-btnPrev").css({ background: "url(" + B.imageBtnPrev + ") left 15% no-repeat" }).unbind().bind("click", function() { B.activeImage = B.activeImage - 1; J(); return false }) } else { b("#lightbox-nav-btnPrev").unbind().hover(function() { b(this).css({ background: "url(" + B.imageBtnPrev + ") left 15% no-repeat" }) }, function() { b(this).css({ background: "transparent url(" + B.imageBlank + ") no-repeat" }) }).show().bind("click", function() { B.activeImage = B.activeImage - 1; J(); return false }) } } if (B.activeImage != (B.imageArray.length - 1)) { if (B.fixedNavigation) { b("#lightbox-nav-btnNext").css({ background: "url(" + B.imageBtnNext + ") right 15% no-repeat" }).unbind().bind("click", function() { B.activeImage = B.activeImage + 1; J(); return false }) } else { b("#lightbox-nav-btnNext").unbind().hover(function() { b(this).css({ background: "url(" + B.imageBtnNext + ") right 15% no-repeat" }) }, function() { b(this).css({ background: "transparent url(" + B.imageBlank + ") no-repeat" }) }).show().bind("click", function() { B.activeImage = B.activeImage + 1; J(); return false }) } } H() } function H() { b(document).keydown(function(c) { E(c) }) } function C() { b(document).unbind() } function E(c) { if (c == null) { keycode = event.keyCode; escapeKey = 27 } else { keycode = c.keyCode; escapeKey = c.DOM_VK_ESCAPE } key = String.fromCharCode(keycode).toLowerCase(); if ((key == B.keyToClose) || (key == "x") || (keycode == escapeKey)) { I() } if ((key == B.keyToPrev) || (keycode == 37)) { if (B.activeImage != 0) { B.activeImage = B.activeImage - 1; J(); C() } } if ((key == B.keyToNext) || (keycode == 39)) { if (B.activeImage != (B.imageArray.length - 1)) { B.activeImage = B.activeImage + 1; J(); C() } } } function z() { if ((B.imageArray.length - 1) > B.activeImage) { objNext = new Image(); objNext.src = B.imageArray[B.activeImage + 1][0] } if (B.activeImage > 0) { objPrev = new Image(); objPrev.src = B.imageArray[B.activeImage - 1][0] } } function I() { b("#jquery-lightbox").remove(); b("#jquery-overlay").fadeOut(function() { b("#jquery-overlay").remove() }); b("embed, object, select").css({ visibility: "visible" }) } function A() { var d, g; if (window.innerHeight && window.scrollMaxY) { d = window.innerWidth + window.scrollMaxX; g = window.innerHeight + window.scrollMaxY } else { if (document.body.scrollHeight > document.body.offsetHeight) { d = document.body.scrollWidth; g = document.body.scrollHeight } else { d = document.body.offsetWidth; g = document.body.offsetHeight } } var f, c; if (self.innerHeight) { if (document.documentElement.clientWidth) { f = document.documentElement.clientWidth } else { f = self.innerWidth } c = self.innerHeight } else { if (document.documentElement && document.documentElement.clientHeight) { f = document.documentElement.clientWidth; c = document.documentElement.clientHeight } else { if (document.body) { f = document.body.clientWidth; c = document.body.clientHeight } } } if (g < c) { pageHeight = c } else { pageHeight = g } if (d < f) { pageWidth = d } else { pageWidth = f } arrayPageSize = new Array(pageWidth, pageHeight, f, c); return arrayPageSize } function w() { var c, d; if (self.pageYOffset) { d = self.pageYOffset; c = self.pageXOffset } else { if (document.documentElement && document.documentElement.scrollTop) { d = document.documentElement.scrollTop; c = document.documentElement.scrollLeft } else { if (document.body) { d = document.body.scrollTop; c = document.body.scrollLeft } } } arrayPageScroll = new Array(c, d); return arrayPageScroll } function G(c) { var d = new Date(); f = null; do { var f = new Date() } while (f - d < c) } return this.unbind("click").click(x) } })(jQuery); function grey() { var b = { gbWidth: 750, gbHeight: 550, captionHeight: 22, ffMacFlash: true }; $(".FriendsImage").greybox(b); $(".FriendsList").greybox(b) } function athena() { var b = { overlayBgColor: "#003376", overlayOpacity: 0.5 }; $("#galleryia a").lightBox(b) } function load(c) { var d = document.getElementById(c); if (!d) { return } else { Sys.WebForms.PageRequestManager.getInstance().add_endRequest(athena) } } (function(o) { var j; var n = false; o.fn.greybox = function(a) { var b = false; j = o.extend({ gbHeight: 400, gbWidth: 400, captionHeight: 18, ffMacFlash: false }, a || {}); return this.click(function(d) { d.preventDefault(); var c = this.title || o(this).text() || this.href; m(c, this.href) }) }; var h = function() { o("#GB_window,#GB_overlay").hide() }; var m = function(a, c) { if (!j.GB_DONE) { o(document.body).append('<div id="GB_overlay"></div><div id="GB_window"><div id="GB_loading"></div><div id="GB_caption"></div></div>'); var b = o(document).height(); o("#GB_overlay").css("height", b); if (k() && j.ffMacFlash) { o("#GB_overlay").addClass("GB_overlayMacFFBGHack") } else { o("#GB_overlay").addClass("GB_overlayBG") } o("#GB_caption").click(h).css({ height: j.captionHeight, lineHeight: j.captionHeight + "px" }); o("#GB_overlay").click(h); o(window).resize(l); j.GB_DONE = true } o("#GB_frame").remove(); o("#GB_caption").html(a); o("#GB_overlay").show(); o("#GB_loading").show(); l(); o("#GB_window").append("<iframe id='GB_frame' src='" + c + "'></iframe>"); o("#GB_frame").css("height", j.gbHeight - j.captionHeight - 5 + "px"); o("#GB_frame").bind("load", function() { o("#GB_loading").hide() }); o("#GB_window").show() }; var l = function() { var b = document.documentElement; var a = self.innerWidth || (b && b.clientWidth) || document.body.clientWidth; var c = self.innerHeight || (b && b.clientHeight) || document.body.clientHeight; o("#GB_window").css({ width: j.gbWidth + "px", height: j.gbHeight + "px", left: ((a - j.gbWidth) / 2) + "px", top: (((c - j.gbHeight) / 2) - 15) + "px" }) }; var k = function() { var a = navigator.userAgent.toLowerCase(); if (a.indexOf("mac") != -1 && o.browser.mozilla) { return true } else { return false } } })(jQuery); (function(c) { var d = {}; d.divcounter = 0; d.tabpos = ["", "0001021020212212", "00010203041020304041424344142434", "000102030405061020304050606162636465162636465666"]; d.font = { serif: "Georgia, 'Times New Roman', 'Century Schoolbook L', serif", sans_serif: "Verdana, Helvetica, Arial, 'URW Gothic L', sans-serif", monospace: "'Courier New', Courier, 'DejaVu Sans Mono', monospace", fantasy: "Impact, Papyrus, fantasy", cursive: "'Comic Sans MS' cursive" }; c.fn.FontEffect = function(j) { var k = c.extend({ outline: false, outlineColor1: "", outlineColor2: "", outlineWeight: 1, mirror: false, mirrorColor: "#000", mirrorOffset: -10, mirrorHeight: 50, mirrorDetail: 1, mirrorTLength: 50, mirrorTStart: 0.2, shadow: false, shadowColor: "#aaa", shadowOffsetTop: 5, shadowOffsetLeft: 5, shadowBlur: 1, shadowOpacity: 0.1, gradient: false, gradientColor: "", gradientFromTop: true, gradientPosition: 20, gradientLength: 50, gradientSteps: 20, proportional: false, hideText: false, debug: false }, j); this.not(".JQFE").each(function() { if (!k.outline && !k.shadow && !k.mirror && !k.gradient) { k.outline = true } if (k.outline) { if (k.outlineColor1 == "" && k.outlineColor2 == "") { k.outlineColor1 = b(c(this).css("color")) } if (k.outlineColor2 == "") { k.outlineColor2 = k.outlineColor1 } } if (k.gradient && k.gradientColor == "") { k.gradientColor = b(c(this).css("color")) } var O = c(this).css("display"); var M = c(this).css("position"); c(this).css({ display: "inline", position: ((M == "absolute") ? "absolute" : "relative") }); var K = c(this).height(); var h = c(this).width() * 1.04; var R = h + "px"; var t = K + "px"; var g = c(this).html(); c(this).data("options", k).addClass("JQFE").css({ width: R, height: t, display: O, position: ((c(this).css("position") != "absolute") ? "relative" : "absolute"), zoom: 1 }); var Q = c("<div></div>").css({ width: R, height: t, position: "relative" }); Q.append(c("<div class='JQFEText'>" + g + "</div>").css({ display: k.hideText ? "none" : "inline", width: R, height: t, position: "relative", zIndex: 100 })); var L = c("<div></div>").css({ width: R, height: t, left: "0px", position: "absolute", top: parseInt(c(this).css("paddingTop")) * 0 + "px", zIndex: 110 }); var H = c(L).clone().css({ zIndex: 90 }); d.divounter += 4; c(this).html(""); if (k.mirror) { for (i = 0; i < K * (k.mirrorHeight / 100); i++) { if (k.proportional) { var U = (K + k.mirrorOffset + i * k.mirrorDetail).pxToEm({ scope: this }); var N = k.mirrorDetail.pxToEm({ scope: this }); var F = ((K * -1) + i * (100 / k.mirrorHeight)).pxToEm({ scope: this }) } else { var U = (K + k.mirrorOffset + i * k.mirrorDetail) + "px"; var N = k.mirrorDetail + "px"; var F = ((K * -1) + i * (100 / k.mirrorHeight)) + "px" } var T = k.mirrorTStart - (i * (k.mirrorTStart / ((k.mirrorHeight / 100) * k.mirrorTLength))); var P = c("<div class='JQFEMirror'></div>").css({ position: "absolute", top: U, height: N, width: R, overflow: "hidden" }).append(c("<div>" + g + "</div>").css({ position: "absolute", color: k.mirrorColor, top: F, opacity: T })); d.divounter += i * 2; if (T < 0.01) { break } H.append(P) } } if (k.outline) { var f = (k.outlineWeight) * 8; var S = d.tabpos[k.outlineWeight]; for (i = 0; i < f; i++) { P = c("<div class='JQFEOutline'>" + g + "</div>").css({ position: "absolute", top: (S.charAt(i * 2) - k.outlineWeight) + "px", left: (S.charAt(i * 2 + 1) - k.outlineWeight) + "px", width: R, color: ((i < f / 2 + k.outlineWeight) ? k.outlineColor1 : k.outlineColor2), zIndex: ((i > f - f / 3) ? 20 : 30) }); d.divounter += i; H.append(P) } } if (k.shadow) { var f = (k.shadowBlur) * 8; var S = d.tabpos[k.shadowBlur]; for (i = 0; i < f; i++) { P = c("<div class='JQFEShadow'>" + g + "</div>").css({ opacity: k.shadowOpacity, position: "absolute", top: (S.charAt(i * 2) - k.shadowBlur) + k.shadowOffsetTop + "px", left: (S.charAt(i * 2 + 1) - k.shadowBlur) + k.shadowOffsetLeft + "px", width: R, height: t, color: k.shadowColor, zIndex: 10 }); d.divounter += i; H.append(P) } } if (k.gradient) { var J = Math.round((K * (k.gradientLength * 0.01)) / k.gradientSteps); var I = K * (k.gradientPosition * 0.01); var w = (1 / k.gradientSteps); var G = k.gradientColor; for (i = 0; i < k.gradientSteps; i++) { if (k.proportional) { U = (((i == 0) ? 0 : I) + i * J).pxToEm({ scope: this }); N = (((i == 0) ? I : 0) + J).pxToEm({ scope: this }); F = ((((i == 0) ? 0 : I) + i * J) * -1).pxToEm({ scope: this }) } else { U = (((i == 0) ? 0 : I) + i * J) + "px"; N = (((i == 0) ? I : 0) + J) + "px"; F = ((((i == 0) ? 0 : I) + i * J) * -1) + "px" } P = c("<div class='JQFEGradient'></div>").css({ position: "absolute", top: U, height: N, left: "0px", width: R, overflow: "hidden" }).append(c("<div>" + g + "</div>").css({ width: "100%", position: "absolute", top: F, color: G, opacity: 1 - w * i })); d.divounter += i * 2; L.append(P) } } Q.append(H); Q.append(L); c(this).append(Q) }); function l(f) { f = f.substring(1); if (f.length == 3) { f = f.charAt(0) + f.charAt(0) + f.charAt(1) + f.charAt(1) + f.charAt(2) + f.charAt(2) } var g = "rgb(" + parseInt(f.substring(0, 2), 16) + ", " + parseInt(f.substring(2, 4), 16) + ", " + parseInt(f.substring(4, 6), 16) + ")"; return (g) } function a(f) { return (/(#([0-9A-Fa-f]{3,6})\b)|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\))/.test(f)) } function b(h) { if (a(h)) { h = h.toUpperCase(); if (h.charAt(0) == "#") { h = l(h) } var n = h.substring(4, h.length - 1).split(", "); var f = 255 - parseInt(n[0]); var o = 255 - parseInt(n[1]); var g = 255 - parseInt(n[2]); h = "rgb(" + g + ", " + f + ", " + o + ")" } return (h) } return this }; c.fn.changeOptionsFE = function(b) { if (this) { var a = c(this).data("options") || {}; c.extend(a, b); c(this).data("options", a) } }; c.fn.redrawFE = function(a) { if (this) { if (a) { c(this).changeOptionsFE(a) } c(this).removeFE(); c(this).FontEffect(c(this).data("options")) } }; c.fn.removeFE = function(b) { if (this && c(this).hasClass("JQFE")) { var a = c(this).find("div[class='JQFEText']").html(); c(this).removeClass("JQFE"); if (b) { c(this).data("options", {}) } c(this).find("div[class^='JQFE']").remove(); c(this).html(a) } } })(jQuery); Number.prototype.pxToEm = String.prototype.pxToEm = function(g) { g = $.extend({ scope: "body", reverse: false }, g); var k = (this == "") ? 0 : parseFloat(this); var l; var m = function() { var a = document.documentElement; return self.innerWidth || (a && a.clientWidth) || document.body.clientWidth }; if (g.scope == "body" && $.browser.msie && (parseFloat($("body").css("font-size")) / m()).toFixed(1) > 0) { var j = function() { return (parseFloat($("body").css("font-size")) / m()).toFixed(3) * 16 }; l = j() } else { l = parseFloat($(g.scope).css("font-size")) } var h = (g.reverse == true) ? (k * l).toFixed(2) + "px" : (k / l).toFixed(2) + "em"; return h }; var oframe = null; var divnotice = null; var oXHR = null; var iInterval = 30000; var iLastCommentId = -1; var blnRequestEnabled = true; function shownotice(c, e) { divnotice = document.createElement("div"); var d = document.createElement("a"); d.onclick = this.close; d.href = "#"; d.setAttribute("Id", "close"); d.className = "close"; d.appendChild(document.createTextNode("close")); divnotice.appendChild(d); divnotice.className = "notifier"; divnotice.setAttribute("Id", "divnotice"); divnotice.setAttribute("align", "center"); document.body.appendChild(divnotice); divnotice.style.top = document.body.scrollTop + "px"; divnotice.style.left = document.body.scrollLeft + "px"; divnotice.style.display = "block"; if (e == 0) { createframe(divnotice); oframe.location = "/masterpages/tinyframe.aspx?thesender=" + c } else if (e == 1) { drawrequestbox(divnotice); } else if (e == 2) { drawmessagebox(divnotice); } } function createframe(d) { var c = document.createElement("iframe"); c.id = "myframe"; c.name = "myframe"; c.setAttribute("frameborder", "0"); c.setAttribute("scrolling", "no"); d.appendChild(c); oframe = frames.myframe } function close() { var b = this.parentNode; document.body.removeChild(b); return false } function polling() { if (document.getElementById("userAuth").value == "True") { startpoll() } } function startpoll() { if (blnRequestEnabled) { try { if (!oXHR) { oXHR = zXmlHttp.createRequest() } else { if (oXHR.readyState != 0) { oXHR.abort() } } oXHR.open("GET", "/samplenewsticker/CheckChatroom.aspx", true); oXHR.onreadystatechange = function() { if (oXHR.readyState == 4) { if (oXHR.status == 200) { var a = oXHR.responseText.split("||"); if (a[0] != iLastCommentId) { iLastCommentId = a[0]; if (iLastCommentId != -1) { if (!divnotice) { shownotice(a[1], a[2]) } } } if (!divnotice) { setTimeout(startpoll, iInterval) } } else { blnRequestEnabled = false } } }; oXHR.send(null) } catch (b) { blnRequestEnabled = false } } }; function AutoSuggestControl(c, d) { try { this.cur = -1; this.layer = null; this.provider = d; this.textbox = c; this.timeoutId = null; this.userText = c.value; this.init() } catch (e) { } } AutoSuggestControl.prototype.autosuggest = function(c, d) { this.cur = -1; if (c.length > 0) { if (d) { this.typeAhead(c[0]) } this.showSuggestions(c) } else { this.hideSuggestions() } }; AutoSuggestControl.prototype.createDropDown = function() { this.layer = document.createElement("div"); this.layer.className = "newsuggestions"; this.layer.style.visibility = "hidden"; this.layer.style.width = this.textbox.offsetWidth; document.body.appendChild(this.layer); var b = this; this.layer.onmousedown = this.layer.onmouseup = this.layer.onmouseover = function(a) { a = a || window.event; oTarget = a.target || a.srcElement; if (a.type == "mousedown") { b.textbox.value = oTarget.firstChild.nodeValue; b.hideSuggestions() } else { if (a.type == "mouseover") { b.highlightSuggestion(oTarget) } else { b.textbox.focus() } } } }; AutoSuggestControl.prototype.getLeft = function() { var c = this.textbox; var d = 0; while (c != document.body) { d += c.offsetLeft; c = c.offsetParent } return d }; AutoSuggestControl.prototype.getTop = function() { var c = this.textbox; var d = 0; while (c != document.body) { d += c.offsetTop; c = c.offsetParent } return d }; AutoSuggestControl.prototype.goToSuggestion = function(f) { var g = this.layer.childNodes; if (g.length > 0) { var d = null; if (f > 0) { if (this.cur < g.length - 1) { d = g[++this.cur] } } else { if (this.cur > 0) { d = g[--this.cur] } } if (d) { this.highlightSuggestion(d); this.textbox.value = (d.firstChild.nodeValue).split("||")[0] } } }; AutoSuggestControl.prototype.handleKeyDown = function(b) { switch (b.keyCode) { case 38: this.goToSuggestion(-1); break; case 40: this.goToSuggestion(1); break; case 27: this.textbox.value = this.userText; this.selectRange(this.userText.length, 0); case 13: this.hideSuggestions(); break } }; AutoSuggestControl.prototype.handleKeyUp = function(f) { var g = f.keyCode; var d = this; this.userText = this.textbox.value; clearTimeout(this.timeoutId); if (g == 8 || g == 46) { this.timeoutId = setTimeout(function() { d.provider.requestSuggestions(d, false) }, 250) } else { if ((g != 16 && g < 32) || (g >= 33 && g < 46) || (g >= 112 && g <= 123)) { } else { this.timeoutId = setTimeout(function() { d.provider.requestSuggestions(d, true) }, 250) } } }; AutoSuggestControl.prototype.hideSuggestions = function() { this.layer.style.visibility = "hidden" }; AutoSuggestControl.prototype.highlightSuggestion = function(f) { for (var d = 0; d < this.layer.childNodes.length; d++) { var g = this.layer.childNodes[d]; if (g == f) { g.className = "current" } else { if (g.className == "current") { g.className = "" } } } }; AutoSuggestControl.prototype.init = function() { var b = this; this.textbox.onkeyup = function(a) { if (!a) { a = window.event } b.handleKeyUp(a) }; this.textbox.onkeydown = function(a) { if (!a) { a = window.event } b.handleKeyDown(a) }; this.textbox.onblur = function() { b.hideSuggestions() }; this.createDropDown() }; AutoSuggestControl.prototype.selectRange = function(d, f) { if (this.textbox.createTextRange) { var g = this.textbox.createTextRange(); g.moveStart("character", d); g.moveEnd("character", f - this.textbox.value.length); g.select() } else { if (this.textbox.setSelectionRange) { this.textbox.setSelectionRange(d, f) } } this.textbox.focus() };AutoSuggestControl.prototype.showSuggestions = function(g) { var f = null; var oImg = null; var br = null; var s = null; this.layer.innerHTML = ""; for (var d = 0; d < g.length; d++) { s = g[d].split("||"); f = document.createElement("div"); oImg = document.createElement("img"); oImg.src = s[1]; if (s[1].length < 1) {oImg.style.display="none" } br = document.createElement("br"); f.appendChild(document.createTextNode(s[0])); f.appendChild(br); f.appendChild(oImg); this.layer.appendChild(f)  } this.layer.style.left = this.getLeft() + "px"; this.layer.style.top = (this.getTop() + this.textbox.offsetHeight) + "px"; this.layer.style.visibility = "visible" };   AutoSuggestControl.prototype.typeAhead = function(c) { if (this.textbox.createTextRange || this.textbox.setSelectionRange) { var s = c.split("||"); var d = this.textbox.value.length; this.selectRange(d, s[0].length) } }; function SuggestionProvider() { this.xhr = zXmlHttp.createRequest() } SuggestionProvider.prototype.requestSuggestions = function(k, m) { var g = this.xhr; if (g.readyState != 0) { g.abort() } var j = { requesting: returnhan(), text: k.userText, limit: 10 }; g.open("post", "/samplenewsticker/AutoFindFriend.aspx", true); g.onreadystatechange = function() { if (g.readyState == 4) { var b = g.responseText; var a = YAHOO.lang.JSON.parse(b); k.autosuggest(a, m) } }; var h = YAHOO.lang.JSON.stringify(j); if (returnhan() != "All") { g.send(h) } }; function returnhan() { var a = document.getElementById("ctl00_Dmaster"); var b = document.getElementById("ctl00_Dmastera"); if (a != null) { return a.value } else { return b.value } } function drawrequestbox(a) { var b = document.createElement("div"); b.id = "divrequest"; b.innerHTML = "<p>Wooo, a user is <b>requesting</b> to be your friend.Click <a href='" + "/CheckMessage.aspx" + "'>here</a> for more info.</p>"; a.appendChild(b); } function drawmessagebox(a) { var b = document.createElement("div"); b.id = "divmessage"; b.innerHTML = "<p>Hi, you have a message from a <b>friend</b> a few seconds ago.Click <a href='" + "/CheckMessage.aspx" + "'>here</a> to read it.</p>"; a.appendChild(b); }

