/* SJS v0.1.8.5 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,j,k){if(b&&b.charAt){if(k||f[b]===a||null===f[b])f[b]=j}else for(var n in b)if(b.hasOwnProperty(n)&&(j||f[n]===a||null===f[n]))f[n]=b[n];return f};b.extend(b,{Version:"0.1.8.5",Features:{},Settings:{},implement:function(a,c,j){return b.extend(a.prototype,c,j)},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 j;b.isArray(a)?(j=[],b.isFunction(c)?b.each(a,function(a){c(a)&&j.push(a)}):b.isArray(c)?b.each(a,function(a,b){c.contains(b)&&j.push(a)}):b.each(a,function(a){a&&!j.contains(a)&&
j.push(a)})):(j={},b.isFunction(c)?b.each(a,function(a,b){c(a,b)&&(j[a]=b)}):b.isArray(c)?b.each(a,function(a,b){c.contains(a)&&(j[a]=b)}):b.each(a,function(a,b){b&&(j[a]=b)}));return j},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,j){var k=!0,n,m;if(b.isArray(a))for(n=0,m=a.length;n<m&&!1!==k;n++)k=c.call(j||a,a[n],n,a);else for(n in a){if(!1===
k)break;a.hasOwnProperty(n)&&(k=c.call(j||a,n,a[n],a))}return a},times:function(a,c,j){var k=0;if(b.isFunction(c))for(;k<a;k++)j();else if(j in c)for(;k<a;k++)c[j]()},without:function(a,c){if(b.isElements(a)){var j=Array.prototype.slice.call(a),j=b.without(j,c);return j=new window.Elements(a.query,j)}if(b.isArray(a)){var k=[];b.each(a,function(a,b){b!==c&&k.push(a)});return k}delete a[c];return a},merge:function(f,c,j){var k=b.isNull(f)?{}:f,n=arguments;if(b.isString(c)&&j!==a&&null!==j)k[c]=j;else for(var m=
1,l=1;m<arguments.length;m++)for(l in n[m])n[m].hasOwnProperty(l)&&n[m][l]!==a&&null!==n[m][l]&&(k[l]=n[m][l]);return k},rgb2hex:function(a,b){var j="#",k=function(a){a=a.toString(16);return 1==a.length?"0"+a:a},n=0;for(b&&(j+=k(Math.round(255*a[3])));3>n;n++)j+=k(a[n]);return j},serialize:function(a){if(b.isString(a))return a;var c="",j=0;b.each(a,function(a,b){j++&&(c+="&");c+=a+"="+escape(b)});return c}});b.implement(window.Array,{contains:function(a){for(var b=!1,j=0,k=this.length;j<k;j++)if(this[j]==
a){b=!0;break}return b},containsKey:function(a){return a<this.length}});b.implement(window.String,{substringAfter:function(a,c){return!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][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)]},jsonEncode:function(){},jsonDecode:function(){return eval("("+this+")")},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={},j={},k=a.document,n=k.documentElement,m=function(){return{items:[],calls:[],parms:[],wraps:[]}},l="activeElement"in k?function(){try{return k.activeElement=null,null===k.activeElement}catch(a){return!1}}:!0,s=function(){var e=(a.open+"").replace(/open/g,"");return function(a,b){var i=a?a[b]:!1;return!(!i||!("string"!=typeof i&&e===(i+"").replace(RegExp(b,"g"),"")))}}(),e=n.addEventListener&&n.removeEventListener?!0:!1,i=n.attachEvent&&n.detachEvent?!0:!1,h=
"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},o=function(a,e,b){e||(e=h(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},p=function(a,e,b,i,h){var c,o,m=!1;if(a[b]&&a[b].items)for(c=0,o=a[b].items.length;o>c;c++)if(a[b].items[c]===e&&a[b].calls[c]===i&&a[b].parms[c]===h){m=c;break}return m},t=function(a,e,b){var i,h,o,m=[];e||(e="*");a||(a="*");b||(b=c);for(i in b)if(-1<e.indexOf(i)||"*"==e)for(h=0,o=b[i].items.length;h<o;h++)(b[i].items[h]===a||"*"==a)&&m.push(b[i].calls[h]);
return m},A=function(a){var e,b,i=!0,h,o,m,f;e=a.type;var j;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;h=c[e].items.slice();o=c[e].calls.slice();m=c[e].parms.slice();for(e=0,b=h.length;b>e;e++){j=!1;if(h[e]===this)switch(f){case 1:if(!a.propagated||!0===m[e])j=!0;break;case 3:!1===m[e]&&(j=!0);break;case 2:if(!a.propagated||!0===m[e])j=!0;break;default:j=!0}if(j&&!1===(i=o[e].call(this,
a)))break}}return i},q=function(a){var e,b,i,h,c,m=!0;e=a.type;if(f[e]&&f[e].items){i=f[e].items.slice();h=f[e].calls.slice();f[e].parms.slice();e=0;b=i.length;a:for(;b>e;e++)for(c=a.target;c&&c!=this;){if(NW.Dom.match(c,i[e])&&!1===h[e].call(c,a)){m=!1;break a}c=c.parentNode}}return m},w=function(a,e,b,i,h){a[b]&&a[b].items||(a[b]=new m);a[b].items.push(e);a[b].calls.push(i);a[b].parms.push(h)},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,i){a.addEventListener(e,b,i||!1)}:i?function(a,e,i,h){var c=b[e].wraps.push(function(e){return i.call(a,o(a,e,h))});a.attachEvent("on"+e,b[e].wraps[c-1])}:function(a,e,b,i){j["on"+e]=a["on"+e]||new Function;a["on"+e]=function(a){var h;a||(a=o(this,a,i));h=b.call(this,a);j["on"+e].call(this,a);return h}},I=e?function(a,e,b,i){a.removeEventListener(e,b,i||!1)}:i?function(a,e,i,h,c){a.detachEvent("on"+e,i);b[e].wraps.splice(c,1)}:function(a,e){a["on"+e]=j["on"+e];delete j["on"+e]},r=function(a,e,
i,h){var c,m,o;if("string"==typeof e){o=e.split(" ");for(c=0,m=o.length;c<m;c++)e=p(b,a,o[c],i,h),!1===e&&(w(b,a,o[c],i,h),y(a,o[c],i,h))}else for(c in e)r(a,c,e[c],h);return this},x=function(a,e,i,h){var c,m,o;if("string"==typeof e){o=e.split(" ");for(c=0,m=o.length;c<m;c++)e=p(b,a,o[c],i,h),!1!==e&&(I(a,o[c],b[o[c]].wraps[e],h,e),u(b,o[c],e))}else for(c in e)x(a,c,e[c],h);return this},C=function(a,e,b,i){var h,o,m;if("string"==typeof e){m=e.split(" ");for(h=0,o=m.length;h<o;h++)e=p(c,a,m[h],b,i),
!1===e&&(w(c,a,m[h],b,i),1===t(a,m[h],c).length&&r(a,m[h],A,i))}else for(h in e)C(a,h,e[h],i);return this},D=function(a,e,b,i){var h,m,o;if("string"==typeof e){o=e.split(" ");for(h=0,m=o.length;h<m;h++)e=p(c,a,o[h],b,i),!1!==e&&(1===t(a,o[h],c).length&&x(a,o[h],A,i),u(c,o[h],e))}else for(h in e)D(a,h,e[h],i);return this},v=function(a,e,b,i){var h,c,o;if("string"==typeof a){o=e.split(" ");i=i||n;for(h=0,c=o.length;h<c;h++)e=p(f,a,o[h],b,i),!1===e&&(w(f,a,o[h],b,i),1===f[o[h]].items.length&&C(i,o[h],
q,!0))}else for(h in a)if("string"==typeof h)for(c in a[h])v(h,c,a[h][c]);return this},B=function(a,e,b,i){var h,c,o;if("string"==typeof e){o=e.split(" ");i=i||n;for(h=0,c=o.length;h<c;h++)e=p(f,a,o[h],b,i),!1!==e&&(1===f[o[h]].items.length&&D(i,o[h],q,!0),u(f,o[h],e))}else for(h in a)if("string"==typeof h)for(c in a[h])B(h,c,a[h][c]);return this},e=n.dispatchEvent?function(a,e){var b,i=a.ownerDocument||a.document||a,c=h(i);if(/mouse|click/.test(e))try{b=i.createEvent("MouseEvents"),b.initMouseEvent(e,
!0,!0,c,0,0,0,0,0,!1,!1,!1,!1,0,null)}catch(o){b=i.createEvent("HTMLEvents"),b.initEvent(e,!0,!0)}else/key(down|press|out)/.test(e)?(b=i.createEvent("KeyEvents"),b.initKeyEvent(e,!0,!0,c,!1,!1,!1,!1,0,0)):(b=i.createEvent("HTMLEvents"),b.initEvent(e,!0,!0));return a.dispatchEvent(b)}:n.fireEvent?function(a,e,b){var i;i=(a.ownerDocument||a.document||a).createEventObject();i.type=e;i.target=a;i.eventPhase=0;i.currentTarget=a;i.cancelBubble=!!b;i.returnValue=void 0;return a.fireEvent("on"+e,o(a,i,b))}:
function(){},z={blur:"blur",focus:"focus",beforeactivate:"focus",beforedeactivate:"blur"},E={blur:1,focus:1,reset:1,submit:1,change:1},K=k.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&&s(b,a)&&b[a]();return e},J=function(a,e,b){var i,h=!0;i=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==i.nodeType;)c.push(i),i=i.parentNode;b&&c.reverse();for(i=0,e=c.length;e>i;i++)if(a.currentTarget=c[i],a.eventPhase=b?1:3,!1===A.call(c[i],a)||!1===a.returnValue){h=!1;break}delete a.propagated;return h},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!=k.activeElement&&!l&&1==e.nodeType)k.activeElement=
e,k.focusElement=null;if(b){if(e!=k.focusElement&&!l)k.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;r(e,b,L,!1)}},i=function(a){if(!a.forcedPropagation)a.forcedPropagation=!0,r(h(a),"unload",function(e){O(a);x(this,"unload",arguments.callee,!1)},!1),r(a,"keydown mousedown",N,!0),r(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 m,Q=function(a,e,b){function i(a){h||(h=!0,e.call(b,a))}var h=!1,c=0,o=a.document,m=o.documentElement;if(o.addEventListener){var j=function(a){o.removeEventListener(a.type,j,!1);i(a)};o.addEventListener("DOMContentLoaded",j,!1);a.addEventListener("load",j,!1)}else if(o.attachEvent){var f=function(){function a(){try{if(m.doScroll("left"),c=m.outerHTML.length,1.03*c<1*d.fileSize)return!h&&setTimeout(a,50)}catch(e){return!h&&setTimeout(a,50)}i({type:"poll"});
return h}o.detachEvent("onreadystatechange",f);a()};o.attachEvent("onreadystatechange",f);var G=function(a){"complete"==o.readyState&&(o.detachEvent("onreadystatechange",G),i(a))};o.attachEvent("onreadystatechange",G);o.attachEvent("load",G)}else{var p=a.onload;a.onload=function(e){i(e||a.event);"function"==typeof p&&p(e||a.event)}}};if(!l)k.activeElement=n;k.forcedPropagation||i(k);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===p(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:r,removeHandler:x,appendListener:C,removeListener:D,appendDelegate:v,removeDelegate:B,enablePropagation:i,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={};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,j;f<c;f++)for(j in this[f]=b[f],window.Element.prototype)this[f][j]=window.Element.prototype[j];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)}});
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,m,j){window.Element.prototype.match.call(this,a)&&c.call(this,b,this,j)})});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){return"sjs-uniqclass-"===(b=a.substr(0,14))}).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.query||(this.id?"#"+this.id:this.nodeName.toLowerCase()))+" "+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(){this.parent().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.e("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},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._("!+ *")[0]},next:function(){return this._("+ *")[0]}});
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");SJS.alias("_","getAll");SJS.implement(window.Element,"bind",function(a,b){var f=this,c=function(a){a||(a=this);b.call(a.target,a,f,a.type)};switch(a){case "ready":NW.Event.contentLoaded(this,c,this);break;case "change":case "dblclick":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,h,o,k,l,n,u,y,I,r,x,C,D,v,B){if(e||-1===f)if(b.expressions[++f]=[],c=-1,e)return"";if(h||o||-1===c){h=h||" ";a=b.expressions[f];if(j&&a[c])a[c].reverseCombinator=s(h);a[++c]={combinator:h,tag:"*"}}h=b.expressions[f][c];if(k)h.tag=k.replace(m,"");else if(l)h.id=l.replace(m,"");else if(n){n=n.replace(m,"");if(!h.classList)h.classList=[];if(!h.classes)h.classes=[];h.classList.push(n);h.classes.push({value:n,regexp:RegExp("(^|\\s)"+i(n)+"(\\s|$)")})}else if(C){B=(B=B||v)?B.replace(m,
""):null;if(!h.pseudos)h.pseudos=[];h.pseudos.push({key:C.replace(m,""),value:B,type:1==x.length?"class":"element"})}else if(u){var u=u.replace(m,""),r=(r||"").replace(m,""),z,E;switch(y){case "^=":E=RegExp("^"+i(r));break;case "$=":E=RegExp(i(r)+"$");break;case "~=":E=RegExp("(^|\\s)"+i(r)+"(\\s|$)");break;case "|=":E=RegExp("^"+i(r)+"(-|$)");break;case "=":z=function(a){return r==a};break;case "*=":z=function(a){return a&&-1<a.indexOf(r)};break;case "!=":z=function(a){return r!=a};break;default:z=
function(a){return!!a}}""==r&&/^[*$^]=$/.test(y)&&(z=function(){return!1});z||(z=function(a){return a&&E.test(a)});if(!h.attributes)h.attributes=[];h.attributes.push({key:u,operator:y,value:r,test:z})}return""}var b,f,c,j,k={},n={},m=/\\/g,l=function(i,c){if(null==i)return null;if(!0===i.Slick)return i;var i=(""+i).replace(/^\s+|\s+$/g,""),o=(j=!!c)?n:k;if(o[i])return o[i];b={Slick:!0,expressions:[],raw:i,reverse:function(){return l(this.raw,!0)}};for(f=-1;i!=(i=i.replace(h,a)););b.length=b.expressions.length;
return o[b.raw]=j?e(b):b},s=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 i=e[b],h={parts:[],tag:"*",combinator:s(i[0].combinator)},c=0;c<i.length;c++){var o=i[c];if(!o.reverseCombinator)o.reverseCombinator=" ";o.combinator=o.reverseCombinator;delete o.reverseCombinator}i.reverse().push(h)}return a},i=function(a){return a.replace(/[-[\]{}()*+?.\\^$|,#\s]/g,function(a){return"\\"+a})},h=RegExp("^(?:\\s*(,)\\s*|\\s*(<combinator>+)\\s*|(\\s+)|(<unicode>+|\\*)|\\#(<unicode>+)|\\.(<unicode>+)|\\[\\s*(<unicode1>+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:([\"']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(<unicode>+)(?:\\((?:(?:([\"'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)".replace(/<combinator>/,
"["+i(">+~`!@$%^&={}\\;</")+"]").replace(/<unicode>/g,"(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(/<unicode1>/g,"(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])")),o=this.Slick||{};o.parse=function(a){return l(a)};o.escapeRegExp=i;if(!this.Slick)this.Slick=o}).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 i=a.nodeType;if(9!=i)if(i)a=a.ownerDocument;else if(a.navigator)a=a.document;else return;if(this.document!==a){this.document=a;var i=a.documentElement,h=this.getUIDXML(i),c=b[h],m;if(!c){c=b[h]={};c.root=i;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 j,f,k,s,n,l=a.createElement("div"),u=a.body||a.getElementsByTagName("body")[0]||i;u.appendChild(l);try{l.innerHTML='<a id="slick_uniqueid"></a>',c.isHTMLDocument=!!a.getElementById("slick_uniqueid")}catch(y){}if(c.isHTMLDocument){l.style.display="none";l.appendChild(a.createComment(""));h=1<l.getElementsByTagName("*").length;
try{l.innerHTML="foo</foo>",j=(n=l.getElementsByTagName("*"))&&!!n.length&&"/"==n[0].nodeName.charAt(0)}catch(I){}c.brokenStarGEBTN=h||j;try{l.innerHTML='<a name="slick_uniqueid"></a><b id="slick_uniqueid"></b>',c.idGetsName=a.getElementById("slick_uniqueid")===l.firstChild}catch(r){}if(l.getElementsByClassName){try{l.innerHTML='<a class="f"></a><a class="b"></a>',l.getElementsByClassName("b"),l.firstChild.className="b",k=2!=l.getElementsByClassName("b").length}catch(x){}try{l.innerHTML='<a class="a"></a><a class="f b a"></a>',
f=2!=l.getElementsByClassName("a").length}catch(C){}c.brokenGEBCN=k||f}if(l.querySelectorAll){try{l.innerHTML="foo</foo>",n=l.querySelectorAll("*"),c.starSelectsClosedQSA=n&&!!n.length&&"/"==n[0].nodeName.charAt(0)}catch(D){}try{l.innerHTML='<a class="MiX"></a>',c.brokenMixedCaseQSA=!l.querySelectorAll(".MiX").length}catch(v){}try{l.innerHTML='<select><option selected="selected">a</option></select>',c.brokenCheckedQSA=0==l.querySelectorAll(":checked").length}catch(B){}try{l.innerHTML='<a class=""></a>',
c.brokenEmptyAttributeQSA=0!=l.querySelectorAll('[class*=""]').length}catch(z){}}try{l.innerHTML='<form action="s"><input id="action"/></form>',s="s"!=l.firstChild.getAttribute("action")}catch(E){}c.nativeMatchesSelector=i.matchesSelector||i.mozMatchesSelector||i.webkitMatchesSelector;if(c.nativeMatchesSelector)try{c.nativeMatchesSelector.call(i,":slick"),c.nativeMatchesSelector=null}catch(K){}}try{i.slick_expando=1,delete i.slick_expando,c.getUID=this.getUIDHTML}catch(L){c.getUID=this.getUIDXML}u.removeChild(l);
l=n=u=null;c.getAttribute=c.isHTMLDocument&&s?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=i&&this.isNativeCode(i.hasAttribute)?function(a,e){return a.hasAttribute(e)}:function(a,e){a=a.getAttributeNode(e);return!(!a||!a.specified&&!a.nodeValue)};c.contains=i&&this.isNativeCode(i.contains)?function(a,e){return a.contains(e)}:i&&i.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=i.compareDocumentPosition?function(a,e){return!a.compareDocumentPosition||!e.compareDocumentPosition?0:a.compareDocumentPosition(e)&4?-1:a===e?0:1}:"sourceIndex"in i?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(),
i=e.ownerDocument.createRange();b.setStart(a,0);b.setEnd(a,0);i.setStart(e,0);i.setEnd(e,0);return b.compareBoundaryPoints(Range.START_TO_END,i)}:null;i=null}for(m in c)this[m]=c[m]}};var c=/^([#.]?)((?:[\w-]+|\*))$/,j=/\[.+[*$^]=(?:""|'')?\]/,k={};a.search=function(a,b,h,m){var f=this.found=m?null:h||[];if(a)if(a.navigator)a=a.document;else{if(!a.nodeType)return f}else return f;var l,p,n=this.uniques={},h=!(!h||!h.length),A=9==a.nodeType;this.document!==(A?a:a.ownerDocument)&&this.setDocument(a);
if(h)for(p=f.length;p--;)n[this.getUID(f[p])]=!0;if("string"==typeof b){var q=b.match(c);a:if(q){p=q[1];var w=q[2];if(p)if("#"==p){if(!this.isHTMLDocument||!A)break a;q=a.getElementById(w);if(!q)return f;if(this.idGetsName&&q.getAttributeNode("id").nodeValue!=w)break a;if(m)return q||null;(!h||!n[this.getUID(q)])&&f.push(q)}else{if("."==p){if(!this.isHTMLDocument||(!a.getElementsByClassName||this.brokenGEBCN)&&a.querySelectorAll)break a;if(a.getElementsByClassName&&!this.brokenGEBCN){l=a.getElementsByClassName(w);
if(m)return l[0]||null;for(p=0;q=l[p++];)(!h||!n[this.getUID(q)])&&f.push(q)}else{var u=RegExp("(^|\\s)"+s.escapeRegExp(w)+"(\\s|$)");l=a.getElementsByTagName("*");for(p=0;q=l[p++];)if((className=q.className)&&u.test(className)){if(m)return q;(!h||!n[this.getUID(q)])&&f.push(q)}}}}else{if("*"==w&&this.brokenStarGEBTN)break a;l=a.getElementsByTagName(w);if(m)return l[0]||null;for(p=0;q=l[p++];)(!h||!n[this.getUID(q)])&&f.push(q)}h&&this.sort(f);return m?null:f}a:if(a.querySelectorAll&&this.isHTMLDocument&&
!k[b]&&!this.brokenMixedCaseQSA&&!(this.brokenCheckedQSA&&-1<b.indexOf(":checked")||this.brokenEmptyAttributeQSA&&j.test(b)||!A&&-1<b.indexOf(",")||s.disableQSA)){p=b;q=a;if(!A){var y=q.getAttribute("id");q.setAttribute("id","slickid__");p="#slickid__ "+p;a=q.parentNode}try{if(m)return a.querySelector(p)||null;l=a.querySelectorAll(p)}catch(I){k[b]=1;break a}finally{A||(y?q.setAttribute("id",y):q.removeAttribute("id"),a=q)}if(this.starSelectsClosedQSA)for(p=0;q=l[p++];)"@"<q.nodeName&&(!h||!n[this.getUID(q)])&&
f.push(q);else for(p=0;q=l[p++];)(!h||!n[this.getUID(q)])&&f.push(q);h&&this.sort(f);return f}l=this.Slick.parse(b);if(!l.length)return f}else{if(null==b)return f;if(b.Slick)l=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=!h&&(m||1==l.length&&1==l.expressions[0].length)?this.pushArray:this.pushUID;null==f&&(f=[]);var r,x,C,D,v,B,z=l.expressions;p=0;a:for(;B=z[p];p++)for(b=0;v=B[b];b++){y=
"combinator:"+v.combinator;if(!this[y])continue a;A=this.isXMLDocument?v.tag:v.tag.toUpperCase();q=v.id;w=v.classList;C=v.classes;D=v.attributes;v=v.pseudos;r=b===B.length-1;this.bitUniques={};r?(this.uniques=n,this.found=f):(this.uniques={},this.found=[]);if(0===b){if(this[y](a,A,q,C,D,v,w),m&&r&&f.length)break a}else if(m&&r)for(r=0,x=u.length;r<x;r++){if(this[y](u[r],A,q,C,D,v,w),f.length)break a}else for(r=0,x=u.length;r<x;r++)this[y](u[r],A,q,C,D,v,w);u=this.found}(h||1<l.expressions.length)&&
this.sort(f);return m?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 h=b[2]||!1,c=
b[1]||1;"-"==c&&(c=-1);b=+b[3]||0;b="n"==h?{a:c,b:b}:"odd"==h?{a:2,b:1}:"even"==h?{a:2,b:0}:{a:0,b:c};return this.cacheNTH[a]=b};a.createNTHPseudo=function(a,b,h,c){return function(m,f){var j=this.getUID(m);if(!this[h][j]){var l=m.parentNode;if(!l)return!1;var l=l[a],k=1;if(c){var s=m.nodeName;do l.nodeName==s&&(this[h][this.getUID(l)]=k++);while(l=l[b])}else{do 1==l.nodeType&&(this[h][this.getUID(l)]=k++);while(l=l[b])}}f=f||"n";k=this.cacheNTH[f]||this.parseNTHArgument(f);if(!k)return!1;l=k.a;k=
k.b;j=this[h][j];if(0==l)return k==j;if(0<l){if(j<k)return!1}else if(k<j)return!1;return 0==(j-k)%l}};a.pushArray=function(a,b,h,c,m,f){this.matchSelector(a,b,h,c,m,f)&&this.found.push(a)};a.pushUID=function(a,b,h,c,m,f){var l=this.getUID(a);!this.uniques[l]&&this.matchSelector(a,b,h,c,m,f)&&(this.uniques[l]=!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(h){}var c=
this.Slick.parse(b);if(!c)return!0;var m=c.expressions,f=0,l;for(l=0;currentExpression=m[l];l++)if(1==currentExpression.length){var j=currentExpression[0];if(this.matchSelector(a,this.isXMLDocument?j.tag:j.tag.toUpperCase(),j.id,j.classes,j.attributes,j.pseudos))return!0;f++}if(f==c.length)return!1;c=this.search(this.document,c);for(l=0;m=c[l++];)if(m===a)return!0;return!1};a.matchPseudo=function(a,b,h){var c="pseudo:"+b;if(this[c])return this[c](a,h);a=this.getAttribute(a,b);return h?h==a:!!a};a.matchSelector=
function(a,b,h,c,m,f){if(b){var l=this.isXMLDocument?a.nodeName:a.nodeName.toUpperCase();if("*"==b){if("@">l)return!1}else if(l!=b)return!1}if(h&&a.getAttribute("id")!=h)return!1;if(c)for(b=c.length;b--;)if(h=a.getAttribute("class")||a.className,!h||!c[b].regexp.test(h))return!1;if(m)for(b=m.length;b--;)if(c=m[b],c.operator?!c.test(this.getAttribute(a,c.key)):!this.hasAttribute(a,c.key))return!1;if(f)for(b=f.length;b--;)if(c=f[b],!this.matchPseudo(a,c.key,c.value))return!1;return!0};var n={" ":function(a,
b,c,m,f,l,j){var k;if(this.isHTMLDocument){if(c){k=this.document.getElementById(c);if(!k&&a.all||this.idGetsName&&k&&k.getAttributeNode("id").nodeValue!=c){j=a.all[c];if(!j)return;j[0]||(j=[j]);for(a=0;k=j[a++];){var s=k.getAttributeNode("id");if(s&&s.nodeValue==c){this.push(k,b,null,m,f,l);break}}return}if(k){if(this.document!==a&&!this.contains(a,k))return;this.push(k,b,null,m,f,l);return}if(this.contains(this.root,a))return}if(m&&a.getElementsByClassName&&!this.brokenGEBCN&&(j=a.getElementsByClassName(j.join(" ")))&&
j.length){for(a=0;k=j[a++];)this.push(k,b,c,null,f,l);return}}if((j=a.getElementsByTagName(b))&&j.length){this.brokenStarGEBTN||(b=null);for(a=0;k=j[a++];)this.push(k,b,c,m,f,l)}},">":function(a,b,c,m,f,l){if(a=a.firstChild){do 1==a.nodeType&&this.push(a,b,c,m,f,l);while(a=a.nextSibling)}},"+":function(a,b,c,m,f,l){for(;a=a.nextSibling;)if(1==a.nodeType){this.push(a,b,c,m,f,l);break}},"^":function(a,b,c,m,f,l){if(a=a.firstChild)if(1==a.nodeType)this.push(a,b,c,m,f,l);else this["combinator:+"](a,b,
c,m,f,l)},"~":function(a,b,c,m,f,l){for(;a=a.nextSibling;)if(1==a.nodeType){var j=this.getUID(a);if(this.bitUniques[j])break;this.bitUniques[j]=!0;this.push(a,b,c,m,f,l)}},"++":function(a,b,c,m,f,l){this["combinator:+"](a,b,c,m,f,l);this["combinator:!+"](a,b,c,m,f,l)},"~~":function(a,b,c,m,f,l){this["combinator:~"](a,b,c,m,f,l);this["combinator:!~"](a,b,c,m,f,l)},"!":function(a,b,c,m,f,l){for(;a=a.parentNode;)a!==this.document&&this.push(a,b,c,m,f,l)},"!>":function(a,b,c,m,f,l){a=a.parentNode;a!==
this.document&&this.push(a,b,c,m,f,l)},"!+":function(a,b,c,m,f,l){for(;a=a.previousSibling;)if(1==a.nodeType){this.push(a,b,c,m,f,l);break}},"!^":function(a,b,c,m,f,l){if(a=a.lastChild)if(1==a.nodeType)this.push(a,b,c,m,f,l);else this["combinator:!+"](a,b,c,m,f,l)},"!~":function(a,b,c,m,f,l){for(;a=a.previousSibling;)if(1==a.nodeType){var j=this.getUID(a);if(this.bitUniques[j])break;this.bitUniques[j]=!0;this.push(a,b,c,m,f,l)}}},m;for(m in n)a["combinator:"+m]=n[m];var n={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}},l;for(l in n)a["pseudo:"+l]=n[l];l=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}};l.MAXLENGTH=l.maxLength=l.maxlength;var s=a.Slick=this.Slick||{};s.version="1.1.6";s.search=function(b,c,h){return a.search(b,c,h)};s.find=function(b,c){return a.search(b,c,null,!0)};s.contains=function(b,c){a.setDocument(b);
return a.contains(b,c)};s.getAttribute=function(b,c){a.setDocument(b);return a.getAttribute(b,c)};s.hasAttribute=function(b,c){a.setDocument(b);return a.hasAttribute(b,c)};s.match=function(b,c){if(!b||!c)return!1;if(!c||c===b)return!0;a.setDocument(b);return a.matchNode(b,c)};s.defineAttributeGetter=function(b,c){a.attributeGetters[b]=c;return this};s.lookupAttributeGetter=function(b){return a.attributeGetters[b]};s.definePseudo=function(b,c){a["pseudo:"+b]=function(a,b){return c.call(a,b)};return this};
s.lookupPseudo=function(b){var c=a["pseudo:"+b];return c?function(a){return c.call(this,a)}:null};s.override=function(b,c){a.override(b,c);return this};s.isXML=a.isXML;s.uidOf=function(b){return a.getUIDHTML(b)};if(!this.Slick)this.Slick=s}).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){return g(SJS.find("#"+a))},byClass:function(a){a="."+a;return new window.Elements(a,window.Slick.search(window.document,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){return g(window.Slick.find(b||window.document,a||"*"))},match:function(a,b){return window.Slick.match(b,a)},closest:function(a,b){return g(SJS.find("! "+(a||"*"),b))}});SJS.extend(SJS,{ajax:function(a,b,f,c,j){if(SJS.isString(a))return SJS.ajax({url:a,data:b,success:f,type:c,method:j});var k;if(window.XMLHttpRequest)k=new window.XMLHttpRequest;else if(window.ActiveXObject)try{k=new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(n){try{k=new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(m){return!1}}else return!1;a=SJS.merge({data:"",method:a.data?"post":"get",type:"plain",thisObj:k},a);b="get"===a.method;k.onreadystatechange=function(){if(4==k.readyState){var b=
200==k.status,c=k.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.";k.open(a.method,a.url+(b?"?"+SJS.serialize(a.data):""));k.setRequestHeader("X-Requested-With","XMLHttpRequest");b||k.setRequestHeader("Content-Type","application/x-www-form-urlencoded");k.send(b?null:SJS.serialize(a.data));return this}});
SJS.implement(window.Element,{ajax:function(a,b,f,c,j){return SJS.ajax(SJS.isString(a)?{url:a,data:b,success:f,type:c,method:j,thisObj:this}:SJS.merge({thisObj:this},a))},pull:function(a,b,f,c,j){return SJS.ajax(SJS.isString(a)?{url:a,data:b,success:function(a){this.html(a);f.call(this,a)},type:c,method:j,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,j){return SJS.ajax(SJS.isString(b)?{url:b,data:f,success:c,type:j,method:a}:SJS.merge({method:a},b))});SJS.implement(window.Element,a,function(b,f,c,j){return SJS.ajax(SJS.isString(b)?{url:b,data:f,success:c,type:j,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,i){if(a.isArray(b))return a.each(b,function(a){this.animate(a,c,f,e,i)},this),this;if(a.isArray(c))return this.animate({prop:b,from:c[0],to:c[1],duration:f,easing:e,callback:i});if(a.isString(b))return this.animate({prop:b,to:c,duration:f,easing:e,callback:i});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(b.rgb||(b.rgb=a.parseColor(b.to))!==b.to)b.type="color";if(a.isNull(b.from))b.from=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);j.push(b);k||(k=!0,setTimeout(n),animationsInterval=setInterval(n,a.Settings.animationInterval))},this);return this},animateQ:function(){var a=arguments;return this.chain(function(){this.animate.apply(this,a)})},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"),chain:function(b,c,f){var e=this,i=function(){b.apply(e,f)},h;a.isString(b)&&(b=e[b]);if(a.isFunction(b)){if(!(h=a.isArray(f)))f=a.without(arguments,0);if(!h||!c||!a.isString(c))c="default";this.animationsRunning()?a.hasOwn(this,
"fnChains")?a.hasOwn(this.fnChains,c)?this.fnChains[c].push(i):this.fnChains[c]=[i]:this.fnChains=a.toObject(c,[i]):setTimeout(i);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},animationsRunning:function(){var b=!1;a.each(j,function(a){if(a.element==this)return b=!0,!1},this);return b}};
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={},j=[],k=!1,n=function(){j.length?a.each(j,function(b,l){var k,e,i;b.duration?(k=new Date-b.start,k>=b.duration?e=1:(k=k.toFixed(2),c[b.easing]||(c[b.easing]={}),k/=b.duration,c[b.easing]?a.isNull(c[b.easing][k])?c[b.easing][k]=e=f[b.easing](k):e=c[b.easing][k]:
(c[b.easing]={},c[b.easing][k]=e=f[b.easing](k)))):e=1;switch(b.type){case "unit":b.element.style[b.prop]=Math.round(e*(b.to-b.from)+b.from)+b.toUnit;break;case "color":k=[];for(i=0;3>i;i++)k[i]=Math.round(e*(b.rgb[i]-b.from[i])+b.from[i]);b.isRGBa&&(isNaN(b.from[3])&&(b.from[3]=1),k[3]=(e*(b.rgb[3]-b.from[3])+b.from[3]).toFixed(2));try{b.element.style[b.prop]=b.isRGBa?"rgba("+k.join(",")+")":"rgb("+k.join(",")+")"}catch(h){if(b.isRGBa)k=a.rgb2hex(k,1),b.element.style.filter="progid:DXImageTransform.Microsoft.gradient(startColorstr="+
k+", endColorstr="+k+")"}break;case "opacity":k=e*(b.to-b.from)+b.from,b.element.style.opacity=k,b.element.style.filter="alpha(opacity="+(100*k).toFixed(2)+")"}if(1==e){if(!a.isNull(b.origOverflow)){var o=!1;a.each(j,function(b,c){c!=l&&!a.isNull(b.origOverflow)&&(o=!0)});o||b.element.css("overflow",b.origOverflow)}j=a.without(j,l);b.callback&&b.callback.call(b.element);b.element.callChain();return!1}}):(k=!1,clearInterval(animationsInterval))};a.each({hideSmooth:"smoothHide",showSmooth:"smoothShow"},
function(b,c){a.alias(b,c)});window.Elements.implementEach("animate")})(window.SJS);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(f,k){switch(f){case "Init":SJS.isArray(k)?c._inits_=c._inits_.concat(k):c._inits_.push(k);break;case "Extends":c._inits_=c._inits_.concat(k._inits_);c.prototype=k.prototype;
SJS.extend(c._defaultValues_,k._defaultValues_,!0);b=SJS.merge({},k.prototype);break;case "Implements":SJS.each(SJS.toArray(a["implements"]),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(k)?c.prototype[f]=k:c._defaultValues_[f]=k}});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("any",function(a){return Slick.match(this,a)});(function(a){a.implement(window.Element,{selection:function(b,f){if(a.isNull(b)){var c=0,j=0,k,n,m;if("number"==typeof this.selectionStart&&"number"==typeof this.selectionEnd)c=this.selectionStart,j=this.selectionEnd;else if((n=document.selection.createRange())&&n.parentElement()==this)m=this.value.length,k=this.value.replace(/\r\n/g,"\n"),j=this.createTextRange(),j.moveToBookmark(n.getBookmark()),n=this.createTextRange(),n.collapse(!1),-1<j.compareEndPoints("StartToEnd",n)?c=j=m:(c=-j.moveStart("character",
-m),c+=k.slice(0,c).split("\n").length-1,-1<j.compareEndPoints("EndToEnd",n)?j=m:(j=-j.moveEnd("character",-m),j+=k.slice(0,j).split("\n").length-1));m=j-c;return{start:c,end:j,length:m,text:this.value.substr(c,m)}}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){j.lastIndex=0;return j.test(a)?'"'+a.replace(j,function(a){var b=m[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function f(a,c){var i,h,j,m,F=k,p,t=c[a];t&&"object"===typeof t&&"function"===typeof t.toJSON&&(t=t.toJSON(a));"function"===typeof l&&(t=l.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";k+=n;p=[];if("[object Array]"===Object.prototype.toString.apply(t)){m=t.length;for(i=0;i<m;i+=1)p[i]=f(i,t)||"null";j=0===p.length?"[]":k?"[\n"+k+p.join(",\n"+k)+"\n"+F+"]":"["+p.join(",")+"]";k=F;return j}if(l&&"object"===typeof l){m=l.length;for(i=0;i<m;i+=1)"string"===typeof l[i]&&(h=l[i],(j=f(h,t))&&p.push(b(h)+(k?": ":":")+j))}else for(h in t)Object.prototype.hasOwnProperty.call(t,h)&&(j=f(h,t))&&p.push(b(h)+(k?": ":":")+j);j=0===p.length?"{}":k?"{\n"+k+p.join(",\n"+
k)+"\n"+F+"}":"{"+p.join(",")+"}";k=F;return j}}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,
j=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,k,n,m={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},l;if("function"!==typeof JSON.stringify)JSON.stringify=function(a,b,c){var h;n=k="";if("number"===typeof c)for(h=0;h<c;h+=1)n+=" ";else"string"===typeof c&&(n=c);if((l=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,j,k=a[c];if(k&&"object"===typeof k)for(h in k)Object.prototype.hasOwnProperty.call(k,h)&&(j=f(k,h),void 0!==j?k[h]=j:delete k[h]);return b.call(a,c,k)}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");}})();
