(function(b,g){function e(a){var c=R[a]={},d,f,a=a.split(/\s+/);for(d=0,f=a.length;d<f;d++)c[a[d]]=!0;return c}function j(a,c,h){if(h===g&&1===a.nodeType)if(h="data-"+c.replace(Sa,"-$1").toLowerCase(),h=a.getAttribute(h),"string"===typeof h){try{h="true"===h?!0:"false"===h?!1:"null"===h?null:d.isNumeric(h)?parseFloat(h):Ta.test(h)?d.parseJSON(h):h}catch(f){}d.data(a,c,h)}else h=g;return h}function m(a){for(var c in a)if(!("data"===c&&d.isEmptyObject(a[c]))&&"toJSON"!==c)return!1;return!0}function l(a,
c,h){var f=c+"defer",k=c+"queue",w=c+"mark",b=d._data(a,f);b&&("queue"===h||!d._data(a,k))&&("mark"===h||!d._data(a,w))&&setTimeout(function(){!d._data(a,k)&&!d._data(a,w)&&(d.removeData(a,f,!0),b.fire())},0)}function i(){return!1}function n(){return!0}function o(a,c,h){c=c||0;if(d.isFunction(c))return d.grep(a,function(a,d){return!!c.call(a,d,a)===h});if(c.nodeType)return d.grep(a,function(a){return a===c===h});if("string"===typeof c){var f=d.grep(a,function(a){return 1===a.nodeType});if(Ua.test(c))return d.filter(c,
f,!h);c=d.filter(c,f)}return d.grep(a,function(a){return 0<=d.inArray(a,c)===h})}function r(a){var c=na.split("|"),a=a.createDocumentFragment();if(a.createElement)for(;c.length;)a.createElement(c.pop());return a}function t(a,c){if(1===c.nodeType&&d.hasData(a)){var h,f,k;f=d._data(a);var w=d._data(c,f),b=f.events;if(b)for(h in delete w.handle,w.events={},b)for(f=0,k=b[h].length;f<k;f++)d.event.add(c,h+(b[h][f].namespace?".":"")+b[h][f].namespace,b[h][f],b[h][f].data);if(w.data)w.data=d.extend({},w.data)}}
function s(a,c){var h;if(1===c.nodeType){c.clearAttributes&&c.clearAttributes();c.mergeAttributes&&c.mergeAttributes(a);h=c.nodeName.toLowerCase();if("object"===h)c.outerHTML=a.outerHTML;else if("input"===h&&("checkbox"===a.type||"radio"===a.type)){if(a.checked)c.defaultChecked=c.checked=a.checked;if(c.value!==a.value)c.value=a.value}else if("option"===h)c.selected=a.defaultSelected;else if("input"===h||"textarea"===h)c.defaultValue=a.defaultValue;c.removeAttribute(d.expando)}}function A(a){return"undefined"!==
typeof a.getElementsByTagName?a.getElementsByTagName("*"):"undefined"!==typeof a.querySelectorAll?a.querySelectorAll("*"):[]}function x(a){if("checkbox"===a.type||"radio"===a.type)a.defaultChecked=a.checked}function y(a){var c=(a.nodeName||"").toLowerCase();"input"===c?x(a):"script"!==c&&"undefined"!==typeof a.getElementsByTagName&&d.grep(a.getElementsByTagName("input"),x)}function I(a,c){c.src?d.ajax({url:c.src,async:!1,dataType:"script"}):d.globalEval((c.text||c.textContent||c.innerHTML||"").replace(Va,
"/*$0*/"));c.parentNode&&c.parentNode.removeChild(c)}function E(a,c,h){var f="width"===c?a.offsetWidth:a.offsetHeight,k="width"===c?Wa:Xa,b=0,g=k.length;if(0<f){if("border"!==h)for(;b<g;b++)h||(f-=parseFloat(d.css(a,"padding"+k[b]))||0),f="margin"===h?f+(parseFloat(d.css(a,h+k[b]))||0):f-(parseFloat(d.css(a,"border"+k[b]+"Width"))||0);return f+"px"}f=U(a,c,c);if(0>f||null==f)f=a.style[c]||0;f=parseFloat(f)||0;if(h)for(;b<g;b++)f+=parseFloat(d.css(a,"padding"+k[b]))||0,"padding"!==h&&(f+=parseFloat(d.css(a,
"border"+k[b]+"Width"))||0),"margin"===h&&(f+=parseFloat(d.css(a,h+k[b]))||0);return f+"px"}function K(a){return function(c,h){var u;"string"!==typeof c&&(h=c,c="*");if(d.isFunction(h))for(var f=c.toLowerCase().split(oa),k=0,b=f.length,g,e;k<b;k++)g=f[k],(e=/^\+/.test(g))&&(g=g.substr(1)||"*"),u=a[g]=a[g]||[],g=u,g[e?"unshift":"push"](h)}}function z(a,c,d,f,k,b){k=k||c.dataTypes[0];b=b||{};b[k]=!0;for(var k=a[k],u=0,e=k?k.length:0,i=a===da,j;u<e&&(i||!j);u++)j=k[u](c,d,f),"string"===typeof j&&(!i||
b[j]?j=g:(c.dataTypes.unshift(j),j=z(a,c,d,f,j,b)));if((i||!j)&&!b["*"])j=z(a,c,d,f,"*",b);return j}function D(a,c){var h,f,k=d.ajaxSettings.flatOptions||{};for(h in c)c[h]!==g&&((k[h]?a:f||(f={}))[h]=c[h]);f&&d.extend(!0,a,f)}function q(a,c,h,f){if(d.isArray(c))d.each(c,function(c,k){h||Ya.test(a)?f(a,k):q(a+"["+("object"===typeof k||d.isArray(k)?c:"")+"]",k,h,f)});else if(!h&&null!=c&&"object"===typeof c)for(var k in c)q(a+"["+k+"]",c[k],h,f);else f(a,c)}function B(){try{return new b.XMLHttpRequest}catch(a){}}
function L(){setTimeout(G,0);return Z=d.now()}function G(){Z=g}function J(a,c){var h={};d.each(pa.concat.apply([],pa.slice(0,c)),function(){h[this]=a});return h}function V(a){if(!ea[a]){var c=p.body,h=d("<"+a+">").appendTo(c),f=h.css("display");h.remove();if("none"===f||""===f){if(!H)H=p.createElement("iframe"),H.frameBorder=H.width=H.height=0;c.appendChild(H);if(!W||!H.createElement)W=(H.contentWindow||H.contentDocument).document,W.write(("CSS1Compat"===p.compatMode?"<!doctype html>":"")+"<html><body>"),
W.close();h=W.createElement(a);W.body.appendChild(h);f=d.css(h,"display");c.removeChild(H)}ea[a]=f}return ea[a]}function N(a){return d.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}var p=b.document,Q=b.navigator,fa=b.location,d=function(){function a(){if(!c.isReady){try{p.documentElement.doScroll("left")}catch(d){setTimeout(a,1);return}c.ready()}}var c=function(a,d){return new c.fn.init(a,d,k)},d=b.jQuery,f=b.$,k,w=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,u=/\S/,e=/^\s+/,i=/\s+$/,
j=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,l=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,m=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,o=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,q=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,A=/(mozilla)(?:.*? rv:([\w.]+))?/,s=/-([a-z]|[0-9])/ig,B=/^-ms-/,y=function(a,c){return(c+"").toUpperCase()},x=Q.userAgent,C,O,$a=Object.prototype.toString,ha=Object.prototype.hasOwnProperty,ia=Array.prototype.push,Y=Array.prototype.slice,
ra=String.prototype.trim,sa=Array.prototype.indexOf,ta={};c.fn=c.prototype={constructor:c,init:function(a,d,h){var f;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if("body"===a&&!d&&p.body)return this.context=p,this[0]=p.body,this.selector=a,this.length=1,this;if("string"===typeof a){if((f="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&3<=a.length?[null,a,null]:w.exec(a))&&(f[1]||!d)){if(f[1])return h=(d=d instanceof c?d[0]:d)?d.ownerDocument||d:p,(a=j.exec(a))?
c.isPlainObject(d)?(a=[p.createElement(a[1])],c.fn.attr.call(a,d,!0)):a=[h.createElement(a[1])]:(a=c.buildFragment([f[1]],[h]),a=(a.cacheable?c.clone(a.fragment):a.fragment).childNodes),c.merge(this,a);if((d=p.getElementById(f[2]))&&d.parentNode){if(d.id!==f[2])return h.find(a);this.length=1;this[0]=d}this.context=p;this.selector=a;return this}return!d||d.jquery?(d||h).find(a):this.constructor(d).find(a)}if(c.isFunction(a))return h.ready(a);if(a.selector!==g)this.selector=a.selector,this.context=
a.context;return c.makeArray(a,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return Y.call(this,0)},get:function(a){return null==a?this.toArray():0>a?this[this.length+a]:this[a]},pushStack:function(a,d,h){var f=this.constructor();c.isArray(a)?ia.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if("find"===d)f.selector=this.selector+(this.selector?" ":"")+h;else if(d)f.selector=this.selector+"."+d+"("+h+")";return f},each:function(a,
d){return c.each(this,a,d)},ready:function(a){c.bindReady();C.add(a);return this},eq:function(a){a=+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(Y.apply(this,arguments),"slice",Y.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,function(c,d){return a.call(c,d,c)}))},end:function(){return this.prevObject||this.constructor(null)},push:ia,sort:[].sort,splice:[].splice};
c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a,d,h,f,k,b=arguments[0]||{},C=1,w=arguments.length,O=!1;"boolean"===typeof b&&(O=b,b=arguments[1]||{},C=2);"object"!==typeof b&&!c.isFunction(b)&&(b={});w===C&&(b=this,--C);for(;C<w;C++)if(null!=(a=arguments[C]))for(d in a)h=b[d],f=a[d],b!==f&&(O&&f&&(c.isPlainObject(f)||(k=c.isArray(f)))?(k?(k=!1,h=h&&c.isArray(h)?h:[]):h=h&&c.isPlainObject(h)?h:{},b[d]=c.extend(O,h,f)):f!==g&&(b[d]=f));return b};c.extend({noConflict:function(a){if(b.$===
c)b.$=f;if(a&&b.jQuery===c)b.jQuery=d;return c},isReady:!1,readyWait:1,holdReady:function(a){a?c.readyWait++:c.ready(!0)},ready:function(a){if(!0===a&&!--c.readyWait||!0!==a&&!c.isReady){if(!p.body)return setTimeout(c.ready,1);c.isReady=!0;!0!==a&&0<--c.readyWait||(C.fireWith(p,[c]),c.fn.trigger&&c(p).trigger("ready").off("ready"))}},bindReady:function(){if(!C){C=c.Callbacks("once memory");if("complete"===p.readyState)return setTimeout(c.ready,1);if(p.addEventListener)p.addEventListener("DOMContentLoaded",
O,!1),b.addEventListener("load",c.ready,!1);else if(p.attachEvent){p.attachEvent("onreadystatechange",O);b.attachEvent("onload",c.ready);var d=!1;try{d=null==b.frameElement}catch(h){}p.documentElement.doScroll&&d&&a()}}},isFunction:function(a){return"function"===c.type(a)},isArray:Array.isArray||function(a){return"array"===c.type(a)},isWindow:function(a){return a&&"object"===typeof a&&"setInterval"in a},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return null==
a?""+a:ta[$a.call(a)]||"object"},isPlainObject:function(a){if(!a||"object"!==c.type(a)||a.nodeType||c.isWindow(a))return!1;try{if(a.constructor&&!ha.call(a,"constructor")&&!ha.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(d){return!1}for(var h in a);return h===g||ha.call(a,h)},isEmptyObject:function(a){for(var c in a)return!1;return!0},error:function(a){throw Error(a);},parseJSON:function(a){if("string"!==typeof a||!a)return null;a=c.trim(a);if(b.JSON&&b.JSON.parse)return b.JSON.parse(a);
if(n.test(a.replace(l,"@").replace(m,"]").replace(o,"")))return(new Function("return "+a))();c.error("Invalid JSON: "+a)},parseXML:function(a){var d,h;try{b.DOMParser?(h=new DOMParser,d=h.parseFromString(a,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(a))}catch(f){d=g}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&c.error("Invalid XML: "+a);return d},noop:function(){},globalEval:function(a){a&&u.test(a)&&(b.execScript||function(a){b.eval.call(b,
a)})(a)},camelCase:function(a){return a.replace(B,"ms-").replace(s,y)},nodeName:function(a,c){return a.nodeName&&a.nodeName.toUpperCase()===c.toUpperCase()},each:function(a,d,h){var f,k=0,b=a.length,C=b===g||c.isFunction(a);if(h)if(C)for(f in a){if(!1===d.apply(a[f],h))break}else for(;k<b&&!(!1===d.apply(a[k++],h)););else if(C)for(f in a){if(!1===d.call(a[f],f,a[f]))break}else for(;k<b&&!(!1===d.call(a[k],k,a[k++])););return a},trim:ra?function(a){return null==a?"":ra.call(a)}:function(a){return null==
a?"":a.toString().replace(e,"").replace(i,"")},makeArray:function(a,d){var h=d||[];if(null!=a){var f=c.type(a);null==a.length||"string"===f||"function"===f||"regexp"===f||c.isWindow(a)?ia.call(h,a):c.merge(h,a)}return h},inArray:function(a,c,d){var h;if(c){if(sa)return sa.call(c,a,d);h=c.length;for(d=d?0>d?Math.max(0,h+d):d:0;d<h;d++)if(d in c&&c[d]===a)return d}return-1},merge:function(a,c){var d=a.length,h=0;if("number"===typeof c.length)for(var f=c.length;h<f;h++)a[d++]=c[h];else for(;c[h]!==g;)a[d++]=
c[h++];a.length=d;return a},grep:function(a,c,d){for(var h=[],f,d=!!d,k=0,b=a.length;k<b;k++)f=!!c(a[k],k),d!==f&&h.push(a[k]);return h},map:function(a,d,h){var f,k,b=[],C=0,w=a.length;if(a instanceof c||w!==g&&"number"===typeof w&&(0<w&&a[0]&&a[w-1]||0===w||c.isArray(a)))for(;C<w;C++)f=d(a[C],C,h),null!=f&&(b[b.length]=f);else for(k in a)f=d(a[k],k,h),null!=f&&(b[b.length]=f);return b.concat.apply([],b)},guid:1,proxy:function(a,d){if("string"===typeof d)var h=a[d],d=a,a=h;if(!c.isFunction(a))return g;
var f=Y.call(arguments,2),h=function(){return a.apply(d,f.concat(Y.call(arguments)))};h.guid=a.guid=a.guid||h.guid||c.guid++;return h},access:function(a,d,h,f,k,b){var C=a.length;if("object"===typeof d){for(var w in d)c.access(a,w,d[w],f,k,h);return a}if(h!==g){f=!b&&f&&c.isFunction(h);for(w=0;w<C;w++)k(a[w],d,f?h.call(a[w],w,k(a[w],d)):h,b);return a}return C?k(a[0],d):g},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();a=r.exec(a)||q.exec(a)||t.exec(a)||0>a.indexOf("compatible")&&
A.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},sub:function(){function a(c,d){return new a.fn.init(c,d)}c.extend(!0,a,this);a.superclass=this;a.fn=a.prototype=this();a.fn.constructor=a;a.sub=this.sub;a.fn.init=function(h,f){f&&f instanceof c&&!(f instanceof a)&&(f=a(f));return c.fn.init.call(this,h,f,d)};a.fn.init.prototype=a.fn;var d=a(p);return a},browser:{}});c.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,c){ta["[object "+c+"]"]=c.toLowerCase()});
x=c.uaMatch(x);if(x.browser)c.browser[x.browser]=!0,c.browser.version=x.version;if(c.browser.webkit)c.browser.safari=!0;u.test("\u00a0")&&(e=/^[\s\xA0]+/,i=/[\s\xA0]+$/);k=c(p);p.addEventListener?O=function(){p.removeEventListener("DOMContentLoaded",O,!1);c.ready()}:p.attachEvent&&(O=function(){"complete"===p.readyState&&(p.detachEvent("onreadystatechange",O),c.ready())});return c}(),R={};d.Callbacks=function(a){var a=a?R[a]||e(a):{},c=[],h=[],f,k,b,u,i,j=function(h){var f,k,b,w;for(f=0,k=h.length;f<
k;f++)b=h[f],w=d.type(b),"array"===w?j(b):"function"===w&&(!a.unique||!l.has(b))&&c.push(b)},n=function(d,g){g=g||[];f=!a.memory||[d,g];k=!0;i=b||0;b=0;for(u=c.length;c&&i<u;i++)if(!1===c[i].apply(d,g)&&a.stopOnFalse){f=!0;break}k=!1;c&&(a.once?!0===f?l.disable():c=[]:h&&h.length&&(f=h.shift(),l.fireWith(f[0],f[1])))},l={add:function(){if(c){var a=c.length;j(arguments);k?u=c.length:f&&!0!==f&&(b=a,n(f[0],f[1]))}return this},remove:function(){if(c)for(var d=arguments,h=0,f=d.length;h<f;h++)for(var b=
0;b<c.length&&!(d[h]===c[b]&&(k&&b<=u&&(u--,b<=i&&i--),c.splice(b--,1),a.unique));b++);return this},has:function(a){if(c)for(var d=0,h=c.length;d<h;d++)if(a===c[d])return!0;return!1},empty:function(){c=[];return this},disable:function(){c=h=f=g;return this},disabled:function(){return!c},lock:function(){h=g;(!f||!0===f)&&l.disable();return this},locked:function(){return!h},fireWith:function(c,d){h&&(k?a.once||h.push([c,d]):(!a.once||!f)&&n(c,d));return this},fire:function(){l.fireWith(this,arguments);
return this},fired:function(){return!!f}};return l};var M=[].slice;d.extend({Deferred:function(a){var c=d.Callbacks("once memory"),h=d.Callbacks("once memory"),f=d.Callbacks("memory"),k="pending",b={resolve:c,reject:h,notify:f},g={done:c.add,fail:h.add,progress:f.add,state:function(){return k},isResolved:c.fired,isRejected:h.fired,then:function(a,c,d){e.done(a).fail(c).progress(d);return this},always:function(){e.done.apply(e,arguments).fail.apply(e,arguments);return this},pipe:function(a,c,h){return d.Deferred(function(f){d.each({done:[a,
"resolve"],fail:[c,"reject"],progress:[h,"notify"]},function(a,c){var h=c[0],k=c[1],b;if(d.isFunction(h))e[a](function(){if((b=h.apply(this,arguments))&&d.isFunction(b.promise))b.promise().then(f.resolve,f.reject,f.notify);else f[k+"With"](this===e?f:this,[b])});else e[a](f[k])})}).promise()},promise:function(a){if(null==a)a=g;else for(var c in g)a[c]=g[c];return a}},e=g.promise({}),i;for(i in b)e[i]=b[i].fire,e[i+"With"]=b[i].fireWith;e.done(function(){k="resolved"},h.disable,f.lock).fail(function(){k=
"rejected"},c.disable,f.lock);a&&a.call(e,e);return e},when:function(a){function c(a){return function(c){f[a]=1<arguments.length?M.call(arguments,0):c;--e||i.resolveWith(i,f)}}function h(a){return function(c){g[a]=1<arguments.length?M.call(arguments,0):c;i.notifyWith(j,g)}}var f=M.call(arguments,0),k=0,b=f.length,g=Array(b),e=b,i=1>=b&&a&&d.isFunction(a.promise)?a:d.Deferred(),j=i.promise();if(1<b){for(;k<b;k++)f[k]&&f[k].promise&&d.isFunction(f[k].promise)?f[k].promise().then(c(k),i.reject,h(k)):
--e;e||i.resolveWith(i,f)}else i!==a&&i.resolveWith(i,b?[a]:[]);return j}});d.support=function(){var a,c,h,f,k,g,e,i,j=p.createElement("div");j.setAttribute("className","t");j.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";c=j.getElementsByTagName("*");h=j.getElementsByTagName("a")[0];if(!c||!c.length||!h)return{};f=p.createElement("select");k=f.appendChild(p.createElement("option"));c=j.getElementsByTagName("input")[0];a={leadingWhitespace:3===
j.firstChild.nodeType,tbody:!j.getElementsByTagName("tbody").length,htmlSerialize:!!j.getElementsByTagName("link").length,style:/top/.test(h.getAttribute("style")),hrefNormalized:"/a"===h.getAttribute("href"),opacity:/^0.55/.test(h.style.opacity),cssFloat:!!h.style.cssFloat,checkOn:"on"===c.value,optSelected:k.selected,getSetAttribute:"t"!==j.className,enctype:!!p.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==p.createElement("nav").cloneNode(!0).outerHTML,submitBubbles:!0,changeBubbles:!0,
focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0};c.checked=!0;a.noCloneChecked=c.cloneNode(!0).checked;f.disabled=!0;a.optDisabled=!k.disabled;try{delete j.test}catch(n){a.deleteExpando=!1}!j.addEventListener&&j.attachEvent&&j.fireEvent&&(j.attachEvent("onclick",function(){a.noCloneEvent=!1}),j.cloneNode(!0).fireEvent("onclick"));c=p.createElement("input");c.value="t";c.setAttribute("type","radio");a.radioValue="t"===c.value;
c.setAttribute("checked","checked");j.appendChild(c);h=p.createDocumentFragment();h.appendChild(j.lastChild);a.checkClone=h.cloneNode(!0).cloneNode(!0).lastChild.checked;a.appendChecked=c.checked;h.removeChild(c);h.appendChild(j);j.innerHTML="";if(b.getComputedStyle)c=p.createElement("div"),c.style.width="0",c.style.marginRight="0",j.style.width="2px",j.appendChild(c),a.reliableMarginRight=0===(parseInt((b.getComputedStyle(c,null)||{marginRight:0}).marginRight,10)||0);if(j.attachEvent)for(e in{submit:1,
change:1,focusin:1})c="on"+e,i=c in j,i||(j.setAttribute(c,"return;"),i="function"===typeof j[c]),a[e+"Bubbles"]=i;h.removeChild(j);h=f=k=c=j=c=null;d(function(){var c,h,f,k,b=p.getElementsByTagName("body")[0];if(b){c=p.createElement("div");c.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px";b.insertBefore(c,b.firstChild);j=p.createElement("div");c.appendChild(j);j.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";
g=j.getElementsByTagName("td");i=0===g[0].offsetHeight;g[0].style.display="";g[1].style.display="none";a.reliableHiddenOffsets=i&&0===g[0].offsetHeight;j.innerHTML="";j.style.width=j.style.paddingLeft="1px";d.boxModel=a.boxModel=2===j.offsetWidth;if("undefined"!==typeof j.style.zoom)j.style.display="inline",j.style.zoom=1,a.inlineBlockNeedsLayout=2===j.offsetWidth,j.style.display="",j.innerHTML="<div style='width:4px;'></div>",a.shrinkWrapBlocks=2!==j.offsetWidth;j.style.cssText="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;visibility:hidden;border:0;";
j.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>";h=j.firstChild;f=h.firstChild;k={doesNotAddBorder:5!==f.offsetTop,doesAddBorderForTableAndCells:5===h.nextSibling.firstChild.firstChild.offsetTop};f.style.position="fixed";f.style.top="20px";k.fixedPosition=
20===f.offsetTop||15===f.offsetTop;f.style.position=f.style.top="";h.style.overflow="hidden";h.style.position="relative";k.subtractsBorderForOverflowNotVisible=-5===f.offsetTop;k.doesNotIncludeMarginInBodyOffset=1!==b.offsetTop;b.removeChild(c);j=null;d.extend(a,k)}});return a}();var Ta=/^(?:\{.*\}|\[.*\])$/,Sa=/([A-Z])/g;d.extend({cache:{},uuid:0,expando:"jQuery"+(d.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?d.cache[a[d.expando]]:a[d.expando];return!!a&&!m(a)},data:function(a,c,h,f){if(d.acceptData(a)){var k;k=d.expando;var b="string"===typeof c,j=a.nodeType,e=j?d.cache:a,i=j?a[k]:a[k]&&k,n="events"===c;if(i&&e[i]&&(n||f||e[i].data)||!(b&&h===g)){i||(j?a[k]=i=++d.uuid:i=k);if(!e[i]&&(e[i]={},!j))e[i].toJSON=d.noop;if("object"===typeof c||"function"===typeof c)f?e[i]=d.extend(e[i],c):e[i].data=d.extend(e[i].data,c);k=a=e[i];if(!f){if(!a.data)a.data={};a=a.data}h!==g&&(a[d.camelCase(c)]=h);if(n&&
!a[c])return k.events;b?(h=a[c],null==h&&(h=a[d.camelCase(c)])):h=a;return h}}},removeData:function(a,c,h){if(d.acceptData(a)){var f,k,b,g=d.expando,j=a.nodeType,i=j?d.cache:a,e=j?a[g]:g;if(i[e]){if(c&&(f=h?i[e]:i[e].data)){d.isArray(c)||(c in f?c=[c]:(c=d.camelCase(c),c=c in f?[c]:c.split(" ")));for(k=0,b=c.length;k<b;k++)delete f[c[k]];if(!(h?m:d.isEmptyObject)(f))return}if(!h&&(delete i[e].data,!m(i[e])))return;d.support.deleteExpando||!i.setInterval?delete i[e]:i[e]=null;j&&(d.support.deleteExpando?
delete a[g]:a.removeAttribute?a.removeAttribute(g):a[g]=null)}}},_data:function(a,c,h){return d.data(a,c,h,!0)},acceptData:function(a){if(a.nodeName){var c=d.noData[a.nodeName.toLowerCase()];if(c)return!(!0===c||a.getAttribute("classid")!==c)}return!0}});d.fn.extend({data:function(a,c){var h,f,k,b=null;if("undefined"===typeof a){if(this.length&&(b=d.data(this[0]),1===this[0].nodeType&&!d._data(this[0],"parsedAttrs"))){f=this[0].attributes;for(var i=0,e=f.length;i<e;i++)k=f[i].name,0===k.indexOf("data-")&&
(k=d.camelCase(k.substring(5)),j(this[0],k,b[k]));d._data(this[0],"parsedAttrs",!0)}return b}if("object"===typeof a)return this.each(function(){d.data(this,a)});h=a.split(".");h[1]=h[1]?"."+h[1]:"";return c===g?(b=this.triggerHandler("getData"+h[1]+"!",[h[0]]),b===g&&this.length&&(b=d.data(this[0],a),b=j(this[0],a,b)),b===g&&h[1]?this.data(h[0]):b):this.each(function(){var f=d(this),k=[h[0],c];f.triggerHandler("setData"+h[1]+"!",k);d.data(this,a,c);f.triggerHandler("changeData"+h[1]+"!",k)})},removeData:function(a){return this.each(function(){d.removeData(this,
a)})}});d.extend({_mark:function(a,c){a&&(c=(c||"fx")+"mark",d._data(a,c,(d._data(a,c)||0)+1))},_unmark:function(a,c,h){!0!==a&&(h=c,c=a,a=!1);if(c){var h=h||"fx",f=h+"mark";(a=a?0:(d._data(c,f)||1)-1)?d._data(c,f,a):(d.removeData(c,f,!0),l(c,h,"mark"))}},queue:function(a,c,h){var f;if(a)return c=(c||"fx")+"queue",f=d._data(a,c),h&&(!f||d.isArray(h)?f=d._data(a,c,d.makeArray(h)):f.push(h)),f||[]},dequeue:function(a,c){var c=c||"fx",h=d.queue(a,c),f=h.shift(),k={};"inprogress"===f&&(f=h.shift());f&&
("fx"===c&&h.unshift("inprogress"),d._data(a,c+".run",k),f.call(a,function(){d.dequeue(a,c)},k));h.length||(d.removeData(a,c+"queue "+c+".run",!0),l(a,c,"queue"))}});d.fn.extend({queue:function(a,c){"string"!==typeof a&&(c=a,a="fx");return c===g?d.queue(this[0],a):this.each(function(){var h=d.queue(this,a,c);"fx"===a&&"inprogress"!==h[0]&&d.dequeue(this,a)})},dequeue:function(a){return this.each(function(){d.dequeue(this,a)})},delay:function(a,c){a=d.fx?d.fx.speeds[a]||a:a;return this.queue(c||"fx",
function(c,d){var k=setTimeout(c,a);d.stop=function(){clearTimeout(k)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a){function c(){--b||h.resolveWith(f,[f])}"string"!==typeof a&&(a=g);for(var a=a||"fx",h=d.Deferred(),f=this,k=f.length,b=1,i=a+"defer",e=a+"queue",a=a+"mark",j;k--;)if(j=d.data(f[k],i,g,!0)||(d.data(f[k],e,g,!0)||d.data(f[k],a,g,!0))&&d.data(f[k],i,d.Callbacks("once memory"),!0))b++,j.add(c);c();return h.promise()}});var ua=/[\n\t\r]/g,aa=/\s+/,ab=/\r/g,
bb=/^(?:button|input)$/i,cb=/^(?:button|input|object|select|textarea)$/i,db=/^a(?:rea)?$/i,va=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,wa=d.support.getSetAttribute,P,xa,ya;d.fn.extend({attr:function(a,c){return d.access(this,a,c,!0,d.attr)},removeAttr:function(a){return this.each(function(){d.removeAttr(this,a)})},prop:function(a,c){return d.access(this,a,c,!0,d.prop)},removeProp:function(a){a=d.propFix[a]||a;return this.each(function(){try{this[a]=
g,delete this[a]}catch(c){}})},addClass:function(a){var c,h,f,k,b,g,i;if(d.isFunction(a))return this.each(function(c){d(this).addClass(a.call(this,c,this.className))});if(a&&"string"===typeof a){c=a.split(aa);for(h=0,f=this.length;h<f;h++)if(k=this[h],1===k.nodeType)if(!k.className&&1===c.length)k.className=a;else{b=" "+k.className+" ";for(g=0,i=c.length;g<i;g++)~b.indexOf(" "+c[g]+" ")||(b+=c[g]+" ");k.className=d.trim(b)}}return this},removeClass:function(a){var c,h,f,k,b,i,e;if(d.isFunction(a))return this.each(function(c){d(this).removeClass(a.call(this,
c,this.className))});if(a&&"string"===typeof a||a===g){c=(a||"").split(aa);for(h=0,f=this.length;h<f;h++)if(k=this[h],1===k.nodeType&&k.className)if(a){b=(" "+k.className+" ").replace(ua," ");for(i=0,e=c.length;i<e;i++)b=b.replace(" "+c[i]+" "," ");k.className=d.trim(b)}else k.className=""}return this},toggleClass:function(a,c){var h=typeof a,f="boolean"===typeof c;return d.isFunction(a)?this.each(function(h){d(this).toggleClass(a.call(this,h,this.className,c),c)}):this.each(function(){if("string"===
h)for(var k,b=0,g=d(this),i=c,e=a.split(aa);k=e[b++];)i=f?i:!g.hasClass(k),g[i?"addClass":"removeClass"](k);else if("undefined"===h||"boolean"===h)this.className&&d._data(this,"__className__",this.className),this.className=this.className||!1===a?"":d._data(this,"__className__")||""})},hasClass:function(a){for(var a=" "+a+" ",c=0,d=this.length;c<d;c++)if(1===this[c].nodeType&&-1<(" "+this[c].className+" ").replace(ua," ").indexOf(a))return!0;return!1},val:function(a){var c,h,f,k=this[0];if(arguments.length)return f=
d.isFunction(a),this.each(function(h){var k=d(this);if(1===this.nodeType&&(h=f?a.call(this,h,k.val()):a,null==h?h="":"number"===typeof h?h+="":d.isArray(h)&&(h=d.map(h,function(a){return null==a?"":a+""})),c=d.valHooks[this.nodeName.toLowerCase()]||d.valHooks[this.type],!c||!("set"in c)||c.set(this,h,"value")===g))this.value=h});if(k){if((c=d.valHooks[k.nodeName.toLowerCase()]||d.valHooks[k.type])&&"get"in c&&(h=c.get(k,"value"))!==g)return h;h=k.value;return"string"===typeof h?h.replace(ab,""):null==
h?"":h}}});d.extend({valHooks:{option:{get:function(a){var c=a.attributes.value;return!c||c.specified?a.value:a.text}},select:{get:function(a){var c,h,f=a.selectedIndex,k=[],b=a.options,g="select-one"===a.type;if(0>f)return null;a=g?f:0;for(h=g?f+1:b.length;a<h;a++)if(c=b[a],c.selected&&(d.support.optDisabled?!c.disabled:null===c.getAttribute("disabled"))&&(!c.parentNode.disabled||!d.nodeName(c.parentNode,"optgroup"))){c=d(c).val();if(g)return c;k.push(c)}return g&&!k.length&&b.length?d(b[f]).val():
k},set:function(a,c){var h=d.makeArray(c);d(a).find("option").each(function(){this.selected=0<=d.inArray(d(this).val(),h)});if(!h.length)a.selectedIndex=-1;return h}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,h,f){var b,i,e=a.nodeType;if(a&&!(3===e||8===e||2===e)){if(f&&c in d.attrFn)return d(a)[c](h);if("undefined"===typeof a.getAttribute)return d.prop(a,c,h);if(f=1!==e||!d.isXMLDoc(a))c=c.toLowerCase(),i=d.attrHooks[c]||(va.test(c)?xa:P);if(h!==
g)if(null===h)d.removeAttr(a,c);else{if(i&&"set"in i&&f&&(b=i.set(a,h,c))!==g)return b;a.setAttribute(c,""+h);return h}else{if(i&&"get"in i&&f&&null!==(b=i.get(a,c)))return b;b=a.getAttribute(c);return null===b?g:b}}},removeAttr:function(a,c){var h,f,b,g,i=0;if(c&&1===a.nodeType){f=c.toLowerCase().split(aa);for(g=f.length;i<g;i++)if(b=f[i])h=d.propFix[b]||b,d.attr(a,b,""),a.removeAttribute(wa?b:h),va.test(b)&&h in a&&(a[h]=!1)}},attrHooks:{type:{set:function(a,c){if(bb.test(a.nodeName)&&a.parentNode)d.error("type property can't be changed");
else if(!d.support.radioValue&&"radio"===c&&d.nodeName(a,"input")){var h=a.value;a.setAttribute("type",c);if(h)a.value=h;return c}}},value:{get:function(a,c){return P&&d.nodeName(a,"button")?P.get(a,c):c in a?a.value:null},set:function(a,c,h){if(P&&d.nodeName(a,"button"))return P.set(a,c,h);a.value=c}}},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,c,h){var f,b,i=a.nodeType;if(a&&!(3===i||8===i||2===i)){if(1!==i||!d.isXMLDoc(a))c=d.propFix[c]||c,b=d.propHooks[c];return h!==g?b&&"set"in b&&(f=b.set(a,h,c))!==g?f:a[c]=h:b&&"get"in b&&null!==(f=b.get(a,c))?f:a[c]}},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):cb.test(a.nodeName)||db.test(a.nodeName)&&a.href?0:g}}}});d.attrHooks.tabindex=d.propHooks.tabIndex;
xa={get:function(a,c){var h,f=d.prop(a,c);return!0===f||"boolean"!==typeof f&&(h=a.getAttributeNode(c))&&!1!==h.nodeValue?c.toLowerCase():g},set:function(a,c,h){!1===c?d.removeAttr(a,h):(c=d.propFix[h]||h,c in a&&(a[c]=!0),a.setAttribute(h,h.toLowerCase()));return h}};if(!wa)ya={name:!0,id:!0},P=d.valHooks.button={get:function(a,c){var d;return(d=a.getAttributeNode(c))&&(ya[c]?""!==d.nodeValue:d.specified)?d.nodeValue:g},set:function(a,c,d){var f=a.getAttributeNode(d);f||(f=p.createAttribute(d),a.setAttributeNode(f));
return f.nodeValue=c+""}},d.attrHooks.tabindex.set=P.set,d.each(["width","height"],function(a,c){d.attrHooks[c]=d.extend(d.attrHooks[c],{set:function(a,d){if(""===d)return a.setAttribute(c,"auto"),d}})}),d.attrHooks.contenteditable={get:P.get,set:function(a,c,d){""===c&&(c="false");P.set(a,c,d)}};d.support.hrefNormalized||d.each(["href","src","width","height"],function(a,c){d.attrHooks[c]=d.extend(d.attrHooks[c],{get:function(a){a=a.getAttribute(c,2);return null===a?g:a}})});if(!d.support.style)d.attrHooks.style=
{get:function(a){return a.style.cssText.toLowerCase()||g},set:function(a,c){return a.style.cssText=""+c}};if(!d.support.optSelected)d.propHooks.selected=d.extend(d.propHooks.selected,{get:function(){return null}});if(!d.support.enctype)d.propFix.enctype="encoding";d.support.checkOn||d.each(["radio","checkbox"],function(){d.valHooks[this]={get:function(a){return null===a.getAttribute("value")?"on":a.value}}});d.each(["radio","checkbox"],function(){d.valHooks[this]=d.extend(d.valHooks[this],{set:function(a,
c){if(d.isArray(c))return a.checked=0<=d.inArray(d(a).val(),c)}})});var ja=/^(?:textarea|input|select)$/i,za=/^([^\.]*)?(?:\.(.+))?$/,eb=/\bhover(\.\S+)?\b/,fb=/^key/,gb=/^(?:mouse|contextmenu)|click/,Aa=/^(?:focusinfocus|focusoutblur)$/,hb=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,ib=function(a){if(a=hb.exec(a))a[1]=(a[1]||"").toLowerCase(),a[3]=a[3]&&RegExp("(?:^|\\s)"+a[3]+"(?:\\s|$)");return a},Ba=function(a){return d.event.special.hover?a:a.replace(eb,"mouseenter$1 mouseleave$1")};d.event={add:function(a,
c,h,f,b){var i,e,j,n,l,m,o,r,p;if(!(3===a.nodeType||8===a.nodeType||!c||!h||!(i=d._data(a)))){if(h.handler)o=h,h=o.handler;if(!h.guid)h.guid=d.guid++;j=i.events;if(!j)i.events=j={};e=i.handle;if(!e)i.handle=e=function(a){return"undefined"!==typeof d&&(!a||d.event.triggered!==a.type)?d.event.dispatch.apply(e.elem,arguments):g},e.elem=a;c=d.trim(Ba(c)).split(" ");for(i=0;i<c.length;i++){n=za.exec(c[i])||[];l=n[1];m=(n[2]||"").split(".").sort();p=d.event.special[l]||{};l=(b?p.delegateType:p.bindType)||
l;p=d.event.special[l]||{};n=d.extend({type:l,origType:n[1],data:f,handler:h,guid:h.guid,selector:b,quick:ib(b),namespace:m.join(".")},o);r=j[l];if(!r&&(r=j[l]=[],r.delegateCount=0,!p.setup||!1===p.setup.call(a,f,m,e)))a.addEventListener?a.addEventListener(l,e,!1):a.attachEvent&&a.attachEvent("on"+l,e);if(p.add&&(p.add.call(a,n),!n.handler.guid))n.handler.guid=h.guid;b?r.splice(r.delegateCount++,0,n):r.push(n);d.event.global[l]=!0}a=null}},global:{},remove:function(a,c,h,f,b){var g=d.hasData(a)&&
d._data(a),i,e,j,n,l,m,o,r,p,q;if(g&&(o=g.events)){c=d.trim(Ba(c||"")).split(" ");for(i=0;i<c.length;i++)if(e=za.exec(c[i])||[],j=n=e[1],e=e[2],j){r=d.event.special[j]||{};j=(f?r.delegateType:r.bindType)||j;p=o[j]||[];l=p.length;e=e?RegExp("(^|\\.)"+e.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(m=0;m<p.length;m++)if(q=p[m],(b||n===q.origType)&&(!h||h.guid===q.guid)&&(!e||e.test(q.namespace))&&(!f||f===q.selector||"**"===f&&q.selector))p.splice(m--,1),q.selector&&p.delegateCount--,
r.remove&&r.remove.call(a,q);0===p.length&&l!==p.length&&((!r.teardown||!1===r.teardown.call(a,e))&&d.removeEvent(a,j,g.handle),delete o[j])}else for(j in o)d.event.remove(a,j+c[i],h,f,!0);if(d.isEmptyObject(o)){if(c=g.handle)c.elem=null;d.removeData(a,["events","handle"],!0)}}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(a,c,h,f){if(!h||!(3===h.nodeType||8===h.nodeType)){var k=a.type||a,i=[],e,j,n,l,m;if(!Aa.test(k+d.event.triggered)&&(0<=k.indexOf("!")&&(k=k.slice(0,-1),e=
!0),0<=k.indexOf(".")&&(i=k.split("."),k=i.shift(),i.sort()),h&&!d.event.customEvent[k]||d.event.global[k]))if(a="object"===typeof a?a[d.expando]?a:new d.Event(k,a):new d.Event(k),a.type=k,a.isTrigger=!0,a.exclusive=e,a.namespace=i.join("."),a.namespace_re=a.namespace?RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,e=0>k.indexOf(":")?"on"+k:"",h){a.result=g;if(!a.target)a.target=h;c=null!=c?d.makeArray(c):[];c.unshift(a);n=d.event.special[k]||{};if(!(n.trigger&&!1===n.trigger.apply(h,c))){m=
[[h,n.bindType||k]];if(!f&&!n.noBubble&&!d.isWindow(h)){l=n.delegateType||k;i=Aa.test(l+k)?h:h.parentNode;for(j=null;i;i=i.parentNode)m.push([i,l]),j=i;j&&j===h.ownerDocument&&m.push([j.defaultView||j.parentWindow||b,l])}for(j=0;j<m.length&&!a.isPropagationStopped();j++)i=m[j][0],a.type=m[j][1],(l=(d._data(i,"events")||{})[a.type]&&d._data(i,"handle"))&&l.apply(i,c),(l=e&&i[e])&&d.acceptData(i)&&!1===l.apply(i,c)&&a.preventDefault();a.type=k;if(!f&&!a.isDefaultPrevented()&&(!n._default||!1===n._default.apply(h.ownerDocument,
c))&&!("click"===k&&d.nodeName(h,"a"))&&d.acceptData(h))if(e&&h[k]&&("focus"!==k&&"blur"!==k||0!==a.target.offsetWidth)&&!d.isWindow(h))(j=h[e])&&(h[e]=null),d.event.triggered=k,h[k](),d.event.triggered=g,j&&(h[e]=j);return a.result}}else for(j in h=d.cache,h)h[j].events&&h[j].events[k]&&d.event.trigger(a,c,h[j].handle.elem,!0)}},dispatch:function(a){var a=d.event.fix(a||b.event),c=(d._data(this,"events")||{})[a.type]||[],h=c.delegateCount,f=[].slice.call(arguments,0),k=!a.exclusive&&!a.namespace,
i=[],e,j,n,l,m,o,r;f[0]=a;a.delegateTarget=this;if(h&&!a.target.disabled&&!(a.button&&"click"===a.type)){n=d(this);n.context=this.ownerDocument||this;for(j=a.target;j!=this;j=j.parentNode||this){m={};o=[];n[0]=j;for(e=0;e<h;e++){l=c[e];r=l.selector;if(m[r]===g){var p=m,q=r,t;if(l.quick){t=l.quick;var A=j.attributes||{};t=(!t[1]||j.nodeName.toLowerCase()===t[1])&&(!t[2]||(A.id||{}).value===t[2])&&(!t[3]||t[3].test((A["class"]||{}).value))}else t=n.is(r);p[q]=t}m[r]&&o.push(l)}o.length&&i.push({elem:j,
matches:o})}}c.length>h&&i.push({elem:this,matches:c.slice(h)});for(e=0;e<i.length&&!a.isPropagationStopped();e++){h=i[e];a.currentTarget=h.elem;for(c=0;c<h.matches.length&&!a.isImmediatePropagationStopped();c++)if(l=h.matches[c],k||!a.namespace&&!l.namespace||a.namespace_re&&a.namespace_re.test(l.namespace))if(a.data=l.data,a.handleObj=l,l=((d.event.special[l.origType]||{}).handle||l.handler).apply(h.elem,f),l!==g)a.result=l,!1===l&&(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,c){if(null==a.which)a.which=null!=c.charCode?c.charCode:c.keyCode;return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,c){var d,f,b=c.button,i=c.fromElement;if(null==a.pageX&&null!=c.clientX)d=a.target.ownerDocument||p,f=d.documentElement,d=d.body,a.pageX=c.clientX+(f&&f.scrollLeft||d&&d.scrollLeft||0)-(f&&f.clientLeft||
d&&d.clientLeft||0),a.pageY=c.clientY+(f&&f.scrollTop||d&&d.scrollTop||0)-(f&&f.clientTop||d&&d.clientTop||0);if(!a.relatedTarget&&i)a.relatedTarget=i===a.target?c.toElement:i;if(!a.which&&b!==g)a.which=b&1?1:b&2?3:b&4?2:0;return a}},fix:function(a){if(a[d.expando])return a;var c,h,f=a,b=d.event.fixHooks[a.type]||{},i=b.props?this.props.concat(b.props):this.props,a=d.Event(f);for(c=i.length;c;)h=i[--c],a[h]=f[h];if(!a.target)a.target=f.srcElement||p;if(3===a.target.nodeType)a.target=a.target.parentNode;
if(a.metaKey===g)a.metaKey=a.ctrlKey;return b.filter?b.filter(a,f):a},special:{ready:{setup:d.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,c,h){if(d.isWindow(this))this.onbeforeunload=h},teardown:function(a,c){if(this.onbeforeunload===c)this.onbeforeunload=null}}},simulate:function(a,c,h,f){a=d.extend(new d.Event,h,{type:a,isSimulated:!0,originalEvent:{}});f?d.event.trigger(a,null,c):d.event.dispatch.call(c,a);a.isDefaultPrevented()&&
h.preventDefault()}};d.event.handle=d.event.dispatch;d.removeEvent=p.removeEventListener?function(a,c,d){a.removeEventListener&&a.removeEventListener(c,d,!1)}:function(a,c,d){a.detachEvent&&a.detachEvent("on"+c,d)};d.Event=function(a,c){if(!(this instanceof d.Event))return new d.Event(a,c);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||!1===a.returnValue||a.getPreventDefault&&a.getPreventDefault()?n:i):this.type=a;c&&d.extend(this,c);this.timeStamp=a&&
a.timeStamp||d.now();this[d.expando]=!0};d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=n;var a=this.originalEvent;if(a)a.preventDefault?a.preventDefault():a.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=n;var a=this.originalEvent;if(a)a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=n;this.stopPropagation()},isDefaultPrevented:i,isPropagationStopped:i,isImmediatePropagationStopped:i};
d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,c){d.event.special[a]={delegateType:c,bindType:c,handle:function(a){var f=a.relatedTarget,b=a.handleObj,g;if(!f||f!==this&&!d.contains(this,f))a.type=b.origType,g=b.handler.apply(this,arguments),a.type=c;return g}}});if(!d.support.submitBubbles)d.event.special.submit={setup:function(){if(d.nodeName(this,"form"))return!1;d.event.add(this,"click._submit keypress._submit",function(a){a=a.target;if((a=d.nodeName(a,"input")||d.nodeName(a,
"button")?a.form:g)&&!a._submit_attached)d.event.add(a,"submit._submit",function(a){this.parentNode&&!a.isTrigger&&d.event.simulate("submit",this.parentNode,a,!0)}),a._submit_attached=!0})},teardown:function(){if(d.nodeName(this,"form"))return!1;d.event.remove(this,"._submit")}};if(!d.support.changeBubbles)d.event.special.change={setup:function(){if(ja.test(this.nodeName)){if("checkbox"===this.type||"radio"===this.type)d.event.add(this,"propertychange._change",function(a){if("checked"===a.originalEvent.propertyName)this._just_changed=
!0}),d.event.add(this,"click._change",function(a){if(this._just_changed&&!a.isTrigger)this._just_changed=!1,d.event.simulate("change",this,a,!0)});return!1}d.event.add(this,"beforeactivate._change",function(a){a=a.target;if(ja.test(a.nodeName)&&!a._change_attached)d.event.add(a,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&d.event.simulate("change",this.parentNode,a,!0)}),a._change_attached=!0})},handle:function(a){var c=a.target;if(this!==c||a.isSimulated||a.isTrigger||
"radio"!==c.type&&"checkbox"!==c.type)return a.handleObj.handler.apply(this,arguments)},teardown:function(){d.event.remove(this,"._change");return ja.test(this.nodeName)}};d.support.focusinBubbles||d.each({focus:"focusin",blur:"focusout"},function(a,c){var h=0,f=function(a){d.event.simulate(c,a.target,d.event.fix(a),!0)};d.event.special[c]={setup:function(){0===h++&&p.addEventListener(a,f,!0)},teardown:function(){0===--h&&p.removeEventListener(a,f,!0)}}});d.fn.extend({on:function(a,c,h,f,b){var e,
j;if("object"===typeof a){"string"!==typeof c&&(h=c,c=g);for(j in a)this.on(j,c,h,a[j],b);return this}null==h&&null==f?(f=c,h=c=g):null==f&&("string"===typeof c?(f=h,h=g):(f=h,h=c,c=g));if(!1===f)f=i;else if(!f)return this;if(1===b)e=f,f=function(a){d().off(a);return e.apply(this,arguments)},f.guid=e.guid||(e.guid=d.guid++);return this.each(function(){d.event.add(this,a,f,h,c)})},one:function(a,c,d,f){return this.on.call(this,a,c,d,f,1)},off:function(a,c,h){if(a&&a.preventDefault&&a.handleObj){var f=
a.handleObj;d(a.delegateTarget).off(f.namespace?f.type+"."+f.namespace:f.type,f.selector,f.handler);return this}if("object"===typeof a){for(f in a)this.off(f,c,a[f]);return this}if(!1===c||"function"===typeof c)h=c,c=g;!1===h&&(h=i);return this.each(function(){d.event.remove(this,a,h,c)})},bind:function(a,c,d){return this.on(a,null,c,d)},unbind:function(a,c){return this.off(a,null,c)},live:function(a,c,h){d(this.context).on(a,this.selector,c,h);return this},die:function(a,c){d(this.context).off(a,
this.selector||"**",c);return this},delegate:function(a,c,d,f){return this.on(c,a,d,f)},undelegate:function(a,c,d){return 1==arguments.length?this.off(a,"**"):this.off(c,a,d)},trigger:function(a,c){return this.each(function(){d.event.trigger(a,c,this)})},triggerHandler:function(a,c){if(this[0])return d.event.trigger(a,c,this[0],!0)},toggle:function(a){var c=arguments,h=a.guid||d.guid++,f=0,b=function(h){var b=(d._data(this,"lastToggle"+a.guid)||0)%f;d._data(this,"lastToggle"+a.guid,b+1);h.preventDefault();
return c[b].apply(this,arguments)||!1};for(b.guid=h;f<c.length;)c[f++].guid=h;return this.click(b)},hover:function(a,c){return this.mouseenter(a).mouseleave(c||a)}});d.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,c){d.fn[c]=function(a,d){null==d&&(d=a,a=null);return 0<arguments.length?this.on(c,null,a,d):this.trigger(c)};
d.attrFn&&(d.attrFn[c]=!0);if(fb.test(c))d.event.fixHooks[c]=d.event.keyHooks;if(gb.test(c))d.event.fixHooks[c]=d.event.mouseHooks});(function(){function a(a,c,d,h,b,k){for(var b=0,g=h.length;b<g;b++){var i=h[b];if(i){for(var e=!1,i=i[a];i;){if(i[f]===d){e=h[i.sizset];break}if(1===i.nodeType&&!k)i[f]=d,i.sizset=b;if(i.nodeName.toLowerCase()===c){e=i;break}i=i[a]}h[b]=e}}}function c(a,c,d,h,b,k){for(var b=0,i=h.length;b<i;b++){var g=h[b];if(g){for(var e=!1,g=g[a];g;){if(g[f]===d){e=h[g.sizset];break}if(1===
g.nodeType){if(!k)g[f]=d,g.sizset=b;if("string"!==typeof c){if(g===c){e=!0;break}}else if(0<o.filter(c,[g]).length){e=g;break}}g=g[a]}h[b]=e}}}var h=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,f="sizcache"+(Math.random()+"").replace(".",""),b=0,i=Object.prototype.toString,e=!1,j=!0,l=/\\/g,n=/\r\n/g,m=/\W/;[0,0].sort(function(){j=!1;return 0});var o=function(a,c,d,f){var d=d||[],b=c=c||p;if(1!==c.nodeType&&9!==
c.nodeType)return[];if(!a||"string"!==typeof a)return d;var k,g,e,j,l,n=!0,m=o.isXML(c),u=[],r=a;do if(h.exec(""),k=h.exec(r))if(r=k[3],u.push(k[1]),k[2]){j=k[3];break}while(k);if(1<u.length&&t.exec(a))if(2===u.length&&q.relative[u[0]])g=J(u[0]+u[1],c,f);else for(g=q.relative[u[0]]?[c]:o(u.shift(),c);u.length;)a=u.shift(),q.relative[a]&&(a+=u.shift()),g=J(a,g,f);else if(!f&&1<u.length&&9===c.nodeType&&!m&&q.match.ID.test(u[0])&&!q.match.ID.test(u[u.length-1])&&(k=o.find(u.shift(),c,m),c=k.expr?o.filter(k.expr,
k.set)[0]:k.set[0]),c){k=f?{expr:u.pop(),set:B(f)}:o.find(u.pop(),1===u.length&&("~"===u[0]||"+"===u[0])&&c.parentNode?c.parentNode:c,m);g=k.expr?o.filter(k.expr,k.set):k.set;for(0<u.length?e=B(g):n=!1;u.length;)k=l=u.pop(),q.relative[l]?k=u.pop():l="",null==k&&(k=c),q.relative[l](e,k,m)}else e=[];e||(e=g);e||o.error(l||a);if("[object Array]"===i.call(e))if(n)if(c&&1===c.nodeType)for(a=0;null!=e[a];a++)e[a]&&(!0===e[a]||1===e[a].nodeType&&o.contains(c,e[a]))&&d.push(g[a]);else for(a=0;null!=e[a];a++)e[a]&&
1===e[a].nodeType&&d.push(g[a]);else d.push.apply(d,e);else B(e,d);j&&(o(j,b,d,f),o.uniqueSort(d));return d};o.uniqueSort=function(a){if(x&&(e=j,a.sort(x),e))for(var c=1;c<a.length;c++)a[c]===a[c-1]&&a.splice(c--,1);return a};o.matches=function(a,c){return o(a,null,null,c)};o.matchesSelector=function(a,c){return 0<o(c,null,null,[a]).length};o.find=function(a,c,d){var h,f,b,k,g,i;if(!a)return[];for(f=0,b=q.order.length;f<b;f++)if(g=q.order[f],k=q.leftMatch[g].exec(a))if(i=k[1],k.splice(1,1),"\\"!==
i.substr(i.length-1)&&(k[1]=(k[1]||"").replace(l,""),h=q.find[g](k,c,d),null!=h)){a=a.replace(q.match[g],"");break}h||(h="undefined"!==typeof c.getElementsByTagName?c.getElementsByTagName("*"):[]);return{set:h,expr:a}};o.filter=function(a,c,d,h){for(var f,b,k,i,e,j,l,n,w=a,m=[],u=c,r=c&&c[0]&&o.isXML(c[0]);a&&c.length;){for(k in q.filter)if(null!=(f=q.leftMatch[k].exec(a))&&f[2])if(j=q.filter[k],e=f[1],b=!1,f.splice(1,1),"\\"!==e.substr(e.length-1)){u===m&&(m=[]);if(q.preFilter[k])if(f=q.preFilter[k](f,
u,d,m,h,r)){if(!0===f)continue}else b=i=!0;if(f)for(l=0;null!=(e=u[l]);l++)e&&(i=j(e,f,l,u),n=h^i,d&&null!=i?n?b=!0:u[l]=!1:n&&(m.push(e),b=!0));if(i!==g){d||(u=m);a=a.replace(q.match[k],"");if(!b)return[];break}}if(a===w)if(null==b)o.error(a);else break;w=a}return u};o.error=function(a){throw Error("Syntax error, unrecognized expression: "+a);};var r=o.getText=function(a){var c,d;c=a.nodeType;var h="";if(c)if(1===c||9===c){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)h+=r(a)}else{if(3===c||4===c)return a.nodeValue}else for(c=0;d=a[c];c++)8!==d.nodeType&&(h+=r(d));return h},q=o.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,c){var d="string"===typeof c,h=d&&!m.test(c),d=d&&!h;h&&(c=c.toLowerCase());for(var h=0,f=a.length,b;h<f;h++)if(b=a[h]){for(;(b=b.previousSibling)&&1!==b.nodeType;);
a[h]=d||b&&b.nodeName.toLowerCase()===c?b||!1:b===c}d&&o.filter(c,a,!0)},">":function(a,c){var d,h="string"===typeof c,f=0,b=a.length;if(h&&!m.test(c))for(c=c.toLowerCase();f<b;f++){if(d=a[f])d=d.parentNode,a[f]=d.nodeName.toLowerCase()===c?d:!1}else{for(;f<b;f++)(d=a[f])&&(a[f]=h?d.parentNode:d.parentNode===c);h&&o.filter(c,a,!0)}},"":function(d,h,f){var g,i=b++,e=c;"string"===typeof h&&!m.test(h)&&(g=h=h.toLowerCase(),e=a);e("parentNode",h,i,d,g,f)},"~":function(d,h,f){var g,i=b++,e=c;"string"===
typeof h&&!m.test(h)&&(g=h=h.toLowerCase(),e=a);e("previousSibling",h,i,d,g,f)}},find:{ID:function(a,c,d){if("undefined"!==typeof c.getElementById&&!d)return(a=c.getElementById(a[1]))&&a.parentNode?[a]:[]},NAME:function(a,c){if("undefined"!==typeof c.getElementsByName){for(var d=[],h=c.getElementsByName(a[1]),f=0,b=h.length;f<b;f++)h[f].getAttribute("name")===a[1]&&d.push(h[f]);return 0===d.length?null:d}},TAG:function(a,c){if("undefined"!==typeof c.getElementsByTagName)return c.getElementsByTagName(a[1])}},
preFilter:{CLASS:function(a,c,d,h,f,b){a=" "+a[1].replace(l,"")+" ";if(b)return a;for(var b=0,k;null!=(k=c[b]);b++)k&&(f^(k.className&&0<=(" "+k.className+" ").replace(/[\t\n\r]/g," ").indexOf(a))?d||h.push(k):d&&(c[b]=!1));return!1},ID:function(a){return a[1].replace(l,"")},TAG:function(a){return a[1].replace(l,"").toLowerCase()},CHILD:function(a){if("nth"===a[1]){a[2]||o.error(a[0]);a[2]=a[2].replace(/^\+|\s*/g,"");var c=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec("even"===a[2]&&"2n"||"odd"===a[2]&&"2n+1"||
!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=c[1]+(c[2]||1)-0;a[3]=c[3]-0}else a[2]&&o.error(a[0]);a[0]=b++;return a},ATTR:function(a,c,d,h,f,b){c=a[1]=a[1].replace(l,"");!b&&q.attrMap[c]&&(a[1]=q.attrMap[c]);a[4]=(a[4]||a[5]||"").replace(l,"");"~="===a[2]&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(a,c,d,f,b){if("not"===a[1])if(1<(h.exec(a[3])||"").length||/^\w/.test(a[3]))a[3]=o(a[3],null,null,c);else return a=o.filter(a[3],c,d,1^b),d||f.push.apply(f,a),!1;else if(q.match.POS.test(a[0])||q.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,c,d){return!!o(d[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var c=a.getAttribute("type"),d=a.type;return"input"===a.nodeName.toLowerCase()&&
"text"===d&&(c===d||null===c)},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 c=a.nodeName.toLowerCase();return("input"===c||"button"===c)&&"submit"===a.type},image:function(a){return"input"===a.nodeName.toLowerCase()&&
"image"===a.type},reset:function(a){var c=a.nodeName.toLowerCase();return("input"===c||"button"===c)&&"reset"===a.type},button:function(a){var c=a.nodeName.toLowerCase();return"input"===c&&"button"===a.type||"button"===c},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,c){return 0===c},last:function(a,c,d,h){return c===h.length-1},even:function(a,c){return 0===c%2},odd:function(a,c){return 1===
c%2},lt:function(a,c,d){return c<d[3]-0},gt:function(a,c,d){return c>d[3]-0},nth:function(a,c,d){return d[3]-0===c},eq:function(a,c,d){return d[3]-0===c}},filter:{PSEUDO:function(a,c,d,h){var f=c[1],b=q.filters[f];if(b)return b(a,d,c,h);if("contains"===f)return 0<=(a.textContent||a.innerText||r([a])||"").indexOf(c[3]);if("not"===f){c=c[3];d=0;for(h=c.length;d<h;d++)if(c[d]===a)return!1;return!0}o.error(f)},CHILD:function(a,c){var d,h,b,k,g,i;d=c[1];i=a;switch(d){case "only":case "first":for(;i=i.previousSibling;)if(1===
i.nodeType)return!1;if("first"===d)return!0;i=a;case "last":for(;i=i.nextSibling;)if(1===i.nodeType)return!1;return!0;case "nth":d=c[2];h=c[3];if(1===d&&0===h)return!0;b=c[0];if((k=a.parentNode)&&(k[f]!==b||!a.nodeIndex)){g=0;for(i=k.firstChild;i;i=i.nextSibling)if(1===i.nodeType)i.nodeIndex=++g;k[f]=b}i=a.nodeIndex-h;return 0===d?0===i:0===i%d&&0<=i/d}},ID:function(a,c){return 1===a.nodeType&&a.getAttribute("id")===c},TAG:function(a,c){return"*"===c&&1===a.nodeType||!!a.nodeName&&a.nodeName.toLowerCase()===
c},CLASS:function(a,c){return-1<(" "+(a.className||a.getAttribute("class"))+" ").indexOf(c)},ATTR:function(a,c){var d=c[1],d=o.attr?o.attr(a,d):q.attrHandle[d]?q.attrHandle[d](a):null!=a[d]?a[d]:a.getAttribute(d),h=d+"",f=c[2],b=c[4];return null==d?"!="===f:!f&&o.attr?null!=d:"="===f?h===b:"*="===f?0<=h.indexOf(b):"~="===f?0<=(" "+h+" ").indexOf(b):!b?h&&!1!==d:"!="===f?h!==b:"^="===f?0===h.indexOf(b):"$="===f?h.substr(h.length-b.length)===b:"|="===f?h===b||h.substr(0,b.length+1)===b+"-":!1},POS:function(a,
c,d,h){var f=q.setFilters[c[2]];if(f)return f(a,d,c,h)}}},t=q.match.POS,A=function(a,c){return"\\"+(c-0+1)},s;for(s in q.match)q.match[s]=RegExp(q.match[s].source+/(?![^\[]*\])(?![^\(]*\))/.source),q.leftMatch[s]=RegExp(/(^(?:.|\r|\n)*?)/.source+q.match[s].source.replace(/\\(\d+)/g,A));var B=function(a,c){a=Array.prototype.slice.call(a,0);return c?(c.push.apply(c,a),c):a};try{Array.prototype.slice.call(p.documentElement.childNodes,0)}catch(y){B=function(a,c){var d=0,h=c||[];if("[object Array]"===
i.call(a))Array.prototype.push.apply(h,a);else if("number"===typeof a.length)for(var f=a.length;d<f;d++)h.push(a[d]);else for(;a[d];d++)h.push(a[d]);return h}}var x,v;p.documentElement.compareDocumentPosition?x=function(a,c){return a===c?(e=!0,0):!a.compareDocumentPosition||!c.compareDocumentPosition?a.compareDocumentPosition?-1:1:a.compareDocumentPosition(c)&4?-1:1}:(x=function(a,c){if(a===c)return e=!0,0;if(a.sourceIndex&&c.sourceIndex)return a.sourceIndex-c.sourceIndex;var d,h,f=[],b=[];d=a.parentNode;
h=c.parentNode;var k=d;if(d===h)return v(a,c);if(d){if(!h)return 1}else return-1;for(;k;)f.unshift(k),k=k.parentNode;for(k=h;k;)b.unshift(k),k=k.parentNode;d=f.length;h=b.length;for(k=0;k<d&&k<h;k++)if(f[k]!==b[k])return v(f[k],b[k]);return k===d?v(a,b[k],-1):v(f[k],c,1)},v=function(a,c,d){if(a===c)return d;for(a=a.nextSibling;a;){if(a===c)return-1;a=a.nextSibling}return 1});(function(){var a=p.createElement("div"),c="script"+(new Date).getTime(),d=p.documentElement;a.innerHTML="<a name='"+c+"'/>";
d.insertBefore(a,d.firstChild);if(p.getElementById(c))q.find.ID=function(a,c,d){if("undefined"!==typeof c.getElementById&&!d)return(c=c.getElementById(a[1]))?c.id===a[1]||"undefined"!==typeof c.getAttributeNode&&c.getAttributeNode("id").nodeValue===a[1]?[c]:g:[]},q.filter.ID=function(a,c){var d="undefined"!==typeof a.getAttributeNode&&a.getAttributeNode("id");return 1===a.nodeType&&d&&d.nodeValue===c};d.removeChild(a);d=a=null})();(function(){var a=p.createElement("div");a.appendChild(p.createComment(""));
if(0<a.getElementsByTagName("*").length)q.find.TAG=function(a,c){var d=c.getElementsByTagName(a[1]);if("*"===a[1]){for(var h=[],f=0;d[f];f++)1===d[f].nodeType&&h.push(d[f]);d=h}return d};a.innerHTML="<a href='#'></a>";if(a.firstChild&&"undefined"!==typeof a.firstChild.getAttribute&&"#"!==a.firstChild.getAttribute("href"))q.attrHandle.href=function(a){return a.getAttribute("href",2)};a=null})();p.querySelectorAll&&function(){var a=o,c=p.createElement("div");c.innerHTML="<p class='TEST'></p>";if(!(c.querySelectorAll&&
0===c.querySelectorAll(".TEST").length)){o=function(c,d,h,f){d=d||p;if(!f&&!o.isXML(d)){var b=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(c);if(b&&(1===d.nodeType||9===d.nodeType)){if(b[1])return B(d.getElementsByTagName(c),h);if(b[2]&&q.find.CLASS&&d.getElementsByClassName)return B(d.getElementsByClassName(b[2]),h)}if(9===d.nodeType){if("body"===c&&d.body)return B([d.body],h);if(b&&b[3]){var k=d.getElementById(b[3]);if(k&&k.parentNode){if(k.id===b[3])return B([k],h)}else return B([],h)}try{return B(d.querySelectorAll(c),
h)}catch(i){}}else if(1===d.nodeType&&"object"!==d.nodeName.toLowerCase()){var b=d,g=(k=d.getAttribute("id"))||"__sizzle__",e=d.parentNode,j=/^\s*[+~]/.test(c);k?g=g.replace(/'/g,"\\$&"):d.setAttribute("id",g);if(j&&e)d=d.parentNode;try{if(!j||e)return B(d.querySelectorAll("[id='"+g+"'] "+c),h)}catch(l){}finally{k||b.removeAttribute("id")}}}return a(c,d,h,f)};for(var d in a)o[d]=a[d];c=null}}();(function(){var a=p.documentElement,c=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||
a.msMatchesSelector;if(c){var d=!c.call(p.createElement("div"),"div"),h=!1;try{c.call(p.documentElement,"[test!='']:sizzle")}catch(f){h=!0}o.matchesSelector=function(a,f){f=f.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!o.isXML(a))try{if(h||!q.match.PSEUDO.test(f)&&!/!=/.test(f)){var b=c.call(a,f);if(b||!d||a.document&&11!==a.document.nodeType)return b}}catch(k){}return 0<o(f,null,null,[a]).length}}})();(function(){var a=p.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))q.order.splice(1,0,"CLASS"),q.find.CLASS=function(a,c,d){if("undefined"!==typeof c.getElementsByClassName&&!d)return c.getElementsByClassName(a[1])},a=null})();o.contains=p.documentElement.contains?function(a,c){return a!==c&&(a.contains?a.contains(c):!0)}:p.documentElement.compareDocumentPosition?function(a,c){return!!(a.compareDocumentPosition(c)&16)}:function(){return!1};
o.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?"HTML"!==a.nodeName:!1};var J=function(a,c,d){for(var h,f=[],b="",c=c.nodeType?[c]:c;h=q.match.PSEUDO.exec(a);)b+=h[0],a=a.replace(q.match.PSEUDO,"");a=q.relative[a]?a+"*":a;h=0;for(var k=c.length;h<k;h++)o(a,c[h],f,d);return o.filter(b,f)};o.attr=d.attr;o.selectors.attrMap={};d.find=o;d.expr=o.selectors;d.expr[":"]=d.expr.filters;d.unique=o.uniqueSort;d.text=o.getText;d.isXMLDoc=o.isXML;d.contains=o.contains})();var jb=/Until$/,
kb=/^(?:parents|prevUntil|prevAll)/,lb=/,/,Ua=/^.[^:#\[\.,]*$/,mb=Array.prototype.slice,Ca=d.expr.match.POS,nb={children:!0,contents:!0,next:!0,prev:!0};d.fn.extend({find:function(a){var c=this,h,f;if("string"!==typeof a)return d(a).filter(function(){for(h=0,f=c.length;h<f;h++)if(d.contains(c[h],this))return!0});var b=this.pushStack("","find",a),g,i,e;for(h=0,f=this.length;h<f;h++)if(g=b.length,d.find(a,this[h],b),0<h)for(i=g;i<b.length;i++)for(e=0;e<g;e++)if(b[e]===b[i]){b.splice(i--,1);break}return b},
has:function(a){var c=d(a);return this.filter(function(){for(var a=0,f=c.length;a<f;a++)if(d.contains(this,c[a]))return!0})},not:function(a){return this.pushStack(o(this,a,!1),"not",a)},filter:function(a){return this.pushStack(o(this,a,!0),"filter",a)},is:function(a){return!!a&&("string"===typeof a?Ca.test(a)?0<=d(a,this.context).index(this[0]):0<d.filter(a,this).length:0<this.filter(a).length)},closest:function(a,c){var h=[],f,b,i=this[0];if(d.isArray(a)){for(b=1;i&&i.ownerDocument&&i!==c;){for(f=
0;f<a.length;f++)d(i).is(a[f])&&h.push({selector:a[f],elem:i,level:b});i=i.parentNode;b++}return h}var g=Ca.test(a)||"string"!==typeof a?d(a,c||this.context):0;for(f=0,b=this.length;f<b;f++)for(i=this[f];i;)if(g?-1<g.index(i):d.find.matchesSelector(i,a)){h.push(i);break}else if(i=i.parentNode,!i||!i.ownerDocument||i===c||11===i.nodeType)break;h=1<h.length?d.unique(h):h;return this.pushStack(h,"closest",a)},index:function(a){return!a?this[0]&&this[0].parentNode?this.prevAll().length:-1:"string"===
typeof a?d.inArray(this[0],d(a)):d.inArray(a.jquery?a[0]:a,this)},add:function(a,c){var h="string"===typeof a?d(a,c):d.makeArray(a&&a.nodeType?[a]:a),f=d.merge(this.get(),h);return this.pushStack(!h[0]||!h[0].parentNode||11===h[0].parentNode.nodeType||!f[0]||!f[0].parentNode||11===f[0].parentNode.nodeType?f:d.unique(f))},andSelf:function(){return this.add(this.prevObject)}});d.each({parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},parents:function(a){return d.dir(a,"parentNode")},
parentsUntil:function(a,c,h){return d.dir(a,"parentNode",h)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,c,h){return d.dir(a,"nextSibling",h)},prevUntil:function(a,c,h){return d.dir(a,"previousSibling",h)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},
contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,c){d.fn[a]=function(h,f){var b=d.map(this,c,h);jb.test(a)||(f=h);f&&"string"===typeof f&&(b=d.filter(f,b));b=1<this.length&&!nb[a]?d.unique(b):b;if((1<this.length||lb.test(f))&&kb.test(a))b=b.reverse();return this.pushStack(b,a,mb.call(arguments).join(","))}});d.extend({filter:function(a,c,h){h&&(a=":not("+a+")");return 1===c.length?d.find.matchesSelector(c[0],a)?[c[0]]:
[]:d.find.matches(a,c)},dir:function(a,c,h){for(var f=[],a=a[c];a&&9!==a.nodeType&&(h===g||1!==a.nodeType||!d(a).is(h));)1===a.nodeType&&f.push(a),a=a[c];return f},nth:function(a,c,d){for(var c=c||1,f=0;a&&!(1===a.nodeType&&++f===c);a=a[d]);return a},sibling:function(a,c){for(var d=[];a;a=a.nextSibling)1===a.nodeType&&a!==c&&d.push(a);return d}});var na="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
ob=/ jQuery\d+="(?:\d+|null)"/g,ka=/^\s+/,Da=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ea=/<([\w:]+)/,pb=/<tbody/i,qb=/<|&#?\w+;/,rb=/<(?:script|style)/i,sb=/<(?:script|object|embed|option|style)/i,Fa=RegExp("<(?:"+na+")","i"),Ga=/checked\s*(?:[^=]|=\s*.checked.)/i,tb=/\/(java|ecma)script/i,Va=/^\s*<!(?:\[CDATA\[|\-\-)/,F={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,"",""]},Ha=r(p);F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!d.support.htmlSerialize)F._default=[1,"div<div>","</div>"];d.fn.extend({text:function(a){return d.isFunction(a)?this.each(function(c){var h=d(this);h.text(a.call(this,c,h.text()))}):"object"!==typeof a&&a!==g?this.empty().append((this[0]&&
this[0].ownerDocument||p).createTextNode(a)):d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(c){d(this).wrapAll(a.call(this,c))});if(this[0]){var c=d(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&c.insertBefore(this[0]);c.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 d.isFunction(a)?this.each(function(c){d(this).wrapInner(a.call(this,c))}):this.each(function(){var c=
d(this),h=c.contents();h.length?h.wrapAll(a):c.append(a)})},wrap:function(a){var c=d.isFunction(a);return this.each(function(h){d(this).wrapAll(c?a.call(this,h):a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(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=d.clean(arguments);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,
d.clean(arguments));return a}},remove:function(a,c){for(var h=0,f;null!=(f=this[h]);h++)if(!a||d.filter(a,[f]).length)!c&&1===f.nodeType&&(d.cleanData(f.getElementsByTagName("*")),d.cleanData([f])),f.parentNode&&f.parentNode.removeChild(f);return this},empty:function(){for(var a=0,c;null!=(c=this[a]);a++)for(1===c.nodeType&&d.cleanData(c.getElementsByTagName("*"));c.firstChild;)c.removeChild(c.firstChild);return this},clone:function(a,c){a=null==a?!1:a;c=null==c?a:c;return this.map(function(){return d.clone(this,
a,c)})},html:function(a){if(a===g)return this[0]&&1===this[0].nodeType?this[0].innerHTML.replace(ob,""):null;if("string"===typeof a&&!rb.test(a)&&(d.support.leadingWhitespace||!ka.test(a))&&!F[(Ea.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Da,"<$1></$2>");try{for(var c=0,h=this.length;c<h;c++)if(1===this[c].nodeType)d.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a}catch(f){this.empty().append(a)}}else d.isFunction(a)?this.each(function(c){var h=d(this);h.html(a.call(this,c,
h.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(d.isFunction(a))return this.each(function(c){var h=d(this),f=h.html();h.replaceWith(a.call(this,c,f))});"string"!==typeof a&&(a=d(a).detach());return this.each(function(){var c=this.nextSibling,h=this.parentNode;d(this).remove();c?d(c).before(a):d(h).append(a)})}return this.length?this.pushStack(d(d.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,
c,h){var f,b,i,e=a[0],j=[];if(!d.support.checkClone&&3===arguments.length&&"string"===typeof e&&Ga.test(e))return this.each(function(){d(this).domManip(a,c,h,!0)});if(d.isFunction(e))return this.each(function(f){var b=d(this);a[0]=e.call(this,f,c?b.html():g);b.domManip(a,c,h)});if(this[0]){f=e&&e.parentNode;f=d.support.parentNode&&f&&11===f.nodeType&&f.childNodes.length===this.length?{fragment:f}:d.buildFragment(a,this,j);i=f.fragment;if(b=1===i.childNodes.length?i=i.firstChild:i.firstChild){c=c&&
d.nodeName(b,"tr");b=0;for(var l=this.length,n=l-1;b<l;b++)h.call(c?d.nodeName(this[b],"table")?this[b].getElementsByTagName("tbody")[0]||this[b].appendChild(this[b].ownerDocument.createElement("tbody")):this[b]:this[b],f.cacheable||1<l&&b<n?d.clone(i,!0,!0):i)}j.length&&d.each(j,I)}return this}});d.buildFragment=function(a,c,h){var f,b,i,g,e=a[0];c&&c[0]&&(g=c[0].ownerDocument||c[0]);g.createDocumentFragment||(g=p);if(1===a.length&&"string"===typeof e&&512>e.length&&g===p&&"<"===e.charAt(0)&&!sb.test(e)&&
(d.support.checkClone||!Ga.test(e))&&(d.support.html5Clone||!Fa.test(e)))b=!0,(i=d.fragments[e])&&1!==i&&(f=i);f||(f=g.createDocumentFragment(),d.clean(a,g,f,h));b&&(d.fragments[e]=i?f:1);return{fragment:f,cacheable:b}};d.fragments={};d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,c){d.fn[a]=function(h){var f=[],h=d(h),b=1===this.length&&this[0].parentNode;if(b&&11===b.nodeType&&1===b.childNodes.length&&1===h.length)return h[c](this[0]),
this;for(var b=0,i=h.length;b<i;b++){var g=(0<b?this.clone(!0):this).get();d(h[b])[c](g);f=f.concat(g)}return this.pushStack(f,a,h.selector)}});d.extend({clone:function(a,c,h){var f,b,i;d.support.html5Clone||!Fa.test("<"+a.nodeName)?f=a.cloneNode(!0):(f=p.createElement("div"),Ha.appendChild(f),f.innerHTML=a.outerHTML,f=f.firstChild);var g=f;if((!d.support.noCloneEvent||!d.support.noCloneChecked)&&(1===a.nodeType||11===a.nodeType)&&!d.isXMLDoc(a)){s(a,g);f=A(a);b=A(g);for(i=0;f[i];++i)b[i]&&s(f[i],
b[i])}if(c&&(t(a,g),h)){f=A(a);b=A(g);for(i=0;f[i];++i)t(f[i],b[i])}return g},clean:function(a,c,h,f){c=c||p;"undefined"===typeof c.createElement&&(c=c.ownerDocument||c[0]&&c[0].ownerDocument||p);for(var b=[],i,g=0,e;null!=(e=a[g]);g++)if("number"===typeof e&&(e+=""),e){if("string"===typeof e)if(qb.test(e)){e=e.replace(Da,"<$1></$2>");i=(Ea.exec(e)||["",""])[1].toLowerCase();var j=F[i]||F._default,l=j[0],n=c.createElement("div");c===p?Ha.appendChild(n):r(c).appendChild(n);for(n.innerHTML=j[1]+e+j[2];l--;)n=
n.lastChild;if(!d.support.tbody){l=pb.test(e);j="table"===i&&!l?n.firstChild&&n.firstChild.childNodes:"<table>"===j[1]&&!l?n.childNodes:[];for(i=j.length-1;0<=i;--i)d.nodeName(j[i],"tbody")&&!j[i].childNodes.length&&j[i].parentNode.removeChild(j[i])}!d.support.leadingWhitespace&&ka.test(e)&&n.insertBefore(c.createTextNode(ka.exec(e)[0]),n.firstChild);e=n.childNodes}else e=c.createTextNode(e);var m;if(!d.support.appendChecked)if(e[0]&&"number"===typeof(m=e.length))for(i=0;i<m;i++)y(e[i]);else y(e);
e.nodeType?b.push(e):b=d.merge(b,e)}if(h){a=function(a){return!a.type||tb.test(a.type)};for(g=0;b[g];g++)f&&d.nodeName(b[g],"script")&&(!b[g].type||"text/javascript"===b[g].type.toLowerCase())?f.push(b[g].parentNode?b[g].parentNode.removeChild(b[g]):b[g]):(1===b[g].nodeType&&(c=d.grep(b[g].getElementsByTagName("script"),a),b.splice.apply(b,[g+1,0].concat(c))),h.appendChild(b[g]))}return b},cleanData:function(a){for(var c,h,f=d.cache,b=d.event.special,i=d.support.deleteExpando,g=0,e;null!=(e=a[g]);g++)if(!e.nodeName||
!d.noData[e.nodeName.toLowerCase()])if(h=e[d.expando]){if((c=f[h])&&c.events){for(var j in c.events)b[j]?d.event.remove(e,j):d.removeEvent(e,j,c.handle);if(c.handle)c.handle.elem=null}i?delete e[d.expando]:e.removeAttribute&&e.removeAttribute(d.expando);delete f[h]}}});var la=/alpha\([^)]*\)/i,ub=/opacity=([^)]*)/,vb=/([A-Z]|^ms)/g,Ia=/^-?\d+(?:px)?$/i,wb=/^-?\d/,xb=/^([\-+])=([\-+.\de]+)/,yb={position:"absolute",visibility:"hidden",display:"block"},Wa=["Left","Right"],Xa=["Top","Bottom"],U,Ja,Ka;
d.fn.css=function(a,c){return 2===arguments.length&&c===g?this:d.access(this,a,c,!0,function(a,c,b){return b!==g?d.style(a,c,b):d.css(a,c)})};d.extend({cssHooks:{opacity:{get:function(a,c){if(c){var d=U(a,"opacity","opacity");return""===d?"1":d}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":d.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,h,f){if(a&&!(3===a.nodeType||8===a.nodeType||
!a.style)){var b,i=d.camelCase(c),e=a.style,j=d.cssHooks[i],c=d.cssProps[i]||i;if(h!==g){f=typeof h;if("string"===f&&(b=xb.exec(h)))h=+(b[1]+1)*+b[2]+parseFloat(d.css(a,c)),f="number";if(!(null==h||"number"===f&&isNaN(h)))if("number"===f&&!d.cssNumber[i]&&(h+="px"),!j||!("set"in j)||(h=j.set(a,h))!==g)try{e[c]=h}catch(l){}}else return j&&"get"in j&&(b=j.get(a,!1,f))!==g?b:e[c]}},css:function(a,c,h){var f,b,c=d.camelCase(c);b=d.cssHooks[c];c=d.cssProps[c]||c;"cssFloat"===c&&(c="float");if(b&&"get"in
b&&(f=b.get(a,!0,h))!==g)return f;if(U)return U(a,c)},swap:function(a,c,d){var f={},b;for(b in c)f[b]=a.style[b],a.style[b]=c[b];d.call(a);for(b in c)a.style[b]=f[b]}});d.curCSS=d.css;d.each(["height","width"],function(a,c){d.cssHooks[c]={get:function(a,f,b){var i;if(f){if(0!==a.offsetWidth)return E(a,c,b);d.swap(a,yb,function(){i=E(a,c,b)});return i}},set:function(a,c){if(Ia.test(c)){if(c=parseFloat(c),0<=c)return c+"px"}else return c}}});if(!d.support.opacity)d.cssHooks.opacity={get:function(a,
c){return ub.test((c&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":c?"1":""},set:function(a,c){var h=a.style,f=a.currentStyle,b=d.isNumeric(c)?"alpha(opacity="+100*c+")":"",i=f&&f.filter||h.filter||"";h.zoom=1;if(1<=c&&""===d.trim(i.replace(la,""))&&(h.removeAttribute("filter"),f&&!f.filter))return;h.filter=la.test(i)?i.replace(la,b):i+" "+b}};d(function(){if(!d.support.reliableMarginRight)d.cssHooks.marginRight={get:function(a,c){var h;d.swap(a,{display:"inline-block"},
function(){h=c?U(a,"margin-right","marginRight"):a.style.marginRight});return h}}});p.defaultView&&p.defaultView.getComputedStyle&&(Ja=function(a,c){var h,b,i,c=c.replace(vb,"-$1").toLowerCase();if((b=a.ownerDocument.defaultView)&&(i=b.getComputedStyle(a,null)))h=i.getPropertyValue(c),""===h&&!d.contains(a.ownerDocument.documentElement,a)&&(h=d.style(a,c));return h});p.documentElement.currentStyle&&(Ka=function(a,c){var d,b,i=a.currentStyle&&a.currentStyle[c],g=a.style;if(null===i&&g&&(d=g[c]))i=
d;if(!Ia.test(i)&&wb.test(i)){d=g.left;if(b=a.runtimeStyle&&a.runtimeStyle.left)a.runtimeStyle.left=a.currentStyle.left;g.left="fontSize"===c?"1em":i||0;i=g.pixelLeft+"px";g.left=d;if(b)a.runtimeStyle.left=b}return""===i?"auto":i});U=Ja||Ka;if(d.expr&&d.expr.filters)d.expr.filters.hidden=function(a){var c=a.offsetHeight;return 0===a.offsetWidth&&0===c||!d.support.reliableHiddenOffsets&&"none"===(a.style&&a.style.display||d.css(a,"display"))},d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)};
var zb=/%20/g,Ya=/\[\]$/,La=/\r?\n/g,Ab=/#.*$/,Bb=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Cb=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Db=/^(?:GET|HEAD)$/,Eb=/^\/\//,Ma=/\?/,Fb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Gb=/^(?:select|textarea)/i,oa=/\s+/,Hb=/([?&])_=[^&]*/,Na=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Oa=d.fn.load,da={},Pa={},S,T,Qa=["*/"]+["*"];try{S=fa.href}catch(Nb){S=p.createElement("a"),S.href=
"",S=S.href}T=Na.exec(S.toLowerCase())||[];d.fn.extend({load:function(a,c,h){if("string"!==typeof a&&Oa)return Oa.apply(this,arguments);if(!this.length)return this;var b=a.indexOf(" ");if(0<=b)var i=a.slice(b,a.length),a=a.slice(0,b);b="GET";c&&(d.isFunction(c)?(h=c,c=g):"object"===typeof c&&(c=d.param(c,d.ajaxSettings.traditional),b="POST"));var e=this;d.ajax({url:a,type:b,dataType:"html",data:c,complete:function(a,c,b){b=a.responseText;a.isResolved()&&(a.done(function(a){b=a}),e.html(i?d("<div>").append(b.replace(Fb,
"")).find(i):b));h&&e.each(h,[b,c,a])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Gb.test(this.nodeName)||Cb.test(this.type))}).map(function(a,c){var h=d(this).val();return null==h?null:d.isArray(h)?d.map(h,function(a){return{name:c.name,value:a.replace(La,"\r\n")}}):{name:c.name,value:h.replace(La,
"\r\n")}}).get()}});d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,c){d.fn[c]=function(a){return this.on(c,a)}});d.each(["get","post"],function(a,c){d[c]=function(a,b,i,e){d.isFunction(b)&&(e=e||i,i=b,b=g);return d.ajax({type:c,url:a,data:b,success:i,dataType:e})}});d.extend({getScript:function(a,c){return d.get(a,g,c,"script")},getJSON:function(a,c,b){return d.get(a,c,b,"json")},ajaxSetup:function(a,c){c?D(a,d.ajaxSettings):(c=a,a=d.ajaxSettings);D(a,
c);return a},ajaxSettings:{url:S,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(T[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","*":Qa},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":b.String,"text html":!0,"text json":d.parseJSON,
"text xml":d.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:K(da),ajaxTransport:K(Pa),ajax:function(a,c){function b(a,c,h,o){if(2!==s){s=2;A&&clearTimeout(A);t=g;r=o||"";v.readyState=0<a?4:0;var q,p,B,o=c;if(h){var y=f,J=v,I=y.contents,L=y.dataTypes,qa=y.responseFields,E,G,C,z;for(G in qa)G in h&&(J[qa[G]]=h[G]);for(;"*"===L[0];)L.shift(),E===g&&(E=y.mimeType||J.getResponseHeader("content-type"));if(E)for(G in I)if(I[G]&&I[G].test(E)){L.unshift(G);break}if(L[0]in h)C=L[0];else{for(G in h){if(!L[0]||
y.converters[G+" "+L[0]]){C=G;break}z||(z=G)}C=C||z}C?(C!==L[0]&&L.unshift(C),h=h[C]):h=void 0}else h=g;if(200<=a&&300>a||304===a){if(f.ifModified){if(E=v.getResponseHeader("Last-Modified"))d.lastModified[m]=E;if(E=v.getResponseHeader("Etag"))d.etag[m]=E}if(304===a)o="notmodified",q=!0;else try{E=f;E.dataFilter&&(h=E.dataFilter(h,E.dataType));var V=E.dataTypes;G={};var D,R,Za=V.length,K,F=V[0],Q,ga,M,H,N;for(D=1;D<Za;D++){if(1===D)for(R in E.converters)"string"===typeof R&&(G[R.toLowerCase()]=E.converters[R]);
Q=F;F=V[D];if("*"===F)F=Q;else if("*"!==Q&&Q!==F){ga=Q+" "+F;M=G[ga]||G["* "+F];if(!M)for(H in N=g,G)if(K=H.split(" "),K[0]===Q||"*"===K[0])if(N=G[K[1]+" "+F]){H=G[H];!0===H?M=N:!0===N&&(M=H);break}!M&&!N&&d.error("No conversion from "+ga.replace(" "," to "));!0!==M&&(h=M?M(h):N(H(h)))}}p=h;o="success";q=!0}catch(fa){o="parsererror",B=fa}}else if(B=o,!o||a)o="error",0>a&&(a=0);v.status=a;v.statusText=""+(c||o);q?j.resolveWith(i,[p,o,v]):j.rejectWith(i,[v,o,B]);v.statusCode(n);n=g;x&&e.trigger("ajax"+
(q?"Success":"Error"),[v,f,q?p:B]);l.fireWith(i,[v,o]);x&&(e.trigger("ajaxComplete",[v,f]),--d.active||d.event.trigger("ajaxStop"))}}"object"===typeof a&&(c=a,a=g);var c=c||{},f=d.ajaxSetup({},c),i=f.context||f,e=i!==f&&(i.nodeType||i instanceof d)?d(i):d.event,j=d.Deferred(),l=d.Callbacks("once memory"),n=f.statusCode||{},m,o={},q={},r,p,t,A,B,s=0,x,y,v={readyState:0,setRequestHeader:function(a,c){if(!s){var d=a.toLowerCase(),a=q[d]=q[d]||a;o[a]=c}return this},getAllResponseHeaders:function(){return 2===
s?r:null},getResponseHeader:function(a){var c;if(2===s){if(!p)for(p={};c=Bb.exec(r);)p[c[1].toLowerCase()]=c[2];c=p[a.toLowerCase()]}return c===g?null:c},overrideMimeType:function(a){if(!s)f.mimeType=a;return this},abort:function(a){a=a||"abort";t&&t.abort(a);b(0,a);return this}};j.promise(v);v.success=v.done;v.error=v.fail;v.complete=l.add;v.statusCode=function(a){if(a){var c;if(2>s)for(c in a)n[c]=[n[c],a[c]];else c=a[v.status],v.then(c,c)}return this};f.url=((a||f.url)+"").replace(Ab,"").replace(Eb,
T[1]+"//");f.dataTypes=d.trim(f.dataType||"*").toLowerCase().split(oa);if(null==f.crossDomain)B=Na.exec(f.url.toLowerCase()),f.crossDomain=!(!B||!(B[1]!=T[1]||B[2]!=T[2]||(B[3]||("http:"===B[1]?80:443))!=(T[3]||("http:"===T[1]?80:443))));if(f.data&&f.processData&&"string"!==typeof f.data)f.data=d.param(f.data,f.traditional);z(da,f,c,v);if(2===s)return!1;x=f.global;f.type=f.type.toUpperCase();f.hasContent=!Db.test(f.type);x&&0===d.active++&&d.event.trigger("ajaxStart");if(!f.hasContent&&(f.data&&(f.url+=
(Ma.test(f.url)?"&":"?")+f.data,delete f.data),m=f.url,!1===f.cache)){B=d.now();var J=f.url.replace(Hb,"$1_="+B);f.url=J+(J===f.url?(Ma.test(f.url)?"&":"?")+"_="+B:"")}(f.data&&f.hasContent&&!1!==f.contentType||c.contentType)&&v.setRequestHeader("Content-Type",f.contentType);f.ifModified&&(m=m||f.url,d.lastModified[m]&&v.setRequestHeader("If-Modified-Since",d.lastModified[m]),d.etag[m]&&v.setRequestHeader("If-None-Match",d.etag[m]));v.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?
f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Qa+"; q=0.01":""):f.accepts["*"]);for(y in f.headers)v.setRequestHeader(y,f.headers[y]);if(f.beforeSend&&(!1===f.beforeSend.call(i,v,f)||2===s))return v.abort(),!1;for(y in{success:1,error:1,complete:1})v[y](f[y]);if(t=z(Pa,f,c,v)){v.readyState=1;x&&e.trigger("ajaxSend",[v,f]);f.async&&0<f.timeout&&(A=setTimeout(function(){v.abort("timeout")},f.timeout));try{s=1,t.send(o,b)}catch(I){if(2>s)b(-1,I);else throw I;}}else b(-1,"No Transport");return v},
param:function(a,c){var b=[],f=function(a,c){c=d.isFunction(c)?c():c;b[b.length]=encodeURIComponent(a)+"="+encodeURIComponent(c)};if(c===g)c=d.ajaxSettings.traditional;if(d.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){f(this.name,this.value)});else for(var i in a)q(i,a[i],c,f);return b.join("&").replace(zb,"+")}});d.extend({active:0,lastModified:{},etag:{}});var Ib=d.now(),ba=/(\=)\?(&|$)|\?\?/i;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return d.expando+"_"+Ib++}});d.ajaxPrefilter("json jsonp",
function(a,c,h){c="application/x-www-form-urlencoded"===a.contentType&&"string"===typeof a.data;if("jsonp"===a.dataTypes[0]||!1!==a.jsonp&&(ba.test(a.url)||c&&ba.test(a.data))){var f,i=a.jsonpCallback=d.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,g=b[i],e=a.url,j=a.data,l="$1"+i+"$2";!1!==a.jsonp&&(e=e.replace(ba,l),a.url===e&&(c&&(j=j.replace(ba,l)),a.data===j&&(e+=(/\?/.test(e)?"&":"?")+a.jsonp+"="+i)));a.url=e;a.data=j;b[i]=function(a){f=[a]};h.always(function(){b[i]=g;if(f&&
d.isFunction(g))b[i](f[0])});a.converters["script json"]=function(){f||d.error(i+" was not called");return f[0]};a.dataTypes[0]="json";return"script"}});d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){d.globalEval(a);return a}}});d.ajaxPrefilter("script",function(a){if(a.cache===g)a.cache=!1;if(a.crossDomain)a.type="GET",a.global=!1});d.ajaxTransport("script",
function(a){if(a.crossDomain){var c,d=p.head||p.getElementsByTagName("head")[0]||p.documentElement;return{send:function(b,i){c=p.createElement("script");c.async="async";if(a.scriptCharset)c.charset=a.scriptCharset;c.src=a.url;c.onload=c.onreadystatechange=function(a,b){if(b||!c.readyState||/loaded|complete/.test(c.readyState))c.onload=c.onreadystatechange=null,d&&c.parentNode&&d.removeChild(c),c=g,b||i(200,"success")};d.insertBefore(c,d.firstChild)},abort:function(){if(c)c.onload(0,1)}}}});var ma=
b.ActiveXObject?function(){for(var a in X)X[a](0,1)}:!1,Jb=0,X;d.ajaxSettings.xhr=b.ActiveXObject?function(){var a;if(!(a=!this.isLocal&&B()))a:{try{a=new b.ActiveXObject("Microsoft.XMLHTTP");break a}catch(c){}a=void 0}return a}:B;(function(a){d.extend(d.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})})(d.ajaxSettings.xhr());d.support.ajax&&d.ajaxTransport(function(a){if(!a.crossDomain||d.support.cors){var c;return{send:function(h,f){var i=a.xhr(),e,j;a.username?i.open(a.type,a.url,a.async,a.username,
a.password):i.open(a.type,a.url,a.async);if(a.xhrFields)for(j in a.xhrFields)i[j]=a.xhrFields[j];a.mimeType&&i.overrideMimeType&&i.overrideMimeType(a.mimeType);!a.crossDomain&&!h["X-Requested-With"]&&(h["X-Requested-With"]="XMLHttpRequest");try{for(j in h)i.setRequestHeader(j,h[j])}catch(l){}i.send(a.hasContent&&a.data||null);c=function(b,h){var j,l,n,o,m;try{if(c&&(h||4===i.readyState)){c=g;if(e)i.onreadystatechange=d.noop,ma&&delete X[e];if(h)4!==i.readyState&&i.abort();else{j=i.status;n=i.getAllResponseHeaders();
o={};if((m=i.responseXML)&&m.documentElement)o.xml=m;o.text=i.responseText;try{l=i.statusText}catch(q){l=""}!j&&a.isLocal&&!a.crossDomain?j=o.text?200:404:1223===j&&(j=204)}}}catch(r){h||f(-1,r)}o&&f(j,l,o,n)};!a.async||4===i.readyState?c():(e=++Jb,ma&&(X||(X={},d(b).unload(ma)),X[e]=c),i.onreadystatechange=c)},abort:function(){c&&c(0,1)}}}});var ea={},H,W,Kb=/^(?:toggle|show|hide)$/,Lb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,ca,pa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width",
"marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],Z;d.fn.extend({show:function(a,c,b){if(a||0===a)return this.animate(J("show",3),a,c,b);for(var b=0,f=this.length;b<f;b++)if(a=this[b],a.style){c=a.style.display;if(!d._data(a,"olddisplay")&&"none"===c)c=a.style.display="";""===c&&"none"===d.css(a,"display")&&d._data(a,"olddisplay",V(a.nodeName))}for(b=0;b<f;b++)if(a=this[b],a.style&&(c=a.style.display,""===c||"none"===c))a.style.display=d._data(a,"olddisplay")||"";return this},
hide:function(a,c,b){if(a||0===a)return this.animate(J("hide",3),a,c,b);for(var b=0,f=this.length;b<f;b++)a=this[b],a.style&&(c=d.css(a,"display"),"none"!==c&&!d._data(a,"olddisplay")&&d._data(a,"olddisplay",c));for(b=0;b<f;b++)if(this[b].style)this[b].style.display="none";return this},_toggle:d.fn.toggle,toggle:function(a,c,b){var f="boolean"===typeof a;d.isFunction(a)&&d.isFunction(c)?this._toggle.apply(this,arguments):null==a||f?this.each(function(){var c=f?a:d(this).is(":hidden");d(this)[c?"show":
"hide"]()}):this.animate(J("toggle",3),a,c,b);return this},fadeTo:function(a,c,d,b){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:c},a,d,b)},animate:function(a,c,b,f){function i(){var u;!1===g.queue&&d._mark(this);var c=d.extend({},g),b=1===this.nodeType,h=b&&d(this).is(":hidden"),f,e,j,k,l;c.animatedProperties={};for(j in a){f=d.camelCase(j);j!==f&&(a[f]=a[j],delete a[j]);e=a[f];d.isArray(e)?(c.animatedProperties[f]=e[1],u=a[f]=e[0],e=u):c.animatedProperties[f]=c.specialEasing&&
c.specialEasing[f]||c.easing||"swing";if("hide"===e&&h||"show"===e&&!h)return c.complete.call(this);if(b&&("height"===f||"width"===f))if(c.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],"inline"===d.css(this,"display")&&"none"===d.css(this,"float"))!d.support.inlineBlockNeedsLayout||"inline"===V(this.nodeName)?this.style.display="inline-block":this.style.zoom=1}if(null!=c.overflow)this.style.overflow="hidden";for(j in a)if(b=new d.fx(this,c,j),e=a[j],Kb.test(e))if(f=d._data(this,
"toggle"+j)||("toggle"===e?h?"show":"hide":0))d._data(this,"toggle"+j,"show"===f?"hide":"show"),b[f]();else b[e]();else f=Lb.exec(e),k=b.cur(),f?(e=parseFloat(f[2]),l=f[3]||(d.cssNumber[j]?"":"px"),"px"!==l&&(d.style(this,j,(e||1)+l),k*=(e||1)/b.cur(),d.style(this,j,k+l)),f[1]&&(e=("-="===f[1]?-1:1)*e+k),b.custom(k,e,l)):b.custom(k,e,"");return!0}var g=d.speed(c,b,f);if(d.isEmptyObject(a))return this.each(g.complete,[!1]);a=d.extend({},a);return!1===g.queue?this.each(i):this.queue(g.queue,i)},stop:function(a,
c,b){"string"!==typeof a&&(b=c,c=a,a=g);c&&!1!==a&&this.queue(a||"fx",[]);return this.each(function(){var c,i=!1,e=d.timers,g=d._data(this);b||d._unmark(!0,this);if(null==a)for(c in g){if(g[c]&&g[c].stop&&c.indexOf(".run")===c.length-4){var j=g[c];d.removeData(this,c,!0);j.stop(b)}}else if(g[c=a+".run"]&&g[c].stop)g=g[c],d.removeData(this,c,!0),g.stop(b);for(c=e.length;c--;)if(e[c].elem===this&&(null==a||e[c].queue===a)){if(b)e[c](!0);else e[c].saveState();i=!0;e.splice(c,1)}(!b||!i)&&d.dequeue(this,
a)})}});d.each({slideDown:J("show",1),slideUp:J("hide",1),slideToggle:J("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,c){d.fn[a]=function(a,d,b){return this.animate(c,a,d,b)}});d.extend({speed:function(a,c,b){var f=a&&"object"===typeof a?d.extend({},a):{complete:b||!b&&c||d.isFunction(a)&&a,duration:a,easing:b&&c||c&&!d.isFunction(c)&&c};f.duration=d.fx.off?0:"number"===typeof f.duration?f.duration:f.duration in d.fx.speeds?d.fx.speeds[f.duration]:
d.fx.speeds._default;if(null==f.queue||!0===f.queue)f.queue="fx";f.old=f.complete;f.complete=function(a){d.isFunction(f.old)&&f.old.call(this);f.queue?d.dequeue(this,f.queue):!1!==a&&d._unmark(this)};return f},easing:{linear:function(a,c,d,b){return d+b*a},swing:function(a,c,d,b){return(-Math.cos(a*Math.PI)/2+0.5)*b+d}},timers:[],fx:function(a,c,d){this.options=c;this.elem=a;this.prop=d;c.orig=c.orig||{}}});d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,
this);(d.fx.step[this.prop]||d.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,c=d.css(this.elem,this.prop);return isNaN(a=parseFloat(c))?!c||"auto"===c?0:c:a},custom:function(a,c,b){function f(a){return i.step(a)}var i=this,e=d.fx;this.startTime=Z||L();this.end=c;this.now=this.start=a;this.pos=this.state=0;this.unit=b||this.unit||(d.cssNumber[this.prop]?"":"px");f.queue=this.options.queue;
f.elem=this.elem;f.saveState=function(){i.options.hide&&d._data(i.elem,"fxshow"+i.prop)===g&&d._data(i.elem,"fxshow"+i.prop,i.start)};f()&&d.timers.push(f)&&!ca&&(ca=setInterval(e.tick,e.interval))},show:function(){var a=d._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=a||d.style(this.elem,this.prop);this.options.show=!0;a!==g?this.custom(this.cur(),a):this.custom("width"===this.prop||"height"===this.prop?1:0,this.cur());d(this.elem).show()},hide:function(){this.options.orig[this.prop]=
d._data(this.elem,"fxshow"+this.prop)||d.style(this.elem,this.prop);this.options.hide=!0;this.custom(this.cur(),0)},step:function(a){var c,b=Z||L(),f=!0,i=this.elem,e=this.options;if(a||b>=e.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();e.animatedProperties[this.prop]=!0;for(c in e.animatedProperties)!0!==e.animatedProperties[c]&&(f=!1);if(f){null!=e.overflow&&!d.support.shrinkWrapBlocks&&d.each(["","X","Y"],function(a,c){i.style["overflow"+c]=e.overflow[a]});e.hide&&
d(i).hide();if(e.hide||e.show)for(c in e.animatedProperties)d.style(i,c,e.orig[c]),d.removeData(i,"fxshow"+c,!0),d.removeData(i,"toggle"+c,!0);if(a=e.complete)e.complete=!1,a.call(i)}return!1}Infinity==e.duration?this.now=b:(a=b-this.startTime,this.state=a/e.duration,this.pos=d.easing[e.animatedProperties[this.prop]](this.state,a,0,1,e.duration),this.now=this.start+(this.end-this.start)*this.pos);this.update();return!0}};d.extend(d.fx,{tick:function(){for(var a,c=d.timers,b=0;b<c.length;b++)a=c[b],
!a()&&c[b]===a&&c.splice(b--,1);c.length||d.fx.stop()},interval:13,stop:function(){clearInterval(ca);ca=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){d.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}}});d.each(["width","height"],function(a,c){d.fx.step[c]=function(a){d.style(a.elem,c,Math.max(0,a.now)+a.unit)}});if(d.expr&&d.expr.filters)d.expr.filters.animated=function(a){return d.grep(d.timers,
function(c){return a===c.elem}).length};var Mb=/^t(?:able|d|h)$/i,Ra=/^(?:body|html)$/i;d.fn.offset="getBoundingClientRect"in p.documentElement?function(a){var c=this[0],b;if(a)return this.each(function(c){d.offset.setOffset(this,a,c)});if(!c||!c.ownerDocument)return null;if(c===c.ownerDocument.body)return d.offset.bodyOffset(c);try{b=c.getBoundingClientRect()}catch(f){}var i=c.ownerDocument,e=i.documentElement;if(!b||!d.contains(e,c))return b?{top:b.top,left:b.left}:{top:0,left:0};c=i.body;i=N(i);
return{top:b.top+(i.pageYOffset||d.support.boxModel&&e.scrollTop||c.scrollTop)-(e.clientTop||c.clientTop||0),left:b.left+(i.pageXOffset||d.support.boxModel&&e.scrollLeft||c.scrollLeft)-(e.clientLeft||c.clientLeft||0)}}:function(a){var c=this[0];if(a)return this.each(function(c){d.offset.setOffset(this,a,c)});if(!c||!c.ownerDocument)return null;if(c===c.ownerDocument.body)return d.offset.bodyOffset(c);var b,f=c.offsetParent,i=c.ownerDocument,e=i.documentElement,g=i.body;b=(i=i.defaultView)?i.getComputedStyle(c,
null):c.currentStyle;for(var j=c.offsetTop,l=c.offsetLeft;(c=c.parentNode)&&c!==g&&c!==e&&!(d.support.fixedPosition&&"fixed"===b.position);){b=i?i.getComputedStyle(c,null):c.currentStyle;j-=c.scrollTop;l-=c.scrollLeft;if(c===f){j+=c.offsetTop;l+=c.offsetLeft;if(d.support.doesNotAddBorder&&(!d.support.doesAddBorderForTableAndCells||!Mb.test(c.nodeName)))j+=parseFloat(b.borderTopWidth)||0,l+=parseFloat(b.borderLeftWidth)||0;f=c.offsetParent}d.support.subtractsBorderForOverflowNotVisible&&"visible"!==
b.overflow&&(j+=parseFloat(b.borderTopWidth)||0,l+=parseFloat(b.borderLeftWidth)||0)}if("relative"===b.position||"static"===b.position)j+=g.offsetTop,l+=g.offsetLeft;d.support.fixedPosition&&"fixed"===b.position&&(j+=Math.max(e.scrollTop,g.scrollTop),l+=Math.max(e.scrollLeft,g.scrollLeft));return{top:j,left:l}};d.offset={bodyOffset:function(a){var c=a.offsetTop,b=a.offsetLeft;d.support.doesNotIncludeMarginInBodyOffset&&(c+=parseFloat(d.css(a,"marginTop"))||0,b+=parseFloat(d.css(a,"marginLeft"))||
0);return{top:c,left:b}},setOffset:function(a,c,b){var f=d.css(a,"position");if("static"===f)a.style.position="relative";var i=d(a),e=i.offset(),g=d.css(a,"top"),j=d.css(a,"left"),l={},n={};("absolute"===f||"fixed"===f)&&-1<d.inArray("auto",[g,j])?(n=i.position(),f=n.top,j=n.left):(f=parseFloat(g)||0,j=parseFloat(j)||0);d.isFunction(c)&&(c=c.call(a,b,e));if(null!=c.top)l.top=c.top-e.top+f;if(null!=c.left)l.left=c.left-e.left+j;"using"in c?c.using.call(a,l):i.css(l)}};d.fn.extend({position:function(){if(!this[0])return null;
var a=this[0],c=this.offsetParent(),b=this.offset(),f=Ra.test(c[0].nodeName)?{top:0,left:0}:c.offset();b.top-=parseFloat(d.css(a,"marginTop"))||0;b.left-=parseFloat(d.css(a,"marginLeft"))||0;f.top+=parseFloat(d.css(c[0],"borderTopWidth"))||0;f.left+=parseFloat(d.css(c[0],"borderLeftWidth"))||0;return{top:b.top-f.top,left:b.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||p.body;a&&!Ra.test(a.nodeName)&&"static"===d.css(a,"position");)a=a.offsetParent;return a})}});
d.each(["Left","Top"],function(a,c){var b="scroll"+c;d.fn[b]=function(c){var i,e;if(c===g){i=this[0];return!i?null:(e=N(i))?"pageXOffset"in e?e[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&e.document.documentElement[b]||e.document.body[b]:i[b]}return this.each(function(){(e=N(this))?e.scrollTo(!a?c:d(e).scrollLeft(),a?c:d(e).scrollTop()):this[b]=c})}});d.each(["Height","Width"],function(a,c){var b=c.toLowerCase();d.fn["inner"+c]=function(){var a=this[0];return a?a.style?parseFloat(d.css(a,b,
"padding")):this[b]():null};d.fn["outer"+c]=function(a){var c=this[0];return c?c.style?parseFloat(d.css(c,b,a?"margin":"border")):this[b]():null};d.fn[b]=function(a){var i=this[0];if(!i)return null==a?null:this;if(d.isFunction(a))return this.each(function(c){var i=d(this);i[b](a.call(this,c,i[b]()))});if(d.isWindow(i)){var e=i.document.documentElement["client"+c],j=i.document.body;return"CSS1Compat"===i.document.compatMode&&e||j&&j["client"+c]||e}if(9===i.nodeType)return Math.max(i.documentElement["client"+
c],i.body["scroll"+c],i.documentElement["scroll"+c],i.body["offset"+c],i.documentElement["offset"+c]);return a===g?(i=d.css(i,b),e=parseFloat(i),d.isNumeric(e)?e:i):this.css(b,"string"===typeof a?a:a+"px")}});b.jQuery=b.$=d;"function"===typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return d})})(window);function sortNumber(b,g){return b-g}function sortNameAscending(b,g){return b.name.toLowerCase()>g.name.toLowerCase()?1:b.name.toLowerCase()<g.name.toLowerCase()?-1:0}function formatTimeFromTimestamp(b){var g="",e="",j="";if(null!=b)return b=new Date(1E3*b),g=b.getHours(),e=b.getMinutes(),j=b.getSeconds(),g=1===g.toString().length?"0"+g:g,e=1===e.toString().length?"0"+e:e,j=1===j.toString().length?"0"+j:j,""+g+":"+e+":"+j+""}
function formatDateFromTimestamp(b){var g="",e="",j="";if(null!=b)return b=new Date(1E3*b),g=b.getDate(),e=b.getMonth()+1,j=b.getFullYear(),g=1===g.toString().length?"0"+g:g,e=1===e.toString().length?"0"+e:e,""+g+"/"+e+"/"+j+""}window.log=function(){log.history=log.history||[];log.history.push(arguments);this.console&&console.log(Array.prototype.slice.call(arguments))};
(function(b){function g(){var e=window.innerHeight;if(e)return e;var g=document.compatMode;if(g||!b.support.boxModel)e="CSS1Compat"==g?document.documentElement.clientHeight:document.body.clientHeight;return e}function e(){var e=g(),m=window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop,l=[];b.each(b.cache,function(){this.events&&this.events.inview&&l.push(this.handle.elem)});l.length&&b(l).each(function(){var i=b(this),
g,l=0;for(g=this;null!==g;g=g.offsetParent)l+=g.offsetTop;g=l;var r=i.height(),l=i.data("inview")||!1;if(m>g+r||m+e<g)l&&(i.data("inview",!1),i.trigger("inview",[!1]));else if(m<g+r&&(g=m>g?"bottom":m+e<g+r?"top":"both",!l||l!==g))i.data("inview",g),i.trigger("inview",[!0,g])})}b(window).scroll(e);b(window).resize(e);b(window).click(e);b(function(){setInterval(e,250)})})(jQuery);
(function(b){function g(i){var e=i?b.fn.addClass:b.fn.removeClass,g=i?b.fn.removeClass:b.fn.addClass;return function(b,j){var l=this,m,o,r,A,d;if(l.hasClass(b)!==i)if(e.call(l,b),m=this.css("transition")||window.getComputedStyle&&getComputedStyle(this[0],null).transition){o={};d=l.attr("style");A={queue:!0,specialEasing:{},complete:function(){l.removeClass(t);d?l.attr("style",d):l.removeAttr("style");j&&j.apply(this)}};l.addClass(t);m.replace(/([a-z\-]+)\s+([^\s]+)\s+([a-z\-]+)/g,function(d,b,i,e){o[b]=
l.css(b);A.duration=1E3*parseFloat(i);A.specialEasing[b]=e});g.call(l,b);for(r in o)o[r]===l.css(r)&&delete o[r];l.animate(o,A);e.call(l,b)}else n&&console.log("[jquery.transitions] Transition definition not readable"),j&&j.apply(this)}}function e(i){var g=i.data.obj,j=i.data.style,l=i.data.callback,n=i.data.properties,o=i.originalEvent.propertyName;if(n&&(n.splice(n.indexOf(o),1),n.length))return;g.unbind(b.support.cssTransitionEnd,e);j?g.attr("style",j):g.removeAttr("style");g.css(E).width();j?
g.attr("style",j):g.removeAttr("style");g.data("preTransitionStyle",!1);g.removeClass(t);l&&l.call(i.data.obj)}function j(i,g,j,l,o){var m={},r={},p={},A,s,d,z,D;i.addClass(t).width();for(z in x)m[z]=i.css(z);g.call(i,l);durations=(i.css(transitionDurationStr)||i.css("MozTransitionDuration")).split(/\s*,\s*/);if(1<durations.length||0<parseFloat(durations[0])){d=(i.css(I)||i.css("MozTransitionProperty")).split(/\s*,\s*/);n&&console.log("[jquery.transitions]",d,durations);D=d.length;A=i.data("preTransitionStyle",
A);A||(A=i.attr("style"),i.data("preTransitionStyle",A));for(;D--;)z=d[D],x[z]&&(s||(i.css(E),s=!0),r[z]=m[z],p[z]=i.css(z),n&&console.log("[jquery.transitions]",z+" start:",r[z],"end:",p[z])),y[z]&&d.splice(D,1),s&&(j.call(i,l).css(r).width(),b.extend(p,K),g.call(i,l).css(p));i.unbind(b.support.cssTransitionEnd,e).bind(b.support.cssTransitionEnd,{obj:i,callback:o&&o.callback,properties:d},e)}else i.find(":transition").length?i.unbind(b.support.cssTransitionEnd,e).bind(b.support.cssTransitionEnd,
{obj:i,callback:o&&o.callback},e):i.removeClass(t)}function m(i,e){j(this,b.fn.addClass,b.fn.removeClass,i,e);return this}function l(i,e){j(this,b.fn.removeClass,b.fn.addClass,i,e);return this}function i(e){n&&console.log("[jquery.transitions] Transition feature test: PASS");clearTimeout(z);z=null;r.remove();b.support.cssTransition=!0;b.support.cssTransitionEnd=e.type;D[e.type]();b.fn.addTransitionClass=m;b.fn.removeTransitionClass=l;o.unbind("transitionend webkitTransitionEnd oTransitionEnd",i)}
var n=!1,o=b(document),r=b("<div/>").css({position:"relative",top:-200,left:-9999,width:100,height:100,WebkitTransition:"top 0.01s linear",MozTransition:"top 0.01s linear",OTransition:"top 0.01s linear",transition:"top 0.01s linear"}),t="transition",s={fallback:g(!0)},A={fallback:g(!1)},x={height:!0,width:!0,"margin-left":!0,"margin-right":!0},y={display:!0,overflow:!0},I,E,K,z,D={transitionend:function(){I="transitionProperty";transitionDurationStr="transitionDuration";E={transition:"none",MozTransition:"none"};
K={transition:"",MozTransition:""}},webkitTransitionEnd:function(){I="WebkitTransitionProperty";transitionDurationStr="WebkitTransitionDuration";E={WebkitTransition:"none"};K={WebkitTransition:""}},oTransitionEnd:function(){I="OTransitionProperty";transitionDurationStr="OTransitionDuration";E={OTransition:"none"};K={OTransition:""}}};b.extend(b.easing,{ease:function(b,i,e,g,j){return 1>(i/=j/2)?g/2*i*i+e:-g/2*(--i*(i-2)-1)+e},"ease-in":function(b,i,e,g,j){return g*(i/=j)*i*i+e},"ease-out":function(b,
i,e,g,j){return g*((i=i/j-1)*i*i+1)+e},"ease-in-out":function(b,i,e,g,j){return 1>(i/=j/2)?g/2*i*i*i+e:g/2*((i-=2)*i*i+2)+e}});b.fn.addTransitionClass=function(i,e){var g=b.extend({},e,s);g.fallback.call(this,i,g.callback);return this};b.fn.removeTransitionClass=function(i,e){var g=b.extend({},e,A);g.fallback.call(this,i,g.callback);return this};b.expr[":"].transition=function(i){i=b(i);return(i=(i.css(transitionDurationStr)||i.css("MozTransitionDuration")).split(/\s*,\s*/))&&(1<i.length||0<parseFloat(i[0]))};
o.bind("transitionend webkitTransitionEnd oTransitionEnd",i).ready(function(){var i=setTimeout(function(){clearTimeout(i);i=null;n&&console.log("[jquery.transitions] Running transition feature test.");r.appendTo("body");r.width();r.css({top:-300});z=setTimeout(function(){clearTimeout(z);z=null;r.remove();n&&console.log("[jquery.transitions] Transition feature test: FAIL");b.support.cssTransition=!1;b.support.cssTransitionEnd=!1},100)},1)})})(jQuery);(function(b,g){b.version="0.8.7";b.protocol=1;b.transports=[];b.j=[];b.sockets={};b.connect=function(e,j){var m=b.util.parseUri(e),l,i;if(g&&g.location)m.protocol=m.protocol||g.location.protocol.slice(0,-1),m.host=m.host||(g.document?g.document.domain:g.location.hostname),m.port=m.port||g.location.port;l=b.util.uniqueUri(m);var n={host:m.host,secure:"https"==m.protocol,port:m.port||("https"==m.protocol?443:80),query:m.query||""};b.util.merge(n,j);if(n["force new connection"]||!b.sockets[l])i=new b.Socket(n);
!n["force new connection"]&&i&&(b.sockets[l]=i);i=i||b.sockets[l];return i.of(1<m.path.length?m.path:"")}})("object"===typeof module?module.exports:this.io={},this);
(function(b,g){var e=b.util={},j=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,m="source,protocol,authority,userInfo,user,password,host,port,relative,path,directory,file,query,anchor".split(",");e.parseUri=function(b){for(var b=j.exec(b||""),e={},g=14;g--;)e[m[g]]=b[g]||"";return e};e.uniqueUri=function(b){var e=b.protocol,j=b.host,b=b.port;"document"in
g?(j=j||document.domain,b=b||("https"==e&&"https:"!==document.location.protocol?443:document.location.port)):(j=j||"localhost",!b&&"https"==e&&(b=443));return(e||"http")+"://"+j+":"+(b||80)};e.query=function(b,g){var j=e.chunkQuery(b||""),l=[];e.merge(j,e.chunkQuery(g||""));for(var m in j)j.hasOwnProperty(m)&&l.push(m+"="+j[m]);return l.length?"?"+l.join("&"):""};e.chunkQuery=function(b){for(var e={},b=b.split("&"),g=0,j=b.length,l;g<j;++g)l=b[g].split("="),l[0]&&(e[l[0]]=decodeURIComponent(l[1]));
return e};var l=!1;e.load=function(b){if("document"in g&&"complete"===document.readyState||l)return b();e.on(g,"load",b,!1)};e.on=function(b,e,g,j){b.attachEvent?b.attachEvent("on"+e,g):b.addEventListener&&b.addEventListener(e,g,j)};e.request=function(b){if(b&&"undefined"!=typeof XDomainRequest)return new XDomainRequest;if("undefined"!=typeof XMLHttpRequest&&(!b||e.ua.hasCORS))return new XMLHttpRequest;if(!b)try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(g){}return null};"undefined"!=typeof window&&
e.load(function(){l=!0});e.defer=function(b){if(!e.ua.webkit||"undefined"!=typeof importScripts)return b();e.load(function(){setTimeout(b,100)})};e.merge=function(b,g,j,l){var l=l||[],j="undefined"==typeof j?2:j,m;for(m in g)g.hasOwnProperty(m)&&0>e.indexOf(l,m)&&("object"!==typeof b[m]||!j?(b[m]=g[m],l.push(g[m])):e.merge(b[m],g[m],j-1,l));return b};e.mixin=function(b,g){e.merge(b.prototype,g.prototype)};e.inherit=function(b,e){function g(){}g.prototype=e.prototype;b.prototype=new g};e.isArray=Array.isArray||
function(b){return"[object Array]"===Object.prototype.toString.call(b)};e.intersect=function(b,g){for(var j=[],l=b.length>g.length?b:g,m=b.length>g.length?g:b,s=0,A=m.length;s<A;s++)~e.indexOf(l,m[s])&&j.push(m[s]);return j};e.indexOf=function(b,e,g){if(Array.prototype.indexOf)return Array.prototype.indexOf.call(b,e,g);for(var j=b.length,g=0>g?0>g+j?0:g+j:g||0;g<j&&b[g]!==e;g++);return j<=g?-1:g};e.toArray=function(b){for(var e=[],g=0,j=b.length;g<j;g++)e.push(b[g]);return e};e.ua={};e.ua.hasCORS=
"undefined"!=typeof XMLHttpRequest&&function(){try{var b=new XMLHttpRequest}catch(e){return!1}return void 0!=b.withCredentials}();e.ua.webkit="undefined"!=typeof navigator&&/webkit/i.test(navigator.userAgent)})("undefined"!=typeof io?io:module.exports,this);
(function(b,g){function e(){}b.EventEmitter=e;e.prototype.on=function(b,e){if(!this.$events)this.$events={};this.$events[b]?g.util.isArray(this.$events[b])?this.$events[b].push(e):this.$events[b]=[this.$events[b],e]:this.$events[b]=e;return this};e.prototype.addListener=e.prototype.on;e.prototype.once=function(b,e){function g(){i.removeListener(b,g);e.apply(this,arguments)}var i=this;g.listener=e;this.on(b,g);return this};e.prototype.removeListener=function(b,e){if(this.$events&&this.$events[b]){var l=
this.$events[b];if(g.util.isArray(l)){for(var i=-1,n=0,o=l.length;n<o;n++)if(l[n]===e||l[n].listener&&l[n].listener===e){i=n;break}if(0>i)return this;l.splice(i,1);l.length||delete this.$events[b]}else(l===e||l.listener&&l.listener===e)&&delete this.$events[b]}return this};e.prototype.removeAllListeners=function(b){this.$events&&this.$events[b]&&(this.$events[b]=null);return this};e.prototype.listeners=function(b){if(!this.$events)this.$events={};this.$events[b]||(this.$events[b]=[]);g.util.isArray(this.$events[b])||
(this.$events[b]=[this.$events[b]]);return this.$events[b]};e.prototype.emit=function(b){if(!this.$events)return!1;var e=this.$events[b];if(!e)return!1;var l=Array.prototype.slice.call(arguments,1);if("function"==typeof e)e.apply(this,l);else if(g.util.isArray(e))for(var e=e.slice(),i=0,n=e.length;i<n;i++)e[i].apply(this,l);else return!1;return!0}})("undefined"!=typeof io?io:module.exports,"undefined"!=typeof io?io:module.parent.exports);
(function(b,g){function e(b){return 10>b?"0"+b:b}function j(b){n.lastIndex=0;return n.test(b)?'"'+b.replace(n,function(b){var i=t[b];return"string"===typeof i?i:"\\u"+("0000"+b.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+b+'"'}function m(b,i){var g,l,n,t,z=o,D,q=i[b];q instanceof Date&&(q=isFinite(b.valueOf())?b.getUTCFullYear()+"-"+e(b.getUTCMonth()+1)+"-"+e(b.getUTCDate())+"T"+e(b.getUTCHours())+":"+e(b.getUTCMinutes())+":"+e(b.getUTCSeconds())+"Z":null);"function"===typeof s&&(q=s.call(i,b,
q));switch(typeof q){case "string":return j(q);case "number":return isFinite(q)?""+q:"null";case "boolean":case "null":return""+q;case "object":if(!q)return"null";o+=r;D=[];if("[object Array]"===Object.prototype.toString.apply(q)){t=q.length;for(g=0;g<t;g+=1)D[g]=m(g,q)||"null";n=0===D.length?"[]":o?"[\n"+o+D.join(",\n"+o)+"\n"+z+"]":"["+D.join(",")+"]";o=z;return n}if(s&&"object"===typeof s){t=s.length;for(g=0;g<t;g+=1)"string"===typeof s[g]&&(l=s[g],(n=m(l,q))&&D.push(j(l)+(o?": ":":")+n))}else for(l in q)Object.prototype.hasOwnProperty.call(q,
l)&&(n=m(l,q))&&D.push(j(l)+(o?": ":":")+n);n=0===D.length?"{}":o?"{\n"+o+D.join(",\n"+o)+"\n"+z+"}":"{"+D.join(",")+"}";o=z;return n}}if(g&&g.parse)return b.JSON={parse:g.parse,stringify:g.stringify};var l=b.JSON={},i=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o,r,t={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f",
"\r":"\\r",'"':'\\"',"\\":"\\\\"},s;l.stringify=function(b,i,e){var g;r=o="";if("number"===typeof e)for(g=0;g<e;g+=1)r+=" ";else"string"===typeof e&&(r=e);if((s=i)&&"function"!==typeof i&&("object"!==typeof i||"number"!==typeof i.length))throw Error("JSON.stringify");return m("",{"":b})};l.parse=function(b,e){function g(b,i){var j,l,n=b[i];if(n&&"object"===typeof n)for(j in n)Object.prototype.hasOwnProperty.call(n,j)&&(l=g(n,j),void 0!==l?n[j]=l:delete n[j]);return e.call(b,i,n)}var j,b=""+b;i.lastIndex=
0;i.test(b)&&(b=b.replace(i,function(b){return"\\u"+("0000"+b.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(b.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+b+")"),"function"===typeof e?g({"":j},""):j;throw new SyntaxError("JSON.parse");}})("undefined"!=typeof io?io:module.exports,"undefined"!==typeof JSON?JSON:void 0);
(function(b,g){var e=b.parser={},j=e.packets="disconnect,connect,heartbeat,message,json,event,ack,error,noop".split(","),m=e.reasons=["transport not supported","client not handshaken","unauthorized"],l=e.advice=["reconnect"],i=g.JSON,n=g.util.indexOf;e.encodePacket=function(b){var e=n(j,b.type),g=b.id||"",o=b.endpoint||"",x=b.ack,y=null;switch(b.type){case "error":var I=b.reason?n(m,b.reason):"",b=b.advice?n(l,b.advice):"";if(""!==I||""!==b)y=I+(""!==b?"+"+b:"");break;case "message":if(""!==b.data)y=
b.data;break;case "event":y={name:b.name};if(b.args&&b.args.length)y.args=b.args;y=i.stringify(y);break;case "json":y=i.stringify(b.data);break;case "connect":if(b.qs)y=b.qs;break;case "ack":y=b.ackId+(b.args&&b.args.length?"+"+i.stringify(b.args):"")}e=[e,g+("data"==x?"+":""),o];null!==y&&void 0!==y&&e.push(y);return e.join(":")};e.encodePayload=function(b){var i="";if(1==b.length)return b[0];for(var e=0,g=b.length;e<g;e++)i+="\ufffd"+b[e].length+"\ufffd"+b[e];return i};var o=/([^:]+):([0-9]+)?(\+)?:([^:]+)?:?([\s\S]*)?/;
e.decodePacket=function(b){var e=b.match(o);if(!e)return{};var g=e[2]||"",b=e[5]||"",n={type:j[e[1]],endpoint:e[4]||""};if(g)n.id=g,n.ack=e[3]?"data":!0;switch(n.type){case "error":e=b.split("+");n.reason=m[e[0]]||"";n.advice=l[e[1]]||"";break;case "message":n.data=b||"";break;case "event":try{var x=i.parse(b);n.name=x.name;n.args=x.args}catch(y){}n.args=n.args||[];break;case "json":try{n.data=i.parse(b)}catch(I){}break;case "connect":n.qs=b||"";break;case "ack":if(e=b.match(/^([0-9]+)(\+)?(.*)/))if(n.ackId=
e[1],n.args=[],e[3])try{n.args=e[3]?i.parse(e[3]):[]}catch(E){}}return n};e.decodePayload=function(b){if("\ufffd"==b.charAt(0)){for(var i=[],g=1,j="";g<b.length;g++)"\ufffd"==b.charAt(g)?(i.push(e.decodePacket(b.substr(g+1).substr(0,j))),g+=Number(j)+1,j=""):j+=b.charAt(g);return i}return[e.decodePacket(b)]}})("undefined"!=typeof io?io:module.exports,"undefined"!=typeof io?io:module.parent.exports);
(function(b,g){function e(b,e){this.socket=b;this.sessid=e}b.Transport=e;g.util.mixin(e,g.EventEmitter);e.prototype.onData=function(b){this.clearCloseTimeout();(this.connected||this.connecting||this.reconnecting)&&this.setCloseTimeout();if(""!==b&&(b=g.parser.decodePayload(b))&&b.length)for(var e=0,l=b.length;e<l;e++)this.onPacket(b[e]);return this};e.prototype.onPacket=function(b){if("heartbeat"==b.type)return this.onHeartbeat();if("connect"==b.type&&""==b.endpoint)this.onConnect();this.socket.onPacket(b);
return this};e.prototype.setCloseTimeout=function(){if(!this.closeTimeout){var b=this;this.closeTimeout=setTimeout(function(){b.onDisconnect()},this.socket.closeTimeout)}};e.prototype.onDisconnect=function(){this.close&&this.open&&this.close();this.clearTimeouts();this.socket.onDisconnect();return this};e.prototype.onConnect=function(){this.socket.onConnect();return this};e.prototype.clearCloseTimeout=function(){if(this.closeTimeout)clearTimeout(this.closeTimeout),this.closeTimeout=null};e.prototype.clearTimeouts=
function(){this.clearCloseTimeout();this.reopenTimeout&&clearTimeout(this.reopenTimeout)};e.prototype.packet=function(b){this.send(g.parser.encodePacket(b))};e.prototype.onHeartbeat=function(){this.packet({type:"heartbeat"})};e.prototype.onOpen=function(){this.open=!0;this.clearCloseTimeout();this.socket.onOpen()};e.prototype.onClose=function(){this.open=!1;this.socket.onClose();this.onDisconnect()};e.prototype.prepareUrl=function(){var b=this.socket.options;return this.scheme()+"://"+b.host+":"+
b.port+"/"+b.resource+"/"+g.protocol+"/"+this.name+"/"+this.sessid};e.prototype.ready=function(b,e){e.call(this)}})("undefined"!=typeof io?io:module.exports,"undefined"!=typeof io?io:module.parent.exports);
(function(b,g,e){function j(b){this.options={port:80,secure:!1,document:"document"in e?document:!1,resource:"socket.io",transports:g.transports,"connect timeout":1E4,"try multiple transports":!0,reconnect:!0,"reconnection delay":500,"reconnection limit":Infinity,"reopen delay":3E3,"max reconnection attempts":10,"sync disconnect on unload":!0,"auto connect":!0,"flash policy port":10843};g.util.merge(this.options,b);this.reconnecting=this.connecting=this.open=this.connected=!1;this.namespaces={};this.buffer=
[];this.doBuffer=!1;if(this.options["sync disconnect on unload"]&&(!this.isXDomain()||g.util.ua.hasCORS)){var i=this;g.util.on(e,"beforeunload",function(){i.disconnectSync()},!1)}this.options["auto connect"]&&this.connect()}function m(){}b.Socket=j;g.util.mixin(j,g.EventEmitter);j.prototype.of=function(b){this.namespaces[b]||(this.namespaces[b]=new g.SocketNamespace(this,b),""!==b&&this.namespaces[b].packet({type:"connect"}));return this.namespaces[b]};j.prototype.publish=function(){this.emit.apply(this,
arguments);var b,i;for(i in this.namespaces)this.namespaces.hasOwnProperty(i)&&(b=this.of(i),b.$emit.apply(b,arguments))};j.prototype.handshake=function(b){function i(i){if(i instanceof Error)e.onError(i.message);else b.apply(null,i.split(":"))}var e=this,j=this.options,j=["http"+(j.secure?"s":"")+":/",j.host+":"+j.port,j.resource,g.protocol,g.util.query(this.options.query,"t="+ +new Date)].join("/");if(this.isXDomain()&&!g.util.ua.hasCORS){var r=document.getElementsByTagName("script")[0],t=document.createElement("script");
t.src=j+"&jsonp="+g.j.length;r.parentNode.insertBefore(t,r);g.j.push(function(b){i(b);t.parentNode.removeChild(t)})}else{var s=g.util.request();s.open("GET",j,!0);s.onreadystatechange=function(){if(4==s.readyState)s.onreadystatechange=m,200==s.status?i(s.responseText):!e.reconnecting&&e.onError(s.responseText)};s.send(null)}};j.prototype.getTransport=function(b){for(var b=b||this.transports,i=0,e;e=b[i];i++)if(g.Transport[e]&&g.Transport[e].check(this)&&(!this.isXDomain()||g.Transport[e].xdomainCheck()))return new g.Transport[e](this,
this.sessionid);return null};j.prototype.connect=function(b){if(this.connecting)return this;var e=this;this.handshake(function(j,m,r,t){function s(b){e.transport&&e.transport.clearTimeouts();e.transport=e.getTransport(b);if(!e.transport)return e.publish("connect_failed");e.transport.ready(e,function(){e.connecting=!0;e.publish("connecting",e.transport.name);e.transport.open();if(e.options["connect timeout"])e.connectTimeoutTimer=setTimeout(function(){if(!e.connected&&(e.connecting=!1,e.options["try multiple transports"])){if(!e.remainingTransports)e.remainingTransports=
e.transports.slice(0);for(var b=e.remainingTransports;0<b.length&&b.splice(0,1)[0]!=e.transport.name;);b.length?s(b):e.publish("connect_failed")}},e.options["connect timeout"])})}e.sessionid=j;e.closeTimeout=1E3*r;e.heartbeatTimeout=1E3*m;e.transports=g.util.intersect(t.split(","),e.options.transports);s();e.once("connect",function(){clearTimeout(e.connectTimeoutTimer);b&&"function"==typeof b&&b()})});return this};j.prototype.packet=function(b){this.connected&&!this.doBuffer?this.transport.packet(b):
this.buffer.push(b);return this};j.prototype.setBuffer=function(b){this.doBuffer=b;if(!b&&this.connected&&this.buffer.length)this.transport.payload(this.buffer),this.buffer=[]};j.prototype.disconnect=function(){this.connected&&(this.open&&this.of("").packet({type:"disconnect"}),this.onDisconnect("booted"));return this};j.prototype.disconnectSync=function(){g.util.request().open("GET",this.resource+"/"+g.protocol+"/"+this.sessionid,!0);this.onDisconnect("booted")};j.prototype.isXDomain=function(){var b=
e.location.port||("https:"==e.location.protocol?443:80);return this.options.host!==e.location.hostname||this.options.port!=b};j.prototype.onConnect=function(){if(!this.connected)this.connected=!0,this.connecting=!1,this.doBuffer||this.setBuffer(!1),this.emit("connect")};j.prototype.onOpen=function(){this.open=!0};j.prototype.onClose=function(){this.open=!1};j.prototype.onPacket=function(b){this.of(b.endpoint).onPacket(b)};j.prototype.onError=function(b){b&&b.advice&&"reconnect"===b.advice&&this.connected&&
(this.disconnect(),this.reconnect());this.publish("error",b&&b.reason?b.reason:b)};j.prototype.onDisconnect=function(b){var e=this.connected;this.open=this.connecting=this.connected=!1;e&&(this.transport.close(),this.transport.clearTimeouts(),this.publish("disconnect",b),"booted"!=b&&this.options.reconnect&&!this.reconnecting&&this.reconnect())};j.prototype.reconnect=function(){function b(){if(g.connected){for(var j in g.namespaces)g.namespaces.hasOwnProperty(j)&&""!==j&&g.namespaces[j].packet({type:"connect"});
g.publish("reconnect",g.transport.name,g.reconnectionAttempts)}g.removeListener("connect_failed",e);g.removeListener("connect",e);g.reconnecting=!1;delete g.reconnectionAttempts;delete g.reconnectionDelay;delete g.reconnectionTimer;delete g.redoTransports;g.options["try multiple transports"]=m}function e(){if(g.reconnecting){if(g.connected)return b();if(g.connecting&&g.reconnecting)return g.reconnectionTimer=setTimeout(e,1E3);g.reconnectionAttempts++>=j?g.redoTransports?(g.publish("reconnect_failed"),
b()):(g.on("connect_failed",e),g.options["try multiple transports"]=!0,g.transport=g.getTransport(),g.redoTransports=!0,g.connect()):(g.reconnectionDelay<t&&(g.reconnectionDelay*=2),g.connect(),g.publish("reconnecting",g.reconnectionDelay,g.reconnectionAttempts),g.reconnectionTimer=setTimeout(e,g.reconnectionDelay))}}this.reconnecting=!0;this.reconnectionAttempts=0;this.reconnectionDelay=this.options["reconnection delay"];var g=this,j=this.options["max reconnection attempts"],m=this.options["try multiple transports"],
t=this.options["reconnection limit"];this.options["try multiple transports"]=!1;this.reconnectionTimer=setTimeout(e,this.reconnectionDelay);this.on("connect",e)}})("undefined"!=typeof io?io:module.exports,"undefined"!=typeof io?io:module.parent.exports,this);
(function(b,g){function e(b,e){this.socket=b;this.name=e||"";this.flags={};this.json=new j(this,"json");this.ackPackets=0;this.acks={}}function j(b,e){this.namespace=b;this.name=e}b.SocketNamespace=e;g.util.mixin(e,g.EventEmitter);e.prototype.$emit=g.EventEmitter.prototype.emit;e.prototype.of=function(){return this.socket.of.apply(this.socket,arguments)};e.prototype.packet=function(b){b.endpoint=this.name;this.socket.packet(b);this.flags={};return this};e.prototype.send=function(b,e){var g={type:this.flags.json?
"json":"message",data:b};if("function"==typeof e)g.id=++this.ackPackets,g.ack=!0,this.acks[g.id]=e;return this.packet(g)};e.prototype.emit=function(b){var e=Array.prototype.slice.call(arguments,1),g=e[e.length-1],j={type:"event",name:b};if("function"==typeof g)j.id=++this.ackPackets,j.ack="data",this.acks[j.id]=g,e=e.slice(0,e.length-1);j.args=e;return this.packet(j)};e.prototype.disconnect=function(){""===this.name?this.socket.disconnect():(this.packet({type:"disconnect"}),this.$emit("disconnect"));
return this};e.prototype.onPacket=function(b){function e(){i.packet({type:"ack",args:g.util.toArray(arguments),ackId:b.id})}var i=this;switch(b.type){case "connect":this.$emit("connect");break;case "disconnect":if(""===this.name)this.socket.onDisconnect(b.reason||"booted");else this.$emit("disconnect",b.reason);break;case "message":case "json":var j=["message",b.data];"data"==b.ack?j.push(e):b.ack&&this.packet({type:"ack",ackId:b.id});this.$emit.apply(this,j);break;case "event":j=[b.name].concat(b.args);
"data"==b.ack&&j.push(e);this.$emit.apply(this,j);break;case "ack":this.acks[b.ackId]&&(this.acks[b.ackId].apply(this,b.args),delete this.acks[b.ackId]);break;case "error":if(b.advice)this.socket.onError(b);else"unauthorized"==b.reason?this.$emit("connect_failed",b.reason):this.$emit("error",b.reason)}};j.prototype.send=function(){this.namespace.flags[this.name]=!0;this.namespace.send.apply(this.namespace,arguments)};j.prototype.emit=function(){this.namespace.flags[this.name]=!0;this.namespace.emit.apply(this.namespace,
arguments)}})("undefined"!=typeof io?io:module.exports,"undefined"!=typeof io?io:module.parent.exports);
(function(b,g,e){function j(b){g.Transport.apply(this,arguments)}b.websocket=j;g.util.inherit(j,g.Transport);j.prototype.name="websocket";j.prototype.open=function(){var b=g.util.query(this.socket.options.query),j=this,i;i||(i=e.MozWebSocket||e.WebSocket);this.websocket=new i(this.prepareUrl()+b);this.websocket.onopen=function(){j.onOpen();j.socket.setBuffer(!1)};this.websocket.onmessage=function(b){j.onData(b.data)};this.websocket.onclose=function(){j.onClose();j.socket.setBuffer(!0)};this.websocket.onerror=
function(b){j.onError(b)};return this};j.prototype.send=function(b){this.websocket.send(b);return this};j.prototype.payload=function(b){for(var e=0,g=b.length;e<g;e++)this.packet(b[e]);return this};j.prototype.close=function(){this.websocket.close();return this};j.prototype.onError=function(b){this.socket.onError(b)};j.prototype.scheme=function(){return this.socket.options.secure?"wss":"ws"};j.check=function(){return"WebSocket"in e&&!("__addTask"in WebSocket)||"MozWebSocket"in e};j.xdomainCheck=function(){return!0};
g.transports.push("websocket")})("undefined"!=typeof io?io.Transport:module.exports,"undefined"!=typeof io?io:module.parent.exports,this);
(function(b,g,e){function j(b){if(b)g.Transport.apply(this,arguments),this.sendBuffer=[]}function m(){}b.XHR=j;g.util.inherit(j,g.Transport);j.prototype.open=function(){this.socket.setBuffer(!1);this.onOpen();this.get();this.setCloseTimeout();return this};j.prototype.payload=function(b){for(var e=[],j=0,m=b.length;j<m;j++)e.push(g.parser.encodePacket(b[j]));this.send(g.parser.encodePayload(e))};j.prototype.send=function(b){this.post(b);return this};j.prototype.post=function(b){function g(){if(4==
this.readyState)if(this.onreadystatechange=m,o.posting=!1,200==this.status)o.socket.setBuffer(!1);else o.onClose()}function j(){this.onload=m;o.socket.setBuffer(!1)}var o=this;this.socket.setBuffer(!0);this.sendXHR=this.request("POST");e.XDomainRequest&&this.sendXHR instanceof XDomainRequest?this.sendXHR.onload=this.sendXHR.onerror=j:this.sendXHR.onreadystatechange=g;this.sendXHR.send(b)};j.prototype.close=function(){this.onClose();return this};j.prototype.request=function(b){var e=g.util.request(this.socket.isXDomain()),
j=g.util.query(this.socket.options.query,"t="+ +new Date);e.open(b||"GET",this.prepareUrl()+j,!0);if("POST"==b)try{e.setRequestHeader?e.setRequestHeader("Content-type","text/plain;charset=UTF-8"):e.contentType="text/plain"}catch(m){}return e};j.prototype.scheme=function(){return this.socket.options.secure?"https":"http"};j.check=function(b,e){try{if(g.util.request(e))return!0}catch(j){}return!1};j.xdomainCheck=function(){return j.check(null,!0)}})("undefined"!=typeof io?io.Transport:module.exports,
"undefined"!=typeof io?io:module.parent.exports,this);
(function(b,g,e){function j(){g.Transport.XHR.apply(this,arguments)}function m(){}b["xhr-polling"]=j;g.util.inherit(j,g.Transport.XHR);g.util.merge(j,g.Transport.XHR);j.prototype.name="xhr-polling";j.prototype.open=function(){g.Transport.XHR.prototype.open.call(this);return!1};j.prototype.get=function(){function b(){if(4==this.readyState)if(this.onreadystatechange=m,200==this.status)j.onData(this.responseText),j.get();else j.onClose()}function g(){this.onload=m;j.onData(this.responseText);j.get()}
if(this.open){var j=this;this.xhr=this.request();e.XDomainRequest&&this.xhr instanceof XDomainRequest?this.xhr.onload=this.xhr.onerror=g:this.xhr.onreadystatechange=b;this.xhr.send(null)}};j.prototype.onClose=function(){g.Transport.XHR.prototype.onClose.call(this);if(this.xhr){this.xhr.onreadystatechange=this.xhr.onload=m;try{this.xhr.abort()}catch(b){}this.xhr=null}};j.prototype.ready=function(b,e){var j=this;g.util.defer(function(){e.call(j)})};g.transports.push("xhr-polling")})("undefined"!=typeof io?
io.Transport:module.exports,"undefined"!=typeof io?io:module.parent.exports,this);
(function(b,g,e){function j(b){g.Transport["xhr-polling"].apply(this,arguments);this.index=g.j.length;var e=this;g.j.push(function(b){e._(b)})}var m=e.document&&"MozAppearance"in e.document.documentElement.style;b["jsonp-polling"]=j;g.util.inherit(j,g.Transport["xhr-polling"]);j.prototype.name="jsonp-polling";j.prototype.post=function(b){function e(){j();m.socket.setBuffer(!1)}function j(){m.iframe&&m.form.removeChild(m.iframe);try{x=document.createElement('<iframe name="'+m.iframeId+'">')}catch(b){x=
document.createElement("iframe"),x.name=m.iframeId}x.id=m.iframeId;m.form.appendChild(x);m.iframe=x}var m=this,r=g.util.query(this.socket.options.query,"t="+ +new Date+"&i="+this.index);if(!this.form){var t=document.createElement("form"),s=document.createElement("textarea"),A=this.iframeId="socketio_iframe_"+this.index,x;t.className="socketio";t.style.position="absolute";t.style.top="-1000px";t.style.left="-1000px";t.target=A;t.method="POST";t.setAttribute("accept-charset","utf-8");s.name="d";t.appendChild(s);
document.body.appendChild(t);this.form=t;this.area=s}this.form.action=this.prepareUrl()+r;j();this.area.value=g.JSON.stringify(b);try{this.form.submit()}catch(y){}this.iframe.attachEvent?x.onreadystatechange=function(){"complete"==m.iframe.readyState&&e()}:this.iframe.onload=e;this.socket.setBuffer(!0)};j.prototype.get=function(){var b=this,e=document.createElement("script"),j=g.util.query(this.socket.options.query,"t="+ +new Date+"&i="+this.index);if(this.script)this.script.parentNode.removeChild(this.script),
this.script=null;e.async=!0;e.src=this.prepareUrl()+j;e.onerror=function(){b.onClose()};j=document.getElementsByTagName("script")[0];j.parentNode.insertBefore(e,j);this.script=e;m&&setTimeout(function(){var b=document.createElement("iframe");document.body.appendChild(b);document.body.removeChild(b)},100)};j.prototype._=function(b){this.onData(b);this.open&&this.get();return this};j.prototype.ready=function(b,e){var j=this;if(!m)return e.call(this);g.util.load(function(){e.call(j)})};j.check=function(){return"document"in
e};j.xdomainCheck=function(){return!0};g.transports.push("jsonp-polling")})("undefined"!=typeof io?io.Transport:module.exports,"undefined"!=typeof io?io:module.parent.exports,this);/*
 Copyright 2007-2012 Christine Blachford. All rights reserved
*/
$(function(b){b.spc={};b.spc.inDevelopment=!1;b.spc.socketConnected=!1;b.spc.queueUpdates=!1;b.spc.expressions=[];b.spc.alertQueue=[];b.spc.inDevelopment&&log("debug");b("body").on("keydown",handleInput);if(b(".more-button").length)b(".more-button").on("click",expandNavigation);if(b("img[data-low-res],img[data-hi-res]").length)b("img[data-low-res],img[data-hi-res]").one("inview",lazyLoadImage);bindCommentEvents();displayNotificationsSwitch();displayAudioPingSwitch();displayAdminLink();setTimeout(websocketHandshake,
1E3)});function allowsLocalStorage(){if(!$.spc.useLocalStorage)$.spc.useLocalStorage=!!("localStorage"in window&&null!==window.localStorage);return $.spc.useLocalStorage}function getStorage(b){return!allowsLocalStorage()?void 0:window.localStorage.getItem(b)||""}function setStorage(b,g){allowsLocalStorage()&&window.localStorage.setItem(b,g)}function isNotificationsCapable(){if(!$.spc.notificationsCapable)$.spc.notificationsCapable=!!window.webkitNotifications;return $.spc.notificationsCapable}
function isHtml5AudioCapable(){if(!$.spc.html5AudioCapable)$.spc.html5AudioCapable=!(!document.createElement("audio").canPlayType||!document.createElement("audio").canPlayType("audio/mpeg"));return $.spc.html5AudioCapable}function isRetinaDisplay(){if(!$.spc.retinaDisplay)$.spc.retinaDisplay=void 0!==window.devicePixelRatio;return $.spc.retinaDisplay}function isMobileConnection(){if(!$.spc.mobileConnection)$.spc.mobileConnection=!1;return $.spc.mobileConnection}
function isAdmin(){if(!$.spc.isAdmin)$.spc.isAdmin="true"===getStorage("is-admin")?!0:!1;return $.spc.isAdmin}function getClientKey(){if(!$.spc.clientPageKey)$.spc.clientPageKey=Math.floor(65535*Math.random());return $.spc.clientPageKey}function updateDocumentTitle(b){resetDocumentTitle();document.title="["+b+"] "+document.title;$(document).one("mousemove mousedown mousewheel keydown focus touchstart touchmove",resetDocumentTitle)}
function resetDocumentTitle(){document.title=document.title.replace(/\[.*\]/g,"")}function regexCache(b,g,e){if($.spc.expressions[b])return $.spc.expressions[b];g=RegExp(g,e);return $.spc.expressions[b]=g}
function handleInput(b){var g=!0;if($(b.target).is("textarea")){27===b.which&&($(b.target).val(""),g=!1);if(66===b.which&&(b.ctrlKey||b.metaKey))$(".strong-button").click(),g=!1;if(73===b.which&&(b.ctrlKey||b.metaKey))$(".em-button").click(),g=!1;return g}if(!b.ctrlKey&&!b.altKey&&!b.metaKey&&!b.shiftKey&&!$(b.target).is("input,textarea"))return 67===b.which&&($(".more-button").click(),g=!1),g}
function lazyLoadImage(){var b,g;b=$(this).data("low-res");g=$(this).data("hi-res");isRetinaDisplay()?$(this).attr("src",g):$(this).attr("src",b)}
function websocketHandshake(){var b=0,g="",b=$.spc.inDevelopment?8080:80,g=$.spc.inDevelopment?"192.168.1.16":"messaging.sidepodcast.com",b=io.connect(g,{port:b,resource:"connect"});b.on("connect",function(){$.spc.socketConnected=!0});b.on("disconnect",function(){$.spc.socketConnected=!1});b.on("message",function(b){if(null!=b&&(b=jQuery.parseJSON(b),!(null==b||null==b.messageType)))switch(b.messageType){case "message-publish":displayAlert(b.messagePayload);break;case "comment-add":addToComments(b.messagePayload);
break;case "message-debug":log(b.messagePayload)}})}function displayAdminLink(){var b,g;g=0;isAdmin()&&$(".admin-link").length&&(b=$(".admin-link"),g=b.data("content-id"),g=$("<a />",{href:"/admin/content?id="+g+"",text:"[Edit]"}),b.append(g))}
function displayAlert(b){function g(b){b=$("<li />",{"class":"alert-item alert-item-slide-out bg-hatch-2",html:b}).prepend($("<span />",{"class":"close-button",html:"\u2716"}));b.find(".close-button").on("click",function(){$(this).parent().addTransitionClass("alert-item-slide-out",{callback:function(){$(this).remove();setTimeout(j,500)}})});return b}function e(b){var e;e=$(".alert-items");e.length||(e=$("<ul />",{"class":"alert-items"}).prependTo("body"));e.find("li").length===m?$.spc.alertQueue.push(b):
(b=g(b),b.appendTo(e),b.removeTransitionClass("alert-item-slide-out"))}function j(){$.spc.alertQueue.length&&(e($.spc.alertQueue[0]),$.spc.alertQueue.shift())}var m=3;null!=b&&e(b)}
function expandNavigation(b){var g,e;g=$(b.target||b);e=$(".hdr-contents-bounds");e.length||(e=$(createNavigation()),$(".hdr-nav-bounds").append(e));g.toggleClass("rt-disclosure-rotated");e.hasClass("hdr-contents-bounds-auto")?e.removeTransitionClass("hdr-contents-bounds-auto"):e.addTransitionClass("hdr-contents-bounds-auto");b.preventDefault();return!1}
function createNavigation(){var b;return'<div class="hdr-contents-bounds bg-carbon"><div class=hdr-contents-shell><div class=bdr-cutaway><nav><h1>Features</h1><ul><li><a href=/dashboard>Dashboard</a><li><a href=/calendar>F1 calendar</a><li><a href=/twitter>F1 on Twitter</a><li><a href=/events>Live events</a><li><a href=/comments>Recent comments</a><li><a href=/archive>Sidepodcast archive</a></ul><h1>Help</h1><ul><li><a href=/about/essential-sidepodcast>Essential Sidepodcast</a><li><a href=/about/potted-history>Potted history</a><li><a href=/about/elsewhere>Sidepodcast elsewhere</a><li><a href=/about/shows>Show selector</a><li><a href=/about/writing-a-guest-post>Writing a guest post</a></ul></nav><nav><h1>Shows</h1><ul><li><a href=/category/an-aside-with-joe>An Aside with Joe</a><li><a href=/category/f1-debrief>F1 Debrief</a><li><a href=/category/f1-digest>F1 Digest</a><li><a href=/category/video>F1 Video</a><li><a href=/category/inside-track>Inside Track</a><li><a href=/category/live-streaming>Live Streaming</a><li><a href=/category/mini-series>Mini Series</a><li><a href=/category/mini-series-omnibus>Mini Series (Omnibus)</a><li><a href=/category/parade-lap>Parade Lap</a><li><a href=/category/sidepodchat>SidepodChat</a><li><a href=/category/sidepodpanel>SidepodPanel</a><li><a href=/category/sidepodradio>SidepodRadio</a></ul></nav><nav><h1>Opinion</h1><ul><li><a href=/category/behind-the-scenes>Behind the scenes</a><li><a href=/category/character-cup>Character cup</a><li><a href=/category/christines-rankings>Christine\'s Rankings</a><li><a href=/category/f1-views>F1 views</a><li><a href=/category/gaming>Gaming</a><li><a href=/category/guest-posts>Guest posts</a><li><a href=/category/not-quite-f1>Not quite F1</a><li><a href=/category/politics>Politics</a><li><a href=/category/polls>Polls</a><li><a href=/category/post-race-debate>Post race debate</a><li><a href=/category/reviews>Reviews</a><li><a href=/category/thursday-thoughts>Thursday thoughts</a><li><a href=/category/tweets-of-the-week>Tweets of the week</a></ul></nav><nav><h1>F1 Coverage</h1><ul><li><a href=/category/f1-news>F1 news</a><li><a href=/category/highlights>Highlights</a><li><a href=/category/launches>Launches</a><li><a href=/category/f1-coverage>Media coverage</a><li><a href=/category/on-this-day>On this day in F1</a><li><a href=/category/live-comments>Race commenting</a><li><a href=/category/race-schedules>Race schedules</a><li><a href=/category/results>Results</a><li><a href=/category/standings>Standings</a><li><a href=/category/f1-statistics-and-analysis>Stats and analysis</a><li><a href=/category/technical>Technical</a><li><a href=/category/testing>Testing</a></ul></nav><nav><h1>Community</h1><ul><li><a href=/category/competitions>Competitions</a><li><a href=/category/friday-fun>Friday fun</a><li><a href=/category/giggles-radio>Giggles Radio</a><li><a href=/category/meetups>Meetups</a><li><a href=/category/satire>Satire</a><li><a href=/category/sidepodfilmclub>SidepodFilmClub</a><li><a href=/category/sidepodscience>SidepodScience</a><li><a href=/category/sidepodtour>SidepodTour</a><li><a href=/category/your-stories>Your stories</a></ul></nav></div><p class="hdr-contents-more bdr-cutaway"><a href=/contents>All content \u00bb</a></div></div>'};function bindCommentEvents(){if($(".comments-list").length||$(".comment-form").length)$("input,textarea").on("keydown cut paste",enablePending),$(document).on("click",".cmnt-hdr",toggleCommentInfo),$(document).on("click",".cmnt p",selectComment),$(document).on("click",".comment-error",hideCommentError),$(".comment-form > fieldset > legend").on("click",togglePersonalDetails),$(".comment-form").on("submit",submitComment),$(".new-comment").on("click",toggleCommentFormatting),$(".new-comment,.author").on("keyup input focus",
liveCommentPreview),$("#author,#email,#url").on("blur",storePersonalDetails),setupCommentForm()}function enablePending(){if(!$.spc.queueUpdates)$.spc.queueUpdates=!0}
function displayPending(){var b,g=0;b=function(){var b=$(".pending-count");b.length||(b=$('<div class="pending-count pending-count-slide-out bg-hatch-1"><div class=pending-text>0</div><div>pending</div></div>'),b.prependTo("body"),b.on("click",function(){displayComments(!0);$(this).hasClass("pending-count-slide-out")||$(this).addTransitionClass("pending-count-slide-out",{callback:function(){$(this).find(".pending-text").text(0)}})}));b.hasClass("pending-count-slide-out")&&b.removeTransitionClass("pending-count-slide-out");
return b}().find(".pending-text");g=b.text();g++;g=b.text(g)}
function displayNotificationsSwitch(){var b=!1,b=!1,g="";$(".toggle-switches").length&&isNotificationsCapable()&&(b=window.webkitNotifications.checkPermission(),2!==b&&(0===b&&(b=getStorage("notifications-enabled"),"true"===b&&(g="checked")),g=$("<input id=notifications-checkbox type=checkbox "+g+" class=tick-box> <label for=notifications-checkbox>Notifications</label>"),g.closest("input").on("click",function(){var b=$(this);b.is(":checked")?0===!window.webkitNotifications.checkPermission()?setStorage("notifications-enabled",
!0):window.webkitNotifications.requestPermission(function(){0===window.webkitNotifications.checkPermission()?setStorage("notifications-enabled",!0):b.attr("checked",!1)}):setStorage("notifications-enabled",!1)}),$(".toggle-switches").append(g)))}
function displayAudioPingSwitch(){var b=!1,g="";$(".toggle-switches").length&&isHtml5AudioCapable()&&(b=getStorage("audio-ping-enabled"),"true"===b&&(g="checked"),b=$("<input id=audio-ping-checkbox type=checkbox "+g+" class=tick-box> <label for=audio-ping-checkbox>Audio alerts</label>"),g=$("<audio type=audio/mpeg class=audio-ping>"),b.closest("input").on("click",function(){$(this).is(":checked")?setStorage("audio-ping-enabled",!0):setStorage("audio-ping-enabled",!1)}),g.on("play",function(){$(this).attr("src")||
$(this).attr("src","http://static.sidepodcast.com/soundfx/newcomment.mp3")}),$(".toggle-switches").append(b,g))}function storePersonalDetails(){$("#remember").is(":checked")&&setStorage($(this).attr("id"),$(this).val())}function setupCommentForm(){"true"===getStorage("personal-details-hidden")&&$(".comment-form > fieldset > legend").click();$("#author,#email,#url").attr("value",function(){return getStorage($(this).attr("id"))});displaySaveDetails()}
function displaySaveDetails(){var b,g=!1;b=$("<p><span class=label-like-spacer></span> <input id=remember type=checkbox class=tick-box> <label for=remember>Remember</label></p>");g=getStorage("personal-details-remember");"true"===g&&b.find("input").attr("checked",!0);b.find("input").on("click",function(){$(this).is(":checked")?($("#author,#email,#url").attr("value",function(){return setStorage($(this).attr("id"),$(this).val())}),setStorage("personal-details-remember",!0)):($("#author,#email,#url").attr("value",
function(){return setStorage($(this).attr("id"),"")}),setStorage("personal-details-remember",!1))});$(".comment-details").append(b)}
function togglePersonalDetails(){var b,g,e;b=$(this).closest("form");b.find(".comment-details").hasClass("comment-details-hidden")?(e=b.find("legend"),e.toggleClass("rt-disclosure-rotated").html("Personal details"),b.find(".comment-details").removeTransitionClass("comment-details-hidden"),setStorage("personal-details-hidden",!1)):(g=getStorage("author"),g=trimText(g,50),e=b.find("legend"),e.toggleClass("rt-disclosure-rotated"),g.length&&e.html("Commenting as "+g+""),b.find(".comment-details").addTransitionClass("comment-details-hidden"),
setStorage("personal-details-hidden",!0))}function displayComments(b){var g;$.spc.queueUpdates=!1;g=$(".comment-hidden:first");g.length&&(b&&$("html,body").animate({scrollTop:g.offset().top}),displayComment())}function displayComment(){var b;b=$(".comment-hidden:first");b.length&&b.addTransitionClass("comment-auto",{callback:function(){$(this).toggleClass("comment-hidden comment-auto",!1);displayComment()}})}
function toggleCommentInfo(){var b,g,e;e=0;var j="",m="";g=0;var l="";b=$(this);g=b.closest("li");e=g.find(".cmnt-sub-hdr");e.length||(e=g.attr("id").replace(/\D+/,""),j=g.closest("div.comments").data("base-url"),j="http://sidepodcast.com"+j+"#comment-"+e+"",m=encodeURIComponent(j),g=g.index(),g++,isAdmin()&&(l="<a href=/admin/comment?id="+e+">Edit</a> | "),e=$("<div class=cmnt-sub-hdr>"+("<strong><a href="+j+">#"+g+"</a></strong>")+" "+("<em>"+l+"<a href=/sharer?f=comment&a=microblog&t=Sidepodcast&u="+
m+">Share</a></em>")+"</div>"),b.after(e));e.hasClass("cmnt-sub-hdr-auto")?e.removeTransitionClass("cmnt-sub-hdr-auto"):e.addTransitionClass("cmnt-sub-hdr-auto")}
function selectComment(b){var g,e,j,m=0,l=0,i="";g=$(this);if(!g.is("a")&&!g.hasClass("selected-comment")&&(e=$(".new-comment"),e.length))$(".quote-popover").length&&$(".quote-popover").find(".close-button").click(),g.toggleClass("selected-comment",!0),j=$("<div />",{"class":"quote-popover bg-hatch-2"}).prepend($("<span />",{"class":"close-button",html:"\u2716"})).append($("<span />",{"class":"quote-popover-text",html:"Reply to selected quote?"})).append($("<input />",{"class":"small-button",type:"button",
value:"Reply"})),j.prependTo("body"),m=g.position().left,l=b.pageY+18,j.closest("div").css({left:m,top:l}),j.addTransitionClass("quote-popover-visible",{callback:function(){j.closest("div").css({left:m,top:l})}}),j.find("span").on("click",function(){j.removeTransitionClass("quote-popover-visible",{callback:function(){$(this).remove();g.toggleClass("selected-comment",!1)}})}),j.find("input").on("click",function(){i="<blockquote>"+g.html()+"</blockquote>";insertContent(e,i);j.removeTransitionClass("quote-popover-visible",
{callback:function(){$(this).remove();g.toggleClass("selected-comment",!1);$("html,body").animate({scrollTop:e.offset().top},function(){})}})})}
function toggleCommentFormatting(){var b,g,e,j,m;b=$(".comment-formatting");b.length&&!b.children().length&&(g=b.closest("form").find("textarea"),e=$("<input />",{"class":"small-button strong-button",type:"button",value:"B",click:function(){insertContent(g,"<strong>","</strong>")}}),j=$("<input />",{"class":"small-button em-button",type:"button",value:"I",click:function(){insertContent(g,"<em>","</em>")}}),m=$("<input />",{"class":"small-button del-button",type:"button",value:"Del",click:function(){insertContent(g,
"<del>","</del>")}}),b.append(e,j,m))}function insertContent(b,g,e){var j,m=0,l=0;j=0;if(b.length)e||(e=""),j=b.get(0),"selectionStart"in document.createElement("textarea")?(m=j.selectionStart,l=j.selectionEnd,b=j.value.substr(j.selectionStart,l-m),j.value=j.value.substr(0,m)+g+b+e+j.value.substr(l,j.value.length)):(b.focus(),b=document.selection.createRange(),b.text=g+selection.text+e),liveCommentPreview()}
function liveCommentPreview(){var b,g,e,j;e=g="";b=$(".new-comment").closest("form");g=b.find(".author");e=b.find(".new-comment");j=b.find(".comment-preview");b=j.find("div");e.val().length?(b.length||(b=$('<div class=preview-comment><div class="preview-comment-header bg-hatch-1"></div><div class=preview-comment-body></div></div>'),b.appendTo(j),b.addTransitionClass("preview-comment-auto")),g=g.val().replace(/(<\/?)script/g,"$1noscript"),e=e.val().replace(/(<\/?)script/g,"$1noscript"),e=formatLinks(e),
e=formatParagraphs(e,!1),b.find(".preview-comment-header").html(g),b.find(".preview-comment-body").html(e)):b.length&&b.removeTransitionClass("preview-comment-auto",{callback:function(){this.remove()}})}
function submitComment(){var b,g=0,e,j,m="",l="",i="",n="",o=0;if($.spc.socketConnected)return b=$(this).closest("form"),g=b.find("input[name=thread]").val(),e=b.find("input[type=submit]"),j=b.find("textarea"),m=b.find("input[name=author]").val(),l=b.find("input[name=email]").val(),i=b.find("input[name=url]").val(),n=j.val(),o=getClientKey(),g={thread:g,author:m,email:l,url:i,comment:n,key:o},e.attr("disabled",!0),$.ajax({url:"/api/submit-comment",data:g,type:"POST",dataType:"json",success:function(e){e?
e.error?showCommentError(e.error,b):(j.val("").blur().focus(),$(".comment-error").click()):showCommentError("Sorry, an unexpected error occurred.",b)},error:function(){showCommentError("Sorry, an error occurred.",b)},complete:function(){e.attr("disabled",!1)}}),!1}function showCommentError(b,g){var e;e=g.find(".comment-error");e.length||(e=$("<p />",{"class":"comment-error"}),g.find(".comment-body").prepend(e));e.text(b)}function hideCommentError(){$(this).remove()}
function addToComments(b){var g,e=g=0,e=!1,j=e="",m="",l="",i;if(null!=b&&(g=$(".comment-form").find("input[name=thread]").val(),e=b.content_management_id,g==e)){g=$(".comments-list");if(!g.length){e=$(".no-comment");if(!e.length)return;g=$("<ul />",{"class":"comments-list"});e.replaceWith(g)}e=g.find("li#comment-"+b.comment_id+"").length;if(!e&&(e=formatDateFromTimestamp(b.comment_date_timestamp),j=formatTimeFromTimestamp(b.comment_date_timestamp),l=trimText(b.comment_author,40),m+="<li id=comment-"+
b.comment_id+" class=comment-hidden>",m=m+'<div class="cmnt-hdr bg-hatch-1">'+("<strong>"+l+"</strong>")+" "+("<em>"+e+" at "+j+"</em>")+"</div>"+("<div class=cmnt>"+b.comment_content+"</div>"),m=$(m),g.append(m),b.client_shared_key===getClientKey()?$(".pending-count").length?$(".pending-count").click():displayComments(!0):$.spc.queueUpdates?displayPending():displayComments(),b.client_shared_key!==getClientKey()&&(updateDocumentTitle("Unread comments"),"true"===getStorage("audio-ping-enabled")&&$(".audio-ping").length&&
$(".audio-ping")[0].play(),"true"===getStorage("notifications-enabled")&&0===window.webkitNotifications.checkPermission())))i=window.webkitNotifications.createNotification("http://static.sidepodcast.com/image/apple-touch-icon.png",l,convertHtmlToText(b.comment_content)),i.show(),i.ondisplay=function(){setTimeout(function(){i.cancel()},8E3)}}}
function formatLinks(b){return b=b.replace(/(^|\s|<\/?(?:blockquote|p|li|th|td|em|strong|del)[^>]*>)(https?:\/\/[^< \n\r]+)/ig,function(b,e,j){b=shortenUrl(j);return e+'<a href="'+j+'">'+b+"</a>"})}function shortenUrl(b){b=$.trim(b);40<b.length&&(b=b.replace(/(http:\/\/|https:\/\/)/,""),b=b.substring(0,17)+"&#8230;"+b.substring(b.length,b.length-17));return b}function trimText(b,g,e){var j;b.length>g&&(j=e?"&#8230;":"...",b=b.substring(0,g-((e?1:3)+1)),b=$.trim(b),b=b+" "+j);return b}
function formatParagraphs(b,g){var e,j,m,l,i,n;l=!1;i=0;e=regexCache("htmlBlockStart","(<(?:object|param|embed|table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|option|form|map|area|blockquote|address|math|style|input|p|h[1-6]|hr|fieldset|legend|article|aside|audio|canvas|command|details|datalist|details|figure|figcaption|footer|header|hgroup|menu|nav|output|progress|section|summary|video|svg)[^>]*>)","ig");j=regexCache("htmlBlockEnd","(</(?:object|param|embed|table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|option|form|map|area|blockquote|address|math|style|input|p|h[1-6]|hr|fieldset|legend|article|aside|audio|canvas|command|details|datalist|details|figure|figcaption|footer|header|hgroup|menu|nav|output|progress|section|summary|video|svg)>)(?!\r)",
"ig");m=regexCache("htmlBlockMatch","(</?(?:object|param|embed|table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|option|form|map|area|blockquote|address|math|style|input|p|h[1-6]|hr|fieldset|legend|article|aside|audio|canvas|command|details|datalist|details|figure|figcaption|footer|header|hgroup|menu|nav|output|progress|section|summary|video|svg)[^>]*>)","ig");l=regexCache("blockquoteStart","(<blockquote[^>]*>)(?!\r)","ig");i=regexCache("blockquouteEnd","(</blockquote>)",
"ig");n=regexCache("lineSplit","(\n)","ig");b=b.replace(e,"\n$1");b=b.replace(j,"$1\n");b=b.replace(l,"$1\n");b=b.replace(i,"\n$1");e=b.split(n);b="";for(i=0;i<e.length;i++)j=e[i],0!==j.length&&(j=$.trim(j),(l=j.match(m))?b+=j:0<j.length?b+="<p>"+j+"</p>\n":g&&(b+="<br>\n"));return b}
function convertHtmlToText(b){b=b.replace(/\n/ig,"");b=b.replace(/(<(?:p|li|td|th)[^>]*>)/ig," ");b=b.replace(/(<\/(?:tr)>)/ig,".");b=b.replace(/(<\/(?:caption)>)/ig,":");b=b.replace(/(<img[^>]*alt=\"(.*?)\"[^>]*>)/ig,"[Image: $2] ");b=b.replace(/(<blockquote[^>]*>)/ig,"{");b=b.replace(/(<\/blockquote>)/ig,"}");b=b.replace(/(<\/?strong>)/ig,"*");b=b.replace(/&#8230;/ig,"...");b=b.replace(/(<([^>]+)>)/ig,"");return b=$.trim(b)};

