(function(n){n.extend({tablesorter:new function(){function r(n,t){f(n+": "+((new Date).getTime()-t.getTime())+"ms")}function f(n){console!==undefined&&console.debug!==undefined?console.log(n):alert(n)}function s(t,i){var e,o,r,u;if(t.config.debug&&(e=""),o=t.tBodies[0].rows,t.tBodies[0].rows[0]){var s=[],c=o[0].cells,l=c.length;for(r=0;r<l;r++)u=!1,n.metadata&&n(i[r]).metadata()&&n(i[r]).metadata().sorter?u=h(n(i[r]).metadata().sorter):t.config.headers[r]&&t.config.headers[r].sorter&&(u=h(t.config.headers[r].sorter)),u||(u=p(t,c[r])),t.config.debug&&(e+="column:"+r+" parser:"+u.id+"\n"),s.push(u)}return t.config.debug&&f(e),s}function p(i,r){for(var f=t.length,u=1;u<f;u++)if(t[u].is(n.trim(l(i.config,r)),i,r))return t[u];return t[0]}function h(n){for(var r=t.length,i=0;i<r;i++)if(t[i].id.toLowerCase()==n.toLowerCase())return t[i];return!1}function c(t){var s,u,e,f,i;t.config.debug&&(s=new Date);var h=t.tBodies[0]&&t.tBodies[0].rows.length||0,c=t.tBodies[0].rows[0]&&t.tBodies[0].rows[0].cells.length||0,a=t.config.parsers,o={row:[],normalized:[]};for(u=0;u<h;++u){for(e=t.tBodies[0].rows[u],f=[],o.row.push(n(e)),i=0;i<c;++i)f.push(a[i].format(l(t.config,e.cells[i]),t,e.cells[i]));f.push(u);o.normalized.push(f);f=null}return t.config.debug&&r("Built cache for "+h+" rows",s),o}function l(t,i){return i?t.textExtraction=="simple"?i.childNodes[0]&&i.childNodes[0].hasChildNodes()?i.childNodes[0].innerHTML:i.innerHTML:typeof t.textExtraction=="function"?t.textExtraction(i):n(i).text():""}function e(t,i){var l,h,u,c,p,e;t.config.debug&&(l=new Date);var a=i,v=a.row,f=a.normalized,y=f.length,w=n(t.tBodies[0]),s=[];if(y>0)for(h=f[0].length-1,u=0;u<y;u++)if(s.push(v[f[u][h]]),!t.config.appender)for(c=v[f[u][h]],p=c.length,e=0;e<p;e++)w[0].appendChild(c[e]);t.config.appender&&t.config.appender(t,s);s=null;t.config.debug&&r("Rebuilt table",l);o(t);setTimeout(function(){n(t).trigger("sortEnd")},0)}function w(t){var u,o,e,i;for(t.config.debug&&(u=new Date),o=n.metadata?!0:!1,e=[],i=0;i<t.tHead.rows.length;i++)e[i]=0;return $tableHeaders=n("thead th",t),$tableHeaders.each(function(i){this.count=0;this.column=i;this.order=g(t.config.sortInitialOrder);(k(this)||d(t,i))&&(this.sortDisabled=!0);this.sortDisabled||n(this).addClass(t.config.cssHeader);t.config.headerList[i]=this}),t.config.debug&&(r("Built headers",u),f($tableHeaders)),$tableHeaders}function k(t){return n.metadata&&n(t).metadata().sorter===!1?!0:!1}function d(n,t){return n.config.headers[t]&&n.config.headers[t].sorter===!1?!0:!1}function o(n){for(var i=n.config.widgets,r=i.length,t=0;t<r;t++)a(i[t]).format(n)}function a(n){for(var i=u.length,t=0;t<i;t++)if(u[t].id.toLowerCase()==n.toLowerCase())return u[t]}function g(n){return i=typeof n!="Number"?n.toLowerCase()=="desc"?1:0:n==1?n:0}function nt(n,t){for(var r=t.length,i=0;i<r;i++)if(t[i][0]==n)return!0;return!1}function v(t,i,r,u){var e,o,f;for(i.removeClass(u[0]).removeClass(u[1]),e=[],i.each(function(){this.sortDisabled||(e[this.column]=n(this))}),o=r.length,f=0;f<o;f++)e[r[f][0]].addClass(u[r[f][1]])}function tt(t){var r=t.config,i;r.widthFixed&&(i=n("<colgroup>"),n("tr:first td",t.tBodies[0]).each(function(){i.append(n("<col>").css("width",n(this).width()))}),n(t).prepend(i))}function it(n,t){for(var r,u,f=n.config,e=t.length,i=0;i<e;i++)r=t[i],u=f.headerList[r[0]],u.count=r[1],u.count++}function y(table,sortList,cache){var sortTime,orgOrderCol,i;table.config.debug&&(sortTime=new Date);var dynamicExp="var sortWrapper = function(a,b) {",l=sortList.length,sortTextFunction=rt.toString().match(/^function\s*([\w_]+)/)[1],sortTextDescFunction=ut.toString().match(/^function\s*([\w_]+)/)[1],sortNumericFunction=ft.toString().match(/^function\s*([\w_]+)/)[1],sortNumericDescFunction=et.toString().match(/^function\s*([\w_]+)/)[1];for(i=0;i<l;i++){var c=sortList[i][0],order=sortList[i][1],s=ot(table.config.parsers,c)=="text"?order==0?sortTextFunction:sortTextDescFunction:order==0?sortNumericFunction:sortNumericDescFunction,e="e"+i;dynamicExp+="var "+e+" = "+s+"(a["+c+"],b["+c+"]); ";dynamicExp+="if("+e+") { return "+e+"; } ";dynamicExp+="else { "}for(orgOrderCol=cache.normalized[0].length-1,dynamicExp+="return a["+orgOrderCol+"]-b["+orgOrderCol+"];",i=0;i<l;i++)dynamicExp+="}; ";return dynamicExp+="return 0; ",dynamicExp+="}; ",eval(dynamicExp),cache.normalized.sort(sortWrapper),table.config.debug&&r("Sorted "+sortList.toString(),sortTime),cache}function rt(n,t){return n<t?-1:n>t?1:0}function ut(n,t){return t<n?-1:t>n?1:0}function ft(n,t){return n-t}function et(n,t){return t-n}function ot(n,t){return n[t].type}var t=[],u=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:!1,cancelSelection:!0,sortList:[],headerList:[],dateFormat:"us",decimal:".",debug:!1};this.benchmark=r;this.construct=function(t){return this.each(function(){var r,u,f,i,l,h;this.tHead&&this.tBodies&&(l=0,this.config={},i=n.extend(this.config,n.tablesorter.defaults,t),r=n(this),u=w(this),this.config.parsers=s(this,u),f=c(this),this.config.cache=f,h=[i.cssDesc,i.cssAsc],tt(this),u.click(function(t){var p,w,s,l,o,c,a;if(r.trigger("sortStart"),p=r[0].tBodies[0]&&r[0].tBodies[0].rows.length||0,!this.sortDisabled&&p>0){if(w=n(this),s=this.column,this.order=this.count++%2,t[i.sortMultiSortKey])if(nt(s,i.sortList))for(o=0;o<i.sortList.length;o++)c=i.sortList[o],a=i.headerList[c[0]],c[0]==s&&(a.count=c[1],a.count++,c[1]=a.count%2);else i.sortList.push([s,this.order]);else{if(i.sortList=[],i.sortForce!=null)for(l=i.sortForce,o=0;o<l.length;o++)l[o][0]!=s&&i.sortList.push(l[o]);i.sortList.push([s,this.order])}return setTimeout(function(){v(r[0],u,i.sortList,h);e(r[0],y(r[0],i.sortList,f))},1),!1}}).mousedown(function(){if(i.cancelSelection)return this.onselectstart=function(){return!1},!1}),r.bind("update",function(){this.config.parsers=s(this,u);f=c(this)}).bind("sorton",function(t,r){n(this).trigger("sortStart");i.sortList=r;var o=i.sortList;it(this,o);v(this,u,o,h);e(this,y(this,o,f))}).bind("appendCache",function(){e(this,f)}).bind("applyWidgetId",function(n,t){a(t).format(this)}).bind("applyWidgets",function(){o(this)}),n.metadata&&n(this).metadata()&&n(this).metadata().sortlist&&(i.sortList=n(this).metadata().sortlist),i.sortList.length>0&&r.trigger("sorton",[i.sortList]),o(this))})};this.addParser=function(n){for(var u=t.length,r=!0,i=0;i<u;i++)t[i].id.toLowerCase()==n.id.toLowerCase()&&(r=!1);r&&t.push(n)};this.addWidget=function(n){u.push(n)};this.formatFloat=function(n){var t=parseFloat(n);return isNaN(t)?0:t};this.formatInt=function(n){var t=parseInt(n);return isNaN(t)?0:t};this.isDigit=function(t,i){var r="\\"+i.decimal,u="/(^[+]?0("+r+"0+)?$)|(^([-+]?[1-9][0-9]*)$)|(^([-+]?((0?|[1-9][0-9]*)"+r+"(0*[1-9][0-9]*)))$)|(^[-+]?[1-9]+[0-9]*"+r+"0+$)/";return RegExp(u).test(n.trim(t))};this.clearTableBody=function(t){n(t.tBodies[0].rows).remove()}}});n.fn.extend({tablesorter:n.tablesorter.construct});var t=n.tablesorter;t.addParser({id:"text",is:function(){return!0},format:function(t){return n.trim(t.toLowerCase())},type:"text"});t.addParser({id:"digit",is:function(t,i){var r=i.config;return n.tablesorter.isDigit(t,r)},format:function(t){return n.tablesorter.formatFloat(t)},type:"numeric"});t.addParser({id:"currency",is:function(n){return/^[£$€?.]/.test(n)},format:function(t){return n.tablesorter.formatFloat(t.replace(new RegExp(/[^0-9.]/g),""))},type:"numeric"});t.addParser({id:"ipAddress",is:function(n){return/^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(n)},format:function(t){for(var i,u=t.split("."),f="",e=u.length,r=0;r<e;r++)i=u[r],f+=i.length==2?"0"+i:i;return n.tablesorter.formatFloat(f)},type:"numeric"});t.addParser({id:"url",is:function(n){return/^(https?|ftp|file):\/\/$/.test(n)},format:function(n){return jQuery.trim(n.replace(new RegExp(/(https?|ftp|file):\/\//),""))},type:"text"});t.addParser({id:"isoDate",is:function(n){return/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(n)},format:function(t){return n.tablesorter.formatFloat(t!=""?new Date(t.replace(new RegExp(/-/g),"/")).getTime():"0")},type:"numeric"});t.addParser({id:"percent",is:function(t){return/\%$/.test(n.trim(t))},format:function(t){return n.tablesorter.formatFloat(t.replace(new RegExp(/%/g),""))},type:"numeric"});t.addParser({id:"usLongDate",is:function(n){return n.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/))},format:function(t){return n.tablesorter.formatFloat(new Date(t).getTime())},type:"numeric"});t.addParser({id:"shortDate",is:function(n){return/\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(n)},format:function(t,i){var r=i.config;return t=t.replace(/\-/g,"/"),r.dateFormat=="us"?t=t.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$1/$2"):r.dateFormat=="uk"?t=t.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$2/$1"):(r.dateFormat=="dd/mm/yy"||r.dateFormat=="dd-mm-yy")&&(t=t.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/,"$1/$2/$3")),n.tablesorter.formatFloat(new Date(t).getTime())},type:"numeric"});t.addParser({id:"time",is:function(n){return/^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(n)},format:function(t){return n.tablesorter.formatFloat(new Date("2000/01/01 "+t).getTime())},type:"numeric"});t.addParser({id:"metadata",is:function(){return!1},format:function(t,i,r){var u=i.config,f=u.parserMetadataName?u.parserMetadataName:"sortValue";return n(r).metadata()[f]},type:"numeric"});t.addWidget({id:"zebra",format:function(t){if(t.config.debug)var i=new Date;n("tr:visible",t.tBodies[0]).filter(":even").removeClass(t.config.widgetZebra.css[1]).addClass(t.config.widgetZebra.css[0]).end().filter(":odd").removeClass(t.config.widgetZebra.css[0]).addClass(t.config.widgetZebra.css[1]);t.config.debug&&n.tablesorter.benchmark("Applied Zebra widget",i)}})})(jQuery),function(n){n.extend({tablesorterPager:new function(){function f(i,r){for(var s,e,o,h,u='<ul class="paging">',f=0;f<i.totalPages;f++)s="",i.page==f&&(s=' style="font-weight:bold"'),u=u+"<li><span"+s+' class="click">'+(f+1)+"<\/span><\/li>";u=u+"<\/ul>";e=n(i.cssPageDisplay,i.container);e.is("input")?e.val(u):e.html(u);o=n(i.cssPageCurrent,i.container);o.is("input")?o.val(i.page+1):o.text(i.page+1);h=n(i.cssPageCount,i.container);h.is("input")?pccount.val(i.totalPages):h.text(i.totalPages);n(r).trigger("tableSorterPagerUpdatePageDisplay");n(".click").click(function(){var u=r.config,i=n(this).text();return i!=u.page+1&&(i=parseInt(i)-1,i<0||isNaN(i)?i=0:i>u.totalPages-1&&(i=u.totalPages-1),u.page=i,t(r)),!1})}function e(n,r){var u=n.config;u.size=r;u.totalPages=Math.ceil(u.totalRows/u.size);u.pagerPositionSet=!1;t(n);i(n)}function i(t){var i=t.config,r;!i.pagerPositionSet&&i.positionFixed&&(i=t.config,r=n(t),r.offset&&i.container.css({top:r.offset().top+r.height()+"px",position:"absolute"}),i.pagerPositionSet=!0)}function o(n){var i=n.config;i.page=0;t(n)}function r(n){var i=n.config;i.page=i.totalPages-1;t(n)}function s(n){var i=n.config;i.page++;i.page>=i.totalPages-1&&(i.page=i.totalPages-1);t(n)}function h(n){var i=n.config;i.page--;i.page<=0&&(i.page=0);t(n)}function t(n){var t=n.config;(t.page<0||t.page>t.totalPages-1)&&(t.page=0);u(n,t.rowsCopy)}function u(t,u){var c,s,l,a,h;try{var e=t.config,a=u.length,v=e.page*e.size,o=v+e.size;for(o>u.length&&(o=u.length),c=t.tBodies[0],n.tablesorter.clearTableBody(t),s=v;s<o;s++)for(l=u[s],a=l.length,h=0;h<a;h++)c.appendChild(l[h]);i(t,c);n(t).trigger("applyWidgets");e.page>=e.totalPages&&r(t);f(e,t)}catch(o){alert(o)}}this.appender=function(n,t){var i=n.config;i.rowsCopy=t;i.totalRows=t.length;i.totalPages=Math.ceil(i.totalRows/i.size);u(n,t)};this.defaults={size:20,offset:0,page:0,totalRows:0,totalPages:0,container:null,cssNext:".next",cssPrev:".prev",cssFirst:".first",cssLast:".last",cssPageDisplay:".pagedisplay",cssPageSize:".pagesize",cssPageCount:".pagecount",cssPageCurrent:".pagecurrent",seperator:"/",positionFixed:!0,appender:this.appender};this.construct=function(i){return this.each(function(){config=n.extend(this.config,n.tablesorterPager.defaults,i);config.size=parseInt(n(".pagesize",f).val());var u=this,f=config.container;n(this).trigger("appendCache");n(config.cssFirst,f).click(function(){return o(u),!1});n(config.cssNext,f).click(function(){return s(u),!1});n(config.cssPrev,f).click(function(){return h(u),!1});n(config.cssLast,f).click(function(){return r(u),!1});n(config.cssPageSize,f).change(function(){return e(u,parseInt(n(this).val())),!1});n(config.cssPageCurrent,f).change(function(){var r=u.config,i=n(this).val();return i!=r.page+1&&(i=parseInt(i)-1,i<0||isNaN(i)?i=0:i>r.totalPages-1&&(i=r.totalPages-1),r.page=i,t(u)),!1})})}}});n.fn.extend({tablesorterPager:n.tablesorterPager.construct})}(jQuery),function(n){n.extend({tablesorterFilter:new function(){function i(n,t,i){for(var u=i?n:n.toLowerCase(),r=0;r<t.length;r++)if(t[r].charAt(0)=="-"){if(u.indexOf(t[r].substr(1))!=-1)return!1}else if(u.indexOf(t[r])==-1)return!1;return!0}function t(t){var a,u,h,r,v,e,y,s,p,o,c,l,w,k,i;try{for(t.config.debug&&(a=new Date),u=[],h=[],i=0;i<t.config.filter.length;i++){if(r=t.config.filter[i],v=n(r.filterContainer),h[i]=r.filterColumns,e=jQuery.trim(v.val()).replace(/\s+/g," "),e.length!=0){if(y=/^([a-z]+):(.+)/,s=y.exec(e),s!==null)for(p=s[1],e=s[2],o=0;o<r.columns.length;o++)if(r.columns[o].indexOf(p)===0){r.filterColumns=[o];break}c=r.filterCaseSensitive;u.push({caseSensitive:c,words:c?e.split(" "):e.toLowerCase().split(" "),findStr:r.filterColumns?"td:eq("+r.filterColumns.join("),td:eq(")+")":"",filterFunction:r.filterFunction})}r.filterColumns=h[i]}l=u.length;w=l==0?function(){var n=jQuery(this);f[f.length]=n}:function(){for(var t=jQuery(this),n=0;n<l;n++)if(!u[n].filterFunction((u[n].findStr?t.find(u[n].findStr):t).text(),u[n].words,u[n].caseSensitive))return!0;f[f.length]=t};var b=t.config.cache.row,f=[],d=b.length;for(i=0;i<d;i++)b[i].each(w);for(n.tablesorter.clearTableBody(t),k=f.length,i=0;i<k;i++)n(t.tBodies[0]).append(f[i]);return n(t).trigger("update"),f.length&&(n(t).trigger("appendCache"),n(t).trigger("sorton",[t.config.sortList])),t.config.debug&&n.tablesorter.benchmark("Apply filter:",a),n(t).trigger("filterEnd"),t}catch(g){alert(g)}}function r(t){var u,r,i;for(t.config.debug&&(u=new Date),i=0;i<t.config.filter.length;i++)n(t.config.filter[i].filterContainer).val("").get(0).lastValue="";for(r=t.config.cache.row,n.tablesorter.clearTableBody(t),i=0;i<r.length;i++)n(t.tBodies[0]).append(r[i]);return n(t).trigger("update"),n(t).trigger("appendCache"),n(t).trigger("sorton",[t.config.sortList]),t.config.debug&&n.tablesorter.benchmark("Clear filter:",u),n(t).trigger("filterCleared"),t}this.defaults={filterContainer:"#filter-box",filterClearContainer:"#filter-clear-button",filterColumns:null,filterCaseSensitive:!1,filterWaitTime:500,filterFunction:i,columns:[]};this.construct=function(){var i=arguments;return this.each(function(){function h(n,i){var r=n.value;(r!=n.lastValue||i)&&(n.lastValue=r,t(o))}var f,o,s,u,e;for(this.config.filter=new Array(i.length),f=this.config,f.filter=new Array(i.length),u=0;u<i.length;u++)f.filter[u]=n.extend(this.config.filter[u],n.tablesorterFilter.defaults,i[u]);for(o=this,s=new Array(i.length),u=0;u<i.length;u++)e=n(f.filter[u].filterContainer),e.length&&(e[0].filterIndex=u),e.keyup(function(t,i){var r=this.filterIndex,u,e,o,c;return undefined!==i&&n(this).val(i),u=this,u.keyCode==13||undefined!==i?(e=1,o=!0):(e=f.filter[r].filterWaitTime||500,o=!1),c=function(){h(u,o)},clearTimeout(s[r]),s[r]=setTimeout(c,e),!1}),f.filter[u].filterClearContainer&&(e=n(f.filter[u].filterClearContainer),e.length&&(e[0].filterIndex=u,e.click(function(){var r=this.filterIndex,i=n(f.filter[r].filterContainer);i.val("");i[0].lastValue="";t(o);i[0].type!="hidden"&&i.focus()})));n(o).bind("doFilter",function(){t(o)});n(o).bind("clearFilter",function(){r(o)})})}}});n.fn.extend({tablesorterFilter:n.tablesorterFilter.construct})}(jQuery),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof module=="object"&&module.exports?n(require("jquery")):n(jQuery)}(function(n){function v(t){var i={},r=/^jQuery\d+$/;return n.each(t.attributes,function(n,t){t.specified&&!r.test(t.name)&&(i[t.name]=t.value)}),i}function r(i,r){var e=this,f=n(this);if(e.value===f.attr(u?"placeholder-x":"placeholder")&&f.hasClass(t.customClass))if(e.value="",f.removeClass(t.customClass),f.data("placeholder-password")){if(f=f.hide().nextAll('input[type="password"]:first').show().attr("id",f.removeAttr("id").data("placeholder-id")),i===!0)return f[0].value=r,r;f.focus()}else e==a()&&e.select()}function s(i){var e,o=this,f=n(this),h=o.id,s;if(!i||i.type!=="blur"||!f.hasClass(t.customClass))if(o.value===""){if(o.type==="password"){if(!f.data("placeholder-textinput")){try{e=f.clone().prop({type:"text"})}catch(c){e=n("<input>").attr(n.extend(v(this),{type:"text"}))}e.removeAttr("name").data({"placeholder-enabled":!0,"placeholder-password":f,"placeholder-id":h}).bind("focus.placeholder",r);f.data({"placeholder-textinput":e,"placeholder-id":h}).before(e)}o.value="";f=f.removeAttr("id").hide().prevAll('input[type="text"]:first').attr("id",f.data("placeholder-id")).show()}else s=f.data("placeholder-password"),s&&(s[0].value="",f.attr("id",f.data("placeholder-id")).show().nextAll('input[type="password"]:last').hide().removeAttr("id"));f.addClass(t.customClass);f[0].value=f.attr(u?"placeholder-x":"placeholder")}else f.removeClass(t.customClass)}function a(){try{return document.activeElement}catch(n){}}var u=!1,h=Object.prototype.toString.call(window.operamini)==="[object OperaMini]",e="placeholder"in document.createElement("input")&&!h&&!u,o="placeholder"in document.createElement("textarea")&&!h&&!u,c=n.valHooks,l=n.propHooks,f,i,t={};e&&o?(i=n.fn.placeholder=function(){return this},i.input=!0,i.textarea=!0):(i=n.fn.placeholder=function(i){return t=n.extend({},{customClass:"placeholder"},i),this.filter((e?"textarea":":input")+"["+(u?"placeholder-x":"placeholder")+"]").not("."+t.customClass).not(":radio, :checkbox, [type=hidden]").bind({"focus.placeholder":r,"blur.placeholder":s}).data("placeholder-enabled",!0).trigger("blur.placeholder")},i.input=e,i.textarea=o,f={get:function(i){var r=n(i),u=r.data("placeholder-password");return u?u[0].value:r.data("placeholder-enabled")&&r.hasClass(t.customClass)?"":i.value},set:function(i,u){var f=n(i),e,o;return(u!==""&&(e=f.data("placeholder-textinput"),o=f.data("placeholder-password"),e?(r.call(e[0],!0,u)||(i.value=u),e[0].value=u):o&&(r.call(i,!0,u)||(o[0].value=u),i.value=u)),!f.data("placeholder-enabled"))?(i.value=u,f):(u===""?(i.value=u,i!=a()&&s.call(i)):(f.hasClass(t.customClass)&&r.call(i),i.value=u),f)}},e||(c.input=f,l.value=f),o||(c.textarea=f,l.value=f),n(function(){n(document).delegate("form","submit.placeholder",function(){var i=n("."+t.customClass,this).each(function(){r.call(this,!0,"")});setTimeout(function(){i.each(s)},10)})}),n(window).bind("beforeunload.placeholder",function(){var i=!0;try{document.activeElement.toString()==="javascript:void(0)"&&(i=!1)}catch(r){}i&&n("."+t.customClass).each(function(){this.value=""})}))}),function(n){var t="columnizer-original-dom";n.fn.columnize=function(i){function r(n,t){try{n.append(t)}catch(i){n[0].appendChild(t[0])}}this.each(function(){var i=n(this);i.data(t,i.clone(!0,!0))});this.cols=[];this.offset=0;this.before=[];this.lastOther=0;this.prevMax=0;this.debug=0;this.setColumnStart=null;this.elipsisText="";var u={width:400,columns:!1,buildOnce:!1,overflow:!1,doneFunc:function(){},target:!1,ignoreImageLoading:!0,columnFloat:"left",lastNeverTallest:!1,accuracy:!1,precise:!1,manualBreaks:!1,cssClassPrefix:"",elipsisText:"...",debug:0};return i=n.extend(u,i),typeof i.width=="string"&&(i.width=parseInt(i.width,10),isNaN(i.width)&&(i.width=u.width)),typeof i.setColumnStart=="function"&&(this.setColumnStart=i.setColumnStart),typeof i.elipsisText=="string"&&(this.elipsisText=i.elipsisText),i.debug&&(this.debug=i.debug),i.setWidth||(i.setWidth=i.precise?function(n){return 100/n}:function(n){return Math.floor(100/n)}),this.each(function(){function f(n,t){var i=t?".":"";return h.length?i+h+"-"+n:i+n}function a(t,u,e,o){for(var v,p,w,c,h,y,b,l,a;(s||e.height()<o)&&u[0].childNodes.length;){if(v=u[0].childNodes[0],n(v).find(f("columnbreak",!0)).length)return;if(n(v).hasClass(f("columnbreak")))return;r(t,n(v))}if(t[0].childNodes.length!==0){if(p=t[0].childNodes,w=p[p.length-1],t[0].removeChild(w),c=n(w),c[0].nodeType==3){for(h=c[0].nodeValue,y=i.width/18,i.accuracy&&(y=i.accuracy),l=null;e.height()<o&&h.length;)a=h.indexOf(" ",y),b=a!=-1?h.substring(0,a):h,l=document.createTextNode(b),r(t,n(l)),h=h.length>y&&a!=-1?h.substring(a):"";if(e.height()>=o&&l!==null&&(t[0].removeChild(l),h=l.nodeValue+h),h.length)c[0].nodeValue=h;else return!1}return u.contents().length?u.prepend(c):r(u,c),c[0].nodeType==3}}function v(n,t,i,u){var e,o,c,h,l,y;if(!n.contents(":last").find(f("columnbreak",!0)).length&&!n.contents(":last").hasClass(f("columnbreak"))&&t.contents().length){if(e=t.contents(":first"),typeof e.get(0)=="undefined"||e.get(0).nodeType!=1)return;o=e.clone(!0);e.hasClass(f("columnbreak"))?(r(n,o),e.remove()):s?(r(n,o),e.remove()):o.get(0).nodeType!=1||o.hasClass(f("dontend"))||(r(n,o),o.is("img")&&i.height()<u+20?e.remove():e.hasClass(f("dontsplit"))&&i.height()<u+20?e.remove():o.is("img")||e.hasClass(f("dontsplit"))?o.remove():(o.empty(),a(o,e,i,u)?e.addClass(f("split")):(e.addClass(f("split")),e.get(0).tagName=="OL"&&(c=o.get(0).childElementCount+o.get(0).start,e.attr("start",c+1)),e.children().length&&v(o,e,i,u)),o.get(0).childNodes.length===0?(o.remove(),e.removeClass(f("split"))):o.get(0).childNodes.length==1&&(h=o.get(0).childNodes[0],h.nodeType==3&&(l=/\S/,y=h.nodeValue,l.test(y)||(o.remove(),e.removeClass(f("split")))))))}}function b(){var c,l,h,u,s,y;if(!t.data("columnized")||t.children().length!=1){if(t.data("columnized",!0),t.data("columnizing",!0),t.empty(),t.append(n("<div class='"+f("first")+" "+f("last")+" "+f("column")+" ' style='width:100%; float: "+i.columnFloat+";'><\/div>")),$col=t.children().eq(t.children().length-1),$destroyable=e.clone(!0),i.overflow){for(targetHeight=i.overflow.height,a($col,$destroyable,$col,targetHeight),$destroyable.contents().find(":first-child").hasClass(f("dontend"))||v($col,$destroyable,$col,targetHeight);$col.contents(":last").length&&o($col.contents(":last").get(0));)c=$col.contents(":last"),c.remove(),$destroyable.prepend(c);for(l="",h=document.createElement("DIV");$destroyable[0].childNodes.length>0;){if(u=$destroyable[0].childNodes[0],u.attributes)for(s=0;s<u.attributes.length;s++)u.attributes[s].nodeName.indexOf("jQuery")===0&&u.removeAttribute(u.attributes[s].nodeName);h.innerHTML="";h.appendChild($destroyable[0].childNodes[0]);l+=h.innerHTML}y=n(i.overflow.id)[0];y.innerHTML=l}else r($col,$destroyable.contents());t.data("columnizing",!1);i.overflow&&i.overflow.doneFunc&&i.overflow.doneFunc();i.doneFunc()}}function o(t){return t.nodeType==3?/^\s+$/.test(t.nodeValue)?t.previousSibling?o(t.previousSibling):!1:!1:t.nodeType!=1?!1:n(t).hasClass(f("dontend"))?!0:t.childNodes.length===0?!1:o(t.childNodes[t.childNodes.length-1])}function w(){var g,l,nt,u,et,h,ot,yt,st,ut,rt,pt,ft;if(c=0,p!=t.width()){p=t.width();var w=Math.round(t.width()/i.width),tt=i.width,vt=i.height;if(i.columns&&(w=i.columns),s&&(w=e.find(f("columnbreak",!0)).length+1,tt=!1),w<=1)return b();if(!t.data("columnizing")){t.data("columnized",!0);t.data("columnizing",!0);t.empty();t.append(n("<div style='width:"+i.setWidth(w)+"%; float: "+i.columnFloat+";'><\/div>"));u=t.children(":last");r(u,e.clone());y=u.height();t.empty();var k=y/w,d=3,it=!1;for(i.overflow?(d=1,k=i.overflow.height):vt&&tt&&(d=1,k=vt,it=!0),g=0;g<d&&g<20;g++){t.empty();try{l=e.clone(!0)}catch(kt){l=e.clone()}for(l.css("visibility","hidden"),h=0;h<w;h++)nt=h===0?f("first"):"",nt+=" "+f("column"),nt=h==w-1?f("last")+" "+nt:nt,t.append(n("<div class='"+nt+"' style='width:"+i.setWidth(w)+"%; float: "+i.columnFloat+";'><\/div>"));for(h=0;h<w-(i.overflow?0:1)||it&&l.contents().length;){for(t.children().length<=h&&t.append(n("<div class='"+nt+"' style='width:"+i.setWidth(w)+"%; float: "+i.columnFloat+";'><\/div>")),u=t.children().eq(h),it&&u.width(tt+"px"),a(u,l,u,k),v(u,l,u,k);u.contents(":last").length&&o(u.contents(":last").get(0));)et=u.contents(":last"),et.remove(),l.prepend(et);h++;u.contents().length===0&&l.contents().length?u.append(l.contents(":first")):h!=w-(i.overflow?0:1)||i.overflow||l.find(f("columnbreak",!0)).length&&w++}if(i.overflow&&!it){ot=!1;/*@cc_on@if(@_jscript_version<5.7)ot=!0;@end@*/if(yt=document.all&&navigator.appVersion.indexOf("MSIE 7.")!=-1,ot||yt){for(st="",ut=document.createElement("DIV");l[0].childNodes.length>0;){for(rt=l[0].childNodes[0],h=0;h<rt.attributes.length;h++)rt.attributes[h].nodeName.indexOf("jQuery")===0&&rt.removeAttribute(rt.attributes[h].nodeName);ut.innerHTML="";ut.appendChild(l[0].childNodes[0]);st+=ut.innerHTML}pt=n(i.overflow.id)[0];pt.innerHTML=st}else n(i.overflow.id).empty().append(l.contents().clone(!0))}else if(it)t.children().each(function(n){u=t.children().eq(n);u.width(tt+"px");n===0?u.addClass(f("first")):n==t.children().length-1?u.addClass(f("last")):(u.removeClass(f("first")),u.removeClass(f("last")))}),t.width(t.children().length*tt+"px");else{u=t.children().eq(t.children().length-1);l.contents().each(function(){u.append(n(this))});var bt=u.height(),dt=bt-k,ht=0,ct=1e7,lt=0,at=!1,wt=0;t.children().each(function(n){return function(t){var r=n.children().eq(t),u=r.children(":last").find(f("columnbreak",!0)).length,i;u||(i=r.height(),at=!1,ht+=i,i>lt&&(lt=i,at=!0),i<ct&&(ct=i),wt++)}}(t));ft=ht/wt;ht===0?g=d:i.lastNeverTallest&&at?(c+=5,k=k+30,g==d-1&&d++):lt-ct>30?k=ft+30:Math.abs(ft-k)>20?k=ft:g=d}t.append(n("<br style='clear:both;'>"))}t.find(f("column",!0)).find(":first"+f("removeiffirst",!0)).remove();t.find(f("column",!0)).find(":last"+f("removeiflast",!0)).remove();t.find(f("split",!0)).find(":first"+f("removeiffirst",!0)).remove();t.find(f("split",!0)).find(":last"+f("removeiflast",!0)).remove();t.data("columnizing",!1);i.overflow&&i.overflow.doneFunc();i.doneFunc()}}}var t=i.target?n(i.target):n(this),y=n(this).height(),e=n("<div><\/div>"),p=0,s=i.manualBreaks,h=u.cssClassPrefix,c,l;if(typeof i.cssClassPrefix=="string"&&(h=i.cssClassPrefix),c=0,r(e,n(this).contents().clone(!0)),!i.ignoreImageLoading&&!i.target&&!t.data("imageLoaded")&&(t.data("imageLoaded",!0),n(this).find("img").length>0)){l=function(n,t){return function(){n.data("firstImageLoaded")||(n.data("firstImageLoaded","true"),r(n.empty(),t.children().clone(!0)),n.columnize(i))}}(n(this),e);n(this).find("img").one("load",l);n(this).find("img").one("abort",l);return}t.empty();w();i.buildOnce||n(window).resize(function(){i.buildOnce||(t.data("timeout")&&clearTimeout(t.data("timeout")),t.data("timeout",setTimeout(w,200)))})})};n.fn.uncolumnize=function(){this.each(function(){var i=n(this),r;(r=i.data(t))&&i.replaceWith(r)})};n.fn.renumberByJS=function(t,i,r,u){var s,f,h,e,c,o,l,a;if(this.setList=function(t,i,r){var c=this.before.parents(),o,u,h,f,s,e;return(o=n(t[this.offset-1]).find(">*"),o.last()[0].tagName!=r.toUpperCase())?(this.debug&&console.log("Last item in previous column, isn't a list..."),0):(o=o.length,u=1,u=this.lastOther<=0?this.before.children().length+1:n(c[this.lastOther]).children().length+1,n(t[this.offset]).find(r+":first li.split").length&&(h=n(t[this.offset-1]).find(r+":last li:last"),this.elipsisText===""||n(t[this.offset-1]).find(r+":last ~ div").length||n(t[this.offset-1]).find(r+":last ~ p").length||n(h).find("ul, ol, dl").length==0&&(f=h.last().text(),s=f.length,f.substring(s-1)==";"?f.substring(s-4)!=this.elipsisText+";"&&(f=f.substring(0,s-1)+this.elipsisText+";"):f.substring(s-3)!=this.elipsisText&&(f+=this.elipsisText),h.last().text(f)),n(t[this.offset]).find(r+":first >li.split >"+r).length==0&&u--),o==1&&(u+=this.prevMax),this.nest>1?(this.debug&&console.log("Supposed to be a nested list...decr"),u--,e=n(t[this.offset-1]).find(r+":first li.split:first"),e.length>0&&(this.debug&&console.log("Previous column started with a split item, so that count is one less than expected"),u--),e=n(t[this.offset]).find(r+":first li:first").clone(),e.children().remove(),n.trim(e.text()).length>0&&(this.debug&&console.log("If that was a complete list in the previous column, don't decr."),u++,n(t[this.offset-1]).find(">"+r+":last ").children().length==0&&(this.debug&&console.log("unless that was empty, in which case revert"),u--))):(e=n(t[this.offset]).find(r+":first li:first "+r+".split li.split"),e.length>0&&(this.debug&&console.log("[Nested] Column started with a split item, so that count is one less than expected"),u--)),this.debug&&console.log("Setting the start value to "+u+" ("+this.prevMax+")"),u>0&&(typeof this.setColumnStart=="function"?this.setColumnStart(i,u):i.attr("start",u)),0)},typeof r=="undefined"&&(r=!1),typeof u=="undefined"&&(u=!1),!r&&!u)throw"renumberByJS(): Bad param, must pass an id or a class";for(s="",this.prevMax=1,s=u?"."+u:"#"+r,f=t.toLowerCase(),h=t.toUpperCase(),this.cols=n(s),this.debug&&console.log("There are "+this.cols.length+" items, looking for "+f),this.before=n(this.cols[0]).find(f+":last"),this.prevMax=this.before.children().length,this.offset=1;this.offset<this.cols.length;this.offset++){if(this.debug&&console.log("iterating "+this.offset+"...[of "+this.cols.length+"]"),this.offset%i==0){this.debug&&console.log("First column (in theory..)");this.prevMax=1;continue}if(this.before=n(this.cols[this.offset-1]).find(f+":last"),this.before.length){if(this.debug&&console.log("Have some "+t+" elements in the previous column"),e=n(this.cols[this.offset]).find(f+":first"),c=n(this.cols[this.offset]).find("*:first"),c[0]!==e[0])continue;for(o=this.before.parents(),this.lastOther=0,l=!1;this.lastOther<o.length;this.lastOther++)if(o[this.lastOther].tagName!=h&&o[this.lastOther].tagName!="LI"){l=!0;this.lastOther--;break}this.nest=1;n(this.cols[this.offset]).find(">"+f+":first li "+f+":first").length&&(this.nest=2);this.setList(this.cols,e,f);this.lastOther--;e=n(this.cols[this.offset]).find(f+":first li "+f+":first");e.length&&(this.before=n(this.cols[this.offset-1]).find(">"+f+":last li "+f+":last"),this.prevMax=0,this.nest=1,this.setList(this.cols,e,f));a=n(this.cols[this.offset-1]).find(">"+f+":last");this.prevMax=a.children().length}}return 0}}(jQuery),function(n,t,i){function h(i,r,u){var f=t.createElement(i);return r&&(f.id=e+r),u&&(f.style.cssText=u),n(f)}function ai(){return i.innerHeight?i.innerHeight:n(i).height()}function kt(t,i){i!==Object(i)&&(i={});this.cache={};this.el=t;this.value=function(t){var r;return this.cache[t]===undefined&&(r=n(this.el).attr("data-cbox-"+t),r!==undefined?this.cache[t]=r:i[t]!==undefined?this.cache[t]=i[t]:ni[t]!==undefined&&(this.cache[t]=ni[t])),this.cache[t]};this.get=function(t){var i=this.value(t);return n.isFunction(i)?i.call(this.el,this):i}}function dt(n){var i=c.length,t=(v+n)%i;return t<0?i+t:t}function a(n,t){return Math.round((/%/.test(n)?(t==="x"?g.width():ai())/100:1)*parseInt(n,10))}function pi(n,t){return n.get("photo")||n.get("photoRegex").test(t)}function wi(n,t){return n.get("retinaUrl")&&i.devicePixelRatio>1?t.replace(n.get("photoRegex"),n.get("retinaSuffix")):t}function bi(n){"contains"in u[0]&&!u[0].contains(n.target)&&n.target!==d[0]&&(n.stopPropagation(),u.focus())}function at(n){at.str!==n&&(u.add(d).removeClass(at.str).addClass(n),at.str=n)}function gi(t){v=0;t&&t!==!1&&t!=="nofollow"?(c=n("."+ft).filter(function(){var i=n.data(this,y),r=new kt(this,i);return r.get("rel")===t}),v=c.index(r.el),v===-1&&(c=c.add(r.el),v=c.length-1)):c=n(r.el)}function ut(i){n(t).trigger(i);w.triggerHandler(i)}function gt(i){var e,f;if(!lt){if(e=n(i).data(y),r=new kt(i,e),gi(r.get("rel")),!it){it=ct=!0;at(r.get("className"));u.css({visibility:"hidden",display:"block",opacity:""});l=h(s,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden");p.css({width:"",height:""}).append(l);b=ri.height()+ei.height()+p.outerHeight(!0)-p.height();k=ui.width()+fi.width()+p.outerWidth(!0)-p.width();nt=l.outerHeight(!0);tt=l.outerWidth(!0);var c=a(r.get("initialWidth"),"x"),v=a(r.get("initialHeight"),"y"),g=r.get("maxWidth"),rt=r.get("maxHeight");if(r.w=Math.max((g!==!1?Math.min(c,a(g,"x")):c)-tt-k,0),r.h=Math.max((rt!==!1?Math.min(v,a(rt,"y")):v)-nt-b,0),l.css({width:"",height:r.h}),o.position(),ut(di),r.get("onOpen"),hi.add(oi).hide(),u.focus(),r.get("trapFocus")&&t.addEventListener){t.addEventListener("focus",bi,!0);w.one(ii,function(){t.removeEventListener("focus",bi,!0)})}if(r.get("returnFocus"))w.one(ii,function(){n(r.el).focus()})}f=parseFloat(r.get("opacity"));d.css({opacity:f===f?f:"",cursor:r.get("overlayClose")?"pointer":"",visibility:"visible"}).show();r.get("closeButton")?bt.html(r.get("close")).appendTo(p):bt.appendTo("<div/>");ir()}}function ki(){u||(li=!1,g=n(i),u=h(s).attr({id:y,"class":n.support.opacity===!1?e+"IE":"",role:"dialog",tabindex:"-1"}).hide(),d=h(s,"Overlay").hide(),wt=n([h(s,"LoadingOverlay")[0],h(s,"LoadingGraphic")[0]]),rt=h(s,"Wrapper"),p=h(s,"Content").append(oi=h(s,"Title"),si=h(s,"Current"),ht=n('<button type="button"/>').attr({id:e+"Previous"}),st=n('<button type="button"/>').attr({id:e+"Next"}),et=n('<button type="button"/>').attr({id:e+"Slideshow"}),wt),bt=n('<button type="button"/>').attr({id:e+"Close"}),rt.append(h(s).append(h(s,"TopLeft"),ri=h(s,"TopCenter"),h(s,"TopRight")),h(s,!1,"clear:left").append(ui=h(s,"MiddleLeft"),p,fi=h(s,"MiddleRight")),h(s,!1,"clear:left").append(h(s,"BottomLeft"),ei=h(s,"BottomCenter"),h(s,"BottomRight"))).find("div div").css({float:"left"}),ot=h(s,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),hi=st.add(ht).add(si).add(et));t.body&&!u.parent().length&&n(t.body).append(d,u.append(rt,ot))}function tr(){function i(n){n.which>1||n.shiftKey||n.altKey||n.metaKey||n.ctrlKey||(n.preventDefault(),gt(this))}if(u){if(!li)if(li=!0,st.click(function(){o.next()}),ht.click(function(){o.prev()}),bt.click(function(){o.close()}),d.click(function(){r.get("overlayClose")&&o.close()}),n(t).bind("keydown."+e,function(n){var t=n.keyCode;it&&r.get("escKey")&&t===27&&(n.preventDefault(),o.close());it&&r.get("arrowKey")&&c[1]&&!n.altKey&&(t===37?(n.preventDefault(),ht.click()):t===39&&(n.preventDefault(),st.click()))}),n.isFunction(n.fn.on))n(t).on("click."+e,"."+ft,i);else n("."+ft).live("click."+e,i);return!0}return!1}function ir(){var t,y,u=o.prep,p,d=++ci,l;if(ct=!0,f=!1,ut(pt),ut(vt),r.get("onLoad"),r.h=r.get("height")?a(r.get("height"),"y")-nt-b:r.get("innerHeight")&&a(r.get("innerHeight"),"y"),r.w=r.get("width")?a(r.get("width"),"x")-tt-k:r.get("innerWidth")&&a(r.get("innerWidth"),"x"),r.mw=r.w,r.mh=r.h,r.get("maxWidth")&&(r.mw=a(r.get("maxWidth"),"x")-tt-k,r.mw=r.w&&r.w<r.mw?r.w:r.mw),r.get("maxHeight")&&(r.mh=a(r.get("maxHeight"),"y")-nt-b,r.mh=r.h&&r.h<r.mh?r.h:r.mh),t=r.get("href"),vi=setTimeout(function(){wt.show()},100),r.get("inline")){l=n(t).eq(0);p=n("<div>").hide().insertBefore(l);w.one(pt,function(){p.replaceWith(l)});u(l)}else if(r.get("iframe"))u(" ");else if(r.get("html"))u(r.get("html"));else if(pi(r,t)){t=wi(r,t);f=r.get("createImg");n(f).addClass(e+"Photo").bind("error."+e,function(){u(h(s,"Error").html(r.get("imgError")))}).one("load",function(){d===ci&&setTimeout(function(){var t;r.get("retinaImage")&&i.devicePixelRatio>1&&(f.height=f.height/i.devicePixelRatio,f.width=f.width/i.devicePixelRatio);r.get("scalePhotos")&&(y=function(){f.height-=f.height*t;f.width-=f.width*t},r.mw&&f.width>r.mw&&(t=(f.width-r.mw)/f.width,y()),r.mh&&f.height>r.mh&&(t=(f.height-r.mh)/f.height,y()));r.h&&(f.style.marginTop=Math.max(r.mh-f.height,0)/2+"px");c[1]&&(r.get("loop")||c[v+1])&&(f.style.cursor="pointer",n(f).bind("click."+e,function(){o.next()}));f.style.width=f.width+"px";f.style.height=f.height+"px";u(f)},1)});f.src=t}else t&&ot.load(t,r.get("data"),function(t,i){d===ci&&u(i==="error"?h(s,"Error").html(r.get("xhrError")):n(this).contents())})}var ni={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:undefined,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 n(this).attr("href")},title:function(){return this.title},createImg:function(){var t=new Image,i=n(this).data("cbox-img-attrs");return typeof i=="object"&&n.each(i,function(n,i){t[n]=i}),t},createIframe:function(){var i=t.createElement("iframe"),r=n(this).data("cbox-iframe-attrs");return typeof r=="object"&&n.each(r,function(n,t){i[n]=t}),"frameBorder"in i&&(i.frameBorder=0),"allowTransparency"in i&&(i.allowTransparency="true"),i.name=(new Date).getTime(),i.allowFullscreen=!0,i}},y="colorbox",e="cbox",ft=e+"Element",di=e+"_open",vt=e+"_load",yt=e+"_complete",ti=e+"_cleanup",ii=e+"_closed",pt=e+"_purge",d,u,rt,p,ri,ui,fi,ei,c,g,l,ot,wt,oi,si,et,st,ht,bt,hi,w=n("<a/>"),r,b,k,nt,tt,v,f,it,ct,lt,vi,o,s="div",ci=0,yi={},li,nr=function(){function t(){clearTimeout(l)}function s(){(r.get("loop")||c[v+1])&&(t(),l=setTimeout(o.next,r.get("slideshowSpeed")))}function a(){et.html(r.get("slideshowStop")).unbind(i).one(i,y);w.bind(yt,s).bind(vt,t);u.removeClass(n+"off").addClass(n+"on")}function y(){t();w.unbind(yt,s).unbind(vt,t);et.html(r.get("slideshowStart")).unbind(i).one(i,function(){o.next();a()});u.removeClass(n+"on").addClass(n+"off")}function h(){f=!1;et.hide();t();w.unbind(yt,s).unbind(vt,t);u.removeClass(n+"off "+n+"on")}var f,n=e+"Slideshow_",i="click."+e,l;return function(){if(f)r.get("slideshow")||(w.unbind(ti,h),h());else if(r.get("slideshow")&&c[1]){f=!0;w.one(ti,h);r.get("slideshowAuto")?a():y();et.show()}}}();n[y]||(n(ki),o=n.fn[y]=n[y]=function(t,i){var u,r=this;return(t=t||{},n.isFunction(r)&&(r=n("<a/>"),t.open=!0),!r[0])?r:(ki(),tr()&&(i&&(t.onComplete=i),r.each(function(){var i=n.data(this,y)||{};n.data(this,y,n.extend(i,t))}).addClass(ft),u=new kt(r[0],t),u.get("open")&&gt(r[0])),r)},o.position=function(t,i){function w(){ri[0].style.width=ei[0].style.width=p[0].style.width=parseInt(u[0].style.width,10)-k+"px";p[0].style.height=ui[0].style.height=fi[0].style.height=parseInt(u[0].style.height,10)-b+"px"}var f,h=0,c=0,s=u.offset(),l,v,y;g.unbind("resize."+e);u.css({top:-9e4,left:-9e4});l=g.scrollTop();v=g.scrollLeft();r.get("fixed")?(s.top-=l,s.left-=v,u.css({position:"fixed"})):(h=l,c=v,u.css({position:"absolute"}));c+=r.get("right")!==!1?Math.max(g.width()-r.w-tt-k-a(r.get("right"),"x"),0):r.get("left")!==!1?a(r.get("left"),"x"):Math.round(Math.max(g.width()-r.w-tt-k,0)/2);h+=r.get("bottom")!==!1?Math.max(ai()-r.h-nt-b-a(r.get("bottom"),"y"),0):r.get("top")!==!1?a(r.get("top"),"y"):Math.round(Math.max(ai()-r.h-nt-b,0)/2);u.css({top:s.top,left:s.left,visibility:"visible"});rt[0].style.width=rt[0].style.height="9999px";f={width:r.w+tt+k,height:r.h+nt+b,top:h,left:c};t&&(y=0,n.each(f,function(n){if(f[n]!==yi[n]){y=t;return}}),t=y);yi=f;t||u.css(f);u.dequeue().animate(f,{duration:t||0,complete:function(){w();ct=!1;rt[0].style.width=r.w+tt+k+"px";rt[0].style.height=r.h+nt+b+"px";r.get("reposition")&&setTimeout(function(){g.bind("resize."+e,o.position)},1);n.isFunction(i)&&i()},step:w})},o.resize=function(n){var t;it&&(n=n||{},n.width&&(r.w=a(n.width,"x")-tt-k),n.innerWidth&&(r.w=a(n.innerWidth,"x")),l.css({width:r.w}),n.height&&(r.h=a(n.height,"y")-nt-b),n.innerHeight&&(r.h=a(n.innerHeight,"y")),n.innerHeight||n.height||(t=l.scrollTop(),l.css({height:"auto"}),r.h=l.height()),l.css({height:r.h}),t&&l.scrollTop(t),o.position(r.get("transition")==="none"?0:r.get("speed")))},o.prep=function(i){function k(){return r.w=r.w||l.width(),r.w=r.mw&&r.mw<r.w?r.mw:r.w,r.w}function d(){return r.h=r.h||l.height(),r.h=r.mh&&r.mh<r.h?r.mh:r.h,r.h}if(it){var a,b=r.get("transition")==="none"?0:r.get("speed");l.remove();l=h(s,"LoadedContent").append(i);l.hide().appendTo(ot.show()).css({width:k(),overflow:r.get("scrolling")?"auto":"hidden"}).css({height:d()}).prependTo(p);ot.hide();n(f).css({float:"none"});at(r.get("className"));a=function(){function s(){n.support.opacity===!1&&u[0].style.removeAttribute("filter")}var f=c.length,i,o;if(it){if(o=function(){clearTimeout(vi);wt.hide();ut(yt);r.get("onComplete")},oi.html(r.get("title")).show(),l.show(),f>1?(typeof r.get("current")=="string"&&si.html(r.get("current").replace("{current}",v+1).replace("{total}",f)).show(),st[r.get("loop")||v<f-1?"show":"hide"]().html(r.get("next")),ht[r.get("loop")||v?"show":"hide"]().html(r.get("previous")),nr(),r.get("preloading")&&n.each([dt(-1),dt(1)],function(){var u,f=c[this],r=new kt(f,n.data(f,y)),i=r.get("href");i&&pi(r,i)&&(i=wi(r,i),u=t.createElement("img"),u.src=i)})):hi.hide(),r.get("iframe")){i=r.get("createIframe");r.get("scrolling")||(i.scrolling="no");n(i).attr({src:r.get("href"),"class":e+"Iframe"}).one("load",o).appendTo(l);w.one(pt,function(){i.src="//about:blank"});r.get("fastIframe")&&n(i).trigger("load")}else o();r.get("transition")==="fade"?u.fadeTo(b,1,s):s()}};r.get("transition")==="fade"?u.fadeTo(b,0,function(){o.position(0,a)}):o.position(b,a)}},o.next=function(){!ct&&c[1]&&(r.get("loop")||c[v+1])&&(v=dt(1),gt(c[v]))},o.prev=function(){!ct&&c[1]&&(r.get("loop")||v)&&(v=dt(-1),gt(c[v]))},o.close=function(){it&&!lt&&(lt=!0,it=!1,ut(ti),r.get("onCleanup"),g.unbind("."+e),d.fadeTo(r.get("fadeOut")||0,0),u.stop().fadeTo(r.get("fadeOut")||0,0,function(){u.hide();d.hide();ut(pt);l.remove();setTimeout(function(){lt=!1;ut(ii);r.get("onClosed")},1)}))},o.remove=function(){u&&(u.stop(),n[y].close(),u.stop(!1,!0).remove(),d.remove(),lt=!1,u=null,n("."+ft).removeData(y).removeClass(ft),n(t).unbind("click."+e).unbind("keydown."+e))},o.element=function(){return n(r.el)},o.settings=ni)}(jQuery,document,window),function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery"],n):typeof module!="undefined"&&module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){"use strict";function r(t){return!t.nodeName||n.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])!==-1}function i(t){return n.isFunction(t)||n.isPlainObject(t)?t:{top:t,left:t}}var t=n.scrollTo=function(t,i,r){return n(window).scrollTo(t,i,r)};return t.defaults={axis:"xy",duration:0,limit:!0},n.fn.scrollTo=function(u,f,e){typeof f=="object"&&(e=f,f=0);typeof e=="function"&&(e={onAfter:e});u==="max"&&(u=9e9);e=n.extend({},t.defaults,e);f=f||e.duration;var o=e.queue&&e.axis.length>1;return o&&(f/=2),e.offset=i(e.offset),e.over=i(e.over),this.each(function(){function p(t){var i=n.extend({},e,{queue:!0,duration:f,complete:t&&function(){t.call(c,s,e)}});a.animate(h,i)}var y;if(u!==null){var l=r(this),c=l?this.contentWindow||window:this,a=n(c),s=u,h={},v;switch(typeof s){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(s)){s=i(s);break}s=l?n(s):n(s,c);case"object":if(s.length===0)return;(s.is||s.style)&&(v=(s=n(s)).offset())}y=n.isFunction(e.offset)&&e.offset(c,s)||e.offset;n.each(e.axis.split(""),function(n,i){var w=i==="x"?"Left":"Top",u=w.toLowerCase(),r="scroll"+w,b=a[r](),k=t.max(c,i),f;v?(h[r]=v[u]+(l?0:b-a.offset()[u]),e.margin&&(h[r]-=parseInt(s.css("margin"+w),10)||0,h[r]-=parseInt(s.css("border"+w+"Width"),10)||0),h[r]+=y[u]||0,e.over[u]&&(h[r]+=s[i==="x"?"width":"height"]()*e.over[u])):(f=s[u],h[r]=f.slice&&f.slice(-1)==="%"?parseFloat(f)/100*k:f);e.limit&&/^\d+$/.test(h[r])&&(h[r]=h[r]<=0?0:Math.min(h[r],k));!n&&e.axis.length>1&&(b===h[r]?h={}:o&&(p(e.onAfterFirst),h={}))});p(e.onAfter)}})},t.max=function(t,i){var u=i==="x"?"Width":"Height",f="scroll"+u;if(!r(t))return t[f]-n(t)[u.toLowerCase()]();var e="client"+u,o=t.ownerDocument||t.document,s=o.documentElement,h=o.body;return Math.max(s[f],h[f])-Math.min(s[e],h[e])},n.Tween.propHooks.scrollLeft=n.Tween.propHooks.scrollTop={get:function(t){return n(t.elem)[t.prop]()},set:function(t){var r=this.get(t),i;if(t.options.interrupt&&t._last&&t._last!==r)return n(t.elem).stop();i=Math.round(t.now);r!==i&&(n(t.elem)[t.prop](i),t._last=this.get(t))}},t}),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?module.exports=n:n(jQuery)}(function(n){function e(r){var f=r||window.event,w=h.call(arguments,1),l=0,o=0,e=0,a=0,b=0,k=0,v,y,p;if(r=n.event.fix(f),r.type="mousewheel","detail"in f&&(e=f.detail*-1),"wheelDelta"in f&&(e=f.wheelDelta),"wheelDeltaY"in f&&(e=f.wheelDeltaY),"wheelDeltaX"in f&&(o=f.wheelDeltaX*-1),"axis"in f&&f.axis===f.HORIZONTAL_AXIS&&(o=e*-1,e=0),l=e===0?o:e,"deltaY"in f&&(e=f.deltaY*-1,l=e),"deltaX"in f&&(o=f.deltaX,e===0&&(l=o*-1)),e!==0||o!==0)return f.deltaMode===1?(v=n.data(this,"mousewheel-line-height"),l*=v,e*=v,o*=v):f.deltaMode===2&&(y=n.data(this,"mousewheel-page-height"),l*=y,e*=y,o*=y),a=Math.max(Math.abs(e),Math.abs(o)),(!t||a<t)&&(t=a,s(f,a)&&(t/=40)),s(f,a)&&(l/=40,o/=40,e/=40),l=Math[l>=1?"floor":"ceil"](l/t),o=Math[o>=1?"floor":"ceil"](o/t),e=Math[e>=1?"floor":"ceil"](e/t),i.settings.normalizeOffset&&this.getBoundingClientRect&&(p=this.getBoundingClientRect(),b=r.clientX-p.left,k=r.clientY-p.top),r.deltaX=o,r.deltaY=e,r.deltaFactor=t,r.offsetX=b,r.offsetY=k,r.deltaMode=0,w.unshift(r,l,o,e),u&&clearTimeout(u),u=setTimeout(c,200),(n.event.dispatch||n.event.handle).apply(this,w)}function c(){t=null}function s(n,t){return i.settings.adjustOldDeltas&&n.type==="mousewheel"&&t%120==0}var o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],h=Array.prototype.slice,u,t,f,i;if(n.event.fixHooks)for(f=o.length;f;)n.event.fixHooks[o[--f]]=n.event.mouseHooks;i=n.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=r.length;t;)this.addEventListener(r[--t],e,!1);else this.onmousewheel=e;n.data(this,"mousewheel-line-height",i.getLineHeight(this));n.data(this,"mousewheel-page-height",i.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=r.length;t;)this.removeEventListener(r[--t],e,!1);else this.onmousewheel=null;n.removeData(this,"mousewheel-line-height");n.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var r=n(t),i=r["offsetParent"in n.fn?"offsetParent":"parent"]();return i.length||(i=n("body")),parseInt(i.css("fontSize"),10)||parseInt(r.css("fontSize"),10)||16},getPageHeight:function(t){return n(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})}),function(n,t){function v(n,t,r){var e=n.children(),o=!1,u,s,f;for(n.empty(),u=0,s=e.length;u<s;u++)if(f=e.eq(u),n.append(f),r&&n.append(r),i(n,t)){f.remove();o=!0;break}else r&&r.detach();return o}function e(t,r,u,f,o){var s=!1,h="a, table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, blockquote, select, optgroup, option, textarea, script, style",c="script, .dotdotdot-keep";return t.contents().detach().each(function(){var a=this,l=n(a);if(typeof a=="undefined")return!0;if(l.is(c))t.append(l);else{if(s)return!0;t.append(l);!o||l.is(f.after)||l.find(f.after).length||t[t.is(h)?"after":"append"](o);i(u,f)&&(s=a.nodeType==3?y(l,r,u,f,o):e(l,r,u,f,o));s||o&&o.detach()}}),r.addClass("is-truncated"),s}function y(t,f,e,s,c){var l=t[0],nt,k,d,tt;if(!l)return!1;var y=h(l),it=y.indexOf(" ")!==-1?" ":"　",p=s.wrap=="letter"?"":it,a=y.split(p),g=-1,w=-1,b=0,v=a.length-1;for(s.fallbackToLetter&&b==0&&v==0&&(p="",a=y.split(p),v=a.length-1);b<=v&&!(b==0&&v==0);){if(nt=Math.floor((b+v)/2),nt==w)break;w=nt;u(l,a.slice(0,w+1).join(p)+s.ellipsis);e.children().each(function(){n(this).toggle().toggle()});i(e,s)?(v=w,s.fallbackToLetter&&b==0&&v==0&&(p="",a=a[0].split(p),g=-1,w=-1,b=0,v=a.length-1)):(g=w,b=w)}return g==-1||a.length==1&&a[0].length==0?(k=t.parent(),t.detach(),d=c&&c.closest(k).length?c.length:0,k.contents().length>d?l=r(k.contents().eq(-1-d),f):(l=r(k,f,!0),d||k.detach()),l&&(y=o(h(l),s),u(l,y),d&&c&&(tt=c.parent(),n(l).parent().append(c),n.trim(tt.html())||tt.remove()))):(y=o(a.slice(0,g+1).join(p),s),u(l,y)),!0}function i(n,t){return n.innerHeight()>t.maxHeight}function o(t,i){while(n.inArray(t.slice(-1),i.lastCharacter.remove)>-1)t=t.slice(0,-1);return n.inArray(t.slice(-1),i.lastCharacter.noEllipsis)<0&&(t+=i.ellipsis),t}function s(n){return{width:n.innerWidth(),height:n.innerHeight()}}function u(n,t){n.innerText?n.innerText=t:n.nodeValue?n.nodeValue=t:n.textContent&&(n.textContent=t)}function h(n){return n.innerText?n.innerText:n.nodeValue?n.nodeValue:n.textContent?n.textContent:""}function c(n){do n=n.previousSibling;while(n&&n.nodeType!==1&&n.nodeType!==3);return n}function r(t,i,u){var e=t&&t[0],f;if(e){if(!u){if(e.nodeType===3)return e;if(n.trim(t.text()))return r(t.contents().last(),i)}for(f=c(e);!f;){if(t=t.parent(),t.is(i)||!t.length)return!1;f=c(t[0])}if(f)return r(n(f),i)}return!1}function p(t,i){return t?typeof t=="string"?(t=n(t,i),t.length?t:!1):t.jquery?t:!1:!1}function w(n){for(var t,r=n.innerHeight(),u=["paddingTop","paddingBottom"],i=0,f=u.length;i<f;i++)t=parseInt(n.css(u[i]),10),isNaN(t)&&(t=0),r-=t;return r}var f,l,a;n.fn.dotdotdot||(n.fn.dotdotdot=function(t){var r,c;if(this.length==0)return n.fn.dotdotdot.debug('No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){n(this).dotdotdot(t)});r=this;c=r.contents();r.data("dotdotdot")&&r.trigger("destroy.dot");r.data("dotdotdot-style",r.attr("style")||"");r.css("word-wrap","break-word");r.css("white-space")==="nowrap"&&r.css("white-space","normal");r.bind_events=function(){return r.bind("update.dot",function(t,f){r.removeClass("is-truncated");t.preventDefault();t.stopPropagation();switch(typeof u.height){case"number":u.maxHeight=u.height;break;case"function":u.maxHeight=u.height.call(r[0]);break;default:u.maxHeight=w(r)}u.maxHeight+=u.tolerance;typeof f!="undefined"&&((typeof f=="string"||"nodeType"in f&&f.nodeType===1)&&(f=n("<div />").append(f).contents()),f instanceof n&&(c=f));h=r.wrapInner('<div class="dotdotdot" />').children();h.contents().detach().end().append(c.clone(!0)).find("br").replaceWith("  <br />  ").end().css({height:"auto",width:"auto",border:"none",padding:0,margin:0});var s=!1,l=!1;return o.afterElement&&(s=o.afterElement.clone(!0),s.show(),o.afterElement.detach()),i(h,u)&&(l=u.wrap=="children"?v(h,u,s):e(h,r,h,u,s)),h.replaceWith(h.contents()),h=null,n.isFunction(u.callback)&&u.callback.call(r[0],l,c),o.isTruncated=l,l}).bind("isTruncated.dot",function(n,t){return n.preventDefault(),n.stopPropagation(),typeof t=="function"&&t.call(r[0],o.isTruncated),o.isTruncated}).bind("originalContent.dot",function(n,t){return n.preventDefault(),n.stopPropagation(),typeof t=="function"&&t.call(r[0],c),c}).bind("destroy.dot",function(n){n.preventDefault();n.stopPropagation();r.unwatch().unbind_events().contents().detach().end().append(c).attr("style",r.data("dotdotdot-style")||"").removeClass("is-truncated").data("dotdotdot",!1)}),r};r.unbind_events=function(){return r.unbind(".dot"),r};r.watch=function(){if(r.unwatch(),u.watch=="window"){var t=n(window),i=t.width(),f=t.height();t.bind("resize.dot"+o.dotId,function(){i==t.width()&&f==t.height()&&u.windowResizeFix||(i=t.width(),f=t.height(),l&&clearInterval(l),l=setTimeout(function(){r.trigger("update.dot")},100))})}else a=s(r),l=setInterval(function(){if(r.is(":visible")){var n=s(r);(a.width!=n.width||a.height!=n.height)&&(r.trigger("update.dot"),a=n)}},500);return r};r.unwatch=function(){return n(window).unbind("resize.dot"+o.dotId),l&&clearInterval(l),r};var u=n.extend(!0,{},n.fn.dotdotdot.defaults,t),o={},a={},l=null,h=null;return u.lastCharacter.remove instanceof Array||(u.lastCharacter.remove=n.fn.dotdotdot.defaultArrays.lastCharacter.remove),u.lastCharacter.noEllipsis instanceof Array||(u.lastCharacter.noEllipsis=n.fn.dotdotdot.defaultArrays.lastCharacter.noEllipsis),o.afterElement=p(u.after,r),o.isTruncated=!1,o.dotId=f++,r.data("dotdotdot",!0).bind_events().trigger("update.dot"),u.watch&&r.watch(),r},n.fn.dotdotdot.defaults={ellipsis:"... ",wrap:"word",fallbackToLetter:!0,lastCharacter:{},tolerance:0,callback:null,after:null,height:null,watch:!1,windowResizeFix:!0},n.fn.dotdotdot.defaultArrays={lastCharacter:{remove:[" ","　",",",";",".","!","?"],noEllipsis:[]}},n.fn.dotdotdot.debug=function(){},f=1,l=n.fn.html,n.fn.html=function(i){return i!=t&&!n.isFunction(i)&&this.data("dotdotdot")?this.trigger("update",[i]):l.apply(this,arguments)},a=n.fn.text,n.fn.text=function(i){return i!=t&&!n.isFunction(i)&&this.data("dotdotdot")?(i=n("<div />").text(i).html(),this.trigger("update",[i])):a.apply(this,arguments)})}(jQuery);jQuery(document).ready(function(n){n(".dot-ellipsis").each(function(){var r=n(this).hasClass("dot-resize-update"),u=n(this).hasClass("dot-timer-update"),i=0,f=n(this).attr("class").split(/\s+/),t;n.each(f,function(n,t){var r=t.match(/^dot-height-(\d+)$/);r!==null&&(i=Number(r[1]))});t={};u&&(t.watch=!0);r&&(t.watch="window");i>0&&(t.height=i);n(this).dotdotdot(t)})});jQuery(window).on("load",function(){jQuery(".dot-ellipsis.dot-load-update").trigger("update.dot")})