!function(){var n=!1,t=/xyz/.test(function(){})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(i){function u(){!n&&this.init&&this.init.apply(this,arguments)}var e=this.prototype,f,r;n=!0;f=new this;n=!1;for(r in i)f[r]="function"==typeof i[r]&&"function"==typeof e[r]&&t.test(i[r])?function(n,t){return function(){var r=this._super,i;return this._super=e[n],i=t.apply(this,arguments),this._super=r,i}}(r,i[r]):i[r];return u.prototype=f,u.prototype.constructor=u,u.extend=arguments.callee,u}}();var NS=function(n){"use strict";function t(){}return function(i){for(var e=i.split("."),r=n,u=null,f=0;f<e.length;++f)if(u=e[f],"undefined"==typeof r[u])r[u]=new t,r=r[u];else{if(r[u]instanceof t==!1)throw new Error("Non Namespace Object exists, cannot create namespace.");r=r[u]}return r}}(this);Array.isArray||(Array.isArray=function(n){"use strict";return"[object Array]"===Object.prototype.toString.call(n)});Array.indexOf||(Array.prototype.indexOf=function(n,t){"use strict";for(var i=t||0,r=this.length;r>i;i++)if(this[i]===n)return i;return-1});"function"!=typeof"".trim&&(String.prototype.trim=function(){"use strict";return this.replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")});"object"!=typeof JSON&&(JSON.stringify=JSON.stringify||function(n){"use strict";var u,t,i=typeof n,f=[],r=!1;if("object"!==i||null===n)return"string"===i&&(n='"'+n+'"'),String(n);r=n&&n.constructor===Array;for(u in n)t=n[u],i=typeof t,"string"===i?t='"'+t+'"':"object"===i&&null!==t&&(t=JSON.stringify(t)),f.push((r?"":'"'+u+'":')+String(t));return(r?"[":"{")+String(f)+(r?"]":"}")},JSON.parse=JSON.parse||function(str){"use strict";return""===str&&(str='""'),eval("var p = "+str+";"),p});!function(n,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}("undefined"!=typeof window?window:this,function(n,t){function ti(n){var t=n.length,r=i.type(n);return"function"===r||i.isWindow(n)?!1:1===n.nodeType&&t?!0:"array"===r||0===t||"number"==typeof t&&t>0&&t-1 in n}function ii(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if("string"==typeof t){if(ae.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return i.inArray(n,t)>=0!==r})}function ir(n,t){do n=n[t];while(n&&1!==n.nodeType);return n}function gf(n){var t=hi[n]={};return i.each(n.match(h)||[],function(n,i){t[i]=!0}),t}function rr(){u.addEventListener?(u.removeEventListener("DOMContentLoaded",c,!1),n.removeEventListener("load",c,!1)):(u.detachEvent("onreadystatechange",c),n.detachEvent("onload",c))}function c(){(u.addEventListener||"load"===event.type||"complete"===u.readyState)&&(rr(),i.ready())}function ur(n,t,r){if(void 0===r&&1===n.nodeType){var u="data-"+t.replace(wu,"-$1").toLowerCase();if(r=n.getAttribute(u),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:pu.test(r)?i.parseJSON(r):r}catch(f){}i.data(n,t,r)}else r=void 0}return r}function ri(n){var t;for(t in n)if(("data"!==t||!i.isEmptyObject(n[t]))&&"toJSON"!==t)return!1;return!0}function fr(n,t,r,u){if(i.acceptData(n)){var s,e,h=i.expando,c=n.nodeType,o=c?i.cache:n,f=c?n[h]:n[h]&&h;if(f&&o[f]&&(u||o[f].data)||void 0!==r||"string"!=typeof t)return f||(f=c?n[h]=l.pop()||i.guid++:h),o[f]||(o[f]=c?{}:{toJSON:i.noop}),("object"==typeof t||"function"==typeof t)&&(u?o[f]=i.extend(o[f],t):o[f].data=i.extend(o[f].data,t)),e=o[f],u||(e.data||(e.data={}),e=e.data),void 0!==r&&(e[i.camelCase(t)]=r),"string"==typeof t?(s=e[t],null==s&&(s=e[i.camelCase(t)])):s=e,s}}function er(n,t,u){if(i.acceptData(n)){var o,s,h=n.nodeType,f=h?i.cache:n,e=h?n[i.expando]:i.expando;if(f[e]){if(t&&(o=u?f[e]:f[e].data)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in o)?t=[t]:(t=i.camelCase(t),t=(t in o)?[t]:t.split(" ")),s=t.length;s--;)delete o[t[s]];if(u?!ri(o):!i.isEmptyObject(o))return}(u||(delete f[e].data,ri(f[e])))&&(h?i.cleanData([n],!0):r.deleteExpando||f!=f.window?delete f[e]:f[e]=null)}}}function ct(){return!0}function tt(){return!1}function or(){try{return u.activeElement}catch(n){}}function sr(n){var i=du.split("|"),t=n.createDocumentFragment();if(t.createElement)for(;i.length;)t.createElement(i.pop());return t}function f(n,t){var e,u,s=0,r=typeof n.getElementsByTagName!==o?n.getElementsByTagName(t||"*"):typeof n.querySelectorAll!==o?n.querySelectorAll(t||"*"):void 0;if(!r)for(r=[],e=n.childNodes||n;null!=(u=e[s]);s++)!t||i.nodeName(u,t)?r.push(u):i.merge(r,f(u,t));return void 0===t||t&&i.nodeName(n,t)?i.merge([n],r):r}function ne(n){ci.test(n.type)&&(n.defaultChecked=n.checked)}function hr(n,t){return i.nodeName(n,"table")&&i.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function cr(n){return n.type=(null!==i.find.attr(n,"type"))+"/"+n.type,n}function lr(n){var t=no.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function ui(n,t){for(var u,r=0;null!=(u=n[r]);r++)i._data(u,"globalEval",!t||i._data(t[r],"globalEval"))}function ar(n,t){if(1===t.nodeType&&i.hasData(n)){var u,f,o,s=i._data(n),r=i._data(t,s),e=s.events;if(e){delete r.handle;r.events={};for(u in e)for(f=0,o=e[u].length;o>f;f++)i.event.add(t,u,e[u][f])}r.data&&(r.data=i.extend({},r.data))}}function te(n,t){var u,e,f;if(1===t.nodeType){if(u=t.nodeName.toLowerCase(),!r.noCloneEvent&&t[i.expando]){f=i._data(t);for(e in f.events)i.removeEvent(t,e,f.handle);t.removeAttribute(i.expando)}"script"===u&&t.text!==n.text?(cr(t).text=n.text,lr(t)):"object"===u?(t.parentNode&&(t.outerHTML=n.outerHTML),r.html5Clone&&n.innerHTML&&!i.trim(t.innerHTML)&&(t.innerHTML=n.innerHTML)):"input"===u&&ci.test(n.type)?(t.defaultChecked=t.checked=n.checked,t.value!==n.value&&(t.value=n.value)):"option"===u?t.defaultSelected=t.selected=n.defaultSelected:("input"===u||"textarea"===u)&&(t.defaultValue=n.defaultValue)}}function vr(t,r){var u=i(r.createElement(t)).appendTo(r.body),f=n.getDefaultComputedStyle?n.getDefaultComputedStyle(u[0]).display:i.css(u[0],"display");return u.detach(),f}function yr(n){var r=u,t=yi[n];return t||(t=vr(n,r),"none"!==t&&t||(ot=(ot||i("<iframe frameborder='0' width='0' height='0'/>")).appendTo(r.documentElement),r=(ot[0].contentWindow||ot[0].contentDocument).document,r.write(),r.close(),t=vr(n,r),ot.detach()),yi[n]=t),t}function pr(n,t){return{get:function(){var i=n();if(null!=i)return i?void delete this.get:(this.get=t).apply(this,arguments)}}}function wr(n,t){if(t in n)return t;for(var r=t.charAt(0).toUpperCase()+t.slice(1),u=t,i=of.length;i--;)if(t=of[i]+r,t in n)return t;return u}function br(n,t){for(var f,r,o,e=[],u=0,s=n.length;s>u;u++)r=n[u],r.style&&(e[u]=i._data(r,"olddisplay"),f=r.style.display,t?(e[u]||"none"!==f||(r.style.display=""),""===r.style.display&&et(r)&&(e[u]=i._data(r,"olddisplay",yr(r.nodeName)))):e[u]||(o=et(r),(f&&"none"!==f||!o)&&i._data(r,"olddisplay",o?f:i.css(r,"display"))));for(u=0;s>u;u++)r=n[u],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?e[u]||"":"none"));return n}function kr(n,t,i){var r=eo.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function dr(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:"width"===t?1:0,o=0;4>e;e+=2)"margin"===r&&(o+=i.css(n,r+w[e],!0,f)),u?("content"===r&&(o-=i.css(n,"padding"+w[e],!0,f)),"margin"!==r&&(o-=i.css(n,"border"+w[e]+"Width",!0,f))):(o+=i.css(n,"padding"+w[e],!0,f),"padding"!==r&&(o+=i.css(n,"border"+w[e]+"Width",!0,f)));return o}function gr(n,t,u){var o=!0,f="width"===t?n.offsetWidth:n.offsetHeight,e=k(n),s=r.boxSizing()&&"border-box"===i.css(n,"boxSizing",!1,e);if(0>=f||null==f){if(f=d(n,t,e),(0>f||null==f)&&(f=n.style[t]),pt.test(f))return f;o=s&&(r.boxSizingReliable()||f===n.style[t]);f=parseFloat(f)||0}return f+dr(n,t,u||(s?"border":"content"),o,e)+"px"}function e(n,t,i,r,u){return new e.prototype.init(n,t,i,r,u)}function nu(){return setTimeout(function(){rt=void 0}),rt=i.now()}function lt(n,t){var r,i={height:n},u=0;for(t=t?1:0;4>u;u+=2-t)r=w[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function tu(n,t,i){for(var u,f=(st[t]||[]).concat(st["*"]),r=0,e=f.length;e>r;r++)if(u=f[r].call(i,t,n))return u}function ie(n,t,u){var f,l,p,a,o,b,y,w,c=this,v={},s=n.style,h=n.nodeType&&et(n),e=i._data(n,"fxshow");u.queue||(o=i._queueHooks(n,"fx"),null==o.unqueued&&(o.unqueued=0,b=o.empty.fire,o.empty.fire=function(){o.unqueued||b()}),o.unqueued++,c.always(function(){c.always(function(){o.unqueued--;i.queue(n,"fx").length||o.empty.fire()})}));1===n.nodeType&&("height"in t||"width"in t)&&(u.overflow=[s.overflow,s.overflowX,s.overflowY],y=i.css(n,"display"),w=yr(n.nodeName),"none"===y&&(y=w),"inline"===y&&"none"===i.css(n,"float")&&(r.inlineBlockNeedsLayout&&"inline"!==w?s.zoom=1:s.display="inline-block"));u.overflow&&(s.overflow="hidden",r.shrinkWrapBlocks()||c.always(function(){s.overflow=u.overflow[0];s.overflowX=u.overflow[1];s.overflowY=u.overflow[2]}));for(f in t)if(l=t[f],ho.exec(l)){if(delete t[f],p=p||"toggle"===l,l===(h?"hide":"show")){if("show"!==l||!e||void 0===e[f])continue;h=!0}v[f]=e&&e[f]||i.style(n,f)}if(!i.isEmptyObject(v)){e?"hidden"in e&&(h=e.hidden):e=i._data(n,"fxshow",{});p&&(e.hidden=!h);h?i(n).show():c.done(function(){i(n).hide()});c.done(function(){var t;i._removeData(n,"fxshow");for(t in v)i.style(n,t,v[t])});for(f in v)a=tu(h?e[f]:0,f,c),f in e||(e[f]=a.start,h&&(a.end=a.start,a.start="width"===f||"height"===f?1:0))}}function re(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function iu(n,t,r){var h,e,o=0,l=bt.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(e)return!1;for(var s=rt||nu(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,o=u.tweens.length;o>r;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),1>i&&o?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{}},r),originalProperties:t,originalOptions:r,startTime:rt||nu(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(e)return this;for(e=!0;r>i;i++)u.tweens[i].run(1);return t?f.resolveWith(n,[u,t]):f.rejectWith(n,[u,t]),this}}),s=u.props;for(re(s,u.opts.specialEasing);l>o;o++)if(h=bt[o].call(u,n,s,u.opts))return h;return i.map(s,tu,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function ru(n){return function(t,r){"string"!=typeof t&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(h)||[];if(i.isFunction(r))for(;u=e[f++];)"+"===u.charAt(0)?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function uu(n,t,r,u){function f(s){var h;return e[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);return"string"!=typeof s||o||e[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),f(s),!1)}),h}var e={},o=n===di;return f(t.dataTypes[0])||!e["*"]&&f("*")}function fi(n,t){var u,r,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function ue(n,t,i){for(var o,e,u,f,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(f in s)if(s[f]&&s[f].test(e)){r.unshift(f);break}if(r[0]in i)u=r[0];else{for(f in i){if(!r[0]||n.converters[f+" "+r[0]]){u=f;break}o||(o=f)}u=u||o}if(u)return(u!==r[0]&&r.unshift(u),i[u])}function fe(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}function ei(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||bo.test(n)?u(n,i):ei(n+"["+("object"==typeof i?t:"")+"]",i,r,u)});else if(r||"object"!==i.type(t))u(n,t);else for(f in t)ei(n+"["+f+"]",t[f],r,u)}function fu(){try{return new n.XMLHttpRequest}catch(t){}}function ee(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function eu(n){return i.isWindow(n)?n:9===n.nodeType?n.defaultView||n.parentWindow:!1}var l=[],a=l.slice,ou=l.concat,oi=l.push,su=l.indexOf,at={},oe=at.toString,it=at.hasOwnProperty,si="".trim,r={},hu="1.11.0",i=function(n,t){return new i.fn.init(n,t)},se=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,he=/^-ms-/,ce=/-([\da-z])/gi,le=function(n,t){return t.toUpperCase()},p,au,vu,h,hi,vt,yu,o,pu,wu,ot,yi,hf,lf,af,dt,gi,ni,nr,tr,kf,df;i.fn=i.prototype={jquery:hu,constructor:i,selector:"",length:0,toArray:function(){return a.call(this)},get:function(n){return null!=n?0>n?this[n+this.length]:this[n]:a.call(this)},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n,t){return i.each(this,n,t)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(0>n?i:0);return this.pushStack(t>=0&&i>t?[this[t]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:oi,sort:l.sort,splice:l.splice};i.extend=i.fn.extend=function(){var r,e,t,f,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[u]||{},u++),"object"==typeof n||i.isFunction(n)||(n={}),u===c&&(n=this,u--);c>u;u++)if(null!=(o=arguments[u]))for(f in o)r=n[f],t=o[f],n!==t&&(h&&t&&(i.isPlainObject(t)||(e=i.isArray(t)))?(e?(e=!1,s=r&&i.isArray(r)?r:[]):s=r&&i.isPlainObject(r)?r:{},n[f]=i.extend(h,s,t)):void 0!==t&&(n[f]=t));return n};i.extend({expando:"jQuery"+(hu+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return"function"===i.type(n)},isArray:Array.isArray||function(n){return"array"===i.type(n)},isWindow:function(n){return null!=n&&n==n.window},isNumeric:function(n){return n-parseFloat(n)>=0},isEmptyObject:function(n){var t;for(t in n)return!1;return!0},isPlainObject:function(n){var t;if(!n||"object"!==i.type(n)||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!it.call(n,"constructor")&&!it.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}if(r.ownLast)for(t in n)return it.call(n,t);for(t in n);return void 0===t||it.call(n,t)},type:function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?at[oe.call(n)]||"object":typeof n},globalEval:function(t){t&&i.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(he,"ms-").replace(ce,le)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t,i){var u,r=0,f=n.length,e=ti(n);if(i){if(e)for(;f>r&&(u=t.apply(n[r],i),u!==!1);r++);else for(r in n)if(u=t.apply(n[r],i),u===!1)break}else if(e)for(;f>r&&(u=t.call(n[r],r,n[r]),u!==!1);r++);else for(r in n)if(u=t.call(n[r],r,n[r]),u===!1)break;return n},trim:si&&!si.call("﻿ ")?function(n){return null==n?"":si.call(n)}:function(n){return null==n?"":(n+"").replace(se,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(ti(Object(n))?i.merge(r,"string"==typeof n?[n]:n):oi.call(r,n)),r},inArray:function(n,t,i){var r;if(t){if(su)return su.call(t,n,i);for(r=t.length,i=i?0>i?Math.max(0,r+i):i:0;r>i;i++)if(i in t&&t[i]===n)return i}return-1},merge:function(n,t){for(var r=+t.length,i=0,u=n.length;r>i;)n[u++]=t[i++];if(r!==r)for(;void 0!==t[i];)n[u++]=t[i++];return n.length=u,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;e>r;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var u,r=0,e=n.length,o=ti(n),f=[];if(o)for(;e>r;r++)u=t(n[r],r,i),null!=u&&f.push(u);else for(r in n)u=t(n[r],r,i),null!=u&&f.push(u);return ou.apply([],f)},guid:1,proxy:function(n,t){var u,r,f;return"string"==typeof t&&(f=n[t],t=n,n=f),i.isFunction(n)?(u=a.call(arguments,2),r=function(){return n.apply(t||this,u.concat(a.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r):void 0},now:function(){return+new Date},support:r});i.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(n,t){at["[object "+t+"]"]=t.toLowerCase()});p=function(n){function r(n,t,i,r){var w,s,h,v,k,y,d,a,nt,g;if((t?t.ownerDocument||t:c)!==e&&p(t),t=t||e,i=i||[],!n||"string"!=typeof n)return i;if(1!==(v=t.nodeType)&&9!==v)return[];if(l&&!r){if(w=ar.exec(n))if(h=w[1]){if(9===v){if(s=t.getElementById(h),!s||!s.parentNode)return i;if(s.id===h)return i.push(s),i}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(h))&&et(t,s)&&s.id===h)return i.push(s),i}else{if(w[2])return b.apply(i,t.getElementsByTagName(n)),i;if((h=w[3])&&u.getElementsByClassName&&t.getElementsByClassName)return b.apply(i,t.getElementsByClassName(h)),i}if(u.qsa&&(!o||!o.test(n))){if(a=d=f,nt=t,g=9===v&&n,1===v&&"object"!==t.nodeName.toLowerCase()){for(y=st(n),(d=t.getAttribute("id"))?a=d.replace(vr,"\\$&"):t.setAttribute("id",a),a="[id='"+a+"'] ",k=y.length;k--;)y[k]=a+ht(y[k]);nt=ei.test(n)&&kt(t.parentNode)||t;g=y.join(",")}if(g)try{return b.apply(i,nt.querySelectorAll(g)),i}catch(tt){}finally{d||t.removeAttribute("id")}}}return nr(n.replace(yt,"$1"),t,i,r)}function wt(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function s(n){return n[f]=!0,n}function h(n){var t=e.createElement("div");try{return!!n(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function bt(n,i){for(var u=n.split("|"),r=n.length;r--;)t.attrHandle[u[r]]=i}function oi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&(~t.sourceIndex||vi)-(~n.sourceIndex||vi);if(r)return r;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return n?1:-1}function bi(n){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===n}}function ki(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function g(n){return s(function(t){return t=+t,s(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function kt(n){return n&&typeof n.getElementsByTagName!==ut&&n}function si(){}function st(n,i){var e,f,s,o,u,h,c,l=li[n+" "];if(l)return i?0:l.slice(0);for(u=n,h=[],c=t.preFilter;u;){(!e||(f=fr.exec(u)))&&(f&&(u=u.slice(f[0].length)||u),h.push(s=[]));e=!1;(f=er.exec(u))&&(e=f.shift(),s.push({value:e,type:f[0].replace(yt," ")}),u=u.slice(e.length));for(o in t.filter)(f=pt[o].exec(u))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),u=u.slice(e.length));if(!e)break}return i?u.length:u?r.error(n):li(n,h).slice(0)}function ht(n){for(var t=0,r=n.length,i="";r>t;t++)i+=n[t].value;return i}function dt(n,t,i){var r=t.dir,u=i&&"parentNode"===r,e=tr++;return t.first?function(t,i,f){for(;t=t[r];)if(1===t.nodeType||u)return n(t,i,f)}:function(t,i,o){var s,h,c=[a,e];if(o){for(;t=t[r];)if((1===t.nodeType||u)&&n(t,i,o))return!0}else for(;t=t[r];)if(1===t.nodeType||u){if(h=t[f]||(t[f]={}),(s=h[r])&&s[0]===a&&s[1]===e)return c[2]=s[2];if(h[r]=c,c[2]=n(t,i,o))return!0}}}function gt(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function ct(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;s>f;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function ni(n,t,i,r,u,e){return r&&!r[f]&&(r=ni(r)),u&&!u[f]&&(u=ni(u,e)),s(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,k=f||gi(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?k:ct(k,p,n,o,s),h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=ct(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?tt.call(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=ct(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):b.apply(e,h)})}function ti(n){for(var s,u,r,o=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=dt(function(n){return n===s},c,!0),a=dt(function(n){return tt.call(s,n)>-1},c,!0),e=[function(n,t,i){return!h&&(i||t!==at)||((s=t).nodeType?l(n,t,i):a(n,t,i))}];o>i;i++)if(u=t.relative[n[i].type])e=[dt(gt(e),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[f]){for(r=++i;o>r&&!t.relative[n[r].type];r++);return ni(i>1&&gt(e),i>1&&ht(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(yt,"$1"),u,r>i&&ti(n.slice(i,r)),o>r&&ti(n=n.slice(r)),o>r&&ht(n))}e.push(u)}return gt(e)}function di(n,i){var u=i.length>0,f=n.length>0,o=function(o,s,h,c,l){var y,d,w,k=0,v="0",g=o&&[],p=[],nt=at,tt=o||f&&t.find.TAG("*",l),it=a+=null==nt?1:Math.random()||.1,rt=tt.length;for(l&&(at=s!==e&&s);v!==rt&&null!=(y=tt[v]);v++){if(f&&y){for(d=0;w=n[d++];)if(w(y,s,h)){c.push(y);break}l&&(a=it)}u&&((y=!w&&y)&&k--,o&&g.push(y))}if(k+=v,u&&v!==k){for(d=0;w=i[d++];)w(g,p,s,h);if(o){if(k>0)for(;v--;)g[v]||p[v]||(p[v]=rr.call(c));p=ct(p)}b.apply(c,p);l&&!o&&p.length>0&&k+i.length>1&&r.uniqueSort(c)}return l&&(a=it,at=nt),g};return u?s(o):o}function gi(n,t,i){for(var u=0,f=t.length;f>u;u++)r(n,t[u],i);return i}function nr(n,i,r,f){var s,e,o,c,a,h=st(n);if(!f&&1===h.length){if(e=h[0]=h[0].slice(0),e.length>2&&"ID"===(o=e[0]).type&&u.getById&&9===i.nodeType&&l&&t.relative[e[1].type]){if(i=(t.find.ID(o.matches[0].replace(k,d),i)||[])[0],!i)return r;n=n.slice(e.shift().value.length)}for(s=pt.needsContext.test(n)?0:e.length;s--&&(o=e[s],!t.relative[c=o.type]);)if((a=t.find[c])&&(f=a(o.matches[0].replace(k,d),ei.test(e[0].type)&&kt(i.parentNode)||i))){if(e.splice(s,1),n=f.length&&ht(e),!n)return b.apply(r,f),r;break}}return ii(n,h)(f,i,!l,r,ei.test(n)&&kt(i.parentNode)||i),r}var it,u,t,lt,hi,ii,at,y,rt,p,e,v,l,o,nt,vt,et,f="sizzle"+-new Date,c=n.document,a=0,tr=0,ci=wt(),li=wt(),ai=wt(),ri=function(n,t){return n===t&&(rt=!0),0},ut="undefined",vi=-2147483648,ir={}.hasOwnProperty,w=[],rr=w.pop,ur=w.push,b=w.push,yi=w.slice,tt=w.indexOf||function(n){for(var t=0,i=this.length;i>t;t++)if(this[t]===n)return t;return-1},ui="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",i="[\\x20\\t\\r\\n\\f]",ft="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",pi=ft.replace("w","w#"),wi="\\["+i+"*("+ft+")"+i+"*(?:([*^$|!~]?=)"+i+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+pi+")|)|)"+i+"*\\]",fi=":("+ft+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+wi.replace(3,8)+")*)|.*)\\)|)",yt=new RegExp("^"+i+"+|((?:^|[^\\\\])(?:\\\\.)*)"+i+"+$","g"),fr=new RegExp("^"+i+"*,"+i+"*"),er=new RegExp("^"+i+"*([>+~]|"+i+")"+i+"*"),or=new RegExp("="+i+"*([^\\]'\"]*?)"+i+"*\\]","g"),sr=new RegExp(fi),hr=new RegExp("^"+pi+"$"),pt={ID:new RegExp("^#("+ft+")"),CLASS:new RegExp("^\\.("+ft+")"),TAG:new RegExp("^("+ft.replace("w","w*")+")"),ATTR:new RegExp("^"+wi),PSEUDO:new RegExp("^"+fi),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+i+"*(even|odd|(([+-]|)(\\d*)n|)"+i+"*(?:([+-]|)"+i+"*(\\d+)|))"+i+"*\\)|)","i"),bool:new RegExp("^(?:"+ui+")$","i"),needsContext:new RegExp("^"+i+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+i+"*((?:-\\d)?\\d*)"+i+"*\\)|)(?=[^-]|$)","i")},cr=/^(?:input|select|textarea|button)$/i,lr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,ar=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ei=/[+~]/,vr=/'|\\/g,k=new RegExp("\\\\([\\da-f]{1,6}"+i+"?|("+i+")|.)","ig"),d=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{b.apply(w=yi.call(c.childNodes),c.childNodes);w[c.childNodes.length].nodeType}catch(yr){b={apply:w.length?function(n,t){ur.apply(n,yi.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}u=r.support={};hi=r.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?"HTML"!==t.nodeName:!1};p=r.setDocument=function(n){var a,r=n?n.ownerDocument||n:c,s=r.defaultView;return r!==e&&9===r.nodeType&&r.documentElement?(e=r,v=r.documentElement,l=!hi(r),s&&s!==s.top&&(s.addEventListener?s.addEventListener("unload",function(){p()},!1):s.attachEvent&&s.attachEvent("onunload",function(){p()})),u.attributes=h(function(n){return n.className="i",!n.getAttribute("className")}),u.getElementsByTagName=h(function(n){return n.appendChild(r.createComment("")),!n.getElementsByTagName("*").length}),u.getElementsByClassName=ot.test(r.getElementsByClassName)&&h(function(n){return n.innerHTML="<div class='a'><\/div><div class='a i'><\/div>",n.firstChild.className="i",2===n.getElementsByClassName("i").length}),u.getById=h(function(n){return v.appendChild(n).id=f,!r.getElementsByName||!r.getElementsByName(f).length}),u.getById?(t.find.ID=function(n,t){if(typeof t.getElementById!==ut&&l){var i=t.getElementById(n);return i&&i.parentNode?[i]:[]}},t.filter.ID=function(n){var t=n.replace(k,d);return function(n){return n.getAttribute("id")===t}}):(delete t.find.ID,t.filter.ID=function(n){var t=n.replace(k,d);return function(n){var i=typeof n.getAttributeNode!==ut&&n.getAttributeNode("id");return i&&i.value===t}}),t.find.TAG=u.getElementsByTagName?function(n,t){if(typeof t.getElementsByTagName!==ut)return t.getElementsByTagName(n)}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){for(;i=u[f++];)1===i.nodeType&&r.push(i);return r}return u},t.find.CLASS=u.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!==ut&&l)return t.getElementsByClassName(n)},nt=[],o=[],(u.qsa=ot.test(r.querySelectorAll))&&(h(function(n){n.innerHTML="<select t=''><option selected=''><\/option><\/select>";n.querySelectorAll("[t^='']").length&&o.push("[*^$]="+i+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+i+"*(?:value|"+ui+")");n.querySelectorAll(":checked").length||o.push(":checked")}),h(function(n){var t=r.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+i+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length||o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(u.matchesSelector=ot.test(vt=v.webkitMatchesSelector||v.mozMatchesSelector||v.oMatchesSelector||v.msMatchesSelector))&&h(function(n){u.disconnectedMatch=vt.call(n,"div");vt.call(n,"[s!='']:x");nt.push("!=",fi)}),o=o.length&&new RegExp(o.join("|")),nt=nt.length&&new RegExp(nt.join("|")),a=ot.test(v.compareDocumentPosition),et=a||ot.test(v.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)for(;t=t.parentNode;)if(t===n)return!0;return!1},ri=a?function(n,t){if(n===t)return rt=!0,0;var i=!n.compareDocumentPosition-!t.compareDocumentPosition;return i?i:(i=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,1&i||!u.sortDetached&&t.compareDocumentPosition(n)===i?n===r||n.ownerDocument===c&&et(c,n)?-1:t===r||t.ownerDocument===c&&et(c,t)?1:y?tt.call(y,n)-tt.call(y,t):0:4&i?-1:1)}:function(n,t){if(n===t)return rt=!0,0;var i,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(!o||!s)return n===r?-1:t===r?1:o?-1:s?1:y?tt.call(y,n)-tt.call(y,t):0;if(o===s)return oi(n,t);for(i=n;i=i.parentNode;)f.unshift(i);for(i=t;i=i.parentNode;)e.unshift(i);for(;f[u]===e[u];)u++;return u?oi(f[u],e[u]):f[u]===c?-1:e[u]===c?1:0},r):e};r.matches=function(n,t){return r(n,null,null,t)};r.matchesSelector=function(n,t){if((n.ownerDocument||n)!==e&&p(n),t=t.replace(or,"='$1']"),!(!u.matchesSelector||!l||nt&&nt.test(t)||o&&o.test(t)))try{var i=vt.call(n,t);if(i||u.disconnectedMatch||n.document&&11!==n.document.nodeType)return i}catch(f){}return r(t,e,null,[n]).length>0};r.contains=function(n,t){return(n.ownerDocument||n)!==e&&p(n),et(n,t)};r.attr=function(n,i){(n.ownerDocument||n)!==e&&p(n);var f=t.attrHandle[i.toLowerCase()],r=f&&ir.call(t.attrHandle,i.toLowerCase())?f(n,i,!l):void 0;return void 0!==r?r:u.attributes||!l?n.getAttribute(i):(r=n.getAttributeNode(i))&&r.specified?r.value:null};r.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};r.uniqueSort=function(n){var r,f=[],t=0,i=0;if(rt=!u.detectDuplicates,y=!u.sortStable&&n.slice(0),n.sort(ri),rt){for(;r=n[i++];)r===n[i]&&(t=f.push(i));for(;t--;)n.splice(f[t],1)}return y=null,n};lt=r.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=lt(n)}else if(3===t||4===t)return n.nodeValue}else for(;r=n[u++];)i+=lt(r);return i};t=r.selectors={cacheLength:50,createPseudo:s,match:pt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(k,d),n[3]=(n[4]||n[5]||"").replace(k,d),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||r.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&r.error(n[0]),n},PSEUDO:function(n){var i,t=!n[5]&&n[2];return pt.CHILD.test(n[0])?null:(n[3]&&void 0!==n[4]?n[2]=n[4]:t&&sr.test(t)&&(i=st(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(k,d).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=ci[n+" "];return t||(t=new RegExp("(^|"+i+")"+n+"("+i+"|$)"))&&ci(n,function(n){return t.test("string"==typeof n.className&&n.className||typeof n.getAttribute!==ut&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(u){var f=r.attr(u,n);return null==f?"!="===t:t?(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f+" ").indexOf(i)>-1:"|="===t?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),e="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var v,k,c,l,y,w,b=s!==o?"nextSibling":"previousSibling",p=t.parentNode,g=e&&t.nodeName.toLowerCase(),d=!h&&!e;if(p){if(s){for(;b;){for(c=t;c=c[b];)if(e?c.nodeName.toLowerCase()===g:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[o?p.firstChild:p.lastChild],o&&d){for(k=p[f]||(p[f]={}),v=k[n]||[],y=v[0]===a&&v[1],l=v[0]===a&&v[2],c=y&&p.childNodes[y];c=++y&&c&&c[b]||(l=y=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){k[n]=[a,y,l];break}}else if(d&&(v=(t[f]||(t[f]={}))[n])&&v[0]===a)l=v[1];else for(;(c=++y&&c&&c[b]||(l=y=0)||w.pop())&&((e?c.nodeName.toLowerCase()!==g:1!==c.nodeType)||!++l||(d&&((c[f]||(c[f]={}))[n]=[a,l]),c!==t)););return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var e,u=t.pseudos[n]||t.setFilters[n.toLowerCase()]||r.error("unsupported pseudo: "+n);return u[f]?u(i):u.length>1?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?s(function(n,t){for(var r,f=u(n,i),e=f.length;e--;)r=tt.call(n,f[e]),n[r]=!(t[r]=f[e])}):function(n){return u(n,0,e)}):u}},pseudos:{not:s(function(n){var i=[],r=[],t=ii(n.replace(yt,"$1"));return t[f]?s(function(n,i,r,u){for(var e,o=t(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(i[f]=e))}):function(n,u,f){return i[0]=n,t(i,null,f,r),!r.pop()}}),has:s(function(n){return function(t){return r(n,t).length>0}}),contains:s(function(n){return function(t){return(t.textContent||t.innerText||lt(t)).indexOf(n)>-1}}),lang:s(function(n){return hr.test(n||"")||r.error("unsupported lang: "+n),n=n.replace(k,d).toLowerCase(),function(t){var i;do if(i=l?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===v},focus:function(n){return n===e.activeElement&&(!e.hasFocus||e.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return lr.test(n.nodeName)},input:function(n){return cr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:g(function(){return[0]}),last:g(function(n,t){return[t-1]}),eq:g(function(n,t,i){return[0>i?i+t:i]}),even:g(function(n,t){for(var i=0;t>i;i+=2)n.push(i);return n}),odd:g(function(n,t){for(var i=1;t>i;i+=2)n.push(i);return n}),lt:g(function(n,t,i){for(var r=0>i?i+t:i;--r>=0;)n.push(r);return n}),gt:g(function(n,t,i){for(var r=0>i?i+t:i;++r<t;)n.push(r);return n})}};t.pseudos.nth=t.pseudos.eq;for(it in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[it]=bi(it);for(it in{submit:!0,reset:!0})t.pseudos[it]=ki(it);return si.prototype=t.filters=t.pseudos,t.setFilters=new si,ii=r.compile=function(n,t){var r,u=[],e=[],i=ai[n+" "];if(!i){for(t||(t=st(n)),r=t.length;r--;)i=ti(t[r]),i[f]?u.push(i):e.push(i);i=ai(n,di(e,u))}return i},u.sortStable=f.split("").sort(ri).join("")===f,u.detectDuplicates=!!rt,p(),u.sortDetached=h(function(n){return 1&n.compareDocumentPosition(e.createElement("div"))}),h(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||bt("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),u.attributes&&h(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||bt("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),h(function(n){return null==n.getAttribute("disabled")})||bt(ui,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),r}(n);i.find=p;i.expr=p.selectors;i.expr[":"]=i.expr.pseudos;i.unique=p.uniqueSort;i.text=p.getText;i.isXMLDoc=p.isXML;i.contains=p.contains;var cu=i.expr.match.needsContext,lu=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ae=/^.[^:#\[\.,]*$/;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))};i.fn.extend({find:function(n){var t,r=[],u=this,f=u.length;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;f>t;t++)if(i.contains(u[t],this))return!0}));for(t=0;f>t;t++)i.find(n,u[t],r);return r=this.pushStack(f>1?i.unique(r):r),r.selector=this.selector?this.selector+" "+n:n,r},filter:function(n){return this.pushStack(ii(this,n||[],!1))},not:function(n){return this.pushStack(ii(this,n||[],!0))},is:function(n){return!!ii(this,"string"==typeof n&&cu.test(n)?i(n):n||[],!1).length}});var ft,u=n.document,ve=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ye=i.fn.init=function(n,t){var r,f;if(!n)return this;if("string"==typeof n){if(r="<"===n.charAt(0)&&">"===n.charAt(n.length-1)&&n.length>=3?[null,n,null]:ve.exec(n),!r||!r[1]&&t)return!t||t.jquery?(t||ft).find(n):this.constructor(t).find(n);if(r[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),lu.test(r[1])&&i.isPlainObject(t))for(r in t)i.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}if(f=u.getElementById(r[2]),f&&f.parentNode){if(f.id!==r[2])return ft.find(n);this.length=1;this[0]=f}return this.context=u,this.selector=n,this}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?"undefined"!=typeof ft.ready?ft.ready(n):n(i):(void 0!==n.selector&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))};ye.prototype=i.fn;ft=i(u);au=/^(?:parents|prev(?:Until|All))/;vu={children:!0,contents:!0,next:!0,prev:!0};i.extend({dir:function(n,t,r){for(var f=[],u=n[t];u&&9!==u.nodeType&&(void 0===r||1!==u.nodeType||!i(u).is(r));)1===u.nodeType&&f.push(u),u=u[t];return f},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i}});i.fn.extend({has:function(n){var t,r=i(n,this),u=r.length;return this.filter(function(){for(t=0;u>t;t++)if(i.contains(this,r[t]))return!0})},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=cu.test(n)||"string"!=typeof n?i(n,t||this.context):0;o>f;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.unique(u):u)},index:function(n){return n?"string"==typeof n?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.unique(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return ir(n,"nextSibling")},prev:function(n){return ir(n,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling((n.parentNode||{}).firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),this.length>1&&(vu[n]||(f=i.unique(f)),au.test(n)&&(f=f.reverse())),this.pushStack(f)}});h=/\S+/g;hi={};i.Callbacks=function(n){n="string"==typeof n?hi[n]||gf(n):i.extend({},n);var o,u,h,f,e,c,t=[],r=!n.once&&[],l=function(i){for(u=n.memory&&i,h=!0,e=c||0,c=0,f=t.length,o=!0;t&&f>e;e++)if(t[e].apply(i[0],i[1])===!1&&n.stopOnFalse){u=!1;break}o=!1;t&&(r?r.length&&l(r.shift()):u?t=[]:s.disable())},s={add:function(){if(t){var r=t.length;!function e(r){i.each(r,function(r,u){var f=i.type(u);"function"===f?n.unique&&s.has(u)||t.push(u):u&&u.length&&"string"!==f&&e(u)})}(arguments);o?f=t.length:u&&(c=r,l(u))}return this},remove:function(){return t&&i.each(arguments,function(n,r){for(var u;(u=i.inArray(r,t,u))>-1;)t.splice(u,1),o&&(f>=u&&f--,e>=u&&e--)}),this},has:function(n){return n?i.inArray(n,t)>-1:!(!t||!t.length)},empty:function(){return t=[],f=0,this},disable:function(){return t=r=u=void 0,this},disabled:function(){return!t},lock:function(){return r=void 0,u||s.disable(),this},locked:function(){return!r},fireWith:function(n,i){return!t||h&&!r||(i=i||[],i=[n,i.slice?i.slice():i],o?r.push(i):l(i)),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().done(f.resolve).fail(f.reject).progress(f.notify):f[e[0]+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return null!=n?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[1^n][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var o,h,s,t=0,u=a.call(arguments),r=u.length,e=1!==r||n&&i.isFunction(n.promise)?r:0,f=1===e?n:i.Deferred(),c=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?a.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}};if(r>1)for(o=new Array(r),h=new Array(r),s=new Array(r);r>t;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().done(c(t,s,u)).fail(f.reject).progress(c(t,h,o)):--e;return e||f.resolveWith(s,u),f.promise()}});i.fn.ready=function(n){return i.ready.promise().done(n),this};i.extend({isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){if(n===!0?!--i.readyWait:!i.isReady){if(!u.body)return setTimeout(i.ready);i.isReady=!0;n!==!0&&--i.readyWait>0||(vt.resolveWith(u,[i]),i.fn.trigger&&i(u).trigger("ready").off("ready"))}}});i.ready.promise=function(t){if(!vt)if(vt=i.Deferred(),"complete"===u.readyState)setTimeout(i.ready);else if(u.addEventListener)u.addEventListener("DOMContentLoaded",c,!1),n.addEventListener("load",c,!1);else{u.attachEvent("onreadystatechange",c);n.attachEvent("onload",c);var r=!1;try{r=null==n.frameElement&&u.documentElement}catch(e){}r&&r.doScroll&&!function f(){if(!i.isReady){try{r.doScroll("left")}catch(n){return setTimeout(f,50)}rr();i.ready()}}()}return vt.promise(t)};o="undefined";for(yu in i(r))break;r.ownLast="0"!==yu;r.inlineBlockNeedsLayout=!1;i(function(){var t,n,i=u.getElementsByTagName("body")[0];i&&(t=u.createElement("div"),t.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",n=u.createElement("div"),i.appendChild(t).appendChild(n),typeof n.style.zoom!==o&&(n.style.cssText="border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1",(r.inlineBlockNeedsLayout=3===n.offsetWidth)&&(i.style.zoom=1)),i.removeChild(t),t=n=null)}),function(){var n=u.createElement("div");if(null==r.deleteExpando){r.deleteExpando=!0;try{delete n.test}catch(t){r.deleteExpando=!1}}n=null}();i.acceptData=function(n){var t=i.noData[(n.nodeName+" ").toLowerCase()],r=+n.nodeType||1;return 1!==r&&9!==r?!1:!t||t!==!0&&n.getAttribute("classid")===t};pu=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/;wu=/([A-Z])/g;i.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!ri(n)},data:function(n,t,i){return fr(n,t,i)},removeData:function(n,t){return er(n,t)},_data:function(n,t,i){return fr(n,t,i,!0)},_removeData:function(n,t){return er(n,t,!0)}});i.fn.extend({data:function(n,t){var f,u,e,r=this[0],o=r&&r.attributes;if(void 0===n){if(this.length&&(e=i.data(r),1===r.nodeType&&!i._data(r,"parsedAttrs"))){for(f=o.length;f--;)u=o[f].name,0===u.indexOf("data-")&&(u=i.camelCase(u.slice(5)),ur(r,u,e[u]));i._data(r,"parsedAttrs",!0)}return e}return"object"==typeof n?this.each(function(){i.data(this,n)}):arguments.length>1?this.each(function(){i.data(this,n,t)}):r?ur(r,n,i.data(r,n)):void 0},removeData:function(n){return this.each(function(){i.removeData(this,n)})}});i.extend({queue:function(n,t,r){var u;if(n)return(t=(t||"fx")+"queue",u=i._data(n,t),r&&(!u||i.isArray(r)?u=i._data(n,t,i.makeArray(r)):u.push(r)),u||[])},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var r=t+"queueHooks";return i._data(n,r)||i._data(n,r,{empty:i.Callbacks("once memory").add(function(){i._removeData(n,t+"queue");i._removeData(n,r)})})}});i.fn.extend({queue:function(n,t){var r=2;return"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var r,f=1,e=i.Deferred(),u=this,o=this.length,s=function(){--f||e.resolveWith(u,[u])};for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";o--;)r=i._data(u[o],n+"queueHooks"),r&&r.empty&&(f++,r.empty.add(s));return s(),e.promise(t)}});var yt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=["Top","Right","Bottom","Left"],et=function(n,t){return n=t||n,"none"===i.css(n,"display")||!i.contains(n.ownerDocument,n)},b=i.access=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=null==r;if("object"===i.type(r)){f=!0;for(s in r)i.access(n,t,s,r[s],!0,e,o)}else if(void 0!==u&&(f=!0,i.isFunction(u)||(o=!0),h&&(o?(t.call(n,u),t=null):(h=t,t=function(n,t,r){return h.call(i(n),r)})),t))for(;c>s;s++)t(n[s],r,o?u:u.call(n[s],s,t(n[s],r)));return f?n:h?t.call(n):c?t(n[0],r):e},ci=/^(?:checkbox|radio)$/i;!function(){var i=u.createDocumentFragment(),n=u.createElement("div"),t=u.createElement("input");if(n.setAttribute("className","t"),n.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a>",r.leadingWhitespace=3===n.firstChild.nodeType,r.tbody=!n.getElementsByTagName("tbody").length,r.htmlSerialize=!!n.getElementsByTagName("link").length,r.html5Clone="<:nav><\/:nav>"!==u.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,i.appendChild(t),r.appendChecked=t.checked,n.innerHTML="<textarea>x<\/textarea>",r.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue,i.appendChild(n),n.innerHTML="<input type='radio' checked='checked' name='t'/>",r.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked,r.noCloneEvent=!0,n.attachEvent&&(n.attachEvent("onclick",function(){r.noCloneEvent=!1}),n.cloneNode(!0).click()),null==r.deleteExpando){r.deleteExpando=!0;try{delete n.test}catch(f){r.deleteExpando=!1}}i=n=t=null}(),function(){var t,i,f=u.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})i="on"+t,(r[t+"Bubbles"]=i in n)||(f.setAttribute(i,"t"),r[t+"Bubbles"]=f.attributes[i].expando===!1);f=null}();var li=/^(?:input|select|textarea)$/i,pe=/^key/,we=/^(?:mouse|contextmenu)|click/,bu=/^(?:focusinfocus|focusoutblur)$/,ku=/^([^.]*)(?:\.(.+)|)$/;i.event={global:{},add:function(n,t,r,u,f){var w,y,b,p,s,c,l,a,e,k,d,v=i._data(n);if(v){for(r.handler&&(p=r,r=p.handler,f=p.selector),r.guid||(r.guid=i.guid++),(y=v.events)||(y=v.events={}),(c=v.handle)||(c=v.handle=function(n){if(typeof i!==o&&(!n||i.event.triggered!==n.type))return i.event.dispatch.apply(c.elem,arguments)},c.elem=n),t=(t||"").match(h)||[""],b=t.length;b--;)w=ku.exec(t[b])||[],e=d=w[1],k=(w[2]||"").split(".").sort(),e&&(s=i.event.special[e]||{},e=(f?s.delegateType:s.bindType)||e,s=i.event.special[e]||{},l=i.extend({type:e,origType:d,data:u,handler:r,guid:r.guid,selector:f,needsContext:f&&i.expr.match.needsContext.test(f),namespace:k.join(".")},p),(a=y[e])||(a=y[e]=[],a.delegateCount=0,s.setup&&s.setup.call(n,u,k,c)!==!1||(n.addEventListener?n.addEventListener(e,c,!1):n.attachEvent&&n.attachEvent("on"+e,c))),s.add&&(s.add.call(n,l),l.handler.guid||(l.handler.guid=r.guid)),f?a.splice(a.delegateCount++,0,l):a.push(l),i.event.global[e]=!0);n=null}},remove:function(n,t,r,u,f){var y,o,s,b,p,a,c,l,e,w,k,v=i.hasData(n)&&i._data(n);if(v&&(a=v.events)){for(t=(t||"").match(h)||[""],p=t.length;p--;)if(s=ku.exec(t[p])||[],e=k=s[1],w=(s[2]||"").split(".").sort(),e){for(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,l=a[e]||[],s=s[2]&&new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=l.length;y--;)o=l[y],!f&&k!==o.origType||r&&r.guid!==o.guid||s&&!s.test(o.namespace)||u&&u!==o.selector&&("**"!==u||!o.selector)||(l.splice(y,1),o.selector&&l.delegateCount--,c.remove&&c.remove.call(n,o));b&&!l.length&&(c.teardown&&c.teardown.call(n,w,v.handle)!==!1||i.removeEvent(n,e,v.handle),delete a[e])}else for(e in a)i.event.remove(n,e+t[p],r,u,!0);i.isEmptyObject(a)&&(delete v.handle,i._removeData(n,"events"))}},trigger:function(t,r,f,e){var l,a,o,p,c,h,w,y=[f||u],s=it.call(t,"type")?t.type:t,v=it.call(t,"namespace")?t.namespace.split("."):[];if(o=h=f=f||u,3!==f.nodeType&&8!==f.nodeType&&!bu.test(s+i.event.triggered)&&(s.indexOf(".")>=0&&(v=s.split("."),s=v.shift(),v.sort()),a=s.indexOf(":")<0&&"on"+s,t=t[i.expando]?t:new i.Event(s,"object"==typeof t&&t),t.isTrigger=e?2:3,t.namespace=v.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=f),r=null==r?[t]:i.makeArray(r,[t]),c=i.event.special[s]||{},e||!c.trigger||c.trigger.apply(f,r)!==!1)){if(!e&&!c.noBubble&&!i.isWindow(f)){for(p=c.delegateType||s,bu.test(p+s)||(o=o.parentNode);o;o=o.parentNode)y.push(o),h=o;h===(f.ownerDocument||u)&&y.push(h.defaultView||h.parentWindow||n)}for(w=0;(o=y[w++])&&!t.isPropagationStopped();)t.type=w>1?p:c.bindType||s,l=(i._data(o,"events")||{})[t.type]&&i._data(o,"handle"),l&&l.apply(o,r),l=a&&o[a],l&&l.apply&&i.acceptData(o)&&(t.result=l.apply(o,r),t.result===!1&&t.preventDefault());if(t.type=s,!e&&!t.isDefaultPrevented()&&(!c._default||c._default.apply(y.pop(),r)===!1)&&i.acceptData(f)&&a&&f[s]&&!i.isWindow(f)){h=f[a];h&&(f[a]=null);i.event.triggered=s;try{f[s]()}catch(b){}i.event.triggered=void 0;h&&(f[a]=h)}return t.result}},dispatch:function(n){n=i.event.fix(n);var e,f,t,r,o,s=[],h=a.call(arguments),c=(i._data(this,"events")||{})[n.type]||[],u=i.event.special[n.type]||{};if(h[0]=n,n.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,n)!==!1){for(s=i.event.handlers.call(this,n,c),e=0;(r=s[e++])&&!n.isPropagationStopped();)for(n.currentTarget=r.elem,o=0;(t=r.handlers[o++])&&!n.isImmediatePropagationStopped();)(!n.namespace_re||n.namespace_re.test(t.namespace))&&(n.handleObj=t,n.data=t.data,f=((i.event.special[t.origType]||{}).handle||t.handler).apply(r.elem,h),void 0!==f&&(n.result=f)===!1&&(n.preventDefault(),n.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,n),n.result}},handlers:function(n,t){var f,e,u,o,h=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&(!n.button||"click"!==n.type))for(;r!=this;r=r.parentNode||this)if(1===r.nodeType&&(r.disabled!==!0||"click"!==n.type)){for(u=[],o=0;s>o;o++)e=t[o],f=e.selector+" ",void 0===u[f]&&(u[f]=e.needsContext?i(f,this).index(r)>=0:i.find(f,this,null,[r]).length),u[f]&&u.push(e);u.length&&h.push({elem:r,handlers:u})}return s<t.length&&h.push({elem:this,handlers:t.slice(s)}),h},fix:function(n){if(n[i.expando])return n;var e,o,s,r=n.type,f=n,t=this.fixHooks[r];for(t||(this.fixHooks[r]=t=we.test(r)?this.mouseHooks:pe.test(r)?this.keyHooks:{}),s=t.props?this.props.concat(t.props):this.props,n=new i.Event(f),e=s.length;e--;)o=s[e],n[o]=f[o];return n.target||(n.target=f.srcElement||u),3===n.target.nodeType&&(n.target=n.target.parentNode),n.metaKey=!!n.metaKey,t.filter?t.filter(n,f):n},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return null==n.which&&(n.which=null!=t.charCode?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,t){var i,e,r,f=t.button,o=t.fromElement;return null==n.pageX&&null!=t.clientX&&(e=n.target.ownerDocument||u,r=e.documentElement,i=e.body,n.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),n.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),!n.relatedTarget&&o&&(n.relatedTarget=o===n.target?t.toElement:o),n.which||void 0===f||(n.which=1&f?1:2&f?3:4&f?2:0),n}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==or()&&this.focus)try{return this.focus(),!1}catch(n){}},delegateType:"focusin"},blur:{trigger:function(){if(this===or()&&this.blur)return(this.blur(),!1)},delegateType:"focusout"},click:{trigger:function(){if(i.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return(this.click(),!1)},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,t,r,u){var f=i.extend(new i.Event,r,{type:n,isSimulated:!0,originalEvent:{}});u?i.event.trigger(f,null,t):i.event.dispatch.call(t,f);f.isDefaultPrevented()&&r.preventDefault()}};i.removeEvent=u.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)}:function(n,t,i){var r="on"+t;n.detachEvent&&(typeof n[r]===o&&(n[r]=null),n.detachEvent(r,i))};i.Event=function(n,t){return this instanceof i.Event?(n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&(n.returnValue===!1||n.getPreventDefault&&n.getPreventDefault())?ct:tt):this.type=n,t&&i.extend(this,t),this.timeStamp=n&&n.timeStamp||i.now(),void(this[i.expando]=!0)):new i.Event(n,t)};i.Event.prototype={isDefaultPrevented:tt,isPropagationStopped:tt,isImmediatePropagationStopped:tt,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=ct;n&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=ct;n&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ct;this.stopPropagation()}};i.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return(!r||r!==f&&!i.contains(f,r))&&(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});r.submitBubbles||(i.event.special.submit={setup:function(){return i.nodeName(this,"form")?!1:void i.event.add(this,"click._submit keypress._submit",function(n){var r=n.target,t=i.nodeName(r,"input")||i.nodeName(r,"button")?r.form:void 0;t&&!i._data(t,"submitBubbles")&&(i.event.add(t,"submit._submit",function(n){n._submit_bubble=!0}),i._data(t,"submitBubbles",!0))})},postDispatch:function(n){n._submit_bubble&&(delete n._submit_bubble,this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n,!0))},teardown:function(){return i.nodeName(this,"form")?!1:void i.event.remove(this,"._submit")}});r.changeBubbles||(i.event.special.change={setup:function(){return li.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(i.event.add(this,"propertychange._change",function(n){"checked"===n.originalEvent.propertyName&&(this._just_changed=!0)}),i.event.add(this,"click._change",function(n){this._just_changed&&!n.isTrigger&&(this._just_changed=!1);i.event.simulate("change",this,n,!0)})),!1):void i.event.add(this,"beforeactivate._change",function(n){var t=n.target;li.test(t.nodeName)&&!i._data(t,"changeBubbles")&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n,!0)}),i._data(t,"changeBubbles",!0))})},handle:function(n){var t=n.target;if(this!==t||n.isSimulated||n.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return n.handleObj.handler.apply(this,arguments)},teardown:function(){return i.event.remove(this,"._change"),!li.test(this.nodeName)}});r.focusinBubbles||i.each({focus:"focusin",blur:"focusout"},function(n,t){var r=function(n){i.event.simulate(t,n.target,i.event.fix(n),!0)};i.event.special[t]={setup:function(){var u=this.ownerDocument||this,f=i._data(u,t);f||u.addEventListener(n,r,!0);i._data(u,t,(f||0)+1)},teardown:function(){var u=this.ownerDocument||this,f=i._data(u,t)-1;f?i._data(u,t,f):(u.removeEventListener(n,r,!0),i._removeData(u,t))}}});i.fn.extend({on:function(n,t,r,u,f){var o,e;if("object"==typeof n){"string"!=typeof t&&(r=r||t,t=void 0);for(o in n)this.on(o,t,r,n[o],f);return this}if(null==r&&null==u?(u=t,r=t=void 0):null==u&&("string"==typeof t?(u=r,r=void 0):(u=r,r=t,t=void 0)),u===!1)u=tt;else if(!u)return this;return 1===f&&(e=u,u=function(n){return i().off(n),e.apply(this,arguments)},u.guid=e.guid||(e.guid=i.guid++)),this.each(function(){i.event.add(this,n,u,r,t)})},one:function(n,t,i,r){return this.on(n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return(t===!1||"function"==typeof t)&&(r=t,t=void 0),r===!1&&(r=tt),this.each(function(){i.event.remove(this,n,r,t)})},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});var du="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",be=/ jQuery\d+="(?:null|\d+)"/g,gu=new RegExp("<(?:"+du+")[\\s/>]","i"),ai=/^\s+/,nf=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,tf=/<([\w:]+)/,rf=/<tbody/i,ke=/<|&#?\w+;/,de=/<(?:script|style|link)/i,ge=/checked\s*(?:[^=]|=\s*.checked.)/i,uf=/^$|\/(?:java|ecma)script/i,no=/^true\/(.*)/,to=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,s={option:[1,"<select multiple='multiple'>","<\/select>"],legend:[1,"<fieldset>","<\/fieldset>"],area:[1,"<map>","<\/map>"],param:[1,"<object>","<\/object>"],thead:[1,"<table>","<\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],col:[2,"<table><tbody><\/tbody><colgroup>","<\/colgroup><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:r.htmlSerialize?[0,"",""]:[1,"X<div>","<\/div>"]},io=sr(u),vi=io.appendChild(u.createElement("div"));s.optgroup=s.option;s.tbody=s.tfoot=s.colgroup=s.caption=s.thead;s.th=s.td;i.extend({clone:function(n,t,u){var e,c,s,o,h,l=i.contains(n.ownerDocument,n);if(r.html5Clone||i.isXMLDoc(n)||!gu.test("<"+n.nodeName+">")?s=n.cloneNode(!0):(vi.innerHTML=n.outerHTML,vi.removeChild(s=vi.firstChild)),!(r.noCloneEvent&&r.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(e=f(s),h=f(n),o=0;null!=(c=h[o]);++o)e[o]&&te(c,e[o]);if(t)if(u)for(h=h||f(n),e=e||f(s),o=0;null!=(c=h[o]);o++)ar(c,e[o]);else ar(n,s);return e=f(s,"script"),e.length>0&&ui(e,!l&&f(n,"script")),e=h=c=null,s},buildFragment:function(n,t,u,e){for(var c,o,b,h,p,w,a,k=n.length,v=sr(t),l=[],y=0;k>y;y++)if(o=n[y],o||0===o)if("object"===i.type(o))i.merge(l,o.nodeType?[o]:o);else if(ke.test(o)){for(h=h||v.appendChild(t.createElement("div")),p=(tf.exec(o)||["",""])[1].toLowerCase(),a=s[p]||s._default,h.innerHTML=a[1]+o.replace(nf,"<$1><\/$2>")+a[2],c=a[0];c--;)h=h.lastChild;if(!r.leadingWhitespace&&ai.test(o)&&l.push(t.createTextNode(ai.exec(o)[0])),!r.tbody)for(o="table"!==p||rf.test(o)?"<table>"!==a[1]||rf.test(o)?0:h:h.firstChild,c=o&&o.childNodes.length;c--;)i.nodeName(w=o.childNodes[c],"tbody")&&!w.childNodes.length&&o.removeChild(w);for(i.merge(l,h.childNodes),h.textContent="";h.firstChild;)h.removeChild(h.firstChild);h=v.lastChild}else l.push(t.createTextNode(o));for(h&&v.removeChild(h),r.appendChecked||i.grep(f(l,"input"),ne),y=0;o=l[y++];)if((!e||-1===i.inArray(o,e))&&(b=i.contains(o.ownerDocument,o),h=f(v.appendChild(o),"script"),b&&ui(h),u))for(c=0;o=h[c++];)uf.test(o.type||"")&&u.push(o);return h=null,v},cleanData:function(n,t){for(var u,e,f,s,a=0,h=i.expando,c=i.cache,v=r.deleteExpando,y=i.event.special;null!=(u=n[a]);a++)if((t||i.acceptData(u))&&(f=u[h],s=f&&c[f])){if(s.events)for(e in s.events)y[e]?i.event.remove(u,e):i.removeEvent(u,e,s.handle);c[f]&&(delete c[f],v?delete u[h]:typeof u.removeAttribute!==o?u.removeAttribute(h):u[h]=null,l.push(f))}}});i.fn.extend({text:function(n){return b(this,function(n){return void 0===n?i.text(this):this.empty().append((this[0]&&this[0].ownerDocument||u).createTextNode(n))},null,n,arguments.length)},append:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=hr(this,n);t.appendChild(n)}})},prepend:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=hr(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},remove:function(n,t){for(var r,e=n?i.filter(n,this):this,u=0;null!=(r=e[u]);u++)t||1!==r.nodeType||i.cleanData(f(r)),r.parentNode&&(t&&i.contains(r.ownerDocument,r)&&ui(f(r,"script")),r.parentNode.removeChild(r));return this},empty:function(){for(var n,t=0;null!=(n=this[t]);t++){for(1===n.nodeType&&i.cleanData(f(n,!1));n.firstChild;)n.removeChild(n.firstChild);n.options&&i.nodeName(n,"select")&&(n.options.length=0)}return this},clone:function(n,t){return n=null==n?!1:n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return b(this,function(n){var t=this[0]||{},u=0,e=this.length;if(void 0===n)return 1===t.nodeType?t.innerHTML.replace(be,""):void 0;if(!("string"!=typeof n||de.test(n)||!r.htmlSerialize&&gu.test(n)||!r.leadingWhitespace&&ai.test(n)||s[(tf.exec(n)||["",""])[1].toLowerCase()])){n=n.replace(nf,"<$1><\/$2>");try{for(;e>u;u++)t=this[u]||{},1===t.nodeType&&(i.cleanData(f(t,!1)),t.innerHTML=n);t=0}catch(o){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=arguments[0];return this.domManip(arguments,function(t){n=this.parentNode;i.cleanData(f(this));n&&n.replaceChild(t,this)}),n&&(n.length||n.nodeType)?this:this.remove()},detach:function(n){return this.remove(n,!0)},domManip:function(n,t){n=ou.apply([],n);var h,u,c,o,v,s,e=0,l=this.length,p=this,w=l-1,a=n[0],y=i.isFunction(a);if(y||l>1&&"string"==typeof a&&!r.checkClone&&ge.test(a))return this.each(function(i){var r=p.eq(i);y&&(n[0]=a.call(this,i,r.html()));r.domManip(n,t)});if(l&&(s=i.buildFragment(n,this[0].ownerDocument,!1,this),h=s.firstChild,1===s.childNodes.length&&(s=h),h)){for(o=i.map(f(s,"script"),cr),c=o.length;l>e;e++)u=s,e!==w&&(u=i.clone(u,!0,!0),c&&i.merge(o,f(u,"script"))),t.call(this[e],u,e);if(c)for(v=o[o.length-1].ownerDocument,i.map(o,lr),e=0;c>e;e++)u=o[e],uf.test(u.type||"")&&!i._data(u,"globalEval")&&i.contains(v,u)&&(u.src?i._evalUrl&&i._evalUrl(u.src):i.globalEval((u.text||u.textContent||u.innerHTML||"").replace(to,"")));s=h=null}return this}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,r=0,f=[],e=i(n),o=e.length-1;o>=r;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),oi.apply(f,u.get());return this.pushStack(f)}});yi={};!function(){var t,i,n=u.createElement("div"),f="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";n.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>";t=n.getElementsByTagName("a")[0];t.style.cssText="float:left;opacity:.5";r.opacity=/^0.5/.test(t.style.opacity);r.cssFloat=!!t.style.cssFloat;n.style.backgroundClip="content-box";n.cloneNode(!0).style.backgroundClip="";r.clearCloneStyle="content-box"===n.style.backgroundClip;t=n=null;r.shrinkWrapBlocks=function(){var t,r,n,e;if(null==i){if(t=u.getElementsByTagName("body")[0],!t)return;e="border:0;width:0;height:0;position:absolute;top:0;left:-9999px";r=u.createElement("div");n=u.createElement("div");t.appendChild(r).appendChild(n);i=!1;typeof n.style.zoom!==o&&(n.style.cssText=f+";width:1px;padding:1px;zoom:1",n.innerHTML="<div><\/div>",n.firstChild.style.width="5px",i=3!==n.offsetWidth);t.removeChild(r);t=r=n=null}return i}}();var k,d,ff=/^margin/,pt=new RegExp("^("+yt+")(?!px)[a-z%]+$","i"),ro=/^(top|right|bottom|left)$/;n.getComputedStyle?(k=function(n){return n.ownerDocument.defaultView.getComputedStyle(n,null)},d=function(n,t,r){var e,o,s,u,f=n.style;return r=r||k(n),u=r?r.getPropertyValue(t)||r[t]:void 0,r&&(""!==u||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),pt.test(u)&&ff.test(t)&&(e=f.width,o=f.minWidth,s=f.maxWidth,f.minWidth=f.maxWidth=f.width=u,u=r.width,f.width=e,f.minWidth=o,f.maxWidth=s)),void 0===u?u:u+""}):u.documentElement.currentStyle&&(k=function(n){return n.currentStyle},d=function(n,t,i){var o,f,e,r,u=n.style;return i=i||k(n),r=i?i[t]:void 0,null==r&&u&&u[t]&&(r=u[t]),pt.test(r)&&!ro.test(t)&&(o=u.left,f=n.runtimeStyle,e=f&&f.left,e&&(f.left=n.currentStyle.left),u.left="fontSize"===t?"1em":r,r=u.pixelLeft+"px",u.left=o,e&&(f.left=e)),void 0===r?r:r+""||"auto"}),function(){function c(){var f,t,r=u.getElementsByTagName("body")[0];r&&(f=u.createElement("div"),t=u.createElement("div"),f.style.cssText=a,r.appendChild(f).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;display:block;padding:1px;border:1px;width:4px;margin-top:1%;top:1%",i.swap(r,null!=r.style.zoom?{zoom:1}:{},function(){l=4===t.offsetWidth}),o=!0,s=!1,h=!0,n.getComputedStyle&&(s="1%"!==(n.getComputedStyle(t,null)||{}).top,o="4px"===(n.getComputedStyle(t,null)||{width:"4px"}).width),r.removeChild(f),t=r=null)}var f,e,l,o,s,h,t=u.createElement("div"),a="border:0;width:0;height:0;position:absolute;top:0;left:-9999px",v="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";t.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>";f=t.getElementsByTagName("a")[0];f.style.cssText="float:left;opacity:.5";r.opacity=/^0.5/.test(f.style.opacity);r.cssFloat=!!f.style.cssFloat;t.style.backgroundClip="content-box";t.cloneNode(!0).style.backgroundClip="";r.clearCloneStyle="content-box"===t.style.backgroundClip;f=t=null;i.extend(r,{reliableHiddenOffsets:function(){if(null!=e)return e;var i,n,f,t=u.createElement("div"),r=u.getElementsByTagName("body")[0];if(r)return t.setAttribute("className","t"),t.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>",i=u.createElement("div"),i.style.cssText=a,r.appendChild(i).appendChild(t),t.innerHTML="<table><tr><td><\/td><td>t<\/td><\/tr><\/table>",n=t.getElementsByTagName("td"),n[0].style.cssText="padding:0;margin:0;border:0;display:none",f=0===n[0].offsetHeight,n[0].style.display="",n[1].style.display="none",e=f&&0===n[0].offsetHeight,r.removeChild(i),t=r=null,e},boxSizing:function(){return null==l&&c(),l},boxSizingReliable:function(){return null==o&&c(),o},pixelPosition:function(){return null==s&&c(),s},reliableMarginRight:function(){var r,f,t,i;if(null==h&&n.getComputedStyle){if(r=u.getElementsByTagName("body")[0],!r)return;f=u.createElement("div");t=u.createElement("div");f.style.cssText=a;r.appendChild(f).appendChild(t);i=t.appendChild(u.createElement("div"));i.style.cssText=t.style.cssText=v;i.style.marginRight=i.style.width="0";t.style.width="1px";h=!parseFloat((n.getComputedStyle(i,null)||{}).marginRight);r.removeChild(f)}return h}})}();i.swap=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f};var pi=/alpha\([^)]*\)/i,uo=/opacity\s*=\s*([^)]*)/,fo=/^(none|table(?!-c[ea]).+)/,eo=new RegExp("^("+yt+")(.*)$","i"),oo=new RegExp("^([+-])=("+yt+")","i"),so={position:"absolute",visibility:"hidden",display:"block"},ef={letterSpacing:0,fontWeight:400},of=["Webkit","O","Moz","ms"];i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=d(n,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:r.cssFloat?"cssFloat":"styleFloat"},style:function(n,t,u,f){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var o,c,e,s=i.camelCase(t),h=n.style;if(t=i.cssProps[s]||(i.cssProps[s]=wr(h,s)),e=i.cssHooks[t]||i.cssHooks[s],void 0===u)return e&&"get"in e&&void 0!==(o=e.get(n,!1,f))?o:h[t];if(c=typeof u,"string"===c&&(o=oo.exec(u))&&(u=(o[1]+1)*o[2]+parseFloat(i.css(n,t)),c="number"),null!=u&&u===u&&("number"!==c||i.cssNumber[s]||(u+="px"),r.clearCloneStyle||""!==u||0!==t.indexOf("background")||(h[t]="inherit"),!(e&&"set"in e&&void 0===(u=e.set(n,u,f)))))try{h[t]="";h[t]=u}catch(l){}}},css:function(n,t,r,u){var s,f,e,o=i.camelCase(t);return t=i.cssProps[o]||(i.cssProps[o]=wr(n.style,o)),e=i.cssHooks[t]||i.cssHooks[o],e&&"get"in e&&(f=e.get(n,!0,r)),void 0===f&&(f=d(n,t,u)),"normal"===f&&t in ef&&(f=ef[t]),""===r||r?(s=parseFloat(f),r===!0||i.isNumeric(s)?s||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return 0===n.offsetWidth&&fo.test(i.css(n,"display"))?i.swap(n,so,function(){return gr(n,t,u)}):gr(n,t,u)},set:function(n,u,f){var e=f&&k(n);return kr(n,u,f?dr(n,t,f,r.boxSizing()&&"border-box"===i.css(n,"boxSizing",!1,e),e):0)}}});r.opacity||(i.cssHooks.opacity={get:function(n,t){return uo.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(n,t){var r=n.style,u=n.currentStyle,e=i.isNumeric(t)?"alpha(opacity="+100*t+")":"",f=u&&u.filter||r.filter||"";r.zoom=1;(t>=1||""===t)&&""===i.trim(f.replace(pi,""))&&r.removeAttribute&&(r.removeAttribute("filter"),""===t||u&&!u.filter)||(r.filter=pi.test(f)?f.replace(pi,e):f+" "+e)}});i.cssHooks.marginRight=pr(r.reliableMarginRight,function(n,t){if(t)return i.swap(n,{display:"inline-block"},d,[n,"marginRight"])});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];4>r;r++)f[n+w[r]+t]=u[r]||u[r-2]||u[0];return f}};ff.test(n)||(i.cssHooks[n+t].set=kr)});i.fn.extend({css:function(n,t){return b(this,function(n,t,r){var f,e,o={},u=0;if(i.isArray(t)){for(f=k(n),e=t.length;e>u;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)},show:function(){return br(this,!0)},hide:function(){return br(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){et(this)?i(this).show():i(this).hide()})}});i.Tween=e;e.prototype={constructor:e,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||"swing";this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=e.propHooks[this.prop];return n&&n.get?n.get(this):e.propHooks._default.get(this)},run:function(n){var r,t=e.propHooks[this.prop];return this.pos=r=this.options.duration?i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):n,this.now=(this.end-this.start)*r+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),t&&t.set?t.set(this):e.propHooks._default.set(this),this}};e.prototype.init.prototype=e.prototype;e.propHooks={_default:{get:function(n){var t;return null==n.elem[n.prop]||n.elem.style&&null!=n.elem.style[n.prop]?(t=i.css(n.elem,n.prop,""),t&&"auto"!==t?t:0):n.elem[n.prop]},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.style&&(null!=n.elem.style[i.cssProps[n.prop]]||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};e.propHooks.scrollTop=e.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2}};i.fx=e.prototype.init;i.fx.step={};var rt,wt,ho=/^(?:toggle|show|hide)$/,sf=new RegExp("^(?:([+-])=|)("+yt+")([a-z%]*)$","i"),co=/queueHooks$/,bt=[ie],st={"*":[function(n,t){var f=this.createTween(n,t),s=f.cur(),r=sf.exec(t),e=r&&r[3]||(i.cssNumber[n]?"":"px"),u=(i.cssNumber[n]||"px"!==e&&+s)&&sf.exec(i.css(f.elem,n)),o=1,h=20;if(u&&u[3]!==e){e=e||u[3];r=r||[];u=+s||1;do o=o||".5",u/=o,i.style(f.elem,n,u+e);while(o!==(o=f.cur()/s)&&1!==o&&--h)}return r&&(u=f.start=+u||+s||0,f.unit=e,f.end=r[1]?u+(r[1]+1)*r[2]:+r[2]),f}]};i.Animation=i.extend(iu,{tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.split(" ");for(var r,u=0,f=n.length;f>u;u++)r=n[u],st[r]=st[r]||[],st[r].unshift(t)},prefilter:function(n,t){t?bt.unshift(n):bt.push(n)}});i.speed=function(n,t,r){var u=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:"number"==typeof u.duration?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(null==u.queue||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(et).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){var o=i.isEmptyObject(n),e=i.speed(t,r,u),f=function(){var t=iu(this,i.extend({},n),e);(o||i._data(this,"finish"))&&t.stop(!0)};return f.finish=f,o||e.queue===!1?this.each(f):this.queue(e.queue,f)},stop:function(n,t,r){var u=function(n){var t=n.stop;delete n.stop;t(r)};return"string"!=typeof n&&(r=t,t=n,n=void 0),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var o=!0,t=null!=n&&n+"queueHooks",e=i.timers,f=i._data(this);if(t)f[t]&&f[t].stop&&u(f[t]);else for(t in f)f[t]&&f[t].stop&&co.test(t)&&u(f[t]);for(t=e.length;t--;)e[t].elem!==this||null!=n&&e[t].queue!==n||(e[t].anim.stop(r),o=!1,e.splice(t,1));(o||!r)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,f=i._data(this),r=f[n+"queue"],e=f[n+"queueHooks"],u=i.timers,o=r?r.length:0;for(f.finish=!0,i.queue(this,n,[]),e&&e.stop&&e.stop.call(this,!0),t=u.length;t--;)u[t].elem===this&&u[t].queue===n&&(u[t].anim.stop(!0),u.splice(t,1));for(t=0;o>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete f.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(lt(t,!0),n,i,u)}});i.each({slideDown:lt("show"),slideUp:lt("hide"),slideToggle:lt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=i.timers,t=0;for(rt=i.now();t<n.length;t++)r=n[t],r()||n[t]!==r||n.splice(t--,1);n.length||i.fx.stop();rt=void 0};i.fx.timer=function(n){i.timers.push(n);n()?i.fx.start():i.timers.pop()};i.fx.interval=13;i.fx.start=function(){wt||(wt=setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){clearInterval(wt);wt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(t,i){var r=setTimeout(t,n);i.stop=function(){clearTimeout(r)}})},function(){var i,n,f,e,t=u.createElement("div");t.setAttribute("className","t");t.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>";i=t.getElementsByTagName("a")[0];f=u.createElement("select");e=f.appendChild(u.createElement("option"));n=t.getElementsByTagName("input")[0];i.style.cssText="top:1px";r.getSetAttribute="t"!==t.className;r.style=/top/.test(i.getAttribute("style"));r.hrefNormalized="/a"===i.getAttribute("href");r.checkOn=!!n.value;r.optSelected=e.selected;r.enctype=!!u.createElement("form").enctype;f.disabled=!0;r.optDisabled=!e.disabled;n=u.createElement("input");n.setAttribute("value","");r.input=""===n.getAttribute("value");n.value="t";n.setAttribute("type","radio");r.radioValue="t"===n.value;i=n=f=e=t=null}();hf=/\r/g;i.fn.extend({val:function(n){var t,r,f,u=this[0];return arguments.length?(f=i.isFunction(n),this.each(function(r){var u;1===this.nodeType&&(u=f?n.call(this,r,i(this).val()):n,null==u?u="":"number"==typeof u?u+="":i.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(r=t.get(u,"value"))?r:(r=u.value,"string"==typeof r?r.replace(hf,""):null==r?"":r)):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:i.text(n)}},select:{get:function(n){for(var o,t,s=n.options,u=n.selectedIndex,f="select-one"===n.type||0>u,h=f?null:[],c=f?u+1:s.length,e=0>u?c:f?u:0;c>e;e++)if(t=s[e],!(!t.selected&&e!==u||(r.optDisabled?t.disabled:null!==t.getAttribute("disabled"))||t.parentNode.disabled&&i.nodeName(t.parentNode,"optgroup"))){if(o=i(t).val(),f)return o;h.push(o)}return h},set:function(n,t){for(var f,r,u=n.options,o=i.makeArray(t),e=u.length;e--;)if(r=u[e],i.inArray(i.valHooks.option.get(r),o)>=0)try{r.selected=f=!0}catch(s){r.scrollHeight}else r.selected=!1;return f||(n.selectedIndex=-1),u}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>=0}};r.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});var ut,cf,v=i.expr.attrHandle,wi=/^(?:checked|selected)$/i,g=r.getSetAttribute,kt=r.input;i.fn.extend({attr:function(n,t){return b(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(n&&3!==e&&8!==e&&2!==e)return typeof n.getAttribute===o?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(t=t.toLowerCase(),u=i.attrHooks[t]||(i.expr.match.bool.test(t)?cf:ut)),void 0===r?u&&"get"in u&&null!==(f=u.get(n,t))?f:(f=i.find.attr(n,t),null==f?void 0:f):null!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:(n.setAttribute(t,r+""),r):void i.removeAttr(n,t))},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(h);if(f&&1===n.nodeType)for(;r=f[e++];)u=i.propFix[r]||r,i.expr.match.bool.test(r)?kt&&g||!wi.test(r)?n[u]=!1:n[i.camelCase("default-"+r)]=n[u]=!1:i.attr(n,r,""),n.removeAttribute(g?r:u)},attrHooks:{type:{set:function(n,t){if(!r.radioValue&&"radio"===t&&i.nodeName(n,"input")){var u=n.value;return n.setAttribute("type",t),u&&(n.value=u),t}}}}});cf={set:function(n,t,r){return t===!1?i.removeAttr(n,r):kt&&g||!wi.test(r)?n.setAttribute(!g&&i.propFix[r]||r,r):n[i.camelCase("default-"+r)]=n[r]=!0,r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=v[t]||i.find.attr;v[t]=kt&&g||!wi.test(t)?function(n,t,i){var u,f;return i||(f=v[t],v[t]=u,u=null!=r(n,t,i)?t.toLowerCase():null,v[t]=f),u}:function(n,t,r){if(!r)return n[i.camelCase("default-"+t)]?t.toLowerCase():null}});kt&&g||(i.attrHooks.value={set:function(n,t,r){return i.nodeName(n,"input")?void(n.defaultValue=t):ut&&ut.set(n,t,r)}});g||(ut={set:function(n,t,i){var r=n.getAttributeNode(i);return r||n.setAttributeNode(r=n.ownerDocument.createAttribute(i)),r.value=t+="","value"===i||t===n.getAttribute(i)?t:void 0}},v.id=v.name=v.coords=function(n,t,i){var r;if(!i)return(r=n.getAttributeNode(t))&&""!==r.value?r.value:null},i.valHooks.button={get:function(n,t){var i=n.getAttributeNode(t);if(i&&i.specified)return i.value},set:ut.set},i.attrHooks.contenteditable={set:function(n,t,i){ut.set(n,""===t?!1:t,i)}},i.each(["width","height"],function(n,t){i.attrHooks[t]={set:function(n,i){if(""===i)return(n.setAttribute(t,"auto"),i)}}}));r.style||(i.attrHooks.style={get:function(n){return n.style.cssText||void 0},set:function(n,t){return n.style.cssText=t+""}});lf=/^(?:input|select|textarea|button|object)$/i;af=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return b(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=void 0;delete this[n]}catch(t){}})}});i.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(n,t,r){var f,u,o,e=n.nodeType;if(n&&3!==e&&8!==e&&2!==e)return o=1!==e||!i.isXMLDoc(n),o&&(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):lf.test(n.nodeName)||af.test(n.nodeName)&&n.href?0:-1}}}});r.hrefNormalized||i.each(["href","src"],function(n,t){i.propHooks[t]={get:function(n){return n.getAttribute(t,4)}}});r.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});r.enctype||(i.propFix.enctype="encoding");dt=/[\t\r\n\f]/g;i.fn.extend({addClass:function(n){var o,t,r,u,s,f,e=0,c=this.length,l="string"==typeof n&&n;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,this.className))});if(l)for(o=(n||"").match(h)||[];c>e;e++)if(t=this[e],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(dt," "):" ")){for(s=0;u=o[s++];)r.indexOf(" "+u+" ")<0&&(r+=u+" ");f=i.trim(r);t.className!==f&&(t.className=f)}return this},removeClass:function(n){var o,t,r,u,s,f,e=0,c=this.length,l=0===arguments.length||"string"==typeof n&&n;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,this.className))});if(l)for(o=(n||"").match(h)||[];c>e;e++)if(t=this[e],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(dt," "):"")){for(s=0;u=o[s++];)for(;r.indexOf(" "+u+" ")>=0;)r=r.replace(" "+u+" "," ");f=n?i.trim(r):"";t.className!==f&&(t.className=f)}return this},toggleClass:function(n,t){var r=typeof n;return"boolean"==typeof t&&"string"===r?t?this.addClass(n):this.removeClass(n):this.each(i.isFunction(n)?function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}:function(){if("string"===r)for(var t,f=0,u=i(this),e=n.match(h)||[];t=e[f++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else(r===o||"boolean"===r)&&(this.className&&i._data(this,"__className__",this.className),this.className=this.className||n===!1?"":i._data(this,"__className__")||"")})},hasClass:function(n){for(var i=" "+n+" ",t=0,r=this.length;r>t;t++)if(1===this[t].nodeType&&(" "+this[t].className+" ").replace(dt," ").indexOf(i)>=0)return!0;return!1}});i.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(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)},bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}});var bi=i.now(),ki=/\?/,lo=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;i.parseJSON=function(t){if(n.JSON&&n.JSON.parse)return n.JSON.parse(t+"");var f,r=null,u=i.trim(t+"");return u&&!i.trim(u.replace(lo,function(n,t,i,u){return f&&t&&(r=0),0===r?n:(f=i||t,r+=!u-!i,"")}))?Function("return "+u)():i.error("Invalid JSON: "+t)};i.parseXML=function(t){var r,u;if(!t||"string"!=typeof t)return null;try{n.DOMParser?(u=new DOMParser,r=u.parseFromString(t,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(t))}catch(f){r=void 0}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+t),r};var nt,y,ao=/#.*$/,vf=/([?&])_=[^&]*/,vo=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,yo=/^(?:GET|HEAD)$/,po=/^\/\//,yf=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,pf={},di={},wf="*/".concat("*");try{y=location.href}catch(ts){y=u.createElement("a");y.href="";y=y.href}nt=yf.exec(y.toLowerCase())||[];i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:y,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(nt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":wf,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?fi(fi(n,i.ajaxSettings),t):fi(i.ajaxSettings,n)},ajaxPrefilter:ru(pf),ajaxTransport:ru(di),ajax:function(n,t){function v(n,t,s,h){var v,it,nt,y,p,c=t;2!==e&&(e=2,k&&clearTimeout(k),a=void 0,b=h||"",u.readyState=n>0?4:0,v=n>=200&&300>n||304===n,s&&(y=ue(r,u,s)),y=fe(r,y,u,v),v?(r.ifModified&&(p=u.getResponseHeader("Last-Modified"),p&&(i.lastModified[f]=p),p=u.getResponseHeader("etag"),p&&(i.etag[f]=p)),204===n||"HEAD"===r.type?c="nocontent":304===n?c="notmodified":(c=y.state,it=y.data,nt=y.error,v=!nt)):(nt=c,(n||!c)&&(c="error",0>n&&(n=0))),u.status=n,u.statusText=(t||c)+"",v?g.resolveWith(o,[it,c,u]):g.rejectWith(o,[u,c,nt]),u.statusCode(w),w=void 0,l&&d.trigger(v?"ajaxSuccess":"ajaxError",[u,r,v?it:nt]),tt.fireWith(o,[u,c]),l&&(d.trigger("ajaxComplete",[u,r]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof n&&(t=n,n=void 0);t=t||{};var s,c,f,b,k,l,a,p,r=i.ajaxSetup({},t),o=r.context||r,d=r.context&&(o.nodeType||o.jquery)?i(o):i.event,g=i.Deferred(),tt=i.Callbacks("once memory"),w=r.statusCode||{},it={},rt={},e=0,ut="canceled",u={readyState:0,getResponseHeader:function(n){var t;if(2===e){if(!p)for(p={};t=vo.exec(b);)p[t[1].toLowerCase()]=t[2];t=p[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===e?b:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return e||(n=rt[i]=rt[i]||n,it[n]=t),this},overrideMimeType:function(n){return e||(r.mimeType=n),this},statusCode:function(n){var t;if(n)if(2>e)for(t in n)w[t]=[w[t],n[t]];else u.always(n[u.status]);return this},abort:function(n){var t=n||ut;return a&&a.abort(t),v(0,t),this}};if(g.promise(u).complete=tt.add,u.success=u.done,u.error=u.fail,r.url=((n||r.url||y)+"").replace(ao,"").replace(po,nt[1]+"//"),r.type=t.method||t.type||r.method||r.type,r.dataTypes=i.trim(r.dataType||"*").toLowerCase().match(h)||[""],null==r.crossDomain&&(s=yf.exec(r.url.toLowerCase()),r.crossDomain=!(!s||s[1]===nt[1]&&s[2]===nt[2]&&(s[3]||("http:"===s[1]?"80":"443"))===(nt[3]||("http:"===nt[1]?"80":"443")))),r.data&&r.processData&&"string"!=typeof r.data&&(r.data=i.param(r.data,r.traditional)),uu(pf,r,t,u),2===e)return u;l=r.global;l&&0==i.active++&&i.event.trigger("ajaxStart");r.type=r.type.toUpperCase();r.hasContent=!yo.test(r.type);f=r.url;r.hasContent||(r.data&&(f=r.url+=(ki.test(f)?"&":"?")+r.data,delete r.data),r.cache===!1&&(r.url=vf.test(f)?f.replace(vf,"$1_="+bi++):f+(ki.test(f)?"&":"?")+"_="+bi++));r.ifModified&&(i.lastModified[f]&&u.setRequestHeader("If-Modified-Since",i.lastModified[f]),i.etag[f]&&u.setRequestHeader("If-None-Match",i.etag[f]));(r.data&&r.hasContent&&r.contentType!==!1||t.contentType)&&u.setRequestHeader("Content-Type",r.contentType);u.setRequestHeader("Accept",r.dataTypes[0]&&r.accepts[r.dataTypes[0]]?r.accepts[r.dataTypes[0]]+("*"!==r.dataTypes[0]?", "+wf+"; q=0.01":""):r.accepts["*"]);for(c in r.headers)u.setRequestHeader(c,r.headers[c]);if(r.beforeSend&&(r.beforeSend.call(o,u,r)===!1||2===e))return u.abort();ut="abort";for(c in{success:1,error:1,complete:1})u[c](r[c]);if(a=uu(di,r,t,u)){u.readyState=1;l&&d.trigger("ajaxSend",[u,r]);r.async&&r.timeout>0&&(k=setTimeout(function(){u.abort("timeout")},r.timeout));try{e=1;a.send(it,v)}catch(ft){if(!(2>e))throw ft;v(-1,ft)}}else v(-1,"No Transport");return u},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,t,"script")}});i.each(["get","post"],function(n,t){i[t]=function(n,r,u,f){return i.isFunction(r)&&(f=f||u,u=r,r=void 0),i.ajax({url:n,type:t,dataType:f,data:r,success:u})}});i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}});i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})};i.fn.extend({wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]);t.map(function(){for(var n=this;n.firstChild&&1===n.firstChild.nodeType;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return this.each(i.isFunction(n)?function(t){i(this).wrapInner(n.call(this,t))}:function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}});i.expr.filters.hidden=function(n){return n.offsetWidth<=0&&n.offsetHeight<=0||!r.reliableHiddenOffsets()&&"none"===(n.style&&n.style.display||i.css(n,"display"))};i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)};var wo=/%20/g,bo=/\[\]$/,bf=/\r?\n/g,ko=/^(?:submit|button|image|reset|file)$/i,go=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,u=[],f=function(n,t){t=i.isFunction(t)?t():null==t?"":t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(void 0===t&&(t=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)ei(r,n[r],t,f);return u.join("&").replace(wo,"+")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&go.test(this.nodeName)&&!ko.test(n)&&(this.checked||!ci.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(bf,"\r\n")}}):{name:t.name,value:r.replace(bf,"\r\n")}}).get()}});i.ajaxSettings.xhr=void 0!==n.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&fu()||ee()}:fu;var ns=0,gt={},ht=i.ajaxSettings.xhr();return n.ActiveXObject&&i(n).on("unload",function(){for(var n in gt)gt[n](void 0,!0)}),r.cors=!!ht&&"withCredentials"in ht,ht=r.ajax=!!ht,ht&&i.ajaxTransport(function(n){if(!n.crossDomain||r.cors){var t;return{send:function(r,u){var e,f=n.xhr(),o=++ns;if(f.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(e in n.xhrFields)f[e]=n.xhrFields[e];n.mimeType&&f.overrideMimeType&&f.overrideMimeType(n.mimeType);n.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(e in r)void 0!==r[e]&&f.setRequestHeader(e,r[e]+"");f.send(n.hasContent&&n.data||null);t=function(r,e){var s,c,h;if(t&&(e||4===f.readyState))if(delete gt[o],t=void 0,f.onreadystatechange=i.noop,e)4!==f.readyState&&f.abort();else{h={};s=f.status;"string"==typeof f.responseText&&(h.text=f.responseText);try{c=f.statusText}catch(l){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=h.text?200:404}h&&u(s,c,h,f.getAllResponseHeaders())};n.async?4===f.readyState?setTimeout(t):f.onreadystatechange=gt[o]=t:t()},abort:function(){t&&t(void 0,!0)}}}}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET",n.global=!1)}),i.ajaxTransport("script",function(n){if(n.crossDomain){var t,r=u.head||i("head")[0]||u.documentElement;return{send:function(i,f){t=u.createElement("script");t.async=!0;n.scriptCharset&&(t.charset=n.scriptCharset);t.src=n.url;t.onload=t.onreadystatechange=function(n,i){(i||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,i||f(200,"success"))};r.insertBefore(t,r.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}}),gi=[],ni=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=gi.pop()||i.expando+"_"+bi++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var f,o,e,s=t.jsonp!==!1&&(ni.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ni.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return(f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(ni,"$1"+f):t.jsonp!==!1&&(t.url+=(ki.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return e||i.error(f+" was not called"),e[0]},t.dataTypes[0]="json",o=n[f],n[f]=function(){e=arguments},u.always(function(){n[f]=o;t[f]&&(t.jsonpCallback=r.jsonpCallback,gi.push(f));e&&i.isFunction(o)&&o(e[0]);e=o=void 0}),"script")}),i.parseHTML=function(n,t,r){if(!n||"string"!=typeof n)return null;"boolean"==typeof t&&(r=t,t=!1);t=t||u;var f=lu.exec(n),e=!r&&[];return f?[t.createElement(f[1])]:(f=i.buildFragment([n],t,e),e&&e.length&&i(e).remove(),i.merge([],f.childNodes))},nr=i.fn.load,i.fn.load=function(n,t,r){if("string"!=typeof n&&nr)return nr.apply(this,arguments);var u,o,s,f=this,e=n.indexOf(" ");return e>=0&&(u=n.slice(e,n.length),n=n.slice(0,e)),i.isFunction(t)?(r=t,t=void 0):t&&"object"==typeof t&&(s="POST"),f.length>0&&i.ajax({url:n,type:s,dataType:"html",data:t}).done(function(n){o=arguments;f.html(u?i("<div>").append(i.parseHTML(n)).find(u):n)}).complete(r&&function(n,t){f.each(r,o||[n.responseText,t,n])}),this},i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},tr=n.document.documentElement,i.offset={setOffset:function(n,t,r){var e,o,s,h,u,c,v,l=i.css(n,"position"),a=i(n),f={};"static"===l&&(n.style.position="relative");u=a.offset();s=i.css(n,"top");c=i.css(n,"left");v=("absolute"===l||"fixed"===l)&&i.inArray("auto",[s,c])>-1;v?(e=a.position(),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);i.isFunction(t)&&(t=t.call(n,r,u));null!=t.top&&(f.top=t.top-u.top+h);null!=t.left&&(f.left=t.left-u.left+o);"using"in t?t.using.call(n,f):a.css(f)}},i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var t,f,u={top:0,left:0},r=this[0],e=r&&r.ownerDocument;if(e)return t=e.documentElement,i.contains(t,r)?(typeof r.getBoundingClientRect!==o&&(u=r.getBoundingClientRect()),f=eu(e),{top:u.top+(f.pageYOffset||t.scrollTop)-(t.clientTop||0),left:u.left+(f.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):u},position:function(){if(this[0]){var n,r,t={top:0,left:0},u=this[0];return"fixed"===i.css(u,"position")?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0),t.left+=i.css(n[0],"borderLeftWidth",!0)),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent||tr;n&&!i.nodeName(n,"html")&&"static"===i.css(n,"position");)n=n.offsetParent;return n||tr})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r=/Y/.test(t);i.fn[n]=function(u){return b(this,function(n,u,f){var e=eu(n);return void 0===f?e?t in e?e[t]:e.document.documentElement[u]:n[u]:void(e?e.scrollTo(r?i(e).scrollLeft():f,r?f:i(e).scrollTop()):n[u]=f)},n,u,arguments.length,null)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=pr(r.pixelPosition,function(n,r){if(r)return(r=d(n,t),pt.test(r)?i(n).position()[t]+"px":r)})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(u,f){var e=arguments.length&&(r||"boolean"!=typeof u),o=r||(u===!0||f===!0?"margin":"border");return b(this,function(t,r,u){var f;return i.isWindow(t)?t.document.documentElement["client"+n]:9===t.nodeType?(f=t.documentElement,Math.max(t.body["scroll"+n],f["scroll"+n],t.body["offset"+n],f["offset"+n],f["client"+n])):void 0===u?i.css(t,r,o):i.style(t,r,u,o)},t,e?u:void 0,e,null)}})}),i.fn.size=function(){return this.length},i.fn.andSelf=i.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),kf=n.jQuery,df=n.$,i.noConflict=function(t){return n.$===i&&(n.$=df),t&&n.jQuery===i&&(n.jQuery=kf),i},typeof t===o&&(n.jQuery=n.$=i),i});!function(n,t){"use strict";function e(){if(!i.READY){i.event.determineEventTypes();for(var n in i.gestures)i.gestures.hasOwnProperty(n)&&i.detection.register(i.gestures[n]);i.event.onTouch(i.DOCUMENT,i.EVENT_MOVE,i.detection.detect);i.event.onTouch(i.DOCUMENT,i.EVENT_END,i.detection.detect);i.READY=!0}}var i=function(n,t){return new i.Instance(n,t||{})};i.defaults={stop_browser_behavior:{userSelect:"none",touchAction:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};i.HAS_POINTEREVENTS=navigator.pointerEnabled||navigator.msPointerEnabled;i.HAS_TOUCHEVENTS="ontouchstart"in n;i.MOBILE_REGEX=/mobile|tablet|ip(ad|hone|od)|android/i;i.NO_MOUSEEVENTS=i.HAS_TOUCHEVENTS&&navigator.userAgent.match(i.MOBILE_REGEX);i.EVENT_TYPES={};i.DIRECTION_DOWN="down";i.DIRECTION_LEFT="left";i.DIRECTION_UP="up";i.DIRECTION_RIGHT="right";i.POINTER_MOUSE="mouse";i.POINTER_TOUCH="touch";i.POINTER_PEN="pen";i.EVENT_START="start";i.EVENT_MOVE="move";i.EVENT_END="end";i.DOCUMENT=document;i.plugins={};i.READY=!1;i.Instance=function(n,t){var r=this;return e(),this.element=n,this.enabled=!0,this.options=i.utils.extend(i.utils.extend({},i.defaults),t||{}),this.options.stop_browser_behavior&&i.utils.stopDefaultBrowserBehavior(this.element,this.options.stop_browser_behavior),i.event.onTouch(n,i.EVENT_START,function(n){r.enabled&&i.detection.startDetect(r,n)}),this};i.Instance.prototype={on:function(n,t){for(var r=n.split(" "),i=0;r.length>i;i++)this.element.addEventListener(r[i],t,!1);return this},off:function(n,t){for(var r=n.split(" "),i=0;r.length>i;i++)this.element.removeEventListener(r[i],t,!1);return this},trigger:function(n,t){var u=i.DOCUMENT.createEvent("Event"),r;return u.initEvent(n,!0,!0),u.gesture=t,r=this.element,i.utils.hasParent(t.target,r)&&(r=t.target),r.dispatchEvent(u),this},enable:function(n){return this.enabled=n,this}};var r=null,f=!1,u=!1;i.event={bindDom:function(n,t,i){for(var u=t.split(" "),r=0;u.length>r;r++)n.addEventListener(u[r],i,!1)},onTouch:function(n,t,e){var o=this;this.bindDom(n,i.EVENT_TYPES[t],function(s){var c=s.type.toLowerCase(),h;c.match(/mouse/)&&u||((c.match(/touch/)||c.match(/pointerdown/)||c.match(/mouse/)&&1===s.which)&&(f=!0),c.match(/touch|pointer/)&&(u=!0),h=0,f&&(i.HAS_POINTEREVENTS&&t!=i.EVENT_END?h=i.PointerEvent.updatePointer(t,s):c.match(/touch/)?h=s.touches.length:u||(h=c.match(/up/)?0:1),h>0&&t==i.EVENT_END?t=i.EVENT_MOVE:h||(t=i.EVENT_END),h||null===r?r=s:s=r,e.call(i.detection,o.collectEventData(n,t,s)),i.HAS_POINTEREVENTS&&t==i.EVENT_END&&(h=i.PointerEvent.updatePointer(t,s))),h||(r=null,f=!1,u=!1,i.PointerEvent.reset()))})},determineEventTypes:function(){var n;n=i.HAS_POINTEREVENTS?i.PointerEvent.getEvents():i.NO_MOUSEEVENTS?["touchstart","touchmove","touchend touchcancel"]:["touchstart mousedown","touchmove mousemove","touchend touchcancel mouseup"];i.EVENT_TYPES[i.EVENT_START]=n[0];i.EVENT_TYPES[i.EVENT_MOVE]=n[1];i.EVENT_TYPES[i.EVENT_END]=n[2]},getTouchList:function(n){return i.HAS_POINTEREVENTS?i.PointerEvent.getTouchList():n.touches?n.touches:[{identifier:1,pageX:n.pageX,pageY:n.pageY,target:n.target}]},collectEventData:function(n,t,r){var u=this.getTouchList(r,t),f=i.POINTER_TOUCH;return(r.type.match(/mouse/)||i.PointerEvent.matchType(i.POINTER_MOUSE,r))&&(f=i.POINTER_MOUSE),{center:i.utils.getCenter(u),timeStamp:(new Date).getTime(),target:r.target,touches:u,eventType:t,pointerType:f,srcEvent:r,preventDefault:function(){this.srcEvent.preventManipulation&&this.srcEvent.preventManipulation();this.srcEvent.preventDefault&&this.srcEvent.preventDefault()},stopPropagation:function(){this.srcEvent.stopPropagation()},stopDetect:function(){return i.detection.stopDetect()}}}};i.PointerEvent={pointers:{},getTouchList:function(){var n=this,t=[];return Object.keys(n.pointers).sort().forEach(function(i){t.push(n.pointers[i])}),t},updatePointer:function(n,t){return n==i.EVENT_END?this.pointers={}:(t.identifier=t.pointerId,this.pointers[t.pointerId]=t),Object.keys(this.pointers).length},matchType:function(n,t){if(!t.pointerType)return!1;var r={};return r[i.POINTER_MOUSE]=t.pointerType==t.MSPOINTER_TYPE_MOUSE||t.pointerType==i.POINTER_MOUSE,r[i.POINTER_TOUCH]=t.pointerType==t.MSPOINTER_TYPE_TOUCH||t.pointerType==i.POINTER_TOUCH,r[i.POINTER_PEN]=t.pointerType==t.MSPOINTER_TYPE_PEN||t.pointerType==i.POINTER_PEN,r[n]},getEvents:function(){return["pointerdown MSPointerDown","pointermove MSPointerMove","pointerup pointercancel MSPointerUp MSPointerCancel"]},reset:function(){this.pointers={}}};i.utils={extend:function(n,i,r){for(var u in i)n[u]!==t&&r||(n[u]=i[u]);return n},hasParent:function(n,t){for(;n;){if(n==t)return!0;n=n.parentNode}return!1},getCenter:function(n){for(var i=[],r=[],t=0,u=n.length;u>t;t++)i.push(n[t].pageX),r.push(n[t].pageY);return{pageX:(Math.min.apply(Math,i)+Math.max.apply(Math,i))/2,pageY:(Math.min.apply(Math,r)+Math.max.apply(Math,r))/2}},getVelocity:function(n,t,i){return{x:Math.abs(t/n)||0,y:Math.abs(i/n)||0}},getAngle:function(n,t){var i=t.pageY-n.pageY,r=t.pageX-n.pageX;return 180*Math.atan2(i,r)/Math.PI},getDirection:function(n,t){var r=Math.abs(n.pageX-t.pageX),u=Math.abs(n.pageY-t.pageY);return r>=u?n.pageX-t.pageX>0?i.DIRECTION_LEFT:i.DIRECTION_RIGHT:n.pageY-t.pageY>0?i.DIRECTION_UP:i.DIRECTION_DOWN},getDistance:function(n,t){var i=t.pageX-n.pageX,r=t.pageY-n.pageY;return Math.sqrt(i*i+r*r)},getScale:function(n,t){return n.length>=2&&t.length>=2?this.getDistance(t[0],t[1])/this.getDistance(n[0],n[1]):1},getRotation:function(n,t){return n.length>=2&&t.length>=2?this.getAngle(t[1],t[0])-this.getAngle(n[1],n[0]):0},isVertical:function(n){return n==i.DIRECTION_UP||n==i.DIRECTION_DOWN},stopDefaultBrowserBehavior:function(n,t){var i,f=["webkit","khtml","moz","ms","o",""],r,u;if(t&&n.style){for(r=0;f.length>r;r++)for(u in t)t.hasOwnProperty(u)&&(i=u,f[r]&&(i=f[r]+i.substring(0,1).toUpperCase()+i.substring(1)),n.style[i]=t[u]);"none"==t.userSelect&&(n.onselectstart=function(){return!1})}}};i.detection={gestures:[],current:null,previous:null,stopped:!1,startDetect:function(n,t){this.current||(this.stopped=!1,this.current={inst:n,startEvent:i.utils.extend({},t),lastEvent:!1,name:""},this.detect(t))},detect:function(n){var t;if(this.current&&!this.stopped){n=this.extendEventData(n);for(var u=this.current.inst.options,r=0,f=this.gestures.length;f>r;r++)if(t=this.gestures[r],!this.stopped&&u[t.name]!==!1&&t.handler.call(t,n,this.current.inst)===!1){this.stopDetect();break}return this.current&&(this.current.lastEvent=n),n.eventType==i.EVENT_END&&!n.touches.length-1&&this.stopDetect(),n}},stopDetect:function(){this.previous=i.utils.extend({},this.current);this.current=null;this.stopped=!0},extendEventData:function(n){var t=this.current.startEvent,r,u;if(t&&(n.touches.length!=t.touches.length||n.touches===t.touches))for(t.touches=[],r=0,u=n.touches.length;u>r;r++)t.touches.push(i.utils.extend({},n.touches[r]));var f=n.timeStamp-t.timeStamp,e=n.center.pageX-t.center.pageX,o=n.center.pageY-t.center.pageY,s=i.utils.getVelocity(f,e,o);return i.utils.extend(n,{deltaTime:f,deltaX:e,deltaY:o,velocityX:s.x,velocityY:s.y,distance:i.utils.getDistance(t.center,n.center),angle:i.utils.getAngle(t.center,n.center),direction:i.utils.getDirection(t.center,n.center),scale:i.utils.getScale(t.touches,n.touches),rotation:i.utils.getRotation(t.touches,n.touches),startEvent:t}),n},register:function(n){var r=n.defaults||{};return r[n.name]===t&&(r[n.name]=!0),i.utils.extend(i.defaults,r,!0),n.index=n.index||1e3,this.gestures.push(n),this.gestures.sort(function(n,t){return n.index<t.index?-1:n.index>t.index?1:0}),this.gestures}};i.gestures=i.gestures||{};i.gestures.Hold={name:"hold",index:10,defaults:{hold_timeout:500,hold_threshold:1},timer:null,handler:function(n,t){switch(n.eventType){case i.EVENT_START:clearTimeout(this.timer);i.detection.current.name=this.name;this.timer=setTimeout(function(){"hold"==i.detection.current.name&&t.trigger("hold",n)},t.options.hold_timeout);break;case i.EVENT_MOVE:n.distance>t.options.hold_threshold&&clearTimeout(this.timer);break;case i.EVENT_END:clearTimeout(this.timer)}}};i.gestures.Tap={name:"tap",index:100,defaults:{tap_max_touchtime:250,tap_max_distance:10,tap_always:!0,doubletap_distance:20,doubletap_interval:300},handler:function(n,t){if(n.eventType==i.EVENT_END){var r=i.detection.previous,u=!1;if(n.deltaTime>t.options.tap_max_touchtime||n.distance>t.options.tap_max_distance)return;r&&"tap"==r.name&&n.timeStamp-r.lastEvent.timeStamp<t.options.doubletap_interval&&n.distance<t.options.doubletap_distance&&(t.trigger("doubletap",n),u=!0);(!u||t.options.tap_always)&&(i.detection.current.name="tap",t.trigger(i.detection.current.name,n))}}};i.gestures.Swipe={name:"swipe",index:40,defaults:{swipe_max_touches:1,swipe_velocity:.7},handler:function(n,t){if(n.eventType==i.EVENT_END){if(t.options.swipe_max_touches>0&&n.touches.length>t.options.swipe_max_touches)return;(n.velocityX>t.options.swipe_velocity||n.velocityY>t.options.swipe_velocity)&&(t.trigger(this.name,n),t.trigger(this.name+n.direction,n))}}};i.gestures.Drag={name:"drag",index:50,defaults:{drag_min_distance:10,drag_max_touches:1,drag_block_horizontal:!1,drag_block_vertical:!1,drag_lock_to_axis:!1,drag_lock_min_distance:25},triggered:!1,handler:function(n,r){if(i.detection.current.name!=this.name&&this.triggered)return r.trigger(this.name+"end",n),this.triggered=!1,t;if(!(r.options.drag_max_touches>0&&n.touches.length>r.options.drag_max_touches))switch(n.eventType){case i.EVENT_START:this.triggered=!1;break;case i.EVENT_MOVE:if(n.distance<r.options.drag_min_distance&&i.detection.current.name!=this.name)return;i.detection.current.name=this.name;(i.detection.current.lastEvent.drag_locked_to_axis||r.options.drag_lock_to_axis&&r.options.drag_lock_min_distance<=n.distance)&&(n.drag_locked_to_axis=!0);var u=i.detection.current.lastEvent.direction;n.drag_locked_to_axis&&u!==n.direction&&(n.direction=i.utils.isVertical(u)?0>n.deltaY?i.DIRECTION_UP:i.DIRECTION_DOWN:0>n.deltaX?i.DIRECTION_LEFT:i.DIRECTION_RIGHT);this.triggered||(r.trigger(this.name+"start",n),this.triggered=!0);r.trigger(this.name,n);r.trigger(this.name+n.direction,n);(r.options.drag_block_vertical&&i.utils.isVertical(n.direction)||r.options.drag_block_horizontal&&!i.utils.isVertical(n.direction))&&n.preventDefault();break;case i.EVENT_END:this.triggered&&r.trigger(this.name+"end",n);this.triggered=!1}}};i.gestures.Transform={name:"transform",index:45,defaults:{transform_min_scale:.01,transform_min_rotation:1,transform_always_block:!1},triggered:!1,handler:function(n,r){if(i.detection.current.name!=this.name&&this.triggered)return r.trigger(this.name+"end",n),this.triggered=!1,t;if(!(2>n.touches.length))switch(r.options.transform_always_block&&n.preventDefault(),n.eventType){case i.EVENT_START:this.triggered=!1;break;case i.EVENT_MOVE:var u=Math.abs(1-n.scale),f=Math.abs(n.rotation);if(r.options.transform_min_scale>u&&r.options.transform_min_rotation>f)return;i.detection.current.name=this.name;this.triggered||(r.trigger(this.name+"start",n),this.triggered=!0);r.trigger(this.name,n);f>r.options.transform_min_rotation&&r.trigger("rotate",n);u>r.options.transform_min_scale&&(r.trigger("pinch",n),r.trigger("pinch"+(1>n.scale?"in":"out"),n));break;case i.EVENT_END:this.triggered&&r.trigger(this.name+"end",n);this.triggered=!1}}};i.gestures.Touch={name:"touch",index:-1/0,defaults:{prevent_default:!1,prevent_mouseevents:!1},handler:function(n,r){return r.options.prevent_mouseevents&&n.pointerType==i.POINTER_MOUSE?(n.stopDetect(),t):(r.options.prevent_default&&n.preventDefault(),n.eventType==i.EVENT_START&&r.trigger(this.name,n),t)}};i.gestures.Release={name:"release",index:1/0,handler:function(n,t){n.eventType==i.EVENT_END&&t.trigger(this.name,n)}};"object"==typeof module&&"object"==typeof module.exports?module.exports=i:(n.Hammer=i,"function"==typeof n.define&&n.define.amd&&n.define("hammer",[],function(){return i}))}(this),function(n,t){"use strict";n!==t&&(Hammer.event.bindDom=function(i,r,u){n(i).on(r,function(n){var i=n.originalEvent||n;i.pageX===t&&(i.pageX=n.pageX,i.pageY=n.pageY);i.target||(i.target=n.target);i.which===t&&(i.which=i.button);i.preventDefault||(i.preventDefault=n.preventDefault);i.stopPropagation||(i.stopPropagation=n.stopPropagation);u.call(this,i)})},Hammer.Instance.prototype.on=function(t,i){return n(this.element).on(t,i)},Hammer.Instance.prototype.off=function(t,i){return n(this.element).off(t,i)},Hammer.Instance.prototype.trigger=function(t,i){var r=n(this.element);return r.has(i.target).length&&(r=n(i.target)),r.trigger({type:t,gesture:i})},n.fn.hammer=function(t){return this.each(function(){var r=n(this),i=r.data("hammer");i?i&&t&&Hammer.utils.extend(i.options,t):r.data("hammer",new Hammer(this,t||{}))})})}(window.jQuery||window.Zepto);!function(n){"use strict";n.matchMedia=n.matchMedia||function(n){var u,i=n.documentElement,f=i.firstElementChild||i.firstChild,r=n.createElement("body"),t=n.createElement("div");return t.id="mq-test-1",t.style.cssText="position:absolute;top:-100em",r.style.background="none",r.appendChild(t),function(n){return t.innerHTML='&shy;<style media="'+n+'"> #mq-test-1 { width: 42px; }<\/style>',i.insertBefore(r,f),u=42===t.offsetWidth,i.removeChild(r),{matches:u,media:n}}}(n.document)}(this),function(n){"use strict";function p(){y(!0)}var t={};if(n.respond=t,t.update=function(){},t.mediaQueriesSupported=n.matchMedia&&null!==n.matchMedia("only all")&&n.matchMedia("only all").matches,!t.mediaQueriesSupported){t.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@.*keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]+\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\(min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\(max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/};var c,w,l,i=n.document,r=i.documentElement,f=[],e=[],u=[],a={},b=30,o=i.getElementsByTagName("head")[0]||r,tt=i.getElementsByTagName("base")[0],s=o.getElementsByTagName("link"),h=[],v=function(){var u,t=i.createElement("div"),n=i.body,e=r.style.fontSize,o=n&&n.style.fontSize,f=!1;return t.style.cssText="position:absolute;font-size:1em;width:1em",n||(n=f=i.createElement("body"),n.style.background="none"),r.style.fontSize="100%",n.style.fontSize="100%",n.appendChild(t),r.insertBefore(n,r.firstChild),u=t.offsetWidth,f?r.removeChild(n):n.removeChild(t),r.style.fontSize=e,n.style.fontSize=o,u=l=parseFloat(u)},y=function(t){var rt="clientWidth",ut=r[rt],ft="CSS1Compat"===i.compatMode&&ut||i.body[rt]||ut,p={},ct=s[s.length-1],et=(new Date).getTime(),tt,g,nt,h,it;if(t&&c&&b>et-c)return n.clearTimeout(w),void(w=n.setTimeout(y,b));c=et;for(tt in f)if(f.hasOwnProperty(tt)){var a=f[tt],k=a.minw,d=a.maxw,ot=null===k,st=null===d,ht="em";k&&(k=parseFloat(k)*(k.indexOf(ht)>-1?l||v():1));d&&(d=parseFloat(d)*(d.indexOf(ht)>-1?l||v():1));a.hasquery&&(ot&&st||!(ot||ft>=k)||!(st||d>=ft))||(p[a.media]||(p[a.media]=[]),p[a.media].push(e[a.rules]))}for(g in u)u.hasOwnProperty(g)&&u[g]&&u[g].parentNode===o&&o.removeChild(u[g]);for(nt in p)p.hasOwnProperty(nt)&&(h=i.createElement("style"),it=p[nt].join("\n"),h.type="text/css",h.media=nt,o.insertBefore(h,ct.nextSibling),h.styleSheet?h.styleSheet.cssText=it:h.appendChild(i.createTextNode(it)),u.push(h))},k=function(n,i,r){var h=n.replace(t.regex.keyframes,"").match(t.regex.media),c=h&&h.length||0,l,a,o,v,u,p,w,s;for(i=i.substring(0,i.lastIndexOf("/")),l=function(n){return n.replace(t.regex.urls,"$1"+i+"$2$3")},a=!c&&r,i.length&&(i+="/"),a&&(c=1),o=0;c>o;o++)for(a?(v=r,e.push(l(n))):(v=h[o].match(t.regex.findStyles)&&RegExp.$1,e.push(RegExp.$2&&l(RegExp.$2))),p=v.split(","),w=p.length,s=0;w>s;s++)u=p[s],f.push({media:u.split("(")[0].match(t.regex.only)&&RegExp.$2||"all",rules:e.length-1,hasquery:u.indexOf("(")>-1,minw:u.match(t.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:u.match(t.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")});y()},it=function(){var t=!1;try{t=new n.XMLHttpRequest}catch(i){t=new n.ActiveXObject("Microsoft.XMLHTTP")}return function(){return t}}(),d=function(n,t){var i=it();i&&(i.open("GET",n,!0),i.onreadystatechange=function(){4!==i.readyState||200!==i.status&&304!==i.status||t(i.responseText)},4!==i.readyState&&i.send(null))},g=function(){if(h.length){var t=h.shift();d(t.href,function(i){k(i,t.href,t.media);a[t.href]=!0;n.setTimeout(function(){g()},0)})}},nt=function(){for(var r=0;r<s.length;r++){var i=s[r],t=i.href,u=i.media,f=i.rel&&"stylesheet"===i.rel.toLowerCase();t&&f&&!a[t]&&(i.styleSheet&&i.styleSheet.rawCssText?(k(i.styleSheet.rawCssText,t,u),a[t]=!0):(!/^([a-zA-Z:]*\/\/)/.test(t)&&!tt||t.replace(RegExp.$1,"").split("/")[0]===n.location.host)&&("//"===t.substring(0,2)&&(t=n.location.protocol+t),h.push({href:t,media:u})))}g()};nt();t.ajax=d;t.queue=h;t.update=nt;t.getEmValue=v;n.addEventListener?n.addEventListener("resize",p,!1):n.attachEvent&&n.attachEvent("onresize",p)}}(this);NS("acsJ.core").IEGrid=Class.extend(function(){"use strict";return{init:function(){$(".globalNavigation .levelThree li:nth-of-type(6n+1)").each(function(){$(this).addClass("ieCollapseMargin")});$(".globalNavigation .levelThree li:nth-of-type(n+7)").each(function(){$(this).addClass("ieTopMargin")});$(".half:nth-child(2n+1)").each(function(){$(this).addClass("ieAddMargin")});$("tr:even").each(function(){$(this).addClass("even")});$("input:checkbox").each(function(){$(this).prop("checked")&&$(this).addClass("isChecked")});$("input:checkbox").parent().click(function(){var n=$(this).children(":first-child");n.prop("checked")?n.removeClass("isChecked").prop("checked",!1):n.addClass("isChecked").prop("checked",!0)});$('.searchFacetCheckboxes p:not([class*="show"]):nth-of-type(n+8)').each(function(){$(this).addClass("ieCollapseCheckboxes")})},rowNot:function(n,t,i,r){$("."+t+":not(."+i+") + ."+i,n).each(function(){$(this).addClass(r)})}}}());NS("acsJ").Enums=function(){"use strict";return{Breakpoints:{desktop:0,tablet:1,mobile:2},Dimensions:{landscapeMobile:640,portraitMobile:320,landscapeTablet:1024,portraitTablet:768,largeDesktop:1300},Direction:{Top:0,Right:1,Bottom:2,Left:3}}}();!function(n){"use strict";var i="placeholder"in document.createElement("input"),t=["-moz-box-sizing","-webkit-box-sizing","box-sizing","padding-top","padding-right","padding-bottom","padding-left","margin-top","margin-right","margin-bottom","margin-left","border-top-width","border-right-width","border-bottom-width","border-left-width","line-height","font-size","font-family","width","height","top","left","right","bottom"],r=function(i){function c(){u.toggle(!n.trim(r.val()).length)}var f,e,h,o,s,l,a,u,r=n(i),v=r.offset();try{if(a=r[0].getAttributeNode("placeholder"),!a)return;if(e=r[0].getAttribute("placeholder"),!e||!e.length)return;r[0].setAttribute("placeholder","");r.data("placeholder",e)}catch(y){return}for(h={},f=0;f<t.length;f++)h[t[f]]=r.css(t[f]);o=parseInt(r.css("z-index"),10);(isNaN(o)||!o)&&(o=1);u=n("<span>").addClass("placeholder").html(e);u.css(h);u.css({cursor:r.css("cursor")||"text",display:"block",position:"absolute",left:v.left-r.parent().offset().left,overflow:"hidden","z-index":o+1,background:"none","border-top-style":"solid","border-right-style":"solid","border-bottom-style":"solid","border-left-style":"solid","border-top-color":"transparent","border-right-color":"transparent","border-bottom-color":"transparent","border-left-color":"transparent"});u.insertBefore(r);r.parent("div").css("position","relative");l=r.offset().top-u.offset().top;s=parseInt(u.css("margin-top"));isNaN(s)&&(s=0);u.css("margin-top",s+l);u.on("mousedown",function(){r.is(":enabled")&&window.setTimeout(function(){r.trigger("focus")},0)});r.on("focus.placeholder",function(){u.hide()});r.on("blur.placeholder",function(){c()});r[0].onpropertychange=function(){"value"===event.propertyName&&c()};r.trigger("blur.placeholder")};n.fn.placeholder=function(n){var t=this;return n=n||{},i&&!n.force?this:(window.setTimeout(function(){t.each(function(){var t=this.tagName.toLowerCase();("input"===t||"textarea"===t)&&r(this,n)})},0),this)}}(jQuery);NS("acsJ.resp");acsJ.resp.VIEWCHANGE_ENGINE_TYPE="default";acsJ.resp.ViewChange=function(){"use strict";return{instance:null,getInstance:function(){if(null===this.instance)switch(acsJ.resp.VIEWCHANGE_ENGINE_TYPE){case"simulator":default:this.instance=new acsJ.resp.DefaultResponsiveEngine}return this.instance},getWidth:function(){return this.getInstance().getWidth()}}}();NS("acsJ.resp").Breakpoint=Class.extend(function(){"use strict";return{init:function(){},active:!1,isActive:function(){return this.active},setActive:function(n){this.active=n},responsiveCallback:function(){},activate:function(){},deactivate:function(){}}}());NS("acsJ.resp").BreakpointConfig=Class.extend(function(){return{min:null,max:null,obj:null,id:null,init:function(n){var t;for(t in n)this[t]=n[t]},setMin:function(n){this.min=n},getMin:function(){return this.min},setMax:function(n){this.max=n},getMax:function(){return this.max},setObj:function(n){this.obj=n},getObj:function(){return this.obj},setIdentifier:function(n){this.id=n},getIdentifier:function(){return this.id}}}());NS("acsJ.resp").ResponsiveEngineImpl=Class.extend(function(){return{init:function(){this.eventBinded=!1},fire:function(n,t){try{for(var i=0,i=0;i<this.callbacks[n].length;++i)this.callbacks[n][i](t)}catch(r){}},callbacks:{},onResponsive:function(){},initEventBindings:function(){this.eventBinded===!1&&(this.bindEvents(),this.eventBinded=!0)},bindEvents:function(){},getWidth:function(){}}}());NS("acsJ.resp").DefaultResponsiveEngine=acsJ.resp.ResponsiveEngineImpl.extend(function(){"use strict";return{callbacks:{resize:[],orientation:[],scroll:[]},onResize:function(n){this.initEventBindings();this.callbacks.resize.push(n)},onOrientationChange:function(n){this.initEventBindings();this.callbacks.orientation.push(n)},onScroll:function(n){this.initEventBindings();this.callbacks.scroll.push(n)},onResponsive:function(n){this.initEventBindings();this.onResize(n);this.onOrientationChange(n)},onAllEvents:function(n){this.initEventBindings();this.onResize(n);this.onOrientationChange(n);this.onScroll(n)},bindEvents:function(){var n=this,t=$(window);t.resize(function(){n.fire("resize",[$(this).width()])});t.bind("orientationchange",function(){n.fire("orientation",[$(this).width(),window.orientation||0])});t.scroll(function(){n.fire("scroll",[$(this).width()])})},getWidth:function(){return $(window).width()}}}());NS("acsJ.resp").WidgetBreakpointRegistry=function(){"use strict";var n=[],i=0,t=!1;return{add:function(t){if(this.bind(),t instanceof acsJ.resp.BreakpointConfig==!1)throw new TypeError("Invalid type to add to BreakpointRegistry");t.setIdentifier(++i);n.push(t);this.executeChangeAction(t,acsJ.resp.ViewChange.getWidth())},remove:function(t){for(var i=0;n.length>0;++i)if(n[i].getIdentifier()===t){n.splice(i,1);break}},getAll:function(){return n},bind:function(){if(t===!1){var n=this;acsJ.resp.ViewChange.getInstance().onResponsive(function(t){n.executeChangeActions(t[0])});t=!0}},executeChangeActions:function(t){for(var i=0;i<n.length;++i)this.executeChangeAction(n[i],t)},executeChangeAction:function(n,t){n.getMin()<=t&&n.getMax()>=t&&n.getObj().isActive()===!1&&(n.getObj().activate(),n.getObj().setActive(!0));(n.getMin()>t||n.getMax()<t)&&n.getObj().isActive()===!0&&(n.getObj().deactivate(),n.getObj().setActive(!1))}}}();NS("acsJ").utils=function(){"use strict";return{enableSharing:function(){var t=document.location.protocol,n=$("<script />");window.switchTo5x=!0;n.attr("type","text/javascript");"http:"===t?n.attr("src",t+"//w.sharethis.com/button/buttons.js"):"https:"===t&&n.attr("src",t+"//ws.sharethis.com/button/buttons.js");n.bind("load",function(){stLight.options({publisher:"b07c664b-ca24-4da3-bc33-602598aacc04",doNotHash:!1,doNotCopy:!1,hashAddressBar:!1})});$("head").append(n)},validString:function(n,t){return"string"==typeof n?n:"string"==typeof t?t:""},validNumber:function(n,t){return"number"==typeof n?n:isNaN(parseInt(n,10))===!1?parseInt(n,10):"number"==typeof t?t:isNaN(parseInt(t,10))===!1?parseInt(t,10):0},validBoolean:function(n,t){return"boolean"==typeof n?n:"string"==typeof n&&"true"===n?!0:"string"==typeof n&&"false"===n?!1:"number"==typeof n&&1===n?!0:"number"==typeof n&&0===n?!1:"boolean"==typeof t?t:!1},setCookie:function(n,t,i){var f=this,r=new Date,u="";0===f.validNumber(i,0)&&(i=1e3);r.setDate(r.getDate()+i);u=escape(t)+"; expires="+r.toGMTString()+"; path=/";document.cookie=n+"="+u},getCookie:function(n,t){var u=this,r=document.cookie.split(";"),i=0,f="",e="";for(t=u.validString(t,""),i=0;i<r.length;i+=1)if("string"==typeof r[i]){try{f=r[i].split("=")[0].trim()}catch(o){f=u.validString(r[i].split("=")[0])}try{e=r[i].split("=")[1].trim()}catch(o){e=u.validString(r[i].split("=")[1])}if(f.toLowerCase()===n.toLowerCase()){t=e;break}}return t},hasTouch:function(){return"ontouchstart"in document.documentElement},isIOS:function(){var n=navigator.userAgent.toLowerCase();return n.indexOf("ipad")>-1||n.indexOf("iphone")>-1||n.indexOf("ipod")>-1?!0:!1},isMobileBreakpoint:function(){var n=$(window).width();return n>acsJ.Enums.Dimensions.landscapeMobile?!1:!0},isTabletPortriatBreakpoint:function(){var n=$(window).width();return n>acsJ.Enums.Dimensions.landscapeMobile&&n<acsJ.Enums.Dimensions.portraitTablet+1?!0:!1},isTabletBreakpoint:function(){var n=$(window).width();return n>acsJ.Enums.Dimensions.landscapeMobile&&n<acsJ.Enums.Dimensions.landscapeTablet+1?!0:!1},getBreakpoint:function(){var n=acsJ.Enums.Breakpoints.desktop;return acsJ.utils.isTabletBreakpoint()===!0?n=acsJ.Enums.Breakpoints.tablet:acsJ.utils.isMobileBreakpoint()===!0&&(n=acsJ.Enums.Breakpoints.mobile),n},getAbsoluteURL:function(n,t){var i=document.getElementsByTagName("base")[0],e=i&&i.href,r=i||document.getElementsByTagName("head")[0].appendChild(document.createElement("base")),u=document.createElement("a"),f="";return""!==n?(r.href=t,u.href=n,f=u.href,i?i.href=e:document.getElementsByTagName("head")[0].removeChild(r),f):""},collapseAll:function(n,t){$('[class*="Button"].selected').not(n).not(".toggleLevelOne").not(".toggleSearch").removeClass("selected");$(".dropdownItems.active").not(t).removeClass("active");$(".responsiveDropdown.active, .memberLogin.active").not(t.parents(".responsiveDropdown, .memberLogin")).removeClass("active");$(".activeDropdownParent").not(t.parents(".activeDropdownParent")).removeClass("activeDropdownParent");$(".datepicker.active").not(t).removeClass("active")},formatDateNumber:function(n){var t=acsJ.utils.validNumber(n);return t>0?t>9?t.toString():"0"+t:""},setFieldValue:function(n,t,i){try{$(n).parents('[data-mod="handlebarFieldGroup"]').attr("data-edited","true");$(n).val(t);i===!0&&$(n).trigger("change")}catch(r){}}}}();NS("acsJ.base").modal=Class.extend(function(){"use strict";return{init:function(n,t){this.$el=n;this.trigger=t;this.close=$('<div class="close"><\/div>');this.cover=$($(".modal").length>0?".modal":'<div class="modal"><\/div>');this.active=!1;this.showCallback=null;this.hideCallback=null;this.setup();this.bindEvents()},setup:function(){var n=this;n.$el.addClass("modalContent");n.close.append('<i class="fa fa-times"><\/i>');n.$el.append(n.close);$("body").append(n.cover);$("body").append(n.$el)},bindEvents:function(){var n=this;n.cover.bind("click",function(t){t.preventDefault();n.hide()});n.close.bind("click",function(t){t.preventDefault();n.hide()});n.trigger.bind("click",function(t){t.preventDefault();n.active===!0?n.hide():n.show()});acsJ.resp.ViewChange.getInstance().onResponsive(function(){n.$el.is(":visible")&&n.positionModal()})},show:function(){var n=this;n.cover.addClass("active");n.$el.addClass("active");n.positionModal();n.fitModal();n.active=!0;null!==n.showCallback&&n.showCallback()},hide:function(){var n=this;n.cover.removeClass("active");n.$el.removeClass("active");n.active=!1;null!==n.hideCallback&&"function"==typeof n.hideCallback&&n.hideCallback()},positionModal:function(){var n=this,t=0;t=n.$el[0].offsetWidth;n.$el.css({"margin-left":"-"+t/2+"px"})},fitModal:function(){function n(){t.$el.css({"max-height":$(window).height()-2*parseInt(t.$el.css("top"),10)})}var t=this;$(window).on("resize",n);n()}}}());NS("acsJ.base").vectorImage=Class.extend(function(){"use strict";return{init:function(n){this.$el=n;this.bindEvents();this.renderImage()},bindEvents:function(){var n=this;n.$el[0].positionImage&&n.$el[0].positionImage()},renderImage:function(){var n=this,t=n.$el.data("vector"),i=n.$el.data("bitmap");Modernizr.svg===!0&&""!==t?n.$el.attr("src",t):n.$el.attr("src",i)}}}());NS("acsJ.base").centeredImage=Class.extend(function(){"use strict";return{init:function(n){this.$el=n;this.bindEvents();this.positionImage()},bindEvents:function(){var n=this;n.$el[0].positionImage=function(){n.positionImage()};n.$el.bind("load",function(){n.positionImage()});acsJ.resp.ViewChange.getInstance().onResponsive(function(){n.$el.is(":visible")&&n.positionImage()})},positionImage:function(){var n=this,t=n.$el.width(),i=n.$el.height();n.$el.css({"margin-left":"-"+t/2+"px","margin-top":"-"+i/2+"px"})}}}());!function(n){var t=n({});n.ajaxQueue=function(i){function e(t){r=n.ajax(i);r.done(u.resolve).fail(u.reject).then(t,t)}var r,u=n.Deferred(),f=u.promise();return t.queue(e),f.abort=function(o){if(r)return r.abort(o);var s=t.queue(),h=n.inArray(e,s);return h>-1&&s.splice(h,1),u.rejectWith(i.context||i,[f,o,""]),f},f}}(jQuery);NS("acsJ.mod").availableServices=Class.extend(function(){"use strict";return{init:function(n){this.$el=n;this.mainNav=$(".availableServicesNav",this.el);this.sideNav=$(".availableServicesSide",this.el);this.callback=null;this.bindEvents();"function"==typeof this.callback&&this.callback()},bindEvents:function(){var n=this;$("li",n.mainNav).bind("click",function(){n.toggleSelected($(this));acsJ.utils.isMobileBreakpoint()&&$("body,html").stop(!0,!0).animate({scrollTop:n.$el.offset().top},500)});$(".fa-arrow-left",n.el).bind("click",function(){n.goBack()})},toggleSelected:function(n){var t=this,i=$(".asNav.selected",t.sideNav),r=n.index()+1;$("li.selected",t.mainNav).removeClass("selected");i.removeClass("selected");n.addClass("selected");$(".asNav:nth-of-type("+r+")",t.sideNav).addClass("selected");t.sideNav.addClass("selected");t.mainNav.parent().parent().addClass("hideTablet")},goBack:function(){var n=this;n.sideNav.removeClass("selected");n.mainNav.parent().parent().removeClass("hideTablet")}}}());NS("acsJ.mod").backToTop=Class.extend(function(){"use strict";return{init:function(n){this.$el=n;this.startPos=parseFloat(this.$el.css("top"));this.stickPos=80;this.desktopActiveHeight=1500;this.mobileActiveHeight=600;this.isActive=!1;this.buttonHeight=parseFloat($(this.$el).css("height"));this.buttonWidth=parseFloat($(this.$el).css("width"));this.parentElement=$(".globalHeader");this.$windowHeight=$(window).height();this.pageContentHeight=parseFloat($(".pageContent").height());this.bindEvents();this.activateButton()},bindEvents:function(){var n=this,t=n.$el;acsJ.resp.ViewChange.getInstance().onAllEvents(function(){n.$utils=acsJ.utils;n.isMobile=n.$utils.isMobileBreakpoint();n.isTablet=n.$utils.isTabletPortriatBreakpoint();n.activateButton();n.isActive&&(n.parentOffset=n.parentElement.offset().top,n.$scrollTop=$(window).scrollTop(),n.$windowHeight=$(window).height(),n.pageContentHeight=parseFloat($(".pageContent").height()),n.setXPosition(),n.setYPosition())});t.bind("click",function(){n.animateToTop()})},activateButton:function(){var t,i=$(this.$el),n=this,r=$(document).height(),u=$(document).scrollTop();t=n.isMobile===!0?n.mobileActiveHeight:n.desktopActiveHeight;r>t&&u>t?(i.addClass("active"),n.isActive=!0):(i.removeClass("active"),n.isActive=!1)},getGutter:function(){var n=$(".globalFooter .acsRow").get(0),t=n.getBoundingClientRect();return $(window).width()-t.right},setXPosition:function(){var t=$(this.$el),n=this,i=20;n.getGutter()-i<n.buttonWidth?t.css("right","0"):t.css("right",n.getGutter()-i-n.buttonWidth+"px")},setYPosition:function(){var i,t=$(this.$el),n=this;i=n.isTablet?0:n.buttonHeight/2;n.isMobile===!1?n.$scrollTop<n.startPos+n.stickPos-n.$windowHeight+n.buttonHeight?(t.removeClass("fixed"),t.css("top","")):n.$scrollTop<n.pageContentHeight+n.parentOffset+n.buttonHeight+i+n.stickPos-n.$windowHeight?(t.addClass("fixed"),t.css("top","")):(t.removeClass("fixed"),t.css("top",n.pageContentHeight+n.parentOffset+i)):(t.removeClass("fixed"),t.css("top",""))},animateToTop:function(){return $("body,html").stop(!0,!0).animate({scrollTop:0},500),!1}}}());NS("acsJ.mod").breadcrumbCollapse=Class.extend(function(){"use strict";return{init:function(n){this.$el=n;this.breadcrumbCount=0;this.breadcrumbLimit=0;this.ellipsis=void 0;this.callback=null;this.setProperties();this.breadcrumbCount>this.breadcrumbLimit&&(this.hideBreadcrumbs(),this.appendEllipsis());"function"==typeof this.callback&&this.callback()},setProperties:function(){this.breadcrumbCount=this.$el.find("p a").length;this.breadcrumbLimit=this.$el.data("limit");this.ellipsis=$('<a>...<\/a><i class="fa fa-angle-right"><\/i>')},appendEllipsis:function(){var n=this;n.$el.find("p i:nth-of-type("+(n.breadcrumbLimit-1)+")").after(n.ellipsis);n.ellipsis.on("click",function(){"A"===$(this).prop("tagName")&&(n.showBreadcrumbs(),$(this).next("i").remove(),$(this).remove())})},hideBreadcrumbs:function(){var n=this,t=this.$el.find("p a").length;n.$el.find("p a").each(function(i,r){i>=n.breadcrumbLimit-1&&t-1>i&&($(r).hide(),$(r).next("i").hide())})},showBreadcrumbs:function(){this.$el.find("p a").show();this.$el.find("p a~i").show()}}}());NS("acsJ.mod").carousel=Class.extend(function(){"use strict";return{init:function(n){this.$el=n;this.slideContainer=$(".carouselSlides",this.$el);this.slides=this.slideContainer.children();this.controls=$(".carouselControls",this.$el);this.previous=$('<i class="fa fa-angle-left carouselPrevious"><\/i>');this.next=$('<i class="fa fa-angle-right carouselNext"><\/i>');this.jumpIconsContainer=$('<ul class="jumpIcons"><\/ul>');this.jumpIcons=[];this.currentIndex=0;this.hasSwiped=!1;this.callback=null;this.isEndless=!0;this.isAnimating=!1;this.isAutomatic=!0;this.automaticIntervalSpeed=5e3;this.automaticInterval=null;this.slides.length>1&&(this.setup(),this.bindEvents());"function"==typeof this.callback&&this.callback()},setup:function(){var n=this,t=0;for(n.slides.each(function(n){$(this).css({left:100*n+"%",position:"absolute",top:0})}),n.controls.append(n.previous),n.controls.append(n.next),t=0;t<n.slides.length;t+=1)n.createJumpIcon(t);n.controls.append(n.jumpIconsContainer);n.jumpIcons=$(".jumpIcon",n.jumpIconsContainer);n.$el.addClass("active");n.currentIndex=0;n.setDisplay(0);n.setHeight()},createJumpIcon:function(n){var t=this,i=$("<li />"),r=$('<i class="fa fa-circle jumpIcon" />');r.bind("click",function(i){i.preventDefault();clearInterval(t.automaticInterval);t.setIndex(n)});i.append(r);t.jumpIconsContainer.append(i)},bindEvents:function(){var n=this;n.$el.hammer({prevent_default:!1,prevent_mouseevents:!1}).on("swipeleft",function(t){t.preventDefault();t.gesture.preventDefault();n.hasSwiped=acsJ.Enums.Direction.Right}).on("swiperight",function(t){t.preventDefault();t.gesture.preventDefault();n.hasSwiped=acsJ.Enums.Direction.Left}).on("swipeup",function(){n.hasSwiped=!1}).on("swipedown",function(){n.hasSwiped=!1}).on("dragend",function(t){n.hasSwiped!==!1&&(t.preventDefault(),t.gesture.preventDefault(),n.hasSwiped===acsJ.Enums.Direction.Right?(clearInterval(n.automaticInterval),n.setIndex(n.currentIndex+1)):(clearInterval(n.automaticInterval),n.setIndex(n.currentIndex-1)));n.hasSwiped=!1});n.setAutomation();n.previous.bind("click",function(){clearInterval(n.automaticInterval);n.setIndex(n.currentIndex-1)});n.next.bind("click",function(){clearInterval(n.automaticInterval);n.setIndex(n.currentIndex+1)});acsJ.resp.ViewChange.getInstance().onResponsive(function(){n.slideContainer.is(":visible")&&n.setHeight()})},setAutomation:function(){var n=this;n.isAutomatic&&(n.automaticInterval=setInterval(function(){n.isInteracted||n.setIndex(n.currentIndex+1)},n.automaticIntervalSpeed))},setIndex:function(n){var t=this;t.isAnimating||(t.isAnimating=!0,0>n?n=t.slides.length-1:n===t.slides.length&&(t.isEndless||(n=0)),t.currentIndex=n,t.slides.each(function(i){var r=n>=i?0-(n-i):i-n;t.isEndless&&n===t.slides.length&&0===i&&($(this).css("left","100%"),r=0,t.currentIndex=0);$(this).stop().animate({left:100*r+"%"},600,function(){t.isAnimating=!1;t.isEndless&&n===t.slides.length&&0!==i&&$(this).css("left",100*i+"%")})}),t.setDisplay(t.currentIndex))},setDisplay:function(n){var t=this;t.previous.removeClass("active");t.next.addClass("active");t.jumpIcons.removeClass("active");t.jumpIcons.eq(n).addClass("active");$(".lt-ie9 .carouselControls").each(function(){var n=$(this)[0],t=null;n.style.display="none";t=n.offsetHeight;n.style.display="block"})},setHeight:function(){var t=this,n=0;t.slides.each(function(){$(this).height()>n&&(n=$(this).height())});n>0&&t.slideContainer.css({height:n})}}}());NS("acsJ.mod").cart=Class.extend(function(){"use strict";return{init:function(n,t){this.$el=n;this.cookie="string"==typeof t?t:"ACS_TotalCartItems";this.amount=0;this.callback=null;this.setup();"function"==typeof this.callback&&this.callback()},setup:function(){var n=this,t=acsJ.utils;n.amount=t.validNumber(t.getCookie(n.cookie),0);n.displayAmount(n.amount)},displayAmount:function(n){var t=this;t.amount=n;n>99&&(n="99+");t.$el.text(n)}}}());NS("acsJ.mod").characterCounter=Class.extend(function(){"use strict";return{init:function(n,t){this.$el=n;this.$counter=t;this.maxLength=100;this.goodClass="good";this.warningClass="warning";this.badClass="bad";this.callback=null;this.setProperties();this.bindEvents();this.checkCount();"function"==typeof this.callback&&this.callback()},setProperties:function(){var n=this;n.maxLength=acsJ.utils.validNumber(n.$el.data("maxlength"),n.maxLength);n.goodClass=acsJ.utils.validString(n.$el.data("goodclass"),n.goodClass);n.warningClass=acsJ.utils.validString(n.$el.data("warningclass"),n.warningClass);n.badClass=acsJ.utils.validString(n.$el.data("badclass"),n.badClass)},bindEvents:function(){var n=this;n.$el.on("keyup",function(){n.checkCount()})},checkCount:function(){var n=this,t=acsJ.utils.validNumber(n.$el.val().length,0);n.$counter.html(parseInt(n.maxLength,10)-parseInt(t,10));t===n.maxLength?(n.$el.addClass(n.warningClass).removeClass(n.badClass).removeClass(n.goodClass),n.$counter.addClass(n.warningClass).removeClass(n.badClass).removeClass(n.goodClass)):t>n.maxLength?(n.$el.addClass(n.badClass).removeClass(n.warningClass).removeClass(n.goodClass),n.$counter.addClass(n.badClass).removeClass(n.warningClass).removeClass(n.goodClass)):(n.$el.addClass(n.goodClass).removeClass(n.badClass).removeClass(n.warningClass),n.$counter.addClass(n.goodClass).removeClass(n.badClass).removeClass(n.warningClass))}}}());NS("acsJ.mod").checkboxTree=Class.extend(function(){"use strict";return{init:function(n,t){this.$el=n;this.$trigger=t;this.$checkboxItems=$(".checkboxItems",this.$el);this.setCheckAll();this.bindEvents();this.preexpandItems()},bindEvents:function(){var n=this;n.$trigger.on("click",function(){n.toggleDisplay()});$('input[type="checkbox"]',n.$checkboxItems).on("change",function(){n.setIsChecked($(this));n.setCheckAll()});$('input[type="checkbox"]',n.$checkboxItems).on("ajaxDisable",function(){n.setIsChecked($(this));$(this).prop("disabled",!0);n.setCheckAll()});$('input[type="checkbox"]',n.$checkboxItems).on("ajaxEnable",function(){n.setIsChecked($(this));$(this).prop("disabled",!1);n.setCheckAll()});$('h3 input[type="checkbox"], h5 input[type="checkbox"]',n.$el).on("click",function(){n.toggleCheckAll($(this))});$('h3 input[type="checkbox"] + span, h5 input[type="checkbox"] + span',n.$el).on("click",function(){$(this).prev('input[type="checkbox"]').click()});$('input[type="checkbox"]',n.$checkboxItems).each(function(){n.setIsChecked($(this))})},toggleDisplay:function(){var n=this;n.$el.hasClass("active")===!0?(n.$el.removeClass("active"),n.$checkboxItems.removeClass("active")):(n.$el.addClass("active"),n.$checkboxItems.addClass("active"))},toggleCheckAll:function(n){var t=this;$('input[type="checkbox"]',t.$checkboxItems).each(n.prop("checked")===!0||n.is(":checked")===!0?function(){$(this).prop("checked")!==!0&&$(this).is(":checked")!==!0&&($(this).prop("checked",!1),$(this).attr("checked",!1),$(this).click())}:function(){($(this).prop("checked")===!0||$(this).is(":checked")===!0)&&($(this).prop("checked",!0),$(this).attr("checked",!0),$(this).click())})},preexpandItems:function(){var n=this;$('input[type="checkbox"]',n.$checkboxItems).each(function(){if($(this).prop("checked")===!0||$(this).is(":checked")===!0)return(n.$trigger.trigger("click"),!1)})},setCheckAll:function(){var n=this,r=$('input[type="checkbox"]',n.$checkboxItems).length,t=0,i=!1;$('input[type="checkbox"]',n.$checkboxItems).each(function(){($(this).prop("checked")===!0||$(this).is(":checked")===!0)&&(t+=1);($(this).prop("disabled")===!0||$(this).is(":disabled")===!0)&&(i=!0)});i?$('h3 input[type="checkbox"], h5 input[type="checkbox"]',n.$el).prop("disabled",!0):$('h3 input[type="checkbox"], h5 input[type="checkbox"]',n.$el).prop("disabled",!1);r===t?($('h3 input[type="checkbox"], h5 input[type="checkbox"]',n.$el).prop("checked",!0),$('h3 input[type="checkbox"], h5 input[type="checkbox"]',n.$el).attr("checked",!0)):($('h3 input[type="checkbox"], h5 input[type="checkbox"]',n.$el).prop("checked",!1),$('h3 input[type="checkbox"], h5 input[type="checkbox"]',n.$el).attr("checked",!1));n.setIsChecked($('h3 input[type="checkbox"], h5 input[type="checkbox"]',n.$el))},setIsChecked:function(n){n.prop("checked")===!0?n.addClass("isChecked"):n.removeClass("isChecked")}}}());NS("acsJ.mod").combinedQuickLinks=Class.extend(function(){"use strict";return{init:function(n){this.$el=n;this.button=$("<div />");this.dropdownItems=$('<ul class="dropdownItems" />');this.$el[0].combinedQuickLinks=this;this.sourcePanels=$(".quickLinks");this.buttonClass="acsButton";this.buttonContent="Quick Links";this.groupClass="";this.eventMessage="combinedQuickLinks";this.callback=null;this.setProperties();this.bindEvents();this.render();"function"==typeof this.callback&&this.callback()},setProperties:function(){var n=this,t=acsJ.utils;""!==t.validString(n.$el.data("buttonclass"))&&(n.buttonClass=n.$el.data("buttonclass"));""!==t.validString(n.$el.data("buttoncontent"))&&(n.buttonContent=n.$el.data("buttoncontent"));""!==t.validString(n.$el.data("groupclass"))&&(n.groupClass=n.$el.data("groupclass"))},bindEvents:function(){var n=this;$(document).on("acsPanelOpen",function(t){t.message!==n.eventMessage&&(n.button.removeClass("selected"),n.dropdownItems.removeClass("active"))})},render:function(){var n=this;$("a",n.sourcePanels).length>0?(n.$el.addClass("responsiveDropdown"),n.$el.addClass("mobileDropdownContainer"),n.$el.addClass(n.groupClass),n.button.html(n.buttonContent),n.button.addClass(n.buttonClass),n.button.bind("click",function(t){t.preventDefault();t.stopPropagation();$.event.trigger({type:"acsPanelOpen",message:n.eventMessage,time:new Date});n.handleButton()}),n.$el.append(n.button),n.renderItems(),n.$el.append(n.dropdownItems)):n.$el.hide()},renderItems:function(){var n=this;n.sourcePanels.each(function(){var i=$("h3",$(this)),t=$('<li class="decoration">'+i.text()+"<\/li>"),r=$("a",$(this));n.dropdownItems.append(t);t.bind("click",function(n){n.preventDefault();n.stopPropagation()});r.each(function(){var t=$("<li />");$(this).clone().appendTo(t);t.appendTo(n.dropdownItems)})})},handleButton:function(){var n=this,t=acsJ.utils;n.button.toggleClass("selected");n.dropdownItems.toggleClass("active");t.collapseAll(n.button,n.dropdownItems)}}}());NS("acsJ.mod").communitiesComponent=Class.extend(function(){"use strict";return{init:function(n){this.$el=n;this.usersLatestDiscussionPostsKey="GetLatestDiscussionPosts";this.eligibleDiscussionsKey="GetEligibleDiscussions";this.usersDiscussionPostsKey="GetDiscussionPosts";this.communityDiscussionsKey="GetCommunities-GetDiscussion";this.subscribedDiscussionsKey="GetSubscribedDiscussions";this.usersCommunitiesKey="GetMyCommunities";this.discussionIconMarkup='<span class="listIcon"><i class="fa fa-comments"><\/i><\/span>';this.nullKey="00000000-0000-0000-0000-000000000000";this.apiHost="https://api.connectedcommunity.org";this.linkHost="http://acscommunities.facs.org";this.callback=null;this.authenticated=$(".authenticated",this.$el).addClass("hidden");this.unauthenticated=$(".unauthenticated",this.$el).removeClass("hidden");this.amountDisplayed=0;this.authenticated.length>0&&(this.communities=null,this.recordLimit=this.authenticated.data("limit"),this.apiKey=this.authenticated.data("api-key"),this.type=this.authenticated.data("type"),this.delegate());"function"==typeof this.callback&&this.callback()},delegate:function(){var n=this;switch(n.type){case n.usersLatestDiscussionPostsKey:n.loadUsersLatestDiscussionPosts();break;case n.eligibleDiscussionsKey:n.loadEligibleDiscussions();break;case n.usersDiscussionPostsKey:n.loadUsersDiscussionPosts();break;case n.communityDiscussionsKey:n.loadCommunityDiscussions();break;case n.subscribedDiscussionsKey:n.loadPostsFromSubscribedDiscussions();break;case n.usersCommunitiesKey:n.loadUsersCommunities()}},toMarkup:function(n,t){var r,i,u,e,o,f=this;f.amountDisplayed<f.recordLimit&&(f.amountDisplayed++,r=$("<li/>"),r.append(this.discussionIconMarkup),i=$("<span/>"),i.addClass("listLink"),""!==acsJ.utils.validString(t.title)&&(u=$("<a />"),""!==acsJ.utils.validString(t.link)&&u.attr("href",t.link),u.text(t.title),i.append(u),i.append($("<br />"))),""!==acsJ.utils.validString(t.author)&&(e=$("<span />"),e.text("By: "+t.author),i.append(e),i.append($("<br />"))),""!==acsJ.utils.validString(t.date)&&(o=$("<span />"),o.text(f.formatDate(t.date)),i.append(o)),r.append(i),$("ul:first",n).append(r))},loadUsersLatestDiscussionPosts:function(){var n=this,t=0;$.ajax({type:"GET",url:n.apiHost+"/api/v1.0/Discussions/GetLatestDiscussionPosts",data:{maxToRetrieve:n.recordLimit},datatype:"application/json",headers:{HLIAMKey:n.apiKey},xhrFields:{withCredentials:!0},context:this,success:function(i){for(n.authenticated.removeClass("hidden"),n.unauthenticated.addClass("hidden"),t=0;t<i.length;t+=1){var r={title:i.Subject,link:n.formatLink(i[t].LinkToDiscussion),author:n.formatAuthor(i[t].Author),date:new Date(i[t].DatePosted)};n.toMarkup(n.authenticated,r)}},error:n.higherLogicMajorError})},loadEligibleDiscussions:function(){var n=this,t=0;$.ajax({type:"GET",url:n.apiHost+"/api/v1.0/Discussions/GetEligibleDiscussions",datatype:"application/json",headers:{HLIAMKey:n.apiKey},xhrFields:{withCredentials:!0},context:this,success:function(i){for(n.authenticated.removeClass("hidden"),n.unauthenticated.addClass("hidden"),t=0;t<i.length;t+=1)if(i[t].hasOwnProperty("DiscussionKey")&&i[t].DiscussionKey!==n.nullKey){var r={title:i[t].DiscussionName,link:n.formatLink(i[t].LinkToDiscussion),author:"",date:""};n.toMarkup(n.authenticated,r)}},error:n.higherLogicMajorError})},loadUsersDiscussionPosts:function(){var n=this,t=0;$.ajax({type:"POST",url:n.apiHost+"/api/v1.0/Discussions/GetDiscussionPosts",data:{MaxNumberToRetrieve:n.recordLimit},datatype:"application/json",headers:{HLIAMKey:n.apiKey},xhrFields:{withCredentials:!0},context:this,success:function(i){for(n.authenticated.removeClass("hidden"),n.unauthenticated.addClass("hidden"),t=0;t<i.length;t+=1)i[t].hasOwnProperty("DiscussionPostKey")&&i[t].DiscussionPostKey!==n.nullKey&&$.ajax({type:"GET",url:n.apiHost+"/api/v1.0/Discussions/GetDiscussionPost",data:{discussionPostKey:i[t].DiscussionPostKey},datatype:"application/json",headers:{HLIAMKey:n.apiKey},xhrFields:{withCredentials:!0},success:function(t){var i={title:t.Subject,link:n.formatLink(t.LinkToDiscussion),author:n.formatAuthor(t.Author),date:new Date(t.DatePosted)};n.toMarkup(n.authenticated,i)},error:n.higherLogicMinorError})},error:n.higherLogicMajorError})},loadCommunityDiscussions:function(){var n=this,t=0;$.ajax({type:"GET",url:n.apiHost+"/api/v1.0/Communities/GetMyCommunities",datatype:"application/json",headers:{HLIAMKey:n.apiKey},xhrFields:{withCredentials:!0},context:this,success:function(i){for(n.authenticated.removeClass("hidden"),n.unauthenticated.addClass("hidden"),t=0;t<i.length;t+=1)if(i[t].hasOwnProperty("DiscussionKey")&&i[t].DiscussionKey!==n.nullKey){var r={title:i[t].DiscussionName,link:n.formatLink(i[t].LinkToDiscussion),author:"",date:new Date(i[t].CreatedOn)};n.toMarkup(n.authenticated,r)}},error:n.higherLogicMajorError})},loadPostsFromSubscribedDiscussions:function(){var n=this,t=0;$.ajax({type:"GET",url:n.apiHost+"/api/v1.0/Discussions/GetSubscribedDiscussions",datatype:"application/json",headers:{HLIAMKey:n.apiKey},xhrFields:{withCredentials:!0},context:this,success:function(i){for(n.authenticated.removeClass("hidden"),n.unauthenticated.addClass("hidden"),t=0;t<i.length;t+=1)if(i[t].hasOwnProperty("DiscussionKey")&&i[t].DiscussionKey!==n.nullKey){var r={title:i[t].DiscussionName,link:n.formatLink(i[t].LinkToDiscussion),author:"",date:""};n.toMarkup(n.authenticated,r)}},error:n.higherLogicMajorError})},loadUsersCommunities:function(){var n=this,t=0;$.ajax({type:"GET",url:n.apiHost+"/api/v1.0/Communities/GetMyCommunities",datatype:"application/json",headers:{HLIAMKey:this.apiKey},xhrFields:{withCredentials:!0},context:this,success:function(i){for(n.authenticated.removeClass("hidden"),n.unauthenticated.addClass("hidden"),t=0;t<i.length;t+=1){var r={title:i[t].CommunityName,link:n.formatLink(i[t].LinkToCommunity),author:"",date:new Date(i[t].CreatedOn)};n.toMarkup(n.authenticated,r)}},error:n.higherLogicMajorError})},higherLogicMajorError:function(n){var i,t=this;t.authenticated.addClass("hidden");t.unauthenticated.removeClass("hidden");n.hasOwnProperty("responseJSON")&&n.responseJSON.hasOwnProperty("message")&&(i=n.responseJSON.message)},higherLogicMinorError:function(n){var t;n.hasOwnProperty("responseJSON")&&n.responseJSON.hasOwnProperty("message")&&(t=n.responseJSON.message)},formatDate:function(n){var t="";try{t=n.toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"});t=t.replace(/^([A-Z][a-z][a-z])/,"$1.")}catch(i){t=n.toDateString();t=t.replace(/^([A-Z][a-z][a-z])/,"");t=t.replace(/^([A-Z][a-z][a-z])/,"$1.")}return t},formatAuthor:function(n){return"object"==typeof n&&n.hasOwnProperty("DisplayName")?acsJ.utils.validString(n.DisplayName):""},formatLink:function(n){var t=this;return/^[A-Za-z]+:\/\//.test(n)||(n=t.linkHost+n),n}}}());NS("acsJ.mod").corsIframe=Class.extend(function(){"use strict";return{init:function(n){this.$el=n;this.src=acsJ.utils.validString(n.data("src"));this.fullAddress=document.location.protocol+"//"+document.location.hostname+(""!==document.location.port?":"+document.location.port:"")+"/";this.callback=null;this.setSrc();this.bindEvents();"function"==typeof this.callback&&this.callback()},setSrc:function(){var n=this;n.$el.on("load",function(){n.updateBodyClasses()});n.$el.attr("src",n.src+"#"+n.fullAddress)},bindEvents:function(){var n=this;acsJ.resp.ViewChange.getInstance().onAllEvents(function(){n.$el.is(":visible")&&n.updateBodyClasses()})},updateBodyClasses:function(){var i=this,t=acsJ.utils.getBreakpoint(),n=null;try{"object"==typeof i.$el[0].contentWindow.document.body&&(n=$(i.$el[0].contentWindow.document.body),0===t?(n.removeClass("tablet"),n.removeClass("mobile")):1===t?(n.addClass("tablet"),n.removeClass("mobile")):2===t&&(n.removeClass("tablet"),n.addClass("mobile")))}catch(r){}}}}());NS("acsJ.mod").datePicker=Class.extend(function(){"use strict";return{init:function(n,t){this.$el=n;this.$trigger="object"==typeof t&&null!==t?t:n;this.currentMonth=0;this.currentYear=0;this.currentDay=0;this.valueMonth=0;this.valueYear=0;this.valueDay=0;this.monthDays=[31,28,31,30,31,30,31,31,30,31,30,31];this.dayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];this.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"];this.$container=$('<div class="datepicker" />');this.$controls=$('<div class="controls" />');this.$previousYear=$('<div class="previousYear" />');this.$nextYear=$('<div class="nextYear" />');this.$previousMonth=$('<div class="previousMonth" />');this.$nextMonth=$('<div class="nextMonth" />');this.$monthYear=$('<div class="monthYear" />');this.$calendar=$("<table />");this.$calendarHead=$("<thead />");this.$calendarBody=$("<tbody />");this.callback=null;this.renderCalendar();this.bindEvents();null!==this.callback&&this.callback()},bindEvents:function(){var n=this;n.$trigger.on("click",function(t){t.preventDefault();t.stopPropagation();n.$container.hasClass("active")?n.hide():n.show()});n.$previousYear.on("click",function(t){t.preventDefault();t.stopPropagation();n.setYear(n.currentYear-1)});n.$nextYear.on("click",function(t){t.preventDefault();t.stopPropagation();n.setYear(n.currentYear+1)});n.$previousMonth.on("click",function(t){t.preventDefault();t.stopPropagation();0===n.currentMonth?(n.currentYear=n.currentYear-1,n.setMonth(11)):n.setMonth(n.currentMonth-1)});n.$nextMonth.on("click",function(t){t.preventDefault();t.stopPropagation();11===n.currentMonth?(n.currentYear=n.currentYear+1,n.setMonth(0)):n.setMonth(n.currentMonth+1)})},renderCalendar:function(){var t,r,n=this,i=0;if(acsJ.utils.validString(n.$el.val()))try{t=moment(n.$el.val());n.valueMonth=t.month();n.valueDay=t.date();n.valueYear=t.year()}catch(u){t=moment(new Date)}else t=moment(new Date);for(n.currentMonth=t.month(),n.currentDay=t.date(),n.currentYear=t.year(),n.$previousYear.html("&lt;&lt;"),n.$previousMonth.html("&lt;"),n.$monthYear.html(n.monthNames[n.currentMonth]+" "+n.currentYear),n.$nextMonth.html("&gt;"),n.$nextYear.html("&gt;&gt;"),n.$controls.append(n.$previousYear),n.$controls.append(n.$previousMonth),n.$controls.append(n.$monthYear),n.$controls.append(n.$nextMonth),n.$controls.append(n.$nextYear),n.$container.append(n.$controls),r=$("<tr />"),i=0;i<n.dayNames.length;i+=1)r.append($("<td>"+n.dayNames[i].substring(0,2)+"<\/td>"));n.$calendarHead.append(r);n.$calendar.append(n.$calendarHead);n.drawCalendar();n.$calendar.append(n.$calendarBody);n.$container.append(n.$calendar);n.$container.insertAfter(n.$el)},setYear:function(n){var t=this;t.currentYear=n;t.drawMonthYear();t.drawCalendar()},setMonth:function(n){var t=this;t.currentMonth=n;t.drawMonthYear();t.drawCalendar()},selectDay:function(n){var t=this;t.currentDay=acsJ.utils.validNumber(n.text());t.valueYear=t.currentYear;t.valueMonth=t.currentMonth;t.valueDay=t.currentDay;t.$el.val(acsJ.utils.formatDateNumber(t.currentMonth+1)+"/"+acsJ.utils.formatDateNumber(t.currentDay)+"/"+t.currentYear);t.$el.trigger("change");$("td.currentValue",t.$calendarBody).removeClass("currentValue");n.parent("td").addClass("currentValue");t.hide()},drawMonthYear:function(){var n=this;n.$monthYear.text(n.monthNames[n.currentMonth]+" "+n.currentYear)},drawCalendar:function(){var i,e,n=this,s=new Date(n.currentYear,n.currentMonth,1).getDay(),o=n.monthDays[n.currentMonth],f=moment(new Date),r=$("<tr />"),t=0,u=0;for(1!==n.currentMonth||3&n.currentYear||!(n.currentYear%100)&&n.currentYear%400||(o=29),$("tr",n.$calendarBody).remove(),t=1;s>=t;t+=1)i=$("<td />"),r.append(i),u+=1;for(t=1;o>=t;t+=1)7===u&&(n.$calendarBody.append(r),r=$("<tr />"),u=0),i=$("<td><\/td>"),e=$('<a data-pickeraction="selectDay">'+t+"<\/a>"),i.append(e),n.currentYear===n.valueYear&&n.currentMonth===n.valueMonth&&t===n.valueDay&&i.addClass("currentValue"),n.currentYear===f.year()&&n.currentMonth===f.month()&&t===f.date()&&i.addClass("currentDay"),r.append(i),u+=1;for(t=1;7-u>=t;t+=1)i=$("<td />"),r.append(i);n.$calendarBody.append(r);$("[data-pickeraction]",n.$calendarBody).on("click",function(){n.selectDay($(this))})},show:function(){var n=this;acsJ.utils.collapseAll(n.$trigger,n.$container);n.$container.addClass("active");n.$container.parents("div").addClass("activeDropdownParent")},hide:function(){var n=this;n.$container.removeClass("active");n.$container.parents("div").removeClass("activeDropdownParent")}}}());NS("acsJ.mod").leavingMessage=NS("acsJ.base").modal.extend(function(){"use strict";return{init:function(n){this.sourceEl=n;this.$el=$('<div class="leavingMessage modalContent"><\/div>');this.url="";this.trigger=this.sourceEl;this.close=$('<div class="close"><\/div>');this.cover=$($(".modal").length>0?".modal":'<div class="modal"><\/div>');this.active=!1;this.callback=null;this.setup();this.bindEvents();"function"==typeof this.callback&&this.callback()},setup:function(){var n=this,i=$("<h3 />"),r=$("<p />"),t=$('<p class="alignRight" />'),u=$('<a class="cancel">Cancel<\/a>'),e=$('<span class="divider">or<\/a>'),f=$('<a class="actionButton">Continue<\/a>');n.url=n.sourceEl.attr("href");i.text("You are now leaving this website");r.text("The American College of Surgeons is not responsible for the content of third party websites.");n.close.append('<i class="fa fa-times"><\/i>');n.$el.append(n.close);n.$el.append(i);n.$el.append(r);t.append(u);t.append(e);t.append(f);n.$el.append(t);$("body").append(n.cover);$("body").append(n.$el);u.bind("click",function(t){t.preventDefault();n.hide()});f.bind("click",function(t){t.preventDefault();n.navigateURL()})},navigateURL:function(){var n=this;window.open(n.url);n.hide()}}}());NS("acsJ.mod").imageAltToTitle=Class.extend(function(){"use strict";return{init:function(n){this.$el=n;this.hoverText="";this.setProperties();this.setHoverText();"function"==typeof this.callback&&this.callback()},setProperties:function(){this.hoverText=this.$el.attr("alt")},setHoverText:function(){this.$el.attr("title",this.hoverText)}}}());NS("acsJ.mod").inputKeySubmit=Class.extend(function(){"use strict";return{init:function(n){this.$el=n;this.enterKeyCode=13;this.submitSelector="";this.callback=null;this.setProperties();this.bindEvents();"function"==typeof this.callback&&this.callback()},setProperties:function(){var n=this,t=acsJ.utils;n.submitSelector=t.validString(n.$el.data("submit"))},bindEvents:function(){var n=this;n.$el.on("keydown",function(t){var r=t.which||t.keyCode,i;if(r===n.enterKeyCode)return i=$(n.submitSelector+":first"),i.trigger("click"),void 0!==i.attr("href")&&(window.location.href=i.attr("href")),t.preventDefault(),t.stopPropagation(),!1})}}}());NS("acsJ.mod").memberLogin=Class.extend(function(){"use strict";return{init:function(n){this.$el=n;this.button=$('[class*="Button"]',this.$el).not("[href]");this.dropdownItems=$(".dropdownItems",this.$el);this.eventMessage="memberLogin";this.callback=null;this.bindEvents();this.clone();"function"==typeof this.callback&&this.callback()},bindEvents:function(){var n=this,t=acsJ.utils;n.button.bind("click",function(i){i.preventDefault();i.stopPropagation();$.event.trigger({type:"acsPanelOpen",message:n.eventMessage,time:new Date});n.dropdownItems.hasClass("active")?(n.$el.parents("div").removeClass("activeDropdownParent"),n.$el.removeClass("active"),n.dropdownItems.removeClass("active")):(n.$el.parents("div").addClass("activeDropdownParent"),n.$el.addClass("active"),n.dropdownItems.addClass("active"));t.collapseAll(n.button,n.dropdownItems)});$(document).on("acsPanelOpen",function(t){t.message!==n.eventMessage&&(n.$el.parents("div").removeClass("activeDropdownParent"),n.$el.removeClass("active"),n.dropdownItems.removeClass("active"))})},clone:function(){var t=this,n=$("<div />"),i=null;t.$el.parent().hasClass("globalNavigation")||(n.attr("class",t.$el.attr("class")),n.addClass("mobileDropdownContainer"),n.html(t.$el.html()),$(".acsButton",n).removeClass("acsButton").addClass("mobileNavButton").addClass("mobileNavTextButton"),n.insertAfter($(".globalNavigation .toggleSearch")),i=new acsJ.mod.memberLogin(n,"mobileNavButton"))}}}());NS("acsJ.mod").moduleQueue=Class.extend(function(){"use strict";return{init:function(n,t){this.$el=n;this.type=t;this.queue=[];this.interval=null;this.loadQueue();this.handleQueue()},loadQueue:function(){var n=this;n.$el.each(function(){var t=""!==n.type?n.type:$(this).data("mod"),i=null;"function"==typeof acsJ.mod[t]&&(i=function(t,i){return function(){var r=new acsJ.mod[i](t);r.callback=n.handleQueue()}}($(this),t),n.queue.push(i))})},add:function(n,t){var i=this;n.each(function(){var n=""!==t?t:$(this).data("mod"),r=null;"function"==typeof acsJ.mod[n]&&(r=function(n,t){return function(){var r=new acsJ.mod[t](n);r.callback=i.handleQueue()}}($(this),n),i.queue.push(r))});i.handleQueue()},handleQueue:function(){var n=this;n.queue.length>0&&n.queue.shift()()}}}());NS("acsJ.mod").printButton=Class.extend(function(){"use strict";return{init:function(n){this.$el=n;this.callback=null;this.bindEvents();"function"==typeof this.callback&&this.callback()},bindEvents:function(){var n=this;n.$el.bind("click",function(){window.print()})}}}());NS("acsJ.mod").promoCarousel=NS("acsJ.mod").carousel.extend(function(){"use strict";return{setAutomation:function(){},createJumpIcon:function(n){var t=this,i=$('<li class="jumpIcon" />');i.text(n+1+" of "+t.slides.length);t.jumpIconsContainer.append(i);t.controls.addClass("contentColor")}}}());NS("acsJ.mod").collapser=Class.extend(function(){"use strict";return{init:function(n){this.$el=n;this.expandedClass="expanded";this.bindEvent();"function"==typeof this.callback&&this.callback()},bindEvent:function(){var n=this;n.$el.bind("click",function(t){t.preventDefault();t.stopPropagation();n.$el.siblings('[data-mod="collapsibleGroup"]').toggleClass(n.expandedClass);n.$el.toggleClass(n.expandedClass)})}}}());NS("acsJ.mod").dynamicList=Class.extend(function(){"use strict";return{init:function(n){this.$el=n;this.targetList="data-dynamicList-"+this.$el.attr("data-dynamicList");this.targetListElement=void 0;this.bindEvent();"function"==typeof this.callback&&this.callback()},bindEvent:function(){var n=this;n.$el.bind("change",function(){var f=($("option:selected",this),this.value),e=acsJ.mod.handlebarHelperFunctions.globalStateSelect(f,"",acsJ.mod.handlebarHelperStates),i,r,t,u;for(n.targetListElement||(n.targetListElement=$("["+n.targetList+"]")),n.targetListElement.html(e),$(".responsiveDropdown",n.targetListElement.parent()).remove(),r=(new acsJ.mod.moduleQueue(n.targetListElement,"responsiveDropdown"),n.targetListElement.parents()),t=0;t<r.length;t+=1)if(u=$(r[t]),u.children("label").length>0){i=u;break}n.targetListElement.children().length<=1?i.css("visibility","hidden").css("height","0"):i.css("visibility","visible").css("height","auto")})}}}());NS("acsJ.mod").linkReplacer=Class.extend(function(){"use strict";return{init:function(n){this.$el=n;this.apiHost=$("body").data("apihost");this.endpoint="Profile/GetElsevierToken";this.bindEvent();"function"==typeof this.callback&&this.callback()},bindEvent:function(){var n=this;n.$el.one("mousedown",function(){var t=n.$el.attr("href");$.ajax({type:"GET",url:n.apiHost+n.endpoint,dataType:"JSON",async:!1,success:function(n){t=n},fail:function(){}});n.$el.attr("href",t)})}}}());NS("acsJ.mod").captioned=Class.extend(function(){"use strict";return{init:function(n){this.$element=n;this.caption=this.$element.attr(this.$element.attr("title")?"title":"alt");this.style=this.$element.attr("style")?this.$element.attr("style"):"";this.$captionElement=$('<p class="caption" style="'+this.style+' height:auto;padding:0;border:none;float:none;clear:both;">'+this.caption+"<\/p>");this.$wrap=$('<div class="caption-wrap" style="'+this.style+' height:auto;width:auto;margin:0;padding:0;border:none;"/>');this.$wrap.append(this.$element.clone()).append(this.$captionElement);this.$element.replaceWith(this.$wrap)}}}());NS("acsJ.mod").responsiveDropdown=Class.extend(function(){"use strict";return{init:function(n,t){this.$el=n.removeAttr("multiple");this.buttonGroup=$("<div />");this.button=$("<div />");this.$dropdownItems=null;this.$options=$("option[value]",this.$el).not('[value=""]');this.buttonClass="acsButton";this.buttonContent="Select";this.groupClass="";this.$hiddenField=null;this.hiddenProperty="";this.link=!1;this.navigate=!1;this.display=!1;this.placeholder=null;this.maxItems=acsJ.utils.validNumber(t,12);this.callback=null;this.setProperties();this.render();this.bindEvent();"function"==typeof this.callback&&this.callback()},setProperties:function(){var n=this,t=acsJ.utils,i=t.validString(n.$el.data("placeholderfield"));""!==t.validString(n.$el.data("buttonclass"))&&(n.buttonClass=n.$el.data("buttonclass"));""!==t.validString(n.$el.data("buttoncontent"))&&(n.buttonContent=n.$el.data("buttoncontent"));""!==t.validString(n.$el.data("groupclass"))&&(n.groupClass=n.$el.data("groupclass"));n.$el.data("hiddenfield")&&(n.$hiddenField=$(n.$el.data("hiddenfield")));n.hiddenProperty=t.validString(n.$el.data("hiddenproperty"),"value");n.display=t.validBoolean(n.$el.data("display"));n.link=t.validBoolean(n.$el.data("link"));n.link&&$("option",n.$el).each(function(){var t=$(this).text();if($(this).attr("selected"))return(n.buttonContent=t,!1)});n.navigate=t.validBoolean(n.$el.data("navigate"));""!==i&&(n.placeholder=$(i))},render:function(){var n=this;n.buttonGroup.addClass("responsiveDropdown");n.buttonGroup.addClass(n.groupClass);n.$el[0].disabled===!0?(n.button.html(n.buttonContent+'<i class="fa fa-lock"><\/i>'),n.button.addClass("disabled")):(n.button.html(n.buttonContent+'<i class="fa fa-angle-down"><\/i>'),n.button.bind("click",function(t){t.preventDefault();t.stopPropagation();n.handleButton()}));n.button.addClass(n.buttonClass);n.buttonGroup.append(n.button);n.$el.addClass("responsiveDropdownHidden");n.cloneItems();n.$options.length>n.maxItems&&n.buttonGroup.addClass("dropdownScroll");n.buttonGroup.insertAfter(n.$el)},cloneItems:function(){var n=this,i=$("<div />"),t=i.append(n.$el.clone()).html();t=t.replace(/\t/g,"").replace(/<select[^>]+>/gi,'<ul class="dropdownItems">').replace(/<\/select>/gi,"<\/ul>").replace(/<option/gi,"<li><a").replace(/<\/option/gi,"<\/a><\/li").replace(/ value=""/gi,' disabled="disabled"').replace(/ value=/gi," data-value=");n.$dropdownItems=$(t);$("a[data-value]",n.$dropdownItems).on("click",function(){var t=$(this).data("value");n.selectValue(t,$(this).text(),$(this).data("placeholder"),$(this).data("minwidth"));n.$el.parents('[data-mod="handlebarFieldGroup"]').attr("data-edited","true");$('[data-profileaction="updateForm"]',n.$el.parents('[data-mod^="myProfile"]')).removeClass("disabled")});$("a[data-privacyicon]",n.$dropdownItems).each(function(){var t=$(this).data("privacyicon"),n="";switch(t){case"Private":n='<span class="private-icon" data-title="Private"><img data-vector="/static/img/private-icon.svg" data-bitmap="/static/img/private-icon-scaled.png" height="12px" alt="Private"/><\/span>';break;case"Public":n='<span class="public-icon" data-title="Public"><img data-vector="/static/img/public-icon.svg" data-bitmap="/static/img/public-icon-scaled.png" height="15px" alt="Public"/><\/span>';break;case"Member":n='<span class="member-icon" data-title="Member"><img data-vector="/static/img/member-icon.svg" data-bitmap="/static/img/member-icon-scaled.png" height="12px" alt="Member" /><\/span>';break;default:n=""}$(this).prepend(n)});n.buttonGroup.append(n.$dropdownItems)},handleButton:function(){var n=this,t=acsJ.utils,i=t.isMobileBreakpoint(),r=t.hasTouch(),u=t.isIOS();i===!0&&r===!0&&u===!0?n.$el.trigger("focus"):(n.$dropdownItems.hasClass("active")?(n.$el.parents("div").removeClass("activeDropdownParent"),n.buttonGroup.removeClass("active"),n.$dropdownItems.removeClass("active")):(n.$el.parents("div").addClass("activeDropdownParent"),n.buttonGroup.addClass("active"),n.$dropdownItems.addClass("active")),t.collapseAll(n.button,n.$dropdownItems))},selectValue:function(n,t,i,r){var u=this,s=acsJ.utils.hasTouch(),f="",e=0,o=null;n=n.toString();f=n.replace("#","");try{o=$('a[name="'+f+'"]');e=o.offset().top}catch(h){}(u.navigate===!0||n.indexOf("#")>-1)&&(document.documentElement||window).scrollTo(0,parseInt(e-u.button[0].offsetHeight-20,10));u.link===!0&&(document.location.href=n);$("li",u.$dropdownItems).removeClass("selected");$('li[data-value="'+n+'"]',u.$dropdownItems).addClass("selected");$("option",u.$el).prop("selected",!1).removeAttr("selected");$('option[value="'+n+'"]',u.$el).prop("selected",!0).attr("selected",!0);s===!1&&u.$el.change();null!==u.$hiddenField&&(u.$hiddenField.attr(u.hiddenProperty,n),u.$hiddenField.attr("data-"+u.hiddenProperty,n),u.$hiddenField.data(u.hiddenProperty,n),u.$hiddenField.trigger("updateAPI"));u.display===!0&&""!==t&&u.button.html(t+'<i class="fa fa-angle-down"><\/i>');$(u.placeholder).length&&u.placeholder.length>0&&""!==i&&(u.placeholder.attr("placeholder",i),"string"==typeof i&&"string"==typeof r&&r.length>0&&u.placeholder.parent(".iconAppend").css("min-width",r),"function"==typeof $.fn.placeholder&&($(".placeholder",u.placeholder.parent()).remove(),u.placeholder.placeholder()));u.$dropdownItems.removeClass("active")},bindEvent:function(){var n=this;n.$el.on("blur keyup",function(t){var i=t.currentTarget,r=$(i.options[i.selectedIndex]).attr("value"),u=$(i.options[i.selectedIndex]).text(),f=$(i.options[i.selectedIndex]).data("placeholder"),e=$(i.options[i.selectedIndex]).data("midwidth");n.selectValue(r,u,f,e);""!==r.replace("#","").trim()&&(n.$el.parents('[data-mod="handlebarFieldGroup"]').attr("data-edited","true"),$('[data-profileaction="updateForm"]',n.$el.parents('[data-mod^="myProfile"]')).removeClass("disabled"))});n.link===!1&&n.navigate===!1&&$("option",n.$el).each(function(){var t=$(this).attr("value"),i=$(this).text(),r=$(this).data("placeholder");if($(this).attr("selected"))return(n.selectValue(t,i,r),!1)})}}}());NS("acsJ.mod").responsiveImage=Class.extend(function(){"use strict";return{init:function(n){this.$el=n;this.isScaleable=!1;this.desktopImage="";this.tabletImage="";this.mobileImage="";this.imageWidth=0;this.imageHeight=0;this.imageRatio=0;this.breakpoint=0;this.callback=null;this.setProperties();this.renderImage();this.bindEvents();"function"==typeof this.callback&&this.callback()},setProperties:function(){var n=this;n.isScaleable=!1;n.breakpoint=acsJ.utils.getBreakpoint();n.desktopImage=acsJ.utils.validString(n.$el.data("desktopimage"));n.tabletImage=acsJ.utils.validString(n.$el.data("tabletimage"));n.mobileImage=acsJ.utils.validString(n.$el.data("mobileimage"));n.imageWidth=n.$el.width();n.imageHeight=n.$el.height();n.imageRatio=n.imageHeight/n.imageWidth},bindEvents:function(){var n=this;acsJ.resp.ViewChange.getInstance().onAllEvents(function(){n.$el.is(":visible")&&n.renderImage()})},renderImage:function(){var n=this,i=acsJ.utils.getBreakpoint(),r=n.$el.attr("src"),t="";n.isScaleable===!0?t=n.getScaledImage(i):(t=i===acsJ.Enums.Breakpoints.desktop?n.chooseBestImage(n.desktopImage,n.tabletImage,n.mobileImage):i===acsJ.Enums.Breakpoints.tablet?n.chooseBestImage(n.tabletImage,n.mobileImage,n.desktopImage):n.chooseBestImage(n.mobileImage,n.tabletImage,n.desktopImage),n.breakpoint=i);r!==t&&""!==t&&n.$el.attr("src",t)},getScaledImage:function(n){var t=this;return t.breakpoint!==n&&(t.breakpoint=n),""},chooseBestImage:function(n,t,i){return""!==n?n:""!==t?t:i}}}());NS("acsJ.mod").responsiveVideo=Class.extend(function(){"use strict";return{init:function(n,t){this.$el=n;this.ratio=t?t:1.6;this.youtubeID="";this.video=$("<iframe />");this.callback=null;this.renderVideo();this.bindEvents();"function"==typeof this.callback&&this.callback()},renderVideo:function(){var n=this;n.youtubeID=n.$el.data("youtubeid");n.video.attr("src",document.location.protocol+"//www.youtube.com/embed/"+n.youtubeID).attr("allowfullscreen","true").attr("frameborder","0").addClass("responsiveVideoIframe");n.$el.append(n.video);n.resizeVideo()},bindEvents:function(){var n=this;acsJ.resp.ViewChange.getInstance().onResponsive(function(){n.video.is(":visible")&&n.resizeVideo()})},resizeVideo:function(){var n=this,t=0,i=n.$el.width();t=i/n.ratio;n.video.css({height:t,width:i})}}}());NS("acsJ.mod").searchFacetCheckboxes=Class.extend(function(){"use strict";return{init:function(n){this.$el=n;this.markerContainer=$(".searchFacetsSelected");this.callback=null;this.setup();this.bindEvents();"function"==typeof this.callback&&this.callback()},setup:function(){var n=this;n.$view=this.$el.clone().toggleClass("searchFacetCheckboxesView");n.$el.toggleClass("hideMobile");n.$el.toggleClass("hideTablet");n.$view.toggleClass("hideDesktop");n.$el.after(this.$view);n.$view.find("input:checkbox").each(function(){$(this).attr("name",$(this).attr("name")+"_view");$(this).attr("value",$(this).attr("value")+"_view")});n.copyToView();0===n.$el.find("input:checkbox:not(.selectAll):not(:checked)").length&&n.$el.find("input:checkbox.selectAll").prop("checked",!0)},copyToView:function(){var n=this;n.$el.find("input:checkbox").each(function(){var n=$('[value="'+$(this).attr("value")+'_view"]');$(this).prop("checked")?n.prop("checked",!0):n.prop("checked",!1)})},bindEvents:function(){function r(){$("label:not(.selectAll) input:checkbox",n.$el).prop("checked",this.checked)}function u(){$(this)[0].checked===!0?0===$("input:checkbox:not(.selectAll):not(:checked)",n.$el).length&&n.$el.find("input:checkbox.selectAll").prop("checked",!0):$("input:checkbox.selectAll",n.$el).prop("checked",!1)}function t(){$("label:not(.selectAll) input:checkbox",n.$el).unbind("propertychange",i).prop("checked",$(this)[0].checked).toggleClass("isChecked",$(this)[0].checked).bind("propertychange",i)}function i(){$(this)[0].checked===!0?0===$("input:checkbox:not(.selectAll):not(:checked)",n.$el).length&&n.$el.find("input:checkbox.selectAll").unbind("propertychange",t).prop("checked",!0).addClass("isChecked").bind("propertychange",t):$("input:checkbox.selectAll",n.$el).unbind("propertychange",t).prop("checked",!1).removeClass("isChecked").bind("propertychange",t)}var n=this;$(".searchFacetShow",n.$el).bind("click",function(){n.$el.toggleClass("active")});$(n.$view).bind("click",function(){$(n.$view).hasClass("enabled")||(n.copyToView(),n.$view.toggleClass("enabled"),$(n.$view).parent().toggleClass("subSection"),$(".searchSelector").toggleClass("inActive"))});$.support.changeBubbles?($("input:checkbox.selectAll",n.$el).bind("change",r),$("input:checkbox:not(.selectAll)",n.$el).bind("change",u)):"onpropertychange"in $('<input type="checkbox">')[0]?($("input:checkbox.selectAll",n.$el).bind("propertychange",t),$("input:checkbox:not(.selectAll)",n.$el).bind("propertychange",i)):$("label.selectAll",n.$el).hide()}}}());NS("acsJ.mod").searchNavigation=Class.extend(function(){"use strict";return{init:function(n,t){this.$el=n;this.state=t;this.parentLink=$(".parent a",this.$el);this.eventMessage="searchNavigation";this.callback=null;$(".levelFive",this.$el).parent("li").addClass("hasLevelFive");this.bindEvents();t===!0&&this.setInitialState();var r="name",i=window.location.href,u=$(".searchFacets");-1!==i.indexOf("?"+r+"=")||-1!==i.indexOf("&"+r+"=")||-1!==i.indexOf("?q=")||-1!==i.indexOf("&q=")?(u.addClass("inActive"),this.showHideFilters('[data-mod="searchFilter"]')):(u.removeClass("inActive"),this.showHideFilters('[data-mod="searchFilter"]'));"function"==typeof this.callback&&this.callback()},bindEvents:function(){var n=this;$(".toggleSearch").bind("click",function(t){t.preventDefault();$.event.trigger({type:"acsPanelOpen",message:n.eventMessage,time:new Date});var i=$(this),r=acsJ.utils.validString(i.attr("href")),u=$(n.$el),f=!i.hasClass("selected");$(".utilityNavigation");$(".searchWidgetContent");""===r?n.togglePair(i,u,f):document.location.href=r});$('[data-mod="applyFilter"] ').bind("click",function(t){t.preventDefault();n.saveCheckboxes();n.clearSubCheckboxes();n.collapseLevel()});$('[data-mod="backFilter"] ').bind("click",function(t){t.preventDefault();n.clearSubCheckboxes();n.collapseLevel()});$('[data-mod="clearSearch"] ').bind("click",function(t){t.preventDefault();n.clearCheckboxes()});$('[data-mod="searchFilter"]').bind("click",function(){$(".searchFacets").toggleClass("inActive");n.showHideFilters(this)});$(".searchSelector .searchFacetsDropDown").change(function(){var t=$('.searchSelector .searchFacetsDropDown [data-hiddenfield="#mobileFacetNav"] option:selected'),n;window.location.pathname!==t.data("href")&&(n=$('.searchFacetsDropDown [data-hiddenfield="#mobileFacetNav"] option:selected').data("href"),window.location.href=n)});$(document).on("acsPanelOpen",function(t){t.message!==n.eventMessage&&n.togglePair($(".toggleSearch"),$(n.$el),!1)})},togglePair:function(n,t,i,r){r||(r=$("<div />"));i===!1?(n.removeClass("selected"),t.removeClass("active"),$(".searchWidget").removeClass("active")):(n.addClass("selected"),t.addClass("active"),$(".searchWidget").addClass("active"))},collapseLevel:function(){var n=$(".searchFacetCheckboxes.enabled");n.toggleClass("enabled");n.parent().toggleClass("subSection");$(".searchSelector").toggleClass("inActive")},toggleLevel:function(n,t,i){var r=this;$(".toggleLevel"+n,r.$el).not(t).each(function(){$(this).removeClass("selected");$(this).next(".level"+n).removeClass("active").removeClass("activeChild");$(".position",i).removeClass("position")})},clearCheckboxes:function(){$(".searchFacetCheckboxes input:checkbox").removeAttr("checked")},clearSubCheckboxes:function(){$(".searchFacetCheckboxesView.enabled input:checkbox").removeAttr("checked")},setInitialState:function(){var n=this,t=n.getTargetEl(),o=t.parents(".levelOne"),i=t.parents(".levelTwo"),r=t.parents(".levelThree"),u=t.parents(".levelFour"),e=t.parents(".levelFive"),f="";f=acsJ.utils.getAbsoluteURL(acsJ.utils.validString(n.parentLink.attr("href")));(""===f||f===document.location.href.split("?")[0])&&n.parentLink.parent().addClass("collapsed");$(".toggleSearch").addClass("selected");t.addClass("currentPage");n.togglePair(i.prev(".toggleLevelTwo"),i,!0,o);n.togglePair(r.prev(".toggleLevelThree"),r,!0,i);n.togglePair(u.prev(".toggleLevelFour"),u,!0,r);n.togglePair(e.prev(".toggleLevelFive"),e,!0,u)},getTargetEl:function(){var n=this,t=$("<div />"),i="";return $("a[href]",n.$el).not(n.parentLink).each(function(){return i=acsJ.utils.getAbsoluteURL($(this).attr("href")),i===document.location.href.split("?")[0]?(t=$(this),!1):void 0}),t},saveCheckboxes:function(){$(".searchFacetCheckboxes.enabled").prev().find("input:checkbox").each(function(){var n=$('[value="'+$(this).attr("value")+'_view"]');n.prop("checked")?$(this).prop("checked",!0):$(this).prop("checked",!1)})},showHideFilters:function(n){var t=$(".searchFacets");$(n).text(t.hasClass("inActive")?"Show Filters":"Hide Filters")}}}());NS("acsJ.mod").singleBooleanGroup=Class.extend(function(){"use strict";return{init:function(n,t,i){this.$el=n;this.trueSel=""!==acsJ.utils.validString(t)?t:'input[type="radio"][value="true"]';this.falseSel=""!==acsJ.utils.validString(i)?i:'input[type="radio"][value="false"]';this.$trueEls=$(this.trueSel,this.$el);this.$falseEls=$(this.falseSel,this.$el);this.callback=null;this.bindEvents();this.checkSelection();"function"==typeof this.callback&&this.callback()},bindEvents:function(){var n=this;n.$trueEls.on("click, change",function(){n.checkSelection($(this))})},checkSelection:function(n){var i=this,t="";!0&&"undefined"!=typeof n&&n.prop("checked")&&(t=n.attr("name"),i.$falseEls.not('input[name="'+t+'"]').click())}}}());NS("acsJ.mod").specialAlert=Class.extend(function(){"use strict";return{init:function(n){this.$el=n;this.callback=null;this.bindEvents();"function"==typeof this.callback&&this.callback()},bindEvents:function(){var n=this;$(".specialAlertClose",n.$el).bind("click",function(){var t=acsJ.utils.validString($(this).data("cookie-name")),i=acsJ.utils.validString($(this).data("cookie-value"));""!==t&&""!==i&&acsJ.utils.setCookie(t,i);n.$el.hide()})}}}());NS("acsJ.mod").tieredNavigation=Class.extend(function(){"use strict";return{init:function(n,t){this.$el=n;this.state=t;this.parentLink=$(".parent a",this.$el);this.eventMessage="tieredNavigation";this.callback=null;this.isGlobal=this.$el.hasClass("globalNavigation");this.isArticle=this.$el.hasClass("articleNavigation");$(".levelFive",this.$el).parent("li").addClass("hasLevelFive");this.bindEvents();t===!0&&this.setInitialState();"function"==typeof this.callback&&this.callback()},bindEvents:function(){var n=this;$(".toggleLevelOne",n.$el).bind("click",function(t){$.event.trigger({type:"acsPanelOpen",message:n.eventMessage,time:new Date});var i=$(this),r=acsJ.utils.validString(i.attr("href")),u=$(".levelOne",i.parent()),f=!i.hasClass("selected");""===r&&(t.preventDefault(),n.togglePair(i,u,f),i.siblings(".utilityNavigationItems").toggleClass("active"))});$(".toggleLevelTwo",n.$el).bind("click",function(t){var i=$(this),u=acsJ.utils.validString(i.attr("href")),f=i.next(".levelTwo"),e=!i.hasClass("selected"),r=i.parents(".levelOne");""===u&&(t.preventDefault(),n.toggleLevel("Two",i,r),n.toggleLevel("Four",i,r),n.toggleLevel("Five",i,r),n.togglePair(i,f,e,r))});$(".toggleLevelFour",n.$el).bind("click",function(t){var i=$(this),u=acsJ.utils.validString(i.attr("href")),f=i.next(".levelFour"),e=!i.hasClass("selected"),r=i.parents(".levelThree");""===u&&(t.preventDefault(),n.toggleLevel("Four",i,r),n.toggleLevel("Five",i,r),n.togglePair(i,f,e,r));r.parents(".levelTwo").children(".overview").toggleClass("mobileHidden");r.parents(".levelOne").find(".position .toggleLevelTwo").toggleClass("mobileHidden")});$(".toggleLevelFive",n.$el).bind("click",function(t){var i=$(this),u=acsJ.utils.validString(i.attr("href")),f=i.next(".levelFive"),e=!i.hasClass("selected"),r=i.parents(".levelFour");""===u&&(t.preventDefault(),n.toggleLevel("Five",i,r),n.togglePair(i,f,e,r));r.parent().find(".toggleLevelFour").toggleClass("mobileHidden");r.children(".overview").toggleClass("mobileHidden")});acsJ.resp.ViewChange.getInstance().onResponsive(function(){n.setLogoOffset()});$(document).on("acsPanelOpen",function(t){t.message!==n.eventMessage&&n.togglePair($(".toggleLevelOne",n.$el),$(".levelOne",n.$el),!1)})},togglePair:function(n,t,i,r){var u=this;r||(r=$("<div />"));i===!1?(n.removeClass("selected"),n.parent("li").removeClass("position"),t.removeClass("active"),r.removeClass("activeChild")):(n.addClass("selected"),n.parent("li").addClass("position"),t.addClass("active"),r.addClass("activeChild"));u.setLogoOffset()},toggleLevel:function(n,t,i){var r=this;$(".toggleLevel"+n,r.$el).not(t).each(function(){$(this).removeClass("selected");$(this).next(".level"+n).removeClass("active").removeClass("activeChild");$(".position",i).removeClass("position")})},setInitialState:function(){var n=this,t=n.getTargetEl(),o=t.parents(".levelOne"),i=t.parents(".levelTwo"),r=t.parents(".levelThree"),u=t.parents(".levelFour"),e=t.parents(".levelFive"),f="";f=acsJ.utils.getAbsoluteURL(acsJ.utils.validString(n.parentLink.attr("href")));(""===f||f===document.location.href.split("?")[0])&&n.parentLink.parent().addClass("collapsed");t.addClass("currentPage");n.togglePair(i.prev(".toggleLevelTwo"),i,!0,o);n.togglePair(r.prev(".toggleLevelThree"),r,!0,i);n.togglePair(u.prev(".toggleLevelFour"),u,!0,r);n.togglePair(e.prev(".toggleLevelFive"),e,!0,u)},getTargetEl:function(){var n=this,r=$("<div />"),t="",i="";return $("a[href]",n.$el).not(n.parentLink).each(function(){if(("linkpage"!=$(this).data("linktype")||$(this).attr("href").indexOf("#")>-1)&&(t=acsJ.utils.getAbsoluteURL($(this).attr("href")),i=document.location.href,n.isArticle===!0&&(t=t.replace(n.parentLink.attr("href"),""),i=i.replace(n.parentLink.attr("href"),"")),t===i.split("?")[0].replace(/^(.*?\:\/\/.*?\/.*?\/.*?\/.*?\/.*?)(?:\/.*)?$/,"$1")))return(r=$(this),!1)}),r},setLogoOffset:function(){var n=this,t=$("header",n.$el.parents("section"));n.isGlobal===!0&&(2===acsJ.utils.getBreakpoint()&&$(".levelOne",n.$el).hasClass("active")===!0?t.css("margin-top",n.$el.height()-40):t.css("margin-top",0))}}}());NS("acsJ.mod").typeAhead=Class.extend(function(){"use strict";return{init:function(n){this.$el=n;this.$hiddenEl=null;this.dropdownContainer=$('<div class="typeAheadItems" />');this.dropdownItems=$('<ul class="dropdownItems" />');this.endPoint="";this.param="";this.respObj="";this.titleProperty="";this.valueProperty="";this.hasEndPoint=!1;this.callback=null;this.global=!1;this.callbackParameter="";this.callbackFunction="";this.setProperties();this.hasEndPoint===!0&&this.bindEvents();"function"==typeof this.callback&&this.callback()},setProperties:function(){var n=this,t=acsJ.utils,i="";n.endPoint=t.validString(n.$el.data("endpoint"));n.param=t.validString(n.$el.data("param"));n.respObj=t.validString(n.$el.data("respobj"));n.filter=t.validString(n.$el.data("filter"));n.titleProperty=t.validString(n.$el.data("titleproperty"));n.valueProperty=t.validString(n.$el.data("valueproperty"));n.global=acsJ.utils.validBoolean(n.$el.data("global"),!1);n.callbackParameter=acsJ.utils.validString(n.$el.data("callbackparameter"),!1);n.callbackFunction=acsJ.utils.validString(n.$el.data("callbackfunction"),!1);i=t.validString(n.$el.data("hiddenel"));""!==i&&(n.$hiddenEl=n.global===!1?$(i,n.$el.parent()):$(i));""!==n.endPoint&&(n.hasEndPoint=!0,n.dropdownContainer.append(n.dropdownItems).insertAfter(n.$el))},bindEvents:function(){var n=this;n.$el.bind("keyup",function(t){var i=t.keyCode?t.keyCode:t.which;13===i?t.preventDefault():n.callTypeAhead()})},callTypeAhead:function(){var n=this,r=acsJ.utils,t=r.validString(n.$el.val()).trim(),i={};""!==t&&t.length>=3?(i[n.param]=t,$.ajax(n.callbackParameter?{type:"GET",url:n.endPoint,dataType:"JSONP",data:i,jsonp:n.callbackParameter,jsonpCallback:n.callbackFunction,success:function(t){n.handleResponse(t)},error:function(t){n.handleError(t)}}:{type:"GET",url:n.endPoint,dataType:"JSON",data:i,success:function(t){n.handleResponse(t)},error:function(t){n.handleError(t)}})):(n.dropdownItems.removeClass("active"),n.dropdownItems.parents("div").removeClass("activeDropdownParent"))},handleResponse:function(n){for(var t=this,u=acsJ.utils,h=u.validString(t.$el.val()),r=null,f=t.respObj.split("."),e=!1,o="",s="",i=0,i=0;i<f.length;i+=1)r=""===f[i]?n:n[f[i]];if("object"==typeof r&&Array.isArray(r)===!0){for($("li",t.dropdownItems).remove(),i=0;i<r.length;i+=1)e=-1!==u.validString(t.filter).indexOf("%"),o=u.validString(r[i][u.validString(t.titleProperty)]),s=new RegExp(u.validString(t.filter).replace("%",h),"i"),(e===!1||s.test(o)===!0)&&t.createItem(r[i]);r.length>12?t.dropdownItems.addClass("dropdownScroll"):t.dropdownItems.removeClass("dropdownScroll");t.dropdownItems.addClass("active");t.dropdownItems.parents("div").addClass("activeDropdownParent")}else t.dropdownItems.removeClass("active"),t.dropdownItems.parents("div").removeClass("activeDropdownParent")},handleError:function(){var n=this;n.dropdownItems.removeClass("active");n.dropdownItems.parents("div").removeClass("activeDropdownParent")},createItem:function(n){var t=this,u=acsJ.utils,f=u.validString(n[t.titleProperty]),e=n[t.valueProperty],r=$("<li />"),i=$("<a />");i.html(f);i.attr("data-value",e);i.bind("click",function(){t.selectItem($(this))});r.append(i);t.dropdownItems.append(r)},selectItem:function(n){var t=this,r=acsJ.utils,u=r.validString(n.text()),i=n.data("value");t.$hiddenEl?(t.$el.val(u),t.$hiddenEl.val(i)):t.$el.val(i);t.dropdownItems.removeClass("active");t.dropdownItems.parents("div").removeClass("activeDropdownParent")}}}());NS("acsJ.mod").videoModal=NS("acsJ.base").modal.extend(function(){"use strict";return{init:function(n){this.sourceEl=n;this.$el=$('<div class="responsiveVideo modalContent"><\/div>');this.youtubeID="";this.title="";this.subtitle="";this.trigger=this.sourceEl;this.close=$('<div class="close"><\/div>');this.cover=$($(".modal").length>0?".modal":'<div class="modal"><\/div>');this.active=!1;this.callback=null;this.setup();this.bindEvents();"function"==typeof this.callback&&this.callback()},setup:function(){var r,n=this,t=$("<h3 />"),i=$("<h4 />");n.title=n.sourceEl.data("videotitle");n.subtitle=n.sourceEl.data("videosubtitle");t.text(n.title);i.text(n.subtitle);n.youtubeID=n.sourceEl.data("youtubeid");n.$el.data("youtubeid",n.youtubeID);n.close.append('<i class="fa fa-times"><\/i>');n.$el.append(n.close);n.$el.append(t);n.$el.append(i);$("body").append(n.cover);$("body").append(n.$el);r=new acsJ.mod.responsiveVideo(n.$el)},hideCallback:function(){var t=this,n=$("iframe",t.$el),i=n.attr("src");n.attr("src","");n.attr("src",i)}}}());NS("acsJ.mod").viewMore=Class.extend(function(){"use strict";return{init:function(n){this.$el=n;this.itemList=null;this.pageSize=0;this.callback=null;this.setProperties();this.pageSize>0&&this.attachViewMore();"function"==typeof this.callback&&this.callback()},setProperties:function(){var n=this,t=n.$el.parents(".itemList[data-list-size]");t.length>0&&(n.itemList=$(t[0]),n.pageSize=n.itemList.data("list-size"))},attachViewMore:function(){var n=this;n.$el.on("click",function(){$(".hiddenListItem",n.itemList).each(function(t,i){t<n.pageSize&&$(i).removeClass("hiddenListItem")});0===$(".hiddenListItem",n.itemList).length&&n.$el.hide()})}}}());$(document).ready(function(){"use strict";var t,i,r,n;if($("body").bind("click",function(){acsJ.utils.collapseAll($("<div />"),$("<div />"))}),$.support.changeBubbles&&acsJ.resp.ViewChange.getInstance().onResponsive(function(){acsJ.utils.collapseAll($("<div />"),$("<div />"))}),"Microsoft Internet Explorer"===window.navigator.appName){for(t=window.navigator.appVersion.split(";"),i=0,i=0;i<t.length;i+=1)if(t[i].indexOf("MSIE")>-1){t=t[i].split("MSIE ")[1];break}if((t=t.slice(0,t.indexOf(".")),acsJ.utils.validNumber(t,1e3)<10&&$("body").addClass("lt-ie10"),acsJ.utils.validNumber(t,1e3)<9)&&($("body").addClass("lt-ie9"),new acsJ.core.IEGrid),$("body").addClass("ie-v"+t),$("input[placeholder], textarea[placeholder]").placeholder(),!$.support.cors&&$.ajaxTransport&&window.XDomainRequest){var u=/^https?:\/\//i,f=/^get|post$/i,e=new RegExp("^"+location.protocol,"i"),o=/text\/html/i,s=/\/json/i,h=/\/xml/i;$.ajaxTransport("* text html xml json",function(n,t){if(n.crossDomain&&n.async&&f.test(n.type)&&u.test(n.url)&&e.test(n.url)){var i=null,r=(t.dataType||"").toLowerCase();return{send:function(u,f){i=new XDomainRequest;/^\d+$/.test(t.timeout)&&(i.timeout=t.timeout);i.ontimeout=function(){f(500,"timeout")};i.onload=function(){var e="Content-Length: "+i.responseText.length+"\r\nContent-Type: "+i.contentType,t={code:200,message:"success"},u={text:i.responseText},n;try{if("html"===r||o.test(i.contentType))u.html=i.responseText;else if("json"===r||"text"!==r&&s.test(i.contentType))try{u.json=$.parseJSON(i.responseText)}catch(l){t.code=500;t.message="parseerror"}else if("xml"===r||"text"!==r&&h.test(i.contentType)){n=new ActiveXObject("Microsoft.XMLDOM");n.async=!1;try{n.loadXML(i.responseText)}catch(l){n=void 0}if(!n||!n.documentElement||n.getElementsByTagName("parsererror").length)throw t.code=500,t.message="parseerror","Invalid XML: "+i.responseText;u.xml=n}}catch(c){throw c;}finally{f(t.code,t.message,u,e)}};i.onprogress=function(){};i.onerror=function(){f(500,"error",{text:i.responseText})};var e="";t.data&&(e="string"===$.type(t.data)?t.data:$.param(t.data));i.open(n.type,n.url);i.send(e)},abort:function(){i&&i.abort()}}}})}}$("[data-vector]").each(function(){new acsJ.base.vectorImage($(this))});r=!1;$(".shareIcons").each(function(){r===!1&&(r=!0,acsJ.utils.enableSharing())});$(".centeredImage").each(function(){new acsJ.base.centeredImage($(this))});$(".globalNavigation").each(function(){new acsJ.mod.tieredNavigation($(this));new acsJ.mod.searchNavigation($(this))});$(".interiorNavigation").each(function(){new acsJ.mod.tieredNavigation($(this),!0)});$(".scfDropListGeneralPanel select").attr("data-display","true");n=new acsJ.mod.moduleQueue($("[data-mod]"),"");n.add($(".specialAlert"),"specialAlert");n.add($(".memberLogin"),"memberLogin");n.add($(".breadcrumbNavigation"),"breadcrumbCollapse");n.add($(".carousel"),"carousel");n.add($(".promoCarousel"),"promoCarousel");n.add($(".searchFacetCheckboxes"),"searchFacetCheckboxes");n.add($("[data-submit]"),"inputKeySubmit");n.add($(".viewMore"),"viewMore");n.add($(".scfDropListGeneralPanel select"),"responsiveDropdown");n.add($(".availableServices"),"availableServices");n.add($(".communitiesComponent"),"communitiesComponent");n.add($(".backToTop"),"backToTop");$(".captionedImage").each(function(){new acsJ.mod.captioned($(this))});$(".richTextContent img[alt]:not([title])").each(function(){acsJ.utils.validString($(this).attr("alt"))&&new acsJ.mod.imageAltToTitle($(this))})})