diff --git a/include/thirdparty/colorbox/colorbox/jquery.colorbox-min.js b/include/thirdparty/colorbox/colorbox/jquery.colorbox-min.js
new file mode 100644
index 0000000..b5109a2
--- /dev/null
+++ b/include/thirdparty/colorbox/colorbox/jquery.colorbox-min.js
@@ -0,0 +1,6 @@
+/*!
+ Colorbox 1.6.4
+ license: MIT
+ http://www.jacklmoore.com/colorbox
+*/
+(function(t,e,i){function n(i,n,o){var r=e.createElement(i);return n&&(r.id=Z+n),o&&(r.style.cssText=o),t(r)}function o(){return i.innerHeight?i.innerHeight:t(i).height()}function r(e,i){i!==Object(i)&&(i={}),this.cache={},this.el=e,this.value=function(e){var n;return void 0===this.cache[e]&&(n=t(this.el).attr("data-cbox-"+e),void 0!==n?this.cache[e]=n:void 0!==i[e]?this.cache[e]=i[e]:void 0!==X[e]&&(this.cache[e]=X[e])),this.cache[e]},this.get=function(e){var i=this.value(e);return t.isFunction(i)?i.call(this.el,this):i}}function h(t){var e=W.length,i=(A+t)%e;return 0>i?e+i:i}function a(t,e){return Math.round((/%/.test(t)?("x"===e?E.width():o())/100:1)*parseInt(t,10))}function s(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function l(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function d(t){"contains"in x[0]&&!x[0].contains(t.target)&&t.target!==v[0]&&(t.stopPropagation(),x.focus())}function c(t){c.str!==t&&(x.add(v).removeClass(c.str).addClass(t),c.str=t)}function g(e){A=0,e&&e!==!1&&"nofollow"!==e?(W=t("."+te).filter(function(){var i=t.data(this,Y),n=new r(this,i);return n.get("rel")===e}),A=W.index(_.el),-1===A&&(W=W.add(_.el),A=W.length-1)):W=t(_.el)}function u(i){t(e).trigger(i),ae.triggerHandler(i)}function f(i){var o;if(!G){if(o=t(i).data(Y),_=new r(i,o),g(_.get("rel")),!U){U=$=!0,c(_.get("className")),x.css({visibility:"hidden",display:"block",opacity:""}),I=n(se,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),b.css({width:"",height:""}).append(I),j=T.height()+k.height()+b.outerHeight(!0)-b.height(),D=C.width()+H.width()+b.outerWidth(!0)-b.width(),N=I.outerHeight(!0),z=I.outerWidth(!0);var h=a(_.get("initialWidth"),"x"),s=a(_.get("initialHeight"),"y"),l=_.get("maxWidth"),f=_.get("maxHeight");_.w=Math.max((l!==!1?Math.min(h,a(l,"x")):h)-z-D,0),_.h=Math.max((f!==!1?Math.min(s,a(f,"y")):s)-N-j,0),I.css({width:"",height:_.h}),J.position(),u(ee),_.get("onOpen"),O.add(F).hide(),x.focus(),_.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",d,!0),ae.one(re,function(){e.removeEventListener("focus",d,!0)})),_.get("returnFocus")&&ae.one(re,function(){t(_.el).focus()})}var p=parseFloat(_.get("opacity"));v.css({opacity:p===p?p:"",cursor:_.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),_.get("closeButton")?B.html(_.get("close")).appendTo(b):B.appendTo("
").hide().insertBefore(c),ae.one(he,function(){r.replaceWith(c)}),h(c)}else _.get("iframe")?h(" "):_.get("html")?h(_.get("html")):s(_,e)?(e=l(_,e),q=_.get("createImg"),t(q).addClass(Z+"Photo").bind("error."+Z,function(){h(n(se,"Error").html(_.get("imgError")))}).one("load",function(){d===le&&setTimeout(function(){var e;_.get("retinaImage")&&i.devicePixelRatio>1&&(q.height=q.height/i.devicePixelRatio,q.width=q.width/i.devicePixelRatio),_.get("scalePhotos")&&(o=function(){q.height-=q.height*e,q.width-=q.width*e},_.mw&&q.width>_.mw&&(e=(q.width-_.mw)/q.width,o()),_.mh&&q.height>_.mh&&(e=(q.height-_.mh)/q.height,o())),_.h&&(q.style.marginTop=Math.max(_.mh-q.height,0)/2+"px"),W[1]&&(_.get("loop")||W[A+1])&&(q.style.cursor="pointer",t(q).bind("click."+Z,function(){J.next()})),q.style.width=q.width+"px",q.style.height=q.height+"px",h(q)},1)}),q.src=e):e&&M.load(e,_.get("data"),function(e,i){d===le&&h("error"===i?n(se,"Error").html(_.get("xhrError")):t(this).contents())})}var v,x,y,b,T,C,H,k,W,E,I,M,L,F,R,S,K,P,B,O,_,j,D,N,z,A,q,U,$,G,Q,J,V,X={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return t(this).attr("href")},title:function(){return this.title},createImg:function(){var e=new Image,i=t(this).data("cbox-img-attrs");return"object"==typeof i&&t.each(i,function(t,i){e[t]=i}),e},createIframe:function(){var i=e.createElement("iframe"),n=t(this).data("cbox-iframe-attrs");return"object"==typeof n&&t.each(n,function(t,e){i[t]=e}),"frameBorder"in i&&(i.frameBorder=0),"allowTransparency"in i&&(i.allowTransparency="true"),i.name=(new Date).getTime(),i.allowFullscreen=!0,i}},Y="colorbox",Z="cbox",te=Z+"Element",ee=Z+"_open",ie=Z+"_load",ne=Z+"_complete",oe=Z+"_cleanup",re=Z+"_closed",he=Z+"_purge",ae=t("
"),se="div",le=0,de={},ce=function(){function t(){clearTimeout(h)}function e(){(_.get("loop")||W[A+1])&&(t(),h=setTimeout(J.next,_.get("slideshowSpeed")))}function i(){S.html(_.get("slideshowStop")).unbind(s).one(s,n),ae.bind(ne,e).bind(ie,t),x.removeClass(a+"off").addClass(a+"on")}function n(){t(),ae.unbind(ne,e).unbind(ie,t),S.html(_.get("slideshowStart")).unbind(s).one(s,function(){J.next(),i()}),x.removeClass(a+"on").addClass(a+"off")}function o(){r=!1,S.hide(),t(),ae.unbind(ne,e).unbind(ie,t),x.removeClass(a+"off "+a+"on")}var r,h,a=Z+"Slideshow_",s="click."+Z;return function(){r?_.get("slideshow")||(ae.unbind(oe,o),o()):_.get("slideshow")&&W[1]&&(r=!0,ae.one(oe,o),_.get("slideshowAuto")?i():n(),S.show())}}();t[Y]||(t(p),J=t.fn[Y]=t[Y]=function(e,i){var n,o=this;return e=e||{},t.isFunction(o)&&(o=t("
"),e.open=!0),o[0]?(p(),m()&&(i&&(e.onComplete=i),o.each(function(){var i=t.data(this,Y)||{};t.data(this,Y,t.extend(i,e))}).addClass(te),n=new r(o[0],e),n.get("open")&&f(o[0])),o):o},J.position=function(e,i){function n(){T[0].style.width=k[0].style.width=b[0].style.width=parseInt(x[0].style.width,10)-D+"px",b[0].style.height=C[0].style.height=H[0].style.height=parseInt(x[0].style.height,10)-j+"px"}var r,h,s,l=0,d=0,c=x.offset();if(E.unbind("resize."+Z),x.css({top:-9e4,left:-9e4}),h=E.scrollTop(),s=E.scrollLeft(),_.get("fixed")?(c.top-=h,c.left-=s,x.css({position:"fixed"})):(l=h,d=s,x.css({position:"absolute"})),d+=_.get("right")!==!1?Math.max(E.width()-_.w-z-D-a(_.get("right"),"x"),0):_.get("left")!==!1?a(_.get("left"),"x"):Math.round(Math.max(E.width()-_.w-z-D,0)/2),l+=_.get("bottom")!==!1?Math.max(o()-_.h-N-j-a(_.get("bottom"),"y"),0):_.get("top")!==!1?a(_.get("top"),"y"):Math.round(Math.max(o()-_.h-N-j,0)/2),x.css({top:c.top,left:c.left,visibility:"visible"}),y[0].style.width=y[0].style.height="9999px",r={width:_.w+z+D,height:_.h+N+j,top:l,left:d},e){var g=0;t.each(r,function(t){return r[t]!==de[t]?(g=e,void 0):void 0}),e=g}de=r,e||x.css(r),x.dequeue().animate(r,{duration:e||0,complete:function(){n(),$=!1,y[0].style.width=_.w+z+D+"px",y[0].style.height=_.h+N+j+"px",_.get("reposition")&&setTimeout(function(){E.bind("resize."+Z,J.position)},1),t.isFunction(i)&&i()},step:n})},J.resize=function(t){var e;U&&(t=t||{},t.width&&(_.w=a(t.width,"x")-z-D),t.innerWidth&&(_.w=a(t.innerWidth,"x")),I.css({width:_.w}),t.height&&(_.h=a(t.height,"y")-N-j),t.innerHeight&&(_.h=a(t.innerHeight,"y")),t.innerHeight||t.height||(e=I.scrollTop(),I.css({height:"auto"}),_.h=I.height()),I.css({height:_.h}),e&&I.scrollTop(e),J.position("none"===_.get("transition")?0:_.get("speed")))},J.prep=function(i){function o(){return _.w=_.w||I.width(),_.w=_.mw&&_.mw<_.w?_.mw:_.w,_.w}function a(){return _.h=_.h||I.height(),_.h=_.mh&&_.mh<_.h?_.mh:_.h,_.h}if(U){var d,g="none"===_.get("transition")?0:_.get("speed");I.remove(),I=n(se,"LoadedContent").append(i),I.hide().appendTo(M.show()).css({width:o(),overflow:_.get("scrolling")?"auto":"hidden"}).css({height:a()}).prependTo(b),M.hide(),t(q).css({"float":"none"}),c(_.get("className")),d=function(){function i(){t.support.opacity===!1&&x[0].style.removeAttribute("filter")}var n,o,a=W.length;U&&(o=function(){clearTimeout(Q),L.hide(),u(ne),_.get("onComplete")},F.html(_.get("title")).show(),I.show(),a>1?("string"==typeof _.get("current")&&R.html(_.get("current").replace("{current}",A+1).replace("{total}",a)).show(),K[_.get("loop")||a-1>A?"show":"hide"]().html(_.get("next")),P[_.get("loop")||A?"show":"hide"]().html(_.get("previous")),ce(),_.get("preloading")&&t.each([h(-1),h(1)],function(){var i,n=W[this],o=new r(n,t.data(n,Y)),h=o.get("href");h&&s(o,h)&&(h=l(o,h),i=e.createElement("img"),i.src=h)})):O.hide(),_.get("iframe")?(n=_.get("createIframe"),_.get("scrolling")||(n.scrolling="no"),t(n).attr({src:_.get("href"),"class":Z+"Iframe"}).one("load",o).appendTo(I),ae.one(he,function(){n.src="//about:blank"}),_.get("fastIframe")&&t(n).trigger("load")):o(),"fade"===_.get("transition")?x.fadeTo(g,1,i):i())},"fade"===_.get("transition")?x.fadeTo(g,0,function(){J.position(0,d)}):J.position(g,d)}},J.next=function(){!$&&W[1]&&(_.get("loop")||W[A+1])&&(A=h(1),f(W[A]))},J.prev=function(){!$&&W[1]&&(_.get("loop")||A)&&(A=h(-1),f(W[A]))},J.close=function(){U&&!G&&(G=!0,U=!1,u(oe),_.get("onCleanup"),E.unbind("."+Z),v.fadeTo(_.get("fadeOut")||0,0),x.stop().fadeTo(_.get("fadeOut")||0,0,function(){x.hide(),v.hide(),u(he),I.remove(),setTimeout(function(){G=!1,u(re),_.get("onClosed")},1)}))},J.remove=function(){x&&(x.stop(),t[Y].close(),x.stop(!1,!0).remove(),v.remove(),G=!1,x=null,t("."+te).removeData(Y).removeClass(te),t(e).unbind("click."+Z).unbind("keydown."+Z))},J.element=function(){return t(_.el)},J.settings=X)})(jQuery,document,window);
\ No newline at end of file
diff --git a/include/thirdparty/colorbox/colorbox/jquery.colorbox.js b/include/thirdparty/colorbox/colorbox/jquery.colorbox.js
index a4e2d15..12dd1b2 100644
--- a/include/thirdparty/colorbox/colorbox/jquery.colorbox.js
+++ b/include/thirdparty/colorbox/colorbox/jquery.colorbox.js
@@ -155,7 +155,7 @@
$prev,
$close,
$groupControls,
- $events = $('
'), // $({}) would be preferred, but there is an issue with jQuery 1.4.2
+ $events = $('
'), // $({}) would be prefered, but there is an issue with jQuery 1.4.2
// Variables for cached values or use across multiple functions
settings,
@@ -982,7 +982,7 @@
return;
}
- // A small pause because some browsers will occasionally report a
+ // A small pause because some browsers will occassionaly report a
// img.width and img.height of zero immediately after the img.onload fires
setTimeout(function(){
var percent;
diff --git a/include/thirdparty/encoding.js/encoding2.2.min.js b/include/thirdparty/encoding.js/encoding2.2.min.js
new file mode 100644
index 0000000..b409937
--- /dev/null
+++ b/include/thirdparty/encoding.js/encoding2.2.min.js
@@ -0,0 +1,7 @@
+/*!
+ * encoding-japanese v2.2.0 - Convert and detect character encoding in JavaScript
+ * Copyright (c) 2012 polygonplanet
+ * https://github.com/polygonplanet/encoding.js
+ * @license MIT
+ */
+!function(n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Encoding=n()}(function(){return function r(o,i,l){function f(e,n){if(!i[e]){if(!o[e]){var t="function"==typeof require&&require;if(!n&&t)return t(e,!0);if(u)return u(e,!0);throw(n=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",n}t=i[e]={exports:{}},o[e][0].call(t.exports,function(n){return f(o[e][1][n]||n)},t,t.exports,r,o,i,l)}return i[e].exports}for(var u="function"==typeof require&&require,n=0;n>6&3,o=128|63&t,i[i.length]=239,i[i.length]=255&r,i[i.length]=255&o):128<=e?(r=e<<1,(t=n[++l])<159?(r-=r<319?225:97,t-=126>16&255),i[i.length]=o>>8&255,i[i.length]=255&o)):i[i.length]=255&n[l];return i}function o(n){a.init_JIS_TO_UTF8_TABLE();for(var e,t,r,o,i,l=[],f=0,u=n&&n.length;f>6&3,r=128|63&r,l[l.length]=239,l[l.length]=255&t,l[l.length]=255&r):143===e?(t=n[++f]-128,r=n[++f]-128,void 0===(i=c.JISX0212_TO_UTF8_TABLE[o=(t<<8)+r])?l[l.length]=a.FALLBACK_CHARACTER:(i<65535||(l[l.length]=i>>16&255),l[l.length]=i>>8&255,l[l.length]=255&i)):128<=e?(o=(e-128<<8)+(n[++f]-128),void 0===(i=c.JIS_TO_UTF8_TABLE[o])?l[l.length]=a.FALLBACK_CHARACTER:(i<65535||(l[l.length]=i>>16&255),l[l.length]=i>>8&255,l[l.length]=255&i)):l[l.length]=255&n[f];return l}function i(n){a.init_JIS_TO_UTF8_TABLE();for(var e,t,r,o,i=[],l=0,f=0,u=n&&n.length;f>16&255),i[i.length]=o>>8&255,i[i.length]=255&o)):2===l?(e=188|(t=n[f]+64)>>6&3,t=128|63&t,i[i.length]=239,i[i.length]=255&e,i[i.length]=255&t):3===l?(r=(n[f]<<8)+n[++f],void 0===(o=c.JISX0212_TO_UTF8_TABLE[r])?i[i.length]=a.FALLBACK_CHARACTER:(o<65535||(i[i.length]=o>>16&255),i[i.length]=o>>8&255,i[i.length]=255&o)):i[i.length]=255&n[f]}return i}function l(n,e){for(var t,r,o,i=[],l=0,f=n&&n.length,u=e&&e.fallback;l>8)?((o>>=1)<47?o+=113:o-=79,t+=95>=1)<=47?o+=112:o-=80,t+=126),i[i.length]=255&o,i[i.length]=255&t)):i[i.length]=255&n[l];return i}function f(n,e){for(var t,r,o,i=[],l=0,f=n&&n.length,u=e&&e.fallback;l>8)-128&255,i[i.length]=(255&o)-128&255):(65536>8)-128&255,i[i.length]=(255&o)-128&255))):i[i.length]=255&n[l];return i}function h(n,e){for(var t,r,o,i=[],l=0,f=n&&n.length,u=0,g=e&&e.fallback,h=[27,40,66,27,36,66,27,40,73,27,36,40,68];u>8&255,i[i.length]=255&o):(65536>8&255),i[i.length]=255&o));return 0!==l&&(i[i.length]=h[0],i[i.length]=h[1],i[i.length]=h[2]),i}function T(n){for(var e,t,r=[],o=0,i=n&&n.length;o>6&31,r[r.length]=128|63&e):e<65536?(r[r.length]=224|e>>12&15,r[r.length]=128|e>>6&63,r[r.length]=128|63&e):e<2097152&&(r[r.length]=240|e>>18&15,r[r.length]=128|e>>12&63,r[r.length]=128|e>>6&63,r[r.length]=128|63&e);return r}function s(n,e){for(var t,r,o,i=[],l=0,f=n&&n.length,u=e&&e.ignoreSurrogatePair;l>4)&&t<=7?o=r:12==t||13==t?o=(31&r)<<6|63&n[l++]:14==t?o=(15&r)<<12|(63&n[l++])<<6|63&n[l++]:15==t&&(o=(7&r)<<18|(63&n[l++])<<12|(63&n[l++])<<6|63&n[l++]),o<=65535||u?i[i.length]=o:(i[i.length]=55296+((o-=65536)>>10),i[i.length]=o%1024+56320);return i}function A(n,e){var t;if(e&&e.bom){var r,e=e.bom,o=("B"===(e=g.isString(e)?e:"BE").charAt(0).toUpperCase()?(r=[254,255],E):(r=[255,254],_))(n);(t=[])[0]=r[0],t[1]=r[1];for(var i=0,l=o.length;i>8&255,t[t.length]=255&e);return t}function _(n){for(var e,t=[],r=0,o=n&&n.length;r>8&255);return t}function U(n){var e,t,r=[],o=0,i=n&&n.length;for(2<=i&&(254===n[0]&&255===n[1]||255===n[0]&&254===n[1])&&(o=2);o>=1)<47?e+=113:e-=79,t+=95>=1)<=47?e+=112:e-=80,t+=126),r[r.length]=255&e,r[r.length]=255&t):r[r.length]=2===o?n[i]+128&255:3===o?a.FALLBACK_CHARACTER:255&n[i]}return r},t.JISToEUCJP=function(n){for(var e=[],t=0,r=n&&n.length,o=0;o>=1)+(e<111?49:113),t-=223>=1)+(e<=111?48:112),t-=2),r[r.length]=255&e,r[r.length]=255&t):r[r.length]=142===e?255&n[++i]:255&e;return r},t.SJISToUTF8=r,t.EUCJPToUTF8=o,t.JISToUTF8=i,t.UTF8ToSJIS=l,t.UTF8ToEUCJP=f,t.UTF8ToJIS=h,t.UNICODEToUTF8=T,t.UTF8ToUNICODE=s,t.UNICODEToUTF16=A,t.UNICODEToUTF16BE=E,t.UNICODEToUTF16LE=_,t.UTF16BEToUNICODE=U,t.UTF16LEToUNICODE=S,t.UTF16ToUNICODE=F,t.UTF16ToUTF16BE=function(n){for(var e,t,r=[],o=0,i=n&&n.length,l=!1,f=!0;o>4&15],r[r.length]=t[15&e]))}return u.codeToString_fast(r)},urlDecode:function(n){for(var e,t=[],r=0,o=n&&n.length;rh.APPLY_BUFFER_SIZE&&(h.APPLY_BUFFER_SIZE_OK=!0),t}catch(n){h.APPLY_BUFFER_SIZE_OK=!1}}return s(n)}function s(n){for(var e,t="",r=n&&n.length,o=0;oh.APPLY_BUFFER_SIZE&&(h.APPLY_BUFFER_SIZE_OK=!0);continue}catch(n){h.APPLY_BUFFER_SIZE_OK=!1}return A(n)}t+=i.apply(null,e)}return t}function A(n){for(var e="",t=n&&n.length,r=0;r>2],l[l.length]=E[(3&e)<<4],l[l.length]=U,l[l.length]=U;break}if(t=n[i++],i==o){l[l.length]=E[e>>2],l[l.length]=E[(3&e)<<4|(240&t)>>4],l[l.length]=E[(15&t)<<2],l[l.length]=U;break}r=n[i++],l[l.length]=E[e>>2],l[l.length]=E[(3&e)<<4|(240&t)>>4],l[l.length]=E[(15&t)<<2|(192&r)>>6],l[l.length]=E[63&r]}return T(l)},t.base64decode=function(n){for(var e,t,r,o,i=n&&n.length,l=0,f=[];l>4;do{if(61==(r=255&n.charCodeAt(l++)))return f}while(r=_[r],l>2;do{if(61==(o=255&n.charCodeAt(l++)))return f}while(o=_[o],l