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