/* SJS v0.1.11 alpha | GNU LGPL: http://www.gnu.org/licenses/ */
(function(a){var b=function(a){return b.isElement(a)?window.g(a):b.isArray(a)?new window.Elements(a.query,a):b.isFunction(a)?window.ready(a):b.search(a)};b.extend=function(f,b,l,m){if(b&&b.charAt){if(m||f[b]===a||null===f[b])f[b]=l}else for(var h in b)if(b.hasOwnProperty(h)&&(l||f[h]===a||null===f[h]))f[h]=b[h];return f};b.extend(b,{Version:"0.1.11",Features:{},Settings:{},implement:function(a,c,l){return b.extend(a.prototype,c,l)},classPropertyOf:function(a){a=Object.prototype.toString.call(a);return a.substr(8,
a.length-9)},isString:function(a){return"String"===b.classPropertyOf(a)},isNumber:function(a){return"Number"===b.classPropertyOf(a)},isFunction:function(a){return"Function"===b.classPropertyOf(a)},isArray:function(a){return!b.isNull(a)&&a.hasOwnProperty&&a.hasOwnProperty("length")&&!b.isString(a)&&!b.isFunction(a)},isBoolean:function(a){return!0===a||!1===a},isElement:function(a){return-1<b.classPropertyOf(a).indexOf("Element")},isElements:function(a){return a instanceof window.Elements},isNull:function(b){return b===
a||null===b},toArray:function(a){return b.isNull(a)?[]:b.isArray(a)?a:[a]},toObject:function(a,c){return b.isPlainObject(a)?a:b.extend({},a,c)},flatten:function(a){var c=[];b.each(a,function(a){b.isArray(a)?b.each(b.flatten(a),function(a){c.push(a)}):c.push(a)});return c},filter:function(a,c){var l;b.isArray(a)?(l=[],b.isFunction(c)?b.each(a,function(a){c(a)&&l.push(a)}):b.isArray(c)?b.each(a,function(a,b){c.contains(b)&&l.push(a)}):b.each(a,function(a){a&&!l.contains(a)&&l.push(a)})):(l={},b.isFunction(c)?
b.each(a,function(a,b){c(a,b)&&(l[a]=b)}):b.isArray(c)?b.each(a,function(a,b){c.contains(a)&&(l[a]=b)}):b.each(a,function(a,f){b.isNull(f)||(l[a]=f)}));return l},isPlainObject:function(a){if(a==={})return!0;for(var c in a);return!b.isNull(c)&&b.hasOwn(a,c)},hasOwn:function(a,c){return b.isNull(a)?!1:!a.hasOwnProperty?!b.isNull(a[c]):a.hasOwnProperty(c)},each:function(a,c,l){var m=!0,h,i;if(b.isArray(a))for(h=0,i=a.length;h<i&&!1!==m;h++)m=c.call(l||a,a[h],h,a);else for(h in a){if(!1===m)break;a.hasOwnProperty(h)&&
(m=c.call(l||a,h,a[h],a))}return a},forEach:function(a,c,l){b.isArray(a)?b.each(a,function(b,h){c.call(l||a,h,b,a)}):b.each(a,c,l)},invoke:function(a,c){var l=window.Array.prototype.slice.call(arguments,2);b.forEach(a,function(a,b){b[c].apply(b,l)});return a},times:function(a,c,l){var m=0;if(b.isFunction(c))for(;m<a;m++)l();else if(l in c)for(;m<a;m++)c[l]()},without:function(a,c){if(b.isElements(a)){var l=Array.prototype.slice.call(a),l=b.without(l,c);return l=new window.Elements(a.query,l)}if(b.isArray(a)){var m=
[];b.each(a,function(a,b){b!==c&&m.push(a)});return m}delete a[c];return a},merge:function(f,c,l){var m=b.isNull(f)?{}:f,h=arguments;if(b.isString(c)&&l!==a&&null!==l)m[c]=l;else for(var i=1,p;i<arguments.length;i++)for(p in h[i])h[i].hasOwnProperty(p)&&h[i][p]!==a&&null!==h[i][p]&&(m[p]=h[i][p]);return m},rgb2hex:function(a,b){var l="#",m=function(a){a=a.toString(16);return 1==a.length?"0"+a:a},h=0;for(b&&(l+=m(Math.round(255*a[3])));3>h;h++)l+=m(a[h]);return l},serialize:function(a){if(b.isString(a))return a;
var c="",l=0;b.each(a,function(a,b){l++&&(c+="&");c+=a+"="+escape(b)});return c}});b.implement(window.Array,{contains:function(a,b){for(var l=!1,m=0,h=this.length;m<h;m++)if(!b&&this[m]==a||b&&this[m]===a){l=!0;break}return l},containsKey:function(a){return a<this.length}});b.implement(window.String,{substringAfter:function(a,c){return b.isNull(a)?this:b.isNumber(a)?this.substring(a+1,c):this.substring(this.indexOf(a)+a.length,c)},htmlSpecialChars:function(){return this.replace(/&/g,"&amp;").replace(/</g,
"&lt;").replace(/>/g,"&gt;")},caps2dashes:function(){return this.replace(/[A-Z]/g,"-$&").toLowerCase()},hex2rgb:function(){var a="#"==this.charAt(0)?this.substr(1):this;3==a.length&&(a=a.replace(/(.)(.)(.)/,"$1$1$2$2$3$3"));return[parseInt(a.substr(0,2),16),parseInt(a.substr(2,2),16),parseInt(a.substr(4,2),16)]},insert:function(a){var c=this;b.each(a,function(a,b){c=c.replace(RegExp("([^$])(\\$"+a+")","gi"),"$1"+b)},this);return c},toElement:function(){var a=document.createElement("div"),b;a.innerHTML=
this;b=g(a)._("> *");return 1===b.length?b[0]:g(a)}});window.SJS=b;if(!window._)window._=b})();window.NW||(window.NW={});
NW.Event=function(a){var b={},f={},c={},l={},m=a.document,h=m.documentElement,i=function(){return{items:[],calls:[],parms:[],wraps:[]}},p="activeElement"in m?function(){try{return m.activeElement=null,null===m.activeElement}catch(a){return!1}}:!0,o=function(){var e=(a.open+"").replace(/open/g,"");return function(a,b){var k=a?a[b]:!1;return!(!k||!("string"!=typeof k&&e===(k+"").replace(RegExp(b,"g"),"")))}}(),e=h.addEventListener&&h.removeEventListener?!0:!1,k=h.attachEvent&&h.detachEvent?!0:!1,j=
"parentWindow"in top.document?function(a){return a.parentWindow||window}:"defaultView"in top.document&&top===top.document.defaultView?function(a){return a.defaultView||window}:function(a){if(!(0===window.frames.length&&top.document===a))for(var e in top.frames)if(top.frames[e].document===a)return top.frames[e];return top},n=function(a,e,b){e||(e=j(a.ownerDocument||a.document||a).event);e.currentTarget=a;e.target=e.srcElement||a;e.preventDefault=G;e.stopPropagation=F;e.eventPhase=b?1:3;e.relatedTarget=
e[(e.target==e.fromElement?"to":"from")+"Element"];e.timeStamp=+new Date;return e},G=function(){this.returnValue=!1},F=function(){this.cancelBubble=!0},q=function(a,e,b,k,j){var c,i,n=!1;if(a[b]&&a[b].items)for(c=0,i=a[b].items.length;i>c;c++)if(a[b].items[c]===e&&a[b].calls[c]===k&&a[b].parms[c]===j){n=c;break}return n},t=function(a,e,b){var k,j,i,n=[];e||(e="*");a||(a="*");b||(b=c);for(k in b)if(-1<e.indexOf(k)||"*"==e)for(j=0,i=b[k].items.length;j<i;j++)(b[k].items[j]===a||"*"==a)&&n.push(b[k].calls[j]);
return n},A=function(a){var e,b,k=!0,j,i,n,f;e=a.type;var l;if(c[e]&&c[e].items){f=a.eventPhase;if(!a.propagated&&E[e])return a.preventDefault?a.preventDefault():a.returnValue=!1,!0;if(2!==f&&a.target===this)f=a.eventPhase=2;j=c[e].items.slice();i=c[e].calls.slice();n=c[e].parms.slice();for(e=0,b=j.length;b>e;e++){l=!1;if(j[e]===this)switch(f){case 1:if(!a.propagated||!0===n[e])l=!0;break;case 3:!1===n[e]&&(l=!0);break;case 2:if(!a.propagated||!0===n[e])l=!0;break;default:l=!0}if(l&&!1===(k=i[e].call(this,
a)))break}}return k},r=function(a){var e,b,k,j,c,i=!0;e=a.type;if(f[e]&&f[e].items){k=f[e].items.slice();j=f[e].calls.slice();f[e].parms.slice();e=0;b=k.length;a:for(;b>e;e++)for(c=a.target;c&&c!=this;){if(NW.Dom.match(c,k[e])&&!1===j[e].call(c,a)){i=!1;break a}c=c.parentNode}}return i},w=function(a,e,b,k,j){a[b]&&a[b].items||(a[b]=new i);a[b].items.push(e);a[b].calls.push(k);a[b].parms.push(j)},u=function(a,e,b){a[e].items.splice(b,1);a[e].calls.splice(b,1);a[e].parms.splice(b,1)},y=e?function(a,
e,b,k){a.addEventListener(e,b,k||!1)}:k?function(a,e,k,j){var c=b[e].wraps.push(function(e){return k.call(a,n(a,e,j))});a.attachEvent("on"+e,b[e].wraps[c-1])}:function(a,e,b,k){l["on"+e]=a["on"+e]||new Function;a["on"+e]=function(a){var j;a||(a=n(this,a,k));j=b.call(this,a);l["on"+e].call(this,a);return j}},I=e?function(a,e,b,k){a.removeEventListener(e,b,k||!1)}:k?function(a,e,k,j,c){a.detachEvent("on"+e,k);b[e].wraps.splice(c,1)}:function(a,e){a["on"+e]=l["on"+e];delete l["on"+e]},s=function(a,e,
k,j){var c,i,n;if("string"==typeof e){n=e.split(" ");for(c=0,i=n.length;c<i;c++)e=q(b,a,n[c],k,j),!1===e&&(w(b,a,n[c],k,j),y(a,n[c],k,j))}else for(c in e)s(a,c,e[c],j);return this},x=function(a,e,k,j){var c,i,n;if("string"==typeof e){n=e.split(" ");for(c=0,i=n.length;c<i;c++)e=q(b,a,n[c],k,j),!1!==e&&(I(a,n[c],b[n[c]].wraps[e],j,e),u(b,n[c],e))}else for(c in e)x(a,c,e[c],j);return this},C=function(a,e,b,k){var j,i,n;if("string"==typeof e){n=e.split(" ");for(j=0,i=n.length;j<i;j++)e=q(c,a,n[j],b,k),
!1===e&&(w(c,a,n[j],b,k),1===t(a,n[j],c).length&&s(a,n[j],A,k))}else for(j in e)C(a,j,e[j],k);return this},D=function(a,e,b,k){var j,i,n;if("string"==typeof e){n=e.split(" ");for(j=0,i=n.length;j<i;j++)e=q(c,a,n[j],b,k),!1!==e&&(1===t(a,n[j],c).length&&x(a,n[j],A,k),u(c,n[j],e))}else for(j in e)D(a,j,e[j],k);return this},v=function(a,e,b,k){var j,c,i;if("string"==typeof a){i=e.split(" ");k=k||h;for(j=0,c=i.length;j<c;j++)e=q(f,a,i[j],b,k),!1===e&&(w(f,a,i[j],b,k),1===f[i[j]].items.length&&C(k,i[j],
r,!0))}else for(j in a)if("string"==typeof j)for(c in a[j])v(j,c,a[j][c]);return this},B=function(a,e,b,k){var j,c,i;if("string"==typeof e){i=e.split(" ");k=k||h;for(j=0,c=i.length;j<c;j++)e=q(f,a,i[j],b,k),!1!==e&&(1===f[i[j]].items.length&&D(k,i[j],r,!0),u(f,i[j],e))}else for(j in a)if("string"==typeof j)for(c in a[j])B(j,c,a[j][c]);return this},e=h.dispatchEvent?function(a,e){var b,k=a.ownerDocument||a.document||a,c=j(k);if(/mouse|click/.test(e))try{b=k.createEvent("MouseEvents"),b.initMouseEvent(e,
!0,!0,c,0,0,0,0,0,!1,!1,!1,!1,0,null)}catch(i){b=k.createEvent("HTMLEvents"),b.initEvent(e,!0,!0)}else/key(down|press|out)/.test(e)?(b=k.createEvent("KeyEvents"),b.initKeyEvent(e,!0,!0,c,!1,!1,!1,!1,0,0)):(b=k.createEvent("HTMLEvents"),b.initEvent(e,!0,!0));return a.dispatchEvent(b)}:h.fireEvent?function(a,e,b){var k;k=(a.ownerDocument||a.document||a).createEventObject();k.type=e;k.target=a;k.eventPhase=0;k.currentTarget=a;k.cancelBubble=!!b;k.returnValue=void 0;return a.fireEvent("on"+e,n(a,k,b))}:
function(){},z={blur:"blur",focus:"focus",beforeactivate:"focus",beforedeactivate:"blur"},E={blur:1,focus:1,reset:1,submit:1,change:1},K=m.addEventListener?"focus blur":"beforeactivate beforedeactivate",L=function(a){var e=!0,b=a.target,a=a.type;e&&(e=J(b,a,!0));e&&(e=J(b,a,!1));x(b,a,L,!1);if(b.form)b=b.form;e&&o(b,a)&&b[a]();return e},J=function(a,e,b){var k,j=!0;k=a;for(var c=[],a={type:e,target:a,bubbles:!0,cancelable:!0,currentTarget:a,relatedTarget:null,timeStamp:+new Date,preventDefault:G,
stopPropagation:F,eventPhase:b?1:3,propagated:!0};1==k.nodeType;)c.push(k),k=k.parentNode;b&&c.reverse();for(k=0,e=c.length;e>k;k++)if(a.currentTarget=c[k],a.eventPhase=b?1:3,!1===A.call(c[k],a)||!1===a.returnValue){j=!1;break}delete a.propagated;return j},M=function(a){var e=!0,b=a.target;e&&(e=J(b,z[a.type],!0));e&&(e=J(b,z[a.type],!1));e||(a.preventDefault?a.preventDefault():a.returnValue=!1);return e},N=function(a){var e=a.target,b=e.type;if(e!=m.activeElement&&!p&&1==e.nodeType)m.activeElement=
e,m.focusElement=null;if(b){if(e!=m.focusElement&&!p)m.focusElement=e;if(/file|text|password/.test(b)&&13==a.keyCode&&e.form)b="submit",e=e.form;else if(/select-(one|multi)/.test(b))b="change";else if(/reset|submit/.test(b)&&e.form)e=e.form;else return;s(e,b,L,!1)}},k=function(a){if(!a.forcedPropagation)a.forcedPropagation=!0,s(j(a),"unload",function(e){O(a);x(this,"unload",arguments.callee,!1)},!1),s(a,"keydown mousedown",N,!0),s(a,K,M,!0)},O=function(a){if(a.forcedPropagation)a.forcedPropagation=
!1,x(a,"keydown mousedown",N,!0),x(a,K,M,!0)},P=!1,H=new i,Q=function(a,e,b){function k(a){j||(j=!0,e.call(b,a))}var j=!1,c=0,i=a.document,n=i.documentElement;if(i.addEventListener){var f=function(a){i.removeEventListener(a.type,f,!1);k(a)};i.addEventListener("DOMContentLoaded",f,!1);a.addEventListener("load",f,!1)}else if(i.attachEvent){var l=function(){function a(){try{if(n.doScroll("left"),c=n.outerHTML.length,1.03*c<1*d.fileSize)return!j&&setTimeout(a,50)}catch(e){return!j&&setTimeout(a,50)}k({type:"poll"});
return j}i.detachEvent("onreadystatechange",l);a()};i.attachEvent("onreadystatechange",l);var G=function(a){"complete"==i.readyState&&(i.detachEvent("onreadystatechange",G),k(a))};i.attachEvent("onreadystatechange",G);i.attachEvent("load",G)}else{var q=a.onload;a.onload=function(e){k(e||a.event);"function"==typeof q&&q(e||a.event)}}};if(!p)m.activeElement=h;m.forcedPropagation||k(m);Q(a,function(a,e,b){P=!0;if(H.ready&&H.ready.items){e=H.ready.items.length;for(a=0;e>a;++a)H.ready.calls[a].call(b)}});
return{USE_DOM2:!0,stop:function(a){a.preventDefault?a.preventDefault():a.returnValue=!1;a.stopPropagation?a.stopPropagation():a.cancelBubble=!0;return!1},dispatch:e,onDOMReady:function(a,e,b){if(P)e.call(b);else if(!1===q(H,a,"ready",e,null))w(H,a,"ready",e,null);else throw Error("NWEvents: duplicate ready handler for host: "+a);},contentLoaded:Q,getRegistered:t,appendHandler:s,removeHandler:x,appendListener:C,removeListener:D,appendDelegate:v,removeDelegate:B,enablePropagation:k,disablePropagation:O}}(this);
NW.Dom={match:SJS.match};window.g=function(a){var a=SJS.isString(a)?SJS.byId(a):a,b;if(!SJS.Features.Element)for(b in window.Element.prototype)window.Element.prototype.hasOwnProperty(b)&&!(b in a)&&(a[b]=window.Element.prototype[b]);return a};SJS.extend(SJS.Features,{Element:!!window.Element});
SJS.extend(SJS,{colorParsers:[function(a){if(SJS.isString(a)&&(a=a.match(/(rgb\(\d+,\s?\d+,\s?\d+\))|(rgba\(\d+,\s?\d+,\s?\d+,\s?\d+(\.\d+)?\))/))){for(var a=a[0].substr("a"===a[0].charAt(3)?5:4).split(","),b=0,f=a.length;b<f;b++)a[b]=parseFloat(a[b].trim());return a}},function(a){if(SJS.isString(a)&&(a=a.match(/#[a-z0-9]{3,6}/i)))return a[0].hex2rgb()}],parseColor:function(a){if(SJS.isString(a)){var b=a.split("-"),f;SJS.each(SJS.colorParsers,function(a){f=a(b[0]);return SJS.isNull(f)});if(SJS.isNull(f))return a;
a=parseFloat(b[1]);isNaN(a)||(f[3]=a);return f}return a}});if(!SJS.Features.Element)window.Element=window.g;if(!window.Element.prototype)window.Element.prototype={};window.Elements=SJS.Features.Element?function(a,b){this.query=a;this.length=0;b&&b.length&&Array.prototype.splice.apply(this,[0,0].concat(b))}:function(a,b){for(var f=0,c=b?b.length:0,l;f<c;f++)for(l in this[f]=b[f],window.Element.prototype)this[f][l]=window.Element.prototype[l];this.query=a;this.length=f};
SJS.implement(window.Elements,{push:SJS.Features.Element?function(a){this[this.length++]=a}:function(a){var b=this.length;this[b]=a;for(var f in window.Element.prototype)f in this[b]||(this[b][f]=window.Element.prototype[f]);this.length++},sort:Array.prototype.sort,queryOf:function(){return this.query},_:function(a){return SJS.searchEach(a,this,this.query+" "+(a||"*"))},each:function(a,b){return SJS.each(this,a,b)},filter:function(a){return new window.Elements(this.queryOf()+":matches("+a+")",SJS.filter(this,
function(b){return b.match(a)}))}});SJS.extend(SJS,{alias:function(a,b){return SJS.each(["Element","Elements"],function(f){SJS.implement(window[f],b,window[f].prototype[a])})},live:function(a,b,f){if(f){var c=b,b={};b[c]=f}SJS.each(b,function(b,c){window.document.bind(b,function(b,i,f){window.Element.prototype.match.call(this,a)&&c.call(this,b,this,f)})});return this}});
SJS.implement(window.Element,{queryOf:function(){if(this.query)return this.query;if(this.id)return"#"+this.id;var a=this.classes(),b;if(SJS.filter(a,function(a){if("sjs-uniqclass-"===a.substr(0,14))return b=a,!0}).length)return"."+b;do b=".sjs-uniqclass-"+Math.round(1E5*Math.random());while(_(b).length);this.addClass(b.substr(1));return b},toElement:function(){return this},_:function(a){var b=this.queryOf()+" "+a;return SJS.search(a,this,b)},getFirst:function(a){return SJS.find(a,this)},getLast:function(a){a=
SJS.search(a,this);return window.g(a[a.length-1])},html:function(a){if(SJS.isNull(a))return this.innerHTML;this.innerHTML=a;return this},prepend:function(a){this.insertBefore(a.toElement(),this.firstChild);return this},append:function(a){this.appendChild(a.toElement());return this},text:function(a){return SJS.isNull(a)?this.textContent||this.innerText.replace(rnReturn,""):this.html(a.htmlSpecialChars())},prependText:function(a){this.insertBefore(document.createTextNode(a),this.firstChild);return this},
appendText:function(a){this.appendChild(document.createTextNode(a));return this},before:function(a){this.parent().insertBefore(a.toElement(),this);return this},after:function(a){this.parent().insertBefore(a.toElement(),this.next()||null);return this},remove:function(){var a=this.parent();SJS.isNull(a)||a.removeChild(this)},live:function(a,b){_.live(this.queryOf(),a,b);return this},val:function(a){if(this.match("select"))if(a)SJS.each(this._("option"),function(b){b.selected=b.value==a});else{var b;
this.multiple&&(b=[]);SJS.each(this._("option"),function(a){if(this.multiple)a.selected&&b.push(a.value);else if(!b&&a.selected)b=a.value},this);return b}else{if(!a)return this.value;this.value=a;return this}},attr:function(a,b){var f=SJS.isArray(a);(f||SJS.isPlainObject(a))&&SJS.each(a,function(a,c){this.attr(a,f?b:c)},this);var c={"class":"className","for":"htmlFor",colpan:"colSpan",rowspan:"rowSpan"};if(SJS.isNull(b))return SJS.hasOwn(c,a.toLowerCase())&&(a=c[a]),this[a]||this.getAttribute(a);
if(!SJS.isString(a))return this;["href","src"].contains(a)?this[a]=b:"style"===a?this.style.cssText=b:SJS.hasOwn(c,a.toLowerCase())?this[c[a]]=b:this.setAttribute(a,b);return this},removeAttr:function(a){if(!SJS.isString(a))return this;var b={"class":"className","for":"htmlFor",colpan:"colSpan",rowspan:"rowSpan"};["href","src"].contains(a)?this[a]=null:SJS.hasOwn(b,a.toLowerCase())?this[b[a]]=null:this.removeAttribute(a);return this},addClass:function(){var a=this.className.split(" ");SJS.each(SJS.flatten(arguments),
function(b){a=a.concat(b.split(" "))});this.className=SJS.filter(a).join(" ");return this},removeClass:function(){var a=this.className.split(" ");SJS.each(SJS.flatten(arguments),function(b){SJS.each(b.split(" "),function(b){a=SJS.without(a,a.indexOf(b))})});this.className=SJS.filter(a).join(" ");return this},hasClass:function(a){return this.classes().contains(a)},classes:function(){return this.className.split(" ")},computedStyle:function(){return document.defaultView&&document.defaultView.getComputedStyle?
function(a,b){var f;b&&(f=this.css(a));f||(f=document.defaultView.getComputedStyle(this,null).getPropertyValue(a.caps2dashes()));return f=SJS.parseColor(f)}:function(a,b){var f;b&&(f=this.css(a));f||(f=this.currentStyle[a]);f=SJS.parseColor(f);if(SJS.isNull(f)||"auto"===f)switch(a){case "width":return this.offsetWidth;case "height":return this.offsetHeight;case "opacity":return 1}return f}}(),css:function(a,b){if(SJS.isArray(a)){if(SJS.isNull(b)){var f={};SJS.each(a,function(a){f[a]=this.css(a)},
this);return f}SJS.each(a,function(a){this.css(a,b)},this)}else{if(SJS.isNull(b)&&!SJS.isPlainObject(a))return this.style[a];SJS.each(SJS.toObject(a,b),function(a,b){this.style[a]=SJS.isNumber(b)?b+"px":b},this)}return this},parent:function(){return g(this.parentNode)},prev:function(){return this.getFirst("!+ *")[0]},next:function(){return this.getFirst("+ *")}});
SJS.extend(window.Elements,{implementBoth:function(a,b){b||(b=0);SJS.each(SJS.toArray(a),function(a){SJS.implement(window.Elements,a,function(){var c=arguments;return c.length>b?SJS.each(this,function(b){window.Element.prototype[a].apply(b,c)}):window.Element.prototype[a].apply(this[0],c)})})},implementEach:function(){SJS.each(SJS.flatten(arguments),function(a){SJS.implement(window.Elements,a,function(){var b=arguments;return SJS.each(this,function(f){window.Element.prototype[a].apply(f,b)})})})},
implementSame:function(){SJS.each(SJS.flatten(arguments),function(a){SJS.implement(window.Elements,a,function(){return window.Element.prototype[a].apply(this,arguments)})})}});window.Elements.implementBoth(["html","text"]);window.Elements.implementBoth("css",1);window.Elements.implementEach("prepend","append","prependText","appendText","before","after","remove","addClass","removeClass");SJS.alias("_","getAll");
SJS.implement(window.Element,"bind",function(a,b){var f=this,c=function(a){a||(a=this);SJS.isFunction(b)&&b.call(a.target,a,f,a.type)};switch(a){case "ready":NW.Event.contentLoaded(this,c,this);break;case "dblclick":case "submit":case "change":NW.Event.appendHandler(this,a,c,!1);break;default:NW.Event.appendListener(this,a,c,!1)}return this});window.bind=window.document.bind=function(a,b){Element.prototype.bind.call(this,a,b);return this};
SJS.each("ready,load,mousedown,mouseup,click,dblclick,contextmenu,mousemove,keydown,keyup,keypress,change".split(","),function(a){SJS.implement(window.Element,a,window[a]=window.document[a]=function(b){return this.bind(a,b)});window.Elements.implementEach(a)});window.Elements.implementEach("bind");window.Elements.implementSame("live");
(function(a){var b={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],
lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]};a.colorParsers.push(function(a){return b[a]})})(window.SJS);
(function(){function a(a,e,j,n,m,p,h,u,y,I,s,x,C,D,v,B){if(e||-1===f)if(b.expressions[++f]=[],c=-1,e)return"";if(j||n||-1===c){j=j||" ";a=b.expressions[f];if(l&&a[c])a[c].reverseCombinator=o(j);a[++c]={combinator:j,tag:"*"}}j=b.expressions[f][c];if(m)j.tag=m.replace(i,"");else if(p)j.id=p.replace(i,"");else if(h){h=h.replace(i,"");if(!j.classList)j.classList=[];if(!j.classes)j.classes=[];j.classList.push(h);j.classes.push({value:h,regexp:RegExp("(^|\\s)"+k(h)+"(\\s|$)")})}else if(C){B=(B=B||v)?B.replace(i,
""):null;if(!j.pseudos)j.pseudos=[];j.pseudos.push({key:C.replace(i,""),value:B,type:1==x.length?"class":"element"})}else if(u){var u=u.replace(i,""),s=(s||"").replace(i,""),z,E;switch(y){case "^=":E=RegExp("^"+k(s));break;case "$=":E=RegExp(k(s)+"$");break;case "~=":E=RegExp("(^|\\s)"+k(s)+"(\\s|$)");break;case "|=":E=RegExp("^"+k(s)+"(-|$)");break;case "=":z=function(a){return s==a};break;case "*=":z=function(a){return a&&-1<a.indexOf(s)};break;case "!=":z=function(a){return s!=a};break;default:z=
function(a){return!!a}}""==s&&/^[*$^]=$/.test(y)&&(z=function(){return!1});z||(z=function(a){return a&&E.test(a)});if(!j.attributes)j.attributes=[];j.attributes.push({key:u,operator:y,value:s,test:z})}return""}var b,f,c,l,m={},h={},i=/\\/g,p=function(k,c){if(null==k)return null;if(!0===k.Slick)return k;var k=(""+k).replace(/^\s+|\s+$/g,""),i=(l=!!c)?h:m;if(i[k])return i[k];b={Slick:!0,expressions:[],raw:k,reverse:function(){return p(this.raw,!0)}};for(f=-1;k!=(k=k.replace(j,a)););b.length=b.expressions.length;
return i[b.raw]=l?e(b):b},o=function(a){return"!"===a?" ":" "===a?"!":/^!/.test(a)?a.replace(/^!/,""):"!"+a},e=function(a){for(var e=a.expressions,b=0;b<e.length;b++){for(var k=e[b],j={parts:[],tag:"*",combinator:o(k[0].combinator)},c=0;c<k.length;c++){var i=k[c];if(!i.reverseCombinator)i.reverseCombinator=" ";i.combinator=i.reverseCombinator;delete i.reverseCombinator}k.reverse().push(j)}return a},k=function(a){return a.replace(/[-[\]{}()*+?.\\^$|,#\s]/g,function(a){return"\\"+a})},j=RegExp("^(?:\\s*(,)\\s*|\\s*(<combinator>+)\\s*|(\\s+)|(<unicode>+|\\*)|\\#(<unicode>+)|\\.(<unicode>+)|\\[\\s*(<unicode1>+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:([\"']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(<unicode>+)(?:\\((?:(?:([\"'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)".replace(/<combinator>/,
"["+k(">+~`!@$%^&={}\\;</")+"]").replace(/<unicode>/g,"(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(/<unicode1>/g,"(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])")),n=this.Slick||{};n.parse=function(a){return p(a)};n.escapeRegExp=k;if(!this.Slick)this.Slick=n}).apply("undefined"!=typeof exports?exports:this);
(function(){var a={},b={},f=Object.prototype.toString;a.isNativeCode=function(a){return/\{\s*\[native code\]\s*\}/.test(""+a)};a.isXML=function(a){return!!a.xmlVersion||!!a.xml||"[object XMLDocument]"==f.call(a)||9==a.nodeType&&"HTML"!=a.documentElement.nodeName};a.setDocument=function(a){var k=a.nodeType;if(9!=k)if(k)a=a.ownerDocument;else if(a.navigator)a=a.document;else return;if(this.document!==a){this.document=a;var k=a.documentElement,j=this.getUIDXML(k),c=b[j],i;if(!c){c=b[j]={};c.root=k;c.isXMLDocument=
this.isXML(a);c.brokenStarGEBTN=c.starSelectsClosedQSA=c.idGetsName=c.brokenMixedCaseQSA=c.brokenGEBCN=c.brokenCheckedQSA=c.brokenEmptyAttributeQSA=c.isHTMLDocument=c.nativeMatchesSelector=!1;var f,l,o,m,p,h=a.createElement("div"),u=a.body||a.getElementsByTagName("body")[0]||k;u.appendChild(h);try{h.innerHTML='<a id="slick_uniqueid"></a>',c.isHTMLDocument=!!a.getElementById("slick_uniqueid")}catch(y){}if(c.isHTMLDocument){h.style.display="none";h.appendChild(a.createComment(""));j=1<h.getElementsByTagName("*").length;
try{h.innerHTML="foo</foo>",f=(p=h.getElementsByTagName("*"))&&!!p.length&&"/"==p[0].nodeName.charAt(0)}catch(I){}c.brokenStarGEBTN=j||f;try{h.innerHTML='<a name="slick_uniqueid"></a><b id="slick_uniqueid"></b>',c.idGetsName=a.getElementById("slick_uniqueid")===h.firstChild}catch(s){}if(h.getElementsByClassName){try{h.innerHTML='<a class="f"></a><a class="b"></a>',h.getElementsByClassName("b"),h.firstChild.className="b",o=2!=h.getElementsByClassName("b").length}catch(x){}try{h.innerHTML='<a class="a"></a><a class="f b a"></a>',
l=2!=h.getElementsByClassName("a").length}catch(C){}c.brokenGEBCN=o||l}if(h.querySelectorAll){try{h.innerHTML="foo</foo>",p=h.querySelectorAll("*"),c.starSelectsClosedQSA=p&&!!p.length&&"/"==p[0].nodeName.charAt(0)}catch(D){}try{h.innerHTML='<a class="MiX"></a>',c.brokenMixedCaseQSA=!h.querySelectorAll(".MiX").length}catch(v){}try{h.innerHTML='<select><option selected="selected">a</option></select>',c.brokenCheckedQSA=0==h.querySelectorAll(":checked").length}catch(B){}try{h.innerHTML='<a class=""></a>',
c.brokenEmptyAttributeQSA=0!=h.querySelectorAll('[class*=""]').length}catch(z){}}try{h.innerHTML='<form action="s"><input id="action"/></form>',m="s"!=h.firstChild.getAttribute("action")}catch(E){}c.nativeMatchesSelector=k.matchesSelector||k.mozMatchesSelector||k.webkitMatchesSelector;if(c.nativeMatchesSelector)try{c.nativeMatchesSelector.call(k,":slick"),c.nativeMatchesSelector=null}catch(K){}}try{k.slick_expando=1,delete k.slick_expando,c.getUID=this.getUIDHTML}catch(L){c.getUID=this.getUIDXML}u.removeChild(h);
h=p=u=null;c.getAttribute=c.isHTMLDocument&&m?function(a,e){var b=this.attributeGetters[e];return b?b.call(a):(b=a.getAttributeNode(e))?b.nodeValue:null}:function(a,e){var b=this.attributeGetters[e];return b?b.call(a):a.getAttribute(e)};c.hasAttribute=k&&this.isNativeCode(k.hasAttribute)?function(a,e){return a.hasAttribute(e)}:function(a,e){a=a.getAttributeNode(e);return!(!a||!a.specified&&!a.nodeValue)};c.contains=k&&this.isNativeCode(k.contains)?function(a,e){return a.contains(e)}:k&&k.compareDocumentPosition?
function(a,e){return a===e||!!(a.compareDocumentPosition(e)&16)}:function(a,e){if(e){do if(e===a)return!0;while(e=e.parentNode)}return!1};c.documentSorter=k.compareDocumentPosition?function(a,e){return!a.compareDocumentPosition||!e.compareDocumentPosition?0:a.compareDocumentPosition(e)&4?-1:a===e?0:1}:"sourceIndex"in k?function(a,e){return!a.sourceIndex||!e.sourceIndex?0:a.sourceIndex-e.sourceIndex}:a.createRange?function(a,e){if(!a.ownerDocument||!e.ownerDocument)return 0;var b=a.ownerDocument.createRange(),
k=e.ownerDocument.createRange();b.setStart(a,0);b.setEnd(a,0);k.setStart(e,0);k.setEnd(e,0);return b.compareBoundaryPoints(Range.START_TO_END,k)}:null;k=null}for(i in c)this[i]=c[i]}};var c=/^([#.]?)((?:[\w-]+|\*))$/,l=/\[.+[*$^]=(?:""|'')?\]/,m={};a.search=function(a,b,j,i){var f=this.found=i?null:j||[];if(a)if(a.navigator)a=a.document;else{if(!a.nodeType)return f}else return f;var h,q,p=this.uniques={},j=!(!j||!j.length),A=9==a.nodeType;this.document!==(A?a:a.ownerDocument)&&this.setDocument(a);
if(j)for(q=f.length;q--;)p[this.getUID(f[q])]=!0;if("string"==typeof b){var r=b.match(c);a:if(r){q=r[1];var w=r[2];if(q)if("#"==q){if(!this.isHTMLDocument||!A)break a;r=a.getElementById(w);if(!r)return f;if(this.idGetsName&&r.getAttributeNode("id").nodeValue!=w)break a;if(i)return r||null;(!j||!p[this.getUID(r)])&&f.push(r)}else{if("."==q){if(!this.isHTMLDocument||(!a.getElementsByClassName||this.brokenGEBCN)&&a.querySelectorAll)break a;if(a.getElementsByClassName&&!this.brokenGEBCN){h=a.getElementsByClassName(w);
if(i)return h[0]||null;for(q=0;r=h[q++];)(!j||!p[this.getUID(r)])&&f.push(r)}else{var u=RegExp("(^|\\s)"+o.escapeRegExp(w)+"(\\s|$)");h=a.getElementsByTagName("*");for(q=0;r=h[q++];)if((className=r.className)&&u.test(className)){if(i)return r;(!j||!p[this.getUID(r)])&&f.push(r)}}}}else{if("*"==w&&this.brokenStarGEBTN)break a;h=a.getElementsByTagName(w);if(i)return h[0]||null;for(q=0;r=h[q++];)(!j||!p[this.getUID(r)])&&f.push(r)}j&&this.sort(f);return i?null:f}a:if(a.querySelectorAll&&this.isHTMLDocument&&
!m[b]&&!this.brokenMixedCaseQSA&&!(this.brokenCheckedQSA&&-1<b.indexOf(":checked")||this.brokenEmptyAttributeQSA&&l.test(b)||!A&&-1<b.indexOf(",")||o.disableQSA)){q=b;r=a;if(!A){var y=r.getAttribute("id");r.setAttribute("id","slickid__");q="#slickid__ "+q;a=r.parentNode}try{if(i)return a.querySelector(q)||null;h=a.querySelectorAll(q)}catch(I){m[b]=1;break a}finally{A||(y?r.setAttribute("id",y):r.removeAttribute("id"),a=r)}if(this.starSelectsClosedQSA)for(q=0;r=h[q++];)"@"<r.nodeName&&(!j||!p[this.getUID(r)])&&
f.push(r);else for(q=0;r=h[q++];)(!j||!p[this.getUID(r)])&&f.push(r);j&&this.sort(f);return f}h=this.Slick.parse(b);if(!h.length)return f}else{if(null==b)return f;if(b.Slick)h=b;else{if(this.contains(a.documentElement||a,b))f?f.push(b):f=b;return f}}this.posNTH={};this.posNTHLast={};this.posNTHType={};this.posNTHTypeLast={};this.push=!j&&(i||1==h.length&&1==h.expressions[0].length)?this.pushArray:this.pushUID;null==f&&(f=[]);var s,x,C,D,v,B,z=h.expressions;q=0;a:for(;B=z[q];q++)for(b=0;v=B[b];b++){y=
"combinator:"+v.combinator;if(!this[y])continue a;A=this.isXMLDocument?v.tag:v.tag.toUpperCase();r=v.id;w=v.classList;C=v.classes;D=v.attributes;v=v.pseudos;s=b===B.length-1;this.bitUniques={};s?(this.uniques=p,this.found=f):(this.uniques={},this.found=[]);if(0===b){if(this[y](a,A,r,C,D,v,w),i&&s&&f.length)break a}else if(i&&s)for(s=0,x=u.length;s<x;s++){if(this[y](u[s],A,r,C,D,v,w),f.length)break a}else for(s=0,x=u.length;s<x;s++)this[y](u[s],A,r,C,D,v,w);u=this.found}(j||1<h.expressions.length)&&
this.sort(f);return i?f[0]||null:f};a.uidx=1;a.uidk="slick-uniqueid";a.getUIDXML=function(a){var b=a.getAttribute(this.uidk);b||(b=this.uidx++,a.setAttribute(this.uidk,b));return b};a.getUIDHTML=function(a){return a.uniqueNumber||(a.uniqueNumber=this.uidx++)};a.sort=function(a){if(!this.documentSorter)return a;a.sort(this.documentSorter);return a};a.cacheNTH={};a.matchNTH=/^([+-]?\d*)?([a-z]+)?([+-]\d+)?$/;a.parseNTHArgument=function(a){var b=a.match(this.matchNTH);if(!b)return!1;var j=b[2]||!1,c=
b[1]||1;"-"==c&&(c=-1);b=+b[3]||0;b="n"==j?{a:c,b:b}:"odd"==j?{a:2,b:1}:"even"==j?{a:2,b:0}:{a:0,b:c};return this.cacheNTH[a]=b};a.createNTHPseudo=function(a,b,j,c){return function(i,f){var l=this.getUID(i);if(!this[j][l]){var h=i.parentNode;if(!h)return!1;var h=h[a],o=1;if(c){var m=i.nodeName;do h.nodeName==m&&(this[j][this.getUID(h)]=o++);while(h=h[b])}else{do 1==h.nodeType&&(this[j][this.getUID(h)]=o++);while(h=h[b])}}f=f||"n";o=this.cacheNTH[f]||this.parseNTHArgument(f);if(!o)return!1;h=o.a;o=
o.b;l=this[j][l];if(0==h)return o==l;if(0<h){if(l<o)return!1}else if(o<l)return!1;return 0==(l-o)%h}};a.pushArray=function(a,b,j,c,i,f){this.matchSelector(a,b,j,c,i,f)&&this.found.push(a)};a.pushUID=function(a,b,j,c,i,f){var h=this.getUID(a);!this.uniques[h]&&this.matchSelector(a,b,j,c,i,f)&&(this.uniques[h]=!0,this.found.push(a))};a.matchNode=function(a,b){if(this.isHTMLDocument&&this.nativeMatchesSelector)try{return this.nativeMatchesSelector.call(a,b.replace(/\[([^=]+)=\s*([^'"\]]+?)\s*\]/g,'[$1="$2"]'))}catch(j){}var c=
this.Slick.parse(b);if(!c)return!0;var i=c.expressions,f=0,h;for(h=0;currentExpression=i[h];h++)if(1==currentExpression.length){var l=currentExpression[0];if(this.matchSelector(a,this.isXMLDocument?l.tag:l.tag.toUpperCase(),l.id,l.classes,l.attributes,l.pseudos))return!0;f++}if(f==c.length)return!1;c=this.search(this.document,c);for(h=0;i=c[h++];)if(i===a)return!0;return!1};a.matchPseudo=function(a,b,j){var c="pseudo:"+b;if(this[c])return this[c](a,j);a=this.getAttribute(a,b);return j?j==a:!!a};a.matchSelector=
function(a,b,c,i,f,h){if(b){var l=this.isXMLDocument?a.nodeName:a.nodeName.toUpperCase();if("*"==b){if("@">l)return!1}else if(l!=b)return!1}if(c&&a.getAttribute("id")!=c)return!1;if(i)for(b=i.length;b--;)if(c=a.getAttribute("class")||a.className,!c||!i[b].regexp.test(c))return!1;if(f)for(b=f.length;b--;)if(i=f[b],i.operator?!i.test(this.getAttribute(a,i.key)):!this.hasAttribute(a,i.key))return!1;if(h)for(b=h.length;b--;)if(i=h[b],!this.matchPseudo(a,i.key,i.value))return!1;return!0};var h={" ":function(a,
b,c,i,f,h,l){var o;if(this.isHTMLDocument){if(c){o=this.document.getElementById(c);if(!o&&a.all||this.idGetsName&&o&&o.getAttributeNode("id").nodeValue!=c){l=a.all[c];if(!l)return;l[0]||(l=[l]);for(a=0;o=l[a++];){var m=o.getAttributeNode("id");if(m&&m.nodeValue==c){this.push(o,b,null,i,f,h);break}}return}if(o){if(this.document!==a&&!this.contains(a,o))return;this.push(o,b,null,i,f,h);return}if(this.contains(this.root,a))return}if(i&&a.getElementsByClassName&&!this.brokenGEBCN&&(l=a.getElementsByClassName(l.join(" ")))&&
l.length){for(a=0;o=l[a++];)this.push(o,b,c,null,f,h);return}}if((l=a.getElementsByTagName(b))&&l.length){this.brokenStarGEBTN||(b=null);for(a=0;o=l[a++];)this.push(o,b,c,i,f,h)}},">":function(a,b,c,i,f,h){if(a=a.firstChild){do 1==a.nodeType&&this.push(a,b,c,i,f,h);while(a=a.nextSibling)}},"+":function(a,b,c,i,f,h){for(;a=a.nextSibling;)if(1==a.nodeType){this.push(a,b,c,i,f,h);break}},"^":function(a,b,c,i,f,h){if(a=a.firstChild)if(1==a.nodeType)this.push(a,b,c,i,f,h);else this["combinator:+"](a,b,
c,i,f,h)},"~":function(a,b,c,i,f,h){for(;a=a.nextSibling;)if(1==a.nodeType){var l=this.getUID(a);if(this.bitUniques[l])break;this.bitUniques[l]=!0;this.push(a,b,c,i,f,h)}},"++":function(a,b,c,i,f,h){this["combinator:+"](a,b,c,i,f,h);this["combinator:!+"](a,b,c,i,f,h)},"~~":function(a,b,c,i,f,h){this["combinator:~"](a,b,c,i,f,h);this["combinator:!~"](a,b,c,i,f,h)},"!":function(a,b,c,i,f,h){for(;a=a.parentNode;)a!==this.document&&this.push(a,b,c,i,f,h)},"!>":function(a,b,c,i,f,h){a=a.parentNode;a!==
this.document&&this.push(a,b,c,i,f,h)},"!+":function(a,b,c,i,f,h){for(;a=a.previousSibling;)if(1==a.nodeType){this.push(a,b,c,i,f,h);break}},"!^":function(a,b,c,i,f,h){if(a=a.lastChild)if(1==a.nodeType)this.push(a,b,c,i,f,h);else this["combinator:!+"](a,b,c,i,f,h)},"!~":function(a,b,c,i,f,h){for(;a=a.previousSibling;)if(1==a.nodeType){var l=this.getUID(a);if(this.bitUniques[l])break;this.bitUniques[l]=!0;this.push(a,b,c,i,f,h)}}},i;for(i in h)a["combinator:"+i]=h[i];var h={empty:function(a){var b=
a.firstChild;return!(b&&1==b.nodeType)&&!(a.innerText||a.textContent||"").length},not:function(a,b){return!this.matchNode(a,b)},contains:function(a,b){return-1<(a.innerText||a.textContent||"").indexOf(b)},"first-child":function(a){for(;a=a.previousSibling;)if(1==a.nodeType)return!1;return!0},"last-child":function(a){for(;a=a.nextSibling;)if(1==a.nodeType)return!1;return!0},"only-child":function(a){for(var b=a;b=b.previousSibling;)if(1==b.nodeType)return!1;for(;a=a.nextSibling;)if(1==a.nodeType)return!1;
return!0},"nth-child":a.createNTHPseudo("firstChild","nextSibling","posNTH"),"nth-last-child":a.createNTHPseudo("lastChild","previousSibling","posNTHLast"),"nth-of-type":a.createNTHPseudo("firstChild","nextSibling","posNTHType",!0),"nth-last-of-type":a.createNTHPseudo("lastChild","previousSibling","posNTHTypeLast",!0),index:function(a,b){return this["pseudo:nth-child"](a,""+b+1)},even:function(a){return this["pseudo:nth-child"](a,"2n")},odd:function(a){return this["pseudo:nth-child"](a,"2n+1")},"first-of-type":function(a){for(var b=
a.nodeName;a=a.previousSibling;)if(a.nodeName==b)return!1;return!0},"last-of-type":function(a){for(var b=a.nodeName;a=a.nextSibling;)if(a.nodeName==b)return!1;return!0},"only-of-type":function(a){for(var b=a,c=a.nodeName;b=b.previousSibling;)if(b.nodeName==c)return!1;for(;a=a.nextSibling;)if(a.nodeName==c)return!1;return!0},enabled:function(a){return!a.disabled},disabled:function(a){return a.disabled},checked:function(a){return a.checked||a.selected},focus:function(a){return this.isHTMLDocument&&
this.document.activeElement===a&&(a.href||a.type||this.hasAttribute(a,"tabindex"))},root:function(a){return a===this.root},selected:function(a){return a.selected}},p;for(p in h)a["pseudo:"+p]=h[p];p=a.attributeGetters={"class":function(){return this.getAttribute("class")||this.className},"for":function(){return"htmlFor"in this?this.htmlFor:this.getAttribute("for")},href:function(){return"href"in this?this.getAttribute("href",2):this.getAttribute("href")},style:function(){return this.style?this.style.cssText:
this.getAttribute("style")},tabindex:function(){var a=this.getAttributeNode("tabindex");return a&&a.specified?a.nodeValue:null},type:function(){return this.getAttribute("type")},maxlength:function(){var a=this.getAttributeNode("maxLength");return a&&a.specified?a.nodeValue:null}};p.MAXLENGTH=p.maxLength=p.maxlength;var o=a.Slick=this.Slick||{};o.version="1.1.6";o.search=function(b,c,i){return a.search(b,c,i)};o.find=function(b,c){return a.search(b,c,null,!0)};o.contains=function(b,c){a.setDocument(b);
return a.contains(b,c)};o.getAttribute=function(b,c){a.setDocument(b);return a.getAttribute(b,c)};o.hasAttribute=function(b,c){a.setDocument(b);return a.hasAttribute(b,c)};o.match=function(b,c){if(!b||!c)return!1;if(!c||c===b)return!0;a.setDocument(b);return a.matchNode(b,c)};o.defineAttributeGetter=function(b,c){a.attributeGetters[b]=c;return this};o.lookupAttributeGetter=function(b){return a.attributeGetters[b]};o.definePseudo=function(b,c){a["pseudo:"+b]=function(a,b){return c.call(a,b)};return this};
o.lookupPseudo=function(b){var c=a["pseudo:"+b];return c?function(a){return c.call(this,a)}:null};o.override=function(b,c){a.override(b,c);return this};o.isXML=a.isXML;o.uidOf=function(b){return a.getUIDHTML(b)};if(!this.Slick)this.Slick=o}).apply("undefined"!=typeof exports?exports:this);
(function(a){SJS.extend(SJS,a);SJS.each(a,function(a){SJS.implement(window.Element,a,function(){return SJS[a].apply(this,[arguments[0],this].concat(SJS.without(arguments,0)))});SJS.implement(window.Elements,a,function(){return SJS[a].apply(this,[arguments[0],this].concat(SJS.without(arguments,0)))})})})({byId:function(a,b){return SJS.find({Slick:1,expressions:[[{combinator:" ",tag:"*",id:a}]]},b,(b?b.queryOf()+" ":"")+"#"+a)},byClass:function(a,b){return SJS.search({Slick:1,expressions:[[{combinator:" ",
tag:"*",classList:[a],classes:[{regexp:RegExp("(^|\\s)"+Slick.escapeRegExp(a)+"(\\s|$)")}]}]]},b,(b?b.queryOf()+" ":"")+"."+a)},search:function(a,b,f){return new window.Elements(f||a||"*",window.Slick.search(b||window.document,a||"*"))},searchEach:function(a,b,f){if(!b)return SJS.search.apply(arguments);var c=new window.Elements(f||a||"*");SJS.each(b,function(b){Slick.search(b,a||"*",c)});return c},find:function(a,b,f){a=g(window.Slick.find(b||window.document,a||"*"));if(!a)return a;a.query=f;return a},match:function(a,
b){if(SJS.isElements(b)){var f;SJS.each(b,function(b){return f=window.Slick.match(b,a)});return f||!1}return window.Slick.match(b,a)},closest:function(a,b){return SJS.match(a,b)?b:SJS[SJS.isElements(b)?"searchEach":"find"]("! "+(a||"*"),b,b.queryOf()+" ! "+(a||"*"))}});
SJS.extend(SJS,{ajax:function(a,b,f,c,l){if(SJS.isString(a))return SJS.ajax({url:a,data:b,success:f,type:c,method:l});var m;if(window.XMLHttpRequest)m=new window.XMLHttpRequest;else if(window.ActiveXObject)try{m=new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(h){try{m=new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(i){return!1}}else return!1;a=SJS.merge({data:"",method:a.data?"post":"get",type:"plain",thisObj:m},a);b="get"===a.method;m.onreadystatechange=function(){if(4==m.readyState){var b=
200==m.status,c=m.responseText;"json"==a.type&&(c=c.jsonDecode());SJS.each([b?"success":"fail","callback"],function(b){a[b]&&a[b].call(a.thisObj,c)})}};if(SJS.isNull(a.url))throw"Ajax url is undefined.";m.open(a.method,a.url+(b?"?"+SJS.serialize(a.data):""));m.setRequestHeader("X-Requested-With","XMLHttpRequest");b||m.setRequestHeader("Content-Type","application/x-www-form-urlencoded");m.send(b?null:SJS.serialize(a.data));return this}});
SJS.implement(window.Element,{ajax:function(a,b,f,c,l){return SJS.ajax(SJS.isString(a)?{url:a,data:b,success:f,type:c,method:l,thisObj:this}:SJS.merge({thisObj:this},a))},pull:function(a,b,f,c,l){return SJS.ajax(SJS.isString(a)?{url:a,data:b,success:function(a){this.html(a);f.call(this,a)},type:c,method:l,thisObj:this}:SJS.merge({success:function(b){this.html(b);a.success.call(this,b)},thisObj:this},SJS.without(a,"success")))}});
SJS.each(["get","post"],function(a){SJS.extend(SJS,a,function(b,f,c,l){return SJS.ajax(SJS.isString(b)?{url:b,data:f,success:c,type:l,method:a}:SJS.merge({method:a},b))});SJS.implement(window.Element,a,function(b,f,c,l){return SJS.ajax(SJS.isString(b)?{url:b,data:f,success:c,type:l,method:a,thisObj:this}:SJS.merge({method:a,thisObj:this},b))})});window.Elements.implementEach("ajax","get","post");window.Elements.implementSame("pull");
(function(a){var b=function(a){var b="show"+a,c="hide"+a;return function(){var a=arguments;return this.chain(function(){this["none"===this.css("display")?b:c].apply(this,a)})}},b={animate:function(b,c,f,e,k){if(a.isArray(b))return a.each(b,function(a){this.animate(a,c,f,e,k)},this),this;if(a.isArray(c))return this.animate({prop:b,from:c[0],to:c[1],duration:f,easing:e,callback:k});if(a.isString(b))return this.animate({prop:b,to:c,duration:a.isNumber(f)||a.isFunction(f)?f:null,easing:a.isString(e)?
e:null,callback:a.isFunction(f)?f:a.isFunction(e)?e:k});a.each(arguments,function(b){var b=a.merge({type:"unit",duration:400,easing:"swing",start:new Date,element:this},a.Settings.animationDefaults,b),c;switch(b.duration){case "fast":b.duration=200;break;case "normal":b.duration=400;break;case "slow":b.duration=600}if(a.hasOwn(a.animationTypes,b.prop))b.type=b.prop,b.customType=!0;else if(b.rgb||(b.rgb=a.parseColor(b.to))!==b.to)b.type="color";if(a.isNull(b.from))b.from=b.customType&&a.animationTypes[b.prop].get?
a.animationTypes[b.prop].get(this):this.computedStyle(b.prop,!0);else if("color"===b.type)b.from=a.parseColor(b.from);if("color"===b.type&&!a.isArray(b.from))b.from=Array.prototype.slice.call(b.rgb),b.from[3]=0;if("auto"==b.to){this.css(b.prop,"");if("height"==b.prop&&0===parseFloat(this.css("width")||1))c=!0,this.css("width","");b.to=this.computedStyle(b.prop);c&&this.css("width",0);this.css(b.prop,b.from)}if("height"==b.prop||"width"==b.prop)b.origOverflow=this.css("overflow"),this.css("overflow",
"hidden");"opacity"==b.prop?(b.type="opacity",b.from=!b.from&&0!==b.from?1:parseFloat(b.from),this.style.zoom=1):"color"==b.type?b.isRGBa=4==b.rgb.length:(b.toUnit=(b.to.toString().match(/[\d\.]+([a-z]+|%)/)||[0,"px"])[1],b.to=parseFloat(b.to),b.from?b.fromUnit=(b.from.toString().match(/[\d\.]+([a-z]+|%)/)||[0,"px"])[1]:b.from=0,b.from="%"==b.toUnit?100:parseFloat(b.from)||0);l.push(b);m||(m=!0,setTimeout(h),animationsInterval=setInterval(h,a.Settings.animationInterval))},this);return this},animateQ:function(){var a=
arguments;return this.chain(function(){this.animate.apply(this,a)})},continuous:function(){var b=arguments;if(a.isArray(b[0])){var c=0,f=this,e=function(){c==b.length&&(c=0);f.chain.apply(f,b[c]);f.chain(e);c++};e()}else this.continuous(arguments)},visible:function(){return"none"!==this.css("display")&&"hidden"!==this.css("visibility")},hide:function(){return this.chain("css","display","none")},show:function(){return this.chain("css","display","")},toggle:b(),hideSmooth:function(a,b,c){return this.chain(function(){var e=
["width","height","opacity","margin"],f=this.css(e);this.animate(e,0,a,b).chain("css","display","none").chain("css",f).chain(c)})},showSmooth:function(a,b,c){return this.chain(function(){if("none"!==this.css("display"))return this;this.chain(function(){this.css("display","").animate(["width","height"],[0,"auto"],a,b).animate("opacity",[0,1],a,b).animate("margin",[0,this.css("margin")],a,b).chain(c)})})},toggleSmooth:b("Smooth"),hideSlide:function(a,b,c){return this.chain(function(){var e=["height",
"opacity","marginTop","marginBottom"],f=this.css(e);this.animate(e,0,a,b).chain("css","display","none").chain("css",f).chain(c)})},showSlide:function(a,b,c){return this.chain(function(){return"none"!==this.css("display")?void 0:this.css("display","").animate("height",[0,"auto"],a,b).animate("opacity",[0,1],a,b).animate(["marginTop","marginBottom"],[0,this.css("margin")],a,b).chain(c)})},toggleSlide:b("Slide"),hideFade:function(a,b,c){return this.chain(function(){this.animate("opacity",0,a,b).chain("css",
"display","none").chain(c)})},showFade:function(a,b,c){return this.chain(function(){"none"===this.css("display")&&this.css("display","").animate("opacity",[0,1],a,b).chain(c)})},toggleFade:b("Fade"),highlight:function(a,b,c){return this.chain(function(){this.animate("background","#fea-1",a,b).animateQ("background",["#fea-1","#fea-0"],a,b).chain(c)})},chain:function(b,c,f){var e=this,h=function(){b.apply(e,f)},j;a.isString(b)&&(b=e[b]);if(a.isFunction(b)){if(!(j=a.isArray(f)))f=a.without(arguments,
0);if(!j||!c||!a.isString(c))c="default";this.animationsRunning()?a.hasOwn(this,"fnChains")?a.hasOwn(this.fnChains,c)?this.fnChains[c].push(h):this.fnChains[c]=[h]:this.fnChains=a.toObject(c,[h]):setTimeout(h);return this}},callChain:function(b){a.isString(b)||(b="default");if(a.hasOwn(this,"fnChains")&&a.hasOwn(this.fnChains,b))for(;!this.animationsRunning()&&this.fnChains[b].length;)this.fnChains[b][0](),this.fnChains[b]=a.without(this.fnChains[b],0);return this},clearChain:function(b){a.isString(b)||
(b="default");a.hasOwn(this,"fnChains")&&a.hasOwn(this.fnChains,b)&&(this.fnChains[b]=[])},animationsRunning:function(){var b=!1;a.each(l,function(a){if(a.element==this)return b=!0,!1},this);return b}};a.extend(a,{animationTypes:{}});a.extend(a.Settings,{animationInterval:15,animationDefaults:{}});a.implement(window.Element,b);a.each(b,function(a){window.Elements.implementEach(a)});var f={linear:function(a){return a},swing:function(a){return-0.5*Math.cos(a*Math.PI)+0.5}},c={},l=[],m=!1,h=function(){l.length?
a.each(l,function(b,h){var m,e,k;b.duration?(m=new Date-b.start,m>=b.duration?e=1:(m=m.toFixed(2),c[b.easing]||(c[b.easing]={}),m/=b.duration,c[b.easing]?a.isNull(c[b.easing][m])?c[b.easing][m]=e=f[b.easing](m):e=c[b.easing][m]:(c[b.easing]={},c[b.easing][m]=e=f[b.easing](m)))):e=1;if(b.customType)m=e*(b.to-b.from)+b.from,a.animationTypes[b.prop].noRounding||(m=Math.round(m)),a.animationTypes[b.prop].set(b.element,m);else switch(b.type){case "unit":b.element.style[b.prop]=Math.round(e*(b.to-b.from)+
b.from)+b.toUnit;break;case "color":m=[];for(k=0;3>k;k++)m[k]=Math.round(e*(b.rgb[k]-b.from[k])+b.from[k]);b.isRGBa&&(isNaN(b.from[3])&&(b.from[3]=1),m[3]=(e*(b.rgb[3]-b.from[3])+b.from[3]).toFixed(2));try{b.element.style[b.prop]=b.isRGBa?"rgba("+m.join(",")+")":"rgb("+m.join(",")+")"}catch(j){if(b.isRGBa)m=a.rgb2hex(m,1),b.element.style.filter="progid:DXImageTransform.Microsoft.gradient(startColorstr="+m+", endColorstr="+m+")"}break;case "opacity":m=e*(b.to-b.from)+b.from,b.element.style.opacity=
m,b.element.style.filter="alpha(opacity="+(100*m).toFixed(2)+")"}if(1==e){if(!a.isNull(b.origOverflow)){var n=!1;a.each(l,function(b,c){c!=h&&!a.isNull(b.origOverflow)&&(n=!0)});n||b.element.css("overflow",b.origOverflow)}l=a.without(l,h);b.callback&&b.callback.call(b.element);b.element.callChain();return!1}}):(m=!1,clearInterval(animationsInterval))};a.each([["hideSmooth","smoothHide"],["showSmooth","smoothShow"],["toggleSmooth","smoothToggle"],["hideSlide","slideHide"],["showSlide","slideShow"],
["toggleSlide","slideToggle"],["hideSlide","slideUp"],["showSlide","slideDown"],["hideFade","fadeHide"],["showFade","fadeShow"],["toggleFade","fadeToggle"]],function(b){a.alias(b[0],b[1])})})(window.SJS);SJS.animationTypes.rotation={get:function(a){a=a.style.transform;return!a?0:(a=a.match(/^rotate\((\d+\)[a-z]+)$/))?parseInt(a[1]):0},set:function(a,b){var f="rotate("+b+"deg)";SJS.each(["transform","MozTransform","WebkitTransform","OTransform","msTransform"],function(b){a.style[b]=f})},noRounding:!0};
SJS.Class=function(a){var b={},f=function(a){var c={};SJS.each(b,function(b,f){c[b]=function(){return f.apply(a,arguments)}});return c},c=function(a){this.parent=f(this);SJS.extend(this,SJS.merge(c._defaultValues_,a));for(var a=0,b=c._inits_.length;a<b;a++)c._inits_[a].call(this)};c._inits_=[];c._defaultValues_={};SJS.each(a,function(a,f){switch(a){case "Init":SJS.isArray(f)?c._inits_=c._inits_.concat(f):c._inits_.push(f);break;case "Extends":c._inits_=c._inits_.concat(f._inits_);c.prototype=f.prototype;
SJS.extend(c._defaultValues_,f._defaultValues_,!0);b=SJS.merge({},f.prototype);break;case "Implements":SJS.each(SJS.toArray(f),function(a){c._inits_=c._inits_.concat(a._inits_);SJS.extend(c.prototype,a.prototype,!0);SJS.extend(c._defaultValues_,a._defaultValues_,!0)});break;default:SJS.isFunction(f)?c.prototype[a]=f:c._defaultValues_[a]=f}});return c};SJS.each(["text","checkbox","radio","button","submit"],function(a){window.Slick.definePseudo(a,function(){return Slick.match(this,"[type="+a+"]")})});
window.Slick.definePseudo("matches",function(a){return Slick.match(this,a)});
(function(a){a.implement(window.Element,{selection:function(b,f){if(a.isNull(b)){var c=0,l=0,m,h,i;if("number"==typeof this.selectionStart&&"number"==typeof this.selectionEnd)c=this.selectionStart,l=this.selectionEnd;else if((h=document.selection.createRange())&&h.parentElement()==this)i=this.value.length,m=this.value.replace(/\r\n/g,"\n"),l=this.createTextRange(),l.moveToBookmark(h.getBookmark()),h=this.createTextRange(),h.collapse(!1),-1<l.compareEndPoints("StartToEnd",h)?c=l=i:(c=-l.moveStart("character",
-i),c+=m.slice(0,c).split("\n").length-1,-1<l.compareEndPoints("EndToEnd",h)?l=i:(l=-l.moveEnd("character",-i),l+=m.slice(0,l).split("\n").length-1));i=l-c;return{start:c,end:l,length:i,text:this.value.substr(c,i)}}if(a.isPlainObject(b))f=b.length,b=b.start;"number"==typeof this.selectionStart&&"number"==typeof this.selectionEnd?(this.selectionStart=b,this.selectionEnd=b+(f||0)):this.createTextRange&&(c=this.createTextRange(),c.collapse(!0),c.moveStart("character",b),c.moveEnd("character",f),c.select());
return this},caretToStart:function(){return this.selection(0,0)},caretToEnd:function(){return this.selection(this.value.length)},selectFrom:function(a){return this.selection(a,this.value.length)},selectTo:function(a){return this.selection(0,a)}})})(window.SJS);var JSON;JSON||(JSON={});
(function(){function a(a){return 10>a?"0"+a:a}function b(a){l.lastIndex=0;return l.test(a)?'"'+a.replace(l,function(a){var b=i[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function f(a,c){var k,j,i,l,F=m,q,t=c[a];t&&"object"===typeof t&&"function"===typeof t.toJSON&&(t=t.toJSON(a));"function"===typeof p&&(t=p.call(c,a,t));switch(typeof t){case "string":return b(t);case "number":return isFinite(t)?""+t:"null";case "boolean":case "null":return""+
t;case "object":if(!t)return"null";m+=h;q=[];if("[object Array]"===Object.prototype.toString.apply(t)){l=t.length;for(k=0;k<l;k+=1)q[k]=f(k,t)||"null";i=0===q.length?"[]":m?"[\n"+m+q.join(",\n"+m)+"\n"+F+"]":"["+q.join(",")+"]";m=F;return i}if(p&&"object"===typeof p){l=p.length;for(k=0;k<l;k+=1)"string"===typeof p[k]&&(j=p[k],(i=f(j,t))&&q.push(b(j)+(m?": ":":")+i))}else for(j in t)Object.prototype.hasOwnProperty.call(t,j)&&(i=f(j,t))&&q.push(b(j)+(m?": ":":")+i);i=0===q.length?"{}":m?"{\n"+m+q.join(",\n"+
m)+"\n"+F+"}":"{"+q.join(",")+"}";m=F;return i}}if("function"!==typeof Date.prototype.toJSON)Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()};var c=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
l=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,m,h,i={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},p;if("function"!==typeof JSON.stringify)JSON.stringify=function(a,b,c){var i;h=m="";if("number"===typeof c)for(i=0;i<c;i+=1)h+=" ";else"string"===typeof c&&(h=c);if((p=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b.length))throw Error("JSON.stringify");return f("",
{"":a})};if("function"!==typeof JSON.parse)JSON.parse=function(a,b){function f(a,c){var h,i,j=a[c];if(j&&"object"===typeof j)for(h in j)Object.prototype.hasOwnProperty.call(j,h)&&(i=f(j,h),void 0!==i?j[h]=i:delete j[h]);return b.call(a,c,j)}var h,a=""+a;c.lastIndex=0;c.test(a)&&(a=a.replace(c,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return h=eval("("+a+")"),"function"===typeof b?f({"":h},""):h;throw new SyntaxError("JSON.parse");}})();
SJS.Absolute=new SJS.Class({element:"",container:window.document.documentElement,shadow:!0,position:"absolute",Init:function(){this.element=g(this.element)},pull:function(){if(this.shadow)this.shadowElement=document.createElement(this.element.tagName),this.shadowElement.css(this.element.css("margin,marginTop,marginRight,marginBottom,marginLeft,position,top,left".split(","))),this.element.after(this.shadowElement);this.update(this.element);this.element.css("position",this.position);this.container.append(this.element)},
update:function(a){if(!a)a=this.shadowElement;this.element.css({top:a.pageY,left:a.pageX})},put:function(){this.shadowElement.after(this.element);this.element.css(this.shadowElement.css(["position","top","left"]));this.shadowElement.remove()}});
