Greasy Fork is available in English.

EZTV Ajaxian GUI

Replaces regular "watched" my show list links with ajax ones.

// ==UserScript==
// @name            EZTV Ajaxian GUI
// @namespace       eztvag.user.js
// @description     Replaces regular "watched" my show list links with ajax ones.
// @version	    0.4.3
// @include         http://eztv.ch/myshows/*
// @include         https://eztv.ch/myshows/*
// @include         http://eztv-proxy.net/myshows/*
// @include         https://eztv-proxy.net/myshows/*
// ==/UserScript==

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

var log = function(){
    return (typeof GM_log == 'function' && GM_log.apply(this, arguments));
}
var loader = 'data:image/png;base64,R0lGODlhEAALAPQAAP///wAAANra2tDQ0Orq6gYGBgAAAC4uLoKCgmBgYLq6uiIiIkpKSoqKimRkZL6+viYmJgQEBE5OTubm5tjY2PT09Dg4ONzc3PLy8ra2tqCgoMrKyu7u7gAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCwAAACwAAAAAEAALAAAFLSAgjmRpnqSgCuLKAq5AEIM4zDVw03ve27ifDgfkEYe04kDIDC5zrtYKRa2WQgAh+QQJCwAAACwAAAAAEAALAAAFJGBhGAVgnqhpHIeRvsDawqns0qeN5+y967tYLyicBYE7EYkYAgAh+QQJCwAAACwAAAAAEAALAAAFNiAgjothLOOIJAkiGgxjpGKiKMkbz7SN6zIawJcDwIK9W/HISxGBzdHTuBNOmcJVCyoUlk7CEAAh+QQJCwAAACwAAAAAEAALAAAFNSAgjqQIRRFUAo3jNGIkSdHqPI8Tz3V55zuaDacDyIQ+YrBH+hWPzJFzOQQaeavWi7oqnVIhACH5BAkLAAAALAAAAAAQAAsAAAUyICCOZGme1rJY5kRRk7hI0mJSVUXJtF3iOl7tltsBZsNfUegjAY3I5sgFY55KqdX1GgIAIfkECQsAAAAsAAAAABAACwAABTcgII5kaZ4kcV2EqLJipmnZhWGXaOOitm2aXQ4g7P2Ct2ER4AMul00kj5g0Al8tADY2y6C+4FIIACH5BAkLAAAALAAAAAAQAAsAAAUvICCOZGme5ERRk6iy7qpyHCVStA3gNa/7txxwlwv2isSacYUc+l4tADQGQ1mvpBAAIfkECQsAAAAsAAAAABAACwAABS8gII5kaZ7kRFGTqLLuqnIcJVK0DeA1r/u3HHCXC/aKxJpxhRz6Xi0ANAZDWa+kEAA7AAAAAAAAAAAA';

$.extend($, {
    head: function(url, params, callback){
	return $.ajax({
	    async: true,
	    cache: true,
	    complete: callback,
	    type: 'HEAD',
	    url: url,
	    data: params
	});
    }
});
$.fn.extend({
    toggleLoader: function(){
	return this.each(function(){
	    var $this = $(this);
	    if ($this.is(':visible')){
		var $img = $('<img />').attr({
		    src: loader
		}).addClass('ajax-loader');
		$this.hide().after($img);
	    } else {
		$this.show().next('.ajax-loader').remove();	   
	    }
	});
    }
});

$(document).ready(function(){
    var $logo = $('#header_logo');
    $logo.css({
	background: 'none', 
	width: 205, 
	height: 15,
	'line-height': '15px',
	'vertical-align': 'middle',
	'padding-top': 8
    })
    .text($('img', $logo).attr('title'));
    
    var $watched_links = $('.header_brd td.thread a.thread');
    $watched_links.click(function(e){
	e.preventDefault();
	var $this = $(this);
	$this.toggleLoader();
	$.head($this.attr('href'), {}, function(r, status){			
	    if (status == 'success'){				
		$this.closest('tr').remove();
	    }
	    $this.toggleLoader();
	});	
	return false;
    }).attr('title', $watched_links.eq(0).text().toLowerCase() );
	
	
    var $watched_all_links = $('.header_brd td.section_post_header a.hdr');
    $watched_all_links.click(function(e){
	e.preventDefault();
	var $this = $(this);
	var $next = $this.closest('tr').nextUntil('tr.table');
	var loaders = $this.add($next.find('td:nth-child(1) a')).toggleLoader();		
	$.head($this.attr('href'), {}, function(r, status){
	    if (status == 'success'){
		$next.each(function(){
		    var $element = $(this);
		    if ($element.attr('name') == 'hover'){
			$element.remove();					
		    } else {
			return false;
		    }
		});
	    }
	    loaders.toggleLoader();		
	});
    });
});