(function(e,m){function i(f){var n=H[f]={},j,c,f=f.split(/\s+/);for(j=0,c=f.length;j<c;j++)n[f[j]]=!0;return n}function g(f,n,c){if(c===m&&1===f.nodeType)if(c="data-"+n.replace(ba,"-$1").toLowerCase(),c=f.getAttribute(c),"string"===typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:j.isNumeric(c)?parseFloat(c):T.test(c)?j.parseJSON(c):c}catch(e){}j.data(f,n,c)}else c=m;return c}function o(f){for(var n in f)if(!("data"===n&&j.isEmptyObject(f[n]))&&"toJSON"!==n)return!1;return!0}function l(f,
n,c){var e=n+"defer",h=n+"queue",k=n+"mark",i=j._data(f,e);i&&("queue"===c||!j._data(f,h))&&("mark"===c||!j._data(f,k))&&setTimeout(function(){!j._data(f,h)&&!j._data(f,k)&&(j.removeData(f,e,!0),i.fire())},0)}function t(){return!1}function c(){return!0}function k(f,n,c){n=n||0;if(j.isFunction(n))return j.grep(f,function(f,j){return!!n.call(f,j,f)===c});if(n.nodeType)return j.grep(f,function(f){return f===n===c});if("string"===typeof n){var e=j.grep(f,function(f){return 1===f.nodeType});if(R.test(n))return j.filter(n,
e,!c);n=j.filter(n,e)}return j.grep(f,function(f){return 0<=j.inArray(f,n)===c})}function q(f){var n=S.split(" "),f=f.createDocumentFragment();if(f.createElement)for(;n.length;)f.createElement(n.pop());return f}function v(f,n){if(1===n.nodeType&&j.hasData(f)){var c,e,h;e=j._data(f);var k=j._data(n,e),i=e.events;if(i)for(c in delete k.handle,k.events={},i)for(e=0,h=i[c].length;e<h;e++)j.event.add(n,c+(i[c][e].namespace?".":"")+i[c][e].namespace,i[c][e],i[c][e].data);if(k.data)k.data=j.extend({},k.data)}}
function w(f,n){var c;if(1===n.nodeType){n.clearAttributes&&n.clearAttributes();n.mergeAttributes&&n.mergeAttributes(f);c=n.nodeName.toLowerCase();if("object"===c)n.outerHTML=f.outerHTML;else if("input"===c&&("checkbox"===f.type||"radio"===f.type)){if(f.checked)n.defaultChecked=n.checked=f.checked;if(n.value!==f.value)n.value=f.value}else if("option"===c)n.selected=f.defaultSelected;else if("input"===c||"textarea"===c)n.defaultValue=f.defaultValue;n.removeAttribute(j.expando)}}function h(f){return"undefined"!==
typeof f.getElementsByTagName?f.getElementsByTagName("*"):"undefined"!==typeof f.querySelectorAll?f.querySelectorAll("*"):[]}function O(f){if("checkbox"===f.type||"radio"===f.type)f.defaultChecked=f.checked}function z(f){var n=(f.nodeName||"").toLowerCase();"input"===n?O(f):"script"!==n&&"undefined"!==typeof f.getElementsByTagName&&j.grep(f.getElementsByTagName("input"),O)}function K(f,n){n.src?j.ajax({url:n.src,async:!1,dataType:"script"}):j.globalEval((n.text||n.textContent||n.innerHTML||"").replace(La,
"/*$0*/"));n.parentNode&&n.parentNode.removeChild(n)}function u(f,n,c){var e="width"===n?f.offsetWidth:f.offsetHeight,h="width"===n?jb:kb;if(0<e)return"border"!==c&&j.each(h,function(){c||(e-=parseFloat(j.css(f,"padding"+this))||0);e="margin"===c?e+(parseFloat(j.css(f,c+this))||0):e-(parseFloat(j.css(f,"border"+this+"Width"))||0)}),e+"px";e=Ha(f,n,n);if(0>e||null==e)e=f.style[n]||0;e=parseFloat(e)||0;c&&j.each(h,function(){e+=parseFloat(j.css(f,"padding"+this))||0;"padding"!==c&&(e+=parseFloat(j.css(f,
"border"+this+"Width"))||0);"margin"===c&&(e+=parseFloat(j.css(f,c+this))||0)});return e+"px"}function D(f){return function(n,c){var F;"string"!==typeof n&&(c=n,n="*");if(j.isFunction(c))for(var e=n.toLowerCase().split(Ya),h=0,k=e.length,i,g;h<k;h++)i=e[h],(g=/^\+/.test(i))&&(i=i.substr(1)||"*"),F=f[i]=f[i]||[],i=F,i[g?"unshift":"push"](c)}}function A(f,n,c,j,e,h){e=e||n.dataTypes[0];h=h||{};h[e]=!0;for(var e=f[e],k=0,i=e?e.length:0,g=f===Sa,l;k<i&&(g||!l);k++)l=e[k](n,c,j),"string"===typeof l&&(!g||
h[l]?l=m:(n.dataTypes.unshift(l),l=A(f,n,c,j,l,h)));if((g||!l)&&!h["*"])l=A(f,n,c,j,"*",h);return l}function J(f,n){var c,e,h=j.ajaxSettings.flatOptions||{};for(c in n)n[c]!==m&&((h[c]?f:e||(e={}))[c]=n[c]);e&&j.extend(!0,f,e)}function B(f,n,c,e){if(j.isArray(n))j.each(n,function(n,h){c||lb.test(f)?e(f,h):B(f+"["+("object"===typeof h||j.isArray(h)?n:"")+"]",h,c,e)});else if(!c&&null!=n&&"object"===typeof n)for(var h in n)B(f+"["+h+"]",n[h],c,e);else e(f,n)}function I(){try{return new e.XMLHttpRequest}catch(f){}}
function V(){setTimeout(L,0);return Na=j.now()}function L(){Na=m}function M(f,n){var c={};j.each(Za.concat.apply([],Za.slice(0,n)),function(){c[this]=f});return c}function Y(f){if(!Ta[f]){var n=x.body,c=j("<"+f+">").appendTo(n),e=c.css("display");c.remove();if("none"===e||""===e){if(!va)va=x.createElement("iframe"),va.frameBorder=va.width=va.height=0;n.appendChild(va);if(!Ia||!va.createElement)Ia=(va.contentWindow||va.contentDocument).document,Ia.write(("CSS1Compat"===x.compatMode?"<!doctype html>":
"")+"<html><body>"),Ia.close();c=Ia.createElement(f);Ia.body.appendChild(c);e=j.css(c,"display");n.removeChild(va)}Ta[f]=e}return Ta[f]}function aa(f){return j.isWindow(f)?f:9===f.nodeType?f.defaultView||f.parentWindow:!1}var x=e.document,wa=e.navigator,sa=e.location,j=function(){function f(){if(!n.isReady){try{x.documentElement.doScroll("left")}catch(c){setTimeout(f,1);return}n.ready()}}var n=function(f,c){return new n.fn.init(f,c,h)},c=e.jQuery,j=e.$,h,k=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
i=/\S/,g=/^\s+/,l=/\s+$/,o=/\d/,u=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,q=/^[\],:{}\s]*$/,v=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,t=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,w=/(?:^|:|,)(?:\s*\[)+/g,D=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,A=/(msie) ([\w.]+)/,r=/(mozilla)(?:.*? rv:([\w.]+))?/,na=/-([a-z]|[0-9])/ig,y=/^-ms-/,O=function(f,n){return(n+"").toUpperCase()},Ma=wa.userAgent,Oa,Ja,mb=Object.prototype.toString,Ua=Object.prototype.hasOwnProperty,Va=Array.prototype.push,
z=Array.prototype.slice,J=String.prototype.trim,B=Array.prototype.indexOf,R={};n.fn=n.prototype={constructor:n,init:function(f,c,e){var j;if(!f)return this;if(f.nodeType)return this.context=this[0]=f,this.length=1,this;if("body"===f&&!c&&x.body)return this.context=x,this[0]=x.body,this.selector=f,this.length=1,this;if("string"===typeof f){if((j="<"===f.charAt(0)&&">"===f.charAt(f.length-1)&&3<=f.length?[null,f,null]:k.exec(f))&&(j[1]||!c)){if(j[1])return e=(c=c instanceof n?c[0]:c)?c.ownerDocument||
c:x,(f=u.exec(f))?n.isPlainObject(c)?(f=[x.createElement(f[1])],n.fn.attr.call(f,c,!0)):f=[e.createElement(f[1])]:(f=n.buildFragment([j[1]],[e]),f=(f.cacheable?n.clone(f.fragment):f.fragment).childNodes),n.merge(this,f);if((c=x.getElementById(j[2]))&&c.parentNode){if(c.id!==j[2])return e.find(f);this.length=1;this[0]=c}this.context=x;this.selector=f;return this}return!c||c.jquery?(c||e).find(f):this.constructor(c).find(f)}if(n.isFunction(f))return e.ready(f);if(f.selector!==m)this.selector=f.selector,
this.context=f.context;return n.makeArray(f,this)},selector:"",jquery:"1.7",length:0,size:function(){return this.length},toArray:function(){return z.call(this,0)},get:function(f){return null==f?this.toArray():0>f?this[this.length+f]:this[f]},pushStack:function(f,c,e){var j=this.constructor();n.isArray(f)?Va.apply(j,f):n.merge(j,f);j.prevObject=this;j.context=this.context;if("find"===c)j.selector=this.selector+(this.selector?" ":"")+e;else if(c)j.selector=this.selector+"."+c+"("+e+")";return j},each:function(f,
c){return n.each(this,f,c)},ready:function(f){n.bindReady();Oa.add(f);return this},eq:function(f){return-1===f?this.slice(f):this.slice(f,+f+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(z.apply(this,arguments),"slice",z.call(arguments).join(","))},map:function(f){return this.pushStack(n.map(this,function(n,c){return f.call(n,c,n)}))},end:function(){return this.prevObject||this.constructor(null)},push:Va,sort:[].sort,splice:[].splice};
n.fn.init.prototype=n.fn;n.extend=n.fn.extend=function(){var f,c,j,e,F,h=arguments[0]||{},U=1,k=arguments.length,Ra=!1;"boolean"===typeof h&&(Ra=h,h=arguments[1]||{},U=2);"object"!==typeof h&&!n.isFunction(h)&&(h={});k===U&&(h=this,--U);for(;U<k;U++)if(null!=(f=arguments[U]))for(c in f)j=h[c],e=f[c],h!==e&&(Ra&&e&&(n.isPlainObject(e)||(F=n.isArray(e)))?(F?(F=!1,j=j&&n.isArray(j)?j:[]):j=j&&n.isPlainObject(j)?j:{},h[c]=n.extend(Ra,j,e)):e!==m&&(h[c]=e));return h};n.extend({noConflict:function(f){if(e.$===
n)e.$=j;if(f&&e.jQuery===n)e.jQuery=c;return n},isReady:!1,readyWait:1,holdReady:function(f){f?n.readyWait++:n.ready(!0)},ready:function(f){if(!0===f&&!--n.readyWait||!0!==f&&!n.isReady){if(!x.body)return setTimeout(n.ready,1);n.isReady=!0;!0!==f&&0<--n.readyWait||(Oa.fireWith(x,[n]),n.fn.trigger&&n(x).trigger("ready").unbind("ready"))}},bindReady:function(){if(!Oa){Oa=n.Callbacks("once memory");if("complete"===x.readyState)return setTimeout(n.ready,1);if(x.addEventListener)x.addEventListener("DOMContentLoaded",
Ja,!1),e.addEventListener("load",n.ready,!1);else if(x.attachEvent){x.attachEvent("onreadystatechange",Ja);e.attachEvent("onload",n.ready);var c=!1;try{c=null==e.frameElement}catch(j){}x.documentElement.doScroll&&c&&f()}}},isFunction:function(f){return"function"===n.type(f)},isArray:Array.isArray||function(f){return"array"===n.type(f)},isWindow:function(f){return f&&"object"===typeof f&&"setInterval"in f},isNumeric:function(f){return null!=f&&o.test(f)&&!isNaN(f)},type:function(f){return null==f?
""+f:R[mb.call(f)]||"object"},isPlainObject:function(f){if(!f||"object"!==n.type(f)||f.nodeType||n.isWindow(f))return!1;try{if(f.constructor&&!Ua.call(f,"constructor")&&!Ua.call(f.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}for(var j in f);return j===m||Ua.call(f,j)},isEmptyObject:function(f){for(var n in f)return!1;return!0},error:function(f){throw f;},parseJSON:function(f){if("string"!==typeof f||!f)return null;f=n.trim(f);if(e.JSON&&e.JSON.parse)return e.JSON.parse(f);if(q.test(f.replace(v,
"@").replace(t,"]").replace(w,"")))return(new Function("return "+f))();n.error("Invalid JSON: "+f)},parseXML:function(f){var c,j;try{e.DOMParser?(j=new DOMParser,c=j.parseFromString(f,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(f))}catch(F){c=m}(!c||!c.documentElement||c.getElementsByTagName("parsererror").length)&&n.error("Invalid XML: "+f);return c},noop:function(){},globalEval:function(f){f&&i.test(f)&&(e.execScript||function(f){e.eval.call(e,f)})(f)},camelCase:function(f){return f.replace(y,
"ms-").replace(na,O)},nodeName:function(f,n){return f.nodeName&&f.nodeName.toUpperCase()===n.toUpperCase()},each:function(f,c,j){var e,F=0,h=f.length,U=h===m||n.isFunction(f);if(j)if(U)for(e in f){if(!1===c.apply(f[e],j))break}else for(;F<h&&!(!1===c.apply(f[F++],j)););else if(U)for(e in f){if(!1===c.call(f[e],e,f[e]))break}else for(;F<h&&!(!1===c.call(f[F],F,f[F++])););return f},trim:J?function(f){return null==f?"":J.call(f)}:function(f){return null==f?"":f.toString().replace(g,"").replace(l,"")},
makeArray:function(f,c){var j=c||[];if(null!=f){var e=n.type(f);null==f.length||"string"===e||"function"===e||"regexp"===e||n.isWindow(f)?Va.call(j,f):n.merge(j,f)}return j},inArray:function(f,n,c){var j;if(n){if(B)return B.call(n,f,c);j=n.length;for(c=c?0>c?Math.max(0,j+c):c:0;c<j;c++)if(c in n&&n[c]===f)return c}return-1},merge:function(f,n){var c=f.length,j=0;if("number"===typeof n.length)for(var e=n.length;j<e;j++)f[c++]=n[j];else for(;n[j]!==m;)f[c++]=n[j++];f.length=c;return f},grep:function(f,
n,c){for(var j=[],e,c=!!c,F=0,h=f.length;F<h;F++)e=!!n(f[F],F),c!==e&&j.push(f[F]);return j},map:function(f,c,j){var e,F,h=[],U=0,k=f.length;if(f instanceof n||k!==m&&"number"===typeof k&&(0<k&&f[0]&&f[k-1]||0===k||n.isArray(f)))for(;U<k;U++)e=c(f[U],U,j),null!=e&&(h[h.length]=e);else for(F in f)e=c(f[F],F,j),null!=e&&(h[h.length]=e);return h.concat.apply([],h)},guid:1,proxy:function(f,c){if("string"===typeof c)var j=f[c],c=f,f=j;if(!n.isFunction(f))return m;var e=z.call(arguments,2),j=function(){return f.apply(c,
e.concat(z.call(arguments)))};j.guid=f.guid=f.guid||j.guid||n.guid++;return j},access:function(f,c,j,e,F,h){var U=f.length;if("object"===typeof c){for(var k in c)n.access(f,k,c[k],e,F,j);return f}if(j!==m){e=!h&&e&&n.isFunction(j);for(k=0;k<U;k++)F(f[k],c,e?j.call(f[k],k,F(f[k],c)):j,h);return f}return U?F(f[0],c):m},now:function(){return(new Date).getTime()},uaMatch:function(f){f=f.toLowerCase();f=D.exec(f)||s.exec(f)||A.exec(f)||0>f.indexOf("compatible")&&r.exec(f)||[];return{browser:f[1]||"",version:f[2]||
"0"}},sub:function(){function f(n,c){return new f.fn.init(n,c)}n.extend(!0,f,this);f.superclass=this;f.fn=f.prototype=this();f.fn.constructor=f;f.sub=this.sub;f.fn.init=function(j,e){e&&e instanceof n&&!(e instanceof f)&&(e=f(e));return n.fn.init.call(this,j,e,c)};f.fn.init.prototype=f.fn;var c=f(x);return f},browser:{}});n.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(f,n){R["[object "+n+"]"]=n.toLowerCase()});Ma=n.uaMatch(Ma);if(Ma.browser)n.browser[Ma.browser]=
!0,n.browser.version=Ma.version;if(n.browser.webkit)n.browser.safari=!0;i.test("\u00a0")&&(g=/^[\s\xA0]+/,l=/[\s\xA0]+$/);h=n(x);x.addEventListener?Ja=function(){x.removeEventListener("DOMContentLoaded",Ja,!1);n.ready()}:x.attachEvent&&(Ja=function(){"complete"===x.readyState&&(x.detachEvent("onreadystatechange",Ja),n.ready())});"function"===typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return n});return n}(),H={};j.Callbacks=function(f){var f=f?H[f]||i(f):{},n=[],c=
[],e,h,k,g,l,o=function(c){var e,F,h,U;for(e=0,F=c.length;e<F;e++)h=c[e],U=j.type(h),"array"===U?o(h):"function"===U&&(!f.unique||!q.has(h))&&n.push(h)},u=function(j,i){i=i||[];e=!f.memory||[j,i];h=!0;l=k||0;k=0;for(g=n.length;n&&l<g;l++)if(!1===n[l].apply(j,i)&&f.stopOnFalse){e=!0;break}h=!1;n&&(f.once?!0===e?q.disable():n=[]:c&&c.length&&(e=c.shift(),q.fireWith(e[0],e[1])))},q={add:function(){if(n){var f=n.length;o(arguments);h?g=n.length:e&&!0!==e&&(k=f,u(e[0],e[1]))}return this},remove:function(){if(n)for(var c=
arguments,e=0,j=c.length;e<j;e++)for(var F=0;F<n.length&&!(c[e]===n[F]&&(h&&F<=g&&(g--,F<=l&&l--),n.splice(F--,1),f.unique));F++);return this},has:function(f){if(n)for(var c=0,e=n.length;c<e;c++)if(f===n[c])return!0;return!1},empty:function(){n=[];return this},disable:function(){n=c=e=m;return this},disabled:function(){return!n},lock:function(){c=m;(!e||!0===e)&&q.disable();return this},locked:function(){return!c},fireWith:function(n,j){c&&(h?f.once||c.push([n,j]):(!f.once||!e)&&u(n,j));return this},
fire:function(){q.fireWith(this,arguments);return this},fired:function(){return!!e}};return q};var E=[].slice;j.extend({Deferred:function(f){var n=j.Callbacks("once memory"),c=j.Callbacks("once memory"),e=j.Callbacks("memory"),h="pending",k={resolve:n,reject:c,notify:e},i={done:n.add,fail:c.add,progress:e.add,state:function(){return h},isResolved:n.fired,isRejected:c.fired,then:function(f,n,c){g.done(f).fail(n).progress(c);return this},always:function(){return g.done.apply(g,arguments).fail.apply(g,
arguments)},pipe:function(f,n,c){return j.Deferred(function(e){j.each({done:[f,"resolve"],fail:[n,"reject"],progress:[c,"notify"]},function(f,n){var c=n[0],h=n[1],F;if(j.isFunction(c))g[f](function(){if((F=c.apply(this,arguments))&&j.isFunction(F.promise))F.promise().then(e.resolve,e.reject,e.notify);else e[h+"With"](this===g?e:this,[F])});else g[f](e[h])})}).promise()},promise:function(f){if(null==f)f=i;else for(var n in i)f[n]=i[n];return f}},g=i.promise({}),l;for(l in k)g[l]=k[l].fire,g[l+"With"]=
k[l].fireWith;g.done(function(){h="resolved"},c.disable,e.lock).fail(function(){h="rejected"},n.disable,e.lock);f&&f.call(g,g);return g},when:function(f){function n(f){return function(n){e[f]=1<arguments.length?E.call(arguments,0):n;--g||l.resolveWith(l,e)}}function c(f){return function(n){i[f]=1<arguments.length?E.call(arguments,0):n;l.notifyWith(m,i)}}var e=E.call(arguments,0),h=0,k=e.length,i=Array(k),g=k,l=1>=k&&f&&j.isFunction(f.promise)?f:j.Deferred(),m=l.promise();if(1<k){for(;h<k;h++)e[h]&&
e[h].promise&&j.isFunction(e[h].promise)?e[h].promise().then(n(h),l.reject,c(h)):--g;g||l.resolveWith(l,e)}else l!==f&&l.resolveWith(l,k?[f]:[]);return m}});j.support=function(){var f=x.createElement("div"),n=x.documentElement,c,e,h,k,i,g,l,m;f.setAttribute("className","t");f.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/><nav></nav>";c=f.getElementsByTagName("*");e=f.getElementsByTagName("a")[0];if(!c||!c.length||!e)return{};
h=x.createElement("select");k=h.appendChild(x.createElement("option"));c=f.getElementsByTagName("input")[0];i={leadingWhitespace:3===f.firstChild.nodeType,tbody:!f.getElementsByTagName("tbody").length,htmlSerialize:!!f.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:"/a"===e.getAttribute("href"),opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,unknownElems:!!f.getElementsByTagName("nav").length,checkOn:"on"===c.value,optSelected:k.selected,
getSetAttribute:"t"!==f.className,enctype:!!x.createElement("form").enctype,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0};c.checked=!0;i.noCloneChecked=c.cloneNode(!0).checked;h.disabled=!0;i.optDisabled=!k.disabled;try{delete f.test}catch(o){i.deleteExpando=!1}!f.addEventListener&&f.attachEvent&&f.fireEvent&&(f.attachEvent("onclick",function(){i.noCloneEvent=!1}),f.cloneNode(!0).fireEvent("onclick"));
c=x.createElement("input");c.value="t";c.setAttribute("type","radio");i.radioValue="t"===c.value;c.setAttribute("checked","checked");f.appendChild(c);e=x.createDocumentFragment();e.appendChild(f.lastChild);i.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked;f.innerHTML="";f.style.width=f.style.paddingLeft="1px";g=x.getElementsByTagName("body")[0];l=x.createElement(g?"div":"body");e={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};g&&j.extend(e,{position:"absolute",
left:"-999px",top:"-999px"});for(m in e)l.style[m]=e[m];l.appendChild(f);n=g||n;n.insertBefore(l,n.firstChild);i.appendChecked=c.checked;i.boxModel=2===f.offsetWidth;if("zoom"in f.style)f.style.display="inline",f.style.zoom=1,i.inlineBlockNeedsLayout=2===f.offsetWidth,f.style.display="",f.innerHTML="<div style='width:4px;'></div>",i.shrinkWrapBlocks=2!==f.offsetWidth;f.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";e=f.getElementsByTagName("td");c=
0===e[0].offsetHeight;e[0].style.display="";e[1].style.display="none";i.reliableHiddenOffsets=c&&0===e[0].offsetHeight;f.innerHTML="";if(x.defaultView&&x.defaultView.getComputedStyle)c=x.createElement("div"),c.style.width="0",c.style.marginRight="0",f.appendChild(c),i.reliableMarginRight=0===(parseInt((x.defaultView.getComputedStyle(c,null)||{marginRight:0}).marginRight,10)||0);if(f.attachEvent)for(m in{submit:1,change:1,focusin:1})e="on"+m,c=e in f,c||(f.setAttribute(e,"return;"),c="function"===
typeof f[e]),i[m+"Bubbles"]=c;j(function(){var f,c,n,e;if(g=x.getElementsByTagName("body")[0])f=x.createElement("div"),f.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",g.insertBefore(f,g.firstChild),l=x.createElement("div"),l.style.cssText="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;visibility:hidden;border:0;",l.innerHTML="<div style='position:absolute;top:0;left:0;width:1px;height:1px;margin:0;border:5px solid #000;padding:0;'><div></div></div><table style='position:absolute;top:0;left:0;width:1px;height:1px;margin:0;border:5px solid #000;padding:0;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",
f.appendChild(l),c=l.firstChild,n=c.firstChild,e={doesNotAddBorder:5!==n.offsetTop,doesAddBorderForTableAndCells:5===c.nextSibling.firstChild.firstChild.offsetTop},n.style.position="fixed",n.style.top="20px",e.fixedPosition=20===n.offsetTop||15===n.offsetTop,n.style.position=n.style.top="",c.style.overflow="hidden",c.style.position="relative",e.subtractsBorderForOverflowNotVisible=-5===n.offsetTop,e.doesNotIncludeMarginInBodyOffset=1!==g.offsetTop,g.removeChild(f),l=null,j.extend(i,e)});l.innerHTML=
"";n.removeChild(l);l=e=h=k=g=c=f=c=null;return i}();j.boxModel=j.support.boxModel;var T=/^(?:\{.*\}|\[.*\])$/,ba=/([A-Z])/g;j.extend({cache:{},uuid:0,expando:"jQuery"+(j.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(f){f=f.nodeType?j.cache[f[j.expando]]:f[j.expando];return!!f&&!o(f)},data:function(f,c,e,h){if(j.acceptData(f)){var k,i="string"===typeof c,g=(k=f.nodeType)?j.cache:f,l=k?f[j.expando]:f[j.expando]&&
j.expando,o="events"===c;if(l&&g[l]&&(o||h||g[l].data)||!(i&&e===m)){if(!l)k?f[j.expando]=l=++j.uuid:l=j.expando;if(!g[l]&&(g[l]={},!k))g[l].toJSON=j.noop;if("object"===typeof c||"function"===typeof c)h?g[l]=j.extend(g[l],c):g[l].data=j.extend(g[l].data,c);k=f=g[l];if(!h){if(!f.data)f.data={};f=f.data}e!==m&&(f[j.camelCase(c)]=e);if(o&&!f[c])return k.events;i?(e=f[c],null==e&&(e=f[j.camelCase(c)])):e=f;return e}}},removeData:function(f,c,e){if(j.acceptData(f)){var h,k,i,g=f.nodeType,l=g?j.cache:f,
m=g?f[j.expando]:j.expando;if(l[m]){if(c&&(h=e?l[m]:l[m].data)){j.isArray(c)||(c in h?c=[c]:(c=j.camelCase(c),c=c in h?[c]:c.split(" ")));for(k=0,i=c.length;k<i;k++)delete h[c[k]];if(!(e?o:j.isEmptyObject)(h))return}if(!e&&(delete l[m].data,!o(l[m])))return;j.support.deleteExpando||!l.setInterval?delete l[m]:l[m]=null;g&&(j.support.deleteExpando?delete f[j.expando]:f.removeAttribute?f.removeAttribute(j.expando):f[j.expando]=null)}}},_data:function(f,c,e){return j.data(f,c,e,!0)},acceptData:function(f){if(f.nodeName){var c=
j.noData[f.nodeName.toLowerCase()];if(c)return!(!0===c||f.getAttribute("classid")!==c)}return!0}});j.fn.extend({data:function(f,c){var e,h,k,i=null;if("undefined"===typeof f){if(this.length&&(i=j.data(this[0]),1===this[0].nodeType&&!j._data(this[0],"parsedAttrs"))){h=this[0].attributes;for(var l=0,o=h.length;l<o;l++)k=h[l].name,0===k.indexOf("data-")&&(k=j.camelCase(k.substring(5)),g(this[0],k,i[k]));j._data(this[0],"parsedAttrs",!0)}return i}if("object"===typeof f)return this.each(function(){j.data(this,
f)});e=f.split(".");e[1]=e[1]?"."+e[1]:"";return c===m?(i=this.triggerHandler("getData"+e[1]+"!",[e[0]]),i===m&&this.length&&(i=j.data(this[0],f),i=g(this[0],f,i)),i===m&&e[1]?this.data(e[0]):i):this.each(function(){var h=j(this),k=[e[0],c];h.triggerHandler("setData"+e[1]+"!",k);j.data(this,f,c);h.triggerHandler("changeData"+e[1]+"!",k)})},removeData:function(f){return this.each(function(){j.removeData(this,f)})}});j.extend({_mark:function(f,c){f&&(c=(c||"fx")+"mark",j._data(f,c,(j._data(f,c)||0)+
1))},_unmark:function(f,c,e){!0!==f&&(e=c,c=f,f=!1);if(c){var e=e||"fx",h=e+"mark";(f=f?0:(j._data(c,h)||1)-1)?j._data(c,h,f):(j.removeData(c,h,!0),l(c,e,"mark"))}},queue:function(f,c,e){var h;if(f)return c=(c||"fx")+"queue",h=j._data(f,c),e&&(!h||j.isArray(e)?h=j._data(f,c,j.makeArray(e)):h.push(e)),h||[]},dequeue:function(f,c){var c=c||"fx",e=j.queue(f,c),h=e.shift(),k={};"inprogress"===h&&(h=e.shift());h&&("fx"===c&&e.unshift("inprogress"),j._data(f,c+".run",k),h.call(f,function(){j.dequeue(f,
c)},k));e.length||(j.removeData(f,c+"queue "+c+".run",!0),l(f,c,"queue"))}});j.fn.extend({queue:function(f,c){"string"!==typeof f&&(c=f,f="fx");return c===m?j.queue(this[0],f):this.each(function(){var e=j.queue(this,f,c);"fx"===f&&"inprogress"!==e[0]&&j.dequeue(this,f)})},dequeue:function(f){return this.each(function(){j.dequeue(this,f)})},delay:function(f,c){f=j.fx?j.fx.speeds[f]||f:f;return this.queue(c||"fx",function(c,e){var n=setTimeout(c,f);e.stop=function(){clearTimeout(n)}})},clearQueue:function(f){return this.queue(f||
"fx",[])},promise:function(f){function c(){--i||e.resolveWith(h,[h])}"string"!==typeof f&&(f=m);for(var f=f||"fx",e=j.Deferred(),h=this,k=h.length,i=1,g=f+"defer",l=f+"queue",f=f+"mark",o;k--;)if(o=j.data(h[k],g,m,!0)||(j.data(h[k],l,m,!0)||j.data(h[k],f,m,!0))&&j.data(h[k],g,j.Callbacks("once memory"),!0))i++,o.add(c);c();return e.promise()}});var G=/[\n\t\r]/g,P=/\s+/,N=/\r/g,C=/^(?:button|input)$/i,ea=/^(?:button|input|object|select|textarea)$/i,ga=/^a(?:rea)?$/i,X=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
ha=j.support.getSetAttribute,s,ia,ka;j.fn.extend({attr:function(f,c){return j.access(this,f,c,!0,j.attr)},removeAttr:function(f){return this.each(function(){j.removeAttr(this,f)})},prop:function(f,c){return j.access(this,f,c,!0,j.prop)},removeProp:function(f){f=j.propFix[f]||f;return this.each(function(){try{this[f]=m,delete this[f]}catch(c){}})},addClass:function(f){var c,e,h,k,i,g,l;if(j.isFunction(f))return this.each(function(c){j(this).addClass(f.call(this,c,this.className))});if(f&&"string"===
typeof f){c=f.split(P);for(e=0,h=this.length;e<h;e++)if(k=this[e],1===k.nodeType)if(!k.className&&1===c.length)k.className=f;else{i=" "+k.className+" ";for(g=0,l=c.length;g<l;g++)~i.indexOf(" "+c[g]+" ")||(i+=c[g]+" ");k.className=j.trim(i)}}return this},removeClass:function(f){var c,e,h,k,i,g,l;if(j.isFunction(f))return this.each(function(c){j(this).removeClass(f.call(this,c,this.className))});if(f&&"string"===typeof f||f===m){c=(f||"").split(P);for(e=0,h=this.length;e<h;e++)if(k=this[e],1===k.nodeType&&
k.className)if(f){i=(" "+k.className+" ").replace(G," ");for(g=0,l=c.length;g<l;g++)i=i.replace(" "+c[g]+" "," ");k.className=j.trim(i)}else k.className=""}return this},toggleClass:function(f,c){var e=typeof f,h="boolean"===typeof c;return j.isFunction(f)?this.each(function(e){j(this).toggleClass(f.call(this,e,this.className,c),c)}):this.each(function(){if("string"===e)for(var k,i=0,g=j(this),l=c,m=f.split(P);k=m[i++];)l=h?l:!g.hasClass(k),g[l?"addClass":"removeClass"](k);else if("undefined"===e||
"boolean"===e)this.className&&j._data(this,"__className__",this.className),this.className=this.className||!1===f?"":j._data(this,"__className__")||""})},hasClass:function(f){for(var f=" "+f+" ",c=0,e=this.length;c<e;c++)if(1===this[c].nodeType&&-1<(" "+this[c].className+" ").replace(G," ").indexOf(f))return!0;return!1},val:function(f){var c,e,h,k=this[0];if(!arguments.length){if(k){if((c=j.valHooks[k.nodeName.toLowerCase()]||j.valHooks[k.type])&&"get"in c&&(e=c.get(k,"value"))!==m)return e;e=k.value;
return"string"===typeof e?e.replace(N,""):null==e?"":e}return m}h=j.isFunction(f);return this.each(function(e){var k=j(this);if(1===this.nodeType&&(e=h?f.call(this,e,k.val()):f,null==e?e="":"number"===typeof e?e+="":j.isArray(e)&&(e=j.map(e,function(f){return null==f?"":f+""})),c=j.valHooks[this.nodeName.toLowerCase()]||j.valHooks[this.type],!c||!("set"in c)||c.set(this,e,"value")===m))this.value=e})}});j.extend({valHooks:{option:{get:function(f){var c=f.attributes.value;return!c||c.specified?f.value:
f.text}},select:{get:function(f){var c,e,h=f.selectedIndex,k=[],i=f.options,g="select-one"===f.type;if(0>h)return null;f=g?h:0;for(e=g?h+1:i.length;f<e;f++)if(c=i[f],c.selected&&(j.support.optDisabled?!c.disabled:null===c.getAttribute("disabled"))&&(!c.parentNode.disabled||!j.nodeName(c.parentNode,"optgroup"))){c=j(c).val();if(g)return c;k.push(c)}return g&&!k.length&&i.length?j(i[h]).val():k},set:function(f,c){var e=j.makeArray(c);j(f).find("option").each(function(){this.selected=0<=j.inArray(j(this).val(),
e)});if(!e.length)f.selectedIndex=-1;return e}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(f,c,e,h){var k,i,g=f.nodeType;if(!f||3===g||8===g||2===g)return m;if(h&&c in j.attrFn)return j(f)[c](e);if(!("getAttribute"in f))return j.prop(f,c,e);if(h=1!==g||!j.isXMLDoc(f))c=c.toLowerCase(),i=j.attrHooks[c]||(X.test(c)?ia:s);if(e!==m){if(null===e)return j.removeAttr(f,c),m;if(i&&"set"in i&&h&&(k=i.set(f,e,c))!==m)return k;f.setAttribute(c,""+e);return e}if(i&&
"get"in i&&h&&null!==(k=i.get(f,c)))return k;k=f.getAttribute(c);return null===k?m:k},removeAttr:function(f,c){var e,h,k,i,g=0;if(1===f.nodeType){h=(c||"").split(P);for(i=h.length;g<i;g++)k=h[g].toLowerCase(),e=j.propFix[k]||k,j.attr(f,k,""),f.removeAttribute(ha?k:e),X.test(k)&&e in f&&(f[e]=!1)}},attrHooks:{type:{set:function(f,c){if(C.test(f.nodeName)&&f.parentNode)j.error("type property can't be changed");else if(!j.support.radioValue&&"radio"===c&&j.nodeName(f,"input")){var e=f.value;f.setAttribute("type",
c);if(e)f.value=e;return c}}},value:{get:function(f,c){return s&&j.nodeName(f,"button")?s.get(f,c):c in f?f.value:null},set:function(f,c,e){if(s&&j.nodeName(f,"button"))return s.set(f,c,e);f.value=c}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(f,c,e){var h,
k,i=f.nodeType;if(!f||3===i||8===i||2===i)return m;if(1!==i||!j.isXMLDoc(f))c=j.propFix[c]||c,k=j.propHooks[c];return e!==m?k&&"set"in k&&(h=k.set(f,e,c))!==m?h:f[c]=e:k&&"get"in k&&null!==(h=k.get(f,c))?h:f[c]},propHooks:{tabIndex:{get:function(f){var c=f.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):ea.test(f.nodeName)||ga.test(f.nodeName)&&f.href?0:m}}}});j.attrHooks.tabindex=j.propHooks.tabIndex;ia={get:function(f,c){var e,h=j.prop(f,c);return!0===h||"boolean"!==typeof h&&
(e=f.getAttributeNode(c))&&!1!==e.nodeValue?c.toLowerCase():m},set:function(f,c,e){!1===c?j.removeAttr(f,e):(c=j.propFix[e]||e,c in f&&(f[c]=!0),f.setAttribute(e,e.toLowerCase()));return e}};if(!ha)ka={name:!0,id:!0},s=j.valHooks.button={get:function(f,c){var e;return(e=f.getAttributeNode(c))&&(ka[c]?""!==e.nodeValue:e.specified)?e.nodeValue:m},set:function(f,c,e){var j=f.getAttributeNode(e);j||(j=x.createAttribute(e),f.setAttributeNode(j));return j.nodeValue=c+""}},j.attrHooks.tabindex.set=s.set,
j.each(["width","height"],function(f,c){j.attrHooks[c]=j.extend(j.attrHooks[c],{set:function(f,e){if(""===e)return f.setAttribute(c,"auto"),e}})}),j.attrHooks.contenteditable={get:s.get,set:function(f,c,e){""===c&&(c="false");s.set(f,c,e)}};j.support.hrefNormalized||j.each(["href","src","width","height"],function(f,c){j.attrHooks[c]=j.extend(j.attrHooks[c],{get:function(f){f=f.getAttribute(c,2);return null===f?m:f}})});if(!j.support.style)j.attrHooks.style={get:function(f){return f.style.cssText.toLowerCase()||
m},set:function(f,c){return f.style.cssText=""+c}};if(!j.support.optSelected)j.propHooks.selected=j.extend(j.propHooks.selected,{get:function(){return null}});if(!j.support.enctype)j.propFix.enctype="encoding";j.support.checkOn||j.each(["radio","checkbox"],function(){j.valHooks[this]={get:function(f){return null===f.getAttribute("value")?"on":f.value}}});j.each(["radio","checkbox"],function(){j.valHooks[this]=j.extend(j.valHooks[this],{set:function(f,c){if(j.isArray(c))return f.checked=0<=j.inArray(j(f).val(),
c)}})});var la=/^(?:textarea|input|select)$/i,da=/^([^\.]*)?(?:\.(.+))?$/,ca=/\bhover(\.\S+)?/,Z=/^key/,W=/^(?:mouse|contextmenu)|click/,oa=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,xa=function(f){if(f=oa.exec(f))f[1]=(f[1]||"").toLowerCase(),f[3]=f[3]&&RegExp("(?:^|\\s)"+f[3]+"(?:\\s|$)");return f},ma=function(f){return j.event.special.hover?f:f.replace(ca,"mouseenter$1 mouseleave$1")};j.event={add:function(f,c,e,h,k){var i,g,l,o,q,u,v,t,w;if(!(3===f.nodeType||8===f.nodeType||!c||!e||!(i=j._data(f)))){if(e.handler)v=
e,e=v.handler;if(!e.guid)e.guid=j.guid++;l=i.events;if(!l)i.events=l={};g=i.handle;if(!g)i.handle=g=function(f){return"undefined"!==typeof j&&(!f||j.event.triggered!==f.type)?j.event.dispatch.apply(g.elem,arguments):m},g.elem=f;c=ma(c).split(" ");for(i=0;i<c.length;i++){o=da.exec(c[i])||[];q=o[1];u=(o[2]||"").split(".").sort();w=j.event.special[q]||{};q=(k?w.delegateType:w.bindType)||q;w=j.event.special[q]||{};o=j.extend({type:q,origType:o[1],data:h,handler:e,guid:e.guid,selector:k,namespace:u.join(".")},
v);if(k&&(o.quick=xa(k),!o.quick&&j.expr.match.POS.test(k)))o.isPositional=!0;t=l[q];if(!t&&(t=l[q]=[],t.delegateCount=0,!w.setup||!1===w.setup.call(f,h,u,g)))f.addEventListener?f.addEventListener(q,g,!1):f.attachEvent&&f.attachEvent("on"+q,g);if(w.add&&(w.add.call(f,o),!o.handler.guid))o.handler.guid=e.guid;k?t.splice(t.delegateCount++,0,o):t.push(o);j.event.global[q]=!0}f=null}},global:{},remove:function(f,c,e,h){var k=j.hasData(f)&&j._data(f),i,g,l,m,o,q,u,v,t;if(k&&(q=k.events)){c=ma(c||"").split(" ");
for(i=0;i<c.length;i++){g=da.exec(c[i])||[];l=g[1];g=g[2];if(!l){g=g?"."+g:"";for(o in q)j.event.remove(f,o+g,e,h);return}u=j.event.special[l]||{};l=(h?u.delegateType:u.bindType)||l;v=q[l]||[];m=v.length;g=g?RegExp("(^|\\.)"+g.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(e||g||h||u.remove)for(o=0;o<v.length;o++){if(t=v[o],!e||e.guid===t.guid)if(!g||g.test(t.namespace))if(!h||h===t.selector||"**"===h&&t.selector)v.splice(o--,1),t.selector&&v.delegateCount--,u.remove&&u.remove.call(f,
t)}else v.length=0;0===v.length&&m!==v.length&&((!u.teardown||!1===u.teardown.call(f,g))&&j.removeEvent(f,l,k.handle),delete q[l])}if(j.isEmptyObject(q)){if(c=k.handle)c.elem=null;j.removeData(f,["events","handle"],!0)}}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(f,c,h,k){if(!h||!(3===h.nodeType||8===h.nodeType)){var i=f.type||f,g=[],l,o,q,u;0<=i.indexOf("!")&&(i=i.slice(0,-1),l=!0);0<=i.indexOf(".")&&(g=i.split("."),i=g.shift(),g.sort());if(h&&!j.event.customEvent[i]||j.event.global[i])if(f=
"object"===typeof f?f[j.expando]?f:new j.Event(i,f):new j.Event(i),f.type=i,f.isTrigger=!0,f.exclusive=l,f.namespace=g.join("."),f.namespace_re=f.namespace?RegExp("(^|\\.)"+g.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,g=0>i.indexOf(":")?"on"+i:"",(k||!h)&&f.preventDefault(),h){f.result=m;if(!f.target)f.target=h;c=null!=c?j.makeArray(c):[];c.unshift(f);l=j.event.special[i]||{};if(!(l.trigger&&!1===l.trigger.apply(h,c))){u=[[h,l.bindType||i]];if(!k&&!l.noBubble&&!j.isWindow(h)){q=l.delegateType||i;o=null;
for(k=h.parentNode;k;k=k.parentNode)u.push([k,q]),o=k;o&&o===h.ownerDocument&&u.push([o.defaultView||o.parentWindow||e,q])}for(o=0;o<u.length&&!(k=u[o][0],f.type=u[o][1],(q=(j._data(k,"events")||{})[f.type]&&j._data(k,"handle"))&&q.apply(k,c),(q=g&&k[g])&&j.acceptData(k)&&q.apply(k,c),f.isPropagationStopped());o++);f.type=i;if(!f.isDefaultPrevented()&&(!l._default||!1===l._default.apply(h.ownerDocument,c))&&!("click"===i&&j.nodeName(h,"a"))&&j.acceptData(h))if(g&&h[i]&&("focus"!==i&&"blur"!==i||0!==
f.target.offsetWidth)&&!j.isWindow(h))(o=h[g])&&(h[g]=null),j.event.triggered=i,h[i](),j.event.triggered=m,o&&(h[g]=o);return f.result}}else for(o in h=j.cache,h)h[o].events&&h[o].events[i]&&j.event.trigger(f,c,h[o].handle.elem,!0)}},dispatch:function(f){var f=j.event.fix(f||e.event),c=(j._data(this,"events")||{})[f.type]||[],h=c.delegateCount,k=[].slice.call(arguments,0),i=!f.exclusive&&!f.namespace,g=(j.event.special[f.type]||{}).handle,l=[],o,q,u,v,t,w,D;k[0]=f;f.delegateTarget=this;if(h&&!f.target.disabled&&
!(f.button&&"click"===f.type))for(q=f.target;q!=this;q=q.parentNode||this){v={};t=[];for(o=0;o<h;o++)u=c[o],w=u.selector,D=v[w],u.isPositional?D=0<=(D||(v[w]=j(w))).index(q):D===m&&(D=v[w]=u.quick?(!u.quick[1]||q.nodeName.toLowerCase()===u.quick[1])&&(!u.quick[2]||q.id===u.quick[2])&&(!u.quick[3]||u.quick[3].test(q.className)):j(q).is(w)),D&&t.push(u);t.length&&l.push({elem:q,matches:t})}c.length>h&&l.push({elem:this,matches:c.slice(h)});for(o=0;o<l.length&&!f.isPropagationStopped();o++){h=l[o];f.currentTarget=
h.elem;for(c=0;c<h.matches.length&&!f.isImmediatePropagationStopped();c++)if(u=h.matches[c],i||!f.namespace&&!u.namespace||f.namespace_re&&f.namespace_re.test(u.namespace))if(f.data=u.data,f.handleObj=u,u=(g||u.handler).apply(h.elem,k),u!==m)f.result=u,!1===u&&(f.preventDefault(),f.stopPropagation())}return f.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},
keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(f,c){if(null==f.which)f.which=null!=c.charCode?c.charCode:c.keyCode;return f}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement wheelDelta".split(" "),filter:function(f,c){var e,j,h=c.button,k=c.fromElement;if(null==f.pageX&&null!=c.clientX)e=f.target.ownerDocument||x,j=e.documentElement,e=e.body,f.pageX=c.clientX+(j&&j.scrollLeft||e&&e.scrollLeft||0)-(j&&j.clientLeft||
e&&e.clientLeft||0),f.pageY=c.clientY+(j&&j.scrollTop||e&&e.scrollTop||0)-(j&&j.clientTop||e&&e.clientTop||0);if(!f.relatedTarget&&k)f.relatedTarget=k===f.target?c.toElement:k;if(!f.which&&h!==m)f.which=h&1?1:h&2?3:h&4?2:0;return f}},fix:function(f){if(f[j.expando])return f;var c,e,h=f,k=j.event.fixHooks[f.type]||{},i=k.props?this.props.concat(k.props):this.props,f=j.Event(h);for(c=i.length;c;)e=i[--c],f[e]=h[e];if(!f.target)f.target=h.srcElement||x;if(3===f.target.nodeType)f.target=f.target.parentNode;
if(f.metaKey===m)f.metaKey=f.ctrlKey;return k.filter?k.filter(f,h):f},special:{ready:{setup:j.bindReady},focus:{delegateType:"focusin",noBubble:!0},blur:{delegateType:"focusout",noBubble:!0},beforeunload:{setup:function(f,c,e){if(j.isWindow(this))this.onbeforeunload=e},teardown:function(f,c){if(this.onbeforeunload===c)this.onbeforeunload=null}}},simulate:function(f,c,e,h){f=j.extend(new j.Event,e,{type:f,isSimulated:!0,originalEvent:{}});h?j.event.trigger(f,null,c):j.event.dispatch.call(c,f);f.isDefaultPrevented()&&
e.preventDefault()}};j.event.handle=j.event.dispatch;j.removeEvent=x.removeEventListener?function(f,c,e){f.removeEventListener&&f.removeEventListener(c,e,!1)}:function(f,c,e){f.detachEvent&&f.detachEvent("on"+c,e)};j.Event=function(f,e){if(!(this instanceof j.Event))return new j.Event(f,e);f&&f.type?(this.originalEvent=f,this.type=f.type,this.isDefaultPrevented=f.defaultPrevented||!1===f.returnValue||f.getPreventDefault&&f.getPreventDefault()?c:t):this.type=f;e&&j.extend(this,e);this.timeStamp=f&&
f.timeStamp||j.now();this[j.expando]=!0};j.Event.prototype={preventDefault:function(){this.isDefaultPrevented=c;var f=this.originalEvent;if(f)f.preventDefault?f.preventDefault():f.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=c;var f=this.originalEvent;if(f)f.stopPropagation&&f.stopPropagation(),f.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=c;this.stopPropagation()},isDefaultPrevented:t,isPropagationStopped:t,isImmediatePropagationStopped:t};
j.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(f,c){j.event.special[f]=j.event.special[c]={delegateType:c,bindType:c,handle:function(f){var c=f.relatedTarget,e=f.handleObj,h;if(!c||e.origType===f.type||c!==this&&!j.contains(this,c))c=f.type,f.type=e.origType,h=e.handler.apply(this,arguments),f.type=c;return h}}});if(!j.support.submitBubbles)j.event.special.submit={setup:function(){if(j.nodeName(this,"form"))return!1;j.event.add(this,"click._submit keypress._submit",function(f){f=f.target;
if((f=j.nodeName(f,"input")||j.nodeName(f,"button")?f.form:m)&&!f._submit_attached)j.event.add(f,"submit._submit",function(f){this.parentNode&&j.event.simulate("submit",this.parentNode,f,!0)}),f._submit_attached=!0})},teardown:function(){if(j.nodeName(this,"form"))return!1;j.event.remove(this,"._submit")}};if(!j.support.changeBubbles)j.event.special.change={setup:function(){if(la.test(this.nodeName)){if("checkbox"===this.type||"radio"===this.type)j.event.add(this,"propertychange._change",function(f){if("checked"===
f.originalEvent.propertyName)this._just_changed=!0}),j.event.add(this,"click._change",function(f){if(this._just_changed)this._just_changed=!1,j.event.simulate("change",this,f,!0)});return!1}j.event.add(this,"beforeactivate._change",function(f){f=f.target;if(la.test(f.nodeName)&&!f._change_attached)j.event.add(f,"change._change",function(f){this.parentNode&&!f.isSimulated&&j.event.simulate("change",this.parentNode,f,!0)}),f._change_attached=!0})},handle:function(f){var c=f.target;if(this!==c||f.isSimulated||
f.isTrigger||"radio"!==c.type&&"checkbox"!==c.type)return f.handleObj.handler.apply(this,arguments)},teardown:function(){j.event.remove(this,"._change");return la.test(this.nodeName)}};j.support.focusinBubbles||j.each({focus:"focusin",blur:"focusout"},function(f,c){var e=0,h=function(f){j.event.simulate(c,f.target,j.event.fix(f),!0)};j.event.special[c]={setup:function(){0===e++&&x.addEventListener(f,h,!0)},teardown:function(){0===--e&&x.removeEventListener(f,h,!0)}}});j.fn.extend({on:function(f,c,
e,h,k){var i,g;if("object"===typeof f){"string"!==typeof c&&(e=c,c=m);for(g in f)this.on(g,c,e,f[g],k);return this}null==e&&null==h?(h=c,e=c=m):null==h&&("string"===typeof c?(h=e,e=m):(h=e,e=c,c=m));if(!1===h)h=t;else if(!h)return this;if(1===k)i=h,h=function(f){j().off(f);return i.apply(this,arguments)},h.guid=i.guid||(i.guid=j.guid++);return this.each(function(){j.event.add(this,f,h,e,c)})},one:function(f,c,e,j){return this.on.call(this,f,c,e,j,1)},off:function(f,c,e){if(f&&f.preventDefault&&f.handleObj){var h=
f.handleObj;j(f.delegateTarget).off(h.namespace?h.type+"."+h.namespace:h.type,h.selector,h.handler);return this}if("object"===typeof f){for(h in f)this.off(h,c,f[h]);return this}if(!1===c||"function"===typeof c)e=c,c=m;!1===e&&(e=t);return this.each(function(){j.event.remove(this,f,e,c)})},bind:function(f,c,e){return this.on(f,null,c,e)},unbind:function(f,c){return this.off(f,null,c)},live:function(f,c,e){j(this.context).on(f,this.selector,c,e);return this},die:function(f,c){j(this.context).off(f,
this.selector||"**",c);return this},delegate:function(f,c,e,j){return this.on(c,f,e,j)},undelegate:function(f,c,e){return 1==arguments.length?this.off(f,"**"):this.off(c,f,e)},trigger:function(f,c){return this.each(function(){j.event.trigger(f,c,this)})},triggerHandler:function(f,c){if(this[0])return j.event.trigger(f,c,this[0],!0)},toggle:function(f){var c=arguments,e=f.guid||j.guid++,h=0,k=function(e){var k=(j._data(this,"lastToggle"+f.guid)||0)%h;j._data(this,"lastToggle"+f.guid,k+1);e.preventDefault();
return c[k].apply(this,arguments)||!1};for(k.guid=e;h<c.length;)c[h++].guid=e;return this.click(k)},hover:function(f,c){return this.mouseenter(f).mouseleave(c||f)}});j.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(f,c){j.fn[c]=function(f,e){null==e&&(e=f,f=null);return 0<arguments.length?this.bind(c,f,e):this.trigger(c)};
j.attrFn&&(j.attrFn[c]=!0);if(Z.test(c))j.event.fixHooks[c]=j.event.keyHooks;if(W.test(c))j.event.fixHooks[c]=j.event.mouseHooks});(function(){function f(f,c,e,j,k,n){for(var k=0,i=j.length;k<i;k++){var g=j[k];if(g){for(var l=!1,g=g[f];g;){if(g[h]===e){l=j[g.sizset];break}if(1===g.nodeType&&!n)g[h]=e,g.sizset=k;if(g.nodeName.toLowerCase()===c){l=g;break}g=g[f]}j[k]=l}}}function c(f,e,j,k,n,i){for(var n=0,g=k.length;n<g;n++){var l=k[n];if(l){for(var o=!1,l=l[f];l;){if(l[h]===j){o=k[l.sizset];break}if(1===
l.nodeType){if(!i)l[h]=j,l.sizset=n;if("string"!==typeof e){if(l===e){o=!0;break}}else if(0<v.filter(e,[l]).length){o=l;break}}l=l[f]}k[n]=o}}}var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,h="sizcache"+(Math.random()+"").replace(".",""),k=0,i=Object.prototype.toString,g=!1,l=!0,o=/\\/g,u=/\r\n/g,q=/\W/;[0,0].sort(function(){l=!1;return 0});var v=function(f,c,j,h){var j=j||[],k=c=c||x;if(1!==c.nodeType&&9!==
c.nodeType)return[];if(!f||"string"!==typeof f)return j;var n,g,l,o,m,u=!0,U=v.isXML(c),q=[],t=f;do if(e.exec(""),n=e.exec(t))if(t=n[3],q.push(n[1]),n[2]){o=n[3];break}while(n);if(1<q.length&&D.exec(f))if(2===q.length&&w.relative[q[0]])g=z(q[0]+q[1],c,h);else for(g=w.relative[q[0]]?[c]:v(q.shift(),c);q.length;)f=q.shift(),w.relative[f]&&(f+=q.shift()),g=z(f,g,h);else if(!h&&1<q.length&&9===c.nodeType&&!U&&w.match.ID.test(q[0])&&!w.match.ID.test(q[q.length-1])&&(n=v.find(q.shift(),c,U),c=n.expr?v.filter(n.expr,
n.set)[0]:n.set[0]),c){n=h?{expr:q.pop(),set:r(h)}:v.find(q.pop(),1===q.length&&("~"===q[0]||"+"===q[0])&&c.parentNode?c.parentNode:c,U);g=n.expr?v.filter(n.expr,n.set):n.set;for(0<q.length?l=r(g):u=!1;q.length;)n=m=q.pop(),w.relative[m]?n=q.pop():m="",null==n&&(n=c),w.relative[m](l,n,U)}else l=[];l||(l=g);l||v.error(m||f);if("[object Array]"===i.call(l))if(u)if(c&&1===c.nodeType)for(f=0;null!=l[f];f++)l[f]&&(!0===l[f]||1===l[f].nodeType&&v.contains(c,l[f]))&&j.push(g[f]);else for(f=0;null!=l[f];f++)l[f]&&
1===l[f].nodeType&&j.push(g[f]);else j.push.apply(j,l);else r(l,j);o&&(v(o,k,j,h),v.uniqueSort(j));return j};v.uniqueSort=function(f){if(y&&(g=l,f.sort(y),g))for(var c=1;c<f.length;c++)f[c]===f[c-1]&&f.splice(c--,1);return f};v.matches=function(f,c){return v(f,null,null,c)};v.matchesSelector=function(f,c){return 0<v(c,null,null,[f]).length};v.find=function(f,c,e){var j,h,k,n,i,g;if(!f)return[];for(h=0,k=w.order.length;h<k;h++)if(i=w.order[h],n=w.leftMatch[i].exec(f))if(g=n[1],n.splice(1,1),"\\"!==
g.substr(g.length-1)&&(n[1]=(n[1]||"").replace(o,""),j=w.find[i](n,c,e),null!=j)){f=f.replace(w.match[i],"");break}j||(j="undefined"!==typeof c.getElementsByTagName?c.getElementsByTagName("*"):[]);return{set:j,expr:f}};v.filter=function(f,c,e,j){for(var h,k,n,i,g,l,o,q,U=f,u=[],F=c,t=c&&c[0]&&v.isXML(c[0]);f&&c.length;){for(n in w.filter)if(null!=(h=w.leftMatch[n].exec(f))&&h[2])if(l=w.filter[n],g=h[1],k=!1,h.splice(1,1),"\\"!==g.substr(g.length-1)){F===u&&(u=[]);if(w.preFilter[n])if(h=w.preFilter[n](h,
F,e,u,j,t)){if(!0===h)continue}else k=i=!0;if(h)for(o=0;null!=(g=F[o]);o++)g&&(i=l(g,h,o,F),q=j^i,e&&null!=i?q?k=!0:F[o]=!1:q&&(u.push(g),k=!0));if(i!==m){e||(F=u);f=f.replace(w.match[n],"");if(!k)return[];break}}if(f===U)if(null==k)v.error(f);else break;U=f}return F};v.error=function(f){throw"Syntax error, unrecognized expression: "+f;};var t=v.getText=function(f){var c,e;c=f.nodeType;var j="";if(c)if(1===c){if("string"===typeof f.textContent)return f.textContent;if("string"===typeof f.innerText)return f.innerText.replace(u,
"");for(f=f.firstChild;f;f=f.nextSibling)j+=t(f)}else{if(3===c||4===c)return f.nodeValue}else for(c=0;e=f[c];c++)8!==e.nodeType&&(j+=t(e));return j},w=v.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(f){return f.getAttribute("href")},type:function(f){return f.getAttribute("type")}},relative:{"+":function(f,c){var e="string"===typeof c,j=e&&!q.test(c),e=e&&!j;j&&(c=c.toLowerCase());for(var j=0,h=f.length,k;j<h;j++)if(k=f[j]){for(;(k=k.previousSibling)&&1!==k.nodeType;);
f[j]=e||k&&k.nodeName.toLowerCase()===c?k||!1:k===c}e&&v.filter(c,f,!0)},">":function(f,c){var e,j="string"===typeof c,h=0,k=f.length;if(j&&!q.test(c))for(c=c.toLowerCase();h<k;h++){if(e=f[h])e=e.parentNode,f[h]=e.nodeName.toLowerCase()===c?e:!1}else{for(;h<k;h++)(e=f[h])&&(f[h]=j?e.parentNode:e.parentNode===c);j&&v.filter(c,f,!0)}},"":function(e,j,h){var i,g=k++,l=c;"string"===typeof j&&!q.test(j)&&(i=j=j.toLowerCase(),l=f);l("parentNode",j,g,e,i,h)},"~":function(e,j,h){var i,g=k++,l=c;"string"===
typeof j&&!q.test(j)&&(i=j=j.toLowerCase(),l=f);l("previousSibling",j,g,e,i,h)}},find:{ID:function(f,c,e){if("undefined"!==typeof c.getElementById&&!e)return(f=c.getElementById(f[1]))&&f.parentNode?[f]:[]},NAME:function(f,c){if("undefined"!==typeof c.getElementsByName){for(var e=[],j=c.getElementsByName(f[1]),h=0,k=j.length;h<k;h++)j[h].getAttribute("name")===f[1]&&e.push(j[h]);return 0===e.length?null:e}},TAG:function(f,c){if("undefined"!==typeof c.getElementsByTagName)return c.getElementsByTagName(f[1])}},
preFilter:{CLASS:function(f,c,e,j,h,k){f=" "+f[1].replace(o,"")+" ";if(k)return f;for(var k=0,n;null!=(n=c[k]);k++)n&&(h^(n.className&&0<=(" "+n.className+" ").replace(/[\t\n\r]/g," ").indexOf(f))?e||j.push(n):e&&(c[k]=!1));return!1},ID:function(f){return f[1].replace(o,"")},TAG:function(f){return f[1].replace(o,"").toLowerCase()},CHILD:function(f){if("nth"===f[1]){f[2]||v.error(f[0]);f[2]=f[2].replace(/^\+|\s*/g,"");var c=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec("even"===f[2]&&"2n"||"odd"===f[2]&&"2n+1"||
!/\D/.test(f[2])&&"0n+"+f[2]||f[2]);f[2]=c[1]+(c[2]||1)-0;f[3]=c[3]-0}else f[2]&&v.error(f[0]);f[0]=k++;return f},ATTR:function(f,c,e,j,h,k){c=f[1]=f[1].replace(o,"");!k&&w.attrMap[c]&&(f[1]=w.attrMap[c]);f[4]=(f[4]||f[5]||"").replace(o,"");"~="===f[2]&&(f[4]=" "+f[4]+" ");return f},PSEUDO:function(f,c,j,h,k){if("not"===f[1])if(1<(e.exec(f[3])||"").length||/^\w/.test(f[3]))f[3]=v(f[3],null,null,c);else return f=v.filter(f[3],c,j,1^k),j||h.push.apply(h,f),!1;else if(w.match.POS.test(f[0])||w.match.CHILD.test(f[0]))return!0;
return f},POS:function(f){f.unshift(!0);return f}},filters:{enabled:function(f){return!1===f.disabled&&"hidden"!==f.type},disabled:function(f){return!0===f.disabled},checked:function(f){return!0===f.checked},selected:function(f){return!0===f.selected},parent:function(f){return!!f.firstChild},empty:function(f){return!f.firstChild},has:function(f,c,e){return!!v(e[3],f).length},header:function(f){return/h\d/i.test(f.nodeName)},text:function(f){var c=f.getAttribute("type"),e=f.type;return"input"===f.nodeName.toLowerCase()&&
"text"===e&&(c===e||null===c)},radio:function(f){return"input"===f.nodeName.toLowerCase()&&"radio"===f.type},checkbox:function(f){return"input"===f.nodeName.toLowerCase()&&"checkbox"===f.type},file:function(f){return"input"===f.nodeName.toLowerCase()&&"file"===f.type},password:function(f){return"input"===f.nodeName.toLowerCase()&&"password"===f.type},submit:function(f){var c=f.nodeName.toLowerCase();return("input"===c||"button"===c)&&"submit"===f.type},image:function(f){return"input"===f.nodeName.toLowerCase()&&
"image"===f.type},reset:function(f){var c=f.nodeName.toLowerCase();return("input"===c||"button"===c)&&"reset"===f.type},button:function(f){var c=f.nodeName.toLowerCase();return"input"===c&&"button"===f.type||"button"===c},input:function(f){return/input|select|textarea|button/i.test(f.nodeName)},focus:function(f){return f===f.ownerDocument.activeElement}},setFilters:{first:function(f,c){return 0===c},last:function(f,c,e,j){return c===j.length-1},even:function(f,c){return 0===c%2},odd:function(f,c){return 1===
c%2},lt:function(f,c,e){return c<e[3]-0},gt:function(f,c,e){return c>e[3]-0},nth:function(f,c,e){return e[3]-0===c},eq:function(f,c,e){return e[3]-0===c}},filter:{PSEUDO:function(f,c,e,j){var h=c[1],k=w.filters[h];if(k)return k(f,e,c,j);if("contains"===h)return 0<=(f.textContent||f.innerText||t([f])||"").indexOf(c[3]);if("not"===h){c=c[3];e=0;for(j=c.length;e<j;e++)if(c[e]===f)return!1;return!0}v.error(h)},CHILD:function(f,c){var e,j,k,n,i,g;e=c[1];g=f;switch(e){case "only":case "first":for(;g=g.previousSibling;)if(1===
g.nodeType)return!1;if("first"===e)return!0;g=f;case "last":for(;g=g.nextSibling;)if(1===g.nodeType)return!1;return!0;case "nth":e=c[2];j=c[3];if(1===e&&0===j)return!0;k=c[0];if((n=f.parentNode)&&(n[h]!==k||!f.nodeIndex)){i=0;for(g=n.firstChild;g;g=g.nextSibling)if(1===g.nodeType)g.nodeIndex=++i;n[h]=k}g=f.nodeIndex-j;return 0===e?0===g:0===g%e&&0<=g/e}},ID:function(f,c){return 1===f.nodeType&&f.getAttribute("id")===c},TAG:function(f,c){return"*"===c&&1===f.nodeType||!!f.nodeName&&f.nodeName.toLowerCase()===
c},CLASS:function(f,c){return-1<(" "+(f.className||f.getAttribute("class"))+" ").indexOf(c)},ATTR:function(f,c){var e=c[1],e=v.attr?v.attr(f,e):w.attrHandle[e]?w.attrHandle[e](f):null!=f[e]?f[e]:f.getAttribute(e),j=e+"",h=c[2],k=c[4];return null==e?"!="===h:!h&&v.attr?null!=e:"="===h?j===k:"*="===h?0<=j.indexOf(k):"~="===h?0<=(" "+j+" ").indexOf(k):!k?j&&!1!==e:"!="===h?j!==k:"^="===h?0===j.indexOf(k):"$="===h?j.substr(j.length-k.length)===k:"|="===h?j===k||j.substr(0,k.length+1)===k+"-":!1},POS:function(f,
c,e,j){var h=w.setFilters[c[2]];if(h)return h(f,e,c,j)}}},D=w.match.POS,s=function(f,c){return"\\"+(c-0+1)},A;for(A in w.match)w.match[A]=RegExp(w.match[A].source+/(?![^\[]*\])(?![^\(]*\))/.source),w.leftMatch[A]=RegExp(/(^(?:.|\r|\n)*?)/.source+w.match[A].source.replace(/\\(\d+)/g,s));var r=function(f,c){f=Array.prototype.slice.call(f,0);return c?(c.push.apply(c,f),c):f};try{Array.prototype.slice.call(x.documentElement.childNodes,0)}catch(na){r=function(f,c){var e=0,j=c||[];if("[object Array]"===
i.call(f))Array.prototype.push.apply(j,f);else if("number"===typeof f.length)for(var h=f.length;e<h;e++)j.push(f[e]);else for(;f[e];e++)j.push(f[e]);return j}}var y,O;x.documentElement.compareDocumentPosition?y=function(f,c){return f===c?(g=!0,0):!f.compareDocumentPosition||!c.compareDocumentPosition?f.compareDocumentPosition?-1:1:f.compareDocumentPosition(c)&4?-1:1}:(y=function(f,c){if(f===c)return g=!0,0;if(f.sourceIndex&&c.sourceIndex)return f.sourceIndex-c.sourceIndex;var e,j,h=[],k=[];e=f.parentNode;
j=c.parentNode;var n=e;if(e===j)return O(f,c);if(e){if(!j)return 1}else return-1;for(;n;)h.unshift(n),n=n.parentNode;for(n=j;n;)k.unshift(n),n=n.parentNode;e=h.length;j=k.length;for(n=0;n<e&&n<j;n++)if(h[n]!==k[n])return O(h[n],k[n]);return n===e?O(f,k[n],-1):O(h[n],c,1)},O=function(f,c,e){if(f===c)return e;for(f=f.nextSibling;f;){if(f===c)return-1;f=f.nextSibling}return 1});(function(){var f=x.createElement("div"),c="script"+(new Date).getTime(),e=x.documentElement;f.innerHTML="<a name='"+c+"'/>";
e.insertBefore(f,e.firstChild);if(x.getElementById(c))w.find.ID=function(f,c,e){if("undefined"!==typeof c.getElementById&&!e)return(c=c.getElementById(f[1]))?c.id===f[1]||"undefined"!==typeof c.getAttributeNode&&c.getAttributeNode("id").nodeValue===f[1]?[c]:m:[]},w.filter.ID=function(f,c){var e="undefined"!==typeof f.getAttributeNode&&f.getAttributeNode("id");return 1===f.nodeType&&e&&e.nodeValue===c};e.removeChild(f);e=f=null})();(function(){var f=x.createElement("div");f.appendChild(x.createComment(""));
if(0<f.getElementsByTagName("*").length)w.find.TAG=function(f,c){var e=c.getElementsByTagName(f[1]);if("*"===f[1]){for(var j=[],h=0;e[h];h++)1===e[h].nodeType&&j.push(e[h]);e=j}return e};f.innerHTML="<a href='#'></a>";if(f.firstChild&&"undefined"!==typeof f.firstChild.getAttribute&&"#"!==f.firstChild.getAttribute("href"))w.attrHandle.href=function(f){return f.getAttribute("href",2)};f=null})();x.querySelectorAll&&function(){var f=v,c=x.createElement("div");c.innerHTML="<p class='TEST'></p>";if(!(c.querySelectorAll&&
0===c.querySelectorAll(".TEST").length)){v=function(c,e,j,h){e=e||x;if(!h&&!v.isXML(e)){var k=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(c);if(k&&(1===e.nodeType||9===e.nodeType)){if(k[1])return r(e.getElementsByTagName(c),j);if(k[2]&&w.find.CLASS&&e.getElementsByClassName)return r(e.getElementsByClassName(k[2]),j)}if(9===e.nodeType){if("body"===c&&e.body)return r([e.body],j);if(k&&k[3]){var n=e.getElementById(k[3]);if(n&&n.parentNode){if(n.id===k[3])return r([n],j)}else return r([],j)}try{return r(e.querySelectorAll(c),
j)}catch(g){}}else if(1===e.nodeType&&"object"!==e.nodeName.toLowerCase()){var k=e,i=(n=e.getAttribute("id"))||"__sizzle__",l=e.parentNode,o=/^\s*[+~]/.test(c);n?i=i.replace(/'/g,"\\$&"):e.setAttribute("id",i);if(o&&l)e=e.parentNode;try{if(!o||l)return r(e.querySelectorAll("[id='"+i+"'] "+c),j)}catch(q){}finally{n||k.removeAttribute("id")}}}return f(c,e,j,h)};for(var e in f)v[e]=f[e];c=null}}();(function(){var f=x.documentElement,c=f.matchesSelector||f.mozMatchesSelector||f.webkitMatchesSelector||
f.msMatchesSelector;if(c){var e=!c.call(x.createElement("div"),"div"),j=!1;try{c.call(x.documentElement,"[test!='']:sizzle")}catch(h){j=!0}v.matchesSelector=function(f,h){h=h.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!v.isXML(f))try{if(j||!w.match.PSEUDO.test(h)&&!/!=/.test(h)){var k=c.call(f,h);if(k||!e||f.document&&11!==f.document.nodeType)return k}}catch(n){}return 0<v(h,null,null,[f]).length}}})();(function(){var f=x.createElement("div");f.innerHTML="<div class='test e'></div><div class='test'></div>";
if(f.getElementsByClassName&&0!==f.getElementsByClassName("e").length&&(f.lastChild.className="e",1!==f.getElementsByClassName("e").length))w.order.splice(1,0,"CLASS"),w.find.CLASS=function(f,c,e){if("undefined"!==typeof c.getElementsByClassName&&!e)return c.getElementsByClassName(f[1])},f=null})();v.contains=x.documentElement.contains?function(f,c){return f!==c&&(f.contains?f.contains(c):!0)}:x.documentElement.compareDocumentPosition?function(f,c){return!!(f.compareDocumentPosition(c)&16)}:function(){return!1};
v.isXML=function(f){return(f=(f?f.ownerDocument||f:0).documentElement)?"HTML"!==f.nodeName:!1};var z=function(f,c,e){for(var j,h=[],k="",c=c.nodeType?[c]:c;j=w.match.PSEUDO.exec(f);)k+=j[0],f=f.replace(w.match.PSEUDO,"");f=w.relative[f]?f+"*":f;j=0;for(var n=c.length;j<n;j++)v(f,c[j],h,e);return v.filter(k,h)};v.attr=j.attr;v.selectors.attrMap={};j.find=v;j.expr=v.selectors;j.expr[":"]=j.expr.filters;j.unique=v.uniqueSort;j.text=v.getText;j.isXMLDoc=v.isXML;j.contains=v.contains})();var ra=/Until$/,
za=/^(?:parents|prevUntil|prevAll)/,Q=/,/,R=/^.[^:#\[\.,]*$/,pa=Array.prototype.slice,y=j.expr.match.POS,ja={children:!0,contents:!0,next:!0,prev:!0};j.fn.extend({find:function(f){var c=this,e,h;if("string"!==typeof f)return j(f).filter(function(){for(e=0,h=c.length;e<h;e++)if(j.contains(c[e],this))return!0});var k=this.pushStack("","find",f),g,i,l;for(e=0,h=this.length;e<h;e++)if(g=k.length,j.find(f,this[e],k),0<e)for(i=g;i<k.length;i++)for(l=0;l<g;l++)if(k[l]===k[i]){k.splice(i--,1);break}return k},
has:function(f){var c=j(f);return this.filter(function(){for(var f=0,e=c.length;f<e;f++)if(j.contains(this,c[f]))return!0})},not:function(f){return this.pushStack(k(this,f,!1),"not",f)},filter:function(f){return this.pushStack(k(this,f,!0),"filter",f)},is:function(f){return!!f&&("string"===typeof f?y.test(f)?0<=j(f,this.context).index(this[0]):0<j.filter(f,this).length:0<this.filter(f).length)},closest:function(f,c){var e=[],h,k,g=this[0];if(j.isArray(f)){for(k=1;g&&g.ownerDocument&&g!==c;){for(h=
0;h<f.length;h++)j(g).is(f[h])&&e.push({selector:f[h],elem:g,level:k});g=g.parentNode;k++}return e}var i=y.test(f)||"string"!==typeof f?j(f,c||this.context):0;for(h=0,k=this.length;h<k;h++)for(g=this[h];g;)if(i?-1<i.index(g):j.find.matchesSelector(g,f)){e.push(g);break}else if(g=g.parentNode,!g||!g.ownerDocument||g===c||11===g.nodeType)break;e=1<e.length?j.unique(e):e;return this.pushStack(e,"closest",f)},index:function(f){return!f?this[0]&&this[0].parentNode?this.prevAll().length:-1:"string"===typeof f?
j.inArray(this[0],j(f)):j.inArray(f.jquery?f[0]:f,this)},add:function(f,c){var e="string"===typeof f?j(f,c):j.makeArray(f&&f.nodeType?[f]:f),h=j.merge(this.get(),e);return this.pushStack(!e[0]||!e[0].parentNode||11===e[0].parentNode.nodeType||!h[0]||!h[0].parentNode||11===h[0].parentNode.nodeType?h:j.unique(h))},andSelf:function(){return this.add(this.prevObject)}});j.each({parent:function(f){return(f=f.parentNode)&&11!==f.nodeType?f:null},parents:function(f){return j.dir(f,"parentNode")},parentsUntil:function(f,
c,e){return j.dir(f,"parentNode",e)},next:function(f){return j.nth(f,2,"nextSibling")},prev:function(f){return j.nth(f,2,"previousSibling")},nextAll:function(f){return j.dir(f,"nextSibling")},prevAll:function(f){return j.dir(f,"previousSibling")},nextUntil:function(f,c,e){return j.dir(f,"nextSibling",e)},prevUntil:function(f,c,e){return j.dir(f,"previousSibling",e)},siblings:function(f){return j.sibling(f.parentNode.firstChild,f)},children:function(f){return j.sibling(f.firstChild)},contents:function(f){return j.nodeName(f,
"iframe")?f.contentDocument||f.contentWindow.document:j.makeArray(f.childNodes)}},function(f,c){j.fn[f]=function(e,h){var k=j.map(this,c,e),g=pa.call(arguments);ra.test(f)||(h=e);h&&"string"===typeof h&&(k=j.filter(h,k));k=1<this.length&&!ja[f]?j.unique(k):k;if((1<this.length||Q.test(h))&&za.test(f))k=k.reverse();return this.pushStack(k,f,g.join(","))}});j.extend({filter:function(f,c,e){e&&(f=":not("+f+")");return 1===c.length?j.find.matchesSelector(c[0],f)?[c[0]]:[]:j.find.matches(f,c)},dir:function(f,
c,e){for(var h=[],f=f[c];f&&9!==f.nodeType&&(e===m||1!==f.nodeType||!j(f).is(e));)1===f.nodeType&&h.push(f),f=f[c];return h},nth:function(f,c,e){for(var c=c||1,j=0;f&&!(1===f.nodeType&&++j===c);f=f[e]);return f},sibling:function(f,c){for(var e=[];f;f=f.nextSibling)1===f.nodeType&&f!==c&&e.push(f);return e}});var S="abbr article aside audio canvas datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",Ba=/ jQuery\d+="(?:\d+|null)"/g,qa=/^\s+/,
Aa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ca=/<([\w:]+)/,ta=/<tbody/i,Da=/<|&#?\w+;/,Ea=/<(?:script|style)/i,r=/<(?:script|object|embed|option|style)/i,na=RegExp("<(?:"+S.replace(" ","|")+")","i"),ua=/checked\s*(?:[^=]|=\s*.checked.)/i,ya=/\/(java|ecma)script/i,La=/^\s*<!(?:\[CDATA\[|\-\-)/,fa={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,"",""]},nb=q(x);fa.optgroup=fa.option;fa.tbody=fa.tfoot=fa.colgroup=fa.caption=fa.thead;fa.th=fa.td;if(!j.support.htmlSerialize)fa._default=[1,"div<div>","</div>"];j.fn.extend({text:function(f){return j.isFunction(f)?this.each(function(c){var e=j(this);e.text(f.call(this,c,e.text()))}):"object"!==typeof f&&f!==m?this.empty().append((this[0]&&this[0].ownerDocument||
x).createTextNode(f)):j.text(this)},wrapAll:function(f){if(j.isFunction(f))return this.each(function(c){j(this).wrapAll(f.call(this,c))});if(this[0]){var c=j(f,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var f=this;f.firstChild&&1===f.firstChild.nodeType;)f=f.firstChild;return f}).append(this)}return this},wrapInner:function(f){return j.isFunction(f)?this.each(function(c){j(this).wrapInner(f.call(this,c))}):this.each(function(){var c=j(this),
e=c.contents();e.length?e.wrapAll(f):c.append(f)})},wrap:function(f){return this.each(function(){j(this).wrapAll(f)})},unwrap:function(){return this.parent().each(function(){j.nodeName(this,"body")||j(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(f){1===this.nodeType&&this.appendChild(f)})},prepend:function(){return this.domManip(arguments,!0,function(f){1===this.nodeType&&this.insertBefore(f,this.firstChild)})},before:function(){if(this[0]&&
this[0].parentNode)return this.domManip(arguments,!1,function(f){this.parentNode.insertBefore(f,this)});if(arguments.length){var f=j(arguments[0]);f.push.apply(f,this.toArray());return this.pushStack(f,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(f){this.parentNode.insertBefore(f,this.nextSibling)});if(arguments.length){var f=this.pushStack(this,"after",arguments);f.push.apply(f,j(arguments[0]).toArray());return f}},remove:function(f,
c){for(var e=0,h;null!=(h=this[e]);e++)if(!f||j.filter(f,[h]).length)!c&&1===h.nodeType&&(j.cleanData(h.getElementsByTagName("*")),j.cleanData([h])),h.parentNode&&h.parentNode.removeChild(h);return this},empty:function(){for(var f=0,c;null!=(c=this[f]);f++)for(1===c.nodeType&&j.cleanData(c.getElementsByTagName("*"));c.firstChild;)c.removeChild(c.firstChild);return this},clone:function(f,c){f=null==f?!1:f;c=null==c?f:c;return this.map(function(){return j.clone(this,f,c)})},html:function(f){if(f===
m)return this[0]&&1===this[0].nodeType?this[0].innerHTML.replace(Ba,""):null;if("string"===typeof f&&!Ea.test(f)&&(j.support.leadingWhitespace||!qa.test(f))&&!fa[(Ca.exec(f)||["",""])[1].toLowerCase()]){f=f.replace(Aa,"<$1></$2>");try{for(var c=0,e=this.length;c<e;c++)if(1===this[c].nodeType)j.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=f}catch(h){this.empty().append(f)}}else j.isFunction(f)?this.each(function(c){var e=j(this);e.html(f.call(this,c,e.html()))}):this.empty().append(f);
return this},replaceWith:function(f){if(this[0]&&this[0].parentNode){if(j.isFunction(f))return this.each(function(c){var e=j(this),h=e.html();e.replaceWith(f.call(this,c,h))});"string"!==typeof f&&(f=j(f).detach());return this.each(function(){var c=this.nextSibling,e=this.parentNode;j(this).remove();c?j(c).before(f):j(e).append(f)})}return this.length?this.pushStack(j(j.isFunction(f)?f():f),"replaceWith",f):this},detach:function(f){return this.remove(f,!0)},domManip:function(f,c,e){var h,k,g,i=f[0],
l=[];if(!j.support.checkClone&&3===arguments.length&&"string"===typeof i&&ua.test(i))return this.each(function(){j(this).domManip(f,c,e,!0)});if(j.isFunction(i))return this.each(function(h){var k=j(this);f[0]=i.call(this,h,c?k.html():m);k.domManip(f,c,e)});if(this[0]){h=i&&i.parentNode;h=j.support.parentNode&&h&&11===h.nodeType&&h.childNodes.length===this.length?{fragment:h}:j.buildFragment(f,this,l);g=h.fragment;if(k=1===g.childNodes.length?g=g.firstChild:g.firstChild){c=c&&j.nodeName(k,"tr");k=
0;for(var o=this.length,q=o-1;k<o;k++)e.call(c?j.nodeName(this[k],"table")?this[k].getElementsByTagName("tbody")[0]||this[k].appendChild(this[k].ownerDocument.createElement("tbody")):this[k]:this[k],h.cacheable||1<o&&k<q?j.clone(g,!0,!0):g)}l.length&&j.each(l,K)}return this}});j.buildFragment=function(f,c,e){var h,k,g,i,l=f[0];c&&c[0]&&(i=c[0].ownerDocument||c[0]);i.createDocumentFragment||(i=x);if(1===f.length&&"string"===typeof l&&512>l.length&&i===x&&"<"===l.charAt(0)&&!r.test(l)&&(j.support.checkClone||
!ua.test(l))&&!j.support.unknownElems&&na.test(l))k=!0,(g=j.fragments[l])&&1!==g&&(h=g);h||(h=i.createDocumentFragment(),j.clean(f,i,h,e));k&&(j.fragments[l]=g?h:1);return{fragment:h,cacheable:k}};j.fragments={};j.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(f,c){j.fn[f]=function(e){var h=[],e=j(e),k=1===this.length&&this[0].parentNode;if(k&&11===k.nodeType&&1===k.childNodes.length&&1===e.length)return e[c](this[0]),this;
for(var k=0,g=e.length;k<g;k++){var i=(0<k?this.clone(!0):this).get();j(e[k])[c](i);h=h.concat(i)}return this.pushStack(h,f,e.selector)}});j.extend({clone:function(f,c,e){var k=f.cloneNode(!0),g,i,l;if((!j.support.noCloneEvent||!j.support.noCloneChecked)&&(1===f.nodeType||11===f.nodeType)&&!j.isXMLDoc(f)){w(f,k);g=h(f);i=h(k);for(l=0;g[l];++l)i[l]&&w(g[l],i[l])}if(c&&(v(f,k),e)){g=h(f);i=h(k);for(l=0;g[l];++l)v(g[l],i[l])}return k},clean:function(f,c,e,h){c=c||x;"undefined"===typeof c.createElement&&
(c=c.ownerDocument||c[0]&&c[0].ownerDocument||x);for(var k=[],g,i=0,l;null!=(l=f[i]);i++)if("number"===typeof l&&(l+=""),l){if("string"===typeof l)if(Da.test(l)){l=l.replace(Aa,"<$1></$2>");g=(Ca.exec(l)||["",""])[1].toLowerCase();var o=fa[g]||fa._default,m=o[0],u=c.createElement("div");c===x?nb.appendChild(u):q(c).appendChild(u);for(u.innerHTML=o[1]+l+o[2];m--;)u=u.lastChild;if(!j.support.tbody){m=ta.test(l);o="table"===g&&!m?u.firstChild&&u.firstChild.childNodes:"<table>"===o[1]&&!m?u.childNodes:
[];for(g=o.length-1;0<=g;--g)j.nodeName(o[g],"tbody")&&!o[g].childNodes.length&&o[g].parentNode.removeChild(o[g])}!j.support.leadingWhitespace&&qa.test(l)&&u.insertBefore(c.createTextNode(qa.exec(l)[0]),u.firstChild);l=u.childNodes}else l=c.createTextNode(l);var v;if(!j.support.appendChecked)if(l[0]&&"number"===typeof(v=l.length))for(g=0;g<v;g++)z(l[g]);else z(l);l.nodeType?k.push(l):k=j.merge(k,l)}if(e){f=function(f){return!f.type||ya.test(f.type)};for(i=0;k[i];i++)h&&j.nodeName(k[i],"script")&&
(!k[i].type||"text/javascript"===k[i].type.toLowerCase())?h.push(k[i].parentNode?k[i].parentNode.removeChild(k[i]):k[i]):(1===k[i].nodeType&&(c=j.grep(k[i].getElementsByTagName("script"),f),k.splice.apply(k,[i+1,0].concat(c))),e.appendChild(k[i]))}return k},cleanData:function(f){for(var c,e,h=j.cache,k=j.event.special,g=j.support.deleteExpando,i=0,l;null!=(l=f[i]);i++)if(!l.nodeName||!j.noData[l.nodeName.toLowerCase()])if(e=l[j.expando]){if((c=h[e])&&c.events){for(var o in c.events)k[o]?j.event.remove(l,
o):j.removeEvent(l,o,c.handle);if(c.handle)c.handle.elem=null}g?delete l[j.expando]:l.removeAttribute&&l.removeAttribute(j.expando);delete h[e]}}});var Wa=/alpha\([^)]*\)/i,ob=/opacity=([^)]*)/,pb=/([A-Z]|^ms)/g,$a=/^-?\d+(?:px)?$/i,qb=/^-?\d/,rb=/^([\-+])=([\-+.\de]+)/,sb={position:"absolute",visibility:"hidden",display:"block"},jb=["Left","Right"],kb=["Top","Bottom"],Ha,ab,bb;j.fn.css=function(f,c){return 2===arguments.length&&c===m?this:j.access(this,f,c,!0,function(f,c,e){return e!==m?j.style(f,
c,e):j.css(f,c)})};j.extend({cssHooks:{opacity:{get:function(f,c){if(c){var e=Ha(f,"opacity","opacity");return""===e?"1":e}return f.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":j.support.cssFloat?"cssFloat":"styleFloat"},style:function(f,c,e,h){if(f&&!(3===f.nodeType||8===f.nodeType||!f.style)){var k,g=j.camelCase(c),i=f.style,l=j.cssHooks[g],c=j.cssProps[g]||g;if(e!==m){h=typeof e;if("string"===h&&(k=rb.exec(e)))e=
+(k[1]+1)*+k[2]+parseFloat(j.css(f,c)),h="number";if(!(null==e||"number"===h&&isNaN(e)))if("number"===h&&!j.cssNumber[g]&&(e+="px"),!l||!("set"in l)||(e=l.set(f,e))!==m)try{i[c]=e}catch(o){}}else return l&&"get"in l&&(k=l.get(f,!1,h))!==m?k:i[c]}},css:function(f,c,e){var h,k,c=j.camelCase(c);k=j.cssHooks[c];c=j.cssProps[c]||c;"cssFloat"===c&&(c="float");if(k&&"get"in k&&(h=k.get(f,!0,e))!==m)return h;if(Ha)return Ha(f,c)},swap:function(f,c,e){var h={},j;for(j in c)h[j]=f.style[j],f.style[j]=c[j];
e.call(f);for(j in c)f.style[j]=h[j]}});j.curCSS=j.css;j.each(["height","width"],function(f,c){j.cssHooks[c]={get:function(f,e,h){var k;if(e){if(0!==f.offsetWidth)return u(f,c,h);j.swap(f,sb,function(){k=u(f,c,h)});return k}},set:function(f,c){if($a.test(c)){if(c=parseFloat(c),0<=c)return c+"px"}else return c}}});if(!j.support.opacity)j.cssHooks.opacity={get:function(f,c){return ob.test((c&&f.currentStyle?f.currentStyle.filter:f.style.filter)||"")?parseFloat(RegExp.$1)/100+"":c?"1":""},set:function(f,
c){var e=f.style,h=f.currentStyle,k=j.isNumeric(c)?"alpha(opacity="+100*c+")":"",g=h&&h.filter||e.filter||"";e.zoom=1;if(1<=c&&""===j.trim(g.replace(Wa,""))&&(e.removeAttribute("filter"),h&&!h.filter))return;e.filter=Wa.test(g)?g.replace(Wa,k):g+" "+k}};j(function(){if(!j.support.reliableMarginRight)j.cssHooks.marginRight={get:function(f,c){var e;j.swap(f,{display:"inline-block"},function(){e=c?Ha(f,"margin-right","marginRight"):f.style.marginRight});return e}}});x.defaultView&&x.defaultView.getComputedStyle&&
(ab=function(f,c){var e,h,c=c.replace(pb,"-$1").toLowerCase();if(!(h=f.ownerDocument.defaultView))return m;if(h=h.getComputedStyle(f,null))e=h.getPropertyValue(c),""===e&&!j.contains(f.ownerDocument.documentElement,f)&&(e=j.style(f,c));return e});x.documentElement.currentStyle&&(bb=function(f,c){var e,h,j=f.currentStyle&&f.currentStyle[c],k=f.style;if(null===j&&k&&(e=k[c]))j=e;if(!$a.test(j)&&qb.test(j)){e=k.left;if(h=f.runtimeStyle&&f.runtimeStyle.left)f.runtimeStyle.left=f.currentStyle.left;k.left=
"fontSize"===c?"1em":j||0;j=k.pixelLeft+"px";k.left=e;if(h)f.runtimeStyle.left=h}return""===j?"auto":j});Ha=ab||bb;if(j.expr&&j.expr.filters)j.expr.filters.hidden=function(f){var c=f.offsetHeight;return 0===f.offsetWidth&&0===c||!j.support.reliableHiddenOffsets&&"none"===(f.style&&f.style.display||j.css(f,"display"))},j.expr.filters.visible=function(f){return!j.expr.filters.hidden(f)};var tb=/%20/g,lb=/\[\]$/,cb=/\r?\n/g,ub=/#.*$/,vb=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,wb=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
xb=/^(?:GET|HEAD)$/,yb=/^\/\//,db=/\?/,zb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Ab=/^(?:select|textarea)/i,Ya=/\s+/,Bb=/([?&])_=[^&]*/,eb=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,fb=j.fn.load,Sa={},gb={},Fa,Ga,hb=["*/"]+["*"];try{Fa=sa.href}catch(Hb){Fa=x.createElement("a"),Fa.href="",Fa=Fa.href}Ga=eb.exec(Fa.toLowerCase())||[];j.fn.extend({load:function(f,c,e){if("string"!==typeof f&&fb)return fb.apply(this,arguments);if(!this.length)return this;var h=f.indexOf(" ");if(0<=
h)var k=f.slice(h,f.length),f=f.slice(0,h);h="GET";c&&(j.isFunction(c)?(e=c,c=m):"object"===typeof c&&(c=j.param(c,j.ajaxSettings.traditional),h="POST"));var g=this;j.ajax({url:f,type:h,dataType:"html",data:c,complete:function(f,c,h){h=f.responseText;f.isResolved()&&(f.done(function(f){h=f}),g.html(k?j("<div>").append(h.replace(zb,"")).find(k):h));e&&g.each(e,[h,c,f])}});return this},serialize:function(){return j.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?
j.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Ab.test(this.nodeName)||wb.test(this.type))}).map(function(f,c){var e=j(this).val();return null==e?null:j.isArray(e)?j.map(e,function(f){return{name:c.name,value:f.replace(cb,"\r\n")}}):{name:c.name,value:e.replace(cb,"\r\n")}}).get()}});j.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(f,c){j.fn[c]=function(f){return this.bind(c,f)}});j.each(["get","post"],
function(f,c){j[c]=function(f,e,h,k){j.isFunction(e)&&(k=k||h,h=e,e=m);return j.ajax({type:c,url:f,data:e,success:h,dataType:k})}});j.extend({getScript:function(f,c){return j.get(f,m,c,"script")},getJSON:function(f,c,e){return j.get(f,c,e,"json")},ajaxSetup:function(f,c){c?J(f,j.ajaxSettings):(c=f,f=j.ajaxSettings);J(f,c);return f},ajaxSettings:{url:Fa,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(Ga[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",
processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":hb},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":j.parseJSON,"text xml":j.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:D(Sa),ajaxTransport:D(gb),ajax:function(f,c){function e(f,c,n,u){if(2!==na){na=2;s&&clearTimeout(s);D=m;w=u||"";z.readyState=
0<f?4:0;var v,t,r,u=c;if(n){var A=h,F=z,O=A.contents,x=A.dataTypes,J=A.responseFields,B,R,ua,C;for(R in J)R in n&&(F[J[R]]=n[R]);for(;"*"===x[0];)x.shift(),B===m&&(B=A.mimeType||F.getResponseHeader("content-type"));if(B)for(R in O)if(O[R]&&O[R].test(B)){x.unshift(R);break}if(x[0]in n)ua=x[0];else{for(R in n){if(!x[0]||A.converters[R+" "+x[0]]){ua=R;break}C||(C=R)}ua=ua||C}ua?(ua!==x[0]&&x.unshift(ua),n=n[ua]):n=void 0}else n=m;if(200<=f&&300>f||304===f){if(h.ifModified){if(B=z.getResponseHeader("Last-Modified"))j.lastModified[q]=
B;if(B=z.getResponseHeader("Etag"))j.etag[q]=B}if(304===f)u="notmodified",v=!0;else try{B=h;B.dataFilter&&(n=B.dataFilter(n,B.dataType));var K=B.dataTypes;R={};var I,fa,S=K.length,H,ya=K[0],L,La,E,G,pa;for(I=1;I<S;I++){if(1===I)for(fa in B.converters)"string"===typeof fa&&(R[fa.toLowerCase()]=B.converters[fa]);L=ya;ya=K[I];if("*"===ya)ya=L;else if("*"!==L&&L!==ya){La=L+" "+ya;E=R[La]||R["* "+ya];if(!E)for(G in pa=m,R)if(H=G.split(" "),H[0]===L||"*"===H[0])if(pa=R[H[1]+" "+ya]){G=R[G];!0===G?E=pa:
!0===pa&&(E=G);break}!E&&!pa&&j.error("No conversion from "+La.replace(" "," to "));!0!==E&&(n=E?E(n):pa(G(n)))}}t=n;u="success";v=!0}catch(aa){u="parsererror",r=aa}}else if(r=u,!u||f)u="error",0>f&&(f=0);z.status=f;z.statusText=""+(c||u);v?i.resolveWith(k,[t,u,z]):i.rejectWith(k,[z,u,r]);z.statusCode(o);o=m;y&&g.trigger("ajax"+(v?"Success":"Error"),[z,h,v?t:r]);l.fireWith(k,[z,u]);y&&(g.trigger("ajaxComplete",[z,h]),--j.active||j.event.trigger("ajaxStop"))}}"object"===typeof f&&(c=f,f=m);var c=c||
{},h=j.ajaxSetup({},c),k=h.context||h,g=k!==h&&(k.nodeType||k instanceof j)?j(k):j.event,i=j.Deferred(),l=j.Callbacks("once memory"),o=h.statusCode||{},q,u={},v={},w,t,D,s,r,na=0,y,O,z={readyState:0,setRequestHeader:function(f,c){if(!na){var e=f.toLowerCase(),f=v[e]=v[e]||f;u[f]=c}return this},getAllResponseHeaders:function(){return 2===na?w:null},getResponseHeader:function(f){var c;if(2===na){if(!t)for(t={};c=vb.exec(w);)t[c[1].toLowerCase()]=c[2];c=t[f.toLowerCase()]}return c===m?null:c},overrideMimeType:function(f){if(!na)h.mimeType=
f;return this},abort:function(f){f=f||"abort";D&&D.abort(f);e(0,f);return this}};i.promise(z);z.success=z.done;z.error=z.fail;z.complete=l.add;z.statusCode=function(f){if(f){var c;if(2>na)for(c in f)o[c]=[o[c],f[c]];else c=f[z.status],z.then(c,c)}return this};h.url=((f||h.url)+"").replace(ub,"").replace(yb,Ga[1]+"//");h.dataTypes=j.trim(h.dataType||"*").toLowerCase().split(Ya);if(null==h.crossDomain)r=eb.exec(h.url.toLowerCase()),h.crossDomain=!(!r||!(r[1]!=Ga[1]||r[2]!=Ga[2]||(r[3]||("http:"===r[1]?
80:443))!=(Ga[3]||("http:"===Ga[1]?80:443))));if(h.data&&h.processData&&"string"!==typeof h.data)h.data=j.param(h.data,h.traditional);A(Sa,h,c,z);if(2===na)return!1;y=h.global;h.type=h.type.toUpperCase();h.hasContent=!xb.test(h.type);y&&0===j.active++&&j.event.trigger("ajaxStart");if(!h.hasContent&&(h.data&&(h.url+=(db.test(h.url)?"&":"?")+h.data,delete h.data),q=h.url,!1===h.cache)){r=j.now();var x=h.url.replace(Bb,"$1_="+r);h.url=x+(x===h.url?(db.test(h.url)?"&":"?")+"_="+r:"")}(h.data&&h.hasContent&&
!1!==h.contentType||c.contentType)&&z.setRequestHeader("Content-Type",h.contentType);h.ifModified&&(q=q||h.url,j.lastModified[q]&&z.setRequestHeader("If-Modified-Since",j.lastModified[q]),j.etag[q]&&z.setRequestHeader("If-None-Match",j.etag[q]));z.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+hb+"; q=0.01":""):h.accepts["*"]);for(O in h.headers)z.setRequestHeader(O,h.headers[O]);if(h.beforeSend&&(!1===h.beforeSend.call(k,z,
h)||2===na))return z.abort(),!1;for(O in{success:1,error:1,complete:1})z[O](h[O]);if(D=A(gb,h,c,z)){z.readyState=1;y&&g.trigger("ajaxSend",[z,h]);h.async&&0<h.timeout&&(s=setTimeout(function(){z.abort("timeout")},h.timeout));try{na=1,D.send(u,e)}catch(J){2>na?e(-1,J):j.error(J)}}else e(-1,"No Transport");return z},param:function(f,c){var e=[],h=function(f,c){c=j.isFunction(c)?c():c;e[e.length]=encodeURIComponent(f)+"="+encodeURIComponent(c)};if(c===m)c=j.ajaxSettings.traditional;if(j.isArray(f)||
f.jquery&&!j.isPlainObject(f))j.each(f,function(){h(this.name,this.value)});else for(var k in f)B(k,f[k],c,h);return e.join("&").replace(tb,"+")}});j.extend({active:0,lastModified:{},etag:{}});var Cb=j.now(),Pa=/(\=)\?(&|$)|\?\?/i;j.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return j.expando+"_"+Cb++}});j.ajaxPrefilter("json jsonp",function(f,c,h){c="application/x-www-form-urlencoded"===f.contentType&&"string"===typeof f.data;if("jsonp"===f.dataTypes[0]||!1!==f.jsonp&&(Pa.test(f.url)||c&&
Pa.test(f.data))){var k,g=f.jsonpCallback=j.isFunction(f.jsonpCallback)?f.jsonpCallback():f.jsonpCallback,i=e[g],l=f.url,o=f.data,q="$1"+g+"$2";!1!==f.jsonp&&(l=l.replace(Pa,q),f.url===l&&(c&&(o=o.replace(Pa,q)),f.data===o&&(l+=(/\?/.test(l)?"&":"?")+f.jsonp+"="+g)));f.url=l;f.data=o;e[g]=function(f){k=[f]};h.always(function(){e[g]=i;if(k&&j.isFunction(i))e[g](k[0])});f.converters["script json"]=function(){k||j.error(g+" was not called");return k[0]};f.dataTypes[0]="json";return"script"}});j.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},
contents:{script:/javascript|ecmascript/},converters:{"text script":function(f){j.globalEval(f);return f}}});j.ajaxPrefilter("script",function(f){if(f.cache===m)f.cache=!1;if(f.crossDomain)f.type="GET",f.global=!1});j.ajaxTransport("script",function(f){if(f.crossDomain){var c,e=x.head||x.getElementsByTagName("head")[0]||x.documentElement;return{send:function(h,j){c=x.createElement("script");c.async="async";if(f.scriptCharset)c.charset=f.scriptCharset;c.src=f.url;c.onload=c.onreadystatechange=function(f,
h){if(h||!c.readyState||/loaded|complete/.test(c.readyState))c.onload=c.onreadystatechange=null,e&&c.parentNode&&e.removeChild(c),c=m,h||j(200,"success")};e.insertBefore(c,e.firstChild)},abort:function(){if(c)c.onload(0,1)}}}});var Xa=e.ActiveXObject?function(){for(var f in Ka)Ka[f](0,1)}:!1,Db=0,Ka;j.ajaxSettings.xhr=e.ActiveXObject?function(){var f;if(!(f=!this.isLocal&&I()))a:{try{f=new e.ActiveXObject("Microsoft.XMLHTTP");break a}catch(c){}f=void 0}return f}:I;(function(f){j.extend(j.support,
{ajax:!!f,cors:!!f&&"withCredentials"in f})})(j.ajaxSettings.xhr());j.support.ajax&&j.ajaxTransport(function(f){if(!f.crossDomain||j.support.cors){var c;return{send:function(h,k){var g=f.xhr(),i,l;f.username?g.open(f.type,f.url,f.async,f.username,f.password):g.open(f.type,f.url,f.async);if(f.xhrFields)for(l in f.xhrFields)g[l]=f.xhrFields[l];f.mimeType&&g.overrideMimeType&&g.overrideMimeType(f.mimeType);!f.crossDomain&&!h["X-Requested-With"]&&(h["X-Requested-With"]="XMLHttpRequest");try{for(l in h)g.setRequestHeader(l,
h[l])}catch(o){}g.send(f.hasContent&&f.data||null);c=function(e,h){var l,o,q,u,v;try{if(c&&(h||4===g.readyState)){c=m;if(i)g.onreadystatechange=j.noop,Xa&&delete Ka[i];if(h)4!==g.readyState&&g.abort();else{l=g.status;q=g.getAllResponseHeaders();u={};if((v=g.responseXML)&&v.documentElement)u.xml=v;u.text=g.responseText;try{o=g.statusText}catch(w){o=""}!l&&f.isLocal&&!f.crossDomain?l=u.text?200:404:1223===l&&(l=204)}}}catch(t){h||k(-1,t)}u&&k(l,o,u,q)};!f.async||4===g.readyState?c():(i=++Db,Xa&&(Ka||
(Ka={},j(e).unload(Xa)),Ka[i]=c),g.onreadystatechange=c)},abort:function(){c&&c(0,1)}}}});var Ta={},va,Ia,Eb=/^(?:toggle|show|hide)$/,Fb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Qa,Za=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],Na;j.fn.extend({show:function(f,c,e){if(f||0===f)return this.animate(M("show",3),f,c,e);for(var e=0,h=this.length;e<h;e++)if(f=this[e],f.style){c=f.style.display;if(!j._data(f,
"olddisplay")&&"none"===c)c=f.style.display="";""===c&&"none"===j.css(f,"display")&&j._data(f,"olddisplay",Y(f.nodeName))}for(e=0;e<h;e++)if(f=this[e],f.style&&(c=f.style.display,""===c||"none"===c))f.style.display=j._data(f,"olddisplay")||"";return this},hide:function(f,c,e){if(f||0===f)return this.animate(M("hide",3),f,c,e);for(var e=0,h=this.length;e<h;e++)f=this[e],f.style&&(c=j.css(f,"display"),"none"!==c&&!j._data(f,"olddisplay")&&j._data(f,"olddisplay",c));for(e=0;e<h;e++)if(this[e].style)this[e].style.display=
"none";return this},_toggle:j.fn.toggle,toggle:function(f,c,e){var h="boolean"===typeof f;j.isFunction(f)&&j.isFunction(c)?this._toggle.apply(this,arguments):null==f||h?this.each(function(){var c=h?f:j(this).is(":hidden");j(this)[c?"show":"hide"]()}):this.animate(M("toggle",3),f,c,e);return this},fadeTo:function(f,c,e,h){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:c},f,e,h)},animate:function(f,c,e,h){function k(){var F;!1===g.queue&&j._mark(this);var c=j.extend({},
g),e=1===this.nodeType,h=e&&j(this).is(":hidden"),i,l,n,o,q;c.animatedProperties={};for(n in f){i=j.camelCase(n);n!==i&&(f[i]=f[n],delete f[n]);l=f[i];j.isArray(l)?(c.animatedProperties[i]=l[1],F=f[i]=l[0],l=F):c.animatedProperties[i]=c.specialEasing&&c.specialEasing[i]||c.easing||"swing";if("hide"===l&&h||"show"===l&&!h)return c.complete.call(this);if(e&&("height"===i||"width"===i))if(c.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],"inline"===j.css(this,"display")&&"none"===
j.css(this,"float"))!j.support.inlineBlockNeedsLayout||"inline"===Y(this.nodeName)?this.style.display="inline-block":this.style.zoom=1}if(null!=c.overflow)this.style.overflow="hidden";for(n in f)if(e=new j.fx(this,c,n),l=f[n],Eb.test(l))if(i=j._data(this,"toggle"+n)||("toggle"===l?h?"show":"hide":0))j._data(this,"toggle"+n,"show"===i?"hide":"show"),e[i]();else e[l]();else i=Fb.exec(l),o=e.cur(),i?(l=parseFloat(i[2]),q=i[3]||(j.cssNumber[n]?"":"px"),"px"!==q&&(j.style(this,n,(l||1)+q),o*=(l||1)/e.cur(),
j.style(this,n,o+q)),i[1]&&(l=("-="===i[1]?-1:1)*l+o),e.custom(o,l,q)):e.custom(o,l,"");return!0}var g=j.speed(c,e,h);if(j.isEmptyObject(f))return this.each(g.complete,[!1]);f=j.extend({},f);return!1===g.queue?this.each(k):this.queue(g.queue,k)},stop:function(f,c,e){"string"!==typeof f&&(e=c,c=f,f=m);c&&!1!==f&&this.queue(f||"fx",[]);return this.each(function(){var c,h=!1,k=j.timers,g=j._data(this);e||j._unmark(!0,this);if(null==f)for(c in g){if(g[c].stop&&c.indexOf(".run")===c.length-4){var i=g[c];
j.removeData(this,c,!0);i.stop(e)}}else if(g[c=f+".run"]&&g[c].stop)g=g[c],j.removeData(this,c,!0),g.stop(e);for(c=k.length;c--;)if(k[c].elem===this&&(null==f||k[c].queue===f)){if(e)k[c](!0);else k[c].saveState();h=!0;k.splice(c,1)}(!e||!h)&&j.dequeue(this,f)})}});j.each({slideDown:M("show",1),slideUp:M("hide",1),slideToggle:M("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(f,c){j.fn[f]=function(f,e,h){return this.animate(c,f,e,h)}});j.extend({speed:function(f,
c,e){var h=f&&"object"===typeof f?j.extend({},f):{complete:e||!e&&c||j.isFunction(f)&&f,duration:f,easing:e&&c||c&&!j.isFunction(c)&&c};h.duration=j.fx.off?0:"number"===typeof h.duration?h.duration:h.duration in j.fx.speeds?j.fx.speeds[h.duration]:j.fx.speeds._default;if(null==h.queue||!0===h.queue)h.queue="fx";h.old=h.complete;h.complete=function(f){j.isFunction(h.old)&&h.old.call(this);h.queue?j.dequeue(this,h.queue):!1!==f&&j._unmark(this)};return h},easing:{linear:function(f,c,e,h){return e+h*
f},swing:function(f,c,e,h){return(-Math.cos(f*Math.PI)/2+0.5)*h+e}},timers:[],fx:function(f,c,e){this.options=c;this.elem=f;this.prop=e;c.orig=c.orig||{}}});j.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(j.fx.step[this.prop]||j.fx.step._default)(this)},cur:function(){if(null!=this.elem[this.prop]&&(!this.elem.style||null==this.elem.style[this.prop]))return this.elem[this.prop];var f,c=j.css(this.elem,this.prop);return isNaN(f=parseFloat(c))?!c||
"auto"===c?0:c:f},custom:function(f,c,e){function h(f){return k.step(f)}var k=this,g=j.fx;this.startTime=Na||V();this.end=c;this.now=this.start=f;this.pos=this.state=0;this.unit=e||this.unit||(j.cssNumber[this.prop]?"":"px");h.queue=this.options.queue;h.elem=this.elem;h.saveState=function(){k.options.hide&&j._data(k.elem,"fxshow"+k.prop)===m&&j._data(k.elem,"fxshow"+k.prop,k.start)};h()&&j.timers.push(h)&&!Qa&&(Qa=setInterval(g.tick,g.interval))},show:function(){var f=j._data(this.elem,"fxshow"+this.prop);
this.options.orig[this.prop]=f||j.style(this.elem,this.prop);this.options.show=!0;f!==m?this.custom(this.cur(),f):this.custom("width"===this.prop||"height"===this.prop?1:0,this.cur());j(this.elem).show()},hide:function(){this.options.orig[this.prop]=j._data(this.elem,"fxshow"+this.prop)||j.style(this.elem,this.prop);this.options.hide=!0;this.custom(this.cur(),0)},step:function(f){var c,e=Na||V(),h=!0,k=this.elem,g=this.options;if(f||e>=g.duration+this.startTime){this.now=this.end;this.pos=this.state=
1;this.update();g.animatedProperties[this.prop]=!0;for(c in g.animatedProperties)!0!==g.animatedProperties[c]&&(h=!1);if(h){null!=g.overflow&&!j.support.shrinkWrapBlocks&&j.each(["","X","Y"],function(c,f){k.style["overflow"+f]=g.overflow[c]});g.hide&&j(k).hide();if(g.hide||g.show)for(c in g.animatedProperties)j.style(k,c,g.orig[c]),j.removeData(k,"fxshow"+c,!0),j.removeData(k,"toggle"+c,!0);if(f=g.complete)g.complete=!1,f.call(k)}return!1}Infinity==g.duration?this.now=e:(f=e-this.startTime,this.state=
f/g.duration,this.pos=j.easing[g.animatedProperties[this.prop]](this.state,f,0,1,g.duration),this.now=this.start+(this.end-this.start)*this.pos);this.update();return!0}};j.extend(j.fx,{tick:function(){for(var c,e=j.timers,h=0;h<e.length;h++)c=e[h],!c()&&e[h]===c&&e.splice(h--,1);e.length||j.fx.stop()},interval:13,stop:function(){clearInterval(Qa);Qa=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){j.style(c.elem,"opacity",c.now)},_default:function(c){c.elem.style&&null!=c.elem.style[c.prop]?
c.elem.style[c.prop]=c.now+c.unit:c.elem[c.prop]=c.now}}});j.each(["width","height"],function(c,e){j.fx.step[e]=function(c){j.style(c.elem,e,Math.max(0,c.now))}});if(j.expr&&j.expr.filters)j.expr.filters.animated=function(c){return j.grep(j.timers,function(e){return c===e.elem}).length};var Gb=/^t(?:able|d|h)$/i,ib=/^(?:body|html)$/i;j.fn.offset="getBoundingClientRect"in x.documentElement?function(c){var e=this[0],h;if(c)return this.each(function(e){j.offset.setOffset(this,c,e)});if(!e||!e.ownerDocument)return null;
if(e===e.ownerDocument.body)return j.offset.bodyOffset(e);try{h=e.getBoundingClientRect()}catch(k){}var g=e.ownerDocument,i=g.documentElement;if(!h||!j.contains(i,e))return h?{top:h.top,left:h.left}:{top:0,left:0};e=g.body;g=aa(g);return{top:h.top+(g.pageYOffset||j.support.boxModel&&i.scrollTop||e.scrollTop)-(i.clientTop||e.clientTop||0),left:h.left+(g.pageXOffset||j.support.boxModel&&i.scrollLeft||e.scrollLeft)-(i.clientLeft||e.clientLeft||0)}}:function(c){var e=this[0];if(c)return this.each(function(e){j.offset.setOffset(this,
c,e)});if(!e||!e.ownerDocument)return null;if(e===e.ownerDocument.body)return j.offset.bodyOffset(e);var h,k=e.offsetParent,g=e.ownerDocument,i=g.documentElement,l=g.body;h=(g=g.defaultView)?g.getComputedStyle(e,null):e.currentStyle;for(var o=e.offsetTop,q=e.offsetLeft;(e=e.parentNode)&&e!==l&&e!==i&&!(j.support.fixedPosition&&"fixed"===h.position);){h=g?g.getComputedStyle(e,null):e.currentStyle;o-=e.scrollTop;q-=e.scrollLeft;if(e===k){o+=e.offsetTop;q+=e.offsetLeft;if(j.support.doesNotAddBorder&&
(!j.support.doesAddBorderForTableAndCells||!Gb.test(e.nodeName)))o+=parseFloat(h.borderTopWidth)||0,q+=parseFloat(h.borderLeftWidth)||0;k=e.offsetParent}j.support.subtractsBorderForOverflowNotVisible&&"visible"!==h.overflow&&(o+=parseFloat(h.borderTopWidth)||0,q+=parseFloat(h.borderLeftWidth)||0)}if("relative"===h.position||"static"===h.position)o+=l.offsetTop,q+=l.offsetLeft;j.support.fixedPosition&&"fixed"===h.position&&(o+=Math.max(i.scrollTop,l.scrollTop),q+=Math.max(i.scrollLeft,l.scrollLeft));
return{top:o,left:q}};j.offset={bodyOffset:function(c){var e=c.offsetTop,h=c.offsetLeft;j.support.doesNotIncludeMarginInBodyOffset&&(e+=parseFloat(j.css(c,"marginTop"))||0,h+=parseFloat(j.css(c,"marginLeft"))||0);return{top:e,left:h}},setOffset:function(c,e,h){var k=j.css(c,"position");if("static"===k)c.style.position="relative";var g=j(c),i=g.offset(),l=j.css(c,"top"),o=j.css(c,"left"),q={},u={};("absolute"===k||"fixed"===k)&&-1<j.inArray("auto",[l,o])?(u=g.position(),k=u.top,o=u.left):(k=parseFloat(l)||
0,o=parseFloat(o)||0);j.isFunction(e)&&(e=e.call(c,h,i));if(null!=e.top)q.top=e.top-i.top+k;if(null!=e.left)q.left=e.left-i.left+o;"using"in e?e.using.call(c,q):g.css(q)}};j.fn.extend({position:function(){if(!this[0])return null;var c=this[0],e=this.offsetParent(),h=this.offset(),k=ib.test(e[0].nodeName)?{top:0,left:0}:e.offset();h.top-=parseFloat(j.css(c,"marginTop"))||0;h.left-=parseFloat(j.css(c,"marginLeft"))||0;k.top+=parseFloat(j.css(e[0],"borderTopWidth"))||0;k.left+=parseFloat(j.css(e[0],
"borderLeftWidth"))||0;return{top:h.top-k.top,left:h.left-k.left}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||x.body;c&&!ib.test(c.nodeName)&&"static"===j.css(c,"position");)c=c.offsetParent;return c})}});j.each(["Left","Top"],function(c,e){var h="scroll"+e;j.fn[h]=function(e){var k,g;if(e===m){k=this[0];return!k?null:(g=aa(k))?"pageXOffset"in g?g[c?"pageYOffset":"pageXOffset"]:j.support.boxModel&&g.document.documentElement[h]||g.document.body[h]:k[h]}return this.each(function(){(g=
aa(this))?g.scrollTo(!c?e:j(g).scrollLeft(),c?e:j(g).scrollTop()):this[h]=e})}});j.each(["Height","Width"],function(c,e){var h=e.toLowerCase();j.fn["inner"+e]=function(){var c=this[0];return c?c.style?parseFloat(j.css(c,h,"padding")):this[h]():null};j.fn["outer"+e]=function(c){var f=this[0];return f?f.style?parseFloat(j.css(f,h,c?"margin":"border")):this[h]():null};j.fn[h]=function(c){var f=this[0];if(!f)return null==c?null:this;if(j.isFunction(c))return this.each(function(f){var e=j(this);e[h](c.call(this,
f,e[h]()))});if(j.isWindow(f)){var k=f.document.documentElement["client"+e],g=f.document.body;return"CSS1Compat"===f.document.compatMode&&k||g&&g["client"+e]||k}if(9===f.nodeType)return Math.max(f.documentElement["client"+e],f.body["scroll"+e],f.documentElement["scroll"+e],f.body["offset"+e],f.documentElement["offset"+e]);return c===m?(f=j.css(f,h),k=parseFloat(f),j.isNumeric(k)?k:f):this.css(h,"string"===typeof c?c:c+"px")}});e.jQuery=e.$=j})(window);(function(e,m){function i(i,l){var m=i.nodeName.toLowerCase();if("area"===m){l=i.parentNode;m=l.name;if(!i.href||!m||"map"!==l.nodeName.toLowerCase())return!1;i=e("img[usemap=#"+m+"]")[0];return!!i&&g(i)}return(/input|select|textarea|button|object/.test(m)?!i.disabled:"a"==m?i.href||l:l)&&g(i)}function g(g){return!e(g).parents().andSelf().filter(function(){return"hidden"===e.curCSS(this,"visibility")||e.expr.filters.hidden(this)}).length}e.ui=e.ui||{};e.ui.version||(e.extend(e.ui,{version:"1.8.16",
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}}),e.fn.extend({propAttr:e.fn.prop||e.fn.attr,_focus:e.fn.focus,focus:function(g,i){return"number"===typeof g?this.each(function(){var m=
this;setTimeout(function(){e(m).focus();i&&i.call(m)},g)}):this._focus.apply(this,arguments)},scrollParent:function(){var g;g=e.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.curCSS(this,"position",1))&&/(auto|scroll)/.test(e.curCSS(this,"overflow",1)+e.curCSS(this,"overflow-y",1)+e.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(e.curCSS(this,
"overflow",1)+e.curCSS(this,"overflow-y",1)+e.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!g.length?e(document):g},zIndex:function(g){if(g!==m)return this.css("zIndex",g);if(this.length)for(var g=e(this[0]),i;g.length&&g[0]!==document;){i=g.css("position");if("absolute"===i||"relative"===i||"fixed"===i)if(i=parseInt(g.css("zIndex"),10),!isNaN(i)&&0!==i)return i;g=g.parent()}return 0},disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":
"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),e.each(["Width","Height"],function(g,i){function t(k,g,h,i){e.each(c,function(){g-=parseFloat(e.curCSS(k,"padding"+this,!0))||0;h&&(g-=parseFloat(e.curCSS(k,"border"+this+"Width",!0))||0);i&&(g-=parseFloat(e.curCSS(k,"margin"+this,!0))||0)});return g}var c="Width"===i?["Left","Right"]:["Top","Bottom"],k=i.toLowerCase(),q={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,
outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+i]=function(c){return c===m?q["inner"+i].call(this):this.each(function(){e(this).css(k,t(this,c)+"px")})};e.fn["outer"+i]=function(c,g){return"number"!==typeof c?q["outer"+i].call(this,c):this.each(function(){e(this).css(k,t(this,c,!0,g)+"px")})}}),e.extend(e.expr[":"],{data:function(g,i,m){return!!e.data(g,m[3])},focusable:function(g){return i(g,!isNaN(e.attr(g,"tabindex")))},tabbable:function(g){var l=e.attr(g,"tabindex"),m=isNaN(l);
return(m||0<=l)&&i(g,!m)}}),e(function(){var g=document.body,i=g.appendChild(i=document.createElement("div"));e.extend(i.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});e.support.minHeight=100===i.offsetHeight;e.support.selectstart="onselectstart"in i;g.removeChild(i).style.display="none"}),e.extend(e.ui,{plugin:{add:function(g,i,m){var g=e.ui[g].prototype,c;for(c in m)g.plugins[c]=g.plugins[c]||[],g.plugins[c].push([i,m[c]])},call:function(e,g,i){if((g=e.plugins[g])&&e.element[0].parentNode)for(var c=
0;c<g.length;c++)e.options[g[c][0]]&&g[c][1].apply(e.element,i)}},contains:function(e,g){return document.compareDocumentPosition?e.compareDocumentPosition(g)&16:e!==g&&e.contains(g)},hasScroll:function(g,i){if("hidden"===e(g).css("overflow"))return!1;var i=i&&"left"===i?"scrollLeft":"scrollTop",m=!1;if(0<g[i])return!0;g[i]=1;m=0<g[i];g[i]=0;return m},isOverAxis:function(e,g,i){return e>g&&e<g+i},isOver:function(g,i,m,c,k,q){return e.ui.isOverAxis(g,m,k)&&e.ui.isOverAxis(i,c,q)}}))})(jQuery);
(function(e,m){if(e.cleanData){var i=e.cleanData;e.cleanData=function(g){for(var l=0,m;null!=(m=g[l]);l++)try{e(m).triggerHandler("remove")}catch(c){}i(g)}}else{var g=e.fn.remove;e.fn.remove=function(i,l){return this.each(function(){l||(!i||e.filter(i,[this]).length)&&e("*",this).add([this]).each(function(){try{e(this).triggerHandler("remove")}catch(g){}});return g.call(e(this),i,l)})}}e.widget=function(g,i,m){var c=g.split(".")[0],k,g=g.split(".")[1];k=c+"-"+g;if(!m)m=i,i=e.Widget;e.expr[":"][k]=
function(c){return!!e.data(c,g)};e[c]=e[c]||{};e[c][g]=function(c,e){arguments.length&&this._createWidget(c,e)};i=new i;i.options=e.extend(!0,{},i.options);e[c][g].prototype=e.extend(!0,i,{namespace:c,widgetName:g,widgetEventPrefix:e[c][g].prototype.widgetEventPrefix||g,widgetBaseClass:k},m);e.widget.bridge(g,e[c][g])};e.widget.bridge=function(g,i){e.fn[g]=function(t){var c="string"===typeof t,k=Array.prototype.slice.call(arguments,1),q=this,t=!c&&k.length?e.extend.apply(null,[!0,t].concat(k)):t;
if(c&&"_"===t.charAt(0))return q;c?this.each(function(){var c=e.data(this,g),i=c&&e.isFunction(c[t])?c[t].apply(c,k):c;if(i!==c&&i!==m)return q=i,!1}):this.each(function(){var c=e.data(this,g);c?c.option(t||{})._init():e.data(this,g,new i(t,this))});return q}};e.Widget=function(e,g){arguments.length&&this._createWidget(e,g)};e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function(g,i){e.data(i,this.widgetName,this);this.element=e(i);this.options=e.extend(!0,
{},this.options,this._getCreateOptions(),g);var m=this;this.element.bind("remove."+this.widgetName,function(){m.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return e.metadata&&e.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,i){var t=g;if(0===arguments.length)return e.extend({},this.options);if("string"===typeof g){if(i===m)return this.options[g];t={};t[g]=i}this._setOptions(t);return this},_setOptions:function(g){var i=this;e.each(g,function(e,c){i._setOption(e,c)});return this},_setOption:function(e,g){this.options[e]=g;"disabled"===e&&this.widget()[g?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",
g);return this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(g,i,m){var c=this.options[g],i=e.Event(i);i.type=(g===this.widgetEventPrefix?g:this.widgetEventPrefix+g).toLowerCase();m=m||{};if(i.originalEvent)for(var g=e.event.props.length,k;g;)k=e.event.props[--g],i[k]=i.originalEvent[k];this.element.trigger(i,m);return!(e.isFunction(c)&&!1===c.call(this.element[0],i,m)||i.isDefaultPrevented())}}})(jQuery);
(function(e){var m=!1;e(document).mouseup(function(){m=!1});e.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var i=this;this.element.bind("mousedown."+this.widgetName,function(e){return i._mouseDown(e)}).bind("click."+this.widgetName,function(g){if(!0===e.data(g.target,i.widgetName+".preventClickEvent"))return e.removeData(g.target,i.widgetName+".preventClickEvent"),g.stopImmediatePropagation(),!1});this.started=!1},_mouseDestroy:function(){this.element.unbind("."+
this.widgetName)},_mouseDown:function(i){if(!m){this._mouseStarted&&this._mouseUp(i);this._mouseDownEvent=i;var g=this,o=1==i.which,l="string"==typeof this.options.cancel&&i.target.nodeName?e(i.target).closest(this.options.cancel).length:!1;if(!o||l||!this._mouseCapture(i))return!0;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){g.mouseDelayMet=!0},this.options.delay);if(this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=
!1!==this._mouseStart(i),!this._mouseStarted))return i.preventDefault(),!0;!0===e.data(i.target,this.widgetName+".preventClickEvent")&&e.removeData(i.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(e){return g._mouseMove(e)};this._mouseUpDelegate=function(e){return g._mouseUp(e)};e(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);i.preventDefault();return m=!0}},_mouseMove:function(i){if(e.browser.msie&&
!(9<=document.documentMode)&&!i.button)return this._mouseUp(i);if(this._mouseStarted)return this._mouseDrag(i),i.preventDefault();if(this._mouseDistanceMet(i)&&this._mouseDelayMet(i))(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,i))?this._mouseDrag(i):this._mouseUp(i);return!this._mouseStarted},_mouseUp:function(i){e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted)this._mouseStarted=
!1,i.target==this._mouseDownEvent.target&&e.data(i.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(i);return!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})(jQuery);
(function(e){e.ui=e.ui||{};var m=/left|center|right/,i=/top|center|bottom/,g=e.fn.position,o=e.fn.offset;e.fn.position=function(l){if(!l||!l.of)return g.apply(this,arguments);var l=e.extend({},l),o=e(l.of),c=o[0],k=(l.collision||"flip").split(" "),q=l.offset?l.offset.split(" "):[0,0],v,w,h;9===c.nodeType?(v=o.width(),w=o.height(),h={top:0,left:0}):c.setTimeout?(v=o.width(),w=o.height(),h={top:o.scrollTop(),left:o.scrollLeft()}):c.preventDefault?(l.at="left top",v=w=0,h={top:l.of.pageY,left:l.of.pageX}):
(v=o.outerWidth(),w=o.outerHeight(),h=o.offset());e.each(["my","at"],function(){var c=(l[this]||"").split(" ");1===c.length&&(c=m.test(c[0])?c.concat(["center"]):i.test(c[0])?["center"].concat(c):["center","center"]);c[0]=m.test(c[0])?c[0]:"center";c[1]=i.test(c[1])?c[1]:"center";l[this]=c});1===k.length&&(k[1]=k[0]);q[0]=parseInt(q[0],10)||0;1===q.length&&(q[1]=q[0]);q[1]=parseInt(q[1],10)||0;"right"===l.at[0]?h.left+=v:"center"===l.at[0]&&(h.left+=v/2);"bottom"===l.at[1]?h.top+=w:"center"===l.at[1]&&
(h.top+=w/2);h.left+=q[0];h.top+=q[1];return this.each(function(){var c=e(this),g=c.outerWidth(),i=c.outerHeight(),m=parseInt(e.curCSS(this,"marginLeft",!0))||0,o=parseInt(e.curCSS(this,"marginTop",!0))||0,t=g+m+(parseInt(e.curCSS(this,"marginRight",!0))||0),J=i+o+(parseInt(e.curCSS(this,"marginBottom",!0))||0),B=e.extend({},h),I;"right"===l.my[0]?B.left-=g:"center"===l.my[0]&&(B.left-=g/2);"bottom"===l.my[1]?B.top-=i:"center"===l.my[1]&&(B.top-=i/2);B.left=Math.round(B.left);B.top=Math.round(B.top);
I={left:B.left-m,top:B.top-o};e.each(["left","top"],function(c,h){e.ui.position[k[c]]&&e.ui.position[k[c]][h](B,{targetWidth:v,targetHeight:w,elemWidth:g,elemHeight:i,collisionPosition:I,collisionWidth:t,collisionHeight:J,offset:q,my:l.my,at:l.at})});e.fn.bgiframe&&c.bgiframe();c.offset(e.extend(B,{using:l.using}))})};e.ui.position={fit:{left:function(g,i){var c=e(window),c=i.collisionPosition.left+i.collisionWidth-c.width()-c.scrollLeft();g.left=0<c?g.left-c:Math.max(g.left-i.collisionPosition.left,
g.left)},top:function(g,i){var c=e(window),c=i.collisionPosition.top+i.collisionHeight-c.height()-c.scrollTop();g.top=0<c?g.top-c:Math.max(g.top-i.collisionPosition.top,g.top)}},flip:{left:function(g,i){if("center"!==i.at[0]){var c=e(window),c=i.collisionPosition.left+i.collisionWidth-c.width()-c.scrollLeft(),k="left"===i.my[0]?-i.elemWidth:"right"===i.my[0]?i.elemWidth:0,q="left"===i.at[0]?i.targetWidth:-i.targetWidth,m=-2*i.offset[0];g.left+=0>i.collisionPosition.left?k+q+m:0<c?k+q+m:0}},top:function(g,
i){if("center"!==i.at[1]){var c=e(window),c=i.collisionPosition.top+i.collisionHeight-c.height()-c.scrollTop(),k="top"===i.my[1]?-i.elemHeight:"bottom"===i.my[1]?i.elemHeight:0,m="top"===i.at[1]?i.targetHeight:-i.targetHeight,o=-2*i.offset[1];g.top+=0>i.collisionPosition.top?k+m+o:0<c?k+m+o:0}}}};if(!e.offset.setOffset)e.offset.setOffset=function(g,i){if(/static/.test(e.curCSS(g,"position")))g.style.position="relative";var c=e(g),k=c.offset(),m=parseInt(e.curCSS(g,"top",!0),10)||0,o=parseInt(e.curCSS(g,
"left",!0),10)||0,k={top:i.top-k.top+m,left:i.left-k.left+o};"using"in i?i.using.call(g,k):c.css(k)},e.fn.offset=function(g){var i=this[0];return!i||!i.ownerDocument?null:g?this.each(function(){e.offset.setOffset(this,g)}):o.call(this)}})(jQuery);
(function(e){var m=0;e.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var i=this,g=this.element[0].ownerDocument,m;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(g){if(!i.options.disabled&&!i.element.propAttr("readOnly")){m=
!1;var t=e.ui.keyCode;switch(g.keyCode){case t.PAGE_UP:i._move("previousPage",g);break;case t.PAGE_DOWN:i._move("nextPage",g);break;case t.UP:i._move("previous",g);g.preventDefault();break;case t.DOWN:i._move("next",g);g.preventDefault();break;case t.ENTER:case t.NUMPAD_ENTER:i.menu.active&&(m=!0,g.preventDefault());case t.TAB:if(!i.menu.active)break;i.menu.select(g);break;case t.ESCAPE:i.element.val(i.term);i.close(g);break;default:clearTimeout(i.searching),i.searching=setTimeout(function(){if(i.term!=
i.element.val())i.selectedItem=null,i.search(null,g)},i.options.delay)}}}).bind("keypress.autocomplete",function(e){m&&(m=!1,e.preventDefault())}).bind("focus.autocomplete",function(){if(!i.options.disabled)i.selectedItem=null,i.previous=i.element.val()}).bind("blur.autocomplete",function(e){if(!i.options.disabled)clearTimeout(i.searching),i.closing=setTimeout(function(){i.close(e);i._change(e)},150)});this._initSource();this.response=function(){return i._response.apply(i,arguments)};this.menu=e("<ul></ul>").addClass("ui-autocomplete").appendTo(e(this.options.appendTo||
"body",g)[0]).mousedown(function(g){var m=i.menu.element[0];e(g.target).closest(".ui-menu-item").length||setTimeout(function(){e(document).one("mousedown",function(c){c.target!==i.element[0]&&c.target!==m&&!e.ui.contains(m,c.target)&&i.close()})},1);setTimeout(function(){clearTimeout(i.closing)},13)}).menu({focus:function(e,g){g=g.item.data("item.autocomplete");!1!==i._trigger("focus",e,{item:g})&&/^key/.test(e.originalEvent.type)&&i.element.val(g.value)},selected:function(e,m){var c=m.item.data("item.autocomplete"),
k=i.previous;if(i.element[0]!==g.activeElement)i.element.focus(),i.previous=k,setTimeout(function(){i.previous=k;i.selectedItem=c},1);!1!==i._trigger("select",e,{item:c})&&i.element.val(c.value);i.term=i.element.val();i.close(e);i.selectedItem=c},blur:function(){i.menu.element.is(":visible")&&i.element.val()!==i.term&&i.element.val(i.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");e.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();e.Widget.prototype.destroy.call(this)},_setOption:function(i,g){e.Widget.prototype._setOption.apply(this,arguments);"source"===i&&this._initSource();"appendTo"===i&&this.menu.element.appendTo(e(g||"body",this.element[0].ownerDocument)[0]);"disabled"===i&&g&&this.xhr&&this.xhr.abort()},_initSource:function(){var i=this,g,o;e.isArray(this.options.source)?(g=this.options.source,this.source=function(i,m){m(e.ui.autocomplete.filter(g,i.term))}):"string"===typeof this.options.source?
(o=this.options.source,this.source=function(g,t){i.xhr&&i.xhr.abort();i.xhr=e.ajax({url:o,data:g,dataType:"json",autocompleteRequest:++m,success:function(c){this.autocompleteRequest===m&&t(c)},error:function(){this.autocompleteRequest===m&&t([])}})}):this.source=this.options.source},search:function(e,g){e=null!=e?e:this.element.val();this.term=this.element.val();if(e.length<this.options.minLength)return this.close(g);clearTimeout(this.closing);if(!1!==this._trigger("search",g))return this._search(e)},
_search:function(e){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:e},this.response)},_response:function(e){!this.options.disabled&&e&&e.length?(e=this._normalize(e),this._suggest(e),this._trigger("open")):this.close();this.pending--;this.pending||this.element.removeClass("ui-autocomplete-loading")},close:function(e){clearTimeout(this.closing);this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.deactivate(),this._trigger("close",e))},_change:function(e){this.previous!==
this.element.val()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(i){return i.length&&i[0].label&&i[0].value?i:e.map(i,function(g){return"string"===typeof g?{label:g,value:g}:e.extend({label:g.label||g.value,value:g.value||g.label},g)})},_suggest:function(i){var g=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(g,i);this.menu.deactivate();this.menu.refresh();g.show();this._resizeMenu();g.position(e.extend({of:this.element},this.options.position));
this.options.autoFocus&&this.menu.next(new e.Event("mouseover"))},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth(),this.element.outerWidth()))},_renderMenu:function(i,g){var m=this;e.each(g,function(e,g){m._renderItem(i,g)})},_renderItem:function(i,g){return e("<li></li>").data("item.autocomplete",g).append(e("<a></a>").text(g.label)).appendTo(i)},_move:function(e,g){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(e)||this.menu.last()&&
/^next/.test(e))this.element.val(this.term),this.menu.deactivate();else this.menu[e](g);else this.search(null,g)},widget:function(){return this.menu.element}});e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(i,g){var m=RegExp(e.ui.autocomplete.escapeRegex(g),"i");return e.grep(i,function(e){return m.test(e.label||e.value||e)})}})})(jQuery);
(function(e){e.widget("ui.menu",{_create:function(){var m=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(i){e(i.target).closest(".ui-menu-item a").length&&(i.preventDefault(),m.select(i))});this.refresh()},refresh:function(){var m=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(i){m.activate(i,e(this).parent())}).mouseleave(function(){m.deactivate()})},activate:function(e,i){this.deactivate();if(this.hasScroll()){var g=i.offset().top-this.element.offset().top,o=this.element.scrollTop(),l=this.element.height();0>g?this.element.scrollTop(o+g):g>=l&&this.element.scrollTop(o+g-l+i.height())}this.active=i.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",e,{item:i})},deactivate:function(){if(this.active)this.active.children("a").removeClass("ui-state-hover").removeAttr("id"),
this._trigger("blur"),this.active=null},next:function(e){this.move("next",".ui-menu-item:first",e)},previous:function(e){this.move("prev",".ui-menu-item:last",e)},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(e,i,g){this.active?(e=this.active[e+"All"](".ui-menu-item").eq(0),e.length?this.activate(g,e):this.activate(g,this.element.children(i))):this.activate(g,this.element.children(i))},
nextPage:function(m){if(this.hasScroll())if(!this.active||this.last())this.activate(m,this.element.children(".ui-menu-item:first"));else{var i=this.active.offset().top,g=this.element.height(),o=this.element.children(".ui-menu-item").filter(function(){var l=e(this).offset().top-i-g+e(this).height();return 10>l&&-10<l});o.length||(o=this.element.children(".ui-menu-item:last"));this.activate(m,o)}else this.activate(m,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},
previousPage:function(m){if(this.hasScroll())if(!this.active||this.first())this.activate(m,this.element.children(".ui-menu-item:last"));else{var i=this.active.offset().top,g=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var m=e(this).offset().top-i+g-e(this).height();return 10>m&&-10<m});result.length||(result=this.element.children(".ui-menu-item:first"));this.activate(m,result)}else this.activate(m,this.element.children(".ui-menu-item").filter(!this.active||
this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element[e.fn.prop?"prop":"attr"]("scrollHeight")},select:function(e){this._trigger("selected",e,{item:this.active})}})})(jQuery);
(function(e){e.widget("ui.slider",e.ui.mouse,{widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function(){var m=this,i=this.options,g=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),o=i.values&&i.values.length||1,l=[];this._mouseSliding=this._keySliding=!1;this._animateOff=!0;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+
this.orientation+" ui-widget ui-widget-content ui-corner-all"+(i.disabled?" ui-slider-disabled ui-disabled":""));this.range=e([]);if(i.range){if(!0===i.range){if(!i.values)i.values=[this._valueMin(),this._valueMin()];if(i.values.length&&2!==i.values.length)i.values=[i.values[0],i.values[0]]}this.range=e("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+("min"===i.range||"max"===i.range?" ui-slider-range-"+i.range:""))}for(var t=g.length;t<o;t+=1)l.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>");
this.handles=g.add(e(l.join("")).appendTo(m.element));this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(c){c.preventDefault()}).hover(function(){i.disabled||e(this).addClass("ui-state-hover")},function(){e(this).removeClass("ui-state-hover")}).focus(function(){i.disabled?e(this).blur():(e(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),e(this).addClass("ui-state-focus"))}).blur(function(){e(this).removeClass("ui-state-focus")});this.handles.each(function(c){e(this).data("index.ui-slider-handle",
c)});this.handles.keydown(function(c){var k=!0,g=e(this).data("index.ui-slider-handle"),i,l,h;if(!m.options.disabled){switch(c.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(k=!1,!m._keySliding&&(m._keySliding=!0,e(this).addClass("ui-state-active"),i=m._start(c,g),!1===i))return}h=m.options.step;i=m.options.values&&m.options.values.length?l=m.values(g):
l=m.value();switch(c.keyCode){case e.ui.keyCode.HOME:l=m._valueMin();break;case e.ui.keyCode.END:l=m._valueMax();break;case e.ui.keyCode.PAGE_UP:l=m._trimAlignValue(i+(m._valueMax()-m._valueMin())/5);break;case e.ui.keyCode.PAGE_DOWN:l=m._trimAlignValue(i-(m._valueMax()-m._valueMin())/5);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(i===m._valueMax())return;l=m._trimAlignValue(i+h);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(i===m._valueMin())return;l=m._trimAlignValue(i-h)}m._slide(c,
g,l);return k}}).keyup(function(c){var k=e(this).data("index.ui-slider-handle");if(m._keySliding)m._keySliding=!1,m._stop(c,k),m._change(c,k),e(this).removeClass("ui-state-active")});this._refreshValue();this._animateOff=!1},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy();return this},_mouseCapture:function(m){var i=
this.options,g,o,l,t,c;if(i.disabled)return!1;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();g=this._normValueFromMouse({x:m.pageX,y:m.pageY});o=this._valueMax()-this._valueMin()+1;t=this;this.handles.each(function(k){var i=Math.abs(g-t.values(k));o>i&&(o=i,l=e(this),c=k)});!0===i.range&&this.values(1)===i.min&&(c+=1,l=e(this.handles[c]));if(!1===this._start(m,c))return!1;this._mouseSliding=!0;t._handleIndex=c;l.addClass("ui-state-active").focus();
i=l.offset();this._clickOffset=!e(m.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:m.pageX-i.left-l.width()/2,top:m.pageY-i.top-l.height()/2-(parseInt(l.css("borderTopWidth"),10)||0)-(parseInt(l.css("borderBottomWidth"),10)||0)+(parseInt(l.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(m,c,g);return this._animateOff=!0},_mouseStart:function(){return!0},_mouseDrag:function(e){var i=this._normValueFromMouse({x:e.pageX,y:e.pageY});this._slide(e,
this._handleIndex,i);return!1},_mouseStop:function(e){this.handles.removeClass("ui-state-active");this._mouseSliding=!1;this._stop(e,this._handleIndex);this._change(e,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var i;"horizontal"===this.orientation?(i=this.elementSize.width,e=e.x-this.elementOffset.left-(this._clickOffset?
this._clickOffset.left:0)):(i=this.elementSize.height,e=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0));i=e/i;1<i&&(i=1);0>i&&(i=0);"vertical"===this.orientation&&(i=1-i);e=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+i*e)},_start:function(e,i){var g={handle:this.handles[i],value:this.value()};if(this.options.values&&this.options.values.length)g.value=this.values(i),g.values=this.values();return this._trigger("start",e,g)},_slide:function(e,
i,g){var o;if(this.options.values&&this.options.values.length){o=this.values(i?0:1);if(2===this.options.values.length&&!0===this.options.range&&(0===i&&g>o||1===i&&g<o))g=o;g!==this.values(i)&&(o=this.values(),o[i]=g,e=this._trigger("slide",e,{handle:this.handles[i],value:g,values:o}),this.values(i?0:1),!1!==e&&this.values(i,g,!0))}else g!==this.value()&&(e=this._trigger("slide",e,{handle:this.handles[i],value:g}),!1!==e&&this.value(g))},_stop:function(e,i){var g={handle:this.handles[i],value:this.value()};
if(this.options.values&&this.options.values.length)g.value=this.values(i),g.values=this.values();this._trigger("stop",e,g)},_change:function(e,i){if(!this._keySliding&&!this._mouseSliding){var g={handle:this.handles[i],value:this.value()};if(this.options.values&&this.options.values.length)g.value=this.values(i),g.values=this.values();this._trigger("change",e,g)}},value:function(e){if(arguments.length)this.options.value=this._trimAlignValue(e),this._refreshValue(),this._change(null,0);else return this._value()},
values:function(m,i){var g,o,l;if(1<arguments.length)this.options.values[m]=this._trimAlignValue(i),this._refreshValue(),this._change(null,m);else if(arguments.length)if(e.isArray(arguments[0])){g=this.options.values;o=arguments[0];for(l=0;l<g.length;l+=1)g[l]=this._trimAlignValue(o[l]),this._change(null,l);this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(m):this.value();else return this._values()},_setOption:function(m,i){var g,o=0;if(e.isArray(this.options.values))o=
this.options.values.length;e.Widget.prototype._setOption.apply(this,arguments);switch(m){case "disabled":i?(this.handles.filter(".ui-state-focus").blur(),this.handles.removeClass("ui-state-hover"),this.handles.propAttr("disabled",!0),this.element.addClass("ui-disabled")):(this.handles.propAttr("disabled",!1),this.element.removeClass("ui-disabled"));break;case "orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);
this._refreshValue();break;case "value":this._animateOff=!0;this._refreshValue();this._change(null,0);this._animateOff=!1;break;case "values":this._animateOff=!0;this._refreshValue();for(g=0;g<o;g+=1)this._change(null,g);this._animateOff=!1}},_value:function(){return this._trimAlignValue(this.options.value)},_values:function(e){var i,g;if(arguments.length)return i=this.options.values[e],this._trimAlignValue(i);i=this.options.values.slice();for(g=0;g<i.length;g+=1)i[g]=this._trimAlignValue(i[g]);return i},
_trimAlignValue:function(e){if(e<=this._valueMin())return this._valueMin();if(e>=this._valueMax())return this._valueMax();var i=0<this.options.step?this.options.step:1,g=(e-this._valueMin())%i,e=e-g;2*Math.abs(g)>=i&&(e+=0<g?i:-i);return parseFloat(e.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var m=this.options.range,i=this.options,g=this,o=!this._animateOff?i.animate:!1,l,t={},c,k,q,v;if(this.options.values&&this.options.values.length)this.handles.each(function(k){l=
100*((g.values(k)-g._valueMin())/(g._valueMax()-g._valueMin()));t["horizontal"===g.orientation?"left":"bottom"]=l+"%";e(this).stop(1,1)[o?"animate":"css"](t,i.animate);if(!0===g.options.range)if("horizontal"===g.orientation){if(0===k)g.range.stop(1,1)[o?"animate":"css"]({left:l+"%"},i.animate);if(1===k)g.range[o?"animate":"css"]({width:l-c+"%"},{queue:!1,duration:i.animate})}else{if(0===k)g.range.stop(1,1)[o?"animate":"css"]({bottom:l+"%"},i.animate);if(1===k)g.range[o?"animate":"css"]({height:l-
c+"%"},{queue:!1,duration:i.animate})}c=l});else{k=this.value();q=this._valueMin();v=this._valueMax();l=v!==q?100*((k-q)/(v-q)):0;t["horizontal"===g.orientation?"left":"bottom"]=l+"%";this.handle.stop(1,1)[o?"animate":"css"](t,i.animate);if("min"===m&&"horizontal"===this.orientation)this.range.stop(1,1)[o?"animate":"css"]({width:l+"%"},i.animate);if("max"===m&&"horizontal"===this.orientation)this.range[o?"animate":"css"]({width:100-l+"%"},{queue:!1,duration:i.animate});if("min"===m&&"vertical"===
this.orientation)this.range.stop(1,1)[o?"animate":"css"]({height:l+"%"},i.animate);if("max"===m&&"vertical"===this.orientation)this.range[o?"animate":"css"]({height:100-l+"%"},{queue:!1,duration:i.animate})}}});e.extend(e.ui.slider,{version:"1.8.16"})})(jQuery);
(function(e,m){function i(){this.debug=!1;this._curInst=null;this._keyEvent=!1;this._disabledInputs=[];this._inDialog=this._datepickerShowing=!1;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".split(","),monthNamesShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),dayNames:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),dayNamesShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),dayNamesMin:"Su,Mo,Tu,We,Th,Fr,Sa".split(","),
weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,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:!0,showButtonPanel:!1,autoSize:!1,disabled:!1};e.extend(this._defaults,this.regional[""]);this.dpDiv=g(e('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}function g(c){return c.bind("mouseout",function(c){c=e(c.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");
c.length&&c.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(k){k=e(k.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");if(!e.datepicker._isDisabledDatepicker(t.inline?c.parent()[0]:t.input[0])&&k.length)k.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),k.addClass("ui-state-hover"),k.hasClass("ui-datepicker-prev")&&k.addClass("ui-datepicker-prev-hover"),k.hasClass("ui-datepicker-next")&&
k.addClass("ui-datepicker-next-hover")})}function o(c,k){e.extend(c,k);for(var g in k)if(null==k[g]||k[g]==m)c[g]=k[g];return c}e.extend(e.ui,{datepicker:{version:"1.8.16"}});var l=(new Date).getTime(),t;e.extend(i.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(c){o(this._defaults,c||{});return this},_attachDatepicker:function(c,k){var g=null,i;for(i in this._defaults){var l=
c.getAttribute("date:"+i);if(l){g=g||{};try{g[i]=eval(l)}catch(h){g[i]=l}}}i=c.nodeName.toLowerCase();l="div"==i||"span"==i;if(!c.id)this.uuid+=1,c.id="dp"+this.uuid;var m=this._newInst(e(c),l);m.settings=e.extend({},k||{},g||{});"input"==i?this._connectDatepicker(c,m):l&&this._inlineDatepicker(c,m)},_newInst:function(c,k){return{id:c[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:c,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:k,dpDiv:!k?this.dpDiv:g(e('<div class="'+
this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}},_connectDatepicker:function(c,k){var g=e(c);k.append=e([]);k.trigger=e([]);g.hasClass(this.markerClassName)||(this._attachments(g,k),g.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(c,e,h){k.settings[e]=h}).bind("getData.datepicker",function(c,e){return this._get(k,e)}),this._autoSize(k),e.data(c,"datepicker",
k),k.settings.disabled&&this._disableDatepicker(c))},_attachments:function(c,k){var g=this._get(k,"appendText"),i=this._get(k,"isRTL");k.append&&k.append.remove();if(g)k.append=e('<span class="'+this._appendClass+'">'+g+"</span>"),c[i?"before":"after"](k.append);c.unbind("focus",this._showDatepicker);k.trigger&&k.trigger.remove();g=this._get(k,"showOn");("focus"==g||"both"==g)&&c.focus(this._showDatepicker);if("button"==g||"both"==g){var g=this._get(k,"buttonText"),l=this._get(k,"buttonImage");k.trigger=
e(this._get(k,"buttonImageOnly")?e("<img/>").addClass(this._triggerClass).attr({src:l,alt:g,title:g}):e('<button type="button"></button>').addClass(this._triggerClass).html(""==l?g:e("<img/>").attr({src:l,alt:g,title:g})));c[i?"before":"after"](k.trigger);k.trigger.click(function(){e.datepicker._datepickerShowing&&e.datepicker._lastInput==c[0]?e.datepicker._hideDatepicker():e.datepicker._showDatepicker(c[0]);return!1})}},_autoSize:function(c){if(this._get(c,"autoSize")&&!c.inline){var e=new Date(2009,
11,20),g=this._get(c,"dateFormat");if(g.match(/[DM]/)){var i=function(c){for(var e=0,g=0,k=0;k<c.length;k++)if(c[k].length>e)e=c[k].length,g=k;return g};e.setMonth(i(this._get(c,g.match(/MM/)?"monthNames":"monthNamesShort")));e.setDate(i(this._get(c,g.match(/DD/)?"dayNames":"dayNamesShort"))+20-e.getDay())}c.input.attr("size",this._formatDate(c,e).length)}},_inlineDatepicker:function(c,g){var i=e(c);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(g.dpDiv).bind("setData.datepicker",
function(c,e,h){g.settings[e]=h}).bind("getData.datepicker",function(c,e){return this._get(g,e)}),e.data(c,"datepicker",g),this._setDate(g,this._getDefaultDate(g),!0),this._updateDatepicker(g),this._updateAlternate(g),g.settings.disabled&&this._disableDatepicker(c),g.dpDiv.css("display","block"))},_dialogDatepicker:function(c,g,i,l,m){c=this._dialogInst;if(!c)this.uuid+=1,this._dialogInput=e('<input type="text" id="dp'+this.uuid+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>'),
this._dialogInput.keydown(this._doKeyDown),e("body").append(this._dialogInput),c=this._dialogInst=this._newInst(this._dialogInput,!1),c.settings={},e.data(this._dialogInput[0],"datepicker",c);o(c.settings,l||{});g=g&&g.constructor==Date?this._formatDate(c,g):g;this._dialogInput.val(g);this._pos=m?m.length?m:[m.pageX,m.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");c.settings.onSelect=i;this._inDialog=!0;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);e.blockUI&&e.blockUI(this.dpDiv);e.data(this._dialogInput[0],"datepicker",c);return this},_destroyDatepicker:function(c){var g=e(c),i=e.data(c,"datepicker");if(g.hasClass(this.markerClassName)){var l=c.nodeName.toLowerCase();e.removeData(c,
"datepicker");"input"==l?(i.append.remove(),i.trigger.remove(),g.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):("div"==l||"span"==l)&&g.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(c){var g=e(c),i=e.data(c,"datepicker");if(g.hasClass(this.markerClassName)){var l=c.nodeName.toLowerCase();if("input"==l)c.disabled=!1,i.trigger.filter("button").each(function(){this.disabled=
!1}).end().filter("img").css({opacity:"1.0",cursor:""});else if("div"==l||"span"==l)g=g.children("."+this._inlineClass),g.children().removeClass("ui-state-disabled"),g.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled");this._disabledInputs=e.map(this._disabledInputs,function(e){return e==c?null:e})}},_disableDatepicker:function(c){var g=e(c),i=e.data(c,"datepicker");if(g.hasClass(this.markerClassName)){var l=c.nodeName.toLowerCase();if("input"==l)c.disabled=!0,i.trigger.filter("button").each(function(){this.disabled=
!0}).end().filter("img").css({opacity:"0.5",cursor:"default"});else if("div"==l||"span"==l)g=g.children("."+this._inlineClass),g.children().addClass("ui-state-disabled"),g.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled");this._disabledInputs=e.map(this._disabledInputs,function(e){return e==c?null:e});this._disabledInputs[this._disabledInputs.length]=c}},_isDisabledDatepicker:function(c){if(!c)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]==
c)return!0;return!1},_getInst:function(c){try{return e.data(c,"datepicker")}catch(g){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(c,g,i){var l=this._getInst(c);if(2==arguments.length&&"string"==typeof g)return"defaults"==g?e.extend({},e.datepicker._defaults):l?"all"==g?e.extend({},l.settings):this._get(l,g):null;var w=g||{};"string"==typeof g&&(w={},w[g]=i);if(l){this._curInst==l&&this._hideDatepicker();var h=this._getDateDatepicker(c,!0),t=this._getMinMaxDate(l,
"min"),z=this._getMinMaxDate(l,"max");o(l.settings,w);if(null!==t&&w.dateFormat!==m&&w.minDate===m)l.settings.minDate=this._formatDate(l,t);if(null!==z&&w.dateFormat!==m&&w.maxDate===m)l.settings.maxDate=this._formatDate(l,z);this._attachments(e(c),l);this._autoSize(l);this._setDate(l,h);this._updateAlternate(l);this._updateDatepicker(l)}},_changeDatepicker:function(c,e,g){this._optionDatepicker(c,e,g)},_refreshDatepicker:function(c){(c=this._getInst(c))&&this._updateDatepicker(c)},_setDateDatepicker:function(c,
e){if(c=this._getInst(c))this._setDate(c,e),this._updateDatepicker(c),this._updateAlternate(c)},_getDateDatepicker:function(c,e){(c=this._getInst(c))&&!c.inline&&this._setDateFromField(c,e);return c?this._getDate(c):null},_doKeyDown:function(c){var g=e.datepicker._getInst(c.target),i=!0,l=g.dpDiv.is(".ui-datepicker-rtl");g._keyEvent=!0;if(e.datepicker._datepickerShowing)switch(c.keyCode){case 9:e.datepicker._hideDatepicker();i=!1;break;case 13:return i=e("td."+e.datepicker._dayOverClass+":not(."+
e.datepicker._currentClass+")",g.dpDiv),i[0]&&e.datepicker._selectDay(c.target,g.selectedMonth,g.selectedYear,i[0]),(c=e.datepicker._get(g,"onSelect"))?(i=e.datepicker._formatDate(g),c.apply(g.input?g.input[0]:null,[i,g])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(c.target,c.ctrlKey?-e.datepicker._get(g,"stepBigMonths"):-e.datepicker._get(g,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(c.target,c.ctrlKey?+e.datepicker._get(g,
"stepBigMonths"):+e.datepicker._get(g,"stepMonths"),"M");break;case 35:(c.ctrlKey||c.metaKey)&&e.datepicker._clearDate(c.target);i=c.ctrlKey||c.metaKey;break;case 36:(c.ctrlKey||c.metaKey)&&e.datepicker._gotoToday(c.target);i=c.ctrlKey||c.metaKey;break;case 37:if(c.ctrlKey||c.metaKey)e.datepicker._adjustDate(c.target,l?1:-1,"D");i=c.ctrlKey||c.metaKey;c.originalEvent.altKey&&e.datepicker._adjustDate(c.target,c.ctrlKey?-e.datepicker._get(g,"stepBigMonths"):-e.datepicker._get(g,"stepMonths"),"M");break;
case 38:(c.ctrlKey||c.metaKey)&&e.datepicker._adjustDate(c.target,-7,"D");i=c.ctrlKey||c.metaKey;break;case 39:if(c.ctrlKey||c.metaKey)e.datepicker._adjustDate(c.target,l?-1:1,"D");i=c.ctrlKey||c.metaKey;c.originalEvent.altKey&&e.datepicker._adjustDate(c.target,c.ctrlKey?+e.datepicker._get(g,"stepBigMonths"):+e.datepicker._get(g,"stepMonths"),"M");break;case 40:(c.ctrlKey||c.metaKey)&&e.datepicker._adjustDate(c.target,7,"D");i=c.ctrlKey||c.metaKey;break;default:i=!1}else 36==c.keyCode&&c.ctrlKey?
e.datepicker._showDatepicker(this):i=!1;i&&(c.preventDefault(),c.stopPropagation())},_doKeyPress:function(c){var g=e.datepicker._getInst(c.target);if(e.datepicker._get(g,"constrainInput")){var g=e.datepicker._possibleChars(e.datepicker._get(g,"dateFormat")),i=String.fromCharCode(c.charCode==m?c.keyCode:c.charCode);return c.ctrlKey||c.metaKey||" ">i||!g||-1<g.indexOf(i)}},_doKeyUp:function(c){c=e.datepicker._getInst(c.target);if(c.input.val()!=c.lastVal)try{if(e.datepicker.parseDate(e.datepicker._get(c,
"dateFormat"),c.input?c.input.val():null,e.datepicker._getFormatConfig(c)))e.datepicker._setDateFromField(c),e.datepicker._updateAlternate(c),e.datepicker._updateDatepicker(c)}catch(g){e.datepicker.log(g)}return!0},_showDatepicker:function(c){c=c.target||c;"input"!=c.nodeName.toLowerCase()&&(c=e("input",c.parentNode)[0]);if(!(e.datepicker._isDisabledDatepicker(c)||e.datepicker._lastInput==c)){var g=e.datepicker._getInst(c);e.datepicker._curInst&&e.datepicker._curInst!=g&&(e.datepicker._datepickerShowing&&
e.datepicker._triggerOnClose(e.datepicker._curInst),e.datepicker._curInst.dpDiv.stop(!0,!0));var i=e.datepicker._get(g,"beforeShow"),i=i?i.apply(c,[c,g]):{};if(!1!==i){o(g.settings,i);g.lastVal=null;e.datepicker._lastInput=c;e.datepicker._setDateFromField(g);if(e.datepicker._inDialog)c.value="";if(!e.datepicker._pos)e.datepicker._pos=e.datepicker._findPos(c),e.datepicker._pos[1]+=c.offsetHeight;var l=!1;e(c).parents().each(function(){l|="fixed"==e(this).css("position");return!l});l&&e.browser.opera&&
(e.datepicker._pos[0]-=document.documentElement.scrollLeft,e.datepicker._pos[1]-=document.documentElement.scrollTop);i={left:e.datepicker._pos[0],top:e.datepicker._pos[1]};e.datepicker._pos=null;g.dpDiv.empty();g.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});e.datepicker._updateDatepicker(g);i=e.datepicker._checkOffset(g,i,l);g.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":l?"fixed":"absolute",display:"none",left:i.left+"px",top:i.top+"px"});if(!g.inline){var i=e.datepicker._get(g,
"showAnim"),m=e.datepicker._get(g,"duration"),h=function(){var c=g.dpDiv.find("iframe.ui-datepicker-cover");if(c.length){var h=e.datepicker._getBorders(g.dpDiv);c.css({left:-h[0],top:-h[1],width:g.dpDiv.outerWidth(),height:g.dpDiv.outerHeight()})}};g.dpDiv.zIndex(e(c).zIndex()+1);e.datepicker._datepickerShowing=!0;e.effects&&e.effects[i]?g.dpDiv.show(i,e.datepicker._get(g,"showOptions"),m,h):g.dpDiv[i||"show"](i?m:null,h);(!i||!m)&&h();g.input.is(":visible")&&!g.input.is(":disabled")&&g.input.focus();
e.datepicker._curInst=g}}}},_updateDatepicker:function(c){this.maxRows=4;var g=e.datepicker._getBorders(c.dpDiv);t=c;c.dpDiv.empty().append(this._generateHTML(c));var i=c.dpDiv.find("iframe.ui-datepicker-cover");i.length&&i.css({left:-g[0],top:-g[1],width:c.dpDiv.outerWidth(),height:c.dpDiv.outerHeight()});c.dpDiv.find("."+this._dayOverClass+" a").mouseover();g=this._getNumberOfMonths(c);i=g[1];c.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");1<i&&
c.dpDiv.addClass("ui-datepicker-multi-"+i).css("width",17*i+"em");c.dpDiv[(1!=g[0]||1!=g[1]?"add":"remove")+"Class"]("ui-datepicker-multi");c.dpDiv[(this._get(c,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");c==e.datepicker._curInst&&e.datepicker._datepickerShowing&&c.input&&c.input.is(":visible")&&!c.input.is(":disabled")&&c.input[0]!=document.activeElement&&c.input.focus();if(c.yearshtml){var l=c.yearshtml;setTimeout(function(){l===c.yearshtml&&c.yearshtml&&c.dpDiv.find("select.ui-datepicker-year:first").replaceWith(c.yearshtml);
l=c.yearshtml=null},0)}},_getBorders:function(c){var e=function(c){return{thin:1,medium:2,thick:3}[c]||c};return[parseFloat(e(c.css("border-left-width"))),parseFloat(e(c.css("border-top-width")))]},_checkOffset:function(c,g,i){var l=c.dpDiv.outerWidth(),m=c.dpDiv.outerHeight(),h=c.input?c.input.outerWidth():0,o=c.input?c.input.outerHeight():0,t=document.documentElement.clientWidth+e(document).scrollLeft(),K=document.documentElement.clientHeight+e(document).scrollTop();g.left-=this._get(c,"isRTL")?
l-h:0;g.left-=i&&g.left==c.input.offset().left?e(document).scrollLeft():0;g.top-=i&&g.top==c.input.offset().top+o?e(document).scrollTop():0;g.left-=Math.min(g.left,g.left+l>t&&t>l?Math.abs(g.left+l-t):0);g.top-=Math.min(g.top,g.top+m>K&&K>m?Math.abs(m+o):0);return g},_findPos:function(c){for(var g=this._get(this._getInst(c),"isRTL");c&&("hidden"==c.type||1!=c.nodeType||e.expr.filters.hidden(c));)c=c[g?"previousSibling":"nextSibling"];c=e(c).offset();return[c.left,c.top]},_triggerOnClose:function(c){var e=
this._get(c,"onClose");e&&e.apply(c.input?c.input[0]:null,[c.input?c.input.val():"",c])},_hideDatepicker:function(c){var g=this._curInst;if(g&&!(c&&g!=e.data(c,"datepicker"))&&this._datepickerShowing){var c=this._get(g,"showAnim"),i=this._get(g,"duration"),l=function(){e.datepicker._tidyDialog(g);this._curInst=null};e.effects&&e.effects[c]?g.dpDiv.hide(c,e.datepicker._get(g,"showOptions"),i,l):g.dpDiv["slideDown"==c?"slideUp":"fadeIn"==c?"fadeOut":"hide"](c?i:null,l);c||l();e.datepicker._triggerOnClose(g);
this._datepickerShowing=!1;this._lastInput=null;this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv)));this._inDialog=!1}},_tidyDialog:function(c){c.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(c){e.datepicker._curInst&&(c=e(c.target),c[0].id!=e.datepicker._mainDivId&&0==c.parents("#"+e.datepicker._mainDivId).length&&!c.hasClass(e.datepicker.markerClassName)&&
!c.hasClass(e.datepicker._triggerClass)&&e.datepicker._datepickerShowing&&(!e.datepicker._inDialog||!e.blockUI)&&e.datepicker._hideDatepicker())},_adjustDate:function(c,g,i){var c=e(c),l=this._getInst(c[0]);this._isDisabledDatepicker(c[0])||(this._adjustInstDate(l,g+("M"==i?this._get(l,"showCurrentAtPos"):0),i),this._updateDatepicker(l))},_gotoToday:function(c){var c=e(c),g=this._getInst(c[0]);if(this._get(g,"gotoCurrent")&&g.currentDay)g.selectedDay=g.currentDay,g.drawMonth=g.selectedMonth=g.currentMonth,
g.drawYear=g.selectedYear=g.currentYear;else{var i=new Date;g.selectedDay=i.getDate();g.drawMonth=g.selectedMonth=i.getMonth();g.drawYear=g.selectedYear=i.getFullYear()}this._notifyChange(g);this._adjustDate(c)},_selectMonthYear:function(c,g,i){var c=e(c),l=this._getInst(c[0]);l["selected"+("M"==i?"Month":"Year")]=l["draw"+("M"==i?"Month":"Year")]=parseInt(g.options[g.selectedIndex].value,10);this._notifyChange(l);this._adjustDate(c)},_selectDay:function(c,g,i,l){var m=e(c);if(!e(l).hasClass(this._unselectableClass)&&
!this._isDisabledDatepicker(m[0]))m=this._getInst(m[0]),m.selectedDay=m.currentDay=e("a",l).html(),m.selectedMonth=m.currentMonth=g,m.selectedYear=m.currentYear=i,this._selectDate(c,this._formatDate(m,m.currentDay,m.currentMonth,m.currentYear))},_clearDate:function(c){c=e(c);this._getInst(c[0]);this._selectDate(c,"")},_selectDate:function(c,g){c=this._getInst(e(c)[0]);g=null!=g?g:this._formatDate(c);c.input&&c.input.val(g);this._updateAlternate(c);var i=this._get(c,"onSelect");i?i.apply(c.input?c.input[0]:
null,[g,c]):c.input&&c.input.trigger("change");c.inline?this._updateDatepicker(c):(this._hideDatepicker(),this._lastInput=c.input[0],"object"!=typeof c.input[0]&&c.input.focus(),this._lastInput=null)},_updateAlternate:function(c){var g=this._get(c,"altField");if(g){var i=this._get(c,"altFormat")||this._get(c,"dateFormat"),l=this._getDate(c),m=this.formatDate(i,l,this._getFormatConfig(c));e(g).each(function(){e(this).val(m)})}},noWeekends:function(c){c=c.getDay();return[0<c&&6>c,""]},iso8601Week:function(c){c=
new Date(c.getTime());c.setDate(c.getDate()+4-(c.getDay()||7));var e=c.getTime();c.setMonth(0);c.setDate(1);return Math.floor(Math.round((e-c)/864E5)/7)+1},parseDate:function(c,g,i){if(null==c||null==g)throw"Invalid arguments";g="object"==typeof g?g.toString():g+"";if(""==g)return null;for(var l=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff,l="string"!=typeof l?l:(new Date).getFullYear()%100+parseInt(l,10),m=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,h=(i?i.dayNames:null)||
this._defaults.dayNames,o=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,t=(i?i.monthNames:null)||this._defaults.monthNames,K=i=-1,u=-1,D=-1,A=!1,J=function(e){(e=M+1<c.length&&c.charAt(M+1)==e)&&M++;return e},B=function(c){var e=J(c),c=g.substring(L).match(RegExp("^\\d{1,"+("@"==c?14:"!"==c?20:"y"==c&&e?4:"o"==c?3:2)+"}"));if(!c)throw"Missing number at position "+L;L+=c[0].length;return parseInt(c[0],10)},I=function(c,h,i){var c=e.map(J(c)?i:h,function(c,e){return[[e,c]]}).sort(function(c,
e){return-(c[1].length-e[1].length)}),l=-1;e.each(c,function(c,e){c=e[1];if(g.substr(L,c.length).toLowerCase()==c.toLowerCase())return l=e[0],L+=c.length,!1});if(-1!=l)return l+1;throw"Unknown name at position "+L;},V=function(){if(g.charAt(L)!=c.charAt(M))throw"Unexpected literal at position "+L;L++},L=0,M=0;M<c.length;M++)if(A)"'"==c.charAt(M)&&!J("'")?A=!1:V();else switch(c.charAt(M)){case "d":u=B("d");break;case "D":I("D",m,h);break;case "o":D=B("o");break;case "m":K=B("m");break;case "M":K=I("M",
o,t);break;case "y":i=B("y");break;case "@":var Y=new Date(B("@")),i=Y.getFullYear(),K=Y.getMonth()+1,u=Y.getDate();break;case "!":Y=new Date((B("!")-this._ticksTo1970)/1E4);i=Y.getFullYear();K=Y.getMonth()+1;u=Y.getDate();break;case "'":J("'")?V():A=!0;break;default:V()}if(L<g.length)throw"Extra/unparsed characters found in date: "+g.substring(L);-1==i?i=(new Date).getFullYear():100>i&&(i+=(new Date).getFullYear()-(new Date).getFullYear()%100+(i<=l?0:-100));if(-1<D){K=1;u=D;do{l=this._getDaysInMonth(i,
K-1);if(u<=l)break;K++;u-=l}while(1)}Y=this._daylightSavingAdjust(new Date(i,K-1,u));if(Y.getFullYear()!=i||Y.getMonth()+1!=K||Y.getDate()!=u)throw"Invalid date";return Y},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:864E9*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(c,e,g){if(!e)return"";
var i=(g?g.dayNamesShort:null)||this._defaults.dayNamesShort,l=(g?g.dayNames:null)||this._defaults.dayNames,h=(g?g.monthNamesShort:null)||this._defaults.monthNamesShort,g=(g?g.monthNames:null)||this._defaults.monthNames,m=function(e){(e=A+1<c.length&&c.charAt(A+1)==e)&&A++;return e},o=function(c,e,h){e=""+e;if(m(c))for(;e.length<h;)e="0"+e;return e},t=function(c,e,h,g){return m(c)?g[e]:h[e]},u="",D=!1;if(e)for(var A=0;A<c.length;A++)if(D)"'"==c.charAt(A)&&!m("'")?D=!1:u+=c.charAt(A);else switch(c.charAt(A)){case "d":u+=
o("d",e.getDate(),2);break;case "D":u+=t("D",e.getDay(),i,l);break;case "o":u+=o("o",Math.round(((new Date(e.getFullYear(),e.getMonth(),e.getDate())).getTime()-(new Date(e.getFullYear(),0,0)).getTime())/864E5),3);break;case "m":u+=o("m",e.getMonth()+1,2);break;case "M":u+=t("M",e.getMonth(),h,g);break;case "y":u+=m("y")?e.getFullYear():(10>e.getYear()%100?"0":"")+e.getYear()%100;break;case "@":u+=e.getTime();break;case "!":u+=1E4*e.getTime()+this._ticksTo1970;break;case "'":m("'")?u+="'":D=!0;break;
default:u+=c.charAt(A)}return u},_possibleChars:function(c){for(var e="",g=!1,i=function(e){(e=l+1<c.length&&c.charAt(l+1)==e)&&l++;return e},l=0;l<c.length;l++)if(g)"'"==c.charAt(l)&&!i("'")?g=!1:e+=c.charAt(l);else switch(c.charAt(l)){case "d":case "m":case "y":case "@":e+="0123456789";break;case "D":case "M":return null;case "'":i("'")?e+="'":g=!0;break;default:e+=c.charAt(l)}return e},_get:function(c,e){return c.settings[e]!==m?c.settings[e]:this._defaults[e]},_setDateFromField:function(c,e){if(c.input.val()!=
c.lastVal){var g=this._get(c,"dateFormat"),i=c.lastVal=c.input?c.input.val():null,l,h;l=h=this._getDefaultDate(c);var m=this._getFormatConfig(c);try{l=this.parseDate(g,i,m)||h}catch(o){this.log(o),i=e?"":i}c.selectedDay=l.getDate();c.drawMonth=c.selectedMonth=l.getMonth();c.drawYear=c.selectedYear=l.getFullYear();c.currentDay=i?l.getDate():0;c.currentMonth=i?l.getMonth():0;c.currentYear=i?l.getFullYear():0;this._adjustInstDate(c)}},_getDefaultDate:function(c){return this._restrictMinMax(c,this._determineDate(c,
this._get(c,"defaultDate"),new Date))},_determineDate:function(c,g,i){var f;var l=function(c){var e=new Date;e.setDate(e.getDate()+c);return e};if(f=(g=null==g||""===g?i:"string"==typeof g?function(g){try{return e.datepicker.parseDate(e.datepicker._get(c,"dateFormat"),g,e.datepicker._getFormatConfig(c))}catch(h){}for(var i=(g.toLowerCase().match(/^c/)?e.datepicker._getDate(c):null)||new Date,k=i.getFullYear(),l=i.getMonth(),i=i.getDate(),m=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,o=m.exec(g);o;){switch(o[2]||
"d"){case "d":case "D":i+=parseInt(o[1],10);break;case "w":case "W":i+=7*parseInt(o[1],10);break;case "m":case "M":l+=parseInt(o[1],10);i=Math.min(i,e.datepicker._getDaysInMonth(k,l));break;case "y":case "Y":k+=parseInt(o[1],10),i=Math.min(i,e.datepicker._getDaysInMonth(k,l))}o=m.exec(g)}return new Date(k,l,i)}(g):"number"==typeof g?isNaN(g)?i:l(g):new Date(g.getTime()))&&"Invalid Date"==g.toString()?i:g,g=f)g.setHours(0),g.setMinutes(0),g.setSeconds(0),g.setMilliseconds(0);return this._daylightSavingAdjust(g)},
_daylightSavingAdjust:function(c){if(!c)return null;c.setHours(12<c.getHours()?c.getHours()+2:0);return c},_setDate:function(c,e,g){var i=!e,l=c.selectedMonth,h=c.selectedYear,e=this._restrictMinMax(c,this._determineDate(c,e,new Date));c.selectedDay=c.currentDay=e.getDate();c.drawMonth=c.selectedMonth=c.currentMonth=e.getMonth();c.drawYear=c.selectedYear=c.currentYear=e.getFullYear();(l!=c.selectedMonth||h!=c.selectedYear)&&!g&&this._notifyChange(c);this._adjustInstDate(c);c.input&&c.input.val(i?
"":this._formatDate(c))},_getDate:function(c){return!c.currentYear||c.input&&""==c.input.val()?null:this._daylightSavingAdjust(new Date(c.currentYear,c.currentMonth,c.currentDay))},_generateHTML:function(c){var g=new Date,g=this._daylightSavingAdjust(new Date(g.getFullYear(),g.getMonth(),g.getDate())),i=this._get(c,"isRTL"),m=this._get(c,"showButtonPanel"),o=this._get(c,"hideIfNoPrevNext"),h=this._get(c,"navigationAsDateFormat"),t=this._getNumberOfMonths(c),z=this._get(c,"showCurrentAtPos"),K=this._get(c,
"stepMonths"),u=1!=t[0]||1!=t[1],D=this._daylightSavingAdjust(!c.currentDay?new Date(9999,9,9):new Date(c.currentYear,c.currentMonth,c.currentDay)),A=this._getMinMaxDate(c,"min"),J=this._getMinMaxDate(c,"max"),z=c.drawMonth-z,B=c.drawYear;0>z&&(z+=12,B--);if(J)for(var I=this._daylightSavingAdjust(new Date(J.getFullYear(),J.getMonth()-t[0]*t[1]+1,J.getDate())),I=A&&I<A?A:I;this._daylightSavingAdjust(new Date(B,z,1))>I;)z--,0>z&&(z=11,B--);c.drawMonth=z;c.drawYear=B;var I=this._get(c,"prevText"),I=
!h?I:this.formatDate(I,this._daylightSavingAdjust(new Date(B,z-K,1)),this._getFormatConfig(c)),I=this._canAdjustMonth(c,-1,B,z)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+l+".datepicker._adjustDate('#"+c.id+"', -"+K+", 'M');\" title=\""+I+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"e":"w")+'">'+I+"</span></a>":o?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+I+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"e":"w")+'">'+I+"</span></a>",
V=this._get(c,"nextText"),V=!h?V:this.formatDate(V,this._daylightSavingAdjust(new Date(B,z+K,1)),this._getFormatConfig(c)),o=this._canAdjustMonth(c,1,B,z)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+l+".datepicker._adjustDate('#"+c.id+"', +"+K+", 'M');\" title=\""+V+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"w":"e")+'">'+V+"</span></a>":o?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+V+'"><span class="ui-icon ui-icon-circle-triangle-'+
(i?"w":"e")+'">'+V+"</span></a>",K=this._get(c,"currentText"),V=this._get(c,"gotoCurrent")&&c.currentDay?D:g,K=!h?K:this.formatDate(K,V,this._getFormatConfig(c)),h=!c.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+l+'.datepicker._hideDatepicker();">'+this._get(c,"closeText")+"</button>":"",m=m?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(i?h:"")+(this._isInRange(c,V)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+
l+".datepicker._gotoToday('#"+c.id+"');\">"+K+"</button>":"")+(i?"":h)+"</div>":"",h=parseInt(this._get(c,"firstDay"),10),h=isNaN(h)?0:h,K=this._get(c,"showWeek"),V=this._get(c,"dayNames");this._get(c,"dayNamesShort");var L=this._get(c,"dayNamesMin"),M=this._get(c,"monthNames"),Y=this._get(c,"monthNamesShort"),aa=this._get(c,"beforeShowDay"),x=this._get(c,"showOtherMonths"),wa=this._get(c,"selectOtherMonths");this._get(c,"calculateWeek");for(var sa=this._getDefaultDate(c),j="",H=0;H<t[0];H++){var E=
"";this.maxRows=4;for(var T=0;T<t[1];T++){var ba=this._daylightSavingAdjust(new Date(B,z,c.selectedDay)),G=" ui-corner-all",P="";if(u){P+='<div class="ui-datepicker-group';if(1<t[1])switch(T){case 0:P+=" ui-datepicker-group-first";G=" ui-corner-"+(i?"right":"left");break;case t[1]-1:P+=" ui-datepicker-group-last";G=" ui-corner-"+(i?"left":"right");break;default:P+=" ui-datepicker-group-middle",G=""}P+='">'}for(var P=P+('<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+G+'">'+
(/all|left/.test(G)&&0==H?i?o:I:"")+(/all|right/.test(G)&&0==H?i?I:o:"")+this._generateMonthYearHeader(c,z,B,A,J,0<H||0<T,M,Y)+'</div><table class="ui-datepicker-calendar"><thead><tr>'),N=K?'<th class="ui-datepicker-week-col">'+this._get(c,"weekHeader")+"</th>":"",G=0;7>G;G++)var C=(G+h)%7,N=N+("<th"+(5<=(G+h+6)%7?' class="ui-datepicker-week-end"':"")+'><span title="'+V[C]+'">'+L[C]+"</span></th>");P+=N+"</tr></thead><tbody>";N=this._getDaysInMonth(B,z);if(B==c.selectedYear&&z==c.selectedMonth)c.selectedDay=
Math.min(c.selectedDay,N);G=(this._getFirstDayOfMonth(B,z)-h+7)%7;N=Math.ceil((G+N)/7);this.maxRows=N=u?this.maxRows>N?this.maxRows:N:N;for(var C=this._daylightSavingAdjust(new Date(B,z,1-G)),ea=0;ea<N;ea++){for(var P=P+"<tr>",ga=!K?"":'<td class="ui-datepicker-week-col">'+this._get(c,"calculateWeek")(C)+"</td>",G=0;7>G;G++){var X=aa?aa.apply(c.input?c.input[0]:null,[C]):[!0,""],ha=C.getMonth()!=z,s=ha&&!wa||!X[0]||A&&C<A||J&&C>J,ga=ga+('<td class="'+(5<=(G+h+6)%7?" ui-datepicker-week-end":"")+(ha?
" ui-datepicker-other-month":"")+(C.getTime()==ba.getTime()&&z==c.selectedMonth&&c._keyEvent||sa.getTime()==C.getTime()&&sa.getTime()==ba.getTime()?" "+this._dayOverClass:"")+(s?" "+this._unselectableClass+" ui-state-disabled":"")+(ha&&!x?"":" "+X[1]+(C.getTime()==D.getTime()?" "+this._currentClass:"")+(C.getTime()==g.getTime()?" ui-datepicker-today":""))+'"'+((!ha||x)&&X[2]?' title="'+X[2]+'"':"")+(s?"":' onclick="DP_jQuery_'+l+".datepicker._selectDay('#"+c.id+"',"+C.getMonth()+","+C.getFullYear()+
', this);return false;"')+">"+(ha&&!x?"&#xa0;":s?'<span class="ui-state-default">'+C.getDate()+"</span>":'<a class="ui-state-default'+(C.getTime()==g.getTime()?" ui-state-highlight":"")+(C.getTime()==D.getTime()?" ui-state-active":"")+(ha?" ui-priority-secondary":"")+'" href="#">'+C.getDate()+"</a>")+"</td>");C.setDate(C.getDate()+1);C=this._daylightSavingAdjust(C)}P+=ga+"</tr>"}z++;11<z&&(z=0,B++);P+="</tbody></table>"+(u?"</div>"+(0<t[0]&&T==t[1]-1?'<div class="ui-datepicker-row-break"></div>':
""):"");E+=P}j+=E}j+=m+(e.browser.msie&&7>parseInt(e.browser.version,10)&&!c.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");c._keyEvent=!1;return j},_generateMonthYearHeader:function(c,e,g,i,m,h,o,t){var K=this._get(c,"changeMonth"),u=this._get(c,"changeYear"),D=this._get(c,"showMonthAfterYear"),A='<div class="ui-datepicker-title">',J="";if(h||!K)J+='<span class="ui-datepicker-month">'+o[e]+"</span>";else{for(var o=i&&i.getFullYear()==g,B=m&&m.getFullYear()==
g,J=J+('<select class="ui-datepicker-month" onchange="DP_jQuery_'+l+".datepicker._selectMonthYear('#"+c.id+"', this, 'M');\" >"),I=0;12>I;I++)if((!o||I>=i.getMonth())&&(!B||I<=m.getMonth()))J+='<option value="'+I+'"'+(I==e?' selected="selected"':"")+">"+t[I]+"</option>";J+="</select>"}D||(A+=J+(h||!K||!u?"&#xa0;":""));if(!c.yearshtml)if(c.yearshtml="",h||!u)A+='<span class="ui-datepicker-year">'+g+"</span>";else{var t=this._get(c,"yearRange").split(":"),V=(new Date).getFullYear(),o=function(c){c=
c.match(/c[+-].*/)?g+parseInt(c.substring(1),10):c.match(/[+-].*/)?V+parseInt(c,10):parseInt(c,10);return isNaN(c)?V:c},e=o(t[0]),t=Math.max(e,o(t[1]||"")),e=i?Math.max(e,i.getFullYear()):e,t=m?Math.min(t,m.getFullYear()):t;for(c.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+l+".datepicker._selectMonthYear('#"+c.id+"', this, 'Y');\" >";e<=t;e++)c.yearshtml+='<option value="'+e+'"'+(e==g?' selected="selected"':"")+">"+e+"</option>";c.yearshtml+="</select>";A+=c.yearshtml;c.yearshtml=
null}A+=this._get(c,"yearSuffix");D&&(A+=(h||!K||!u?"&#xa0;":"")+J);return A+"</div>"},_adjustInstDate:function(c,e,g){var i=c.drawYear+("Y"==g?e:0),l=c.drawMonth+("M"==g?e:0),e=Math.min(c.selectedDay,this._getDaysInMonth(i,l))+("D"==g?e:0),i=this._restrictMinMax(c,this._daylightSavingAdjust(new Date(i,l,e)));c.selectedDay=i.getDate();c.drawMonth=c.selectedMonth=i.getMonth();c.drawYear=c.selectedYear=i.getFullYear();("M"==g||"Y"==g)&&this._notifyChange(c)},_restrictMinMax:function(c,e){var g=this._getMinMaxDate(c,
"min"),c=this._getMinMaxDate(c,"max"),e=g&&e<g?g:e;return c&&e>c?c:e},_notifyChange:function(c){var e=this._get(c,"onChangeMonthYear");e&&e.apply(c.input?c.input[0]:null,[c.selectedYear,c.selectedMonth+1,c])},_getNumberOfMonths:function(c){c=this._get(c,"numberOfMonths");return null==c?[1,1]:"number"==typeof c?[1,c]:c},_getMinMaxDate:function(c,e){return this._determineDate(c,this._get(c,e+"Date"),null)},_getDaysInMonth:function(c,e){return 32-this._daylightSavingAdjust(new Date(c,e,32)).getDate()},
_getFirstDayOfMonth:function(c,e){return(new Date(c,e,1)).getDay()},_canAdjustMonth:function(c,e,g,i){var l=this._getNumberOfMonths(c),g=this._daylightSavingAdjust(new Date(g,i+(0>e?e:l[0]*l[1]),1));0>e&&g.setDate(this._getDaysInMonth(g.getFullYear(),g.getMonth()));return this._isInRange(c,g)},_isInRange:function(c,e){var g=this._getMinMaxDate(c,"min"),c=this._getMinMaxDate(c,"max");return(!g||e.getTime()>=g.getTime())&&(!c||e.getTime()<=c.getTime())},_getFormatConfig:function(c){var e=this._get(c,
"shortYearCutoff"),e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10);return{shortYearCutoff:e,dayNamesShort:this._get(c,"dayNamesShort"),dayNames:this._get(c,"dayNames"),monthNamesShort:this._get(c,"monthNamesShort"),monthNames:this._get(c,"monthNames")}},_formatDate:function(c,e,g,i){if(!e)c.currentDay=c.selectedDay,c.currentMonth=c.selectedMonth,c.currentYear=c.selectedYear;e=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(i,g,e)):this._daylightSavingAdjust(new Date(c.currentYear,
c.currentMonth,c.currentDay));return this.formatDate(this._get(c,"dateFormat"),e,this._getFormatConfig(c))}});e.fn.datepicker=function(c){if(!this.length)return this;if(!e.datepicker.initialized)e(document).mousedown(e.datepicker._checkExternalClick).find("body").append(e.datepicker.dpDiv),e.datepicker.initialized=!0;var g=Array.prototype.slice.call(arguments,1);return"string"==typeof c&&("isDisabled"==c||"getDate"==c||"widget"==c)||"option"==c&&2==arguments.length&&"string"==typeof arguments[1]?
e.datepicker["_"+c+"Datepicker"].apply(e.datepicker,[this[0]].concat(g)):this.each(function(){"string"==typeof c?e.datepicker["_"+c+"Datepicker"].apply(e.datepicker,[this].concat(g)):e.datepicker._attachDatepicker(this,c)})};e.datepicker=new i;e.datepicker.initialized=!1;e.datepicker.uuid=(new Date).getTime();e.datepicker.version="1.8.16";window["DP_jQuery_"+l]=e})(jQuery);window.JSON||(window.JSON={});
(function(){function e(c){return 10>c?"0"+c:c}function m(c){return l.lastIndex=0,l.test(c)?'"'+c.replace(l,function(c){var e=k[c];return"string"==typeof e?e:"\\u"+("0000"+c.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+c+'"'}function i(e,g){var h,k,l,o,u=t,D,A=g[e];A&&"object"==typeof A&&"function"==typeof A.toJSON&&(A=A.toJSON(e));"function"==typeof q&&(A=q.call(g,e,A));switch(typeof A){case "string":return m(A);case "number":return isFinite(A)?""+A:"null";case "boolean":case "null":return""+A;
case "object":if(!A)return"null";t+=c;D=[];if("[object Array]"===Object.prototype.toString.apply(A)){o=A.length;for(h=0;h<o;h+=1)D[h]=i(h,A)||"null";return l=0===D.length?"[]":t?"[\n"+t+D.join(",\n"+t)+"\n"+u+"]":"["+D.join(",")+"]",t=u,l}if(q&&"object"==typeof q){o=q.length;for(h=0;h<o;h+=1)k=q[h],"string"==typeof k&&(l=i(k,A),l&&D.push(m(k)+(t?": ":":")+l))}else for(k in A)Object.hasOwnProperty.call(A,k)&&(l=i(k,A),l&&D.push(m(k)+(t?": ":":")+l));return l=0===D.length?"{}":t?"{\n"+t+D.join(",\n"+
t)+"\n"+u+"}":"{"+D.join(",")+"}",t=u,l}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+e(this.getUTCMonth()+1)+"-"+e(this.getUTCDate())+"T"+e(this.getUTCHours())+":"+e(this.getUTCMinutes())+":"+e(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var g=window.JSON,o=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
l=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,t,c,k={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},q;"function"!=typeof g.stringify&&(g.stringify=function(e,g,h){var k;t="";c="";if("number"==typeof h)for(k=0;k<h;k+=1)c+=" ";else"string"==typeof h&&(c=h);q=g;if(!g||"function"==typeof g||"object"==typeof g&&"number"==typeof g.length)return i("",{"":e});throw Error("JSON.stringify");
});"function"!=typeof g.parse&&(g.parse=function(c,e){function g(c,i){var k,l,m=c[i];if(m&&"object"==typeof m)for(k in m)Object.hasOwnProperty.call(m,k)&&(l=g(m,k),void 0!==l?m[k]=l:delete m[k]);return e.call(c,i,m)}var i;c=""+c;o.lastIndex=0;o.test(c)&&(c=c.replace(o,function(c){return"\\u"+("0000"+c.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(c.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,
"")))return i=eval("("+c+")"),"function"==typeof e?g({"":i},""):i;throw new SyntaxError("JSON.parse");})})();(function(e,m){var i=e.History=e.History||{},g=e.jQuery;if("undefined"!=typeof i.Adapter)throw Error("History.js Adapter has already been loaded...");i.Adapter={bind:function(e,i,m){g(e).bind(i,m)},trigger:function(e,i,m){g(e).trigger(i,m)},extractEventData:function(e,g,i){return g&&g.originalEvent&&g.originalEvent[e]||i&&i[e]||m},onDomLoad:function(e){g(e)}};"undefined"!=typeof i.init&&i.init()})(window);
(function(e){var m=e.document,i=e.setInterval||i,g=e.History=e.History||{};if("undefined"!=typeof g.initHtml4)throw Error("History.js HTML4 Support has already been loaded...");g.initHtml4=function(){if("undefined"!=typeof g.initHtml4.initialized)return!1;g.initHtml4.initialized=!0;g.enabled=!0;g.savedHashes=[];g.isLastHash=function(e){var i=g.getHashByIndex(),m;return m=e===i,m};g.saveHash=function(e){return g.isLastHash(e)?!1:(g.savedHashes.push(e),!0)};g.getHashByIndex=function(e){var i;return"undefined"==
typeof e?i=g.savedHashes[g.savedHashes.length-1]:0>e?i=g.savedHashes[g.savedHashes.length+e]:i=g.savedHashes[e],null};g.discardedHashes={};g.discardedStates={};g.discardState=function(e,i,m){var c=g.getHashByState(e),k;return k={discardedState:e,backState:m,forwardState:i},g.discardedStates[c]=k,!0};g.discardHash=function(e,i,m){return g.discardedHashes[e]={discardedHash:e,backState:m,forwardState:i},!0};g.discardedState=function(e){var e=g.getHashByState(e),i;return i=g.discardedStates[e]||!1,i};
g.discardedHash=function(e){return g.discardedHashes[e]||!1};g.recycleState=function(e){var i=g.getHashByState(e);return g.discardedState(e)&&delete g.discardedStates[i],!0};g.emulated.hashChange&&(g.hashChangeInit=function(){g.checkerFunction=null;var o="",l,t,c;return g.isInternetExplorer()?(l=m.createElement("iframe"),l.setAttribute("id","historyjs-iframe"),l.style.display="none",m.body.appendChild(l),l.contentWindow.document.open(),l.contentWindow.document.close(),t="",c=!1,g.checkerFunction=
function(){if(c)return!1;c=!0;var i=g.getHash()||"",m=g.unescapeHash(l.contentWindow.document.location.hash)||"";return i!==o?(o=i,m!==i&&(t=i,l.contentWindow.document.open(),l.contentWindow.document.close(),l.contentWindow.document.location.hash=g.escapeHash(i)),g.Adapter.trigger(e,"hashchange")):m!==t&&(t=m,g.setHash(m,!1)),c=!1,!0}):g.checkerFunction=function(){var c=g.getHash();return c!==o&&(o=c,g.Adapter.trigger(e,"hashchange")),!0},g.intervalList.push(i(g.checkerFunction,g.options.hashChangeInterval)),
!0},g.Adapter.onDomLoad(g.hashChangeInit));g.emulated.pushState&&(g.onHashChange=function(i){var i=g.getHashByUrl(i&&i.newURL||m.location.href),l=null,t;return g.isLastHash(i)?(g.busy(!1),!1):(g.doubleCheckComplete(),g.saveHash(i),i&&g.isTraditionalAnchor(i)?(g.Adapter.trigger(e,"anchorchange"),g.busy(!1),!1):(l=g.extractState(g.getFullUrl(i||m.location.href,!1),!0),g.isLastSavedState(l)?(g.busy(!1),!1):(g.getHashByState(l),t=g.discardedState(l),t?(g.getHashByIndex(-2)===g.getHashByState(t.forwardState)?
g.back(!1):g.forward(!1),!1):(g.pushState(l.data,l.title,l.url,!1),!0))))},g.Adapter.bind(e,"hashchange",g.onHashChange),g.pushState=function(i,l,t,c){if(g.getHashByUrl(t))throw Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(!1!==c&&g.busy())return g.pushQueue({scope:g,callback:g.pushState,args:arguments,queue:c}),!1;g.busy(!0);var k=g.createStateObject(i,l,t),q=g.getHashByState(k),v=g.getState(!1),v=g.getHashByState(v),w=g.getHash();return g.storeState(k),
g.expectedStateId=k.id,g.recycleState(k),g.setTitle(k),q===v?(g.busy(!1),!1):q!==w&&q!==g.getShortUrl(m.location.href)?(g.setHash(q,!1),!1):(g.saveState(k),g.Adapter.trigger(e,"statechange"),g.busy(!1),!0)},g.replaceState=function(e,i,m,c){if(g.getHashByUrl(m))throw Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(!1!==c&&g.busy())return g.pushQueue({scope:g,callback:g.replaceState,args:arguments,queue:c}),!1;g.busy(!0);var k=g.createStateObject(e,i,m),q=
g.getState(!1),v=g.getStateByIndex(-2);return g.discardState(q,k,v),g.pushState(k.data,k.title,k.url,!1),!0});g.emulated.pushState&&g.getHash()&&!g.emulated.hashChange&&g.Adapter.onDomLoad(function(){g.Adapter.trigger(e,"hashchange")})};"undefined"!=typeof g.init&&g.init()})(window);
(function(e,m){var i=e.console||m,g=e.document,o=e.navigator,l=e.sessionStorage||!1,t=e.setTimeout,c=e.clearTimeout,k=e.setInterval,q=e.clearInterval,v=e.JSON,w=e.alert,h=e.History=e.History||{},O=e.history;v.stringify=v.stringify||v.encode;v.parse=v.parse||v.decode;if("undefined"!=typeof h.init)throw Error("History.js Core has already been loaded...");h.init=function(){return"undefined"==typeof h.Adapter?!1:("undefined"!=typeof h.initCore&&h.initCore(),"undefined"!=typeof h.initHtml4&&h.initHtml4(),
!0)};h.initCore=function(){if("undefined"!=typeof h.initCore.initialized)return!1;h.initCore.initialized=!0;h.options=h.options||{};h.options.hashChangeInterval=h.options.hashChangeInterval||100;h.options.safariPollInterval=h.options.safariPollInterval||500;h.options.doubleCheckInterval=h.options.doubleCheckInterval||500;h.options.storeInterval=h.options.storeInterval||1E3;h.options.busyDelay=h.options.busyDelay||250;h.options.debug=h.options.debug||!1;h.options.initialTitle=h.options.initialTitle||
g.title;h.intervalList=[];h.clearAllIntervals=function(){var c,e=h.intervalList;if("undefined"!=typeof e&&null!==e){for(c=0;c<e.length;c++)q(e[c]);h.intervalList=null}};h.debug=function(){h.options.debug&&h.log.apply(h,arguments)};h.log=function(){var c="undefined"!=typeof i&&"undefined"!=typeof i.log&&"undefined"!=typeof i.log.apply,e=g.getElementById("log"),h,k,l,m;c?(k=Array.prototype.slice.call(arguments),h=k.shift(),"undefined"!=typeof i.debug?i.debug.apply(i,[h,k]):i.log.apply(i,[h,k])):h="\n"+
arguments[0]+"\n";for(k=1,l=arguments.length;k<l;++k){m=arguments[k];if("object"==typeof m&&"undefined"!=typeof v)try{m=v.stringify(m)}catch(o){}h+="\n"+m+"\n"}return e?(e.value+=h+"\n-----\n",e.scrollTop=e.scrollHeight-e.clientHeight):c||w(h),!0};h.getInternetExplorerMajorVersion=function(){var c=h.getInternetExplorerMajorVersion,e;if("undefined"!=typeof h.getInternetExplorerMajorVersion.cached)e=h.getInternetExplorerMajorVersion.cached;else{e=3;for(var i=g.createElement("div"),k=i.getElementsByTagName("i");(i.innerHTML=
"<\!--[if gt IE "+ ++e+"]><i></i><![endif]--\>")&&k[0];);e=4<e?e:!1}return c.cached=e};h.isInternetExplorer=function(){return h.isInternetExplorer.cached="undefined"!=typeof h.isInternetExplorer.cached?h.isInternetExplorer.cached:Boolean(h.getInternetExplorerMajorVersion())};h.emulated={pushState:!Boolean(e.history&&e.history.pushState&&e.history.replaceState&&!/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i.test(o.userAgent)&&!/AppleWebKit\/5([0-2]|3[0-2])/i.test(o.userAgent)),hashChange:Boolean(!("onhashchange"in
e||"onhashchange"in g)||h.isInternetExplorer()&&8>h.getInternetExplorerMajorVersion())};h.enabled=!h.emulated.pushState;h.bugs={setHash:Boolean(!h.emulated.pushState&&"Apple Computer, Inc."===o.vendor&&/AppleWebKit\/5([0-2]|3[0-3])/.test(o.userAgent)),safariPoll:Boolean(!h.emulated.pushState&&"Apple Computer, Inc."===o.vendor&&/AppleWebKit\/5([0-2]|3[0-3])/.test(o.userAgent)),ieDoubleCheck:Boolean(h.isInternetExplorer()&&8>h.getInternetExplorerMajorVersion()),hashEscape:Boolean(h.isInternetExplorer()&&
7>h.getInternetExplorerMajorVersion())};h.isEmptyObject=function(c){for(var e in c)return!1;return!0};h.cloneObject=function(c){var e,g;return c?(e=v.stringify(c),g=v.parse(e)):g={},g};h.getRootUrl=function(){var c=g.location.protocol+"//"+(g.location.hostname||g.location.host);g.location.port&&(c+=":"+g.location.port);return c+="/",c};h.getBaseHref=function(){var c=g.getElementsByTagName("base"),e="";return 1===c.length&&(c=c[0],e=null.href.replace(/[^\/]+$/,"")),e=e.replace(/\/+$/,""),e&&(e+="/"),
e};h.getBaseUrl=function(){return h.getBaseHref()||h.getBasePageUrl()||h.getRootUrl()};h.getPageUrl=function(){var c;return c=((h.getState(!1,!1)||{}).url||g.location.href).replace(/\/+$/,"").replace(/[^\/]+$/,function(c){return/\./.test(c)?c:c+"/"}),c};h.getBasePageUrl=function(){return g.location.href.replace(/[#\?].*/,"").replace(/[^\/]+$/,function(c){return/[^\/]$/.test(c)?"":c}).replace(/\/+$/,"")+"/"};h.getFullUrl=function(c,e){var g=c,i=c.substring(0,1);return e="undefined"==typeof e?!0:e,
/[a-z]+\:\/\//.test(c)||("/"===i?g=h.getRootUrl()+c.replace(/^\/+/,""):"#"===i?g=h.getPageUrl().replace(/#.*/,"")+c:"?"===i?g=h.getPageUrl().replace(/[\?#].*/,"")+c:e?g=h.getBaseUrl()+c.replace(/^(\.\/)+/,""):g=h.getBasePageUrl()+c.replace(/^(\.\/)+/,"")),g.replace(/\#$/,"")};h.getShortUrl=function(c){var e=h.getBaseUrl(),g=h.getRootUrl();return h.emulated.pushState&&(c=c.replace(e,"")),c=c.replace(g,"/"),h.isTraditionalAnchor(c)&&(c="./"+c),c=c.replace(/^(\.\/)+/g,"./").replace(/\#$/,""),c};h.store=
{};h.idToState=h.idToState||{};h.stateToId=h.stateToId||{};h.urlToId=h.urlToId||{};h.storedStates=h.storedStates||[];h.savedStates=h.savedStates||[];h.normalizeStore=function(){h.store.idToState=h.store.idToState||{};h.store.urlToId=h.store.urlToId||{};h.store.stateToId=h.store.stateToId||{}};h.getState=function(c,e){"undefined"==typeof c&&(c=!0);"undefined"==typeof e&&(e=!0);var g=h.getLastSavedState();return!g&&e&&(g=h.createStateObject()),c&&(g=h.cloneObject(g),g.url=g.cleanUrl||g.url),g};h.getIdByState=
function(c){var e=h.extractId(c.url),g;if(!e)if(g=h.getStateString(c),"undefined"!=typeof h.stateToId[g])e=h.stateToId[g];else if("undefined"!=typeof h.store.stateToId[g])e=h.store.stateToId[g];else{for(;!(e=(new Date).getTime()+(""+Math.random()).replace(/\D/g,""),"undefined"==typeof h.idToState[e]&&"undefined"==typeof h.store.idToState[e]););h.stateToId[g]=e;h.idToState[e]=c}return e};h.normalizeState=function(c){var e;if(!c||"object"!=typeof c)c={};if("undefined"!=typeof c.normalized)return c;
if(!c.data||"object"!=typeof c.data)c.data={};e={};e.normalized=!0;e.title=c.title||"";e.url=h.getFullUrl(h.unescapeString(c.url||g.location.href));e.hash=h.getShortUrl(e.url);e.data=h.cloneObject(c.data);e.id=h.getIdByState(e);e.cleanUrl=e.url.replace(/\??\&_suid.*/,"");e.url=e.cleanUrl;c=!h.isEmptyObject(e.data);if(e.title||c)e.hash=h.getShortUrl(e.url).replace(/\??\&_suid.*/,""),/\?/.test(e.hash)||(e.hash+="?"),e.hash+="&_suid="+e.id;return e.hashedUrl=h.getFullUrl(e.hash),(h.emulated.pushState||
h.bugs.safariPoll)&&h.hasUrlDuplicate(e)&&(e.url=e.hashedUrl),e};h.createStateObject=function(c,e,g){c={data:c,title:e,url:g};return c=h.normalizeState(c),c};h.getStateById=function(c){c=""+c;return h.idToState[c]||h.store.idToState[c]||m};h.getStateString=function(c){var e,g,i;return e=h.normalizeState(c),g={data:e.data,title:c.title,url:c.url},i=v.stringify(g),i};h.getStateId=function(c){var e,g;return e=h.normalizeState(c),g=e.id,g};h.getHashByState=function(c){var e,g;return e=h.normalizeState(c),
g=e.hash,g};h.extractId=function(c){var e,g;return g=/(.*)\&_suid=([0-9]+)$/.exec(c),e=g?""+(g[2]||""):"",e||!1};h.isTraditionalAnchor=function(c){return!/[\/\?\.]/.test(c)};h.extractState=function(c,e){var g=null,i,k;return e=e||!1,i=h.extractId(c),i&&(g=h.getStateById(i)),g||(k=h.getFullUrl(c),i=h.getIdByUrl(k)||!1,i&&(g=h.getStateById(i)),!g&&e&&!h.isTraditionalAnchor(c)&&(g=h.createStateObject(null,null,k))),g};h.getIdByUrl=function(c){return h.urlToId[c]||h.store.urlToId[c]||m};h.getLastSavedState=
function(){return h.savedStates[h.savedStates.length-1]||m};h.getLastStoredState=function(){return h.storedStates[h.storedStates.length-1]||m};h.hasUrlDuplicate=function(c){var e=!1,g;return g=h.extractState(c.url),e=g&&g.id!==c.id,e};h.storeState=function(c){return h.urlToId[c.url]=c.id,h.storedStates.push(h.cloneObject(c)),c};h.isLastSavedState=function(c){var e,g,i;return h.savedStates.length&&(e=c.id,g=h.getLastSavedState(),i=g.id,c=e===i),!1};h.saveState=function(c){return h.isLastSavedState(c)?
!1:(h.savedStates.push(h.cloneObject(c)),!0)};h.getStateByIndex=function(c){var e;return"undefined"==typeof c?e=h.savedStates[h.savedStates.length-1]:0>c?e=h.savedStates[h.savedStates.length+c]:e=h.savedStates[c],null};h.getHash=function(){return h.unescapeHash(g.location.hash)};h.unescapeString=function(c){for(var g;;){g=e.unescape(c);if(g===c)break;c=g}return c};h.unescapeHash=function(c){c=h.normalizeHash(c);return c=h.unescapeString(c),c};h.normalizeHash=function(c){return c.replace(/[^#]*#/,
"").replace(/#.*/,"")};h.setHash=function(c,e){var i,k,l;return!1!==e&&h.busy()?(h.pushQueue({scope:h,callback:h.setHash,args:arguments,queue:e}),!1):(i=h.escapeHash(c),h.busy(!0),k=h.extractState(c,!0),k&&!h.emulated.pushState?h.pushState(k.data,k.title,k.url,!1):g.location.hash!==i&&(h.bugs.setHash?(l=h.getPageUrl(),h.pushState(null,null,l+"#"+i,!1)):g.location.hash=i),h)};h.escapeHash=function(c){c=h.normalizeHash(c);return c=e.escape(c),h.bugs.hashEscape||(c=c.replace(/\%21/g,"!").replace(/\%26/g,
"&").replace(/\%3D/g,"=").replace(/\%3F/g,"?")),c};h.getHashByUrl=function(c){c=(""+c).replace(/([^#]*)#?([^#]*)#?(.*)/,"$2");return c=h.unescapeHash(c),c};h.setTitle=function(c){var e=c.title,i;e||(i=h.getStateByIndex(0),i&&i.url===c.url&&(e=i.title||h.options.initialTitle));try{g.getElementsByTagName("title")[0].innerHTML=e.replace("<","&lt;").replace(">","&gt;").replace(" & "," &amp; ")}catch(k){}return g.title=e,h};h.queues=[];h.busy=function(e){"undefined"!=typeof e?h.busy.flag=e:"undefined"==
typeof h.busy.flag&&(h.busy.flag=!1);if(!h.busy.flag){c(h.busy.timeout);var g=function(){var c,e,i;if(!h.busy.flag)for(c=h.queues.length-1;0<=c;--c)if(e=h.queues[c],0!==e.length)i=e.shift(),h.fireQueueItem(i),h.busy.timeout=t(g,h.options.busyDelay)};h.busy.timeout=t(g,h.options.busyDelay)}return h.busy.flag};h.busy.flag=!1;h.fireQueueItem=function(c){return c.callback.apply(c.scope||h,c.args||[])};h.pushQueue=function(c){return h.queues[c.queue||0]=h.queues[c.queue||0]||[],h.queues[c.queue||0].push(c),
h};h.queue=function(c,e){return"function"==typeof c&&(c={callback:c}),"undefined"!=typeof e&&(c.queue=e),h.busy()?h.pushQueue(c):h.fireQueueItem(c),h};h.clearQueue=function(){return h.busy.flag=!1,h.queues=[],h};h.stateChanged=!1;h.doubleChecker=!1;h.doubleCheckComplete=function(){return h.stateChanged=!0,h.doubleCheckClear(),h};h.doubleCheckClear=function(){return h.doubleChecker&&(c(h.doubleChecker),h.doubleChecker=!1),h};h.doubleCheck=function(c){return h.stateChanged=!1,h.doubleCheckClear(),h.bugs.ieDoubleCheck&&
(h.doubleChecker=t(function(){return h.doubleCheckClear(),h.stateChanged||c(),!0},h.options.doubleCheckInterval)),h};h.safariStatePoll=function(){var c=h.extractState(g.location.href);if(!h.isLastSavedState(c))return c||h.createStateObject(),h.Adapter.trigger(e,"popstate"),h};h.back=function(c){return!1!==c&&h.busy()?(h.pushQueue({scope:h,callback:h.back,args:arguments,queue:c}),!1):(h.busy(!0),h.doubleCheck(function(){h.back(!1)}),O.go(-1),!0)};h.forward=function(c){return!1!==c&&h.busy()?(h.pushQueue({scope:h,
callback:h.forward,args:arguments,queue:c}),!1):(h.busy(!0),h.doubleCheck(function(){h.forward(!1)}),O.go(1),!0)};h.go=function(c,e){var g;if(0<c)for(g=1;g<=c;++g)h.forward(e);else{if(!(0>c))throw Error("History.go: History.go requires a positive or negative integer passed.");for(g=-1;g>=c;--g)h.back(e)}return h};if(h.emulated.pushState){var z=function(){};h.pushState=h.pushState||z;h.replaceState=h.replaceState||z}else h.onPopState=function(c,i){var k=!1,l=!1,m,o;return h.doubleCheckComplete(),m=
h.getHash(),m?(o=h.extractState(m||g.location.href,!0),o?h.replaceState(o.data,o.title,o.url,!1):(h.Adapter.trigger(e,"anchorchange"),h.busy(!1)),h.expectedStateId=!1,!1):(k=h.Adapter.extractEventData("state",c,i)||!1,k?l=h.getStateById(k):h.expectedStateId?l=h.getStateById(h.expectedStateId):l=h.extractState(g.location.href),l||(l=h.createStateObject(null,null,g.location.href)),h.expectedStateId=!1,h.isLastSavedState(l)?(h.busy(!1),!1):(h.storeState(l),h.saveState(l),h.setTitle(l),h.Adapter.trigger(e,
"statechange"),h.busy(!1),!0))},h.Adapter.bind(e,"popstate",h.onPopState),h.pushState=function(c,g,i,k){if(h.getHashByUrl(i)&&h.emulated.pushState)throw Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(!1!==k&&h.busy())return h.pushQueue({scope:h,callback:h.pushState,args:arguments,queue:k}),!1;h.busy(!0);var l=h.createStateObject(c,g,i);return h.isLastSavedState(l)?h.busy(!1):(h.storeState(l),h.expectedStateId=l.id,O.pushState(l.id,l.title,l.url),h.Adapter.trigger(e,
"popstate")),!0},h.replaceState=function(c,g,i,k){if(h.getHashByUrl(i)&&h.emulated.pushState)throw Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(!1!==k&&h.busy())return h.pushQueue({scope:h,callback:h.replaceState,args:arguments,queue:k}),!1;h.busy(!0);var l=h.createStateObject(c,g,i);return h.isLastSavedState(l)?h.busy(!1):(h.storeState(l),h.expectedStateId=l.id,O.replaceState(l.id,l.title,l.url),h.Adapter.trigger(e,"popstate")),!0};if(l){try{h.store=
v.parse(l.getItem("History.store"))||{}}catch(K){h.store={}}h.normalizeStore()}else h.store={},h.normalizeStore();h.Adapter.bind(e,"beforeunload",h.clearAllIntervals);h.Adapter.bind(e,"unload",h.clearAllIntervals);h.saveState(h.storeState(h.extractState(g.location.href,!0)));l&&(h.onUnload=function(){var c,e;try{c=v.parse(l.getItem("History.store"))||{}}catch(g){c={}}c.idToState=c.idToState||{};c.urlToId=c.urlToId||{};c.stateToId=c.stateToId||{};for(e in h.idToState)h.idToState.hasOwnProperty(e)&&
(c.idToState[e]=h.idToState[e]);for(e in h.urlToId)h.urlToId.hasOwnProperty(e)&&(c.urlToId[e]=h.urlToId[e]);for(e in h.stateToId)h.stateToId.hasOwnProperty(e)&&(c.stateToId[e]=h.stateToId[e]);h.store=c;h.normalizeStore();l.setItem("History.store",v.stringify(c))},h.intervalList.push(k(h.onUnload,h.options.storeInterval)),h.Adapter.bind(e,"beforeunload",h.onUnload),h.Adapter.bind(e,"unload",h.onUnload));if(!h.emulated.pushState&&(h.bugs.safariPoll&&h.intervalList.push(k(h.safariStatePoll,h.options.safariPollInterval)),
"Apple Computer, Inc."===o.vendor||"Mozilla"===(o.appCodeName||"")))h.Adapter.bind(e,"hashchange",function(){h.Adapter.trigger(e,"popstate")}),h.getHash()&&h.Adapter.onDomLoad(function(){h.Adapter.trigger(e,"hashchange")})};h.init()})(window);(function(e){e.fn.easySlider=function(m){m=e.extend({prevId:"prevBtn",prevText:"Previous",nextId:"nextBtn",nextText:"Next",controlsShow:!0,controlsBefore:"",controlsAfter:"",controlsFade:!0,firstId:"firstBtn",firstText:"First",firstShow:!1,lastId:"lastBtn",lastText:"Last",lastShow:!1,vertical:!1,speed:800,auto:!1,pause:2E3,continuous:!1,numeric:!1,numericId:"controls"},m);this.each(function(){function i(c){c=parseInt(c)+1;e("li","#"+m.numericId).removeClass("current");e("li#"+m.numericId+c).addClass("current")}
function g(){w>v&&(w=0);0>w&&(w=v);m.vertical?e("ul",l).css("margin-left",-1*w*k):e("ul",l).css("margin-left",-1*w*c);q=!0;m.numeric&&i(w)}function o(h,i){if(q){q=!1;var t=w;switch(h){case "next":w=t>=v?m.continuous?w+1:v:w+1;break;case "prev":w=0>=w?m.continuous?w-1:0:w-1;break;case "first":w=0;break;case "last":w=v;break;default:w=h}var t=Math.abs(t-w),D=t*m.speed;m.vertical?(p=-1*w*k,e("ul",l).animate({marginTop:p},{queue:!1,duration:D,complete:g})):(p=-1*w*c,e("ul",l).animate({marginLeft:p},{queue:!1,
duration:D,complete:g}));!m.continuous&&m.controlsFade&&(w==v?(e("a","#"+m.nextId).hide(),e("a","#"+m.lastId).hide()):(e("a","#"+m.nextId).show(),e("a","#"+m.lastId).show()),0==w?(e("a","#"+m.prevId).hide(),e("a","#"+m.firstId).hide()):(e("a","#"+m.prevId).show(),e("a","#"+m.firstId).show()));i&&clearTimeout(O);m.auto&&"next"==h&&!i&&(O=setTimeout(function(){o("next",!1)},t*m.speed+m.pause))}}var l=e(this),t=e("li",l).length,c=e("li",l).width(),k=e("li",l).height(),q=!0;l.width(c);l.height(k);l.css("overflow",
"hidden");var v=t-1,w=0;e("ul",l).css("width",t*c);m.continuous&&(e("ul",l).prepend(e("ul li:last-child",l).clone().css("margin-left","-"+c+"px")),e("ul",l).append(e("ul li:nth-child(2)",l).clone()),e("ul",l).css("width",(t+1)*c));m.vertical||e("li",l).css("float","left");if(m.controlsShow){var h=m.controlsBefore;m.numeric?h+='<ol id="'+m.numericId+'"></ol>':(m.firstShow&&(h+='<span id="'+m.firstId+'"><a href="javascript:void(0);">'+m.firstText+"</a></span>"),h+=' <span id="'+m.prevId+'"><a href="javascript:void(0);">'+
m.prevText+"</a></span>",h+=' <span id="'+m.nextId+'"><a href="javascript:void(0);">'+m.nextText+"</a></span>",m.lastShow&&(h+=' <span id="'+m.lastId+'"><a href="javascript:void(0);">'+m.lastText+"</a></span>"));h+=m.controlsAfter;e(l).after(h)}if(m.numeric)for(h=0;h<t;h++)e(document.createElement("li")).attr("id",m.numericId+(h+1)).html("<a rel="+h+' href="javascript:void(0);">'+(h+1)+"</a>").appendTo(e("#"+m.numericId)).click(function(){o(e("a",e(this)).attr("rel"),!0)});else e("a","#"+m.nextId).click(function(){o("next",
!0)}),e("a","#"+m.prevId).click(function(){o("prev",!0)}),e("a","#"+m.firstId).click(function(){o("first",!0)}),e("a","#"+m.lastId).click(function(){o("last",!0)});var O;m.auto&&(O=setTimeout(function(){o("next",!1)},m.pause));m.numeric&&i(0);!m.continuous&&m.controlsFade&&(e("a","#"+m.prevId).hide(),e("a","#"+m.firstId).hide())})}})(jQuery);(function(e){e.fn.sudoSlider=function(m){var i=!1,g=!i,o=this,m=e.extend({controlsShow:g,controlsFadeSpeed:400,controlsFade:g,insertAfter:g,firstShow:i,lastShow:i,vertical:i,speed:800,ease:"swing",auto:i,pause:2E3,continuous:i,prevNext:g,numeric:i,numericAttr:'class="controls"',numericText:[],clickableAni:i,history:i,speedhistory:400,autoheight:g,customLink:i,fade:i,crossFade:g,fadespeed:1E3,updateBefore:i,ajax:i,preloadAjax:100,startSlide:i,ajaxLoadFunction:i,beforeAniFunc:i,afterAniFunc:i,uncurrentFunc:i,
currentFunc:i,prevHtml:'<a href="#" class="prevBtn"> previous </a>',nextHtml:'<a href="#" class="nextBtn"> next </a>',loadingText:"Loading Content...",firstHtml:'<a href="#" class="firstBtn"> first </a>',controlsAttr:'id="controls"',lastHtml:'<a href="#" class="lastBtn"> last </a>',autowidth:g,slideCount:1,resumePause:i,moveCount:1},m);return this.each(function(){function l(c,h){ja=0;for(y in Ea)r[ja]=Ea[y],ja++;da=i;T=g;ba=c.children("ul");G=ba.children("li");N=G.length;if(r[25]&&(0==ba.length&&
c.append(ba=e("<ul></ul>")),r[25].length>N)){for(y=1;y<=r[25].length-N;y++)ba.append("<li><p>"+r[35]+"</p></li>");G=ba.children("li");N=G.length}ea=C=0;ga=N-1;X=g;ia=s=ha=i;ka=[];da=i;"static"==c.css("position")&&c.css("position","relative");G.css({"float":"left",display:"block"});r[40]=E(r[40]);r[42]--;qa=r[40];r[21]||(r[40]+=r[42]);r[27]=E(r[27])||1;Ba=r[11]&&(!r[21]||1<r[40]);for(y=0;y<N;y++)r[15][y]=r[15][y]||y+1,r[25][y]=r[25][y]||i;for(S=0;S<N;S++)void 0==ta[S]&&(ta[S]=[]),ta[S].push(G.eq(S));
if(Ba){for(S=r[40];1<=S;S--){var l=H(-r[40]+S-1),m=H(r[40]-S),o=G.eq(l).clone(),R=G.eq(m).clone();ta[l].push(o);ta[m].push(R);ba.prepend(o).append(R)}P=ba.children("li");if(r[25])for(y=N-r[40];y<N;y++)r[25][y]&&y!=r[27]-1&&x(y,i,0,i)}r[2]=r[2]&&!r[11];ba[r[6]?"height":"width"](1E7);P=ba.children("li");ca=i;if(r[0]){ca=e("<span "+r[37]+"></span>");e(c)[r[3]?"after":"before"](ca);if(r[13]){la=ca.prepend("<ol "+r[14]+"></ol>").children();ja="pages"==r[13]?qa:1;for(y=0;y<N-(r[11]||"pages"==r[13]?1:qa)+
1;y+=ja)ka[y]=e("<li rel='"+(y+1)+"'><a href='#'><span>"+r[15][y]+"</span></a></li>").appendTo(la).click(function(){w(e(this).attr("rel")-1,g);return i})}r[4]&&(Z=v(r[36],"first"));r[5]&&(W=v(r[38],"last"));r[12]&&(oa=v(r[34],"next"),xa=v(r[33],"prev"))}if(r[26]===g)for(S=0;S<=ga;S++)r[25][S]&&r[27]-1!=S&&x(S,i,0,i);ja=[1,7,10,18,23];for(y in ja)r[E(ja[y])]=q(r[E(ja[y])]);r[20]&&e(r[20]).live("click",function(){if(y=e(this).attr("rel"))"stop"==y?(r[9]=i,clearTimeout(ma),pa=i):"start"==y?(ma=k(r[10]),
r[9]=g):"block"==y?X=i:"unblock"==y?X=g:X&&w(y==E(y)?y-1:y,g);return i});u(P.slice(0,r[40]),g,function(){r[9]&&(ma=k(r[10]));h?j(h,i,i,i):r[17]?(y=e(window),(S=y.hashchange)?S(t):(S=e.address)?S.change(t):y.bind("hashchange",t),t()):j(r[27]-1,i,i,i)})}function t(){a:{var c=location.hash.substr(1);for(S in r[15])if(r[15][S]==c)break a;S=c?C:0}T?j(S,i,i,i):S!=C&&w(S,i)}function c(){if(r[25]&&E(r[26]))for(y in r[25])if(r[25][y]){clearTimeout(Ca);Ca=setTimeout(function(){x(y,i,0,i)},E(r[26]));break}}
function k(c){pa=g;return setTimeout(function(){w("next",i)},c)}function q(c){return E(c)||0==c?E(c):"fast"==c?200:"normal"==c||"medium"==c?400:"slow"==c?600:400}function v(c,h){return e(c).prependTo(ca).click(function(){w(h,g);return i})}function w(c,e,h){Aa=i;if(!da){if(r[9]){var l=r[7];s&&r[22]?l=E(0.6*l):s&&(l=0);e?(clearTimeout(ma),pa=i,r[41]&&(ma=k(l+r[41]))):ma=k(r[10]+l)}r[21]?sa(c,e,h):(r[11]?(c=y=aa(c),l=Math.abs(C-y),y<r[40]-qa+1&&Math.abs(C-y-N)<l&&(c=y+N,l=Math.abs(C-y-N)),y>ga-r[40]&&
Math.abs(C-y+N)<l&&(c=y-N)):c=aa(c),j(c,e,g,i,h))}}function h(c,g,h){if(h)var h=oa,i=W,j="next",k="last",l=r[5];else h=xa,i=Z,j="prev",k="first",l=r[4];if(r[0]){if(r[12])h[c?"fadeIn":"fadeOut"](g);if(l)i[c?"fadeIn":"fadeOut"](g)}if(r[20])e(r[20]).filter(function(){return e(this).attr("rel")==j||e(this).attr("rel")==k})[c?"fadeIn":"fadeOut"](g)}function O(c,e){h(c,e,i);h(c<N-qa,e,g)}function z(c){c=H(c)+1;if(r[13])for(y in ka)K(ka[y],c);r[20]&&K(e(r[20]),c)}function K(c,h){c.filter&&(c.filter(".current").removeClass("current").each(function(){e.isFunction(r[31])&&
r[31].call(this,e(this).attr("rel"))}),c.filter(function(){ja=e(this).attr("rel");if("pages"==r[13])for(y=0;y<qa;y++){if(ja==h-y)return g}else return ja==h;return i}).addClass("current").each(function(){e.isFunction(r[32])&&r[32].call(this,h)}))}function u(c,g,h){function i(c,g){e(c).unbind("load").unbind("error");c.naturalHeight&&!c.clientHeight&&e(c).height(c.naturalHeight).width(c.naturalWidth);g?("both"==g&&h(),j--,0==j&&h()):h()}var c=c.add(c.find("img")).filter("img"),j=c.length;if(!j)return h(),
this;c.each(function(){var c=this;e(c).load(function(){i(c)}).error(function(){i(c)});if("complete"==c.readyState)i(c);else if(c.readyState)c.src=c.src;else if(c.complete)i(c);else if(void 0===c.complete){var g=c.src;c.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";c.src=g}})}function D(c,e){r[19]&&A(c,e,g);r[39]&&A(c,e,i)}function A(c,e,g){Da.ready(function(){J(c,e,g);u(G.eq(c),i,function(){J(c,e,g)})})}function J(c,e,g){c=H(c);ja=G.eq(c)[g?"height":"width"]();Da.animate(g?
{height:ja}:{width:ja},{queue:i,duration:e,easing:r[8]})}function B(){ba.css("margin-left",I(C,!1)).css("margin-top",I(C,!0))}function I(c,e){c=P.eq(c+(Ba?r[40]:0));return c.length?-c.position()[e?"top":"left"]:0}function V(){C=H(C);r[24]||z(C);B();X=g;if(r[17]&&ha)window.location.hash=r[15][C];!s&&Aa&&L(C,g)}function L(c,e){c=H(c);for(y in ta[c])(e?M:Y)(ta[c][y],c+1)}function M(c,g){e.isFunction(r[30])&&r[30].call(c,g)}function Y(c,g){e.isFunction(r[29])&&r[29].call(c,g)}function aa(c){return"next"==
c?H(C+1+r[42]):"prev"==c?H(C-1-r[42]):"first"==c?0:"last"==c?ga:E(c)}function x(c,h,j,k){Ca&&clearTimeout(Ca);var l=r[25][c],m=G.eq(c),o=j===g,j=j===g?0:j;s&&!r[22]&&E(0.4*r[23]);var q=i;e.ajax({url:l,success:function(e,l,r){"image"!=r.getResponseHeader("Content-Type").substr(0,5)&&(q=g,m.html(e),wa(c,j,k,h,o,i))},complete:function(){if(!q)image=new Image,m.html("").append(image),image.src=l,wa(c,j,k,h,o,g)}});r[25][c]=i;Ea.ajax[c]=i}function wa(h,j,k,l,m,o){var s=G.eq(h);if(Ba){var q=i;for(y in ta[h])q&&
ta[h][y].replaceWith(e(s).clone()),q=g;P=ba.children("li")}l&&D(h,j);u(s,g,function(){m===g&&B();e.isFunction(k)&&k();c()});e.isFunction(r[28])&&r[28].call(s,E(h)+1,o);2==k&&(L(h,i),Aa||(L(h,g),Aa=g))}function sa(c,h,k){if(aa(c)!=C&&!da&&X){ia=i;r[24]&&z(aa(c));if(!(l||0==l))var l=!h&&!r[9]&&r[17]?r[23]*(r[18]/r[7]):r[23],m=aa(c);r[2]&&O(m,r[1]);if(k)l=za,R&&R--;else if(r[25]){R=0;za=l;for(y=m;y<m+qa;y++)r[25][y]&&(x(H(y),i,l,function(){sa(c,h,g)}),R++)}else R=i;if(!R)if(X=!h,D(m,r[23]),L(m,i),r[22]){var o=
g,k=0;for(y=m;y<m+qa;y++)l=G.eq(H(y)).clone().prependTo(Da),e.isFunction(r[29])&&r[29].call(l,H(y)+1),l.css({"z-index":"100000",position:"absolute","list-style":"none",top:r[6]?k:0,left:r[6]?0:k}).hide().fadeIn(r[23],r[8],function(){screen.fontSmoothingEnabled&&this.style.removeAttribute("filter");s=X=g;if(o){j(m,i,i,i);if(r[17]&&h)window.location.hash=r[15][C];L(m,g);o=i}e(this).remove();s=i}),k+=G.eq(y)[r[6]?"outerHeight":"outerWidth"](g)}else{var q=E(0.6*l),t=l-q;P.each(function(){e(this).animate({opacity:1.0E-4},
{queue:i,duration:t,easing:r[8],complete:function(){s=X=g;j(m,i,i,i);X=!h;e(this).animate({opacity:1},{queue:i,duration:q,easing:r[8],complete:function(){screen.fontSmoothingEnabled&&this.style.removeAttribute("filter");if(r[17]&&h)window.location.hash=r[15][C];X=g;s=i;L(m,g)}})}})})}}}function j(e,h,k,l,m){if(X&&!da&&(e!=C||T)&&N>H(e)||l){l||(ia=i);X=!h&&!r[9]?g:r[16];ha=h;ea=C;C=e;r[24]&&z(C);var o=Math.sqrt(Math.abs(ea-C));if(!(m||0==m))var m=!k?0:!h&&!r[9]?E(o*r[18]):E(o*r[7]),q=H(C);if(l)m=za,
Q&&Q--;else if(r[25]){r[25][q]&&(x(q,g,T||m,2),ia=g);if(!s){l=ea>C?C:ea;o=ea>C?ea:C;Q=0;za=m;for(y=l;y<=o;y++)y<=ga&&0<=y&&r[25][y]&&(x(y,i,m,function(){j(e,h,k,g)}),Q++)}for(y=q+1;y<=q+qa;y++)r[25][y]&&x(y,i,0,i)}Q||(!s&&!ia&&(L(q,i),Aa=g),s||D(C,m),ba.animate({marginTop:I(C,!0),marginLeft:I(C,!1)},{queue:i,duration:m,easing:r[8],complete:V}),r[2]&&(m=r[1],!h&&!r[9]&&(m=r[18]/r[7]*r[1]),k||(m=0),s&&(m=E(0.6*r[23])),O(C,m)),T&&(r[25][q]||c()),T=i)}}function H(c){for(c=E(c);0>c;)c+=N;return c%N}function E(c){return parseInt(c,
10)}var T,ba,G,P,N,C,ea,ga,X,ha,s,ia,ka,la,da,ca,Z,W,oa,xa,ma,ra,za,Q,R,pa,y,ja,S,Ba,qa,Aa=i,Ca,ta=[],Da=e(this),Ea=m,r=[];l(Da,i);o.getOption=function(c){return Ea[c]};o.setOption=function(c,e){o.destroy();Ea[c]=e;o.init();return o};o.insertSlide=function(c,e,g){o.destroy();e>N&&(e=N);c="<li>"+c+"</li>";!e||0==e?ba.prepend(c):G.eq(e-1).after(c);(e<=ra||!e||0==e)&&ra++;if(r[15].length<e)r[15].length=e;r[15].splice(e,0,g||E(e)+1);o.init();return o};o.removeSlide=function(c){c--;o.destroy();G.eq(c).remove();
r[15].splice(c,1);c<ra&&ra--;o.init();return o};o.goToSlide=function(c,e){w(c==E(c)?c-1:c,g,e);return o};o.block=function(){X=i;return o};o.unblock=function(){X=g;return o};o.startAuto=function(){r[9]=g;ma=k(r[10]);return o};o.stopAuto=function(){r[9]=i;clearTimeout(ma);pa=i;return o};o.destroy=function(){ra=C;ca&&ca.remove();da=g;e(r[20]).die("click");if(Ba)for(y=1;y<=r[40];y++)P.eq(y-1).add(P.eq(-y)).remove();B();return o};o.init=function(){da&&l(Da,ra);return o};o.adjust=function(c){c||(c=0);D(S,
c);return o};o.getValue=function(c){return"currentSlide"==c?C+1:"totalSlides"==c?N:"clickable"==c?X:"destroyed"==c?da:"autoAnimation"==c?pa:void 0}})}})(jQuery);(function(e,m,i){function g(c,g,i){i=m.createElement("div");if(c)i.id=h+c;i.style.cssText=g||"";return e(i)}function o(c,e){return Math.round((/%/.test(c)?("x"===e?E.width():E.height())/100:1)*parseInt(c,10))}function l(c){return s.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(c)}function t(c){s=e.extend({},e.data(ca,w));for(c in s)e.isFunction(s[c])&&"on"!==c.substring(0,2)&&(s[c]=s[c].call(ca));s.rel=s.rel||ca.rel||"nofollow";s.href=s.href||e(ca).attr("href");s.title=s.title||
ca.title;if("string"===typeof s.href)s.href=e.trim(s.href)}function c(c,g){g&&g.call(ca);e.event.trigger(c)}function k(){var c,e=h+"Slideshow_",g="click."+h,i,j;s.slideshow&&H[1]?(i=function(){C.text(s.slideshowStop).unbind(g).bind(u,function(){if(Z<H.length-1||s.loop)c=setTimeout(Q.next,s.slideshowSpeed)}).bind(K,function(){clearTimeout(c)}).one(g+" "+D,j);M.removeClass(e+"off").addClass(e+"on");c=setTimeout(Q.next,s.slideshowSpeed)},j=function(){clearTimeout(c);C.text(s.slideshowStart).unbind([u,
K,D,g].join(" ")).one(g,i);M.removeClass(e+"on").addClass(e+"off")},s.slideshowAuto?i():j()):M.removeClass(e+"off "+e+"on")}function q(g){if(!ma){ca=g;t();H=e(ca);Z=0;"nofollow"!==s.rel&&(H=e("."+O).filter(function(){return(e.data(this,w).rel||this.rel)===s.rel}),Z=H.index(ca),-1===Z&&(H=H.add(ca),Z=H.length-1));if(!oa){oa=xa=!0;M.show();if(s.returnFocus)try{ca.blur(),e(ca).one(A,function(){try{this.focus()}catch(c){}})}catch(h){}L.css({opacity:+s.opacity,cursor:s.overlayClose?"pointer":"auto"}).show();
s.w=o(s.initialWidth,"x");s.h=o(s.initialHeight,"y");Q.position();I&&E.bind("resize."+V+" scroll."+V,function(){L.css({width:E.width(),height:E.height(),top:E.scrollTop(),left:E.scrollLeft()})}).trigger("resize."+V);c(z,s.onOpen);ha.add(P).hide();X.html(s.close).show()}Q.load(!0)}}var v={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,
photo:!1,href:!1,title:!1,rel:!1,opacity:0.9,preloading:!0,current:"Afbeelding {current} van {total}",previous:"vorige",next:"volgende",close:"sluiten",open:!1,returnFocus:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start diavoorstelling",slideshowStop:"stop diavoorstelling",onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:!1},w="colorbox",h="cbox",O=h+"Element",z=h+"_open",
K=h+"_load",u=h+"_complete",D=h+"_cleanup",A=h+"_closed",J=h+"_purge",B=e.browser.msie&&!e.support.opacity,I=B&&7>e.browser.version,V=h+"_IE6",L,M,Y,aa,x,wa,sa,j,H,E,T,ba,G,P,N,C,ea,ga,X,ha,s,ia,ka,la,da,ca,Z,W,oa,xa,ma,ra,za,Q;Q=e.fn[w]=e[w]=function(c,g){var h=this,c=c||{};if(!h[0]){if(h.selector)return h;h=e("<a/>");c.open=!0}if(g)c.onComplete=g;h.each(function(){e.data(this,w,e.extend({},e.data(this,w)||v,c));e(this).addClass(O)});(e.isFunction(c.open)&&c.open.call(h)||c.open)&&q(h[0]);return h};
Q.init=function(){E=e(i);M=g().attr({id:w,"class":B?h+(I?"IE6":"IE"):""});L=g("Overlay",I?"position:absolute":"").hide();Y=g("Wrapper");aa=g("Content").append(T=g("LoadedContent","width:0; height:0; overflow:hidden"),G=g("LoadingOverlay").add(g("LoadingGraphic")),P=g("Title"),N=g("Current"),ea=g("Next"),ga=g("Previous"),C=g("Slideshow").bind(z,k),X=g("Close"));Y.append(g().append(g("TopLeft"),x=g("TopCenter"),g("TopRight")),g(!1,"clear:left").append(wa=g("MiddleLeft"),aa,sa=g("MiddleRight")),g(!1,
"clear:left").append(g("BottomLeft"),j=g("BottomCenter"),g("BottomRight"))).children().children().css({"float":"left"});ba=g(!1,"position:absolute; width:9999px; visibility:hidden; display:none");e("body").prepend(L,M.append(Y,ba));aa.children().hover(function(){e(this).addClass("hover")},function(){e(this).removeClass("hover")}).addClass("hover");ia=x.height()+j.height()+aa.outerHeight(!0)-aa.height();ka=wa.width()+sa.width()+aa.outerWidth(!0)-aa.width();la=T.outerHeight(!0);da=T.outerWidth(!0);
M.css({"padding-bottom":ia,"padding-right":ka}).hide();ea.click(function(){Q.next()});ga.click(function(){Q.prev()});X.click(function(){Q.close()});ha=ea.add(ga).add(N).add(C);aa.children().removeClass("hover");L.click(function(){s.overlayClose&&Q.close()});e(m).bind("keydown."+h,function(c){var e=c.keyCode;oa&&s.escKey&&27===e&&(c.preventDefault(),Q.close());oa&&s.arrowKey&&H[1]&&(37===e?(c.preventDefault(),ga.click()):39===e&&(c.preventDefault(),ea.click()))})};Q.remove=function(){M.add(L).remove();
e("."+O).removeData(w).removeClass(O)};Q.position=function(c,e){function g(c){x[0].style.width=j[0].style.width=aa[0].style.width=c.style.width;G[0].style.height=G[1].style.height=aa[0].style.height=wa[0].style.height=sa[0].style.height=c.style.height}var i=0,k=0;E.unbind("resize."+h);M.hide();s.fixed&&!I?M.css({position:"fixed"}):(i=E.scrollTop(),k=E.scrollLeft(),M.css({position:"absolute"}));k=!1!==s.right?k+Math.max(E.width()-s.w-da-ka-o(s.right,"x"),0):!1!==s.left?k+o(s.left,"x"):k+Math.round(Math.max(E.width()-
s.w-da-ka,0)/2);i=!1!==s.bottom?i+Math.max(m.documentElement.clientHeight-s.h-la-ia-o(s.bottom,"y"),0):!1!==s.top?i+o(s.top,"y"):i+Math.round(Math.max(m.documentElement.clientHeight-s.h-la-ia,0)/2);M.show();c=M.width()===s.w+da&&M.height()===s.h+la?0:c||0;Y[0].style.width=Y[0].style.height="9999px";M.dequeue().animate({width:s.w+da,height:s.h+la,top:i,left:k},{duration:c,complete:function(){g(this);xa=!1;Y[0].style.width=s.w+da+ka+"px";Y[0].style.height=s.h+la+ia+"px";e&&e();setTimeout(function(){E.bind("resize."+
h,Q.position)},1)},step:function(){g(this)}})};Q.resize=function(c){if(oa){c=c||{};if(c.width)s.w=o(c.width,"x")-da-ka;if(c.innerWidth)s.w=o(c.innerWidth,"x");T.css({width:s.w});if(c.height)s.h=o(c.height,"y")-la-ia;if(c.innerHeight)s.h=o(c.innerHeight,"y");if(!c.innerHeight&&!c.height)c=T.wrapInner("<div style='overflow:auto'></div>").children(),s.h=c.height(),c.replaceWith(c.children());T.css({height:s.h});Q.position("none"===s.transition?0:s.speed)}};Q.prep=function(i){if(oa){var j,k="none"===
s.transition?0:s.speed;T.remove();T=g("LoadedContent").append(i);T.hide().appendTo(ba.show()).css({width:function(){s.w=s.w||T.width();s.w=s.mw&&s.mw<s.w?s.mw:s.w;return s.w}(),overflow:s.scrolling?"auto":"hidden"}).css({height:function(){s.h=s.h||T.height();s.h=s.mh&&s.mh<s.h?s.mh:s.h;return s.h}()}).prependTo(aa);ba.hide();e(W).css({"float":"none"});if(I)e("select").not(M.find("select")).filter(function(){return"hidden"!==this.style.visibility}).css({visibility:"hidden"}).one(D,function(){this.style.visibility=
"inherit"});j=function(){function g(){B&&M[0].style.removeAttribute("filter")}var i,j,m,o;j=H.length;var q,t;if(oa){t=function(){clearTimeout(za);G.hide();c(u,s.onComplete)};B&&W&&T.fadeIn(100);P.html(s.title).add(T).show();if(1<j){if("string"===typeof s.current&&N.html(s.current.replace("{current}",Z+1).replace("{total}",j)).show(),ea[s.loop||Z<j-1?"show":"hide"]().html(s.next),ga[s.loop||Z?"show":"hide"]().html(s.previous),i=Z?H[Z-1]:H[j-1],m=Z<j-1?H[Z+1]:H[0],s.slideshow&&C.show(),s.preloading){o=
e.data(m,w).href||m.href;j=e.data(i,w).href||i.href;o=e.isFunction(o)?o.call(m):o;j=e.isFunction(j)?j.call(i):j;if(l(o))e("<img/>")[0].src=o;if(l(j))e("<img/>")[0].src=j}}else ha.hide();if(s.iframe){q=e("<iframe/>").addClass(h+"Iframe")[0];if(s.fastIframe)t();else e(q).one("load",t);q.name=h+ +new Date;q.src=s.href;if(!s.scrolling)q.scrolling="no";if(B)q.frameBorder=0,q.allowTransparency="true";e(q).appendTo(T).one(J,function(){q.src="//about:blank"})}else t();"fade"===s.transition?M.fadeTo(k,1,g):
g()}};"fade"===s.transition?M.fadeTo(k,0,function(){Q.position(0,j)}):Q.position(k,j)}};Q.load=function(i){var j,k,m=Q.prep;xa=!0;W=!1;ca=H[Z];i||t();c(J);c(K,s.onLoad);s.h=s.height?o(s.height,"y")-la-ia:s.innerHeight&&o(s.innerHeight,"y");s.w=s.width?o(s.width,"x")-da-ka:s.innerWidth&&o(s.innerWidth,"x");s.mw=s.w;s.mh=s.h;if(s.maxWidth)s.mw=o(s.maxWidth,"x")-da-ka,s.mw=s.w&&s.w<s.mw?s.w:s.mw;if(s.maxHeight)s.mh=o(s.maxHeight,"y")-la-ia,s.mh=s.h&&s.h<s.mh?s.h:s.mh;j=s.href;za=setTimeout(function(){G.show()},
100);s.inline?(g().hide().insertBefore(e(j)[0]).one(J,function(){e(this).replaceWith(T.children())}),m(e(j))):s.iframe?m(" "):s.html?m(s.html):l(j)?(e(W=new Image).addClass(h+"Photo").error(function(){s.title=!1;m(g("Error").text("This image could not be loaded"))}).load(function(){var c;W.onload=null;s.scalePhotos&&(k=function(){W.height-=W.height*c;W.width-=W.width*c},s.mw&&W.width>s.mw&&(c=(W.width-s.mw)/W.width,k()),s.mh&&W.height>s.mh&&(c=(W.height-s.mh)/W.height,k()));if(s.h)W.style.marginTop=
Math.max(s.h-W.height,0)/2+"px";if(H[1]&&(Z<H.length-1||s.loop))W.style.cursor="pointer",W.onclick=function(){Q.next()};if(B)W.style.msInterpolationMode="bicubic";setTimeout(function(){m(W)},1)}),setTimeout(function(){W.src=j},1)):j&&ba.load(j,s.data,function(c,h,i){m("error"===h?g("Error").text("Request unsuccessful: "+i.statusText):e(this).contents())})};Q.next=function(){if(!xa&&H[1]&&(Z<H.length-1||s.loop))Z=Z<H.length-1?Z+1:0,Q.load()};Q.prev=function(){if(!xa&&H[1]&&(Z||s.loop))Z=Z?Z-1:H.length-
1,Q.load()};Q.close=function(){oa&&!ma&&(ma=!0,oa=!1,c(D,s.onCleanup),E.unbind("."+h+" ."+V),L.fadeTo(200,0),M.stop().fadeTo(300,0,function(){M.add(L).css({opacity:1,cursor:"auto"}).hide();c(J);T.remove();setTimeout(function(){ma=!1;c(A,s.onClosed)},1)}))};Q.element=function(){return e(ca)};Q.settings=v;ra=function(c){0!==c.button&&"undefined"!==typeof c.button||c.ctrlKey||c.shiftKey||c.altKey||(c.preventDefault(),q(this))};e.fn.delegate?e(m).delegate("."+O,"click",ra):e("."+O).live("click",ra);e(Q.init)})(jQuery,
document,this);var checkboxHeight="25",radioHeight="25",selectWidth="",CustomFormElements={init:function(){var e=document.getElementsByTagName("input"),m=[],i,g;for(a=0;a<e.length;a++)if(("checkbox"==e[a].type||"radio"==e[a].type)&&"styled"==e[a].className){m[a]=document.createElement("span");m[a].className=e[a].type;if(!0==e[a].checked)position="checkbox"==e[a].type?"0 -"+2*checkboxHeight+"px":"0 -"+2*radioHeight+"px",m[a].style.backgroundPosition=position;e[a].parentNode.insertBefore(m[a],e[a]);e[a].onchange=
CustomFormElements.clear;e[a].getAttribute("disabled")?m[a].className=m[a].className+=" disabled":(m[a].onmousedown=CustomFormElements.pushed,m[a].onmouseup=CustomFormElements.check)}e=document.getElementsByTagName("select");for(a=0;a<e.length;a++)if("styled"==e[a].className){g=e[a].getElementsByTagName("option");i=g[0].childNodes[0].nodeValue;i=document.createTextNode(i);for(b=0;b<g.length;b++)!0==g[b].selected&&(i=document.createTextNode(g[b].childNodes[0].nodeValue));m[a]=document.createElement("span");
m[a].className="select";m[a].id="select"+e[a].name;m[a].appendChild(i);e[a].parentNode.insertBefore(m[a],e[a]);e[a].getAttribute("disabled")?e[a].previousSibling.className=e[a].previousSibling.className+=" disabled":e[a].onchange=CustomFormElements.choose}document.onmouseup=CustomFormElements.clear},pushed:function(){element=this.nextSibling;this.style.backgroundPosition=!0==element.checked&&"checkbox"==element.type?"0 -"+3*checkboxHeight+"px":!0==element.checked&&"radio"==element.type?"0 -"+3*radioHeight+
"px":!0!=element.checked&&"checkbox"==element.type?"0 -"+checkboxHeight+"px":"0 -"+radioHeight+"px"},check:function(){element=this.nextSibling;if(!0==element.checked&&"checkbox"==element.type)this.style.backgroundPosition="0 0";else if("checkbox"==element.type)this.style.backgroundPosition="0 -"+2*checkboxHeight+"px";else{this.style.backgroundPosition="0 -"+2*radioHeight+"px";group=this.nextSibling.name;inputs=document.getElementsByTagName("input");for(a=0;a<inputs.length;a++)if(inputs[a].name==group&&
inputs[a]!=this.nextSibling)inputs[a].previousSibling.style.backgroundPosition="0 0"}$(this).next()[0].click()},clear:function(){inputs=document.getElementsByTagName("input");for(var e=0;e<inputs.length;e++)if("checkbox"==inputs[e].type&&!0==inputs[e].checked&&"styled"==inputs[e].className)inputs[e].previousSibling.style.backgroundPosition="0 -"+2*checkboxHeight+"px";else if("checkbox"==inputs[e].type&&"styled"==inputs[e].className)inputs[e].previousSibling.style.backgroundPosition="0 0";else if("radio"==
inputs[e].type&&!0==inputs[e].checked&&"styled"==inputs[e].className)inputs[e].previousSibling.style.backgroundPosition="0 -"+2*radioHeight+"px";else if("radio"==inputs[e].type&&"styled"==inputs[e].className)inputs[e].previousSibling.style.backgroundPosition="0 0"},choose:function(){option=this.getElementsByTagName("option");for(d=0;d<option.length;d++)if(!0==option[d].selected)document.getElementById("select"+this.name).childNodes[0].nodeValue=option[d].childNodes[0].nodeValue}};
$(function(){CustomFormElements.init();$("input.styled").css("display","none")});

