(function (window, undefined){ var tokenize, document = window.document, docElem = document.documentElement, expando = _AN_Call_replace('replace', ("sizcache" + Math.random()), ".", ""), done = 0, strundefined = "undefined", hasDuplicate = false , baseHasDuplicate = true , rquickExpr = /^#([\w\-]+$)|^(\w+$)|^\.([\w\-]+$)/, rcomma = /^[\x20\t\n\r\f]*,[\x20\t\n\r\f]*/, rcombinators = /^[\x20\t\n\r\f]*([\s>~+])[\x20\t\n\r\f]*/, rbackslash = /\\(?!\\)/g, rsibling = /^[\x20\t\n\r\f]*[+~][\x20\t\n\r\f]*$/, rnonDigit = /\D/, rnth = /(-?)(\d*)(?:n([+\-]?\d*))?/, radjacent = /^\+|[\x20\t\n\r\f]*/g, rheader = /h\d/i, rinputs = /input|select|textarea|button/i, characterEncoding = "(?:[-\\w]|[^\\x00-\\xa0]|\\\\.)", identifier = "(?:-?[#_a-zA-Z]{1}[-\\w]*|[^\\x00-\\xa0]+|\\\\.+)", whitespace = "[\\x20\\t\\n\\r\\f]", operators = "([~*^$|!]?={1})", attributes = "\\[" + whitespace + "*(" + characterEncoding + "+)" + whitespace + "*(?:" + operators + whitespace + "*(?:(['\"])(.*?)\\3|(" + identifier + "+)|)|)" + whitespace + "*\\]", pseudos = ":(" + characterEncoding + "+)(?:\\((['\"]?)((?:\\([^\\)]+\\)|[^\\(\\)]*)+)\\2\\))?", pos = ":(nth|eq|gt|lt|first|last|even|odd)(?:\\((\\d*)\\))?(?=[^\\-]|$)", matchExpr = { ID: new RegExp("^#(" + characterEncoding + "+)"), CLASS: new RegExp("^\\.(" + characterEncoding + "+)"), NAME: new RegExp("^\\[name=['\"]?(" + characterEncoding + "+)['\"]?\\]"), TAG: new RegExp("^(" + (_AN_Call_replace("replace", characterEncoding, "[-", "[-\\*")) + "+)"), ATTR: new RegExp("^" + attributes), PSEUDO: new RegExp("^" + pseudos), CHILD: new RegExp("^:(only|nth|last|first)-child(?:\\(" + whitespace + "*(even|odd|(?:[+\\-]?\\d+|(?:[+\\-]?\\d*)?n" + whitespace + "*(?:[+\\-]" + whitespace + "*\\d+)?))" + whitespace + "*\\))?"), POS: new RegExp("^" + pos), globalPOS: new RegExp(pos)} , rtokens = new RegExp("(" + attributes + "|" + pseudos + "|\\\\[>+~]|[^\\s>+~]|\\\\.)+|" + (_AN_Call_replace("replace", rcombinators.source, "^", "")), "g"), rgroups = new RegExp("(" + "[^,\\\\\\[\\]]+" + "|" + (/\[[^\[]*\]/).source + "|" + (/\([^\(]*\)/).source + "|\\\\.)+", "g"), rpos = new RegExp(pos, "g"), rposgroups = new RegExp("^" + pos + "(?!" + whitespace + ")"), rendsWithNot = /:not\($/, maxCacheLength = 50, classCache = { } , cachedClasses = [] , compilerCache = { } , cachedSelectors = [] , markFunction = function (fn){ fn.sizzleFilter = true ; return fn; } , createInputFunction = function (type){ return function (elem){ return elem.nodeName.toLowerCase() === "input" && elem.type === type; } ; } , createButtonFunction = function (type){ return function (elem){ var name = elem.nodeName.toLowerCase(); return (name === "input" || name === "button") && elem.type === type; } ; } , assert = function (fn){ var pass = false , div = _AN_Call_createelement("createElement", document, "div"); try { pass = fn(div); } catch (e) { } div = null ; return pass; } , assertAttributes = assert(function (div){ _AN_Write_innerhtml("innerHTML", div, false , ""); var type = typeof _AN_Call_getattribute("getAttribute", div.lastChild, "multiple"); return type !== "boolean" && type !== "string"; } ), assertGetIdNotName = assert(function (div){ var pass = true , id = "script" + (new Date()).getTime(); _AN_Write_innerhtml("innerHTML", div, false , ""); docElem.insertBefore(div, docElem.firstChild); if (document.getElementById(id)) { pass = false ; } docElem.removeChild(div); return pass; } ), assertTagNameNoComments = assert(function (div){ _AN_Call_appendchild("appendChild", div, document.createComment("")); return _AN_Read_length("length", _AN_Call_getelementsbytagname("getElementsByTagName", div, "*")) === 0; } ), assertHrefNotNormalized = assert(function (div){ _AN_Write_innerhtml("innerHTML", div, false , ""); return div.firstChild && typeof div.firstChild.getAttribute !== strundefined && _AN_Call_getattribute("getAttribute", div.firstChild, "href") === "#"; } ), assertUsableClassName = assert(function (div){ _AN_Write_innerhtml("innerHTML", div, false , "
"); if (!div.getElementsByClassName || _AN_Read_length("length", div.getElementsByClassName("e")) === 0) { return false ; } div.lastChild.className = "e"; return _AN_Read_length("length", div.getElementsByClassName("e")) !== 1; } ); var Sizzle = function (selector, context, results, seed){ results = results || [] ; context = context || document; var match, elem, xml, m, nodeType = context.nodeType; if (nodeType !== 1 && nodeType !== 9) { return [] ; } if (!selector || typeof selector !== "string") { return results; } xml = isXML(context); if (!xml && !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) { return makeArray([elem] , results); } } else { return makeArray([] , results); } } else { if (context.ownerDocument && (elem = context.ownerDocument.getElementById(m)) && contains(context, elem) && elem.id === m) { return makeArray([elem] , results); } } } else if (match[2]) { return makeArray(_AN_Call_getelementsbytagname("getElementsByTagName", context, selector), results); } else if (assertUsableClassName && context.getElementsByClassName && (m = match[3])) { return makeArray(context.getElementsByClassName(m), results); } } } return select(selector, context, results, seed, xml); } ; var Expr = Sizzle.selectors = { match: matchExpr, order: ["ID", "TAG", "NAME"] , attrHandle: { } , find: { ID: assertGetIdNotName? function (id, context, xml){ if (typeof context.getElementById !== strundefined && !xml) { var m = context.getElementById(id); return m && m.parentNode? [m] : [] ; } } : function (id, context, xml){ if (typeof context.getElementById !== strundefined && !xml) { var m = context.getElementById(id); return m? m.id === id || typeof m.getAttributeNode !== strundefined && m.getAttributeNode("id").value === id? [m] : undefined: [] ; } } , NAME: function (name, context){ if (typeof context.getElementsByName !== strundefined) { var ret = [] , results = context.getElementsByName(name), i = 0, len = _AN_Read_length("length", results); for (; i < len; i++ ){ if (_AN_Call_getattribute("getAttribute", results[i], "name") === name) { ret.push(results[i]); } } return !_AN_Read_length("length", ret)? null : ret; } } , TAG: assertTagNameNoComments? function (tag, context){ if (typeof context.getElementsByTagName !== strundefined) { return _AN_Call_getelementsbytagname("getElementsByTagName", context, tag); } } : function (tag, context){ var results = _AN_Call_getelementsbytagname("getElementsByTagName", context, tag); if (tag === "*") { var tmp = [] , i = 0; for (; results[i]; i++ ){ if (results[i].nodeType === 1) { tmp.push(results[i]); } } results = tmp; } return results; } } , relative: { ">": { dir: "parentNode", firstMatch: true } , " ": { dir: "parentNode"} , "+": { dir: "previousSibling", firstMatch: true } , "~": { dir: "previousSibling"} } , preFilter: { ATTR: function (match){ match[1] = _AN_Call_replace("replace", match[1], rbackslash, ""); match[3] = _AN_Call_replace("replace", (match[4] || match[5] || ""), rbackslash, ""); if (match[2] === "~=") { match[3] = " " + match[3] + " "; } return match.slice(0, 4); } , CHILD: function (match){ if (match[1] === "nth") { if (!match[2]) { Sizzle.error(match[0]); } match[2] = _AN_Call_replace("replace", match[2], radjacent, ""); var test = rnth.exec(match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" || !rnonDigit.test(match[2]) && "0n+" + match[2] || match[2]); match[2] = (test[1] + (test[2] || 1)) - 0; match[3] = test[3] - 0; } else if (match[2]) { Sizzle.error(match[0]); } return match; } , PSEUDO: function (match){ if (matchExpr.POS.test(match[0]) || matchExpr.CHILD.test(match[0])) { return null ; } return match; } } , filter: { ID: assertGetIdNotName? function (id){ id = _AN_Call_replace("replace", id, rbackslash, ""); return function (elem){ return _AN_Call_getattribute("getAttribute", elem, "id") === id; } ; } : function (id){ id = _AN_Call_replace("replace", id, rbackslash, ""); return function (elem){ var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id"); return node && node.value === id; } ; } , TAG: function (nodeName){ if (nodeName === "*") { return function (){ return true ; } ; } nodeName = _AN_Call_replace("replace", nodeName, rbackslash, "").toLowerCase(); return function (elem){ return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; } ; } , CLASS: function (className){ var pattern = classCache[className]; if (!pattern) { pattern = classCache[className] = new RegExp("(^|" + whitespace + ")" + className + "(" + whitespace + "|$)"); cachedClasses.push(className); if (_AN_Read_length("length", cachedClasses) > maxCacheLength) { delete classCache[cachedClasses.shift()]; } } return function (elem){ return pattern.test(elem.className || _AN_Call_getattribute("getAttribute", elem, "class")); } ; } , ATTR: function (name, operator, check){ if (!operator) { return function (elem){ return Sizzle.attr(elem, name) != null ; } ; } return function (elem){ var result = Sizzle.attr(elem, name), value = result + ""; if (result == null ) { return operator === "!="; } switch (operator){ case "=": return value === check; case "!=": return value !== check; case "^=": return check && value.indexOf(check) === 0; case "*=": return check && value.indexOf(check) > -1; case "$=": return check && value.substr(_AN_Read_length("length", value) - _AN_Read_length("length", check)) === check; case "~=": return (" " + value + " ").indexOf(check) > -1; case "|=": return value === check || value.substr(0, _AN_Read_length("length", check) + 1) === check + "-"; } } ; } , CHILD: function (type, first, last){ if (type === "nth") { var doneName = ++done; return function (elem){ var parent, count, diff, node = elem; if (first === 1 && last === 0) { return true ; } parent = elem.parentNode; if (parent && (parent[expando] !== doneName || !elem.sizset)) { count = 0; for (node = parent.firstChild; node; node = node.nextSibling){ if (node.nodeType === 1) { node.sizset = ++count; if (node === elem) { break ; } } } parent[expando] = doneName; } diff = elem.sizset - last; if (first === 0) { return diff === 0; } else { return (diff % first === 0 && diff / first >= 0); } } ; } return function (elem){ var 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 ; } } ; } , PSEUDO: function (pseudo, possibleQuote, argument, context, xml){ var fn = Expr.pseudos[pseudo]; if (!fn) { Sizzle.error("unsupported pseudo: " + pseudo); } if (!fn.sizzleFilter) { return fn; } return fn(argument, context, xml); } } , pseudos: { not: markFunction(function (selector, context, xml){ var matcher = compile(selector, context, xml); return function (elem){ return !matcher(elem); } ; } ), 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 ; } , parent: function (elem){ return !!elem.firstChild; } , empty: function (elem){ return !elem.firstChild; } , contains: markFunction(function (text){ return function (elem){ return (elem.textContent || elem.innerText || getText(elem)).indexOf(text) > -1; } ; } ), has: markFunction(function (selector){ return function (elem){ return !!_AN_Read_length("length", Sizzle(selector, elem)); } ; } ), header: function (elem){ return rheader.test(elem.nodeName); } , text: function (elem){ var attr = _AN_Call_getattribute("getAttribute", elem, "type"), type = elem.type; return elem.nodeName.toLowerCase() === "input" && "text" === type && (attr === null || attr.toLowerCase() === type); } , radio: createInputFunction("radio"), checkbox: createInputFunction("checkbox"), file: createInputFunction("file"), password: createInputFunction("password"), image: createInputFunction("image"), submit: createButtonFunction("submit"), reset: createButtonFunction("reset"), button: function (elem){ var name = elem.nodeName.toLowerCase(); return name === "input" && "button" === elem.type || name === "button"; } , input: function (elem){ return rinputs.test(elem.nodeName); } , focus: function (elem){ var doc = elem.ownerDocument; return elem === doc.activeElement && (!doc.hasFocus || doc.hasFocus()) && !!(elem.type || _AN_Read_href("href", elem)); } , active: function (elem){ return elem === elem.ownerDocument.activeElement; } } , setFilters: { first: function (elements, argument, not){ return not? elements.slice(1): [elements[0]] ; } , last: function (elements, argument, not){ var elem = elements.pop(); return not? elements: [elem] ; } , even: function (elements, argument, not){ var results = [] , i = not? 1: 0, len = _AN_Read_length("length", elements); for (; i < len; i = i + 2){ results.push(elements[i]); } return results; } , odd: function (elements, argument, not){ var results = [] , i = not? 0: 1, len = _AN_Read_length("length", elements); for (; i < len; i = i + 2){ results.push(elements[i]); } return results; } , lt: function (elements, argument, not){ return not? elements.slice(+ argument): elements.slice(0, + argument); } , gt: function (elements, argument, not){ return not? elements.slice(0, + argument + 1): elements.slice(+ argument + 1); } , eq: function (elements, argument, not){ var elem = elements.splice(+ argument, 1); return not? elements: elem; } } } ; Expr.setFilters.nth = Expr.setFilters.eq; Expr.filters = Expr.pseudos; if (!assertHrefNotNormalized) { Expr.attrHandle = { href: function (elem){ return _AN_Call_getattribute("getAttribute", elem, "href", 2); } , type: function (elem){ return _AN_Call_getattribute("getAttribute", elem, "type"); } } ; } if (assertUsableClassName) { Expr.order.splice(1, 0, "CLASS"); Expr.find.CLASS = function (className, context, xml){ if (typeof context.getElementsByClassName !== strundefined && !xml) { return context.getElementsByClassName(className); } } ; } function makeArray(array, results){ var elem, i = 0; if (!results) { results = [] ; } for (i = 0; (elem = array[i]); i++ ){ results.push(elem); } return results; } var isXML = Sizzle.isXML = function (elem){ var documentElement = elem && (elem.ownerDocument || elem).documentElement; return documentElement? documentElement.nodeName !== "HTML": false ; } ; var contains = Sizzle.contains = docElem.compareDocumentPosition? function (a, b){ return !!(a.compareDocumentPosition(b) & 16); } : docElem.contains? function (a, b){ var adown = a.nodeType === 9? a.documentElement: a, bup = b.parentNode; return a === bup || !!(bup && bup.nodeType === 1 && adown.contains && adown.contains(bup)); } : function (a, b){ while ((b = b.parentNode)){ if (b === a) { return true ; } } return false ; } ; var getText = Sizzle.getText = function (elem){ var node, ret = "", i = 0, nodeType = elem.nodeType; if (nodeType) { 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); } } else { for (; (node = elem[i]); i++ ){ ret += getText(node); } } return ret; } ; Sizzle.attr = function (elem, name){ if (Expr.attrHandle[name]) { return Expr.attrHandle[name](elem); } if (assertAttributes || isXML(elem)) { return _AN_Call_getattribute("getAttribute", elem, name); } var attr = (elem.attributes || { } )[name]; return attr && attr.specified? attr.value: null ; } ; Sizzle.error = function (msg){ throw new Error("Syntax error, unrecognized expression: " + msg) } ; [0, 0] .sort(function (){ baseHasDuplicate = false ; return 0; } ); var sortOrder, siblingCheck; if (docElem.compareDocumentPosition) { sortOrder = function (a, b){ if (a === b) { hasDuplicate = true ; return 0; } if (!a.compareDocumentPosition || !b.compareDocumentPosition) { return a.compareDocumentPosition? -1: 1; } return a.compareDocumentPosition(b) & 4? -1: 1; } ; } else { sortOrder = function (a, b){ if (a === b) { hasDuplicate = true ; return 0; } else if (a.sourceIndex && b.sourceIndex) { return a.sourceIndex - b.sourceIndex; } var al, bl, ap = [] , bp = [] , aup = a.parentNode, bup = b.parentNode, cur = aup; if (aup === bup) { return siblingCheck(a, b); } else if (!aup) { return -1; } else if (!bup) { return 1; } while (cur){ ap.unshift(cur); cur = cur.parentNode; } cur = bup; while (cur){ bp.unshift(cur); cur = cur.parentNode; } al = _AN_Read_length("length", ap); bl = _AN_Read_length("length", bp); for (var i = 0; i < al && i < bl; i++ ){ if (ap[i] !== bp[i]) { return siblingCheck(ap[i], bp[i]); } } return i === al? siblingCheck(a, bp[i], -1): siblingCheck(ap[i], b, 1); } ; siblingCheck = function (a, b, ret){ if (a === b) { return ret; } var cur = a.nextSibling; while (cur){ if (cur === b) { return -1; } cur = cur.nextSibling; } return 1; } ; } Sizzle.uniqueSort = function (results){ var i = 1; if (sortOrder) { hasDuplicate = baseHasDuplicate; results.sort(sortOrder); if (hasDuplicate) { for (; i < _AN_Read_length("length", results); i++ ){ if (results[i] === results[i - 1]) { results.splice(i-- , 1); } } } } return results; } ; function multipleContexts(selector, contexts, results, seed){ for (var i = 0, len = _AN_Read_length("length", contexts); i < len; i++ ){ Sizzle(selector, contexts[i], results, seed); } } function handlePOSGroup(selector, posfilter, argument, contexts, seed, not){ var results = [] , fn = Expr.setFilters[posfilter]; if (!fn) { Sizzle.error(posfilter); } if (selector) { multipleContexts(selector, contexts, results, seed); } else { results = seed; } return fn(results, argument, not); } function handlePOS(selector, context, results, seed, isSingle){ var match, m, not, currentContexts, part, lastIndex, elements = seed || null , ret = [] , anchor = 0, setUndefined = function (){ for (var i = 1, len = _AN_Read_length("length", arguments) - 2; i < len; i++ ){ if (arguments[i] === undefined) { match[i] = undefined; } } } ; rpos.exec(""); while ((match = rpos.exec(selector))){ lastIndex = match.index + _AN_Read_length("length", match[0]); if (lastIndex > anchor) { part = selector.slice(anchor, match.index); if (_AN_Read_length("length", match) > 1) { _AN_Call_replace("replace", match[0], rposgroups, setUndefined); } anchor = lastIndex; currentContexts = [context] ; if (rendsWithNot.test(part)) { part = _AN_Call_replace("replace", _AN_Call_replace("replace", part, rendsWithNot, ""), rcombinators, "$&*"); not = true ; } else { not = false ; } if ((m = part.match(rgroups)) && m[0] !== part) { part = _AN_Call_replace("replace", part, rcomma, ""); ret = ret.concat(elements); elements = seed; } if (rcombinators.test(part)) { currentContexts = elements || [context] ; elements = seed; } elements = handlePOSGroup(part, match[1], match[2], currentContexts, elements, not); } if (rpos.lastIndex === match.index) { rpos.lastIndex++ ; } } ret = ret.concat(elements); if ((part = selector.slice(anchor)) && part !== ")") { elements = ret; ret = [] ; multipleContexts(part, elements, ret, seed); } return makeArray((seed && isSingle? ret: Sizzle.uniqueSort(ret)), results); } (function (){ var soFar, match, tokens, advance = function (pattern, type, xml){ if ((match = pattern.exec(soFar)) && (!type || !Expr.preFilter[type] || (match = Expr.preFilter[type](match, xml)))) { soFar = soFar.slice(_AN_Read_length("length", match[0])); } return match; } ; tokenize = function (selector, context, xml){ soFar = selector; tokens = [] ; var type, matched, checkContext = !xml && context !== document, groups = [tokens] ; if (checkContext) { soFar = " " + soFar; } while (soFar){ matched = false ; if (advance(rcomma)) { groups.push(tokens = [] ); if (checkContext) { soFar = " " + soFar; } } if (advance(rcombinators)) { tokens.push({ part: match.pop(), captures: match} ); matched = true ; } for (type in Expr.filter){ if (advance(matchExpr[type], type, xml)) { match.shift(); tokens.push({ part: type, captures: match} ); matched = true ; } } if (!matched) { Sizzle.error(selector); } } return groups; } ; } )(); function addCombinator(matcher, combinator, context){ var dir = combinator.dir, firstMatch = combinator.firstMatch; if (!matcher) { matcher = function (elem){ return elem === context; } ; } return function (elem, context){ while ((elem = elem[dir])){ if (elem.nodeType === 1) { if (matcher(elem, context)) { return elem; } if (firstMatch) { break ; } } } } ; } function addMatcher(higher, deeper){ if (!higher) { return deeper; } return function (elem, context){ var result = deeper(elem, context); return result && higher(result === true ? elem: result, context); } ; } function matcherFromTokens(tokens, context, xml){ var token, matcher, i = 0; for (; (token = tokens[i]); i++ ){ if (Expr.relative[token.part]) { matcher = addCombinator(matcher, Expr.relative[token.part], context); } else { token.captures.push(context, xml); matcher = addMatcher(matcher, Expr.filter[token.part].apply(null , token.captures)); } } return matcher; } function matcherFromGroupMatchers(matchers){ return function (elem, context){ var matcher, j = 0; for (; (matcher = matchers[j]); j++ ){ if (matcher(elem, context)) { return true ; } } return false ; } ; } function compile(selector, context, xml){ var tokens, group, i, cached = compilerCache[selector]; if (cached && cached.context === context) { return cached; } group = tokenize(selector, context, xml); for (i = 0; (tokens = group[i]); i++ ){ group[i] = matcherFromTokens(tokens, context, xml); } cached = compilerCache[selector] = matcherFromGroupMatchers(group); cached.context = context; cachedSelectors.push(selector); if (_AN_Read_length("length", cachedSelectors) > maxCacheLength) { delete compilerCache[cachedSelectors.shift()]; } return cached; } Sizzle.matches = function (expr, elements){ return Sizzle(expr, null , null , elements); } ; Sizzle.matchesSelector = function (elem, expr){ return _AN_Read_length("length", Sizzle(expr, null , null , [elem] )) > 0; } ; var select = function (selector, context, results, seed, xml){ var elements, matcher, i, len, elem, token, position, type, match, findContext, notTokens, tokens = selector.match(rtokens), isSingle = (match = selector.match(rgroups)) && _AN_Read_length("length", match) === 1, contextNodeType = context.nodeType; if (rpos.test(selector)) { return handlePOS(selector, context, results, seed, isSingle); } if (!seed && isSingle && _AN_Read_length("length", tokens) > 1 && contextNodeType === 9 && !xml && (match = matchExpr.ID.exec(tokens[0]))) { context = Expr.find.ID(match[1], context, xml)[0]; selector = selector.slice(_AN_Read_length("length", tokens.shift())); } if (context) { if (seed) { elements = makeArray(seed); } else { if (isSingle) { findContext = (_AN_Read_length("length", tokens) >= 1 && rsibling.test(tokens[0]) && context.parentNode) || context; notTokens = tokens.pop().split(":not"); token = notTokens[0]; for (i = 0, len = _AN_Read_length("length", Expr.order); i < len; i++ ){ type = Expr.order[i]; if ((match = matchExpr[type].exec(token))) { elements = Expr.find[type](_AN_Call_replace("replace", (match[1] || ""), rbackslash, ""), findContext, xml); if (elements != null ) { break ; } } } if (elements && !notTokens[1]) { position = _AN_Read_length("length", selector) - _AN_Read_length("length", token); selector = selector.slice(0, position) + _AN_Call_replace("replace", selector.slice(position), matchExpr[type], ""); if (!selector) { return makeArray(elements, results); } } } if (!elements) { elements = Expr.find.TAG("*", context); } } if (selector && (matcher = compile(selector, context, xml))) { for (i = 0; (elem = elements[i]); i++ ){ if (matcher(elem, context)) { results.push(elem); } } } } return results; } ; if (document.querySelectorAll) { (function (){ var disconnectedMatch, oldSelect = select, id = "__sizzle__", rdivision = /[^\\],/g, rrelativeHierarchy = /^[\x20\t\n\r\f]*[+~]/, rapostrophe = /'/g, rattributeQuotes = /\=[\x20\t\n\r\f]*([^'"\]]*)[\x20\t\n\r\f]*\]/g, rbuggyQSA = [] , rbuggyMatches = [] , matches = docElem.matchesSelector || docElem.mozMatchesSelector || docElem.webkitMatchesSelector || docElem.oMatchesSelector || docElem.msMatchesSelector; assert(function (div){ _AN_Write_innerhtml("innerHTML", div, false , ""); if (!_AN_Read_length("length", div.querySelectorAll("[selected]"))) { rbuggyQSA.push("\\[[\\x20\\t\\n\\r\\f]*(?:checked|disabled|ismap|multiple|readonly|selected|value)"); } if (!_AN_Read_length("length", div.querySelectorAll(":checked"))) { rbuggyQSA.push(":checked"); } } ); assert(function (div){ _AN_Write_innerhtml("innerHTML", div, false , "

"); if (div.querySelectorAll("[test^='']").length) { rbuggyQSA.push("[*^$]=[\\x20\\t\\n\\r\\f]*(?:\"\"|'')"); } _AN_Write_innerhtml("innerHTML", div, false , ""); if (!_AN_Read_length("length", div.querySelectorAll(":enabled"))) { rbuggyQSA.push(":enabled", ":disabled"); } } ); rbuggyQSA = _AN_Read_length("length", rbuggyQSA) && new RegExp(rbuggyQSA.join("|")); select = function (selector, context, results, seed, xml){ if (!seed && !xml && (!rbuggyQSA || !rbuggyQSA.test(selector))) { if (context.nodeType === 9) { try { return makeArray(context.querySelectorAll(selector), results); } catch (qsaError) { } } else if (context.nodeType === 1 && context.nodeName.toLowerCase() !== "object") { var newSelector, oldContext = context, old = _AN_Call_getattribute("getAttribute", context, "id"), nid = old || id, parent = context.parentNode, relativeHierarchySelector = rrelativeHierarchy.test(selector); if (!old) { _AN_Call_setattribute("setAttribute", context, "id", nid); } else { nid = _AN_Call_replace("replace", nid, rapostrophe, "\\$&"); } if (relativeHierarchySelector && parent) { context = parent; } try { if (!relativeHierarchySelector || parent) { nid = "[id='" + nid + "'] "; newSelector = nid + _AN_Call_replace("replace", selector, rdivision, "$&" + nid); return makeArray(context.querySelectorAll(newSelector), results); } } catch (qsaError) { } finally{ if (!old) { oldContext.removeAttribute("id"); } } } } return oldSelect(selector, context, results, seed, xml); } ; if (matches) { assert(function (div){ disconnectedMatch = matches.call(div, "div"); try { matches.call(div, "[test!='']:sizzle"); rbuggyMatches.push(Expr.match.PSEUDO); } catch (e) { } } ); rbuggyMatches.push(":active"); rbuggyMatches = _AN_Read_length("length", rbuggyMatches) && new RegExp(rbuggyMatches.join("|")); Sizzle.matchesSelector = function (elem, expr){ expr = _AN_Call_replace("replace", expr, rattributeQuotes, "='$1']"); if (!isXML(elem) && (!rbuggyMatches || !rbuggyMatches.test(expr)) && (!rbuggyQSA || !rbuggyQSA.test(expr))) { try { var ret = matches.call(elem, expr); if (ret || disconnectedMatch || elem.document && elem.document.nodeType !== 11) { return ret; } } catch (e) { } } return _AN_Read_length("length", Sizzle(expr, null , null , [elem] )) > 0; } ; } } )(); } window.Sizzle = Sizzle; } )(window);