mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-20 07:50:27 +00:00
159 lines
73 KiB
JavaScript
159 lines
73 KiB
JavaScript
/*!
|
|
* jQuery JavaScript Library v1.4.3pre
|
|
* http://jquery.com/
|
|
*
|
|
* Copyright 2010, John Resig
|
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
|
* http://jquery.org/license
|
|
*
|
|
* Includes Sizzle.js
|
|
* http://sizzlejs.com/
|
|
* Copyright 2010, The Dojo Foundation
|
|
* Released under the MIT, BSD, and GPL Licenses.
|
|
*
|
|
* Date: Tue Sep 14 09:57:26 2010 -0400
|
|
*/
|
|
(function(A,y){function M(){return false}function R(){return true}function da(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function Ba(a){var b,d,f=[],i=[],j,o,m,q,u,t,x,z;o=c.data(this,"events");if(!(a.liveFired===this||!o||!o.live||a.button&&a.type==="click")){if(a.namespace)z=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");a.liveFired=this;var v=o.live.slice(0);for(q=0;q<v.length;q++){o=v[q];o.origType.replace(S,"")===a.type?i.push(o.selector):v.splice(q--,1)}j=
|
|
c(a.target).closest(i,a.currentTarget);u=0;for(t=j.length;u<t;u++){x=j[u];for(q=0;q<v.length;q++){o=v[q];if(x.selector===o.selector&&(!z||z.test(o.namespace))){m=x.elem;i=null;if(o.preType==="mouseenter"||o.preType==="mouseleave"){a.type=o.preType;i=c(a.relatedTarget).closest(o.selector)[0]}if(!i||i!==m)f.push({elem:m,handleObj:o,level:x.level})}}}u=0;for(t=f.length;u<t;u++){j=f[u];if(d&&j.level>d)break;a.currentTarget=j.elem;a.data=j.handleObj.data;a.handleObj=j.handleObj;ret=j.handleObj.origHandler.apply(j.elem,
|
|
arguments);if(ret===false||a.isPropagationStopped()){d=j.level;if(ret===false)b=false}}return b}}function N(a,b){return(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,"&")}function ea(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function fa(a,b,d){if(c.isFunction(b))return c.grep(a,function(i,j){return!!b.call(i,j,i)===d});else if(b.nodeType)return c.grep(a,function(i){return i===b===d});else if(typeof b==="string"){var f=c.grep(a,function(i){return i.nodeType===1});if(Ca.test(b))return c.filter(b,
|
|
f,!d);else b=c.filter(b,f)}return c.grep(a,function(i){return c.inArray(i,b)>=0===d})}function Da(a){return c.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function ga(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),i=c.data(this,f);if(f=f&&f.events){delete i.handle;i.events={};for(var j in f)for(var o in f[j])c.event.add(this,j,f[j][o],f[j][o].data)}}})}function Ea(a,b){b.src?c.ajax({url:b.src,
|
|
async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function ha(a,b,d){var f=b==="width"?a.offsetWidth:a.offsetHeight;if(d==="border")return f;c.each(b==="width"?Fa:Ga,function(){d||(f-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(d==="margin")f+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else f-=parseFloat(c.curCSS(a,"border"+this+"Width",true))||0});return f}function T(a,b,d,f){if(c.isArray(b))c.each(b,function(i,
|
|
j){d||/\[\]$/.test(a)?f(a,j):T(a+"["+(typeof j==="object"||c.isArray(j)?i:"")+"]",j,d,f)});else!d&&b!=null&&typeof b==="object"?c.each(b,function(i,j){T(a+"["+i+"]",j,d,f)}):f(a,b)}function J(a,b){var d={};c.each(ia.concat.apply([],ia.slice(0,b)),function(){d[this]=a});return d}function U(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var c=function(){function a(){if(!b.isReady){try{document.documentElement.doScroll("left")}catch(g){setTimeout(a,1);return}b.ready()}}
|
|
var b=function(g,l){return new b.fn.init(g,l)},d=A.jQuery,f=A.$,i,j=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w\-]+)$/,o=/\S/,m=/^\s+/,q=/\s+$/,u=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,t=navigator.userAgent,x=false,z=[],v,D=Object.prototype.toString,E=Object.prototype.hasOwnProperty,H=Array.prototype.push,h=Array.prototype.slice,k=String.prototype.trim,n=Array.prototype.indexOf;b.fn=b.prototype={init:function(g,l){var p,r;if(!g)return this;if(g.nodeType){this.context=this[0]=g;this.length=1;return this}if(g==="body"&&
|
|
!l){this.context=document;this[0]=document.body;this.selector="body";this.length=1;return this}if(typeof g==="string")if((p=j.exec(g))&&(p[1]||!l))if(p[1]){r=l?l.ownerDocument||l:document;if(g=u.exec(g))if(b.isPlainObject(l)){g=[document.createElement(g[1])];b.fn.attr.call(g,l,true)}else g=[r.createElement(g[1])];else{g=b.buildFragment([p[1]],[r]);g=(g.cacheable?g.fragment.cloneNode(true):g.fragment).childNodes}return b.merge(this,g)}else{if((l=document.getElementById(p[2]))&&l.parentNode){if(l.id!==
|
|
p[2])return i.find(g);this.length=1;this[0]=l}this.context=document;this.selector=g;return this}else if(!l&&/^\w+$/.test(g)){this.selector=g;this.context=document;g=document.getElementsByTagName(g);return b.merge(this,g)}else return!l||l.jquery?(l||i).find(g):b(l).find(g);else if(b.isFunction(g))return i.ready(g);if(g.selector!==y){this.selector=g.selector;this.context=g.context}return b.makeArray(g,this)},selector:"",jquery:"1.4.3pre",length:0,size:function(){return this.length},toArray:function(){return h.call(this,
|
|
0)},get:function(g){return g==null?this.toArray():g<0?this.slice(g)[0]:this[g]},pushStack:function(g,l,p){var r=b();b.isArray(g)?H.apply(r,g):b.merge(r,g);r.prevObject=this;r.context=this.context;if(l==="find")r.selector=this.selector+(this.selector?" ":"")+p;else if(l)r.selector=this.selector+"."+l+"("+p+")";return r},each:function(g,l){return b.each(this,g,l)},ready:function(g){b.bindReady();if(b.isReady)g.call(document,b);else z&&z.push(g);return this},eq:function(g){return g===-1?this.slice(g):
|
|
this.slice(g,+g+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(h.apply(this,arguments),"slice",h.call(arguments).join(","))},map:function(g){return this.pushStack(b.map(this,function(l,p){return g.call(l,p,l)}))},end:function(){return this.prevObject||b(null)},push:H,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var g=arguments[0]||{},l=1,p=arguments.length,r=false,s,w,C,B;if(typeof g==="boolean"){r=
|
|
g;g=arguments[1]||{};l=2}if(typeof g!=="object"&&!b.isFunction(g))g={};if(p===l){g=this;--l}for(;l<p;l++)if((s=arguments[l])!=null)for(w in s){C=g[w];B=s[w];if(g!==B)if(r&&B&&(b.isPlainObject(B)||b.isArray(B))){C=C&&(b.isPlainObject(C)||b.isArray(C))?C:b.isArray(B)?[]:{};g[w]=b.extend(r,C,B)}else if(B!==y)g[w]=B}return g};b.extend({noConflict:function(g){A.$=f;if(g)A.jQuery=d;return b},isReady:false,ready:function(){if(!b.isReady){if(!document.body)return setTimeout(b.ready,13);b.isReady=true;if(z){for(var g,
|
|
l=0;g=z[l++];)g.call(document,b);z=null}b.fn.triggerHandler&&b(document).triggerHandler("ready")}},bindReady:function(){if(!x){x=true;if(document.readyState==="complete")return b.ready();if(document.addEventListener){document.addEventListener("DOMContentLoaded",v,false);A.addEventListener("load",b.ready,false)}else if(document.attachEvent){document.attachEvent("onreadystatechange",v);A.attachEvent("onload",b.ready);var g=false;try{g=A.frameElement==null}catch(l){}document.documentElement.doScroll&&
|
|
g&&a()}}},isFunction:function(g){return b.type(g)==="function"},isArray:Array.isArray||function(g){return b.type(g)==="array"},type:function(g){return g==null?String(g):D.call(g).slice(8,-1).toLowerCase()},isPlainObject:function(g){if(!g||b.type(g)!=="object"||g.nodeType||g.setInterval)return false;if(g.constructor&&!E.call(g,"constructor")&&!E.call(g.constructor.prototype,"isPrototypeOf"))return false;var l;for(l in g);return l===y||E.call(g,l)},isEmptyObject:function(g){for(var l in g)return false;
|
|
return true},error:function(g){throw g;},parseJSON:function(g){if(typeof g!=="string"||!g)return null;g=b.trim(g);if(/^[\],:{}\s]*$/.test(g.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return A.JSON&&A.JSON.parse?A.JSON.parse(g):(new Function("return "+g))();else b.error("Invalid JSON: "+g)},noop:function(){},globalEval:function(g){if(g&&o.test(g)){var l=document.getElementsByTagName("head")[0]||
|
|
document.documentElement,p=document.createElement("script");p.type="text/javascript";if(b.support.scriptEval)p.appendChild(document.createTextNode(g));else p.text=g;l.insertBefore(p,l.firstChild);l.removeChild(p)}},nodeName:function(g,l){return g.nodeName&&g.nodeName.toUpperCase()===l.toUpperCase()},each:function(g,l,p){var r,s=0,w=g.length,C=w===y||b.isFunction(g);if(p)if(C)for(r in g){if(l.apply(g[r],p)===false)break}else for(;s<w;){if(l.apply(g[s++],p)===false)break}else if(C)for(r in g){if(l.call(g[r],
|
|
r,g[r])===false)break}else for(p=g[0];s<w&&l.call(p,s,p)!==false;p=g[++s]);return g},trim:k?function(g){return g==null?"":k.call(g)}:function(g){return g==null?"":g.toString().replace(m,"").replace(q,"")},makeArray:function(g,l){l=l||[];if(g!=null){var p=b.type(g);g.length==null||p==="string"||p==="function"||p==="regexp"||"setInterval"in g?H.call(l,g):b.merge(l,g)}return l},inArray:function(g,l){if(l.indexOf)return l.indexOf(g);for(var p=0,r=l.length;p<r;p++)if(l[p]===g)return p;return-1},merge:function(g,
|
|
l){var p=g.length,r=0;if(typeof l.length==="number")for(var s=l.length;r<s;r++)g[p++]=l[r];else for(;l[r]!==y;)g[p++]=l[r++];g.length=p;return g},grep:function(g,l,p){var r=[],s;p=!!p;for(var w=0,C=g.length;w<C;w++){s=!!l(g[w],w);p!==s&&r.push(g[w])}return r},map:function(g,l,p){for(var r=[],s,w=0,C=g.length;w<C;w++){s=l(g[w],w,p);if(s!=null)r[r.length]=s}return r.concat.apply([],r)},guid:1,proxy:function(g,l,p){if(arguments.length===2)if(typeof l==="string"){p=g;g=p[l];l=y}else if(l&&!b.isFunction(l)){p=
|
|
l;l=y}if(!l&&g)l=function(){return g.apply(p||this,arguments)};if(g)l.guid=g.guid=g.guid||l.guid||b.guid++;return l},access:function(g,l,p,r,s,w){var C=g.length;if(typeof l==="object"){for(var B in l)b.access(g,B,l[B],r,s,p);return g}if(p!==y){r=!w&&r&&b.isFunction(p);for(B=0;B<C;B++)s(g[B],l,r?p.call(g[B],B,s(g[B],l)):p,w);return g}return C?s(g[0],l):y},now:function(){return(new Date).getTime()},uaMatch:function(g){g=g.toLowerCase();g=/(webkit)[ \/]([\w.]+)/.exec(g)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(g)||
|
|
/(msie) ([\w.]+)/.exec(g)||!/compatible/.test(g)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(g)||[];return{browser:g[1]||"",version:g[2]||"0"}},browser:{}});t=b.uaMatch(t);if(t.browser){b.browser[t.browser]=true;b.browser.version=t.version}if(b.browser.webkit)b.browser.safari=true;if(n)b.inArray=function(g,l){return n.call(l,g)};if(!/\s/.test("\u00a0")){m=/^[\s\xA0]+/;q=/[\s\xA0]+$/}i=b(document);if(document.addEventListener)v=function(){document.removeEventListener("DOMContentLoaded",v,false);b.ready()};
|
|
else if(document.attachEvent)v=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",v);b.ready()}};return A.jQuery=A.$=b}();(function(){c.support={};var a=document.documentElement,b=document.createElement("script"),d=document.createElement("div"),f="script"+c.now();d.style.display="none";d.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var i=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];
|
|
if(!(!i||!i.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:document.createElement("select").appendChild(document.createElement("option")).selected,checkClone:false,
|
|
scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(document.createTextNode("window."+f+"=1;"))}catch(o){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function m(){c.support.noCloneEvent=false;d.detachEvent("onclick",m)});d.cloneNode(true).fireEvent("onclick")}d=document.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";
|
|
a=document.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var m=document.createElement("div");m.style.width=m.style.paddingLeft="1px";document.body.appendChild(m);c.boxModel=c.support.boxModel=m.offsetWidth===2;document.body.removeChild(m).style.display="none"});a=function(m){var q=document.createElement("div");m="on"+m;var u=m in q;if(!u){q.setAttribute(m,"return;");u=typeof q[m]==="function"}return u};c.support.submitBubbles=
|
|
a("submit");c.support.changeBubbles=a("change");a=b=d=i=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var ja={};c.extend({cache:{},uuid:0,expando:"jQuery"+c.now(),noData:{embed:true,object:true,applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?ja:a;var f=a[c.expando],i=c.cache,
|
|
j=a.nodeType,o;if(!(!f&&typeof b==="string"&&d===y)){if(j)f||(a[c.expando]=f=++c.uuid);else{i=a;f=c.expando}if(typeof b==="object")if(j)i[f]=c.extend(true,{},b);else{o=c.extend(true,{},b);i[f]=function(){return o}}else if(!i[f])if(j)i[f]={};else{o={};i[f]=function(){return o}}a=j?i[f]:i[f]();if(d!==y)a[b]=d;return typeof b==="string"?a[b]:a}}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?ja:a;var d=a.nodeType,f=a[c.expando],i=c.cache;if(f&&!d)f=f();var j=i[f];
|
|
if(b){if(j){delete j[b];c.isEmptyObject(j)&&c.removeData(a)}}else{if(c.support.deleteExpando||!d)delete a[c.expando];else a.removeAttribute&&a.removeAttribute(c.expando);d&&delete i[f]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===y){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===y&&this.length)f=c.data(this[0],a);
|
|
return f===y&&d[1]?this.data(d[0]):f}else return this.each(function(){var i=c(this),j=[d[0],b];i.triggerHandler("setData"+d[1]+"!",j);c.data(this,a,b);i.triggerHandler("changeData"+d[1]+"!",j)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();
|
|
if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===y)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,
|
|
b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var ka=/[\n\t]/g,V=/\s+/,Ha=/\r/g,Ia=/href|src|style/,Ja=/(button|input)/i,Ka=/(button|input|object|select|textarea)/i,La=/^(a|area)$/i,la=/radio|checkbox/;c.fn.extend({attr:function(a,b){return c.access(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(u){var t=c(this);t.addClass(a.call(this,
|
|
u,t.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(V),d=0,f=this.length;d<f;d++){var i=this[d];if(i.nodeType===1)if(i.className){for(var j=" "+i.className+" ",o=i.className,m=0,q=b.length;m<q;m++)if(j.indexOf(" "+b[m]+" ")<0)o+=" "+b[m];i.className=c.trim(o)}else i.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(q){var u=c(this);u.removeClass(a.call(this,q,u.attr("class")))});if(a&&typeof a==="string"||a===y)for(var b=(a||"").split(V),
|
|
d=0,f=this.length;d<f;d++){var i=this[d];if(i.nodeType===1&&i.className)if(a){for(var j=(" "+i.className+" ").replace(ka," "),o=0,m=b.length;o<m;o++)j=j.replace(" "+b[o]+" "," ");i.className=c.trim(j)}else i.className=""}return this},toggleClass:function(a,b){var d=typeof a,f=typeof b==="boolean";if(c.isFunction(a))return this.each(function(i){var j=c(this);j.toggleClass(a.call(this,i,j.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var i,j=0,o=c(this),m=b,q=a.split(V);i=q[j++];){m=
|
|
f?m:!o.hasClass(i);o[m?"addClass":"removeClass"](i)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(ka," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===y){var b=this[0];if(b){if(c.nodeName(b,"option")){var d=b.attributes.value;return!d||d.specified?
|
|
b.value:b.text}if(c.nodeName(b,"select")){var f=b.selectedIndex;d=[];var i=b.options;b=b.type==="select-one";if(f<0)return null;var j=b?f:0;for(f=b?f+1:i.length;j<f;j++){var o=i[j];if(o.selected){a=c(o).val();if(b)return a;d.push(a)}}return d}if(la.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Ha,"")}return y}var m=c.isFunction(a);return this.each(function(q){var u=c(this),t=a;if(this.nodeType===1){if(m)t=a.call(this,q,u.val());if(typeof t===
|
|
"number")t+="";if(c.isArray(t)&&la.test(this.type))this.checked=c.inArray(u.val(),t)>=0;else if(c.nodeName(this,"select")){var x=c.makeArray(t);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),x)>=0});if(!x.length)this.selectedIndex=-1}else this.value=t}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return y;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==
|
|
1||!c.isXMLDoc(a);var i=d!==y;b=f&&c.props[b]||b;if(a.nodeType===1){var j=Ia.test(b);if((b in a||a[b]!==y)&&f&&!j){if(i){b==="type"&&Ja.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:Ka.test(a.nodeName)||La.test(a.nodeName)&&a.href?0:y;return a[b]}if(!c.support.style&&f&&b==="style"){if(i)a.style.cssText=
|
|
""+d;return a.style.cssText}i&&a.setAttribute(b,""+d);if(!a.attributes[b]&&!a.hasAttribute(b))return y;a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?y:a}return c.style(a,b,d)}});var S=/\.(.*)$/,Ma=function(a){return a.replace(/[^\w\s\.\|`]/g,function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;if(d===false)d=M;var i,j;if(d.handler){i=d;d=i.handler}if(!d.guid)d.guid=c.guid++;
|
|
if(j=c.data(a)){var o=j.events=j.events||{},m=j.handle;if(!m)j.handle=m=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(m.elem,arguments):y};m.elem=a;b=b.split(" ");for(var q,u=0,t;q=b[u++];){j=i?c.extend({},i):{handler:d,data:f};if(q.indexOf(".")>-1){t=q.split(".");q=t.shift();j.namespace=t.slice(0).sort().join(".")}else{t=[];j.namespace=""}j.type=q;if(!j.guid)j.guid=d.guid;var x=o[q],z=c.event.special[q]||{};if(!x){x=o[q]=[];if(!z.setup||z.setup.call(a,f,t,m)===
|
|
false)if(a.addEventListener)a.addEventListener(q,m,false);else a.attachEvent&&a.attachEvent("on"+q,m)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}x.push(j);c.event.global[q]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(d===false)d=M;var i,j,o=0,m,q,u,t,x,z,v=c.data(a),D=v&&v.events;if(v&&D){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(i in D)c.event.remove(a,i+b)}else{for(b=b.split(" ");i=
|
|
b[o++];){t=i;m=i.indexOf(".")<0;q=[];if(!m){q=i.split(".");i=q.shift();u=new RegExp("(^|\\.)"+c.map(q.slice(0).sort(),Ma).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(x=D[i])if(d){t=c.event.special[i]||{};for(j=f||0;j<x.length;j++){z=x[j];if(d.guid===z.guid){if(m||u.test(z.namespace)){f==null&&x.splice(j--,1);t.remove&&t.remove.call(a,z)}if(f!=null)break}}if(x.length===0||f!=null&&x.length===1){if(!t.teardown||t.teardown.call(a,q)===false)c.removeEvent(a,i,v.handle);delete D[i]}}else for(j=0;j<x.length;j++){z=
|
|
x[j];if(m||u.test(z.namespace)){c.event.remove(a,t,z.handler,j);x.splice(j--,1)}}}if(c.isEmptyObject(D)){if(b=v.handle)b.elem=null;delete v.events;delete v.handle;c.isEmptyObject(v)&&c.removeData(a)}}}}},trigger:function(a,b,d,f){var i=a.type||a;if(!f){a=typeof a==="object"?a[c.expando]?a:c.extend(c.Event(i),a):c.Event(i);if(i.indexOf("!")>=0){a.type=i=i.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[i]&&c.each(c.cache,function(){this.events&&this.events[i]&&c.event.trigger(a,
|
|
b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return y;a.result=y;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+i]&&d["on"+i].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&&f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var o,m=i.replace(/\..*$/,""),q=c.nodeName(f,"a")&&m==="click",
|
|
u=c.event.special[m]||{};if((!u._default||u._default.call(d,a)===false)&&!q&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[m]){if(o=f["on"+m])f["on"+m]=null;c.event.triggered=true;f[m]()}}catch(t){}if(o)f["on"+m]=o;c.event.triggered=false}}},handle:function(a){var b,d,f;d=[];var i,j=c.makeArray(arguments);a=j[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){f=a.type.split(".");a.type=f.shift();d=f.slice(0).sort();f=new RegExp("(^|\\.)"+
|
|
d.join("\\.(?:.*\\.)?")+"(\\.|$)")}a.namespace=a.namespace||d.join(".");i=c.data(this,"events");d=(i||{})[a.type];if(i&&d){d=d.slice(0);i=0;for(var o=d.length;i<o;i++){var m=d[i];if(b||f.test(m.namespace)){a.handler=m.handler;a.data=m.data;a.handleObj=m;m=m.handler.apply(this,j);if(m!==y){a.result=m;if(m===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
|
|
fix:function(a){if(a[c.expando])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f]}if(!a.target)a.target=a.srcElement||document;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=document.documentElement;d=document.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=
|
|
a.clientY+(b&&b.scrollTop||d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==y)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,N(a.origType,a.selector),c.extend({},a,{handler:Ba,guid:a.handler.guid}))},remove:function(a){c.event.remove(this,
|
|
N(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};c.removeEvent=document.removeEventListener?function(a,b,d){a.removeEventListener&&a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent&&a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=
|
|
c.now();this[c.expando]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=R;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=R;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=R;this.stopPropagation()},isDefaultPrevented:M,isPropagationStopped:M,isImmediatePropagationStopped:M};
|
|
var ma=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},na=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?na:ma,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?na:ma)}}});if(!c.support.submitBubbles)c.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!==
|
|
"form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length)return da("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13)return da("submit",this,arguments)})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};if(!c.support.changeBubbles){var W=/textarea|input|select/i,
|
|
X,oa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},Y=function(a,b){var d=a.target,f,i;if(!(!W.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");i=oa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",i);if(!(f===y||i===f))if(f!=null||i){a.type="change";return c.event.trigger(a,
|
|
b,d)}}};c.event.special.change={filters:{focusout:Y,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return Y.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return Y.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,"_change_data",oa(a))}},setup:function(){if(this.type==="file")return false;
|
|
for(var a in X)c.event.add(this,a+".specialChange",X[a]);return W.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return W.test(this.nodeName)}};X=c.event.special.change.filters}document.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a,d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind",
|
|
"one"],function(a,b){c.fn[b]=function(d,f,i){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],i);return this}if(c.isFunction(f)||f===false){i=f;f=y}var o=b==="one"?c.proxy(i,function(q){c(this).unbind(q,o);return i.apply(this,arguments)}):i;if(d==="unload"&&b!=="one")this.one(d,f,i);else{j=0;for(var m=this.length;j<m;j++)c.event.add(this[j],d,o,f)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault)for(var d in a)this.unbind(d,a[d]);else{d=0;for(var f=
|
|
this.length;d<f;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,f){return this.live(b,d,f,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,b[d++]);
|
|
return this.click(c.proxy(a,function(f){var i=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,i+1);f.preventDefault();return b[i].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var pa={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,f,i,j){var o=0,m,q,u=j||this.selector,t=j?this:c(this.context);if(c.isFunction(f)){i=f;f=y}for(d=(d||"").split(" ");(j=
|
|
d[o++])!=null;){m=S.exec(j);q="";if(m){q=m[0];j=j.replace(S,"")}if(j==="hover")d.push("mouseenter"+q,"mouseleave"+q);else{m=j;if(j==="focus"||j==="blur"){d.push(pa[j]+q);j+=q}else j=(pa[j]||j)+q;if(b==="live"){q=0;for(var x=t.length;q<x;q++)c.event.add(t[q],"live."+N(j,u),{data:f,selector:u,handler:i,origType:j,origHandler:i,preType:m})}else t.unbind("live."+N(j,u),i)}}return this}});c.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".split(" "),
|
|
function(a,b){c.fn[b]=function(d,f){if(f==null){f=d;d=null}return arguments.length>0?this.bind(b,d,f):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});A.attachEvent&&!A.addEventListener&&A.attachEvent("onunload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(h,k,n,g,l,p){l=0;for(var r=g.length;l<r;l++){var s=g[l];if(s){s=s[h];for(var w=false;s;){if(s.sizcache===n){w=g[s.sizset];break}if(s.nodeType===1&&!p){s.sizcache=
|
|
n;s.sizset=l}if(s.nodeName.toLowerCase()===k){w=s;break}s=s[h]}g[l]=w}}}function b(h,k,n,g,l,p){l=0;for(var r=g.length;l<r;l++){var s=g[l];if(s){s=s[h];for(var w=false;s;){if(s.sizcache===n){w=g[s.sizset];break}if(s.nodeType===1){if(!p){s.sizcache=n;s.sizset=l}if(typeof k!=="string"){if(s===k){w=true;break}}else if(m.filter(k,[s]).length>0){w=s;break}}s=s[h]}g[l]=w}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
|
|
f=0,i=Object.prototype.toString,j=false,o=true;[0,0].sort(function(){o=false;return 0});var m=function(h,k,n,g){n=n||[];var l=k=k||document;if(k.nodeType!==1&&k.nodeType!==9)return[];if(!h||typeof h!=="string")return n;var p=[],r,s,w,C,B=true,K=m.isXML(k),I=h,F;do{d.exec("");if(r=d.exec(I)){I=r[3];p.push(r[1]);if(r[2]){C=r[3];break}}}while(r);if(p.length>1&&u.exec(h))if(p.length===2&&q.relative[p[0]])s=H(p[0]+p[1],k);else for(s=q.relative[p[0]]?[k]:m(p.shift(),k);p.length;){h=p.shift();if(q.relative[h])h+=
|
|
p.shift();s=H(h,s)}else{if(!g&&p.length>1&&k.nodeType===9&&!K&&q.match.ID.test(p[0])&&!q.match.ID.test(p[p.length-1])){r=m.find(p.shift(),k,K);k=r.expr?m.filter(r.expr,r.set)[0]:r.set[0]}if(k){r=g?{expr:p.pop(),set:z(g)}:m.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&k.parentNode?k.parentNode:k,K);s=r.expr?m.filter(r.expr,r.set):r.set;if(p.length>0)w=z(s);else B=false;for(;p.length;){r=F=p.pop();if(q.relative[F])r=p.pop();else F="";if(r==null)r=k;q.relative[F](w,r,K)}}else w=[]}w||(w=s);w||
|
|
m.error(F||h);if(i.call(w)==="[object Array]")if(B)if(k&&k.nodeType===1)for(h=0;w[h]!=null;h++){if(w[h]&&(w[h]===true||w[h].nodeType===1&&m.contains(k,w[h])))n.push(s[h])}else for(h=0;w[h]!=null;h++)w[h]&&w[h].nodeType===1&&n.push(s[h]);else n.push.apply(n,w);else z(w,n);if(C){m(C,l,n,g);m.uniqueSort(n)}return n};m.uniqueSort=function(h){if(D){j=o;h.sort(D);if(j)for(var k=1;k<h.length;k++)h[k]===h[k-1]&&h.splice(k--,1)}return h};m.matches=function(h,k){return m(h,null,null,k)};m.find=function(h,k,
|
|
n){var g;if(!h)return[];for(var l=0,p=q.order.length;l<p;l++){var r=q.order[l],s;if(s=q.leftMatch[r].exec(h)){var w=s[1];s.splice(1,1);if(w.substr(w.length-1)!=="\\"){s[1]=(s[1]||"").replace(/\\/g,"");g=q.find[r](s,k,n);if(g!=null){h=h.replace(q.match[r],"");break}}}}g||(g=k.getElementsByTagName("*"));return{set:g,expr:h}};m.filter=function(h,k,n,g){for(var l=h,p=[],r=k,s,w,C=k&&k[0]&&m.isXML(k[0]);h&&k.length;){for(var B in q.filter)if((s=q.leftMatch[B].exec(h))!=null&&s[2]){var K=q.filter[B],I,
|
|
F;F=s[1];w=false;s.splice(1,1);if(F.substr(F.length-1)!=="\\"){if(r===p)p=[];if(q.preFilter[B])if(s=q.preFilter[B](s,r,n,p,g,C)){if(s===true)continue}else w=I=true;if(s)for(var O=0;(F=r[O])!=null;O++)if(F){I=K(F,s,O,r);var qa=g^!!I;if(n&&I!=null)if(qa)w=true;else r[O]=false;else if(qa){p.push(F);w=true}}if(I!==y){n||(r=p);h=h.replace(q.match[B],"");if(!w)return[];break}}}if(h===l)if(w==null)m.error(h);else break;l=h}return r};m.error=function(h){throw"Syntax error, unrecognized expression: "+h;};
|
|
var q=m.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+\-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},
|
|
leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(h){return h.getAttribute("href")}},relative:{"+":function(h,k){var n=typeof k==="string",g=n&&!/\W/.test(k);n=n&&!g;if(g)k=k.toLowerCase();g=0;for(var l=h.length,p;g<l;g++)if(p=h[g]){for(;(p=p.previousSibling)&&p.nodeType!==1;);h[g]=n||p&&p.nodeName.toLowerCase()===k?p||false:p===k}n&&m.filter(k,h,true)},">":function(h,k){var n=typeof k==="string",g,l=0,p=h.length;if(n&&!/\W/.test(k))for(k=k.toLowerCase();l<p;l++){if(g=
|
|
h[l]){n=g.parentNode;h[l]=n.nodeName.toLowerCase()===k?n:false}}else{for(;l<p;l++)if(g=h[l])h[l]=n?g.parentNode:g.parentNode===k;n&&m.filter(k,h,true)}},"":function(h,k,n){var g=f++,l=b,p;if(typeof k==="string"&&!/\W/.test(k)){p=k=k.toLowerCase();l=a}l("parentNode",k,g,h,p,n)},"~":function(h,k,n){var g=f++,l=b,p;if(typeof k==="string"&&!/\W/.test(k)){p=k=k.toLowerCase();l=a}l("previousSibling",k,g,h,p,n)}},find:{ID:function(h,k,n){if(typeof k.getElementById!=="undefined"&&!n)return(h=k.getElementById(h[1]))&&
|
|
h.parentNode?[h]:[]},NAME:function(h,k){if(typeof k.getElementsByName!=="undefined"){var n=[];k=k.getElementsByName(h[1]);for(var g=0,l=k.length;g<l;g++)k[g].getAttribute("name")===h[1]&&n.push(k[g]);return n.length===0?null:n}},TAG:function(h,k){return k.getElementsByTagName(h[1])}},preFilter:{CLASS:function(h,k,n,g,l,p){h=" "+h[1].replace(/\\/g,"")+" ";if(p)return h;p=0;for(var r;(r=k[p])!=null;p++)if(r)if(l^(r.className&&(" "+r.className+" ").replace(/[\t\n]/g," ").indexOf(h)>=0))n||g.push(r);
|
|
else if(n)k[p]=false;return false},ID:function(h){return h[1].replace(/\\/g,"")},TAG:function(h){return h[1].toLowerCase()},CHILD:function(h){if(h[1]==="nth"){var k=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(h[2]==="even"&&"2n"||h[2]==="odd"&&"2n+1"||!/\D/.test(h[2])&&"0n+"+h[2]||h[2]);h[2]=k[1]+(k[2]||1)-0;h[3]=k[3]-0}h[0]=f++;return h},ATTR:function(h,k,n,g,l,p){k=h[1].replace(/\\/g,"");if(!p&&q.attrMap[k])h[1]=q.attrMap[k];if(h[2]==="~=")h[4]=" "+h[4]+" ";return h},PSEUDO:function(h,k,n,g,l){if(h[1]==="not")if((d.exec(h[3])||
|
|
"").length>1||/^\w/.test(h[3]))h[3]=m(h[3],null,null,k);else{h=m.filter(h[3],k,n,true^l);n||g.push.apply(g,h);return false}else if(q.match.POS.test(h[0])||q.match.CHILD.test(h[0]))return true;return h},POS:function(h){h.unshift(true);return h}},filters:{enabled:function(h){return h.disabled===false&&h.type!=="hidden"},disabled:function(h){return h.disabled===true},checked:function(h){return h.checked===true},selected:function(h){return h.selected===true},parent:function(h){return!!h.firstChild},empty:function(h){return!h.firstChild},
|
|
has:function(h,k,n){return!!m(n[3],h).length},header:function(h){return/h\d/i.test(h.nodeName)},text:function(h){return"text"===h.type},radio:function(h){return"radio"===h.type},checkbox:function(h){return"checkbox"===h.type},file:function(h){return"file"===h.type},password:function(h){return"password"===h.type},submit:function(h){return"submit"===h.type},image:function(h){return"image"===h.type},reset:function(h){return"reset"===h.type},button:function(h){return"button"===h.type||h.nodeName.toLowerCase()===
|
|
"button"},input:function(h){return/input|select|textarea|button/i.test(h.nodeName)}},setFilters:{first:function(h,k){return k===0},last:function(h,k,n,g){return k===g.length-1},even:function(h,k){return k%2===0},odd:function(h,k){return k%2===1},lt:function(h,k,n){return k<n[3]-0},gt:function(h,k,n){return k>n[3]-0},nth:function(h,k,n){return n[3]-0===k},eq:function(h,k,n){return n[3]-0===k}},filter:{PSEUDO:function(h,k,n,g){var l=k[1],p=q.filters[l];if(p)return p(h,n,k,g);else if(l==="contains")return(h.textContent||
|
|
h.innerText||m.getText([h])||"").indexOf(k[3])>=0;else if(l==="not"){k=k[3];n=0;for(g=k.length;n<g;n++)if(k[n]===h)return false;return true}else m.error("Syntax error, unrecognized expression: "+l)},CHILD:function(h,k){var n=k[1],g=h;switch(n){case "only":case "first":for(;g=g.previousSibling;)if(g.nodeType===1)return false;if(n==="first")return true;g=h;case "last":for(;g=g.nextSibling;)if(g.nodeType===1)return false;return true;case "nth":n=k[2];var l=k[3];if(n===1&&l===0)return true;k=k[0];var p=
|
|
h.parentNode;if(p&&(p.sizcache!==k||!h.nodeIndex)){var r=0;for(g=p.firstChild;g;g=g.nextSibling)if(g.nodeType===1)g.nodeIndex=++r;p.sizcache=k}h=h.nodeIndex-l;return n===0?h===0:h%n===0&&h/n>=0}},ID:function(h,k){return h.nodeType===1&&h.getAttribute("id")===k},TAG:function(h,k){return k==="*"&&h.nodeType===1||h.nodeName.toLowerCase()===k},CLASS:function(h,k){return(" "+(h.className||h.getAttribute("class"))+" ").indexOf(k)>-1},ATTR:function(h,k){var n=k[1];h=q.attrHandle[n]?q.attrHandle[n](h):h[n]!=
|
|
null?h[n]:h.getAttribute(n);n=h+"";var g=k[2];k=k[4];return h==null?g==="!=":g==="="?n===k:g==="*="?n.indexOf(k)>=0:g==="~="?(" "+n+" ").indexOf(k)>=0:!k?n&&h!==false:g==="!="?n!==k:g==="^="?n.indexOf(k)===0:g==="$="?n.substr(n.length-k.length)===k:g==="|="?n===k||n.substr(0,k.length+1)===k+"-":false},POS:function(h,k,n,g){var l=q.setFilters[k[2]];if(l)return l(h,n,k,g)}}},u=q.match.POS,t=function(h,k){return"\\"+(k-0+1)};for(var x in q.match){q.match[x]=new RegExp(q.match[x].source+/(?![^\[]*\])(?![^\(]*\))/.source);
|
|
q.leftMatch[x]=new RegExp(/(^(?:.|\r|\n)*?)/.source+q.match[x].source.replace(/\\(\d+)/g,t))}var z=function(h,k){h=Array.prototype.slice.call(h,0);if(k){k.push.apply(k,h);return k}return h};try{Array.prototype.slice.call(document.documentElement.childNodes,0)}catch(v){z=function(h,k){k=k||[];var n=0;if(i.call(h)==="[object Array]")Array.prototype.push.apply(k,h);else if(typeof h.length==="number")for(var g=h.length;n<g;n++)k.push(h[n]);else for(;h[n];n++)k.push(h[n]);return k}}var D,E;if(document.documentElement.compareDocumentPosition)D=
|
|
function(h,k){if(h===k){j=true;return 0}if(!h.compareDocumentPosition||!k.compareDocumentPosition)return h.compareDocumentPosition?-1:1;return h.compareDocumentPosition(k)&4?-1:1};else{D=function(h,k){var n=[],g=[],l=h.parentNode,p=k.parentNode,r=l;if(h===k){j=true;return 0}else if(l===p)return E(h,k);else if(l){if(!p)return 1}else return-1;for(;r;){n.unshift(r);r=r.parentNode}for(r=p;r;){g.unshift(r);r=r.parentNode}l=n.length;p=g.length;for(r=0;r<l&&r<p;r++)if(n[r]!==g[r])return E(n[r],g[r]);return r===
|
|
l?E(h,g[r],-1):E(n[r],k,1)};E=function(h,k,n){if(h===k)return n;for(h=h.nextSibling;h;){if(h===k)return-1;h=h.nextSibling}return 1}}m.getText=function(h){for(var k="",n,g=0;h[g];g++){n=h[g];if(n.nodeType===3||n.nodeType===4)k+=n.nodeValue;else if(n.nodeType!==8)k+=m.getText(n.childNodes)}return k};(function(){var h=document.createElement("div"),k="script"+(new Date).getTime();h.innerHTML="<a name='"+k+"'/>";var n=document.documentElement;n.insertBefore(h,n.firstChild);if(document.getElementById(k)){q.find.ID=
|
|
function(g,l,p){if(typeof l.getElementById!=="undefined"&&!p)return(l=l.getElementById(g[1]))?l.id===g[1]||typeof l.getAttributeNode!=="undefined"&&l.getAttributeNode("id").nodeValue===g[1]?[l]:y:[]};q.filter.ID=function(g,l){var p=typeof g.getAttributeNode!=="undefined"&&g.getAttributeNode("id");return g.nodeType===1&&p&&p.nodeValue===l}}n.removeChild(h);n=h=null})();(function(){var h=document.createElement("div");h.appendChild(document.createComment(""));if(h.getElementsByTagName("*").length>0)q.find.TAG=
|
|
function(k,n){n=n.getElementsByTagName(k[1]);if(k[1]==="*"){k=[];for(var g=0;n[g];g++)n[g].nodeType===1&&k.push(n[g]);n=k}return n};h.innerHTML="<a href='#'></a>";if(h.firstChild&&typeof h.firstChild.getAttribute!=="undefined"&&h.firstChild.getAttribute("href")!=="#")q.attrHandle.href=function(k){return k.getAttribute("href",2)};h=null})();document.querySelectorAll&&function(){var h=m,k=document.createElement("div");k.innerHTML="<p class='TEST'></p>";if(!(k.querySelectorAll&&k.querySelectorAll(".TEST").length===
|
|
0)){m=function(g,l,p,r){l=l||document;if(!r&&l.nodeType===9&&!m.isXML(l))try{return z(l.querySelectorAll(g),p)}catch(s){}return h(g,l,p,r)};for(var n in h)m[n]=h[n];k=null}}();(function(){var h=document.createElement("div");h.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!h.getElementsByClassName||h.getElementsByClassName("e").length===0)){h.lastChild.className="e";if(h.getElementsByClassName("e").length!==1){q.order.splice(1,0,"CLASS");q.find.CLASS=function(k,n,g){if(typeof n.getElementsByClassName!==
|
|
"undefined"&&!g)return n.getElementsByClassName(k[1])};h=null}}})();m.contains=document.compareDocumentPosition?function(h,k){return!!(h.compareDocumentPosition(k)&16)}:function(h,k){return h!==k&&(h.contains?h.contains(k):true)};m.isXML=function(h){return(h=(h?h.ownerDocument||h:0).documentElement)?h.nodeName!=="HTML":false};var H=function(h,k){var n=[],g="",l;for(k=k.nodeType?[k]:k;l=q.match.PSEUDO.exec(h);){g+=l[0];h=h.replace(q.match.PSEUDO,"")}h=q.relative[h]?h+"*":h;l=0;for(var p=k.length;l<
|
|
p;l++)m(h,k[l],n);return m.filter(g,n)};c.find=m;c.expr=m.selectors;c.expr[":"]=c.expr.filters;c.unique=m.uniqueSort;c.text=m.getText;c.isXMLDoc=m.isXML;c.contains=m.contains})();var Na=/Until$/,Oa=/^(?:parents|prevUntil|prevAll)/,Pa=/,/,Ca=/^.[^:#\[\.,]*$/,Qa=Array.prototype.slice;c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,i=this.length;f<i;f++){d=b.length;c.find(a,this[f],b);if(f>0)for(var j=d;j<b.length;j++)for(var o=0;o<d;o++)if(b[o]===b[j]){b.splice(j--,1);break}}return b},
|
|
has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(fa(this,a,false),"not",a)},filter:function(a){return this.pushStack(fa(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],i,j={},o,m=1;if(f&&a.length){i=0;for(var q=a.length;i<q;i++){o=a[i];j[o]||(j[o]=c.expr.match.POS.test(o)?c(o,b||this.context):o)}for(;f&&
|
|
f.ownerDocument&&f!==b;){for(o in j){i=j[o];if(i.jquery?i.index(f)>-1:c(f).is(i))d.push({selector:o,elem:f,level:m})}f=f.parentNode;m++}}return d}var u=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(t,x){for(;x&&x.ownerDocument&&x!==b;){if(u?u.index(x)>-1:c(x).is(a))return x;x=x.parentNode}return null})},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a===
|
|
"string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(ea(a[0])||ea(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,
|
|
"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var i=c.map(this,b,d);Na.test(a)||
|
|
(f=d);if(f&&typeof f==="string")i=c.filter(f,i);i=this.length>1?c.unique(i):i;if((this.length>1||Pa.test(f))&&Oa.test(a))i=i.reverse();return this.pushStack(i,a,Qa.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===y||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},
|
|
sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var ra=/ jQuery\d+="(?:\d+|null)"/g,P=/^\s+/,sa=/(<([\w:]+)[^>]*?)\/>/g,Ra=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,ta=/<([\w:]+)/,Sa=/<tbody/i,Ta=/<|&#?\w+;/,ua=/<script|<object|<embed|<option|<style/i,va=/checked\s*(?:[^=]|=\s*.checked.)/i,wa=function(a,b,d){return Ra.test(d)?a:b+"></"+d+">"},G={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],
|
|
thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};G.optgroup=G.option;G.tbody=G.tfoot=G.colgroup=G.caption=G.thead;G.th=G.td;if(!c.support.htmlSerialize)G._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))});
|
|
if(typeof a!=="object"&&a!==y)return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,
|
|
b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,
|
|
this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);
|
|
a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&
|
|
!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(ra,"").replace(/\=([^="'>\s]+\/)>/g,'="$1">').replace(P,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ga(this,b);ga(this.find("*"),b.find("*"))}return b},html:function(a){if(a===y)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ra,""):null;else if(typeof a==="string"&&!ua.test(a)&&(c.support.leadingWhitespace||
|
|
!P.test(a))&&!G[(ta.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(sa,wa);try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(f){this.empty().append(a)}}else c.isFunction(a)?this.each(function(i){var j=c(this),o=j.html();j.empty().append(function(){return a.call(this,i,o)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=
|
|
c(this),f=d.html();d.replaceWith(a.call(this,b,f))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){var f,i,j=a[0],o=[],m;if(!c.support.checkClone&&arguments.length===3&&typeof j==="string"&&va.test(j))return this.each(function(){c(this).domManip(a,
|
|
b,d,true)});if(c.isFunction(j))return this.each(function(t){var x=c(this);a[0]=j.call(this,t,b?x.html():y);x.domManip(a,b,d)});if(this[0]){f=j&&j.parentNode;f=c.support.parentNode&&f&&f.nodeType===11&&f.childNodes.length===this.length?{fragment:f}:c.buildFragment(a,this,o);m=f.fragment;if(i=m.childNodes.length===1?(m=m.firstChild):m.firstChild){b=b&&c.nodeName(i,"tr");for(var q=0,u=this.length;q<u;q++)d.call(b?Da(this[q],i):this[q],q>0||f.cacheable||this.length>1?m.cloneNode(true):m)}o.length&&c.each(o,
|
|
Ea)}return this}});c.buildFragment=function(a,b,d){var f,i,j;b=b&&b[0]?b[0].ownerDocument||b[0]:document;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===document&&!ua.test(a[0])&&(c.support.checkClone||!va.test(a[0]))){i=true;if(j=c.fragments[a[0]])if(j!==1)f=j}if(!f){f=b.createDocumentFragment();c.clean(a,b,f,d)}if(i)c.fragments[a[0]]=j?f:1;return{fragment:f,cacheable:i}};c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},
|
|
function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var i=this.length===1&&this[0].parentNode;if(i&&i.nodeType===11&&i.childNodes.length===1&&d.length===1){d[b](this[0]);return this}else{i=0;for(var j=d.length;i<j;i++){var o=(i>0?this.clone(true):this).get();c(d[i])[b](o);f=f.concat(o)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||document;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||document;for(var i=[],j=0,o;(o=a[j])!=null;j++){if(typeof o===
|
|
"number")o+="";if(o){if(typeof o==="string"&&!Ta.test(o))o=b.createTextNode(o);else if(typeof o==="string"){o=o.replace(sa,wa);var m=(ta.exec(o)||["",""])[1].toLowerCase(),q=G[m]||G._default,u=q[0],t=b.createElement("div");for(t.innerHTML=q[1]+o+q[2];u--;)t=t.lastChild;if(!c.support.tbody){u=Sa.test(o);m=m==="table"&&!u?t.firstChild&&t.firstChild.childNodes:q[1]==="<table>"&&!u?t.childNodes:[];for(q=m.length-1;q>=0;--q)c.nodeName(m[q],"tbody")&&!m[q].childNodes.length&&m[q].parentNode.removeChild(m[q])}!c.support.leadingWhitespace&&
|
|
P.test(o)&&t.insertBefore(b.createTextNode(P.exec(o)[0]),t.firstChild);o=t.childNodes}if(o.nodeType)i.push(o);else i=c.merge(i,o)}}if(d)for(j=0;i[j];j++)if(f&&c.nodeName(i[j],"script")&&(!i[j].type||i[j].type.toLowerCase()==="text/javascript"))f.push(i[j].parentNode?i[j].parentNode.removeChild(i[j]):i[j]);else{i[j].nodeType===1&&i.splice.apply(i,[j+1,0].concat(c.makeArray(i[j].getElementsByTagName("script"))));d.appendChild(i[j])}return i},cleanData:function(a){for(var b,d,f=c.cache,i=c.event.special,
|
|
j=c.support.deleteExpando,o=0,m;(m=a[o])!=null;o++)if(!(m.nodeName&&c.noData[m.nodeName.toLowerCase()]))if(d=m[c.expando]){if((b=f[d])&&b.events)for(var q in b.events)i[q]?c.event.remove(m,q):c.removeEvent(m,q,b.handle);if(j)delete m[c.expando];else m.removeAttribute&&m.removeAttribute(c.expando);delete f[d]}}});var Ua=/z-?index|font-?weight|opacity|zoom|line-?height/i,xa=/alpha\([^)]*\)/,ya=/opacity=([^)]*)/,Z=/float/i,$=/-([a-z])/ig,Va=/([A-Z])/g,Wa=/^-?\d+(?:px)?$/i,Xa=/^-?\d/,Ya={position:"absolute",
|
|
visibility:"hidden",display:"block"},Fa=["Left","Right"],Ga=["Top","Bottom"],Za=document.defaultView&&document.defaultView.getComputedStyle,za=c.support.cssFloat?"cssFloat":"styleFloat",aa=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return c.access(this,a,b,true,function(d,f,i){if(i===y)return c.curCSS(d,f);if(typeof i==="number"&&!Ua.test(f))i+="px";c.style(d,f,i)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return y;if((b==="width"||b==="height")&&parseFloat(d)<
|
|
0)d=y;var f=a.style||a,i=d!==y;if(!c.support.opacity&&b==="opacity"&&f.filter){if(i){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter=xa.test(a)?a.replace(xa,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(ya.exec(f.filter)[1])/100+"":""}if(Z.test(b))b=za;b=b.replace($,aa);if(i)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){if(a.offsetWidth!==0)val=ha(a,b,f);else c.swap(a,Ya,function(){val=ha(a,
|
|
b,f)});return Math.max(0,Math.round(val))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,i=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=ya.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(Z.test(b))b=za;if(!d&&i&&i[b])f=i[b];else if(Za){if(Z.test(b))b="float";b=b.replace(Va,"-$1").toLowerCase();i=a.ownerDocument.defaultView;if(!i)return null;if(a=i.getComputedStyle(a,null))f=a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=
|
|
b.replace($,aa);f=a.currentStyle[b]||a.currentStyle[d];if(!Wa.test(f)&&Xa.test(f)){b=i.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;i.left=d==="fontSize"?"1em":f||0;f=i.pixelLeft+"px";i.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var i in b){f[i]=a.style[i];a.style[i]=b[i]}d.call(a);for(i in b)a.style[i]=f[i]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";
|
|
return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var $a=c.now(),ab=/<script(.|\s)*?\/script>/gi,bb=/select|textarea/i,cb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,L=/\=\?(&|$)/,ba=/\?/,db=/(\?|&)_=.*?(&|$)/,eb=/^(\w+:)?\/\/([^\/?#]+)/,fb=/%20/g,Aa=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&Aa)return Aa.apply(this,arguments);
|
|
else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var i=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(o,m){if(m==="success"||m==="notmodified")j.html(i?c("<div />").append(o.responseText.replace(ab,"")).find(i):o.responseText);d&&j.each(d,[o.responseText,m,o])}});return this},serialize:function(){return c.param(this.serializeArray())},
|
|
serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bb.test(this.nodeName)||cb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,
|
|
d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",
|
|
processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},ajax:function(a){var b=c.extend(true,{},c.ajaxSettings,a),d,f,i,j=b.type.toUpperCase();b.context=a&&a.context||
|
|
b;if(b.data&&b.processData&&typeof b.data!=="string")b.data=c.param(b.data,b.traditional);if(b.dataType==="jsonp"){if(j==="GET")L.test(b.url)||(b.url+=(ba.test(b.url)?"&":"?")+(b.jsonp||"callback")+"=?");else if(!b.data||!L.test(b.data))b.data=(b.data?b.data+"&":"")+(b.jsonp||"callback")+"=?";b.dataType="json"}if(b.dataType==="json"&&(b.data&&L.test(b.data)||L.test(b.url))){d=b.jsonpCallback||"jsonp"+$a++;if(b.data)b.data=(b.data+"").replace(L,"="+d+"$1");b.url=b.url.replace(L,"="+d+"$1");b.dataType=
|
|
"script";var o=A[d];A[d]=function(n){i=n;c.ajax.handleSuccess(b,v,f,i);c.ajax.handleComplete(b,v,f,i);if(c.isFunction(o))o(n);else{A[d]=y;try{delete A[d]}catch(g){}}u&&u.removeChild(t)}}if(b.dataType==="script"&&b.cache===null)b.cache=false;if(b.cache===false&&j==="GET"){var m=c.now(),q=b.url.replace(db,"$1_="+m+"$2");b.url=q+(q===b.url?(ba.test(b.url)?"&":"?")+"_="+m:"")}if(b.data&&j==="GET")b.url+=(ba.test(b.url)?"&":"?")+b.data;b.global&&c.ajax.active++===0&&c.event.trigger("ajaxStart");m=(m=eb.exec(b.url))&&
|
|
(m[1]&&m[1]!==location.protocol||m[2]!==location.host);if(b.dataType==="script"&&j==="GET"&&m){var u=document.getElementsByTagName("head")[0]||document.documentElement,t=document.createElement("script");t.src=b.url;if(b.scriptCharset)t.charset=b.scriptCharset;if(!d){var x=false;t.onload=t.onreadystatechange=function(){if(!x&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){x=true;c.ajax.handleSuccess(b,v,f,i);c.ajax.handleComplete(b,v,f,i);t.onload=t.onreadystatechange=
|
|
null;u&&t.parentNode&&u.removeChild(t)}}}u.insertBefore(t,u.firstChild);return y}var z=false,v=b.xhr();if(v){b.username?v.open(j,b.url,b.async,b.username,b.password):v.open(j,b.url,b.async);try{if(b.data||a&&a.contentType)v.setRequestHeader("Content-Type",b.contentType);if(b.ifModified){c.lastModified[b.url]&&v.setRequestHeader("If-Modified-Since",c.lastModified[b.url]);c.ajax.etag[b.url]&&v.setRequestHeader("If-None-Match",c.ajax.etag[b.url])}m||v.setRequestHeader("X-Requested-With","XMLHttpRequest");
|
|
v.setRequestHeader("Accept",b.dataType&&b.accepts[b.dataType]?b.accepts[b.dataType]+", */*":b.accepts._default)}catch(D){}if(b.beforeSend&&b.beforeSend.call(b.context,v,b)===false){b.global&&c.ajax.active--===1&&c.event.trigger("ajaxStop");v.abort();return false}b.global&&c.ajax.triggerGlobal(b,"ajaxSend",[v,b]);var E=v.onreadystatechange=function(n){if(!v||v.readyState===0||n==="abort"){z||c.ajax.handleComplete(b,v,f,i);z=true;if(v)v.onreadystatechange=c.noop}else if(!z&&v&&(v.readyState===4||n===
|
|
"timeout")){z=true;v.onreadystatechange=c.noop;f=n==="timeout"?"timeout":!c.ajax.httpSuccess(v)?"error":b.ifModified&&c.ajax.httpNotModified(v,b.url)?"notmodified":"success";var g;if(f==="success")try{i=c.ajax.httpData(v,b.dataType,b)}catch(l){f="parsererror";g=l}if(f==="success"||f==="notmodified")d||c.ajax.handleSuccess(b,v,f,i);else c.ajax.handleError(b,v,f,g);d||c.ajax.handleComplete(b,v,f,i);n==="timeout"&&v.abort();if(b.async)v=null}};try{var H=v.abort;v.abort=function(){v&&H.call(v);E("abort")}}catch(h){}b.async&&
|
|
b.timeout>0&&setTimeout(function(){v&&!z&&E("timeout")},b.timeout);try{v.send(j!=="GET"&&b.data||null)}catch(k){c.ajax.handleError(b,v,null,e);c.ajax.handleComplete(b,v,f,i)}b.async||E();return v}},param:function(a,b){var d=[],f=function(j,o){o=c.isFunction(o)?o():o;d[d.length]=encodeURIComponent(j)+"="+encodeURIComponent(o)};if(b===y)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var i in a)T(i,a[i],b,f);return d.join("&").replace(fb,
|
|
"+")}});c.extend(c.ajax,{active:0,lastModified:{},etag:{},handleError:function(a,b,d,f){a.error&&a.error.call(a.context,b,d,f);a.global&&c.ajax.triggerGlobal(a,"ajaxError",[b,a,f])},handleSuccess:function(a,b,d,f){a.success&&a.success.call(a.context,f,d,b);a.global&&c.ajax.triggerGlobal(a,"ajaxSuccess",[b,a])},handleComplete:function(a,b,d){a.complete&&a.complete.call(a.context,b,d);a.global&&c.ajax.triggerGlobal(a,"ajaxComplete",[b,a]);a.global&&c.ajax.active--===1&&c.event.trigger("ajaxStop")},
|
|
triggerGlobal:function(a,b,d){(a.context&&a.context.url==null?c(a.context):c.event).trigger(b,d)},httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.ajax.lastModified[b]=d;if(f)c.ajax.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||
|
|
"",i=b==="xml"||!b&&f.indexOf("xml")>=0;a=i?a.responseXML:a.responseText;i&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a}});c.support.ajax=!!c.ajaxSettings.xhr();c.extend(c.ajax);var ca={},gb=/toggle|show|hide/,hb=/^([+\-]=)?([\d+.\-]+)(.*)$/,Q,ia=[["height","marginTop","marginBottom",
|
|
"paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(J("show",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");this[a].style.display=d||"";if(c.css(this[a],"display")==="none"){d=this[a].nodeName;var f;if(ca[d])f=ca[d];else{var i=c("<"+d+" />").appendTo("body");f=i.css("display");if(f==="none")f="block";i.remove();ca[d]=f}c.data(this[a],"olddisplay",
|
|
f)}}a=0;for(b=this.length;a<b;a++)this[a].style.display=c.data(this[a],"olddisplay")||"";return this}},hide:function(a,b){if(a||a===0)return this.animate(J("hide",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");!d&&d!=="none"&&c.data(this[a],"olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,
|
|
arguments);else a==null||d?this.each(function(){var f=d?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(J("toggle",3),a,b);return this},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d)},animate:function(a,b,d,f){var i=c.speed(b,d,f);if(c.isEmptyObject(a))return this.each(i.complete);return this[i.queue===false?"each":"queue"](function(){var j=c.extend({},i),o,m=this.nodeType===1&&c(this).is(":hidden"),q=this;for(o in a){var u=
|
|
o.replace($,aa);if(o!==u){a[u]=a[o];delete a[o];o=u}if(a[o]==="hide"&&m||a[o]==="show"&&!m)return j.complete.call(this);if((o==="height"||o==="width")&&this.style){j.display=c.css(this,"display");j.overflow=this.style.overflow}if(c.isArray(a[o])){(j.specialEasing=j.specialEasing||{})[o]=a[o][1];a[o]=a[o][0]}}if(j.overflow!=null)this.style.overflow="hidden";j.curAnim=c.extend({},a);c.each(a,function(t,x){var z=new c.fx(q,j,t);if(gb.test(x))z[x==="toggle"?m?"show":"hide":x](a);else{var v=hb.exec(x),
|
|
D=z.cur(true)||0;if(v){x=parseFloat(v[2]);var E=v[3]||"px";if(E!=="px"){q.style[t]=(x||1)+E;D=(x||1)/z.cur(true)*D;q.style[t]=D+E}if(v[1])x=(v[1]==="-="?-1:1)*x+D;z.custom(D,x,E)}else z.custom(D,x,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);this.each(function(){for(var f=d.length-1;f>=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:J("show",1),slideUp:J("hide",1),slideToggle:J("toggle",1),fadeIn:{opacity:"show"},
|
|
fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration==="number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,
|
|
d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==
|
|
null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return i.step(j)}this.startTime=c.now();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var i=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!Q)Q=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop===
|
|
"width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=c.now(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=
|
|
this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var i in this.options.curAnim)c.style(this.elem,i,this.options.orig[i]);this.options.complete.call(this.elem)}return false}else{i=b-this.startTime;this.state=i/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=
|
|
c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,i,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},stop:function(){clearInterval(Q);Q=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=
|
|
null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};c.fn.offset="getBoundingClientRect"in document.documentElement?function(a){var b=this[0];if(a)return this.each(function(j){c.offset.setOffset(this,a,j)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);var d=
|
|
b.getBoundingClientRect(),f=b.ownerDocument;b=f.body;var i=f.documentElement;f=U(f);return{top:d.top+(f.pageYOffset||c.support.boxModel&&i.scrollTop||b.scrollTop)-(i.clientTop||b.clientTop||0),left:d.left+(f.pageXOffset||c.support.boxModel&&i.scrollLeft||b.scrollLeft)-(i.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(t){c.offset.setOffset(this,a,t)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();
|
|
var d=b.offsetParent,f=b,i=b.ownerDocument,j,o=i.documentElement,m=i.body;f=(i=i.defaultView)?i.getComputedStyle(b,null):b.currentStyle;for(var q=b.offsetTop,u=b.offsetLeft;(b=b.parentNode)&&b!==m&&b!==o;){if(c.offset.supportsFixedPosition&&f.position==="fixed")break;j=i?i.getComputedStyle(b,null):b.currentStyle;q-=b.scrollTop;u-=b.scrollLeft;if(b===d){q+=b.offsetTop;u+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){q+=parseFloat(j.borderTopWidth)||
|
|
0;u+=parseFloat(j.borderLeftWidth)||0}f=d;d=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&j.overflow!=="visible"){q+=parseFloat(j.borderTopWidth)||0;u+=parseFloat(j.borderLeftWidth)||0}f=j}if(f.position==="relative"||f.position==="static"){q+=m.offsetTop;u+=m.offsetLeft}if(c.offset.supportsFixedPosition&&f.position==="fixed"){q+=Math.max(o.scrollTop,m.scrollTop);u+=Math.max(o.scrollLeft,m.scrollLeft)}return{top:q,left:u}};c.offset={initialize:function(){var a=document.body,b=document.createElement("div"),
|
|
d,f,i,j=parseFloat(c.curCSS(a,"marginTop",true))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(b,a.firstChild);
|
|
d=b.firstChild;f=d.firstChild;i=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=i.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b);c.offset.initialize=c.noop},
|
|
bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){var f=c.curCSS(a,"position");if(f==="static")a.style.position="relative";var i=c(a),j=i.offset(),o=c.curCSS(a,"top",true),m=c.curCSS(a,"left",true),q=f==="absolute"&&c.inArray("auto",[o,m])>-1;f={};var u={};if(q)u=i.position();o=q?u.top:
|
|
parseInt(o,10)||0;m=q?u.left:parseInt(m,10)||0;if(c.isFunction(b))b=b.call(a,d,j);if(b.top!=null)f.top=b.top-j.top+o;if(b.left!=null)f.left=b.left-j.left+m;"using"in b?b.using.call(a,f):i.css(f)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],
|
|
"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top-f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||document.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var i=this[0],j;if(!i)return null;if(f!==y)return this.each(function(){if(j=U(this))j.scrollTo(!a?f:c(j).scrollLeft(),
|
|
a?f:c(j).scrollTop());else this[d]=f});else return(j=U(i))?"pageXOffset"in j?j[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:i[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var i=this[0];if(!i)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var o=
|
|
c(this);o[d](f.call(this,j,o[d]()))});return"scrollTo"in i&&i.document?i.document.compatMode==="CSS1Compat"&&i.document.documentElement["client"+b]||i.document.body["client"+b]:i.nodeType===9?Math.max(i.documentElement["client"+b],i.body["scroll"+b],i.documentElement["scroll"+b],i.body["offset"+b],i.documentElement["offset"+b]):f===y?c.css(i,d):this.css(d,typeof f==="string"?f:f+"px")}})})(window);
|