/*
* jquery.js 1.2.6
*/
(function () { var u = window.jQuery, _$ = window.$; var v = window.jQuery = window.$ = function (a, b) { return new v.fn.init(a, b) }; var w = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/, isSimple = /^.[^:#\[\.]*$/, undefined; v.fn = v.prototype = { init: function (a, b) { a = a || document; if (a.nodeType) { this[0] = a; this.length = 1; return this } if (typeof a == "string") { var c = w.exec(a); if (c && (c[1] || !b)) { if (c[1]) a = v.clean([c[1]], b); else { var d = document.getElementById(c[3]); if (d) { if (d.id != c[3]) return v().find(a); return v(d) } a = [] } } else return v(b).find(a) } else if (v.isFunction(a)) return v(document)[v.fn.ready ? "ready" : "load"](a); return this.setArray(v.makeArray(a)) }, jquery: "1.2.6", size: function () { return this.length }, length: 0, get: function (a) { return a == undefined ? v.makeArray(this) : this[a] }, pushStack: function (a) { var b = v(a); b.prevObject = this; return b }, setArray: function (a) { this.length = 0; Array.prototype.push.apply(this, a); return this }, each: function (a, b) { return v.each(this, a, b) }, index: function (a) { var b = -1; return v.inArray(a && a.jquery ? a[0] : a, this) }, attr: function (a, b, c) { var d = a; if (a.constructor == String) if (b === undefined) return this[0] && v[c || "attr"](this[0], a); else { d = {}; d[a] = b } return this.each(function (i) { for (a in d) v.attr(c ? this.style : this, a, v.prop(this, d[a], c, i, a)) }) }, css: function (a, b) { if ((a == 'width' || a == 'height') && parseFloat(b) < 0) b = undefined; return this.attr(a, b, "curCSS") }, text: function (a) { if (typeof a != "object" && a != null) return this.empty().append((this[0] && this[0].ownerDocument || document).createTextNode(a)); var b = ""; v.each(a || this, function () { v.each(this.childNodes, function () { if (this.nodeType != 8) b += this.nodeType != 1 ? this.nodeValue : v.fn.text([this]) }) }); return b }, wrapAll: function (b) { if (this[0]) v(b, this[0].ownerDocument).clone().insertBefore(this[0]).map(function () { var a = this; while (a.firstChild) a = a.firstChild; return a }).append(this); return this }, wrapInner: function (a) { return this.each(function () { v(this).contents().wrapAll(a) }) }, wrap: function (a) { return this.each(function () { v(this).wrapAll(a) }) }, append: function () { return this.domManip(arguments, true, false, function (a) { if (this.nodeType == 1) this.appendChild(a) }) }, prepend: function () { return this.domManip(arguments, true, true, function (a) { if (this.nodeType == 1) this.insertBefore(a, this.firstChild) }) }, before: function () { return this.domManip(arguments, false, false, function (a) { this.parentNode.insertBefore(a, this) }) }, after: function () { return this.domManip(arguments, false, true, function (a) { this.parentNode.insertBefore(a, this.nextSibling) }) }, end: function () { return this.prevObject || v([]) }, find: function (b) { var c = v.map(this, function (a) { return v.find(b, a) }); return this.pushStack(/[^+>] [^+>]/.test(b) || b.indexOf("..") > -1 ? v.unique(c) : c) }, clone: function (d) { var e = this.map(function () { if (v.browser.msie && !v.isXMLDoc(this)) { var a = this.cloneNode(true), container = document.createElement("div"); container.appendChild(a); return v.clean([container.innerHTML])[0] } else return this.cloneNode(true) }); var f = e.find("*").andSelf().each(function () { if (this[x] != undefined) this[x] = null }); if (d === true) this.find("*").andSelf().each(function (i) { if (this.nodeType == 3) return; var a = v.data(this, "events"); for (var b in a) for (var c in a[b]) v.event.add(f[i], b, a[b][c], a[b][c].data) }); return e }, filter: function (b) { return this.pushStack(v.isFunction(b) && v.grep(this, function (a, i) { return b.call(a, i) }) || v.multiFilter(b, this)) }, not: function (a) { if (a.constructor == String) if (isSimple.test(a)) return this.pushStack(v.multiFilter(a, this, true)); else a = v.multiFilter(a, this); var b = a.length && a[a.length - 1] !== undefined && !a.nodeType; return this.filter(function () { return b ? v.inArray(this, a) < 0 : this != a }) }, add: function (a) { return this.pushStack(v.unique(v.merge(this.get(), typeof a == 'string' ? v(a) : v.makeArray(a)))) }, is: function (a) { return !!a && v.multiFilter(a, this).length > 0 }, hasClass: function (a) { return this.is("." + a) }, val: function (b) { if (b == undefined) { if (this.length) { var c = this[0]; if (v.nodeName(c, "select")) { var d = c.selectedIndex, values = [], options = c.options, one = c.type == "select-one"; if (d < 0) return null; for (var i = one ? d : 0, max = one ? d + 1 : options.length; i < max; i++) { var e = options[i]; if (e.selected) { b = v.browser.msie && !e.attributes.value.specified ? e.text : e.value; if (one) return b; values.push(b) } } return values } else return (this[0].value || "").replace(/\r/g, "") } return undefined } if (b.constructor == Number) b += ''; return this.each(function () { if (this.nodeType != 1) return; if (b.constructor == Array && /radio|checkbox/.test(this.type)) this.checked = (v.inArray(this.value, b) >= 0 || v.inArray(this.name, b) >= 0); else if (v.nodeName(this, "select")) { var a = v.makeArray(b); v("option", this).each(function () { this.selected = (v.inArray(this.value, a) >= 0 || v.inArray(this.text, a) >= 0) }); if (!a.length) this.selectedIndex = -1 } else this.value = b }) }, html: function (a) { return a == undefined ? (this[0] ? this[0].innerHTML : null) : this.empty().append(a) }, replaceWith: function (a) { return this.after(a).remove() }, eq: function (i) { return this.slice(i, i + 1) }, slice: function () { return this.pushStack(Array.prototype.slice.apply(this, arguments)) }, map: function (b) { return this.pushStack(v.map(this, function (a, i) { return b.call(a, i, a) })) }, andSelf: function () { return this.add(this.prevObject) }, data: function (a, b) { var c = a.split("."); c[1] = c[1] ? "." + c[1] : ""; if (b === undefined) { var d = this.triggerHandler("getData" + c[1] + "!", [c[0]]); if (d === undefined && this.length) d = v.data(this[0], a); return d === undefined && c[1] ? this.data(c[0]) : d } else return this.trigger("setData" + c[1] + "!", [c[0], b]).each(function () { v.data(this, a, b) }) }, removeData: function (a) { return this.each(function () { v.removeData(this, a) }) }, domManip: function (d, e, f, g) { var h = this.length > 1, elems; return this.each(function () { if (!elems) { elems = v.clean(d, this.ownerDocument); if (f) elems.reverse() } var b = this; if (e && v.nodeName(this, "table") && v.nodeName(elems[0], "tr")) b = this.getElementsByTagName("tbody")[0] || this.appendChild(this.ownerDocument.createElement("tbody")); var c = v([]); v.each(elems, function () { var a = h ? v(this).clone(true)[0] : this; if (v.nodeName(a, "script")) c = c.add(a); else { if (a.nodeType == 1) c = c.add(v("script", a).remove()); g.call(b, a) } }); c.each(evalScript) }) } }; v.fn.init.prototype = v.fn; function evalScript(i, a) { if (a.src) v.ajax({ url: a.src, async: false, dataType: "script" }); else v.globalEval(a.text || a.textContent || a.innerHTML || ""); if (a.parentNode) a.parentNode.removeChild(a) } function now() { return +new Date } v.extend = v.fn.extend = function () { var a = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options; if (a.constructor == Boolean) { deep = a; a = arguments[1] || {}; i = 2 } if (typeof a != "object" && typeof a != "function") a = {}; if (length == i) { a = this; --i } for (; i < length; i++) if ((options = arguments[i]) != null) for (var b in options) { var c = a[b], copy = options[b]; if (a === copy) continue; if (deep && copy && typeof copy == "object" && !copy.nodeType) a[b] = v.extend(deep, c || (copy.length != null ? [] : {}), copy); else if (copy !== undefined) a[b] = copy } return a }; var x = "jQuery" + now(), uuid = 0, windowData = {}, exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i, defaultView = document.defaultView || {}; v.extend({ noConflict: function (a) { window.$ = _$; if (a) window.jQuery = u; return v }, isFunction: function (a) { return !!a && typeof a != "string" && !a.nodeName && a.constructor != Array && /^[\s[]?function/.test(a + "") }, isXMLDoc: function (a) { return a.documentElement && !a.body || a.tagName && a.ownerDocument && !a.ownerDocument.body }, globalEval: function (a) { a = v.trim(a); if (a) { var b = document.getElementsByTagName("head")[0] || document.documentElement, script = document.createElement("script"); script.type = "text/javascript"; if (v.browser.msie) script.text = a; else script.appendChild(document.createTextNode(a)); b.insertBefore(script, b.firstChild); b.removeChild(script) } }, nodeName: function (a, b) { return a.nodeName && a.nodeName.toUpperCase() == b.toUpperCase() }, cache: {}, data: function (a, b, c) { a = a == window ? windowData : a; var d = a[x]; if (!d) d = a[x] = ++uuid; if (b && !v.cache[d]) v.cache[d] = {}; if (c !== undefined) v.cache[d][b] = c; return b ? v.cache[d][b] : d }, removeData: function (a, b) { a = a == window ? windowData : a; var c = a[x]; if (b) { if (v.cache[c]) { delete v.cache[c][b]; b = ""; for (b in v.cache[c]) break; if (!b) v.removeData(a) } } else { try { delete a[x] } catch (e) { if (a.removeAttribute) a.removeAttribute(x) } delete v.cache[c] } }, each: function (a, b, c) { var d, i = 0, length = a.length; if (c) { if (length == undefined) { for (d in a) if (b.apply(a[d], c) === false) break } else for (; i < length; ) if (b.apply(a[i++], c) === false) break } else { if (length == undefined) { for (d in a) if (b.call(a[d], d, a[d]) === false) break } else for (var e = a[0]; i < length && b.call(e, i, e) !== false; e = a[++i]) { } } return a }, prop: function (a, b, c, i, d) { if (v.isFunction(b)) b = b.call(a, i); return b && b.constructor == Number && c == "curCSS" && !exclude.test(d) ? b + "px" : b }, className: { add: function (b, c) { v.each((c || "").split(/\s+/), function (i, a) { if (b.nodeType == 1 && !v.className.has(b.className, a)) b.className += (b.className ? " " : "") + a }) }, remove: function (b, c) { if (b.nodeType == 1) b.className = c != undefined ? v.grep(b.className.split(/\s+/), function (a) { return !v.className.has(c, a) }).join(" ") : "" }, has: function (a, b) { return v.inArray(b, (a.className || a).toString().split(/\s+/)) > -1 } }, swap: function (a, b, c) { var d = {}; for (var e in b) { d[e] = a.style[e]; a.style[e] = b[e] } c.call(a); for (var e in b) a.style[e] = d[e] }, css: function (b, c, d) { if (c == "width" || c == "height") { var e, props = { position: "absolute", visibility: "hidden", display: "block" }, which = c == "width" ? ["Left", "Right"] : ["Top", "Bottom"]; function getWH() { e = c == "width" ? b.offsetWidth : b.offsetHeight; var a = 0, border = 0; v.each(which, function () { a += parseFloat(v.curCSS(b, "padding" + this, true)) || 0; border += parseFloat(v.curCSS(b, "border" + this + "Width", true)) || 0 }); e -= Math.round(a + border) } if (v(b).is(":visible")) getWH(); else v.swap(b, props, getWH); return Math.max(0, e) } return v.curCSS(b, c, d) }, curCSS: function (c, d, e) { var f, style = c.style; function color(a) { if (!v.browser.safari) return false; var b = defaultView.getComputedStyle(a, null); return !b || b.getPropertyValue("color") == "" } if (d == "opacity" && v.browser.msie) { f = v.attr(style, "opacity"); return f == "" ? "1" : f } if (v.browser.opera && d == "display") { var g = style.outline; style.outline = "0 solid black"; style.outline = g } if (d.match(/float/i)) d = A; if (!e && style && style[d]) f = style[d]; else if (defaultView.getComputedStyle) { if (d.match(/float/i)) d = "float"; d = d.replace(/([A-Z])/g, "-$1").toLowerCase(); var h = defaultView.getComputedStyle(c, null); if (h && !color(c)) f = h.getPropertyValue(d); else { var j = [], stack = [], a = c, i = 0; for (; a && color(a); a = a.parentNode) stack.unshift(a); for (; i < stack.length; i++) if (color(stack[i])) { j[i] = stack[i].style.display; stack[i].style.display = "block" } f = d == "display" && j[stack.length - 1] != null ? "none" : (h && h.getPropertyValue(d)) || ""; for (i = 0; i < j.length; i++) if (j[i] != null) stack[i].style.display = j[i] } if (d == "opacity" && f == "") f = "1" } else if (c.currentStyle) { var k = d.replace(/\-(\w)/g, function (a, b) { return b.toUpperCase() }); f = c.currentStyle[d] || c.currentStyle[k]; if (!/^\d+(px)?$/i.test(f) && /^\d/.test(f)) { var l = style.left, rsLeft = c.runtimeStyle.left; c.runtimeStyle.left = c.currentStyle.left; style.left = f || 0; f = style.pixelLeft + "px"; style.left = l; c.runtimeStyle.left = rsLeft } } return f }, clean: function (h, k) { var l = []; k = k || document; if (typeof k.createElement == 'undefined') k = k.ownerDocument || k[0] && k[0].ownerDocument || document; v.each(h, function (i, d) { if (!d) return; if (d.constructor == Number) d += ''; if (typeof d == "string") { d = d.replace(/(<(\w+)[^>]*?)\/>/g, function (a, b, c) { return c.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? a : b + "></" + c + ">" }); var e = v.trim(d).toLowerCase(), div = k.createElement("div"); var f = !e.indexOf("<opt") && [1, "<select multiple='multiple'>", "</select>"] || !e.indexOf("<leg") && [1, "<fieldset>", "</fieldset>"] || e.match(/^<(thead|tbody|tfoot|colg|cap)/) && [1, "<table>", "</table>"] || !e.indexOf("<tr") && [2, "<table><tbody>", "</tbody></table>"] || (!e.indexOf("<td") || !e.indexOf("<th")) && [3, "<table><tbody><tr>", "</tr></tbody></table>"] || !e.indexOf("<col") && [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"] || v.browser.msie && [1, "div<div>", "</div>"] || [0, "", ""]; div.innerHTML = f[1] + d + f[2]; while (f[0]--) div = div.lastChild; if (v.browser.msie) { var g = !e.indexOf("<table") && e.indexOf("<tbody") < 0 ? div.firstChild && div.firstChild.childNodes : f[1] == "<table>" && e.indexOf("<tbody") < 0 ? div.childNodes : []; for (var j = g.length - 1; j >= 0; --j) if (v.nodeName(g[j], "tbody") && !g[j].childNodes.length) g[j].parentNode.removeChild(g[j]); if (/^\s/.test(d)) div.insertBefore(k.createTextNode(d.match(/^\s*/)[0]), div.firstChild) } d = v.makeArray(div.childNodes) } if (d.length === 0 && (!v.nodeName(d, "form") && !v.nodeName(d, "select"))) return; if (d[0] == undefined || v.nodeName(d, "form") || d.options) l.push(d); else l = v.merge(l, d) }); return l }, attr: function (c, d, e) { if (!c || c.nodeType == 3 || c.nodeType == 8) return undefined; var f = !v.isXMLDoc(c), set = e !== undefined, msie = v.browser.msie; d = f && v.props[d] || d; if (c.tagName) { var g = /href|src|style/.test(d); if (d == "selected" && v.browser.safari) c.parentNode.selectedIndex; if (d in c && f && !g) { if (set) { if (d == "type" && v.nodeName(c, "input") && c.parentNode) throw "type property can't be changed"; c[d] = e } if (v.nodeName(c, "form") && c.getAttributeNode(d)) return c.getAttributeNode(d).nodeValue; return c[d] } if (msie && f && d == "style") return v.attr(c.style, "cssText", e); if (set) c.setAttribute(d, "" + e); var h = msie && f && g ? c.getAttribute(d, 2) : c.getAttribute(d); return h === null ? undefined : h } if (msie && d == "opacity") { if (set) { c.zoom = 1; c.filter = (c.filter || "").replace(/alpha\([^)]*\)/, "") + (parseInt(e) + '' == "NaN" ? "" : "alpha(opacity=" + e * 100 + ")") } return c.filter && c.filter.indexOf("opacity=") >= 0 ? (parseFloat(c.filter.match(/opacity=([^)]*)/)[1]) / 100) + '' : "" } d = d.replace(/-([a-z])/ig, function (a, b) { return b.toUpperCase() }); if (set) c[d] = e; return c[d] }, trim: function (a) { return (a || "").replace(/^\s+|\s+$/g, "") }, makeArray: function (a) { var b = []; if (a != null) { var i = a.length; if (i == null || a.split || a.setInterval || a.call) b[0] = a; else while (i) b[--i] = a[i] } return b }, inArray: function (a, b) { for (var i = 0, length = b.length; i < length; i++) if (b[i] === a) return i; return -1 }, merge: function (a, b) { var i = 0, elem, pos = a.length; if (v.browser.msie) { while (elem = b[i++]) if (elem.nodeType != 8) a[pos++] = elem } else while (elem = b[i++]) a[pos++] = elem; return a }, unique: function (a) { var b = [], done = {}; try { for (var i = 0, length = a.length; i < length; i++) { var c = v.data(a[i]); if (!done[c]) { done[c] = true; b.push(a[i]) } } } catch (e) { b = a } return b }, grep: function (a, b, c) { var d = []; for (var i = 0, length = a.length; i < length; i++) if (!c != !b(a[i], i)) d.push(a[i]); return d }, map: function (a, b) { var c = []; for (var i = 0, length = a.length; i < length; i++) { var d = b(a[i], i); if (d != null) c[c.length] = d } return c.concat.apply([], c) } }); var y = navigator.userAgent.toLowerCase(); v.browser = { version: (y.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/) || [])[1], safari: /webkit/.test(y), opera: /opera/.test(y), msie: /msie/.test(y) && !/opera/.test(y), mozilla: /mozilla/.test(y) && !/(compatible|webkit)/.test(y) }; var A = v.browser.msie ? "styleFloat" : "cssFloat"; v.extend({ boxModel: !v.browser.msie || document.compatMode == "CSS1Compat", props: { "for": "htmlFor", "class": "className", "float": A, cssFloat: A, styleFloat: A, readonly: "readOnly", maxlength: "maxLength", cellspacing: "cellSpacing"} }); v.each({ parent: function (a) { return a.parentNode }, parents: function (a) { return v.dir(a, "parentNode") }, next: function (a) { return v.nth(a, 2, "nextSibling") }, prev: function (a) { return v.nth(a, 2, "previousSibling") }, nextAll: function (a) { return v.dir(a, "nextSibling") }, prevAll: function (a) { return v.dir(a, "previousSibling") }, siblings: function (a) { return v.sibling(a.parentNode.firstChild, a) }, children: function (a) { return v.sibling(a.firstChild) }, contents: function (a) { return v.nodeName(a, "iframe") ? a.contentDocument || a.contentWindow.document : v.makeArray(a.childNodes) } }, function (c, d) { v.fn[c] = function (a) { var b = v.map(this, d); if (a && typeof a == "string") b = v.multiFilter(a, b); return this.pushStack(v.unique(b)) } }); v.each({ appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, function (b, c) { v.fn[b] = function () { var a = arguments; return this.each(function () { for (var i = 0, length = a.length; i < length; i++) v(a[i])[c](this) }) } }); v.each({ removeAttr: function (a) { v.attr(this, a, ""); if (this.nodeType == 1) this.removeAttribute(a) }, addClass: function (a) { v.className.add(this, a) }, removeClass: function (a) { v.className.remove(this, a) }, toggleClass: function (a) { v.className[v.className.has(this, a) ? "remove" : "add"](this, a) }, remove: function (a) { if (!a || v.filter(a, [this]).r.length) { v("*", this).add(this).each(function () { v.event.remove(this); v.removeData(this) }); if (this.parentNode) this.parentNode.removeChild(this) } }, empty: function () { v(">*", this).remove(); while (this.firstChild) this.removeChild(this.firstChild) } }, function (a, b) { v.fn[a] = function () { return this.each(b, arguments) } }); v.each(["Height", "Width"], function (i, b) { var c = b.toLowerCase(); v.fn[c] = function (a) { return this[0] == window ? v.browser.opera && document.body["client" + b] || v.browser.safari && window["inner" + b] || document.compatMode == "CSS1Compat" && document.documentElement["client" + b] || document.body["client" + b] : this[0] == document ? Math.max(Math.max(document.body["scroll" + b], document.documentElement["scroll" + b]), Math.max(document.body["offset" + b], document.documentElement["offset" + b])) : a == undefined ? (this.length ? v.css(this[0], c) : null) : this.css(c, a.constructor == String ? a : a + "px") } }); function num(a, b) { return a[0] && parseInt(v.curCSS(a[0], b, true), 10) || 0 } var B = v.browser.safari && parseInt(v.browser.version) < 417 ? "(?:[\\w*_-]|\\\\.)" : "(?:[\\w\u0128-\uFFFF*_-]|\\\\.)", quickChild = new RegExp("^>\\s*(" + B + "+)"), quickID = new RegExp("^(" + B + "+)(#)(" + B + "+)"), quickClass = new RegExp("^([#.]?)(" + B + "*)"); v.extend({ expr: { "": function (a, i, m) { return m[2] == "*" || v.nodeName(a, m[2]) }, "#": function (a, i, m) { return a.getAttribute("id") == m[2] }, ":": { lt: function (a, i, m) { return i < m[3] - 0 }, gt: function (a, i, m) { return i > m[3] - 0 }, nth: function (a, i, m) { return m[3] - 0 == i }, eq: function (a, i, m) { return m[3] - 0 == i }, first: function (a, i) { return i == 0 }, last: function (a, i, m, r) { return i == r.length - 1 }, even: function (a, i) { return i % 2 == 0 }, odd: function (a, i) { return i % 2 }, "first-child": function (a) { return a.parentNode.getElementsByTagName("*")[0] == a }, "last-child": function (a) { return v.nth(a.parentNode.lastChild, 1, "previousSibling") == a }, "only-child": function (a) { return !v.nth(a.parentNode.lastChild, 2, "previousSibling") }, parent: function (a) { return a.firstChild }, empty: function (a) { return !a.firstChild }, contains: function (a, i, m) { return (a.textContent || a.innerText || v(a).text() || "").indexOf(m[3]) >= 0 }, visible: function (a) { return "hidden" != a.type && v.css(a, "display") != "none" && v.css(a, "visibility") != "hidden" }, hidden: function (a) { return "hidden" == a.type || v.css(a, "display") == "none" || v.css(a, "visibility") == "hidden" }, enabled: function (a) { return !a.disabled }, disabled: function (a) { return a.disabled }, checked: function (a) { return a.checked }, selected: function (a) { return a.selected || v.attr(a, "selected") }, text: function (a) { return "text" == a.type }, radio: function (a) { return "radio" == a.type }, checkbox: function (a) { return "checkbox" == a.type }, file: function (a) { return "file" == a.type }, password: function (a) { return "password" == a.type }, submit: function (a) { return "submit" == a.type }, image: function (a) { return "image" == a.type }, reset: function (a) { return "reset" == a.type }, button: function (a) { return "button" == a.type || v.nodeName(a, "button") }, input: function (a) { return /input|select|textarea|button/i.test(a.nodeName) }, has: function (a, i, m) { return v.find(m[3], a).length }, header: function (a) { return /h\d/i.test(a.nodeName) }, animated: function (a) { return v.grep(v.timers, function (b) { return a == b.elem }).length } } }, parse: [/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/, /^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/, new RegExp("^([:.#]*)(" + B + "+)")], multiFilter: function (a, b, c) { var d, cur = []; while (a && a != d) { d = a; var f = v.filter(a, b, c); a = f.t.replace(/^\s*,\s*/, ""); cur = c ? b = f.r : v.merge(cur, f.r) } return cur }, find: function (t, a) { if (typeof t != "string") return [t]; if (a && a.nodeType != 1 && a.nodeType != 9) return []; a = a || document; var b = [a], done = [], last, nodeName; while (t && last != t) { var r = []; last = t; t = v.trim(t); var d = false, re = quickChild, m = re.exec(t); if (m) { nodeName = m[1].toUpperCase(); for (var i = 0; b[i]; i++) for (var c = b[i].firstChild; c; c = c.nextSibling) if (c.nodeType == 1 && (nodeName == "*" || c.nodeName.toUpperCase() == nodeName)) r.push(c); b = r; t = t.replace(re, ""); if (t.indexOf(" ") == 0) continue; d = true } else { re = /^([>+~])\s*(\w*)/i; if ((m = re.exec(t)) != null) { r = []; var e = {}; nodeName = m[2].toUpperCase(); m = m[1]; for (var j = 0, rl = b.length; j < rl; j++) { var n = m == "~" || m == "+" ? b[j].nextSibling : b[j].firstChild; for (; n; n = n.nextSibling) if (n.nodeType == 1) { var f = v.data(n); if (m == "~" && e[f]) break; if (!nodeName || n.nodeName.toUpperCase() == nodeName) { if (m == "~") e[f] = true; r.push(n) } if (m == "+") break } } b = r; t = v.trim(t.replace(re, "")); d = true } } if (t && !d) { if (!t.indexOf(",")) { if (a == b[0]) b.shift(); done = v.merge(done, b); r = b = [a]; t = " " + t.substr(1, t.length) } else { var g = quickID; var m = g.exec(t); if (m) { m = [0, m[2], m[3], m[1]] } else { g = quickClass; m = g.exec(t) } m[2] = m[2].replace(/\\/g, ""); var h = b[b.length - 1]; if (m[1] == "#" && h && h.getElementById && !v.isXMLDoc(h)) { var k = h.getElementById(m[2]); if ((v.browser.msie || v.browser.opera) && k && typeof k.id == "string" && k.id != m[2]) k = v('[@id="' + m[2] + '"]', h)[0]; b = r = k && (!m[3] || v.nodeName(k, m[3])) ? [k] : [] } else { for (var i = 0; b[i]; i++) { var l = m[1] == "#" && m[3] ? m[3] : m[1] != "" || m[0] == "" ? "*" : m[2]; if (l == "*" && b[i].nodeName.toLowerCase() == "object") l = "param"; r = v.merge(r, b[i].getElementsByTagName(l)) } if (m[1] == ".") r = v.classFilter(r, m[2]); if (m[1] == "#") { var o = []; for (var i = 0; r[i]; i++) if (r[i].getAttribute("id") == m[2]) { o = [r[i]]; break } r = o } b = r } t = t.replace(g, "") } } if (t) { var p = v.filter(t, r); b = r = p.r; t = v.trim(p.t) } } if (t) b = []; if (b && a == b[0]) b.shift(); done = v.merge(done, b); return done }, classFilter: function (r, m, a) { m = " " + m + " "; var b = []; for (var i = 0; r[i]; i++) { var c = (" " + r[i].className + " ").indexOf(m) >= 0; if (!a && c || a && !c) b.push(r[i]) } return b }, filter: function (t, r, b) { var d; while (t && t != d) { d = t; var p = v.parse, m; for (var i = 0; p[i]; i++) { m = p[i].exec(t); if (m) { t = t.substring(m[0].length); m[2] = m[2].replace(/\\/g, ""); break } } if (!m) break; if (m[1] == ":" && m[2] == "not") r = isSimple.test(m[3]) ? v.filter(m[3], r, true).r : v(r).not(m[3]); else if (m[1] == ".") r = v.classFilter(r, m[2], b); else if (m[1] == "[") { var e = [], type = m[3]; for (var i = 0, rl = r.length; i < rl; i++) { var a = r[i], z = a[v.props[m[2]] || m[2]]; if (z == null || /href|src|selected/.test(m[2])) z = v.attr(a, m[2]) || ''; if ((type == "" && !!z || type == "=" && z == m[5] || type == "!=" && z != m[5] || type == "^=" && z && !z.indexOf(m[5]) || type == "$=" && z.substr(z.length - m[5].length) == m[5] || (type == "*=" || type == "~=") && z.indexOf(m[5]) >= 0) ^ b) e.push(a) } r = e } else if (m[1] == ":" && m[2] == "nth-child") { var f = {}, e = [], test = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3] == "even" && "2n" || m[3] == "odd" && "2n+1" || !/\D/.test(m[3]) && "0n+" + m[3] || m[3]), first = (test[1] + (test[2] || 1)) - 0, d = test[3] - 0; for (var i = 0, rl = r.length; i < rl; i++) { var g = r[i], parentNode = g.parentNode, id = v.data(parentNode); if (!f[id]) { var c = 1; for (var n = parentNode.firstChild; n; n = n.nextSibling) if (n.nodeType == 1) n.nodeIndex = c++; f[id] = true } var h = false; if (first == 0) { if (g.nodeIndex == d) h = true } else if ((g.nodeIndex - d) % first == 0 && (g.nodeIndex - d) / first >= 0) h = true; if (h ^ b) e.push(g) } r = e } else { var j = v.expr[m[1]]; if (typeof j == "object") j = j[m[2]]; if (typeof j == "string") j = eval("false||function(a,i){return " + j + ";}"); r = v.grep(r, function (a, i) { return j(a, i, m, r) }, b) } } return { r: r, t: t} }, dir: function (a, b) { var c = [], cur = a[b]; while (cur && cur != document) { if (cur.nodeType == 1) c.push(cur); cur = cur[b] } return c }, nth: function (a, b, c, d) { b = b || 1; var e = 0; for (; a; a = a[c]) if (a.nodeType == 1 && ++e == b) break; return a }, sibling: function (n, a) { var r = []; for (; n; n = n.nextSibling) { if (n.nodeType == 1 && n != a) r.push(n) } return r } }); v.event = { add: function (e, f, g, h) { if (e.nodeType == 3 || e.nodeType == 8) return; if (v.browser.msie && e.setInterval) e = window; if (!g.guid) g.guid = this.guid++; if (h != undefined) { var i = g; g = this.proxy(i, function () { return i.apply(this, arguments) }); g.data = h } var j = v.data(e, "events") || v.data(e, "events", {}), handle = v.data(e, "handle") || v.data(e, "handle", function () { if (typeof v != "undefined" && !v.event.triggered) return v.event.handle.apply(arguments.callee.elem, arguments) }); handle.elem = e; v.each(f.split(/\s+/), function (a, b) { var c = b.split("."); b = c[0]; g.type = c[1]; var d = j[b]; if (!d) { d = j[b] = {}; if (!v.event.special[b] || v.event.special[b].setup.call(e) === false) { if (e.addEventListener) e.addEventListener(b, handle, false); else if (e.attachEvent) e.attachEvent("on" + b, handle) } } d[g.guid] = g; v.event.global[b] = true }); e = null }, guid: 1, global: {}, remove: function (d, e, f) { if (d.nodeType == 3 || d.nodeType == 8) return; var g = v.data(d, "events"), ret, index; if (g) { if (e == undefined || (typeof e == "string" && e.charAt(0) == ".")) for (var h in g) this.remove(d, h + (e || "")); else { if (e.type) { f = e.handler; e = e.type } v.each(e.split(/\s+/), function (a, b) { var c = b.split("."); b = c[0]; if (g[b]) { if (f) delete g[b][f.guid]; else for (f in g[b]) if (!c[1] || g[b][f].type == c[1]) delete g[b][f]; for (ret in g[b]) break; if (!ret) { if (!v.event.special[b] || v.event.special[b].teardown.call(d) === false) { if (d.removeEventListener) d.removeEventListener(b, v.data(d, "handle"), false); else if (d.detachEvent) d.detachEvent("on" + b, v.data(d, "handle")) } ret = null; delete g[b] } } }) } for (ret in g) break; if (!ret) { var i = v.data(d, "handle"); if (i) i.elem = null; v.removeData(d, "events"); v.removeData(d, "handle") } } }, trigger: function (a, b, c, d, f) { b = v.makeArray(b); if (a.indexOf("!") >= 0) { a = a.slice(0, -1); var g = true } if (!c) { if (this.global[a]) v("*").add([window, document]).trigger(a, b) } else { if (c.nodeType == 3 || c.nodeType == 8) return undefined; var h, ret, fn = v.isFunction(c[a] || null), event = !b[0] || !b[0].preventDefault; if (event) { b.unshift({ type: a, target: c, preventDefault: function () { }, stopPropagation: function () { }, timeStamp: now() }); b[0][x] = true } b[0].type = a; if (g) b[0].exclusive = true; var i = v.data(c, "handle"); if (i) h = i.apply(c, b); if ((!fn || (v.nodeName(c, 'a') && a == "click")) && c["on" + a] && c["on" + a].apply(c, b) === false) h = false; if (event) b.shift(); if (f && v.isFunction(f)) { ret = f.apply(c, h == null ? b : b.concat(h)); if (ret !== undefined) h = ret } if (fn && d !== false && h !== false && !(v.nodeName(c, 'a') && a == "click")) { this.triggered = true; try { c[a]() } catch (e) { } } this.triggered = false } return h }, handle: function (a) { var b, ret, namespace, all, handlers; a = arguments[0] = v.event.fix(a || window.event); namespace = a.type.split("."); a.type = namespace[0]; namespace = namespace[1]; all = !namespace && !a.exclusive; handlers = (v.data(this, "events") || {})[a.type]; for (var j in handlers) { var c = handlers[j]; if (all || c.type == namespace) { a.handler = c; a.data = c.data; ret = c.apply(this, arguments); if (b !== false) b = ret; if (ret === false) { a.preventDefault(); a.stopPropagation() } } } return b }, fix: function (a) { if (a[x] == true) return a; var b = a; a = { originalEvent: b }; var c = "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 timeStamp toElement type view wheelDelta which".split(" "); for (var i = c.length; i; i--) a[c[i]] = b[c[i]]; a[x] = true; a.preventDefault = function () { if (b.preventDefault) b.preventDefault(); b.returnValue = false }; a.stopPropagation = function () { if (b.stopPropagation) b.stopPropagation(); b.cancelBubble = true }; a.timeStamp = a.timeStamp || now(); 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 d = document.documentElement, body = document.body; a.pageX = a.clientX + (d && d.scrollLeft || body && body.scrollLeft || 0) - (d.clientLeft || 0); a.pageY = a.clientY + (d && d.scrollTop || body && body.scrollTop || 0) - (d.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.guid = a.guid = a.guid || b.guid || this.guid++; return b }, special: { ready: { setup: function () { bindReady(); return }, teardown: function () { return } }, mouseenter: { setup: function () { if (v.browser.msie) return false; v(this).bind("mouseover", v.event.special.mouseenter.handler); return true }, teardown: function () { if (v.browser.msie) return false; v(this).unbind("mouseover", v.event.special.mouseenter.handler); return true }, handler: function (a) { if (D(a, this)) return true; a.type = "mouseenter"; return v.event.handle.apply(this, arguments) } }, mouseleave: { setup: function () { if (v.browser.msie) return false; v(this).bind("mouseout", v.event.special.mouseleave.handler); return true }, teardown: function () { if (v.browser.msie) return false; v(this).unbind("mouseout", v.event.special.mouseleave.handler); return true }, handler: function (a) { if (D(a, this)) return true; a.type = "mouseleave"; return v.event.handle.apply(this, arguments) } }} }; v.fn.extend({ bind: function (a, b, c) { return a == "unload" ? this.one(a, b, c) : this.each(function () { v.event.add(this, a, c || b, c && b) }) }, one: function (b, c, d) { var e = v.event.proxy(d || c, function (a) { v(this).unbind(a, e); return (d || c).apply(this, arguments) }); return this.each(function () { v.event.add(this, b, e, d && c) }) }, unbind: function (a, b) { return this.each(function () { v.event.remove(this, a, b) }) }, trigger: function (a, b, c) { return this.each(function () { v.event.trigger(a, b, this, true, c) }) }, triggerHandler: function (a, b, c) { return this[0] && v.event.trigger(a, b, this[0], false, c) }, toggle: function (b) { var c = arguments, i = 1; while (i < c.length) v.event.proxy(b, c[i++]); return this.click(v.event.proxy(b, function (a) { this.lastToggle = (this.lastToggle || 0) % i; a.preventDefault(); return c[this.lastToggle++].apply(this, arguments) || false })) }, hover: function (a, b) { return this.bind('mouseenter', a).bind('mouseleave', b) }, ready: function (a) { bindReady(); if (v.isReady) a.call(document, v); else v.readyList.push(function () { return a.call(this, v) }); return this } }); v.extend({ isReady: false, readyList: [], ready: function () { if (!v.isReady) { v.isReady = true; if (v.readyList) { v.each(v.readyList, function () { this.call(document) }); v.readyList = null } v(document).triggerHandler("ready") } } }); var C = false; function bindReady() { if (C) return; C = true; if (document.addEventListener && !v.browser.opera) document.addEventListener("DOMContentLoaded", v.ready, false); if (v.browser.msie && window == top) (function () { if (v.isReady) return; try { document.documentElement.doScroll("left") } catch (error) { setTimeout(arguments.callee, 0); return } v.ready() })(); if (v.browser.opera) document.addEventListener("DOMContentLoaded", function () { if (v.isReady) return; for (var i = 0; i < document.styleSheets.length; i++) if (document.styleSheets[i].disabled) { setTimeout(arguments.callee, 0); return } v.ready() }, false); if (v.browser.safari) { var a; (function () { if (v.isReady) return; if (document.readyState != "loaded" && document.readyState != "complete") { setTimeout(arguments.callee, 0); return } if (a === undefined) a = v("style, link[rel=stylesheet]").length; if (document.styleSheets.length != a) { setTimeout(arguments.callee, 0); return } v.ready() })() } v.event.add(window, "load", v.ready) } v.each(("blur,focus,load,resize,scroll,unload,click,dblclick," + "mousedown,mouseup,mousemove,mouseover,mouseout,change,select," + "submit,keydown,keypress,keyup,error").split(","), function (i, b) { v.fn[b] = function (a) { return a ? this.bind(b, a) : this.trigger(b) } }); var D = function (a, b) { var c = a.relatedTarget; while (c && c != b) try { c = c.parentNode } catch (error) { c = b } return c == b }; v(window).bind("unload", function () { v("*").add(document).unbind() }); v.fn.extend({ _load: v.fn.load, load: function (c, d, e) { if (typeof c != 'string') return this._load(c); var f = c.indexOf(" "); if (f >= 0) { var g = c.slice(f, c.length); c = c.slice(0, f) } e = e || function () { }; var h = "GET"; if (d) if (v.isFunction(d)) { e = d; d = null } else { d = v.param(d); h = "POST" } var i = this; v.ajax({ url: c, type: h, dataType: "html", data: d, complete: function (a, b) { if (b == "success" || b == "notmodified") i.html(g ? v("<div/>").append(a.responseText.replace(/<script(.|\s)*?\/script>/g, "")).find(g) : a.responseText); i.each(e, [a.responseText, b, a]) } }); return this }, serialize: function () { return v.param(this.serializeArray()) }, serializeArray: function () { return this.map(function () { return v.nodeName(this, "form") ? v.makeArray(this.elements) : this }).filter(function () { return this.name && !this.disabled && (this.checked || /select|textarea/i.test(this.nodeName) || /text|hidden|password/i.test(this.type)) }).map(function (i, b) { var c = v(this).val(); return c == null ? null : c.constructor == Array ? v.map(c, function (a, i) { return { name: b.name, value: a} }) : { name: b.name, value: c} }).get() } }); v.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","), function (i, o) { v.fn[o] = function (f) { return this.bind(o, f) } }); var E = now(); v.extend({ get: function (a, b, c, d) { if (v.isFunction(b)) { c = b; b = null } return v.ajax({ type: "GET", url: a, data: b, success: c, dataType: d }) }, getScript: function (a, b) { return v.get(a, null, b, "script") }, getJSON: function (a, b, c) { return v.get(a, b, c, "json") }, post: function (a, b, c, d) { if (v.isFunction(b)) { c = b; b = {} } return v.ajax({ type: "POST", url: a, data: b, success: c, dataType: d }) }, ajaxSetup: function (a) { v.extend(v.ajaxSettings, a) }, ajaxSettings: { url: location.href, global: true, type: "GET", timeout: 0, contentType: "application/x-www-form-urlencoded", processData: true, async: true, data: null, username: null, password: null, accepts: { xml: "application/xml, text/xml", html: "text/html", script: "text/javascript, application/javascript", json: "application/json, text/javascript", text: "text/plain", _default: "*/*"} }, lastModified: {}, ajax: function (s) { s = v.extend(true, s, v.extend(true, {}, v.ajaxSettings, s)); var c, jsre = /=\?(&|$)/g, status, data, type = s.type.toUpperCase(); if (s.data && s.processData && typeof s.data != "string") s.data = v.param(s.data); if (s.dataType == "jsonp") { if (type == "GET") { if (!s.url.match(jsre)) s.url += (s.url.match(/\?/) ? "&" : "?") + (s.jsonp || "callback") + "=?" } else if (!s.data || !s.data.match(jsre)) s.data = (s.data ? s.data + "&" : "") + (s.jsonp || "callback") + "=?"; s.dataType = "json" } if (s.dataType == "json" && (s.data && s.data.match(jsre) || s.url.match(jsre))) { c = "jsonp" + E++; if (s.data) s.data = (s.data + "").replace(jsre, "=" + c + "$1"); s.url = s.url.replace(jsre, "=" + c + "$1"); s.dataType = "script"; window[c] = function (a) { data = a; success(); complete(); window[c] = undefined; try { delete window[c] } catch (e) { } if (h) h.removeChild(i) } } if (s.dataType == "script" && s.cache == null) s.cache = false; if (s.cache === false && type == "GET") { var d = now(); var f = s.url.replace(/(\?|&)_=.*?(&|$)/, "$1_=" + d + "$2"); s.url = f + ((f == s.url) ? (s.url.match(/\?/) ? "&" : "?") + "_=" + d : "") } if (s.data && type == "GET") { s.url += (s.url.match(/\?/) ? "&" : "?") + s.data; s.data = null } if (s.global && !v.active++) v.event.trigger("ajaxStart"); var g = /^(?:\w+:)?\/\/([^\/?#]+)/; if (s.dataType == "script" && type == "GET" && g.test(s.url) && g.exec(s.url)[1] != location.host) { var h = document.getElementsByTagName("head")[0]; var i = document.createElement("script"); i.src = s.url; if (s.scriptCharset) i.charset = s.scriptCharset; if (!c) { var j = false; i.onload = i.onreadystatechange = function () { if (!j && (!this.readyState || this.readyState == "loaded" || this.readyState == "complete")) { j = true; success(); complete(); h.removeChild(i) } } } h.appendChild(i); return undefined } var k = false; var l = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(); if (s.username) l.open(type, s.url, s.async, s.username, s.password); else l.open(type, s.url, s.async); try { if (s.data) l.setRequestHeader("Content-Type", s.contentType); if (s.ifModified) l.setRequestHeader("If-Modified-Since", v.lastModified[s.url] || "Thu, 01 Jan 1970 00:00:00 GMT"); l.setRequestHeader("X-Requested-With", "XMLHttpRequest"); l.setRequestHeader("Accept", s.dataType && s.accepts[s.dataType] ? s.accepts[s.dataType] + ", */*" : s.accepts._default) } catch (e) { } if (s.beforeSend && s.beforeSend(l, s) === false) { s.global && v.active--; l.abort(); return false } if (s.global) v.event.trigger("ajaxSend", [l, s]); var m = function (a) { if (!k && l && (l.readyState == 4 || a == "timeout")) { k = true; if (n) { clearInterval(n); n = null } status = a == "timeout" && "timeout" || !v.httpSuccess(l) && "error" || s.ifModified && v.httpNotModified(l, s.url) && "notmodified" || "success"; if (status == "success") { try { data = v.httpData(l, s.dataType, s.dataFilter) } catch (e) { status = "parsererror" } } if (status == "success") { var b; try { b = l.getResponseHeader("Last-Modified") } catch (e) { } if (s.ifModified && b) v.lastModified[s.url] = b; if (!c) success() } else v.handleError(s, l, status); complete(); if (s.async) l = null } }; if (s.async) { var n = setInterval(m, 13); if (s.timeout > 0) setTimeout(function () { if (l) { l.abort(); if (!k) m("timeout") } }, s.timeout) } try { l.send(s.data) } catch (e) { v.handleError(s, l, null, e) } if (!s.async) m(); function success() { if (s.success) s.success(data, status); if (s.global) v.event.trigger("ajaxSuccess", [l, s]) } function complete() { if (s.complete) s.complete(l, status); if (s.global) v.event.trigger("ajaxComplete", [l, s]); if (s.global && ! --v.active) v.event.trigger("ajaxStop") } return l }, handleError: function (s, a, b, e) { if (s.error) s.error(a, b, e); if (s.global) v.event.trigger("ajaxError", [a, s, e]) }, active: 0, httpSuccess: function (a) { try { return !a.status && location.protocol == "file:" || (a.status >= 200 && a.status < 300) || a.status == 304 || a.status == 1223 || v.browser.safari && a.status == undefined } catch (e) { } return false }, httpNotModified: function (a, b) { try { var c = a.getResponseHeader("Last-Modified"); return a.status == 304 || c == v.lastModified[b] || v.browser.safari && a.status == undefined } catch (e) { } return false }, httpData: function (a, b, c) { var d = a.getResponseHeader("content-type"), xml = b == "xml" || !b && d && d.indexOf("xml") >= 0, data = xml ? a.responseXML : a.responseText; if (xml && data.documentElement.tagName == "parsererror") throw "parsererror"; if (c) data = c(data, b); if (b == "script") v.globalEval(data); if (b == "json") data = eval("(" + data + ")"); return data }, param: function (a) { var s = []; if (a.constructor == Array || a.jquery) v.each(a, function () { s.push(encodeURIComponent(this.name) + "=" + encodeURIComponent(this.value)) }); else for (var j in a) if (a[j] && a[j].constructor == Array) v.each(a[j], function () { s.push(encodeURIComponent(j) + "=" + encodeURIComponent(this)) }); else s.push(encodeURIComponent(j) + "=" + encodeURIComponent(v.isFunction(a[j]) ? a[j]() : a[j])); return s.join("&").replace(/%20/g, "+") } }); v.fn.extend({ show: function (b, c) { return b ? this.animate({ height: "show", width: "show", opacity: "show" }, b, c) : this.filter(":hidden").each(function () { this.style.display = this.oldblock || ""; if (v.css(this, "display") == "none") { var a = v("<" + this.tagName + " />").appendTo("body"); this.style.display = a.css("display"); if (this.style.display == "none") this.style.display = "block"; a.remove() } }).end() }, hide: function (a, b) { return a ? this.animate({ height: "hide", width: "hide", opacity: "hide" }, a, b) : this.filter(":visible").each(function () { this.oldblock = this.oldblock || v.css(this, "display"); this.style.display = "none" }).end() }, _toggle: v.fn.toggle, toggle: function (a, b) { return v.isFunction(a) && v.isFunction(b) ? this._toggle.apply(this, arguments) : a ? this.animate({ height: "toggle", width: "toggle", opacity: "toggle" }, a, b) : this.each(function () { v(this)[v(this).is(":hidden") ? "show" : "hide"]() }) }, slideDown: function (a, b) { return this.animate({ height: "show" }, a, b) }, slideUp: function (a, b) { return this.animate({ height: "hide" }, a, b) }, slideToggle: function (a, b) { return this.animate({ height: "toggle" }, a, b) }, fadeIn: function (a, b) { return this.animate({ opacity: "show" }, a, b) }, fadeOut: function (a, b) { return this.animate({ opacity: "hide" }, a, b) }, fadeTo: function (a, b, c) { return this.animate({ opacity: b }, a, c) }, animate: function (g, h, i, j) { var k = v.speed(h, i, j); return this[k.queue === false ? "each" : "queue"](function () { if (this.nodeType != 1) return false; var f = v.extend({}, k), p, hidden = v(this).is(":hidden"), self = this; for (p in g) { if (g[p] == "hide" && hidden || g[p] == "show" && !hidden) return f.complete.call(this); if (p == "height" || p == "width") { f.display = v.css(this, "display"); f.overflow = this.style.overflow } } if (f.overflow != null) this.style.overflow = "hidden"; f.curAnim = v.extend({}, g); v.each(g, function (a, b) { var e = new v.fx(self, f, a); if (/toggle|show|hide/.test(b)) e[b == "toggle" ? hidden ? "show" : "hide" : b](g); else { var c = b.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/), start = e.cur(true) || 0; if (c) { var d = parseFloat(c[2]), unit = c[3] || "px"; if (unit != "px") { self.style[a] = (d || 1) + unit; start = ((d || 1) / e.cur(true)) * start; self.style[a] = start + unit } if (c[1]) d = ((c[1] == "-=" ? -1 : 1) * d) + start; e.custom(start, d, unit) } else e.custom(start, b, "") } }); return true }) }, queue: function (a, b) { if (v.isFunction(a) || (a && a.constructor == Array)) { b = a; a = "fx" } if (!a || (typeof a == "string" && !b)) return F(this[0], a); return this.each(function () { if (b.constructor == Array) F(this, a, b); else { F(this, a).push(b); if (F(this, a).length == 1) b.call(this) } }) }, stop: function (a, b) { var c = v.timers; if (a) this.queue([]); this.each(function () { for (var i = c.length - 1; i >= 0; i--) if (c[i].elem == this) { if (b) c[i](true); c.splice(i, 1) } }); if (!b) this.dequeue(); return this } }); var F = function (a, b, c) { if (a) { b = b || "fx"; var q = v.data(a, b + "queue"); if (!q || c) q = v.data(a, b + "queue", v.makeArray(c)) } return q }; v.fn.dequeue = function (a) { a = a || "fx"; return this.each(function () { var q = F(this, a); q.shift(); if (q.length) q[0].call(this) }) }; v.extend({ speed: function (a, b, c) { var d = a && a.constructor == Object ? a : { complete: c || !c && b || v.isFunction(a) && a, duration: a, easing: c && b || b && b.constructor != Function && b }; d.duration = (d.duration && d.duration.constructor == Number ? d.duration : v.fx.speeds[d.duration]) || v.fx.speeds.def; d.old = d.complete; d.complete = function () { if (d.queue !== false) v(this).dequeue(); if (v.isFunction(d.old)) d.old.call(this) }; return d }, easing: { linear: function (p, n, a, b) { return a + b * p }, swing: function (p, n, a, b) { return ((-Math.cos(p * Math.PI) / 2) + 0.5) * b + a } }, timers: [], timerId: null, fx: function (a, b, c) { this.options = b; this.elem = a; this.prop = c; if (!b.orig) b.orig = {} } }); v.fx.prototype = { update: function () { if (this.options.step) this.options.step.call(this.elem, this.now, this); (v.fx.step[this.prop] || v.fx.step._default)(this); if (this.prop == "height" || this.prop == "width") this.elem.style.display = "block" }, cur: function (a) { if (this.elem[this.prop] != null && this.elem.style[this.prop] == null) return this.elem[this.prop]; var r = parseFloat(v.css(this.elem, this.prop, a)); return r && r > -10000 ? r : parseFloat(v.curCSS(this.elem, this.prop)) || 0 }, custom: function (b, c, d) { this.startTime = now(); this.start = b; this.end = c; this.unit = d || this.unit || "px"; this.now = this.start; this.pos = this.state = 0; this.update(); var e = this; function t(a) { return e.step(a) } t.elem = this.elem; v.timers.push(t); if (v.timerId == null) { v.timerId = setInterval(function () { var a = v.timers; for (var i = 0; i < a.length; i++) if (!a[i]()) a.splice(i--, 1); if (!a.length) { clearInterval(v.timerId); v.timerId = null } }, 13) } }, show: function () { this.options.orig[this.prop] = v.attr(this.elem.style, this.prop); this.options.show = true; this.custom(0, this.cur()); if (this.prop == "width" || this.prop == "height") this.elem.style[this.prop] = "1px"; v(this.elem).show() }, hide: function () { this.options.orig[this.prop] = v.attr(this.elem.style, this.prop); this.options.hide = true; this.custom(this.cur(), 0) }, step: function (a) { var t = now(); if (a || t > this.options.duration + this.startTime) { this.now = this.end; this.pos = this.state = 1; this.update(); this.options.curAnim[this.prop] = true; var b = true; for (var i in this.options.curAnim) if (this.options.curAnim[i] !== true) b = false; if (b) { if (this.options.display != null) { this.elem.style.overflow = this.options.overflow; this.elem.style.display = this.options.display; if (v.css(this.elem, "display") == "none") this.elem.style.display = "block" } if (this.options.hide) this.elem.style.display = "none"; if (this.options.hide || this.options.show) for (var p in this.options.curAnim) v.attr(this.elem.style, p, this.options.orig[p]) } if (b) this.options.complete.call(this.elem); return false } else { var n = t - this.startTime; this.state = n / this.options.duration; this.pos = v.easing[this.options.easing || (v.easing.swing ? "swing" : "linear")](this.state, n, 0, 1, this.options.duration); this.now = this.start + ((this.end - this.start) * this.pos); this.update() } return true } }; v.extend(v.fx, { speeds: { slow: 600, fast: 200, def: 400 }, step: { scrollLeft: function (a) { a.elem.scrollLeft = a.now }, scrollTop: function (a) { a.elem.scrollTop = a.now }, opacity: function (a) { v.attr(a.elem.style, "opacity", a.now) }, _default: function (a) { a.elem.style[a.prop] = a.now + a.unit } } }); v.fn.offset = function () { var b = 0, top = 0, elem = this[0], results; if (elem) with (v.browser) { var c = elem.parentNode, offsetChild = elem, offsetParent = elem.offsetParent, doc = elem.ownerDocument, safari2 = safari && parseInt(version) < 522 && !/adobeair/i.test(y), css = v.curCSS, fixed = css(elem, "position") == "fixed"; if (elem.getBoundingClientRect) { var d = elem.getBoundingClientRect(); add(d.left + Math.max(doc.documentElement.scrollLeft, doc.body.scrollLeft), d.top + Math.max(doc.documentElement.scrollTop, doc.body.scrollTop)); add(-doc.documentElement.clientLeft, -doc.documentElement.clientTop) } else { add(elem.offsetLeft, elem.offsetTop); while (offsetParent) { add(offsetParent.offsetLeft, offsetParent.offsetTop); if (mozilla && !/^t(able|d|h)$/i.test(offsetParent.tagName) || safari && !safari2) border(offsetParent); if (!fixed && css(offsetParent, "position") == "fixed") fixed = true; offsetChild = /^body$/i.test(offsetParent.tagName) ? offsetChild : offsetParent; offsetParent = offsetParent.offsetParent } while (c && c.tagName && !/^body|html$/i.test(c.tagName)) { if (!/^inline|table.*$/i.test(css(c, "display"))) add(-c.scrollLeft, -c.scrollTop); if (mozilla && css(c, "overflow") != "visible") border(c); c = c.parentNode } if ((safari2 && (fixed || css(offsetChild, "position") == "absolute")) || (mozilla && css(offsetChild, "position") != "absolute")) add(-doc.body.offsetLeft, -doc.body.offsetTop); if (fixed) add(Math.max(doc.documentElement.scrollLeft, doc.body.scrollLeft), Math.max(doc.documentElement.scrollTop, doc.body.scrollTop)) } results = { top: top, left: b} } function border(a) { add(v.curCSS(a, "borderLeftWidth", true), v.curCSS(a, "borderTopWidth", true)) } function add(l, t) { b += parseInt(l, 10) || 0; top += parseInt(t, 10) || 0 } return results }; v.fn.extend({ position: function () { var a = 0, top = 0, results; if (this[0]) { var b = this.offsetParent(), offset = this.offset(), parentOffset = /^body|html$/i.test(b[0].tagName) ? { top: 0, left: 0} : b.offset(); offset.top -= num(this, 'marginTop'); offset.left -= num(this, 'marginLeft'); parentOffset.top += num(b, 'borderTopWidth'); parentOffset.left += num(b, 'borderLeftWidth'); results = { top: offset.top - parentOffset.top, left: offset.left - parentOffset.left} } return results }, offsetParent: function () { var a = this[0].offsetParent; while (a && (!/^body|html$/i.test(a.tagName) && v.css(a, 'position') == 'static')) a = a.offsetParent; return v(a) } }); v.each(['Left', 'Top'], function (i, b) { var c = 'scroll' + b; v.fn[c] = function (a) { if (!this[0]) return; return a != undefined ? this.each(function () { this == window || this == document ? window.scrollTo(!i ? a : v(window).scrollLeft(), i ? a : v(window).scrollTop()) : this[c] = a }) : this[0] == window || this[0] == document ? self[i ? 'pageYOffset' : 'pageXOffset'] || v.boxModel && document.documentElement[c] || document.body[c] : this[0][c] } }); v.each(["Height", "Width"], function (i, b) { var c = i ? "Left" : "Top", br = i ? "Right" : "Bottom"; v.fn["inner" + b] = function () { return this[b.toLowerCase()]() + num(this, "padding" + c) + num(this, "padding" + br) }; v.fn["outer" + b] = function (a) { return this["inner" + b]() + num(this, "border" + c + "Width") + num(this, "border" + br + "Width") + (a ? num(this, "margin" + c) + num(this, "margin" + br) : 0) } }) })();



/*
*	jquery.flash.js
*/
; (function () { var g; g = jQuery.fn.flash = function (a, b, c, d) { if (this.length > 0) { var e = c || g.replace; b = g.copy(g.pluginOptions, b); if (!g.hasFlash(b.version)) { if (b.expressInstall && g.hasFlash(6, 0, 65)) { var f = { flashvars: { MMredirectURL: location, MMplayerType: 'PlugIn', MMdoctitle: jQuery('title').text()}} } else if (b.update) { e = d || g.update } else { return this } } a = g.copy(g.htmlOptions, f, a); return this.each(function () { e.call(this, g.copy(a)) }) } }; g.copy = function () { var a = {}, flashvars = {}; for (var i = 0; i < arguments.length; i++) { var b = arguments[i]; if (b == undefined) { continue } jQuery.extend(a, b); if (b.flashvars == undefined) { continue } jQuery.extend(flashvars, b.flashvars) } a.flashvars = flashvars; return a }; g.hasFlash = function () { if (/hasFlash\=true/.test(location)) { return true } if (/hasFlash\=false/.test(location)) { return false } var a = g.hasFlash.playerVersion().match(/\d+/g); var b = String([arguments[0], arguments[1], arguments[2]]).match(/\d+/g) || String(g.pluginOptions.version).match(/\d+/g); for (var i = 0; i < 3; i++) { a[i] = parseInt(a[i] || 0); b[i] = parseInt(b[i] || 0); if (a[i] < b[i]) { return false } if (a[i] > b[i]) { return true } } return true }; g.hasFlash.playerVersion = function () { try { try { var a = new ActiveXObject('ShockwaveFlash.ShockwaveFlash.6'); try { a.AllowScriptAccess = 'always' } catch (e) { return '6,0,0' } } catch (e) { } return new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g, ',').match(/^,?(.+),?$/)[1] } catch (e) { try { if (navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) { return (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g, ",").match(/^,?(.+),?$/)[1] } } catch (e) { } } return '0,0,0' }; g.htmlOptions = { height: 240, flashvars: {}, pluginspage: 'http://www.adobe.com/go/getflashplayer', src: '#', type: 'application/x-shockwave-flash', width: 320 }; g.pluginOptions = { expressInstall: false, update: false, version: '6.0.65' }; g.replace = function (a) { this.innerHTML = '<div class="alt">' + this.innerHTML + '</div>'; jQuery(this).addClass('flash-replaced').prepend(g.transform(a)) }; g.update = function (a) { var b = String(location).split('?'); b.splice(1, 0, '?hasFlash=true&'); b = b.join(''); var c = '<p>This content requires the Flash Player. <a href="http://www.adobe.com/go/getflashplayer">Download Flash Player</a>. Already have Flash Player? <a href="' + b + '">Click here.</a></p>'; this.innerHTML = '<span class="alt">' + this.innerHTML + '</span>'; jQuery(this).addClass('flash-update').prepend(c) }; function toAttributeString() { var s = ''; for (var a in this) { if (typeof this[a] != 'function') { s += a + '="' + this[a] + '" ' } } return s }; function toFlashvarsString() { var s = ''; for (var a in this) { if (typeof this[a] != 'function') { s += a + '=' + arb.text.percentEncode(this[a]) + '&' } } return s.replace(/&$/, '') }; g.transform = function (a) { if (a.flashvars) { a.flashvars.toString = toFlashvarsString } if (!$.browser.msie) { a.toString = toAttributeString; return '<embed ' + String(a) + '/>' } else { var b = ""; var c = ""; if (typeof (a.id) != "undefined") { c = 'id="' + a.id + '"' } b = '<object ' + c + ' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + a.width + '" height="' + a.height + '">'; b += '<param name="movie" value="' + a.src + '" />'; delete (a.id); delete (a.width); delete (a.height); delete (a.src); delete (a.type); delete (a.pluginspage); for (var d in a) { b += '<param name="' + d + '" value="' + String(a[d]) + '" />' } b += "</object>"; return b } }; if (window.attachEvent) { window.attachEvent("onbeforeunload", function () { __flash_unloadHandler = function () { }; __flash_savedUnloadHandler = function () { } }) } })(); function RGBColor(l) { this.ok = false; if (l.charAt(0) == '#') { l = l.substr(1, 6) } l = l.replace(/ /g, ''); l = l.toLowerCase(); var m = { aliceblue: 'f0f8ff', antiquewhite: 'faebd7', aqua: '00ffff', aquamarine: '7fffd4', azure: 'f0ffff', beige: 'f5f5dc', bisque: 'ffe4c4', black: '000000', blanchedalmond: 'ffebcd', blue: '0000ff', blueviolet: '8a2be2', brown: 'a52a2a', burlywood: 'deb887', cadetblue: '5f9ea0', chartreuse: '7fff00', chocolate: 'd2691e', coral: 'ff7f50', cornflowerblue: '6495ed', cornsilk: 'fff8dc', crimson: 'dc143c', cyan: '00ffff', darkblue: '00008b', darkcyan: '008b8b', darkgoldenrod: 'b8860b', darkgray: 'a9a9a9', darkgreen: '006400', darkkhaki: 'bdb76b', darkmagenta: '8b008b', darkolivegreen: '556b2f', darkorange: 'ff8c00', darkorchid: '9932cc', darkred: '8b0000', darksalmon: 'e9967a', darkseagreen: '8fbc8f', darkslateblue: '483d8b', darkslategray: '2f4f4f', darkturquoise: '00ced1', darkviolet: '9400d3', deeppink: 'ff1493', deepskyblue: '00bfff', dimgray: '696969', dodgerblue: '1e90ff', feldspar: 'd19275', firebrick: 'b22222', floralwhite: 'fffaf0', forestgreen: '228b22', fuchsia: 'ff00ff', gainsboro: 'dcdcdc', ghostwhite: 'f8f8ff', gold: 'ffd700', goldenrod: 'daa520', gray: '808080', green: '008000', greenyellow: 'adff2f', honeydew: 'f0fff0', hotpink: 'ff69b4', indianred: 'cd5c5c', indigo: '4b0082', ivory: 'fffff0', khaki: 'f0e68c', lavender: 'e6e6fa', lavenderblush: 'fff0f5', lawngreen: '7cfc00', lemonchiffon: 'fffacd', lightblue: 'add8e6', lightcoral: 'f08080', lightcyan: 'e0ffff', lightgoldenrodyellow: 'fafad2', lightgrey: 'd3d3d3', lightgreen: '90ee90', lightpink: 'ffb6c1', lightsalmon: 'ffa07a', lightseagreen: '20b2aa', lightskyblue: '87cefa', lightslateblue: '8470ff', lightslategray: '778899', lightsteelblue: 'b0c4de', lightyellow: 'ffffe0', lime: '00ff00', limegreen: '32cd32', linen: 'faf0e6', magenta: 'ff00ff', maroon: '800000', mediumaquamarine: '66cdaa', mediumblue: '0000cd', mediumorchid: 'ba55d3', mediumpurple: '9370d8', mediumseagreen: '3cb371', mediumslateblue: '7b68ee', mediumspringgreen: '00fa9a', mediumturquoise: '48d1cc', mediumvioletred: 'c71585', midnightblue: '191970', mintcream: 'f5fffa', mistyrose: 'ffe4e1', moccasin: 'ffe4b5', navajowhite: 'ffdead', navy: '000080', oldlace: 'fdf5e6', olive: '808000', olivedrab: '6b8e23', orange: 'ffa500', orangered: 'ff4500', orchid: 'da70d6', palegoldenrod: 'eee8aa', palegreen: '98fb98', paleturquoise: 'afeeee', palevioletred: 'd87093', papayawhip: 'ffefd5', peachpuff: 'ffdab9', peru: 'cd853f', pink: 'ffc0cb', plum: 'dda0dd', powderblue: 'b0e0e6', purple: '800080', red: 'ff0000', rosybrown: 'bc8f8f', royalblue: '4169e1', saddlebrown: '8b4513', salmon: 'fa8072', sandybrown: 'f4a460', seagreen: '2e8b57', seashell: 'fff5ee', sienna: 'a0522d', silver: 'c0c0c0', skyblue: '87ceeb', slateblue: '6a5acd', slategray: '708090', snow: 'fffafa', springgreen: '00ff7f', steelblue: '4682b4', tan: 'd2b48c', teal: '008080', thistle: 'd8bfd8', tomato: 'ff6347', turquoise: '40e0d0', violet: 'ee82ee', violetred: 'd02090', wheat: 'f5deb3', white: 'ffffff', whitesmoke: 'f5f5f5', yellow: 'ffff00', yellowgreen: '9acd32' }; for (var n in m) { if (l == n) { l = m[n] } } var o = [{ re: /^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/, example: ['rgb(123, 234, 45)', 'rgb(255,234,245)'], process: function (a) { return [parseInt(a[1]), parseInt(a[2]), parseInt(a[3])] } }, { re: /^(\w{2})(\w{2})(\w{2})$/, example: ['#00ff00', '336699'], process: function (a) { return [parseInt(a[1], 16), parseInt(a[2], 16), parseInt(a[3], 16)] } }, { re: /^(\w{1})(\w{1})(\w{1})$/, example: ['#fb0', 'f0f'], process: function (a) { return [parseInt(a[1] + a[1], 16), parseInt(a[2] + a[2], 16), parseInt(a[3] + a[3], 16)] } }]; for (var i = 0; i < o.length; i++) { var p = o[i].re; var q = o[i].process; var s = p.exec(l); if (s) { channels = q(s); this.r = channels[0]; this.g = channels[1]; this.b = channels[2]; this.ok = true } } this.r = (this.r < 0 || isNaN(this.r)) ? 0 : ((this.r > 255) ? 255 : this.r); this.g = (this.g < 0 || isNaN(this.g)) ? 0 : ((this.g > 255) ? 255 : this.g); this.b = (this.b < 0 || isNaN(this.b)) ? 0 : ((this.b > 255) ? 255 : this.b); this.toRGB = function () { return 'rgb(' + this.r + ', ' + this.g + ', ' + this.b + ')' }; this.toHex = function () { var r = this.r.toString(16); var g = this.g.toString(16); var b = this.b.toString(16); if (r.length == 1) r = '0' + r; if (g.length == 1) g = '0' + g; if (b.length == 1) b = '0' + b; return '#' + r + g + b }; this.getHelpXML = function () { var a = new Array(); for (var i = 0; i < o.length; i++) { var b = o[i].example; for (var j = 0; j < b.length; j++) { a[a.length] = b[j] } } for (var c in m) { a[a.length] = c } var d = document.createElement('ul'); d.setAttribute('id', 'rgbcolor-examples'); for (var i = 0; i < a.length; i++) { try { var f = document.createElement('li'); var g = new RGBColor(a[i]); var h = document.createElement('div'); h.style.cssText = 'margin: 3px; ' + 'border: 1px solid black; ' + 'background:' + g.toHex() + '; ' + 'color:' + g.toHex(); h.appendChild(document.createTextNode('test')); var k = document.createTextNode(' ' + a[i] + ' -> ' + g.toRGB() + ' -> ' + g.toHex()); f.appendChild(h); f.appendChild(k); d.appendChild(f) } catch (e) { } } return d } } jQuery.fn.flashText = function (l) { this.flash(l, { version: 8 }, function (b) { $('html').addClass('flash-text-has-flash'); if (!$(this).is('.flash-text-replaced')) { b.wMode = 'transparent'; this.innerHTML = "<span class='alt'>" + this.innerHTML + "</span>"; var c = $(this.firstChild); var d = $('a', c).not('[href]'); d.after(d.html()); d.html(""); $(this).prepend(d); b.flashvars.txt = c[0].innerHTML.replace(/%/, "%25").trim(); b.height = c.height(); b.width = c.width(); if (typeof (b.flashvars) == 'undefined') { b.flashvars = {} } if (typeof (b.flashvars.css) == 'undefined') { b.flashvars.css = "" } var e = [c, $('a', c[0])]; var f = ['font-style', 'text-align', 'text-decoration', 'letter-spacing']; for (var i = 0; i < e.length; i++) { var g = e[i]; if (g.length > 0) { var h = "{ color: " + (new RGBColor(g.css('color'))).toHex() + "; "; var k = g.css("font-weight"); if (typeof (k) == "number") { k = k > 400 ? "bold" : "normal" } h += "font-weight: " + k + "; "; for (var j = 0; j < f.length; j++) { h += f[j] + ": " + g.css(f[j]) + "; " } h += "} "; if (g !== c) { h += "a:hover { text-decoration: " + ((g.css('text-decoration') == 'none') ? 'underline' : 'none') + "} "; h = "a " + h } else { h = "* " + h } b.flashvars.css += h } } if (!jQuery.fn.flashText.debug) { $(this).addClass('flash-text-replaced'); $(this).append($.fn.flash.transform(b)) } else { $(this).bind('click', flashReplace) } } function flashReplace(a) { a = (a == null) ? a : this; $(a).addClass('flash-text-replaced'); $(a).prepend($.fn.flash.transform(b)); $(a).unbind('click', flashReplace) } }) }; jQuery.fn.resizeFlashText = function () { return this.each(function () { var a = $("span.alt", this); var b = $("object,embed", this); b.css('position', 'absolute'); a.css({ position: 'static', visibility: 'hidden' }); b.height(a.height()); b.width(a.width()); b.css('position', 'static'); a.css({ position: 'absolute', visibility: 'visible' }) }) }; jQuery.fn.flash.replace = function (a) { if (typeof (a.width) == 'undefined') { a.width = $(this).width() } if (typeof (a.height) == 'undefined') { a.height = $(this).height() } a.wMode = 'transparent'; var b = typeof (a.id) == "undefined" ? "" : a.id; this.innerHTML = $.fn.flash.transform(a) + '<div class="alt">' + this.innerHTML + '</div>'; if ($.browser.msie && b != "" && $(this).parents("form").length > 0) { window[b] = document.forms[0][b] } $(this).addClass('flash-replaced') }; jQuery.fn.flashText.debug = false;


/*
* jquery.easing.js
*/
jQuery.extend({ easing: { easein: function (f, a, d, b, c) { return b * (a /= c) * a + d }, easeinout: function (f, a, d, b, c) { if (a < c / 2) return 2 * b * a * a / (c * c) + d; var e = a - c / 2; return -2 * b * e * e / (c * c) + 2 * b * e / c + b / 2 + d }, easeout: function (f, a, d, b, c) { return -b * a * a / (c * c) + 2 * b * a / c + d }, expoin: function (f, a, d, b, c) { var e = 1; if (b < 0) { e *= -1; b *= -1 } return e * (Math.exp(Math.log(b) / c * a)) + d }, expoout: function (f, a, d, b, c) { var e = 1; if (b < 0) { e *= -1; b *= -1 } return e * (-Math.exp(-Math.log(b) / c * (a - c)) + b + 1) + d }, expoinout: function (f, a, d, b, c) { var e = 1; if (b < 0) { e *= -1; b *= -1 } if (a < c / 2) return e * (Math.exp(Math.log(b / 2) / (c / 2) * a)) + d; return e * (-Math.exp(-2 * Math.log(b / 2) / c * (a - c)) + b + 1) + d }, bouncein: function (f, a, d, b, c) { return b - jQuery.easing['bounceout'](f, c - a, 0, b, c) + d }, bounceout: function (f, a, d, b, c) { if ((a /= c) < (1 / 2.75)) { return b * (7.5625 * a * a) + d } else if (a < (2 / 2.75)) { return b * (7.5625 * (a -= (1.5 / 2.75)) * a + .75) + d } else if (a < (2.5 / 2.75)) { return b * (7.5625 * (a -= (2.25 / 2.75)) * a + .9375) + d } else { return b * (7.5625 * (a -= (2.625 / 2.75)) * a + .984375) + d } }, bounceinout: function (f, a, d, b, c) { if (a < c / 2) return jQuery.easing['bouncein'](f, a * 2, 0, b, c) * .5 + d; return jQuery.easing['bounceout'](f, a * 2 - c, 0, b, c) * .5 + b * .5 + d }, elasin: function (f, a, d, b, c) { var e = 1.70158; var g = 0; var h = b; if (a == 0) return d; if ((a /= c) == 1) return d + b; if (!g) g = c * .3; if (h < Math.abs(b)) { h = b; var e = g / 4 } else var e = g / (2 * Math.PI) * Math.asin(b / h); return -(h * Math.pow(2, 10 * (a -= 1)) * Math.sin((a * c - e) * (2 * Math.PI) / g)) + d }, elasout: function (f, a, d, b, c) { var e = 1.70158; var g = 0; var h = b; if (a == 0) return d; if ((a /= c) == 1) return d + b; if (!g) g = c * .3; if (h < Math.abs(b)) { h = b; var e = g / 4 } else var e = g / (2 * Math.PI) * Math.asin(b / h); return h * Math.pow(2, -10 * a) * Math.sin((a * c - e) * (2 * Math.PI) / g) + b + d }, elasinout: function (f, a, d, b, c) { var e = 1.70158; var g = 0; var h = b; if (a == 0) return d; if ((a /= c / 2) == 2) return d + b; if (!g) g = c * (.3 * 1.5); if (h < Math.abs(b)) { h = b; var e = g / 4 } else var e = g / (2 * Math.PI) * Math.asin(b / h); if (a < 1) return -.5 * (h * Math.pow(2, 10 * (a -= 1)) * Math.sin((a * c - e) * (2 * Math.PI) / g)) + d; return h * Math.pow(2, -10 * (a -= 1)) * Math.sin((a * c - e) * (2 * Math.PI) / g) * .5 + b + d }, backin: function (f, a, d, b, c) { var e = 1.70158; return b * (a /= c) * a * ((e + 1) * a - e) + d }, backout: function (f, a, d, b, c) { var e = 1.70158; return b * ((a = a / c - 1) * a * ((e + 1) * a + e) + 1) + d }, backinout: function (f, a, d, b, c) { var e = 1.70158; if ((a /= c / 2) < 1) return b / 2 * (a * a * (((e *= (1.525)) + 1) * a - e)) + d; return b / 2 * ((a -= 2) * a * (((e *= (1.525)) + 1) * a + e) + 2) + d }, linear: function (f, a, d, b, c) { return b * a / c + d } } });


/*
*	jquery.cycle.js
*/
; (function ($) { var ver = "2.63"; if ($.support == undefined) { $.support = { opacity: !($.browser.msie) }; } function log() { if (window.console && window.console.log) { window.console.log("[cycle] " + Array.prototype.join.call(arguments, " ")); } } $.fn.cycle = function (options, arg2) { var o = { s: this.selector, c: this.context }; if (this.length == 0 && options != "stop") { if (!$.isReady && o.s) { log("DOM not ready, queuing slideshow"); $(function () { $(o.s, o.c).cycle(options, arg2); }); return this; } log("terminating; zero elements found by selector" + ($.isReady ? "" : " (DOM not ready)")); return this; } return this.each(function () { options = handleArguments(this, options, arg2); if (options === false) { return; } if (this.cycleTimeout) { clearTimeout(this.cycleTimeout); } this.cycleTimeout = this.cyclePause = 0; var $cont = $(this); var $slides = options.slideExpr ? $(options.slideExpr, this) : $cont.children(); var els = $slides.get(); if (els.length < 2) { log("terminating; too few slides: " + els.length); return; } var opts = buildOptions($cont, $slides, els, options, o); if (opts === false) { return; } if (opts.timeout || opts.continuous) { this.cycleTimeout = setTimeout(function () { go(els, opts, 0, !opts.rev); }, opts.continuous ? 10 : opts.timeout + (opts.delay || 0)); } }); }; function handleArguments(cont, options, arg2) { if (cont.cycleStop == undefined) { cont.cycleStop = 0; } if (options === undefined || options === null) { options = {}; } if (options.constructor == String) { switch (options) { case "stop": cont.cycleStop++; if (cont.cycleTimeout) { clearTimeout(cont.cycleTimeout); } cont.cycleTimeout = 0; $(cont).removeData("cycle.opts"); return false; case "pause": cont.cyclePause = 1; return false; case "resume": cont.cyclePause = 0; if (arg2 === true) { options = $(cont).data("cycle.opts"); if (!options) { log("options not found, can not resume"); return false; } if (cont.cycleTimeout) { clearTimeout(cont.cycleTimeout); cont.cycleTimeout = 0; } go(options.elements, options, 1, 1); } return false; default: options = { fx: options }; } } else { if (options.constructor == Number) { var num = options; options = $(cont).data("cycle.opts"); if (!options) { log("options not found, can not advance slide"); return false; } if (num < 0 || num >= options.elements.length) { log("invalid slide index: " + num); return false; } options.nextSlide = num; if (cont.cycleTimeout) { clearTimeout(this.cycleTimeout); cont.cycleTimeout = 0; } if (typeof arg2 == "string") { options.oneTimeFx = arg2; } go(options.elements, options, 1, num >= options.currSlide); return false; } } return options; } function removeFilter(el, opts) { if (!$.support.opacity && opts.cleartype && el.style.filter) { try { el.style.removeAttribute("filter"); } catch (smother) { } } } function buildOptions($cont, $slides, els, options, o) { var opts = $.extend({}, $.fn.cycle.defaults, options || {}, $.metadata ? $cont.metadata() : $.meta ? $cont.data() : {}); if (opts.autostop) { opts.countdown = opts.autostopCount || els.length; } var cont = $cont[0]; $cont.data("cycle.opts", opts); opts.$cont = $cont; opts.stopCount = cont.cycleStop; opts.elements = els; opts.before = opts.before ? [opts.before] : []; opts.after = opts.after ? [opts.after] : []; opts.after.unshift(function () { opts.busy = 0; }); if (!$.support.opacity && opts.cleartype) { opts.after.push(function () { removeFilter(this, opts); }); } if (opts.continuous) { opts.after.push(function () { go(els, opts, 0, !opts.rev); }); } saveOriginalOpts(opts); if (!$.support.opacity && opts.cleartype && !opts.cleartypeNoBg) { clearTypeFix($slides); } if ($cont.css("position") == "static") { $cont.css("position", "relative"); } if (opts.width) { $cont.width(opts.width); } if (opts.height && opts.height != "auto") { $cont.height(opts.height); } if (opts.startingSlide) { opts.startingSlide = parseInt(opts.startingSlide); } if (opts.random) { opts.randomMap = []; for (var i = 0; i < els.length; i++) { opts.randomMap.push(i); } opts.randomMap.sort(function (a, b) { return Math.random() - 0.5; }); opts.randomIndex = 0; opts.startingSlide = opts.randomMap[0]; } else { if (opts.startingSlide >= els.length) { opts.startingSlide = 0; } } opts.currSlide = opts.startingSlide = opts.startingSlide || 0; var first = opts.startingSlide; $slides.css({ position: "absolute", top: 0, left: 0 }).hide().each(function (i) { var z = first ? i >= first ? els.length - (i - first) : first - i : els.length - i; $(this).css("z-index", z); }); $(els[first]).css("opacity", 1).show(); removeFilter(els[first], opts); if (opts.fit && opts.width) { $slides.width(opts.width); } if (opts.fit && opts.height && opts.height != "auto") { $slides.height(opts.height); } var reshape = opts.containerResize && !$cont.innerHeight(); if (reshape) { var maxw = 0, maxh = 0; for (var i = 0; i < els.length; i++) { var $e = $(els[i]), e = $e[0], w = $e.outerWidth(), h = $e.outerHeight(); if (!w) { w = e.offsetWidth; } if (!h) { h = e.offsetHeight; } maxw = w > maxw ? w : maxw; maxh = h > maxh ? h : maxh; } if (maxw > 0 && maxh > 0) { $cont.css({ width: maxw + "px", height: maxh + "px" }); } } if (opts.pause) { $cont.hover(function () { this.cyclePause++; }, function () { this.cyclePause--; }); } if (supportMultiTransitions(opts) === false) { return false; } if (!opts.multiFx) { var init = $.fn.cycle.transitions[opts.fx]; if ($.isFunction(init)) { init($cont, $slides, opts); } else { if (opts.fx != "custom" && !opts.multiFx) { log("unknown transition: " + opts.fx, "; slideshow terminating"); return false; } } } var requeue = false; options.requeueAttempts = options.requeueAttempts || 0; $slides.each(function () { var $el = $(this); this.cycleH = (opts.fit && opts.height) ? opts.height : $el.height(); this.cycleW = (opts.fit && opts.width) ? opts.width : $el.width(); if ($el.is("img")) { var loadingIE = ($.browser.msie && this.cycleW == 28 && this.cycleH == 30 && !this.complete); var loadingOp = ($.browser.opera && this.cycleW == 42 && this.cycleH == 19 && !this.complete); var loadingOther = (this.cycleH == 0 && this.cycleW == 0 && !this.complete); if (loadingIE || loadingOp || loadingOther) { if (o.s && opts.requeueOnImageNotLoaded && ++options.requeueAttempts < 100) { log(options.requeueAttempts, " - img slide not loaded, requeuing slideshow: ", this.src, this.cycleW, this.cycleH); setTimeout(function () { $(o.s, o.c).cycle(options); }, opts.requeueTimeout); requeue = true; return false; } else { log("could not determine size of image: " + this.src, this.cycleW, this.cycleH); } } } return true; }); if (requeue) { return false; } opts.cssBefore = opts.cssBefore || {}; opts.animIn = opts.animIn || {}; opts.animOut = opts.animOut || {}; $slides.not(":eq(" + first + ")").css(opts.cssBefore); if (opts.cssFirst) { $($slides[first]).css(opts.cssFirst); } if (opts.timeout) { opts.timeout = parseInt(opts.timeout); if (opts.speed.constructor == String) { opts.speed = $.fx.speeds[opts.speed] || parseInt(opts.speed); } if (!opts.sync) { opts.speed = opts.speed / 2; } while ((opts.timeout - opts.speed) < 250) { opts.timeout += opts.speed; } } if (opts.easing) { opts.easeIn = opts.easeOut = opts.easing; } if (!opts.speedIn) { opts.speedIn = opts.speed; } if (!opts.speedOut) { opts.speedOut = opts.speed; } opts.slideCount = els.length; opts.currSlide = opts.lastSlide = first; if (opts.random) { opts.nextSlide = opts.currSlide; if (++opts.randomIndex == els.length) { opts.randomIndex = 0; } opts.nextSlide = opts.randomMap[opts.randomIndex]; } else { opts.nextSlide = opts.startingSlide >= (els.length - 1) ? 0 : opts.startingSlide + 1; } var e0 = $slides[first]; if (opts.before.length) { opts.before[0].apply(e0, [e0, e0, opts, true]); } if (opts.after.length > 1) { opts.after[1].apply(e0, [e0, e0, opts, true]); } if (opts.next) { $(opts.next).click(function () { return advance(opts, opts.rev ? -1 : 1); }); } if (opts.prev) { $(opts.prev).click(function () { return advance(opts, opts.rev ? 1 : -1); }); } if (opts.pager) { buildPager(els, opts); } exposeAddSlide(opts, els); return opts; } function saveOriginalOpts(opts) { opts.original = { before: [], after: [] }; opts.original.cssBefore = $.extend({}, opts.cssBefore); opts.original.cssAfter = $.extend({}, opts.cssAfter); opts.original.animIn = $.extend({}, opts.animIn); opts.original.animOut = $.extend({}, opts.animOut); $.each(opts.before, function () { opts.original.before.push(this); }); $.each(opts.after, function () { opts.original.after.push(this); }); } function supportMultiTransitions(opts) { var txs = $.fn.cycle.transitions; if (opts.fx.indexOf(",") > 0) { opts.multiFx = true; opts.fxs = opts.fx.replace(/\s*/g, "").split(","); for (var i = 0; i < opts.fxs.length; i++) { var fx = opts.fxs[i]; var tx = txs[fx]; if (!tx || !txs.hasOwnProperty(fx) || !$.isFunction(tx)) { log("discarding unknown transition: ", fx); opts.fxs.splice(i, 1); i--; } } if (!opts.fxs.length) { log("No valid transitions named; slideshow terminating."); return false; } } else { if (opts.fx == "all") { opts.multiFx = true; opts.fxs = []; for (p in txs) { var tx = txs[p]; if (txs.hasOwnProperty(p) && $.isFunction(tx)) { opts.fxs.push(p); } } } } if (opts.multiFx && opts.randomizeEffects) { var r1 = Math.floor(Math.random() * 20) + 30; for (var i = 0; i < r1; i++) { var r2 = Math.floor(Math.random() * opts.fxs.length); opts.fxs.push(opts.fxs.splice(r2, 1)[0]); } log("randomized fx sequence: ", opts.fxs); } return true; } function exposeAddSlide(opts, els) { opts.addSlide = function (newSlide, prepend) { var $s = $(newSlide), s = $s[0]; if (!opts.autostopCount) { opts.countdown++; } els[prepend ? "unshift" : "push"](s); if (opts.els) { opts.els[prepend ? "unshift" : "push"](s); } opts.slideCount = els.length; $s.css("position", "absolute"); $s[prepend ? "prependTo" : "appendTo"](opts.$cont); if (prepend) { opts.currSlide++; opts.nextSlide++; } if (!$.support.opacity && opts.cleartype && !opts.cleartypeNoBg) { clearTypeFix($s); } if (opts.fit && opts.width) { $s.width(opts.width); } if (opts.fit && opts.height && opts.height != "auto") { $slides.height(opts.height); } s.cycleH = (opts.fit && opts.height) ? opts.height : $s.height(); s.cycleW = (opts.fit && opts.width) ? opts.width : $s.width(); $s.css(opts.cssBefore); if (opts.pager) { $.fn.cycle.createPagerAnchor(els.length - 1, s, $(opts.pager), els, opts); } if ($.isFunction(opts.onAddSlide)) { opts.onAddSlide($s); } else { $s.hide(); } }; } $.fn.cycle.resetState = function (opts, fx) { fx = fx || opts.fx; opts.before = []; opts.after = []; opts.cssBefore = $.extend({}, opts.original.cssBefore); opts.cssAfter = $.extend({}, opts.original.cssAfter); opts.animIn = $.extend({}, opts.original.animIn); opts.animOut = $.extend({}, opts.original.animOut); opts.fxFn = null; $.each(opts.original.before, function () { opts.before.push(this); }); $.each(opts.original.after, function () { opts.after.push(this); }); var init = $.fn.cycle.transitions[fx]; if ($.isFunction(init)) { init(opts.$cont, $(opts.elements), opts); } }; function go(els, opts, manual, fwd) { if (manual && opts.busy && opts.manualTrump) { $(els).stop(true, true); opts.busy = false; } if (opts.busy) { return; } var p = opts.$cont[0], curr = els[opts.currSlide], next = els[opts.nextSlide]; if (p.cycleStop != opts.stopCount || p.cycleTimeout === 0 && !manual) { return; } if (!manual && !p.cyclePause && ((opts.autostop && (--opts.countdown <= 0)) || (opts.nowrap && !opts.random && opts.nextSlide < opts.currSlide))) { if (opts.end) { opts.end(opts); } return; } if (manual || !p.cyclePause) { var fx = opts.fx; curr.cycleH = curr.cycleH || $(curr).height(); curr.cycleW = curr.cycleW || $(curr).width(); next.cycleH = next.cycleH || $(next).height(); next.cycleW = next.cycleW || $(next).width(); if (opts.multiFx) { if (opts.lastFx == undefined || ++opts.lastFx >= opts.fxs.length) { opts.lastFx = 0; } fx = opts.fxs[opts.lastFx]; opts.currFx = fx; } if (opts.oneTimeFx) { fx = opts.oneTimeFx; opts.oneTimeFx = null; } $.fn.cycle.resetState(opts, fx); if (opts.before.length) { $.each(opts.before, function (i, o) { if (p.cycleStop != opts.stopCount) { return; } o.apply(next, [curr, next, opts, fwd]); }); } var after = function () { $.each(opts.after, function (i, o) { if (p.cycleStop != opts.stopCount) { return; } o.apply(next, [curr, next, opts, fwd]); }); }; if (opts.nextSlide != opts.currSlide) { opts.busy = 1; if (opts.fxFn) { opts.fxFn(curr, next, opts, after, fwd); } else { if ($.isFunction($.fn.cycle[opts.fx])) { $.fn.cycle[opts.fx](curr, next, opts, after); } else { $.fn.cycle.custom(curr, next, opts, after, manual && opts.fastOnEvent); } } } opts.lastSlide = opts.currSlide; if (opts.random) { opts.currSlide = opts.nextSlide; if (++opts.randomIndex == els.length) { opts.randomIndex = 0; } opts.nextSlide = opts.randomMap[opts.randomIndex]; } else { var roll = (opts.nextSlide + 1) == els.length; opts.nextSlide = roll ? 0 : opts.nextSlide + 1; opts.currSlide = roll ? els.length - 1 : opts.nextSlide - 1; } if (opts.pager) { $.fn.cycle.updateActivePagerLink(opts.pager, opts.currSlide); } } var ms = 0; if (opts.timeout && !opts.continuous) { ms = getTimeout(curr, next, opts, fwd); } else { if (opts.continuous && p.cyclePause) { ms = 10; } } if (ms > 0) { p.cycleTimeout = setTimeout(function () { go(els, opts, 0, !opts.rev); }, ms); } } $.fn.cycle.updateActivePagerLink = function (pager, currSlide) { $(pager).find("a").removeClass("activeSlide").filter("a:eq(" + currSlide + ")").addClass("activeSlide"); }; function getTimeout(curr, next, opts, fwd) { if (opts.timeoutFn) { var t = opts.timeoutFn(curr, next, opts, fwd); if (t !== false) { return t; } } return opts.timeout; } $.fn.cycle.next = function (opts) { advance(opts, opts.rev ? -1 : 1); }; $.fn.cycle.prev = function (opts) { advance(opts, opts.rev ? 1 : -1); }; function advance(opts, val) { var els = opts.elements; var p = opts.$cont[0], timeout = p.cycleTimeout; if (timeout) { clearTimeout(timeout); p.cycleTimeout = 0; } if (opts.random && val < 0) { opts.randomIndex--; if (--opts.randomIndex == -2) { opts.randomIndex = els.length - 2; } else { if (opts.randomIndex == -1) { opts.randomIndex = els.length - 1; } } opts.nextSlide = opts.randomMap[opts.randomIndex]; } else { if (opts.random) { if (++opts.randomIndex == els.length) { opts.randomIndex = 0; } opts.nextSlide = opts.randomMap[opts.randomIndex]; } else { opts.nextSlide = opts.currSlide + val; if (opts.nextSlide < 0) { if (opts.nowrap) { return false; } opts.nextSlide = els.length - 1; } else { if (opts.nextSlide >= els.length) { if (opts.nowrap) { return false; } opts.nextSlide = 0; } } } } if ($.isFunction(opts.prevNextClick)) { opts.prevNextClick(val > 0, opts.nextSlide, els[opts.nextSlide]); } go(els, opts, 1, val >= 0); return false; } function buildPager(els, opts) { var $p = $(opts.pager); $.each(els, function (i, o) { $.fn.cycle.createPagerAnchor(i, o, $p, els, opts); }); $.fn.cycle.updateActivePagerLink(opts.pager, opts.startingSlide); } $.fn.cycle.createPagerAnchor = function (i, el, $p, els, opts) { var a = ($.isFunction(opts.pagerAnchorBuilder)) ? opts.pagerAnchorBuilder(i, el) : '<a href="#">' + (i + 1) + "</a>"; if (!a) { return; } var $a = $(a); if ($a.parents("body").length == 0) { $a.appendTo($p); } $a.bind(opts.pagerEvent, function () { opts.nextSlide = i; var p = opts.$cont[0], timeout = p.cycleTimeout; if (timeout) { clearTimeout(timeout); p.cycleTimeout = 0; } if ($.isFunction(opts.pagerClick)) { opts.pagerClick(opts.nextSlide, els[opts.nextSlide]); } go(els, opts, 1, opts.currSlide < i); return false; }); if (opts.pauseOnPagerHover) { $a.hover(function () { opts.$cont[0].cyclePause++; }, function () { opts.$cont[0].cyclePause--; }); } }; $.fn.cycle.hopsFromLast = function (opts, fwd) { var hops, l = opts.lastSlide, c = opts.currSlide; if (fwd) { hops = c > l ? c - l : opts.slideCount - l; } else { hops = c < l ? l - c : l + opts.slideCount - c; } return hops; }; function clearTypeFix($slides) { function hex(s) { s = parseInt(s).toString(16); return s.length < 2 ? "0" + s : s; } function getBg(e) { for (; e && e.nodeName.toLowerCase() != "html"; e = e.parentNode) { var v = $.css(e, "background-color"); if (v.indexOf("rgb") >= 0) { var rgb = v.match(/\d+/g); return "#" + hex(rgb[0]) + hex(rgb[1]) + hex(rgb[2]); } if (v && v != "transparent") { return v; } } return "#ffffff"; } $slides.each(function () { $(this).css("background-color", getBg(this)); }); } $.fn.cycle.commonReset = function (curr, next, opts, w, h, rev) { $(opts.elements).not(curr).hide(); opts.cssBefore.opacity = 1; opts.cssBefore.display = "block"; if (w !== false && next.cycleW > 0) { opts.cssBefore.width = next.cycleW; } if (h !== false && next.cycleH > 0) { opts.cssBefore.height = next.cycleH; } opts.cssAfter = opts.cssAfter || {}; opts.cssAfter.display = "none"; $(curr).css("zIndex", opts.slideCount + (rev === true ? 1 : 0)); $(next).css("zIndex", opts.slideCount + (rev === true ? 0 : 1)); }; $.fn.cycle.custom = function (curr, next, opts, cb, speedOverride) { var $l = $(curr), $n = $(next); var speedIn = opts.speedIn, speedOut = opts.speedOut, easeIn = opts.easeIn, easeOut = opts.easeOut; $n.css(opts.cssBefore); if (speedOverride) { if (typeof speedOverride == "number") { speedIn = speedOut = speedOverride; } else { speedIn = speedOut = 1; } easeIn = easeOut = null; } var fn = function () { $n.animate(opts.animIn, speedIn, easeIn, cb); }; $l.animate(opts.animOut, speedOut, easeOut, function () { if (opts.cssAfter) { $l.css(opts.cssAfter); } if (!opts.sync) { fn(); } }); if (opts.sync) { fn(); } }; $.fn.cycle.transitions = { fade: function ($cont, $slides, opts) { $slides.not(":eq(" + opts.currSlide + ")").css("opacity", 0); opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts); opts.cssBefore.opacity = 0; }); opts.animIn = { opacity: 1 }; opts.animOut = { opacity: 0 }; opts.cssBefore = { top: 0, left: 0 }; } }; $.fn.cycle.ver = function () { return ver; }; $.fn.cycle.defaults = { fx: "fade", timeout: 4000, timeoutFn: null, continuous: 0, speed: 1000, speedIn: null, speedOut: null, next: null, prev: null, prevNextClick: null, pager: null, pagerClick: null, pagerEvent: "click", pagerAnchorBuilder: null, before: null, after: null, end: null, easing: null, easeIn: null, easeOut: null, shuffle: null, animIn: null, animOut: null, cssBefore: null, cssAfter: null, fxFn: null, height: "auto", startingSlide: 0, sync: 1, random: 0, fit: 0, containerResize: 1, pause: 0, pauseOnPagerHover: 0, autostop: 0, autostopCount: 0, delay: 0, slideExpr: null, cleartype: !$.support.opacity, nowrap: 0, fastOnEvent: 0, randomizeEffects: 1, rev: 0, manualTrump: true, requeueOnImageNotLoaded: true, requeueTimeout: 250 }; })(jQuery);
/* jquery.cycle.js transitions */
; (function ($) { $.fn.cycle.transitions.scrollUp = function ($cont, $slides, opts) { $cont.css("overflow", "hidden"); opts.before.push($.fn.cycle.commonReset); var h = $cont.height(); opts.cssBefore = { top: h, left: 0 }; opts.cssFirst = { top: 0 }; opts.animIn = { top: 0 }; opts.animOut = { top: -h }; }; $.fn.cycle.transitions.scrollDown = function ($cont, $slides, opts) { $cont.css("overflow", "hidden"); opts.before.push($.fn.cycle.commonReset); var h = $cont.height(); opts.cssFirst = { top: 0 }; opts.cssBefore = { top: -h, left: 0 }; opts.animIn = { top: 0 }; opts.animOut = { top: h }; }; $.fn.cycle.transitions.scrollLeft = function ($cont, $slides, opts) { $cont.css("overflow", "hidden"); opts.before.push($.fn.cycle.commonReset); var w = $cont.width(); opts.cssFirst = { left: 0 }; opts.cssBefore = { left: w, top: 0 }; opts.animIn = { left: 0 }; opts.animOut = { left: 0 - w }; }; $.fn.cycle.transitions.scrollRight = function ($cont, $slides, opts) { $cont.css("overflow", "hidden"); opts.before.push($.fn.cycle.commonReset); var w = $cont.width(); opts.cssFirst = { left: 0 }; opts.cssBefore = { left: -w, top: 0 }; opts.animIn = { left: 0 }; opts.animOut = { left: w }; }; $.fn.cycle.transitions.scrollHorz = function ($cont, $slides, opts) { $cont.css("overflow", "hidden").width(); opts.before.push(function (curr, next, opts, fwd) { $.fn.cycle.commonReset(curr, next, opts); opts.cssBefore.left = fwd ? (next.cycleW - 1) : (1 - next.cycleW); opts.animOut.left = fwd ? -curr.cycleW : curr.cycleW; }); opts.cssFirst = { left: 0 }; opts.cssBefore = { top: 0 }; opts.animIn = { left: 0 }; opts.animOut = { top: 0 }; }; $.fn.cycle.transitions.scrollVert = function ($cont, $slides, opts) { $cont.css("overflow", "hidden"); opts.before.push(function (curr, next, opts, fwd) { $.fn.cycle.commonReset(curr, next, opts); opts.cssBefore.top = fwd ? (1 - next.cycleH) : (next.cycleH - 1); opts.animOut.top = fwd ? curr.cycleH : -curr.cycleH; }); opts.cssFirst = { top: 0 }; opts.cssBefore = { left: 0 }; opts.animIn = { top: 0 }; opts.animOut = { left: 0 }; }; $.fn.cycle.transitions.slideX = function ($cont, $slides, opts) { opts.before.push(function (curr, next, opts) { $(opts.elements).not(curr).hide(); $.fn.cycle.commonReset(curr, next, opts, false, true); opts.animIn.width = next.cycleW; }); opts.cssBefore = { left: 0, top: 0, width: 0 }; opts.animIn = { width: "show" }; opts.animOut = { width: 0 }; }; $.fn.cycle.transitions.slideY = function ($cont, $slides, opts) { opts.before.push(function (curr, next, opts) { $(opts.elements).not(curr).hide(); $.fn.cycle.commonReset(curr, next, opts, true, false); opts.animIn.height = next.cycleH; }); opts.cssBefore = { left: 0, top: 0, height: 0 }; opts.animIn = { height: "show" }; opts.animOut = { height: 0 }; }; $.fn.cycle.transitions.shuffle = function ($cont, $slides, opts) { var w = $cont.css("overflow", "visible").width(); $slides.css({ left: 0, top: 0 }); opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts, true, true, true); }); opts.speed = opts.speed / 2; opts.random = 0; opts.shuffle = opts.shuffle || { left: -w, top: 15 }; opts.els = []; for (var i = 0; i < $slides.length; i++) { opts.els.push($slides[i]); } for (var i = 0; i < opts.currSlide; i++) { opts.els.push(opts.els.shift()); } opts.fxFn = function (curr, next, opts, cb, fwd) { var $el = fwd ? $(curr) : $(next); $(next).css(opts.cssBefore); var count = opts.slideCount; $el.animate(opts.shuffle, opts.speedIn, opts.easeIn, function () { var hops = $.fn.cycle.hopsFromLast(opts, fwd); for (var k = 0; k < hops; k++) { fwd ? opts.els.push(opts.els.shift()) : opts.els.unshift(opts.els.pop()); } if (fwd) { for (var i = 0, len = opts.els.length; i < len; i++) { $(opts.els[i]).css("z-index", len - i + count); } } else { var z = $(curr).css("z-index"); $el.css("z-index", parseInt(z) + 1 + count); } $el.animate({ left: 0, top: 0 }, opts.speedOut, opts.easeOut, function () { $(fwd ? this : curr).hide(); if (cb) { cb(); } }); }); }; opts.cssBefore = { display: "block", opacity: 1, top: 0, left: 0 }; }; $.fn.cycle.transitions.turnUp = function ($cont, $slides, opts) { opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts, true, false); opts.cssBefore.top = next.cycleH; opts.animIn.height = next.cycleH; }); opts.cssFirst = { top: 0 }; opts.cssBefore = { left: 0, height: 0 }; opts.animIn = { top: 0 }; opts.animOut = { height: 0 }; }; $.fn.cycle.transitions.turnDown = function ($cont, $slides, opts) { opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts, true, false); opts.animIn.height = next.cycleH; opts.animOut.top = curr.cycleH; }); opts.cssFirst = { top: 0 }; opts.cssBefore = { left: 0, top: 0, height: 0 }; opts.animOut = { height: 0 }; }; $.fn.cycle.transitions.turnLeft = function ($cont, $slides, opts) { opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts, false, true); opts.cssBefore.left = next.cycleW; opts.animIn.width = next.cycleW; }); opts.cssBefore = { top: 0, width: 0 }; opts.animIn = { left: 0 }; opts.animOut = { width: 0 }; }; $.fn.cycle.transitions.turnRight = function ($cont, $slides, opts) { opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts, false, true); opts.animIn.width = next.cycleW; opts.animOut.left = curr.cycleW; }); opts.cssBefore = { top: 0, left: 0, width: 0 }; opts.animIn = { left: 0 }; opts.animOut = { width: 0 }; }; $.fn.cycle.transitions.zoom = function ($cont, $slides, opts) { opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts, false, false, true); opts.cssBefore.top = next.cycleH / 2; opts.cssBefore.left = next.cycleW / 2; opts.animIn = { top: 0, left: 0, width: next.cycleW, height: next.cycleH }; opts.animOut = { width: 0, height: 0, top: curr.cycleH / 2, left: curr.cycleW / 2 }; }); opts.cssFirst = { top: 0, left: 0 }; opts.cssBefore = { width: 0, height: 0 }; }; $.fn.cycle.transitions.fadeZoom = function ($cont, $slides, opts) { opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts, false, false); opts.cssBefore.left = next.cycleW / 2; opts.cssBefore.top = next.cycleH / 2; opts.animIn = { top: 0, left: 0, width: next.cycleW, height: next.cycleH }; }); opts.cssBefore = { width: 0, height: 0 }; opts.animOut = { opacity: 0 }; }; $.fn.cycle.transitions.blindX = function ($cont, $slides, opts) { var w = $cont.css("overflow", "hidden").width(); opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts); opts.animIn.width = next.cycleW; opts.animOut.left = curr.cycleW; }); opts.cssBefore = { left: w, top: 0 }; opts.animIn = { left: 0 }; opts.animOut = { left: w }; }; $.fn.cycle.transitions.blindY = function ($cont, $slides, opts) { var h = $cont.css("overflow", "hidden").height(); opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts); opts.animIn.height = next.cycleH; opts.animOut.top = curr.cycleH; }); opts.cssBefore = { top: h, left: 0 }; opts.animIn = { top: 0 }; opts.animOut = { top: h }; }; $.fn.cycle.transitions.blindZ = function ($cont, $slides, opts) { var h = $cont.css("overflow", "hidden").height(); var w = $cont.width(); opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts); opts.animIn.height = next.cycleH; opts.animOut.top = curr.cycleH; }); opts.cssBefore = { top: h, left: w }; opts.animIn = { top: 0, left: 0 }; opts.animOut = { top: h, left: w }; }; $.fn.cycle.transitions.growX = function ($cont, $slides, opts) { opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts, false, true); opts.cssBefore.left = this.cycleW / 2; opts.animIn = { left: 0, width: this.cycleW }; opts.animOut = { left: 0 }; }); opts.cssBefore = { width: 0, top: 0 }; }; $.fn.cycle.transitions.growY = function ($cont, $slides, opts) { opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts, true, false); opts.cssBefore.top = this.cycleH / 2; opts.animIn = { top: 0, height: this.cycleH }; opts.animOut = { top: 0 }; }); opts.cssBefore = { height: 0, left: 0 }; }; $.fn.cycle.transitions.curtainX = function ($cont, $slides, opts) { opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts, false, true, true); opts.cssBefore.left = next.cycleW / 2; opts.animIn = { left: 0, width: this.cycleW }; opts.animOut = { left: curr.cycleW / 2, width: 0 }; }); opts.cssBefore = { top: 0, width: 0 }; }; $.fn.cycle.transitions.curtainY = function ($cont, $slides, opts) { opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts, true, false, true); opts.cssBefore.top = next.cycleH / 2; opts.animIn = { top: 0, height: next.cycleH }; opts.animOut = { top: curr.cycleH / 2, height: 0 }; }); opts.cssBefore = { left: 0, height: 0 }; }; $.fn.cycle.transitions.cover = function ($cont, $slides, opts) { var d = opts.direction || "left"; var w = $cont.css("overflow", "hidden").width(); var h = $cont.height(); opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts); if (d == "right") { opts.cssBefore.left = -w; } else { if (d == "up") { opts.cssBefore.top = h; } else { if (d == "down") { opts.cssBefore.top = -h; } else { opts.cssBefore.left = w; } } } }); opts.animIn = { left: 0, top: 0 }; opts.animOut = { opacity: 1 }; opts.cssBefore = { top: 0, left: 0 }; }; $.fn.cycle.transitions.uncover = function ($cont, $slides, opts) { var d = opts.direction || "left"; var w = $cont.css("overflow", "hidden").width(); var h = $cont.height(); opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts, true, true, true); if (d == "right") { opts.animOut.left = w; } else { if (d == "up") { opts.animOut.top = -h; } else { if (d == "down") { opts.animOut.top = h; } else { opts.animOut.left = -w; } } } }); opts.animIn = { left: 0, top: 0 }; opts.animOut = { opacity: 1 }; opts.cssBefore = { top: 0, left: 0 }; }; $.fn.cycle.transitions.toss = function ($cont, $slides, opts) { var w = $cont.css("overflow", "visible").width(); var h = $cont.height(); opts.before.push(function (curr, next, opts) { $.fn.cycle.commonReset(curr, next, opts, true, true, true); if (!opts.animOut.left && !opts.animOut.top) { opts.animOut = { left: w * 2, top: -h / 2, opacity: 0 }; } else { opts.animOut.opacity = 0; } }); opts.cssBefore = { left: 0, top: 0 }; opts.animIn = { left: 0 }; }; $.fn.cycle.transitions.wipe = function ($cont, $slides, opts) { var w = $cont.css("overflow", "hidden").width(); var h = $cont.height(); opts.cssBefore = opts.cssBefore || {}; var clip; if (opts.clip) { if (/l2r/.test(opts.clip)) { clip = "rect(0px 0px " + h + "px 0px)"; } else { if (/r2l/.test(opts.clip)) { clip = "rect(0px " + w + "px " + h + "px " + w + "px)"; } else { if (/t2b/.test(opts.clip)) { clip = "rect(0px " + w + "px 0px 0px)"; } else { if (/b2t/.test(opts.clip)) { clip = "rect(" + h + "px " + w + "px " + h + "px 0px)"; } else { if (/zoom/.test(opts.clip)) { var t = parseInt(h / 2); var l = parseInt(w / 2); clip = "rect(" + t + "px " + l + "px " + t + "px " + l + "px)"; } } } } } } opts.cssBefore.clip = opts.cssBefore.clip || clip || "rect(0px 0px 0px 0px)"; var d = opts.cssBefore.clip.match(/(\d+)/g); var t = parseInt(d[0]), r = parseInt(d[1]), b = parseInt(d[2]), l = parseInt(d[3]); opts.before.push(function (curr, next, opts) { if (curr == next) { return; } var $curr = $(curr), $next = $(next); $.fn.cycle.commonReset(curr, next, opts, true, true, false); opts.cssAfter.display = "block"; var step = 1, count = parseInt((opts.speedIn / 13)) - 1; (function f() { var tt = t ? t - parseInt(step * (t / count)) : 0; var ll = l ? l - parseInt(step * (l / count)) : 0; var bb = b < h ? b + parseInt(step * ((h - b) / count || 1)) : h; var rr = r < w ? r + parseInt(step * ((w - r) / count || 1)) : w; $next.css({ clip: "rect(" + tt + "px " + rr + "px " + bb + "px " + ll + "px)" }); (step++ <= count) ? setTimeout(f, 13) : $curr.css("display", "none"); })(); }); opts.cssBefore = { display: "block", opacity: 1, top: 0, left: 0 }; opts.animIn = { left: 0 }; opts.animOut = { left: 0 }; }; })(jQuery);


/*
*	arb.js
*/
; var arb={};arb.prefs={promptText:true,focusHighlighting:true,popupHelp:false,tableStriping:true,enhanceDotnetValidation:true};arb.init=function(options){options=$.extend(arb.prefs,options);arb.element.addClass(document.body.parentNode,"js");if(options.promptText){arb.form.initPromptText()}if(options.focusHighlighting){arb.form.initFocusHighlighting()}if(options.popupHelp){arb.form.initPopupHelp()}if(options.tableStriping){arb.functions.stripeTables()}};arb.lang={inherit:function(subClass,baseClass){function inheritance(){}inheritance.prototype=baseClass.prototype;subClass.prototype=new inheritance();subClass.prototype.constructor=subClass;subClass.superClass=baseClass.prototype;subClass.superClass.constructor=baseClass},augment:function(augmentee,augmenter){for(p in augmenter.prototype){if(!augmentee.prototype[p]){augmentee.prototype[p]=augmenter.prototype[p]}}}};arb.event={addHandler:function(elem,eventName,func){var handlerFunc=function(e){e=e?e:window.event;elem.__f=func;var s=elem.__f(e);elem.__f=null;return s};var currentHandler=elem['on'+eventName];if(typeof(currentHandler)=='function'){elem['on'+eventName]=function(e){var x=currentHandler(e);var y=handlerFunc(e);return x&&y}}else{elem['on'+eventName]=handlerFunc}}};arb.event.standardHandler={hover:function(element,hoverClass){hoverClass=(hoverClass!=null)?hoverClass:'arb-hover';arb.event.addHandler(element,'mouseover',function(){arb.element.addClass(this,'arb-hover')});arb.event.addHandler(element,'mouseout',function(){arb.element.removeClass(this,'arb-hover')})},hoverFns:function(element,f,g){function handleHover(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=element)p=p.parentNode;if(p==element)return false;element.__g=(e.type=="mouseover"?f:g);var s=element.__g(e);element.__g=null;return s}arb.event.addHandler(element,'mouseover',handleHover);arb.event.addHandler(element,'mouseout',handleHover)}};arb.element={addClass:function(theNode,theClass){if(theNode.className==''){theNode.className=theClass}else{theNode.className+=' '+theClass}},removeClass:function(theNode,theClass){var oldClass=theNode.className;var regExp=new RegExp('\\s?\\b'+theClass+'\\b');if(oldClass.match(regExp)!=null){theNode.className=oldClass.replace(regExp,'')}},hasClass:function(elem,theClass){var regExp=new RegExp('\\b'+theClass+'\\b');return(elem.className.match(regExp)!=null)},getCSSProperty:function(oNode,sProperty){if(document.defaultView){return document.defaultView.getComputedStyle(oNode,null).getPropertyValue(sProperty)}else if(oNode.currentStyle){for(var reExp=/-([a-z])/;reExp.test(sProperty);sProperty=sProperty.replace(reExp,RegExp.$1.toUpperCase())){}return oNode.currentStyle[sProperty]}else{return null}},moveChildren:function(fromElem,toElem){var nextChild;for(var child=fromElem.childNodes[0];child!=null;child=nextChild){var nextChild=child.nextSibling;fromElem.removeChild(child);toElem.appendChild(child)}}};arb.element.position={left:function(el){var l=el.offsetLeft;while((el=el.parentNode)&&el!=document)l+=el.offsetLeft;return l},top:function(el){var t=el.offsetTop;while((el=el.parentNode)&&el!=document)t+=el.offsetTop||0;return t}};arb.form={initPromptText:function(){function _cleanupPromptTextOnSubmit(e){var inputs=this.getElementsByTagName('input');for(var j=0;j<inputs.length;j++){_clearPromptText(inputs[j])}}function _clearPromptText(elem){if($(elem).hasClass('replaced-password')){var $text=$(elem);elem=$text.prev()[0];_clearPromptText(elem);$(elem).show();elem.focus();$text.remove();return}if(elem.value==elem.getAttribute("title")){elem.value="";arb.element.removeClass(elem,'displayingPromptValue')}}function _addPromptText(elem){if((elem.getAttribute('disabled')==null||elem.getAttribute('disabled')==false)&&(!elem.value||elem.value==""||elem.value==elem.getAttribute("title"))){elem.value=elem.getAttribute("title");arb.element.addClass(elem,'displayingPromptValue');if(elem.type=='password'){$(elem).hide();var $text=$("<input type='text' />");$text.val(elem.value);$text.attr('class',$(elem).attr('class'));$text.addClass('replaced-password');$(elem).after($text);$text.bind('focus',_clearPromptTextHandler)}}}function _clearPromptTextHandler(e){_clearPromptText(this)}function _replacePromptText(e){_addPromptText(this)}if(!document.getElementsByTagName)return false;var forms=document.getElementsByTagName('form');for(var i=(forms.length-1);i>-1;i--){var inputs=forms[i].getElementsByTagName('input');arb.event.addHandler(forms[i],'submit',_cleanupPromptTextOnSubmit);for(var j=0;j<inputs.length;j++){var theInput=inputs[j];if(theInput.getAttribute("title")){var selectedNode;if(typeof document.selection!="undefined"&&document.selection!=null&&typeof window.opera=="undefined"){selectedNode=document.selection.createRange().parentElement()}if(selectedNode!=theInput){_addPromptText(theInput)}arb.event.addHandler(theInput,'focus',_clearPromptTextHandler);arb.event.addHandler(theInput,'blur',_replacePromptText)}}}},initFocusHighlighting:function(){function _focus(e){if(arb.element.hasClass(this,'arbHasFocus'))return true;arb.element.addClass(this,'arbHasFocus');for(var i=0;i<this._labels.length;i++){arb.element.addClass(this._labels[i],'arbHasFocus')}if($(this).parents(".form-item").length>0){$(this).parents(".form-item").addClass('focussed-form-item')}}function _blur(e){arb.element.removeClass(this,'arbHasFocus');for(var i=0;i<this._labels.length;i++){arb.element.removeClass(this._labels[i],'arbHasFocus')}if($(this).parents(".form-item").length>0){$(this).parents(".form-item").removeClass('focussed-form-item')}}var labels=document.getElementsByTagName('label');for(var i=(labels.length-1);i>-1;i--){var inputID=labels[i].getAttribute('for')?labels[i].getAttribute('for'):labels[i].getAttribute('htmlFor');if(inputID){var input=document.getElementById(inputID);if(!input._labels)input._labels=new Array();input._labels.push(labels[i]);$(input).bind('focus',_focus);$(input).bind('blur',_blur)}}}};arb.debug={debugCounter:0,log:function(strMessage){var debugBox=document.getElementById('debugBox');var msgP=document.createElement('DIV');if(typeof(strMessage)=='object'){var object=strMessage;strMessage=object+'';for(var key in object){strMessage+="<br />"+key+' => '+object[key]}}msgP.innerHTML=arb.debug.debugCounter+': '+strMessage;arb.debug.debugCounter++;if(!debugBox){debugBox=document.createElement('DIV');debugBox.style.position='absolute';debugBox.style.zIndex='3000';debugBox.style.width='280px';debugBox.style.height='280px';debugBox.style.top='0';debugBox.style.right='0';debugBox.style.backgroundColor="#dddddd";debugBox.style.overflow='auto';debugBox.onclick=function(){this.style.display='none'};debugBox.id='debugBox';document.body.appendChild(debugBox)}debugBox.style.display='block';debugBox.insertBefore(msgP,debugBox.firstChild)}};arb.url={equal:function(left,right){left=arb.url.normalise(left);right=arb.url.normalise(right);return left==right},normalise:function(url){url=url.toLowerCase();url=url.replace(/^(.*)\?.*$/,"$1");url=url.replace(/^(.*)#.*$/,"$1");url=url.replace(/^(.*)\/(default|index)\.(aspx|htm(l?))$/i,"$1");url=url.replace(/^(.*)\/$/i,"$1");return url},parentPage:function(url){url=arb.url.normalise(url);if(url.match(/^.*\/.*?\.(aspx|htm(l?))$/i)){return url.replace(/^(.*)\/.*?$/i,"$1")}else if(url.match(/^http(s)?:\/\/.+\/.*$/)){return url.replace(/^(http(s)?:\/\/.+)\/.*?$/i,"$1")}return""},getParam:function(variable){var query=window.location.search.substring(1);var vars=query.split("&");for(var i=0;i<vars.length;i++){var pair=vars[i].split("=");if(pair[0]==variable){return pair[1]}}return null}};arb.text={percentEncode:function(textString){var haut=0;var n=0;CPstring='';for(var i=0;i<textString.length;i++){var b=textString.charCodeAt(i);if(b<0||b>0xFFFF){CPstring+='Error '+arb.text.dec2hex(b)+'!'}if(haut!=0){if(0xDC00<=b&&b<=0xDFFF){CPstring+=arb.text.dec2hex(0x10000+((haut-0xD800)<<10)+(b-0xDC00))+' ';haut=0;continue}else{CPstring+='!erreur '+arb.text.dec2hex(haut)+'!';haut=0}}if(0xD800<=b&&b<=0xDBFF){haut=b}else{CPstring+=arb.text.dec2hex(b)+' '}}textString=CPstring.substring(0,CPstring.length-1);var outputString="";textString=textString.replace(/^\s+/,'');if(textString.length==0){return""}textString=textString.replace(/\s+/g,' ');var listArray=textString.split(' ');for(var i=0;i<listArray.length;i++){var n=parseInt(listArray[i],16);if(n==0x20){outputString+='%20'}else if(n>=0x41&&n<=0x5A){outputString+=String.fromCharCode(n)}else if(n>=0x61&&n<=0x7A){outputString+=String.fromCharCode(n)}else if(n>=0x30&&n<=0x39){outputString+=String.fromCharCode(n)}else if(n==0x2D||n==0x2E||n==0x5F||n==0x7E){outputString+=String.fromCharCode(n)}else if(n<=0x7F){outputString+='%'+arb.text.dec2hex2(n)}else if(n<=0x7FF){outputString+='%'+arb.text.dec2hex2(0xC0|((n>>6)&0x1F))+'%'+arb.text.dec2hex2(0x80|(n&0x3F))}else if(n<=0xFFFF){outputString+='%'+arb.text.dec2hex2(0xE0|((n>>12)&0x0F))+'%'+arb.text.dec2hex2(0x80|((n>>6)&0x3F))+'%'+arb.text.dec2hex2(0x80|(n&0x3F))}else if(n<=0x10FFFF){outputString+='%'+arb.text.dec2hex2(0xF0|((n>>18)&0x07))+'%'+arb.text.dec2hex2(0x80|((n>>12)&0x3F))+'%'+arb.text.dec2hex2(0x80|((n>>6)&0x3F))+'%'+arb.text.dec2hex2(0x80|(n&0x3F))}else{outputString+='!Error '+arb.text.dec2hex(n)+'!'}}return(outputString)},dec2hex2:function(textString){var hexequiv=new Array("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F");return hexequiv[(textString>>4)&0xF]+hexequiv[textString&0xF]},dec2hex:function(textString){return(textString+0).toString(16).toUpperCase()}};arb.functions={expandMenu:function(id){if(!document.getElementById){return}var menu=document.getElementById(id);if(!menu){return}var menuItems=menu.getElementsByTagName("a");var activeMenuItem;var searchLocation=document.location.href;var innerDiv=document.createElement('div');arb.element.addClass(innerDiv,'menus-expanded');arb.element.moveChildren(menu,innerDiv);menu.appendChild(innerDiv);do{for(var i=0;i<menuItems.length;i++){if(menuItems[i].href&&arb.url.equal(menuItems[i].href,searchLocation)){activeMenuItem=menuItems[i];break}}if(!activeMenuItem){searchLocation=arb.url.parentPage(searchLocation)}}while(!activeMenuItem&&searchLocation);if(activeMenuItem){var parent=activeMenuItem.parentNode;arb.element.addClass(parent,'active');while(parent!=menu){if(parent.nodeName=="LI"||parent.nodeName=="UL"){arb.element.addClass(parent,'expanded');if(parent.id!=""){arb.element.addClass(parent,parent.id+"-expanded")}}parent=parent.parentNode}}},dropdownMenus:function(id){function _showMenu(e){arb.element.addClass(this,"arb-hover");if(typeof(jQuery)!="undefined"){$("ul",this).slideDown('fast')}}function _hideMenu(e){arb.element.removeClass(this,"arb-hover")}var elements=document.getElementById(id).getElementsByTagName("LI");for(var i=0;i<elements.length;i++){arb.event.standardHandler.hoverFns(elements[i],_showMenu,_hideMenu);arb.event.addHandler(elements[i],"focus",_showMenu);arb.event.addHandler(elements[i],"blur",_hideMenu)}},stripeTables:function(){if(typeof(jQuery)!="undefined"){$(document).ready(function(){$("#content tr").hover(function(){$(this).addClass("arb-hover")},function(){$(this).removeClass("arb-hover")});$("#content tr:even").addClass("arb-even")})}},linkButtons:function(selector,callback){callback=(callback==null)?defaultCallback:callback;$(selector).each(function(){var button=$(this);var text=button.val();var link=$('<a href="#" class="link-button"><span>'+text+'</span></a>');link.addClass(button.attr("class"));button.before(link).hide();if(!button.is(":disabled")){link.click(function(){callback(link,button);return false})}else{link.click(function(){return false}).attr("href","")}});function defaultCallback(link,button){button.click()}},enhanceTextareas:function(){$('textarea:not([wysiwyg-textarea=true])').each(function(){if(!$(this).parent().is('.enhanced-textarea')){$(this).wrap("<div class=\"enhanced-textarea\"></div>").parent().append($("<div class=\"textarea-footer\"></div>"));arb.functions.expandableTextarea($(this).parent());arb.functions.maxlengthTextarea($(this).parent())}})},expandableTextarea:function(textareaWrapper){var staticOffset=null;var textarea=$("textarea",textareaWrapper);$(".textarea-footer",textareaWrapper).addClass("grippie").mousedown(startDrag);var grippie=$(".textarea-footer",textareaWrapper)[0];$(grippie).css("margin-right",grippie.offsetWidth-textarea[0].offsetWidth+"px");function startDrag(e){staticOffset=textarea.height()-arb.functions.mousePosition(e).y;textarea.css("opacity",0.25);$(document).bind("mousemove",performDrag).bind("mouseup",endDrag);return false}function performDrag(e){textarea.height(Math.max(32,staticOffset+arb.functions.mousePosition(e).y)+"px");return false}function endDrag(e){$(document).unbind("mousemove",performDrag).unbind("mouseup",endDrag);textarea.css("opacity",1)}},mousePosition:function(e){return{x:e.clientX+document.documentElement.scrollLeft,y:e.clientY+document.documentElement.scrollTop}},maxlengthTextarea:function(textareaWrapper){$("textarea[maxlength]",textareaWrapper).each(function(){var maxLength=$(this).attr('maxlength');var currentLength=$(this).val().length;var html_counter=$("<div class=\"textarea-length-counter\"><span>"+currentLength+"</span>/"+maxLength+" characters</div>");$(".textarea-footer",textareaWrapper).append(html_counter);this.relatedElement=$('span',html_counter)}).keyup(function(){var maxLength=$(this).attr('maxlength');var currentLength=$(this).val().length;if(currentLength>=maxLength){this.value=this.value.substring(0,maxLength-1)}this.relatedElement.html(currentLength)})},fontSizing:function(insertSelector,options){var options=$.extend({printText:'Print page',maxFontSize:140,minFontSize:70,fontIncrement:16.66,controlsFontSize:11,insertHTML:'<li id="font-size-down-control" title="Decrease font size"><span>A-</span></li><li id="font-size-up-control" title="Increase font size"><span>A+</span></li><li class="print-link" title="'+options.printText+'"><a href="#">'+options.printText+'</a></li>'},options);function incrementFontSize(sizeDelta){var newSize=parseFloat(arb.cookie.get("font-size"))+sizeDelta;if(newSize>options.minFontSize&&newSize<options.maxFontSize){setBodyFontSize(newSize);arb.cookie.set("font-size",newSize,{path:"/"})}}function setBodyFontSize(size){$("#content").css("font-size",size+"%");$("#content #page-controls").css("font-size",options.controlsFontSize+"px");if(((size*1)-options.fontIncrement)<options.minFontSize){$("#font-size-down-control").css("opacity",0.5);$("#font-size-up-control").css("opacity",1)}else if(((size*1)+options.fontIncrement)>options.maxFontSize){$("#font-size-down-control").css("opacity",1);$("#font-size-up-control").css("opacity",0.5)}else{$("#font-size-down-control").css("opacity",1);$("#font-size-up-control").css("opacity",1)}}var fontSize=arb.cookie.get("font-size");if(!fontSize){arb.cookie.set("font-size","100",{path:"/"});fontSize=arb.cookie.get("font-size")}if(window.print&&fontSize){$(insertSelector).prepend(options.insertHTML);setBodyFontSize(fontSize);$(".print-link a").click(function(){window.print()});$("#font-size-down-control").click(function(){incrementFontSize(-options.fontIncrement)});$("#font-size-up-control").click(function(){incrementFontSize(options.fontIncrement)});$("#page-controls li").hover(function(){$(this).addClass("arb-hover")},function(){$(this).removeClass("arb-hover")})}}};arb.cookie={set:function(name,value,options){options=options||{};var expires='';options.expires=options.expires||356;var date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000));var expires="; expires="+date.toGMTString();var path=options.path?'; path='+options.path:'';var domain=options.domain?'; domain='+options.domain:'';var secure=options.secure?'; secure':'';document.cookie=[name,'=',encodeURIComponent(value),expires,path,domain,secure].join('')},get:function(name){var cookieValue=null;if(document.cookie&&document.cookie!=''){var cookies=document.cookie.split(';');for(var i=0;i<cookies.length;i++){var cookie=cookies[i].trim();if(cookie.substring(0,name.length+1)==(name+'=')){cookieValue=decodeURIComponent(cookie.substring(name.length+1));break}}}return cookieValue},remove:function(name){arb.cookie.set(name,"",{expires:-1})}};$(document).ready(arb.init);if(Array.prototype.push==null){Array.prototype.push=function(item){this[this.length]=item;return this.length}};if(String.prototype.trim==null){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/,'')}}$(function(){if(arb.prefs.enhanceDotnetValidation&&typeof(ValidatorUpdateDisplay)=='function'){ValidatorUpdateDisplay=function(val){if(typeof(val.display)=="string"){if(val.display=="Dynamic"){if(val.isvalid&&$(val).is(':visible')){$(val).animate({height:'hide',opacity:'hide'},'slow',function(){if(!$(val).siblings('.error-message').is(':visible')){$(val).parent('.error-messages').parent('.form-item').removeClass('error-form-item')}})}else if(!val.isvalid&&!$(val).is(':visible')){$(val).animate({height:'show',opacity:'show'},'slow').parent('.error-messages').parent('.form-item').addClass('error-form-item')}}}}}});(function(){$(document).ready(function(){if(typeof(Sys)!='undefined'){}if(!$.browser.msie){$('button').each(function(){if(typeof(this.addEventListener)=='function'){this.addEventListener('click',function(e){if(e.target!=this){e.preventDefault();var me=this;window.setTimeout(function(){var evt=document.createEvent("MouseEvents");evt.initMouseEvent("click",true,true,window,0,0,0,0,0,false,false,false,false,0,null);var canceled=!me.dispatchEvent(evt)},0)}},true)}})}});function onPageLoading(sender,args){}function onPageLoaded(sender,args){}function onEndRequest(sender,args){arb.functions.enhanceTextareas();$('div.long-help').formHelp()}})();


/*
* jquery.bigtarget.js
*/
; (function (a) { a.fn.bigTarget = function (g) { var e = a.extend({}, a.fn.bigTarget.defaults, g); return this.each(function () { var c = a(this); var f = c.attr('href'); var d = c.attr('title'); var b = a.meta ? a.extend({}, e, c.data()) : e; c.parents(b.clickZone).hover(function () { $h = a(this); $h.addClass(b.hoverClass); if (typeof b.title != 'undefined' && b.title === true && d != '') { $h.attr('title', d) } }, function () { $h.removeClass(b.hoverClass); if (typeof b.title != 'undefined' && b.title === true && d != '') { $h.removeAttr('title') } }).click(function () { if (h() == "") { if (c.is('[rel*=external]')) { window.open(f); return false } else { window.location = f } } }) }) }; function h() { if (window.getSelection) { return window.getSelection().toString() } else if (document.getSelection) { return document.getSelection() } else if (document.selection) { return document.selection.createRange().text } }; a.fn.bigTarget.defaults = { hoverClass: 'hover', clickZone: 'li:eq(0)', title: true} })(jQuery);


/*
* Areeba Custom plugin - jquery.defaultOptions.js (To show / hide items)
*/
; (function ($) { var f = { findExpression: 'span.toggle', animation: { opacity: 'show' }, animationSpeed: 200 }; $.fn.dependsOn = function (b, c) { var d = $(b); if (d.length > 0) { var e = this; var o = $.extend($.extend({}, f), c); d.bind('click', function () { var a = $(this); if (a.parent().is(o.findExpression)) { enable(e, o) } else { disable(e) } }); d.each(function (i) { if ($(this).parent().is(o.findExpression)) { if (!$(this).is(':checked')) { disable(e) } } }) } return this }; function enable(a, o) { a.animate(o.animation, o.animationSpeed); var b = a.find('span.error-message'); b.each(function () { if (typeof window[this.id] != 'undefined') { window[this.id].enabled = true } }) } function disable(a) { a.hide(); var b = a.find('span.error-message'); b.each(function () { if (typeof window[this.id] != 'undefined') { window[this.id].enabled = false } }) } })(jQuery);


/*
* Areeba Custom plugin - jquery.formHelp.js (To show / hide form help)
*/
; (function ($) { var e = { buttonText: 'What is this?', buttonClass: 'long-help-button', closeButtonClass: 'close-button', closeButtonText: 'Close', longHelpWrapperClass: 'long-help-wrapper', longHelpWrapperCSS: 'overflow: hidden; position: relative; zoom: 1;', animation: { height: 'show' }, animationSpeed: 200 }; $.fn.formHelp = function (d) { var o = $.extend($.extend({}, e), d); this.each(function (i) { var a = this; var b = $(a).parent(); var c = '<a href="#" class="' + o.buttonClass + '">' + o.buttonText + '</a>'; if (b.find('span.suffix').length > 0) { b.find('span.suffix').append(c) } else { if (b.find('.control-wrapper').length > 0) { b.find('.input-wrapper').after('<span class="suffix"></span>').parent().find('span.suffix').append(c) } else { b.find('select, textarea').after(c) } } $(a).wrap('<div class="' + o.longHelpWrapperClass + '" style="' + o.longHelpWrapperCSS + '"></div>'); $(a).data('isOpen', false).parent('.' + o.longHelpWrapperClass).hide(); b.find('.' + o.buttonClass).bind('click', function () { if ($(a).data('isOpen')) { disable(a) } else { enable(a, o) } return false }); $(a).append('<a href="#" class="' + o.closeButtonClass + '">' + o.closeButtonText + '</a>'); $(a).find('.' + o.closeButtonClass).bind('click', function () { disable(a); return false }) }); return this }; function enable(a, o) { $(a).data('isOpen', true).parent('.long-help-wrapper').stop().animate(o.animation, o.animationSpeed) } function disable(a) { $(a).data('isOpen', false).parent('.long-help-wrapper').stop().css({ height: 'auto' }).hide() } })(jQuery);


/*
* Areeba Custom plugin - jquery.formTabs.js (To build a tab nav for form items)
*/
(function ($) { $.fn.formTabs = function (h) { o = jQuery.extend({ tabNavAppend: 'body', tabNavID: 'tab-nav', tabNavClass: 'clearfix', elHeader: 'legend span', elChild: '> fieldset', animationSpeed: 800, animation: { opacity: 'show' }, output: '' }, h); this.each(function (i) { var b = this; var c = o.output; var d = $(b).find(o.elChild); d.each(function () { c += '<li><a href="#">' + $(this).find(o.elHeader).text() + '</a></li>' }); $(o.tabNavAppend).prepend('<ul id="' + o.tabNavID + '" class="' + o.tabNavClass + '">' + c + '</ul>'); var e = 0; if (d.find("input[type='radio']:checked").length == 1) { var f = d.find('input[type]:checked').parents('fieldset.radios-form-item'); e = d.index(f) } $(d).not(':eq(' + e + ')').hide(); $('#' + o.tabNavID).children(':eq(' + e + ')').addClass('active'); var g = '#' + o.tabNavID + ' li a'; $(g).bind('click', function () { var a = $(g).index(this); if (!$(this).parent().is('.active')) { d.stop().hide().css('opacity', 1); $('#' + o.tabNavID).find('li').removeClass('active'); $(this).parent().addClass('active'); d.eq(a).animate(o.animation, o.animationSpeed) } return false }) }); return this } })(jQuery);


/*
* Areeba Custom plugin - jquery.contentReveal.js (To do a simple show / hide of items)
*/
; (function ($) { var c = { closedClass: 'content-reveal-closed', contentArea: '.content', button: 'h2', openAnimation: { width: '310px' }, openAnimationSpeed: 200, closeAnimation: { width: '155px' }, closeAnimationSpeed: 200, animationEasing: 'easeout' }; $.fn.contentReveal = function (b) { var o = $.extend($.extend({}, c), b); this.each(function (i) { var a = $(this).addClass(o.closedClass).animate(o.closeAnimation, o.closeAnimationSpeed); $(this).bind('mouseover', function () { a.stop().animate(o.openAnimation, o.openAnimationSpeed, o.animationEasing).removeClass(o.closedClass) }); $(this).bind('mouseout', function () { a.stop().animate(o.closeAnimation, o.closeAnimationSpeed, o.animationEasing, function () { $(this).addClass(o.closedClass) }) }) }); return this } })(jQuery);


/*
* Areeba Custom plugin - jquery.roundDialogue.js (To do a simple round corner markup)
*/
; (function ($) { var c = { topLeft: true, topRight: true, bottomRight: true, bottomLeft: true, spriteWidth: 14, spriteHeight: 14 }; $.fn.roundDialogue = function (a, b) { var o = $.extend($.extend({}, c), b); this.each(function (i) { $(this).wrap('<div class="roundDialogue"></div>'); var w = o.spriteWidth / 2; var h = o.spriteHeight / 2; var l = '-' + w + 'px'; var t = '-' + h + 'px'; $('div.roundDialogue').css('position', 'relative'); if (o.topLeft) { $(this).before('<div class="tl"></div>'); $('div.roundDialogue .tl').css('width', w + 'px').css('height', h + 'px').css('font-size', '1px').css('position', 'absolute').css('top', '0').css('left', '0').css('background', 'url(' + a + ') ' + l + ' ' + t + ' no-repeat') } if (o.topRight) { $(this).before('<div class="tr"></div>'); $('div.roundDialogue .tr').css('width', w + 'px').css('height', h + 'px').css('font-size', '1px').css('position', 'absolute').css('top', '0').css('right', '0').css('background', 'url(' + a + ') 0 ' + t + ' no-repeat') } if (o.bottomRight) { $(this).after('<div class="br"></div>'); $('div.roundDialogue .br').css('width', w + 'px').css('height', h + 'px').css('font-size', '1px').css('position', 'absolute').css('bottom', '0').css('right', '0').css('background', 'url(' + a + ') 0 0 no-repeat') } if (o.bottomLeft) { $(this).after('<div class="bl"></div>'); $('div.roundDialogue .bl').css('width', w + 'px').css('height', h + 'px').css('font-size', '1px').css('position', 'absolute').css('bottom', '0').css('left', '0').css('background', 'url(' + a + ') ' + l + ' 0 no-repeat') } }); return this } })(jQuery);
/*
* jquery.cookie.js
*/
jQuery.cookie = function (a, b, c) { if (typeof b != 'undefined') { c = c || {}; if (b === null) { b = ''; c.expires = -1 } var d = ''; if (c.expires && (typeof c.expires == 'number' || c.expires.toUTCString)) { var e; if (typeof c.expires == 'number') { e = new Date(); e.setTime(e.getTime() + (c.expires * 24 * 60 * 60 * 1000)) } else { e = c.expires } d = '; expires=' + e.toUTCString() } var f = c.path ? '; path=' + (c.path) : ''; var g = c.domain ? '; domain=' + (c.domain) : ''; var h = c.secure ? '; secure' : ''; document.cookie = [a, '=', encodeURIComponent(b), d, f, g, h].join('') } else { var j = null; if (document.cookie && document.cookie != '') { var k = document.cookie.split(';'); for (var i = 0; i < k.length; i++) { var l = jQuery.trim(k[i]); if (l.substring(0, a.length + 1) == (a + '=')) { j = decodeURIComponent(l.substring(a.length + 1)); break } } } return j } };


/*
* jQuery UI 1.6
*/
; (function ($) { var j = $.fn.remove, isFF2 = $.browser.mozilla && (parseFloat($.browser.version) < 1.9); $.ui = { version: "1.6", plugin: { add: function (a, b, c) { var d = $.ui[a].prototype; for (var i in c) { d.plugins[i] = d.plugins[i] || []; d.plugins[i].push([b, c[i]]) } }, call: function (a, b, c) { var d = a.plugins[b]; if (!d) { return } for (var i = 0; i < d.length; i++) { if (a.options[d[i][0]]) { d[i][1].apply(a.element, c) } } } }, contains: function (a, b) { var c = $.browser.safari && $.browser.version < 522; if (a.contains && !c) { return a.contains(b) } if (a.compareDocumentPosition) return !!(a.compareDocumentPosition(b) & 16); while (b = b.parentNode) if (b == a) return true; return false }, cssCache: {}, css: function (a) { if ($.ui.cssCache[a]) { return $.ui.cssCache[a] } var b = $('<div class="ui-gen">').addClass(a).css({ position: 'absolute', top: '-5000px', left: '-5000px', display: 'block' }).appendTo('body'); $.ui.cssCache[a] = !!((!(/auto|default/).test(b.css('cursor')) || (/^[1-9]/).test(b.css('height')) || (/^[1-9]/).test(b.css('width')) || !(/none/).test(b.css('backgroundImage')) || !(/transparent|rgba\(0, 0, 0, 0\)/).test(b.css('backgroundColor')))); try { $('body').get(0).removeChild(b.get(0)) } catch (e) { } return $.ui.cssCache[a] }, hasScroll: function (b, a) { if ($(b).css('overflow') == 'hidden') { return false } var c = (a && a == 'left') ? 'scrollLeft' : 'scrollTop', has = false; if (b[c] > 0) { return true } b[c] = 1; has = (b[c] > 0); b[c] = 0; return has }, isOverAxis: function (x, a, b) { return (x > a) && (x < (a + b)) }, isOver: function (y, x, a, b, c, d) { return $.ui.isOverAxis(y, a, c) && $.ui.isOverAxis(x, b, d) }, keyCode: { BACKSPACE: 8, CAPS_LOCK: 20, COMMA: 188, CONTROL: 17, DELETE: 46, DOWN: 40, END: 35, ENTER: 13, ESCAPE: 27, HOME: 36, INSERT: 45, LEFT: 37, NUMPAD_ADD: 107, NUMPAD_DECIMAL: 110, NUMPAD_DIVIDE: 111, NUMPAD_ENTER: 108, NUMPAD_MULTIPLY: 106, NUMPAD_SUBTRACT: 109, PAGE_DOWN: 34, PAGE_UP: 33, PERIOD: 190, RIGHT: 39, SHIFT: 16, SPACE: 32, TAB: 9, UP: 38} }; if (isFF2) { var k = $.attr, removeAttr = $.fn.removeAttr, ariaNS = "http://www.w3.org/2005/07/aaa", ariaState = /^aria-/, ariaRole = /^wairole:/; $.attr = function (a, b, c) { var d = c !== undefined; return (b == 'role' ? (d ? k.call(this, a, b, "wairole:" + c) : (k.apply(this, arguments) || "").replace(ariaRole, "")) : (ariaState.test(b) ? (d ? a.setAttributeNS(ariaNS, b.replace(ariaState, "aaa:"), c) : k.call(this, a, b.replace(ariaState, "aaa:"))) : k.apply(this, arguments))) }; $.fn.removeAttr = function (a) { return (ariaState.test(a) ? this.each(function () { this.removeAttributeNS(ariaNS, a.replace(ariaState, "")) }) : removeAttr.call(this, a)) } } $.fn.extend({ remove: function () { $("*", this).add(this).each(function () { $(this).triggerHandler("remove") }); return j.apply(this, arguments) }, enableSelection: function () { return this.attr('unselectable', 'off').css('MozUserSelect', '').unbind('selectstart.ui') }, disableSelection: function () { return this.attr('unselectable', 'on').css('MozUserSelect', 'none').bind('selectstart.ui', function () { return false }) }, scrollParent: function () { var a; if (($.browser.msie && (/(static|relative)/).test(this.css('position'))) || (/absolute/).test(this.css('position'))) { a = this.parents().filter(function () { return (/(relative|absolute|fixed)/).test($.curCSS(this, 'position', 1)) && (/(auto|scroll)/).test($.curCSS(this, 'overflow', 1) + $.curCSS(this, 'overflow-y', 1) + $.curCSS(this, 'overflow-x', 1)) }).eq(0) } else { a = this.parents().filter(function () { return (/(auto|scroll)/).test($.curCSS(this, 'overflow', 1) + $.curCSS(this, 'overflow-y', 1) + $.curCSS(this, 'overflow-x', 1)) }).eq(0) } return (/fixed/).test(this.css('position')) || !a.length ? $(document) : a } }); $.extend($.expr[':'], { data: function (a, i, m) { return $.data(a, m[3]) }, tabbable: function (a, i, m) { var b = a.nodeName.toLowerCase(); function isVisible(a) { return !($(a).is(':hidden') || $(a).parents(':hidden').length) } return (a.tabIndex >= 0 && (('a' == b && a.href) || (/input|select|textarea|button/.test(b) && 'hidden' != a.type && !a.disabled)) && isVisible(a)) } }); function getter(c, d, e, f) { function getMethods(a) { var b = $[c][d][a] || []; return (typeof b == 'string' ? b.split(/,?\s+/) : b) } var g = getMethods('getter'); if (f.length == 1 && typeof f[0] == 'string') { g = g.concat(getMethods('getterSetter')) } return ($.inArray(e, g) != -1) } $.widget = function (g, h) { var i = g.split(".")[0]; g = g.split(".")[1]; $.fn[g] = function (b) { var c = (typeof b == 'string'), args = Array.prototype.slice.call(arguments, 1); if (c && b.substring(0, 1) == '_') { return this } if (c && getter(i, g, b, args)) { var d = $.data(this[0], g); return (d ? d[b].apply(d, args) : undefined) } return this.each(function () { var a = $.data(this, g); (!a && !c && $.data(this, g, new $[i][g](this, b))); (a && c && $.isFunction(a[b]) && a[b].apply(a, args)) }) }; $[i] = $[i] || {}; $[i][g] = function (d, e) { var f = this; this.widgetName = g; this.widgetEventPrefix = $[i][g].eventPrefix || g; this.widgetBaseClass = i + '-' + g; this.options = $.extend({}, $.widget.defaults, $[i][g].defaults, $.metadata && $.metadata.get(d)[g], e); this.element = $(d).bind('setData.' + g, function (a, b, c) { return f._setData(b, c) }).bind('getData.' + g, function (a, b) { return f._getData(b) }).bind('remove', function () { return f.destroy() }); this._init() }; $[i][g].prototype = $.extend({}, $.widget.prototype, h); $[i][g].getterSetter = 'option' }; $.widget.prototype = { _init: function () { }, destroy: function () { this.element.removeData(this.widgetName) }, option: function (c, d) { var e = c, self = this; if (typeof c == "string") { if (d === undefined) { return this._getData(c) } e = {}; e[c] = d } $.each(e, function (a, b) { self._setData(a, b) }) }, _getData: function (a) { return this.options[a] }, _setData: function (a, b) { this.options[a] = b; if (a == 'disabled') { this.element[b ? 'addClass' : 'removeClass'](this.widgetBaseClass + '-disabled') } }, enable: function () { this._setData('disabled', false) }, disable: function () { this._setData('disabled', true) }, _trigger: function (a, b, c) { var d = (a == this.widgetEventPrefix ? a : this.widgetEventPrefix + a); b = b || $.event.fix({ type: d, target: this.element[0] }); return this.element.triggerHandler(d, [b, c], this.options[a]) } }; $.widget.defaults = { disabled: false }; $.ui.mouse = { _mouseInit: function () { var b = this; this.element.bind('mousedown.' + this.widgetName, function (a) { return b._mouseDown(a) }).bind('click.' + this.widgetName, function (a) { if (b._preventClickEvent) { b._preventClickEvent = false; return false } }); if ($.browser.msie) { this._mouseUnselectable = this.element.attr('unselectable'); this.element.attr('unselectable', 'on') } this.started = false }, _mouseDestroy: function () { this.element.unbind('.' + this.widgetName); ($.browser.msie && this.element.attr('unselectable', this._mouseUnselectable)) }, _mouseDown: function (b) { (this._mouseStarted && this._mouseUp(b)); this._mouseDownEvent = b; var c = this, btnIsLeft = (b.which == 1), elIsCancel = (typeof this.options.cancel == "string" ? $(b.target).parents().add(b.target).filter(this.options.cancel).length : false); if (!btnIsLeft || elIsCancel || !this._mouseCapture(b)) { return true } this.mouseDelayMet = !this.options.delay; if (!this.mouseDelayMet) { this._mouseDelayTimer = setTimeout(function () { c.mouseDelayMet = true }, this.options.delay) } if (this._mouseDistanceMet(b) && this._mouseDelayMet(b)) { this._mouseStarted = (this._mouseStart(b) !== false); if (!this._mouseStarted) { b.preventDefault(); return true } } this._mouseMoveDelegate = function (a) { return c._mouseMove(a) }; this._mouseUpDelegate = function (a) { return c._mouseUp(a) }; $(document).bind('mousemove.' + this.widgetName, this._mouseMoveDelegate).bind('mouseup.' + this.widgetName, this._mouseUpDelegate); if (!$.browser.safari) b.preventDefault(); return true }, _mouseMove: function (a) { if ($.browser.msie && !a.button) { return this._mouseUp(a) } if (this._mouseStarted) { this._mouseDrag(a); return a.preventDefault() } if (this._mouseDistanceMet(a) && this._mouseDelayMet(a)) { this._mouseStarted = (this._mouseStart(this._mouseDownEvent, a) !== false); (this._mouseStarted ? this._mouseDrag(a) : this._mouseUp(a)) } return !this._mouseStarted }, _mouseUp: function (a) { $(document).unbind('mousemove.' + this.widgetName, this._mouseMoveDelegate).unbind('mouseup.' + this.widgetName, this._mouseUpDelegate); if (this._mouseStarted) { this._mouseStarted = false; this._preventClickEvent = true; this._mouseStop(a) } return false }, _mouseDistanceMet: function (a) { return (Math.max(Math.abs(this._mouseDownEvent.pageX - a.pageX), Math.abs(this._mouseDownEvent.pageY - a.pageY)) >= this.options.distance) }, _mouseDelayMet: function (a) { return this.mouseDelayMet }, _mouseStart: function (a) { }, _mouseDrag: function (a) { }, _mouseStop: function (a) { }, _mouseCapture: function (a) { return true } }; $.ui.mouse.defaults = { cancel: null, distance: 1, delay: 0} })(jQuery);


/*
* jQuery UI Tabs 1.6
*/
; (function ($) { $.widget("ui.tabs", { _init: function () { this._tabify(true) }, destroy: function () { var o = this.options; this.element.unbind('.tabs').removeClass(o.navClass).removeData('tabs'); this.$tabs.each(function () { var b = $.data(this, 'href.tabs'); if (b) this.href = b; var c = $(this).unbind('.tabs'); $.each(['href', 'load', 'cache'], function (i, a) { c.removeData(a + '.tabs') }) }); this.$lis.add(this.$panels).each(function () { if ($.data(this, 'destroy.tabs')) $(this).remove(); else $(this).removeClass([o.selectedClass, o.deselectableClass, o.disabledClass, o.panelClass, o.hideClass].join(' ')) }); if (o.cookie) this._cookie(null, o.cookie) }, _setData: function (a, b) { if ((/^selected/).test(a)) this.select(b); else { this.options[a] = b; this._tabify() } }, length: function () { return this.$tabs.length }, _tabId: function (a) { return a.title && a.title.replace(/\s/g, '_').replace(/[^A-Za-z0-9\-_:\.]/g, '') || this.options.idPrefix + $.data(a) }, _sanitizeSelector: function (a) { return a.replace(/:/g, '\\:') }, _cookie: function () { var a = this.cookie || (this.cookie = 'ui-tabs-' + $.data(this.element[0])); return $.cookie.apply(null, [a].concat($.makeArray(arguments))) }, _tabify: function (f) { this.$lis = $('li:has(a[href])', this.element); this.$tabs = this.$lis.map(function () { return $('a', this)[0] }); this.$panels = $([]); var g = this, o = this.options; this.$tabs.each(function (i, a) { if (a.hash && a.hash.replace('#', '')) g.$panels = g.$panels.add(g._sanitizeSelector(a.hash)); else if ($(a).attr('href') != '#') { $.data(a, 'href.tabs', a.href); $.data(a, 'load.tabs', a.href); var b = g._tabId(a); a.href = '#' + b; var c = $('#' + b); if (!c.length) { c = $(o.panelTemplate).attr('id', b).addClass(o.panelClass).insertAfter(g.$panels[i - 1] || g.element); c.data('destroy.tabs', true) } g.$panels = g.$panels.add(c) } else o.disabled.push(i + 1) }); if (f) { this.element.addClass(o.navClass); this.$panels.addClass(o.panelClass); if (o.selected === undefined) { if (location.hash) { this.$tabs.each(function (i, a) { if (a.hash == location.hash) { o.selected = i; return false } }) } else if (o.cookie) { var h = parseInt(g._cookie(), 10); if (h && g.$tabs[h]) o.selected = h } else if (g.$lis.filter('.' + o.selectedClass).length) o.selected = g.$lis.index(g.$lis.filter('.' + o.selectedClass)[0]) } o.selected = o.selected === null || o.selected !== undefined ? o.selected : 0; o.disabled = $.unique(o.disabled.concat($.map(this.$lis.filter('.' + o.disabledClass), function (n, i) { return g.$lis.index(n) }))).sort(); if ($.inArray(o.selected, o.disabled) != -1) o.disabled.splice($.inArray(o.selected, o.disabled), 1); this.$panels.addClass(o.hideClass); this.$lis.removeClass(o.selectedClass); if (o.selected !== null) { this.$panels.eq(o.selected).removeClass(o.hideClass); var j = [o.selectedClass]; if (o.deselectable) j.push(o.deselectableClass); this.$lis.eq(o.selected).addClass(j.join(' ')); var k = function () { g._trigger('show', null, g.ui(g.$tabs[o.selected], g.$panels[o.selected])) }; if ($.data(this.$tabs[o.selected], 'load.tabs')) this.load(o.selected, k); else k() } $(window).bind('unload', function () { g.$tabs.unbind('.tabs'); g.$lis = g.$tabs = g.$panels = null }) } else o.selected = this.$lis.index(this.$lis.filter('.' + o.selectedClass)[0]); if (o.cookie) this._cookie(o.selected, o.cookie); for (var i = 0, li; li = this.$lis[i]; i++) $(li)[$.inArray(i, o.disabled) != -1 && !$(li).hasClass(o.selectedClass) ? 'addClass' : 'removeClass'](o.disabledClass); if (o.cache === false) this.$tabs.removeData('cache.tabs'); var l, showFx; if (o.fx) { if (o.fx.constructor == Array) { l = o.fx[0]; showFx = o.fx[1] } else l = showFx = o.fx } function resetStyle(a, b) { a.css({ display: '' }); if ($.browser.msie && b.opacity) a[0].style.removeAttribute('filter') } var m = showFx ? function (a, b) { b.animate(showFx, showFx.duration || 'normal', function () { b.removeClass(o.hideClass); resetStyle(b, showFx); g._trigger('show', null, g.ui(a, b[0])) }) } : function (a, b) { b.removeClass(o.hideClass); g._trigger('show', null, g.ui(a, b[0])) }; var p = l ? function (a, b, c) { b.animate(l, l.duration || 'normal', function () { b.addClass(o.hideClass); resetStyle(b, l); if (c) m(a, c, b) }) } : function (a, b, c) { b.addClass(o.hideClass); if (c) m(a, c) }; function switchTab(a, b, c, d) { var e = [o.selectedClass]; if (o.deselectable) e.push(o.deselectableClass); b.addClass(e.join(' ')).siblings().removeClass(e.join(' ')); p(a, c, d) } this.$tabs.unbind('.tabs').bind(o.event + '.tabs', function () { var b = $(this).parents('li:eq(0)'), $hide = g.$panels.filter(':visible'), $show = $(g._sanitizeSelector(this.hash)); if ((b.hasClass(o.selectedClass) && !o.deselectable) || b.hasClass(o.disabledClass) || $(this).hasClass(o.loadingClass) || g._trigger('select', null, g.ui(this, $show[0])) === false) { this.blur(); return false } o.selected = g.$tabs.index(this); if (o.deselectable) { if (b.hasClass(o.selectedClass)) { g.options.selected = null; b.removeClass([o.selectedClass, o.deselectableClass].join(' ')); g.$panels.stop(); p(this, $hide); this.blur(); return false } else if (!$hide.length) { g.$panels.stop(); var a = this; g.load(g.$tabs.index(this), function () { b.addClass([o.selectedClass, o.deselectableClass].join(' ')); m(a, $show) }); this.blur(); return false } } if (o.cookie) g._cookie(o.selected, o.cookie); g.$panels.stop(); if ($show.length) { var a = this; g.load(g.$tabs.index(this), $hide.length ? function () { switchTab(a, b, $hide, $show) } : function () { b.addClass(o.selectedClass); m(a, $show) }) } else throw 'jQuery UI Tabs: Mismatching fragment identifier.'; if ($.browser.msie) this.blur(); return false }); if (o.event != 'click') this.$tabs.bind('click.tabs', function () { return false }) }, add: function (a, b, c) { if (c == undefined) c = this.$tabs.length; var o = this.options; var d = $(o.tabTemplate.replace(/#\{href\}/g, a).replace(/#\{label\}/g, b)); d.data('destroy.tabs', true); var e = a.indexOf('#') == 0 ? a.replace('#', '') : this._tabId($('a:first-child', d)[0]); var f = $('#' + e); if (!f.length) { f = $(o.panelTemplate).attr('id', e).addClass(o.hideClass).data('destroy.tabs', true) } f.addClass(o.panelClass); if (c >= this.$lis.length) { d.appendTo(this.element); f.appendTo(this.element[0].parentNode) } else { d.insertBefore(this.$lis[c]); f.insertBefore(this.$panels[c]) } o.disabled = $.map(o.disabled, function (n, i) { return n >= c ? ++n : n }); this._tabify(); if (this.$tabs.length == 1) { d.addClass(o.selectedClass); f.removeClass(o.hideClass); var g = $.data(this.$tabs[0], 'load.tabs'); if (g) this.load(c, g) } this._trigger('add', null, this.ui(this.$tabs[c], this.$panels[c])) }, remove: function (a) { var o = this.options, $li = this.$lis.eq(a).remove(), $panel = this.$panels.eq(a).remove(); if ($li.hasClass(o.selectedClass) && this.$tabs.length > 1) this.select(a + (a + 1 < this.$tabs.length ? 1 : -1)); o.disabled = $.map($.grep(o.disabled, function (n, i) { return n != a }), function (n, i) { return n >= a ? --n : n }); this._tabify(); this._trigger('remove', null, this.ui($li.find('a')[0], $panel[0])) }, enable: function (a) { var o = this.options; if ($.inArray(a, o.disabled) == -1) return; var b = this.$lis.eq(a).removeClass(o.disabledClass); if ($.browser.safari) { b.css('display', 'inline-block'); setTimeout(function () { b.css('display', 'block') }, 0) } o.disabled = $.grep(o.disabled, function (n, i) { return n != a }); this._trigger('enable', null, this.ui(this.$tabs[a], this.$panels[a])) }, disable: function (a) { var b = this, o = this.options; if (a != o.selected) { this.$lis.eq(a).addClass(o.disabledClass); o.disabled.push(a); o.disabled.sort(); this._trigger('disable', null, this.ui(this.$tabs[a], this.$panels[a])) } }, select: function (a) { if (typeof a == 'string') a = this.$tabs.index(this.$tabs.filter('[href$=' + a + ']')[0]); this.$tabs.eq(a).trigger(this.options.event + '.tabs') }, load: function (c, d) { var e = this, o = this.options, $a = this.$tabs.eq(c), a = $a[0], bypassCache = d == undefined || d === false, url = $a.data('load.tabs'); d = d || function () { }; if (!url || !bypassCache && $.data(a, 'cache.tabs')) { d(); return } var f = function (a) { var b = $(a), $inner = b.find('*:last'); return $inner.length && $inner.is(':not(img)') && $inner || b }; var g = function () { e.$tabs.filter('.' + o.loadingClass).removeClass(o.loadingClass).each(function () { if (o.spinner) f(this).parent().html(f(this).data('label.tabs')) }); e.xhr = null }; if (o.spinner) { var h = f(a).html(); f(a).wrapInner('<em></em>').find('em').data('label.tabs', h).html(o.spinner) } var i = $.extend({}, o.ajaxOptions, { url: url, success: function (r, s) { $(e._sanitizeSelector(a.hash)).html(r); g(); if (o.cache) $.data(a, 'cache.tabs', true); e._trigger('load', null, e.ui(e.$tabs[c], e.$panels[c])); try { o.ajaxOptions.success(r, s) } catch (event) { } d() } }); if (this.xhr) { this.xhr.abort(); g() } $a.addClass(o.loadingClass); e.xhr = $.ajax(i) }, url: function (a, b) { this.$tabs.eq(a).removeData('cache.tabs').data('load.tabs', b) }, ui: function (a, b) { return { options: this.options, tab: a, panel: b, index: this.$tabs.index(a)} } }); $.extend($.ui.tabs, { version: '1.6', getter: 'length', defaults: { ajaxOptions: null, cache: false, cookie: null, deselectable: false, deselectableClass: 'ui-tabs-deselectable', disabled: [], disabledClass: 'ui-tabs-disabled', event: 'click', fx: null, hideClass: 'ui-tabs-hide', idPrefix: 'ui-tabs-', loadingClass: 'ui-tabs-loading', navClass: 'ui-tabs-nav', panelClass: 'ui-tabs-panel', panelTemplate: '<div></div>', selectedClass: 'ui-tabs-selected', spinner: 'Loading&#8230;', tabTemplate: '<li><a href="#{href}"><span>#{label}</span></a></li>'} }); $.extend($.ui.tabs.prototype, { rotation: null, rotate: function (b, c) { c = c || false; var d = this, t = this.options.selected; function start() { d.rotation = setInterval(function () { t = ++t < d.$tabs.length ? t : 0; d.select(t) }, b) } function stop(a) { if (!a || a.clientX) { clearInterval(d.rotation) } } if (b) { start(); if (!c) this.$tabs.bind(this.options.event + '.tabs', stop); else this.$tabs.bind(this.options.event + '.tabs', function () { stop(); t = d.options.selected; start() }) } else { stop(); this.$tabs.unbind(this.options.event + '.tabs', stop) } } }) })(jQuery);

/*
* arbGA = extra Google Tracking
*/
/*
No need to do this in reddot
; var arbGA={};arbGA.options={"debug":0,"async":0,"trackAsEvents":0,"trackOutgoing":1,"trackMailto":1,"trackDownload":1,"trackDownloadExtensions":"7z|aac|avi|csv|doc|docx|exe|flv|gif|gz|jpe?g|js|mp(3|4|e?g)|mov|pdf|phps|png|ppt|rar|sit|tar|torrent|txt|wma|wmv|xls|xlsx|xml|zip"};arbGA.track=function(){$(document.body).bind('click.arbGA',function(d){$(d.target).parents("a:first,area:first").andSelf().filter("a,area").each(function(){var a=new RegExp("^(https?):\/\/"+window.location.host,"i");var b=new RegExp("\\.("+arbGA.options.trackDownloadExtensions+")$","i");if(a.test(this.href)){if(arbGA.options.trackDownload&&b.test(this.href)){var c=b.exec(this.href);if(arbGA.options.trackAsEvents){arbTrackEvent("download",c[1].toLowerCase(),this.href.replace(a,''))}else{arbTrackPageview("virtual/download"+this.href.replace(a,'')+window.location.pathname)}}else if($(this).is("a[href^=#],area[href^=#]")){if(arbGA.options.trackAsEvents){arbTrackEvent("self","click",this.href.replace(a,''))}else{arbTrackPageview("virtual/self"+this.href.replace(a,''))}}}else{if(arbGA.options.trackMailto&&$(this).is("a[href^=mailto:],area[href^=mailto:]")){if(arbGA.options.trackAsEvents){arbTrackEvent("mail","click",this.href.substring(7))}else{arbTrackPageview("virtual/mail/"+this.href.substring(7)+window.location.pathname)}}else if(arbGA.options.trackOutgoing&&this.href){if(arbGA.options.trackAsEvents){arbTrackEvent("outgoing","click",this.href)}else{arbTrackPageview("virtual/outgoing/"+this.href+window.location.pathname)}}}})});function arbTrackEvent(a,b,c,d){if(arbGA.options.debug){arbGA.debug('_trackEvent('+a+', '+b+', '+c+', '+d+')')}else{if(c.length>0){if(arbGA.options.async){_gaq.push(['_trackEvent',a,b,c,d])}else{_pageTracker._trackEvent(a,b,c,d)}}else{if(arbGA.options.async){_gaq.push(['_trackEvent',a,b,c])}else{_pageTracker._trackEvent(a,b,c)}}}}function arbTrackPageview(a){if(arbGA.options.debug){arbGA.debug('_trackPageview('+a+')')}else{if(arbGA.options.async){_gaq.push(['_trackPageview',a])}else{_pageTracker._trackPageview(a)}}}};arbGA.debug=function(a){if(arbGA.options.debug){console.log(a);alert(a)}};$(document).ready(function(){arbGA.track()});
*/


/*
* site.js
*/
; (function($){function initFlash(){if(typeof baseURL=='undefined'){baseURL='/redcross/cutup/Common'}if(typeof smartEditMode=='undefined'){$('#page-title h1').flashText({src:baseURL+'/flash/swfs/Helvetica95Black_Regular-Bold-Italic-BoldItalic.swf'})}$('#map').flash({src:baseURL+'/flash/swfs/homepage-map.swf',width:'570',height:'220'},{version:'9'})}function initTabs(){var $tabBoxes=$('div.tab-box');var tabnav='<ul class="tab-nav clearfix"></ul>';$tabBoxes.each(function(i){$(this).prepend($(tabnav));var $currentTabNav=$(this).find('.tab-nav').attr('id','tab-nav-'+i);var $tabBoxContent=$(this).find('.tab-content');var boxHeight=220;$tabBoxContent.each(function(j){var $contentInner=$(this).find('.tab-content-inner');if($contentInner.height()>boxHeight){boxHeight=$contentInner.height()}$contentInner.css('minHeight',boxHeight);if($.browser.msie&&$.browser.version<=6){$contentInner.css('height',boxHeight)}var tabID='tab-'+i+'-'+j;$(this).attr('id',tabID);$currentTabNav.append('<li><a href="#'+tabID+'">'+$(this).attr('title')+'</a></li>')});$('li:first',$currentTabNav).addClass('first')});$('ul.tab-nav').tabs({cookie:{expires:30}})}function sendToAFriend(){$('li.email-to-friend-link').bind('click',function(e){e.preventDefault();addthis_open(this,'email','[URL]','[TITLE]')})}function bookmarkAndShare(){$('li.bookmark-and-share-link').bind('click',function(e){e.preventDefault();addthis_sendto()})}function imageRollovers(el){$(window).bind('load',function(){$(el).each(function(key,elm){$('<img>').attr('src',_overImage($(this).attr('src')))})});$(el).hover(function(){$(this).attr('src',_overImage($(this).attr('src')))},function(){$(this).attr('src',_oldImage($(this).attr('src')))});function _overImage(src){return src.substring(0,src.search(/(\.[a-z]+)$/))+'_o'+src.match(/(\.[a-z]+)$/)[0]}function _oldImage(src){return src.replace(/_o\./,'.')}}function helperHover(el){$(el).hover(function(){$(this).addClass('arb-hover')},function(){$(this).removeClass('arb-hover')})}function focusInputs(){$('input.extra-short, input.short, input.wide').each(function(){var stringToAppend='-focused';var classToAdd='';if($(this).is('.extra-short')){classToAdd='extra-short'+stringToAppend}if($(this).is('.short')){classToAdd='short'+stringToAppend}if($(this).is('.wide')){classToAdd='wide'+stringToAppend}$(this).bind('focus',function(){$(this).addClass(classToAdd)});$(this).bind('blur',function(){$(this).removeClass(classToAdd)})})}function initFeature(){$('#featured-news').after('<div id="featured-news-nav">').find('ul:first').addClass('is-js-feature').cycle({fx:'scrollHorz',easing:'backinout',speed:500,timeout:0,pager:'#featured-news-nav',timeout:8000,delay:-2000});$('#home-featured-news').after('<div id="home-featured-news-nav">').find('ul:first').addClass('is-js-feature').cycle({fx:'fade',speed:500,timeout:0,pager:'#home-featured-news-nav',timeout:8000,delay:-2000,easing:null,containerResize:0,after:function(){$(this).css('backgroundColor','')}});$('#home-featured-news li.news-item').css('backgroundColor','')}function initDropdown(selector,animation,speed){$('#primary-navigation li:last-child').addClass('last');$(selector+' > ul > li').bind('mouseenter',function(){$(this).addClass('arb-hover').find('> ul').hide().animate(animation,speed)});$(selector+' > ul > li a').bind('focus',function(){$(this).parent().addClass('arb-hover').find('> ul').hide().animate(animation,speed)});$(selector+' > ul > li').bind('mouseleave',function(){$(this).removeClass('arb-hover')});$(selector+' > ul > li a').bind('blur',function(){$(this).parent().removeClass('arb-hover')});$('ul li',selector).bind('mouseenter',function(){$parentEl=$(this).parent();$parentEl.addClass('arb-hover');if($parentEl.hasClass('primary')){$parentEl.addClass('primary-hover')}if($parentEl.hasClass('secondary')){$parentEl.addClass('secondary-hover')}});$('ul li',selector).bind('mouseleave',function(){$parentEl=$(this).parent();$parentEl.removeClass('arb-hover');$parentEl.removeClass('primary-hover');$parentEl.removeClass('secondary-hover')});$('ul:last-child li:not(:has(ul))',selector).bind('mouseenter',function(){$(this).parent().addClass('no-children')});$('ul:last-child li:not(:has(ul))',selector).bind('mouseleave',function(){$(this).parent().removeClass('no-children')})}function headerCheckboxes(){var linkHTML='<div id="location-link"><a href="#search-options" class="hidden">By Location</a></div>';var linkID='#location-link';var checkboxFieldset='#search-form .radios-fieldset';$(checkboxFieldset).hide();$('#search-form .form-item:first').after(linkHTML);$(linkID).bind('click',function(){if($(linkID+' a').is('.hidden')){$(checkboxFieldset).stop().animate({opacity:'show',height:'show'},200);$(linkID+' a').removeClass('hidden');$(checkboxFieldset).removeClass('accessibility')}else{$(checkboxFieldset).stop().animate({opacity:'hide',height:'hide'},200);$(linkID+' a').addClass('hidden');$(checkboxFieldset).addClass('accessibility')}return false})}function sitemapCollapse(){var $lis=$('#sitemap li');$($lis).children('ul').hide();$($lis).bind('click',function(){if($(this).is('.active')){$(this).removeClass('active');$('ul',this).stop().hide().css('height','auto')}else{$(this).addClass('active');$('ul',this).stop().animate({height:'show'},200)}return false});$('#sitemap-controls .expand').bind('click',function(){$(this).removeClass('show');$('#sitemap-controls .collapse').addClass('show');$('#sitemap li').addClass('active');$('#sitemap ul').stop().animate({height:'show'},200)});$('#sitemap-controls .collapse').bind('click',function(){$(this).removeClass('show');$('#sitemap-controls .expand').addClass('show');$('#sitemap li').removeClass('active');$('#sitemap ul').stop().hide().css('height','auto')})}function landingPageBlocks(){var $lis=$('#landingpage-inner div.teaserlinks li');var $divs=$('#landingpage-inner div.block');var $descs=$('#landingpage-inner div.description');var $calls=$('#landingpage-inner div.callforaction');var maxcallheight=0;var maxdescheight=0;$($descs).each(function(i,el){if($(el).height()>maxdescheight){maxdescheight=$(el).height()}});$($calls).each(function(i,el){if($(el).height()>maxcallheight){maxcallheight=$(el).height()}});var index=0;$divs.hide();$($divs).each(function(i,el){if($(this).is('.inEditMode')){index=i;$(el).show()}$('div.description',el).css('height',maxdescheight+'px');$('div.callforaction',el).css('height',maxcallheight+'px')});if(!$('div.inEditMode').length>0){$('#landingpage-inner div.first').show()}$($lis).each(function(i,el){if(i==index){$(el).addClass("arbHover")}$(el).mouseover(function(){$($lis).removeClass("arbHover");$(this).addClass("arbHover");$($divs).hide();$('div#'+($('a',this).attr('class'))).show()});$('a',this).click(function(){return false})})}function slider(){$("h3.rc-poptitle + div").hide();$("h3.rc-poptitle").click(function(){$(this).toggleClass('rc-open');$(this).next().slideToggle(500)})}$(document).ready(function(){initFlash();imageRollovers('#search-form input.button');initDropdown('#primary-navigation',{opacity:'show',height:'show'},200);arb.functions.fontSizing('#header',{insertHTML:'<ul id="header-links"><li id="font-size-down-control" title="Decrease font size" class="image-replaced">A-<span></span></li><li id="font-size-up-control" title="Increase font size" class="image-replaced">A+<span></span></li><li class="print-link" title="Print Page"><a href="'+window.location+'">Print Page</a></li></ul>'});$('#header-links li').attr({style:''});if(typeof smartEditMode=='undefined'){$('ul.links-list li.page-link a').bigTarget({hoverClass:'arb-hover'})}helperHover('#header-links li');arb.functions.enhanceTextareas();arb.form.initFocusHighlighting();arb.functions.linkButtons('#main input.button');focusInputs();initFeature();$('div.dependant').dependsOn("fieldset.depends-on input[type='radio']");$('div.long-help').formHelp();$('#e-cards').formTabs({tabNavAppend:'#e-cards'});sendToAFriend();bookmarkAndShare();if($('body.crisispage-section').length==0&&$('#content-top .content-reveal').length>0){$('#content-top .content-reveal').contentReveal();$('#content-main').css('margin-top',$('#content-top').outerHeight(true))}$('#home-featured-news ul#home-feature-news-list li img').roundDialogue('/Common/images/backgrounds/bg_roundDialogue.png',{bottomRight:false,bottomLeft:false});initTabs();landingPageBlocks();slider();$('.rc-slideshow').cycle()})})(jQuery);
