function ucfirst(n){n+="";var t=n.charAt(0).toUpperCase();return t+n.substr(1)}function jumpToSection(n){$("html,body").animate({scrollTop:$("#"+n).offset().top-$("header.site").height()},150)}function scrollToTop(){return $("html, body").animate({scrollTop:0},0),!1}function goToByScroll(n){$("html,body").animate({scrollTop:$("#"+n).offset().top},500)}function scrollToClass(n){$("html,body").animate({scrollTop:$("."+n).offset().top-57},500)}function viewport(){var n=window,t="inner";return"innerWidth"in window||(t="client",n=document.documentElement||document.body),{width:n[t+"Width"],height:n[t+"Height"]}}function countdown(){var i=moment(),n=trackedMoment.clone(),t=n.diff(i,"milliseconds",!0),r;t=n.diff(i,"milliseconds",!0);months=Math.floor(moment.duration(t).asMonths());n=n.subtract("months",months).subtract("days",1);t=n.diff(i,"milliseconds",!0);days=Math.floor(moment.duration(t).asDays());n=n.subtract("days",days);t=n.diff(i,"milliseconds",!0);hours=Math.floor(moment.duration(t).asHours());n=n.subtract("hours",hours);t=n.diff(i,"milliseconds",!0);minutes=Math.floor(moment.duration(t).asMinutes());n=n.subtract("minutes",minutes);t=n.diff(i,"milliseconds",!0);seconds=Math.floor(moment.duration(t).asSeconds());r=$("#countdown");months>0?$(".months .val",r).text(months):$(".months").hide();days>0?$(".days .val",r).text(days):$(".days").hide();$(".hours .val",r).text(hours);$(".minutes .val",r).text(minutes);$(".seconds .val",r).text(seconds)}function reInitPrettyPhoto(){$("a[rel^='prettyPhoto']").prettyPhoto({theme:"dark_square",deeplinking:!1,social_tools:!1,allow_resize:!0,default_width:640,default_height:640})}function startTimer(n){trackedMoment=new moment(n);countdown();setInterval(countdown,1e3)}function initRotatorSlide(){$(".r-slide").each(function(){var n=$(this).width(),t=$("img",$(this)),i=t.width(),f=t.height(),r=$(".rotator-caption"),e=r.height(),u;if(i>n){var s=n/2,h=i/2,o=(i-n)/2;t.css("margin-left",-o+"px")}u=(f-e)/2;r.css("top",u-30+"px")})}function initSlideCaption(){$(".r-slide").each(function(){var t=$("img",$(this)),i=t.height(),n=$(".rotator-caption"),r=n.outerHeight(),u=(i-r)/2;n.css("top",u-30+"px")})}function setWidgetListViewModel(){var n=viewport().width;n>0&&n<=1023?eventListViewModel.pageWeight()!=1&&eventListViewModel.pageWeight(1):eventListViewModel.pageWeight(3)}var pp_alreadyInitialized,BrowserDetect,trackedMoment,jwplayer,$jw,_userPlayerReady;if(function(n,t){function gt(n){var t=n.length,r=i.type(n);return i.isWindow(n)?!1:1===n.nodeType&&t?!0:"array"===r||"function"!==r&&(0===t||"number"==typeof t&&t>0&&t-1 in n)}function te(n){var t=ni[n]={};return i.each(n.match(s)||[],function(n,i){t[i]=!0}),t}function ur(n,r,u,f){if(i.acceptData(n)){var h,o,c=i.expando,l=n.nodeType,s=l?i.cache:n,e=l?n[c]:n[c]&&c;if(e&&s[e]&&(f||s[e].data)||u!==t||"string"!=typeof r)return e||(e=l?n[c]=b.pop()||i.guid++:c),s[e]||(s[e]=l?{}:{toJSON:i.noop}),("object"==typeof r||"function"==typeof r)&&(f?s[e]=i.extend(s[e],r):s[e].data=i.extend(s[e].data,r)),o=s[e],f||(o.data||(o.data={}),o=o.data),u!==t&&(o[i.camelCase(r)]=u),"string"==typeof r?(h=o[r],null==h&&(h=o[i.camelCase(r)])):h=o,h}}function fr(n,t,r){if(i.acceptData(n)){var e,o,s=n.nodeType,u=s?i.cache:n,f=s?n[i.expando]:i.expando;if(u[f]){if(t&&(e=r?u[f]:u[f].data)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in e)?t=[t]:(t=i.camelCase(t),t=(t in e)?[t]:t.split(" ")),o=t.length;o--;)delete e[t[o]];if(r?!ti(e):!i.isEmptyObject(e))return}(r||(delete u[f].data,ti(u[f])))&&(s?i.cleanData([n],!0):i.support.deleteExpando||u!=u.window?delete u[f]:u[f]=null)}}}function er(n,r,u){if(u===t&&1===n.nodeType){var f="data-"+r.replace(rr,"-$1").toLowerCase();if(u=n.getAttribute(f),"string"==typeof u){try{u="true"===u?!0:"false"===u?!1:"null"===u?null:+u+""===u?+u:ir.test(u)?i.parseJSON(u):u}catch(e){}i.data(n,r,u)}else u=t}return u}function ti(n){var t;for(t in n)if(("data"!==t||!i.isEmptyObject(n[t]))&&"toJSON"!==t)return!1;return!0}function ct(){return!0}function g(){return!1}function cr(){try{return r.activeElement}catch(n){}}function ar(n,t){do n=n[t];while(n&&1!==n.nodeType);return n}function fi(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if("string"==typeof t){if(oe.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return i.inArray(n,t)>=0!==r})}function vr(n){var i=yr.split("|"),t=n.createDocumentFragment();if(t.createElement)while(i.length)t.createElement(i.pop());return t}function gr(n,t){return i.nodeName(n,"table")&&i.nodeName(1===t.nodeType?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function nu(n){return n.type=(null!==i.find.attr(n,"type"))+"/"+n.type,n}function tu(n){var t=ye.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function hi(n,t){for(var u,r=0;null!=(u=n[r]);r++)i._data(u,"globalEval",!t||i._data(t[r],"globalEval"))}function iu(n,t){if(1===t.nodeType&&i.hasData(n)){var u,f,o,s=i._data(n),r=i._data(t,s),e=s.events;if(e){delete r.handle;r.events={};for(u in e)for(f=0,o=e[u].length;o>f;f++)i.event.add(t,u,e[u][f])}r.data&&(r.data=i.extend({},r.data))}}function be(n,t){var r,f,u;if(1===t.nodeType){if(r=t.nodeName.toLowerCase(),!i.support.noCloneEvent&&t[i.expando]){u=i._data(t);for(f in u.events)i.removeEvent(t,f,u.handle);t.removeAttribute(i.expando)}"script"===r&&t.text!==n.text?(nu(t).text=n.text,tu(t)):"object"===r?(t.parentNode&&(t.outerHTML=n.outerHTML),i.support.html5Clone&&n.innerHTML&&!i.trim(t.innerHTML)&&(t.innerHTML=n.innerHTML)):"input"===r&&oi.test(n.type)?(t.defaultChecked=t.checked=n.checked,t.value!==n.value&&(t.value=n.value)):"option"===r?t.defaultSelected=t.selected=n.defaultSelected:("input"===r||"textarea"===r)&&(t.defaultValue=n.defaultValue)}}function u(n,r){var s,e,h=0,f=typeof n.getElementsByTagName!==o?n.getElementsByTagName(r||"*"):typeof n.querySelectorAll!==o?n.querySelectorAll(r||"*"):t;if(!f)for(f=[],s=n.childNodes||n;null!=(e=s[h]);h++)!r||i.nodeName(e,r)?f.push(e):i.merge(f,u(e,r));return r===t||r&&i.nodeName(n,r)?i.merge([n],f):f}function ke(n){oi.test(n.type)&&(n.defaultChecked=n.checked)}function ou(n,t){if(t in n)return t;for(var r=t.charAt(0).toUpperCase()+t.slice(1),u=t,i=eu.length;i--;)if(t=eu[i]+r,t in n)return t;return u}function ut(n,t){return n=t||n,"none"===i.css(n,"display")||!i.contains(n.ownerDocument,n)}function su(n,t){for(var f,r,o,e=[],u=0,s=n.length;s>u;u++)r=n[u],r.style&&(e[u]=i._data(r,"olddisplay"),f=r.style.display,t?(e[u]||"none"!==f||(r.style.display=""),""===r.style.display&&ut(r)&&(e[u]=i._data(r,"olddisplay",au(r.nodeName)))):e[u]||(o=ut(r),(f&&"none"!==f||!o)&&i._data(r,"olddisplay",o?f:i.css(r,"display"))));for(u=0;s>u;u++)r=n[u],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?e[u]||"":"none"));return n}function hu(n,t,i){var r=to.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function cu(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:"width"===t?1:0,o=0;4>e;e+=2)"margin"===r&&(o+=i.css(n,r+p[e],!0,f)),u?("content"===r&&(o-=i.css(n,"padding"+p[e],!0,f)),"margin"!==r&&(o-=i.css(n,"border"+p[e]+"Width",!0,f))):(o+=i.css(n,"padding"+p[e],!0,f),"padding"!==r&&(o+=i.css(n,"border"+p[e]+"Width",!0,f)));return o}function lu(n,t,r){var e=!0,u="width"===t?n.offsetWidth:n.offsetHeight,f=v(n),o=i.support.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,f);if(0>=u||null==u){if(u=y(n,t,f),(0>u||null==u)&&(u=n.style[t]),lt.test(u))return u;e=o&&(i.support.boxSizingReliable||u===n.style[t]);u=parseFloat(u)||0}return u+cu(n,t,r||(o?"border":"content"),e,f)+"px"}function au(n){var u=r,t=uu[n];return t||(t=vu(n,u),"none"!==t&&t||(rt=(rt||i("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(u.documentElement),u=(rt[0].contentWindow||rt[0].contentDocument).document,u.write("<!doctype html><html><body>"),u.close(),t=vu(n,u),rt.detach()),uu[n]=t),t}function vu(n,t){var r=i(t.createElement(n)).appendTo(t.body),u=i.css(r[0],"display");return r.remove(),u}function li(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||fo.test(n)?u(n,i):li(n+"["+("object"==typeof i?t:"")+"]",i,r,u)});else if(r||"object"!==i.type(t))u(n,t);else for(f in t)li(n+"["+f+"]",t[f],r,u)}function gu(n){return function(t,r){"string"!=typeof t&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(s)||[];if(i.isFunction(r))while(u=e[f++])"+"===u[0]?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function nf(n,r,u,f){function o(h){var c;return e[h]=!0,i.each(n[h]||[],function(n,i){var h=i(r,u,f);return"string"!=typeof h||s||e[h]?s?!(c=h):t:(r.dataTypes.unshift(h),o(h),!1)}),c}var e={},s=n===yi;return o(r.dataTypes[0])||!e["*"]&&o("*")}function pi(n,r){var f,u,e=i.ajaxSettings.flatOptions||{};for(u in r)r[u]!==t&&((e[u]?n:f||(f={}))[u]=r[u]);return f&&i.extend(!0,n,f),n}function ao(n,i,r){for(var s,o,f,e,h=n.contents,u=n.dataTypes;"*"===u[0];)u.shift(),o===t&&(o=n.mimeType||i.getResponseHeader("Content-Type"));if(o)for(e in h)if(h[e]&&h[e].test(o)){u.unshift(e);break}if(u[0]in r)f=u[0];else{for(e in r){if(!u[0]||n.converters[e+" "+u[0]]){f=e;break}s||(s=e)}f=f||s}return f?(f!==u[0]&&u.unshift(f),r[f]):t}function vo(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}function rf(){try{return new n.XMLHttpRequest}catch(t){}}function yo(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function ff(){return setTimeout(function(){it=t}),it=i.now()}function ef(n,t,i){for(var u,f=(ft[t]||[]).concat(ft["*"]),r=0,e=f.length;e>r;r++)if(u=f[r].call(i,t,n))return u}function of(n,t,r){var h,e,o=0,l=pt.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(e)return!1;for(var s=it||ff(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,o=u.tweens.length;o>r;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),1>i&&o?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{}},r),originalProperties:t,originalOptions:r,startTime:it||ff(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(e)return this;for(e=!0;r>i;i++)u.tweens[i].run(1);return t?f.resolveWith(n,[u,t]):f.rejectWith(n,[u,t]),this}}),s=u.props;for(bo(s,u.opts.specialEasing);l>o;o++)if(h=pt[o].call(u,n,s,u.opts))return h;return i.map(s,ef,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function bo(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function ko(n,t,r){var u,a,v,c,e,y,s=this,l={},o=n.style,h=n.nodeType&&ut(n),f=i._data(n,"fxshow");r.queue||(e=i._queueHooks(n,"fx"),null==e.unqueued&&(e.unqueued=0,y=e.empty.fire,e.empty.fire=function(){e.unqueued||y()}),e.unqueued++,s.always(function(){s.always(function(){e.unqueued--;i.queue(n,"fx").length||e.empty.fire()})}));1===n.nodeType&&("height"in t||"width"in t)&&(r.overflow=[o.overflow,o.overflowX,o.overflowY],"inline"===i.css(n,"display")&&"none"===i.css(n,"float")&&(i.support.inlineBlockNeedsLayout&&"inline"!==au(n.nodeName)?o.zoom=1:o.display="inline-block"));r.overflow&&(o.overflow="hidden",i.support.shrinkWrapBlocks||s.always(function(){o.overflow=r.overflow[0];o.overflowX=r.overflow[1];o.overflowY=r.overflow[2]}));for(u in t)if(a=t[u],po.exec(a)){if(delete t[u],v=v||"toggle"===a,a===(h?"hide":"show"))continue;l[u]=f&&f[u]||i.style(n,u)}if(!i.isEmptyObject(l)){f?"hidden"in f&&(h=f.hidden):f=i._data(n,"fxshow",{});v&&(f.hidden=!h);h?i(n).show():s.done(function(){i(n).hide()});s.done(function(){var t;i._removeData(n,"fxshow");for(t in l)i.style(n,t,l[t])});for(u in l)c=ef(h?f[u]:0,u,s),u in f||(f[u]=c.start,h&&(c.end=c.start,c.start="width"===u||"height"===u?1:0))}}function f(n,t,i,r,u){return new f.prototype.init(n,t,i,r,u)}function wt(n,t){var r,i={height:n},u=0;for(t=t?1:0;4>u;u+=2-t)r=p[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function sf(n){return i.isWindow(n)?n:9===n.nodeType?n.defaultView||n.parentWindow:!1}var et,bi,o=typeof t,hf=n.location,r=n.document,ki=r.documentElement,cf=n.jQuery,lf=n.$,ot={},b=[],bt="1.10.2",di=b.concat,kt=b.push,l=b.slice,gi=b.indexOf,af=ot.toString,k=ot.hasOwnProperty,dt=bt.trim,i=function(n,t){return new i.fn.init(n,t,bi)},st=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,s=/\S+/g,vf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,yf=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,nr=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,pf=/^[\],:{}\s]*$/,wf=/(?:^|:|,)(?:\s*\[)+/g,bf=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,kf=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,df=/^-ms-/,gf=/-([\da-z])/gi,ne=function(n,t){return t.toUpperCase()},h=function(n){(r.addEventListener||"load"===n.type||"complete"===r.readyState)&&(tr(),i.ready())},tr=function(){r.addEventListener?(r.removeEventListener("DOMContentLoaded",h,!1),n.removeEventListener("load",h,!1)):(r.detachEvent("onreadystatechange",h),n.detachEvent("onload",h))},ni,ir,rr,wi,at,nt,tt,tf,vt;i.fn=i.prototype={jquery:bt,constructor:i,init:function(n,u,f){var e,o;if(!n)return this;if("string"==typeof n){if(e="<"===n.charAt(0)&&">"===n.charAt(n.length-1)&&n.length>=3?[null,n,null]:yf.exec(n),!e||!e[1]&&u)return!u||u.jquery?(u||f).find(n):this.constructor(u).find(n);if(e[1]){if(u=u instanceof i?u[0]:u,i.merge(this,i.parseHTML(e[1],u&&u.nodeType?u.ownerDocument||u:r,!0)),nr.test(e[1])&&i.isPlainObject(u))for(e in u)i.isFunction(this[e])?this[e](u[e]):this.attr(e,u[e]);return this}if(o=r.getElementById(e[2]),o&&o.parentNode){if(o.id!==e[2])return f.find(n);this.length=1;this[0]=o}return this.context=r,this.selector=n,this}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?f.ready(n):(n.selector!==t&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))},selector:"",length:0,toArray:function(){return l.call(this)},get:function(n){return null==n?this.toArray():0>n?this[this.length+n]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n,t){return i.each(this,n,t)},ready:function(n){return i.ready.promise().done(n),this},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(0>n?i:0);return this.pushStack(t>=0&&i>t?[this[t]]:[])},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:kt,sort:[].sort,splice:[].splice};i.fn.init.prototype=i.fn;i.extend=i.fn.extend=function(){var u,o,r,e,s,h,n=arguments[0]||{},f=1,l=arguments.length,c=!1;for("boolean"==typeof n&&(c=n,n=arguments[1]||{},f=2),"object"==typeof n||i.isFunction(n)||(n={}),l===f&&(n=this,--f);l>f;f++)if(null!=(s=arguments[f]))for(e in s)u=n[e],r=s[e],n!==r&&(c&&r&&(i.isPlainObject(r)||(o=i.isArray(r)))?(o?(o=!1,h=u&&i.isArray(u)?u:[]):h=u&&i.isPlainObject(u)?u:{},n[e]=i.extend(c,h,r)):r!==t&&(n[e]=r));return n};i.extend({expando:"jQuery"+(bt+Math.random()).replace(/\D/g,""),noConflict:function(t){return n.$===i&&(n.$=lf),t&&n.jQuery===i&&(n.jQuery=cf),i},isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){if(n===!0?!--i.readyWait:!i.isReady){if(!r.body)return setTimeout(i.ready);i.isReady=!0;n!==!0&&--i.readyWait>0||(et.resolveWith(r,[i]),i.fn.trigger&&i(r).trigger("ready").off("ready"))}},isFunction:function(n){return"function"===i.type(n)},isArray:Array.isArray||function(n){return"array"===i.type(n)},isWindow:function(n){return null!=n&&n==n.window},isNumeric:function(n){return!isNaN(parseFloat(n))&&isFinite(n)},type:function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?ot[af.call(n)]||"object":typeof n},isPlainObject:function(n){var r;if(!n||"object"!==i.type(n)||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!k.call(n,"constructor")&&!k.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}if(i.support.ownLast)for(r in n)return k.call(n,r);for(r in n);return r===t||k.call(n,r)},isEmptyObject:function(n){var t;for(t in n)return!1;return!0},error:function(n){throw Error(n);},parseHTML:function(n,t,u){if(!n||"string"!=typeof n)return null;"boolean"==typeof t&&(u=t,t=!1);t=t||r;var f=nr.exec(n),e=!u&&[];return f?[t.createElement(f[1])]:(f=i.buildFragment([n],t,e),e&&i(e).remove(),i.merge([],f.childNodes))},parseJSON:function(r){return n.JSON&&n.JSON.parse?n.JSON.parse(r):null===r?r:"string"==typeof r&&(r=i.trim(r),r&&pf.test(r.replace(bf,"@").replace(kf,"]").replace(wf,"")))?Function("return "+r)():(i.error("Invalid JSON: "+r),t)},parseXML:function(r){var u,f;if(!r||"string"!=typeof r)return null;try{n.DOMParser?(f=new DOMParser,u=f.parseFromString(r,"text/xml")):(u=new ActiveXObject("Microsoft.XMLDOM"),u.async="false",u.loadXML(r))}catch(e){u=t}return u&&u.documentElement&&!u.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+r),u},noop:function(){},globalEval:function(t){t&&i.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(df,"ms-").replace(gf,ne)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t,i){var u,r=0,f=n.length,e=gt(n);if(i){if(e){for(;f>r;r++)if(u=t.apply(n[r],i),u===!1)break}else for(r in n)if(u=t.apply(n[r],i),u===!1)break}else if(e){for(;f>r;r++)if(u=t.call(n[r],r,n[r]),u===!1)break}else for(r in n)if(u=t.call(n[r],r,n[r]),u===!1)break;return n},trim:dt&&!dt.call("﻿ ")?function(n){return null==n?"":dt.call(n)}:function(n){return null==n?"":(n+"").replace(vf,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(gt(Object(n))?i.merge(r,"string"==typeof n?[n]:n):kt.call(r,n)),r},inArray:function(n,t,i){var r;if(t){if(gi)return gi.call(t,n,i);for(r=t.length,i=i?0>i?Math.max(0,r+i):i:0;r>i;i++)if(i in t&&t[i]===n)return i}return-1},merge:function(n,i){var f=i.length,u=n.length,r=0;if("number"==typeof f)for(;f>r;r++)n[u++]=i[r];else while(i[r]!==t)n[u++]=i[r++];return n.length=u,n},grep:function(n,t,i){var u,f=[],r=0,e=n.length;for(i=!!i;e>r;r++)u=!!t(n[r],r),i!==u&&f.push(n[r]);return f},map:function(n,t,i){var u,r=0,e=n.length,o=gt(n),f=[];if(o)for(;e>r;r++)u=t(n[r],r,i),null!=u&&(f[f.length]=u);else for(r in n)u=t(n[r],r,i),null!=u&&(f[f.length]=u);return di.apply([],f)},guid:1,proxy:function(n,r){var f,u,e;return"string"==typeof r&&(e=n[r],r=n,n=e),i.isFunction(n)?(f=l.call(arguments,2),u=function(){return n.apply(r||this,f.concat(l.call(arguments)))},u.guid=n.guid=n.guid||i.guid++,u):t},access:function(n,r,u,f,e,o,s){var h=0,l=n.length,c=null==u;if("object"===i.type(u)){e=!0;for(h in u)i.access(n,r,h,u[h],!0,o,s)}else if(f!==t&&(e=!0,i.isFunction(f)||(s=!0),c&&(s?(r.call(n,f),r=null):(c=r,r=function(n,t,r){return c.call(i(n),r)})),r))for(;l>h;h++)r(n[h],u,s?f:f.call(n[h],h,r(n[h],u)));return e?n:c?r.call(n):l?r(n[0],u):o},now:function(){return(new Date).getTime()},swap:function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f}});i.ready.promise=function(t){if(!et)if(et=i.Deferred(),"complete"===r.readyState)setTimeout(i.ready);else if(r.addEventListener)r.addEventListener("DOMContentLoaded",h,!1),n.addEventListener("load",h,!1);else{r.attachEvent("onreadystatechange",h);n.attachEvent("onload",h);var u=!1;try{u=null==n.frameElement&&r.documentElement}catch(e){}u&&u.doScroll&&function f(){if(!i.isReady){try{u.doScroll("left")}catch(n){return setTimeout(f,50)}tr();i.ready()}}()}return et.promise(t)};i.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(n,t){ot["[object "+t+"]"]=t.toLowerCase()});bi=i(r),function(n,t){function u(n,t,i,r){var p,u,f,l,w,a,k,c,g,d;if((t?t.ownerDocument||t:y)!==s&&nt(t),t=t||s,i=i||[],!n||"string"!=typeof n)return i;if(1!==(l=t.nodeType)&&9!==l)return[];if(v&&!r){if(p=or.exec(n))if(f=p[1]){if(9===l){if(u=t.getElementById(f),!u||!u.parentNode)return i;if(u.id===f)return i.push(u),i}else if(t.ownerDocument&&(u=t.ownerDocument.getElementById(f))&&ot(t,u)&&u.id===f)return i.push(u),i}else{if(p[2])return b.apply(i,t.getElementsByTagName(n)),i;if((f=p[3])&&e.getElementsByClassName&&t.getElementsByClassName)return b.apply(i,t.getElementsByClassName(f)),i}if(e.qsa&&(!h||!h.test(n))){if(c=k=o,g=t,d=9===l&&n,1===l&&"object"!==t.nodeName.toLowerCase()){for(a=pt(n),(k=t.getAttribute("id"))?c=k.replace(cr,"\\$&"):t.setAttribute("id",c),c="[id='"+c+"'] ",w=a.length;w--;)a[w]=c+wt(a[w]);g=ti.test(n)&&t.parentNode||t;d=a.join(",")}if(d)try{return b.apply(i,g.querySelectorAll(d)),i}catch(tt){}finally{k||t.removeAttribute("id")}}}return pr(n.replace(vt,"$1"),t,i,r)}function ri(){function n(i,u){return t.push(i+=" ")>r.cacheLength&&delete n[t.shift()],n[i]=u}var t=[];return n}function c(n){return n[o]=!0,n}function l(n){var t=s.createElement("div");try{return!!n(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ui(n,t){for(var u=n.split("|"),i=n.length;i--;)r.attrHandle[u[i]]=t}function bi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&(~t.sourceIndex||vi)-(~n.sourceIndex||vi);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function lr(n){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===n}}function ar(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function rt(n){return c(function(t){return t=+t,c(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ki(){}function pt(n,t){var e,f,s,o,i,h,c,l=li[n+" "];if(l)return t?0:l.slice(0);for(i=n,h=[],c=r.preFilter;i;){(!e||(f=ir.exec(i)))&&(f&&(i=i.slice(f[0].length)||i),h.push(s=[]));e=!1;(f=rr.exec(i))&&(e=f.shift(),s.push({value:e,type:f[0].replace(vt," ")}),i=i.slice(e.length));for(o in r.filter)(f=yt[o].exec(i))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),i=i.slice(e.length));if(!e)break}return t?i.length:i?u.error(n):li(n,h).slice(0)}function wt(n){for(var t=0,r=n.length,i="";r>t;t++)i+=n[t].value;return i}function fi(n,t,i){var r=t.dir,u=i&&"parentNode"===r,f=di++;return t.first?function(t,i,f){while(t=t[r])if(1===t.nodeType||u)return n(t,i,f)}:function(t,i,e){var h,s,c,l=p+" "+f;if(e){while(t=t[r])if((1===t.nodeType||u)&&n(t,i,e))return!0}else while(t=t[r])if(1===t.nodeType||u)if(c=t[o]||(t[o]={}),(s=c[r])&&s[0]===l){if((h=s[1])===!0||h===ht)return h===!0}else if(s=c[r]=[l],s[1]=n(t,i,e)||ht,s[1]===!0)return!0}}function ei(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function bt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;s>f;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function oi(n,t,i,r,u,f){return r&&!r[o]&&(r=oi(r)),u&&!u[o]&&(u=oi(u,f)),c(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,k=f||yr(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?k:bt(k,p,n,o,s),h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=bt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?it.call(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=bt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):b.apply(e,h)})}function si(n){for(var s,u,i,e=n.length,h=r.relative[n[0].type],c=h||r.relative[" "],t=h?1:0,l=fi(function(n){return n===s},c,!0),a=fi(function(n){return it.call(s,n)>-1},c,!0),f=[function(n,t,i){return!h&&(i||t!==lt)||((s=t).nodeType?l(n,t,i):a(n,t,i))}];e>t;t++)if(u=r.relative[n[t].type])f=[fi(ei(f),u)];else{if(u=r.filter[n[t].type].apply(null,n[t].matches),u[o]){for(i=++t;e>i;i++)if(r.relative[n[i].type])break;return oi(t>1&&ei(f),t>1&&wt(n.slice(0,t-1).concat({value:" "===n[t-2].type?"*":""})).replace(vt,"$1"),u,i>t&&si(n.slice(t,i)),e>i&&si(n=n.slice(i)),e>i&&wt(n))}f.push(u)}return ei(f)}function vr(n,t){var f=0,i=t.length>0,e=n.length>0,o=function(o,h,c,l,a){var y,g,k,w=[],d=0,v="0",nt=o&&[],tt=null!=a,it=lt,ut=o||e&&r.find.TAG("*",a&&h.parentNode||h),rt=p+=null==it?1:Math.random()||.1;for(tt&&(lt=h!==s&&h,ht=f);null!=(y=ut[v]);v++){if(e&&y){for(g=0;k=n[g++];)if(k(y,h,c)){l.push(y);break}tt&&(p=rt,ht=++f)}i&&((y=!k&&y)&&d--,o&&nt.push(y))}if(d+=v,i&&v!==d){for(g=0;k=t[g++];)k(nt,w,h,c);if(o){if(d>0)while(v--)nt[v]||w[v]||(w[v]=nr.call(l));w=bt(w)}b.apply(l,w);tt&&!o&&w.length>0&&d+t.length>1&&u.uniqueSort(l)}return tt&&(p=rt,lt=it),nt};return i?c(o):o}function yr(n,t,i){for(var r=0,f=t.length;f>r;r++)u(n,t[r],i);return i}function pr(n,t,i,u){var s,f,o,c,l,h=pt(n);if(!u&&1===h.length){if(f=h[0]=h[0].slice(0),f.length>2&&"ID"===(o=f[0]).type&&e.getById&&9===t.nodeType&&v&&r.relative[f[1].type]){if(t=(r.find.ID(o.matches[0].replace(k,d),t)||[])[0],!t)return i;n=n.slice(f.shift().value.length)}for(s=yt.needsContext.test(n)?0:f.length;s--;){if(o=f[s],r.relative[c=o.type])break;if((l=r.find[c])&&(u=l(o.matches[0].replace(k,d),ti.test(f[0].type)&&t.parentNode||t))){if(f.splice(s,1),n=u.length&&wt(f),!n)return b.apply(i,u),i;break}}}return kt(n,h)(u,t,!v,i,ti.test(n)),i}var ut,e,ht,r,ct,hi,kt,lt,g,nt,s,a,v,h,tt,at,ot,o="sizzle"+-new Date,y=n.document,p=0,di=0,ci=ri(),li=ri(),ai=ri(),ft=!1,dt=function(n,t){return n===t?(ft=!0,0):0},st=typeof t,vi=-2147483648,gi={}.hasOwnProperty,w=[],nr=w.pop,tr=w.push,b=w.push,yi=w.slice,it=w.indexOf||function(n){for(var t=0,i=this.length;i>t;t++)if(this[t]===n)return t;return-1},gt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",f="[\\x20\\t\\r\\n\\f]",et="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",pi=et.replace("w","w#"),wi="\\["+f+"*("+et+")"+f+"*(?:([*^$|!~]?=)"+f+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+pi+")|)|)"+f+"*\\]",ni=":("+et+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+wi.replace(3,8)+")*)|.*)\\)|)",vt=RegExp("^"+f+"+|((?:^|[^\\\\])(?:\\\\.)*)"+f+"+$","g"),ir=RegExp("^"+f+"*,"+f+"*"),rr=RegExp("^"+f+"*([>+~]|"+f+")"+f+"*"),ti=RegExp(f+"*[+~]"),ur=RegExp("="+f+"*([^\\]'\"]*)"+f+"*\\]","g"),fr=RegExp(ni),er=RegExp("^"+pi+"$"),yt={ID:RegExp("^#("+et+")"),CLASS:RegExp("^\\.("+et+")"),TAG:RegExp("^("+et.replace("w","w*")+")"),ATTR:RegExp("^"+wi),PSEUDO:RegExp("^"+ni),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+f+"*(even|odd|(([+-]|)(\\d*)n|)"+f+"*(?:([+-]|)"+f+"*(\\d+)|))"+f+"*\\)|)","i"),bool:RegExp("^(?:"+gt+")$","i"),needsContext:RegExp("^"+f+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+f+"*((?:-\\d)?\\d*)"+f+"*\\)|)(?=[^-]|$)","i")},ii=/^[^{]+\{\s*\[native \w/,or=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,sr=/^(?:input|select|textarea|button)$/i,hr=/^h\d$/i,cr=/'|\\/g,k=RegExp("\\\\([\\da-f]{1,6}"+f+"?|("+f+")|.)","ig"),d=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{b.apply(w=yi.call(y.childNodes),y.childNodes);w[y.childNodes.length].nodeType}catch(wr){b={apply:w.length?function(n,t){tr.apply(n,yi.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}hi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?"HTML"!==t.nodeName:!1};e=u.support={};nt=u.setDocument=function(n){var i=n?n.ownerDocument||n:y,u=i.defaultView;return i!==s&&9===i.nodeType&&i.documentElement?(s=i,a=i.documentElement,v=!hi(i),u&&u.attachEvent&&u!==u.top&&u.attachEvent("onbeforeunload",function(){nt()}),e.attributes=l(function(n){return n.className="i",!n.getAttribute("className")}),e.getElementsByTagName=l(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),e.getElementsByClassName=l(function(n){return n.innerHTML="<div class='a'><\/div><div class='a i'><\/div>",n.firstChild.className="i",2===n.getElementsByClassName("i").length}),e.getById=l(function(n){return a.appendChild(n).id=o,!i.getElementsByName||!i.getElementsByName(o).length}),e.getById?(r.find.ID=function(n,t){if(typeof t.getElementById!==st&&v){var i=t.getElementById(n);return i&&i.parentNode?[i]:[]}},r.filter.ID=function(n){var t=n.replace(k,d);return function(n){return n.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(n){var t=n.replace(k,d);return function(n){var i=typeof n.getAttributeNode!==st&&n.getAttributeNode("id");return i&&i.value===t}}),r.find.TAG=e.getElementsByTagName?function(n,i){return typeof i.getElementsByTagName!==st?i.getElementsByTagName(n):t}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},r.find.CLASS=e.getElementsByClassName&&function(n,i){return typeof i.getElementsByClassName!==st&&v?i.getElementsByClassName(n):t},tt=[],h=[],(e.qsa=ii.test(i.querySelectorAll))&&(l(function(n){n.innerHTML="<select><option selected=''><\/option><\/select>";n.querySelectorAll("[selected]").length||h.push("\\["+f+"*(?:value|"+gt+")");n.querySelectorAll(":checked").length||h.push(":checked")}),l(function(n){var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("t","");n.querySelectorAll("[t^='']").length&&h.push("[*^$]="+f+"*(?:''|\"\")");n.querySelectorAll(":enabled").length||h.push(":enabled",":disabled");n.querySelectorAll("*,:x");h.push(",.*:")})),(e.matchesSelector=ii.test(at=a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&l(function(n){e.disconnectedMatch=at.call(n,"div");at.call(n,"[s!='']:x");tt.push("!=",ni)}),h=h.length&&RegExp(h.join("|")),tt=tt.length&&RegExp(tt.join("|")),ot=ii.test(a.contains)||a.compareDocumentPosition?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},dt=a.compareDocumentPosition?function(n,t){if(n===t)return ft=!0,0;var r=t.compareDocumentPosition&&n.compareDocumentPosition&&n.compareDocumentPosition(t);return r?1&r||!e.sortDetached&&t.compareDocumentPosition(n)===r?n===i||ot(y,n)?-1:t===i||ot(y,t)?1:g?it.call(g,n)-it.call(g,t):0:4&r?-1:1:n.compareDocumentPosition?-1:1}:function(n,t){var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(n===t)return ft=!0,0;if(!o||!s)return n===i?-1:t===i?1:o?-1:s?1:g?it.call(g,n)-it.call(g,t):0;if(o===s)return bi(n,t);for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?bi(f[u],e[u]):f[u]===y?-1:e[u]===y?1:0},i):s};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==s&&nt(n),t=t.replace(ur,"='$1']"),!(!e.matchesSelector||!v||tt&&tt.test(t)||h&&h.test(t)))try{var i=at.call(n,t);if(i||e.disconnectedMatch||n.document&&11!==n.document.nodeType)return i}catch(r){}return u(t,s,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==s&&nt(n),ot(n,t)};u.attr=function(n,i){(n.ownerDocument||n)!==s&&nt(n);var f=r.attrHandle[i.toLowerCase()],u=f&&gi.call(r.attrHandle,i.toLowerCase())?f(n,i,!v):t;return u===t?e.attributes||!v?n.getAttribute(i):(u=n.getAttributeNode(i))&&u.specified?u.value:null:u};u.error=function(n){throw Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ft=!e.detectDuplicates,g=!e.sortStable&&n.slice(0),n.sort(dt),ft){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return n};ct=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=ct(n)}else if(3===t||4===t)return n.nodeValue}else for(;r=n[u];u++)i+=ct(r);return i};r=u.selectors={cacheLength:50,createPseudo:c,match:yt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(k,d),n[3]=(n[4]||n[5]||"").replace(k,d),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var r,i=!n[5]&&n[2];return yt.CHILD.test(n[0])?null:(n[3]&&n[4]!==t?n[2]=n[4]:i&&fr.test(i)&&(r=pt(i,!0))&&(r=i.indexOf(")",i.length-r)-i.length)&&(n[0]=n[0].slice(0,r),n[2]=i.slice(0,r)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(k,d).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=ci[n+" "];return t||(t=RegExp("(^|"+f+")"+n+"("+f+"|$)"))&&ci(n,function(n){return t.test("string"==typeof n.className&&n.className||typeof n.getAttribute!==st&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return null==f?"!="===t:t?(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f+" ").indexOf(i)>-1:"|="===t?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),e="last"!==n.slice(-4),f="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var a,k,c,l,v,w,b=s!==e?"nextSibling":"previousSibling",y=t.parentNode,g=f&&t.nodeName.toLowerCase(),d=!h&&!f;if(y){if(s){while(b){for(c=t;c=c[b];)if(f?c.nodeName.toLowerCase()===g:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[e?y.firstChild:y.lastChild],e&&d){for(k=y[o]||(y[o]={}),a=k[n]||[],v=a[0]===p&&a[1],l=a[0]===p&&a[2],c=v&&y.childNodes[v];c=++v&&c&&c[b]||(l=v=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){k[n]=[p,v,l];break}}else if(d&&(a=(t[o]||(t[o]={}))[n])&&a[0]===p)l=a[1];else while(c=++v&&c&&c[b]||(l=v=0)||w.pop())if((f?c.nodeName.toLowerCase()===g:1===c.nodeType)&&++l&&(d&&((c[o]||(c[o]={}))[n]=[p,l]),c===t))break;return l-=u,l===r||0==l%r&&l/r>=0}}},PSEUDO:function(n,t){var f,i=r.pseudos[n]||r.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return i[o]?i(t):i.length>1?(f=[n,n,"",t],r.setFilters.hasOwnProperty(n.toLowerCase())?c(function(n,r){for(var u,f=i(n,t),e=f.length;e--;)u=it.call(n,f[e]),n[u]=!(r[u]=f[e])}):function(n){return i(n,0,f)}):i}},pseudos:{not:c(function(n){var i=[],r=[],t=kt(n.replace(vt,"$1"));return t[o]?c(function(n,i,r,u){for(var e,o=t(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(i[f]=e))}):function(n,u,f){return i[0]=n,t(i,null,f,r),!r.pop()}}),has:c(function(n){return function(t){return u(n,t).length>0}}),contains:c(function(n){return function(t){return(t.textContent||t.innerText||ct(t)).indexOf(n)>-1}}),lang:c(function(n){return er.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(k,d).toLowerCase(),function(t){var i;do if(i=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===a},focus:function(n){return n===s.activeElement&&(!s.hasFocus||s.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeName>"@"||3===n.nodeType||4===n.nodeType)return!1;return!0},parent:function(n){return!r.pseudos.empty(n)},header:function(n){return hr.test(n.nodeName)},input:function(n){return sr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||t.toLowerCase()===n.type)},first:rt(function(){return[0]}),last:rt(function(n,t){return[t-1]}),eq:rt(function(n,t,i){return[0>i?i+t:i]}),even:rt(function(n,t){for(var i=0;t>i;i+=2)n.push(i);return n}),odd:rt(function(n,t){for(var i=1;t>i;i+=2)n.push(i);return n}),lt:rt(function(n,t,i){for(var r=0>i?i+t:i;--r>=0;)n.push(r);return n}),gt:rt(function(n,t,i){for(var r=0>i?i+t:i;t>++r;)n.push(r);return n})}};r.pseudos.nth=r.pseudos.eq;for(ut in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[ut]=lr(ut);for(ut in{submit:!0,reset:!0})r.pseudos[ut]=ar(ut);ki.prototype=r.filters=r.pseudos;r.setFilters=new ki;kt=u.compile=function(n,t){var r,u=[],f=[],i=ai[n+" "];if(!i){for(t||(t=pt(n)),r=t.length;r--;)i=si(t[r]),i[o]?u.push(i):f.push(i);i=ai(n,vr(f,u))}return i};e.sortStable=o.split("").sort(dt).join("")===o;e.detectDuplicates=ft;nt();e.sortDetached=l(function(n){return 1&n.compareDocumentPosition(s.createElement("div"))});l(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ui("type|href|height|width",function(n,i,r){return r?t:n.getAttribute(i,"type"===i.toLowerCase()?1:2)});e.attributes&&l(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ui("value",function(n,i,r){return r||"input"!==n.nodeName.toLowerCase()?t:n.defaultValue});l(function(n){return null==n.getAttribute("disabled")})||ui(gt,function(n,i,r){var u;return r?t:(u=n.getAttributeNode(i))&&u.specified?u.value:n[i]===!0?i.toLowerCase():null});i.find=u;i.expr=u.selectors;i.expr[":"]=i.expr.pseudos;i.unique=u.uniqueSort;i.text=u.getText;i.isXMLDoc=u.isXML;i.contains=u.contains}(n);ni={};i.Callbacks=function(n){n="string"==typeof n?ni[n]||te(n):i.extend({},n);var s,f,c,e,o,l,r=[],u=!n.once&&[],a=function(t){for(f=n.memory&&t,c=!0,o=l||0,l=0,e=r.length,s=!0;r&&e>o;o++)if(r[o].apply(t[0],t[1])===!1&&n.stopOnFalse){f=!1;break}s=!1;r&&(u?u.length&&a(u.shift()):f?r=[]:h.disable())},h={add:function(){if(r){var t=r.length;(function u(t){i.each(t,function(t,f){var e=i.type(f);"function"===e?n.unique&&h.has(f)||r.push(f):f&&f.length&&"string"!==e&&u(f)})})(arguments);s?e=r.length:f&&(l=t,a(f))}return this},remove:function(){return r&&i.each(arguments,function(n,t){for(var u;(u=i.inArray(t,r,u))>-1;)r.splice(u,1),s&&(e>=u&&e--,o>=u&&o--)}),this},has:function(n){return n?i.inArray(n,r)>-1:!(!r||!r.length)},empty:function(){return r=[],e=0,this},disable:function(){return r=u=f=t,this},disabled:function(){return!r},lock:function(){return u=t,f||h.disable(),this},locked:function(){return!u},fireWith:function(n,t){return!r||c&&!u||(t=t||[],t=[n,t.slice?t.slice():t],s?u.push(t):a(t)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!c}};return h};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var s=e[0],o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().done(f.resolve).fail(f.reject).progress(f.notify):f[s+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return null!=n?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[1^n][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var t=0,u=l.call(arguments),r=u.length,e=1!==r||n&&i.isFunction(n.promise)?r:0,f=1===e?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?l.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}},o,c,s;if(r>1)for(o=Array(r),c=Array(r),s=Array(r);r>t;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().done(h(t,s,u)).fail(f.reject).progress(h(t,c,o)):--e;return e||f.resolveWith(s,u),f.promise()}});i.support=function(t){var a,e,f,h,c,l,v,y,s,u=r.createElement("div");if(u.setAttribute("className","t"),u.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>",a=u.getElementsByTagName("*")||[],e=u.getElementsByTagName("a")[0],!e||!e.style||!a.length)return t;h=r.createElement("select");l=h.appendChild(r.createElement("option"));f=u.getElementsByTagName("input")[0];e.style.cssText="top:1px;float:left;opacity:.5";t.getSetAttribute="t"!==u.className;t.leadingWhitespace=3===u.firstChild.nodeType;t.tbody=!u.getElementsByTagName("tbody").length;t.htmlSerialize=!!u.getElementsByTagName("link").length;t.style=/top/.test(e.getAttribute("style"));t.hrefNormalized="/a"===e.getAttribute("href");t.opacity=/^0.5/.test(e.style.opacity);t.cssFloat=!!e.style.cssFloat;t.checkOn=!!f.value;t.optSelected=l.selected;t.enctype=!!r.createElement("form").enctype;t.html5Clone="<:nav><\/:nav>"!==r.createElement("nav").cloneNode(!0).outerHTML;t.inlineBlockNeedsLayout=!1;t.shrinkWrapBlocks=!1;t.pixelPosition=!1;t.deleteExpando=!0;t.noCloneEvent=!0;t.reliableMarginRight=!0;t.boxSizingReliable=!0;f.checked=!0;t.noCloneChecked=f.cloneNode(!0).checked;h.disabled=!0;t.optDisabled=!l.disabled;try{delete u.test}catch(p){t.deleteExpando=!1}f=r.createElement("input");f.setAttribute("value","");t.input=""===f.getAttribute("value");f.value="t";f.setAttribute("type","radio");t.radioValue="t"===f.value;f.setAttribute("checked","t");f.setAttribute("name","t");c=r.createDocumentFragment();c.appendChild(f);t.appendChecked=f.checked;t.checkClone=c.cloneNode(!0).cloneNode(!0).lastChild.checked;u.attachEvent&&(u.attachEvent("onclick",function(){t.noCloneEvent=!1}),u.cloneNode(!0).click());for(s in{submit:!0,change:!0,focusin:!0})u.setAttribute(v="on"+s,"t"),t[s+"Bubbles"]=v in n||u.attributes[v].expando===!1;u.style.backgroundClip="content-box";u.cloneNode(!0).style.backgroundClip="";t.clearCloneStyle="content-box"===u.style.backgroundClip;for(s in i(t))break;return t.ownLast="0"!==s,i(function(){var h,e,f,c="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",s=r.getElementsByTagName("body")[0];s&&(h=r.createElement("div"),h.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",s.appendChild(h).appendChild(u),u.innerHTML="<table><tr><td><\/td><td>t<\/td><\/tr><\/table>",f=u.getElementsByTagName("td"),f[0].style.cssText="padding:0;margin:0;border:0;display:none",y=0===f[0].offsetHeight,f[0].style.display="",f[1].style.display="none",t.reliableHiddenOffsets=y&&0===f[0].offsetHeight,u.innerHTML="",u.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",i.swap(s,null!=s.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===u.offsetWidth}),n.getComputedStyle&&(t.pixelPosition="1%"!==(n.getComputedStyle(u,null)||{}).top,t.boxSizingReliable="4px"===(n.getComputedStyle(u,null)||{width:"4px"}).width,e=u.appendChild(r.createElement("div")),e.style.cssText=u.style.cssText=c,e.style.marginRight=e.style.width="0",u.style.width="1px",t.reliableMarginRight=!parseFloat((n.getComputedStyle(e,null)||{}).marginRight)),typeof u.style.zoom!==o&&(u.innerHTML="",u.style.cssText=c+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===u.offsetWidth,u.style.display="block",u.innerHTML="<div><\/div>",u.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==u.offsetWidth,t.inlineBlockNeedsLayout&&(s.style.zoom=1)),s.removeChild(h),h=u=f=e=null)}),a=h=c=l=e=f=null,t}({});ir=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/;rr=/([A-Z])/g;i.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!ti(n)},data:function(n,t,i){return ur(n,t,i)},removeData:function(n,t){return fr(n,t)},_data:function(n,t,i){return ur(n,t,i,!0)},_removeData:function(n,t){return fr(n,t,!0)},acceptData:function(n){if(n.nodeType&&1!==n.nodeType&&9!==n.nodeType)return!1;var t=n.nodeName&&i.noData[n.nodeName.toLowerCase()];return!t||t!==!0&&n.getAttribute("classid")===t}});i.fn.extend({data:function(n,r){var e,f,o=null,s=0,u=this[0];if(n===t){if(this.length&&(o=i.data(u),1===u.nodeType&&!i._data(u,"parsedAttrs"))){for(e=u.attributes;e.length>s;s++)f=e[s].name,0===f.indexOf("data-")&&(f=i.camelCase(f.slice(5)),er(u,f,o[f]));i._data(u,"parsedAttrs",!0)}return o}return"object"==typeof n?this.each(function(){i.data(this,n)}):arguments.length>1?this.each(function(){i.data(this,n,r)}):u?er(u,n,i.data(u,n)):null},removeData:function(n){return this.each(function(){i.removeData(this,n)})}});i.extend({queue:function(n,r,u){var f;return n?(r=(r||"fx")+"queue",f=i._data(n,r),u&&(!f||i.isArray(u)?f=i._data(n,r,i.makeArray(u)):f.push(u)),f||[]):t},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var r=t+"queueHooks";return i._data(n,r)||i._data(n,r,{empty:i.Callbacks("once memory").add(function(){i._removeData(n,t+"queue");i._removeData(n,r)})})}});i.fn.extend({queue:function(n,r){var u=2;return"string"!=typeof n&&(r=n,n="fx",u--),u>arguments.length?i.queue(this[0],n):r===t?this:this.each(function(){var t=i.queue(this,n,r);i._queueHooks(this,n);"fx"===n&&"inprogress"!==t[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},delay:function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(t,i){var r=setTimeout(t,n);i.stop=function(){clearTimeout(r)}})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,r){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for("string"!=typeof n&&(r=n,n=t),n=n||"fx";s--;)u=i._data(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(r)}});var d,or,ii=/[\t\r\n\f]/g,ie=/\r/g,re=/^(?:input|select|textarea|button|object)$/i,ue=/^(?:a|area)$/i,ri=/^(?:checked|selected)$/i,a=i.support.getSetAttribute,ht=i.support.input;i.fn.extend({attr:function(n,t){return i.access(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})},prop:function(n,t){return i.access(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=t;delete this[n]}catch(i){}})},addClass:function(n){var e,t,r,u,o,f=0,h=this.length,c="string"==typeof n&&n;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,this.className))});if(c)for(e=(n||"").match(s)||[];h>f;f++)if(t=this[f],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(ii," "):" ")){for(o=0;u=e[o++];)0>r.indexOf(" "+u+" ")&&(r+=u+" ");t.className=i.trim(r)}return this},removeClass:function(n){var e,t,r,u,o,f=0,h=this.length,c=0===arguments.length||"string"==typeof n&&n;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,this.className))});if(c)for(e=(n||"").match(s)||[];h>f;f++)if(t=this[f],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(ii," "):"")){for(o=0;u=e[o++];)while(r.indexOf(" "+u+" ")>=0)r=r.replace(" "+u+" "," ");t.className=n?i.trim(r):""}return this},toggleClass:function(n,t){var r=typeof n;return"boolean"==typeof t&&"string"===r?t?this.addClass(n):this.removeClass(n):i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}):this.each(function(){if("string"===r)for(var t,f=0,u=i(this),e=n.match(s)||[];t=e[f++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else(r===o||"boolean"===r)&&(this.className&&i._data(this,"__className__",this.className),this.className=this.className||n===!1?"":i._data(this,"__className__")||"")})},hasClass:function(n){for(var i=" "+n+" ",t=0,r=this.length;r>t;t++)if(1===this[t].nodeType&&(" "+this[t].className+" ").replace(ii," ").indexOf(i)>=0)return!0;return!1},val:function(n){var u,r,e,f=this[0];return arguments.length?(e=i.isFunction(n),this.each(function(u){var f;1===this.nodeType&&(f=e?n.call(this,u,i(this).val()):n,null==f?f="":"number"==typeof f?f+="":i.isArray(f)&&(f=i.map(f,function(n){return null==n?"":n+""})),r=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,f,"value")!==t||(this.value=f))})):f?(r=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()],r&&"get"in r&&(u=r.get(f,"value"))!==t?u:(u=f.value,"string"==typeof u?u.replace(ie,""):null==u?"":u)):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:n.text}},select:{get:function(n){for(var e,t,o=n.options,r=n.selectedIndex,u="select-one"===n.type||0>r,s=u?null:[],h=u?r+1:o.length,f=0>r?h:u?r:0;h>f;f++)if(t=o[f],!(!t.selected&&f!==r||(i.support.optDisabled?t.disabled:null!==t.getAttribute("disabled"))||t.parentNode.disabled&&i.nodeName(t.parentNode,"optgroup"))){if(e=i(t).val(),u)return e;s.push(e)}return s},set:function(n,t){for(var u,r,f=n.options,e=i.makeArray(t),o=f.length;o--;)r=f[o],(r.selected=i.inArray(i(r).val(),e)>=0)&&(u=!0);return u||(n.selectedIndex=-1),e}}},attr:function(n,r,u){var f,e,s=n.nodeType;if(n&&3!==s&&8!==s&&2!==s)return typeof n.getAttribute===o?i.prop(n,r,u):(1===s&&i.isXMLDoc(n)||(r=r.toLowerCase(),f=i.attrHooks[r]||(i.expr.match.bool.test(r)?or:d)),u===t?f&&"get"in f&&null!==(e=f.get(n,r))?e:(e=i.find.attr(n,r),null==e?t:e):null!==u?f&&"set"in f&&(e=f.set(n,u,r))!==t?e:(n.setAttribute(r,u+""),u):(i.removeAttr(n,r),t))},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(s);if(f&&1===n.nodeType)while(r=f[e++])u=i.propFix[r]||r,i.expr.match.bool.test(r)?ht&&a||!ri.test(r)?n[u]=!1:n[i.camelCase("default-"+r)]=n[u]=!1:i.attr(n,r,""),n.removeAttribute(a?r:u)},attrHooks:{type:{set:function(n,t){if(!i.support.radioValue&&"radio"===t&&i.nodeName(n,"input")){var r=n.value;return n.setAttribute("type",t),r&&(n.value=r),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(n,r,u){var e,f,s,o=n.nodeType;if(n&&3!==o&&8!==o&&2!==o)return s=1!==o||!i.isXMLDoc(n),s&&(r=i.propFix[r]||r,f=i.propHooks[r]),u!==t?f&&"set"in f&&(e=f.set(n,u,r))!==t?e:n[r]=u:f&&"get"in f&&null!==(e=f.get(n,r))?e:n[r]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):re.test(n.nodeName)||ue.test(n.nodeName)&&n.href?0:-1}}}});or={set:function(n,t,r){return t===!1?i.removeAttr(n,r):ht&&a||!ri.test(r)?n.setAttribute(!a&&i.propFix[r]||r,r):n[i.camelCase("default-"+r)]=n[r]=!0,r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,r){var u=i.expr.attrHandle[r]||i.find.attr;i.expr.attrHandle[r]=ht&&a||!ri.test(r)?function(n,r,f){var e=i.expr.attrHandle[r],o=f?t:(i.expr.attrHandle[r]=t)!=u(n,r,f)?r.toLowerCase():null;return i.expr.attrHandle[r]=e,o}:function(n,r,u){return u?t:n[i.camelCase("default-"+r)]?r.toLowerCase():null}});ht&&a||(i.attrHooks.value={set:function(n,r,u){return i.nodeName(n,"input")?(n.defaultValue=r,t):d&&d.set(n,r,u)}});a||(d={set:function(n,i,r){var u=n.getAttributeNode(r);return u||n.setAttributeNode(u=n.ownerDocument.createAttribute(r)),u.value=i+="","value"===r||i===n.getAttribute(r)?i:t}},i.expr.attrHandle.id=i.expr.attrHandle.name=i.expr.attrHandle.coords=function(n,i,r){var u;return r?t:(u=n.getAttributeNode(i))&&""!==u.value?u.value:null},i.valHooks.button={get:function(n,i){var r=n.getAttributeNode(i);return r&&r.specified?r.value:t},set:d.set},i.attrHooks.contenteditable={set:function(n,t,i){d.set(n,""===t?!1:t,i)}},i.each(["width","height"],function(n,r){i.attrHooks[r]={set:function(n,i){return""===i?(n.setAttribute(r,"auto"),i):t}}}));i.support.hrefNormalized||i.each(["href","src"],function(n,t){i.propHooks[t]={get:function(n){return n.getAttribute(t,4)}}});i.support.style||(i.attrHooks.style={get:function(n){return n.style.cssText||t},set:function(n,t){return n.style.cssText=t+""}});i.support.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});i.support.enctype||(i.propFix.enctype="encoding");i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,r){return i.isArray(r)?n.checked=i.inArray(i(n).val(),r)>=0:t}};i.support.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});var ui=/^(?:input|select|textarea)$/i,fe=/^key/,ee=/^(?:mouse|contextmenu)|click/,sr=/^(?:focusinfocus|focusoutblur)$/,hr=/^([^.]*)(?:\.(.+)|)$/;i.event={global:{},add:function(n,r,u,f,e){var b,p,k,w,c,l,a,v,h,d,g,y=i._data(n);if(y){for(u.handler&&(w=u,u=w.handler,e=w.selector),u.guid||(u.guid=i.guid++),(p=y.events)||(p=y.events={}),(l=y.handle)||(l=y.handle=function(n){return typeof i===o||n&&i.event.triggered===n.type?t:i.event.dispatch.apply(l.elem,arguments)},l.elem=n),r=(r||"").match(s)||[""],k=r.length;k--;)b=hr.exec(r[k])||[],h=g=b[1],d=(b[2]||"").split(".").sort(),h&&(c=i.event.special[h]||{},h=(e?c.delegateType:c.bindType)||h,c=i.event.special[h]||{},a=i.extend({type:h,origType:g,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:d.join(".")},w),(v=p[h])||(v=p[h]=[],v.delegateCount=0,c.setup&&c.setup.call(n,f,d,l)!==!1||(n.addEventListener?n.addEventListener(h,l,!1):n.attachEvent&&n.attachEvent("on"+h,l))),c.add&&(c.add.call(n,a),a.handler.guid||(a.handler.guid=u.guid)),e?v.splice(v.delegateCount++,0,a):v.push(a),i.event.global[h]=!0);n=null}},remove:function(n,t,r,u,f){var y,o,h,b,p,a,c,l,e,w,k,v=i.hasData(n)&&i._data(n);if(v&&(a=v.events)){for(t=(t||"").match(s)||[""],p=t.length;p--;)if(h=hr.exec(t[p])||[],e=k=h[1],w=(h[2]||"").split(".").sort(),e){for(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,l=a[e]||[],h=h[2]&&RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=l.length;y--;)o=l[y],!f&&k!==o.origType||r&&r.guid!==o.guid||h&&!h.test(o.namespace)||u&&u!==o.selector&&("**"!==u||!o.selector)||(l.splice(y,1),o.selector&&l.delegateCount--,c.remove&&c.remove.call(n,o));b&&!l.length&&(c.teardown&&c.teardown.call(n,w,v.handle)!==!1||i.removeEvent(n,e,v.handle),delete a[e])}else for(e in a)i.event.remove(n,e+t[p],r,u,!0);i.isEmptyObject(a)&&(delete v.handle,i._removeData(n,"events"))}},trigger:function(u,f,e,o){var a,v,s,w,l,c,b,p=[e||r],h=k.call(u,"type")?u.type:u,y=k.call(u,"namespace")?u.namespace.split("."):[];if(s=c=e=e||r,3!==e.nodeType&&8!==e.nodeType&&!sr.test(h+i.event.triggered)&&(h.indexOf(".")>=0&&(y=h.split("."),h=y.shift(),y.sort()),v=0>h.indexOf(":")&&"on"+h,u=u[i.expando]?u:new i.Event(h,"object"==typeof u&&u),u.isTrigger=o?2:3,u.namespace=y.join("."),u.namespace_re=u.namespace?RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,u.result=t,u.target||(u.target=e),f=null==f?[u]:i.makeArray(f,[u]),l=i.event.special[h]||{},o||!l.trigger||l.trigger.apply(e,f)!==!1)){if(!o&&!l.noBubble&&!i.isWindow(e)){for(w=l.delegateType||h,sr.test(w+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(e.ownerDocument||r)&&p.push(c.defaultView||c.parentWindow||n)}for(b=0;(s=p[b++])&&!u.isPropagationStopped();)u.type=b>1?w:l.bindType||h,a=(i._data(s,"events")||{})[u.type]&&i._data(s,"handle"),a&&a.apply(s,f),a=v&&s[v],a&&i.acceptData(s)&&a.apply&&a.apply(s,f)===!1&&u.preventDefault();if(u.type=h,!o&&!u.isDefaultPrevented()&&(!l._default||l._default.apply(p.pop(),f)===!1)&&i.acceptData(e)&&v&&e[h]&&!i.isWindow(e)){c=e[v];c&&(e[v]=null);i.event.triggered=h;try{e[h]()}catch(d){}i.event.triggered=t;c&&(e[v]=c)}return u.result}},dispatch:function(n){n=i.event.fix(n);var o,e,r,u,s,h=[],c=l.call(arguments),a=(i._data(this,"events")||{})[n.type]||[],f=i.event.special[n.type]||{};if(c[0]=n,n.delegateTarget=this,!f.preDispatch||f.preDispatch.call(this,n)!==!1){for(h=i.event.handlers.call(this,n,a),o=0;(u=h[o++])&&!n.isPropagationStopped();)for(n.currentTarget=u.elem,s=0;(r=u.handlers[s++])&&!n.isImmediatePropagationStopped();)(!n.namespace_re||n.namespace_re.test(r.namespace))&&(n.handleObj=r,n.data=r.data,e=((i.event.special[r.origType]||{}).handle||r.handler).apply(u.elem,c),e!==t&&(n.result=e)===!1&&(n.preventDefault(),n.stopPropagation()));return f.postDispatch&&f.postDispatch.call(this,n),n.result}},handlers:function(n,r){var e,o,f,s,c=[],h=r.delegateCount,u=n.target;if(h&&u.nodeType&&(!n.button||"click"!==n.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==n.type)){for(f=[],s=0;h>s;s++)o=r[s],e=o.selector+" ",f[e]===t&&(f[e]=o.needsContext?i(e,this).index(u)>=0:i.find(e,this,null,[u]).length),f[e]&&f.push(o);f.length&&c.push({elem:u,handlers:f})}return r.length>h&&c.push({elem:this,handlers:r.slice(h)}),c},fix:function(n){if(n[i.expando])return n;var e,o,s,u=n.type,f=n,t=this.fixHooks[u];for(t||(this.fixHooks[u]=t=ee.test(u)?this.mouseHooks:fe.test(u)?this.keyHooks:{}),s=t.props?this.props.concat(t.props):this.props,n=new i.Event(f),e=s.length;e--;)o=s[e],n[o]=f[o];return n.target||(n.target=f.srcElement||r),3===n.target.nodeType&&(n.target=n.target.parentNode),n.metaKey=!!n.metaKey,t.filter?t.filter(n,f):n},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return null==n.which&&(n.which=null!=t.charCode?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,i){var u,o,f,e=i.button,s=i.fromElement;return null==n.pageX&&null!=i.clientX&&(o=n.target.ownerDocument||r,f=o.documentElement,u=o.body,n.pageX=i.clientX+(f&&f.scrollLeft||u&&u.scrollLeft||0)-(f&&f.clientLeft||u&&u.clientLeft||0),n.pageY=i.clientY+(f&&f.scrollTop||u&&u.scrollTop||0)-(f&&f.clientTop||u&&u.clientTop||0)),!n.relatedTarget&&s&&(n.relatedTarget=s===n.target?i.toElement:s),n.which||e===t||(n.which=1&e?1:2&e?3:4&e?2:0),n}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==cr()&&this.focus)try{return this.focus(),!1}catch(n){}},delegateType:"focusin"},blur:{trigger:function(){return this===cr()&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},click:{trigger:function(){return i.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){n.result!==t&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,t,r,u){var f=i.extend(new i.Event,r,{type:n,isSimulated:!0,originalEvent:{}});u?i.event.trigger(f,null,t):i.event.dispatch.call(t,f);f.isDefaultPrevented()&&r.preventDefault()}};i.removeEvent=r.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)}:function(n,t,i){var r="on"+t;n.detachEvent&&(typeof n[r]===o&&(n[r]=null),n.detachEvent(r,i))};i.Event=function(n,r){return this instanceof i.Event?(n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.returnValue===!1||n.getPreventDefault&&n.getPreventDefault()?ct:g):this.type=n,r&&i.extend(this,r),this.timeStamp=n&&n.timeStamp||i.now(),this[i.expando]=!0,t):new i.Event(n,r)};i.Event.prototype={isDefaultPrevented:g,isPropagationStopped:g,isImmediatePropagationStopped:g,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=ct;n&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=ct;n&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ct;this.stopPropagation()}};i.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return(!r||r!==f&&!i.contains(f,r))&&(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});i.support.submitBubbles||(i.event.special.submit={setup:function(){return i.nodeName(this,"form")?!1:(i.event.add(this,"click._submit keypress._submit",function(n){var u=n.target,r=i.nodeName(u,"input")||i.nodeName(u,"button")?u.form:t;r&&!i._data(r,"submitBubbles")&&(i.event.add(r,"submit._submit",function(n){n._submit_bubble=!0}),i._data(r,"submitBubbles",!0))}),t)},postDispatch:function(n){n._submit_bubble&&(delete n._submit_bubble,this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n,!0))},teardown:function(){return i.nodeName(this,"form")?!1:(i.event.remove(this,"._submit"),t)}});i.support.changeBubbles||(i.event.special.change={setup:function(){return ui.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(i.event.add(this,"propertychange._change",function(n){"checked"===n.originalEvent.propertyName&&(this._just_changed=!0)}),i.event.add(this,"click._change",function(n){this._just_changed&&!n.isTrigger&&(this._just_changed=!1);i.event.simulate("change",this,n,!0)})),!1):(i.event.add(this,"beforeactivate._change",function(n){var t=n.target;ui.test(t.nodeName)&&!i._data(t,"changeBubbles")&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n,!0)}),i._data(t,"changeBubbles",!0))}),t)},handle:function(n){var i=n.target;return this!==i||n.isSimulated||n.isTrigger||"radio"!==i.type&&"checkbox"!==i.type?n.handleObj.handler.apply(this,arguments):t},teardown:function(){return i.event.remove(this,"._change"),!ui.test(this.nodeName)}});i.support.focusinBubbles||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=0,f=function(n){i.event.simulate(t,n.target,i.event.fix(n),!0)};i.event.special[t]={setup:function(){0==u++&&r.addEventListener(n,f,!0)},teardown:function(){0==--u&&r.removeEventListener(n,f,!0)}}});i.fn.extend({on:function(n,r,u,f,e){var s,o;if("object"==typeof n){"string"!=typeof r&&(u=u||r,r=t);for(s in n)this.on(s,r,u,n[s],e);return this}if(null==u&&null==f?(f=r,u=r=t):null==f&&("string"==typeof r?(f=u,u=t):(f=u,u=r,r=t)),f===!1)f=g;else if(!f)return this;return 1===e&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),this.each(function(){i.event.add(this,n,f,u,r)})},one:function(n,t,i,r){return this.on(n,t,i,r,1)},off:function(n,r,u){var f,e;if(n&&n.preventDefault&&n.handleObj)return f=n.handleObj,i(n.delegateTarget).off(f.namespace?f.origType+"."+f.namespace:f.origType,f.selector,f.handler),this;if("object"==typeof n){for(e in n)this.off(e,r,n[e]);return this}return(r===!1||"function"==typeof r)&&(u=r,r=t),u===!1&&(u=g),this.each(function(){i.event.remove(this,n,u,r)})},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,r){var u=this[0];return u?i.event.trigger(n,r,u,!0):t}});var oe=/^.[^:#\[\.,]*$/,se=/^(?:parents|prev(?:Until|All))/,lr=i.expr.match.needsContext,he={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({find:function(n){var t,r=[],u=this,f=u.length;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;f>t;t++)if(i.contains(u[t],this))return!0}));for(t=0;f>t;t++)i.find(n,u[t],r);return r=this.pushStack(f>1?i.unique(r):r),r.selector=this.selector?this.selector+" "+n:n,r},has:function(n){var t,r=i(n,this),u=r.length;return this.filter(function(){for(t=0;u>t;t++)if(i.contains(this,r[t]))return!0})},not:function(n){return this.pushStack(fi(this,n||[],!0))},filter:function(n){return this.pushStack(fi(this,n||[],!1))},is:function(n){return!!fi(this,"string"==typeof n&&lr.test(n)?i(n):n||[],!1).length},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=lr.test(n)||"string"!=typeof n?i(n,t||this.context):0;o>f;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(11>r.nodeType&&(e?e.index(r)>-1:1===r.nodeType&&i.find.matchesSelector(r,n))){r=u.push(r);break}return this.pushStack(u.length>1?i.unique(u):u)},index:function(n){return n?"string"==typeof n?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){var r="string"==typeof n?i(n,t):i.makeArray(n&&n.nodeType?[n]:n),u=i.merge(this.get(),r);return this.pushStack(i.unique(u))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return ar(n,"nextSibling")},prev:function(n){return ar(n,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling((n.parentNode||{}).firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),this.length>1&&(he[n]||(f=i.unique(f)),se.test(n)&&(f=f.reverse())),this.pushStack(f)}});i.extend({filter:function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))},dir:function(n,r,u){for(var e=[],f=n[r];f&&9!==f.nodeType&&(u===t||1!==f.nodeType||!i(f).is(u));)1===f.nodeType&&e.push(f),f=f[r];return e},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i}});var yr="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ce=/ jQuery\d+="(?:null|\d+)"/g,pr=RegExp("<(?:"+yr+")[\\s/>]","i"),ei=/^\s+/,wr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,br=/<([\w:]+)/,kr=/<tbody/i,le=/<|&#?\w+;/,ae=/<(?:script|style|link)/i,oi=/^(?:checkbox|radio)$/i,ve=/checked\s*(?:[^=]|=\s*.checked.)/i,dr=/^$|\/(?:java|ecma)script/i,ye=/^true\/(.*)/,pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,e={option:[1,"<select multiple='multiple'>","<\/select>"],legend:[1,"<fieldset>","<\/fieldset>"],area:[1,"<map>","<\/map>"],param:[1,"<object>","<\/object>"],thead:[1,"<table>","<\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],col:[2,"<table><tbody><\/tbody><colgroup>","<\/colgroup><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:i.support.htmlSerialize?[0,"",""]:[1,"X<div>","<\/div>"]},we=vr(r),si=we.appendChild(r.createElement("div"));e.optgroup=e.option;e.tbody=e.tfoot=e.colgroup=e.caption=e.thead;e.th=e.td;i.fn.extend({text:function(n){return i.access(this,function(n){return n===t?i.text(this):this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(n))},null,n,arguments.length)},append:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=gr(this,n);t.appendChild(n)}})},prepend:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=gr(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},remove:function(n,t){for(var r,e=n?i.filter(n,this):this,f=0;null!=(r=e[f]);f++)t||1!==r.nodeType||i.cleanData(u(r)),r.parentNode&&(t&&i.contains(r.ownerDocument,r)&&hi(u(r,"script")),r.parentNode.removeChild(r));return this},empty:function(){for(var n,t=0;null!=(n=this[t]);t++){for(1===n.nodeType&&i.cleanData(u(n,!1));n.firstChild;)n.removeChild(n.firstChild);n.options&&i.nodeName(n,"select")&&(n.options.length=0)}return this},clone:function(n,t){return n=null==n?!1:n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return i.access(this,function(n){var r=this[0]||{},f=0,o=this.length;if(n===t)return 1===r.nodeType?r.innerHTML.replace(ce,""):t;if(!("string"!=typeof n||ae.test(n)||!i.support.htmlSerialize&&pr.test(n)||!i.support.leadingWhitespace&&ei.test(n)||e[(br.exec(n)||["",""])[1].toLowerCase()])){n=n.replace(wr,"<$1><\/$2>");try{for(;o>f;f++)r=this[f]||{},1===r.nodeType&&(i.cleanData(u(r,!1)),r.innerHTML=n);r=0}catch(s){}}r&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var t=i.map(this,function(n){return[n.nextSibling,n.parentNode]}),n=0;return this.domManip(arguments,function(r){var u=t[n++],f=t[n++];f&&(u&&u.parentNode!==f&&(u=this.nextSibling),i(this).remove(),f.insertBefore(r,u))},!0),n?this:this.remove()},detach:function(n){return this.remove(n,!0)},domManip:function(n,t,r){n=di.apply([],n);var h,f,c,o,v,s,e=0,l=this.length,p=this,w=l-1,a=n[0],y=i.isFunction(a);if(y||!(1>=l||"string"!=typeof a||i.support.checkClone)&&ve.test(a))return this.each(function(i){var u=p.eq(i);y&&(n[0]=a.call(this,i,u.html()));u.domManip(n,t,r)});if(l&&(s=i.buildFragment(n,this[0].ownerDocument,!1,!r&&this),h=s.firstChild,1===s.childNodes.length&&(s=h),h)){for(o=i.map(u(s,"script"),nu),c=o.length;l>e;e++)f=s,e!==w&&(f=i.clone(f,!0,!0),c&&i.merge(o,u(f,"script"))),t.call(this[e],f,e);if(c)for(v=o[o.length-1].ownerDocument,i.map(o,tu),e=0;c>e;e++)f=o[e],dr.test(f.type||"")&&!i._data(f,"globalEval")&&i.contains(v,f)&&(f.src?i._evalUrl(f.src):i.globalEval((f.text||f.textContent||f.innerHTML||"").replace(pe,"")));s=h=null}return this}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,r=0,f=[],e=i(n),o=e.length-1;o>=r;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),kt.apply(f,u.get());return this.pushStack(f)}});i.extend({clone:function(n,t,r){var f,h,o,e,s,c=i.contains(n.ownerDocument,n);if(i.support.html5Clone||i.isXMLDoc(n)||!pr.test("<"+n.nodeName+">")?o=n.cloneNode(!0):(si.innerHTML=n.outerHTML,si.removeChild(o=si.firstChild)),!(i.support.noCloneEvent&&i.support.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(f=u(o),s=u(n),e=0;null!=(h=s[e]);++e)f[e]&&be(h,f[e]);if(t)if(r)for(s=s||u(n),f=f||u(o),e=0;null!=(h=s[e]);e++)iu(h,f[e]);else iu(n,o);return f=u(o,"script"),f.length>0&&hi(f,!c&&u(n,"script")),f=s=h=null,o},buildFragment:function(n,t,r,f){for(var h,o,w,s,y,p,l,b=n.length,a=vr(t),c=[],v=0;b>v;v++)if(o=n[v],o||0===o)if("object"===i.type(o))i.merge(c,o.nodeType?[o]:o);else if(le.test(o)){for(s=s||a.appendChild(t.createElement("div")),y=(br.exec(o)||["",""])[1].toLowerCase(),l=e[y]||e._default,s.innerHTML=l[1]+o.replace(wr,"<$1><\/$2>")+l[2],h=l[0];h--;)s=s.lastChild;if(!i.support.leadingWhitespace&&ei.test(o)&&c.push(t.createTextNode(ei.exec(o)[0])),!i.support.tbody)for(o="table"!==y||kr.test(o)?"<table>"!==l[1]||kr.test(o)?0:s:s.firstChild,h=o&&o.childNodes.length;h--;)i.nodeName(p=o.childNodes[h],"tbody")&&!p.childNodes.length&&o.removeChild(p);for(i.merge(c,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=a.lastChild}else c.push(t.createTextNode(o));for(s&&a.removeChild(s),i.support.appendChecked||i.grep(u(c,"input"),ke),v=0;o=c[v++];)if((!f||-1===i.inArray(o,f))&&(w=i.contains(o.ownerDocument,o),s=u(a.appendChild(o),"script"),w&&hi(s),r))for(h=0;o=s[h++];)dr.test(o.type||"")&&r.push(o);return s=null,a},cleanData:function(n,t){for(var r,f,u,e,c=0,s=i.expando,h=i.cache,l=i.support.deleteExpando,a=i.event.special;null!=(r=n[c]);c++)if((t||i.acceptData(r))&&(u=r[s],e=u&&h[u])){if(e.events)for(f in e.events)a[f]?i.event.remove(r,f):i.removeEvent(r,f,e.handle);h[u]&&(delete h[u],l?delete r[s]:typeof r.removeAttribute!==o?r.removeAttribute(s):r[s]=null,b.push(u))}},_evalUrl:function(n){return i.ajax({url:n,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})}});i.fn.extend({wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]);t.map(function(){for(var n=this;n.firstChild&&1===n.firstChild.nodeType;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}});var rt,v,y,ci=/alpha\([^)]*\)/i,de=/opacity\s*=\s*([^)]*)/,ge=/^(top|right|bottom|left)$/,no=/^(none|table(?!-c[ea]).+)/,ru=/^margin/,to=RegExp("^("+st+")(.*)$","i"),lt=RegExp("^("+st+")(?!px)[a-z%]+$","i"),io=RegExp("^([+-])=("+st+")","i"),uu={BODY:"block"},ro={position:"absolute",visibility:"hidden",display:"block"},fu={letterSpacing:0,fontWeight:400},p=["Top","Right","Bottom","Left"],eu=["Webkit","O","Moz","ms"];i.fn.extend({css:function(n,r){return i.access(this,function(n,r,u){var e,o,s={},f=0;if(i.isArray(r)){for(o=v(n),e=r.length;e>f;f++)s[r[f]]=i.css(n,r[f],!1,o);return s}return u!==t?i.style(n,r,u):i.css(n,r)},n,r,arguments.length>1)},show:function(){return su(this,!0)},hide:function(){return su(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){ut(this)?i(this).show():i(this).hide()})}});i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=y(n,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:i.support.cssFloat?"cssFloat":"styleFloat"},style:function(n,r,u,f){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var o,s,e,h=i.camelCase(r),c=n.style;if(r=i.cssProps[h]||(i.cssProps[h]=ou(c,h)),e=i.cssHooks[r]||i.cssHooks[h],u===t)return e&&"get"in e&&(o=e.get(n,!1,f))!==t?o:c[r];if(s=typeof u,"string"===s&&(o=io.exec(u))&&(u=(o[1]+1)*o[2]+parseFloat(i.css(n,r)),s="number"),!(null==u||"number"===s&&isNaN(u)||("number"!==s||i.cssNumber[h]||(u+="px"),i.support.clearCloneStyle||""!==u||0!==r.indexOf("background")||(c[r]="inherit"),e&&"set"in e&&(u=e.set(n,u,f))===t)))try{c[r]=u}catch(l){}}},css:function(n,r,u,f){var h,e,o,s=i.camelCase(r);return r=i.cssProps[s]||(i.cssProps[s]=ou(n.style,s)),o=i.cssHooks[r]||i.cssHooks[s],o&&"get"in o&&(e=o.get(n,!0,u)),e===t&&(e=y(n,r,f)),"normal"===e&&r in fu&&(e=fu[r]),""===u||u?(h=parseFloat(e),u===!0||i.isNumeric(h)?h||0:e):e}});n.getComputedStyle?(v=function(t){return n.getComputedStyle(t,null)},y=function(n,r,u){var s,h,c,o=u||v(n),e=o?o.getPropertyValue(r)||o[r]:t,f=n.style;return o&&(""!==e||i.contains(n.ownerDocument,n)||(e=i.style(n,r)),lt.test(e)&&ru.test(r)&&(s=f.width,h=f.minWidth,c=f.maxWidth,f.minWidth=f.maxWidth=f.width=e,e=o.width,f.width=s,f.minWidth=h,f.maxWidth=c)),e}):r.documentElement.currentStyle&&(v=function(n){return n.currentStyle},y=function(n,i,r){var s,e,o,h=r||v(n),u=h?h[i]:t,f=n.style;return null==u&&f&&f[i]&&(u=f[i]),lt.test(u)&&!ge.test(i)&&(s=f.left,e=n.runtimeStyle,o=e&&e.left,o&&(e.left=n.currentStyle.left),f.left="fontSize"===i?"1em":u,u=f.pixelLeft+"px",f.left=s,o&&(e.left=o)),""===u?"auto":u});i.each(["height","width"],function(n,r){i.cssHooks[r]={get:function(n,u,f){return u?0===n.offsetWidth&&no.test(i.css(n,"display"))?i.swap(n,ro,function(){return lu(n,r,f)}):lu(n,r,f):t},set:function(n,t,u){var f=u&&v(n);return hu(n,t,u?cu(n,r,u,i.support.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,f),f):0)}}});i.support.opacity||(i.cssHooks.opacity={get:function(n,t){return de.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(n,t){var r=n.style,u=n.currentStyle,e=i.isNumeric(t)?"alpha(opacity="+100*t+")":"",f=u&&u.filter||r.filter||"";r.zoom=1;(t>=1||""===t)&&""===i.trim(f.replace(ci,""))&&r.removeAttribute&&(r.removeAttribute("filter"),""===t||u&&!u.filter)||(r.filter=ci.test(f)?f.replace(ci,e):f+" "+e)}});i(function(){i.support.reliableMarginRight||(i.cssHooks.marginRight={get:function(n,r){return r?i.swap(n,{display:"inline-block"},y,[n,"marginRight"]):t}});!i.support.pixelPosition&&i.fn.position&&i.each(["top","left"],function(n,r){i.cssHooks[r]={get:function(n,u){return u?(u=y(n,r),lt.test(u)?i(n).position()[r]+"px":u):t}}})});i.expr&&i.expr.filters&&(i.expr.filters.hidden=function(n){return 0>=n.offsetWidth&&0>=n.offsetHeight||!i.support.reliableHiddenOffsets&&"none"===(n.style&&n.style.display||i.css(n,"display"))},i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];4>r;r++)f[n+p[r]+t]=u[r]||u[r-2]||u[0];return f}};ru.test(n)||(i.cssHooks[n+t].set=hu)});var uo=/%20/g,fo=/\[\]$/,yu=/\r?\n/g,eo=/^(?:submit|button|image|reset|file)$/i,oo=/^(?:input|select|textarea|keygen)/i;i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&oo.test(this.nodeName)&&!eo.test(n)&&(this.checked||!oi.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(yu,"\r\n")}}):{name:t.name,value:r.replace(yu,"\r\n")}}).get()}});i.param=function(n,r){var u,f=[],e=function(n,t){t=i.isFunction(t)?t():null==t?"":t;f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(r===t&&(r=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(u in n)li(u,n[u],r,e);return f.join("&").replace(uo,"+")};i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)},bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}});var w,c,ai=i.now(),vi=/\?/,so=/#.*$/,pu=/([?&])_=[^&]*/,ho=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,co=/^(?:GET|HEAD)$/,lo=/^\/\//,wu=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,bu=i.fn.load,ku={},yi={},du="*/".concat("*");try{c=hf.href}catch(go){c=r.createElement("a");c.href="";c=c.href}w=wu.exec(c.toLowerCase())||[];i.fn.load=function(n,r,u){if("string"!=typeof n&&bu)return bu.apply(this,arguments);var f,s,h,e=this,o=n.indexOf(" ");return o>=0&&(f=n.slice(o,n.length),n=n.slice(0,o)),i.isFunction(r)?(u=r,r=t):r&&"object"==typeof r&&(h="POST"),e.length>0&&i.ajax({url:n,type:h,dataType:"html",data:r}).done(function(n){s=arguments;e.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).complete(u&&function(n,t){e.each(u,s||[n.responseText,t,n])}),this};i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}});i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:c,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(w[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":du,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?pi(pi(n,i.ajaxSettings),t):pi(i.ajaxSettings,n)},ajaxPrefilter:gu(ku),ajaxTransport:gu(yi),ajax:function(n,r){function k(n,r,s,c){var a,rt,k,p,w,l=r;2!==o&&(o=2,g&&clearTimeout(g),y=t,d=c||"",f.readyState=n>0?4:0,a=n>=200&&300>n||304===n,s&&(p=ao(u,f,s)),p=vo(u,p,f,a),a?(u.ifModified&&(w=f.getResponseHeader("Last-Modified"),w&&(i.lastModified[e]=w),w=f.getResponseHeader("etag"),w&&(i.etag[e]=w)),204===n||"HEAD"===u.type?l="nocontent":304===n?l="notmodified":(l=p.state,rt=p.data,k=p.error,a=!k)):(k=l,(n||!l)&&(l="error",0>n&&(n=0))),f.status=n,f.statusText=(r||l)+"",a?tt.resolveWith(h,[rt,l,f]):tt.rejectWith(h,[f,l,k]),f.statusCode(b),b=t,v&&nt.trigger(a?"ajaxSuccess":"ajaxError",[f,u,a?rt:k]),it.fireWith(h,[f,l]),v&&(nt.trigger("ajaxComplete",[f,u]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof n&&(r=n,n=t);r=r||{};var l,a,e,d,g,v,y,p,u=i.ajaxSetup({},r),h=u.context||u,nt=u.context&&(h.nodeType||h.jquery)?i(h):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),b=u.statusCode||{},rt={},ut={},o=0,ft="canceled",f={readyState:0,getResponseHeader:function(n){var t;if(2===o){if(!p)for(p={};t=ho.exec(d);)p[t[1].toLowerCase()]=t[2];t=p[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===o?d:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return o||(n=ut[i]=ut[i]||n,rt[n]=t),this},overrideMimeType:function(n){return o||(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(2>o)for(t in n)b[t]=[b[t],n[t]];else f.always(n[f.status]);return this},abort:function(n){var t=n||ft;return y&&y.abort(t),k(0,t),this}};if(tt.promise(f).complete=it.add,f.success=f.done,f.error=f.fail,u.url=((n||u.url||c)+"").replace(so,"").replace(lo,w[1]+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=i.trim(u.dataType||"*").toLowerCase().match(s)||[""],null==u.crossDomain&&(l=wu.exec(u.url.toLowerCase()),u.crossDomain=!(!l||l[1]===w[1]&&l[2]===w[2]&&(l[3]||("http:"===l[1]?"80":"443"))===(w[3]||("http:"===w[1]?"80":"443")))),u.data&&u.processData&&"string"!=typeof u.data&&(u.data=i.param(u.data,u.traditional)),nf(ku,u,r,f),2===o)return f;v=u.global;v&&0==i.active++&&i.event.trigger("ajaxStart");u.type=u.type.toUpperCase();u.hasContent=!co.test(u.type);e=u.url;u.hasContent||(u.data&&(e=u.url+=(vi.test(e)?"&":"?")+u.data,delete u.data),u.cache===!1&&(u.url=pu.test(e)?e.replace(pu,"$1_="+ai++):e+(vi.test(e)?"&":"?")+"_="+ai++));u.ifModified&&(i.lastModified[e]&&f.setRequestHeader("If-Modified-Since",i.lastModified[e]),i.etag[e]&&f.setRequestHeader("If-None-Match",i.etag[e]));(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&f.setRequestHeader("Content-Type",u.contentType);f.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+du+"; q=0.01":""):u.accepts["*"]);for(a in u.headers)f.setRequestHeader(a,u.headers[a]);if(u.beforeSend&&(u.beforeSend.call(h,f,u)===!1||2===o))return f.abort();ft="abort";for(a in{success:1,error:1,complete:1})f[a](u[a]);if(y=nf(yi,u,r,f)){f.readyState=1;v&&nt.trigger("ajaxSend",[f,u]);u.async&&u.timeout>0&&(g=setTimeout(function(){f.abort("timeout")},u.timeout));try{o=1;y.send(rt,k)}catch(et){if(!(2>o))throw et;k(-1,et)}}else k(-1,"No Transport");return f},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,r){return i.get(n,t,r,"script")}});i.each(["get","post"],function(n,r){i[r]=function(n,u,f,e){return i.isFunction(u)&&(e=e||f,f=u,u=t),i.ajax({url:n,type:r,dataType:e,data:u,success:f})}});i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(n){return i.globalEval(n),n}}});i.ajaxPrefilter("script",function(n){n.cache===t&&(n.cache=!1);n.crossDomain&&(n.type="GET",n.global=!1)});i.ajaxTransport("script",function(n){if(n.crossDomain){var u,f=r.head||i("head")[0]||r.documentElement;return{send:function(t,i){u=r.createElement("script");u.async=!0;n.scriptCharset&&(u.charset=n.scriptCharset);u.src=n.url;u.onload=u.onreadystatechange=function(n,t){(t||!u.readyState||/loaded|complete/.test(u.readyState))&&(u.onload=u.onreadystatechange=null,u.parentNode&&u.parentNode.removeChild(u),u=null,t||i(200,"success"))};f.insertBefore(u,f.firstChild)},abort:function(){u&&u.onload(t,!0)}}}});wi=[];at=/(=)\?(?=&|$)|\?\?/;i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=wi.pop()||i.expando+"_"+ai++;return this[n]=!0,n}});i.ajaxPrefilter("json jsonp",function(r,u,f){var e,s,o,h=r.jsonp!==!1&&(at.test(r.url)?"url":"string"==typeof r.data&&!(r.contentType||"").indexOf("application/x-www-form-urlencoded")&&at.test(r.data)&&"data");return h||"jsonp"===r.dataTypes[0]?(e=r.jsonpCallback=i.isFunction(r.jsonpCallback)?r.jsonpCallback():r.jsonpCallback,h?r[h]=r[h].replace(at,"$1"+e):r.jsonp!==!1&&(r.url+=(vi.test(r.url)?"&":"?")+r.jsonp+"="+e),r.converters["script json"]=function(){return o||i.error(e+" was not called"),o[0]},r.dataTypes[0]="json",s=n[e],n[e]=function(){o=arguments},f.always(function(){n[e]=s;r[e]&&(r.jsonpCallback=u.jsonpCallback,wi.push(e));o&&i.isFunction(s)&&s(o[0]);o=s=t}),"script"):t});tf=0;vt=n.ActiveXObject&&function(){var n;for(n in nt)nt[n](t,!0)};i.ajaxSettings.xhr=n.ActiveXObject?function(){return!this.isLocal&&rf()||yo()}:rf;tt=i.ajaxSettings.xhr();i.support.cors=!!tt&&"withCredentials"in tt;tt=i.support.ajax=!!tt;tt&&i.ajaxTransport(function(r){if(!r.crossDomain||i.support.cors){var u;return{send:function(f,e){var h,s,o=r.xhr();if(r.username?o.open(r.type,r.url,r.async,r.username,r.password):o.open(r.type,r.url,r.async),r.xhrFields)for(s in r.xhrFields)o[s]=r.xhrFields[s];r.mimeType&&o.overrideMimeType&&o.overrideMimeType(r.mimeType);r.crossDomain||f["X-Requested-With"]||(f["X-Requested-With"]="XMLHttpRequest");try{for(s in f)o.setRequestHeader(s,f[s])}catch(c){}o.send(r.hasContent&&r.data||null);u=function(n,f){var s,a,l,c;try{if(u&&(f||4===o.readyState))if(u=t,h&&(o.onreadystatechange=i.noop,vt&&delete nt[h]),f)4!==o.readyState&&o.abort();else{c={};s=o.status;a=o.getAllResponseHeaders();"string"==typeof o.responseText&&(c.text=o.responseText);try{l=o.statusText}catch(y){l=""}s||!r.isLocal||r.crossDomain?1223===s&&(s=204):s=c.text?200:404}}catch(v){f||e(-1,v)}c&&e(s,l,c,a)};r.async?4===o.readyState?setTimeout(u):(h=++tf,vt&&(nt||(nt={},i(n).unload(vt)),nt[h]=u),o.onreadystatechange=u):u()},abort:function(){u&&u(t,!0)}}}});var it,yt,po=/^(?:toggle|show|hide)$/,uf=RegExp("^(?:([+-])=|)("+st+")([a-z%]*)$","i"),wo=/queueHooks$/,pt=[ko],ft={"*":[function(n,t){var f=this.createTween(n,t),s=f.cur(),r=uf.exec(t),e=r&&r[3]||(i.cssNumber[n]?"":"px"),u=(i.cssNumber[n]||"px"!==e&&+s)&&uf.exec(i.css(f.elem,n)),o=1,h=20;if(u&&u[3]!==e){e=e||u[3];r=r||[];u=+s||1;do o=o||".5",u/=o,i.style(f.elem,n,u+e);while(o!==(o=f.cur()/s)&&1!==o&&--h)}return r&&(u=f.start=+u||+s||0,f.unit=e,f.end=r[1]?u+(r[1]+1)*r[2]:+r[2]),f}]};i.Animation=i.extend(of,{tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.split(" ");for(var r,u=0,f=n.length;f>u;u++)r=n[u],ft[r]=ft[r]||[],ft[r].unshift(t)},prefilter:function(n,t){t?pt.unshift(n):pt.push(n)}});i.Tween=f;f.prototype={constructor:f,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||"swing";this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=f.propHooks[this.prop];return n&&n.get?n.get(this):f.propHooks._default.get(this)},run:function(n){var r,t=f.propHooks[this.prop];return this.pos=r=this.options.duration?i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):n,this.now=(this.end-this.start)*r+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),t&&t.set?t.set(this):f.propHooks._default.set(this),this}};f.prototype.init.prototype=f.prototype;f.propHooks={_default:{get:function(n){var t;return null==n.elem[n.prop]||n.elem.style&&null!=n.elem.style[n.prop]?(t=i.css(n.elem,n.prop,""),t&&"auto"!==t?t:0):n.elem[n.prop]},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.style&&(null!=n.elem.style[i.cssProps[n.prop]]||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};f.propHooks.scrollTop=f.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(wt(t,!0),n,i,u)}});i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(ut).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){var o=i.isEmptyObject(n),e=i.speed(t,r,u),f=function(){var t=of(this,i.extend({},n),e);(o||i._data(this,"finish"))&&t.stop(!0)};return f.finish=f,o||e.queue===!1?this.each(f):this.queue(e.queue,f)},stop:function(n,r,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return"string"!=typeof n&&(u=r,r=n,n=t),r&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var o=!0,t=null!=n&&n+"queueHooks",e=i.timers,r=i._data(this);if(t)r[t]&&r[t].stop&&f(r[t]);else for(t in r)r[t]&&r[t].stop&&wo.test(t)&&f(r[t]);for(t=e.length;t--;)e[t].elem!==this||null!=n&&e[t].queue!==n||(e[t].anim.stop(u),o=!1,e.splice(t,1));(o||!u)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,f=i._data(this),r=f[n+"queue"],e=f[n+"queueHooks"],u=i.timers,o=r?r.length:0;for(f.finish=!0,i.queue(this,n,[]),e&&e.stop&&e.stop.call(this,!0),t=u.length;t--;)u[t].elem===this&&u[t].queue===n&&(u[t].anim.stop(!0),u.splice(t,1));for(t=0;o>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete f.finish})}});i.each({slideDown:wt("show"),slideUp:wt("hide"),slideToggle:wt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.speed=function(n,t,r){var u=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:"number"==typeof u.duration?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(null==u.queue||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2}};i.timers=[];i.fx=f.prototype.init;i.fx.tick=function(){var u,n=i.timers,r=0;for(it=i.now();n.length>r;r++)u=n[r],u()||n[r]!==u||n.splice(r--,1);n.length||i.fx.stop();it=t};i.fx.timer=function(n){n()&&i.timers.push(n)&&i.fx.start()};i.fx.interval=13;i.fx.start=function(){yt||(yt=setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){clearInterval(yt);yt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fx.step={};i.expr&&i.expr.filters&&(i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length});i.fn.offset=function(n){if(arguments.length)return n===t?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,e,f={top:0,left:0},u=this[0],s=u&&u.ownerDocument;if(s)return r=s.documentElement,i.contains(r,u)?(typeof u.getBoundingClientRect!==o&&(f=u.getBoundingClientRect()),e=sf(s),{top:f.top+(e.pageYOffset||r.scrollTop)-(r.clientTop||0),left:f.left+(e.pageXOffset||r.scrollLeft)-(r.clientLeft||0)}):f};i.offset={setOffset:function(n,t,r){var f=i.css(n,"position");"static"===f&&(n.style.position="relative");var e=i(n),o=e.offset(),l=i.css(n,"top"),a=i.css(n,"left"),v=("absolute"===f||"fixed"===f)&&i.inArray("auto",[l,a])>-1,u={},s={},h,c;v?(s=e.position(),h=s.top,c=s.left):(h=parseFloat(l)||0,c=parseFloat(a)||0);i.isFunction(t)&&(t=t.call(n,r,o));null!=t.top&&(u.top=t.top-o.top+h);null!=t.left&&(u.left=t.left-o.left+c);"using"in t?t.using.call(n,u):e.css(u)}};i.fn.extend({position:function(){if(this[0]){var n,r,t={top:0,left:0},u=this[0];return"fixed"===i.css(u,"position")?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0),t.left+=i.css(n[0],"borderLeftWidth",!0)),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent||ki;n&&!i.nodeName(n,"html")&&"static"===i.css(n,"position");)n=n.offsetParent;return n||ki})}});i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,r){var u=/Y/.test(r);i.fn[n]=function(f){return i.access(this,function(n,f,e){var o=sf(n);return e===t?o?r in o?o[r]:o.document.documentElement[f]:n[f]:(o?o.scrollTo(u?i(o).scrollLeft():e,u?e:i(o).scrollTop()):n[f]=e,t)},n,f,arguments.length,null)}});i.each({Height:"height",Width:"width"},function(n,r){i.each({padding:"inner"+n,content:r,"":"outer"+n},function(u,f){i.fn[f]=function(f,e){var o=arguments.length&&(u||"boolean"!=typeof f),s=u||(f===!0||e===!0?"margin":"border");return i.access(this,function(r,u,f){var e;return i.isWindow(r)?r.document.documentElement["client"+n]:9===r.nodeType?(e=r.documentElement,Math.max(r.body["scroll"+n],e["scroll"+n],r.body["offset"+n],e["offset"+n],e["client"+n])):f===t?i.css(r,u,s):i.style(r,u,f,s)},r,o?f:t,o,null)}})});i.fn.size=function(){return this.length};i.fn.andSelf=i.fn.addBack;"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=i:(n.jQuery=n.$=i,"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}))}(window),!function(n){n.fn.equalHeights=function(){var t=0,i=n(this);return i.each(function(){var i=n(this).innerHeight();i>t&&(t=i)}),i.css("height",t)};n("[data-equal]").each(function(){var t=n(this),i=t.data("equal");t.find(i).equalHeights()})}(jQuery),!function(n){n.fn.equalWidths=function(){var t=0,i=n(this);return i.each(function(){var i=n(this).innerWidth();i>t&&(t=i)}),i.css("width",t)};n("[data-equal]").each(function(){var t=n(this),i=t.data("equal");t.find(i).equalWidths()})}(jQuery),"undefined"==typeof jQuery)throw new Error("Bootstrap requires jQuery");+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(void 0!==i.style[n])return{end:t[n]}}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one(n.support.transition.end,function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){n.support.transition=t()})}(jQuery);+function(n){"use strict";var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.prototype.close=function(t){function f(){i.trigger("closed.bs.alert").remove()}var u=n(this),r=u.attr("data-target"),i;r||(r=u.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,""));i=n(r);t&&t.preventDefault();i.length||(i=u.hasClass("alert")?u:u.parent());i.trigger(t=n.Event("close.bs.alert"));t.isDefaultPrevented()||(i.removeClass("in"),n.support.transition&&i.hasClass("fade")?i.one(n.support.transition.end,f).emulateTransitionEnd(150):f())};r=n.fn.alert;n.fn.alert=function(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));"string"==typeof i&&u[i].call(r)})};n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery);+function(n){"use strict";var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r)},i;t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(n){var i="disabled",t=this.$element,r=t.is("input")?"val":"html",u=t.data();n+="Text";u.resetText||t.data("resetText",t[r]());t[r](u[n]||this.options[n]);setTimeout(function(){"loadingText"==n?t.addClass(i).attr(i,i):t.removeClass(i).removeAttr(i)},0)};t.prototype.toggle=function(){var i=this.$element.closest('[data-toggle="buttons"]'),t=!0,n;i.length&&(n=this.$element.find("input"),"radio"===n.prop("type")&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:i.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change"));t&&this.$element.toggleClass("active")};i=n.fn.button;n.fn.button=function(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f="object"==typeof i&&i;r||u.data("bs.button",r=new t(this,f));"toggle"==i?r.toggle():i&&r.setState(i)})};n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=i,this};n(document).on("click.bs.button.data-api","[data-toggle^=button]",function(t){var i=n(t.target);i.hasClass("btn")||(i=i.closest(".btn"));i.button("toggle");t.preventDefault()})}(jQuery);+function(n){"use strict";var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=this.sliding=this.interval=this.$active=this.$items=null;"hover"==this.options.pause&&this.$element.on("mouseenter",n.proxy(this.pause,this)).on("mouseleave",n.proxy(this.cycle,this))},i;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)};t.prototype.to=function(t){var r=this,i=this.getActiveIndex();if(!(t>this.$items.length-1)&&!(0>t))return this.sliding?this.$element.one("slid.bs.carousel",function(){r.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",n(this.$items[t]))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition.end&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(t,i){var u=this.$element.find(".item.active"),r=i||u[t](),s=this.interval,f="next"==t?"left":"right",h="next"==t?"first":"last",o=this,e;if(!r.length){if(!this.options.wrap)return;r=this.$element.find(".item")[h]()}if(this.sliding=!0,s&&this.pause(),e=n.Event("slide.bs.carousel",{relatedTarget:r[0],direction:f}),!r.hasClass("active")){if(this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",function(){var t=n(o.$indicators.children()[o.getActiveIndex()]);t&&t.addClass("active")})),n.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(e),e.isDefaultPrevented())return;r.addClass(t);r[0].offsetWidth;u.addClass(f);r.addClass(f);u.one(n.support.transition.end,function(){r.removeClass([t,f].join(" ")).addClass("active");u.removeClass(["active",f].join(" "));o.sliding=!1;setTimeout(function(){o.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(600)}else{if(this.$element.trigger(e),e.isDefaultPrevented())return;u.removeClass("active");r.addClass("active");this.sliding=!1;this.$element.trigger("slid.bs.carousel")}return s&&this.cycle(),this}};i=n.fn.carousel;n.fn.carousel=function(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i),e="string"==typeof i?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));"number"==typeof i?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})};n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=i,this};n(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(t){var f,i=n(this),r=n(i.attr("data-target")||(f=i.attr("href"))&&f.replace(/.*(?=#[^\s]+$)/,"")),e=n.extend({},r.data(),i.data()),u=i.attr("data-slide-to");u&&(e.interval=!1);r.carousel(e);(u=i.attr("data-slide-to"))&&r.data("bs.carousel").to(u);t.preventDefault()});n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);t.carousel(t.data())})})}(jQuery);+function(n){"use strict";var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.transitioning=null;this.options.parent&&(this.$parent=n(this.options.parent));this.options.toggle&&this.toggle()},i;t.DEFAULTS={toggle:!0};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var u,t,r,i,f,e;if(!this.transitioning&&!this.$element.hasClass("in")&&(u=n.Event("show.bs.collapse"),this.$element.trigger(u),!u.isDefaultPrevented())){if(t=this.$parent&&this.$parent.find("> .panel > .in"),t&&t.length){if(r=t.data("bs.collapse"),r&&r.transitioning)return;t.collapse("hide");r||t.data("bs.collapse",null)}if(i=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[i](0),this.transitioning=1,f=function(){this.$element.removeClass("collapsing").addClass("in")[i]("auto");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return f.call(this);e=n.camelCase(["scroll",i].join("-"));this.$element.one(n.support.transition.end,n.proxy(f,this)).emulateTransitionEnd(350)[i](this.$element[0][e])}};t.prototype.hide=function(){var i,t,r;if(!this.transitioning&&this.$element.hasClass("in")&&(i=n.Event("hide.bs.collapse"),this.$element.trigger(i),!i.isDefaultPrevented()))return t=this.dimension(),this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1,r=function(){this.transitioning=0;this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")},n.support.transition?(this.$element[t](0).one(n.support.transition.end,n.proxy(r,this)).emulateTransitionEnd(350),void 0):r.call(this)};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};i=n.fn.collapse;n.fn.collapse=function(i){return this.each(function(){var r=n(this),u=r.data("bs.collapse"),f=n.extend({},t.DEFAULTS,r.data(),"object"==typeof i&&i);u||r.data("bs.collapse",u=new t(this,f));"string"==typeof i&&u[i]()})};n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=i,this};n(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(t){var e,i=n(this),s=i.attr("data-target")||t.preventDefault()||(e=i.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""),r=n(s),u=r.data("bs.collapse"),h=u?"toggle":i.data(),f=i.attr("data-parent"),o=f&&n(f);u&&u.transitioning||(o&&o.find('[data-toggle=collapse][data-parent="'+f+'"]').not(i).addClass("collapsed"),i[r.hasClass("in")?"addClass":"removeClass"]("collapsed"));r.collapse(h)})}(jQuery);+function(n){"use strict";function r(){n(e).remove();n(i).each(function(t){var i=u(n(this));i.hasClass("open")&&(i.trigger(t=n.Event("hide.bs.dropdown")),t.isDefaultPrevented()||i.removeClass("open").trigger("hidden.bs.dropdown"))})}function u(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}var e=".dropdown-backdrop",i="[data-toggle=dropdown]",t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.prototype.toggle=function(t){var f=n(this),i,e;if(!f.is(".disabled, :disabled")){if(i=u(f),e=i.hasClass("open"),r(),!e){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n('<div class="dropdown-backdrop"/>').insertAfter(n(this)).on("click",r),i.trigger(t=n.Event("show.bs.dropdown")),t.isDefaultPrevented())return;i.toggleClass("open").trigger("shown.bs.dropdown");f.focus()}return!1}};t.prototype.keydown=function(t){var e,o,s,f,r;if(/(38|40|27)/.test(t.keyCode)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=u(e),s=o.hasClass("open"),!s||s&&27==t.keyCode)return 27==t.which&&o.find(i).focus(),e.click();f=n("[role=menu] li:not(.divider):visible a",o);f.length&&(r=f.index(f.filter(":focus")),38==t.keyCode&&r>0&&r--,40==t.keyCode&&r<f.length-1&&r++,~r||(r=0),f.eq(r).focus())}};f=n.fn.dropdown;n.fn.dropdown=function(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));"string"==typeof i&&u[i].call(r)})};n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i+", [role=menu]",t.prototype.keydown)}(jQuery);+function(n){"use strict";var t=function(t,i){this.options=i;this.$element=n(t);this.$backdrop=this.isShown=null;this.options.remote&&this.$element.load(this.options.remote)},i;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this[this.isShown?"hide":"show"](n)};t.prototype.show=function(t){var i=this,r=n.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(r);this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.$element.on("click.dismiss.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this)),this.backdrop(function(){var u=n.support.transition&&i.$element.hasClass("fade"),r;i.$element.parent().length||i.$element.appendTo(document.body);i.$element.show();u&&i.$element[0].offsetWidth;i.$element.addClass("in").attr("aria-hidden",!1);i.enforceFocus();r=n.Event("shown.bs.modal",{relatedTarget:t});u?i.$element.find(".modal-dialog").one(n.support.transition.end,function(){i.$element.focus().trigger(r)}).emulateTransitionEnd(300):i.$element.focus().trigger(r)}))};t.prototype.hide=function(t){t&&t.preventDefault();t=n.Event("hide.bs.modal");this.$element.trigger(t);this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one(n.support.transition.end,n.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.focus()},this))};t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",n.proxy(function(n){27==n.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.removeBackdrop();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(t){var r=this.$element.hasClass("fade")?"fade":"",i;if(this.isShown&&this.options.backdrop){if(i=n.support.transition&&r,this.$backdrop=n('<div class="modal-backdrop '+r+'" />').appendTo(document.body),this.$element.on("click.dismiss.modal",n.proxy(function(n){n.target===n.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;i?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()):t&&t()};i=n.fn.modal;n.fn.modal=function(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),"object"==typeof i&&i);u||f.data("bs.modal",u=new t(this,e));"string"==typeof i?u[i](r):e.show&&u.show(r)})};n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=i,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var i=n(this),r=i.attr("href"),u=n(i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),f=u.data("modal")?"toggle":n.extend({remote:!/#/.test(r)&&r},u.data(),i.data());t.preventDefault();u.modal(f,this).one("hide",function(){i.is(":visible")&&i.focus()})});n(document).on("show.bs.modal",".modal",function(){n(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){n(document.body).removeClass("modal-open")})}(jQuery);+function(n){"use strict";var t=function(n,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null;this.init("tooltip",n,t)},i;t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1};t.prototype.init=function(t,i,r){var f,e,u,o,s;for(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],"click"==u)this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else"manual"!=u&&(o="hover"==u?"mouseenter":"focus",s="hover"==u?"mouseleave":"blur",this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this)));this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show),void 0):i.show()};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide),void 0):i.hide()};t.prototype.show=function(){var o=n.Event("show.bs."+this.type),i,l;if(this.hasContent()&&this.enabled){if(this.$element.trigger(o),o.isDefaultPrevented())return;i=this.tip();this.setContent();this.options.animation&&i.addClass("fade");var t="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,h=s.test(t);h&&(t=t.replace(s,"")||"top");i.detach().css({top:0,left:0,display:"block"}).addClass(t);this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element);var r=this.getPosition(),u=i[0].offsetWidth,f=i[0].offsetHeight;if(h){var e=this.$element.parent(),a=t,c=document.documentElement.scrollTop||document.body.scrollTop,v="body"==this.options.container?window.innerWidth:e.outerWidth(),y="body"==this.options.container?window.innerHeight:e.outerHeight(),p="body"==this.options.container?0:e.offset().left;t="bottom"==t&&r.top+r.height+f-c>y?"top":"top"==t&&r.top-c-f<0?"bottom":"right"==t&&r.right+u>v?"left":"left"==t&&r.left-u<p?"right":t;i.removeClass(a).addClass(t)}l=this.getCalculatedOffset(t,r,u,f);this.applyPlacement(l,t);this.$element.trigger("shown.bs."+this.type)}};t.prototype.applyPlacement=function(n,t){var h,i=this.tip(),c=i[0].offsetWidth,f=i[0].offsetHeight,e=parseInt(i.css("margin-top"),10),o=parseInt(i.css("margin-left"),10),u,r,s;isNaN(e)&&(e=0);isNaN(o)&&(o=0);n.top=n.top+e;n.left=n.left+o;i.offset(n).addClass("in");u=i[0].offsetWidth;r=i[0].offsetHeight;("top"==t&&r!=f&&(h=!0,n.top=n.top+f-r),/bottom|top/.test(t))?(s=0,n.left<0&&(s=-2*n.left,n.left=0,i.offset(n),u=i[0].offsetWidth,r=i[0].offsetHeight),this.replaceArrow(s-c+u,u,"left")):this.replaceArrow(r-f,r,"top");h&&i.offset(n)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i,n?50*(1-n/t)+"%":"")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(){function i(){"in"!=u.hoverState&&t.detach()}var u=this,t=this.tip(),r=n.Event("hide.bs."+this.type);return this.$element.trigger(r),r.isDefaultPrevented()?void 0:(t.removeClass("in"),n.support.transition&&this.$tip.hasClass("fade")?t.one(n.support.transition.end,i).emulateTransitionEnd(150):i(),this.$element.trigger("hidden.bs."+this.type),this)};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||"string"!=typeof n.attr("data-original-title"))&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(){var t=this.$element[0];return n.extend({},"function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())};t.prototype.getCalculatedOffset=function(n,t,i,r){return"bottom"==n?{top:t.top+t.height,left:t.left+t.width/2-i/2}:"top"==n?{top:t.top-r,left:t.left+t.width/2-i/2}:"left"==n?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)};t.prototype.tip=function(){return this.$tip=this.$tip||n(this.options.template)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=t?n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){this.hide().$element.off("."+this.type).removeData("bs."+this.type)};i=n.fn.tooltip;n.fn.tooltip=function(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f="object"==typeof i&&i;r||u.data("bs.tooltip",r=new t(this,f));"string"==typeof i&&r[i]()})};n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle(),i=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](t);n.find(".popover-content")[this.options.html?"html":"text"](i);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||("function"==typeof n.content?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};t.prototype.tip=function(){return this.$tip||(this.$tip=n(this.options.template)),this.$tip};i=n.fn.popover;n.fn.popover=function(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f="object"==typeof i&&i;r||u.data("bs.popover",r=new t(this,f));"string"==typeof i&&r[i]()})};n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery);+function(n){"use strict";function t(i,r){var u,f=n.proxy(this.process,this);this.$element=n(i).is("body")?n(window):n(i);this.$body=n("body");this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",f);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||(u=n(i).attr("href"))&&u.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a";this.offsets=n([]);this.targets=n([]);this.activeTarget=null;this.refresh();this.process()}t.DEFAULTS={offset:10};t.prototype.refresh=function(){var i=this.$element[0]==window?"offset":"position",t;this.offsets=n([]);this.targets=n([]);t=this;this.$body.find(this.selector).map(function(){var f=n(this),r=f.data("target")||f.attr("href"),u=/^#\w/.test(r)&&n(r);return u&&u.length&&[[u[i]().top+(!n.isWindow(t.$scrollElement.get(0))&&t.$scrollElement.scrollTop()),r]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var n,i=this.$scrollElement.scrollTop()+this.options.offset,f=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,e=f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget;if(i>=e)return u!=(n=r.last()[0])&&this.activate(n);for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(!t[n+1]||i<=t[n+1])&&this.activate(r[n])};t.prototype.activate=function(t){this.activeTarget=t;n(this.selector).parents(".active").removeClass("active");var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate.bs.scrollspy")};var i=n.fn.scrollspy;n.fn.scrollspy=function(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f="object"==typeof i&&i;r||u.data("bs.scrollspy",r=new t(this,f));"string"==typeof i&&r[i]()})};n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=i,this};n(window).on("load",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);t.scrollspy(t.data())})})}(jQuery);+function(n){"use strict";var t=function(t){this.element=n(t)},i;t.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),r,u,f;(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),t.parent("li").hasClass("active"))||(r=e.find(".active:last a")[0],u=n.Event("show.bs.tab",{relatedTarget:r}),(t.trigger(u),u.isDefaultPrevented())||(f=n(i),this.activate(t.parent("li"),e),this.activate(f,f.parent(),function(){t.trigger({type:"shown.bs.tab",relatedTarget:r})})))};t.prototype.activate=function(t,i,r){function f(){u.removeClass("active").find("> .dropdown-menu > .active").removeClass("active");t.addClass("active");e?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade");t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active");r&&r()}var u=i.find("> .active"),e=r&&n.support.transition&&u.hasClass("fade");e?u.one(n.support.transition.end,f).emulateTransitionEnd(150):f();u.removeClass("in")};i=n.fn.tab;n.fn.tab=function(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));"string"==typeof i&&r[i]()})};n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=i,this};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault();n(this).tab("show")})}(jQuery);+function(n){"use strict";var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$window=n(window).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=this.unpin=null;this.checkPosition()},i;t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i;if(this.$element.is(":visible")){var s=n(document).height(),e=this.$window.scrollTop(),o=this.$element.offset(),r=this.options.offset,f=r.top,u=r.bottom;"object"!=typeof r&&(u=f=r);"function"==typeof f&&(f=r.top());"function"==typeof u&&(u=r.bottom());i=null!=this.unpin&&e+this.unpin<=o.top?!1:null!=u&&o.top+this.$element.height()>=s-u?"bottom":null!=f&&f>=e?"top":!1;this.affixed!==i&&(this.unpin&&this.$element.css("top",""),this.affixed=i,this.unpin="bottom"==i?o.top-e:null,this.$element.removeClass(t.RESET).addClass("affix"+(i?"-"+i:"")),"bottom"==i&&this.$element.offset({top:document.body.offsetHeight-u-this.$element.height()}))}};i=n.fn.affix;n.fn.affix=function(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f="object"==typeof i&&i;r||u.data("bs.affix",r=new t(this,f));"string"==typeof i&&r[i]()})};n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=i,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var i=n(this),t=i.data();t.offset=t.offset||{};t.offsetBottom&&(t.offset.bottom=t.offsetBottom);t.offsetTop&&(t.offset.top=t.offsetTop);i.affix(t)})})}(jQuery),function(n){function i(){var n=location.href;return hashtag=n.indexOf("#prettyPhoto")!==-1?decodeURI(n.substring(n.indexOf("#prettyPhoto")+1,n.length)):!1}function r(){typeof theRel!="undefined"&&(location.hash=theRel+"/"+rel_index+"/")}function u(){location.href.indexOf("#prettyPhoto")!==-1&&(location.hash="prettyPhoto")}function t(n,t){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var r="[\\?&]"+n+"=([^&#]*)",u=new RegExp(r),i=u.exec(t);return i==null?"":i[1]}n.prettyPhoto={version:"3.1.5"};n.fn.prettyPhoto=function(f){function b(){n(".pp_loaderIcon").hide();projectedTop=scroll_pos.scrollTop+(h/2-e.containerHeight/2);projectedTop<0&&(projectedTop=0);$ppt.fadeTo(settings.animation_speed,1);$pp_pic_holder.find(".pp_content").animate({height:e.contentHeight,width:e.contentWidth},settings.animation_speed);$pp_pic_holder.animate({top:projectedTop,left:s/2-e.containerWidth/2<0?0:s/2-e.containerWidth/2,width:e.containerWidth},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(e.height).width(e.width);$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed);isSet&&k(pp_images[set_position])=="image"&&$pp_pic_holder.find(".pp_hoverContainer").show();settings.allow_expand&&(e.resized?n("a.pp_expand,a.pp_contract").show():n("a.pp_expand").hide());!settings.autoplay_slideshow||a||p||n.prettyPhoto.startSlideshow();settings.changepicturecallback();p=!0});et();f.ajaxcallback()}function nt(t){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden");$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,function(){n(".pp_loaderIcon").show();t()})}function ut(t){t>1?n(".pp_nav").show():n(".pp_nav").hide()}function o(n,t){if(resized=!1,tt(n,t),imageWidth=n,imageHeight=t,(l>s||c>h)&&doresize&&settings.allow_resize&&!v){for(resized=!0,fitting=!1;!fitting;)l>s?(imageWidth=s-200,imageHeight=t/n*imageWidth):c>h?(imageHeight=h-200,imageWidth=n/t*imageHeight):fitting=!0,c=imageHeight,l=imageWidth;(l>s||c>h)&&o(l,c);tt(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(c),containerWidth:Math.floor(l)+settings.horizontal_padding*2,contentHeight:Math.floor(w),contentWidth:Math.floor(g),resized:resized}}function tt(t,i){t=parseFloat(t);i=parseFloat(i);$pp_details=$pp_pic_holder.find(".pp_details");$pp_details.width(t);detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom"));$pp_details=$pp_details.clone().addClass(settings.theme).width(t).appendTo(n("body")).css({position:"absolute",top:-1e4});detailsHeight+=$pp_details.height();detailsHeight=detailsHeight<=34?36:detailsHeight;$pp_details.remove();$pp_title=$pp_pic_holder.find(".ppt");$pp_title.width(t);titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom"));$pp_title=$pp_title.clone().appendTo(n("body")).css({position:"absolute",top:-1e4});titleHeight+=$pp_title.height();$pp_title.remove();w=i+detailsHeight;g=t;c=w+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height();l=t}function k(n){return n.match(/youtube\.com\/watch/i)||n.match(/youtu\.be/i)?"youtube":n.match(/vimeo\.com/i)?"vimeo":n.match(/\b.mov\b/i)?"quicktime":n.match(/\b.swf\b/i)?"flash":n.match(/\biframe=true\b/i)?"iframe":n.match(/\bajax=true\b/i)?"ajax":n.match(/\bcustom=true\b/i)?"custom":n.substr(0,1)=="#"?"inline":"image"}function d(){if(doresize&&typeof $pp_pic_holder!="undefined"){if(scroll_pos=it(),contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width(),projectedTop=h/2+scroll_pos.scrollTop-contentHeight/2,projectedTop<0&&(projectedTop=0),contentHeight>h)return;$pp_pic_holder.css({top:projectedTop,left:s/2+scroll_pos.scrollLeft-contentwidth/2})}}function it(){return self.pageYOffset?{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}:document.documentElement&&document.documentElement.scrollTop?{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}:document.body?{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}:void 0}function ft(){h=n(window).height();s=n(window).width();typeof $pp_overlay!="undefined"&&$pp_overlay.height(n(document).height()).width(s)}function et(){isSet&&settings.overlay_gallery&&k(pp_images[set_position])=="image"?(itemWidth=57,navWidth=settings.theme=="facebook"||settings.theme=="pp_default"?50:30,itemsPerPage=Math.floor((e.containerWidth-100-navWidth)/itemWidth),itemsPerPage=itemsPerPage<pp_images.length?itemsPerPage:pp_images.length,totalPage=Math.ceil(pp_images.length/itemsPerPage)-1,totalPage==0?(navWidth=0,$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").hide()):$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").show(),galleryWidth=itemsPerPage*itemWidth,fullGalleryWidth=pp_images.length*itemWidth,$pp_gallery.css("margin-left",-(galleryWidth/2+navWidth/2)).find("div:first").width(galleryWidth+5).find("ul").width(fullGalleryWidth).find("li.selected").removeClass("selected"),goToPage=Math.floor(set_position/itemsPerPage)<totalPage?Math.floor(set_position/itemsPerPage):totalPage,n.prettyPhoto.changeGalleryPage(goToPage),$pp_gallery_li.filter(":eq("+set_position+")").addClass("selected")):$pp_pic_holder.find(".pp_content").unbind("mouseenter mouseleave")}function rt(){if(settings.social_tools&&(facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href))),settings.markup=settings.markup.replace("{pp_social}",""),n("body").append(settings.markup),$pp_pic_holder=n(".pp_pic_holder"),$ppt=n(".ppt"),$pp_overlay=n("div.pp_overlay"),isSet&&settings.overlay_gallery){currentGalleryPage=0;toInject="";for(var t=0;t<pp_images.length;t++)pp_images[t].match(/\b(jpg|jpeg|png|gif)\b/gi)?(classname="",img_src=pp_images[t]):(classname="default",img_src=""),toInject+="<li class='"+classname+"'><a href='#'><img src='"+img_src+"' width='50' alt='' /><\/a><\/li>";toInject=settings.gallery_markup.replace(/{gallery}/g,toInject);$pp_pic_holder.find("#pp_full_res").after(toInject);$pp_gallery=n(".pp_pic_holder .pp_gallery");$pp_gallery_li=$pp_gallery.find("li");$pp_gallery.find(".pp_arrow_next").click(function(){return n.prettyPhoto.changeGalleryPage("next"),n.prettyPhoto.stopSlideshow(),!1});$pp_gallery.find(".pp_arrow_previous").click(function(){return n.prettyPhoto.changeGalleryPage("previous"),n.prettyPhoto.stopSlideshow(),!1});$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()});itemWidth=57;$pp_gallery_li.each(function(t){n(this).find("a").click(function(){return n.prettyPhoto.changePage(t),n.prettyPhoto.stopSlideshow(),!1})})}settings.slideshow&&($pp_pic_holder.find(".pp_nav").prepend('<a href="#" class="pp_play">Play<\/a>'),$pp_pic_holder.find(".pp_nav .pp_play").click(function(){return n.prettyPhoto.startSlideshow(),!1}));$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme);$pp_overlay.css({opacity:0,height:n(document).height(),width:n(window).width()}).bind("click",function(){settings.modal||n.prettyPhoto.close()});n("a.pp_close").bind("click",function(){return n.prettyPhoto.close(),!1});settings.allow_expand&&n("a.pp_expand").bind("click",function(){return n(this).hasClass("pp_expand")?(n(this).removeClass("pp_expand").addClass("pp_contract"),doresize=!1):(n(this).removeClass("pp_contract").addClass("pp_expand"),doresize=!0),nt(function(){n.prettyPhoto.open()}),!1});$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){return n.prettyPhoto.changePage("previous"),n.prettyPhoto.stopSlideshow(),!1});$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){return n.prettyPhoto.changePage("next"),n.prettyPhoto.stopSlideshow(),!1});d()}f=jQuery.extend({hook:"rel",animation_speed:"fast",ajaxcallback:function(){},slideshow:5e3,autoplay_slideshow:!1,opacity:.8,show_title:!0,allow_resize:!0,allow_expand:!0,default_width:500,default_height:344,counter_separator_label:"/",theme:"pp_default",horizontal_padding:20,hideflash:!1,wmode:"opaque",autoplay:!0,modal:!1,deeplinking:!0,overlay_gallery:!0,overlay_gallery_max:30,keyboard_shortcuts:!0,changepicturecallback:function(){},callback:function(){},ie6_fallback:!0,markup:'<div class="pp_pic_holder"> \t\t\t\t\t\t<div class="ppt">&nbsp;<\/div> \t\t\t\t\t\t<div class="pp_top"> \t\t\t\t\t\t\t<div class="pp_left"><\/div> \t\t\t\t\t\t\t<div class="pp_middle"><\/div> \t\t\t\t\t\t\t<div class="pp_right"><\/div> \t\t\t\t\t\t<\/div> \t\t\t\t\t\t<div class="pp_content_container"> \t\t\t\t\t\t\t<div class="pp_left"> \t\t\t\t\t\t\t<div class="pp_right"> \t\t\t\t\t\t\t\t<div class="pp_content"> \t\t\t\t\t\t\t\t\t<div class="pp_loaderIcon"><\/div> \t\t\t\t\t\t\t\t\t<div class="pp_fade"> \t\t\t\t\t\t\t\t\t\t<a href="#" class="pp_expand" title="Expand the image">Expand<\/a>                                         <a class="pp_close transparent" href="#">Done<\/a> \t\t\t\t\t\t\t\t\t\t<a class="pp_next" href="#">next<\/a> \t\t\t\t\t\t\t\t\t\t<a class="pp_previous" href="#">previous<\/a> \t\t\t\t\t\t\t\t\t\t<div id="pp_full_res"><\/div> \t\t\t\t\t\t\t\t\t\t<div class="pp_details"> \t\t\t\t\t\t\t\t\t\t\t<div class="pp_nav"> \t\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="pp_arrow_previous">Previous<\/a> \t\t\t\t\t\t\t\t\t\t\t\t<p class="currentTextHolder">0/0<\/p> \t\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="pp_arrow_next">Next<\/a> \t\t\t\t\t\t\t\t\t\t\t<\/div> \t\t\t\t\t\t\t\t\t\t\t<p class="pp_description"><\/p> \t\t\t\t\t\t\t\t\t\t\t<div class="pp_social">{pp_social}<\/div> \t\t\t\t\t\t\t\t\t\t<\/div> \t\t\t\t\t\t\t\t\t<\/div> \t\t\t\t\t\t\t\t<\/div> \t\t\t\t\t\t\t<\/div> \t\t\t\t\t\t\t<\/div> \t\t\t\t\t\t<\/div> \t\t\t\t\t\t<div class="pp_bottom"> \t\t\t\t\t\t\t<div class="pp_left"><\/div> \t\t\t\t\t\t\t<div class="pp_middle"><\/div> \t\t\t\t\t\t\t<div class="pp_right"><\/div> \t\t\t\t\t\t<\/div> \t\t\t\t\t<\/div> \t\t\t\t\t<div class="pp_overlay"><\/div>',gallery_markup:'<div class="pp_gallery"> \t\t\t\t\t\t\t\t<a href="#" class="pp_arrow_previous">Previous<\/a> \t\t\t\t\t\t\t\t<div> \t\t\t\t\t\t\t\t\t<ul> \t\t\t\t\t\t\t\t\t\t{gallery} \t\t\t\t\t\t\t\t\t<\/ul> \t\t\t\t\t\t\t\t<\/div> \t\t\t\t\t\t\t\t<a href="#" class="pp_arrow_next">Next<\/a> \t\t\t\t\t\t\t<\/div>',image_markup:'<img id="fullResImage" src="{path}" />',flash_markup:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"><\/embed><\/object>',quicktime_markup:'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"><\/embed><\/object>',iframe_markup:'<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"><\/iframe>',inline_markup:'<div class="pp_inline">{content}<\/div>',custom_markup:"",social_tools:'<div class="twitter"><a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet<\/a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"><\/script><\/div><div class="facebook"><iframe src="//www.facebook.com/plugins/like.php?locale=en_US&href={location_href}&amp;layout=button_count&amp;show_faces=true&amp;width=500&amp;action=like&amp;font&amp;colorscheme=light&amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"><\/iframe><\/div>'},f);var y=this,v=!1,e,p,w,g,c,l,h=n(window).height(),s=n(window).width(),a;return doresize=!0,scroll_pos=it(),n(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){d();ft()}),f.keyboard_shortcuts&&n(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(t){if(typeof $pp_pic_holder!="undefined"&&$pp_pic_holder.is(":visible"))switch(t.keyCode){case 37:n.prettyPhoto.changePage("previous");t.preventDefault();break;case 39:n.prettyPhoto.changePage("next");t.preventDefault();break;case 27:settings.modal||n.prettyPhoto.close();t.preventDefault()}}),n.prettyPhoto.initialize=function(){return settings=f,settings.theme=="pp_default"&&(settings.horizontal_padding=16),theRel=n(this).attr(settings.hook),galleryRegExp=/\[(?:.*)\]/,isSet=galleryRegExp.exec(theRel)?!0:!1,pp_images=isSet?jQuery.map(y,function(t){if(n(t).attr(settings.hook).indexOf(theRel)!=-1)return n(t).attr("href")}):n.makeArray(n(this).attr("href")),pp_titles=isSet?jQuery.map(y,function(t){if(n(t).attr(settings.hook).indexOf(theRel)!=-1)return n(t).find("img").attr("alt")?n(t).find("img").attr("alt"):""}):n.makeArray(n(this).find("img").attr("alt")),pp_descriptions=isSet?jQuery.map(y,function(t){if(n(t).attr(settings.hook).indexOf(theRel)!=-1)return n(t).attr("title")?n(t).attr("title"):""}):n.makeArray(n(this).attr("title")),pp_images.length>settings.overlay_gallery_max&&(settings.overlay_gallery=!1),set_position=jQuery.inArray(n(this).attr("href"),pp_images),rel_index=isSet?set_position:n("a["+settings.hook+"^='"+theRel+"']").index(n(this)),rt(this),settings.allow_resize&&n(window).bind("scroll.prettyphoto",function(){d()}),n.prettyPhoto.open(),!1},n.prettyPhoto.open=function(i){return typeof settings=="undefined"&&(settings=f,pp_images=n.makeArray(arguments[0]),pp_titles=arguments[1]?n.makeArray(arguments[1]):n.makeArray(""),pp_descriptions=arguments[2]?n.makeArray(arguments[2]):n.makeArray(""),isSet=pp_images.length>1?!0:!1,set_position=arguments[3]?arguments[3]:0,rt(i.target)),settings.hideflash&&n("object,video,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","hidden"),ut(n(pp_images).size()),n(".pp_loaderIcon").show(),settings.deeplinking&&r(),settings.social_tools&&(facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href)),$pp_pic_holder.find(".pp_social").html(facebook_like_link)),$ppt.is(":hidden")&&$ppt.css("opacity",0).show(),$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity),$pp_pic_holder.find(".currentTextHolder").text(set_position+1+settings.counter_separator_label+n(pp_images).size()),typeof pp_descriptions[set_position]!="undefined"&&pp_descriptions[set_position]!=""?$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position])):$pp_pic_holder.find(".pp_description").hide(),movie_width=parseFloat(t("width",pp_images[set_position]))?t("width",pp_images[set_position]):settings.default_width.toString(),movie_height=parseFloat(t("height",pp_images[set_position]))?t("height",pp_images[set_position]):settings.default_height.toString(),v=!1,movie_height.indexOf("%")!=-1&&(movie_height=parseFloat(n(window).height()*parseFloat(movie_height)/100-150),v=!0),movie_width.indexOf("%")!=-1&&(movie_width=parseFloat(n(window).width()*parseFloat(movie_width)/100-150),v=!0),$pp_pic_holder.fadeIn(function(){settings.show_title&&pp_titles[set_position]!=""&&typeof pp_titles[set_position]!="undefined"?$ppt.html(unescape(pp_titles[set_position])):$ppt.html("&nbsp;");imgPreloader="";skipInjection=!1;switch(k(pp_images[set_position])){case"image":imgPreloader=new Image;nextImage=new Image;isSet&&set_position<n(pp_images).size()-1&&(nextImage.src=pp_images[set_position+1]);prevImage=new Image;isSet&&pp_images[set_position-1]&&(prevImage.src=pp_images[set_position-1]);$pp_pic_holder.find("#pp_full_res")[0].innerHTML=settings.image_markup.replace(/{path}/g,pp_images[set_position]);imgPreloader.onload=function(){e=o(imgPreloader.width,imgPreloader.height);b()};imgPreloader.onerror=function(){alert("Image cannot be loaded. Make sure the path is correct and image exist.");n.prettyPhoto.close()};imgPreloader.src=pp_images[set_position];break;case"youtube":e=o(movie_width,movie_height);movie_id=t("v",pp_images[set_position]);movie_id==""&&(movie_id=pp_images[set_position].split("youtu.be/"),movie_id=movie_id[1],movie_id.indexOf("?")>0&&(movie_id=movie_id.substr(0,movie_id.indexOf("?"))),movie_id.indexOf("&")>0&&(movie_id=movie_id.substr(0,movie_id.indexOf("&"))));movie="http://www.youtube.com/embed/"+movie_id;movie+=t("rel",pp_images[set_position])?"?rel="+t("rel",pp_images[set_position]):"?rel=1";settings.autoplay&&(movie+="&autoplay=1");toInject=settings.iframe_markup.replace(/{width}/g,e.width).replace(/{height}/g,e.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case"vimeo":e=o(movie_width,movie_height);movie_id=pp_images[set_position];var i=movie_id.match(/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/);movie="http://player.vimeo.com/video/"+i[3]+"?title=0&amp;byline=0&amp;portrait=0";settings.autoplay&&(movie+="&autoplay=1;");vimeo_width=e.width+"/embed/?moog_width="+e.width;toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,e.height).replace(/{path}/g,movie);break;case"quicktime":e=o(movie_width,movie_height);e.height+=15;e.contentHeight+=15;e.containerHeight+=15;toInject=settings.quicktime_markup.replace(/{width}/g,e.width).replace(/{height}/g,e.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case"flash":e=o(movie_width,movie_height);flash_vars=pp_images[set_position];flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length);filename=pp_images[set_position];filename=filename.substring(0,filename.indexOf("?"));toInject=settings.flash_markup.replace(/{width}/g,e.width).replace(/{height}/g,e.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case"iframe":e=o(movie_width,movie_height);frame_url=pp_images[set_position];frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1);toInject=settings.iframe_markup.replace(/{width}/g,e.width).replace(/{height}/g,e.height).replace(/{path}/g,frame_url);break;case"ajax":doresize=!1;e=o(movie_width,movie_height);doresize=!0;skipInjection=!0;n.get(pp_images[set_position],function(n){toInject=settings.inline_markup.replace(/{content}/g,n);$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject;b()});break;case"custom":e=o(movie_width,movie_height);toInject=settings.custom_markup;break;case"inline":myClone=n(pp_images[set_position]).clone().append('<br clear="all" />').css({width:settings.default_width}).wrapInner('<div id="pp_full_res"><div class="pp_inline"><\/div><\/div>').appendTo(n("body")).show();doresize=!1;e=o(n(myClone).width(),n(myClone).height());doresize=!0;n(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,n(pp_images[set_position]).html())}imgPreloader||skipInjection||($pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,b())}),!1},n.prettyPhoto.changePage=function(t){currentGalleryPage=0;t=="previous"?(set_position--,set_position<0&&(set_position=n(pp_images).size()-1)):t=="next"?(set_position++,set_position>n(pp_images).size()-1&&(set_position=0)):set_position=t;rel_index=set_position;doresize||(doresize=!0);settings.allow_expand&&n(".pp_contract").removeClass("pp_contract").addClass("pp_expand");nt(function(){n.prettyPhoto.open()})},n.prettyPhoto.changeGalleryPage=function(n){n=="next"?(currentGalleryPage++,currentGalleryPage>totalPage&&(currentGalleryPage=0)):n=="previous"?(currentGalleryPage--,currentGalleryPage<0&&(currentGalleryPage=totalPage)):currentGalleryPage=n;slide_speed=n=="next"||n=="previous"?settings.animation_speed:0;slide_to=currentGalleryPage*itemsPerPage*itemWidth;$pp_gallery.find("ul").animate({left:-slide_to},slide_speed)},n.prettyPhoto.startSlideshow=function(){typeof a=="undefined"?($pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){return n.prettyPhoto.stopSlideshow(),!1}),a=setInterval(n.prettyPhoto.startSlideshow,settings.slideshow)):n.prettyPhoto.changePage("next")},n.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){return n.prettyPhoto.startSlideshow(),!1});clearInterval(a);a=undefined},n.prettyPhoto.close=function(){$pp_overlay.is(":animated")||(n.prettyPhoto.stopSlideshow(),$pp_pic_holder.stop().find("object,embed").css("visibility","hidden"),n("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){n(this).remove()}),$pp_overlay.fadeOut(settings.animation_speed,function(){settings.hideflash&&n("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","visible");n(this).remove();n(window).unbind("scroll.prettyphoto");u();settings.callback();doresize=!0;p=!1;delete settings}))},!pp_alreadyInitialized&&i()&&(pp_alreadyInitialized=!0,hashIndex=i(),hashRel=hashIndex,hashIndex=hashIndex.substring(hashIndex.indexOf("/")+1,hashIndex.length-1),hashRel=hashRel.substring(0,hashRel.indexOf("/")),setTimeout(function(){n("a["+f.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger("click")},50)),this.unbind("click.prettyphoto").bind("click.prettyphoto",n.prettyPhoto.initialize)}}(jQuery);pp_alreadyInitialized=!1;jQuery(function(n,t){var l=function(n){n=n.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(n)||/(webkit)[ \/]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||n.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[];return{browser:t[1]||"",version:t[2]||"0"}},o=l(navigator.userAgent),r={};o.browser&&(r[o.browser]=!0,r.version=o.version);r.chrome?r.webkit=!0:r.webkit&&(r.safari=!0);var u=n(window),s=n(document),h=n("body"),a=n("base").attr("href"),c={filters:[],callbacks:{},anims:{},loadFilter:t,modal:!1,closeOnEscape:!0,closeOnClick:!0,useKeyHandler:!1,showCloseButton:!0,closeButton:'<a href="#" class="nyroModalClose nyroModalCloseButton nmReposition" title="close">Close<\/a>',stack:!1,nonStackable:"form",header:t,footer:t,galleryLoop:!0,galleryCounts:!0,ltr:!0,domCopy:!1,ajax:{},imageRegex:"[^.].(jpg|jpeg|png|tiff|gif|bmp)s*$",selIndicator:"nyroModalSel",swfObjectId:t,swf:{allowFullScreen:"true",allowscriptaccess:"always",wmode:"transparent"},store:{},errorMsg:"An error occured",elts:{all:t,bg:t,load:t,cont:t,hidden:t},sizes:{initW:t,initH:t,w:t,h:t,minW:t,minH:t,wMargin:t,hMargin:t},anim:{def:t,showBg:t,hideBg:t,showLoad:t,hideLoad:t,showCont:t,hideCont:t,showTrans:t,hideTrans:t,resize:t},_open:!1,_bgReady:!1,_opened:!1,_loading:!1,_animated:!1,_transition:!1,_nmOpener:t,_nbContentLoading:0,_scripts:"",_scriptsShown:"",saveObj:function(){this.opener.data("nmObj",this)},open:function(){this._nmOpener&&this._nmOpener._close();this.getInternal()._pushStack(this.opener);this._opened=!1;this._bgReady=!1;this._open=!0;this._initElts();this._load();this._nbContentLoading=0;this._callAnim("showBg",n.proxy(function(){this._bgReady=!0;this._nmOpener&&(this._nmOpener._bgReady=!1,this._nmOpener._loading=!1,this._nmOpener._animated=!1,this._nmOpener._opened=!1,this._nmOpener._open=!1,this._nmOpener.elts.cont=this._nmOpener.elts.hidden=this._nmOpener.elts.load=this._nmOpener.elts.bg=this._nmOpener.elts.all=t,this._nmOpener.saveObj(),this._nmOpener=t);this._contentLoading()},this))},resize:function(t){t?(this.elts.hidden.append(this.elts.cont.children().first().clone()),this.sizes.initW=this.sizes.w=this.elts.hidden.width(),this.sizes.initH=this.sizes.h=this.elts.hidden.height(),this.elts.hidden.empty()):(this.sizes.w=this.sizes.initW,this.sizes.h=this.sizes.initH);this._unreposition();this.size();this._callAnim("resize",n.proxy(function(){this._reposition()},this))},size:function(){var n=this.getInternal().fullSize.viewH-this.sizes.hMargin,t=this.getInternal().fullSize.viewW-this.sizes.wMargin;this.sizes.minW&&this.sizes.minW>this.sizes.w&&(this.sizes.w=this.sizes.minW);this.sizes.minH&&this.sizes.minH>this.sizes.h&&(this.sizes.h=this.sizes.minH);(this.sizes.h>n||this.sizes.w>t)&&(this.sizes.h=Math.min(this.sizes.h,n),this.sizes.w=Math.min(this.sizes.w,t));this._callFilters("size")},getForNewLinks:function(i){var r;return this.stack&&(!i||this.isStackable(i))?(r=n.extend(!0,{},this),r._nmOpener=t,r.elts.all=t):(r=n.extend({},this),r._nmOpener=this),r.filters=[],r.opener=t,r._open=!1,r},isStackable:function(n){return!n.is(this.nonStackable)},keyHandle:function(n){this.keyEvent=n;this._callFilters("keyHandle");this.keyEvent=t;delete this.keyEvent},getInternal:function(){return i},_close:function(){this.getInternal()._removeStack(this.opener);this._opened=!1;this._open=!1;this._callFilters("close")},close:function(){this._close();this._callFilters("beforeClose");var n=this;this._unreposition();n._callAnim("hideCont",function(){n._callAnim("hideLoad",function(){n._callAnim("hideBg",function(){n._callFilters("afterClose");n.elts.cont.remove();n.elts.hidden.remove();n.elts.load.remove();n.elts.bg.remove();n.elts.all.remove();n.elts.cont=n.elts.hidden=n.elts.load=n.elts.bg=n.elts.all=t})})})},destroy:function(){return this._open?!1:(this._callFilters("destroy"),this.elts.all&&this.elts.all.remove(),!0)},_initElts:function(){!this.stack&&this.getInternal().stack.length>1&&(this.elts=this.getInternal().stack[this.getInternal().stack.length-2].nmObj.elts);this.elts.all&&this.elts.all.closest("body").length!=0||(this.elts.all=this.elts.bg=this.elts.cont=this.elts.hidden=this.elts.load=t);this.elts.all||(this.elts.all=n("<div />").appendTo(this.getInternal()._container));this.elts.bg||(this.elts.bg=n("<div />").hide().appendTo(this.elts.all));this.elts.cont||(this.elts.cont=n("<div />").hide().appendTo(this.elts.all));this.elts.hidden||(this.elts.hidden=n("<div />").hide().appendTo(this.elts.all));this.elts.hidden.empty();this.elts.load||(this.elts.load=n("<div />").hide().appendTo(this.elts.all));this._callFilters("initElts")},_error:function(n){this._callFilters("error",n)},_setCont:function(t,i){var r,u,f,e;if(i)if(r=[],u=0,t=t.replace(/\r\n/gi,"nyroModalLN").replace(/<script(.|\s)*?\/script>/gi,function(n){return r[u]=n,'<pre class=nyroModalScript rel="'+u+++'"><\/pre>'}),f=n("<div>"+t+"<\/div>").find(i),f.length)t=f.html().replace(/<pre class="?nyroModalScript"? rel="?([0-9]*)"?><\/pre>/gi,function(n,t){return r[t]}).replace(/nyroModalLN/gi,"\r\n");else{this._error();return}this.elts.hidden.append(this._filterScripts(t)).prepend(this.header).append(this.footer).wrapInner(n("<div />",{"class":"nyroModal"+ucfirst(this.loadFilter)}));this.sizes.initW=this.sizes.w=this.elts.hidden.width();this.sizes.initH=this.sizes.h=this.elts.hidden.height();e=this.getInternal()._getOuter(this.elts.cont);this.sizes.hMargin=e.h.total;this.sizes.wMargin=e.w.total;this.size();this.loading=!1;this._callFilters("filledContent");this._contentLoading()},_filterScripts:function(t){if(typeof t!="string")return t;this._scripts=[];this._scriptsShown=[];for(var f=0,e="<\/script>",o=e.length,r,u,i;(r=t.indexOf("<script",f))>-1;)u=t.indexOf(e)+o,i=n(t.substring(r,u)),i.attr("src")&&i.attr("rel")!="forceLoad"||(i.attr("rev")=="shown"?this._scriptsShown.push(i.get(0)):this._scripts.push(i.get(0))),t=t.substring(0,r)+t.substr(u),f=r;return t},_hasFilter:function(t){var i=!1;return n.each(this.filters,function(n,r){i=i||r==t}),i},_delFilter:function(t){this.filters=n.map(this.filters,function(n){if(n!=t)return n})},_callFilters:function(t,i){this.getInternal()._debug(t);var r=[],u=this;return n.each(this.filters,function(n,f){r[f]=u._callFilter(f,t,i)}),this.callbacks[t]&&n.isFunction(this.callbacks[t])&&this.callbacks[t](this,i),r},_callFilter:function(i,r,u){return f[i]&&f[i][r]&&n.isFunction(f[i][r])?f[i][r](this,u):t},_callAnim:function(t,i){if(this.getInternal()._debug(t),this._callFilters("before"+ucfirst(t)),!this._animated){if(this._animated=!0,n.isFunction(i)||(i=n.noop),this.anims[t]&&n.isFunction(this.anims[t]))curFct=this.anims[t];else{var r=this.anim[t]||this.anim.def||"basic";e[r]&&e[r][t]&&n.isFunction(e[r][t])||(r="basic");curFct=e[r][t]}curFct(this,n.proxy(function(){this._animated=!1;this._callFilters("after"+ucfirst(t));i()},this))}},_load:function(){this.getInternal()._debug("_load");!this.loading&&this.loadFilter&&(this.loading=!0,this._callFilter(this.loadFilter,"load"))},_contentLoading:function(){var t,i;!this._animated&&this._bgReady&&(!this._transition&&this.elts.cont.html().length>0&&(this._transition=!0),this._nbContentLoading++,this.loading?this._nbContentLoading==1&&(i=this.getInternal()._getOuter(this.elts.load),this.elts.load.css({position:"fixed",top:(this.getInternal().fullSize.viewH-this.elts.load.height()-i.h.margin)/2,left:(this.getInternal().fullSize.viewW-this.elts.load.width()-i.w.margin)/2}),this._transition?(this._unreposition(),this._callAnim("showTrans",n.proxy(function(){this._contentLoading()},this))):this._callAnim("showLoad",n.proxy(function(){this._contentLoading()},this))):this._opened||(this._opened=!0,this._transition?(t=n.proxy(function(){this._writeContent();this._callFilters("beforeShowCont");this._callAnim("hideTrans",n.proxy(function(){this._transition=!1;this._callFilters("afterShowCont");this.elts.cont.append(this._scriptsShown);this._reposition();this.elts.cont.scrollTop(0)},this))},this),this._nbContentLoading==1?(this._unreposition(),this._callAnim("showTrans",t)):t()):this._callAnim("hideLoad",n.proxy(function(){this._writeContent();this._callAnim("showCont",n.proxy(function(){this.elts.cont.append(this._scriptsShown);this._reposition();this.elts.cont.scrollTop(0)},this))},this))))},_writeContent:function(){this.elts.cont.empty().append(this.elts.hidden.contents()).append(this._scripts).append(this.showCloseButton?this.closeButton:"").css({position:"fixed",width:this.sizes.w,height:this.sizes.h,top:(this.getInternal().fullSize.viewH-this.sizes.h-this.sizes.hMargin)/2,left:(this.getInternal().fullSize.viewW-this.sizes.w-this.sizes.wMargin)/2})},_reposition:function(){var t=this.elts.cont.find(".nmReposition"),i;t.length&&(i=this.getInternal()._getSpaceReposition(),t.each(function(){var t=n(this),r=t.offset();t.css({position:"fixed",top:r.top-i.top,left:r.left-i.left})}),this.elts.cont.after(t));this.elts.cont.css("overflow","auto");this._callFilters("afterReposition")},_unreposition:function(){this.elts.cont.css("overflow","");var n=this.elts.all.find(".nmReposition");n.length&&this.elts.cont.append(n.removeAttr("style"));this._callFilters("afterUnreposition")}},i={firstInit:!0,debug:!1,stack:[],fullSize:{w:0,h:0,wW:0,wH:0,viewW:0,viewH:0},nyroModal:function(t,r){if(i.firstInit){i._container=n("<div />").appendTo(h);u.smartresize(n.proxy(i._resize,i));s.on("keydown.nyroModal",n.proxy(i._keyHandler,i));i._calculateFullSize();i.firstInit=!1}return this.nmInit(t,r).each(function(){i._init(n(this).data("nmObj"))})},nmInit:function(t,i){return this.each(function(){var r=n(this);i?r.data("nmObj",n.extend(!0,{opener:r},t)):r.data("nmObj",r.data("nmObj")?n.extend(!0,r.data("nmObj"),t):n.extend(!0,{opener:r},c,t))})},nmDestroy:function(){return this.each(function(){var t=n(this);t.data("nmObj")&&t.data("nmObj").destroy()&&t.removeData("nmObj")})},nmCall:function(){return this.trigger("nyroModal")},nmManual:function(t,i){n("<a />",{href:t}).nyroModal(i).trigger("nyroModal")},nmData:function(t,i){this.nmManual("#",n.extend({data:t},i))},nmObj:function(t){n.extend(!0,c,t)},nmInternal:function(t){n.extend(!0,i,t)},nmAnims:function(t){n.extend(!0,e,t)},nmFilters:function(t){n.extend(!0,f,t)},nmTop:function(){return i.stack.length?i.stack[i.stack.length-1].nmObj:t},_debug:function(n){this.debug&&window.console&&window.console.log&&window.console.log(n)},_container:t,_init:function(t){t.filters=[];n.each(f,function(i,r){r.is&&n.isFunction(r.is)&&r.is(t)&&t.filters.push(i)});t._callFilters("initFilters");t._callFilters("init");t.opener.off("nyroModal.nyroModal nmClose.nyroModal nmResize.nyroModal").on({"nyroModal.nyroModal":function(){return t.open(),!1},"nmClose.nyroModal":function(){return t.close(),!1},"nmResize.nyroModal":function(){return t.resize(),!1}})},_selNyroModal:function(t){return n(t).data("nmObj")?!0:!1},_selNyroModalOpen:function(t){var i=n(t);return i.data("nmObj")?i.data("nmObj")._open:!1},_keyHandler:function(t){var i=n.nmTop();if(i&&i.useKeyHandler)return i.keyHandle(t)},_pushStack:function(t){this.stack=n.map(this.stack,function(n){if(n.nmOpener!=t.get(0))return n});this.stack.push({nmOpener:t.get(0),nmObj:n(t).data("nmObj")})},_removeStack:function(t){this.stack=n.map(this.stack,function(n){if(n.nmOpener!=t.get(0))return n})},_resize:function(){var t=n(":nmOpen").each(function(){n(this).data("nmObj")._unreposition()});this._calculateFullSize();t.trigger("nmResize")},_calculateFullSize:function(){this.fullSize={w:s.width(),h:s.height(),wW:u.width(),wH:u.height()};this.fullSize.viewW=Math.min(this.fullSize.w,this.fullSize.wW);this.fullSize.viewH=Math.min(this.fullSize.h,this.fullSize.wH)},_getCurCSS:function(t,i){var r=parseInt(n.css(t,i,!0));return isNaN(r)?0:r},_getOuter:function(n){n=n.get(0);var t={h:{margin:this._getCurCSS(n,"marginTop")+this._getCurCSS(n,"marginBottom"),border:this._getCurCSS(n,"borderTopWidth")+this._getCurCSS(n,"borderBottomWidth"),padding:this._getCurCSS(n,"paddingTop")+this._getCurCSS(n,"paddingBottom")},w:{margin:this._getCurCSS(n,"marginLeft")+this._getCurCSS(n,"marginRight"),border:this._getCurCSS(n,"borderLeftWidth")+this._getCurCSS(n,"borderRightWidth"),padding:this._getCurCSS(n,"paddingLeft")+this._getCurCSS(n,"paddingRight")}};return t.h.outer=t.h.margin+t.h.border,t.w.outer=t.w.margin+t.w.border,t.h.inner=t.h.padding+t.h.border,t.w.inner=t.w.padding+t.w.border,t.h.total=t.h.outer+t.h.padding,t.w.total=t.w.outer+t.w.padding,t},_getSpaceReposition:function(){var n=this._getOuter(h),t=r.msie&&r.version<8&&!(screen.height<=u.height()+23);return{top:u.scrollTop()-(t?0:n.h.border/2),left:u.scrollLeft()-(t?0:n.w.border/2)}},_getHash:function(n){if(typeof n=="string"){var t=n.indexOf("#");if(t>-1)return n.substring(t)}return""},_extractUrl:function(n){var i={url:t,sel:t};if(n){var u=this._getHash(n),f=this._getHash(window.location.href),e=window.location.href.substring(0,window.location.href.length-f.length),r=n.substring(0,n.length-u.length);i.sel=u;r!=e&&r!=a&&(i.url=r)}return i}},e={basic:{showBg:function(n,t){n.elts.bg.css({opacity:.7}).show();t()},hideBg:function(n,t){n.elts.bg.hide();t()},showLoad:function(n,t){n.elts.load.show();t()},hideLoad:function(n,t){n.elts.load.hide();t()},showCont:function(n,t){n.elts.cont.show();t()},hideCont:function(n,t){n.elts.cont.hide();t()},showTrans:function(n,t){n.elts.cont.hide();n.elts.load.show();t()},hideTrans:function(n,t){n.elts.cont.show();n.elts.load.hide();t()},resize:function(n,t){n.elts.cont.css({width:n.sizes.w,height:n.sizes.h,top:(n.getInternal().fullSize.viewH-n.sizes.h-n.sizes.hMargin)/2,left:(n.getInternal().fullSize.viewW-n.sizes.w-n.sizes.wMargin)/2});t()}}},f={basic:{is:function(){return!0},init:function(n){n.opener.attr("rev")=="modal"&&(n.modal=!0);n.modal&&(n.closeOnEscape=n.closeOnClick=n.showCloseButton=!1);n.closeOnEscape&&(n.useKeyHandler=!0)},initElts:function(n){if(n.elts.bg.addClass("nyroModalBg"),n.closeOnClick)n.elts.bg.off("click.nyroModal").on("click.nyroModal",function(t){t.preventDefault();n.close()});n.elts.cont.addClass("nyroModalCont");n.elts.hidden.addClass("nyroModalCont nyroModalHidden");n.elts.load.addClass("nyroModalCont nyroModalLoad")},error:function(n){n.elts.hidden.addClass("nyroModalError");n.elts.cont.addClass("nyroModalError");n._setCont(n.errorMsg)},beforeShowCont:function(t){t.elts.cont.find(".nyroModal").each(function(){var i=n(this);i.nyroModal(t.getForNewLinks(i),!0)}).end().find(".nyroModalClose").on("click.nyroModal",function(n){n.preventDefault();t.close()})},keyHandle:function(n){n.keyEvent.keyCode==27&&n.closeOnEscape&&(n.keyEvent.preventDefault(),n.close())}},custom:{is:function(){return!0}}};n.fn.extend({nm:i.nyroModal,nyroModal:i.nyroModal,nmInit:i.nmInit,nmDestroy:i.nmDestroy,nmCall:i.nmCall});n.extend({nmManual:i.nmManual,nmData:i.nmData,nmObj:i.nmObj,nmInternal:i.nmInternal,nmAnims:i.nmAnims,nmFilters:i.nmFilters,nmTop:i.nmTop});n.expr[":"].nyroModal=n.expr[":"].nm=i._selNyroModal;n.expr[":"].nmOpen=i._selNyroModalOpen}),function(n,t){var i=function(n,t,i){var r;return function(){function e(){i||n.apply(u,f);r=null}var u=this,f=arguments;r?clearTimeout(r):i&&n.apply(u,f);r=setTimeout(e,t||100)}};jQuery.fn[t]=function(n){return n?this.on("resize",i(n)):this.trigger(t)}}(jQuery,"smartresize");jQuery(function(n){n.nmAnims({fade:{showBg:function(n,t){n.elts.bg.fadeTo(250,.7,t)},hideBg:function(n,t){n.elts.bg.fadeOut(t)},showLoad:function(n,t){n.elts.load.fadeIn(t)},hideLoad:function(n,t){n.elts.load.fadeOut(t)},showCont:function(n,t){n.elts.cont.fadeIn(t)},hideCont:function(n,t){n.elts.cont.css("overflow","hidden").fadeOut(t)},showTrans:function(n,t){n.elts.load.css({position:n.elts.cont.css("position"),top:n.elts.cont.css("top"),left:n.elts.cont.css("left"),width:n.elts.cont.css("width"),height:n.elts.cont.css("height"),marginTop:n.elts.cont.css("marginTop"),marginLeft:n.elts.cont.css("marginLeft")}).fadeIn(function(){n.elts.cont.hide();t()})},hideTrans:function(n,t){n.elts.cont.css("visibility","hidden").show();n.elts.load.css("position",n.elts.cont.css("position")).animate({top:n.elts.cont.css("top"),left:n.elts.cont.css("left"),width:n.elts.cont.css("width"),height:n.elts.cont.css("height"),marginTop:n.elts.cont.css("marginTop"),marginLeft:n.elts.cont.css("marginLeft")},function(){n.elts.cont.css("visibility","");n.elts.load.fadeOut(t)})},resize:function(n,t){n.elts.cont.animate({width:n.sizes.w,height:n.sizes.h,top:(n.getInternal().fullSize.viewH-n.sizes.h-n.sizes.hMargin)/2,left:(n.getInternal().fullSize.viewW-n.sizes.w-n.sizes.wMargin)/2},t)}}});n.nmObj({anim:{def:"fade"}})});jQuery(function(n,t){n.nmFilters({title:{is:function(n){return n.opener.is("[title]")},beforeShowCont:function(t){var i=t.elts.cont.offset();t.store.title=n("<h1 />",{text:t.opener.attr("title")}).addClass("nyroModalTitle nmReposition");t.elts.cont.prepend(t.store.title)},close:function(n){n.store.title&&(n.store.title.remove(),n.store.title=t,delete n.store.title)}}})});jQuery(function(n,t){n.nmFilters({gallery:{is:function(t){var i=t.opener.is("[rel]:not([rel=external], [rel=nofollow])");if(i){var r=t.opener.attr("rel"),u=r.indexOf(" "),f=u>0?r.substr(0,u):r,e=n('[href][rel="'+f+'"], [href][rel^="'+f+' "]');e.length<2&&(i=!1);i&&t.galleryCounts&&!t._hasFilter("title")&&t.filters.push("title")}return i},init:function(n){n.useKeyHandler=!0},keyHandle:function(n){!n._animated&&n._opened&&(n.keyEvent.keyCode==39||n.keyEvent.keyCode==40?(n.keyEvent.preventDefault(),n._callFilters("galleryNext")):(n.keyEvent.keyCode==37||n.keyEvent.keyCode==38)&&(n.keyEvent.preventDefault(),n._callFilters("galleryPrev")))},initElts:function(t){var i=t.opener.attr("rel"),r=i.indexOf(" ");t.store.gallery=r>0?i.substr(0,r):i;t.store.galleryLinks=n('[href][rel="'+t.store.gallery+'"], [href][rel^="'+t.store.gallery+' "]');t.store.galleryIndex=t.store.galleryLinks.index(t.opener)},beforeShowCont:function(n){if(n.galleryCounts&&n.store.title&&n.store.galleryLinks&&n.store.galleryLinks.length>1){var t=n.store.title.html();n.store.title.html((t.length?t+" - ":"")+(n.store.galleryIndex+1)+"/"+n.store.galleryLinks.length)}},filledContent:function(t){var i=this._getGalleryLink(t,-1),r=t.elts.hidden.find(" > div");i&&n("<a />",{text:"previous",href:"#"}).addClass("nyroModalPrev").on("click",function(n){n.preventDefault();t._callFilters("galleryPrev")}).appendTo(r);i=this._getGalleryLink(t,1);i&&n("<a />",{text:"next",href:"#"}).addClass("nyroModalNext").on("click",function(n){n.preventDefault();t._callFilters("galleryNext")}).appendTo(r)},close:function(n){n.store.gallery=t;n.store.galleryLinks=t;n.store.galleryIndex=t;delete n.store.gallery;delete n.store.galleryLinks;delete n.store.galleryIndex;n.elts.cont&&n.elts.cont.find(".nyroModalNext, .nyroModalPrev").remove()},galleryNext:function(n){this._getGalleryLink(n,1).nyroModal(n.getForNewLinks(),!0).click()},galleryPrev:function(n){this._getGalleryLink(n,-1).nyroModal(n.getForNewLinks(),!0).click()},_getGalleryLink:function(n,i){if(n.store.gallery){n.ltr||(i*=-1);var r=n.store.galleryIndex+i;if(n.store.galleryLinks&&r>=0&&r<n.store.galleryLinks.length)return n.store.galleryLinks.eq(r);if(n.galleryLoop&&n.store.galleryLinks)return n.store.galleryLinks.eq(r<0?n.store.galleryLinks.length-1:0)}return t}}})});jQuery(function(n,t){n.nmFilters({link:{is:function(n){var t=n.opener.is("[href]");return t&&(n.store.link=n.getInternal()._extractUrl(n.opener.attr("href"))),t},init:function(n){n.loadFilter="link";n.opener.off("click.nyroModal").on("click.nyroModal",function(t){t.preventDefault();n.opener.trigger("nyroModal")})},load:function(i){n.ajax(n.extend(!0,{},i.ajax||{},{url:i.store.link.url,data:i.store.link.sel?[{name:i.selIndicator,value:i.store.link.sel.substring(1)}]:t,success:function(n){i._setCont(n,i.store.link.sel)},error:function(n){i._error(n)}}))},destroy:function(n){n.opener.off("click.nyroModal")}}})});jQuery(function(n){n.nmFilters({dom:{is:function(n){return n._hasFilter("link")&&!n.store.link.url&&n.store.link.sel},init:function(n){n.loadFilter="dom"},load:function(t){t.store.domEl=n(t.store.link.sel);t.store.domEl.length?t._setCont(t.domCopy?t.store.domEl.html():t.store.domEl.contents()):t._error()},close:function(n){!n.domCopy&&n.store.domEl&&n.elts.cont&&n.store.domEl.append(n.elts.cont.find(".nyroModalDom").contents())}}})});jQuery(function(n){n.nmFilters({data:{is:function(n){var t=n.data?!0:!1;return t&&n._delFilter("dom"),t},init:function(n){n.loadFilter="data"},load:function(n){n._setCont(n.data)}}})});jQuery(function(n){n.nmFilters({image:{is:function(n){return new RegExp(n.imageRegex,"i").test(n.opener.attr("href"))},init:function(n){n.loadFilter="image"},load:function(t){var i=t.opener.attr("href");n("<img />").load(function(){t.elts.cont.addClass("nyroModalImg");t.elts.hidden.addClass("nyroModalImg");t._setCont(this)}).error(function(){t._error()}).attr("src",i)},size:function(n){var t,i;(n.sizes.w!=n.sizes.initW||n.sizes.h!=n.sizes.initH)&&(t=Math.min(n.sizes.w/n.sizes.initW,n.sizes.h/n.sizes.initH),n.sizes.w=n.sizes.initW*t,n.sizes.h=n.sizes.initH*t);i=n.loading?n.elts.hidden.find("img"):n.elts.cont.find("img");i.attr({width:n.sizes.w,height:n.sizes.h})},close:function(n){n.elts.cont&&(n.elts.cont.removeClass("nyroModalImg"),n.elts.hidden.removeClass("nyroModalImg"))}}})});jQuery(function(n){n.nmFilters({swf:{idCounter:1,is:function(n){return n._hasFilter("link")&&n.opener.is('[href$=".swf"]')},init:function(n){n.loadFilter="swf"},load:function(t){t.swfObjectId||(t.swfObjectId="nyroModalSwf-"+this.idCounter++);var r=t.store.link.url,i='<div><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="'+t.swfObjectId+'" width="'+t.sizes.w+'" height="'+t.sizes.h+'"><param name="movie" value="'+r+'"><\/param>',u="";n.each(t.swf,function(n,t){i+='<param name="'+n+'" value="'+t+'"><\/param>';u+=" "+n+'="'+t+'"'});i+='<embed src="'+r+'" type="application/x-shockwave-flash" width="'+t.sizes.w+'" height="'+t.sizes.h+'"'+u+"><\/embed><\/object><\/div>";t._setCont(i)}}})});jQuery(function(n,t){n.nmFilters({form:{is:function(n){var t=n.opener.is("form");return t&&(n.store.form=n.getInternal()._extractUrl(n.opener.attr("action"))),t},init:function(n){n.loadFilter="form";n.opener.off("submit.nyroModal").on("submit.nyroModal",function(t){t.preventDefault();n.opener.trigger("nyroModal")})},load:function(i){var r={};n.map(i.opener.serializeArray(),function(n){r[n.name]=n.value});i.store.form.sel&&(r[i.selIndicator]=i.store.form.sel.substring(1));n.ajax(n.extend(!0,{type:"get",dataType:"text"},i.ajax||{},{url:i.store.form.url,data:r,type:i.opener.attr("method")?i.opener.attr("method"):t,success:function(n){i._setCont(n,i.store.form.sel)},error:function(n){i._error(n)}}))},destroy:function(n){n.opener.off("submit.nyroModal")}}})});jQuery(function(n,t){n.nmFilters({formFile:{is:function(n){var t=n.opener.is('form[enctype="multipart/form-data"]');return t&&(n._delFilter("form"),n.store.form||(n.store.form=n.getInternal()._extractUrl(n.opener.attr("action")))),t},init:function(n){n.loadFilter="formFile";n.store.formFileLoading=!1;n.opener.off("submit.nyroModal").on("submit.nyroModal",function(t){n.store.formFileIframe?n.store.formFileLoading=!0:(t.preventDefault(),n.opener.trigger("nyroModal"))})},initElts:function(i){function u(){r&&(r.remove(),r=t,delete r);i.store.formFileIframe.attr("src","about:blank").remove();i.store.formFileIframe=t;delete i.store.formFileIframe}var r;i.store.form.sel&&(r=n('<input type="hidden" />',{name:i.selIndicator,value:i.store.form.sel.substring(1)}).appendTo(i.opener));i.store.formFileIframe=n("<iframe />").attr({name:"nyroModalFormFile",src:"javascript:'';",id:"nyromodal-iframe-"+(new Date).getTime(),frameborder:"0"}).hide().load(function(){var n,t,r;i.store.formFileLoading&&(i.store.formFileLoading=!1,n=i.store.formFileIframe.off("load error").contents().find("body").not("script[src]"),n&&n.html()&&n.html().length?(u(),i._setCont(n.html(),i.store.form.sel)):(t=0,r=function(){t++;var n=i.store.formFileIframe.off("load error").contents().find("body").not("script[src]");n&&n.html()&&n.html().length?(i._setCont(n.html(),i.store.form.sel),u()):t<5?setTimeout(r,25):(u(),i._error())},setTimeout(r,25)))}).on("error",function(){u();i._error()});i.elts.all.append(i.store.formFileIframe);i.opener.attr("target","nyroModalFormFile").submit()},close:function(n){n.store.formFileLoading=!1;n.store.formFileIframe&&(n.store.formFileIframe.remove(),n.store.formFileIframe=t,delete n.store.formFileIframe)},destroy:function(n){n.opener.off("submit.nyroModal")}}})});jQuery(function(n,t){n.nmFilters({iframe:{is:function(n){var i=n.opener.attr("target")||"",r=n.opener.attr("rel")||"",t=n.opener.get(0);return!n._hasFilter("image")&&(i.toLowerCase()=="_blank"||r.toLowerCase().indexOf("external")>-1||t.hostname&&t.hostname.replace(/:\d*$/,"")!=window.location.hostname.replace(/:\d*$/,""))},init:function(n){n.loadFilter="iframe"},load:function(t){t.store.iframe=n("<iframe />").attr({src:"javascript:'';",id:"nyromodal-iframe-"+(new Date).getTime(),frameborder:"0"});t._setCont(t.store.iframe)},afterShowCont:function(n){n.store.iframe.attr("src",n.opener.attr("href"))},close:function(n){n.store.iframe&&(n.store.iframe.remove(),n.store.iframe=t,delete n.store.iframe)}}})});jQuery(function(n,t){n.nmFilters({iframeForm:{is:function(n){var t=n._hasFilter("iframe")&&n.opener.is("form");return t&&(n._delFilter("iframe"),n._delFilter("form")),t},init:function(n){n.loadFilter="iframeForm";n.store.iframeFormLoading=!1;n.store.iframeFormOrgTarget=n.opener.attr("target");n.opener.off("submit.nyroModal").on("submit.nyroModal",function(t){n.store.iframeFormIframe?n.store.iframeFormLoading=!0:(t.preventDefault(),n.opener.trigger("nyroModal"))})},load:function(t){t.store.iframeFormIframe=n("<iframe />").attr({name:"nyroModalIframeForm",src:"javascript:'';",id:"nyromodal-iframe-"+(new Date).getTime(),frameborder:"0"});t._setCont(t.store.iframeFormIframe)},afterShowCont:function(n){n.opener.attr("target","nyroModalIframeForm").submit()},close:function(n){n.store.iframeFormOrgTarget?n.opener.attr("target",n.store.iframeFormOrgTarget):n.opener.removeAttr("target");delete n.store.formFileLoading;delete n.store.iframeFormOrgTarget;n.store.iframeFormIframe&&(n.store.iframeFormIframe.remove(),n.store.iframeFormIframe=t,delete n.store.iframeFormIframe)},destroy:function(n){n.opener.off("submit.nyroModal")}}})});jQuery(function(n,t){n.nmObj({embedlyUrl:"http://api.embed.ly/1/oembed",embedly:{key:t,wmode:"transparent",allowscripts:!0,format:"json"}});var i=[];n.nmFilters({embedly:{is:function(t){if(t._hasFilter("link")&&t._hasFilter("iframe")&&t.opener.attr("href")&&t.embedly.key){if(i[t.opener.attr("href")])return t.store.embedly=i[t.opener.attr("href")],t._delFilter("iframe"),!0;t.store.embedly=!1;var r=t.embedly;r.url=t.opener.attr("href");n.ajax({url:t.embedlyUrl,dataType:"jsonp",data:r,success:function(n){n.type!="error"&&n.html&&(t.store.embedly=n,i[t.opener.attr("href")]=n,t._delFilter("iframe"),t.filters.push("embedly"),t._callFilters("initFilters"),t._callFilters("init"))}})}return!1},init:function(n){n.loadFilter="embedly"},load:function(t){t.store.embedly.type=="photo"?(t.filters.push("image"),n("<img />").load(function(){t.elts.cont.addClass("nyroModalImg");t.elts.hidden.addClass("nyroModalImg");t._setCont(this)}).on("error",function(){t._error()}).attr("src",t.store.embedly.url)):t._setCont("<div>"+t.store.embedly.html+"<\/div>")},size:function(n){n.store.embedly.width&&!n.sizes.height&&(n.sizes.w=n.store.embedly.width,n.sizes.h=n.store.embedly.height)}}})}),function(n,t){function u(){return new Date(Date.UTC.apply(Date,arguments))}function e(){var n=new Date;return u(n.getFullYear(),n.getMonth(),n.getDate())}function c(n){return function(){return this[n].apply(this,arguments)}}function y(t,i){function s(n,t){return t.toLowerCase()}var u=n(t).data(),f={},e,o=new RegExp("^"+i.toLowerCase()+"([A-Z])"),r;i=new RegExp("^"+i.toLowerCase());for(r in u)i.test(r)&&(e=r.replace(o,s),f[e]=u[r]);return f}function p(t){var u={},i;if(r[t]||(t=t.split("-")[0],r[t]))return i=r[t],n.each(v,function(n,t){t in i&&(u[t]=i[t])}),u}var s=n(window),l=function(){var t={get:function(n){return this.slice(n)[0]},contains:function(n){for(var r=n&&n.valueOf(),t=0,i=this.length;t<i;t++)if(this[t].valueOf()===r)return t;return-1},remove:function(n){this.splice(n,1)},replace:function(t){t&&(n.isArray(t)||(t=[t]),this.clear(),this.push.apply(this,t))},clear:function(){this.splice(0)},copy:function(){var n=new l;return n.replace(this),n}};return function(){var i=[];return i.push.apply(i,arguments),n.extend(i,t),i}}(),f=function(t,r){this.dates=new l;this.viewDate=e();this.focusDate=null;this._process_options(r);this.element=n(t);this.isInline=!1;this.isInput=this.element.is("input");this.component=this.element.is(".date")?this.element.find(".add-on, .input-group-addon, .btn"):!1;this.hasInput=this.component&&this.element.find("input").length;this.component&&this.component.length===0&&(this.component=!1);this.picker=n(i.template);this._buildEvents();this._attachEvents();this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu");this.o.rtl&&this.picker.addClass("datepicker-rtl");this.viewMode=this.o.startView;this.o.calendarWeeks&&this.picker.find("tfoot th.today").attr("colspan",function(n,t){return parseInt(t)+1});this._allow_update=!1;this.setStartDate(this._o.startDate);this.setEndDate(this._o.endDate);this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled);this.fillDow();this.fillMonths();this._allow_update=!0;this.update();this.showMode();this.isInline&&this.show()},h,a,o,v,r,i;f.prototype={constructor:f,_process_options:function(t){var u,e,h,f,s;this._o=n.extend({},this._o,t);u=this.o=n.extend({},this._o);e=u.language;r[e]||(e=e.split("-")[0],r[e]||(e=o.language));u.language=e;switch(u.startView){case 2:case"decade":u.startView=2;break;case 1:case"year":u.startView=1;break;default:u.startView=0}switch(u.minViewMode){case 1:case"months":u.minViewMode=1;break;case 2:case"years":u.minViewMode=2;break;default:u.minViewMode=0}if(u.startView=Math.max(u.startView,u.minViewMode),u.multidate!==!0&&(u.multidate=Number(u.multidate)||!1,u.multidate=u.multidate!==!1?Math.max(0,u.multidate):1),u.multidateSeparator=String(u.multidateSeparator),u.weekStart%=7,u.weekEnd=(u.weekStart+6)%7,h=i.parseFormat(u.format),u.startDate!==-Infinity&&(u.startDate=u.startDate?u.startDate instanceof Date?this._local_to_utc(this._zero_time(u.startDate)):i.parseDate(u.startDate,h,u.language):-Infinity),u.endDate!==Infinity&&(u.endDate=u.endDate?u.endDate instanceof Date?this._local_to_utc(this._zero_time(u.endDate)):i.parseDate(u.endDate,h,u.language):Infinity),u.daysOfWeekDisabled=u.daysOfWeekDisabled||[],n.isArray(u.daysOfWeekDisabled)||(u.daysOfWeekDisabled=u.daysOfWeekDisabled.split(/[,\s]*/)),u.daysOfWeekDisabled=n.map(u.daysOfWeekDisabled,function(n){return parseInt(n,10)}),f=String(u.orientation).toLowerCase().split(/\s+/g),s=u.orientation.toLowerCase(),f=n.grep(f,function(n){return/^auto|left|right|top|bottom$/.test(n)}),u.orientation={x:"auto",y:"auto"},s&&s!=="auto")if(f.length===1)switch(f[0]){case"top":case"bottom":u.orientation.y=f[0];break;case"left":case"right":u.orientation.x=f[0]}else s=n.grep(f,function(n){return/^left|right$/.test(n)}),u.orientation.x=s[0]||"auto",s=n.grep(f,function(n){return/^top|bottom$/.test(n)}),u.orientation.y=s[0]||"auto"},_events:[],_secondaryEvents:[],_applyEvents:function(n){for(var i=0,f,r,u;i<n.length;i++){f=n[i][0];n[i].length===2?(r=t,u=n[i][1]):n[i].length===3&&(r=n[i][1],u=n[i][2]);f.on(u,r)}},_unapplyEvents:function(n){for(var i=0,f,r,u;i<n.length;i++)f=n[i][0],n[i].length===2?(u=t,r=n[i][1]):n[i].length===3&&(u=n[i][1],r=n[i][2]),f.off(r,u)},_buildEvents:function(){this.isInput?this._events=[[this.element,{focus:n.proxy(this.show,this),keyup:n.proxy(function(t){n.inArray(t.keyCode,[27,37,39,38,40,32,13,9])===-1&&this.update()},this),keydown:n.proxy(this.keydown,this)}]]:this.component&&this.hasInput?this._events=[[this.element.find("input"),{focus:n.proxy(this.show,this),keyup:n.proxy(function(t){n.inArray(t.keyCode,[27,37,39,38,40,32,13,9])===-1&&this.update()},this),keydown:n.proxy(this.keydown,this)}],[this.component,{click:n.proxy(this.show,this)}]]:this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:n.proxy(this.show,this)}]];this._events.push([this.element,"*",{blur:n.proxy(function(n){this._focused_from=n.target},this)}],[this.element,{blur:n.proxy(function(n){this._focused_from=n.target},this)}]);this._secondaryEvents=[[this.picker,{click:n.proxy(this.click,this)}],[n(window),{resize:n.proxy(this.place,this)}],[n(document),{"mousedown touchstart":n.proxy(function(n){this.element.is(n.target)||this.element.find(n.target).length||this.picker.is(n.target)||this.picker.find(n.target).length||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents();this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents();this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(t,r){var u=r||this.dates.get(-1),f=this._utc_to_local(u);this.element.trigger({type:t,date:f,dates:n.map(this.dates,this._utc_to_local),format:n.proxy(function(n,t){arguments.length===0?(n=this.dates.length-1,t=this.o.format):typeof n=="string"&&(t=n,n=this.dates.length-1);t=t||this.o.format;var r=this.dates.get(n);return i.formatDate(r,t,this.o.language)},this)})},show:function(){this.isInline||this.picker.appendTo("body");this.picker.show();this.place();this._attachSecondaryEvents();this._trigger("show")},hide:function(){this.isInline||this.picker.is(":visible")&&(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.viewMode=this.o.startView,this.showMode(),this.o.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this._trigger("hide"))},remove:function(){this.hide();this._detachEvents();this._detachSecondaryEvents();this.picker.remove();delete this.element.data().datepicker;this.isInput||delete this.element.data().date},_utc_to_local:function(n){return n&&new Date(n.getTime()+n.getTimezoneOffset()*6e4)},_local_to_utc:function(n){return n&&new Date(n.getTime()-n.getTimezoneOffset()*6e4)},_zero_time:function(n){return n&&new Date(n.getFullYear(),n.getMonth(),n.getDate())},_zero_utc_time:function(n){return n&&new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()))},getDates:function(){return n.map(this.dates,this._utc_to_local)},getUTCDates:function(){return n.map(this.dates,function(n){return new Date(n)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){return new Date(this.dates.get(-1))},setDates:function(){this.update.apply(this,arguments);this._trigger("changeDate");this.setValue()},setUTCDates:function(){this.update.apply(this,n.map(arguments,this._utc_to_local));this._trigger("changeDate");this.setValue()},setDate:c("setDates"),setUTCDate:c("setUTCDates"),setValue:function(){var n=this.getFormattedDate();this.isInput?this.element.val(n).change():this.component&&this.element.find("input").val(n).change()},getFormattedDate:function(r){r===t&&(r=this.o.format);var u=this.o.language;return n.map(this.dates,function(n){return i.formatDate(n,r,u)}).join(this.o.multidateSeparator)},setStartDate:function(n){this._process_options({startDate:n});this.update();this.updateNavArrows()},setEndDate:function(n){this._process_options({endDate:n});this.update();this.updateNavArrows()},setDaysOfWeekDisabled:function(n){this._process_options({daysOfWeekDisabled:n});this.update();this.updateNavArrows()},place:function(){var i,v,o;if(!this.isInline){var u=this.picker.outerWidth(),f=this.picker.outerHeight(),h=10,c=s.width(),y=s.height(),l=s.scrollTop(),p=parseInt(this.element.parents().filter(function(){return n(this).css("z-index")!=="auto"}).first().css("z-index"))+10,t=this.component?this.component.parent().offset():this.element.offset(),a=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),w=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),r=t.left,e=t.top;this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left");this.o.orientation.x!=="auto"?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),this.o.orientation.x==="right"&&(r-=u-w)):(this.picker.addClass("datepicker-orient-left"),t.left<0?r-=t.left-h:t.left+u>c&&(r=c-u-h));i=this.o.orientation.y;i==="auto"&&(v=-l+t.top-f,o=l+y-(t.top+a+f),i=Math.max(v,o)===o?"top":"bottom");this.picker.addClass("datepicker-orient-"+i);i==="top"?e+=a:e-=f+parseInt(this.picker.css("padding-top"));this.picker.css({top:e,left:r,zIndex:p})}},_allow_update:!0,update:function(){if(this._allow_update){var r=this.dates.copy(),t=[],u=!1;arguments.length?(n.each(arguments,n.proxy(function(n,i){i instanceof Date&&(i=this._local_to_utc(i));t.push(i)},this)),u=!0):(t=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val(),t=t&&this.o.multidate?t.split(this.o.multidateSeparator):[t],delete this.element.data().date);t=n.map(t,n.proxy(function(n){return i.parseDate(n,this.o.format,this.o.language)},this));t=n.grep(t,n.proxy(function(n){return n<this.o.startDate||n>this.o.endDate||!n},this),!0);this.dates.replace(t);this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate&&(this.viewDate=new Date(this.o.endDate));u?this.setValue():t.length&&String(r)!==String(this.dates)&&this._trigger("changeDate");!this.dates.length&&r.length&&this._trigger("clearDate");this.fill()}},fillDow:function(){var i=this.o.weekStart,n="<tr>",t;for(this.o.calendarWeeks&&(t='<th class="cw">&nbsp;<\/th>',n+=t,this.picker.find(".datepicker-days thead tr:first-child").prepend(t));i<this.o.weekStart+7;)n+='<th class="dow">'+r[this.o.language].daysMin[i++%7]+"<\/th>";n+="<\/tr>";this.picker.find(".datepicker-days thead").append(n)},fillMonths:function(){for(var n="",t=0;t<12;)n+='<span class="month">'+r[this.o.language].monthsShort[t++]+"<\/span>";this.picker.find(".datepicker-months td").html(n)},setRange:function(t){t&&t.length?this.range=n.map(t,function(n){return n.valueOf()}):delete this.range;this.fill()},getClassNames:function(t){var i=[],r=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth(),u=new Date;return t.getUTCFullYear()<r||t.getUTCFullYear()===r&&t.getUTCMonth()<f?i.push("old"):(t.getUTCFullYear()>r||t.getUTCFullYear()===r&&t.getUTCMonth()>f)&&i.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&t.getUTCFullYear()===u.getFullYear()&&t.getUTCMonth()===u.getMonth()&&t.getUTCDate()===u.getDate()&&i.push("today"),this.dates.contains(t)!==-1&&i.push("active"),(t.valueOf()<this.o.startDate||t.valueOf()>this.o.endDate||n.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled)!==-1)&&i.push("disabled"),this.range&&(t>this.range[0]&&t<this.range[this.range.length-1]&&i.push("range"),n.inArray(t.valueOf(),this.range)!==-1&&i.push("selected")),i},fill:function(){var d=new Date(this.viewDate),f=d.getUTCFullYear(),g=d.getUTCMonth(),y=this.o.startDate!==-Infinity?this.o.startDate.getUTCFullYear():-Infinity,ut=this.o.startDate!==-Infinity?this.o.startDate.getUTCMonth():-Infinity,p=this.o.endDate!==Infinity?this.o.endDate.getUTCFullYear():Infinity,ft=this.o.endDate!==Infinity?this.o.endDate.getUTCMonth():Infinity,w,e,b,c,s,h,o,a,it,rt,l,v;for(this.picker.find(".datepicker-days thead th.datepicker-switch").text(r[this.o.language].months[g]+" "+f),this.picker.find("tfoot th.today").text(r[this.o.language].today).toggle(this.o.todayBtn!==!1),this.picker.find("tfoot th.clear").text(r[this.o.language].clear).toggle(this.o.clearBtn!==!1),this.updateNavArrows(),this.fillMonths(),e=u(f,g-1,28),b=i.getDaysInMonth(e.getUTCFullYear(),e.getUTCMonth()),e.setUTCDate(b),e.setUTCDate(b-(e.getUTCDay()-this.o.weekStart+7)%7),c=new Date(e),c.setUTCDate(c.getUTCDate()+42),c=c.valueOf(),s=[];e.valueOf()<c;){if(e.getUTCDay()===this.o.weekStart&&(s.push("<tr>"),this.o.calendarWeeks)){var nt=new Date(+e+(this.o.weekStart-e.getUTCDay()-7)%7*864e5),tt=new Date(+nt+(11-nt.getUTCDay())%7*864e5),k=new Date(+(k=u(tt.getUTCFullYear(),0,1))+(11-k.getUTCDay())%7*864e5),et=(tt-k)/6048e5+1;s.push('<td class="cw">'+et+"<\/td>")}h=this.getClassNames(e);h.push("day");this.o.beforeShowDay!==n.noop&&(o=this.o.beforeShowDay(this._utc_to_local(e)),o===t?o={}:typeof o=="boolean"?o={enabled:o}:typeof o=="string"&&(o={classes:o}),o.enabled===!1&&h.push("disabled"),o.classes&&(h=h.concat(o.classes.split(/\s+/))),o.tooltip&&(w=o.tooltip));h=n.unique(h);s.push('<td class="'+h.join(" ")+'"'+(w?' title="'+w+'"':"")+">"+e.getUTCDate()+"<\/td>");e.getUTCDay()===this.o.weekEnd&&s.push("<\/tr>");e.setUTCDate(e.getUTCDate()+1)}for(this.picker.find(".datepicker-days tbody").empty().append(s.join("")),a=this.picker.find(".datepicker-months").find("th:eq(1)").text(f).end().find("span").removeClass("active"),n.each(this.dates,function(n,t){t.getUTCFullYear()===f&&a.eq(t.getUTCMonth()).addClass("active")}),(f<y||f>p)&&a.addClass("disabled"),f===y&&a.slice(0,ut).addClass("disabled"),f===p&&a.slice(ft+1).addClass("disabled"),s="",f=parseInt(f/10,10)*10,it=this.picker.find(".datepicker-years").find("th:eq(1)").text(f+"-"+(f+9)).end().find("td"),f-=1,rt=n.map(this.dates,function(n){return n.getUTCFullYear()}),v=-1;v<11;v++)l=["year"],v===-1?l.push("old"):v===10&&l.push("new"),n.inArray(f,rt)!==-1&&l.push("active"),(f<y||f>p)&&l.push("disabled"),s+='<span class="'+l.join(" ")+'">'+f+"<\/span>",f+=1;it.html(s)},updateNavArrows:function(){if(this._allow_update){var t=new Date(this.viewDate),n=t.getUTCFullYear(),i=t.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-Infinity&&n<=this.o.startDate.getUTCFullYear()&&i<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"});this.o.endDate!==Infinity&&n>=this.o.endDate.getUTCFullYear()&&i>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:this.o.startDate!==-Infinity&&n<=this.o.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"});this.o.endDate!==Infinity&&n>=this.o.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(t){var r,e,f,o,c,s,l,h;if(t.preventDefault(),r=n(t.target).closest("span, td, th"),r.length===1)switch(r[0].nodeName.toLowerCase()){case"th":switch(r[0].className){case"datepicker-switch":this.showMode(1);break;case"prev":case"next":c=i.modes[this.viewMode].navStep*(r[0].className==="prev"?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,c);this._trigger("changeMonth",this.viewDate);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,c);this.viewMode===1&&this._trigger("changeYear",this.viewDate)}this.fill();break;case"today":s=new Date;s=u(s.getFullYear(),s.getMonth(),s.getDate(),0,0,0);this.showMode(-2);l=this.o.todayBtn==="linked"?null:"view";this._setDate(s,l);break;case"clear":this.isInput?h=this.element:this.component&&(h=this.element.find("input"));h&&h.val("").change();this.update();this._trigger("changeDate");this.o.autoclose&&this.hide()}break;case"span":r.is(".disabled")||(this.viewDate.setUTCDate(1),r.is(".month")?(o=1,f=r.parent().find("span").index(r),e=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(f),this._trigger("changeMonth",this.viewDate),this.o.minViewMode===1&&this._setDate(u(e,f,o))):(o=1,f=0,e=parseInt(r.text(),10)||0,this.viewDate.setUTCFullYear(e),this._trigger("changeYear",this.viewDate),this.o.minViewMode===2&&this._setDate(u(e,f,o))),this.showMode(-1),this.fill());break;case"td":r.is(".day")&&!r.is(".disabled")&&(o=parseInt(r.text(),10)||1,e=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth(),r.is(".old")?f===0?(f=11,e-=1):f-=1:r.is(".new")&&(f===11?(f=0,e+=1):f+=1),this._setDate(u(e,f,o)))}this.picker.is(":visible")&&this._focused_from&&n(this._focused_from).focus();delete this._focused_from},_toggle_multidate:function(n){var t=this.dates.contains(n);if(n?t!==-1?this.dates.remove(t):this.dates.push(n):this.dates.clear(),typeof this.o.multidate=="number")while(this.dates.length>this.o.multidate)this.dates.remove(0)},_setDate:function(n,t){t&&t!=="date"||this._toggle_multidate(n&&new Date(n));t&&t!=="view"||(this.viewDate=n&&new Date(n));this.fill();this.setValue();this._trigger("changeDate");var i;this.isInput?i=this.element:this.component&&(i=this.element.find("input"));i&&i.change();this.o.autoclose&&(!t||t==="date")&&this.hide()},moveMonth:function(n,i){var e;if(!n)return t;if(!i)return n;var r=new Date(n.valueOf()),o=r.getUTCDate(),s=r.getUTCMonth(),h=Math.abs(i),u,f;if(i=i>0?1:-1,h===1)f=i===-1?function(){return r.getUTCMonth()===s}:function(){return r.getUTCMonth()!==u},u=s+i,r.setUTCMonth(u),(u<0||u>11)&&(u=(u+12)%12);else{for(e=0;e<h;e++)r=this.moveMonth(r,i);u=r.getUTCMonth();r.setUTCDate(o);f=function(){return u!==r.getUTCMonth()}}while(f())r.setUTCDate(--o),r.setUTCMonth(u);return r},moveYear:function(n,t){return this.moveMonth(n,t*12)},dateWithinRange:function(n){return n>=this.o.startDate&&n<=this.o.endDate},keydown:function(n){var o,t,i,u,r,f;if(this.picker.is(":not(:visible)")){n.keyCode===27&&this.show();return}o=!1;r=this.focusDate||this.viewDate;switch(n.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide();n.preventDefault();break;case 37:case 39:if(!this.o.keyboardNavigation)break;t=n.keyCode===37?-1:1;n.ctrlKey?(i=this.moveYear(this.dates.get(-1)||e(),t),u=this.moveYear(r,t),this._trigger("changeYear",this.viewDate)):n.shiftKey?(i=this.moveMonth(this.dates.get(-1)||e(),t),u=this.moveMonth(r,t),this._trigger("changeMonth",this.viewDate)):(i=new Date(this.dates.get(-1)||e()),i.setUTCDate(i.getUTCDate()+t),u=new Date(r),u.setUTCDate(r.getUTCDate()+t));this.dateWithinRange(i)&&(this.focusDate=this.viewDate=u,this.setValue(),this.fill(),n.preventDefault());break;case 38:case 40:if(!this.o.keyboardNavigation)break;t=n.keyCode===38?-1:1;n.ctrlKey?(i=this.moveYear(this.dates.get(-1)||e(),t),u=this.moveYear(r,t),this._trigger("changeYear",this.viewDate)):n.shiftKey?(i=this.moveMonth(this.dates.get(-1)||e(),t),u=this.moveMonth(r,t),this._trigger("changeMonth",this.viewDate)):(i=new Date(this.dates.get(-1)||e()),i.setUTCDate(i.getUTCDate()+t*7),u=new Date(r),u.setUTCDate(r.getUTCDate()+t*7));this.dateWithinRange(i)&&(this.focusDate=this.viewDate=u,this.setValue(),this.fill(),n.preventDefault());break;case 13:r=this.focusDate||this.dates.get(-1)||this.viewDate;this._toggle_multidate(r);o=!0;this.focusDate=null;this.viewDate=this.dates.get(-1)||this.viewDate;this.setValue();this.fill();this.picker.is(":visible")&&(n.preventDefault(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null;this.viewDate=this.dates.get(-1)||this.viewDate;this.fill();this.hide()}o&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.isInput?f=this.element:this.component&&(f=this.element.find("input")),f&&f.change())},showMode:function(n){n&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(2,this.viewMode+n)));this.picker.find(">div").hide().filter(".datepicker-"+i.modes[this.viewMode].clsName).css("display","block");this.updateNavArrows()}};h=function(t,i){this.element=n(t);this.inputs=n.map(i.inputs,function(n){return n.jquery?n[0]:n});delete i.inputs;n(this.inputs).datepicker(i).bind("changeDate",n.proxy(this.dateUpdated,this));this.pickers=n.map(this.inputs,function(t){return n(t).data("datepicker")});this.updateDates()};h.prototype={updateDates:function(){this.dates=n.map(this.pickers,function(n){return n.getUTCDate()});this.updateRanges()},updateRanges:function(){var t=n.map(this.dates,function(n){return n.valueOf()});n.each(this.pickers,function(n,i){i.setRange(t)})},dateUpdated:function(t){if(!this.updating){this.updating=!0;var u=n(t.target).data("datepicker"),r=u.getUTCDate(),i=n.inArray(t.target,this.inputs),f=this.inputs.length;if(i!==-1){if(n.each(this.pickers,function(n,t){t.getUTCDate()||t.setUTCDate(r)}),r<this.dates[i])while(i>=0&&r<this.dates[i])this.pickers[i--].setUTCDate(r);else if(r>this.dates[i])while(i<f&&r>this.dates[i])this.pickers[i++].setUTCDate(r);this.updateDates();delete this.updating}}},remove:function(){n.map(this.pickers,function(n){n.remove()});delete this.element.data().datepicker}};a=n.fn.datepicker;n.fn.datepicker=function(i){var u=Array.apply(null,arguments),r;return u.shift(),this.each(function(){var s=n(this),e=s.data("datepicker"),l=typeof i=="object"&&i,v;if(!e){var a=y(this,"date"),w=n.extend({},o,a,l),b=p(w.language),c=n.extend({},o,b,a,l);s.is(".input-daterange")||c.inputs?(v={inputs:c.inputs||s.find("input").toArray()},s.data("datepicker",e=new h(this,n.extend(c,v)))):s.data("datepicker",e=new f(this,c))}if(typeof i=="string"&&typeof e[i]=="function"&&(r=e[i].apply(e,u),r!==t))return!1}),r!==t?r:this};o=n.fn.datepicker.defaults={autoclose:!1,beforeShowDay:n.noop,calendarWeeks:!1,clearBtn:!1,daysOfWeekDisabled:[],endDate:Infinity,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-Infinity,startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0};v=n.fn.datepicker.locale_opts=["format","rtl","weekStart"];n.fn.datepicker.Constructor=f;r=n.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear"}};i={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(n){return n%4==0&&n%100!=0||n%400==0},getDaysInMonth:function(n,t){return[31,i.isLeapYear(n)?29:28,31,30,31,30,31,31,30,31,30,31][t]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,parseFormat:function(n){var t=n.replace(this.validParts,'\0').split('\0'),i=n.match(this.validParts);if(!t||!t.length||!i||i.length===0)throw new Error("Invalid date format.");return{separators:t,parts:i}},parseDate:function(e,o,s){function tt(){var n=this.slice(0,c[h].length),t=c[h].slice(0,n.length);return n===t}var nt,c,v,y,h,a,it,d,w;if(!e)return t;if(e instanceof Date)return e;if(typeof o=="string"&&(o=i.parseFormat(o)),nt=/([\-+]\d+)([dmwy])/,c=e.match(/([\-+]\d+)([dmwy])/g),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(e)){for(e=new Date,h=0;h<c.length;h++){v=nt.exec(c[h]);y=parseInt(v[1]);switch(v[2]){case"d":e.setUTCDate(e.getUTCDate()+y);break;case"m":e=f.prototype.moveMonth.call(f.prototype,e,y);break;case"w":e.setUTCDate(e.getUTCDate()+y*7);break;case"y":e=f.prototype.moveYear.call(f.prototype,e,y)}}return u(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),0,0,0)}c=e&&e.match(this.nonpunctuation)||[];e=new Date;var b={},g=["yyyy","yy","M","MM","m","mm","d","dd"],l={yyyy:function(n,t){return n.setUTCFullYear(t)},yy:function(n,t){return n.setUTCFullYear(2e3+t)},m:function(n,t){if(isNaN(n))return n;for(t-=1;t<0;)t+=12;for(t%=12,n.setUTCMonth(t);n.getUTCMonth()!==t;)n.setUTCDate(n.getUTCDate()-1);return n},d:function(n,t){return n.setUTCDate(t)}},p,k;if(l.M=l.MM=l.mm=l.m,l.dd=l.d,e=u(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0),a=o.parts.slice(),c.length!==a.length&&(a=n(a).filter(function(t,i){return n.inArray(i,g)!==-1}).toArray()),c.length===a.length){for(h=0,it=a.length;h<it;h++){if(p=parseInt(c[h],10),v=a[h],isNaN(p))switch(v){case"MM":k=n(r[s].months).filter(tt);p=n.inArray(k[0],r[s].months)+1;break;case"M":k=n(r[s].monthsShort).filter(tt);p=n.inArray(k[0],r[s].monthsShort)+1}b[v]=p}for(h=0;h<g.length;h++)w=g[h],w in b&&!isNaN(b[w])&&(d=new Date(e),l[w](d,b[w]),isNaN(d)||(e=d))}return e},formatDate:function(t,u,f){var e,s,o,h;if(!t)return"";for(typeof u=="string"&&(u=i.parseFormat(u)),e={d:t.getUTCDate(),D:r[f].daysShort[t.getUTCDay()],DD:r[f].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:r[f].monthsShort[t.getUTCMonth()],MM:r[f].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()},e.dd=(e.d<10?"0":"")+e.d,e.mm=(e.m<10?"0":"")+e.m,t=[],s=n.extend([],u.separators),o=0,h=u.parts.length;o<=h;o++)s.length&&t.push(s.shift()),t.push(e[u.parts[o]]);return t.join("")},headTemplate:'<thead><tr><th class="prev">&laquo;<\/th><th colspan="5" class="datepicker-switch"><\/th><th class="next">&raquo;<\/th><\/tr><\/thead>',contTemplate:'<tbody><tr><td colspan="7"><\/td><\/tr><\/tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"><\/th><\/tr><tr><th colspan="7" class="clear"><\/th><\/tr><\/tfoot>'};i.template='<div class="datepicker"><div class="datepicker-days"><table class=" table-condensed">'+i.headTemplate+"<tbody><\/tbody>"+i.footTemplate+'<\/table><\/div><div class="datepicker-months"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datepicker-years"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+"<\/table><\/div><\/div>";n.fn.datepicker.DPGlobal=i;n.fn.datepicker.noConflict=function(){return n.fn.datepicker=a,this};n(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var i=n(this);i.data("datepicker")||(t.preventDefault(),i.datepicker("show"))});n(function(){n('[data-provide="datepicker-inline"]').datepicker()})}(window.jQuery),function(n){n.flexslider=function(t,i){var r=n(t);r.vars=n.extend({},n.flexslider.defaults,i);var f=r.vars.namespace,v=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,y=("ontouchstart"in window||v||window.DocumentTouch&&document instanceof DocumentTouch)&&r.vars.touch,a="click touchend MSPointerUp",s="",p,h=r.vars.direction==="vertical",o=r.vars.reverse,e=r.vars.itemWidth>0,c=r.vars.animation==="fade",l=r.vars.asNavFor!=="",u={},w=!0;n.data(t,"flexslider",r);u={init:function(){r.animating=!1;r.currentSlide=parseInt(r.vars.startAt?r.vars.startAt:0,10);isNaN(r.currentSlide)&&(r.currentSlide=0);r.animatingTo=r.currentSlide;r.atEnd=r.currentSlide===0||r.currentSlide===r.last;r.containerSelector=r.vars.selector.substr(0,r.vars.selector.search(" "));r.slides=n(r.vars.selector,r);r.container=n(r.containerSelector,r);r.count=r.slides.length;r.syncExists=n(r.vars.sync).length>0;r.vars.animation==="slide"&&(r.vars.animation="swing");r.prop=h?"top":"marginLeft";r.args={};r.manualPause=!1;r.stopped=!1;r.started=!1;r.startTimeout=null;r.transitions=!r.vars.video&&!c&&r.vars.useCSS&&function(){var i=document.createElement("div"),n=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"],t;for(t in n)if(i.style[n[t]]!==undefined)return r.pfx=n[t].replace("Perspective","").toLowerCase(),r.prop="-"+r.pfx+"-transform",!0;return!1}();r.vars.controlsContainer!==""&&(r.controlsContainer=n(r.vars.controlsContainer).length>0&&n(r.vars.controlsContainer));r.vars.manualControls!==""&&(r.manualControls=n(r.vars.manualControls).length>0&&n(r.vars.manualControls));r.vars.randomize&&(r.slides.sort(function(){return Math.round(Math.random())-.5}),r.container.empty().append(r.slides));r.doMath();r.setup("init");r.vars.controlNav&&u.controlNav.setup();r.vars.directionNav&&u.directionNav.setup();r.vars.keyboard&&(n(r.containerSelector).length===1||r.vars.multipleKeyboard)&&n(document).bind("keyup",function(n){var t=n.keyCode,i;r.animating||t!==39&&t!==37||(i=t===39?r.getTarget("next"):t===37?r.getTarget("prev"):!1,r.flexAnimate(i,r.vars.pauseOnAction))});r.vars.mousewheel&&r.bind("mousewheel",function(n,t){n.preventDefault();var i=t<0?r.getTarget("next"):r.getTarget("prev");r.flexAnimate(i,r.vars.pauseOnAction)});r.vars.pausePlay&&u.pausePlay.setup();r.vars.slideshow&&r.vars.pauseInvisible&&u.pauseInvisible.init();r.vars.slideshow&&(r.vars.pauseOnHover&&r.hover(function(){r.manualPlay||r.manualPause||r.pause()},function(){r.manualPause||r.manualPlay||r.stopped||r.play()}),r.vars.pauseInvisible&&u.pauseInvisible.isHidden()||(r.vars.initDelay>0?r.startTimeout=setTimeout(r.play,r.vars.initDelay):r.play()));l&&u.asNav.setup();y&&r.vars.touch&&u.touch();(!c||c&&r.vars.smoothHeight)&&n(window).bind("resize orientationchange focus",u.resize);r.find("img").attr("draggable","false");setTimeout(function(){r.vars.start(r)},200)},asNav:{setup:function(){if(r.asNav=!0,r.animatingTo=Math.floor(r.currentSlide/r.move),r.currentItem=r.currentSlide,r.slides.removeClass(f+"active-slide").eq(r.currentItem).addClass(f+"active-slide"),v)t._slider=r,r.slides.each(function(){var t=this;t._gesture=new MSGesture;t._gesture.target=t;t.addEventListener("MSPointerDown",function(n){n.preventDefault();n.currentTarget._gesture&&n.currentTarget._gesture.addPointer(n.pointerId)},!1);t.addEventListener("MSGestureTap",function(t){t.preventDefault();var i=n(this),u=i.index();n(r.vars.asNavFor).data("flexslider").animating||i.hasClass("active")||(r.direction=r.currentItem<u?"next":"prev",r.flexAnimate(u,r.vars.pauseOnAction,!1,!0,!0))})});else r.slides.on(a,function(t){t.preventDefault();var i=n(this),u=i.index(),e=i.offset().left-n(r).scrollLeft();e<=0&&i.hasClass(f+"active-slide")?r.flexAnimate(r.getTarget("prev"),!0):n(r.vars.asNavFor).data("flexslider").animating||i.hasClass(f+"active-slide")||(r.direction=r.currentItem<u?"next":"prev",r.flexAnimate(u,r.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){r.manualControls?u.controlNav.setupManual():u.controlNav.setupPaging()},setupPaging:function(){var c=r.vars.controlNav==="thumbnails"?"control-thumbs":"control-paging",h=1,e,o,t,i;if(r.controlNavScaffold=n('<ol class="'+f+"control-nav "+f+c+'"><\/ol>'),r.pagingCount>1)for(t=0;t<r.pagingCount;t++)o=r.slides.eq(t),e=r.vars.controlNav==="thumbnails"?'<img src="'+o.attr("data-thumb")+'"/>':"<a>"+h+"<\/a>","thumbnails"===r.vars.controlNav&&!0===r.vars.thumbCaptions&&(i=o.attr("data-thumbcaption"),""!=i&&undefined!=i&&(e+='<span class="'+f+'caption">'+i+"<\/span>")),r.controlNavScaffold.append("<li>"+e+"<\/li>"),h++;r.controlsContainer?n(r.controlsContainer).append(r.controlNavScaffold):r.append(r.controlNavScaffold);u.controlNav.set();u.controlNav.active();r.controlNavScaffold.delegate("a, img",a,function(t){if(t.preventDefault(),s===""||s===t.type){var i=n(this),e=r.controlNav.index(i);i.hasClass(f+"active")||(r.direction=e>r.currentSlide?"next":"prev",r.flexAnimate(e,r.vars.pauseOnAction))}s===""&&(s=t.type);u.setToClearWatchedEvent()})},setupManual:function(){r.controlNav=r.manualControls;u.controlNav.active();r.controlNav.bind(a,function(t){if(t.preventDefault(),s===""||s===t.type){var i=n(this),e=r.controlNav.index(i);i.hasClass(f+"active")||(r.direction=e>r.currentSlide?"next":"prev",r.flexAnimate(e,r.vars.pauseOnAction))}s===""&&(s=t.type);u.setToClearWatchedEvent()})},set:function(){var t=r.vars.controlNav==="thumbnails"?"img":"a";r.controlNav=n("."+f+"control-nav li "+t,r.controlsContainer?r.controlsContainer:r)},active:function(){r.controlNav.removeClass(f+"active").eq(r.animatingTo).addClass(f+"active")},update:function(t,i){r.pagingCount>1&&t==="add"?r.controlNavScaffold.append(n("<li><a>"+r.count+"<\/a><\/li>")):r.pagingCount===1?r.controlNavScaffold.find("li").remove():r.controlNav.eq(i).closest("li").remove();u.controlNav.set();r.pagingCount>1&&r.pagingCount!==r.controlNav.length?r.update(i,t):u.controlNav.active()}},directionNav:{setup:function(){var t=n('<ul class="'+f+'direction-nav"><li><a class="'+f+'prev" href="#">'+r.vars.prevText+'<\/a><\/li><li><a class="'+f+'next" href="#">'+r.vars.nextText+"<\/a><\/li><\/ul>");r.controlsContainer?(n(r.controlsContainer).append(t),r.directionNav=n("."+f+"direction-nav li a",r.controlsContainer)):(r.append(t),r.directionNav=n("."+f+"direction-nav li a",r));u.directionNav.update();r.directionNav.bind(a,function(t){t.preventDefault();var i;(s===""||s===t.type)&&(i=n(this).hasClass(f+"next")?r.getTarget("next"):r.getTarget("prev"),r.flexAnimate(i,r.vars.pauseOnAction));s===""&&(s=t.type);u.setToClearWatchedEvent()})},update:function(){var n=f+"disabled";r.pagingCount===1?r.directionNav.addClass(n).attr("tabindex","-1"):r.vars.animationLoop?r.directionNav.removeClass(n).removeAttr("tabindex"):r.animatingTo===0?r.directionNav.removeClass(n).filter("."+f+"prev").addClass(n).attr("tabindex","-1"):r.animatingTo===r.last?r.directionNav.removeClass(n).filter("."+f+"next").addClass(n).attr("tabindex","-1"):r.directionNav.removeClass(n).removeAttr("tabindex")}},pausePlay:{setup:function(){var t=n('<div class="'+f+'pauseplay"><a><\/a><\/div>');r.controlsContainer?(r.controlsContainer.append(t),r.pausePlay=n("."+f+"pauseplay a",r.controlsContainer)):(r.append(t),r.pausePlay=n("."+f+"pauseplay a",r));u.pausePlay.update(r.vars.slideshow?f+"pause":f+"play");r.pausePlay.bind(a,function(t){t.preventDefault();(s===""||s===t.type)&&(n(this).hasClass(f+"pause")?(r.manualPause=!0,r.manualPlay=!1,r.pause()):(r.manualPause=!1,r.manualPlay=!0,r.play()));s===""&&(s=t.type);u.setToClearWatchedEvent()})},update:function(n){n==="play"?r.pausePlay.removeClass(f+"pause").addClass(f+"play").html(r.vars.playText):r.pausePlay.removeClass(f+"play").addClass(f+"pause").html(r.vars.pauseText)}},touch:function(){var p,w,f,u,n,s,l=!1,a=0,y=0,i=0;if(v){t.style.msTouchAction="none";t._gesture=new MSGesture;t._gesture.target=t;t.addEventListener("MSPointerDown",g,!1);t._slider=r;t.addEventListener("MSGestureChange",nt,!1);t.addEventListener("MSGestureEnd",tt,!1);function g(n){n.stopPropagation();r.animating?n.preventDefault():(r.pause(),t._gesture.addPointer(n.pointerId),i=0,u=h?r.h:r.w,s=Number(new Date),f=e&&o&&r.animatingTo===r.last?0:e&&o?r.limit-(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo:e&&r.currentSlide===r.last?r.limit:e?(r.itemW+r.vars.itemMargin)*r.move*r.currentSlide:o?(r.last-r.currentSlide+r.cloneOffset)*u:(r.currentSlide+r.cloneOffset)*u)}function nt(r){var e,o,a;if(r.stopPropagation(),e=r.target._slider,e){if(o=-r.translationX,a=-r.translationY,i=i+(h?a:o),n=i,l=h?Math.abs(i)<Math.abs(-o):Math.abs(i)<Math.abs(-a),r.detail===r.MSGESTURE_FLAG_INERTIA){setImmediate(function(){t._gesture.stop()});return}(!l||Number(new Date)-s>500)&&(r.preventDefault(),!c&&e.transitions&&(e.vars.animationLoop||(n=i/(e.currentSlide===0&&i<0||e.currentSlide===e.last&&i>0?Math.abs(i)/u+2:1)),e.setProps(f+n,"setTouch")))}}function tt(t){var r,e,h;(t.stopPropagation(),r=t.target._slider,r)&&(r.animatingTo!==r.currentSlide||l||n===null||(e=o?-n:n,h=e>0?r.getTarget("next"):r.getTarget("prev"),r.canAdvance(h)&&(Number(new Date)-s<550&&Math.abs(e)>50||Math.abs(e)>u/2)?r.flexAnimate(h,r.vars.pauseOnAction):c||r.flexAnimate(r.currentSlide,r.vars.pauseOnAction,!0)),p=null,w=null,n=null,f=null,i=0)}}else{t.addEventListener("touchstart",d,!1);function d(n){r.animating?n.preventDefault():(window.navigator.msPointerEnabled||n.touches.length===1)&&(r.pause(),u=h?r.h:r.w,s=Number(new Date),a=n.touches[0].pageX,y=n.touches[0].pageY,f=e&&o&&r.animatingTo===r.last?0:e&&o?r.limit-(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo:e&&r.currentSlide===r.last?r.limit:e?(r.itemW+r.vars.itemMargin)*r.move*r.currentSlide:o?(r.last-r.currentSlide+r.cloneOffset)*u:(r.currentSlide+r.cloneOffset)*u,p=h?y:a,w=h?a:y,t.addEventListener("touchmove",b,!1),t.addEventListener("touchend",k,!1))}function b(t){a=t.touches[0].pageX;y=t.touches[0].pageY;n=h?p-y:p-a;l=h?Math.abs(n)<Math.abs(a-w):Math.abs(n)<Math.abs(y-w);(!l||Number(new Date)-s>500)&&(t.preventDefault(),!c&&r.transitions&&(r.vars.animationLoop||(n=n/(r.currentSlide===0&&n<0||r.currentSlide===r.last&&n>0?Math.abs(n)/u+2:1)),r.setProps(f+n,"setTouch")))}function k(){if(t.removeEventListener("touchmove",b,!1),r.animatingTo===r.currentSlide&&!l&&!(n===null)){var i=o?-n:n,e=i>0?r.getTarget("next"):r.getTarget("prev");r.canAdvance(e)&&(Number(new Date)-s<550&&Math.abs(i)>50||Math.abs(i)>u/2)?r.flexAnimate(e,r.vars.pauseOnAction):c||r.flexAnimate(r.currentSlide,r.vars.pauseOnAction,!0)}t.removeEventListener("touchend",k,!1);p=null;w=null;n=null;f=null}}},resize:function(){!r.animating&&r.is(":visible")&&(e||r.doMath(),c?u.smoothHeight():e?(r.slides.width(r.computedW),r.update(r.pagingCount),r.setProps()):h?(r.viewport.height(r.h),r.setProps(r.h,"setTotal")):(r.vars.smoothHeight&&u.smoothHeight(),r.newSlides.width(r.computedW),r.setProps(r.computedW,"setTotal")))},smoothHeight:function(n){if(!h||c){var t=c?r:r.viewport;n?t.animate({height:r.slides.eq(r.animatingTo).height()},n):t.height(r.slides.eq(r.animatingTo).height())}},sync:function(t){var i=n(r.vars.sync).data("flexslider"),u=r.animatingTo;switch(t){case"animate":i.flexAnimate(u,r.vars.pauseOnAction,!1,!0);break;case"play":i.playing||i.asNav||i.play();break;case"pause":i.pause()}},uniqueID:function(t){return t.find("[id]").each(function(){var t=n(this);t.attr("id",t.attr("id")+"_clone")}),t},pauseInvisible:{visProp:null,init:function(){var t=["webkit","moz","ms","o"],n,i;if("hidden"in document)return"hidden";for(n=0;n<t.length;n++)t[n]+"Hidden"in document&&(u.pauseInvisible.visProp=t[n]+"Hidden");u.pauseInvisible.visProp&&(i=u.pauseInvisible.visProp.replace(/[H|h]idden/,"")+"visibilitychange",document.addEventListener(i,function(){u.pauseInvisible.isHidden()?r.startTimeout?clearTimeout(r.startTimeout):r.pause():r.started?r.play():r.vars.initDelay>0?setTimeout(r.play,r.vars.initDelay):r.play()}))},isHidden:function(){return document[u.pauseInvisible.visProp]||!1}},setToClearWatchedEvent:function(){clearTimeout(p);p=setTimeout(function(){s=""},3e3)}};r.flexAnimate=function(t,i,s,a,v){var w,p,d,b,k;if(r.vars.animationLoop||t===r.currentSlide||(r.direction=t>r.currentSlide?"next":"prev"),l&&r.pagingCount===1&&(r.direction=r.currentItem<t?"next":"prev"),!r.animating&&(r.canAdvance(t,v)||s)&&r.is(":visible")){if(l&&a)if(w=n(r.vars.asNavFor).data("flexslider"),r.atEnd=t===0||t===r.count-1,w.flexAnimate(t,!0,!1,!0,v),r.direction=r.currentItem<t?"next":"prev",w.direction=r.direction,Math.ceil((t+1)/r.visible)-1!==r.currentSlide&&t!==0)r.currentItem=t,r.slides.removeClass(f+"active-slide").eq(t).addClass(f+"active-slide"),t=Math.floor(t/r.visible);else return r.currentItem=t,r.slides.removeClass(f+"active-slide").eq(t).addClass(f+"active-slide"),!1;r.animating=!0;r.animatingTo=t;i&&r.pause();r.vars.before(r);r.syncExists&&!v&&u.sync("animate");r.vars.controlNav&&u.controlNav.active();e||r.slides.removeClass(f+"active-slide").eq(t).addClass(f+"active-slide");r.atEnd=t===0||t===r.last;r.vars.directionNav&&u.directionNav.update();t===r.last&&(r.vars.end(r),r.vars.animationLoop||r.pause());c?y?(r.slides.eq(r.currentSlide).css({opacity:0,zIndex:1}),r.slides.eq(t).css({opacity:1,zIndex:2}),r.wrapup(p)):(r.slides.eq(r.currentSlide).css({zIndex:1}).animate({opacity:0},r.vars.animationSpeed,r.vars.easing),r.slides.eq(t).css({zIndex:2}).animate({opacity:1},r.vars.animationSpeed,r.vars.easing,r.wrapup)):(p=h?r.slides.filter(":first").height():r.computedW,e?(d=r.vars.itemMargin,k=(r.itemW+d)*r.move*r.animatingTo,b=k>r.limit&&r.visible!==1?r.limit:k):b=r.currentSlide===0&&t===r.count-1&&r.vars.animationLoop&&r.direction!=="next"?o?(r.count+r.cloneOffset)*p:0:r.currentSlide===r.last&&t===0&&r.vars.animationLoop&&r.direction!=="prev"?o?0:(r.count+1)*p:o?(r.count-1-t+r.cloneOffset)*p:(t+r.cloneOffset)*p,r.setProps(b,"",r.vars.animationSpeed),r.transitions?(r.vars.animationLoop&&r.atEnd||(r.animating=!1,r.currentSlide=r.animatingTo),r.container.unbind("webkitTransitionEnd transitionend"),r.container.bind("webkitTransitionEnd transitionend",function(){r.wrapup(p)})):r.container.animate(r.args,r.vars.animationSpeed,r.vars.easing,function(){r.wrapup(p)}));r.vars.smoothHeight&&u.smoothHeight(r.vars.animationSpeed)}};r.wrapup=function(n){c||e||(r.currentSlide===0&&r.animatingTo===r.last&&r.vars.animationLoop?r.setProps(n,"jumpEnd"):r.currentSlide===r.last&&r.animatingTo===0&&r.vars.animationLoop&&r.setProps(n,"jumpStart"));r.animating=!1;r.currentSlide=r.animatingTo;r.vars.after(r)};r.animateSlides=function(){!r.animating&&w&&r.flexAnimate(r.getTarget("next"))};r.pause=function(){clearInterval(r.animatedSlides);r.animatedSlides=null;r.playing=!1;r.vars.pausePlay&&u.pausePlay.update("play");r.syncExists&&u.sync("pause")};r.play=function(){r.playing&&clearInterval(r.animatedSlides);r.animatedSlides=r.animatedSlides||setInterval(r.animateSlides,r.vars.slideshowSpeed);r.started=r.playing=!0;r.vars.pausePlay&&u.pausePlay.update("pause");r.syncExists&&u.sync("play")};r.stop=function(){r.pause();r.stopped=!0};r.canAdvance=function(n,t){var i=l?r.pagingCount-1:r.last;return t?!0:l&&r.currentItem===r.count-1&&n===0&&r.direction==="prev"?!0:l&&r.currentItem===0&&n===r.pagingCount-1&&r.direction!=="next"?!1:n===r.currentSlide&&!l?!1:r.vars.animationLoop?!0:r.atEnd&&r.currentSlide===0&&n===i&&r.direction!=="next"?!1:r.atEnd&&r.currentSlide===i&&n===0&&r.direction==="next"?!1:!0};r.getTarget=function(n){return r.direction=n,n==="next"?r.currentSlide===r.last?0:r.currentSlide+1:r.currentSlide===0?r.last:r.currentSlide-1};r.setProps=function(n,t,i){var u=function(){var i=n?n:(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo,u=function(){if(e)return t==="setTouch"?n:o&&r.animatingTo===r.last?0:o?r.limit-(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo:r.animatingTo===r.last?r.limit:i;switch(t){case"setTotal":return o?(r.count-1-r.currentSlide+r.cloneOffset)*n:(r.currentSlide+r.cloneOffset)*n;case"setTouch":return o?n:n;case"jumpEnd":return o?n:r.count*n;case"jumpStart":return o?r.count*n:n;default:return n}}();return u*-1+"px"}();r.transitions&&(u=h?"translate3d(0,"+u+",0)":"translate3d("+u+",0,0)",i=i!==undefined?i/1e3+"s":"0s",r.container.css("-"+r.pfx+"-transition-duration",i),r.container.css("transition-duration",i));r.args[r.prop]=u;(r.transitions||i===undefined)&&r.container.css(r.args);r.container.css("transform",u)};r.setup=function(t){if(c)r.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),t==="init"&&(y?r.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+r.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(r.currentSlide).css({opacity:1,zIndex:2}):r.slides.css({opacity:0,display:"block",zIndex:1}).eq(r.currentSlide).css({zIndex:2}).animate({opacity:1},r.vars.animationSpeed,r.vars.easing)),r.vars.smoothHeight&&u.smoothHeight();else{var i,s;t==="init"&&(r.viewport=n('<div class="'+f+'viewport"><\/div>').css({overflow:"hidden",position:"relative"}).appendTo(r).append(r.container),r.cloneCount=0,r.cloneOffset=0,o&&(s=n.makeArray(r.slides).reverse(),r.slides=n(s),r.container.empty().append(r.slides)));r.vars.animationLoop&&!e&&(r.cloneCount=2,r.cloneOffset=1,t!=="init"&&r.container.find(".clone").remove(),r.container.append(r.slides.first().clone().addClass("clone").attr("aria-hidden","true")).prepend(r.slides.last().clone().addClass("clone").attr("aria-hidden","true")),u.uniqueID(r.slides.first().clone().addClass("clone")).appendTo(r.container),u.uniqueID(r.slides.last().clone().addClass("clone")).prependTo(r.container));r.newSlides=n(r.vars.selector,r);i=o?r.count-1-r.currentSlide+r.cloneOffset:r.currentSlide+r.cloneOffset;h&&!e?(r.container.height((r.count+r.cloneCount)*200+"%").css("position","absolute").width("100%"),setTimeout(function(){r.newSlides.css({display:"block"});r.doMath();r.viewport.height(r.h);r.setProps(i*r.h,"init")},t==="init"?100:0)):(r.container.width((r.count+r.cloneCount)*200+"%"),r.setProps(i*r.computedW,"init"),setTimeout(function(){r.doMath();r.newSlides.css({width:r.computedW,float:"left",display:"block"});r.vars.smoothHeight&&u.smoothHeight()},t==="init"?100:0))}e||r.slides.removeClass(f+"active-slide").eq(r.currentSlide).addClass(f+"active-slide");r.vars.init(r)};r.doMath=function(){var u=r.slides.first(),n=r.vars.itemMargin,t=r.vars.minItems,i=r.vars.maxItems;r.w=r.viewport===undefined?r.width():r.viewport.width();r.h=u.height();r.boxPadding=u.outerWidth()-u.width();e?(r.itemT=r.vars.itemWidth+n,r.minW=t?t*r.itemT:r.w,r.maxW=i?i*r.itemT-n:r.w,r.itemW=r.minW>r.w?(r.w-n*(t-1))/t:r.maxW<r.w?(r.w-n*(i-1))/i:r.vars.itemWidth>r.w?r.w:r.vars.itemWidth,r.visible=Math.floor(r.w/r.itemW),r.move=r.vars.move>0&&r.vars.move<r.visible?r.vars.move:r.visible,r.pagingCount=Math.ceil((r.count-r.visible)/r.move+1),r.last=r.pagingCount-1,r.limit=r.pagingCount===1?0:r.vars.itemWidth>r.w?r.itemW*(r.count-1)+n*(r.count-1):(r.itemW+n)*r.count-r.w-n):(r.itemW=r.w,r.pagingCount=r.count,r.last=r.count-1);r.computedW=r.itemW-r.boxPadding};r.update=function(n,t){r.doMath();e||(n<r.currentSlide?r.currentSlide+=1:n<=r.currentSlide&&n!==0&&(r.currentSlide-=1),r.animatingTo=r.currentSlide);r.vars.controlNav&&!r.manualControls&&(t==="add"&&!e||r.pagingCount>r.controlNav.length?u.controlNav.update("add"):(t==="remove"&&!e||r.pagingCount<r.controlNav.length)&&(e&&r.currentSlide>r.last&&(r.currentSlide-=1,r.animatingTo-=1),u.controlNav.update("remove",r.last)));r.vars.directionNav&&u.directionNav.update()};r.addSlide=function(t,i){var u=n(t);r.count+=1;r.last=r.count-1;h&&o?i!==undefined?r.slides.eq(r.count-i).after(u):r.container.prepend(u):i!==undefined?r.slides.eq(i).before(u):r.container.append(u);r.update(i,"add");r.slides=n(r.vars.selector+":not(.clone)",r);r.setup();r.vars.added(r)};r.removeSlide=function(t){var i=isNaN(t)?r.slides.index(n(t)):t;r.count-=1;r.last=r.count-1;isNaN(t)?n(t,r.slides).remove():h&&o?r.slides.eq(r.last).remove():r.slides.eq(t).remove();r.doMath();r.update(i,"remove");r.slides=n(r.vars.selector+":not(.clone)",r);r.setup();r.vars.removed(r)};u.init()};n(window).blur(function(){focused=!1}).focus(function(){focused=!0});n.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}};n.fn.flexslider=function(t){if(t===undefined&&(t={}),typeof t=="object")return this.each(function(){var i=n(this),u=t.selector?t.selector:".slides > li",r=i.find(u);r.length===1&&t.allowOneSlide===!0||r.length===0?(r.fadeIn(400),t.start&&t.start(i)):i.data("flexslider")===undefined&&new n.flexslider(this,t)});var i=n(this).data("flexslider");switch(t){case"play":i.play();break;case"pause":i.pause();break;case"stop":i.stop();break;case"next":i.flexAnimate(i.getTarget("next"),!0);break;case"prev":case"previous":i.flexAnimate(i.getTarget("prev"),!0);break;default:typeof t=="number"&&i.flexAnimate(t,!0)}}}(jQuery),function(){var n;n=jQuery;n.fn.flexNav=function(t){var r,u,e,c,l,a,f,o,i,s,h,v;i=n.extend({animationSpeed:250,transitionOpacity:!0,buttonSelector:".mobile-menu",hoverIntent:!1,hoverIntentTimeout:150,calcItemWidths:!1,hover:!0},t);r=n(this);r.addClass("with-js");i.transitionOpacity===!0&&r.addClass("opacity");r.find("li").each(function(){if(n(this).has("ul").length)return n(this).addClass("item-with-ul").find("ul").hide()});i.calcItemWidths===!0&&(u=r.find(">li"),c=u.length,a=100/c,l=a+"%");r.data("breakpoint")&&(e=r.data("breakpoint"));s=function(){var t;r.hasClass("lg-screen")===!0&&i.hover===!0&&(i.transitionOpacity===!0?(t=n(this).find(">ul"),t.addClass("flexnav-show").stop(!0,!0).animate({height:["toggle","swing"],opacity:"toggle"},i.animationSpeed),t.prev(".level-one").addClass("active")):(t=n(this).find(">ul"),t.addClass("flexnav-show").stop(!0,!0).animate({height:["toggle","swing"]},i.animationSpeed),t.prev(".level-one").addClass("active")))};f=function(){var t;r.hasClass("lg-screen")===!0&&n(this).find(">ul").hasClass("flexnav-show")===!0&&i.hover===!0&&(i.transitionOpacity===!0?(t=n(this).find(">ul"),t.removeClass("flexnav-show").stop(!0,!0).animate({height:["toggle","swing"],opacity:"toggle"},i.animationSpeed),t.prev(".level-one").removeClass("active")):(t=n(this).find(">ul"),t.removeClass("flexnav-show").stop(!0,!0).animate({height:["toggle","swing"]},i.animationSpeed),t.prev(".level-one").removeClass("active")))};o=function(){var t;if(n(window).width()<=e){r.removeClass("lg-screen").addClass("sm-screen");i.calcItemWidths===!0&&u.css("width","100%");t=i.buttonSelector+", "+i.buttonSelector+" .touch-button";n(t).removeClass("active");return n(".one-page li a").on("click",function(){return r.removeClass("flexnav-show")})}if(n(window).width()>e){if(r.removeClass("sm-screen").addClass("lg-screen"),i.calcItemWidths===!0&&u.css("width",l),r.removeClass("flexnav-show").find(".item-with-ul").on(),n(".item-with-ul").find("ul").removeClass("flexnav-show"),f(),i.hoverIntent===!0)return n(".item-with-ul").hoverIntent({over:s,out:f,timeout:i.hoverIntentTimeout});if(i.hoverIntent===!1)return n(".item-with-ul").on("mouseenter",s).on("mouseleave",f)}};n(i.buttonSelector).data("navEl",r);v=".item-with-ul, "+i.buttonSelector;n(v).append('<span class="touch-button"><i class="navicon">&#9660;<\/i><\/span>');h=i.buttonSelector+", "+i.buttonSelector+" .touch-button";n(h).on("click",function(t){var u,f,r;return n(h).toggleClass("active"),t.preventDefault(),t.stopPropagation(),r=i.buttonSelector,u=n(this).is(r)?n(this):n(this).parent(r),f=u.data("navEl"),f.toggleClass("flexnav-show")});n(".touch-button").on("click",function(){var t,u;return(t=n(this).parent(".item-with-ul").find(">ul"),u=n(this).parent(".item-with-ul").find(">span.touch-button"),r.hasClass("lg-screen")===!0&&n(this).parent(".item-with-ul").siblings().find("ul.flexnav-show").removeClass("flexnav-show").hide(),t.hasClass("flexnav-show")===!0)?(t.removeClass("flexnav-show").slideUp(i.animationSpeed),u.removeClass("active")):t.hasClass("flexnav-show")===!1?(t.addClass("flexnav-show").slideDown(i.animationSpeed),u.addClass("active")):void 0});r.find(".item-with-ul *").focus(function(){return n(this).parent(".item-with-ul").parent().find(".open").not(this).removeClass("open").hide(),n(this).parent(".item-with-ul").find(">ul").addClass("open").show()});o();return n(window).on("resize",o)}}.call(this),function(n){n.fn.hoverIntent=function(t,i,r){var u={interval:100,sensitivity:7,timeout:0};u=typeof t=="object"?n.extend(u,t):n.isFunction(i)?n.extend(u,{over:t,out:i,selector:r}):n.extend(u,{over:t,out:t,selector:i});var f,e,o,s,h=function(n){f=n.pageX;e=n.pageY},c=function(t,i){if(i.hoverIntent_t=clearTimeout(i.hoverIntent_t),Math.abs(o-f)+Math.abs(s-e)<u.sensitivity)return n(i).off("mousemove.hoverIntent",h),i.hoverIntent_s=1,u.over.apply(i,[t]);o=f;s=e;i.hoverIntent_t=setTimeout(function(){c(t,i)},u.interval)},a=function(n,t){return t.hoverIntent_t=clearTimeout(t.hoverIntent_t),t.hoverIntent_s=0,u.out.apply(t,[n])},l=function(t){var r=jQuery.extend({},t),i=this;if(i.hoverIntent_t&&(i.hoverIntent_t=clearTimeout(i.hoverIntent_t)),t.type=="mouseenter"){o=r.pageX;s=r.pageY;n(i).on("mousemove.hoverIntent",h);i.hoverIntent_s!=1&&(i.hoverIntent_t=setTimeout(function(){c(r,i)},u.interval))}else n(i).off("mousemove.hoverIntent",h),i.hoverIntent_s==1&&(i.hoverIntent_t=setTimeout(function(){a(r,i)},u.timeout))};return this.on({"mouseenter.hoverIntent":l,"mouseleave.hoverIntent":l},u.selector)}}(jQuery),function(n,t){"use strict";function e(){if(!i.READY){i.event.determineEventTypes();i.utils.each(i.gestures,function(n){i.detection.register(n)});i.event.onTouch(i.DOCUMENT,i.EVENT_MOVE,i.detection.detect);i.event.onTouch(i.DOCUMENT,i.EVENT_END,i.detection.detect);i.READY=!0}}var i=function(n,t){return new i.Instance(n,t||{})};i.defaults={stop_browser_behavior:{userSelect:"none",touchAction:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};i.HAS_POINTEREVENTS=n.navigator.pointerEnabled||n.navigator.msPointerEnabled;i.HAS_TOUCHEVENTS="ontouchstart"in n;i.MOBILE_REGEX=/mobile|tablet|ip(ad|hone|od)|android|silk/i;i.NO_MOUSEEVENTS=i.HAS_TOUCHEVENTS&&n.navigator.userAgent.match(i.MOBILE_REGEX);i.EVENT_TYPES={};i.DIRECTION_DOWN="down";i.DIRECTION_LEFT="left";i.DIRECTION_UP="up";i.DIRECTION_RIGHT="right";i.POINTER_MOUSE="mouse";i.POINTER_TOUCH="touch";i.POINTER_PEN="pen";i.EVENT_START="start";i.EVENT_MOVE="move";i.EVENT_END="end";i.DOCUMENT=n.document;i.plugins=i.plugins||{};i.gestures=i.gestures||{};i.READY=!1;i.utils={extend:function(n,i,r){for(var u in i)n[u]!==t&&r||(n[u]=i[u]);return n},each:function(n,i,r){var u,f;if("forEach"in n)n.forEach(i,r);else if(n.length!==t){for(u=0,f=n.length;u<f;u++)if(i.call(r,n[u],u,n)===!1)return}else for(u in n)if(n.hasOwnProperty(u)&&i.call(r,n[u],u,n)===!1)return},hasParent:function(n,t){while(n){if(n==t)return!0;n=n.parentNode}return!1},getCenter:function(n){var t=[],r=[];return i.utils.each(n,function(n){t.push(typeof n.clientX!="undefined"?n.clientX:n.pageX);r.push(typeof n.clientY!="undefined"?n.clientY:n.pageY)}),{pageX:(Math.min.apply(Math,t)+Math.max.apply(Math,t))/2,pageY:(Math.min.apply(Math,r)+Math.max.apply(Math,r))/2}},getVelocity:function(n,t,i){return{x:Math.abs(t/n)||0,y:Math.abs(i/n)||0}},getAngle:function(n,t){var i=t.pageY-n.pageY,r=t.pageX-n.pageX;return Math.atan2(i,r)*180/Math.PI},getDirection:function(n,t){var r=Math.abs(n.pageX-t.pageX),u=Math.abs(n.pageY-t.pageY);return r>=u?n.pageX-t.pageX>0?i.DIRECTION_LEFT:i.DIRECTION_RIGHT:n.pageY-t.pageY>0?i.DIRECTION_UP:i.DIRECTION_DOWN},getDistance:function(n,t){var i=t.pageX-n.pageX,r=t.pageY-n.pageY;return Math.sqrt(i*i+r*r)},getScale:function(n,t){return n.length>=2&&t.length>=2?this.getDistance(t[0],t[1])/this.getDistance(n[0],n[1]):1},getRotation:function(n,t){return n.length>=2&&t.length>=2?this.getAngle(t[1],t[0])-this.getAngle(n[1],n[0]):0},isVertical:function(n){return n==i.DIRECTION_UP||n==i.DIRECTION_DOWN},stopDefaultBrowserBehavior:function(n,t){t&&n&&n.style&&(i.utils.each(["webkit","khtml","moz","Moz","ms","o",""],function(r){i.utils.each(t,function(t){r&&(t=r+t.substring(0,1).toUpperCase()+t.substring(1));t in n.style&&(n.style[t]=t)})}),t.userSelect=="none"&&(n.onselectstart=function(){return!1}),t.userDrag=="none"&&(n.ondragstart=function(){return!1}))}};i.Instance=function(n,t){var r=this;e();this.element=n;this.enabled=!0;this.options=i.utils.extend(i.utils.extend({},i.defaults),t||{});this.options.stop_browser_behavior&&i.utils.stopDefaultBrowserBehavior(this.element,this.options.stop_browser_behavior);i.event.onTouch(n,i.EVENT_START,function(n){r.enabled&&i.detection.startDetect(r,n)});return this};i.Instance.prototype={on:function(n,t){var r=n.split(" ");return i.utils.each(r,function(n){this.element.addEventListener(n,t,!1)},this),this},off:function(n,t){var r=n.split(" ");return i.utils.each(r,function(n){this.element.removeEventListener(n,t,!1)},this),this},trigger:function(n,t){var r,u;return t||(t={}),r=i.DOCUMENT.createEvent("Event"),r.initEvent(n,!0,!0),r.gesture=t,u=this.element,i.utils.hasParent(t.target,u)&&(u=t.target),u.dispatchEvent(r),this},enable:function(n){return this.enabled=n,this}};var r=null,u=!1,f=!1;i.event={bindDom:function(n,t,r){var u=t.split(" ");i.utils.each(u,function(t){n.addEventListener(t,r,!1)})},onTouch:function(n,t,e){var o=this;this.bindDom(n,i.EVENT_TYPES[t],function(s){var c=s.type.toLowerCase(),h;c.match(/mouse/)&&f||(c.match(/touch/)||c.match(/pointerdown/)||c.match(/mouse/)&&s.which===1?u=!0:c.match(/mouse/)&&!s.which&&(u=!1),c.match(/touch|pointer/)&&(f=!0),h=0,u&&(i.HAS_POINTEREVENTS&&t!=i.EVENT_END?h=i.PointerEvent.updatePointer(t,s):c.match(/touch/)?h=s.touches.length:f||(h=c.match(/up/)?0:1),h>0&&t==i.EVENT_END?t=i.EVENT_MOVE:h||(t=i.EVENT_END),(h||r===null)&&(r=s),e.call(i.detection,o.collectEventData(n,t,o.getTouchList(r,t),s)),i.HAS_POINTEREVENTS&&t==i.EVENT_END&&(h=i.PointerEvent.updatePointer(t,s))),h||(r=null,u=!1,f=!1,i.PointerEvent.reset()))})},determineEventTypes:function(){var n;n=i.HAS_POINTEREVENTS?i.PointerEvent.getEvents():i.NO_MOUSEEVENTS?["touchstart","touchmove","touchend touchcancel"]:["touchstart mousedown","touchmove mousemove","touchend touchcancel mouseup"];i.EVENT_TYPES[i.EVENT_START]=n[0];i.EVENT_TYPES[i.EVENT_MOVE]=n[1];i.EVENT_TYPES[i.EVENT_END]=n[2]},getTouchList:function(n){return i.HAS_POINTEREVENTS?i.PointerEvent.getTouchList():n.touches?n.touches:(n.identifier=1,[n])},collectEventData:function(n,t,r,u){var f=i.POINTER_TOUCH;return(u.type.match(/mouse/)||i.PointerEvent.matchType(i.POINTER_MOUSE,u))&&(f=i.POINTER_MOUSE),{center:i.utils.getCenter(r),timeStamp:(new Date).getTime(),target:u.target,touches:r,eventType:t,pointerType:f,srcEvent:u,preventDefault:function(){this.srcEvent.preventManipulation&&this.srcEvent.preventManipulation();this.srcEvent.preventDefault&&this.srcEvent.preventDefault()},stopPropagation:function(){this.srcEvent.stopPropagation()},stopDetect:function(){return i.detection.stopDetect()}}}};i.PointerEvent={pointers:{},getTouchList:function(){var t=this,n=[];return i.utils.each(t.pointers,function(t){n.push(t)}),n},updatePointer:function(n,t){return n==i.EVENT_END?this.pointers={}:(t.identifier=t.pointerId,this.pointers[t.pointerId]=t),Object.keys(this.pointers).length},matchType:function(n,t){if(!t.pointerType)return!1;var r=t.pointerType,u={};return u[i.POINTER_MOUSE]=r===t.MSPOINTER_TYPE_MOUSE||r===i.POINTER_MOUSE,u[i.POINTER_TOUCH]=r===t.MSPOINTER_TYPE_TOUCH||r===i.POINTER_TOUCH,u[i.POINTER_PEN]=r===t.MSPOINTER_TYPE_PEN||r===i.POINTER_PEN,u[n]},getEvents:function(){return["pointerdown MSPointerDown","pointermove MSPointerMove","pointerup pointercancel MSPointerUp MSPointerCancel"]},reset:function(){this.pointers={}}};i.detection={gestures:[],current:null,previous:null,stopped:!1,startDetect:function(n,t){this.current||(this.stopped=!1,this.current={inst:n,startEvent:i.utils.extend({},t),lastEvent:!1,name:""},this.detect(t))},detect:function(n){if(this.current&&!this.stopped){n=this.extendEventData(n);var t=this.current.inst.options;return i.utils.each(this.gestures,function(i){if(!this.stopped&&t[i.name]!==!1&&i.handler.call(i,n,this.current.inst)===!1)return this.stopDetect(),!1},this),this.current&&(this.current.lastEvent=n),n.eventType==i.EVENT_END&&!n.touches.length-1&&this.stopDetect(),n}},stopDetect:function(){this.previous=i.utils.extend({},this.current);this.current=null;this.stopped=!0},extendEventData:function(n){var t=this.current.startEvent;t&&(n.touches.length!=t.touches.length||n.touches===t.touches)&&(t.touches=[],i.utils.each(n.touches,function(n){t.touches.push(i.utils.extend({},n))}));var f=n.timeStamp-t.timeStamp,e=n.center.pageX-t.center.pageX,o=n.center.pageY-t.center.pageY,s=i.utils.getVelocity(f,e,o),r,u;return n.eventType==="end"?(r=this.current.lastEvent&&this.current.lastEvent.interimAngle,u=this.current.lastEvent&&this.current.lastEvent.interimDirection):(r=this.current.lastEvent&&i.utils.getAngle(this.current.lastEvent.center,n.center),u=this.current.lastEvent&&i.utils.getDirection(this.current.lastEvent.center,n.center)),i.utils.extend(n,{deltaTime:f,deltaX:e,deltaY:o,velocityX:s.x,velocityY:s.y,distance:i.utils.getDistance(t.center,n.center),angle:i.utils.getAngle(t.center,n.center),interimAngle:r,direction:i.utils.getDirection(t.center,n.center),interimDirection:u,scale:i.utils.getScale(t.touches,n.touches),rotation:i.utils.getRotation(t.touches,n.touches),startEvent:t}),n},register:function(n){var r=n.defaults||{};return r[n.name]===t&&(r[n.name]=!0),i.utils.extend(i.defaults,r,!0),n.index=n.index||1e3,this.gestures.push(n),this.gestures.sort(function(n,t){return n.index<t.index?-1:n.index>t.index?1:0}),this.gestures}};i.gestures.Drag={name:"drag",index:50,defaults:{drag_min_distance:10,correct_for_drag_min_distance:!0,drag_max_touches:1,drag_block_horizontal:!1,drag_block_vertical:!1,drag_lock_to_axis:!1,drag_lock_min_distance:25},triggered:!1,handler:function(n,t){var r,u;if(i.detection.current.name!=this.name&&this.triggered){t.trigger(this.name+"end",n);this.triggered=!1;return}if(!(t.options.drag_max_touches>0)||!(n.touches.length>t.options.drag_max_touches))switch(n.eventType){case i.EVENT_START:this.triggered=!1;break;case i.EVENT_MOVE:if(n.distance<t.options.drag_min_distance&&i.detection.current.name!=this.name)return;i.detection.current.name!=this.name&&(i.detection.current.name=this.name,t.options.correct_for_drag_min_distance&&n.distance>0&&(r=Math.abs(t.options.drag_min_distance/n.distance),i.detection.current.startEvent.center.pageX+=n.deltaX*r,i.detection.current.startEvent.center.pageY+=n.deltaY*r,n=i.detection.extendEventData(n)));(i.detection.current.lastEvent.drag_locked_to_axis||t.options.drag_lock_to_axis&&t.options.drag_lock_min_distance<=n.distance)&&(n.drag_locked_to_axis=!0);u=i.detection.current.lastEvent.direction;n.drag_locked_to_axis&&u!==n.direction&&(n.direction=i.utils.isVertical(u)?n.deltaY<0?i.DIRECTION_UP:i.DIRECTION_DOWN:n.deltaX<0?i.DIRECTION_LEFT:i.DIRECTION_RIGHT);this.triggered||(t.trigger(this.name+"start",n),this.triggered=!0);t.trigger(this.name,n);t.trigger(this.name+n.direction,n);(t.options.drag_block_vertical&&i.utils.isVertical(n.direction)||t.options.drag_block_horizontal&&!i.utils.isVertical(n.direction))&&n.preventDefault();break;case i.EVENT_END:this.triggered&&t.trigger(this.name+"end",n);this.triggered=!1}}};i.gestures.Hold={name:"hold",index:10,defaults:{hold_timeout:500,hold_threshold:1},timer:null,handler:function(n,t){switch(n.eventType){case i.EVENT_START:clearTimeout(this.timer);i.detection.current.name=this.name;this.timer=setTimeout(function(){i.detection.current.name=="hold"&&t.trigger("hold",n)},t.options.hold_timeout);break;case i.EVENT_MOVE:n.distance>t.options.hold_threshold&&clearTimeout(this.timer);break;case i.EVENT_END:clearTimeout(this.timer)}}};i.gestures.Release={name:"release",index:Infinity,handler:function(n,t){n.eventType==i.EVENT_END&&t.trigger(this.name,n)}};i.gestures.Swipe={name:"swipe",index:40,defaults:{swipe_min_touches:1,swipe_max_touches:1,swipe_velocity:.7},handler:function(n,t){if(n.eventType==i.EVENT_END){if(t.options.swipe_max_touches>0&&n.touches.length<t.options.swipe_min_touches&&n.touches.length>t.options.swipe_max_touches)return;(n.velocityX>t.options.swipe_velocity||n.velocityY>t.options.swipe_velocity)&&(t.trigger(this.name,n),t.trigger(this.name+n.direction,n))}}};i.gestures.Tap={name:"tap",index:100,defaults:{tap_max_touchtime:250,tap_max_distance:10,tap_always:!0,doubletap_distance:20,doubletap_interval:300},handler:function(n,t){if(n.eventType==i.EVENT_END&&n.srcEvent.type!="touchcancel"){var r=i.detection.previous,u=!1;if(n.deltaTime>t.options.tap_max_touchtime||n.distance>t.options.tap_max_distance)return;r&&r.name=="tap"&&n.timeStamp-r.lastEvent.timeStamp<t.options.doubletap_interval&&n.distance<t.options.doubletap_distance&&(t.trigger("doubletap",n),u=!0);(!u||t.options.tap_always)&&(i.detection.current.name="tap",t.trigger(i.detection.current.name,n))}}};i.gestures.Touch={name:"touch",index:-Infinity,defaults:{prevent_default:!1,prevent_mouseevents:!1},handler:function(n,t){if(t.options.prevent_mouseevents&&n.pointerType==i.POINTER_MOUSE){n.stopDetect();return}t.options.prevent_default&&n.preventDefault();n.eventType==i.EVENT_START&&t.trigger(this.name,n)}};i.gestures.Transform={name:"transform",index:45,defaults:{transform_min_scale:.01,transform_min_rotation:1,transform_always_block:!1},triggered:!1,handler:function(n,t){if(i.detection.current.name!=this.name&&this.triggered){t.trigger(this.name+"end",n);this.triggered=!1;return}if(!(n.touches.length<2)){t.options.transform_always_block&&n.preventDefault();switch(n.eventType){case i.EVENT_START:this.triggered=!1;break;case i.EVENT_MOVE:var r=Math.abs(1-n.scale),u=Math.abs(n.rotation);if(r<t.options.transform_min_scale&&u<t.options.transform_min_rotation)return;i.detection.current.name=this.name;this.triggered||(t.trigger(this.name+"start",n),this.triggered=!0);t.trigger(this.name,n);u>t.options.transform_min_rotation&&t.trigger("rotate",n);r>t.options.transform_min_scale&&(t.trigger("pinch",n),t.trigger("pinch"+(n.scale<1?"in":"out"),n));break;case i.EVENT_END:this.triggered&&t.trigger(this.name+"end",n);this.triggered=!1}}}};typeof define=="function"&&typeof define.amd=="object"&&define.amd?define(function(){return i}):typeof module=="object"&&typeof module.exports=="object"?module.exports=i:n.Hammer=i}(this),function(n,t){"use strict";function e(){if(!i.READY){i.event.determineEventTypes();i.utils.each(i.gestures,function(n){i.detection.register(n)});i.event.onTouch(i.DOCUMENT,i.EVENT_MOVE,i.detection.detect);i.event.onTouch(i.DOCUMENT,i.EVENT_END,i.detection.detect);i.READY=!0}}var i=function(n,t){return new i.Instance(n,t||{})};i.defaults={stop_browser_behavior:{userSelect:"none",touchAction:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};i.HAS_POINTEREVENTS=n.navigator.pointerEnabled||n.navigator.msPointerEnabled;i.HAS_TOUCHEVENTS="ontouchstart"in n;i.MOBILE_REGEX=/mobile|tablet|ip(ad|hone|od)|android|silk/i;i.NO_MOUSEEVENTS=i.HAS_TOUCHEVENTS&&n.navigator.userAgent.match(i.MOBILE_REGEX);i.EVENT_TYPES={};i.DIRECTION_DOWN="down";i.DIRECTION_LEFT="left";i.DIRECTION_UP="up";i.DIRECTION_RIGHT="right";i.POINTER_MOUSE="mouse";i.POINTER_TOUCH="touch";i.POINTER_PEN="pen";i.EVENT_START="start";i.EVENT_MOVE="move";i.EVENT_END="end";i.DOCUMENT=n.document;i.plugins=i.plugins||{};i.gestures=i.gestures||{};i.READY=!1;i.utils={extend:function(n,i,r){for(var u in i)n[u]!==t&&r||(n[u]=i[u]);return n},each:function(n,i,r){var u,f;if("forEach"in n)n.forEach(i,r);else if(n.length!==t){for(u=0,f=n.length;u<f;u++)if(i.call(r,n[u],u,n)===!1)return}else for(u in n)if(n.hasOwnProperty(u)&&i.call(r,n[u],u,n)===!1)return},hasParent:function(n,t){while(n){if(n==t)return!0;n=n.parentNode}return!1},getCenter:function(n){var t=[],r=[];return i.utils.each(n,function(n){t.push(typeof n.clientX!="undefined"?n.clientX:n.pageX);r.push(typeof n.clientY!="undefined"?n.clientY:n.pageY)}),{pageX:(Math.min.apply(Math,t)+Math.max.apply(Math,t))/2,pageY:(Math.min.apply(Math,r)+Math.max.apply(Math,r))/2}},getVelocity:function(n,t,i){return{x:Math.abs(t/n)||0,y:Math.abs(i/n)||0}},getAngle:function(n,t){var i=t.pageY-n.pageY,r=t.pageX-n.pageX;return Math.atan2(i,r)*180/Math.PI},getDirection:function(n,t){var r=Math.abs(n.pageX-t.pageX),u=Math.abs(n.pageY-t.pageY);return r>=u?n.pageX-t.pageX>0?i.DIRECTION_LEFT:i.DIRECTION_RIGHT:n.pageY-t.pageY>0?i.DIRECTION_UP:i.DIRECTION_DOWN},getDistance:function(n,t){var i=t.pageX-n.pageX,r=t.pageY-n.pageY;return Math.sqrt(i*i+r*r)},getScale:function(n,t){return n.length>=2&&t.length>=2?this.getDistance(t[0],t[1])/this.getDistance(n[0],n[1]):1},getRotation:function(n,t){return n.length>=2&&t.length>=2?this.getAngle(t[1],t[0])-this.getAngle(n[1],n[0]):0},isVertical:function(n){return n==i.DIRECTION_UP||n==i.DIRECTION_DOWN},stopDefaultBrowserBehavior:function(n,t){t&&n&&n.style&&(i.utils.each(["webkit","khtml","moz","Moz","ms","o",""],function(r){i.utils.each(t,function(t){r&&(t=r+t.substring(0,1).toUpperCase()+t.substring(1));t in n.style&&(n.style[t]=t)})}),t.userSelect=="none"&&(n.onselectstart=function(){return!1}),t.userDrag=="none"&&(n.ondragstart=function(){return!1}))}};i.Instance=function(n,t){var r=this;e();this.element=n;this.enabled=!0;this.options=i.utils.extend(i.utils.extend({},i.defaults),t||{});this.options.stop_browser_behavior&&i.utils.stopDefaultBrowserBehavior(this.element,this.options.stop_browser_behavior);i.event.onTouch(n,i.EVENT_START,function(n){r.enabled&&i.detection.startDetect(r,n)});return this};i.Instance.prototype={on:function(n,t){var r=n.split(" ");return i.utils.each(r,function(n){this.element.addEventListener(n,t,!1)},this),this},off:function(n,t){var r=n.split(" ");return i.utils.each(r,function(n){this.element.removeEventListener(n,t,!1)},this),this},trigger:function(n,t){var r,u;return t||(t={}),r=i.DOCUMENT.createEvent("Event"),r.initEvent(n,!0,!0),r.gesture=t,u=this.element,i.utils.hasParent(t.target,u)&&(u=t.target),u.dispatchEvent(r),this},enable:function(n){return this.enabled=n,this}};var r=null,u=!1,f=!1;i.event={bindDom:function(n,t,r){var u=t.split(" ");i.utils.each(u,function(t){n.addEventListener(t,r,!1)})},onTouch:function(n,t,e){var o=this;this.bindDom(n,i.EVENT_TYPES[t],function(s){var c=s.type.toLowerCase(),h;c.match(/mouse/)&&f||(c.match(/touch/)||c.match(/pointerdown/)||c.match(/mouse/)&&s.which===1?u=!0:c.match(/mouse/)&&!s.which&&(u=!1),c.match(/touch|pointer/)&&(f=!0),h=0,u&&(i.HAS_POINTEREVENTS&&t!=i.EVENT_END?h=i.PointerEvent.updatePointer(t,s):c.match(/touch/)?h=s.touches.length:f||(h=c.match(/up/)?0:1),h>0&&t==i.EVENT_END?t=i.EVENT_MOVE:h||(t=i.EVENT_END),(h||r===null)&&(r=s),e.call(i.detection,o.collectEventData(n,t,o.getTouchList(r,t),s)),i.HAS_POINTEREVENTS&&t==i.EVENT_END&&(h=i.PointerEvent.updatePointer(t,s))),h||(r=null,u=!1,f=!1,i.PointerEvent.reset()))})},determineEventTypes:function(){var n;n=i.HAS_POINTEREVENTS?i.PointerEvent.getEvents():i.NO_MOUSEEVENTS?["touchstart","touchmove","touchend touchcancel"]:["touchstart mousedown","touchmove mousemove","touchend touchcancel mouseup"];i.EVENT_TYPES[i.EVENT_START]=n[0];i.EVENT_TYPES[i.EVENT_MOVE]=n[1];i.EVENT_TYPES[i.EVENT_END]=n[2]},getTouchList:function(n){return i.HAS_POINTEREVENTS?i.PointerEvent.getTouchList():n.touches?n.touches:(n.identifier=1,[n])},collectEventData:function(n,t,r,u){var f=i.POINTER_TOUCH;return(u.type.match(/mouse/)||i.PointerEvent.matchType(i.POINTER_MOUSE,u))&&(f=i.POINTER_MOUSE),{center:i.utils.getCenter(r),timeStamp:(new Date).getTime(),target:u.target,touches:r,eventType:t,pointerType:f,srcEvent:u,preventDefault:function(){this.srcEvent.preventManipulation&&this.srcEvent.preventManipulation();this.srcEvent.preventDefault&&this.srcEvent.preventDefault()},stopPropagation:function(){this.srcEvent.stopPropagation()},stopDetect:function(){return i.detection.stopDetect()}}}};i.PointerEvent={pointers:{},getTouchList:function(){var t=this,n=[];return i.utils.each(t.pointers,function(t){n.push(t)}),n},updatePointer:function(n,t){return n==i.EVENT_END?this.pointers={}:(t.identifier=t.pointerId,this.pointers[t.pointerId]=t),Object.keys(this.pointers).length},matchType:function(n,t){if(!t.pointerType)return!1;var r=t.pointerType,u={};return u[i.POINTER_MOUSE]=r===t.MSPOINTER_TYPE_MOUSE||r===i.POINTER_MOUSE,u[i.POINTER_TOUCH]=r===t.MSPOINTER_TYPE_TOUCH||r===i.POINTER_TOUCH,u[i.POINTER_PEN]=r===t.MSPOINTER_TYPE_PEN||r===i.POINTER_PEN,u[n]},getEvents:function(){return["pointerdown MSPointerDown","pointermove MSPointerMove","pointerup pointercancel MSPointerUp MSPointerCancel"]},reset:function(){this.pointers={}}};i.detection={gestures:[],current:null,previous:null,stopped:!1,startDetect:function(n,t){this.current||(this.stopped=!1,this.current={inst:n,startEvent:i.utils.extend({},t),lastEvent:!1,name:""},this.detect(t))},detect:function(n){if(this.current&&!this.stopped){n=this.extendEventData(n);var t=this.current.inst.options;return i.utils.each(this.gestures,function(i){if(!this.stopped&&t[i.name]!==!1&&i.handler.call(i,n,this.current.inst)===!1)return this.stopDetect(),!1},this),this.current&&(this.current.lastEvent=n),n.eventType==i.EVENT_END&&!n.touches.length-1&&this.stopDetect(),n}},stopDetect:function(){this.previous=i.utils.extend({},this.current);this.current=null;this.stopped=!0},extendEventData:function(n){var t=this.current.startEvent;t&&(n.touches.length!=t.touches.length||n.touches===t.touches)&&(t.touches=[],i.utils.each(n.touches,function(n){t.touches.push(i.utils.extend({},n))}));var f=n.timeStamp-t.timeStamp,e=n.center.pageX-t.center.pageX,o=n.center.pageY-t.center.pageY,s=i.utils.getVelocity(f,e,o),r,u;return n.eventType==="end"?(r=this.current.lastEvent&&this.current.lastEvent.interimAngle,u=this.current.lastEvent&&this.current.lastEvent.interimDirection):(r=this.current.lastEvent&&i.utils.getAngle(this.current.lastEvent.center,n.center),u=this.current.lastEvent&&i.utils.getDirection(this.current.lastEvent.center,n.center)),i.utils.extend(n,{deltaTime:f,deltaX:e,deltaY:o,velocityX:s.x,velocityY:s.y,distance:i.utils.getDistance(t.center,n.center),angle:i.utils.getAngle(t.center,n.center),interimAngle:r,direction:i.utils.getDirection(t.center,n.center),interimDirection:u,scale:i.utils.getScale(t.touches,n.touches),rotation:i.utils.getRotation(t.touches,n.touches),startEvent:t}),n},register:function(n){var r=n.defaults||{};return r[n.name]===t&&(r[n.name]=!0),i.utils.extend(i.defaults,r,!0),n.index=n.index||1e3,this.gestures.push(n),this.gestures.sort(function(n,t){return n.index<t.index?-1:n.index>t.index?1:0}),this.gestures}};i.gestures.Drag={name:"drag",index:50,defaults:{drag_min_distance:10,correct_for_drag_min_distance:!0,drag_max_touches:1,drag_block_horizontal:!1,drag_block_vertical:!1,drag_lock_to_axis:!1,drag_lock_min_distance:25},triggered:!1,handler:function(n,t){var r,u;if(i.detection.current.name!=this.name&&this.triggered){t.trigger(this.name+"end",n);this.triggered=!1;return}if(!(t.options.drag_max_touches>0)||!(n.touches.length>t.options.drag_max_touches))switch(n.eventType){case i.EVENT_START:this.triggered=!1;break;case i.EVENT_MOVE:if(n.distance<t.options.drag_min_distance&&i.detection.current.name!=this.name)return;i.detection.current.name!=this.name&&(i.detection.current.name=this.name,t.options.correct_for_drag_min_distance&&n.distance>0&&(r=Math.abs(t.options.drag_min_distance/n.distance),i.detection.current.startEvent.center.pageX+=n.deltaX*r,i.detection.current.startEvent.center.pageY+=n.deltaY*r,n=i.detection.extendEventData(n)));(i.detection.current.lastEvent.drag_locked_to_axis||t.options.drag_lock_to_axis&&t.options.drag_lock_min_distance<=n.distance)&&(n.drag_locked_to_axis=!0);u=i.detection.current.lastEvent.direction;n.drag_locked_to_axis&&u!==n.direction&&(n.direction=i.utils.isVertical(u)?n.deltaY<0?i.DIRECTION_UP:i.DIRECTION_DOWN:n.deltaX<0?i.DIRECTION_LEFT:i.DIRECTION_RIGHT);this.triggered||(t.trigger(this.name+"start",n),this.triggered=!0);t.trigger(this.name,n);t.trigger(this.name+n.direction,n);(t.options.drag_block_vertical&&i.utils.isVertical(n.direction)||t.options.drag_block_horizontal&&!i.utils.isVertical(n.direction))&&n.preventDefault();break;case i.EVENT_END:this.triggered&&t.trigger(this.name+"end",n);this.triggered=!1}}};i.gestures.Hold={name:"hold",index:10,defaults:{hold_timeout:500,hold_threshold:1},timer:null,handler:function(n,t){switch(n.eventType){case i.EVENT_START:clearTimeout(this.timer);i.detection.current.name=this.name;this.timer=setTimeout(function(){i.detection.current.name=="hold"&&t.trigger("hold",n)},t.options.hold_timeout);break;case i.EVENT_MOVE:n.distance>t.options.hold_threshold&&clearTimeout(this.timer);break;case i.EVENT_END:clearTimeout(this.timer)}}};i.gestures.Release={name:"release",index:Infinity,handler:function(n,t){n.eventType==i.EVENT_END&&t.trigger(this.name,n)}};i.gestures.Swipe={name:"swipe",index:40,defaults:{swipe_min_touches:1,swipe_max_touches:1,swipe_velocity:.7},handler:function(n,t){if(n.eventType==i.EVENT_END){if(t.options.swipe_max_touches>0&&n.touches.length<t.options.swipe_min_touches&&n.touches.length>t.options.swipe_max_touches)return;(n.velocityX>t.options.swipe_velocity||n.velocityY>t.options.swipe_velocity)&&(t.trigger(this.name,n),t.trigger(this.name+n.direction,n))}}};i.gestures.Tap={name:"tap",index:100,defaults:{tap_max_touchtime:250,tap_max_distance:10,tap_always:!0,doubletap_distance:20,doubletap_interval:300},handler:function(n,t){if(n.eventType==i.EVENT_END&&n.srcEvent.type!="touchcancel"){var r=i.detection.previous,u=!1;if(n.deltaTime>t.options.tap_max_touchtime||n.distance>t.options.tap_max_distance)return;r&&r.name=="tap"&&n.timeStamp-r.lastEvent.timeStamp<t.options.doubletap_interval&&n.distance<t.options.doubletap_distance&&(t.trigger("doubletap",n),u=!0);(!u||t.options.tap_always)&&(i.detection.current.name="tap",t.trigger(i.detection.current.name,n))}}};i.gestures.Touch={name:"touch",index:-Infinity,defaults:{prevent_default:!1,prevent_mouseevents:!1},handler:function(n,t){if(t.options.prevent_mouseevents&&n.pointerType==i.POINTER_MOUSE){n.stopDetect();return}t.options.prevent_default&&n.preventDefault();n.eventType==i.EVENT_START&&t.trigger(this.name,n)}};i.gestures.Transform={name:"transform",index:45,defaults:{transform_min_scale:.01,transform_min_rotation:1,transform_always_block:!1},triggered:!1,handler:function(n,t){if(i.detection.current.name!=this.name&&this.triggered){t.trigger(this.name+"end",n);this.triggered=!1;return}if(!(n.touches.length<2)){t.options.transform_always_block&&n.preventDefault();switch(n.eventType){case i.EVENT_START:this.triggered=!1;break;case i.EVENT_MOVE:var r=Math.abs(1-n.scale),u=Math.abs(n.rotation);if(r<t.options.transform_min_scale&&u<t.options.transform_min_rotation)return;i.detection.current.name=this.name;this.triggered||(t.trigger(this.name+"start",n),this.triggered=!0);t.trigger(this.name,n);u>t.options.transform_min_rotation&&t.trigger("rotate",n);r>t.options.transform_min_scale&&(t.trigger("pinch",n),t.trigger("pinch"+(n.scale<1?"in":"out"),n));break;case i.EVENT_END:this.triggered&&t.trigger(this.name+"end",n);this.triggered=!1}}}};typeof define=="function"&&typeof define.amd=="object"&&define.amd?define(function(){return i}):typeof module=="object"&&typeof module.exports=="object"?module.exports=i:n.Hammer=i}(this),function(n,t){"use strict";function i(n,i){n.event.bindDom=function(n,r,u){i(n).on(r,function(n){var i=n.originalEvent||n;i.pageX===t&&(i.pageX=n.pageX,i.pageY=n.pageY);i.target||(i.target=n.target);i.which===t&&(i.which=i.button);i.preventDefault||(i.preventDefault=n.preventDefault);i.stopPropagation||(i.stopPropagation=n.stopPropagation);u.call(this,i)})};n.Instance.prototype.on=function(n,t){return i(this.element).on(n,t)};n.Instance.prototype.off=function(n,t){return i(this.element).off(n,t)};n.Instance.prototype.trigger=function(n,t){var r=i(this.element);return r.has(t.target).length&&(r=i(t.target)),r.trigger({type:n,gesture:t})};i.fn.hammer=function(t){return this.each(function(){var u=i(this),r=u.data("hammer");r?r&&t&&n.utils.extend(r.options,t):u.data("hammer",new n(this,t||{}))})}}typeof define=="function"&&typeof define.amd=="object"&&define.amd?define(["hammer","jquery"],i):i(n.Hammer,n.jQuery||n.Zepto)}(this),function(n){function kt(n,t){return function(i){return u(n.call(this,i),t)}}function ar(n,t){return function(i){return this.lang().ordinal(n.call(this,i),t)}}function dt(){}function ut(n){ui(n);c(this,n)}function ft(n){var t=ni(n),i=t.year||0,r=t.month||0,u=t.week||0,f=t.day||0,e=t.hour||0,o=t.minute||0,s=t.second||0,h=t.millisecond||0;this._input=n;this._milliseconds=+h+s*1e3+o*6e4+e*36e5;this._days=+f+u*7;this._months=+r+i*12;this._data={};this._bubble()}function c(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return t.hasOwnProperty("toString")&&(n.toString=t.toString),t.hasOwnProperty("valueOf")&&(n.valueOf=t.valueOf),n}function y(n){return n<0?Math.ceil(n):Math.floor(n)}function u(n,t){for(var i=n+"";i.length<t;)i="0"+i;return i}function et(n,i,r,u){var o=i._milliseconds,f=i._days,e=i._months,s,h;o&&n._d.setTime(+n._d+o*r);(f||e)&&(s=n.minute(),h=n.hour());f&&n.date(n.date()+f*r);e&&n.month(n.month()+e*r);o&&!u&&t.updateOffset(n);(f||e)&&(n.minute(s),n.hour(h))}function ot(n){return Object.prototype.toString.call(n)==="[object Array]"}function vr(n){return Object.prototype.toString.call(n)==="[object Date]"||n instanceof Date}function gt(n,t,r){for(var e=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),f=0,u=0;u<e;u++)(r&&n[u]!==t[u]||!r&&i(n[u])!==i(t[u]))&&f++;return f+o}function l(n){if(n){var t=n.toLowerCase().replace(/(.)s$/,"$1");n=cr[n]||lr[t]||t}return n}function ni(n){var r={},i,t;for(t in n)n.hasOwnProperty(t)&&(i=l(t),i&&(r[i]=n[t]));return r}function yr(i){var r,u;if(i.indexOf("week")===0)r=7,u="day";else if(i.indexOf("month")===0)r=12,u="month";else return;t[i]=function(f,e){var o,s,c=t.fn._lang[i],h=[];if(typeof f=="number"&&(e=f,f=n),s=function(n){var i=t().utc().set(u,n);return c.call(t.fn._lang,i,f||"")},e!=null)return s(e);for(o=0;o<r;o++)h.push(s(o));return h}}function i(n){var t=+n,i=0;return t!==0&&isFinite(t)&&(i=t>=0?Math.floor(t):Math.ceil(t)),i}function ti(n,t){return new Date(Date.UTC(n,t+1,0)).getUTCDate()}function ii(n){return ri(n)?366:365}function ri(n){return n%4==0&&n%100!=0||n%400==0}function ui(n){var t;n._a&&n._pf.overflow===-2&&(t=n._a[a]<0||n._a[a]>11?a:n._a[s]<1||n._a[s]>ti(n._a[f],n._a[a])?s:n._a[e]<0||n._a[e]>23?e:n._a[w]<0||n._a[w]>59?w:n._a[b]<0||n._a[b]>59?b:n._a[k]<0||n._a[k]>999?k:-1,n._pf._overflowDayOfYear&&(t<f||t>s)&&(t=s),n._pf.overflow=t)}function fi(n){n._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function ei(n){return n._isValid==null&&(n._isValid=!isNaN(n._d.getTime())&&n._pf.overflow<0&&!n._pf.empty&&!n._pf.invalidMonth&&!n._pf.nullInput&&!n._pf.invalidFormat&&!n._pf.userInvalidated,n._strict&&(n._isValid=n._isValid&&n._pf.charsLeftOver===0&&n._pf.unusedTokens.length===0)),n._isValid}function st(n){return n?n.toLowerCase().replace("_","-"):n}function pr(n,t){return t.abbr=n,v[n]||(v[n]=new dt),v[n].set(t),v[n]}function wr(n){delete v[n]}function o(n){var f=0,r,u,i,e,o=function(n){if(!v[n]&&at)try{require("./lang/"+n)}catch(t){}return v[n]};if(!n)return t.fn._lang;if(!ot(n)){if(u=o(n),u)return u;n=[n]}while(f<n.length){for(e=st(n[f]).split("-"),r=e.length,i=st(n[f+1]),i=i?i.split("-"):null;r>0;){if(u=o(e.slice(0,r).join("-")),u)return u;if(i&&i.length>=r&&gt(e,i,!0)>=r-1)break;r--}f++}return t.fn._lang}function br(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function kr(n){for(var i=n.match(vt),t=0,r=i.length;t<r;t++)i[t]=h[i[t]]?h[i[t]]:br(i[t]);return function(u){var f="";for(t=0;t<r;t++)f+=i[t]instanceof Function?i[t].call(u,n):i[t];return f}}function oi(n,t){return n.isValid()?(t=si(t,n.lang()),rt[t]||(rt[t]=kr(t)),rt[t](n)):n.lang().invalidDate()}function si(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(d.lastIndex=0;i>=0&&d.test(n);)n=n.replace(d,r),d.lastIndex=0,i-=1;return n}function dr(n,t){switch(n){case"DDDD":return nr;case"YYYY":case"GGGG":case"gggg":return tr;case"YYYYY":case"GGGGG":case"ggggg":return ir;case"S":case"SS":case"SSS":case"DDD":return gi;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return ur;case"a":case"A":return o(t._l)._meridiemParse;case"X":return er;case"Z":case"ZZ":return nt;case"T":return fr;case"SSSS":return rr;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"ww":case"W":case"WW":case"e":case"E":return di;default:return new RegExp(ru(iu(n.replace("\\","")),"i"))}}function hi(n){var u=(nt.exec(n)||[])[0],t=(u+"").match(hr)||["-",0,0],r=+(t[1]*60)+i(t[2]);return t[0]==="+"?-r:r}function gr(n,t,r){var h,u=r._a;switch(n){case"M":case"MM":t!=null&&(u[a]=i(t)-1);break;case"MMM":case"MMMM":h=o(r._l).monthsParse(t);h!=null?u[a]=h:r._pf.invalidMonth=t;break;case"D":case"DD":t!=null&&(u[s]=i(t));break;case"DDD":case"DDDD":t!=null&&(r._dayOfYear=i(t));break;case"YY":u[f]=i(t)+(i(t)>68?1900:2e3);break;case"YYYY":case"YYYYY":u[f]=i(t);break;case"a":case"A":r._isPm=o(r._l).isPM(t);break;case"H":case"HH":case"h":case"hh":u[e]=i(t);break;case"m":case"mm":u[w]=i(t);break;case"s":case"ss":u[b]=i(t);break;case"S":case"SS":case"SSS":case"SSSS":u[k]=i(("0."+t)*1e3);break;case"X":r._d=new Date(parseFloat(t)*1e3);break;case"Z":case"ZZ":r._useUTC=!0;r._tzm=hi(t);break;case"w":case"ww":case"W":case"WW":case"d":case"dd":case"ddd":case"dddd":case"e":case"E":n=n.substr(0,1);case"gg":case"gggg":case"GG":case"GGGG":case"GGGGG":n=n.substr(0,2);t&&(r._w=r._w||{},r._w[n]=t)}}function ht(n){var r,v,c=[],y,p,b,u,l,h,k,d;if(!n._d){for(y=tu(n),n._w&&n._a[s]==null&&n._a[a]==null&&(b=function(i){return i?i.length<3?parseInt(i,10)>68?"19"+i:"20"+i:i:n._a[f]==null?t().weekYear():n._a[f]},u=n._w,u.GG!=null||u.W!=null||u.E!=null?l=ai(b(u.GG),u.W||1,u.E,4,1):(h=o(n._l),k=u.d!=null?li(u.d,h):u.e!=null?parseInt(u.e,10)+h._week.dow:0,d=parseInt(u.w,10)||1,u.d!=null&&k<h._week.dow&&d++,l=ai(b(u.gg),d,k,h._week.doy,h._week.dow)),n._a[f]=l.year,n._dayOfYear=l.dayOfYear),n._dayOfYear&&(p=n._a[f]==null?y[f]:n._a[f],n._dayOfYear>ii(p)&&(n._pf._overflowDayOfYear=!0),v=ci(p,0,n._dayOfYear),n._a[a]=v.getUTCMonth(),n._a[s]=v.getUTCDate()),r=0;r<3&&n._a[r]==null;++r)n._a[r]=c[r]=y[r];for(;r<7;r++)n._a[r]=c[r]=n._a[r]==null?r===2?1:0:n._a[r];c[e]+=i((n._tzm||0)/60);c[w]+=i((n._tzm||0)%60);n._d=(n._useUTC?ci:ou).apply(null,c)}}function nu(n){var t;n._d||(t=ni(n._i),n._a=[t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond],ht(n))}function tu(n){var t=new Date;return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function ct(n){n._a=[];n._pf.empty=!0;for(var l=o(n._l),t=""+n._i,i,r,s,a=t.length,c=0,f=si(n._f,l).match(vt)||[],u=0;u<f.length;u++)r=f[u],i=(dr(r,n).exec(t)||[])[0],i&&(s=t.substr(0,t.indexOf(i)),s.length>0&&n._pf.unusedInput.push(s),t=t.slice(t.indexOf(i)+i.length),c+=i.length),h[r]?(i?n._pf.empty=!1:n._pf.unusedTokens.push(r),gr(r,i,n)):n._strict&&!i&&n._pf.unusedTokens.push(r);n._pf.charsLeftOver=a-c;t.length>0&&n._pf.unusedInput.push(t);n._isPm&&n._a[e]<12&&(n._a[e]+=12);n._isPm===!1&&n._a[e]===12&&(n._a[e]=0);ht(n);ui(n)}function iu(n){return n.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u})}function ru(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function uu(n){var t,f,u,r,i;if(n._f.length===0){n._pf.invalidFormat=!0;n._d=new Date(NaN);return}for(r=0;r<n._f.length;r++)(i=0,t=c({},n),fi(t),t._f=n._f[r],ct(t),ei(t))&&(i+=t._pf.charsLeftOver,i+=t._pf.unusedTokens.length*10,t._pf.score=i,(u==null||i<u)&&(u=i,f=t));c(n,f||t)}function fu(n){var t,i=n._i,r=or.exec(i);if(r){for(n._pf.iso=!0,t=4;t>0;t--)if(r[t]){n._f=sr[t-1]+(r[6]||" ");break}for(t=0;t<4;t++)if(yt[t][1].exec(i)){n._f+=yt[t][0];break}nt.exec(i)&&(n._f+="Z");ct(n)}else n._d=new Date(i)}function eu(t){var i=t._i,r=wi.exec(i);i===n?t._d=new Date:r?t._d=new Date(+r[1]):typeof i=="string"?fu(t):ot(i)?(t._a=i.slice(0),ht(t)):vr(i)?t._d=new Date(+i):typeof i=="object"?nu(t):t._d=new Date(i)}function ou(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return n<1970&&o.setFullYear(n),o}function ci(n){var t=new Date(Date.UTC.apply(null,arguments));return n<1970&&t.setUTCFullYear(n),t}function li(n,t){if(typeof n=="string")if(isNaN(n)){if(n=t.weekdaysParse(n),typeof n!="number")return null}else n=parseInt(n,10);return n}function su(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function hu(n,t,i){var o=p(Math.abs(n)/1e3),u=p(o/60),f=p(u/60),r=p(f/24),s=p(r/365),e=o<45&&["s",o]||u===1&&["m"]||u<45&&["mm",u]||f===1&&["h"]||f<22&&["hh",f]||r===1&&["d"]||r<=25&&["dd",r]||r<=45&&["M"]||r<345&&["MM",p(r/30)]||s===1&&["y"]||["yy",s];return e[2]=t,e[3]=n>0,e[4]=i,su.apply({},e)}function g(n,i,r){var e=r-i,u=r-n.day(),f;return u>e&&(u-=7),u<e-7&&(u+=7),f=t(n).add("d",u),{week:Math.ceil(f.dayOfYear()/7),year:f.year()}}function ai(n,t,i,r,u){var e=new Date(Date.UTC(n,0)).getUTCDay(),o,f;return i=i!=null?i:u,o=u-e+(e>r?7:0),f=7*(t-1)+(i-u)+o+1,{year:f>0?n:n-1,dayOfYear:f>0?f:ii(n-1)+f}}function vi(n){var i=n._i,r=n._f;return(typeof n._pf=="undefined"&&fi(n),i===null)?t.invalid({nullInput:!0}):(typeof i=="string"&&(n._i=i=o().preparse(i)),t.isMoment(i)?(n=c({},i),n._d=new Date(+i._d)):r?ot(r)?uu(n):ct(n):eu(n),new ut(n))}function yi(n,i){t.fn[n]=t.fn[n+"s"]=function(n){var r=this._isUTC?"UTC":"";return n!=null?(this._d["set"+r+i](n),t.updateOffset(this),this):this._d["get"+r+i]()}}function cu(n){t.duration.fn[n]=function(){return this._data[n]}}function pi(n,i){t.duration.fn["as"+n]=function(){return+this/i}}function lt(n){var i=!1,r=t;typeof ender=="undefined"&&(this.moment=n?function(){return!i&&console&&console.warn&&(i=!0,console.warn("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.")),r.apply(null,arguments)}:t)}for(var t,p=Math.round,r,f=0,a=1,s=2,e=3,w=4,b=5,k=6,v={},at=typeof module!="undefined"&&module.exports,wi=/^\/?Date\((\-?\d+)/i,bi=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,ki=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,vt=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g,d=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,di=/\d\d?/,gi=/\d{1,3}/,nr=/\d{3}/,tr=/\d{1,4}/,ir=/[+\-]?\d{1,6}/,rr=/\d+/,ur=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,nt=/Z|[\+\-]\d\d:?\d\d/i,fr=/T/i,er=/[\+\-]?\d+(\.\d{1,3})?/,or=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d:?\d\d|Z)?)?$/,sr=["YYYY-MM-DD","GGGG-[W]WW","GGGG-[W]WW-E","YYYY-DDD"],yt=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d{1,3}/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],hr=/([\+\-]|\d\d)/gi,tt="Date|Hours|Minutes|Seconds|Milliseconds".split("|"),it={Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6},cr={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},lr={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},rt={},pt="DDD w W M D d".split(" "),wt="M D H h m s w W".split(" "),h={M:function(){return this.month()+1},MMM:function(n){return this.lang().monthsShort(this,n)},MMMM:function(n){return this.lang().months(this,n)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(n){return this.lang().weekdaysMin(this,n)},ddd:function(n){return this.lang().weekdaysShort(this,n)},dddd:function(n){return this.lang().weekdays(this,n)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return u(this.year()%100,2)},YYYY:function(){return u(this.year(),4)},YYYYY:function(){return u(this.year(),5)},gg:function(){return u(this.weekYear()%100,2)},gggg:function(){return this.weekYear()},ggggg:function(){return u(this.weekYear(),5)},GG:function(){return u(this.isoWeekYear()%100,2)},GGGG:function(){return this.isoWeekYear()},GGGGG:function(){return u(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.lang().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.lang().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return i(this.milliseconds()/100)},SS:function(){return u(i(this.milliseconds()/10),2)},SSS:function(){return u(this.milliseconds(),3)},SSSS:function(){return u(this.milliseconds(),3)},Z:function(){var n=-this.zone(),t="+";return n<0&&(n=-n,t="-"),t+u(i(n/60),2)+":"+u(i(n)%60,2)},ZZ:function(){var n=-this.zone(),t="+";return n<0&&(n=-n,t="-"),t+u(i(10*n/6),4)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()}},bt=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];pt.length;)r=pt.pop(),h[r+"o"]=ar(h[r],r);while(wt.length)r=wt.pop(),h[r+r]=kt(h[r],2);for(h.DDDD=kt(h.DDD,3),c(dt.prototype,{set:function(n){var t,i;for(i in n)t=n[i],typeof t=="function"?this[i]=t:this["_"+i]=t},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(n){return this._months[n.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(n){return this._monthsShort[n.month()]},monthsParse:function(n){var i,r,u;for(this._monthsParse||(this._monthsParse=[]),i=0;i<12;i++)if(this._monthsParse[i]||(r=t.utc([2e3,i]),u="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(u.replace(".",""),"i")),this._monthsParse[i].test(n))return i},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(n){return this._weekdays[n.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(n){return this._weekdaysShort[n.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(n){return this._weekdaysMin[n.day()]},weekdaysParse:function(n){var i,r,u;for(this._weekdaysParse||(this._weekdaysParse=[]),i=0;i<7;i++)if(this._weekdaysParse[i]||(r=t([2e3,1]).day(i),u="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(u.replace(".",""),"i")),this._weekdaysParse[i].test(n))return i},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D YYYY",LLL:"MMMM D YYYY LT",LLLL:"dddd, MMMM D YYYY LT"},longDateFormat:function(n){var t=this._longDateFormat[n];return!t&&this._longDateFormat[n.toUpperCase()]&&(t=this._longDateFormat[n.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n]=t),t},isPM:function(n){return(n+"").toLowerCase().charAt(0)==="p"},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(n,t){var i=this._calendar[n];return typeof i=="function"?i.apply(t):i},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(n,t,i,r){var u=this._relativeTime[i];return typeof u=="function"?u(n,t,i,r):u.replace(/%d/i,n)},pastFuture:function(n,t){var i=this._relativeTime[n>0?"future":"past"];return typeof i=="function"?i(t):i.replace(/%s/i,t)},ordinal:function(n){return this._ordinal.replace("%d",n)},_ordinal:"%d",preparse:function(n){return n},postformat:function(n){return n},week:function(n){return g(n,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),t=function(t,i,r,u){return typeof r=="boolean"&&(u=r,r=n),vi({_i:t,_f:i,_l:r,_strict:u,_isUTC:!1})},t.utc=function(t,i,r,u){return typeof r=="boolean"&&(u=r,r=n),vi({_useUTC:!0,_isUTC:!0,_l:r,_i:t,_f:i,_strict:u}).utc()},t.unix=function(n){return t(n*1e3)},t.duration=function(n,r){var l=t.isDuration(n),a=typeof n=="number",h=l?n._input:a?{}:n,u=null,f,c,o;return a?r?h[r]=n:h.milliseconds=n:(u=bi.exec(n))?(f=u[1]==="-"?-1:1,h={y:0,d:i(u[s])*f,h:i(u[e])*f,m:i(u[w])*f,s:i(u[b])*f,ms:i(u[k])*f}):!(u=ki.exec(n))||(f=u[1]==="-"?-1:1,o=function(n){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*f},h={y:o(u[2]),M:o(u[3]),d:o(u[4]),h:o(u[5]),m:o(u[6]),s:o(u[7]),w:o(u[8])}),c=new ft(h),l&&n.hasOwnProperty("_lang")&&(c._lang=n._lang),c},t.version="2.4.0",t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.updateOffset=function(){},t.lang=function(n,i){var r;return n?(i?pr(st(n),i):i===null?(wr(n),n="en"):v[n]||o(n),r=t.duration.fn._lang=t.fn._lang=o(n),r._abbr):t.fn._lang._abbr},t.langData=function(n){return n&&n._lang&&n._lang._abbr&&(n=n._lang._abbr),o(n)},t.isMoment=function(n){return n instanceof ut},t.isDuration=function(n){return n instanceof ft},r=bt.length-1;r>=0;--r)yr(bt[r]);for(t.normalizeUnits=function(n){return l(n)},t.invalid=function(n){var i=t.utc(NaN);return n!=null?c(i._pf,n):i._pf.userInvalidated=!0,i},t.parseZone=function(n){return t(n).parseZone()},c(t.fn=ut.prototype,{clone:function(){return t(this)},valueOf:function(){return+this._d+(this._offset||0)*6e4},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().lang("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){return oi(t(this).utc(),"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var n=this;return[n.year(),n.month(),n.date(),n.hours(),n.minutes(),n.seconds(),n.milliseconds()]},isValid:function(){return ei(this)},isDSTShifted:function(){return this._a?this.isValid()&&gt(this._a,(this._isUTC?t.utc(this._a):t(this._a)).toArray())>0:!1},parsingFlags:function(){return c({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(){return this.zone(0)},local:function(){return this.zone(0),this._isUTC=!1,this},format:function(n){var i=oi(this,n||t.defaultFormat);return this.lang().postformat(i)},add:function(n,i){var r;return r=typeof n=="string"?t.duration(+i,n):t.duration(n,i),et(this,r,1),this},subtract:function(n,i){var r;return r=typeof n=="string"?t.duration(+i,n):t.duration(n,i),et(this,r,-1),this},diff:function(n,i,r){var f=this._isUTC?t(n).zone(this._offset||0):t(n).local(),o=(this.zone()-f.zone())*6e4,u,e;return i=l(i),i==="year"||i==="month"?(u=(this.daysInMonth()+f.daysInMonth())*432e5,e=(this.year()-f.year())*12+(this.month()-f.month()),e+=(this-t(this).startOf("month")-(f-t(f).startOf("month")))/u,e-=(this.zone()-t(this).startOf("month").zone()-(f.zone()-t(f).startOf("month").zone()))*6e4/u,i==="year"&&(e=e/12)):(u=this-f,e=i==="second"?u/1e3:i==="minute"?u/6e4:i==="hour"?u/36e5:i==="day"?(u-o)/864e5:i==="week"?(u-o)/6048e5:u),r?e:y(e)},from:function(n,i){return t.duration(this.diff(n)).lang(this.lang()._abbr).humanize(!i)},fromNow:function(n){return this.from(t(),n)},calendar:function(){var n=this.diff(t().zone(this.zone()).startOf("day"),"days",!0),i=n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse";return this.format(this.lang().calendar(i,this))},isLeapYear:function(){return ri(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(n){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=li(n,this.lang()),this.add({d:n-t})):t},month:function(n){var i=this._isUTC?"UTC":"",r;return n!=null?typeof n=="string"&&(n=this.lang().monthsParse(n),typeof n!="number")?this:(r=this.date(),this.date(1),this._d["set"+i+"Month"](n),this.date(Math.min(r,this.daysInMonth())),t.updateOffset(this),this):this._d["get"+i+"Month"]()},startOf:function(n){n=l(n);switch(n){case"year":this.month(0);case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return n==="week"?this.weekday(0):n==="isoWeek"&&this.isoWeekday(1),this},endOf:function(n){return n=l(n),this.startOf(n).add(n==="isoWeek"?"week":n,1).subtract("ms",1)},isAfter:function(n,i){return i=typeof i!="undefined"?i:"millisecond",+this.clone().startOf(i)>+t(n).startOf(i)},isBefore:function(n,i){return i=typeof i!="undefined"?i:"millisecond",+this.clone().startOf(i)<+t(n).startOf(i)},isSame:function(n,i){return i=typeof i!="undefined"?i:"millisecond",+this.clone().startOf(i)==+t(n).startOf(i)},min:function(n){return n=t.apply(null,arguments),n<this?this:n},max:function(n){return n=t.apply(null,arguments),n>this?this:n},zone:function(n){var i=this._offset||0;if(n!=null)typeof n=="string"&&(n=hi(n)),Math.abs(n)<16&&(n=n*60),this._offset=n,this._isUTC=!0,i!==n&&et(this,t.duration(i-n,"m"),1,!0);else return this._isUTC?i:this._d.getTimezoneOffset();return this},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return typeof this._i=="string"&&this.zone(this._i),this},hasAlignedHourOffset:function(n){return n=n?t(n).zone():0,(this.zone()-n)%60==0},daysInMonth:function(){return ti(this.year(),this.month())},dayOfYear:function(n){var i=p((t(this).startOf("day")-t(this).startOf("year"))/864e5)+1;return n==null?i:this.add("d",n-i)},weekYear:function(n){var t=g(this,this.lang()._week.dow,this.lang()._week.doy).year;return n==null?t:this.add("y",n-t)},isoWeekYear:function(n){var t=g(this,1,4).year;return n==null?t:this.add("y",n-t)},week:function(n){var t=this.lang().week(this);return n==null?t:this.add("d",(n-t)*7)},isoWeek:function(n){var t=g(this,1,4).week;return n==null?t:this.add("d",(n-t)*7)},weekday:function(n){var t=(this.day()+7-this.lang()._week.dow)%7;return n==null?t:this.add("d",n-t)},isoWeekday:function(n){return n==null?this.day()||7:this.day(this.day()%7?n:n-7)},get:function(n){return n=l(n),this[n]()},set:function(n,t){return n=l(n),typeof this[n]=="function"&&this[n](t),this},lang:function(t){return t===n?this._lang:(this._lang=o(t),this)}}),r=0;r<tt.length;r++)yi(tt[r].toLowerCase().replace(/s$/,""),tt[r]);yi("year","FullYear");t.fn.days=t.fn.day;t.fn.months=t.fn.month;t.fn.weeks=t.fn.week;t.fn.isoWeeks=t.fn.isoWeek;t.fn.toJSON=t.fn.toISOString;c(t.duration.fn=ft.prototype,{_bubble:function(){var e=this._milliseconds,t=this._days,i=this._months,n=this._data,r,u,f,o;n.milliseconds=e%1e3;r=y(e/1e3);n.seconds=r%60;u=y(r/60);n.minutes=u%60;f=y(u/60);n.hours=f%24;t+=y(f/24);n.days=t%30;i+=y(t/30);n.months=i%12;o=y(i/12);n.years=o},weeks:function(){return y(this.days()/7)},valueOf:function(){return this._milliseconds+this._days*864e5+this._months%12*2592e6+i(this._months/12)*31536e6},humanize:function(n){var i=+this,t=hu(i,!n,this.lang());return n&&(t=this.lang().pastFuture(i,t)),this.lang().postformat(t)},add:function(n,i){var r=t.duration(n,i);return this._milliseconds+=r._milliseconds,this._days+=r._days,this._months+=r._months,this._bubble(),this},subtract:function(n,i){var r=t.duration(n,i);return this._milliseconds-=r._milliseconds,this._days-=r._days,this._months-=r._months,this._bubble(),this},get:function(n){return n=l(n),this[n.toLowerCase()+"s"]()},as:function(n){return n=l(n),this["as"+n.charAt(0).toUpperCase()+n.slice(1)+"s"]()},lang:t.fn.lang,toIsoString:function(){var r=Math.abs(this.years()),u=Math.abs(this.months()),f=Math.abs(this.days()),n=Math.abs(this.hours()),t=Math.abs(this.minutes()),i=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(r?r+"Y":"")+(u?u+"M":"")+(f?f+"D":"")+(n||t||i?"T":"")+(n?n+"H":"")+(t?t+"M":"")+(i?i+"S":""):"P0D"}});for(r in it)it.hasOwnProperty(r)&&(pi(r,it[r]),cu(r.toLowerCase()));pi("Weeks",6048e5);t.duration.fn.asMonths=function(){return(+this-this.years()*31536e6)/2592e6+this.years()*12};t.lang("en",{ordinal:function(n){var t=n%10,r=i(n%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+r}});at?(module.exports=t,lt(!0)):typeof define=="function"&&define.amd?define("moment",function(i,r,u){return u.config().noGlobal!==!0&&lt(u.config().noGlobal===n),t}):lt()}.call(this),function(n,t){typeof exports=="object"?module.exports=t(require("moment")):typeof define=="function"&&define.amd?define("moment-range",["moment"],t):n.moment=t(n.moment)}(this,function(n){var t;return t=function(){function t(t,i){this.start=n(t);this.end=n(i)}return t.prototype.contains=function(n){return n instanceof t?this.start<n.start&&this.end>n.end:this.start<=n&&n<=this.end},t.prototype._by_string=function(t,i){for(var r=n(this.start),u=[];this.contains(r);)i.call(this,r.clone()),u.push(r.add(t,1));return u},t.prototype._by_range=function(t,i){var f,r,u,e;if(r=Math.round(this/t),r===Infinity)return this;for(e=[],f=u=0;0<=r?u<=r:u>=r;f=0<=r?++u:--u)e.push(i.call(this,n(this.start.valueOf()+t.valueOf()*f)));return e},t.prototype.overlaps=function(n){return this.intersect(n)!==null},t.prototype.intersect=function(n){var i,r,u,f,e,o,s,h;return this.start<=(r=n.start)&&r<(i=this.end)&&i<n.end?new t(n.start,this.end):n.start<(f=this.start)&&f<(u=n.end)&&u<=this.end?new t(this.start,n.end):n.start<(o=this.start)&&o<(e=this.end)&&e<n.end?this:this.start<=(h=n.start)&&h<(s=n.end)&&s<=this.end?n:null},t.prototype.subtract=function(n){var i,r,u,f,e,o,s,h;return this.intersect(n)===null?[this]:n.start<=(r=this.start)&&r<(i=this.end)&&i<=n.end?[]:n.start<=(f=this.start)&&f<(u=n.end)&&u<this.end?[new t(n.end,this.end)]:this.start<(o=n.start)&&o<(e=this.end)&&e<=n.end?[new t(this.start,n.start)]:this.start<(h=n.start)&&h<(s=n.end)&&s<this.end?[new t(this.start,n.start),new t(n.end,this.end)]:void 0},t.prototype.by=function(n,t){return typeof n=="string"?this._by_string(n,t):this._by_range(n,t),this},t.prototype.valueOf=function(){return this.end-this.start},t.prototype.toDate=function(){return[this.start.toDate(),this.end.toDate()]},t.prototype.isSame=function(n){return this.start.isSame(n.start)&&this.end.isSame(n.end)},t}(),n.fn.range=function(i,r){return["year","month","week","day","hour","minute","second"].indexOf(i)>-1?new t(n(this).startOf(i),n(this).endOf(i)):new t(i,r)},n.fn.within=function(n){return n.contains(this._d)},n}),function(){for(var n,u=function(){},t=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"],i=t.length,r=window.console=window.console||{};i--;)n=t[i],r[n]||(r[n]=u)}();BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"Other";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"Unknown"},searchString:function(n){for(var i,t=0;t<n.length;t++)if(i=n[t].string,this.versionSearchString=n[t].subString,i.indexOf(n[t].subString)!=-1)return n[t].identity},searchVersion:function(n){var t=n.indexOf(this.versionSearchString);if(t!=-1)return parseFloat(n.substring(t+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.userAgent,subString:"Safari",identity:"Safari"},{string:navigator.userAgent,subString:"Opera",identity:"Opera"}]};BrowserDetect.init(),function(n){var r=n.event,t,i;t=r.special.debouncedresize={setup:function(){n(this).on("resize",t.handler)},teardown:function(){n(this).off("resize",t.handler)},handler:function(n,u){var e=this,o=arguments,f=function(){n.type="debouncedresize";r.dispatch.apply(e,o)};i&&clearTimeout(i);u?f():i=setTimeout(f,t.threshold)},threshold:150}}(jQuery);String.prototype.truncate=function(n){var t=this;return this.length>n?t.substring(0,n)+"...":t};String.prototype.stripTags=function(n){if(this!=null){var t=this,i=t.replace(/(<([^>]+)>)/ig,"");return i.substring(0,n)+"..."}return null};Array.prototype.contains=function(n){for(var t in this)if(this[t]===n)return!0;return!1};Array.prototype.chunk=function(n){for(var i=[],t=0;t<this.length;t+=n)i.push(this.slice(t,t+n));return i},function(){(function(n){var r=this||eval("this"),i=r.document,f=r.navigator,t=r.jQuery,u=r.JSON;(function(n){"function"==typeof require&&"object"==typeof exports&&"object"==typeof module?n(module.exports||exports):"function"==typeof define&&define.amd?define(["exports"],n):n(r.ko={})})(function(e){function l(n,t){return null===n||typeof n in p?n===t:!1}function a(n,t,i,r){o.d[n]={init:function(n){return o.a.f.set(n,y,{}),{controlsDescendantBindings:!0}},update:function(n,u,f,e,s){f=o.a.f.get(n,y);u=o.a.c(u());e=!i!=!u;var h=!f.ob;(h||t||e!==f.Db)&&(h&&(f.ob=o.a.Ya(o.e.childNodes(n),!0)),e?(h||o.e.S(n,o.a.Ya(f.ob)),o.Ta(r?r(s,u):s,n)):o.e.Z(n),f.Db=e)}};o.g.Y[n]=!1;o.e.P[n]=!0}var o="undefined"!=typeof e?e:{},p,h,s,c,v,y;o.b=function(n,t){for(var i=n.split("."),r=o,u=0;u<i.length-1;u++)r=r[i[u]];r[i[i.length-1]]=t};o.s=function(n,t,i){n[t]=i};o.version="3.0.0";o.b("version",o.version);o.a=function(){function s(n,t){for(var i in n)n.hasOwnProperty(i)&&t(i,n[i])}function h(n,t){if("input"!==o.a.v(n)||!n.type||"click"!=t.toLowerCase())return!1;var i=n.type;return"checkbox"==i||"radio"==i}var c={},l={},a,e;return c[f&&/Firefox\/2/i.test(f.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"],c.MouseEvents="click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave".split(" "),s(c,function(n,t){if(t.length)for(var i=0,r=t.length;i<r;i++)l[t[i]]=n}),a={propertychange:!0},e=i&&function(){for(var t=3,r=i.createElement("div"),u=r.getElementsByTagName("i");r.innerHTML="<!--[if gt IE "+ ++t+"]><i><\/i><![endif]-->",u[0];);return 4<t?t:n}(),{$a:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],n:function(n,t){for(var i=0,r=n.length;i<r;i++)t(n[i])},l:function(n,t){if("function"==typeof Array.prototype.indexOf)return Array.prototype.indexOf.call(n,t);for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},Ua:function(n,t,i){for(var r=0,u=n.length;r<u;r++)if(t.call(i,n[r]))return n[r];return null},ia:function(n,t){var i=o.a.l(n,t);0<=i&&n.splice(i,1)},Va:function(n){n=n||[];for(var i=[],t=0,r=n.length;t<r;t++)0>o.a.l(i,n[t])&&i.push(n[t]);return i},ha:function(n,t){n=n||[];for(var r=[],i=0,u=n.length;i<u;i++)r.push(t(n[i]));return r},ga:function(n,t){n=n||[];for(var r=[],i=0,u=n.length;i<u;i++)t(n[i])&&r.push(n[i]);return r},X:function(n,t){if(t instanceof Array)n.push.apply(n,t);else for(var i=0,r=t.length;i<r;i++)n.push(t[i]);return n},V:function(n,t,i){var r=o.a.l(o.a.Ha(n),t);0>r?i&&n.push(t):i||n.splice(r,1)},extend:function(n,t){if(t)for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n},K:s,Da:function(n,t){if(!n)return n;var r={},i;for(i in n)n.hasOwnProperty(i)&&(r[i]=t(n[i],i,n));return r},wa:function(n){for(;n.firstChild;)o.removeNode(n.firstChild)},Vb:function(n){n=o.a.Q(n);for(var r=i.createElement("div"),t=0,u=n.length;t<u;t++)r.appendChild(o.L(n[t]));return r},Ya:function(n,t){for(var r,i=0,f=n.length,u=[];i<f;i++)r=n[i].cloneNode(!0),u.push(t?o.L(r):r);return u},S:function(n,t){if(o.a.wa(n),t)for(var i=0,r=t.length;i<r;i++)n.appendChild(t[i])},nb:function(n,t){var r=n.nodeType?[n]:n;if(0<r.length){for(var f=r[0],e=f.parentNode,i=0,u=t.length;i<u;i++)e.insertBefore(t[i],f);for(i=0,u=r.length;i<u;i++)o.removeNode(r[i])}},$:function(n,t){if(n.length){for(t=8===t.nodeType&&t.parentNode||t;n.length&&n[0].parentNode!==t;)n.splice(0,1);if(1<n.length){var i=n[0],r=n[n.length-1];for(n.length=0;i!==r;)if(n.push(i),i=i.nextSibling,!i)return;n.push(r)}}return n},qb:function(n,t){7>e?n.setAttribute("selected",t):n.selected=t},la:function(t){return null===t||t===n?"":t.trim?t.trim():t.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},ec:function(n,t){for(var r,u=[],f=(n||"").split(t),i=0,e=f.length;i<e;i++)r=o.a.la(f[i]),""!==r&&u.push(r);return u},ac:function(n,t){return n=n||"",t.length>n.length?!1:n.substring(0,t.length)===t},Gb:function(n,t){if(n===t)return!0;if(11===n.nodeType)return!1;if(t.contains)return t.contains(3===n.nodeType?n.parentNode:n);if(t.compareDocumentPosition)return 16==(t.compareDocumentPosition(n)&16);for(;n&&n!=t;)n=n.parentNode;return!!n},va:function(n){return o.a.Gb(n,n.ownerDocument.documentElement)},Ra:function(n){return!!o.a.Ua(n,o.a.va)},v:function(n){return n&&n.tagName&&n.tagName.toLowerCase()},r:function(n,i,r){var s=e&&a[i],u,f,c;if(s||"undefined"==typeof t)if(s||"function"!=typeof n.addEventListener)if("undefined"!=typeof n.attachEvent)u=function(t){r.call(n,t)},f="on"+i,n.attachEvent(f,u),o.a.C.ea(n,function(){n.detachEvent(f,u)});else throw Error("Browser doesn't support addEventListener or attachEvent");else n.addEventListener(i,r,!1);else h(n,i)&&(c=r,r=function(n,t){var i=this.checked;t&&(this.checked=!0!==t.Ab);c.call(this,n);this.checked=i}),t(n).bind(i,r)},da:function(n,u){if(!n||!n.nodeType)throw Error("element must be a DOM node when calling triggerEvent");if("undefined"!=typeof t){var f=[];h(n,u)&&f.push({Ab:n.checked});t(n).trigger(u,f)}else if("function"==typeof i.createEvent)if("function"==typeof n.dispatchEvent)f=i.createEvent(l[u]||"HTMLEvents"),f.initEvent(u,!0,!0,r,0,0,0,0,0,!1,!1,!1,!1,0,n),n.dispatchEvent(f);else throw Error("The supplied element doesn't support dispatchEvent");else if("undefined"!=typeof n.fireEvent)h(n,u)&&(n.checked=!0!==n.checked),n.fireEvent("on"+u);else throw Error("Browser doesn't support triggering events");},c:function(n){return o.M(n)?n():n},Ha:function(n){return o.M(n)?n.t():n},ma:function(n,t,i){if(t){var r=/\S+/g,u=n.className.match(r)||[];o.a.n(t.match(r),function(n){o.a.V(u,n,i)});n.className=u.join(" ")}},Ma:function(t,r){var u=o.a.c(r),f;(null===u||u===n)&&(u="");f=o.e.firstChild(t);!f||3!=f.nodeType||o.e.nextSibling(f)?o.e.S(t,[i.createTextNode(u)]):f.data=u;o.a.Jb(t)},pb:function(n,t){if(n.name=t,7>=e)try{n.mergeAttributes(i.createElement("<input name='"+n.name+"'/>"),!1)}catch(r){}},Jb:function(n){9<=e&&(n=1==n.nodeType?n:n.parentNode,n.style&&(n.style.zoom=n.style.zoom))},Hb:function(n){if(e){var t=n.style.width;n.style.width=0;n.style.width=t}},Zb:function(n,t){n=o.a.c(n);t=o.a.c(t);for(var r=[],i=n;i<=t;i++)r.push(i);return r},Q:function(n){for(var i=[],t=0,r=n.length;t<r;t++)i.push(n[t]);return i},cc:6===e,dc:7===e,ja:e,ab:function(n,t){for(var r=o.a.Q(n.getElementsByTagName("input")).concat(o.a.Q(n.getElementsByTagName("textarea"))),f="string"==typeof t?function(n){return n.name===t}:function(n){return t.test(n.name)},u=[],i=r.length-1;0<=i;i--)f(r[i])&&u.push(r[i]);return u},Wb:function(n){return"string"==typeof n&&(n=o.a.la(n))?u&&u.parse?u.parse(n):new Function("return "+n)():null},Na:function(n,t,i){if(!u||!u.stringify)throw Error("Cannot find JSON.stringify(). Some browsers (e.g., IE < 8) don't support it natively, but you can overcome this by adding a script reference to json2.js, downloadable from http://www.json.org/json2.js");return u.stringify(o.a.c(n),t,i)},Xb:function(n,t,r){var c,e,h,f,u,l;r=r||{};var a=r.params||{},v=r.includeFields||this.$a,c=n;if("object"==typeof n&&"form"===o.a.v(n))for(c=n.action,e=v.length-1;0<=e;e--)for(h=o.a.ab(n,v[e]),f=h.length-1;0<=f;f--)a[h[f].name]=h[f].value;t=o.a.c(t);u=i.createElement("form");u.style.display="none";u.action=c;u.method="post";for(l in t)n=i.createElement("input"),n.name=l,n.value=o.a.Na(o.a.c(t[l])),u.appendChild(n);s(a,function(n,t){var r=i.createElement("input");r.name=n;r.value=t;u.appendChild(r)});i.body.appendChild(u);r.submitter?r.submitter(u):u.submit();setTimeout(function(){u.parentNode.removeChild(u)},0)}}}();o.b("utils",o.a);o.b("utils.arrayForEach",o.a.n);o.b("utils.arrayFirst",o.a.Ua);o.b("utils.arrayFilter",o.a.ga);o.b("utils.arrayGetDistinctValues",o.a.Va);o.b("utils.arrayIndexOf",o.a.l);o.b("utils.arrayMap",o.a.ha);o.b("utils.arrayPushAll",o.a.X);o.b("utils.arrayRemoveItem",o.a.ia);o.b("utils.extend",o.a.extend);o.b("utils.fieldsIncludedWithJsonPost",o.a.$a);o.b("utils.getFormFields",o.a.ab);o.b("utils.peekObservable",o.a.Ha);o.b("utils.postJson",o.a.Xb);o.b("utils.parseJson",o.a.Wb);o.b("utils.registerEventHandler",o.a.r);o.b("utils.stringifyJson",o.a.Na);o.b("utils.range",o.a.Zb);o.b("utils.toggleDomNodeCssClass",o.a.ma);o.b("utils.triggerEvent",o.a.da);o.b("utils.unwrapObservable",o.a.c);o.b("utils.objectForEach",o.a.K);o.b("utils.addOrRemoveItem",o.a.V);o.b("unwrap",o.a.c);Function.prototype.bind||(Function.prototype.bind=function(n){var i=this,t=Array.prototype.slice.call(arguments);return n=t.shift(),function(){return i.apply(n,t.concat(Array.prototype.slice.call(arguments)))}});o.a.f=new function(){function r(r,f){var e=r[t];if(!e||"null"===e||!i[e]){if(!f)return n;e=r[t]="ko"+u++;i[e]={}}return i[e]}var u=0,t="__ko__"+(new Date).getTime(),i={};return{get:function(t,i){var u=r(t,!1);return u===n?n:u[i]},set:function(t,i,u){(u!==n||r(t,!1)!==n)&&(r(t,!0)[i]=u)},clear:function(n){var r=n[t];return r?(delete i[r],n[t]=null,!0):!1},D:function(){return u+++t}}};o.b("utils.domData",o.a.f);o.b("utils.domData.clear",o.a.f.clear);o.a.C=new function(){function i(t,i){var r=o.a.f.get(t,u);return r===n&&i&&(r=[],o.a.f.set(t,u,r)),r}function r(n){var u=i(n,!1),e;if(u)for(u=u.slice(0),e=0;e<u.length;e++)u[e](n);if(o.a.f.clear(n),"function"==typeof t&&"function"==typeof t.cleanData&&t.cleanData([n]),f[n.nodeType])for(u=n.firstChild;n=u;)u=n.nextSibling,8===n.nodeType&&r(n)}var u=o.a.f.D(),e={1:!0,8:!0,9:!0},f={1:!0,9:!0};return{ea:function(n,t){if("function"!=typeof t)throw Error("Callback must be a function");i(n,!0).push(t)},mb:function(t,r){var f=i(t,!1);f&&(o.a.ia(f,r),0==f.length&&o.a.f.set(t,u,n))},L:function(n){var t,i,u;if(e[n.nodeType]&&(r(n),f[n.nodeType]))for(t=[],o.a.X(t,n.getElementsByTagName("*")),i=0,u=t.length;i<u;i++)r(t[i]);return n},removeNode:function(n){o.L(n);n.parentNode&&n.parentNode.removeChild(n)}}};o.L=o.a.C.L;o.removeNode=o.a.C.removeNode;o.b("cleanNode",o.L);o.b("removeNode",o.removeNode);o.b("utils.domNodeDisposal",o.a.C);o.b("utils.domNodeDisposal.addDisposeCallback",o.a.C.ea);o.b("utils.domNodeDisposal.removeDisposeCallback",o.a.C.mb),function(){o.a.Fa=function(n){var u,f;if("undefined"!=typeof t){if(t.parseHTML)u=t.parseHTML(n)||[];else if((u=t.clean([n]))&&u[0]){for(n=u[0];n.parentNode&&11!==n.parentNode.nodeType;)n=n.parentNode;n.parentNode&&n.parentNode.removeChild(n)}}else{for(f=o.a.la(n).toLowerCase(),u=i.createElement("div"),f=f.match(/^<(thead|tbody|tfoot)/)&&[1,"<table>","<\/table>"]||!f.indexOf("<tr")&&[2,"<table><tbody>","<\/tbody><\/table>"]||(!f.indexOf("<td")||!f.indexOf("<th"))&&[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"]||[0,"",""],n="ignored<div>"+f[1]+n+f[2]+"<\/div>","function"==typeof r.innerShiv?u.appendChild(r.innerShiv(n)):u.innerHTML=n;f[0]--;)u=u.lastChild;u=o.a.Q(u.lastChild.childNodes)}return u};o.a.Ka=function(i,r){if(o.a.wa(i),r=o.a.c(r),null!==r&&r!==n)if("string"!=typeof r&&(r=r.toString()),"undefined"!=typeof t)t(i).html(r);else for(var f=o.a.Fa(r),u=0;u<f.length;u++)i.appendChild(f[u])}}();o.b("utils.parseHtmlFragment",o.a.Fa);o.b("utils.setHtml",o.a.Ka);o.u=function(){function i(n,t){var r;if(n)if(8==n.nodeType)r=o.u.jb(n.nodeValue),null!=r&&t.push({Fb:n,Tb:r});else if(1==n.nodeType)for(var r=0,u=n.childNodes,f=u.length;r<f;r++)i(u[r],t)}var t={};return{Ca:function(n){if("function"!=typeof n)throw Error("You can only pass a function to ko.memoization.memoize()");var i=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);return t[i]=n,"<!--[ko_memo:"+i+"]-->"},ub:function(i,r){var u=t[i];if(u===n)throw Error("Couldn't find any memo with ID "+i+". Perhaps it's already been unmemoized.");try{return u.apply(null,r||[]),!0}finally{delete t[i]}},vb:function(n,t){var f=[],u,s,r,e;for(i(n,f),u=0,s=f.length;u<s;u++)r=f[u].Fb,e=[r],t&&o.a.X(e,t),o.u.ub(f[u].Tb,e),r.nodeValue="",r.parentNode&&r.parentNode.removeChild(r)},jb:function(n){return(n=n.match(/^\[ko_memo\:(.*?)\]$/))?n[1]:null}}}();o.b("memoization",o.u);o.b("memoization.memoize",o.u.Ca);o.b("memoization.unmemoize",o.u.ub);o.b("memoization.parseMemoText",o.u.jb);o.b("memoization.unmemoizeDomNodeAndDescendants",o.u.vb);o.xa={throttle:function(n,t){n.throttleEvaluation=t;var i=null;return o.h({read:n,write:function(r){clearTimeout(i);i=setTimeout(function(){n(r)},t)}})},notify:function(n,t){n.equalityComparer="always"==t?null:l}};p={undefined:1,boolean:1,number:1,string:1};o.b("extenders",o.xa);o.sb=function(n,t,i){this.target=n;this.qa=t;this.Eb=i;o.s(this,"dispose",this.B)};o.sb.prototype.B=function(){this.Qb=!0;this.Eb()};o.ca=function(){this.F={};o.a.extend(this,o.ca.fn);o.s(this,"subscribe",this.T);o.s(this,"extend",this.extend);o.s(this,"getSubscriptionsCount",this.Lb)};h="change";o.ca.fn={T:function(n,t,i){i=i||h;var r=new o.sb(this,t?n.bind(t):n,function(){o.a.ia(this.F[i],r)}.bind(this));return this.F[i]||(this.F[i]=[]),this.F[i].push(r),r},notifySubscribers:function(n,t){if(t=t||h,this.cb(t))try{o.i.Wa();for(var u=this.F[t].slice(0),r=0,i;i=u[r];++r)i&&!0!==i.Qb&&i.qa(n)}finally{o.i.end()}},cb:function(n){return this.F[n]&&this.F[n].length},Lb:function(){var n=0;return o.a.K(this.F,function(t,i){n+=i.length}),n},extend:function(n){var t=this;return n&&o.a.K(n,function(n,i){var r=o.xa[n];"function"==typeof r&&(t=r(t,i)||t)}),t}};o.fb=function(n){return null!=n&&"function"==typeof n.T&&"function"==typeof n.notifySubscribers};o.b("subscribable",o.ca);o.b("isSubscribable",o.fb);o.i=function(){var n=[];return{Wa:function(t){n.push(t&&{qa:t,Za:[]})},end:function(){n.pop()},lb:function(t){if(!o.fb(t))throw Error("Only subscribable things can act as dependencies");if(0<n.length){var i=n[n.length-1];!i||0<=o.a.l(i.Za,t)||(i.Za.push(t),i.qa(t))}},p:function(t,i,r){try{return n.push(null),t.apply(i,r||[])}finally{n.pop()}}}}();o.q=function(n){function t(){return 0<arguments.length?(t.equalityComparer&&t.equalityComparer(i,arguments[0])||(t.O(),i=arguments[0],t.N()),this):(o.i.lb(t),i)}var i=n;return o.ca.call(t),t.t=function(){return i},t.N=function(){t.notifySubscribers(i)},t.O=function(){t.notifySubscribers(i,"beforeChange")},o.a.extend(t,o.q.fn),o.s(t,"peek",t.t),o.s(t,"valueHasMutated",t.N),o.s(t,"valueWillMutate",t.O),t};o.q.fn={equalityComparer:l};s=o.q.Yb="__ko_proto__";o.q.fn[s]=o.q;o.ya=function(t,i){return null===t||t===n||t[s]===n?!1:t[s]===i?!0:o.ya(t[s],i)};o.M=function(n){return o.ya(n,o.q)};o.gb=function(n){return"function"==typeof n&&n[s]===o.q||"function"==typeof n&&n[s]===o.h&&n.Nb?!0:!1};o.b("observable",o.q);o.b("isObservable",o.M);o.b("isWriteableObservable",o.gb);o.ba=function(n){if(n=n||[],"object"!=typeof n||!("length"in n))throw Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");return n=o.q(n),o.a.extend(n,o.ba.fn),n.extend({trackArrayChanges:!0})};o.ba.fn={remove:function(n){for(var u,r=this.t(),i=[],f="function"!=typeof n||o.M(n)?function(t){return t===n}:n,t=0;t<r.length;t++)u=r[t],f(u)&&(0===i.length&&this.O(),i.push(u),r.splice(t,1),t--);return i.length&&this.N(),i},removeAll:function(t){if(t===n){var i=this.t(),r=i.slice(0);return this.O(),i.splice(0,i.length),this.N(),r}return t?this.remove(function(n){return 0<=o.a.l(t,n)}):[]},destroy:function(n){var i=this.t(),r="function"!=typeof n||o.M(n)?function(t){return t===n}:n,t;for(this.O(),t=i.length-1;0<=t;t--)r(i[t])&&(i[t]._destroy=!0);this.N()},destroyAll:function(t){return t===n?this.destroy(function(){return!0}):t?this.destroy(function(n){return 0<=o.a.l(t,n)}):[]},indexOf:function(n){var t=this();return o.a.l(t,n)},replace:function(n,t){var i=this.indexOf(n);0<=i&&(this.O(),this.t()[i]=t,this.N())}};o.a.n("pop push reverse shift sort splice unshift".split(" "),function(n){o.ba.fn[n]=function(){var t=this.t();return this.O(),this.Xa(t,n,arguments),t=t[n].apply(t,arguments),this.N(),t}});o.a.n(["slice"],function(n){o.ba.fn[n]=function(){var t=this();return t[n].apply(t,arguments)}});o.b("observableArray",o.ba);c="arrayChange";o.xa.trackArrayChanges=function(n){function u(){var f,u;r||(r=!0,f=n.notifySubscribers,n.notifySubscribers=function(n,t){return t&&t!==h||++i,f.apply(this,arguments)},u=[].concat(n.t()||[]),t=null,n.T(function(r){if(r=[].concat(r||[]),n.cb(c)){var f;(!t||1<i)&&(t=o.a.ra(u,r,{sparse:!0}));f=t;f.length&&n.notifySubscribers(f,c)}u=r;t=null;i=0}))}if(!n.Xa){var r=!1,t=null,i=0,f=n.T;n.T=n.subscribe=function(n,t,i){return i===c&&u(),f.apply(this,arguments)};n.Xa=function(n,u,f){function h(n,t,i){c.push({status:n,value:t,index:i})}if(r&&!i){var c=[],e=n.length,s=f.length,o=0;switch(u){case"push":o=e;case"unshift":for(u=0;u<s;u++)h("added",f[u],o+u);break;case"pop":o=e-1;case"shift":e&&h("deleted",n[o],o);break;case"splice":u=Math.min(Math.max(0,0>f[0]?e+f[0]:f[0]),e);for(var e=1===s?e:Math.min(u+(f[1]||0),e),s=u+s-2,o=Math.max(e,s),l=2;u<o;++u,++l)u<e&&h("deleted",n[u],u),u<s&&h("added",f[l],u);break;default:return}t=c}}}};o.h=function(t,i,r){function b(){o.a.n(e,function(n){n.B()});e=[]}function nt(){var n=u.throttleEvaluation;n&&0<=n?(clearTimeout(g),g=setTimeout(l,n)):l()}function l(){var t,h,r;if(!v){if(w&&w()){if(!y){c();a=!0;return}}else y=!1;v=!0;try{for(t=o.a.ha(e,function(n){return n.target}),o.i.Wa(function(i){var r;0<=(r=o.a.l(t,i))?t[r]=n:e.push(i.T(nt))}),h=i?f.call(i):f(),r=t.length-1;0<=r;r--)t[r]&&e.splice(r,1)[0].B();a=!0;u.equalityComparer&&u.equalityComparer(s,h)||(u.notifySubscribers(s,"beforeChange"),s=h,u.notifySubscribers(s))}finally{o.i.end();v=!1}e.length||c()}}function u(){if(0<arguments.length){if("function"==typeof d)d.apply(i,arguments);else throw Error("Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.");return this}return a||l(),o.i.lb(u),s}function k(){return!a||0<e.length}var s,a=!1,v=!1,y=!1,f=t;if(f&&"object"==typeof f?(r=f,f=r.read):(r=r||{},f||(f=r.read)),"function"!=typeof f)throw Error("Pass a function that returns the value of the ko.computed");var d=r.write,h=r.disposeWhenNodeIsRemoved||r.I||null,p=r.disposeWhen||r.ua,w=p,c=b,e=[],g=null;return i||(i=r.owner),u.t=function(){return a||l(),s},u.Kb=function(){return e.length},u.Nb="function"==typeof r.write,u.B=function(){c()},u.aa=k,o.ca.call(u),o.a.extend(u,o.h.fn),o.s(u,"peek",u.t),o.s(u,"dispose",u.B),o.s(u,"isActive",u.aa),o.s(u,"getDependenciesCount",u.Kb),h&&(y=!0,h.nodeType&&(w=function(){return!o.a.va(h)||p&&p()})),!0!==r.deferEvaluation&&l(),h&&k()&&(c=function(){o.a.C.mb(h,c);b()},o.a.C.ea(h,c)),u};o.Pb=function(n){return o.ya(n,o.h)};e=o.q.Yb;o.h[e]=o.q;o.h.fn={equalityComparer:l};o.h.fn[e]=o.h;o.b("dependentObservable",o.h);o.b("computed",o.h);o.b("isComputed",o.Pb),function(){function t(u,f,e){if(e=e||new i,u=f(u),"object"!=typeof u||null===u||u===n||u instanceof Date||u instanceof String||u instanceof Number||u instanceof Boolean)return u;var o=u instanceof Array?[]:{};return e.save(u,o),r(u,function(i){var r=f(u[i]),s;switch(typeof r){case"boolean":case"number":case"string":case"function":o[i]=r;break;case"object":case"undefined":s=e.get(r);o[i]=s!==n?s:t(r,f,e)}}),o}function r(n,t){if(n instanceof Array){for(var i=0;i<n.length;i++)t(i);"function"==typeof n.toJSON&&t("toJSON")}else for(i in n)t(i)}function i(){this.keys=[];this.Qa=[]}o.tb=function(n){if(0==arguments.length)throw Error("When calling ko.toJS, pass the object you want to convert.");return t(n,function(n){for(var t=0;o.M(n)&&10>t;t++)n=n();return n})};o.toJSON=function(n,t,i){return n=o.tb(n),o.a.Na(n,t,i)};i.prototype={save:function(n,t){var i=o.a.l(this.keys,n);0<=i?this.Qa[i]=t:(this.keys.push(n),this.Qa.push(t))},get:function(t){return t=o.a.l(this.keys,t),0<=t?this.Qa[t]:n}}}();o.b("toJS",o.tb);o.b("toJSON",o.toJSON),function(){o.k={o:function(t){switch(o.a.v(t)){case"option":return!0===t.__ko__hasDomDataOptionValue__?o.a.f.get(t,o.d.options.Ea):7>=o.a.ja?t.getAttributeNode("value")&&t.getAttributeNode("value").specified?t.value:t.text:t.value;case"select":return 0<=t.selectedIndex?o.k.o(t.options[t.selectedIndex]):n;default:return t.value}},na:function(t,i){switch(o.a.v(t)){case"option":switch(typeof i){case"string":o.a.f.set(t,o.d.options.Ea,n);"__ko__hasDomDataOptionValue__"in t&&delete t.__ko__hasDomDataOptionValue__;t.value=i;break;default:o.a.f.set(t,o.d.options.Ea,i);t.__ko__hasDomDataOptionValue__=!0;t.value="number"==typeof i?i:""}break;case"select":""===i&&(i=n);(null===i||i===n)&&(t.selectedIndex=-1);for(var r=t.options.length-1;0<=r;r--)if(o.k.o(t.options[r])==i){t.selectedIndex=r;break}1<t.size||-1!==t.selectedIndex||(t.selectedIndex=0);break;default:(null===i||i===n)&&(i="");t.value=i}}}}();o.b("selectExtensions",o.k);o.b("selectExtensions.readValue",o.k.o);o.b("selectExtensions.writeValue",o.k.na);o.g=function(){function n(n){var c,r,i;n=o.a.la(n);123===n.charCodeAt(0)&&(n=n.slice(1,-1));var a=[],s=n.match(t),h,u,l=0;if(s)for(s.push(","),c=0;r=s[c];++c){if(i=r.charCodeAt(0),44===i){if(0>=l){h&&a.push(u?{key:h,value:u.join("")}:{unknown:h});h=u=l=0;continue}}else if(58===i){if(!u)continue}else if(47===i&&c&&1<r.length)(i=s[c-1].match(f))&&!e[i[0]]&&(n=n.substr(n.indexOf(r)+1),s=n.match(t),s.push(","),c=-1,r="/");else if(40===i||123===i||91===i)++l;else if(41===i||125===i||93===i)--l;else if(!h&&!u){h=34===i||39===i?r.slice(1,-1):r;continue}u?u.push(r):u=[r]}return a}var r=["true","false","null","undefined"],u=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,t=RegExp("\"(?:[^\"\\\\]|\\\\.)*\"|'(?:[^'\\\\]|\\\\.)*'|/(?:[^/\\\\]|\\\\.)*/w*|[^\\s:,/][^,\"'{}()/:[\\]]*[^\\s,\"'{}()/:[\\]]|[^\\s]","g"),f=/[\])"'A-Za-z0-9_$]+$/,e={"in":1,"return":1,"typeof":1},i={};return{Y:[],U:i,Ga:n,ka:function(t,f){function e(n,t){var l,f=o.getBindingHandler(n);(f&&f.preprocess?t=f.preprocess(t,n,e):1)&&((f=i[n])&&(l=t,0<=o.a.l(r,l)?l=!1:(f=l.match(u),l=null===f?!1:f[1]?"Object("+f[1]+")"+f[2]:l),f=l),f&&s.push("'"+n+"':function(_z){"+l+"=_z}"),c&&(t="function(){return "+t+" }"),h.push("'"+n+"':"+t))}f=f||{};var h=[],s=[],c=f.valueAccessors,l="string"==typeof t?n(t):t;return o.a.n(l,function(n){e(n.key||n.unknown,n.value)}),s.length&&e("_ko_property_writers","{"+s.join(",")+"}"),h.join(",")},Sb:function(n,t){for(var i=0;i<n.length;i++)if(n[i].key==t)return!0;return!1},oa:function(n,t,i,r,u){n&&o.M(n)?!o.gb(n)||u&&n.t()===r||n(r):(n=t.get("_ko_property_writers"))&&n[i]&&n[i](r)}}}();o.b("expressionRewriting",o.g);o.b("expressionRewriting.bindingRewriteValidators",o.g.Y);o.b("expressionRewriting.parseObjectLiteral",o.g.Ga);o.b("expressionRewriting.preProcessBindings",o.g.ka);o.b("expressionRewriting._twoWayBindings",o.g.U);o.b("jsonExpressionRewriting",o.g);o.b("jsonExpressionRewriting.insertPropertyAccessorsIntoJson",o.g.ka),function(){function n(n){return 8==n.nodeType&&e.test(t?n.text:n.nodeValue)}function r(n){return 8==n.nodeType&&s.test(t?n.text:n.nodeValue)}function u(t,i){for(var u=t,f=1,e=[];u=u.nextSibling;){if(r(u)&&(f--,0===f))return e;e.push(u);n(u)&&f++}if(!i)throw Error("Cannot find closing comment tag to match: "+t.nodeValue);return null}function f(n,t){var i=u(n,t);return i?0<i.length?i[i.length-1].nextSibling:n.nextSibling:null}var t=i&&"<!--test-->"===i.createComment("test").text,e=t?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,s=t?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,h={ul:!0,ol:!0};o.e={P:{},childNodes:function(t){return n(t)?u(t):t.childNodes},Z:function(t){if(n(t)){t=o.e.childNodes(t);for(var i=0,r=t.length;i<r;i++)o.removeNode(t[i])}else o.a.wa(t)},S:function(t,i){if(n(t)){o.e.Z(t);for(var u=t.nextSibling,r=0,f=i.length;r<f;r++)u.parentNode.insertBefore(i[r],u)}else o.a.S(t,i)},kb:function(t,i){n(t)?t.parentNode.insertBefore(i,t.nextSibling):t.firstChild?t.insertBefore(i,t.firstChild):t.appendChild(i)},eb:function(t,i,r){r?n(t)?t.parentNode.insertBefore(i,r.nextSibling):r.nextSibling?t.insertBefore(i,r.nextSibling):t.appendChild(i):o.e.kb(t,i)},firstChild:function(t){return n(t)?!t.nextSibling||r(t.nextSibling)?null:t.nextSibling:t.firstChild},nextSibling:function(t){return n(t)&&(t=f(t)),t.nextSibling&&r(t.nextSibling)?null:t.nextSibling},Mb:n,bc:function(n){return(n=(t?n.text:n.nodeValue).match(e))?n[1]:null},ib:function(t){var s,i,u,e;if(h[o.a.v(t)]&&(s=t.firstChild,s))do if(1===s.nodeType){if(i=s.firstChild,u=null,i)do u?u.push(i):n(i)?(e=f(i,!0),e?i=e:u=[i]):r(i)&&(u=[i]);while(i=i.nextSibling);if(i=u)for(u=s.nextSibling,e=0;e<i.length;e++)u?t.insertBefore(i[e],u):t.appendChild(i[e])}while(s=s.nextSibling)}}}();o.b("virtualElements",o.e);o.b("virtualElements.allowedBindings",o.e.P);o.b("virtualElements.emptyNode",o.e.Z);o.b("virtualElements.insertAfter",o.e.eb);o.b("virtualElements.prepend",o.e.kb);o.b("virtualElements.setDomNodeChildren",o.e.S),function(){o.H=function(){this.zb={}};o.a.extend(o.H.prototype,{nodeHasBindings:function(n){switch(n.nodeType){case 1:return null!=n.getAttribute("data-bind");case 8:return o.e.Mb(n);default:return!1}},getBindings:function(n,t){var i=this.getBindingsString(n,t);return i?this.parseBindingsString(i,t,n):null},getBindingAccessors:function(n,t){var i=this.getBindingsString(n,t);return i?this.parseBindingsString(i,t,n,{valueAccessors:!0}):null},getBindingsString:function(n){switch(n.nodeType){case 1:return n.getAttribute("data-bind");case 8:return o.e.bc(n);default:return null}},parseBindingsString:function(n,t,i,r){var u,f,e,h,c;try{return u=this.zb,f=n+(r&&r.valueAccessors||""),(e=u[f])||(c="with($context){with($data||{}){return{"+o.g.ka(n,r)+"}}}",h=new Function("$context","$element",c),e=u[f]=h),e(t,i)}catch(s){throw s.message="Unable to parse bindings.\nBindings value: "+n+"\nMessage: "+s.message,s;}}});o.H.instance=new o.H}();o.b("bindingProvider",o.H),function(){function a(n){return function(){return n}}function i(n){return n()}function e(n){return o.a.Da(o.i.p(n),function(t,i){return function(){return n()[i]}})}function v(n,t){return e(this.getBindings.bind(this,n,t))}function s(n,t,i){var r,u=o.e.firstChild(t),f=o.H.instance,e=f.preprocessNode;if(e){for(;r=u;)u=o.e.nextSibling(r),e.call(f,r);u=o.e.firstChild(t)}for(;r=u;)u=o.e.nextSibling(r),h(n,r,i)}function h(n,t,i){var u=!0,r=1===t.nodeType;r&&o.e.ib(t);(r&&i||o.H.instance.nodeHasBindings(t))&&(u=c(t,null,n,i).shouldBindDescendants);u&&!l[o.a.v(t)]&&s(n,t,!r)}function y(n){var i=[],r={},t=[];return o.a.K(n,function u(f){if(!r[f]){var e=o.getBindingHandler(f);e&&(e.after&&(t.push(f),o.a.n(e.after,function(i){if(n[i]){if(-1!==o.a.l(t,i))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+t.join(", "));u(i)}}),t.pop()),i.push({key:f,bb:e}));r[f]=!0}}),i}function c(t,r,f,e){var b=o.a.f.get(t,u),s,l,w,h,a,p,c;if(!r){if(b)throw Error("You cannot apply bindings multiple times to the same element.");o.a.f.set(t,u,!0)}return!b&&e&&o.rb(t,f),r&&"function"!=typeof r?s=r:(l=o.H.instance,w=l.getBindingAccessors||v,r||f.A?(h=o.h(function(){return(s=r?r(f,t):w.call(l,t,f))&&f.A&&f.A(),s},null,{I:t}),s&&h.aa()||(h=null)):s=o.i.p(w,l,[t,f])),s&&(p=h?function(n){return function(){return i(h()[n])}}:function(n){return s[n]},c=function(){return o.a.Da(h?h():s,i)},c.get=function(n){return s[n]&&i(p(n))},c.has=function(n){return n in s},e=y(s),o.a.n(e,function(i){var e=i.bb.init,h=i.bb.update,r=i.key;if(8===t.nodeType&&!o.e.P[r])throw Error("The binding '"+r+"' cannot be used with virtual elements");try{"function"==typeof e&&o.i.p(function(){var i=e(t,p(r),c,f.$data,f);if(i&&i.controlsDescendantBindings){if(a!==n)throw Error("Multiple bindings ("+a+" and "+r+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");a=r}});"function"==typeof h&&o.h(function(){h(t,p(r),c,f.$data,f)},null,{I:t})}catch(u){throw u.message='Unable to process binding "'+r+": "+s[r]+'"\nMessage: '+u.message,u;}})),{shouldBindDescendants:a===n}}function t(n){return n&&n instanceof o.G?n:new o.G(n)}var l,u,f;o.d={};l={script:!0};o.getBindingHandler=function(n){return o.d[n]};o.G=function(t,i,r,u){var f=this,h="function"==typeof t,s,e=o.h(function(){var n=h?t():t;return i?(i.A&&i.A(),o.a.extend(f,i),e&&(f.A=e)):(f.$parents=[],f.$root=n,f.ko=o),f.$rawData=t,f.$data=n,r&&(f[r]=n),u&&u(f,i,n),f.$data},null,{ua:function(){return s&&!o.a.Ra(s)},I:!0});e.aa()&&(f.A=e,e.equalityComparer=null,s=[],e.wb=function(t){s.push(t);o.a.C.ea(t,function(t){o.a.ia(s,t);s.length||(e.B(),f.A=e=n)})})};o.G.prototype.createChildContext=function(n,t,i){return new o.G(n,this,t,function(n,t){n.$parentContext=t;n.$parent=t.$data;n.$parents=(t.$parents||[]).slice(0);n.$parents.unshift(n.$parent);i&&i(n)})};o.G.prototype.extend=function(n){return new o.G(this.$rawData,this,null,function(t){o.a.extend(t,"function"==typeof n?n():n)})};u=o.a.f.D();f=o.a.f.D();o.rb=function(n,t){if(2==arguments.length)o.a.f.set(n,f,t),t.A&&t.A.wb(n);else return o.a.f.get(n,f)};o.pa=function(n,i,r){return 1===n.nodeType&&o.e.ib(n),c(n,i,t(r),!0)};o.xb=function(n,i,r){return r=t(r),o.pa(n,"function"==typeof i?e(i.bind(null,r,n)):o.a.Da(i,a),r)};o.Ta=function(n,i){1!==i.nodeType&&8!==i.nodeType||s(t(n),i,!0)};o.Sa=function(n,i){if(i&&1!==i.nodeType&&8!==i.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");i=i||r.document.body;h(t(n),i,!0)};o.ta=function(t){switch(t.nodeType){case 1:case 8:var i=o.rb(t);if(i)return i;if(t.parentNode)return o.ta(t.parentNode)}return n};o.Cb=function(t){return(t=o.ta(t))?t.$data:n};o.b("bindingHandlers",o.d);o.b("applyBindings",o.Sa);o.b("applyBindingsToDescendants",o.Ta);o.b("applyBindingAccessorsToNode",o.pa);o.b("applyBindingsToNode",o.xb);o.b("contextFor",o.ta);o.b("dataFor",o.Cb)}();v={"class":"className","for":"htmlFor"};o.d.attr={update:function(t,i){var r=o.a.c(i())||{};o.a.K(r,function(i,r){r=o.a.c(r);var u=!1===r||null===r||r===n;u&&t.removeAttribute(i);8>=o.a.ja&&i in v?(i=v[i],u?t.removeAttribute(i):t[i]=r):u||t.setAttribute(i,r.toString());"name"===i&&o.a.pb(t,u?"":r.toString())})}},function(){o.d.checked={after:["value","attr"],init:function(t,i,r){function u(){return r.has("checkedValue")?o.a.c(r.get("checkedValue")):t.value}function c(){var c=t.checked,n=v?u():c,s;l&&(!f||c)&&(s=o.i.p(i),e?h!==n?(c&&(o.a.V(s,n,!0),o.a.V(s,h,!1)),h=n):o.a.V(s,n,c):o.g.oa(s,r,"checked",n,!0))}function a(){var n=o.a.c(i());t.checked=e?0<=o.a.l(n,u()):s?n:u()===n}var s="checkbox"==t.type,f="radio"==t.type;if(s||f){var e=s&&o.a.c(i())instanceof Array,h=e?u():n,v=f||e,l=!1;f&&!t.name&&o.d.uniqueName.init(t,function(){return!0});o.h(c,null,{I:t});o.a.r(t,"click",c);o.h(a,null,{I:t});l=!0}}};o.g.U.checked=!0;o.d.checkedValue={update:function(n,t){n.value=o.a.c(t())}}}();o.d.css={update:function(n,t){var i=o.a.c(t());"object"==typeof i?o.a.K(i,function(t,i){i=o.a.c(i);o.a.ma(n,t,i)}):(i=String(i||""),o.a.ma(n,n.__ko__cssValue,!1),n.__ko__cssValue=i,o.a.ma(n,i,!0))}};o.d.enable={update:function(n,t){var i=o.a.c(t());i&&n.disabled?n.removeAttribute("disabled"):i||n.disabled||(n.disabled=!0)}};o.d.disable={update:function(n,t){o.d.enable.update(n,function(){return!o.a.c(t())})}};o.d.event={init:function(n,t,i,r,u){var f=t()||{};o.a.K(f,function(f){"string"==typeof f&&o.a.r(n,f,function(n){var s,h=t()[f],e;if(h){try{e=o.a.Q(arguments);r=u.$data;e.unshift(r);s=h.apply(r,e)}finally{!0!==s&&(n.preventDefault?n.preventDefault():n.returnValue=!1)}!1===i.get(f+"Bubble")&&(n.cancelBubble=!0,n.stopPropagation&&n.stopPropagation())}})})}};o.d.foreach={hb:function(n){return function(){var i=n(),t=o.a.Ha(i);return!t||"number"==typeof t.length?{foreach:i,templateEngine:o.J.Aa}:(o.a.c(i),{foreach:t.data,as:t.as,includeDestroyed:t.includeDestroyed,afterAdd:t.afterAdd,beforeRemove:t.beforeRemove,afterRender:t.afterRender,beforeMove:t.beforeMove,afterMove:t.afterMove,templateEngine:o.J.Aa})}},init:function(n,t){return o.d.template.init(n,o.d.foreach.hb(t))},update:function(n,t,i,r,u){return o.d.template.update(n,o.d.foreach.hb(t),i,r,u)}};o.g.Y.foreach=!1;o.e.P.foreach=!0;o.d.hasfocus={init:function(n,t,i){function r(r){var u,f;if(n.__ko_hasfocusUpdating=!0,u=n.ownerDocument,"activeElement"in u){try{f=u.activeElement}catch(e){f=u.body}r=f===n}u=t();o.g.oa(u,i,"hasfocus",r,!0);n.__ko_hasfocusLastValue=r;n.__ko_hasfocusUpdating=!1}var u=r.bind(null,!0),f=r.bind(null,!1);o.a.r(n,"focus",u);o.a.r(n,"focusin",u);o.a.r(n,"blur",f);o.a.r(n,"focusout",f)},update:function(n,t){var i=!!o.a.c(t());n.__ko_hasfocusUpdating||n.__ko_hasfocusLastValue===i||(i?n.focus():n.blur(),o.i.p(o.a.da,null,[n,i?"focusin":"focusout"]))}};o.g.U.hasfocus=!0;o.d.hasFocus=o.d.hasfocus;o.g.U.hasFocus=!0;o.d.html={init:function(){return{controlsDescendantBindings:!0}},update:function(n,t){o.a.Ka(n,t())}};y=o.a.f.D();a("if");a("ifnot",!1,!0);a("with",!0,!1,function(n,t){return n.createChildContext(t)});o.d.options={init:function(n){if("select"!==o.a.v(n))throw Error("options binding applies only to SELECT elements");for(;0<n.length;)n.remove(0);return{controlsDescendantBindings:!0}},update:function(t,r,u){function l(){return o.a.ga(t.options,function(n){return n.selected})}function a(n,t,i){var r=typeof t;return"function"==r?t(n):"string"==r?n[t]:i}function v(n,i){if(f.length){var r=0<=o.a.l(f,o.k.o(i[0]));o.a.qb(i[0],r);c&&!r&&o.i.p(o.a.da,null,[t,"change"])}}var s=0!=t.length&&t.multiple?t.scrollTop:null,y,e,f,h,c;r=o.a.c(r());y=u.get("optionsIncludeDestroyed");e={};f=t.multiple?o.a.ha(l(),o.k.o):0<=t.selectedIndex?[o.k.o(t.options[t.selectedIndex])]:[];r?("undefined"==typeof r.length&&(r=[r]),h=o.a.ga(r,function(t){return y||t===n||null===t||!o.a.c(t._destroy)}),u.has("optionsCaption")&&(r=o.a.c(u.get("optionsCaption")),null!==r&&r!==n&&h.unshift(e))):r=[];c=!1;r=v;u.has("optionsAfterRender")&&(r=function(t,i){v(0,i);o.i.p(u.get("optionsAfterRender"),null,[i[0],t!==e?t:n])});o.a.Ja(t,h,function(t,r,s){return s.length&&(f=s[0].selected?[o.k.o(s[0])]:[],c=!0),r=i.createElement("option"),t===e?(o.a.Ma(r,u.get("optionsCaption")),o.k.na(r,n)):(s=a(t,u.get("optionsValue"),t),o.k.na(r,o.a.c(s)),t=a(t,u.get("optionsText"),s),o.a.Ma(r,t)),[r]},null,r);(t.multiple?f.length&&l().length<f.length:f.length&&0<=t.selectedIndex?o.k.o(t.options[t.selectedIndex])!==f[0]:f.length||0<=t.selectedIndex)&&o.i.p(o.a.da,null,[t,"change"]);o.a.Hb(t);s&&20<Math.abs(s-t.scrollTop)&&(t.scrollTop=s)}};o.d.options.Ea=o.a.f.D();o.d.selectedOptions={after:["options","foreach"],init:function(n,t,i){o.a.r(n,"change",function(){var u=t(),r=[];o.a.n(n.getElementsByTagName("option"),function(n){n.selected&&r.push(o.k.o(n))});o.g.oa(u,i,"selectedOptions",r)})},update:function(n,t){if("select"!=o.a.v(n))throw Error("values binding applies only to SELECT elements");var i=o.a.c(t());i&&"number"==typeof i.length&&o.a.n(n.getElementsByTagName("option"),function(n){var t=0<=o.a.l(i,o.k.o(n));o.a.qb(n,t)})}};o.g.U.selectedOptions=!0;o.d.style={update:function(n,t){var i=o.a.c(t()||{});o.a.K(i,function(t,i){i=o.a.c(i);n.style[t]=i||""})}};o.d.submit={init:function(n,t,i,r,u){if("function"!=typeof t())throw Error("The value for a submit binding must be a function");o.a.r(n,"submit",function(i){var r,f=t();try{r=f.call(u.$data,n)}finally{!0!==r&&(i.preventDefault?i.preventDefault():i.returnValue=!1)}})}};o.d.text={init:function(){return{controlsDescendantBindings:!0}},update:function(n,t){o.a.Ma(n,t())}};o.e.P.text=!0;o.d.uniqueName={init:function(n,t){if(t()){var i="ko_unique_"+ ++o.d.uniqueName.Bb;o.a.pb(n,i)}}};o.d.uniqueName.Bb=0;o.d.value={after:["options","foreach"],init:function(n,t,i){function f(){e=!1;var r=t(),u=o.k.o(n);o.g.oa(r,i,"value",u)}var r=["change"],u=i.get("valueUpdate"),e=!1;u&&("string"==typeof u&&(u=[u]),o.a.X(r,u),r=o.a.Va(r));!o.a.ja||"input"!=n.tagName.toLowerCase()||"text"!=n.type||"off"==n.autocomplete||n.form&&"off"==n.form.autocomplete||-1!=o.a.l(r,"propertychange")||(o.a.r(n,"propertychange",function(){e=!0}),o.a.r(n,"blur",function(){e&&f()}));o.a.n(r,function(t){var i=f;o.a.ac(t,"after")&&(i=function(){setTimeout(f,0)},t=t.substring(5));o.a.r(n,t,i)})},update:function(n,t){var u="select"===o.a.v(n),r=o.a.c(t()),i=o.k.o(n);r!==i&&(i=function(){o.k.na(n,r)},i(),u&&(r!==o.k.o(n)?o.i.p(o.a.da,null,[n,"change"]):setTimeout(i,0)))}};o.g.U.value=!0;o.d.visible={update:function(n,t){var i=o.a.c(t()),r="none"!=n.style.display;i&&!r?n.style.display="":!i&&r&&(n.style.display="none")}},function(n){o.d[n]={init:function(t,i,r,u,f){return o.d.event.init.call(this,t,function(){var t={};return t[n]=i(),t},r,u,f)}}}("click");o.w=function(){};o.w.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource");};o.w.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock");};o.w.prototype.makeTemplateSource=function(n,t){if("string"==typeof n){t=t||i;var r=t.getElementById(n);if(!r)throw Error("Cannot find template with ID "+n);return new o.m.j(r)}if(1==n.nodeType||8==n.nodeType)return new o.m.W(n);throw Error("Unknown template type: "+n);};o.w.prototype.renderTemplate=function(n,t,i,r){return n=this.makeTemplateSource(n,r),this.renderTemplateSource(n,t,i)};o.w.prototype.isTemplateRewritten=function(n,t){return!1===this.allowTemplateRewriting?!0:this.makeTemplateSource(n,t).data("isRewritten")};o.w.prototype.rewriteTemplate=function(n,t,i){n=this.makeTemplateSource(n,i);t=t(n.text());n.text(t);n.data("isRewritten",!0)};o.b("templateEngine",o.w);o.Oa=function(){function n(n,t,i,r){var s,f,u,e;for(n=o.g.Ga(n),s=o.g.Y,f=0;f<n.length;f++)if(u=n[f].key,s.hasOwnProperty(u))if(e=s[u],"function"==typeof e){if(u=e(n[f].value))throw Error(u);}else if(!e)throw Error("This template engine does not support the '"+u+"' binding within its templates");return i="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+o.g.ka(n,{valueAccessors:!0})+" } })()},'"+i.toLowerCase()+"')",r.createJavaScriptEvaluatorBlock(i)+t}var t=/(<([a-z]+\d*)(?:\s+(?!data-bind\s*=\s*)[a-z0-9\-]+(?:=(?:\"[^\"]*\"|\'[^\']*\'))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,i=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{Ib:function(n,t,i){t.isTemplateRewritten(n,i)||t.rewriteTemplate(n,function(n){return o.Oa.Ub(n,t)},i)},Ub:function(r,u){return r.replace(t,function(t,i,r,f,e){return n(e,i,r,u)}).replace(i,function(t,i){return n(i,"<!-- ko -->","#comment",u)})},yb:function(n,t){return o.u.Ca(function(i,r){var u=i.nextSibling;u&&u.nodeName.toLowerCase()===t&&o.pa(u,n,r)})}}}();o.b("__tr_ambtns",o.Oa.yb),function(){var i,t;o.m={};o.m.j=function(n){this.j=n};o.m.j.prototype.text=function(){var n=o.a.v(this.j),n="script"===n?"text":"textarea"===n?"value":"innerHTML",t;if(0==arguments.length)return this.j[n];t=arguments[0];"innerHTML"===n?o.a.Ka(this.j,t):this.j[n]=t};i=o.a.f.D()+"_";o.m.j.prototype.data=function(n){if(1===arguments.length)return o.a.f.get(this.j,i+n);o.a.f.set(this.j,i+n,arguments[1])};t=o.a.f.D();o.m.W=function(n){this.j=n};o.m.W.prototype=new o.m.j;o.m.W.prototype.text=function(){if(0==arguments.length){var i=o.a.f.get(this.j,t)||{};return i.Pa===n&&i.sa&&(i.Pa=i.sa.innerHTML),i.Pa}o.a.f.set(this.j,t,{Pa:arguments[0]})};o.m.j.prototype.nodes=function(){if(0==arguments.length)return(o.a.f.get(this.j,t)||{}).sa;o.a.f.set(this.j,t,{sa:arguments[0]})};o.b("templateSources",o.m);o.b("templateSources.domElement",o.m.j);o.b("templateSources.anonymousTemplate",o.m.W)}(),function(){function t(n,t,i){var r;for(t=o.e.nextSibling(t);n&&(r=n)!==t;)n=o.e.nextSibling(r),i(r,n)}function f(n,i){if(n.length){var r=n[0],u=n[n.length-1],f=r.parentNode,e=o.H.instance,s=e.preprocessNode;if(s){if(t(r,u,function(n,t){var f=n.previousSibling,i=s.call(e,n);i&&(n===r&&(r=i[0]||t),n===u&&(u=i[i.length-1]||f))}),n.length=0,!r)return;r===u?n.push(r):(n.push(r,u),o.a.$(n,f))}t(r,u,function(n){1!==n.nodeType&&8!==n.nodeType||o.Sa(i,n)});t(r,u,function(n){1!==n.nodeType&&8!==n.nodeType||o.u.vb(n,[i])});o.a.$(n,f)}}function i(n){return n.nodeType?n:0<n.length?n[0]:null}function e(n,t,u,e,s){s=s||{};var h=n&&i(n),h=h&&h.ownerDocument,c=s.templateEngine||r;if(o.Oa.Ib(u,c,h),u=c.renderTemplate(u,e,s,h),"number"!=typeof u.length||0<u.length&&"number"!=typeof u[0].nodeType)throw Error("Template engine must return an array of DOM nodes");h=!1;switch(t){case"replaceChildren":o.e.S(n,u);h=!0;break;case"replaceNode":o.a.nb(n,u);h=!0;break;case"ignoreTargetNode":break;default:throw Error("Unknown renderMode: "+t);}return h&&(f(u,e),s.afterRender&&o.i.p(s.afterRender,null,[u,e.$data])),u}var r,u;o.La=function(t){if(t!=n&&!(t instanceof o.w))throw Error("templateEngine must inherit from ko.templateEngine");r=t};o.Ia=function(t,u,f,s,h){if(f=f||{},(f.templateEngine||r)==n)throw Error("Set a template engine before calling renderTemplate");if(h=h||"replaceChildren",s){var c=i(s);return o.h(function(){var n=u&&u instanceof o.G?u:new o.G(o.a.c(u)),r="function"==typeof t?t(n.$data,n):t,n=e(s,h,r,n,f);"replaceNode"==h&&(s=n,c=i(s))},null,{ua:function(){return!c||!o.a.va(c)},I:c&&"replaceNode"==h?c.parentNode:c})}return o.u.Ca(function(n){o.Ia(t,u,f,n,"replaceNode")})};o.$b=function(t,i,r,u,s){function c(n,t){f(t,h);r.afterRender&&r.afterRender(t,n)}function l(n,i){h=s.createChildContext(n,r.as,function(n){n.$index=i});var u="function"==typeof t?t(n,h):t;return e(null,"ignoreTargetNode",u,h,r)}var h;return o.h(function(){var t=o.a.c(i)||[];"undefined"==typeof t.length&&(t=[t]);t=o.a.ga(t,function(t){return r.includeDestroyed||t===n||null===t||!o.a.c(t._destroy)});o.i.p(o.a.Ja,null,[u,t,l,r,c])},null,{I:u})};u=o.a.f.D();o.d.template={init:function(n,t){var i=o.a.c(t());return"string"==typeof i||i.name?o.e.Z(n):(i=o.e.childNodes(n),i=o.a.Vb(i),new o.m.W(n).nodes(i)),{controlsDescendantBindings:!0}},update:function(t,i,r,f,e){i=o.a.c(i());r={};f=!0;var s,h=null;"string"!=typeof i&&(r=i,i=o.a.c(r.name),"if"in r&&(f=o.a.c(r["if"])),f&&"ifnot"in r&&(f=!o.a.c(r.ifnot)),s=o.a.c(r.data));"foreach"in r?h=o.$b(i||t,f&&r.foreach||[],r,t,e):f?(e="data"in r?e.createChildContext(s,r.as):e,h=o.Ia(i||t,e,r,t)):o.e.Z(t);e=h;(s=o.a.f.get(t,u))&&"function"==typeof s.B&&s.B();o.a.f.set(t,u,e&&e.aa()?e:n)}};o.g.Y.template=function(n){return n=o.g.Ga(n),1==n.length&&n[0].unknown||o.g.Sb(n,"name")?null:"This template engine does not support anonymous templates nested within its templates"};o.e.P.template=!0}();o.b("setTemplateEngine",o.La);o.b("renderTemplate",o.Ia);o.a.ra=function(){function n(n,t,i,r,u){for(var o=Math.min,l=Math.max,s=[],a=n.length,f,h=t.length,c=h-a||1,w=a+h+1,v,p,b,y,e=0;e<=a;e++)for(p=v,s.push(v=[]),b=o(h,e+c),f=l(0,e-1);f<=b;f++)v[f]=f?e?n[e-1]===t[f-1]?p[f-1]:o(p[f]||w,v[f-1]||w)+1:f+1:e+1;for(o=[],l=[],c=[],e=a,f=h;e||f;)h=s[e][f]-1,f&&h===s[e][f-1]?l.push(o[o.length]={status:i,value:t[--f],index:f}):e&&h===s[e-1][f]?c.push(o[o.length]={status:r,value:n[--e],index:e}):(--f,--e,u.sparse||o.push({status:"retained",value:t[f]}));if(l.length&&c.length)for(n=10*a,t=i=0;(u.dontLimitMoves||t<n)&&(y=l[i]);i++){for(r=0;s=c[r];r++)if(y.value===s.value){y.moved=s.index;s.moved=y.index;c.splice(r,1);t=r=0;break}t+=r}return o.reverse()}return function(t,i,r){return r="boolean"==typeof r?{dontLimitMoves:r}:r||{},t=t||[],i=i||[],t.length<=i.length?n(t,i,"added","deleted",r):n(i,t,"deleted","added",r)}}();o.b("utils.compareArrays",o.a.ra),function(){function i(t,i,r,u,f){var e=[],s=o.h(function(){var n=i(r,f,o.a.$(e,t))||[];0<e.length&&(o.a.nb(e,n),u&&o.i.p(u,null,[r,n,f]));e.splice(0,e.length);o.a.X(e,n)},null,{I:t,ua:function(){return!o.a.Ra(e)}});return{R:e,h:s.aa()?s:n}}var t=o.a.f.D();o.a.Ja=function(r,u,f,e,s){function rt(n,t){h=d[t];nt!==t&&(it[n]=h);h.za(nt++);o.a.$(h.R,r);g.push(h);w.push(h)}function y(n,t){if(n)for(var i=0,r=t.length;i<r;i++)t[i]&&o.a.n(t[i].R,function(r){n(r,i,t[i].fa)})}var c,v,ut;u=u||[];e=e||{};var v=o.a.f.get(r,t)===n,d=o.a.f.get(r,t)||[],p=o.a.ha(d,function(n){return n.fa}),l=o.a.ra(p,u,e.dontLimitMoves),g=[],a=0,nt=0,tt=[],w=[];u=[];for(var it=[],p=[],h,c=0,b,k;b=l[c];c++)switch(k=b.moved,b.status){case"deleted":k===n&&(h=d[a],h.h&&h.h.B(),tt.push.apply(tt,o.a.$(h.R,r)),e.beforeRemove&&(u[c]=h,w.push(h)));a++;break;case"retained":rt(c,a++);break;case"added":k!==n?rt(c,k):(h={fa:b.value,za:o.q(nt++)},g.push(h),w.push(h),v||(p[c]=h))}for(y(e.beforeMove,it),o.a.n(tt,e.beforeRemove?o.L:o.removeNode),c=0,v=o.e.firstChild(r);h=w[c];c++){for(h.R||o.a.extend(h,i(r,f,h.fa,s,h.za)),a=0;l=h.R[a];v=l.nextSibling,ut=l,a++)l!==v&&o.e.eb(r,l,ut);!h.Ob&&s&&(s(h.fa,h.R,h.za),h.Ob=!0)}y(e.beforeRemove,u);y(e.afterMove,it);y(e.afterAdd,p);o.a.f.set(r,t,g)}}();o.b("utils.setDomNodeChildrenFromArrayMapping",o.a.Ja);o.J=function(){this.allowTemplateRewriting=!1};o.J.prototype=new o.w;o.J.prototype.renderTemplateSource=function(n){var t=(9>o.a.ja?0:n.nodes)?n.nodes():null;return t?o.a.Q(t.cloneNode(!0).childNodes):(n=n.text(),o.a.Fa(n))};o.J.Aa=new o.J;o.La(o.J.Aa);o.b("nativeTemplateEngine",o.J),function(){o.Ba=function(){var n=this.Rb=function(){if("undefined"==typeof t||!t.tmpl)return 0;try{if(0<=t.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(n){}return 1}();this.renderTemplateSource=function(r,u,f){if(f=f||{},2>n)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var e=r.data("precompiled");return e||(e=r.text()||"",e=t.template(null,"{{ko_with $item.koBindingContext}}"+e+"{{/ko_with}}"),r.data("precompiled",e)),r=[u.$data],u=t.extend({koBindingContext:u},f.templateOptions),u=t.tmpl(e,r,u),u.appendTo(i.createElement("div")),t.fragments={},u};this.createJavaScriptEvaluatorBlock=function(n){return"{{ko_code ((function() { return "+n+" })()) }}"};this.addTemplate=function(n,t){i.write("<script type='text/html' id='"+n+"'>"+t+"<\/script>")};0<n&&(t.tmpl.tag.ko_code={open:"__.push($1 || '');"},t.tmpl.tag.ko_with={open:"with($1) {",close:"} "})};o.Ba.prototype=new o.w;var n=new o.Ba;0<n.Rb&&o.La(n);o.b("jqueryTmplTemplateEngine",o.Ba)}()})})()}();typeof jwplayer=="undefined"&&(jwplayer=function(n){if(jwplayer.api)return jwplayer.api.selectPlayer(n)},$jw=jwplayer,jwplayer.version="5.10.2295 (Licensed version)",jwplayer.vid=document.createElement("video"),jwplayer.audio=document.createElement("audio"),jwplayer.source=document.createElement("source"),function(n){function t(t){if(n.utils.exists(t)){var i=t.indexOf("://"),r=t.indexOf("?");return i>0&&(r<0||r>i)}}n.utils=function(){};n.utils.typeOf=function(n){var t=typeof n;return t==="object"&&(n?n instanceof Array&&(t="array"):t="null"),t};n.utils.extend=function(){var t=n.utils.extend.arguments,i,r;if(t.length>1){for(i=1;i<t.length;i++)for(r in t[i])t[0][r]=t[i][r];return t[0]}return null};n.utils.clone=function(){var r,t=n.utils.clone.arguments,i;if(t.length==1)switch(n.utils.typeOf(t[0])){case"object":r={};for(i in t[0])r[i]=n.utils.clone(t[0][i]);break;case"array":r=[];for(i in t[0])r[i]=n.utils.clone(t[0][i]);break;default:return t[0]}return r};n.utils.extension=function(n){return n?(n=n.substring(n.lastIndexOf("/")+1,n.length),n=n.split("?")[0],n.lastIndexOf(".")>-1)?n.substr(n.lastIndexOf(".")+1,n.length).toLowerCase():void 0:""};n.utils.html=function(n,t){n.innerHTML=t};n.utils.wrap=function(n,t){n.parentNode&&n.parentNode.replaceChild(t,n);t.appendChild(n)};n.utils.ajax=function(t,i,r){var u;u=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");u.onreadystatechange=function(){if(u.readyState===4)if(u.status===200){if(i){if(!n.utils.exists(u.responseXML))try{if(window.DOMParser){var f=(new DOMParser).parseFromString(u.responseText,"text/xml");f&&(u=n.utils.extend({},u,{responseXML:f}))}else f=new ActiveXObject("Microsoft.XMLDOM"),f.async="false",f.loadXML(u.responseText),u=n.utils.extend({},u,{responseXML:f})}catch(e){r&&r(t)}i(u)}}else r&&r(t)};try{u.open("GET",t,!0);u.send(null)}catch(f){r&&r(t)}return u};n.utils.load=function(n,t,i){n.onreadystatechange=function(){n.readyState===4&&(n.status===200?t&&t():i&&i())}};n.utils.find=function(n,t){return n.getElementsByTagName(t)};n.utils.append=function(n,t){n.appendChild(t)};n.utils.isIE=function(){return!+"\v1"||typeof window.ActiveXObject!="undefined"};n.utils.userAgentMatch=function(n){var t=navigator.userAgent.toLowerCase();return t.match(n)!==null};n.utils.isIOS=function(){return n.utils.userAgentMatch(/iP(hone|ad|od)/i)};n.utils.isIPad=function(){return n.utils.userAgentMatch(/iPad/i)};n.utils.isIPod=function(){return n.utils.userAgentMatch(/iP(hone|od)/i)};n.utils.isAndroid=function(){return n.utils.userAgentMatch(/android/i)};n.utils.isLegacyAndroid=function(){return n.utils.userAgentMatch(/android 2.[012]/i)};n.utils.isBlackberry=function(){return n.utils.userAgentMatch(/blackberry/i)};n.utils.isMobile=function(){return n.utils.userAgentMatch(/(iP(hone|ad|od))|android/i)};n.utils.getFirstPlaylistItemFromConfig=function(n){var t={},i;return i=n.playlist&&n.playlist.length?n.playlist[0]:n,t.file=i.file,t.levels=i.levels,t.streamer=i.streamer,t.playlistfile=i.playlistfile,t.provider=i.provider,t.provider||(t.file&&(t.file.toLowerCase().indexOf("youtube.com")>-1||t.file.toLowerCase().indexOf("youtu.be")>-1)&&(t.provider="youtube"),t.streamer&&t.streamer.toLowerCase().indexOf("rtmp://")==0&&(t.provider="rtmp"),i.type&&(t.provider=i.type.toLowerCase())),t.provider=="audio"&&(t.provider="sound"),t};n.utils.getOuterHTML=function(n){if(n.outerHTML)return n.outerHTML;try{return(new XMLSerializer).serializeToString(n)}catch(t){return""}};n.utils.setOuterHTML=function(n,t){var i,r,u;n.outerHTML?n.outerHTML=t:(i=document.createElement("div"),i.innerHTML=t,r=document.createRange(),r.selectNodeContents(i),u=r.extractContents(),n.parentNode.insertBefore(u,n),n.parentNode.removeChild(n))};n.utils.hasFlash=function(){if(typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]!="undefined")return!0;if(typeof window.ActiveXObject!="undefined")try{return new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),!0}catch(n){}return!1};n.utils.getPluginName=function(n){return n.lastIndexOf("/")>=0&&(n=n.substring(n.lastIndexOf("/")+1,n.length)),n.lastIndexOf("-")>=0&&(n=n.substring(0,n.lastIndexOf("-"))),n.lastIndexOf(".swf")>=0&&(n=n.substring(0,n.lastIndexOf(".swf"))),n.lastIndexOf(".js")>=0&&(n=n.substring(0,n.lastIndexOf(".js"))),n};n.utils.getPluginVersion=function(n){return n.lastIndexOf("-")>=0?n.lastIndexOf(".js")>=0?n.substring(n.lastIndexOf("-")+1,n.lastIndexOf(".js")):n.lastIndexOf(".swf")>=0?n.substring(n.lastIndexOf("-")+1,n.lastIndexOf(".swf")):n.substring(n.lastIndexOf("-")+1):""};n.utils.getAbsolutePath=function(i,r){var e,h,u,o,s,f;if(n.utils.exists(r)||(r=document.location.href),!n.utils.exists(i))return undefined;if(t(i))return i;for(e=r.substring(0,r.indexOf("://")+3),h=r.substring(e.length,r.indexOf("/",e.length+1)),i.indexOf("/")===0?u=i.split("/"):(o=r.split("?")[0],o=o.substring(e.length+h.length+1,o.lastIndexOf("/")),u=o.split("/").concat(i.split("/"))),s=[],f=0;f<u.length;f++)if(u[f]&&n.utils.exists(u[f])&&u[f]!=".")u[f]==".."?s.pop():s.push(u[f]);else continue;return e+h+"/"+s.join("/")};n.utils.pluginPathType={ABSOLUTE:"ABSOLUTE",RELATIVE:"RELATIVE",CDN:"CDN"};n.utils.getPluginPathType=function(t){var i,u,r;if(typeof t=="string")return(t=t.split("?")[0],i=t.indexOf("://"),i>0)?n.utils.pluginPathType.ABSOLUTE:(u=t.indexOf("/"),r=n.utils.extension(t),i<0&&u<0&&(!r||!isNaN(r)))?n.utils.pluginPathType.CDN:n.utils.pluginPathType.RELATIVE};n.utils.mapEmpty=function(n){for(var t in n)return!1;return!0};n.utils.mapLength=function(n){var t=0,i;for(i in n)t++;return t};n.utils.log=function(n,t){typeof console!="undefined"&&typeof console.log!="undefined"&&(t?console.log(n,t):console.log(n))};n.utils.css=function(t,i){if(n.utils.exists(t))for(var r in i)try{if(typeof i[r]=="undefined")continue;else if(typeof i[r]=="number"&&!(r=="zIndex"||r=="opacity")){if(isNaN(i[r]))continue;i[r]=r.match(/color/i)?"#"+n.utils.strings.pad(i[r].toString(16),6):Math.ceil(i[r])+"px"}t.style[r]=i[r]}catch(u){}};n.utils.isYouTube=function(n){return n.indexOf("youtube.com")>-1||n.indexOf("youtu.be")>-1};n.utils.transform=function(t,i,r,u,f){if(n.utils.exists(i)||(i=1),n.utils.exists(r)||(r=1),n.utils.exists(u)||(u=0),n.utils.exists(f)||(f=0),i==1&&r==1&&u==0&&f==0)t.style.webkitTransform="",t.style.MozTransform="",t.style.OTransform="";else{var e="scale("+i+","+r+") translate("+u+"px,"+f+"px)";t.style.webkitTransform=e;t.style.MozTransform=e;t.style.OTransform=e}};n.utils.stretch=function(t,i,r,u,f,e){var l,a;if(typeof r!="undefined"&&typeof u!="undefined"&&typeof f!="undefined"&&typeof e!="undefined"){var s=r/f,h=u/e,c=!1,o={};i.parentElement&&(i.parentElement.style.overflow="hidden");n.utils.transform(i);switch(t.toUpperCase()){case n.utils.stretching.NONE:o.width=f;o.height=e;o.top=(u-o.height)/2;o.left=(r-o.width)/2;break;case n.utils.stretching.UNIFORM:s>h?(o.width=f*h,o.height=e*h,o.width/r>.95&&(c=!0,s=Math.ceil(100*r/o.width)/100,h=1,o.width=r)):(o.width=f*s,o.height=e*s,o.height/u>.95&&(c=!0,s=1,h=Math.ceil(100*u/o.height)/100,o.height=u));o.top=(u-o.height)/2;o.left=(r-o.width)/2;break;case n.utils.stretching.FILL:s>h?(o.width=f*s,o.height=e*s):(o.width=f*h,o.height=e*h);o.top=(u-o.height)/2;o.left=(r-o.width)/2;break;case n.utils.stretching.EXACTFIT:o.width=f;o.height=e;l=Math.round(f/2*(1-1/s));a=Math.round(e/2*(1-1/h));c=!0;o.top=o.left=0}c&&n.utils.transform(i,s,h,l,a);n.utils.css(i,o)}};n.utils.stretching={NONE:"NONE",FILL:"FILL",UNIFORM:"UNIFORM",EXACTFIT:"EXACTFIT"};n.utils.deepReplaceKeyName=function(t,i,r){var f,o,s,e,u;switch(n.utils.typeOf(t)){case"array":for(u=0;u<t.length;u++)t[u]=n.utils.deepReplaceKeyName(t[u],i,r);break;case"object":for(f in t){if(i instanceof Array&&r instanceof Array)if(i.length!=r.length)continue;else o=i,s=r;else o=[i],s=[r];for(e=f,u=0;u<o.length;u++)e=e.replace(new RegExp(i[u],"g"),r[u]);t[e]=n.utils.deepReplaceKeyName(t[f],i,r);f!=e&&delete t[f]}}return t};n.utils.isInArray=function(n,t){if(!n||!(n instanceof Array))return!1;for(var i=0;i<n.length;i++)if(t===n[i])return!0;return!1};n.utils.exists=function(n){switch(typeof n){case"string":return n.length>0;case"object":return n!==null;case"undefined":return!1}return!0};n.utils.empty=function(n){if(typeof n.hasChildNodes=="function")while(n.hasChildNodes())n.removeChild(n.firstChild)};n.utils.parseDimension=function(n){return typeof n=="string"?n===""?0:n.lastIndexOf("%")>-1?n:parseInt(n.replace("px",""),10):n};n.utils.getDimensions=function(t){return t&&t.style?{x:n.utils.parseDimension(t.style.left),y:n.utils.parseDimension(t.style.top),width:n.utils.parseDimension(t.style.width),height:n.utils.parseDimension(t.style.height)}:{}};n.utils.getElementWidth=function(t){return t?t==document.body?n.utils.parentNode(t).clientWidth:t.clientWidth>0?t.clientWidth:t.style?n.utils.parseDimension(t.style.width):null:null};n.utils.getElementHeight=function(t){return t?t==document.body?n.utils.parentNode(t).clientHeight:t.clientHeight>0?t.clientHeight:t.style?n.utils.parseDimension(t.style.height):null:null};n.utils.timeFormat=function(n){return str="00:00",n>0&&(str=(Math.floor(n/60)<10?"0"+Math.floor(n/60)+":":Math.floor(n/60)+":")+(Math.floor(n%60)<10?"0"+Math.floor(n%60):Math.floor(n%60))),str};n.utils.useNativeFullscreen=function(){return navigator&&navigator.vendor&&navigator.vendor.indexOf("Apple")==0};n.utils.parentNode=function(n){return n?n.parentNode?n.parentNode:n.parentElement?n.parentElement:n:document.body};n.utils.getBoundingClientRect=function(n){return typeof n.getBoundingClientRect=="function"?n.getBoundingClientRect():{left:n.offsetLeft+document.body.scrollLeft,top:n.offsetTop+document.body.scrollTop,width:n.offsetWidth,height:n.offsetHeight}};n.utils.translateEventResponse=function(t,i){var r=n.utils.extend({},i),u,f;t!=n.api.events.JWPLAYER_FULLSCREEN||r.fullscreen?typeof r.data=="object"?(r=n.utils.extend(r,r.data),delete r.data):typeof r.metadata=="object"&&n.utils.deepReplaceKeyName(r.metadata,["__dot__","__spc__","__dsh__"],["."," ","-"]):(r.fullscreen=r.message=="true"?!0:!1,delete r.message);u=["position","duration","offset"];for(f in u)r[u[f]]&&(r[u[f]]=Math.round(r[u[f]]*1e3)/1e3);return r};n.utils.saveCookie=function(n,t){document.cookie="jwplayer."+n+"="+t+"; path=/"};n.utils.getCookies=function(){for(var i={},r=document.cookie.split("; "),n,t=0;t<r.length;t++)n=r[t].split("="),n[0].indexOf("jwplayer.")==0&&(i[n[0].substring(9,n[0].length)]=n[1]);return i};n.utils.readCookie=function(t){return n.utils.getCookies()[t]}}(jwplayer),function(n){n.events=function(){};n.events.COMPLETE="COMPLETE";n.events.ERROR="ERROR"}(jwplayer),function(n){n.events.eventdispatcher=function(t){var u=t,i,r;this.resetEventListeners=function(){i={};r=[]};this.resetEventListeners();this.addEventListener=function(type,listener,count){try{n.utils.exists(i[type])||(i[type]=[]);typeof listener=="string"&&eval("listener = "+listener);i[type].push({listener:listener,count:count})}catch(err){n.utils.log("error",err)}return!1};this.removeEventListener=function(t,r){if(i[t]){try{for(var u=0;u<i[t].length;u++)if(i[t][u].listener.toString()==r.toString()){i[t].splice(u,1);break}}catch(f){n.utils.log("error",f)}return!1}};this.addGlobalListener=function(listener,count){try{typeof listener=="string"&&eval("listener = "+listener);r.push({listener:listener,count:count})}catch(err){n.utils.log("error",err)}return!1};this.removeGlobalListener=function(t){if(t){try{for(var i=0;i<r.length;i++)if(r[i].listener.toString()==t.toString()){r.splice(i,1);break}}catch(u){n.utils.log("error",u)}return!1}};this.sendEvent=function(t,f){var e,o;if(n.utils.exists(f)||(f={}),u&&n.utils.log(t,f),typeof i[t]!="undefined")for(e=0;e<i[t].length;e++){try{i[t][e].listener(f)}catch(s){n.utils.log("There was an error while handling a listener: "+s.toString(),i[t][e].listener)}i[t][e]&&(i[t][e].count===1?delete i[t][e]:i[t][e].count>0&&(i[t][e].count=i[t][e].count-1))}for(o=0;o<r.length;o++){try{r[o].listener(f)}catch(s){n.utils.log("There was an error while handling a listener: "+s.toString(),r[o].listener)}r[o]&&(r[o].count===1?delete r[o]:r[o].count>0&&(r[o].count=r[o].count-1))}}}}(jwplayer),function(n){var t={};n.utils.animations=function(){};n.utils.animations.transform=function(n,t){n.style.webkitTransform=t;n.style.MozTransform=t;n.style.OTransform=t;n.style.msTransform=t};n.utils.animations.transformOrigin=function(n,t){n.style.webkitTransformOrigin=t;n.style.MozTransformOrigin=t;n.style.OTransformOrigin=t;n.style.msTransformOrigin=t};n.utils.animations.rotate=function(t,i){n.utils.animations.transform(t,["rotate(",i,"deg)"].join(""))};n.utils.cancelAnimation=function(n){delete t[n.id]};n.utils.fadeTo=function(i,r,u,f,e,o){var h,c,l,s;if((t[i.id]==o||!n.utils.exists(o))&&i.style.opacity!=r){if(h=(new Date).getTime(),o>h&&setTimeout(function(){n.utils.fadeTo(i,r,u,f,0,o)},o-h),i.style.display=="none"&&(i.style.display="block"),n.utils.exists(f)||(f=i.style.opacity===""?1:i.style.opacity),i.style.opacity==r&&i.style.opacity!==""&&n.utils.exists(o)){r===0&&(i.style.display="none");return}if(n.utils.exists(o)||(o=h,t[i.id]=o),n.utils.exists(e)||(e=0),c=u>0?(h-o)/(u*1e3):0,c=c>1?1:c,l=r-f,s=f+c*l,s>1?s=1:s<0&&(s=0),i.style.opacity=s,e>0){t[i.id]=o+e*1e3;n.utils.fadeTo(i,r,u,f,0,t[i.id]);return}setTimeout(function(){n.utils.fadeTo(i,r,u,f,0,o)},10)}}}(jwplayer),function(n){n.utils.arrays=function(){};n.utils.arrays.indexOf=function(n,t){for(var i=0;i<n.length;i++)if(n[i]==t)return i;return-1};n.utils.arrays.remove=function(t,i){var r=n.utils.arrays.indexOf(t,i);r>-1&&t.splice(r,1)}}(jwplayer),function(n){n.utils.extensionmap={"3gp":{html5:"video/3gpp",flash:"video"},"3gpp":{html5:"video/3gpp"},"3g2":{html5:"video/3gpp2",flash:"video"},"3gpp2":{html5:"video/3gpp2"},flv:{flash:"video"},f4a:{html5:"audio/mp4"},f4b:{html5:"audio/mp4",flash:"video"},f4v:{html5:"video/mp4",flash:"video"},mov:{html5:"video/quicktime",flash:"video"},m4a:{html5:"audio/mp4",flash:"video"},m4b:{html5:"audio/mp4"},m4p:{html5:"audio/mp4"},m4v:{html5:"video/mp4",flash:"video"},mp4:{html5:"video/mp4",flash:"video"},rbs:{flash:"sound"},aac:{html5:"audio/aac",flash:"video"},mp3:{html5:"audio/mp3",flash:"sound"},ogg:{html5:"audio/ogg"},oga:{html5:"audio/ogg"},ogv:{html5:"video/ogg"},webm:{html5:"video/webm"},m3u8:{html5:"audio/x-mpegurl"},gif:{flash:"image"},jpeg:{flash:"image"},jpg:{flash:"image"},swf:{flash:"image"},png:{flash:"image"},wav:{html5:"audio/x-wav"}}}(jwplayer),function(n){function i(t,i){return n.utils.exists(i)?n.utils.extend(i,f[t]):i=f[t],i}function r(r,u){var e,o,s,f;if(t[r.tagName.toLowerCase()]&&!n.utils.exists(u))return t[r.tagName.toLowerCase()](r);u=i("element",u);e={};for(o in u)o!="length"&&(s=r.getAttribute(o),n.utils.exists(s)&&(e[u[o]]=s));return f=r.style["#background-color"],!f||f=="transparent"||f=="rgba(0, 0, 0, 0)"||(e.screencolor=f),e}function u(t,u){var o,s,h,f;u=i("media",u);o=[];s=n.utils.selectors("source",t);for(h in s)isNaN(h)||o.push(e(s[h]));return f=r(t,u),n.utils.exists(f.file)&&(o[0]={file:f.file}),f.levels=o,f}function e(n,t){t=i("source",t);var u=r(n,t);return u.width=u.width?u.width:0,u.bitrate=u.bitrate?u.bitrate:0,u}function o(n,t){t=i("video",t);return u(n,t)}n.utils.mediaparser=function(){};var f={element:{width:"width",height:"height",id:"id","class":"className",name:"name"},media:{src:"file",preload:"preload",autoplay:"autostart",loop:"repeat",controls:"controls"},source:{src:"file",type:"type",media:"media","data-jw-width":"width","data-jw-bitrate":"bitrate"},video:{poster:"image"}},t={};n.utils.mediaparser.parseMedia=function(n){return r(n)};t.media=u;t.audio=u;t.source=e;t.video=o}(jwplayer),function(n){n.utils.loaderstatus={NEW:"NEW",LOADING:"LOADING",ERROR:"ERROR",COMPLETE:"COMPLETE"};n.utils.scriptloader=function(t){var i=n.utils.loaderstatus.NEW,r=new n.events.eventdispatcher;n.utils.extend(this,r);this.load=function(){if(i==n.utils.loaderstatus.NEW){i=n.utils.loaderstatus.LOADING;var u=document.createElement("script");u.onload=function(){i=n.utils.loaderstatus.COMPLETE;r.sendEvent(n.events.COMPLETE)};u.onerror=function(){i=n.utils.loaderstatus.ERROR;r.sendEvent(n.events.ERROR)};u.onreadystatechange=function(){(u.readyState=="loaded"||u.readyState=="complete")&&(i=n.utils.loaderstatus.COMPLETE,r.sendEvent(n.events.COMPLETE))};document.getElementsByTagName("head")[0].appendChild(u);u.src=t}};this.getStatus=function(){return i}}}(jwplayer),function(n){n.utils.selectors=function(t,i){var r,u;return n.utils.exists(i)||(i=document),t=n.utils.strings.trim(t),r=t.charAt(0),r=="#"?i.getElementById(t.substr(1)):r=="."?i.getElementsByClassName?i.getElementsByClassName(t.substr(1)):n.utils.selectors.getElementsByTagAndClass("*",t.substr(1)):t.indexOf(".")>0?(u=t.split("."),n.utils.selectors.getElementsByTagAndClass(u[0],u[1])):i.getElementsByTagName(t)};n.utils.selectors.getElementsByTagAndClass=function(t,i,r){var s=[],f,u,o,e;for(n.utils.exists(r)||(r=document),f=r.getElementsByTagName(t),u=0;u<f.length;u++)if(n.utils.exists(f[u].className))for(o=f[u].className.split(" "),e=0;e<o.length;e++)o[e]==i&&s.push(f[u]);return s}}(jwplayer),function(n){n.utils.strings=function(){};n.utils.strings.trim=function(n){return n.replace(/^\s*/,"").replace(/\s*$/,"")};n.utils.strings.pad=function(n,t,i){for(i||(i="0");n.length<t;)n=i+n;return n};n.utils.strings.serialize=function(n){return n==null?null:n=="true"?!0:n=="false"?!1:isNaN(Number(n))||n.length>5||n.length==0?n:Number(n)};n.utils.strings.seconds=function(n){n=n.replace(",",".");var t=n.split(":"),i=0;return n.substr(-1)=="s"?i=Number(n.substr(0,n.length-1)):n.substr(-1)=="m"?i=Number(n.substr(0,n.length-1))*60:n.substr(-1)=="h"?i=Number(n.substr(0,n.length-1))*3600:t.length>1?(i=Number(t[t.length-1]),i+=Number(t[t.length-2])*60,t.length==3&&(i+=Number(t[t.length-3])*3600)):i=Number(n),i};n.utils.strings.xmlAttribute=function(n,t){for(var i=0;i<n.attributes.length;i++)if(n.attributes[i].name&&n.attributes[i].name.toLowerCase()==t.toLowerCase())return n.attributes[i].value.toString();return""};n.utils.strings.jsonToString=function(t){var u=u||{},f,r,e,o,i;if(u&&u.stringify)return u.stringify(t);if(f=typeof t,f!="object"||t===null)if(f=="string")t='"'+t.replace(/"/g,'\\"')+'"';else return String(t);else{r=[];e=t&&t.constructor==Array;for(o in t){i=t[o];switch(typeof i){case"string":i='"'+i.replace(/"/g,'\\"')+'"';break;case"object":n.utils.exists(i)&&(i=n.utils.strings.jsonToString(i))}e?typeof i!="function"&&r.push(String(i)):typeof i!="function"&&r.push('"'+o+'":'+String(i))}return e?"["+String(r)+"]":"{"+String(r)+"}"}}}(jwplayer),function(n){function i(n){if(["true","false","t","f"].toString().indexOf(n.toLowerCase().replace(" ",""))>=0)return"boolean";if(t.test(n))return"color";if(isNaN(parseInt(n,10))||parseInt(n,10).toString().length!=n.length){if(!isNaN(parseFloat(n))&&parseFloat(n).toString().length==n.length)return"float"}else return"integer";return"string"}function r(t,i){if(!n.utils.exists(i))return t;switch(i){case"color":return t.length>0?u(t):null;case"integer":return parseInt(t,10);case"float":return parseFloat(t);case"boolean":return t.toLowerCase()=="true"?!0:t=="1"?!0:!1}return t}function u(n){switch(n.toLowerCase()){case"blue":return parseInt("0000FF",16);case"green":return parseInt("00FF00",16);case"red":return parseInt("FF0000",16);case"cyan":return parseInt("00FFFF",16);case"magenta":return parseInt("FF00FF",16);case"yellow":return parseInt("FFFF00",16);case"black":return parseInt("000000",16);case"white":return parseInt("FFFFFF",16);default:return n=n.replace(/(#|0x)?([0-9A-F]{3,6})$/gi,"$2"),n.length==3&&(n=n.charAt(0)+n.charAt(0)+n.charAt(1)+n.charAt(1)+n.charAt(2)+n.charAt(2)),parseInt(n,16)}return parseInt("000000",16)}var t=new RegExp(/^(#|0x)[0-9a-fA-F]{3,6}/);n.utils.typechecker=function(t,u){return u=n.utils.exists(u)?u:i(t),r(t,u)}}(jwplayer),function(n){n.utils.parsers=function(){};n.utils.parsers.localName=function(n){return n?n.localName?n.localName:n.baseName?n.baseName:"":""};n.utils.parsers.textContent=function(n){return n?n.textContent?n.textContent:n.text?n.text:"":""}}(jwplayer),function(n){n.utils.parsers.jwparser=function(){};n.utils.parsers.jwparser.PREFIX="jwplayer";n.utils.parsers.jwparser.parseEntry=function(t,i){for(var r=0;r<t.childNodes.length;r++)t.childNodes[r].prefix==n.utils.parsers.jwparser.PREFIX&&(i[n.utils.parsers.localName(t.childNodes[r])]=n.utils.strings.serialize(n.utils.parsers.textContent(t.childNodes[r])),n.utils.parsers.localName(t.childNodes[r])=="file"&&i.levels&&delete i.levels),!i.file&&String(i.link).toLowerCase().indexOf("youtube")>-1&&(i.file=i.link);return i};n.utils.parsers.jwparser.getProvider=function(t){if(t.type)return t.type;if(t.file.indexOf("youtube.com/w")>-1||t.file.indexOf("youtube.com/v")>-1||t.file.indexOf("youtu.be/")>-1)return"youtube";if(t.streamer&&t.streamer.indexOf("rtmp")==0)return"rtmp";if(t.streamer&&t.streamer.indexOf("http")==0)return"http";var i=n.utils.strings.extension(t.file);return extensions.hasOwnProperty(i)?extensions[i]:""}}(jwplayer),function(n){n.utils.parsers.mediaparser=function(){};n.utils.parsers.mediaparser.PREFIX="media";n.utils.parsers.mediaparser.parseGroup=function(t,i){for(var f=!1,u,r=0;r<t.childNodes.length;r++)if(t.childNodes[r].prefix==n.utils.parsers.mediaparser.PREFIX){if(!n.utils.parsers.localName(t.childNodes[r]))continue;switch(n.utils.parsers.localName(t.childNodes[r]).toLowerCase()){case"content":f||(i.file=n.utils.strings.xmlAttribute(t.childNodes[r],"url"));n.utils.strings.xmlAttribute(t.childNodes[r],"duration")&&(i.duration=n.utils.strings.seconds(n.utils.strings.xmlAttribute(t.childNodes[r],"duration")));n.utils.strings.xmlAttribute(t.childNodes[r],"start")&&(i.start=n.utils.strings.seconds(n.utils.strings.xmlAttribute(t.childNodes[r],"start")));t.childNodes[r].childNodes&&t.childNodes[r].childNodes.length>0&&(i=n.utils.parsers.mediaparser.parseGroup(t.childNodes[r],i));(n.utils.strings.xmlAttribute(t.childNodes[r],"width")||n.utils.strings.xmlAttribute(t.childNodes[r],"bitrate")||n.utils.strings.xmlAttribute(t.childNodes[r],"url"))&&(i.levels||(i.levels=[]),i.levels.push({width:n.utils.strings.xmlAttribute(t.childNodes[r],"width"),bitrate:n.utils.strings.xmlAttribute(t.childNodes[r],"bitrate"),file:n.utils.strings.xmlAttribute(t.childNodes[r],"url")}));break;case"title":i.title=n.utils.parsers.textContent(t.childNodes[r]);break;case"description":i.description=n.utils.parsers.textContent(t.childNodes[r]);break;case"keywords":i.tags=n.utils.parsers.textContent(t.childNodes[r]);break;case"thumbnail":i.image=n.utils.strings.xmlAttribute(t.childNodes[r],"url");break;case"credit":i.author=n.utils.parsers.textContent(t.childNodes[r]);break;case"player":u=t.childNodes[r].url;(u.indexOf("youtube.com")>=0||u.indexOf("youtu.be")>=0)&&(f=!0,i.file=n.utils.strings.xmlAttribute(t.childNodes[r],"url"));break;case"group":n.utils.parsers.mediaparser.parseGroup(t.childNodes[r],i)}}return i}}(jwplayer),function(n){function t(t){for(var i={},r=0;r<t.childNodes.length;r++)if(n.utils.parsers.localName(t.childNodes[r]))switch(n.utils.parsers.localName(t.childNodes[r]).toLowerCase()){case"enclosure":i.file=n.utils.strings.xmlAttribute(t.childNodes[r],"url");break;case"title":i.title=n.utils.parsers.textContent(t.childNodes[r]);break;case"pubdate":i.date=n.utils.parsers.textContent(t.childNodes[r]);break;case"description":i.description=n.utils.parsers.textContent(t.childNodes[r]);break;case"link":i.link=n.utils.parsers.textContent(t.childNodes[r]);break;case"category":i.tags?i.tags+=n.utils.parsers.textContent(t.childNodes[r]):i.tags=n.utils.parsers.textContent(t.childNodes[r])}return i=n.utils.parsers.mediaparser.parseGroup(t,i),i=n.utils.parsers.jwparser.parseEntry(t,i),new n.html5.playlistitem(i)}n.utils.parsers.rssparser=function(){};n.utils.parsers.rssparser.parse=function(i){for(var f=[],u,r=0;r<i.childNodes.length;r++)if(n.utils.parsers.localName(i.childNodes[r]).toLowerCase()=="channel")for(u=0;u<i.childNodes[r].childNodes.length;u++)n.utils.parsers.localName(i.childNodes[r].childNodes[u]).toLowerCase()=="item"&&f.push(t(i.childNodes[r].childNodes[u]));return f}}(jwplayer),function(n){var i={},t={};n.plugins=function(){};n.plugins.loadPlugins=function(r,u){return t[r]=new n.plugins.pluginloader(new n.plugins.model(i),u),t[r]};n.plugins.registerPlugin=function(r,u,f){var e=n.utils.getPluginName(r),o;if(i[e])i[e].registerPlugin(r,u,f);else{n.utils.log("A plugin ("+r+") was registered with the player that was not loaded. Please check your configuration.");for(o in t)t[o].pluginFailed()}}}(jwplayer),function(n){n.plugins.model=function(t){this.addPlugin=function(i){var r=n.utils.getPluginName(i);return t[r]||(t[r]=new n.plugins.plugin(i)),t[r]}}}(jwplayer),function(n){n.plugins.pluginmodes={FLASH:"FLASH",JAVASCRIPT:"JAVASCRIPT",HYBRID:"HYBRID"};n.plugins.plugin=function(t){function s(){switch(n.utils.getPluginPathType(t)){case n.utils.pluginPathType.ABSOLUTE:return t;case n.utils.pluginPathType.RELATIVE:return n.utils.getAbsolutePath(t,window.location.href);case n.utils.pluginPathType.CDN:var i=n.utils.getPluginName(t),r=n.utils.getPluginVersion(t),u=window.location.href.indexOf("https://")==0?o.replace("http://","https://secure"):o;return u+"/"+n.version.split(".")[0]+"/"+i+"/"+i+(r!==""?"-"+r:"")+".js"}}function h(){e=setTimeout(function(){r=n.utils.loaderstatus.COMPLETE;f.sendEvent(n.events.COMPLETE)},1e3)}function c(){r=n.utils.loaderstatus.ERROR;f.sendEvent(n.events.ERROR)}var o="http://lp.longtailvideo.com",r=n.utils.loaderstatus.NEW,i,u,e,f=new n.events.eventdispatcher;n.utils.extend(this,f);this.load=function(){if(r==n.utils.loaderstatus.NEW){if(t.lastIndexOf(".swf")>0){i=t;r=n.utils.loaderstatus.COMPLETE;f.sendEvent(n.events.COMPLETE);return}r=n.utils.loaderstatus.LOADING;var u=new n.utils.scriptloader(s());u.addEventListener(n.events.COMPLETE,h);u.addEventListener(n.events.ERROR,c);u.load()}};this.registerPlugin=function(t,o,s){e&&(clearTimeout(e),e=undefined);o&&s?(i=s,u=o):typeof o=="string"?i=o:typeof o=="function"?u=o:o||s||(i=t);r=n.utils.loaderstatus.COMPLETE;f.sendEvent(n.events.COMPLETE)};this.getStatus=function(){return r};this.getPluginName=function(){return n.utils.getPluginName(t)};this.getFlashPath=function(){if(i)switch(n.utils.getPluginPathType(i)){case n.utils.pluginPathType.ABSOLUTE:return i;case n.utils.pluginPathType.RELATIVE:return t.lastIndexOf(".swf")>0?n.utils.getAbsolutePath(i,window.location.href):n.utils.getAbsolutePath(i,s());case n.utils.pluginPathType.CDN:return i.indexOf("-")>-1?i+"h":i+"-h"}return null};this.getJS=function(){return u};this.getPluginmode=function(){return typeof i!="undefined"&&typeof u!="undefined"?n.plugins.pluginmodes.HYBRID:typeof i!="undefined"?n.plugins.pluginmodes.FLASH:typeof u!="undefined"?n.plugins.pluginmodes.JAVASCRIPT:void 0};this.getNewInstance=function(n,t,i){return new u(n,t,i)};this.getURL=function(){return t}}}(jwplayer),function(n){n.plugins.pluginloader=function(t,i){function h(){f||(f=!0,u=n.utils.loaderstatus.COMPLETE,s.sendEvent(n.events.COMPLETE))}function e(){var t,i;if(!f){t=0;for(plugin in r)i=r[plugin].getStatus(),(i==n.utils.loaderstatus.LOADING||i==n.utils.loaderstatus.NEW)&&t++;t==0&&h()}}var r={},u=n.utils.loaderstatus.NEW,o=!1,f=!1,s=new n.events.eventdispatcher;n.utils.extend(this,s);this.setupPlugins=function(n,t,i){var s={length:0,plugins:{}},f={length:0,plugins:{}},u,o,e;for(u in r)if(o=r[u].getPluginName(),r[u].getFlashPath()&&(s.plugins[r[u].getFlashPath()]=t.plugins[u],s.plugins[r[u].getFlashPath()].pluginmode=r[u].getPluginmode(),s.length++),r[u].getJS()&&(e=document.createElement("div"),e.id=n.id+"_"+o,e.style.position="absolute",e.style.zIndex=f.length+10,f.plugins[o]=r[u].getNewInstance(n,t.plugins[u],e),f.length++,typeof f.plugins[o].resize!="undefined")){n.onReady(i(f.plugins[o],e,!0));n.onResize(i(f.plugins[o],e))}return n.plugins=f.plugins,s};this.load=function(){u=n.utils.loaderstatus.LOADING;o=!0;for(var f in i)n.utils.exists(f)&&(r[f]=t.addPlugin(f),r[f].addEventListener(n.events.COMPLETE,e),r[f].addEventListener(n.events.ERROR,e));for(f in r)r[f].load();o=!1;e()};this.pluginFailed=function(){h()};this.getStatus=function(){return u}}}(jwplayer),function(n){var t=[];n.api=function(t){function v(n,t){return function(r,u,e,o){if(n.renderingMode=="flash"||n.renderingMode=="html5"){var s;u?(f[r]=u,s="jwplayer('"+n.id+"').callback('"+r+"')"):!u&&f[r]&&delete f[r];i.jwDockSetButton(r,s,e,o)}return t}}function a(t){s=[];n.utils.getOuterHTML(t.container)!=l&&n.api.destroyPlayer(t.id,l)}function y(n){return function(t){var u=t.newstate,f=t.oldstate,i,r;if(u==n&&(i=e[u],i))for(r=0;r<i.length;r++)typeof i[r]=="function"&&i[r].call(this,{oldstate:f,newstate:u})}}function p(n,t){return function(i){var r,f;if(n==i.component&&(r=u[n][t],r))for(f=0;f<r.length;f++)typeof r[f]=="function"&&r[f].call(this,i)}}this.container=t;this.id=t.id;var r={},e={},u={},i=undefined,o=!1,s=[],h=undefined,l=n.utils.getOuterHTML(t),c={},f={};return this.getBuffer=function(){return this.callInternal("jwGetBuffer")},this.getContainer=function(){return this.container},this.getPlugin=function(t){var r=this,i={};return t=="dock"?n.utils.extend(i,{setButton:v(r,i),show:function(){return r.callInternal("jwDockShow"),i},hide:function(){return r.callInternal("jwDockHide"),i},onShow:function(t){return r.componentListener("dock",n.api.events.JWPLAYER_COMPONENT_SHOW,t),i},onHide:function(t){return r.componentListener("dock",n.api.events.JWPLAYER_COMPONENT_HIDE,t),i}}):t=="controlbar"?n.utils.extend(i,{show:function(){return r.callInternal("jwControlbarShow"),i},hide:function(){return r.callInternal("jwControlbarHide"),i},onShow:function(t){return r.componentListener("controlbar",n.api.events.JWPLAYER_COMPONENT_SHOW,t),i},onHide:function(t){return r.componentListener("controlbar",n.api.events.JWPLAYER_COMPONENT_HIDE,t),i}}):t=="display"?n.utils.extend(i,{show:function(){return r.callInternal("jwDisplayShow"),i},hide:function(){return r.callInternal("jwDisplayHide"),i},onShow:function(t){return r.componentListener("display",n.api.events.JWPLAYER_COMPONENT_SHOW,t),i},onHide:function(t){return r.componentListener("display",n.api.events.JWPLAYER_COMPONENT_HIDE,t),i}}):this.plugins[t]},this.callback=function(n){if(f[n])return f[n]()},this.getDuration=function(){return this.callInternal("jwGetDuration")},this.getFullscreen=function(){return this.callInternal("jwGetFullscreen")},this.getHeight=function(){return this.callInternal("jwGetHeight")},this.getLockState=function(){return this.callInternal("jwGetLockState")},this.getMeta=function(){return this.getItemMeta()},this.getMute=function(){return this.callInternal("jwGetMute")},this.getPlaylist=function(){var i=this.callInternal("jwGetPlaylist"),t;for(this.renderingMode=="flash"&&n.utils.deepReplaceKeyName(i,["__dot__","__spc__","__dsh__"],["."," ","-"]),t=0;t<i.length;t++)n.utils.exists(i[t].index)||(i[t].index=t);return i},this.getPlaylistItem=function(t){return n.utils.exists(t)||(t=this.getCurrentItem()),this.getPlaylist()[t]},this.getPosition=function(){return this.callInternal("jwGetPosition")},this.getRenderingMode=function(){return this.renderingMode},this.getState=function(){return this.callInternal("jwGetState")},this.getVolume=function(){return this.callInternal("jwGetVolume")},this.getWidth=function(){return this.callInternal("jwGetWidth")},this.setFullscreen=function(t){return n.utils.exists(t)?this.callInternal("jwSetFullscreen",t):this.callInternal("jwSetFullscreen",!this.callInternal("jwGetFullscreen")),this},this.setMute=function(t){return n.utils.exists(t)?this.callInternal("jwSetMute",t):this.callInternal("jwSetMute",!this.callInternal("jwGetMute")),this},this.lock=function(){return this},this.unlock=function(){return this},this.load=function(n){return this.callInternal("jwLoad",n),this},this.playlistItem=function(n){return this.callInternal("jwPlaylistItem",n),this},this.playlistPrev=function(){return this.callInternal("jwPlaylistPrev"),this},this.playlistNext=function(){return this.callInternal("jwPlaylistNext"),this},this.resize=function(n,t){if(this.renderingMode=="html5")i.jwResize(n,t);else{this.container.width=n;this.container.height=t;var r=document.getElementById(this.id+"_wrapper");r&&(r.style.width=n+"px",r.style.height=t+"px")}return this},this.play=function(t){return typeof t=="undefined"?(t=this.getState(),t==n.api.events.state.PLAYING||t==n.api.events.state.BUFFERING?this.callInternal("jwPause"):this.callInternal("jwPlay")):this.callInternal("jwPlay",t),this},this.pause=function(t){return typeof t=="undefined"?(t=this.getState(),t==n.api.events.state.PLAYING||t==n.api.events.state.BUFFERING?this.callInternal("jwPause"):this.callInternal("jwPlay")):this.callInternal("jwPause",t),this},this.stop=function(){return this.callInternal("jwStop"),this},this.seek=function(n){return this.callInternal("jwSeek",n),this},this.setVolume=function(n){return this.callInternal("jwSetVolume",n),this},this.loadInstream=function(t,r){return h=new n.api.instream(this,i,t,r)},this.onBufferChange=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_BUFFER,t)},this.onBufferFull=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_BUFFER_FULL,t)},this.onError=function(t){return this.eventListener(n.api.events.JWPLAYER_ERROR,t)},this.onFullscreen=function(t){return this.eventListener(n.api.events.JWPLAYER_FULLSCREEN,t)},this.onMeta=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_META,t)},this.onMute=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_MUTE,t)},this.onPlaylist=function(t){return this.eventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,t)},this.onPlaylistItem=function(t){return this.eventListener(n.api.events.JWPLAYER_PLAYLIST_ITEM,t)},this.onReady=function(t){return this.eventListener(n.api.events.API_READY,t)},this.onResize=function(t){return this.eventListener(n.api.events.JWPLAYER_RESIZE,t)},this.onComplete=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_COMPLETE,t)},this.onSeek=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_SEEK,t)},this.onTime=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_TIME,t)},this.onVolume=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_VOLUME,t)},this.onBeforePlay=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_BEFOREPLAY,t)},this.onBeforeComplete=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_BEFORECOMPLETE,t)},this.onBuffer=function(t){return this.stateListener(n.api.events.state.BUFFERING,t)},this.onPause=function(t){return this.stateListener(n.api.events.state.PAUSED,t)},this.onPlay=function(t){return this.stateListener(n.api.events.state.PLAYING,t)},this.onIdle=function(t){return this.stateListener(n.api.events.state.IDLE,t)},this.remove=function(){if(!o)throw"Cannot call remove() before player is ready";a(this)},this.setup=function(t){var r,i;return n.embed?(r=this.id,a(this),i=n(r),i.config=t,new n.embed(i)):this},this.registerPlugin=function(t,i,r){n.plugins.registerPlugin(t,i,r)},this.setPlayer=function(n,t){i=n;this.renderingMode=t},this.stateListener=function(t,i){return e[t]||(e[t]=[],this.eventListener(n.api.events.JWPLAYER_PLAYER_STATE,y(t))),e[t].push(i),this},this.detachMedia=function(){if(this.renderingMode=="html5")return this.callInternal("jwDetachMedia")},this.attachMedia=function(){if(this.renderingMode=="html5")return this.callInternal("jwAttachMedia")},this.componentListener=function(n,t,i){return u[n]||(u[n]={}),u[n][t]||(u[n][t]=[],this.eventListener(t,p(n,t))),u[n][t].push(i),this},this.addInternalListener=function(t,i){try{t.jwAddEventListener(i,'function(dat) { jwplayer("'+this.id+'").dispatchEvent("'+i+'", dat); }')}catch(r){n.utils.log("Could not add internal listener")}},this.eventListener=function(n,t){return r[n]||(r[n]=[],i&&o&&this.addInternalListener(i,n)),r[n].push(t),this},this.dispatchEvent=function(n){var i,t;if(r[n])for(i=_utils.translateEventResponse(n,arguments[1]),t=0;t<r[n].length;t++)typeof r[n][t]=="function"&&r[n][t].call(this,i)},this.dispatchInstreamEvent=function(n){h&&h.dispatchEvent(n,arguments)},this.callInternal=function(){var t,n,r;if(o){for(t=arguments[0],n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);return typeof i!="undefined"&&typeof i[t]=="function"?n.length==2?i[t](n[0],n[1]):n.length==1?i[t](n[0]):i[t]():null}s.push(arguments)},this.playerReady=function(t){o=!0;i||this.setPlayer(document.getElementById(t.id));this.container=document.getElementById(this.id);for(var u in r)this.addInternalListener(i,u);for(this.eventListener(n.api.events.JWPLAYER_PLAYLIST_ITEM,function(){c={}}),this.eventListener(n.api.events.JWPLAYER_MEDIA_META,function(t){n.utils.extend(c,t.metadata)}),this.dispatchEvent(n.api.events.API_READY);s.length>0;)this.callInternal.apply(this,s.shift())},this.getItemMeta=function(){return c},this.getCurrentItem=function(){return this.callInternal("jwGetPlaylistIndex")},this};n.api.selectPlayer=function(t){var i,r;return(n.utils.exists(t)||(t=0),t.nodeType?i=t:typeof t=="string"&&(i=document.getElementById(t)),i)?(r=n.api.playerById(i.id),r?r:n.api.addPlayer(new n.api(i))):typeof t=="number"?n.getPlayers()[t]:null};n.api.events={API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_MEDIA_BEFOREPLAY:"jwplayerMediaBeforePlay",JWPLAYER_MEDIA_BEFORECOMPLETE:"jwplayerMediaBeforeComplete",JWPLAYER_COMPONENT_SHOW:"jwplayerComponentShow",JWPLAYER_COMPONENT_HIDE:"jwplayerComponentHide",JWPLAYER_MEDIA_BUFFER:"jwplayerMediaBuffer",JWPLAYER_MEDIA_BUFFER_FULL:"jwplayerMediaBufferFull",JWPLAYER_MEDIA_ERROR:"jwplayerMediaError",JWPLAYER_MEDIA_LOADED:"jwplayerMediaLoaded",JWPLAYER_MEDIA_COMPLETE:"jwplayerMediaComplete",JWPLAYER_MEDIA_SEEK:"jwplayerMediaSeek",JWPLAYER_MEDIA_TIME:"jwplayerMediaTime",JWPLAYER_MEDIA_VOLUME:"jwplayerMediaVolume",JWPLAYER_MEDIA_META:"jwplayerMediaMeta",JWPLAYER_MEDIA_MUTE:"jwplayerMediaMute",JWPLAYER_PLAYER_STATE:"jwplayerPlayerState",JWPLAYER_PLAYLIST_LOADED:"jwplayerPlaylistLoaded",JWPLAYER_PLAYLIST_ITEM:"jwplayerPlaylistItem",JWPLAYER_INSTREAM_CLICK:"jwplayerInstreamClicked",JWPLAYER_INSTREAM_DESTROYED:"jwplayerInstreamDestroyed"};n.api.events.state={BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"};n.api.playerById=function(n){for(var i=0;i<t.length;i++)if(t[i].id==n)return t[i];return null};n.api.addPlayer=function(n){for(var i=0;i<t.length;i++)if(t[i]==n)return n;return t.push(n),n};n.api.destroyPlayer=function(i,r){for(var f=-1,u,o,s,e=0;e<t.length;e++)if(t[e].id==i){f=e;continue}if(f>=0){try{t[f].callInternal("jwDestroy")}catch(h){}u=document.getElementById(t[f].id);document.getElementById(t[f].id+"_wrapper")&&(u=document.getElementById(t[f].id+"_wrapper"));u&&(r?n.utils.setOuterHTML(u,r):(o=document.createElement("div"),s=u.id,u.id.indexOf("_wrapper")==u.id.length-8&&(newID=u.id.substring(0,u.id.length-8)),o.setAttribute("id",s),u.parentNode.replaceChild(o,u)));t.splice(f,1)}return null};n.getPlayers=function(){return t.slice(0)}}(jwplayer),_userPlayerReady=typeof playerReady=="function"?playerReady:undefined,playerReady=function(n){var t=jwplayer.api.playerById(n.id);t?t.playerReady(n):jwplayer.api.selectPlayer(n.id).playerReady(n);_userPlayerReady&&_userPlayerReady.call(this,n)},function(n){n.api.instream=function(t,i,r,u){function l(){c.callInternal("jwLoadInstream",r,u)}function a(n,t){e.jwInstreamAddEventListener(t,'function(dat) { jwplayer("'+c.id+'").dispatchInstreamEvent("'+t+'", dat); }')}function f(n,t){return o[n]||(o[n]=[],a(e,n)),o[n].push(t),this}function h(t,i){return s[t]||(s[t]=[],f(n.api.events.JWPLAYER_PLAYER_STATE,v(t))),s[t].push(i),this}function v(n){return function(t){var u=t.newstate,f=t.oldstate,i,r;if(u==n&&(i=s[u],i))for(r=0;r<i.length;r++)typeof i[r]=="function"&&i[r].call(this,{oldstate:f,newstate:u,type:t.type})}}var c=t,e=i,y=r,p=u,o={},s={};this.dispatchEvent=function(n,t){var r,i;if(o[n])for(r=_utils.translateEventResponse(n,t[1]),i=0;i<o[n].length;i++)typeof o[n][i]=="function"&&o[n][i].call(this,r)};this.onError=function(t){return f(n.api.events.JWPLAYER_ERROR,t)};this.onFullscreen=function(t){return f(n.api.events.JWPLAYER_FULLSCREEN,t)};this.onMeta=function(t){return f(n.api.events.JWPLAYER_MEDIA_META,t)};this.onMute=function(t){return f(n.api.events.JWPLAYER_MEDIA_MUTE,t)};this.onComplete=function(t){return f(n.api.events.JWPLAYER_MEDIA_COMPLETE,t)};this.onSeek=function(t){return f(n.api.events.JWPLAYER_MEDIA_SEEK,t)};this.onTime=function(t){return f(n.api.events.JWPLAYER_MEDIA_TIME,t)};this.onVolume=function(t){return f(n.api.events.JWPLAYER_MEDIA_VOLUME,t)};this.onBuffer=function(t){return h(n.api.events.state.BUFFERING,t)};this.onPause=function(t){return h(n.api.events.state.PAUSED,t)};this.onPlay=function(t){return h(n.api.events.state.PLAYING,t)};this.onIdle=function(t){return h(n.api.events.state.IDLE,t)};this.onInstreamClick=function(t){return f(n.api.events.JWPLAYER_INSTREAM_CLICK,t)};this.onInstreamDestroyed=function(t){return f(n.api.events.JWPLAYER_INSTREAM_DESTROYED,t)};this.play=function(n){e.jwInstreamPlay(n)};this.pause=function(n){e.jwInstreamPause(n)};this.seek=function(n){e.jwInstreamSeek(n)};this.destroy=function(){e.jwInstreamDestroy()};this.getState=function(){return e.jwInstreamGetState()};this.getDuration=function(){return e.jwInstreamGetDuration()};this.getPosition=function(){return e.jwInstreamGetPosition()};l()}}(jwplayer),function(n){function i(){var f,r,u;if(!document.body)return setTimeout(i,15);for(f=t.selectors.getElementsByTagAndClass("video","jwplayer"),r=0;r<f.length;r++)u=f[r],u.id==""&&(u.id="jwplayer_"+Math.round(Math.random()*1e5)),n(u.id).setup({})}var t=n.utils;n.embed=function(i){function o(n,t){for(var i in t)typeof n[i]=="function"&&n[i].call(n,t[i])}function f(){var f,e,s,h,c,y,l,a,v;if(u.getStatus()==t.loaderstatus.COMPLETE){for(f=0;f<r.modes.length;f++)if(r.modes[f].type&&n.embed[r.modes[f].type]){if(e=r.modes[f].config,s=r,e)for(s=t.extend(t.clone(r),e),h=["file","levels","playlist"],c=0;c<h.length;c++)if(y=h[c],t.exists(e[y]))for(l=0;l<h.length;l++)l!=c&&(a=h[l],t.exists(s[a])&&!t.exists(e[a])&&delete s[a]);if(v=new n.embed[r.modes[f].type](document.getElementById(i.id),r.modes[f],s,u,i),v.supportsConfig())return v.embed(),o(i,r.events),i}t.log("No suitable players found");new n.embed.logo(t.extend({hide:!0},r.components.logo),"none",i.id)}}var e=t.mediaparser.parseMedia(i.container),r=new n.embed.config(t.extend({width:400,height:300,components:{controlbar:{position:"over"}}},e,i.config),this),u=n.plugins.loadPlugins(i.id,r.plugins);return u.addEventListener(n.events.COMPLETE,f),u.addEventListener(n.events.ERROR,f),u.load(),i};i()}(jwplayer),function(n){function i(n){var i=[{type:"flash",src:n?n:"/jwplayer/player.swf"},{type:"html5"},{type:"download"}];return t.isAndroid()&&(i[0]=i.splice(1,1,i[0])[0]),i}function o(n){return n instanceof Array||typeof n=="object"&&!n.position&&!n.size}function e(n){return typeof n=="string"&&(parseInt(n).toString()==n||n.toLowerCase().indexOf("px")>-1)?parseInt(n):n}function s(n){var u={},f,r,i;switch(t.typeOf(n.plugins)){case"object":for(f in n.plugins)u[t.getPluginName(f)]=f;break;case"string":for(r=n.plugins.split(","),i=0;i<r.length;i++)u[t.getPluginName(r[i])]=r[i]}return u}function f(n,i,r,u){var f,e;t.typeOf(n[i])!="object"&&(n[i]={});f=n[i][r];t.typeOf(f)!="object"&&(n[i][r]=f={});u&&(i=="plugins"?(e=t.getPluginName(r),f[u]=n[e+"."+u],delete n[e+"."+u]):(f[u]=n[r+"."+u],delete n[r+"."+u]))}var t=n.utils,r={players:"modes",autoplay:"autostart"},u=["playlist","dock","controlbar","logo","display"];n.embed.deserialize=function(n){var r=s(n),o,i;for(o in r)f(n,"plugins",r[o]);for(i in n)if(i.indexOf(".")>-1){var h=i.split("."),e=h[0],i=h[1];t.isInArray(u,e)?f(n,"components",e,i):r[e]&&f(n,"plugins",r[e],i)}return n};n.embed.config=function(f){var s=t.extend({},f),w,v,c,y,p,h,l,a;if(o(s.playlist)&&(w=s.playlist,delete s.playlist),s=n.embed.deserialize(s),s.height=e(s.height),s.width=e(s.width),typeof s.plugins=="string")for(v=s.plugins.split(","),typeof s.plugins!="object"&&(s.plugins={}),c=0;c<v.length;c++)y=t.getPluginName(v[c]),typeof s[y]=="object"?(s.plugins[v[c]]=s[y],delete s[y]):s.plugins[v[c]]={};for(p=0;p<u.length;p++)h=u[p],t.exists(s[h])&&(typeof s[h]!="object"?(s.components[h]||(s.components[h]={}),h=="logo"?s.components[h].file=s[h]:s.components[h].position=s[h],delete s[h]):(s.components[h]||(s.components[h]={}),t.extend(s.components[h],s[h]),delete s[h])),typeof s[h+"size"]!="undefined"&&(s.components[h]||(s.components[h]={}),s.components[h].size=s[h+"size"],delete s[h+"size"]);typeof s.icons!="undefined"&&(s.components.display||(s.components.display={}),s.components.display.icons=s.icons,delete s.icons);for(l in r)s[l]&&(s[r[l]]||(s[r[l]]=s[l]),delete s[l]);return s.flashplayer&&!s.modes?(a=i(s.flashplayer),delete s.flashplayer):s.modes?(typeof s.modes=="string"?a=i(s.modes):s.modes instanceof Array?a=s.modes:typeof s.modes=="object"&&s.modes.type&&(a=[s.modes]),delete s.modes):a=i(),s.modes=a,w&&(s.playlist=w),s}}(jwplayer),function(n){n.embed.download=function(t,i,r,u,f){function e(t,i,r){var f,u;return r?!1:(f=["image","sound","youtube","http"],i&&f.toString().indexOf(i)>-1)?!0:(!i||i&&i=="video")&&(u=n.utils.extension(t),u&&n.utils.extensionmap[u])?!0:!1}this.embed=function(){function v(){_imageWidth=i.display_image.naturalWidth;_imageHeight=i.display_image.naturalHeight;y()}function y(){n.utils.stretch(n.utils.stretching.UNIFORM,i.display_image,o,e,_imageWidth,_imageHeight)}var w=n.utils.extend({},r),i={},o=r.width?r.width:480,e,s,h,c,u,a,l,p;typeof o!="number"&&(o=parseInt(o,10));e=r.height?r.height:320;typeof e!="number"&&(e=parseInt(e,10));u={};r.playlist&&r.playlist.length?(u.file=r.playlist[0].file,h=r.playlist[0].image,u.levels=r.playlist[0].levels):(u.file=r.file,h=r.image,u.levels=r.levels);u.file?s=u.file:u.levels&&u.levels.length&&(s=u.levels[0].file);c=s?"pointer":"auto";a={display:{style:{cursor:c,width:o,height:e,backgroundColor:"#000",position:"relative",textDecoration:"none",border:"none",display:"block"}},display_icon:{style:{cursor:c,position:"absolute",display:s?"block":"none",top:0,left:0,border:0,margin:0,padding:0,zIndex:3,width:50,height:50,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg==)"}},display_iconBackground:{style:{cursor:c,position:"absolute",display:s?"block":"none",top:(e-50)/2,left:(o-50)/2,border:0,width:50,height:50,margin:0,padding:0,zIndex:2,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEpJREFUeNrszwENADAIA7DhX8ENoBMZ5KR10EryckCJiIiIiIiIiIiIiIiIiIiIiIh8GmkRERERERERERERERERERERERGRHSPAAPlXH1phYpYaAAAAAElFTkSuQmCC)"}},display_image:{style:{width:o,height:e,display:h?"block":"none",position:"absolute",cursor:c,left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1,border:"none"}}};l=function(i,r,u){var f=document.createElement(i);return f.id=u?u:t.id+"_jwplayer_"+r,n.utils.css(f,a[r].style),f};i.display=l("a","display",t.id);s&&i.display.setAttribute("href",n.utils.getAbsolutePath(s));i.display_image=l("img","display_image");i.display_image.setAttribute("alt","Click to download...");h&&i.display_image.setAttribute("src",n.utils.getAbsolutePath(h));!0&&(i.display_icon=l("div","display_icon"),i.display_iconBackground=l("div","display_iconBackground"),i.display.appendChild(i.display_image),i.display_iconBackground.appendChild(i.display_icon),i.display.appendChild(i.display_iconBackground));_css=n.utils.css;_hide=function(n){_css(n,{display:"none"})};i.display_image.onerror=function(){_hide(i.display_image)};i.display_image.onload=v;t.parentNode.replaceChild(i.display,t);p=r.plugins&&r.plugins.logo?r.plugins.logo:{};i.display.appendChild(new n.embed.logo(r.components.logo,"download",t.id));f.container=document.getElementById(f.id);f.setPlayer(i.display,"download")};this.supportsConfig=function(){var t,i;if(r){if(t=n.utils.getFirstPlaylistItemFromConfig(r),typeof t.file=="undefined"&&typeof t.levels=="undefined")return!0;if(t.file)return e(t.file,t.provider,t.playlistfile);if(t.levels&&t.levels.length)for(i=0;i<t.levels.length;i++)if(t.levels[i].file&&e(t.levels[i].file,t.provider,t.playlistfile))return!0}else return!0}}}(jwplayer),function(n){n.embed.flash=function(t,i,r,u,f){function e(n,t,i){var r=document.createElement("param");r.setAttribute("name",t);r.setAttribute("value",i);n.appendChild(r)}function h(t,i,r){return function(){var u,e;r&&document.getElementById(f.id+"_wrapper").appendChild(i);u=document.getElementById(f.id).getPluginConfig("display");t.resize(u.width,u.height);e={left:u.x,top:u.y};n.utils.css(i,e)}}function o(n,t){var f,i,r,u;if(n[t]){f=n[t];for(i in f)if(r=f[i],typeof r=="string")n[i]||(n[i]=r);else for(u in r)n[i+"."+u]||(n[i+"."+u]=r[u]);delete n[t]}}function c(t){var i,u,r,o,f,e;if(!t)return{};i={};u=[];for(r in t){o=n.utils.getPluginName(r);f=t[r];u.push(r);for(e in f)i[o+"."+e]=f[e]}return i.plugins=u.join(","),i}function s(t){var r=t.netstreambasepath?"":"netstreambasepath="+encodeURIComponent(window.location.href.split("#")[0])+"&",i;for(i in t)r+=typeof t[i]=="object"?i+"="+encodeURIComponent("[[JSON]]"+n.utils.strings.jsonToString(t[i]))+"&":i+"="+encodeURIComponent(t[i])+"&";return r.substring(0,r.length-1)}this.embed=function(){var d,g,p,w,nt,b,tt,k,v,a;r.id=f.id;var y,l=n.utils.extend({},r),it=l.width,rt=l.height;for(t.id+"_wrapper"==t.parentNode.id?y=document.getElementById(t.id+"_wrapper"):(y=document.createElement("div"),y.id=t.id+"_wrapper",n.utils.wrap(t,y),n.utils.css(y,{position:"relative",width:it,height:rt})),d=u.setupPlugins(f,l,h),d.length>0?n.utils.extend(l,c(d.plugins)):delete l.plugins,g=["height","width","modes","events"],p=0;p<g.length;p++)delete l[g[p]];w="opaque";l.wmode&&(w=l.wmode);o(l,"components");o(l,"providers");typeof l["dock.position"]!="undefined"&&l["dock.position"].toString().toLowerCase()=="false"&&(l.dock=l["dock.position"],delete l["dock.position"]);nt=n.utils.getCookies();for(b in nt)typeof l[b]=="undefined"&&(l[b]=nt[b]);tt="#000000";n.utils.isIE()?(v='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" bgcolor="'+tt+'" width="100%" height="100%" id="'+t.id+'" name="'+t.id+'" tabindex=0"">',v+='<param name="movie" value="'+i.src+'">',v+='<param name="allowfullscreen" value="true">',v+='<param name="allowscriptaccess" value="always">',v+='<param name="seamlesstabbing" value="true">',v+='<param name="wmode" value="'+w+'">',v+='<param name="flashvars" value="'+s(l)+'">',v+="<\/object>",n.utils.setOuterHTML(t,v),k=document.getElementById(t.id)):(a=document.createElement("object"),a.setAttribute("type","application/x-shockwave-flash"),a.setAttribute("data",i.src),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("bgcolor","#000000"),a.setAttribute("id",t.id),a.setAttribute("name",t.id),a.setAttribute("tabindex",0),e(a,"allowfullscreen","true"),e(a,"allowscriptaccess","always"),e(a,"seamlesstabbing","true"),e(a,"wmode",w),e(a,"flashvars",s(l)),t.parentNode.replaceChild(a,t),k=a);f.container=k;f.setPlayer(k,"flash")};this.supportsConfig=function(){var t,i;if(n.utils.hasFlash())if(r){if(t=n.utils.getFirstPlaylistItemFromConfig(r),typeof t.file=="undefined"&&typeof t.levels=="undefined")return!0;if(t.file)return flashCanPlay(t.file,t.provider);if(t.levels&&t.levels.length)for(i=0;i<t.levels.length;i++)if(t.levels[i].file&&flashCanPlay(t.levels[i].file,t.provider))return!0}else return!0;return!1};flashCanPlay=function(t,i){var r;return i&&["video","http","sound","image"].toString().indexOf(i)<0?!0:(r=n.utils.extension(t),!r)?!0:n.utils.exists(n.utils.extensionmap[r])&&!n.utils.exists(n.utils.extensionmap[r].flash)?!1:!0}}}(jwplayer),function(n){n.embed.html5=function(t,i,r,u,f){function e(n,i,r){return function(){var u=document.getElementById(t.id+"_displayarea");r&&u.appendChild(i);n.resize(u.clientWidth,u.clientHeight);i.left=u.style.left;i.top=u.style.top}}this.embed=function(){var i,s,o,h;if(n.html5){for(u.setupPlugins(f,r,e),t.innerHTML="",i=n.utils.extend({screencolor:"0x000000"},r),s=["plugins","modes","events"],o=0;o<s.length;o++)delete i[s[o]];i.levels&&!i.sources&&(i.sources=r.levels);i.skin&&i.skin.toLowerCase().indexOf(".zip")>0&&(i.skin=i.skin.replace(/\.zip/i,".xml"));h=new(n.html5(t).setup)(i);f.container=document.getElementById(f.id);f.setPlayer(h,"html5")}else return null};this.supportsConfig=function(){var t,i;if(!!n.vid.canPlayType)if(r){if(t=n.utils.getFirstPlaylistItemFromConfig(r),typeof t.file=="undefined"&&typeof t.levels=="undefined")return!0;if(t.file)return html5CanPlay(n.vid,t.file,t.provider,t.playlistfile);if(t.levels&&t.levels.length)for(i=0;i<t.levels.length;i++)if(t.levels[i].file&&html5CanPlay(n.vid,t.levels[i].file,t.provider,t.playlistfile))return!0}else return!0;return!1};html5CanPlay=function(t,i,r,u){if(u)return!1;if(r&&r=="youtube")return!0;if(r&&r!="video"&&r!="http"&&r!="sound"||navigator.userAgent.match(/BlackBerry/i)!==null)return!1;var f=n.utils.extension(i);return!n.utils.exists(f)||!n.utils.exists(n.utils.extensionmap[f])?!0:n.utils.exists(n.utils.extensionmap[f].html5)?n.utils.isLegacyAndroid()&&f.match(/m4v|mp4/)?!0:browserCanPlay(t,n.utils.extensionmap[f].html5):!1};browserCanPlay=function(n,t){return t?n.canPlayType(t)?!0:t=="audio/mp3"&&navigator.userAgent.match(/safari/i)?n.canPlayType("audio/mpeg"):!1:!0}}}(jwplayer),function(n){n.embed.logo=function(t,i,r){function s(){h();l();a()}function h(){if(e.prefix){var i=n.version.split(/\W/).splice(0,2).join("/");e.prefix.indexOf(i)<0&&(e.prefix+=i+"/")}u=n.utils.extend({},e,t)}function c(){var n={border:"none",textDecoration:"none",position:"absolute",cursor:"pointer",zIndex:10},t,i;n.display=u.hide?"none":"block";t=u.position.toLowerCase().split("-");for(i in t)n[t[i]]=u.margin;return n}function l(){(f=document.createElement("img"),f.id=r+"_jwplayer_logo",f.style.display="none",f.onload=function(){_css(f,c());o()},u.file)&&(f.src=u.file.indexOf("http://")===0?u.file:u.prefix+u.file)}function a(){u.link?(f.onmouseover=y,f.onmouseout=o,f.onclick=v):this.mouseEnabled=!1}function v(n){typeof n!="undefined"&&(n.preventDefault(),n.stopPropagation());u.link&&window.open(u.link,u.linktarget);return}function o(){u.link&&(f.style.opacity=u.out);return}function y(){u.hide&&(f.style.opacity=u.over);return}var e={prefix:"http://l.longtailvideo.com/"+i+"/",file:"",link:"",linktarget:"_top",margin:8,out:.5,over:1,timeout:5,hide:!1,position:"bottom-left"},f,u;if(_css=n.utils.css,s(),u.file)return f}}(jwplayer),function(n){n.html5=function(t){var i=t;return this.setup=function(t){return n.utils.extend(this,new n.html5.api(i,t)),this},this}}(jwplayer),function(n){var t=n.utils,i=t.css,r=t.isIOS();n.html5.view=function(u,f,e){function at(){function n(){return c.skin.getComponentSettings("display")&&c.skin.getComponentSettings("display").backgroundcolor?c.skin.getComponentSettings("display").backgroundcolor:parseInt("000000",16)}h=document.createElement("div");h.id=l.id;h.className=l.className;_videowrapper=document.createElement("div");_videowrapper.id=h.id+"_video_wrapper";l.id=h.id+"_video";i(h,{position:"relative",height:o.height,width:o.width,padding:0,backgroundColor:n(),zIndex:0});i(l,{width:"100%",height:"100%",top:0,left:0,zIndex:1,margin:"auto",display:"block"});i(_videowrapper,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0});t.wrap(l,h);t.wrap(l,_videowrapper);s=document.createElement("div");s.id=h.id+"_displayarea";h.appendChild(s);_instreamArea=document.createElement("div");_instreamArea.id=h.id+"_instreamarea";i(_instreamArea,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0,zIndex:100,background:"000000",display:"none"});h.appendChild(_instreamArea)}function vt(){for(var n,i=0;i<o.plugins.order.length;i++)n=o.plugins.order[i],t.exists(o.plugins.object[n].getDisplayElement)&&(o.plugins.object[n].height=t.parseDimension(o.plugins.object[n].getDisplayElement().style.height),o.plugins.object[n].width=t.parseDimension(o.plugins.object[n].getDisplayElement().style.width),o.plugins.config[n].currentPosition=o.plugins.config[n].position);et()}function yt(){rt=o.fullscreen}function pt(t){if(!g){switch(t.newstate){case n.api.events.state.PLAYING:o.getMedia()&&o.getMedia().hasChrome()&&(s.style.display="none");break;default:s.style.display="block"}w()}}function et(){var n=o.getMedia()?o.getMedia().getDisplayElement():null,i,r;if(t.exists(n))for(y!=n&&(y&&y.parentNode&&y.parentNode.replaceChild(n,y),y=n),i=0;i<o.plugins.order.length;i++)r=o.plugins.order[i],t.exists(o.plugins.object[r].getDisplayElement)&&(o.plugins.config[r].currentPosition=o.plugins.config[r].position);p(o.width,o.height)}function wt(t){switch(t.keyCode){case 27:c.jwGetFullscreen()&&c.jwSetFullscreen(!1);break;case 32:c.jwGetState()!=n.api.events.state.IDLE&&c.jwGetState()!=n.api.events.state.PAUSED?c.jwPause():c.jwPlay()}}function p(n,u){var e,p,c,l,g,f,y,b;if(h.style.display!="none"){if(e=[].concat(o.plugins.order),e.reverse(),d=e.length+2,rt&&k())try{o.fullscreen&&!o.getMedia().getDisplayElement().webkitDisplayingFullscreen&&(o.fullscreen=!1)}catch(nt){}if(o.fullscreen)k()||r||it(dt,e,!0);else{a=n;v=u;a=typeof n=="string"&&n.indexOf("%")>0?t.getElementWidth(t.parentNode(h))*parseInt(n.replace("%"),"")/100:n;v=typeof u=="string"&&u.indexOf("%")>0?t.getElementHeight(t.parentNode(h))*parseInt(u.replace("%"),"")/100:u;p={top:0,bottom:0,left:0,right:0,width:a,height:v,position:"absolute"};i(s,p);c={};try{l=o.plugins.object.display.getDisplayElement()}catch(nt){}l&&(c.width=t.parseDimension(l.style.width),c.height=t.parseDimension(l.style.height));g=t.extend({},p,c,{zIndex:_instreamArea.style.zIndex,display:_instreamArea.style.display});i(_instreamArea,g);i(h,{height:v,width:a});f=it(bt,e);f.length>0&&(d+=f.length,y=f.indexOf("playlist"),b=f.indexOf("controlbar"),y>=0&&b>=0&&(f[y]=f.splice(b,1,f[y])[0]),it(kt,f,!0));ut=t.getElementWidth(s);ft=t.getElementHeight(s)}w()}}function it(r,u,f){var c,h,e,s,l,a;for(tt=0,c=[],h=0;h<u.length;h++)e=u[h],t.exists(o.plugins.object[e].getDisplayElement)&&(o.plugins.config[e].currentPosition!=n.html5.view.positions.NONE?(s=r(e,d--),s?(l=s.width,a=s.height,f&&(delete s.width,delete s.height),i(o.plugins.object[e].getDisplayElement(),s),o.plugins.object[e].resize(l,a)):c.push(e)):i(o.plugins.object[e].getDisplayElement(),{display:"none"}));return c}function bt(n,i){if(t.exists(o.plugins.object[n].getDisplayElement)&&o.plugins.config[n].position&&ni(o.plugins.config[n].position)){t.exists(o.plugins.object[n].getDisplayElement().parentNode)||h.appendChild(o.plugins.object[n].getDisplayElement());var r=ot(n);return r.zIndex=i,r}return!1}function kt(n,i){return t.exists(o.plugins.object[n].getDisplayElement().parentNode)||s.appendChild(o.plugins.object[n].getDisplayElement()),{position:"absolute",width:t.getElementWidth(s)-t.parseDimension(s.style.right),height:t.getElementHeight(s)-t.parseDimension(s.style.bottom),zIndex:i}}function dt(n,t){return{position:"fixed",width:o.width,height:o.height,zIndex:t}}function ni(t){return[n.html5.view.positions.TOP,n.html5.view.positions.RIGHT,n.html5.view.positions.BOTTOM,n.html5.view.positions.LEFT].toString().indexOf(t.toUpperCase())>-1}function k(){return c.jwGetState()!=n.api.events.state.IDLE&&!b&&o.getMedia()&&o.getMedia().getDisplayElement()&&o.getMedia().getDisplayElement().webkitSupportsFullscreen&&t.useNativeFullscreen()?!0:!1}var c=u,l=f,o=e,h,a,v,s,d,lt,y,b=!1,rt=!1,ut,ft,g,nt,tt,w,ot,st,ht,ct,gt,ti;this.setup=function(){o&&o.getMedia()&&(l=o.getMedia().getDisplayElement());at();vt();c.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,pt);c.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_LOADED,et);c.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_BEFOREPLAY,yt);c.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_META,function(){w()});var i;t.exists(window.onresize)&&(i=window.onresize);window.onresize=function(n){if(t.exists(i))try{i(n)}catch(u){}if(c.jwGetFullscreen()){if(!k()){var r=t.getBoundingClientRect(document.body);o.width=Math.abs(r.left)+Math.abs(r.right);o.height=window.innerHeight;p(o.width,o.height)}}else p(o.width,o.height)}};w=this.resizeMedia=function(){var u,f,e;if(s.style.position="absolute",u=o.getMedia()?o.getMedia().getDisplayElement():nt,u)if(u&&u.tagName.toLowerCase()=="video"){if(!u.videoWidth||!u.videoHeight){u.style.width=s.style.width;u.style.height=s.style.height;return}u.style.position="absolute";t.fadeTo(u,1,.25);u.parentNode&&(u.parentNode.style.left=s.style.left,u.parentNode.style.top=s.style.top);o.fullscreen&&c.jwGetStretching()==n.utils.stretching.EXACTFIT&&!t.isMobile()?(f=document.createElement("div"),t.stretch(n.utils.stretching.UNIFORM,f,t.getElementWidth(s),t.getElementHeight(s),ut,ft),t.stretch(n.utils.stretching.EXACTFIT,u,t.parseDimension(f.style.width),t.parseDimension(f.style.height),u.videoWidth?u.videoWidth:400,u.videoHeight?u.videoHeight:300),i(u,{left:f.style.left,top:f.style.top})):r||t.stretch(c.jwGetStretching(),u,t.getElementWidth(s),t.getElementHeight(s),u.videoWidth?u.videoWidth:400,u.videoHeight?u.videoHeight:300)}else e=o.plugins.object.display.getDisplayElement(),e?o.getMedia().resize(t.parseDimension(e.style.width),t.parseDimension(e.style.height)):o.getMedia().resize(t.parseDimension(s.style.width),t.parseDimension(s.style.height))};ot=this.getComponentPosition=function(i){var r={position:"absolute",margin:0,padding:0,top:null},u=o.plugins.config[i].currentPosition.toLowerCase();switch(u.toUpperCase()){case n.html5.view.positions.TOP:r.top=t.parseDimension(s.style.top);r.left=t.parseDimension(s.style.left);r.width=t.getElementWidth(s)-t.parseDimension(s.style.left)-t.parseDimension(s.style.right);r.height=o.plugins.object[i].height;s.style[u]=t.parseDimension(s.style[u])+o.plugins.object[i].height+"px";s.style.height=t.getElementHeight(s)-r.height+"px";break;case n.html5.view.positions.RIGHT:r.top=t.parseDimension(s.style.top);r.right=t.parseDimension(s.style.right);r.width=o.plugins.object[i].width;r.height=t.getElementHeight(s)-t.parseDimension(s.style.top)-t.parseDimension(s.style.bottom);s.style.width=t.getElementWidth(s)-r.width+"px";break;case n.html5.view.positions.BOTTOM:r.left=t.parseDimension(s.style.left);r.width=t.getElementWidth(s)-t.parseDimension(s.style.left)-t.parseDimension(s.style.right);r.height=o.plugins.object[i].height;r.bottom=t.parseDimension(s.style.bottom+tt);tt+=r.height;s.style.height=t.getElementHeight(s)-r.height+"px";break;case n.html5.view.positions.LEFT:r.top=t.parseDimension(s.style.top);r.left=t.parseDimension(s.style.left);r.width=o.plugins.object[i].width;r.height=t.getElementHeight(s)-t.parseDimension(s.style.top)-t.parseDimension(s.style.bottom);s.style[u]=t.parseDimension(s.style[u])+o.plugins.object[i].width+"px";s.style.width=t.getElementWidth(s)-r.width+"px"}return r};this.resize=p;gt=this.fullscreen=function(n){var u,f,e,c;if(!r){try{u=o.getMedia().getDisplayElement()}catch(l){}if(n&&(ht=o.width,ct=o.height),f={position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:2147483e3},e={position:"relative",height:ht,width:ct,zIndex:0},k()&&u&&u.webkitSupportsFullscreen){if(n&&!u.webkitDisplayingFullscreen)try{i(u,f);t.transform(u);st=s.style.display;s.style.display="none";u.webkitEnterFullscreen()}catch(y){}else if(!n){if(i(u,e),w(),u.webkitDisplayingFullscreen)try{u.webkitExitFullscreen()}catch(y){}s.style.display=st}b=!1}else n?(document.onkeydown=wt,clearInterval(lt),c=t.getBoundingClientRect(document.body),o.width=Math.abs(c.left)+Math.abs(c.right),o.height=window.innerHeight,i(h,f),f.zIndex=1,o.getMedia()&&o.getMedia().getDisplayElement()&&i(o.getMedia().getDisplayElement(),f),f.zIndex=2,i(s,f),b=!0):(document.onkeydown="",o.width=a,o.height=v,i(h,e),b=!1),p(o.width,o.height)}};this.setupInstream=function(n,i){t.css(_instreamArea,{display:"block",position:"absolute"});s.style.display="none";_instreamArea.appendChild(n);nt=i;g=!0};ti=this.destroyInstream=function(){_instreamArea.style.display="none";_instreamArea.innerHTML="";s.style.display="block";nt=null;g=!1;p(o.width,o.height)}};n.html5.view.positions={TOP:"TOP",RIGHT:"RIGHT",BOTTOM:"BOTTOM",LEFT:"LEFT",OVER:"OVER",NONE:"NONE"}}(jwplayer),function(n){var t={backgroundcolor:"",margin:10,font:"Arial,sans-serif",fontsize:10,fontcolor:parseInt("000000",16),fontstyle:"normal",fontweight:"bold",buttoncolor:parseInt("ffffff",16),position:n.html5.view.positions.BOTTOM,idlehide:!1,hideplaylistcontrols:!1,forcenextprev:!1,layout:{left:{position:"left",elements:[{name:"play",type:"button"},{name:"divider",type:"divider"},{name:"prev",type:"button"},{name:"divider",type:"divider"},{name:"next",type:"button"},{name:"divider",type:"divider"},{name:"elapsed",type:"text"}]},center:{position:"center",elements:[{name:"time",type:"slider"}]},right:{position:"right",elements:[{name:"duration",type:"text"},{name:"blank",type:"button"},{name:"divider",type:"divider"},{name:"mute",type:"button"},{name:"volume",type:"slider"},{name:"divider",type:"divider"},{name:"fullscreen",type:"button"}]}}};_utils=n.utils;_css=_utils.css;_hide=function(n){_css(n,{display:"none"})};_show=function(n){_css(n,{display:"block"})};n.html5.controlbar=function(i,r){function c(){return d||(d=u.skin.getSkinElement("controlbar","background"),d||(d={width:0,height:0,src:null})),d}function ci(){var t,n,i;pt=0;wt=0;yt=0;p||(t={height:c().height,backgroundColor:e.backgroundcolor},o=document.createElement("div"),o.id=u.id+"_jwplayer_controlbar",_css(o,t));n=u.skin.getSkinElement("controlbar","capLeft");i=u.skin.getSkinElement("controlbar","capRight");n&&s("capLeft","left",!1,o);w("background",o,{position:"absolute",height:c().height,left:n?n.width:0,zIndex:0},"img");c().src&&(f.background.src=c().src);w("elements",o,{position:"relative",height:c().height,zIndex:1});i&&s("capRight","right",!1,o)}function ni(){var t=["timeSlider","volumeSlider","timeSliderRail","volumeSliderRail"],i,n;for(i in t)n=t[i],typeof f[n]!="undefined"&&(l[n]=_utils.getBoundingClientRect(f[n]))}function ht(t){if(!v)if(clearTimeout(ut),e.position==n.html5.view.positions.OVER||u.jwGetFullscreen())switch(u.jwGetState()){case n.api.events.state.PAUSED:case n.api.events.state.IDLE:o&&o.style.opacity<1&&(!e.idlehide||_utils.exists(t))&&(st=!1,setTimeout(function(){st||ct()},100));e.idlehide&&(ut=setTimeout(function(){ti()},2e3));break;default:st=!0;t&&ct();ut=setTimeout(function(){ti()},2e3)}else ct()}function ti(){v||(lt(),o.style.opacity==1&&(_utils.cancelAnimation(o),_utils.fadeTo(o,0,.1,1,0)))}function ct(){v||(tt(),o.style.opacity==0&&(_utils.cancelAnimation(o),_utils.fadeTo(o,1,.1,0,0)))}function ii(n){return function(){et&&ft!=n&&(ft=n,gt.sendEvent(n,{component:"controlbar",boundingRect:li()}))}}function li(){return e.position==n.html5.view.positions.OVER||u.jwGetFullscreen()?_utils.getDimensions(o):{x:0,y:0,width:0,height:0}}function w(n,t,i,r){var u;return p?u=document.getElementById(o.id+"_"+n):(r||(r="div"),u=document.createElement(r),f[n]=u,u.id=o.id+"_"+n,t.appendChild(u)),_utils.exists(i)&&_css(u,i),u}function ai(){if(u.jwGetHeight()<=40){e.layout=_utils.clone(e.layout);for(var n=0;n<e.layout.left.elements.length;n++)e.layout.left.elements[n].name=="fullscreen"&&e.layout.left.elements.splice(n,1);for(n=0;n<e.layout.right.elements.length;n++)e.layout.right.elements[n].name=="fullscreen"&&e.layout.right.elements.splice(n,1);oi()}at(e.layout.left);at(e.layout.center);at(e.layout.right)}function at(n,t){var u=n.position=="right"?"right":"left",r=_utils.extend([],n.elements),n,i;for(_utils.exists(t)&&r.reverse(),n=w(n.position+"Group",f.elements,{float:"left",styleFloat:"left",cssFloat:"left",height:"100%"}),i=0;i<r.length;i++)yi(r[i],u,n)}function vi(){return yt++}function yi(n,t,i){var v,o,h,y,l,r,e;if(i||(i=f.elements),n.type=="divider"){s("divider"+vi(),t,!0,i,undefined,n.width,n.element);return}switch(n.name){case"play":s("playButton",t,!1,i);s("pauseButton",t,!0,i);a("playButton","jwPlay");a("pauseButton","jwPause");break;case"prev":s("prevButton",t,!0,i);a("prevButton","jwPlaylistPrev");break;case"stop":s("stopButton",t,!0,i);a("stopButton","jwStop");break;case"next":s("nextButton",t,!0,i);a("nextButton","jwPlaylistNext");break;case"elapsed":s("elapsedText",t,!0,i,null,null,u.skin.getSkinElement("controlbar","elapsedBackground"));break;case"time":o=_utils.exists(u.skin.getSkinElement("controlbar","timeSliderCapLeft"))?u.skin.getSkinElement("controlbar","timeSliderCapLeft").width:0;h=_utils.exists(u.skin.getSkinElement("controlbar","timeSliderCapRight"))?u.skin.getSkinElement("controlbar","timeSliderCapRight").width:0;v=t=="left"?o:h;l={height:c().height,position:"relative",float:"left",styleFloat:"left",cssFloat:"left"};r=w("timeSlider",i,l);s("timeSliderCapLeft",t,!0,r,"relative");s("timeSliderRail",t,!1,r,"relative");s("timeSliderBuffer",t,!1,r,"absolute");s("timeSliderProgress",t,!1,r,"absolute");s("timeSliderThumb",t,!1,r,"absolute");s("timeSliderCapRight",t,!0,r,"relative");ui("time");break;case"fullscreen":s("fullscreenButton",t,!1,i);s("normalscreenButton",t,!0,i);a("fullscreenButton","jwSetFullscreen",!0);a("normalscreenButton","jwSetFullscreen",!1);break;case"volume":o=_utils.exists(u.skin.getSkinElement("controlbar","volumeSliderCapLeft"))?u.skin.getSkinElement("controlbar","volumeSliderCapLeft").width:0;h=_utils.exists(u.skin.getSkinElement("controlbar","volumeSliderCapRight"))?u.skin.getSkinElement("controlbar","volumeSliderCapRight").width:0;v=t=="left"?o:h;y=u.skin.getSkinElement("controlbar","volumeSliderRail").width+o+h;l={height:c().height,position:"relative",width:y,float:"left",styleFloat:"left",cssFloat:"left"};e=w("volumeSlider",i,l);s("volumeSliderCapLeft",t,!1,e,"relative");s("volumeSliderRail",t,!1,e,"relative");s("volumeSliderProgress",t,!1,e,"absolute");s("volumeSliderThumb",t,!1,e,"absolute");s("volumeSliderCapRight",t,!1,e,"relative");ui("volume");break;case"mute":s("muteButton",t,!1,i);s("unmuteButton",t,!0,i);a("muteButton","jwSetMute",!0);a("unmuteButton","jwSetMute",!1);break;case"duration":s("durationText",t,!0,i,null,null,u.skin.getSkinElement("controlbar","durationBackground"))}}function s(n,t,i,r,o,s,h){var l,a,y,v;(_utils.exists(u.skin.getSkinElement("controlbar",n))||n.indexOf("Text")>0||n.indexOf("divider")===0)&&(l={height:"100%",position:o?o:"relative",display:"block",float:"left",styleFloat:"left",cssFloat:"left"},(n.indexOf("next")===0||n.indexOf("prev")===0)&&(u.jwGetPlaylist().length<2||e.hideplaylistcontrols.toString()=="true")&&e.forcenextprev.toString()!="true"&&(i=!1,l.display="none"),n.indexOf("Text")>0?(n.innerhtml="00:00",l.font=e.fontsize+"px/"+(c().height+1)+"px "+e.font,l.color=e.fontcolor,l.textAlign="center",l.fontWeight=e.fontweight,l.fontStyle=e.fontstyle,l.cursor="default",h&&(l.background="url("+h.src+") no-repeat center",l.backgroundSize="100% "+c().height+"px"),l.padding="0 5px"):n.indexOf("divider")===0?s?isNaN(parseInt(s))||(a=parseInt(s)):h?(y=u.skin.getSkinElement("controlbar",h),y&&(l.background="url("+y.src+") repeat-x center left",a=y.width)):(l.background="url("+u.skin.getSkinElement("controlbar","divider").src+") repeat-x center left",a=u.skin.getSkinElement("controlbar","divider").width):(l.background="url("+u.skin.getSkinElement("controlbar",n).src+") repeat-x center left",a=u.skin.getSkinElement("controlbar",n).width),t=="left"?i&&(pt+=a):t=="right"&&i&&(wt+=a),_utils.typeOf(r)=="undefined"&&(r=f.elements),l.width=a,p?_css(f[n],l):(v=w(n,r,l),_utils.exists(u.skin.getSkinElement("controlbar",n+"Over"))&&(v.onmouseover=function(){v.style.backgroundImage=["url(",u.skin.getSkinElement("controlbar",n+"Over").src,")"].join("")},v.onmouseout=function(){v.style.backgroundImage=["url(",u.skin.getSkinElement("controlbar",n).src,")"].join("")}),n.indexOf("divider")==0&&v.setAttribute("class","divider"),v.innerHTML="&nbsp;"))}function pi(){u.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,wi);u.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_ITEM,bi);u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_BUFFER,g);u.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,ei);u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_TIME,b);u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_MUTE,fi);u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_VOLUME,si);u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_COMPLETE,di)}function wi(){e.hideplaylistcontrols||(u.jwGetPlaylist().length>1||e.forcenextprev.toString()=="true"?(_show(f.nextButton),_show(f.prevButton)):(_hide(f.nextButton),_hide(f.prevButton)),vt(),ri())}function bi(n){h=u.jwGetPlaylist()[n.index].duration;rt=-1;b({id:u.id,duration:h,position:0});g({id:u.id,bufferProgress:0})}function ri(){b({id:u.id,duration:u.jwGetDuration(),position:0});g({id:u.id,bufferProgress:0});fi({id:u.id,mute:u.jwGetMute()});ei({id:u.id,newstate:n.api.events.state.IDLE});si({id:u.id,volume:u.jwGetVolume()})}function a(n,t,i){if(!p&&_utils.exists(u.skin.getSkinElement("controlbar",n))){var r=f[n];_utils.exists(r)&&(_css(r,{cursor:"pointer"}),r.onmouseup=t=="fullscreen"?function(n){n.stopPropagation();u.jwSetFullscreen(!u.jwGetFullscreen())}:function(n){n.stopPropagation();_utils.exists(i)?u[t](i):u[t]()})}}function ui(n){if(!p){var t=f[n+"Slider"];_css(f.elements,{cursor:"pointer"});_css(t,{cursor:"pointer"});t.onmousedown=function(){y=n};t.onmouseup=function(n){n.stopPropagation();ki(n.pageX)};t.onmousemove=function(t){if(y=="time"){it=!0;var i=t.pageX-l[n+"Slider"].left-window.pageXOffset;_css(f[y+"SliderThumb"],{left:i})}}}}function ki(t){var f,i,r;it=!1;y=="time"?(f=t-l.timeSliderRail.left+window.pageXOffset,i=f/l.timeSliderRail.width*h,i<0?i=0:i>h&&(i=h-3),(u.jwGetState()==n.api.events.state.PAUSED||u.jwGetState()==n.api.events.state.IDLE)&&u.jwPlay(),u.jwSeek(i)):y=="volume"&&(f=t-l.volumeSliderRail.left-window.pageXOffset,r=Math.round(f/l.volumeSliderRail.width*100),r<10?r=0:r>100&&(r=100),u.jwGetMute()&&u.jwSetMute(!1),u.jwSetVolume(r));y="none"}function g(n){if(_utils.exists(n.bufferPercent)&&(nt=n.bufferPercent),l.timeSliderRail){var t=u.skin.getSkinElement("controlbar","timeSliderCapLeft"),i=l.timeSliderRail.width,r=isNaN(Math.round(i*nt/100))?0:Math.round(i*nt/100);_css(f.timeSliderBuffer,{width:r,left:t?t.width:0})}}function fi(n){n.mute?(_hide(f.muteButton),_show(f.unmuteButton),_hide(f.volumeSliderProgress)):(_show(f.muteButton),_hide(f.unmuteButton),_show(f.volumeSliderProgress))}function ei(t){t.newstate==n.api.events.state.BUFFERING||t.newstate==n.api.events.state.PLAYING?(_show(f.pauseButton),_hide(f.playButton)):(_hide(f.pauseButton),_show(f.playButton));ht();t.newstate==n.api.events.state.IDLE?(_hide(f.timeSliderBuffer),_hide(f.timeSliderProgress),_hide(f.timeSliderThumb),b({id:u.id,duration:u.jwGetDuration(),position:0})):(_show(f.timeSliderBuffer),t.newstate!=n.api.events.state.BUFFERING&&(_show(f.timeSliderProgress),_show(f.timeSliderThumb)))}function di(n){g({bufferPercent:0});b(_utils.extend(n,{position:0,duration:h}))}function b(n){var t,o,i,e;if(_utils.exists(n.position)&&(k=n.position),t=!1,_utils.exists(n.duration)&&n.duration!=h&&(h=n.duration,t=!0),o=k/h,i=l.timeSliderRail,i){var s=isNaN(Math.round(i.width*o))?0:Math.round(i.width*o),r=u.skin.getSkinElement("controlbar","timeSliderCapLeft"),c=s+(r?r.width:0);f.timeSliderProgress&&(_css(f.timeSliderProgress,{width:s,left:r?r.width:0}),it||f.timeSliderThumb&&(f.timeSliderThumb.style.left=c+"px"))}f.durationText&&(f.durationText.innerHTML=_utils.timeFormat(h));f.elapsedText&&(e=_utils.timeFormat(k),f.elapsedText.innerHTML=e,rt!=e.length&&(t=!0,rt=e.length));t&&vt()}function oi(){for(var e=f.elements.childNodes,u,i,n,t,r=0;r<e.length;r++){n=e[r].childNodes;for(t in n)isNaN(parseInt(t,10))||(n[t].id.indexOf(o.id+"_divider")===0&&i&&i.id.indexOf(o.id+"_divider")===0&&n[t].style.backgroundImage==i.style.backgroundImage?n[t].style.display="none":n[t].id.indexOf(o.id+"_divider")===0&&u&&u.style.display!="none"&&(n[t].style.display="block"),n[t].style.display!="none"&&(i=n[t]),u=n[t])}}function gi(){u.jwGetFullscreen()?(_show(f.normalscreenButton),_hide(f.fullscreenButton)):(_hide(f.normalscreenButton),_show(f.fullscreenButton));u.jwGetState()==n.api.events.state.BUFFERING||u.jwGetState()==n.api.events.state.PLAYING?(_show(f.pauseButton),_hide(f.playButton)):(_hide(f.pauseButton),_show(f.playButton));u.jwGetMute()==!0?(_hide(f.muteButton),_show(f.unmuteButton),_hide(f.volumeSliderProgress)):(_show(f.muteButton),_hide(f.unmuteButton),_show(f.volumeSliderProgress))}function vt(){var t,i,r,s;oi();gi();t={width:bt};i={float:"left",styleFloat:"left",cssFloat:"left"};(e.position==n.html5.view.positions.OVER||u.jwGetFullscreen())&&(t.left=e.margin,t.width-=2*e.margin,t.top=kt-c().height-e.margin,t.height=c().height);r=u.skin.getSkinElement("controlbar","capLeft");s=u.skin.getSkinElement("controlbar","capRight");i.width=t.width-(r?r.width:0)-(s?s.width:0);var y=_utils.getBoundingClientRect(f.leftGroup).width,p=_utils.getBoundingClientRect(f.rightGroup).width,l=i.width-y-p-1,h=l,a=u.skin.getSkinElement("controlbar","timeSliderCapLeft"),v=u.skin.getSkinElement("controlbar","timeSliderCapRight");return _utils.exists(a)&&(h-=a.width),_utils.exists(v)&&(h-=v.width),f.timeSlider.style.width=l+"px",f.timeSliderRail.style.width=h+"px",_css(o,t),_css(f.elements,i),_css(f.background,i),ni(),t}function si(n){var t;if(_utils.exists(f.volumeSliderRail)){var r=isNaN(n.volume/100)?1:n.volume/100,i=_utils.parseDimension(f.volumeSliderRail.style.width),e=isNaN(Math.round(i*r))?0:Math.round(i*r),s=_utils.parseDimension(f.volumeSliderRail.style.right),o=_utils.exists(u.skin.getSkinElement("controlbar","volumeSliderCapLeft"))?u.skin.getSkinElement("controlbar","volumeSliderCapLeft").width:0;_css(f.volumeSliderProgress,{width:e,left:o});f.volumeSliderThumb&&(t=e-Math.round(_utils.parseDimension(f.volumeSliderThumb.style.width)/2),t=Math.min(Math.max(t,0),i-_utils.parseDimension(f.volumeSliderThumb.style.width)),_css(f.volumeSliderThumb,{left:t}));_utils.exists(f.volumeSliderCapLeft)&&_css(f.volumeSliderCapLeft,{left:0})}}function hi(){try{var n=u.id.indexOf("_instream")>0?u.id.replace("_instream",""):u.id;dt=document.getElementById(n);dt.addEventListener("mousemove",ht)}catch(t){_utils.log("Could not add mouse listeners to controlbar: "+t)}}function nr(){ci();ai();ni();p=!0;pi();e.idlehide=e.idlehide.toString().toLowerCase()=="true";e.position==n.html5.view.positions.OVER&&e.idlehide?(o.style.opacity=0,et=!0):(o.style.opacity=1,setTimeout(function(){et=!0;tt()},1));hi();ri()}var u,e,st,tt,lt;if(window.controlbar=this,u=i,e=_utils.extend({},t,u.skin.getComponentSettings("controlbar"),r),e.position!=n.html5.view.positions.NONE&&typeof n.html5.view.positions[e.position]!="undefined"){_utils.mapLength(u.skin.getComponentLayout("controlbar"))>0&&(e.layout=u.skin.getComponentLayout("controlbar"));var o,yt,pt,wt,y="none",it,k,h,nt,bt,kt,f={},p=!1,l={},rt=-1,d,v=!1,ut,ft,et=!1,ot=!1,dt,gt=new n.html5.eventdispatcher;return _utils.extend(this,gt),this.getDisplayElement=function(){return o},this.resize=function(n,t){hi();_utils.cancelAnimation(o);bt=n;kt=t;ot!=u.jwGetFullscreen()&&(ot=u.jwGetFullscreen(),ot||ht(),ft=undefined);var i=vt();return b({id:u.id,duration:h,position:k}),g({id:u.id,bufferPercent:nt}),i},this.show=function(){v&&(v=!1,_show(o),tt())},this.hide=function(){v||(v=!0,_hide(o),lt())},tt=ii(n.api.events.JWPLAYER_COMPONENT_SHOW),lt=ii(n.api.events.JWPLAYER_COMPONENT_HIDE),nr(),this}}}(jwplayer),function(n){var t=n.utils;n.html5.controller=function(r,u,f,e){function ct(n){b?s.sendEvent(n.type,n):g.push(n)}function lt(t){var i,r;if(!b){for(b=!0,s.sendEvent(n.api.events.JWPLAYER_READY,t),n.utils.exists(window.playerReady)&&playerReady(t),n.utils.exists(window[f.config.playerReady])&&window[f.config.playerReady](t);g.length>0;)i=g.shift(),s.sendEvent(i.type,i);for(f.config.autostart&&!n.utils.isIOS()&&ft();k.length>0;)r=k.shift(),ot(r.method,r.arguments)}}function a(){try{if(v=a,!l&&(l=!0,s.sendEvent(n.api.events.JWPLAYER_MEDIA_BEFOREPLAY),l=!1,w)){w=!1;v=null;return}return h(o.item),o.playlist[o.item].levels[0].file.length>0&&(d||o.state==n.api.events.state.IDLE?(o.getMedia().load(o.playlist[o.item]),d=!1):o.state==n.api.events.state.PAUSED&&o.getMedia().play()),!0}catch(t){s.sendEvent(n.api.events.JWPLAYER_ERROR,t);v=null}return!1}function at(){try{if(o.playlist[o.item].levels[0].file.length>0)switch(o.state){case n.api.events.state.PLAYING:case n.api.events.state.BUFFERING:o.getMedia()&&o.getMedia().pause();break;default:l&&(w=!0)}return!0}catch(t){s.sendEvent(n.api.events.JWPLAYER_ERROR,t)}return!1}function vt(t){try{if(o.playlist[o.item].levels[0].file.length>0){typeof t!="number"&&(t=parseFloat(t));switch(o.state){case n.api.events.state.IDLE:p<0&&(p=o.playlist[o.item].start,o.playlist[o.item].start=t);l||a();break;case n.api.events.state.PLAYING:case n.api.events.state.PAUSED:case n.api.events.state.BUFFERING:o.seek(t)}}return!0}catch(i){s.sendEvent(n.api.events.JWPLAYER_ERROR,i)}return!1}function y(i){v=null;t.exists(i)||(i=!0);try{return(o.state!=n.api.events.state.IDLE||i)&&o.getMedia()&&o.getMedia().stop(i),l&&(w=!0),!0}catch(r){s.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function nt(){try{if(o.playlist[o.item].levels[0].file.length>0&&(o.config.shuffle?h(it()):o.item+1==o.playlist.length?h(0):h(o.item+1)),o.state!=n.api.events.state.IDLE){var t=o.state;o.state=n.api.events.state.IDLE;s.sendEvent(n.api.events.JWPLAYER_PLAYER_STATE,{oldstate:t,newstate:n.api.events.state.IDLE})}return a(),!0}catch(i){s.sendEvent(n.api.events.JWPLAYER_ERROR,i)}return!1}function yt(){try{if(o.playlist[o.item].levels[0].file.length>0&&(o.config.shuffle?h(it()):o.item===0?h(o.playlist.length-1):h(o.item-1)),o.state!=n.api.events.state.IDLE){var t=o.state;o.state=n.api.events.state.IDLE;s.sendEvent(n.api.events.JWPLAYER_PLAYER_STATE,{oldstate:t,newstate:n.api.events.state.IDLE})}return a(),!0}catch(i){s.sendEvent(n.api.events.JWPLAYER_ERROR,i)}return!1}function it(){var n=null;if(o.playlist.length>1)while(!t.exists(n))n=Math.floor(Math.random()*o.playlist.length),n==o.item&&(n=null);else n=0;return n}function rt(t){if(!o.playlist||!o.playlist[t])return!1;try{if(o.playlist[t].levels[0].file.length>0){var i=o.state;i!==n.api.events.state.IDLE&&(o.playlist[o.item]&&o.playlist[o.item].provider==o.playlist[t].provider?y(!1):y());h(t);a()}return!0}catch(r){s.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function h(t){o.playlist[t]&&(o.setActiveMediaProvider(o.playlist[t]),o.item!=t&&(o.item=t,d=!0,s.sendEvent(n.api.events.JWPLAYER_PLAYLIST_ITEM,{index:t})))}function pt(t){try{h(o.item);var i=o.getMedia();switch(typeof t){case"number":i.volume(t);break;case"string":i.volume(parseInt(t,10))}return o.setVolume(t),!0}catch(r){s.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function wt(t){try{h(o.item);var i=o.getMedia();return typeof t=="undefined"?(i.mute(!o.mute),o.setMute(!o.mute)):t.toString().toLowerCase()=="true"?(i.mute(!0),o.setMute(!0)):(i.mute(!1),o.setMute(!1)),!0}catch(r){s.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function bt(t,i){try{return o.width=t,o.height=i,tt.resize(t,i),s.sendEvent(n.api.events.JWPLAYER_RESIZE,{width:o.width,height:o.height}),!0}catch(r){s.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function ut(t,i){try{return typeof t=="undefined"&&(t=!o.fullscreen),typeof i=="undefined"&&(i=!0),t!=o.fullscreen&&(o.fullscreen=t.toString().toLowerCase()=="true",tt.fullscreen(o.fullscreen),i&&s.sendEvent(n.api.events.JWPLAYER_FULLSCREEN,{fullscreen:o.fullscreen}),s.sendEvent(n.api.events.JWPLAYER_RESIZE,{width:o.width,height:o.height})),!0}catch(r){s.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function kt(i){try{return y(),l&&(w=!1),o.loadPlaylist(i),o.playlist[o.item].provider?(h(o.item),o.config.autostart.toString().toLowerCase()!="true"||t.isIOS()||l||a(),!0):!1}catch(r){s.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function ft(){t.isIOS()||(h(o.item),o.config.autostart.toString().toLowerCase()!="true"||t.isIOS()||a())}function dt(n){ut(n.fullscreen,!1)}function gt(){try{return o.getMedia().detachMedia()}catch(n){return null}}function ni(){try{var n=o.getMedia().attachMedia();typeof v=="function"&&v()}catch(t){return null}}function et(){if(o.state==n.api.events.state.IDLE){v=et;switch(o.config.repeat.toUpperCase()){case n.html5.controller.repeatoptions.SINGLE:a();break;case n.html5.controller.repeatoptions.ALWAYS:o.item!=o.playlist.length-1||o.config.shuffle?nt():rt(0);break;case n.html5.controller.repeatoptions.LIST:o.item!=o.playlist.length-1||o.config.shuffle?nt():(y(),h(0));break;default:y()}}}function c(n){return function(){b?ot(n,arguments):k.push({method:n,arguments:arguments})}}function ot(n,t){var r=[];for(i=0;i<t.length;i++)r.push(t[i]);n.apply(this,r)}var ti=r,o=f,tt=e,st=u,d=!0,p=-1,l=!1,w=!1,v,g=[],b=!1,ht=t.exists(o.config.debug)&&o.config.debug.toString().toLowerCase()=="console",s=new n.html5.eventdispatcher(st.id,ht),k;t.extend(this,s);o.addGlobalListener(ct);o.addEventListener(n.api.events.JWPLAYER_MEDIA_BUFFER_FULL,function(){o.getMedia().play()});o.addEventListener(n.api.events.JWPLAYER_MEDIA_TIME,function(n){n.position>=o.playlist[o.item].start&&p>=0&&(o.playlist[o.item].start=p,p=-1)});o.addEventListener(n.api.events.JWPLAYER_MEDIA_COMPLETE,function(){setTimeout(et,25)});o.addEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,ft);o.addEventListener(n.api.events.JWPLAYER_FULLSCREEN,dt);n.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"};k=[];this.play=c(a);this.pause=c(at);this.seek=c(vt);this.stop=c(y);this.next=c(nt);this.prev=c(yt);this.item=c(rt);this.setVolume=c(pt);this.setMute=c(wt);this.resize=c(bt);this.setFullscreen=c(ut);this.load=c(kt);this.playerReady=lt;this.detachMedia=gt;this.attachMedia=ni;this.beforePlay=function(){return l};this.destroy=function(){o.getMedia()&&o.getMedia().destroy()}}}(jwplayer),function(n){n.html5.defaultSkin=function(){return this.text='<?xml version="1.0" ?><skin author="LongTail Video" name="Five" version="1.1"><components><component name="controlbar"><settings><setting name="margin" value="20"/><setting name="fontsize" value="11"/><setting name="fontcolor" value="0x000000"/><\/settings><layout><group position="left"><button name="play"/><divider name="divider"/><button name="prev"/><divider name="divider"/><button name="next"/><divider name="divider"/><text name="elapsed"/><\/group><group position="center"><slider name="time"/><\/group><group position="right"><text name="duration"/><divider name="divider"/><button name="blank"/><divider name="divider"/><button name="mute"/><slider name="volume"/><divider name="divider"/><button name="fullscreen"/><\/group><\/layout><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAIAAABvFaqvAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAElJREFUOI3t1LERACAMQlFgGvcfxNIhHMK4gsUvUviOmgtNsiAZkBSEKxKEnCYkkQrJn/YwbUNiSDDYRZaQRDaShv+oX9GBZEIuK+8hXVLs+/YAAAAASUVORK5CYII="/><element name="blankButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAYCAYAAAAyJzegAAAAFElEQVQYV2P8//8/AzpgHBUc7oIAGZdH0RjKN8EAAAAASUVORK5CYII="/><element name="capLeft" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAYAAAA7zJfaAAAAQElEQVQIWz3LsRGAMADDQJ0XB5bMINABZ9GENGrszxhjT2WLSqxEJG2JQrTMdV2q5LpOAvyRaVmsi7WdeZ/7+AAaOTq7BVrfOQAAAABJRU5ErkJggg=="/><element name="capRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAYAAAA7zJfaAAAAQElEQVQIWz3LsRGAMADDQJ0XB5bMINABZ9GENGrszxhjT2WLSqxEJG2JQrTMdV2q5LpOAvyRaVmsi7WdeZ/7+AAaOTq7BVrfOQAAAABJRU5ErkJggg=="/><element name="divider" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADhJREFUCB0FwcENgEAAw7Aq+893g8APUILNOQcbFRktVGqUVFRkWNz3xTa2sUaLNUosKlRUvvf5AdbWOTtzmzyWAAAAAElFTkSuQmCC"/><element name="playButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAANUlEQVR42u2RsQkAAAjD/NTTPaW6dXLrINJA1kBpGPMAjDWmOgp1HFQXx+b1KOefO4oxY57R73YnVYCQUCQAAAAASUVORK5CYII="/><element name="pauseButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAIUlEQVQ4jWNgGAWjYOiD/0gYG3/U0FFDB4Oho2AUDAYAAEwiL9HrpdMVAAAAAElFTkSuQmCC"/><element name="prevButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAQklEQVQ4y2NgGAWjYOiD/1AMA/JAfB5NjCJD/YH4PRaLyDa0H4lNNUP/DxlD59PCUBCIp3ZEwYA+NZLUKBgFgwEAAN+HLX9sB8u8AAAAAElFTkSuQmCC"/><element name="nextButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAQElEQVQ4y2NgGAWjYOiD/0B8Hojl0cT+U2ooCL8HYn9qGwrD/bQw9P+QMXQ+tSMqnpoRBUpS+tRMUqNgFAwGAADxZy1/mHvFnAAAAABJRU5ErkJggg=="/><element name="timeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAOElEQVRIDe3BwQkAIRADwAhhw/nU/kWwUK+KPITMABFh19Y+F0acY8CJvX9wYpXgRElwolSIiMf9ZWEDhtwurFsAAAAASUVORK5CYII="/><element name="timeSliderBuffer" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAN0lEQVRIDe3BwQkAMQwDMBcc55mRe9zi7RR+FCwBEWG39vcfGHFm4MTuhhMlwYlVBSdKhYh43AW/LQMKm1spzwAAAABJRU5ErkJggg=="/><element name="timeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAIElEQVRIiWNgGAWjYBTQBfynMR61YCRYMApGwSigMQAAiVWPcbq6UkIAAAAASUVORK5CYII="/><element name="timeSliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAYCAYAAAA/OUfnAAAAO0lEQVQYlWP4//8/Awwz0JgDBP/BeN6Cxf/hnI2btiI4u/fsQ3AOHjqK4Jw4eQbBOX/hEoKDYjSd/AMA4cS4mfLsorgAAAAASUVORK5CYII="/><element name="muteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAJklEQVQ4y2NgGAUjDcwH4v/kaPxPikZkxcNVI9mBQ5XoGAWDFwAAsKAXKQQmfbUAAAAASUVORK5CYII="/><element name="unmuteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAMklEQVQ4y2NgGAWDHPyntub5xBr6Hwv/Pzk2/yfVG/8psRFE25Oq8T+tQnsIaB4FVAcAi2YVysVY52AAAAAASUVORK5CYII="/><element name="volumeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAACdGdVrAAAACVBMVEUAAACmpqampqbBXAu8AAAAAnRSTlMAgJsrThgAAAArSURBVAhbY2AgErBAyA4I2QEhOyBkB4TsYOhAoaCCUCUwDTDtMMNgRuMHAFB5FoGH5T0UAAAAAElFTkSuQmCC"/><element name="volumeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAACdGdVrAAAACVBMVEUAAAAAAAAAAACDY+nAAAAAAnRSTlMAgJsrThgAAAArSURBVAhbY2AgErBAyA4I2QEhOyBkB4TsYOhAoaCCUCUwDTDtMMNgRuMHAFB5FoGH5T0UAAAAAElFTkSuQmCC"/><element name="volumeSliderCapRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAYCAYAAAAyJzegAAAAFElEQVQYV2P8//8/AzpgHBUc7oIAGZdH0RjKN8EAAAAASUVORK5CYII="/><element name="fullscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAQklEQVRIiWNgGAWjYMiD/0iYFDmSLbDHImdPLQtgBpEiR7Zl2NijAA5oEkT/0Whi5UiyAJ8BVMsHNMtoo2AUDAIAAGdcIN3IDNXoAAAAAElFTkSuQmCC"/><element name="normalscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAP0lEQVRIx2NgGAWjYMiD/1RSQ5QB/wmIUWzJfzx8qhj+n4DYCAY0DyJ7PBbYU8sHMEvwiZFtODXUjIJRMJgBACpWIN2ZxdPTAAAAAElFTkSuQmCC"/><\/elements><\/component><component name="display"><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAQMAAAAk8RryAAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlOZpuml+rYAAAASSURBVBhXY2AYJuA/GBwY6jQAyDyoK8QcL4QAAAAASUVORK5CYII="/><element name="playIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAiUlEQVR42u3XSw2AMBREURwgAQlIQAISKgUpSEFKJeCg5b0E0kWBTVcD9ySTsL0Jn9IBAAAA+K2UUrBlW/Rr5ZDoIeeuoFkxJD9ss03aIXXQqB9SttoG7ZA6qNcOKdttiwcJh9RB+iFl4SshkRBuLR72+9cvH0SOKI2HRo7x/Fi1/uoCAAAAwLsD8ki99IlO2dQAAAAASUVORK5CYII="/><element name="muteIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAVUlEQVR42u3WMQrAIAxAUW/g/SdvGmvpoOBeSHgPsjj5QTANAACARCJilIhYM0tEvJM+Ik3Id9E957kQIb+F3OdCPC0hPkQriqWx9hp/x/QGAABQyAPLB22VGrpLDgAAAABJRU5ErkJggg=="/><element name="errorIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAA/0lEQVR42u2U0QmEMBAF7cASLMESUoIlpARLSCkpwRJSgiWkhOvAXD4WsgRkyaG5DbyB+Yvg8KITAAAAAAAYk+u61mwk15EjPtlEfihmqIiZR1Qx80ghjgdUuiHXGHSVsoag0x6x8DUoyjD5KovmEJ9NTDMRPIT0mtdIUkjlonuNohO+Ha99DTmkuGgKCTcvebAzx82ZoCWC3/3aIMWSRucaxcjORSFY4xpFdjYJGp1rFGcyCYZ/RVh6AUnfcNZ2zih3/mGj1jVCdiNDwyrq1rA/xMdeEXvDVdnYc1vDc3uPkDObXrlaxbNHSOohQhr/WOeLEWfWTgAAAAAAADzNF9sHJ7PJ57MlAAAAAElFTkSuQmCC"/><element name="bufferIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAACBklEQVR42u3Zv0sCYRzH8USTzOsHHEWGkC1HgaDgkktGDjUYtDQ01RDSljQ1BLU02+rk1NTm2NLq4Nx/0L/h9fnCd3j4cnZe1/U8xiO8h3uurufF0/3COd/3/0UWYiEWYiEWYiGJQ+J8xuPxKhXjEMZANinjIZhkGuVRNioE4wVURo4JkHm0xKWmhRAc1bh1EyCUw5BcBIjHiApKa4CErko6DEJwuRo6IRKzyJD8FJAyI3Zp2zRImiBcRhlfo5RtlxCcE3CcDNpGrhYIT2IhAJKilO0VRmzJ32fAMTpBTS0QMfGwlcuKMRftE0DJ0wCJdcOsCkBdXP3Mh9CEFUBTPS9mDZJBG6io4aqVzMdCokCw9H3kT6j/C/9iDdSeUMNC7DkyyxAs/Rk6Qss8FPWRZgdVtUH4DjxEn1zxh+/zj1wHlf4MQhNGrwqA6sY40U8JonRJwEQh+AO3AvCG6gHv4U7IY4krxkroWoAOkoQMGfCBrgIm+YBGqPENpIJ66CJg3x66Y0gnSUidAEEnNr9jjLiWMn5DiWP0OC/oAsCgkq43xBdGDMQr7YASP/vEkHvdl1+JOCcEV5sC4hGEOzTlPuKgd0b0xD4JkRcOgnRRTjdErkYhAsQVq6IdUuPJtmk7BCL3t/h88cx91pKQkI/pkDx6pmYTIjEoxiHsN1YWYiEWYiEWknhflZ5IErA5nr8AAAAASUVORK5CYII="/><\/elements><\/component><component name="dock"><settings><setting name="fontcolor" value="0xffffff"/><\/settings><elements><element name="button" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAQMAAAAk8RryAAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlOZpuml+rYAAAASSURBVBhXY2AYJuA/GBwY6jQAyDyoK8QcL4QAAAAASUVORK5CYII="/><\/elements><\/component><component name="playlist"><settings><setting name="backgroundcolor" value="0xe8e8e8"/><\/settings><elements><element name="item" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAIAAAC1nk4lAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHBJREFUaN7t2MENwCAMBEEe9N8wSKYC/D8YV7CyJoRkVtVImxkZPQInMxoP0XiIxkM0HsGbjjSNBx544IEHHnjggUe/6UQeey0PIh7XTftGxKPj4eXCtLsHHh+ZxkO0Iw8PR55Ni8ZD9Hu/EAoP0dc5RRg9qeRjVF8AAAAASUVORK5CYII="/><element name="sliderCapTop" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAHCAYAAADnCQYGAAAAFUlEQVQokWP8//8/A7UB46ihI9hQAKt6FPPXhVGHAAAAAElFTkSuQmCC"/><element name="sliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAUCAYAAABiS3YzAAAAKElEQVQ4y2P4//8/Az68bNmy/+iYkB6GUUNHDR01dNTQUUNHDaXcUABUDOKhcxnsSwAAAABJRU5ErkJggg=="/><element name="sliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAUCAYAAABiS3YzAAAAJUlEQVQ4T2P4//8/Ay4MBP9xYbz6Rg0dNXTU0FFDRw0dNZRyQwHH4NBa7GJsXAAAAABJRU5ErkJggg=="/><element name="sliderCapBottom" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAHCAYAAADnCQYGAAAAFUlEQVQokWP8//8/A7UB46ihI9hQAKt6FPPXhVGHAAAAAElFTkSuQmCC"/><\/elements><\/component><\/components><\/skin>',this.xml=null,window.DOMParser?(parser=new DOMParser,this.xml=parser.parseFromString(this.text,"text/xml")):(this.xml=new ActiveXObject("Microsoft.XMLDOM"),this.xml.async="false",this.xml.loadXML(this.text)),this}}(jwplayer),function(n){_utils=n.utils;_css=_utils.css;_hide=function(n){_css(n,{display:"none"})};_show=function(n){_css(n,{display:"block"})};n.html5.display=function(t,i){function dt(){u.display=h("div","display");u.display_text=h("div","display_text");u.display.appendChild(u.display_text);u.display_image=h("img","display_image");u.display_image.onerror=function(){_hide(u.display_image)};u.display_image.onload=gt;u.display_icon=h("div","display_icon");u.display_iconBackground=h("div","display_iconBackground");u.display.appendChild(u.display_image);u.display_iconBackground.appendChild(u.display_icon);u.display.appendChild(u.display_iconBackground);ni();setTimeout(function(){ct=!0;l.icons.toString()=="true"&&g()},1)}function gt(){nt=u.display_image.naturalWidth;tt=u.display_image.naturalHeight;yt();(r.jwGetState()==n.api.events.state.IDLE||r.jwGetPlaylist()[r.jwGetPlaylistIndex()].provider=="sound")&&(_css(u.display_image,{display:"block",opacity:0}),_utils.fadeTo(u.display_image,1,.1));ft=!1}function yt(){if(r.jwGetFullscreen()&&r.jwGetStretching()==n.utils.stretching.EXACTFIT){var t=document.createElement("div");_utils.stretch(n.utils.stretching.UNIFORM,t,e,f,lt,at);_utils.stretch(n.utils.stretching.EXACTFIT,u.display_image,_utils.parseDimension(t.style.width),_utils.parseDimension(t.style.height),nt,tt);_css(u.display_image,{left:t.style.left,top:t.style.top})}else _utils.stretch(r.jwGetStretching(),u.display_image,e,f,nt,tt)}function h(n,t){var i=document.createElement(n);return i.id=r.id+"_jwplayer_"+t,_css(i,w[t].style),i}function ni(){for(var n in u)_utils.exists(w[n].click)&&(u[n].onclick=w[n].click)}function ti(t){if(typeof t.preventDefault!="undefined"?t.preventDefault():t.returnValue=!1,typeof p=="function"){p(t);return}r.jwGetState()!=n.api.events.state.PLAYING?r.jwPlay():r.jwPause()}function b(n){if(v){c();return}u.display_icon.style.backgroundImage=["url(",r.skin.getSkinElement("display",n).src,")"].join("");_css(u.display_icon,{width:r.skin.getSkinElement("display",n).width,height:r.skin.getSkinElement("display",n).height,top:(r.skin.getSkinElement("display","background").height-r.skin.getSkinElement("display",n).height)/2,left:(r.skin.getSkinElement("display","background").width-r.skin.getSkinElement("display",n).width)/2});ii();_utils.exists(r.skin.getSkinElement("display",n+"Over"))?(u.display_icon.onmouseover=function(){u.display_icon.style.backgroundImage=["url(",r.skin.getSkinElement("display",n+"Over").src,")"].join("")},u.display_icon.onmouseout=function(){u.display_icon.style.backgroundImage=["url(",r.skin.getSkinElement("display",n).src,")"].join("")}):(u.display_icon.onmouseover=null,u.display_icon.onmouseout=null)}function c(){l.icons.toString()=="true"&&(_hide(u.display_icon),_hide(u.display_iconBackground),wt())}function ii(){s||l.icons.toString()!="true"||(_show(u.display_icon),_show(u.display_iconBackground),g())}function ri(n){v=!0;c();u.display_text.innerHTML=n.message;_show(u.display_text);u.display_text.style.top=(f-_utils.getBoundingClientRect(u.display_text).height)/2+"px"}function k(){et=!1;u.display_image.style.display="none"}function ui(){rt=""}function d(t){(t.type==n.api.events.JWPLAYER_PLAYER_STATE||t.type==n.api.events.JWPLAYER_PLAYLIST_ITEM)&&v&&(v=!1,_hide(u.display_text));var i=r.jwGetState();i!=rt&&(rt=i,y>=0&&clearTimeout(y),o||r.jwGetState()==n.api.events.state.PLAYING||r.jwGetState()==n.api.events.state.PAUSED?ot(r.jwGetState()):y=setTimeout(fi(r.jwGetState()),500))}function fi(n){return function(){ot(n)}}function ot(t){_utils.exists(a)&&(clearInterval(a),a=null,_utils.animations.rotate(u.display_icon,0));switch(t){case n.api.events.state.BUFFERING:_utils.isIPod()?(k(),c()):(r.jwGetPlaylist()[r.jwGetPlaylistIndex()].provider=="sound"&&st(),it=0,a=setInterval(function(){it+=bt;_utils.animations.rotate(u.display_icon,it%360)},kt),b("bufferIcon"),o=!0);break;case n.api.events.state.PAUSED:_utils.isIPod()||(r.jwGetPlaylist()[r.jwGetPlaylistIndex()].provider!="sound"&&_css(u.display_image,{background:"transparent no-repeat center center"}),b("playIcon"),o=!0);break;case n.api.events.state.IDLE:r.jwGetPlaylist()[r.jwGetPlaylistIndex()]&&r.jwGetPlaylist()[r.jwGetPlaylistIndex()].image?st():k();b("playIcon");o=!0;break;default:r.jwGetPlaylist()[r.jwGetPlaylistIndex()]&&r.jwGetPlaylist()[r.jwGetPlaylistIndex()].provider=="sound"?_utils.isIPod()?(k(),o=!1):st():(k(),o=!1);r.jwGetMute()&&l.showmute?b("muteIcon"):c()}y=-1}function st(){if(r.jwGetPlaylist()[r.jwGetPlaylistIndex()]){var n=r.jwGetPlaylist()[r.jwGetPlaylistIndex()].image;n&&(n!=ht?(ht=n,ft=!0,u.display_image.src=_utils.getAbsolutePath(n)):ft||et||(et=!0,u.display_image.style.opacity=0,u.display_image.style.display="block",_utils.fadeTo(u.display_image,1,.1)))}}function pt(n){return function(){ct&&(s||ut==n||(ut=n,vt.sendEvent(n,{component:"display",boundingRect:_utils.getDimensions(u.display_iconBackground)})))}}var l=_utils.extend({},{icons:!0,showmute:!1},i),r=t,u={},e,f,nt,tt,it,a,v,bt=_utils.exists(r.skin.getComponentSettings("display").bufferrotation)?parseInt(r.skin.getComponentSettings("display").bufferrotation,10):15,kt=_utils.exists(r.skin.getComponentSettings("display").bufferinterval)?parseInt(r.skin.getComponentSettings("display").bufferinterval,10):100,y=-1,rt=n.api.events.state.IDLE,o=!0,ut,ft=!1,et=!0,ht="",s=!1,ct=!1,p,lt,at,vt=new n.html5.eventdispatcher,w,g,wt;return _utils.extend(this,vt),w={display:{style:{cursor:"pointer",top:0,left:0,overflow:"hidden"},click:ti},display_icon:{style:{cursor:"pointer",position:"absolute",top:(r.skin.getSkinElement("display","background").height-r.skin.getSkinElement("display","playIcon").height)/2,left:(r.skin.getSkinElement("display","background").width-r.skin.getSkinElement("display","playIcon").width)/2,border:0,margin:0,padding:0,zIndex:3,display:"none"}},display_iconBackground:{style:{cursor:"pointer",position:"absolute",top:(f-r.skin.getSkinElement("display","background").height)/2,left:(e-r.skin.getSkinElement("display","background").width)/2,border:0,backgroundImage:["url(",r.skin.getSkinElement("display","background").src,")"].join(""),width:r.skin.getSkinElement("display","background").width,height:r.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2,display:"none"}},display_image:{style:{display:"none",width:e,height:f,position:"absolute",cursor:"pointer",left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1}},display_text:{style:{zIndex:4,position:"relative",opacity:.8,backgroundColor:parseInt("000000",16),color:parseInt("ffffff",16),textAlign:"center",fontFamily:"Arial,sans-serif",padding:"0 5px",fontSize:14}}},r.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,d),r.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_MUTE,d),r.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,ui),r.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_ITEM,d),r.jwAddEventListener(n.api.events.JWPLAYER_ERROR,ri),dt(),this.getDisplayElement=function(){return u.display},this.resize=function(n,t){r.jwGetFullscreen()&&_utils.isMobile()||(_css(u.display,{width:n,height:t}),_css(u.display_text,{width:n-10,top:(t-_utils.getBoundingClientRect(u.display_text).height)/2}),_css(u.display_iconBackground,{top:(t-r.skin.getSkinElement("display","background").height)/2,left:(n-r.skin.getSkinElement("display","background").width)/2}),(e!=n||f!=t)&&(e=n,f=t,ut=undefined,g()),r.jwGetFullscreen()||(lt=n,at=t),yt(),d({}))},this.show=function(){s&&(s=!1,ot(r.jwGetState()))},this.hide=function(){s||(c(),s=!0)},g=pt(n.api.events.JWPLAYER_COMPONENT_SHOW),wt=pt(n.api.events.JWPLAYER_COMPONENT_HIDE),this.setAlternateClickHandler=function(n){p=n},this.revertAlternateClickHandler=function(){p=undefined},this}}(jwplayer),function(n){var t=n.utils,i=t.css;n.html5.dock=function(r,u){function st(){return{align:n.html5.view.positions.RIGHT}}function h(n){return"url("+n+") no-repeat center center"}function rt(i,u){var k,b,y,p;if(ot(),s.length>0){var h=10,w=h,rt=-1,tt=r.skin.getSkinElement("dock","button").height,it=r.skin.getSkinElement("dock","button").width,ut=i-it-h,e,o;for(d.align==n.html5.view.positions.LEFT&&(rt=1,ut=h),k=0;k<s.length;k++)b=Math.floor(w/u),w+tt+h>(b+1)*u&&(w=(b+1)*u+h,b=Math.floor(w/u)),y=f[s[k]].div,y.style.top=w%u+"px",y.style.left=ut+(r.skin.getSkinElement("dock","button").width+h)*b*rt+"px",p={x:t.parseDimension(y.style.left),y:t.parseDimension(y.style.top),width:it,height:tt},(!e||p.x<=e.x&&p.y<=e.y)&&(e=p),(!o||p.x>=o.x&&p.y>=o.y)&&(o=p),y.style.width=it+"px",y.style.height=tt+"px",w+=r.skin.getSkinElement("dock","button").height+h;nt={x:e.x,y:e.y,width:o.x-e.x+o.width,height:e.y-o.y+o.height}}(g!=r.jwGetFullscreen()||l!=i||a!=u)&&(l=i,a=u,g=r.jwGetFullscreen(),v=undefined,setTimeout(c,1))}function ut(n){return function(){!o&&v!=n&&s.length>0&&(v=n,it.sendEvent(n,{component:"dock",boundingRect:nt}))}}function ht(i){t.isMobile()?i.newstate==n.api.events.state.IDLE?w():b():ft()}function ft(i){if(!o)if(clearTimeout(y),u.position==n.html5.view.positions.OVER||r.jwGetFullscreen())switch(r.jwGetState()){case n.api.events.state.PAUSED:case n.api.events.state.IDLE:e&&e.style.opacity<1&&(!u.idlehide||t.exists(i))&&k();u.idlehide&&(y=setTimeout(function(){et()},2e3));break;default:t.exists(i)&&k();y=setTimeout(function(){et()},2e3)}else k()}function et(){o||(p(),e.style.opacity==1&&(t.cancelAnimation(e),t.fadeTo(e,0,.1,1,0)))}function k(){o||(c(),e.style.opacity==0&&(t.cancelAnimation(e),t.fadeTo(e,1,.1,0,0)))}function ot(){try{tt=document.getElementById(r.id);tt.addEventListener("mousemove",ft)}catch(n){t.log("Could not add mouse listeners to dock: "+n)}}var d=t.extend({},st(),u),e,c,p,w,b;if(d.align!="FALSE"){var f={},s=[],l,a,o=!1,g=!1,nt={x:0,y:0,width:0,height:0},v,tt,y,it=new n.html5.eventdispatcher;return t.extend(this,it),e=document.createElement("div"),e.id=r.id+"_jwplayer_dock",e.style.opacity=1,ot(),r.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,ht),this.getDisplayElement=function(){return e},this.setButton=function(i,u,o,c){!u&&f[i]?(t.arrays.remove(s,i),e.removeChild(f[i].div),delete f[i]):u&&(f[i]||(f[i]={}),f[i].handler=u,f[i].outGraphic=o,f[i].overGraphic=c,f[i].div||(s.push(i),f[i].div=document.createElement("div"),f[i].div.style.position="absolute",e.appendChild(f[i].div),f[i].div.appendChild(document.createElement("div")),f[i].div.childNodes[0].style.position="relative",f[i].div.childNodes[0].style.width="100%",f[i].div.childNodes[0].style.height="100%",f[i].div.childNodes[0].style.zIndex=10,f[i].div.childNodes[0].style.cursor="pointer",f[i].div.appendChild(document.createElement("img")),f[i].div.childNodes[1].style.position="absolute",f[i].div.childNodes[1].style.left=0,f[i].div.childNodes[1].style.top=0,r.skin.getSkinElement("dock","button")&&(f[i].div.childNodes[1].src=r.skin.getSkinElement("dock","button").src),f[i].div.childNodes[1].style.zIndex=9,f[i].div.childNodes[1].style.cursor="pointer",f[i].div.onmouseover=function(){f[i].overGraphic&&(f[i].div.childNodes[0].style.background=h(f[i].overGraphic));r.skin.getSkinElement("dock","buttonOver")&&(f[i].div.childNodes[1].src=r.skin.getSkinElement("dock","buttonOver").src)},f[i].div.onmouseout=function(){f[i].outGraphic&&(f[i].div.childNodes[0].style.background=h(f[i].outGraphic));r.skin.getSkinElement("dock","button")&&(f[i].div.childNodes[1].src=r.skin.getSkinElement("dock","button").src)},r.skin.getSkinElement("dock","button")&&(f[i].div.childNodes[1].src=r.skin.getSkinElement("dock","button").src)),f[i].outGraphic?f[i].div.childNodes[0].style.background=h(f[i].outGraphic):f[i].overGraphic&&(f[i].div.childNodes[0].style.background=h(f[i].overGraphic)),u&&(f[i].div.onclick=function(t){t.preventDefault();n(r.id).callback(i);f[i].overGraphic&&(f[i].div.childNodes[0].style.background=h(f[i].overGraphic));r.skin.getSkinElement("dock","button")&&(f[i].div.childNodes[1].src=r.skin.getSkinElement("dock","button").src)}));rt(l,a)},c=ut(n.api.events.JWPLAYER_COMPONENT_SHOW),p=ut(n.api.events.JWPLAYER_COMPONENT_HIDE),this.resize=rt,w=function(){i(e,{display:"block"});o&&(o=!1,c())},b=function(){i(e,{display:"none"});o||(p(),o=!0)},this.hide=b,this.show=w,this}}}(jwplayer),function(n){n.html5.eventdispatcher=function(t,i){var r=new n.events.eventdispatcher(i);n.utils.extend(this,r);this.sendEvent=function(i,u){n.utils.exists(u)||(u={});n.utils.extend(u,{id:t,version:n.version,type:i});r.sendEvent(i,u)}}}(jwplayer),function(n){var t=n.utils;n.html5.instream=function(i,r,u,f){function ot(){_fakemodel=new n.html5.model(this,e.getMedia()?e.getMedia().getDisplayElement():e.container,e);p=new n.html5.eventdispatcher;h.jwAddEventListener(n.api.events.JWPLAYER_RESIZE,tt);h.jwAddEventListener(n.api.events.JWPLAYER_FULLSCREEN,tt)}function st(){_fakemodel.setMute(e.mute);_fakemodel.setVolume(e.volume)}function ht(){o||(o=new n.html5.mediavideo(_fakemodel,e.getMedia()?e.getMedia().getDisplayElement():e.container),o.addGlobalListener(ct),o.addEventListener(n.api.events.JWPLAYER_MEDIA_META,vt),o.addEventListener(n.api.events.JWPLAYER_MEDIA_COMPLETE,at),o.addEventListener(n.api.events.JWPLAYER_MEDIA_BUFFER_FULL,lt));o.attachMedia()}function ct(n){s&&nt(n.type,n)}function lt(){s&&o.play()}function at(){s&&setTimeout(function(){k.jwInstreamDestroy(!0)},10)}function vt(n){n.metadata.width&&n.metadata.height&&w.resizeMedia()}function nt(n,t,i){(s||i)&&p.sendEvent(n,t)}function tt(){var n=e.plugins.object.display.getDisplayElement().style,i;l&&(i=e.plugins.object.controlbar.getDisplayElement().style,l.resize(t.parseDimension(n.width),t.parseDimension(n.height)),_css(l.getDisplayElement(),t.extend({},i,{zIndex:1001,opacity:1})));y&&(y.resize(t.parseDimension(n.width),t.parseDimension(n.height)),_css(y.getDisplayElement(),t.extend({},n,{zIndex:1e3})));w&&w.resizeMedia()}var ut={controlbarseekable:"always",controlbarpausable:!0,controlbarstoppable:!0,playlistclickable:!0},d,a,h=i,e=r,w=u,it=f,c,ft,et,rt,v,g,o,l,y,s=!1,p,b,k=this;return this.load=function(i,r){if(st(),s=!0,a=t.extend(ut,r),d=n.html5.playlistitem(i),ht(),b=document.createElement("div"),b.id=k.id+"_instream_container",it.detachMedia(),c=o.getDisplayElement(),g=e.playlist[e.item],v=h.jwGetState(),(v==n.api.events.state.BUFFERING||v==n.api.events.state.PLAYING)&&c.pause(),ft=c.src?c.src:c.currentSrc,et=c.innerHTML,rt=c.currentTime,y=new n.html5.display(k,t.extend({},e.plugins.config.display)),y.setAlternateClickHandler(function(t){_fakemodel.state==n.api.events.state.PAUSED?k.jwInstreamPlay():nt(n.api.events.JWPLAYER_INSTREAM_CLICK,t)}),b.appendChild(y.getDisplayElement()),!t.isMobile())if(l=new n.html5.controlbar(k,t.extend({},e.plugins.config.controlbar,{})),e.plugins.config.controlbar.position==n.html5.view.positions.OVER)b.appendChild(l.getDisplayElement());else{var u=e.plugins.object.controlbar.getDisplayElement().parentNode;u.appendChild(l.getDisplayElement())}w.setupInstream(b,c);tt();o.load(d)},this.jwInstreamDestroy=function(t){if(s){if(s=!1,v!=n.api.events.state.IDLE?(o.load(g,!1),o.stop(!1)):o.stop(!0),o.detachMedia(),w.destroyInstream(),l)try{l.getDisplayElement().parentNode.removeChild(l.getDisplayElement())}catch(i){}nt(n.api.events.JWPLAYER_INSTREAM_DESTROYED,{reason:t?"complete":"destroyed"},!0);it.attachMedia();(v==n.api.events.state.BUFFERING||v==n.api.events.state.PLAYING)&&(c.play(),e.playlist[e.item]==g&&e.getMedia().seek(rt));return}},this.jwInstreamAddEventListener=function(n,t){p.addEventListener(n,t)},this.jwInstreamRemoveEventListener=function(n,t){p.removeEventListener(n,t)},this.jwInstreamPlay=function(){s&&o.play(!0)},this.jwInstreamPause=function(){s&&o.pause(!0)},this.jwInstreamSeek=function(n){s&&o.seek(n)},this.jwInstreamGetState=function(){return s?_fakemodel.state:undefined},this.jwInstreamGetPosition=function(){return s?_fakemodel.position:undefined},this.jwInstreamGetDuration=function(){return s?_fakemodel.duration:undefined},this.playlistClickable=function(){return!s||a.playlistclickable.toString().toLowerCase()=="true"},this.jwPlay=function(){a.controlbarpausable.toString().toLowerCase()=="true"&&this.jwInstreamPlay()},this.jwPause=function(){a.controlbarpausable.toString().toLowerCase()=="true"&&this.jwInstreamPause()},this.jwStop=function(){a.controlbarstoppable.toString().toLowerCase()=="true"&&(this.jwInstreamDestroy(),h.jwStop())},this.jwSeek=function(n){switch(a.controlbarseekable.toLowerCase()){case"always":this.jwInstreamSeek(n);break;case"backwards":_fakemodel.position>n&&this.jwInstreamSeek(n)}},this.jwGetPosition=function(){},this.jwGetDuration=function(){},this.jwGetWidth=h.jwGetWidth,this.jwGetHeight=h.jwGetHeight,this.jwGetFullscreen=h.jwGetFullscreen,this.jwSetFullscreen=h.jwSetFullscreen,this.jwGetVolume=function(){return e.volume},this.jwSetVolume=function(n){o.volume(n);h.jwSetVolume(n)},this.jwGetMute=function(){return e.mute},this.jwSetMute=function(n){o.mute(n);h.jwSetMute(n)},this.jwGetState=function(){return _fakemodel.state},this.jwGetPlaylist=function(){return[d]},this.jwGetPlaylistIndex=function(){return 0},this.jwGetStretching=function(){return e.config.stretching},this.jwAddEventListener=function(n,t){p.addEventListener(n,t)},this.jwRemoveEventListener=function(n,t){p.removeEventListener(n,t)},this.skin=h.skin,this.id=h.id+"_instream",ot(),this}}(jwplayer),function(n){var t={prefix:"",file:"",link:"",linktarget:"_top",margin:8,out:.5,over:1,timeout:5,hide:!0,position:"bottom-left"};_css=n.utils.css;n.html5.logo=function(i,r){function c(){l();o.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,d);a();v()}function l(){if(t.prefix){var f=i.version.split(/\W/).splice(0,2).join("/");t.prefix.indexOf(f)<0&&(t.prefix+=f+"/")}r.position==n.html5.view.positions.OVER&&(r.position=t.position);try{window.location.href.indexOf("https")==0&&(t.prefix=t.prefix.replace("http://l.longtailvideo.com","https://securel.longtailvideo.com"))}catch(e){}u=n.utils.extend({},t,r)}function a(){(f=document.createElement("img"),f.id=o.id+"_jwplayer_logo",f.style.display="none",f.onload=function(){_css(f,w());h()},u.file)&&(f.src=u.file.indexOf("/")>=0?u.file:u.prefix+u.file)}function v(){u.link?(f.onmouseover=p,f.onmouseout=h,f.onclick=y):this.mouseEnabled=!1}function y(n){if(typeof n!="undefined"&&n.stopPropagation(),e){o.jwPause();o.jwSetFullscreen(!1);u.link&&window.open(u.link,u.linktarget);return}}function h(){u.link&&e&&(f.style.opacity=u.out);return}function p(){e&&(f.style.opacity=u.over);return}function w(){var n={textDecoration:"none",position:"absolute",cursor:"pointer"},t,i;n.display=u.hide.toString()=="true"&&!e?"none":"block";t=u.position.toLowerCase().split("-");for(i in t)n[t[i]]=parseInt(u.margin);return n}function b(){u.hide.toString()=="true"&&(f.style.display="block",f.style.opacity=0,n.utils.fadeTo(f,u.out,.1,parseFloat(f.style.opacity)),s=setTimeout(function(){k()},u.timeout*1e3));e=!0}function k(){e=!1;u.hide.toString()=="true"&&n.utils.fadeTo(f,0,.1,parseFloat(f.style.opacity))}function d(t){t.newstate==n.api.events.state.BUFFERING&&(clearTimeout(s),b())}var o=i,s,u,f,e=!1;if(c(),u.file)return this.resize=function(){},this.getDisplayElement=function(){return f},this}}(jwplayer),function(n){var e={ended:n.api.events.state.IDLE,playing:n.api.events.state.PLAYING,pause:n.api.events.state.PAUSED,buffering:n.api.events.state.BUFFERING},t=n.utils,r=t.isMobile(),i,u,f={};n.html5.mediavideo=function(o,s){function at(n,i){return it[n]?it[n]:(it[n]=function(n){t.exists(n.target.parentNode)&&i(n)},it[n])}function kt(){y=n.api.events.state.IDLE;a=!0;h=dt();h.setAttribute("x-webkit-airplay","allow");p.parentNode&&(h.id=p.id,p.parentNode.replaceChild(h,p))}function dt(){var n=f[c.id],t;n||(n=p.tagName.toLowerCase()=="video"?p:document.createElement("video"),f[c.id]=n,n.id||(n.id=p.id));for(t in tt)n.addEventListener(t,at(t,tt[t]),!0);return n}function k(t){if(t!=n.api.events.state.PAUSED||y!=n.api.events.state.IDLE){if(r)switch(t){case n.api.events.state.PLAYING:wt();break;case n.api.events.state.BUFFERING:case n.api.events.state.PAUSED:bt()}if(y!=t){var i=y;c.state=y=t;l(n.api.events.JWPLAYER_PLAYER_STATE,{oldstate:i,newstate:t})}}}function w(){}function gt(){var t=Math.round(h.volume*100);l(n.api.events.JWPLAYER_MEDIA_VOLUME,{volume:t},!0);l(n.api.events.JWPLAYER_MEDIA_MUTE,{mute:h.muted},!0)}function lt(i){var r,u;a&&(t.exists(i)&&i.lengthComputable&&i.total?r=i.loaded/i.total*100:t.exists(h.buffered)&&h.buffered.length>0&&(u=h.buffered.length-1,u>=0&&(r=h.buffered.end(u)/h.duration*100)),t.useNativeFullscreen()&&t.exists(h.webkitDisplayingFullscreen)&&c.fullscreen!=h.webkitDisplayingFullscreen&&l(n.api.events.JWPLAYER_FULLSCREEN,{fullscreen:h.webkitDisplayingFullscreen},!0),nt===!1&&y==n.api.events.state.BUFFERING&&(l(n.api.events.JWPLAYER_MEDIA_BUFFER_FULL),nt=!0),ct||(r==100&&(ct=!0),t.exists(r)&&r>c.buffer&&(c.buffer=Math.round(r),l(n.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(r)}))))}function ni(i){if(a){if(t.exists(i)&&t.exists(i.target)&&(ht>0&&!isNaN(i.target.duration)&&(isNaN(c.duration)||c.duration<1)&&(c.duration=i.target.duration==Infinity?0:Math.round(i.target.duration*10)/10),!g&&h.readyState>0&&k(n.api.events.state.PLAYING),y==n.api.events.state.PLAYING)){if(h.readyState>0&&(b>-1||!g)){g=!0;try{h.currentTime!=b&&b>-1&&(h.currentTime=b,b=-1)}catch(r){}h.volume=c.volume/100;h.muted=c.mute}if(c.position=c.duration>0?Math.round(i.target.currentTime*10)/10:0,l(n.api.events.JWPLAYER_MEDIA_TIME,{position:c.position,duration:c.duration}),c.position>=c.duration&&(c.position>0||c.duration>0)){pt();return}}lt(i)}}function ti(){}function v(n){a&&(i&&u&&(h.style.width=i,h.style.height=u,i=_previousHieght=0),e[n.type]&&(n.type=="ended"?pt():k(e[n.type])))}function et(){if(a){var t=Math.round(h.duration*10)/10,i={height:h.videoHeight,width:h.videoWidth,duration:t};ht||(c.duration<t||isNaN(c.duration))&&h.duration!=Infinity&&(c.duration=t);l(n.api.events.JWPLAYER_MEDIA_META,{metadata:i})}}function ii(i){var r,u;if(a&&y!=n.api.events.state.IDLE){if(r="There was an error: ",i.target.error&&i.target.tagName.toLowerCase()=="video"||i.target.parentNode.error&&i.target.parentNode.tagName.toLowerCase()=="video"){u=t.exists(i.target.error)?i.target.error:i.target.parentNode.error;switch(u.code){case u.MEDIA_ERR_ABORTED:t.log("User aborted the video playback.");return;case u.MEDIA_ERR_NETWORK:r="A network error caused the video download to fail part-way: ";break;case u.MEDIA_ERR_DECODE:r="The video playback was aborted due to a corruption problem or because the video used features your browser did not support: ";break;case u.MEDIA_ERR_SRC_NOT_SUPPORTED:r="The video could not be loaded, either because the server or network failed or because the format is not supported: ";break;default:r="An unknown error occurred: "}}else if(i.target.tagName.toLowerCase()=="source"){if(ut--,ut>0)return;if(t.userAgentMatch(/firefox/i)){t.log("The video could not be loaded, either because the server or network failed or because the format is not supported.");ft(!1);return}r="The video could not be loaded, either because the server or network failed or because the format is not supported: "}else{t.log("An unknown error occurred.  Continuing...");return}ft(!1);r+=ri();_error=!0;l(n.api.events.JWPLAYER_ERROR,{message:r});return}}function ri(){var t="",i,r,u;for(i in d.levels)r=d.levels[i],u=p.ownerDocument.createElement("source"),t+=n.utils.getAbsolutePath(r.file),i<d.levels.length-1&&(t+=", ");return t}function vt(){t.exists(rt)||(rt=setInterval(function(){lt()},100))}function yt(){clearInterval(rt);rt=null}function pt(){y==n.api.events.state.PLAYING&&(ft(!1),l(n.api.events.JWPLAYER_MEDIA_BEFORECOMPLETE),l(n.api.events.JWPLAYER_MEDIA_COMPLETE))}function ui(){t.exists(h.webkitDisplayingFullscreen)&&c.fullscreen&&!h.webkitDisplayingFullscreen&&l(n.api.events.JWPLAYER_FULLSCREEN,{fullscreen:!1},!0)}function fi(n){var r,i,u;if(n.length>0&&t.userAgentMatch(/Safari/i)&&!t.userAgentMatch(/Chrome/i)){for(r=-1,i=0;i<n.length;i++)switch(t.extension(n[i].file)){case"mp4":r<0&&(r=i);break;case"webm":n.splice(i,1)}r>0&&(u=n.splice(r,1)[0],n.unshift(u))}}function wt(){setTimeout(function(){h.setAttribute("controls","controls")},100)}function bt(){setTimeout(function(){h.removeAttribute("controls")},250)}function l(n,t,i){(a||i)&&(t?ot.sendEvent(n,t):ot.sendEvent(n))}var tt={abort:w,canplay:v,canplaythrough:v,durationchange:et,emptied:w,ended:v,error:ii,loadeddata:et,loadedmetadata:et,loadstart:v,pause:v,play:w,playing:v,progress:lt,ratechange:w,seeked:v,seeking:v,stalled:v,suspend:v,timeupdate:ni,volumechange:gt,waiting:v,canshowcurrentframe:w,dataunavailable:w,empty:w,load:ti,loadedfirstframe:w,webkitfullscreenchange:ui},it={},ot=new n.html5.eventdispatcher,ft;t.extend(this,ot);var c=o,p=s,h,y,g,d,rt,b,st=!1,a=!1,ht=!1,ct,nt,ut;kt();this.load=function(f,e){var o,s;if(typeof e=="undefined"&&(e=!0),a){if(d=f,ht=d.duration>0,c.duration=d.duration,t.empty(h),h.style.display="block",h.style.opacity=1,i&&u&&(h.style.width=i,h.style.height=u,i=_previousHieght=0),ut=0,fi(f.levels),f.levels&&f.levels.length>0)if(f.levels.length==1||t.isIOS())h.src=f.levels[0].file;else for(h.src&&h.removeAttribute("src"),o=0;o<f.levels.length;o++)s=h.ownerDocument.createElement("source"),s.src=f.levels[o].file,h.appendChild(s),ut++;else h.src=f.file;h.volume=c.volume/100;h.muted=c.mute;r&&wt();ct=nt=g=!1;c.buffer=0;t.exists(f.start)||(f.start=0);b=f.start>0?f.start:-1;l(n.api.events.JWPLAYER_MEDIA_LOADED);(r||f.levels.length!=1)&&st||h.load();st=!1;e&&(k(n.api.events.state.BUFFERING),l(n.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0}),vt());h.videoWidth>0&&h.videoHeight>0&&et()}};this.play=function(){a&&(vt(),nt?k(n.api.events.state.PLAYING):(h.load(),k(n.api.events.state.BUFFERING)),h.play())};this.pause=function(){a&&(h.pause(),k(n.api.events.state.PAUSED))};this.seek=function(n){a&&(!g&&h.readyState>0?c.duration<=0||isNaN(c.duration)||c.position<=0||isNaN(c.position)||(h.currentTime=n,h.play()):b=n)};ft=this.stop=function(r){if(a){if(t.exists(r)||(r=!0),yt(),r){nt=!1;var f=navigator.userAgent;if(h.webkitSupportsFullscreen)try{h.webkitExitFullscreen()}catch(e){}h.style.opacity=0;bt();t.isIE()?h.src="":h.removeAttribute("src");t.empty(h);h.load();st=!0}if(t.isIPod())i=h.style.width,u=h.style.height,h.style.width=0,h.style.height=0;else if(t.isIPad()){h.style.display="none";try{h.webkitExitFullscreen()}catch(o){}}k(n.api.events.state.IDLE)}};this.fullscreen=function(n){n===!0?this.resize("100%","100%"):this.resize(c.config.width,c.config.height)};this.resize=function(){};this.volume=function(t){r||(h.volume=t/100,l(n.api.events.JWPLAYER_MEDIA_VOLUME,{volume:t/100}))};this.mute=function(t){r||(h.muted=t,l(n.api.events.JWPLAYER_MEDIA_MUTE,{mute:t}))};this.getDisplayElement=function(){return h};this.hasChrome=function(){return r&&y==n.api.events.state.PLAYING};this.detachMedia=function(){return a=!1,this.getDisplayElement()};this.attachMedia=function(){a=!0};this.destroy=function(){if(h&&h.parentNode){yt();for(var n in tt)h.removeEventListener(n,at(n,tt[n]),!0);t.empty(h);p=h.parentNode;h.parentNode.removeChild(h);delete f[c.id];h=null}}}}(jwplayer),function(n){var i={ended:n.api.events.state.IDLE,playing:n.api.events.state.PLAYING,pause:n.api.events.state.PAUSED,buffering:n.api.events.state.BUFFERING},t=n.utils.css;n.html5.mediayoutube=function(i,r){function c(t){if(s!=t){var i=s;h.state=t;s=t;e.sendEvent(n.api.events.JWPLAYER_PLAYER_STATE,{oldstate:i,newstate:t})}}function l(n){var t=n.levels[0].file,r,e,i,s,h;t=["http://www.youtube.com/v/",a(t),"&amp;hl=en_US&amp;fs=1&autoplay=1"].join("");u=document.createElement("object");u.id=f.id;u.style.position="absolute";r={movie:t,allowfullscreen:"true",allowscriptaccess:"always"};for(e in r)i=document.createElement("param"),i.name=e,i.value=r[e],u.appendChild(i);o=document.createElement("embed");u.appendChild(o);s={src:t,type:"application/x-shockwave-flash",allowfullscreen:"true",allowscriptaccess:"always",width:u.width,height:u.height};for(h in s)o.setAttribute(h,s[h]);u.appendChild(o);u.style.zIndex=2147483e3;f!=u&&f.parentNode&&f.parentNode.replaceChild(u,f);f=u}function a(n){for(var r=n.split(/\?|\#\!/),t="",i=0;i<r.length;i++)r[i].substr(0,2)=="v="&&(t=r[i].substr(2));return t==""&&(t=n.indexOf("/v/")>=0?n.substr(n.indexOf("/v/")+3):n.indexOf("youtu.be")>=0?n.substr(n.indexOf("youtu.be/")+9):n),t.indexOf("?")>-1&&(t=t.substr(0,t.indexOf("?"))),t.indexOf("&")>-1&&(t=t.substr(0,t.indexOf("&"))),t}var e=new n.html5.eventdispatcher;n.utils.extend(this,e);var h=i,f=document.getElementById(r.id),s=n.api.events.state.IDLE,u,o;return this.getDisplayElement=this.detachMedia=function(){return f},this.attachMedia=function(){},this.play=function(){s==n.api.events.state.IDLE?(e.sendEvent(n.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:100}),e.sendEvent(n.api.events.JWPLAYER_MEDIA_BUFFER_FULL),c(n.api.events.state.PLAYING)):s==n.api.events.state.PAUSED&&c(n.api.events.state.PLAYING)},this.pause=function(){c(n.api.events.state.PAUSED)},this.seek=function(){},this.stop=function(i){_utils.exists(i)||(i=!0);h.position=0;c(n.api.events.state.IDLE);i&&t(f,{display:"none"})},this.volume=function(t){h.setVolume(t);e.sendEvent(n.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(t)})},this.mute=function(t){f.muted=t;e.sendEvent(n.api.events.JWPLAYER_MEDIA_MUTE,{mute:t})},this.resize=function(n,t){n*t>0&&u&&(u.width=o.width=n,u.height=o.height=t)},this.fullscreen=function(n){n===!0?this.resize("100%","100%"):this.resize(h.config.width,h.config.height)},this.load=function(i){l(i);t(u,{display:"block"});c(n.api.events.state.BUFFERING);e.sendEvent(n.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0});e.sendEvent(n.api.events.JWPLAYER_MEDIA_LOADED);this.play()},this.hasChrome=function(){return s!=n.api.events.state.IDLE},this.embed=o,this}}(jwplayer),function(n){var i=["width","height","start","duration","volume","mute","fullscreen","item","plugins","stretching"],t=n.utils;n.html5.model=function(r,u,f){function ct(t){var i=new n.html5.playlistloader;i.addEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,function(t){e.playlist=new n.html5.playlist(t);rt(!0)});i.addEventListener(n.api.events.JWPLAYER_ERROR,function(){e.playlist=new n.html5.playlist({playlist:[]});rt(!1)});i.load(t)}function rt(){e.config.shuffle?e.item=lt():(e.config.item>=e.playlist.length?e.config.item=e.playlist.length-1:e.config.item<0&&(e.config.item=0),e.item=e.config.item);e.position=0;e.duration=e.playlist.length>0?e.playlist[e.item].duration:0;y.sendEvent(n.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:e.playlist});y.sendEvent(n.api.events.JWPLAYER_PLAYLIST_ITEM,{index:e.item})}function lt(){var t=null;if(e.playlist.length>1)while(!n.utils.exists(t))t=Math.floor(Math.random()*e.playlist.length),t==e.item&&(t=null);else t=0;return t}function ht(t){switch(t.type){case n.api.events.JWPLAYER_MEDIA_LOADED:v=o.getDisplayElement();break;case n.api.events.JWPLAYER_MEDIA_MUTE:this.mute=t.mute;break;case n.api.events.JWPLAYER_MEDIA_VOLUME:this.volume=t.volume}y.sendEvent(t.type,t)}var ut=r,v=u,b=t.getCookies(),e={id:v.id,playlist:[],state:n.api.events.state.IDLE,position:0,buffer:0,container:v,config:{width:480,height:320,item:-1,skin:undefined,file:undefined,image:undefined,start:0,duration:0,bufferlength:5,volume:b.volume?b.volume:90,mute:b.mute&&b.mute.toString().toLowerCase()=="true"?!0:!1,fullscreen:!1,repeat:"",stretching:n.utils.stretching.UNIFORM,autostart:!1,debug:undefined,screencolor:undefined}},o,y=new n.html5.eventdispatcher,h,ft,l,c,a,et,d,p,k,g,nt,tt,ot,s,it,st,w;n.utils.extend(e,y);for(h in f){typeof f[h]=="string"&&(ft=/color$/.test(h)?"color":null,f[h]=n.utils.typechecker(f[h],ft));l=e.config;c=h.split(".");for(a in c)a==c.length-1?l[c[a]]=f[h]:(n.utils.exists(l[c[a]])||(l[c[a]]={}),l=l[c[a]])}for(et in i)d=i[et],e[d]=e.config[d];if(p=["display","logo","controlbar","playlist","dock"].concat([]),n.utils.exists(e.plugins)&&typeof e.plugins=="string"){k=e.plugins.split(",");for(g in k)typeof k[g]=="string"&&p.push(k[g].replace(/^\s+|\s+$/g,""))}if(n.utils.isMobile()?(p=["display","logo","dock","playlist"],n.utils.exists(e.config.repeat)||(e.config.repeat="list")):e.config.chromeless&&(p=["logo","dock","playlist"],n.utils.exists(e.config.repeat)||(e.config.repeat="list")),e.plugins={order:p,config:{},object:{}},typeof e.config.components!="undefined")for(nt in e.config.components)e.plugins.config[nt]=e.config.components[nt];tt=!1;for(ot in e.plugins.order)s=e.plugins.order[ot],it=n.utils.exists(e.plugins.config[s])?e.plugins.config[s]:{},e.plugins.config[s]=n.utils.exists(e.plugins.config[s])?n.utils.extend(e.plugins.config[s],it):it,n.utils.exists(e.plugins.config[s].position)?(s=="playlist"&&(tt=!0),e.plugins.config[s].position=e.plugins.config[s].position.toString().toUpperCase()):e.plugins.config[s].position=s=="playlist"?n.html5.view.positions.NONE:n.html5.view.positions.OVER;if(e.plugins.config.controlbar&&tt&&(e.plugins.config.controlbar.hideplaylistcontrols=!0),typeof e.plugins.config.dock!="undefined"&&(typeof e.plugins.config.dock!="object"&&(st=e.plugins.config.dock.toString().toUpperCase(),e.plugins.config.dock={position:st}),typeof e.plugins.config.dock.position!="undefined"&&(e.plugins.config.dock.align=e.plugins.config.dock.position,e.plugins.config.dock.position=n.html5.view.positions.OVER),typeof e.plugins.config.dock.idlehide=="undefined"))try{e.plugins.config.dock.idlehide=e.plugins.config.controlbar.idlehide}catch(at){}return e.loadPlaylist=function(arg){var input,config;if(typeof arg=="string")if(arg.indexOf("[")==0||arg.indexOf("{")=="0")try{input=eval(arg)}catch(err){input=arg}else input=arg;else input=arg;switch(n.utils.typeOf(input)){case"object":config=input;break;case"array":config={playlist:input};break;default:config={file:input}}e.playlist=new n.html5.playlist(config);e.item=e.config.item>=0?e.config.item:0;!e.playlist[0].provider&&e.playlist[0].file?ct(e.playlist[0].file):rt()},w={},e.setActiveMediaProvider=function(t){t.provider=="audio"&&(t.provider="sound");var i=t.provider,r=o?o.getDisplayElement():null;if((i=="sound"||i=="http"||i=="")&&(i="video"),n.utils.exists(w[i]))o!=w[i]&&(o&&o.stop(),o=w[i]);else{switch(i){case"video":o=new n.html5.mediavideo(e,r?r:v);break;case"youtube":o=new n.html5.mediayoutube(e,r?r:v)}if(!n.utils.exists(o))return!1;o.addGlobalListener(ht);w[i]=o}return!0},e.getMedia=function(){return o},e.seek=function(t){return y.sendEvent(n.api.events.JWPLAYER_MEDIA_SEEK,{position:e.position,offset:t}),o.seek(t)},e.setVolume=function(n){t.saveCookie("volume",n);e.volume=n},e.setMute=function(n){t.saveCookie("mute",n);e.mute=n},e.setupPlugins=function(){var i,t;if(!n.utils.exists(e.plugins)||!n.utils.exists(e.plugins.order)||e.plugins.order.length==0)return n.utils.log("No plugins to set up"),e;for(i=0;i<e.plugins.order.length;i++)try{t=e.plugins.order[i];n.utils.exists(n.html5[t])?e.plugins.object[t]=t=="playlist"?new n.html5.playlistcomponent(ut,e.plugins.config[t]):new n.html5[t](ut,e.plugins.config[t]):e.plugins.order.splice(plugin,plugin+1);typeof e.plugins.object[t].addGlobalListener=="function"&&e.plugins.object[t].addGlobalListener(ht)}catch(r){n.utils.log("Could not setup "+t)}},e}}(jwplayer),function(n){n.html5.playlist=function(t){var i=[],r;if(t.playlist&&t.playlist instanceof Array&&t.playlist.length>0)for(r in t.playlist)isNaN(parseInt(r))||i.push(new n.html5.playlistitem(t.playlist[r]));else i.push(new n.html5.playlistitem(t));return i}}(jwplayer),function(n){var i={size:180,position:n.html5.view.positions.NONE,itemheight:60,thumbs:!0,fontcolor:"#000000",overcolor:"",activecolor:"",backgroundcolor:"#f8f8f8",font:"_sans",fontsize:"",fontstyle:"",fontweight:""},t={_sans:"Arial, Helvetica, sans-serif",_serif:"Times, Times New Roman, serif",_typewriter:"Courier New, Courier, monospace"};_utils=n.utils;_css=_utils.css;_hide=function(n){_css(n,{display:"none"})};_show=function(n){_css(n,{display:"block"})};n.html5.playlistcomponent=function(r,u){function p(){o=document.createElement("div");o.id=s.id+"_jwplayer_playlistcomponent";o.style.overflow="hidden";switch(f.position){case n.html5.view.positions.RIGHT:case n.html5.view.positions.LEFT:o.style.width=f.size+"px";break;case n.html5.view.positions.TOP:case n.html5.view.positions.BOTTOM:o.style.height=f.size+"px"}ft();e.item&&(f.itemheight=e.item.height);o.style.backgroundColor="#C6C6C6";s.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,d);s.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_ITEM,rt);s.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,ut)}function w(){var n=document.createElement("ul");return _css(n,{width:o.style.width,minWidth:o.style.width,height:o.style.height,backgroundColor:f.backgroundcolor,backgroundImage:e.background?"url("+e.background.src+")":"",color:f.fontcolor,listStyle:"none",margin:0,padding:0,fontFamily:t[f.font]?t[f.font]:t._sans,fontSize:(f.fontsize?f.fontsize:11)+"px",fontStyle:f.fontstyle,fontWeight:f.fontweight,overflowY:"auto"}),n}function b(n){return function(){var r=h.getElementsByClassName("item")[n],t=f.fontcolor,i=e.item?"url("+e.item.src+")":"";n==s.jwGetPlaylistIndex()&&(f.activecolor!==""&&(t=f.activecolor),e.itemActive&&(i="url("+e.itemActive.src+")"));_css(r,{color:f.overcolor!==""?f.overcolor:t,backgroundImage:e.itemOver?"url("+e.itemOver.src+")":i})}}function a(n){return function(){var r=h.getElementsByClassName("item")[n],t=f.fontcolor,i=e.item?"url("+e.item.src+")":"";n==s.jwGetPlaylistIndex()&&(f.activecolor!==""&&(t=f.activecolor),e.itemActive&&(i="url("+e.itemActive.src+")"));_css(r,{color:t,backgroundImage:i})}}function k(t){var i=c[t],u=document.createElement("li"),d,s,l,o,p;u.className="item";_css(u,{height:f.itemheight,display:"block",cursor:"pointer",backgroundImage:e.item?"url("+e.item.src+")":"",backgroundSize:"100% "+f.itemheight+"px"});u.onmouseover=b(t);u.onmouseout=a(t);var g=document.createElement("div"),r=new Image,w=0,h=0,k=0;return it()&&(i.image||i["playlist.image"]||e.itemImage)&&(r.className="image",e.itemImage?(w=(f.itemheight-e.itemImage.height)/2,h=e.itemImage.width,k=e.itemImage.height):(h=f.itemheight*4/3,k=f.itemheight),_css(g,{height:k,width:h,float:"left",styleFloat:"left",cssFloat:"left",margin:"0 5px 0 0",background:"black",overflow:"hidden",margin:w+"px",position:"relative"}),_css(r,{position:"relative"}),g.appendChild(r),r.onload=function(){n.utils.stretch(n.utils.stretching.FILL,r,h,k,this.naturalWidth,this.naturalHeight)},i["playlist.image"]?r.src=i["playlist.image"]:i.image?r.src=i.image:e.itemImage&&(r.src=e.itemImage.src),u.appendChild(g)),d=v-h-w*2,y<f.itemheight*c.length&&(d-=15),s=document.createElement("div"),_css(s,{position:"relative",height:"100%",overflow:"hidden"}),l=document.createElement("span"),i.duration>0&&(l.className="duration",_css(l,{fontSize:(f.fontsize?f.fontsize:11)+"px",fontWeight:f.fontweight?f.fontweight:"bold",width:"40px",height:f.fontsize?f.fontsize+10:20,lineHeight:24,float:"right",styleFloat:"right",cssFloat:"right"}),l.innerHTML=_utils.timeFormat(i.duration),s.appendChild(l)),o=document.createElement("span"),o.className="title",_css(o,{padding:"5px 5px 0 "+(w?0:"5px"),height:f.fontsize?f.fontsize+10:20,lineHeight:f.fontsize?f.fontsize+10:20,overflow:"hidden",float:"left",styleFloat:"left",cssFloat:"left",width:(i.duration>0?d-50:d)-10+"px",fontSize:(f.fontsize?f.fontsize:13)+"px",fontWeight:f.fontweight?f.fontweight:"bold"}),o.innerHTML=i?i.title:"",s.appendChild(o),i.description&&(p=document.createElement("span"),p.className="description",_css(p,{display:"block",float:"left",styleFloat:"left",cssFloat:"left",margin:0,paddingLeft:o.style.paddingLeft,paddingRight:o.style.paddingRight,lineHeight:(f.fontsize?f.fontsize+4:16)+"px",overflow:"hidden",position:"relative"}),p.innerHTML=i.description,s.appendChild(p)),u.appendChild(s),u}function d(){var n,t,i;if(o.innerHTML="",c=g(),c){for(items=[],h=w(),n=0;n<c.length;n++)t=k(n),t.onclick=nt(n),h.appendChild(t),items.push(t);l=s.jwGetPlaylistIndex();a(l)();o.appendChild(h);_utils.isIOS()&&window.iScroll&&(h.style.height=f.itemheight*c.length+"px",i=new iScroll(o.id))}}function g(){for(var t=s.jwGetPlaylist(),i=[],n=0;n<t.length;n++)t[n]["ova.hidden"]||i.push(t[n]);return i}function nt(n){return function(){s.jwPlaylistItem(n);s.jwPlay(!0)}}function tt(){h.scrollTop=s.jwGetPlaylistIndex()*f.itemheight}function it(){return f.thumbs.toString().toLowerCase()=="true"}function rt(n){l>=0&&(a(l)(),l=n.index);a(n.index)();tt()}function ut(){if(f.position==n.html5.view.positions.OVER)switch(s.jwGetState()){case n.api.events.state.IDLE:_show(o);break;default:_hide(o)}}function ft(){for(var n in e)e[n]=et(n)}function et(n){return s.skin.getSkinElement("playlist",n)}var s=r,f=n.utils.extend({},i,s.skin.getComponentSettings("playlist"),u),o,v,y,c,h,l,e;if(f.position!=n.html5.view.positions.NONE&&typeof n.html5.view.positions[f.position]!="undefined")return l=-1,e={background:undefined,item:undefined,itemOver:undefined,itemImage:undefined,itemActive:undefined},this.getDisplayElement=function(){return o},this.resize=function(n,t){if(v=n,y=t,s.jwGetFullscreen())_hide(o);else{var i={display:"block",width:v,height:y};_css(o,i)}},this.show=function(){_show(o)},this.hide=function(){_hide(o)},p(),this}}(jwplayer),function(n){function t(t){var i,r,u;if(n.utils.isYouTube(t.file))return"youtube";if(i=n.utils.extension(t.file),i&&n.utils.extensionmap[i]){if(i=="m3u8")return"video";r=n.utils.extensionmap[i].html5}else t.type&&(r=t.type);if(r){if(u=r.split("/")[0],u=="audio")return"sound";if(u=="video")return u}return""}n.html5.playlistitem=function(i){var r=n.utils.extend({},{author:"",date:"",description:"",image:"",link:"",mediaid:"",tags:"",title:"",provider:"",file:"",streamer:"",duration:-1,start:0,currentLevel:-1,levels:[]},i);return r.type&&(r.provider=r.type,delete r.type),r.levels.length===0&&(r.levels[0]=new n.html5.playlistitemlevel(r)),r.provider=r.provider?r.provider.toLowerCase():t(r.levels[0]),r}}(jwplayer),function(n){n.html5.playlistitemlevel=function(t){var r={file:"",streamer:"",bitrate:0,width:0},i;for(i in r)n.utils.exists(t[i])&&(r[i]=t[i]);return r}}(jwplayer),function(n){n.html5.playlistloader=function(){function r(r){var u=[];try{u=n.utils.parsers.rssparser.parse(r.responseXML.firstChild);t.sendEvent(n.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:new n.html5.playlist({playlist:u})})}catch(f){i("Could not parse the playlist")}}function i(i){t.sendEvent(n.api.events.JWPLAYER_ERROR,{message:i?i:"Could not load playlist an unknown reason."})}var t=new n.html5.eventdispatcher;n.utils.extend(this,t);this.load=function(t){n.utils.ajax(t,r,i)}}}(jwplayer),function(n){n.html5.skin=function(){var t={},i=!1;this.load=function(r,u){new n.html5.skinloader(r,function(n){i=!0;t=n;u()},function(){new n.html5.skinloader("",function(n){i=!0;t=n;u()})})};this.getSkinElement=function(r,u){if(i)try{return t[r].elements[u]}catch(f){n.utils.log("No such skin component / element: ",[r,u])}return null};this.getComponentSettings=function(n){return i&&t&&t[n]?t[n].settings:null};this.getComponentLayout=function(n){return i?t[n].layout:null}}}(jwplayer),function(n){n.html5.skinloader=function(t,i,r){function v(){typeof f!="string"||f===""?e(n.html5.defaultSkin().xml):n.utils.ajax(n.utils.getAbsolutePath(f),function(t){try{if(n.utils.exists(t.responseXML)){e(t.responseXML);return}}catch(i){p()}e(n.html5.defaultSkin().xml)},function(){e(n.html5.defaultSkin().xml)})}function e(t){var o=t.getElementsByTagName("component"),f,i,ut,g,a,v,p,c,w,nt,b,r,k,tt,it,e,l,d,rt;if(o.length!==0)for(f=0;f<o.length;f++){for(i=o[f].getAttribute("name"),ut={settings:{},elements:{},layout:{}},u[i]=ut,g=o[f].getElementsByTagName("elements")[0].getElementsByTagName("element"),a=0;a<g.length;a++)y(g[a],i);if(v=o[f].getElementsByTagName("settings")[0],v&&v.childNodes.length>0)for(p=v.getElementsByTagName("setting"),c=0;c<p.length;c++){var ft=p[c].getAttribute("name"),et=p[c].getAttribute("value"),ot=/color$/.test(ft)?"color":null;u[i].settings[ft]=n.utils.typechecker(et,ot)}if(w=o[f].getElementsByTagName("layout")[0],w&&w.childNodes.length>0)for(nt=w.getElementsByTagName("group"),b=0;b<nt.length;b++){for(r=nt[b],u[i].layout[r.getAttribute("position")]={elements:[]},k=0;k<r.attributes.length;k++)tt=r.attributes[k],u[i].layout[r.getAttribute("position")][tt.name]=tt.value;for(it=r.getElementsByTagName("*"),e=0;e<it.length;e++){for(l=it[e],u[i].layout[r.getAttribute("position")].elements.push({type:l.tagName}),d=0;d<l.attributes.length;d++)rt=l.attributes[d],u[i].layout[r.getAttribute("position")].elements[e][rt.name]=rt.value;n.utils.exists(u[i].layout[r.getAttribute("position")].elements[e].name)||(u[i].layout[r.getAttribute("position")].elements[e].name=l.tagName)}}h=!1;s()}}function s(){clearInterval(o);c||(o=setInterval(function(){w()},100))}function y(t,i){var r=new Image,l=t.getAttribute("name"),e=t.getAttribute("src"),o,h,v;e.indexOf("data:image/png;base64,")===0?o=e:(h=n.utils.getAbsolutePath(f),v=h.substr(0,h.lastIndexOf("/")),o=[v,i,e].join("/"));u[i].elements[l]={height:0,width:0,src:"",ready:!1,image:r};r.onload=function(){b(r,l,i)};r.onerror=function(){c=!0;s();a()};r.src=o}function p(){var t,n,i,r,f;for(t in u){n=u[t];for(i in n.elements)r=n.elements[i],f=r.image,f.onload=null,f.onerror=null,delete r.image,delete n.elements[i];delete u[t]}}function w(){var n,t;for(n in u)if(n!="properties")for(t in u[n].elements)if(!u[n].elements[t].ready)return;h===!1&&(clearInterval(o),l(u))}function b(t,i,r){u[r]&&u[r].elements[i]?(u[r].elements[i].height=t.height,u[r].elements[i].width=t.width,u[r].elements[i].src=t.src,u[r].elements[i].ready=!0,s()):n.utils.log("Loaded an image for a missing element: "+r+"."+i)}var u={},l=i,a=r,h=!0,o,f=t,c=!1;v()}}(jwplayer),function(n){n.html5.api=function(t,i){function v(){u.state==n.api.events.state.PLAYING||u.state==n.api.events.state.BUFFERING?f.pause():f.play()}function o(n){return function(){return u[n]}}function c(n,t,i){return function(){var r=u.plugins.object[n];r&&r[t]&&typeof r[t]=="function"&&r[t].apply(r,i)}}function s(n){return function(){if(e&&typeof e[n]=="function")return e[n].apply(this,arguments);_utils.log("Could not call instream method - instream API not initialized")}}function y(){u.config.playlistfile?(u.addEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,l),u.loadPlaylist(u.config.playlistfile)):typeof u.config.playlist=="string"?(u.addEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,l),u.loadPlaylist(u.config.playlist)):(u.loadPlaylist(u.config),setTimeout(l,25))}function l(t){u.removeEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,l);u.setupPlugins();a.setup();var t={id:r.id,version:r.version};f.playerReady(t)}var r={},h=document.createElement("div"),e;t.parentNode.replaceChild(h,t);h.id=t.id;r.version=n.version;r.id=h.id;var u=new n.html5.model(r,h,i),a=new n.html5.view(r,h,u),f=new n.html5.controller(r,h,u,a);return r.skin=new n.html5.skin,r.jwPlay=function(n){typeof n=="undefined"?v():n.toString().toLowerCase()=="true"?f.play():f.pause()},r.jwPause=function(n){typeof n=="undefined"?v():n.toString().toLowerCase()=="true"?f.pause():f.play()},r.jwStop=f.stop,r.jwSeek=f.seek,r.jwPlaylistItem=function(n){if(e){if(e.playlistClickable())return e.jwInstreamDestroy(),f.item(n)}else return f.item(n)},r.jwPlaylistNext=f.next,r.jwPlaylistPrev=f.prev,r.jwResize=f.resize,r.jwLoad=f.load,r.jwDetachMedia=f.detachMedia,r.jwAttachMedia=f.attachMedia,r.jwGetPlaylistIndex=o("item"),r.jwGetPosition=o("position"),r.jwGetDuration=o("duration"),r.jwGetBuffer=o("buffer"),r.jwGetWidth=o("width"),r.jwGetHeight=o("height"),r.jwGetFullscreen=o("fullscreen"),r.jwSetFullscreen=f.setFullscreen,r.jwGetVolume=o("volume"),r.jwSetVolume=f.setVolume,r.jwGetMute=o("mute"),r.jwSetMute=f.setMute,r.jwGetStretching=function(){return u.stretching.toUpperCase()},r.jwGetState=o("state"),r.jwGetVersion=function(){return r.version},r.jwGetPlaylist=function(){return u.playlist},r.jwAddEventListener=f.addEventListener,r.jwRemoveEventListener=f.removeEventListener,r.jwSendEvent=f.sendEvent,r.jwDockSetButton=function(n,t,i,r){u.plugins.object.dock&&u.plugins.object.dock.setButton&&u.plugins.object.dock.setButton(n,t,i,r)},r.jwControlbarShow=c("controlbar","show"),r.jwControlbarHide=c("controlbar","hide"),r.jwDockShow=c("dock","show"),r.jwDockHide=c("dock","hide"),r.jwDisplayShow=c("display","show"),r.jwDisplayHide=c("display","hide"),r.jwLoadInstream=function(t,i){e||(e=new n.html5.instream(r,u,a,f));setTimeout(function(){e.load(t,i)},10)},r.jwInstreamDestroy=function(){e&&e.jwInstreamDestroy()},r.jwInstreamAddEventListener=s("jwInstreamAddEventListener"),r.jwInstreamRemoveEventListener=s("jwInstreamRemoveEventListener"),r.jwInstreamGetState=s("jwInstreamGetState"),r.jwInstreamGetDuration=s("jwInstreamGetDuration"),r.jwInstreamGetPosition=s("jwInstreamGetPosition"),r.jwInstreamPlay=s("jwInstreamPlay"),r.jwInstreamPause=s("jwInstreamPause"),r.jwInstreamSeek=s("jwInstreamSeek"),r.jwDestroy=function(){f.destroy()},r.jwGetLevel=function(){},r.jwGetBandwidth=function(){},r.jwGetLockState=function(){},r.jwLock=function(){},r.jwUnlock=function(){},u.config.chromeless&&!n.utils.isIOS()?y():r.skin.load(u.config.skin,y),r}}(jwplayer)),function(n){n.SliderInit=function(n){function u(n){var u=t.length-1-s(),r=i+n;r>u?r=0:r<0&&(r=t.length-1);e(r)}function s(){return Math.floor(n.width()/f)+1}function e(n){var u=t.length-1-s(),r;(n=Math.max(0,n),n=Math.min(u,n),n!=i)&&(i=n,r=n*f,o.animate({left:-r}))}var o=n.find(".sliding-panel"),t=n.find(".slider-panel:visible"),h=n,f=t.eq(0).outerWidth(!0),r=0,i;$.each(t,function(){$(this).outerHeight()>r&&(r=$(this).outerHeight())});h.css({height:r+"px"});o.css({width:f*t.length+"px",height:r+"px"});i=-1;n.find(".next-link").off("click").on("click",function(n){n.preventDefault();u(1)});n.find(".prev-link").off("click").on("click",function(n){n.preventDefault();u(-1)});e(0);$(window).resize(function(){e(i)});n.hammer({drag_lock_to_axis:!0}).on("drag",function(n){n.gesture.preventDefault()}).on("swipe",function(n){n.gesture.direction=="left"?u(1):n.gesture.direction=="right"&&u(-1)})}}(window.SMG=window.SMG||{});$("#Footer .footer-link").equalHeights();$(".footer-link-container a").equalHeights();$("#SearchForm").on("click",".btn",function(n){n.preventDefault();var t=location.protocol+"//"+location.host+location.pathname;window.location=t+"?q="+$("#SearchTerm").val()});$(".page-content").on("click",".show-more",function(n){n.preventDefault();var t=$(this);t.parent().toggleClass("on");t.toggleClass("on");$(this).hasClass("on")?t.html("Hide Content<span><\/span>"):(t.html("Show More Info<span><\/span>"),goToByScroll("PageTopNavigation"))});$(".filter-container").on("click",".btn-done",function(){$(this).closest(".filter-item").addClass("hide");$(".event-filter-group a").removeClass("active")});$(".grid-filter").on("click","a",function(n){n.preventDefault();var t=$(".grid-filter-container");t.hasClass("hide")?(t.removeClass("hide"),$(".grid-filter-container .filter").equalHeights()):t.addClass("hide")});$(".eventdetailspage").on("mouseenter",".transparent",function(){var n=$(this).closest(".event-panel");n.addClass("on")});$(".eventdetailspage").on("mouseleave",".transparent",function(){var n=$(this).closest(".event-panel");n.hasClass("on")&&n.removeClass("on")});$(".widget-seating").on("click","img",function(){var e=viewport().width,t=$(this),i=$("#EventDetails"),o=$("#RightColumn"),s=$("#LeftColumn"),r="right",u=i.outerWidth()+o.outerWidth()-18,f,n;e<1024&&(u=i.outerWidth()+s.outerWidth()-18,r="left");f=t.closest(".widget-seating");n=$('<div class="enlarge '+r+'"/>');n.css({width:u+"px"});n.append('<div><a href="#" class="glyphicon glyphicon-remove close-box pull-right"><\/a><div class="clearfix"><\/div><\/div>');n.append('<img src="'+t.attr("src")+'" class="img-responsive"/>');f.append(n);$(".enlarge .close-box").click(function(n){n.preventDefault();$(this).closest(".enlarge").remove()})});$(".standard").on("click",".drop-arrow",function(n){n.preventDefault();$("#PageSubNavigation").collapse("toggle")});$("#mobile-search-btn").click(function(){window.location.href=$("#SearchPage_Url").val()+"?q="+$("#searchtext").val()});$(".search-btn-expand").click(function(){var n=$(this),t=n.prev(),i=$("input",t).val();n.hasClass("on")?i!=""?window.location.href=$("#SearchPage_Url").val()+"?q="+i:t.animate({width:"0px"},1e3,function(){n.removeClass("on")}):t.animate({width:"130px"},1e3,function(){n.addClass("on")})});$("#header-search").bind("keypress",function(n){n.keyCode==13&&$(this).val()!=""&&(window.location.href=$("#SearchPage_Url").val()+"?q="+$(this).val())});$("#mini-filter").on("click","a",function(){var n=$(this).closest("ul");$("a",n).removeClass("active");$(this).addClass("active");$(".filter-grouping .btn-group ."+n.attr("class")).text($(this).text())});$(window).load(function(){$(".flexnav").flexNav({animationSpeed:"fast",hoverIntent:!0});$(".flexslider").length>0&&$(".flexslider").flexslider({animation:"fade",pauseOnHover:!0,directionNav:!1});$(".banner-rotator").length>0&&$(".banner-rotator").flexslider({animation:"slide",pauseOnHover:!0,directionNav:!1,animationLoop:!1,namespace:"smg-",controlsContainer:$(".rotator-caption"),slideshowSpeed:4e3,before:function(n){var i=$(n.slides[n.animatingTo]),t=$(".rotator-caption"),r;t.find("h2").text(i.data("h2"));t.find("h3").text(i.data("h3"));i.data("cd")?(t.find("#countdown").removeClass("hide"),t.addClass("has-countdown")):(t.find("#countdown").addClass("hide"),t.removeClass("has-countdown"));r=$(".hide a",i).clone();$(".links",t).empty().append(r)}});$(".alert-dismissible .close-icon").on("click",function(){$("body").removeClass("hasAlert");$("div.main-top-nav[data-spy='affix']").removeData("bs.affix").removeClass("affix affix-top affix-bottom");$("div.main-top-nav").affix({offset:65});$(window).scroll("refresh")});$(".eventdetailspage .content-inner").height()<=300&&$(".eventdetailspage .show-more").hide();$("#FooterMenu .footer-link-container li").hover(function(){var n=$("#FooterMenu .footer-link-container li:not(:hover)");n.addClass("off-hover");$(this).addClass("hover")},function(){var n=$("#FooterMenu .footer-link-container li").removeClass("off-hover");$(this).removeClass("hover")});$("#video1").length>0&&jwplayer("video1").setup({height:325,width:"100%",file:"sfec.stream",controlbar:"none",controls:!1,icons:!0,stretching:"fill",provider:"rtmp",streamer:"rtmp://24.220.193.174:1935/sfec",autostart:!0,modes:[{type:"html5",config:"http://24.220.193.174:1935/sfec/sfec.stream/playlist.m3u8",provider:"video"},{type:"flash",src:"/Scripts/player.swf"}],events:{onPause:function(){this.play(!0)}}});$("#video2").length>0&&jwplayer("video2").setup({height:325,width:"100%",file:"sfec.stream",controlbar:"none",controls:!1,icons:!1,stretching:"fill",provider:"rtmp",streamer:"rtmp://24.220.210.14:1935/sfec",autostart:!0,modes:[{type:"html5",config:"http://24.220.210.14:1935/sfec/sfec.stream/playlist.m3u8",provider:"video"},{type:"flash",src:"/Scripts/player.swf"}],events:{onPause:function(){this.play(!0)}}});setTimeout(function(){viewport().width>1200&&$(".sponsors .section").equalHeights();viewport().width>767&&initSlideCaption()},500)});$(window).bind("debouncedresize",function(){var n=viewport().width;n>1200?$(".sponsors .section").equalHeights():$(".sponsors .section").removeAttr("style");n<768?$("#LeftColumn .sm-match").removeAttr("style").equalHeights():$("#LeftColumn .sm-match").removeAttr("style");n<996?$("#RightColumn .md-match").removeAttr("style").equalHeights():$("#RightColumn .md-match").removeAttr("style");$(".sitepage").length>0&&(n>=768&&n<=1610?initRotatorSlide():($(".r-slide img").removeAttr("style"),$(".rotator-caption").removeAttr("style")),n>=768?initSlideCaption():$(".rotator-caption").removeAttr("style"))});$(".dropper").click(function(){var t=viewport().width,n=$(".main-top-nav");t>767&&t<1199&&(n.hasClass("hide")?n.removeClass("hide"):n.addClass("hide"))})