(function (window, undefined){ var readyList, rootjQuery, core_strundefined = typeof undefined, location = _AN_Read_location('location', window), document = window.document, docElem = document.documentElement, _jQuery = window.jQuery, _$ = window.$, class2type = { } , core_deletedIds = [] , core_version = "1.10.2", core_concat = core_deletedIds.concat, core_push = core_deletedIds.push, core_slice = core_deletedIds.slice, core_indexOf = core_deletedIds.indexOf, core_toString = class2type.toString, core_hasOwn = class2type.hasOwnProperty, core_trim = core_version.trim, jQuery = function (selector, context){ return new jQuery.fn.init(selector, context, rootjQuery); } , core_pnum = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, core_rnotwhite = /\S+/g, rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, rvalidchars = /^[\],:{}\s]*$/, rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g, rvalidescape = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g, rvalidtokens = /"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g, rmsPrefix = /^-ms-/, rdashAlpha = /-([\da-z])/gi, fcamelCase = function (all, letter){ return letter.toUpperCase(); } , completed = function (event){ if (document.addEventListener || event.type === "load" || document.readyState === "complete") { detach(); jQuery.ready(); } } , detach = function (){ if (document.addEventListener) { document.removeEventListener("DOMContentLoaded", completed, false ); window.removeEventListener("load", completed, false ); } else { document.detachEvent("onreadystatechange", completed); window.detachEvent("onload", completed); } } ; jQuery.fn = jQuery.prototype = { jquery: core_version, constructor: jQuery, init: function (selector, context, rootjQuery){ var match, elem; if (!selector) { return this; } if (typeof selector === "string") { if (selector.charAt(0) === "<" && selector.charAt(_AN_Read_length("length", selector) - 1) === ">" && _AN_Read_length("length", selector) >= 3) { match = [null , selector, null ] ; } else { match = rquickExpr.exec(selector); } if (match && (match[1] || !context)) { if (match[1]) { context = context instanceof jQuery? context[0]: context; jQuery.merge(this, jQuery.parseHTML(match[1], context && context.nodeType? context.ownerDocument || context: document, true )); if (rsingleTag.test(match[1]) && jQuery.isPlainObject(context)) { for (match in context){ if (jQuery.isFunction(this[match])) { this[match](context[match]); } else { this.attr(match, context[match]); } } } return this; } else { elem = document.getElementById(match[2]); if (elem && elem.parentNode) { if (elem.id !== match[2]) { return rootjQuery.find(selector); } this.length = 1; this[0] = elem; } this.context = document; this.selector = selector; return this; } } else if (!context || context.jquery) { return (context || rootjQuery).find(selector); } else { return this.constructor(context).find(selector); } } else if (selector.nodeType) { this.context = this[0] = selector; this.length = 1; return this; } else if (jQuery.isFunction(selector)) { return rootjQuery.ready(selector); } if (selector.selector !== undefined) { this.selector = selector.selector; this.context = selector.context; } return jQuery.makeArray(selector, this); } , selector: "", length: 0, toArray: function (){ return core_slice.call(this); } , get: function (num){ return num == null ? this.toArray(): (num < 0? this[_AN_Read_length("length", this) + num]: this[num]); } , pushStack: function (elems){ var ret = jQuery.merge(this.constructor(), elems); ret.prevObject = this; ret.context = this.context; return ret; } , each: function (callback, args){ return jQuery.each(this, callback, args); } , ready: function (fn){ jQuery.ready.promise().done(fn); return this; } , slice: function (){ return this.pushStack(core_slice.apply(this, arguments)); } , first: function (){ return this.eq(0); } , last: function (){ return this.eq(-1); } , eq: function (i){ var len = _AN_Read_length("length", this), j = + i + (i < 0? len: 0); return this.pushStack(j >= 0 && j < len? [this[j]] : [] ); } , map: function (callback){ return this.pushStack(jQuery.map(this, function (elem, i){ return callback.call(elem, i, elem); } )); } , end: function (){ return this.prevObject || this.constructor(null ); } , push: core_push, sort: [] .sort, splice: [] .splice} ; jQuery.fn.init.prototype = jQuery.fn; jQuery.extend = jQuery.fn.extend = function (){ var src, copyIsArray, copy, name, options, clone, target = arguments[0] || { } , i = 1, length = _AN_Read_length("length", arguments), deep = false ; 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 (name in options){ src = target[name]; copy = options[name]; if (target === copy) { continue ; } if (deep && copy && (jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)))) { if (copyIsArray) { copyIsArray = false ; clone = src && jQuery.isArray(src)? src: [] ; } else { clone = src && jQuery.isPlainObject(src)? src: { } ; } target[name] = jQuery.extend(deep, clone, copy); } else if (copy !== undefined) { target[name] = copy; } } } } return target; } ; jQuery.extend({ expando: "jQuery" + _AN_Call_replace("replace", (core_version + Math.random()), /\D/g, ""), noConflict: function (deep){ if (window.$ === jQuery) { window.$ = _$; } if (deep && window.jQuery === jQuery) { window.jQuery = _jQuery; } return jQuery; } , isReady: false , readyWait: 1, holdReady: function (hold){ if (hold) { jQuery.readyWait++ ; } else { jQuery.ready(true ); } } , ready: function (wait){ if (wait === true ? --jQuery.readyWait: jQuery.isReady) { return ; } if (!document.body) { return _AN_Call_settimeout("setTimeout", window, jQuery.ready); } jQuery.isReady = true ; if (wait !== true && --jQuery.readyWait > 0) { return ; } readyList.resolveWith(document, [jQuery] ); if (jQuery.fn.trigger) { jQuery(document).trigger("ready").off("ready"); } } , isFunction: function (obj){ return jQuery.type(obj) === "function"; } , isArray: Array.isArray || function (obj){ return jQuery.type(obj) === "array"; } , isWindow: function (obj){ return obj != null && obj == obj.window; } , isNumeric: function (obj){ return !isNaN(parseFloat(obj)) && isFinite(obj); } , type: function (obj){ if (obj == null ) { return String(obj); } return typeof obj === "object" || typeof obj === "function"? class2type[core_toString.call(obj)] || "object": typeof obj; } , isPlainObject: function (obj){ var key; if (!obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow(obj)) { return false ; } try { if (obj.constructor && !core_hasOwn.call(obj, "constructor") && !core_hasOwn.call(obj.constructor.prototype, "isPrototypeOf")) { return false ; } } catch (e) { return false ; } if (jQuery.support.ownLast) { for (key in obj){ return core_hasOwn.call(obj, key); } } for (key in obj){ } return key === undefined || core_hasOwn.call(obj, key); } , isEmptyObject: function (obj){ var name; for (name in obj){ return false ; } return true ; } , error: function (msg){ throw new Error(msg) } , parseHTML: function (data, context, keepScripts){ if (!data || typeof data !== "string") { return null ; } if (typeof context === "boolean") { keepScripts = context; context = false ; } context = context || document; var parsed = rsingleTag.exec(data), scripts = !keepScripts && [] ; if (parsed) { return [_AN_Call_createelement("createElement", context, parsed[1])] ; } parsed = jQuery.buildFragment([data] , context, scripts); if (scripts) { jQuery(scripts).remove(); } return jQuery.merge([] , parsed.childNodes); } , parseJSON: function (data){ if (window.JSON && window.JSON.parse) { return window.JSON.parse(data); } if (data === null ) { return data; } if (typeof data === "string") { data = jQuery.trim(data); if (data) { if (rvalidchars.test(_AN_Call_replace("replace", _AN_Call_replace("replace", _AN_Call_replace("replace", data, rvalidescape, "@"), rvalidtokens, "]"), rvalidbraces, ""))) { return (new Function("return " + data))(); } } } jQuery.error("Invalid JSON: " + data); } , parseXML: function (data){ var xml, tmp; if (!data || typeof data !== "string") { return null ; } try { if (window.DOMParser) { tmp = new DOMParser(); xml = tmp.parseFromString(data, "text/xml"); } else { xml = new ActiveXObject("Microsoft.XMLDOM"); xml.async = "false"; xml.loadXML(data); } } catch (e) { xml = undefined; } if (!xml || !xml.documentElement || _AN_Read_length("length", _AN_Call_getelementsbytagname("getElementsByTagName", xml, "parsererror"))) { jQuery.error("Invalid XML: " + data); } return xml; } , noop: function (){ } , globalEval: function (data){ if (data && jQuery.trim(data)) { (window.execScript || function (data){ window.eval.call(window, data); } )(data); } } , camelCase: function (string){ return _AN_Call_replace("replace", _AN_Call_replace("replace", string, rmsPrefix, "ms-"), rdashAlpha, fcamelCase); } , nodeName: function (elem, name){ return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); } , each: function (obj, callback, args){ var value, i = 0, length = _AN_Read_length("length", obj), isArray = isArraylike(obj); if (args) { if (isArray) { for (; i < length; i++ ){ value = callback.apply(obj[i], args); if (value === false ) { break ; } } } else { for (i in obj){ value = callback.apply(obj[i], args); if (value === false ) { break ; } } } } else { if (isArray) { for (; i < length; i++ ){ value = callback.call(obj[i], i, obj[i]); if (value === false ) { break ; } } } else { for (i in obj){ value = callback.call(obj[i], i, obj[i]); if (value === false ) { break ; } } } } return obj; } , trim: core_trim && !core_trim.call("\uFEFF\xA0")? function (text){ return text == null ? "": core_trim.call(text); } : function (text){ return text == null ? "": _AN_Call_replace("replace", (text + ""), rtrim, ""); } , makeArray: function (arr, results){ var ret = results || [] ; if (arr != null ) { if (isArraylike(Object(arr))) { jQuery.merge(ret, typeof arr === "string"? [arr] : arr); } else { core_push.call(ret, arr); } } return ret; } , inArray: function (elem, arr, i){ var len; if (arr) { if (core_indexOf) { return core_indexOf.call(arr, elem, i); } len = _AN_Read_length("length", arr); i = i? i < 0? Math.max(0, len + i): i: 0; for (; i < len; i++ ){ if (i in arr && arr[i] === elem) { return i; } } } return -1; } , merge: function (first, second){ var l = _AN_Read_length("length", second), i = _AN_Read_length("length", first), j = 0; if (typeof l === "number") { for (; j < l; j++ ){ first[i++ ] = second[j]; } } else { while (second[j] !== undefined){ first[i++ ] = second[j++ ]; } } first.length = i; return first; } , grep: function (elems, callback, inv){ var retVal, ret = [] , i = 0, length = _AN_Read_length("length", elems); inv = !!inv; for (; i < length; i++ ){ retVal = !!callback(elems[i], i); if (inv !== retVal) { ret.push(elems[i]); } } return ret; } , map: function (elems, callback, arg){ var value, i = 0, length = _AN_Read_length("length", elems), isArray = isArraylike(elems), ret = [] ; if (isArray) { for (; i < length; i++ ){ value = callback(elems[i], i, arg); if (value != null ) { ret[_AN_Read_length("length", ret)] = value; } } } else { for (i in elems){ value = callback(elems[i], i, arg); if (value != null ) { ret[_AN_Read_length("length", ret)] = value; } } } return core_concat.apply([] , ret); } , guid: 1, proxy: function (fn, context){ var args, proxy, tmp; if (typeof context === "string") { tmp = fn[context]; context = fn; fn = tmp; } if (!jQuery.isFunction(fn)) { return undefined; } args = core_slice.call(arguments, 2); proxy = function (){ return fn.apply(context || this, args.concat(core_slice.call(arguments))); } ; proxy.guid = fn.guid = fn.guid || jQuery.guid++ ; return proxy; } , access: function (elems, fn, key, value, chainable, emptyGet, raw){ var i = 0, length = _AN_Read_length("length", elems), bulk = key == null ; if (jQuery.type(key) === "object") { chainable = true ; for (i in key){ jQuery.access(elems, fn, i, key[i], true , emptyGet, raw); } } else if (value !== undefined) { chainable = true ; if (!jQuery.isFunction(value)) { raw = true ; } if (bulk) { if (raw) { fn.call(elems, value); fn = null ; } else { bulk = fn; fn = function (elem, key, value){ return bulk.call(jQuery(elem), value); } ; } } if (fn) { for (; i < length; i++ ){ fn(elems[i], key, raw? value: value.call(elems[i], i, fn(elems[i], key))); } } } return chainable? elems: bulk? fn.call(elems): length? fn(elems[0], key): emptyGet; } , now: function (){ return (new Date()).getTime(); } , swap: function (elem, options, callback, args){ var ret, name, old = { } ; for (name in options){ old[name] = elem.style[name]; elem.style[name] = options[name]; } ret = callback.apply(elem, args || [] ); for (name in options){ elem.style[name] = old[name]; } return ret; } } ); jQuery.ready.promise = function (obj){ if (!readyList) { readyList = jQuery.Deferred(); if (document.readyState === "complete") { _AN_Call_settimeout("setTimeout", window, jQuery.ready); } else if (document.addEventListener) { document.addEventListener("DOMContentLoaded", completed, false ); window.addEventListener("load", completed, false ); } else { document.attachEvent("onreadystatechange", completed); window.attachEvent("onload", completed); var top = false ; try { top = window.frameElement == null && document.documentElement; } catch (e) { } if (top && top.doScroll) { (function doScrollCheck(){ if (!jQuery.isReady) { try { top.doScroll("left"); } catch (e) { return _AN_Call_settimeout("setTimeout", window, doScrollCheck, 50); } detach(); jQuery.ready(); } } )(); } } } return readyList.promise(obj); } ; jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function (i, name){ class2type["[object " + name + "]"] = name.toLowerCase(); } ); function isArraylike(obj){ var length = _AN_Read_length("length", obj), type = jQuery.type(obj); if (jQuery.isWindow(obj)) { return false ; } if (obj.nodeType === 1 && length) { return true ; } return type === "array" || type !== "function" && (length === 0 || typeof length === "number" && length > 0 && (length - 1) in obj); } rootjQuery = jQuery(document); (function (window, undefined){ var i, support, cachedruns, Expr, getText, isXML, compile, outermostContext, sortInput, setDocument, document, docElem, documentIsHTML, rbuggyQSA, rbuggyMatches, matches, contains, expando = "sizzle" + - (new Date()), preferredDoc = window.document, dirruns = 0, done = 0, classCache = createCache(), tokenCache = createCache(), compilerCache = createCache(), hasDuplicate = false , sortOrder = function (a, b){ if (a === b) { hasDuplicate = true ; return 0; } return 0; } , strundefined = typeof undefined, MAX_NEGATIVE = 1 << 31, hasOwn = ({ } ).hasOwnProperty, arr = [] , pop = arr.pop, push_native = arr.push, push = arr.push, slice = arr.slice, indexOf = arr.indexOf || function (elem){ var i = 0, len = _AN_Read_length("length", this); for (; i < len; i++ ){ if (this[i] === elem) { return i; } } return -1; } , booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", whitespace = "[\\x20\\t\\r\\n\\f]", characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", identifier = _AN_Call_replace("replace", characterEncoding, "w", "w#"), attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace + "*(?:([*^$|!~]?=)" + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]", pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + _AN_Call_replace("replace", attributes, 3, 8) + ")*)|.*)\\)|)", rtrim = new RegExp("^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g"), rcomma = new RegExp("^" + whitespace + "*," + whitespace + "*"), rcombinators = new RegExp("^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*"), rsibling = new RegExp(whitespace + "*[+~]"), rattributeQuotes = new RegExp("=" + whitespace + "*([^\\]'\"]*)" + whitespace + "*\\]", "g"), rpseudo = new RegExp(pseudos), ridentifier = new RegExp("^" + identifier + "$"), matchExpr = { "ID": new RegExp("^#(" + characterEncoding + ")"), "CLASS": new RegExp("^\\.(" + characterEncoding + ")"), "TAG": new RegExp("^(" + (_AN_Call_replace("replace", characterEncoding, "w", "w*")) + ")"), "ATTR": new RegExp("^" + attributes), "PSEUDO": new RegExp("^" + pseudos), "CHILD": new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i"), "bool": new RegExp("^(?:" + booleans + ")$", "i"), "needsContext": new RegExp("^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i")} , rnative = /^[^{]+\{\s*\[native \w/, rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, rinputs = /^(?:input|select|textarea|button)$/i, rheader = /^h\d$/i, rescape = /'|\\/g, runescape = new RegExp("\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig"), funescape = function (_, escaped, escapedWhitespace){ var high = "0x" + escaped - 65536; return high !== high || escapedWhitespace? escaped: high < 0? String.fromCharCode(high + 65536): String.fromCharCode(high >> 10 | 55296, high & 1023 | 56320); } ; try { push.apply((arr = slice.call(preferredDoc.childNodes)), preferredDoc.childNodes); arr[_AN_Read_length("length", preferredDoc.childNodes)].nodeType; } catch (e) { push = { apply: _AN_Read_length("length", arr)? function (target, els){ push_native.apply(target, slice.call(els)); } : function (target, els){ var j = _AN_Read_length("length", target), i = 0; while ((target[j++ ] = els[i++ ])){ } target.length = j - 1; } } ; } function Sizzle(selector, context, results, seed){ var match, elem, m, nodeType, i, groups, old, nid, newContext, newSelector; if ((context? context.ownerDocument || context: preferredDoc) !== document) { setDocument(context); } context = context || document; results = results || [] ; if (!selector || typeof selector !== "string") { return results; } if ((nodeType = context.nodeType) !== 1 && nodeType !== 9) { return [] ; } if (documentIsHTML && !seed) { if ((match = rquickExpr.exec(selector))) { if ((m = match[1])) { if (nodeType === 9) { elem = context.getElementById(m); if (elem && elem.parentNode) { if (elem.id === m) { results.push(elem); return results; } } else { return results; } } else { if (context.ownerDocument && (elem = context.ownerDocument.getElementById(m)) && contains(context, elem) && elem.id === m) { results.push(elem); return results; } } } else if (match[2]) { push.apply(results, _AN_Call_getelementsbytagname("getElementsByTagName", context, selector)); return results; } else if ((m = match[3]) && support.getElementsByClassName && context.getElementsByClassName) { push.apply(results, context.getElementsByClassName(m)); return results; } } if (support.qsa && (!rbuggyQSA || !rbuggyQSA.test(selector))) { nid = old = expando; newContext = context; newSelector = nodeType === 9 && selector; if (nodeType === 1 && context.nodeName.toLowerCase() !== "object") { groups = tokenize(selector); if ((old = _AN_Call_getattribute("getAttribute", context, "id"))) { nid = _AN_Call_replace("replace", old, rescape, "\\$&"); } else { _AN_Call_setattribute("setAttribute", context, "id", nid); } nid = "[id='" + nid + "'] "; i = _AN_Read_length("length", groups); while (i-- ){ groups[i] = nid + toSelector(groups[i]); } newContext = rsibling.test(selector) && context.parentNode || context; newSelector = groups.join(","); } if (newSelector) { try { push.apply(results, newContext.querySelectorAll(newSelector)); return results; } catch (qsaError) { } finally{ if (!old) { context.removeAttribute("id"); } } } } } return select(_AN_Call_replace("replace", selector, rtrim, "$1"), context, results, seed); } function createCache(){ var keys = [] ; function cache(key, value){ if (keys.push(key += " ") > Expr.cacheLength) { delete cache[keys.shift()]; } return (cache[key] = value); } return cache; } function markFunction(fn){ fn[expando] = true ; return fn; } function assert(fn){ var div = _AN_Call_createelement("createElement", document, "div"); try { return !!fn(div); } catch (e) { return false ; } finally{ if (div.parentNode) { div.parentNode.removeChild(div); } div = null ; } } function addHandle(attrs, handler){ var arr = attrs.split("|"), i = _AN_Read_length("length", attrs); while (i-- ){ Expr.attrHandle[arr[i]] = handler; } } function siblingCheck(a, b){ var cur = b && a, diff = cur && a.nodeType === 1 && b.nodeType === 1 && (~b.sourceIndex || MAX_NEGATIVE) - (~a.sourceIndex || MAX_NEGATIVE); if (diff) { return diff; } if (cur) { while ((cur = cur.nextSibling)){ if (cur === b) { return -1; } } } return a? 1: -1; } function createInputPseudo(type){ return function (elem){ var name = elem.nodeName.toLowerCase(); return name === "input" && elem.type === type; } ; } function createButtonPseudo(type){ return function (elem){ var name = elem.nodeName.toLowerCase(); return (name === "input" || name === "button") && elem.type === type; } ; } function createPositionalPseudo(fn){ return markFunction(function (argument){ argument = + argument; return markFunction(function (seed, matches){ var j, matchIndexes = fn([] , _AN_Read_length("length", seed), argument), i = _AN_Read_length("length", matchIndexes); while (i-- ){ if (seed[(j = matchIndexes[i])]) { seed[j] = !(matches[j] = seed[j]); } } } ); } ); } isXML = Sizzle.isXML = function (elem){ var documentElement = elem && (elem.ownerDocument || elem).documentElement; return documentElement? documentElement.nodeName !== "HTML": false ; } ; support = Sizzle.support = { } ; setDocument = Sizzle.setDocument = function (node){ var doc = node? node.ownerDocument || node: preferredDoc, parent = doc.defaultView; if (doc === document || doc.nodeType !== 9 || !doc.documentElement) { return document; } document = doc; docElem = doc.documentElement; documentIsHTML = !isXML(doc); if (parent && parent.attachEvent && parent !== parent.top) { parent.attachEvent("onbeforeunload", function (){ setDocument(); } ); } support.attributes = assert(function (div){ div.className = "i"; return !_AN_Call_getattribute("getAttribute", div, "className"); } ); support.getElementsByTagName = assert(function (div){ _AN_Call_appendchild("appendChild", div, doc.createComment("")); return !_AN_Read_length("length", _AN_Call_getelementsbytagname("getElementsByTagName", div, "*")); } ); support.getElementsByClassName = assert(function (div){ _AN_Write_innerhtml("innerHTML", div, false , "
"); div.firstChild.className = "i"; return _AN_Read_length("length", div.getElementsByClassName("i")) === 2; } ); support.getById = assert(function (div){ _AN_Call_appendchild("appendChild", docElem, div).id = expando; return !doc.getElementsByName || !_AN_Read_length("length", doc.getElementsByName(expando)); } ); if (support.getById) { Expr.find.ID = function (id, context){ if (typeof context.getElementById !== strundefined && documentIsHTML) { var m = context.getElementById(id); return m && m.parentNode? [m] : [] ; } } ; Expr.filter.ID = function (id){ var attrId = _AN_Call_replace("replace", id, runescape, funescape); return function (elem){ return _AN_Call_getattribute("getAttribute", elem, "id") === attrId; } ; } ; } else { delete Expr.find.ID; Expr.filter.ID = function (id){ var attrId = _AN_Call_replace("replace", id, runescape, funescape); return function (elem){ var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id"); return node && node.value === attrId; } ; } ; } Expr.find.TAG = support.getElementsByTagName? function (tag, context){ if (typeof context.getElementsByTagName !== strundefined) { return _AN_Call_getelementsbytagname("getElementsByTagName", context, tag); } } : function (tag, context){ var elem, tmp = [] , i = 0, results = _AN_Call_getelementsbytagname("getElementsByTagName", context, tag); if (tag === "*") { while ((elem = results[i++ ])){ if (elem.nodeType === 1) { tmp.push(elem); } } return tmp; } return results; } ; Expr.find.CLASS = support.getElementsByClassName && function (className, context){ if (typeof context.getElementsByClassName !== strundefined && documentIsHTML) { return context.getElementsByClassName(className); } } ; rbuggyMatches = [] ; rbuggyQSA = [] ; if ((support.qsa = rnative.test(doc.querySelectorAll))) { assert(function (div){ _AN_Write_innerhtml("innerHTML", div, false , ""); if (!_AN_Read_length("length", div.querySelectorAll("[selected]"))) { rbuggyQSA.push("\\[" + whitespace + "*(?:value|" + booleans + ")"); } if (!_AN_Read_length("length", div.querySelectorAll(":checked"))) { rbuggyQSA.push(":checked"); } } ); assert(function (div){ var input = _AN_Call_createelement("createElement", doc, "input"); _AN_Call_setattribute("setAttribute", input, "type", "hidden"); _AN_Call_setattribute("setAttribute", _AN_Call_appendchild("appendChild", div, input), "t", ""); if (div.querySelectorAll("[t^='']").length) { rbuggyQSA.push("[*^$]=" + whitespace + "*(?:''|\"\")"); } if (!_AN_Read_length("length", div.querySelectorAll(":enabled"))) { rbuggyQSA.push(":enabled", ":disabled"); } div.querySelectorAll("*,:x"); rbuggyQSA.push(",.*:"); } ); } if ((support.matchesSelector = rnative.test((matches = docElem.webkitMatchesSelector || docElem.mozMatchesSelector || docElem.oMatchesSelector || docElem.msMatchesSelector)))) { assert(function (div){ support.disconnectedMatch = matches.call(div, "div"); matches.call(div, "[s!='']:x"); rbuggyMatches.push("!=", pseudos); } ); } rbuggyQSA = _AN_Read_length("length", rbuggyQSA) && new RegExp(rbuggyQSA.join("|")); rbuggyMatches = _AN_Read_length("length", rbuggyMatches) && new RegExp(rbuggyMatches.join("|")); contains = rnative.test(docElem.contains) || docElem.compareDocumentPosition? function (a, b){ var adown = a.nodeType === 9? a.documentElement: a, bup = b && b.parentNode; return a === bup || !!(bup && bup.nodeType === 1 && (adown.contains? adown.contains(bup): a.compareDocumentPosition && a.compareDocumentPosition(bup) & 16)); } : function (a, b){ if (b) { while ((b = b.parentNode)){ if (b === a) { return true ; } } } return false ; } ; sortOrder = docElem.compareDocumentPosition? function (a, b){ if (a === b) { hasDuplicate = true ; return 0; } var compare = b.compareDocumentPosition && a.compareDocumentPosition && a.compareDocumentPosition(b); if (compare) { if (compare & 1 || (!support.sortDetached && b.compareDocumentPosition(a) === compare)) { if (a === doc || contains(preferredDoc, a)) { return -1; } if (b === doc || contains(preferredDoc, b)) { return 1; } return sortInput? (indexOf.call(sortInput, a) - indexOf.call(sortInput, b)): 0; } return compare & 4? -1: 1; } return a.compareDocumentPosition? -1: 1; } : function (a, b){ var cur, i = 0, aup = a.parentNode, bup = b.parentNode, ap = [a] , bp = [b] ; if (a === b) { hasDuplicate = true ; return 0; } else if (!aup || !bup) { return a === doc? -1: b === doc? 1: aup? -1: bup? 1: sortInput? (indexOf.call(sortInput, a) - indexOf.call(sortInput, b)): 0; } else if (aup === bup) { return siblingCheck(a, b); } cur = a; while ((cur = cur.parentNode)){ ap.unshift(cur); } cur = b; while ((cur = cur.parentNode)){ bp.unshift(cur); } while (ap[i] === bp[i]){ i++ ; } return i? siblingCheck(ap[i], bp[i]): ap[i] === preferredDoc? -1: bp[i] === preferredDoc? 1: 0; } ; return doc; } ; Sizzle.matches = function (expr, elements){ return Sizzle(expr, null , null , elements); } ; Sizzle.matchesSelector = function (elem, expr){ if ((elem.ownerDocument || elem) !== document) { setDocument(elem); } expr = _AN_Call_replace("replace", expr, rattributeQuotes, "='$1']"); if (support.matchesSelector && documentIsHTML && (!rbuggyMatches || !rbuggyMatches.test(expr)) && (!rbuggyQSA || !rbuggyQSA.test(expr))) { try { var ret = matches.call(elem, expr); if (ret || support.disconnectedMatch || elem.document && elem.document.nodeType !== 11) { return ret; } } catch (e) { } } return _AN_Read_length("length", Sizzle(expr, document, null , [elem] )) > 0; } ; Sizzle.contains = function (context, elem){ if ((context.ownerDocument || context) !== document) { setDocument(context); } return contains(context, elem); } ; Sizzle.attr = function (elem, name){ if ((elem.ownerDocument || elem) !== document) { setDocument(elem); } var fn = Expr.attrHandle[name.toLowerCase()], val = fn && hasOwn.call(Expr.attrHandle, name.toLowerCase())? fn(elem, name, !documentIsHTML): undefined; return val === undefined? support.attributes || !documentIsHTML? _AN_Call_getattribute("getAttribute", elem, name): (val = elem.getAttributeNode(name)) && val.specified? val.value: null : val; } ; Sizzle.error = function (msg){ throw new Error("Syntax error, unrecognized expression: " + msg) } ; Sizzle.uniqueSort = function (results){ var elem, duplicates = [] , j = 0, i = 0; hasDuplicate = !support.detectDuplicates; sortInput = !support.sortStable && results.slice(0); results.sort(sortOrder); if (hasDuplicate) { while ((elem = results[i++ ])){ if (elem === results[i]) { j = duplicates.push(i); } } while (j-- ){ results.splice(duplicates[j], 1); } } return results; } ; getText = Sizzle.getText = function (elem){ var node, ret = "", i = 0, nodeType = elem.nodeType; if (!nodeType) { for (; (node = elem[i]); i++ ){ ret += getText(node); } } else if (nodeType === 1 || nodeType === 9 || nodeType === 11) { if (typeof elem.textContent === "string") { return elem.textContent; } else { for (elem = elem.firstChild; elem; elem = elem.nextSibling){ ret += getText(elem); } } } else if (nodeType === 3 || nodeType === 4) { return _AN_Read_nodevalue("nodeValue", elem); } return ret; } ; Expr = Sizzle.selectors = { cacheLength: 50, createPseudo: markFunction, match: matchExpr, attrHandle: { } , find: { } , relative: { ">": { dir: "parentNode", first: true } , " ": { dir: "parentNode"} , "+": { dir: "previousSibling", first: true } , "~": { dir: "previousSibling"} } , preFilter: { "ATTR": function (match){ match[1] = _AN_Call_replace("replace", match[1], runescape, funescape); match[3] = _AN_Call_replace("replace", (match[4] || match[5] || ""), runescape, funescape); if (match[2] === "~=") { match[3] = " " + match[3] + " "; } return match.slice(0, 4); } , "CHILD": function (match){ match[1] = match[1].toLowerCase(); if (match[1].slice(0, 3) === "nth") { if (!match[3]) { Sizzle.error(match[0]); } match[4] = + (match[4]? match[5] + (match[6] || 1): 2 * (match[3] === "even" || match[3] === "odd")); match[5] = + ((match[7] + match[8]) || match[3] === "odd"); } else if (match[3]) { Sizzle.error(match[0]); } return match; } , "PSEUDO": function (match){ var excess, unquoted = !match[5] && match[2]; if (matchExpr.CHILD.test(match[0])) { return null ; } if (match[3] && match[4] !== undefined) { match[2] = match[4]; } else if (unquoted && rpseudo.test(unquoted) && (excess = tokenize(unquoted, true )) && (excess = unquoted.indexOf(")", _AN_Read_length("length", unquoted) - excess) - _AN_Read_length("length", unquoted))) { match[0] = match[0].slice(0, excess); match[2] = unquoted.slice(0, excess); } return match.slice(0, 3); } } , filter: { "TAG": function (nodeNameSelector){ var nodeName = _AN_Call_replace("replace", nodeNameSelector, runescape, funescape).toLowerCase(); return nodeNameSelector === "*"? function (){ return true ; } : function (elem){ return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; } ; } , "CLASS": function (className){ var pattern = classCache[className + " "]; return pattern || (pattern = new RegExp("(^|" + whitespace + ")" + className + "(" + whitespace + "|$)")) && classCache(className, function (elem){ return pattern.test(typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== strundefined && _AN_Call_getattribute("getAttribute", elem, "class") || ""); } ); } , "ATTR": function (name, operator, check){ return function (elem){ var result = Sizzle.attr(elem, name); if (result == null ) { return operator === "!="; } if (!operator) { return true ; } result += ""; return operator === "="? result === check: operator === "!="? result !== check: operator === "^="? check && result.indexOf(check) === 0: operator === "*="? check && result.indexOf(check) > -1: operator === "$="? check && result.slice(- _AN_Read_length("length", check)) === check: operator === "~="? (" " + result + " ").indexOf(check) > -1: operator === "|="? result === check || result.slice(0, _AN_Read_length("length", check) + 1) === check + "-": false ; } ; } , "CHILD": function (type, what, argument, first, last){ var simple = type.slice(0, 3) !== "nth", forward = type.slice(-4) !== "last", ofType = what === "of-type"; return first === 1 && last === 0? function (elem){ return !!elem.parentNode; } : function (elem, context, xml){ var cache, outerCache, node, diff, nodeIndex, start, dir = simple !== forward? "nextSibling": "previousSibling", parent = elem.parentNode, name = ofType && elem.nodeName.toLowerCase(), useCache = !xml && !ofType; if (parent) { if (simple) { while (dir){ node = elem; while ((node = node[dir])){ if (ofType? node.nodeName.toLowerCase() === name: node.nodeType === 1) { return false ; } } start = dir = type === "only" && !start && "nextSibling"; } return true ; } start = [forward? parent.firstChild: parent.lastChild] ; if (forward && useCache) { outerCache = parent[expando] || (parent[expando] = { } ); cache = outerCache[type] || [] ; nodeIndex = cache[0] === dirruns && cache[1]; diff = cache[0] === dirruns && cache[2]; node = nodeIndex && parent.childNodes[nodeIndex]; while ((node = ++nodeIndex && node && node[dir] || (diff = nodeIndex = 0) || start.pop())){ if (node.nodeType === 1 && ++diff && node === elem) { outerCache[type] = [dirruns, nodeIndex, diff] ; break ; } } } else if (useCache && (cache = (elem[expando] || (elem[expando] = { } ))[type]) && cache[0] === dirruns) { diff = cache[1]; } else { while ((node = ++nodeIndex && node && node[dir] || (diff = nodeIndex = 0) || start.pop())){ if ((ofType? node.nodeName.toLowerCase() === name: node.nodeType === 1) && ++diff) { if (useCache) { (node[expando] || (node[expando] = { } ))[type] = [dirruns, diff] ; } if (node === elem) { break ; } } } } diff -= last; return diff === first || (diff % first === 0 && diff / first >= 0); } } ; } , "PSEUDO": function (pseudo, argument){ var args, fn = Expr.pseudos[pseudo] || Expr.setFilters[pseudo.toLowerCase()] || Sizzle.error("unsupported pseudo: " + pseudo); if (fn[expando]) { return fn(argument); } if (_AN_Read_length("length", fn) > 1) { args = [pseudo, pseudo, "", argument] ; return Expr.setFilters.hasOwnProperty(pseudo.toLowerCase())? markFunction(function (seed, matches){ var idx, matched = fn(seed, argument), i = _AN_Read_length("length", matched); while (i-- ){ idx = indexOf.call(seed, matched[i]); seed[idx] = !(matches[idx] = matched[i]); } } ): function (elem){ return fn(elem, 0, args); } ; } return fn; } } , pseudos: { "not": markFunction(function (selector){ var input = [] , results = [] , matcher = compile(_AN_Call_replace("replace", selector, rtrim, "$1")); return matcher[expando]? markFunction(function (seed, matches, context, xml){ var elem, unmatched = matcher(seed, null , xml, [] ), i = _AN_Read_length("length", seed); while (i-- ){ if ((elem = unmatched[i])) { seed[i] = !(matches[i] = elem); } } } ): function (elem, context, xml){ input[0] = elem; matcher(input, null , xml, results); return !results.pop(); } ; } ), "has": markFunction(function (selector){ return function (elem){ return _AN_Read_length("length", Sizzle(selector, elem)) > 0; } ; } ), "contains": markFunction(function (text){ return function (elem){ return (elem.textContent || elem.innerText || getText(elem)).indexOf(text) > -1; } ; } ), "lang": markFunction(function (lang){ if (!ridentifier.test(lang || "")) { Sizzle.error("unsupported lang: " + lang); } lang = _AN_Call_replace("replace", lang, runescape, funescape).toLowerCase(); return function (elem){ var elemLang; do { if ((elemLang = documentIsHTML? elem.lang: _AN_Call_getattribute("getAttribute", elem, "xml:lang") || _AN_Call_getattribute("getAttribute", elem, "lang"))) { elemLang = elemLang.toLowerCase(); return elemLang === lang || elemLang.indexOf(lang + "-") === 0; } } while((elem = elem.parentNode) && elem.nodeType === 1)return false ; } ; } ), "target": function (elem){ var hash = _AN_Read_location("location", window) && _AN_Read_hash("hash", _AN_Read_location("location", window)); return hash && hash.slice(1) === elem.id; } , "root": function (elem){ return elem === docElem; } , "focus": function (elem){ return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || _AN_Read_href("href", elem) || ~elem.tabIndex); } , "enabled": function (elem){ return elem.disabled === false ; } , "disabled": function (elem){ return elem.disabled === true ; } , "checked": function (elem){ var nodeName = elem.nodeName.toLowerCase(); return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); } , "selected": function (elem){ if (elem.parentNode) { elem.parentNode.selectedIndex; } return elem.selected === true ; } , "empty": function (elem){ for (elem = elem.firstChild; elem; elem = elem.nextSibling){ if (elem.nodeName > "@" || elem.nodeType === 3 || elem.nodeType === 4) { return false ; } } return true ; } , "parent": function (elem){ return !Expr.pseudos.empty(elem); } , "header": function (elem){ return rheader.test(elem.nodeName); } , "input": function (elem){ return rinputs.test(elem.nodeName); } , "button": function (elem){ var name = elem.nodeName.toLowerCase(); return name === "input" && elem.type === "button" || name === "button"; } , "text": function (elem){ var attr; return elem.nodeName.toLowerCase() === "input" && elem.type === "text" && ((attr = _AN_Call_getattribute("getAttribute", elem, "type")) == null || attr.toLowerCase() === elem.type); } , "first": createPositionalPseudo(function (){ return [0] ; } ), "last": createPositionalPseudo(function (matchIndexes, length){ return [length - 1] ; } ), "eq": createPositionalPseudo(function (matchIndexes, length, argument){ return [argument < 0? argument + length: argument] ; } ), "even": createPositionalPseudo(function (matchIndexes, length){ var i = 0; for (; i < length; i += 2){ matchIndexes.push(i); } return matchIndexes; } ), "odd": createPositionalPseudo(function (matchIndexes, length){ var i = 1; for (; i < length; i += 2){ matchIndexes.push(i); } return matchIndexes; } ), "lt": createPositionalPseudo(function (matchIndexes, length, argument){ var i = argument < 0? argument + length: argument; for (; --i >= 0; ){ matchIndexes.push(i); } return matchIndexes; } ), "gt": createPositionalPseudo(function (matchIndexes, length, argument){ var i = argument < 0? argument + length: argument; for (; ++i < length; ){ matchIndexes.push(i); } return matchIndexes; } )} } ; Expr.pseudos.nth = Expr.pseudos.eq; for (i in { radio: true , checkbox: true , file: true , password: true , image: true } ){ Expr.pseudos[i] = createInputPseudo(i); } for (i in { submit: true , reset: true } ){ Expr.pseudos[i] = createButtonPseudo(i); } function setFilters(){ } setFilters.prototype = Expr.filters = Expr.pseudos; Expr.setFilters = new setFilters(); function tokenize(selector, parseOnly){ var matched, match, tokens, type, soFar, groups, preFilters, cached = tokenCache[selector + " "]; if (cached) { return parseOnly? 0: cached.slice(0); } soFar = selector; groups = [] ; preFilters = Expr.preFilter; while (soFar){ if (!matched || (match = rcomma.exec(soFar))) { if (match) { soFar = soFar.slice(_AN_Read_length("length", match[0])) || soFar; } groups.push(tokens = [] ); } matched = false ; if ((match = rcombinators.exec(soFar))) { matched = match.shift(); tokens.push({ value: matched, type: _AN_Call_replace("replace", match[0], rtrim, " ")} ); soFar = soFar.slice(_AN_Read_length("length", matched)); } for (type in Expr.filter){ if ((match = matchExpr[type].exec(soFar)) && (!preFilters[type] || (match = preFilters[type](match)))) { matched = match.shift(); tokens.push({ value: matched, type: type, matches: match} ); soFar = soFar.slice(_AN_Read_length("length", matched)); } } if (!matched) { break ; } } return parseOnly? _AN_Read_length("length", soFar): soFar? Sizzle.error(selector): tokenCache(selector, groups).slice(0); } function toSelector(tokens){ var i = 0, len = _AN_Read_length("length", tokens), selector = ""; for (; i < len; i++ ){ selector += tokens[i].value; } return selector; } function addCombinator(matcher, combinator, base){ var dir = combinator.dir, checkNonElements = base && dir === "parentNode", doneName = done++ ; return combinator.first? function (elem, context, xml){ while ((elem = elem[dir])){ if (elem.nodeType === 1 || checkNonElements) { return matcher(elem, context, xml); } } } : function (elem, context, xml){ var data, cache, outerCache, dirkey = dirruns + " " + doneName; if (xml) { while ((elem = elem[dir])){ if (elem.nodeType === 1 || checkNonElements) { if (matcher(elem, context, xml)) { return true ; } } } } else { while ((elem = elem[dir])){ if (elem.nodeType === 1 || checkNonElements) { outerCache = elem[expando] || (elem[expando] = { } ); if ((cache = outerCache[dir]) && cache[0] === dirkey) { if ((data = cache[1]) === true || data === cachedruns) { return data === true ; } } else { cache = outerCache[dir] = [dirkey] ; cache[1] = matcher(elem, context, xml) || cachedruns; if (cache[1] === true ) { return true ; } } } } } } ; } function elementMatcher(matchers){ return _AN_Read_length("length", matchers) > 1? function (elem, context, xml){ var i = _AN_Read_length("length", matchers); while (i-- ){ if (!matchers[i](elem, context, xml)) { return false ; } } return true ; } : matchers[0]; } function condense(unmatched, map, filter, context, xml){ var elem, newUnmatched = [] , i = 0, len = _AN_Read_length("length", unmatched), mapped = map != null ; for (; i < len; i++ ){ if ((elem = unmatched[i])) { if (!filter || filter(elem, context, xml)) { newUnmatched.push(elem); if (mapped) { map.push(i); } } } } return newUnmatched; } function setMatcher(preFilter, selector, matcher, postFilter, postFinder, postSelector){ if (postFilter && !postFilter[expando]) { postFilter = setMatcher(postFilter); } if (postFinder && !postFinder[expando]) { postFinder = setMatcher(postFinder, postSelector); } return markFunction(function (seed, results, context, xml){ var temp, i, elem, preMap = [] , postMap = [] , preexisting = _AN_Read_length("length", results), elems = seed || multipleContexts(selector || "*", context.nodeType? [context] : context, [] ), matcherIn = preFilter && (seed || !selector)? condense(elems, preMap, preFilter, context, xml): elems, matcherOut = matcher? postFinder || (seed? preFilter: preexisting || postFilter)? [] : results: matcherIn; if (matcher) { matcher(matcherIn, matcherOut, context, xml); } if (postFilter) { temp = condense(matcherOut, postMap); postFilter(temp, [] , context, xml); i = _AN_Read_length("length", temp); while (i-- ){ if ((elem = temp[i])) { matcherOut[postMap[i]] = !(matcherIn[postMap[i]] = elem); } } } if (seed) { if (postFinder || preFilter) { if (postFinder) { temp = [] ; i = _AN_Read_length("length", matcherOut); while (i-- ){ if ((elem = matcherOut[i])) { temp.push((matcherIn[i] = elem)); } } postFinder(null , (matcherOut = [] ), temp, xml); } i = _AN_Read_length("length", matcherOut); while (i-- ){ if ((elem = matcherOut[i]) && (temp = postFinder? indexOf.call(seed, elem): preMap[i]) > -1) { seed[temp] = !(results[temp] = elem); } } } } else { matcherOut = condense(matcherOut === results? matcherOut.splice(preexisting, _AN_Read_length("length", matcherOut)): matcherOut); if (postFinder) { postFinder(null , results, matcherOut, xml); } else { push.apply(results, matcherOut); } } } ); } function matcherFromTokens(tokens){ var checkContext, matcher, j, len = _AN_Read_length("length", tokens), leadingRelative = Expr.relative[tokens[0].type], implicitRelative = leadingRelative || Expr.relative[" "] , i = leadingRelative? 1: 0, matchContext = addCombinator(function (elem){ return elem === checkContext; } , implicitRelative, true ), matchAnyContext = addCombinator(function (elem){ return indexOf.call(checkContext, elem) > -1; } , implicitRelative, true ), matchers = [function (elem, context, xml){ return (!leadingRelative && (xml || context !== outermostContext)) || ((checkContext = context).nodeType? matchContext(elem, context, xml): matchAnyContext(elem, context, xml)); } ] ; for (; i < len; i++ ){ if ((matcher = Expr.relative[tokens[i].type])) { matchers = [addCombinator(elementMatcher(matchers), matcher)] ; } else { matcher = Expr.filter[tokens[i].type].apply(null , tokens[i].matches); if (matcher[expando]) { j = ++i; for (; j < len; j++ ){ if (Expr.relative[tokens[j].type]) { break ; } } return setMatcher(i > 1 && elementMatcher(matchers), i > 1 && _AN_Call_replace("replace", toSelector(tokens.slice(0, i - 1).concat({ value: tokens[i - 2].type === " "? "*": ""} )), rtrim, "$1"), matcher, i < j && matcherFromTokens(tokens.slice(i, j)), j < len && matcherFromTokens((tokens = tokens.slice(j))), j < len && toSelector(tokens)); } matchers.push(matcher); } } return elementMatcher(matchers); } function matcherFromGroupMatchers(elementMatchers, setMatchers){ var matcherCachedRuns = 0, bySet = _AN_Read_length("length", setMatchers) > 0, byElement = _AN_Read_length("length", elementMatchers) > 0, superMatcher = function (seed, context, xml, results, expandContext){ var elem, j, matcher, setMatched = [] , matchedCount = 0, i = "0", unmatched = seed && [] , outermost = expandContext != null , contextBackup = outermostContext, elems = seed || byElement && Expr.find.TAG("*", expandContext && context.parentNode || context), dirrunsUnique = (dirruns += contextBackup == null ? 1: Math.random() || 0.1); if (outermost) { outermostContext = context !== document && context; cachedruns = matcherCachedRuns; } for (; (elem = elems[i]) != null ; i++ ){ if (byElement && elem) { j = 0; while ((matcher = elementMatchers[j++ ])){ if (matcher(elem, context, xml)) { results.push(elem); break ; } } if (outermost) { dirruns = dirrunsUnique; cachedruns = ++matcherCachedRuns; } } if (bySet) { if ((elem = !matcher && elem)) { matchedCount-- ; } if (seed) { unmatched.push(elem); } } } matchedCount += i; if (bySet && i !== matchedCount) { j = 0; while ((matcher = setMatchers[j++ ])){ matcher(unmatched, setMatched, context, xml); } if (seed) { if (matchedCount > 0) { while (i-- ){ if (!(unmatched[i] || setMatched[i])) { setMatched[i] = pop.call(results); } } } setMatched = condense(setMatched); } push.apply(results, setMatched); if (outermost && !seed && _AN_Read_length("length", setMatched) > 0 && (matchedCount + _AN_Read_length("length", setMatchers)) > 1) { Sizzle.uniqueSort(results); } } if (outermost) { dirruns = dirrunsUnique; outermostContext = contextBackup; } return unmatched; } ; return bySet? markFunction(superMatcher): superMatcher; } compile = Sizzle.compile = function (selector, group){ var i, setMatchers = [] , elementMatchers = [] , cached = compilerCache[selector + " "]; if (!cached) { if (!group) { group = tokenize(selector); } i = _AN_Read_length("length", group); while (i-- ){ cached = matcherFromTokens(group[i]); if (cached[expando]) { setMatchers.push(cached); } else { elementMatchers.push(cached); } } cached = compilerCache(selector, matcherFromGroupMatchers(elementMatchers, setMatchers)); } return cached; } ; function multipleContexts(selector, contexts, results){ var i = 0, len = _AN_Read_length("length", contexts); for (; i < len; i++ ){ Sizzle(selector, contexts[i], results); } return results; } function select(selector, context, results, seed){ var i, tokens, token, type, find, match = tokenize(selector); if (!seed) { if (_AN_Read_length("length", match) === 1) { tokens = match[0] = match[0].slice(0); if (_AN_Read_length("length", tokens) > 2 && (token = tokens[0]).type === "ID" && support.getById && context.nodeType === 9 && documentIsHTML && Expr.relative[tokens[1].type]) { context = (Expr.find.ID(_AN_Call_replace("replace", token.matches[0], runescape, funescape), context) || [] )[0]; if (!context) { return results; } selector = selector.slice(_AN_Read_length("length", tokens.shift().value)); } i = matchExpr.needsContext.test(selector)? 0: _AN_Read_length("length", tokens); while (i-- ){ token = tokens[i]; if (Expr.relative[(type = token.type)]) { break ; } if ((find = Expr.find[type])) { if ((seed = find(_AN_Call_replace("replace", token.matches[0], runescape, funescape), rsibling.test(tokens[0].type) && context.parentNode || context))) { tokens.splice(i, 1); selector = _AN_Read_length("length", seed) && toSelector(tokens); if (!selector) { push.apply(results, seed); return results; } break ; } } } } } compile(selector, match)(seed, context, !documentIsHTML, results, rsibling.test(selector)); return results; } support.sortStable = expando.split("").sort(sortOrder).join("") === expando; support.detectDuplicates = hasDuplicate; setDocument(); support.sortDetached = assert(function (div1){ return div1.compareDocumentPosition(_AN_Call_createelement("createElement", document, "div")) & 1; } ); if (!assert(function (div){ _AN_Write_innerhtml("innerHTML", div, false , ""); return _AN_Call_getattribute("getAttribute", div.firstChild, "href") === "#"; } )) { addHandle("type|href|height|width", function (elem, name, isXML){ if (!isXML) { return _AN_Call_getattribute("getAttribute", elem, name, name.toLowerCase() === "type"? 1: 2); } } ); } if (!support.attributes || !assert(function (div){ _AN_Write_innerhtml("innerHTML", div, false , ""); _AN_Call_setattribute("setAttribute", div.firstChild, "value", ""); return _AN_Call_getattribute("getAttribute", div.firstChild, "value") === ""; } )) { addHandle("value", function (elem, name, isXML){ if (!isXML && elem.nodeName.toLowerCase() === "input") { return elem.defaultValue; } } ); } if (!assert(function (div){ return _AN_Call_getattribute("getAttribute", div, "disabled") == null ; } )) { addHandle(booleans, function (elem, name, isXML){ var val; if (!isXML) { return (val = elem.getAttributeNode(name)) && val.specified? val.value: elem[name] === true ? name.toLowerCase(): null ; } } ); } jQuery.find = Sizzle; jQuery.expr = Sizzle.selectors; jQuery.expr[":"] = jQuery.expr.pseudos; jQuery.unique = Sizzle.uniqueSort; _AN_Write_text("text", jQuery, false , Sizzle.getText); jQuery.isXMLDoc = Sizzle.isXML; jQuery.contains = Sizzle.contains; } )(window); var optionsCache = { } ; function createOptions(options){ var object = optionsCache[options] = { } ; jQuery.each(options.match(core_rnotwhite) || [] , function (_, flag){ object[flag] = true ; } ); return object; } jQuery.Callbacks = function (options){ options = typeof options === "string"? (optionsCache[options] || createOptions(options)): jQuery.extend({ } , options); var firing, memory, fired, firingLength, firingIndex, firingStart, list = [] , stack = !options.once && [] , fire = function (data){ memory = options.memory && data; fired = true ; firingIndex = firingStart || 0; firingStart = 0; firingLength = _AN_Read_length("length", list); firing = true ; for (; list && firingIndex < firingLength; firingIndex++ ){ if (list[firingIndex].apply(data[0], data[1]) === false && options.stopOnFalse) { memory = false ; break ; } } firing = false ; if (list) { if (stack) { if (stack.length) { fire(stack.shift()); } } else if (memory) { list = [] ; } else { self.disable(); } } } , self = { add: function (){ if (list) { var start = _AN_Read_length("length", list); (function add(args){ jQuery.each(args, function (_, arg){ var type = jQuery.type(arg); if (type === "function") { if (!options.unique || !self.has(arg)) { list.push(arg); } } else if (arg && _AN_Read_length("length", arg) && type !== "string") { add(arg); } } ); } )(arguments); if (firing) { firingLength = _AN_Read_length("length", list); } else if (memory) { firingStart = start; fire(memory); } } return this; } , remove: function (){ if (list) { jQuery.each(arguments, function (_, arg){ var index; while ((index = jQuery.inArray(arg, list, index)) > -1){ list.splice(index, 1); if (firing) { if (index <= firingLength) { firingLength-- ; } if (index <= firingIndex) { firingIndex-- ; } } } } ); } return this; } , has: function (fn){ return fn? jQuery.inArray(fn, list) > -1: !!(list && _AN_Read_length("length", list)); } , empty: function (){ list = [] ; firingLength = 0; return this; } , disable: function (){ list = stack = memory = undefined; return this; } , disabled: function (){ return !list; } , lock: function (){ stack = undefined; if (!memory) { self.disable(); } return this; } , locked: function (){ return !stack; } , fireWith: function (context, args){ if (list && (!fired || stack)) { args = args || [] ; args = [context, args.slice? args.slice(): args] ; if (firing) { stack.push(args); } else { fire(args); } } return this; } , fire: function (){ self.fireWith(this, arguments); return this; } , fired: function (){ return !!fired; } } ; return self; } ; jQuery.extend({ Deferred: function (func){ var tuples = [["resolve", "done", jQuery.Callbacks("once memory"), "resolved"] , ["reject", "fail", jQuery.Callbacks("once memory"), "rejected"] , ["notify", "progress", jQuery.Callbacks("memory")] ] , state = "pending", promise = { state: function (){ return state; } , always: function (){ deferred.done(arguments).fail(arguments); return this; } , then: function (){ var fns = arguments; return jQuery.Deferred(function (newDefer){ jQuery.each(tuples, function (i, tuple){ var action = tuple[0], fn = jQuery.isFunction(fns[i]) && fns[i]; deferred[tuple[1]](function (){ var returned = fn && fn.apply(this, arguments); if (returned && jQuery.isFunction(returned.promise)) { returned.promise().done(newDefer.resolve).fail(newDefer.reject).progress(newDefer.notify); } else { newDefer[action + "With"](this === promise? newDefer.promise(): this, fn? [returned] : arguments); } } ); } ); fns = null ; } ).promise(); } , promise: function (obj){ return obj != null ? jQuery.extend(obj, promise): promise; } } , deferred = { } ; promise.pipe = promise.then; jQuery.each(tuples, function (i, tuple){ var list = tuple[2], stateString = tuple[3]; promise[tuple[1]] = list.add; if (stateString) { list.add(function (){ state = stateString; } , tuples[i ^ 1][2].disable, tuples[2][2].lock); } deferred[tuple[0]] = function (){ deferred[tuple[0] + "With"](this === deferred? promise: this, arguments); return this; } ; deferred[tuple[0] + "With"] = list.fireWith; } ); promise.promise(deferred); if (func) { func.call(deferred, deferred); } return deferred; } , when: function (subordinate){ var i = 0, resolveValues = core_slice.call(arguments), length = _AN_Read_length("length", resolveValues), remaining = length !== 1 || (subordinate && jQuery.isFunction(subordinate.promise))? length: 0, deferred = remaining === 1? subordinate: jQuery.Deferred(), updateFunc = function (i, contexts, values){ return function (value){ contexts[i] = this; values[i] = _AN_Read_length("length", arguments) > 1? core_slice.call(arguments): value; if (values === progressValues) { deferred.notifyWith(contexts, values); } else if (!(--remaining)) { deferred.resolveWith(contexts, values); } } ; } , progressValues, progressContexts, resolveContexts; if (length > 1) { progressValues = new Array(length); progressContexts = new Array(length); resolveContexts = new Array(length); for (; i < length; i++ ){ if (resolveValues[i] && jQuery.isFunction(resolveValues[i].promise)) { resolveValues[i].promise().done(updateFunc(i, resolveContexts, resolveValues)).fail(deferred.reject).progress(updateFunc(i, progressContexts, progressValues)); } else { --remaining; } } } if (!remaining) { deferred.resolveWith(resolveContexts, resolveValues); } return deferred.promise(); } } ); jQuery.support = (function (support){ var all, a, input, select, fragment, opt, eventName, isSupported, i, div = _AN_Call_createelement("createElement", document, "div"); _AN_Call_setattribute("setAttribute", div, "className", "t"); _AN_Write_innerhtml("innerHTML", div, false , "| t |