/*
* jQuery JavaScript Library v1.3.2
* http://jquery.com/
*
* Copyright (c) 2009 John Resig
* Dual licensed under the MIT and GPL licenses.
* http://docs.jquery.com/License
*
* Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
* Revision: 6246
*/
(function () {
    var window = this, undefined, _jQuery = window.jQuery, _$ = window.$, jQuery = window.jQuery = window.$ = function (selector, context) { return new jQuery.fn.init(selector, context) }, quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/, isSimple = /^.[^:#\[\.,]*$/; jQuery.fn = jQuery.prototype = { init: function (selector, context) { selector = selector || document; if (selector.nodeType) { this[0] = selector; this.length = 1; this.context = selector; return this } if (typeof selector === "string") { var match = quickExpr.exec(selector); if (match && (match[1] || !context)) { if (match[1]) { selector = jQuery.clean([match[1]], context) } else { var elem = document.getElementById(match[3]); if (elem && elem.id != match[3]) { return jQuery().find(selector) } var ret = jQuery(elem || []); ret.context = document; ret.selector = selector; return ret } } else { return jQuery(context).find(selector) } } else { if (jQuery.isFunction(selector)) { return jQuery(document).ready(selector) } } if (selector.selector && selector.context) { this.selector = selector.selector; this.context = selector.context } return this.setArray(jQuery.isArray(selector) ? selector : jQuery.makeArray(selector)) }, selector: "", jquery: "1.3.2", size: function () { return this.length }, get: function (num) { return num === undefined ? Array.prototype.slice.call(this) : this[num] }, pushStack: function (elems, name, selector) { var ret = jQuery(elems); ret.prevObject = this; ret.context = this.context; if (name === "find") { ret.selector = this.selector + (this.selector ? " " : "") + selector } else { if (name) { ret.selector = this.selector + "." + name + "(" + selector + ")" } } return ret }, setArray: function (elems) { this.length = 0; Array.prototype.push.apply(this, elems); return this }, each: function (callback, args) { return jQuery.each(this, callback, args) }, index: function (elem) { return jQuery.inArray(elem && elem.jquery ? elem[0] : elem, this) }, attr: function (name, value, type) { var options = name; if (typeof name === "string") { if (value === undefined) { return this[0] && jQuery[type || "attr"](this[0], name) } else { options = {}; options[name] = value } } return this.each(function (i) { for (name in options) { jQuery.attr(type ? this.style : this, name, jQuery.prop(this, options[name], type, i, name)) } }) }, css: function (key, value) { if ((key == "width" || key == "height") && parseFloat(value) < 0) { value = undefined } return this.attr(key, value, "curCSS") }, text: function (text) { if (typeof text !== "object" && text != null) { return this.empty().append((this[0] && this[0].ownerDocument || document).createTextNode(text)) } var ret = ""; jQuery.each(text || this, function () { jQuery.each(this.childNodes, function () { if (this.nodeType != 8) { ret += this.nodeType != 1 ? this.nodeValue : jQuery.fn.text([this]) } }) }); return ret }, wrapAll: function (html) { if (this[0]) { var wrap = jQuery(html, this[0].ownerDocument).clone(); if (this[0].parentNode) { wrap.insertBefore(this[0]) } wrap.map(function () { var elem = this; while (elem.firstChild) { elem = elem.firstChild } return elem }).append(this) } return this }, wrapInner: function (html) { return this.each(function () { jQuery(this).contents().wrapAll(html) }) }, wrap: function (html) { return this.each(function () { jQuery(this).wrapAll(html) }) }, append: function () { return this.domManip(arguments, true, function (elem) { if (this.nodeType == 1) { this.appendChild(elem) } }) }, prepend: function () { return this.domManip(arguments, true, function (elem) { if (this.nodeType == 1) { this.insertBefore(elem, this.firstChild) } }) }, before: function () { return this.domManip(arguments, false, function (elem) { this.parentNode.insertBefore(elem, this) }) }, after: function () { return this.domManip(arguments, false, function (elem) { this.parentNode.insertBefore(elem, this.nextSibling) }) }, end: function () { return this.prevObject || jQuery([]) }, push: [].push, sort: [].sort, splice: [].splice, find: function (selector) { if (this.length === 1) { var ret = this.pushStack([], "find", selector); ret.length = 0; jQuery.find(selector, this[0], ret); return ret } else { return this.pushStack(jQuery.unique(jQuery.map(this, function (elem) { return jQuery.find(selector, elem) })), "find", selector) } }, clone: function (events) { var ret = this.map(function () { if (!jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this)) { var html = this.outerHTML; if (!html) { var div = this.ownerDocument.createElement("div"); div.appendChild(this.cloneNode(true)); html = div.innerHTML } return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0] } else { return this.cloneNode(true) } }); if (events === true) { var orig = this.find("*").andSelf(), i = 0; ret.find("*").andSelf().each(function () { if (this.nodeName !== orig[i].nodeName) { return } var events = jQuery.data(orig[i], "events"); for (var type in events) { for (var handler in events[type]) { jQuery.event.add(this, type, events[type][handler], events[type][handler].data) } } i++ }) } return ret }, filter: function (selector) { return this.pushStack(jQuery.isFunction(selector) && jQuery.grep(this, function (elem, i) { return selector.call(elem, i) }) || jQuery.multiFilter(selector, jQuery.grep(this, function (elem) { return elem.nodeType === 1 })), "filter", selector) }, closest: function (selector) { var pos = jQuery.expr.match.POS.test(selector) ? jQuery(selector) : null, closer = 0; return this.map(function () { var cur = this; while (cur && cur.ownerDocument) { if (pos ? pos.index(cur) > -1 : jQuery(cur).is(selector)) { jQuery.data(cur, "closest", closer); return cur } cur = cur.parentNode; closer++ } }) }, not: function (selector) { if (typeof selector === "string") { if (isSimple.test(selector)) { return this.pushStack(jQuery.multiFilter(selector, this, true), "not", selector) } else { selector = jQuery.multiFilter(selector, this) } } var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType; return this.filter(function () { return isArrayLike ? jQuery.inArray(this, selector) < 0 : this != selector }) }, add: function (selector) { return this.pushStack(jQuery.unique(jQuery.merge(this.get(), typeof selector === "string" ? jQuery(selector) : jQuery.makeArray(selector)))) }, is: function (selector) { return !!selector && jQuery.multiFilter(selector, this).length > 0 }, hasClass: function (selector) { return !!selector && this.is("." + selector) }, val: function (value) { if (value === undefined) { var elem = this[0]; if (elem) { if (jQuery.nodeName(elem, "option")) { return (elem.attributes.value || {}).specified ? elem.value : elem.text } if (jQuery.nodeName(elem, "select")) { var index = elem.selectedIndex, values = [], options = elem.options, one = elem.type == "select-one"; if (index < 0) { return null } for (var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++) { var option = options[i]; if (option.selected) { value = jQuery(option).val(); if (one) { return value } values.push(value) } } return values } return (elem.value || "").replace(/\r/g, "") } return undefined } if (typeof value === "number") { value += "" } return this.each(function () { if (this.nodeType != 1) { return } if (jQuery.isArray(value) && /radio|checkbox/.test(this.type)) { this.checked = (jQuery.inArray(this.value, value) >= 0 || jQuery.inArray(this.name, value) >= 0) } else { if (jQuery.nodeName(this, "select")) { var values = jQuery.makeArray(value); jQuery("option", this).each(function () { this.selected = (jQuery.inArray(this.value, values) >= 0 || jQuery.inArray(this.text, values) >= 0) }); if (!values.length) { this.selectedIndex = -1 } } else { this.value = value } } }) }, html: function (value) { return value === undefined ? (this[0] ? this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") : null) : this.empty().append(value) }, replaceWith: function (value) { return this.after(value).remove() }, eq: function (i) { return this.slice(i, +i + 1) }, slice: function () { return this.pushStack(Array.prototype.slice.apply(this, arguments), "slice", Array.prototype.slice.call(arguments).join(",")) }, map: function (callback) { return this.pushStack(jQuery.map(this, function (elem, i) { return callback.call(elem, i, elem) })) }, andSelf: function () { return this.add(this.prevObject) }, domManip: function (args, table, callback) { if (this[0]) { var fragment = (this[0].ownerDocument || this[0]).createDocumentFragment(), scripts = jQuery.clean(args, (this[0].ownerDocument || this[0]), fragment), first = fragment.firstChild; if (first) { for (var i = 0, l = this.length; i < l; i++) { callback.call(root(this[i], first), this.length > 1 || i > 0 ? fragment.cloneNode(true) : fragment) } } if (scripts) { jQuery.each(scripts, evalScript) } } return this; function root(elem, cur) { return table && jQuery.nodeName(elem, "table") && jQuery.nodeName(cur, "tr") ? (elem.getElementsByTagName("tbody")[0] || elem.appendChild(elem.ownerDocument.createElement("tbody"))) : elem } } }; jQuery.fn.init.prototype = jQuery.fn; function evalScript(i, elem) { if (elem.src) { jQuery.ajax({ url: elem.src, async: false, dataType: "script" }) } else { jQuery.globalEval(elem.text || elem.textContent || elem.innerHTML || "") } if (elem.parentNode) { elem.parentNode.removeChild(elem) } } function now() { return +new Date } jQuery.extend = jQuery.fn.extend = function () { var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options; if (typeof target === "boolean") { deep = target; target = arguments[1] || {}; i = 2 } if (typeof target !== "object" && !jQuery.isFunction(target)) { target = {} } if (length == i) { target = this; --i } for (; i < length; i++) { if ((options = arguments[i]) != null) { for (var name in options) { var src = target[name], copy = options[name]; if (target === copy) { continue } if (deep && copy && typeof copy === "object" && !copy.nodeType) { target[name] = jQuery.extend(deep, src || (copy.length != null ? [] : {}), copy) } else { if (copy !== undefined) { target[name] = copy } } } } } return target }; var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i, defaultView = document.defaultView || {}, toString = Object.prototype.toString; jQuery.extend({ noConflict: function (deep) { window.$ = _$; if (deep) { window.jQuery = _jQuery } return jQuery }, isFunction: function (obj) { return toString.call(obj) === "[object Function]" }, isArray: function (obj) { return toString.call(obj) === "[object Array]" }, isXMLDoc: function (elem) { return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" || !!elem.ownerDocument && jQuery.isXMLDoc(elem.ownerDocument) }, globalEval: function (data) { if (data && /\S/.test(data)) { var head = document.getElementsByTagName("head")[0] || document.documentElement, script = document.createElement("script"); script.type = "text/javascript"; if (jQuery.support.scriptEval) { script.appendChild(document.createTextNode(data)) } else { script.text = data } head.insertBefore(script, head.firstChild); head.removeChild(script) } }, nodeName: function (elem, name) { return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase() }, each: function (object, callback, args) { var name, i = 0, length = object.length; if (args) { if (length === undefined) { for (name in object) { if (callback.apply(object[name], args) === false) { break } } } else { for (; i < length; ) { if (callback.apply(object[i++], args) === false) { break } } } } else { if (length === undefined) { for (name in object) { if (callback.call(object[name], name, object[name]) === false) { break } } } else { for (var value = object[0]; i < length && callback.call(value, i, value) !== false; value = object[++i]) { } } } return object }, prop: function (elem, value, type, i, name) { if (jQuery.isFunction(value)) { value = value.call(elem, i) } return typeof value === "number" && type == "curCSS" && !exclude.test(name) ? value + "px" : value }, className: { add: function (elem, classNames) { jQuery.each((classNames || "").split(/\s+/), function (i, className) { if (elem.nodeType == 1 && !jQuery.className.has(elem.className, className)) { elem.className += (elem.className ? " " : "") + className } }) }, remove: function (elem, classNames) { if (elem.nodeType == 1) { elem.className = classNames !== undefined ? jQuery.grep(elem.className.split(/\s+/), function (className) { return !jQuery.className.has(classNames, className) }).join(" ") : "" } }, has: function (elem, className) { return elem && jQuery.inArray(className, (elem.className || elem).toString().split(/\s+/)) > -1 } }, swap: function (elem, options, callback) { var old = {}; for (var name in options) { old[name] = elem.style[name]; elem.style[name] = options[name] } callback.call(elem); for (var name in options) { elem.style[name] = old[name] } }, css: function (elem, name, force, extra) { if (name == "width" || name == "height") { var val, props = { position: "absolute", visibility: "hidden", display: "block" }, which = name == "width" ? ["Left", "Right"] : ["Top", "Bottom"]; function getWH() { val = name == "width" ? elem.offsetWidth : elem.offsetHeight; if (extra === "border") { return } jQuery.each(which, function () { if (!extra) { val -= parseFloat(jQuery.curCSS(elem, "padding" + this, true)) || 0 } if (extra === "margin") { val += parseFloat(jQuery.curCSS(elem, "margin" + this, true)) || 0 } else { val -= parseFloat(jQuery.curCSS(elem, "border" + this + "Width", true)) || 0 } }) } if (elem.offsetWidth !== 0) { getWH() } else { jQuery.swap(elem, props, getWH) } return Math.max(0, Math.round(val)) } return jQuery.curCSS(elem, name, force) }, curCSS: function (elem, name, force) { var ret, style = elem.style; if (name == "opacity" && !jQuery.support.opacity) { ret = jQuery.attr(style, "opacity"); return ret == "" ? "1" : ret } if (name.match(/float/i)) { name = styleFloat } if (!force && style && style[name]) { ret = style[name] } else { if (defaultView.getComputedStyle) { if (name.match(/float/i)) { name = "float" } name = name.replace(/([A-Z])/g, "-$1").toLowerCase(); var computedStyle = defaultView.getComputedStyle(elem, null); if (computedStyle) { ret = computedStyle.getPropertyValue(name) } if (name == "opacity" && ret == "") { ret = "1" } } else { if (elem.currentStyle) { var camelCase = name.replace(/\-(\w)/g, function (all, letter) { return letter.toUpperCase() }); ret = elem.currentStyle[name] || elem.currentStyle[camelCase]; if (!/^\d+(px)?$/i.test(ret) && /^\d/.test(ret)) { var left = style.left, rsLeft = elem.runtimeStyle.left; elem.runtimeStyle.left = elem.currentStyle.left; style.left = ret || 0; ret = style.pixelLeft + "px"; style.left = left; elem.runtimeStyle.left = rsLeft } } } } return ret }, clean: function (elems, context, fragment) { context = context || document; if (typeof context.createElement === "undefined") { context = context.ownerDocument || context[0] && context[0].ownerDocument || document } if (!fragment && elems.length === 1 && typeof elems[0] === "string") { var match = /^<(\w+)\s*\/?>$/.exec(elems[0]); if (match) { return [context.createElement(match[1])] } } var ret = [], scripts = [], div = context.createElement("div"); jQuery.each(elems, function (i, elem) { if (typeof elem === "number") { elem += "" } if (!elem) { return } if (typeof elem === "string") { elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function (all, front, tag) { return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? all : front + "></" + tag + ">" }); var tags = elem.replace(/^\s+/, "").substring(0, 10).toLowerCase(); var wrap = !tags.indexOf("<opt") && [1, "<select multiple='multiple'>", "</select>"] || !tags.indexOf("<leg") && [1, "<fieldset>", "</fieldset>"] || tags.match(/^<(thead|tbody|tfoot|colg|cap)/) && [1, "<table>", "</table>"] || !tags.indexOf("<tr") && [2, "<table><tbody>", "</tbody></table>"] || (!tags.indexOf("<td") || !tags.indexOf("<th")) && [3, "<table><tbody><tr>", "</tr></tbody></table>"] || !tags.indexOf("<col") && [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"] || !jQuery.support.htmlSerialize && [1, "div<div>", "</div>"] || [0, "", ""]; div.innerHTML = wrap[1] + elem + wrap[2]; while (wrap[0]--) { div = div.lastChild } if (!jQuery.support.tbody) { var hasBody = /<tbody/i.test(elem), tbody = !tags.indexOf("<table") && !hasBody ? div.firstChild && div.firstChild.childNodes : wrap[1] == "<table>" && !hasBody ? div.childNodes : []; for (var j = tbody.length - 1; j >= 0; --j) { if (jQuery.nodeName(tbody[j], "tbody") && !tbody[j].childNodes.length) { tbody[j].parentNode.removeChild(tbody[j]) } } } if (!jQuery.support.leadingWhitespace && /^\s/.test(elem)) { div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]), div.firstChild) } elem = jQuery.makeArray(div.childNodes) } if (elem.nodeType) { ret.push(elem) } else { ret = jQuery.merge(ret, elem) } }); if (fragment) { for (var i = 0; ret[i]; i++) { if (jQuery.nodeName(ret[i], "script") && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript")) { scripts.push(ret[i].parentNode ? ret[i].parentNode.removeChild(ret[i]) : ret[i]) } else { if (ret[i].nodeType === 1) { ret.splice.apply(ret, [i + 1, 0].concat(jQuery.makeArray(ret[i].getElementsByTagName("script")))) } fragment.appendChild(ret[i]) } } return scripts } return ret }, attr: function (elem, name, value) { if (!elem || elem.nodeType == 3 || elem.nodeType == 8) { return undefined } var notxml = !jQuery.isXMLDoc(elem), set = value !== undefined; name = notxml && jQuery.props[name] || name; if (elem.tagName) { var special = /href|src|style/.test(name); if (name == "selected" && elem.parentNode) { elem.parentNode.selectedIndex } if (name in elem && notxml && !special) { if (set) { if (name == "type" && jQuery.nodeName(elem, "input") && elem.parentNode) { throw "type property can't be changed" } elem[name] = value } if (jQuery.nodeName(elem, "form") && elem.getAttributeNode(name)) { return elem.getAttributeNode(name).nodeValue } if (name == "tabIndex") { var attributeNode = elem.getAttributeNode("tabIndex"); return attributeNode && attributeNode.specified ? attributeNode.value : elem.nodeName.match(/(button|input|object|select|textarea)/i) ? 0 : elem.nodeName.match(/^(a|area)$/i) && elem.href ? 0 : undefined } return elem[name] } if (!jQuery.support.style && notxml && name == "style") { return jQuery.attr(elem.style, "cssText", value) } if (set) { elem.setAttribute(name, "" + value) } var attr = !jQuery.support.hrefNormalized && notxml && special ? elem.getAttribute(name, 2) : elem.getAttribute(name); return attr === null ? undefined : attr } if (!jQuery.support.opacity && name == "opacity") { if (set) { elem.zoom = 1; elem.filter = (elem.filter || "").replace(/alpha\([^)]*\)/, "") + (parseInt(value) + "" == "NaN" ? "" : "alpha(opacity=" + value * 100 + ")") } return elem.filter && elem.filter.indexOf("opacity=") >= 0 ? (parseFloat(elem.filter.match(/opacity=([^)]*)/)[1]) / 100) + "" : "" } name = name.replace(/-([a-z])/ig, function (all, letter) { return letter.toUpperCase() }); if (set) { elem[name] = value } return elem[name] }, trim: function (text) { return (text || "").replace(/^\s+|\s+$/g, "") }, makeArray: function (array) { var ret = []; if (array != null) { var i = array.length; if (i == null || typeof array === "string" || jQuery.isFunction(array) || array.setInterval) { ret[0] = array } else { while (i) { ret[--i] = array[i] } } } return ret }, inArray: function (elem, array) { for (var i = 0, length = array.length; i < length; i++) { if (array[i] === elem) { return i } } return -1 }, merge: function (first, second) { var i = 0, elem, pos = first.length; if (!jQuery.support.getAll) { while ((elem = second[i++]) != null) { if (elem.nodeType != 8) { first[pos++] = elem } } } else { while ((elem = second[i++]) != null) { first[pos++] = elem } } return first }, unique: function (array) { var ret = [], done = {}; try { for (var i = 0, length = array.length; i < length; i++) { var id = jQuery.data(array[i]); if (!done[id]) { done[id] = true; ret.push(array[i]) } } } catch (e) { ret = array } return ret }, grep: function (elems, callback, inv) { var ret = []; for (var i = 0, length = elems.length; i < length; i++) { if (!inv != !callback(elems[i], i)) { ret.push(elems[i]) } } return ret }, map: function (elems, callback) { var ret = []; for (var i = 0, length = elems.length; i < length; i++) { var value = callback(elems[i], i); if (value != null) { ret[ret.length] = value } } return ret.concat.apply([], ret) } }); var userAgent = navigator.userAgent.toLowerCase(); jQuery.browser = { version: (userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/) || [0, "0"])[1], safari: /webkit/.test(userAgent), opera: /opera/.test(userAgent), msie: /msie/.test(userAgent) && !/opera/.test(userAgent), mozilla: /mozilla/.test(userAgent) && !/(compatible|webkit)/.test(userAgent) }; jQuery.each({ parent: function (elem) { return elem.parentNode }, parents: function (elem) { return jQuery.dir(elem, "parentNode") }, next: function (elem) { return jQuery.nth(elem, 2, "nextSibling") }, prev: function (elem) { return jQuery.nth(elem, 2, "previousSibling") }, nextAll: function (elem) { return jQuery.dir(elem, "nextSibling") }, prevAll: function (elem) { return jQuery.dir(elem, "previousSibling") }, siblings: function (elem) { return jQuery.sibling(elem.parentNode.firstChild, elem) }, children: function (elem) { return jQuery.sibling(elem.firstChild) }, contents: function (elem) { return jQuery.nodeName(elem, "iframe") ? elem.contentDocument || elem.contentWindow.document : jQuery.makeArray(elem.childNodes) } }, function (name, fn) { jQuery.fn[name] = function (selector) { var ret = jQuery.map(this, fn); if (selector && typeof selector == "string") { ret = jQuery.multiFilter(selector, ret) } return this.pushStack(jQuery.unique(ret), name, selector) } }); jQuery.each({ appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, function (name, original) { jQuery.fn[name] = function (selector) { var ret = [], insert = jQuery(selector); for (var i = 0, l = insert.length; i < l; i++) { var elems = (i > 0 ? this.clone(true) : this).get(); jQuery.fn[original].apply(jQuery(insert[i]), elems); ret = ret.concat(elems) } return this.pushStack(ret, name, selector) } }); jQuery.each({ removeAttr: function (name) { jQuery.attr(this, name, ""); if (this.nodeType == 1) { this.removeAttribute(name) } }, addClass: function (classNames) { jQuery.className.add(this, classNames) }, removeClass: function (classNames) { jQuery.className.remove(this, classNames) }, toggleClass: function (classNames, state) { if (typeof state !== "boolean") { state = !jQuery.className.has(this, classNames) } jQuery.className[state ? "add" : "remove"](this, classNames) }, remove: function (selector) { if (!selector || jQuery.filter(selector, [this]).length) { jQuery("*", this).add([this]).each(function () { jQuery.event.remove(this); jQuery.removeData(this) }); if (this.parentNode) { this.parentNode.removeChild(this) } } }, empty: function () { jQuery(this).children().remove(); while (this.firstChild) { this.removeChild(this.firstChild) } } }, function (name, fn) { jQuery.fn[name] = function () { return this.each(fn, arguments) } }); function num(elem, prop) { return elem[0] && parseInt(jQuery.curCSS(elem[0], prop, true), 10) || 0 } var expando = "jQuery" + now(), uuid = 0, windowData = {}; jQuery.extend({ cache: {}, data: function (elem, name, data) { elem = elem == window ? windowData : elem; var id = elem[expando]; if (!id) { id = elem[expando] = ++uuid } if (name && !jQuery.cache[id]) { jQuery.cache[id] = {} } if (data !== undefined) { jQuery.cache[id][name] = data } return name ? jQuery.cache[id][name] : id }, removeData: function (elem, name) { elem = elem == window ? windowData : elem; var id = elem[expando]; if (name) { if (jQuery.cache[id]) { delete jQuery.cache[id][name]; name = ""; for (name in jQuery.cache[id]) { break } if (!name) { jQuery.removeData(elem) } } } else { try { delete elem[expando] } catch (e) { if (elem.removeAttribute) { elem.removeAttribute(expando) } } delete jQuery.cache[id] } }, queue: function (elem, type, data) { if (elem) { type = (type || "fx") + "queue"; var q = jQuery.data(elem, type); if (!q || jQuery.isArray(data)) { q = jQuery.data(elem, type, jQuery.makeArray(data)) } else { if (data) { q.push(data) } } } return q }, dequeue: function (elem, type) { var queue = jQuery.queue(elem, type), fn = queue.shift(); if (!type || type === "fx") { fn = queue[0] } if (fn !== undefined) { fn.call(elem) } } }); jQuery.fn.extend({ data: function (key, value) { var parts = key.split("."); parts[1] = parts[1] ? "." + parts[1] : ""; if (value === undefined) { var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]); if (data === undefined && this.length) { data = jQuery.data(this[0], key) } return data === undefined && parts[1] ? this.data(parts[0]) : data } else { return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function () { jQuery.data(this, key, value) }) } }, removeData: function (key) { return this.each(function () { jQuery.removeData(this, key) }) }, queue: function (type, data) { if (typeof type !== "string") { data = type; type = "fx" } if (data === undefined) { return jQuery.queue(this[0], type) } return this.each(function () { var queue = jQuery.queue(this, type, data); if (type == "fx" && queue.length == 1) { queue[0].call(this) } }) }, dequeue: function (type) { return this.each(function () { jQuery.dequeue(this, type) }) } });
    /*
    * Sizzle CSS Selector Engine - v0.9.3
    *  Copyright 2009, The Dojo Foundation
    *  Released under the MIT, BSD, and GPL Licenses.
    *  More information: http://sizzlejs.com/
    */
    (function () { var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g, done = 0, toString = Object.prototype.toString; var Sizzle = function (selector, context, results, seed) { results = results || []; context = context || document; if (context.nodeType !== 1 && context.nodeType !== 9) { return [] } if (!selector || typeof selector !== "string") { return results } var parts = [], m, set, checkSet, check, mode, extra, prune = true; chunker.lastIndex = 0; while ((m = chunker.exec(selector)) !== null) { parts.push(m[1]); if (m[2]) { extra = RegExp.rightContext; break } } if (parts.length > 1 && origPOS.exec(selector)) { if (parts.length === 2 && Expr.relative[parts[0]]) { set = posProcess(parts[0] + parts[1], context) } else { set = Expr.relative[parts[0]] ? [context] : Sizzle(parts.shift(), context); while (parts.length) { selector = parts.shift(); if (Expr.relative[selector]) { selector += parts.shift() } set = posProcess(selector, set) } } } else { var ret = seed ? { expr: parts.pop(), set: makeArray(seed)} : Sizzle.find(parts.pop(), parts.length === 1 && context.parentNode ? context.parentNode : context, isXML(context)); set = Sizzle.filter(ret.expr, ret.set); if (parts.length > 0) { checkSet = makeArray(set) } else { prune = false } while (parts.length) { var cur = parts.pop(), pop = cur; if (!Expr.relative[cur]) { cur = "" } else { pop = parts.pop() } if (pop == null) { pop = context } Expr.relative[cur](checkSet, pop, isXML(context)) } } if (!checkSet) { checkSet = set } if (!checkSet) { throw "Syntax error, unrecognized expression: " + (cur || selector) } if (toString.call(checkSet) === "[object Array]") { if (!prune) { results.push.apply(results, checkSet) } else { if (context.nodeType === 1) { for (var i = 0; checkSet[i] != null; i++) { if (checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && contains(context, checkSet[i]))) { results.push(set[i]) } } } else { for (var i = 0; checkSet[i] != null; i++) { if (checkSet[i] && checkSet[i].nodeType === 1) { results.push(set[i]) } } } } } else { makeArray(checkSet, results) } if (extra) { Sizzle(extra, context, results, seed); if (sortOrder) { hasDuplicate = false; results.sort(sortOrder); if (hasDuplicate) { for (var i = 1; i < results.length; i++) { if (results[i] === results[i - 1]) { results.splice(i--, 1) } } } } } return results }; Sizzle.matches = function (expr, set) { return Sizzle(expr, null, null, set) }; Sizzle.find = function (expr, context, isXML) { var set, match; if (!expr) { return [] } for (var i = 0, l = Expr.order.length; i < l; i++) { var type = Expr.order[i], match; if ((match = Expr.match[type].exec(expr))) { var left = RegExp.leftContext; if (left.substr(left.length - 1) !== "\\") { match[1] = (match[1] || "").replace(/\\/g, ""); set = Expr.find[type](match, context, isXML); if (set != null) { expr = expr.replace(Expr.match[type], ""); break } } } } if (!set) { set = context.getElementsByTagName("*") } return { set: set, expr: expr} }; Sizzle.filter = function (expr, set, inplace, not) { var old = expr, result = [], curLoop = set, match, anyFound, isXMLFilter = set && set[0] && isXML(set[0]); while (expr && set.length) { for (var type in Expr.filter) { if ((match = Expr.match[type].exec(expr)) != null) { var filter = Expr.filter[type], found, item; anyFound = false; if (curLoop == result) { result = [] } if (Expr.preFilter[type]) { match = Expr.preFilter[type](match, curLoop, inplace, result, not, isXMLFilter); if (!match) { anyFound = found = true } else { if (match === true) { continue } } } if (match) { for (var i = 0; (item = curLoop[i]) != null; i++) { if (item) { found = filter(item, match, i, curLoop); var pass = not ^ !!found; if (inplace && found != null) { if (pass) { anyFound = true } else { curLoop[i] = false } } else { if (pass) { result.push(item); anyFound = true } } } } } if (found !== undefined) { if (!inplace) { curLoop = result } expr = expr.replace(Expr.match[type], ""); if (!anyFound) { return [] } break } } } if (expr == old) { if (anyFound == null) { throw "Syntax error, unrecognized expression: " + expr } else { break } } old = expr } return curLoop }; var Expr = Sizzle.selectors = { order: ["ID", "NAME", "TAG"], match: { ID: /#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/, CLASS: /\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/, NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/, ATTR: /\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/, TAG: /^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/, CHILD: /:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/, POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/, PSEUDO: /:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/ }, attrMap: { "class": "className", "for": "htmlFor" }, attrHandle: { href: function (elem) { return elem.getAttribute("href") } }, relative: { "+": function (checkSet, part, isXML) { var isPartStr = typeof part === "string", isTag = isPartStr && !/\W/.test(part), isPartStrNotTag = isPartStr && !isTag; if (isTag && !isXML) { part = part.toUpperCase() } for (var i = 0, l = checkSet.length, elem; i < l; i++) { if ((elem = checkSet[i])) { while ((elem = elem.previousSibling) && elem.nodeType !== 1) { } checkSet[i] = isPartStrNotTag || elem && elem.nodeName === part ? elem || false : elem === part } } if (isPartStrNotTag) { Sizzle.filter(part, checkSet, true) } }, ">": function (checkSet, part, isXML) { var isPartStr = typeof part === "string"; if (isPartStr && !/\W/.test(part)) { part = isXML ? part : part.toUpperCase(); for (var i = 0, l = checkSet.length; i < l; i++) { var elem = checkSet[i]; if (elem) { var parent = elem.parentNode; checkSet[i] = parent.nodeName === part ? parent : false } } } else { for (var i = 0, l = checkSet.length; i < l; i++) { var elem = checkSet[i]; if (elem) { checkSet[i] = isPartStr ? elem.parentNode : elem.parentNode === part } } if (isPartStr) { Sizzle.filter(part, checkSet, true) } } }, "": function (checkSet, part, isXML) { var doneName = done++, checkFn = dirCheck; if (!part.match(/\W/)) { var nodeCheck = part = isXML ? part : part.toUpperCase(); checkFn = dirNodeCheck } checkFn("parentNode", part, doneName, checkSet, nodeCheck, isXML) }, "~": function (checkSet, part, isXML) { var doneName = done++, checkFn = dirCheck; if (typeof part === "string" && !part.match(/\W/)) { var nodeCheck = part = isXML ? part : part.toUpperCase(); checkFn = dirNodeCheck } checkFn("previousSibling", part, doneName, checkSet, nodeCheck, isXML) } }, find: { ID: function (match, context, isXML) { if (typeof context.getElementById !== "undefined" && !isXML) { var m = context.getElementById(match[1]); return m ? [m] : [] } }, NAME: function (match, context, isXML) { if (typeof context.getElementsByName !== "undefined") { var ret = [], results = context.getElementsByName(match[1]); for (var i = 0, l = results.length; i < l; i++) { if (results[i].getAttribute("name") === match[1]) { ret.push(results[i]) } } return ret.length === 0 ? null : ret } }, TAG: function (match, context) { return context.getElementsByTagName(match[1]) } }, preFilter: { CLASS: function (match, curLoop, inplace, result, not, isXML) { match = " " + match[1].replace(/\\/g, "") + " "; if (isXML) { return match } for (var i = 0, elem; (elem = curLoop[i]) != null; i++) { if (elem) { if (not ^ (elem.className && (" " + elem.className + " ").indexOf(match) >= 0)) { if (!inplace) { result.push(elem) } } else { if (inplace) { curLoop[i] = false } } } } return false }, ID: function (match) { return match[1].replace(/\\/g, "") }, TAG: function (match, curLoop) { for (var i = 0; curLoop[i] === false; i++) { } return curLoop[i] && isXML(curLoop[i]) ? match[1] : match[1].toUpperCase() }, CHILD: function (match) { if (match[1] == "nth") { var test = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(match[2] == "even" && "2n" || match[2] == "odd" && "2n+1" || !/\D/.test(match[2]) && "0n+" + match[2] || match[2]); match[2] = (test[1] + (test[2] || 1)) - 0; match[3] = test[3] - 0 } match[0] = done++; return match }, ATTR: function (match, curLoop, inplace, result, not, isXML) { var name = match[1].replace(/\\/g, ""); if (!isXML && Expr.attrMap[name]) { match[1] = Expr.attrMap[name] } if (match[2] === "~=") { match[4] = " " + match[4] + " " } return match }, PSEUDO: function (match, curLoop, inplace, result, not) { if (match[1] === "not") { if (match[3].match(chunker).length > 1 || /^\w/.test(match[3])) { match[3] = Sizzle(match[3], null, null, curLoop) } else { var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not); if (!inplace) { result.push.apply(result, ret) } return false } } else { if (Expr.match.POS.test(match[0]) || Expr.match.CHILD.test(match[0])) { return true } } return match }, POS: function (match) { match.unshift(true); return match } }, filters: { enabled: function (elem) { return elem.disabled === false && elem.type !== "hidden" }, disabled: function (elem) { return elem.disabled === true }, checked: function (elem) { return elem.checked === true }, selected: function (elem) { elem.parentNode.selectedIndex; return elem.selected === true }, parent: function (elem) { return !!elem.firstChild }, empty: function (elem) { return !elem.firstChild }, has: function (elem, i, match) { return !!Sizzle(match[3], elem).length }, header: function (elem) { return /h\d/i.test(elem.nodeName) }, text: function (elem) { return "text" === elem.type }, radio: function (elem) { return "radio" === elem.type }, checkbox: function (elem) { return "checkbox" === elem.type }, file: function (elem) { return "file" === elem.type }, password: function (elem) { return "password" === elem.type }, submit: function (elem) { return "submit" === elem.type }, image: function (elem) { return "image" === elem.type }, reset: function (elem) { return "reset" === elem.type }, button: function (elem) { return "button" === elem.type || elem.nodeName.toUpperCase() === "BUTTON" }, input: function (elem) { return /input|select|textarea|button/i.test(elem.nodeName) } }, setFilters: { first: function (elem, i) { return i === 0 }, last: function (elem, i, match, array) { return i === array.length - 1 }, even: function (elem, i) { return i % 2 === 0 }, odd: function (elem, i) { return i % 2 === 1 }, lt: function (elem, i, match) { return i < match[3] - 0 }, gt: function (elem, i, match) { return i > match[3] - 0 }, nth: function (elem, i, match) { return match[3] - 0 == i }, eq: function (elem, i, match) { return match[3] - 0 == i } }, filter: { PSEUDO: function (elem, match, i, array) { var name = match[1], filter = Expr.filters[name]; if (filter) { return filter(elem, i, match, array) } else { if (name === "contains") { return (elem.textContent || elem.innerText || "").indexOf(match[3]) >= 0 } else { if (name === "not") { var not = match[3]; for (var i = 0, l = not.length; i < l; i++) { if (not[i] === elem) { return false } } return true } } } }, CHILD: function (elem, match) { var type = match[1], node = elem; switch (type) { case "only": case "first": while (node = node.previousSibling) { if (node.nodeType === 1) { return false } } if (type == "first") { return true } node = elem; case "last": while (node = node.nextSibling) { if (node.nodeType === 1) { return false } } return true; case "nth": var first = match[2], last = match[3]; if (first == 1 && last == 0) { return true } var doneName = match[0], parent = elem.parentNode; if (parent && (parent.sizcache !== doneName || !elem.nodeIndex)) { var count = 0; for (node = parent.firstChild; node; node = node.nextSibling) { if (node.nodeType === 1) { node.nodeIndex = ++count } } parent.sizcache = doneName } var diff = elem.nodeIndex - last; if (first == 0) { return diff == 0 } else { return (diff % first == 0 && diff / first >= 0) } } }, ID: function (elem, match) { return elem.nodeType === 1 && elem.getAttribute("id") === match }, TAG: function (elem, match) { return (match === "*" && elem.nodeType === 1) || elem.nodeName === match }, CLASS: function (elem, match) { return (" " + (elem.className || elem.getAttribute("class")) + " ").indexOf(match) > -1 }, ATTR: function (elem, match) { var name = match[1], result = Expr.attrHandle[name] ? Expr.attrHandle[name](elem) : elem[name] != null ? elem[name] : elem.getAttribute(name), value = result + "", type = match[2], check = match[4]; return result == null ? type === "!=" : type === "=" ? value === check : type === "*=" ? value.indexOf(check) >= 0 : type === "~=" ? (" " + value + " ").indexOf(check) >= 0 : !check ? value && result !== false : type === "!=" ? value != check : type === "^=" ? value.indexOf(check) === 0 : type === "$=" ? value.substr(value.length - check.length) === check : type === "|=" ? value === check || value.substr(0, check.length + 1) === check + "-" : false }, POS: function (elem, match, i, array) { var name = match[2], filter = Expr.setFilters[name]; if (filter) { return filter(elem, i, match, array) } } } }; var origPOS = Expr.match.POS; for (var type in Expr.match) { Expr.match[type] = RegExp(Expr.match[type].source + /(?![^\[]*\])(?![^\(]*\))/.source) } var makeArray = function (array, results) { array = Array.prototype.slice.call(array); if (results) { results.push.apply(results, array); return results } return array }; try { Array.prototype.slice.call(document.documentElement.childNodes) } catch (e) { makeArray = function (array, results) { var ret = results || []; if (toString.call(array) === "[object Array]") { Array.prototype.push.apply(ret, array) } else { if (typeof array.length === "number") { for (var i = 0, l = array.length; i < l; i++) { ret.push(array[i]) } } else { for (var i = 0; array[i]; i++) { ret.push(array[i]) } } } return ret } } var sortOrder; if (document.documentElement.compareDocumentPosition) { sortOrder = function (a, b) { var ret = a.compareDocumentPosition(b) & 4 ? -1 : a === b ? 0 : 1; if (ret === 0) { hasDuplicate = true } return ret } } else { if ("sourceIndex" in document.documentElement) { sortOrder = function (a, b) { var ret = a.sourceIndex - b.sourceIndex; if (ret === 0) { hasDuplicate = true } return ret } } else { if (document.createRange) { sortOrder = function (a, b) { var aRange = a.ownerDocument.createRange(), bRange = b.ownerDocument.createRange(); aRange.selectNode(a); aRange.collapse(true); bRange.selectNode(b); bRange.collapse(true); var ret = aRange.compareBoundaryPoints(Range.START_TO_END, bRange); if (ret === 0) { hasDuplicate = true } return ret } } } } (function () { var form = document.createElement("form"), id = "script" + (new Date).getTime(); form.innerHTML = "<input name='" + id + "'/>"; var root = document.documentElement; root.insertBefore(form, root.firstChild); if (!!document.getElementById(id)) { Expr.find.ID = function (match, context, isXML) { if (typeof context.getElementById !== "undefined" && !isXML) { var m = context.getElementById(match[1]); return m ? m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ? [m] : undefined : [] } }; Expr.filter.ID = function (elem, match) { var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id"); return elem.nodeType === 1 && node && node.nodeValue === match } } root.removeChild(form) })(); (function () { var div = document.createElement("div"); div.appendChild(document.createComment("")); if (div.getElementsByTagName("*").length > 0) { Expr.find.TAG = function (match, context) { var results = context.getElementsByTagName(match[1]); if (match[1] === "*") { var tmp = []; for (var i = 0; results[i]; i++) { if (results[i].nodeType === 1) { tmp.push(results[i]) } } results = tmp } return results } } div.innerHTML = "<a href='#'></a>"; if (div.firstChild && typeof div.firstChild.getAttribute !== "undefined" && div.firstChild.getAttribute("href") !== "#") { Expr.attrHandle.href = function (elem) { return elem.getAttribute("href", 2) } } })(); if (document.querySelectorAll) { (function () { var oldSizzle = Sizzle, div = document.createElement("div"); div.innerHTML = "<p class='TEST'></p>"; if (div.querySelectorAll && div.querySelectorAll(".TEST").length === 0) { return } Sizzle = function (query, context, extra, seed) { context = context || document; if (!seed && context.nodeType === 9 && !isXML(context)) { try { return makeArray(context.querySelectorAll(query), extra) } catch (e) { } } return oldSizzle(query, context, extra, seed) }; Sizzle.find = oldSizzle.find; Sizzle.filter = oldSizzle.filter; Sizzle.selectors = oldSizzle.selectors; Sizzle.matches = oldSizzle.matches })() } if (document.getElementsByClassName && document.documentElement.getElementsByClassName) { (function () { var div = document.createElement("div"); div.innerHTML = "<div class='test e'></div><div class='test'></div>"; if (div.getElementsByClassName("e").length === 0) { return } div.lastChild.className = "e"; if (div.getElementsByClassName("e").length === 1) { return } Expr.order.splice(1, 0, "CLASS"); Expr.find.CLASS = function (match, context, isXML) { if (typeof context.getElementsByClassName !== "undefined" && !isXML) { return context.getElementsByClassName(match[1]) } } })() } function dirNodeCheck(dir, cur, doneName, checkSet, nodeCheck, isXML) { var sibDir = dir == "previousSibling" && !isXML; for (var i = 0, l = checkSet.length; i < l; i++) { var elem = checkSet[i]; if (elem) { if (sibDir && elem.nodeType === 1) { elem.sizcache = doneName; elem.sizset = i } elem = elem[dir]; var match = false; while (elem) { if (elem.sizcache === doneName) { match = checkSet[elem.sizset]; break } if (elem.nodeType === 1 && !isXML) { elem.sizcache = doneName; elem.sizset = i } if (elem.nodeName === cur) { match = elem; break } elem = elem[dir] } checkSet[i] = match } } } function dirCheck(dir, cur, doneName, checkSet, nodeCheck, isXML) { var sibDir = dir == "previousSibling" && !isXML; for (var i = 0, l = checkSet.length; i < l; i++) { var elem = checkSet[i]; if (elem) { if (sibDir && elem.nodeType === 1) { elem.sizcache = doneName; elem.sizset = i } elem = elem[dir]; var match = false; while (elem) { if (elem.sizcache === doneName) { match = checkSet[elem.sizset]; break } if (elem.nodeType === 1) { if (!isXML) { elem.sizcache = doneName; elem.sizset = i } if (typeof cur !== "string") { if (elem === cur) { match = true; break } } else { if (Sizzle.filter(cur, [elem]).length > 0) { match = elem; break } } } elem = elem[dir] } checkSet[i] = match } } } var contains = document.compareDocumentPosition ? function (a, b) { return a.compareDocumentPosition(b) & 16 } : function (a, b) { return a !== b && (a.contains ? a.contains(b) : true) }; var isXML = function (elem) { return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" || !!elem.ownerDocument && isXML(elem.ownerDocument) }; var posProcess = function (selector, context) { var tmpSet = [], later = "", match, root = context.nodeType ? [context] : context; while ((match = Expr.match.PSEUDO.exec(selector))) { later += match[0]; selector = selector.replace(Expr.match.PSEUDO, "") } selector = Expr.relative[selector] ? selector + "*" : selector; for (var i = 0, l = root.length; i < l; i++) { Sizzle(selector, root[i], tmpSet) } return Sizzle.filter(later, tmpSet) }; jQuery.find = Sizzle; jQuery.filter = Sizzle.filter; jQuery.expr = Sizzle.selectors; jQuery.expr[":"] = jQuery.expr.filters; Sizzle.selectors.filters.hidden = function (elem) { return elem.offsetWidth === 0 || elem.offsetHeight === 0 }; Sizzle.selectors.filters.visible = function (elem) { return elem.offsetWidth > 0 || elem.offsetHeight > 0 }; Sizzle.selectors.filters.animated = function (elem) { return jQuery.grep(jQuery.timers, function (fn) { return elem === fn.elem }).length }; jQuery.multiFilter = function (expr, elems, not) { if (not) { expr = ":not(" + expr + ")" } return Sizzle.matches(expr, elems) }; jQuery.dir = function (elem, dir) { var matched = [], cur = elem[dir]; while (cur && cur != document) { if (cur.nodeType == 1) { matched.push(cur) } cur = cur[dir] } return matched }; jQuery.nth = function (cur, result, dir, elem) { result = result || 1; var num = 0; for (; cur; cur = cur[dir]) { if (cur.nodeType == 1 && ++num == result) { break } } return cur }; jQuery.sibling = function (n, elem) { var r = []; for (; n; n = n.nextSibling) { if (n.nodeType == 1 && n != elem) { r.push(n) } } return r }; return; window.Sizzle = Sizzle })(); jQuery.event = { add: function (elem, types, handler, data) { if (elem.nodeType == 3 || elem.nodeType == 8) { return } if (elem.setInterval && elem != window) { elem = window } if (!handler.guid) { handler.guid = this.guid++ } if (data !== undefined) { var fn = handler; handler = this.proxy(fn); handler.data = data } var events = jQuery.data(elem, "events") || jQuery.data(elem, "events", {}), handle = jQuery.data(elem, "handle") || jQuery.data(elem, "handle", function () { return typeof jQuery !== "undefined" && !jQuery.event.triggered ? jQuery.event.handle.apply(arguments.callee.elem, arguments) : undefined }); handle.elem = elem; jQuery.each(types.split(/\s+/), function (index, type) { var namespaces = type.split("."); type = namespaces.shift(); handler.type = namespaces.slice().sort().join("."); var handlers = events[type]; if (jQuery.event.specialAll[type]) { jQuery.event.specialAll[type].setup.call(elem, data, namespaces) } if (!handlers) { handlers = events[type] = {}; if (!jQuery.event.special[type] || jQuery.event.special[type].setup.call(elem, data, namespaces) === false) { if (elem.addEventListener) { elem.addEventListener(type, handle, false) } else { if (elem.attachEvent) { elem.attachEvent("on" + type, handle) } } } } handlers[handler.guid] = handler; jQuery.event.global[type] = true }); elem = null }, guid: 1, global: {}, remove: function (elem, types, handler) { if (elem.nodeType == 3 || elem.nodeType == 8) { return } var events = jQuery.data(elem, "events"), ret, index; if (events) { if (types === undefined || (typeof types === "string" && types.charAt(0) == ".")) { for (var type in events) { this.remove(elem, type + (types || "")) } } else { if (types.type) { handler = types.handler; types = types.type } jQuery.each(types.split(/\s+/), function (index, type) { var namespaces = type.split("."); type = namespaces.shift(); var namespace = RegExp("(^|\\.)" + namespaces.slice().sort().join(".*\\.") + "(\\.|$)"); if (events[type]) { if (handler) { delete events[type][handler.guid] } else { for (var handle in events[type]) { if (namespace.test(events[type][handle].type)) { delete events[type][handle] } } } if (jQuery.event.specialAll[type]) { jQuery.event.specialAll[type].teardown.call(elem, namespaces) } for (ret in events[type]) { break } if (!ret) { if (!jQuery.event.special[type] || jQuery.event.special[type].teardown.call(elem, namespaces) === false) { if (elem.removeEventListener) { elem.removeEventListener(type, jQuery.data(elem, "handle"), false) } else { if (elem.detachEvent) { elem.detachEvent("on" + type, jQuery.data(elem, "handle")) } } } ret = null; delete events[type] } } }) } for (ret in events) { break } if (!ret) { var handle = jQuery.data(elem, "handle"); if (handle) { handle.elem = null } jQuery.removeData(elem, "events"); jQuery.removeData(elem, "handle") } } }, trigger: function (event, data, elem, bubbling) { var type = event.type || event; if (!bubbling) { event = typeof event === "object" ? event[expando] ? event : jQuery.extend(jQuery.Event(type), event) : jQuery.Event(type); if (type.indexOf("!") >= 0) { event.type = type = type.slice(0, -1); event.exclusive = true } if (!elem) { event.stopPropagation(); if (this.global[type]) { jQuery.each(jQuery.cache, function () { if (this.events && this.events[type]) { jQuery.event.trigger(event, data, this.handle.elem) } }) } } if (!elem || elem.nodeType == 3 || elem.nodeType == 8) { return undefined } event.result = undefined; event.target = elem; data = jQuery.makeArray(data); data.unshift(event) } event.currentTarget = elem; var handle = jQuery.data(elem, "handle"); if (handle) { handle.apply(elem, data) } if ((!elem[type] || (jQuery.nodeName(elem, "a") && type == "click")) && elem["on" + type] && elem["on" + type].apply(elem, data) === false) { event.result = false } if (!bubbling && elem[type] && !event.isDefaultPrevented() && !(jQuery.nodeName(elem, "a") && type == "click")) { this.triggered = true; try { elem[type]() } catch (e) { } } this.triggered = false; if (!event.isPropagationStopped()) { var parent = elem.parentNode || elem.ownerDocument; if (parent) { jQuery.event.trigger(event, data, parent, true) } } }, handle: function (event) { var all, handlers; event = arguments[0] = jQuery.event.fix(event || window.event); event.currentTarget = this; var namespaces = event.type.split("."); event.type = namespaces.shift(); all = !namespaces.length && !event.exclusive; var namespace = RegExp("(^|\\.)" + namespaces.slice().sort().join(".*\\.") + "(\\.|$)"); handlers = (jQuery.data(this, "events") || {})[event.type]; for (var j in handlers) { var handler = handlers[j]; if (all || namespace.test(handler.type)) { event.handler = handler; event.data = handler.data; var ret = handler.apply(this, arguments); if (ret !== undefined) { event.result = ret; if (ret === false) { event.preventDefault(); event.stopPropagation() } } if (event.isImmediatePropagationStopped()) { break } } } }, props: "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "), fix: function (event) { if (event[expando]) { return event } var originalEvent = event; event = jQuery.Event(originalEvent); for (var i = this.props.length, prop; i; ) { prop = this.props[--i]; event[prop] = originalEvent[prop] } if (!event.target) { event.target = event.srcElement || document } if (event.target.nodeType == 3) { event.target = event.target.parentNode } if (!event.relatedTarget && event.fromElement) { event.relatedTarget = event.fromElement == event.target ? event.toElement : event.fromElement } if (event.pageX == null && event.clientX != null) { var doc = document.documentElement, body = document.body; event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc.clientLeft || 0); event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc.clientTop || 0) } if (!event.which && ((event.charCode || event.charCode === 0) ? event.charCode : event.keyCode)) { event.which = event.charCode || event.keyCode } if (!event.metaKey && event.ctrlKey) { event.metaKey = event.ctrlKey } if (!event.which && event.button) { event.which = (event.button & 1 ? 1 : (event.button & 2 ? 3 : (event.button & 4 ? 2 : 0))) } return event }, proxy: function (fn, proxy) { proxy = proxy || function () { return fn.apply(this, arguments) }; proxy.guid = fn.guid = fn.guid || proxy.guid || this.guid++; return proxy }, special: { ready: { setup: bindReady, teardown: function () { } } }, specialAll: { live: { setup: function (selector, namespaces) { jQuery.event.add(this, namespaces[0], liveHandler) }, teardown: function (namespaces) { if (namespaces.length) { var remove = 0, name = RegExp("(^|\\.)" + namespaces[0] + "(\\.|$)"); jQuery.each((jQuery.data(this, "events").live || {}), function () { if (name.test(this.type)) { remove++ } }); if (remove < 1) { jQuery.event.remove(this, namespaces[0], liveHandler) } } } }} }; jQuery.Event = function (src) { if (!this.preventDefault) { return new jQuery.Event(src) } if (src && src.type) { this.originalEvent = src; this.type = src.type } else { this.type = src } this.timeStamp = now(); this[expando] = true }; function returnFalse() { return false } function returnTrue() { return true } jQuery.Event.prototype = { preventDefault: function () { this.isDefaultPrevented = returnTrue; var e = this.originalEvent; if (!e) { return } if (e.preventDefault) { e.preventDefault() } e.returnValue = false }, stopPropagation: function () { this.isPropagationStopped = returnTrue; var e = this.originalEvent; if (!e) { return } if (e.stopPropagation) { e.stopPropagation() } e.cancelBubble = true }, stopImmediatePropagation: function () { this.isImmediatePropagationStopped = returnTrue; this.stopPropagation() }, isDefaultPrevented: returnFalse, isPropagationStopped: returnFalse, isImmediatePropagationStopped: returnFalse }; var withinElement = function (event) { var parent = event.relatedTarget; while (parent && parent != this) { try { parent = parent.parentNode } catch (e) { parent = this } } if (parent != this) { event.type = event.data; jQuery.event.handle.apply(this, arguments) } }; jQuery.each({ mouseover: "mouseenter", mouseout: "mouseleave" }, function (orig, fix) { jQuery.event.special[fix] = { setup: function () { jQuery.event.add(this, orig, withinElement, fix) }, teardown: function () { jQuery.event.remove(this, orig, withinElement) } } }); jQuery.fn.extend({ bind: function (type, data, fn) { return type == "unload" ? this.one(type, data, fn) : this.each(function () { jQuery.event.add(this, type, fn || data, fn && data) }) }, one: function (type, data, fn) { var one = jQuery.event.proxy(fn || data, function (event) { jQuery(this).unbind(event, one); return (fn || data).apply(this, arguments) }); return this.each(function () { jQuery.event.add(this, type, one, fn && data) }) }, unbind: function (type, fn) { return this.each(function () { jQuery.event.remove(this, type, fn) }) }, trigger: function (type, data) { return this.each(function () { jQuery.event.trigger(type, data, this) }) }, triggerHandler: function (type, data) { if (this[0]) { var event = jQuery.Event(type); event.preventDefault(); event.stopPropagation(); jQuery.event.trigger(event, data, this[0]); return event.result } }, toggle: function (fn) { var args = arguments, i = 1; while (i < args.length) { jQuery.event.proxy(fn, args[i++]) } return this.click(jQuery.event.proxy(fn, function (event) { this.lastToggle = (this.lastToggle || 0) % i; event.preventDefault(); return args[this.lastToggle++].apply(this, arguments) || false })) }, hover: function (fnOver, fnOut) { return this.mouseenter(fnOver).mouseleave(fnOut) }, ready: function (fn) { bindReady(); if (jQuery.isReady) { fn.call(document, jQuery) } else { jQuery.readyList.push(fn) } return this }, live: function (type, fn) { var proxy = jQuery.event.proxy(fn); proxy.guid += this.selector + type; jQuery(document).bind(liveConvert(type, this.selector), this.selector, proxy); return this }, die: function (type, fn) { jQuery(document).unbind(liveConvert(type, this.selector), fn ? { guid: fn.guid + this.selector + type} : null); return this } }); function liveHandler(event) { var check = RegExp("(^|\\.)" + event.type + "(\\.|$)"), stop = true, elems = []; jQuery.each(jQuery.data(this, "events").live || [], function (i, fn) { if (check.test(fn.type)) { var elem = jQuery(event.target).closest(fn.data)[0]; if (elem) { elems.push({ elem: elem, fn: fn }) } } }); elems.sort(function (a, b) { return jQuery.data(a.elem, "closest") - jQuery.data(b.elem, "closest") }); jQuery.each(elems, function () { if (this.fn.call(this.elem, event, this.fn.data) === false) { return (stop = false) } }); return stop } function liveConvert(type, selector) { return ["live", type, selector.replace(/\./g, "`").replace(/ /g, "|")].join(".") } jQuery.extend({ isReady: false, readyList: [], ready: function () { if (!jQuery.isReady) { jQuery.isReady = true; if (jQuery.readyList) { jQuery.each(jQuery.readyList, function () { this.call(document, jQuery) }); jQuery.readyList = null } jQuery(document).triggerHandler("ready") } } }); var readyBound = false; function bindReady() { if (readyBound) { return } readyBound = true; if (document.addEventListener) { document.addEventListener("DOMContentLoaded", function () { document.removeEventListener("DOMContentLoaded", arguments.callee, false); jQuery.ready() }, false) } else { if (document.attachEvent) { document.attachEvent("onreadystatechange", function () { if (document.readyState === "complete") { document.detachEvent("onreadystatechange", arguments.callee); jQuery.ready() } }); if (document.documentElement.doScroll && window == window.top) { (function () { if (jQuery.isReady) { return } try { document.documentElement.doScroll("left") } catch (error) { setTimeout(arguments.callee, 0); return } jQuery.ready() })() } } } jQuery.event.add(window, "load", jQuery.ready) } jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","), function (i, name) { jQuery.fn[name] = function (fn) { return fn ? this.bind(name, fn) : this.trigger(name) } }); jQuery(window).bind("unload", function () { for (var id in jQuery.cache) { if (id != 1 && jQuery.cache[id].handle) { jQuery.event.remove(jQuery.cache[id].handle.elem) } } }); (function () { jQuery.support = {}; var root = document.documentElement, script = document.createElement("script"), div = document.createElement("div"), id = "script" + (new Date).getTime(); div.style.display = "none"; div.innerHTML = '   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>'; var all = div.getElementsByTagName("*"), a = div.getElementsByTagName("a")[0]; if (!all || !all.length || !a) { return } jQuery.support = { leadingWhitespace: div.firstChild.nodeType == 3, tbody: !div.getElementsByTagName("tbody").length, objectAll: !!div.getElementsByTagName("object")[0].getElementsByTagName("*").length, htmlSerialize: !!div.getElementsByTagName("link").length, style: /red/.test(a.getAttribute("style")), hrefNormalized: a.getAttribute("href") === "/a", opacity: a.style.opacity === "0.5", cssFloat: !!a.style.cssFloat, scriptEval: false, noCloneEvent: true, boxModel: null }; script.type = "text/javascript"; try { script.appendChild(document.createTextNode("window." + id + "=1;")) } catch (e) { } root.insertBefore(script, root.firstChild); if (window[id]) { jQuery.support.scriptEval = true; delete window[id] } root.removeChild(script); if (div.attachEvent && div.fireEvent) { div.attachEvent("onclick", function () { jQuery.support.noCloneEvent = false; div.detachEvent("onclick", arguments.callee) }); div.cloneNode(true).fireEvent("onclick") } jQuery(function () { var div = document.createElement("div"); div.style.width = div.style.paddingLeft = "1px"; document.body.appendChild(div); jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2; document.body.removeChild(div).style.display = "none" }) })(); var styleFloat = jQuery.support.cssFloat ? "cssFloat" : "styleFloat"; jQuery.props = { "for": "htmlFor", "class": "className", "float": styleFloat, cssFloat: styleFloat, styleFloat: styleFloat, readonly: "readOnly", maxlength: "maxLength", cellspacing: "cellSpacing", rowspan: "rowSpan", tabindex: "tabIndex" }; jQuery.fn.extend({ _load: jQuery.fn.load, load: function (url, params, callback) { if (typeof url !== "string") { return this._load(url) } var off = url.indexOf(" "); if (off >= 0) { var selector = url.slice(off, url.length); url = url.slice(0, off) } var type = "GET"; if (params) { if (jQuery.isFunction(params)) { callback = params; params = null } else { if (typeof params === "object") { params = jQuery.param(params); type = "POST" } } } var self = this; jQuery.ajax({ url: url, type: type, dataType: "html", data: params, complete: function (res, status) { if (status == "success" || status == "notmodified") { self.html(selector ? jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g, "")).find(selector) : res.responseText) } if (callback) { self.each(callback, [res.responseText, status, res]) } } }); return this }, serialize: function () { return jQuery.param(this.serializeArray()) }, serializeArray: function () { return this.map(function () { return this.elements ? jQuery.makeArray(this.elements) : this }).filter(function () { return this.name && !this.disabled && (this.checked || /select|textarea/i.test(this.nodeName) || /text|hidden|password|search/i.test(this.type)) }).map(function (i, elem) { var val = jQuery(this).val(); return val == null ? null : jQuery.isArray(val) ? jQuery.map(val, function (val, i) { return { name: elem.name, value: val} }) : { name: elem.name, value: val} }).get() } }); jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","), function (i, o) { jQuery.fn[o] = function (f) { return this.bind(o, f) } }); var jsc = now(); jQuery.extend({ get: function (url, data, callback, type) { if (jQuery.isFunction(data)) { callback = data; data = null } return jQuery.ajax({ type: "GET", url: url, data: data, success: callback, dataType: type }) }, getScript: function (url, callback) { return jQuery.get(url, null, callback, "script") }, getJSON: function (url, data, callback) { return jQuery.get(url, data, callback, "json") }, post: function (url, data, callback, type) { if (jQuery.isFunction(data)) { callback = data; data = {} } return jQuery.ajax({ type: "POST", url: url, data: data, success: callback, dataType: type }) }, ajaxSetup: function (settings) { jQuery.extend(jQuery.ajaxSettings, settings) }, ajaxSettings: { url: location.href, global: true, type: "GET", contentType: "application/x-www-form-urlencoded", processData: true, async: true, xhr: function () { return window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest() }, accepts: { xml: "application/xml, text/xml", html: "text/html", script: "text/javascript, application/javascript", json: "application/json, text/javascript", text: "text/plain", _default: "*/*"} }, lastModified: {}, ajax: function (s) { s = jQuery.extend(true, s, jQuery.extend(true, {}, jQuery.ajaxSettings, s)); var jsonp, jsre = /=\?(&|$)/g, status, data, type = s.type.toUpperCase(); if (s.data && s.processData && typeof s.data !== "string") { s.data = jQuery.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))) { jsonp = "jsonp" + jsc++; if (s.data) { s.data = (s.data + "").replace(jsre, "=" + jsonp + "$1") } s.url = s.url.replace(jsre, "=" + jsonp + "$1"); s.dataType = "script"; window[jsonp] = function (tmp) { data = tmp; success(); complete(); window[jsonp] = undefined; try { delete window[jsonp] } catch (e) { } if (head) { head.removeChild(script) } } } if (s.dataType == "script" && s.cache == null) { s.cache = false } if (s.cache === false && type == "GET") { var ts = now(); var ret = s.url.replace(/(\?|&)_=.*?(&|$)/, "$1_=" + ts + "$2"); s.url = ret + ((ret == s.url) ? (s.url.match(/\?/) ? "&" : "?") + "_=" + ts : "") } if (s.data && type == "GET") { s.url += (s.url.match(/\?/) ? "&" : "?") + s.data; s.data = null } if (s.global && !jQuery.active++) { jQuery.event.trigger("ajaxStart") } var parts = /^(\w+:)?\/\/([^\/?#]+)/.exec(s.url); if (s.dataType == "script" && type == "GET" && parts && (parts[1] && parts[1] != location.protocol || parts[2] != location.host)) { var head = document.getElementsByTagName("head")[0]; var script = document.createElement("script"); script.src = s.url; if (s.scriptCharset) { script.charset = s.scriptCharset } if (!jsonp) { var done = false; script.onload = script.onreadystatechange = function () { if (!done && (!this.readyState || this.readyState == "loaded" || this.readyState == "complete")) { done = true; success(); complete(); script.onload = script.onreadystatechange = null; head.removeChild(script) } } } head.appendChild(script); return undefined } var requestDone = false; var xhr = s.xhr(); if (s.username) { xhr.open(type, s.url, s.async, s.username, s.password) } else { xhr.open(type, s.url, s.async) } try { if (s.data) { xhr.setRequestHeader("Content-Type", s.contentType) } if (s.ifModified) { xhr.setRequestHeader("If-Modified-Since", jQuery.lastModified[s.url] || "Thu, 01 Jan 1970 00:00:00 GMT") } xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest"); xhr.setRequestHeader("Accept", s.dataType && s.accepts[s.dataType] ? s.accepts[s.dataType] + ", */*" : s.accepts._default) } catch (e) { } if (s.beforeSend && s.beforeSend(xhr, s) === false) { if (s.global && ! --jQuery.active) { jQuery.event.trigger("ajaxStop") } xhr.abort(); return false } if (s.global) { jQuery.event.trigger("ajaxSend", [xhr, s]) } var onreadystatechange = function (isTimeout) { if (xhr.readyState == 0) { if (ival) { clearInterval(ival); ival = null; if (s.global && ! --jQuery.active) { jQuery.event.trigger("ajaxStop") } } } else { if (!requestDone && xhr && (xhr.readyState == 4 || isTimeout == "timeout")) { requestDone = true; if (ival) { clearInterval(ival); ival = null } status = isTimeout == "timeout" ? "timeout" : !jQuery.httpSuccess(xhr) ? "error" : s.ifModified && jQuery.httpNotModified(xhr, s.url) ? "notmodified" : "success"; if (status == "success") { try { data = jQuery.httpData(xhr, s.dataType, s) } catch (e) { status = "parsererror" } } if (status == "success") { var modRes; try { modRes = xhr.getResponseHeader("Last-Modified") } catch (e) { } if (s.ifModified && modRes) { jQuery.lastModified[s.url] = modRes } if (!jsonp) { success() } } else { jQuery.handleError(s, xhr, status) } complete(); if (isTimeout) { xhr.abort() } if (s.async) { xhr = null } } } }; if (s.async) { var ival = setInterval(onreadystatechange, 13); if (s.timeout > 0) { setTimeout(function () { if (xhr && !requestDone) { onreadystatechange("timeout") } }, s.timeout) } } try { xhr.send(s.data) } catch (e) { jQuery.handleError(s, xhr, null, e) } if (!s.async) { onreadystatechange() } function success() { if (s.success) { s.success(data, status) } if (s.global) { jQuery.event.trigger("ajaxSuccess", [xhr, s]) } } function complete() { if (s.complete) { s.complete(xhr, status) } if (s.global) { jQuery.event.trigger("ajaxComplete", [xhr, s]) } if (s.global && ! --jQuery.active) { jQuery.event.trigger("ajaxStop") } } return xhr }, handleError: function (s, xhr, status, e) { if (s.error) { s.error(xhr, status, e) } if (s.global) { jQuery.event.trigger("ajaxError", [xhr, s, e]) } }, active: 0, httpSuccess: function (xhr) { try { return !xhr.status && location.protocol == "file:" || (xhr.status >= 200 && xhr.status < 300) || xhr.status == 304 || xhr.status == 1223 } catch (e) { } return false }, httpNotModified: function (xhr, url) { try { var xhrRes = xhr.getResponseHeader("Last-Modified"); return xhr.status == 304 || xhrRes == jQuery.lastModified[url] } catch (e) { } return false }, httpData: function (xhr, type, s) { var ct = xhr.getResponseHeader("content-type"), xml = type == "xml" || !type && ct && ct.indexOf("xml") >= 0, data = xml ? xhr.responseXML : xhr.responseText; if (xml && data.documentElement.tagName == "parsererror") { throw "parsererror" } if (s && s.dataFilter) { data = s.dataFilter(data, type) } if (typeof data === "string") { if (type == "script") { jQuery.globalEval(data) } if (type == "json") { data = window["eval"]("(" + data + ")") } } return data }, param: function (a) { var s = []; function add(key, value) { s[s.length] = encodeURIComponent(key) + "=" + encodeURIComponent(value) } if (jQuery.isArray(a) || a.jquery) { jQuery.each(a, function () { add(this.name, this.value) }) } else { for (var j in a) { if (jQuery.isArray(a[j])) { jQuery.each(a[j], function () { add(j, this) }) } else { add(j, jQuery.isFunction(a[j]) ? a[j]() : a[j]) } } } return s.join("&").replace(/%20/g, "+") } }); var elemdisplay = {}, timerId, fxAttrs = [["height", "marginTop", "marginBottom", "paddingTop", "paddingBottom"], ["width", "marginLeft", "marginRight", "paddingLeft", "paddingRight"], ["opacity"]]; function genFx(type, num) { var obj = {}; jQuery.each(fxAttrs.concat.apply([], fxAttrs.slice(0, num)), function () { obj[this] = type }); return obj } jQuery.fn.extend({ show: function (speed, callback) { if (speed) { return this.animate(genFx("show", 3), speed, callback) } else { for (var i = 0, l = this.length; i < l; i++) { var old = jQuery.data(this[i], "olddisplay"); this[i].style.display = old || ""; if (jQuery.css(this[i], "display") === "none") { var tagName = this[i].tagName, display; if (elemdisplay[tagName]) { display = elemdisplay[tagName] } else { var elem = jQuery("<" + tagName + " />").appendTo("body"); display = elem.css("display"); if (display === "none") { display = "block" } elem.remove(); elemdisplay[tagName] = display } jQuery.data(this[i], "olddisplay", display) } } for (var i = 0, l = this.length; i < l; i++) { this[i].style.display = jQuery.data(this[i], "olddisplay") || "" } return this } }, hide: function (speed, callback) { if (speed) { return this.animate(genFx("hide", 3), speed, callback) } else { for (var i = 0, l = this.length; i < l; i++) { var old = jQuery.data(this[i], "olddisplay"); if (!old && old !== "none") { jQuery.data(this[i], "olddisplay", jQuery.css(this[i], "display")) } } for (var i = 0, l = this.length; i < l; i++) { this[i].style.display = "none" } return this } }, _toggle: jQuery.fn.toggle, toggle: function (fn, fn2) { var bool = typeof fn === "boolean"; return jQuery.isFunction(fn) && jQuery.isFunction(fn2) ? this._toggle.apply(this, arguments) : fn == null || bool ? this.each(function () { var state = bool ? fn : jQuery(this).is(":hidden"); jQuery(this)[state ? "show" : "hide"]() }) : this.animate(genFx("toggle", 3), fn, fn2) }, fadeTo: function (speed, to, callback) { return this.animate({ opacity: to }, speed, callback) }, animate: function (prop, speed, easing, callback) { var optall = jQuery.speed(speed, easing, callback); return this[optall.queue === false ? "each" : "queue"](function () { var opt = jQuery.extend({}, optall), p, hidden = this.nodeType == 1 && jQuery(this).is(":hidden"), self = this; for (p in prop) { if (prop[p] == "hide" && hidden || prop[p] == "show" && !hidden) { return opt.complete.call(this) } if ((p == "height" || p == "width") && this.style) { opt.display = jQuery.css(this, "display"); opt.overflow = this.style.overflow } } if (opt.overflow != null) { this.style.overflow = "hidden" } opt.curAnim = jQuery.extend({}, prop); jQuery.each(prop, function (name, val) { var e = new jQuery.fx(self, opt, name); if (/toggle|show|hide/.test(val)) { e[val == "toggle" ? hidden ? "show" : "hide" : val](prop) } else { var parts = val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/), start = e.cur(true) || 0; if (parts) { var end = parseFloat(parts[2]), unit = parts[3] || "px"; if (unit != "px") { self.style[name] = (end || 1) + unit; start = ((end || 1) / e.cur(true)) * start; self.style[name] = start + unit } if (parts[1]) { end = ((parts[1] == "-=" ? -1 : 1) * end) + start } e.custom(start, end, unit) } else { e.custom(start, val, "") } } }); return true }) }, stop: function (clearQueue, gotoEnd) { var timers = jQuery.timers; if (clearQueue) { this.queue([]) } this.each(function () { for (var i = timers.length - 1; i >= 0; i--) { if (timers[i].elem == this) { if (gotoEnd) { timers[i](true) } timers.splice(i, 1) } } }); if (!gotoEnd) { this.dequeue() } return this } }); jQuery.each({ slideDown: genFx("show", 1), slideUp: genFx("hide", 1), slideToggle: genFx("toggle", 1), fadeIn: { opacity: "show" }, fadeOut: { opacity: "hide"} }, function (name, props) { jQuery.fn[name] = function (speed, callback) { return this.animate(props, speed, callback) } }); jQuery.extend({ speed: function (speed, easing, fn) { var opt = typeof speed === "object" ? speed : { complete: fn || !fn && easing || jQuery.isFunction(speed) && speed, duration: speed, easing: fn && easing || easing && !jQuery.isFunction(easing) && easing }; opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration : jQuery.fx.speeds[opt.duration] || jQuery.fx.speeds._default; opt.old = opt.complete; opt.complete = function () { if (opt.queue !== false) { jQuery(this).dequeue() } if (jQuery.isFunction(opt.old)) { opt.old.call(this) } }; return opt }, easing: { linear: function (p, n, firstNum, diff) { return firstNum + diff * p }, swing: function (p, n, firstNum, diff) { return ((-Math.cos(p * Math.PI) / 2) + 0.5) * diff + firstNum } }, timers: [], fx: function (elem, options, prop) { this.options = options; this.elem = elem; this.prop = prop; if (!options.orig) { options.orig = {} } } }); jQuery.fx.prototype = { update: function () { if (this.options.step) { this.options.step.call(this.elem, this.now, this) } (jQuery.fx.step[this.prop] || jQuery.fx.step._default)(this); if ((this.prop == "height" || this.prop == "width") && this.elem.style) { this.elem.style.display = "block" } }, cur: function (force) { if (this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null)) { return this.elem[this.prop] } var r = parseFloat(jQuery.css(this.elem, this.prop, force)); return r && r > -10000 ? r : parseFloat(jQuery.curCSS(this.elem, this.prop)) || 0 }, custom: function (from, to, unit) { this.startTime = now(); this.start = from; this.end = to; this.unit = unit || this.unit || "px"; this.now = this.start; this.pos = this.state = 0; var self = this; function t(gotoEnd) { return self.step(gotoEnd) } t.elem = this.elem; if (t() && jQuery.timers.push(t) && !timerId) { timerId = setInterval(function () { var timers = jQuery.timers; for (var i = 0; i < timers.length; i++) { if (!timers[i]()) { timers.splice(i--, 1) } } if (!timers.length) { clearInterval(timerId); timerId = undefined } }, 13) } }, show: function () { this.options.orig[this.prop] = jQuery.attr(this.elem.style, this.prop); this.options.show = true; this.custom(this.prop == "width" || this.prop == "height" ? 1 : 0, this.cur()); jQuery(this.elem).show() }, hide: function () { this.options.orig[this.prop] = jQuery.attr(this.elem.style, this.prop); this.options.hide = true; this.custom(this.cur(), 0) }, step: function (gotoEnd) { var t = now(); if (gotoEnd || t >= this.options.duration + this.startTime) { this.now = this.end; this.pos = this.state = 1; this.update(); this.options.curAnim[this.prop] = true; var done = true; for (var i in this.options.curAnim) { if (this.options.curAnim[i] !== true) { done = false } } if (done) { if (this.options.display != null) { this.elem.style.overflow = this.options.overflow; this.elem.style.display = this.options.display; if (jQuery.css(this.elem, "display") == "none") { this.elem.style.display = "block" } } if (this.options.hide) { jQuery(this.elem).hide() } if (this.options.hide || this.options.show) { for (var p in this.options.curAnim) { jQuery.attr(this.elem.style, p, this.options.orig[p]) } } this.options.complete.call(this.elem) } return false } else { var n = t - this.startTime; this.state = n / this.options.duration; this.pos = jQuery.easing[this.options.easing || (jQuery.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 } }; jQuery.extend(jQuery.fx, { speeds: { slow: 600, fast: 200, _default: 400 }, step: { opacity: function (fx) { jQuery.attr(fx.elem.style, "opacity", fx.now) }, _default: function (fx) { if (fx.elem.style && fx.elem.style[fx.prop] != null) { fx.elem.style[fx.prop] = fx.now + fx.unit } else { fx.elem[fx.prop] = fx.now } } } }); if (document.documentElement.getBoundingClientRect) { jQuery.fn.offset = function () { if (!this[0]) { return { top: 0, left: 0} } if (this[0] === this[0].ownerDocument.body) { return jQuery.offset.bodyOffset(this[0]) } var box = this[0].getBoundingClientRect(), doc = this[0].ownerDocument, body = doc.body, docElem = doc.documentElement, clientTop = docElem.clientTop || body.clientTop || 0, clientLeft = docElem.clientLeft || body.clientLeft || 0, top = box.top + (self.pageYOffset || jQuery.boxModel && docElem.scrollTop || body.scrollTop) - clientTop, left = box.left + (self.pageXOffset || jQuery.boxModel && docElem.scrollLeft || body.scrollLeft) - clientLeft; return { top: top, left: left} } } else { jQuery.fn.offset = function () { if (!this[0]) { return { top: 0, left: 0} } if (this[0] === this[0].ownerDocument.body) { return jQuery.offset.bodyOffset(this[0]) } jQuery.offset.initialized || jQuery.offset.initialize(); var elem = this[0], offsetParent = elem.offsetParent, prevOffsetParent = elem, doc = elem.ownerDocument, computedStyle, docElem = doc.documentElement, body = doc.body, defaultView = doc.defaultView, prevComputedStyle = defaultView.getComputedStyle(elem, null), top = elem.offsetTop, left = elem.offsetLeft; while ((elem = elem.parentNode) && elem !== body && elem !== docElem) { computedStyle = defaultView.getComputedStyle(elem, null); top -= elem.scrollTop, left -= elem.scrollLeft; if (elem === offsetParent) { top += elem.offsetTop, left += elem.offsetLeft; if (jQuery.offset.doesNotAddBorder && !(jQuery.offset.doesAddBorderForTableAndCells && /^t(able|d|h)$/i.test(elem.tagName))) { top += parseInt(computedStyle.borderTopWidth, 10) || 0, left += parseInt(computedStyle.borderLeftWidth, 10) || 0 } prevOffsetParent = offsetParent, offsetParent = elem.offsetParent } if (jQuery.offset.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible") { top += parseInt(computedStyle.borderTopWidth, 10) || 0, left += parseInt(computedStyle.borderLeftWidth, 10) || 0 } prevComputedStyle = computedStyle } if (prevComputedStyle.position === "relative" || prevComputedStyle.position === "static") { top += body.offsetTop, left += body.offsetLeft } if (prevComputedStyle.position === "fixed") { top += Math.max(docElem.scrollTop, body.scrollTop), left += Math.max(docElem.scrollLeft, body.scrollLeft) } return { top: top, left: left} } } jQuery.offset = { initialize: function () { if (this.initialized) { return } var body = document.body, container = document.createElement("div"), innerDiv, checkDiv, table, td, rules, prop, bodyMarginTop = body.style.marginTop, html = '<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>'; rules = { position: "absolute", top: 0, left: 0, margin: 0, border: 0, width: "1px", height: "1px", visibility: "hidden" }; for (prop in rules) { container.style[prop] = rules[prop] } container.innerHTML = html; body.insertBefore(container, body.firstChild); innerDiv = container.firstChild, checkDiv = innerDiv.firstChild, td = innerDiv.nextSibling.firstChild.firstChild; this.doesNotAddBorder = (checkDiv.offsetTop !== 5); this.doesAddBorderForTableAndCells = (td.offsetTop === 5); innerDiv.style.overflow = "hidden", innerDiv.style.position = "relative"; this.subtractsBorderForOverflowNotVisible = (checkDiv.offsetTop === -5); body.style.marginTop = "1px"; this.doesNotIncludeMarginInBodyOffset = (body.offsetTop === 0); body.style.marginTop = bodyMarginTop; body.removeChild(container); this.initialized = true }, bodyOffset: function (body) { jQuery.offset.initialized || jQuery.offset.initialize(); var top = body.offsetTop, left = body.offsetLeft; if (jQuery.offset.doesNotIncludeMarginInBodyOffset) { top += parseInt(jQuery.curCSS(body, "marginTop", true), 10) || 0, left += parseInt(jQuery.curCSS(body, "marginLeft", true), 10) || 0 } return { top: top, left: left} } }; jQuery.fn.extend({ position: function () { var left = 0, top = 0, results; if (this[0]) { var offsetParent = this.offsetParent(), offset = this.offset(), parentOffset = /^body|html$/i.test(offsetParent[0].tagName) ? { top: 0, left: 0} : offsetParent.offset(); offset.top -= num(this, "marginTop"); offset.left -= num(this, "marginLeft"); parentOffset.top += num(offsetParent, "borderTopWidth"); parentOffset.left += num(offsetParent, "borderLeftWidth"); results = { top: offset.top - parentOffset.top, left: offset.left - parentOffset.left} } return results }, offsetParent: function () { var offsetParent = this[0].offsetParent || document.body; while (offsetParent && (!/^body|html$/i.test(offsetParent.tagName) && jQuery.css(offsetParent, "position") == "static")) { offsetParent = offsetParent.offsetParent } return jQuery(offsetParent) } }); jQuery.each(["Left", "Top"], function (i, name) { var method = "scroll" + name; jQuery.fn[method] = function (val) { if (!this[0]) { return null } return val !== undefined ? this.each(function () { this == window || this == document ? window.scrollTo(!i ? val : jQuery(window).scrollLeft(), i ? val : jQuery(window).scrollTop()) : this[method] = val }) : this[0] == window || this[0] == document ? self[i ? "pageYOffset" : "pageXOffset"] || jQuery.boxModel && document.documentElement[method] || document.body[method] : this[0][method] } }); jQuery.each(["Height", "Width"], function (i, name) { var tl = i ? "Left" : "Top", br = i ? "Right" : "Bottom", lower = name.toLowerCase(); jQuery.fn["inner" + name] = function () { return this[0] ? jQuery.css(this[0], lower, false, "padding") : null }; jQuery.fn["outer" + name] = function (margin) { return this[0] ? jQuery.css(this[0], lower, false, margin ? "margin" : "border") : null }; var type = name.toLowerCase(); jQuery.fn[type] = function (size) { return this[0] == window ? document.compatMode == "CSS1Compat" && document.documentElement["client" + name] || document.body["client" + name] : this[0] == document ? Math.max(document.documentElement["client" + name], document.body["scroll" + name], document.documentElement["scroll" + name], document.body["offset" + name], document.documentElement["offset" + name]) : size === undefined ? (this.length ? jQuery.css(this[0], type) : null) : this.css(type, typeof size === "string" ? size : size + "px") } })
})();

if (typeof YAHOO == "undefined" || !YAHOO) { var YAHOO = {} } YAHOO.namespace = function () { var A = arguments, E = null, C, B, D; for (C = 0; C < A.length; C = C + 1) { D = A[C].split("."); E = YAHOO; for (B = (D[0] == "YAHOO") ? 1 : 0; B < D.length; B = B + 1) { E[D[B]] = E[D[B]] || {}; E = E[D[B]] } } return E }; YAHOO.log = function (D, A, C) { var B = YAHOO.widget.Logger; if (B && B.log) { return B.log(D, A, C) } else { return false } }; YAHOO.register = function (A, E, D) { var I = YAHOO.env.modules; if (!I[A]) { I[A] = { versions: [], builds: []} } var B = I[A], H = D.version, G = D.build, F = YAHOO.env.listeners; B.name = A; B.version = H; B.build = G; B.versions.push(H); B.builds.push(G); B.mainClass = E; for (var C = 0; C < F.length; C = C + 1) { F[C](B) } if (E) { E.VERSION = H; E.BUILD = G } else { YAHOO.log("mainClass is undefined for module " + A, "warn") } }; YAHOO.env = YAHOO.env || { modules: [], listeners: [] }; YAHOO.env.getVersion = function (A) { return YAHOO.env.modules[A] || null }; YAHOO.env.ua = function () { var C = { ie: 0, opera: 0, gecko: 0, webkit: 0, mobile: null, air: 0 }; var B = navigator.userAgent, A; if ((/KHTML/).test(B)) { C.webkit = 1 } A = B.match(/AppleWebKit\/([^\s]*)/); if (A && A[1]) { C.webkit = parseFloat(A[1]); if (/ Mobile\//.test(B)) { C.mobile = "Apple" } else { A = B.match(/NokiaN[^\/]*/); if (A) { C.mobile = A[0] } } A = B.match(/AdobeAIR\/([^\s]*)/); if (A) { C.air = A[0] } } if (!C.webkit) { A = B.match(/Opera[\s\/]([^\s]*)/); if (A && A[1]) { C.opera = parseFloat(A[1]); A = B.match(/Opera Mini[^;]*/); if (A) { C.mobile = A[0] } } else { A = B.match(/MSIE\s([^;]*)/); if (A && A[1]) { C.ie = parseFloat(A[1]) } else { A = B.match(/Gecko\/([^\s]*)/); if (A) { C.gecko = 1; A = B.match(/rv:([^\s\)]*)/); if (A && A[1]) { C.gecko = parseFloat(A[1]) } } } } } return C } ();

(function () { YAHOO.namespace("util", "widget", "example"); if ("undefined" !== typeof YAHOO_config) { var B = YAHOO_config.listener, A = YAHOO.env.listeners, D = true, C; if (B) { for (C = 0; C < A.length; C = C + 1) { if (A[C] == B) { D = false; break } } if (D) { A.push(B) } } } })(); YAHOO.lang = YAHOO.lang || {}; (function () { var A = YAHOO.lang, C = ["toString", "valueOf"], B = { isArray: function (D) { if (D) { return A.isNumber(D.length) && A.isFunction(D.splice) } return false }, isBoolean: function (D) { return typeof D === "boolean" }, isFunction: function (D) { return typeof D === "function" }, isNull: function (D) { return D === null }, isNumber: function (D) { return typeof D === "number" && isFinite(D) }, isObject: function (D) { return (D && (typeof D === "object" || A.isFunction(D))) || false }, isString: function (D) { return typeof D === "string" }, isUndefined: function (D) { return typeof D === "undefined" }, _IEEnumFix: (YAHOO.env.ua.ie) ? function (F, E) { for (var D = 0; D < C.length; D = D + 1) { var H = C[D], G = E[H]; if (A.isFunction(G) && G != Object.prototype[H]) { F[H] = G } } } : function () { }, extend: function (H, I, G) { if (!I || !H) { throw new Error("extend failed, please check that all dependencies are included.") } var E = function () { }; E.prototype = I.prototype; H.prototype = new E(); H.prototype.constructor = H; H.superclass = I.prototype; if (I.prototype.constructor == Object.prototype.constructor) { I.prototype.constructor = I } if (G) { for (var D in G) { if (A.hasOwnProperty(G, D)) { H.prototype[D] = G[D] } } A._IEEnumFix(H.prototype, G) } }, augmentObject: function (H, G) { if (!G || !H) { throw new Error("Absorb failed, verify dependencies.") } var D = arguments, F, I, E = D[2]; if (E && E !== true) { for (F = 2; F < D.length; F = F + 1) { H[D[F]] = G[D[F]] } } else { for (I in G) { if (E || !(I in H)) { H[I] = G[I] } } A._IEEnumFix(H, G) } }, augmentProto: function (G, F) { if (!F || !G) { throw new Error("Augment failed, verify dependencies.") } var D = [G.prototype, F.prototype]; for (var E = 2; E < arguments.length; E = E + 1) { D.push(arguments[E]) } A.augmentObject.apply(this, D) }, dump: function (D, I) { var F, H, K = [], L = "{...}", E = "f(){...}", J = ", ", G = " => "; if (!A.isObject(D)) { return D + "" } else { if (D instanceof Date || ("nodeType" in D && "tagName" in D)) { return D } else { if (A.isFunction(D)) { return E } } } I = (A.isNumber(I)) ? I : 3; if (A.isArray(D)) { K.push("["); for (F = 0, H = D.length; F < H; F = F + 1) { if (A.isObject(D[F])) { K.push((I > 0) ? A.dump(D[F], I - 1) : L) } else { K.push(D[F]) } K.push(J) } if (K.length > 1) { K.pop() } K.push("]") } else { K.push("{"); for (F in D) { if (A.hasOwnProperty(D, F)) { K.push(F + G); if (A.isObject(D[F])) { K.push((I > 0) ? A.dump(D[F], I - 1) : L) } else { K.push(D[F]) } K.push(J) } } if (K.length > 1) { K.pop() } K.push("}") } return K.join("") }, substitute: function (S, E, L) { var I, H, G, O, P, R, N = [], F, J = "dump", M = " ", D = "{", Q = "}"; for (; ; ) { I = S.lastIndexOf(D); if (I < 0) { break } H = S.indexOf(Q, I); if (I + 1 >= H) { break } F = S.substring(I + 1, H); O = F; R = null; G = O.indexOf(M); if (G > -1) { R = O.substring(G + 1); O = O.substring(0, G) } P = E[O]; if (L) { P = L(O, P, R) } if (A.isObject(P)) { if (A.isArray(P)) { P = A.dump(P, parseInt(R, 10)) } else { R = R || ""; var K = R.indexOf(J); if (K > -1) { R = R.substring(4) } if (P.toString === Object.prototype.toString || K > -1) { P = A.dump(P, parseInt(R, 10)) } else { P = P.toString() } } } else { if (!A.isString(P) && !A.isNumber(P)) { P = "~-" + N.length + "-~"; N[N.length] = F } } S = S.substring(0, I) + P + S.substring(H + 1) } for (I = N.length - 1; I >= 0; I = I - 1) { S = S.replace(new RegExp("~-" + I + "-~"), "{" + N[I] + "}", "g") } return S }, trim: function (D) { try { return D.replace(/^\s+|\s+$/g, "") } catch (E) { return D } }, merge: function () { var G = {}, E = arguments; for (var F = 0, D = E.length; F < D; F = F + 1) { A.augmentObject(G, E[F], true) } return G }, later: function (K, E, L, G, H) { K = K || 0; E = E || {}; var F = L, J = G, I, D; if (A.isString(L)) { F = E[L] } if (!F) { throw new TypeError("method undefined") } if (!A.isArray(J)) { J = [G] } I = function () { F.apply(E, J) }; D = (H) ? setInterval(I, K) : setTimeout(I, K); return { interval: H, cancel: function () { if (this.interval) { clearInterval(D) } else { clearTimeout(D) } } } }, isValue: function (D) { return (A.isObject(D) || A.isString(D) || A.isNumber(D) || A.isBoolean(D)) } }; A.hasOwnProperty = (Object.prototype.hasOwnProperty) ? function (D, E) { return D && D.hasOwnProperty(E) } : function (D, E) { return !A.isUndefined(D[E]) && D.constructor.prototype[E] !== D[E] }; B.augmentObject(A, B, true); YAHOO.util.Lang = A; A.augment = A.augmentProto; YAHOO.augment = A.augmentProto; YAHOO.extend = A.extend })(); YAHOO.register("yahoo", YAHOO, { version: "2.5.2", build: "1076" }); (function () { var B = YAHOO.util, K, I, J = {}, F = {}, M = window.document; YAHOO.env._id_counter = YAHOO.env._id_counter || 0; var C = YAHOO.env.ua.opera, L = YAHOO.env.ua.webkit, A = YAHOO.env.ua.gecko, G = YAHOO.env.ua.ie; var E = { HYPHEN: /(-[a-z])/i, ROOT_TAG: /^body|html$/i, OP_SCROLL: /^(?:inline|table-row)$/i }; var N = function (P) { if (!E.HYPHEN.test(P)) { return P } if (J[P]) { return J[P] } var Q = P; while (E.HYPHEN.exec(Q)) { Q = Q.replace(RegExp.$1, RegExp.$1.substr(1).toUpperCase()) } J[P] = Q; return Q }; var O = function (Q) { var P = F[Q]; if (!P) { P = new RegExp("(?:^|\\s+)" + Q + "(?:\\s+|$)"); F[Q] = P } return P }; if (M.defaultView && M.defaultView.getComputedStyle) { K = function (P, S) { var R = null; if (S == "float") { S = "cssFloat" } var Q = P.ownerDocument.defaultView.getComputedStyle(P, ""); if (Q) { R = Q[N(S)] } return P.style[S] || R } } else { if (M.documentElement.currentStyle && G) { K = function (P, R) { switch (N(R)) { case "opacity": var T = 100; try { T = P.filters["DXImageTransform.Microsoft.Alpha"].opacity } catch (S) { try { T = P.filters("alpha").opacity } catch (S) { } } return T / 100; case "float": R = "styleFloat"; default: var Q = P.currentStyle ? P.currentStyle[R] : null; return (P.style[R] || Q) } } } else { K = function (P, Q) { return P.style[Q] } } } if (G) { I = function (P, Q, R) { switch (Q) { case "opacity": if (YAHOO.lang.isString(P.style.filter)) { P.style.filter = "alpha(opacity=" + R * 100 + ")"; if (!P.currentStyle || !P.currentStyle.hasLayout) { P.style.zoom = 1 } } break; case "float": Q = "styleFloat"; default: P.style[Q] = R } } } else { I = function (P, Q, R) { if (Q == "float") { Q = "cssFloat" } P.style[Q] = R } } var D = function (P, Q) { return P && P.nodeType == 1 && (!Q || Q(P)) }; YAHOO.util.Dom = { get: function (R) { if (R && (R.nodeType || R.item)) { return R } if (YAHOO.lang.isString(R) || !R) { return M.getElementById(R) } if (R.length !== undefined) { var S = []; for (var Q = 0, P = R.length; Q < P; ++Q) { S[S.length] = B.Dom.get(R[Q]) } return S } return R }, getStyle: function (P, R) { R = N(R); var Q = function (S) { return K(S, R) }; return B.Dom.batch(P, Q, B.Dom, true) }, setStyle: function (P, R, S) { R = N(R); var Q = function (T) { I(T, R, S) }; B.Dom.batch(P, Q, B.Dom, true) }, getXY: function (P) { var Q = function (R) { if ((R.parentNode === null || R.offsetParent === null || this.getStyle(R, "display") == "none") && R != R.ownerDocument.body) { return false } return H(R) }; return B.Dom.batch(P, Q, B.Dom, true) }, getX: function (P) { var Q = function (R) { return B.Dom.getXY(R)[0] }; return B.Dom.batch(P, Q, B.Dom, true) }, getY: function (P) { var Q = function (R) { return B.Dom.getXY(R)[1] }; return B.Dom.batch(P, Q, B.Dom, true) }, setXY: function (P, S, R) { var Q = function (V) { var U = this.getStyle(V, "position"); if (U == "static") { this.setStyle(V, "position", "relative"); U = "relative" } var X = this.getXY(V); if (X === false) { return false } var W = [parseInt(this.getStyle(V, "left"), 10), parseInt(this.getStyle(V, "top"), 10)]; if (isNaN(W[0])) { W[0] = (U == "relative") ? 0 : V.offsetLeft } if (isNaN(W[1])) { W[1] = (U == "relative") ? 0 : V.offsetTop } if (S[0] !== null) { V.style.left = S[0] - X[0] + W[0] + "px" } if (S[1] !== null) { V.style.top = S[1] - X[1] + W[1] + "px" } if (!R) { var T = this.getXY(V); if ((S[0] !== null && T[0] != S[0]) || (S[1] !== null && T[1] != S[1])) { this.setXY(V, S, true) } } }; B.Dom.batch(P, Q, B.Dom, true) }, setX: function (Q, P) { B.Dom.setXY(Q, [P, null]) }, setY: function (P, Q) { B.Dom.setXY(P, [null, Q]) }, getRegion: function (P) { var Q = function (R) { if ((R.parentNode === null || R.offsetParent === null || this.getStyle(R, "display") == "none") && R != R.ownerDocument.body) { return false } var S = B.Region.getRegion(R); return S }; return B.Dom.batch(P, Q, B.Dom, true) }, getClientWidth: function () { return B.Dom.getViewportWidth() }, getClientHeight: function () { return B.Dom.getViewportHeight() }, getElementsByClassName: function (T, X, U, V) { X = X || "*"; U = (U) ? B.Dom.get(U) : null || M; if (!U) { return [] } var Q = [], P = U.getElementsByTagName(X), W = O(T); for (var R = 0, S = P.length; R < S; ++R) { if (W.test(P[R].className)) { Q[Q.length] = P[R]; if (V) { V.call(P[R], P[R]) } } } return Q }, hasClass: function (R, Q) { var P = O(Q); var S = function (T) { return P.test(T.className) }; return B.Dom.batch(R, S, B.Dom, true) }, addClass: function (Q, P) { var R = function (S) { if (this.hasClass(S, P)) { return false } S.className = YAHOO.lang.trim([S.className, P].join(" ")); return true }; return B.Dom.batch(Q, R, B.Dom, true) }, removeClass: function (R, Q) { var P = O(Q); var S = function (T) { if (!Q || !this.hasClass(T, Q)) { return false } var U = T.className; T.className = U.replace(P, " "); if (this.hasClass(T, Q)) { this.removeClass(T, Q) } T.className = YAHOO.lang.trim(T.className); return true }; return B.Dom.batch(R, S, B.Dom, true) }, replaceClass: function (S, Q, P) { if (!P || Q === P) { return false } var R = O(Q); var T = function (U) { if (!this.hasClass(U, Q)) { this.addClass(U, P); return true } U.className = U.className.replace(R, " " + P + " "); if (this.hasClass(U, Q)) { this.replaceClass(U, Q, P) } U.className = YAHOO.lang.trim(U.className); return true }; return B.Dom.batch(S, T, B.Dom, true) }, generateId: function (P, R) { R = R || "yui-gen"; var Q = function (S) { if (S && S.id) { return S.id } var T = R + YAHOO.env._id_counter++; if (S) { S.id = T } return T }; return B.Dom.batch(P, Q, B.Dom, true) || Q.apply(B.Dom, arguments) }, isAncestor: function (P, Q) { P = B.Dom.get(P); Q = B.Dom.get(Q); if (!P || !Q) { return false } if (P.contains && Q.nodeType && !L) { return P.contains(Q) } else { if (P.compareDocumentPosition && Q.nodeType) { return !!(P.compareDocumentPosition(Q) & 16) } else { if (Q.nodeType) { return !!this.getAncestorBy(Q, function (R) { return R == P }) } } } return false }, inDocument: function (P) { return this.isAncestor(M.documentElement, P) }, getElementsBy: function (W, Q, R, T) { Q = Q || "*"; R = (R) ? B.Dom.get(R) : null || M; if (!R) { return [] } var S = [], V = R.getElementsByTagName(Q); for (var U = 0, P = V.length; U < P; ++U) { if (W(V[U])) { S[S.length] = V[U]; if (T) { T(V[U]) } } } return S }, batch: function (T, W, V, R) { T = (T && (T.tagName || T.item)) ? T : B.Dom.get(T); if (!T || !W) { return false } var S = (R) ? V : window; if (T.tagName || T.length === undefined) { return W.call(S, T, V) } var U = []; for (var Q = 0, P = T.length; Q < P; ++Q) { U[U.length] = W.call(S, T[Q], V) } return U }, getDocumentHeight: function () { var Q = (M.compatMode != "CSS1Compat") ? M.body.scrollHeight : M.documentElement.scrollHeight; var P = Math.max(Q, B.Dom.getViewportHeight()); return P }, getDocumentWidth: function () { var Q = (M.compatMode != "CSS1Compat") ? M.body.scrollWidth : M.documentElement.scrollWidth; var P = Math.max(Q, B.Dom.getViewportWidth()); return P }, getViewportHeight: function () { var P = self.innerHeight; var Q = M.compatMode; if ((Q || G) && !C) { P = (Q == "CSS1Compat") ? M.documentElement.clientHeight : M.body.clientHeight } return P }, getViewportWidth: function () { var P = self.innerWidth; var Q = M.compatMode; if (Q || G) { P = (Q == "CSS1Compat") ? M.documentElement.clientWidth : M.body.clientWidth } return P }, getAncestorBy: function (P, Q) { while (P = P.parentNode) { if (D(P, Q)) { return P } } return null }, getAncestorByClassName: function (Q, P) { Q = B.Dom.get(Q); if (!Q) { return null } var R = function (S) { return B.Dom.hasClass(S, P) }; return B.Dom.getAncestorBy(Q, R) }, getAncestorByTagName: function (Q, P) { Q = B.Dom.get(Q); if (!Q) { return null } var R = function (S) { return S.tagName && S.tagName.toUpperCase() == P.toUpperCase() }; return B.Dom.getAncestorBy(Q, R) }, getPreviousSiblingBy: function (P, Q) { while (P) { P = P.previousSibling; if (D(P, Q)) { return P } } return null }, getPreviousSibling: function (P) { P = B.Dom.get(P); if (!P) { return null } return B.Dom.getPreviousSiblingBy(P) }, getNextSiblingBy: function (P, Q) { while (P) { P = P.nextSibling; if (D(P, Q)) { return P } } return null }, getNextSibling: function (P) { P = B.Dom.get(P); if (!P) { return null } return B.Dom.getNextSiblingBy(P) }, getFirstChildBy: function (P, R) { var Q = (D(P.firstChild, R)) ? P.firstChild : null; return Q || B.Dom.getNextSiblingBy(P.firstChild, R) }, getFirstChild: function (P, Q) { P = B.Dom.get(P); if (!P) { return null } return B.Dom.getFirstChildBy(P) }, getLastChildBy: function (P, R) { if (!P) { return null } var Q = (D(P.lastChild, R)) ? P.lastChild : null; return Q || B.Dom.getPreviousSiblingBy(P.lastChild, R) }, getLastChild: function (P) { P = B.Dom.get(P); return B.Dom.getLastChildBy(P) }, getChildrenBy: function (Q, S) { var R = B.Dom.getFirstChildBy(Q, S); var P = R ? [R] : []; B.Dom.getNextSiblingBy(R, function (T) { if (!S || S(T)) { P[P.length] = T } return false }); return P }, getChildren: function (P) { P = B.Dom.get(P); if (!P) { } return B.Dom.getChildrenBy(P) }, getDocumentScrollLeft: function (P) { P = P || M; return Math.max(P.documentElement.scrollLeft, P.body.scrollLeft) }, getDocumentScrollTop: function (P) { P = P || M; return Math.max(P.documentElement.scrollTop, P.body.scrollTop) }, insertBefore: function (Q, P) { Q = B.Dom.get(Q); P = B.Dom.get(P); if (!Q || !P || !P.parentNode) { return null } return P.parentNode.insertBefore(Q, P) }, insertAfter: function (Q, P) { Q = B.Dom.get(Q); P = B.Dom.get(P); if (!Q || !P || !P.parentNode) { return null } if (P.nextSibling) { return P.parentNode.insertBefore(Q, P.nextSibling) } else { return P.parentNode.appendChild(Q) } }, getClientRegion: function () { var R = B.Dom.getDocumentScrollTop(), Q = B.Dom.getDocumentScrollLeft(), S = B.Dom.getViewportWidth() + Q, P = B.Dom.getViewportHeight() + R; return new B.Region(R, S, P, Q) } }; var H = function () { if (M.documentElement.getBoundingClientRect) { return function (Q) { var R = Q.getBoundingClientRect(); var P = Q.ownerDocument; return [R.left + B.Dom.getDocumentScrollLeft(P), R.top + B.Dom.getDocumentScrollTop(P)] } } else { return function (R) { var S = [R.offsetLeft, R.offsetTop]; var Q = R.offsetParent; var P = (L && B.Dom.getStyle(R, "position") == "absolute" && R.offsetParent == R.ownerDocument.body); if (Q != R) { while (Q) { S[0] += Q.offsetLeft; S[1] += Q.offsetTop; if (!P && L && B.Dom.getStyle(Q, "position") == "absolute") { P = true } Q = Q.offsetParent } } if (P) { S[0] -= R.ownerDocument.body.offsetLeft; S[1] -= R.ownerDocument.body.offsetTop } Q = R.parentNode; while (Q.tagName && !E.ROOT_TAG.test(Q.tagName)) { if (Q.scrollTop || Q.scrollLeft) { if (!E.OP_SCROLL.test(B.Dom.getStyle(Q, "display"))) { if (!C || B.Dom.getStyle(Q, "overflow") !== "visible") { S[0] -= Q.scrollLeft; S[1] -= Q.scrollTop } } } Q = Q.parentNode } return S } } } () })(); YAHOO.util.Region = function (C, D, A, B) { this.top = C; this[1] = C; this.right = D; this.bottom = A; this.left = B; this[0] = B }; YAHOO.util.Region.prototype.contains = function (A) { return (A.left >= this.left && A.right <= this.right && A.top >= this.top && A.bottom <= this.bottom) }; YAHOO.util.Region.prototype.getArea = function () { return ((this.bottom - this.top) * (this.right - this.left)) }; YAHOO.util.Region.prototype.intersect = function (E) { var C = Math.max(this.top, E.top); var D = Math.min(this.right, E.right); var A = Math.min(this.bottom, E.bottom); var B = Math.max(this.left, E.left); if (A >= C && D >= B) { return new YAHOO.util.Region(C, D, A, B) } else { return null } }; YAHOO.util.Region.prototype.union = function (E) { var C = Math.min(this.top, E.top); var D = Math.max(this.right, E.right); var A = Math.max(this.bottom, E.bottom); var B = Math.min(this.left, E.left); return new YAHOO.util.Region(C, D, A, B) }; YAHOO.util.Region.prototype.toString = function () { return ("Region {top: " + this.top + ", right: " + this.right + ", bottom: " + this.bottom + ", left: " + this.left + "}") }; YAHOO.util.Region.getRegion = function (D) { var F = YAHOO.util.Dom.getXY(D); var C = F[1]; var E = F[0] + D.offsetWidth; var A = F[1] + D.offsetHeight; var B = F[0]; return new YAHOO.util.Region(C, E, A, B) }; YAHOO.util.Point = function (A, B) { if (YAHOO.lang.isArray(A)) { B = A[1]; A = A[0] } this.x = this.right = this.left = this[0] = A; this.y = this.top = this.bottom = this[1] = B }; YAHOO.util.Point.prototype = new YAHOO.util.Region(); YAHOO.register("dom", YAHOO.util.Dom, { version: "2.5.2", build: "1076" }); YAHOO.util.CustomEvent = function (D, B, C, A) { this.type = D; this.scope = B || window; this.silent = C; this.signature = A || YAHOO.util.CustomEvent.LIST; this.subscribers = []; if (!this.silent) { } var E = "_YUICEOnSubscribe"; if (D !== E) { this.subscribeEvent = new YAHOO.util.CustomEvent(E, this, true) } this.lastError = null }; YAHOO.util.CustomEvent.LIST = 0; YAHOO.util.CustomEvent.FLAT = 1; YAHOO.util.CustomEvent.prototype = { subscribe: function (B, C, A) { if (!B) { throw new Error("Invalid callback for subscriber to '" + this.type + "'") } if (this.subscribeEvent) { this.subscribeEvent.fire(B, C, A) } this.subscribers.push(new YAHOO.util.Subscriber(B, C, A)) }, unsubscribe: function (D, F) { if (!D) { return this.unsubscribeAll() } var E = false; for (var B = 0, A = this.subscribers.length; B < A; ++B) { var C = this.subscribers[B]; if (C && C.contains(D, F)) { this._delete(B); E = true } } return E }, fire: function () { this.lastError = null; var K = [], E = this.subscribers.length; if (!E && this.silent) { return true } var I = [].slice.call(arguments, 0), G = true, D, J = false; if (!this.silent) { } var C = this.subscribers.slice(), A = YAHOO.util.Event.throwErrors; for (D = 0; D < E; ++D) { var M = C[D]; if (!M) { J = true } else { if (!this.silent) { } var L = M.getScope(this.scope); if (this.signature == YAHOO.util.CustomEvent.FLAT) { var B = null; if (I.length > 0) { B = I[0] } try { G = M.fn.call(L, B, M.obj) } catch (F) { this.lastError = F; if (A) { throw F } } } else { try { G = M.fn.call(L, this.type, I, M.obj) } catch (H) { this.lastError = H; if (A) { throw H } } } if (false === G) { if (!this.silent) { } break } } } return (G !== false) }, unsubscribeAll: function () { for (var A = this.subscribers.length - 1; A > -1; A--) { this._delete(A) } this.subscribers = []; return A }, _delete: function (A) { var B = this.subscribers[A]; if (B) { delete B.fn; delete B.obj } this.subscribers.splice(A, 1) }, toString: function () { return "CustomEvent: '" + this.type + "', scope: " + this.scope } }; YAHOO.util.Subscriber = function (B, C, A) { this.fn = B; this.obj = YAHOO.lang.isUndefined(C) ? null : C; this.override = A }; YAHOO.util.Subscriber.prototype.getScope = function (A) { if (this.override) { if (this.override === true) { return this.obj } else { return this.override } } return A }; YAHOO.util.Subscriber.prototype.contains = function (A, B) { if (B) { return (this.fn == A && this.obj == B) } else { return (this.fn == A) } }; YAHOO.util.Subscriber.prototype.toString = function () { return "Subscriber { obj: " + this.obj + ", override: " + (this.override || "no") + " }" }; if (!YAHOO.util.Event) { YAHOO.util.Event = function () { var H = false; var I = []; var J = []; var G = []; var E = []; var C = 0; var F = []; var B = []; var A = 0; var D = { 63232: 38, 63233: 40, 63234: 37, 63235: 39, 63276: 33, 63277: 34, 25: 9 }; return { POLL_RETRYS: 2000, POLL_INTERVAL: 20, EL: 0, TYPE: 1, FN: 2, WFN: 3, UNLOAD_OBJ: 3, ADJ_SCOPE: 4, OBJ: 5, OVERRIDE: 6, lastError: null, isSafari: YAHOO.env.ua.webkit, webkit: YAHOO.env.ua.webkit, isIE: YAHOO.env.ua.ie, _interval: null, _dri: null, DOMReady: false, throwErrors: false, startInterval: function () { if (!this._interval) { var K = this; var L = function () { K._tryPreloadAttach() }; this._interval = setInterval(L, this.POLL_INTERVAL) } }, onAvailable: function (P, M, Q, O, N) { var K = (YAHOO.lang.isString(P)) ? [P] : P; for (var L = 0; L < K.length; L = L + 1) { F.push({ id: K[L], fn: M, obj: Q, override: O, checkReady: N }) } C = this.POLL_RETRYS; this.startInterval() }, onContentReady: function (M, K, N, L) { this.onAvailable(M, K, N, L, true) }, onDOMReady: function (K, M, L) { if (this.DOMReady) { setTimeout(function () { var N = window; if (L) { if (L === true) { N = M } else { N = L } } K.call(N, "DOMReady", [], M) }, 0) } else { this.DOMReadyEvent.subscribe(K, M, L) } }, addListener: function (M, K, V, Q, L) { if (!V || !V.call) { return false } if (this._isValidCollection(M)) { var W = true; for (var R = 0, T = M.length; R < T; ++R) { W = this.on(M[R], K, V, Q, L) && W } return W } else { if (YAHOO.lang.isString(M)) { var P = this.getEl(M); if (P) { M = P } else { this.onAvailable(M, function () { YAHOO.util.Event.on(M, K, V, Q, L) }); return true } } } if (!M) { return false } if ("unload" == K && Q !== this) { J[J.length] = [M, K, V, Q, L]; return true } var Y = M; if (L) { if (L === true) { Y = Q } else { Y = L } } var N = function (Z) { return V.call(Y, YAHOO.util.Event.getEvent(Z, M), Q) }; var X = [M, K, V, N, Y, Q, L]; var S = I.length; I[S] = X; if (this.useLegacyEvent(M, K)) { var O = this.getLegacyIndex(M, K); if (O == -1 || M != G[O][0]) { O = G.length; B[M.id + K] = O; G[O] = [M, K, M["on" + K]]; E[O] = []; M["on" + K] = function (Z) { YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(Z), O) } } E[O].push(X) } else { try { this._simpleAdd(M, K, N, false) } catch (U) { this.lastError = U; this.removeListener(M, K, V); return false } } return true }, fireLegacyEvent: function (O, M) { var Q = true, K, S, R, T, P; S = E[M].slice(); for (var L = 0, N = S.length; L < N; ++L) { R = S[L]; if (R && R[this.WFN]) { T = R[this.ADJ_SCOPE]; P = R[this.WFN].call(T, O); Q = (Q && P) } } K = G[M]; if (K && K[2]) { K[2](O) } return Q }, getLegacyIndex: function (L, M) { var K = this.generateId(L) + M; if (typeof B[K] == "undefined") { return -1 } else { return B[K] } }, useLegacyEvent: function (L, M) { if (this.webkit && ("click" == M || "dblclick" == M)) { var K = parseInt(this.webkit, 10); if (!isNaN(K) && K < 418) { return true } } return false }, removeListener: function (L, K, T) { var O, R, V; if (typeof L == "string") { L = this.getEl(L) } else { if (this._isValidCollection(L)) { var U = true; for (O = L.length - 1; O > -1; O--) { U = (this.removeListener(L[O], K, T) && U) } return U } } if (!T || !T.call) { return this.purgeElement(L, false, K) } if ("unload" == K) { for (O = J.length - 1; O > -1; O--) { V = J[O]; if (V && V[0] == L && V[1] == K && V[2] == T) { J.splice(O, 1); return true } } return false } var P = null; var Q = arguments[3]; if ("undefined" === typeof Q) { Q = this._getCacheIndex(L, K, T) } if (Q >= 0) { P = I[Q] } if (!L || !P) { return false } if (this.useLegacyEvent(L, K)) { var N = this.getLegacyIndex(L, K); var M = E[N]; if (M) { for (O = 0, R = M.length; O < R; ++O) { V = M[O]; if (V && V[this.EL] == L && V[this.TYPE] == K && V[this.FN] == T) { M.splice(O, 1); break } } } } else { try { this._simpleRemove(L, K, P[this.WFN], false) } catch (S) { this.lastError = S; return false } } delete I[Q][this.WFN]; delete I[Q][this.FN]; I.splice(Q, 1); return true }, getTarget: function (M, L) { var K = M.target || M.srcElement; return this.resolveTextNode(K) }, resolveTextNode: function (L) { try { if (L && 3 == L.nodeType) { return L.parentNode } } catch (K) { } return L }, getPageX: function (L) { var K = L.pageX; if (!K && 0 !== K) { K = L.clientX || 0; if (this.isIE) { K += this._getScrollLeft() } } return K }, getPageY: function (K) { var L = K.pageY; if (!L && 0 !== L) { L = K.clientY || 0; if (this.isIE) { L += this._getScrollTop() } } return L }, getXY: function (K) { return [this.getPageX(K), this.getPageY(K)] }, getRelatedTarget: function (L) { var K = L.relatedTarget; if (!K) { if (L.type == "mouseout") { K = L.toElement } else { if (L.type == "mouseover") { K = L.fromElement } } } return this.resolveTextNode(K) }, getTime: function (M) { if (!M.time) { var L = new Date().getTime(); try { M.time = L } catch (K) { this.lastError = K; return L } } return M.time }, stopEvent: function (K) { this.stopPropagation(K); this.preventDefault(K) }, stopPropagation: function (K) { if (K.stopPropagation) { K.stopPropagation() } else { K.cancelBubble = true } }, preventDefault: function (K) { if (K.preventDefault) { K.preventDefault() } else { K.returnValue = false } }, getEvent: function (M, K) { var L = M || window.event; if (!L) { var N = this.getEvent.caller; while (N) { L = N.arguments[0]; if (L && Event == L.constructor) { break } N = N.caller } } return L }, getCharCode: function (L) { var K = L.keyCode || L.charCode || 0; if (YAHOO.env.ua.webkit && (K in D)) { K = D[K] } return K }, _getCacheIndex: function (O, P, N) { for (var M = 0, L = I.length; M < L; M = M + 1) { var K = I[M]; if (K && K[this.FN] == N && K[this.EL] == O && K[this.TYPE] == P) { return M } } return -1 }, generateId: function (K) { var L = K.id; if (!L) { L = "yuievtautoid-" + A; ++A; K.id = L } return L }, _isValidCollection: function (L) { try { return (L && typeof L !== "string" && L.length && !L.tagName && !L.alert && typeof L[0] !== "undefined") } catch (K) { return false } }, elCache: {}, getEl: function (K) { return (typeof K === "string") ? document.getElementById(K) : K }, clearCache: function () { }, DOMReadyEvent: new YAHOO.util.CustomEvent("DOMReady", this), _load: function (L) { if (!H) { H = true; var K = YAHOO.util.Event; K._ready(); K._tryPreloadAttach() } }, _ready: function (L) { var K = YAHOO.util.Event; if (!K.DOMReady) { K.DOMReady = true; K.DOMReadyEvent.fire(); K._simpleRemove(document, "DOMContentLoaded", K._ready) } }, _tryPreloadAttach: function () { if (F.length === 0) { C = 0; clearInterval(this._interval); this._interval = null; return } if (this.locked) { return } if (this.isIE) { if (!this.DOMReady) { this.startInterval(); return } } this.locked = true; var Q = !H; if (!Q) { Q = (C > 0 && F.length > 0) } var P = []; var R = function (T, U) { var S = T; if (U.override) { if (U.override === true) { S = U.obj } else { S = U.override } } U.fn.call(S, U.obj) }; var L, K, O, N, M = []; for (L = 0, K = F.length; L < K; L = L + 1) { O = F[L]; if (O) { N = this.getEl(O.id); if (N) { if (O.checkReady) { if (H || N.nextSibling || !Q) { M.push(O); F[L] = null } } else { R(N, O); F[L] = null } } else { P.push(O) } } } for (L = 0, K = M.length; L < K; L = L + 1) { O = M[L]; R(this.getEl(O.id), O) } C--; if (Q) { for (L = F.length - 1; L > -1; L--) { O = F[L]; if (!O || !O.id) { F.splice(L, 1) } } this.startInterval() } else { clearInterval(this._interval); this._interval = null } this.locked = false }, purgeElement: function (O, P, R) { var M = (YAHOO.lang.isString(O)) ? this.getEl(O) : O; var Q = this.getListeners(M, R), N, K; if (Q) { for (N = Q.length - 1; N > -1; N--) { var L = Q[N]; this.removeListener(M, L.type, L.fn) } } if (P && M && M.childNodes) { for (N = 0, K = M.childNodes.length; N < K; ++N) { this.purgeElement(M.childNodes[N], P, R) } } }, getListeners: function (M, K) { var P = [], L; if (!K) { L = [I, J] } else { if (K === "unload") { L = [J] } else { L = [I] } } var R = (YAHOO.lang.isString(M)) ? this.getEl(M) : M; for (var O = 0; O < L.length; O = O + 1) { var T = L[O]; if (T) { for (var Q = 0, S = T.length; Q < S; ++Q) { var N = T[Q]; if (N && N[this.EL] === R && (!K || K === N[this.TYPE])) { P.push({ type: N[this.TYPE], fn: N[this.FN], obj: N[this.OBJ], adjust: N[this.OVERRIDE], scope: N[this.ADJ_SCOPE], index: Q }) } } } } return (P.length) ? P : null }, _unload: function (Q) { var K = YAHOO.util.Event, N, M, L, P, O, R = J.slice(); for (N = 0, P = J.length; N < P; ++N) { L = R[N]; if (L) { var S = window; if (L[K.ADJ_SCOPE]) { if (L[K.ADJ_SCOPE] === true) { S = L[K.UNLOAD_OBJ] } else { S = L[K.ADJ_SCOPE] } } L[K.FN].call(S, K.getEvent(Q, L[K.EL]), L[K.UNLOAD_OBJ]); R[N] = null; L = null; S = null } } J = null; if (I) { for (M = I.length - 1; M > -1; M--) { L = I[M]; if (L) { K.removeListener(L[K.EL], L[K.TYPE], L[K.FN], M) } } L = null } G = null; K._simpleRemove(window, "unload", K._unload) }, _getScrollLeft: function () { return this._getScroll()[1] }, _getScrollTop: function () { return this._getScroll()[0] }, _getScroll: function () { var K = document.documentElement, L = document.body; if (K && (K.scrollTop || K.scrollLeft)) { return [K.scrollTop, K.scrollLeft] } else { if (L) { return [L.scrollTop, L.scrollLeft] } else { return [0, 0] } } }, regCE: function () { }, _simpleAdd: function () { if (window.addEventListener) { return function (M, N, L, K) { M.addEventListener(N, L, (K)) } } else { if (window.attachEvent) { return function (M, N, L, K) { M.attachEvent("on" + N, L) } } else { return function () { } } } } (), _simpleRemove: function () { if (window.removeEventListener) { return function (M, N, L, K) { M.removeEventListener(N, L, (K)) } } else { if (window.detachEvent) { return function (L, M, K) { L.detachEvent("on" + M, K) } } else { return function () { } } } } ()} } (); (function () { var EU = YAHOO.util.Event; EU.on = EU.addListener; if (EU.isIE) { YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach, YAHOO.util.Event, true); var n = document.createElement("p"); EU._dri = setInterval(function () { try { n.doScroll("left"); clearInterval(EU._dri); EU._dri = null; EU._ready(); n = null } catch (ex) { } }, EU.POLL_INTERVAL) } else { if (EU.webkit && EU.webkit < 525) { EU._dri = setInterval(function () { var rs = document.readyState; if ("loaded" == rs || "complete" == rs) { clearInterval(EU._dri); EU._dri = null; EU._ready() } }, EU.POLL_INTERVAL) } else { EU._simpleAdd(document, "DOMContentLoaded", EU._ready) } } EU._simpleAdd(window, "load", EU._load); EU._simpleAdd(window, "unload", EU._unload); EU._tryPreloadAttach() })() } YAHOO.util.EventProvider = function () { }; YAHOO.util.EventProvider.prototype = { __yui_events: null, __yui_subscribers: null, subscribe: function (A, C, F, E) { this.__yui_events = this.__yui_events || {}; var D = this.__yui_events[A]; if (D) { D.subscribe(C, F, E) } else { this.__yui_subscribers = this.__yui_subscribers || {}; var B = this.__yui_subscribers; if (!B[A]) { B[A] = [] } B[A].push({ fn: C, obj: F, override: E }) } }, unsubscribe: function (C, E, G) { this.__yui_events = this.__yui_events || {}; var A = this.__yui_events; if (C) { var F = A[C]; if (F) { return F.unsubscribe(E, G) } } else { var B = true; for (var D in A) { if (YAHOO.lang.hasOwnProperty(A, D)) { B = B && A[D].unsubscribe(E, G) } } return B } return false }, unsubscribeAll: function (A) { return this.unsubscribe(A) }, createEvent: function (G, D) { this.__yui_events = this.__yui_events || {}; var A = D || {}; var I = this.__yui_events; if (I[G]) { } else { var H = A.scope || this; var E = (A.silent); var B = new YAHOO.util.CustomEvent(G, H, E, YAHOO.util.CustomEvent.FLAT); I[G] = B; if (A.onSubscribeCallback) { B.subscribeEvent.subscribe(A.onSubscribeCallback) } this.__yui_subscribers = this.__yui_subscribers || {}; var F = this.__yui_subscribers[G]; if (F) { for (var C = 0; C < F.length; ++C) { B.subscribe(F[C].fn, F[C].obj, F[C].override) } } } return I[G] }, fireEvent: function (E, D, A, C) { this.__yui_events = this.__yui_events || {}; var G = this.__yui_events[E]; if (!G) { return null } var B = []; for (var F = 1; F < arguments.length; ++F) { B.push(arguments[F]) } return G.fire.apply(G, B) }, hasEvent: function (A) { if (this.__yui_events) { if (this.__yui_events[A]) { return true } } return false } }; YAHOO.util.KeyListener = function (A, F, B, C) { if (!A) { } else { if (!F) { } else { if (!B) { } } } if (!C) { C = YAHOO.util.KeyListener.KEYDOWN } var D = new YAHOO.util.CustomEvent("keyPressed"); this.enabledEvent = new YAHOO.util.CustomEvent("enabled"); this.disabledEvent = new YAHOO.util.CustomEvent("disabled"); if (typeof A == "string") { A = document.getElementById(A) } if (typeof B == "function") { D.subscribe(B) } else { D.subscribe(B.fn, B.scope, B.correctScope) } function E(J, I) { if (!F.shift) { F.shift = false } if (!F.alt) { F.alt = false } if (!F.ctrl) { F.ctrl = false } if (J.shiftKey == F.shift && J.altKey == F.alt && J.ctrlKey == F.ctrl) { var G; if (F.keys instanceof Array) { for (var H = 0; H < F.keys.length; H++) { G = F.keys[H]; if (G == J.charCode) { D.fire(J.charCode, J); break } else { if (G == J.keyCode) { D.fire(J.keyCode, J); break } } } } else { G = F.keys; if (G == J.charCode) { D.fire(J.charCode, J) } else { if (G == J.keyCode) { D.fire(J.keyCode, J) } } } } } this.enable = function () { if (!this.enabled) { YAHOO.util.Event.addListener(A, C, E); this.enabledEvent.fire(F) } this.enabled = true }; this.disable = function () { if (this.enabled) { YAHOO.util.Event.removeListener(A, C, E); this.disabledEvent.fire(F) } this.enabled = false }; this.toString = function () { return "KeyListener [" + F.keys + "] " + A.tagName + (A.id ? "[" + A.id + "]" : "") } }; YAHOO.util.KeyListener.KEYDOWN = "keydown"; YAHOO.util.KeyListener.KEYUP = "keyup"; YAHOO.util.KeyListener.KEY = { ALT: 18, BACK_SPACE: 8, CAPS_LOCK: 20, CONTROL: 17, DELETE: 46, DOWN: 40, END: 35, ENTER: 13, ESCAPE: 27, HOME: 36, LEFT: 37, META: 224, NUM_LOCK: 144, PAGE_DOWN: 34, PAGE_UP: 33, PAUSE: 19, PRINTSCREEN: 44, RIGHT: 39, SCROLL_LOCK: 145, SHIFT: 16, SPACE: 32, TAB: 9, UP: 38 }; YAHOO.register("event", YAHOO.util.Event, { version: "2.5.2", build: "1076" }); YAHOO.register("yahoo-dom-event", YAHOO, { version: "2.5.2", build: "1076" });

var target = window.target || {}; target.ui = target.ui || {}; target.ui.gn = target.ui.gn || {}; target.ui.gn.data = target.ui.gn.data || {};

target.ui.gn.RefTag = {
    defaultRefFormat: "@_#c", getRefTag: function getRefTag(format, data) {
        var ref = "";
        format = format || this.defaultRefFormat;
        data = data || {};
        var c = ((typeof data.childOrder == "undefined") ? 0 : data.childOrder);
        var m = ((typeof data.menuOrder == "undefined") ? 0 : data.menuOrder);
        var f = ((typeof data.flyoutNumber == "undefined") ? 0 : data.flyoutNumber);
        var p = ((typeof data.parentRefTag == "undefined") ? "" : data.parentRefTag);
        try {
            ref = format;
            ref = ref.replace("#c", c, "g");
            ref = ref.replace("#m", m, "g");
            ref = ref.replace("#f", f, "g");
            ref = ref.replace("#p", p, "g")
        } catch (e) {
            ref = ""
        } return ref
    }
};

target.ui.gn.Node = function Node_Ctor(nodeData, paramsObject, incatName) {
    if (!nodeData) { return null }

    paramsObject = paramsObject || {};
    var recurse = paramsObject.recurse || 0;
    this.parentNode = paramsObject.parentNode || null;
    this.siblingNumber = paramsObject.siblingNumber || null;
    this.refValues = paramsObject.refValues || {};
    this.flyoutNumber = paramsObject.flyoutNumber || 0;
    if (!this.flyoutNumber && this.parentNode) { this.flyoutNumber = this.parentNode.flyoutNumber }
    var menuOrderCounter = paramsObject.menuOrder;
    if (menuOrderCounter) {
        this.menuOrder = menuOrderCounter.counter;
        if (nodeData.location) { menuOrderCounter.counter++ }
    }

    this.text = nodeData.text || "";
    this.title = (typeof nodeData.title == "string" ? nodeData.title : this.text);
    this.name = nodeData.name || "";
    this.location = nodeData.location || "";
    this.children = nodeData.children || [];
    this.sessionId = window.sessionID || "";
    this.icnTag = nodeData.icnTag || "";
    this.childNodes = [];
    this.incatName = incatName || "";
    this.refFormat = nodeData.ref_format || "";
    this.forceIncat = nodeData.forceIncat || "";
    this.nodeDescriptions = target.ui.gn.data.nodeDescriptions;
    var self = this;
    this.getDomTemplate = function getDomTemplate_Node(className) {
        var href = self.getHref();
        if (href != "") {
            self.domTemplate = {
                tagName: "a", href: href, title: self.title, childNodes: [{ tagName: "span", innerHTML: self.text}]
            }
        } else {
            if (className) { className += " nolink" }
            self.domTemplate = {
                tagName: "span", className: "nolink", childNodes: [{ tagName: "span", innerHTML: self.text}]
            }
        }

        if (className) { self.domTemplate.className = className }
        return self.domTemplate
    };
    this.getHtml = function () { };
    this.isParent = function isParent() { return (!!self.children && self.children.length > 0) };
    this.isLink = function isLink() { return (!!self.location) };
    this.getParent = function getParent() { return self.parentNode };
    this.isBrowseNode = function isBrowseNode() { return (!isNaN(self.location)) };
    this.getRefFormat = function getRefFormat() {
        if (!self.refFormat) {
            var n = self;
            while (n = n.parentNode) {
                if (n.refFormat) { self.refFormat = n.refFormat; break }
            }
        }
        return self.refFormat
    };

    this.getIncatName = function getIncatName() {
        if (!self.incatName) {
            var n = self.parentNode;
            while (n) { if (n.incatName) { self.incatName = n.incatName; break } n = n.parentNode }
        }

        return self.incatName
    };

    this.getForceIncat = function getForceIncat() {
        if (!self.forceIncat) {
            var n = self.parentNode;
            while (n) { if (n.forceIncat) { self.forceIncat = n.forceIncat; break } n = n.parentNode }
        }

        if (self.forceIncat == "none") { self.forceIncat = "" }

        return self.forceIncat
    };
    this.getRefTag = function getRefTag() {
        if (!self.refTag) {
            if (typeof nodeData.ref == "string") {
                self.refTag = nodeData.ref
            } else {
                var format = self.getRefFormat();
                var refValues = self.refValues;
                refValues.childOrder = self.siblingNumber;
                refValues.menuOrder = self.menuOrder;
                refValues.flyoutNumber = self.flyoutNumber;
                refValues.parentRefTag = self.parentNode.refTag;
                self.refTag = target.ui.gn.RefTag.getRefTag(format, refValues)
            }
        }

        return self.refTag
    };

    this.getHref = function getHref() {
        if (!self.href) {
            if (!self.location) {
                self.href = "";
                return self.href
            }

            var refString = self.getRefTag();
            var incatString = self.getForceIncat();
            if (incatString) {
                incatString = "forceIncat=" + incatString
            }

            var sessionIdString = (self.sessionId ? "/" + self.sessionId : "");
            var location = self.location;
            var description;
            var server = self.secure ? target.ui.gn.secureserver : target.ui.gn.nonsecureserver;
            server = server || "";
            var urlParamDelimiter = "&";
            if (location.indexOf("?") == -1) {
                urlParamDelimiter = "?"
            }
            if (location.indexOf("/") == 0) {
                if (refString) {
                    refString = urlParamDelimiter + "ref=" + refString;
                    urlParamDelimiter = "&"
                }

                if (incatString) {
                    incatString = urlParamDelimiter + incatString
                }

                self.href = server + location + refString + incatString
            } else {
                if (location.indexOf("#") == 0) {
                    self.href = location
                } else {
                    if (self.isBrowseNode()) {
                        if (refString) { refString = "/ref=" + refString }
                        if (incatString) { incatString = "&" + incatString }
                        if (target.ui.gn.isRainier) {
                            self.href = server + "/gp/preview/browse.html" + refString + "?ie=UTF8&node=" + location + incatString
                        } else {
                            description = self.nodeDescriptions[location] || "";
                            if (description && description.indexOf("memberpoint", 0) < 0) {
                                description = "/" + description
                            }
                            if (description.indexOf("memberpoint", 0) < 0) {
                                self.href = server + description
                            } else {
                                self.href = description
                                //    self.href = "javascript:void(window.open('" + description + "','memberpoint',''));"; // description;
                            }
                        }
                    } else {
                        if (refString) {
                            refString = encodeURIComponent(refString);
                            refString = refString.replace("_", "%5F", "g");
                            refString = "ref=" + refString
                        }

                        var destination = location + urlParamDelimiter + refString;
                        self.href = server + "/gp/redirect.html" + sessionIdString + "?%5Fencoding=UTF8&location=" + encodeURIComponent(destination)
                    }
                }
            }
        }
        return self.href
    };

    this.buildRecursive = function buildRecursive() {
        for (var i = 0, len = self.children.length; i < len; i++) {
            self.childNodes.push(new target.ui.gn.Node(self.children[i], { parentNode: self, siblingNumber: i + 1, menuOrder: menuOrderCounter, recurse: recurse - 1 }))
        }
    };
    if (recurse) { this.buildRecursive() } return this
};

target.ui.gn.Flyout = function Flyout_Ctor(rootElement, structure, index, type) {
    var self = this; this.rootElement = rootElement; this.structure = structure; if (structure && structure.counts) { this.counts = structure.counts } else { this.counts = [] } this.flyoutNumber = index + 1; this.type = type || ""; var domAttachmentPoint; this.refValues = { childOrder: 0, menuOrder: 0, flyoutNumber: this.flyoutNumber, parentRefTag: "" }; self.refValues.menuOrder++; this.getDomTemplate = function getDomTemplate_Flyout() { if (!self.domTemplate) { if (this.structure && this.counts.length) { var tabTmpl = self.rootElement.getDomTemplate(); var cols = self.getColumns(); self.domTemplate = self.wrapFlyoutContent(cols, tabTmpl) } } return self.domTemplate }; this.createDomElements = function createDomElements_Flyout() { domAttachmentPoint = jQuery(document.createElement("DIV")); domAttachmentPoint.appendDom(self.getDomTemplate()) }; this.getDomElements = function getDomElements_Flyout() { if (!domAttachmentPoint) { self.createDomElements() } return (domAttachmentPoint.get(0)) }; this.getLinkGroupTemplates = function getLinkGroupTemplates() {
        var flyoutChildren = self.rootElement.childNodes; var linkGroups = [], linkGroupTemplate;

        for (var i = 0, len = flyoutChildren.length; i < len; i++) {
            var linkGroupData = flyoutChildren[i];
            var headerNode = linkGroupData;
            if (headerNode.isLink()) { self.refValues.menuOrder++ }
            var childLinkTemplates = [];
            for (var j = 0, len2 = headerNode.childNodes.length; j < len2; j++) {
                var childNode = headerNode.childNodes[j];
                if (childNode.isLink()) { self.refValues.menuOrder++ }
                childLinkTemplates.push({ tagName: "li", childNodes: [childNode.getDomTemplate()] })
            } var treeStatus = "leaf"; if (childLinkTemplates.length > 0) { linkGroupTemplate = [headerNode.getDomTemplate("parent")]; treeStatus = "branch"; linkGroupTemplate.push({ tagName: "ul", className: "children", childNodes: childLinkTemplates }) } else { linkGroupTemplate = [headerNode.getDomTemplate()] } linkGroups.push({ tagName: "li", className: treeStatus, childNodes: linkGroupTemplate })
        } return linkGroups
    }; this.getColumns = function getColumns() { var columns = []; var linkGroups = self.getLinkGroupTemplates(); var start = 0, end; var columnCounts = this.counts; var columnClasses = this.structure.columnClasses || []; for (var i = 0, len = columnCounts.length; i < len; i++) { var end = start + columnCounts[i]; var columnClass = columnClasses[i]; var divClass = "gn_col"; if (columnClass) { divClass = columnClass } if (i == len - 1) { divClass += " last-child" } columns.push({ tagName: "div", className: divClass, childNodes: [{ tagName: "ul", childNodes: linkGroups.slice(start, end)}] }); start = end } return columns }; this.wrapFlyoutContent = function wrapFlyoutContent(flybodyContent, flytabContent) { var flyoutType = self.type; var flyoutClass = this.structure.flyoverClass || ""; if (flybodyContent.length > 1 && !flyoutClass.match("col")) { flyoutClass += " col" + flybodyContent.length } flytabContent = [flytabContent]; var shadowInnerHtml = '<div class="gn_tl"></div><div class="gn_tr"></div><div class="gn_bl"></div><div class="gn_br"></div>'; flybodyContent.unshift({ tagName: "div", className: "gn_shadow", innerHTML: shadowInnerHtml }); flytabContent.unshift({ tagName: "div", className: "gn_shadow", innerHTML: shadowInnerHtml }); var flyoutDomStructure = { tagName: "div", id: "gn_" + flyoutType + "fly_" + this.flyoutNumber, className: "gn_fly " + flyoutType + " " + flyoutClass, childNodes: [{ tagName: "div", className: "gn_flytab", childNodes: flytabContent }, { tagName: "div", className: "gn_flybody", childNodes: flybodyContent}] }; return flyoutDomStructure }; this.getColumnsC = function getColumnsC() { var columns = []; var columnCounts = self.counts; var columnClasses = self.structure.columnClasses || []; var linkGroups = self.getLinkGroupTemplates(); var start = 0, end; for (var i = 0; i < columnCounts.length; i++) { var end = start + columnCounts[i]; var columnClass = columnClasses[i]; var divClass, ulClass = "menu"; if (columnClass) { divClass = ulClass = columnClass } columns.push({ tagName: "ul", className: ulClass, childNodes: linkGroups.slice(start, end) }); start = end } return columns }; this.wrapFlyoutContentC = function wrapFlyoutContentC(content) { var columnCount = self.counts.length; var cardinals = ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten"]; var flyoutClass = "dd_" + cardinals[columnCount] + "_column"; var baseId = "sc_tab" + (self.flyoutNumber); var flyoutTopDom = { tagName: "div", className: "round_top", id: baseId + "_top", childNodes: [{ tagName: "div", className: "dd_shim", id: baseId + "_split"}] }; var flyoutBottomDom = { tagName: "div", className: "round_footer", id: baseId + "_footer" }; var flyoutInnerDiv = { tagName: "div", className: "flyoutInnerDiv", childNodes: content }; var flyoutDomStructure = { tagName: "div", className: flyoutClass, id: baseId, childNodes: [flyoutTopDom, { tagName: "div", className: "container", id: baseId + "_container", childNodes: [flyoutInnerDiv] }, flyoutBottomDom] }; return flyoutDomStructure }; return this
};

jQuery.fn.appendDom = function (template) { return this.each(function () { for (element in template) { var el = (typeof (template[element].tagName) === "string") ? document.createElement(template[element].tagName) : document.createTextNode(""); delete template[element].tagName; for (attrib in template[element]) { if (attrib == "className") { jQuery(el).addClass(template[element][attrib]); delete template[element].className } switch (typeof (template[element][attrib])) { case "string": if (typeof (el[attrib]) === "string") { el[attrib] = template[element][attrib] } else { el.setAttribute(attrib, template[element][attrib]) } break; case "function": el[attrib] = template[element][attrib]; break; case "object": if (attrib === "childNodes") { jQuery(el).appendDom(template[element][attrib]) } break } } this.appendChild(el) } }) };

(function ($) { jQuery.fn.accessibleClick = function (functionToCall, options) { if (this.length > 1) { for (var i = 0; i < this.length; i++) { $(this[i]).accessibleClick(functionToCall, options) } return this } if (this.length < 1) { return this } var enableKeyDown = (options) ? options.disableKeyDown || false : false; var accessibleClick = this; this.data("active", false); this.initialize = function () { this.hover(function () { accessibleClick.data("active", true) }, function () { accessibleClick.data("active", false) }).keydown(function () { if (enableKeyDown) { accessibleClick.data("active", true) } }).keyup(function () { window.setTimeout(function () { if (enableKeyDown) { accessibleClick.data("active", false) } }, 1) }).click(function (event) { if (accessibleClick.data("active") != true) { return true } if (typeof functionToCall == "function") { functionToCall.apply(accessibleClick, arguments) } return false }) }; return this.initialize() } })(jQuery);

this.getCookie = function (tokenExists) {
    var val = $("#global_cookie").val();
    if (val) {
        if (!tokenExists) {
            return "?token=" + val;
        } else {
            return "&token=" + val;
        }
    } else {
        return "";
    }
}

this.registerNow = function(){
  window.location.href = 'https://covdwp.memberpoint.com/WebPortal/Events/CalendarEventsListView.aspx?index=1&type=&group=' + this.getCookie(true);
}

target.ui.gn.data.nodeDescriptions = {
    "3692501": "Members/AnnualMeeting/AbstractSubmission/tabid/119/Default.aspx",
    "13796461": "Members/AnnualMeeting/Exhibitors/tabid/121/Default.aspx",
    "13767791": "Members/GrantsAwards/AnnualMeetingTravelGrants/tabid/146/Default.aspx",
    "13629631": "Members/AnnualMeeting/FutureMeetings/tabid/281/Default.aspx",
    "12954791": "Members/AnnualMeeting/PastMeetings/tabid/122/Default.aspx",
    "3608901": "Members/Certification/FellowshipCertificationforOptometrists/tabid/165/Default.aspx",
    "10825231": "Members/Certification/CertifiedOptometricVisionTherapist/tabid/166/Default.aspx",
    "10825246": "Members/Certification/IECB/tabid/295/Default.aspx",
    "10825232": "Members/GrantsAwards/AMSkeffingtonAward/tabid/135/Default.aspx",
    "10825233": "Members/GrantsAwards/GNGetmanAward/tabid/136/Default.aspx",
    "10825234": "Members/GrantsAwards/COVToftheYearAward/tabid/137/Default.aspx",
    "10825235": "Members/GrantsAwards/WoldHeritageAward/tabid/138/Default.aspx",
    "10825236": "Members/GrantsAwards/PresidentsAward/tabid/139/Default.aspx",
    "10825237": "Members/GrantsAwards/OVDAwardforBestArticle/tabid/140/Default.aspx",
    "10825238": "Members/GrantsAwards/SpecialAwardsforDedicatedService/tabid/141/Default.aspx",
    "10825239": "Members/GrantsAwards/ResearchGrants/tabid/198/Default.aspx",
    "10825240": "Members/GrantsAwards/StudentGrantsAwards/tabid/145/Default.aspx",
    "10825241": "Members/AnnualMeeting/AnnualMeetingTravelGrants/tabid/210/Default.aspx",
    "10825242": "Members/PublicAwareness/AugustisNatlChildrensVisionLearningMonth/tabid/160/Default.aspx",
    "10825243": "Members/PublicAwareness/COVDPressMaterials/tabid/161/Default.aspx",
    "10825245": "https://covdwp.memberpoint.com/WebPortal/Fundraising/FundsDirectory.aspx",
    "10825247": "Members/TourdeOptometry/tabid/209/Default.aspx",
    "10825248": "Members/SocialMedia/tabid/294/Default.aspx",
    "10825249": "Members/AnnualMeeting/AirportTransportation/tabid/268/Default.aspx",
    "10825260": "Members/PublicAwareness/PressReleases/tabid/325/Default.aspx",
    "10825250": "https://covdwp.memberpoint.com/WebPortal/Profile/ViewProfile.aspx?SOURCE=Profilex" + this.getCookie(true),
    "10825251": "https://covdwp.memberpoint.com/WebPortal/Profile/EditProfile.aspx" + this.getCookie(false),
    "10825252": "https://covdwp.memberpoint.com/WebPortal/MemberDR/MembershipRenewal.aspx" + this.getCookie(false),
    "10825253": "Members/AnnualMeeting/MeetingRegistration/tabid/323/Default.aspx",
    "10825254": "https://covdwp.memberpoint.com/WebPortal/Leadership/Search.aspx" + this.getCookie(false),
    "10825256": "Members/AnnualMeeting/HotelReservations/tabid/117/Default.aspx",
    "10825257": "Members/AnnualMeeting/PreliminaryProgram/tabid/236/Default.aspx",
    "10825258": "Portals/0/COVD_40AM_Registration.pdf",
    "10825259": "https://covdwp.memberpoint.com/WebPortal/Membership/MemberDirectorySearch.aspx" + this.getCookie(false)

};

YAHOO.env.ua = function () { var o = { ie: 0, opera: 0, gecko: 0, webkit: 0, mobile: null, air: 0, caja: 0 }, ua = navigator.userAgent, m; if ((/KHTML/).test(ua)) { o.webkit = 1 } m = ua.match(/AppleWebKit\/([^\s]*)/); if (m && m[1]) { o.webkit = parseFloat(m[1]); if (/ Mobile\//.test(ua)) { o.mobile = "Apple" } else { m = ua.match(/NokiaN[^\/]*/); if (m) { o.mobile = m[0] } } m = ua.match(/AdobeAIR\/([^\s]*)/); if (m) { o.air = m[0] } } if (!o.webkit) { m = ua.match(/Opera[\s\/]([^\s]*)/); if (m && m[1]) { o.opera = parseFloat(m[1]); m = ua.match(/Opera Mini[^;]*/); if (m) { o.mobile = m[0] } } else { m = ua.match(/MSIE\s([^;]*)/); if (m && m[1]) { o.ie = parseFloat(m[1]) } else { m = ua.match(/Gecko\/([^\s]*)/); if (m) { o.gecko = 1; m = ua.match(/rv:([^\s\)]*)/); if (m && m[1]) { o.gecko = parseFloat(m[1]) } } } } } m = ua.match(/Caja\/([^\s]*)/); if (m && m[1]) { o.caja = parseFloat(m[1]) } return o } ();

/*
* target.textResizeDetector
* @author Lenny Burdette lburdette@schematic.com
* @fileoverview Rewritten text resize detector to remove jQuery dependency.
* Doesn't work in Opera.
* @usage 
* 
* 		target.textResizeDetector.init("id-of-dom-element", function(event, initialSize) {
* 			event.subscribe(textSizeChangeHandler);	
*		});
* 
* Previous license:
* 
* Copyright (c) 2008 Tom Deater (http://www.tomdeater.com)
* Licensed under the MIT License:
* http://www.opensource.org/licenses/mit-license.php
*
* Renamed to "onTextResize" for a more descriptive name
* Modified to check if the browser either zooms or text-resizes
* (Does not fire if browser uses zoom)
*
* uses an iframe, sized in ems, to detect text size changes then trigger a "textresize" event
* heavily based on code by Hedger Wang: http://www.hedgerwow.com/360/dhtml/js-onfontresize.html
*
* "textresize" event is triggered on the document object
* subscribe to event using: $(document).bind("textresize", function (event, data) {});
* "data" contains the current size of 1 em unit (in pixels)
* 
*/
//window.target=window.target||{};target.textResizeDetector=function(){var Y=YAHOO,E=Y.util.Event,UA=Y.env.ua;if(UA.opera){return null}var fontSizeChangeEvent=new YAHOO.util.CustomEvent("fontsizechange");var eventPath="target.textResizeDetector.event";var iframe;var size={};var sizePath="target.textResizeDetector.setSize";function init(container,callback){createIframe(container);addBehavior();callback(fontSizeChangeEvent,size)}function createIframe(container){iframe=document.createElement("iframe");iframe.src="/iframe.html";iframe.id="frame-onTextResize"+new Date().getTime();iframe.title="empty";iframe.frameborder=0;var style={width:"100em",height:"10px",position:"absolute",borderWidth:0,top:"-9999px",left:"-9999px"};for(var prop in style){iframe.style[prop]=style[prop]}container.appendChild(iframe)}function addBehavior(){if(UA.ie){E.on(iframe,"resize",onFontSizeChange)}else{var doc=iframe.contentWindow||iframe.contentDocument||iframe.document;doc=doc.document||doc;var iwindow=iframe.contentWindow;var s='style="width:100%;height:100%;padding:0;margin:0;overflow:hidden;"';doc.open();doc.write("<html "+s+"><body "+s+"></body></html>");doc.close();E.on(iwindow,"resize",onFontSizeChange)}size=iframe.offsetWidth/100}function onFontSizeChange(){size=iframe.offsetWidth/100;fontSizeChangeEvent.fire(size)}return{init:function(id,callback){E.onAvailable(id,function(){init(document.getElementById(id),callback)})},event:fontSizeChangeEvent,getSize:function(){return size},setSize:function(newSize){size=newSize}}}();

target = window.target || {}; target.NAV = target.NAV || {}; target.NAV.Flyouts = target.NAV.Flyouts || {}; (function () { var Y = YAHOO, D = Y.util.Dom, E = Y.util.Event, UA = Y.env.ua, Flyouts = target.NAV.Flyouts; var positionParent; var timeout; var PX = "px"; Flyouts.create = function (parent, type, fontSize) { positionParent = positionParent || document.getElementById("gn"); type = type ? type : "Main"; var instance = new Flyouts[type](parent, fontSize); if (!instance.invalid) { return instance } }; Flyouts.Main = function (parent, fontSize) { var split = parent.id.split("_"); var index = split[2] - 1; target.ui.gn.flyoutsController.buildFlyout("Main", index); this.parent = parent; this.el = document.getElementById(parent.id.replace("main", "mainfly")); this.fontSize = fontSize; if (!this.el) { this.invalid = true; return } this.setup() }; Flyouts.Main.prototype = { setup: function () { this.label = this.el.getElementsByTagName("div")[0]; this.body = D.getElementsByClassName("gn_flybody", "div", this.el)[0]; this.fixSize(); this.addBehavior() }, setPosition: function () { showShim(this); D.setXY(this.el, [this.xPos, this.yPos]) }, fixSize: function () { this.labelWidth = this.parent.offsetWidth + this.options.labelWidthAdjust; this.label.style.width = this.labelWidth + PX; this.labelHeight = this.parent.offsetHeight + this.options.labelHeightAdjust; this.label.style.height = this.labelHeight + PX; this.label.style.top = -this.labelHeight + this.options.labelTopAdjust + PX; if (this.fontSize) { this.label.getElementsByTagName("a")[0].style.fontSize = this.fontSize + PX } if (this.labelWidth >= this.body.offsetWidth) { this.body.style.width = this.labelWidth + 5 + PX } }, options: { xOffset: 0, yOffset: 0, labelWidthAdjust: 0, labelHeightAdjust: 0, labelTopAdjust: 0, labelLeftAdjust: 0 }, addBehavior: function () { E.on(this.el, "mouseover", onMouseOver, this); E.on(this.el, "mouseout", onMouseLeave, this) }, getPosition: function () { var p = D.getXY(this.parent); this.xPos = p[0] + this.options.xOffset; this.yPos = p[1] + this.options.yOffset + this.label.offsetHeight }, fixFlyout: function () { flip(this); if (!this.fixed) { this.fixed = true; columnHeightFix(this); ieShadows(this) } }, show: function () { clearTimeout(timeout); if (this.el) { this.getPosition(); this.fixFlyout(this); this.setPosition() } }, hide: function () { clearTimeout(timeout); if (this.el) { this.el.style.left = "-9999px"; this.el.style.top = "-9999px"; hideShim() } }, focus: function () { this.label.getElementsByTagName("a")[0].focus() }, reset: function () { this.label.setAttribute("style", ""); D.removeClass(this.el, "right"); D.removeClass(this.el, "middle"); resetColumnHeights(this) } }; Flyouts.Sub = function (parent) { var split = parent.id.split("_"); var index = split[2] - 1; target.ui.gn.flyoutsController.buildFlyout("Sub", index); this.parent = parent; this.el = document.getElementById(parent.id.replace("sub", "subfly")); if (!this.el) { this.invalid = true; return } this.setup() }; Flyouts.Sub.prototype = {}; Y.extend(Flyouts.Sub, Flyouts.Main, { options: { xOffset: 0, yOffset: 0, labelWidthAdjust: 0, labelHeightAdjust: -5, labelTopAdjust: 4, labelLeftAdjust: 0 }, fixFlyout: function () { reposition(this); if (!this.fixed) { this.fixed = true; columnHeightFix(this); ieShadows(this) } } }); Flyouts.Special = function (parent) { this.parent = parent; this.el = document.getElementById(parent.id.replace("l2", "l2dd")); this.link = this.parent.getElementsByTagName("a"); if (this.link.length) { this.link = this.link[0]; this.offsets = this.link.rel.split("x"); this.offsets[0] = parseInt(this.offsets[0], 10); this.offsets[1] = parseInt(this.offsets[1], 10) } if (!this.el) { return } this.setup() }; Flyouts.Special.prototype = { setup: function () { E.on(this.el, "mouseover", onMouseOver, this); E.on(this.el, "mouseout", onMouseLeave, this) }, show: function () { if (this.el) { D.addClass(this.el, "show"); D.addClass(this.parent, "gn_over"); this.getPosition(); this.addLabelShim(); this.setPosition(); showShim(this) } }, hide: function () { if (this.el) { D.removeClass(this.el, "show"); D.removeClass(this.parent, "gn_over"); hideShim(this) } }, getPosition: function () { var p = D.getXY(this.parent); this.xPos = p[0] + this.offsets[0]; this.yPos = p[1] + this.offsets[1] }, setPosition: function () { this.el.style.left = this.xPos + PX; this.el.style.top = this.yPos + PX }, addLabelShim: function () { if (!this.labelShim) { var shim = document.createElement("a"); shim.href = this.parent.getElementsByTagName("a")[0].href; shim.className = "gn_special_shim"; shim.style.width = this.parent.offsetWidth + PX; shim.style.height = this.parent.offsetHeight + 6 + PX; shim.style.top = -this.parent.offsetHeight - 6 + PX; shim.style.left = D.getX(this.parent) - this.xPos + PX; this.el.appendChild(shim); this.labelShim = true } }, reset: function () { } }; function onMouseOver(e, flyout) { clearTimeout(timeout) } function onMouseLeave(e, flyout) { var parent = E.getRelatedTarget(e); while (parent && parent != this) { parent = parent.parentNode } if (parent != this) { timeout = setTimeout(function () { flyout.hide() }, 250) } } function maximumRight() { return D.getXY(positionParent)[0] + positionParent.offsetWidth } function flip(flyout) { var width = flyout.body.offsetWidth; if (flyout.xPos + width > maximumRight()) { setTabPosition(flyout, "right") } } function reposition(flyout) { var width = flyout.el.offsetWidth; var max = maximumRight(); if (flyout.xPos + width > max) { setTabPosition(flyout, flyout.xPos + width - max) } } function setTabPosition(flyout, position) { var moveTabLeftBy = 0, rightAligned = flyout.el.offsetWidth - flyout.label.offsetWidth, alignment; if (position === "right" || position >= rightAligned - 5) { moveTabLeftBy = rightAligned; alignment = "right" } else { if (position > 0) { alignment = "middle"; moveTabLeftBy = position } else { return } } D.addClass(flyout.el, alignment); flyout.label.style.left = moveTabLeftBy + "px"; flyout.xPos -= moveTabLeftBy } function columnHeightFix(flyout) { findColumns(flyout); if (flyout.moreCol && flyout.moreCol.offsetHeight < flyout.tallest) { var h = flyout.tallest + "px"; for (var i = -1, node; node = flyout.columns[++i]; ) { node.style.height = h } } } function findColumns(flyout) { if (flyout.columns) { return } var cols = [], tallest, moreCol, child; child = flyout.body.firstChild; tallest = 0; do { if (child.nodeType === 1 && child.className.indexOf("gn_col") > -1) { cols[cols.length] = child; if (child.className.indexOf("gn_more") > -1) { moreCol = child } else { if (child.offsetHeight >= tallest) { tallest = child.offsetHeight } } } } while (child = child.nextSibling); flyout.columns = cols; flyout.tallest = tallest; flyout.moreCol = moreCol } function resetColumnHeights(flyout) { if (flyout.columns) { for (var i = -1, node; node = flyout.columns[++i]; ) { node.style.height = "auto" } } } function ieShadows(flyout) { if (!UA.ie) { return } var body = flyout.body, label = flyout.label, bodyShadow = D.getElementsByClassName("gn_shadow", "div", body)[0], tabShadow = D.getElementsByClassName("gn_shadow", "div", label)[0]; if (UA.ie > 6 || document.compatMode == "CSS1Compat") { oddNumberedSizing(bodyShadow, body.offsetWidth, body.offsetHeight); oddNumberedSizing(tabShadow, label.offsetWidth, label.offsetHeight); var bodyEven = body.offsetWidth % 2 === 0, labelEven = label.offsetWidth % 2 === 0; if (D.hasClass(flyout.el, "right")) { if (bodyEven && labelEven) { } else { if (bodyEven) { body.style.left = -1 + PX } else { if (labelEven) { body.style.left = 1 + PX } } } } } else { bodyShadow.style.width = body.offsetWidth + 11 + PX; bodyShadow.style.height = body.offsetHeight + 10 + PX; tabShadow.style.width = label.offsetWidth + 11 + PX; tabShadow.style.height = label.offsetHeight + 10 + PX; if (D.hasClass(flyout.el, "right")) { var bodyEven = body.offsetWidth % 2 === 0, labelEven = label.offsetWidth % 2 === 0; if (bodyEven && labelEven) { } else { if (bodyEven) { body.style.left = 1 + PX } else { if (labelEven) { body.style.left = -1 + PX } } } } } } function oddNumberedSizing(el, w, h) { el.style.width = (w % 2 ? w - 1 : w) + PX; el.style.height = (h % 2 ? h - 1 : h) + PX } var iframe, K = function () { }, ie6 = (UA.ie && UA.ie < 7); function ieSupport() { iframe = document.createElement("iframe"); iframe.className = "gn_shim"; iframe.src = "/iframe.html"; iframe.title = "empty"; iframe.border = 0; document.body.appendChild(iframe) } Flyouts.ieSupport = ie6 ? ieSupport : K; var showShim = ie6 ? function (flyout) { D.setXY(iframe, [flyout.xPos, flyout.yPos]); iframe.style.width = flyout.el.offsetWidth + PX; iframe.style.height = flyout.el.offsetHeight + PX } : K; var hideShim = ie6 ? function (flyout) { iframe.style.left = "-9999px"; iframe.style.top = "-9999px" } : K } ());

jQuery(document).ready(
	function call_FlyoutsController_build() {
	    var controller = target.ui.gn.flyoutsController;
	    controller.build.call(controller)
	});
target.ui.gn.flyoutsController = {
    flyoutsAttachmentPoint: {},
    incatsRootNode: {},
    supercatsRootNode: {},
    checkDependencies: true,
    initialized: false,
    init: function init_flyoutsController() {
        if (this.initialized !== true) {
            if (this.checkDependencies && !this.dependenciesOk()) { return false }
        }
        this.initialized = true; return this.initialized
    },
    build: function build_flyoutsController() {
        try {
            var initOk = this.init();
            if (initOk === false) { return }
            var cfg = {
                flyoutsAttachmentPointSelector: "#gn_fly",
                supercatsTabsSelector: "#gn_main li",
                supercatsTabsHighlightClass: "gn_active",
                incatsRowSelector: "#gn_sub"
            };
            if (!target.ui.gn.data) {
                if (console && console.error) { console.error("can't find menu data") }
                return
            }
            var supercats = target.ui.gn.data.supercats;
            this.supercatsRootNode = new target.ui.gn.Node(supercats.data, { recurse: 1 });
            this.highlightSupercatTab(this.supercatsRootNode, cfg.supercatsTabsSelector, cfg.supercatsTabsHighlightClass);
            var incat = target.ui.gn.incat;
            if (incat) {
                var incatObject = target.ui.gn.data[incat];
                if (incatObject) {
                    this.incatsRootNode = new target.ui.gn.Node(incatObject.data, { recurse: 1 }, incat);
                    this.populateIncatsRow(this.incatsRootNode, cfg.incatsRowSelector)
                }
            } if (typeof (cfg.flyoutsAttachmentPointSelector) != "undefined") { this.flyoutsAttachmentPoint = jQuery(cfg.flyoutsAttachmentPointSelector) }
            if (this.flyoutsAttachmentPoint.length == 0) {
                var newElement = document.createElement("div");
                newElement.setAttribute("id", "gn_fly");
                jQuery("body").append(newElement);
                this.flyoutsAttachmentPoint = jQuery(newElement)
            }
        } catch (e) {
            if (console && console.error) {
                console.error("could not build global nav flyouts: ", e)
            }
        }
    },
    buildFlyout: function buildSingleFlyout(type, index) {
        var rootNode;
        var dataSource;
        if (type == "Main") {
            dataSource = target.ui.gn.data.supercats; rootNode = this.supercatsRootNode; type = "main"
        } else {
            var incat = target.ui.gn.incat;
            var incatObject = target.ui.gn.data[incat];
            if (incatObject) { dataSource = incatObject; rootNode = this.incatsRootNode; type = "sub" }
        }

        if (dataSource && rootNode) {
            var data = dataSource.data.children[index];
            var structure = dataSource.structure[index];
            var node = new target.ui.gn.Node(data, { parentNode: rootNode, siblingNumber: index + 1, flyoutNumber: index + 1, menuOrder: { counter: 0 }, recurse: 10 });
            var flyout = new target.ui.gn.Flyout(node, structure, index, type);
            if (flyout && flyout.getDomTemplate) {
                var domTemplate = flyout.getDomTemplate();
                if (domTemplate) {
                    this.flyoutsAttachmentPoint.appendDom([domTemplate])
                }
            }
        }
    },
    highlightSupercatTab: function highlightSupercatTab(root, tabsSelector, highlightClass) {
        incat = target.ui.gn.incat;
        if (!root || !incat) { return }
        var childNodes = root.childNodes;
        for (var i = 0, len = childNodes.length; i < len; i++) {
            if (incat == childNodes[i].icnTag) { jQuery(tabsSelector).eq(i).addClass(highlightClass).prepend("<span></span"); return }
        }
    },
    populateIncatsRow: function populateIncatsRow(root, rowSelector) {
        if (!root) { return }
        var childTemplates = [];
        var childNodes = root.childNodes;
        var itemId, itemClass;
        for (var i = 0, len = childNodes.length; i < len; i++) {
            var child = childNodes[i]; child.flyoutNumber = i + 1;
            var linkTmpl = child.getDomTemplate(); itemClass = "";
            if (child.isParent()) { itemId = "gn_sub_" + (i + 1) }
            else { itemClass = "noFlyout "; itemId = "" }
            if (i == 0) { itemClass += "first-child" } else {
                if (i == len - 1) { itemClass += "last-child" }
            }
            childTemplates.push({ tagName: "li", id: itemId, className: itemClass, childNodes: [linkTmpl] })
        }

        var template = [{ tagName: "ul", childNodes: childTemplates}];
        jQuery(rowSelector).appendDom(template)
    },
    dependenciesOk: function dependenciesOk() {
        try { return (document && document.getElementById && jQuery && jQuery.fn.appendDom) } catch (e) { return false }
    }
};

target = window.target || {}; target.NAV = target.NAV || {}; (function () { var Y = YAHOO, D = Y.util.Dom, E = Y.util.Event, UA = Y.env.ua, ARIA = target.NAV.ARIA; target.NAV.ComboBox = function () { var realBox, box, list, data = [], items = [], currentIndex, timeout; function createHTML(that) { that.box = document.createElement("div"); that.box.className = "combo"; that.box.setAttribute("role", "combobox"); that.box.tabIndex = 0; that.label = document.createElement("span"); that.label.className = "label"; that.box.appendChild(that.label); that.list = document.createElement("ul"); that.box.appendChild(that.list); var options = that.realBox.getElementsByTagName("option"); for (var i = -1, node, newNode; node = options[++i]; ) { that.data[i] = node.innerHTML; newNode = document.createElement("li"); newNode.innerHTML = that.data[i]; if (node.selected) { newNode.className = "checked"; that.currentIndex = i; that.label.innerHTML = that.data[i]; that.box.setAttribute("aria-valuenow", that.data[i]) } that.items[i] = newNode; that.list.appendChild(newNode) } D.addClass(that.realBox, "hidden"); that.realBox.parentNode.insertBefore(that.box, that.realBox); addAssistance(that) } function addAssistance(that) { if (!ARIA) { that.assist = document.createElement("a"); that.assist.href = "#"; that.assist.className = "gn_access"; that.assist.innerHTML = "Click here to select search options"; that.realBox.parentNode.insertBefore(that.assist, that.box); E.on(that.assist, "click", onAssist, that) } } function addBehavior(that) { E.on(that.box, "keydown", handleKey, that); E.on(that.box, "keyup", cancelKey, that); E.on(that.box, "click", onClick, that); E.on(that.items, "click", onSelect, that); if (UA.ie) { that.box.onmouseup = function () { hideOptions(that) }; that.box.onmouseover = function () { D.addClass(window.event.srcElement, "hover") }; that.box.onmouseout = function () { D.removeClass(window.event.srcElement, "hover") } } } function handleKey(event, that) { switch (event.keyCode) { case 38: case 37: E.preventDefault(event); repeatActionWithDelay(prev, that); break; case 40: case 39: E.preventDefault(event); repeatActionWithDelay(next, that); break; case 13: case 32: E.preventDefault(event); hideOptions(that); break; default: break } } function repeatActionWithDelay(action, that) { if (action) { action(that); clearInterval(timeout); timeout = setTimeout(function () { clearInterval(timeout); timeout = setInterval(function () { action(that) }, 100) }, 250) } } function cancelKey(event, that) { E.preventDefault(event); clearInterval(timeout) } function onClick(event, that) { E.stopPropagation(event); showOptions(that) } function onSelect(event, that) { E.stopPropagation(event); for (var i = -1, node; node = that.items[++i]; ) { if (node === this) { setIndex(that, i); hideOptions(that); break } } } function onAssist(event, that) { E.preventDefault(event); D.removeClass(that.realBox, "hidden"); D.setStyle(that.box, "display", "none"); that.realBox.focus() } function onOptionsCancel(event, that) { hideOptions(that) } function stopHover(event) { event.stopPropagation() } function showOptions(that) { D.addClass(that.box, "active"); E.on(document.body, "click", onOptionsCancel, that); fixZIndex(that); if (that.activateCallback) { that.activateCallback() } try { document.addEventListener("mouseover", stopHover, true) } catch (e) { that.box.setCapture() } } function hideOptions(that) { D.removeClass(that.box, "active"); E.removeListener(document.body, "click", onOptionsCancel); resetZIndex(that); try { document.removeEventListener("mouseover", stopHover, true) } catch (e) { that.box.releaseCapture() } } function fixZIndex(that) { if (UA.ie && that.positionParent) { that.realZ = that.positionParent.style.zIndex; that.positionParent.style.zIndex = 10000 } } function resetZIndex(that) { if (UA.ie && that.positionParent) { that.positionParent.style.zIndex = that.realZ } } function next(that) { if (that.currentIndex + 1 < that.data.length) { that.currentIndex = setIndex(that, that.currentIndex + 1) } } function prev(that) { if (that.currentIndex > 0) { that.currentIndex = setIndex(that, that.currentIndex - 1) } } function setIndex(that, index) { for (var i = -1, node; node = that.items[++i]; ) { if (i === index) { D.addClass(node, "checked"); that.label.innerHTML = that.data[i]; that.box.setAttribute("aria-valuenow", that.data[i]); that.realBox.selectedIndex = i } else { D.removeClass(node, "checked") } } return index } function Box(real, activateCallback, positionParent) { this.realBox = real; this.activateCallback = activateCallback; this.positionParent = positionParent; this.items = []; this.data = []; createHTML(this); addBehavior(this) } return { create: function (real, activateCallback, positionParent) { return new Box(real, activateCallback, positionParent) } } } () } ()); (function () { var Y = YAHOO, D = Y.util.Dom, E = Y.util.Event, UA = Y.env.ua; var FOCUS = UA.ie ? "focusin" : "focus", BLUR = UA.ie ? "focusout" : "blur"; var defaultLabelStore = {}, forms = {}; target.NAV.InlineLabel = { apply: function (input) { var label = findLabel(input); if (label) { applyBehavior(input, label) } var form = input.form; if (form) { storeForm(form) } } }; function findLabel(input) { var labels = input.form.parentNode.getElementsByTagName("label"); for (var i = -1, node; node = labels[++i]; ) { if (node.htmlFor === input.id) { return node } } } function applyBehavior(input, label) { defaultLabelStore[input.id] = label.innerHTML; if (input.value === "") { input.value = label.innerHTML } E.on(input, FOCUS, onFocus); E.on(input, BLUR, onBlur) } function onFocus(e) { var label = defaultLabelStore[this.id]; if (label && this.value === label) { this.value = "" } } function onBlur(e) { if (this.value === "") { this.value = defaultLabelStore[this.id] || "" } } function storeForm(form) { if (!forms[form]) { forms[form] = new FixedForm(form) } } function FixedForm(form) { this.form = form; this.inputs = []; E.on(form, "submit", check, this) } function check(form) { form.check() } FixedForm.prototype = { check: function () { for (var i = -1, node; node = this.inputs[++i]; ) { var label = defaultLabelStore[node.id]; if (label && node.value === label) { node.value = "" } } } } } ());

target = window.target || {};
target.NAV = target.NAV || {};
(function () {
    var Y = YAHOO, D = Y.util.Dom, E = Y.util.Event, UA = Y.env.ua, Flyouts = target.NAV.Flyouts, ComboBox = target.NAV.ComboBox;
    target.NAV.ARIA = (UA.gecko && UA.gecko >= 1.9) || (UA.ie && UA.ie >= 8);
    var FOCUS = UA.ie ? "focusin" : "focus", BLUR = UA.ie ? "focusout" : "blur";
    E.onDOMReady(initFlyouts);
    var main, mainItems, sub, subItems, lists, listsItems, combobox, searchInput;
    var newFontSize = false, baseFontSize = 1.2, fontSizeFactor = 30, defaultPadding = 10;
    var flyouts = {};

    function initFlyouts() {
        if (findElements()) {
            addBehavior()
        }
    }
    function findElements() {
        main = document.getElementById("gn_main");

        if (!main) { return false }

        mainItems = main.getElementsByTagName("a");
        sub = document.getElementById("gn_sub");

        if (sub) {
            subItems = sub.getElementsByTagName("li")
        }

        lists = document.getElementById("gn_lists");
        if (lists) { listsItems = lists.getElementsByTagName("li") }
        return true
    } function 

	addBehavior() {
        Flyouts.ieSupport();
        E.on(mainItems, "mouseover", onMouseOver, "Main");
        E.on(mainItems, "mouseout", killDelay);

        if (subItems && subItems.length > 0) {
            E.on(subItems, "mouseover", onMouseOver, "Sub");
            E.on(subItems, "mouseout", killDelay)
        }

        if (listsItems && listsItems.length > 0) {
            E.on(listsItems, "mouseover", onMouseOver, "Special");
            E.on(listsItems, "mouseout", killDelay)
        }

        E.on(document.body, "click", clickBody)
    }

    var delay;

    function onMouseOver(e, type) {
        clearTimeout(delay);
        var trigger = this;
        openFunc = function () {
            if (trigger.nodeName.toLowerCase() === "a") { trigger = trigger.parentNode }

            showFlyout(trigger, type)
        };

        delay = setTimeout(openFunc, 50)
    }

    function killDelay() { clearTimeout(delay) }

    function showFlyout(item, type, focusAfterShow) {
        hideFlyouts();
        if (D.hasClass(item, "gn_active")) { return }
        if (!flyouts[item.id]) { flyouts[item.id] = Flyouts.create(item, type, newFontSize) }
        if (flyouts[item.id]) {
            flyouts[item.id].show();
            if (focusAfterShow) {
                flyouts[item.id].focus()
            }
        }
    }

    function hideFlyouts() {
        for (var id in flyouts) {
            if (flyouts.hasOwnProperty(id) && flyouts[id]) {
                flyouts[id].hide()
            }
        }
    }

    function clickBody(e) {
        var trigger = E.getTarget(e);
        while (trigger.parentNode) {
            if (trigger.id == "gn_fly" || trigger.id == "l2dd_giftfinder" || trigger.id == "l2dd_registry") { return }
            trigger = trigger.parentNode
        } hideFlyouts()
    }
}
());

target.ui.gn.data.supercats = {
    data: {
        text: "supercats_postholiday_2009", ref_format: "nav_t_spc_#f_#m",
        children: [
				{ text: "Annual Meeting", location: "1041790", icnTag: "icn_women",
				    children: [
					{ text: "Abstract Submission", location: "3692501", title: "Abstract Submission" },
					{ text: "Airport Transportation", location: "10825249", title: "Airport Transportation" },
					{ text: "Annual Meeting Travel Grants", location: "10825241", title: "Annual Meeting Travel Grants" },
					{ text: "Exhibitors", location: "13796461", title: "Exhibitors" },
					{ text: "Hotel Reservations", location: "10825256", title: "Hotel Reservations" },
					{ text: "Preliminary Program", location: "10825257", title: "Preliminary Program" },
					{ text: "Register Now", location: "10825253", title: "Register Now" },
					{ text: "Future Meetings", location: "13629631", title: "Future Meetings" },
					{ text: "Past Meetings", location: "12954791", title: "Past Meetings" }
				]
				},
				{ text: "Certification", location: "1041828", icnTag: "icn_men",
				    children: [
					{ text: "Certification for Optometrists", location: "3608901", title: "Certification for Optometrists" },
					{ text: "Certification for Therapists", location: "10825231", title: "Certification for Therapists" },
					{ text: "IECB", location: "10825246", title: "IECB" }
				]
				},
				{ text: "Grants & Awards", location: "1038590", icnTag: "icn_baby",
				    children: [
					{ text: "A.M. Skeffington Award", location: "10825232", title: "A.M. Skeffington Award" },
					{ text: "Annual Meeting Travel Grants", location: "10825241", title: "Annual Meeting Travel Grants" },
					{ text: "G.N. Getman Award", location: "10825233", title: "G.N. Getman Award" },
					{ text: "COVT of the Year Award", location: "10825234", title: "COVT of the Year Award" },
					{ text: "OVD Award for Best Article", location: "10825237", title: "OVD Award for Best Article" },
					{ text: "President's Award", location: "10825236", title: "President's Award" },
					{ text: "Special Awards for Dedicated Service", location: "10825238", title: "Special Awards for Dedicated Service" },
					{ text: "Research Grants", location: "10825239", title: "Research Grants" },
					{ text: "Student Grants & Awards", location: "10825240", title: "Student Grants & Awards" },
					{ text: "Wold Heritage Award", location: "10825235", title: "Wold Heritage Award" }
				]
				},
				{ text: "Public Awareness", location: "1038590", icnTag: "icn_baby",
				    children: [
					{ text: "Children's Vision & Learning Month", location: "10825242", title: "Children's Vision & Learning Month" },
					{ text: "Press Materials", location: "10825243", title: "Press Materials" },
					{ text: "Press Releases", location: "10825260", title: "Press Releases" },
					{ text: "Social Media", location: "10825248", title: "Social Media" },
					{ text: "Support COVD", location: "10825245", title: "Support COVD" },
					{ text: "Tour de Optometry", location: "10825247", title: "Tour de Optometry" }
				]
				},
				{ text: "Members", location: "1041972", icnTag: "icn_kids",
				    children: [
					{ text: "View Profile", location: "10825250", title: "View Profile" },
					{ text: "Update Profile", location: "10825251", title: "Update Profile" },
					{ text: "Become a Member", location: "1240837011", title: "Become a Member" },
					{ text: "Dues Renewal", location: "10825252", title: "Dues Renewal" },
					{ text: "Membership Directory", location: "10825259", title: "Membership Directory" }
				]
				},
			]
    },
    structure: [
			{ counts: [7, 2], columnClasses: [null, "gn_special"], flyoverClass: "col1" },
			{ counts: [3] },
			{ counts: [10] },
			{ counts: [5] },
			{ counts: [5] }
		]
};

