Skip to content

Instantly share code, notes, and snippets.

@eFrane
Created October 12, 2011 17:50
Show Gist options
  • Save eFrane/1281968 to your computer and use it in GitHub Desktop.
Save eFrane/1281968 to your computer and use it in GitHub Desktop.
(function(n,j){function G(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function w(a){if(!ea[a]){var b=l.body,d=c("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){u||(u=l.createElement("iframe"),u.frameBorder=u.width=u.height=0);b.appendChild(u);if(!H||!u.createElement)H=(u.contentWindow||u.contentDocument).document,H.write((l.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),H.close();d=H.createElement(a);H.body.appendChild(d);
e=c.css(d,"display");b.removeChild(u)}ea[a]=e}return ea[a]}function t(a,b){var d={};c.each(sa.concat.apply([],sa.slice(0,b)),function(){d[this]=a});return d}function db(){V=j}function ta(){setTimeout(db,0);return V=c.now()}function ua(){try{return new n.XMLHttpRequest}catch(a){}}function fa(a,b,d,e){if(c.isArray(b))c.each(b,function(b,f){d||eb.test(a)?e(a,f):fa(a+"["+(typeof f=="object"||c.isArray(f)?b:"")+"]",f,d,e)});else if(!d&&b!=null&&typeof b=="object")for(var f in b)fa(a+"["+f+"]",b[f],d,e);
else e(a,b)}function va(a,b){var d,e,f=c.ajaxSettings.flatOptions||{};for(d in b)b[d]!==j&&((f[d]?a:e||(e={}))[d]=b[d]);e&&c.extend(!0,a,e)}function W(a,b,c,e,f,g){f=f||b.dataTypes[0];g=g||{};g[f]=!0;for(var f=a[f],h=0,i=f?f.length:0,k=a===ga,m;h<i&&(k||!m);h++)m=f[h](b,c,e),typeof m=="string"&&(!k||g[m]?m=j:(b.dataTypes.unshift(m),m=W(a,b,c,e,m,g)));(k||!m)&&!g["*"]&&(m=W(a,b,c,e,"*",g));return m}function wa(a){return function(b,d){var k;typeof b!="string"&&(d=b,b="*");if(c.isFunction(d))for(var e=
b.toLowerCase().split(xa),f=0,g=e.length,h,i;f<g;f++)h=e[f],(i=/^\+/.test(h))&&(h=h.substr(1)||"*"),k=a[h]=a[h]||[],h=k,h[i?"unshift":"push"](d)}}function ya(a,b,d){var e=b==="width"?a.offsetWidth:a.offsetHeight,f=b==="width"?fb:gb;if(e>0)return d!=="border"&&c.each(f,function(){d||(e-=parseFloat(c.css(a,"padding"+this))||0);d==="margin"?e+=parseFloat(c.css(a,d+this))||0:e-=parseFloat(c.css(a,"border"+this+"Width"))||0}),e+"px";e=D(a,b,b);if(e<0||e==null)e=a.style[b]||0;e=parseFloat(e)||0;d&&c.each(f,
function(){e+=parseFloat(c.css(a,"padding"+this))||0;d!=="padding"&&(e+=parseFloat(c.css(a,"border"+this+"Width"))||0);d==="margin"&&(e+=parseFloat(c.css(a,d+this))||0)});return e+"px"}function hb(a,b){b.src?c.ajax({url:b.src,async:!1,dataType:"script"}):c.globalEval((b.text||b.textContent||b.innerHTML||"").replace(ib,"/*$0*/"));b.parentNode&&b.parentNode.removeChild(b)}function za(a){c.nodeName(a,"input")?Aa(a):"getElementsByTagName"in a&&c.grep(a.getElementsByTagName("input"),Aa)}function Aa(a){if(a.type===
"checkbox"||a.type==="radio")a.defaultChecked=a.checked}function X(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function Ba(a,b){var d;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes();b.mergeAttributes&&b.mergeAttributes(a);d=b.nodeName.toLowerCase();if(d==="object")b.outerHTML=a.outerHTML;else if(d!=="input"||a.type!=="checkbox"&&a.type!=="radio")if(d==="option")b.selected=a.defaultSelected;else{if(d==="input"||d==="textarea")b.defaultValue=
a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(c.expando)}}function Ca(a,b){if(b.nodeType===1&&c.hasData(a)){var d=c.expando,e=c.data(a),f=c.data(b,e);if(e=e[d]){var g=e.events,f=f[d]=c.extend({},e);if(g){delete f.handle;f.events={};for(var h in g){d=0;for(e=g[h].length;d<e;d++)c.event.add(b,h+(g[h][d].namespace?".":"")+g[h][d].namespace,g[h][d],g[h][d].data)}}}}}function Da(a,b,d){b=b||0;if(c.isFunction(b))return c.grep(a,
function(a,c){return!!b.call(a,c,a)===d});if(b.nodeType)return c.grep(a,function(a){return a===b===d});if(typeof b=="string"){var e=c.grep(a,function(a){return a.nodeType===1});if(jb.test(b))return c.filter(b,e,!d);b=c.filter(b,e)}return c.grep(a,function(a){return c.inArray(a,b)>=0===d})}function Y(a,b){return(a&&a!=="*"?a+".":"")+b.replace(kb,"`").replace(lb,"&")}function mb(a){var b,d,e,f,g,h,i,k,m,o,j,l=[];f=[];g=c._data(this,"events");if(!(a.liveFired===this||!g||!g.live||a.target.disabled||
a.button&&a.type==="click")){a.namespace&&(j=RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)"));a.liveFired=this;var n=g.live.slice(0);for(i=0;i<n.length;i++)g=n[i],g.origType.replace(ha,"")===a.type?f.push(g.selector):n.splice(i--,1);f=c(a.target).closest(f,a.currentTarget);k=0;for(m=f.length;k<m;k++){o=f[k];for(i=0;i<n.length;i++)if(g=n[i],o.selector===g.selector&&(!j||j.test(g.namespace))&&!o.elem.disabled){h=o.elem;e=null;if(g.preType==="mouseenter"||g.preType==="mouseleave")a.type=
g.preType,(e=c(a.relatedTarget).closest(g.selector)[0])&&c.contains(h,e)&&(e=h);(!e||e!==h)&&l.push({elem:h,handleObj:g,level:o.level})}}k=0;for(m=l.length;k<m;k++){f=l[k];if(d&&f.level>d)break;a.currentTarget=f.elem;a.data=f.handleObj.data;a.handleObj=f.handleObj;j=f.handleObj.origHandler.apply(f.elem,arguments);if(j===!1||a.isPropagationStopped())if(d=f.level,j===!1&&(b=!1),a.isImmediatePropagationStopped())break}return b}}function Ea(a,b,d){var e=c.extend({},d[0]);e.type=a;e.originalEvent={};e.liveFired=
j;c.event.handle.call(b,e);e.isDefaultPrevented()&&d[0].preventDefault()}function $(){return!0}function J(){return!1}function Fa(a,b,d){var e=b+"defer",f=b+"queue",g=b+"mark",h=c.data(a,e,j,!0);h&&(d==="queue"||!c.data(a,f,j,!0))&&(d==="mark"||!c.data(a,g,j,!0))&&setTimeout(function(){!c.data(a,f,j,!0)&&!c.data(a,g,j,!0)&&(c.removeData(a,e,!0),h.resolve())},0)}function ia(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function Ga(a,b,d){if(d===j&&a.nodeType===1)if(d="data-"+b.replace(nb,"-$1").toLowerCase(),
d=a.getAttribute(d),typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:c.isNaN(d)?ob.test(d)?c.parseJSON(d):d:parseFloat(d)}catch(e){}c.data(a,b,d)}else d=j;return d}var l=n.document,pb=n.navigator,qb=n.location,c=function(){function a(){if(!b.isReady){try{l.documentElement.doScroll("left")}catch(c){setTimeout(a,1);return}b.ready()}}var b=function(a,c){return new b.fn.init(a,c,f)},c=n.jQuery,e=n.$,f,g=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,h=/\S/,i=/^\s+/,k=/\s+$/,m=/\d/,o=
/^<(\w+)\s*\/?>(?:<\/\1>)?$/,Z=/^[\],:{}\s]*$/,I=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(?:\s*\[)+/g,t=/(webkit)[ \/]([\w.]+)/,x=/(opera)(?:.*version)?[ \/]([\w.]+)/,y=/(msie) ([\w.]+)/,w=/(mozilla)(?:.*? rv:([\w.]+))?/,s=/-([a-z]|[0-9])/ig,q=/^-ms-/,rb=function(a,b){return(b+"").toUpperCase()},B=pb.userAgent,aa,S,sb=Object.prototype.toString,ja=Object.prototype.hasOwnProperty,ka=Array.prototype.push,U=Array.prototype.slice,
M=String.prototype.trim,Ha=Array.prototype.indexOf,P={};b.fn=b.prototype={constructor:b,init:function(a,c,d){var e,f;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(a==="body"&&!c&&l.body)return this.context=l,this[0]=l.body,this.selector=a,this.length=1,this;if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?e=g.exec(a):e=[null,a,null];if(e&&(e[1]||!c)){if(e[1])return f=(c=c instanceof b?c[0]:c)?c.ownerDocument||c:l,(d=o.exec(a))?
b.isPlainObject(c)?(a=[l.createElement(d[1])],b.fn.attr.call(a,c,!0)):a=[f.createElement(d[1])]:(d=b.buildFragment([e[1]],[f]),a=(d.cacheable?b.clone(d.fragment):d.fragment).childNodes),b.merge(this,a);if((c=l.getElementById(e[2]))&&c.parentNode){if(c.id!==e[2])return d.find(a);this.length=1;this[0]=c}this.context=l;this.selector=a;return this}return!c||c.jquery?(c||d).find(a):this.constructor(c).find(a)}if(b.isFunction(a))return d.ready(a);a.selector!==j&&(this.selector=a.selector,this.context=a.context);
return b.makeArray(a,this)},selector:"",jquery:"1.6.4",length:0,size:function(){return this.length},toArray:function(){return U.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,c,d){var e=this.constructor();b.isArray(a)?ka.apply(e,a):b.merge(e,a);e.prevObject=this;e.context=this.context;c==="find"?e.selector=this.selector+(this.selector?" ":"")+d:c&&(e.selector=this.selector+"."+c+"("+d+")");return e},each:function(a,c){return b.each(this,
a,c)},ready:function(a){b.bindReady();aa.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(U.apply(this,arguments),"slice",U.call(arguments).join(","))},map:function(a){return this.pushStack(b.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:ka,sort:[].sort,splice:[].splice};b.fn.init.prototype=
b.fn;b.extend=b.fn.extend=function(){var a,c,d,e,f,g,s=arguments[0]||{},h=1,q=arguments.length,i=!1;typeof s=="boolean"&&(i=s,s=arguments[1]||{},h=2);typeof s!="object"&&!b.isFunction(s)&&(s={});for(q===h&&(s=this,--h);h<q;h++)if((a=arguments[h])!=null)for(c in a)d=s[c],e=a[c],s!==e&&(i&&e&&(b.isPlainObject(e)||(f=b.isArray(e)))?(f?(f=!1,g=d&&b.isArray(d)?d:[]):g=d&&b.isPlainObject(d)?d:{},s[c]=b.extend(i,g,e)):e!==j&&(s[c]=e));return s};b.extend({noConflict:function(a){n.$===b&&(n.$=e);a&&n.jQuery===
b&&(n.jQuery=c);return b},isReady:!1,readyWait:1,holdReady:function(a){a?b.readyWait++:b.ready(!0)},ready:function(a){if(a===!0&&!--b.readyWait||a!==!0&&!b.isReady){if(!l.body)return setTimeout(b.ready,1);b.isReady=!0;a!==!0&&--b.readyWait>0||(aa.resolveWith(l,[b]),b.fn.trigger&&b(l).trigger("ready").unbind("ready"))}},bindReady:function(){if(!aa){aa=b._Deferred();if(l.readyState==="complete")return setTimeout(b.ready,1);if(l.addEventListener)l.addEventListener("DOMContentLoaded",S,!1),n.addEventListener("load",
b.ready,!1);else if(l.attachEvent){l.attachEvent("onreadystatechange",S);n.attachEvent("onload",b.ready);var c=!1;try{c=n.frameElement==null}catch(d){}l.documentElement.doScroll&&c&&a()}}},isFunction:function(a){return b.type(a)==="function"},isArray:Array.isArray||function(a){return b.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNaN:function(a){return a==null||!m.test(a)||isNaN(a)},type:function(a){return a==null?String(a):P[sb.call(a)]||"object"},isPlainObject:function(a){if(!a||
b.type(a)!=="object"||a.nodeType||b.isWindow(a))return!1;try{if(a.constructor&&!ja.call(a,"constructor")&&!ja.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}for(var d in a);return d===j||ja.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a;},parseJSON:function(a){if(typeof a!="string"||!a)return null;a=b.trim(a);if(n.JSON&&n.JSON.parse)return n.JSON.parse(a);if(Z.test(a.replace(I,"@").replace(p,"]").replace(r,"")))return(new Function("return "+
a))();b.error("Invalid JSON: "+a)},parseXML:function(a){var c,d;try{n.DOMParser?(d=new DOMParser,c=d.parseFromString(a,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(a))}catch(e){c=j}(!c||!c.documentElement||c.getElementsByTagName("parsererror").length)&&b.error("Invalid XML: "+a);return c},noop:function(){},globalEval:function(a){a&&h.test(a)&&(n.execScript||function(a){n.eval.call(n,a)})(a)},camelCase:function(a){return a.replace(q,"ms-").replace(s,rb)},nodeName:function(a,
b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var e,f=0,g=a.length,s=g===j||b.isFunction(a);if(d)if(s)for(e in a){if(c.apply(a[e],d)===!1)break}else for(;f<g;){if(c.apply(a[f++],d)===!1)break}else if(s)for(e in a){if(c.call(a[e],e,a[e])===!1)break}else for(;f<g;)if(c.call(a[f],f,a[f++])===!1)break;return a},trim:M?function(a){return a==null?"":M.call(a)}:function(a){return a==null?"":(a+"").replace(i,"").replace(k,"")},makeArray:function(a,c){var d=c||[];if(a!=
null){var e=b.type(a);a.length==null||e==="string"||e==="function"||e==="regexp"||b.isWindow(a)?ka.call(d,a):b.merge(d,a)}return d},inArray:function(a,b){if(!b)return-1;if(Ha)return Ha.call(b,a);for(var c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1},merge:function(a,b){var c=a.length,d=0;if(typeof b.length=="number")for(var e=b.length;d<e;d++)a[c++]=b[d];else for(;b[d]!==j;)a[c++]=b[d++];a.length=c;return a},grep:function(a,b,c){for(var d=[],e,c=!!c,f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==
e&&d.push(a[f]);return d},map:function(a,c,d){var e,f,g=[],s=0,h=a.length;if(a instanceof b||h!==j&&typeof h=="number"&&(h>0&&a[0]&&a[h-1]||h===0||b.isArray(a)))for(;s<h;s++)e=c(a[s],s,d),e!=null&&(g[g.length]=e);else for(f in a)e=c(a[f],f,d),e!=null&&(g[g.length]=e);return g.concat.apply([],g)},guid:1,proxy:function(a,c){if(typeof c=="string")var d=a[c],c=a,a=d;if(!b.isFunction(a))return j;var e=U.call(arguments,2),d=function(){return a.apply(c,e.concat(U.call(arguments)))};d.guid=a.guid=a.guid||
d.guid||b.guid++;return d},access:function(a,c,d,e,f,g){var s=a.length;if(typeof c=="object"){for(var h in c)b.access(a,h,c[h],e,f,d);return a}if(d!==j){e=!g&&e&&b.isFunction(d);for(h=0;h<s;h++)f(a[h],c,e?d.call(a[h],h,f(a[h],c)):d,g);return a}return s?f(a[0],c):j},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();a=t.exec(a)||x.exec(a)||y.exec(a)||a.indexOf("compatible")<0&&w.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,
c)}b.extend(!0,a,this);a.superclass=this;a.fn=a.prototype=this();a.fn.constructor=a;a.sub=this.sub;a.fn.init=function(d,e){e&&e instanceof b&&!(e instanceof a)&&(e=a(e));return b.fn.init.call(this,d,e,c)};a.fn.init.prototype=a.fn;var c=a(l);return a},browser:{}});b.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){P["[object "+b+"]"]=b.toLowerCase()});B=b.uaMatch(B);B.browser&&(b.browser[B.browser]=!0,b.browser.version=B.version);b.browser.webkit&&(b.browser.safari=
!0);h.test(" ")&&(i=/^[\s\xA0]+/,k=/[\s\xA0]+$/);f=b(l);l.addEventListener?S=function(){l.removeEventListener("DOMContentLoaded",S,!1);b.ready()}:l.attachEvent&&(S=function(){l.readyState==="complete"&&(l.detachEvent("onreadystatechange",S),b.ready())});return b}(),la="done fail isResolved isRejected promise then always pipe".split(" "),Ia=[].slice;c.extend({_Deferred:function(){var a=[],b,d,e,f={done:function(){if(!e){var d=arguments,h,i,k,m,j;b&&(j=b,b=0);h=0;for(i=d.length;h<i;h++)k=d[h],m=c.type(k),
m==="array"?f.done.apply(f,k):m==="function"&&a.push(k);j&&f.resolveWith(j[0],j[1])}return this},resolveWith:function(c,f){if(!e&&!b&&!d){f=f||[];d=1;try{for(;a[0];)a.shift().apply(c,f)}finally{b=[c,f],d=0}}return this},resolve:function(){f.resolveWith(this,arguments);return this},isResolved:function(){return!!d||!!b},cancel:function(){e=1;a=[];return this}};return f},Deferred:function(a){var b=c._Deferred(),d=c._Deferred(),e;c.extend(b,{then:function(a,c){b.done(a).fail(c);return this},always:function(){return b.done.apply(b,
arguments).fail.apply(this,arguments)},fail:d.done,rejectWith:d.resolveWith,reject:d.resolve,isRejected:d.isResolved,pipe:function(a,d){return c.Deferred(function(e){c.each({done:[a,"resolve"],fail:[d,"reject"]},function(a,d){var f=d[0],g=d[1],j;c.isFunction(f)?b[a](function(){(j=f.apply(this,arguments))&&c.isFunction(j.promise)?j.promise().then(e.resolve,e.reject):e[g+"With"](this===b?e:this,[j])}):b[a](e[g])})}).promise()},promise:function(a){if(a==null){if(e)return e;e=a={}}for(var c=la.length;c--;)a[la[c]]=
b[la[c]];return a}});b.done(d.cancel).fail(b.cancel);delete b.cancel;a&&a.call(b,b);return b},when:function(a){function b(a){return function(b){d[a]=arguments.length>1?Ia.call(arguments,0):b;--g||h.resolveWith(h,Ia.call(d,0))}}var d=arguments,e=0,f=d.length,g=f,h=f<=1&&a&&c.isFunction(a.promise)?a:c.Deferred();if(f>1){for(;e<f;e++)d[e]&&c.isFunction(d[e].promise)?d[e].promise().then(b(e),h.reject):--g;g||h.resolveWith(h,d)}else h!==a&&h.resolveWith(h,f?[a]:[]);return h.promise()}});c.support=function(){var a=
l.createElement("div"),b=l.documentElement,d,e,f,g,h,i,k;a.setAttribute("className","t");a.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";d=a.getElementsByTagName("*");e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};f=l.createElement("select");g=f.appendChild(l.createElement("option"));d=a.getElementsByTagName("input")[0];i={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,
htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:d.value==="on",optSelected:g.selected,getSetAttribute:a.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0};d.checked=!0;i.noCloneChecked=d.cloneNode(!0).checked;f.disabled=
!0;i.optDisabled=!g.disabled;try{delete a.test}catch(m){i.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function(){i.noCloneEvent=!1}),a.cloneNode(!0).fireEvent("onclick"));d=l.createElement("input");d.value="t";d.setAttribute("type","radio");i.radioValue=d.value==="t";d.setAttribute("checked","checked");a.appendChild(d);e=l.createDocumentFragment();e.appendChild(a.firstChild);i.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked;a.innerHTML="";
a.style.width=a.style.paddingLeft="1px";f=l.getElementsByTagName("body")[0];e=l.createElement(f?"div":"body");g={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};f&&c.extend(g,{position:"absolute",left:"-1000px",top:"-1000px"});for(k in g)e.style[k]=g[k];e.appendChild(a);b=f||b;b.insertBefore(e,b.firstChild);i.appendChecked=d.checked;i.boxModel=a.offsetWidth===2;"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,i.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display=
"",a.innerHTML="<div style='width:4px;'></div>",i.shrinkWrapBlocks=a.offsetWidth!==2);a.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";f=a.getElementsByTagName("td");d=f[0].offsetHeight===0;f[0].style.display="";f[1].style.display="none";i.reliableHiddenOffsets=d&&f[0].offsetHeight===0;a.innerHTML="";l.defaultView&&l.defaultView.getComputedStyle&&(h=l.createElement("div"),h.style.width="0",h.style.marginRight="0",a.appendChild(h),i.reliableMarginRight=
(parseInt((l.defaultView.getComputedStyle(h,null)||{marginRight:0}).marginRight,10)||0)===0);e.innerHTML="";b.removeChild(e);if(a.attachEvent)for(k in{submit:1,change:1,focusin:1})h="on"+k,(d=h in a)||(a.setAttribute(h,"return;"),d=typeof a[h]=="function"),i[k+"Bubbles"]=d;e=e=f=g=f=h=a=d=null;return i}();c.boxModel=c.support.boxModel;var ob=/^(?:\{.*\}|\[.*\])$/,nb=/([A-Z])/g;c.extend({cache:{},uuid:0,expando:"jQuery"+(c.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
applet:!0},hasData:function(a){a=a.nodeType?c.cache[a[c.expando]]:a[c.expando];return!!a&&!ia(a)},data:function(a,b,d,e){if(c.acceptData(a)){var f,g=c.expando,h=typeof b=="string",i=a.nodeType,k=i?c.cache:a,m=i?a[c.expando]:a[c.expando]&&c.expando;if(m&&(!e||!m||!k[m]||k[m][g])||!(h&&d===j)){m||(i?a[c.expando]=m=++c.uuid:m=c.expando);k[m]||(k[m]={},i||(k[m].toJSON=c.noop));if(typeof b=="object"||typeof b=="function")e?k[m][g]=c.extend(k[m][g],b):k[m]=c.extend(k[m],b);a=k[m];e&&(a[g]||(a[g]={}),a=
a[g]);d!==j&&(a[c.camelCase(b)]=d);if(b==="events"&&!a[b])return a[g]&&a[g].events;h?(f=a[b],f==null&&(f=a[c.camelCase(b)])):f=a;return f}}},removeData:function(a,b,d){if(c.acceptData(a)){var e,f=c.expando,g=a.nodeType,h=g?c.cache:a,i=g?a[c.expando]:c.expando;if(h[i]){if(b&&(e=d?h[i][f]:h[i]))if(e[b]||(b=c.camelCase(b)),delete e[b],!ia(e))return;if(d&&(delete h[i][f],!ia(h[i])))return;b=h[i][f];c.support.deleteExpando||!h.setInterval?delete h[i]:h[i]=null;b?(h[i]={},g||(h[i].toJSON=c.noop),h[i][f]=
b):g&&(c.support.deleteExpando?delete a[c.expando]:a.removeAttribute?a.removeAttribute(c.expando):a[c.expando]=null)}}},_data:function(a,b,d){return c.data(a,b,d,!0)},acceptData:function(a){if(a.nodeName){var b=c.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}});c.fn.extend({data:function(a,b){var d=null;if(typeof a=="undefined"){if(this.length&&(d=c.data(this[0]),this[0].nodeType===1))for(var e=this[0].attributes,f,g=0,h=e.length;g<h;g++)f=e[g].name,f.indexOf("data-")===
0&&(f=c.camelCase(f.substring(5)),Ga(this[0],f,d[f]));return d}if(typeof a=="object")return this.each(function(){c.data(this,a)});var i=a.split(".");i[1]=i[1]?"."+i[1]:"";return b===j?(d=this.triggerHandler("getData"+i[1]+"!",[i[0]]),d===j&&this.length&&(d=c.data(this[0],a),d=Ga(this[0],a,d)),d===j&&i[1]?this.data(i[0]):d):this.each(function(){var d=c(this),e=[i[0],b];d.triggerHandler("setData"+i[1]+"!",e);c.data(this,a,b);d.triggerHandler("changeData"+i[1]+"!",e)})},removeData:function(a){return this.each(function(){c.removeData(this,
a)})}});c.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",c.data(a,b,(c.data(a,b,j,!0)||0)+1,!0))},_unmark:function(a,b,d){a!==!0&&(d=b,b=a,a=!1);if(b){var d=d||"fx",e=d+"mark";(a=a?0:(c.data(b,e,j,!0)||1)-1)?c.data(b,e,a,!0):(c.removeData(b,e,!0),Fa(b,d,"mark"))}},queue:function(a,b,d){if(a){var b=(b||"fx")+"queue",e=c.data(a,b,j,!0);d&&(!e||c.isArray(d)?e=c.data(a,b,c.makeArray(d),!0):e.push(d));return e||[]}},dequeue:function(a,b){var b=b||"fx",d=c.queue(a,b),e=d.shift();e==="inprogress"&&(e=
d.shift());e&&(b==="fx"&&d.unshift("inprogress"),e.call(a,function(){c.dequeue(a,b)}));d.length||(c.removeData(a,b+"queue",!0),Fa(a,b,"queue"))}});c.fn.extend({queue:function(a,b){typeof a!="string"&&(b=a,a="fx");return b===j?c.queue(this[0],a):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",[])},promise:function(a){function b(){--g||d.resolveWith(e,[e])}typeof a!="string"&&(a=j);var a=a||"fx",d=c.Deferred(),e=this,f=e.length,g=1,h=a+"defer",i=a+"queue";a+="mark";for(var k;f--;)if(k=c.data(e[f],h,j,!0)||(c.data(e[f],i,j,!0)||c.data(e[f],a,j,!0))&&c.data(e[f],h,c._Deferred(),!0))g++,k.done(b);b();return d.promise()}});var Ja=/[\n\t\r]/g,ma=/\s+/,tb=/\r/g,ub=/^(?:button|input)$/i,vb=/^(?:button|input|object|select|textarea)$/i,
wb=/^a(?:rea)?$/i,Ka=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,E,La;c.fn.extend({attr:function(a,b){return c.access(this,a,b,!0,c.attr)},removeAttr:function(a){return this.each(function(){c.removeAttr(this,a)})},prop:function(a,b){return c.access(this,a,b,!0,c.prop)},removeProp:function(a){a=c.propFix[a]||a;return this.each(function(){try{this[a]=j,delete this[a]}catch(b){}})},addClass:function(a){var b,d,e,f,g,h,
i;if(c.isFunction(a))return this.each(function(b){c(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(ma);d=0;for(e=this.length;d<e;d++)if(f=this[d],f.nodeType===1)if(!f.className&&b.length===1)f.className=a;else{g=" "+f.className+" ";h=0;for(i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");f.className=c.trim(g)}}return this},removeClass:function(a){var b,d,e,f,g,h,i;if(c.isFunction(a))return this.each(function(b){c(this).removeClass(a.call(this,b,this.className))});
if(a&&typeof a=="string"||a===j){b=(a||"").split(ma);d=0;for(e=this.length;d<e;d++)if(f=this[d],f.nodeType===1&&f.className)if(a){g=(" "+f.className+" ").replace(Ja," ");h=0;for(i=b.length;h<i;h++)g=g.replace(" "+b[h]+" "," ");f.className=c.trim(g)}else f.className=""}return this},toggleClass:function(a,b){var d=typeof a,e=typeof b=="boolean";return c.isFunction(a)?this.each(function(d){c(this).toggleClass(a.call(this,d,this.className,b),b)}):this.each(function(){if(d==="string")for(var f,g=0,h=c(this),
i=b,k=a.split(ma);f=k[g++];)i=e?i:!h.hasClass(f),h[i?"addClass":"removeClass"](f);else if(d==="undefined"||d==="boolean")this.className&&c._data(this,"__className__",this.className),this.className=this.className||a===!1?"":c._data(this,"__className__")||""})},hasClass:function(a){for(var a=" "+a+" ",b=0,c=this.length;b<c;b++)if(this[b].nodeType===1&&(" "+this[b].className+" ").replace(Ja," ").indexOf(a)>-1)return!0;return!1},val:function(a){var b,d,e=this[0];if(!arguments.length){if(e){if((b=c.valHooks[e.nodeName.toLowerCase()]||
c.valHooks[e.type])&&"get"in b&&(d=b.get(e,"value"))!==j)return d;d=e.value;return typeof d=="string"?d.replace(tb,""):d==null?"":d}return j}var f=c.isFunction(a);return this.each(function(d){var e=c(this),i;if(this.nodeType===1&&(f?i=a.call(this,d,e.val()):i=a,i==null?i="":typeof i=="number"?i+="":c.isArray(i)&&(i=c.map(i,function(a){return a==null?"":a+""})),b=c.valHooks[this.nodeName.toLowerCase()]||c.valHooks[this.type],!b||!("set"in b)||b.set(this,i,"value")===j))this.value=i})}});c.extend({valHooks:{option:{get:function(a){var b=
a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,d=a.selectedIndex,e=[],f=a.options,a=a.type==="select-one";if(d<0)return null;for(var g=a?d:0,h=a?d+1:f.length;g<h;g++)if(b=f[g],b.selected&&(c.support.optDisabled?!b.disabled:b.getAttribute("disabled")===null)&&(!b.parentNode.disabled||!c.nodeName(b.parentNode,"optgroup"))){b=c(b).val();if(a)return b;e.push(b)}return a&&!e.length&&f.length?c(f[d]).val():e},set:function(a,b){var d=c.makeArray(b);c(a).find("option").each(function(){this.selected=
c.inArray(c(this).val(),d)>=0});d.length||(a.selectedIndex=-1);return d}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,b,d,e){var f=a.nodeType;if(!a||f===3||f===8||f===2)return j;if(e&&b in c.attrFn)return c(a)[b](d);if(!("getAttribute"in a))return c.prop(a,b,d);var g,h;(e=f!==1||!c.isXMLDoc(a))&&(b=c.attrFix[b]||b,h=c.attrHooks[b],h||(Ka.test(b)?h=La:E&&(h=E)));if(d!==j){if(d===null)return c.removeAttr(a,b),j;if(h&&"set"in
h&&e&&(g=h.set(a,d,b))!==j)return g;a.setAttribute(b,""+d);return d}if(h&&"get"in h&&e&&(g=h.get(a,b))!==null)return g;g=a.getAttribute(b);return g===null?j:g},removeAttr:function(a,b){var d;a.nodeType===1&&(b=c.attrFix[b]||b,c.attr(a,b,""),a.removeAttribute(b),Ka.test(b)&&(d=c.propFix[b]||b)in a&&(a[d]=!1))},attrHooks:{type:{set:function(a,b){if(ub.test(a.nodeName)&&a.parentNode)c.error("type property can't be changed");else if(!c.support.radioValue&&b==="radio"&&c.nodeName(a,"input")){var d=a.value;
a.setAttribute("type",b);d&&(a.value=d);return b}}},value:{get:function(a,b){return E&&c.nodeName(a,"button")?E.get(a,b):b in a?a.value:null},set:function(a,b,d){if(E&&c.nodeName(a,"button"))return E.set(a,b,d);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,
b,d){var e=a.nodeType;if(!a||e===3||e===8||e===2)return j;var f,g;(e!==1||!c.isXMLDoc(a))&&(b=c.propFix[b]||b,g=c.propHooks[b]);return d!==j?g&&"set"in g&&(f=g.set(a,d,b))!==j?f:a[b]=d:g&&"get"in g&&(f=g.get(a,b))!==null?f:a[b]},propHooks:{tabIndex:{get:function(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?parseInt(b.value,10):vb.test(a.nodeName)||wb.test(a.nodeName)&&a.href?0:j}}}});c.attrHooks.tabIndex=c.propHooks.tabIndex;La={get:function(a,b){var d;return c.prop(a,b)===!0||(d=
a.getAttributeNode(b))&&d.nodeValue!==!1?b.toLowerCase():j},set:function(a,b,d){var e;b===!1?c.removeAttr(a,d):(e=c.propFix[d]||d,e in a&&(a[e]=!0),a.setAttribute(d,d.toLowerCase()));return d}};c.support.getSetAttribute||(E=c.valHooks.button={get:function(a,b){var c;return(c=a.getAttributeNode(b))&&c.nodeValue!==""?c.nodeValue:j},set:function(a,b,c){var e=a.getAttributeNode(c);e||(e=l.createAttribute(c),a.setAttributeNode(e));return e.nodeValue=b+""}},c.each(["width","height"],function(a,b){c.attrHooks[b]=
c.extend(c.attrHooks[b],{set:function(a,c){if(c==="")return a.setAttribute(b,"auto"),c}})}));c.support.hrefNormalized||c.each(["href","src","width","height"],function(a,b){c.attrHooks[b]=c.extend(c.attrHooks[b],{get:function(a){a=a.getAttribute(b,2);return a===null?j:a}})});c.support.style||(c.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||j},set:function(a,b){return a.style.cssText=""+b}});c.support.optSelected||(c.propHooks.selected=c.extend(c.propHooks.selected,{get:function(){return null}}));
c.support.checkOn||c.each(["radio","checkbox"],function(){c.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}});c.each(["radio","checkbox"],function(){c.valHooks[this]=c.extend(c.valHooks[this],{set:function(a,b){if(c.isArray(b))return a.checked=c.inArray(c(a).val(),b)>=0}})});var ha=/\.(.*)$/,na=/^(?:textarea|input|select)$/i,kb=/\./g,lb=/ /g,xb=/[^\w\s.|`]/g,yb=function(a){return a.replace(xb,"\\$&")};c.event={add:function(a,b,d,e){if(a.nodeType!==3&&a.nodeType!==
8){if(d===!1)d=J;else if(!d)return;var f,g;d.handler&&(f=d,d=f.handler);d.guid||(d.guid=c.guid++);if(g=c._data(a)){var h=g.events,i=g.handle;h||(g.events=h={});i||(g.handle=i=function(a){return typeof c!="undefined"&&(!a||c.event.triggered!==a.type)?c.event.handle.apply(i.elem,arguments):j});i.elem=a;for(var b=b.split(" "),k,m=0,o;k=b[m++];){g=f?c.extend({},f):{handler:d,data:e};k.indexOf(".")>-1?(o=k.split("."),k=o.shift(),g.namespace=o.slice(0).sort().join(".")):(o=[],g.namespace="");g.type=k;g.guid||
(g.guid=d.guid);var l=h[k],n=c.event.special[k]||{};if(!l&&(l=h[k]=[],!n.setup||n.setup.call(a,e,o,i)===!1))a.addEventListener?a.addEventListener(k,i,!1):a.attachEvent&&a.attachEvent("on"+k,i);n.add&&(n.add.call(a,g),g.handler.guid||(g.handler.guid=d.guid));l.push(g);c.event.global[k]=!0}a=null}}},global:{},remove:function(a,b,d,e){if(a.nodeType!==3&&a.nodeType!==8){d===!1&&(d=J);var f,g,h=0,i,k,m,o,l,n,p=c.hasData(a)&&c._data(a),r=p&&p.events;if(p&&r)if(b&&b.type&&(d=b.handler,b=b.type),!b||typeof b==
"string"&&b.charAt(0)===".")for(f in b=b||"",r)c.event.remove(a,f+b);else{for(b=b.split(" ");f=b[h++];)if(o=f,i=f.indexOf(".")<0,k=[],i||(k=f.split("."),f=k.shift(),m=RegExp("(^|\\.)"+c.map(k.slice(0).sort(),yb).join("\\.(?:.*\\.)?")+"(\\.|$)")),l=r[f])if(d){o=c.event.special[f]||{};for(g=e||0;g<l.length;g++)if(n=l[g],d.guid===n.guid){if(i||m.test(n.namespace))e==null&&l.splice(g--,1),o.remove&&o.remove.call(a,n);if(e!=null)break}if(l.length===0||e!=null&&l.length===1)(!o.teardown||o.teardown.call(a,
k)===!1)&&c.removeEvent(a,f,p.handle),delete r[f]}else for(g=0;g<l.length;g++)if(n=l[g],i||m.test(n.namespace))c.event.remove(a,o,n.handler,g),l.splice(g--,1);if(c.isEmptyObject(r))(b=p.handle)&&(b.elem=null),delete p.events,delete p.handle,c.isEmptyObject(p)&&c.removeData(a,j,!0)}}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(a,b,d,e){var f=a.type||a,g=[],h;f.indexOf("!")>=0&&(f=f.slice(0,-1),h=!0);f.indexOf(".")>=0&&(g=f.split("."),f=g.shift(),g.sort());if(d&&!c.event.customEvent[f]||
c.event.global[f]){a=typeof a=="object"?a[c.expando]?a:new c.Event(f,a):new c.Event(f);a.type=f;a.exclusive=h;a.namespace=g.join(".");a.namespace_re=RegExp("(^|\\.)"+g.join("\\.(?:.*\\.)?")+"(\\.|$)");if(e||!d)a.preventDefault(),a.stopPropagation();if(d){if(!(d.nodeType===3||d.nodeType===8)){a.result=j;a.target=d;b=b!=null?c.makeArray(b):[];b.unshift(a);g=d;e=f.indexOf(":")<0?"on"+f:"";do h=c._data(g,"handle"),a.currentTarget=g,h&&h.apply(g,b),e&&c.acceptData(g)&&g[e]&&g[e].apply(g,b)===!1&&(a.result=
!1,a.preventDefault()),g=g.parentNode||g.ownerDocument||g===a.target.ownerDocument&&n;while(g&&!a.isPropagationStopped());if(!a.isDefaultPrevented()){var i,g=c.event.special[f]||{};if((!g._default||g._default.call(d.ownerDocument,a)===!1)&&(f!=="click"||!c.nodeName(d,"a"))&&c.acceptData(d)){try{e&&d[f]&&(i=d[e],i&&(d[e]=null),c.event.triggered=f,d[f]())}catch(k){}i&&(d[e]=i);c.event.triggered=j}}return a.result}}else c.each(c.cache,function(){var d=this[c.expando];d&&d.events&&d.events[f]&&c.event.trigger(a,
b,d.handle.elem)})}},handle:function(a){var a=c.event.fix(a||n.event),b=((c._data(this,"events")||{})[a.type]||[]).slice(0),d=!a.exclusive&&!a.namespace,e=Array.prototype.slice.call(arguments,0);e[0]=a;a.currentTarget=this;for(var f=0,g=b.length;f<g;f++){var h=b[f];if(d||a.namespace_re.test(h.namespace))if(a.handler=h.handler,a.data=h.data,a.handleObj=h,h=h.handler.apply(this,e),h!==j&&(a.result=h,h===!1&&(a.preventDefault(),a.stopPropagation())),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;for(var b=a,a=c.Event(b),d=this.props.length,e;d;)e=this.props[--d],a[e]=b[e];a.target||(a.target=a.srcElement||l);a.target.nodeType===
3&&(a.target=a.target.parentNode);!a.relatedTarget&&a.fromElement&&(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement);if(a.pageX==null&&a.clientX!=null)d=a.target.ownerDocument||l,b=d.documentElement,d=d.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);a.which==null&&(a.charCode!=null||a.keyCode!=null)&&(a.which=a.charCode!=null?a.charCode:a.keyCode);
!a.metaKey&&a.ctrlKey&&(a.metaKey=a.ctrlKey);!a.which&&a.button!==j&&(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:mb,guid:a.handler.guid}))},remove:function(a){c.event.remove(this,Y(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,d){c.isWindow(this)&&(this.onbeforeunload=d)},teardown:function(a,b){this.onbeforeunload===
b&&(this.onbeforeunload=null)}}}};c.removeEvent=l.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)};c.Event=function(a,b){if(!this.preventDefault)return new c.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?$:J):this.type=a;b&&c.extend(this,b);this.timeStamp=c.now();this[c.expando]=!0};
c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=$;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=$;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=$;this.stopPropagation()},isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J};var Ma=function(a){var b=a.relatedTarget,
d=!1,e=a.type;a.type=a.data;b!==this&&(b&&(d=c.contains(this,b)),d||(c.event.handle.apply(this,arguments),a.type=e))},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(a){c.event.remove(this,b,a&&a.selector?Na:Ma)}}});c.support.submitBubbles||(c.event.special.submit={setup:function(){if(c.nodeName(this,"form"))return!1;
else c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=c.nodeName(b,"input")||c.nodeName(b,"button")?b.type:"";(d==="submit"||d==="image")&&c(b).closest("form").length&&Ea("submit",this,arguments)}),c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=c.nodeName(b,"input")||c.nodeName(b,"button")?b.type:"";(d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13&&Ea("submit",this,arguments)})},teardown:function(){c.event.remove(this,".specialSubmit")}});
if(!c.support.changeBubbles){var Q,Oa=function(a){var b=c.nodeName(a,"input")?a.type:"",d=a.value;b==="radio"||b==="checkbox"?d=a.checked:b==="select-multiple"?d=a.selectedIndex>-1?c.map(a.options,function(a){return a.selected}).join("-"):"":c.nodeName(a,"select")&&(d=a.selectedIndex);return d},ba=function(a,b){var d=a.target,e,f;if(na.test(d.nodeName)&&!d.readOnly&&(e=c._data(d,"_change_data"),f=Oa(d),(a.type!=="focusout"||d.type!=="radio")&&c._data(d,"_change_data",f),!(e===j||f===e)))if(e!=null||
f)a.type="change",a.liveFired=j,c.event.trigger(a,b,d)};c.event.special.change={filters:{focusout:ba,beforedeactivate:ba,click:function(a){var b=a.target,d=c.nodeName(b,"input")?b.type:"";(d==="radio"||d==="checkbox"||c.nodeName(b,"select"))&&ba.call(this,a)},keydown:function(a){var b=a.target,d=c.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!c.nodeName(b,"textarea")||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")&&ba.call(this,a)},beforeactivate:function(a){a=a.target;c._data(a,
"_change_data",Oa(a))}},setup:function(){if(this.type==="file")return!1;for(var a in Q)c.event.add(this,a+".specialChange",Q[a]);return na.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return na.test(this.nodeName)}};Q=c.event.special.change.filters;Q.focus=Q.beforeactivate}c.support.focusinBubbles||c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(a){var d=c.event.fix(a);d.type=b;d.originalEvent={};c.event.trigger(d,null,d.target);d.isDefaultPrevented()&&
a.preventDefault()}var e=0;c.event.special[b]={setup:function(){e++===0&&l.addEventListener(a,d,!0)},teardown:function(){--e===0&&l.removeEventListener(a,d,!0)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(a,e,f){var g;if(typeof a=="object"){for(var h in a)this[b](h,e,a[h],f);return this}if(arguments.length===2||e===!1)f=e,e=j;b==="one"?(g=function(a){c(this).unbind(a,g);return f.apply(this,arguments)},g.guid=f.guid||c.guid++):g=f;if(a==="unload"&&b!=="one")this.one(a,e,f);else{h=0;for(var i=
this.length;h<i;h++)c.event.add(this[h],a,g,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,c,e){return this.live(b,c,e,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,
b){if(this[0])return c.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,d=a.guid||c.guid++,e=0,f=function(d){var f=(c.data(this,"lastToggle"+a.guid)||0)%e;c.data(this,"lastToggle"+a.guid,f+1);d.preventDefault();return b[f].apply(this,arguments)||!1};for(f.guid=d;e<b.length;)b[e++].guid=d;return this.click(f)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var oa={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],
function(a,b){c.fn[b]=function(a,e,f,g){var h=0,i,k,m=g||this.selector,o=g?this:c(this.context);if(typeof a=="object"&&!a.preventDefault){for(i in a)o[b](i,e,a[i],m);return this}if(b==="die"&&!a&&g&&g.charAt(0)===".")return o.unbind(g),this;if(e===!1||c.isFunction(e))f=e||J,e=j;for(a=(a||"").split(" ");(g=a[h++])!=null;)if(i=ha.exec(g),k="",i&&(k=i[0],g=g.replace(ha,"")),g==="hover")a.push("mouseenter"+k,"mouseleave"+k);else if(i=g,oa[g]?(a.push(oa[g]+k),g+=k):g=(oa[g]||g)+k,b==="live"){k=0;for(var l=
o.length;k<l;k++)c.event.add(o[k],"live."+Y(g,m),{data:e,selector:m,handler:f,origType:g,origHandler:f,preType:i})}else o.unbind("live."+Y(g,m),f);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(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.bind(b,a,c):this.trigger(b)};c.attrFn&&(c.attrFn[b]=
!0)});(function(){function a(a,b,c,d,e,f){for(var e=0,g=d.length;e<g;e++){var h=d[e];if(h){for(var i=!1,h=h[a];h;){if(h.sizcache===c){i=d[h.sizset];break}if(h.nodeType===1)if(f||(h.sizcache=c,h.sizset=e),typeof b!="string"){if(h===b){i=!0;break}}else if(m.filter(b,[h]).length>0){i=h;break}h=h[a]}d[e]=i}}}function b(a,b,c,d,e,f){for(var e=0,g=d.length;e<g;e++){var h=d[e];if(h){for(var i=!1,h=h[a];h;){if(h.sizcache===c){i=d[h.sizset];break}h.nodeType===1&&!f&&(h.sizcache=c,h.sizset=e);if(h.nodeName.toLowerCase()===
b){i=h;break}h=h[a]}d[e]=i}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,g=!1,h=!0,i=/\\/g,k=/\W/;[0,0].sort(function(){h=!1;return 0});var m=function(a,b,c,e){var c=c||[],g=b=b||l;if(b.nodeType!==1&&b.nodeType!==9)return[];if(!a||typeof a!="string")return c;var h,i,k,j,p,M,I=!0,P=m.isXML(b),v=[],t=a;do if(d.exec(""),h=d.exec(t))if(t=h[3],v.push(h[1]),h[2]){j=h[3];break}while(h);
if(v.length>1&&n.exec(a))if(v.length===2&&o.relative[v[0]])i=w(v[0]+v[1],b);else for(i=o.relative[v[0]]?[b]:m(v.shift(),b);v.length;)a=v.shift(),o.relative[a]&&(a+=v.shift()),i=w(a,i);else if(!e&&v.length>1&&b.nodeType===9&&!P&&o.match.ID.test(v[0])&&!o.match.ID.test(v[v.length-1])&&(p=m.find(v.shift(),b,P),b=p.expr?m.filter(p.expr,p.set)[0]:p.set[0]),b){p=e?{expr:v.pop(),set:r(e)}:m.find(v.pop(),v.length===1&&(v[0]==="~"||v[0]==="+")&&b.parentNode?b.parentNode:b,P);i=p.expr?m.filter(p.expr,p.set):
p.set;for(v.length>0?k=r(i):I=!1;v.length;)h=M=v.pop(),o.relative[M]?h=v.pop():M="",h==null&&(h=b),o.relative[M](k,h,P)}else k=[];k||(k=i);k||m.error(M||a);if(f.call(k)==="[object Array]")if(I)if(b&&b.nodeType===1)for(a=0;k[a]!=null;a++)k[a]&&(k[a]===!0||k[a].nodeType===1&&m.contains(b,k[a]))&&c.push(i[a]);else for(a=0;k[a]!=null;a++)k[a]&&k[a].nodeType===1&&c.push(i[a]);else c.push.apply(c,k);else r(k,c);j&&(m(j,g,c,e),m.uniqueSort(c));return c};m.uniqueSort=function(a){if(x&&(g=h,a.sort(x),g))for(var b=
1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1);return a};m.matches=function(a,b){return m(a,null,null,b)};m.matchesSelector=function(a,b){return m(b,null,null,[a]).length>0};m.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=o.order.length;e<f;e++){var g,h=o.order[e];if(g=o.leftMatch[h].exec(a)){var k=g[1];g.splice(1,1);if(k.substr(k.length-1)!=="\\"&&(g[1]=(g[1]||"").replace(i,""),d=o.find[h](g,b,c),d!=null)){a=a.replace(o.match[h],"");break}}}d||(d=typeof b.getElementsByTagName!="undefined"?
b.getElementsByTagName("*"):[]);return{set:d,expr:a}};m.filter=function(a,b,c,d){for(var e,f,g=a,h=[],i=b,k=b&&b[0]&&m.isXML(b[0]);a&&b.length;){for(var l in o.filter)if((e=o.leftMatch[l].exec(a))!=null&&e[2]){var n,p,r=o.filter[l];p=e[1];f=!1;e.splice(1,1);if(p.substr(p.length-1)!=="\\"){i===h&&(h=[]);if(o.preFilter[l])if(e=o.preFilter[l](e,i,c,h,d,k)){if(e===!0)continue}else f=n=!0;if(e)for(var I=0;(p=i[I])!=null;I++)if(p){n=r(p,e,I,i);var t=d^!!n;c&&n!=null?t?f=!0:i[I]=!1:t&&(h.push(p),f=!0)}if(n!==
j){c||(i=h);a=a.replace(o.match[l],"");if(!f)return[];break}}}if(a===g)if(f==null)m.error(a);else break;g=a}return i};m.error=function(a){throw"Syntax error, unrecognized expression: "+a;};var o=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|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,
CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!k.test(b),
c=c&&!d;d&&(b=b.toLowerCase());for(var d=0,e=a.length,f;d<e;d++)if(f=a[d]){for(;(f=f.previousSibling)&&f.nodeType!==1;);a[d]=c||f&&f.nodeName.toLowerCase()===b?f||!1:f===b}c&&m.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!k.test(b))for(b=b.toLowerCase();e<f;e++){if(c=a[e])c=c.parentNode,a[e]=c.nodeName.toLowerCase()===b?c:!1}else{for(;e<f;e++)(c=a[e])&&(a[e]=d?c.parentNode:c.parentNode===b);d&&m.filter(b,a,!0)}},"":function(c,d,f){var g,h=e++,i=a;typeof d=="string"&&
!k.test(d)&&(d=d.toLowerCase(),g=d,i=b);i("parentNode",d,h,c,g,f)},"~":function(c,d,f){var g,h=e++,i=a;typeof d=="string"&&!k.test(d)&&(d=d.toLowerCase(),g=d,i=b);i("previousSibling",d,h,c,g,f)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c)return(a=b.getElementById(a[1]))&&a.parentNode?[a]:[]},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){for(var c=[],d=b.getElementsByName(a[1]),e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===
0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(i,"")+" ";if(f)return a;for(var f=0,g;(g=b[f])!=null;f++)g&&(e^(g.className&&(" "+g.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(g):c&&(b[f]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]);
a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0;a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){b=a[1]=a[1].replace(i,"");!f&&o.attrMap[b]&&(a[1]=o.attrMap[b]);a[4]=(a[4]||a[5]||"").replace(i,"");a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(a,b,c,e,f){if(a[1]==="not")if((d.exec(a[3])||"").length>1||/^\w/.test(a[3]))a[3]=m(a[3],
null,null,b);else return a=m.filter(a[3],b,c,1^f),c||e.push.apply(e,a),!1;else if(o.match.POS.test(a[0])||o.match.CHILD.test(a[0]))return!0;return a},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],
a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===
a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},
setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||m.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){b=b[3];
c=0;for(d=b.length;c<d;c++)if(b[c]===a)return!1;return!0}m.error(e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){case "only":case "first":for(;d=d.previousSibling;)if(d.nodeType===1)return!1;if(c==="first")return!0;d=a;case "last":for(;d=d.nextSibling;)if(d.nodeType===1)return!1;return!0;case "nth":var c=b[2],e=b[3];if(c===1&&e===0)return!0;var f=b[0],g=a.parentNode;if(g&&(g.sizcache!==f||!a.nodeIndex)){for(var h=0,d=g.firstChild;d;d=d.nextSibling)d.nodeType===1&&(d.nodeIndex=++h);g.sizcache=f}d=
a.nodeIndex-e;return c===0?d===0:d%c===0&&d/c>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],c=o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),d=c+"",e=b[2],f=b[4];return c==null?e==="!=":e==="="?d===f:e==="*="?d.indexOf(f)>=0:e==="~="?(" "+d+" ").indexOf(f)>=
0:f?e==="!="?d!==f:e==="^="?d.indexOf(f)===0:e==="$="?d.substr(d.length-f.length)===f:e==="|="?d===f||d.substr(0,f.length+1)===f+"-":!1:d&&c!==!1},POS:function(a,b,c,d){var e=o.setFilters[b[2]];if(e)return e(a,c,b,d)}}},n=o.match.POS,I=function(a,b){return"\\"+(b-0+1)},p;for(p in o.match)o.match[p]=RegExp(o.match[p].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[p]=RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[p].source.replace(/\\(\d+)/g,I));var r=function(a,b){a=Array.prototype.slice.call(a,0);
return b?(b.push.apply(b,a),b):a};try{Array.prototype.slice.call(l.documentElement.childNodes,0)}catch(t){r=function(a,b){var c=0,d=b||[];if(f.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var x,y;l.documentElement.compareDocumentPosition?x=function(a,b){return a===b?(g=!0,0):!a.compareDocumentPosition||!b.compareDocumentPosition?a.compareDocumentPosition?-1:1:a.compareDocumentPosition(b)&
4?-1:1}:(x=function(a,b){if(a===b)return g=!0,0;if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[];c=a.parentNode;d=b.parentNode;var h=c;if(c===d)return y(a,b);if(!c)return-1;if(!d)return 1;for(;h;)e.unshift(h),h=h.parentNode;for(h=d;h;)f.unshift(h),h=h.parentNode;c=e.length;d=f.length;for(h=0;h<c&&h<d;h++)if(e[h]!==f[h])return y(e[h],f[h]);return h===c?y(a,f[h],-1):y(e[h],b,1)},y=function(a,b,c){if(a===b)return c;for(a=a.nextSibling;a;){if(a===b)return-1;a=a.nextSibling}return 1});
m.getText=function(a){for(var b="",c,d=0;a[d];d++)c=a[d],c.nodeType===3||c.nodeType===4?b+=c.nodeValue:c.nodeType!==8&&(b+=m.getText(c.childNodes));return b};(function(){var a=l.createElement("div"),b="script"+(new Date).getTime(),c=l.documentElement;a.innerHTML="<a name='"+b+"'/>";c.insertBefore(a,c.firstChild);l.getElementById(b)&&(o.find.ID=function(a,b,c){if(typeof b.getElementById!="undefined"&&!c)return(b=b.getElementById(a[1]))?b.id===a[1]||typeof b.getAttributeNode!="undefined"&&b.getAttributeNode("id").nodeValue===
a[1]?[b]:j:[]},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b});c.removeChild(a);c=a=null})();(function(){var a=l.createElement("div");a.appendChild(l.createComment(""));a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){for(var d=[],e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c});a.innerHTML="<a href='#'></a>";a.firstChild&&typeof a.firstChild.getAttribute!=
"undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)});a=null})();l.querySelectorAll&&function(){var a=m,b=l.createElement("div");b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,c,d,e){c=c||l;if(!e&&!m.isXML(c)){var f=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(f&&(c.nodeType===1||c.nodeType===9)){if(f[1])return r(c.getElementsByTagName(b),d);if(f[2]&&o.find.CLASS&&c.getElementsByClassName)return r(c.getElementsByClassName(f[2]),
d)}if(c.nodeType===9){if(b==="body"&&c.body)return r([c.body],d);if(f&&f[3]){var g=c.getElementById(f[3]);if(!g||!g.parentNode)return r([],d);if(g.id===f[3])return r([g],d)}try{return r(c.querySelectorAll(b),d)}catch(h){}}else if(c.nodeType===1&&c.nodeName.toLowerCase()!=="object"){var f=c,i=(g=c.getAttribute("id"))||"__sizzle__",k=c.parentNode,j=/^\s*[+~]/.test(b);g?i=i.replace(/'/g,"\\$&"):c.setAttribute("id",i);j&&k&&(c=c.parentNode);try{if(!j||k)return r(c.querySelectorAll("[id='"+i+"'] "+b),
d)}catch(n){}finally{g||f.removeAttribute("id")}}}return a(b,c,d,e)};for(var c in a)m[c]=a[c];b=null}}();(function(){var a=l.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var c=!b.call(l.createElement("div"),"div"),d=!1;try{b.call(l.documentElement,"[test!='']:sizzle")}catch(e){d=!0}m.matchesSelector=function(a,e){e=e.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(d||!o.match.PSEUDO.test(e)&&!/!=/.test(e)){var f=b.call(a,
e);if(f||!c||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(e,null,null,[a]).length>0}}})();(function(){var a=l.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0&&(a.lastChild.className="e",a.getElementsByClassName("e").length!==1))o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},
a=null})();l.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:l.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1};m.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?a.nodeName!=="HTML":!1};var w=function(a,b){for(var c,d=[],e="",f=b.nodeType?[b]:b;c=o.match.PSEUDO.exec(a);)e+=c[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;c=0;for(var g=
f.length;c<g;c++)m(a,f[c],d);return m.filter(e,d)};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 zb=/Until$/,Ab=/^(?:parents|prevUntil|prevAll)/,Bb=/,/,jb=/^.[^:#\[\.,]*$/,Cb=Array.prototype.slice,Pa=c.expr.match.POS,Db={children:!0,contents:!0,next:!0,prev:!0};c.fn.extend({find:function(a){var b=this,d,e;if(typeof a!="string")return c(a).filter(function(){d=0;for(e=b.length;d<e;d++)if(c.contains(b[d],
this))return!0});var f=this.pushStack("","find",a),g,h,i;d=0;for(e=this.length;d<e;d++)if(g=f.length,c.find(a,this[d],f),d>0)for(h=g;h<f.length;h++)for(i=0;i<g;i++)if(f[i]===f[h]){f.splice(h--,1);break}return f},has:function(a){var b=c(a);return this.filter(function(){for(var a=0,e=b.length;a<e;a++)if(c.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(Da(this,a,!1),"not",a)},filter:function(a){return this.pushStack(Da(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a==
"string"?c.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var d=[],e,f,g=this[0];if(c.isArray(a)){var h,i={},k=1;if(g&&a.length){e=0;for(f=a.length;e<f;e++)h=a[e],i[h]||(i[h]=Pa.test(h)?c(h,b||this.context):h);for(;g&&g.ownerDocument&&g!==b;){for(h in i)e=i[h],(e.jquery?e.index(g)>-1:c(g).is(e))&&d.push({selector:h,elem:g,level:k});g=g.parentNode;k++}}return d}h=Pa.test(a)||typeof a!="string"?c(a,b||this.context):0;e=0;for(f=this.length;e<f;e++)for(g=this[e];g;){if(h?h.index(g)>
-1:c.find.matchesSelector(g,a)){d.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}d=d.length>1?c.unique(d):d;return this.pushStack(d,"closest",a)},index:function(a){return!a?this[0]&&this[0].parentNode?this.prevAll().length:-1:typeof a=="string"?c.inArray(this[0],c(a)):c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var d=typeof a=="string"?c(a,b):c.makeArray(a&&a.nodeType?[a]:a),e=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===
11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:c.unique(e))},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 f=c.map(this,b,d),g=Cb.call(arguments);zb.test(a)||(e=d);e&&typeof e=="string"&&
(f=c.filter(e,f));f=this.length>1&&!Db[a]?c.unique(f):f;(this.length>1||Bb.test(e))&&Ab.test(a)&&(f=f.reverse());return this.pushStack(f,a,g.join(","))}});c.extend({filter:function(a,b,d){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){for(var e=[],a=a[b];a&&a.nodeType!==9&&(d===j||a.nodeType!==1||!c(a).is(d));)a.nodeType===1&&e.push(a),a=a[b];return e},nth:function(a,b,c){for(var b=b||1,e=0;a;a=a[c])if(a.nodeType===1&&++e===
b)break;return a},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var Eb=/ jQuery\d+="(?:\d+|null)"/g,pa=/^\s+/,Qa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ra=/<([\w:]+)/,Fb=/<tbody/i,Gb=/<|&#?\w+;/,Sa=/<(?:script|object|embed|option|style)/i,Ta=/checked\s*(?:[^=]|=\s*.checked.)/i,Hb=/\/(java|ecma)script/i,ib=/^\s*<!(?:\[CDATA\[|\-\-)/,A={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,"",""]};A.optgroup=A.option;A.tbody=A.tfoot=A.colgroup=A.caption=A.thead;A.th=A.td;c.support.htmlSerialize||(A._default=[1,"div<div>","</div>"]);c.fn.extend({text:function(a){return c.isFunction(a)?this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))}):
typeof a!="object"&&a!==j?this.empty().append((this[0]&&this[0].ownerDocument||l).createTextNode(a)):c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapAll(a.call(this,b))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var a=this;a.firstChild&&a.firstChild.nodeType===1;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return c.isFunction(a)?this.each(function(b){c(this).wrapInner(a.call(this,
b))}):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,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},
before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});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,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});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)!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,b){a=a==null?!1:a;b=b==null?a:b;return this.map(function(){return c.clone(this,a,b)})},
html:function(a){if(a===j)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Eb,""):null;if(typeof a=="string"&&!Sa.test(a)&&(c.support.leadingWhitespace||!pa.test(a))&&!A[(Ra.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Qa,"<$1></$2>");try{for(var b=0,d=this.length;b<d;b++)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(b){var d=c(this);d.html(a.call(this,b,d.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))});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)})}return this.length?this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,
b,d){var e,f,g,h=a[0],i=[];if(!c.support.checkClone&&arguments.length===3&&typeof h=="string"&&Ta.test(h))return this.each(function(){c(this).domManip(a,b,d,!0)});if(c.isFunction(h))return this.each(function(e){var f=c(this);a[0]=h.call(this,e,b?f.html():j);f.domManip(a,b,d)});if(this[0]){g=h&&h.parentNode;c.support.parentNode&&g&&g.nodeType===11&&g.childNodes.length===this.length?e={fragment:g}:e=c.buildFragment(a,this,i);g=e.fragment;g.childNodes.length===1?f=g=g.firstChild:f=g.firstChild;if(f){b=
b&&c.nodeName(f,"tr");f=0;for(var k=this.length,m=k-1;f<k;f++)d.call(b?c.nodeName(this[f],"table")?this[f].getElementsByTagName("tbody")[0]||this[f].appendChild(this[f].ownerDocument.createElement("tbody")):this[f]:this[f],e.cacheable||k>1&&f<m?c.clone(g,!0,!0):g)}i.length&&c.each(i,hb)}return this}});c.buildFragment=function(a,b,d){var e,f,g,h;b&&b[0]&&(h=b[0].ownerDocument||b[0]);h.createDocumentFragment||(h=l);a.length===1&&typeof a[0]=="string"&&a[0].length<512&&h===l&&a[0].charAt(0)==="<"&&!Sa.test(a[0])&&
(c.support.checkClone||!Ta.test(a[0]))&&(f=!0,g=c.fragments[a[0]],g&&g!==1&&(e=g));e||(e=h.createDocumentFragment(),c.clean(a,h,e,d));f&&(c.fragments[a[0]]=g?e:1);return{fragment:e,cacheable:f}};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),f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1)return d[b](this[0]),this;for(var f=
0,g=d.length;f<g;f++){var h=(f>0?this.clone(!0):this).get();c(d[f])[b](h);e=e.concat(h)}return this.pushStack(e,a,d.selector)}});c.extend({clone:function(a,b,d){var e=a.cloneNode(!0),f,g,h;if((!c.support.noCloneEvent||!c.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!c.isXMLDoc(a)){Ba(a,e);f=X(a);g=X(e);for(h=0;f[h];++h)g[h]&&Ba(f[h],g[h])}if(b&&(Ca(a,e),d)){f=X(a);g=X(e);for(h=0;f[h];++h)Ca(f[h],g[h])}return e},clean:function(a,b,d,e){b=b||l;typeof b.createElement=="undefined"&&(b=
b.ownerDocument||b[0]&&b[0].ownerDocument||l);for(var f=[],g,h=0,i;(i=a[h])!=null;h++)if(typeof i=="number"&&(i+=""),i){if(typeof i=="string")if(Gb.test(i)){i=i.replace(Qa,"<$1></$2>");g=(Ra.exec(i)||["",""])[1].toLowerCase();var k=A[g]||A._default,m=k[0],j=b.createElement("div");for(j.innerHTML=k[1]+i+k[2];m--;)j=j.lastChild;if(!c.support.tbody){m=Fb.test(i);k=g==="table"&&!m?j.firstChild&&j.firstChild.childNodes:k[1]==="<table>"&&!m?j.childNodes:[];for(g=k.length-1;g>=0;--g)c.nodeName(k[g],"tbody")&&
!k[g].childNodes.length&&k[g].parentNode.removeChild(k[g])}!c.support.leadingWhitespace&&pa.test(i)&&j.insertBefore(b.createTextNode(pa.exec(i)[0]),j.firstChild);i=j.childNodes}else i=b.createTextNode(i);var n;if(!c.support.appendChecked)if(i[0]&&typeof(n=i.length)=="number")for(g=0;g<n;g++)za(i[g]);else za(i);i.nodeType?f.push(i):f=c.merge(f,i)}if(d){a=function(a){return!a.type||Hb.test(a.type)};for(h=0;f[h];h++)e&&c.nodeName(f[h],"script")&&(!f[h].type||f[h].type.toLowerCase()==="text/javascript")?
e.push(f[h].parentNode?f[h].parentNode.removeChild(f[h]):f[h]):(f[h].nodeType===1&&(b=c.grep(f[h].getElementsByTagName("script"),a),f.splice.apply(f,[h+1,0].concat(b))),d.appendChild(f[h]))}return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.expando,g=c.event.special,h=c.support.deleteExpando,i=0,k;(k=a[i])!=null;i++)if(!k.nodeName||!c.noData[k.nodeName.toLowerCase()])if(d=k[c.expando]){if((b=e[d]&&e[d][f])&&b.events){for(var m in b.events)g[m]?c.event.remove(k,m):c.removeEvent(k,m,b.handle);
b.handle&&(b.handle.elem=null)}h?delete k[c.expando]:k.removeAttribute&&k.removeAttribute(c.expando);delete e[d]}}});var qa=/alpha\([^)]*\)/i,Ib=/opacity=([^)]*)/,Jb=/([A-Z]|^ms)/g,Ua=/^-?\d+(?:px)?$/i,Kb=/^-?\d/,Lb=/^([\-+])=([\-+.\de]+)/,Mb={position:"absolute",visibility:"hidden",display:"block"},fb=["Left","Right"],gb=["Top","Bottom"],D,Va,Wa;c.fn.css=function(a,b){return arguments.length===2&&b===j?this:c.access(this,a,b,!0,function(a,b,f){return f!==j?c.style(a,b,f):c.css(a,b)})};c.extend({cssHooks:{opacity:{get:function(a,
b){if(b){var c=D(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":c.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,d,e){if(a&&a.nodeType!==3&&a.nodeType!==8&&a.style){var f,g=c.camelCase(b),h=a.style,i=c.cssHooks[g],b=c.cssProps[g]||g;if(d===j)return i&&"get"in i&&(f=i.get(a,!1,e))!==j?f:h[b];e=typeof d;e==="string"&&(f=Lb.exec(d))&&(d=+(f[1]+
1)*+f[2]+parseFloat(c.css(a,b)),e="number");if(!(d==null||e==="number"&&isNaN(d)))if(e==="number"&&!c.cssNumber[g]&&(d+="px"),!i||!("set"in i)||(d=i.set(a,d))!==j)try{h[b]=d}catch(k){}}},css:function(a,b,d){var e,f,b=c.camelCase(b);f=c.cssHooks[b];b=c.cssProps[b]||b;b==="cssFloat"&&(b="float");if(f&&"get"in f&&(e=f.get(a,!0,d))!==j)return e;if(D)return D(a,b)},swap:function(a,b,c){var e={},f;for(f in b)e[f]=a.style[f],a.style[f]=b[f];c.call(a);for(f in b)a.style[f]=e[f]}});c.curCSS=c.css;c.each(["height",
"width"],function(a,b){c.cssHooks[b]={get:function(a,e,f){var g;if(e){if(a.offsetWidth!==0)return ya(a,b,f);c.swap(a,Mb,function(){g=ya(a,b,f)});return g}},set:function(a,b){if(!Ua.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}});c.support.opacity||(c.cssHooks.opacity={get:function(a,b){return Ib.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style,e=a.currentStyle,f=c.isNaN(b)?"":"alpha(opacity="+b*100+
")",g=e&&e.filter||d.filter||"";d.zoom=1;if(b>=1&&c.trim(g.replace(qa,""))===""&&(d.removeAttribute("filter"),e&&!e.filter))return;d.filter=qa.test(g)?g.replace(qa,f):g+" "+f}});c(function(){c.support.reliableMarginRight||(c.cssHooks.marginRight={get:function(a,b){var d;c.swap(a,{display:"inline-block"},function(){b?d=D(a,"margin-right","marginRight"):d=a.style.marginRight});return d}})});l.defaultView&&l.defaultView.getComputedStyle&&(Va=function(a,b){var d,e,b=b.replace(Jb,"-$1").toLowerCase();
if(!(e=a.ownerDocument.defaultView))return j;if(e=e.getComputedStyle(a,null))d=e.getPropertyValue(b),d===""&&!c.contains(a.ownerDocument.documentElement,a)&&(d=c.style(a,b));return d});l.documentElement.currentStyle&&(Wa=function(a,b){var c,e=a.currentStyle&&a.currentStyle[b],f=a.runtimeStyle&&a.runtimeStyle[b],g=a.style;!Ua.test(e)&&Kb.test(e)&&(c=g.left,f&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":e||0,e=g.pixelLeft+"px",g.left=c,f&&(a.runtimeStyle.left=f));return e===
""?"auto":e});D=Va||Wa;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 Nb=/%20/g,eb=/\[\]$/,Xa=/\r?\n/g,Ob=/#.*$/,Pb=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Qb=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Rb=/^(?:GET|HEAD)$/,
Sb=/^\/\//,Ya=/\?/,Tb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Ub=/^(?:select|textarea)/i,xa=/\s+/,Vb=/([?&])_=[^&]*/,Za=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,$a=c.fn.load,ga={},ab={},F,L,bb=["*/"]+["*"];try{F=qb.href}catch(ac){F=l.createElement("a"),F.href="",F=F.href}L=Za.exec(F.toLowerCase())||[];c.fn.extend({load:function(a,b,d){if(typeof a!="string"&&$a)return $a.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0)var f=a.slice(e,a.length),a=
a.slice(0,e);e="GET";b&&(c.isFunction(b)?(d=b,b=j):typeof b=="object"&&(b=c.param(b,c.ajaxSettings.traditional),e="POST"));var g=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(a,b,e){e=a.responseText;a.isResolved()&&(a.done(function(a){e=a}),g.html(f?c("<div>").append(e.replace(Tb,"")).find(f):e));d&&g.each(d,[e,b,a])}});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||Ub.test(this.nodeName)||Qb.test(this.type))}).map(function(a,b){var d=c(this).val();return d==null?null:c.isArray(d)?c.map(d,function(a){return{name:b.name,value:a.replace(Xa,"\r\n")}}):{name:b.name,value:d.replace(Xa,"\r\n")}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(a){return this.bind(b,a)}});c.each(["get","post"],function(a,b){c[b]=function(a,
e,f,g){c.isFunction(e)&&(g=g||f,f=e,e=j);return c.ajax({type:b,url:a,data:e,success:f,dataType:g})}});c.extend({getScript:function(a,b){return c.get(a,j,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},ajaxSetup:function(a,b){b?va(a,c.ajaxSettings):(b=a,a=c.ajaxSettings);va(a,b);return a},ajaxSettings:{url:F,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(L[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",
html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bb},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":n.String,"text html":!0,"text json":c.parseJSON,"text xml":c.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:wa(ga),ajaxTransport:wa(ab),ajax:function(a,b){function d(a,b,d,l){if(y!==2){y=2;w&&clearTimeout(w);r=j;t=l||"";q.readyState=a>0?4:0;var o,n,p,l=b;if(d){var s=e,x=q,v=s.contents,
u=s.dataTypes,Z=s.responseFields,C,z,B,G;for(z in Z)z in d&&(x[Z[z]]=d[z]);for(;u[0]==="*";)u.shift(),C===j&&(C=s.mimeType||x.getResponseHeader("content-type"));if(C)for(z in v)if(v[z]&&v[z].test(C)){u.unshift(z);break}if(u[0]in d)B=u[0];else{for(z in d){if(!u[0]||s.converters[z+" "+u[0]]){B=z;break}G||(G=z)}B=B||G}B?(B!==u[0]&&u.unshift(B),d=d[B]):d=void 0}else d=j;if(a>=200&&a<300||a===304){if(e.ifModified){if(C=q.getResponseHeader("Last-Modified"))c.lastModified[m]=C;if(C=q.getResponseHeader("Etag"))c.etag[m]=
C}if(a===304)l="notmodified",o=!0;else try{C=e;C.dataFilter&&(d=C.dataFilter(d,C.dataType));var J=C.dataTypes;z={};var E,F,L=J.length,H,N=J[0],D,K,O,R,T;for(E=1;E<L;E++){if(E===1)for(F in C.converters)typeof F=="string"&&(z[F.toLowerCase()]=C.converters[F]);D=N;N=J[E];if(N==="*")N=D;else if(D!=="*"&&D!==N){K=D+" "+N;O=z[K]||z["* "+N];if(!O)for(R in T=j,z)if(H=R.split(" "),H[0]===D||H[0]==="*")if(T=z[H[1]+" "+N]){R=z[R];R===!0?O=T:T===!0&&(O=R);break}!O&&!T&&c.error("No conversion from "+K.replace(" ",
" to "));O!==!0&&(d=O?O(d):T(R(d)))}}n=d;l="success";o=!0}catch(Q){l="parsererror",p=Q}}else if(p=l,!l||a)l="error",a<0&&(a=0);q.status=a;q.statusText=""+(b||l);o?h.resolveWith(f,[n,l,q]):h.rejectWith(f,[q,l,p]);q.statusCode(k);k=j;A&&g.trigger("ajax"+(o?"Success":"Error"),[q,e,o?n:p]);i.resolveWith(f,[q,l]);A&&(g.trigger("ajaxComplete",[q,e]),--c.active||c.event.trigger("ajaxStop"))}}typeof a=="object"&&(b=a,a=j);var b=b||{},e=c.ajaxSetup({},b),f=e.context||e,g=f!==e&&(f.nodeType||f instanceof c)?
c(f):c.event,h=c.Deferred(),i=c._Deferred(),k=e.statusCode||{},m,l={},n={},t,p,r,w,x,y=0,A,s,q={readyState:0,setRequestHeader:function(a,b){if(!y){var c=a.toLowerCase(),a=n[c]=n[c]||a;l[a]=b}return this},getAllResponseHeaders:function(){return y===2?t:null},getResponseHeader:function(a){var b;if(y===2){if(!p)for(p={};b=Pb.exec(t);)p[b[1].toLowerCase()]=b[2];b=p[a.toLowerCase()]}return b===j?null:b},overrideMimeType:function(a){y||(e.mimeType=a);return this},abort:function(a){a=a||"abort";r&&r.abort(a);
d(0,a);return this}};h.promise(q);q.success=q.done;q.error=q.fail;q.complete=i.done;q.statusCode=function(a){if(a){var b;if(y<2)for(b in a)k[b]=[k[b],a[b]];else b=a[q.status],q.then(b,b)}return this};e.url=((a||e.url)+"").replace(Ob,"").replace(Sb,L[1]+"//");e.dataTypes=c.trim(e.dataType||"*").toLowerCase().split(xa);e.crossDomain==null&&(x=Za.exec(e.url.toLowerCase()),e.crossDomain=!(!x||x[1]==L[1]&&x[2]==L[2]&&(x[3]||(x[1]==="http:"?80:443))==(L[3]||(L[1]==="http:"?80:443))));e.data&&e.processData&&
typeof e.data!="string"&&(e.data=c.param(e.data,e.traditional));W(ga,e,b,q);if(y===2)return!1;A=e.global;e.type=e.type.toUpperCase();e.hasContent=!Rb.test(e.type);A&&c.active++===0&&c.event.trigger("ajaxStart");if(!e.hasContent&&(e.data&&(e.url+=(Ya.test(e.url)?"&":"?")+e.data,delete e.data),m=e.url,e.cache===!1)){x=c.now();var u=e.url.replace(Vb,"$1_="+x);e.url=u+(u===e.url?(Ya.test(e.url)?"&":"?")+"_="+x:"")}(e.data&&e.hasContent&&e.contentType!==!1||b.contentType)&&q.setRequestHeader("Content-Type",
e.contentType);e.ifModified&&(m=m||e.url,c.lastModified[m]&&q.setRequestHeader("If-Modified-Since",c.lastModified[m]),c.etag[m]&&q.setRequestHeader("If-None-Match",c.etag[m]));q.setRequestHeader("Accept",e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+(e.dataTypes[0]!=="*"?", "+bb+"; q=0.01":""):e.accepts["*"]);for(s in e.headers)q.setRequestHeader(s,e.headers[s]);if(e.beforeSend&&(e.beforeSend.call(f,q,e)===!1||y===2))return q.abort(),!1;for(s in{success:1,error:1,complete:1})q[s](e[s]);
if(r=W(ab,e,b,q)){q.readyState=1;A&&g.trigger("ajaxSend",[q,e]);e.async&&e.timeout>0&&(w=setTimeout(function(){q.abort("timeout")},e.timeout));try{y=1,r.send(l,d)}catch(B){y<2?d(-1,B):c.error(B)}}else d(-1,"No Transport");return q},param:function(a,b){var d=[],e=function(a,b){b=c.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};b===j&&(b=c.ajaxSettings.traditional);if(c.isArray(a)||a.jquery&&!c.isPlainObject(a))c.each(a,function(){e(this.name,this.value)});else for(var f in a)fa(f,
a[f],b,e);return d.join("&").replace(Nb,"+")}});c.extend({active:0,lastModified:{},etag:{}});var Wb=c.now(),ca=/(\=)\?(&|$)|\?\?/i;c.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return c.expando+"_"+Wb++}});c.ajaxPrefilter("json jsonp",function(a,b,d){b=a.contentType==="application/x-www-form-urlencoded"&&typeof a.data=="string";if(a.dataTypes[0]==="jsonp"||a.jsonp!==!1&&(ca.test(a.url)||b&&ca.test(a.data))){var e,f=a.jsonpCallback=c.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,
g=n[f],h=a.url,i=a.data,k="$1"+f+"$2";a.jsonp!==!1&&(h=h.replace(ca,k),a.url===h&&(b&&(i=i.replace(ca,k)),a.data===i&&(h+=(/\?/.test(h)?"&":"?")+a.jsonp+"="+f)));a.url=h;a.data=i;n[f]=function(a){e=[a]};d.always(function(){n[f]=g;e&&c.isFunction(g)&&n[f](e[0])});a.converters["script json"]=function(){e||c.error(f+" was not called");return e[0]};a.dataTypes[0]="json";return"script"}});c.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},
contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){c.globalEval(a);return a}}});c.ajaxPrefilter("script",function(a){a.cache===j&&(a.cache=!1);a.crossDomain&&(a.type="GET",a.global=!1)});c.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=l.head||l.getElementsByTagName("head")[0]||l.documentElement;return{send:function(e,f){b=l.createElement("script");b.async="async";a.scriptCharset&&(b.charset=a.scriptCharset);b.src=a.url;b.onload=b.onreadystatechange=function(a,
e){if(e||!b.readyState||/loaded|complete/.test(b.readyState))b.onload=b.onreadystatechange=null,c&&b.parentNode&&c.removeChild(b),b=j,e||f(200,"success")};c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(0,1)}}}});var ra=n.ActiveXObject?function(){for(var a in K)K[a](0,1)}:!1,Xb=0,K;c.ajaxSettings.xhr=n.ActiveXObject?function(){var a;if(!(a=!this.isLocal&&ua()))a:{try{a=new n.ActiveXObject("Microsoft.XMLHTTP");break a}catch(b){}a=void 0}return a}:ua;(function(a){c.extend(c.support,{ajax:!!a,
cors:!!a&&"withCredentials"in a})})(c.ajaxSettings.xhr());c.support.ajax&&c.ajaxTransport(function(a){if(!a.crossDomain||c.support.cors){var b;return{send:function(d,e){var f=a.xhr(),g,h;a.username?f.open(a.type,a.url,a.async,a.username,a.password):f.open(a.type,a.url,a.async);if(a.xhrFields)for(h in a.xhrFields)f[h]=a.xhrFields[h];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType);!a.crossDomain&&!d["X-Requested-With"]&&(d["X-Requested-With"]="XMLHttpRequest");try{for(h in d)f.setRequestHeader(h,
d[h])}catch(i){}f.send(a.hasContent&&a.data||null);b=function(d,h){var i,l,n,p,r;try{if(b&&(h||f.readyState===4))if(b=j,g&&(f.onreadystatechange=c.noop,ra&&delete K[g]),h)f.readyState!==4&&f.abort();else{i=f.status;n=f.getAllResponseHeaders();p={};(r=f.responseXML)&&r.documentElement&&(p.xml=r);p.text=f.responseText;try{l=f.statusText}catch(t){l=""}!i&&a.isLocal&&!a.crossDomain?i=p.text?200:404:i===1223&&(i=204)}}catch(w){h||e(-1,w)}p&&e(i,l,p,n)};!a.async||f.readyState===4?b():(g=++Xb,ra&&(K||(K=
{},c(n).unload(ra)),K[g]=b),f.onreadystatechange=b)},abort:function(){b&&b(0,1)}}}});var ea={},u,H,Yb=/^(?:toggle|show|hide)$/,Zb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,da,sa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],V;c.fn.extend({show:function(a,b,d){var e;if(a||a===0)return this.animate(t("show",3),a,b,d);b=0;for(d=this.length;b<d;b++)a=this[b],a.style&&(e=a.style.display,!c._data(a,"olddisplay")&&
e==="none"&&(e=a.style.display=""),e===""&&c.css(a,"display")==="none"&&c._data(a,"olddisplay",w(a.nodeName)));for(b=0;b<d;b++)if(a=this[b],a.style&&(e=a.style.display,e===""||e==="none"))a.style.display=c._data(a,"olddisplay")||"";return this},hide:function(a,b,d){if(a||a===0)return this.animate(t("hide",3),a,b,d);a=0;for(b=this.length;a<b;a++)this[a].style&&(d=c.css(this[a],"display"),d!=="none"&&!c._data(this[a],"olddisplay")&&c._data(this[a],"olddisplay",d));for(a=0;a<b;a++)this[a].style&&(this[a].style.display=
"none");return this},_toggle:c.fn.toggle,toggle:function(a,b,d){var e=typeof a=="boolean";c.isFunction(a)&&c.isFunction(b)?this._toggle.apply(this,arguments):a==null||e?this.each(function(){var b=e?a:c(this).is(":hidden");c(this)[b?"show":"hide"]()}):this.animate(t("toggle",3),a,b,d);return this},fadeTo:function(a,b,c,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,e)},animate:function(a,b,d,e){var f=c.speed(b,d,e);if(c.isEmptyObject(a))return this.each(f.complete,
[!1]);a=c.extend({},a);return this[f.queue===!1?"each":"queue"](function(){var g;f.queue===!1&&c._mark(this);var b=c.extend({},f),d=this.nodeType===1,e=d&&c(this).is(":hidden"),k,j,l,n,t,p,r,u;b.animatedProperties={};for(l in a){k=c.camelCase(l);l!==k&&(a[k]=a[l],delete a[l]);j=a[k];c.isArray(j)?(b.animatedProperties[k]=j[1],g=a[k]=j[0],j=g):b.animatedProperties[k]=b.specialEasing&&b.specialEasing[k]||b.easing||"swing";if(j==="hide"&&e||j==="show"&&!e)return b.complete.call(this);d&&(k==="height"||
k==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],c.css(this,"display")==="inline"&&c.css(this,"float")==="none"&&(c.support.inlineBlockNeedsLayout?(n=w(this.nodeName),n==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)):this.style.display="inline-block"))}b.overflow!=null&&(this.style.overflow="hidden");for(l in a)d=new c.fx(this,b,l),j=a[l],Yb.test(j)?d[j==="toggle"?e?"show":"hide":j]():(t=Zb.exec(j),p=d.cur(),t?
(r=parseFloat(t[2]),u=t[3]||(c.cssNumber[l]?"":"px"),u!=="px"&&(c.style(this,l,(r||1)+u),p*=(r||1)/d.cur(),c.style(this,l,p+u)),t[1]&&(r=(t[1]==="-="?-1:1)*r+p),d.custom(p,r,u)):d.custom(p,j,""));return!0})},stop:function(a,b){a&&this.queue([]);this.each(function(){var a=c.timers,e=a.length;for(b||c._unmark(!0,this);e--;)a[e].elem===this&&(b&&a[e](!0),a.splice(e,1))});b||this.dequeue();return this}});c.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},
fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){c.fn[a]=function(a,c,f){return this.animate(b,a,c,f)}});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(a){c.isFunction(e.old)&&e.old.call(this);e.queue!==
!1?c.dequeue(this):a!==!1&&c._unmark(this)};return e},easing:{linear:function(a,b,c,e){return c+e*a},swing:function(a,b,c,e){return(-Math.cos(a*Math.PI)/2+0.5)*e+c}},timers:[],fx:function(a,b,c){this.options=b;this.elem=a;this.prop=c;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,b=c.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,d){function e(a){return f.step(a)}var f=this,g=c.fx;this.startTime=V||ta();this.start=a;this.end=b;this.unit=d||this.unit||(c.cssNumber[this.prop]?"":"px");this.now=this.start;this.pos=this.state=0;e.elem=this.elem;e()&&c.timers.push(e)&&!da&&(da=setInterval(g.tick,g.interval))},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=!0;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=!0;this.custom(this.cur(),0)},step:function(a){var b=V||ta(),d=!0,e=this.elem,f=this.options,g,h;if(a||b>=f.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();f.animatedProperties[this.prop]=!0;for(g in f.animatedProperties)f.animatedProperties[g]!==!0&&(d=!1);if(d){f.overflow!=null&&!c.support.shrinkWrapBlocks&&
c.each(["","X","Y"],function(a,b){e.style["overflow"+b]=f.overflow[a]});f.hide&&c(e).hide();if(f.hide||f.show)for(var i in f.animatedProperties)c.style(e,i,f.orig[i]);f.complete.call(e)}return!1}f.duration==Infinity?this.now=b:(h=b-this.startTime,this.state=h/f.duration,this.pos=c.easing[f.animatedProperties[this.prop]](this.state,h,0,1,f.duration),this.now=this.start+(this.end-this.start)*this.pos);this.update();return!0}};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(da);da=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){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:a.elem[a.prop]=a.now}}});c.expr&&c.expr.filters&&(c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length});var $b=
/^t(?:able|d|h)$/i,cb=/^(?:body|html)$/i;"getBoundingClientRect"in l.documentElement?c.fn.offset=function(a){var b=this[0],d;if(a)return this.each(function(b){c.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);try{d=b.getBoundingClientRect()}catch(e){}var f=b.ownerDocument,g=f.documentElement;if(!d||!c.contains(g,b))return d?{top:d.top,left:d.left}:{top:0,left:0};b=f.body;f=G(f);return{top:d.top+(f.pageYOffset||c.support.boxModel&&
g.scrollTop||b.scrollTop)-(g.clientTop||b.clientTop||0),left:d.left+(f.pageXOffset||c.support.boxModel&&g.scrollLeft||b.scrollLeft)-(g.clientLeft||b.clientLeft||0)}}:c.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){c.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d,e=b.offsetParent,f=b.ownerDocument,g=f.documentElement,h=f.body;d=(f=f.defaultView)?f.getComputedStyle(b,null):
b.currentStyle;for(var i=b.offsetTop,k=b.offsetLeft;(b=b.parentNode)&&b!==h&&b!==g;){if(c.offset.supportsFixedPosition&&d.position==="fixed")break;d=f?f.getComputedStyle(b,null):b.currentStyle;i-=b.scrollTop;k-=b.scrollLeft;b===e&&(i+=b.offsetTop,k+=b.offsetLeft,c.offset.doesNotAddBorder&&(!c.offset.doesAddBorderForTableAndCells||!$b.test(b.nodeName))&&(i+=parseFloat(d.borderTopWidth)||0,k+=parseFloat(d.borderLeftWidth)||0),e=b.offsetParent);c.offset.subtractsBorderForOverflowNotVisible&&d.overflow!==
"visible"&&(i+=parseFloat(d.borderTopWidth)||0,k+=parseFloat(d.borderLeftWidth)||0)}if(d.position==="relative"||d.position==="static")i+=h.offsetTop,k+=h.offsetLeft;c.offset.supportsFixedPosition&&d.position==="fixed"&&(i+=Math.max(g.scrollTop,h.scrollTop),k+=Math.max(g.scrollLeft,h.scrollLeft));return{top:i,left:k}};c.offset={initialize:function(){var a=l.body,b=l.createElement("div"),d,e,f,g=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;f=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=e.offsetTop!==5;this.doesAddBorderForTableAndCells=
f.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!==g;a.removeChild(b);c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();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");e==="static"&&(a.style.position="relative");var f=c(a),g=f.offset(),h=c.css(a,"top"),i=c.css(a,"left"),k={},j={},l,n;(e==="absolute"||e==="fixed")&&c.inArray("auto",[h,i])>-1?(j=f.position(),l=j.top,n=j.left):(l=parseFloat(h)||0,n=parseFloat(i)||0);c.isFunction(b)&&(b=b.call(a,d,g));b.top!=null&&(k.top=b.top-g.top+l);b.left!=null&&(k.left=b.left-g.left+n);"using"in b?
b.using.call(a,k):f.css(k)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=cb.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||
l.body;a&&!cb.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(b){var f,g;return b===j?(f=this[0],!f?null:(g=G(f))?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:f[d]):this.each(function(){(g=G(this))?g.scrollTo(a?c(g).scrollLeft():b,a?b:c(g).scrollTop()):this[d]=b})}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();
c.fn["inner"+b]=function(){var a=this[0];return a&&a.style?parseFloat(c.css(a,d,"padding")):null};c.fn["outer"+b]=function(a){var b=this[0];return b&&b.style?parseFloat(c.css(b,d,a?"margin":"border")):null};c.fn[d]=function(a){var f=this[0];if(!f)return a==null?null:this;if(c.isFunction(a))return this.each(function(b){var f=c(this);f[d](a.call(this,b,f[d]()))});if(c.isWindow(f)){var g=f.document.documentElement["client"+b],h=f.document.body;return f.document.compatMode==="CSS1Compat"&&g||h&&h["client"+
b]||g}return f.nodeType===9?Math.max(f.documentElement["client"+b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b]):a===j?(f=c.css(f,d),g=parseFloat(f),c.isNaN(g)?f:g):this.css(d,typeof a=="string"?a:a+"px")}});n.jQuery=n.$=c})(window);(function(n){n.fn.dice=function(j){var G=this,j=n.extend({background:"#ffffff",callback:null,glyphSize:40,glyphSrc:"dice.gif",juggleTimeout:300,number:1,selectGlyph:function(w){var t;switch(w){default:case 1:t=w=0;break;case 2:w=2*j.glyphSize;t=0;break;case 3:w=j.glyphSize;t=0;break;case 4:t=w=j.glyphSize;break;case 5:w=2*j.glyphSize;t=j.glyphSize;break;case 6:w=0,t=j.glyphSize}n(G).css("backgroundPosition",w+"px "+t+"px")}},j);n(this).css({background:j.background+" url("+j.glyphSrc+")",height:j.glyphSize,
width:j.glyphSize});n(this).click(function(){n.when(n.Deferred(function(w){var t=n(G).css("z-index");n(G).css("z-index",1).animate({"z-index":j.juggleTimeout},{step:function(){j.selectGlyph(Math.floor(Math.random()*6)+1)},duration:j.juggleTimeout,complete:w.resolve}).css("z-index",t);return w.promise()})).done(function(){j.number=Math.floor(Math.random()*6)+1;n(this).stop();j.selectGlyph(j.number);j.callback&&typeof j.callback==="function"&&j.callback(j.number)})});n(this).click()}})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment