(function (window, undefined){
var rootjQuery, readyList, document = window.document, location = _AN_Read_location('location', window), navigator = window.navigator, _jQuery = window.jQuery, _$ = window.$, core_push = Array.prototype.push, core_slice = Array.prototype.slice, core_indexOf = Array.prototype.indexOf, core_toString = Object.prototype.toString, core_hasOwn = Object.prototype.hasOwnProperty, core_trim = String.prototype.trim, jQuery = function (selector, context){
return new jQuery.fn.init(selector, context, rootjQuery);
}
, core_pnum = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source, core_rnotwhite = /\S/, core_rspace = /\s+/, rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, rquickExpr = /^(?:[^#<]*(<[\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*\.|)\d+(?:[eE][\-+]?\d+|)/g, rmsPrefix = /^-ms-/, rdashAlpha = /-([\da-z])/gi, fcamelCase = function (all, letter){
return (letter + "").toUpperCase();
}
, DOMContentLoaded = function (){
if (document.addEventListener) {
document.removeEventListener("DOMContentLoaded", DOMContentLoaded, false );
jQuery.ready();
}
else if (document.readyState === "complete") {
document.detachEvent("onreadystatechange", DOMContentLoaded);
jQuery.ready();
}
}
, class2type = {
}
;
jQuery.fn = jQuery.prototype = {
constructor: jQuery,
init: function (selector, context, rootjQuery){
var match, elem, ret, doc;
if (!selector) {
return this;
}
if (selector.nodeType) {
this.context = this[0] = selector;
this.length = 1;
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;
doc = (context && context.nodeType? context.ownerDocument || context: document);
selector = jQuery.parseHTML(match[1], doc, true );
if (rsingleTag.test(match[1]) && jQuery.isPlainObject(context)) {
this.attr.call(selector, context, true );
}
return jQuery.merge(this, selector);
}
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 (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: "",
jquery: "1.8.2",
length: 0,
size: function (){
return _AN_Read_length("length", this);
}
,
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, name, selector){
var ret = jQuery.merge(this.constructor(), 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;
}
,
each: function (callback, args){
return jQuery.each(this, callback, args);
}
,
ready: function (fn){
jQuery.ready.promise().done(fn);
return this;
}
,
eq: function (i){
i = + i;
return i === -1? this.slice(i): this.slice(i, i + 1);
}
,
first: function (){
return this.eq(0);
}
,
last: function (){
return this.eq(-1);
}
,
slice: function (){
return this.pushStack(core_slice.apply(this, arguments), "slice", core_slice.call(arguments).join(","));
}
,
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 options, name, src, copy, copyIsArray, 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({
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, 1);
}
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){
return obj == null ? String(obj): class2type[core_toString.call(obj)] || "object";
}
,
isPlainObject: function (obj){
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 ;
}
var 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, scripts){
var parsed;
if (!data || typeof data !== "string") {
return null ;
}
if (typeof context === "boolean") {
scripts = context;
context = 0;
}
context = context || document;
if ((parsed = rsingleTag.exec(data))) {
return [_AN_Call_createelement("createElement", context, parsed[1])] ;
}
parsed = jQuery.buildFragment([data] , context, scripts? null : [] );
return jQuery.merge([] , (parsed.cacheable? jQuery.clone(parsed.fragment): parsed.fragment).childNodes);
}
,
parseJSON: function (data){
if (!data || typeof data !== "string") {
return null ;
}
data = jQuery.trim(data);
if (window.JSON && window.JSON.parse) {
return window.JSON.parse(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 && core_rnotwhite.test(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 name, i = 0, length = _AN_Read_length("length", obj), isObj = length === undefined || jQuery.isFunction(obj);
if (args) {
if (isObj) {
for (name in obj){
if (callback.apply(obj[name], args) === false ) {
break ;
}
}
}
else {
for (; i < length; ){
if (callback.apply(obj[i++ ], args) === false ) {
break ;
}
}
}
}
else {
if (isObj) {
for (name in obj){
if (callback.call(obj[name], name, obj[name]) === false ) {
break ;
}
}
}
else {
for (; i < length; ){
if (callback.call(obj[i], i, obj[i++ ]) === 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 type, ret = results || [] ;
if (arr != null ) {
type = jQuery.type(arr);
if (_AN_Read_length("length", arr) == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow(arr)) {
core_push.call(ret, arr);
}
else {
jQuery.merge(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, key, ret = [] , i = 0, length = _AN_Read_length("length", elems), isArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ((length > 0 && elems[0] && elems[length - 1]) || length === 0 || jQuery.isArray(elems));
if (isArray) {
for (; i < length; i++ ){
value = callback(elems[i], i, arg);
if (value != null ) {
ret[_AN_Read_length("length", ret)] = value;
}
}
}
else {
for (key in elems){
value = callback(elems[key], key, arg);
if (value != null ) {
ret[_AN_Read_length("length", ret)] = value;
}
}
}
return ret.concat.apply([] , ret);
}
,
guid: 1,
proxy: function (fn, context){
var tmp, args, proxy;
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, args.concat(core_slice.call(arguments)));
}
;
proxy.guid = fn.guid = fn.guid || jQuery.guid++ ;
return proxy;
}
,
access: function (elems, fn, key, value, chainable, emptyGet, pass){
var exec, bulk = key == null , i = 0, length = _AN_Read_length("length", elems);
if (key && typeof key === "object") {
for (i in key){
jQuery.access(elems, fn, i, key[i], 1, emptyGet, value);
}
chainable = 1;
}
else if (value !== undefined) {
exec = pass === undefined && jQuery.isFunction(value);
if (bulk) {
if (exec) {
exec = fn;
fn = function (elem, key, value){
return exec.call(jQuery(elem), value);
}
;
}
else {
fn.call(elems, value);
fn = null ;
}
}
if (fn) {
for (; i < length; i++ ){
fn(elems[i], key, exec? value.call(elems[i], i, fn(elems[i], key)): value, pass);
}
}
chainable = 1;
}
return chainable? elems: bulk? fn.call(elems): length? fn(elems[0], key): emptyGet;
}
,
now: function (){
return (new Date()).getTime();
}
}
);
jQuery.ready.promise = function (obj){
if (!readyList) {
readyList = jQuery.Deferred();
if (document.readyState === "complete") {
_AN_Call_settimeout("setTimeout", window, jQuery.ready, 1);
}
else if (document.addEventListener) {
document.addEventListener("DOMContentLoaded", DOMContentLoaded, false );
window.addEventListener("load", jQuery.ready, false );
}
else {
document.attachEvent("onreadystatechange", DOMContentLoaded);
window.attachEvent("onload", jQuery.ready);
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);
}
jQuery.ready();
}
}
)();
}
}
}
return readyList.promise(obj);
}
;
jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function (i, name){
class2type["[object " + name + "]"] = name.toLowerCase();
}
);
rootjQuery = jQuery(document);
var optionsCache = {
}
;
function createOptions(options){
var object = optionsCache[options] = {
}
;
jQuery.each(options.split(core_rspace), function (_, flag){
object[flag] = true ;
}
);
return object;
}
jQuery.Callbacks = function (options){
options = typeof options === "string"? (optionsCache[options] || createOptions(options)): jQuery.extend({
}
, options);
var memory, fired, firing, firingStart, firingLength, firingIndex, 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" && (!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 jQuery.inArray(fn, list) > -1;
}
,
empty: function (){
list = [] ;
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){
args = args || [] ;
args = [context, args.slice? args.slice(): args] ;
if (list && (!fired || stack)) {
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 = fns[i];
deferred[tuple[1]](jQuery.isFunction(fn)? function (){
var returned = 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 === deferred? newDefer: this, [returned] );
}
}
: newDefer[action]);
}
);
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]] = list.fire;
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 (){
var support, all, a, select, opt, input, fragment, eventName, i, isSupported, clickFn, div = _AN_Call_createelement("createElement", document, "div");
_AN_Call_setattribute("setAttribute", div, "className", "t");
_AN_Write_innerhtml("innerHTML", div, false , "
a");
all = _AN_Call_getelementsbytagname("getElementsByTagName", div, "*");
a = _AN_Call_getelementsbytagname("getElementsByTagName", div, "a")[0];
_AN_Write_csstext("cssText", a.style, false , "top:1px;float:left;opacity:.5");
if (!all || !_AN_Read_length("length", all)) {
return {
}
;
}
select = _AN_Call_createelement("createElement", document, "select");
opt = _AN_Call_appendchild("appendChild", select, _AN_Call_createelement("createElement", document, "option"));
input = _AN_Call_getelementsbytagname("getElementsByTagName", div, "input")[0];
support = {
leadingWhitespace: (div.firstChild.nodeType === 3),
tbody: !_AN_Read_length("length", _AN_Call_getelementsbytagname("getElementsByTagName", div, "tbody")),
htmlSerialize: !!_AN_Read_length("length", _AN_Call_getelementsbytagname("getElementsByTagName", div, "link")),
style: /top/.test(_AN_Call_getattribute("getAttribute", a, "style")),
hrefNormalized: (_AN_Call_getattribute("getAttribute", a, "href") === "/a"),
opacity: /^0.5/.test(a.style.opacity),
cssFloat: !!a.style.cssFloat,
checkOn: (input.value === "on"),
optSelected: opt.selected,
getSetAttribute: div.className !== "t",
enctype: !!_AN_Call_createelement("createElement", document, "form").enctype,
html5Clone: _AN_Call_createelement("createElement", document, "nav").cloneNode(true ).outerHTML !== "<:nav>",
boxModel: (document.compatMode === "CSS1Compat"),
submitBubbles: true ,
changeBubbles: true ,
focusinBubbles: false ,
deleteExpando: true ,
noCloneEvent: true ,
inlineBlockNeedsLayout: false ,
shrinkWrapBlocks: false ,
reliableMarginRight: true ,
boxSizingReliable: true ,
pixelPosition: false }
;
input.checked = true ;
support.noCloneChecked = input.cloneNode(true ).checked;
select.disabled = true ;
support.optDisabled = !opt.disabled;
try {
delete div.test;
}
catch (e) {
support.deleteExpando = false ;
}
if (!div.addEventListener && div.attachEvent && div.fireEvent) {
div.attachEvent("onclick", clickFn = function (){
support.noCloneEvent = false ;
}
);
div.cloneNode(true ).fireEvent("onclick");
div.detachEvent("onclick", clickFn);
}
input = _AN_Call_createelement("createElement", document, "input");
input.value = "t";
_AN_Call_setattribute("setAttribute", input, "type", "radio");
support.radioValue = input.value === "t";
_AN_Call_setattribute("setAttribute", input, "checked", "checked");
_AN_Call_setattribute("setAttribute", input, "name", "t");
_AN_Call_appendchild("appendChild", div, input);
fragment = document.createDocumentFragment();
_AN_Call_appendchild("appendChild", fragment, div.lastChild);
support.checkClone = fragment.cloneNode(true ).cloneNode(true ).lastChild.checked;
support.appendChecked = input.checked;
fragment.removeChild(input);
_AN_Call_appendchild("appendChild", fragment, div);
if (div.attachEvent) {
for (i in {
submit: true ,
change: true ,
focusin: true }
){
eventName = "on" + i;
isSupported = (eventName in div);
if (!isSupported) {
_AN_Call_setattribute("setAttribute", div, eventName, "return;");
isSupported = (typeof div[eventName] === "function");
}
support[i + "Bubbles"] = isSupported;
}
}
jQuery(function (){
var container, div, tds, marginDiv, divReset = "padding:0;margin:0;border:0;display:block;overflow:hidden;", body = _AN_Call_getelementsbytagname("getElementsByTagName", document, "body")[0];
if (!body) {
return ;
}
container = _AN_Call_createelement("createElement", document, "div");
_AN_Write_csstext("cssText", container.style, false , "visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px");
body.insertBefore(container, body.firstChild);
div = _AN_Call_createelement("createElement", document, "div");
_AN_Call_appendchild("appendChild", container, div);
_AN_Write_innerhtml("innerHTML", div, false , "");
tds = _AN_Call_getelementsbytagname("getElementsByTagName", div, "td");
_AN_Write_csstext("cssText", tds[0].style, false , "padding:0;margin:0;border:0;display:none");
isSupported = (tds[0].offsetHeight === 0);
tds[0].style.display = "";
tds[1].style.display = "none";
support.reliableHiddenOffsets = isSupported && (tds[0].offsetHeight === 0);
_AN_Write_innerhtml("innerHTML", div, false , "");
_AN_Write_csstext("cssText", div.style, false , "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;");
support.boxSizing = (div.offsetWidth === 4);
support.doesNotIncludeMarginInBodyOffset = (body.offsetTop !== 1);
if (window.getComputedStyle) {
support.pixelPosition = (window.getComputedStyle(div, null ) || {
}
).top !== "1%";
support.boxSizingReliable = (window.getComputedStyle(div, null ) || {
width: "4px"}
).width === "4px";
marginDiv = _AN_Call_createelement("createElement", document, "div");
_AN_Write_csstext("cssText", marginDiv.style, false , _AN_Write_csstext("cssText", div.style, false , divReset));
marginDiv.style.marginRight = marginDiv.style.width = "0";
div.style.width = "1px";
_AN_Call_appendchild("appendChild", div, marginDiv);
support.reliableMarginRight = !parseFloat((window.getComputedStyle(marginDiv, null ) || {
}
).marginRight);
}
if (typeof div.style.zoom !== "undefined") {
_AN_Write_innerhtml("innerHTML", div, false , "");
_AN_Write_csstext("cssText", div.style, false , divReset + "width:1px;padding:1px;display:inline;zoom:1");
support.inlineBlockNeedsLayout = (div.offsetWidth === 3);
div.style.display = "block";
div.style.overflow = "visible";
_AN_Write_innerhtml("innerHTML", div, false , "");
div.firstChild.style.width = "5px";
support.shrinkWrapBlocks = (div.offsetWidth !== 3);
container.style.zoom = 1;
}
body.removeChild(container);
container = div = tds = marginDiv = null ;
}
);
fragment.removeChild(div);
all = a = select = opt = input = fragment = div = null ;
return support;
}
)();
var rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, rmultiDash = /([A-Z])/g;
jQuery.extend({
cache: {
}
,
deletedIds: [] ,
uuid: 0,
expando: "jQuery" + _AN_Call_replace("replace", (jQuery.fn.jquery + Math.random()), /\D/g, ""),
noData: {
"embed": true ,
"object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
"applet": true }
,
hasData: function (elem){
elem = elem.nodeType? jQuery.cache[elem[jQuery.expando]]: elem[jQuery.expando];
return !!elem && !isEmptyDataObject(elem);
}
,
data: function (elem, name, data, pvt){
if (!jQuery.acceptData(elem)) {
return ;
}
var thisCache, ret, internalKey = jQuery.expando, getByName = typeof name === "string", isNode = elem.nodeType, cache = isNode? jQuery.cache: elem, id = isNode? elem[internalKey]: elem[internalKey] && internalKey;
if ((!id || !cache[id] || (!pvt && !cache[id].data)) && getByName && data === undefined) {
return ;
}
if (!id) {
if (isNode) {
elem[internalKey] = id = jQuery.deletedIds.pop() || jQuery.guid++ ;
}
else {
id = internalKey;
}
}
if (!cache[id]) {
cache[id] = {
}
;
if (!isNode) {
cache[id].toJSON = jQuery.noop;
}
}
if (typeof name === "object" || typeof name === "function") {
if (pvt) {
cache[id] = jQuery.extend(cache[id], name);
}
else {
cache[id].data = jQuery.extend(cache[id].data, name);
}
}
thisCache = cache[id];
if (!pvt) {
if (!thisCache.data) {
thisCache.data = {
}
;
}
thisCache = thisCache.data;
}
if (data !== undefined) {
thisCache[jQuery.camelCase(name)] = data;
}
if (getByName) {
ret = thisCache[name];
if (ret == null ) {
ret = thisCache[jQuery.camelCase(name)];
}
}
else {
ret = thisCache;
}
return ret;
}
,
removeData: function (elem, name, pvt){
if (!jQuery.acceptData(elem)) {
return ;
}
var thisCache, i, l, isNode = elem.nodeType, cache = isNode? jQuery.cache: elem, id = isNode? elem[jQuery.expando]: jQuery.expando;
if (!cache[id]) {
return ;
}
if (name) {
thisCache = pvt? cache[id]: cache[id].data;
if (thisCache) {
if (!jQuery.isArray(name)) {
if (name in thisCache) {
name = [name] ;
}
else {
name = jQuery.camelCase(name);
if (name in thisCache) {
name = [name] ;
}
else {
name = name.split(" ");
}
}
}
for (i = 0, l = _AN_Read_length("length", name); i < l; i++ ){
delete thisCache[name[i]];
}
if (!(pvt? isEmptyDataObject: jQuery.isEmptyObject)(thisCache)) {
return ;
}
}
}
if (!pvt) {
delete cache[id].data;
if (!isEmptyDataObject(cache[id])) {
return ;
}
}
if (isNode) {
jQuery.cleanData([elem] , true );
}
else if (jQuery.support.deleteExpando || cache != cache.window) {
delete cache[id];
}
else {
cache[id] = null ;
}
}
,
_data: function (elem, name, data){
return jQuery.data(elem, name, data, true );
}
,
acceptData: function (elem){
var noData = elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()];
return !noData || noData !== true && _AN_Call_getattribute("getAttribute", elem, "classid") === noData;
}
}
);
jQuery.fn.extend({
data: function (key, value){
var parts, part, attr, name, l, elem = this[0], i = 0, data = null ;
if (key === undefined) {
if (this.length) {
data = jQuery.data(elem);
if (elem.nodeType === 1 && !jQuery._data(elem, "parsedAttrs")) {
attr = elem.attributes;
for (l = _AN_Read_length("length", attr); i < l; i++ ){
name = attr[i].name;
if (!name.indexOf("data-")) {
name = jQuery.camelCase(name.substring(5));
dataAttr(elem, name, data[name]);
}
}
jQuery._data(elem, "parsedAttrs", true );
}
}
return data;
}
if (typeof key === "object") {
return this.each(function (){
jQuery.data(this, key);
}
);
}
parts = key.split(".", 2);
parts[1] = parts[1]? "." + parts[1]: "";
part = parts[1] + "!";
return jQuery.access(this, function (value){
if (value === undefined) {
data = this.triggerHandler("getData" + part, [parts[0]] );
if (data === undefined && elem) {
data = jQuery.data(elem, key);
data = dataAttr(elem, key, data);
}
return data === undefined && parts[1]? this.data(parts[0]): data;
}
parts[1] = value;
this.each(function (){
var self = jQuery(this);
self.triggerHandler("setData" + part, parts);
jQuery.data(this, key, value);
self.triggerHandler("changeData" + part, parts);
}
);
}
, null , value, _AN_Read_length("length", arguments) > 1, null , false );
}
,
removeData: function (key){
return this.each(function (){
jQuery.removeData(this, key);
}
);
}
}
);
function dataAttr(elem, key, data){
if (data === undefined && elem.nodeType === 1) {
var name = "data-" + _AN_Call_replace("replace", key, rmultiDash, "-$1").toLowerCase();
data = _AN_Call_getattribute("getAttribute", elem, name);
if (typeof data === "string") {
try {
data = data === "true"? true : data === "false"? false : data === "null"? null : + data + "" === data? + data: rbrace.test(data)? jQuery.parseJSON(data): data;
}
catch (e) {
}
jQuery.data(elem, key, data);
}
else {
data = undefined;
}
}
return data;
}
function isEmptyDataObject(obj){
var name;
for (name in obj){
if (name === "data" && jQuery.isEmptyObject(obj[name])) {
continue ;
}
if (name !== "toJSON") {
return false ;
}
}
return true ;
}
jQuery.extend({
queue: function (elem, type, data){
var queue;
if (elem) {
type = (type || "fx") + "queue";
queue = jQuery._data(elem, type);
if (data) {
if (!queue || jQuery.isArray(data)) {
queue = jQuery._data(elem, type, jQuery.makeArray(data));
}
else {
queue.push(data);
}
}
return queue || [] ;
}
}
,
dequeue: function (elem, type){
type = type || "fx";
var queue = jQuery.queue(elem, type), startLength = _AN_Read_length("length", queue), fn = queue.shift(), hooks = jQuery._queueHooks(elem, type), next = function (){
jQuery.dequeue(elem, type);
}
;
if (fn === "inprogress") {
fn = queue.shift();
startLength-- ;
}
if (fn) {
if (type === "fx") {
queue.unshift("inprogress");
}
delete hooks.stop;
fn.call(elem, next, hooks);
}
if (!startLength && hooks) {
hooks.empty.fire();
}
}
,
_queueHooks: function (elem, type){
var key = type + "queueHooks";
return jQuery._data(elem, key) || jQuery._data(elem, key, {
empty: jQuery.Callbacks("once memory").add(function (){
jQuery.removeData(elem, type + "queue", true );
jQuery.removeData(elem, key, true );
}
)}
);
}
}
);
jQuery.fn.extend({
queue: function (type, data){
var setter = 2;
if (typeof type !== "string") {
data = type;
type = "fx";
setter-- ;
}
if (_AN_Read_length("length", arguments) < setter) {
return jQuery.queue(this[0], type);
}
return data === undefined? this: this.each(function (){
var queue = jQuery.queue(this, type, data);
jQuery._queueHooks(this, type);
if (type === "fx" && queue[0] !== "inprogress") {
jQuery.dequeue(this, type);
}
}
);
}
,
dequeue: function (type){
return this.each(function (){
jQuery.dequeue(this, type);
}
);
}
,
delay: function (time, type){
time = jQuery.fx? jQuery.fx.speeds[time] || time: time;
type = type || "fx";
return this.queue(type, function (next, hooks){
var timeout = _AN_Call_settimeout("setTimeout", window, next, time);
hooks.stop = function (){
clearTimeout(timeout);
}
;
}
);
}
,
clearQueue: function (type){
return this.queue(type || "fx", [] );
}
,
promise: function (type, obj){
var tmp, count = 1, defer = jQuery.Deferred(), elements = this, i = _AN_Read_length("length", this), resolve = function (){
if (!(--count)) {
defer.resolveWith(elements, [elements] );
}
}
;
if (typeof type !== "string") {
obj = type;
type = undefined;
}
type = type || "fx";
while (i-- ){
tmp = jQuery._data(elements[i], type + "queueHooks");
if (tmp && tmp.empty) {
count++ ;
tmp.empty.add(resolve);
}
}
resolve();
return defer.promise(obj);
}
}
);
var nodeHook, boolHook, fixSpecified, rclass = /[\t\r\n]/g, rreturn = /\r/g, rtype = /^(?:button|input)$/i, rfocusable = /^(?:button|input|object|select|textarea)$/i, rclickable = /^a(?:rea|)$/i, rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i, getSetAttribute = jQuery.support.getSetAttribute;
jQuery.fn.extend({
attr: function (name, value){
return jQuery.access(this, jQuery.attr, name, value, _AN_Read_length("length", arguments) > 1);
}
,
removeAttr: function (name){
return this.each(function (){
jQuery.removeAttr(this, name);
}
);
}
,
prop: function (name, value){
return jQuery.access(this, jQuery.prop, name, value, _AN_Read_length("length", arguments) > 1);
}
,
removeProp: function (name){
name = jQuery.propFix[name] || name;
return this.each(function (){
try {
this[name] = undefined;
delete this[name];
}
catch (e) {
}
}
);
}
,
addClass: function (value){
var classNames, i, l, elem, setClass, c, cl;
if (jQuery.isFunction(value)) {
return this.each(function (j){
jQuery(this).addClass(value.call(this, j, this.className));
}
);
}
if (value && typeof value === "string") {
classNames = value.split(core_rspace);
for (i = 0, l = _AN_Read_length("length", this); i < l; i++ ){
elem = this[i];
if (elem.nodeType === 1) {
if (!elem.className && _AN_Read_length("length", classNames) === 1) {
elem.className = value;
}
else {
setClass = " " + elem.className + " ";
for (c = 0, cl = _AN_Read_length("length", classNames); c < cl; c++ ){
if (setClass.indexOf(" " + classNames[c] + " ") < 0) {
setClass += classNames[c] + " ";
}
}
elem.className = jQuery.trim(setClass);
}
}
}
}
return this;
}
,
removeClass: function (value){
var removes, className, elem, c, cl, i, l;
if (jQuery.isFunction(value)) {
return this.each(function (j){
jQuery(this).removeClass(value.call(this, j, this.className));
}
);
}
if ((value && typeof value === "string") || value === undefined) {
removes = (value || "").split(core_rspace);
for (i = 0, l = _AN_Read_length("length", this); i < l; i++ ){
elem = this[i];
if (elem.nodeType === 1 && elem.className) {
className = _AN_Call_replace("replace", (" " + elem.className + " "), rclass, " ");
for (c = 0, cl = _AN_Read_length("length", removes); c < cl; c++ ){
while (className.indexOf(" " + removes[c] + " ") >= 0){
className = _AN_Call_replace("replace", className, " " + removes[c] + " ", " ");
}
}
elem.className = value? jQuery.trim(className): "";
}
}
}
return this;
}
,
toggleClass: function (value, stateVal){
var type = typeof value, isBool = typeof stateVal === "boolean";
if (jQuery.isFunction(value)) {
return this.each(function (i){
jQuery(this).toggleClass(value.call(this, i, this.className, stateVal), stateVal);
}
);
}
return this.each(function (){
if (type === "string") {
var className, i = 0, self = jQuery(this), state = stateVal, classNames = value.split(core_rspace);
while ((className = classNames[i++ ])){
state = isBool? state: !self.hasClass(className);
self[state? "addClass": "removeClass"](className);
}
}
else if (type === "undefined" || type === "boolean") {
if (this.className) {
jQuery._data(this, "__className__", this.className);
}
this.className = this.className || value === false ? "": jQuery._data(this, "__className__") || "";
}
}
);
}
,
hasClass: function (selector){
var className = " " + selector + " ", i = 0, l = _AN_Read_length("length", this);
for (; i < l; i++ ){
if (this[i].nodeType === 1 && _AN_Call_replace("replace", (" " + this[i].className + " "), rclass, " ").indexOf(className) >= 0) {
return true ;
}
}
return false ;
}
,
val: function (value){
var hooks, ret, isFunction, elem = this[0];
if (!_AN_Read_length("length", arguments)) {
if (elem) {
hooks = jQuery.valHooks[elem.type] || jQuery.valHooks[elem.nodeName.toLowerCase()];
if (hooks && "get" in hooks && (ret = hooks.get(elem, "value")) !== undefined) {
return ret;
}
ret = elem.value;
return typeof ret === "string"? _AN_Call_replace("replace", ret, rreturn, ""): ret == null ? "": ret;
}
return ;
}
isFunction = jQuery.isFunction(value);
return this.each(function (i){
var val, self = jQuery(this);
if (this.nodeType !== 1) {
return ;
}
if (isFunction) {
val = value.call(this, i, self.val());
}
else {
val = value;
}
if (val == null ) {
val = "";
}
else if (typeof val === "number") {
val += "";
}
else if (jQuery.isArray(val)) {
val = jQuery.map(val, function (value){
return value == null ? "": value + "";
}
);
}
hooks = jQuery.valHooks[this.type] || jQuery.valHooks[this.nodeName.toLowerCase()];
if (!hooks || !("set" in hooks) || hooks.set(this, val, "value") === undefined) {
this.value = val;
}
}
);
}
}
);
jQuery.extend({
valHooks: {
option: {
get: function (elem){
var val = elem.attributes.value;
return !val || val.specified? elem.value: elem.text;
}
}
,
select: {
get: function (elem){
var value, i, max, option, index = elem.selectedIndex, values = [] , options = elem.options, one = elem.type === "select-one";
if (index < 0) {
return null ;
}
i = one? index: 0;
max = one? index + 1: _AN_Read_length("length", options);
for (; i < max; i++ ){
option = options[i];
if (option.selected && (jQuery.support.optDisabled? !option.disabled: _AN_Call_getattribute("getAttribute", option, "disabled") === null ) && (!option.parentNode.disabled || !jQuery.nodeName(option.parentNode, "optgroup"))) {
value = jQuery(option).val();
if (one) {
return value;
}
values.push(value);
}
}
if (one && !_AN_Read_length("length", values) && _AN_Read_length("length", options)) {
return jQuery(options[index]).val();
}
return values;
}
,
set: function (elem, value){
var values = jQuery.makeArray(value);
jQuery(elem).find("option").each(function (){
this.selected = jQuery.inArray(jQuery(this).val(), values) >= 0;
}
);
if (!_AN_Read_length("length", values)) {
elem.selectedIndex = -1;
}
return values;
}
}
}
,
attrFn: {
}
,
attr: function (elem, name, value, pass){
var ret, hooks, notxml, nType = elem.nodeType;
if (!elem || nType === 3 || nType === 8 || nType === 2) {
return ;
}
if (pass && jQuery.isFunction(jQuery.fn[name])) {
return jQuery(elem)[name](value);
}
if (typeof elem.getAttribute === "undefined") {
return jQuery.prop(elem, name, value);
}
notxml = nType !== 1 || !jQuery.isXMLDoc(elem);
if (notxml) {
name = name.toLowerCase();
hooks = jQuery.attrHooks[name] || (rboolean.test(name)? boolHook: nodeHook);
}
if (value !== undefined) {
if (value === null ) {
jQuery.removeAttr(elem, name);
return ;
}
else if (hooks && "set" in hooks && notxml && (ret = hooks.set(elem, value, name)) !== undefined) {
return ret;
}
else {
_AN_Call_setattribute("setAttribute", elem, name, value + "");
return value;
}
}
else if (hooks && "get" in hooks && notxml && (ret = hooks.get(elem, name)) !== null ) {
return ret;
}
else {
ret = _AN_Call_getattribute("getAttribute", elem, name);
return ret === null ? undefined: ret;
}
}
,
removeAttr: function (elem, value){
var propName, attrNames, name, isBool, i = 0;
if (value && elem.nodeType === 1) {
attrNames = value.split(core_rspace);
for (; i < _AN_Read_length("length", attrNames); i++ ){
name = attrNames[i];
if (name) {
propName = jQuery.propFix[name] || name;
isBool = rboolean.test(name);
if (!isBool) {
jQuery.attr(elem, name, "");
}
elem.removeAttribute(getSetAttribute? name: propName);
if (isBool && propName in elem) {
elem[propName] = false ;
}
}
}
}
}
,
attrHooks: {
type: {
set: function (elem, value){
if (rtype.test(elem.nodeName) && elem.parentNode) {
jQuery.error("type property can't be changed");
}
else if (!jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input")) {
var val = elem.value;
_AN_Call_setattribute("setAttribute", elem, "type", value);
if (val) {
elem.value = val;
}
return value;
}
}
}
,
value: {
get: function (elem, name){
if (nodeHook && jQuery.nodeName(elem, "button")) {
return nodeHook.get(elem, name);
}
return name in elem? elem.value: null ;
}
,
set: function (elem, value, name){
if (nodeHook && jQuery.nodeName(elem, "button")) {
return nodeHook.set(elem, value, name);
}
elem.value = value;
}
}
}
,
propFix: {
tabindex: "tabIndex",
readonly: "readOnly",
"for": "htmlFor",
"class": "className",
maxlength: "maxLength",
cellspacing: "cellSpacing",
cellpadding: "cellPadding",
rowspan: "rowSpan",
colspan: "colSpan",
usemap: "useMap",
frameborder: "frameBorder",
contenteditable: "contentEditable"}
,
prop: function (elem, name, value){
var ret, hooks, notxml, nType = elem.nodeType;
if (!elem || nType === 3 || nType === 8 || nType === 2) {
return ;
}
notxml = nType !== 1 || !jQuery.isXMLDoc(elem);
if (notxml) {
name = jQuery.propFix[name] || name;
hooks = jQuery.propHooks[name];
}
if (value !== undefined) {
if (hooks && "set" in hooks && (ret = hooks.set(elem, value, name)) !== undefined) {
return ret;
}
else {
return (elem[name] = value);
}
}
else {
if (hooks && "get" in hooks && (ret = hooks.get(elem, name)) !== null ) {
return ret;
}
else {
return elem[name];
}
}
}
,
propHooks: {
tabIndex: {
get: function (elem){
var attributeNode = elem.getAttributeNode("tabindex");
return attributeNode && attributeNode.specified? parseInt(attributeNode.value, 10): rfocusable.test(elem.nodeName) || rclickable.test(elem.nodeName) && _AN_Read_href("href", elem)? 0: undefined;
}
}
}
}
);
boolHook = {
get: function (elem, name){
var attrNode, property = jQuery.prop(elem, name);
return property === true || typeof property !== "boolean" && (attrNode = elem.getAttributeNode(name)) && _AN_Read_nodevalue("nodeValue", attrNode) !== false ? name.toLowerCase(): undefined;
}
,
set: function (elem, value, name){
var propName;
if (value === false ) {
jQuery.removeAttr(elem, name);
}
else {
propName = jQuery.propFix[name] || name;
if (propName in elem) {
elem[propName] = true ;
}
_AN_Call_setattribute("setAttribute", elem, name, name.toLowerCase());
}
return name;
}
}
;
if (!getSetAttribute) {
fixSpecified = {
name: true ,
id: true ,
coords: true }
;
nodeHook = jQuery.valHooks.button = {
get: function (elem, name){
var ret;
ret = elem.getAttributeNode(name);
return ret && (fixSpecified[name]? ret.value !== "": ret.specified)? ret.value: undefined;
}
,
set: function (elem, value, name){
var ret = elem.getAttributeNode(name);
if (!ret) {
ret = document.createAttribute(name);
elem.setAttributeNode(ret);
}
return (ret.value = value + "");
}
}
;
jQuery.each(["width", "height"] , function (i, name){
jQuery.attrHooks[name] = jQuery.extend(jQuery.attrHooks[name], {
set: function (elem, value){
if (value === "") {
_AN_Call_setattribute("setAttribute", elem, name, "auto");
return value;
}
}
}
);
}
);
jQuery.attrHooks.contenteditable = {
get: nodeHook.get,
set: function (elem, value, name){
if (value === "") {
value = "false";
}
nodeHook.set(elem, value, name);
}
}
;
}
if (!jQuery.support.hrefNormalized) {
jQuery.each(["href", "src", "width", "height"] , function (i, name){
jQuery.attrHooks[name] = jQuery.extend(jQuery.attrHooks[name], {
get: function (elem){
var ret = _AN_Call_getattribute("getAttribute", elem, name, 2);
return ret === null ? undefined: ret;
}
}
);
}
);
}
if (!jQuery.support.style) {
jQuery.attrHooks.style = {
get: function (elem){
return _AN_Read_csstext("cssText", elem.style).toLowerCase() || undefined;
}
,
set: function (elem, value){
return (_AN_Write_csstext("cssText", elem.style, false , value + ""));
}
}
;
}
if (!jQuery.support.optSelected) {
jQuery.propHooks.selected = jQuery.extend(jQuery.propHooks.selected, {
get: function (elem){
var parent = elem.parentNode;
if (parent) {
parent.selectedIndex;
if (parent.parentNode) {
parent.parentNode.selectedIndex;
}
}
return null ;
}
}
);
}
if (!jQuery.support.enctype) {
jQuery.propFix.enctype = "encoding";
}
if (!jQuery.support.checkOn) {
jQuery.each(["radio", "checkbox"] , function (){
jQuery.valHooks[this] = {
get: function (elem){
return _AN_Call_getattribute("getAttribute", elem, "value") === null ? "on": elem.value;
}
}
;
}
);
}
jQuery.each(["radio", "checkbox"] , function (){
jQuery.valHooks[this] = jQuery.extend(jQuery.valHooks[this], {
set: function (elem, value){
if (jQuery.isArray(value)) {
return (elem.checked = jQuery.inArray(jQuery(elem).val(), value) >= 0);
}
}
}
);
}
);
var rformElems = /^(?:textarea|input|select)$/i, rtypenamespace = /^([^\.]*|)(?:\.(.+)|)$/, rhoverHack = /(?:^|\s)hover(\.\S+|)\b/, rkeyEvent = /^key/, rmouseEvent = /^(?:mouse|contextmenu)|click/, rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, hoverHack = function (events){
return jQuery.event.special.hover? events: _AN_Call_replace("replace", events, rhoverHack, "mouseenter$1 mouseleave$1");
}
;
jQuery.event = {
add: function (elem, types, handler, data, selector){
var elemData, eventHandle, events, t, tns, type, namespaces, handleObj, handleObjIn, handlers, special;
if (elem.nodeType === 3 || elem.nodeType === 8 || !types || !handler || !(elemData = jQuery._data(elem))) {
return ;
}
if (handler.handler) {
handleObjIn = handler;
handler = handleObjIn.handler;
selector = handleObjIn.selector;
}
if (!handler.guid) {
handler.guid = jQuery.guid++ ;
}
events = elemData.events;
if (!events) {
elemData.events = events = {
}
;
}
eventHandle = elemData.handle;
if (!eventHandle) {
elemData.handle = eventHandle = function (e){
return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type)? jQuery.event.dispatch.apply(eventHandle.elem, arguments): undefined;
}
;
eventHandle.elem = elem;
}
types = jQuery.trim(hoverHack(types)).split(" ");
for (t = 0; t < _AN_Read_length("length", types); t++ ){
tns = rtypenamespace.exec(types[t]) || [] ;
type = tns[1];
namespaces = (tns[2] || "").split(".").sort();
special = jQuery.event.special[type] || {
}
;
type = (selector? special.delegateType: special.bindType) || type;
special = jQuery.event.special[type] || {
}
;
handleObj = jQuery.extend({
type: type,
origType: tns[1],
data: data,
handler: handler,
guid: handler.guid,
selector: selector,
needsContext: selector && jQuery.expr.match.needsContext.test(selector),
namespace: namespaces.join(".")}
, handleObjIn);
handlers = events[type];
if (!handlers) {
handlers = events[type] = [] ;
handlers.delegateCount = 0;
if (!special.setup || special.setup.call(elem, data, namespaces, eventHandle) === false ) {
if (elem.addEventListener) {
elem.addEventListener(type, eventHandle, false );
}
else if (elem.attachEvent) {
elem.attachEvent("on" + type, eventHandle);
}
}
}
if (special.add) {
special.add.call(elem, handleObj);
if (!handleObj.handler.guid) {
handleObj.handler.guid = handler.guid;
}
}
if (selector) {
handlers.splice(handlers.delegateCount++ , 0, handleObj);
}
else {
handlers.push(handleObj);
}
jQuery.event.global[type] = true ;
}
elem = null ;
}
,
global: {
}
,
remove: function (elem, types, handler, selector, mappedTypes){
var t, tns, type, origType, namespaces, origCount, j, events, special, eventType, handleObj, elemData = jQuery.hasData(elem) && jQuery._data(elem);
if (!elemData || !(events = elemData.events)) {
return ;
}
types = jQuery.trim(hoverHack(types || "")).split(" ");
for (t = 0; t < _AN_Read_length("length", types); t++ ){
tns = rtypenamespace.exec(types[t]) || [] ;
type = origType = tns[1];
namespaces = tns[2];
if (!type) {
for (type in events){
jQuery.event.remove(elem, type + types[t], handler, selector, true );
}
continue ;
}
special = jQuery.event.special[type] || {
}
;
type = (selector? special.delegateType: special.bindType) || type;
eventType = events[type] || [] ;
origCount = _AN_Read_length("length", eventType);
namespaces = namespaces? new RegExp("(^|\\.)" + namespaces.split(".").sort().join("\\.(?:.*\\.|)") + "(\\.|$)"): null ;
for (j = 0; j < _AN_Read_length("length", eventType); j++ ){
handleObj = eventType[j];
if ((mappedTypes || origType === handleObj.origType) && (!handler || handler.guid === handleObj.guid) && (!namespaces || namespaces.test(handleObj.namespace)) && (!selector || selector === handleObj.selector || selector === "**" && handleObj.selector)) {
eventType.splice(j-- , 1);
if (handleObj.selector) {
eventType.delegateCount-- ;
}
if (special.remove) {
special.remove.call(elem, handleObj);
}
}
}
if (_AN_Read_length("length", eventType) === 0 && origCount !== _AN_Read_length("length", eventType)) {
if (!special.teardown || special.teardown.call(elem, namespaces, elemData.handle) === false ) {
jQuery.removeEvent(elem, type, elemData.handle);
}
delete events[type];
}
}
if (jQuery.isEmptyObject(events)) {
delete elemData.handle;
jQuery.removeData(elem, "events", true );
}
}
,
customEvent: {
"getData": true ,
"setData": true ,
"changeData": true }
,
trigger: function (event, data, elem, onlyHandlers){
if (elem && (elem.nodeType === 3 || elem.nodeType === 8)) {
return ;
}
var cache, exclusive, i, cur, old, ontype, special, handle, eventPath, bubbleType, type = event.type || event, namespaces = [] ;
if (rfocusMorph.test(type + jQuery.event.triggered)) {
return ;
}
if (type.indexOf("!") >= 0) {
type = type.slice(0, -1);
exclusive = true ;
}
if (type.indexOf(".") >= 0) {
namespaces = type.split(".");
type = namespaces.shift();
namespaces.sort();
}
if ((!elem || jQuery.event.customEvent[type]) && !jQuery.event.global[type]) {
return ;
}
event = typeof event === "object"? event[jQuery.expando]? event: new jQuery.Event(type, event): new jQuery.Event(type);
event.type = type;
event.isTrigger = true ;
event.exclusive = exclusive;
event.namespace = namespaces.join(".");
event.namespace_re = event.namespace? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)"): null ;
ontype = type.indexOf(":") < 0? "on" + type: "";
if (!elem) {
cache = jQuery.cache;
for (i in cache){
if (cache[i].events && cache[i].events[type]) {
jQuery.event.trigger(event, data, cache[i].handle.elem, true );
}
}
return ;
}
event.result = undefined;
if (!_AN_Read_target("target", event)) {
_AN_Write_target("target", event, false , elem);
}
data = data != null ? jQuery.makeArray(data): [] ;
data.unshift(event);
special = jQuery.event.special[type] || {
}
;
if (special.trigger && special.trigger.apply(elem, data) === false ) {
return ;
}
eventPath = [[elem, special.bindType || type] ] ;
if (!onlyHandlers && !special.noBubble && !jQuery.isWindow(elem)) {
bubbleType = special.delegateType || type;
cur = rfocusMorph.test(bubbleType + type)? elem: elem.parentNode;
for (old = elem; cur; cur = cur.parentNode){
eventPath.push([cur, bubbleType] );
old = cur;
}
if (old === (elem.ownerDocument || document)) {
eventPath.push([old.defaultView || old.parentWindow || window, bubbleType] );
}
}
for (i = 0; i < _AN_Read_length("length", eventPath) && !event.isPropagationStopped(); i++ ){
cur = eventPath[i][0];
event.type = eventPath[i][1];
handle = (jQuery._data(cur, "events") || {
}
)[event.type] && jQuery._data(cur, "handle");
if (handle) {
handle.apply(cur, data);
}
handle = ontype && cur[ontype];
if (handle && jQuery.acceptData(cur) && handle.apply && handle.apply(cur, data) === false ) {
event.preventDefault();
}
}
event.type = type;
if (!onlyHandlers && !event.isDefaultPrevented()) {
if ((!special._default || special._default.apply(elem.ownerDocument, data) === false ) && !(type === "click" && jQuery.nodeName(elem, "a")) && jQuery.acceptData(elem)) {
if (ontype && elem[type] && ((type !== "focus" && type !== "blur") || _AN_Read_target("target", event).offsetWidth !== 0) && !jQuery.isWindow(elem)) {
old = elem[ontype];
if (old) {
elem[ontype] = null ;
}
jQuery.event.triggered = type;
elem[type]();
jQuery.event.triggered = undefined;
if (old) {
elem[ontype] = old;
}
}
}
}
return event.result;
}
,
dispatch: function (event){
event = jQuery.event.fix(event || window.event);
var i, j, cur, ret, selMatch, matched, matches, handleObj, sel, related, handlers = ((jQuery._data(this, "events") || {
}
)[event.type] || [] ), delegateCount = handlers.delegateCount, args = core_slice.call(arguments), run_all = !event.exclusive && !event.namespace, special = jQuery.event.special[event.type] || {
}
, handlerQueue = [] ;
args[0] = event;
event.delegateTarget = this;
if (special.preDispatch && special.preDispatch.call(this, event) === false ) {
return ;
}
if (delegateCount && !(event.button && event.type === "click")) {
for (cur = _AN_Read_target("target", event); cur != this; cur = cur.parentNode || this){
if (cur.disabled !== true || event.type !== "click") {
selMatch = {
}
;
matches = [] ;
for (i = 0; i < delegateCount; i++ ){
handleObj = handlers[i];
sel = handleObj.selector;
if (selMatch[sel] === undefined) {
selMatch[sel] = handleObj.needsContext? jQuery(sel, this).index(cur) >= 0: _AN_Read_length("length", jQuery.find(sel, this, null , [cur] ));
}
if (selMatch[sel]) {
matches.push(handleObj);
}
}
if (matches.length) {
handlerQueue.push({
elem: cur,
matches: matches}
);
}
}
}
}
if (_AN_Read_length("length", handlers) > delegateCount) {
handlerQueue.push({
elem: this,
matches: handlers.slice(delegateCount)}
);
}
for (i = 0; i < _AN_Read_length("length", handlerQueue) && !event.isPropagationStopped(); i++ ){
matched = handlerQueue[i];
event.currentTarget = matched.elem;
for (j = 0; j < _AN_Read_length("length", matched.matches) && !event.isImmediatePropagationStopped(); j++ ){
handleObj = matched.matches[j];
if (run_all || (!event.namespace && !handleObj.namespace) || event.namespace_re && event.namespace_re.test(handleObj.namespace)) {
event.data = handleObj.data;
event.handleObj = handleObj;
ret = ((jQuery.event.special[handleObj.origType] || {
}
).handle || handleObj.handler).apply(matched.elem, args);
if (ret !== undefined) {
event.result = ret;
if (ret === false ) {
event.preventDefault();
event.stopPropagation();
}
}
}
}
}
if (special.postDispatch) {
special.postDispatch.call(this, event);
}
return event.result;
}
,
props: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
fixHooks: {
}
,
keyHooks: {
props: "char charCode key keyCode".split(" "),
filter: function (event, original){
if (event.which == null ) {
event.which = original.charCode != null ? original.charCode: original.keyCode;
}
return event;
}
}
,
mouseHooks: {
props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
filter: function (event, original){
var eventDoc, doc, body, button = original.button, fromElement = original.fromElement;
if (event.pageX == null && original.clientX != null ) {
eventDoc = _AN_Read_target("target", event).ownerDocument || document;
doc = eventDoc.documentElement;
body = eventDoc.body;
event.pageX = original.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);
event.pageY = original.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc && doc.clientTop || body && body.clientTop || 0);
}
if (!event.relatedTarget && fromElement) {
event.relatedTarget = fromElement === _AN_Read_target("target", event)? original.toElement: fromElement;
}
if (!event.which && button !== undefined) {
event.which = (button & 1? 1: (button & 2? 3: (button & 4? 2: 0)));
}
return event;
}
}
,
fix: function (event){
if (event[jQuery.expando]) {
return event;
}
var i, prop, originalEvent = event, fixHook = jQuery.event.fixHooks[event.type] || {
}
, copy = fixHook.props? this.props.concat(fixHook.props): this.props;
event = jQuery.Event(originalEvent);
for (i = _AN_Read_length("length", copy); i; ){
prop = copy[--i];
event[prop] = originalEvent[prop];
}
if (!_AN_Read_target("target", event)) {
_AN_Write_target("target", event, false , originalEvent.srcElement || document);
}
if (_AN_Read_target("target", event).nodeType === 3) {
_AN_Write_target("target", event, false , _AN_Read_target("target", event).parentNode);
}
event.metaKey = !!event.metaKey;
return fixHook.filter? fixHook.filter(event, originalEvent): event;
}
,
special: {
load: {
noBubble: true }
,
focus: {
delegateType: "focusin"}
,
blur: {
delegateType: "focusout"}
,
beforeunload: {
setup: function (data, namespaces, eventHandle){
if (jQuery.isWindow(this)) {
this.onbeforeunload = eventHandle;
}
}
,
teardown: function (namespaces, eventHandle){
if (this.onbeforeunload === eventHandle) {
this.onbeforeunload = null ;
}
}
}
}
,
simulate: function (type, elem, event, bubble){
var e = jQuery.extend(new jQuery.Event(), event, {
type: type,
isSimulated: true ,
originalEvent: {
}
}
);
if (bubble) {
jQuery.event.trigger(e, null , elem);
}
else {
jQuery.event.dispatch.call(elem, e);
}
if (e.isDefaultPrevented()) {
event.preventDefault();
}
}
}
;
jQuery.event.handle = jQuery.event.dispatch;
jQuery.removeEvent = document.removeEventListener? function (elem, type, handle){
if (elem.removeEventListener) {
elem.removeEventListener(type, handle, false );
}
}
: function (elem, type, handle){
var name = "on" + type;
if (elem.detachEvent) {
if (typeof elem[name] === "undefined") {
elem[name] = null ;
}
elem.detachEvent(name, handle);
}
}
;
jQuery.Event = function (src, props){
if (!(this instanceof jQuery.Event)) {
return new jQuery.Event(src, props);
}
if (src && src.type) {
this.originalEvent = src;
this.type = src.type;
this.isDefaultPrevented = (src.defaultPrevented || src.returnValue === false || src.getPreventDefault && src.getPreventDefault())? returnTrue: returnFalse;
}
else {
this.type = src;
}
if (props) {
jQuery.extend(this, props);
}
this.timeStamp = src && src.timeStamp || jQuery.now();
this[jQuery.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();
}
else {
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}
;
jQuery.each({
mouseenter: "mouseover",
mouseleave: "mouseout"}
, function (orig, fix){
jQuery.event.special[orig] = {
delegateType: fix,
bindType: fix,
handle: function (event){
var ret, target = this, related = event.relatedTarget, handleObj = event.handleObj, selector = handleObj.selector;
if (!related || (related !== target && !jQuery.contains(target, related))) {
event.type = handleObj.origType;
ret = handleObj.handler.apply(this, arguments);
event.type = fix;
}
return ret;
}
}
;
}
);
if (!jQuery.support.submitBubbles) {
jQuery.event.special.submit = {
setup: function (){
if (jQuery.nodeName(this, "form")) {
return false ;
}
jQuery.event.add(this, "click._submit keypress._submit", function (e){
var elem = _AN_Read_target("target", e), form = jQuery.nodeName(elem, "input") || jQuery.nodeName(elem, "button")? elem.form: undefined;
if (form && !jQuery._data(form, "_submit_attached")) {
jQuery.event.add(form, "submit._submit", function (event){
event._submit_bubble = true ;
}
);
jQuery._data(form, "_submit_attached", true );
}
}
);
}
,
postDispatch: function (event){
if (event._submit_bubble) {
delete event._submit_bubble;
if (this.parentNode && !event.isTrigger) {
jQuery.event.simulate("submit", this.parentNode, event, true );
}
}
}
,
teardown: function (){
if (jQuery.nodeName(this, "form")) {
return false ;
}
jQuery.event.remove(this, "._submit");
}
}
;
}
if (!jQuery.support.changeBubbles) {
jQuery.event.special.change = {
setup: function (){
if (rformElems.test(this.nodeName)) {
if (this.type === "checkbox" || this.type === "radio") {
jQuery.event.add(this, "propertychange._change", function (event){
if (event.originalEvent.propertyName === "checked") {
this._just_changed = true ;
}
}
);
jQuery.event.add(this, "click._change", function (event){
if (this._just_changed && !event.isTrigger) {
this._just_changed = false ;
}
jQuery.event.simulate("change", this, event, true );
}
);
}
return false ;
}
jQuery.event.add(this, "beforeactivate._change", function (e){
var elem = _AN_Read_target("target", e);
if (rformElems.test(elem.nodeName) && !jQuery._data(elem, "_change_attached")) {
jQuery.event.add(elem, "change._change", function (event){
if (this.parentNode && !event.isSimulated && !event.isTrigger) {
jQuery.event.simulate("change", this.parentNode, event, true );
}
}
);
jQuery._data(elem, "_change_attached", true );
}
}
);
}
,
handle: function (event){
var elem = _AN_Read_target("target", event);
if (this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox")) {
return event.handleObj.handler.apply(this, arguments);
}
}
,
teardown: function (){
jQuery.event.remove(this, "._change");
return !rformElems.test(this.nodeName);
}
}
;
}
if (!jQuery.support.focusinBubbles) {
jQuery.each({
focus: "focusin",
blur: "focusout"}
, function (orig, fix){
var attaches = 0, handler = function (event){
jQuery.event.simulate(fix, _AN_Read_target("target", event), jQuery.event.fix(event), true );
}
;
jQuery.event.special[fix] = {
setup: function (){
if (attaches++ === 0) {
document.addEventListener(orig, handler, true );
}
}
,
teardown: function (){
if (--attaches === 0) {
document.removeEventListener(orig, handler, true );
}
}
}
;
}
);
}
jQuery.fn.extend({
on: function (types, selector, data, fn, one){
var origFn, type;
if (typeof types === "object") {
if (typeof selector !== "string") {
data = data || selector;
selector = undefined;
}
for (type in types){
this.on(type, selector, data, types[type], one);
}
return this;
}
if (data == null && fn == null ) {
fn = selector;
data = selector = undefined;
}
else if (fn == null ) {
if (typeof selector === "string") {
fn = data;
data = undefined;
}
else {
fn = data;
data = selector;
selector = undefined;
}
}
if (fn === false ) {
fn = returnFalse;
}
else if (!fn) {
return this;
}
if (one === 1) {
origFn = fn;
fn = function (event){
jQuery().off(event);
return origFn.apply(this, arguments);
}
;
fn.guid = origFn.guid || (origFn.guid = jQuery.guid++ );
}
return this.each(function (){
jQuery.event.add(this, types, fn, data, selector);
}
);
}
,
one: function (types, selector, data, fn){
return this.on(types, selector, data, fn, 1);
}
,
off: function (types, selector, fn){
var handleObj, type;
if (types && types.preventDefault && types.handleObj) {
handleObj = types.handleObj;
jQuery(types.delegateTarget).off(handleObj.namespace? handleObj.origType + "." + handleObj.namespace: handleObj.origType, handleObj.selector, handleObj.handler);
return this;
}
if (typeof types === "object") {
for (type in types){
this.off(type, selector, types[type]);
}
return this;
}
if (selector === false || typeof selector === "function") {
fn = selector;
selector = undefined;
}
if (fn === false ) {
fn = returnFalse;
}
return this.each(function (){
jQuery.event.remove(this, types, fn, selector);
}
);
}
,
bind: function (types, data, fn){
return this.on(types, null , data, fn);
}
,
unbind: function (types, fn){
return this.off(types, null , fn);
}
,
live: function (types, data, fn){
jQuery(this.context).on(types, this.selector, data, fn);
return this;
}
,
die: function (types, fn){
jQuery(this.context).off(types, this.selector || "**", fn);
return this;
}
,
delegate: function (selector, types, data, fn){
return this.on(types, selector, data, fn);
}
,
undelegate: function (selector, types, fn){
return _AN_Read_length("length", arguments) === 1? this.off(selector, "**"): this.off(types, selector || "**", fn);
}
,
trigger: function (type, data){
return this.each(function (){
jQuery.event.trigger(type, data, this);
}
);
}
,
triggerHandler: function (type, data){
if (this[0]) {
return jQuery.event.trigger(type, data, this[0], true );
}
}
,
toggle: function (fn){
var args = arguments, guid = fn.guid || jQuery.guid++ , i = 0, toggler = function (event){
var lastToggle = (jQuery._data(this, "lastToggle" + fn.guid) || 0) % i;
jQuery._data(this, "lastToggle" + fn.guid, lastToggle + 1);
event.preventDefault();
return args[lastToggle].apply(this, arguments) || false ;
}
;
toggler.guid = guid;
while (i < _AN_Read_length("length", args)){
args[i++ ].guid = guid;
}
return this.click(toggler);
}
,
hover: function (fnOver, fnOut){
return this.mouseenter(fnOver).mouseleave(fnOut || fnOver);
}
}
);
jQuery.each(("blur focus focusin focusout load resize scroll unload click dblclick " + "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + "change select submit keydown keypress keyup error contextmenu").split(" "), function (i, name){
jQuery.fn[name] = function (data, fn){
if (fn == null ) {
fn = data;
data = null ;
}
return _AN_Read_length("length", arguments) > 0? this.on(name, null , data, fn): this.trigger(name);
}
;
if (rkeyEvent.test(name)) {
jQuery.event.fixHooks[name] = jQuery.event.keyHooks;
}
if (rmouseEvent.test(name)) {
jQuery.event.fixHooks[name] = jQuery.event.mouseHooks;
}
}
);
(function (window, undefined){
var cachedruns, assertGetIdNotName, Expr, getText, isXML, contains, compile, sortOrder, hasDuplicate, outermostContext, baseHasDuplicate = true , strundefined = "undefined", expando = _AN_Call_replace("replace", ("sizcache" + Math.random()), ".", ""), Token = String, document = window.document, docElem = document.documentElement, dirruns = 0, done = 0, pop = [] .pop, push = [] .push, slice = [] .slice, indexOf = [] .indexOf || function (elem){
var i = 0, len = _AN_Read_length("length", this);
for (; i < len; i++ ){
if (this[i] === elem) {
return i;
}
}
return -1;
}
, markFunction = function (fn, value){
fn[expando] = value == null || value;
return fn;
}
, createCache = function (){
var cache = {
}
, keys = [] ;
return markFunction(function (key, value){
if (keys.push(key) > Expr.cacheLength) {
delete cache[keys.shift()];
}
return (cache[key] = value);
}
, cache);
}
, classCache = createCache(), tokenCache = createCache(), compilerCache = createCache(), whitespace = "[\\x20\\t\\r\\n\\f]", characterEncoding = "(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+", identifier = _AN_Call_replace("replace", characterEncoding, "w", "w#"), operators = "([*^$|!~]?=)", attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace + "*(?:" + operators + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]", pseudos = ":(" + characterEncoding + ")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:" + attributes + ")|[^:]|\\\\.)*|.*))\\)|)", pos = ":(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", rtrim = new RegExp("^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g"), rcomma = new RegExp("^" + whitespace + "*," + whitespace + "*"), rcombinators = new RegExp("^" + whitespace + "*([\\x20\\t\\r\\n\\f>+~])" + whitespace + "*"), rpseudo = new RegExp(pseudos), rquickExpr = /^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/, rnot = /^:not/, rsibling = /[\x20\t\r\n\f]*[+~]/, rendsWithNot = /:not\($/, rheader = /h\d/i, rinputs = /input|select|textarea|button/i, rbackslash = /\\(?!\\)/g, matchExpr = {
"ID": new RegExp("^#(" + characterEncoding + ")"),
"CLASS": new RegExp("^\\.(" + characterEncoding + ")"),
"NAME": new RegExp("^\\[name=['\"]?(" + characterEncoding + ")['\"]?\\]"),
"TAG": new RegExp("^(" + (_AN_Call_replace("replace", characterEncoding, "w", "w*")) + ")"),
"ATTR": new RegExp("^" + attributes),
"PSEUDO": new RegExp("^" + pseudos),
"POS": new RegExp(pos, "i"),
"CHILD": new RegExp("^:(only|nth|first|last)-child(?:\\(" + whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i"),
"needsContext": new RegExp("^" + whitespace + "*[>+~]|" + pos, "i")}
, assert = function (fn){
var div = _AN_Call_createelement("createElement", document, "div");
try {
return fn(div);
}
catch (e) {
return false ;
}
finally{
div = null ;
}
}
, assertTagNameNoComments = assert(function (div){
_AN_Call_appendchild("appendChild", div, document.createComment(""));
return !_AN_Read_length("length", _AN_Call_getelementsbytagname("getElementsByTagName", div, "*"));
}
), 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") === "#";
}
), 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";
}
), assertUsableClassName = assert(function (div){
_AN_Write_innerhtml("innerHTML", div, false , "");
if (!div.getElementsByClassName || !_AN_Read_length("length", div.getElementsByClassName("e"))) {
return false ;
}
div.lastChild.className = "e";
return _AN_Read_length("length", div.getElementsByClassName("e")) === 2;
}
), assertUsableName = assert(function (div){
div.id = expando + 0;
_AN_Write_innerhtml("innerHTML", div, false , "");
docElem.insertBefore(div, docElem.firstChild);
var pass = document.getElementsByName && _AN_Read_length("length", document.getElementsByName(expando)) === 2 + _AN_Read_length("length", document.getElementsByName(expando + 0));
assertGetIdNotName = !document.getElementById(expando);
docElem.removeChild(div);
return pass;
}
);
try {
slice.call(docElem.childNodes, 0)[0].nodeType;
}
catch (e) {
slice = function (i){
var elem, results = [] ;
for (; (elem = this[i]); i++ ){
results.push(elem);
}
return results;
}
;
}
function Sizzle(selector, context, results, seed){
results = results || [] ;
context = context || document;
var match, elem, xml, m, nodeType = context.nodeType;
if (!selector || typeof selector !== "string") {
return results;
}
if (nodeType !== 1 && nodeType !== 9) {
return [] ;
}
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) {
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, slice.call(_AN_Call_getelementsbytagname("getElementsByTagName", context, selector), 0));
return results;
}
else if ((m = match[3]) && assertUsableClassName && context.getElementsByClassName) {
push.apply(results, slice.call(context.getElementsByClassName(m), 0));
return results;
}
}
}
return select(_AN_Call_replace("replace", selector, rtrim, "$1"), context, results, seed, xml);
}
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;
}
;
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]);
}
}
}
);
}
);
}
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;
}
;
isXML = Sizzle.isXML = function (elem){
var documentElement = elem && (elem.ownerDocument || elem).documentElement;
return documentElement? documentElement.nodeName !== "HTML": false ;
}
;
contains = Sizzle.contains = docElem.contains? 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));
}
: docElem.compareDocumentPosition? function (a, b){
return b && !!(a.compareDocumentPosition(b) & 16);
}
: function (a, b){
while ((b = b.parentNode)){
if (b === a) {
return true ;
}
}
return false ;
}
;
Sizzle.attr = function (elem, name){
var val, xml = isXML(elem);
if (!xml) {
name = name.toLowerCase();
}
if ((val = Expr.attrHandle[name])) {
return val(elem);
}
if (xml || assertAttributes) {
return _AN_Call_getattribute("getAttribute", elem, name);
}
val = elem.getAttributeNode(name);
return val? typeof elem[name] === "boolean"? elem[name]? name: null : val.specified? val.value: null : null ;
}
;
Expr = Sizzle.selectors = {
cacheLength: 50,
createPseudo: markFunction,
match: matchExpr,
attrHandle: assertHrefNotNormalized? {
}
: {
"href": function (elem){
return _AN_Call_getattribute("getAttribute", elem, "href", 2);
}
,
"type": function (elem){
return _AN_Call_getattribute("getAttribute", elem, "type");
}
}
,
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: [] ;
}
}
,
"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 elem, tmp = [] , i = 0;
for (; (elem = results[i]); i++ ){
if (elem.nodeType === 1) {
tmp.push(elem);
}
}
return tmp;
}
return results;
}
,
"NAME": assertUsableName && function (tag, context){
if (typeof context.getElementsByName !== strundefined) {
return context.getElementsByName(name);
}
}
,
"CLASS": assertUsableClassName && function (className, context, xml){
if (typeof context.getElementsByClassName !== strundefined && !xml) {
return context.getElementsByClassName(className);
}
}
}
,
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], 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){
match[1] = match[1].toLowerCase();
if (match[1] === "nth") {
if (!match[2]) {
Sizzle.error(match[0]);
}
match[3] = + (match[3]? match[4] + (match[5] || 1): 2 * (match[2] === "even" || match[2] === "odd"));
match[4] = + ((match[6] + match[7]) || match[2] === "odd");
}
else if (match[2]) {
Sizzle.error(match[0]);
}
return match;
}
,
"PSEUDO": function (match){
var unquoted, excess;
if (matchExpr.CHILD.test(match[0])) {
return null ;
}
if (match[3]) {
match[2] = match[3];
}
else if ((unquoted = match[4])) {
if (rpseudo.test(unquoted) && (excess = tokenize(unquoted, true )) && (excess = unquoted.indexOf(")", _AN_Read_length("length", unquoted) - excess) - _AN_Read_length("length", unquoted))) {
unquoted = unquoted.slice(0, excess);
match[0] = match[0].slice(0, excess);
}
match[2] = unquoted;
}
return match.slice(0, 3);
}
}
,
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[expando][className];
if (!pattern) {
pattern = classCache(className, new RegExp("(^|" + whitespace + ")" + className + "(" + whitespace + "|$)"));
}
return function (elem){
return pattern.test(elem.className || (typeof elem.getAttribute !== strundefined && _AN_Call_getattribute("getAttribute", elem, "class")) || "");
}
;
}
,
"ATTR": function (name, operator, check){
return function (elem, context){
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.substr(_AN_Read_length("length", result) - _AN_Read_length("length", check)) === check: operator === "~="? (" " + result + " ").indexOf(check) > -1: operator === "|="? result === check || result.substr(0, _AN_Read_length("length", check) + 1) === check + "-": false ;
}
;
}
,
"CHILD": function (type, argument, first, last){
if (type === "nth") {
return function (elem){
var node, diff, parent = elem.parentNode;
if (first === 1 && last === 0) {
return true ;
}
if (parent) {
diff = 0;
for (node = parent.firstChild; node; node = node.nextSibling){
if (node.nodeType === 1) {
diff++ ;
if (elem === node) {
break ;
}
}
}
}
diff -= last;
return diff === first || (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, 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;
}
;
}
),
"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 !Expr.pseudos.empty(elem);
}
,
"empty": function (elem){
var nodeType;
elem = elem.firstChild;
while (elem){
if (elem.nodeName > "@" || (nodeType = elem.nodeType) === 3 || nodeType === 4) {
return false ;
}
elem = elem.nextSibling;
}
return true ;
}
,
"header": function (elem){
return rheader.test(elem.nodeName);
}
,
"text": function (elem){
var type, attr;
return elem.nodeName.toLowerCase() === "input" && (type = elem.type) === "text" && ((attr = _AN_Call_getattribute("getAttribute", elem, "type")) == null || attr.toLowerCase() === type);
}
,
"radio": createInputPseudo("radio"),
"checkbox": createInputPseudo("checkbox"),
"file": createInputPseudo("file"),
"password": createInputPseudo("password"),
"image": createInputPseudo("image"),
"submit": createButtonPseudo("submit"),
"reset": createButtonPseudo("reset"),
"button": function (elem){
var name = elem.nodeName.toLowerCase();
return name === "input" && elem.type === "button" || 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;
}
,
"first": createPositionalPseudo(function (matchIndexes, length, argument){
return [0] ;
}
),
"last": createPositionalPseudo(function (matchIndexes, length, argument){
return [length - 1] ;
}
),
"eq": createPositionalPseudo(function (matchIndexes, length, argument){
return [argument < 0? argument + length: argument] ;
}
),
"even": createPositionalPseudo(function (matchIndexes, length, argument){
for (var i = 0;
i < length; i += 2){
matchIndexes.push(i);
}
return matchIndexes;
}
),
"odd": createPositionalPseudo(function (matchIndexes, length, argument){
for (var i = 1;
i < length; i += 2){
matchIndexes.push(i);
}
return matchIndexes;
}
),
"lt": createPositionalPseudo(function (matchIndexes, length, argument){
for (var i = argument < 0? argument + length: argument;
--i >= 0; ){
matchIndexes.push(i);
}
return matchIndexes;
}
),
"gt": createPositionalPseudo(function (matchIndexes, length, argument){
for (var i = argument < 0? argument + length: argument;
++i < length; ){
matchIndexes.push(i);
}
return matchIndexes;
}
)}
}
;
function siblingCheck(a, b, ret){
if (a === b) {
return ret;
}
var cur = a.nextSibling;
while (cur){
if (cur === b) {
return -1;
}
cur = cur.nextSibling;
}
return 1;
}
sortOrder = docElem.compareDocumentPosition? function (a, b){
if (a === b) {
hasDuplicate = true ;
return 0;
}
return (!a.compareDocumentPosition || !b.compareDocumentPosition? a.compareDocumentPosition: a.compareDocumentPosition(b) & 4)? -1: 1;
}
: 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);
}
;
[0, 0] .sort(sortOrder);
baseHasDuplicate = !hasDuplicate;
Sizzle.uniqueSort = function (results){
var elem, i = 1;
hasDuplicate = baseHasDuplicate;
results.sort(sortOrder);
if (hasDuplicate) {
for (; (elem = results[i]); i++ ){
if (elem === results[i - 1]) {
results.splice(i-- , 1);
}
}
}
return results;
}
;
Sizzle.error = function (msg){
throw new Error("Syntax error, unrecognized expression: " + msg)
}
;
function tokenize(selector, parseOnly){
var matched, match, tokens, type, soFar, groups, preFilters, cached = tokenCache[expando][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]));
}
groups.push(tokens = [] );
}
matched = false ;
if ((match = rcombinators.exec(soFar))) {
tokens.push(matched = new Token(match.shift()));
soFar = soFar.slice(_AN_Read_length("length", matched));
matched.type = _AN_Call_replace("replace", match[0], rtrim, " ");
}
for (type in Expr.filter){
if ((match = matchExpr[type].exec(soFar)) && (!preFilters[type] || (match = preFilters[type](match, document, true )))) {
tokens.push(matched = new Token(match.shift()));
soFar = soFar.slice(_AN_Read_length("length", matched));
matched.type = type;
matched.matches = match;
}
}
if (!matched) {
break ;
}
}
return parseOnly? _AN_Read_length("length", soFar): soFar? Sizzle.error(selector): tokenCache(selector, groups).slice(0);
}
function addCombinator(matcher, combinator, base){
var dir = combinator.dir, checkNonElements = base && combinator.dir === "parentNode", doneName = done++ ;
return combinator.first? function (elem, context, xml){
while ((elem = elem[dir])){
if (checkNonElements || elem.nodeType === 1) {
return matcher(elem, context, xml);
}
}
}
: function (elem, context, xml){
if (!xml) {
var cache, dirkey = dirruns + " " + doneName + " ", cachedkey = dirkey + cachedruns;
while ((elem = elem[dir])){
if (checkNonElements || elem.nodeType === 1) {
if ((cache = elem[expando]) === cachedkey) {
return elem.sizset;
}
else if (typeof cache === "string" && cache.indexOf(dirkey) === 0) {
if (elem.sizset) {
return elem;
}
}
else {
elem[expando] = cachedkey;
if (matcher(elem, context, xml)) {
elem.sizset = true ;
return elem;
}
elem.sizset = false ;
}
}
}
}
else {
while ((elem = elem[dir])){
if (checkNonElements || elem.nodeType === 1) {
if (matcher(elem, context, xml)) {
return elem;
}
}
}
}
}
;
}
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){
if (seed && postFinder) {
return ;
}
var i, elem, postFilterIn, preMap = [] , postMap = [] , preexisting = _AN_Read_length("length", results), elems = seed || multipleContexts(selector || "*", context.nodeType? [context] : context, [] , seed), 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) {
postFilterIn = condense(matcherOut, postMap);
postFilter(postFilterIn, [] , context, xml);
i = _AN_Read_length("length", postFilterIn);
while (i-- ){
if ((elem = postFilterIn[i])) {
matcherOut[postMap[i]] = !(matcherIn[postMap[i]] = elem);
}
}
}
if (seed) {
i = preFilter && _AN_Read_length("length", matcherOut);
while (i-- ){
if ((elem = matcherOut[i])) {
seed[preMap[i]] = !(results[preMap[i]] = 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", tokens.slice(0, i - 1).join(""), rtrim, "$1"), matcher, i < j && matcherFromTokens(tokens.slice(i, j)), j < len && matcherFromTokens((tokens = tokens.slice(j))), j < len && tokens.join(""));
}
matchers.push(matcher);
}
}
return elementMatcher(matchers);
}
function matcherFromGroupMatchers(elementMatchers, setMatchers){
var 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.E);
if (outermost) {
outermostContext = context !== document && context;
cachedruns = superMatcher.el;
}
for (; (elem = elems[i]) != null ; i++ ){
if (byElement && elem) {
for (j = 0; (matcher = elementMatchers[j]); j++ ){
if (matcher(elem, context, xml)) {
results.push(elem);
break ;
}
}
if (outermost) {
dirruns = dirrunsUnique;
cachedruns = ++superMatcher.el;
}
}
if (bySet) {
if ((elem = !matcher && elem)) {
matchedCount-- ;
}
if (seed) {
unmatched.push(elem);
}
}
}
matchedCount += i;
if (bySet && i !== matchedCount) {
for (j = 0; (matcher = setMatchers[j]); 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;
}
;
superMatcher.el = 0;
return bySet? markFunction(superMatcher): superMatcher;
}
compile = Sizzle.compile = function (selector, group){
var i, setMatchers = [] , elementMatchers = [] , cached = compilerCache[expando][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, seed){
var i = 0, len = _AN_Read_length("length", contexts);
for (; i < len; i++ ){
Sizzle(selector, contexts[i], results, seed);
}
return results;
}
function select(selector, context, results, seed, xml){
var i, tokens, token, type, find, match = tokenize(selector), j = _AN_Read_length("length", match);
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" && context.nodeType === 9 && !xml && Expr.relative[tokens[1].type]) {
context = Expr.find.ID(_AN_Call_replace("replace", token.matches[0], rbackslash, ""), context, xml)[0];
if (!context) {
return results;
}
selector = selector.slice(_AN_Read_length("length", tokens.shift()));
}
for (i = matchExpr.POS.test(selector)? -1: _AN_Read_length("length", tokens) - 1; i >= 0; 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], rbackslash, ""), rsibling.test(tokens[0].type) && context.parentNode || context, xml))) {
tokens.splice(i, 1);
selector = _AN_Read_length("length", seed) && tokens.join("");
if (!selector) {
push.apply(results, slice.call(seed, 0));
return results;
}
break ;
}
}
}
}
}
compile(selector, match)(seed, context, xml, results, rsibling.test(selector));
return results;
}
if (document.querySelectorAll) {
(function (){
var disconnectedMatch, oldSelect = select, rescape = /'|\\/g, rattributeQuotes = /\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g, rbuggyQSA = [":focus"] , rbuggyMatches = [":active", ":focus"] , 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("\\[" + whitespace + "*(?: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("[*^$]=" + whitespace + "*(?:\"\"|'')");
}
_AN_Write_innerhtml("innerHTML", div, false , "");
if (!_AN_Read_length("length", div.querySelectorAll(":enabled"))) {
rbuggyQSA.push(":enabled", ":disabled");
}
}
);
rbuggyQSA = new RegExp(rbuggyQSA.join("|"));
select = function (selector, context, results, seed, xml){
if (!seed && !xml && (!rbuggyQSA || !rbuggyQSA.test(selector))) {
var groups, i, old = true , nid = expando, newContext = context, newSelector = context.nodeType === 9 && selector;
if (context.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 + groups[i].join("");
}
newContext = rsibling.test(selector) && context.parentNode || context;
newSelector = groups.join(",");
}
if (newSelector) {
try {
push.apply(results, slice.call(newContext.querySelectorAll(newSelector), 0));
return results;
}
catch (qsaError) {
}
finally{
if (!old) {
context.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("!=", pseudos);
}
catch (e) {
}
}
);
rbuggyMatches = new RegExp(rbuggyMatches.join("|"));
Sizzle.matchesSelector = function (elem, expr){
expr = _AN_Call_replace("replace", expr, rattributeQuotes, "='$1']");
if (!isXML(elem) && !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;
}
;
}
}
)();
}
Expr.pseudos.nth = Expr.pseudos.eq;
function setFilters(){
}
Expr.filters = setFilters.prototype = Expr.pseudos;
Expr.setFilters = new setFilters();
Sizzle.attr = jQuery.attr;
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 runtil = /Until$/, rparentsprev = /^(?:parents|prev(?:Until|All))/, isSimple = /^.[^:#\[\.,]*$/, rneedsContext = jQuery.expr.match.needsContext, guaranteedUnique = {
children: true ,
contents: true ,
next: true ,
prev: true }
;
jQuery.fn.extend({
find: function (selector){
var i, l, length, n, r, ret, self = this;
if (typeof selector !== "string") {
return jQuery(selector).filter(function (){
for (i = 0, l = _AN_Read_length("length", self); i < l; i++ ){
if (jQuery.contains(self[i], this)) {
return true ;
}
}
}
);
}
ret = this.pushStack("", "find", selector);
for (i = 0, l = _AN_Read_length("length", this); i < l; i++ ){
length = _AN_Read_length("length", ret);
jQuery.find(selector, this[i], ret);
if (i > 0) {
for (n = length; n < _AN_Read_length("length", ret); n++ ){
for (r = 0; r < length; r++ ){
if (ret[r] === ret[n]) {
ret.splice(n-- , 1);
break ;
}
}
}
}
}
return ret;
}
,
has: function (target){
var i, targets = jQuery(target, this), len = _AN_Read_length("length", targets);
return this.filter(function (){
for (i = 0; i < len; i++ ){
if (jQuery.contains(this, targets[i])) {
return true ;
}
}
}
);
}
,
not: function (selector){
return this.pushStack(winnow(this, selector, false ), "not", selector);
}
,
filter: function (selector){
return this.pushStack(winnow(this, selector, true ), "filter", selector);
}
,
is: function (selector){
return !!selector && (typeof selector === "string"? rneedsContext.test(selector)? jQuery(selector, this.context).index(this[0]) >= 0: _AN_Read_length("length", jQuery.filter(selector, this)) > 0: _AN_Read_length("length", this.filter(selector)) > 0);
}
,
closest: function (selectors, context){
var cur, i = 0, l = _AN_Read_length("length", this), ret = [] , pos = rneedsContext.test(selectors) || typeof selectors !== "string"? jQuery(selectors, context || this.context): 0;
for (; i < l; i++ ){
cur = this[i];
while (cur && cur.ownerDocument && cur !== context && cur.nodeType !== 11){
if (pos? pos.index(cur) > -1: jQuery.find.matchesSelector(cur, selectors)) {
ret.push(cur);
break ;
}
cur = cur.parentNode;
}
}
ret = _AN_Read_length("length", ret) > 1? jQuery.unique(ret): ret;
return this.pushStack(ret, "closest", selectors);
}
,
index: function (elem){
if (!elem) {
return (this[0] && this[0].parentNode)? _AN_Read_length("length", this.prevAll()): -1;
}
if (typeof elem === "string") {
return jQuery.inArray(this[0], jQuery(elem));
}
return jQuery.inArray(elem.jquery? elem[0]: elem, this);
}
,
add: function (selector, context){
var set = typeof selector === "string"? jQuery(selector, context): jQuery.makeArray(selector && selector.nodeType? [selector] : selector), all = jQuery.merge(this.get(), set);
return this.pushStack(isDisconnected(set[0]) || isDisconnected(all[0])? all: jQuery.unique(all));
}
,
addBack: function (selector){
return this.add(selector == null ? this.prevObject: this.prevObject.filter(selector));
}
}
);
jQuery.fn.andSelf = jQuery.fn.addBack;
function isDisconnected(node){
return !node || !node.parentNode || node.parentNode.nodeType === 11;
}
function sibling(cur, dir){
do {
cur = cur[dir];
}
while(cur && cur.nodeType !== 1)return cur;
}
jQuery.each({
parent: function (elem){
var parent = elem.parentNode;
return parent && parent.nodeType !== 11? parent: null ;
}
,
parents: function (elem){
return jQuery.dir(elem, "parentNode");
}
,
parentsUntil: function (elem, i, until){
return jQuery.dir(elem, "parentNode", until);
}
,
next: function (elem){
return sibling(elem, "nextSibling");
}
,
prev: function (elem){
return sibling(elem, "previousSibling");
}
,
nextAll: function (elem){
return jQuery.dir(elem, "nextSibling");
}
,
prevAll: function (elem){
return jQuery.dir(elem, "previousSibling");
}
,
nextUntil: function (elem, i, until){
return jQuery.dir(elem, "nextSibling", until);
}
,
prevUntil: function (elem, i, until){
return jQuery.dir(elem, "previousSibling", until);
}
,
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.merge([] , elem.childNodes);
}
}
, function (name, fn){
jQuery.fn[name] = function (until, selector){
var ret = jQuery.map(this, fn, until);
if (!runtil.test(name)) {
selector = until;
}
if (selector && typeof selector === "string") {
ret = jQuery.filter(selector, ret);
}
ret = _AN_Read_length("length", this) > 1 && !guaranteedUnique[name]? jQuery.unique(ret): ret;
if (_AN_Read_length("length", this) > 1 && rparentsprev.test(name)) {
ret = ret.reverse();
}
return this.pushStack(ret, name, core_slice.call(arguments).join(","));
}
;
}
);
jQuery.extend({
filter: function (expr, elems, not){
if (not) {
expr = ":not(" + expr + ")";
}
return _AN_Read_length("length", elems) === 1? jQuery.find.matchesSelector(elems[0], expr)? [elems[0]] : [] : jQuery.find.matches(expr, elems);
}
,
dir: function (elem, dir, until){
var matched = [] , cur = elem[dir];
while (cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery(cur).is(until))){
if (cur.nodeType === 1) {
matched.push(cur);
}
cur = cur[dir];
}
return matched;
}
,
sibling: function (n, elem){
var r = [] ;
for (; n; n = n.nextSibling){
if (n.nodeType === 1 && n !== elem) {
r.push(n);
}
}
return r;
}
}
);
function winnow(elements, qualifier, keep){
qualifier = qualifier || 0;
if (jQuery.isFunction(qualifier)) {
return jQuery.grep(elements, function (elem, i){
var retVal = !!qualifier.call(elem, i, elem);
return retVal === keep;
}
);
}
else if (qualifier.nodeType) {
return jQuery.grep(elements, function (elem, i){
return (elem === qualifier) === keep;
}
);
}
else if (typeof qualifier === "string") {
var filtered = jQuery.grep(elements, function (elem){
return elem.nodeType === 1;
}
);
if (isSimple.test(qualifier)) {
return jQuery.filter(qualifier, filtered, !keep);
}
else {
qualifier = jQuery.filter(qualifier, filtered);
}
}
return jQuery.grep(elements, function (elem, i){
return (jQuery.inArray(elem, qualifier) >= 0) === keep;
}
);
}
function createSafeFragment(document){
var list = nodeNames.split("|"), safeFrag = document.createDocumentFragment();
if (safeFrag.createElement) {
while (list.length){
_AN_Call_createelement("createElement", safeFrag, list.pop());
}
}
return safeFrag;
}
var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" + "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g, rleadingWhitespace = /^\s+/, rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, rtagName = /<([\w:]+)/, rtbody = /]", "i"), rcheckableType = /^(?:checkbox|radio)$/, rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i, rscriptType = /\/(java|ecma)script/i, rcleanScript = /^\s*\s*$/g, wrapMap = {
option: [1, ""] ,
legend: [1, ""] ,
thead: [1, ""] ,
tr: [2, ""] ,
td: [3, ""] ,
col: [2, ""] ,
area: [1, ""] ,
_default: [0, "", ""] }
, safeFragment = createSafeFragment(document), fragmentDiv = _AN_Call_appendchild("appendChild", safeFragment, _AN_Call_createelement("createElement", document, "div"));
wrapMap.optgroup = wrapMap.option;
wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
wrapMap.th = wrapMap.td;
if (!jQuery.support.htmlSerialize) {
wrapMap._default = [1, "X", "
"] ;
}
jQuery.fn.extend({
text: function (value){
return jQuery.access(this, function (value){
return value === undefined? jQuery.text(this): this.empty().append((this[0] && this[0].ownerDocument || document).createTextNode(value));
}
, null , value, _AN_Read_length("length", arguments));
}
,
wrapAll: function (html){
if (jQuery.isFunction(html)) {
return this.each(function (i){
jQuery(this).wrapAll(html.call(this, i));
}
);
}
if (this[0]) {
var wrap = jQuery(html, this[0].ownerDocument).eq(0).clone(true );
if (this[0].parentNode) {
wrap.insertBefore(this[0]);
}
wrap.map(function (){
var elem = this;
while (elem.firstChild && elem.firstChild.nodeType === 1){
elem = elem.firstChild;
}
return elem;
}
).append(this);
}
return this;
}
,
wrapInner: function (html){
if (jQuery.isFunction(html)) {
return this.each(function (i){
jQuery(this).wrapInner(html.call(this, i));
}
);
}
return this.each(function (){
var self = jQuery(this), contents = self.contents();
if (contents.length) {
contents.wrapAll(html);
}
else {
self.append(html);
}
}
);
}
,
wrap: function (html){
var isFunction = jQuery.isFunction(html);
return this.each(function (i){
jQuery(this).wrapAll(isFunction? html.call(this, i): html);
}
);
}
,
unwrap: function (){
return this.parent().each(function (){
if (!jQuery.nodeName(this, "body")) {
jQuery(this).replaceWith(this.childNodes);
}
}
).end();
}
,
append: function (){
return this.domManip(arguments, true , function (elem){
if (this.nodeType === 1 || this.nodeType === 11) {
_AN_Call_appendchild("appendChild", this, elem);
}
}
);
}
,
prepend: function (){
return this.domManip(arguments, true , function (elem){
if (this.nodeType === 1 || this.nodeType === 11) {
this.insertBefore(elem, this.firstChild);
}
}
);
}
,
before: function (){
if (!isDisconnected(this[0])) {
return this.domManip(arguments, false , function (elem){
this.parentNode.insertBefore(elem, this);
}
);
}
if (arguments.length) {
var set = jQuery.clean(arguments);
return this.pushStack(jQuery.merge(set, this), "before", this.selector);
}
}
,
after: function (){
if (!isDisconnected(this[0])) {
return this.domManip(arguments, false , function (elem){
this.parentNode.insertBefore(elem, this.nextSibling);
}
);
}
if (arguments.length) {
var set = jQuery.clean(arguments);
return this.pushStack(jQuery.merge(this, set), "after", this.selector);
}
}
,
remove: function (selector, keepData){
var elem, i = 0;
for (; (elem = this[i]) != null ; i++ ){
if (!selector || _AN_Read_length("length", jQuery.filter(selector, [elem] ))) {
if (!keepData && elem.nodeType === 1) {
jQuery.cleanData(_AN_Call_getelementsbytagname("getElementsByTagName", elem, "*"));
jQuery.cleanData([elem] );
}
if (elem.parentNode) {
elem.parentNode.removeChild(elem);
}
}
}
return this;
}
,
empty: function (){
var elem, i = 0;
for (; (elem = this[i]) != null ; i++ ){
if (elem.nodeType === 1) {
jQuery.cleanData(_AN_Call_getelementsbytagname("getElementsByTagName", elem, "*"));
}
while (elem.firstChild){
elem.removeChild(elem.firstChild);
}
}
return this;
}
,
clone: function (dataAndEvents, deepDataAndEvents){
dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents: deepDataAndEvents;
return this.map(function (){
return jQuery.clone(this, dataAndEvents, deepDataAndEvents);
}
);
}
,
html: function (value){
return jQuery.access(this, function (value){
var elem = this[0] || {
}
, i = 0, l = _AN_Read_length("length", this);
if (value === undefined) {
return elem.nodeType === 1? _AN_Call_replace("replace", elem.innerHTML, rinlinejQuery, ""): undefined;
}
if (typeof value === "string" && !rnoInnerhtml.test(value) && (jQuery.support.htmlSerialize || !rnoshimcache.test(value)) && (jQuery.support.leadingWhitespace || !rleadingWhitespace.test(value)) && !wrapMap[(rtagName.exec(value) || ["", ""] )[1].toLowerCase()]) {
value = _AN_Call_replace("replace", value, rxhtmlTag, "<$1>$2>");
try {
for (; i < l; i++ ){
elem = this[i] || {
}
;
if (elem.nodeType === 1) {
jQuery.cleanData(_AN_Call_getelementsbytagname("getElementsByTagName", elem, "*"));
_AN_Write_innerhtml("innerHTML", elem, false , value);
}
}
elem = 0;
}
catch (e) {
}
}
if (elem) {
this.empty().append(value);
}
}
, null , value, _AN_Read_length("length", arguments));
}
,
replaceWith: function (value){
if (!isDisconnected(this[0])) {
if (jQuery.isFunction(value)) {
return this.each(function (i){
var self = jQuery(this), old = self.html();
self.replaceWith(value.call(this, i, old));
}
);
}
if (typeof value !== "string") {
value = jQuery(value).detach();
}
return this.each(function (){
var next = this.nextSibling, parent = this.parentNode;
jQuery(this).remove();
if (next) {
jQuery(next).before(value);
}
else {
jQuery(parent).append(value);
}
}
);
}
return _AN_Read_length("length", this)? this.pushStack(jQuery(jQuery.isFunction(value)? value(): value), "replaceWith", value): this;
}
,
detach: function (selector){
return this.remove(selector, true );
}
,
domManip: function (args, table, callback){
args = [] .concat.apply([] , args);
var results, first, fragment, iNoClone, i = 0, value = args[0], scripts = [] , l = _AN_Read_length("length", this);
if (!jQuery.support.checkClone && l > 1 && typeof value === "string" && rchecked.test(value)) {
return this.each(function (){
jQuery(this).domManip(args, table, callback);
}
);
}
if (jQuery.isFunction(value)) {
return this.each(function (i){
var self = jQuery(this);
args[0] = value.call(this, i, table? self.html(): undefined);
self.domManip(args, table, callback);
}
);
}
if (this[0]) {
results = jQuery.buildFragment(args, this, scripts);
fragment = results.fragment;
first = fragment.firstChild;
if (_AN_Read_length("length", fragment.childNodes) === 1) {
fragment = first;
}
if (first) {
table = table && jQuery.nodeName(first, "tr");
for (iNoClone = results.cacheable || l - 1; i < l; i++ ){
callback.call(table && jQuery.nodeName(this[i], "table")? findOrAppend(this[i], "tbody"): this[i], i === iNoClone? fragment: jQuery.clone(fragment, true , true ));
}
}
fragment = first = null ;
if (scripts.length) {
jQuery.each(scripts, function (i, elem){
if (elem.src) {
if (jQuery.ajax) {
jQuery.ajax({
url: _AN_Read_src("src", elem),
type: "GET",
dataType: "script",
async: false ,
global: false ,
"throws": true }
);
}
else {
jQuery.error("no ajax");
}
}
else {
jQuery.globalEval(_AN_Call_replace("replace", (elem.text || elem.textContent || elem.innerHTML || ""), rcleanScript, ""));
}
if (elem.parentNode) {
elem.parentNode.removeChild(elem);
}
}
);
}
}
return this;
}
}
);
function findOrAppend(elem, tag){
return _AN_Call_getelementsbytagname("getElementsByTagName", elem, tag)[0] || _AN_Call_appendchild("appendChild", elem, _AN_Call_createelement("createElement", elem.ownerDocument, tag));
}
function cloneCopyEvent(src, dest){
if (dest.nodeType !== 1 || !jQuery.hasData(src)) {
return ;
}
var type, i, l, oldData = jQuery._data(src), curData = jQuery._data(dest, oldData), events = oldData.events;
if (events) {
delete curData.handle;
curData.events = {
}
;
for (type in events){
for (i = 0, l = _AN_Read_length("length", events[type]); i < l; i++ ){
jQuery.event.add(dest, type, events[type][i]);
}
}
}
if (curData.data) {
curData.data = jQuery.extend({
}
, curData.data);
}
}
function cloneFixAttributes(src, dest){
var nodeName;
if (dest.nodeType !== 1) {
return ;
}
if (dest.clearAttributes) {
dest.clearAttributes();
}
if (dest.mergeAttributes) {
dest.mergeAttributes(src);
}
nodeName = dest.nodeName.toLowerCase();
if (nodeName === "object") {
if (dest.parentNode) {
_AN_Write_outerhtml("outerHTML", dest, false , src.outerHTML);
}
if (jQuery.support.html5Clone && (src.innerHTML && !jQuery.trim(dest.innerHTML))) {
_AN_Write_innerhtml("innerHTML", dest, false , src.innerHTML);
}
}
else if (nodeName === "input" && rcheckableType.test(src.type)) {
dest.defaultChecked = dest.checked = src.checked;
if (dest.value !== src.value) {
dest.value = src.value;
}
}
else if (nodeName === "option") {
dest.selected = src.defaultSelected;
}
else if (nodeName === "input" || nodeName === "textarea") {
dest.defaultValue = src.defaultValue;
}
else if (nodeName === "script" && dest.text !== src.text) {
_AN_Write_text("text", dest, false , src.text);
}
dest.removeAttribute(jQuery.expando);
}
jQuery.buildFragment = function (args, context, scripts){
var fragment, cacheable, cachehit, first = args[0];
context = context || document;
context = !context.nodeType && context[0] || context;
context = context.ownerDocument || context;
if (_AN_Read_length("length", args) === 1 && typeof first === "string" && _AN_Read_length("length", first) < 512 && context === document && first.charAt(0) === "<" && !rnocache.test(first) && (jQuery.support.checkClone || !rchecked.test(first)) && (jQuery.support.html5Clone || !rnoshimcache.test(first))) {
cacheable = true ;
fragment = jQuery.fragments[first];
cachehit = fragment !== undefined;
}
if (!fragment) {
fragment = context.createDocumentFragment();
jQuery.clean(args, context, fragment, scripts);
if (cacheable) {
jQuery.fragments[first] = cachehit && fragment;
}
}
return {
fragment: fragment,
cacheable: cacheable}
;
}
;
jQuery.fragments = {
}
;
jQuery.each({
appendTo: "append",
prependTo: "prepend",
insertBefore: "before",
insertAfter: "after",
replaceAll: "replaceWith"}
, function (name, original){
jQuery.fn[name] = function (selector){
var elems, i = 0, ret = [] , insert = jQuery(selector), l = _AN_Read_length("length", insert), parent = _AN_Read_length("length", this) === 1 && this[0].parentNode;
if ((parent == null || parent && parent.nodeType === 11 && _AN_Read_length("length", parent.childNodes) === 1) && l === 1) {
insert[original](this[0]);
return this;
}
else {
for (; i < l; i++ ){
elems = (i > 0? this.clone(true ): this).get();
jQuery(insert[i])[original](elems);
ret = ret.concat(elems);
}
return this.pushStack(ret, name, insert.selector);
}
}
;
}
);
function getAll(elem){
if (typeof elem.getElementsByTagName !== "undefined") {
return _AN_Call_getelementsbytagname("getElementsByTagName", elem, "*");
}
else if (typeof elem.querySelectorAll !== "undefined") {
return elem.querySelectorAll("*");
}
else {
return [] ;
}
}
function fixDefaultChecked(elem){
if (rcheckableType.test(elem.type)) {
elem.defaultChecked = elem.checked;
}
}
jQuery.extend({
clone: function (elem, dataAndEvents, deepDataAndEvents){
var srcElements, destElements, i, clone;
if (jQuery.support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test("<" + elem.nodeName + ">")) {
clone = elem.cloneNode(true );
}
else {
_AN_Write_innerhtml("innerHTML", fragmentDiv, false , elem.outerHTML);
fragmentDiv.removeChild(clone = fragmentDiv.firstChild);
}
if ((!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) && (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem)) {
cloneFixAttributes(elem, clone);
srcElements = getAll(elem);
destElements = getAll(clone);
for (i = 0; srcElements[i]; ++i){
if (destElements[i]) {
cloneFixAttributes(srcElements[i], destElements[i]);
}
}
}
if (dataAndEvents) {
cloneCopyEvent(elem, clone);
if (deepDataAndEvents) {
srcElements = getAll(elem);
destElements = getAll(clone);
for (i = 0; srcElements[i]; ++i){
cloneCopyEvent(srcElements[i], destElements[i]);
}
}
}
srcElements = destElements = null ;
return clone;
}
,
clean: function (elems, context, fragment, scripts){
var i, j, elem, tag, wrap, depth, div, hasBody, tbody, len, handleScript, jsTags, safe = context === document && safeFragment, ret = [] ;
if (!context || typeof context.createDocumentFragment === "undefined") {
context = document;
}
for (i = 0; (elem = elems[i]) != null ; i++ ){
if (typeof elem === "number") {
elem += "";
}
if (!elem) {
continue ;
}
if (typeof elem === "string") {
if (!rhtml.test(elem)) {
elem = context.createTextNode(elem);
}
else {
safe = safe || createSafeFragment(context);
div = _AN_Call_createelement("createElement", context, "div");
_AN_Call_appendchild("appendChild", safe, div);
elem = _AN_Call_replace("replace", elem, rxhtmlTag, "<$1>$2>");
tag = (rtagName.exec(elem) || ["", ""] )[1].toLowerCase();
wrap = wrapMap[tag] || wrapMap._default;
depth = wrap[0];
_AN_Write_innerhtml("innerHTML", div, false , wrap[1] + elem + wrap[2]);
while (depth-- ){
div = div.lastChild;
}
if (!jQuery.support.tbody) {
hasBody = rtbody.test(elem);
tbody = tag === "table" && !hasBody? div.firstChild && div.firstChild.childNodes: wrap[1] === "" && !hasBody? div.childNodes: [] ;
for (j = _AN_Read_length("length", tbody) - 1; j >= 0; --j){
if (jQuery.nodeName(tbody[j], "tbody") && !_AN_Read_length("length", tbody[j].childNodes)) {
tbody[j].parentNode.removeChild(tbody[j]);
}
}
}
if (!jQuery.support.leadingWhitespace && rleadingWhitespace.test(elem)) {
div.insertBefore(context.createTextNode(rleadingWhitespace.exec(elem)[0]), div.firstChild);
}
elem = div.childNodes;
div.parentNode.removeChild(div);
}
}
if (elem.nodeType) {
ret.push(elem);
}
else {
jQuery.merge(ret, elem);
}
}
if (div) {
elem = div = safe = null ;
}
if (!jQuery.support.appendChecked) {
for (i = 0; (elem = ret[i]) != null ; i++ ){
if (jQuery.nodeName(elem, "input")) {
fixDefaultChecked(elem);
}
else if (typeof elem.getElementsByTagName !== "undefined") {
jQuery.grep(_AN_Call_getelementsbytagname("getElementsByTagName", elem, "input"), fixDefaultChecked);
}
}
}
if (fragment) {
handleScript = function (elem){
if (!elem.type || rscriptType.test(elem.type)) {
return scripts? scripts.push(elem.parentNode? elem.parentNode.removeChild(elem): elem): _AN_Call_appendchild("appendChild", fragment, elem);
}
}
;
for (i = 0; (elem = ret[i]) != null ; i++ ){
if (!(jQuery.nodeName(elem, "script") && handleScript(elem))) {
_AN_Call_appendchild("appendChild", fragment, elem);
if (typeof elem.getElementsByTagName !== "undefined") {
jsTags = jQuery.grep(jQuery.merge([] , _AN_Call_getelementsbytagname("getElementsByTagName", elem, "script")), handleScript);
ret.splice.apply(ret, [i + 1, 0] .concat(jsTags));
i += _AN_Read_length("length", jsTags);
}
}
}
}
return ret;
}
,
cleanData: function (elems, acceptData){
var data, id, elem, type, i = 0, internalKey = jQuery.expando, cache = jQuery.cache, deleteExpando = jQuery.support.deleteExpando, special = jQuery.event.special;
for (; (elem = elems[i]) != null ; i++ ){
if (acceptData || jQuery.acceptData(elem)) {
id = elem[internalKey];
data = id && cache[id];
if (data) {
if (data.events) {
for (type in data.events){
if (special[type]) {
jQuery.event.remove(elem, type);
}
else {
jQuery.removeEvent(elem, type, data.handle);
}
}
}
if (cache[id]) {
delete cache[id];
if (deleteExpando) {
delete elem[internalKey];
}
else if (elem.removeAttribute) {
elem.removeAttribute(internalKey);
}
else {
elem[internalKey] = null ;
}
jQuery.deletedIds.push(id);
}
}
}
}
}
}
);
(function (){
var matched, browser;
jQuery.uaMatch = function (ua){
ua = ua.toLowerCase();
var match = /(chrome)[ \/]([\w.]+)/.exec(ua) || /(webkit)[ \/]([\w.]+)/.exec(ua) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) || /(msie) ([\w.]+)/.exec(ua) || ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) || [] ;
return {
browser: match[1] || "",
version: match[2] || "0"}
;
}
;
matched = jQuery.uaMatch(navigator.userAgent);
browser = {
}
;
if (matched.browser) {
browser[matched.browser] = true ;
browser.version = matched.version;
}
if (browser.chrome) {
browser.webkit = true ;
}
else if (browser.webkit) {
browser.safari = true ;
}
jQuery.browser = browser;
jQuery.sub = function (){
function jQuerySub(selector, context){
return new jQuerySub.fn.init(selector, context);
}
jQuery.extend(true , jQuerySub, this);
jQuerySub.superclass = this;
jQuerySub.fn = jQuerySub.prototype = this();
jQuerySub.fn.constructor = jQuerySub;
jQuerySub.sub = this.sub;
jQuerySub.fn.init = function init(selector, context){
if (context && context instanceof jQuery && !(context instanceof jQuerySub)) {
context = jQuerySub(context);
}
return jQuery.fn.init.call(this, selector, context, rootjQuerySub);
}
;
jQuerySub.fn.init.prototype = jQuerySub.fn;
var rootjQuerySub = jQuerySub(document);
return jQuerySub;
}
;
}
)();
var curCSS, iframe, iframeDoc, ralpha = /alpha\([^)]*\)/i, ropacity = /opacity=([^)]*)/, rposition = /^(top|right|bottom|left)$/, rdisplayswap = /^(none|table(?!-c[ea]).+)/, rmargin = /^margin/, rnumsplit = new RegExp("^(" + core_pnum + ")(.*)$", "i"), rnumnonpx = new RegExp("^(" + core_pnum + ")(?!px)[a-z%]+$", "i"), rrelNum = new RegExp("^([-+])=(" + core_pnum + ")", "i"), elemdisplay = {
}
, cssShow = {
position: "absolute",
visibility: "hidden",
display: "block"}
, cssNormalTransform = {
letterSpacing: 0,
fontWeight: 400}
, cssExpand = ["Top", "Right", "Bottom", "Left"] , cssPrefixes = ["Webkit", "O", "Moz", "ms"] , eventsToggle = jQuery.fn.toggle;
function vendorPropName(style, name){
if (name in style) {
return name;
}
var capName = name.charAt(0).toUpperCase() + name.slice(1), origName = name, i = _AN_Read_length("length", cssPrefixes);
while (i-- ){
name = cssPrefixes[i] + capName;
if (name in style) {
return name;
}
}
return origName;
}
function isHidden(elem, el){
elem = el || elem;
return jQuery.css(elem, "display") === "none" || !jQuery.contains(elem.ownerDocument, elem);
}
function showHide(elements, show){
var elem, display, values = [] , index = 0, length = _AN_Read_length("length", elements);
for (; index < length; index++ ){
elem = elements[index];
if (!elem.style) {
continue ;
}
values[index] = jQuery._data(elem, "olddisplay");
if (show) {
if (!values[index] && elem.style.display === "none") {
elem.style.display = "";
}
if (elem.style.display === "" && isHidden(elem)) {
values[index] = jQuery._data(elem, "olddisplay", css_defaultDisplay(elem.nodeName));
}
}
else {
display = curCSS(elem, "display");
if (!values[index] && display !== "none") {
jQuery._data(elem, "olddisplay", display);
}
}
}
for (index = 0; index < length; index++ ){
elem = elements[index];
if (!elem.style) {
continue ;
}
if (!show || elem.style.display === "none" || elem.style.display === "") {
elem.style.display = show? values[index] || "": "none";
}
}
return elements;
}
jQuery.fn.extend({
css: function (name, value){
return jQuery.access(this, function (elem, name, value){
return value !== undefined? jQuery.style(elem, name, value): jQuery.css(elem, name);
}
, name, value, _AN_Read_length("length", arguments) > 1);
}
,
show: function (){
return showHide(this, true );
}
,
hide: function (){
return showHide(this);
}
,
toggle: function (state, fn2){
var bool = typeof state === "boolean";
if (jQuery.isFunction(state) && jQuery.isFunction(fn2)) {
return eventsToggle.apply(this, arguments);
}
return this.each(function (){
if (bool? state: isHidden(this)) {
_AN_Call_show("show", jQuery(this));
}
else {
jQuery(this).hide();
}
}
);
}
}
);
jQuery.extend({
cssHooks: {
opacity: {
get: function (elem, computed){
if (computed) {
var ret = curCSS(elem, "opacity");
return ret === ""? "1": ret;
}
}
}
}
,
cssNumber: {
"fillOpacity": true ,
"fontWeight": true ,
"lineHeight": true ,
"opacity": true ,
"orphans": true ,
"widows": true ,
"zIndex": true ,
"zoom": true }
,
cssProps: {
"float": jQuery.support.cssFloat? "cssFloat": "styleFloat"}
,
style: function (elem, name, value, extra){
if (!elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style) {
return ;
}
var ret, type, hooks, origName = jQuery.camelCase(name), style = elem.style;
name = jQuery.cssProps[origName] || (jQuery.cssProps[origName] = vendorPropName(style, origName));
hooks = jQuery.cssHooks[name] || jQuery.cssHooks[origName];
if (value !== undefined) {
type = typeof value;
if (type === "string" && (ret = rrelNum.exec(value))) {
value = (ret[1] + 1) * ret[2] + parseFloat(jQuery.css(elem, name));
type = "number";
}
if (value == null || type === "number" && isNaN(value)) {
return ;
}
if (type === "number" && !jQuery.cssNumber[origName]) {
value += "px";
}
if (!hooks || !("set" in hooks) || (value = hooks.set(elem, value, extra)) !== undefined) {
try {
style[name] = value;
}
catch (e) {
}
}
}
else {
if (hooks && "get" in hooks && (ret = hooks.get(elem, false , extra)) !== undefined) {
return ret;
}
return style[name];
}
}
,
css: function (elem, name, numeric, extra){
var val, num, hooks, origName = jQuery.camelCase(name);
name = jQuery.cssProps[origName] || (jQuery.cssProps[origName] = vendorPropName(elem.style, origName));
hooks = jQuery.cssHooks[name] || jQuery.cssHooks[origName];
if (hooks && "get" in hooks) {
val = hooks.get(elem, true , extra);
}
if (val === undefined) {
val = curCSS(elem, name);
}
if (val === "normal" && name in cssNormalTransform) {
val = cssNormalTransform[name];
}
if (numeric || extra !== undefined) {
num = parseFloat(val);
return numeric || jQuery.isNumeric(num)? num || 0: val;
}
return val;
}
,
swap: function (elem, options, callback){
var ret, name, old = {
}
;
for (name in options){
old[name] = elem.style[name];
elem.style[name] = options[name];
}
ret = callback.call(elem);
for (name in options){
elem.style[name] = old[name];
}
return ret;
}
}
);
if (window.getComputedStyle) {
curCSS = function (elem, name){
var ret, width, minWidth, maxWidth, computed = window.getComputedStyle(elem, null ), style = elem.style;
if (computed) {
ret = computed[name];
if (ret === "" && !jQuery.contains(elem.ownerDocument, elem)) {
ret = jQuery.style(elem, name);
}
if (rnumnonpx.test(ret) && rmargin.test(name)) {
width = style.width;
minWidth = style.minWidth;
maxWidth = style.maxWidth;
style.minWidth = style.maxWidth = style.width = ret;
ret = computed.width;
style.width = width;
style.minWidth = minWidth;
style.maxWidth = maxWidth;
}
}
return ret;
}
;
}
else if (document.documentElement.currentStyle) {
curCSS = function (elem, name){
var left, rsLeft, ret = elem.currentStyle && elem.currentStyle[name], style = elem.style;
if (ret == null && style && style[name]) {
ret = style[name];
}
if (rnumnonpx.test(ret) && !rposition.test(name)) {
left = style.left;
rsLeft = elem.runtimeStyle && elem.runtimeStyle.left;
if (rsLeft) {
elem.runtimeStyle.left = elem.currentStyle.left;
}
style.left = name === "fontSize"? "1em": ret;
ret = style.pixelLeft + "px";
style.left = left;
if (rsLeft) {
elem.runtimeStyle.left = rsLeft;
}
}
return ret === ""? "auto": ret;
}
;
}
function setPositiveNumber(elem, value, subtract){
var matches = rnumsplit.exec(value);
return matches? Math.max(0, matches[1] - (subtract || 0)) + (matches[2] || "px"): value;
}
function augmentWidthOrHeight(elem, name, extra, isBorderBox){
var i = extra === (isBorderBox? "border": "content")? 4: name === "width"? 1: 0, val = 0;
for (; i < 4; i += 2){
if (extra === "margin") {
val += jQuery.css(elem, extra + cssExpand[i], true );
}
if (isBorderBox) {
if (extra === "content") {
val -= parseFloat(curCSS(elem, "padding" + cssExpand[i])) || 0;
}
if (extra !== "margin") {
val -= parseFloat(curCSS(elem, "border" + cssExpand[i] + "Width")) || 0;
}
}
else {
val += parseFloat(curCSS(elem, "padding" + cssExpand[i])) || 0;
if (extra !== "padding") {
val += parseFloat(curCSS(elem, "border" + cssExpand[i] + "Width")) || 0;
}
}
}
return val;
}
function getWidthOrHeight(elem, name, extra){
var val = name === "width"? elem.offsetWidth: elem.offsetHeight, valueIsBorderBox = true , isBorderBox = jQuery.support.boxSizing && jQuery.css(elem, "boxSizing") === "border-box";
if (val <= 0 || val == null ) {
val = curCSS(elem, name);
if (val < 0 || val == null ) {
val = elem.style[name];
}
if (rnumnonpx.test(val)) {
return val;
}
valueIsBorderBox = isBorderBox && (jQuery.support.boxSizingReliable || val === elem.style[name]);
val = parseFloat(val) || 0;
}
return (val + augmentWidthOrHeight(elem, name, extra || (isBorderBox? "border": "content"), valueIsBorderBox)) + "px";
}
function css_defaultDisplay(nodeName){
if (elemdisplay[nodeName]) {
return elemdisplay[nodeName];
}
var elem = jQuery("<" + nodeName + ">").appendTo(document.body), display = elem.css("display");
elem.remove();
if (display === "none" || display === "") {
iframe = _AN_Call_appendchild("appendChild", document.body, iframe || jQuery.extend(_AN_Call_createelement("createElement", document, "iframe"), {
frameBorder: 0,
width: 0,
height: 0}
));
if (!iframeDoc || !iframe.createElement) {
iframeDoc = (iframe.contentWindow || iframe.contentDocument).document;
_AN_Call_write("write", iframeDoc, "");
iframeDoc.close();
}
elem = _AN_Call_appendchild("appendChild", iframeDoc.body, _AN_Call_createelement("createElement", iframeDoc, nodeName));
display = curCSS(elem, "display");
document.body.removeChild(iframe);
}
elemdisplay[nodeName] = display;
return display;
}
jQuery.each(["height", "width"] , function (i, name){
jQuery.cssHooks[name] = {
get: function (elem, computed, extra){
if (computed) {
if (elem.offsetWidth === 0 && rdisplayswap.test(curCSS(elem, "display"))) {
return jQuery.swap(elem, cssShow, function (){
return getWidthOrHeight(elem, name, extra);
}
);
}
else {
return getWidthOrHeight(elem, name, extra);
}
}
}
,
set: function (elem, value, extra){
return setPositiveNumber(elem, value, extra? augmentWidthOrHeight(elem, name, extra, jQuery.support.boxSizing && jQuery.css(elem, "boxSizing") === "border-box"): 0);
}
}
;
}
);
if (!jQuery.support.opacity) {
jQuery.cssHooks.opacity = {
get: function (elem, computed){
return ropacity.test((computed && elem.currentStyle? elem.currentStyle.filter: elem.style.filter) || "")? (0.01 * parseFloat(RegExp.$1)) + "": computed? "1": "";
}
,
set: function (elem, value){
var style = elem.style, currentStyle = elem.currentStyle, opacity = jQuery.isNumeric(value)? "alpha(opacity=" + value * 100 + ")": "", filter = currentStyle && currentStyle.filter || style.filter || "";
style.zoom = 1;
if (value >= 1 && jQuery.trim(_AN_Call_replace("replace", filter, ralpha, "")) === "" && style.removeAttribute) {
style.removeAttribute("filter");
if (currentStyle && !currentStyle.filter) {
return ;
}
}
_AN_Write_filter("filter", style, false , ralpha.test(filter)? _AN_Call_replace("replace", filter, ralpha, opacity): filter + " " + opacity);
}
}
;
}
jQuery(function (){
if (!jQuery.support.reliableMarginRight) {
jQuery.cssHooks.marginRight = {
get: function (elem, computed){
return jQuery.swap(elem, {
"display": "inline-block"}
, function (){
if (computed) {
return curCSS(elem, "marginRight");
}
}
);
}
}
;
}
if (!jQuery.support.pixelPosition && jQuery.fn.position) {
jQuery.each(["top", "left"] , function (i, prop){
jQuery.cssHooks[prop] = {
get: function (elem, computed){
if (computed) {
var ret = curCSS(elem, prop);
return rnumnonpx.test(ret)? jQuery(elem).position()[prop] + "px": ret;
}
}
}
;
}
);
}
}
);
if (jQuery.expr && jQuery.expr.filters) {
jQuery.expr.filters.hidden = function (elem){
return (elem.offsetWidth === 0 && elem.offsetHeight === 0) || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || curCSS(elem, "display")) === "none");
}
;
jQuery.expr.filters.visible = function (elem){
return !jQuery.expr.filters.hidden(elem);
}
;
}
jQuery.each({
margin: "",
padding: "",
border: "Width"}
, function (prefix, suffix){
jQuery.cssHooks[prefix + suffix] = {
expand: function (value){
var i, parts = typeof value === "string"? value.split(" "): [value] , expanded = {
}
;
for (i = 0; i < 4; i++ ){
expanded[prefix + cssExpand[i] + suffix] = parts[i] || parts[i - 2] || parts[0];
}
return expanded;
}
}
;
if (!rmargin.test(prefix)) {
jQuery.cssHooks[prefix + suffix].set = setPositiveNumber;
}
}
);
var r20 = /%20/g, rbracket = /\[\]$/, rCRLF = /\r?\n/g, rinput = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i, rselectTextarea = /^(?:select|textarea)/i;
jQuery.fn.extend({
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 || rselectTextarea.test(this.nodeName) || rinput.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: _AN_Call_replace("replace", val, rCRLF, "\r\n")}
;
}
): {
name: elem.name,
value: _AN_Call_replace("replace", val, rCRLF, "\r\n")}
;
}
).get();
}
}
);
jQuery.param = function (a, traditional){
var prefix, s = [] , add = function (key, value){
value = jQuery.isFunction(value)? value(): (value == null ? "": value);
s[_AN_Read_length("length", s)] = encodeURIComponent(key) + "=" + encodeURIComponent(value);
}
;
if (traditional === undefined) {
traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;
}
if (jQuery.isArray(a) || (a.jquery && !jQuery.isPlainObject(a))) {
jQuery.each(a, function (){
add(this.name, this.value);
}
);
}
else {
for (prefix in a){
buildParams(prefix, a[prefix], traditional, add);
}
}
return _AN_Call_replace("replace", s.join("&"), r20, "+");
}
;
function buildParams(prefix, obj, traditional, add){
var name;
if (jQuery.isArray(obj)) {
jQuery.each(obj, function (i, v){
if (traditional || rbracket.test(prefix)) {
add(prefix, v);
}
else {
buildParams(prefix + "[" + (typeof v === "object"? i: "") + "]", v, traditional, add);
}
}
);
}
else if (!traditional && jQuery.type(obj) === "object") {
for (name in obj){
buildParams(prefix + "[" + name + "]", obj[name], traditional, add);
}
}
else {
add(prefix, obj);
}
}
var ajaxLocParts, ajaxLocation, rhash = /#.*$/, rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/, rnoContent = /^(?:GET|HEAD)$/, rprotocol = /^\/\//, rquery = /\?/, rscript = /