(function(b,d){function e(a,f,b){if(b===d&&a.nodeType===1)if(b=a.getAttribute("data-"+f),typeof b==="string"){try{b=b==="true"?!0:b==="false"?!1:b==="null"?null:!c.isNaN(b)?parseFloat(b):R.test(b)?c.parseJSON(b):b}catch(h){}c.data(a,f,b)}else b=d;return b}function g(){return!1}function k(){return!0}function m(a,f,b){b[0].type=a;return c.event.handle.apply(f,b)}function s(a){var f,b,h,n,d,e,l,p,g,k,o,m=[];n=[];d=c._data(this,E);if(typeof d==="function")d=d.events;if(!(a.liveFired===this||!d||!d.live||
a.target.disabled||a.button&&a.type==="click")){a.namespace&&(o=RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)"));a.liveFired=this;var u=d.live.slice(0);for(l=0;l<u.length;l++)d=u[l],d.origType.replace(S,"")===a.type?n.push(d.selector):u.splice(l--,1);n=c(a.target).closest(n,a.currentTarget);p=0;for(g=n.length;p<g;p++){k=n[p];for(l=0;l<u.length;l++)if(d=u[l],k.selector===d.selector&&(!o||o.test(d.namespace))){e=k.elem;h=null;if(d.preType==="mouseenter"||d.preType==="mouseleave")a.type=
d.preType,h=c(a.relatedTarget).closest(d.selector)[0];(!h||h!==e)&&m.push({elem:e,handleObj:d,level:k.level})}}p=0;for(g=m.length;p<g;p++){n=m[p];if(b&&n.level>b)break;a.currentTarget=n.elem;a.data=n.handleObj.data;a.handleObj=n.handleObj;o=n.handleObj.origHandler.apply(n.elem,arguments);if(o===!1||a.isPropagationStopped())if(b=n.level,o===!1&&(f=!1),a.isImmediatePropagationStopped())break}return f}}function q(a,f){return(a&&a!=="*"?a+".":"")+f.replace(w,"`").replace(y,"&")}function z(a,f,b){if(c.isFunction(f))return c.grep(a,
function(a,c){return!!f.call(a,c,a)===b});else if(f.nodeType)return c.grep(a,function(a){return a===f===b});else if(typeof f==="string"){var h=c.grep(a,function(a){return a.nodeType===1});if(Ia.test(f))return c.filter(f,h,!b);else f=c.filter(f,h)}return c.grep(a,function(a){return c.inArray(a,f)>=0===b})}function T(a,f){if(f.nodeType===1&&c.hasData(a)){var b=c.expando,h=c.data(a),n=c.data(f,h);if(h=h[b]){var d=h.events,n=n[b]=c.extend({},h);if(d){delete n.handle;n.events={};for(var e in d){b=0;for(h=
d[e].length;b<h;b++)c.event.add(f,e,d[e][b],d[e][b].data)}}}}}function C(a,f){if(f.nodeType===1){var b=f.nodeName.toLowerCase();f.clearAttributes();f.mergeAttributes(a);if(b==="object")f.outerHTML=a.outerHTML;else if(b==="input"&&(a.type==="checkbox"||a.type==="radio")){if(a.checked)f.defaultChecked=f.checked=a.checked;if(f.value!==a.value)f.value=a.value}else if(b==="option")f.selected=a.defaultSelected;else if(b==="input"||b==="textarea")f.defaultValue=a.defaultValue;f.removeAttribute(c.expando)}}
function D(a,f){f.src?c.ajax({url:f.src,async:!1,dataType:"script"}):c.globalEval(f.text||f.textContent||f.innerHTML||"");f.parentNode&&f.parentNode.removeChild(f)}function x(a,f,b){var h=f==="width"?a.offsetWidth:a.offsetHeight;if(b==="border")return h;c.each(f==="width"?Ja:Ka,function(){b||(h-=parseFloat(c.css(a,"padding"+this))||0);b==="margin"?h+=parseFloat(c.css(a,"margin"+this))||0:h-=parseFloat(c.css(a,"border"+this+"Width"))||0});return h}function F(a){return function(f,b){var j;typeof f!==
"string"&&(b=f,f="*");if(c.isFunction(b))for(var h=f.toLowerCase().split(pa),d=0,v=h.length,e,l;d<v;d++)e=h[d],(l=/^\+/.test(e))&&(e=e.substr(1)||"*"),j=a[e]=a[e]||[],e=j,e[l?"unshift":"push"](b)}}function u(a,f,c,b,n,v){n=n||f.dataTypes[0];v=v||{};v[n]=!0;for(var n=a[n],e=0,l=n?n.length:0,p=a===ia,g;e<l&&(p||!g);e++)g=n[e](f,c,b),typeof g==="string"&&(v[g]?g=d:(f.dataTypes.unshift(g),g=u(a,f,c,b,g,v)));if((p||!g)&&!v["*"])g=u(a,f,c,b,"*",v);return g}function B(a,f,b,h){c.isArray(f)&&f.length?c.each(f,
function(f,d){b||La.test(a)?h(a,d):B(a+"["+(typeof d==="object"||c.isArray(d)?f:"")+"]",d,b,h)}):!b&&f!=null&&typeof f==="object"?c.isArray(f)||c.isEmptyObject(f)?h(a,""):c.each(f,function(f,c){B(a+"["+f+"]",c,b,h)}):h(a,f)}function J(a,f){var b={};c.each(qa.concat.apply([],qa.slice(0,f)),function(){b[this]=a});return b}function H(a){if(!ja[a]){var f=c("<"+a+">").appendTo("body"),b=f.css("display");f.remove();if(b==="none"||b==="")b="block";ja[a]=b}return ja[a]}function P(a){return c.isWindow(a)?
a:a.nodeType===9?a.defaultView||a.parentWindow:!1}var o=b.document,c=function(){function a(){if(!f.isReady){try{o.documentElement.doScroll("left")}catch(c){setTimeout(a,1);return}f.ready()}}var f=function(a,c){return new f.fn.init(a,c,n)},c=b.jQuery,h=b.$,n,v=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,e=/\S/,l=/^\s+/,g=/\s+$/,k=/\d/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,u=/^[\],:{}\s]*$/,B=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,r=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,
s=/(webkit)[ \/]([\w.]+)/,H=/(opera)(?:.*version)?[ \/]([\w.]+)/,K=/(msie) ([\w.]+)/,Ma=/(mozilla)(?:.*? rv:([\w.]+))?/,A=navigator.userAgent,ra=!1,ka,la="then done fail isResolved isRejected promise".split(" "),Y,Na=Object.prototype.toString,ma=Object.prototype.hasOwnProperty,P=Array.prototype.push,D=Array.prototype.slice,J=String.prototype.trim,sa=Array.prototype.indexOf,w={};f.fn=f.prototype={constructor:f,init:function(a,c,b){var j;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,
this.length=1,this;if(a==="body"&&!c&&o.body)return this.context=o,this[0]=o.body,this.selector="body",this.length=1,this;if(typeof a==="string")if((j=v.exec(a))&&(j[1]||!c))if(j[1])return b=(c=c instanceof f?c[0]:c)?c.ownerDocument||c:o,(a=m.exec(a))?f.isPlainObject(c)?(a=[o.createElement(a[1])],f.fn.attr.call(a,c,!0)):a=[b.createElement(a[1])]:(a=f.buildFragment([j[1]],[b]),a=(a.cacheable?f.clone(a.fragment):a.fragment).childNodes),f.merge(this,a);else{if((c=o.getElementById(j[2]))&&c.parentNode){if(c.id!==
j[2])return b.find(a);this.length=1;this[0]=c}this.context=o;this.selector=a;return this}else return!c||c.jquery?(c||b).find(a):this.constructor(c).find(a);else if(f.isFunction(a))return b.ready(a);if(a.selector!==d)this.selector=a.selector,this.context=a.context;return f.makeArray(a,this)},selector:"",jquery:"1.5",length:0,size:function(){return this.length},toArray:function(){return D.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,
c,b){var j=this.constructor();f.isArray(a)?P.apply(j,a):f.merge(j,a);j.prevObject=this;j.context=this.context;if(c==="find")j.selector=this.selector+(this.selector?" ":"")+b;else if(c)j.selector=this.selector+"."+c+"("+b+")";return j},each:function(a,c){return f.each(this,a,c)},ready:function(a){f.bindReady();ka.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(D.apply(this,
arguments),"slice",D.call(arguments).join(","))},map:function(a){return this.pushStack(f.map(this,function(f,c){return a.call(f,c,f)}))},end:function(){return this.prevObject||this.constructor(null)},push:P,sort:[].sort,splice:[].splice};f.fn.init.prototype=f.fn;f.extend=f.fn.extend=function(){var a,c,b,j,h,n=arguments[0]||{},K=1,e=arguments.length,v=!1;typeof n==="boolean"&&(v=n,n=arguments[1]||{},K=2);typeof n!=="object"&&!f.isFunction(n)&&(n={});e===K&&(n=this,--K);for(;K<e;K++)if((a=arguments[K])!=
null)for(c in a)b=n[c],j=a[c],n!==j&&(v&&j&&(f.isPlainObject(j)||(h=f.isArray(j)))?(h?(h=!1,b=b&&f.isArray(b)?b:[]):b=b&&f.isPlainObject(b)?b:{},n[c]=f.extend(v,b,j)):j!==d&&(n[c]=j));return n};f.extend({noConflict:function(a){b.$=h;if(a)b.jQuery=c;return f},isReady:!1,readyWait:1,ready:function(a){a===!0&&f.readyWait--;if(!f.readyWait||a!==!0&&!f.isReady){if(!o.body)return setTimeout(f.ready,1);f.isReady=!0;a!==!0&&--f.readyWait>0||(ka.resolveWith(o,[f]),f.fn.trigger&&f(o).trigger("ready").unbind("ready"))}},
bindReady:function(){if(!ra){ra=!0;if(o.readyState==="complete")return setTimeout(f.ready,1);if(o.addEventListener)o.addEventListener("DOMContentLoaded",Y,!1),b.addEventListener("load",f.ready,!1);else if(o.attachEvent){o.attachEvent("onreadystatechange",Y);b.attachEvent("onload",f.ready);var c=!1;try{c=b.frameElement==null}catch(j){}o.documentElement.doScroll&&c&&a()}}},isFunction:function(a){return f.type(a)==="function"},isArray:Array.isArray||function(a){return f.type(a)==="array"},isWindow:function(a){return a&&
typeof a==="object"&&"setInterval"in a},isNaN:function(a){return a==null||!k.test(a)||isNaN(a)},type:function(a){return a==null?String(a):w[Na.call(a)]||"object"},isPlainObject:function(a){if(!a||f.type(a)!=="object"||a.nodeType||f.isWindow(a))return!1;if(a.constructor&&!ma.call(a,"constructor")&&!ma.call(a.constructor.prototype,"isPrototypeOf"))return!1;for(var c in a);return c===d||ma.call(a,c)},isEmptyObject:function(a){for(var f in a)return!1;return!0},error:function(a){throw a;},parseJSON:function(a){if(typeof a!==
"string"||!a)return null;a=f.trim(a);if(u.test(a.replace(B,"@").replace(r,"]").replace(q,"")))return b.JSON&&b.JSON.parse?b.JSON.parse(a):(new Function("return "+a))();else f.error("Invalid JSON: "+a)},parseXML:function(a,c,j){b.DOMParser?(j=new DOMParser,c=j.parseFromString(a,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(a));j=c.documentElement;(!j||!j.nodeName||j.nodeName==="parsererror")&&f.error("Invalid XML: "+a);return c},noop:function(){},globalEval:function(a){if(a&&
e.test(a)){var c=o.getElementsByTagName("head")[0]||o.documentElement,b=o.createElement("script");b.type="text/javascript";f.support.scriptEval()?b.appendChild(o.createTextNode(a)):b.text=a;c.insertBefore(b,c.firstChild);c.removeChild(b)}},nodeName:function(a,f){return a.nodeName&&a.nodeName.toUpperCase()===f.toUpperCase()},each:function(a,c,b){var j,h=0,n=a.length,K=n===d||f.isFunction(a);if(b)if(K)for(j in a){if(c.apply(a[j],b)===!1)break}else for(;h<n;){if(c.apply(a[h++],b)===!1)break}else if(K)for(j in a){if(c.call(a[j],
j,a[j])===!1)break}else for(b=a[0];h<n&&c.call(b,h,b)!==!1;b=a[++h]);return a},trim:J?function(a){return a==null?"":J.call(a)}:function(a){return a==null?"":a.toString().replace(l,"").replace(g,"")},makeArray:function(a,c){var b=c||[];if(a!=null){var j=f.type(a);a.length==null||j==="string"||j==="function"||j==="regexp"||f.isWindow(a)?P.call(b,a):f.merge(b,a)}return b},inArray:function(a,f){if(f.indexOf)return f.indexOf(a);for(var c=0,b=f.length;c<b;c++)if(f[c]===a)return c;return-1},merge:function(a,
f){var c=a.length,b=0;if(typeof f.length==="number")for(var j=f.length;b<j;b++)a[c++]=f[b];else for(;f[b]!==d;)a[c++]=f[b++];a.length=c;return a},grep:function(a,f,c){for(var b=[],j,c=!!c,h=0,d=a.length;h<d;h++)j=!!f(a[h],h),c!==j&&b.push(a[h]);return b},map:function(a,f,c){for(var b=[],j,h=0,d=a.length;h<d;h++)j=f(a[h],h,c),j!=null&&(b[b.length]=j);return b.concat.apply([],b)},guid:1,proxy:function(a,c,b){arguments.length===2&&(typeof c==="string"?(b=a,a=b[c],c=d):c&&!f.isFunction(c)&&(b=c,c=d));
!c&&a&&(c=function(){return a.apply(b||this,arguments)});if(a)c.guid=a.guid=a.guid||c.guid||f.guid++;return c},access:function(a,c,b,j,h,n){var K=a.length;if(typeof c==="object"){for(var e in c)f.access(a,e,c[e],j,h,b);return a}if(b!==d){j=!n&&j&&f.isFunction(b);for(e=0;e<K;e++)h(a[e],c,j?b.call(a[e],e,h(a[e],c)):b,n);return a}return K?h(a[0],c):d},now:function(){return(new Date).getTime()},_Deferred:function(){var a=[],c,b,j,h={done:function(){if(!j){var b=arguments,d,n,K,e,v;c&&(v=c,c=0);d=0;for(n=
b.length;d<n;d++)K=b[d],e=f.type(K),e==="array"?h.done.apply(h,K):e==="function"&&a.push(K);v&&h.resolveWith(v[0],v[1])}return this},resolveWith:function(f,h){if(!j&&!c&&!b){b=1;try{for(;a[0];)a.shift().apply(f,h)}finally{c=[f,h],b=0}}return this},resolve:function(){h.resolveWith(f.isFunction(this.promise)?this.promise():this,arguments);return this},isResolved:function(){return!(!b&&!c)},cancel:function(){j=1;a=[];return this}};return h},Deferred:function(a){var c=f._Deferred(),b=f._Deferred(),j;
f.extend(c,{then:function(a,f){c.done(a).fail(f);return this},fail:b.done,rejectWith:b.resolveWith,reject:b.resolve,isRejected:b.isResolved,promise:function(a,f){if(a==null){if(j)return j;j=a={}}for(f=la.length;f--;)a[la[f]]=c[la[f]];return a}});c.then(b.cancel,c.cancel);delete c.cancel;a&&a.call(c,c);return c},when:function(a){var c=arguments,b=c.length,j=b<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),h=j.promise(),d;b>1?(d=Array(b),f.each(c,function(a,c){f.when(c).then(function(f){d[a]=arguments.length>
1?D.call(arguments,0):f;--b||j.resolveWith(h,d)},j.reject)})):j!==a&&j.resolve(a);return h},uaMatch:function(a){a=a.toLowerCase();a=s.exec(a)||H.exec(a)||K.exec(a)||a.indexOf("compatible")<0&&Ma.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},sub:function(){function a(f,c){return new a.fn.init(f,c)}f.extend(!0,a,this);a.superclass=this;a.fn=a.prototype=this();a.fn.constructor=a;a.subclass=this.subclass;a.fn.init=function(b,j){j&&j instanceof f&&!(j instanceof a)&&(j=a(j));return f.fn.init.call(this,
b,j,c)};a.fn.init.prototype=a.fn;var c=a(o);return a},browser:{}});ka=f._Deferred();f.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,f){w["[object "+f+"]"]=f.toLowerCase()});A=f.uaMatch(A);if(A.browser)f.browser[A.browser]=!0,f.browser.version=A.version;if(f.browser.webkit)f.browser.safari=!0;if(sa)f.inArray=function(a,f){return sa.call(f,a)};e.test("\u00a0")&&(l=/^[\s\xA0]+/,g=/[\s\xA0]+$/);n=f(o);o.addEventListener?Y=function(){o.removeEventListener("DOMContentLoaded",
Y,!1);f.ready()}:o.attachEvent&&(Y=function(){o.readyState==="complete"&&(o.detachEvent("onreadystatechange",Y),f.ready())});return b.jQuery=b.$=f}();(function(){c.support={};var a=o.createElement("div");a.style.display="none";a.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var f=a.getElementsByTagName("*"),j=a.getElementsByTagName("a")[0],h=o.createElement("select"),d=h.appendChild(o.createElement("option"));if(f&&f.length&&
j){c.support={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:a.getElementsByTagName("input")[0].value==="on",optSelected:d.selected,deleteExpando:!0,optDisabled:!1,checkClone:!1,_scriptEval:null,noCloneEvent:!0,boxModel:null,inlineBlockNeedsLayout:!1,
shrinkWrapBlocks:!1,reliableHiddenOffsets:!0};h.disabled=!0;c.support.optDisabled=!d.disabled;c.support.scriptEval=function(){if(c.support._scriptEval===null){var a=o.documentElement,f=o.createElement("script"),j="script"+c.now();f.type="text/javascript";try{f.appendChild(o.createTextNode("window."+j+"=1;"))}catch(h){}a.insertBefore(f,a.firstChild);b[j]?(c.support._scriptEval=!0,delete b[j]):c.support._scriptEval=!1;a.removeChild(f)}return c.support._scriptEval};try{delete a.test}catch(e){c.support.deleteExpando=
!1}a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function l(){c.support.noCloneEvent=!1;a.detachEvent("onclick",l)}),a.cloneNode(!0).fireEvent("onclick"));a=o.createElement("div");a.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";f=o.createDocumentFragment();f.appendChild(a.firstChild);c.support.checkClone=f.cloneNode(!0).cloneNode(!0).lastChild.checked;c(function(){var a=o.createElement("div"),f=o.getElementsByTagName("body")[0];if(f){a.style.width=a.style.paddingLeft=
"1px";f.appendChild(a);c.boxModel=c.support.boxModel=a.offsetWidth===2;if("zoom"in a.style)a.style.display="inline",a.style.zoom=1,c.support.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="<div style='width:4px;'></div>",c.support.shrinkWrapBlocks=a.offsetWidth!==2;a.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";var b=a.getElementsByTagName("td");c.support.reliableHiddenOffsets=b[0].offsetHeight===0;b[0].style.display="";b[1].style.display=
"none";c.support.reliableHiddenOffsets=c.support.reliableHiddenOffsets&&b[0].offsetHeight===0;a.innerHTML="";f.removeChild(a).style.display="none"}});f=function(a){var f=o.createElement("div"),a="on"+a;if(!f.attachEvent)return!0;var c=a in f;c||(f.setAttribute(a,"return;"),c=typeof f[a]==="function");return c};c.support.submitBubbles=f("submit");c.support.changeBubbles=f("change");a=f=j=null}})();var R=/^(?:\{.*\}|\[.*\])$/;c.extend({cache:{},uuid:0,expando:"jQuery"+(c.fn.jquery+Math.random()).replace(/\D/g,
""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?c.cache[a[c.expando]]:a[c.expando];return!!a&&!c.isEmptyObject(a)},data:function(a,f,b,h){if(c.acceptData(a)){var n=c.expando,e=typeof f==="string",t=a.nodeType,l=t?c.cache:a,g=t?a[c.expando]:a[c.expando]&&c.expando;if(g&&(!h||!g||l[g][n])||!(e&&b===d)){if(!g)t?a[c.expando]=g=++c.uuid:g=c.expando;l[g]||(l[g]={});typeof f==="object"&&(h?l[g][n]=c.extend(l[g][n],f):l[g]=c.extend(l[g],
f));a=l[g];h&&(a[n]||(a[n]={}),a=a[n]);b!==d&&(a[f]=b);if(f==="events"&&!a[f])return a[n]&&a[n].events;return e?a[f]:a}}},removeData:function(a,f,j){if(c.acceptData(a)){var h=c.expando,d=a.nodeType,e=d?c.cache:a,g=d?a[c.expando]:c.expando;if(e[g]){if(f){var l=j?e[g][h]:e[g];if(l&&(delete l[f],!c.isEmptyObject(l)))return}if(j&&(delete e[g][h],!c.isEmptyObject(e[g])))return;f=e[g][h];c.support.deleteExpando||e!=b?delete e[g]:e[g]=null;f?(e[g]={},e[g][h]=f):d&&(c.support.deleteExpando?delete a[c.expando]:
a.removeAttribute?a.removeAttribute(c.expando):a[c.expando]=null)}}},_data:function(a,f,b){return c.data(a,f,b,!0)},acceptData:function(a){if(a.nodeName){var f=c.noData[a.nodeName.toLowerCase()];if(f)return!(f===!0||a.getAttribute("classid")!==f)}return!0}});c.fn.extend({data:function(a,f){var b=null;if(typeof a==="undefined"){if(this.length&&(b=c.data(this[0]),this[0].nodeType===1))for(var h=this[0].attributes,n,v=0,g=h.length;v<g;v++)n=h[v].name,n.indexOf("data-")===0&&(n=n.substr(5),e(this[0],
n,b[n]));return b}else if(typeof a==="object")return this.each(function(){c.data(this,a)});var l=a.split(".");l[1]=l[1]?"."+l[1]:"";return f===d?(b=this.triggerHandler("getData"+l[1]+"!",[l[0]]),b===d&&this.length&&(b=c.data(this[0],a),b=e(this[0],a,b)),b===d&&l[1]?this.data(l[0]):b):this.each(function(){var b=c(this),j=[l[0],f];b.triggerHandler("setData"+l[1]+"!",j);c.data(this,a,f);b.triggerHandler("changeData"+l[1]+"!",j)})},removeData:function(a){return this.each(function(){c.removeData(this,
a)})}});c.extend({queue:function(a,f,b){if(a){var f=(f||"fx")+"queue",h=c._data(a,f);if(!b)return h||[];!h||c.isArray(b)?h=c._data(a,f,c.makeArray(b)):h.push(b);return h}},dequeue:function(a,f){var f=f||"fx",b=c.queue(a,f),h=b.shift();h==="inprogress"&&(h=b.shift());h&&(f==="fx"&&b.unshift("inprogress"),h.call(a,function(){c.dequeue(a,f)}));b.length||c.removeData(a,f+"queue",!0)}});c.fn.extend({queue:function(a,f){typeof a!=="string"&&(f=a,a="fx");if(f===d)return c.queue(this[0],a);return this.each(function(){var b=
c.queue(this,a,f);a==="fx"&&b[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,f){a=c.fx?c.fx.speeds[a]||a:a;f=f||"fx";return this.queue(f,function(){var b=this;setTimeout(function(){c.dequeue(b,f)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var U=/[\n\t\r]/g,O=/\s+/,W=/\r/g,L=/^(?:href|src|style)$/,G=/^(?:button|input)$/i,r=/^(?:button|input|object|select|textarea)$/i,Oa=/^a(?:rea)?$/i,ca=/^(?:radio|checkbox)$/i;
c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};c.fn.extend({attr:function(a,f){return c.access(this,a,f,!0,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(f){var b=c(this);b.addClass(a.call(this,
f,b.attr("class")))});if(a&&typeof a==="string")for(var f=(a||"").split(O),b=0,h=this.length;b<h;b++){var d=this[b];if(d.nodeType===1)if(d.className){for(var e=" "+d.className+" ",g=d.className,l=0,p=f.length;l<p;l++)e.indexOf(" "+f[l]+" ")<0&&(g+=" "+f[l]);d.className=c.trim(g)}else d.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(f){var b=c(this);b.removeClass(a.call(this,f,b.attr("class")))});if(a&&typeof a==="string"||a===d)for(var f=(a||"").split(O),
b=0,h=this.length;b<h;b++){var n=this[b];if(n.nodeType===1&&n.className)if(a){for(var e=(" "+n.className+" ").replace(U," "),g=0,l=f.length;g<l;g++)e=e.replace(" "+f[g]+" "," ");n.className=c.trim(e)}else n.className=""}return this},toggleClass:function(a,f){var b=typeof a,h=typeof f==="boolean";if(c.isFunction(a))return this.each(function(b){var j=c(this);j.toggleClass(a.call(this,b,j.attr("class"),f),f)});return this.each(function(){if(b==="string")for(var d,e=0,g=c(this),l=f,p=a.split(O);d=p[e++];)l=
h?l:!g.hasClass(d),g[l?"addClass":"removeClass"](d);else if(b==="undefined"||b==="boolean")this.className&&c._data(this,"__className__",this.className),this.className=this.className||a===!1?"":c._data(this,"__className__")||""})},hasClass:function(a){for(var a=" "+a+" ",f=0,c=this.length;f<c;f++)if((" "+this[f].className+" ").replace(U," ").indexOf(a)>-1)return!0;return!1},val:function(a){if(!arguments.length){var f=this[0];if(f){if(c.nodeName(f,"option")){var b=f.attributes.value;return!b||b.specified?
f.value:f.text}if(c.nodeName(f,"select")){var h=f.selectedIndex,b=[],n=f.options,f=f.type==="select-one";if(h<0)return null;for(var e=f?h:0,h=f?h+1:n.length;e<h;e++){var g=n[e];if(g.selected&&(c.support.optDisabled?!g.disabled:g.getAttribute("disabled")===null)&&(!g.parentNode.disabled||!c.nodeName(g.parentNode,"optgroup"))){a=c(g).val();if(f)return a;b.push(a)}}return b}if(ca.test(f.type)&&!c.support.checkOn)return f.getAttribute("value")===null?"on":f.value;return(f.value||"").replace(W,"")}return d}var l=
c.isFunction(a);return this.each(function(f){var b=c(this),j=a;if(this.nodeType===1)if(l&&(j=a.call(this,f,b.val())),j==null?j="":typeof j==="number"?j+="":c.isArray(j)&&(j=c.map(j,function(a){return a==null?"":a+""})),c.isArray(j)&&ca.test(this.type))this.checked=c.inArray(b.val(),j)>=0;else if(c.nodeName(this,"select")){var h=c.makeArray(j);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),h)>=0});if(!h.length)this.selectedIndex=-1}else this.value=j})}});c.extend({attrFn:{val:!0,
css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,f,b,h){if(!a||a.nodeType===3||a.nodeType===8||a.nodeType===2)return d;if(h&&f in c.attrFn)return c(a)[f](b);var h=a.nodeType!==1||!c.isXMLDoc(a),n=b!==d,f=h&&c.props[f]||f;if(a.nodeType===1){var e=L.test(f);if((f in a||a[f]!==d)&&h&&!e){n&&(f==="type"&&G.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed"),b===null?a.nodeType===1&&a.removeAttribute(f):a[f]=b);if(c.nodeName(a,"form")&&a.getAttributeNode(f))return a.getAttributeNode(f).nodeValue;
if(f==="tabIndex")return(f=a.getAttributeNode("tabIndex"))&&f.specified?f.value:r.test(a.nodeName)||Oa.test(a.nodeName)&&a.href?0:d;return a[f]}if(!c.support.style&&h&&f==="style"){if(n)a.style.cssText=""+b;return a.style.cssText}n&&a.setAttribute(f,""+b);if(!a.attributes[f]&&a.hasAttribute&&!a.hasAttribute(f))return d;a=!c.support.hrefNormalized&&h&&e?a.getAttribute(f,2):a.getAttribute(f);return a===null?d:a}n&&(a[f]=b);return a[f]}});var S=/\.(.*)$/,M=/^(?:textarea|input|select)$/i,w=/\./g,y=/ /g,
N=/[^\w\s.|`]/g,I=function(a){return a.replace(N,"\\$&")},E="events";c.event={add:function(a,f,j,h){if(!(a.nodeType===3||a.nodeType===8)){c.isWindow(a)&&a!==b&&!a.frameElement&&(a=b);if(j===!1)j=g;else if(!j)return;var n,e;if(j.handler)n=j,j=n.handler;if(!j.guid)j.guid=c.guid++;if(e=c._data(a)){var t=e[E],l=e.handle;if(typeof t==="function")l=t.handle,t=t.events;else if(!t)a.nodeType||(e[E]=e=function(){}),e.events=t={};if(!l)e.handle=l=function(){return typeof c!=="undefined"&&!c.event.triggered?
c.event.handle.apply(l.elem,arguments):d};l.elem=a;for(var f=f.split(" "),p,k=0,o;p=f[k++];){e=n?c.extend({},n):{handler:j,data:h};p.indexOf(".")>-1?(o=p.split("."),p=o.shift(),e.namespace=o.slice(0).sort().join(".")):(o=[],e.namespace="");e.type=p;if(!e.guid)e.guid=j.guid;var m=t[p],u=c.event.special[p]||{};if(!m&&(m=t[p]=[],!u.setup||u.setup.call(a,h,o,l)===!1))a.addEventListener?a.addEventListener(p,l,!1):a.attachEvent&&a.attachEvent("on"+p,l);if(u.add&&(u.add.call(a,e),!e.handler.guid))e.handler.guid=
j.guid;m.push(e);c.event.global[p]=!0}a=null}}},global:{},remove:function(a,f,b,h){if(!(a.nodeType===3||a.nodeType===8)){b===!1&&(b=g);var n,e,t=0,l,p,o,k,m,u,B=c.hasData(a)&&c._data(a),r=B&&B[E];if(B&&r){if(typeof r==="function")B=r,r=r.events;if(f&&f.type)b=f.handler,f=f.type;if(!f||typeof f==="string"&&f.charAt(0)===".")for(n in f=f||"",r)c.event.remove(a,n+f);else{for(f=f.split(" ");n=f[t++];)if(k=n,l=n.indexOf(".")<0,p=[],l||(p=n.split("."),n=p.shift(),o=RegExp("(^|\\.)"+c.map(p.slice(0).sort(),
I).join("\\.(?:.*\\.)?")+"(\\.|$)")),m=r[n])if(b){k=c.event.special[n]||{};for(e=h||0;e<m.length;e++)if(u=m[e],b.guid===u.guid){if(l||o.test(u.namespace))h==null&&m.splice(e--,1),k.remove&&k.remove.call(a,u);if(h!=null)break}if(m.length===0||h!=null&&m.length===1)(!k.teardown||k.teardown.call(a,p)===!1)&&c.removeEvent(a,n,B.handle),delete r[n]}else for(e=0;e<m.length;e++)if(u=m[e],l||o.test(u.namespace))c.event.remove(a,k,u.handler,e),m.splice(e--,1);if(c.isEmptyObject(r)){if(f=B.handle)f.elem=null;
delete B.events;delete B.handle;typeof B==="function"?c.removeData(a,E,!0):c.isEmptyObject(B)&&c.removeData(a,d,!0)}}}}},trigger:function(a,f,b,h){var e=a.type||a;if(!h){a=typeof a==="object"?a[c.expando]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0)a.type=e=e.slice(0,-1),a.exclusive=!0;b||(a.stopPropagation(),c.event.global[e]&&c.each(c.cache,function(){var b=this[c.expando];b&&b.events&&b.events[e]&&c.event.trigger(a,f,b.handle.elem)}));if(!b||b.nodeType===3||b.nodeType===8)return d;
a.result=d;a.target=b;f=c.makeArray(f);f.unshift(a)}a.currentTarget=b;(h=b.nodeType?c._data(b,"handle"):(c._data(b,E)||{}).handle)&&h.apply(b,f);h=b.parentNode||b.ownerDocument;try{if((!b||!b.nodeName||!c.noData[b.nodeName.toLowerCase()])&&b["on"+e]&&b["on"+e].apply(b,f)===!1)a.result=!1,a.preventDefault()}catch(g){}if(!a.isPropagationStopped()&&h)c.event.trigger(a,f,h,!0);else if(!a.isDefaultPrevented()){var t,h=a.target,l=e.replace(S,""),p=c.nodeName(h,"a")&&l==="click",k=c.event.special[l]||{};
if((!k._default||k._default.call(b,a)===!1)&&!p&&(!h||!h.nodeName||!c.noData[h.nodeName.toLowerCase()])){try{if(h[l])(t=h["on"+l])&&(h["on"+l]=null),c.event.triggered=!0,h[l]()}catch(o){}t&&(h["on"+l]=t);c.event.triggered=!1}}},handle:function(a){var f,j,h,e;j=[];var g=c.makeArray(arguments),a=g[0]=c.event.fix(a||b.event);a.currentTarget=this;f=a.type.indexOf(".")<0&&!a.exclusive;if(!f)h=a.type.split("."),a.type=h.shift(),j=h.slice(0).sort(),h=RegExp("(^|\\.)"+j.join("\\.(?:.*\\.)?")+"(\\.|$)");a.namespace=
a.namespace||j.join(".");e=c._data(this,E);if(typeof e==="function")e=e.events;j=(e||{})[a.type];if(e&&j){j=j.slice(0);e=0;for(var t=j.length;e<t;e++){var l=j[e];if(f||h.test(l.namespace)){a.handler=l.handler;a.data=l.data;a.handleObj=l;l=l.handler.apply(this,g);if(l!==d)a.result=l,l===!1&&(a.preventDefault(),a.stopPropagation());if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(a){if(a[c.expando])return a;for(var f=a,a=c.Event(f),b=this.props.length,h;b;)h=this.props[--b],a[h]=f[h];if(!a.target)a.target=a.srcElement||o;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null)f=o.documentElement,b=o.body,a.pageX=a.clientX+(f&&f.scrollLeft||b&&b.scrollLeft||0)-(f&&f.clientLeft||b&&b.clientLeft||0),a.pageY=a.clientY+(f&&f.scrollTop||
b&&b.scrollTop||0)-(f&&f.clientTop||b&&b.clientTop||0);if(a.which==null&&(a.charCode!=null||a.keyCode!=null))a.which=a.charCode!=null?a.charCode:a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==d)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,q(a.origType,a.selector),c.extend({},a,{handler:s,guid:a.handler.guid}))},remove:function(a){c.event.remove(this,
q(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,j){if(c.isWindow(this))this.onbeforeunload=j},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};c.removeEvent=o.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||
a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?k:g):this.type=a;this.timeStamp=c.now();this[c.expando]=!0};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=k;var a=this.originalEvent;if(a)a.preventDefault?a.preventDefault():a.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=k;var a=this.originalEvent;if(a)a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=k;this.stopPropagation()},
isDefaultPrevented:g,isPropagationStopped:g,isImmediatePropagationStopped:g};var X=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this)a.type=a.data,c.event.handle.apply(this,arguments)}catch(j){}},da=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(j){c.event.add(this,b,j&&j.selector?da:X,a)},teardown:function(a){c.event.remove(this,b,a&&a.selector?
da:X)}}});if(!c.support.submitBubbles)c.event.special.submit={setup:function(){if(this.nodeName&&this.nodeName.toLowerCase()!=="form")c.event.add(this,"click.specialSubmit",function(a){var b=a.target,j=b.type;if((j==="submit"||j==="image")&&c(b).closest("form").length)return a.liveFired=d,m("submit",this,arguments)}),c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,j=b.type;if((j==="text"||j==="password")&&c(b).closest("form").length&&a.keyCode===13)return a.liveFired=d,m("submit",
this,arguments)});else return!1},teardown:function(){c.event.remove(this,".specialSubmit")}};if(!c.support.changeBubbles){var Z,ta=function(a){var b=a.type,j=a.value;if(b==="radio"||b==="checkbox")j=a.checked;else if(b==="select-multiple")j=a.selectedIndex>-1?c.map(a.options,function(a){return a.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")j=a.selectedIndex;return j},ea=function(a,b){var j=a.target,h,e;if(M.test(j.nodeName)&&!j.readOnly&&(h=c._data(j,"_change_data"),e=ta(j),
(a.type!=="focusout"||j.type!=="radio")&&c._data(j,"_change_data",e),!(h===d||e===h)))if(h!=null||e)return a.type="change",a.liveFired=d,c.event.trigger(a,b,j)};c.event.special.change={filters:{focusout:ea,beforedeactivate:ea,click:function(a){var b=a.target,c=b.type;if(c==="radio"||c==="checkbox"||b.nodeName.toLowerCase()==="select")return ea.call(this,a)},keydown:function(a){var b=a.target,c=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(c==="checkbox"||c==="radio")||
c==="select-multiple")return ea.call(this,a)},beforeactivate:function(a){a=a.target;c._data(a,"_change_data",ta(a))}},setup:function(){if(this.type==="file")return!1;for(var a in Z)c.event.add(this,a+".specialChange",Z[a]);return M.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return M.test(this.nodeName)}};Z=c.event.special.change.filters;Z.focus=Z.beforeactivate}o.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function j(a){a=c.event.fix(a);
a.type=b;return c.event.handle.call(this,a)}c.event.special[b]={setup:function(){this.addEventListener(a,j,!0)},teardown:function(){this.removeEventListener(a,j,!0)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(a,h,e){if(typeof a==="object"){for(var g in a)this[b](g,h,a[g],e);return this}if(c.isFunction(h)||h===!1)e=h,h=d;var t=b==="one"?c.proxy(e,function(a){c(this).unbind(a,t);return e.apply(this,arguments)}):e;if(a==="unload"&&b!=="one")this.one(a,h,e);else{g=0;for(var l=this.length;g<
l;g++)c.event.add(this[g],a,t,h)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault)for(var j in a)this.unbind(j,a[j]);else{j=0;for(var h=this.length;j<h;j++)c.event.remove(this[j],a,b)}return this},delegate:function(a,b,c,h){return this.live(b,c,h,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){var j=
c.Event(a);j.preventDefault();j.stopPropagation();c.event.trigger(j,b,this[0]);return j.result}},toggle:function(a){for(var b=arguments,j=1;j<b.length;)c.proxy(a,b[j++]);return this.click(c.proxy(a,function(h){var d=(c._data(this,"lastToggle"+a.guid)||0)%j;c._data(this,"lastToggle"+a.guid,d+1);h.preventDefault();return b[d].apply(this,arguments)||!1}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var ua={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};
c.each(["live","die"],function(a,b){c.fn[b]=function(a,h,e,g){var t,l=0,p,k,o=g||this.selector,g=g?this:c(this.context);if(typeof a==="object"&&!a.preventDefault){for(t in a)g[b](t,h,a[t],o);return this}c.isFunction(h)&&(e=h,h=d);for(a=(a||"").split(" ");(t=a[l++])!=null;)if(p=S.exec(t),k="",p&&(k=p[0],t=t.replace(S,"")),t==="hover")a.push("mouseenter"+k,"mouseleave"+k);else if(p=t,t==="focus"||t==="blur"?(a.push(ua[t]+k),t+=k):t=(ua[t]||t)+k,b==="live"){k=0;for(var m=g.length;k<m;k++)c.event.add(g[k],
"live."+q(t,o),{data:h,selector:o,handler:e,origType:t,origHandler:e,preType:p})}else g.unbind("live."+q(t,o),e);return this}});c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){c.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.bind(b,a,c):this.trigger(b)};c.attrFn&&(c.attrFn[b]=!0)});(function(){function a(a,
b,c,f,h,j){for(var h=0,d=f.length;h<d;h++){var e=f[h];if(e){for(var n=!1,e=e[a];e;){if(e.sizcache===c){n=f[e.sizset];break}if(e.nodeType===1&&!j)e.sizcache=c,e.sizset=h;if(e.nodeName.toLowerCase()===b){n=e;break}e=e[a]}f[h]=n}}}function b(a,c,f,h,j,e){for(var j=0,d=h.length;j<d;j++){var n=h[j];if(n){for(var g=!1,n=n[a];n;){if(n.sizcache===f){g=h[n.sizset];break}if(n.nodeType===1){if(!e)n.sizcache=f,n.sizset=j;if(typeof c!=="string"){if(n===c){g=!0;break}}else if(l.filter(c,[n]).length>0){g=n;break}}n=
n[a]}h[j]=g}}}var j=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,h=0,e=Object.prototype.toString,g=!1,t=!0;[0,0].sort(function(){t=!1;return 0});var l=function(a,b,c,f){var c=c||[],h=b=b||o;if(b.nodeType!==1&&b.nodeType!==9)return[];if(!a||typeof a!=="string")return c;var d,g,v,t,m,u=!0,r=l.isXML(b),q=[],s=a;do if(j.exec(""),d=j.exec(s))if(s=d[3],q.push(d[1]),d[2]){t=d[3];break}while(d);if(q.length>1&&k.exec(a))if(q.length===
2&&p.relative[q[0]])g=P(q[0]+q[1],b);else for(g=p.relative[q[0]]?[b]:l(q.shift(),b);q.length;)a=q.shift(),p.relative[a]&&(a+=q.shift()),g=P(a,g);else if(!f&&q.length>1&&b.nodeType===9&&!r&&p.match.ID.test(q[0])&&!p.match.ID.test(q[q.length-1])&&(d=l.find(q.shift(),b,r),b=d.expr?l.filter(d.expr,d.set)[0]:d.set[0]),b){d=f?{expr:q.pop(),set:B(f)}:l.find(q.pop(),q.length===1&&(q[0]==="~"||q[0]==="+")&&b.parentNode?b.parentNode:b,r);g=d.expr?l.filter(d.expr,d.set):d.set;for(q.length>0?v=B(g):u=!1;q.length;)d=
m=q.pop(),p.relative[m]?d=q.pop():m="",d==null&&(d=b),p.relative[m](v,d,r)}else v=[];v||(v=g);v||l.error(m||a);if(e.call(v)==="[object Array]")if(u)if(b&&b.nodeType===1)for(a=0;v[a]!=null;a++)v[a]&&(v[a]===!0||v[a].nodeType===1&&l.contains(b,v[a]))&&c.push(g[a]);else for(a=0;v[a]!=null;a++)v[a]&&v[a].nodeType===1&&c.push(g[a]);else c.push.apply(c,v);else B(v,c);t&&(l(t,h,c,f),l.uniqueSort(c));return c};l.uniqueSort=function(a){if(q&&(g=t,a.sort(q),g))for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,
1);return a};l.matches=function(a,b){return l(a,null,null,b)};l.matchesSelector=function(a,b){return l(b,null,null,[a]).length>0};l.find=function(a,b,c){var f;if(!a)return[];for(var h=0,j=p.order.length;h<j;h++){var d,e=p.order[h];if(d=p.leftMatch[e].exec(a)){var n=d[1];d.splice(1,1);if(n.substr(n.length-1)!=="\\"&&(d[1]=(d[1]||"").replace(/\\/g,""),f=p.find[e](d,b,c),f!=null)){a=a.replace(p.match[e],"");break}}}f||(f=typeof b.getElementsByTagName!=="undefined"?b.getElementsByTagName("*"):[]);return{set:f,
expr:a}};l.filter=function(a,b,c,f){for(var h,j,e=a,n=[],g=b,v=b&&b[0]&&l.isXML(b[0]);a&&b.length;){for(var t in p.filter)if((h=p.leftMatch[t].exec(a))!=null&&h[2]){var k,m,o=p.filter[t];m=h[1];j=!1;h.splice(1,1);if(m.substr(m.length-1)!=="\\"){g===n&&(n=[]);if(p.preFilter[t])if(h=p.preFilter[t](h,g,c,n,f,v)){if(h===!0)continue}else j=k=!0;if(h)for(var u=0;(m=g[u])!=null;u++)if(m){k=o(m,h,u,g);var q=f^!!k;c&&k!=null?q?j=!0:g[u]=!1:q&&(n.push(m),j=!0)}if(k!==d){c||(g=n);a=a.replace(p.match[t],"");
if(!j)return[];break}}}if(a===e)if(j==null)l.error(a);else break;e=a}return g};l.error=function(a){throw"Syntax error, unrecognized expression: "+a;};var p=l.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\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")}},relative:{"+":function(a,b){var c=typeof b==="string",f=c&&!/\W/.test(b),c=c&&!f;f&&(b=b.toLowerCase());for(var f=0,h=a.length,j;f<h;f++)if(j=a[f]){for(;(j=j.previousSibling)&&j.nodeType!==1;);a[f]=c||j&&j.nodeName.toLowerCase()===
b?j||!1:j===b}c&&l.filter(b,a,!0)},">":function(a,b){var c,f=typeof b==="string",h=0,j=a.length;if(f&&!/\W/.test(b))for(b=b.toLowerCase();h<j;h++){if(c=a[h])c=c.parentNode,a[h]=c.nodeName.toLowerCase()===b?c:!1}else{for(;h<j;h++)(c=a[h])&&(a[h]=f?c.parentNode:c.parentNode===b);f&&l.filter(b,a,!0)}},"":function(c,j,d){var e,n=h++,g=b;typeof j==="string"&&!/\W/.test(j)&&(e=j=j.toLowerCase(),g=a);g("parentNode",j,n,c,e,d)},"~":function(c,j,d){var e,n=h++,g=b;typeof j==="string"&&!/\W/.test(j)&&(e=j=
j.toLowerCase(),g=a);g("previousSibling",j,n,c,e,d)}},find:{ID:function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c)return(a=b.getElementById(a[1]))&&a.parentNode?[a]:[]},NAME:function(a,b){if(typeof b.getElementsByName!=="undefined"){for(var c=[],f=b.getElementsByName(a[1]),h=0,j=f.length;h<j;h++)f[h].getAttribute("name")===a[1]&&c.push(f[h]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!=="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,
b,c,f,h,j){a=" "+a[1].replace(/\\/g,"")+" ";if(j)return a;for(var j=0,d;(d=b[j])!=null;j++)d&&(h^(d.className&&(" "+d.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||f.push(d):c&&(b[j]=!1));return!1},ID:function(a){return a[1].replace(/\\/g,"")},TAG:function(a){return a[1].toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||l.error(a[0]);a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);
a[2]=b[1]+(b[2]||1)-0;a[3]=b[3]-0}else a[2]&&l.error(a[0]);a[0]=h++;return a},ATTR:function(a,b,c,f,h,j){b=a[1]=a[1].replace(/\\/g,"");!j&&p.attrMap[b]&&(a[1]=p.attrMap[b]);a[4]=(a[4]||a[5]||"").replace(/\\/g,"");a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(a,b,c,f,h){if(a[1]==="not")if((j.exec(a[3])||"").length>1||/^\w/.test(a[3]))a[3]=l(a[3],null,null,b);else return a=l.filter(a[3],b,c,1^h),c||f.push.apply(f,a),!1;else if(p.match.POS.test(a[0])||p.match.CHILD.test(a[0]))return!0;return a},
POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!l(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.type},radio:function(a){return"radio"===a.type},
checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,f){return b===f.length-
1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,f){var h=b[1],j=p.filters[h];if(j)return j(a,c,b,f);else if(h==="contains")return(a.textContent||a.innerText||l.getText([a])||"").indexOf(b[3])>=0;else if(h==="not"){b=b[3];c=0;for(f=b.length;c<f;c++)if(b[c]===a)return!1;return!0}else l.error(h)},CHILD:function(a,
b){var c=b[1],f=a;switch(c){case "only":case "first":for(;f=f.previousSibling;)if(f.nodeType===1)return!1;if(c==="first")return!0;f=a;case "last":for(;f=f.nextSibling;)if(f.nodeType===1)return!1;return!0;case "nth":var c=b[2],h=b[3];if(c===1&&h===0)return!0;var j=b[0],d=a.parentNode;if(d&&(d.sizcache!==j||!a.nodeIndex)){for(var e=0,f=d.firstChild;f;f=f.nextSibling)if(f.nodeType===1)f.nodeIndex=++e;d.sizcache=j}f=a.nodeIndex-h;return c===0?f===0:f%c===0&&f/c>=0}},ID:function(a,b){return a.nodeType===
1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],c=p.attrHandle[c]?p.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),f=c+"",h=b[2],j=b[4];return c==null?h==="!=":h==="="?f===j:h==="*="?f.indexOf(j)>=0:h==="~="?(" "+f+" ").indexOf(j)>=0:!j?f&&c!==!1:h==="!="?f!==j:h==="^="?f.indexOf(j)===0:h==="$="?f.substr(f.length-j.length)===
j:h==="|="?f===j||f.substr(0,j.length+1)===j+"-":!1},POS:function(a,b,c,f){var h=p.setFilters[b[2]];if(h)return h(a,c,b,f)}}},k=p.match.POS,m=function(a,b){return"\\"+(b-0+1)},u;for(u in p.match)p.match[u]=RegExp(p.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source),p.leftMatch[u]=RegExp(/(^(?:.|\r|\n)*?)/.source+p.match[u].source.replace(/\\(\d+)/g,m));var B=function(a,b){a=Array.prototype.slice.call(a,0);if(b)return b.push.apply(b,a),b;return a};try{Array.prototype.slice.call(o.documentElement.childNodes,
0)}catch(r){B=function(a,b){var c=0,f=b||[];if(e.call(a)==="[object Array]")Array.prototype.push.apply(f,a);else if(typeof a.length==="number")for(var h=a.length;c<h;c++)f.push(a[c]);else for(;a[c];c++)f.push(a[c]);return f}}var q,s;o.documentElement.compareDocumentPosition?q=function(a,b){if(a===b)return g=!0,0;if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(q=function(a,b){var c,f,h=[],j=[];c=a.parentNode;
f=b.parentNode;var d=c;if(a===b)return g=!0,0;else if(c===f)return s(a,b);else if(c){if(!f)return 1}else return-1;for(;d;)h.unshift(d),d=d.parentNode;for(d=f;d;)j.unshift(d),d=d.parentNode;c=h.length;f=j.length;for(d=0;d<c&&d<f;d++)if(h[d]!==j[d])return s(h[d],j[d]);return d===c?s(a,j[d],-1):s(h[d],b,1)},s=function(a,b,c){if(a===b)return c;for(a=a.nextSibling;a;){if(a===b)return-1;a=a.nextSibling}return 1});l.getText=function(a){for(var b="",c,f=0;a[f];f++)c=a[f],c.nodeType===3||c.nodeType===4?b+=
c.nodeValue:c.nodeType!==8&&(b+=l.getText(c.childNodes));return b};(function(){var a=o.createElement("div"),b="script"+(new Date).getTime(),c=o.documentElement;a.innerHTML="<a name='"+b+"'/>";c.insertBefore(a,c.firstChild);if(o.getElementById(b))p.find.ID=function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c)return(b=b.getElementById(a[1]))?b.id===a[1]||typeof b.getAttributeNode!=="undefined"&&b.getAttributeNode("id").nodeValue===a[1]?[b]:d:[]},p.filter.ID=function(a,b){var c=typeof a.getAttributeNode!==
"undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b};c.removeChild(a);c=a=null})();(function(){var a=o.createElement("div");a.appendChild(o.createComment(""));if(a.getElementsByTagName("*").length>0)p.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){for(var f=[],h=0;c[h];h++)c[h].nodeType===1&&f.push(c[h]);c=f}return c};a.innerHTML="<a href='#'></a>";if(a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!==
"#")p.attrHandle.href=function(a){return a.getAttribute("href",2)};a=null})();o.querySelectorAll&&function(){var a=l,b=o.createElement("div");b.innerHTML="<p class='TEST'></p>";if(!(b.querySelectorAll&&b.querySelectorAll(".TEST").length===0)){l=function(b,c,f,h){c=c||o;if(!h&&!l.isXML(c)){var j=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(j&&(c.nodeType===1||c.nodeType===9))if(j[1])return B(c.getElementsByTagName(b),f);else if(j[2]&&p.find.CLASS&&c.getElementsByClassName)return B(c.getElementsByClassName(j[2]),
f);if(c.nodeType===9){if(b==="body"&&c.body)return B([c.body],f);else if(j&&j[3]){var d=c.getElementById(j[3]);if(d&&d.parentNode){if(d.id===j[3])return B([d],f)}else return B([],f)}try{return B(c.querySelectorAll(b),f)}catch(e){}}else if(c.nodeType===1&&c.nodeName.toLowerCase()!=="object"){var d=(j=c.getAttribute("id"))||"__sizzle__",n=c.parentNode,g=/^\s*[+~]/.test(b);j?d=d.replace(/'/g,"\\$&"):c.setAttribute("id",d);if(g&&n)c=c.parentNode;try{if(!g||n)return B(c.querySelectorAll("[id='"+d+"'] "+
b),f)}catch(v){}finally{j||c.removeAttribute("id")}}}return a(b,c,f,h)};for(var c in a)l[c]=a[c];b=null}}();(function(){var a=o.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector,c=!1;try{b.call(o.documentElement,"[test!='']:sizzle")}catch(f){c=!0}if(b)l.matchesSelector=function(a,f){f=f.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!l.isXML(a))try{if(c||!p.match.PSEUDO.test(f)&&!/!=/.test(f))return b.call(a,f)}catch(h){}return l(f,null,null,[a]).length>
0}})();(function(){var a=o.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0&&(a.lastChild.className="e",a.getElementsByClassName("e").length!==1))p.order.splice(1,0,"CLASS"),p.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null})();l.contains=o.documentElement.contains?function(a,b){return a!==b&&(a.contains?a.contains(b):
!0)}:o.documentElement.compareDocumentPosition?function(a,b){return!!(a.compareDocumentPosition(b)&16)}:function(){return!1};l.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?a.nodeName!=="HTML":!1};var P=function(a,b){for(var c,f=[],h="",j=b.nodeType?[b]:b;c=p.match.PSEUDO.exec(a);)h+=c[0],a=a.replace(p.match.PSEUDO,"");a=p.relative[a]?a+"*":a;c=0;for(var d=j.length;c<d;c++)l(a,j[c],f);return l.filter(h,f)};c.find=l;c.expr=l.selectors;c.expr[":"]=c.expr.filters;c.unique=l.uniqueSort;
c.text=l.getText;c.isXMLDoc=l.isXML;c.contains=l.contains})();var Pa=/Until$/,Qa=/^(?:parents|prevUntil|prevAll)/,Ra=/,/,Ia=/^.[^:#\[\.,]*$/,Sa=Array.prototype.slice,Ta=c.expr.match.POS,Ua={children:!0,contents:!0,next:!0,prev:!0};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),j=0,h=0,d=this.length;h<d;h++)if(j=b.length,c.find(a,this[h],b),h>0)for(var e=j;e<b.length;e++)for(var g=0;g<j;g++)if(b[g]===b[e]){b.splice(e--,1);break}return b},has:function(a){var b=c(a);return this.filter(function(){for(var a=
0,h=b.length;a<h;a++)if(c.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(z(this,a,!1),"not",a)},filter:function(a){return this.pushStack(z(this,a,!0),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){var j=[],h,d,e=this[0];if(c.isArray(a)){var g,l={},p=1;if(e&&a.length){h=0;for(d=a.length;h<d;h++)g=a[h],l[g]||(l[g]=c.expr.match.POS.test(g)?c(g,b||this.context):g);for(;e&&e.ownerDocument&&e!==b;){for(g in l)h=l[g],(h.jquery?h.index(e)>-1:
c(e).is(h))&&j.push({selector:g,elem:e,level:p});e=e.parentNode;p++}}return j}g=Ta.test(a)?c(a,b||this.context):null;h=0;for(d=this.length;h<d;h++)for(e=this[h];e;)if(g?g.index(e)>-1:c.find.matchesSelector(e,a)){j.push(e);break}else if(e=e.parentNode,!e||!e.ownerDocument||e===b)break;j=j.length>1?c.unique(j):j;return this.pushStack(j,"closest",a)},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,
b){var j=typeof a==="string"?c(a,b):c.makeArray(a),h=c.merge(this.get(),j);return this.pushStack(!j[0]||!j[0].parentNode||j[0].parentNode.nodeType===11||!h[0]||!h[0].parentNode||h[0].parentNode.nodeType===11?h:c.unique(h))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,j){return c.dir(a,"parentNode",j)},next:function(a){return c.nth(a,2,"nextSibling")},
prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,j){return c.dir(a,"nextSibling",j)},prevUntil:function(a,b,j){return c.dir(a,"previousSibling",j)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},
function(a,b){c.fn[a]=function(j,h){var d=c.map(this,b,j),e=Sa.call(arguments);Pa.test(a)||(h=j);h&&typeof h==="string"&&(d=c.filter(h,d));d=this.length>1&&!Ua[a]?c.unique(d):d;if((this.length>1||Ra.test(h))&&Qa.test(a))d=d.reverse();return this.pushStack(d,a,e.join(","))}});c.extend({filter:function(a,b,j){j&&(a=":not("+a+")");return b.length===1?c.find.matchesSelector(b[0],a)?[b[0]]:[]:c.find.matches(a,b)},dir:function(a,b,j){for(var h=[],a=a[b];a&&a.nodeType!==9&&(j===d||a.nodeType!==1||!c(a).is(j));)a.nodeType===
1&&h.push(a),a=a[b];return h},nth:function(a,b,c){for(var b=b||1,h=0;a;a=a[c])if(a.nodeType===1&&++h===b)break;return a},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var Va=/ jQuery\d+="(?:\d+|null)"/g,na=/^\s+/,va=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,wa=/<([\w:]+)/,Wa=/<tbody/i,Xa=/<|&#?\w+;/,xa=/<(?:script|object|embed|option|style)/i,ya=/checked\s*(?:[^=]|=\s*.checked.)/i,Q={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,"",""]};Q.optgroup=Q.option;Q.tbody=Q.tfoot=Q.colgroup=Q.caption=Q.thead;Q.th=Q.td;if(!c.support.htmlSerialize)Q._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var j=
c(this);j.text(a.call(this,b,j.text()))});if(typeof a!=="object"&&a!==d)return this.empty().append((this[0]&&this[0].ownerDocument||o).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapAll(a.call(this,b))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var a=this;a.firstChild&&a.firstChild.nodeType===1;)a=a.firstChild;return a}).append(this)}return this},
wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),j=b.contents();j.length?j.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,
!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});else if(arguments.length){var a=
this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var j=0,h;(h=this[j])!=null;j++)if(!a||c.filter(a,[h]).length)!b&&h.nodeType===1&&(c.cleanData(h.getElementsByTagName("*")),c.cleanData([h])),h.parentNode&&h.parentNode.removeChild(h);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a,b){a=
a==null?!0:a;b=b==null?a:b;return this.map(function(){return c.clone(this,a,b)})},html:function(a){if(a===d)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Va,""):null;else if(typeof a==="string"&&!xa.test(a)&&(c.support.leadingWhitespace||!na.test(a))&&!Q[(wa.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(va,"<$1></$2>");try{for(var b=0,j=this.length;b<j;b++)if(this[b].nodeType===1)c.cleanData(this[b].getElementsByTagName("*")),this[b].innerHTML=a}catch(h){this.empty().append(a)}}else c.isFunction(a)?
this.each(function(b){var f=c(this);f.html(a.call(this,b,f.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var j=c(this),h=j.html();j.replaceWith(a.call(this,b,h))});typeof a!=="string"&&(a=c(a).detach());return this.each(function(){var b=this.nextSibling,j=this.parentNode;c(this).remove();b?c(b).before(a):c(j).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,
!0)},domManip:function(a,b,j){var h,e,g,t=a[0],l=[];if(!c.support.checkClone&&arguments.length===3&&typeof t==="string"&&ya.test(t))return this.each(function(){c(this).domManip(a,b,j,!0)});if(c.isFunction(t))return this.each(function(h){var e=c(this);a[0]=t.call(this,h,b?e.html():d);e.domManip(a,b,j)});if(this[0]){h=t&&t.parentNode;h=c.support.parentNode&&h&&h.nodeType===11&&h.childNodes.length===this.length?{fragment:h}:c.buildFragment(a,this,l);g=h.fragment;if(e=g.childNodes.length===1?g=g.firstChild:
g.firstChild){b=b&&c.nodeName(e,"tr");e=0;for(var p=this.length,k=p-1;e<p;e++)j.call(b?c.nodeName(this[e],"table")?this[e].getElementsByTagName("tbody")[0]||this[e].appendChild(this[e].ownerDocument.createElement("tbody")):this[e]:this[e],h.cacheable||p>1&&e<k?c.clone(g,!0,!0):g)}l.length&&c.each(l,D)}return this}});c.buildFragment=function(a,b,j){var h,d,e,b=b&&b[0]?b[0].ownerDocument||b[0]:o;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===o&&a[0].charAt(0)==="<"&&!xa.test(a[0])&&(c.support.checkClone||
!ya.test(a[0])))d=!0,(e=c.fragments[a[0]])&&e!==1&&(h=e);h||(h=b.createDocumentFragment(),c.clean(a,b,h,j));d&&(c.fragments[a[0]]=e?h:1);return{fragment:h,cacheable:d}};c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(j){var h=[],j=c(j),d=this.length===1&&this[0].parentNode;if(d&&d.nodeType===11&&d.childNodes.length===1&&j.length===1)return j[b](this[0]),this;else{for(var d=0,e=j.length;d<
e;d++){var g=(d>0?this.clone(!0):this).get();c(j[d])[b](g);h=h.concat(g)}return this.pushStack(h,a,j.selector)}}});c.extend({clone:function(a,b,j){var h=a.cloneNode(!0),d,e,g;if(!c.support.noCloneEvent&&(a.nodeType===1||a.nodeType===11)&&!c.isXMLDoc(a)){d=a.getElementsByTagName("*");e=h.getElementsByTagName("*");for(g=0;d[g];++g)C(d[g],e[g]);C(a,h)}if(b&&(T(a,h),j&&"getElementsByTagName"in a&&(d=a.getElementsByTagName("*"),e=h.getElementsByTagName("*"),d.length)))for(g=0;d[g];++g)T(d[g],e[g]);return h},
clean:function(a,b,j,h){b=b||o;typeof b.createElement==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||o);for(var d=[],e=0,g;(g=a[e])!=null;e++)if(typeof g==="number"&&(g+=""),g){if(typeof g==="string"&&!Xa.test(g))g=b.createTextNode(g);else if(typeof g==="string"){g=g.replace(va,"<$1></$2>");var l=(wa.exec(g)||["",""])[1].toLowerCase(),p=Q[l]||Q._default,k=p[0],m=b.createElement("div");for(m.innerHTML=p[1]+g+p[2];k--;)m=m.lastChild;if(!c.support.tbody){k=Wa.test(g);l=l==="table"&&!k?
m.firstChild&&m.firstChild.childNodes:p[1]==="<table>"&&!k?m.childNodes:[];for(p=l.length-1;p>=0;--p)c.nodeName(l[p],"tbody")&&!l[p].childNodes.length&&l[p].parentNode.removeChild(l[p])}!c.support.leadingWhitespace&&na.test(g)&&m.insertBefore(b.createTextNode(na.exec(g)[0]),m.firstChild);g=m.childNodes}g.nodeType?d.push(g):d=c.merge(d,g)}if(j)for(e=0;d[e];e++)h&&c.nodeName(d[e],"script")&&(!d[e].type||d[e].type.toLowerCase()==="text/javascript")?h.push(d[e].parentNode?d[e].parentNode.removeChild(d[e]):
d[e]):(d[e].nodeType===1&&d.splice.apply(d,[e+1,0].concat(c.makeArray(d[e].getElementsByTagName("script")))),j.appendChild(d[e]));return d},cleanData:function(a){for(var b,d,h=c.cache,e=c.expando,g=c.event.special,k=c.support.deleteExpando,l=0,p;(p=a[l])!=null;l++)if(!p.nodeName||!c.noData[p.nodeName.toLowerCase()])if(d=p[c.expando]){if((b=h[d]&&h[d][e])&&b.events){for(var m in b.events)g[m]?c.event.remove(p,m):c.removeEvent(p,m,b.handle);if(b.handle)b.handle.elem=null}k?delete p[c.expando]:p.removeAttribute&&
p.removeAttribute(c.expando);delete h[d]}}});var za=/alpha\([^)]*\)/i,Ya=/opacity=([^)]*)/,Za=/-([a-z])/ig,$a=/([A-Z])/g,Aa=/^-?\d+(?:px)?$/i,ab=/^-?\d/,bb={position:"absolute",visibility:"hidden",display:"block"},Ja=["Left","Right"],Ka=["Top","Bottom"],aa,Ba,fa,cb=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){if(arguments.length===2&&b===d)return this;return c.access(this,a,b,!0,function(a,b,f){return f!==d?c.style(a,b,f):c.css(a,b)})};c.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=
aa(a,"opacity","opacity");return c===""?"1":c}else return a.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{"float":c.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,j,h){if(a&&!(a.nodeType===3||a.nodeType===8||!a.style)){var e,g=c.camelCase(b),k=a.style,l=c.cssHooks[g],b=c.cssProps[g]||g;if(j!==d){if(!(typeof j==="number"&&isNaN(j)||j==null))if(typeof j==="number"&&!c.cssNumber[g]&&(j+="px"),!l||!("set"in l)||(j=l.set(a,j))!==d)try{k[b]=
j}catch(p){}}else{if(l&&"get"in l&&(e=l.get(a,!1,h))!==d)return e;return k[b]}}},css:function(a,b,j){var h,e=c.camelCase(b),g=c.cssHooks[e],b=c.cssProps[e]||e;if(g&&"get"in g&&(h=g.get(a,!0,j))!==d)return h;else if(aa)return aa(a,b,e)},swap:function(a,b,c){var h={},d;for(d in b)h[d]=a.style[d],a.style[d]=b[d];c.call(a);for(d in b)a.style[d]=h[d]},camelCase:function(a){return a.replace(Za,cb)}});c.curCSS=c.css;c.each(["height","width"],function(a,b){c.cssHooks[b]={get:function(a,h,d){var e;if(h){a.offsetWidth!==
0?e=x(a,b,d):c.swap(a,bb,function(){e=x(a,b,d)});if(e<=0&&(e=aa(a,b,b),e==="0px"&&fa&&(e=fa(a,b,b)),e!=null))return e===""||e==="auto"?"0px":e;if(e<0||e==null)return e=a.style[b],e===""||e==="auto"?"0px":e;return typeof e==="string"?e:e+"px"}},set:function(a,b){if(Aa.test(b)){if(b=parseFloat(b),b>=0)return b+"px"}else return b}}});if(!c.support.opacity)c.cssHooks.opacity={get:function(a,b){return Ya.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?
"1":""},set:function(a,b){var d=a.style;d.zoom=1;var h=c.isNaN(b)?"":"alpha(opacity="+b*100+")",e=d.filter||"";d.filter=za.test(e)?e.replace(za,h):d.filter+" "+h}};o.defaultView&&o.defaultView.getComputedStyle&&(Ba=function(a,b,e){var h,e=e.replace($a,"-$1").toLowerCase();if(!(b=a.ownerDocument.defaultView))return d;if(b=b.getComputedStyle(a,null))h=b.getPropertyValue(e),h===""&&!c.contains(a.ownerDocument.documentElement,a)&&(h=c.style(a,e));return h});o.documentElement.currentStyle&&(fa=function(a,
b){var c,h=a.currentStyle&&a.currentStyle[b],d=a.runtimeStyle&&a.runtimeStyle[b],e=a.style;if(!Aa.test(h)&&ab.test(h)){c=e.left;if(d)a.runtimeStyle.left=a.currentStyle.left;e.left=b==="fontSize"?"1em":h||0;h=e.pixelLeft+"px";e.left=c;if(d)a.runtimeStyle.left=d}return h===""?"auto":h});aa=Ba||fa;if(c.expr&&c.expr.filters)c.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!c.support.reliableHiddenOffsets&&(a.style.display||c.css(a,"display"))==="none"},c.expr.filters.visible=
function(a){return!c.expr.filters.hidden(a)};var db=/%20/g,La=/\[\]$/,Ca=/\r?\n/g,eb=/#.*$/,fb=/^(.*?):\s*(.*?)\r?$/mg,gb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,hb=/^(?:GET|HEAD)$/,ib=/^\/\//,Da=/\?/,jb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,kb=/^(?:select|textarea)/i,pa=/\s+/,lb=/([?&])_=[^&]*/,mb=/^(\w+:)\/\/([^\/?#:]+)(?::(\d+))?/,Ea=c.fn.load,ia={},Fa={};c.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&Ea)return Ea.apply(this,
arguments);else if(!this.length)return this;var h=a.indexOf(" ");if(h>=0)var e=a.slice(h,a.length),a=a.slice(0,h);h="GET";b&&(c.isFunction(b)?(d=b,b=null):typeof b==="object"&&(b=c.param(b,c.ajaxSettings.traditional),h="POST"));var g=this;c.ajax({url:a,type:h,dataType:"html",data:b,complete:function(a,b,f){f=a.responseText;a.isResolved()&&(a.done(function(a){f=a}),g.html(e?c("<div>").append(f.replace(jb,"")).find(e):f));d&&g.each(d,[f,b,a])}});return this},serialize:function(){return c.param(this.serializeArray())},
serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||kb.test(this.nodeName)||gb.test(this.type))}).map(function(a,b){var d=c(this).val();return d==null?null:c.isArray(d)?c.map(d,function(a){return{name:b.name,value:a.replace(Ca,"\r\n")}}):{name:b.name,value:d.replace(Ca,"\r\n")}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,
b){c.fn[b]=function(a){return this.bind(b,a)}});c.each(["get","post"],function(a,b){c[b]=function(a,d,e,g){c.isFunction(d)&&(g=g||e,e=d,d=null);return c.ajax({type:b,url:a,data:d,success:e,dataType:g})}});c.extend({getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},ajaxSetup:function(a){c.extend(!0,c.ajaxSettings,a);if(a.context)c.ajaxSettings.context=a.context},ajaxSettings:{url:location.href,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","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":b.String,"text html":!0,"text json":c.parseJSON,"text xml":c.parseXML}},ajaxPrefilter:F(ia),ajaxTransport:F(Fa),ajax:function(a,b){function e(a,b,f,j){if(w!==2){w=2;P&&clearTimeout(P);s=d;B=j||"";A.readyState=a?4:0;var o,u,q;if(f){var j=
h,r=A,D=j.contents,H=j.dataTypes,J=j.responseFields,x,y,F,E;for(y in J)y in f&&(r[J[y]]=f[y]);for(;H[0]==="*";)H.shift(),x===d&&(x=r.getResponseHeader("content-type"));if(x)for(y in D)if(D[y]&&D[y].test(x)){H.unshift(y);break}if(H[0]in f)F=H[0];else{for(y in f){if(!H[0]||j.converters[y+" "+H[0]]){F=y;break}E||(E=y)}F=F||E}F?(F!==H[0]&&H.unshift(F),f=f[F]):f=void 0}else f=d;if(a>=200&&a<300||a===304){if(h.ifModified){if(x=A.getResponseHeader("Last-Modified"))c.lastModified[h.url]=x;if(x=A.getResponseHeader("Etag"))c.etag[h.url]=
x}if(a===304)b="notmodified",o=!0;else try{x=h;x.dataFilter&&(f=x.dataFilter(f,x.dataType));var C=x.dataTypes,z=x.converters,G,M=C.length,I,V=C[0],U,L,R,O,W;for(G=1;G<M;G++)if(U=V,V=C[G],V==="*")V=U;else if(U!=="*"&&U!==V){L=U+" "+V;R=z[L]||z["* "+V];if(!R)for(O in W=d,z)if(I=O.split(" "),I[0]===U||I[0]==="*")if(W=z[I[1]+" "+V]){O=z[O];O===!0?R=W:W===!0&&(R=O);break}!R&&!W&&c.error("No conversion from "+L.replace(" "," to "));R!==!0&&(f=R?R(f):W(O(f)))}u=f;b="success";o=!0}catch(N){b="parsererror",
q=N}}else q=b,a&&(b="error",a<0&&(a=0));A.status=a;A.statusText=b;o?m.resolveWith(g,[u,b,A]):m.rejectWith(g,[A,b,q]);A.statusCode(p);p=d;h.global&&k.trigger("ajax"+(o?"Success":"Error"),[A,h,o?u:q]);l.resolveWith(g,[A,b]);h.global&&(k.trigger("ajaxComplete",[A,h]),--c.active||c.event.trigger("ajaxStop"))}}typeof b!=="object"&&(b=a,a=d);var b=b||{},h=c.extend(!0,{},c.ajaxSettings,b),g=(h.context=("context"in b?b:c.ajaxSettings).context)||h,k=g===h?c.event:c(g),m=c.Deferred(),l=c._Deferred(),p=h.statusCode||
{},q={},B,r,s,P,D=o.location,H=D.protocol||"http:",J,w=0,x,A={readyState:0,setRequestHeader:function(a,b){w===0&&(q[a.toLowerCase()]=b);return this},getAllResponseHeaders:function(){return w===2?B:null},getResponseHeader:function(a){var b;if(w===2){if(!r)for(r={};b=fb.exec(B);)r[b[1].toLowerCase()]=b[2];b=r[a.toLowerCase()]}return b||null},abort:function(a){a=a||"abort";s&&s.abort(a);e(0,a);return this}};m.promise(A);A.success=A.done;A.error=A.fail;A.complete=l.done;A.statusCode=function(a){if(a){var b;
if(w<2)for(b in a)p[b]=[p[b],a[b]];else b=a[A.status],A.then(b,b)}return this};h.url=(""+(a||h.url)).replace(eb,"").replace(ib,H+"//");h.dataTypes=c.trim(h.dataType||"*").toLowerCase().split(pa);if(!h.crossDomain)J=mb.exec(h.url.toLowerCase()),h.crossDomain=!(!J||!(J[1]!=H||J[2]!=D.hostname||(J[3]||(J[1]==="http:"?80:443))!=(D.port||(H==="http:"?80:443))));if(h.data&&h.processData&&typeof h.data!=="string")h.data=c.param(h.data,h.traditional);u(ia,h,b,A);h.type=h.type.toUpperCase();h.hasContent=!hb.test(h.type);
h.global&&c.active++===0&&c.event.trigger("ajaxStart");if(!h.hasContent&&(h.data&&(h.url+=(Da.test(h.url)?"&":"?")+h.data),h.cache===!1))D=c.now(),H=h.url.replace(lb,"$1_="+D),h.url=H+(H===h.url?(Da.test(h.url)?"&":"?")+"_="+D:"");if(h.data&&h.hasContent&&h.contentType!==!1||b.contentType)q["content-type"]=h.contentType;h.ifModified&&(c.lastModified[h.url]&&(q["if-modified-since"]=c.lastModified[h.url]),c.etag[h.url]&&(q["if-none-match"]=c.etag[h.url]));q.accept=h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?
h.accepts[h.dataTypes[0]]+(h.dataTypes[0]!=="*"?", */*; q=0.01":""):h.accepts["*"];for(x in h.headers)q[x.toLowerCase()]=h.headers[x];if(h.beforeSend&&(h.beforeSend.call(g,A,h)===!1||w===2))e(0,"abort"),A=!1;else{for(x in{success:1,error:1,complete:1})A[x](h[x]);if(s=u(Fa,h,b,A)){w=A.readyState=1;h.global&&k.trigger("ajaxSend",[A,h]);h.async&&h.timeout>0&&(P=setTimeout(function(){A.abort("timeout")},h.timeout));try{s.send(q,e)}catch(y){status<2?e(-1,y):c.error(y)}}else e(-1,"No Transport")}return A},
param:function(a,b){var e=[],h=function(a,b){b=c.isFunction(b)?b():b;e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(b===d)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery)c.each(a,function(){h(this.name,this.value)});else for(var g in a)B(g,a[g],b,h);return e.join("&").replace(db,"+")}});c.extend({active:0,lastModified:{},etag:{}});var nb=c.now(),ga=/(\=)\?(&|$)|()\?\?()/i;c.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return c.expando+"_"+nb++}});c.ajaxPrefilter("json jsonp",
function(a,f,d){d=typeof a.data==="string";if(a.dataTypes[0]==="jsonp"||f.jsonpCallback||f.jsonp!=null||a.jsonp!==!1&&(ga.test(a.url)||d&&ga.test(a.data))){var e,g=a.jsonpCallback=c.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,k=b[g],f=a.url,m=a.data,l="$1"+g+"$2";a.jsonp!==!1&&(f=f.replace(ga,l),a.url===f&&(d&&(m=m.replace(ga,l)),a.data===m&&(f+=(/\?/.test(f)?"&":"?")+a.jsonp+"="+g)));a.url=f;a.data=m;b[g]=function(a){e=[a]};a.complete=[function(){if(b[g]=k){if(e&&c.isFunction(k))b[g](e[0])}else try{delete b[g]}catch(a){}},
a.complete];a.converters["script json"]=function(){e||c.error(g+" was not called");return e[0]};a.dataTypes[0]="json";return"script"}});c.ajaxSetup({accepts:{script:"text/javascript, application/javascript"},contents:{script:/javascript/},converters:{"text script":function(a){c.globalEval(a);return a}}});c.ajaxPrefilter("script",function(a){if(a.cache===d)a.cache=!1;if(a.crossDomain)a.type="GET",a.global=!1});c.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=o.getElementsByTagName("head")[0]||
o.documentElement;return{send:function(e,g){b=o.createElement("script");b.async="async";if(a.scriptCharset)b.charset=a.scriptCharset;b.src=a.url;b.onload=b.onreadystatechange=function(a,e){if(!b.readyState||/loaded|complete/.test(b.readyState))b.onload=b.onreadystatechange=null,c&&b.parentNode&&c.removeChild(b),b=d,e||g(200,"success")};c.insertBefore(b,c.firstChild)},abort:function(){if(b)b.onload(0,1)}}}});var ob=c.now(),oa={},Ga,ba;c.ajaxSettings.xhr=b.ActiveXObject?function(){if(b.location.protocol!==
"file:")try{return new b.XMLHttpRequest}catch(a){}try{return new b.ActiveXObject("Microsoft.XMLHTTP")}catch(c){}}:function(){return new b.XMLHttpRequest};try{ba=c.ajaxSettings.xhr()}catch(sb){}c.support.ajax=!!ba;c.support.cors=ba&&"withCredentials"in ba;ba=d;c.support.ajax&&c.ajaxTransport(function(a){if(!a.crossDomain||c.support.cors){var f;return{send:function(d,e){Ga||(Ga=1,c(b).bind("unload",function(){c.each(oa,function(a,b){if(b.onreadystatechange)b.onreadystatechange(1)})}));var g=a.xhr(),
k;a.username?g.open(a.type,a.url,a.async,a.username,a.password):g.open(a.type,a.url,a.async);if((!a.crossDomain||a.hasContent)&&!d["x-requested-with"])d["x-requested-with"]="XMLHttpRequest";try{c.each(d,function(a,b){g.setRequestHeader(a,b)})}catch(m){}g.send(a.hasContent&&a.data||null);f=function(b,d){if(f&&(d||g.readyState===4)){f=0;if(k)g.onreadystatechange=c.noop,delete oa[k];if(d)g.readyState!==4&&g.abort();else{var j=g.status,m,o=g.getAllResponseHeaders(),u={},q=g.responseXML;if(q&&q.documentElement)u.xml=
q;u.text=g.responseText;try{m=g.statusText}catch(t){m=""}j=j===0?!a.crossDomain||m?o?304:0:302:j==1223?204:j;e(j,m,u,o)}}};!a.async||g.readyState===4?f():(k=ob++,oa[k]=g,g.onreadystatechange=f)},abort:function(){f&&f(0,1)}}}});var ja={},pb=/^(?:toggle|show|hide)$/,qb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,ha,qa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b,d){if(a||a===0)return this.animate(J("show",
3),a,b,d);else{for(var d=0,e=this.length;d<e;d++){a=this[d];b=a.style.display;if(!c._data(a,"olddisplay")&&b==="none")b=a.style.display="";b===""&&c.css(a,"display")==="none"&&c._data(a,"olddisplay",H(a.nodeName))}for(d=0;d<e;d++)if(a=this[d],b=a.style.display,b===""||b==="none")a.style.display=c._data(a,"olddisplay")||"";return this}},hide:function(a,b,d){if(a||a===0)return this.animate(J("hide",3),a,b,d);else{a=0;for(b=this.length;a<b;a++)d=c.css(this[a],"display"),d!=="none"&&!c._data(this[a],
"olddisplay")&&c._data(this[a],"olddisplay",d);for(a=0;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b,d){var e=typeof a==="boolean";c.isFunction(a)&&c.isFunction(b)?this._toggle.apply(this,arguments):a==null||e?this.each(function(){var b=e?a:c(this).is(":hidden");c(this)[b?"show":"hide"]()}):this.animate(J("toggle",3),a,b,d);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,
b,d,e){var g=c.speed(b,d,e);if(c.isEmptyObject(a))return this.each(g.complete);return this[g.queue===!1?"each":"queue"](function(){var b=c.extend({},g),f,d=this.nodeType===1,e=d&&c(this).is(":hidden"),h=this;for(f in a){var j=c.camelCase(f);f!==j&&(a[j]=a[f],delete a[f],f=j);if(a[f]==="hide"&&e||a[f]==="show"&&!e)return b.complete.call(this);if(d&&(f==="height"||f==="width"))if(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],c.css(this,"display")==="inline"&&c.css(this,
"float")==="none")c.support.inlineBlockNeedsLayout?H(this.nodeName)==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1):this.style.display="inline-block";if(c.isArray(a[f]))(b.specialEasing=b.specialEasing||{})[f]=a[f][1],a[f]=a[f][0]}if(b.overflow!=null)this.style.overflow="hidden";b.curAnim=c.extend({},a);c.each(a,function(f,d){var j=new c.fx(h,b,f);if(pb.test(d))j[d==="toggle"?e?"show":"hide":d](a);else{var g=qb.exec(d),l=j.cur()||0;if(g){var n=parseFloat(g[2]),
k=g[3]||"px";k!=="px"&&(c.style(h,f,(n||1)+k),l*=(n||1)/j.cur(),c.style(h,f,l+k));g[1]&&(n=(g[1]==="-="?-1:1)*n+l);j.custom(l,n,k)}else j.custom(l,d,"")}});return!0})},stop:function(a,b){var d=c.timers;a&&this.queue([]);this.each(function(){for(var a=d.length-1;a>=0;a--)if(d[a].elem===this){if(b)d[a](!0);d.splice(a,1)}});b||this.dequeue();return this}});c.each({slideDown:J("show",1),slideUp:J("hide",1),slideToggle:J("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},
function(a,b){c.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}});c.extend({speed:function(a,b,d){var e=a&&typeof a==="object"?c.extend({},a):{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;e.old=e.complete;e.complete=function(){e.queue!==!1&&c(this).dequeue();c.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,
b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+0.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b;this.elem=a;this.prop=c;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return parseFloat(c.css(this.elem,this.prop))||
0},custom:function(a,b,d){function e(a){return g.step(a)}var g=this,k=c.fx;this.startTime=c.now();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;e.elem=this.elem;e()&&c.timers.push(e)&&!ha&&(ha=setInterval(k.tick,k.interval))},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=!0;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=
c.style(this.elem,this.prop);this.options.hide=!0;this.custom(this.cur(),0)},step:function(a){var b=c.now(),d=!0;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=!0;for(var e in this.options.curAnim)this.options.curAnim[e]!==!0&&(d=!1);if(d){if(this.options.overflow!=null&&!c.support.shrinkWrapBlocks){var g=this.elem,k=this.options;c.each(["","X","Y"],function(a,b){g.style["overflow"+b]=k.overflow[a]})}this.options.hide&&
c(this.elem).hide();if(this.options.hide||this.options.show)for(var m in this.options.curAnim)c.style(this.elem,m,this.options.orig[m]);this.options.complete.call(this.elem)}return!1}else a=b-this.startTime,this.state=a/this.options.duration,b=this.options.easing||(c.easing.swing?"swing":"linear"),this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||b](this.state,a,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update();return!0}};
c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},interval:13,stop:function(){clearInterval(ha);ha=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,
function(b){return a===b.elem}).length};var rb=/^t(?:able|d|h)$/i,Ha=/^(?:body|html)$/i;c.fn.offset="getBoundingClientRect"in o.documentElement?function(a){var b=this[0],d;if(a)return this.each(function(b){c.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);try{d=b.getBoundingClientRect()}catch(e){}var g=b.ownerDocument,k=g.documentElement;if(!d||!c.contains(k,b))return d?{top:d.top,left:d.left}:{top:0,left:0};b=g.body;g=P(g);
return{top:d.top+(g.pageYOffset||c.support.boxModel&&k.scrollTop||b.scrollTop)-(k.clientTop||b.clientTop||0),left:d.left+(g.pageXOffset||c.support.boxModel&&k.scrollLeft||b.scrollLeft)-(k.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(b){c.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d,e=b.offsetParent,g=b.ownerDocument,k=g.documentElement,m=g.body;d=(g=
g.defaultView)?g.getComputedStyle(b,null):b.currentStyle;for(var l=b.offsetTop,o=b.offsetLeft;(b=b.parentNode)&&b!==m&&b!==k;){if(c.offset.supportsFixedPosition&&d.position==="fixed")break;d=g?g.getComputedStyle(b,null):b.currentStyle;l-=b.scrollTop;o-=b.scrollLeft;if(b===e){l+=b.offsetTop;o+=b.offsetLeft;if(c.offset.doesNotAddBorder&&(!c.offset.doesAddBorderForTableAndCells||!rb.test(b.nodeName)))l+=parseFloat(d.borderTopWidth)||0,o+=parseFloat(d.borderLeftWidth)||0;e=b.offsetParent}c.offset.subtractsBorderForOverflowNotVisible&&
d.overflow!=="visible"&&(l+=parseFloat(d.borderTopWidth)||0,o+=parseFloat(d.borderLeftWidth)||0)}if(d.position==="relative"||d.position==="static")l+=m.offsetTop,o+=m.offsetLeft;c.offset.supportsFixedPosition&&d.position==="fixed"&&(l+=Math.max(k.scrollTop,m.scrollTop),o+=Math.max(k.scrollLeft,m.scrollLeft));return{top:l,left:o}};c.offset={initialize:function(){var a=o.body,b=o.createElement("div"),d,e,g,k=parseFloat(c.css(a,"marginTop"))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,
border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(b,a.firstChild);d=b.firstChild;e=d.firstChild;g=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=e.offsetTop!==5;this.doesAddBorderForTableAndCells=
g.offsetTop===5;e.style.position="fixed";e.style.top="20px";this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15;e.style.position=e.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==k;a.removeChild(b);c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();c.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(c.css(a,
"marginTop"))||0,d+=parseFloat(c.css(a,"marginLeft"))||0);return{top:b,left:d}},setOffset:function(a,b,d){var e=c.css(a,"position");if(e==="static")a.style.position="relative";var g=c(a),k=g.offset(),m=c.css(a,"top"),l=c.css(a,"left"),o=e==="absolute"&&c.inArray("auto",[m,l])>-1,e={},u={};o&&(u=g.position());m=o?u.top:parseInt(m,10)||0;l=o?u.left:parseInt(l,10)||0;c.isFunction(b)&&(b=b.call(a,d,k));if(b.top!=null)e.top=b.top-k.top+m;if(b.left!=null)e.left=b.left-k.left+l;"using"in b?b.using.call(a,
e):g.css(e)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=Ha.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.css(a,"marginLeft"))||0;e.top+=parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(c.css(b[0],"borderLeftWidth"))||0;return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||o.body;a&&!Ha.test(a.nodeName)&&
c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var e="scroll"+b;c.fn[e]=function(b){var f=this[0],g;if(!f)return null;return b!==d?this.each(function(){(g=P(this))?g.scrollTo(!a?b:c(g).scrollLeft(),a?b:c(g).scrollTop()):this[e]=b}):(g=P(f))?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&g.document.documentElement[e]||g.document.body[e]:f[e]}});c.each(["Height","Width"],function(a,b){var e=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?
parseFloat(c.css(this[0],e,"padding")):null};c.fn["outer"+b]=function(a){return this[0]?parseFloat(c.css(this[0],e,a?"margin":"border")):null};c.fn[e]=function(a){var g=this[0];if(!g)return a==null?null:this;if(c.isFunction(a))return this.each(function(b){var d=c(this);d[e](a.call(this,b,d[e]()))});if(c.isWindow(g)){var k=g.document.documentElement["client"+b];return g.document.compatMode==="CSS1Compat"&&k||g.document.body["client"+b]||k}else return g.nodeType===9?Math.max(g.documentElement["client"+
b],g.body["scroll"+b],g.documentElement["scroll"+b],g.body["offset"+b],g.documentElement["offset"+b]):a===d?(g=c.css(g,e),k=parseFloat(g),c.isNaN(k)?g:k):this.css(e,typeof a==="string"?a:a+"px")}})})(window);function Int_64(b,d){this.highOrder=b;this.lowOrder=d}
function jsSHA(b,d){jsSHA.charSize=8;jsSHA.b64pad="";jsSHA.hexCase=0;var e=null,g=null,k=function(b){for(var d=[],e=(1<<jsSHA.charSize)-1,g=b.length*jsSHA.charSize,k=0;k<g;k+=jsSHA.charSize)d[k>>5]|=(b.charCodeAt(k/jsSHA.charSize)&e)<<32-jsSHA.charSize-k%32;return d},m=function(b){for(var d=[],e=b.length,g=0;g<e;g+=2){var k=parseInt(b.substr(g,2),16);if(isNaN(k))return"INVALID HEX STRING";else d[g>>3]|=k<<24-4*(g%8)}return d},s=null,q=null;if("HEX"===d){if(0!==b.length%2)return"TEXT MUST BE IN BYTE INCREMENTS";
s=b.length*4;q=m(b)}else if("ASCII"===d||"undefined"===typeof d)s=b.length*jsSHA.charSize,q=k(b);else return"UNKNOWN TEXT INPUT TYPE";var z=function(b){for(var d=jsSHA.hexCase?"0123456789ABCDEF":"0123456789abcdef",e="",g=b.length*4,k=0;k<g;k++)e+=d.charAt(b[k>>2]>>(3-k%4)*8+4&15)+d.charAt(b[k>>2]>>(3-k%4)*8&15);return e},T=function(b){for(var d="",e=b.length*4,g=0;g<e;g+=3)for(var k=(b[g>>2]>>8*(3-g%4)&255)<<16|(b[g+1>>2]>>8*(3-(g+1)%4)&255)<<8|b[g+2>>2]>>8*(3-(g+2)%4)&255,m=0;m<4;m++)d+=g*8+m*6>
b.length*32?jsSHA.b64pad:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(k>>6*(3-m)&63);return d},C=function(b,d){return d<32?new Int_64(b.highOrder>>>d|b.lowOrder<<32-d,b.lowOrder>>>d|b.highOrder<<32-d):d===32?new Int_64(b.lowOrder,b.highOrder):C(C(b,32),d-32)},D=function(b,d){return d<32?new Int_64(b.highOrder>>>d,b.lowOrder>>>d|b.highOrder<<32-d):d===32?new Int_64(0,b.highOrder):D(D(b,32),d-32)},x=function(b,d){var e=(b.lowOrder&65535)+(d.lowOrder&65535),g=(b.lowOrder>>>
16)+(d.lowOrder>>>16)+(e>>>16),k=(g&65535)<<16|e&65535,e=(b.highOrder&65535)+(d.highOrder&65535)+(g>>>16),g=(b.highOrder>>>16)+(d.highOrder>>>16)+(e>>>16);return new Int_64((g&65535)<<16|e&65535,k)},F=function(b,d,e){var g=[],k,m,c,q,s,F,z,L,G,r,T=[new Int_64(1116352408,3609767458),new Int_64(1899447441,602891725),new Int_64(3049323471,3964484399),new Int_64(3921009573,2173295548),new Int_64(961987163,4081628472),new Int_64(1508970993,3053834265),new Int_64(2453635748,2937671579),new Int_64(2870763221,
3664609560),new Int_64(3624381080,2734883394),new Int_64(310598401,1164996542),new Int_64(607225278,1323610764),new Int_64(1426881987,3590304994),new Int_64(1925078388,4068182383),new Int_64(2162078206,991336113),new Int_64(2614888103,633803317),new Int_64(3248222580,3479774868),new Int_64(3835390401,2666613458),new Int_64(4022224774,944711139),new Int_64(264347078,2341262773),new Int_64(604807628,2007800933),new Int_64(770255983,1495990901),new Int_64(1249150122,1856431235),new Int_64(1555081692,
3175218132),new Int_64(1996064986,2198950837),new Int_64(2554220882,3999719339),new Int_64(2821834349,766784016),new Int_64(2952996808,2566594879),new Int_64(3210313671,3203337956),new Int_64(3336571891,1034457026),new Int_64(3584528711,2466948901),new Int_64(113926993,3758326383),new Int_64(338241895,168717936),new Int_64(666307205,1188179964),new Int_64(773529912,1546045734),new Int_64(1294757372,1522805485),new Int_64(1396182291,2643833823),new Int_64(1695183700,2343527390),new Int_64(1986661051,
1014477480),new Int_64(2177026350,1206759142),new Int_64(2456956037,344077627),new Int_64(2730485921,1290863460),new Int_64(2820302411,3158454273),new Int_64(3259730800,3505952657),new Int_64(3345764771,106217008),new Int_64(3516065817,3606008344),new Int_64(3600352804,1432725776),new Int_64(4094571909,1467031594),new Int_64(275423344,851169720),new Int_64(430227734,3100823752),new Int_64(506948616,1363258195),new Int_64(659060556,3750685593),new Int_64(883997877,3785050280),new Int_64(958139571,
3318307427),new Int_64(1322822218,3812723403),new Int_64(1537002063,2003034995),new Int_64(1747873779,3602036899),new Int_64(1955562222,1575990012),new Int_64(2024104815,1125592928),new Int_64(2227730452,2716904306),new Int_64(2361852424,442776044),new Int_64(2428436474,593698344),new Int_64(2756734187,3733110249),new Int_64(3204031479,2999351573),new Int_64(3329325298,3815920427),new Int_64(3391569614,3928383900),new Int_64(3515267271,566280711),new Int_64(3940187606,3454069534),new Int_64(4118630271,
4000239992),new Int_64(116418474,1914138554),new Int_64(174292421,2731055270),new Int_64(289380356,3203993006),new Int_64(460393269,320620315),new Int_64(685471733,587496836),new Int_64(852142971,1086792851),new Int_64(1017036298,365543100),new Int_64(1126000580,2618297676),new Int_64(1288033470,3409855158),new Int_64(1501505948,4234509866),new Int_64(1607167915,987167468),new Int_64(1816402316,1246189591)];r=e==="SHA-384"?[new Int_64(3418070365,3238371032),new Int_64(1654270250,914150663),new Int_64(2438529370,
812702999),new Int_64(355462360,4144912697),new Int_64(1731405415,4290775857),new Int_64(41048885895,1750603025),new Int_64(3675008525,1694076839),new Int_64(1203062813,3204075428)]:[new Int_64(1779033703,4089235720),new Int_64(3144134277,2227873595),new Int_64(1013904242,4271175723),new Int_64(2773480762,1595750129),new Int_64(1359893119,2917565137),new Int_64(2600822924,725511199),new Int_64(528734635,4215389547),new Int_64(1541459225,327033209)];b[d>>5]|=128<<24-d%32;b[(d+1+128>>10<<5)+31]=d;for(var ca=
b.length,S=0;S<ca;S+=32){d=r[0];k=r[1];m=r[2];c=r[3];q=r[4];s=r[5];F=r[6];z=r[7];for(var M=0;M<80;M++){L=g;G=M;var w;if(M<16)w=new Int_64(b[M*2+S],b[M*2+S+1]);else{var y=g[M-2];w=C(y,19);var N=C(y,61),y=D(y,6);w=new Int_64(w.highOrder^N.highOrder^y.highOrder,w.lowOrder^N.lowOrder^y.lowOrder);var N=g[M-7],I=g[M-15],y=C(I,1),E=C(I,8),I=D(I,7),y=new Int_64(y.highOrder^E.highOrder^I.highOrder,y.lowOrder^E.lowOrder^I.lowOrder),E=g[M-16],I=(w.lowOrder&65535)+(N.lowOrder&65535)+(y.lowOrder&65535)+(E.lowOrder&
65535),X=(w.lowOrder>>>16)+(N.lowOrder>>>16)+(y.lowOrder>>>16)+(E.lowOrder>>>16)+(I>>>16),da=(X&65535)<<16|I&65535,I=(w.highOrder&65535)+(N.highOrder&65535)+(y.highOrder&65535)+(E.highOrder&65535)+(X>>>16),X=(w.highOrder>>>16)+(N.highOrder>>>16)+(y.highOrder>>>16)+(E.highOrder>>>16)+(I>>>16);w=new Int_64((X&65535)<<16|I&65535,da)}L[G]=w;w=q;L=C(w,14);G=C(w,18);w=C(w,41);L=new Int_64(L.highOrder^G.highOrder^w.highOrder,L.lowOrder^G.lowOrder^w.lowOrder);G=new Int_64(q.highOrder&s.highOrder^~q.highOrder&
F.highOrder,q.lowOrder&s.lowOrder^~q.lowOrder&F.lowOrder);w=T[M];N=g[M];y=(z.lowOrder&65535)+(L.lowOrder&65535)+(G.lowOrder&65535)+(w.lowOrder&65535)+(N.lowOrder&65535);E=(z.lowOrder>>>16)+(L.lowOrder>>>16)+(G.lowOrder>>>16)+(w.lowOrder>>>16)+(N.lowOrder>>>16)+(y>>>16);I=(E&65535)<<16|y&65535;y=(z.highOrder&65535)+(L.highOrder&65535)+(G.highOrder&65535)+(w.highOrder&65535)+(N.highOrder&65535)+(E>>>16);E=(z.highOrder>>>16)+(L.highOrder>>>16)+(G.highOrder>>>16)+(w.highOrder>>>16)+(N.highOrder>>>16)+
(y>>>16);L=new Int_64((E&65535)<<16|y&65535,I);w=d;z=C(w,28);G=C(w,34);w=C(w,39);z=new Int_64(z.highOrder^G.highOrder^w.highOrder,z.lowOrder^G.lowOrder^w.lowOrder);G=x(z,new Int_64(d.highOrder&k.highOrder^d.highOrder&m.highOrder^k.highOrder&m.highOrder,d.lowOrder&k.lowOrder^d.lowOrder&m.lowOrder^k.lowOrder&m.lowOrder));z=F;F=s;s=q;q=x(c,L);c=m;m=k;k=d;d=x(L,G)}r[0]=x(d,r[0]);r[1]=x(k,r[1]);r[2]=x(m,r[2]);r[3]=x(c,r[3]);r[4]=x(q,r[4]);r[5]=x(s,r[5]);r[6]=x(F,r[6]);r[7]=x(z,r[7])}switch(e){case "SHA-384":return[r[0].highOrder,
r[0].lowOrder,r[1].highOrder,r[1].lowOrder,r[2].highOrder,r[2].lowOrder,r[3].highOrder,r[3].lowOrder,r[4].highOrder,r[4].lowOrder,r[5].highOrder,r[5].lowOrder];case "SHA-512":return[r[0].highOrder,r[0].lowOrder,r[1].highOrder,r[1].lowOrder,r[2].highOrder,r[2].lowOrder,r[3].highOrder,r[3].lowOrder,r[4].highOrder,r[4].lowOrder,r[5].highOrder,r[5].lowOrder,r[6].highOrder,r[6].lowOrder,r[7].highOrder,r[7].lowOrder];default:return[]}};this.getHash=function(b,d){var k=null,m=q.slice();switch(d){case "HEX":k=
z;break;case "B64":k=T;break;default:return"FORMAT NOT RECOGNIZED"}switch(b){case "SHA-384":return e===null&&(e=F(m,s,b)),k(e);case "SHA-512":return g===null&&(g=F(m,s,b)),k(g);default:return"HASH NOT RECOGNIZED"}};this.getHMAC=function(b,d,e,g){var D=null,o=null,c=[],x=[],C=o=null,O=null;switch(g){case "HEX":D=z;break;case "B64":D=T;break;default:return"FORMAT NOT RECOGNIZED"}switch(e){case "SHA-384":O=384;break;case "SHA-512":O=512;break;default:return"HASH NOT RECOGNIZED"}if("HEX"===d){if(0!==
b.length%2)return"KEY MUST BE IN BYTE INCREMENTS";o=m(b);C=b.length*4}else if("ASCII"===d)o=k(b),C=b.length*jsSHA.charSize;else return"UNKNOWN KEY INPUT TYPE";1024<C?(o=F(o,C,e),o[31]&=4294967040):1024>C&&(o[31]&=4294967040);for(b=0;b<=31;b++)c[b]=o[b]^909522486,x[b]=o[b]^1549556828;o=F(c.concat(q),1024+s,e);o=F(x.concat(o),1024+O,e);return D(o)}};var json_parse=function(){var b,d,e={'"':'"',"\\":"\\","/":"/",b:"\u0008",f:"\u000c",n:"\n",r:"\r",t:"\t"},g,k=function(d){throw{name:"SyntaxError",message:d,at:b,text:g};},m=function(e){e&&e!==d&&k("Expected '"+e+"' instead of '"+d+"'");d=g.charAt(b);b+=1;return d},s=function(){var b;b="";d==="-"&&(b="-",m("-"));for(;d>="0"&&d<="9";)b+=d,m();if(d===".")for(b+=".";m()&&d>="0"&&d<="9";)b+=d;if(d==="e"||d==="E"){b+=d;m();if(d==="-"||d==="+")b+=d,m();for(;d>="0"&&d<="9";)b+=d,m()}b=+b;if(isNaN(b))k("Bad number");
else return b},q=function(){var b,g,q="",s;if(d==='"')for(;m();)if(d==='"')return m(),q;else if(d==="\\")if(m(),d==="u"){for(g=s=0;g<4;g+=1){b=parseInt(m(),16);if(!isFinite(b))break;s=s*16+b}q+=String.fromCharCode(s)}else if(typeof e[d]==="string")q+=e[d];else break;else q+=d;k("Bad string")},z=function(){for(;d&&d<=" ";)m()},T=function(){switch(d){case "t":return m("t"),m("r"),m("u"),m("e"),!0;case "f":return m("f"),m("a"),m("l"),m("s"),m("e"),!1;case "n":return m("n"),m("u"),m("l"),m("l"),null}k("Unexpected '"+
d+"'")},C;C=function(){z();switch(d){case "{":var b;a:{var e,g={};if(d==="{"){m("{");z();if(d==="}"){m("}");b=g;break a}for(;d;){e=q();z();m(":");Object.hasOwnProperty.call(g,e)&&k('Duplicate key "'+e+'"');g[e]=C();z();if(d==="}"){m("}");b=g;break a}m(",");z()}}k("Bad object")}return b;case "[":a:{b=[];if(d==="["){m("[");z();if(d==="]"){m("]");e=b;break a}for(;d;){b.push(C());z();if(d==="]"){m("]");e=b;break a}m(",");z()}}k("Bad array")}return e;case '"':return q();case "-":return s();default:return d>=
"0"&&d<="9"?s():T()}};return function(e,m){var q;g=e;b=0;d=" ";q=C();z();d&&k("Syntax error");return typeof m==="function"?function B(b,d){var e,g,c=b[d];if(c&&typeof c==="object")for(e in c)Object.hasOwnProperty.call(c,e)&&(g=B(c,e),g!==void 0?c[e]=g:delete c[e]);return m.call(b,d,c)}({"":q},""):q}}();var workingDir=getWorkingDir(),STR_PAD_RIGHT=1,STR_PAD_LEFT=2;function cutString(b,d){typeof b=="string"&&b.length>d&&(b=b.substring(0,b.lastIndexOf(" ",d-3))+"...");return b}
function validateForm(b){function d(b){m=findFormLabel(b);b.value.length==0?(m&&(m.css({color:"#B00000"}),g+='- field "'+m[0].textContent+'" is required\n'),k&&b.focus(),k=!1):m&&m.css({color:"#000000"})}function e(b){m=findFormLabel(b);b.value.search(/^[a-z0-9][-\._a-z0-9]*@[a-z0-9][a-z0-9_-]*(\.[a-z0-9][a-z0-9_-]*)*\.[a-z]{2,}$/ig)==-1?(m&&(m.css({color:"#B00000"}),g+='- field "'+m[0].textContent+'" is not valid e-mail.\n'),k&&b.focus(),k=!1):m&&m.css({color:"#000000"})}var g,k,m;g="Some fields are not filled or are filled incorrectly:\n\n";
k=!0;for(var b=$(".email, .required, .password",b),s=0;s<b.length;s++)b[s].className.indexOf("required")>=0&&d(b[s]),b[s].className.indexOf("email")>=0&&b[s].value.length>0&&e(b[s]);(function(b){b=$("input.password",b.form);b.length>=2&&(m=findFormLabel(b[0]).add(findFormLabel(b[1])),b[0].value!=b[1].value?(m&&(m.css({color:"#B00000"}),g+="- Passwords does not match.\n"),k&&b[0].focus(),k=!1):m&&m.css({color:"#000000"}));return k})(b);k||alert(g);return k}
function checkPasswordStrength(b){var d,e;d=passwordStrength(b.value);b=$("img",b.parentNode.parentNode)[0];e=$("span",b.parentNode).not("span + span");d==0?(b.src=workingDir+"img/spacer.gif",e.css({color:"#000000"})):d<4?(b.src=workingDir+"img/security-low.png",e.css({color:"#B00000"})):d<7?(b.src=workingDir+"img/security-medium.png",e.css({color:"#907000"})):(b.src=workingDir+"img/security-high.png",e.css({color:"#007000"}));e.text("Security "+d+"/10")}
function passwordStrength(b){var d=0;return d=b.length==0?0:b.match(/^[a-z]+$/)?b.length<=5?1:b.length<=7?2:4:b.match(/^[a-z0-9]+$/)?b.length<=5?3:b.length<=7?4:6:b.match(/^[a-zA-Z0-9]+$/)?b.length<=5?5:b.length<=7?6:8:b.length<=5?6:b.length<=7?8:10}function findFormLabel(b){return $("label[for="+b.id+"]")}typeof XMLHttpRequest=="undefined"&&(XMLHttpRequest=function(){return new ActiveXObject(navigator.userAgent.indexOf("MSIE 5")>=0?"Microsoft.XMLHTTP":"Msxml2.XMLHTTP")});
function createLogin(b){var d,e;b.style.display="none";d=document.createElement("form");d.action="/signin.html";d.method="post";d.className="center";e=document.createElement("input");e.type="text";e.name="username";e.value="Username:";e.className="text_s";e.style.margin="1px auto";$(e).focus(function(){if(this.value=="Username:")this.value=""}).blur(function(){if(this.value=="")this.value="Username:"});d.appendChild(e);d.appendChild(document.createElement("br"));e=document.createElement("input");
e.type="text";e.name="password";e.value="Password:";e.className="text_s";e.style.margin="1px auto";$(e).focus(function(){try{if(this.type!="password")this.value="",this.type="password"}catch(b){}}).blur(function(){if(this.value=="")try{this.type="text",this.value="Password:"}catch(b){}});d.appendChild(e);d.appendChild(document.createElement("br"));e=document.createElement("input");e.type="submit";e.value="Log in";e.style.margin="auto";d.appendChild(e);d.onsubmit=function(){return sendLoginToken(d)};
b.parentNode.appendChild(d);return!1}
function sendLoginToken(b){var d,e;d=b.username.value.toLowerCase();e=b.password.value;e=UTF8.encode(d+"\u2625"+e);e=(new jsSHA(e,"ASCII")).getHash("SHA-512","HEX");$.getJSON("/signin.php?send_token",function(b){original=b;b=UTF8.encode(b);b=(new jsSHA(e+b,"ASCII")).getHash("SHA-512","HEX");ajax={url:"/signin.html",type:"post",dateType:"json",cache:!1,data:{username:d,token:b},success:function(){window.location.reload(1)},error:function(){alert("Unknown username or incorrect password.")}};$.ajax(ajax)});
return!1}function getCookie(b){var d,e;d=document.cookie.split(";");for(var g=0;g<d.length;g++)if(e=d[g].split("="),e[0].trim()==b)return e[1];return null}function confirmAction(b,d){var e;(e=confirm(d))&&(b.href+=b.href.indexOf("?")?"&confirm=true":"?confirm=true");return e}function dechex(b){return parseInt(b).toString(16)}function hexdec(b){return parseInt(b,16)}
var UTF8={encode:function(b){for(var b=b.replace(/\r\n/g,"\n"),d="",e=0;e<b.length;e++){var g=b.charCodeAt(e);g<128?d+=String.fromCharCode(g):(g>127&&g<2048?d+=String.fromCharCode(g>>6|192):(d+=String.fromCharCode(g>>12|224),d+=String.fromCharCode(g>>6&63|128)),d+=String.fromCharCode(g&63|128))}return d},decode:function(b){for(var d="",e=0,g=c1=c2=0;e<b.length;)g=b.charCodeAt(e),g<128?(d+=String.fromCharCode(g),e++):g>191&&g<224?(c2=b.charCodeAt(e+1),d+=String.fromCharCode((g&31)<<6|c2&63),e+=2):
(c2=b.charCodeAt(e+1),c3=b.charCodeAt(e+2),d+=String.fromCharCode((g&15)<<12|(c2&63)<<6|c3&63),e+=3);return d}};function getWorkingDir(){var b,d;b=document.getElementsByTagName("SCRIPT");for(var e=0;e<b.length;e++)if(/\/templates\//.test(b[e].src)){d=/(\/templates\/[^\/]+\/)/.exec(b[e].src)[1];break}return d}function formatSize(b){b>1073741824?b=Math.round(b/1073741824*100)/100+" GB":b>1048576?b=Math.round(b/1048576*100)/100+" MB":b>1024?b=Math.round(b/1024*100)/100+" kB":b+=" B";return b}
function buttonCountdown(b,d){this.button=b;this.sec=d;this.button.countdownValue=this.button.value;this.timeout=function(d){this.sec>=0?(b.value="( "+d.sec+" sec )",d.sec--,setTimeout(function(){d.timeout(d)},1E3)):(d.button.value=d.button.countdownValue,d.button.countdownValue=null,d.button.disabled=!1)};this.button.disabled=!0;this.timeout(this)}
if(typeof Node!="undefined")Node.prototype.nextElement=function(){var b;for(b=this.nextSibling;b&&b.nodeType!=1;)b=b.nextSibling;return b},Node.prototype.previousElement=function(){var b;for(b=this.previousSibling;b&&b.nodeType!=1;)b=b.previousSibling;return b},Node.prototype.firstChildElement=function(){var b;for(b=this.firstChild;b&&b.nodeType!=1;)b=b.nextSibling;return b},Node.prototype.lastChildElement=function(){var b;for(b=this.lastChild;b&&b.nodeType!=1;)b=b.previousSibling;return b};
String.prototype.toUpperCaseFirst=function(){return this.replace(/^([a-z])/,function(b){return b.toUpperCase()})};String.prototype.toCapitals=function(){return this.replace(/(^|\s)([a-z])/g,function(b,d){return b+d.toUpperCase()})};String.prototype.strPad=function(b,d,e){var g;g=this;for(d=d?d.toString():" ";g.length<b;)if(e&STR_PAD_RIGHT)g=g.concat(d);else if(e&STR_PAD_LEFT)g=d.concat(g);else break;return g};String.prototype.trim=function(b){return this.ltrim(b).rtrim(b)};
String.prototype.ltrim=function(b){return this.replace(RegExp("^["+(b||"\\s")+"]+","g"),"")};String.prototype.rtrim=function(b){return this.replace(RegExp("["+(b||"\\s")+"]+$","g"),"")};navigator.appName=="Microsoft Internet Explorer"&&$(window).ready(highlightViewed);function rewriteSearch(){var b;b=$("#keyword")[0].value;b=b.replace(/(\s+)/g,"_");b=encodeURIComponent(b);window.location="/gallery/"+b+"/All/page1.html";return!1}
function showPicture(b){var d,e,g;d=b.href;d=d.replace("/pictures/","/show/");b=b.parentNode;g=d.substr(d.lastIndexOf("/")+1,d.lastIndexOf(".")-d.lastIndexOf("/")-1);e=b.getElementsByTagName("img")[0].alt;e=e.replace(/[\s,()]+/g,"-");e=e.trim("-");d=window.open(d+"/"+g+"-"+e+".html","_blank");navigator.appName=="Microsoft Internet Explorer"&&makeViewed(b);return d}
function makeViewed(b){var d,e;d=dechex($("img",b)[0].id.substring(2));if(isViewed(d)==!1)(e=getCookie("viewed"))?e+="|":e="",document.cookie="viewed="+e+d+";",b.firstChild.className+=" visited"}function isViewed(b){var d;if(d=getCookie("viewed")){d=d.split("|");for(var e=0;e<d.length;e++)if(b==d[e])return!0}return!1}
function highlightViewed(){var b,d;b=$("#thumbnails td.thumbnail img");for(var e=0;e<b.length;e++)d=dechex(b[e].id.substring(2)),isViewed(d)&&(b[e].parentNode.parentNode.className+=" visited")};function showOnReady(){var b,d;b=document.getElementById("picture");b.actualZoom=100;b.showButtons=!0;$(b).load(function(){zoom(getCookie("default_zoom")||"fit",!1)}).click(function(b){if(this.showButtons){var d;d=$("#show_toolbar");d.css({backgroundColor:"#FFFBB1",border:"1px solid #000000",display:"none",left:b.clientX+5+"px",top:b.clientY+5+"px",width:"336px"});$("#close_pic")[0].style.position="static";d.slideDown("fast");d[0].buttonsShown=!0}this.showButtons=!0}).mousedown(function(b){if(b.button==
0)return this.style.cursor="move",$(this).mousemove(function(d){window.scrollBy((b.screenX-d.screenX)*4,(b.screenY-d.screenY)*4);b.screenX=d.screenX;b.screenY=d.screenY;this.showButtons=!1}),!1;return!0}).mouseup(function(){$(this).unbind("mousemove");this.style.cursor=""}).mouseout(function(){$(this).unbind("mousemove");this.style.cursor=""});$("#show_toolbar").mouseleave(function(){var b;b=$(this);if(b[0].buttonsShown)b[0].buttonsShown=!1,b.fadeOut("fast",function(){$("#close_pic")[0].style.position=
"fixed";b.css({backgroundColor:"transparent",border:"0px",display:"block",left:"0px",top:"0px",width:"48px"})})});document.getElementById("show_rating").title.indexOf(" - You have already voted")==-1&&($("#show_rating span").mouseover(ratingHighlight).click(rate),$("#show_rating").mouseleave(ratingReset));getThumbList();$("#discussion").length>0&&loadDiscussion();(new Image).src=workingDir+"img/wait-bar.gif";(new Image).src=workingDir+"img/wait_circle.png";d=document.createElement("iframe");d.id=
"visit_workaround";d.src=b.src;d.style.display="none";document.body.appendChild(d)}function ratingHighlight(b){var d,e,b=b||window.event;d=document.getElementById("show_rating").getElementsByTagName("span");e=!0;for(var g=0;g<5;g++)d[g].style.backgroundPosition=e?"0px -240px":"0px 0px",d[g]==b.currentTarget&&(e=!1)}
function ratingReset(){var b,d;b=document.getElementById("show_rating").title.match(/^Rating ([0-9\.]+)/)[1];b=Math.round(b*4)/4;d=$("#show_rating span");for(var e=0;e<5;e++)d[e].style.backgroundPosition=Math.floor(b)>=e+1?"0px -192px":b>e&&b-Math.floor(b)>=0.75?"0px -144px":b>e&&b-Math.floor(b)>=0.5?"0px -96px":b>e&&b-Math.floor(b)>=0.25?"0px -48px":"0px 0px"}
function rate(b){var d,b=b||window.event,b=$("#show_rating span").index(b.currentTarget)+1;d=$("meta[name=IDpicture]")[0].content;$("#show_rating span").css("display","none");$("#show_rating img").css("display","inline");$.get("/picture/"+d+"/rate"+b+".html",function(b){ratingUpdate(b)})}
function ratingUpdate(b){b=json_parse(b);$("#show_rating").mouseleave().unbind()[0].title="Rating "+b.rating+" ("+b.votes+(b.votes==1?" vote":" votes")+") - You have already voted.";$("#show_rating img").css("display","none");$("#show_rating span").css("display","block").unbind();ratingReset()}
function zoom(b,d){var e,g,k,m,s,q,d=d==void 0?!0:d;k=$("#picture");k[0].naturalWidth==void 0?(k[0].naturalWidth=m=k[0].clientWidth,k[0].naturalHeight=s=k[0].clientHeight,k[0].naturalUnsupported=!0):(m=k[0].naturalWidth,s=k[0].naturalHeight);if(b=="fit"||b=="max"){var z;q=getWindowWidth();z=getWindowHeight()-110;g=z-40;e=Math.round(g/s*m);e>q-30&&(e=q-30,g=Math.round(e/m*s));e>=m&&b=="fit"&&(g=s,e=m,d=!1);q=document.documentElement.scrollTop>document.body.scrollTop?document.documentElement.scrollTop:
document.body.scrollTop;(k.offset().top+g-q>z||k.offset().top<q)&&window.scroll(0,10)}else typeof b=="string"&&(b=k[0].actualZoom+parseInt(b)),b<25&&(b=25),e=Math.round(b*m/100),g=Math.round(b*s/100);if(g<100&&g>e||e<100&&e>g)e=m>s?100:m/s*100,g=s>m?100:s/m*100;k[0].actualZoom=Math.round(e/m*100);e==k[0].width&&(d=!1);k[0].width=e;k[0].height=g;d&&(e=$("#show_actual_zoom"),e.children().html("Zoom: "+k[0].actualZoom+"%"),showElement(e));return!0}
function getWindowWidth(b){b=b||window;return b.innerWidth?b.innerWidth:b.document.documentElement&&b.document.documentElement.clientWidth?b.document.documentElement.clientWidth:b.document.body&&b.document.body.clientWidth?b.document.body.clientWidth:null}
function getWindowHeight(b){b=b||window;return b.innerHeight?b.innerHeight:b.document.documentElement&&b.document.documentElement.clientHeight?b.document.documentElement.clientHeight:b.document.body&&b.document.body.clientHeight?b.document.body.clientHeight:null}function showElement(b){b.showed?b[0].showed++:b[0].showed=1;b[0].showed==1&&b.fadeIn();setTimeout(function(){hideElement(b)},1500)}function hideElement(b){b[0].showed--;b[0].showed==0&&b.fadeOut()}
function getThumbList(){var b=document.referrer||window.opener.location.href;b&&(b=/\/([^\/]+)\/([^\/]+)\/page([0-9]+)\.html$/.exec(b))&&$.get("/thumblist.php?keyword="+b[1],function(b){b=json_parse(b);createThumbnails(b)})}
function createThumbnails(b){var d,e,g,k;document.body.style.paddingBottom="130px";g=document.getElementById("thumb_list").getElementsByTagName("DIV")[2];g.parentNode.style.display="block";e=parseInt($("meta[name=IDpicture]")[0].content);k=g.parentNode.getElementsByTagName("BUTTON");k[0].firstChild.style.backgroundPosition="-96px 0px";k[1].firstChild.style.backgroundPosition="-96px -32px";b.thumbsShowCount=Math.floor((g.offsetWidth-10)/110);b.thumbsShowCount-=b.thumbsShowCount%2?0:1;b.position=Math.ceil(b.thumbsShowCount/
2);b.thumbsShowHalf=b.position-1;b.thumbsSteps=Math.floor(b.thumbsShowHalf/2);for(d=0;d<b.length;d++)if(b[d].id==e){b.position=d;break}if(b.position+b.thumbsShowHalf>=b.length)b.position=b.length-b.thumbsShowHalf-1;if(b.position<b.thumbsShowHalf)b.position=b.thumbsShowHalf;for(d=b.position-b.thumbsShowHalf;d<=b.position+b.thumbsShowHalf&&d<b.length;d++)g.appendChild(createThumbnail(b[d]));k[0].onclick=function(){showPreviousThumb(b,g,k)};k[1].onclick=function(){showNextThumb(b,g,k)};if(b.position-
b.thumbsShowHalf>0)k[0].disabled=!1;if(b.position+b.thumbsShowHalf<b.length-1)k[1].disabled=!1}function showNextThumb(b,d,e){for(i=0;i<b.thumbsSteps&&b.position+b.thumbsShowHalf+1<b.length;i++)d.appendChild(createThumbnail(b[b.position+b.thumbsShowHalf+1])),d.removeChild(d.firstChild),b.position++,b.position+b.thumbsShowHalf>=b.length-1?e[1].disabled=!0:(new Image).src=b[b.position+b.thumbsShowHalf].thumbURI;if(b.position-b.thumbsShowHalf>0)e[0].disabled=!1}
function showPreviousThumb(b,d,e){for(i=0;i<b.thumbsSteps&&b.position-b.thumbsShowHalf>0;i++)d.insertBefore(createThumbnail(b[b.position-1-b.thumbsShowHalf]),d.firstChild),d.removeChild(d.lastChild),b.position--,b.position-b.thumbsShowHalf<=0?e[0].disabled=!0:(new Image).src=b[b.position-b.thumbsShowHalf].thumbURI;if(b.position+b.thumbsShowHalf<b.length-1)e[1].disabled=!1}
function createThumbnail(b){var d,e,g;d=document.createElement("img");d.src=b.thumbURI;d.width=b.width>b.height?100:Math.round(b.width/b.height*100);d.height=b.height>b.width?100:Math.round(b.height/b.width*100);d.title=b.description_plain?b.description_plain:b.name;d.onclick=function(){var d,e;(e=document.getElementById("wait"))||(e=createWaitCircle());e.style.display="inline";if(!e.animate)e.animate=!0,e.animation();d=document.getElementById("visit_workaround");navigator.appName=="Microsoft Internet Explorer"&&
(d=(d.contentDocument||d.document).getElementsByTagName("img")[0]);d.onload=function(){this.onload=null;e.animate=!1;switchPicture(b)};d.src=b.pictureURI};e=Math.ceil((110-d.width)/2);g=Math.ceil((110-d.height)/2);d.style.paddingLeft=e+"px";d.style.paddingRight=110-d.width-e+"px";d.style.paddingTop=g+"px";d.style.paddingBottom=110-d.height-g+"px";return d}
function switchPicture(b){var d,e,g;d=document.getElementById("picture");if(d.naturalUnsupported||d.naturalWidth==void 0)d.naturalWidth=b.width,d.naturalHeight=b.height;d.src=b.pictureURI;d.alt=b.description_plain?b.description_plain:b.tags[0];d.actualZoom=100;document.getElementById("show_rating").title="Rating "+b.rating+" ("+b.votes+(b.votes==1?" vote":" votes")+")"+(b.rated?" - You have already voted.":"");ratingReset();$("meta[name=IDpicture]")[0].content=b.id;$("#discussion").length>0&&loadDiscussion();
(e=document.getElementById("social"))&&e.parentNode.removeChild(e);e=document.getElementById("pic_details").getElementsByTagName("SPAN");e[0].lastChild.nodeValue=b.uploaded;e[1].lastChild.nodeValue=b.width+"x"+b.height+" px";e[2].lastChild.nodeValue=formatFileSize(b.size);e[3].lastChild.nodeValue=b.views;b.description_html?(e[4].childNodes[1].innerHTML=b.description_html,e[4].style.display="inline"):e[4].style.display="none";for(var k=6;k<e.length;k++)if(e[k].className=="tags")break;for(;e[k].lastChild.nodeName!=
"B";)e[k].removeChild(e[k].lastChild);for(var m=0;m<b.tags.length;m++)m>0&&e[k].appendChild(document.createTextNode(", ")),g=document.createElement("a"),g.href="/gallery/%22"+b.tags[m]+"%22/All/page1.html",g.appendChild(document.createTextNode(b.tags[m])),e[k].appendChild(g);document.getElementById("save_pic").href=d.src.replace("/pictures/","/download/");document.title=document.title.replace(/View picture: (.+)/,"View picture: "+b.name)}
function formatFileSize(b){b>1048576?b=Math.round(b/1048576,2)+" MB":b>1024?b=Math.round(b/1024,2)+" kB":b+=" B";return b}
function createWaitCircle(){wait=document.createElement("img");wait.id="wait";wait.src=workingDir+"img/spacer.gif";wait.width=48;wait.height=48;wait.style.display="none";wait.style.background="url("+workingDir+"img/wait_circle.png)";wait.style.top=Math.ceil(getWindowHeight()/2-24)+"px";wait.style.left=Math.ceil(getWindowWidth()/2-24)+"px";wait.style.position="fixed";wait.animate=!1;wait.position=0;wait.animation=function(){if(wait.animate==!1)wait.position=0,wait.style.display="none";else{if(wait.position==
32)wait.position=1;wait.style.backgroundPosition=-wait.position*48+"px 0px";wait.position++;setTimeout(wait.animation,50)}};document.body.appendChild(wait);return wait}function loadDiscussion(){var b;b=$("meta[name=IDpicture]")[0].content;$.getJSON("/comment-data.html?IDpicture="+b,function(b){$("#discussion *").remove();createDiscussion(b,$("#discussion")[0])})}
function createDiscussion(b,d){for(var e,g,k,m,s,q=0;q<b.length;q++){e=document.createElement("DIV");e.className="thread";if(b[q].depth>0)e.style.marginLeft="20px";g=document.createElement("DIV");g.id=b[q].IDcomment;g.className="comment";k=document.createElement("H3");k.appendChild(document.createTextNode(b[q].subject));g.appendChild(k);k=document.createElement("P");m=document.createElement("I");s=document.createElement("B");s.appendChild(document.createTextNode(b[q].username));m.appendChild(s);k.appendChild(m);
m=new Date(b[q].time*1E3);k.appendChild(document.createTextNode(" - "+m.toLocaleDateString()+" "+m.toLocaleTimeString()));g.appendChild(k);k=document.createElement("P");k.innerHTML=b[q].comment_html;g.appendChild(k);if(b[q].own)k=document.createElement("BUTTON"),k.appendChild(document.createTextNode("Delete")),k.onclick=function(){commentDelete(this)},g.appendChild(k),k=document.createElement("BUTTON"),k.appendChild(document.createTextNode("Edit")),k.onclick=function(){commentEdit(this)},g.appendChild(k);
k=document.createElement("BUTTON");k.appendChild(document.createTextNode("Reply"));k.onclick=function(){commentReply(this)};g.appendChild(k);e.appendChild(g);b[q].childNode.length&&createDiscussion(b[q].childNode,e);d.appendChild(e)}}
function commentReply(b){$("#reply-"+b.parentNode.id).length==0&&$.getJSON("/comment-data.html?IDcomment="+b.parentNode.id,function(d){var e,g;e=$("#reply");$(b.parentNode).animate({height:$(b.parentNode).height()+e.height()+"px"},function(){e=e.clone();e.id="reply-"+b.parentNode.id;g=document.createElement("INPUT");g.name="IDparentComment";g.value=b.parentNode.id;g.type="hidden";e[0].appendChild(g);g=document.createElement("INPUT");g.value="Cancel";g.type="button";g.className="button";g.onclick=
function(){$(this).parents("form").animate({opacity:0},function(){$(this).parents(".comment").animate({height:$(this).parents(".comment").height()-$(this).height()+"px"});$(this).remove()})};e[0].send.parentNode.appendChild(g);e[0].subject.value=d.subject.indexOf("Re: ")==0?d.subject:"Re: "+d.subject;e.css({opacity:0});e.appendTo(b.parentNode);e.animate({opacity:1})})})}
function commentEdit(b){$.getJSON("/comment-data.html?IDcomment="+b.parentNode.id,function(d){var e,g;e=$("#reply");$(b.parentNode).animate({height:$(b.parentNode).height()+e.height()+"px"},function(){e=e.clone();g=document.createElement("INPUT");g.name="IDcomment";g.value=b.parentNode.id;g.type="hidden";e[0].appendChild(g);g=document.createElement("INPUT");g.value="Cancel";g.type="button";g.className="button";g.onclick=function(){$(this).parents("form").animate({opacity:0},function(){$(this).parents(".comment").animate({height:$(this).parents(".comment").height()-
$(this).height()+"px"});$(this).remove()})};e[0].send.parentNode.appendChild(g);e[0].subject.value=d.subject;e[0].comment.value=d.comment_bb;e.css({opacity:0});e.appendTo(b.parentNode);e.animate({opacity:1})})})}
function commentDelete(b){if(confirm("Realy delete comment?")){var d;d="IDcomment="+b.parentNode.id+"&IDpicture="+$("meta[name=IDpicture]")[0].content;$.post("/comment-delete.html",d,function(){$(b).parents(".comment").animate({opaque:0},function(){$(this).animate({marginTop:0,marginBottom:0,height:0},function(){$(this).remove()})})})}};function contactOnReady(){button=$("input[type=submit]")[0];new buttonCountdown(button,5);(new Image).src=workingDir+"img/notok.png"}
function addAttachment(b){var d,e;b.uploadFieldsCount?b.uploadFieldsCount++:b.uploadFieldsCount=1;e=b.uploadFieldsCount;b=b.parentNode.parentNode;b=b.previousElement();b.style.display="";b=b.parentNode.insertBefore(document.createElement("tr"),b);b.appendChild(document.createElement("th")).innerHTML="File #"+e+":";d=b.appendChild(document.createElement("td"));b.appendChild(document.createElement("td"));b=document.createElement("input");b.type="file";b.name="att"+e;if(b.files)b.onchange=function(){var b,
d,e;b=0;d=this.form.MAX_FILE_SIZE.value;e=$("input[type=file]");for(var s=0;s<e.length;s++)e[s].files.length>0&&(b+=e[s].files[0].fileSize);this.parentNode.lastChild.nodeType==3?this.parentNode.lastChild.nodeValue=formatSize(this.files[0].fileSize):this.parentNode.appendChild(document.createTextNode(" "+formatSize(this.files[0].fileSize)));b>d&&alert("Files are too large to be uploaded!\nTotal file size is: "+formatSize(b)+"\nAllowed file size: "+formatSize(d))};d.appendChild(b);b=document.createElement("img");
b.alt=b.title="Remove";b.src=workingDir+"img/notok.png";b.onclick=function(){this.parentNode.parentNode.parentNode.removeChild(this.parentNode.parentNode)};d.appendChild(b)};var textSelection;
function bbInsertTag(b,d,e,g){var k,m;if(!(b instanceof HTMLTextAreaElement))b=bbFindRootElement(b).bbIconsFor;e||(e="");k="["+d+(e.length?"="+e:"")+"]";m="[/"+d+"]";b.focus();if(b.selectionEnd!="undefined"){var s,q,g=b.value;s=b.selectionStart;q=b.selectionEnd;g=g.substr(0,s)+k+g.substr(s,q-s)+m+g.substr(q);b.value=g;b.selectionStart=s+d.length+e.length+(e?1:0)+2;b.selectionEnd=q+d.length+e.length+(e?1:0)+2}else if(document.selection!="undefined")g=g||document.selection.createRange(),b=g.text.length,
g.text=k+g.text+m,g.moveStart("character",-b-m.length),g.moveEnd("character",-m.length),g.select()}
function bbInsertTagWithContent(b,d,e,g,k){if(!(b instanceof HTMLTextAreaElement))b=bbFindRootElement(b).bbIconsFor;g||(g="");g="["+d+(g.length?"="+g:"")+"]";d="[/"+d+"]";b.focus();if(typeof b.selectionEnd!="undefined")k=b.selectionEnd,e=g+e+d,g=b.value,g=g.substr(0,k)+e+g.substr(k),b.value=g,b.selectionEnd=b.selectionStart=k+e.length;else if(typeof document.selection!="undefined")k=k||document.selection.createRange(),k.text=k.text+g+e+d}
function bbInsertText(b,d,e){if(!(b instanceof HTMLTextAreaElement))b=bbFindRootElement(b).bbIconsFor;b.focus();if(typeof b.selectionEnd!="undefined"){var g;g=b.selectionEnd;e=b.value;e=e.substr(0,g)+d+e.substr(g);b.value=e;b.selectionEnd=b.selectionStart=g+d.length}else typeof document.selection!="undefined"&&(e=e||document.selection.createRange(),e.text+=d)}
function bbShowColorPicker(b){b=bbFindRootElement(b);b=b.firstChildElement();do{if(b.className=="bb_color_picker")b.style.display="block";if(b.className=="bb_color"){var d;d=b.parentNode;b.style.backgroundPosition="-144px -220px";b.onclick=function(){bbCloseColorPicker(d)}}}while(b=b.nextElement())}
function bbCloseColorPicker(b){b=bbFindRootElement(b);b=b.firstChildElement();do{if(b.className=="bb_color"){var d;d=b.parentNode;b.style.backgroundPosition="";b.onclick=function(){bbShowColorPicker(d)}}if(b.className=="bb_color_picker")b.style.display="none"}while(b=b.nextElement())}
function bbShowColorPreview(b){var d;d=b.style.backgroundColor;b=bbFindRootElement(b);b=b.firstChildElement();do if(b.className=="bb_color_picker"&&(b=b.firstChildElement()),b.className=="bb_color_preview"){b.style.color=d;break}while(b=b.nextElement())}function bbFindRootElement(b){do if(b.className=="bb_icons")break;else b=b.parentNode;while(b.parentNode);return b}
function bbInsertColor(b){var d;d=/R:([0-9]+).+G:([0-9]+).+B:([0-9]+)/.exec(b.title);d=bbGetHexColorFromRGB(d[1],d[2],d[3]);bbInsertTag(b,"color",d);bbCloseColorPicker(b)}function bbGetHexColorFromRGB(b,d,e){b=dechex(b);d=dechex(d);e=dechex(e);b=b.strPad(2,"0","left");d=d.strPad(2,"0","left");e=e.strPad(2,"0","left");return"#"+b+d+e};

