(function(o,m){function ra(a,b,d){if(d===m&&a.nodeType===1){d="data-"+b.replace(cb,"-$1").toLowerCase();d=a.getAttribute(d);if(typeof d==="string"){try{d=d==="true"?true:d==="false"?false:d==="null"?null:!c.isNaN(d)?parseFloat(d):db.test(d)?c.parseJSON(d):d}catch(e){}c.data(a,b,d)}else d=m}return d}function ca(a){for(var b in a)if(b!=="toJSON")return false;return true}function sa(a,b,d){var e=b+"defer",f=b+"queue",g=b+"mark",h=c.data(a,e,m,true);if(h&&(d==="queue"||!c.data(a,f,m,true))&&(d==="mark"||
!c.data(a,g,m,true)))setTimeout(function(){if(!c.data(a,f,m,true)&&!c.data(a,g,m,true)){c.removeData(a,e,true);h.resolve()}},0)}function C(){return false}function Q(){return true}function ta(a,b,d){var e=c.extend({},d[0]);e.type=a;e.originalEvent={};e.liveFired=m;c.event.handle.call(b,e);if(e.isDefaultPrevented())d[0].preventDefault()}function eb(a){var b,d,e,f,g,h,i,j,l,n,m,k=[];f=[];g=c._data(this,"events");if(a.liveFired===this||!g||!g.live||a.target.disabled||a.button&&a.type==="click")return;
if(a.namespace)m=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");a.liveFired=this;var p=g.live.slice(0);for(i=0;i<p.length;i++){g=p[i];if(g.origType.replace(da,"")===a.type)f.push(g.selector);else p.splice(i--,1)}f=c(a.target).closest(f,a.currentTarget);for(j=0,l=f.length;j<l;j++){n=f[j];for(i=0;i<p.length;i++){g=p[i];if(n.selector===g.selector&&(!m||m.test(g.namespace))&&!n.elem.disabled){h=n.elem;e=null;if(g.preType==="mouseenter"||g.preType==="mouseleave"){a.type=g.preType;
if((e=c(a.relatedTarget).closest(g.selector)[0])&&c.contains(h,e))e=h}if(!e||e!==h)k.push({elem:h,handleObj:g,level:n.level})}}}for(j=0,l=k.length;j<l;j++){f=k[j];if(d&&f.level>d)break;a.currentTarget=f.elem;a.data=f.handleObj.data;a.handleObj=f.handleObj;m=f.handleObj.origHandler.apply(f.elem,arguments);if(m===false||a.isPropagationStopped()){d=f.level;if(m===false)b=false;if(a.isImmediatePropagationStopped())break}}return b}function V(a,b){return(a&&a!=="*"?a+".":"")+b.replace(fb,"`").replace(gb,
"&")}function ua(a,b,d){b=b||0;if(c.isFunction(b))return c.grep(a,function(a,c){return!!b.call(a,c,a)===d});else if(b.nodeType)return c.grep(a,function(a){return a===b===d});else if(typeof b==="string"){var e=c.grep(a,function(a){return a.nodeType===1});if(hb.test(b))return c.filter(b,e,!d);else b=c.filter(b,e)}return c.grep(a,function(a){return c.inArray(a,b)>=0===d})}function va(a,b){if(b.nodeType!==1||!c.hasData(a))return;var d=c.expando,e=c.data(a),f=c.data(b,e);if(e=e[d]){var g=e.events,f=f[d]=
c.extend({},e);if(g){delete f.handle;f.events={};for(var h in g){d=0;for(e=g[h].length;d<e;d++)c.event.add(b,h+(g[h][d].namespace?".":"")+g[h][d].namespace,g[h][d],g[h][d].data)}}}}function wa(a,b){var d;if(b.nodeType!==1)return;if(b.clearAttributes)b.clearAttributes();if(b.mergeAttributes)b.mergeAttributes(a);d=b.nodeName.toLowerCase();if(d==="object")b.outerHTML=a.outerHTML;else if(d==="input"&&(a.type==="checkbox"||a.type==="radio")){if(a.checked)b.defaultChecked=b.checked=a.checked;if(b.value!==
a.value)b.value=a.value}else if(d==="option")b.selected=a.defaultSelected;else if(d==="input"||d==="textarea")b.defaultValue=a.defaultValue;b.removeAttribute(c.expando)}function W(a){if("getElementsByTagName"in a)return a.getElementsByTagName("*");else if("querySelectorAll"in a)return a.querySelectorAll("*");else return[]}function xa(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function ya(a){if(c.nodeName(a,"input"))xa(a);else if("getElementsByTagName"in a)c.grep(a.getElementsByTagName("input"),
xa)}function ib(a,b){if(b.src)c.ajax({url:b.src,async:false,dataType:"script"});else c.globalEval((b.text||b.textContent||b.innerHTML||"").replace(jb,"/*$0*/"));if(b.parentNode)b.parentNode.removeChild(b)}function za(a,b,d){var e=b==="width"?a.offsetWidth:a.offsetHeight,f=b==="width"?kb:lb;if(e>0){if(d!=="border")c.each(f,function(){if(!d)e-=parseFloat(c.css(a,"padding"+this))||0;if(d==="margin")e+=parseFloat(c.css(a,d+this))||0;else e-=parseFloat(c.css(a,"border"+this+"Width"))||0});return e+"px"}e=
F(a,b,b);if(e<0||e==null)e=a.style[b]||0;e=parseFloat(e)||0;if(d)c.each(f,function(){e+=parseFloat(c.css(a,"padding"+this))||0;if(d!=="padding")e+=parseFloat(c.css(a,"border"+this+"Width"))||0;if(d==="margin")e+=parseFloat(c.css(a,d+this))||0});return e+"px"}function Aa(a){return function(b,d){var j;if(typeof b!=="string"){d=b;b="*"}if(c.isFunction(d))for(var e=b.toLowerCase().split(Ba),f=0,g=e.length,h,i;f<g;f++){h=e[f];if(i=/^\+/.test(h))h=h.substr(1)||"*";j=a[h]=a[h]||[],h=j;h[i?"unshift":"push"](d)}}}
function X(a,b,c,e,f,g){f=f||b.dataTypes[0];g=g||{};g[f]=true;for(var f=a[f],h=0,i=f?f.length:0,j=a===ea,l;h<i&&(j||!l);h++){l=f[h](b,c,e);if(typeof l==="string")if(!j||g[l])l=m;else{b.dataTypes.unshift(l);l=X(a,b,c,e,l,g)}}if((j||!l)&&!g["*"])l=X(a,b,c,e,"*",g);return l}function Ca(a,b){var d,e,f=c.ajaxSettings.flatOptions||{};for(d in b)if(b[d]!==m)(f[d]?a:e||(e={}))[d]=b[d];if(e)c.extend(true,a,e)}function fa(a,b,d,e){if(c.isArray(b))c.each(b,function(b,f){if(d||mb.test(a))e(a,f);else fa(a+"["+
(typeof f==="object"||c.isArray(f)?b:"")+"]",f,d,e)});else if(!d&&b!=null&&typeof b==="object")for(var f in b)fa(a+"["+f+"]",b[f],d,e);else e(a,b)}function Da(){try{return new o.XMLHttpRequest}catch(a){}}function Ea(){setTimeout(nb,0);return Y=c.now()}function nb(){Y=m}function L(a,b){var d={};c.each(Fa.concat.apply([],Fa.slice(0,b)),function(){d[this]=a});return d}function Ga(a){if(!ga[a]){var b=k.body,d=c("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){if(!u){u=k.createElement("iframe");
u.frameBorder=u.width=u.height=0}b.appendChild(u);if(!G||!u.createElement){G=(u.contentWindow||u.contentDocument).document;G.write((k.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>");G.close()}d=G.createElement(a);G.body.appendChild(d);e=c.css(d,"display");b.removeChild(u)}ga[a]=e}return ga[a]}function ha(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var k=o.document,ob=o.navigator,pb=o.location,c=function(){function a(){if(b.isReady)return;try{k.documentElement.doScroll("left")}catch(c){setTimeout(a,
1);return}b.ready()}var b=function(a,c){return new b.fn.init(a,c,f)},c=o.jQuery,e=o.$,f,g=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,h=/\S/,i=/^\s+/,j=/\s+$/,l=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,B=/^[\],:{}\s]*$/,J=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,s=/(?:^|:|,)(?:\s*\[)+/g,w=/(webkit)[ \/]([\w.]+)/,v=/(opera)(?:.*version)?[ \/]([\w.]+)/,x=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,t=/-([a-z]|[0-9])/ig,q=/^-ms-/,qb=
function(a,b){return(b+"").toUpperCase()},z=ob.userAgent,Z,R,rb=Object.prototype.toString,ia=Object.prototype.hasOwnProperty,ja=Array.prototype.push,T=Array.prototype.slice,U=String.prototype.trim,O=Array.prototype.indexOf,r={};b.fn=b.prototype={constructor:b,init:function(a,c,d){var e;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!c&&k.body){this.context=k;this[0]=k.body;this.selector=a;this.length=1;return this}if(typeof a==="string"){if(a.charAt(0)===
"<"&&a.charAt(a.length-1)===">"&&a.length>=3)e=[null,a,null];else e=g.exec(a);if(e&&(e[1]||!c))if(e[1]){d=(c=c instanceof b?c[0]:c)?c.ownerDocument||c:k;if(a=n.exec(a))if(b.isPlainObject(c)){a=[k.createElement(a[1])];b.fn.attr.call(a,c,true)}else a=[d.createElement(a[1])];else{a=b.buildFragment([e[1]],[d]);a=(a.cacheable?b.clone(a.fragment):a.fragment).childNodes}return b.merge(this,a)}else{if((c=k.getElementById(e[2]))&&c.parentNode){if(c.id!==e[2])return d.find(a);this.length=1;this[0]=c}this.context=
k;this.selector=a;return this}else if(!c||c.jquery)return(c||d).find(a);else return this.constructor(c).find(a)}else if(b.isFunction(a))return d.ready(a);if(a.selector!==m){this.selector=a.selector;this.context=a.context}return b.makeArray(a,this)},selector:"",jquery:"1.6.4",length:0,size:function(){return this.length},toArray:function(){return T.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,c,d){var e=this.constructor();if(b.isArray(a))ja.apply(e,
a);else b.merge(e,a);e.prevObject=this;e.context=this.context;if(c==="find")e.selector=this.selector+(this.selector?" ":"")+d;else if(c)e.selector=this.selector+"."+c+"("+d+")";return e},each:function(a,c){return b.each(this,a,c)},ready:function(a){b.bindReady();Z.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(T.apply(this,arguments),"slice",T.call(arguments).join(","))},
map:function(a){return this.pushStack(b.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:ja,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var a,c,d,e,f,g=arguments[0]||{},t=1,h=arguments.length,q=false;if(typeof g==="boolean"){q=g;g=arguments[1]||{};t=2}if(typeof g!=="object"&&!b.isFunction(g))g={};if(h===t){g=this;--t}for(;t<h;t++)if((a=arguments[t])!=null)for(c in a){d=g[c];e=a[c];if(g===
e)continue;if(q&&e&&(b.isPlainObject(e)||(f=b.isArray(e)))){if(f){f=false;d=d&&b.isArray(d)?d:[]}else d=d&&b.isPlainObject(d)?d:{};g[c]=b.extend(q,d,e)}else if(e!==m)g[c]=e}return g};b.extend({noConflict:function(a){if(o.$===b)o.$=e;if(a&&o.jQuery===b)o.jQuery=c;return b},isReady:false,readyWait:1,holdReady:function(a){if(a)b.readyWait++;else b.ready(true)},ready:function(a){if(a===true&&!--b.readyWait||a!==true&&!b.isReady){if(!k.body)return setTimeout(b.ready,1);b.isReady=true;if(a!==true&&--b.readyWait>
0)return;Z.resolveWith(k,[b]);if(b.fn.trigger)b(k).trigger("ready").unbind("ready")}},bindReady:function(){if(Z)return;Z=b._Deferred();if(k.readyState==="complete")return setTimeout(b.ready,1);if(k.addEventListener){k.addEventListener("DOMContentLoaded",R,false);o.addEventListener("load",b.ready,false)}else if(k.attachEvent){k.attachEvent("onreadystatechange",R);o.attachEvent("onload",b.ready);var c=false;try{c=o.frameElement==null}catch(d){}if(k.documentElement.doScroll&&c)a()}},isFunction:function(a){return b.type(a)===
"function"},isArray:Array.isArray||function(a){return b.type(a)==="array"},isWindow:function(a){return a&&typeof a==="object"&&"setInterval"in a},isNaN:function(a){return a==null||!l.test(a)||isNaN(a)},type:function(a){return a==null?String(a):r[rb.call(a)]||"object"},isPlainObject:function(a){if(!a||b.type(a)!=="object"||a.nodeType||b.isWindow(a))return false;try{if(a.constructor&&!ia.call(a,"constructor")&&!ia.call(a.constructor.prototype,"isPrototypeOf"))return false}catch(c){return false}for(var d in a);
return d===m||ia.call(a,d)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=b.trim(a);if(o.JSON&&o.JSON.parse)return o.JSON.parse(a);if(B.test(a.replace(J,"@").replace(p,"]").replace(s,"")))return(new Function("return "+a))();b.error("Invalid JSON: "+a)},parseXML:function(a){var c,d;try{if(o.DOMParser){d=new DOMParser;c=d.parseFromString(a,"text/xml")}else{c=new ActiveXObject("Microsoft.XMLDOM");
c.async="false";c.loadXML(a)}}catch(e){c=m}if(!c||!c.documentElement||c.getElementsByTagName("parsererror").length)b.error("Invalid XML: "+a);return c},noop:function(){},globalEval:function(a){if(a&&h.test(a))(o.execScript||function(a){o.eval.call(o,a)})(a)},camelCase:function(a){return a.replace(q,"ms-").replace(t,qb)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var e,f=0,g=a.length,t=g===m||b.isFunction(a);if(d)if(t)for(e in a){if(c.apply(a[e],
d)===false)break}else for(;f<g;){if(c.apply(a[f++],d)===false)break}else if(t)for(e in a){if(c.call(a[e],e,a[e])===false)break}else for(;f<g;)if(c.call(a[f],f,a[f++])===false)break;return a},trim:U?function(a){return a==null?"":U.call(a)}:function(a){return a==null?"":a.toString().replace(i,"").replace(j,"")},makeArray:function(a,c){var d=c||[];if(a!=null){var e=b.type(a);if(a.length==null||e==="string"||e==="function"||e==="regexp"||b.isWindow(a))ja.call(d,a);else b.merge(d,a)}return d},inArray:function(a,
b){if(!b)return-1;if(O)return O.call(b,a);for(var c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1},merge:function(a,b){var c=a.length,d=0;if(typeof b.length==="number")for(var e=b.length;d<e;d++)a[c++]=b[d];else for(;b[d]!==m;)a[c++]=b[d++];a.length=c;return a},grep:function(a,b,c){for(var d=[],e,c=!!c,f=0,g=a.length;f<g;f++){e=!!b(a[f],f);if(c!==e)d.push(a[f])}return d},map:function(a,c,d){var e,f,g=[],t=0,h=a.length;if(a instanceof b||h!==m&&typeof h==="number"&&(h>0&&a[0]&&a[h-1]||h===0||
b.isArray(a)))for(;t<h;t++){e=c(a[t],t,d);if(e!=null)g[g.length]=e}else for(f in a){e=c(a[f],f,d);if(e!=null)g[g.length]=e}return g.concat.apply([],g)},guid:1,proxy:function(a,c){if(typeof c==="string")var d=a[c],c=a,a=d;if(!b.isFunction(a))return m;var e=T.call(arguments,2),d=function(){return a.apply(c,e.concat(T.call(arguments)))};d.guid=a.guid=a.guid||d.guid||b.guid++;return d},access:function(a,c,d,e,f,g){var t=a.length;if(typeof c==="object"){for(var h in c)b.access(a,h,c[h],e,f,d);return a}if(d!==
m){e=!g&&e&&b.isFunction(d);for(h=0;h<t;h++)f(a[h],c,e?d.call(a[h],h,f(a[h],c)):d,g);return a}return t?f(a[0],c):m},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();a=w.exec(a)||v.exec(a)||x.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}b.extend(true,a,this);a.superclass=this;a.fn=a.prototype=this();a.fn.constructor=a;a.sub=this.sub;a.fn.init=function(d,e){if(e&&
e instanceof b&&!(e instanceof a))e=a(e);return b.fn.init.call(this,d,e,c)};a.fn.init.prototype=a.fn;var c=a(k);return a},browser:{}});b.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){r["[object "+b+"]"]=b.toLowerCase()});z=b.uaMatch(z);if(z.browser){b.browser[z.browser]=true;b.browser.version=z.version}if(b.browser.webkit)b.browser.safari=true;if(h.test("\u00a0")){i=/^[\s\xA0]+/;j=/[\s\xA0]+$/}f=b(k);if(k.addEventListener)R=function(){k.removeEventListener("DOMContentLoaded",
R,false);b.ready()};else if(k.attachEvent)R=function(){if(k.readyState==="complete"){k.detachEvent("onreadystatechange",R);b.ready()}};return b}(),ka="done fail isResolved isRejected promise then always pipe".split(" "),Ha=[].slice;c.extend({_Deferred:function(){var a=[],b,d,e,f={done:function(){if(!e){var d=arguments,h,i,j,l,n;if(b){n=b;b=0}for(h=0,i=d.length;h<i;h++){j=d[h];l=c.type(j);if(l==="array")f.done.apply(f,j);else if(l==="function")a.push(j)}if(n)f.resolveWith(n[0],n[1])}return this},resolveWith:function(c,
f){if(!e&&!b&&!d){f=f||[];d=1;try{for(;a[0];)a.shift().apply(c,f)}finally{b=[c,f];d=0}}return this},resolve:function(){f.resolveWith(this,arguments);return this},isResolved:function(){return!!(d||b)},cancel:function(){e=1;a=[];return this}};return f},Deferred:function(a){var b=c._Deferred(),d=c._Deferred(),e;c.extend(b,{then:function(a,c){b.done(a).fail(c);return this},always:function(){return b.done.apply(b,arguments).fail.apply(this,arguments)},fail:d.done,rejectWith:d.resolveWith,reject:d.resolve,
isRejected:d.isResolved,pipe:function(a,d){return c.Deferred(function(e){c.each({done:[a,"resolve"],fail:[d,"reject"]},function(a,d){var f=d[0],g=d[1],m;if(c.isFunction(f))b[a](function(){if((m=f.apply(this,arguments))&&c.isFunction(m.promise))m.promise().then(e.resolve,e.reject);else e[g+"With"](this===b?e:this,[m])});else b[a](e[g])})}).promise()},promise:function(a){if(a==null){if(e)return e;e=a={}}for(var c=ka.length;c--;)a[ka[c]]=b[ka[c]];return a}});b.done(d.cancel).fail(b.cancel);delete b.cancel;
if(a)a.call(b,b);return b},when:function(a){function b(a){return function(b){d[a]=arguments.length>1?Ha.call(arguments,0):b;if(!--g)h.resolveWith(h,Ha.call(d,0))}}var d=arguments,e=0,f=d.length,g=f,h=f<=1&&a&&c.isFunction(a.promise)?a:c.Deferred();if(f>1){for(;e<f;e++)if(d[e]&&c.isFunction(d[e].promise))d[e].promise().then(b(e),h.reject);else--g;if(!g)h.resolveWith(h,d)}else if(h!==a)h.resolveWith(h,f?[a]:[]);return h.promise()}});c.support=function(){var a=k.createElement("div"),b=k.documentElement,
d,e,f,g,h,i;a.setAttribute("className","t");a.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";d=a.getElementsByTagName("*");e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};f=k.createElement("select");g=f.appendChild(k.createElement("option"));d=a.getElementsByTagName("input")[0];h={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,
style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:d.value==="on",optSelected:g.selected,getSetAttribute:a.className!=="t",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};d.checked=true;h.noCloneChecked=d.cloneNode(true).checked;f.disabled=true;h.optDisabled=!g.disabled;
try{delete a.test}catch(j){h.deleteExpando=false}if(!a.addEventListener&&a.attachEvent&&a.fireEvent){a.attachEvent("onclick",function(){h.noCloneEvent=false});a.cloneNode(true).fireEvent("onclick")}d=k.createElement("input");d.value="t";d.setAttribute("type","radio");h.radioValue=d.value==="t";d.setAttribute("checked","checked");a.appendChild(d);e=k.createDocumentFragment();e.appendChild(a.firstChild);h.checkClone=e.cloneNode(true).cloneNode(true).lastChild.checked;a.innerHTML="";a.style.width=a.style.paddingLeft=
"1px";f=k.getElementsByTagName("body")[0];e=k.createElement(f?"div":"body");g={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};if(f)c.extend(g,{position:"absolute",left:"-1000px",top:"-1000px"});for(i in g)e.style[i]=g[i];e.appendChild(a);b=f||b;b.insertBefore(e,b.firstChild);h.appendChecked=d.checked;h.boxModel=a.offsetWidth===2;if("zoom"in a.style){a.style.display="inline";a.style.zoom=1;h.inlineBlockNeedsLayout=a.offsetWidth===2;a.style.display="";a.innerHTML="<div style='width:4px;'></div>";
h.shrinkWrapBlocks=a.offsetWidth!==2}a.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";f=a.getElementsByTagName("td");d=f[0].offsetHeight===0;f[0].style.display="";f[1].style.display="none";h.reliableHiddenOffsets=d&&f[0].offsetHeight===0;a.innerHTML="";if(k.defaultView&&k.defaultView.getComputedStyle){d=k.createElement("div");d.style.width="0";d.style.marginRight="0";a.appendChild(d);h.reliableMarginRight=(parseInt((k.defaultView.getComputedStyle(d,
null)||{marginRight:0}).marginRight,10)||0)===0}e.innerHTML="";b.removeChild(e);if(a.attachEvent)for(i in{submit:1,change:1,focusin:1}){b="on"+i;d=b in a;if(!d){a.setAttribute(b,"return;");d=typeof a[b]==="function"}h[i+"Bubbles"]=d}e=e=f=g=f=d=a=d=null;return h}();c.boxModel=c.support.boxModel;var db=/^(?:\{.*\}|\[.*\])$/,cb=/([A-Z])/g;c.extend({cache:{},uuid:0,expando:"jQuery"+(c.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},
hasData:function(a){a=a.nodeType?c.cache[a[c.expando]]:a[c.expando];return!!a&&!ca(a)},data:function(a,b,d,e){if(!c.acceptData(a))return;var f=c.expando,g=typeof b==="string",h=a.nodeType,i=h?c.cache:a,j=h?a[c.expando]:a[c.expando]&&c.expando;if((!j||e&&j&&i[j]&&!i[j][f])&&g&&d===m)return;if(!j)if(h)a[c.expando]=j=++c.uuid;else j=c.expando;if(!i[j]){i[j]={};if(!h)i[j].toJSON=c.noop}if(typeof b==="object"||typeof b==="function")if(e)i[j][f]=c.extend(i[j][f],b);else i[j]=c.extend(i[j],b);a=i[j];if(e){if(!a[f])a[f]=
{};a=a[f]}if(d!==m)a[c.camelCase(b)]=d;if(b==="events"&&!a[b])return a[f]&&a[f].events;if(g){d=a[b];if(d==null)d=a[c.camelCase(b)]}else d=a;return d},removeData:function(a,b,d){if(!c.acceptData(a))return;var e,f=c.expando,g=a.nodeType,h=g?c.cache:a,i=g?a[c.expando]:c.expando;if(!h[i])return;if(b)if(e=d?h[i][f]:h[i]){if(!e[b])b=c.camelCase(b);delete e[b];if(!ca(e))return}if(d){delete h[i][f];if(!ca(h[i]))return}b=h[i][f];if(c.support.deleteExpando||!h.setInterval)delete h[i];else h[i]=null;if(b){h[i]=
{};if(!g)h[i].toJSON=c.noop;h[i][f]=b}else if(g)if(c.support.deleteExpando)delete a[c.expando];else if(a.removeAttribute)a.removeAttribute(c.expando);else a[c.expando]=null},_data:function(a,b,d){return c.data(a,b,d,true)},acceptData:function(a){if(a.nodeName){var b=c.noData[a.nodeName.toLowerCase()];if(b)return!(b===true||a.getAttribute("classid")!==b)}return true}});c.fn.extend({data:function(a,b){var d=null;if(typeof a==="undefined"){if(this.length){d=c.data(this[0]);if(this[0].nodeType===1)for(var e=
this[0].attributes,f,g=0,h=e.length;g<h;g++){f=e[g].name;if(f.indexOf("data-")===0){f=c.camelCase(f.substring(5));ra(this[0],f,d[f])}}}return d}else if(typeof a==="object")return this.each(function(){c.data(this,a)});var i=a.split(".");i[1]=i[1]?"."+i[1]:"";if(b===m){d=this.triggerHandler("getData"+i[1]+"!",[i[0]]);if(d===m&&this.length){d=c.data(this[0],a);d=ra(this[0],a,d)}return d===m&&i[1]?this.data(i[0]):d}else return this.each(function(){var d=c(this),e=[i[0],b];d.triggerHandler("setData"+i[1]+
"!",e);c.data(this,a,b);d.triggerHandler("changeData"+i[1]+"!",e)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({_mark:function(a,b){if(a){b=(b||"fx")+"mark";c.data(a,b,(c.data(a,b,m,true)||0)+1,true)}},_unmark:function(a,b,d){if(a!==true){d=b;b=a;a=false}if(b){var d=d||"fx",e=d+"mark";if(a=a?0:(c.data(b,e,m,true)||1)-1)c.data(b,e,a,true);else{c.removeData(b,e,true);sa(b,d,"mark")}}},queue:function(a,b,d){if(a){var b=(b||"fx")+"queue",e=c.data(a,b,m,true);
if(d)if(!e||c.isArray(d))e=c.data(a,b,c.makeArray(d),true);else e.push(d);return e||[]}},dequeue:function(a,b){var b=b||"fx",d=c.queue(a,b),e=d.shift();if(e==="inprogress")e=d.shift();if(e){if(b==="fx")d.unshift("inprogress");e.call(a,function(){c.dequeue(a,b)})}if(!d.length){c.removeData(a,b+"queue",true);sa(a,b,"queue")}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===m)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);if(a==="fx"&&d[0]!==
"inprogress")c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a){function b(){if(!--g)d.resolveWith(e,[e])}if(typeof a!=="string")a=m;for(var a=a||"fx",d=c.Deferred(),e=this,f=e.length,g=1,h=a+"defer",i=a+"queue",a=a+"mark",j;f--;)if(j=c.data(e[f],
h,m,true)||(c.data(e[f],i,m,true)||c.data(e[f],a,m,true))&&c.data(e[f],h,c._Deferred(),true)){g++;j.done(b)}b();return d.promise()}});var Ia=/[\n\t\r]/g,la=/\s+/,sb=/\r/g,tb=/^(?:button|input)$/i,ub=/^(?:button|input|object|select|textarea)$/i,vb=/^a(?:rea)?$/i,Ja=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,H,Ka;c.fn.extend({attr:function(a,b){return c.access(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.removeAttr(this,
a)})},prop:function(a,b){return c.access(this,a,b,true,c.prop)},removeProp:function(a){a=c.propFix[a]||a;return this.each(function(){try{this[a]=m;delete this[a]}catch(b){}})},addClass:function(a){var b,d,e,f,g,h,i;if(c.isFunction(a))return this.each(function(b){c(this).addClass(a.call(this,b,this.className))});if(a&&typeof a==="string"){b=a.split(la);for(d=0,e=this.length;d<e;d++){f=this[d];if(f.nodeType===1)if(!f.className&&b.length===1)f.className=a;else{g=" "+f.className+" ";for(h=0,i=b.length;h<
i;h++)if(!~g.indexOf(" "+b[h]+" "))g+=b[h]+" ";f.className=c.trim(g)}}}return this},removeClass:function(a){var b,d,e,f,g,h,i;if(c.isFunction(a))return this.each(function(b){c(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a==="string"||a===m){b=(a||"").split(la);for(d=0,e=this.length;d<e;d++){f=this[d];if(f.nodeType===1&&f.className)if(a){g=(" "+f.className+" ").replace(Ia," ");for(h=0,i=b.length;h<i;h++)g=g.replace(" "+b[h]+" "," ");f.className=c.trim(g)}else f.className=""}}return this},
toggleClass:function(a,b){var d=typeof a,e=typeof b==="boolean";if(c.isFunction(a))return this.each(function(d){c(this).toggleClass(a.call(this,d,this.className,b),b)});return this.each(function(){if(d==="string")for(var f,g=0,h=c(this),i=b,j=a.split(la);f=j[g++];){i=e?i:!h.hasClass(f);h[i?"addClass":"removeClass"](f)}else if(d==="undefined"||d==="boolean"){if(this.className)c._data(this,"__className__",this.className);this.className=this.className||a===false?"":c._data(this,"__className__")||""}})},
hasClass:function(a){for(var a=" "+a+" ",b=0,c=this.length;b<c;b++)if(this[b].nodeType===1&&(" "+this[b].className+" ").replace(Ia," ").indexOf(a)>-1)return true;return false},val:function(a){var b,d,e=this[0];if(!arguments.length){if(e){if((b=c.valHooks[e.nodeName.toLowerCase()]||c.valHooks[e.type])&&"get"in b&&(d=b.get(e,"value"))!==m)return d;d=e.value;return typeof d==="string"?d.replace(sb,""):d==null?"":d}return m}var f=c.isFunction(a);return this.each(function(d){var e=c(this);if(this.nodeType!==
1)return;if(f)d=a.call(this,d,e.val());else d=a;if(d==null)d="";else if(typeof d==="number")d+="";else if(c.isArray(d))d=c.map(d,function(a){return a==null?"":a+""});b=c.valHooks[this.nodeName.toLowerCase()]||c.valHooks[this.type];if(!b||!("set"in b)||b.set(this,d,"value")===m)this.value=d})}});c.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,d=a.selectedIndex,e=[],f=a.options,a=a.type==="select-one";if(d<0)return null;
for(var g=a?d:0,h=a?d+1:f.length;g<h;g++){b=f[g];if(b.selected&&(c.support.optDisabled?!b.disabled:b.getAttribute("disabled")===null)&&(!b.parentNode.disabled||!c.nodeName(b.parentNode,"optgroup"))){b=c(b).val();if(a)return b;e.push(b)}}if(a&&!e.length&&f.length)return c(f[d]).val();return e},set:function(a,b){var d=c.makeArray(b);c(a).find("option").each(function(){this.selected=c.inArray(c(this).val(),d)>=0});if(!d.length)a.selectedIndex=-1;return d}}},attrFn:{val:true,css:true,html:true,text:true,
data:true,width:true,height:true,offset:true},attrFix:{tabindex:"tabIndex"},attr:function(a,b,d,e){var f=a.nodeType;if(!a||f===3||f===8||f===2)return m;if(e&&b in c.attrFn)return c(a)[b](d);if(!("getAttribute"in a))return c.prop(a,b,d);var g,h;if(e=f!==1||!c.isXMLDoc(a)){b=c.attrFix[b]||b;h=c.attrHooks[b];if(!h)if(Ja.test(b))h=Ka;else if(H)h=H}if(d!==m)if(d===null){c.removeAttr(a,b);return m}else if(h&&"set"in h&&e&&(g=h.set(a,d,b))!==m)return g;else{a.setAttribute(b,""+d);return d}else if(h&&"get"in
h&&e&&(g=h.get(a,b))!==null)return g;else{g=a.getAttribute(b);return g===null?m:g}},removeAttr:function(a,b){var d;if(a.nodeType===1){b=c.attrFix[b]||b;c.attr(a,b,"");a.removeAttribute(b);if(Ja.test(b)&&(d=c.propFix[b]||b)in a)a[d]=false}},attrHooks:{type:{set:function(a,b){if(tb.test(a.nodeName)&&a.parentNode)c.error("type property can't be changed");else if(!c.support.radioValue&&b==="radio"&&c.nodeName(a,"input")){var d=a.value;a.setAttribute("type",b);if(d)a.value=d;return b}}},value:{get:function(a,
b){if(H&&c.nodeName(a,"button"))return H.get(a,b);return b in a?a.value:null},set:function(a,b,d){if(H&&c.nodeName(a,"button"))return H.set(a,b,d);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,b,d){var e=a.nodeType;if(!a||e===3||e===8||e===2)return m;
var f,g;if(e!==1||!c.isXMLDoc(a)){b=c.propFix[b]||b;g=c.propHooks[b]}if(d!==m)if(g&&"set"in g&&(f=g.set(a,d,b))!==m)return f;else return a[b]=d;else if(g&&"get"in g&&(f=g.get(a,b))!==null)return f;else return a[b]},propHooks:{tabIndex:{get:function(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?parseInt(b.value,10):ub.test(a.nodeName)||vb.test(a.nodeName)&&a.href?0:m}}}});c.attrHooks.tabIndex=c.propHooks.tabIndex;Ka={get:function(a,b){var d;return c.prop(a,b)===true||(d=a.getAttributeNode(b))&&
d.nodeValue!==false?b.toLowerCase():m},set:function(a,b,d){if(b===false)c.removeAttr(a,d);else{b=c.propFix[d]||d;if(b in a)a[b]=true;a.setAttribute(d,d.toLowerCase())}return d}};if(!c.support.getSetAttribute){H=c.valHooks.button={get:function(a,b){var c;return(c=a.getAttributeNode(b))&&c.nodeValue!==""?c.nodeValue:m},set:function(a,b,c){var e=a.getAttributeNode(c);if(!e){e=k.createAttribute(c);a.setAttributeNode(e)}return e.nodeValue=b+""}};c.each(["width","height"],function(a,b){c.attrHooks[b]=c.extend(c.attrHooks[b],
{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})})}if(!c.support.hrefNormalized)c.each(["href","src","width","height"],function(a,b){c.attrHooks[b]=c.extend(c.attrHooks[b],{get:function(a){a=a.getAttribute(b,2);return a===null?m:a}})});if(!c.support.style)c.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||m},set:function(a,b){return a.style.cssText=""+b}};if(!c.support.optSelected)c.propHooks.selected=c.extend(c.propHooks.selected,{get:function(){return null}});
if(!c.support.checkOn)c.each(["radio","checkbox"],function(){c.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}});c.each(["radio","checkbox"],function(){c.valHooks[this]=c.extend(c.valHooks[this],{set:function(a,b){if(c.isArray(b))return a.checked=c.inArray(c(a).val(),b)>=0}})});var da=/\.(.*)$/,ma=/^(?:textarea|input|select)$/i,fb=/\./g,gb=/ /g,wb=/[^\w\s.|`]/g,xb=function(a){return a.replace(wb,"\\$&")};c.event={add:function(a,b,d,e){if(a.nodeType===3||a.nodeType===
8)return;if(d===false)d=C;else if(!d)return;var f,g;if(d.handler){f=d;d=f.handler}if(!d.guid)d.guid=c.guid++;g=c._data(a);if(!g)return;var h=g.events,i=g.handle;if(!h)g.events=h={};if(!i)g.handle=i=function(a){return typeof c!=="undefined"&&(!a||c.event.triggered!==a.type)?c.event.handle.apply(i.elem,arguments):m};i.elem=a;for(var b=b.split(" "),j,l=0,n;j=b[l++];){g=f?c.extend({},f):{handler:d,data:e};if(j.indexOf(".")>-1){n=j.split(".");j=n.shift();g.namespace=n.slice(0).sort().join(".")}else{n=
[];g.namespace=""}g.type=j;if(!g.guid)g.guid=d.guid;var k=h[j],o=c.event.special[j]||{};if(!k){k=h[j]=[];if(!o.setup||o.setup.call(a,e,n,i)===false)if(a.addEventListener)a.addEventListener(j,i,false);else if(a.attachEvent)a.attachEvent("on"+j,i)}if(o.add){o.add.call(a,g);if(!g.handler.guid)g.handler.guid=d.guid}k.push(g);c.event.global[j]=true}a=null},global:{},remove:function(a,b,d,e){if(a.nodeType===3||a.nodeType===8)return;if(d===false)d=C;var f,g,h=0,i,j,l,n,k,o,p=c.hasData(a)&&c._data(a),s=p&&
p.events;if(!p||!s)return;if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(f in s)c.event.remove(a,f+b);return}for(b=b.split(" ");f=b[h++];){n=f;i=f.indexOf(".")<0;j=[];if(!i){j=f.split(".");f=j.shift();l=new RegExp("(^|\\.)"+c.map(j.slice(0).sort(),xb).join("\\.(?:.*\\.)?")+"(\\.|$)")}k=s[f];if(!k)continue;if(!d){for(g=0;g<k.length;g++){o=k[g];if(i||l.test(o.namespace)){c.event.remove(a,n,o.handler,g);k.splice(g--,1)}}continue}n=c.event.special[f]||{};
for(g=e||0;g<k.length;g++){o=k[g];if(d.guid===o.guid){if(i||l.test(o.namespace)){if(e==null)k.splice(g--,1);if(n.remove)n.remove.call(a,o)}if(e!=null)break}}if(k.length===0||e!=null&&k.length===1){if(!n.teardown||n.teardown.call(a,j)===false)c.removeEvent(a,f,p.handle);delete s[f]}}if(c.isEmptyObject(s)){if(b=p.handle)b.elem=null;delete p.events;delete p.handle;if(c.isEmptyObject(p))c.removeData(a,m,true)}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(a,b,d,e){var f=a.type||
a,g=[],h;if(f.indexOf("!")>=0){f=f.slice(0,-1);h=true}if(f.indexOf(".")>=0){g=f.split(".");f=g.shift();g.sort()}if((!d||c.event.customEvent[f])&&!c.event.global[f])return;a=typeof a==="object"?a[c.expando]?a:new c.Event(f,a):new c.Event(f);a.type=f;a.exclusive=h;a.namespace=g.join(".");a.namespace_re=new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.)?")+"(\\.|$)");if(e||!d){a.preventDefault();a.stopPropagation()}if(!d){c.each(c.cache,function(){var d=this[c.expando];if(d&&d.events&&d.events[f])c.event.trigger(a,
b,d.handle.elem)});return}if(d.nodeType===3||d.nodeType===8)return;a.result=m;a.target=d;b=b!=null?c.makeArray(b):[];b.unshift(a);g=d;e=f.indexOf(":")<0?"on"+f:"";do{h=c._data(g,"handle");a.currentTarget=g;if(h)h.apply(g,b);if(e&&c.acceptData(g)&&g[e]&&g[e].apply(g,b)===false){a.result=false;a.preventDefault()}g=g.parentNode||g.ownerDocument||g===a.target.ownerDocument&&o}while(g&&!a.isPropagationStopped());if(!a.isDefaultPrevented()){var i,g=c.event.special[f]||{};if((!g._default||g._default.call(d.ownerDocument,
a)===false)&&!(f==="click"&&c.nodeName(d,"a"))&&c.acceptData(d)){try{if(e&&d[f]){if(i=d[e])d[e]=null;c.event.triggered=f;d[f]()}}catch(j){}if(i)d[e]=i;c.event.triggered=m}}return a.result},handle:function(a){var a=c.event.fix(a||o.event),b=((c._data(this,"events")||{})[a.type]||[]).slice(0),d=!a.exclusive&&!a.namespace,e=Array.prototype.slice.call(arguments,0);e[0]=a;a.currentTarget=this;for(var f=0,g=b.length;f<g;f++){var h=b[f];if(d||a.namespace_re.test(h.namespace)){a.handler=h.handler;a.data=
h.data;a.handleObj=h;h=h.handler.apply(this,e);if(h!==m){a.result=h;if(h===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(a){if(a[c.expando])return a;for(var b=a,a=c.Event(b),d=this.props.length,e;d;){e=this.props[--d];a[e]=b[e]}if(!a.target)a.target=a.srcElement||k;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){d=a.target.ownerDocument||k;b=d.documentElement;d=d.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=
a.clientY+(b&&b.scrollTop||d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}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!==m)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,V(a.origType,a.selector),c.extend({},a,{handler:eb,guid:a.handler.guid}))},remove:function(a){c.event.remove(this,
V(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,d){if(c.isWindow(this))this.onbeforeunload=d},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};c.removeEvent=k.removeEventListener?function(a,b,c){if(a.removeEventListener)a.removeEventListener(b,c,false)}:function(a,b,c){if(a.detachEvent)a.detachEvent("on"+b,c)};c.Event=function(a,b){if(!this.preventDefault)return new c.Event(a,b);if(a&&a.type){this.originalEvent=a;this.type=a.type;this.isDefaultPrevented=
a.defaultPrevented||a.returnValue===false||a.getPreventDefault&&a.getPreventDefault()?Q:C}else this.type=a;if(b)c.extend(this,b);this.timeStamp=c.now();this[c.expando]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Q;var a=this.originalEvent;if(!a)return;if(a.preventDefault)a.preventDefault();else a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=Q;var a=this.originalEvent;if(!a)return;if(a.stopPropagation)a.stopPropagation();a.cancelBubble=true},
stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Q;this.stopPropagation()},isDefaultPrevented:C,isPropagationStopped:C,isImmediatePropagationStopped:C};var La=function(a){var b=a.relatedTarget,d=false,e=a.type;a.type=a.data;if(b!==this){if(b)d=c.contains(this,b);if(!d){c.event.handle.apply(this,arguments);a.type=e}}},Ma=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,
b,d&&d.selector?Ma:La,a)},teardown:function(a){c.event.remove(this,b,a&&a.selector?Ma:La)}}});if(!c.support.submitBubbles)c.event.special.submit={setup:function(){if(!c.nodeName(this,"form")){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=c.nodeName(b,"input")||c.nodeName(b,"button")?b.type:"";if((d==="submit"||d==="image")&&c(b).closest("form").length)ta("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=c.nodeName(b,"input")||c.nodeName(b,
"button")?b.type:"";if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13)ta("submit",this,arguments)})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};if(!c.support.changeBubbles){var K,Na=function(a){var b=c.nodeName(a,"input")?a.type:"",d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(a){return a.selected}).join("-"):"";else if(c.nodeName(a,"select"))d=a.selectedIndex;
return d},$=function(a,b){var d=a.target,e,f;if(!ma.test(d.nodeName)||d.readOnly)return;e=c._data(d,"_change_data");f=Na(d);if(a.type!=="focusout"||d.type!=="radio")c._data(d,"_change_data",f);if(e===m||f===e)return;if(e!=null||f){a.type="change";a.liveFired=m;c.event.trigger(a,b,d)}};c.event.special.change={filters:{focusout:$,beforedeactivate:$,click:function(a){var b=a.target,d=c.nodeName(b,"input")?b.type:"";if(d==="radio"||d==="checkbox"||c.nodeName(b,"select"))$.call(this,a)},keydown:function(a){var b=
a.target,d=c.nodeName(b,"input")?b.type:"";if(a.keyCode===13&&!c.nodeName(b,"textarea")||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")$.call(this,a)},beforeactivate:function(a){a=a.target;c._data(a,"_change_data",Na(a))}},setup:function(){if(this.type==="file")return false;for(var a in K)c.event.add(this,a+".specialChange",K[a]);return ma.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return ma.test(this.nodeName)}};K=c.event.special.change.filters;
K.focus=K.beforeactivate}if(!c.support.focusinBubbles)c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(a){var d=c.event.fix(a);d.type=b;d.originalEvent={};c.event.trigger(d,null,d.target);if(d.isDefaultPrevented())a.preventDefault()}var e=0;c.event.special[b]={setup:function(){if(e++===0)k.addEventListener(a,d,true)},teardown:function(){if(--e===0)k.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(a,e,f){var g;if(typeof a==="object"){for(var h in a)this[b](h,
e,a[h],f);return this}if(arguments.length===2||e===false){f=e;e=m}if(b==="one"){g=function(a){c(this).unbind(a,g);return f.apply(this,arguments)};g.guid=f.guid||c.guid++}else g=f;if(a==="unload"&&b!=="one")this.one(a,e,f);else{h=0;for(var i=this.length;h<i;h++)c.event.add(this[h],a,g,e)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault)for(var d in a)this.unbind(d,a[d]);else{d=0;for(var e=this.length;d<e;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,
b,c,e){return this.live(b,c,e,a)},undelegate:function(a,b,c){if(arguments.length===0)return this.unbind("live");else return this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return c.event.trigger(a,b,this[0],true)},toggle:function(a){var b=arguments,d=a.guid||c.guid++,e=0,f=function(d){var f=(c.data(this,"lastToggle"+a.guid)||0)%e;c.data(this,"lastToggle"+a.guid,f+1);d.preventDefault();return b[f].apply(this,
arguments)||false};for(f.guid=d;e<b.length;)b[e++].guid=d;return this.click(f)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var na={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(a,e,f,g){var h=0,i,j,l=g||this.selector,n=g?this:c(this.context);if(typeof a==="object"&&!a.preventDefault){for(i in a)n[b](i,e,a[i],l);return this}if(b==="die"&&!a&&g&&g.charAt(0)==="."){n.unbind(g);return this}if(e===
false||c.isFunction(e)){f=e||C;e=m}for(a=(a||"").split(" ");(g=a[h++])!=null;){i=da.exec(g);j="";if(i){j=i[0];g=g.replace(da,"")}if(g==="hover"){a.push("mouseenter"+j,"mouseleave"+j);continue}i=g;if(na[g]){a.push(na[g]+j);g=g+j}else g=(na[g]||g)+j;if(b==="live"){j=0;for(var k=n.length;j<k;j++)c.event.add(n[j],"live."+V(g,l),{data:e,selector:l,handler:f,origType:g,origHandler:f,preType:i})}else n.unbind("live."+V(g,l),f)}return this}});c.each(("blur focus focusin focusout load resize scroll unload click dblclick "+
"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave "+"change select submit keydown keypress keyup error").split(" "),function(a,b){c.fn[b]=function(a,c){if(c==null){c=a;a=null}return arguments.length>0?this.bind(b,a,c):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});(function(){function a(a,b,c,d,e,f){for(var e=0,g=d.length;e<g;e++){var h=d[e];if(h){for(var i=false,h=h[a];h;){if(h.sizcache===c){i=d[h.sizset];break}if(h.nodeType===1&&!f){h.sizcache=c;h.sizset=e}if(h.nodeName.toLowerCase()===
b){i=h;break}h=h[a]}d[e]=i}}}function b(a,b,c,d,e,f){for(var e=0,g=d.length;e<g;e++){var h=d[e];if(h){for(var i=false,h=h[a];h;){if(h.sizcache===c){i=d[h.sizset];break}if(h.nodeType===1){if(!f){h.sizcache=c;h.sizset=e}if(typeof b!=="string"){if(h===b){i=true;break}}else if(l.filter(b,[h]).length>0){i=h;break}}h=h[a]}d[e]=i}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,g=
false,h=true,i=/\\/g,j=/\W/;[0,0].sort(function(){h=false;return 0});var l=function(a,b,c,e){var c=c||[],g=b=b||k;if(b.nodeType!==1&&b.nodeType!==9)return[];if(!a||typeof a!=="string")return c;var h,i,j,m,p,U=true,O=l.isXML(b),r=[],J=a;do{d.exec("");if(h=d.exec(J)){J=h[3];r.push(h[1]);if(h[2]){m=h[3];break}}}while(h);if(r.length>1&&o.exec(a))if(r.length===2&&n.relative[r[0]])i=u(r[0]+r[1],b);else for(i=n.relative[r[0]]?[b]:l(r.shift(),b);r.length;){a=r.shift();if(n.relative[a])a+=r.shift();i=u(a,
i)}else{if(!e&&r.length>1&&b.nodeType===9&&!O&&n.match.ID.test(r[0])&&!n.match.ID.test(r[r.length-1])){h=l.find(r.shift(),b,O);b=h.expr?l.filter(h.expr,h.set)[0]:h.set[0]}if(b){h=e?{expr:r.pop(),set:s(e)}:l.find(r.pop(),r.length===1&&(r[0]==="~"||r[0]==="+")&&b.parentNode?b.parentNode:b,O);i=h.expr?l.filter(h.expr,h.set):h.set;if(r.length>0)j=s(i);else U=false;for(;r.length;){h=p=r.pop();if(!n.relative[p])p="";else h=r.pop();if(h==null)h=b;n.relative[p](j,h,O)}}else j=[]}if(!j)j=i;if(!j)l.error(p||
a);if(f.call(j)==="[object Array]")if(!U)c.push.apply(c,j);else if(b&&b.nodeType===1)for(a=0;j[a]!=null;a++){if(j[a]&&(j[a]===true||j[a].nodeType===1&&l.contains(b,j[a])))c.push(i[a])}else for(a=0;j[a]!=null;a++){if(j[a]&&j[a].nodeType===1)c.push(i[a])}else s(j,c);if(m){l(m,g,c,e);l.uniqueSort(c)}return c};l.uniqueSort=function(a){if(v){g=h;a.sort(v);if(g)for(var b=1;b<a.length;b++)if(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 d;if(!a)return[];for(var e=0,f=n.order.length;e<f;e++){var g,h=n.order[e];if(g=n.leftMatch[h].exec(a)){var j=g[1];g.splice(1,1);if(j.substr(j.length-1)!=="\\"){g[1]=(g[1]||"").replace(i,"");d=n.find[h](g,b,c);if(d!=null){a=a.replace(n.match[h],"");break}}}}if(!d)d=typeof b.getElementsByTagName!=="undefined"?b.getElementsByTagName("*"):[];return{set:d,expr:a}};l.filter=function(a,b,c,d){for(var e,f,g=a,h=[],i=b,j=b&&b[0]&&l.isXML(b[0]);a&&
b.length;){for(var k in n.filter)if((e=n.leftMatch[k].exec(a))!=null&&e[2]){var o,r,p=n.filter[k];r=e[1];f=false;e.splice(1,1);if(r.substr(r.length-1)==="\\")continue;if(i===h)h=[];if(n.preFilter[k]){e=n.preFilter[k](e,i,c,h,d,j);if(!e)f=o=true;else if(e===true)continue}if(e)for(var s=0;(r=i[s])!=null;s++)if(r){o=p(r,e,s,i);var B=d^!!o;if(c&&o!=null)if(B)f=true;else i[s]=false;else if(B){h.push(r);f=true}}if(o!==m){if(!c)i=h;a=a.replace(n.match[k],"");if(!f)return[];break}}if(a===g)if(f==null)l.error(a);
else break;g=a}return i};l.error=function(a){throw"Syntax error, unrecognized expression: "+a;};var n=l.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,
POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b==="string",d=c&&!j.test(b),c=c&&!d;if(d)b=b.toLowerCase();for(var d=0,e=a.length,f;d<e;d++)if(f=a[d]){for(;(f=f.previousSibling)&&f.nodeType!==
1;);a[d]=c||f&&f.nodeName.toLowerCase()===b?f||false:f===b}if(c)l.filter(b,a,true)},">":function(a,b){var c,d=typeof b==="string",e=0,f=a.length;if(d&&!j.test(b))for(b=b.toLowerCase();e<f;e++){if(c=a[e]){c=c.parentNode;a[e]=c.nodeName.toLowerCase()===b?c:false}}else{for(;e<f;e++)if(c=a[e])a[e]=d?c.parentNode:c.parentNode===b;if(d)l.filter(b,a,true)}},"":function(c,d,f){var g,h=e++,i=b;if(typeof d==="string"&&!j.test(d)){g=d=d.toLowerCase();i=a}i("parentNode",d,h,c,g,f)},"~":function(c,d,f){var g,
h=e++,i=b;if(typeof d==="string"&&!j.test(d)){g=d=d.toLowerCase();i=a}i("previousSibling",d,h,c,g,f)}},find:{ID:function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c)return(a=b.getElementById(a[1]))&&a.parentNode?[a]:[]},NAME:function(a,b){if(typeof b.getElementsByName!=="undefined"){for(var c=[],d=b.getElementsByName(a[1]),e=0,f=d.length;e<f;e++)if(d[e].getAttribute("name")===a[1])c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!=="undefined")return b.getElementsByTagName(a[1])}},
preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(i,"")+" ";if(f)return a;for(var f=0,g;(g=b[f])!=null;f++)if(g)if(e^(g.className&&(" "+g.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)){if(!c)d.push(g)}else if(c)b[f]=false;return false},ID:function(a){return a[1].replace(i,"")},TAG:function(a){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){if(!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 if(a[2])l.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){b=a[1]=a[1].replace(i,"");if(!f&&n.attrMap[b])a[1]=n.attrMap[b];a[4]=(a[4]||a[5]||"").replace(i,"");if(a[2]==="~=")a[4]=" "+a[4]+" ";return a},PSEUDO:function(a,b,c,e,f){if(a[1]==="not")if((d.exec(a[3])||"").length>1||/^\w/.test(a[3]))a[3]=l(a[3],null,null,b);else{a=l.filter(a[3],b,c,true^f);if(!c)e.push.apply(e,a);return false}else if(n.match.POS.test(a[0])||
n.match.CHILD.test(a[0]))return true;return a},POS:function(a){a.unshift(true);return a}},filters:{enabled:function(a){return a.disabled===false&&a.type!=="hidden"},disabled:function(a){return a.disabled===true},checked:function(a){return a.checked===true},selected:function(a){return a.selected===true},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){var b=
a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||
b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,
b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=n.filters[e];if(f)return f(a,c,b,d);else if(e==="contains")return(a.textContent||a.innerText||l.getText([a])||"").indexOf(b[3])>=0;else if(e==="not"){b=b[3];c=0;for(d=b.length;c<d;c++)if(b[c]===a)return false;
return true}else l.error(e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){case "only":case "first":for(;d=d.previousSibling;)if(d.nodeType===1)return false;if(c==="first")return true;d=a;case "last":for(;d=d.nextSibling;)if(d.nodeType===1)return false;return true;case "nth":var c=b[2],e=b[3];if(c===1&&e===0)return true;var f=b[0],g=a.parentNode;if(g&&(g.sizcache!==f||!a.nodeIndex)){for(var h=0,d=g.firstChild;d;d=d.nextSibling)if(d.nodeType===1)d.nodeIndex=++h;g.sizcache=f}d=a.nodeIndex-e;if(c===0)return d===
0;else return d%c===0&&d/c>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],c=n.attrHandle[c]?n.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),d=c+"",e=b[2],f=b[4];return c==null?e==="!=":e==="="?d===f:e==="*="?d.indexOf(f)>=0:e==="~="?(" "+d+" ").indexOf(f)>=0:!f?d&&c!==false:
e==="!="?d!==f:e==="^="?d.indexOf(f)===0:e==="$="?d.substr(d.length-f.length)===f:e==="|="?d===f||d.substr(0,f.length+1)===f+"-":false},POS:function(a,b,c,d){var e=n.setFilters[b[2]];if(e)return e(a,c,b,d)}}},o=n.match.POS,J=function(a,b){return"\\"+(b-0+1)},p;for(p in n.match){n.match[p]=new RegExp(n.match[p].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[p]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[p].source.replace(/\\(\d+)/g,J))}var s=function(a,b){a=Array.prototype.slice.call(a,0);
if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(k.documentElement.childNodes,0)[0].nodeType}catch(w){s=function(a,b){var c=0,d=b||[];if(f.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length==="number")for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var v,x;if(k.documentElement.compareDocumentPosition)v=function(a,b){if(a===b){g=true;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?
-1:1;return a.compareDocumentPosition(b)&4?-1:1};else{v=function(a,b){if(a===b){g=true;return 0}else if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[];c=a.parentNode;d=b.parentNode;var h=c;if(c===d)return x(a,b);else if(!c)return-1;else if(!d)return 1;for(;h;){e.unshift(h);h=h.parentNode}for(h=d;h;){f.unshift(h);h=h.parentNode}c=e.length;d=f.length;for(h=0;h<c&&h<d;h++)if(e[h]!==f[h])return x(e[h],f[h]);return h===c?x(a,f[h],-1):x(e[h],b,1)};x=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,d=0;a[d];d++){c=a[d];if(c.nodeType===3||c.nodeType===4)b+=c.nodeValue;else if(c.nodeType!==8)b+=l.getText(c.childNodes)}return b};(function(){var a=k.createElement("div"),b="script"+(new Date).getTime(),c=k.documentElement;a.innerHTML="<a name='"+b+"'/>";c.insertBefore(a,c.firstChild);if(k.getElementById(b)){n.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]:m:[]};n.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=k.createElement("div");a.appendChild(k.createComment(""));if(a.getElementsByTagName("*").length>0)n.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){for(var d=
[],e=0;c[e];e++)if(c[e].nodeType===1)d.push(c[e]);c=d}return c};a.innerHTML="<a href='#'></a>";if(a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(a){return a.getAttribute("href",2)};a=null})();if(k.querySelectorAll)(function(){var a=l,b=k.createElement("div");b.innerHTML="<p class='TEST'></p>";if(b.querySelectorAll&&b.querySelectorAll(".TEST").length===0)return;l=function(b,c,d,e){c=c||k;if(!e&&!l.isXML(c)){var f=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);
if(f&&(c.nodeType===1||c.nodeType===9))if(f[1])return s(c.getElementsByTagName(b),d);else if(f[2]&&n.find.CLASS&&c.getElementsByClassName)return s(c.getElementsByClassName(f[2]),d);if(c.nodeType===9){if(b==="body"&&c.body)return s([c.body],d);else if(f&&f[3]){var g=c.getElementById(f[3]);if(g&&g.parentNode){if(g.id===f[3])return s([g],d)}else return s([],d)}try{return s(c.querySelectorAll(b),d)}catch(h){}}else if(c.nodeType===1&&c.nodeName.toLowerCase()!=="object"){var f=c,i=(g=c.getAttribute("id"))||
"__sizzle__",j=c.parentNode,m=/^\s*[+~]/.test(b);if(!g)c.setAttribute("id",i);else i=i.replace(/'/g,"\\$&");if(m&&j)c=c.parentNode;try{if(!m||j)return s(c.querySelectorAll("[id='"+i+"'] "+b),d)}catch(q){}finally{if(!g)f.removeAttribute("id")}}}return a(b,c,d,e)};for(var c in a)l[c]=a[c];b=null})();(function(){var a=k.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var c=!b.call(k.createElement("div"),"div"),d=false;try{b.call(k.documentElement,
"[test!='']:sizzle")}catch(e){d=true}l.matchesSelector=function(a,e){e=e.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!l.isXML(a))try{if(d||!n.match.PSEUDO.test(e)&&!/!=/.test(e)){var f=b.call(a,e);if(f||!c||a.document&&a.document.nodeType!==11)return f}}catch(g){}return l(e,null,null,[a]).length>0}}})();(function(){var a=k.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!a.getElementsByClassName||a.getElementsByClassName("e").length===0)return;a.lastChild.className=
"e";if(a.getElementsByClassName("e").length===1)return;n.order.splice(1,0,"CLASS");n.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c)return b.getElementsByClassName(a[1])};a=null})();if(k.documentElement.contains)l.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):true)};else if(k.documentElement.compareDocumentPosition)l.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)};else l.contains=function(){return false};l.isXML=function(a){return(a=
(a?a.ownerDocument||a:0).documentElement)?a.nodeName!=="HTML":false};var u=function(a,b){for(var c,d=[],e="",f=b.nodeType?[b]:b;c=n.match.PSEUDO.exec(a);){e+=c[0];a=a.replace(n.match.PSEUDO,"")}a=n.relative[a]?a+"*":a;c=0;for(var g=f.length;c<g;c++)l(a,f[c],d);return l.filter(e,d)};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 yb=/Until$/,zb=/^(?:parents|prevUntil|prevAll)/,Ab=/,/,hb=/^.[^:#\[\.,]*$/,
Bb=Array.prototype.slice,Oa=c.expr.match.POS,Cb={children:true,contents:true,next:true,prev:true};c.fn.extend({find:function(a){var b=this,d,e;if(typeof a!=="string")return c(a).filter(function(){for(d=0,e=b.length;d<e;d++)if(c.contains(b[d],this))return true});var f=this.pushStack("","find",a),g,h,i;for(d=0,e=this.length;d<e;d++){g=f.length;c.find(a,this[d],f);if(d>0)for(h=g;h<f.length;h++)for(i=0;i<g;i++)if(f[i]===f[h]){f.splice(h--,1);break}}return f},has:function(a){var b=c(a);return this.filter(function(){for(var a=
0,e=b.length;a<e;a++)if(c.contains(this,b[a]))return true})},not:function(a){return this.pushStack(ua(this,a,false),"not",a)},filter:function(a){return this.pushStack(ua(this,a,true),"filter",a)},is:function(a){return!!a&&(typeof a==="string"?c.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var d=[],e,f,g=this[0];if(c.isArray(a)){var h,i={},j=1;if(g&&a.length){for(e=0,f=a.length;e<f;e++){h=a[e];if(!i[h])i[h]=Oa.test(h)?c(h,b||this.context):h}for(;g&&g.ownerDocument&&g!==b;){for(h in i){e=
i[h];if(e.jquery?e.index(g)>-1:c(g).is(e))d.push({selector:h,elem:g,level:j})}g=g.parentNode;j++}}return d}h=Oa.test(a)||typeof a!=="string"?c(a,b||this.context):0;for(e=0,f=this.length;e<f;e++)for(g=this[e];g;)if(h?h.index(g)>-1:c.find.matchesSelector(g,a)){d.push(g);break}else{g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}d=d.length>1?c.unique(d):d;return this.pushStack(d,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a===
"string")return c.inArray(this[0],c(a));return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var d=typeof a==="string"?c(a,b):c.makeArray(a&&a.nodeType?[a]:a),e=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:c.unique(e))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,
"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},
contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,e){var f=c.map(this,b,d),g=Bb.call(arguments);if(!yb.test(a))e=d;if(e&&typeof e==="string")f=c.filter(e,f);f=this.length>1&&!Cb[a]?c.unique(f):f;if((this.length>1||Ab.test(e))&&zb.test(a))f=f.reverse();return this.pushStack(f,a,g.join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return b.length===1?c.find.matchesSelector(b[0],
a)?[b[0]]:[]:c.find.matches(a,b)},dir:function(a,b,d){for(var e=[],a=a[b];a&&a.nodeType!==9&&(d===m||a.nodeType!==1||!c(a).is(d));){if(a.nodeType===1)e.push(a);a=a[b]}return e},nth:function(a,b,c){for(var b=b||1,e=0;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)if(a.nodeType===1&&a!==b)c.push(a);return c}});var Db=/ jQuery\d+="(?:\d+|null)"/g,oa=/^\s+/,Pa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Qa=/<([\w:]+)/,
Eb=/<tbody/i,Fb=/<|&#?\w+;/,Ra=/<(?:script|object|embed|option|style)/i,Sa=/checked\s*(?:[^=]|=\s*.checked.)/i,Gb=/\/(java|ecma)script/i,jb=/^\s*<!(?:\[CDATA\[|\-\-)/,w={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,"",""]};w.optgroup=
w.option;w.tbody=w.tfoot=w.colgroup=w.caption=w.thead;w.th=w.td;if(!c.support.htmlSerialize)w._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==m)return this.empty().append((this[0]&&this[0].ownerDocument||k).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(true);if(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),d=b.contents();if(d.length)d.wrapAll(a);else b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){if(!c.nodeName(this,
"body"))c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){if(this.nodeType===1)this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){if(this.nodeType===1)this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,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,false,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 d=0,e;(e=this[d])!=null;d++)if(!a||c.filter(a,[e]).length){if(!b&&e.nodeType===1){c.cleanData(e.getElementsByTagName("*"));c.cleanData([e])}if(e.parentNode)e.parentNode.removeChild(e)}return this},
empty:function(){for(var a=0,b;(b=this[a])!=null;a++){if(b.nodeType===1)c.cleanData(b.getElementsByTagName("*"));for(;b.firstChild;)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?false:a;b=b==null?a:b;return this.map(function(){return c.clone(this,a,b)})},html:function(a){if(a===m)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Db,""):null;else if(typeof a==="string"&&!Ra.test(a)&&(c.support.leadingWhitespace||!oa.test(a))&&!w[(Qa.exec(a)||["",""])[1].toLowerCase()]){a=
a.replace(Pa,"<$1></$2>");try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(e){this.empty().append(a)}}else if(c.isFunction(a))this.each(function(b){var d=c(this);d.html(a.call(this,b,d.html()))});else this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),e=d.html();d.replaceWith(a.call(this,b,e))});if(typeof a!==
"string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();if(b)c(b).before(a);else c(d).append(a)})}else return this.length?this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){var e,f,g,h=a[0],i=[];if(!c.support.checkClone&&arguments.length===3&&typeof h==="string"&&Sa.test(h))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(h))return this.each(function(e){var f=
c(this);a[0]=h.call(this,e,b?f.html():m);f.domManip(a,b,d)});if(this[0]){e=h&&h.parentNode;if(c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length)e={fragment:e};else e=c.buildFragment(a,this,i);g=e.fragment;if(g.childNodes.length===1)f=g=g.firstChild;else f=g.firstChild;if(f){b=b&&c.nodeName(f,"tr");f=0;for(var j=this.length,l=j-1;f<j;f++)d.call(b?c.nodeName(this[f],"table")?this[f].getElementsByTagName("tbody")[0]||this[f].appendChild(this[f].ownerDocument.createElement("tbody")):
this[f]:this[f],e.cacheable||j>1&&f<l?c.clone(g,true,true):g)}if(i.length)c.each(i,ib)}return this}});c.buildFragment=function(a,b,d){var e,f,g,h;if(b&&b[0])h=b[0].ownerDocument||b[0];if(!h.createDocumentFragment)h=k;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&h===k&&a[0].charAt(0)==="<"&&!Ra.test(a[0])&&(c.support.checkClone||!Sa.test(a[0]))){f=true;if((g=c.fragments[a[0]])&&g!==1)e=g}if(!e){e=h.createDocumentFragment();c.clean(a,h,e,d)}if(f)c.fragments[a[0]]=g?e:1;return{fragment:e,
cacheable:f}};c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var e=[],d=c(d),f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1){d[b](this[0]);return this}else{for(var f=0,g=d.length;f<g;f++){var h=(f>0?this.clone(true):this).get();c(d[f])[b](h);e=e.concat(h)}return this.pushStack(e,a,d.selector)}}});c.extend({clone:function(a,b,d){var e=
a.cloneNode(true),f,g,h;if((!c.support.noCloneEvent||!c.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!c.isXMLDoc(a)){wa(a,e);f=W(a);g=W(e);for(h=0;f[h];++h)if(g[h])wa(f[h],g[h])}if(b){va(a,e);if(d){f=W(a);g=W(e);for(h=0;f[h];++h)va(f[h],g[h])}}return e},clean:function(a,b,d,e){b=b||k;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||k;for(var f=[],g,h=0,i;(i=a[h])!=null;h++){if(typeof i==="number")i+="";if(!i)continue;if(typeof i==="string")if(!Fb.test(i))i=
b.createTextNode(i);else{i=i.replace(Pa,"<$1></$2>");g=(Qa.exec(i)||["",""])[1].toLowerCase();var j=w[g]||w._default,l=j[0],m=b.createElement("div");for(m.innerHTML=j[1]+i+j[2];l--;)m=m.lastChild;if(!c.support.tbody){l=Eb.test(i);j=g==="table"&&!l?m.firstChild&&m.firstChild.childNodes:j[1]==="<table>"&&!l?m.childNodes:[];for(g=j.length-1;g>=0;--g)if(c.nodeName(j[g],"tbody")&&!j[g].childNodes.length)j[g].parentNode.removeChild(j[g])}if(!c.support.leadingWhitespace&&oa.test(i))m.insertBefore(b.createTextNode(oa.exec(i)[0]),
m.firstChild);i=m.childNodes}var o;if(!c.support.appendChecked)if(i[0]&&typeof(o=i.length)==="number")for(g=0;g<o;g++)ya(i[g]);else ya(i);if(i.nodeType)f.push(i);else f=c.merge(f,i)}if(d){a=function(a){return!a.type||Gb.test(a.type)};for(h=0;f[h];h++)if(e&&c.nodeName(f[h],"script")&&(!f[h].type||f[h].type.toLowerCase()==="text/javascript"))e.push(f[h].parentNode?f[h].parentNode.removeChild(f[h]):f[h]);else{if(f[h].nodeType===1){b=c.grep(f[h].getElementsByTagName("script"),a);f.splice.apply(f,[h+1,
0].concat(b))}d.appendChild(f[h])}}return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.expando,g=c.event.special,h=c.support.deleteExpando,i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&c.noData[j.nodeName.toLowerCase()])continue;if(d=j[c.expando]){if((b=e[d]&&e[d][f])&&b.events){for(var l in b.events)if(g[l])c.event.remove(j,l);else c.removeEvent(j,l,b.handle);if(b.handle)b.handle.elem=null}if(h)delete j[c.expando];else if(j.removeAttribute)j.removeAttribute(c.expando);delete e[d]}}}});var pa=/alpha\([^)]*\)/i,
Hb=/opacity=([^)]*)/,Ib=/([A-Z]|^ms)/g,Ta=/^-?\d+(?:px)?$/i,Jb=/^-?\d/,Kb=/^([\-+])=([\-+.\de]+)/,Lb={position:"absolute",visibility:"hidden",display:"block"},kb=["Left","Right"],lb=["Top","Bottom"],F,Ua,Va;c.fn.css=function(a,b){if(arguments.length===2&&b===m)return this;return c.access(this,a,b,true,function(a,b,f){return f!==m?c.style(a,b,f):c.css(a,b)})};c.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=F(a,"opacity","opacity");return c===""?"1":c}else return a.style.opacity}}},cssNumber:{fillOpacity:true,
fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":c.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,d,e){if(!a||a.nodeType===3||a.nodeType===8||!a.style)return;var f,g=c.camelCase(b),h=a.style,i=c.cssHooks[g],b=c.cssProps[g]||g;if(d!==m){e=typeof d;if(e==="string"&&(f=Kb.exec(d))){d=+(f[1]+1)*+f[2]+parseFloat(c.css(a,b));e="number"}if(d==null||e==="number"&&isNaN(d))return;if(e==="number"&&!c.cssNumber[g])d+="px";if(!i||!("set"in
i)||(d=i.set(a,d))!==m)try{h[b]=d}catch(j){}}else{if(i&&"get"in i&&(f=i.get(a,false,e))!==m)return f;return h[b]}},css:function(a,b,d){var e,f,b=c.camelCase(b);f=c.cssHooks[b];b=c.cssProps[b]||b;if(b==="cssFloat")b="float";if(f&&"get"in f&&(e=f.get(a,true,d))!==m)return e;else if(F)return F(a,b)},swap:function(a,b,c){var e={},f;for(f in b){e[f]=a.style[f];a.style[f]=b[f]}c.call(a);for(f in b)a.style[f]=e[f]}});c.curCSS=c.css;c.each(["height","width"],function(a,b){c.cssHooks[b]={get:function(a,e,
f){var g;if(e){if(a.offsetWidth!==0)return za(a,b,f);else c.swap(a,Lb,function(){g=za(a,b,f)});return g}},set:function(a,b){if(Ta.test(b)){b=parseFloat(b);if(b>=0)return b+"px"}else return b}}});if(!c.support.opacity)c.cssHooks.opacity={get:function(a,b){return Hb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style,e=a.currentStyle,f=c.isNaN(b)?"":"alpha(opacity="+b*100+")",g=e&&e.filter||d.filter||"";d.zoom=1;if(b>=
1&&c.trim(g.replace(pa,""))===""){d.removeAttribute("filter");if(e&&!e.filter)return}d.filter=pa.test(g)?g.replace(pa,f):g+" "+f}};c(function(){if(!c.support.reliableMarginRight)c.cssHooks.marginRight={get:function(a,b){var d;c.swap(a,{display:"inline-block"},function(){if(b)d=F(a,"margin-right","marginRight");else d=a.style.marginRight});return d}}});if(k.defaultView&&k.defaultView.getComputedStyle)Ua=function(a,b){var d,e,b=b.replace(Ib,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return m;
if(e=e.getComputedStyle(a,null)){d=e.getPropertyValue(b);if(d===""&&!c.contains(a.ownerDocument.documentElement,a))d=c.style(a,b)}return d};if(k.documentElement.currentStyle)Va=function(a,b){var c,e=a.currentStyle&&a.currentStyle[b],f=a.runtimeStyle&&a.runtimeStyle[b],g=a.style;if(!Ta.test(e)&&Jb.test(e)){c=g.left;if(f)a.runtimeStyle.left=a.currentStyle.left;g.left=b==="fontSize"?"1em":e||0;e=g.pixelLeft+"px";g.left=c;if(f)a.runtimeStyle.left=f}return e===""?"auto":e};F=Ua||Va;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 Mb=/%20/g,mb=/\[\]$/,Wa=/\r?\n/g,Nb=/#.*$/,Ob=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Pb=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Qb=/^(?:GET|HEAD)$/,Rb=/^\/\//,Xa=/\?/,Sb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
Tb=/^(?:select|textarea)/i,Ba=/\s+/,Ub=/([?&])_=[^&]*/,Ya=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Za=c.fn.load,ea={},$a={},I,D,ab=["*/"]+["*"];try{I=pb.href}catch($b){I=k.createElement("a");I.href="";I=I.href}D=Ya.exec(I.toLowerCase())||[];c.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&Za)return Za.apply(this,arguments);else if(!this.length)return this;var e=a.indexOf(" ");if(e>=0)var f=a.slice(e,a.length),a=a.slice(0,e);e="GET";if(b)if(c.isFunction(b)){d=b;b=m}else if(typeof b===
"object"){b=c.param(b,c.ajaxSettings.traditional);e="POST"}var g=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(a,b,e){e=a.responseText;if(a.isResolved()){a.done(function(a){e=a});g.html(f?c("<div>").append(e.replace(Sb,"")).find(f):e)}if(d)g.each(d,[e,b,a])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&
(this.checked||Tb.test(this.nodeName)||Pb.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(Wa,"\r\n")}}):{name:b.name,value:d.replace(Wa,"\r\n")}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(a){return this.bind(b,a)}});c.each(["get","post"],function(a,b){c[b]=function(a,e,f,g){if(c.isFunction(e)){g=g||f;f=e;e=m}return c.ajax({type:b,
url:a,data:e,success:f,dataType:g})}});c.extend({getScript:function(a,b){return c.get(a,m,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},ajaxSetup:function(a,b){if(b)Ca(a,c.ajaxSettings);else{b=a;a=c.ajaxSettings}Ca(a,b);return a},ajaxSettings:{url:I,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(D[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",
text:"text/plain",json:"application/json, text/javascript","*":ab},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":o.String,"text html":true,"text json":c.parseJSON,"text xml":c.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:Aa(ea),ajaxTransport:Aa($a),ajax:function(a,b){function d(a,b,d,k){if(x===2)return;x=2;if(w)clearTimeout(w);s=m;J=k||"";q.readyState=a>0?4:0;var n,o,p,k=b;if(d)a:{var t=e,r=q,v=t.contents,B=
t.dataTypes,C=t.responseFields,A,y,z,H;for(y in C)if(y in d)r[C[y]]=d[y];for(;B[0]==="*";){B.shift();if(A===m)A=t.mimeType||r.getResponseHeader("content-type")}if(A)for(y in v)if(v[y]&&v[y].test(A)){B.unshift(y);break}if(B[0]in d)z=B[0];else{for(y in d){if(!B[0]||t.converters[y+" "+B[0]]){z=y;break}if(!H)H=y}z=z||H}if(z){if(z!==B[0])B.unshift(z);d=d[z];break a}d=void 0}else d=m;d=d;if(a>=200&&a<300||a===304){if(e.ifModified){if(A=q.getResponseHeader("Last-Modified"))c.lastModified[l]=A;if(A=q.getResponseHeader("Etag"))c.etag[l]=
A}if(a===304){k="notmodified";n=true}else try{A=e;d=d;if(A.dataFilter)d=A.dataFilter(d,A.dataType);var I=A.dataTypes;y={};var D,F,L=I.length,G,M=I[0],E,K,N,P,S;for(D=1;D<L;D++){if(D===1)for(F in A.converters)if(typeof F==="string")y[F.toLowerCase()]=A.converters[F];E=M;M=I[D];if(M==="*")M=E;else if(E!=="*"&&E!==M){K=E+" "+M;N=y[K]||y["* "+M];if(!N){S=m;for(P in y){G=P.split(" ");if(G[0]===E||G[0]==="*")if(S=y[G[1]+" "+M]){P=y[P];if(P===true)N=S;else if(S===true)N=P;break}}}if(!(N||S))c.error("No conversion from "+
K.replace(" "," to "));if(N!==true)d=N?N(d):S(P(d))}}o=d;k="success";n=true}catch(Q){k="parsererror";p=Q}}else{p=k;if(!k||a){k="error";if(a<0)a=0}}q.status=a;q.statusText=""+(b||k);if(n)h.resolveWith(f,[o,k,q]);else h.rejectWith(f,[q,k,p]);q.statusCode(j);j=m;if(u)g.trigger("ajax"+(n?"Success":"Error"),[q,e,n?o:p]);i.resolveWith(f,[q,k]);if(u){g.trigger("ajaxComplete",[q,e]);if(!--c.active)c.event.trigger("ajaxStop")}}if(typeof a==="object"){b=a;a=m}var b=b||{},e=c.ajaxSetup({},b),f=e.context||e,
g=f!==e&&(f.nodeType||f instanceof c)?c(f):c.event,h=c.Deferred(),i=c._Deferred(),j=e.statusCode||{},l,k={},o={},J,p,s,w,v,x=0,u,t,q={readyState:0,setRequestHeader:function(a,b){if(!x){var c=a.toLowerCase(),a=o[c]=o[c]||a;k[a]=b}return this},getAllResponseHeaders:function(){return x===2?J:null},getResponseHeader:function(a){var b;if(x===2){if(!p)for(p={};b=Ob.exec(J);)p[b[1].toLowerCase()]=b[2];b=p[a.toLowerCase()]}return b===m?null:b},overrideMimeType:function(a){if(!x)e.mimeType=a;return this},
abort:function(a){a=a||"abort";if(s)s.abort(a);d(0,a);return this}};h.promise(q);q.success=q.done;q.error=q.fail;q.complete=i.done;q.statusCode=function(a){if(a){var b;if(x<2)for(b in a)j[b]=[j[b],a[b]];else{b=a[q.status];q.then(b,b)}}return this};e.url=((a||e.url)+"").replace(Nb,"").replace(Rb,D[1]+"//");e.dataTypes=c.trim(e.dataType||"*").toLowerCase().split(Ba);if(e.crossDomain==null){v=Ya.exec(e.url.toLowerCase());e.crossDomain=!!(v&&(v[1]!=D[1]||v[2]!=D[2]||(v[3]||(v[1]==="http:"?80:443))!=(D[3]||
(D[1]==="http:"?80:443))))}if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);X(ea,e,b,q);if(x===2)return false;u=e.global;e.type=e.type.toUpperCase();e.hasContent=!Qb.test(e.type);if(u&&c.active++===0)c.event.trigger("ajaxStart");if(!e.hasContent){if(e.data){e.url+=(Xa.test(e.url)?"&":"?")+e.data;delete e.data}l=e.url;if(e.cache===false){v=c.now();var C=e.url.replace(Ub,"$1_="+v);e.url=C+(C===e.url?(Xa.test(e.url)?"&":"?")+"_="+v:"")}}if(e.data&&e.hasContent&&
e.contentType!==false||b.contentType)q.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){l=l||e.url;if(c.lastModified[l])q.setRequestHeader("If-Modified-Since",c.lastModified[l]);if(c.etag[l])q.setRequestHeader("If-None-Match",c.etag[l])}q.setRequestHeader("Accept",e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+(e.dataTypes[0]!=="*"?", "+ab+"; q=0.01":""):e.accepts["*"]);for(t in e.headers)q.setRequestHeader(t,e.headers[t]);if(e.beforeSend&&(e.beforeSend.call(f,
q,e)===false||x===2)){q.abort();return false}for(t in{success:1,error:1,complete:1})q[t](e[t]);s=X($a,e,b,q);if(!s)d(-1,"No Transport");else{q.readyState=1;if(u)g.trigger("ajaxSend",[q,e]);if(e.async&&e.timeout>0)w=setTimeout(function(){q.abort("timeout")},e.timeout);try{x=1;s.send(k,d)}catch(z){if(x<2)d(-1,z);else c.error(z)}}return q},param:function(a,b){var d=[],e=function(a,b){b=c.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(b===m)b=c.ajaxSettings.traditional;
if(c.isArray(a)||a.jquery&&!c.isPlainObject(a))c.each(a,function(){e(this.name,this.value)});else for(var f in a)fa(f,a[f],b,e);return d.join("&").replace(Mb,"+")}});c.extend({active:0,lastModified:{},etag:{}});var Vb=c.now(),aa=/(\=)\?(&|$)|\?\?/i;c.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return c.expando+"_"+Vb++}});c.ajaxPrefilter("json jsonp",function(a,b,d){b=a.contentType==="application/x-www-form-urlencoded"&&typeof a.data==="string";if(a.dataTypes[0]==="jsonp"||a.jsonp!==false&&
(aa.test(a.url)||b&&aa.test(a.data))){var e,f=a.jsonpCallback=c.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,g=o[f],h=a.url,i=a.data,j="$1"+f+"$2";if(a.jsonp!==false){h=h.replace(aa,j);if(a.url===h){if(b)i=i.replace(aa,j);if(a.data===i)h+=(/\?/.test(h)?"&":"?")+a.jsonp+"="+f}}a.url=h;a.data=i;o[f]=function(a){e=[a]};d.always(function(){o[f]=g;if(e&&c.isFunction(g))o[f](e[0])});a.converters["script json"]=function(){if(!e)c.error(f+" was not called");return e[0]};a.dataTypes[0]="json";
return"script"}});c.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){c.globalEval(a);return a}}});c.ajaxPrefilter("script",function(a){if(a.cache===m)a.cache=false;if(a.crossDomain){a.type="GET";a.global=false}});c.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=k.head||k.getElementsByTagName("head")[0]||k.documentElement;return{send:function(e,
f){b=k.createElement("script");b.async="async";if(a.scriptCharset)b.charset=a.scriptCharset;b.src=a.url;b.onload=b.onreadystatechange=function(a,e){if(e||!b.readyState||/loaded|complete/.test(b.readyState)){b.onload=b.onreadystatechange=null;if(c&&b.parentNode)c.removeChild(b);b=m;if(!e)f(200,"success")}};c.insertBefore(b,c.firstChild)},abort:function(){if(b)b.onload(0,1)}}}});var qa=o.ActiveXObject?function(){for(var a in E)E[a](0,1)}:false,Wb=0,E;c.ajaxSettings.xhr=o.ActiveXObject?function(){var a;
if(a=!this.isLocal&&Da());else a:{try{a=new o.ActiveXObject("Microsoft.XMLHTTP");break a}catch(b){}a=void 0}return a}:Da;(function(a){c.extend(c.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})})(c.ajaxSettings.xhr());if(c.support.ajax)c.ajaxTransport(function(a){if(!a.crossDomain||c.support.cors){var b;return{send:function(d,e){var f=a.xhr(),g,h;if(a.username)f.open(a.type,a.url,a.async,a.username,a.password);else f.open(a.type,a.url,a.async);if(a.xhrFields)for(h in a.xhrFields)f[h]=a.xhrFields[h];
if(a.mimeType&&f.overrideMimeType)f.overrideMimeType(a.mimeType);if(!a.crossDomain&&!d["X-Requested-With"])d["X-Requested-With"]="XMLHttpRequest";try{for(h in d)f.setRequestHeader(h,d[h])}catch(i){}f.send(a.hasContent&&a.data||null);b=function(d,h){var i,k,o,p,s;try{if(b&&(h||f.readyState===4)){b=m;if(g){f.onreadystatechange=c.noop;if(qa)delete E[g]}if(h){if(f.readyState!==4)f.abort()}else{i=f.status;o=f.getAllResponseHeaders();p={};if((s=f.responseXML)&&s.documentElement)p.xml=s;p.text=f.responseText;
try{k=f.statusText}catch(u){k=""}if(!i&&a.isLocal&&!a.crossDomain)i=p.text?200:404;else if(i===1223)i=204}}}catch(v){if(!h)e(-1,v)}if(p)e(i,k,p,o)};if(!a.async||f.readyState===4)b();else{g=++Wb;if(qa){if(!E){E={};c(o).unload(qa)}E[g]=b}f.onreadystatechange=b}},abort:function(){if(b)b(0,1)}}}});var ga={},u,G,Xb=/^(?:toggle|show|hide)$/,Yb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,ba,Fa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],
["opacity"]],Y;c.fn.extend({show:function(a,b,d){if(a||a===0)return this.animate(L("show",3),a,b,d);else{for(var d=0,e=this.length;d<e;d++){a=this[d];if(a.style){b=a.style.display;if(!c._data(a,"olddisplay")&&b==="none")b=a.style.display="";if(b===""&&c.css(a,"display")==="none")c._data(a,"olddisplay",Ga(a.nodeName))}}for(d=0;d<e;d++){a=this[d];if(a.style){b=a.style.display;if(b===""||b==="none")a.style.display=c._data(a,"olddisplay")||""}}return this}},hide:function(a,b,d){if(a||a===0)return this.animate(L("hide",
3),a,b,d);else{a=0;for(b=this.length;a<b;a++)if(this[a].style){d=c.css(this[a],"display");if(d!=="none"&&!c._data(this[a],"olddisplay"))c._data(this[a],"olddisplay",d)}for(a=0;a<b;a++)if(this[a].style)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b,d){var e=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else if(a==null||e)this.each(function(){var b=e?a:c(this).is(":hidden");c(this)[b?"show":"hide"]()});else this.animate(L("toggle",
3),a,b,d);return this},fadeTo:function(a,b,c,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,e)},animate:function(a,b,d,e){var f=c.speed(b,d,e);if(c.isEmptyObject(a))return this.each(f.complete,[false]);a=c.extend({},a);return this[f.queue===false?"each":"queue"](function(){var g;if(f.queue===false)c._mark(this);var b=c.extend({},f),d=this.nodeType===1,e=d&&c(this).is(":hidden"),j,l,k,m,o;b.animatedProperties={};for(k in a){j=c.camelCase(k);if(k!==j){a[j]=a[k];
delete a[k]}l=a[j];if(c.isArray(l)){b.animatedProperties[j]=l[1];g=a[j]=l[0],l=g}else b.animatedProperties[j]=b.specialEasing&&b.specialEasing[j]||b.easing||"swing";if(l==="hide"&&e||l==="show"&&!e)return b.complete.call(this);if(d&&(j==="height"||j==="width")){b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(c.css(this,"display")==="inline"&&c.css(this,"float")==="none")if(!c.support.inlineBlockNeedsLayout)this.style.display="inline-block";else{l=Ga(this.nodeName);if(l===
"inline")this.style.display="inline-block";else{this.style.display="inline";this.style.zoom=1}}}}if(b.overflow!=null)this.style.overflow="hidden";for(k in a){d=new c.fx(this,b,k);l=a[k];if(Xb.test(l))d[l==="toggle"?e?"show":"hide":l]();else{j=Yb.exec(l);m=d.cur();if(j){l=parseFloat(j[2]);o=j[3]||(c.cssNumber[k]?"":"px");if(o!=="px"){c.style(this,k,(l||1)+o);m=(l||1)/d.cur()*m;c.style(this,k,m+o)}if(j[1])l=(j[1]==="-="?-1:1)*l+m;d.custom(m,l,o)}else d.custom(m,l,"")}}return true})},stop:function(a,
b){if(a)this.queue([]);this.each(function(){var a=c.timers,e=a.length;if(!b)c._unmark(true,this);for(;e--;)if(a[e].elem===this){if(b)a[e](true);a.splice(e,1)}});if(!b)this.dequeue();return this}});c.each({slideDown:L("show",1),slideUp:L("hide",1),slideToggle:L("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){c.fn[a]=function(a,c,f){return this.animate(b,a,c,f)}});c.extend({speed:function(a,b,d){var e=a&&typeof a==="object"?c.extend({},a):{complete:d||
!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;e.old=e.complete;e.complete=function(a){if(c.isFunction(e.old))e.old.call(this);if(e.queue!==false)c.dequeue(this);else if(a!==false)c._unmark(this)};return e},easing:{linear:function(a,b,c,e){return c+e*a},swing:function(a,b,c,e){return(-Math.cos(a*Math.PI)/2+0.5)*e+c}},timers:[],fx:function(a,
b,c){this.options=b;this.elem=a;this.prop=c;b.orig=b.orig||{}}});c.fx.prototype={update:function(){if(this.options.step)this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=c.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,d){function e(a){return f.step(a)}var f=this,g=c.fx;
this.startTime=Y||Ea();this.start=a;this.end=b;this.unit=d||this.unit||(c.cssNumber[this.prop]?"":"px");this.now=this.start;this.pos=this.state=0;e.elem=this.elem;if(e()&&c.timers.push(e)&&!ba)ba=setInterval(g.tick,g.interval)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=
true;this.custom(this.cur(),0)},step:function(a){var b=Y||Ea(),d=true,e=this.elem,f=this.options,g;if(a||b>=f.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();f.animatedProperties[this.prop]=true;for(g in f.animatedProperties)if(f.animatedProperties[g]!==true)d=false;if(d){if(f.overflow!=null&&!c.support.shrinkWrapBlocks)c.each(["","X","Y"],function(a,b){e.style["overflow"+b]=f.overflow[a]});if(f.hide)c(e).hide();if(f.hide||f.show)for(var h in f.animatedProperties)c.style(e,
h,f.orig[h]);f.complete.call(e)}return false}else{if(f.duration==Infinity)this.now=b;else{a=b-this.startTime;this.state=a/f.duration;this.pos=c.easing[f.animatedProperties[this.prop]](this.state,a,0,1,f.duration);this.now=this.start+(this.end-this.start)*this.pos}this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;++b)if(!a[b]())a.splice(b--,1);if(!a.length)c.fx.stop()},interval:13,stop:function(){clearInterval(ba);ba=null},speeds:{slow:600,fast:200,_default:400},
step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};var Zb=/^t(?:able|d|h)$/i,bb=/^(?:body|html)$/i;if("getBoundingClientRect"in k.documentElement)c.fn.offset=function(a){var b=this[0],
d;if(a)return this.each(function(b){c.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);try{d=b.getBoundingClientRect()}catch(e){}var f=b.ownerDocument,g=f.documentElement;if(!d||!c.contains(g,b))return d?{top:d.top,left:d.left}:{top:0,left:0};b=f.body;f=ha(f);return{top:d.top+(f.pageYOffset||c.support.boxModel&&g.scrollTop||b.scrollTop)-(g.clientTop||b.clientTop||0),left:d.left+(f.pageXOffset||c.support.boxModel&&g.scrollLeft||
b.scrollLeft)-(g.clientLeft||b.clientLeft||0)}};else c.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){c.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d,e=b.offsetParent,f=b.ownerDocument,g=f.documentElement,h=f.body;d=(f=f.defaultView)?f.getComputedStyle(b,null):b.currentStyle;for(var i=b.offsetTop,j=b.offsetLeft;(b=b.parentNode)&&b!==h&&b!==g;){if(c.offset.supportsFixedPosition&&
d.position==="fixed")break;d=f?f.getComputedStyle(b,null):b.currentStyle;i-=b.scrollTop;j-=b.scrollLeft;if(b===e){i+=b.offsetTop;j+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&Zb.test(b.nodeName))){i+=parseFloat(d.borderTopWidth)||0;j+=parseFloat(d.borderLeftWidth)||0}e=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"){i+=parseFloat(d.borderTopWidth)||0;j+=parseFloat(d.borderLeftWidth)||0}d=d}if(d.position==="relative"||
d.position==="static"){i+=h.offsetTop;j+=h.offsetLeft}if(c.offset.supportsFixedPosition&&d.position==="fixed"){i+=Math.max(g.scrollTop,h.scrollTop);j+=Math.max(g.scrollLeft,h.scrollLeft)}return{top:i,left:j}};c.offset={initialize:function(){var a=k.body,b=k.createElement("div"),d,e,f,g=parseFloat(c.css(a,"marginTop"))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
a.insertBefore(b,a.firstChild);d=b.firstChild;e=d.firstChild;f=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=e.offsetTop!==5;this.doesAddBorderForTableAndCells=f.offsetTop===5;e.style.position="fixed";e.style.top="20px";this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15;e.style.position=e.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==g;a.removeChild(b);
c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.css(a,"marginTop"))||0;d+=parseFloat(c.css(a,"marginLeft"))||0}return{top:b,left:d}},setOffset:function(a,b,d){var e=c.css(a,"position");if(e==="static")a.style.position="relative";var f=c(a),g=f.offset(),h=c.css(a,"top"),i=c.css(a,"left"),j={},k={};if((e==="absolute"||e==="fixed")&&c.inArray("auto",[h,i])>-1){k=f.position();e=k.top;
i=k.left}else{e=parseFloat(h)||0;i=parseFloat(i)||0}if(c.isFunction(b))b=b.call(a,d,g);if(b.top!=null)j.top=b.top-g.top+e;if(b.left!=null)j.left=b.left-g.left+i;if("using"in b)b.using.call(a,j);else f.css(j)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=bb.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||k.body;a&&!bb.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(b){var f,g;if(b===m){f=this[0];if(!f)return null;return(g=ha(f))?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&g.document.documentElement[d]||
g.document.body[d]:f[d]}return this.each(function(){if(g=ha(this))g.scrollTo(!a?b:c(g).scrollLeft(),a?b:c(g).scrollTop());else this[d]=b})}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){var a=this[0];return a&&a.style?parseFloat(c.css(a,d,"padding")):null};c.fn["outer"+b]=function(a){var b=this[0];return b&&b.style?parseFloat(c.css(b,d,a?"margin":"border")):null};c.fn[d]=function(a){var f=this[0];if(!f)return a==null?null:this;if(c.isFunction(a))return this.each(function(b){var f=
c(this);f[d](a.call(this,b,f[d]()))});if(c.isWindow(f)){var g=f.document.documentElement["client"+b],h=f.document.body;return f.document.compatMode==="CSS1Compat"&&g||h&&h["client"+b]||g}else if(f.nodeType===9)return Math.max(f.documentElement["client"+b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b]);else if(a===m){f=c.css(f,d);g=parseFloat(f);return c.isNaN(g)?f:g}else return this.css(d,typeof a==="string"?a:a+"px")}});o.jQuery=o.$=c})(window);(function(b,j){function f(g,c){var e=g.nodeName.toLowerCase();if("area"===e){c=g.parentNode;e=c.name;if(!g.href||!e||c.nodeName.toLowerCase()!=="map")return false;g=b("img[usemap=#"+e+"]")[0];return!!g&&i(g)}return(/input|select|textarea|button|object/.test(e)?!g.disabled:"a"==e?g.href||c:c)&&i(g)}function i(g){return!b(g).parents().andSelf().filter(function(){return b.curCSS(this,"visibility")==="hidden"||b.expr.filters.hidden(this)}).length}b.ui=b.ui||{};if(!b.ui.version){b.extend(b.ui,{version:"1.8.13",
keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});b.fn.extend({_focus:b.fn.focus,focus:function(g,c){return typeof g==="number"?this.each(function(){var e=this;setTimeout(function(){b(e).focus();
c&&c.call(e)},g)}):this._focus.apply(this,arguments)},scrollParent:function(){var g;g=b.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(b.curCSS(this,"position",1))&&/(auto|scroll)/.test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(b.curCSS(this,"overflow",1)+b.curCSS(this,
"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!g.length?b(document):g},zIndex:function(g){if(g!==j)return this.css("zIndex",g);if(this.length)for(var g=b(this[0]),c;g.length&&g[0]!==document;){c=g.css("position");if(c==="absolute"||c==="relative"||c==="fixed"){c=parseInt(g.css("zIndex"),10);if(!isNaN(c)&&c!==0)return c}g=g.parent()}return 0},disableSelection:function(){return this.bind((b.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",
function(b){b.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});b.each(["Width","Height"],function(g,c){function e(d,h,c,g){b.each(a,function(){h-=parseFloat(b.curCSS(d,"padding"+this,true))||0;if(c)h-=parseFloat(b.curCSS(d,"border"+this+"Width",true))||0;if(g)h-=parseFloat(b.curCSS(d,"margin"+this,true))||0});return h}var a=c==="Width"?["Left","Right"]:["Top","Bottom"],d=c.toLowerCase(),h={innerWidth:b.fn.innerWidth,innerHeight:b.fn.innerHeight,outerWidth:b.fn.outerWidth,
outerHeight:b.fn.outerHeight};b.fn["inner"+c]=function(a){if(a===j)return h["inner"+c].call(this);return this.each(function(){b(this).css(d,e(this,a)+"px")})};b.fn["outer"+c]=function(a,g){if(typeof a!=="number")return h["outer"+c].call(this,a);return this.each(function(){b(this).css(d,e(this,a,true,g)+"px")})}});b.extend(b.expr[":"],{data:function(g,c,e){return!!b.data(g,e[3])},focusable:function(g){return f(g,!isNaN(b.attr(g,"tabindex")))},tabbable:function(g){var c=b.attr(g,"tabindex"),e=isNaN(c);
return(e||c>=0)&&f(g,!e)}});b(function(){var g=document.body,c=g.appendChild(c=document.createElement("div"));b.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});b.support.minHeight=c.offsetHeight===100;b.support.selectstart="onselectstart"in c;g.removeChild(c).style.display="none"});b.extend(b.ui,{plugin:{add:function(g,c,e){var g=b.ui[g].prototype,a;for(a in e){g.plugins[a]=g.plugins[a]||[];g.plugins[a].push([c,e[a]])}},call:function(b,c,e){if((c=b.plugins[c])&&b.element[0].parentNode)for(var a=
0;a<c.length;a++)b.options[c[a][0]]&&c[a][1].apply(b.element,e)}},contains:function(b,c){return document.compareDocumentPosition?b.compareDocumentPosition(c)&16:b!==c&&b.contains(c)},hasScroll:function(g,c){if(b(g).css("overflow")==="hidden")return false;var c=c&&c==="left"?"scrollLeft":"scrollTop",e=false;if(g[c]>0)return true;g[c]=1;e=g[c]>0;g[c]=0;return e},isOverAxis:function(b,c,e){return b>c&&b<c+e},isOver:function(g,c,e,a,d,h){return b.ui.isOverAxis(g,e,d)&&b.ui.isOverAxis(c,a,h)}})}})(jQuery);
(function(b,j){if(b.cleanData){var f=b.cleanData;b.cleanData=function(g){for(var c=0,e;(e=g[c])!=null;c++)b(e).triggerHandler("remove");f(g)}}else{var i=b.fn.remove;b.fn.remove=function(g,c){return this.each(function(){if(!c)if(!g||b.filter(g,[this]).length)b("*",this).add([this]).each(function(){b(this).triggerHandler("remove")});return i.call(b(this),g,c)})}}b.widget=function(g,c,e){var a=g.split(".")[0],d,g=g.split(".")[1];d=a+"-"+g;if(!e){e=c;c=b.Widget}b.expr[":"][d]=function(a){return!!b.data(a,
g)};b[a]=b[a]||{};b[a][g]=function(a,d){arguments.length&&this._createWidget(a,d)};c=new c;c.options=b.extend(true,{},c.options);b[a][g].prototype=b.extend(true,c,{namespace:a,widgetName:g,widgetEventPrefix:b[a][g].prototype.widgetEventPrefix||g,widgetBaseClass:d},e);b.widget.bridge(g,b[a][g])};b.widget.bridge=function(g,c){b.fn[g]=function(e){var a=typeof e==="string",d=Array.prototype.slice.call(arguments,1),h=this,e=!a&&d.length?b.extend.apply(null,[true,e].concat(d)):e;if(a&&e.charAt(0)==="_")return h;
a?this.each(function(){var a=b.data(this,g),c=a&&b.isFunction(a[e])?a[e].apply(a,d):a;if(c!==a&&c!==j){h=c;return false}}):this.each(function(){var a=b.data(this,g);a?a.option(e||{})._init():b.data(this,g,new c(e,this))});return h}};b.Widget=function(b,c){arguments.length&&this._createWidget(b,c)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(g,c){b.data(c,this.widgetName,this);this.element=b(c);this.options=b.extend(true,{},this.options,
this._getCreateOptions(),g);var e=this;this.element.bind("remove."+this.widgetName,function(){e.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},
widget:function(){return this.element},option:function(g,c){var e=g;if(arguments.length===0)return b.extend({},this.options);if(typeof g==="string"){if(c===j)return this.options[g];e={};e[g]=c}this._setOptions(e);return this},_setOptions:function(g){var c=this;b.each(g,function(b,a){c._setOption(b,a)});return this},_setOption:function(b,c){this.options[b]=c;if(b==="disabled")this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",c);return this},
enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(f,c,e){var a=this.options[f],c=b.Event(c);c.type=(f===this.widgetEventPrefix?f:this.widgetEventPrefix+f).toLowerCase();e=e||{};if(c.originalEvent)for(var f=b.event.props.length,d;f;){d=b.event.props[--f];c[d]=c.originalEvent[d]}this.element.trigger(c,e);return!(b.isFunction(a)&&a.call(this.element[0],c,e)===false||c.isDefaultPrevented())}}})(jQuery);
(function(b){b.ui=b.ui||{};var j=/left|center|right/,f=/top|center|bottom/,i=b.fn.position,g=b.fn.offset;b.fn.position=function(c){if(!c||!c.of)return i.apply(this,arguments);var c=b.extend({},c),e=b(c.of),a=e[0],d=(c.collision||"flip").split(" "),h=c.offset?c.offset.split(" "):[0,0],u,A,g;if(a.nodeType===9){u=e.width();A=e.height();g={top:0,left:0}}else if(a.setTimeout){u=e.width();A=e.height();g={top:e.scrollTop(),left:e.scrollLeft()}}else if(a.preventDefault){c.at="left top";u=A=0;g={top:c.of.pageY,
left:c.of.pageX}}else{u=e.outerWidth();A=e.outerHeight();g=e.offset()}b.each(["my","at"],function(){var a=(c[this]||"").split(" ");if(a.length===1)a=j.test(a[0])?a.concat(["center"]):f.test(a[0])?["center"].concat(a):["center","center"];a[0]=j.test(a[0])?a[0]:"center";a[1]=f.test(a[1])?a[1]:"center";c[this]=a});if(d.length===1)d[1]=d[0];h[0]=parseInt(h[0],10)||0;if(h.length===1)h[1]=h[0];h[1]=parseInt(h[1],10)||0;if(c.at[0]==="right")g.left+=u;else if(c.at[0]==="center")g.left+=u/2;if(c.at[1]==="bottom")g.top+=
A;else if(c.at[1]==="center")g.top+=A/2;g.left+=h[0];g.top+=h[1];return this.each(function(){var a=b(this),e=a.outerWidth(),f=a.outerHeight(),i=parseInt(b.curCSS(this,"marginLeft",true))||0,j=parseInt(b.curCSS(this,"marginTop",true))||0,m=e+i+(parseInt(b.curCSS(this,"marginRight",true))||0),q=f+j+(parseInt(b.curCSS(this,"marginBottom",true))||0),l=b.extend({},g),o;if(c.my[0]==="right")l.left-=e;else if(c.my[0]==="center")l.left-=e/2;if(c.my[1]==="bottom")l.top-=f;else if(c.my[1]==="center")l.top-=
f/2;l.left=Math.round(l.left);l.top=Math.round(l.top);o={left:l.left-i,top:l.top-j};b.each(["left","top"],function(a,g){b.ui.position[d[a]]&&b.ui.position[d[a]][g](l,{targetWidth:u,targetHeight:A,elemWidth:e,elemHeight:f,collisionPosition:o,collisionWidth:m,collisionHeight:q,offset:h,my:c.my,at:c.at})});b.fn.bgiframe&&a.bgiframe();a.offset(b.extend(l,{using:c.using}))})};b.ui.position={fit:{left:function(c,e){var a=b(window),a=e.collisionPosition.left+e.collisionWidth-a.width()-a.scrollLeft();c.left=
a>0?c.left-a:Math.max(c.left-e.collisionPosition.left,c.left)},top:function(c,e){var a=b(window),a=e.collisionPosition.top+e.collisionHeight-a.height()-a.scrollTop();c.top=a>0?c.top-a:Math.max(c.top-e.collisionPosition.top,c.top)}},flip:{left:function(c,e){if(e.at[0]!=="center"){var a=b(window),a=e.collisionPosition.left+e.collisionWidth-a.width()-a.scrollLeft(),d=e.my[0]==="left"?-e.elemWidth:e.my[0]==="right"?e.elemWidth:0,h=e.at[0]==="left"?e.targetWidth:-e.targetWidth,u=-2*e.offset[0];c.left+=
e.collisionPosition.left<0?d+h+u:a>0?d+h+u:0}},top:function(c,e){if(e.at[1]!=="center"){var a=b(window),a=e.collisionPosition.top+e.collisionHeight-a.height()-a.scrollTop(),d=e.my[1]==="top"?-e.elemHeight:e.my[1]==="bottom"?e.elemHeight:0,h=e.at[1]==="top"?e.targetHeight:-e.targetHeight,u=-2*e.offset[1];c.top+=e.collisionPosition.top<0?d+h+u:a>0?d+h+u:0}}}};if(!b.offset.setOffset){b.offset.setOffset=function(c,e){if(/static/.test(b.curCSS(c,"position")))c.style.position="relative";var a=b(c),d=a.offset(),
h=parseInt(b.curCSS(c,"top",true),10)||0,u=parseInt(b.curCSS(c,"left",true),10)||0,d={top:e.top-d.top+h,left:e.left-d.left+u};"using"in e?e.using.call(c,d):a.css(d)};b.fn.offset=function(c){var e=this[0];if(!e||!e.ownerDocument)return null;if(c)return this.each(function(){b.offset.setOffset(this,c)});return g.call(this)}}})(jQuery);
(function(b){var j=0;b.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var f=this,i=this.element[0].ownerDocument,g;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(c){if(!(f.options.disabled||f.element.attr("readonly"))){g=
false;var e=b.ui.keyCode;switch(c.keyCode){case e.PAGE_UP:f._move("previousPage",c);break;case e.PAGE_DOWN:f._move("nextPage",c);break;case e.UP:f._move("previous",c);c.preventDefault();break;case e.DOWN:f._move("next",c);c.preventDefault();break;case e.ENTER:case e.NUMPAD_ENTER:if(f.menu.active){g=true;c.preventDefault()}case e.TAB:if(!f.menu.active)return;f.menu.select(c);break;case e.ESCAPE:f.element.val(f.term);f.close(c);break;default:clearTimeout(f.searching);f.searching=setTimeout(function(){if(f.term!=
f.element.val()){f.selectedItem=null;f.search(null,c)}},f.options.delay)}}}).bind("keypress.autocomplete",function(b){if(g){g=false;b.preventDefault()}}).bind("focus.autocomplete",function(){if(!f.options.disabled){f.selectedItem=null;f.previous=f.element.val()}}).bind("blur.autocomplete",function(b){if(!f.options.disabled){clearTimeout(f.searching);f.closing=setTimeout(function(){f.close(b);f._change(b)},150)}});this._initSource();this.response=function(){return f._response.apply(f,arguments)};this.menu=
b("<ul></ul>").addClass("ui-autocomplete").appendTo(b(this.options.appendTo||"body",i)[0]).mousedown(function(c){var e=f.menu.element[0];b(c.target).closest(".ui-menu-item").length||setTimeout(function(){b(document).one("mousedown",function(a){a.target!==f.element[0]&&a.target!==e&&!b.ui.contains(e,a.target)&&f.close()})},1);setTimeout(function(){clearTimeout(f.closing)},13)}).menu({focus:function(b,e){e=e.item.data("item.autocomplete");false!==f._trigger("focus",b,{item:e})&&/^key/.test(b.originalEvent.type)&&
f.element.val(e.value)},selected:function(b,e){var a=e.item.data("item.autocomplete"),d=f.previous;if(f.element[0]!==i.activeElement){f.element.focus();f.previous=d;setTimeout(function(){f.previous=d;f.selectedItem=a},1)}false!==f._trigger("select",b,{item:a})&&f.element.val(a.value);f.term=f.element.val();f.close(b);f.selectedItem=a},blur:function(){f.menu.element.is(":visible")&&f.element.val()!==f.term&&f.element.val(f.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");
b.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();b.Widget.prototype.destroy.call(this)},_setOption:function(f,i){b.Widget.prototype._setOption.apply(this,arguments);f==="source"&&this._initSource();if(f==="appendTo")this.menu.element.appendTo(b(i||"body",this.element[0].ownerDocument)[0]);f==="disabled"&&
i&&this.xhr&&this.xhr.abort()},_initSource:function(){var f=this,i,g;if(b.isArray(this.options.source)){i=this.options.source;this.source=function(c,e){e(b.ui.autocomplete.filter(i,c.term))}}else if(typeof this.options.source==="string"){g=this.options.source;this.source=function(c,e){f.xhr&&f.xhr.abort();f.xhr=b.ajax({url:g,data:c,dataType:"json",autocompleteRequest:++j,success:function(a){this.autocompleteRequest===j&&e(a)},error:function(){this.autocompleteRequest===j&&e([])}})}}else this.source=
this.options.source},search:function(b,i){b=b!=null?b:this.element.val();this.term=this.element.val();if(b.length<this.options.minLength)return this.close(i);clearTimeout(this.closing);if(this._trigger("search",i)!==false)return this._search(b)},_search:function(b){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:b},this.response)},_response:function(b){if(!this.options.disabled&&b&&b.length){b=this._normalize(b);this._suggest(b);this._trigger("open")}else this.close();
this.pending--;this.pending||this.element.removeClass("ui-autocomplete-loading")},close:function(b){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",b)}},_change:function(b){this.previous!==this.element.val()&&this._trigger("change",b,{item:this.selectedItem})},_normalize:function(f){if(f.length&&f[0].label&&f[0].value)return f;return b.map(f,function(f){if(typeof f==="string")return{label:f,value:f};return b.extend({label:f.label||
f.value,value:f.value||f.label},f)})},_suggest:function(f){var i=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(i,f);this.menu.deactivate();this.menu.refresh();i.show();this._resizeMenu();i.position(b.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next(new b.Event("mouseover"))},_resizeMenu:function(){var b=this.menu.element;b.outerWidth(Math.max(b.width("").outerWidth(),this.element.outerWidth()))},_renderMenu:function(f,i){var g=this;
b.each(i,function(b,e){g._renderItem(f,e)})},_renderItem:function(f,i){return b("<li></li>").data("item.autocomplete",i).append(b("<a></a>").text(i.label)).appendTo(f)},_move:function(b,i){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(b)||this.menu.last()&&/^next/.test(b)){this.element.val(this.term);this.menu.deactivate()}else this.menu[b](i);else this.search(null,i)},widget:function(){return this.menu.element}});b.extend(b.ui.autocomplete,{escapeRegex:function(b){return b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,
"\\$&")},filter:function(f,i){var g=new RegExp(b.ui.autocomplete.escapeRegex(i),"i");return b.grep(f,function(b){return g.test(b.label||b.value||b)})}})})(jQuery);
(function(b){b.widget("ui.menu",{_create:function(){var j=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(f){if(b(f.target).closest(".ui-menu-item a").length){f.preventDefault();j.select(f)}});this.refresh()},refresh:function(){var j=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",
-1).mouseenter(function(f){j.activate(f,b(this).parent())}).mouseleave(function(){j.deactivate()})},activate:function(b,f){this.deactivate();if(this.hasScroll()){var i=f.offset().top-this.element.offset().top,g=this.element.scrollTop(),c=this.element.height();if(i<0)this.element.scrollTop(g+i);else i>=c&&this.element.scrollTop(g+i-c+f.height())}this.active=f.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",b,{item:f})},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");
this._trigger("blur");this.active=null}},next:function(b){this.move("next",".ui-menu-item:first",b)},previous:function(b){this.move("prev",".ui-menu-item:last",b)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(b,f,i){if(this.active){b=this.active[b+"All"](".ui-menu-item").eq(0);b.length?this.activate(i,b):this.activate(i,this.element.children(f))}else this.activate(i,
this.element.children(f))},nextPage:function(j){if(this.hasScroll())if(!this.active||this.last())this.activate(j,this.element.children(".ui-menu-item:first"));else{var f=this.active.offset().top,i=this.element.height(),g=this.element.children(".ui-menu-item").filter(function(){var c=b(this).offset().top-f-i+b(this).height();return c<10&&c>-10});g.length||(g=this.element.children(".ui-menu-item:last"));this.activate(j,g)}else this.activate(j,this.element.children(".ui-menu-item").filter(!this.active||
this.last()?":first":":last"))},previousPage:function(j){if(this.hasScroll())if(!this.active||this.first())this.activate(j,this.element.children(".ui-menu-item:last"));else{var f=this.active.offset().top,i=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var g=b(this).offset().top-f+i-b(this).height();return g<10&&g>-10});result.length||(result=this.element.children(".ui-menu-item:first"));this.activate(j,result)}else this.activate(j,this.element.children(".ui-menu-item").filter(!this.active||
this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element[b.fn.prop?"prop":"attr"]("scrollHeight")},select:function(b){this._trigger("selected",b,{item:this.active})}})})(jQuery);
(function(b,j){function f(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass=
"ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su",
"Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",
minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false};b.extend(this._defaults,this.regional[""]);this.dpDiv=i(b('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}function i(a){return a.delegate("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a",
"mouseout",function(){b(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&b(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&b(this).removeClass("ui-datepicker-next-hover")}).delegate("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a","mouseover",function(){if(!b.datepicker._isDisabledDatepicker(e.inline?a.parent()[0]:e.input[0])){b(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");
b(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&b(this).addClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&b(this).addClass("ui-datepicker-next-hover")}})}function g(a,d){b.extend(a,d);for(var h in d)if(d[h]==null||d[h]==j)a[h]=d[h];return a}b.extend(b.ui,{datepicker:{version:"1.8.13"}});var c=(new Date).getTime(),e;b.extend(f.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},
_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){g(this._defaults,a||{});return this},_attachDatepicker:function(a,d){var h=null,c;for(c in this._defaults){var e=a.getAttribute("date:"+c);if(e){h=h||{};try{h[c]=eval(e)}catch(g){h[c]=e}}}c=a.nodeName.toLowerCase();e=c=="div"||c=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var f=this._newInst(b(a),e);f.settings=b.extend({},d||{},h||{});if(c=="input")this._connectDatepicker(a,f);else e&&this._inlineDatepicker(a,f)},_newInst:function(a,
d){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:d,dpDiv:!d?this.dpDiv:i(b('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}},_connectDatepicker:function(a,d){var h=b(a);d.append=b([]);d.trigger=b([]);if(!h.hasClass(this.markerClassName)){this._attachments(h,d);h.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",
function(a,b,h){d.settings[b]=h}).bind("getData.datepicker",function(a,b){return this._get(d,b)});this._autoSize(d);b.data(a,"datepicker",d)}},_attachments:function(a,d){var h=this._get(d,"appendText"),c=this._get(d,"isRTL");d.append&&d.append.remove();if(h){d.append=b('<span class="'+this._appendClass+'">'+h+"</span>");a[c?"before":"after"](d.append)}a.unbind("focus",this._showDatepicker);d.trigger&&d.trigger.remove();h=this._get(d,"showOn");if(h=="focus"||h=="both")a.focus(this._showDatepicker);
if(h=="button"||h=="both"){var h=this._get(d,"buttonText"),e=this._get(d,"buttonImage");d.trigger=b(this._get(d,"buttonImageOnly")?b("<img/>").addClass(this._triggerClass).attr({src:e,alt:h,title:h}):b('<button type="button"></button>').addClass(this._triggerClass).html(e==""?h:b("<img/>").attr({src:e,alt:h,title:h})));a[c?"before":"after"](d.trigger);d.trigger.click(function(){b.datepicker._datepickerShowing&&b.datepicker._lastInput==a[0]?b.datepicker._hideDatepicker():b.datepicker._showDatepicker(a[0]);
return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),h=this._get(a,"dateFormat");if(h.match(/[DM]/)){var c=function(a){for(var b=0,d=0,h=0;h<a.length;h++)if(a[h].length>b){b=a[h].length;d=h}return d};b.setMonth(c(this._get(a,h.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(c(this._get(a,h.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,d){var h=b(a);
if(!h.hasClass(this.markerClassName)){h.addClass(this.markerClassName).append(d.dpDiv).bind("setData.datepicker",function(a,b,h){d.settings[b]=h}).bind("getData.datepicker",function(a,b){return this._get(d,b)});b.data(a,"datepicker",d);this._setDate(d,this._getDefaultDate(d),true);this._updateDatepicker(d);this._updateAlternate(d);d.dpDiv.show()}},_dialogDatepicker:function(a,d,h,c,e){a=this._dialogInst;if(!a){this.uuid+=1;this._dialogInput=b('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');
this._dialogInput.keydown(this._doKeyDown);b("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};b.data(this._dialogInput[0],"datepicker",a)}g(a.settings,c||{});d=d&&d.constructor==Date?this._formatDate(a,d):d;this._dialogInput.val(d);this._pos=e?e.length?e:[e.pageX,e.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/
2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=h;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);b.blockUI&&b.blockUI(this.dpDiv);b.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var d=b(a),h=b.data(a,"datepicker");if(d.hasClass(this.markerClassName)){var c=a.nodeName.toLowerCase();b.removeData(a,
"datepicker");if(c=="input"){h.append.remove();h.trigger.remove();d.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else if(c=="div"||c=="span")d.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(a){var d=b(a),h=b.data(a,"datepicker");if(d.hasClass(this.markerClassName)){var c=a.nodeName.toLowerCase();if(c=="input"){a.disabled=false;h.trigger.filter("button").each(function(){this.disabled=
false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(c=="div"||c=="span"){d=d.children("."+this._inlineClass);d.children().removeClass("ui-state-disabled");d.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}this._disabledInputs=b.map(this._disabledInputs,function(b){return b==a?null:b})}},_disableDatepicker:function(a){var d=b(a),h=b.data(a,"datepicker");if(d.hasClass(this.markerClassName)){var c=a.nodeName.toLowerCase();if(c=="input"){a.disabled=
true;h.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(c=="div"||c=="span"){d=d.children("."+this._inlineClass);d.children().addClass("ui-state-disabled");d.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}this._disabledInputs=b.map(this._disabledInputs,function(b){return b==a?null:b});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a)return false;
for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]==a)return true;return false},_getInst:function(a){try{return b.data(a,"datepicker")}catch(d){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(a,d,h){var c=this._getInst(a);if(arguments.length==2&&typeof d=="string")return d=="defaults"?b.extend({},b.datepicker._defaults):c?d=="all"?b.extend({},c.settings):this._get(c,d):null;var e=d||{};if(typeof d=="string"){e={};e[d]=h}if(c){this._curInst==c&&
this._hideDatepicker();var f=this._getDateDatepicker(a,true),i=this._getMinMaxDate(c,"min"),k=this._getMinMaxDate(c,"max");g(c.settings,e);if(i!==null&&e.dateFormat!==j&&e.minDate===j)c.settings.minDate=this._formatDate(c,i);if(k!==null&&e.dateFormat!==j&&e.maxDate===j)c.settings.maxDate=this._formatDate(c,k);this._attachments(b(a),c);this._autoSize(c);this._setDate(c,f);this._updateAlternate(c);this._updateDatepicker(c)}},_changeDatepicker:function(a,b,h){this._optionDatepicker(a,b,h)},_refreshDatepicker:function(a){(a=
this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,b){if(a=this._getInst(a)){this._setDate(a,b);this._updateDatepicker(a);this._updateAlternate(a)}},_getDateDatepicker:function(a,b){(a=this._getInst(a))&&!a.inline&&this._setDateFromField(a,b);return a?this._getDate(a):null},_doKeyDown:function(a){var d=b.datepicker._getInst(a.target),h=true,c=d.dpDiv.is(".ui-datepicker-rtl");d._keyEvent=true;if(b.datepicker._datepickerShowing)switch(a.keyCode){case 9:b.datepicker._hideDatepicker();
h=false;break;case 13:h=b("td."+b.datepicker._dayOverClass+":not(."+b.datepicker._currentClass+")",d.dpDiv);h[0]?b.datepicker._selectDay(a.target,d.selectedMonth,d.selectedYear,h[0]):b.datepicker._hideDatepicker();return false;case 27:b.datepicker._hideDatepicker();break;case 33:b.datepicker._adjustDate(a.target,a.ctrlKey?-b.datepicker._get(d,"stepBigMonths"):-b.datepicker._get(d,"stepMonths"),"M");break;case 34:b.datepicker._adjustDate(a.target,a.ctrlKey?+b.datepicker._get(d,"stepBigMonths"):+b.datepicker._get(d,
"stepMonths"),"M");break;case 35:if(a.ctrlKey||a.metaKey)b.datepicker._clearDate(a.target);h=a.ctrlKey||a.metaKey;break;case 36:if(a.ctrlKey||a.metaKey)b.datepicker._gotoToday(a.target);h=a.ctrlKey||a.metaKey;break;case 37:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,c?+1:-1,"D");h=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)b.datepicker._adjustDate(a.target,a.ctrlKey?-b.datepicker._get(d,"stepBigMonths"):-b.datepicker._get(d,"stepMonths"),"M");break;case 38:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,
-7,"D");h=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,c?-1:+1,"D");h=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)b.datepicker._adjustDate(a.target,a.ctrlKey?+b.datepicker._get(d,"stepBigMonths"):+b.datepicker._get(d,"stepMonths"),"M");break;case 40:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,+7,"D");h=a.ctrlKey||a.metaKey;break;default:h=false}else if(a.keyCode==36&&a.ctrlKey)b.datepicker._showDatepicker(this);else h=false;if(h){a.preventDefault();
a.stopPropagation()}},_doKeyPress:function(a){var d=b.datepicker._getInst(a.target);if(b.datepicker._get(d,"constrainInput")){var d=b.datepicker._possibleChars(b.datepicker._get(d,"dateFormat")),h=String.fromCharCode(a.charCode==j?a.keyCode:a.charCode);return a.ctrlKey||a.metaKey||h<" "||!d||d.indexOf(h)>-1}},_doKeyUp:function(a){a=b.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal)try{if(b.datepicker.parseDate(b.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,b.datepicker._getFormatConfig(a))){b.datepicker._setDateFromField(a);
b.datepicker._updateAlternate(a);b.datepicker._updateDatepicker(a)}}catch(d){b.datepicker.log(d)}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input")a=b("input",a.parentNode)[0];if(!(b.datepicker._isDisabledDatepicker(a)||b.datepicker._lastInput==a)){var d=b.datepicker._getInst(a);b.datepicker._curInst&&b.datepicker._curInst!=d&&b.datepicker._curInst.dpDiv.stop(true,true);var h=b.datepicker._get(d,"beforeShow");g(d.settings,h?h.apply(a,[a,d]):{});d.lastVal=
null;b.datepicker._lastInput=a;b.datepicker._setDateFromField(d);if(b.datepicker._inDialog)a.value="";if(!b.datepicker._pos){b.datepicker._pos=b.datepicker._findPos(a);b.datepicker._pos[1]+=a.offsetHeight}var c=false;b(a).parents().each(function(){c|=b(this).css("position")=="fixed";return!c});if(c&&b.browser.opera){b.datepicker._pos[0]-=document.documentElement.scrollLeft;b.datepicker._pos[1]-=document.documentElement.scrollTop}h={left:b.datepicker._pos[0],top:b.datepicker._pos[1]};b.datepicker._pos=
null;d.dpDiv.empty();d.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});b.datepicker._updateDatepicker(d);h=b.datepicker._checkOffset(d,h,c);d.dpDiv.css({position:b.datepicker._inDialog&&b.blockUI?"static":c?"fixed":"absolute",display:"none",left:h.left+"px",top:h.top+"px"});if(!d.inline){var h=b.datepicker._get(d,"showAnim"),e=b.datepicker._get(d,"duration"),f=function(){var a=d.dpDiv.find("iframe.ui-datepicker-cover");if(a.length){var c=b.datepicker._getBorders(d.dpDiv);a.css({left:-c[0],
top:-c[1],width:d.dpDiv.outerWidth(),height:d.dpDiv.outerHeight()})}};d.dpDiv.zIndex(b(a).zIndex()+1);b.datepicker._datepickerShowing=true;b.effects&&b.effects[h]?d.dpDiv.show(h,b.datepicker._get(d,"showOptions"),e,f):d.dpDiv[h||"show"](h?e:null,f);if(!h||!e)f();d.input.is(":visible")&&!d.input.is(":disabled")&&d.input.focus();b.datepicker._curInst=d}}},_updateDatepicker:function(a){var d=b.datepicker._getBorders(a.dpDiv);e=a;a.dpDiv.empty().append(this._generateHTML(a));var c=a.dpDiv.find("iframe.ui-datepicker-cover");
c.length&&c.css({left:-d[0],top:-d[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});a.dpDiv.find("."+this._dayOverClass+" a").mouseover();d=this._getNumberOfMonths(a);c=d[1];a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");c>1&&a.dpDiv.addClass("ui-datepicker-multi-"+c).css("width",17*c+"em");a.dpDiv[(d[0]!=1||d[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");
a==b.datepicker._curInst&&b.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var f=a.yearshtml;setTimeout(function(){f===a.yearshtml&&a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);f=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(a){return{thin:1,medium:2,thick:3}[a]||a};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},
_checkOffset:function(a,d,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),g=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,k=document.documentElement.clientWidth+b(document).scrollLeft(),n=document.documentElement.clientHeight+b(document).scrollTop();d.left-=this._get(a,"isRTL")?e-g:0;d.left-=c&&d.left==a.input.offset().left?b(document).scrollLeft():0;d.top-=c&&d.top==a.input.offset().top+i?b(document).scrollTop():0;d.left-=Math.min(d.left,d.left+e>k&&k>e?Math.abs(d.left+e-
k):0);d.top-=Math.min(d.top,d.top+f>n&&n>f?Math.abs(f+i):0);return d},_findPos:function(a){for(var d=this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1||b.expr.filters.hidden(a));)a=a[d?"previousSibling":"nextSibling"];a=b(a).offset();return[a.left,a.top]},_hideDatepicker:function(a){var d=this._curInst;if(!(!d||a&&d!=b.data(a,"datepicker")))if(this._datepickerShowing){var a=this._get(d,"showAnim"),c=this._get(d,"duration"),e=function(){b.datepicker._tidyDialog(d);this._curInst=
null};b.effects&&b.effects[a]?d.dpDiv.hide(a,b.datepicker._get(d,"showOptions"),c,e):d.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);a||e();if(a=this._get(d,"onClose"))a.apply(d.input?d.input[0]:null,[d.input?d.input.val():"",d]);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(b.blockUI){b.unblockUI();b("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},
_checkExternalClick:function(a){if(b.datepicker._curInst){a=b(a.target);a[0].id!=b.datepicker._mainDivId&&a.parents("#"+b.datepicker._mainDivId).length==0&&!a.hasClass(b.datepicker.markerClassName)&&!a.hasClass(b.datepicker._triggerClass)&&b.datepicker._datepickerShowing&&!(b.datepicker._inDialog&&b.blockUI)&&b.datepicker._hideDatepicker()}},_adjustDate:function(a,d,c){var a=b(a),e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,d+(c=="M"?this._get(e,"showCurrentAtPos"):
0),c);this._updateDatepicker(e)}},_gotoToday:function(a){var a=b(a),d=this._getInst(a[0]);if(this._get(d,"gotoCurrent")&&d.currentDay){d.selectedDay=d.currentDay;d.drawMonth=d.selectedMonth=d.currentMonth;d.drawYear=d.selectedYear=d.currentYear}else{var c=new Date;d.selectedDay=c.getDate();d.drawMonth=d.selectedMonth=c.getMonth();d.drawYear=d.selectedYear=c.getFullYear()}this._notifyChange(d);this._adjustDate(a)},_selectMonthYear:function(a,d,c){var a=b(a),e=this._getInst(a[0]);e._selectingMonthYear=
false;e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(d.options[d.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(a)},_clickMonthYear:function(a){var d=this._getInst(b(a)[0]);d.input&&d._selectingMonthYear&&setTimeout(function(){d.input.focus()},0);d._selectingMonthYear=!d._selectingMonthYear},_selectDay:function(a,d,c,e){var f=b(a);if(!(b(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);f.selectedDay=f.currentDay=
b("a",e).html();f.selectedMonth=f.currentMonth=d;f.selectedYear=f.currentYear=c;this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){a=b(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,d){a=this._getInst(b(a)[0]);d=d!=null?d:this._formatDate(a);a.input&&a.input.val(d);this._updateAlternate(a);var c=this._get(a,"onSelect");if(c)c.apply(a.input?a.input[0]:null,[d,a]);else a.input&&a.input.trigger("change");if(a.inline)this._updateDatepicker(a);
else{this._hideDatepicker();this._lastInput=a.input[0];typeof a.input[0]!="object"&&a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var d=this._get(a,"altField");if(d){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));b(d).each(function(){b(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=
a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/864E5)/7)+1},parseDate:function(a,d,c){if(a==null||d==null)throw"Invalid arguments";d=typeof d=="object"?d.toString():d+"";if(d=="")return null;for(var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff,e=typeof e!="string"?e:(new Date).getFullYear()%100+parseInt(e,10),f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,g=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,
k=(c?c.monthNames:null)||this._defaults.monthNames,n=c=-1,j=-1,v=-1,m=false,q=function(b){(b=z+1<a.length&&a.charAt(z+1)==b)&&z++;return b},l=function(a){var b=q(a),a=new RegExp("^\\d{1,"+(a=="@"?14:a=="!"?20:a=="y"&&b?4:a=="o"?3:2)+"}"),a=d.substring(x).match(a);if(!a)throw"Missing number at position "+x;x+=a[0].length;return parseInt(a[0],10)},o=function(a,c,e){var a=b.map(q(a)?e:c,function(a,b){return[[b,a]]}).sort(function(a,b){return-(a[1].length-b[1].length)}),h=-1;b.each(a,function(a,b){a=
b[1];if(d.substr(x,a.length).toLowerCase()==a.toLowerCase()){h=b[0];x+=a.length;return false}});if(h!=-1)return h+1;else throw"Unknown name at position "+x;},s=function(){if(d.charAt(x)!=a.charAt(z))throw"Unexpected literal at position "+x;x++},x=0,z=0;z<a.length;z++)if(m)if(a.charAt(z)=="'"&&!q("'"))m=false;else s();else switch(a.charAt(z)){case "d":j=l("d");break;case "D":o("D",f,g);break;case "o":v=l("o");break;case "m":n=l("m");break;case "M":n=o("M",i,k);break;case "y":c=l("y");break;case "@":var w=
new Date(l("@")),c=w.getFullYear(),n=w.getMonth()+1,j=w.getDate();break;case "!":w=new Date((l("!")-this._ticksTo1970)/1E4);c=w.getFullYear();n=w.getMonth()+1;j=w.getDate();break;case "'":if(q("'"))s();else m=true;break;default:s()}if(c==-1)c=(new Date).getFullYear();else if(c<100)c+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c<=e?0:-100);if(v>-1){n=1;j=v;do{e=this._getDaysInMonth(c,n-1);if(j<=e)break;n++;j-=e}while(1)}w=this._daylightSavingAdjust(new Date(c,n-1,j));if(w.getFullYear()!=
c||w.getMonth()+1!=n||w.getDate()!=j)throw"Invalid date";return w},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*1E7,formatDate:function(a,b,c){if(!b)return"";var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,
g=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,c=(c?c.monthNames:null)||this._defaults.monthNames,i=function(b){(b=m+1<a.length&&a.charAt(m+1)==b)&&m++;return b},k=function(a,b,d){b=""+b;if(i(a))for(;b.length<d;)b="0"+b;return b},j=function(a,b,d,c){return i(a)?c[b]:d[b]},r="",v=false;if(b)for(var m=0;m<a.length;m++)if(v)if(a.charAt(m)=="'"&&!i("'"))v=false;else r+=a.charAt(m);else switch(a.charAt(m)){case "d":r+=k("d",b.getDate(),2);break;case "D":r+=j("D",b.getDay(),e,f);break;case "o":r+=
k("o",(b.getTime()-(new Date(b.getFullYear(),0,0)).getTime())/864E5,3);break;case "m":r+=k("m",b.getMonth()+1,2);break;case "M":r+=j("M",b.getMonth(),g,c);break;case "y":r+=i("y")?b.getFullYear():(b.getYear()%100<10?"0":"")+b.getYear()%100;break;case "@":r+=b.getTime();break;case "!":r+=b.getTime()*1E4+this._ticksTo1970;break;case "'":if(i("'"))r+="'";else v=true;break;default:r+=a.charAt(m)}return r},_possibleChars:function(a){for(var b="",c=false,e=function(b){(b=f+1<a.length&&a.charAt(f+1)==b)&&
f++;return b},f=0;f<a.length;f++)if(c)if(a.charAt(f)=="'"&&!e("'"))c=false;else b+=a.charAt(f);else switch(a.charAt(f)){case "d":case "m":case "y":case "@":b+="0123456789";break;case "D":case "M":return null;case "'":if(e("'"))b+="'";else c=true;break;default:b+=a.charAt(f)}return b},_get:function(a,b){return a.settings[b]!==j?a.settings[b]:this._defaults[b]},_setDateFromField:function(a,b){if(a.input.val()!=a.lastVal){var c=this._get(a,"dateFormat"),e=a.lastVal=a.input?a.input.val():null,f,g;f=g=
this._getDefaultDate(a);var i=this._getFormatConfig(a);try{f=this.parseDate(c,e,i)||g}catch(k){this.log(k);e=b?"":e}a.selectedDay=f.getDate();a.drawMonth=a.selectedMonth=f.getMonth();a.drawYear=a.selectedYear=f.getFullYear();a.currentDay=e?f.getDate():0;a.currentMonth=e?f.getMonth():0;a.currentYear=e?f.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(a,d,c){var h;
var e=function(a){var b=new Date;b.setDate(b.getDate()+a);return b};if(h=(d=d==null||d===""?c:typeof d=="string"?function(d){try{return b.datepicker.parseDate(b.datepicker._get(a,"dateFormat"),d,b.datepicker._getFormatConfig(a))}catch(c){}for(var e=(d.toLowerCase().match(/^c/)?b.datepicker._getDate(a):null)||new Date,f=e.getFullYear(),h=e.getMonth(),e=e.getDate(),g=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,i=g.exec(d);i;){switch(i[2]||"d"){case "d":case "D":e+=parseInt(i[1],10);break;case "w":case "W":e+=
parseInt(i[1],10)*7;break;case "m":case "M":h+=parseInt(i[1],10);e=Math.min(e,b.datepicker._getDaysInMonth(f,h));break;case "y":case "Y":f+=parseInt(i[1],10);e=Math.min(e,b.datepicker._getDaysInMonth(f,h))}i=g.exec(d)}return new Date(f,h,e)}(d):typeof d=="number"?isNaN(d)?c:e(d):new Date(d.getTime()))&&d.toString()=="Invalid Date"?c:d,d=h){d.setHours(0);d.setMinutes(0);d.setSeconds(0);d.setMilliseconds(0)}return this._daylightSavingAdjust(d)},_daylightSavingAdjust:function(a){if(!a)return null;a.setHours(a.getHours()>
12?a.getHours()+2:0);return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,g=a.selectedYear,b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||g!=a.selectedYear)&&!c)this._notifyChange(a);this._adjustInstDate(a);if(a.input)a.input.val(e?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&
a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var d=new Date,d=this._daylightSavingAdjust(new Date(d.getFullYear(),d.getMonth(),d.getDate())),e=this._get(a,"isRTL"),f=this._get(a,"showButtonPanel"),g=this._get(a,"hideIfNoPrevNext"),i=this._get(a,"navigationAsDateFormat"),j=this._getNumberOfMonths(a),k=this._get(a,"showCurrentAtPos"),n=this._get(a,"stepMonths"),r=j[0]!=1||j[1]!=1,v=this._daylightSavingAdjust(!a.currentDay?
new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),m=this._getMinMaxDate(a,"min"),q=this._getMinMaxDate(a,"max"),k=a.drawMonth-k,l=a.drawYear;if(k<0){k+=12;l--}if(q)for(var o=this._daylightSavingAdjust(new Date(q.getFullYear(),q.getMonth()-j[0]*j[1]+1,q.getDate())),o=m&&o<m?m:o;this._daylightSavingAdjust(new Date(l,k,1))>o;){k--;if(k<0){k=11;l--}}a.drawMonth=k;a.drawYear=l;var o=this._get(a,"prevText"),o=!i?o:this.formatDate(o,this._daylightSavingAdjust(new Date(l,k-n,1)),this._getFormatConfig(a)),
o=this._canAdjustMonth(a,-1,l,k)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+c+".datepicker._adjustDate('#"+a.id+"', -"+n+", 'M');\" title=\""+o+'"><span class="ui-icon ui-icon-circle-triangle-'+(e?"e":"w")+'">'+o+"</span></a>":g?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+o+'"><span class="ui-icon ui-icon-circle-triangle-'+(e?"e":"w")+'">'+o+"</span></a>",s=this._get(a,"nextText"),s=!i?s:this.formatDate(s,this._daylightSavingAdjust(new Date(l,
k+n,1)),this._getFormatConfig(a)),g=this._canAdjustMonth(a,+1,l,k)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+c+".datepicker._adjustDate('#"+a.id+"', +"+n+", 'M');\" title=\""+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(e?"w":"e")+'">'+s+"</span></a>":g?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(e?"w":"e")+'">'+s+"</span></a>",n=this._get(a,"currentText"),s=this._get(a,"gotoCurrent")&&
a.currentDay?v:d,n=!i?n:this.formatDate(n,s,this._getFormatConfig(a)),i=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+c+'.datepicker._hideDatepicker();">'+this._get(a,"closeText")+"</button>":"",f=f?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(e?i:"")+(this._isInRange(a,s)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+
c+".datepicker._gotoToday('#"+a.id+"');\">"+n+"</button>":"")+(e?"":i)+"</div>":"",i=parseInt(this._get(a,"firstDay"),10),i=isNaN(i)?0:i,n=this._get(a,"showWeek"),s=this._get(a,"dayNames");this._get(a,"dayNamesShort");var x=this._get(a,"dayNamesMin"),z=this._get(a,"monthNames"),w=this._get(a,"monthNamesShort"),J=this._get(a,"beforeShowDay"),G=this._get(a,"showOtherMonths"),P=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var K=this._getDefaultDate(a),H="",D=0;D<j[0];D++){for(var L=
"",E=0;E<j[1];E++){var M=this._daylightSavingAdjust(new Date(l,k,a.selectedDay)),t=" ui-corner-all",y="";if(r){y+='<div class="ui-datepicker-group';if(j[1]>1)switch(E){case 0:y+=" ui-datepicker-group-first";t=" ui-corner-"+(e?"right":"left");break;case j[1]-1:y+=" ui-datepicker-group-last";t=" ui-corner-"+(e?"left":"right");break;default:y+=" ui-datepicker-group-middle";t=""}y+='">'}y+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+t+'">'+(/all|left/.test(t)&&D==0?e?g:o:"")+
(/all|right/.test(t)&&D==0?e?o:g:"")+this._generateMonthYearHeader(a,k,l,m,q,D>0||E>0,z,w)+'</div><table class="ui-datepicker-calendar"><thead><tr>';for(var B=n?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+"</th>":"",t=0;t<7;t++){var p=(t+i)%7;B+="<th"+((t+i+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+s[p]+'">'+x[p]+"</span></th>"}y+=B+"</tr></thead><tbody>";B=this._getDaysInMonth(l,k);if(l==a.selectedYear&&k==a.selectedMonth)a.selectedDay=Math.min(a.selectedDay,
B);for(var t=(this._getFirstDayOfMonth(l,k)-i+7)%7,B=r?6:Math.ceil((t+B)/7),p=this._daylightSavingAdjust(new Date(l,k,1-t)),N=0;N<B;N++){y+="<tr>";for(var O=!n?"":'<td class="ui-datepicker-week-col">'+this._get(a,"calculateWeek")(p)+"</td>",t=0;t<7;t++){var F=J?J.apply(a.input?a.input[0]:null,[p]):[true,""],C=p.getMonth()!=k,I=C&&!P||!F[0]||m&&p<m||q&&p>q;O+='<td class="'+((t+i+6)%7>=5?" ui-datepicker-week-end":"")+(C?" ui-datepicker-other-month":"")+(p.getTime()==M.getTime()&&k==a.selectedMonth&&
a._keyEvent||K.getTime()==p.getTime()&&K.getTime()==M.getTime()?" "+this._dayOverClass:"")+(I?" "+this._unselectableClass+" ui-state-disabled":"")+(C&&!G?"":" "+F[1]+(p.getTime()==v.getTime()?" "+this._currentClass:"")+(p.getTime()==d.getTime()?" ui-datepicker-today":""))+'"'+((!C||G)&&F[2]?' title="'+F[2]+'"':"")+(I?"":' onclick="DP_jQuery_'+c+".datepicker._selectDay('#"+a.id+"',"+p.getMonth()+","+p.getFullYear()+', this);return false;"')+">"+(C&&!G?"&#xa0;":I?'<span class="ui-state-default">'+p.getDate()+
"</span>":'<a class="ui-state-default'+(p.getTime()==d.getTime()?" ui-state-highlight":"")+(p.getTime()==v.getTime()?" ui-state-active":"")+(C?" ui-priority-secondary":"")+'" href="#">'+p.getDate()+"</a>")+"</td>";p.setDate(p.getDate()+1);p=this._daylightSavingAdjust(p)}y+=O+"</tr>"}k++;if(k>11){k=0;l++}y+="</tbody></table>"+(r?"</div>"+(j[0]>0&&E==j[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");L+=y}H+=L}H+=f+(b.browser.msie&&parseInt(b.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':
"");a._keyEvent=false;return H},_generateMonthYearHeader:function(a,b,e,f,g,i,j,k){var n=this._get(a,"changeMonth"),r=this._get(a,"changeYear"),v=this._get(a,"showMonthAfterYear"),m='<div class="ui-datepicker-title">',q="";if(i||!n)q+='<span class="ui-datepicker-month">'+j[b]+"</span>";else{var j=f&&f.getFullYear()==e,l=g&&g.getFullYear()==e;q+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+c+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" onclick=\"DP_jQuery_"+c+".datepicker._clickMonthYear('#"+
a.id+"');\">";for(var o=0;o<12;o++)if((!j||o>=f.getMonth())&&(!l||o<=g.getMonth()))q+='<option value="'+o+'"'+(o==b?' selected="selected"':"")+">"+k[o]+"</option>";q+="</select>"}v||(m+=q+(i||!(n&&r)?"&#xa0;":""));if(!a.yearshtml){a.yearshtml="";if(i||!r)m+='<span class="ui-datepicker-year">'+e+"</span>";else{var k=this._get(a,"yearRange").split(":"),s=(new Date).getFullYear(),j=function(a){a=a.match(/c[+-].*/)?e+parseInt(a.substring(1),10):a.match(/[+-].*/)?s+parseInt(a,10):parseInt(a,10);return isNaN(a)?
s:a},b=j(k[0]),k=Math.max(b,j(k[1]||"")),b=f?Math.max(b,f.getFullYear()):b,k=g?Math.min(k,g.getFullYear()):k;for(a.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+c+".datepicker._selectMonthYear('#"+a.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+c+".datepicker._clickMonthYear('#"+a.id+"');\">";b<=k;b++)a.yearshtml+='<option value="'+b+'"'+(b==e?' selected="selected"':"")+">"+b+"</option>";a.yearshtml+="</select>";m+=a.yearshtml;a.yearshtml=null}}m+=this._get(a,"yearSuffix");if(v)m+=
(i||!(n&&r)?"&#xa0;":"")+q;m+="</div>";return m},_adjustInstDate:function(a,b,c){var e=a.drawYear+(c=="Y"?b:0),f=a.drawMonth+(c=="M"?b:0),b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0),e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();if(c=="M"||c=="Y")this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min"),a=this._getMinMaxDate(a,
"max"),b=c&&b<c?c:b;return a&&b>a?a:b},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");if(b)b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,
b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a),c=this._daylightSavingAdjust(new Date(c,e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min"),a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff"),b=typeof b!=
"string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));
return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});b.fn.datepicker=function(a){if(!this.length)return this;if(!b.datepicker.initialized){b(document).mousedown(b.datepicker._checkExternalClick).find("body").append(b.datepicker.dpDiv);b.datepicker.initialized=true}var c=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget"))return b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this[0]].concat(c));if(a=="option"&&
arguments.length==2&&typeof arguments[1]=="string")return b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this[0]].concat(c));return this.each(function(){typeof a=="string"?b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this].concat(c)):b.datepicker._attachDatepicker(this,a)})};b.datepicker=new f;b.datepicker.initialized=false;b.datepicker.uuid=(new Date).getTime();b.datepicker.version="1.8.13";window["DP_jQuery_"+c]=b})(jQuery);(function(c,i){function k(){this.debug=true;this._curInst=null;this._isInline=false;this._disabledInputs=[];this._inDialog=this._timepickerShowing=false;this._dialogClass="ui-timepicker-dialog";this._mainDivId="ui-timepicker-div";this._inlineClass="ui-timepicker-inline";this._currentClass="ui-timepicker-current";this._dayOverClass="ui-timepicker-days-cell-over";this.regional=[];this.regional[""]={hourText:"Hour",minuteText:"Minute",amPmText:["AM","PM"]};this._defaults={showOn:"focus",button:null,
showAnim:"fadeIn",showOptions:{},appendText:"",onSelect:null,onClose:null,timeSeparator:":",showPeriod:false,showPeriodLabels:true,showLeadingZero:true,showMinutesLeadingZero:true,altField:"",defaultTime:"",onHourShow:null,onMinuteShow:null,zIndex:null};c.extend(this._defaults,this.regional[""]);this.tpDiv=c('<div id="'+this._mainDivId+'" class="ui-timepicker ui-widget ui-helper-clearfix ui-corner-all " style="display: none"></div>')}function l(a,b){c.extend(a,b);for(var d in b)if(b[d]==null||b[d]==
i)a[d]=b[d];return a}c.extend(c.ui,{timepicker:{version:"0.1.3"}});var m=(new Date).getTime();c.extend(k.prototype,{markerClassName:"hasTimepicker",log:function(){if(this.debug)console.log.apply("",arguments)},_widgetTimepicker:function(){return this.tpDiv},setDefaults:function(a){l(this._defaults,a||{});return this},_attachTimepicker:function(a,b){var d=null,e;for(e in this._defaults){var f=a.getAttribute("time:"+e);if(f){d=d||{};try{d[e]=eval(f)}catch(g){d[e]=f}}}e=a.nodeName.toLowerCase();f=e==
"div"||e=="span";if(!a.id){this.uuid+=1;a.id="tp"+this.uuid}var h=this._newInst(c(a),f);h.settings=c.extend({},b||{},d||{});if(e=="input")this._connectTimepicker(a,h);else if(f)this._inlineTimepicker(a,h)},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,tpDiv:!b?this.tpDiv:c('<div class="'+this._inlineClass+' ui-timepicker ui-widget  ui-helper-clearfix"></div>')}},_connectTimepicker:function(a,
b){var d=c(a);b.append=c([]);b.trigger=c([]);if(d.hasClass(this.markerClassName))return;this._attachments(d,b);d.addClass(this.markerClassName).keydown(this._doKeyDown).keyup(this._doKeyUp).bind("setData.timepicker",function(a,c,d){b.settings[c]=d}).bind("getData.timepicker",function(a,c){return this._get(b,c)});c.data(a,"timepicker",b)},_doKeyDown:function(a){var b=true;c.timepicker._getInst(a.target)._keyEvent=true;if(c.timepicker._timepickerShowing)switch(a.keyCode){case 9:c.timepicker._hideTimepicker();
b=false;break;case 27:c.timepicker._hideTimepicker();break;default:b=false}else if(a.keyCode==36&&a.ctrlKey)c.timepicker._showTimepicker(this);else b=false;if(b){a.preventDefault();a.stopPropagation()}},_doKeyUp:function(a){a=c.timepicker._getInst(a.target);c.timepicker._setTimeFromField(a);c.timepicker._updateTimepicker(a)},_attachments:function(a,b){var d=this._get(b,"appendText"),e=this._get(b,"isRTL");if(b.append)b.append.remove();if(d){b.append=c('<span class="'+this._appendClass+'">'+d+"</span>");
a[e?"before":"after"](b.append)}a.unbind("focus",this._showTimepicker);if(b.trigger)b.trigger.remove();d=this._get(b,"showOn");if(d=="focus"||d=="both")a.focus(this._showTimepicker);if(d=="button"||d=="both"){d=this._get(b,"button");c(d).click(function(){if(c.timepicker._timepickerShowing&&c.timepicker._lastInput==a[0])c.timepicker._hideTimepicker();else c.timepicker._showTimepicker(a[0]);return false})}},_inlineTimepicker:function(a,b){var d=c(a);if(d.hasClass(this.markerClassName))return;d.addClass(this.markerClassName).append(b.tpDiv).bind("setData.timepicker",
function(a,c,d){b.settings[c]=d}).bind("getData.timepicker",function(a,c){return this._get(b,c)});c.data(a,"timepicker",b);this._setTimeFromField(b);this._updateTimepicker(b);b.tpDiv.show()},_showTimepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input")a=c("input",a.parentNode)[0];if(c.timepicker._isDisabledTimepicker(a)||c.timepicker._lastInput==a)return;c.timepicker._hideTimepicker();var b=c.timepicker._getInst(a);if(c.timepicker._curInst&&c.timepicker._curInst!=b)c.timepicker._curInst.tpDiv.stop(true,
true);var d=c.timepicker._get(b,"beforeShow");l(b.settings,d?d.apply(a,[a,b]):{});b.lastVal=null;c.timepicker._lastInput=a;c.timepicker._setTimeFromField(b);if(c.timepicker._inDialog)a.value="";if(!c.timepicker._pos){c.timepicker._pos=c.timepicker._findPos(a);c.timepicker._pos[1]+=a.offsetHeight}var e=false;c(a).parents().each(function(){e|=c(this).css("position")=="fixed";return!e});if(e&&c.browser.opera){c.timepicker._pos[0]-=document.documentElement.scrollLeft;c.timepicker._pos[1]-=document.documentElement.scrollTop}d=
{left:c.timepicker._pos[0],top:c.timepicker._pos[1]};c.timepicker._pos=null;b.tpDiv.css({position:"absolute",display:"block",top:"-1000px"});c.timepicker._updateTimepicker(b);b._hoursClicked=false;b._minutesClicked=false;d=c.timepicker._checkOffset(b,d,e);b.tpDiv.css({position:c.timepicker._inDialog&&c.blockUI?"static":e?"fixed":"absolute",display:"none",left:d.left+"px",top:d.top+"px"});if(!b.inline){var d=c.timepicker._get(b,"showAnim"),f=c.timepicker._get(b,"duration"),g=c.timepicker._get(b,"zIndex"),
h=function(){c.timepicker._timepickerShowing=true;var a=c.timepicker._getBorders(b.tpDiv);b.tpDiv.find("iframe.ui-timepicker-cover").css({left:-a[0],top:-a[1],width:b.tpDiv.outerWidth(),height:b.tpDiv.outerHeight()})};if(!g)g=c(a).zIndex()+1;b.tpDiv.zIndex(g);if(c.effects&&c.effects[d])b.tpDiv.show(d,c.timepicker._get(b,"showOptions"),f,h);else b.tpDiv[d||"show"](d?f:null,h);if(!d||!f)h();if(b.input.is(":visible")&&!b.input.is(":disabled"))b.input.focus();c.timepicker._curInst=b}},_updateTimepicker:function(a){var b=
this,d=c.timepicker._getBorders(a.tpDiv);a.tpDiv.empty().append(this._generateHTML(a)).find("iframe.ui-timepicker-cover").css({left:-d[0],top:-d[1],width:a.tpDiv.outerWidth(),height:a.tpDiv.outerHeight()}).end().find(".ui-timepicker-minute-cell").bind("click",{fromDoubleClick:false},c.proxy(c.timepicker.selectMinutes,this)).bind("dblclick",{fromDoubleClick:true},c.proxy(c.timepicker.selectMinutes,this)).end().find(".ui-timepicker-hour-cell").bind("click",{fromDoubleClick:false},c.proxy(c.timepicker.selectHours,
this)).bind("dblclick",{fromDoubleClick:true},c.proxy(c.timepicker.selectHours,this)).end().find(".ui-timepicker td a").bind("mouseout",function(){c(this).removeClass("ui-state-hover");if(this.className.indexOf("ui-timepicker-prev")!=-1)c(this).removeClass("ui-timepicker-prev-hover");if(this.className.indexOf("ui-timepicker-next")!=-1)c(this).removeClass("ui-timepicker-next-hover")}).bind("mouseover",function(){if(!b._isDisabledTimepicker(a.inline?a.tpDiv.parent()[0]:a.input[0])){c(this).parents(".ui-timepicker-calendar").find("a").removeClass("ui-state-hover");
c(this).addClass("ui-state-hover");if(this.className.indexOf("ui-timepicker-prev")!=-1)c(this).addClass("ui-timepicker-prev-hover");if(this.className.indexOf("ui-timepicker-next")!=-1)c(this).addClass("ui-timepicker-next-hover")}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end()},_generateHTML:function(a){var b,c="",e=this._get(a,"showPeriod")==true,f=this._get(a,"showPeriodLabels")==true,g=this._get(a,"showLeadingZero")==true,h=this._get(a,"amPmText"),c='<table class="ui-timepicker-table ui-widget-content ui-corner-all"><tr>'+
'<td class="ui-timepicker-hours">'+'<div class="ui-timepicker-title ui-widget-header ui-helper-clearfix ui-corner-all">'+this._get(a,"hourText")+"</div>"+'<table class="ui-timepicker">';c+="<tr>"+(f?'<th rowspan="2" class="periods">'+h[0]+"</th>":"");for(b=0;b<=5;b++)c+=this._generateHTMLHourCell(a,b,e,g);c+="</tr><tr>";for(b=6;b<=11;b++)c+=this._generateHTMLHourCell(a,b,e,g);c+="</tr><tr>"+(f?'<th rowspan="2" class="periods">'+h[1]+"</th>":"");for(b=12;b<=17;b++)c+=this._generateHTMLHourCell(a,b,
e,g);c+="</tr><tr>";for(b=18;b<=23;b++)c+=this._generateHTMLHourCell(a,b,e,g);c+="</tr></table>"+"</td>"+'<td class="ui-timepicker-minutes">';c+=this._generateHTMLMinutes(a);c+="</td></tr></table>";return c},_updateMinuteDisplay:function(a){var b=this._generateHTMLMinutes(a);a.tpDiv.find("td.ui-timepicker-minutes").html(b).find(".ui-timepicker-minute-cell").bind("click",{fromDoubleClick:false},c.proxy(c.timepicker.selectMinutes,this)).bind("dblclick",{fromDoubleClick:true},c.proxy(c.timepicker.selectMinutes,
this))},_generateHTMLMinutes:function(a){var b,c=this._get(a,"showMinutesLeadingZero")==true,e=this._get(a,"onMinuteShow");if(e)if(e.apply(a.input?a.input[0]:null,[a.hours,a.minutes])==false)for(b=0;b<60;b+=5)if(e.apply(a.input?a.input[0]:null,[a.hours,b])){a.minutes=b;break}e=""+'<div class="ui-timepicker-title ui-widget-header ui-helper-clearfix ui-corner-all">'+this._get(a,"minuteText")+"</div>"+'<table class="ui-timepicker">'+"<tr>";for(b=0;b<15;b+=5)e+=this._generateHTMLMinuteCell(a,b,b<10&&
c?"0"+b.toString():b.toString());e+="</tr><tr>";for(b=15;b<30;b+=5)e+=this._generateHTMLMinuteCell(a,b,b.toString());e+="</tr><tr>";for(b=30;b<45;b+=5)e+=this._generateHTMLMinuteCell(a,b,b.toString());e+="</tr><tr>";for(b=45;b<60;b+=5)e+=this._generateHTMLMinuteCell(a,b,b.toString());e+="</tr></table>";return e},_generateHTMLHourCell:function(a,b,c,e){var f=b;if(b>12&&c)f=b-12;if(f==0&&c)f=12;if(f<10&&e)f="0"+f;c="";c=true;if(e=this._get(a,"onHourShow"))c=e.apply(a.input?a.input[0]:null,[b]);if(c)c=
'<td class="ui-timepicker-hour-cell" data-timepicker-instance-id="#'+a.id.replace("\\\\","\\")+'" data-hour="'+b.toString()+'">'+'<a href="#timepick" class="ui-state-default '+(b==a.hours?"ui-state-active":"")+'">'+f.toString()+"</a></td>";else c="<td>"+'<span class="ui-state-default ui-state-disabled '+(b==a.hours?" ui-state-active ":" ")+'">'+f.toString()+"</span>"+"</td>";return c},_generateHTMLMinuteCell:function(a,b,c){var e="",e=true,f=this._get(a,"onMinuteShow");if(f)e=f.apply(a.input?a.input[0]:
null,[a.hours,b]);if(e)e='<td class="ui-timepicker-minute-cell" data-timepicker-instance-id="#'+a.id.replace("\\\\","\\")+'" data-minute="'+b.toString()+'" >'+'<a href="#timepick" class="ui-state-default '+(b==a.minutes?"ui-state-active":"")+'" >'+c+"</a></td>";else e="<td>"+'<span class="ui-state-default ui-state-disabled" >'+c+"</span>"+"</td>";return e},_isDisabledTimepicker:function(a){if(!a)return false;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]==a)return true;return false},
_checkOffset:function(a,b,d){var e=a.tpDiv.outerWidth(),f=a.tpDiv.outerHeight(),g=a.input?a.input.outerWidth():0,h=a.input?a.input.outerHeight():0,j=document.documentElement.clientWidth+c(document).scrollLeft(),i=document.documentElement.clientHeight+c(document).scrollTop();b.left-=this._get(a,"isRTL")?e-g:0;b.left-=d&&b.left==a.input.offset().left?c(document).scrollLeft():0;b.top-=d&&b.top==a.input.offset().top+h?c(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>j&&j>e?Math.abs(b.left+e-
j):0);b.top-=Math.min(b.top,b.top+f>i&&i>f?Math.abs(f+h):0);return b},_findPos:function(a){for(var b=this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1);)a=a[b?"previousSibling":"nextSibling"];a=c(a).offset();return[a.left,a.top]},_getBorders:function(a){var b=function(a){return{thin:1,medium:2,thick:3}[a]||a};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkExternalClick:function(a){if(!c.timepicker._curInst)return;a=c(a.target);
if(a[0].id!=c.timepicker._mainDivId&&a.parents("#"+c.timepicker._mainDivId).length==0&&!a.hasClass(c.timepicker.markerClassName)&&!a.hasClass(c.timepicker._triggerClass)&&c.timepicker._timepickerShowing&&!(c.timepicker._inDialog&&c.blockUI))c.timepicker._hideTimepicker()},_hideTimepicker:function(a){var b=this._curInst;if(!b||a&&b!=c.data(a,"timepicker"))return;if(this._timepickerShowing){var a=this._get(b,"showAnim"),d=this._get(b,"duration"),e=function(){c.timepicker._tidyDialog(b);this._curInst=
null};if(c.effects&&c.effects[a])b.tpDiv.hide(a,c.timepicker._get(b,"showOptions"),d,e);else b.tpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?d:null,e);if(!a)e();if(a=this._get(b,"onClose"))a.apply(b.input?b.input[0]:null,[b.input?b.input.val():"",b]);this._timepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(c.blockUI){c.unblockUI();c("body").append(this.tpDiv)}}this._inDialog=false}},_tidyDialog:function(a){a.tpDiv.removeClass(this._dialogClass).unbind(".ui-timepicker")},
_getInst:function(a){try{return c.data(a,"timepicker")}catch(b){throw"Missing instance data for this timepicker";}},_get:function(a,b){return a.settings[b]!==i?a.settings[b]:this._defaults[b]},_setTimeFromField:function(a){if(a.input.val()==a.lastVal)return;var b=this._get(a,"defaultTime"),d=this._getCurrentTimeRounded(a);if(b!="")d=b;if(a.inline==false&&a.input.val()!="")d=a.input.val();b=a.lastVal=d;b=this.parseTime(a,b);a.hours=b.hours;a.minutes=b.minutes;c.timepicker._updateTimepicker(a)},_setTimeTimepicker:function(a,
b){var c=this._getInst(a);if(c){this._setTime(c,b);this._updateTimepicker(c);this._updateAlternate(c)}},_setTime:function(a,b,c){var e=a.hours,f=a.minutes,b=this.parseTime(a,b);a.hours=b.hours;a.minutes=b.minutes;if((e!=a.hours||f!=a.minuts)&&!c)a.input.trigger("change");this._updateTimepicker(a);this._updateSelectedValue(a)},_getCurrentTimeRounded:function(a){var b=new Date,a=this._get(a,"timeSeparator"),c=b.getMinutes(),c=Math.round(c/5)*5;return b.getHours().toString()+a+c.toString()},parseTime:function(a,
b){var c=new Object;c.hours=-1;c.minutes=-1;var e=this._get(a,"timeSeparator"),f=this._get(a,"amPmText"),e=b.indexOf(e);if(e==-1)return c;c.hours=parseInt(b.substr(0,e),10);c.minutes=parseInt(b.substr(e+1),10);var e=this._get(a,"showPeriod")==true,g=b.toUpperCase();if(c.hours<12&&e&&g.indexOf(f[1].toUpperCase())!=-1)c.hours+=12;if(c.hours==12&&e&&g.indexOf(f[0].toUpperCase())!=-1)c.hours=0;return c},selectHours:function(a){var b=c(a.currentTarget),d=b.attr("data-timepicker-instance-id"),e=b.attr("data-hour"),
a=a.data.fromDoubleClick,d=this._getInst(c(d)[0]);b.parents(".ui-timepicker-hours:first").find("a").removeClass("ui-state-active");b.children("a").addClass("ui-state-active");d.hours=e;this._updateSelectedValue(d);d._hoursClicked=true;if(d._minutesClicked||a){c.timepicker._hideTimepicker();return false}if(this._get(d,"onMinuteShow"))this._updateMinuteDisplay(d);return false},selectMinutes:function(a){var b=c(a.currentTarget),d=b.attr("data-timepicker-instance-id"),e=b.attr("data-minute"),a=a.data.fromDoubleClick,
d=this._getInst(c(d)[0]);b.parents(".ui-timepicker-minutes:first").find("a").removeClass("ui-state-active");b.children("a").addClass("ui-state-active");d.minutes=e;this._updateSelectedValue(d);d._minutesClicked=true;if(d._hoursClicked||a)c.timepicker._hideTimepicker();return false},_updateSelectedValue:function(a){if(a.hours<0||a.hours>23)a.hours=12;if(a.minutes<0||a.minutes>59)a.minutes=0;var b="",c=this._get(a,"showPeriod")==true,e=this._get(a,"showLeadingZero")==true,f=this._get(a,"amPmText"),
g=a.minutes?a.minutes:0,h=a.hours?a.hours:0;if(!h)displayHoyrs=0;if(c){if(a.hours==0)h=12;if(a.hours<12)b=f[0];else{b=f[1];if(h>12)h-=12}}c=h.toString();if(e&&h<10)c="0"+c;e=g.toString();if(g<10)e="0"+e;g=c+this._get(a,"timeSeparator")+e;if(b.length>0)g+=" "+b;if(a.input){a.input.val(g);a.input.trigger("change")}if(b=this._get(a,"onSelect"))b.apply(a.input?a.input[0]:null,[g,a]);this._updateAlternate(a,g);return g},_updateAlternate:function(a,b){var d=this._get(a,"altField");if(d)c(d).each(function(){c(this).val(b)})}});
c.fn.timepicker=function(a){if(!c.timepicker.initialized){c(document).mousedown(c.timepicker._checkExternalClick).find("body").append(c.timepicker.tpDiv);c.timepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getTime"||a=="widget"))return c.timepicker["_"+a+"Timepicker"].apply(c.timepicker,[this[0]].concat(b));if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string")return c.timepicker["_"+a+"Timepicker"].apply(c.timepicker,
[this[0]].concat(b));return this.each(function(){typeof a=="string"?c.timepicker["_"+a+"Timepicker"].apply(c.timepicker,[this].concat(b)):c.timepicker._attachTimepicker(this,a)})};c.timepicker=new k;c.timepicker.initialized=false;c.timepicker.uuid=(new Date).getTime();c.timepicker.version="0.1.3";window["TP_jQuery_"+m]=c})(jQuery);(function(a){a.extend({placeholder:{settings:{focusClass:"placeholderFocus",activeClass:"placeholder",overrideSupport:false,preventRefreshIssues:true},debug:false,log:function(c){if(!a.placeholder.debug)return;c="[Placeholder] "+c;a.placeholder.hasFirebug?console.log(c):a.placeholder.hasConsoleLog?window.console.log(c):alert(c)},hasFirebug:"console"in window&&"firebug"in window.console,hasConsoleLog:"console"in window&&"log"in window.console}});a.support.placeholder="placeholder"in document.createElement("input");
a.fn.plVal=a.fn.val;a.fn.val=function(c){a.placeholder.log("in val");if(this[0]){a.placeholder.log("have found an element");var b=a(this[0]);if(c!=undefined){a.placeholder.log("in setter");var d=b.plVal(),c=a(this).plVal(c);if(b.hasClass(a.placeholder.settings.activeClass)&&d==b.attr("placeholder"))b.removeClass(a.placeholder.settings.activeClass);return c}if(b.hasClass(a.placeholder.settings.activeClass)&&b.plVal()==b.attr("placeholder")){a.placeholder.log("returning empty because it's a placeholder");
return""}else{a.placeholder.log("returning original val");return b.plVal()}}a.placeholder.log("returning undefined");return undefined};a(window).bind("beforeunload.placeholder",function(){var c=a("input."+a.placeholder.settings.activeClass);if(c.length>0)c.val("").attr("autocomplete","off")});a.fn.placeholder=function(c){c=a.extend({},a.placeholder.settings,c);if(!c.overrideSupport&&a.support.placeholder)return this;return this.each(function(){var b=a(this);if(!b.is("[placeholder]"))return;if(b.is(":password"))return;
if(c.preventRefreshIssues)b.attr("autocomplete","off");b.bind("focus.placeholder",function(){var b=a(this);if(this.value==b.attr("placeholder")&&b.hasClass(c.activeClass))b.val("").removeClass(c.activeClass).addClass(c.focusClass)});b.bind("blur.placeholder",function(){var b=a(this);b.removeClass(c.focusClass);if(this.value=="")b.val(b.attr("placeholder")).addClass(c.activeClass)});b.triggerHandler("blur");b.parents("form").submit(function(){b.triggerHandler("focus.placeholder")})})}})(jQuery);(function(d){function t(a){var b=document.createElement("div");b.innerHTML="<a href='"+a+"'/>";return b.firstChild.href}function j(a,b,e){for(var b=b.type?b:d.extend(d.Event(b),{bubbles:false,cancelable:false},e),e=a.options[b.type],g=[b,a],c=0,i=e.length;c<i;c++)e[c].apply(a.options.context,g);if(a.options.global)d.event.trigger("stream"+b.type.substring(0,1).toUpperCase()+b.type.substring(1),g)}function n(a,b){if(b&&typeof b!=="string")b=m(b);var e=d.now(),g=a.replace(/([?&])_=[^&]*/,"$1_="+e);
return g+(g===a?(/\?/.test(a)?"&":"?")+"_="+e:"")+(b?"&"+b:"")}function m(a){return d.param(a,d.ajaxSettings.traditional)}function o(a,b){var e,b=b||0;(function c(){e=setTimeout(function(){if(a()===false)return;c()},b)})();return function(){clearTimeout(e)}}var k={},q={},r={},p=d.browser.webkit&&!d.isReady;if(p)d(window).load(function(){p=false});d.stream=function(a,b){if(!arguments.length){for(var e in k)return k[e];return null}var g=k[a];if(!b)return g||null;else if(g&&g.readyState<3)return g;var c=
{url:a,options:d.stream.setup({},b),readyState:0,send:function(){},close:function(){}},g=/^(http|ws)s?:/.exec(c.url),i=function(){q[c.options.type](c)};if(g)c.options.type=g[1];for(e in{open:1,message:1,error:1,close:1})c.options[e]=d.makeArray(c.options[e]);k[c.url]=c;if(c.options.alias)k[c.options.alias]=c;if(c.options.type==="ws"||!p)i();else switch(c.options.throbber.type||c.options.throbber){case "lazy":d(window).load(function(){setTimeout(i,c.options.throbber.delay||50)});break;case "reconnect":i();
d(window).load(function(){function a(){c.options.close.push(function(){c.options.close.pop();setTimeout(function(){d.stream(c.url,c.options)},c.options.throbber.delay||50)});var b=c.options.reconnect;c.close();c.options.reconnect=b}if(c.readyState===0)c.options.open.push(function(){c.options.open.pop();setTimeout(a,10)});else a()})}return c};d.extend(d.stream,{version:"1.2",setup:function(a,b){if(!b){b=a;a=d.extend(true,d.stream.options,b)}else d.extend(true,a,d.stream.options,b);for(var e in{context:1,
url:1})if(e in b)a[e]=b[e];else if(e in d.stream.options)a[e]=d.stream.options[e];return a},options:{type:window.WebSocket?"ws":"http",reconnect:true,global:true,throbber:"lazy",dataType:"text",converters:{text:window.String,json:d.parseJSON,xml:d.parseXML}}});d.extend(q,{ws:function(a){if(!window.WebSocket)return;var b=n(t(a.url).replace(/^http/,"ws"),a.options.openData),e=a.options.protocols?new window.WebSocket(b,a.options.protocols):new window.WebSocket(b);d.extend(e,{onopen:function(b){a.readyState=
1;j(a,b)},onmessage:function(b){j(a,d.extend({},b,{data:a.options.converters[a.options.dataType](b.data)}))},onerror:function(b){a.options.reconnect=false;j(a,b)},onclose:function(b){var c=a.readyState;a.readyState=3;j(a,b);if(a.options.reconnect&&c!==0)d.stream(a.url,a.options)}});d.extend(a,{send:function(b){if(a.readyState===0)d.error("INVALID_STATE_ERR: Stream not open");e.send(typeof b==="string"?b:m(b))},close:function(){if(a.readyState<2){a.readyState=2;a.options.reconnect=false;e.close()}}})},
http:function(a){var b,e,g,c,i,f,l=[],h={index:0,data:""};b=r[a.options.enableXDR&&window.XDomainRequest?"xdr":window.ActiveXObject?"iframe":window.XMLHttpRequest?"xhr":null];if(!b)return;g=a.options.handleOpen||function(a,b,c){c.id=a.substring(0,a.indexOf(";"));b.index=a.indexOf(";",c.id.length+1)+1};c=a.options.handleMessage||function(a,b){if(b.size==null){var c=a.indexOf(";",b.index);if(c<0)return false;b.size=+a.substring(b.index,c);b.index=c+1}c=a.substr(b.index,b.size-b.data.length);b.data+=
c;b.index+=c.length;if(b.size!==b.data.length)return false;c=a.indexOf(";",b.index);if(c<0)return false;b.index=c+1;delete b.size};i=a.options.handleSend||function(a,b,c){c={"metadata.id":c.id,"metadata.type":a};b.data=a==="close"?m(c):(typeof b.data==="string"?b.data:m(b.data))+"&"+m(c)};e=b(a,{response:function(b){if(a.readyState===0){if(g(b,h,a)===false)return;a.readyState=1;j(a,"open")}for(;;){if(c(b,h,a)===false)return;if(a.readyState<3)j(a,"message",{data:a.options.converters[a.options.dataType](h.data),
origin:"",lastEventId:"",source:null,ports:null});h.data=""}},close:function(b){var c=a.readyState;a.readyState=3;if(b){a.options.reconnect=false;if(c===0)j(a,"close",{wasClean:false,code:null,reason:""});else j(a,"error")}else{j(a,"close",{wasClean:true,code:null,reason:""});if(a.options.reconnect)d.stream(a.url,a.options)}}},h);e.open();d.extend(a,{send:function(b){if(a.readyState===0)d.error("INVALID_STATE_ERR: Stream not open");l.push(b);if(!f){f=true;(function s(){if(a.readyState===1&&l.length){var b=
{url:a.url,type:"POST",data:l.shift()};if(i("send",b,a)!==false)d.ajax(b).complete(s);else s()}else f=false})()}},close:function(){if(a.readyState<2){a.readyState=2;var b={url:a.url,type:"POST"};if(i("close",b,a)!==false)d.ajax(b);a.options.reconnect=false;e.close()}}})}});d.extend(r,{xhr:function(a,b,e){var g,c,i,f=new window.XMLHttpRequest;f.onreadystatechange=function(){switch(f.readyState){case 3:if(f.status!==200)return;b.response(f.responseText);if(d.browser.opera&&!c){c=true;g=o(function(){if(f.readyState===
4)return false;if(f.responseText.length>e.index)b.response(f.responseText)},a.options.operaInterval)}break;case 4:b.close(f.status!==200&&i!==200)}};return{open:function(){f.open("GET",n(a.url,a.options.openData));f.send()},close:function(){if(g)g();try{i=f.status}catch(a){}f.abort()}}},iframe:function(a,b,e){var g,c,i=function(){if(!c){c=true;b.close()}},f=new window.ActiveXObject("htmlfile");f.open();f.close();return{open:function(){var c=f.createElement("iframe");c.src=n(a.url,a.options.openData);
f.body.appendChild(c);var h=c.contentDocument||c.contentWindow.document;g=o(function(){if(!h.documentElement)return;if(h.readyState==="complete")try{d.noop(h.fileSize)}catch(c){b.close(true);return false}var f=h.body.lastChild,j=function(){var a=f.cloneNode(true);a.appendChild(h.createTextNode("."));a=a.innerText;return a.substring(0,a.length-1)};if(!d.nodeName(f,"pre")){var k=h.head||h.getElementsByTagName("head")[0]||h.documentElement,l=h.createElement("script");l.text="document.write('<plaintext>')";
k.insertBefore(l,k.firstChild);k.removeChild(l);f=h.body.lastChild}b.response(j());g=o(function(){var a=j();if(a.length>e.index){b.response(a);f.innerText="";e.index=0}if(h.readyState==="complete"){i();return false}},a.options.iframeInterval);return false})},close:function(){if(g)g();f.execCommand("Stop");i()}}},xdr:function(a,b){var e=new window.XDomainRequest,d=a.options.rewriteURL||function(a){var b={JSESSIONID:function(b){return a.replace(/;jsessionid=[^\?]*|(\?)|$/,";jsessionid="+b+"$1")},PHPSESSID:function(b){return a.replace(/\?PHPSESSID=[^&]*&?|\?|$/,
"?PHPSESSID="+b+"&").replace(/&$/,"")}},c;for(c in b){var d=(new RegExp("(?:^|;\\s*)"+encodeURIComponent(c)+"=([^;]*)")).exec(document.cookie);if(d)return b[c](d[1])}return a};e.onprogress=function(){b.response(e.responseText)};e.onerror=function(){b.close(true)};var c=e.onload=function(){b.close()};return{open:function(){e.open("GET",n(d(a.url),a.options.openData));e.send()},close:function(){e.abort();c()}}}});d(window).bind("unload.stream",function(){for(var a in k){k[a].close();delete k[a]}});
d.each("streamOpen streamMessage streamError streamClose".split(" "),function(a,b){d.fn[b]=function(a){return this.bind(b,a)}})})(jQuery);(function(a,j){var i=new Array,h=new Array;a.fn.doAutosize=function(e){var d=a(this).data("minwidth"),c=a(this).data("maxwidth"),b="",f=a(this),g=a("#"+a(this).data("tester_id"));if(b===(b=f.val()))return;b=b.replace(/&/g,"&amp;").replace(/\s/g," ").replace(/</g,"&lt;").replace(/>/g,"&gt;");g.html(b);g=g.width();e=g+e.comfortZone>=d?g+e.comfortZone:d;g=f.width();if(e<g&&e>=d||e>d&&e<c)f.width(e)};a.fn.resetAutosize=function(e){var d=a(this).data("minwidth")||e.minInputWidth||a(this).width(),e=a(this).data("maxwidth")||
e.maxInputWidth||a(this).closest(".tagsinput").width()-e.inputPadding,c=a(this),b=a("<tester/>").css({position:"absolute",top:-9999,left:-9999,width:"auto",fontSize:c.css("fontSize"),fontFamily:c.css("fontFamily"),fontWeight:c.css("fontWeight"),letterSpacing:c.css("letterSpacing"),whiteSpace:"nowrap"}),f=a(this).attr("id")+"_autosize_tester";if(!a("#"+f).length>0){b.attr("id",f);b.appendTo("body")}c.data("minwidth",d);c.data("maxwidth",e);c.data("tester_id",f);c.css("width",d)};a.fn.addTag=function(e,
d){d=jQuery.extend({focus:false,callback:true},d);this.each(function(){var c=a(this).attr("id"),b=a(this).val().split(i[c]);if(b[0]=="")b=new Array;e=jQuery.trim(e);var f=false;if(d.unique){f=a(b).tagExist(e);if(f==true)a("#"+c+"_tag").addClass("tagsinput-not_valid")}if(e!=""&&f!=true){a("<span>").addClass("tagsinput-tag").append(a("<span>").text(e),a("<a>",{href:"#",title:"Remove tag",text:"x"}).click(function(){return a("#"+c).removeTag(escape(e))})).insertBefore("#"+c+"_addTag");b.push(e);a("#"+
c+"_tag").val("");if(d.focus)a("#"+c+"_tag").focus();else a("#"+c+"_tag").blur();a.fn.tagsInput.updateTagsField(this,b);if(d.callback&&h[c]&&h[c].onAddTag){f=h[c].onAddTag;f.call(this,e)}if(h[c]&&h[c].onChange){var g=b.length,f=h[c].onChange;f.call(this,a(this),b[g-1])}}});return false};a.fn.removeTag=function(e){e=unescape(e);this.each(function(){var d=a(this).attr("id"),c=a(this).val().split(i[d]);a("#"+d+"_tagsinput .tagsinput-tag").remove();str="";for(var b=0;b<c.length;b++)if(c[b]!=e)str=str+
i[d]+c[b];a.fn.tagsInput.importTags(this,str);if(h[d]&&h[d].onRemoveTag)h[d].onRemoveTag.call(this,e)});return false};a.fn.tagExist=function(e){return jQuery.inArray(e,a(this))>=0};a.fn.importTags=function(e){id=a(this).attr("id");a("#"+id+"_tagsinput .tagsinput-tag").remove();a.fn.tagsInput.importTags(this,e)};a.fn.tagsInput=function(e){var d=jQuery.extend({interactive:true,defaultText:"",minChars:0,autocomplete:{selectFirst:false},hide:true,delimiter:",",unique:true,removeWithBackspace:true,placeholderColor:"#666666",
autosize:true,comfortZone:20,inputPadding:6*2},e);this.each(function(){if(d.hide)a(this).hide();var c=a(this).attr("id"),b=jQuery.extend({pid:c,real_input:"#"+c,holder:"#"+c+"_tagsinput",input_wrapper:"#"+c+"_addTag",fake_input:"#"+c+"_tag"},d);i[c]=b.delimiter;if(d.onAddTag||d.onRemoveTag||d.onChange){h[c]=new Array;h[c].onAddTag=d.onAddTag;h[c].onRemoveTag=d.onRemoveTag;h[c].onChange=d.onChange}var e='<div id="'+c+'_tagsinput" class="tagsinput"><div id="'+c+'_addTag">';if(d.interactive)e=e+'<input id="'+
c+'_tag" value="" data-default="'+d.defaultText+'" />';a(e+'</div><div class="tagsinput-tags_clear"></div></div>').insertAfter(this);if(a(b.real_input).val()!="")a.fn.tagsInput.importTags(a(b.real_input),a(b.real_input).val());if(d.interactive){a(b.fake_input).val(a(b.fake_input).attr("data-default"));a(b.fake_input).css("color",d.placeholderColor);a(b.fake_input).resetAutosize(d);a(b.holder).bind("click",b,function(g){a(g.data.fake_input).focus()});a(b.fake_input).bind("focus",b,function(g){if(a(g.data.fake_input).val()==
a(g.data.fake_input).attr("data-default"))a(g.data.fake_input).val("");a(g.data.fake_input).css("color","#000000")});if(d.autocomplete_url!=j){autocomplete_options={source:d.autocomplete_url};for(attrname in d.autocomplete)autocomplete_options[attrname]=d.autocomplete[attrname];if(jQuery.Autocompleter!==j){a(b.fake_input).autocomplete(d.autocomplete_url,d.autocomplete);a(b.fake_input).bind("result",b,function(g,b){if(b)a("#"+c).addTag(b[0]+"",{focus:true,unique:d.unique})})}else if(jQuery.ui.autocomplete!==
j){a(b.fake_input).autocomplete(autocomplete_options);a(b.fake_input).bind("autocompleteselect",b,function(g,b){a(g.data.real_input).addTag(b.item.value,{focus:true,unique:d.unique});return false})}}else a(b.fake_input).bind("blur",b,function(b){var c=a(this).attr("data-default");if(a(b.data.fake_input).val()!=""&&a(b.data.fake_input).val()!=c){if(b.data.minChars<=a(b.data.fake_input).val().length&&(!b.data.maxChars||b.data.maxChars>=a(b.data.fake_input).val().length))a(b.data.real_input).addTag(a(b.data.fake_input).val(),
{focus:true,unique:d.unique})}else{a(b.data.fake_input).val(a(b.data.fake_input).attr("data-default"));a(b.data.fake_input).css("color",d.placeholderColor)}return false});a(b.fake_input).bind("keypress",b,function(b){if(b.which==32||b.which==b.data.delimiter.charCodeAt(0)||b.which==13){b.preventDefault();if(b.data.minChars<=a(b.data.fake_input).val().length&&(!b.data.maxChars||b.data.maxChars>=a(b.data.fake_input).val().length))a(b.data.real_input).addTag(a(b.data.fake_input).val(),{focus:true,unique:d.unique});
a(b.data.fake_input).resetAutosize(d);return false}else if(b.data.autosize)a(b.data.fake_input).doAutosize(d)});b.removeWithBackspace&&a(b.fake_input).bind("keydown",function(b){if(b.keyCode==8&&a(this).val()==""){b.preventDefault();var b=a(this).closest(".tagsinput").find(".tagsinput-tag:last").text(),c=a(this).attr("id").replace(/_tag$/,""),b=b.replace(/[\s]+x$/,"");a("#"+c).removeTag(escape(b));a(this).trigger("focus")}});a(b.fake_input).blur();if(b.unique)a(b.fake_input).keydown(function(b){if(b.keyCode==
8||String.fromCharCode(b.which).match(/\w+|[\u00e1\u00e9\u00ed\u00f3\u00fa\u00c1\u00c9\u00cd\u00d3\u00da\u00f1\u00d1,\/]+/))a(this).removeClass("tagsinput-not_valid")})}return false});return this};a.fn.tagsInput.updateTagsField=function(e,d){var c=a(e).attr("id");a(e).val(d.join(i[c]))};a.fn.tagsInput.importTags=function(e,d){a(e).val("");for(var c=a(e).attr("id"),b=d.split(i[c]),f=0;f<b.length;f++)a(e).addTag(b[f],{focus:false,callback:false});if(h[c]&&h[c].onChange)h[c].onChange.call(e,e,b[f])}})(jQuery);
