/*! jQuery UI - v1.11.4 - 2015-08-31
* http://jqueryui.com
* Includes: core.js, widget.js, mouse.js, position.js, draggable.js, resizable.js, button.js, datepicker.js, dialog.js, slider.js, tooltip.js
* Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */
(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{a(jQuery)}}(function(h){
/*!
 * jQuery UI Core 1.11.4
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/category/ui-core/
 */
h.ui=h.ui||{};h.extend(h.ui,{version:"1.11.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});h.fn.extend({scrollParent:function(E){var D=this.css("position"),C=D==="absolute",F=E?/(auto|scroll|hidden)/:/(auto|scroll)/,G=this.parents().filter(function(){var H=h(this);if(C&&H.css("position")==="static"){return false}return F.test(H.css("overflow")+H.css("overflow-y")+H.css("overflow-x"))}).eq(0);return D==="fixed"||!G.length?h(this[0].ownerDocument||document):G},uniqueId:(function(){var C=0;return function(){return this.each(function(){if(!this.id){this.id="ui-id-"+(++C)}})}})(),removeUniqueId:function(){return this.each(function(){if(/^ui-id-\d+$/.test(this.id)){h(this).removeAttr("id")}})}});function r(E,C){var G,F,D,H=E.nodeName.toLowerCase();if("area"===H){G=E.parentNode;F=G.name;if(!E.href||!F||G.nodeName.toLowerCase()!=="map"){return false}D=h("img[usemap='#"+F+"']")[0];return !!D&&d(D)}return(/^(input|select|textarea|button|object)$/.test(H)?!E.disabled:"a"===H?E.href||C:C)&&d(E)}function d(C){return h.expr.filters.visible(C)&&!h(C).parents().addBack().filter(function(){return h.css(this,"visibility")==="hidden"}).length}h.extend(h.expr[":"],{data:h.expr.createPseudo?h.expr.createPseudo(function(C){return function(D){return !!h.data(D,C)}}):function(E,D,C){return !!h.data(E,C[3])},focusable:function(C){return r(C,!isNaN(h.attr(C,"tabindex")))},tabbable:function(E){var C=h.attr(E,"tabindex"),D=isNaN(C);return(D||C>=0)&&r(E,!D)}});if(!h("<a>").outerWidth(1).jquery){h.each(["Width","Height"],function(E,C){var D=C==="Width"?["Left","Right"]:["Top","Bottom"],F=C.toLowerCase(),H={innerWidth:h.fn.innerWidth,innerHeight:h.fn.innerHeight,outerWidth:h.fn.outerWidth,outerHeight:h.fn.outerHeight};function G(K,J,I,L){h.each(D,function(){J-=parseFloat(h.css(K,"padding"+this))||0;if(I){J-=parseFloat(h.css(K,"border"+this+"Width"))||0}if(L){J-=parseFloat(h.css(K,"margin"+this))||0}});return J}h.fn["inner"+C]=function(I){if(I===undefined){return H["inner"+C].call(this)}return this.each(function(){h(this).css(F,G(this,I)+"px")})};h.fn["outer"+C]=function(I,J){if(typeof I!=="number"){return H["outer"+C].call(this,I)}return this.each(function(){h(this).css(F,G(this,I,true,J)+"px")})}})}if(!h.fn.addBack){h.fn.addBack=function(C){return this.add(C==null?this.prevObject:this.prevObject.filter(C))}}if(h("<a>").data("a-b","a").removeData("a-b").data("a-b")){h.fn.removeData=(function(C){return function(D){if(arguments.length){return C.call(this,h.camelCase(D))}else{return C.call(this)}}})(h.fn.removeData)}h.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());h.fn.extend({focus:(function(C){return function(D,E){return typeof D==="number"?this.each(function(){var F=this;setTimeout(function(){h(F).focus();if(E){E.call(F)}},D)}):C.apply(this,arguments)}})(h.fn.focus),disableSelection:(function(){var C="onselectstart" in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(C+".ui-disableSelection",function(D){D.preventDefault()})}})(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(F){if(F!==undefined){return this.css("zIndex",F)}if(this.length){var D=h(this[0]),C,E;while(D.length&&D[0]!==document){C=D.css("position");if(C==="absolute"||C==="relative"||C==="fixed"){E=parseInt(D.css("zIndex"),10);if(!isNaN(E)&&E!==0){return E}}D=D.parent()}}return 0}});h.ui.plugin={add:function(D,E,G){var C,F=h.ui[D].prototype;for(C in G){F.plugins[C]=F.plugins[C]||[];F.plugins[C].push([E,G[C]])}},call:function(C,F,E,D){var G,H=C.plugins[F];if(!H){return}if(!D&&(!C.element[0].parentNode||C.element[0].parentNode.nodeType===11)){return}for(G=0;G<H.length;G++){if(C.options[H[G][0]]){H[G][1].apply(C.element,E)}}}};
/*!
 * jQuery UI Widget 1.11.4
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/jQuery.widget/
 */
var k=0,t=Array.prototype.slice;h.cleanData=(function(C){return function(D){var F,G,E;for(E=0;(G=D[E])!=null;E++){try{F=h._data(G,"events");if(F&&F.remove){h(G).triggerHandler("remove")}}catch(H){}}C(D)}})(h.cleanData);h.widget=function(C,D,K){var H,I,F,J,E={},G=C.split(".")[0];C=C.split(".")[1];H=G+"-"+C;if(!K){K=D;D=h.Widget}h.expr[":"][H.toLowerCase()]=function(L){return !!h.data(L,H)};h[G]=h[G]||{};I=h[G][C];F=h[G][C]=function(L,M){if(!this._createWidget){return new F(L,M)}if(arguments.length){this._createWidget(L,M)}};h.extend(F,I,{version:K.version,_proto:h.extend({},K),_childConstructors:[]});J=new D();J.options=h.widget.extend({},J.options);h.each(K,function(M,L){if(!h.isFunction(L)){E[M]=L;return}E[M]=(function(){var N=function(){return D.prototype[M].apply(this,arguments)},O=function(P){return D.prototype[M].apply(this,P)};return function(){var R=this._super,P=this._superApply,Q;this._super=N;this._superApply=O;Q=L.apply(this,arguments);this._super=R;this._superApply=P;return Q}})()});F.prototype=h.widget.extend(J,{widgetEventPrefix:I?(J.widgetEventPrefix||C):C},E,{constructor:F,namespace:G,widgetName:C,widgetFullName:H});if(I){h.each(I._childConstructors,function(M,N){var L=N.prototype;h.widget(L.namespace+"."+L.widgetName,F,N._proto)});delete I._childConstructors}else{D._childConstructors.push(F)}h.widget.bridge(C,F);return F};h.widget.extend=function(H){var D=t.call(arguments,1),G=0,C=D.length,E,F;for(;G<C;G++){for(E in D[G]){F=D[G][E];if(D[G].hasOwnProperty(E)&&F!==undefined){if(h.isPlainObject(F)){H[E]=h.isPlainObject(H[E])?h.widget.extend({},H[E],F):h.widget.extend({},F)}else{H[E]=F}}}}return H};h.widget.bridge=function(D,C){var E=C.prototype.widgetFullName||D;h.fn[D]=function(H){var F=typeof H==="string",G=t.call(arguments,1),I=this;if(F){this.each(function(){var K,J=h.data(this,E);if(H==="instance"){I=J;return false}if(!J){return h.error("cannot call methods on "+D+" prior to initialization; attempted to call method '"+H+"'")}if(!h.isFunction(J[H])||H.charAt(0)==="_"){return h.error("no such method '"+H+"' for "+D+" widget instance")}K=J[H].apply(J,G);if(K!==J&&K!==undefined){I=K&&K.jquery?I.pushStack(K.get()):K;return false}})}else{if(G.length){H=h.widget.extend.apply(null,[H].concat(G))}this.each(function(){var J=h.data(this,E);if(J){J.option(H||{});if(J._init){J._init()}}else{h.data(this,E,new C(H,this))}})}return I}};h.Widget=function(){};h.Widget._childConstructors=[];h.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:false,create:null},_createWidget:function(C,D){D=h(D||this.defaultElement||this)[0];this.element=h(D);this.uuid=k++;this.eventNamespace="."+this.widgetName+this.uuid;this.bindings=h();this.hoverable=h();this.focusable=h();if(D!==this){h.data(D,this.widgetFullName,this);this._on(true,this.element,{remove:function(E){if(E.target===D){this.destroy()}}});this.document=h(D.style?D.ownerDocument:D.document||D);this.window=h(this.document[0].defaultView||this.document[0].parentWindow)}this.options=h.widget.extend({},this.options,this._getCreateOptions(),C);this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:h.noop,_getCreateEventData:h.noop,_create:h.noop,_init:h.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(h.camelCase(this.widgetFullName));this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")},_destroy:h.noop,widget:function(){return this.element},option:function(F,G){var C=F,H,E,D;if(arguments.length===0){return h.widget.extend({},this.options)}if(typeof F==="string"){C={};H=F.split(".");F=H.shift();if(H.length){E=C[F]=h.widget.extend({},this.options[F]);for(D=0;D<H.length-1;D++){E[H[D]]=E[H[D]]||{};E=E[H[D]]}F=H.pop();if(arguments.length===1){return E[F]===undefined?null:E[F]}E[F]=G}else{if(arguments.length===1){return this.options[F]===undefined?null:this.options[F]}C[F]=G}}this._setOptions(C);return this},_setOptions:function(C){var D;for(D in C){this._setOption(D,C[D])}return this},_setOption:function(C,D){this.options[C]=D;if(C==="disabled"){this.widget().toggleClass(this.widgetFullName+"-disabled",!!D);if(D){this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")}}return this},enable:function(){return this._setOptions({disabled:false})},disable:function(){return this._setOptions({disabled:true})},_on:function(F,E,D){var G,C=this;if(typeof F!=="boolean"){D=E;E=F;F=false}if(!D){D=E;E=this.element;G=this.widget()}else{E=G=h(E);this.bindings=this.bindings.add(E)}h.each(D,function(M,L){function J(){if(!F&&(C.options.disabled===true||h(this).hasClass("ui-state-disabled"))){return}return(typeof L==="string"?C[L]:L).apply(C,arguments)}if(typeof L!=="string"){J.guid=L.guid=L.guid||J.guid||h.guid++}var K=M.match(/^([\w:-]*)\s*(.*)$/),I=K[1]+C.eventNamespace,H=K[2];if(H){G.delegate(H,I,J)}else{E.bind(I,J)}})},_off:function(D,C){C=(C||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;D.unbind(C).undelegate(C);this.bindings=h(this.bindings.not(D).get());this.focusable=h(this.focusable.not(D).get());this.hoverable=h(this.hoverable.not(D).get())},_delay:function(F,E){function D(){return(typeof F==="string"?C[F]:F).apply(C,arguments)}var C=this;return setTimeout(D,E||0)},_hoverable:function(C){this.hoverable=this.hoverable.add(C);this._on(C,{mouseenter:function(D){h(D.currentTarget).addClass("ui-state-hover")},mouseleave:function(D){h(D.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(C){this.focusable=this.focusable.add(C);this._on(C,{focusin:function(D){h(D.currentTarget).addClass("ui-state-focus")},focusout:function(D){h(D.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(C,D,E){var H,G,F=this.options[C];E=E||{};D=h.Event(D);D.type=(C===this.widgetEventPrefix?C:this.widgetEventPrefix+C).toLowerCase();D.target=this.element[0];G=D.originalEvent;if(G){for(H in G){if(!(H in D)){D[H]=G[H]}}}this.element.trigger(D,E);return !(h.isFunction(F)&&F.apply(this.element[0],[D].concat(E))===false||D.isDefaultPrevented())}};h.each({show:"fadeIn",hide:"fadeOut"},function(D,C){h.Widget.prototype["_"+D]=function(G,F,I){if(typeof F==="string"){F={effect:F}}var H,E=!F?D:F===true||typeof F==="number"?C:F.effect||C;F=F||{};if(typeof F==="number"){F={duration:F}}H=!h.isEmptyObject(F);F.complete=I;if(F.delay){G.delay(F.delay)}if(H&&h.effects&&h.effects.effect[E]){G[D](F)}else{if(E!==D&&G[E]){G[E](F.duration,F.easing,I)}else{G.queue(function(J){h(this)[D]();if(I){I.call(G[0])}J()})}}}});var f=h.widget;
/*!
 * jQuery UI Mouse 1.11.4
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/mouse/
 */
var p=false;h(document).mouseup(function(){p=false});var n=h.widget("ui.mouse",{version:"1.11.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var C=this;this.element.bind("mousedown."+this.widgetName,function(D){return C._mouseDown(D)}).bind("click."+this.widgetName,function(D){if(true===h.data(D.target,C.widgetName+".preventClickEvent")){h.removeData(D.target,C.widgetName+".preventClickEvent");D.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);if(this._mouseMoveDelegate){this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)}},_mouseDown:function(E){if(p){return}this._mouseMoved=false;(this._mouseStarted&&this._mouseUp(E));this._mouseDownEvent=E;var D=this,F=(E.which===1),C=(typeof this.options.cancel==="string"&&E.target.nodeName?h(E.target).closest(this.options.cancel).length:false);if(!F||C||!this._mouseCapture(E)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){D.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(E)&&this._mouseDelayMet(E)){this._mouseStarted=(this._mouseStart(E)!==false);if(!this._mouseStarted){E.preventDefault();return true}}if(true===h.data(E.target,this.widgetName+".preventClickEvent")){h.removeData(E.target,this.widgetName+".preventClickEvent")}this._mouseMoveDelegate=function(G){return D._mouseMove(G)};this._mouseUpDelegate=function(G){return D._mouseUp(G)};this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);E.preventDefault();p=true;return true},_mouseMove:function(C){if(this._mouseMoved){if(h.ui.ie&&(!document.documentMode||document.documentMode<9)&&!C.button){return this._mouseUp(C)}else{if(!C.which){return this._mouseUp(C)}}}if(C.which||C.button){this._mouseMoved=true}if(this._mouseStarted){this._mouseDrag(C);return C.preventDefault()}if(this._mouseDistanceMet(C)&&this._mouseDelayMet(C)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,C)!==false);(this._mouseStarted?this._mouseDrag(C):this._mouseUp(C))}return !this._mouseStarted},_mouseUp:function(C){this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;if(C.target===this._mouseDownEvent.target){h.data(C.target,this.widgetName+".preventClickEvent",true)}this._mouseStop(C)}p=false;return false},_mouseDistanceMet:function(C){return(Math.max(Math.abs(this._mouseDownEvent.pageX-C.pageX),Math.abs(this._mouseDownEvent.pageY-C.pageY))>=this.options.distance)},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}});
/*!
 * jQuery UI Position 1.11.4
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/position/
 */
(function(){h.ui=h.ui||{};var J,M,K=Math.max,P=Math.abs,N=Math.round,E=/left|center|right/,H=/top|center|bottom/,C=/[\+\-]\d+(\.[\d]+)?%?/,L=/^\w+/,D=/%$/,G=h.fn.position;function O(S,R,Q){return[parseFloat(S[0])*(D.test(S[0])?R/100:1),parseFloat(S[1])*(D.test(S[1])?Q/100:1)]}function I(Q,R){return parseInt(h.css(Q,R),10)||0}function F(R){var Q=R[0];if(Q.nodeType===9){return{width:R.width(),height:R.height(),offset:{top:0,left:0}}}if(h.isWindow(Q)){return{width:R.width(),height:R.height(),offset:{top:R.scrollTop(),left:R.scrollLeft()}}}if(Q.preventDefault){return{width:0,height:0,offset:{top:Q.pageY,left:Q.pageX}}}return{width:R.outerWidth(),height:R.outerHeight(),offset:R.offset()}}h.position={scrollbarWidth:function(){if(J!==undefined){return J}var R,Q,T=h("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),S=T.children()[0];h("body").append(T);R=S.offsetWidth;T.css("overflow","scroll");Q=S.offsetWidth;if(R===Q){Q=T[0].clientWidth}T.remove();return(J=R-Q)},getScrollInfo:function(U){var T=U.isWindow||U.isDocument?"":U.element.css("overflow-x"),S=U.isWindow||U.isDocument?"":U.element.css("overflow-y"),R=T==="scroll"||(T==="auto"&&U.width<U.element[0].scrollWidth),Q=S==="scroll"||(S==="auto"&&U.height<U.element[0].scrollHeight);return{width:Q?h.position.scrollbarWidth():0,height:R?h.position.scrollbarWidth():0}},getWithinInfo:function(R){var S=h(R||window),Q=h.isWindow(S[0]),T=!!S[0]&&S[0].nodeType===9;return{element:S,isWindow:Q,isDocument:T,offset:S.offset()||{left:0,top:0},scrollLeft:S.scrollLeft(),scrollTop:S.scrollTop(),width:Q||T?S.width():S.outerWidth(),height:Q||T?S.height():S.outerHeight()}}};h.fn.position=function(aa){if(!aa||!aa.of){return G.apply(this,arguments)}aa=h.extend({},aa);var ab,X,V,Z,U,Q,W=h(aa.of),T=h.position.getWithinInfo(aa.within),R=h.position.getScrollInfo(T),Y=(aa.collision||"flip").split(" "),S={};Q=F(W);if(W[0].preventDefault){aa.at="left top"}X=Q.width;V=Q.height;Z=Q.offset;U=h.extend({},Z);h.each(["my","at"],function(){var ae=(aa[this]||"").split(" "),ad,ac;if(ae.length===1){ae=E.test(ae[0])?ae.concat(["center"]):H.test(ae[0])?["center"].concat(ae):["center","center"]}ae[0]=E.test(ae[0])?ae[0]:"center";ae[1]=H.test(ae[1])?ae[1]:"center";ad=C.exec(ae[0]);ac=C.exec(ae[1]);S[this]=[ad?ad[0]:0,ac?ac[0]:0];aa[this]=[L.exec(ae[0])[0],L.exec(ae[1])[0]]});if(Y.length===1){Y[1]=Y[0]}if(aa.at[0]==="right"){U.left+=X}else{if(aa.at[0]==="center"){U.left+=X/2}}if(aa.at[1]==="bottom"){U.top+=V}else{if(aa.at[1]==="center"){U.top+=V/2}}ab=O(S.at,X,V);U.left+=ab[0];U.top+=ab[1];return this.each(function(){var ad,am,af=h(this),ah=af.outerWidth(),ae=af.outerHeight(),ag=I(this,"marginLeft"),ac=I(this,"marginTop"),al=ah+ag+I(this,"marginRight")+R.width,ak=ae+ac+I(this,"marginBottom")+R.height,ai=h.extend({},U),aj=O(S.my,af.outerWidth(),af.outerHeight());if(aa.my[0]==="right"){ai.left-=ah}else{if(aa.my[0]==="center"){ai.left-=ah/2}}if(aa.my[1]==="bottom"){ai.top-=ae}else{if(aa.my[1]==="center"){ai.top-=ae/2}}ai.left+=aj[0];ai.top+=aj[1];if(!M){ai.left=N(ai.left);ai.top=N(ai.top)}ad={marginLeft:ag,marginTop:ac};h.each(["left","top"],function(ao,an){if(h.ui.position[Y[ao]]){h.ui.position[Y[ao]][an](ai,{targetWidth:X,targetHeight:V,elemWidth:ah,elemHeight:ae,collisionPosition:ad,collisionWidth:al,collisionHeight:ak,offset:[ab[0]+aj[0],ab[1]+aj[1]],my:aa.my,at:aa.at,within:T,elem:af})}});if(aa.using){am=function(aq){var at=Z.left-ai.left,ap=at+X-ah,ar=Z.top-ai.top,ao=ar+V-ae,an={target:{element:W,left:Z.left,top:Z.top,width:X,height:V},element:{element:af,left:ai.left,top:ai.top,width:ah,height:ae},horizontal:ap<0?"left":at>0?"right":"center",vertical:ao<0?"top":ar>0?"bottom":"middle"};if(X<ah&&P(at+ap)<X){an.horizontal="center"}if(V<ae&&P(ar+ao)<V){an.vertical="middle"}if(K(P(at),P(ap))>K(P(ar),P(ao))){an.important="horizontal"}else{an.important="vertical"}aa.using.call(this,aq,an)}}af.offset(h.extend(ai,{using:am}))})};h.ui.position={fit:{left:function(U,T){var S=T.within,W=S.isWindow?S.scrollLeft:S.offset.left,Y=S.width,V=U.left-T.collisionPosition.marginLeft,X=W-V,R=V+T.collisionWidth-Y-W,Q;if(T.collisionWidth>Y){if(X>0&&R<=0){Q=U.left+X+T.collisionWidth-Y-W;U.left+=X-Q}else{if(R>0&&X<=0){U.left=W}else{if(X>R){U.left=W+Y-T.collisionWidth}else{U.left=W}}}}else{if(X>0){U.left+=X}else{if(R>0){U.left-=R}else{U.left=K(U.left-V,U.left)}}}},top:function(T,S){var R=S.within,X=R.isWindow?R.scrollTop:R.offset.top,Y=S.within.height,V=T.top-S.collisionPosition.marginTop,W=X-V,U=V+S.collisionHeight-Y-X,Q;if(S.collisionHeight>Y){if(W>0&&U<=0){Q=T.top+W+S.collisionHeight-Y-X;T.top+=W-Q}else{if(U>0&&W<=0){T.top=X}else{if(W>U){T.top=X+Y-S.collisionHeight}else{T.top=X}}}}else{if(W>0){T.top+=W}else{if(U>0){T.top-=U}else{T.top=K(T.top-V,T.top)}}}}},flip:{left:function(W,V){var U=V.within,aa=U.offset.left+U.scrollLeft,ad=U.width,S=U.isWindow?U.scrollLeft:U.offset.left,X=W.left-V.collisionPosition.marginLeft,ab=X-S,R=X+V.collisionWidth-ad-S,Z=V.my[0]==="left"?-V.elemWidth:V.my[0]==="right"?V.elemWidth:0,ac=V.at[0]==="left"?V.targetWidth:V.at[0]==="right"?-V.targetWidth:0,T=-2*V.offset[0],Q,Y;if(ab<0){Q=W.left+Z+ac+T+V.collisionWidth-ad-aa;if(Q<0||Q<P(ab)){W.left+=Z+ac+T}}else{if(R>0){Y=W.left-V.collisionPosition.marginLeft+Z+ac+T-S;if(Y>0||P(Y)<R){W.left+=Z+ac+T}}}},top:function(V,U){var T=U.within,ac=T.offset.top+T.scrollTop,ad=T.height,Q=T.isWindow?T.scrollTop:T.offset.top,X=V.top-U.collisionPosition.marginTop,Z=X-Q,W=X+U.collisionHeight-ad-Q,aa=U.my[1]==="top",Y=aa?-U.elemHeight:U.my[1]==="bottom"?U.elemHeight:0,ae=U.at[1]==="top"?U.targetHeight:U.at[1]==="bottom"?-U.targetHeight:0,S=-2*U.offset[1],ab,R;if(Z<0){R=V.top+Y+ae+S+U.collisionHeight-ad-ac;if(R<0||R<P(Z)){V.top+=Y+ae+S}}else{if(W>0){ab=V.top-U.collisionPosition.marginTop+Y+ae+S-Q;if(ab>0||P(ab)<W){V.top+=Y+ae+S}}}}},flipfit:{left:function(){h.ui.position.flip.left.apply(this,arguments);h.ui.position.fit.left.apply(this,arguments)},top:function(){h.ui.position.flip.top.apply(this,arguments);h.ui.position.fit.top.apply(this,arguments)}}};(function(){var U,W,R,T,S,Q=document.getElementsByTagName("body")[0],V=document.createElement("div");U=document.createElement(Q?"div":"body");R={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};if(Q){h.extend(R,{position:"absolute",left:"-1000px",top:"-1000px"})}for(S in R){U.style[S]=R[S]}U.appendChild(V);W=Q||document.documentElement;W.insertBefore(U,W.firstChild);V.style.cssText="position: absolute; left: 10.7432222px;";T=h(V).offset().left;M=T>10&&T<11;U.innerHTML="";W.removeChild(U)})()})();var B=h.ui.position;
/*!
 * jQuery UI Draggable 1.11.4
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/draggable/
 */
h.widget("ui.draggable",h.ui.mouse,{version:"1.11.4",widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false,drag:null,start:null,stop:null},_create:function(){if(this.options.helper==="original"){this._setPositionRelative()}if(this.options.addClasses){this.element.addClass("ui-draggable")}if(this.options.disabled){this.element.addClass("ui-draggable-disabled")}this._setHandleClassName();this._mouseInit()},_setOption:function(C,D){this._super(C,D);if(C==="handle"){this._removeHandleClassName();this._setHandleClassName()}},_destroy:function(){if((this.helper||this.element).is(".ui-draggable-dragging")){this.destroyOnClear=true;return}this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._removeHandleClassName();this._mouseDestroy()},_mouseCapture:function(C){var D=this.options;this._blurActiveElement(C);if(this.helper||D.disabled||h(C.target).closest(".ui-resizable-handle").length>0){return false}this.handle=this._getHandle(C);if(!this.handle){return false}this._blockFrames(D.iframeFix===true?"iframe":D.iframeFix);return true},_blockFrames:function(C){this.iframeBlocks=this.document.find(C).map(function(){var D=h(this);return h("<div>").css("position","absolute").appendTo(D.parent()).outerWidth(D.outerWidth()).outerHeight(D.outerHeight()).offset(D.offset())[0]})},_unblockFrames:function(){if(this.iframeBlocks){this.iframeBlocks.remove();delete this.iframeBlocks}},_blurActiveElement:function(E){var C=this.document[0];if(!this.handleElement.is(E.target)){return}try{if(C.activeElement&&C.activeElement.nodeName.toLowerCase()!=="body"){h(C.activeElement).blur()}}catch(D){}},_mouseStart:function(C){var D=this.options;this.helper=this._createHelper(C);this.helper.addClass("ui-draggable-dragging");this._cacheHelperProportions();if(h.ui.ddmanager){h.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent(true);this.offsetParent=this.helper.offsetParent();this.hasFixedAncestor=this.helper.parents().filter(function(){return h(this).css("position")==="fixed"}).length>0;this.positionAbs=this.element.offset();this._refreshOffsets(C);this.originalPosition=this.position=this._generatePosition(C,false);this.originalPageX=C.pageX;this.originalPageY=C.pageY;(D.cursorAt&&this._adjustOffsetFromHelper(D.cursorAt));this._setContainment();if(this._trigger("start",C)===false){this._clear();return false}this._cacheHelperProportions();if(h.ui.ddmanager&&!D.dropBehaviour){h.ui.ddmanager.prepareOffsets(this,C)}this._normalizeRightBottom();this._mouseDrag(C,true);if(h.ui.ddmanager){h.ui.ddmanager.dragStart(this,C)}return true},_refreshOffsets:function(C){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:false,parent:this._getParentOffset(),relative:this._getRelativeOffset()};this.offset.click={left:C.pageX-this.offset.left,top:C.pageY-this.offset.top}},_mouseDrag:function(C,E){if(this.hasFixedAncestor){this.offset.parent=this._getParentOffset()}this.position=this._generatePosition(C,true);this.positionAbs=this._convertPositionTo("absolute");if(!E){var D=this._uiHash();if(this._trigger("drag",C,D)===false){this._mouseUp({});return false}this.position=D.position}this.helper[0].style.left=this.position.left+"px";this.helper[0].style.top=this.position.top+"px";if(h.ui.ddmanager){h.ui.ddmanager.drag(this,C)}return false},_mouseStop:function(D){var C=this,E=false;if(h.ui.ddmanager&&!this.options.dropBehaviour){E=h.ui.ddmanager.drop(this,D)}if(this.dropped){E=this.dropped;this.dropped=false}if((this.options.revert==="invalid"&&!E)||(this.options.revert==="valid"&&E)||this.options.revert===true||(h.isFunction(this.options.revert)&&this.options.revert.call(this.element,E))){h(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){if(C._trigger("stop",D)!==false){C._clear()}})}else{if(this._trigger("stop",D)!==false){this._clear()}}return false},_mouseUp:function(C){this._unblockFrames();if(h.ui.ddmanager){h.ui.ddmanager.dragStop(this,C)}if(this.handleElement.is(C.target)){this.element.focus()}return h.ui.mouse.prototype._mouseUp.call(this,C)},cancel:function(){if(this.helper.is(".ui-draggable-dragging")){this._mouseUp({})}else{this._clear()}return this},_getHandle:function(C){return this.options.handle?!!h(C.target).closest(this.element.find(this.options.handle)).length:true},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element;this.handleElement.addClass("ui-draggable-handle")},_removeHandleClassName:function(){this.handleElement.removeClass("ui-draggable-handle")},_createHelper:function(D){var F=this.options,E=h.isFunction(F.helper),C=E?h(F.helper.apply(this.element[0],[D])):(F.helper==="clone"?this.element.clone().removeAttr("id"):this.element);if(!C.parents("body").length){C.appendTo((F.appendTo==="parent"?this.element[0].parentNode:F.appendTo))}if(E&&C[0]===this.element[0]){this._setPositionRelative()}if(C[0]!==this.element[0]&&!(/(fixed|absolute)/).test(C.css("position"))){C.css("position","absolute")}return C},_setPositionRelative:function(){if(!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative"}},_adjustOffsetFromHelper:function(C){if(typeof C==="string"){C=C.split(" ")}if(h.isArray(C)){C={left:+C[0],top:+C[1]||0}}if("left" in C){this.offset.click.left=C.left+this.margins.left}if("right" in C){this.offset.click.left=this.helperProportions.width-C.right+this.margins.left}if("top" in C){this.offset.click.top=C.top+this.margins.top}if("bottom" in C){this.offset.click.top=this.helperProportions.height-C.bottom+this.margins.top}},_isRootNode:function(C){return(/(html|body)/i).test(C.tagName)||C===this.document[0]},_getParentOffset:function(){var D=this.offsetParent.offset(),C=this.document[0];if(this.cssPosition==="absolute"&&this.scrollParent[0]!==C&&h.contains(this.scrollParent[0],this.offsetParent[0])){D.left+=this.scrollParent.scrollLeft();D.top+=this.scrollParent.scrollTop()}if(this._isRootNode(this.offsetParent[0])){D={top:0,left:0}}return{top:D.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:D.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition!=="relative"){return{top:0,left:0}}var C=this.element.position(),D=this._isRootNode(this.scrollParent[0]);return{top:C.top-(parseInt(this.helper.css("top"),10)||0)+(!D?this.scrollParent.scrollTop():0),left:C.left-(parseInt(this.helper.css("left"),10)||0)+(!D?this.scrollParent.scrollLeft():0)}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0),right:(parseInt(this.element.css("marginRight"),10)||0),bottom:(parseInt(this.element.css("marginBottom"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var D,G,E,F=this.options,C=this.document[0];this.relativeContainer=null;if(!F.containment){this.containment=null;return}if(F.containment==="window"){this.containment=[h(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,h(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,h(window).scrollLeft()+h(window).width()-this.helperProportions.width-this.margins.left,h(window).scrollTop()+(h(window).height()||C.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(F.containment==="document"){this.containment=[0,0,h(C).width()-this.helperProportions.width-this.margins.left,(h(C).height()||C.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(F.containment.constructor===Array){this.containment=F.containment;return}if(F.containment==="parent"){F.containment=this.helper[0].parentNode}G=h(F.containment);E=G[0];if(!E){return}D=/(scroll|auto)/.test(G.css("overflow"));this.containment=[(parseInt(G.css("borderLeftWidth"),10)||0)+(parseInt(G.css("paddingLeft"),10)||0),(parseInt(G.css("borderTopWidth"),10)||0)+(parseInt(G.css("paddingTop"),10)||0),(D?Math.max(E.scrollWidth,E.offsetWidth):E.offsetWidth)-(parseInt(G.css("borderRightWidth"),10)||0)-(parseInt(G.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(D?Math.max(E.scrollHeight,E.offsetHeight):E.offsetHeight)-(parseInt(G.css("borderBottomWidth"),10)||0)-(parseInt(G.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relativeContainer=G},_convertPositionTo:function(D,F){if(!F){F=this.position}var C=D==="absolute"?1:-1,E=this._isRootNode(this.scrollParent[0]);return{top:(F.top+this.offset.relative.top*C+this.offset.parent.top*C-((this.cssPosition==="fixed"?-this.offset.scroll.top:(E?0:this.offset.scroll.top))*C)),left:(F.left+this.offset.relative.left*C+this.offset.parent.left*C-((this.cssPosition==="fixed"?-this.offset.scroll.left:(E?0:this.offset.scroll.left))*C))}},_generatePosition:function(D,J){var C,K,L,F,E=this.options,I=this._isRootNode(this.scrollParent[0]),H=D.pageX,G=D.pageY;if(!I||!this.offset.scroll){this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}}if(J){if(this.containment){if(this.relativeContainer){K=this.relativeContainer.offset();C=[this.containment[0]+K.left,this.containment[1]+K.top,this.containment[2]+K.left,this.containment[3]+K.top]}else{C=this.containment}if(D.pageX-this.offset.click.left<C[0]){H=C[0]+this.offset.click.left}if(D.pageY-this.offset.click.top<C[1]){G=C[1]+this.offset.click.top}if(D.pageX-this.offset.click.left>C[2]){H=C[2]+this.offset.click.left}if(D.pageY-this.offset.click.top>C[3]){G=C[3]+this.offset.click.top}}if(E.grid){L=E.grid[1]?this.originalPageY+Math.round((G-this.originalPageY)/E.grid[1])*E.grid[1]:this.originalPageY;G=C?((L-this.offset.click.top>=C[1]||L-this.offset.click.top>C[3])?L:((L-this.offset.click.top>=C[1])?L-E.grid[1]:L+E.grid[1])):L;F=E.grid[0]?this.originalPageX+Math.round((H-this.originalPageX)/E.grid[0])*E.grid[0]:this.originalPageX;H=C?((F-this.offset.click.left>=C[0]||F-this.offset.click.left>C[2])?F:((F-this.offset.click.left>=C[0])?F-E.grid[0]:F+E.grid[0])):F}if(E.axis==="y"){H=this.originalPageX}if(E.axis==="x"){G=this.originalPageY}}return{top:(G-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.offset.scroll.top:(I?0:this.offset.scroll.top))),left:(H-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.offset.scroll.left:(I?0:this.offset.scroll.left)))}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.helper[0]!==this.element[0]&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false;if(this.destroyOnClear){this.destroy()}},_normalizeRightBottom:function(){if(this.options.axis!=="y"&&this.helper.css("right")!=="auto"){this.helper.width(this.helper.width());this.helper.css("right","auto")}if(this.options.axis!=="x"&&this.helper.css("bottom")!=="auto"){this.helper.height(this.helper.height());this.helper.css("bottom","auto")}},_trigger:function(C,D,E){E=E||this._uiHash();h.ui.plugin.call(this,C,[D,E,this],true);if(/^(drag|start|stop)/.test(C)){this.positionAbs=this._convertPositionTo("absolute");E.offset=this.positionAbs}return h.Widget.prototype._trigger.call(this,C,D,E)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});h.ui.plugin.add("draggable","connectToSortable",{start:function(E,F,C){var D=h.extend({},F,{item:C.element});C.sortables=[];h(C.options.connectToSortable).each(function(){var G=h(this).sortable("instance");if(G&&!G.options.disabled){C.sortables.push(G);G.refreshPositions();G._trigger("activate",E,D)}})},stop:function(E,F,C){var D=h.extend({},F,{item:C.element});C.cancelHelperRemoval=false;h.each(C.sortables,function(){var G=this;if(G.isOver){G.isOver=0;C.cancelHelperRemoval=true;G.cancelHelperRemoval=false;G._storedCSS={position:G.placeholder.css("position"),top:G.placeholder.css("top"),left:G.placeholder.css("left")};G._mouseStop(E);G.options.helper=G.options._helper}else{G.cancelHelperRemoval=true;G._trigger("deactivate",E,D)}})},drag:function(D,E,C){h.each(C.sortables,function(){var F=false,G=this;G.positionAbs=C.positionAbs;G.helperProportions=C.helperProportions;G.offset.click=C.offset.click;if(G._intersectsWith(G.containerCache)){F=true;h.each(C.sortables,function(){this.positionAbs=C.positionAbs;this.helperProportions=C.helperProportions;this.offset.click=C.offset.click;if(this!==G&&this._intersectsWith(this.containerCache)&&h.contains(G.element[0],this.element[0])){F=false}return F})}if(F){if(!G.isOver){G.isOver=1;C._parent=E.helper.parent();G.currentItem=E.helper.appendTo(G.element).data("ui-sortable-item",true);G.options._helper=G.options.helper;G.options.helper=function(){return E.helper[0]};D.target=G.currentItem[0];G._mouseCapture(D,true);G._mouseStart(D,true,true);G.offset.click.top=C.offset.click.top;G.offset.click.left=C.offset.click.left;G.offset.parent.left-=C.offset.parent.left-G.offset.parent.left;G.offset.parent.top-=C.offset.parent.top-G.offset.parent.top;C._trigger("toSortable",D);C.dropped=G.element;h.each(C.sortables,function(){this.refreshPositions()});C.currentItem=C.element;G.fromOutside=C}if(G.currentItem){G._mouseDrag(D);E.position=G.position}}else{if(G.isOver){G.isOver=0;G.cancelHelperRemoval=true;G.options._revert=G.options.revert;G.options.revert=false;G._trigger("out",D,G._uiHash(G));G._mouseStop(D,true);G.options.revert=G.options._revert;G.options.helper=G.options._helper;if(G.placeholder){G.placeholder.remove()}E.helper.appendTo(C._parent);C._refreshOffsets(D);E.position=C._generatePosition(D,true);C._trigger("fromSortable",D);C.dropped=false;h.each(C.sortables,function(){this.refreshPositions()})}}})}});h.ui.plugin.add("draggable","cursor",{start:function(E,F,C){var D=h("body"),G=C.options;if(D.css("cursor")){G._cursor=D.css("cursor")}D.css("cursor",G.cursor)},stop:function(D,E,C){var F=C.options;if(F._cursor){h("body").css("cursor",F._cursor)}}});h.ui.plugin.add("draggable","opacity",{start:function(E,F,C){var D=h(F.helper),G=C.options;if(D.css("opacity")){G._opacity=D.css("opacity")}D.css("opacity",G.opacity)},stop:function(D,E,C){var F=C.options;if(F._opacity){h(E.helper).css("opacity",F._opacity)}}});h.ui.plugin.add("draggable","scroll",{start:function(D,E,C){if(!C.scrollParentNotHidden){C.scrollParentNotHidden=C.helper.scrollParent(false)}if(C.scrollParentNotHidden[0]!==C.document[0]&&C.scrollParentNotHidden[0].tagName!=="HTML"){C.overflowOffset=C.scrollParentNotHidden.offset()}},drag:function(F,G,E){var H=E.options,D=false,I=E.scrollParentNotHidden[0],C=E.document[0];if(I!==C&&I.tagName!=="HTML"){if(!H.axis||H.axis!=="x"){if((E.overflowOffset.top+I.offsetHeight)-F.pageY<H.scrollSensitivity){I.scrollTop=D=I.scrollTop+H.scrollSpeed}else{if(F.pageY-E.overflowOffset.top<H.scrollSensitivity){I.scrollTop=D=I.scrollTop-H.scrollSpeed}}}if(!H.axis||H.axis!=="y"){if((E.overflowOffset.left+I.offsetWidth)-F.pageX<H.scrollSensitivity){I.scrollLeft=D=I.scrollLeft+H.scrollSpeed}else{if(F.pageX-E.overflowOffset.left<H.scrollSensitivity){I.scrollLeft=D=I.scrollLeft-H.scrollSpeed}}}}else{if(!H.axis||H.axis!=="x"){if(F.pageY-h(C).scrollTop()<H.scrollSensitivity){D=h(C).scrollTop(h(C).scrollTop()-H.scrollSpeed)}else{if(h(window).height()-(F.pageY-h(C).scrollTop())<H.scrollSensitivity){D=h(C).scrollTop(h(C).scrollTop()+H.scrollSpeed)}}}if(!H.axis||H.axis!=="y"){if(F.pageX-h(C).scrollLeft()<H.scrollSensitivity){D=h(C).scrollLeft(h(C).scrollLeft()-H.scrollSpeed)}else{if(h(window).width()-(F.pageX-h(C).scrollLeft())<H.scrollSensitivity){D=h(C).scrollLeft(h(C).scrollLeft()+H.scrollSpeed)}}}}if(D!==false&&h.ui.ddmanager&&!H.dropBehaviour){h.ui.ddmanager.prepareOffsets(E,F)}}});h.ui.plugin.add("draggable","snap",{start:function(D,E,C){var F=C.options;C.snapElements=[];h(F.snap.constructor!==String?(F.snap.items||":data(ui-draggable)"):F.snap).each(function(){var H=h(this),G=H.offset();if(this!==C.element[0]){C.snapElements.push({item:this,width:H.outerWidth(),height:H.outerHeight(),top:G.top,left:G.left})}})},drag:function(O,L,F){var C,T,H,I,N,K,J,U,P,G,M=F.options,S=M.snapTolerance,R=L.offset.left,Q=R+F.helperProportions.width,E=L.offset.top,D=E+F.helperProportions.height;for(P=F.snapElements.length-1;P>=0;P--){N=F.snapElements[P].left-F.margins.left;K=N+F.snapElements[P].width;J=F.snapElements[P].top-F.margins.top;U=J+F.snapElements[P].height;if(Q<N-S||R>K+S||D<J-S||E>U+S||!h.contains(F.snapElements[P].item.ownerDocument,F.snapElements[P].item)){if(F.snapElements[P].snapping){(F.options.snap.release&&F.options.snap.release.call(F.element,O,h.extend(F._uiHash(),{snapItem:F.snapElements[P].item})))}F.snapElements[P].snapping=false;continue}if(M.snapMode!=="inner"){C=Math.abs(J-D)<=S;T=Math.abs(U-E)<=S;H=Math.abs(N-Q)<=S;I=Math.abs(K-R)<=S;if(C){L.position.top=F._convertPositionTo("relative",{top:J-F.helperProportions.height,left:0}).top}if(T){L.position.top=F._convertPositionTo("relative",{top:U,left:0}).top}if(H){L.position.left=F._convertPositionTo("relative",{top:0,left:N-F.helperProportions.width}).left}if(I){L.position.left=F._convertPositionTo("relative",{top:0,left:K}).left}}G=(C||T||H||I);if(M.snapMode!=="outer"){C=Math.abs(J-E)<=S;T=Math.abs(U-D)<=S;H=Math.abs(N-R)<=S;I=Math.abs(K-Q)<=S;if(C){L.position.top=F._convertPositionTo("relative",{top:J,left:0}).top}if(T){L.position.top=F._convertPositionTo("relative",{top:U-F.helperProportions.height,left:0}).top}if(H){L.position.left=F._convertPositionTo("relative",{top:0,left:N}).left}if(I){L.position.left=F._convertPositionTo("relative",{top:0,left:K-F.helperProportions.width}).left}}if(!F.snapElements[P].snapping&&(C||T||H||I||G)){(F.options.snap.snap&&F.options.snap.snap.call(F.element,O,h.extend(F._uiHash(),{snapItem:F.snapElements[P].item})))}F.snapElements[P].snapping=(C||T||H||I||G)}}});h.ui.plugin.add("draggable","stack",{start:function(E,F,C){var D,H=C.options,G=h.makeArray(h(H.stack)).sort(function(J,I){return(parseInt(h(J).css("zIndex"),10)||0)-(parseInt(h(I).css("zIndex"),10)||0)});if(!G.length){return}D=parseInt(h(G[0]).css("zIndex"),10)||0;h(G).each(function(I){h(this).css("zIndex",D+I)});this.css("zIndex",(D+G.length))}});h.ui.plugin.add("draggable","zIndex",{start:function(E,F,C){var D=h(F.helper),G=C.options;if(D.css("zIndex")){G._zIndex=D.css("zIndex")}D.css("zIndex",G.zIndex)},stop:function(D,E,C){var F=C.options;if(F._zIndex){h(E.helper).css("zIndex",F._zIndex)}}});var e=h.ui.draggable;
/*!
 * jQuery UI Resizable 1.11.4
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/resizable/
 */
h.widget("ui.resizable",h.ui.mouse,{version:"1.11.4",widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(C){return parseInt(C,10)||0},_isNumber:function(C){return !isNaN(parseInt(C,10))},_hasScroll:function(F,D){if(h(F).css("overflow")==="hidden"){return false}var C=(D&&D==="left")?"scrollLeft":"scrollTop",E=false;if(F[C]>0){return true}F[C]=1;E=(F[C]>0);F[C]=0;return E},_create:function(){var I,D,G,E,C,F=this,H=this.options;this.element.addClass("ui-resizable");h.extend(this,{_aspectRatio:!!(H.aspectRatio),aspectRatio:H.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:H.helper||H.ghost||H.animate?H.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)){this.element.wrap(h("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=H.handles||(!h(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});this._handles=h();if(this.handles.constructor===String){if(this.handles==="all"){this.handles="n,e,s,w,se,sw,ne,nw"}I=this.handles.split(",");this.handles={};for(D=0;D<I.length;D++){G=h.trim(I[D]);C="ui-resizable-"+G;E=h("<div class='ui-resizable-handle "+C+"'></div>");E.css({zIndex:H.zIndex});if("se"===G){E.addClass("ui-icon ui-icon-gripsmall-diagonal-se")}this.handles[G]=".ui-resizable-"+G;this.element.append(E)}}this._renderAxis=function(N){var K,L,J,M;N=N||this.element;for(K in this.handles){if(this.handles[K].constructor===String){this.handles[K]=this.element.children(this.handles[K]).first().show()}else{if(this.handles[K].jquery||this.handles[K].nodeType){this.handles[K]=h(this.handles[K]);this._on(this.handles[K],{mousedown:F._mouseDown})}}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)){L=h(this.handles[K],this.element);M=/sw|ne|nw|se|n|s/.test(K)?L.outerHeight():L.outerWidth();J=["padding",/ne|nw|n/.test(K)?"Top":/se|sw|s/.test(K)?"Bottom":/^e$/.test(K)?"Right":"Left"].join("");N.css(J,M);this._proportionallyResize()}this._handles=this._handles.add(this.handles[K])}};this._renderAxis(this.element);this._handles=this._handles.add(this.element.find(".ui-resizable-handle"));this._handles.disableSelection();this._handles.mouseover(function(){if(!F.resizing){if(this.className){E=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}F.axis=E&&E[1]?E[1]:"se"}});if(H.autoHide){this._handles.hide();h(this.element).addClass("ui-resizable-autohide").mouseenter(function(){if(H.disabled){return}h(this).removeClass("ui-resizable-autohide");F._handles.show()}).mouseleave(function(){if(H.disabled){return}if(!F.resizing){h(this).addClass("ui-resizable-autohide");F._handles.hide()}})}this._mouseInit()},_destroy:function(){this._mouseDestroy();var D,C=function(E){h(E).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){C(this.element);D=this.element;this.originalElement.css({position:D.css("position"),width:D.outerWidth(),height:D.outerHeight(),top:D.css("top"),left:D.css("left")}).insertAfter(D);D.remove()}this.originalElement.css("resize",this.originalResizeStyle);C(this.originalElement);return this},_mouseCapture:function(E){var D,F,C=false;for(D in this.handles){F=h(this.handles[D])[0];if(F===E.target||h.contains(F,E.target)){C=true}}return !this.options.disabled&&C},_mouseStart:function(D){var H,E,G,F=this.options,C=this.element;this.resizing=true;this._renderProxy();H=this._num(this.helper.css("left"));E=this._num(this.helper.css("top"));if(F.containment){H+=h(F.containment).scrollLeft()||0;E+=h(F.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:H,top:E};this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:C.width(),height:C.height()};this.originalSize=this._helper?{width:C.outerWidth(),height:C.outerHeight()}:{width:C.width(),height:C.height()};this.sizeDiff={width:C.outerWidth()-C.width(),height:C.outerHeight()-C.height()};this.originalPosition={left:H,top:E};this.originalMousePosition={left:D.pageX,top:D.pageY};this.aspectRatio=(typeof F.aspectRatio==="number")?F.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);G=h(".ui-resizable-"+this.axis).css("cursor");h("body").css("cursor",G==="auto"?this.axis+"-resize":G);C.addClass("ui-resizable-resizing");this._propagate("start",D);return true},_mouseDrag:function(H){var I,G,J=this.originalMousePosition,D=this.axis,E=(H.pageX-J.left)||0,C=(H.pageY-J.top)||0,F=this._change[D];this._updatePrevProperties();if(!F){return false}I=F.apply(this,[H,E,C]);this._updateVirtualBoundaries(H.shiftKey);if(this._aspectRatio||H.shiftKey){I=this._updateRatio(I,H)}I=this._respectSize(I,H);this._updateCache(I);this._propagate("resize",H);G=this._applyChanges();if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize()}if(!h.isEmptyObject(G)){this._updatePrevProperties();this._trigger("resize",H,this.ui());this._applyChanges()}return false},_mouseStop:function(F){this.resizing=false;var E,C,D,I,L,H,K,G=this.options,J=this;if(this._helper){E=this._proportionallyResizeElements;C=E.length&&(/textarea/i).test(E[0].nodeName);D=C&&this._hasScroll(E[0],"left")?0:J.sizeDiff.height;I=C?0:J.sizeDiff.width;L={width:(J.helper.width()-I),height:(J.helper.height()-D)};H=(parseInt(J.element.css("left"),10)+(J.position.left-J.originalPosition.left))||null;K=(parseInt(J.element.css("top"),10)+(J.position.top-J.originalPosition.top))||null;if(!G.animate){this.element.css(h.extend(L,{top:K,left:H}))}J.helper.height(J.size.height);J.helper.width(J.size.width);if(this._helper&&!G.animate){this._proportionallyResize()}}h("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",F);if(this._helper){this.helper.remove()}return false},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left};this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var C={};if(this.position.top!==this.prevPosition.top){C.top=this.position.top+"px"}if(this.position.left!==this.prevPosition.left){C.left=this.position.left+"px"}if(this.size.width!==this.prevSize.width){C.width=this.size.width+"px"}if(this.size.height!==this.prevSize.height){C.height=this.size.height+"px"}this.helper.css(C);return C},_updateVirtualBoundaries:function(E){var G,F,D,I,C,H=this.options;C={minWidth:this._isNumber(H.minWidth)?H.minWidth:0,maxWidth:this._isNumber(H.maxWidth)?H.maxWidth:Infinity,minHeight:this._isNumber(H.minHeight)?H.minHeight:0,maxHeight:this._isNumber(H.maxHeight)?H.maxHeight:Infinity};if(this._aspectRatio||E){G=C.minHeight*this.aspectRatio;D=C.minWidth/this.aspectRatio;F=C.maxHeight*this.aspectRatio;I=C.maxWidth/this.aspectRatio;if(G>C.minWidth){C.minWidth=G}if(D>C.minHeight){C.minHeight=D}if(F<C.maxWidth){C.maxWidth=F}if(I<C.maxHeight){C.maxHeight=I}}this._vBoundaries=C},_updateCache:function(C){this.offset=this.helper.offset();if(this._isNumber(C.left)){this.position.left=C.left}if(this._isNumber(C.top)){this.position.top=C.top}if(this._isNumber(C.height)){this.size.height=C.height}if(this._isNumber(C.width)){this.size.width=C.width}},_updateRatio:function(E){var F=this.position,D=this.size,C=this.axis;if(this._isNumber(E.height)){E.width=(E.height*this.aspectRatio)}else{if(this._isNumber(E.width)){E.height=(E.width/this.aspectRatio)}}if(C==="sw"){E.left=F.left+(D.width-E.width);E.top=null}if(C==="nw"){E.top=F.top+(D.height-E.height);E.left=F.left+(D.width-E.width)}return E},_respectSize:function(H){var E=this._vBoundaries,K=this.axis,M=this._isNumber(H.width)&&E.maxWidth&&(E.maxWidth<H.width),I=this._isNumber(H.height)&&E.maxHeight&&(E.maxHeight<H.height),F=this._isNumber(H.width)&&E.minWidth&&(E.minWidth>H.width),L=this._isNumber(H.height)&&E.minHeight&&(E.minHeight>H.height),D=this.originalPosition.left+this.originalSize.width,J=this.position.top+this.size.height,G=/sw|nw|w/.test(K),C=/nw|ne|n/.test(K);if(F){H.width=E.minWidth}if(L){H.height=E.minHeight}if(M){H.width=E.maxWidth}if(I){H.height=E.maxHeight}if(F&&G){H.left=D-E.minWidth}if(M&&G){H.left=D-E.maxWidth}if(L&&C){H.top=J-E.minHeight}if(I&&C){H.top=J-E.maxHeight}if(!H.width&&!H.height&&!H.left&&H.top){H.top=null}else{if(!H.width&&!H.height&&!H.top&&H.left){H.left=null}}return H},_getPaddingPlusBorderDimensions:function(E){var D=0,F=[],G=[E.css("borderTopWidth"),E.css("borderRightWidth"),E.css("borderBottomWidth"),E.css("borderLeftWidth")],C=[E.css("paddingTop"),E.css("paddingRight"),E.css("paddingBottom"),E.css("paddingLeft")];for(;D<4;D++){F[D]=(parseInt(G[D],10)||0);F[D]+=(parseInt(C[D],10)||0)}return{height:F[0]+F[2],width:F[1]+F[3]}},_proportionallyResize:function(){if(!this._proportionallyResizeElements.length){return}var E,D=0,C=this.helper||this.element;for(;D<this._proportionallyResizeElements.length;D++){E=this._proportionallyResizeElements[D];if(!this.outerDimensions){this.outerDimensions=this._getPaddingPlusBorderDimensions(E)}E.css({height:(C.height()-this.outerDimensions.height)||0,width:(C.width()-this.outerDimensions.width)||0})}},_renderProxy:function(){var C=this.element,D=this.options;this.elementOffset=C.offset();if(this._helper){this.helper=this.helper||h("<div style='overflow:hidden;'></div>");this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++D.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(D,C){return{width:this.originalSize.width+C}},w:function(E,C){var D=this.originalSize,F=this.originalPosition;return{left:F.left+C,width:D.width-C}},n:function(F,D,C){var E=this.originalSize,G=this.originalPosition;return{top:G.top+C,height:E.height-C}},s:function(E,D,C){return{height:this.originalSize.height+C}},se:function(E,D,C){return h.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[E,D,C]))},sw:function(E,D,C){return h.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[E,D,C]))},ne:function(E,D,C){return h.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[E,D,C]))},nw:function(E,D,C){return h.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[E,D,C]))}},_propagate:function(D,C){h.ui.plugin.call(this,D,[C,this.ui()]);(D!=="resize"&&this._trigger(D,C,this.ui()))},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});h.ui.plugin.add("resizable","animate",{stop:function(F){var K=h(this).resizable("instance"),H=K.options,E=K._proportionallyResizeElements,C=E.length&&(/textarea/i).test(E[0].nodeName),D=C&&K._hasScroll(E[0],"left")?0:K.sizeDiff.height,J=C?0:K.sizeDiff.width,G={width:(K.size.width-J),height:(K.size.height-D)},I=(parseInt(K.element.css("left"),10)+(K.position.left-K.originalPosition.left))||null,L=(parseInt(K.element.css("top"),10)+(K.position.top-K.originalPosition.top))||null;K.element.animate(h.extend(G,L&&I?{top:L,left:I}:{}),{duration:H.animateDuration,easing:H.animateEasing,step:function(){var M={width:parseInt(K.element.css("width"),10),height:parseInt(K.element.css("height"),10),top:parseInt(K.element.css("top"),10),left:parseInt(K.element.css("left"),10)};if(E&&E.length){h(E[0]).css({width:M.width,height:M.height})}K._updateCache(M);K._propagate("resize",F)}})}});h.ui.plugin.add("resizable","containment",{start:function(){var K,E,M,C,J,F,N,L=h(this).resizable("instance"),I=L.options,H=L.element,D=I.containment,G=(D instanceof h)?D.get(0):(/parent/.test(D))?H.parent().get(0):D;if(!G){return}L.containerElement=h(G);if(/document/.test(D)||D===document){L.containerOffset={left:0,top:0};L.containerPosition={left:0,top:0};L.parentData={element:h(document),left:0,top:0,width:h(document).width(),height:h(document).height()||document.body.parentNode.scrollHeight}}else{K=h(G);E=[];h(["Top","Right","Left","Bottom"]).each(function(P,O){E[P]=L._num(K.css("padding"+O))});L.containerOffset=K.offset();L.containerPosition=K.position();L.containerSize={height:(K.innerHeight()-E[3]),width:(K.innerWidth()-E[1])};M=L.containerOffset;C=L.containerSize.height;J=L.containerSize.width;F=(L._hasScroll(G,"left")?G.scrollWidth:J);N=(L._hasScroll(G)?G.scrollHeight:C);L.parentData={element:G,left:M.left,top:M.top,width:F,height:N}}},resize:function(D){var J,O,I,G,K=h(this).resizable("instance"),F=K.options,M=K.containerOffset,L=K.position,N=K._aspectRatio||D.shiftKey,C={top:0,left:0},E=K.containerElement,H=true;if(E[0]!==document&&(/static/).test(E.css("position"))){C=M}if(L.left<(K._helper?M.left:0)){K.size.width=K.size.width+(K._helper?(K.position.left-M.left):(K.position.left-C.left));if(N){K.size.height=K.size.width/K.aspectRatio;H=false}K.position.left=F.helper?M.left:0}if(L.top<(K._helper?M.top:0)){K.size.height=K.size.height+(K._helper?(K.position.top-M.top):K.position.top);if(N){K.size.width=K.size.height*K.aspectRatio;H=false}K.position.top=K._helper?M.top:0}I=K.containerElement.get(0)===K.element.parent().get(0);G=/relative|absolute/.test(K.containerElement.css("position"));if(I&&G){K.offset.left=K.parentData.left+K.position.left;K.offset.top=K.parentData.top+K.position.top}else{K.offset.left=K.element.offset().left;K.offset.top=K.element.offset().top}J=Math.abs(K.sizeDiff.width+(K._helper?K.offset.left-C.left:(K.offset.left-M.left)));O=Math.abs(K.sizeDiff.height+(K._helper?K.offset.top-C.top:(K.offset.top-M.top)));if(J+K.size.width>=K.parentData.width){K.size.width=K.parentData.width-J;if(N){K.size.height=K.size.width/K.aspectRatio;H=false}}if(O+K.size.height>=K.parentData.height){K.size.height=K.parentData.height-O;if(N){K.size.width=K.size.height*K.aspectRatio;H=false}}if(!H){K.position.left=K.prevPosition.left;K.position.top=K.prevPosition.top;K.size.width=K.prevSize.width;K.size.height=K.prevSize.height}},stop:function(){var H=h(this).resizable("instance"),D=H.options,I=H.containerOffset,C=H.containerPosition,E=H.containerElement,F=h(H.helper),K=F.offset(),J=F.outerWidth()-H.sizeDiff.width,G=F.outerHeight()-H.sizeDiff.height;if(H._helper&&!D.animate&&(/relative/).test(E.css("position"))){h(this).css({left:K.left-C.left-I.left,width:J,height:G})}if(H._helper&&!D.animate&&(/static/).test(E.css("position"))){h(this).css({left:K.left-C.left-I.left,width:J,height:G})}}});h.ui.plugin.add("resizable","alsoResize",{start:function(){var C=h(this).resizable("instance"),D=C.options;h(D.alsoResize).each(function(){var E=h(this);E.data("ui-resizable-alsoresize",{width:parseInt(E.width(),10),height:parseInt(E.height(),10),left:parseInt(E.css("left"),10),top:parseInt(E.css("top"),10)})})},resize:function(D,F){var C=h(this).resizable("instance"),G=C.options,E=C.originalSize,I=C.originalPosition,H={height:(C.size.height-E.height)||0,width:(C.size.width-E.width)||0,top:(C.position.top-I.top)||0,left:(C.position.left-I.left)||0};h(G.alsoResize).each(function(){var L=h(this),M=h(this).data("ui-resizable-alsoresize"),K={},J=L.parents(F.originalElement[0]).length?["width","height"]:["width","height","top","left"];h.each(J,function(N,P){var O=(M[P]||0)+(H[P]||0);if(O&&O>=0){K[P]=O||null}});L.css(K)})},stop:function(){h(this).removeData("resizable-alsoresize")}});h.ui.plugin.add("resizable","ghost",{start:function(){var D=h(this).resizable("instance"),E=D.options,C=D.size;D.ghost=D.originalElement.clone();D.ghost.css({opacity:0.25,display:"block",position:"relative",height:C.height,width:C.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof E.ghost==="string"?E.ghost:"");D.ghost.appendTo(D.helper)},resize:function(){var C=h(this).resizable("instance");if(C.ghost){C.ghost.css({position:"relative",height:C.size.height,width:C.size.width})}},stop:function(){var C=h(this).resizable("instance");if(C.ghost&&C.helper){C.helper.get(0).removeChild(C.ghost.get(0))}}});h.ui.plugin.add("resizable","grid",{resize:function(){var F,K=h(this).resizable("instance"),O=K.options,I=K.size,J=K.originalSize,L=K.originalPosition,T=K.axis,C=typeof O.grid==="number"?[O.grid,O.grid]:O.grid,R=(C[0]||1),Q=(C[1]||1),H=Math.round((I.width-J.width)/R)*R,G=Math.round((I.height-J.height)/Q)*Q,M=J.width+H,P=J.height+G,E=O.maxWidth&&(O.maxWidth<M),N=O.maxHeight&&(O.maxHeight<P),S=O.minWidth&&(O.minWidth>M),D=O.minHeight&&(O.minHeight>P);O.grid=C;if(S){M+=R}if(D){P+=Q}if(E){M-=R}if(N){P-=Q}if(/^(se|s|e)$/.test(T)){K.size.width=M;K.size.height=P}else{if(/^(ne)$/.test(T)){K.size.width=M;K.size.height=P;K.position.top=L.top-G}else{if(/^(sw)$/.test(T)){K.size.width=M;K.size.height=P;K.position.left=L.left-H}else{if(P-Q<=0||M-R<=0){F=K._getPaddingPlusBorderDimensions(this)}if(P-Q>0){K.size.height=P;K.position.top=L.top-G}else{P=Q-F.height;K.size.height=P;K.position.top=L.top+J.height-P}if(M-R>0){K.size.width=M;K.position.left=L.left-H}else{M=R-F.width;K.size.width=M;K.position.left=L.left+J.width-M}}}}}});var j=h.ui.resizable;
/*!
 * jQuery UI Button 1.11.4
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/button/
 */
var o,v="ui-button ui-widget ui-state-default ui-corner-all",m="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",c=function(){var C=h(this);setTimeout(function(){C.find(":ui-button").button("refresh")},1)},i=function(D){var C=D.name,E=D.form,F=h([]);if(C){C=C.replace(/'/g,"\\'");if(E){F=h(E).find("[name='"+C+"'][type=radio]")}else{F=h("[name='"+C+"'][type=radio]",D.ownerDocument).filter(function(){return !this.form})}}return F};h.widget("ui.button",{version:"1.11.4",defaultElement:"<button>",options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,c);if(typeof this.options.disabled!=="boolean"){this.options.disabled=!!this.element.prop("disabled")}else{this.element.prop("disabled",this.options.disabled)}this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var E=this,C=this.options,F=this.type==="checkbox"||this.type==="radio",D=!F?"ui-state-active":"";if(C.label===null){C.label=(this.type==="input"?this.buttonElement.val():this.buttonElement.html())}this._hoverable(this.buttonElement);this.buttonElement.addClass(v).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){if(C.disabled){return}if(this===o){h(this).addClass("ui-state-active")}}).bind("mouseleave"+this.eventNamespace,function(){if(C.disabled){return}h(this).removeClass(D)}).bind("click"+this.eventNamespace,function(G){if(C.disabled){G.preventDefault();G.stopImmediatePropagation()}});this._on({focus:function(){this.buttonElement.addClass("ui-state-focus")},blur:function(){this.buttonElement.removeClass("ui-state-focus")}});if(F){this.element.bind("change"+this.eventNamespace,function(){E.refresh()})}if(this.type==="checkbox"){this.buttonElement.bind("click"+this.eventNamespace,function(){if(C.disabled){return false}})}else{if(this.type==="radio"){this.buttonElement.bind("click"+this.eventNamespace,function(){if(C.disabled){return false}h(this).addClass("ui-state-active");E.buttonElement.attr("aria-pressed","true");var G=E.element[0];i(G).not(G).map(function(){return h(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")})}else{this.buttonElement.bind("mousedown"+this.eventNamespace,function(){if(C.disabled){return false}h(this).addClass("ui-state-active");o=this;E.document.one("mouseup",function(){o=null})}).bind("mouseup"+this.eventNamespace,function(){if(C.disabled){return false}h(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(G){if(C.disabled){return false}if(G.keyCode===h.ui.keyCode.SPACE||G.keyCode===h.ui.keyCode.ENTER){h(this).addClass("ui-state-active")}}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){h(this).removeClass("ui-state-active")});if(this.buttonElement.is("a")){this.buttonElement.keyup(function(G){if(G.keyCode===h.ui.keyCode.SPACE){h(this).click()}})}}}this._setOption("disabled",C.disabled);this._resetButton()},_determineButtonType:function(){var C,E,D;if(this.element.is("[type=checkbox]")){this.type="checkbox"}else{if(this.element.is("[type=radio]")){this.type="radio"}else{if(this.element.is("input")){this.type="input"}else{this.type="button"}}}if(this.type==="checkbox"||this.type==="radio"){C=this.element.parents().last();E="label[for='"+this.element.attr("id")+"']";this.buttonElement=C.find(E);if(!this.buttonElement.length){C=C.length?C.siblings():this.element.siblings();this.buttonElement=C.filter(E);if(!this.buttonElement.length){this.buttonElement=C.find(E)}}this.element.addClass("ui-helper-hidden-accessible");D=this.element.is(":checked");if(D){this.buttonElement.addClass("ui-state-active")}this.buttonElement.prop("aria-pressed",D)}else{this.buttonElement=this.element}},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass(v+" ui-state-active "+m).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());if(!this.hasTitle){this.buttonElement.removeAttr("title")}},_setOption:function(C,D){this._super(C,D);if(C==="disabled"){this.widget().toggleClass("ui-state-disabled",!!D);this.element.prop("disabled",!!D);if(D){if(this.type==="checkbox"||this.type==="radio"){this.buttonElement.removeClass("ui-state-focus")}else{this.buttonElement.removeClass("ui-state-focus ui-state-active")}}return}this._resetButton()},refresh:function(){var C=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");if(C!==this.options.disabled){this._setOption("disabled",C)}if(this.type==="radio"){i(this.element[0]).each(function(){if(h(this).is(":checked")){h(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true")}else{h(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}})}else{if(this.type==="checkbox"){if(this.element.is(":checked")){this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true")}else{this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false")}}}},_resetButton:function(){if(this.type==="input"){if(this.options.label){this.element.val(this.options.label)}return}var G=this.buttonElement.removeClass(m),E=h("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(G.empty()).text(),D=this.options.icons,C=D.primary&&D.secondary,F=[];if(D.primary||D.secondary){if(this.options.text){F.push("ui-button-text-icon"+(C?"s":(D.primary?"-primary":"-secondary")))}if(D.primary){G.prepend("<span class='ui-button-icon-primary ui-icon "+D.primary+"'></span>")}if(D.secondary){G.append("<span class='ui-button-icon-secondary ui-icon "+D.secondary+"'></span>")}if(!this.options.text){F.push(C?"ui-button-icons-only":"ui-button-icon-only");if(!this.hasTitle){G.attr("title",h.trim(E))}}}else{F.push("ui-button-text-only")}G.addClass(F.join(" "))}});h.widget("ui.buttonset",{version:"1.11.4",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(C,D){if(C==="disabled"){this.buttons.button("option",C,D)}this._super(C,D)},refresh:function(){var D=this.element.css("direction")==="rtl",C=this.element.find(this.options.items),E=C.filter(":ui-button");C.not(":ui-button").button();E.button("refresh");this.buttons=C.map(function(){return h(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(D?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(D?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return h(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}});var b=h.ui.button;
/*!
 * jQuery UI Datepicker 1.11.4
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/datepicker/
 */
h.extend(h.ui,{datepicker:{version:"1.11.4"}});var x;function y(D){var C,E;while(D.length&&D[0]!==document){C=D.css("position");if(C==="absolute"||C==="relative"||C==="fixed"){E=parseInt(D.css("zIndex"),10);if(!isNaN(E)&&E!==0){return E}}D=D.parent()}return 0}function w(){this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false,disabled:false};h.extend(this._defaults,this.regional[""]);this.regional.en=h.extend(true,{},this.regional[""]);this.regional["en-US"]=h.extend(true,{},this.regional.en);this.dpDiv=a(h("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}h.extend(w.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(C){A(this._defaults,C||{});return this},_attachDatepicker:function(F,C){var G,E,D;G=F.nodeName.toLowerCase();E=(G==="div"||G==="span");if(!F.id){this.uuid+=1;F.id="dp"+this.uuid}D=this._newInst(h(F),E);D.settings=h.extend({},C||{});if(G==="input"){this._connectDatepicker(F,D)}else{if(E){this._inlineDatepicker(F,D)}}},_newInst:function(D,C){var E=D[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:E,input:D,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:C,dpDiv:(!C?this.dpDiv:a(h("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")))}},_connectDatepicker:function(E,D){var C=h(E);D.append=h([]);D.trigger=h([]);if(C.hasClass(this.markerClassName)){return}this._attachments(C,D);C.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp);this._autoSize(D);h.data(E,"datepicker",D);if(D.settings.disabled){this._disableDatepicker(E)}},_attachments:function(E,H){var D,G,C,I=this._get(H,"appendText"),F=this._get(H,"isRTL");if(H.append){H.append.remove()}if(I){H.append=h("<span class='"+this._appendClass+"'>"+I+"</span>");E[F?"before":"after"](H.append)}E.unbind("focus",this._showDatepicker);if(H.trigger){H.trigger.remove()}D=this._get(H,"showOn");if(D==="focus"||D==="both"){E.focus(this._showDatepicker)}if(D==="button"||D==="both"){G=this._get(H,"buttonText");C=this._get(H,"buttonImage");H.trigger=h(this._get(H,"buttonImageOnly")?h("<img/>").addClass(this._triggerClass).attr({src:C,alt:G,title:G}):h("<button type='button'></button>").addClass(this._triggerClass).html(!C?G:h("<img/>").attr({src:C,alt:G,title:G})));E[F?"before":"after"](H.trigger);H.trigger.click(function(){if(h.datepicker._datepickerShowing&&h.datepicker._lastInput===E[0]){h.datepicker._hideDatepicker()}else{if(h.datepicker._datepickerShowing&&h.datepicker._lastInput!==E[0]){h.datepicker._hideDatepicker();h.datepicker._showDatepicker(E[0])}else{h.datepicker._showDatepicker(E[0])}}return false})}},_autoSize:function(I){if(this._get(I,"autoSize")&&!I.inline){var F,D,E,H,G=new Date(2009,12-1,20),C=this._get(I,"dateFormat");if(C.match(/[DM]/)){F=function(J){D=0;E=0;for(H=0;H<J.length;H++){if(J[H].length>D){D=J[H].length;E=H}}return E};G.setMonth(F(this._get(I,(C.match(/MM/)?"monthNames":"monthNamesShort"))));G.setDate(F(this._get(I,(C.match(/DD/)?"dayNames":"dayNamesShort")))+20-G.getDay())}I.input.attr("size",this._formatDate(I,G).length)}},_inlineDatepicker:function(D,C){var E=h(D);if(E.hasClass(this.markerClassName)){return}E.addClass(this.markerClassName).append(C.dpDiv);h.data(D,"datepicker",C);this._setDate(C,this._getDefaultDate(C),true);this._updateDatepicker(C);this._updateAlternate(C);if(C.settings.disabled){this._disableDatepicker(D)}C.dpDiv.css("display","block")},_dialogDatepicker:function(J,D,H,E,I){var C,M,G,L,K,F=this._dialogInst;if(!F){this.uuid+=1;C="dp"+this.uuid;this._dialogInput=h("<input type='text' id='"+C+"' style='position: absolute; top: -100px; width: 0px;'/>");this._dialogInput.keydown(this._doKeyDown);h("body").append(this._dialogInput);F=this._dialogInst=this._newInst(this._dialogInput,false);F.settings={};h.data(this._dialogInput[0],"datepicker",F)}A(F.settings,E||{});D=(D&&D.constructor===Date?this._formatDate(F,D):D);this._dialogInput.val(D);this._pos=(I?(I.length?I:[I.pageX,I.pageY]):null);if(!this._pos){M=document.documentElement.clientWidth;G=document.documentElement.clientHeight;L=document.documentElement.scrollLeft||document.body.scrollLeft;K=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(M/2)-100+L,(G/2)-150+K]}this._dialogInput.css("left",(this._pos[0]+20)+"px").css("top",this._pos[1]+"px");F.settings.onSelect=H;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if(h.blockUI){h.blockUI(this.dpDiv)}h.data(this._dialogInput[0],"datepicker",F);return this},_destroyDatepicker:function(E){var F,C=h(E),D=h.data(E,"datepicker");if(!C.hasClass(this.markerClassName)){return}F=E.nodeName.toLowerCase();h.removeData(E,"datepicker");if(F==="input"){D.append.remove();D.trigger.remove();C.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else{if(F==="div"||F==="span"){C.removeClass(this.markerClassName).empty()}}if(x===D){x=null}},_enableDatepicker:function(F){var G,E,C=h(F),D=h.data(F,"datepicker");if(!C.hasClass(this.markerClassName)){return}G=F.nodeName.toLowerCase();if(G==="input"){F.disabled=false;D.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(G==="div"||G==="span"){E=C.children("."+this._inlineClass);E.children().removeClass("ui-state-disabled");E.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",false)}}this._disabledInputs=h.map(this._disabledInputs,function(H){return(H===F?null:H)})},_disableDatepicker:function(F){var G,E,C=h(F),D=h.data(F,"datepicker");if(!C.hasClass(this.markerClassName)){return}G=F.nodeName.toLowerCase();if(G==="input"){F.disabled=true;D.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(G==="div"||G==="span"){E=C.children("."+this._inlineClass);E.children().addClass("ui-state-disabled");E.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",true)}}this._disabledInputs=h.map(this._disabledInputs,function(H){return(H===F?null:H)});this._disabledInputs[this._disabledInputs.length]=F},_isDisabledDatepicker:function(D){if(!D){return false}for(var C=0;C<this._disabledInputs.length;C++){if(this._disabledInputs[C]===D){return true}}return false},_getInst:function(D){try{return h.data(D,"datepicker")}catch(C){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(I,D,H){var E,C,G,J,F=this._getInst(I);if(arguments.length===2&&typeof D==="string"){return(D==="defaults"?h.extend({},h.datepicker._defaults):(F?(D==="all"?h.extend({},F.settings):this._get(F,D)):null))}E=D||{};if(typeof D==="string"){E={};E[D]=H}if(F){if(this._curInst===F){this._hideDatepicker()}C=this._getDateDatepicker(I,true);G=this._getMinMaxDate(F,"min");J=this._getMinMaxDate(F,"max");A(F.settings,E);if(G!==null&&E.dateFormat!==undefined&&E.minDate===undefined){F.settings.minDate=this._formatDate(F,G)}if(J!==null&&E.dateFormat!==undefined&&E.maxDate===undefined){F.settings.maxDate=this._formatDate(F,J)}if("disabled" in E){if(E.disabled){this._disableDatepicker(I)}else{this._enableDatepicker(I)}}this._attachments(h(I),F);this._autoSize(F);this._setDate(F,C);this._updateAlternate(F);this._updateDatepicker(F)}},_changeDatepicker:function(E,C,D){this._optionDatepicker(E,C,D)},_refreshDatepicker:function(D){var C=this._getInst(D);if(C){this._updateDatepicker(C)}},_setDateDatepicker:function(E,C){var D=this._getInst(E);if(D){this._setDate(D,C);this._updateDatepicker(D);this._updateAlternate(D)}},_getDateDatepicker:function(E,C){var D=this._getInst(E);if(D&&!D.inline){this._setDateFromField(D,C)}return(D?this._getDate(D):null)},_doKeyDown:function(F){var D,C,H,G=h.datepicker._getInst(F.target),I=true,E=G.dpDiv.is(".ui-datepicker-rtl");G._keyEvent=true;if(h.datepicker._datepickerShowing){switch(F.keyCode){case 9:h.datepicker._hideDatepicker();I=false;break;case 13:H=h("td."+h.datepicker._dayOverClass+":not(."+h.datepicker._currentClass+")",G.dpDiv);if(H[0]){h.datepicker._selectDay(F.target,G.selectedMonth,G.selectedYear,H[0])}D=h.datepicker._get(G,"onSelect");if(D){C=h.datepicker._formatDate(G);D.apply((G.input?G.input[0]:null),[C,G])}else{h.datepicker._hideDatepicker()}return false;case 27:h.datepicker._hideDatepicker();break;case 33:h.datepicker._adjustDate(F.target,(F.ctrlKey?-h.datepicker._get(G,"stepBigMonths"):-h.datepicker._get(G,"stepMonths")),"M");break;case 34:h.datepicker._adjustDate(F.target,(F.ctrlKey?+h.datepicker._get(G,"stepBigMonths"):+h.datepicker._get(G,"stepMonths")),"M");break;case 35:if(F.ctrlKey||F.metaKey){h.datepicker._clearDate(F.target)}I=F.ctrlKey||F.metaKey;break;case 36:if(F.ctrlKey||F.metaKey){h.datepicker._gotoToday(F.target)}I=F.ctrlKey||F.metaKey;break;case 37:if(F.ctrlKey||F.metaKey){h.datepicker._adjustDate(F.target,(E?+1:-1),"D")}I=F.ctrlKey||F.metaKey;if(F.originalEvent.altKey){h.datepicker._adjustDate(F.target,(F.ctrlKey?-h.datepicker._get(G,"stepBigMonths"):-h.datepicker._get(G,"stepMonths")),"M")}break;case 38:if(F.ctrlKey||F.metaKey){h.datepicker._adjustDate(F.target,-7,"D")}I=F.ctrlKey||F.metaKey;break;case 39:if(F.ctrlKey||F.metaKey){h.datepicker._adjustDate(F.target,(E?-1:+1),"D")}I=F.ctrlKey||F.metaKey;if(F.originalEvent.altKey){h.datepicker._adjustDate(F.target,(F.ctrlKey?+h.datepicker._get(G,"stepBigMonths"):+h.datepicker._get(G,"stepMonths")),"M")}break;case 40:if(F.ctrlKey||F.metaKey){h.datepicker._adjustDate(F.target,+7,"D")}I=F.ctrlKey||F.metaKey;break;default:I=false}}else{if(F.keyCode===36&&F.ctrlKey){h.datepicker._showDatepicker(this)}else{I=false}}if(I){F.preventDefault();F.stopPropagation()}},_doKeyPress:function(E){var D,C,F=h.datepicker._getInst(E.target);if(h.datepicker._get(F,"constrainInput")){D=h.datepicker._possibleChars(h.datepicker._get(F,"dateFormat"));C=String.fromCharCode(E.charCode==null?E.keyCode:E.charCode);return E.ctrlKey||E.metaKey||(C<" "||!D||D.indexOf(C)>-1)}},_doKeyUp:function(E){var C,F=h.datepicker._getInst(E.target);if(F.input.val()!==F.lastVal){try{C=h.datepicker.parseDate(h.datepicker._get(F,"dateFormat"),(F.input?F.input.val():null),h.datepicker._getFormatConfig(F));if(C){h.datepicker._setDateFromField(F);h.datepicker._updateAlternate(F);h.datepicker._updateDatepicker(F)}}catch(D){}}return true},_showDatepicker:function(D){D=D.target||D;if(D.nodeName.toLowerCase()!=="input"){D=h("input",D.parentNode)[0]}if(h.datepicker._isDisabledDatepicker(D)||h.datepicker._lastInput===D){return}var F,J,E,H,I,C,G;F=h.datepicker._getInst(D);if(h.datepicker._curInst&&h.datepicker._curInst!==F){h.datepicker._curInst.dpDiv.stop(true,true);if(F&&h.datepicker._datepickerShowing){h.datepicker._hideDatepicker(h.datepicker._curInst.input[0])}}J=h.datepicker._get(F,"beforeShow");E=J?J.apply(D,[D,F]):{};if(E===false){return}A(F.settings,E);F.lastVal=null;h.datepicker._lastInput=D;h.datepicker._setDateFromField(F);if(h.datepicker._inDialog){D.value=""}if(!h.datepicker._pos){h.datepicker._pos=h.datepicker._findPos(D);h.datepicker._pos[1]+=D.offsetHeight}H=false;h(D).parents().each(function(){H|=h(this).css("position")==="fixed";return !H});I={left:h.datepicker._pos[0],top:h.datepicker._pos[1]};h.datepicker._pos=null;F.dpDiv.empty();F.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});h.datepicker._updateDatepicker(F);I=h.datepicker._checkOffset(F,I,H);F.dpDiv.css({position:(h.datepicker._inDialog&&h.blockUI?"static":(H?"fixed":"absolute")),display:"none",left:I.left+"px",top:I.top+"px"});if(!F.inline){C=h.datepicker._get(F,"showAnim");G=h.datepicker._get(F,"duration");F.dpDiv.css("z-index",y(h(D))+1);h.datepicker._datepickerShowing=true;if(h.effects&&h.effects.effect[C]){F.dpDiv.show(C,h.datepicker._get(F,"showOptions"),G)}else{F.dpDiv[C||"show"](C?G:null)}if(h.datepicker._shouldFocusInput(F)){F.input.focus()}h.datepicker._curInst=F}},_updateDatepicker:function(F){this.maxRows=4;x=F;F.dpDiv.empty().append(this._generateHTML(F));this._attachHandlers(F);var H,C=this._getNumberOfMonths(F),G=C[1],E=17,D=F.dpDiv.find("."+this._dayOverClass+" a");if(D.length>0){z.apply(D.get(0))}F.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");if(G>1){F.dpDiv.addClass("ui-datepicker-multi-"+G).css("width",(E*G)+"em")}F.dpDiv[(C[0]!==1||C[1]!==1?"add":"remove")+"Class"]("ui-datepicker-multi");F.dpDiv[(this._get(F,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");if(F===h.datepicker._curInst&&h.datepicker._datepickerShowing&&h.datepicker._shouldFocusInput(F)){F.input.focus()}if(F.yearshtml){H=F.yearshtml;setTimeout(function(){if(H===F.yearshtml&&F.yearshtml){F.dpDiv.find("select.ui-datepicker-year:first").replaceWith(F.yearshtml)}H=F.yearshtml=null},0)}},_shouldFocusInput:function(C){return C.input&&C.input.is(":visible")&&!C.input.is(":disabled")&&!C.input.is(":focus")},_checkOffset:function(H,F,E){var G=H.dpDiv.outerWidth(),K=H.dpDiv.outerHeight(),J=H.input?H.input.outerWidth():0,C=H.input?H.input.outerHeight():0,I=document.documentElement.clientWidth+(E?0:h(document).scrollLeft()),D=document.documentElement.clientHeight+(E?0:h(document).scrollTop());F.left-=(this._get(H,"isRTL")?(G-J):0);F.left-=(E&&F.left===H.input.offset().left)?h(document).scrollLeft():0;F.top-=(E&&F.top===(H.input.offset().top+C))?h(document).scrollTop():0;F.left-=Math.min(F.left,(F.left+G>I&&I>G)?Math.abs(F.left+G-I):0);F.top-=Math.min(F.top,(F.top+K>D&&D>K)?Math.abs(K+C):0);return F},_findPos:function(F){var C,E=this._getInst(F),D=this._get(E,"isRTL");while(F&&(F.type==="hidden"||F.nodeType!==1||h.expr.filters.hidden(F))){F=F[D?"previousSibling":"nextSibling"]}C=h(F).offset();return[C.left,C.top]},_hideDatepicker:function(E){var D,H,G,C,F=this._curInst;if(!F||(E&&F!==h.data(E,"datepicker"))){return}if(this._datepickerShowing){D=this._get(F,"showAnim");H=this._get(F,"duration");G=function(){h.datepicker._tidyDialog(F)};if(h.effects&&(h.effects.effect[D]||h.effects[D])){F.dpDiv.hide(D,h.datepicker._get(F,"showOptions"),H,G)}else{F.dpDiv[(D==="slideDown"?"slideUp":(D==="fadeIn"?"fadeOut":"hide"))]((D?H:null),G)}if(!D){G()}this._datepickerShowing=false;C=this._get(F,"onClose");if(C){C.apply((F.input?F.input[0]:null),[(F.input?F.input.val():""),F])}this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(h.blockUI){h.unblockUI();h("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(C){C.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(D){if(!h.datepicker._curInst){return}var C=h(D.target),E=h.datepicker._getInst(C[0]);if(((C[0].id!==h.datepicker._mainDivId&&C.parents("#"+h.datepicker._mainDivId).length===0&&!C.hasClass(h.datepicker.markerClassName)&&!C.closest("."+h.datepicker._triggerClass).length&&h.datepicker._datepickerShowing&&!(h.datepicker._inDialog&&h.blockUI)))||(C.hasClass(h.datepicker.markerClassName)&&h.datepicker._curInst!==E)){h.datepicker._hideDatepicker()}},_adjustDate:function(G,F,E){var D=h(G),C=this._getInst(D[0]);if(this._isDisabledDatepicker(D[0])){return}this._adjustInstDate(C,F+(E==="M"?this._get(C,"showCurrentAtPos"):0),E);this._updateDatepicker(C)},_gotoToday:function(F){var C,E=h(F),D=this._getInst(E[0]);if(this._get(D,"gotoCurrent")&&D.currentDay){D.selectedDay=D.currentDay;D.drawMonth=D.selectedMonth=D.currentMonth;D.drawYear=D.selectedYear=D.currentYear}else{C=new Date();D.selectedDay=C.getDate();D.drawMonth=D.selectedMonth=C.getMonth();D.drawYear=D.selectedYear=C.getFullYear()}this._notifyChange(D);this._adjustDate(E)},_selectMonthYear:function(G,C,F){var E=h(G),D=this._getInst(E[0]);D["selected"+(F==="M"?"Month":"Year")]=D["draw"+(F==="M"?"Month":"Year")]=parseInt(C.options[C.selectedIndex].value,10);this._notifyChange(D);this._adjustDate(E)},_selectDay:function(H,F,C,G){var D,E=h(H);if(h(G).hasClass(this._unselectableClass)||this._isDisabledDatepicker(E[0])){return}D=this._getInst(E[0]);D.selectedDay=D.currentDay=h("a",G).html();D.selectedMonth=D.currentMonth=F;D.selectedYear=D.currentYear=C;this._selectDate(H,this._formatDate(D,D.currentDay,D.currentMonth,D.currentYear))},_clearDate:function(D){var C=h(D);this._selectDate(C,"")},_selectDate:function(G,C){var D,F=h(G),E=this._getInst(F[0]);C=(C!=null?C:this._formatDate(E));if(E.input){E.input.val(C)}this._updateAlternate(E);D=this._get(E,"onSelect");if(D){D.apply((E.input?E.input[0]:null),[C,E])}else{if(E.input){E.input.trigger("change")}}if(E.inline){this._updateDatepicker(E)}else{this._hideDatepicker();this._lastInput=E.input[0];if(typeof(E.input[0])!=="object"){E.input.focus()}this._lastInput=null}},_updateAlternate:function(G){var F,E,C,D=this._get(G,"altField");if(D){F=this._get(G,"altFormat")||this._get(G,"dateFormat");E=this._getDate(G);C=this.formatDate(F,E,this._getFormatConfig(G));h(D).each(function(){h(this).val(C)})}},noWeekends:function(D){var C=D.getDay();return[(C>0&&C<6),""]},iso8601Week:function(C){var D,E=new Date(C.getTime());E.setDate(E.getDate()+4-(E.getDay()||7));D=E.getTime();E.setMonth(0);E.setDate(1);return Math.floor(Math.round((D-E)/86400000)/7)+1},parseDate:function(S,N,U){if(S==null||N==null){throw"Invalid arguments"}N=(typeof N==="object"?N.toString():N+"");if(N===""){return null}var F,P,D,T=0,I=(U?U.shortYearCutoff:null)||this._defaults.shortYearCutoff,E=(typeof I!=="string"?I:new Date().getFullYear()%100+parseInt(I,10)),L=(U?U.dayNamesShort:null)||this._defaults.dayNamesShort,W=(U?U.dayNames:null)||this._defaults.dayNames,C=(U?U.monthNamesShort:null)||this._defaults.monthNamesShort,G=(U?U.monthNames:null)||this._defaults.monthNames,H=-1,X=-1,R=-1,K=-1,Q=false,V,M=function(Z){var aa=(F+1<S.length&&S.charAt(F+1)===Z);if(aa){F++}return aa},Y=function(ab){var Z=M(ab),ac=(ab==="@"?14:(ab==="!"?20:(ab==="y"&&Z?4:(ab==="o"?3:2)))),ae=(ab==="y"?ac:1),ad=new RegExp("^\\d{"+ae+","+ac+"}"),aa=N.substring(T).match(ad);if(!aa){throw"Missing number at position "+T}T+=aa[0].length;return parseInt(aa[0],10)},J=function(aa,ab,ad){var Z=-1,ac=h.map(M(aa)?ad:ab,function(af,ae){return[[ae,af]]}).sort(function(af,ae){return -(af[1].length-ae[1].length)});h.each(ac,function(af,ag){var ae=ag[1];if(N.substr(T,ae.length).toLowerCase()===ae.toLowerCase()){Z=ag[0];T+=ae.length;return false}});if(Z!==-1){return Z+1}else{throw"Unknown name at position "+T}},O=function(){if(N.charAt(T)!==S.charAt(F)){throw"Unexpected literal at position "+T}T++};for(F=0;F<S.length;F++){if(Q){if(S.charAt(F)==="'"&&!M("'")){Q=false}else{O()}}else{switch(S.charAt(F)){case"d":R=Y("d");break;case"D":J("D",L,W);break;case"o":K=Y("o");break;case"m":X=Y("m");break;case"M":X=J("M",C,G);break;case"y":H=Y("y");break;case"@":V=new Date(Y("@"));H=V.getFullYear();X=V.getMonth()+1;R=V.getDate();break;case"!":V=new Date((Y("!")-this._ticksTo1970)/10000);H=V.getFullYear();X=V.getMonth()+1;R=V.getDate();break;case"'":if(M("'")){O()}else{Q=true}break;default:O()}}}if(T<N.length){D=N.substr(T);if(!/^\s+/.test(D)){throw"Extra/unparsed characters found in date: "+D}}if(H===-1){H=new Date().getFullYear()}else{if(H<100){H+=new Date().getFullYear()-new Date().getFullYear()%100+(H<=E?0:-100)}}if(K>-1){X=1;R=K;do{P=this._getDaysInMonth(H,X-1);if(R<=P){break}X++;R-=P}while(true)}V=this._daylightSavingAdjust(new Date(H,X-1,R));if(V.getFullYear()!==H||V.getMonth()+1!==X||V.getDate()!==R){throw"Invalid date"}return V},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(((1970-1)*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*10000000),formatDate:function(L,F,G){if(!F){return""}var N,O=(G?G.dayNamesShort:null)||this._defaults.dayNamesShort,D=(G?G.dayNames:null)||this._defaults.dayNames,J=(G?G.monthNamesShort:null)||this._defaults.monthNamesShort,H=(G?G.monthNames:null)||this._defaults.monthNames,M=function(P){var Q=(N+1<L.length&&L.charAt(N+1)===P);if(Q){N++}return Q},C=function(R,S,P){var Q=""+S;if(M(R)){while(Q.length<P){Q="0"+Q}}return Q},I=function(P,R,Q,S){return(M(P)?S[R]:Q[R])},E="",K=false;if(F){for(N=0;N<L.length;N++){if(K){if(L.charAt(N)==="'"&&!M("'")){K=false}else{E+=L.charAt(N)}}else{switch(L.charAt(N)){case"d":E+=C("d",F.getDate(),2);break;case"D":E+=I("D",F.getDay(),O,D);break;case"o":E+=C("o",Math.round((new Date(F.getFullYear(),F.getMonth(),F.getDate()).getTime()-new Date(F.getFullYear(),0,0).getTime())/86400000),3);break;case"m":E+=C("m",F.getMonth()+1,2);break;case"M":E+=I("M",F.getMonth(),J,H);break;case"y":E+=(M("y")?F.getFullYear():(F.getYear()%100<10?"0":"")+F.getYear()%100);break;case"@":E+=F.getTime();break;case"!":E+=F.getTime()*10000+this._ticksTo1970;break;case"'":if(M("'")){E+="'"}else{K=true}break;default:E+=L.charAt(N)}}}}return E},_possibleChars:function(G){var F,E="",D=false,C=function(H){var I=(F+1<G.length&&G.charAt(F+1)===H);if(I){F++}return I};for(F=0;F<G.length;F++){if(D){if(G.charAt(F)==="'"&&!C("'")){D=false}else{E+=G.charAt(F)}}else{switch(G.charAt(F)){case"d":case"m":case"y":case"@":E+="0123456789";break;case"D":case"M":return null;case"'":if(C("'")){E+="'"}else{D=true}break;default:E+=G.charAt(F)}}}return E},_get:function(D,C){return D.settings[C]!==undefined?D.settings[C]:this._defaults[C]},_setDateFromField:function(H,E){if(H.input.val()===H.lastVal){return}var C=this._get(H,"dateFormat"),J=H.lastVal=H.input?H.input.val():null,I=this._getDefaultDate(H),D=I,F=this._getFormatConfig(H);try{D=this.parseDate(C,J,F)||I}catch(G){J=(E?"":J)}H.selectedDay=D.getDate();H.drawMonth=H.selectedMonth=D.getMonth();H.drawYear=H.selectedYear=D.getFullYear();H.currentDay=(J?D.getDate():0);H.currentMonth=(J?D.getMonth():0);H.currentYear=(J?D.getFullYear():0);this._adjustInstDate(H)},_getDefaultDate:function(C){return this._restrictMinMax(C,this._determineDate(C,this._get(C,"defaultDate"),new Date()))},_determineDate:function(G,D,H){var F=function(J){var I=new Date();I.setDate(I.getDate()+J);return I},E=function(P){try{return h.datepicker.parseDate(h.datepicker._get(G,"dateFormat"),P,h.datepicker._getFormatConfig(G))}catch(O){}var J=(P.toLowerCase().match(/^c/)?h.datepicker._getDate(G):null)||new Date(),K=J.getFullYear(),N=J.getMonth(),I=J.getDate(),M=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,L=M.exec(P);while(L){switch(L[2]||"d"){case"d":case"D":I+=parseInt(L[1],10);break;case"w":case"W":I+=parseInt(L[1],10)*7;break;case"m":case"M":N+=parseInt(L[1],10);I=Math.min(I,h.datepicker._getDaysInMonth(K,N));break;case"y":case"Y":K+=parseInt(L[1],10);I=Math.min(I,h.datepicker._getDaysInMonth(K,N));break}L=M.exec(P)}return new Date(K,N,I)},C=(D==null||D===""?H:(typeof D==="string"?E(D):(typeof D==="number"?(isNaN(D)?H:F(D)):new Date(D.getTime()))));C=(C&&C.toString()==="Invalid Date"?H:C);if(C){C.setHours(0);C.setMinutes(0);C.setSeconds(0);C.setMilliseconds(0)}return this._daylightSavingAdjust(C)},_daylightSavingAdjust:function(C){if(!C){return null}C.setHours(C.getHours()>12?C.getHours()+2:0);return C},_setDate:function(I,F,H){var C=!F,E=I.selectedMonth,G=I.selectedYear,D=this._restrictMinMax(I,this._determineDate(I,F,new Date()));I.selectedDay=I.currentDay=D.getDate();I.drawMonth=I.selectedMonth=I.currentMonth=D.getMonth();I.drawYear=I.selectedYear=I.currentYear=D.getFullYear();if((E!==I.selectedMonth||G!==I.selectedYear)&&!H){this._notifyChange(I)}this._adjustInstDate(I);if(I.input){I.input.val(C?"":this._formatDate(I))}},_getDate:function(D){var C=(!D.currentYear||(D.input&&D.input.val()==="")?null:this._daylightSavingAdjust(new Date(D.currentYear,D.currentMonth,D.currentDay)));return C},_attachHandlers:function(D){var C=this._get(D,"stepMonths"),E="#"+D.id.replace(/\\\\/g,"\\");D.dpDiv.find("[data-handler]").map(function(){var F={prev:function(){h.datepicker._adjustDate(E,-C,"M")},next:function(){h.datepicker._adjustDate(E,+C,"M")},hide:function(){h.datepicker._hideDatepicker()},today:function(){h.datepicker._gotoToday(E)},selectDay:function(){h.datepicker._selectDay(E,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this);return false},selectMonth:function(){h.datepicker._selectMonthYear(E,this,"M");return false},selectYear:function(){h.datepicker._selectMonthYear(E,this,"Y");return false}};h(this).bind(this.getAttribute("data-event"),F[this.getAttribute("data-handler")])})},_generateHTML:function(at){var V,U,an,af,G,ax,aq,aj,aA,ad,aE,N,P,O,D,aw,L,Y,az,al,aF,X,ac,M,H,ao,ah,ak,ai,K,aa,Q,ar,av,F,ay,aC,ag,R,au=new Date(),W=this._daylightSavingAdjust(new Date(au.getFullYear(),au.getMonth(),au.getDate())),aB=this._get(at,"isRTL"),aD=this._get(at,"showButtonPanel"),am=this._get(at,"hideIfNoPrevNext"),ab=this._get(at,"navigationAsDateFormat"),S=this._getNumberOfMonths(at),J=this._get(at,"showCurrentAtPos"),ae=this._get(at,"stepMonths"),Z=(S[0]!==1||S[1]!==1),E=this._daylightSavingAdjust((!at.currentDay?new Date(9999,9,9):new Date(at.currentYear,at.currentMonth,at.currentDay))),I=this._getMinMaxDate(at,"min"),T=this._getMinMaxDate(at,"max"),C=at.drawMonth-J,ap=at.drawYear;if(C<0){C+=12;ap--}if(T){V=this._daylightSavingAdjust(new Date(T.getFullYear(),T.getMonth()-(S[0]*S[1])+1,T.getDate()));V=(I&&V<I?I:V);while(this._daylightSavingAdjust(new Date(ap,C,1))>V){C--;if(C<0){C=11;ap--}}}at.drawMonth=C;at.drawYear=ap;U=this._get(at,"prevText");U=(!ab?U:this.formatDate(U,this._daylightSavingAdjust(new Date(ap,C-ae,1)),this._getFormatConfig(at)));an=(this._canAdjustMonth(at,-1,ap,C)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+U+"'><span class='ui-icon ui-icon-circle-triangle-"+(aB?"e":"w")+"'>"+U+"</span></a>":(am?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+U+"'><span class='ui-icon ui-icon-circle-triangle-"+(aB?"e":"w")+"'>"+U+"</span></a>"));af=this._get(at,"nextText");af=(!ab?af:this.formatDate(af,this._daylightSavingAdjust(new Date(ap,C+ae,1)),this._getFormatConfig(at)));G=(this._canAdjustMonth(at,+1,ap,C)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+af+"'><span class='ui-icon ui-icon-circle-triangle-"+(aB?"w":"e")+"'>"+af+"</span></a>":(am?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+af+"'><span class='ui-icon ui-icon-circle-triangle-"+(aB?"w":"e")+"'>"+af+"</span></a>"));ax=this._get(at,"currentText");aq=(this._get(at,"gotoCurrent")&&at.currentDay?E:W);ax=(!ab?ax:this.formatDate(ax,aq,this._getFormatConfig(at)));aj=(!at.inline?"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(at,"closeText")+"</button>":"");aA=(aD)?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(aB?aj:"")+(this._isInRange(at,aq)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+ax+"</button>":"")+(aB?"":aj)+"</div>":"";ad=parseInt(this._get(at,"firstDay"),10);ad=(isNaN(ad)?0:ad);aE=this._get(at,"showWeek");N=this._get(at,"dayNames");P=this._get(at,"dayNamesMin");O=this._get(at,"monthNames");D=this._get(at,"monthNamesShort");aw=this._get(at,"beforeShowDay");L=this._get(at,"showOtherMonths");Y=this._get(at,"selectOtherMonths");az=this._getDefaultDate(at);al="";aF;for(X=0;X<S[0];X++){ac="";this.maxRows=4;for(M=0;M<S[1];M++){H=this._daylightSavingAdjust(new Date(ap,C,at.selectedDay));ao=" ui-corner-all";ah="";if(Z){ah+="<div class='ui-datepicker-group";if(S[1]>1){switch(M){case 0:ah+=" ui-datepicker-group-first";ao=" ui-corner-"+(aB?"right":"left");break;case S[1]-1:ah+=" ui-datepicker-group-last";ao=" ui-corner-"+(aB?"left":"right");break;default:ah+=" ui-datepicker-group-middle";ao="";break}}ah+="'>"}ah+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+ao+"'>"+(/all|left/.test(ao)&&X===0?(aB?G:an):"")+(/all|right/.test(ao)&&X===0?(aB?an:G):"")+this._generateMonthYearHeader(at,C,ap,I,T,X>0||M>0,O,D)+"</div><table class='ui-datepicker-calendar'><thead><tr>";ak=(aE?"<th class='ui-datepicker-week-col'>"+this._get(at,"weekHeader")+"</th>":"");for(aF=0;aF<7;aF++){ai=(aF+ad)%7;ak+="<th scope='col'"+((aF+ad+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+N[ai]+"'>"+P[ai]+"</span></th>"}ah+=ak+"</tr></thead><tbody>";K=this._getDaysInMonth(ap,C);if(ap===at.selectedYear&&C===at.selectedMonth){at.selectedDay=Math.min(at.selectedDay,K)}aa=(this._getFirstDayOfMonth(ap,C)-ad+7)%7;Q=Math.ceil((aa+K)/7);ar=(Z?this.maxRows>Q?this.maxRows:Q:Q);this.maxRows=ar;av=this._daylightSavingAdjust(new Date(ap,C,1-aa));for(F=0;F<ar;F++){ah+="<tr>";ay=(!aE?"":"<td class='ui-datepicker-week-col'>"+this._get(at,"calculateWeek")(av)+"</td>");for(aF=0;aF<7;aF++){aC=(aw?aw.apply((at.input?at.input[0]:null),[av]):[true,""]);ag=(av.getMonth()!==C);R=(ag&&!Y)||!aC[0]||(I&&av<I)||(T&&av>T);ay+="<td class='"+((aF+ad+6)%7>=5?" ui-datepicker-week-end":"")+(ag?" ui-datepicker-other-month":"")+((av.getTime()===H.getTime()&&C===at.selectedMonth&&at._keyEvent)||(az.getTime()===av.getTime()&&az.getTime()===H.getTime())?" "+this._dayOverClass:"")+(R?" "+this._unselectableClass+" ui-state-disabled":"")+(ag&&!L?"":" "+aC[1]+(av.getTime()===E.getTime()?" "+this._currentClass:"")+(av.getTime()===W.getTime()?" ui-datepicker-today":""))+"'"+((!ag||L)&&aC[2]?" title='"+aC[2].replace(/'/g,"&#39;")+"'":"")+(R?"":" data-handler='selectDay' data-event='click' data-month='"+av.getMonth()+"' data-year='"+av.getFullYear()+"'")+">"+(ag&&!L?"&#xa0;":(R?"<span class='ui-state-default'>"+av.getDate()+"</span>":"<a class='ui-state-default"+(av.getTime()===W.getTime()?" ui-state-highlight":"")+(av.getTime()===E.getTime()?" ui-state-active":"")+(ag?" ui-priority-secondary":"")+"' href='#'>"+av.getDate()+"</a>"))+"</td>";av.setDate(av.getDate()+1);av=this._daylightSavingAdjust(av)}ah+=ay+"</tr>"}C++;if(C>11){C=0;ap++}ah+="</tbody></table>"+(Z?"</div>"+((S[0]>0&&M===S[1]-1)?"<div class='ui-datepicker-row-break'></div>":""):"");ac+=ah}al+=ac}al+=aA;at._keyEvent=false;return al},_generateMonthYearHeader:function(G,E,O,I,M,P,K,C){var T,D,U,R,H,Q,N,J,F=this._get(G,"changeMonth"),V=this._get(G,"changeYear"),W=this._get(G,"showMonthAfterYear"),L="<div class='ui-datepicker-title'>",S="";if(P||!F){S+="<span class='ui-datepicker-month'>"+K[E]+"</span>"}else{T=(I&&I.getFullYear()===O);D=(M&&M.getFullYear()===O);S+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>";for(U=0;U<12;U++){if((!T||U>=I.getMonth())&&(!D||U<=M.getMonth())){S+="<option value='"+U+"'"+(U===E?" selected='selected'":"")+">"+C[U]+"</option>"}}S+="</select>"}if(!W){L+=S+(P||!(F&&V)?"&#xa0;":"")}if(!G.yearshtml){G.yearshtml="";if(P||!V){L+="<span class='ui-datepicker-year'>"+O+"</span>"}else{R=this._get(G,"yearRange").split(":");H=new Date().getFullYear();Q=function(Y){var X=(Y.match(/c[+\-].*/)?O+parseInt(Y.substring(1),10):(Y.match(/[+\-].*/)?H+parseInt(Y,10):parseInt(Y,10)));return(isNaN(X)?H:X)};N=Q(R[0]);J=Math.max(N,Q(R[1]||""));N=(I?Math.max(N,I.getFullYear()):N);J=(M?Math.min(J,M.getFullYear()):J);G.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";for(;N<=J;N++){G.yearshtml+="<option value='"+N+"'"+(N===O?" selected='selected'":"")+">"+N+"</option>"}G.yearshtml+="</select>";L+=G.yearshtml;G.yearshtml=null}}L+=this._get(G,"yearSuffix");if(W){L+=(P||!(F&&V)?"&#xa0;":"")+S}L+="</div>";return L},_adjustInstDate:function(F,I,H){var E=F.drawYear+(H==="Y"?I:0),G=F.drawMonth+(H==="M"?I:0),C=Math.min(F.selectedDay,this._getDaysInMonth(E,G))+(H==="D"?I:0),D=this._restrictMinMax(F,this._daylightSavingAdjust(new Date(E,G,C)));F.selectedDay=D.getDate();F.drawMonth=F.selectedMonth=D.getMonth();F.drawYear=F.selectedYear=D.getFullYear();if(H==="M"||H==="Y"){this._notifyChange(F)}},_restrictMinMax:function(F,D){var E=this._getMinMaxDate(F,"min"),G=this._getMinMaxDate(F,"max"),C=(E&&D<E?E:D);return(G&&C>G?G:C)},_notifyChange:function(D){var C=this._get(D,"onChangeMonthYear");if(C){C.apply((D.input?D.input[0]:null),[D.selectedYear,D.selectedMonth+1,D])}},_getNumberOfMonths:function(D){var C=this._get(D,"numberOfMonths");return(C==null?[1,1]:(typeof C==="number"?[1,C]:C))},_getMinMaxDate:function(D,C){return this._determineDate(D,this._get(D,C+"Date"),null)},_getDaysInMonth:function(C,D){return 32-this._daylightSavingAdjust(new Date(C,D,32)).getDate()},_getFirstDayOfMonth:function(C,D){return new Date(C,D,1).getDay()},_canAdjustMonth:function(F,H,E,G){var C=this._getNumberOfMonths(F),D=this._daylightSavingAdjust(new Date(E,G+(H<0?H:C[0]*C[1]),1));if(H<0){D.setDate(this._getDaysInMonth(D.getFullYear(),D.getMonth()))}return this._isInRange(F,D)},_isInRange:function(G,E){var D,J,F=this._getMinMaxDate(G,"min"),C=this._getMinMaxDate(G,"max"),K=null,H=null,I=this._get(G,"yearRange");if(I){D=I.split(":");J=new Date().getFullYear();K=parseInt(D[0],10);H=parseInt(D[1],10);if(D[0].match(/[+\-].*/)){K+=J}if(D[1].match(/[+\-].*/)){H+=J}}return((!F||E.getTime()>=F.getTime())&&(!C||E.getTime()<=C.getTime())&&(!K||E.getFullYear()>=K)&&(!H||E.getFullYear()<=H))},_getFormatConfig:function(C){var D=this._get(C,"shortYearCutoff");D=(typeof D!=="string"?D:new Date().getFullYear()%100+parseInt(D,10));return{shortYearCutoff:D,dayNamesShort:this._get(C,"dayNamesShort"),dayNames:this._get(C,"dayNames"),monthNamesShort:this._get(C,"monthNamesShort"),monthNames:this._get(C,"monthNames")}},_formatDate:function(F,C,G,E){if(!C){F.currentDay=F.selectedDay;F.currentMonth=F.selectedMonth;F.currentYear=F.selectedYear}var D=(C?(typeof C==="object"?C:this._daylightSavingAdjust(new Date(E,G,C))):this._daylightSavingAdjust(new Date(F.currentYear,F.currentMonth,F.currentDay)));return this.formatDate(this._get(F,"dateFormat"),D,this._getFormatConfig(F))}});function a(D){var C="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return D.delegate(C,"mouseout",function(){h(this).removeClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!==-1){h(this).removeClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!==-1){h(this).removeClass("ui-datepicker-next-hover")}}).delegate(C,"mouseover",z)}function z(){if(!h.datepicker._isDisabledDatepicker(x.inline?x.dpDiv.parent()[0]:x.input[0])){h(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");h(this).addClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!==-1){h(this).addClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!==-1){h(this).addClass("ui-datepicker-next-hover")}}}function A(E,D){h.extend(E,D);for(var C in D){if(D[C]==null){E[C]=D[C]}}return E}h.fn.datepicker=function(D){if(!this.length){return this}if(!h.datepicker.initialized){h(document).mousedown(h.datepicker._checkExternalClick);h.datepicker.initialized=true}if(h("#"+h.datepicker._mainDivId).length===0){h("body").append(h.datepicker.dpDiv)}var C=Array.prototype.slice.call(arguments,1);if(typeof D==="string"&&(D==="isDisabled"||D==="getDate"||D==="widget")){return h.datepicker["_"+D+"Datepicker"].apply(h.datepicker,[this[0]].concat(C))}if(D==="option"&&arguments.length===2&&typeof arguments[1]==="string"){return h.datepicker["_"+D+"Datepicker"].apply(h.datepicker,[this[0]].concat(C))}return this.each(function(){typeof D==="string"?h.datepicker["_"+D+"Datepicker"].apply(h.datepicker,[this].concat(C)):h.datepicker._attachDatepicker(this,D)})};h.datepicker=new w();h.datepicker.initialized=false;h.datepicker.uuid=new Date().getTime();h.datepicker.version="1.11.4";var l=h.datepicker;
/*!
 * jQuery UI Dialog 1.11.4
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/dialog/
 */
var u=h.widget("ui.dialog",{version:"1.11.4",options:{appendTo:"body",autoOpen:true,buttons:[],closeOnEscape:true,closeText:"Close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",of:window,collision:"fit",using:function(D){var C=h(this).css(D).offset().top;if(C<0){h(this).css("top",D.top-C)}}},resizable:true,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},resizableRelatedOptions:{maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height};this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)};this.originalTitle=this.element.attr("title");this.options.title=this.options.title||this.originalTitle;this._createWrapper();this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog);this._createTitlebar();this._createButtonPane();if(this.options.draggable&&h.fn.draggable){this._makeDraggable()}if(this.options.resizable&&h.fn.resizable){this._makeResizable()}this._isOpen=false;this._trackFocus()},_init:function(){if(this.options.autoOpen){this.open()}},_appendTo:function(){var C=this.options.appendTo;if(C&&(C.jquery||C.nodeType)){return h(C)}return this.document.find(C||"body").eq(0)},_destroy:function(){var D,C=this.originalPosition;this._untrackInstance();this._destroyOverlay();this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach();this.uiDialog.stop(true,true).remove();if(this.originalTitle){this.element.attr("title",this.originalTitle)}D=C.parent.children().eq(C.index);if(D.length&&D[0]!==this.element[0]){D.before(this.element)}else{C.parent.append(this.element)}},widget:function(){return this.uiDialog},disable:h.noop,enable:h.noop,close:function(F){var E,D=this;if(!this._isOpen||this._trigger("beforeClose",F)===false){return}this._isOpen=false;this._focusedElement=null;this._destroyOverlay();this._untrackInstance();if(!this.opener.filter(":focusable").focus().length){try{E=this.document[0].activeElement;if(E&&E.nodeName.toLowerCase()!=="body"){h(E).blur()}}catch(C){}}this._hide(this.uiDialog,this.options.hide,function(){D._trigger("close",F)})},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(G,C){var F=false,E=this.uiDialog.siblings(".ui-front:visible").map(function(){return +h(this).css("z-index")}).get(),D=Math.max.apply(null,E);if(D>=+this.uiDialog.css("z-index")){this.uiDialog.css("z-index",D+1);F=true}if(F&&!C){this._trigger("focus",G)}return F},open:function(){var C=this;if(this._isOpen){if(this._moveToTop()){this._focusTabbable()}return}this._isOpen=true;this.opener=h(this.document[0].activeElement);this._size();this._position();this._createOverlay();this._moveToTop(null,true);if(this.overlay){this.overlay.css("z-index",this.uiDialog.css("z-index")-1)}this._show(this.uiDialog,this.options.show,function(){C._focusTabbable();C._trigger("focus")});this._makeFocusTarget();this._trigger("open")},_focusTabbable:function(){var C=this._focusedElement;if(!C){C=this.element.find("[autofocus]")}if(!C.length){C=this.element.find(":tabbable")}if(!C.length){C=this.uiDialogButtonPane.find(":tabbable")}if(!C.length){C=this.uiDialogTitlebarClose.filter(":tabbable")}if(!C.length){C=this.uiDialog}C.eq(0).focus()},_keepFocus:function(C){function D(){var F=this.document[0].activeElement,E=this.uiDialog[0]===F||h.contains(this.uiDialog[0],F);if(!E){this._focusTabbable()}}C.preventDefault();D.call(this);this._delay(D)},_createWrapper:function(){this.uiDialog=h("<div>").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo());this._on(this.uiDialog,{keydown:function(E){if(this.options.closeOnEscape&&!E.isDefaultPrevented()&&E.keyCode&&E.keyCode===h.ui.keyCode.ESCAPE){E.preventDefault();this.close(E);return}if(E.keyCode!==h.ui.keyCode.TAB||E.isDefaultPrevented()){return}var D=this.uiDialog.find(":tabbable"),F=D.filter(":first"),C=D.filter(":last");if((E.target===C[0]||E.target===this.uiDialog[0])&&!E.shiftKey){this._delay(function(){F.focus()});E.preventDefault()}else{if((E.target===F[0]||E.target===this.uiDialog[0])&&E.shiftKey){this._delay(function(){C.focus()});E.preventDefault()}}},mousedown:function(C){if(this._moveToTop(C)){this._focusTabbable()}}});if(!this.element.find("[aria-describedby]").length){this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})}},_createTitlebar:function(){var C;this.uiDialogTitlebar=h("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog);this._on(this.uiDialogTitlebar,{mousedown:function(D){if(!h(D.target).closest(".ui-dialog-titlebar-close")){this.uiDialog.focus()}}});this.uiDialogTitlebarClose=h("<button type='button'></button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:false}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar);this._on(this.uiDialogTitlebarClose,{click:function(D){D.preventDefault();this.close(D)}});C=h("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar);this._title(C);this.uiDialog.attr({"aria-labelledby":C.attr("id")})},_title:function(C){if(!this.options.title){C.html("&#160;")}C.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=h("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");this.uiButtonSet=h("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane);this._createButtons()},_createButtons:function(){var D=this,C=this.options.buttons;this.uiDialogButtonPane.remove();this.uiButtonSet.empty();if(h.isEmptyObject(C)||(h.isArray(C)&&!C.length)){this.uiDialog.removeClass("ui-dialog-buttons");return}h.each(C,function(E,F){var G,H;F=h.isFunction(F)?{click:F,text:E}:F;F=h.extend({type:"button"},F);G=F.click;F.click=function(){G.apply(D.element[0],arguments)};H={icons:F.icons,text:F.showText};delete F.icons;delete F.showText;h("<button></button>",F).button(H).appendTo(D.uiButtonSet)});this.uiDialog.addClass("ui-dialog-buttons");this.uiDialogButtonPane.appendTo(this.uiDialog)},_makeDraggable:function(){var E=this,D=this.options;function C(F){return{position:F.position,offset:F.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(F,G){h(this).addClass("ui-dialog-dragging");E._blockFrames();E._trigger("dragStart",F,C(G))},drag:function(F,G){E._trigger("drag",F,C(G))},stop:function(F,G){var I=G.offset.left-E.document.scrollLeft(),H=G.offset.top-E.document.scrollTop();D.position={my:"left top",at:"left"+(I>=0?"+":"")+I+" top"+(H>=0?"+":"")+H,of:E.window};h(this).removeClass("ui-dialog-dragging");E._unblockFrames();E._trigger("dragStop",F,C(G))}})},_makeResizable:function(){var H=this,F=this.options,G=F.resizable,C=this.uiDialog.css("position"),E=typeof G==="string"?G:"n,e,s,w,se,sw,ne,nw";function D(I){return{originalPosition:I.originalPosition,originalSize:I.originalSize,position:I.position,size:I.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:F.maxWidth,maxHeight:F.maxHeight,minWidth:F.minWidth,minHeight:this._minHeight(),handles:E,start:function(I,J){h(this).addClass("ui-dialog-resizing");H._blockFrames();H._trigger("resizeStart",I,D(J))},resize:function(I,J){H._trigger("resize",I,D(J))},stop:function(I,J){var M=H.uiDialog.offset(),L=M.left-H.document.scrollLeft(),K=M.top-H.document.scrollTop();F.height=H.uiDialog.height();F.width=H.uiDialog.width();F.position={my:"left top",at:"left"+(L>=0?"+":"")+L+" top"+(K>=0?"+":"")+K,of:H.window};h(this).removeClass("ui-dialog-resizing");H._unblockFrames();H._trigger("resizeStop",I,D(J))}}).css("position",C)},_trackFocus:function(){this._on(this.widget(),{focusin:function(C){this._makeFocusTarget();this._focusedElement=h(C.target)}})},_makeFocusTarget:function(){this._untrackInstance();this._trackingInstances().unshift(this)},_untrackInstance:function(){var D=this._trackingInstances(),C=h.inArray(this,D);if(C!==-1){D.splice(C,1)}},_trackingInstances:function(){var C=this.document.data("ui-dialog-instances");if(!C){C=[];this.document.data("ui-dialog-instances",C)}return C},_minHeight:function(){var C=this.options;return C.height==="auto"?C.minHeight:Math.min(C.minHeight,C.height)},_position:function(){var C=this.uiDialog.is(":visible");if(!C){this.uiDialog.show()}this.uiDialog.position(this.options.position);if(!C){this.uiDialog.hide()}},_setOptions:function(E){var F=this,D=false,C={};h.each(E,function(G,H){F._setOption(G,H);if(G in F.sizeRelatedOptions){D=true}if(G in F.resizableRelatedOptions){C[G]=H}});if(D){this._size();this._position()}if(this.uiDialog.is(":data(ui-resizable)")){this.uiDialog.resizable("option",C)}},_setOption:function(E,F){var D,G,C=this.uiDialog;if(E==="dialogClass"){C.removeClass(this.options.dialogClass).addClass(F)}if(E==="disabled"){return}this._super(E,F);if(E==="appendTo"){this.uiDialog.appendTo(this._appendTo())}if(E==="buttons"){this._createButtons()}if(E==="closeText"){this.uiDialogTitlebarClose.button({label:""+F})}if(E==="draggable"){D=C.is(":data(ui-draggable)");if(D&&!F){C.draggable("destroy")}if(!D&&F){this._makeDraggable()}}if(E==="position"){this._position()}if(E==="resizable"){G=C.is(":data(ui-resizable)");if(G&&!F){C.resizable("destroy")}if(G&&typeof F==="string"){C.resizable("option","handles",F)}if(!G&&F!==false){this._makeResizable()}}if(E==="title"){this._title(this.uiDialogTitlebar.find(".ui-dialog-title"))}},_size:function(){var C,E,F,D=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0});if(D.minWidth>D.width){D.width=D.minWidth}C=this.uiDialog.css({height:"auto",width:D.width}).outerHeight();E=Math.max(0,D.minHeight-C);F=typeof D.maxHeight==="number"?Math.max(0,D.maxHeight-C):"none";if(D.height==="auto"){this.element.css({minHeight:E,maxHeight:F,height:"auto"})}else{this.element.height(Math.max(0,D.height-C))}if(this.uiDialog.is(":data(ui-resizable)")){this.uiDialog.resizable("option","minHeight",this._minHeight())}},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var C=h(this);return h("<div>").css({position:"absolute",width:C.outerWidth(),height:C.outerHeight()}).appendTo(C.parent()).offset(C.offset())[0]})},_unblockFrames:function(){if(this.iframeBlocks){this.iframeBlocks.remove();delete this.iframeBlocks}},_allowInteraction:function(C){if(h(C.target).closest(".ui-dialog").length){return true}return !!h(C.target).closest(".ui-datepicker").length},_createOverlay:function(){if(!this.options.modal){return}var C=true;this._delay(function(){C=false});if(!this.document.data("ui-dialog-overlays")){this._on(this.document,{focusin:function(D){if(C){return}if(!this._allowInteraction(D)){D.preventDefault();this._trackingInstances()[0]._focusTabbable()}}})}this.overlay=h("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo());this._on(this.overlay,{mousedown:"_keepFocus"});this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)},_destroyOverlay:function(){if(!this.options.modal){return}if(this.overlay){var C=this.document.data("ui-dialog-overlays")-1;if(!C){this.document.unbind("focusin").removeData("ui-dialog-overlays")}else{this.document.data("ui-dialog-overlays",C)}this.overlay.remove();this.overlay=null}}});
/*!
 * jQuery UI Slider 1.11.4
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/slider/
 */
var q=h.widget("ui.slider",h.ui.mouse,{version:"1.11.4",widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=false;this._mouseSliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this._calculateNewMax();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");this._refresh();this._setOption("disabled",this.options.disabled);this._animateOff=false},_refresh:function(){this._createRange();this._createHandles();this._setupEvents();this._refreshValue()},_createHandles:function(){var F,C,D=this.options,H=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),G="<span class='ui-slider-handle ui-state-default ui-corner-all' tabindex='0'></span>",E=[];C=(D.values&&D.values.length)||1;if(H.length>C){H.slice(C).remove();H=H.slice(0,C)}for(F=H.length;F<C;F++){E.push(G)}this.handles=H.add(h(E.join("")).appendTo(this.element));this.handle=this.handles.eq(0);this.handles.each(function(I){h(this).data("ui-slider-handle-index",I)})},_createRange:function(){var C=this.options,D="";if(C.range){if(C.range===true){if(!C.values){C.values=[this._valueMin(),this._valueMin()]}else{if(C.values.length&&C.values.length!==2){C.values=[C.values[0],C.values[0]]}else{if(h.isArray(C.values)){C.values=C.values.slice(0)}}}}if(!this.range||!this.range.length){this.range=h("<div></div>").appendTo(this.element);D="ui-slider-range ui-widget-header ui-corner-all"}else{this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""})}this.range.addClass(D+((C.range==="min"||C.range==="max")?" ui-slider-range-"+C.range:""))}else{if(this.range){this.range.remove()}this.range=null}},_setupEvents:function(){this._off(this.handles);this._on(this.handles,this._handleEvents);this._hoverable(this.handles);this._focusable(this.handles)},_destroy:function(){this.handles.remove();if(this.range){this.range.remove()}this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all");this._mouseDestroy()},_mouseCapture:function(E){var I,L,D,G,K,M,H,C,J=this,F=this.options;if(F.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();I={x:E.pageX,y:E.pageY};L=this._normValueFromMouse(I);D=this._valueMax()-this._valueMin()+1;this.handles.each(function(N){var O=Math.abs(L-J.values(N));if((D>O)||(D===O&&(N===J._lastChangedValue||J.values(N)===F.min))){D=O;G=h(this);K=N}});M=this._start(E,K);if(M===false){return false}this._mouseSliding=true;this._handleIndex=K;G.addClass("ui-state-active").focus();H=G.offset();C=!h(E.target).parents().addBack().is(".ui-slider-handle");this._clickOffset=C?{left:0,top:0}:{left:E.pageX-H.left-(G.width()/2),top:E.pageY-H.top-(G.height()/2)-(parseInt(G.css("borderTopWidth"),10)||0)-(parseInt(G.css("borderBottomWidth"),10)||0)+(parseInt(G.css("marginTop"),10)||0)};if(!this.handles.hasClass("ui-state-hover")){this._slide(E,K,L)}this._animateOff=true;return true},_mouseStart:function(){return true},_mouseDrag:function(E){var C={x:E.pageX,y:E.pageY},D=this._normValueFromMouse(C);this._slide(E,this._handleIndex,D);return false},_mouseStop:function(C){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(C,this._handleIndex);this._change(C,this._handleIndex);this._handleIndex=null;this._clickOffset=null;this._animateOff=false;return false},_detectOrientation:function(){this.orientation=(this.options.orientation==="vertical")?"vertical":"horizontal"},_normValueFromMouse:function(D){var C,G,F,E,H;if(this.orientation==="horizontal"){C=this.elementSize.width;G=D.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{C=this.elementSize.height;G=D.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}F=(G/C);if(F>1){F=1}if(F<0){F=0}if(this.orientation==="vertical"){F=1-F}E=this._valueMax()-this._valueMin();H=this._valueMin()+F*E;return this._trimAlignValue(H)},_start:function(E,D){var C={handle:this.handles[D],value:this.value()};if(this.options.values&&this.options.values.length){C.value=this.values(D);C.values=this.values()}return this._trigger("start",E,C)},_slide:function(G,F,E){var C,D,H;if(this.options.values&&this.options.values.length){C=this.values(F?0:1);if((this.options.values.length===2&&this.options.range===true)&&((F===0&&E>C)||(F===1&&E<C))){E=C}if(E!==this.values(F)){D=this.values();D[F]=E;H=this._trigger("slide",G,{handle:this.handles[F],value:E,values:D});C=this.values(F?0:1);if(H!==false){this.values(F,E)}}}else{if(E!==this.value()){H=this._trigger("slide",G,{handle:this.handles[F],value:E});if(H!==false){this.value(E)}}}},_stop:function(E,D){var C={handle:this.handles[D],value:this.value()};if(this.options.values&&this.options.values.length){C.value=this.values(D);C.values=this.values()}this._trigger("stop",E,C)},_change:function(E,D){if(!this._keySliding&&!this._mouseSliding){var C={handle:this.handles[D],value:this.value()};if(this.options.values&&this.options.values.length){C.value=this.values(D);C.values=this.values()}this._lastChangedValue=D;this._trigger("change",E,C)}},value:function(C){if(arguments.length){this.options.value=this._trimAlignValue(C);this._refreshValue();this._change(null,0);return}return this._value()},values:function(D,G){var F,C,E;if(arguments.length>1){this.options.values[D]=this._trimAlignValue(G);this._refreshValue();this._change(null,D);return}if(arguments.length){if(h.isArray(arguments[0])){F=this.options.values;C=arguments[0];for(E=0;E<F.length;E+=1){F[E]=this._trimAlignValue(C[E]);this._change(null,E)}this._refreshValue()}else{if(this.options.values&&this.options.values.length){return this._values(D)}else{return this.value()}}}else{return this._values()}},_setOption:function(D,E){var C,F=0;if(D==="range"&&this.options.range===true){if(E==="min"){this.options.value=this._values(0);this.options.values=null}else{if(E==="max"){this.options.value=this._values(this.options.values.length-1);this.options.values=null}}}if(h.isArray(this.options.values)){F=this.options.values.length}if(D==="disabled"){this.element.toggleClass("ui-state-disabled",!!E)}this._super(D,E);switch(D){case"orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();this.handles.css(E==="horizontal"?"bottom":"left","");break;case"value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case"values":this._animateOff=true;this._refreshValue();for(C=0;C<F;C+=1){this._change(null,C)}this._animateOff=false;break;case"step":case"min":case"max":this._animateOff=true;this._calculateNewMax();this._refreshValue();this._animateOff=false;break;case"range":this._animateOff=true;this._refresh();this._animateOff=false;break}},_value:function(){var C=this.options.value;C=this._trimAlignValue(C);return C},_values:function(C){var F,E,D;if(arguments.length){F=this.options.values[C];F=this._trimAlignValue(F);return F}else{if(this.options.values&&this.options.values.length){E=this.options.values.slice();for(D=0;D<E.length;D+=1){E[D]=this._trimAlignValue(E[D])}return E}else{return[]}}},_trimAlignValue:function(F){if(F<=this._valueMin()){return this._valueMin()}if(F>=this._valueMax()){return this._valueMax()}var C=(this.options.step>0)?this.options.step:1,E=(F-this._valueMin())%C,D=F-E;if(Math.abs(E)*2>=C){D+=(E>0)?C:(-C)}return parseFloat(D.toFixed(5))},_calculateNewMax:function(){var C=this.options.max,D=this._valueMin(),E=this.options.step,F=Math.floor((+(C-D).toFixed(this._precision()))/E)*E;C=F+D;this.max=parseFloat(C.toFixed(this._precision()))},_precision:function(){var C=this._precisionOf(this.options.step);if(this.options.min!==null){C=Math.max(C,this._precisionOf(this.options.min))}return C},_precisionOf:function(D){var E=D.toString(),C=E.indexOf(".");return C===-1?0:E.length-C-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshValue:function(){var H,G,K,I,L,F=this.options.range,E=this.options,J=this,D=(!this._animateOff)?E.animate:false,C={};if(this.options.values&&this.options.values.length){this.handles.each(function(M){G=(J.values(M)-J._valueMin())/(J._valueMax()-J._valueMin())*100;C[J.orientation==="horizontal"?"left":"bottom"]=G+"%";h(this).stop(1,1)[D?"animate":"css"](C,E.animate);if(J.options.range===true){if(J.orientation==="horizontal"){if(M===0){J.range.stop(1,1)[D?"animate":"css"]({left:G+"%"},E.animate)}if(M===1){J.range[D?"animate":"css"]({width:(G-H)+"%"},{queue:false,duration:E.animate})}}else{if(M===0){J.range.stop(1,1)[D?"animate":"css"]({bottom:(G)+"%"},E.animate)}if(M===1){J.range[D?"animate":"css"]({height:(G-H)+"%"},{queue:false,duration:E.animate})}}}H=G})}else{K=this.value();I=this._valueMin();L=this._valueMax();G=(L!==I)?(K-I)/(L-I)*100:0;C[this.orientation==="horizontal"?"left":"bottom"]=G+"%";this.handle.stop(1,1)[D?"animate":"css"](C,E.animate);if(F==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[D?"animate":"css"]({width:G+"%"},E.animate)}if(F==="max"&&this.orientation==="horizontal"){this.range[D?"animate":"css"]({width:(100-G)+"%"},{queue:false,duration:E.animate})}if(F==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[D?"animate":"css"]({height:G+"%"},E.animate)}if(F==="max"&&this.orientation==="vertical"){this.range[D?"animate":"css"]({height:(100-G)+"%"},{queue:false,duration:E.animate})}}},_handleEvents:{keydown:function(G){var H,E,D,F,C=h(G.target).data("ui-slider-handle-index");switch(G.keyCode){case h.ui.keyCode.HOME:case h.ui.keyCode.END:case h.ui.keyCode.PAGE_UP:case h.ui.keyCode.PAGE_DOWN:case h.ui.keyCode.UP:case h.ui.keyCode.RIGHT:case h.ui.keyCode.DOWN:case h.ui.keyCode.LEFT:G.preventDefault();if(!this._keySliding){this._keySliding=true;h(G.target).addClass("ui-state-active");H=this._start(G,C);if(H===false){return}}break}F=this.options.step;if(this.options.values&&this.options.values.length){E=D=this.values(C)}else{E=D=this.value()}switch(G.keyCode){case h.ui.keyCode.HOME:D=this._valueMin();break;case h.ui.keyCode.END:D=this._valueMax();break;case h.ui.keyCode.PAGE_UP:D=this._trimAlignValue(E+((this._valueMax()-this._valueMin())/this.numPages));break;case h.ui.keyCode.PAGE_DOWN:D=this._trimAlignValue(E-((this._valueMax()-this._valueMin())/this.numPages));break;case h.ui.keyCode.UP:case h.ui.keyCode.RIGHT:if(E===this._valueMax()){return}D=this._trimAlignValue(E+F);break;case h.ui.keyCode.DOWN:case h.ui.keyCode.LEFT:if(E===this._valueMin()){return}D=this._trimAlignValue(E-F);break}this._slide(G,C,D)},keyup:function(D){var C=h(D.target).data("ui-slider-handle-index");if(this._keySliding){this._keySliding=false;this._stop(D,C);this._change(D,C);h(D.target).removeClass("ui-state-active")}}}});
/*!
 * jQuery UI Tooltip 1.11.4
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/tooltip/
 */
var g=h.widget("ui.tooltip",{version:"1.11.4",options:{content:function(){var C=h(this).attr("title")||"";return h("<a>").text(C).html()},hide:true,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:true,tooltipClass:null,track:false,close:null,open:null},_addDescribedBy:function(D,E){var C=(D.attr("aria-describedby")||"").split(/\s+/);C.push(E);D.data("ui-tooltip-id",E).attr("aria-describedby",h.trim(C.join(" ")))},_removeDescribedBy:function(E){var F=E.data("ui-tooltip-id"),D=(E.attr("aria-describedby")||"").split(/\s+/),C=h.inArray(F,D);if(C!==-1){D.splice(C,1)}E.removeData("ui-tooltip-id");D=h.trim(D.join(" "));if(D){E.attr("aria-describedby",D)}else{E.removeAttr("aria-describedby")}},_create:function(){this._on({mouseover:"open",focusin:"open"});this.tooltips={};this.parents={};if(this.options.disabled){this._disable()}this.liveRegion=h("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body)},_setOption:function(C,E){var D=this;if(C==="disabled"){this[E?"_disable":"_enable"]();this.options[C]=E;return}this._super(C,E);if(C==="content"){h.each(this.tooltips,function(G,F){D._updateContent(F.element)})}},_disable:function(){var C=this;h.each(this.tooltips,function(F,E){var D=h.Event("blur");D.target=D.currentTarget=E.element[0];C.close(D,true)});this.element.find(this.options.items).addBack().each(function(){var D=h(this);if(D.is("[title]")){D.data("ui-tooltip-title",D.attr("title")).removeAttr("title")}})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var C=h(this);if(C.data("ui-tooltip-title")){C.attr("title",C.data("ui-tooltip-title"))}})},open:function(D){var C=this,E=h(D?D.target:this.element).closest(this.options.items);if(!E.length||E.data("ui-tooltip-id")){return}if(E.attr("title")){E.data("ui-tooltip-title",E.attr("title"))}E.data("ui-tooltip-open",true);if(D&&D.type==="mouseover"){E.parents().each(function(){var G=h(this),F;if(G.data("ui-tooltip-open")){F=h.Event("blur");F.target=F.currentTarget=this;C.close(F,true)}if(G.attr("title")){G.uniqueId();C.parents[this.id]={element:this,title:G.attr("title")};G.attr("title","")}})}this._registerCloseHandlers(D,E);this._updateContent(E,D)},_updateContent:function(H,G){var F,C=this.options.content,E=this,D=G?G.type:null;if(typeof C==="string"){return this._open(G,H,C)}F=C.call(H[0],function(I){E._delay(function(){if(!H.data("ui-tooltip-open")){return}if(G){G.type=D}this._open(G,H,I)})});if(F){this._open(G,H,F)}},_open:function(D,G,H){var C,K,J,E,I=h.extend({},this.options.position);if(!H){return}C=this._find(G);if(C){C.tooltip.find(".ui-tooltip-content").html(H);return}if(G.is("[title]")){if(D&&D.type==="mouseover"){G.attr("title","")}else{G.removeAttr("title")}}C=this._tooltip(G);K=C.tooltip;this._addDescribedBy(G,K.attr("id"));K.find(".ui-tooltip-content").html(H);this.liveRegion.children().hide();if(H.clone){E=H.clone();E.removeAttr("id").find("[id]").removeAttr("id")}else{E=H}h("<div>").html(E).appendTo(this.liveRegion);function F(L){I.of=L;if(K.is(":hidden")){return}K.position(I)}if(this.options.track&&D&&/^mouse/.test(D.type)){this._on(this.document,{mousemove:F});F(D)}else{K.position(h.extend({of:G},this.options.position))}K.hide();this._show(K,this.options.show);if(this.options.show&&this.options.show.delay){J=this.delayedShow=setInterval(function(){if(K.is(":visible")){F(I.of);clearInterval(J)}},h.fx.interval)}this._trigger("open",D,{tooltip:K})},_registerCloseHandlers:function(D,E){var C={keyup:function(F){if(F.keyCode===h.ui.keyCode.ESCAPE){var G=h.Event(F);G.currentTarget=E[0];this.close(G,true)}}};if(E[0]!==this.element[0]){C.remove=function(){this._removeTooltip(this._find(E).tooltip)}}if(!D||D.type==="mouseover"){C.mouseleave="close"}if(!D||D.type==="focusin"){C.focusout="close"}this._on(true,E,C)},close:function(D){var F,C=this,G=h(D?D.currentTarget:this.element),E=this._find(G);if(!E){G.removeData("ui-tooltip-open");return}F=E.tooltip;if(E.closing){return}clearInterval(this.delayedShow);if(G.data("ui-tooltip-title")&&!G.attr("title")){G.attr("title",G.data("ui-tooltip-title"))}this._removeDescribedBy(G);E.hiding=true;F.stop(true);this._hide(F,this.options.hide,function(){C._removeTooltip(h(this))});G.removeData("ui-tooltip-open");this._off(G,"mouseleave focusout keyup");if(G[0]!==this.element[0]){this._off(G,"remove")}this._off(this.document,"mousemove");if(D&&D.type==="mouseleave"){h.each(this.parents,function(I,H){h(H.element).attr("title",H.title);delete C.parents[I]})}E.closing=true;this._trigger("close",D,{tooltip:F});if(!E.hiding){E.closing=false}},_tooltip:function(C){var D=h("<div>").attr("role","tooltip").addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||"")),E=D.uniqueId().attr("id");h("<div>").addClass("ui-tooltip-content").appendTo(D);D.appendTo(this.document[0].body);return this.tooltips[E]={element:C,tooltip:D}},_find:function(C){var D=C.data("ui-tooltip-id");return D?this.tooltips[D]:null},_removeTooltip:function(C){C.remove();delete this.tooltips[C.attr("id")]},_destroy:function(){var C=this;h.each(this.tooltips,function(G,F){var E=h.Event("blur"),D=F.element;E.target=E.currentTarget=D[0];C.close(E,true);h("#"+G).remove();if(D.data("ui-tooltip-title")){if(!D.attr("title")){D.attr("title",D.data("ui-tooltip-title"))}D.removeData("ui-tooltip-title")}});this.liveRegion.remove()}})}));
/*!
 * jQuery Validation Plugin v1.13.0
 *
 * http://jqueryvalidation.org/
 *
 * Copyright (c) 2014 Jörn Zaefferer
 * Released under the MIT license
 * 
 * *** UI Custom modifications made at two places ***
 * *** Replaced errorClass with errorMessageContainerClass ***
 * 
 */
(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{a(jQuery)}}(function(d){d.extend(d.fn,{validate:function(e){if(!this.length){if(e&&e.debug&&window.console){console.warn("Nothing selected, can't validate, returning nothing.")}return}var f=d.data(this[0],"validator");if(f){return f}this.attr("novalidate","novalidate");f=new d.validator(e,this[0]);d.data(this[0],"validator",f);if(f.settings.onsubmit){this.validateDelegate(":submit","click",function(g){if(f.settings.submitHandler){f.submitButton=g.target}if(d(g.target).hasClass("cancel")){f.cancelSubmit=true}if(d(g.target).attr("formnovalidate")!==undefined){f.cancelSubmit=true}});this.submit(function(g){if(f.settings.debug){g.preventDefault()}function h(){var i;if(f.settings.submitHandler){if(f.submitButton){i=d("<input type='hidden'/>").attr("name",f.submitButton.name).val(d(f.submitButton).val()).appendTo(f.currentForm)}f.settings.submitHandler.call(f,f.currentForm,g);if(f.submitButton){i.remove()}return false}return true}if(f.cancelSubmit){f.cancelSubmit=false;return h()}if(f.form()){if(f.pendingRequest){f.formSubmitted=true;return false}return h()}else{f.focusInvalid();return false}})}return f},valid:function(){var f,e;if(d(this[0]).is("form")){f=this.validate().form()}else{f=true;e=d(this[0].form).validate();this.each(function(){f=e.element(this)&&f})}return f},removeAttrs:function(g){var e={},f=this;d.each(g.split(/\s/),function(h,i){e[i]=f.attr(i);f.removeAttr(i)});return e},rules:function(h,e){var j=this[0],g,l,m,i,f,k;if(h){g=d.data(j.form,"validator").settings;l=g.rules;m=d.validator.staticRules(j);switch(h){case"add":d.extend(m,d.validator.normalizeRule(e));delete m.messages;l[j.name]=m;if(e.messages){g.messages[j.name]=d.extend(g.messages[j.name],e.messages)}break;case"remove":if(!e){delete l[j.name];return m}k={};d.each(e.split(/\s/),function(n,o){k[o]=m[o];delete m[o];if(o==="required"){d(j).removeAttr("aria-required")}});return k}}i=d.validator.normalizeRules(d.extend({},d.validator.classRules(j),d.validator.attributeRules(j),d.validator.dataRules(j),d.validator.staticRules(j)),j);if(i.required){f=i.required;delete i.required;i=d.extend({required:f},i);d(j).attr("aria-required","true")}if(i.remote){f=i.remote;delete i.remote;i=d.extend(i,{remote:f})}return i}});d.extend(d.expr[":"],{blank:function(e){return !d.trim(""+d(e).val())},filled:function(e){return !!d.trim(""+d(e).val())},unchecked:function(e){return !d(e).prop("checked")}});d.validator=function(e,f){this.settings=d.extend(true,{},d.validator.defaults,e);this.currentForm=f;this.init()};d.validator.format=function(e,f){if(arguments.length===1){return function(){var g=d.makeArray(arguments);g.unshift(e);return d.validator.format.apply(this,g)}}if(arguments.length>2&&f.constructor!==Array){f=d.makeArray(arguments).slice(1)}if(f.constructor!==Array){f=[f]}d.each(f,function(g,h){e=e.replace(new RegExp("\\{"+g+"\\}","g"),function(){return h})});return e};d.extend(d.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:true,errorContainer:d([]),errorLabelContainer:d([]),onsubmit:true,ignore:":hidden",ignoreTitle:false,onfocusin:function(e){this.lastActive=e;if(this.settings.focusCleanup&&!this.blockFocusCleanup){if(this.settings.unhighlight){this.settings.unhighlight.call(this,e,this.settings.errorClass,this.settings.validClass)}this.hideThese(this.errorsFor(e))}},onfocusout:function(e){if(!this.checkable(e)&&(e.name in this.submitted||!this.optional(e))){this.element(e)}},onkeyup:function(e,f){if(f.which===9&&this.elementValue(e)===""){return}else{if(e.name in this.submitted||e===this.lastElement){this.element(e)}}},onclick:function(e){if(e.name in this.submitted){this.element(e)}else{if(e.parentNode.name in this.submitted){this.element(e.parentNode)}}},highlight:function(g,e,f){if(g.type==="radio"){this.findByName(g.name).addClass(e).removeClass(f)}else{d(g).addClass(e).removeClass(f)}},unhighlight:function(g,e,f){if(g.type==="radio"){this.findByName(g.name).removeClass(e).addClass(f)}else{d(g).removeClass(e).addClass(f)}}},setDefaults:function(e){d.extend(d.validator.defaults,e)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date ( ISO ).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:d.validator.format("Please enter no more than {0} characters."),minlength:d.validator.format("Please enter at least {0} characters."),rangelength:d.validator.format("Please enter a value between {0} and {1} characters long."),range:d.validator.format("Please enter a value between {0} and {1}."),max:d.validator.format("Please enter a value less than or equal to {0}."),min:d.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){this.labelContainer=d(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||d(this.currentForm);this.containers=d(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var e=(this.groups={}),g;d.each(this.settings.groups,function(h,i){if(typeof i==="string"){i=i.split(/\s/)}d.each(i,function(k,j){e[j]=h})});g=this.settings.rules;d.each(g,function(h,i){g[h]=d.validator.normalizeRule(i)});function f(k){var i=d.data(this[0].form,"validator"),h="on"+k.type.replace(/^validate/,""),j=i.settings;if(j[h]&&!this.is(j.ignore)){j[h].call(i,this[0],k)}}d(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox']","focusin focusout keyup",f).validateDelegate("select, option, [type='radio'], [type='checkbox']","click",f);if(this.settings.invalidHandler){d(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)}d(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){this.checkForm();d.extend(this.submitted,this.errorMap);this.invalid=d.extend({},this.errorMap);if(!this.valid()){d(this.currentForm).triggerHandler("invalid-form",[this])}this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var e=0,f=(this.currentElements=this.elements());f[e];e++){this.check(f[e])}return this.valid()},element:function(g){var h=this.clean(g),f=this.validationTargetFor(h),e=true;this.lastElement=f;if(f===undefined){delete this.invalid[h.name]}else{this.prepareElement(f);this.currentElements=d(f);e=this.check(f)!==false;if(e){delete this.invalid[f.name]}else{this.invalid[f.name]=true}}d(g).attr("aria-invalid",!e);if(!this.numberOfInvalids()){this.toHide=this.toHide.add(this.containers)}this.showErrors();return e},showErrors:function(f){if(f){d.extend(this.errorMap,f);this.errorList=[];for(var e in f){this.errorList.push({message:f[e],element:this.findByName(e)[0]})}this.successList=d.grep(this.successList,function(g){return !(g.name in f)})}if(this.settings.showErrors){this.settings.showErrors.call(this,this.errorMap,this.errorList)}else{this.defaultShowErrors()}},resetForm:function(){if(d.fn.resetForm){d(this.currentForm).resetForm()}this.submitted={};this.lastElement=null;this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass).removeData("previousValue").removeAttr("aria-invalid")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(g){var f=0,e;for(e in g){f++}return f},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(e){e.not(this.containers).text("");this.addWrapper(e).hide()},valid:function(){return this.size()===0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid){try{d(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(f){}}},findLastActive:function(){var e=this.lastActive;return e&&d.grep(this.errorList,function(f){return f.element.name===e.name}).length===1&&e},elements:function(){var f=this,e={};return d(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){if(!this.name&&f.settings.debug&&window.console){console.error("%o has no name assigned",this)}if(this.name in e||!f.objectLength(d(this).rules())){return false}e[this.name]=true;return true})},clean:function(e){return d(e)[0]},errors:function(){var e=this.settings.errorMessageContainerClass.split(" ").join(".");return d(this.settings.errorElement+"."+e,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=d([]);this.toHide=d([]);this.currentElements=d([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(e){this.reset();this.toHide=this.errorsFor(e)},elementValue:function(f){var h,e=d(f),g=f.type;if(g==="radio"||g==="checkbox"){return d("input[name='"+f.name+"']:checked").val()}else{if(g==="number"&&typeof f.validity!=="undefined"){return f.validity.badInput?false:e.val()}}h=e.val();if(typeof h==="string"){return h.replace(/\r/g,"")}return h},check:function(h){h=this.validationTargetFor(this.clean(h));var l=d(h).rules(),j=d.map(l,function(o,e){return e}).length,m=false,g=this.elementValue(h),n,f,k;for(f in l){k={method:f,parameters:l[f]};try{n=d.validator.methods[f].call(this,g,h,k.parameters);if(n==="dependency-mismatch"&&j===1){m=true;continue}m=false;if(n==="pending"){this.toHide=this.toHide.not(this.errorsFor(h));return}if(!n){this.formatAndAdd(h,k);return false}}catch(i){if(this.settings.debug&&window.console){console.log("Exception occurred when checking element "+h.id+", check the '"+k.method+"' method.",i)}throw i}}if(m){return}if(this.objectLength(l)){this.successList.push(h)}return true},customDataMessage:function(e,f){return d(e).data("msg"+f.charAt(0).toUpperCase()+f.substring(1).toLowerCase())||d(e).data("msg")},customMessage:function(f,g){var e=this.settings.messages[f];return e&&(e.constructor===String?e:e[g])},findDefined:function(){for(var e=0;e<arguments.length;e++){if(arguments[e]!==undefined){return arguments[e]}}return undefined},defaultMessage:function(e,f){return this.findDefined(this.customMessage(e.name,f),this.customDataMessage(e,f),!this.settings.ignoreTitle&&e.title||undefined,d.validator.messages[f],"<strong>Warning: No message defined for "+e.name+"</strong>")},formatAndAdd:function(f,h){var g=this.defaultMessage(f,h.method),e=/\$?\{(\d+)\}/g;if(typeof g==="function"){g=g.call(this,h.parameters,f)}else{if(e.test(g)){g=d.validator.format(g.replace(e,"{$1}"),h.parameters)}}this.errorList.push({message:g,element:f,method:h.method});this.errorMap[f.name]=g;this.submitted[f.name]=g},addWrapper:function(e){if(this.settings.wrapper){e=e.add(e.parent(this.settings.wrapper))}return e},defaultShowErrors:function(){var f,g,e;for(f=0;this.errorList[f];f++){e=this.errorList[f];if(this.settings.highlight){this.settings.highlight.call(this,e.element,this.settings.errorClass,this.settings.validClass)}this.showLabel(e.element,e.message)}if(this.errorList.length){this.toShow=this.toShow.add(this.containers)}if(this.settings.success){for(f=0;this.successList[f];f++){this.showLabel(this.successList[f])}}if(this.settings.unhighlight){for(f=0,g=this.validElements();g[f];f++){this.settings.unhighlight.call(this,g[f],this.settings.errorClass,this.settings.validClass)}}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return d(this.errorList).map(function(){return this.element})},showLabel:function(i,j){var f,l,h,g=this.errorsFor(i),e=this.idOrName(i),k=d(i).attr("aria-describedby");if(g.length){g.removeClass(this.settings.validClass).addClass(this.settings.errorClass);g.html(j)}else{g=d("<"+this.settings.errorElement+">").attr("id",e+"-error").addClass(this.settings.errorMessageContainerClass).html(j||"");f=g;if(this.settings.wrapper){f=g.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()}if(this.labelContainer.length){this.labelContainer.append(f)}else{if(this.settings.errorPlacement){this.settings.errorPlacement(f,d(i))}else{f.insertAfter(i)}}if(g.is("label")){g.attr("for",e)}else{if(g.parents("label[for='"+e+"']").length===0){h=g.attr("id");if(!k){k=h}else{if(!k.match(new RegExp("\b"+h+"\b"))){k+=" "+h}}d(i).attr("aria-describedby",k);l=this.groups[i.name];if(l){d.each(this.groups,function(n,m){if(m===l){d("[name='"+n+"']",this.currentForm).attr("aria-describedby",g.attr("id"))}})}}}}if(!j&&this.settings.success){g.text("");if(typeof this.settings.success==="string"){g.addClass(this.settings.success)}else{this.settings.success(g,i)}}this.toShow=this.toShow.add(g)},errorsFor:function(g){var f=this.idOrName(g),h=d(g).attr("aria-describedby"),e="label[for='"+f+"'], label[for='"+f+"'] *";if(h){e=e+", #"+h.replace(/\s+/g,", #")}return this.errors().filter(e)},idOrName:function(e){return this.groups[e.name]||(this.checkable(e)?e.name:e.id||e.name)},validationTargetFor:function(e){if(this.checkable(e)){e=this.findByName(e.name).not(this.settings.ignore)[0]}return e},checkable:function(e){return(/radio|checkbox/i).test(e.type)},findByName:function(e){return d(this.currentForm).find("[name='"+e+"']")},getLength:function(f,e){switch(e.nodeName.toLowerCase()){case"select":return d("option:selected",e).length;case"input":if(this.checkable(e)){return this.findByName(e.name).filter(":checked").length}}return f.length},depend:function(f,e){return this.dependTypes[typeof f]?this.dependTypes[typeof f](f,e):true},dependTypes:{"boolean":function(e){return e},string:function(f,e){return !!d(f,e.form).length},"function":function(f,e){return f(e)}},optional:function(e){var f=this.elementValue(e);return !d.validator.methods.required.call(this,f,e)&&"dependency-mismatch"},startRequest:function(e){if(!this.pending[e.name]){this.pendingRequest++;this.pending[e.name]=true}},stopRequest:function(e,f){this.pendingRequest--;if(this.pendingRequest<0){this.pendingRequest=0}delete this.pending[e.name];if(f&&this.pendingRequest===0&&this.formSubmitted&&this.form()){d(this.currentForm).submit();this.formSubmitted=false}else{if(!f&&this.pendingRequest===0&&this.formSubmitted){d(this.currentForm).triggerHandler("invalid-form",[this]);this.formSubmitted=false}}},previousValue:function(e){return d.data(e,"previousValue")||d.data(e,"previousValue",{old:null,valid:true,message:this.defaultMessage(e,"remote")})}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},number:{number:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(e,f){if(e.constructor===String){this.classRuleSettings[e]=f}else{d.extend(this.classRuleSettings,e)}},classRules:function(f){var g={},e=d(f).attr("class");if(e){d.each(e.split(" "),function(){if(this in d.validator.classRuleSettings){d.extend(g,d.validator.classRuleSettings[this])}})}return g},attributeRules:function(f){var i={},e=d(f),g=f.getAttribute("type"),j,h;for(j in d.validator.methods){if(j==="required"){h=f.getAttribute(j);if(h===""){h=true}h=!!h}else{h=e.attr(j)}if(/min|max/.test(j)&&(g===null||/number|range|text/.test(g))){h=Number(h)}if(h||h===0){i[j]=h}else{if(g===j&&g!=="range"){i[j]=true}}}if(i.maxlength&&/-1|2147483647|524288/.test(i.maxlength)){delete i.maxlength}return i},dataRules:function(f){var i,g,h={},e=d(f);for(i in d.validator.methods){g=e.data("rule"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase());if(g!==undefined){h[i]=g}}return h},staticRules:function(f){var g={},e=d.data(f.form,"validator");if(e.settings.rules){g=d.validator.normalizeRule(e.settings.rules[f.name])||{}}return g},normalizeRules:function(f,e){d.each(f,function(i,h){if(h===false){delete f[i];return}if(h.param||h.depends){var g=true;switch(typeof h.depends){case"string":g=!!d(h.depends,e.form).length;break;case"function":g=h.depends.call(e,e);break}if(g){f[i]=h.param!==undefined?h.param:true}else{delete f[i]}}});d.each(f,function(g,h){f[g]=d.isFunction(h)?h(e):h});d.each(["minlength","maxlength"],function(){if(f[this]){f[this]=Number(f[this])}});d.each(["rangelength","range"],function(){var g;if(f[this]){if(d.isArray(f[this])){f[this]=[Number(f[this][0]),Number(f[this][1])]}else{if(typeof f[this]==="string"){g=f[this].replace(/[\[\]]/g,"").split(/[\s,]+/);f[this]=[Number(g[0]),Number(g[1])]}}}});if(d.validator.autoCreateRanges){if(f.min&&f.max){f.range=[f.min,f.max];delete f.min;delete f.max}if(f.minlength&&f.maxlength){f.rangelength=[f.minlength,f.maxlength];delete f.minlength;delete f.maxlength}}return f},normalizeRule:function(f){if(typeof f==="string"){var e={};d.each(f.split(/\s/),function(){e[this]=true});f=e}return f},addMethod:function(e,g,f){d.validator.methods[e]=g;d.validator.messages[e]=f!==undefined?f:d.validator.messages[e];if(g.length<3){d.validator.addClassRules(e,d.validator.normalizeRule(e))}},methods:{required:function(f,e,h){if(!this.depend(h,e)){return"dependency-mismatch"}if(e.nodeName.toLowerCase()==="select"){var g=d(e).val();return g&&g.length>0}if(this.checkable(e)){return this.getLength(f,e)>0}return d.trim(f).length>0},email:function(f,e){return this.optional(e)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(f)},url:function(f,e){return this.optional(e)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(f)},date:function(f,e){return this.optional(e)||!/Invalid|NaN/.test(new Date(f).toString())},dateISO:function(f,e){return this.optional(e)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(f)},number:function(f,e){return this.optional(e)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(f)},digits:function(f,e){return this.optional(e)||/^\d+$/.test(f)},creditcard:function(i,f){if(this.optional(f)){return"dependency-mismatch"}if(/[^0-9 \-]+/.test(i)){return false}var j=0,h=0,e=false,k,g;i=i.replace(/\D/g,"");if(i.length<13||i.length>19){return false}for(k=i.length-1;k>=0;k--){g=i.charAt(k);h=parseInt(g,10);if(e){if((h*=2)>9){h-=9}}j+=h;e=!e}return(j%10)===0},minlength:function(g,e,h){var f=d.isArray(g)?g.length:this.getLength(d.trim(g),e);return this.optional(e)||f>=h},maxlength:function(g,e,h){var f=d.isArray(g)?g.length:this.getLength(d.trim(g),e);return this.optional(e)||f<=h},rangelength:function(g,e,h){var f=d.isArray(g)?g.length:this.getLength(d.trim(g),e);return this.optional(e)||(f>=h[0]&&f<=h[1])},min:function(f,e,g){return this.optional(e)||f>=g},max:function(f,e,g){return this.optional(e)||f<=g},range:function(f,e,g){return this.optional(e)||(f>=g[0]&&f<=g[1])},equalTo:function(f,e,h){var g=d(h);if(this.settings.onfocusout){g.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){d(e).valid()})}return f===g.val()},remote:function(i,f,j){if(this.optional(f)){return"dependency-mismatch"}var g=this.previousValue(f),e,h;if(!this.settings.messages[f.name]){this.settings.messages[f.name]={}}g.originalMessage=this.settings.messages[f.name].remote;this.settings.messages[f.name].remote=g.message;j=typeof j==="string"&&{url:j}||j;if(g.old===i){return g.valid}g.old=i;e=this;this.startRequest(f);h={};h[f.name]=i;d.ajax(d.extend(true,{url:j,mode:"abort",port:"validate"+f.name,dataType:"json",data:h,context:e.currentForm,success:function(l){var n=l===true||l==="true",o,m,k;e.settings.messages[f.name].remote=g.originalMessage;if(n){k=e.formSubmitted;e.prepareElement(f);e.formSubmitted=k;e.successList.push(f);delete e.invalid[f.name];e.showErrors()}else{o={};m=l||e.defaultMessage(f,"remote");o[f.name]=g.message=d.isFunction(m)?m(i):m;e.invalid[f.name]=true;e.showErrors(o)}g.valid=n;e.stopRequest(f,n)}},j));return"pending"}}});d.format=function a(){throw"$.format has been deprecated. Please use $.validator.format instead."};var b={},c;if(d.ajaxPrefilter){d.ajaxPrefilter(function(g,f,h){var e=g.port;if(g.mode==="abort"){if(b[e]){b[e].abort()}b[e]=h}})}else{c=d.ajax;d.ajax=function(f){var g=("mode" in f?f:d.ajaxSettings).mode,e=("port" in f?f:d.ajaxSettings).port;if(g==="abort"){if(b[e]){b[e].abort()}b[e]=c.apply(this,arguments);return b[e]}return c.apply(this,arguments)}}d.extend(d.fn,{validateDelegate:function(g,f,e){return this.bind(f,function(h){var i=d(h.target);if(i.is(g)){return e.apply(i,arguments)}})}})}));
/*!
 * jQuery Validation Plugin 1.11.1
 *
 * http://bassistance.de/jquery-plugins/jquery-plugin-validation/
 * http://docs.jquery.com/Plugins/Validation
 *
 * Copyright 2013 Jörn Zaefferer
 * Released under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 * 
 * 
 * 
 *  ****** Comment added on 08/09/2013 - *****
 *  ***** Edited by SHILPA MATHADEVARU for TSW PROJECT *****
 *  ***** Added custom validation methods *****
 *  
 * 
 * 
 */
(function(){function a(b){return b.replace(/<.[^<>]*?>/g," ").replace(/&nbsp;|&#160;/gi," ").replace(/[.(),;:!?%#$'"_+=\/\-]*/g,"")}jQuery.validator.addMethod("maxWords",function(c,b,d){return this.optional(b)||a(c).match(/\b\w+\b/g).length<=d},jQuery.validator.format("Please enter {0} words or less."));jQuery.validator.addMethod("minWords",function(c,b,d){return this.optional(b)||a(c).match(/\b\w+\b/g).length>=d},jQuery.validator.format("Please enter at least {0} words."));jQuery.validator.addMethod("rangeWords",function(e,b,f){var d=a(e);var c=/\b\w+\b/g;return this.optional(b)||d.match(c).length>=f[0]&&d.match(c).length<=f[1]},jQuery.validator.format("Please enter between {0} and {1} words."))}());jQuery.validator.addMethod("letterswithbasicpunc",function(b,a){return this.optional(a)||/^[a-z\-.,()'"\s]+$/i.test(b)},"Letters or punctuation only please");jQuery.validator.addMethod("alphanumeric",function(b,a){return this.optional(a)||/^\w+$/i.test(b)},"Please enter letters and numbers only.");jQuery.validator.addMethod("lettersonly",function(b,a){return this.optional(a)||/^[a-z ]+$/i.test(b)},"Please enter letters only.");jQuery.validator.addMethod("alnumpunct",function(b,a){return this.optional(a)||/^([a-zA-Z0-9$&/₵ -]+$)/.test(b)},"Please enter only letters, numbers, and punctuation.");jQuery.validator.addMethod("nowhitespace",function(b,a){return this.optional(a)||/^\S+$/i.test(b)},"No white space please");jQuery.validator.addMethod("ziprange",function(b,a){return this.optional(a)||/^90[2-5]\d\{2\}-\d{4}$/.test(b)},"Your ZIP-code must be in the range 902xx-xxxx to 905-xx-xxxx");jQuery.validator.addMethod("zipcodeUS",function(b,a){return this.optional(a)||/\d{5}-\d{4}$|^\d{5}$/.test(b)},"Please enter a valid ZIP code.");jQuery.validator.addMethod("integer",function(b,a){return this.optional(a)||/^-?\d+$/.test(b)},"A positive or negative non-decimal number please");jQuery.validator.addMethod("currency",function(b,a){return this.optional(a)||/^([0-9])*(\.[0-9]{1,2})?$/.test(b)},"Please enter a valid currency.");jQuery.validator.addMethod("wholenumber",function(b,a){return this.optional(a)||/^ *[0-9]+ *$/.test(b)},"Please enter a number between 0 and 9.");jQuery.validator.addMethod("checkboxes",function(b,a){return $(".checkboxes[name="+$(a).attr("name")+"]:checked").length>0},"checkbox");jQuery.validator.addMethod("ssn-valid",function(b,a){return this.optional(a)||/^\d{3}-\d{2}-\d{4}$/.test(b)},"Enter a valid 9-digit SSN.");jQuery.validator.addMethod("psc-phone-number",function(b,a){return $(".primary-phone-number",".emergency-contact").val()!=$(".secondary-phone-number",".emergency-contact").val()},"Primary and secondary phone number cannot be the same.");jQuery.validator.addMethod("cox-pin",function(d,b){var c=new RegExp("^(0123|1234|2345|3456|4567|5678|6789|3210|4321|5432|6543|7654|8765|9876|0000|1111|2222|3333|4444|5555|6666|7777|8888|9999)$");var a=c.test($(".cox-pin").val());return !a},"Sequential and same number not allowed.");jQuery.validator.addMethod("psc-phone-number",function(b,a){return $(".primary-phone-number",".emergency-contact").val()!=$(".secondary-phone-number",".emergency-contact").val()},"Primary and secondary phone number cannot be the same.");jQuery.validator.addMethod("cox-pin",function(d,b){var c=new RegExp("^(0123|1234|2345|3456|4567|5678|6789|3210|4321|5432|6543|7654|8765|9876|0000|1111|2222|3333|4444|5555|6666|7777|8888|9999)$");var a=c.test($(".cox-pin").val());return !a},"Sequential and same number not allowed.");jQuery.validator.addMethod("vinUS",function(o){if(o.length!==17){return false}var h,a,l,j,b,k;var c=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y","Z"];var m=[1,2,3,4,5,6,7,8,1,2,3,4,5,7,9,2,3,4,5,6,7,8,9];var g=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2];var e=0;for(h=0;h<17;h++){j=g[h];l=o.slice(h,h+1);if(h===8){k=l}if(!isNaN(l)){l*=j}else{for(a=0;a<c.length;a++){if(l.toUpperCase()===c[a]){l=m[a];l*=j;if(isNaN(k)&&a===8){k=c[a]}break}}}e+=l}b=e%11;if(b===10){b="X"}if(b===k){return true}return false},"The specified vehicle identification number (VIN) is invalid.");jQuery.validator.addMethod("dateITA",function(e,c){var a=false;var g=/^\d{1,2}\/\d{1,2}\/\d{4}$/;if(g.test(e)){var i=e.split("/");var d=parseInt(i[0],10);var b=parseInt(i[1],10);var f=parseInt(i[2],10);var h=new Date(f,b-1,d);if((h.getFullYear()===f)&&(h.getMonth()===b-1)&&(h.getDate()===d)){a=true}else{a=false}}else{a=false}return this.optional(c)||a},"Please enter a correct date");jQuery.validator.addMethod("iban",function(q,j){if(this.optional(j)){return true}if(!(/^([a-zA-Z0-9]{4} ){2,8}[a-zA-Z0-9]{1,4}|[a-zA-Z0-9]{12,34}$/.test(q))){return false}var g=q.replace(/ /g,"").toUpperCase();var c=g.substring(0,2);var a={AL:"\\d{8}[\\dA-Z]{16}",AD:"\\d{8}[\\dA-Z]{12}",AT:"\\d{16}",AZ:"[\\dA-Z]{4}\\d{20}",BE:"\\d{12}",BH:"[A-Z]{4}[\\dA-Z]{14}",BA:"\\d{16}",BR:"\\d{23}[A-Z][\\dA-Z]",BG:"[A-Z]{4}\\d{6}[\\dA-Z]{8}",CR:"\\d{17}",HR:"\\d{17}",CY:"\\d{8}[\\dA-Z]{16}",CZ:"\\d{20}",DK:"\\d{14}",DO:"[A-Z]{4}\\d{20}",EE:"\\d{16}",FO:"\\d{14}",FI:"\\d{14}",FR:"\\d{10}[\\dA-Z]{11}\\d{2}",GE:"[\\dA-Z]{2}\\d{16}",DE:"\\d{18}",GI:"[A-Z]{4}[\\dA-Z]{15}",GR:"\\d{7}[\\dA-Z]{16}",GL:"\\d{14}",GT:"[\\dA-Z]{4}[\\dA-Z]{20}",HU:"\\d{24}",IS:"\\d{22}",IE:"[\\dA-Z]{4}\\d{14}",IL:"\\d{19}",IT:"[A-Z]\\d{10}[\\dA-Z]{12}",KZ:"\\d{3}[\\dA-Z]{13}",KW:"[A-Z]{4}[\\dA-Z]{22}",LV:"[A-Z]{4}[\\dA-Z]{13}",LB:"\\d{4}[\\dA-Z]{20}",LI:"\\d{5}[\\dA-Z]{12}",LT:"\\d{16}",LU:"\\d{3}[\\dA-Z]{13}",MK:"\\d{3}[\\dA-Z]{10}\\d{2}",MT:"[A-Z]{4}\\d{5}[\\dA-Z]{18}",MR:"\\d{23}",MU:"[A-Z]{4}\\d{19}[A-Z]{3}",MC:"\\d{10}[\\dA-Z]{11}\\d{2}",MD:"[\\dA-Z]{2}\\d{18}",ME:"\\d{18}",NL:"[A-Z]{4}\\d{10}",NO:"\\d{11}",PK:"[\\dA-Z]{4}\\d{16}",PS:"[\\dA-Z]{4}\\d{21}",PL:"\\d{24}",PT:"\\d{21}",RO:"[A-Z]{4}[\\dA-Z]{16}",SM:"[A-Z]\\d{10}[\\dA-Z]{12}",SA:"\\d{2}[\\dA-Z]{18}",RS:"\\d{18}",SK:"\\d{20}",SI:"\\d{15}",ES:"\\d{20}",SE:"\\d{20}",CH:"\\d{5}[\\dA-Z]{12}",TN:"\\d{20}",TR:"\\d{5}[\\dA-Z]{17}",AE:"\\d{3}\\d{16}",GB:"[A-Z]{4}\\d{14}",VG:"[\\dA-Z]{4}\\d{16}"};var m=a[c];if(typeof m!=="undefined"){var k=new RegExp("^[A-Z]{2}\\d{2}"+m+"$","");if(!(k.test(g))){return false}}var e=g.substring(4,g.length)+g.substring(0,4);var f="";var l=true;var d;for(var h=0;h<e.length;h++){d=e.charAt(h);if(d!=="0"){l=false}if(!l){f+="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(d)}}var r="";var o="";for(var b=0;b<f.length;b++){var n=f.charAt(b);o=""+r+""+n;r=o%97}return r===1},"Please specify a valid IBAN");jQuery.validator.addMethod("dateNL",function(b,a){return this.optional(a)||/^(0?[1-9]|[12]\d|3[01])[\.\/\-](0?[1-9]|1[012])[\.\/\-]([12]\d)?(\d\d)$/.test(b)},"Please enter a correct date");jQuery.validator.addMethod("phoneNL",function(b,a){return this.optional(a)||/^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)[1-9]((\s|\s?\-\s?)?[0-9]){8}$/.test(b)},"Please specify a valid phone number.");jQuery.validator.addMethod("mobileNL",function(b,a){return this.optional(a)||/^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)6((\s|\s?\-\s?)?[0-9]){8}$/.test(b)},"Please specify a valid mobile number");jQuery.validator.addMethod("postalcodeNL",function(b,a){return this.optional(a)||/^[1-9][0-9]{3}\s?[a-zA-Z]{2}$/.test(b)},"Please specify a valid postal code");jQuery.validator.addMethod("phone10",function(b,a){return this.optional(a)||/^(?:(?:\+?1\s*(?:[.-]\s*)?)?(?:\(\s*([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9])\s*\)|([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9]))\s*(?:[.-]\s*)?)?([2-9]1[02-9]|[2-9][02-9]1|[2-9][02-9]{2})\s*(?:[.-]\s*)?([0-9]{4})(?:\s*(?:#|x\.?|ext\.?|extension)\s*(\d+))?$/.test(b)},"Enter a valid 10-digit phone number");jQuery.validator.addMethod("emaildot",function(b,a){return this.optional(a)||/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(b)},"Please enter a valid email address.");jQuery.validator.addMethod("bankaccountNL",function(f,c){if(this.optional(c)){return true}if(!(/^[0-9]{9}|([0-9]{2} ){3}[0-9]{3}$/.test(f))){return false}var e=f.replace(/ /g,"");var d=0;var a=e.length;for(var h=0;h<a;h++){var b=a-h;var g=e.substring(h,h+1);d=d+b*g}return d%11===0},"Please specify a valid bank account number");jQuery.validator.addMethod("giroaccountNL",function(b,a){return this.optional(a)||/^[0-9]{1,7}$/.test(b)},"Please specify a valid giro account number");jQuery.validator.addMethod("bankorgiroaccountNL",function(b,a){return this.optional(a)||($.validator.methods.bankaccountNL.call(this,b,a))||($.validator.methods.giroaccountNL.call(this,b,a))},"Please specify a valid bank or giro account number");jQuery.validator.addMethod("time",function(b,a){return this.optional(a)||/^([01]\d|2[0-3])(:[0-5]\d){1,2}$/.test(b)},"Please enter a valid time, between 00:00 and 23:59");jQuery.validator.addMethod("time12h",function(b,a){return this.optional(a)||/^((0?[1-9]|1[012])(:[0-5]\d){1,2}(\ ?[AP]M))$/i.test(b)},"Please enter a valid time in 12-hour am/pm format");jQuery.validator.addMethod("phoneUS",function(a,b){a=a.replace(/\s+/g,"");return this.optional(b)||a.length>9&&a.match(/^(\+?1-?)?(\([2-9]\d{2}\)|[2-9]\d{2})-?[2-9]\d{2}-?\d{4}$/)},"Please enter a valid phone number");jQuery.validator.addMethod("phoneUK",function(a,b){a=a.replace(/\(|\)|\s+|-/g,"");return this.optional(b)||a.length>9&&a.match(/^(?:(?:(?:00\s?|\+)44\s?)|(?:\(?0))(?:\d{2}\)?\s?\d{4}\s?\d{4}|\d{3}\)?\s?\d{3}\s?\d{3,4}|\d{4}\)?\s?(?:\d{5}|\d{3}\s?\d{3})|\d{5}\)?\s?\d{4,5})$/)},"Please specify a valid phone number");jQuery.validator.addMethod("mobileUK",function(a,b){a=a.replace(/\(|\)|\s+|-/g,"");return this.optional(b)||a.length>9&&a.match(/^(?:(?:(?:00\s?|\+)44\s?|0)7(?:[45789]\d{2}|624)\s?\d{3}\s?\d{3})$/)},"Please specify a valid mobile number");jQuery.validator.addMethod("phonesUK",function(a,b){a=a.replace(/\(|\)|\s+|-/g,"");return this.optional(b)||a.length>9&&a.match(/^(?:(?:(?:00\s?|\+)44\s?|0)(?:1\d{8,9}|[23]\d{9}|7(?:[45789]\d{8}|624\d{6})))$/)},"Please specify a valid uk phone number");jQuery.validator.addMethod("postcodeUK",function(b,a){return this.optional(a)||/^((([A-PR-UWYZ][0-9])|([A-PR-UWYZ][0-9][0-9])|([A-PR-UWYZ][A-HK-Y][0-9])|([A-PR-UWYZ][A-HK-Y][0-9][0-9])|([A-PR-UWYZ][0-9][A-HJKSTUW])|([A-PR-UWYZ][A-HK-Y][0-9][ABEHMNPRVWXY]))\s?([0-9][ABD-HJLNP-UW-Z]{2})|(GIR)\s?(0AA))$/i.test(b)},"Please specify a valid UK postcode");jQuery.validator.addMethod("strippedminlength",function(b,a,c){return jQuery(b).text().length>=c},jQuery.validator.format("Please enter at least {0} characters"));jQuery.validator.addMethod("email2",function(b,a,c){return this.optional(a)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)*(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(b)},jQuery.validator.messages.email);jQuery.validator.addMethod("url2",function(b,a,c){return this.optional(a)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)*(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(b)},jQuery.validator.messages.url);jQuery.validator.addMethod("creditcardtypes",function(b,a,c){if(/[^0-9\-]+/.test(b)){return false}b=b.replace(/\D/g,"");var d=0;if(c.mastercard){d|=1}if(c.visa){d|=2}if(c.amex){d|=4}if(c.dinersclub){d|=8}if(c.enroute){d|=16}if(c.discover){d|=32}if(c.jcb){d|=64}if(c.unknown){d|=128}if(c.all){d=1|2|4|8|16|32|64|128}if(d&1&&/^(5[12345])/.test(b)){return b.length===16}if(d&2&&/^(4)/.test(b)){return b.length===16}if(d&4&&/^(3[47])/.test(b)){return b.length===15}if(d&8&&/^(3(0[012345]|[68]))/.test(b)){return b.length===14}if(d&16&&/^(2(014|149))/.test(b)){return b.length===15}if(d&32&&/^(6011)/.test(b)){return b.length===16}if(d&64&&/^(3)/.test(b)){return b.length===16}if(d&64&&/^(2131|1800)/.test(b)){return b.length===15}if(d&128){return true}return false},"Please enter a valid credit card number.");jQuery.validator.addMethod("ipv4",function(b,a,c){return this.optional(a)||/^(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)$/i.test(b)},"Please enter a valid IP v4 address.");jQuery.validator.addMethod("ipv6",function(b,a,c){return this.optional(a)||/^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$/i.test(b)},"Please enter a valid IP v6 address.");jQuery.validator.addMethod("pattern",function(b,a,c){if(this.optional(a)){return true}if(typeof c==="string"){c=new RegExp("^(?:"+c+")$")}return c.test(b)},"Invalid format.");jQuery.validator.addMethod("require_from_group",function(g,f,d){var e=this;var b=d[1];var c=$(b,f.form).filter(function(){return e.elementValue(this)}).length>=d[0];if(!$(f).data("being_validated")){var a=$(b,f.form);a.data("being_validated",true);a.valid();a.data("being_validated",false)}return c},jQuery.validator.format("Please fill at least {0} of these fields."));jQuery.validator.addMethod("skip_or_fill_minimum",function(h,e,i){var b=this,c=i[0],d=i[1];var g=$(d,e.form).filter(function(){return b.elementValue(this)}).length;var a=g>=c||g===0;if(!$(e).data("being_validated")){var f=$(d,e.form);f.data("being_validated",true);f.valid();f.data("being_validated",false)}return a},jQuery.validator.format("Please either skip these fields or fill at least {0} of them."));jQuery.validator.addMethod("accept",function(e,c,g){var f=typeof g==="string"?g.replace(/\s/g,"").replace(/,/g,"|"):"image/*",d=this.optional(c),b,a;if(d){return d}if($(c).attr("type")==="file"){f=f.replace(/\*/g,".*");if(c.files&&c.files.length){for(b=0;b<c.files.length;b++){a=c.files[b];if(!a.type.match(new RegExp(".?("+f+")$","i"))){return false}}}}return true},jQuery.validator.format("Please enter a value with a valid mimetype."));jQuery.validator.addMethod("extension",function(b,a,c){c=typeof c==="string"?c.replace(/,/g,"|"):"png|jpe?g|gif";return this.optional(a)||b.match(new RegExp(".("+c+")$","i"))},jQuery.validator.format("Please enter a value with a valid extension."));
/*!
 * jQuery Cookie Plugin v1.4.1
 * https://github.com/carhartl/jquery-cookie
 *
 * Copyright 2013 Klaus Hartl
 * Released under the MIT license
 */
(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{if(typeof exports==="object"){a(require("jquery"))}else{a(jQuery)}}}(function(f){var a=/\+/g;function d(i){return b.raw?i:encodeURIComponent(i)}function g(i){return b.raw?i:decodeURIComponent(i)}function h(i){return d(b.json?JSON.stringify(i):String(i))}function c(i){if(i.indexOf('"')===0){i=i.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")}try{i=decodeURIComponent(i.replace(a," "));return b.json?JSON.parse(i):i}catch(j){}}function e(j,i){var k=b.raw?j:c(j);return f.isFunction(i)?i(k):k}var b=f.cookie=function(q,p,w){if(p!==undefined&&!f.isFunction(p)){w=f.extend({},b.defaults,w);if(typeof w.expires==="number"){var r=w.expires,v=w.expires=new Date();v.setTime(+v+r*86400000)}return(document.cookie=[d(q),"=",h(p),w.expires?"; expires="+w.expires.toUTCString():"",w.path?"; path="+w.path:"",w.domain?"; domain="+w.domain:"",w.secure?"; secure":""].join(""))}var x=q?undefined:{};var u=document.cookie?document.cookie.split("; "):[];for(var o=0,m=u.length;o<m;o++){var n=u[o].split("=");var j=g(n.shift());var k=n.join("=");if(q&&q===j){x=e(k,p);break}if(!q&&(k=e(k))!==undefined){x[j]=k}}return x};b.defaults={};f.removeCookie=function(j,i){if(f.cookie(j)===undefined){return false}f.cookie(j,"",f.extend({},i,{expires:-1}));return !f.cookie(j)}}));(function(a){a.flexslider=function(f,q){var c=a(f);c.vars=a.extend({},a.flexslider.defaults,q);var j=c.vars.namespace,e=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,k=(("ontouchstart" in window)||e||window.DocumentTouch&&document instanceof DocumentTouch)&&c.vars.touch,d="click touchend MSPointerUp keyup",b="",p,i=c.vars.direction==="vertical",l=c.vars.reverse,o=(c.vars.itemWidth>0),h=c.vars.animation==="fade",m=c.vars.asNavFor!=="",g={},n=true;a.data(f,"flexslider",c);g={init:function(){c.animating=false;c.currentSlide=parseInt((c.vars.startAt?c.vars.startAt:0),10);if(isNaN(c.currentSlide)){c.currentSlide=0}c.animatingTo=c.currentSlide;c.atEnd=(c.currentSlide===0||c.currentSlide===c.last);c.containerSelector=c.vars.selector.substr(0,c.vars.selector.search(" "));c.slides=a(c.vars.selector,c);c.container=a(c.containerSelector,c);c.count=c.slides.length;c.syncExists=a(c.vars.sync).length>0;if(c.vars.animation==="slide"){c.vars.animation="swing"}c.prop=(i)?"top":"marginLeft";c.args={};c.manualPause=false;c.stopped=false;c.started=false;c.startTimeout=null;c.transitions=!c.vars.video&&!h&&c.vars.useCSS&&(function(){var u=document.createElement("div"),t=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var r in t){if(u.style[t[r]]!==undefined){c.pfx=t[r].replace("Perspective","").toLowerCase();c.prop="-"+c.pfx+"-transform";return true}}return false}());c.ensureAnimationEnd="";if(c.vars.controlsContainer!==""){c.controlsContainer=a(c.vars.controlsContainer).length>0&&a(c.vars.controlsContainer)}if(c.vars.manualControls!==""){c.manualControls=a(c.vars.manualControls).length>0&&a(c.vars.manualControls)}if(c.vars.customDirectionNav!==""){c.customDirectionNav=a(c.vars.customDirectionNav).length===2&&a(c.vars.customDirectionNav)}if(c.vars.randomize){c.slides.sort(function(){return(Math.round(Math.random())-0.5)});c.container.empty().append(c.slides)}c.doMath();c.setup("init");if(c.vars.controlNav){g.controlNav.setup()}if(c.vars.directionNav){g.directionNav.setup()}if(c.vars.keyboard&&(a(c.containerSelector).length===1||c.vars.multipleKeyboard)){a(document).bind("keyup",function(t){var r=t.keyCode;if(!c.animating&&(r===39||r===37)){var u=(r===39)?c.getTarget("next"):(r===37)?c.getTarget("prev"):false;c.flexAnimate(u,c.vars.pauseOnAction)}})}if(c.vars.mousewheel){c.bind("mousewheel",function(u,w,t,r){u.preventDefault();var v=(w<0)?c.getTarget("next"):c.getTarget("prev");c.flexAnimate(v,c.vars.pauseOnAction)})}if(c.vars.pausePlay){g.pausePlay.setup()}if(c.vars.slideshow&&c.vars.pauseInvisible){g.pauseInvisible.init()}if(c.vars.slideshow){if(c.vars.pauseOnHover){c.hover(function(){if(!c.manualPlay&&!c.manualPause){c.pause()}},function(){if(!c.manualPause&&!c.manualPlay&&!c.stopped){c.play()}})}if(!c.vars.pauseInvisible||!g.pauseInvisible.isHidden()){(c.vars.initDelay>0)?c.startTimeout=setTimeout(c.play,c.vars.initDelay):c.play()}}if(m){g.asNav.setup()}if(k&&c.vars.touch){g.touch()}if(!h||(h&&c.vars.smoothHeight)){a(window).bind("resize orientationchange focus",g.resize)}c.find("img").attr("draggable","false");setTimeout(function(){c.vars.start(c)},200)},asNav:{setup:function(){c.asNav=true;c.animatingTo=Math.floor(c.currentSlide/c.move);c.currentItem=c.currentSlide;c.slides.removeClass(j+"active-slide").eq(c.currentItem).addClass(j+"active-slide");if(!e){c.slides.on(d,function(u){u.preventDefault();var t=a(this),r=t.index();var v=t.offset().left-a(c).scrollLeft();if(v<=0&&t.hasClass(j+"active-slide")){c.flexAnimate(c.getTarget("prev"),true)}else{if(!a(c.vars.asNavFor).data("flexslider").animating&&!t.hasClass(j+"active-slide")){c.direction=(c.currentItem<r)?"next":"prev";c.flexAnimate(r,c.vars.pauseOnAction,false,true,true)}}})}else{f._slider=c;c.slides.each(function(){var r=this;r._gesture=new MSGesture();r._gesture.target=r;r.addEventListener("MSPointerDown",function(t){t.preventDefault();if(t.currentTarget._gesture){t.currentTarget._gesture.addPointer(t.pointerId)}},false);r.addEventListener("MSGestureTap",function(v){v.preventDefault();var u=a(this),t=u.index();if(!a(c.vars.asNavFor).data("flexslider").animating&&!u.hasClass("active")){c.direction=(c.currentItem<t)?"next":"prev";c.flexAnimate(t,c.vars.pauseOnAction,false,true,true)}})})}}},controlNav:{setup:function(){if(!c.manualControls){g.controlNav.setupPaging()}else{g.controlNav.setupManual()}},setupPaging:function(){var v=(c.vars.controlNav==="thumbnails")?"control-thumbs":"control-paging",t=1,w,r;c.controlNavScaffold=a('<ol class="'+j+"control-nav "+j+v+'"></ol>');if(c.pagingCount>1){for(var u=0;u<c.pagingCount;u++){r=c.slides.eq(u);w=(c.vars.controlNav==="thumbnails")?'<img src="'+r.attr("data-thumb")+'"/>':"<a>"+t+"</a>";if("thumbnails"===c.vars.controlNav&&true===c.vars.thumbCaptions){var x=r.attr("data-thumbcaption");if(""!==x&&undefined!==x){w+='<span class="'+j+'caption">'+x+"</span>"}}c.controlNavScaffold.append("<li>"+w+"</li>");t++}}(c.controlsContainer)?a(c.controlsContainer).append(c.controlNavScaffold):c.append(c.controlNavScaffold);g.controlNav.set();g.controlNav.active();c.controlNavScaffold.delegate("a, img",d,function(y){y.preventDefault();if(b===""||b===y.type){var A=a(this),z=c.controlNav.index(A);if(!A.hasClass(j+"active")){c.direction=(z>c.currentSlide)?"next":"prev";c.flexAnimate(z,c.vars.pauseOnAction)}}if(b===""){b=y.type}g.setToClearWatchedEvent()})},setupManual:function(){c.controlNav=c.manualControls;g.controlNav.active();c.controlNav.bind(d,function(r){r.preventDefault();if(b===""||b===r.type){var u=a(this),t=c.controlNav.index(u);if(!u.hasClass(j+"active")){(t>c.currentSlide)?c.direction="next":c.direction="prev";c.flexAnimate(t,c.vars.pauseOnAction)}}if(b===""){b=r.type}g.setToClearWatchedEvent()})},set:function(){var r=(c.vars.controlNav==="thumbnails")?"img":"a";c.controlNav=a("."+j+"control-nav li "+r,(c.controlsContainer)?c.controlsContainer:c)},active:function(){c.controlNav.removeClass(j+"active").eq(c.animatingTo).addClass(j+"active")},update:function(r,t){if(c.pagingCount>1&&r==="add"){c.controlNavScaffold.append(a("<li><a>"+c.count+"</a></li>"))}else{if(c.pagingCount===1){c.controlNavScaffold.find("li").remove()}else{c.controlNav.eq(t).closest("li").remove()}}g.controlNav.set();(c.pagingCount>1&&c.pagingCount!==c.controlNav.length)?c.update(t,r):g.controlNav.active()}},directionNav:{setup:function(){var r=a('<ul class="'+j+'direction-nav"><li class="'+j+'nav-prev"><a class="'+j+'prev" href="#">'+c.vars.prevText+'</a></li><li class="'+j+'nav-next"><a class="'+j+'next" href="#">'+c.vars.nextText+"</a></li></ul>");if(c.customDirectionNav){c.directionNav=c.customDirectionNav}else{if(c.controlsContainer){a(c.controlsContainer).append(r);c.directionNav=a("."+j+"direction-nav li a",c.controlsContainer)}else{c.append(r);c.directionNav=a("."+j+"direction-nav li a",c)}}g.directionNav.update();c.directionNav.bind(d,function(t){t.preventDefault();var u;if(b===""||b===t.type){u=(a(this).hasClass(j+"next"))?c.getTarget("next"):c.getTarget("prev");c.flexAnimate(u,c.vars.pauseOnAction)}if(b===""){b=t.type}g.setToClearWatchedEvent()})},update:function(){var r=j+"disabled";if(c.pagingCount===1){c.directionNav.addClass(r).attr("tabindex","-1")}else{if(!c.vars.animationLoop){if(c.animatingTo===0){c.directionNav.removeClass(r).filter("."+j+"prev").addClass(r).attr("tabindex","-1")}else{if(c.animatingTo===c.last){c.directionNav.removeClass(r).filter("."+j+"next").addClass(r).attr("tabindex","-1")}else{c.directionNav.removeClass(r).removeAttr("tabindex")}}}else{c.directionNav.removeClass(r).removeAttr("tabindex")}}}},pausePlay:{setup:function(){var r=a('<div class="'+j+'pauseplay"><a></a></div>');if(c.controlsContainer){c.controlsContainer.append(r);c.pausePlay=a("."+j+"pauseplay a",c.controlsContainer)}else{c.append(r);c.pausePlay=a("."+j+"pauseplay a",c)}g.pausePlay.update((c.vars.slideshow)?j+"pause":j+"play");c.pausePlay.bind(d,function(t){t.preventDefault();if(b===""||b===t.type){if(a(this).hasClass(j+"pause")){c.manualPause=true;c.manualPlay=false;c.pause()}else{c.manualPause=false;c.manualPlay=true;c.play()}}if(b===""){b=t.type}g.setToClearWatchedEvent()})},update:function(r){(r==="play")?c.pausePlay.removeClass(j+"pause").addClass(j+"play").html(c.vars.playText):c.pausePlay.removeClass(j+"play").addClass(j+"pause").html(c.vars.pauseText)}},touch:function(){var D,A,y,E,H,F,z,t,G,C=false,v=0,u=0,x=0;if(!e){z=function(I){if(c.animating){I.preventDefault()}else{if((window.navigator.msPointerEnabled)||I.touches.length===1){c.pause();E=(i)?c.h:c.w;F=Number(new Date());v=I.touches[0].pageX;u=I.touches[0].pageY;y=(o&&l&&c.animatingTo===c.last)?0:(o&&l)?c.limit-(((c.itemW+c.vars.itemMargin)*c.move)*c.animatingTo):(o&&c.currentSlide===c.last)?c.limit:(o)?((c.itemW+c.vars.itemMargin)*c.move)*c.currentSlide:(l)?(c.last-c.currentSlide+c.cloneOffset)*E:(c.currentSlide+c.cloneOffset)*E;D=(i)?u:v;A=(i)?v:u;f.addEventListener("touchmove",t,false);f.addEventListener("touchend",G,false)}}};t=function(I){v=I.touches[0].pageX;u=I.touches[0].pageY;H=(i)?D-u:D-v;C=(i)?(Math.abs(H)<Math.abs(v-A)):(Math.abs(H)<Math.abs(u-A));var J=500;if(!C||Number(new Date())-F>J){I.preventDefault();if(!h&&c.transitions){if(!c.vars.animationLoop){H=H/((c.currentSlide===0&&H<0||c.currentSlide===c.last&&H>0)?(Math.abs(H)/E+2):1)}c.setProps(y+H,"setTouch")}}};G=function(K){f.removeEventListener("touchmove",t,false);if(c.animatingTo===c.currentSlide&&!C&&!(H===null)){var J=(l)?-H:H,I=(J>0)?c.getTarget("next"):c.getTarget("prev");if(c.canAdvance(I)&&(Number(new Date())-F<550&&Math.abs(J)>50||Math.abs(J)>E/2)){c.flexAnimate(I,c.vars.pauseOnAction)}else{if(!h){c.flexAnimate(c.currentSlide,c.vars.pauseOnAction,true)}}}f.removeEventListener("touchend",G,false);D=null;A=null;H=null;y=null};f.addEventListener("touchstart",z,false)}else{f.style.msTouchAction="none";f._gesture=new MSGesture();f._gesture.target=f;f.addEventListener("MSPointerDown",r,false);f._slider=c;f.addEventListener("MSGestureChange",B,false);f.addEventListener("MSGestureEnd",w,false);function r(I){I.stopPropagation();if(c.animating){I.preventDefault()}else{c.pause();f._gesture.addPointer(I.pointerId);x=0;E=(i)?c.h:c.w;F=Number(new Date());y=(o&&l&&c.animatingTo===c.last)?0:(o&&l)?c.limit-(((c.itemW+c.vars.itemMargin)*c.move)*c.animatingTo):(o&&c.currentSlide===c.last)?c.limit:(o)?((c.itemW+c.vars.itemMargin)*c.move)*c.currentSlide:(l)?(c.last-c.currentSlide+c.cloneOffset)*E:(c.currentSlide+c.cloneOffset)*E}}function B(L){L.stopPropagation();var K=L.target._slider;if(!K){return}var J=-L.translationX,I=-L.translationY;x=x+((i)?I:J);H=x;C=(i)?(Math.abs(x)<Math.abs(-J)):(Math.abs(x)<Math.abs(-I));if(L.detail===L.MSGESTURE_FLAG_INERTIA){setImmediate(function(){f._gesture.stop()});return}if(!C||Number(new Date())-F>500){L.preventDefault();if(!h&&K.transitions){if(!K.vars.animationLoop){H=x/((K.currentSlide===0&&x<0||K.currentSlide===K.last&&x>0)?(Math.abs(x)/E+2):1)}K.setProps(y+H,"setTouch")}}}function w(L){L.stopPropagation();var I=L.target._slider;if(!I){return}if(I.animatingTo===I.currentSlide&&!C&&!(H===null)){var K=(l)?-H:H,J=(K>0)?I.getTarget("next"):I.getTarget("prev");if(I.canAdvance(J)&&(Number(new Date())-F<550&&Math.abs(K)>50||Math.abs(K)>E/2)){I.flexAnimate(J,I.vars.pauseOnAction)}else{if(!h){I.flexAnimate(I.currentSlide,I.vars.pauseOnAction,true)}}}D=null;A=null;H=null;y=null;x=0}}},resize:function(){if(!c.animating&&c.is(":visible")){if(!o){c.doMath()}if(h){g.smoothHeight()}else{if(o){c.slides.width(c.computedW);c.update(c.pagingCount);c.setProps()}else{if(i){c.viewport.height(c.h);c.setProps(c.h,"setTotal")}else{if(c.vars.smoothHeight){g.smoothHeight()}c.newSlides.width(c.computedW);c.setProps(c.computedW,"setTotal")}}}}},smoothHeight:function(r){if(!i||h){var t=(h)?c:c.viewport;(r)?t.animate({height:c.slides.eq(c.animatingTo).height()},r):t.height(c.slides.eq(c.animatingTo).height())}},sync:function(r){var u=a(c.vars.sync).data("flexslider"),t=c.animatingTo;switch(r){case"animate":u.flexAnimate(t,c.vars.pauseOnAction,false,true);break;case"play":if(!u.playing&&!u.asNav){u.play()}break;case"pause":u.pause();break}},uniqueID:function(r){r.filter("[id]").add(r.find("[id]")).each(function(){var t=a(this);t.attr("id",t.attr("id")+"_clone")});return r},pauseInvisible:{visProp:null,init:function(){var t=g.pauseInvisible.getHiddenProp();if(t){var r=t.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(r,function(){if(g.pauseInvisible.isHidden()){if(c.startTimeout){clearTimeout(c.startTimeout)}else{c.pause()}}else{if(c.started){c.play()}else{if(c.vars.initDelay>0){setTimeout(c.play,c.vars.initDelay)}else{c.play()}}}})}},isHidden:function(){var r=g.pauseInvisible.getHiddenProp();if(!r){return false}return document[r]},getHiddenProp:function(){var t=["webkit","moz","ms","o"];if("hidden" in document){return"hidden"}for(var r=0;r<t.length;r++){if((t[r]+"Hidden") in document){return t[r]+"Hidden"}}return null}},setToClearWatchedEvent:function(){clearTimeout(p);p=setTimeout(function(){b=""},3000)}};c.flexAnimate=function(A,B,u,w,x){if(!c.vars.animationLoop&&A!==c.currentSlide){c.direction=(A>c.currentSlide)?"next":"prev"}if(m&&c.pagingCount===1){c.direction=(c.currentItem<A)?"next":"prev"}if(!c.animating&&(c.canAdvance(A,x)||u)&&c.is(":visible")){if(m&&w){var t=a(c.vars.asNavFor).data("flexslider");c.atEnd=A===0||A===c.count-1;t.flexAnimate(A,true,false,true,x);c.direction=(c.currentItem<A)?"next":"prev";t.direction=c.direction;if(Math.ceil((A+1)/c.visible)-1!==c.currentSlide&&A!==0){c.currentItem=A;c.slides.removeClass(j+"active-slide").eq(A).addClass(j+"active-slide");A=Math.floor(A/c.visible)}else{c.currentItem=A;c.slides.removeClass(j+"active-slide").eq(A).addClass(j+"active-slide");return false}}c.animating=true;c.animatingTo=A;if(B){c.pause()}c.vars.before(c);if(c.syncExists&&!x){g.sync("animate")}if(c.vars.controlNav){g.controlNav.active()}if(!o){c.slides.removeClass(j+"active-slide").eq(A).addClass(j+"active-slide")}c.atEnd=A===0||A===c.last;if(c.vars.directionNav){g.directionNav.update()}if(A===c.last){c.vars.end(c);if(!c.vars.animationLoop){c.pause()}}if(!h){var z=(i)?c.slides.filter(":first").height():c.computedW,y,v,r;if(o){y=c.vars.itemMargin;r=((c.itemW+y)*c.move)*c.animatingTo;v=(r>c.limit&&c.visible!==1)?c.limit:r}else{if(c.currentSlide===0&&A===c.count-1&&c.vars.animationLoop&&c.direction!=="next"){v=(l)?(c.count+c.cloneOffset)*z:0}else{if(c.currentSlide===c.last&&A===0&&c.vars.animationLoop&&c.direction!=="prev"){v=(l)?0:(c.count+1)*z}else{v=(l)?((c.count-1)-A+c.cloneOffset)*z:(A+c.cloneOffset)*z}}}c.setProps(v,"",c.vars.animationSpeed);if(c.transitions){if(!c.vars.animationLoop||!c.atEnd){c.animating=false;c.currentSlide=c.animatingTo}c.container.unbind("webkitTransitionEnd transitionend");c.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(c.ensureAnimationEnd);c.wrapup(z)});clearTimeout(c.ensureAnimationEnd);c.ensureAnimationEnd=setTimeout(function(){c.wrapup(z)},c.vars.animationSpeed+100)}else{c.container.animate(c.args,c.vars.animationSpeed,c.vars.easing,function(){c.wrapup(z)})}}else{if(!k){c.slides.eq(c.currentSlide).css({zIndex:1}).animate({opacity:0},c.vars.animationSpeed,c.vars.easing);c.slides.eq(A).css({zIndex:2}).animate({opacity:1},c.vars.animationSpeed,c.vars.easing,c.wrapup)}else{c.slides.eq(c.currentSlide).css({opacity:0,zIndex:1});c.slides.eq(A).css({opacity:1,zIndex:2});c.wrapup(z)}}if(c.vars.smoothHeight){g.smoothHeight(c.vars.animationSpeed)}}};c.wrapup=function(r){if(!h&&!o){if(c.currentSlide===0&&c.animatingTo===c.last&&c.vars.animationLoop){c.setProps(r,"jumpEnd")}else{if(c.currentSlide===c.last&&c.animatingTo===0&&c.vars.animationLoop){c.setProps(r,"jumpStart")}}}c.animating=false;c.currentSlide=c.animatingTo;c.vars.after(c)};c.animateSlides=function(){if(!c.animating&&n){c.flexAnimate(c.getTarget("next"))}};c.pause=function(){clearInterval(c.animatedSlides);c.animatedSlides=null;c.playing=false;if(c.vars.pausePlay){g.pausePlay.update("play")}if(c.syncExists){g.sync("pause")}};c.play=function(){if(c.playing){clearInterval(c.animatedSlides)}c.animatedSlides=c.animatedSlides||setInterval(c.animateSlides,c.vars.slideshowSpeed);c.started=c.playing=true;if(c.vars.pausePlay){g.pausePlay.update("pause")}if(c.syncExists){g.sync("play")}};c.stop=function(){c.pause();c.stopped=true};c.canAdvance=function(u,r){var t=(m)?c.pagingCount-1:c.last;return(r)?true:(m&&c.currentItem===c.count-1&&u===0&&c.direction==="prev")?true:(m&&c.currentItem===0&&u===c.pagingCount-1&&c.direction!=="next")?false:(u===c.currentSlide&&!m)?false:(c.vars.animationLoop)?true:(c.atEnd&&c.currentSlide===0&&u===t&&c.direction!=="next")?false:(c.atEnd&&c.currentSlide===t&&u===0&&c.direction==="next")?false:true};c.getTarget=function(r){c.direction=r;if(r==="next"){return(c.currentSlide===c.last)?0:c.currentSlide+1}else{return(c.currentSlide===0)?c.last:c.currentSlide-1}};c.setProps=function(v,r,t){var u=(function(){var w=(v)?v:((c.itemW+c.vars.itemMargin)*c.move)*c.animatingTo,x=(function(){if(o){return(r==="setTouch")?v:(l&&c.animatingTo===c.last)?0:(l)?c.limit-(((c.itemW+c.vars.itemMargin)*c.move)*c.animatingTo):(c.animatingTo===c.last)?c.limit:w}else{switch(r){case"setTotal":return(l)?((c.count-1)-c.currentSlide+c.cloneOffset)*v:(c.currentSlide+c.cloneOffset)*v;case"setTouch":return(l)?v:v;case"jumpEnd":return(l)?v:c.count*v;case"jumpStart":return(l)?c.count*v:v;default:return v}}}());return(x*-1)+"px"}());if(c.transitions){u=(i)?"translate3d(0,"+u+",0)":"translate3d("+u+",0,0)";t=(t!==undefined)?(t/1000)+"s":"0s";c.container.css("-"+c.pfx+"-transition-duration",t);c.container.css("transition-duration",t)}c.args[c.prop]=u;if(c.transitions||t===undefined){c.container.css(c.args)}c.container.css("transform",u)};c.setup=function(t){if(!h){var u,r;if(t==="init"){c.viewport=a('<div class="'+j+'viewport"></div>').css({overflow:"hidden",position:"relative"}).appendTo(c).append(c.container);c.cloneCount=0;c.cloneOffset=0;if(l){r=a.makeArray(c.slides).reverse();c.slides=a(r);c.container.empty().append(c.slides)}}if(c.vars.animationLoop&&!o){c.cloneCount=2;c.cloneOffset=1;if(t!=="init"){c.container.find(".clone").remove()}c.container.append(g.uniqueID(c.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(g.uniqueID(c.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))}c.newSlides=a(c.vars.selector,c);u=(l)?c.count-1-c.currentSlide+c.cloneOffset:c.currentSlide+c.cloneOffset;if(i&&!o){c.container.height((c.count+c.cloneCount)*200+"%").css("position","absolute").width("100%");setTimeout(function(){c.newSlides.css({display:"block"});c.doMath();c.viewport.height(c.h);c.setProps(u*c.h,"init")},(t==="init")?100:0)}else{c.container.width((c.count+c.cloneCount)*200+"%");c.setProps(u*c.computedW,"init");setTimeout(function(){c.doMath();c.newSlides.css({width:c.computedW,"float":"left",display:"block"});if(c.vars.smoothHeight){g.smoothHeight()}},(t==="init")?100:0)}}else{c.slides.css({width:"100%","float":"left",marginRight:"-100%",position:"relative"});if(t==="init"){if(!k){if(c.vars.fadeFirstSlide==false){c.slides.css({opacity:0,display:"block",zIndex:1}).eq(c.currentSlide).css({zIndex:2}).css({opacity:1})}else{c.slides.css({opacity:0,display:"block",zIndex:1}).eq(c.currentSlide).css({zIndex:2}).animate({opacity:1},c.vars.animationSpeed,c.vars.easing)}}else{c.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+c.vars.animationSpeed/1000+"s ease",zIndex:1}).eq(c.currentSlide).css({opacity:1,zIndex:2})}}if(c.vars.smoothHeight){g.smoothHeight()}}if(!o){c.slides.removeClass(j+"active-slide").eq(c.currentSlide).addClass(j+"active-slide")}c.vars.init(c)};c.doMath=function(){var r=c.slides.first(),v=c.vars.itemMargin,t=c.vars.minItems,u=c.vars.maxItems;c.w=(c.viewport===undefined)?c.width():c.viewport.width();c.h=r.height();c.boxPadding=r.outerWidth()-r.width();if(o){c.itemT=c.vars.itemWidth+v;c.minW=(t)?t*c.itemT:c.w;c.maxW=(u)?(u*c.itemT)-v:c.w;c.itemW=(c.minW>c.w)?(c.w-(v*(t-1)))/t:(c.maxW<c.w)?(c.w-(v*(u-1)))/u:(c.vars.itemWidth>c.w)?c.w:c.vars.itemWidth;c.visible=Math.floor(c.w/(c.itemW));c.move=(c.vars.move>0&&c.vars.move<c.visible)?c.vars.move:c.visible;c.pagingCount=Math.ceil(((c.count-c.visible)/c.move)+1);c.last=c.pagingCount-1;c.limit=(c.pagingCount===1)?0:(c.vars.itemWidth>c.w)?(c.itemW*(c.count-1))+(v*(c.count-1)):((c.itemW+v)*c.count)-c.w-v}else{c.itemW=c.w;c.pagingCount=c.count;c.last=c.count-1}c.computedW=c.itemW-c.boxPadding};c.update=function(t,r){c.doMath();if(!o){if(t<c.currentSlide){c.currentSlide+=1}else{if(t<=c.currentSlide&&t!==0){c.currentSlide-=1}}c.animatingTo=c.currentSlide}if(c.vars.controlNav&&!c.manualControls){if((r==="add"&&!o)||c.pagingCount>c.controlNav.length){g.controlNav.update("add")}else{if((r==="remove"&&!o)||c.pagingCount<c.controlNav.length){if(o&&c.currentSlide>c.last){c.currentSlide-=1;c.animatingTo-=1}g.controlNav.update("remove",c.last)}}}if(c.vars.directionNav){g.directionNav.update()}};c.addSlide=function(r,u){var t=a(r);c.count+=1;c.last=c.count-1;if(i&&l){(u!==undefined)?c.slides.eq(c.count-u).after(t):c.container.prepend(t)}else{(u!==undefined)?c.slides.eq(u).before(t):c.container.append(t)}c.update(u,"add");c.slides=a(c.vars.selector+":not(.clone)",c);c.setup();c.vars.added(c)};c.removeSlide=function(r){var t=(isNaN(r))?c.slides.index(a(r)):r;c.count-=1;c.last=c.count-1;if(isNaN(r)){a(r,c.slides).remove()}else{(i&&l)?c.slides.eq(c.last).remove():c.slides.eq(r).remove()}c.doMath();c.update(t,"remove");c.slides=a(c.vars.selector+":not(.clone)",c);c.setup();c.vars.removed(c)};g.init()};a(window).blur(function(b){focused=false}).focus(function(b){focused=true});a.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:false,animationLoop:true,smoothHeight:false,startAt:0,slideshow:true,slideshowSpeed:7000,animationSpeed:600,initDelay:0,randomize:false,fadeFirstSlide:true,thumbCaptions:false,pauseOnAction:true,pauseOnHover:false,pauseInvisible:true,useCSS:true,touch:true,video:false,controlNav:true,directionNav:true,prevText:"Previous",nextText:"Next",keyboard:true,multipleKeyboard:false,mousewheel:false,pausePlay:false,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:true,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}};a.fn.flexslider=function(b){if(b===undefined){b={}}if(typeof b==="object"){return this.each(function(){var f=a(this),d=(b.selector)?b.selector:".slides > li",e=f.find(d);if((e.length===1&&b.allowOneSlide===true)||e.length===0){e.fadeIn(400);if(b.start){b.start(f)}}else{if(f.data("flexslider")===undefined){new a.flexslider(this,b)}}})}else{var c=a(this).data("flexslider");switch(b){case"play":c.play();break;case"pause":c.pause();break;case"stop":c.stop();break;case"next":c.flexAnimate(c.getTarget("next"),true);break;case"prev":case"previous":c.flexAnimate(c.getTarget("prev"),true);break;default:if(typeof b==="number"){c.flexAnimate(b,true)}}}}})(jQuery);
/*!
 * jScroll - jQuery Plugin for Infinite Scrolling / Auto-Paging - v2.2.4
 * http://jscroll.com/
 *
 * Copyright 2011-2013, Philip Klauzinski
 * http://klauzinski.com/
 * Dual licensed under the MIT and GPL Version 2 licenses.
 * http://jscroll.com/#license
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl-2.0.html
 *
 * @author Philip Klauzinski
 * @requires jQuery v1.4.3+
 */
(function(b){b.jscroll={defaults:{debug:false,autoTrigger:true,autoTriggerUntil:false,loadingHtml:"<small>Loading...</small>",padding:0,nextSelector:"a:last",contentSelector:"",pagingSelector:"",callback:false}};var a=function(e,g){var o=e.data("jscroll"),n=(typeof g==="function")?{callback:g}:g,p=b.extend({},b.jscroll.defaults,n,o||{}),c=(e.css("overflow-y")==="visible"),l=e.find(p.nextSelector).first(),w=b(window),h=b("body"),q=c?w:e,m=b.trim(l.attr("href")+" "+p.contentSelector);e.data("jscroll",b.extend({},o,{initialized:true,waiting:false,nextHref:m}));r();k();u();function k(){var y=b(p.loadingHtml).filter("img").attr("src");if(y){var x=new Image();x.src=y}}function r(){if(!e.find(".jscroll-inner").length){e.contents().wrapAll('<div class="jscroll-inner" />')}}function d(x){if(p.pagingSelector){var y=x.closest(p.pagingSelector).hide()}else{var y=x.parent().not(".jscroll-inner,.jscroll-added").addClass("jscroll-next-parent").hide();if(!y.length){x.wrap('<div class="jscroll-next-parent" />').parent().hide()}}}function j(){return q.unbind(".jscroll").removeData("jscroll").find(".jscroll-inner").children().unwrap().filter(".jscroll-added").children().unwrap()}function i(){r();var E=e.find("div.jscroll-inner").first(),C=e.data("jscroll"),D=parseInt(e.css("borderTopWidth")),z=isNaN(D)?0:D,y=parseInt(e.css("paddingTop"))+z,B=c?q.scrollTop():e.offset().top,A=E.length?E.offset().top:0,x=Math.ceil(B-A+q.height()+y);if(!C.waiting&&x+p.padding>=E.outerHeight()){f("info","jScroll:",E.outerHeight()-x,"from bottom. Loading next request...");return v()}}function t(x){x=x||e.data("jscroll");if(!x||!x.nextHref){f("warn","jScroll: nextSelector not found - destroying");j();return false}else{u();return true}}function u(){var x=e.find(p.nextSelector).first();if(p.autoTrigger&&(p.autoTriggerUntil===false||p.autoTriggerUntil>0)){d(x);if(h.height()<=w.height()){i()}q.unbind(".jscroll").bind("scroll.jscroll",function(){return i()});if(p.autoTriggerUntil>0){p.autoTriggerUntil--}}else{q.unbind(".jscroll");x.bind("click.jscroll",function(){d(x);v();return false})}}function v(){var y=e.find("div.jscroll-inner").first(),x=e.data("jscroll");x.waiting=true;y.append('<div class="jscroll-added" />').children(".jscroll-added").last().html('<div class="jscroll-loading">'+p.loadingHtml+"</div>");return e.animate({scrollTop:y.outerHeight()},0,function(){y.find("div.jscroll-added").last().load(x.nextHref,function(B,A,C){if(A==="error"){return j()}var z=b(this).find(p.nextSelector).first();x.waiting=false;x.nextHref=z.attr("href")?b.trim(z.attr("href")+" "+p.contentSelector):false;b(".jscroll-next-parent",e).remove();t();if(p.callback){p.callback.call(this)}f("dir",x)})})}function f(x){if(p.debug&&typeof console==="object"&&(typeof x==="object"||typeof console[x]==="function")){if(typeof x==="object"){var z=[];for(var y in x){if(typeof console[y]==="function"){z=(x[y].length)?x[y]:[x[y]];console[y].apply(console,z)}else{console.log.apply(console,z)}}}else{console[x].apply(console,Array.prototype.slice.call(arguments,1))}}}b.extend(e.jscroll,{destroy:j});return e};b.fn.jscroll=function(c){return this.each(function(){var f=b(this),e=f.data("jscroll");if(e&&e.initialized){return}var d=new a(f,c)})}})(jQuery);(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{a(window.jQuery||window.Zepto)}}(function(a){var b=function(g,d,f){var h=this,e,c;g=a(g);d=typeof d==="function"?d(g.val(),undefined,g,f):d;h.init=function(){f=f||{};h.byPassKeys=[9,16,17,18,36,37,38,39,40,91];h.translation={"0":{pattern:/\d/},V:{pattern:/^[0-9]+$/,recursive:true},"9":{pattern:/\d/,optional:true},"#":{pattern:/\d/,recursive:true},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/},C:{pattern:/^[0-9.]/,recursive:true}};h.translation=a.extend({},h.translation,f.translation);h=a.extend(true,{},h,f);c=i.getRegexMask();g.each(function(){if(f.placeholder){g.attr("placeholder",f.placeholder)}g.attr("autocomplete","off");i.destroyEvents();i.events();var j=i.getCaret();i.val(i.getMasked());i.setCaret(j+i.getMaskCharactersBeforeCount(j,true))})};var i={getCaret:function(){var l,n=0,k=g.get(0),j=document.selection,m=k.selectionStart;if(j&&!~navigator.appVersion.indexOf("MSIE 10")){l=j.createRange();l.moveStart("character",g.is("input")?-g.val().length:-g.text().length);n=l.text.length}else{if(m||m==="0"){n=m}}return n},setCaret:function(l){if(g.is(":focus")){var j,k=g.get(0);if(k.setSelectionRange){k.setSelectionRange(l,l)}else{if(k.createTextRange){j=k.createTextRange();j.collapse(true);j.moveEnd("character",l);j.moveStart("character",l);j.select()}}}},events:function(){g.on("keydown.mask",function(){e=i.val()});g.on("keyup.mask",i.behaviour);g.on("paste.mask drop.mask",function(){setTimeout(function(){g.keydown().keyup()},100)});g.on("change.mask",function(){g.data("changeCalled",true)});g.on("blur.mask",function(k){var j=a(k.target);if(j.prop("defaultValue")!==j.val()){j.prop("defaultValue",j.val());if(!j.data("changeCalled")){j.trigger("change")}}j.data("changeCalled",false)});g.on("focusout.mask",function(){if(f.clearIfNotMatch&&!c.test(i.val())){i.val("")}})},getRegexMask:function(){var l=[],q,p,k,j,o,n;for(var m=0;m<d.length;m++){q=h.translation[d[m]];if(q){p=q.pattern.toString().replace(/.{1}$|^.{1}/g,"");k=q.optional;j=q.recursive;if(j){l.push(d[m]);o={digit:d[m],pattern:p}}else{l.push((!k&&!j)?p:(p+"?"))}}else{l.push("\\"+d[m])}}n=l.join("");if(o){n=n.replace(new RegExp("("+o.digit+"(.*"+o.digit+")?)"),"($1)?").replace(new RegExp(o.digit,"g"),o.pattern)}return new RegExp(n)},destroyEvents:function(){g.off("keydown.mask keyup.mask paste.mask drop.mask change.mask blur.mask focusout.mask").removeData("changeCalled")},val:function(j){var k=g.is("input");return arguments.length>0?(k?g.val(j):g.text(j)):(k?g.val():g.text())},getMaskCharactersBeforeCount:function(k,j){for(var m=0,l=0,n=d.length;l<n&&l<k;l++){if(!h.translation[d.charAt(l)]){k=j?k+1:k;m++}}return m},determineCaretPos:function(n,j,k,m){var l=h.translation[d.charAt(Math.min(n-1,d.length-1))];return !l?i.determineCaretPos(n+1,j,k,m):Math.min(n+k-j-m,k)},behaviour:function(n){n=n||window.event;var q=n.keyCode||n.which;if(a.inArray(q,h.byPassKeys)===-1){var m=i.getCaret(),k=i.val(),o=k.length,l=m<o,j=i.getMasked(),r=j.length,p=i.getMaskCharactersBeforeCount(r-1)-i.getMaskCharactersBeforeCount(o-1);if(j!==k){i.val(j)}if(l&&!(q===65&&n.ctrlKey)){if(!(q===8||q===46)){m=i.determineCaretPos(m,o,r,p)}i.setCaret(m)}return i.callbacks(n)}},getMasked:function(y){var o=[],z=i.val(),q=0,w=d.length,A=0,n=z.length,u=1,t="push",p=-1,B,l;if(f.reverse){t="unshift";u=-1;B=0;q=w-1;A=n-1;l=function(){return q>-1&&A>-1}}else{B=w-1;l=function(){return q<w&&A<n}}while(l()){var r=d.charAt(q),k=z.charAt(A),j=h.translation[r];if(j){if(k.match(j.pattern)){o[t](k);if(j.recursive){if(p===-1){p=q}else{if(q===B){q=p-u}}if(B===p){q-=u}}q+=u}else{if(j.optional){q+=u;A-=u}}A+=u}else{if(!y){o[t](r)}if(k===r){A+=u}q+=u}}var x=d.charAt(B);if(w===n+1&&!h.translation[x]){o.push(x)}return o.join("")},callbacks:function(j){var l=i.val(),k=i.val()!==e;if(k===true){if(typeof f.onChange==="function"){f.onChange(l,j,g,f)}}if(k===true&&typeof f.onKeyPress==="function"){f.onKeyPress(l,j,g,f)}if(typeof f.onComplete==="function"&&l.length===d.length){f.onComplete(l,j,g,f)}}};h.remove=function(){var k=i.getCaret(),j=i.getMaskCharactersBeforeCount(k);i.destroyEvents();i.val(h.getCleanVal()).removeAttr("maxlength");i.setCaret(k-j)};h.getCleanVal=function(){return i.getMasked(true)};h.init()};a.fn.mask=function(c,d){this.unmask();return this.each(function(){a(this).data("mask",new b(this,c,d))})};a.fn.unmask=function(){return this.each(function(){try{a(this).data("mask").remove()}catch(c){}})};a.fn.cleanVal=function(){return a(this).data("mask").getCleanVal()}}));
/*! Copyright (c) 2011 by Jonas Mosbech - https://github.com/jmosbech/StickyTableHeaders
	MIT license info: https://github.com/jmosbech/StickyTableHeaders/blob/master/license.txt */
(function(d,c,f){var a="stickyTableHeaders",g=0,e={fixedOffset:0,leftOffset:0,scrollableArea:c};function b(i,h){var j=this;j.$el=d(i);j.el=i;j.id=g++;j.$window=d(c);j.$document=d(document);j.$el.bind("destroyed",d.proxy(j.teardown,j));j.$clonedHeader=null;j.$originalHeader=null;j.isSticky=false;j.hasBeenSticky=false;j.leftOffset=null;j.topOffset=null;j.init=function(){j.$el.each(function(){var k=d(this);k.css("padding",0);j.$originalHeader=d("thead:first",this);j.$clonedHeader=j.$originalHeader.clone();k.trigger("clonedHeader."+a,[j.$clonedHeader]);j.$clonedHeader.addClass("table-floating-header");j.$clonedHeader.css("display","none");j.$originalHeader.addClass("table-floating-header-original");j.$originalHeader.after(j.$clonedHeader);j.$printStyle=d('<style type="text/css" media="print">.table-floating-header{display:none !important;}.table-floating-header-original{position:static !important;}</style>');d("head").append(j.$printStyle)});j.setOptions(h);j.updateWidth();j.toggleHeaders();j.bind()};j.destroy=function(){j.$el.unbind("destroyed",j.teardown);j.teardown()};j.teardown=function(){if(j.isSticky){j.$originalHeader.css("position","static")}d.removeData(j.el,"plugin_"+a);j.unbind();j.$clonedHeader.remove();j.$originalHeader.removeClass("table-floating-header-original");j.$originalHeader.css("visibility","visible");j.$printStyle.remove();j.el=null;j.$el=null};j.bind=function(){j.$scrollableArea.on("scroll."+a,j.toggleHeaders);if(!j.isWindowScrolling){j.$window.on("scroll."+a+j.id,j.setPositionValues);j.$window.on("resize."+a+j.id,j.toggleHeaders)}j.$scrollableArea.on("resize."+a,j.toggleHeaders);j.$scrollableArea.on("resize."+a,j.updateWidth)};j.unbind=function(){j.$scrollableArea.off("."+a,j.toggleHeaders);if(!j.isWindowScrolling){j.$window.off("."+a+j.id,j.setPositionValues);j.$window.off("."+a+j.id,j.toggleHeaders)}j.$scrollableArea.off("."+a,j.updateWidth)};j.toggleHeaders=function(){if(j.$el){j.$el.each(function(){var o=d(this),l,r=j.isWindowScrolling?(isNaN(j.options.fixedOffset)?j.options.fixedOffset.outerHeight():j.options.fixedOffset):j.$scrollableArea.offset().top+(!isNaN(j.options.fixedOffset)?j.options.fixedOffset:0),q=o.offset(),n=j.$scrollableArea.scrollTop()+r,p=j.$scrollableArea.scrollLeft(),m=j.isWindowScrolling?n>q.top:r>q.top,k=(j.isWindowScrolling?n:0)<(q.top+o.height()-j.$clonedHeader.height()-(j.isWindowScrolling?0:r));if(m&&k){l=q.left-p+j.options.leftOffset;j.$originalHeader.css({position:"fixed","margin-top":0,left:l,"z-index":3});j.leftOffset=l;j.topOffset=r;j.$clonedHeader.css("display","");if(!j.isSticky){j.isSticky=true;j.updateWidth()}j.setPositionValues()}else{if(j.isSticky){j.$originalHeader.css("position","static");j.$clonedHeader.css("display","none");j.isSticky=false;j.resetWidth(d("td,th",j.$clonedHeader),d("td,th",j.$originalHeader))}}})}};j.setPositionValues=function(){var k=j.$window.scrollTop(),l=j.$window.scrollLeft();if(!j.isSticky||k<0||k+j.$window.height()>j.$document.height()||l<0||l+j.$window.width()>j.$document.width()){return}j.$originalHeader.css({top:j.topOffset-(j.isWindowScrolling?0:k),left:j.leftOffset-(j.isWindowScrolling?0:l)})};j.updateWidth=function(){if(!j.isSticky){return}if(!j.$originalHeaderCells){j.$originalHeaderCells=d("th,td",j.$originalHeader)}if(!j.$clonedHeaderCells){j.$clonedHeaderCells=d("th,td",j.$clonedHeader)}var k=j.getWidth(j.$clonedHeaderCells);j.setWidth(k,j.$clonedHeaderCells,j.$originalHeaderCells);j.$originalHeader.css("width",j.$clonedHeader.width())};j.getWidth=function(k){var l=[];k.each(function(p){var r,t=d(this);if(t.css("box-sizing")==="border-box"){r=t.outerWidth()}else{var n=d("th",j.$originalHeader);if(n.css("border-collapse")==="collapse"){if(c.getComputedStyle){r=parseFloat(c.getComputedStyle(this,null).width)}else{var q=parseFloat(t.css("padding-left"));var m=parseFloat(t.css("padding-right"));var o=parseFloat(t.css("border-width"));r=t.outerWidth()-q-m-o}}else{r=t.width()}}l[p]=r});return l};j.setWidth=function(m,k,l){k.each(function(n){var o=m[n];l.eq(n).css({"min-width":o,"max-width":o})})};j.resetWidth=function(k,l){k.each(function(m){var n=d(this);l.eq(m).css({"min-width":n.css("min-width"),"max-width":n.css("max-width")})})};j.setOptions=function(k){j.options=d.extend({},e,k);j.$scrollableArea=d(j.options.scrollableArea);j.isWindowScrolling=j.$scrollableArea[0]===c};j.updateOptions=function(k){j.setOptions(k);j.unbind();j.bind();j.updateWidth();j.toggleHeaders()};j.init()}d.fn[a]=function(h){return this.each(function(){var i=d.data(this,"plugin_"+a);if(i){if(typeof h==="string"){i[h].apply(i)}else{i.updateOptions(h)}}else{if(h!=="destroy"){d.data(this,"plugin_"+a,new b(this,h))}}})}})(jQuery,window);(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{if(typeof exports==="object"){a(require("jquery"))}else{a(jQuery)}}}(function(f){var c="ls_";var j="ss_";function g(w){var q=arguments.length,A=window[w],z=arguments,p=z[1],t,y,v;if(q<2){throw new Error("Minimum 2 arguments must be given")}else{if(f.isArray(p)){y={};for(var u in p){t=p[u];try{y[t]=JSON.parse(A.getItem(t))}catch(x){y[t]=A.getItem(t)}}return y}else{if(q==2){try{return JSON.parse(A.getItem(p))}catch(x){return A.getItem(p)}}else{try{y=JSON.parse(A.getItem(p))}catch(x){throw new ReferenceError(p+" is not defined in this storage")}for(var u=2;u<q-1;u++){y=y[z[u]];if(y===undefined){throw new ReferenceError([].slice.call(z,1,u+1).join(".")+" is not defined in this storage")}}if(f.isArray(z[u])){v=y;y={};for(var r in z[u]){y[z[u][r]]=v[z[u][r]]}return y}else{return y[z[u]]}}}}}function a(x){var r=arguments.length,A=window[x],z=arguments,q=z[1],p=z[2],t,u={},w;if(r<2||!f.isPlainObject(q)&&r<3){throw new Error("Minimum 3 arguments must be given or second parameter must be an object")}else{if(f.isPlainObject(q)){for(var v in q){t=q[v];if(!f.isPlainObject(t)){A.setItem(v,t)}else{A.setItem(v,JSON.stringify(t))}}return q}else{if(r==3){if(typeof p==="object"){A.setItem(q,JSON.stringify(p))}else{A.setItem(q,p)}return p}else{try{w=A.getItem(q);if(w!=null){u=JSON.parse(w)}}catch(y){}w=u;for(var v=2;v<r-2;v++){t=z[v];if(!w[t]||!f.isPlainObject(w[t])){w[t]={}}w=w[t]}w[z[v]]=z[v+1];A.setItem(q,JSON.stringify(u));return u}}}}function o(w){var q=arguments.length,z=window[w],y=arguments,p=y[1],t,u;if(q<2){throw new Error("Minimum 2 arguments must be given")}else{if(f.isArray(p)){for(var v in p){z.removeItem(p[v])}return true}else{if(q==2){z.removeItem(p);return true}else{try{t=u=JSON.parse(z.getItem(p))}catch(x){throw new ReferenceError(p+" is not defined in this storage")}for(var v=2;v<q-1;v++){u=u[y[v]];if(u===undefined){throw new ReferenceError([].slice.call(y,1,v).join(".")+" is not defined in this storage")}}if(f.isArray(y[v])){for(var r in y[v]){delete u[y[v][r]]}}else{delete u[y[v]]}z.setItem(p,JSON.stringify(t));return true}}}}function i(t,p){var r=m(t);for(var q in r){o(t,r[q])}if(p){for(var q in f.namespaceStorages){e(q)}}}function k(y){var r=arguments.length,q=arguments,w=window[y],p=q[1];if(r==1){return(m(y).length==0)}else{if(f.isArray(p)){for(var u=0;u<p.length;u++){if(!k(y,p[u])){return false}}return true}else{try{var t=g.apply(this,arguments);if(!f.isArray(q[r-1])){t={totest:t}}for(var u in t){if(!((f.isPlainObject(t[u])&&f.isEmptyObject(t[u]))||(f.isArray(t[u])&&!t[u].length)||(!t[u]))){return false}}return true}catch(x){return true}}}}function n(y){var r=arguments.length,q=arguments,w=window[y],p=q[1];if(r<2){throw new Error("Minimum 2 arguments must be given")}if(f.isArray(p)){for(var u=0;u<p.length;u++){if(!n(y,p[u])){return false}}return true}else{try{var t=g.apply(this,arguments);if(!f.isArray(q[r-1])){t={totest:t}}for(var u in t){if(!(t[u]!==undefined&&t[u]!==null)){return false}}return true}catch(x){return false}}}function m(u){var r=arguments.length,y=window[u],v=arguments,p=v[1],x=[],q={};if(r>1){q=g.apply(this,v)}else{q=y}if(q&&q._cookie){for(var w in f.cookie()){if(w!=""){x.push(w.replace(q._prefix,""))}}}else{for(var t in q){x.push(t)}}return x}function e(p){if(!p||typeof p!="string"){throw new Error("First parameter must be a string")}if(l){if(!window.localStorage.getItem(p)){window.localStorage.setItem(p,"{}")}if(!window.sessionStorage.getItem(p)){window.sessionStorage.setItem(p,"{}")}}else{if(!window.localCookieStorage.getItem(p)){window.localCookieStorage.setItem(p,"{}")}if(!window.sessionCookieStorage.getItem(p)){window.sessionCookieStorage.setItem(p,"{}")}}var q={localStorage:f.extend({},f.localStorage,{_ns:p}),sessionStorage:f.extend({},f.sessionStorage,{_ns:p})};if(f.cookie){if(!window.cookieStorage.getItem(p)){window.cookieStorage.setItem(p,"{}")}q.cookieStorage=f.extend({},f.cookieStorage,{_ns:p})}f.namespaceStorages[p]=q;return q}function d(p){var r="jsapi";try{if(!window[p]){return false}window[p].setItem(r,r);window[p].removeItem(r);return true}catch(q){return false}}var l=d("localStorage");var h={_type:"",_ns:"",_callMethod:function(t,q){var u=[this._type],q=Array.prototype.slice.call(q),r=q[0];if(this._ns){u.push(this._ns)}if(typeof r==="string"&&r.indexOf(".")!==-1){q.shift();[].unshift.apply(q,r.split("."))}[].push.apply(u,q);return t.apply(this,u)},get:function(){return this._callMethod(g,arguments)},set:function(){var q=arguments.length,p=arguments,t=p[0];if(q<1||!f.isPlainObject(t)&&q<2){throw new Error("Minimum 2 arguments must be given or first parameter must be an object")}if(f.isPlainObject(t)&&this._ns){for(var u in t){a(this._type,this._ns,u,t[u])}return t}else{var v=this._callMethod(a,p);if(this._ns){return v[t.split(".")[0]]}else{return v}}},remove:function(){if(arguments.length<1){throw new Error("Minimum 1 argument must be given")}return this._callMethod(o,arguments)},removeAll:function(p){if(this._ns){a(this._type,this._ns,{});return true}else{return i(this._type,p)}},isEmpty:function(){return this._callMethod(k,arguments)},isSet:function(){if(arguments.length<1){throw new Error("Minimum 1 argument must be given")}return this._callMethod(n,arguments)},keys:function(){return this._callMethod(m,arguments)}};if(f.cookie){if(!window.name){window.name=Math.floor(Math.random()*100000000)}var b={_cookie:true,_prefix:"",_expires:null,_path:null,_domain:null,setItem:function(q,p){f.cookie(this._prefix+q,p,{expires:this._expires,path:this._path,domain:this._domain})},getItem:function(p){return f.cookie(this._prefix+p)},removeItem:function(p){return f.removeCookie(this._prefix+p)},clear:function(){for(var p in f.cookie()){if(p!=""){if(!this._prefix&&p.indexOf(c)===-1&&p.indexOf(j)===-1||this._prefix&&p.indexOf(this._prefix)===0){f.removeCookie(p)}}}},setExpires:function(p){this._expires=p;return this},setPath:function(q){this._path=q;return this},setDomain:function(p){this._domain=p;return this},setConf:function(p){if(p.path){this._path=p.path}if(p.domain){this._domain=p.domain}if(p.expires){this._expires=p.expires}return this},setDefaultConf:function(){this._path=this._domain=this._expires=null}};if(!l){window.localCookieStorage=f.extend({},b,{_prefix:c,_expires:365*10});window.sessionCookieStorage=f.extend({},b,{_prefix:j+window.name+"_"})}window.cookieStorage=f.extend({},b);f.cookieStorage=f.extend({},h,{_type:"cookieStorage",setExpires:function(p){window.cookieStorage.setExpires(p);return this},setPath:function(q){window.cookieStorage.setPath(q);return this},setDomain:function(p){window.cookieStorage.setDomain(p);return this},setConf:function(p){window.cookieStorage.setConf(p);return this},setDefaultConf:function(){window.cookieStorage.setDefaultConf();return this}})}f.initNamespaceStorage=function(p){return e(p)};if(l){f.localStorage=f.extend({},h,{_type:"localStorage"});f.sessionStorage=f.extend({},h,{_type:"sessionStorage"})}else{f.localStorage=f.extend({},h,{_type:"localCookieStorage"});f.sessionStorage=f.extend({},h,{_type:"sessionCookieStorage"})}f.namespaceStorages={};f.removeAllStorages=function(p){f.localStorage.removeAll(p);f.sessionStorage.removeAll(p);if(f.cookieStorage){f.cookieStorage.removeAll(p)}if(!p){f.namespaceStorages={}}}}));(function($){$.extend({tablesorter:new function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",cssChildRow:"expand-child",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,sortLocaleCompare:true,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:"us",decimal:"/.|,/g",onRenderHeader:null,selectorHeaders:"thead th",debug:false};function benchmark(s,d){log(s+","+(new Date().getTime()-d.getTime())+"ms")}this.benchmark=benchmark;function log(s){if(typeof console!="undefined"&&typeof console.debug!="undefined"){console.log(s)}else{alert(s)}}function buildParserCache(table,$headers){if(table.config.debug){var parsersDebug=""}if(table.tBodies.length==0){return}var rows=table.tBodies[0].rows;if(rows[0]){var list=[],cells=rows[0].cells,l=cells.length;for(var i=0;i<l;i++){var p=false;if($.metadata&&($($headers[i]).metadata()&&$($headers[i]).metadata().sorter)){p=getParserById($($headers[i]).metadata().sorter)}else{if((table.config.headers[i]&&table.config.headers[i].sorter)){p=getParserById(table.config.headers[i].sorter)}}if(!p){p=detectParserForColumn(table,rows,-1,i)}if(table.config.debug){parsersDebug+="column:"+i+" parser:"+p.id+"\n"}list.push(p)}}if(table.config.debug){log(parsersDebug)}return list}function detectParserForColumn(table,rows,rowIndex,cellIndex){var l=parsers.length,node=false,nodeValue=false,keepLooking=true;while(nodeValue==""&&keepLooking){rowIndex++;if(rows[rowIndex]){node=getNodeFromRowAndCellIndex(rows,rowIndex,cellIndex);nodeValue=trimAndGetNodeText(table.config,node);if(table.config.debug){log("Checking if value was empty on row:"+rowIndex)}}else{keepLooking=false}}for(var i=1;i<l;i++){if(parsers[i].is(nodeValue,table,node)){return parsers[i]}}return parsers[0]}function getNodeFromRowAndCellIndex(rows,rowIndex,cellIndex){return rows[rowIndex].cells[cellIndex]}function trimAndGetNodeText(config,node){return $.trim(getElementText(config,node))}function getParserById(name){var l=parsers.length;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==name.toLowerCase()){return parsers[i]}}return false}function buildCache(table){if(table.config.debug){var cacheTime=new Date()}var totalRows=(table.tBodies[0]&&table.tBodies[0].rows.length)||0,totalCells=(table.tBodies[0].rows[0]&&table.tBodies[0].rows[0].cells.length)||0,parsers=table.config.parsers,cache={row:[],normalized:[]};for(var i=0;i<totalRows;++i){var c=$(table.tBodies[0].rows[i]),cols=[];if(c.hasClass(table.config.cssChildRow)){cache.row[cache.row.length-1]=cache.row[cache.row.length-1].add(c);continue}cache.row.push(c);for(var j=0;j<totalCells;++j){cols.push(parsers[j].format(getElementText(table.config,c[0].cells[j]),table,c[0].cells[j]))}cols.push(cache.normalized.length);cache.normalized.push(cols);cols=null}if(table.config.debug){benchmark("Building cache for "+totalRows+" rows:",cacheTime)}return cache}function getElementText(config,node){if(!node){return""}var $node=$(node),data=$node.attr("data-sort-value");if(data!==undefined){return data}var text="";if(!config.supportsTextContent){config.supportsTextContent=node.textContent||false}if(config.textExtraction=="simple"){if(config.supportsTextContent){text=node.textContent}else{if(node.childNodes[0]&&node.childNodes[0].hasChildNodes()){text=node.childNodes[0].innerHTML}else{text=node.innerHTML}}}else{if(typeof(config.textExtraction)=="function"){text=config.textExtraction(node)}else{text=$(node).text()}}return text}function appendToTable(table,cache){if(table.config.debug){var appendTime=new Date()}var c=cache,r=c.row,n=c.normalized,totalRows=n.length,checkCell=(n[0].length-1),tableBody=$(table.tBodies[0]),rows=[];for(var i=0;i<totalRows;i++){var pos=n[i][checkCell];rows.push(r[pos]);if(!table.config.appender){var l=r[pos].length;for(var j=0;j<l;j++){tableBody[0].appendChild(r[pos][j])}}}if(table.config.appender){table.config.appender(table,rows)}rows=null;if(table.config.debug){benchmark("Rebuilt table:",appendTime)}applyWidget(table);setTimeout(function(){$(table).trigger("sortEnd")},0)}function buildHeaders(table){if(table.config.debug){var time=new Date()}var meta=($.metadata)?true:false;var header_index=computeTableHeaderCellIndexes(table);var $tableHeaders=$(table.config.selectorHeaders,table).each(function(index){this.column=header_index[this.parentNode.rowIndex+"-"+this.cellIndex];this.order=formatSortingOrder(table.config.sortInitialOrder);this.count=this.order;if(checkHeaderMetadata(this)||checkHeaderOptions(table,index)){this.sortDisabled=true}if(checkHeaderOptionsSortingLocked(table,index)){this.order=this.lockedOrder=checkHeaderOptionsSortingLocked(table,index)}if(!this.sortDisabled){var $th=$(this).addClass(table.config.cssHeader);if(table.config.onRenderHeader){table.config.onRenderHeader.apply($th)}}table.config.headerList[index]=this});if(table.config.debug){benchmark("Built headers:",time);log($tableHeaders)}return $tableHeaders}function computeTableHeaderCellIndexes(t){var matrix=[];var lookup={};var thead=t.getElementsByTagName("THEAD")[0];var trs=thead.getElementsByTagName("TR");for(var i=0;i<trs.length;i++){var cells=trs[i].cells;for(var j=0;j<cells.length;j++){var c=cells[j];var rowIndex=c.parentNode.rowIndex;var cellId=rowIndex+"-"+c.cellIndex;var rowSpan=c.rowSpan||1;var colSpan=c.colSpan||1;var firstAvailCol;if(typeof(matrix[rowIndex])=="undefined"){matrix[rowIndex]=[]}for(var k=0;k<matrix[rowIndex].length+1;k++){if(typeof(matrix[rowIndex][k])=="undefined"){firstAvailCol=k;break}}lookup[cellId]=firstAvailCol;for(var k=rowIndex;k<rowIndex+rowSpan;k++){if(typeof(matrix[k])=="undefined"){matrix[k]=[]}var matrixrow=matrix[k];for(var l=firstAvailCol;l<firstAvailCol+colSpan;l++){matrixrow[l]="x"}}}}return lookup}function checkCellColSpan(table,rows,row){var arr=[],r=table.tHead.rows,c=r[row].cells;for(var i=0;i<c.length;i++){var cell=c[i];if(cell.colSpan>1){arr=arr.concat(checkCellColSpan(table,headerArr,row++))}else{if(table.tHead.length==1||(cell.rowSpan>1||!r[row+1])){arr.push(cell)}}}return arr}function checkHeaderMetadata(cell){if(($.metadata)&&($(cell).metadata().sorter===false)){return true}return false}function checkHeaderOptions(table,i){if((table.config.headers[i])&&(table.config.headers[i].sorter===false)){return true}return false}function checkHeaderOptionsSortingLocked(table,i){if((table.config.headers[i])&&(table.config.headers[i].lockedOrder)){return table.config.headers[i].lockedOrder}return false}function applyWidget(table){var c=table.config.widgets;var l=c.length;for(var i=0;i<l;i++){getWidgetById(c[i]).format(table)}}function getWidgetById(name){var l=widgets.length;for(var i=0;i<l;i++){if(widgets[i].id.toLowerCase()==name.toLowerCase()){return widgets[i]}}}function formatSortingOrder(v){if(typeof(v)!="Number"){return(v.toLowerCase()=="desc")?1:0}else{return(v==1)?1:0}}function isValueInArray(v,a){var l=a.length;for(var i=0;i<l;i++){if(a[i][0]==v){return true}}return false}function setHeadersCss(table,$headers,list,css){$headers.removeClass(css[0]).removeClass(css[1]);var h=[];$headers.each(function(offset){if(!this.sortDisabled){h[this.column]=$(this)}});var l=list.length;for(var i=0;i<l;i++){h[list[i][0]].addClass(css[list[i][1]])}}function fixColumnWidth(table,$headers){var c=table.config;if(c.widthFixed){var colgroup=$("<colgroup>");$("tr:first td",table.tBodies[0]).each(function(){colgroup.append($("<col>").css("width",$(this).width()))});$(table).prepend(colgroup)}}function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;i<l;i++){var s=sortList[i],o=c.headerList[s[0]];o.count=s[1];o.count++}}var sortWrapper;function multisort(table,sortList,cache){if(table.config.debug){var sortTime=new Date()}var dynamicExp="sortWrapper = function(a,b) {",l=sortList.length;for(var i=0;i<l;i++){var c=sortList[i][0];var order=sortList[i][1];var s=(table.config.parsers[c].type=="text")?((order==0)?makeSortFunction("text","asc",c):makeSortFunction("text","desc",c)):((order==0)?makeSortFunction("numeric","asc",c):makeSortFunction("numeric","desc",c));var e="e"+i;dynamicExp+="var "+e+" = "+s;dynamicExp+="if("+e+") { return "+e+"; } ";dynamicExp+="else { "}var orgOrderCol=cache.normalized[0].length-1;dynamicExp+="return a["+orgOrderCol+"]-b["+orgOrderCol+"];";for(var i=0;i<l;i++){dynamicExp+="}; "}dynamicExp+="return 0; ";dynamicExp+="}; ";if(table.config.debug){benchmark("Evaling expression:"+dynamicExp,new Date())}eval(dynamicExp);cache.normalized.sort(sortWrapper);if(table.config.debug){benchmark("Sorting on "+sortList.toString()+" and dir "+order+" time:",sortTime)}return cache}function makeSortFunction(type,direction,index){var a="a["+index+"]",b="b["+index+"]";if(type=="text"&&direction=="asc"){return"("+a+" == "+b+" ? 0 : ("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : ("+a+" < "+b+") ? -1 : 1 )));"}else{if(type=="text"&&direction=="desc"){return"("+a+" == "+b+" ? 0 : ("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : ("+b+" < "+a+") ? -1 : 1 )));"}else{if(type=="numeric"&&direction=="asc"){return"("+a+" === null && "+b+" === null) ? 0 :("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : "+a+" - "+b+"));"}else{if(type=="numeric"&&direction=="desc"){return"("+a+" === null && "+b+" === null) ? 0 :("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : "+b+" - "+a+"));"}}}}}function makeSortText(i){return"((a["+i+"] < b["+i+"]) ? -1 : ((a["+i+"] > b["+i+"]) ? 1 : 0));"}function makeSortTextDesc(i){return"((b["+i+"] < a["+i+"]) ? -1 : ((b["+i+"] > a["+i+"]) ? 1 : 0));"}function makeSortNumeric(i){return"a["+i+"]-b["+i+"];"}function makeSortNumericDesc(i){return"b["+i+"]-a["+i+"];"}function sortText(a,b){if(table.config.sortLocaleCompare){return a.localeCompare(b)}return((a<b)?-1:((a>b)?1:0))}function sortTextDesc(a,b){if(table.config.sortLocaleCompare){return b.localeCompare(a)}return((b<a)?-1:((b>a)?1:0))}function sortNumeric(a,b){return a-b}function sortNumericDesc(a,b){return b-a}function getCachedSortType(parsers,i){return parsers[i].type}this.construct=function(settings){return this.each(function(){if(!this.tHead||!this.tBodies){return}var $this,$document,$headers,cache,config,shiftDown=0,sortOrder;this.config={};config=$.extend(this.config,$.tablesorter.defaults,settings);$this=$(this);$.data(this,"tablesorter",config);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){var totalRows=($this[0].tBodies[0]&&$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&&totalRows>0){$this.trigger("sortStart");var $cell=$(this);var i=this.column;this.order=this.count++%2;if(this.lockedOrder){this.order=this.lockedOrder}if(!e[config.sortMultiSortKey]){config.sortList=[];if(config.sortForce!=null){var a=config.sortForce;for(var j=0;j<a.length;j++){if(a[j][0]!=i){config.sortList.push(a[j])}}}config.sortList.push([i,this.order])}else{if(isValueInArray(i,config.sortList)){for(var j=0;j<config.sortList.length;j++){var s=config.sortList[j],o=config.headerList[s[0]];if(s[0]==i){o.count=s[1];o.count++;s[1]=o.count%2}}}else{config.sortList.push([i,this.order])}}setTimeout(function(){setHeadersCss($this[0],$headers,config.sortList,sortCSS);appendToTable($this[0],multisort($this[0],config.sortList,cache))},1);return false}}).mousedown(function(){if(config.cancelSelection){this.onselectstart=function(){return false};return false}});$this.bind("update",function(){var me=this;setTimeout(function(){me.config.parsers=buildParserCache(me,$headers);cache=buildCache(me)},1)}).bind("updateCell",function(e,cell){var config=this.config;var pos=[(cell.parentNode.rowIndex-1),cell.cellIndex];cache.normalized[pos[0]][pos[1]]=config.parsers[pos[1]].format(getElementText(config,cell),cell)}).bind("sorton",function(e,list){$(this).trigger("sortStart");config.sortList=list;var sortList=config.sortList;updateHeaderSortCount(this,sortList);setHeadersCss(this,$headers,sortList,sortCSS);appendToTable(this,multisort(this,sortList,cache))}).bind("appendCache",function(){appendToTable(this,cache)}).bind("applyWidgetId",function(e,id){getWidgetById(id).format(this)}).bind("applyWidgets",function(){applyWidget(this)});if($.metadata&&($(this).metadata()&&$(this).metadata().sortlist)){config.sortList=$(this).metadata().sortlist}if(config.sortList.length>0){$this.trigger("sorton",[config.sortList])}applyWidget(this)})};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==parser.id.toLowerCase()){a=false}}if(a){parsers.push(parser)}};this.addWidget=function(widget){widgets.push(widget)};this.formatFloat=function(s){var i=parseFloat(s);return(isNaN(i))?0:i};this.formatInt=function(s){var i=parseInt(s);return(isNaN(i))?0:i};this.isDigit=function(s,config){return/^[-+]?\d*$/.test($.trim(s.replace(/[,.']/g,"")))};this.clearTableBody=function(table){if($.browser.msie){while(table.tBodies[0].firstChild){table.tBodies[0].removeChild(table.tBodies[0].firstChild)}}else{table.tBodies[0].innerHTML=""}}}});$.fn.extend({tablesorter:$.tablesorter.construct});var ts=$.tablesorter;ts.addParser({id:"text",is:function(s){return true},format:function(s){return $.trim(s.toLocaleLowerCase())},type:"text"});ts.addParser({id:"digit",is:function(s,table){var c=table.config;return $.tablesorter.isDigit(s,c)},format:function(s){return $.tablesorter.formatFloat(s)},type:"numeric"});ts.addParser({id:"currency",is:function(s){return/^[£$€?.]/.test(s)},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/[£$€]/g),""))},type:"numeric"});ts.addParser({id:"ipAddress",is:function(s){return/^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(s)},format:function(s){var a=s.split("."),r="",l=a.length;for(var i=0;i<l;i++){var item=a[i];if(item.length==2){r+="0"+item}else{r+=item}}return $.tablesorter.formatFloat(r)},type:"numeric"});ts.addParser({id:"url",is:function(s){return/^(https?|ftp|file):\/\/$/.test(s)},format:function(s){return jQuery.trim(s.replace(new RegExp(/(https?|ftp|file):\/\//),""))},type:"text"});ts.addParser({id:"isoDate",is:function(s){return/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(s)},format:function(s){return $.tablesorter.formatFloat((s!="")?new Date(s.replace(new RegExp(/-/g),"/")).getTime():"0")},type:"numeric"});ts.addParser({id:"percent",is:function(s){return/\%$/.test($.trim(s))},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/%/g),""))},type:"numeric"});ts.addParser({id:"usLongDate",is:function(s){return s.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/))},format:function(s){return $.tablesorter.formatFloat(new Date(s).getTime())},type:"numeric"});ts.addParser({id:"shortDate",is:function(s){return/\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(s)},format:function(s,table){var c=table.config;s=s.replace(/\-/g,"/");if(c.dateFormat=="us"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$1/$2")}if(c.dateFormat=="pt"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$2/$1")}else{if(c.dateFormat=="uk"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$2/$1")}else{if(c.dateFormat=="dd/mm/yy"||c.dateFormat=="dd-mm-yy"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/,"$1/$2/$3")}}}return $.tablesorter.formatFloat(new Date(s).getTime())},type:"numeric"});ts.addParser({id:"time",is:function(s){return/^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(s)},format:function(s){return $.tablesorter.formatFloat(new Date("2000/01/01 "+s).getTime())},type:"numeric"});ts.addParser({id:"metadata",is:function(s){return false},format:function(s,table,cell){var c=table.config,p=(!c.parserMetadataName)?"sortValue":c.parserMetadataName;return $(cell).metadata()[p]},type:"numeric"});ts.addWidget({id:"zebra",format:function(table){if(table.config.debug){var time=new Date()}var $tr,row=-1,odd;$("tr:visible",table.tBodies[0]).each(function(i){$tr=$(this);if(!$tr.hasClass(table.config.cssChildRow)){row++}odd=(row%2==0);$tr.removeClass(table.config.widgetZebra.css[odd?0:1]).addClass(table.config.widgetZebra.css[odd?1:0])});if(table.config.debug){$.tablesorter.benchmark("Applying Zebra widget",time)}}})})(jQuery);
/*!
 * jQuery UI Touch Punch 0.2.3
 *
 * Copyright 2011–2014, Dave Furfero
 * Dual licensed under the MIT or GPL Version 2 licenses.
 *
 * Depends:
 *  jquery.ui.widget.js
 *  jquery.ui.mouse.js
 */
(function(b){b.support.touch="ontouchend" in document;if(!b.support.touch){return}var d=b.ui.mouse.prototype,f=d._mouseInit,c=d._mouseDestroy,a;function e(h,i){if(h.originalEvent.touches.length>1){return}h.preventDefault();var j=h.originalEvent.changedTouches[0],g=document.createEvent("MouseEvents");g.initMouseEvent(i,true,true,window,1,j.screenX,j.screenY,j.clientX,j.clientY,false,false,false,false,0,null);h.target.dispatchEvent(g)}d._touchStart=function(h){var g=this;if(a||!g._mouseCapture(h.originalEvent.changedTouches[0])){return}a=true;g._touchMoved=false;e(h,"mouseover");e(h,"mousemove");e(h,"mousedown")};d._touchMove=function(g){if(!a){return}this._touchMoved=true;e(g,"mousemove")};d._touchEnd=function(g){if(!a){return}e(g,"mouseup");e(g,"mouseout");if(!this._touchMoved){e(g,"click")}a=false};d._mouseInit=function(){var g=this;g.element.bind({touchstart:b.proxy(g,"_touchStart"),touchmove:b.proxy(g,"_touchMove"),touchend:b.proxy(g,"_touchEnd")});f.call(g)};d._mouseDestroy=function(){var g=this;g.element.unbind({touchstart:b.proxy(g,"_touchStart"),touchmove:b.proxy(g,"_touchMove"),touchend:b.proxy(g,"_touchEnd")});c.call(g)}})(jQuery);(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{if(typeof exports!=="undefined"){module.exports=a(require("jquery"))}else{a(jQuery)}}}(function(a){var b=window.Slick||{};b=(function(){var c=0;function d(h,j){var g=this,e,i,f;g.defaults={accessibility:true,adaptiveHeight:false,appendArrows:a(h),appendDots:a(h),arrows:true,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="previous">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="next">Next</button>',autoplay:false,autoplaySpeed:3000,centerMode:false,centerPadding:"50px",cssEase:"ease",customPaging:function(l,k){return'<button type="button" data-role="none">'+(k+1)+"</button>"},dots:false,dotsClass:"slick-dots",draggable:true,easing:"linear",edgeFriction:0.35,fade:false,focusOnSelect:false,infinite:true,initialSlide:0,lazyLoad:"ondemand",mobileFirst:false,pauseOnHover:true,pauseOnDotsHover:false,respondTo:"window",responsive:null,rtl:false,slide:"",slidesToShow:1,slidesToScroll:1,speed:500,swipe:true,swipeToSlide:false,touchMove:true,touchThreshold:5,useCSS:true,variableWidth:false,vertical:false,waitForAnimate:true};g.initials={animating:false,dragging:false,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:false,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:false};a.extend(g,g.initials);g.activeBreakpoint=null;g.animType=null;g.animProp=null;g.breakpoints=[];g.breakpointSettings=[];g.cssTransitions=false;g.hidden="hidden";g.paused=false;g.positionProp=null;g.respondTo=null;g.shouldClick=true;g.$slider=a(h);g.$slidesCache=null;g.transformType=null;g.transitionType=null;g.visibilityChange="visibilitychange";g.windowWidth=0;g.windowTimer=null;e=a(h).data("slick")||{};g.options=a.extend({},g.defaults,e,j);g.currentSlide=g.options.initialSlide;g.originalSettings=g.options;i=g.options.responsive||null;if(i&&i.length>-1){g.respondTo=g.options.respondTo||"window";for(f in i){if(i.hasOwnProperty(f)){g.breakpoints.push(i[f].breakpoint);g.breakpointSettings[i[f].breakpoint]=i[f].settings}}g.breakpoints.sort(function(l,k){if(g.options.mobileFirst===true){return l-k}else{return k-l}})}if(typeof document.mozHidden!=="undefined"){g.hidden="mozHidden";g.visibilityChange="mozvisibilitychange"}else{if(typeof document.msHidden!=="undefined"){g.hidden="msHidden";g.visibilityChange="msvisibilitychange"}else{if(typeof document.webkitHidden!=="undefined"){g.hidden="webkitHidden";g.visibilityChange="webkitvisibilitychange"}}}g.autoPlay=a.proxy(g.autoPlay,g);g.autoPlayClear=a.proxy(g.autoPlayClear,g);g.changeSlide=a.proxy(g.changeSlide,g);g.clickHandler=a.proxy(g.clickHandler,g);g.selectHandler=a.proxy(g.selectHandler,g);g.setPosition=a.proxy(g.setPosition,g);g.swipeHandler=a.proxy(g.swipeHandler,g);g.dragHandler=a.proxy(g.dragHandler,g);g.keyHandler=a.proxy(g.keyHandler,g);g.autoPlayIterator=a.proxy(g.autoPlayIterator,g);g.instanceUid=c++;g.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/;g.init();g.checkResponsive(true)}return d}());b.prototype.addSlide=b.prototype.slickAdd=function(c,e,f){var d=this;if(typeof(e)==="boolean"){f=e;e=null}else{if(e<0||(e>=d.slideCount)){return false}}d.unload();if(typeof(e)==="number"){if(e===0&&d.$slides.length===0){a(c).appendTo(d.$slideTrack)}else{if(f){a(c).insertBefore(d.$slides.eq(e))}else{a(c).insertAfter(d.$slides.eq(e))}}}else{if(f===true){a(c).prependTo(d.$slideTrack)}else{a(c).appendTo(d.$slideTrack)}}d.$slides=d.$slideTrack.children(this.options.slide);d.$slideTrack.children(this.options.slide).detach();d.$slideTrack.append(d.$slides);d.$slides.each(function(g,h){a(h).attr("data-slick-index",g)});d.$slidesCache=d.$slides;d.reinit()};b.prototype.animateHeight=function(){var d=this;if(d.options.slidesToShow===1&&d.options.adaptiveHeight===true&&d.options.vertical===false){var c=d.$slides.eq(d.currentSlide).outerHeight(true);d.$list.animate({height:c},d.options.speed)}};b.prototype.animateSlide=function(f,e){var d={},c=this;c.animateHeight();if(c.options.rtl===true&&c.options.vertical===false){f=-f}if(c.transformsEnabled===false){if(c.options.vertical===false){c.$slideTrack.animate({left:f},c.options.speed,c.options.easing,e)}else{c.$slideTrack.animate({top:f},c.options.speed,c.options.easing,e)}}else{if(c.cssTransitions===false){if(c.options.rtl===true){c.currentLeft=-(c.currentLeft)}a({animStart:c.currentLeft}).animate({animStart:f},{duration:c.options.speed,easing:c.options.easing,step:function(g){g=Math.ceil(g);if(c.options.vertical===false){d[c.animType]="translate("+g+"px, 0px)";c.$slideTrack.css(d)}else{d[c.animType]="translate(0px,"+g+"px)";c.$slideTrack.css(d)}},complete:function(){if(e){e.call()}}})}else{c.applyTransition();f=Math.ceil(f);if(c.options.vertical===false){d[c.animType]="translate3d("+f+"px, 0px, 0px)"}else{d[c.animType]="translate3d(0px,"+f+"px, 0px)"}c.$slideTrack.css(d);if(e){setTimeout(function(){c.disableTransition();e.call()},c.options.speed)}}}};b.prototype.asNavFor=function(e){var d=this,c=d.options.asNavFor!==null?a(d.options.asNavFor).slick("getSlick"):null;if(c!==null){c.slideHandler(e,true)}};b.prototype.applyTransition=function(c){var d=this,e={};if(d.options.fade===false){e[d.transitionType]=d.transformType+" "+d.options.speed+"ms "+d.options.cssEase}else{e[d.transitionType]="opacity "+d.options.speed+"ms "+d.options.cssEase}if(d.options.fade===false){d.$slideTrack.css(e)}else{d.$slides.eq(c).css(e)}};b.prototype.autoPlay=function(){var c=this;if(c.autoPlayTimer){clearInterval(c.autoPlayTimer)}if(c.slideCount>c.options.slidesToShow&&c.paused!==true){c.autoPlayTimer=setInterval(c.autoPlayIterator,c.options.autoplaySpeed)}};b.prototype.autoPlayClear=function(){var c=this;if(c.autoPlayTimer){clearInterval(c.autoPlayTimer)}};b.prototype.autoPlayIterator=function(){var c=this;if(c.options.infinite===false){if(c.direction===1){if((c.currentSlide+1)===c.slideCount-1){c.direction=0}c.slideHandler(c.currentSlide+c.options.slidesToScroll)}else{if((c.currentSlide-1===0)){c.direction=1}c.slideHandler(c.currentSlide-c.options.slidesToScroll)}}else{c.slideHandler(c.currentSlide+c.options.slidesToScroll)}};b.prototype.buildArrows=function(){var c=this;if(c.options.arrows===true&&c.slideCount>c.options.slidesToShow){c.$prevArrow=a(c.options.prevArrow);c.$nextArrow=a(c.options.nextArrow);if(c.htmlExpr.test(c.options.prevArrow)){c.$prevArrow.appendTo(c.options.appendArrows)}if(c.htmlExpr.test(c.options.nextArrow)){c.$nextArrow.appendTo(c.options.appendArrows)}if(c.options.infinite!==true){c.$prevArrow.addClass("slick-disabled")}}};b.prototype.buildDots=function(){var d=this,e,c;if(d.options.dots===true&&d.slideCount>d.options.slidesToShow){c='<ul class="'+d.options.dotsClass+'">';for(e=0;e<=d.getDotCount();e+=1){c+="<li>"+d.options.customPaging.call(this,d,e)+"</li>"}c+="</ul>";d.$dots=a(c).appendTo(d.options.appendDots);d.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}};b.prototype.buildOut=function(){var c=this;c.$slides=c.$slider.children(c.options.slide+":not(.slick-cloned)").addClass("slick-slide");c.slideCount=c.$slides.length;c.$slides.each(function(d,e){a(e).attr("data-slick-index",d)});c.$slidesCache=c.$slides;c.$slider.addClass("slick-slider");c.$slideTrack=(c.slideCount===0)?a('<div class="slick-track"/>').appendTo(c.$slider):c.$slides.wrapAll('<div class="slick-track"/>').parent();c.$list=c.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent();c.$slideTrack.css("opacity",0);if(c.options.centerMode===true||c.options.swipeToSlide===true){c.options.slidesToScroll=1}a("img[data-lazy]",c.$slider).not("[src]").addClass("slick-loading");c.setupInfinite();c.buildArrows();c.buildDots();c.updateDots();if(c.options.accessibility===true){c.$list.prop("tabIndex",0)}c.setSlideClasses(typeof this.currentSlide==="number"?this.currentSlide:0);if(c.options.draggable===true){c.$list.addClass("draggable")}};b.prototype.checkResponsive=function(e){var d=this,c,i,h;var g=d.$slider.width();var f=window.innerWidth||a(window).width();if(d.respondTo==="window"){h=f}else{if(d.respondTo==="slider"){h=g}else{if(d.respondTo==="min"){h=Math.min(f,g)}}}if(d.originalSettings.responsive&&d.originalSettings.responsive.length>-1&&d.originalSettings.responsive!==null){i=null;for(c in d.breakpoints){if(d.breakpoints.hasOwnProperty(c)){if(d.originalSettings.mobileFirst===false){if(h<d.breakpoints[c]){i=d.breakpoints[c]}}else{if(h>d.breakpoints[c]){i=d.breakpoints[c]}}}}if(i!==null){if(d.activeBreakpoint!==null){if(i!==d.activeBreakpoint){d.activeBreakpoint=i;if(d.breakpointSettings[i]==="unslick"){d.unslick()}else{d.options=a.extend({},d.originalSettings,d.breakpointSettings[i]);if(e===true){d.currentSlide=d.options.initialSlide}d.refresh()}}}else{d.activeBreakpoint=i;if(d.breakpointSettings[i]==="unslick"){d.unslick()}else{d.options=a.extend({},d.originalSettings,d.breakpointSettings[i]);if(e===true){d.currentSlide=d.options.initialSlide}d.refresh()}}}else{if(d.activeBreakpoint!==null){d.activeBreakpoint=null;d.options=d.originalSettings;if(e===true){d.currentSlide=d.options.initialSlide}d.refresh()}}}};b.prototype.changeSlide=function(g,j){var e=this,c=a(g.target),i,f,h;c.is("a")&&g.preventDefault();h=(e.slideCount%e.options.slidesToScroll!==0);i=h?0:(e.slideCount-e.currentSlide)%e.options.slidesToScroll;switch(g.data.message){case"previous":f=i===0?e.options.slidesToScroll:e.options.slidesToShow-i;if(e.slideCount>e.options.slidesToShow){e.slideHandler(e.currentSlide-f,false,j)}break;case"next":f=i===0?e.options.slidesToScroll:i;if(e.slideCount>e.options.slidesToShow){e.slideHandler(e.currentSlide+f,false,j)}break;case"index":var d=g.data.index===0?0:g.data.index||a(g.target).parent().index()*e.options.slidesToScroll;e.slideHandler(e.checkNavigable(d),false,j);break;default:return}};b.prototype.checkNavigable=function(d){var c=this,e,f;e=c.getNavigableIndexes();f=0;if(d>e[e.length-1]){d=e[e.length-1]}else{for(var g in e){if(d<e[g]){d=f;break}f=e[g]}}return d};b.prototype.clickHandler=function(d){var c=this;if(c.shouldClick===false){d.stopImmediatePropagation();d.stopPropagation();d.preventDefault()}};b.prototype.destroy=function(){var c=this;c.autoPlayClear();c.touchObject={};a(".slick-cloned",c.$slider).remove();if(c.$dots){c.$dots.remove()}if(c.$prevArrow&&(typeof c.options.prevArrow!=="object")){c.$prevArrow.remove()}if(c.$nextArrow&&(typeof c.options.nextArrow!=="object")){c.$nextArrow.remove()}c.$slides.removeClass("slick-slide slick-active slick-center slick-visible").attr("aria-hidden","true").removeAttr("data-slick-index").css({position:"",left:"",top:"",zIndex:"",opacity:"",width:""});c.$slider.removeClass("slick-slider");c.$slider.removeClass("slick-initialized");c.$list.off(".slick");a(window).off(".slick-"+c.instanceUid);a(document).off(".slick-"+c.instanceUid);c.$slider.html(c.$slides)};b.prototype.disableTransition=function(c){var d=this,e={};e[d.transitionType]="";if(d.options.fade===false){d.$slideTrack.css(e)}else{d.$slides.eq(c).css(e)}};b.prototype.fadeSlide=function(d,e){var c=this;if(c.cssTransitions===false){c.$slides.eq(d).css({zIndex:1000});c.$slides.eq(d).animate({opacity:1},c.options.speed,c.options.easing,e)}else{c.applyTransition(d);c.$slides.eq(d).css({opacity:1,zIndex:1000});if(e){setTimeout(function(){c.disableTransition(d);e.call()},c.options.speed)}}};b.prototype.filterSlides=b.prototype.slickFilter=function(d){var c=this;if(d!==null){c.unload();c.$slideTrack.children(this.options.slide).detach();c.$slidesCache.filter(d).appendTo(c.$slideTrack);c.reinit()}};b.prototype.getCurrent=b.prototype.slickCurrentSlide=function(){var c=this;return c.currentSlide};b.prototype.getDotCount=function(){var d=this;var f=0;var c=0;var e=0;if(d.options.infinite===true){e=Math.ceil(d.slideCount/d.options.slidesToScroll)}else{if(d.options.centerMode===true){e=d.slideCount}else{while(f<d.slideCount){++e;f=c+d.options.slidesToShow;c+=d.options.slidesToScroll<=d.options.slidesToShow?d.options.slidesToScroll:d.options.slidesToShow}}}return e-1};b.prototype.getLeft=function(f){var d=this,h,e,c=0,g;d.slideOffset=0;e=d.$slides.first().outerHeight();if(d.options.infinite===true){if(d.slideCount>d.options.slidesToShow){d.slideOffset=(d.slideWidth*d.options.slidesToShow)*-1;c=(e*d.options.slidesToShow)*-1}if(d.slideCount%d.options.slidesToScroll!==0){if(f+d.options.slidesToScroll>d.slideCount&&d.slideCount>d.options.slidesToShow){if(f>d.slideCount){d.slideOffset=((d.options.slidesToShow-(f-d.slideCount))*d.slideWidth)*-1;c=((d.options.slidesToShow-(f-d.slideCount))*e)*-1}else{d.slideOffset=((d.slideCount%d.options.slidesToScroll)*d.slideWidth)*-1;c=((d.slideCount%d.options.slidesToScroll)*e)*-1}}}}else{if(f+d.options.slidesToShow>d.slideCount){d.slideOffset=((f+d.options.slidesToShow)-d.slideCount)*d.slideWidth;c=((f+d.options.slidesToShow)-d.slideCount)*e}}if(d.slideCount<=d.options.slidesToShow){d.slideOffset=0;c=0}if(d.options.centerMode===true&&d.options.infinite===true){d.slideOffset+=d.slideWidth*Math.floor(d.options.slidesToShow/2)-d.slideWidth}else{if(d.options.centerMode===true){d.slideOffset=0;d.slideOffset+=d.slideWidth*Math.floor(d.options.slidesToShow/2)}}if(d.options.vertical===false){h=((f*d.slideWidth)*-1)+d.slideOffset}else{h=((f*e)*-1)+c}if(d.options.variableWidth===true){if(d.slideCount<=d.options.slidesToShow||d.options.infinite===false){g=d.$slideTrack.children(".slick-slide").eq(f)}else{g=d.$slideTrack.children(".slick-slide").eq(f+d.options.slidesToShow)}h=g[0]?g[0].offsetLeft*-1:0;if(d.options.centerMode===true){if(d.options.infinite===false){g=d.$slideTrack.children(".slick-slide").eq(f)}else{g=d.$slideTrack.children(".slick-slide").eq(f+d.options.slidesToShow+1)}h=g[0]?g[0].offsetLeft*-1:0;h+=(d.$list.width()-g.outerWidth())/2}}return h};b.prototype.getOption=b.prototype.slickGetOption=function(d){var c=this;return c.options[d]};b.prototype.getNavigableIndexes=function(){var f=this,g=0,d=0,e=[],c;if(f.options.infinite===false){c=f.slideCount-f.options.slidesToShow+1;if(f.options.centerMode===true){c=f.slideCount}}else{g=f.slideCount*-1;d=(f.slideCount*-1)-(f.options.slidesToScroll-(f.slideCount%f.options.slidesToScroll));c=f.slideCount*2}while(g<c){e.push(g);g=d+f.options.slidesToScroll;d+=f.options.slidesToScroll<=f.options.slidesToShow?f.options.slidesToScroll:f.options.slidesToShow}if(a.inArray(e,f.slideCount-f.options.slidesToShow)===-1){e.push(f.options.slidesToShow*e.length)}return e};b.prototype.getSlick=function(){return this};b.prototype.getSlideCount=function(){var e=this,d,f,c;c=e.options.centerMode===true?e.slideWidth*Math.floor(e.options.slidesToShow/2):0;if(e.options.swipeToSlide===true){e.$slideTrack.find(".slick-slide").each(function(h,g){if(g.offsetLeft-c+(a(g).outerWidth()/2)>(e.swipeLeft*-1)){f=g;return false}});d=Math.abs(a(f).attr("data-slick-index")-e.currentSlide)||1;return d}else{return e.options.slidesToScroll}};b.prototype.goTo=b.prototype.slickGoTo=function(c,e){var d=this;d.changeSlide({data:{message:"index",index:parseInt(c)}},e)};b.prototype.init=function(){var c=this;if(!a(c.$slider).hasClass("slick-initialized")){a(c.$slider).addClass("slick-initialized");c.buildOut();c.setProps();c.startLoad();c.loadSlider();c.initializeEvents();c.updateArrows();c.updateDots()}c.$slider.trigger("init",[c])};b.prototype.initArrowEvents=function(){var c=this;if(c.options.arrows===true&&c.slideCount>c.options.slidesToShow){c.$prevArrow.on("click.slick",{message:"previous"},c.changeSlide);c.$nextArrow.on("click.slick",{message:"next"},c.changeSlide)}};b.prototype.initDotEvents=function(){var c=this;if(c.options.dots===true&&c.slideCount>c.options.slidesToShow){a("li",c.$dots).on("click.slick",{message:"index"},c.changeSlide)}if(c.options.dots===true&&c.options.pauseOnDotsHover===true&&c.options.autoplay===true){a("li",c.$dots).on("mouseenter.slick",function(){c.paused=true;c.autoPlayClear()}).on("mouseleave.slick",function(){c.paused=false;c.autoPlay()})}};b.prototype.initializeEvents=function(){var c=this;c.initArrowEvents();c.initDotEvents();c.$list.on("touchstart.slick mousedown.slick",{action:"start"},c.swipeHandler);c.$list.on("touchmove.slick mousemove.slick",{action:"move"},c.swipeHandler);c.$list.on("touchend.slick mouseup.slick",{action:"end"},c.swipeHandler);c.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},c.swipeHandler);c.$list.on("click.slick",c.clickHandler);if(c.options.autoplay===true){a(document).on(c.visibilityChange,function(){c.visibility()});if(c.options.pauseOnHover===true){c.$list.on("mouseenter.slick",function(){c.paused=true;c.autoPlayClear()});c.$list.on("mouseleave.slick",function(){c.paused=false;c.autoPlay()})}}if(c.options.accessibility===true){c.$list.on("keydown.slick",c.keyHandler)}if(c.options.focusOnSelect===true){a(c.$slideTrack).children().on("click.slick",c.selectHandler)}a(window).on("orientationchange.slick.slick-"+c.instanceUid,function(){c.checkResponsive();c.setPosition()});a(window).on("resize.slick.slick-"+c.instanceUid,function(){if(a(window).width()!==c.windowWidth){clearTimeout(c.windowDelay);c.windowDelay=window.setTimeout(function(){c.windowWidth=a(window).width();c.checkResponsive();c.setPosition()},50)}});a("*[draggable!=true]",c.$slideTrack).on("dragstart",function(d){d.preventDefault()});a(window).on("load.slick.slick-"+c.instanceUid,c.setPosition);a(document).on("ready.slick.slick-"+c.instanceUid,c.setPosition)};b.prototype.initUI=function(){var c=this;if(c.options.arrows===true&&c.slideCount>c.options.slidesToShow){c.$prevArrow.show();c.$nextArrow.show()}if(c.options.dots===true&&c.slideCount>c.options.slidesToShow){c.$dots.show()}if(c.options.autoplay===true){c.autoPlay()}};b.prototype.keyHandler=function(d){var c=this;if(d.keyCode===37&&c.options.accessibility===true){c.changeSlide({data:{message:"previous"}})}else{if(d.keyCode===39&&c.options.accessibility===true){c.changeSlide({data:{message:"next"}})}}};b.prototype.lazyLoad=function(){var e=this,c,h,g,f;function d(i){a("img[data-lazy]",i).each(function(){var j=a(this),k=a(this).attr("data-lazy");j.load(function(){j.animate({opacity:1},200)}).css({opacity:0}).attr("src",k).removeAttr("data-lazy").removeClass("slick-loading")})}if(e.options.centerMode===true){if(e.options.infinite===true){g=e.currentSlide+(e.options.slidesToShow/2+1);f=g+e.options.slidesToShow+2}else{g=Math.max(0,e.currentSlide-(e.options.slidesToShow/2+1));f=2+(e.options.slidesToShow/2+1)+e.currentSlide}}else{g=e.options.infinite?e.options.slidesToShow+e.currentSlide:e.currentSlide;f=g+e.options.slidesToShow;if(e.options.fade===true){if(g>0){g--}if(f<=e.slideCount){f++}}}c=e.$slider.find(".slick-slide").slice(g,f);d(c);if(e.slideCount<=e.options.slidesToShow){h=e.$slider.find(".slick-slide");d(h)}else{if(e.currentSlide>=e.slideCount-e.options.slidesToShow){h=e.$slider.find(".slick-cloned").slice(0,e.options.slidesToShow);d(h)}else{if(e.currentSlide===0){h=e.$slider.find(".slick-cloned").slice(e.options.slidesToShow*-1);d(h)}}}};b.prototype.loadSlider=function(){var c=this;c.setPosition();c.$slideTrack.css({opacity:1});c.$slider.removeClass("slick-loading");c.initUI();if(c.options.lazyLoad==="progressive"){c.progressiveLazyLoad()}};b.prototype.next=b.prototype.slickNext=function(){var c=this;c.changeSlide({data:{message:"next"}})};b.prototype.pause=b.prototype.slickPause=function(){var c=this;c.autoPlayClear();c.paused=true};b.prototype.play=b.prototype.slickPlay=function(){var c=this;c.paused=false;c.autoPlay()};b.prototype.postSlide=function(d){var c=this;c.$slider.trigger("afterChange",[c,d]);c.animating=false;c.setPosition();c.swipeLeft=null;if(c.options.autoplay===true&&c.paused===false){c.autoPlay()}};b.prototype.prev=b.prototype.slickPrev=function(){var c=this;c.changeSlide({data:{message:"previous"}})};b.prototype.progressiveLazyLoad=function(){var d=this,c,e;c=a("img[data-lazy]",d.$slider).length;if(c>0){e=a("img[data-lazy]",d.$slider).first();e.attr("src",e.attr("data-lazy")).removeClass("slick-loading").load(function(){e.removeAttr("data-lazy");d.progressiveLazyLoad();if(d.options.adaptiveHeight===true){d.setPosition()}}).error(function(){e.removeAttr("data-lazy");d.progressiveLazyLoad()})}};b.prototype.refresh=function(){var c=this,d=c.currentSlide;c.destroy();a.extend(c,c.initials);c.init();c.changeSlide({data:{message:"index",index:d}},true)};b.prototype.reinit=function(){var c=this;c.$slides=c.$slideTrack.children(c.options.slide).addClass("slick-slide");c.slideCount=c.$slides.length;if(c.currentSlide>=c.slideCount&&c.currentSlide!==0){c.currentSlide=c.currentSlide-c.options.slidesToScroll}if(c.slideCount<=c.options.slidesToShow){c.currentSlide=0}c.setProps();c.setupInfinite();c.buildArrows();c.updateArrows();c.initArrowEvents();c.buildDots();c.updateDots();c.initDotEvents();if(c.options.focusOnSelect===true){a(c.$slideTrack).children().on("click.slick",c.selectHandler)}c.setSlideClasses(0);c.setPosition();c.$slider.trigger("reInit",[c])};b.prototype.removeSlide=b.prototype.slickRemove=function(d,f,e){var c=this;if(typeof(d)==="boolean"){f=d;d=f===true?0:c.slideCount-1}else{d=f===true?--d:d}if(c.slideCount<1||d<0||d>c.slideCount-1){return false}c.unload();if(e===true){c.$slideTrack.children().remove()}else{c.$slideTrack.children(this.options.slide).eq(d).remove()}c.$slides=c.$slideTrack.children(this.options.slide);c.$slideTrack.children(this.options.slide).detach();c.$slideTrack.append(c.$slides);c.$slidesCache=c.$slides;c.reinit()};b.prototype.setCSS=function(d){var e=this,f={},c,g;if(e.options.rtl===true){d=-d}c=e.positionProp=="left"?Math.ceil(d)+"px":"0px";g=e.positionProp=="top"?Math.ceil(d)+"px":"0px";f[e.positionProp]=d;if(e.transformsEnabled===false){e.$slideTrack.css(f)}else{f={};if(e.cssTransitions===false){f[e.animType]="translate("+c+", "+g+")";e.$slideTrack.css(f)}else{f[e.animType]="translate3d("+c+", "+g+", 0px)";e.$slideTrack.css(f)}}};b.prototype.setDimensions=function(){var d=this;if(d.options.vertical===false){if(d.options.centerMode===true){d.$list.css({padding:("0px "+d.options.centerPadding)})}}else{d.$list.height(d.$slides.first().outerHeight(true)*d.options.slidesToShow);if(d.options.centerMode===true){d.$list.css({padding:(d.options.centerPadding+" 0px")})}}d.listWidth=d.$list.width();d.listHeight=d.$list.height();if(d.options.vertical===false&&d.options.variableWidth===false){d.slideWidth=Math.ceil(d.listWidth/d.options.slidesToShow);d.$slideTrack.width(Math.ceil((d.slideWidth*d.$slideTrack.children(".slick-slide").length)))}else{if(d.options.variableWidth===true){var c=0;d.slideWidth=Math.ceil(d.listWidth/d.options.slidesToShow);d.$slideTrack.children(".slick-slide").each(function(){c+=d.listWidth});d.$slideTrack.width(Math.ceil(c)+1)}else{d.slideWidth=Math.ceil(d.listWidth);d.$slideTrack.height(Math.ceil((d.$slides.first().outerHeight(true)*d.$slideTrack.children(".slick-slide").length)))}}var e=d.$slides.first().outerWidth(true)-d.$slides.first().width();if(d.options.variableWidth===false){d.$slideTrack.children(".slick-slide").width(d.slideWidth-e)}};b.prototype.setFade=function(){var c=this,d;c.$slides.each(function(e,f){d=(c.slideWidth*e)*-1;if(c.options.rtl===true){a(f).css({position:"relative",right:d,top:0,zIndex:800,opacity:0})}else{a(f).css({position:"relative",left:d,top:0,zIndex:800,opacity:0})}});c.$slides.eq(c.currentSlide).css({zIndex:900,opacity:1})};b.prototype.setHeight=function(){var d=this;if(d.options.slidesToShow===1&&d.options.adaptiveHeight===true&&d.options.vertical===false){var c=d.$slides.eq(d.currentSlide).outerHeight(true);d.$list.css("height",c)}};b.prototype.setOption=b.prototype.slickSetOption=function(e,f,d){var c=this;c.options[e]=f;if(d===true){c.unload();c.reinit()}};b.prototype.setPosition=function(){var c=this;c.setDimensions();c.setHeight();if(c.options.fade===false){c.setCSS(c.getLeft(c.currentSlide))}else{c.setFade()}c.$slider.trigger("setPosition",[c])};b.prototype.setProps=function(){var d=this,c=document.body.style;d.positionProp=d.options.vertical===true?"top":"left";if(d.positionProp==="top"){d.$slider.addClass("slick-vertical")}else{d.$slider.removeClass("slick-vertical")}if(c.WebkitTransition!==undefined||c.MozTransition!==undefined||c.msTransition!==undefined){if(d.options.useCSS===true){d.cssTransitions=true}}if(c.OTransform!==undefined){d.animType="OTransform";d.transformType="-o-transform";d.transitionType="OTransition";if(c.perspectiveProperty===undefined&&c.webkitPerspective===undefined){d.animType=false}}if(c.MozTransform!==undefined){d.animType="MozTransform";d.transformType="-moz-transform";d.transitionType="MozTransition";if(c.perspectiveProperty===undefined&&c.MozPerspective===undefined){d.animType=false}}if(c.webkitTransform!==undefined){d.animType="webkitTransform";d.transformType="-webkit-transform";d.transitionType="webkitTransition";if(c.perspectiveProperty===undefined&&c.webkitPerspective===undefined){d.animType=false}}if(c.msTransform!==undefined){d.animType="msTransform";d.transformType="-ms-transform";d.transitionType="msTransition";if(c.msTransform===undefined){d.animType=false}}if(c.transform!==undefined&&d.animType!==false){d.animType="transform";d.transformType="transform";d.transitionType="transition"}d.transformsEnabled=(d.animType!==null&&d.animType!==false)};b.prototype.setSlideClasses=function(f){var e=this,c,d,h,g;e.$slider.find(".slick-slide").removeClass("slick-active").attr("aria-hidden","true").removeClass("slick-center");d=e.$slider.find(".slick-slide");if(e.options.centerMode===true){c=Math.floor(e.options.slidesToShow/2);if(e.options.infinite===true){if(f>=c&&f<=(e.slideCount-1)-c){e.$slides.slice(f-c,f+c+1).addClass("slick-active").attr("aria-hidden","false")}else{h=e.options.slidesToShow+f;d.slice(h-c+1,h+c+2).addClass("slick-active").attr("aria-hidden","false")}if(f===0){d.eq(d.length-1-e.options.slidesToShow).addClass("slick-center")}else{if(f===e.slideCount-1){d.eq(e.options.slidesToShow).addClass("slick-center")}}}e.$slides.eq(f).addClass("slick-center")}else{if(f>=0&&f<=(e.slideCount-e.options.slidesToShow)){e.$slides.slice(f,f+e.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")}else{if(d.length<=e.options.slidesToShow){d.addClass("slick-active").attr("aria-hidden","false")}else{g=e.slideCount%e.options.slidesToShow;h=e.options.infinite===true?e.options.slidesToShow+f:f;if(e.options.slidesToShow==e.options.slidesToScroll&&(e.slideCount-f)<e.options.slidesToShow){d.slice(h-(e.options.slidesToShow-g),h+g).addClass("slick-active").attr("aria-hidden","false")}else{d.slice(h,h+e.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")}}}}if(e.options.lazyLoad==="ondemand"){e.lazyLoad()}};b.prototype.setupInfinite=function(){var c=this,d,f,e;if(c.options.fade===true){c.options.centerMode=false}if(c.options.infinite===true&&c.options.fade===false){f=null;if(c.slideCount>c.options.slidesToShow){if(c.options.centerMode===true){e=c.options.slidesToShow+1}else{e=c.options.slidesToShow}for(d=c.slideCount;d>(c.slideCount-e);d-=1){f=d-1;a(c.$slides[f]).clone(true).attr("id","").attr("data-slick-index",f-c.slideCount).prependTo(c.$slideTrack).addClass("slick-cloned")}for(d=0;d<e;d+=1){f=d;a(c.$slides[f]).clone(true).attr("id","").attr("data-slick-index",f+c.slideCount).appendTo(c.$slideTrack).addClass("slick-cloned")}c.$slideTrack.find(".slick-cloned").find("[id]").each(function(){a(this).attr("id","")})}}};b.prototype.selectHandler=function(e){var d=this;var c=parseInt(a(e.target).parents(".slick-slide").attr("data-slick-index"));if(!c){c=0}if(d.slideCount<=d.options.slidesToShow){d.$slider.find(".slick-slide").removeClass("slick-active").attr("aria-hidden","true");d.$slides.eq(c).addClass("slick-active").attr("aria-hidden","false");if(d.options.centerMode===true){d.$slider.find(".slick-slide").removeClass("slick-center");d.$slides.eq(c).addClass("slick-center")}d.asNavFor(c);return}d.slideHandler(c)};b.prototype.slideHandler=function(e,h,d){var c,k,g,i,f=null,j=this;h=h||false;if(j.animating===true&&j.options.waitForAnimate===true){return}if(j.options.fade===true&&j.currentSlide===e){return}if(j.slideCount<=j.options.slidesToShow){return}if(h===false){j.asNavFor(e)}c=e;f=j.getLeft(c);i=j.getLeft(j.currentSlide);j.currentLeft=j.swipeLeft===null?i:j.swipeLeft;if(j.options.infinite===false&&j.options.centerMode===false&&(e<0||e>j.getDotCount()*j.options.slidesToScroll)){if(j.options.fade===false){c=j.currentSlide;if(d!==true){j.animateSlide(i,function(){j.postSlide(c)})}else{j.postSlide(c)}}return}else{if(j.options.infinite===false&&j.options.centerMode===true&&(e<0||e>(j.slideCount-j.options.slidesToScroll))){if(j.options.fade===false){c=j.currentSlide;if(d!==true){j.animateSlide(i,function(){j.postSlide(c)})}else{j.postSlide(c)}}return}}if(j.options.autoplay===true){clearInterval(j.autoPlayTimer)}if(c<0){if(j.slideCount%j.options.slidesToScroll!==0){k=j.slideCount-(j.slideCount%j.options.slidesToScroll)}else{k=j.slideCount+c}}else{if(c>=j.slideCount){if(j.slideCount%j.options.slidesToScroll!==0){k=0}else{k=c-j.slideCount}}else{k=c}}j.animating=true;j.$slider.trigger("beforeChange",[j,j.currentSlide,k]);g=j.currentSlide;j.currentSlide=k;j.setSlideClasses(j.currentSlide);j.updateDots();j.updateArrows();if(j.options.fade===true){if(d!==true){j.fadeSlide(k,function(){j.postSlide(k)})}else{j.postSlide(k)}j.animateHeight();return}if(d!==true){j.animateSlide(f,function(){j.postSlide(k)})}else{j.postSlide(k)}};b.prototype.startLoad=function(){var c=this;if(c.options.arrows===true&&c.slideCount>c.options.slidesToShow){c.$prevArrow.hide();c.$nextArrow.hide()}if(c.options.dots===true&&c.slideCount>c.options.slidesToShow){c.$dots.hide()}c.$slider.addClass("slick-loading")};b.prototype.swipeDirection=function(){var c,f,e,g,d=this;c=d.touchObject.startX-d.touchObject.curX;f=d.touchObject.startY-d.touchObject.curY;e=Math.atan2(f,c);g=Math.round(e*180/Math.PI);if(g<0){g=360-Math.abs(g)}if((g<=45)&&(g>=0)){return(d.options.rtl===false?"left":"right")}if((g<=360)&&(g>=315)){return(d.options.rtl===false?"left":"right")}if((g>=135)&&(g<=225)){return(d.options.rtl===false?"right":"left")}return"vertical"};b.prototype.swipeEnd=function(e){var d=this,c;d.dragging=false;d.shouldClick=(d.touchObject.swipeLength>10)?false:true;if(d.touchObject.curX===undefined){return false}if(d.touchObject.edgeHit===true){d.$slider.trigger("edge",[d,d.swipeDirection()])}if(d.touchObject.swipeLength>=d.touchObject.minSwipe){switch(d.swipeDirection()){case"left":c=d.options.swipeToSlide?d.checkNavigable(d.currentSlide+d.getSlideCount()):d.currentSlide+d.getSlideCount();d.slideHandler(c);d.currentDirection=0;d.touchObject={};d.$slider.trigger("swipe",[d,"left"]);break;case"right":c=d.options.swipeToSlide?d.checkNavigable(d.currentSlide-d.getSlideCount()):d.currentSlide-d.getSlideCount();d.slideHandler(c);d.currentDirection=1;d.touchObject={};d.$slider.trigger("swipe",[d,"right"]);break}}else{if(d.touchObject.startX!==d.touchObject.curX){d.slideHandler(d.currentSlide);d.touchObject={}}}};b.prototype.swipeHandler=function(d){var c=this;if((c.options.swipe===false)||("ontouchend" in document&&c.options.swipe===false)){return}else{if(c.options.draggable===false&&d.type.indexOf("mouse")!==-1){return}}c.touchObject.fingerCount=d.originalEvent&&d.originalEvent.touches!==undefined?d.originalEvent.touches.length:1;c.touchObject.minSwipe=c.listWidth/c.options.touchThreshold;switch(d.data.action){case"start":c.swipeStart(d);break;case"move":c.swipeMove(d);break;case"end":c.swipeEnd(d);break}};b.prototype.swipeMove=function(f){var e=this,j=false,h,d,g,c,i;i=f.originalEvent!==undefined?f.originalEvent.touches:null;if(!e.dragging||i&&i.length!==1){return false}h=e.getLeft(e.currentSlide);e.touchObject.curX=i!==undefined?i[0].pageX:f.clientX;e.touchObject.curY=i!==undefined?i[0].pageY:f.clientY;e.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(e.touchObject.curX-e.touchObject.startX,2)));d=e.swipeDirection();if(d==="vertical"){return}if(f.originalEvent!==undefined&&e.touchObject.swipeLength>4){f.preventDefault()}c=(e.options.rtl===false?1:-1)*(e.touchObject.curX>e.touchObject.startX?1:-1);g=e.touchObject.swipeLength;e.touchObject.edgeHit=false;if(e.options.infinite===false){if((e.currentSlide===0&&d==="right")||(e.currentSlide>=e.getDotCount()&&d==="left")){g=e.touchObject.swipeLength*e.options.edgeFriction;e.touchObject.edgeHit=true}}if(e.options.vertical===false){e.swipeLeft=h+g*c}else{e.swipeLeft=h+(g*(e.$list.height()/e.listWidth))*c}if(e.options.fade===true||e.options.touchMove===false){return false}if(e.animating===true){e.swipeLeft=null;return false}e.setCSS(e.swipeLeft)};b.prototype.swipeStart=function(d){var c=this,e;if(c.touchObject.fingerCount!==1||c.slideCount<=c.options.slidesToShow){c.touchObject={};return false}if(d.originalEvent!==undefined&&d.originalEvent.touches!==undefined){e=d.originalEvent.touches[0]}c.touchObject.startX=c.touchObject.curX=e!==undefined?e.pageX:d.clientX;c.touchObject.startY=c.touchObject.curY=e!==undefined?e.pageY:d.clientY;c.dragging=true};b.prototype.unfilterSlides=b.prototype.slickUnfilter=function(){var c=this;if(c.$slidesCache!==null){c.unload();c.$slideTrack.children(this.options.slide).detach();c.$slidesCache.appendTo(c.$slideTrack);c.reinit()}};b.prototype.unload=function(){var c=this;a(".slick-cloned",c.$slider).remove();if(c.$dots){c.$dots.remove()}if(c.$prevArrow&&(typeof c.options.prevArrow!=="object")){c.$prevArrow.remove()}if(c.$nextArrow&&(typeof c.options.nextArrow!=="object")){c.$nextArrow.remove()}c.$slides.removeClass("slick-slide slick-active slick-visible").attr("aria-hidden","true").css("width","")};b.prototype.unslick=function(){var c=this;c.destroy()};b.prototype.updateArrows=function(){var d=this,c;c=Math.floor(d.options.slidesToShow/2);if(d.options.arrows===true&&d.options.infinite!==true&&d.slideCount>d.options.slidesToShow){d.$prevArrow.removeClass("slick-disabled");d.$nextArrow.removeClass("slick-disabled");if(d.currentSlide===0){d.$prevArrow.addClass("slick-disabled");d.$nextArrow.removeClass("slick-disabled")}else{if(d.currentSlide>=d.slideCount-d.options.slidesToShow&&d.options.centerMode===false){d.$nextArrow.addClass("slick-disabled");d.$prevArrow.removeClass("slick-disabled")}else{if(d.currentSlide>=d.slideCount-1&&d.options.centerMode===true){d.$nextArrow.addClass("slick-disabled");d.$prevArrow.removeClass("slick-disabled")}}}}};b.prototype.updateDots=function(){var c=this;if(c.$dots!==null){c.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true");c.$dots.find("li").eq(Math.floor(c.currentSlide/c.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false")}};b.prototype.visibility=function(){var c=this;if(document[c.hidden]){c.paused=true;c.autoPlayClear()}else{c.paused=false;c.autoPlay()}};a.fn.slick=function(){var f=this,h=arguments[0],e=Array.prototype.slice.call(arguments,1),c=f.length,g=0,d;for(g;g<c;g++){if(typeof h=="object"||typeof h=="undefined"){f[g].slick=new b(f[g],h)}else{d=f[g].slick[h].apply(f[g].slick,e)}if(typeof d!="undefined"){return d}}return f};a(function(){a("[data-slick]").slick()})}));function MarkerClusterer(e,a,d){this.extend(MarkerClusterer,google.maps.OverlayView);this.map_=e;this.markers_=[];this.clusters_=[];this.sizes=[53,56,66,78,90];this.styles_=[];this.ready_=false;var b=d||{};this.gridSize_=b.gridSize||60;this.minClusterSize_=b.minimumClusterSize||2;this.maxZoom_=b.maxZoom||null;this.styles_=b.styles||[];this.imagePath_=b.imagePath||this.MARKER_CLUSTER_IMAGE_PATH_;this.imageExtension_=b.imageExtension||this.MARKER_CLUSTER_IMAGE_EXTENSION_;this.zoomOnClick_=true;if(b.zoomOnClick!=undefined){this.zoomOnClick_=b.zoomOnClick}this.averageCenter_=false;if(b.averageCenter!=undefined){this.averageCenter_=b.averageCenter}this.setupStyles_();this.setMap(e);this.prevZoom_=this.map_.getZoom();var c=this;google.maps.event.addListener(this.map_,"zoom_changed",function(){var g=c.map_.getZoom();var h=c.map_.minZoom||0;var f=Math.min(c.map_.maxZoom||100,c.map_.mapTypes[c.map_.getMapTypeId()].maxZoom);g=Math.min(Math.max(g,h),f);if(c.prevZoom_!=g){c.prevZoom_=g;c.resetViewport()}});google.maps.event.addListener(this.map_,"idle",function(){c.redraw()});if(a&&(a.length||Object.keys(a).length)){this.addMarkers(a,false)}}MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_PATH_="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/images/m";MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_EXTENSION_="png";MarkerClusterer.prototype.extend=function(b,a){return(function(c){for(var d in c.prototype){this.prototype[d]=c.prototype[d]}return this}).apply(b,[a])};MarkerClusterer.prototype.onAdd=function(){this.setReady_(true)};MarkerClusterer.prototype.draw=function(){};MarkerClusterer.prototype.setupStyles_=function(){if(this.styles_.length){return}for(var b=0,a;a=this.sizes[b];b++){this.styles_.push({url:this.imagePath_+(b+1)+"."+this.imageExtension_,height:a,width:a})}};MarkerClusterer.prototype.fitMapToMarkers=function(){var d=this.getMarkers();var c=new google.maps.LatLngBounds();for(var b=0,a;a=d[b];b++){c.extend(a.getPosition())}this.map_.fitBounds(c)};MarkerClusterer.prototype.setStyles=function(a){this.styles_=a};MarkerClusterer.prototype.getStyles=function(){return this.styles_};MarkerClusterer.prototype.isZoomOnClick=function(){return this.zoomOnClick_};MarkerClusterer.prototype.isAverageCenter=function(){return this.averageCenter_};MarkerClusterer.prototype.getMarkers=function(){return this.markers_};MarkerClusterer.prototype.getTotalMarkers=function(){return this.markers_.length};MarkerClusterer.prototype.setMaxZoom=function(a){this.maxZoom_=a};MarkerClusterer.prototype.getMaxZoom=function(){return this.maxZoom_};MarkerClusterer.prototype.calculator_=function(e,d){var a=0;var c=e.length;var b=c;while(b!==0){b=parseInt(b/10,10);a++}a=Math.min(a,d);return{text:c,index:a}};MarkerClusterer.prototype.setCalculator=function(a){this.calculator_=a};MarkerClusterer.prototype.getCalculator=function(){return this.calculator_};MarkerClusterer.prototype.addMarkers=function(d,c){if(d.length){for(var b=0,a;a=d[b];b++){this.pushMarkerTo_(a)}}else{if(Object.keys(d).length){for(var a in d){this.pushMarkerTo_(d[a])}}}if(!c){this.redraw()}};MarkerClusterer.prototype.pushMarkerTo_=function(a){a.isAdded=false;if(a.draggable){var b=this;google.maps.event.addListener(a,"dragend",function(){a.isAdded=false;b.repaint()})}this.markers_.push(a)};MarkerClusterer.prototype.addMarker=function(a,b){this.pushMarkerTo_(a);if(!b){this.redraw()}};MarkerClusterer.prototype.removeMarker_=function(b){var c=-1;if(this.markers_.indexOf){c=this.markers_.indexOf(b)}else{for(var d=0,a;a=this.markers_[d];d++){if(a==b){c=d;break}}}if(c==-1){return false}b.setMap(null);this.markers_.splice(c,1);return true};MarkerClusterer.prototype.removeMarker=function(a,b){var c=this.removeMarker_(a);if(!b&&c){this.resetViewport();this.redraw();return true}else{return false}};MarkerClusterer.prototype.removeMarkers=function(f,c){var e=false;for(var b=0,a;a=f[b];b++){var d=this.removeMarker_(a);e=e||d}if(!c&&e){this.resetViewport();this.redraw();return true}};MarkerClusterer.prototype.setReady_=function(a){if(!this.ready_){this.ready_=a;this.createClusters_()}};MarkerClusterer.prototype.getTotalClusters=function(){return this.clusters_.length};MarkerClusterer.prototype.getMap=function(){return this.map_};MarkerClusterer.prototype.setMap=function(a){this.map_=a};MarkerClusterer.prototype.getGridSize=function(){return this.gridSize_};MarkerClusterer.prototype.setGridSize=function(a){this.gridSize_=a};MarkerClusterer.prototype.getMinClusterSize=function(){return this.minClusterSize_};MarkerClusterer.prototype.setMinClusterSize=function(a){this.minClusterSize_=a};MarkerClusterer.prototype.getExtendedBounds=function(e){var c=this.getProjection();var f=new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng());var h=new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng());var d=c.fromLatLngToDivPixel(f);d.x+=this.gridSize_;d.y-=this.gridSize_;var b=c.fromLatLngToDivPixel(h);b.x-=this.gridSize_;b.y+=this.gridSize_;var g=c.fromDivPixelToLatLng(d);var a=c.fromDivPixelToLatLng(b);e.extend(g);e.extend(a);return e};MarkerClusterer.prototype.isMarkerInBounds_=function(a,b){return b.contains(a.getPosition())};MarkerClusterer.prototype.clearMarkers=function(){this.resetViewport(true);this.markers_=[]};MarkerClusterer.prototype.resetViewport=function(d){for(var c=0,a;a=this.clusters_[c];c++){a.remove()}for(var c=0,b;b=this.markers_[c];c++){b.isAdded=false;if(d){b.setMap(null)}}this.clusters_=[]};MarkerClusterer.prototype.repaint=function(){var a=this.clusters_.slice();this.clusters_.length=0;this.resetViewport();this.redraw();window.setTimeout(function(){for(var c=0,b;b=a[c];c++){b.remove()}},0)};MarkerClusterer.prototype.redraw=function(){this.createClusters_()};MarkerClusterer.prototype.distanceBetweenPoints_=function(j,h){if(!j||!h){return 0}var g=6371;var e=(h.lat()-j.lat())*Math.PI/180;var f=(h.lng()-j.lng())*Math.PI/180;var b=Math.sin(e/2)*Math.sin(e/2)+Math.cos(j.lat()*Math.PI/180)*Math.cos(h.lat()*Math.PI/180)*Math.sin(f/2)*Math.sin(f/2);var k=2*Math.atan2(Math.sqrt(b),Math.sqrt(1-b));var i=g*k;return i};MarkerClusterer.prototype.addToClosestCluster_=function(c){var j=40000;var f=null;var h=c.getPosition();for(var e=0,b;b=this.clusters_[e];e++){var a=b.getCenter();if(a){var g=this.distanceBetweenPoints_(a,c.getPosition());if(g<j){j=g;f=b}}}if(f&&f.isMarkerInClusterBounds(c)){f.addMarker(c)}else{var b=new Cluster(this);b.addMarker(c);this.clusters_.push(b)}};MarkerClusterer.prototype.createClusters_=function(){if(!this.ready_){return}var b=new google.maps.LatLngBounds(this.map_.getBounds().getSouthWest(),this.map_.getBounds().getNorthEast());var d=this.getExtendedBounds(b);for(var c=0,a;a=this.markers_[c];c++){if(!a.isAdded&&this.isMarkerInBounds_(a,d)){this.addToClosestCluster_(a)}}};function Cluster(a){this.markerClusterer_=a;this.map_=a.getMap();this.gridSize_=a.getGridSize();this.minClusterSize_=a.getMinClusterSize();this.averageCenter_=a.isAverageCenter();this.center_=null;this.markers_=[];this.bounds_=null;this.clusterIcon_=new ClusterIcon(this,a.getStyles(),a.getGridSize())}Cluster.prototype.isMarkerAlreadyAdded=function(b){if(this.markers_.indexOf){return this.markers_.indexOf(b)!=-1}else{for(var c=0,a;a=this.markers_[c];c++){if(a==b){return true}}}return false};Cluster.prototype.addMarker=function(c){if(this.isMarkerAlreadyAdded(c)){return false}if(!this.center_){this.center_=c.getPosition();this.calculateBounds_()}else{if(this.averageCenter_){var b=this.markers_.length+1;var f=(this.center_.lat()*(b-1)+c.getPosition().lat())/b;var d=(this.center_.lng()*(b-1)+c.getPosition().lng())/b;this.center_=new google.maps.LatLng(f,d);this.calculateBounds_()}}c.isAdded=true;this.markers_.push(c);var a=this.markers_.length;if(a<this.minClusterSize_&&c.getMap()!=this.map_){c.setMap(this.map_)}if(a==this.minClusterSize_){for(var e=0;e<a;e++){this.markers_[e].setMap(null)}}if(a>=this.minClusterSize_){c.setMap(null)}this.updateIcon();return true};Cluster.prototype.getMarkerClusterer=function(){return this.markerClusterer_};Cluster.prototype.getBounds=function(){var c=new google.maps.LatLngBounds(this.center_,this.center_);var d=this.getMarkers();for(var b=0,a;a=d[b];b++){c.extend(a.getPosition())}return c};Cluster.prototype.remove=function(){this.clusterIcon_.remove();this.markers_.length=0;delete this.markers_};Cluster.prototype.getSize=function(){return this.markers_.length};Cluster.prototype.getMarkers=function(){return this.markers_};Cluster.prototype.getCenter=function(){return this.center_};Cluster.prototype.calculateBounds_=function(){var a=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(a)};Cluster.prototype.isMarkerInClusterBounds=function(a){return this.bounds_.contains(a.getPosition())};Cluster.prototype.getMap=function(){return this.map_};Cluster.prototype.updateIcon=function(){var e=this.map_.getZoom();var f=this.markerClusterer_.getMaxZoom();if(f&&e>f){for(var c=0,a;a=this.markers_[c];c++){a.setMap(this.map_)}return}if(this.markers_.length<this.minClusterSize_){this.clusterIcon_.hide();return}var d=this.markerClusterer_.getStyles().length;var b=this.markerClusterer_.getCalculator()(this.markers_,d);this.clusterIcon_.setCenter(this.center_);this.clusterIcon_.setSums(b);this.clusterIcon_.show()};function ClusterIcon(a,c,b){a.getMarkerClusterer().extend(ClusterIcon,google.maps.OverlayView);this.styles_=c;this.padding_=b||0;this.cluster_=a;this.center_=null;this.map_=a.getMap();this.div_=null;this.sums_=null;this.visible_=false;this.setMap(this.map_)}ClusterIcon.prototype.triggerClusterClick=function(){var a=this.cluster_.getMarkerClusterer();google.maps.event.trigger(a,"clusterclick",this.cluster_);if(a.isZoomOnClick()){this.map_.fitBounds(this.cluster_.getBounds())}};ClusterIcon.prototype.onAdd=function(){this.div_=document.createElement("DIV");if(this.visible_){var c=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(c);this.div_.innerHTML=this.sums_.text}var a=this.getPanes();a.overlayMouseTarget.appendChild(this.div_);var b=this;google.maps.event.addDomListener(this.div_,"click",function(){b.triggerClusterClick()})};ClusterIcon.prototype.getPosFromLatLng_=function(b){var a=this.getProjection().fromLatLngToDivPixel(b);a.x-=parseInt(this.width_/2,10);a.y-=parseInt(this.height_/2,10);return a};ClusterIcon.prototype.draw=function(){if(this.visible_){var a=this.getPosFromLatLng_(this.center_);this.div_.style.top=a.y+"px";this.div_.style.left=a.x+"px"}};ClusterIcon.prototype.hide=function(){if(this.div_){this.div_.style.display="none"}this.visible_=false};ClusterIcon.prototype.show=function(){if(this.div_){var a=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(a);this.div_.style.display=""}this.visible_=true};ClusterIcon.prototype.remove=function(){this.setMap(null)};ClusterIcon.prototype.onRemove=function(){if(this.div_&&this.div_.parentNode){this.hide();this.div_.parentNode.removeChild(this.div_);this.div_=null}};ClusterIcon.prototype.setSums=function(a){this.sums_=a;this.text_=a.text;this.index_=a.index;if(this.div_){this.div_.innerHTML=a.text}this.useStyle()};ClusterIcon.prototype.useStyle=function(){var a=Math.max(0,this.sums_.index-1);a=Math.min(this.styles_.length-1,a);var b=this.styles_[a];this.url_=b.url;this.height_=b.height;this.width_=b.width;this.textColor_=b.textColor;this.anchor_=b.anchor;this.textSize_=b.textSize;this.backgroundPosition_=b.backgroundPosition};ClusterIcon.prototype.setCenter=function(a){this.center_=a};ClusterIcon.prototype.createCss=function(e){var d=[];d.push("background-image:url("+this.url_+");");var b=this.backgroundPosition_?this.backgroundPosition_:"0 0";d.push("background-position:"+b+";");if(typeof this.anchor_==="object"){if(typeof this.anchor_[0]==="number"&&this.anchor_[0]>0&&this.anchor_[0]<this.height_){d.push("height:"+(this.height_-this.anchor_[0])+"px; padding-top:"+this.anchor_[0]+"px;")}else{d.push("height:"+this.height_+"px; line-height:"+this.height_+"px;")}if(typeof this.anchor_[1]==="number"&&this.anchor_[1]>0&&this.anchor_[1]<this.width_){d.push("width:"+(this.width_-this.anchor_[1])+"px; padding-left:"+this.anchor_[1]+"px;")}else{d.push("width:"+this.width_+"px; text-align:center;")}}else{d.push("height:"+this.height_+"px; line-height:"+this.height_+"px; width:"+this.width_+"px; text-align:center;")}var a=this.textColor_?this.textColor_:"black";var c=this.textSize_?this.textSize_:11;d.push("cursor:pointer; top:"+e.y+"px; left:"+e.x+"px; color:"+a+"; position:absolute; font-size:"+c+"px; font-family:Arial,sans-serif; font-weight:bold");return d.join("")};window.MarkerClusterer=MarkerClusterer;MarkerClusterer.prototype.addMarker=MarkerClusterer.prototype.addMarker;MarkerClusterer.prototype.addMarkers=MarkerClusterer.prototype.addMarkers;MarkerClusterer.prototype.clearMarkers=MarkerClusterer.prototype.clearMarkers;MarkerClusterer.prototype.fitMapToMarkers=MarkerClusterer.prototype.fitMapToMarkers;MarkerClusterer.prototype.getCalculator=MarkerClusterer.prototype.getCalculator;MarkerClusterer.prototype.getGridSize=MarkerClusterer.prototype.getGridSize;MarkerClusterer.prototype.getExtendedBounds=MarkerClusterer.prototype.getExtendedBounds;MarkerClusterer.prototype.getMap=MarkerClusterer.prototype.getMap;MarkerClusterer.prototype.getMarkers=MarkerClusterer.prototype.getMarkers;MarkerClusterer.prototype.getMaxZoom=MarkerClusterer.prototype.getMaxZoom;MarkerClusterer.prototype.getStyles=MarkerClusterer.prototype.getStyles;MarkerClusterer.prototype.getTotalClusters=MarkerClusterer.prototype.getTotalClusters;MarkerClusterer.prototype.getTotalMarkers=MarkerClusterer.prototype.getTotalMarkers;MarkerClusterer.prototype.redraw=MarkerClusterer.prototype.redraw;MarkerClusterer.prototype.removeMarker=MarkerClusterer.prototype.removeMarker;MarkerClusterer.prototype.removeMarkers=MarkerClusterer.prototype.removeMarkers;MarkerClusterer.prototype.resetViewport=MarkerClusterer.prototype.resetViewport;MarkerClusterer.prototype.repaint=MarkerClusterer.prototype.repaint;MarkerClusterer.prototype.setCalculator=MarkerClusterer.prototype.setCalculator;MarkerClusterer.prototype.setGridSize=MarkerClusterer.prototype.setGridSize;MarkerClusterer.prototype.setMaxZoom=MarkerClusterer.prototype.setMaxZoom;MarkerClusterer.prototype.onAdd=MarkerClusterer.prototype.onAdd;MarkerClusterer.prototype.draw=MarkerClusterer.prototype.draw;Cluster.prototype.getCenter=Cluster.prototype.getCenter;Cluster.prototype.getSize=Cluster.prototype.getSize;Cluster.prototype.getMarkers=Cluster.prototype.getMarkers;ClusterIcon.prototype.onAdd=ClusterIcon.prototype.onAdd;ClusterIcon.prototype.draw=ClusterIcon.prototype.draw;ClusterIcon.prototype.onRemove=ClusterIcon.prototype.onRemove;Object.keys=Object.keys||function(c){var a=[];for(var b in c){if(c.hasOwnProperty(b)){a.push(b)}}return a};"undefined"==typeof jwplayer&&(jwplayer=function(a){if(jwplayer.api){return jwplayer.api.selectPlayer(a)}},jwplayer.version="6.11.4923",jwplayer.vid=document.createElement("video"),jwplayer.audio=document.createElement("audio"),jwplayer.source=document.createElement("source"),function(){var z={},C=Array.prototype,u=Object.prototype,B=C.slice,A=C.concat,D=u.toString,x=u.hasOwnProperty,o=C.map,E=C.forEach,y=C.filter,q=C.some,i=C.indexOf,u=Array.isArray,r=Object.keys,w=function(b){if(b instanceof w){return b}if(!(this instanceof w)){return new w(b)}},G=w.each=w.forEach=function(h,f,e){if(null==h){return h}if(E&&h.forEach===E){h.forEach(f,e)}else{if(h.length===+h.length){for(var j=0,a=h.length;j<a;j++){if(f.call(e,h[j],j,h)===z){return}}}else{for(var k=w.keys(h),j=0,a=k.length;j<a;j++){if(f.call(e,h[k[j]],k[j],h)===z){return}}}}return h};w.map=w.collect=function(d,e,f){var c=[];if(null==d){return c}if(o&&d.map===o){return d.map(e,f)}G(d,function(b,g,h){c.push(e.call(f,b,g,h))});return c};w.find=w.detect=function(d,e,f){var c;F(d,function(b,g,h){if(e.call(f,b,g,h)){return c=b,!0}});return c};w.filter=w.select=function(e,f,c){var g=[];if(null==e){return g}if(y&&e.filter===y){return e.filter(f,c)}G(e,function(b,h,d){f.call(c,b,h,d)&&g.push(b)});return g};var F=w.some=w.any=function(e,f,c){f||(f=w.identity);var h=!1;if(null==e){return h}if(q&&e.some===q){return e.some(f,c)}G(e,function(b,d,g){if(h||(h=f.call(c,b,d,g))){return z}});return !!h};w.size=function(b){return null==b?0:b.length===+b.length?b.length:w.keys(b).length};w.after=function(b,c){return function(){if(1>--b){return c.apply(this,arguments)}}};w.sortedIndex=function(j,k,f,n){f=null==f?w.identity:w.isFunction(f)?f:w.property(f);k=f.call(n,k);for(var e=0,p=j.length;e<p;){var h=e+p>>>1;f.call(n,j[h])<k?e=h+1:p=h}return e};w.find=w.detect=function(d,e,f){var c;F(d,function(g,h,b){if(e.call(f,g,h,b)){return c=g,!0}});return c};F=w.some=w.any=function(e,f,c){f||(f=w.identity);var h=!1;if(null==e){return h}if(q&&e.some===q){return e.some(f,c)}G(e,function(d,g,b){if(h||(h=f.call(c,d,g,b))){return z}});return !!h};w.contains=w.include=function(b,c){if(null==b){return !1}b.length!==+b.length&&(b=w.values(b));return 0<=w.indexOf(b,c)};w.difference=function(b){var c=A.apply(C,B.call(arguments,1));return w.filter(b,function(d){return !w.contains(c,d)})};w.without=function(b){return w.difference(b,B.call(arguments,1))};w.indexOf=function(f,h,e){if(null==f){return -1}var j=0,c=f.length;if(e){if("number"==typeof e){j=0>e?Math.max(0,c+e):e}else{return j=w.sortedIndex(f,h),f[j]===h?j:-1}}if(i&&f.indexOf===i){return f.indexOf(h,e)}for(;j<c;j++){if(f[j]===h){return j}}return -1};w.memoize=function(d,e){var c={};e||(e=w.identity);return function(){var a=e.apply(this,arguments);return w.has(c,a)?c[a]:c[a]=d.apply(this,arguments)}};w.keys=function(d){if(!w.isObject(d)){return[]}if(r){return r(d)}var e=[],c;for(c in d){w.has(d,c)&&e.push(c)}return e};w.pick=function(b){var c={},d=A.apply(C,B.call(arguments,1));G(d,function(a){a in b&&(c[a]=b[a])});return c};w.isArray=u||function(b){return"[object Array]"==D.call(b)};w.isObject=function(b){return b===Object(b)};G("Arguments Function String Number Date RegExp".split(" "),function(b){w["is"+b]=function(a){return D.call(a)=="[object "+b+"]"}});w.isArguments(arguments)||(w.isArguments=function(b){return !(!b||!w.has(b,"callee"))});"function"!==typeof/./&&(w.isFunction=function(b){return"function"===typeof b});w.isFinite=function(b){return isFinite(b)&&!isNaN(parseFloat(b))};w.isNaN=function(b){return w.isNumber(b)&&b!=+b};w.isBoolean=function(b){return !0===b||!1===b||"[object Boolean]"==D.call(b)};w.isNull=function(b){return null===b};w.isUndefined=function(b){return void 0===b};w.has=function(b,c){return x.call(b,c)};w.identity=function(b){return b};w.constant=function(b){return function(){return b}};w.property=function(b){return function(a){return a[b]}};this._=w}.call(jwplayer),function(j){function p(b){return function(){return i(b)}}function g(f,h,d,k,e){return function(){var b,n;if(e){d(f)}else{try{if(b=f.responseXML){if(n=b.firstChild,b.lastChild&&"parsererror"===b.lastChild.nodeName){k&&k("Invalid XML",h,f);return}}}catch(c){}if(b&&n){return d(f)}(b=m.parseXML(f.responseText))&&b.firstChild?(f=m.extend({},f,{responseXML:b}),d(f)):k&&k(f.responseText?"Invalid XML":h,h,f)}}}var m=j.utils={},l=j._;m.exists=function(b){switch(typeof b){case"string":return 0<b.length;case"object":return null!==b;case"undefined":return !1}return !0};m.styleDimension=function(b){return b+(0<b.toString().indexOf("%")?"":"px")};m.getAbsolutePath=function(h,n){m.exists(n)||(n=document.location.href);if(m.exists(h)){var d;if(m.exists(h)){d=h.indexOf("://");var r=h.indexOf("?");d=0<d&&(0>r||r>d)}else{d=void 0}if(d){return h}d=n.substring(0,n.indexOf("://")+3);var r=n.substring(d.length,n.indexOf("/",d.length+1)),f;0===h.indexOf("/")?f=h.split("/"):(f=n.split("?")[0],f=f.substring(d.length+r.length+1,f.lastIndexOf("/")),f=f.split("/").concat(h.split("/")));for(var k=[],q=0;q<f.length;q++){f[q]&&(m.exists(f[q])&&"."!==f[q])&&(".."===f[q]?k.pop():k.push(f[q]))}return d+r+"/"+k.join("/")}};m.extend=function(){var e=Array.prototype.slice.call(arguments,0);if(1<e.length){for(var f=e[0],d=function(k,c){void 0!==c&&null!==c&&(f[k]=c)},h=1;h<e.length;h++){m.foreach(e[h],d)}return f}return null};var a=window.console=window.console||{log:function(){}};m.log=function(){var b=Array.prototype.slice.call(arguments,0);"object"===typeof a.log?a.log(b):a.log.apply(a,b)};var i=l.memoize(function(b){return null!==navigator.userAgent.toLowerCase().match(b)});m.isFF=p(/firefox/i);m.isChrome=p(/chrome/i);m.isIPod=p(/iP(hone|od)/i);m.isIPad=p(/iPad/i);m.isSafari602=p(/Macintosh.*Mac OS X 10_8.*6\.0\.\d* Safari/i);m.isIETrident=function(b){return b?(b=parseFloat(b).toFixed(1),i(RegExp("trident/.+rv:\\s*"+b,"i"))):i(/trident/i)};m.isMSIE=function(b){return b?(b=parseFloat(b).toFixed(1),i(RegExp("msie\\s*"+b,"i"))):i(/msie/i)};m.isIE=function(b){return b?(b=parseFloat(b).toFixed(1),11<=b?m.isIETrident(b):m.isMSIE(b)):m.isMSIE()||m.isIETrident()};m.isSafari=function(){return i(/safari/i)&&!i(/chrome/i)&&!i(/chromium/i)&&!i(/android/i)};m.isIOS=function(b){return b?i(RegExp("iP(hone|ad|od).+\\sOS\\s"+b,"i")):i(/iP(hone|ad|od)/i)};m.isAndroidNative=function(b){return m.isAndroid(b,!0)};m.isAndroid=function(d,c){return c&&i(/chrome\/[123456789]/i)&&!i(/chrome\/18/)?!1:d?(m.isInt(d)&&!/\./.test(d)&&(d=""+d+"."),i(RegExp("Android\\s*"+d,"i"))):i(/Android/i)};m.isMobile=function(){return m.isIOS()||m.isAndroid()};m.isIframe=function(){return window.frameElement&&"IFRAME"===window.frameElement.nodeName};m.saveCookie=function(d,c){document.cookie="jwplayer."+d+"\x3d"+c+"; path\x3d/"};m.getCookies=function(){for(var f={},e=document.cookie.split("; "),h=0;h<e.length;h++){var k=e[h].split("\x3d");0===k[0].indexOf("jwplayer.")&&(f[k[0].substring(9,k[0].length)]=k[1])}return f};m.isInt=function(b){return 0===parseFloat(b)%1};m.typeOf=function(d){if(null===d){return"null"}var c=typeof d;return"object"===c&&l.isArray(d)?"array":c};m.translateEventResponse=function(f,d){var k=m.extend({},d);if(f===j.events.JWPLAYER_FULLSCREEN&&!k.fullscreen){k.fullscreen="true"===k.message,delete k.message}else{if("object"===typeof k.data){var h=k.data;delete k.data;k=m.extend(k,h)}else{"object"===typeof k.metadata&&m.deepReplaceKeyName(k.metadata,["__dot__","__spc__","__dsh__","__default__"],["."," ","-","default"])}}m.foreach(["position","duration","offset"],function(e,c){k[c]&&(k[c]=Math.round(1000*k[c])/1000)});return k};m.flashVersion=function(){if(m.isAndroid()){return 0}var f=navigator.plugins,d;try{if("undefined"!==f&&(d=f["Shockwave Flash"])){return parseInt(d.description.replace(/\D+(\d+)\..*/,"$1"),10)}}catch(k){}if("undefined"!==typeof window.ActiveXObject){try{if(d=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash")){return parseInt(d.GetVariable("$version").split(" ")[1].split(",")[0],10)}}catch(h){}}return 0};m.getScriptPath=function(f){for(var e=document.getElementsByTagName("script"),h=0;h<e.length;h++){var k=e[h].src;if(k&&0<=k.indexOf(f)){return k.substr(0,k.indexOf(f))}}return""};m.deepReplaceKeyName=function(f,d,k){switch(j.utils.typeOf(f)){case"array":for(var h=0;h<f.length;h++){f[h]=j.utils.deepReplaceKeyName(f[h],d,k)}break;case"object":m.foreach(f,function(t,b){var q;if(d instanceof Array&&k instanceof Array){if(d.length!==k.length){return}q=d}else{q=[d]}for(var c=t,n=0;n<q.length;n++){c=c.replace(RegExp(d[n],"g"),k[n])}f[c]=j.utils.deepReplaceKeyName(b,d,k);t!==c&&delete f[t]})}return f};var o=m.pluginPathType={ABSOLUTE:0,RELATIVE:1,CDN:2};m.getPluginPathType=function(e){if("string"===typeof e){e=e.split("?")[0];var d=e.indexOf("://");if(0<d){return o.ABSOLUTE}var f=e.indexOf("/");e=m.extension(e);return 0>d&&0>f&&(!e||!isNaN(e))?o.CDN:o.RELATIVE}};m.getPluginName=function(b){return b.replace(/^(.*\/)?([^-]*)-?.*\.(swf|js)$/,"$2")};m.getPluginVersion=function(b){return b.replace(/[^-]*-?([^\.]*).*$/,"$1")};m.isYouTube=function(d,c){return"youtube"===c||/^(http|\/\/).*(youtube\.com|youtu\.be)\/.+/.test(d)};m.youTubeID=function(d){try{return/v[=\/]([^?&]*)|youtu\.be\/([^?]*)|^([\w-]*)$/i.exec(d).slice(1).join("").replace("?","")}catch(c){return""}};m.isRtmp=function(d,c){return 0===d.indexOf("rtmp")||"rtmp"===c};m.foreach=function(f,d){var k,h;for(k in f){"function"===m.typeOf(f.hasOwnProperty)?f.hasOwnProperty(k)&&(h=f[k],d(k,h)):(h=f[k],d(k,h))}};m.isHTTPS=function(){return 0===window.location.href.indexOf("https")};m.repo=function(){var d="http://p.jwpcdn.com/"+j.version.split(/\W/).splice(0,2).join("/")+"/";try{m.isHTTPS()&&(d=d.replace("http://","https://ssl."))}catch(c){}return d};m.versionCheck=function(f){f=("0"+f).split(/\W/);var e=j.version.split(/\W/),h=parseFloat(f[0]),k=parseFloat(e[0]);return h>k||h===k&&parseFloat("0"+f[1])>parseFloat(e[1])?!1:!0};m.ajax=function(B,A,z,y){var w,v=!1;0<B.indexOf("#")&&(B=B.replace(/#.*$/,""));if(B&&0<=B.indexOf("://")&&B.split("/")[2]!==window.location.href.split("/")[2]&&m.exists(window.XDomainRequest)){w=new window.XDomainRequest,w.onload=g(w,B,A,z,y),w.ontimeout=w.onprogress=function(){},w.timeout=5000}else{if(m.exists(window.XMLHttpRequest)){var x=w=new window.XMLHttpRequest,t=B;w.onreadystatechange=function(){if(4===x.readyState){switch(x.status){case 200:g(x,t,A,z,y)();break;case 404:z("File not found",t,x)}}}}else{return z&&z("",B,w),w}}w.overrideMimeType&&w.overrideMimeType("text/xml");var d=B,k=w;w.onerror=function(){z("Error loading file",d,k)};try{w.open("GET",B,!0)}catch(C){v=!0}setTimeout(function(){if(v){z&&z(B,B,w)}else{try{w.send()}catch(c){z&&z(B,B,w)}}},0);return w};m.parseXML=function(e){var d;try{if(window.DOMParser){if(d=(new window.DOMParser).parseFromString(e,"text/xml"),d.childNodes&&d.childNodes.length&&"parsererror"===d.childNodes[0].firstChild.nodeName){return}}else{d=new window.ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(e)}}catch(f){return}return d};m.between=function(e,d,f){return Math.max(Math.min(e,f),d)};m.seconds=function(e){if(l.isNumber(e)){return e}e=e.replace(",",".");var d=e.split(":"),f=0;"s"===e.slice(-1)?f=parseFloat(e):"m"===e.slice(-1)?f=60*parseFloat(e):"h"===e.slice(-1)?f=3600*parseFloat(e):1<d.length?(f=parseFloat(d[d.length-1]),f+=60*parseFloat(d[d.length-2]),3===d.length&&(f+=3600*parseFloat(d[d.length-3]))):f=parseFloat(e);return f};m.serialize=function(b){return null===b?null:"true"===b.toString().toLowerCase()?!0:"false"===b.toString().toLowerCase()?!1:isNaN(Number(b))||5<b.length||0===b.length?b:Number(b)};m.addClass=function(e,d){var k=l.isString(e.className)?e.className.split(" "):[],f=l.isArray(d)?d:d.split(" ");l.each(f,function(b){l.contains(k,b)||k.push(b)});e.className=m.trim(k.join(" "))};m.removeClass=function(e,d){var k=l.isString(e.className)?e.className.split(" "):[],f=l.isArray(d)?d:d.split(" ");e.className=m.trim(l.difference(k,f).join(" "))};m.indexOf=l.indexOf;m.noop=function(){};m.canCast=function(){var b=j.cast;return !(!b||!l.isFunction(b.available)||!b.available())}}(jwplayer),function(t){function w(d){var c=document.createElement("style");d&&c.appendChild(document.createTextNode(d));c.type="text/css";document.getElementsByTagName("head")[0].appendChild(c);return c}function o(b,f,e){if(!x.exists(f)){return""}e=e?" !important":"";return"string"===typeof f&&isNaN(f)?/png|gif|jpe?g/i.test(f)&&0>f.indexOf("url")?"url("+f+")":f+e:0===f||"z-index"===b||"opacity"===b?""+f+e:/color/i.test(b)?"#"+x.pad(f.toString(16).replace(/^0x/i,""),6)+e:Math.ceil(f)+"px"+e}function v(k,f){for(var A=0;A<k.length;A++){var z=k[A],n,p;if(void 0!==z&&null!==z){for(n in f){p=n;p=p.split("-");for(var m=1;m<p.length;m++){p[m]=p[m].charAt(0).toUpperCase()+p[m].slice(1)}p=p.join("");z.style[p]!==f[n]&&(z.style[p]=f[n])}}}}function u(a){var C=q[a].sheet,A,m,z;if(C){A=C.cssRules;m=l[a];z=a;var p=y[z];z+=" { ";for(var B in p){z+=B+": "+p[B]+"; "}z+="}";if(void 0!==m&&m<A.length&&A[m].selectorText===a){if(z===A[m].cssText){return}C.deleteRule(m)}else{m=A.length,l[a]=m}try{C.insertRule(z,m)}catch(h){}}}var x=t.utils,q={},j,y={},r=null,l={};x.cssKeyframes=function(h,c){var p=q.keyframes;p||(p=w(),q.keyframes=p);var p=p.sheet,n="@keyframes "+h+" { "+c+" }";try{p.insertRule(n,p.cssRules.length)}catch(k){}n=n.replace(/(keyframes|transform)/g,"-webkit-$1");try{p.insertRule(n,p.cssRules.length)}catch(m){}};var i=x.css=function(c,n,h){y[c]||(y[c]={});var a=y[c];h=h||!1;var g=!1,k,e;for(k in n){e=o(k,n[k],h),""!==e?e!==a[k]&&(a[k]=e,g=!0):void 0!==a[k]&&(delete a[k],g=!0)}if(g){if(!q[c]){n=j&&j.sheet&&j.sheet.cssRules&&j.sheet.cssRules.length||0;if(!j||50000<n){j=w()}q[c]=j}null!==r?r.styleSheets[c]=y[c]:u(c)}};i.style=function(g,d,p){if(!(void 0===g||null===g)){void 0===g.length&&(g=[g]);var n={},k;for(k in d){n[k]=o(k,d[k])}if(null!==r&&!p){d=(d=g.__cssRules)||{};for(var m in n){d[m]=n[m]}g.__cssRules=d;0>r.elements.indexOf(g)&&r.elements.push(g)}else{v(g,n)}}};i.block=function(b){null===r&&(r={id:b,styleSheets:{},elements:[]})};i.unblock=function(d){if(r&&(!d||r.id===d)){for(var c in r.styleSheets){u(c)}for(d=0;d<r.elements.length;d++){c=r.elements[d],v(c,c.__cssRules)}r=null}};x.clearCss=function(a){for(var f in y){0<=f.indexOf(a)&&delete y[f]}for(var e in q){0<=e.indexOf(a)&&u(e)}};x.transform=function(e,d){var f={};d=d||"";f.transform=d;f["-webkit-transform"]=d;f["-ms-transform"]=d;f["-moz-transform"]=d;f["-o-transform"]=d;"string"===typeof e?i(e,f):i.style(e,f)};x.dragStyle=function(d,c){i(d,{"-webkit-user-select":c,"-moz-user-select":c,"-ms-user-select":c,"-webkit-user-drag":c,"user-select":c,"user-drag":c})};x.transitionStyle=function(d,c){navigator.userAgent.match(/5\.\d(\.\d)? safari/i)||i(d,{"-webkit-transition":c,"-moz-transition":c,"-o-transition":c,transition:c})};x.rotate=function(b,d){x.transform(b,"rotate("+d+"deg)")};x.rgbHex=function(b){b=String(b).replace("#","");3===b.length&&(b=b[0]+b[0]+b[1]+b[1]+b[2]+b[2]);return"#"+b.substr(-6)};x.hexToRgba=function(f,e){var h="rgb",g=[parseInt(f.substr(1,2),16),parseInt(f.substr(3,2),16),parseInt(f.substr(5,2),16)];void 0!==e&&100!==e&&(h+="a",g.push(e/100));return h+"("+g.join(",")+")"}}(jwplayer),function(b){var i=b.foreach,a={mp4:"video/mp4",ogg:"video/ogg",oga:"audio/ogg",vorbis:"audio/ogg",webm:"video/webm",aac:"audio/mp4",mp3:"audio/mpeg",hls:"application/vnd.apple.mpegurl"},h={mp4:a.mp4,f4v:a.mp4,m4v:a.mp4,mov:a.mp4,m4a:a.aac,f4a:a.aac,aac:a.aac,mp3:a.mp3,ogv:a.ogg,ogg:a.ogg,oga:a.vorbis,vorbis:a.vorbis,webm:a.webm,m3u8:a.hls,m3u:a.hls,hls:a.hls},g=b.extensionmap={};i(h,function(d,e){g[d]={html5:e}});i({flv:"video",f4v:"video",mov:"video",m4a:"video",m4v:"video",mp4:"video",aac:"video",f4a:"video",mp3:"sound",smil:"rtmp",m3u8:"hls",hls:"hls"},function(d,e){g[d]||(g[d]={});g[d].flash=e});g.types=a;g.mimeType=function(c){var e;i(a,function(f,d){!e&&d==c&&(e=f)});return e};g.extType=function(c){return g.mimeType(h[c])}}(jwplayer.utils),function(b){var d=b.loaderstatus={NEW:0,LOADING:1,ERROR:2,COMPLETE:3},a=document;b.scriptloader=function(j){function i(e){f=d.ERROR;k.sendEvent(g.ERROR,e)}function c(e){f=d.COMPLETE;k.sendEvent(g.COMPLETE,e)}var g=jwplayer.events,k=b.extend(this,new g.eventdispatcher),f=d.NEW;this.load=function(){if(f==d.NEW){var e=b.scriptloader.loaders[j];if(e&&(f=e.getStatus(),2>f)){e.addEventListener(g.ERROR,i);e.addEventListener(g.COMPLETE,c);return}var h=a.createElement("script");h.addEventListener?(h.onload=c,h.onerror=i):h.readyState&&(h.onreadystatechange=function(l){("loaded"==h.readyState||"complete"==h.readyState)&&c(l)});a.getElementsByTagName("head")[0].appendChild(h);h.src=j;f=d.LOADING;b.scriptloader.loaders[j]=this}};this.getStatus=function(){return f}};b.scriptloader.loaders={}}(jwplayer.utils),function(a){a.trim=function(b){return b.replace(/^\s+|\s+$/g,"")};a.pad=function(g,b,e){for(e||(e="0");g.length<b;){g=e+g}return g};a.xmlAttribute=function(g,b){for(var e=0;e<g.attributes.length;e++){if(g.attributes[e].name&&g.attributes[e].name.toLowerCase()===b.toLowerCase()){return g.attributes[e].value.toString()}}return""};a.extension=function(d){if(!d||"rtmp"===d.substr(0,4)){return""}var b;b=-1<d.indexOf("(format\x3dm3u8-")?"m3u8":!1;if(b){return b}d=d.substring(d.lastIndexOf("/")+1,d.length).split("?")[0].split("#")[0];if(-1<d.lastIndexOf(".")){return d.substr(d.lastIndexOf(".")+1,d.length).toLowerCase()}};a.stringToColor=function(b){b=b.replace(/(#|0x)?([0-9A-F]{3,6})$/gi,"$2");3===b.length&&(b=b.charAt(0)+b.charAt(0)+b.charAt(1)+b.charAt(1)+b.charAt(2)+b.charAt(2));return parseInt(b,16)}}(jwplayer.utils),function(b){var d="touchmove",a="touchstart";b.touch=function(r){function q(e){e.type===a?(u=!0,i=k(j.DRAG_START,e)):e.type===d?u&&(c||(t(j.DRAG_START,e,i),c=!0),t(j.DRAG,e)):(u&&(c?t(j.DRAG_END,e):(e.cancelBubble=!0,t(j.TAP,e))),u=c=!1,i=null)}function t(g,e,h){if(o[g]&&(e.preventManipulation&&e.preventManipulation(),e.preventDefault&&e.preventDefault(),e=h?h:k(g,e))){o[g](e)}}function k(g,e){var l=null;e.touches&&e.touches.length?l=e.touches[0]:e.changedTouches&&e.changedTouches.length&&(l=e.changedTouches[0]);if(!l){return null}var h=f.getBoundingClientRect(),l={type:g,target:f,x:l.pageX-window.pageXOffset-h.left,y:l.pageY,deltaX:0,deltaY:0};g!==j.TAP&&i&&(l.deltaX=l.x-i.x,l.deltaY=l.y-i.y);return l}var f=r,u=!1,o={},i=null,c=!1,j=b.touchEvents;document.addEventListener(d,q);document.addEventListener("touchend",function(e){u&&c&&t(j.DRAG_END,e);u=c=!1;i=null});document.addEventListener("touchcancel",q);r.addEventListener(a,q);r.addEventListener("touchend",q);this.addEventListener=function(g,e){o[g]=e};this.removeEventListener=function(e){delete o[e]};return this}}(jwplayer.utils),function(a){a.touchEvents={DRAG:"jwplayerDrag",DRAG_START:"jwplayerDragStart",DRAG_END:"jwplayerDragEnd",TAP:"jwplayerTap"}}(jwplayer.utils),function(a){a.key=function(m){var g,l,j;this.edition=function(){return j&&j.getTime()<(new Date).getTime()?"invalid":g};this.token=function(){return l};a.exists(m)||(m="");try{m=a.tea.decrypt(m,"36QXq4W@GSBV^teR");var f=m.split("/");(g=f[0])?/^(free|pro|premium|enterprise|ads)$/i.test(g)?(l=f[1],f[2]&&0<parseInt(f[2])&&(j=new Date,j.setTime(String(f[2])))):g="invalid":g="free"}catch(i){g="invalid"}}}(jwplayer.utils),function(b){var g=b.tea={};g.encrypt=function(r,u){if(0==r.length){return""}var n=g.strToLongs(e.encode(r));1>=n.length&&(n[1]=0);for(var q=g.strToLongs(e.encode(u).slice(0,16)),v=n.length,o=n[v-1],d=n[0],c,i=Math.floor(6+52/v),k=0;0<i--;){k+=2654435769;c=k>>>2&3;for(var w=0;w<v;w++){d=n[(w+1)%v],o=(o>>>5^d<<2)+(d>>>3^o<<4)^(k^d)+(q[w&3^c]^o),o=n[w]+=o}}n=g.longsToStr(n);return a.encode(n)};g.decrypt=function(r,t){if(0==r.length){return""}for(var n=g.strToLongs(a.decode(r)),q=g.strToLongs(e.encode(t).slice(0,16)),u=n.length,o=n[u-1],d=n[0],c,i=2654435769*Math.floor(6+52/u);0!=i;){c=i>>>2&3;for(var k=u-1;0<=k;k--){o=n[0<k?k-1:u-1],o=(o>>>5^d<<2)+(d>>>3^o<<4)^(i^d)+(q[k&3^c]^o),d=n[k]-=o}i-=2654435769}n=g.longsToStr(n);n=n.replace(/\0+$/,"");return e.decode(n)};g.strToLongs=function(i){for(var f=Array(Math.ceil(i.length/4)),h=0;h<f.length;h++){f[h]=i.charCodeAt(4*h)+(i.charCodeAt(4*h+1)<<8)+(i.charCodeAt(4*h+2)<<16)+(i.charCodeAt(4*h+3)<<24)}return f};g.longsToStr=function(i){for(var f=Array(i.length),h=0;h<i.length;h++){f[h]=String.fromCharCode(i[h]&255,i[h]>>>8&255,i[h]>>>16&255,i[h]>>>24&255)}return f.join("")};var a={code:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d",encode:function(u,v){var o,r,w,q,i=[],d="",k,n,x=a.code;n=("undefined"==typeof v?0:v)?e.encode(u):u;k=n.length%3;if(0<k){for(;3>k++;){d+="\x3d",n+="\x00"}}for(k=0;k<n.length;k+=3){o=n.charCodeAt(k),r=n.charCodeAt(k+1),w=n.charCodeAt(k+2),q=o<<16|r<<8|w,o=q>>18&63,r=q>>12&63,w=q>>6&63,q&=63,i[k/3]=x.charAt(o)+x.charAt(r)+x.charAt(w)+x.charAt(q)}i=i.join("");return i=i.slice(0,i.length-d.length)+d},decode:function(u,v){v="undefined"==typeof v?!1:v;var o,r,w,q,i,d=[],k,n=a.code;k=v?e.decode(u):u;for(var x=0;x<k.length;x+=4){o=n.indexOf(k.charAt(x)),r=n.indexOf(k.charAt(x+1)),q=n.indexOf(k.charAt(x+2)),i=n.indexOf(k.charAt(x+3)),w=o<<18|r<<12|q<<6|i,o=w>>>16&255,r=w>>>8&255,w&=255,d[x/4]=String.fromCharCode(o,r,w),64==i&&(d[x/4]=String.fromCharCode(o,r)),64==q&&(d[x/4]=String.fromCharCode(o))}q=d.join("");return v?e.decode(q):q}},e={encode:function(d){d=d.replace(/[\u0080-\u07ff]/g,function(c){c=c.charCodeAt(0);return String.fromCharCode(192|c>>6,128|c&63)});return d=d.replace(/[\u0800-\uffff]/g,function(c){c=c.charCodeAt(0);return String.fromCharCode(224|c>>12,128|c>>6&63,128|c&63)})},decode:function(d){d=d.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(c){c=(c.charCodeAt(0)&15)<<12|(c.charCodeAt(1)&63)<<6|c.charCodeAt(2)&63;return String.fromCharCode(c)});return d=d.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(c){c=(c.charCodeAt(0)&31)<<6|c.charCodeAt(1)&63;return String.fromCharCode(c)})}}}(jwplayer.utils),function(a){a.events={COMPLETE:"COMPLETE",ERROR:"ERROR",API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_SETUP_ERROR:"jwplayerSetupError",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_AUDIO_TRACKS:"jwplayerAudioTracks",JWPLAYER_AUDIO_TRACK_CHANGED:"jwplayerAudioTrackChanged",JWPLAYER_MEDIA_LEVELS:"jwplayerMediaLevels",JWPLAYER_MEDIA_LEVEL_CHANGED:"jwplayerMediaLevelChanged",JWPLAYER_CAPTIONS_CHANGED:"jwplayerCaptionsChanged",JWPLAYER_CAPTIONS_LIST:"jwplayerCaptionsList",JWPLAYER_CAPTIONS_LOADED:"jwplayerCaptionsLoaded",JWPLAYER_PLAYER_STATE:"jwplayerPlayerState",state:{BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"},JWPLAYER_PLAYLIST_LOADED:"jwplayerPlaylistLoaded",JWPLAYER_PLAYLIST_ITEM:"jwplayerPlaylistItem",JWPLAYER_PLAYLIST_COMPLETE:"jwplayerPlaylistComplete",JWPLAYER_DISPLAY_CLICK:"jwplayerViewClick",JWPLAYER_PROVIDER_CLICK:"jwplayerProviderClick",JWPLAYER_VIEW_TAB_FOCUS:"jwplayerViewTabFocus",JWPLAYER_CONTROLS:"jwplayerViewControls",JWPLAYER_USER_ACTION:"jwplayerUserAction",JWPLAYER_INSTREAM_CLICK:"jwplayerInstreamClicked",JWPLAYER_INSTREAM_DESTROYED:"jwplayerInstreamDestroyed",JWPLAYER_AD_TIME:"jwplayerAdTime",JWPLAYER_AD_ERROR:"jwplayerAdError",JWPLAYER_AD_CLICK:"jwplayerAdClicked",JWPLAYER_AD_COMPLETE:"jwplayerAdComplete",JWPLAYER_AD_IMPRESSION:"jwplayerAdImpression",JWPLAYER_AD_COMPANIONS:"jwplayerAdCompanions",JWPLAYER_AD_SKIPPED:"jwplayerAdSkipped",JWPLAYER_AD_PLAY:"jwplayerAdPlay",JWPLAYER_AD_PAUSE:"jwplayerAdPause",JWPLAYER_AD_META:"jwplayerAdMeta",JWPLAYER_CAST_AVAILABLE:"jwplayerCastAvailable",JWPLAYER_CAST_SESSION:"jwplayerCastSession",JWPLAYER_CAST_AD_CHANGED:"jwplayerCastAdChanged"}}(jwplayer),function(a){var b=a.utils;a.events.eventdispatcher=function(f,j){function i(k,l,p){if(k){for(var o=0;o<k.length;o++){var m=k[o];if(m){null!==m.count&&0===--m.count&&delete k[o];try{m.listener(l)}catch(n){b.log('Error handling "'+p+'" event listener ['+o+"]: "+n.toString(),m.listener,l)}}}}}var c,g;this.resetEventListeners=function(){c={};g=[]};this.resetEventListeners();this.addEventListener=function(m,h,k){try{b.exists(c[m])||(c[m]=[]),"string"===b.typeOf(h)&&(h=(new Function("return "+h))()),c[m].push({listener:h,count:k||null})}catch(l){b.log("error",l)}return !1};this.removeEventListener=function(m,h){var k;if(c[m]){try{if(void 0===h){c[m]=[];return}for(k=0;k<c[m].length;k++){if(c[m][k].listener.toString()===h.toString()){c[m].splice(k,1);break}}}catch(l){b.log("error",l)}return !1}};this.addGlobalListener=function(e,h){try{"string"===b.typeOf(e)&&(e=(new Function("return "+e))()),g.push({listener:e,count:h||null})}catch(k){b.log("error",k)}return !1};this.removeGlobalListener=function(e){if(e){try{for(var h=g.length;h--;){g[h].listener.toString()===e.toString()&&g.splice(h,1)}}catch(k){b.log("error",k)}return !1}};this.sendEvent=function(e,d){b.exists(d)||(d={});b.extend(d,{id:f,version:a.version,type:e});j&&b.log(e,d);i(c[e],d,e);i(g,d,e)}}}(window.jwplayer),function(b){var d={},a={};b.plugins=function(){};b.plugins.loadPlugins=function(f,c){a[f]=new b.plugins.pluginloader(new b.plugins.model(d),c);return a[f]};b.plugins.registerPlugin=function(i,g,c,f){var j=b.utils.getPluginName(i);d[j]||(d[j]=new b.plugins.plugin(i));d[j].registerPlugin(i,g,c,f)}}(jwplayer),function(a){a.plugins.model=function(b){this.addPlugin=function(c){var e=a.utils.getPluginName(c);b[e]||(b[e]=new a.plugins.plugin(c));return b[e]};this.getPlugins=function(){return b}}}(jwplayer),function(b){var d=jwplayer.utils,a=jwplayer.events;b.pluginmodes={FLASH:0,JAVASCRIPT:1,HYBRID:2};b.plugin=function(r){function q(){switch(d.getPluginPathType(r)){case d.pluginPathType.ABSOLUTE:return r;case d.pluginPathType.RELATIVE:return d.getAbsolutePath(r,window.location.href)}}function t(){c=setTimeout(function(){f=d.loaderstatus.COMPLETE;j.sendEvent(a.COMPLETE)},1000)}function k(){f=d.loaderstatus.ERROR;j.sendEvent(a.ERROR,{url:r})}var f=d.loaderstatus.NEW,u,o,i,c,j=new a.eventdispatcher;d.extend(this,j);this.load=function(){if(f===d.loaderstatus.NEW){if(0<r.lastIndexOf(".swf")){u=r,f=d.loaderstatus.COMPLETE,j.sendEvent(a.COMPLETE)}else{if(d.getPluginPathType(r)===d.pluginPathType.CDN){f=d.loaderstatus.COMPLETE,j.sendEvent(a.COMPLETE)}else{f=d.loaderstatus.LOADING;var e=new d.scriptloader(q());e.addEventListener(a.COMPLETE,t);e.addEventListener(a.ERROR,k);e.load()}}}};this.registerPlugin=function(g,n,m,l){c&&(clearTimeout(c),c=void 0);i=n;m&&l?(u=l,o=m):"string"===typeof m?u=m:"function"===typeof m?o=m:!m&&!l&&(u=g);f=d.loaderstatus.COMPLETE;j.sendEvent(a.COMPLETE)};this.getStatus=function(){return f};this.getPluginName=function(){return d.getPluginName(r)};this.getFlashPath=function(){if(u){switch(d.getPluginPathType(u)){case d.pluginPathType.ABSOLUTE:return u;case d.pluginPathType.RELATIVE:return 0<r.lastIndexOf(".swf")?d.getAbsolutePath(u,window.location.href):d.getAbsolutePath(u,q())}}return null};this.getJS=function(){return o};this.getTarget=function(){return i};this.getPluginmode=function(){if("undefined"!==typeof u&&"undefined"!==typeof o){return b.pluginmodes.HYBRID}if("undefined"!==typeof u){return b.pluginmodes.FLASH}if("undefined"!==typeof o){return b.pluginmodes.JAVASCRIPT}};this.getNewInstance=function(g,e,h){return new o(g,e,h)};this.getURL=function(){return r}}}(jwplayer.plugins),function(b){var i=b.utils,a=b.events,h=b._,g=i.foreach;b.plugins.pluginloader=function(r,n){function q(){c||(c=!0,d=i.loaderstatus.COMPLETE,w.sendEvent(a.COMPLETE))}function u(){(!e||0===h.keys(e).length)&&q();if(!c){var f=r.getPlugins();x=h.after(k,q);i.foreach(e,function(j){j=i.getPluginName(j);var m=f[j];j=m.getJS();var l=m.getTarget(),m=m.getStatus();m===i.loaderstatus.LOADING||m===i.loaderstatus.NEW||(j&&!i.versionCheck(l)&&w.sendEvent(a.ERROR,{message:"Incompatible player version"}),x())})}}function o(f){w.sendEvent(a.ERROR,{message:"File not found"});f.url&&i.log("File not found",f.url);x()}var d=i.loaderstatus.NEW,c=!1,e=n,k=h.size(e),x,w=new a.eventdispatcher;i.extend(this,w);this.setupPlugins=function(p,A,y){var v={length:0,plugins:{}},z=0,t={},l=r.getPlugins();g(A.plugins,function(E,C){var j=i.getPluginName(E),B=l[j],m=B.getFlashPath(),f=B.getJS(),F=B.getURL();m&&(v.plugins[m]=i.extend({},C),v.plugins[m].pluginmode=B.getPluginmode(),v.length++);try{if(f&&A.plugins&&A.plugins[F]){var G=document.createElement("div");G.id=p.id+"_"+j;G.style.position="absolute";G.style.top=0;G.style.zIndex=z+10;t[j]=B.getNewInstance(p,i.extend({},A.plugins[F]),G);z++;p.onReady(y(t[j],G,!0));p.onResize(y(t[j],G))}}catch(D){i.log("ERROR: Failed to load "+j+".")}});p.plugins=t;return v};this.load=function(){if(!(i.exists(n)&&"object"!==i.typeOf(n))){d=i.loaderstatus.LOADING;g(n,function(j){i.exists(j)&&(j=r.addPlugin(j),j.addEventListener(a.COMPLETE,u),j.addEventListener(a.ERROR,o))});var f=r.getPlugins();g(f,function(l,j){j.load()})}u()};this.destroy=function(){w&&(w.resetEventListeners(),w=null)};this.pluginFailed=o;this.getStatus=function(){return d}}}(jwplayer),function(a){a.parsers={localName:function(b){return b?b.localName?b.localName:b.baseName?b.baseName:"":""},textContent:function(b){return b?b.textContent?a.utils.trim(b.textContent):b.text?a.utils.trim(b.text):"":""},getChildNode:function(d,b){return d.childNodes[b]},numChildren:function(b){return b.childNodes?b.childNodes.length:0}}}(jwplayer),function(a){var b=a.parsers;(b.jwparser=function(){}).parseEntry=function(i,o){for(var m=[],c=[],j=a.utils.xmlAttribute,p=0;p<i.childNodes.length;p++){var f=i.childNodes[p];if("jwplayer"==f.prefix){var l=b.localName(f);"source"==l?(delete o.sources,m.push({file:j(f,"file"),"default":j(f,"default"),label:j(f,"label"),type:j(f,"type")})):"track"==l?(delete o.tracks,c.push({file:j(f,"file"),"default":j(f,"default"),kind:j(f,"kind"),label:j(f,"label")})):(o[l]=a.utils.serialize(b.textContent(f)),"file"==l&&o.sources&&delete o.sources)}o.file||(o.file=o.link)}if(m.length){o.sources=[];for(p=0;p<m.length;p++){0<m[p].file.length&&(m[p]["default"]="true"==m[p]["default"]?!0:!1,m[p].label.length||delete m[p].label,o.sources.push(m[p]))}}if(c.length){o.tracks=[];for(p=0;p<c.length;p++){0<c[p].file.length&&(c[p]["default"]="true"==c[p]["default"]?!0:!1,c[p].kind=!c[p].kind.length?"captions":c[p].kind,c[p].label.length||delete c[p].label,o.tracks.push(c[p]))}}return o}}(jwplayer),function(j){var n=jwplayer.utils,g=n.xmlAttribute,m=j.localName,l=j.textContent,a=j.numChildren,i=j.mediaparser=function(){};i.parseGroup=function(o,d){var k,b,q=[];for(b=0;b<a(o);b++){if(k=o.childNodes[b],"media"==k.prefix&&m(k)){switch(m(k).toLowerCase()){case"content":g(k,"duration")&&(d.duration=n.seconds(g(k,"duration")));0<a(k)&&(d=i.parseGroup(k,d));g(k,"url")&&(d.sources||(d.sources=[]),d.sources.push({file:g(k,"url"),type:g(k,"type"),width:g(k,"width"),label:g(k,"label")}));break;case"title":d.title=l(k);break;case"description":d.description=l(k);break;case"guid":d.mediaid=l(k);break;case"thumbnail":d.image||(d.image=g(k,"url"));break;case"group":i.parseGroup(k,d);break;case"subtitle":var c={};c.file=g(k,"url");c.kind="captions";if(0<g(k,"lang").length){var e=c;k=g(k,"lang");var h={zh:"Chinese",nl:"Dutch",en:"English",fr:"French",de:"German",it:"Italian",ja:"Japanese",pt:"Portuguese",ru:"Russian",es:"Spanish"};k=h[k]?h[k]:k;e.label=k}q.push(c)}}}d.hasOwnProperty("tracks")||(d.tracks=[]);for(b=0;b<q.length;b++){d.tracks.push(q[b])}return d}}(jwplayer.parsers),function(j){function n(d){for(var f={},o=0;o<d.childNodes.length;o++){var k=d.childNodes[o],h=i(k);if(h){switch(h.toLowerCase()){case"enclosure":f.file=g.xmlAttribute(k,"url");break;case"title":f.title=m(k);break;case"guid":f.mediaid=m(k);break;case"pubdate":f.date=m(k);break;case"description":f.description=m(k);break;case"link":f.link=m(k);break;case"category":f.tags=f.tags?f.tags+m(k):m(k)}}}f=j.mediaparser.parseGroup(d,f);f=j.jwparser.parseEntry(d,f);return new jwplayer.playlist.item(f)}var g=jwplayer.utils,m=j.textContent,l=j.getChildNode,a=j.numChildren,i=j.localName;j.rssparser={};j.rssparser.parse=function(p){for(var c=[],h=0;h<a(p);h++){var o=l(p,h);if("channel"==i(o).toLowerCase()){for(var e=0;e<a(o);e++){var b=l(o,e);"item"==i(b).toLowerCase()&&c.push(n(b))}}}return c}}(jwplayer.parsers),function(b){var g=b.utils,a=b._;b.playlist=function(f){var d=[];f=a.isArray(f)?f:[f];a.each(f,function(h){d.push(new b.playlist.item(h))});return d};b.playlist.filterPlaylist=function(f,c){var d=[];a.each(f,function(i){i=g.extend({},i);i.sources=e(i.sources,!1,c);if(i.sources.length){for(var h=0;h<i.sources.length;h++){i.sources[h].label=i.sources[h].label||h.toString()}d.push(i)}});return d};var e=b.playlist.filterSources=function(k,c,i){var l,f=[],j=c?b.embed.flashCanPlay:b.embed.html5CanPlay;if(k){return a.each(k,function(h){if(!h||!h.file){h=void 0}else{var n=g.trim(""+h.file),m=h.type;m||(m=g.extension(n),m=g.extensionmap.extType(m));h=g.extend({},h,{file:n,type:m})}h&&j(h.file,h.type,i)&&(l=l||h.type,h.type===l&&f.push(h))}),f}}}(jwplayer),function(a){var b=a.item=function(f){var j=jwplayer.utils,i=j.extend({},b.defaults,f),c,g;i.tracks=f&&j.exists(f.tracks)?f.tracks:[];0===i.sources.length&&(i.sources=[new a.source(i)]);for(c=0;c<i.sources.length;c++){g=i.sources[c]["default"],i.sources[c]["default"]=g?"true"==g.toString():!1,i.sources[c]=new a.source(i.sources[c])}if(i.captions&&!j.exists(f.tracks)){for(f=0;f<i.captions.length;f++){i.tracks.push(i.captions[f])}delete i.captions}for(c=0;c<i.tracks.length;c++){i.tracks[c]=new a.track(i.tracks[c])}return i};b.defaults={description:void 0,image:void 0,mediaid:void 0,title:void 0,sources:[],tracks:[]}}(jwplayer.playlist),function(b){var g=b.utils,a=b.events,e=b.parsers;b.playlist.loader=function(){function f(k){try{var h=k.responseXML.childNodes;k="";for(var n=0;n<h.length&&!(k=h[n],8!==k.nodeType);n++){}"xml"===e.localName(k)&&(k=k.nextSibling);if("rss"!==e.localName(k)){d("Not a valid RSS feed")}else{var m=new b.playlist(e.rssparser.parse(k));i.sendEvent(a.JWPLAYER_PLAYLIST_LOADED,{playlist:m})}}catch(j){d()}}function c(h){d(h.match(/invalid/i)?"Not a valid RSS feed":"")}function d(h){i.sendEvent(a.JWPLAYER_ERROR,{message:h?h:"Error loading file"})}var i=new a.eventdispatcher;g.extend(this,i);this.load=function(h){g.ajax(h,f,c)}}}(jwplayer),function(b){var d=jwplayer.utils,a={file:void 0,label:void 0,type:void 0,"default":void 0};b.source=function(f){var c=d.extend({},a);d.foreach(a,function(e){d.exists(f[e])&&(c[e]=f[e],delete f[e])});c.type&&0<c.type.indexOf("/")&&(c.type=d.extensionmap.mimeType(c.type));"m3u8"==c.type&&(c.type="hls");"smil"==c.type&&(c.type="rtmp");return c}}(jwplayer.playlist),function(b){var d=jwplayer.utils,a={file:void 0,label:void 0,kind:"captions","default":!1};b.track=function(f){var c=d.extend({},a);f||(f={});d.foreach(a,function(e){d.exists(f[e])&&(c[e]=f[e],delete f[e])});return c}}(jwplayer.playlist),function(h){function l(e,m,f){var k=e.style;k.backgroundColor="#000";k.color="#FFF";k.width=g.styleDimension(f.width);k.height=g.styleDimension(f.height);k.display="table";k.opacity=1;f=document.createElement("p");k=f.style;k.verticalAlign="middle";k.textAlign="center";k.display="table-cell";k.font="15px/20px Arial, Helvetica, sans-serif";f.innerHTML=m.replace(":",":\x3cbr\x3e");e.innerHTML="";e.appendChild(f)}var g=h.utils,j=h.events,i=h._,a=h.embed=function(N){function J(){if(!b){var q=M.playlist;if(i.isArray(q)){if(0===q.length){K();return}if(1===q.length&&(!q[0].sources||0===q[0].sources.length||!q[0].sources[0].file)){K();return}}if(!c){if(i.isString(q)){d=new h.playlist.loader,d.addEventListener(j.JWPLAYER_PLAYLIST_LOADED,function(r){M.playlist=r.playlist;c=!1;J()}),d.addEventListener(j.JWPLAYER_ERROR,function(r){c=!1;K(r)}),c=!0,d.load(M.playlist)}else{if(k.getStatus()===g.loaderstatus.COMPLETE){for(q=0;q<M.modes.length;q++){var p=M.modes[q],n=p.type;if(n&&a[n]){var m=g.extend({},M),p=new a[n](A,p,m,k,N);if(p.supportsConfig()){return p.addEventListener(j.ERROR,P),p.embed(),g.css("object.jwswf, .jwplayer:focus",{outline:"none"}),g.css(".jw-tab-focus:focus",{outline:"solid 2px #0B7EF4"}),N}}}M.fallback?(q="No suitable players found and fallback enabled",I(q,!0),g.log(q),new a.download(A,M,K)):(q="No suitable players found and fallback disabled",I(q,!1),g.log(q),A.parentNode.replaceChild(B,A))}}}}}function P(m){L(G+m.message)}function O(m){N.dispatchEvent(j.JWPLAYER_ERROR,{message:"Could not load plugin: "+m.message})}function K(m){m&&m.message?L("Error loading playlist: "+m.message):L(G+"No playable sources found")}function I(n,m){clearTimeout(f);f=setTimeout(function(){N.dispatchEvent(j.JWPLAYER_SETUP_ERROR,{message:n,fallback:m})},0)}function L(m){b||(M.fallback?(b=!0,l(A,m,M),I(m,!0)):I(m,!1))}var M=new a.config(N.config),z=M.width,e=M.height,G="Error loading player: ",H=document.getElementById(N.id),k=h.plugins.loadPlugins(N.id,M.plugins),d,c=!1,b=!1,f=-1,B=null;M.fallbackDiv&&(B=M.fallbackDiv,delete M.fallbackDiv);M.id=N.id;M.aspectratio?N.config.aspectratio=M.aspectratio:delete N.config.aspectratio;var o=N;g.foreach(M.events,function(n,m){var p=o[n];"function"===typeof p&&p.call(o,m)});var A=document.createElement("div");A.id=H.id;A.style.width=0<z.toString().indexOf("%")?z:z+"px";A.style.height=0<e.toString().indexOf("%")?e:e+"px";H.parentNode.replaceChild(A,H);this.embed=function(){b||(k.addEventListener(j.COMPLETE,J),k.addEventListener(j.ERROR,O),k.load())};this.destroy=function(){k&&(k.destroy(),k=null);d&&(d.resetEventListeners(),d=null)};this.errorScreen=L;return this};h.embed.errorScreen=l}(jwplayer),function(b){function i(d){if(d.playlist){for(var j=0;j<d.playlist.length;j++){d.playlist[j]=new g(d.playlist[j])}}else{var e={};h.foreach(g.defaults,function(c){a(d,e,c)});e.sources||(d.levels?(e.sources=d.levels,delete d.levels):(j={},a(d,j,"file"),a(d,j,"type"),e.sources=j.file?[j]:[]));d.playlist=[new g(e)]}}function a(d,j,f){h.exists(d[f])&&(j[f]=d[f],delete d[f])}var h=b.utils,g=b.playlist.item;(b.embed.config=function(c){var j={fallback:!0,height:270,primary:"html5",width:480,base:c.base?c.base:h.getScriptPath("jwplayer.js"),aspectratio:""};c=h.extend({},j,b.defaults,c);var j={type:"html5",src:c.base+"jwplayer.html5.js"},f={type:"flash",src:c.base+"jwplayer.flash.swf"};c.modes="flash"===c.primary?[f,j]:[j,f];c.listbar&&(c.playlistsize=c.listbar.size,c.playlistposition=c.listbar.position,c.playlistlayout=c.listbar.layout);c.flashplayer&&(f.src=c.flashplayer);c.html5player&&(j.src=c.html5player);i(c);f=c.aspectratio;if("string"!==typeof f||!h.exists(f)){j=0}else{var d=f.indexOf(":");-1===d?j=0:(j=parseFloat(f.substr(0,d)),f=parseFloat(f.substr(d+1)),j=0>=j||0>=f?0:100*(f/j)+"%")}-1===c.width.toString().indexOf("%")?delete c.aspectratio:j?c.aspectratio=j:delete c.aspectratio;return c}).addConfig=function(c,d){i(d);return h.extend(c,d)}}(jwplayer),function(b){var d=b.utils,a=b.utils.css;b.embed.download=function(A,z,B){function y(f,e,g){f=document.createElement(f);e&&(f.className="jwdownload"+e);g&&g.appendChild(f);return f}var k=d.extend({},z),C,x=k.width?k.width:480,o=k.height?k.height:320,i;z=z.logo?z.logo:{prefix:d.repo(),file:"logo.png",margin:10};var u,w,E,D,c,h;w=k.playlist;k=["mp4","aac","mp3"];if(w&&w.length){E=w[0];D=E.sources;for(w=0;w<D.length;w++){c=D[w],c.file&&(h=c.type||d.extensionmap.extType(d.extension(c.file)),0<=d.indexOf(k,h)?(C=c.file,i=E.image):d.isYouTube(c.file,h)&&(u=c.file))}C?(B=C,A&&(C=y("a","display",A),y("div","icon",C),y("div","logo",C),B&&C.setAttribute("href",d.getAbsolutePath(B))),B="#"+A.id+" .jwdownload",A.style.width="",A.style.height="",a(B+"display",{width:d.styleDimension(Math.max(320,x)),height:d.styleDimension(Math.max(180,o)),background:"black center no-repeat "+(i?"url("+i+")":""),backgroundSize:"contain",position:"relative",border:"none",display:"block"}),a(B+"display div",{position:"absolute",width:"100%",height:"100%"}),a(B+"logo",{top:z.margin+"px",right:z.margin+"px",background:"top right no-repeat url("+z.prefix+z.file+")"}),a(B+"icon",{background:"center no-repeat url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAgNJREFUeNrs28lqwkAYB/CZqNVDDj2r6FN41QeIy8Fe+gj6BL275Q08u9FbT8ZdwVfotSBYEPUkxFOoks4EKiJdaDuTjMn3wWBO0V/+sySR8SNSqVRKIR8qaXHkzlqS9jCfzzWcTCYp9hF5o+59sVjsiRzcegSckFzcjT+ruN80TeSlAjCAAXzdJSGPFXRpAAMYwACGZQkSdhG4WCzehMNhqV6vG6vVSrirKVEw66YoSqDb7cqlUilE8JjHd/y1MQefVzqdDmiaJpfLZWHgXMHn8F6vJ1cqlVAkEsGuAn83J4gAd2RZymQygX6/L1erVQt+9ZPWb+CDwcCC2zXGJaewl/DhcHhK3DVj+KfKZrMWvFarcYNLomAv4aPRSFZVlTlcSPA5fDweW/BoNIqFnKV53JvncjkLns/n/cLdS+92O7RYLLgsKfv9/t8XlDn4eDyiw+HA9Jyz2eyt0+kY2+3WFC5hluej0Ha7zQQq9PPwdDq1Et1sNsx/nFBgCqWJ8oAK1aUptNVqcYWewE4nahfU0YQnk4ntUEfGMIU2m01HoLaCKbTRaDgKtaVLk9tBYaBcE/6Artdr4RZ5TB6/dC+9iIe/WgAMYADDpAUJAxjAAAYwgGFZgoS/AtNNTF7Z2bL0BYPBV3Jw5xFwwWcYxgtBP5OkE8i9G7aWGOOCruvauwADALMLMEbKf4SdAAAAAElFTkSuQmCC)"})):u?(z=u,A=y("iframe","",A),A.src="http://www.youtube.com/embed/"+d.youTubeID(z),A.width=x,A.height=o,A.style.border="none"):B()}}}(jwplayer),function(b){var i=b.utils,a=b.events,h={};(b.embed.flash=function(r,o,d,u,q){function e(l,j,n){var m=document.createElement("param");m.setAttribute("name",j);m.setAttribute("value",n);l.appendChild(m)}function c(l,j,m){return function(){try{m&&document.getElementById(q.id+"_wrapper").appendChild(j);var p=document.getElementById(q.id).getPluginConfig("display");"function"===typeof l.resize&&l.resize(p.width,p.height);j.style.left=p.x;j.style.top=p.h}catch(n){}}}function f(l){if(!l){return{}}var j={},m=[];i.foreach(l,function(n,t){var p=i.getPluginName(n);m.push(n);i.foreach(t,function(w,x){j[p+"."+w]=x})});j.plugins=m.join(",");return j}var k=new b.events.eventdispatcher,v=i.flashVersion();i.extend(this,k);this.embed=function(){d.id=q.id;if(10>v){return k.sendEvent(a.ERROR,{message:"Flash version must be 10.0 or greater"}),!1}var p,n,m=q.config.listbar,l=i.extend({},d);if(r.id+"_wrapper"===r.parentNode.id){p=document.getElementById(r.id+"_wrapper")}else{p=document.createElement("div");n=document.createElement("div");n.style.display="none";n.id=r.id+"_aspect";p.id=r.id+"_wrapper";p.style.position="relative";p.style.display="block";p.style.width=i.styleDimension(l.width);p.style.height=i.styleDimension(l.height);if(q.config.aspectratio){var j=parseFloat(q.config.aspectratio);n.style.display="block";n.style.marginTop=q.config.aspectratio;p.style.height="auto";p.style.display="inline-block";m&&("bottom"===m.position?n.style.paddingBottom=m.size+"px":"right"===m.position&&(n.style.marginBottom=-1*m.size*(j/100)+"px"))}r.parentNode.replaceChild(p,r);p.appendChild(r);p.appendChild(n)}p=u.setupPlugins(q,l,c);0<p.length?i.extend(l,f(p.plugins)):delete l.plugins;"undefined"!==typeof l["dock.position"]&&"false"===l["dock.position"].toString().toLowerCase()&&(l.dock=l["dock.position"],delete l["dock.position"]);p=l.wmode||(l.height&&40>=l.height?"transparent":"opaque");n="height width modes events primary base fallback volume".split(" ");for(m=0;m<n.length;m++){delete l[n[m]]}n=i.getCookies();i.foreach(n,function(w,t){"undefined"===typeof l[w]&&(l[w]=t)});n=window.location.href.split("/");n.splice(n.length-1,1);n=n.join("/");l.base=n+"/";h[r.id]=l;i.isMSIE()?(n='\x3cobject classid\x3d"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" " width\x3d"100%" height\x3d"100%"id\x3d"'+r.id+'" name\x3d"'+r.id+'" tabindex\x3d0""\x3e',n+='\x3cparam name\x3d"movie" value\x3d"'+o.src+'"\x3e',n+='\x3cparam name\x3d"allowfullscreen" value\x3d"true"\x3e\x3cparam name\x3d"allowscriptaccess" value\x3d"always"\x3e',n+='\x3cparam name\x3d"seamlesstabbing" value\x3d"true"\x3e',n+='\x3cparam name\x3d"wmode" value\x3d"'+p+'"\x3e',n+='\x3cparam name\x3d"bgcolor" value\x3d"#000000"\x3e',n+="\x3c/object\x3e",r.outerHTML=n,p=document.getElementById(r.id)):(n=document.createElement("object"),n.setAttribute("type","application/x-shockwave-flash"),n.setAttribute("data",o.src),n.setAttribute("width","100%"),n.setAttribute("height","100%"),n.setAttribute("bgcolor","#000000"),n.setAttribute("id",r.id),n.setAttribute("name",r.id),n.className="jwswf",e(n,"allowfullscreen","true"),e(n,"allowscriptaccess","always"),e(n,"seamlesstabbing","true"),e(n,"wmode",p),r.parentNode.replaceChild(n,r),p=n);q.config.aspectratio&&(p.style.position="absolute");q.container=p;q.setPlayer(p,"flash")};this.supportsConfig=function(){if(v){if(d){if("string"===i.typeOf(d.playlist)){return !0}try{var l=d.playlist[0].sources;if("undefined"===typeof l){return !0}for(var j=0;j<l.length;j++){if(l[j].file&&g(l[j].file,l[j].type)){return !0}}}catch(m){}}else{return !0}}return !1}}).getVars=function(c){return h[c]};var g=b.embed.flashCanPlay=function(c,j){if(i.isYouTube(c,j)||i.isRtmp(c,j)||"hls"===j){return !0}var f=i.extensionmap[j?j:i.extension(c)];return !f?!1:!!f.flash}}(jwplayer),function(b){var g=b.utils,a=g.extensionmap,e=b.events;b.embed.html5=function(o,q,j,i,r){function n(k,h,l){return function(){try{var p=document.querySelector("#"+o.id+" .jwmain");l&&p.appendChild(h);"function"===typeof k.resize&&(k.resize(p.clientWidth,p.clientHeight),setTimeout(function(){k.resize(p.clientWidth,p.clientHeight)},400));h.left=p.style.left;h.top=p.style.top}catch(m){}}}function d(h){c.sendEvent(h.type,{message:"HTML5 player not found"})}var c=this,f=new e.eventdispatcher;g.extend(c,f);c.embed=function(){if(b.html5){i.setupPlugins(r,j,n);o.innerHTML="";var h=b.utils.extend({},j);delete h.volume;h=new b.html5.player(h);r.container=document.getElementById(r.id);r.setPlayer(h,"html5")}else{h=new g.scriptloader(q.src),h.addEventListener(e.ERROR,d),h.addEventListener(e.COMPLETE,c.embed),h.load()}};c.supportsConfig=function(){if(b.vid.canPlayType){try{if("string"===g.typeOf(j.playlist)){return !0}for(var k=j.playlist[0].sources,h=0;h<k.length;h++){if(b.embed.html5CanPlay(k[h].file,k[h].type,j.androidhls)){return !0}}}catch(l){}}return !1}};b.embed.html5CanPlay=function(k,c,i){if(null!==navigator.userAgent.match(/BlackBerry/i)||g.isIE(9)){return !1}if(g.isYouTube(k,c)){return !0}var l=g.extension(k);c=c||a.extType(l);if("hls"===c){if(i){i=g.isAndroidNative;if(i(2)||i(3)||i("4.0")){return !1}if(g.isAndroid()){return !0}}else{if(g.isAndroid()){return !1}}}if(g.isRtmp(k,c)){return !1}k=a[c]||a[l];if(!k||k.flash&&!k.html5){return !1}var f;f:if(k=k.html5){try{f=!!b.vid.canPlayType(k);break f}catch(j){}f=!1}else{f=!0}return f}}(jwplayer),function(h){var l=h.embed,g=h.embed.html5CanPlay,j=h.utils,i=h._,a=/\.(js|swf)$/;h.cast=h.cast||{};h.embed=j.extend(function(A){function o(){D="Adobe SiteCatalyst Error: Could not find Media Module"}var C=j.repo(),z=j.extend({},h.defaults),f=j.extend({},z,A.config),d=A.config,n=f.plugins,y=f.analytics,G=C+"jwpsrv.js",E=C+"sharing.js",b=C+"related.js",c=C+"gapro.js",z=h.key?h.key:z.key,F=(new h.utils.key(z)).edition(),D,n=n?n:{};"ads"==F&&f.advertising&&(a.test(f.advertising.client)?n[f.advertising.client]=f.advertising:n[C+f.advertising.client+".js"]=f.advertising);delete d.advertising;d.key=z;f.analytics&&a.test(f.analytics.client)&&(G=f.analytics.client);delete d.analytics;y&&!("ads"===F||"enterprise"===F)&&delete y.enabled;if("free"==F||!y||!1!==y.enabled){n[G]=y?y:{}}delete n.sharing;delete n.related;switch(F){case"ads":case"enterprise":if(d.sitecatalyst){try{window.s&&window.s.hasOwnProperty("Media")?new h.embed.sitecatalyst(A):o()}catch(B){o()}}case"premium":f.related&&(a.test(f.related.client)&&(b=f.related.client),n[b]=f.related),f.ga&&(a.test(f.ga.client)&&(c=f.ga.client),n[c]=f.ga);case"pro":f.sharing&&(a.test(f.sharing.client)&&(E=f.sharing.client),n[E]=f.sharing),f.skin&&(d.skin=f.skin.replace(/^(beelden|bekle|five|glow|modieus|roundster|stormtrooper|vapor)$/i,j.repo()+"skins/$1.xml"))}d.plugins=n;A.config=d;A=new l(A);D&&A.errorScreen(D);return A},h.embed);h.embed.html5CanPlay=function(e,m){var f;var k={file:e,type:m};f=h.html5&&h.html5.chooseProvider?h.html5.chooseProvider(k)!==h.html5.VideoProvider:i.any(h.unregisteredProviders,function(b){return b.supports(k)});return f?!0:g.apply(this,arguments)}}(jwplayer),function(a){var b=jwplayer.utils;a.sitecatalyst=function(w){function y(d){A.debug&&b.log(d)}function x(d){d=d.split("/");d=d[d.length-1];d=d.split("?");return d[0]}function z(){if(!q){q=!0;var d=i.getPosition();y("stop: "+k+" : "+d);s.Media.stop(k,d)}}function r(){C||(z(),C=!0,y("close: "+k),s.Media.close(k),B=!0,o=0)}var i=w,A=b.extend({},i.config.sitecatalyst),u={onPlay:function(){if(!B){var d=i.getPosition();q=!1;y("play: "+k+" : "+d);s.Media.play(k,d)}},onPause:z,onBuffer:z,onIdle:r,onPlaylistItem:function(e){try{B=!0;r();o=0;var l;if(A.mediaName){l=A.mediaName}else{var j=i.getPlaylistItem(e.index);l=j.title?j.title:j.file?x(j.file):j.sources&&j.sources.length?x(j.sources[0].file):""}k=l;c=A.playerName?A.playerName:i.id}catch(h){b.log(h)}},onTime:function(){if(B){var e=i.getDuration();if(-1==e){return}C=q=B=!1;y("open: "+k+" : "+e+" : "+c);s.Media.open(k,e,c);y("play: "+k+" : 0");s.Media.play(k,0)}e=i.getPosition();if(3<=Math.abs(e-o)){var d=o;y("seek: "+d+" to "+e);y("stop: "+k+" : "+d);s.Media.stop(k,d);y("play: "+k+" : "+e);s.Media.play(k,e)}o=e},onComplete:r},k,c,o,q=!0,C=!0,B;b.foreach(u,function(d){i[d](u[d])})}}(jwplayer.embed),function(b){function i(d,e){d[e]&&(d[e]=a.getAbsolutePath(d[e]))}var a=b.utils,h=b._,g=window.location.href;b.cast.setupCastConfig=function(e,r){var o=a.extend({},e.config);o.cast=a.extend({pageUrl:g},r);for(var k="base autostart controls fallback fullscreen width height mobilecontrols modes playlistlayout playlistposition playlistsize primary stretching sharing related ga skin logo listbar".split(" "),n=k.length;n--;){delete o[k[n]]}k=o.plugins;delete o.plugins;for(var c in k){if(k.hasOwnProperty(c)){var q=k[c];if(q.client&&(/[\.\/]/.test(q.client)&&i(q,"client"),-1<q.client.indexOf("vast"))){n=o;q=a.extend({},q);q.client="vast";delete q.companiondiv;if(q.schedule){var j=void 0;for(j in q.schedule){q.schedule.hasOwnProperty(j)&&i(q.schedule[j].ad||q.schedule[j],"tag")}}i(q,"tag");n.advertising=q}}}e.position&&(o.position=e.position);0<e.item&&(o.item=e.item);o.captionLabel=a.getCookies().captionLabel;return o};b.cast.setupFlashCastConfig=function(d){var j=d.config;j.playlist=d.getPlaylist();var f;(f=h.find(j.plugins,function(e,c){return 0<c.indexOf("vast.js")}))?(f.client="vast",f={advertising:f}):f={};j=h.pick(j,"id captionLabel cast key playlist repeat".split(" "));j.cast.pageUrl=window.location.href;a.extend(j,{captionLabel:a.getCookies().captionLabel,volume:d.getVolume(),mute:d.getMute(),id:d.id,position:d.getPosition(),item:d.getPlaylistIndex()},f);return j}}(window.jwplayer),function(j,p){function g(d,c){d[c]&&(d[c]=l.getAbsolutePath(d[c]))}var m=p.cast,l=p.utils,a=p.events,i=a.state,o={};m.NS="urn:x-cast:com.longtailvideo.jwplayer";m.debug=!1;m.availability=null;m.available=function(e){e=e||m.availability;var d=j.chrome,f="available";d.cast&&d.cast.ReceiverAvailability&&(f=d.cast.ReceiverAvailability.AVAILABLE);return e===f};m.controller=function(at,ar){var ao,an;function ap(r,q){m.log("send command",r,q);var t={command:r};void 0!==q&&(t.args=q);T.sendMessage(m.NS,t,k,function(u){m.log("error message",u);"Invalid namespace"===u.description&&aa()})}function aq(q){q=!!m.available(q.availability);h.available!==q&&(h.available=q,al(a.JWPLAYER_CAST_AVAILABLE))}function ag(q){m.log("existing session",q);!T&&!Z&&(Z=q.session,Z.addMessageListener(m.NS,ac))}function ac(v,u){var r=JSON.parse(u);if(!r){throw"Message not proper JSON"}if(r.reconcile){Z.removeMessageListener(m.NS,ac);var t=r.diff,q=Z;if(!t.id||!r.appid||!r.pageUrl){t.id=p().id,r.appid=ab.appid,r.pageUrl=f,Z=T=null}t.id===at.id&&(r.appid===ab.appid&&r.pageUrl===f)&&(T||(at.jwInstreamState()&&at.jwInstreamDestroy(!0),W(q),ar.sendEvent(a.JWPLAYER_PLAYER_STATE,{oldstate:t.oldstate,newstate:t.newstate})),V(r));Z=null}}function aj(q){h.active=!!q;q=h;var r;r=T&&T.receiver?T.receiver.friendlyName:"";q.deviceName=r;al(a.JWPLAYER_CAST_SESSION,{})}function al(r){var q=l.extend({},h);ar.sendEvent(r,q)}function ae(r){var q=j.chrome;r.code!==q.cast.ErrorCode.CANCEL&&(m.log("Cast Session Error:",r,T),r.code===q.cast.ErrorCode.SESSION_ERROR&&aa())}function aa(){T?(af(),T.stop(ai,Y)):ai()}function Y(q){m.error("Cast Session Stop error:",q,T);ai()}function W(r){m.log("Session started:",r);T=r;T.addMessageListener(m.NS,ah);T.addUpdateListener(ad);at.jwPause(!0);at.jwSetFullscreen(!1);n=ar.getVideo();ao=ar.volume;an=ar.mute;ak=new m.provider(ap);ak.init();ar.setVideoProvider(ak);at.jwPlay=function(u){!1===u?ak.pause():ak.play()};at.jwPause=function(u){at.jwPlay(!!u)};at.jwLoad=function(u){"number"===l.typeOf(u)&&ar.setItem(u);ak.load(u)};at.jwPlaylistItem=function(u){"number"===l.typeOf(u)&&ar.setItem(u);ak.playlistItem(u)};at.jwPlaylistNext=function(){at.jwPlaylistItem(ar.item+1)};at.jwPlaylistPrev=function(){at.jwPlaylistItem(ar.item-1)};at.jwSetVolume=function(u){l.exists(u)&&(u=Math.min(Math.max(0,u),100)|0,e(u)&&(u=Math.max(0,Math.min(u/100,1)),T.setReceiverVolumeLevel(u,U,function(v){m.error("set volume error",v);U()})))};at.jwSetMute=function(u){l.exists(u)||(u=!X.mute);d(u)&&T.setReceiverMuted(!!u,U,function(v){m.error("set muted error",v);U()})};at.jwGetVolume=function(){return X.volume|0};at.jwGetMute=function(){return !!X.mute};at.jwIsBeforePlay=function(){return !1};var q=at.jwSetCurrentCaptions;at.jwSetCurrentCaptions=function(u){q(u);ak.sendCommand("caption",u)};at.jwSkipAd=function(u){am&&(am.skipAd(u),u=am.getAdModel(),u.complete=!0,ar.sendEvent(a.JWPLAYER_CAST_AD_CHANGED,u))};at.jwClickAd=function(v){if(am&&300<am.timeSinceClick()&&(am.clickAd(v),ar.state!==i.PAUSED)){var u={tag:v.tag};v.sequence&&(u.sequence=v.sequence);v.podcount&&(u.podcount=v.podcount);p(at.id).dispatchEvent(a.JWPLAYER_AD_CLICK,u);j.open(v.clickthrough)}};at.jwPlayAd=at.jwPauseAd=at.jwSetControls=at.jwForceState=at.jwReleaseState=at.jwSetFullscreen=at.jwDetachMedia=at.jwAttachMedia=k;var t=p(at.id).plugins;t.vast&&t.vast.jwPauseAd!==k&&(c={jwPlayAd:t.vast.jwPlayAd,jwPauseAd:t.vast.jwPauseAd},t.vast.jwPlayAd=t.vast.jwPauseAd=k);U();aj(!0);r!==Z&&ak.setup(b(),ar)}function ad(q){m.log("Cast Session status",q);q?U():(ak.sendEvent(a.JWPLAYER_PLAYER_STATE,{oldstate:ar.state,newstate:i.BUFFERING}),ai())}function ai(){m.log("_sessionStopped");T&&(af(),T=null);if(n){delete at.jwSkipAd;delete at.jwClickAd;at.initializeAPI();var q=p(at.id).plugins;q.vast&&l.extend(q.vast,c);ar.volume=ao;ar.mute=an;ar.setVideoProvider(n);ar.duration=0;ak&&(ak.destroy(),ak=null);am&&(am.destroy(),am=null);ar.state!==i.IDLE?l.isIPad()||l.isIPod()?(at.jwStop(!0),n.sendEvent(a.JWPLAYER_PLAYER_STATE,{oldstate:i.BUFFERING,newstate:i.IDLE})):(ar.state=i.IDLE,at.jwPlay(!0),at.jwSeek(ar.position)):n.sendEvent(a.JWPLAYER_PLAYER_STATE,{oldstate:i.BUFFERING,newstate:i.IDLE});n=null}aj(!1)}function af(){T.removeUpdateListener(ad);T.removeMessageListener(m.NS,ah)}function ah(r,q){var t=JSON.parse(q);if(!t){throw"Message not proper JSON"}V(t)}function V(r){if("state"===r.type){if(am&&(r.diff.newstate||r.diff.position)){am.destroy(),am=null,ar.setVideoProvider(ak),ar.sendEvent(a.JWPLAYER_CAST_AD_CHANGED,{done:!0})}ak.updateModel(r.diff,r.type);r=r.diff;void 0!==r.item&&ar.item!==r.item&&(ar.item=r.item,ar.sendEvent(a.JWPLAYER_PLAYLIST_ITEM,{index:ar.item}))}else{if("ad"===r.type){null===am&&(am=new m.adprovider(m.NS,T),am.init(),ar.setVideoProvider(am));am.updateModel(r.diff,r.type);var q=am.getAdModel();r.diff.clickthrough&&(q.onClick=at.jwClickAd);r.diff.skipoffset&&(q.onSkipAd=at.jwSkipAd);ar.sendEvent(a.JWPLAYER_CAST_AD_CHANGED,q);r.diff.complete&&am.resetAdModel()}else{"connection"===r.type?!0===r.closed&&aa():m.error("received unhandled message",r.type,r)}}}function b(){var r=l.extend({},ar.config);r.cast=l.extend({pageUrl:f},ab);for(var q="base autostart controls fallback fullscreen width height mobilecontrols modes playlistlayout playlistposition playlistsize primary stretching sharing related ga skin logo listbar".split(" "),w=q.length;w--;){delete r[q[w]]}q=r.plugins;delete r.plugins;for(var v in q){if(q.hasOwnProperty(v)){var u=q[v];if(u.client&&(/[\.\/]/.test(u.client)&&g(u,"client"),-1<u.client.indexOf("vast"))){w=r;u=l.extend({},u);u.client="vast";delete u.companiondiv;if(u.schedule){var t=void 0;for(t in u.schedule){u.schedule.hasOwnProperty(t)&&g(u.schedule[t].ad||u.schedule[t],"tag")}}g(u,"tag");w.advertising=u}}}ar.position&&(r.position=ar.position);0<ar.item&&(r.item=ar.item);r.captionLabel=l.getCookies().captionLabel;return r}function U(){if(T&&T.receiver){var r=T.receiver.volume;if(r){var q=100*r.level|0;d(!!r.muted);e(q)}}}function e(q){var r=X.volume!==q;r&&(X.volume=q,ak.sendEvent(a.JWPLAYER_MEDIA_VOLUME,{volume:q}));return r}function d(q){var r=X.mute!==q;r&&(X.mute=q,ak.sendEvent(a.JWPLAYER_MEDIA_MUTE,{mute:q}));return r}function k(){}var T=null,h={available:!1,active:!1,deviceName:""},X={volume:null,mute:null},f=l.getAbsolutePath(j.location.href),ab,ak=null,am=null,n=null;ao=ar.volume;an=ar.mute;var Z=null,c=null;ab=l.extend({},o,ar.cast);g(ab,"loadscreen");g(ab,"endscreen");g(ab,"logo");if(ab.appid&&(!j.cast||!j.cast.receiver)){m.loader.addEventListener("availability",aq),m.loader.addEventListener("session",ag),m.loader.initialize(ab.appid)}this.startCasting=function(){T||at.jwInstreamState()||j.chrome.cast.requestSession(W,ae)};this.stopCasting=aa};m.log=function(){if(m.debug){var b=Array.prototype.slice.call(arguments,0);console.log.apply(console,b)}};m.error=function(){var b=Array.prototype.slice.call(arguments,0);console.error.apply(console,b)}}(window,jwplayer),function(N){function Q(b){F.log("existing session",b);!i&&!z&&(z=b.session,z.addMessageListener(F.NS,J))}function J(b,h){var g=JSON.parse(h),f=z;if(!g){throw"Message not proper JSON"}if(g.reconcile){z.removeMessageListener(F.NS,J);g.receiverFriendlyName=z.receiver.friendlyName;if(!g.pageUrl||!g.diff.id||!g.appid){g.pageUrl=o,g.diff.id=N().id,g.appid=B,z=i=null}D[g.diff.id]&&(B===g.appid&&g.pageUrl===o)&&(A=g.diff.id,B=g.appid,M(A,"jwInstreamDestroy"),R(f),M(A,E.message,g),z=null)}}function P(){i&&(i.removeUpdateListener(S),i.removeMessageListener(F.NS,L),i.stop(I.noop,G.bind(this)),i=null);M(A,E.cleanup)}function O(d,c){i.sendMessage(F.NS,{command:d,args:c},I.noop,function(b){F.error("message send error",b)})}function R(a){var d=N(A);i=a;i.addMessageListener(F.NS,L);i.addUpdateListener(S);d=N.cast.setupFlashCastConfig(d);z!==i&&O("setup",d);M(A,E.connected,{receiverFriendlyName:a.receiver.friendlyName})}function L(e,d){if(d){var f=JSON.parse(d);if(!f){throw"Message not proper JSON"}M(A,E.message,f)}}function G(b){M(A,E.error,b||{})}function S(b){b||P()}function M(e,d,f){f?N(e).callInternal(d,f):N(e).callInternal(d)}function H(){}var F=N.cast,I=N.utils,K=N._,C=window.chrome||{},A,D={},E={},B,z,o=I.getAbsolutePath(window.location.href),i;F.NS="urn:x-cast:com.longtailvideo.jwplayer";F.flash={checkAvailability:function(e,c,f){E=f;B=c;D[e]=!0;F.loader.addEventListener("availability",function(a){"available"===a.availability&&M(e,E.available,a)});F.loader.addEventListener("session",Q);F.loader.initialize(c)},startCasting:function(b){A=b;C.cast.requestSession(R.bind(this),G.bind(this))},stopCasting:P,mute:function(b){i.setReceiverMuted(b,H,function(c){F.error("set muted error",c)})},volume:function(b){b=Math.max(0,Math.min(b/100,1));i.setReceiverVolumeLevel(b,H,function(c){F.error("set volume error",c)})},messageReceiver:O,canCastItem:function(b){return K.any(b.levels,function(c){return N.embed.html5CanPlay(c.file,c.type)})}}}(window.jwplayer),function(y,B){function u(){B&&B.cast&&B.cast.isAvailable&&!D.apiConfig?(D.apiConfig=new B.cast.ApiConfig(new B.cast.SessionRequest(v),w,o,B.cast.AutoJoinPolicy.ORIGIN_SCOPED),B.cast.initialize(D.apiConfig,C,z)):15>r++&&setTimeout(u,1000)}function A(){i&&(i.resetEventListeners(),i=null)}function z(){D.apiConfig=null}function C(){}function w(a){E.sendEvent("session",{session:a});a.sendMessage(D.NS,{whoami:1})}function o(a){D.availability=a;E.sendEvent("availability",{availability:a})}window.chrome=B;var D=y.cast,x=y.utils,q=y.events,i,r=0,v=null,E=x.extend({initialize:function(a){v=a;null!==D.availability?E.sendEvent("availability",{availability:D.availability}):B&&B.cast?u():i||(i=new x.scriptloader("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"),i.addEventListener(q.ERROR,A),i.addEventListener(q.COMPLETE,u),i.load())}},new q.eventdispatcher("cast.loader"));y.cast.loader=E}(window.jwplayer,window.chrome||{}),function(o,r){var j=[],q=o.utils,p=o.events,t=p.state,l="getBuffer getCaptionsList getControls getCurrentCaptions getCurrentQuality getCurrentAudioTrack getDuration getFullscreen getHeight getLockState getMute getPlaylistIndex getSafeRegion getPosition getQualityLevels getState getVolume getWidth isBeforeComplete isBeforePlay releaseState".split(" "),i="playlistNext stop forceState playlistPrev seek setCurrentCaptions setControls setCurrentQuality setVolume setCurrentAudioTrack".split(" "),u={onBufferChange:p.JWPLAYER_MEDIA_BUFFER,onBufferFull:p.JWPLAYER_MEDIA_BUFFER_FULL,onError:p.JWPLAYER_ERROR,onSetupError:p.JWPLAYER_SETUP_ERROR,onFullscreen:p.JWPLAYER_FULLSCREEN,onMeta:p.JWPLAYER_MEDIA_META,onMute:p.JWPLAYER_MEDIA_MUTE,onPlaylist:p.JWPLAYER_PLAYLIST_LOADED,onPlaylistItem:p.JWPLAYER_PLAYLIST_ITEM,onPlaylistComplete:p.JWPLAYER_PLAYLIST_COMPLETE,onReady:p.API_READY,onResize:p.JWPLAYER_RESIZE,onComplete:p.JWPLAYER_MEDIA_COMPLETE,onSeek:p.JWPLAYER_MEDIA_SEEK,onTime:p.JWPLAYER_MEDIA_TIME,onVolume:p.JWPLAYER_MEDIA_VOLUME,onBeforePlay:p.JWPLAYER_MEDIA_BEFOREPLAY,onBeforeComplete:p.JWPLAYER_MEDIA_BEFORECOMPLETE,onDisplayClick:p.JWPLAYER_DISPLAY_CLICK,onControls:p.JWPLAYER_CONTROLS,onQualityLevels:p.JWPLAYER_MEDIA_LEVELS,onQualityChange:p.JWPLAYER_MEDIA_LEVEL_CHANGED,onCaptionsList:p.JWPLAYER_CAPTIONS_LIST,onCaptionsChange:p.JWPLAYER_CAPTIONS_CHANGED,onAdError:p.JWPLAYER_AD_ERROR,onAdClick:p.JWPLAYER_AD_CLICK,onAdImpression:p.JWPLAYER_AD_IMPRESSION,onAdTime:p.JWPLAYER_AD_TIME,onAdComplete:p.JWPLAYER_AD_COMPLETE,onAdCompanions:p.JWPLAYER_AD_COMPANIONS,onAdSkipped:p.JWPLAYER_AD_SKIPPED,onAdPlay:p.JWPLAYER_AD_PLAY,onAdPause:p.JWPLAYER_AD_PAUSE,onAdMeta:p.JWPLAYER_AD_META,onCast:p.JWPLAYER_CAST_SESSION,onAudioTrackChange:p.JWPLAYER_AUDIO_TRACK_CHANGED,onAudioTracks:p.JWPLAYER_AUDIO_TRACKS},m={onBuffer:t.BUFFERING,onPause:t.PAUSED,onPlay:t.PLAYING,onIdle:t.IDLE};o.api=function(g){function e(v,k){q.foreach(v,function(w,x){d[w]=function(y){return k(x,y)}})}function f(v,k){var w="jw"+k.charAt(0).toUpperCase()+k.slice(1);d[k]=function(){var x=b.apply(this,[w].concat(Array.prototype.slice.call(arguments,0)));return v?d:x}}function h(k){I=[];L&&L.destroy&&L.destroy();o.api.destroyPlayer(k.id)}function K(v,k){try{v.jwAddEventListener(k,'function(dat) { jwplayer("'+d.id+'").dispatchEvent("'+k+'", dat); }')}catch(x){if("flash"===d.renderingMode){var w=document.createElement("a");w.href=A.data;w.protocol!==location.protocol&&q.log("Warning: Your site ["+location.protocol+"] and JWPlayer ["+w.protocol+"] are hosted using different protocols")}q.log("Could not add internal listener")}}function G(v,k){H[v]||(H[v]=[],A&&n&&K(A,v));H[v].push(k);return d}function b(){if(n){if(A){var v=Array.prototype.slice.call(arguments,0),k=v.shift();if("function"===typeof A[k]){switch(v.length){case 6:return A[k](v[0],v[1],v[2],v[3],v[4],v[5]);case 5:return A[k](v[0],v[1],v[2],v[3],v[4]);case 4:return A[k](v[0],v[1],v[2],v[3]);case 3:return A[k](v[0],v[1],v[2]);case 2:return A[k](v[0],v[1]);case 1:return A[k](v[0])}return A[k]()}}return null}I.push(arguments)}var d=this,H={},B={},A,n=!1,I=[],c,L,a={},z={};d.container=g;d.id=g.id;d.setup=function(v){if(o.embed){var k=document.getElementById(d.id);k&&(v.fallbackDiv=k);h(d);k=o(d.id);k.config=v;L=new o.embed(k);L.embed();return k}return d};d.getContainer=function(){return d.container};d.addButton=function(v,k,y,x){try{z[x]=y,b("jwDockAddButton",v,k,'jwplayer("'+d.id+'").callback("'+x+'")',x)}catch(w){q.log("Could not add dock button"+w.message)}};d.removeButton=function(k){b("jwDockRemoveButton",k)};d.callback=function(k){if(z[k]){z[k]()}};d.getMeta=function(){return d.getItemMeta()};d.getPlaylist=function(){var k=b("jwGetPlaylist");"flash"===d.renderingMode&&q.deepReplaceKeyName(k,["__dot__","__spc__","__dsh__","__default__"],["."," ","-","default"]);return k};d.getPlaylistItem=function(k){q.exists(k)||(k=d.getPlaylistIndex());return d.getPlaylist()[k]};d.getRenderingMode=function(){return d.renderingMode};d.setFullscreen=function(k){q.exists(k)?b("jwSetFullscreen",k):b("jwSetFullscreen",!b("jwGetFullscreen"));return d};d.setMute=function(k){q.exists(k)?b("jwSetMute",k):b("jwSetMute",!b("jwGetMute"));return d};d.lock=function(){return d};d.unlock=function(){return d};d.load=function(k){b("jwInstreamDestroy");o(d.id).plugins.googima&&b("jwDestroyGoogima");b("jwLoad",k);return d};d.playlistItem=function(k){b("jwPlaylistItem",parseInt(k,10));return d};d.resize=function(v,k){if("flash"!==d.renderingMode){b("jwResize",v,k)}else{var x=document.getElementById(d.id+"_wrapper"),w=document.getElementById(d.id+"_aspect");w&&(w.style.display="none");x&&(x.style.display="block",x.style.width=q.styleDimension(v),x.style.height=q.styleDimension(k))}return d};d.play=function(k){if(k!==r){return b("jwPlay",k),d}k=d.getState();var v=c&&c.getState();v&&(v===t.IDLE||v===t.PLAYING||v===t.BUFFERING?b("jwInstreamPause"):b("jwInstreamPlay"));k===t.PLAYING||k===t.BUFFERING?b("jwPause"):b("jwPlay");return d};d.pause=function(k){k===r?(k=d.getState(),k===t.PLAYING||k===t.BUFFERING?b("jwPause"):b("jwPlay")):b("jwPause",k);return d};d.createInstream=function(){return new o.api.instream(this,A)};d.setInstream=function(k){return c=k};d.loadInstream=function(v,k){c=d.setInstream(d.createInstream()).init(k);c.loadItem(v);return c};d.destroyPlayer=function(){b("jwPlayerDestroy")};d.playAd=function(v){var k=o(d.id).plugins;k.vast?k.vast.jwPlayAd(v):b("jwPlayAd",v)};d.pauseAd=function(){var k=o(d.id).plugins;k.vast?k.vast.jwPauseAd():b("jwPauseAd")};e(m,function(v,k){B[v]||(B[v]=[],G(p.JWPLAYER_PLAYER_STATE,function(w){var D=w.newstate;w=w.oldstate;if(D===v){var C=B[D];if(C){for(var y=0;y<C.length;y++){var x=C[y];"function"===typeof x&&x.call(this,{oldstate:w,newstate:D})}}}}));B[v].push(k);return d});e(u,G);q.foreach(l,function(v,k){f(!1,k)});q.foreach(i,function(v,k){f(!0,k)});d.remove=function(){if(!n){throw"Cannot call remove() before player is ready"}h(this)};d.registerPlugin=function(v,k,x,w){o.plugins.registerPlugin(v,k,x,w)};d.setPlayer=function(v,k){A=v;d.renderingMode=k};d.detachMedia=function(){if("html5"===d.renderingMode){return b("jwDetachMedia")}};d.attachMedia=function(k){if("html5"===d.renderingMode){return b("jwAttachMedia",k)}};d.getAudioTracks=function(){return b("jwGetAudioTracks")};d.removeEventListener=function(v,k){var x=H[v];if(x){for(var w=x.length;w--;){x[w]===k&&x.splice(w,1)}}};d.dispatchEvent=function(v,k){var D=H[v];if(D){for(var D=D.slice(0),C=q.translateEventResponse(v,k),y=0;y<D.length;y++){var w=D[y];if("function"===typeof w){try{v===p.JWPLAYER_PLAYLIST_LOADED&&q.deepReplaceKeyName(C.playlist,["__dot__","__spc__","__dsh__","__default__"],["."," ","-","default"]),w.call(this,C)}catch(x){q.log("There was an error calling back an event handler",x)}}}}};d.dispatchInstreamEvent=function(k){c&&c.dispatchEvent(k,arguments)};d.callInternal=b;d.playerReady=function(k){n=!0;A||d.setPlayer(document.getElementById(k.id));d.container=document.getElementById(d.id);q.foreach(H,function(v){K(A,v)});G(p.JWPLAYER_PLAYLIST_ITEM,function(){a={}});G(p.JWPLAYER_MEDIA_META,function(v){q.extend(a,v.metadata)});G(p.JWPLAYER_VIEW_TAB_FOCUS,function(w){var v=d.getContainer();!0===w.hasFocus?q.addClass(v,"jw-tab-focus"):q.removeClass(v,"jw-tab-focus")});for(d.dispatchEvent(p.API_READY);0<I.length;){b.apply(this,I.shift())}};d.getItemMeta=function(){return a};return d};o.playerReady=function(d){var c=o.api.playerById(d.id);c||(c=o.api.selectPlayer(d.id));c.playerReady(d)};o.api.selectPlayer=function(d){var c;q.exists(d)||(d=0);d.nodeType?c=d:"string"===typeof d&&(c=document.getElementById(d));return c?(d=o.api.playerById(c.id))?d:o.api.addPlayer(new o.api(c)):"number"===typeof d?j[d]:null};o.api.playerById=function(d){for(var c=0;c<j.length;c++){if(j[c].id===d){return j[c]}}return null};o.api.addPlayer=function(d){for(var c=0;c<j.length;c++){if(j[c]===d){return d}}j.push(d);return d};o.api.destroyPlayer=function(d){var c,n,k;q.foreach(j,function(b,a){a.id===d&&(c=b,n=a)});if(c===r||n===r){return null}q.clearCss("#"+n.id);if(k=document.getElementById(n.id+("flash"===n.renderingMode?"_wrapper":""))){"html5"===n.renderingMode&&n.destroyPlayer();var h=document.createElement("div");h.id=n.id;k.parentNode.replaceChild(h,k)}j.splice(c,1);return null}}(window.jwplayer),function(b){var g=b.events,a=b.utils,e=g.state;b.api.instream=function(o,q){function k(f,l){h[f]||(h[f]=[],q.jwInstreamAddEventListener(f,'function(dat) { jwplayer("'+o.id+'").dispatchInstreamEvent("'+f+'", dat); }'));h[f].push(l);return this}function d(l,f){c[l]||(c[l]=[],k(g.JWPLAYER_PLAYER_STATE,function(m){var v=m.newstate,u=m.oldstate;if(v===l){var t=c[v];if(t){for(var p=0;p<t.length;p++){var n=t[p];"function"===typeof n&&n.call(this,{oldstate:u,newstate:v,type:m.type})}}}}));c[l].push(f);return this}var r,j,h={},c={},i=this;i.type="instream";i.init=function(){o.callInternal("jwInitInstream");return i};i.loadItem=function(f,l){r=f;j=l||{};"array"===a.typeOf(f)?o.callInternal("jwLoadArrayInstream",r,j):o.callInternal("jwLoadItemInstream",r,j)};i.removeEvents=function(){h=c={}};i.removeEventListener=function(l,f){var n=h[l];if(n){for(var m=n.length;m--;){n[m]===f&&n.splice(m,1)}}};i.dispatchEvent=function(m,l){var u=h[m];if(u){for(var u=u.slice(0),t=a.translateEventResponse(m,l[1]),p=0;p<u.length;p++){var n=u[p];"function"===typeof n&&n.call(this,t)}}};i.onError=function(f){return k(g.JWPLAYER_ERROR,f)};i.onMediaError=function(f){return k(g.JWPLAYER_MEDIA_ERROR,f)};i.onFullscreen=function(f){return k(g.JWPLAYER_FULLSCREEN,f)};i.onMeta=function(f){return k(g.JWPLAYER_MEDIA_META,f)};i.onMute=function(f){return k(g.JWPLAYER_MEDIA_MUTE,f)};i.onComplete=function(f){return k(g.JWPLAYER_MEDIA_COMPLETE,f)};i.onPlaylistComplete=function(f){return k(g.JWPLAYER_PLAYLIST_COMPLETE,f)};i.onPlaylistItem=function(f){return k(g.JWPLAYER_PLAYLIST_ITEM,f)};i.onTime=function(f){return k(g.JWPLAYER_MEDIA_TIME,f)};i.onBuffer=function(f){return d(e.BUFFERING,f)};i.onPause=function(f){return d(e.PAUSED,f)};i.onPlay=function(f){return d(e.PLAYING,f)};i.onIdle=function(f){return d(e.IDLE,f)};i.onClick=function(f){return k(g.JWPLAYER_INSTREAM_CLICK,f)};i.onInstreamDestroyed=function(f){return k(g.JWPLAYER_INSTREAM_DESTROYED,f)};i.onAdSkipped=function(f){return k(g.JWPLAYER_AD_SKIPPED,f)};i.play=function(f){q.jwInstreamPlay(f)};i.pause=function(f){q.jwInstreamPause(f)};i.hide=function(){o.callInternal("jwInstreamHide")};i.destroy=function(){i.removeEvents();o.callInternal("jwInstreamDestroy")};i.setText=function(f){q.jwInstreamSetText(f?f:"")};i.getState=function(){return q.jwInstreamState()};i.setClick=function(f){q.jwInstreamClick&&q.jwInstreamClick(f)}}}(jwplayer),function(b){var g=b.api,a=g.selectPlayer,e=b._;g.selectPlayer=function(d){return(d=a(d))?d:{registerPlugin:function(f,i,h){"jwpsrv"!==f&&b.plugins.registerPlugin(f,i,h)}}};b.unregisteredProviders=[];g.registerProvider=function(d){b&&b.html5&&e.isFunction(b.html5.registerProvider)?b.html5.registerProvider(d):b.unregisteredProviders.push(d)}}(jwplayer));(function(b){b.html5={};b.html5.version="6.11.4923";b=b.utils.css;var a=" div span a img ul li video".split(" ").join(", .jwplayer ");b(".jwplayer ".slice(0,-1)+a+", .jwclick",{margin:0,padding:0,border:0,color:"#000000","font-size":"100%",font:"inherit","vertical-align":"baseline","background-color":"transparent","text-align":"left",direction:"ltr","line-height":20,"-webkit-tap-highlight-color":"rgba(255, 255, 255, 0)"});b(".jwplayer ul",{"list-style":"none"});b(".jwplayer .jwcontrols",{"pointer-events":"none"});b(".jwplayer.jw-user-inactive .jwcontrols",{"pointer-events":"all"});b(".jwplayer .jwcontrols .jwdockbuttons, .jwplayer .jwcontrols .jwcontrolbar, .jwplayer .jwcontrols .jwskip, .jwplayer .jwcontrols .jwdisplayIcon, .jwplayer .jwcontrols .jwpreview, .jwplayer .jwcontrols .jwlogo",{"pointer-events":"all"})})(jwplayer);(function(b){var a=document;b.parseDimension=function(c){return"string"==typeof c?""===c?0:-1<c.lastIndexOf("%")?c:parseInt(c.replace("px",""),10):c};b.timeFormat=function(d){if(0<d){var g=Math.floor(d/3600),f=Math.floor((d-3600*g)/60);d=Math.floor(d%60);return(g?g+":":"")+(10>f?"0":"")+f+":"+(10>d?"0":"")+d}return"00:00"};b.bounds=function(d){var i={left:0,right:0,width:0,height:0,top:0,bottom:0};if(!d||!a.body.contains(d)){return i}if(d.getBoundingClientRect){d=d.getBoundingClientRect(d);var h=window.pageYOffset,g=window.pageXOffset;if(!d.width&&!d.height&&!d.left&&!d.top){return i}i.left=d.left+g;i.right=d.right+g;i.top=d.top+h;i.bottom=d.bottom+h;i.width=d.right-d.left;i.height=d.bottom-d.top}else{i.width=d.offsetWidth|0;i.height=d.offsetHeight|0;do{i.left+=d.offsetLeft|0,i.top+=d.offsetTop|0}while(d=d.offsetParent);i.right=i.left+i.width;i.bottom=i.top+i.height}return i};b.empty=function(c){if(c){for(;0<c.childElementCount;){c.removeChild(c.children[0])}}}})(jwplayer.utils);(function(b){var a=b.stretching={NONE:"none",FILL:"fill",UNIFORM:"uniform",EXACTFIT:"exactfit"};b.scale=function(d,m,l,k,j){var i="";m=m||1;l=l||1;k|=0;j|=0;if(1!==m||1!==l){i="scale("+m+", "+l+")"}if(k||j){i="translate("+k+"px, "+j+"px)"}b.transform(d,i)};b.stretch=function(w,u,t,q,o,n){if(!u||!t||!q||!o||!n){return !1}w=w||a.UNIFORM;var v=2*Math.ceil(t/2)/o,i=2*Math.ceil(q/2)/n,m="video"===u.tagName.toLowerCase(),k=!1,d="jw"+w.toLowerCase();switch(w.toLowerCase()){case a.FILL:v>i?i=v:v=i;k=!0;break;case a.NONE:v=i=1;case a.EXACTFIT:k=!0;break;default:v>i?0.95<o*i/t?(k=!0,d="jwexactfit"):(o*=i,n*=i):0.95<n*v/q?(k=!0,d="jwexactfit"):(o*=v,n*=v),k&&(v=2*Math.ceil(t/2)/o,i=2*Math.ceil(q/2)/n)}m?(w={left:"",right:"",width:"",height:""},k?(t<o&&(w.left=w.right=Math.ceil((t-o)/2)),q<n&&(w.top=w.bottom=Math.ceil((q-n)/2)),w.width=o,w.height=n,b.scale(u,v,i,0,0)):(k=!1,b.transform(u)),b.css.style(u,w)):u.className=u.className.replace(/\s*jw(none|exactfit|uniform|fill)/g,"")+" "+d;return k}})(jwplayer.utils);(function(a){a.dfxp=function(){var b=jwplayer.utils.seconds;this.parse=function(i){var n=[{begin:0,text:""}];i=i.replace(/^\s+/,"").replace(/\s+$/,"");var m=i.split("\x3c/p\x3e"),l=i.split("\x3c/tt:p\x3e"),k=[];for(i=0;i<m.length;i++){0<=m[i].indexOf("\x3cp")&&(m[i]=m[i].substr(m[i].indexOf("\x3cp")+2).replace(/^\s+/,"").replace(/\s+$/,""),k.push(m[i]))}for(i=0;i<l.length;i++){0<=l[i].indexOf("\x3ctt:p")&&(l[i]=l[i].substr(l[i].indexOf("\x3ctt:p")+5).replace(/^\s+/,"").replace(/\s+$/,""),k.push(l[i]))}m=k;for(i=0;i<m.length;i++){l=m[i];k={};try{var j=l.indexOf('begin\x3d"'),l=l.substr(j+7),j=l.indexOf('" end\x3d"');k.begin=b(l.substr(0,j));l=l.substr(j+7);j=l.indexOf('"');k.end=b(l.substr(0,j));j=l.indexOf('"\x3e');l=l.substr(j+2);k.text=l}catch(d){}l=k;l.text&&(n.push(l),l.end&&(n.push({begin:l.end,text:""}),delete l.end))}if(1<n.length){return n}throw {message:"Invalid DFXP file:"}}}})(jwplayer.parsers);(function(a){a.srt=function(){var c=jwplayer.utils,b=c.seconds;this.parse=function(u,q){var p=q?[]:[{begin:0,text:""}];u=c.trim(u);var o=u.split("\r\n\r\n");1==o.length&&(o=u.split("\n\n"));for(var n=0;n<o.length;n++){if("WEBVTT"!=o[n]){var v,t=o[n];v={};var m=t.split("\r\n");1==m.length&&(m=t.split("\n"));try{t=1;0<m[0].indexOf(" --\x3e ")&&(t=0);var k=m[t].indexOf(" --\x3e ");0<k&&(v.begin=b(m[t].substr(0,k)),v.end=b(m[t].substr(k+5)));if(m[t+1]){v.text=m[t+1];for(t+=2;t<m.length;t++){v.text+="\x3cbr/\x3e"+m[t]}}}catch(i){}v.text&&(p.push(v),v.end&&!q&&(p.push({begin:v.end,text:""}),delete v.end))}}if(1<p.length){return p}throw {message:"Invalid SRT file"}}}})(jwplayer.parsers);(function(f){var e=f.utils.noop,b=f.events,g=f._.constant(!1);f.html5.DefaultProvider={supports:g,play:e,load:e,stop:e,volume:e,mute:e,seek:e,seekDrag:e,resize:e,remove:e,destroy:e,setVisibility:e,setFullscreen:g,getFullscreen:e,setContainer:g,getContainer:e,isAudioFile:g,supportsFullscreen:g,getQualityLevels:e,getCurrentQuality:e,setCurrentQuality:e,getAudioTracks:e,getCurrentAudioTrack:e,setCurrentAudioTrack:e,checkComplete:e,setControls:e,attachMedia:e,detachMedia:e,setState:function(d){if(d!==this.state){var a=this.state||b.state.IDLE;this.state=d;this.sendEvent(b.JWPLAYER_PLAYER_STATE,{oldstate:a,newstate:d})}}}})(jwplayer);(function(a){a.html5.chooseProvider=function(b){return a._.isObject(b)&&a.html5.YoutubeProvider.supports(b)?a.html5.YoutubeProvider:a.html5.VideoProvider}})(jwplayer);(function(x){function o(am){function ae(){}function N(k){r(k);b&&(aj.state===v.PLAYING&&!d)&&(X=Math.floor(10*V.currentTime)/10,g=!0,aj.sendEvent(w.JWPLAYER_MEDIA_TIME,{position:X,duration:P}))}function ak(){aj.sendEvent(w.JWPLAYER_MEDIA_META,{duration:V.duration,height:V.videoHeight,width:V.videoWidth})}function ag(k){b&&(g||(g=!0,ac()),"loadedmetadata"===k.type&&(V.muted&&(V.muted=!1,V.muted=!0),ak()))}function r(){g&&(0<f&&!n)&&(z?setTimeout(function(){0<f&&aj.seek(f)},200):aj.seek(f))}function ac(){e||(e=!0,aj.sendEvent(w.JWPLAYER_MEDIA_BUFFER_FULL))}function ah(k){b&&!d&&(V.paused?V.currentTime===V.duration&&3<V.duration||aj.pause():(!A.isFF()||!("play"===k.type&&aj.state===v.BUFFERING))&&aj.setState(v.PLAYING))}function W(){b&&(d||aj.setState(v.BUFFERING))}function Y(k){var G;if("array"===A.typeOf(k)&&0<k.length){G=[];for(var F=0;F<k.length;F++){var C=k[F],D={};D.label=C.label&&C.label?C.label?C.label:0:F;G[F]=D}}return G}function af(k,C){j=ai[h];aj.setState(v.BUFFERING);u(c);c=setInterval(ab,100);f=0;V.src!==j.file||m||q?(e=g=!1,P=C?C:-1,V.src=j.file,V.load()):(0===k&&(f=-1,aj.seek(k)),ak(),V.play());X=V.currentTime;m&&ac();A.isIOS()&&aj.getFullScreen()&&(V.controls=!0);0<k&&aj.seek(k)}function ab(){if(b){var k;k=V.buffered;k=!k||!V.duration||0===k.length?0:k.end(k.length-1)/V.duration;1<=k&&u(c);k!==ao&&(ao=k,aj.sendEvent(w.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(100*ao)}))}}function S(k){aj.sendEvent("fullscreenchange",{target:k.target,jwstate:a})}this.state=v.IDLE;var p=new x.events.eventdispatcher("provider."+this.name);A.extend(this,p);var aj=this,l={abort:ae,canplay:ag,canplaythrough:ae,click:function(){aj.sendEvent(w.JWPLAYER_PROVIDER_CLICK)},durationchange:function(){if(b){var k=Math.floor(10*V.duration)/10;P!==k&&(P=k);n&&(0<f&&k>f)&&aj.seek(f);N()}},emptied:ae,ended:function(){b&&aj.state!==v.IDLE&&(u(c),h=-1,al=!0,aj.sendEvent(w.JWPLAYER_MEDIA_BEFORECOMPLETE),b&&(aj.setState(v.IDLE),al=!1,aj.sendEvent(w.JWPLAYER_MEDIA_COMPLETE)))},error:function(){b&&(A.log("Error playing media: %o",V.error),aj.sendEvent(w.JWPLAYER_MEDIA_ERROR,{message:"Error loading media: File could not be played"}),aj.setState(v.IDLE))},loadeddata:ae,loadedmetadata:ag,loadstart:ae,pause:ah,play:ah,playing:ah,progress:r,ratechange:ae,readystatechange:ae,seeked:function(){!d&&aj.state!==v.PAUSED&&aj.setState(v.PLAYING)},seeking:z?W:ae,stalled:ae,suspend:ae,timeupdate:N,volumechange:function(){aj.sendEvent(w.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(100*V.volume)});aj.sendEvent(w.JWPLAYER_MEDIA_MUTE,{mute:V.muted})},waiting:W,webkitbeginfullscreen:function(k){a=!0;S(k);A.isIOS()&&(V.controls=!1)},webkitendfullscreen:function(k){a=!1;S(k);A.isIOS()&&(V.controls=!1)}},E,j,P,X,g=!1,e,f=0,d=!1,ad,c=-1,ao=-1,b=!1,ai,h=-1,al=!1,a=!1;this.sendEvent=function(){b&&p.sendEvent.apply(this,arguments)};var V=document.getElementById(am).querySelector("video"),an=V=V||document.createElement("video");A.foreach(l,function(C,k){an.addEventListener(C,k,!1)});i||(V.controls=!0,V.controls=!1);V.setAttribute("x-webkit-airplay","allow");V.setAttribute("webkit-playsinline","");b=!0;this.stop=function(){b&&(u(c),V.removeAttribute("src"),z||V.load(),h=-1,this.setState(v.IDLE))};this.destroy=function(){var k=V;A.foreach(l,function(C,D){k.removeEventListener(C,D,!1)});this.remove()};this.load=function(k){if(b){ai=k.sources;0>h&&(h=0);if(ai){for(var D=A.getCookies().qualityLabel,C=0;C<ai.length;C++){if(ai[C]["default"]&&(h=C),D&&ai[C].label===D){h=C;break}}}(D=Y(ai))&&aj.sendEvent(w.JWPLAYER_MEDIA_LEVELS,{levels:D,currentQuality:h});af(k.starttime||0,k.duration)}};this.play=function(){b&&!d&&V.play()};this.pause=function(){b&&(V.pause(),this.setState(v.PAUSED))};this.seekDrag=function(k){b&&((d=k)?V.pause():V.play())};this.seek=function(C){if(b){if(!d&&0===f&&this.sendEvent(w.JWPLAYER_MEDIA_SEEK,{position:X,offset:C}),g){f=0;try{V.currentTime=C}catch(k){f=C}}else{f=C}}};this.volume=function(k){A.exists(k)&&(V.volume=Math.min(Math.max(0,k/100),1),ad=100*V.volume)};this.mute=function(k){A.exists(k)||(k=!V.muted);k?(ad=100*V.volume,V.muted=!0):(this.volume(ad),V.muted=!1)};this.setState=function(k){k===v.PAUSED&&this.state===v.IDLE||d||t.setState.apply(this,arguments)};this.checkComplete=function(){return al};this.detachMedia=function(){u(c);b=!1;return V};this.attachMedia=function(k){b=!0;k||(g=!1);al&&(this.setState(v.IDLE),this.sendEvent(w.JWPLAYER_MEDIA_COMPLETE),al=!1)};this.setContainer=function(k){E=k;k.appendChild(V)};this.getContainer=function(){return E};this.remove=function(){V&&(V.removeAttribute("src"),z||V.load());u(c);h=-1;E===V.parentNode&&E.removeChild(V)};this.setVisibility=function(k){k||n?A.css.style(E,{visibility:"visible",opacity:1}):A.css.style(E,{visibility:"",opacity:0})};this.resize=function(k,D,C){return A.stretch(C,V,k,D,V.videoWidth,V.videoHeight)};this.setControls=function(k){V.controls=!!k};this.supportsFullscreen=y.constant(!0);this.setFullScreen=function(C){if(C=!!C){try{var k=V.webkitEnterFullscreen||V.webkitEnterFullScreen;k&&k.apply(V)}catch(D){return !1}return aj.getFullScreen()}(k=V.webkitExitFullscreen||V.webkitExitFullScreen)&&k.apply(V);return C};aj.getFullScreen=function(){return a||!!V.webkitDisplayingFullscreen};this.isAudioFile=function(){if(!ai){return !1}var k=ai[0].type;return"oga"===k||"aac"===k||"mp3"===k||"vorbis"===k};this.setCurrentQuality=function(k){if(h!==k&&(k=parseInt(k,10),0<=k&&ai&&ai.length>k)){h=k;A.saveCookie("qualityLabel",ai[k].label);this.sendEvent(w.JWPLAYER_MEDIA_LEVEL_CHANGED,{currentQuality:k,levels:Y(ai)});k=Math.floor(10*V.currentTime)/10;var C=Math.floor(10*V.duration)/10;0>=C&&(C=P);af(k,C)}};this.getCurrentQuality=function(){return h};this.getQualityLevels=function(){return Y(ai)}}var A=x.utils,y=x._,w=x.events,v=w.state,u=window.clearInterval,t=x.html5.DefaultProvider,z=A.isMSIE(),m=A.isMobile(),q=A.isSafari(),n=A.isAndroidNative(),i=A.isIOS(7),B=function(){};B.prototype=t;o.prototype=new B;o.supports=y.constant(!0);x.html5.VideoProvider=o})(jwplayer);(function(q){function j(al){function ak(){window.YT&&window.YT.loaded?(h=window.YT,ac()):setTimeout(ak,100)}function ah(){l=null}function ac(){var k;if(k=h){k=g&&g.parentNode,k||(P||(q(al).onReady(ac),P=!0),k=!1)}k&&W&&W.apply(S)}function aa(){if(ai&&ai.getPlayerState){var p=ai.getPlayerState();null!==p&&(void 0!==p&&p!==d)&&E({data:p});var k=h.PlayerState;p===k.PLAYING?(N(),S.sendEvent(o.JWPLAYER_MEDIA_TIME,{position:ag(ai.getCurrentTime()),duration:ai.getDuration()})):p===k.BUFFERING&&N()}}function ag(k){return Math.round(10*k)/10}function N(){var k=0;ai&&ai.getVideoLoadedFraction&&(k=Math.round(100*ai.getVideoLoadedFraction()));f!==k&&(f=k,S.sendEvent(o.JWPLAYER_MEDIA_BUFFER,{bufferPercent:k}))}function aj(){S.sendEvent(o.JWPLAYER_MEDIA_META,{duration:ai.getDuration(),width:g.clientWidth,height:g.clientHeight})}function ae(){e&&(e.apply(S),e=null)}function E(p){var k=h.PlayerState;d=p.data;switch(d){case k.ENDED:S.state!==n.IDLE&&(ab=!0,S.sendEvent(o.JWPLAYER_MEDIA_BEFORECOMPLETE),S.setState(n.IDLE),ab=!1,S.sendEvent(o.JWPLAYER_MEDIA_COMPLETE));break;case k.PLAYING:a=!1;aj();S.sendEvent(o.JWPLAYER_MEDIA_LEVELS,{levels:S.getQualityLevels(),currentQuality:S.getCurrentQuality()});S.setState(n.PLAYING);break;case k.PAUSED:S.setState(n.PAUSED);break;case k.BUFFERING:S.setState(n.BUFFERING);break;case k.CUED:S.setState(n.IDLE)}}function Z(){S.play();S.sendEvent(o.JWPLAYER_MEDIA_LEVEL_CHANGED,{currentQuality:S.getCurrentQuality(),levels:S.getQualityLevels()})}function af(){S.sendEvent(o.JWPLAYER_MEDIA_ERROR,{message:"Error loading YouTube: Video could not be played"})}function V(){t&&(S.setVisibility(!0),u.css("#"+al+" .jwcontrols",{display:"none"}))}function X(){clearInterval(c);if(ai&&ai.stopVideo){try{ai.stopVideo(),ai.clearVideo()}catch(k){}}}function ad(k){e=null;var w=u.youTubeID(k.sources[0].file);k.image||(k.image="http://i.ytimg.com/vi/"+w+"/0.jpg");S.setVisibility(!0);if(!h||!ai){W=function(){if(!w){throw"invalid Youtube ID"}if(g.parentNode){var x={height:"100%",width:"100%",videoId:w,playerVars:u.extend({autoplay:0,controls:0,showinfo:0,rel:0,modestbranding:0,playsinline:1,origin:location.protocol+"//"+location.hostname},void 0),events:{onReady:ae,onStateChange:E,onPlaybackQualityChange:Z,onError:af}};S.setVisibility(!0);ai=new h.Player(g,x);g=ai.getIframe();W=null;V();Y()}},ac()}else{if(ai.getPlayerState){if(ai.getVideoData().video_id!==w){a?(X(),ai.cueVideoById(w)):ai.loadVideoById(w);var p=ai.getPlayerState(),v=h.PlayerState;(p===v.UNSTARTED||p===v.CUED)&&V()}else{0<ai.getCurrentTime()&&ai.seekTo(0),aj()}}else{e=function(){Y();S.load(k)}}}}function Y(){ai&&ai.getVolume&&(S.sendEvent(o.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(ai.getVolume())}),S.sendEvent(o.JWPLAYER_MEDIA_MUTE,{mute:ai.isMuted()}))}this.state=n.IDLE;var S=u.extend(this,new q.events.eventdispatcher("provider."+this.name)),h=window.YT,ai=null,g=document.createElement("div"),H,f=-1,P=!1,W=null,e=null,c=-1,d=-1,b,ab=!1,a=t;this.setState=function(k){clearInterval(c);k!==n.IDLE&&(c=setInterval(aa,250),k===n.PLAYING?u.css("#"+al+" .jwcontrols",{display:""}):k===n.BUFFERING&&N());m.setState.apply(this,arguments)};!h&&l&&(l.addEventListener(o.COMPLETE,ak),l.addEventListener(o.ERROR,ah),l.load());g.id=al+"_youtube";this.init=function(k){ad(k)};this.destroy=function(){this.remove();H=g=h=S=null};this.load=function(k){this.setState(n.BUFFERING);ad(k);S.play()};this.stop=function(){X();this.setState(n.IDLE)};this.play=function(){a||ai.playVideo&&ai.playVideo()};this.pause=function(){a||ai.pauseVideo&&ai.pauseVideo()};this.seek=function(k){a||ai.seekTo&&ai.seekTo(k)};this.volume=function(k){ai&&ai.getVolume&&u.exists(k)&&(b=Math.min(Math.max(0,k),100),ai.setVolume(b))};this.mute=function(k){ai&&ai.getVolume&&(u.exists(k)||(k=!ai.isMuted()),k?(b=ai.getVolume(),ai.mute()):(this.volume(b),ai.unMute()))};this.detachMedia=function(){return document.createElement("video")};this.attachMedia=function(){ab&&(this.setState(n.IDLE),this.sendEvent(o.JWPLAYER_MEDIA_COMPLETE),ab=!1)};this.setContainer=function(k){H=k;k.appendChild(g);this.setVisibility(!0)};this.getContainer=function(){return H};this.supportsFullscreen=function(){return !(!H||!H.requestFullscreen&&!H.requestFullScreen&&!H.webkitRequestFullscreen&&!H.webkitRequestFullScreen&&!H.webkitEnterFullscreen&&!H.webkitEnterFullScreen&&!H.mozRequestFullScreen&&!H.msRequestFullscreen)};this.remove=function(){X();g&&(H&&H===g.parentNode)&&H.removeChild(g);W=e=ai=null};this.setVisibility=function(k){k?(u.css.style(g,{display:"block"}),u.css.style(H,{visibility:"visible",opacity:1})):t||u.css.style(H,{opacity:0})};this.resize=function(k,v,p){return u.stretch(p,g,k,v,g.clientWidth,g.clientHeight)};this.checkComplete=function(){return ab};this.getCurrentQuality=function(){if(ai){if(ai.getAvailableQualityLevels){var k=ai.getPlaybackQuality();return ai.getAvailableQualityLevels().indexOf(k)}return -1}};this.getQualityLevels=function(){if(ai){if(!r.isFunction(ai.getAvailableQualityLevels)){return[]}var k=ai.getAvailableQualityLevels();return 2===k.length&&r.contains(k,"auto")?{label:r.without(k,"auto")}:r.map(k,function(p){return{label:p}}).reverse()}};this.setCurrentQuality=function(p){if(ai&&ai.getAvailableQualityLevels){var k=ai.getAvailableQualityLevels();k.length&&ai.setPlaybackQuality(k[k.length-p-1])}}}var u=q.utils,r=q._,o=q.events,n=o.state,m=q.html5.DefaultProvider,l=new u.scriptloader(window.location.protocol+"//www.youtube.com/iframe_api"),t=u.isMobile();window.onYouTubeIframeAPIReady=function(){l=null};var i=function(){};i.prototype=m;j.prototype=new i;j.supports=function(a){return u.isYouTube(a.file,a.type)};q.html5.YoutubeProvider=j})(jwplayer);(function(j){var g=j.utils,b=g.css,l=j.events,i=80,h=30;j.html5.adskipbutton=function(O,N,Q,P){function M(d){0>a||(d=Q.replace(/xx/gi,Math.ceil(a-d)),D(d))}function L(m,d){if("number"===g.typeOf(f)){a=f}else{if("%"===f.slice(-1)){var q=parseFloat(f.slice(0,-1));d&&!isNaN(q)&&(a=d*q/100)}else{"string"===g.typeOf(f)?a=g.seconds(f):isNaN(f)||(a=f)}}}function G(){o&&e.sendEvent(l.JWPLAYER_AD_SKIPPED)}function D(m){m=m||P;var d=H.getContext("2d");d.clearRect(0,0,i,h);J(d,0,0,i,h,5,!0,!1,!1);J(d,0,0,i,h,5,!1,!0,!1);d.fillStyle="#979797";d.globalAlpha=1;var r=H.height/2,q=H.width/2;d.textAlign="center";d.font="Bold 12px Sans-Serif";m===P&&(q-=k.width,d.drawImage(k,H.width-(H.width-d.measureText(P).width)/2-4,(h-k.height)/2));d.fillText(m,q,r+4)}function p(m){m=m||P;var d=H.getContext("2d");d.clearRect(0,0,i,h);J(d,0,0,i,h,5,!0,!1,!0);J(d,0,0,i,h,5,!1,!0,!0);d.fillStyle="#FFFFFF";d.globalAlpha=1;var r=H.height/2,q=H.width/2;d.textAlign="center";d.font="Bold 12px Sans-Serif";m===P&&(q-=k.width,d.drawImage(E,H.width-(H.width-d.measureText(P).width)/2-4,(h-k.height)/2));d.fillText(m,q,r+4)}function J(y,x,w,u,v,t,q,d,r){"undefined"===typeof d&&(d=!0);"undefined"===typeof t&&(t=5);y.beginPath();y.moveTo(x+t,w);y.lineTo(x+u-t,w);y.quadraticCurveTo(x+u,w,x+u,w+t);y.lineTo(x+u,w+v-t);y.quadraticCurveTo(x+u,w+v,x+u-t,w+v);y.lineTo(x+t,w+v);y.quadraticCurveTo(x,w+v,x,w+v-t);y.lineTo(x,w+t);y.quadraticCurveTo(x,w,x+t,w);y.closePath();d&&(y.strokeStyle="white",y.globalAlpha=r?1:0.25,y.stroke());q&&(y.fillStyle="#000000",y.globalAlpha=0.5,y.fill())}function c(m,d){var q=document.createElement(m);d&&(q.className=d);return q}var K,H,a=-1,o=!1,I,f=0,k,E,n=!1,e=g.extend(this,new l.eventdispatcher);e.updateSkipTime=function(d,m){L(d,m);0<=a&&(b.style(K,{visibility:I?"visible":"hidden"}),0<a-d?(M(d),o&&(o=!1,K.style.cursor="default")):o||(o||(o=!0,K.style.cursor="pointer"),n?p():D()))};this.reset=function(d){o=!1;f=d;L(0,0);M(0)};e.show=function(){I=!0;0<a&&b.style(K,{visibility:"visible"})};e.hide=function(){I=!1;b.style(K,{visibility:"hidden"})};this.element=function(){return K};k=new Image;k.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAICAYAAAArzdW1AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3NpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0ODkzMWI3Ny04YjE5LTQzYzMtOGM2Ni0wYzdkODNmZTllNDYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RDI0OTcxRkE0OEM2MTFFM0I4MTREM0ZBQTFCNDE3NTgiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RDI0OTcxRjk0OEM2MTFFM0I4MTREM0ZBQTFCNDE3NTgiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NDA5ZGQxNDktNzdkMi00M2E3LWJjYWYtOTRjZmM2MWNkZDI0IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjQ4OTMxYjc3LThiMTktNDNjMy04YzY2LTBjN2Q4M2ZlOWU0NiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PqAZXX0AAABYSURBVHjafI2BCcAwCAQ/kr3ScRwjW+g2SSezCi0kYHpwKLy8JCLDbWaGTM+MAFzuVNXhNiTQsh+PS9QhZ7o9JuFMeUVNwjsamDma4K+3oy1cqX/hxyPAAAQwNKV27g9PAAAAAElFTkSuQmCC";k.className="jwskipimage jwskipout";E=new Image;E.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAICAYAAAArzdW1AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3NpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0ODkzMWI3Ny04YjE5LTQzYzMtOGM2Ni0wYzdkODNmZTllNDYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RDI0OTcxRkU0OEM2MTFFM0I4MTREM0ZBQTFCNDE3NTgiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RDI0OTcxRkQ0OEM2MTFFM0I4MTREM0ZBQTFCNDE3NTgiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NDA5ZGQxNDktNzdkMi00M2E3LWJjYWYtOTRjZmM2MWNkZDI0IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjQ4OTMxYjc3LThiMTktNDNjMy04YzY2LTBjN2Q4M2ZlOWU0NiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PvgIj/QAAABYSURBVHjadI6BCcAgDAS/0jmyih2tm2lHSRZJX6hQQ3w4FP49LKraSHV3ZLDzAuAi3cwaqUhSfvft+EweznHneUdTzPGRmp5hEJFhAo3LaCnjn7blzCvAAH9YOSCL5RZKAAAAAElFTkSuQmCC";E.className="jwskipimage jwskipover";K=c("div","jwskip");K.id=O+"_skipcontainer";H=c("canvas");K.appendChild(H);e.width=H.width=i;e.height=H.height=h;K.appendChild(E);K.appendChild(k);b.style(K,{visibility:"hidden",bottom:N});K.addEventListener("mouseover",function(){n=!0;o&&p()});K.addEventListener("mouseout",function(){n=!1;o&&D()});g.isMobile()?(new g.touch(K)).addEventListener(g.touchEvents.TAP,G):K.addEventListener("click",G)};b(".jwskip",{position:"absolute","float":"right",display:"inline-block",width:i,height:h,right:10});b(".jwskipimage",{position:"relative",display:"none"})})(window.jwplayer);(function(o){var i=o.html5,r=o.utils,p=o.events,n=p.state,m=o.parsers,l=r.css,j=r.isAndroid(4,!0),q="playing";i.captions=function(ab,aa){function Z(g){r.log("CAPTIONS("+g+")")}function T(g){(h=g.fullscreen)?(R(),setTimeout(R,500)):Y(!0)}function R(){var k=E.offsetHeight,g=E.offsetWidth;0!==k&&0!==g&&O.resize(g,Math.round(0.94*k))}function Q(g,k){r.ajax(g,function(u){var t=u.responseXML?u.responseXML.firstChild:null;b++;if(t){"xml"===m.localName(t)&&(t=t.nextSibling);for(;t.nodeType===t.COMMENT_NODE;){t=t.nextSibling}}t=t&&"tt"===m.localName(t)?new o.parsers.dfxp:new o.parsers.srt;try{var v=t.parse(u.responseText);c<X.length&&(X[k].data=v);Y(!1)}catch(w){Z(w.message+": "+X[k].file)}b===X.length&&(0<e&&(d(e),e=-1),f())},W,!0)}function W(g){b++;Z(g);b===X.length&&(0<e&&(d(e),e=-1),f())}function f(){for(var k=[],g=0;g<X.length;g++){k.push(X[g])}H.sendEvent(p.JWPLAYER_CAPTIONS_LOADED,{captionData:k})}function Y(g){X.length?D===q&&0<a?(O.show(),h?T({fullscreen:!0}):(U(),g&&setTimeout(U,500))):O.hide():O.hide()}function U(){O.resize()}function d(g){0<g?(c=g-1,a=Math.floor(g),c>=X.length||(X[c].data?O.populate(X[c].data):b===X.length?(Z("file not loaded: "+X[c].file),0!==a&&P(p.JWPLAYER_CAPTIONS_CHANGED,X,0),a=0):e=g,Y(!1))):(a=0,Y(!1))}function P(k,g,t){H.sendEvent(k,{type:k,tracks:g,track:t})}function V(){for(var k=[{label:"Off"}],g=0;g<X.length;g++){k.push({label:X[g].label})}return k}var E,N={back:!0,color:"#FFFFFF",fontSize:15,fontFamily:"Arial,sans-serif",fontOpacity:100,backgroundColor:"#000",backgroundOpacity:100,edgeStyle:null,windowColor:"#FFFFFF",windowOpacity:0},S={fontStyle:"normal",fontWeight:"normal",textDecoration:"none"},O,D,c,X=[],b=0,e=-1,a=0,h=!1,H=new p.eventdispatcher;r.extend(this,H);this.element=function(){return E};this.getCaptionsList=function(){return V()};this.getCurrentCaptions=function(){return a};this.setCurrentCaptions=function(g){0<=g&&(a!==g&&g<=X.length)&&(d(g),g=V(),r.saveCookie("captionLabel",g[a].label),P(p.JWPLAYER_CAPTIONS_CHANGED,g,a))};E=document.createElement("div");E.id=ab.id+"_caption";E.className="jwcaptions";ab.jwAddEventListener(p.JWPLAYER_PLAYER_STATE,function(g){switch(g.newstate){case n.IDLE:D="idle";Y(!1);break;case n.PLAYING:D=q,Y(!1)}});ab.jwAddEventListener(p.JWPLAYER_PLAYLIST_ITEM,function(){c=0;X=[];O.update(0);b=0;for(var g=ab.jwGetPlaylist()[ab.jwGetPlaylistIndex()].tracks,t=[],u=0,k="",v=0,k="",u=0;u<g.length;u++){k=g[u].kind.toLowerCase(),("captions"===k||"subtitles"===k)&&t.push(g[u])}a=0;if(!j){for(u=0;u<t.length;u++){if(k=t[u].file){t[u].label||(t[u].label=u.toString()),X.push(t[u]),Q(X[u].file,u)}}for(u=0;u<X.length;u++){if(X[u]["default"]){v=u+1;break}}g=r.getCookies();if(k=g.captionLabel){g=V();for(u=0;u<g.length;u++){if(k===g[u].label){v=u;break}}}0<v&&d(v);Y(!1);P(p.JWPLAYER_CAPTIONS_LIST,V(),a)}});ab.jwAddEventListener(p.JWPLAYER_MEDIA_ERROR,Z);ab.jwAddEventListener(p.JWPLAYER_ERROR,Z);ab.jwAddEventListener(p.JWPLAYER_READY,function(){r.foreach(N,function(k,g){aa&&(void 0!==aa[k]?g=aa[k]:void 0!==aa[k.toLowerCase()]&&(g=aa[k.toLowerCase()]));S[k]=g});O=new o.html5.captions.renderer(S,E);Y(!1)});ab.jwAddEventListener(p.JWPLAYER_MEDIA_TIME,function(g){O.update(g.position)});ab.jwAddEventListener(p.JWPLAYER_FULLSCREEN,T);ab.jwAddEventListener(p.JWPLAYER_RESIZE,function(){Y(!1)})};l(".jwcaptions",{position:"absolute",cursor:"pointer",width:"100%",height:"100%",overflow:"hidden"})})(jwplayer);(function(e){var c=e.utils,b=c.css.style;e.html5.captions.renderer=function(M,K){function J(d){d=d||"";D="hidden";b(H,{visibility:D});v.innerHTML=d;d.length&&(D="visible",setTimeout(I,16))}function I(){if("visible"===D){var d=H.clientWidth,j=Math.pow(d/400,0.6),g=M.fontSize*j;b(v,{maxWidth:d+"px",fontSize:Math.round(g)+"px",lineHeight:Math.round(1.4*g)+"px",padding:Math.round(1*j)+"px "+Math.round(8*j)+"px"});M.windowOpacity&&b(G,{padding:Math.round(5*j)+"px",borderRadius:Math.round(5*j)+"px"});b(H,{visibility:D})}}function L(){for(var f=-1,d=0;d<E.length;d++){if(E[d].begin<=n&&(d===E.length-1||E[d+1].begin>=n)){f=d;break}}-1===f?J(""):f!==o&&(o=f,J(E[d].text))}function N(f,d,g){g=c.hexToRgba("#000000",g);"dropshadow"===f?d.textShadow="0 2px 1px "+g:"raised"===f?d.textShadow="0 0 5px "+g+", 0 1px 5px "+g+", 0 2px 5px "+g:"depressed"===f?d.textShadow="0 -2px 1px "+g:"uniform"===f&&(d.textShadow="-2px 0 1px "+g+",2px 0 1px "+g+",0 -2px 1px "+g+",0 2px 1px "+g+",-1px 1px 1px "+g+",1px 1px 1px "+g+",1px -1px 1px "+g+",1px 1px 1px "+g)}var E,H,G,v,o,n,D="visible",h=-1;this.hide=function(){clearInterval(h);b(H,{display:"none"})};this.populate=function(d){o=-1;E=d;L()};this.resize=function(){I()};this.show=function(){b(H,{display:"block"});I();clearInterval(h);h=setInterval(I,250)};this.update=function(d){n=d;E&&L()};var F=M.fontOpacity,C=M.windowOpacity,a=M.edgeStyle,k=M.backgroundColor,x={display:"inline-block"},i={color:c.hexToRgba(c.rgbHex(M.color),F),display:"inline-block",fontFamily:M.fontFamily,fontStyle:M.fontStyle,fontWeight:M.fontWeight,textAlign:"center",textDecoration:M.textDecoration,wordWrap:"break-word"};C&&(x.backgroundColor=c.hexToRgba(c.rgbHex(M.windowColor),C));N(a,i,F);M.back?i.backgroundColor=c.hexToRgba(c.rgbHex(k),M.backgroundOpacity):null===a&&N("uniform",i);H=document.createElement("div");G=document.createElement("div");v=document.createElement("span");b(H,{display:"block",height:"auto",position:"absolute",bottom:"20px",textAlign:"center",width:"100%"});b(G,x);b(v,i);G.appendChild(v);H.appendChild(G);K.appendChild(H)}})(jwplayer);(function(M,G,P){function N(b){return b?parseInt(b.width,10)+"px "+parseInt(b.height,10)+"px":"0 0"}var L=M.jwplayer,K=L.html5,J=L.utils,I=L._,O=L.events,D=O.state,H=J.css,F=J.transitionStyle,w=J.isMobile(),v=J.isAndroid(4,!0),q=M.top!==M.self,C="button",n="text",E="slider",x={display:"none"},i={display:"block"},o={display:""};K.controlbar=function(an,ar){function am(Q,l,R){return{name:Q,type:l,className:R}}function a8(Q){H.block(bp);var l=Q.duration===Number.POSITIVE_INFINITY,R=0===Q.duration&&0!==Q.position&&J.isSafari()&&!w;l||R?(aH.setText(an.jwGetPlaylist()[an.jwGetPlaylistIndex()].title||"Live broadcast"),a7(!1)):(a4.elapsed&&(l=J.timeFormat(Q.position),a4.elapsed.innerHTML=l),a4.duration&&(l=J.timeFormat(Q.duration),a4.duration.innerHTML=l),0<Q.duration?af(Q.position/Q.duration):af(0),bB=Q.duration,bn||aH.setText())}function a3(){var l=an.jwGetMute();bF=an.jwGetVolume()/100;bi("mute",l||0===bF);bv(l?0:bF)}function ak(){H.style([a4.hd,a4.cc],x);a9();aP()}function aV(l){bC=Math.floor(l.currentQuality);a4.hd&&(a4.hd.querySelector("button").className=2===au.length&&0===bC?"off":"");m&&0<=bC&&m.setActive(l.currentQuality)}function ap(l){A&&(bs=Math.floor(l.track),a4.cc&&(a4.cc.querySelector("button").className=2===A.length&&0===bs?"off":""),bE&&0<=bs&&bE.setActive(l.track))}function aT(l){a4.cast&&(J.canCast()?J.addClass(a4.cast,"jwcancast"):J.removeClass(a4.cast,"jwcancast"));aW(l||be)}function aW(l){be=l;bi("cast",l.active);aP()}function aS(){bd=J.extend({},f,aE.getComponentSettings("controlbar"),ar);by=aK("background").height;var l=aA?0:bd.margin;H.style(aG,{height:by,bottom:l,left:l,right:l,"max-width":aA?"":bd.maxwidth});H(aY(".jwtext"),{font:bd.fontsize+"px/"+aK("background").height+"px "+bd.font,color:bd.fontcolor,"font-weight":bd.fontweight});H(aY(".jwoverlay"),{bottom:by})}function aY(l){return"#"+bp+(l?" "+l:"")}function a1(){return G.createElement("span")}function aQ(R,Q,U,T,W){var l=a1(),V=aK(R);T=T?" left center":" center";var S=N(V);l.className="jw"+R;l.innerHTML="\x26nbsp;";if(V&&V.src){return U=U?{background:'url("'+V.src+'") repeat-x '+T,"background-size":S,height:W?V.height:""}:{background:'url("'+V.src+'") no-repeat'+T,"background-size":S,width:V.width,height:W?V.height:""},l.skin=V,H(aY((W?".jwvertical ":"")+".jw"+R),J.extend(U,Q)),a4[R]=l}}function aL(Q,l,S,R){l&&l.src&&(H(Q,{width:l.width,background:"url("+l.src+") no-repeat center","background-size":N(l)}),S.src&&!w&&H(Q+":hover,"+Q+".off:hover",{background:"url("+S.src+") no-repeat center","background-size":N(S)}),R&&R.src&&H(Q+".off",{background:"url("+R.src+") no-repeat center","background-size":N(R)}))}function aM(l){return function(Q){bD[l]&&(bD[l](),w&&aH.sendEvent(O.JWPLAYER_USER_ACTION));Q.preventDefault&&Q.preventDefault()}}function aJ(l){J.foreach(g,function(R,Q){R!==l&&("cc"===R&&(clearTimeout(bo),bo=P),"hd"===R&&(clearTimeout(a6),a6=P),Q.hide())})}function a7(l){aG&&a4.alt&&(l===P&&(l=aG.parentNode&&320<=aG.parentNode.clientWidth),l&&!bn?H.style(bg,o):H.style(bg,x))}function aI(){!aA&&!bn&&(H.block(bp),a5.show(),ay("volume",a5),aJ("volume"))}function bi(Q,l){I.isBoolean(l)||(l=!bx[Q]);a4[Q]&&(l?J.addClass(a4[Q],"jwtoggle"):J.removeClass(a4[Q],"jwtoggle"),J.addClass(a4[Q],"jwtoggling"),setTimeout(function(){J.removeClass(a4[Q],"jwtoggling")},100));bx[Q]=l}function aC(){au&&2<au.length&&(ag&&(clearTimeout(ag),ag=P),H.block(bp),m.show(),ay("hd",m),aJ("hd"))}function aq(){A&&2<A.length&&(bA&&(clearTimeout(bA),bA=P),H.block(bp),bE.show(),ay("cc",bE),aJ("cc"))}function aX(l){0<=l&&l<au.length&&(an.jwSetCurrentQuality(l),clearTimeout(a6),a6=P,m.hide())}function ax(l){0<=l&&l<A.length&&(an.jwSetCurrentCaptions(l),clearTimeout(bo),bo=P,bE.hide())}function av(){2===A.length&&ax((bs+1)%2)}function a0(){2===au.length&&aX((bC+1)%2)}function j(l){l.preventDefault();G.onselectstart=function(){return !1}}function bf(l){aZ();bz=l;M.addEventListener("mouseup",bh,!1);M.addEventListener("mousemove",bh,!1)}function aZ(){M.removeEventListener("mouseup",bh);M.removeEventListener("mousemove",bh);bz=null}function c(){a4.timeRail.className="jwrail";an.jwGetState()!==D.IDLE&&(an.jwSeekDrag(!0),bf("time"),aD(),aH.sendEvent(O.JWPLAYER_USER_ACTION))}function B(l){if(bz){var Q=a4[bz].querySelector(".jwrail"),Q=J.bounds(Q),Q=l.x/Q.width;100<Q&&(Q=100);l.type===J.touchEvents.DRAG_END?(an.jwSeekDrag(!1),a4.timeRail.className="jwrail",aZ(),bj.time(Q),al()):(af(Q),l=(new Date).getTime(),500<l-bm&&(bm=l,bj.time(Q)));aH.sendEvent(O.JWPLAYER_USER_ACTION)}}function ae(l){var Q=a4.time.querySelector(".jwrail"),Q=J.bounds(Q);l=l.x/Q.width;100<l&&(l=100);an.jwGetState()!==D.IDLE&&(bj.time(l),aH.sendEvent(O.JWPLAYER_USER_ACTION))}function aB(l){return function(Q){Q.button||(a4[l+"Rail"].className="jwrail","time"===l?an.jwGetState()!==D.IDLE&&(an.jwSeekDrag(!0),bf(l)):bf(l))}}function bh(Q){if(bz&&!Q.button){var l=a4[bz].querySelector(".jwrail"),R=J.bounds(l),l=bz,R=y()?a4[l].vertical?(100*R.bottom-Q.pageY)/(100*R.height):(Q.pageX-100*R.left)/(100*R.width):a4[l].vertical?(R.bottom-Q.pageY)/R.height:(Q.pageX-R.left)/R.width;"mouseup"===Q.type?("time"===l&&an.jwSeekDrag(!1),a4[l+"Rail"].className="jwrail",aZ(),bj[l.replace("H","")](R)):("time"===bz?af(R):bv(R),Q=(new Date).getTime(),500<Q-bm&&(bm=Q,bj[bz.replace("H","")](R)));return !1}}function aD(l){l&&aN.apply(this,arguments);ac&&(bB&&!aA&&!w)&&(H.block(bp),ac.show(),ay("time",ac))}function al(){ac&&ac.hide()}function aN(Q){b=J.bounds(aG);if((aj=J.bounds(ai))&&0!==aj.width){var l;y()?(Q=Q.pageX?Q.pageX-100*aj.left:Q.x,l=100*aj.width):(Q=Q.pageX?Q.pageX-aj.left:Q.x,l=aj.width);ac.positionX(Math.round(Q));k(bB*Q/l)}}function aO(){J.foreach(aU,function(Q,l){var R={};"%"===l.position.toString().slice(-1)?R.left=l.position:0<bB?(R.left=(100*l.position/bB).toFixed(2)+"%",R.display=null):(R.left=0,R.display="none");H.style(l.element,R)})}function ad(){bA=setTimeout(bE.hide,500)}function br(){ag=setTimeout(m.hide,500)}function ao(Q,l,T,S){if(!w){var R=Q.element();l.appendChild(R);l.addEventListener("mousemove",T,!1);S?l.addEventListener("mouseout",S,!1):l.addEventListener("mouseout",Q.hide,!1);H.style(R,{left:"50%"})}}function d(T,R,Q,S){if(w){var l=T.element();R.appendChild(l);(new J.touch(R)).addEventListener(J.touchEvents.TAP,function(){var U=Q;"cc"===S?(2===A.length&&(U=av),bo?(clearTimeout(bo),bo=P,T.hide()):(bo=setTimeout(function(){T.hide();bo=P},4000),U()),aH.sendEvent(O.JWPLAYER_USER_ACTION)):"hd"===S&&(2===au.length&&(U=a0),a6?(clearTimeout(a6),a6=P,T.hide()):(a6=setTimeout(function(){T.hide();a6=P},4000),U()),aH.sendEvent(O.JWPLAYER_USER_ACTION))})}}function bu(bW){var bV=a1();bV.className="jwgroup jw"+bW;bl[bW]=bV;if(h[bW]){var bV=h[bW],bT=bl[bW];if(bV&&0<bV.elements.length){for(var bQ=0;bQ<bV.elements.length;bQ++){var bU;bW:{bU=bV.elements[bQ];var bS=bW;switch(bU.type){case n:bS=void 0;bU=bU.name;var bS={},bO=aK(("alt"===bU?"elapsed":bU)+"Background");if(bO.src){var bR=a1();bR.id=bp+"_"+bU;"elapsed"===bU||"duration"===bU?(bR.className="jwtext jw"+bU+" jwhidden",bg.push(bR)):bR.className="jwtext jw"+bU;bS.background="url("+bO.src+") repeat-x center";bS["background-size"]=N(aK("background"));H.style(bR,bS);bR.innerHTML="alt"!==bU?"00:00":"";bS=a4[bU]=bR}else{bS=null}bU=bS;break bW;case C:if("blank"!==bU.name){bU=bU.name;bO=bS;if(!aK(bU+"Button").src||w&&("mute"===bU||0===bU.indexOf("volume"))||v&&/hd|cc/.test(bU)){bU=null}else{var bS=a1(),bR=a1(),bL=void 0,bL=bk,bP=aQ(bL.name);bP||(bP=a1(),bP.className="jwblankDivider");bL.className&&(bP.className+=" "+bL.className);bL=bP;bP=G.createElement("button");bS.style+=" display:inline-block";bS.className="jw"+bU;"left"===bO?(bS.appendChild(bR),bS.appendChild(bL)):(bS.appendChild(bL),bS.appendChild(bR));w?"hd"!==bU&&"cc"!==bU&&(new J.touch(bP)).addEventListener(J.touchEvents.TAP,aM(bU)):bP.addEventListener("click",aM(bU),!1);bP.innerHTML="\x26nbsp;";bP.tabIndex=-1;bR.appendChild(bP);bO=aK(bU+"Button");bR=aK(bU+"ButtonOver");bL=aK(bU+"ButtonOff");aL(aY(".jw"+bU+" button"),bO,bR,bL);(bO=a[bU])&&aL(aY(".jw"+bU+".jwtoggle button"),aK(bO+"Button"),aK(bO+"ButtonOver"));bx[bU]?J.addClass(bS,"jwtoggle"):J.removeClass(bS,"jwtoggle");bU=a4[bU]=bS}break bW}break;case E:bS=void 0;bL=bU.name;if(w&&0===bL.indexOf("volume")){bS=void 0}else{bU=a1();var bR="volume"===bL,bI=bL+("time"===bL?"Slider":"")+"Cap",bO=bR?"Top":"Left",bS=bR?"Bottom":"Right",bP=aQ(bI+bO,null,!1,!1,bR),ba=aQ(bI+bS,null,!1,!1,bR),aa;aa=bL;var bH=bR,X=bO,Q=bS,bK=a1(),bN=["Rail","Buffer","Progress"],ab=void 0,bM=void 0;bK.className="jwrail";for(var R=0;R<bN.length;R++){var bM="time"===aa?"Slider":"",Y=aa+bM+bN[R],bJ=aQ(Y,null,!bH,0===aa.indexOf("volume"),bH),W=aQ(Y+"Cap"+X,null,!1,!1,bH),bG=aQ(Y+"Cap"+Q,null,!1,!1,bH),bb=aK(Y+"Cap"+X),S=aK(Y+"Cap"+Q);if(bJ){var V=a1();V.className="jwrailgroup "+bN[R];W&&V.appendChild(W);V.appendChild(bJ);bG&&(V.appendChild(bG),bG.className+=" jwcap"+(bH?"Bottom":"Right"));H(aY(".jwrailgroup."+bN[R]),{"min-width":bH?"":bb.width+S.width});V.capSize=bH?bb.height+S.height:bb.width+S.width;H(aY("."+bJ.className),{left:bH?"":bb.width,right:bH?"":S.width,top:bH?bb.height:"",bottom:bH?S.height:"",height:bH?"auto":""});2===R&&(ab=V);2===R&&!bH?(bJ=a1(),bJ.className="jwprogressOverflow",bJ.appendChild(V),a4[Y]=bJ,bK.appendChild(bJ)):(a4[Y]=V,bK.appendChild(V))}}if(X=aQ(aa+bM+"Thumb",null,!1,!1,bH)){H(aY("."+X.className),{opacity:"time"===aa?0:1,"margin-top":bH?X.skin.height/-2:""}),X.className+=" jwthumb",(bH&&ab?ab:bK).appendChild(X)}w?(bH=new J.touch(bK),bH.addEventListener(J.touchEvents.DRAG_START,c),bH.addEventListener(J.touchEvents.DRAG,B),bH.addEventListener(J.touchEvents.DRAG_END,B),bH.addEventListener(J.touchEvents.TAP,ae)):(ab=aa,"volume"===ab&&!bH&&(ab+="H"),bK.addEventListener("mousedown",aB(ab),!1));"time"===aa&&!w&&(bK.addEventListener("mousemove",aD,!1),bK.addEventListener("mouseout",al,!1));aa=a4[aa+"Rail"]=bK;bK=aK(bI+bO);bI=aK(bI+bO);bU.className="jwslider jw"+bL;bP&&bU.appendChild(bP);bU.appendChild(aa);ba&&(bR&&(ba.className+=" jwcapBottom"),bU.appendChild(ba));H(aY(".jw"+bL+" .jwrail"),{left:bR?"":bK.width,right:bR?"":bI.width,top:bR?bK.height:"",bottom:bR?bI.height:"",width:bR?"100%":"",height:bR?"auto":""});a4[bL]=bU;bU.vertical=bR;"time"===bL?(ac=new K.overlay(bp+"_timetooltip",aE),u=new K.thumbs(bp+"_thumb"),at=G.createElement("div"),at.className="jwoverlaytext",bw=G.createElement("div"),bS=u.element(),bw.appendChild(bS),bw.appendChild(at),ac.setContents(bw),ai=aa,k(0),bS=ac.element(),aa.appendChild(bS),a4.timeSliderRail||H.style(a4.time,x),a4.timeSliderThumb&&H.style(a4.timeSliderThumb,{"margin-left":aK("timeSliderThumb").width/-2}),bS=aK("timeSliderCue"),bO={"z-index":1},bS&&bS.src?(aQ("timeSliderCue"),bO["margin-left"]=bS.width/-2):bO.display="none",H(aY(".jwtimeSliderCue"),bO),t(0),af(0),af(0),t(0)):0===bL.indexOf("volume")&&(bL=bU,bP="volume"+(bR?"":"H"),ba=bR?"vertical":"horizontal",H(aY(".jw"+bP+".jw"+ba),{width:aK(bP+"Rail",bR).width+(bR?0:aK(bP+"Cap"+bO).width+aK(bP+"RailCap"+bO).width+aK(bP+"RailCap"+bS).width+aK(bP+"Cap"+bS).width),height:bR?aK(bP+"Cap"+bO).height+aK(bP+"Rail").height+aK(bP+"RailCap"+bO).height+aK(bP+"RailCap"+bS).height+aK(bP+"Cap"+bS).height:""}),bL.className+=" jw"+ba);bS=bU}bU=bS;break bW}bU=void 0}bU&&("volume"===bV.elements[bQ].name&&bU.vertical?(a5=new K.overlay(bp+"_volumeOverlay",aE),a5.setContents(bU)):bT.appendChild(bU))}}}}function y(){return q&&J.isIE()&&an.jwGetFullscreen()}function aP(){clearTimeout(bq);bq=setTimeout(aH.redraw,0)}function a9(){!a2&&1<an.jwGetPlaylist().length&&(!G.querySelector("#"+an.id+" .jwplaylist")||an.jwGetFullscreen())?(H.style(a4.next,o),H.style(a4.prev,o)):(H.style(a4.next,x),H.style(a4.prev,x))}function ay(Q,l){b||(b=J.bounds(aG));l.constrainX(b,!0)}function t(l){a4.timeSliderBuffer&&(l=Math.min(Math.max(0,l),1),H.style(a4.timeSliderBuffer,{width:(100*l).toFixed(1)+"%",opacity:0<l?1:0}))}function p(Q,l){if(a4[Q]){var V=a4[Q].vertical,T=Q+("time"===Q?"Slider":""),S=100*Math.min(Math.max(0,l),1)+"%",U=a4[T+"Progress"],T=a4[T+"Thumb"],R;U&&(R={},V?(R.height=S,R.bottom=0):R.width=S,"volume"!==Q&&(R.opacity=0<l||bz?1:0),H.style(U,R));T&&(R={},V?R.top=0:R.left=S,H.style(T,R))}}function bv(l){p("volume",l);p("volumeH",l)}function af(l){p("time",l)}function aK(l){var R="controlbar",Q=l;0===l.indexOf("volume")&&(0===l.indexOf("volumeH")?Q=l.replace("volumeH","volume"):R="tooltip");return(l=aE.getSkinElement(R,Q))?l:{width:0,height:0,src:"",image:P,ready:!1}}function aR(l){l=(new L.parsers.srt).parse(l.responseText,!0);if(!I.isArray(l)){return aF("Invalid data")}aH.addCues(l)}function aF(l){J.log("Cues failed to load: "+l)}ar=ar||{};var aE,bk=am("divider","divider"),f={margin:8,maxwidth:800,font:"Arial,sans-serif",fontsize:11,fontcolor:15658734,fontweight:"bold",layout:{left:{position:"left",elements:[am("play",C),am("prev",C),am("next",C),am("elapsed",n)]},center:{position:"center",elements:[am("time",E),am("alt",n)]},right:{position:"right",elements:[am("duration",n),am("hd",C),am("cc",C),am("mute",C),am("volume",E),am("volumeH",E),am("cast",C),am("fullscreen",C)]}}},bd,h,a4,by,aG,bp,bB,au,bC,A,bs,bF,be={},a5,b,ai,aj,ac,bw,u,at,ag,a6,m,bA,bo,bE,bq,z=-1,aA=!1,bn=!1,a2=!1,aw=!1,bz=null,bm=0,aU=[],e,a={play:"pause",mute:"unmute",cast:"casting",fullscreen:"normalscreen"},bx={play:!1,mute:!1,cast:!1,fullscreen:ar.fullscreen||!1},bD={play:function(){bx.play?an.jwPause():an.jwPlay()},mute:function(){var l=!bx.mute;an.jwSetMute(l);!l&&0===bF&&an.jwSetVolume(20);a3()},fullscreen:function(){an.jwSetFullscreen()},next:function(){an.jwPlaylistNext()},prev:function(){an.jwPlaylistPrev()},hd:a0,cc:av,cast:function(){be.active?an.jwStopCasting():an.jwStartCasting()}},bj={time:function(l){e?(l=e.position,l="%"===l.toString().slice(-1)?bB*parseFloat(l.slice(0,-1))/100:parseFloat(l)):l*=bB;an.jwSeek(l)},volume:function(l){bv(l);0.1>l&&(l=0);0.9<l&&(l=1);an.jwSetVolume(100*l)}},g={},bg=[],aH=J.extend(this,new O.eventdispatcher),k,bc,bt=function(l){H.style(ac.element(),{width:l});ay("time",ac)};k=function(Q){var l=u.updateTimeline(Q,bt);if(e){if((Q=e.text)&&Q!==bc){bc=Q,H.style(ac.element(),{width:32<Q.length?160:""})}}else{Q=J.timeFormat(Q),l||H.style(ac.element(),{width:""})}at.innerHTML!==Q&&(at.innerHTML=Q);ay("time",ac)};aH.setText=function(Q){H.block(bp);var l=a4.alt,R=a4.time;a4.timeSliderRail?H.style(R,Q?x:i):H.style(R,x);l&&(H.style(l,Q?i:x),l.innerHTML=Q||"");aP()};var bl={};aH.redraw=function(Q){H.block(bp);Q&&aH.visible&&aH.show(!0);aS();var l=q&&J.isMSIE();Q=be.active;H.style(a4.fullscreen,{display:aA||Q||aw||l?"none":""});H.style(a4.volumeH,{display:aA||bn?"block":"none"});(l=Math.floor(bd.maxwidth))&&aG.parentNode&&J.isIE()&&(!aA&&aG.parentNode.clientWidth>l+2*Math.floor(bd.margin)?H.style(aG,{width:l}):H.style(aG,{width:""}));a5&&H.style(a5.element(),{display:!aA&&!bn?"block":"none"});H.style(a4.hd,{display:!aA&&!Q&&!bn&&au&&1<au.length&&m?"":"none"});H.style(a4.cc,{display:!aA&&!bn&&A&&1<A.length&&bE?"":"none"});aO();H.unblock(bp);aH.visible&&(Q=aK("capLeft"),l=aK("capRight"),Q=y()?{left:Math.round(J.parseDimension(62*bl.left.offsetWidth)+Q.width),right:Math.round(J.parseDimension(86*bl.right.offsetWidth)+l.width)}:{left:Math.round(J.parseDimension(bl.left.offsetWidth)+Q.width),right:Math.round(J.parseDimension(bl.right.offsetWidth)+l.width)},H.style(bl.center,Q))};aH.audioMode=function(l){l!==P&&l!==aA&&(aA=!!l,aP());return aA};aH.instreamMode=function(l){l!==P&&l!==bn&&(bn=!!l,H.style(a4.cast,bn?x:o));return bn};aH.adMode=function(Q){if(I.isBoolean(Q)&&Q!==a2){if(a2=Q){var l=bg,R=I.indexOf(l,a4.elapsed);-1<R&&l.splice(R,1);l=bg;R=I.indexOf(l,a4.duration);-1<R&&l.splice(R,1)}else{l=bg,R=a4.elapsed,-1===I.indexOf(l,R)&&l.push(R),l=bg,R=a4.duration,-1===I.indexOf(l,R)&&l.push(R)}H.style([a4.cast,a4.elapsed,a4.duration],Q?x:o);a9()}return a2};aH.hideFullscreen=function(l){l!==P&&l!==aw&&(aw=!!l,aP());return aw};aH.element=function(){return aG};aH.margin=function(){return parseInt(bd.margin,10)};aH.height=function(){return by};aH.show=function(l){if(!aH.visible||l){aH.visible=!0,H.style(aG,{display:"inline-block"}),b=J.bounds(aG),a7(),H.block(bp),a3(),aP(),clearTimeout(z),z=-1,z=setTimeout(function(){H.style(aG,{opacity:1})},0)}};aH.showTemp=function(){this.visible||(aG.style.opacity=0,aG.style.display="inline-block")};aH.hideTemp=function(){this.visible||(aG.style.display="none")};aH.addCues=function(l){J.foreach(l,function(R,Q){if(Q.text){var W=Q.begin,U=Q.text;if(/^[\d\.]+%?$/.test(W.toString())){var T=aQ("timeSliderCue"),V=a4.timeSliderRail,S={position:W,text:U,element:T};T&&V&&(V.appendChild(T),T.addEventListener("mouseover",function(){e=S},!1),T.addEventListener("mouseout",function(){e=null},!1),aU.push(S))}aO()}})};aH.hide=function(){if(aH.visible&&(!bn||!w||!an.jwGetControls())){aH.visible=!1,H.style(aG,{opacity:0}),clearTimeout(z),z=-1,z=setTimeout(function(){H.style(aG,{display:"none"})},250)}};a4={};bp=an.id+"_controlbar";bB=0;aG=a1();aG.id=bp;aG.className="jwcontrolbar";aE=an.skin;h=aE.getComponentLayout("controlbar");h||(h=f.layout);J.clearCss(aY());H.block(bp+"build");aS();var az=aQ("capLeft"),ah=aQ("capRight"),r=aQ("background",{position:"absolute",left:aK("capLeft").width,right:aK("capRight").width,"background-repeat":"repeat-x"},!0);r&&aG.appendChild(r);az&&aG.appendChild(az);bu("left");bu("center");bu("right");aG.appendChild(bl.left);aG.appendChild(bl.center);aG.appendChild(bl.right);a4.hd&&(m=new K.menu("hd",bp+"_hd",aE,aX),w?d(m,a4.hd,aC,"hd"):ao(m,a4.hd,aC,br),g.hd=m);a4.cc&&(bE=new K.menu("cc",bp+"_cc",aE,ax),w?d(bE,a4.cc,aq,"cc"):ao(bE,a4.cc,aq,ad),g.cc=bE);a4.mute&&(a4.volume&&a4.volume.vertical)&&(a5=new K.overlay(bp+"_volumeoverlay",aE),a5.setContents(a4.volume),ao(a5,a4.mute,aI),g.volume=a5);H.style(bl.right,{right:aK("capRight").width});ah&&aG.appendChild(ah);H.unblock(bp+"build");an.jwAddEventListener(O.JWPLAYER_MEDIA_TIME,a8);an.jwAddEventListener(O.JWPLAYER_PLAYER_STATE,function(l){switch(l.newstate){case D.BUFFERING:case D.PLAYING:a4.timeSliderThumb&&H.style(a4.timeSliderThumb,{opacity:1});bi("play",!0);break;case D.PAUSED:bz||bi("play",!1);break;case D.IDLE:bi("play",!1),a4.timeSliderThumb&&H.style(a4.timeSliderThumb,{opacity:0}),a4.timeRail&&(a4.timeRail.className="jwrail"),t(0),a8({position:0,duration:0})}});an.jwAddEventListener(O.JWPLAYER_PLAYLIST_ITEM,function(Q){if(!bn){Q=an.jwGetPlaylist()[Q.index].tracks;var l=!1,T=a4.timeSliderRail;J.foreach(aU,function(V,U){T.removeChild(U.element)});aU.length=0;if(I.isArray(Q)&&!w){for(var S=0;S<Q.length;S++){if(!l&&(Q[S].file&&Q[S].kind&&"thumbnails"===Q[S].kind.toLowerCase())&&(u.load(Q[S].file),l=!0),Q[S].file&&Q[S].kind&&"chapters"===Q[S].kind.toLowerCase()){var R=Q[S].file;R?J.ajax(R,aR,aF,!0):aU.length=0}}}l||u.load()}});an.jwAddEventListener(O.JWPLAYER_MEDIA_MUTE,a3);an.jwAddEventListener(O.JWPLAYER_MEDIA_VOLUME,a3);an.jwAddEventListener(O.JWPLAYER_MEDIA_BUFFER,function(l){t(l.bufferPercent/100)});an.jwAddEventListener(O.JWPLAYER_FULLSCREEN,function(l){bi("fullscreen",l.fullscreen);a9();aH.visible&&aH.show(!0)});an.jwAddEventListener(O.JWPLAYER_PLAYLIST_LOADED,ak);an.jwAddEventListener(O.JWPLAYER_MEDIA_LEVELS,function(Q){au=Q.levels;if(!bn&&au&&1<au.length&&m){H.style(a4.hd,o);m.clearOptions();for(var l=0;l<au.length;l++){m.addOption(au[l].label,l)}aV(Q)}else{H.style(a4.hd,x)}aP()});an.jwAddEventListener(O.JWPLAYER_MEDIA_LEVEL_CHANGED,aV);an.jwAddEventListener(O.JWPLAYER_CAPTIONS_LIST,function(Q){A=Q.tracks;if(!bn&&A&&1<A.length&&bE){H.style(a4.cc,o);bE.clearOptions();for(var l=0;l<A.length;l++){bE.addOption(A[l].label,l)}ap(Q)}else{H.style(a4.cc,x)}aP()});an.jwAddEventListener(O.JWPLAYER_CAPTIONS_CHANGED,ap);an.jwAddEventListener(O.JWPLAYER_RESIZE,function(){b=J.bounds(aG);0<b.width&&aH.show(!0)});an.jwAddEventListener(O.JWPLAYER_CAST_AVAILABLE,aT);an.jwAddEventListener(O.JWPLAYER_CAST_SESSION,aW);w||(aG.addEventListener("mouseover",function(){M.addEventListener("mousedown",j,!1)},!1),aG.addEventListener("mouseout",function(){M.removeEventListener("mousedown",j);G.onselectstart=null},!1));setTimeout(a3,0);ak();aH.visible=!1;aT()};H("span.jwcontrolbar",{position:"absolute",margin:"auto",opacity:0,display:"none"});H("span.jwcontrolbar span",{height:"100%"});J.dragStyle("span.jwcontrolbar span","none");H("span.jwcontrolbar .jwgroup",{display:"inline"});H("span.jwcontrolbar span, span.jwcontrolbar .jwgroup button,span.jwcontrolbar .jwleft",{position:"relative","float":"left"});H("span.jwcontrolbar .jwright",{position:"relative","float":"right"});H("span.jwcontrolbar .jwcenter",{position:"absolute"});H("span.jwcontrolbar button",{display:"inline-block",height:"100%",border:"none",cursor:"pointer"});H("span.jwcontrolbar .jwcapRight,span.jwcontrolbar .jwtimeSliderCapRight,span.jwcontrolbar .jwvolumeCapRight",{right:0,position:"absolute"});H("span.jwcontrolbar .jwcapBottom",{bottom:0,position:"absolute"});H("span.jwcontrolbar .jwtime",{position:"absolute",height:"100%",width:"100%",left:0});H("span.jwcontrolbar .jwthumb",{position:"absolute",height:"100%",cursor:"pointer"});H("span.jwcontrolbar .jwrail",{position:"absolute",cursor:"pointer"});H("span.jwcontrolbar .jwrailgroup",{position:"absolute",width:"100%"});H("span.jwcontrolbar .jwrailgroup span",{position:"absolute"});H("span.jwcontrolbar .jwdivider+.jwdivider",{display:"none"});H("span.jwcontrolbar .jwtext",{padding:"0 5px","text-align":"center"});H("span.jwcontrolbar .jwcast",{display:"none"});H("span.jwcontrolbar .jwcast.jwcancast",{display:"block"});H("span.jwcontrolbar .jwalt",{display:"none",overflow:"hidden"});H("span.jwcontrolbar .jwalt",{position:"absolute",left:0,right:0,"text-align":"left"},!0);H("span.jwcontrolbar .jwoverlaytext",{padding:3,"text-align":"center"});H("span.jwcontrolbar .jwvertical *",{display:"block"});H("span.jwcontrolbar .jwvertical .jwvolumeProgress",{height:"auto"},!0);H("span.jwcontrolbar .jwprogressOverflow",{position:"absolute",overflow:"hidden"});F("span.jwcontrolbar","opacity .25s, background .25s, visibility .25s");F("span.jwcontrolbar button","opacity .25s, background .25s, visibility .25s");F("span.jwcontrolbar .jwtoggling","none")})(window,document);(function(h){var f=h.utils,b=h.events,i=b.state,g=h.playlist;h.html5.controller=function(R,Q){function P(){return R.getVideo()}function S(j){d.sendEvent(j.type,j)}function L(l){N(!0);switch(f.typeOf(l)){case"string":var j=new g.loader;j.addEventListener(b.JWPLAYER_PLAYLIST_LOADED,function(m){L(m.playlist)});j.addEventListener(b.JWPLAYER_ERROR,function(m){L([]);m.message="Could not load playlist: "+m.message;S(m)});j.load(l);break;case"object":case"array":R.setPlaylist(new h.playlist(l));break;case"number":R.setItem(l)}}function O(j){if(f.exists(j)&&!j){return H()}try{0<=o&&(L(o),o=-1);if(!J&&(J=!0,d.sendEvent(b.JWPLAYER_MEDIA_BEFOREPLAY),J=!1,G)){G=!1;e=null;return}if(E()){if(0===R.playlist.length){return !1}P().load(R.playlist[R.item])}else{R.state===i.PAUSED&&P().play()}return !0}catch(l){d.sendEvent(b.JWPLAYER_ERROR,l),e=null}return !1}function N(j){e=null;try{return E()?j||(k=!0):P().stop(),J&&(G=!0),!0}catch(l){d.sendEvent(b.JWPLAYER_ERROR,l)}return !1}function H(j){e=null;if(f.exists(j)&&!j){return O()}switch(R.state){case i.PLAYING:case i.BUFFERING:try{P().pause()}catch(l){return d.sendEvent(b.JWPLAYER_ERROR,l),!1}break;default:J&&(G=!0)}return !0}function E(){return R.state===i.IDLE}function D(j){f.css.block(R.id+"_next");L(j);O();f.css.unblock(R.id+"_next")}function K(){D(R.item+1)}function c(){E()&&(k?k=!1:(e=c,R.repeat?K():R.item===R.playlist.length-1?(o=0,N(!0),setTimeout(function(){d.sendEvent(b.JWPLAYER_PLAYLIST_COMPLETE)},0)):K()))}function M(j){return function(){var l=Array.prototype.slice.call(arguments,0);a?I(j,l):n.push({method:j,arguments:l})}}function I(l,j){l.apply(this,j)}var a=!1,o=-1,J=!1,e,k=!1,G,n=[],d=f.extend(this,new b.eventdispatcher(R.id,R.config.debug));this.play=M(O);this.pause=M(H);this.seek=M(function(j){R.state!==i.PLAYING&&O(!0);P().seek(j)});this.stop=function(){E()&&(k=!0);M(N)()};this.load=M(L);this.next=M(K);this.prev=M(function(){D(R.item-1)});this.item=M(D);this.setVolume=M(R.setVolume);this.setMute=M(R.setMute);this.setFullscreen=M(function(j){Q.fullscreen(j)});this.detachMedia=function(){try{return R.getVideo().detachMedia()}catch(j){f.log("Error calling detachMedia",j)}return null};this.attachMedia=function(l){try{R.getVideo().attachMedia(l)}catch(j){f.log("Error calling detachMedia",j);return}"function"===typeof e&&e()};this.setCurrentQuality=M(function(j){P().setCurrentQuality(j)});this.getCurrentQuality=function(){return P()?P().getCurrentQuality():-1};this.getQualityLevels=function(){return P()?P().getQualityLevels():null};this.setCurrentAudioTrack=function(j){P().setCurrentAudioTrack(j)};this.getCurrentAudioTrack=function(){return P()?P().getCurrentAudioTrack():-1};this.getAudioTracks=function(){return P()?P().getAudioTracks():null};this.setCurrentCaptions=M(function(j){Q.setCurrentCaptions(j)});this.getCurrentCaptions=function(){return Q.getCurrentCaptions()};this.getCaptionsList=function(){return Q.getCaptionsList()};this.checkBeforePlay=function(){return J};this.playerReady=function(j){if(!a){Q.completeSetup();d.sendEvent(j.type,j);h.utils.exists(h.playerReady)&&h.playerReady(j);R.addGlobalListener(S);Q.addGlobalListener(S);d.sendEvent(h.events.JWPLAYER_PLAYLIST_LOADED,{playlist:h(R.id).getPlaylist()});d.sendEvent(h.events.JWPLAYER_PLAYLIST_ITEM,{index:R.item});L();R.autostart&&!f.isMobile()&&O();for(a=!0;0<n.length;){j=n.shift(),I(j.method,j.arguments)}}};R.addEventListener(b.JWPLAYER_MEDIA_BUFFER_FULL,function(){P().play()});R.addEventListener(b.JWPLAYER_MEDIA_COMPLETE,function(){setTimeout(c,25)});R.addEventListener(b.JWPLAYER_MEDIA_ERROR,function(j){j=f.extend({},j);j.type=b.JWPLAYER_ERROR;d.sendEvent(j.type,j)})}})(jwplayer);(function(b){var a;b.html5.defaultskin=function(){return a=a||b.utils.parseXML('\x3c?xml version\x3d"1.0" ?\x3e\x3cskin author\x3d"JW Player" name\x3d"Six" target\x3d"6.7" version\x3d"3.0"\x3e\x3ccomponents\x3e\x3ccomponent name\x3d"controlbar"\x3e\x3csettings\x3e\x3csetting name\x3d"margin" value\x3d"10"/\x3e\x3csetting name\x3d"maxwidth" value\x3d"800"/\x3e\x3csetting name\x3d"fontsize" value\x3d"11"/\x3e\x3csetting name\x3d"fontweight" value\x3d"normal"/\x3e\x3csetting name\x3d"fontcase" value\x3d"normal"/\x3e\x3csetting name\x3d"fontcolor" value\x3d"0xd2d2d2"/\x3e\x3c/settings\x3e\x3celements\x3e\x3celement name\x3d"background" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAeCAYAAADtlXTHAAAANklEQVR4AWMUFRW/x2RiYqLI9O3bNwam////MzAxAAGcAImBWf9RuRAxnFyEUQgDCLKATLCDAFb+JfgLDLOxAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"capLeft" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAeCAYAAAARgF8NAAAAr0lEQVR4AWNhAAJRUXEFIFUOxNZAzMOABFiAkkpAeh0fH5+IgoKCKBsQoCgA4lJeXl5ReXl5qb9//zJ8+/aNAV2Btbi4uOifP39gYhgKeFiBAEjjUAAFlCn4/5+gCf9pbwVhNwxhKxAm/KdDZA16E778/v37DwsLKwsuBUdfvXopISUlLYpLQc+vX78snz17yigqKibAAgQoCuTlFe4+fPggCKio9OnTJzZAMW5kBQAEFD9DdqDrQQAAAABJRU5ErkJggg\x3d\x3d"/\x3e\x3celement name\x3d"capRight" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAeCAYAAAARgF8NAAAArklEQVR4Ad2TMQrCQBBF/y5rYykEa++QxibRK3gr0dt4BPUSLiTbKMYUSlgt3IFxyogJsRHFB6/7/A+7jIqiYYZnvLgV56IzcRyPUOMuOOcGVVWNAcxUmk4ZNZRS0Fojz/O9936lkmTCaICIgrV2Z9CCMaYHoK/RQWfAMHcEAP7QxPsNAP/BBDN/+7N+uoEoEIBba0NRHM8A1i8vSUJZni4hhAOAZdPxXsWNuBCzB0E+V9jBVxF8AAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"playButton" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAeCAQAAACcJxZuAAAAtElEQVR4AWOgLRgFnAyiDPwMzMRrkHuwuCSdQZ14Tbpv9v/cf2UN8ZoMHu5/uP/l/h9EazK4sx8Cn+7/RpQmg+v74RBo11eCmgwu7keFd/d/wavJ4PR+THhj/6f9N1ZODWTgxKLhyH7scMvK3iCsGvbtx4Tz1oZn4HTSjv2ocObakAy8nt60HwGnrA3KIBisa/dD4IS1/lDFBJLGiv0r9ves9YUpJpz4Ji72hiomNXnTH4wCAAxXpSnKMgKaAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"playButtonOver" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAeCAQAAACcJxZuAAAAtElEQVR4AWOgLRgFPAwyDCIMLMRr0Hhws6SLwYR4TTZv/v/8f+UZ8ZocHv5/+P/l/x9Ea3K48x8Cn/7/RpQmh+v/4RBo11eCmhwu/keFd/9/wavJ4fR/THjj/6f/Nx5OzWHgwaLhyH/scMuj3lysGvb9x4Tznod343TSjv+ocObzkG68nt70HwGnPA/qJhisa/9D4ITn/lDFBJLGiv8r/vc894UpJpz4Jt7yhiomNXnTH4wCAHC8wQF60KqlAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"pauseButton" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAeCAQAAACcJxZuAAAAYElEQVR4AWOgNRgFPAwqDAZAqAJkofPhgBFJg8r/2VDBVIY7GHwoYEG24RmchcnHpoHhDxDj4WNq+I0m+ZvqGn6hSf6iuoafaJI/SbaB7hroHw9f/sBZ6HzSkzdtwSgAADNtJoABsotOAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"pauseButtonOver" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAeCAQAAACcJxZuAAAAWklEQVR4AWOgNRgFAgwGDA5AaABkofOxAoP/UMBggMGHAxZkG57BWeh87BoY/gAxHj6mht9okr+pruEXmuQvqmv4iSb5k2Qb6K6B/vHw4Q+chc4nPXnTFowCADYgMi8+iyldAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"prevButton" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAeCAQAAACLBYanAAAAmElEQVR4AWMYMDAKeBgkgBgGmBn4GUQZONEVqfzfz6ACV6Bekv5gMYMcuiKDR/sZDGAKrqz5sf/lfgZdDEW39jPYQxR82/94/y0gZDDAUHR+f3rpjZWf99/efx4CsSk6sj+pbMvKI/vhEJuiXWDrQjNmr921HwyxKVoPd3hAxsS16/evx+JwleUoQeCbMRkRBIQDk/5gFAAAvD5I9xunLg8AAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"prevButtonOver" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAeCAQAAACLBYanAAAAmUlEQVR4AWMYMDAKBBgUgBgGWBhEGGQYeNAVGfz/z2AAV2BS0vXgJoMGuiKHR/8ZHGAKrjz78f/lfwYbDEW3/jOEQBR8+//4/y0gZHDAUHT+f/qcGw8//7/9/zwEYlN05H/S3C2PjvyHQ2yKdoGtC+2e/XzXfzDEpmg93OEB3ROfr/+/HovDDZajBIFv9+RbDBpEByb9wSgAAHeuVc8xgA8jAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"nextButton" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAeCAQAAABgMj2kAAAAlUlEQVR4AWOgAxgFnAyiDPwMzHA+D4MEEKMAuQeLS9IZ1OHKVP7vZ1BBVaL7cv+P/VfWwJUZPNrPYICqxODW/lv7H+//BlNmfwtTyfn9EHh7/+f9N1aml57HVHJkPwJuWZlUdgRTya79EDh7bWgGyKJdGEp01+9fv3/i2oAMmHPXYyiRm7zYNwPZ08vBniYcdDQHowAA/MZI93f1cSkAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"nextButtonOver" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAeCAQAAABgMj2kAAAAlUlEQVR4AWOgAxgFPAwyDCIMLHC+AIMCEKMAjQc3S7oYTODKDP7/ZzBAVWLz8v+P/1eewZU5PPrP4ICqxOHW/1v/H///BlMWcgtTyfn/EHj7/+f/Nx6mzzmPqeTIfwTc8ihp7hFMJbv+Q+Ds56HdIIt2YSixWf9//f+JzwO6Yc5dj6FEY/It325kTy8He5pw0NEcjAIAWP9Vz4mR7dgAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"elapsedBackground" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAeCAYAAAAPSW++AAAAD0lEQVQoU2NgGAWjYKQAAALuAAGL6/H9AAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"durationBackground" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAeCAYAAAAPSW++AAAAD0lEQVQoU2NgGAWjYKQAAALuAAGL6/H9AAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"timeSliderCapLeft" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAeCAYAAADpYKT6AAAAFElEQVR42mP4//8/AwwzjHIGhgMAcFgNAkNCQTAAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"timeSliderCapRight" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAeCAYAAADpYKT6AAAAFElEQVR42mP4//8/AwwzjHIGhgMAcFgNAkNCQTAAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"timeSliderRail" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAeCAYAAADtlXTHAAAALklEQVQI12NgIBmIior/ZxIVFWNgAgI4wcjAxMgI4zIyMkJYYMUM////5yXJCgBxnwX/1bpOMAAAAABJRU5ErkJggg\x3d\x3d"/\x3e\x3celement name\x3d"timeSliderRailCapLeft" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAnUlEQVR42t3NSwrCMBSF4TsQBHHaaklJKRTalKZJ+lAXoTPBDTlyUYprKo6PN4F2D3rgm/yQG/rfRdHuwp5smsNdCImiKKFUAx/OaSpR1xpNYwKK4/2rLBXa1s1CnIxxsLZbhGhtD+eGBSWJePt7fX9YUFXVVylzdN2IYTgGBGCVZfmDQWuDcTyB/ACsOdz8Kf7jQ/P8C7ZhW/rlfQGDz0pa/ncctQAAAABJRU5ErkJggg\x3d\x3d"/\x3e\x3celement name\x3d"timeSliderRailCapRight" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAn0lEQVR42t3MTwqCQBTH8bcIgmirJYoiCOowzh8ds0PULjpRqw5VdCZr/WueMJfwC5/NezOP1lcUHWbv5V0o1LYSVVUjTXP4xYM4KTWYEB2ybFlcSSmLoK4F4vj4JmN6BFpbHs5krUNgzMDDLw3DCQHfTZL0Q85NYH0/Is9LNI240Tie0XUaRVGyJ4AN+Rs//qKUuQPYEgdg7+2WF2voDzqVSl5A2koAAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"timeSliderBuffer" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAeCAYAAADtlXTHAAAAKElEQVQI12NgIA/IyMj9Z2JhYWFgAgIGJkZGRhDBwMDEwMAI5TKQDwCHIAF/C8ws/gAAAABJRU5ErkJggg\x3d\x3d"/\x3e\x3celement name\x3d"timeSliderBufferCapLeft" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAY0lEQVR42uXJyxGAIAxFUfrgI5CgzajdqlWxQffxaeiCzJyZ5MYMNtb6zTl/OhfuP2BZQ4h1mpLEmOWPCMd3pESSM2vE0YiKdBqJuDEXUT0yzydIp7GUZYMKAhr7Y4cLHjPGvMB5JcRMsOVwAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"timeSliderBufferCapRight" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAYElEQVQoz+WLyxGAIAwF6YM/CdqMlCtdcRHvMSIw9sCb2ctuIsQaU8pUpfQppT6mdC6QtZ6McYUPUpMhIHkP9EYOuUmASAOOV5OIkQYAWLvc6Mf3HuNOncKkIW8mT7HOHpUUJcPzmTX0AAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"timeSliderProgress" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAeCAQAAABHnLxMAAAAH0lEQVQI12NgIAT+/2e6x8D0k4HpOxj9AJM/CWpjAACWQgi68LWdTgAAAABJRU5ErkJggg\x3d\x3d"/\x3e\x3celement name\x3d"timeSliderProgressCapLeft" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAQAAABOdxw2AAAARUlEQVQYV2NkgANG+jP/+zJkMtgCmf99vi38KPQTJPpq6xsvqIKznxh4ocwjCOaebQyeUOZmX4YFDEJQw9b4QQ2DAfoyAVkTEmC7RwxJAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"timeSliderProgressCapRight" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAQAAABOdxw2AAAASklEQVQYV8XLIRKAMAxE0R4QbhrXoQqJxWJxCGZqaKs/m1yi+80TSUqzRmNjCd48jMoqXnhvEU+iTzyImrgT+UFG1exv1q2YY95+oTIxx/xENX8AAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"timeSliderThumb" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAeCAQAAACP8FaaAAABMElEQVR4AeWSv0rzYBjFfy1NlU5RKC3dCjqZDwRXEapOuuik+BfbNLdUeg86pHSrm1Z3G3w7VAdbB+sNFFKIZ1FCjTjL95wQOOd3IC/vE/6vSZEmQ5Z5KUtGLhWjshYLbHCIKx2wLmcp/cJzOFTb/vtoGk7D8bDtc4GjNP2J/+ENzFv0FBnpORpHA4OnVBWwKFANTD96jKkfBYYqRVFyVC5bCr/pqsWmKDZHd8Okwv2IY1HyuL0wqRCE1EUp/lR4mFAT1XNym/iJ7pBTCpBnp5l4yGaLXVFsVqh1zCzuGGoiNuQoUcG7NjPYU1oSxVKrzDZuw+++BtPe5Oal4eOypdQWRVfNoswa+5xTl87YkysrjW3DpsQyDquSw5KcjXB83TlFeYoU9LbltO7ff5i/Mh+pOuncDFLYKwAAAABJRU5ErkJggg\x3d\x3d"/\x3e\x3celement name\x3d"timeSliderCue" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAeCAYAAAAl+Z4RAAAAcUlEQVQ4y2NgGAWjYBTgBaKi4llAfASKs0jWbGNj96S1tf03CIPYJBkCsrW6uu53bm7+fxAGsUFiJBmQlpbxOzMz5z8Ig9hAsaMkecHIyORJUlLq78TElN8gNlAsm9RwyAbZCsSHgDhzNFmNglGAHwAAo/gvURVBmFAAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"hdButtonOff" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAeCAYAAADQBxWhAAABf0lEQVR42u2VvUoDQRSFA0awMIVCsv+z/1oE8yOE9MYmtb2P4AspSOyECFZqtU9gbZvK6CNoNZ6zMMuSQpxdEAJbHC737pz59mbmblpSyn9XA22gDXRLod2uMYfWkKwh+uc60LVtO9J1RWXBn4N1oNL3QxkEEcwuzYybOWMh07QJ4xqK/ryuBQ3DWEZRoowdx3FfhAgkI3NVp7IsO5xMpnPDsFae59NHvzaURgWlWpblPEOSkbmqQzfQK2DT8fj0HB0rrz40jlOqgA4Go1m/f3LJWIYC8uQ4nkSX94vF3S5qX8qrDU2SlCqgOMMrAK4Zy1B27nlCIj4i34G+lbcC9ChXuSNeFEbmpZe5RZdv+BU4ZjM8V159aJoe5yp3JIS/eaZcv7dcPhzghc6Qr3DZlLc6FOelRoTn9OvI4DKxw2rQXs/84KzRyLPhTSSQGzIyV2OBdYzIYz4rgKxjn88/Q4fD0QUNNT6BBL5zH50Pfhvahzo1RH+7+WtroA10O6E/bVCWtAEB8p4AAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"hdButton" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAeCAQAAAB6Dt0qAAABPUlEQVR4Ae2SsUrDUBiF/0EFfYK8Rl4g5BUUHGILRWghUHAQHJzaUcjSgB1EtCApliDoUApSKggZRFSUQsVAawspElz1OunxhwtZcm0Ht9LzQfLByVluLs145lkkjXQyyPwTg3uNv0tFKzuR+MAkIlF2eJyKPhBjRBMZYyBIp1SMEV6nMgIZlIoZQkJuIw7RiMll36XN5e31k0AkramYdiGhQjPsohlSgT13GTy8WXurR0mrmt5BQla+ZJ/mS2SxF8+GT7joLRRvvmWrnAaQULbi1R4rHmXZi/VhAO9laev6R7bKaQcSsv3+Lfw+2ey548B/t/Yz3pVs1dMWJORW4xaqfEzsfEwrO2te5ytpFVPjHJJntPnZ5jc708M9muwS1c/Ra8LHNGrKK6FlnENRxyQOPjcc0v5z/Wc68/wCXWlzVKUYIC4AAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"ccButtonOff" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAeCAYAAADQBxWhAAABzUlEQVR42u1Uu0oDQRQVTCMopMjmtZvdJPswKCQbC6tYCEqMBDUGrf2NCDF+gmXEyiZWiTb+gMTGxtrGwmh8IOKjUoLjueNGfCBk10rYC4eZOey5Z+7M3O1zww033Og5BCGQA9oAcw6uz9kxbYfDIpMk2TGg58Z2TJmixFg0GueIRBQWDIZ5BX5/kIli5AcfCIS6PIH0nLdlGoupLB7XmCxHyegymTSXa7UdoVBYHBVFqQEDMjozzfRCvd7w5fNzKfD74ElHevumEHKEQiJD4nmYz4JvwWirWt30YiO36fTYNKotgj8Hv1GprPvAP1obtm+qqjqBhC/l8toAkh18uqs7rK8ZY/0Yj8AT90o80LG09k01TQe48Bnw4O6asqzw5DjGXVR2Qt9iPLb4Dh07NnGvqhq0jkwNQvehTCYSI0tIeIWqtq1jfAA/bhiJFcxvcPzVUmlVwPwJVZLWvqmuD3MgGYlbGHPN5qE3m52JYU0PifhTGEwRn8lMaFjvYVNdrXNT7BjGX1tGkvgL/dYyxMv0vTNTahH02ocY1cBEpTbgeL8z41eeNKSn6+jZNJUyiyT4y28Q+gvK07MpWsEDDAJDzsH1nj433HDjX8YbqHFYmhICTLsAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"ccButton" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAeCAQAAAB6Dt0qAAABWElEQVR4AWMY5mAUsDJIMBgy2DE44IR2QHkJoDoMINHQ/eTbl//44JNvDd1AzRjA8N63p/+f4IVP/9/7BrQZA9g9/H+fIHz4H+hsDOBw6z8EnvqZsJ6vznDCkke3/h/9Hr2ap9Z08oqnMFkGByxaL/+HwMiVafNufFl+hWvmiR+BC/IX3/yy4Bz/nJN/wbLYtZ75D4In/3GV7n56/v+1/zd/H/rGkHPgJYh94/fp/2B57FqP/AfBg/84SlY/O/L/8P+JLze/Z8je8PrI/0P/Jrza+Rcsj13r3v8guO9/+LKEhZu+9lzmn7zrl++c9BWbv7WfE5iy/S9YHrvWbf8hcP+P0FVsVSo9y57s+L/vm/9ytiqtvhVANlgWq1a79f8hcDPQR9eBAbIHyN7y/yyQfQnEhkCskWM4/9uq/4TgfKxJQiK6e/a3pf/xwZlfo4AJkZLkP6zBKAAAGMt/2TouFxQAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"muteButton" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAeCAQAAACY0sZTAAABZ0lEQVR4AWMYjGAUMDEwMzCSpoUxju+kDQMXAW1AaRYGdiCGsFjchd/OWmELFMGrhd1a4UUTAy+QzXLSdKMhA1+Z/tuF0qIMTLjdz9tp+27ly/0M4kBbWGdqv1/gJcMgdLz6YAA2u9gYhBgkGGR2pH3ZfWf/1f0Mshdsk8UZBDYlXMthEJhqfbuVgQ9Tk9D//SD4dv/F/eeBkEHuaNjjegYBT/k78xiEOcWuLWIQxtQkcWI/MmSQYhC/shioUPjUAhB5cgFWTQf3I0MGaQ6JwyBNIofBmsAkpvN27UeGDPI349dXMghEKu2byyAsKLZ/IYMQzoBoTNm4e8v+LcCA2GBoKsQgcDFjcRqDwBr7dU0MfLiDnCfaavHKdaAgZ2ZgXWd4cZ6eJIPQ5YYZXgzseCNXQ35GPSRyt+lVaTLwTTA9NJdTmIGJ2GTEzMCSKPZifoklpj14jTDj6jJj4CI5nYOzxkCCUQAAMVp+znQAUSsAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"muteButtonOver" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAeCAQAAACY0sZTAAABfUlEQVR4AWMYjGAUsDJwMLCQpoXRTnZZIoM0AzMBZQzcDCIMXEAWC5Dk0tZ6fK0uFyiCBzAziCh5Xd7PoAJkc64I7QxhUPWLf/yQ3xjoTByAjUExrvzB+5f/GewYOBn4cgOf3ddxYNDftH1OCza7BBgMGBwYfCas/fjnzv+r/xn8NiXYGTJoTZ25ZymDTn7W8UMMapiaDP6Dwdv/F/+fB0KGgJXtF3YyaGp7XLrLYMhqce4hgyGmJocT/5EhgxuD7ZknDEYMJgcfMBgzGB8AkZiaDv5HhgzuLPa7nwBNN90N1gQmMZ236z8yZAjcN3H+JgZNM+8tQOdxWm17yGCAMyBSV6//s+X/lv8Mvv2BChoM2hsXd89n0GnKn7+PQRV3kCvYlsx6v+4/gy0DOwNvU8SJO1LWDAb791bUMgjji1xhMc/u3QzKoMid6hPtxaCakrbzDqsBAytxyYgZmFQ5bfXu3Q1Lx7QHrxHykgWRDFJAA0gCLAzsQC0DCUYBAC3AlmbNhvr6AAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"unmuteButton" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAeCAQAAACY0sZTAAAAiklEQVR4AWMYWWAUMDKwMLADMUla2K0VnjUx8BKvhYmBt83m3cp3+xnEiFHOxiDEIMEgsz3l6+5H++/sB7KJAEL/94Pgu/1X918GQuI0SZzcjwSJ1XRgPxIk1nnb9iNBoCYSAqI6ZdXOtfvXAjWREuQ84VZzVi4DBjmJkassN7GegZe8ZDQSwSgAAJ/LQok1XVtuAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"unmuteButtonOver" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAeCAQAAACY0sZTAAAAjUlEQVR4AWMYWWAUMDJwM4gwcJGihZlBRMnr0l4GZeK1sDEoxpQ+eP/uP4MVMcoFGAwYHBh8+ld/+vPo/53/QDYRwOA/GLz7f/X/ZSAkTpPDyf9IkFhNB/4jQWKdt+0/EgRqIiEgElct/7P2/1qgJlKCXMG6eNL7Zf8ZLEmLXGFhj5bdDMrkJaORCEYBAOZEUGMjl+JZAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"castButton" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAQCAYAAAAWGF8bAAABuUlEQVR42mNggAA2IBYCYgkKsBDUHDAQevr06X5KMdRQMJDYvXs3SECLTNdpQfVLwA3cuXMnigCJAEO/xPbt2ykyEF2/8NatW0ECwuQaCNUPNpAZiAVqamqsgTQXuQZu2rQJYqCXl5cQ0LkpjY2Nbuzs7BJQQ5lINXD9+vUQA8PDwyWPHz++4/Lly/uvXr26btmyZUkCAgKiQElWIGYk1sC1a9fCvczNwcEhHxER4T59+vTuEydO7APiqS4uLkpQQ4kycNWqVRADQ0JCxIAu7JgwYUI0CwuLWlpaWtDmzZu3AsVmqaurSwIVsRBj4IoVKyAGurm5iQKdO/fUqVP7Tp48Odfe3t4wNjbWG2jo3o0bN5YAFfES4XUJYFDBvQyKBBmgIX5r1qzZBHTZAh4eHrWOjo6GPXv27ARaqApVI4wvpyxZsgRiIDDsZM6cOTPT19fXLDIy0hvo2n3z5s1L8fT0tF66dOm+uXPnxldXV+vdunVrPz68aNEiSF4OCgqSBUU50GXTgQLSU6dOnbFt27YpIFfPnj17JdCCalA6JeBClNKGHYgFgZgfiDmhYcYL9SaI5iEyYsAAACZV+irLroZ6AAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"castButtonOver" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAQCAYAAAAWGF8bAAABuUlEQVR42mNggAAOIJYAYgUKsATUHDCQePr06X9KMdRQMFDYvXs3SMCCTNdZQPUrwA3cuXMnigCJAEO/wvbt2ykyEF2/1NatW0ECUuQaCNUPNpAFiEVramr8gTQfuQZu2rQJYqCXl5cE0LltjY2Ncezs7CAbeIGYmVQD169fDzEwPDxc8fjx498uX778/+rVqy+WLVvWLCAgIAOUZAdiRmINXLt2LdzL/BwcHFoRERHx06dP33nixIl/QHzcxcVFF2ooUQauWrUKYmBISIgs0IXbJkyYUMnCwmKclpaWt3nz5k9AsXPq6upKQEWsxBi4YsUKiIFubm4yQOdeOnXq1L+TJ09etLe3d4yNjU0BGvpn48aNs4GKBInwugIwqOBeBsWsGtCQjDVr1rwFuuwqDw+PcUdHx+o9e/Z8B1poBFUjiS+nLFmyBGIgMOxUzwCBr6+vR2RkZArQtf/mzZvX6unp6b906dJ/c+fOra+urra7devWf3x40aJFkLwcFBSkDopyoMtOAQVUpk6denrbtm3HQK6ePXv2I6AFS4BsMQIuRCltOIFYHIhFgJgHiIWgmBdKCxAZMWAAABFDD0iNkbKIAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"castingButton" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAQCAYAAAAWGF8bAAAB60lEQVR42mNggAAOIJYAYgUKsATUHDCQ+E8FADUUDBRevXoFEnAAYgsoTSwGq4fqV4Ab+OLFC5CABZkus4DqRxj49OlTsAtBNKkYpg/ZQKmHDx+CBCxBNKkYZCCUBhvIDMQis2fP9gfSKjdv3vx07969/6RgkIFQGmwg35kzZ+omTpwYxcPDo6mmpmaybNmy6devX/9569at/8RgkIFQGmyg8Nu3b39++/bt/9evX1/u3r27lYuLSy87Ozvy1KlTz65du/afEAYZCKXBBvKKiIhol5WVpe3cuXMX0PB/z58/P+3u7m4dFxfnD3T9x0uXLv3Hh0EGQmmwgYJPnjzZvGTJkkpOTk6TysrKbKB3P718+fKKvLy8QUNDQ965c+f+48MgA6E02EChy5cv33z37t3/N2/eXA4ODnYrKipKuXr16s8LFy4sAsprAl1+6vTp0/9xYVA6hNIQLwOxWnFxcd7Zs2ffvn79+q6cnJz5ggULFj148OBXUFCQNVBeCYjN8eWU48ePww0Uef/+/en09HRfYESkAJ3+Z//+/f1OTk7uR44cAbG7qqurCeYgoFp4XhYDBSgwL14FpcNNmzYdunHjxkWQq4FevXb+/PmNQLY4EEsSW9pwQDWIAjEPKJJA4QoNCiEon5WBSAAAryiVoYy0dtoAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"castingButtonOver" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAQCAYAAAAWGF8bAAAB60lEQVR42mNggAAOIJYAYgUKsATUHDCQ+E8FADUUDBRevXoFEnAAYgsoTSwGq4fqV4Ab+OLFC5CABZkus4DqRxj49OlTsAtBNKkYpg/ZQKmHDx+CBCxBNKkYZCCUBhvIDMQis2fP9gfSKjdv3vx07969/6RgkIFQGmwg35kzZ+omTpwYxcPDo6mmpmaybNmy6devX/9569at/8RgkIFQGmyg8Nu3b39++/bt/9evX1/u3r27lYuLSy87Ozvy1KlTz65du/afEAYZCKXBBvKKiIhol5WVpe3cuXMX0PB/z58/P+3u7m4dFxfnD3T9x0uXLv3Hh0EGQmmwgYJPnjzZvGTJkkpOTk6TysrKbKB3P718+fKKvLy8QUNDQ965c+f+48MgA6E02EChy5cv33z37t3/N2/eXA4ODnYrKipKuXr16s8LFy4sAsprAl1+6vTp0/9xYVA6hNIQLwOxWnFxcd7Zs2ffvn79+q6cnJz5ggULFj148OBXUFCQNVBeCYjN8eWU48ePww0Uef/+/en09HRfYESkAJ3+Z//+/f1OTk7uR44cAbG7qqurCeYgoFp4XhYDBSgwL14FpcNNmzYdunHjxkWQq4FevXb+/PmNQLY4EEsSW9pwQDWIAjEPKJJA4QoNCiEon5WBSAAAryiVoYy0dtoAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"trackButton" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAeCAYAAAA/xX6fAAAB3ElEQVR42u2VP0sCYRzHLwiFUm4oIcUGz4ZMsRqkhhan2hzyBWSvwMXhAsGlFxA46y2JeJpDIeEfDnV1UhdX/+Du5mS/LzyC2F09KDjdAx94nuf3fZ6PPj53CovFQtglgik0habwX+FasxDHhJfwM7xsDjUbcUZc6YB5G69wj7C7XK5AqVSSR6NRfj6f1wD6xWLxBTXKXNMazQhIeYX2SCQSnk6naqfTySYSiZgkSXcAfZpTUAuFQrHxeKwZwSu04NNPJhM1k8m80thHiMQ+A30fasPh8EMUxQiNw0SUeFrhgTjhER6pqio3Gg2FySzC74Y5H2WyyFL/Zpsj9Xa73Xw8Hn9m38aoiZSJIUv9+16vp63DKwz0+/2G2+1+pL6HONCRYc6DDLLUv2U3M7rJkQaazWY9l8u9z2azCo0lHaGEGjKtVquONezbbHSkF7TR52Aw0NrtNhYFdYRB1JCh7BfWYHP6TbVVeIX+arVaq1QqGmBHtd6ulnVk2Qth/SXA/eCf04NdK5fLGjASLuvIYo3RzeIROlOpVLpQKGiAxpc6+1wu68lk8g2XYxuh1eFwBGRZTiuK8m10aVBDhrI4Tus2QoFt4CROiUOdfQ5ZzfmXjEto/gGbQlO4c+EPA9e3TyseGL0AAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"trackButtonOver" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAeCAYAAAA/xX6fAAAB3ElEQVR42u2VvUsCYRzHj4awhq5AF3Mol5bSFjMSstYabGusuaVbHBwEsf9DpMDBF4QGB8FBhSYnvQahIfTEtsIg6AWevt94hLCzDoWm+8EHfi/fe74+j/eiCCGU/0SxDW1D2/BPw5FwgGXgBzsSv+xxtgg2wZ4J7C9aNZwBS263O1QoFC673e79qwzm+Xz+ijNo9sUvQVOrhkuRSOS43+8bjUZDj0ajSa/Xe0SYo3fLWSAQSBqGIcZh1dDBX9/r9YxUKnWNOgicYFbCPMhZp9N5UFX1DPUx0EDiG6dgxYqhO5fLXVYqlVtp5lB+BntBaHRqkR9Mc6T+ZrN5r2nahdzNuHBCk6QW+Umr1RKjWDUM6br+4fF4zpGvgwUTM/bWqaEW+aG8M7VJjjRUrVbfM5nM3WAweEa9YWK4wRk1tVrtndfI3Ux0pNtY6LHdbot6vc7GronhLmfUQPvEa7g4/lPxHauGO+Vy+a1UKgkij2o09oZzauULYfQlYPnB38KD/VosFgUZZzicU4s6MO7OsmK4mkgkbrLZrCCowybrhIfzeDxe5c0xjeG8y+UKxWKxm3Q6/YLaZ7KOjzNqoOVxzk1j+GXKnYI1oJqso8rZqtQqExvaH2Db0Db8d8NP8a/SZovcDd8AAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"fullscreenButton" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAeCAQAAACC7ibdAAAA5ElEQVR4Ae3KsUrzYBhH8RPIFAJ5O3/ig5COgVyHW7N09x7aXSrESafuHeLi0A6iGEX+Y3edLMqnpe7egfbFMZCMXfo762GH9gIijIx8W0rcMQ9tU/3oL9KOGXdYLOuNfOS0CrGLyVr/fZ1zMht9a6VXqV6JjFa9efmiZ43PDoqnCqMh8BGS4IjpT8vTMYY7NiIaooHhsNnovqRPTA9HSOCjwT6ro+Jy8qV3PZT0aJUt9VavdadbnY9IaJUv9KiF5jqZYIQd87V80/rfAEdAq/RKvht9VEPrmmNS8m0ZRkTAzuz9AlNJVl+tEWchAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"fullscreenButtonOver" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAeCAQAAACC7ibdAAAA5klEQVR4Ae3MIUzDUACE4b8VlU1FaQWEBPlQna+oxqHm0dTicShQcyWZwSBWEgohEIKcB8UKAZbhcZXHmsw1eZUz+357OdZow8HHkJItSwiwcodmUWuFpO852s2nzUJtZFh5mPNyrq+23nE4Lv4007templIsYon1ZtedXKzkz/XGDocXBw8QiICBqPq9JJ9ogODT4d/aIgw4+KhYkBAzBbe6qLD/NR7+UX5q089VsRYpVN9NHPd605nBSFWWaknlZroqMTg9Yyv1TZqto+JcLBKrtR2q+96aHCxCkjIlqUYfBzWZuMfAHJlDLF+xFEAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"normalscreenButton" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAeCAQAAACC7ibdAAAA50lEQVR4Ae3KsU6DUBhA4QMNAtsNFcJLyKBx8mXYmNxkculDuJG4OOOmcbr/QNS1xKaJqxJjTJpUk84KuHW4d+nY76yHvV1zxlx8AiZYeJeHBKgmX14wte1qXZ1l98VG/8iyJMQo+ZJVvdGddPohx8co7eRThvWmQOFa5ncZWtSnRwQ4GEVvMvQh62oW2+YDItK+BIW3PTt4KJJxiPrVyJnF39Wv/EdkmQlOsqd6IUOkGLmou+JVv0ifdfabfKVbaXVTt0KCUfhczmWur4rj7LFCYTRhelte5yiC8xgPbHuIj4sztrdbfxJjV3K8mZ7yAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"normalscreenButtonOver" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAeCAQAAACC7ibdAAAA7ElEQVR4Ae3Sr07DUBzF8e+daKaaiaYNAoH8uc43pK+AmsHimETxDAQBQZVkCQhAUFMBewkUCG4W/ib4haTykCYzmFszuc+xX3lYtw3HAEdEQsqQHvGekWKz6qFh3Jfbl9+Znta/WmrekBFU/GjRLvWuN11UJASVXh/yetVxjRH1xM/qNm+3D0lxBOVP6vaiTz8xBgSNyCkpKTBiHP84YoyiC8gZETSY2LfXCjlBjnRretk26kZJUISd1I+679YbJ7NqoTvd6Ly9FQVB2ay51pX262x65jGChoyPmoMKI901YujLMxKi1TnXa+MPEjlkhvYbWGMAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"volumeCapLeft" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAeCAYAAADpYKT6AAAAFElEQVR42mP4//8/AwwzjHIGhgMAcFgNAkNCQTAAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"volumeCapRight" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAeCAYAAADpYKT6AAAAFElEQVR42mP4//8/AwwzjHIGhgMAcFgNAkNCQTAAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"volumeRail" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAeCAYAAABaKIzgAAAASElEQVRYCe3BsQ3AMAwDQRIW4Cqlkf031AZKVkg6An8nAQCAH3zOPQpQe28lqJcS1FpLCcpWhJKsBGVbCaq7lcAzcwkAAHz0AE0SB2llBfTtAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"volumeRailCapLeft" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAeCAYAAAALvL+DAAAAeElEQVR42tWKQQqDMBBFB3cFt9oQQ0wniW51b5f2ti30ZLX1AN+ZQA/hhwfz/zw6eZrmmoWn8NUyCh9jLJzzoLY1L2sd+v6GEBikmh7MCTHmYvyYI1LKBeo69/Y+SBkKtCz3SaztPxKAal0fs5ry2Emjo3ARajpNDtqHL/b2HUUVAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"volumeRailCapRight" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAeCAYAAAALvL+DAAAAeUlEQVQYV9WKOw7CMBBEV3RItAmWYzlmbUMLfSjDbUHiZASFfpj1LTLSW+18RLarrjt+yZPUFoQQ4ZwHgw+5SEqKcTzB+4C+dy/JuUK1wAouVimlwlDNtvgxOMOIMWEYwrsFZtgu03S/Cp/Vmnl+3ADshOdA9s1sSn8goC/6ib5oHgAAAABJRU5ErkJggg\x3d\x3d"/\x3e\x3celement name\x3d"volumeProgress" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAeCAQAAADwIURrAAAALElEQVRIx2NgGAWjYBSMRMD4/z/1DWW5TQOXsnwdMoZ+GyouHQWjYBSMTAAAnO8GxIQ7mhMAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"volumeProgressCapLeft" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAeCAQAAAChtXcIAAAANUlEQVQY02NkgAJGOjH+9zEkAxm/JrzJ/wYSufTxLx9Y6shHBghj10SGPKji9RMYkhjp6EIAcaIN1SJ2FnYAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"volumeProgressCapRight" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAeCAQAAAChtXcIAAAANklEQVQYV2NgoCP4//F/H5hx5/+z/78mABnn/5//f+kzkHHkPxCCGLv+A+FEIGP9p/UgFXQFAHkZGwN2fDIsAAAAAElFTkSuQmCC"/\x3e\x3c/elements\x3e\x3c/component\x3e\x3ccomponent name\x3d"display"\x3e\x3csettings\x3e\x3csetting name\x3d"bufferrotation" value\x3d"90"/\x3e\x3csetting name\x3d"bufferinterval" value\x3d"125"/\x3e\x3csetting name\x3d"fontcase" value\x3d"normal"/\x3e\x3csetting name\x3d"fontcolor" value\x3d"0xffffff"/\x3e\x3csetting name\x3d"fontsize" value\x3d"11"/\x3e\x3csetting name\x3d"fontweight" value\x3d"normal"/\x3e\x3c/settings\x3e\x3celements\x3e\x3celement name\x3d"background" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAA0CAYAAACQGfi1AAAAYklEQVR4Ae2VwQ2AMAwD/cgKVRbJuAyH+mOBfMMQyBKCuwWsxoaLtfKQkaiqtAZ0t5yEzMSMOUCa15+IAGZqgO+AFTFTSmZFnyyZv+kfjEYH+ABlIhz7Cx4n4GROtPd5ycgNe0AqrojABCoAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"backgroundOver" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAA0CAYAAACQGfi1AAAAY0lEQVR4Ae2VsQ2AQAwDXWSFF91Pkf1rxkAZIm0YAllCcF7Aiu3/i7WOU0ZFZm6rQXfLaiCzYkbuC+b1EWHATM3iHbAiZkrJrIiSP/ObQjQ6gAcg8w/AsV/w2AEmE1HVVTLqBmJaKtrlUvCnAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"capLeft" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAA0CAYAAACHO2h8AAAA4UlEQVR4Ae2XwUoDMRRFT17GTscIMoWOqwF1WUSFIv6Autf/X5TuxG6FBkOeHfAHpk+GLnI+4HBzLzyI44/l8uoBeAVugJqRuIMA4L1t24+u685DCGci4hhJBdwPkr7vL3POLsaIqnKM6G2xaJuUksPAILquqtlMFayiuYhzYDMJIygi+2qonloi0CkTldXK/NOXXVYrZRs6UgyUjsrxL6d28sP2b4n0xJ62z1nVHbCutolx/4MRH8LFt6o+Nc28tqTyq9Xd5273RUrpVsSL915gvNCt188MbLebR+Dl2K/oL+WmRveI4jXNAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"capLeftOver" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAA0CAYAAACHO2h8AAAA5ElEQVR4Ae2XMU7DQBBF346sIDAUDoqprNBCm4Im3IPcAE7EEbgId6BF6akQjheZGTYSF7DXQi7mSdM+zf4vjbSBP1arqy2wA26BUwZSJAHAY1VVT3VdX5RluZDEYBGwPUqaprlUVYkxYmaMEe2Wy+q873shgwK4KYrFiRnkis5EgkCeScjHRQNaw2xuG4HNYiNvzeufPmxvzcPOz8jIwDPy4++n9t8P22Qb2cye1qqahhAkt7W3GLvvKep/+Uyo/igYY0fW6+vXtv16/kgcDl2nagkYOmGzuePIfv9+DzyM/Yr+AujSfWZZzzLnAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"capRight" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAA0CAYAAACHO2h8AAAA20lEQVR4Ae2XQUrEQBBFX4e29QJDVgFv4Cb7wSt4Ps8wLtw5B3A97mfmAFlkkbaZMpAynkBiBRGpd4Ci6j/4UGGzqR9ZjgBn4AV4A4ht29YsZJomzTnXXdfd9X2/A55iKYWlhJmU0nXTNAl4mIedwnZ7/4wBkcvH8Xh6jaqYiDFdAbcRFAtVFQJwU7ESPuh7zPrX3wj0T2zk1lz/+mG7NQ/bnpFixDPy8veq/dViW20j/W+drTOAmK2JXEbgbDrt628bhqEA+x+dpjMiMuY8lFLed8DB+orugQPAJ8i7bEsKl1PuAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"capRightOver" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAA0CAYAAACHO2h8AAAA2UlEQVR4Ae3XwUkEMRTG8X8eIaLgwYXF0xRgKYsVWIIVrR1sI3uwANkSvMxhDhOzRoZ5pgOZSZiDvF8Bjy/vgwdx+/3jO8tdgQtwAs4A7nB4/mShuYgx5r7v4zAMR+DNp5RYyjknIYTbrutugNcy7ENYQVUpoZimSXa7h3vgxatSxfsQgCcPdZNEnAB3QiM26G/V9bdPBLp9ImvN6t9y2daaLbtiR0ol25Edfzu1mx62Zon0v91sVZ2Bq1Ap5+8f4FL1tLkYC+C06mla5CLGcUzp6wicm31FfwHzmG90m7lXIAAAAABJRU5ErkJggg\x3d\x3d"/\x3e\x3celement name\x3d"bufferIcon" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAA0CAQAAABI31KIAAABGElEQVR4Ae3Rr0pEQRSA8Zl1b1uDQTAt4j8QES1qURZvEf8lfYJVsfoAisYFq9mgyfUFVptgMtk3CAaD6DN8HoYbFhk9w9x0Yc6XDsv8LrNj0vgnTZo05LzzyR7m/wxafQC+sDHQENkv6DsG2uFV2i62nDc+2C82SybVwqAX+tIzxlOdzBUEPTnosTy0wgM9lryQpS7pVwutetAiN3RZU481mJYaf0PX9KR7rALNMCtNaVC3PLTALXesYpSGlatFVDFonnNOmfQeGKHFOqNhUIcr6cwLtdiVNkIgy6WDLrxQ7qBNrApJy0J1mCu2CY6k4qKMCbJFM/TPHvzeASfS8cBvtbhXazvosPzzN2lL4/GQXoISlKAqQz+eXnU2Tp6C2QAAAABJRU5ErkJggg\x3d\x3d"/\x3e\x3celement name\x3d"bufferIconOver" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAA0CAQAAABI31KIAAABGElEQVR4Ae3Rr0pEQRSA8Zl1b1uDQTAt4j8QES1qURZvEf8lfYJVsfoAisYFq9mgyfUFVptgMtk3CAaD6DN8HoYbFhk9w9x0Yc6XDsv8LrNj0vgnTZo05LzzyR7m/wxafQC+sDHQENkv6DsG2uFV2i62nDc+2C82SybVwqAX+tIzxlOdzBUEPTnosTy0wgM9lryQpS7pVwutetAiN3RZU481mJYaf0PX9KR7rALNMCtNaVC3PLTALXesYpSGlatFVDFonnNOmfQeGKHFOqNhUIcr6cwLtdiVNkIgy6WDLrxQ7qBNrApJy0J1mCu2CY6k4qKMCbJFM/TPHvzeASfS8cBvtbhXazvosPzzN2lL4/GQXoISlKAqQz+eXnU2Tp6C2QAAAABJRU5ErkJggg\x3d\x3d"/\x3e\x3celement name\x3d"errorIcon" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAA0CAQAAABI31KIAAAB3ElEQVR42u2Tv0sCYRzGv5WFJIVgkEVLSy1ObWGDUE0OgdRYtBZC/QENFv0DDTW0FEYJGkgEBUZCEFxYlJpnEMSpUxpBNAkiT++rlb+uvNOpuOcz3Pt+j3vgeN8PkRYtWv5Z2qmb0d58kXl7ZXuFzM3W6E3jybfUW+8E6ZupaaXB3ZNnPGPnlAbZruF02ebTuRRSSOds89TVaE0bWYJiEhIjiaBIFjZpKKaF1TSePknDuUamRmo6dKPRzCNKRDO6UepQW9NCAxseCXHGlHvKzZ8SNjw0wN6oSqfFIWXvwSE72YsrKWtxkEHdsQ/5hRjuCpCNbMVVDEdXNKzmGhhnlqT8DYrwoq+1lJ9ZIqNyu0aERAhXn/Cir3UIQoJGlJpndm2KuPyGF5V2IlxbyszTmybi7xcowYvK9/H3/sn65hXsEnBeBi8q3wuKzGN2PeQCKIcff+Xkoa55zK4zMYCTCubcs+7KSQBn3DzdL3Ytrt3iuIpXRvXsFs516vnFruuMH8oI/Whewa4gDmsY8435aqfBH81jdoWzXtTi8Dm8cvOwrHkFu/zwyJDBi+yc/aCMecyuUH4f6rjOTy9Xm9cXiRxgTyX7iESor7LIQENk5XdYFVb2lYG0aNHyF/MB+x5LQiE6gt8AAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"errorIconOver" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAA0CAQAAABI31KIAAAB3ElEQVR42u2Tv0sCYRzGv5WFJIVgkEVLSy1ObWGDUE0OgdRYtBZC/QENFv0DDTW0FEYJGkgEBUZCEFxYlJpnEMSpUxpBNAkiT++rlb+uvNOpuOcz3Pt+j3vgeN8PkRYtWv5Z2qmb0d58kXl7ZXuFzM3W6E3jybfUW+8E6ZupaaXB3ZNnPGPnlAbZruF02ebTuRRSSOds89TVaE0bWYJiEhIjiaBIFjZpKKaF1TSePknDuUamRmo6dKPRzCNKRDO6UepQW9NCAxseCXHGlHvKzZ8SNjw0wN6oSqfFIWXvwSE72YsrKWtxkEHdsQ/5hRjuCpCNbMVVDEdXNKzmGhhnlqT8DYrwoq+1lJ9ZIqNyu0aERAhXn/Cir3UIQoJGlJpndm2KuPyGF5V2IlxbyszTmybi7xcowYvK9/H3/sn65hXsEnBeBi8q3wuKzGN2PeQCKIcff+Xkoa55zK4zMYCTCubcs+7KSQBn3DzdL3Ytrt3iuIpXRvXsFs516vnFruuMH8oI/Whewa4gDmsY8435aqfBH81jdoWzXtTi8Dm8cvOwrHkFu/zwyJDBi+yc/aCMecyuUH4f6rjOTy9Xm9cXiRxgTyX7iESor7LIQENk5XdYFVb2lYG0aNHyF/MB+x5LQiE6gt8AAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"playIcon" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAA0CAQAAABI31KIAAABHUlEQVR4Ae2Vu0oDQRRAB2xSWVmmtQncLzFREUUsnW/wJ0SCWgQV8TUQBBEsjlgIFoJFCsFCCT5QgwZFtPGtncUWIcTZnd2pAnNOf2Bn5t5VgUCge8mpPtWrevxD+cbi1KTq948VXvjlbMM/Jk2aPPPjHZM7Ip88Y3JLy0e+M8fkmnYfMsbkkk7v+Uodkzr/2+AzVUxOsXvDh3NMToj3inenmByT7AVviTGp4WadV85XK0WVs4SOcHd3rVyyhg5xc91M6NhPOyDZFTOuEw97n3iXzZh2uv497C6YUe38ILFQMSM61Yjs0Om8Gdaph3abdmfNkM60RrZoWTaDOvNi2yRyxpQsETcKVapMm6JHJCI/tzTgEfH4QXYxgUDgD+1pwmmFlV3oAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"playIconOver" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAA0CAQAAABI31KIAAABHklEQVR4Ae2VvUpDQRBGt7BMaekD5AEsU0zvL6KI76CdL6FDUItgIYJNEERIoVgIFoKFhWChBBNRYwwZRBv/tfostgghuXf37lSBPac/cHd35ppIJDK45MyIGTZDRk2+UVteNaP6WOEVf7hu62PUQgsv+FXHqAnrszJGD+go+AmO0R26bQfGqI5en/CdOUZV9LeBr0wxukKy9/j0jtEl0r3Fh1eMLuC2hndnjM7hZxVvuHksLZpcQugM/h42i0uJoVP4uSMLnPppJ3C7LfPsPOxjpLslc+x1/UdIdlNm2ftBHqC/JZnhTCNSQa8bMs2Zh3Yf3a7JFAetkT10LMokBy+2XVhZJgIjlkIZZazIuCJiya/Xx9QR/Q8yEokMFv9/Ax7UXjl24wAAAABJRU5ErkJggg\x3d\x3d"/\x3e\x3celement name\x3d"replayIcon" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAA0CAQAAABI31KIAAADOElEQVR4Ae2VUWhbVRjH/0nqdk0m0eTGITVZNsmiZCLTlooNPoWlbk27lzmGSIeyh7YgFSYaGO2yDZk4GMi65kG9d6kkbfCuyf1bqZmmlsYxCK51KwxkrpM4qBRla18cIngvw0qgN7ea1/z+L4fDn4/vO+c730G9NGjQQIALj8CKumn+afjIQWyDHRbUxTO/8w/Ojux9Bc0Q6gn27B3eoRZM5Zm2l7EVm/5bMAsEiPAjiFiFun7hXa5MjJ7Y1gI3mjYaxA5vZzSdmJeWlfvqz/xHFd7jr5+fP+rYgU0wpQlibE8peV+9yyVWeJuLVapwleU4tsCEh9B8sn8lt8SbBprJvHUEXrOMmuCVj61o9h81fXEhEY/GHAf09QOVlaF3N4fgNDsjCzxnBn7jDU3T2TfexE64IeC5G9Q1lz/7/vY2iBs5aHtndCm/wAXmUtvb8ShsD/pogdf46bm2CJ7Qr16THY87t0Iwzsf77ch1/sBCdmcYjrVuaZ4813UAPjwMC3SXsztS+ujqWTxp1E9CV8ct9Sq/56EeOGGpemtb1t6a9bXdq7nbvKV2dRjlJKaOl1lm+gICsME47x1jsu5LHYeIdfEXpCu8wsE43KiFezCu+woS/FiX4KxSYon7YhBQC2FfTPfNKghiXUIldYYzdLfChlpYxRbd952KkEGgr9Uii3z6JbNAnhbd941hoOBF5RIv8WC3SWmbuzt130XD0vyfSFOc4gfvwIVauD48qvs+Njxs8URikpOckmtevw2Br2Tdd9Lw+oVIR15VeZl91Q1Z3UXOvp7LVJlXI4YNaYHvdHKCE7ye3fXvE6l2OHaFr43rntNJ+IxHrj0czeQVFjifCrbDCRuqi3IG2+dTBSrM5MNR2GuOkcMD48xymotZrcAAXBBghQ0C3Aj09Sxmp5nlOA8PwAOLyWDrPZbhGL/kMufkkff2xx5rferFQ/vPx+fkZW13jBn2D8KrOc1H7av9ci7NNIu8yVX+xT95T1sVqe/J+dffhldzYUPD/4U9Q8lR9TNWa5RDyeej8BhkY/Qd7Y72Jk5Jw4qkSuqwckrqTbTuhc/44zb/IEOagtpK/N8fdoMGDf4G6kd7103/csoAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"replayIconOver" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAA0CAQAAABI31KIAAADTElEQVR4Ae2VX2xTZRjGH1iBzDMrU6lxLdOFhLJ/CepwTWCJiUSTDTdilikxJmAo2GlJ9I7EsCgkw6jRG5ALtZNJy7QDiwxK0dZllSypssqatCHIMKdzM4uEnUUrtj2P57uAULNzOtltf8/Nl3OevHnf73u/70WJxVKiRAWqcD/KsGjsvyScb6EBZizFoth4nX9zJNn6KtZCwhLcNU9NcpJasPw3o80vogbl/y/YUkiwoRHNcMsUSvMGlX/6zz3SCiuWLzSIGXVbnN5gXJ7566b6K29J5ix///PwMWk9ylGUZVj93M5o6qZ6g9OUeY0TBZI5x9ggKlGEFbDvP6Jkp3lFR8PX93yEOpQXy6a2L6Bo9suaTv/2tv/ZPdLey7ylWKZnYEULLFhWbG+q3/f8waSmiPLKB3gSVkh4OkmhsdyHkZoO2Bay0eYtzulcggl+PVXTiYdggmBjgpf42XjzDqwRRy+OAo/eVwNJP5+675Pj/JkhZW0XVt7uFvvQePte1ONezSFclo4d0fjFH7FOr9Ol9l1X1Yv8idt6Ybmj6SRUofL2XSt76Zm57DVeVdt36eVkO3o2xhi9k9gAE/TzXn88LXxHz8KGeWkMyaMc5T4/rDDCus8vfCEZjZgXx0gmyijb3JBghNTmFr6RDByYl5ZofpjDfKANJhhR9mCr8P2QR4tOoG/zYYa57vligVa1Ct93uoEcJzLneZ4vvIEKGHFPx+vCd0K3tMZP5SCDfNeLKhjx8HvHhO8T3c22vRMc4hCDaTQZFGdC07m08O3XPX5p8+6AeooX2F3QkAUsgaW79wJPMaBu3g1Jr9XqD6ZO8iTHlYY7rkhBmJUNXZdmhedgCvX6w8C8yenLDTLE+JS9ExaY/lOUxd4ZnwpxkL7cJifMhs/Ids8Av2SEE4pWYBOqIKEMJlTAiqbu3gklov0d4HYPqo2H03LUugI+HucZznAs/fFXW92VbWu2bnvzsH8sPcMz2h8fXzuNWs1Z/KntOtKX9dLLMK9wjnlmOautwhTf+nIvf446zYUFPf5P7OxJ9atfsFD97Ek97kS1TjZ64+gxpyt4QD6U8age9VDmgOwKbnChXn9wFxuQDrRocmir1ai4y+lfokSJfwEhAcqxd5L4JgAAAABJRU5ErkJggg\x3d\x3d"/\x3e\x3c/elements\x3e\x3c/component\x3e\x3ccomponent name\x3d"dock"\x3e\x3csettings\x3e\x3csetting name\x3d"iconalpha" value\x3d"1"/\x3e\x3csetting name\x3d"iconalphaactive" value\x3d"1"/\x3e\x3csetting name\x3d"iconalphaover" value\x3d"1"/\x3e\x3c/settings\x3e\x3celements\x3e\x3celement name\x3d"button" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAgCAYAAABpRpp6AAAAxklEQVR4Ae2YsQ3CMBBF7+yIximQSERSMgYNI1AxJgswAaMkLREpEnQ2Z6Chooqwpf+k65+evhtzXW8LIjrp7fUcpcmod9U7v2Sbpjm2bVtaa5kSRERC13V13/ePIpatqk05zzOHEChFWImOKnyIwk7EMyXMJyTrOUOZAeGlKd4byUtYCZjEN9gwCuPRYRKYBCbx18JLJ0bh3IQJk/gFHh0Ko3BWwqOID8YYpoTx3ofoap0r18y0WymspCo7DLf7NE2X7L5bnyz7UgI6sO7WAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"buttonOver" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAgCAYAAABpRpp6AAAAzklEQVR4Ae2YMU7FMBAFx04osQvyRQIX4nfcgRZOAxW3oMqRkhKbBkWyjVfiCiD7a0dKPxq9dZHxdLq9Al6AB8DRJl/ACryOwPM8z0/LsvhhGCwNklLK27bd7fv+LcLnabrxx3HYUgotYoyx4liFH0XYpZQtDfMb0orrSGeo8L8Il9Jd4dL5JFRYN6xHp5PQSegkLuwd/uPEWrg3YXQSenRaWAtfVOGYUs62QsPkiriK8Brj571z3ot0q7IxhgB8iPBbCMHU7wxcN/679f0HQzRYj4Eg/3AAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"buttonActive" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAgCAYAAABpRpp6AAAAwUlEQVR4Ae2YsQ3CMBBFD8e0CVESUcFMpGMKapgAKvagymKWiF3RxMe/IUDn6J70I5dPX98u4odhvyWiG3JCdqSTiEzI3eNz7fv+0nVdW1WVI4VkEEI4IB8RHjXLCg6II4TPXmbgADOTZhwQV0+F4ekPmDBzcQ2zTcKEC9+wXTqbhE3CJrGyd5jpp1jDxb0SNgm7dNawNbyqhudlydkBUkwG4irCU0rzsa6bVqt0BinFN44vEX7EGDfIiHOj/Hfr8wvCZ0/Xf6TpeQAAAABJRU5ErkJggg\x3d\x3d"/\x3e\x3celement name\x3d"divider" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAgCAYAAAA1zNleAAAAD0lEQVQoU2NgGAWjADcAAAIgAAEeEYatAAAAAElFTkSuQmCC"/\x3e\x3c/elements\x3e\x3c/component\x3e\x3ccomponent name\x3d"playlist"\x3e\x3csettings\x3e\x3csetting name\x3d"backgroundcolor" value\x3d"0x3c3c3e"/\x3e\x3csetting name\x3d"fontcolor" value\x3d"0x848489"/\x3e\x3csetting name\x3d"fontsize" value\x3d"11"/\x3e\x3csetting name\x3d"fontweight" value\x3d"normal"/\x3e\x3csetting name\x3d"activecolor" value\x3d"0xb2b2b6"/\x3e\x3csetting name\x3d"overcolor" value\x3d"0xb2b2b6"/\x3e\x3csetting name\x3d"titlecolor" value\x3d"0xb9b9be"/\x3e\x3csetting name\x3d"titlesize" value\x3d"12"/\x3e\x3csetting name\x3d"titleweight" value\x3d"bold"/\x3e\x3csetting name\x3d"titleactivecolor" value\x3d"0xececf4"/\x3e\x3csetting name\x3d"titleovercolor" value\x3d"0xececf4"/\x3e\x3c/settings\x3e\x3celements\x3e\x3celement name\x3d"item" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAABMAQMAAAASt2oTAAAAA1BMVEU8PD44mUV6AAAAFklEQVR4AWMYMmAUjIJRMApGwSgYBQAHuAABIqNCjAAAAABJRU5ErkJggg\x3d\x3d"/\x3e\x3celement name\x3d"itemActive" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAABMAQMAAAASt2oTAAAAA1BMVEUvLzHXqQRQAAAAFklEQVR4AWMYMmAUjIJRMApGwSgYBQAHuAABIqNCjAAAAABJRU5ErkJggg\x3d\x3d"/\x3e\x3celement name\x3d"itemImage" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAA2CAMAAAAPkWzgAAAAk1BMVEU0NDcVFRcWFhgXFxknJyozMzYyMjUlJSgrKy4jIyYZGRssLC8YGBobGx0kJCcuLjAiIiQaGhwjIyUpKSwkJCYaGh0nJykiIiUgICIwMDMqKi0cHB8lJScdHSAtLTAuLjEdHR8VFRgxMTQvLzIvLzEoKCsZGRwqKiwbGx4gICMoKCofHyImJigmJikhISMeHiAhISRWJqoOAAAA/klEQVR4Ae3VNYLDMBQG4X8kme2QwwzLfP/TbeO0qfQ6zQW+coRxQqYl4HEJSEACEvA8NQamRkCoF40kNUxMgC3gc0lrtiZAB1BKuSOPDIzcXroB0EtL3hQXuIHLNboDC+aRgRnQ6GUAjtBEBmrgdcwA/OCyuMATraOvBiB3HBQTOJ8KZp5QwwXoA3xFBdrVjpPnHVgBfQfjqMChZSoAugDMwCsqUMFeAHwEwMFnXKDkshGAz5YAEOIC2fpbAqhUAMDG4AcO3HUAahkAHYykOQATC6Bsf7M7UNotswLwmR2wAviTHVAAHA2BMXCWIaDC7642wIMSkIAEJCABxv0D1B4Kmtm5dvAAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"divider" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANIAAAABCAIAAAAkUWeUAAAAEUlEQVR42mPQ1zccRaOIzggAmuR1T+nadMkAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"sliderRail" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAABCAYAAADErm6rAAAAHklEQVQI12NgIABERcX/Kymp/FdWVkXBIDGQHCH9AAmVCvfMHD66AAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"sliderCapTop" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAKCAYAAACuaZ5oAAAAEUlEQVQoU2NgGAWjYBQMfQAAA8oAAZphnjsAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"sliderCapBottom" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAKCAYAAACuaZ5oAAAAEUlEQVQoU2NgGAWjYBQMfQAAA8oAAZphnjsAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"sliderRailCapTop" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAECAYAAACUY/8YAAAAX0lEQVR42q2P4QqAIAyEewktLUy3pKevVwvpAdZO+q9Qgw+OO25jQ88YM2blUAp4dW71epfvyuXcLCGsFWh4yD4fsHY6vV8kRpKUGFQND9kfHxQsJNqEOYOq4Wl2t/oPXdoiX8vd60IAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"sliderRailCapBottom" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAECAYAAACUY/8YAAAAXElEQVQY02NgIADExCQ+KSmp/FdWVkXBIDGg3BcGSoG0tMxGWVl5DAtAYiA5ii2wsbE1ALr0A8hAkKtBGMQGiYHkKLbg////TK6uboYg1wIN/QzCIDZIDCRHSD8AB2YrZ5n2CLAAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"sliderThumb" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAABCAAAAADhxTF3AAAAAnRSTlMA/1uRIrUAAAAUSURBVHjaY/oPA49unT+yaz2cCwAcKhapymVMMwAAAABJRU5ErkJggg\x3d\x3d"/\x3e\x3celement name\x3d"sliderThumbCapBottom" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAECAQAAAA+ajeTAAAAMElEQVQI12NgwACPPt76f/7/kf+7/q//yEAMeNQH19DHQBy41Xf+/ZH3u4hVjh8AAJAYGojU8tLHAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"sliderThumbCapTop" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAECAQAAAA+ajeTAAAANUlEQVQI12NgoAbY2rf+49KPs/uIVH54wrH/h/7v+L/y//QJRGm4/PHa/7NALdv+L/6MKQsAZV8ZczFGWjAAAAAASUVORK5CYII\x3d"/\x3e\x3c/elements\x3e\x3c/component\x3e\x3ccomponent name\x3d"tooltip"\x3e\x3csettings\x3e\x3csetting name\x3d"fontcase" value\x3d"normal"/\x3e\x3csetting name\x3d"fontcolor" value\x3d"0xacacac"/\x3e\x3csetting name\x3d"fontsize" value\x3d"11"/\x3e\x3csetting name\x3d"fontweight" value\x3d"normal"/\x3e\x3csetting name\x3d"activecolor" value\x3d"0xffffff"/\x3e\x3csetting name\x3d"overcolor" value\x3d"0xffffff"/\x3e\x3c/settings\x3e\x3celements\x3e\x3celement name\x3d"background" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAACCAYAAABsfz2XAAAAEUlEQVR4AWOwtnV8RgomWQMAWvcm6W7AcF8AAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"arrow" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAADCAYAAACnI+4yAAAAEklEQVR42mP4//8/AymYgeYaABssa5WUTzsyAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"capTop" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAECAYAAAC6Jt6KAAAAHUlEQVR42mMUFRU/wUACYHR1935GkgZrW0faagAAqHQGCWgiU9QAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"capBottom" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAECAYAAAC6Jt6KAAAAGElEQVR42mOwtnV8RgpmoL0GUVHxE6RgAO7IRsl4Cw8cAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"capLeft" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAACCAYAAACUn8ZgAAAAFklEQVR42mMQFRU/YW3r+AwbZsAnCQBUPRWHq8l/fAAAAABJRU5ErkJggg\x3d\x3d"/\x3e\x3celement name\x3d"capRight" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAACCAYAAACUn8ZgAAAAFklEQVR42mOwtnV8hg2LioqfYMAnCQBwXRWHw2Rr1wAAAABJRU5ErkJggg\x3d\x3d"/\x3e\x3celement name\x3d"capTopLeft" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAECAYAAABCxiV9AAAAPklEQVR4XmMQFRVnBeIiIN4FxCeQMQOQU6ijq3/VycXjiau79zNkDJLcZWvv9MTGzumZta0jCgZJnkAXhPEBnhkmTDF7/FAAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"capTopRight" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAECAYAAABCxiV9AAAAPklEQVR42mMQFRU/gYZ3A3ERELMyuLp7P0PGTi4eT3R09a8CJbMYrG0dnyFjGzunZ7b2Tk+AkrswJGEYZAUA8XwmRnLnEVMAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"capBottomLeft" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAECAYAAABCxiV9AAAAMUlEQVR4AWMQFRU/YW3r+AwbBknusrSye4JLslBdQ/uqpbX9E2ySrEBcBMS7QVYgYwAWViWcql/T2AAAAABJRU5ErkJggg\x3d\x3d"/\x3e\x3celement name\x3d"capBottomRight" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAECAYAAABCxiV9AAAANUlEQVR42mOwtnV8hg2LioqfYMAmYWll9wQouQtD0tLa/om6hvZVoGQ2A0g7Gt4NxEVAzAoAZzolltlSH50AAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"menuOption" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAARCAYAAADkIz3lAAAAcklEQVQoz2NgGLFAVFRcDoh3AfFnKC2HVaGYmMQeSUnp/7Kycv9BNJB/AJeJn+XlFf8rKir/V1BQ+g/k/8SqEGjKPhkZuf/Kyqr/QTSQfwirQm9vX3WQYqCVX0G0p6e3BlaF////ZwJiLiDmgdJMwzr2ANEWKw6VGUzBAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"menuOptionOver" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAARCAYAAADkIz3lAAAAcklEQVQoz2NgGLFAVFRcDoh3AfFnKC2HVaGYmMQeSUnp/7Kycv9BNJB/AJeJn+XlFf8rKir/V1BQ+g/k/8SqEGjKPhkZuf/Kyqr/QTSQfwirQm9vX3WQYqCVX0G0p6e3BlaF////ZwJiLiDmgdJMwzr2ANEWKw6VGUzBAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"menuOptionActive" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAARCAQAAABOKvVuAAAAdElEQVR4AWOgJ5BhcGQIBWIZhJCsW+6jS7+/P7rklssgBxN0un/59f+n/1//f3SVwQUmGPrs+6P/IPj8N0M4TNBl/+Vr/0Hw4FUGN5igkm3ursvnf+y6bJ/LoAwTZGZQY/BgCANiNSCbASHMwcANxMy09DcAxqMsxkMxUYIAAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"volumeCapTop" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAFCAYAAAB1j90SAAAAE0lEQVR42mP4//8/AzmYYQRoBADgm9EvDrkmuwAAAABJRU5ErkJggg\x3d\x3d"/\x3e\x3celement name\x3d"volumeCapBottom" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAFCAYAAAB1j90SAAAAE0lEQVR42mP4//8/AzmYYQRoBADgm9EvDrkmuwAAAABJRU5ErkJggg\x3d\x3d"/\x3e\x3celement name\x3d"volumeRailCapTop" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAECAYAAAC+0w63AAAAXklEQVR42n2NWwqAIBRE3YSmJT4KafW1tZAWMN2RPkSojwPDPO5VAFSP1lMRDqG+UJexN4524bJ2hvehQU2P2efQGHs6tyCEhBhzg5oes7+PlcWUVuS8Nah5QLK77z7Bcm/CZuJM1AAAAABJRU5ErkJggg\x3d\x3d"/\x3e\x3celement name\x3d"volumeRailCapBottom" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAECAYAAAC+0w63AAAAWklEQVQI12NgQAJiYhKfVFXV/6upaaBgkBhQ7gsDLiAtLbNRXl4RQyNIDCSHU6ONja0B0OQPIIUgW0AYxAaJgeRwavz//z+Tq6ubIch0oOLPIAxig8RAcshqARVfK+sjJ8UzAAAAAElFTkSuQmCC"/\x3e\x3celement name\x3d"volumeRail" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAA0CAYAAAC6qQkaAAAAXklEQVR42mP5//8/AwyIiUn85+bmZmBkZGRABiA1X79+ZXj16gVcgoUBDaBrwiWGoZFYMCg0MpKnkZFxCPlxVONw0MjIyDgaOCM7AdC7lBuNjtGiY1TjqMbRwooijQBUhw3jnmCdzgAAAABJRU5ErkJggg\x3d\x3d"/\x3e\x3celement name\x3d"volumeProgress" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAA0CAAAAACfwlbGAAAAAnRSTlMA/1uRIrUAAAAmSURBVHgBY/gPBPdunT+yaw2IBeY+BHHXwbmPQNz1w5w7yh3lAgBeJpPWLirUWgAAAABJRU5ErkJggg\x3d\x3d"/\x3e\x3celement name\x3d"volumeProgressCapTop" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAECAQAAAAU2sY8AAAANElEQVQI12NgIA5s7Vv/cenH2X1YpA5POPb/0P8d/1f+nz4BQ/Lyx2v/zwKlt/1f/BkmBgDJshlzy7m4BgAAAABJRU5ErkJggg\x3d\x3d"/\x3e\x3celement name\x3d"volumeProgressCapBottom" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAECAQAAAAU2sY8AAAAL0lEQVQI12NggIJHH2/9P///yP9d/9d/ZkAHjybCJScyYIJbE85/OvJp1wQG4gAADBkams/Cpm0AAAAASUVORK5CYII\x3d"/\x3e\x3celement name\x3d"volumeThumb" src\x3d"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAQCAQAAACMnYaxAAAA/klEQVR4AYXQoW7CUBjF8f9IYWkgq2l2k8llrmJBTOBxsyQlJENs4236CDhEywNUIEGh12WZuYDC4W9A3B2zhTVLds8VJ+fnPv5/FzQIaHGptNQaWn4ooM0DA56VgVpbi1hEk2vSvNjbozu6vc0LUi1NCQFXDBflwW/9p7L1B78oGRJJCOnN8o3/OMvGz3J6EiLStdX0K2tLKiFm8n6qY3XiVYL5C98cLxL90dLWcWkZSYjpZ0Uds4K+hIg7nqblOU1LxlojCDF0GWfz1a5ylVvtsrmoi5EQ0OGGhEdNE2WslmjpSND5VAy3mu6VRM1o0fm+Dx8SEWOUWC3UIvoCCFqphCwr/x8AAAAASUVORK5CYII\x3d"/\x3e\x3c/elements\x3e\x3c/component\x3e\x3c/components\x3e\x3c/skin\x3e')}})(jwplayer);(function(o){var i=o.html5,r=o.utils,p=o.events,n=p.state,m=r.css,l=r.isMobile(),j=".jwpreview",q={showicons:!0,bufferrotation:45,bufferinterval:100,fontcolor:"#ccc",overcolor:"#fff",fontsize:15,fontweight:""};i.display=function(an,am){function al(t){if(ac&&(an.jwGetControls()||an.jwGetState()===n.PLAYING)){ac(t)}else{if((!l||!an.jwGetControls())&&b.sendEvent(p.JWPLAYER_DISPLAY_CLICK),an.jwGetControls()){var y=(new Date).getTime();a&&500>y-a?(an.jwSetFullscreen(),a=void 0):a=(new Date).getTime();var x=r.bounds(Z.parentNode.querySelector(".jwcontrolbar")),w=r.bounds(Z),y=x.left-10-w.left,z=x.left+30-w.left,d=w.bottom-40,v=w.bottom,u=x.right-30-w.left,x=x.right+10-w.left;if(l&&!(t.x>=y&&t.x<=z&&t.y>=d&&t.y<=v)){if(t.x>=u&&t.x<=x&&t.y>=d&&t.y<=v){an.jwSetFullscreen();return}b.sendEvent(p.JWPLAYER_DISPLAY_CLICK);if(g){return}}switch(an.jwGetState()){case n.PLAYING:case n.BUFFERING:an.jwPause();break;default:an.jwPlay()}}}}function af(t,d){e.showicons&&(t||d?(W.setRotation("buffer"===t?parseInt(e.bufferrotation,10):0,parseInt(e.bufferinterval,10)),W.setIcon(t),W.setText(d)):W.hide())}function ad(d){ae!==d?(ae&&E(j,!1),(ae=d)?(d=new Image,d.addEventListener("load",N,!1),d.src=ae):(m("#"+Z.id+" "+j,{"background-image":""}),E(j,!1),Y=S=0)):ae&&!g&&E(j,!0);ai(an.jwGetState())}function ab(d){clearTimeout(ao);ao=setTimeout(function(){ai(d.newstate)},100)}function ai(d){d=f?f:an?an.jwGetState():n.IDLE;if(d!==c){switch(c=d,W&&W.setRotation(0),d){case n.IDLE:!h&&!H&&(ae&&!k&&E(j,!0),d=!0,an._model&&!1===an._model.config.displaytitle&&(d=!1),af("play",X&&d?X.title:""));break;case n.BUFFERING:h=!1;aj.error&&aj.error.setText();H=!1;af("buffer");break;case n.PLAYING:af();break;case n.PAUSED:af("play")}}}function N(){Y=this.width;S=this.height;ai(an.jwGetState());ag();ae&&m("#"+Z.id+" "+j,{"background-image":"url("+ae+")"})}function ak(d){h=!0;af("error",d.message)}function ag(){0<Z.clientWidth*Z.clientHeight&&r.stretch(an.jwGetStretching(),ah,Z.clientWidth,Z.clientHeight,Y,S)}function E(t,d){m("#"+Z.id+" "+t,{opacity:d?1:0,visibility:d?"visible":"hidden"})}var Z,ah,V,X,ae,Y,S,k=!1,aj={},h=!1,H=!1,g,P,W,f,c,e=r.extend({},q,an.skin.getComponentSettings("display"),am),b=new p.eventdispatcher,ac,a;r.extend(this,b);this.clickHandler=al;var ao;this.forceState=function(d){f=d;ai(d);this.show()};this.releaseState=function(d){f=null;ai(d);this.show()};this.hidePreview=function(d){k=d;E(j,!d);d&&(g=!0)};this.setHiding=function(){g=!0};this.element=function(){return Z};this.redraw=ag;this.show=function(d){if(W&&(d||(f?f:an?an.jwGetState():n.IDLE)!==n.PLAYING)){clearTimeout(P),P=void 0,Z.style.display="block",W.show(),g=!1}};this.hide=function(){W&&(W.hide(),g=!0)};this.setAlternateClickHandler=function(d){ac=d};this.revertAlternateClickHandler=function(){ac=null};Z=document.createElement("div");Z.id=an.id+"_display";Z.className="jwdisplay";ah=document.createElement("div");ah.className="jwpreview jw"+an.jwGetStretching();Z.appendChild(ah);an.jwAddEventListener(p.JWPLAYER_PLAYER_STATE,ab);an.jwAddEventListener(p.JWPLAYER_PLAYLIST_ITEM,function(){h=!1;aj.error&&aj.error.setText();var d=(X=an.jwGetPlaylist()[an.jwGetPlaylistIndex()])?X.image:"";c=void 0;ad(d)});an.jwAddEventListener(p.JWPLAYER_PLAYLIST_COMPLETE,function(){H=!0;af("replay");var d=an.jwGetPlaylist()[0];ad(d.image)});an.jwAddEventListener(p.JWPLAYER_MEDIA_ERROR,ak);an.jwAddEventListener(p.JWPLAYER_ERROR,ak);an.jwAddEventListener(p.JWPLAYER_PROVIDER_CLICK,al);l?(V=new r.touch(Z),V.addEventListener(r.touchEvents.TAP,al)):Z.addEventListener("click",al,!1);V={font:e.fontweight+" "+e.fontsize+"px/"+(parseInt(e.fontsize,10)+3)+"px Arial, Helvetica, sans-serif",color:e.fontcolor};W=new i.displayicon(Z.id+"_button",an,V,{color:e.overcolor});Z.appendChild(W.element());ab({newstate:n.IDLE})};m(".jwdisplay",{position:"absolute",width:"100%",height:"100%",overflow:"hidden"});m(".jwdisplay "+j,{position:"absolute",width:"100%",height:"100%",background:"#000 no-repeat center",overflow:"hidden",opacity:0});r.transitionStyle(".jwdisplay, .jwdisplay *","opacity .25s, color .25s")})(jwplayer);(function(j){var g=j.utils,b=g.css,l=document,i="none",h="100%";j.html5.displayicon=function(ad,ac,ae,X){function ab(n,m,q,r){var p=l.createElement("div");p.className=n;m&&m.appendChild(p);Z&&aa(p,n,"."+n,q,r);return p}function aa(m,t,q,r,p){var n=T(t);"replayIcon"===t&&!n.src&&(n=T("playIcon"));n.src?(r=g.extend({},r),0<t.indexOf("Icon")&&(D=n.width|0),r.width=n.width,r["background-image"]="url("+n.src+")",r["background-size"]=n.width+"px "+n.height+"px",r["float"]="none",p=g.extend({},p),n.overSrc&&(p["background-image"]="url("+n.overSrc+")"),g.isMobile()||b("#"+ac.id+" .jwdisplay:hover "+q,p),b.style(Z,{display:"table"})):b.style(Z,{display:"none"});r&&b.style(m,r);O=n}function T(n){var m=k.getSkinElement("display",n);n=k.getSkinElement("display",n+"Over");return m?(m.overSrc=n&&n.src?n.src:"",m):{src:"",overSrc:"",width:0,height:0}}function R(){var m=V||0===D;b.style(E,{display:E.innerHTML&&m?"":i});Y=m?30:0;Q()}function Q(){clearTimeout(d);0<Y--&&(d=setTimeout(Q,33));var m="px "+h,n=Math.ceil(Math.max(O.width,g.bounds(Z).width-P.width-e.width)),m={"background-size":[e.width+m,n+m,P.width+m].join(", ")};Z.parentNode&&(m.left=1===Z.parentNode.clientWidth%2?"0.5px":"");b.style(Z,m)}function W(){a=(a+f)%360;g.rotate(N,a)}var k=ac.skin,Z,U,e,P,V,E,N,S={},O,D=0,d=-1,Y=0;this.element=function(){return Z};this.setText=function(n){var m=E.style;E.innerHTML=n?n.replace(":",":\x3cbr\x3e"):"";m.height="0";m.display="block";if(n){for(;2<Math.floor(E.scrollHeight/l.defaultView.getComputedStyle(E,null).lineHeight.replace("px",""));){E.innerHTML=E.innerHTML.replace(/(.*) .*$/,"$1...")}}m.height="";m.display="";R()};this.setIcon=function(n){var m=S[n];m||(m=ab("jwicon"),m.id=Z.id+"_"+n);aa(m,n+"Icon","#"+m.id);Z.contains(N)?Z.replaceChild(m,N):Z.appendChild(m);N=m};var c,f=0,a;this.setRotation=function(n,m){clearInterval(c);a=0;f=n|0;0===f?W():c=setInterval(W,m)};var o=this.hide=function(){Z.style.opacity=0;Z.style.cursor=""};this.show=function(){Z.style.opacity=1;Z.style.cursor="pointer"};Z=ab("jwdisplayIcon");Z.id=ad;U=T("background");e=T("capLeft");P=T("capRight");V=0<e.width*P.width;var H={"background-image":"url("+e.src+"), url("+U.src+"), url("+P.src+")","background-position":"left,center,right","background-repeat":"no-repeat",padding:"0 "+P.width+"px 0 "+e.width+"px",height:U.height,"margin-top":U.height/-2};b("#"+ad,H);g.isMobile()||(U.overSrc&&(H["background-image"]="url("+e.overSrc+"), url("+U.overSrc+"), url("+P.overSrc+")"),b(".jw-tab-focus #"+ad+", #"+ac.id+" .jwdisplay:hover "+("#"+ad),H));E=ab("jwtext",Z,ae,X);N=ab("jwicon",Z);ac.jwAddEventListener(j.events.JWPLAYER_RESIZE,Q);o();R()};b(".jwplayer .jwdisplayIcon",{display:"table",position:"relative","margin-left":"auto","margin-right":"auto",top:"50%","float":"none"});b(".jwplayer .jwdisplayIcon div",{position:"relative",display:"table-cell","vertical-align":"middle","background-repeat":"no-repeat","background-position":"center"});b(".jwplayer .jwdisplayIcon div",{"vertical-align":"middle"},!0);b(".jwplayer .jwdisplayIcon .jwtext",{color:"#fff",padding:"0 1px","max-width":"300px","overflow-y":"hidden","text-align":"center","-webkit-user-select":i,"-moz-user-select":i,"-ms-user-select":i,"user-select":i})})(jwplayer);(function(m){var h=m.html5,b=m.utils,n=b.css,l=b.bounds,j=window.top!==window.self,i=".jwdockbuttons";h.dock=function(R,S){function N(d){return !d||!d.src?{}:{background:"url("+d.src+") center","background-size":d.width+"px "+d.height+"px"}}function Q(p,q){var r=G(p);n(P("."+p),b.extend(N(r),{width:r.width}));return I("div",p,q)}function P(d){return"#"+e+" "+(d?d:"")}function I(p,d,q){p=document.createElement(p);d&&(p.className=d);q&&q.appendChild(p);return p}function G(d){return(d=O.getSkinElement("dock",d))?d:{width:0,height:0,src:""}}function E(){n(i+" .capLeft, "+i+" .capRight",{display:J?"block":"none"})}var M=b.extend({},{iconalpha:0.75,iconalphaactive:0.5,iconalphaover:1,margin:8},S),e=R.id+"_dock",O=R.skin,J=0,c={},D={},L,g,k,H=this;H.redraw=function(){l(L)};H.element=function(){return L};H.offset=function(d){n(P(),{"margin-left":d})};H.hide=function(){H.visible&&(H.visible=!1,L.style.opacity=0,clearTimeout(k),k=setTimeout(function(){L.style.display="none"},250))};H.showTemp=function(){H.visible||(L.style.opacity=0,L.style.display="block")};H.hideTemp=function(){H.visible||(L.style.display="none")};H.show=function(){!H.visible&&J&&(H.visible=!0,L.style.display="block",clearTimeout(k),k=setTimeout(function(){L.style.opacity=1},0))};H.addButton=function(w,u,t,r){if(!c[r]){var B=I("div","divider",g),z=I("div","button",g),y=I("div",null,z);y.id=e+"_"+r;y.innerHTML="\x26nbsp;";n("#"+y.id,{"background-image":w});"string"===typeof t&&(t=new Function(t));b.isMobile()?(new b.touch(z)).addEventListener(b.touchEvents.TAP,function(p){t(p)}):z.addEventListener("click",function(p){t(p);p.preventDefault()});c[r]={element:z,label:u,divider:B,icon:y};if(u){var d=new h.overlay(y.id+"_tooltip",O,!0);w=I("div");w.id=y.id+"_label";w.innerHTML=u;n("#"+w.id,{padding:3});d.setContents(w);if(!b.isMobile()){var q;z.addEventListener("mouseover",function(){clearTimeout(q);var p=D[r],x,v;x=l(c[r].icon);p.offsetX(0);v=l(L);j&&b.isIE()&&R.jwGetFullscreen()?n("#"+p.element().id,{left:100*x.left+50+100*x.width/2}):n("#"+p.element().id,{left:x.left-v.left+x.width/2});x=l(p.element());v.left>x.left&&p.offsetX(v.left-x.left+8);d.show();b.foreach(D,function(C,A){C!==r&&A.hide()})},!1);z.addEventListener("mouseout",function(){q=setTimeout(d.hide,100)},!1);L.appendChild(d.element());D[r]=d}}J++;E()}};H.removeButton=function(p){if(c[p]){g.removeChild(c[p].element);g.removeChild(c[p].divider);var d=document.getElementById(""+e+"_"+p+"_tooltip");d&&L.removeChild(d);delete c[p];J--;E()}};H.numButtons=function(){return J};H.visible=!1;L=I("div","jwdock");g=I("div","jwdockbuttons");L.appendChild(g);L.id=e;var o=G("button"),f=G("buttonOver"),a=G("buttonActive");o&&(n(P(),{height:o.height,padding:M.margin}),n(i,{height:o.height}),n(P("div.button"),b.extend(N(o),{width:o.width,cursor:"pointer",border:"none"})),n(P("div.button:hover"),N(f)),n(P("div.button:active"),N(a)),n(P("div.button\x3ediv"),{opacity:M.iconalpha}),n(P("div.button:hover\x3ediv"),{opacity:M.iconalphaover}),n(P("div.button:active\x3ediv"),{opacity:M.iconalphaactive}),n(P(".jwoverlay"),{top:M.margin+o.height}),Q("capLeft",g),Q("capRight",g),Q("divider"));setTimeout(function(){l(L)})};n(".jwdock",{opacity:0,display:"none"});n(".jwdock \x3e *",{height:"100%","float":"left"});n(".jwdock \x3e .jwoverlay",{height:"auto","float":"none","z-index":99});n(i+" div.button",{position:"relative"});n(i+" \x3e *",{height:"100%","float":"left"});n(i+" .divider",{display:"none"});n(i+" div.button ~ .divider",{display:"block"});n(i+" .capLeft, "+i+" .capRight",{display:"none"});n(i+" .capRight",{"float":"right"});n(i+" div.button \x3e div",{left:0,right:0,top:0,bottom:0,margin:5,position:"absolute","background-position":"center","background-repeat":"no-repeat"});b.transitionStyle(".jwdock","background .25s, opacity .25s");b.transitionStyle(".jwdock .jwoverlay","opacity .25s");b.transitionStyle(i+" div.button div","opacity .25s")})(jwplayer);(function(m){var h=m.html5,b=m.utils,n=m._,l=m.events,j=l.state,i=m.playlist;h.instream=function(al,am,ag,ak){function aj(p){o(p.type,p);N&&al.jwInstreamDestroy(!1,Z)}function ac(p){if(p.newstate!==N.state){switch(N.state=p.newstate,N.state){case j.PLAYING:Z.jwInstreamPlay();break;case j.PAUSED:Z.jwInstreamPause()}}}function aa(p){o(p.type,p);ai()}function Y(p){o(p.type,p)}function af(p){am.sendEvent(p.type,p);o(l.JWPLAYER_FULLSCREEN,{fullscreen:p.jwstate})}function H(){c&&c.releaseState(Z.jwGetState());U.play()}function ai(){if(V&&ab+1<V.length){ab++;var p=V[ab];S=new i.item(p);N.setPlaylist([p]);var q;W&&(q=W[ab]);P=b.extend(ae,q);U.load(N.playlist[0]);k.reset(P.skipoffset||-1);a=setTimeout(function(){o(l.JWPLAYER_PLAYLIST_ITEM,{index:ab},!0)},0)}else{a=setTimeout(function(){o(l.JWPLAYER_PLAYLIST_COMPLETE,{},!0);al.jwInstreamDestroy(!0,Z)},0)}}function ad(p){p.width&&p.height&&(c&&c.releaseState(Z.jwGetState()),ag.resizeMedia())}function o(q,p){p=p||{};ae.tag&&!p.tag&&(p.tag=ae.tag);Z.sendEvent(q,p)}function X(){e&&e.redraw();c&&c.redraw()}var ae={controlbarseekable:"never",controlbarpausable:!0,controlbarstoppable:!0,loadingmessage:"Loading ad",playlistclickable:!0,skipoffset:null,tag:null},S,V,ab=0,W,P={controlbarseekable:"never",controlbarpausable:!1,controlbarstoppable:!1},k,ah,g,E,f,N,U,e,c,d,a=-1,Z=b.extend(this,new l.eventdispatcher);al.jwAddEventListener(l.JWPLAYER_RESIZE,X);al.jwAddEventListener(l.JWPLAYER_FULLSCREEN,function(p){Y(p);N&&(X(),!p.fullscreen&&b.isIPad()&&(N.state===j.PAUSED?c.show(!0):N.state===j.PLAYING&&c.hide()))});Z.init=function(){ah=ak.detachMedia();U=new (m.html5.chooseProvider({}))(am.id);U.addGlobalListener(Y);U.addEventListener(l.JWPLAYER_MEDIA_META,ad);U.addEventListener(l.JWPLAYER_MEDIA_COMPLETE,ai);U.addEventListener(l.JWPLAYER_MEDIA_BUFFER_FULL,H);U.addEventListener(l.JWPLAYER_MEDIA_ERROR,aj);U.addEventListener(l.JWPLAYER_PLAYER_STATE,ac);U.addEventListener(l.JWPLAYER_MEDIA_TIME,function(p){k&&k.updateSkipTime(p.position,p.duration)});U.attachMedia();U.mute(am.mute);U.volume(am.volume);N=new h.model({},U);N.setVolume(am.volume);N.setFullscreen(am.fullscreen);N.setMute(am.mute);N.addEventListener("fullscreenchange",af);f=am.playlist[am.item];g=ah.currentTime;ak.checkBeforePlay()||0===g?(g=0,E=j.PLAYING):E=al.jwGetState()===j.IDLE||am.getVideo().checkComplete()?j.IDLE:j.PLAYING;E===j.PLAYING&&ah.pause();c=new h.display(Z);c.forceState(j.BUFFERING);d=document.createElement("div");d.id=Z.id+"_instream_container";b.css.style(d,{width:"100%",height:"100%"});d.appendChild(c.element());e=new h.controlbar(Z,{fullscreen:am.fullscreen});e.instreamMode(!0);d.appendChild(e.element());al.jwGetControls()?(e.show(),c.show()):(e.hide(),c.hide());ag.setupInstream(d,e,c,N);X();Z.jwInstreamSetText(ae.loadingmessage)};Z.load=function(p,r){if(b.isAndroid(2.3)){aj({type:l.JWPLAYER_ERROR,message:"Error loading instream: Cannot play instream on Android 2.3"})}else{o(l.JWPLAYER_PLAYLIST_ITEM,{index:ab},!0);var q=10+b.bounds(d.parentNode).bottom-b.bounds(e.element()).top;n.isArray(p)&&(r&&(W=r,r=r[ab]),V=p,p=V[ab]);P=b.extend(ae,r);S=new i.item(p);N.setPlaylist([p]);k=new h.adskipbutton(al.id,q,P.skipMessage,P.skipText);k.addEventListener(l.JWPLAYER_AD_SKIPPED,aa);k.reset(P.skipoffset||-1);al.jwGetControls()?k.show():k.hide();q=k.element();d.appendChild(q);N.addEventListener(l.JWPLAYER_ERROR,aj);c.setAlternateClickHandler(function(t){t=t||{};t.hasControls=!!al.jwGetControls();o(l.JWPLAYER_INSTREAM_CLICK,t);N.state===j.PAUSED?t.hasControls&&Z.jwInstreamPlay():Z.jwInstreamPause()});b.isMSIE()&&ah.parentElement.addEventListener("click",c.clickHandler);ag.addEventListener(l.JWPLAYER_AD_SKIPPED,aa);U.load(N.playlist[0])}};Z.jwInstreamDestroy=function(r){if(N){N.removeEventListener("fullscreenchange",af);clearTimeout(a);a=-1;U.detachMedia();ak.attachMedia();if(E!==j.IDLE){var q=b.extend({},f);q.starttime=g;am.getVideo().load(q)}else{am.getVideo().stop()}Z.resetEventListeners();U.resetEventListeners();N.resetEventListeners();if(e){try{e.element().parentNode.removeChild(e.element())}catch(p){}}c&&(ah&&ah.parentElement&&ah.parentElement.removeEventListener("click",c.clickHandler),c.revertAlternateClickHandler());o(l.JWPLAYER_INSTREAM_DESTROYED,{reason:r?"complete":"destroyed"},!0);E===j.PLAYING&&ah.play();ag.destroyInstream(U.isAudioFile());N=null}};Z.jwInstreamAddEventListener=function(q,p){Z.addEventListener(q,p)};Z.jwInstreamRemoveEventListener=function(q,p){Z.removeEventListener(q,p)};Z.jwInstreamPlay=function(){U.play(!0);am.state=j.PLAYING;c.show()};Z.jwInstreamPause=function(){U.pause(!0);am.state=j.PAUSED;al.jwGetControls()&&(c.show(),e.show())};Z.jwInstreamSeek=function(p){U.seek(p)};Z.jwInstreamSetText=function(p){e.setText(p)};Z.jwInstreamState=function(){return N.state};Z.setControls=function(p){p?k.show():k.hide()};Z.jwPlay=function(){"true"===P.controlbarpausable.toString().toLowerCase()&&Z.jwInstreamPlay()};Z.jwPause=function(){"true"===P.controlbarpausable.toString().toLowerCase()&&Z.jwInstreamPause()};Z.jwStop=function(){"true"===P.controlbarstoppable.toString().toLowerCase()&&(al.jwInstreamDestroy(!1,Z),al.jwStop())};Z.jwSeek=function(p){switch(P.controlbarseekable.toLowerCase()){case"always":Z.jwInstreamSeek(p);break;case"backwards":N.position>p&&Z.jwInstreamSeek(p)}};Z.jwSeekDrag=function(p){N.seekDrag(p)};Z.jwGetPosition=function(){};Z.jwGetDuration=function(){};Z.jwGetWidth=al.jwGetWidth;Z.jwGetHeight=al.jwGetHeight;Z.jwGetFullscreen=al.jwGetFullscreen;Z.jwSetFullscreen=al.jwSetFullscreen;Z.jwGetVolume=function(){return am.volume};Z.jwSetVolume=function(p){N.setVolume(p);al.jwSetVolume(p)};Z.jwGetMute=function(){return am.mute};Z.jwSetMute=function(p){N.setMute(p);al.jwSetMute(p)};Z.jwGetState=function(){return !N?j.IDLE:N.state};Z.jwGetPlaylist=function(){return[S]};Z.jwGetPlaylistIndex=function(){return 0};Z.jwGetStretching=function(){return am.config.stretching};Z.jwAddEventListener=function(q,p){Z.addEventListener(q,p)};Z.jwRemoveEventListener=function(q,p){Z.removeEventListener(q,p)};Z.jwSetCurrentQuality=function(){};Z.jwGetQualityLevels=function(){return[]};Z.jwGetControls=function(){return al.jwGetControls()};Z.skin=al.skin;Z.id=al.id+"_instream";return Z}})(window.jwplayer);(function(h){var f=h.utils,b=f.css,i=h.events.state,g=h.html5.logo=function(o,n){function m(j){f.exists(j)&&j.stopPropagation&&j.stopPropagation();if(!v||!k.link){q.jwGetState()===i.IDLE||q.jwGetState()===i.PAUSED?q.jwPlay():q.jwPause()}v&&k.link&&(q.jwPause(),q.jwSetFullscreen(!1),window.open(k.link,k.linktarget))}var q=o,c=q.id+"_logo",k,e,a=g.defaults,v=!1;this.resize=function(){};this.element=function(){return e};this.offset=function(j){b("#"+c+" ",{"margin-bottom":j})};this.position=function(){return k.position};this.margin=function(){return parseInt(k.margin,10)};this.hide=function(j){if(k.hide||j){v=!1,e.style.visibility="hidden",e.style.opacity=0}};this.show=function(){v=!0;e.style.visibility="visible";e.style.opacity=1};var u="o";q.edition&&(u=q.edition(),u="pro"===u?"p":"premium"===u?"r":"ads"===u?"a":"free"===u?"f":"o");if("o"===u||"f"===u){a.link="http://www.longtailvideo.com/jwpabout/?a\x3dl\x26v\x3d"+h.version+"\x26m\x3dh\x26e\x3d"+u}k=f.extend({},a,n);k.hide="true"===k.hide.toString();e=document.createElement("img");e.className="jwlogo";e.id=c;if(k.file){var a=/(\w+)-(\w+)/.exec(k.position),u={},d=k.margin;3===a.length?(u[a[1]]=d,u[a[2]]=d):u.top=u.right=d;b("#"+c+" ",u);e.src=(k.prefix?k.prefix:"")+k.file;f.isMobile()?(new f.touch(e)).addEventListener(f.touchEvents.TAP,m):e.onclick=m}else{e.style.display="none"}return this};g.defaults={prefix:f.repo(),file:"logo.png",linktarget:"_top",margin:8,hide:!1,position:"top-right"};b(".jwlogo",{cursor:"pointer",position:"absolute"})})(jwplayer);(function(f){var e=f.html5,b=f.utils,g=b.css;e.menu=function(C,x,w,v){function F(d){return !d||!d.src?{}:{background:"url("+d.src+") no-repeat left","background-size":d.width+"px "+d.height+"px"}}function i(h,d){return function(){E(h);a&&a(d)}}function q(h,d){var j=document.createElement("div");h&&(j.className=h);d&&d.appendChild(j);return j}function o(d){return(d=w.getSkinElement("tooltip",d))?d:{width:0,height:0,src:void 0}}var a=v,I=new e.overlay(x+"_overlay",w);v=b.extend({fontcase:void 0,fontcolor:"#cccccc",fontsize:11,fontweight:void 0,activecolor:"#ffffff",overcolor:"#ffffff"},w.getComponentSettings("tooltip"));var H,k=[];this.element=function(){return I.element()};this.addOption=function(h,l){var j=q("jwoption",H);j.id=x+"_option_"+l;j.innerHTML=h;b.isMobile()?(new b.touch(j)).addEventListener(b.touchEvents.TAP,i(k.length,l)):j.addEventListener("click",i(k.length,l));k.push(j)};this.clearOptions=function(){for(;0<k.length;){H.removeChild(k.pop())}};var E=this.setActive=function(h){for(var d=0;d<k.length;d++){var j=k[d];j.className=j.className.replace(" active","");d===h&&(j.className+=" active")}};this.show=I.show;this.hide=I.hide;this.offsetX=I.offsetX;this.positionX=I.positionX;this.constrainX=I.constrainX;H=q("jwmenu");H.id=x;var n=o("menuTop"+C);C=o("menuOption");var c=o("menuOptionOver"),D=o("menuOptionActive");if(n&&n.image){var G=new Image;G.src=n.src;G.width=n.width;G.height=n.height;H.appendChild(G)}C&&(n="#"+x+" .jwoption",g(n,b.extend(F(C),{height:C.height,color:v.fontcolor,"padding-left":C.width,font:v.fontweight+" "+v.fontsize+"px Arial,Helvetica,sans-serif","line-height":C.height,"text-transform":"upper"===v.fontcase?"uppercase":void 0})),g(n+":hover",b.extend(F(c),{color:v.overcolor})),g(n+".active",b.extend(F(D),{color:v.activecolor})));I.setContents(H)};g("."+"jwmenu jwoption".replace(/ /g," ."),{cursor:"pointer","white-space":"nowrap",position:"relative"})})(jwplayer);(function(f){var e=f.html5,b=f.utils,g=f.events;e.model=function(q,o){function n(j){var h=w[j.type];if(h&&h.length){for(var t=!1,r=0;r<h.length;r++){var p=h[r].split("-\x3e"),l=p[0],p=p[1]||l;m[p]!==j[l]&&(m[p]=j[l],t=!0)}t&&m.sendEvent(j.type,j)}else{m.sendEvent(j.type,j)}}var m=this,u,c=b.getCookies(),k={controlbar:{},display:{}},i=b.noop,a={autostart:!1,controls:!0,fullscreen:!1,height:320,mobilecontrols:!1,mute:!1,playlist:[],playlistposition:"none",playlistsize:180,playlistlayout:"extended",repeat:!1,stretching:b.stretching.UNIFORM,width:480,volume:90},w={};w[g.JWPLAYER_MEDIA_MUTE]=["mute"];w[g.JWPLAYER_MEDIA_VOLUME]=["volume"];w[g.JWPLAYER_PLAYER_STATE]=["newstate-\x3estate"];w[g.JWPLAYER_MEDIA_BUFFER]=["bufferPercent-\x3ebuffer"];w[g.JWPLAYER_MEDIA_TIME]=["position","duration"];m.setVideoProvider=function(h){if(u){u.removeGlobalListener(n);var j=u.getContainer();j&&(u.remove(),h.setContainer(j))}u=h;u.volume(m.volume);u.mute(m.mute);u.addGlobalListener(n)};m.destroy=function(){u&&(u.removeGlobalListener(n),u.destroy())};m.getVideo=function(){return u};m.seekDrag=function(h){u.seekDrag(h)};m.setFullscreen=function(h){h=!!h;h!==m.fullscreen&&(m.fullscreen=h,m.sendEvent(g.JWPLAYER_FULLSCREEN,{fullscreen:h}))};m.setPlaylist=function(h){m.playlist=f.playlist.filterPlaylist(h,m.androidhls);0===m.playlist.length?m.sendEvent(g.JWPLAYER_ERROR,{message:"Error loading playlist: No playable sources found"}):(m.sendEvent(g.JWPLAYER_PLAYLIST_LOADED,{playlist:f(m.id).getPlaylist()}),m.item=-1,m.setItem(0))};m.setItem=function(j){var h=!1;j===m.playlist.length||-1>j?(j=0,h=!0):j=-1===j||j>m.playlist.length?m.playlist.length-1:j;if(h||j!==m.item){m.item=j,m.sendEvent(g.JWPLAYER_PLAYLIST_ITEM,{index:m.item}),h=m.playlist[j],j=e.chooseProvider(h&&h.sources&&h.sources[0]),i instanceof j||(i=o||new j(m.id),m.setVideoProvider(i)),i.init&&i.init(h)}};m.setVolume=function(h){m.mute&&0<h&&m.setMute(!1);h=Math.round(h);m.mute||b.saveCookie("volume",h);n({type:g.JWPLAYER_MEDIA_VOLUME,volume:h});u.volume(h)};m.setMute=function(h){b.exists(h)||(h=!m.mute);b.saveCookie("mute",h);n({type:g.JWPLAYER_MEDIA_MUTE,mute:h});u.mute(h)};m.componentConfig=function(h){return k[h]};b.extend(m,new g.eventdispatcher);var v=m,d=b.extend({},a,c,q);b.foreach(d,function(h,j){d[h]=b.serialize(j)});v.config=d;b.extend(m,{id:q.id,state:g.state.IDLE,duration:-1,position:0,buffer:0},m.config);m.playlist=[];m.setItem(0)}})(jwplayer);(function(o){var i=o.utils,r=i.css,p=i.transitionStyle,n="top",m="bottom",l="right",j="left",q={fontcase:void 0,fontcolor:"#ffffff",fontsize:12,fontweight:void 0,activecolor:"#ffffff",overcolor:"#ffffff"};o.html5.overlay=function(E,x,k){function a(c){return"#"+f+(c?" ."+c:"")}function M(t,d){var u=document.createElement("div");t&&(u.className=t);d&&d.appendChild(u);return u}function L(t,w){var v;v=(v=D.getSkinElement("tooltip",t))?v:{width:0,height:0,src:"",image:void 0,ready:!1};var u=M(w,e);r.style(u,g(v));return[u,v]}function g(c){return{background:"url("+c.src+") center","background-size":c.width+"px "+c.height+"px"}}function G(u,y){y||(y="");var w=L("cap"+u+y,"jwborder jw"+u+(y?y:"")),v=w[0],w=w[1],t=i.extend(g(w),{width:u===j||y===j||u===l||y===l?w.width:void 0,height:u===n||y===n||u===m||y===m?w.height:void 0});t[u]=u===m&&!J||u===n&&J?I.height:0;y&&(t[y]=0);r.style(v,t);v={};t={};w={left:w.width,right:w.width,top:(J?I.height:0)+w.height,bottom:(J?0:I.height)+w.height};y&&(v[y]=w[y],v[u]=0,t[u]=w[u],t[y]=0,r(a("jw"+u),v),r(a("jw"+y),t),K[u]=w[u],K[y]=w[y])}var h=this,f=E,D=x,J=k,e,H,I,b;E=i.extend({},q,D.getComponentSettings("tooltip"));var K={};h.element=function(){return e};h.setContents=function(c){i.empty(H);H.appendChild(c)};h.positionX=function(c){r.style(e,{left:Math.round(c)})};h.constrainX=function(t,v){if(h.showing&&0!==t.width&&h.offsetX(0)){v&&r.unblock();var u=i.bounds(e);0!==u.width&&(u.right>t.right?h.offsetX(t.right-u.right):u.left<t.left&&h.offsetX(t.left-u.left))}};h.offsetX=function(d){d=Math.round(d);var t=e.clientWidth;0!==t&&(r.style(e,{"margin-left":Math.round(-t/2)+d}),r.style(b,{"margin-left":Math.round(-I.width/2)-d}));return t};h.borderWidth=function(){return K.left};h.show=function(){h.showing=!0;r.style(e,{opacity:1,visibility:"visible"})};h.hide=function(){h.showing=!1;r.style(e,{opacity:0,visibility:"hidden"})};e=M(".jwoverlay".replace(".",""));e.id=f;x=L("arrow","jwarrow");b=x[0];I=x[1];r.style(b,{position:"absolute",bottom:J?void 0:0,top:J?0:void 0,width:I.width,height:I.height,left:"50%"});G(n,j);G(m,j);G(n,l);G(m,l);G(j);G(l);G(n);G(m);x=L("background","jwback");r.style(x[0],{left:K.left,right:K.right,top:K.top,bottom:K.bottom});H=M("jwcontents",e);r(a("jwcontents")+" *",{color:E.fontcolor,font:E.fontweight+" "+E.fontsize+"px Arial,Helvetica,sans-serif","text-transform":"upper"===E.fontcase?"uppercase":void 0});J&&i.transform(a("jwarrow"),"rotate(180deg)");r.style(e,{padding:K.top+1+"px "+K.right+"px "+(K.bottom+1)+"px "+K.left+"px"});h.showing=!1};r(".jwoverlay",{position:"absolute",visibility:"hidden",opacity:0});r(".jwoverlay .jwcontents",{position:"relative","z-index":1});r(".jwoverlay .jwborder",{position:"absolute","background-size":"100% 100%"},!0);r(".jwoverlay .jwback",{position:"absolute","background-size":"100% 100%"});p(".jwoverlay","opacity .25s, visibility .25s")})(jwplayer);(function(e){var c=e.html5,b=e.utils;c.player=function(t){function q(){for(var g=d.playlist,f=[],h=0;h<g.length;h++){f.push(o(g[h]))}return f}function o(f){var g={description:f.description,file:f.file,image:f.image,mediaid:f.mediaid,title:f.title};b.foreach(f,function(j,h){g[j]=h});g.sources=[];g.tracks=[];0<f.sources.length&&b.foreach(f.sources,function(j,h){g.sources.push({file:h.file,type:h.type?h.type:void 0,label:h.label,"default":h["default"]?!0:!1})});0<f.tracks.length&&b.foreach(f.tracks,function(j,h){g.tracks.push({file:h.file,kind:h.kind?h.kind:void 0,label:h.label,"default":h["default"]?!0:!1})});!f.file&&0<f.sources.length&&(g.file=f.sources[0].file);return g}function n(){u.jwPlay=i.play;u.jwPause=i.pause;u.jwStop=i.stop;u.jwSeek=i.seek;u.jwSetVolume=i.setVolume;u.jwSetMute=i.setMute;u.jwLoad=i.load;u.jwPlaylistNext=i.next;u.jwPlaylistPrev=i.prev;u.jwPlaylistItem=i.item;u.jwSetFullscreen=i.setFullscreen;u.jwResize=k.resize;u.jwSeekDrag=d.seekDrag;u.jwGetQualityLevels=i.getQualityLevels;u.jwGetCurrentQuality=i.getCurrentQuality;u.jwSetCurrentQuality=i.setCurrentQuality;u.jwGetAudioTracks=i.getAudioTracks;u.jwGetCurrentAudioTrack=i.getCurrentAudioTrack;u.jwSetCurrentAudioTrack=i.setCurrentAudioTrack;u.jwGetCaptionsList=i.getCaptionsList;u.jwGetCurrentCaptions=i.getCurrentCaptions;u.jwSetCurrentCaptions=i.setCurrentCaptions;u.jwGetSafeRegion=k.getSafeRegion;u.jwForceState=k.forceState;u.jwReleaseState=k.releaseState;u.jwGetPlaylistIndex=m("item");u.jwGetPosition=m("position");u.jwGetDuration=m("duration");u.jwGetBuffer=m("buffer");u.jwGetWidth=m("width");u.jwGetHeight=m("height");u.jwGetFullscreen=m("fullscreen");u.jwGetVolume=m("volume");u.jwGetMute=m("mute");u.jwGetState=m("state");u.jwGetStretching=m("stretching");u.jwGetPlaylist=q;u.jwGetControls=m("controls");u.jwDetachMedia=i.detachMedia;u.jwAttachMedia=i.attachMedia;u.jwPlayAd=function(f){var g=e(u.id).plugins;g.vast&&g.vast.jwPlayAd(f)};u.jwPauseAd=function(){var f=e(u.id).plugins;f.googima&&f.googima.jwPauseAd()};u.jwDestroyGoogima=function(){var f=e(u.id).plugins;f.googima&&f.googima.jwDestroyGoogima()};u.jwInitInstream=function(){u.jwInstreamDestroy();v=new c.instream(u,d,k,i);v.init()};u.jwLoadItemInstream=function(g,f){if(!v){throw"Instream player undefined"}v.load(g,f)};u.jwLoadArrayInstream=function(g,f){if(!v){throw"Instream player undefined"}v.load(g,f)};u.jwSetControls=function(f){k.setControls(f);v&&v.setControls(f)};u.jwInstreamPlay=function(){v&&v.jwInstreamPlay()};u.jwInstreamPause=function(){v&&v.jwInstreamPause()};u.jwInstreamState=function(){return v?v.jwInstreamState():""};u.jwInstreamDestroy=function(g,f){if(f=f||v){f.jwInstreamDestroy(g||!1),f===v&&(v=void 0)}};u.jwInstreamAddEventListener=function(g,f){v&&v.jwInstreamAddEventListener(g,f)};u.jwInstreamRemoveEventListener=function(g,f){v&&v.jwInstreamRemoveEventListener(g,f)};u.jwPlayerDestroy=function(){k&&k.destroy();d&&d.destroy();a&&a.resetEventListeners()};u.jwInstreamSetText=function(f){v&&v.jwInstreamSetText(f)};u.jwIsBeforePlay=function(){return i.checkBeforePlay()};u.jwIsBeforeComplete=function(){return d.getVideo().checkComplete()};u.jwSetCues=k.addCues;u.jwAddEventListener=i.addEventListener;u.jwRemoveEventListener=i.removeEventListener;u.jwDockAddButton=k.addButton;u.jwDockRemoveButton=k.removeButton}function m(f){return function(){return d[f]}}var u=this,d,k,i,a,v;d=new c.model(t);u.id=d.id;u._model=d;b.css.block(u.id);k=new c.view(u,d);i=new c.controller(d,k);n();u.initializeAPI=n;a=new c.setup(d,k);a.addEventListener(e.events.JWPLAYER_READY,function(f){i.playerReady(f);b.css.unblock(u.id)});a.addEventListener(e.events.JWPLAYER_ERROR,function(f){b.css.unblock(u.id);e(u.id).dispatchEvent(e.events.JWPLAYER_SETUP_ERROR,f)});a.start()}})(window.jwplayer);(function(m){var h={size:180,backgroundcolor:"#333333",fontcolor:"#999999",overcolor:"#CCCCCC",activecolor:"#CCCCCC",titlecolor:"#CCCCCC",titleovercolor:"#FFFFFF",titleactivecolor:"#FFFFFF",fontweight:"normal",titleweight:"normal",fontsize:11,titlesize:13},b=m.html5,n=m.events,l=m.utils,j=l.css,i=l.isMobile();b.playlistcomponent=function(S,T){function N(d){return"#"+M.id+(d?" ."+d:"")}function R(p,d){var q=document.createElement(p);d&&(q.className=d);return q}function Q(d){return function(){D=d;I.jwPlaylistItem(d);I.jwPlay(!0)}}var I=S,G=I.skin,E=l.extend({},h,I.skin.getComponentSettings("playlist"),T),M,e,P,J,c=-1,D,L,g=76,k={background:void 0,divider:void 0,item:void 0,itemOver:void 0,itemImage:void 0,itemActive:void 0},H,o=this;o.element=function(){return M};o.redraw=function(){L&&L.redraw()};o.show=function(){l.show(M)};o.hide=function(){l.hide(M)};M=R("div","jwplaylist");M.id=I.id+"_jwplayer_playlistcomponent";H="basic"===I._model.playlistlayout;e=R("div","jwlistcontainer");M.appendChild(e);l.foreach(k,function(d){k[d]=G.getSkinElement("playlist",d)});H&&(g=32);k.divider&&(g+=k.divider.height);var f=0,a=0,O=0;l.clearCss(N());j(N(),{"background-color":E.backgroundcolor});j(N("jwlist"),{"background-image":k.background?" url("+k.background.src+")":""});j(N("jwlist *"),{color:E.fontcolor,font:E.fontweight+" "+E.fontsize+"px Arial, Helvetica, sans-serif"});k.itemImage?(f=(g-k.itemImage.height)/2+"px ",a=k.itemImage.width,O=k.itemImage.height):(a=4*g/3,O=g);k.divider&&j(N("jwplaylistdivider"),{"background-image":"url("+k.divider.src+")","background-size":"100% "+k.divider.height+"px",width:"100%",height:k.divider.height});j(N("jwplaylistimg"),{height:O,width:a,margin:f?f+"0 "+f+f:"0 5px 0 0"});j(N("jwlist li"),{"background-image":k.item?"url("+k.item.src+")":"",height:g,overflow:"hidden","background-size":"100% "+g+"px",cursor:"pointer"});f={overflow:"hidden"};""!==E.activecolor&&(f.color=E.activecolor);k.itemActive&&(f["background-image"]="url("+k.itemActive.src+")");j(N("jwlist li.active"),f);j(N("jwlist li.active .jwtitle"),{color:E.titleactivecolor});j(N("jwlist li.active .jwdescription"),{color:E.activecolor});f={overflow:"hidden"};""!==E.overcolor&&(f.color=E.overcolor);k.itemOver&&(f["background-image"]="url("+k.itemOver.src+")");i||(j(N("jwlist li:hover"),f),j(N("jwlist li:hover .jwtitle"),{color:E.titleovercolor}),j(N("jwlist li:hover .jwdescription"),{color:E.overcolor}));j(N("jwtextwrapper"),{height:g,position:"relative"});j(N("jwtitle"),{overflow:"hidden",display:"inline-block",height:H?g:20,color:E.titlecolor,"font-size":E.titlesize,"font-weight":E.titleweight,"margin-top":H?"0 10px":10,"margin-left":10,"margin-right":10,"line-height":H?g:20});j(N("jwdescription"),{display:"block","font-size":E.fontsize,"line-height":18,"margin-left":10,"margin-right":10,overflow:"hidden",height:36,position:"relative"});I.jwAddEventListener(n.JWPLAYER_PLAYLIST_LOADED,function(){e.innerHTML="";for(var p=I.jwGetPlaylist(),u=[],t=0;t<p.length;t++){p[t]["ova.hidden"]||u.push(p[t])}if(P=u){p=R("ul","jwlist");p.id=M.id+"_ul"+Math.round(10000000*Math.random());J=p;for(p=0;p<P.length;p++){var r=p,u=P[r],t=R("li","jwitem"),q=void 0;t.id=J.id+"_item_"+r;0<r?(q=R("div","jwplaylistdivider"),t.appendChild(q)):(r=k.divider?k.divider.height:0,t.style.height=g-r+"px",t.style["background-size"]="100% "+(g-r)+"px");r=R("div","jwplaylistimg jwfill");q=void 0;u["playlist.image"]&&k.itemImage?q=u["playlist.image"]:u.image&&k.itemImage?q=u.image:k.itemImage&&(q=k.itemImage.src);q&&!H&&(j("#"+t.id+" .jwplaylistimg",{"background-image":q}),t.appendChild(r));r=R("div","jwtextwrapper");q=R("span","jwtitle");q.innerHTML=u&&u.title?u.title:"";r.appendChild(q);u.description&&!H&&(q=R("span","jwdescription"),q.innerHTML=u.description,r.appendChild(q));t.appendChild(r);u=t;i?(new l.touch(u)).addEventListener(l.touchEvents.TAP,Q(p)):u.onclick=Q(p);J.appendChild(u)}c=I.jwGetPlaylistIndex();e.appendChild(J);L=new b.playlistslider(M.id+"_slider",I.skin,M,J)}});I.jwAddEventListener(n.JWPLAYER_PLAYLIST_ITEM,function(d){0<=c&&(document.getElementById(J.id+"_item_"+c).className="jwitem",c=d.index);document.getElementById(J.id+"_item_"+d.index).className="jwitem active";d=I.jwGetPlaylistIndex();d!==D&&(D=-1,L&&L.visible()&&L.thumbPosition(d/(I.jwGetPlaylist().length-1)))});I.jwAddEventListener(n.JWPLAYER_RESIZE,function(){o.redraw()});return this};j(".jwplaylist",{position:"absolute",width:"100%",height:"100%"});l.dragStyle(".jwplaylist","none");j(".jwplaylist .jwplaylistimg",{position:"relative",width:"100%","float":"left",margin:"0 5px 0 0",background:"#000",overflow:"hidden"});j(".jwplaylist .jwlist",{position:"absolute",width:"100%","list-style":"none",margin:0,padding:0,overflow:"hidden"});j(".jwplaylist .jwlistcontainer",{position:"absolute",overflow:"hidden",width:"100%",height:"100%"});j(".jwplaylist .jwlist li",{width:"100%"});j(".jwplaylist .jwtextwrapper",{overflow:"hidden"});j(".jwplaylist .jwplaylistdivider",{position:"absolute"});i&&l.transitionStyle(".jwplaylist .jwlist","top .35s")})(jwplayer);(function(m){function h(){var d=[],c;for(c=0;c<arguments.length;c++){d.push(".jwplaylist ."+arguments[c])}return d.join(",")}var b=jwplayer.utils,n=b.touchEvents,l=b.css,j=document,i=window;m.playlistslider=function(ap,aq,an,ao){function am(d){return"#"+W.id+(d?" ."+d:"")}function ag(q,k,u,t){var r=j.createElement("div");q&&(r.className=q,k&&l(am(q),{"background-image":k.src?k.src:void 0,"background-repeat":t?"repeat-y":"no-repeat",height:t?void 0:k.height}));u&&u.appendChild(r);return r}function ae(d){return(d=ab.getSkinElement("playlist",d))?d:{width:0,height:0,src:void 0}}function ac(d){if(p){return d=d?d:i.event,ar(V-(d.detail?-1*d.detail:d.wheelDelta/40)/10),d.stopPropagation&&d.stopPropagation(),d.preventDefault?d.preventDefault():d.returnValue=!1,d.cancelBubble=!0,d.cancel=!0,!1}}function aj(d){0==d.button&&(Z=!0);j.onselectstart=function(){return !1};i.addEventListener("mousemove",al,!1);i.addEventListener("mouseup",H,!1)}function P(d){ar(V-2*d.deltaY/ai.clientHeight)}function al(k){if(Z||"click"==k.type){var r=b.bounds(Y),q=af.clientHeight/2;ar((k.pageY-r.top-q)/(r.height-q-q))}}function ah(d){return function(k){0<k.button||(ar(V+0.05*d),E=setTimeout(function(){ak=setInterval(function(){ar(V+0.05*d)},50)},500))}}function H(){Z=!1;i.removeEventListener("mousemove",al);i.removeEventListener("mouseup",H);j.onselectstart=void 0;clearTimeout(E);clearInterval(ak)}var ab=aq,ai=ao,W,Y,af,Z,V=0,E,ak;aq=b.isMobile();var p=!0,N,o,S,X,g,e,f,c,ad;this.element=function(){return W};this.visible=function(){return p};var a=this.redraw=function(){clearTimeout(ad);ad=setTimeout(function(){if(ai&&ai.clientHeight){var d=ai.parentNode.clientHeight/ai.clientHeight;0>d&&(d=0);1<d?p=!1:(p=!0,l(am("jwthumb"),{height:Math.max(Y.clientHeight*d,g.height+e.height)}));l(am(),{visibility:p?"visible":"hidden"});ai&&(ai.style.width=p?ai.parentElement.clientWidth-S.width+"px":"")}else{ad=setTimeout(a,10)}},0)},ar=this.thumbPosition=function(d){isNaN(d)&&(d=0);V=Math.max(0,Math.min(1,d));l(am("jwthumb"),{top:f+(Y.clientHeight-af.clientHeight)*V});ao&&(ao.style.top=Math.min(0,W.clientHeight-ao.scrollHeight)*V+"px")};W=ag("jwslider",null,an);W.id=ap;ap=new b.touch(ai);aq?ap.addEventListener(n.DRAG,P):(W.addEventListener("mousedown",aj,!1),W.addEventListener("click",al,!1));N=ae("sliderCapTop");o=ae("sliderCapBottom");S=ae("sliderRail");ap=ae("sliderRailCapTop");an=ae("sliderRailCapBottom");X=ae("sliderThumb");g=ae("sliderThumbCapTop");e=ae("sliderThumbCapBottom");f=N.height;c=o.height;l(am(),{width:S.width});l(am("jwrail"),{top:f,bottom:c});l(am("jwthumb"),{top:f});N=ag("jwslidertop",N,W);o=ag("jwsliderbottom",o,W);Y=ag("jwrail",null,W);af=ag("jwthumb",null,W);aq||(N.addEventListener("mousedown",ah(-1),!1),o.addEventListener("mousedown",ah(1),!1));ag("jwrailtop",ap,Y);ag("jwrailback",S,Y,!0);ag("jwrailbottom",an,Y);l(am("jwrailback"),{top:ap.height,bottom:an.height});ag("jwthumbtop",g,af);ag("jwthumbback",X,af,!0);ag("jwthumbbottom",e,af);l(am("jwthumbback"),{top:g.height,bottom:e.height});a();ai&&!aq&&(ai.addEventListener("mousewheel",ac,!1),ai.addEventListener("DOMMouseScroll",ac,!1));return this};l(h("jwslider"),{position:"absolute",height:"100%",visibility:"hidden",right:0,top:0,cursor:"pointer","z-index":1,overflow:"hidden"});l(h("jwslider")+" *",{position:"absolute",width:"100%","background-position":"center","background-size":"100% 100%",overflow:"hidden"});l(h("jwslidertop","jwrailtop","jwthumbtop"),{top:0});l(h("jwsliderbottom","jwrailbottom","jwthumbbottom"),{bottom:0})})(jwplayer.html5);(function(h){var f=jwplayer.utils,b=f.css,i=document,g="none";h.rightclick=function(q,n){function m(l){var j=i.createElement("div");j.className=l.replace(".","");return j}function o(){e||(c.style.display=g)}var d,k=f.extend({aboutlink:"http://www.longtailvideo.com/jwpabout/?a\x3dr\x26v\x3d"+h.version+"\x26m\x3dh\x26e\x3do",abouttext:"About JW Player "+h.version+"..."},n),e=!1,c,t;this.element=function(){return c};this.destroy=function(){i.removeEventListener("mousedown",o,!1)};d=i.getElementById(q.id);c=m(".jwclick");c.id=q.id+"_menu";c.style.display=g;d.oncontextmenu=function(l){var j,p;e||(l=l||window.event,j=l.target||l.srcElement,p=f.bounds(d),j=f.bounds(j),c.style.display=g,c.style.left=(l.offsetX?l.offsetX:l.layerX)+j.left-p.left+"px",c.style.top=(l.offsetY?l.offsetY:l.layerY)+j.top-p.top+"px",c.style.display="block",l.preventDefault())};c.onmouseover=function(){e=!0};c.onmouseout=function(){e=!1};i.addEventListener("mousedown",o,!1);t=m(".jwclick_item");t.innerHTML=k.abouttext;t.onclick=function(){window.top.location=k.aboutlink};c.appendChild(t);d.appendChild(c)};b(".jwclick",{"background-color":"#FFF","-webkit-border-radius":5,"-moz-border-radius":5,"border-radius":5,height:"auto",border:"1px solid #bcbcbc","font-family":"'MS Sans Serif', 'Geneva', sans-serif","font-size":10,width:320,"-webkit-box-shadow":"5px 5px 7px rgba(0,0,0,.10), 0px 1px 0px rgba(255,255,255,.3) inset","-moz-box-shadow":"5px 5px 7px rgba(0,0,0,.10), 0px 1px 0px rgba(255,255,255,.3) inset","box-shadow":"5px 5px 7px rgba(0,0,0,.10), 0px 1px 0px rgba(255,255,255,.3) inset",position:"absolute","z-index":999},!0);b(".jwclick div",{padding:"8px 21px",margin:"0px","background-color":"#FFF",border:"none","font-family":"'MS Sans Serif', 'Geneva', sans-serif","font-size":10,color:"inherit"},!0);b(".jwclick_item",{padding:"8px 21px","text-align":"left",cursor:"pointer"},!0);b(".jwclick_item:hover",{"background-color":"#595959",color:"#FFF"},!0);b(".jwclick_item a",{"text-decoration":g,color:"#000"},!0);b(".jwclick hr",{width:"100%",padding:0,margin:0,border:"1px #e9e9e9 solid"},!0)})(jwplayer.html5);(function(j){var g=j.html5,b=j.utils,l=j.events,i=2,h=4;g.setup=function(q,o){function x(){for(var m=0;m<v.length;m++){var u=v[m],t;m:{if(t=u.depends){t=t.toString().split(",");for(var r=0;r<t.length;r++){if(!D[t[r]]){t=!1;break m}}}t=!0}if(t){v.splice(m,1);try{u.method(),x()}catch(p){a(p.message)}return}}0<v.length&&!f&&setTimeout(x,500)}function d(){D[i]=!0}function n(m){a("Error loading skin: "+m)}function k(){c&&(c.onload=null,c=c.onerror=null);clearTimeout(C);D[h]=!0}function a(m){f=!0;w.sendEvent(l.JWPLAYER_ERROR,{message:m});E.setupError(m)}var E=o,D={},e,w=new l.eventdispatcher,f=!1,c,v=[{name:1,method:function(){q.edition&&"invalid"===q.edition()?a("Error setting up player: Invalid license key"):D[1]=!0},depends:!1},{name:i,method:function(){e=new g.skin;e.load(q.config.skin,d,n)},depends:1},{name:3,method:function(){var m=b.typeOf(q.config.playlist);"array"===m?(m=new j.playlist(q.config.playlist),q.setPlaylist(m),0===q.playlist.length||0===q.playlist[0].sources.length?a("Error loading playlist: No playable sources found"):D[3]=!0):a("Playlist type not supported: "+m)},depends:1},{name:h,method:function(){var m=q.playlist[q.item].image;m&&!q.config.autostart?(c=new Image,c.onload=k,c.onerror=k,c.src=m,clearTimeout(C),C=setTimeout(k,500)):k()},depends:3},{name:5,method:function(){E.setup(e);D[5]=!0},depends:h+","+i},{name:6,method:function(){D[6]=!0},depends:"5,3"},{name:7,method:function(){w.sendEvent(l.JWPLAYER_READY);D[7]=!0},depends:6}],C=-1;b.extend(this,w);this.start=x}})(jwplayer);(function(a){a.skin=function(){var c={},b=!1;this.load=function(h,g,d){new a.skinloader(h,function(e){b=!0;c=e;"function"==typeof g&&g()},function(e){"function"==typeof d&&d(e)})};this.getSkinElement=function(h,g){h=h.toLowerCase();g=g.toLowerCase();if(b){try{return c[h].elements[g]}catch(e){jwplayer.utils.log("No such skin component / element: ",[h,g])}}return null};this.getComponentSettings=function(d){d=d.toLowerCase();return b&&c&&c[d]?c[d].settings:null};this.getComponentLayout=function(f){f=f.toLowerCase();if(b){var e=c[f].layout;if(e&&(e.left||e.right||e.center)){return c[f].layout}}return null}}})(jwplayer.html5);(function(f){var e=jwplayer.utils,b=e.foreach,g="Skin formatting error";f.skinloader=function(I,H,G){function F(h){k=h;e.ajax(e.getAbsolutePath(v),function(l){try{e.exists(l.responseXML)&&x(l.responseXML)}catch(j){w(g)}},function(j){w(j)})}function J(j,h){return j?j.getElementsByTagName(h):null}function x(L){var K=J(L,"skin")[0];L=J(K,"component");var A=K.getAttribute("target"),K=parseFloat(K.getAttribute("pixelratio"));0<K&&(o=K);e.versionCheck(A)||w("Incompatible player version");if(0===L.length){i(k)}else{for(A=0;A<L.length;A++){var y=n(L[A].getAttribute("name")),K={settings:{},elements:{},layout:{}},t=J(J(L[A],"elements")[0],"element");k[y]=K;for(var r=0;r<t.length;r++){D(t[r],y)}if((y=J(L[A],"settings")[0])&&0<y.childNodes.length){y=J(y,"setting");for(t=0;t<y.length;t++){var r=y[t].getAttribute("name"),q=y[t].getAttribute("value");/color$/.test(r)&&(q=e.stringToColor(q));K.settings[n(r)]=q}}if((y=J(L[A],"layout")[0])&&0<y.childNodes.length){y=J(y,"group");for(t=0;t<y.length;t++){q=y[t];r={elements:[]};K.layout[n(q.getAttribute("position"))]=r;for(var l=0;l<q.attributes.length;l++){var j=q.attributes[l];r[j.name]=j.value}q=J(q,"*");for(l=0;l<q.length;l++){j=q[l];r.elements.push({type:j.tagName});for(var M=0;M<j.attributes.length;M++){var B=j.attributes[M];r.elements[l][n(B.name)]=B.value}e.exists(r.elements[l].name)||(r.elements[l].name=j.tagName)}}}c=!1;E()}}}function E(){clearInterval(C);a||(C=setInterval(function(){var h=!0;b(k,function(l,j){"properties"!=l&&b(j.elements,function(m){(k[n(l)]?k[n(l)].elements[n(m)]:null).ready||(h=!1)})});h&&!c&&(clearInterval(C),i(k))},100))}function D(j,h){h=n(h);var q=new Image,p=n(j.getAttribute("name")),m=j.getAttribute("src");if(0!==m.indexOf("data:image/png;base64,")){var l=e.getAbsolutePath(v),m=[l.substr(0,l.lastIndexOf("/")),h,m].join("/")}k[h].elements[p]={height:0,width:0,src:"",ready:!1,image:q};q.onload=function(){var r=h,t=k[n(r)]?k[n(r)].elements[n(p)]:null;t?(t.height=Math.round(q.height/o*d),t.width=Math.round(q.width/o*d),t.src=q.src,t.ready=!0,E()):e.log("Loaded an image for a missing element: "+r+"."+p)};q.onerror=function(){a=!0;E();w("Skin image not found: "+this.src)};q.src=m}function n(h){return h?h.toLowerCase():""}var k={},i=H,w=G,c=!0,C,v=I,a=!1,d=(jwplayer.utils.isMobile(),1),o=1;"string"!=typeof v||""===v?x(f.defaultskin()):"xml"!=e.extension(v)?w("Skin not a valid file type"):new f.skinloader("",F,w)}})(jwplayer.html5);(function(f){var e=f.utils,b=f.events,g=e.css;f.html5.thumbs=function(q){function o(j){i=null;try{j=(new f.parsers.srt).parse(j.responseText,!0)}catch(h){n(h.message);return}if("array"!==e.typeOf(j)){return n("Invalid data")}c=j}function n(h){i=null;e.log("Thumbnails could not be loaded: "+h)}function m(h,l,j){h.onload=null;l.width||(l.width=h.width,l.height=h.height);l["background-image"]=h.src;g.style(u,l);j&&j(l.width)}var u,c,k,i,a,w={},v,d=new b.eventdispatcher;e.extend(this,d);u=document.createElement("div");u.id=q;this.load=function(h){g.style(u,{display:"none"});i&&(i.onload=null,i.onreadystatechange=null,i.onerror=null,i.abort&&i.abort(),i=null);v&&(v.onload=null);h?(k=h.split("?")[0].split("/").slice(0,-1).join("/"),i=e.ajax(h,o,n,!0)):(c=a=v=null,w={})};this.element=function(){return u};this.updateTimeline=function(p,h){if(c){for(var z=0;z<c.length&&p>c[z].end;){z++}z===c.length&&z--;z=c[z].text;p:{var y=z;if(y&&y!==a){a=y;0>y.indexOf("://")&&(y=k?k+"/"+y:y);var x={display:"block",margin:"0 auto","background-position":"0 0",width:0,height:0};if(0<y.indexOf("#xywh")){try{var t=/(.+)\#xywh=(\d+),(\d+),(\d+),(\d+)/.exec(y),y=t[1];x["background-position"]=-1*t[2]+"px "+-1*t[3]+"px";x.width=t[4];x.height=t[5]}catch(r){n("Could not parse thumbnail");break p}}var j=w[y];j?m(j,x,h):(j=new Image,j.onload=function(){m(j,x,h)},w[y]=j,j.src=y);v&&(v.onload=null);v=j}}return z}}}})(jwplayer);(function(z){var q=z.jwplayer,D=q.html5,B=q.utils,y=q.events,x=y.state,w=B.css,v=B.bounds,C=B.isMobile(),m=B.isIPad(),u=B.isIPod(),o="aspectMode",i=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],F="hidden",E="none",n="block";D.view=function(af,ap){function a0(G){G=B.between(ap.position+G,0,this.getDuration());this.seek(G)}function ae(G){G=B.between(this.getVolume()+G,0,100);this.setVolume(G)}function ak(H){var G;G=H.ctrlKey||H.metaKey?!1:ap.controls?!0:!1;if(!G){return !0}aK.adMode()||(ao(),aM());G=q(af.id);switch(H.keyCode){case 27:G.setFullscreen(!1);break;case 13:case 32:G.play();break;case 37:aK.adMode()||a0.call(G,-5);break;case 39:aK.adMode()||a0.call(G,5);break;case 38:ae.call(G,10);break;case 40:ae.call(G,-10);break;case 77:G.setMute();break;case 70:G.setFullscreen();break;default:if(48<=H.keyCode&&59>=H.keyCode){var I=(H.keyCode-48)/10*G.getDuration();G.seek(I)}}if(/13|32|37|38|39|40/.test(H.keyCode)){return H.preventDefault(),!1}}function al(){a=!0;ac.sendEvent(y.JWPLAYER_VIEW_TAB_FOCUS,{hasFocus:!1})}function ai(){var G=!a;a=!1;G&&ac.sendEvent(y.JWPLAYER_VIEW_TAB_FOCUS,{hasFocus:!0});aK.adMode()||(ao(),aM())}function aj(){a=!1;ac.sendEvent(y.JWPLAYER_VIEW_TAB_FOCUS,{hasFocus:!1})}function aY(){var G=v(aH),I=Math.round(G.width),H=Math.round(G.height);if(document.body.contains(aH)){if(I&&H&&(I!==aZ||H!==au)){aZ=I,au=H,az&&az.redraw(),clearTimeout(l),l=setTimeout(aX,50),ac.sendEvent(y.JWPLAYER_RESIZE,{width:I,height:H})}}else{z.removeEventListener("resize",aY),C&&z.removeEventListener("orientationchange",aY)}return G}function aU(G){G&&(G.element().addEventListener("mousemove",aL,!1),G.element().addEventListener("mouseout",aQ,!1))}function ag(){}function aN(){clearTimeout(bc);bc=setTimeout(a3,k)}function an(H,G){var I=document.createElement(H);G&&(I.className=G);return I}function aM(){clearTimeout(bc);bc=setTimeout(a3,k)}function aO(){clearTimeout(bc);var G=af.jwGetState();if(G===x.PLAYING||G===x.PAUSED||aD){aR(),a9||(bc=setTimeout(a3,k))}}function aL(){clearTimeout(bc);a9=!0}function aQ(){a9=!1}function aT(G){ac.sendEvent(G.type,G)}function aJ(H){if(H.done){aE()}else{if(!H.complete){aK.adMode()||(aK.instreamMode(!0),aK.adMode(!0),aK.show(!0));aK.setText(H.message);var G=H.onClick;void 0!==G&&az.setAlternateClickHandler(function(){G(H)});void 0!==H.onSkipAd&&ay&&ay.setSkipoffset(H,H.onSkipAd)}ay&&ay.adChanged(H)}}function aE(){aK.setText("");aK.adMode(!1);aK.instreamMode(!1);aK.show(!0);ay&&(ay.adsEnded(),ay.setState(af.jwGetState()));az.revertAlternateClickHandler()}function aF(H,G,M){var L=aH.className,K,J,I=af.id+"_view";w.block(I);if(M=!!M){L=L.replace(/\s*aspectMode/,""),aH.className!==L&&(aH.className=L),w.style(aH,{display:n},M)}B.exists(H)&&B.exists(G)&&(ap.width=H,ap.height=G);M={width:H};-1===L.indexOf(o)&&(M.height=G);w.style(aH,M,!0);az&&az.redraw();aK&&aK.redraw(!0);d&&(d.offset(aK&&0<=d.position().indexOf("bottom")?aK.height()+aK.margin():0),setTimeout(function(){a6&&a6.offset("top-left"===d.position()?d.element().clientWidth+d.margin():0)},500));aC(G);K=ap.playlistsize;J=ap.playlistposition;if(aW&&K&&("right"===J||"bottom"===J)){aW.redraw(),L={display:n},M={},L[J]=0,M[J]=K,"right"===J?L.width=K:L.height=K,w.style(c,L),w.style(t,M)}aX(H,G);w.unblock(I)}function aC(H){var G=v(aH);bf=0<H.toString().indexOf("%")||0===G.height?!1:"bottom"===ap.playlistposition?G.height<=40+ap.playlistsize:40>=G.height;aK&&(bf?(aK.audioMode(!0),aR(),az.hidePreview(!0),az&&az.hide(),b(!1)):(aK.audioMode(!1),ax(af.jwGetState())));d&&bf&&aS();aH.style.backgroundColor=bf?"transparent":"#000"}function aX(H,G){if(!H||isNaN(Number(H))){if(!aI){return}H=aI.clientWidth}if(!G||isNaN(Number(G))){if(!aI){return}G=aI.clientHeight}B.isMSIE(9)&&(document.all&&!z.atob)&&(H=G="100%");ap.getVideo().resize(H,G,ap.stretching)&&(clearTimeout(l),l=setTimeout(aX,250))}function aB(G){void 0!==G.jwstate?G=G.jwstate:aV?(G=document.fullscreenElement||document.webkitCurrentFullScreenElement||document.mozFullScreenElement||document.msFullscreenElement,G=!!(G&&G.id===af.id)):G=aD?V.getVideo().getFullScreen():ap.getVideo().getFullScreen();aV?a5(aH,G):aw(G)}function a5(H,G){B.removeClass(H,"jwfullscreen");G?(B.addClass(H,"jwfullscreen"),w.style(document.body,{"overflow-y":F}),aM()):w.style(document.body,{"overflow-y":""});aK&&aK.redraw();az&&az.redraw();a6&&a6.redraw();aX();aw(G)}function aw(G){ap.setFullscreen(G);V&&V.setFullscreen(G);G?(clearTimeout(l),l=setTimeout(aX,200)):m&&af.jwGetState()===x.PAUSED&&setTimeout(f,500)}function ao(){aK&&ap.controls&&(aD?g.show():aK.show())}function aP(){!0!==bg&&(aK&&!bf&&!ap.getVideo().isAudioFile())&&(aD&&g.hide(),aK.hide())}function at(){a6&&(!bf&&ap.controls)&&a6.show()}function ar(){a6&&(!aq&&!ap.getVideo().isAudioFile())&&a6.hide()}function aS(){d&&(!ap.getVideo().isAudioFile()||bf)&&d.hide(bf)}function f(){az&&ap.controls&&!bf&&(!u||af.jwGetState()===x.IDLE)&&az.show();(!C||!ap.fullscreen)&&ap.getVideo().setControls(!1)}function a3(){clearTimeout(bc);if(!0!==bg){a7=!1;var G=af.jwGetState();(!ap.controls||G!==x.PAUSED)&&aP();ap.controls||ar();G!==x.IDLE&&G!==x.PAUSED&&(ar(),aS());B.addClass(aH,"jw-user-inactive")}}function aR(){if(!1!==bg){a7=!0;if(ap.controls||bf){ao(),at()}a1.hide&&d&&!bf&&d.show();B.removeClass(aH,"jw-user-inactive")}}function b(G){G=G&&!bf;ap.getVideo().setVisibility(G)}function p(){aq=!0;ad(!1);ap.controls&&at()}function A(){ay&&ay.setState(af.jwGetState())}function av(G){aq=!1;clearTimeout(be);be=setTimeout(function(){ax(G.newstate)},100)}function a4(){aP()}function ax(G){if(ap.getVideo().isCaster){az&&(az.show(),az.hidePreview(!1)),w.style(aI,{visibility:"visible",opacity:1}),aK&&(aK.show(),aK.hideFullscreen(!0))}else{switch(G){case x.PLAYING:bg=!0!==ap.getVideo().isCaster?null:!0;(aD?V:ap).getVideo().isAudioFile()?(b(!1),az.hidePreview(bf),az.setHiding(!0),aK&&(aR(),aK.hideFullscreen(!0)),at()):(b(!0),aX(),az.hidePreview(!0),aK&&aK.hideFullscreen(!ap.getVideo().supportsFullscreen()));break;case x.IDLE:b(!1);bf||(az.hidePreview(!1),f(),at(),aK&&aK.hideFullscreen(!1));break;case x.BUFFERING:f();a3();C&&b(!0);break;case x.PAUSED:f(),aR()}d&&!bf&&d.show()}}function ah(G){return"#"+af.id+(G?" ."+G:"")}function aG(H,G){w(H,{display:G?n:E})}var aH,t,a8,am,c,bc=-1,k=C?4000:2000,aI,aZ,au,h,g,bd,V,aD=!1,aK,az,ay,a6,d,a1=B.extend({},ap.componentConfig("logo")),e,aW,bf,aA=!1,a7=!1,bg=null,aq,bh,l=-1,a9=!1,bi,a2,aV=!1,a=!1,ac=B.extend(this,new y.eventdispatcher);this.getCurrentCaptions=function(){return e.getCurrentCaptions()};this.setCurrentCaptions=function(G){e.setCurrentCaptions(G)};this.getCaptionsList=function(){return e.getCaptionsList()};this.setup=function(H){if(!aA){af.skin=H;t=an("span","jwmain");t.id=af.id+"_view";aI=an("span","jwvideo");aI.id=af.id+"_media";a8=an("span","jwcontrols");h=an("span","jwinstream");c=an("span","jwplaylistcontainer");am=an("span","jwaspect");H=ap.height;var G=ap.componentConfig("controlbar"),I=ap.componentConfig("display");aC(H);e=new D.captions(af,ap.captions);e.addEventListener(y.JWPLAYER_CAPTIONS_LIST,aT);e.addEventListener(y.JWPLAYER_CAPTIONS_CHANGED,aT);e.addEventListener(y.JWPLAYER_CAPTIONS_LOADED,ag);a8.appendChild(e.element());az=new D.display(af,I);az.addEventListener(y.JWPLAYER_DISPLAY_CLICK,function(J){aT(J);C?a7?a3():aR():av({newstate:af.jwGetState()});a7&&aM()});bf&&az.hidePreview(!0);a8.appendChild(az.element());d=new D.logo(af,a1);a8.appendChild(d.element());a6=new D.dock(af,ap.componentConfig("dock"));a8.appendChild(a6.element());af.edition&&!C?bh=new D.rightclick(af,{abouttext:ap.abouttext,aboutlink:ap.aboutlink}):C||(bh=new D.rightclick(af,{}));ap.playlistsize&&(ap.playlistposition&&ap.playlistposition!==E)&&(aW=new D.playlistcomponent(af,{}),c.appendChild(aW.element()));aK=new D.controlbar(af,G);aK.addEventListener(y.JWPLAYER_USER_ACTION,aM);a8.appendChild(aK.element());u&&aP();B.canCast()&&ac.forceControls(!0);aH.onmousedown=al;aH.onfocusin=ai;aH.addEventListener("focus",ai);aH.onfocusout=aj;aH.addEventListener("blur",aj);aH.addEventListener("keydown",ak);t.appendChild(aI);t.appendChild(a8);t.appendChild(h);aH.appendChild(t);aH.appendChild(am);aH.appendChild(c);ap.getVideo().setContainer(aI);ap.addEventListener("fullscreenchange",aB);for(H=i.length;H--;){document.addEventListener(i[H],aB,!1)}z.removeEventListener("resize",aY);z.addEventListener("resize",aY,!1);C&&(z.removeEventListener("orientationchange",aY),z.addEventListener("orientationchange",aY,!1));q(af.id).onAdPlay(function(){aK.adMode(!0);ax(x.PLAYING);aM()});q(af.id).onAdSkipped(function(){aK.adMode(!1)});q(af.id).onAdComplete(function(){aK.adMode(!1)});q(af.id).onAdError(function(){aK.adMode(!1)});af.jwAddEventListener(y.JWPLAYER_PLAYER_STATE,av);af.jwAddEventListener(y.JWPLAYER_MEDIA_ERROR,a4);af.jwAddEventListener(y.JWPLAYER_PLAYLIST_COMPLETE,p);af.jwAddEventListener(y.JWPLAYER_PLAYLIST_ITEM,A);af.jwAddEventListener(y.JWPLAYER_CAST_AVAILABLE,function(){B.canCast()?ac.forceControls(!0):ac.releaseControls()});af.jwAddEventListener(y.JWPLAYER_CAST_SESSION,function(J){ay||(ay=new q.html5.castDisplay(af.id),ay.statusDelegate=function(K){ay.setState(K.newstate)});J.active?(w.style(e.element(),{display:"none"}),ac.forceControls(!0),ay.setState("connecting").setName(J.deviceName).show(),af.jwAddEventListener(y.JWPLAYER_PLAYER_STATE,ay.statusDelegate),af.jwAddEventListener(y.JWPLAYER_CAST_AD_CHANGED,aJ)):(af.jwRemoveEventListener(y.JWPLAYER_PLAYER_STATE,ay.statusDelegate),af.jwRemoveEventListener(y.JWPLAYER_CAST_AD_CHANGED,aJ),ay.hide(),aK.adMode()&&aE(),w.style(e.element(),{display:null}),av({newstate:af.jwGetState()}),aY())});av({newstate:x.IDLE});C||(a8.addEventListener("mouseout",aN,!1),a8.addEventListener("mousemove",aO,!1),B.isMSIE()&&(aI.addEventListener("mousemove",aO,!1),aI.addEventListener("click",az.clickHandler)));aU(aK);aU(a6);aU(d);w("#"+aH.id+"."+o+" .jwaspect",{"margin-top":ap.aspectratio,display:n});H=B.exists(ap.aspectratio)?parseFloat(ap.aspectratio):100;G=ap.playlistsize;w("#"+aH.id+".playlist-right .jwaspect",{"margin-bottom":-1*G*(H/100)+"px"});w("#"+aH.id+".playlist-right .jwplaylistcontainer",{width:G+"px",right:0,top:0,height:"100%"});w("#"+aH.id+".playlist-bottom .jwaspect",{"padding-bottom":G+"px"});w("#"+aH.id+".playlist-bottom .jwplaylistcontainer",{width:"100%",height:G+"px",bottom:0});w("#"+aH.id+".playlist-right .jwmain",{right:G+"px"});w("#"+aH.id+".playlist-bottom .jwmain",{bottom:G+"px"});setTimeout(function(){aF(ap.width,ap.height)},0)}};var ad=this.fullscreen=function(G){B.exists(G)||(G=!ap.fullscreen);G=!!G;G!==ap.fullscreen&&(aV?(G?bi.apply(aH):a2.apply(document),a5(aH,G)):B.isIE()?a5(aH,G):(V&&V.getVideo().setFullScreen(G),ap.getVideo().setFullScreen(G)))};this.resize=function(H,G){aF(H,G,!0);aY()};this.resizeMedia=aX;var r=this.completeSetup=function(){w.style(aH,{opacity:1});z.onbeforeunload=function(){ap.getVideo().isCaster||af.jwStop()}},be;this.setupInstream=function(H,G,J,I){w.unblock();aG(ah("jwinstream"),!0);aG(ah("jwcontrols"),!1);h.appendChild(H);g=G;bd=J;V=I;av({newstate:x.PLAYING});aD=!0;h.addEventListener("mousemove",aO);h.addEventListener("mouseout",aN)};this.destroyInstream=function(){w.unblock();aG(ah("jwinstream"),!1);aG(ah("jwcontrols"),!0);h.innerHTML="";h.removeEventListener("mousemove",aO);h.removeEventListener("mouseout",aN);aD=!1};this.setupError=function(G){aA=!0;q.embed.errorScreen(aH,G,ap);r()};this.addButton=function(H,G,J,I){a6&&(a6.addButton(H,G,J,I),af.jwGetState()===x.IDLE&&at())};this.removeButton=function(G){a6&&a6.removeButton(G)};this.setControls=function(H){var G=!!H;G!==ap.controls&&(ap.controls=G,aD?H?(g.show(),bd.show()):(g.hide(),bd.hide()):G&&av({newstate:af.jwGetState()}),G||(a3(),az&&az.hide()),ac.sendEvent(y.JWPLAYER_CONTROLS,{controls:G}))};this.forceControls=function(G){bg=!!G;G?aR():a3()};this.releaseControls=function(){bg=null;ax(af.jwGetState())};this.addCues=function(G){aK&&aK.addCues(G)};this.forceState=function(G){az.forceState(G)};this.releaseState=function(){az.releaseState(af.jwGetState())};this.getSafeRegion=function(H){var G={x:0,y:0,width:0,height:0};H=H||!B.exists(H);aK.showTemp();a6.showTemp();var N=v(t),M=N.top,L=aD?v(document.getElementById(af.id+"_instream_controlbar")):v(aK.element()),K=aD?!1:0<a6.numButtons(),J=0===d.position().indexOf("top"),I=v(d.element());K&&ap.controls&&(K=v(a6.element()),G.y=Math.max(0,K.bottom-M));J&&(G.y=Math.max(G.y,I.bottom-M));G.width=N.width;G.height=L.height&&H&&ap.controls?(J?L.top:I.top)-M-G.y:N.height-G.y;aK.hideTemp();a6.hideTemp();return G};this.destroy=function(){z.removeEventListener("resize",aY);z.removeEventListener("orientationchange",aY);for(var G=i.length;G--;){document.removeEventListener(i[G],aB,!1)}ap.removeEventListener("fullscreenchange",aB);aH.removeEventListener("keydown",ak,!1);bh&&bh.destroy();ay&&(af.jwRemoveEventListener(y.JWPLAYER_PLAYER_STATE,ay.statusDelegate),ay.destroy(),ay=null);a8&&(a8.removeEventListener("mousemove",aO),a8.removeEventListener("mouseout",aN));aI&&(aI.removeEventListener("mousemove",aO),aI.removeEventListener("click",az.clickHandler));aD&&this.destroyInstream()};aH=an("div","jwplayer playlist-"+ap.playlistposition);aH.id=af.id;aH.tabIndex=0;bi=aH.requestFullscreen||aH.webkitRequestFullscreen||aH.webkitRequestFullScreen||aH.mozRequestFullScreen||aH.msRequestFullscreen;a2=document.exitFullscreen||document.webkitExitFullscreen||document.webkitCancelFullScreen||document.mozCancelFullScreen||document.msExitFullscreen;aV=bi&&a2;ap.aspectratio&&(w.style(aH,{display:"inline-block"}),aH.className=aH.className.replace("jwplayer","jwplayer "+o));aF(ap.width,ap.height);var j=document.getElementById(af.id);j.parentNode.replaceChild(aH,j)};w(".jwplayer",{position:"relative",display:"block",opacity:0,"min-height":0,"-webkit-transition":"opacity .25s ease","-moz-transition":"opacity .25s ease","-o-transition":"opacity .25s ease"});w(".jwmain",{position:"absolute",left:0,right:0,top:0,bottom:0,"-webkit-transition":"opacity .25s ease","-moz-transition":"opacity .25s ease","-o-transition":"opacity .25s ease"});w(".jwvideo, .jwcontrols",{position:"absolute",height:"100%",width:"100%","-webkit-transition":"opacity .25s ease","-moz-transition":"opacity .25s ease","-o-transition":"opacity .25s ease"});w(".jwvideo",{overflow:F,visibility:F,opacity:0});w(".jwvideo video",{background:"transparent",height:"100%",width:"100%",position:"absolute",margin:"auto",right:0,left:0,top:0,bottom:0});w(".jwplaylistcontainer",{position:"absolute",height:"100%",width:"100%",display:E});w(".jwinstream",{position:"absolute",top:0,left:0,bottom:0,right:0,display:"none"});w(".jwaspect",{display:"none"});w(".jwplayer."+o,{height:"auto"});w(".jwplayer.jwfullscreen",{width:"100%",height:"100%",left:0,right:0,top:0,bottom:0,"z-index":1000,margin:0,position:"fixed"},!0);w(".jwplayer.jwfullscreen.jw-user-inactive",{cursor:"none","-webkit-cursor-visibility":"auto-hide"});w(".jwplayer.jwfullscreen .jwmain",{left:0,right:0,top:0,bottom:0},!0);w(".jwplayer.jwfullscreen .jwplaylistcontainer",{display:E},!0);w(".jwplayer .jwuniform",{"background-size":"contain !important"});w(".jwplayer .jwfill",{"background-size":"cover !important","background-position":"center"});w(".jwplayer .jwexactfit",{"background-size":"100% 100% !important"})})(window);(function(y,o){function B(b){return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA"+i[b]}function z(e,d){var f=o.createElement(e);d&&x(f,d);return f}function x(d,c){m.isArray(c)||(c=[c]);c=m.map(c,function(b){return !b?"":"jwcast-"+b.toLowerCase()});d.className=c.join(" ")}function w(e,d){d.join||(d=[d]);for(var f=0;f<d.length;f++){e.appendChild(d[f])}}var v=y.utils,u=y.html5,A=y.events,m=y._,q=A.state,n=v.css,i={wheel:"DgAAAA4CAYAAACohjseAAACiUlEQVR42u3aP2sTYRzAcZ87Md6mhE5GhRqli0NC22yNKO1iaStSY+ggdKggal6BDXRoUuwbEG1LpE4B30LAxEGbKYgO7SVoUhJD04hOusRv4ZlCwP5LevfDgw9kCnzD5Z4/95xqtVqideNLTQzjKV4gCxtNtNwaqBBGCg3UkcYz3EUIV+F1W6AHj7CFb1hAEIbbb1GFByjjAyZgSvkPXkMGW7gt7SETwQ8swpL0FFV4jjpuShsmTiOFz7gobRxUWEceXokDfQKf0CdxJhNFFT6JU7Ur2MUtiXNRhXdYlDrZnkERZyUGerCNcanLpYfISV0PGtjEpNTAGyjBkBq4ggWpWxYmGghIDRzEDgypgTG8lbyrtoZ5yYFZ3JccWMKg5MCfGJAcuHf5/ge6xwX8lnyLDmCn/SEzJChwCKX2YSIqKDCKbPtAHxcUGAdNOhBPkBYUmAZNOhDXUYMSEKdQBU06EAp1BAUEBnWLgg4EXmJJQOASXnVa0YdRcfma0NAN4U6BCpu44+LASd2g0BYIPEbexYHvdQOfOwdaqLh063AcFVj73bq3XBRnoYiZ/b58ySDposAkMlD/DNT8aGLUBXGjaMJ/0Beg9/Dd4etEH2qIHOUVdgHnHRh3DgUkjnoIIYUNh0V6sYHXUIcO1Eyso4BLDoi7jC94A/O4DgIZWEYdYycYN4YalmF04yjXNJpIwOrxOJdAE9PdPoznRxZFTPUgbgI2svD38jjlLMrI61DjmFcFU/iICmZhnMSB2DOYg41tJBGAOuSPFkASZdiYg8cpR5pHsIIGqkgjjghC6Eef1o8QIphHGlU0sIYRGE4/lB7DKnL4il/Yu/5gFzZyWEUMwzC7sXUv2l9q1CPRZSGkLwAAAABJRU5ErkJggg\x3d\x3d",display:"UAAAAC4AQMAAACo6KcpAAAABlBMVEV6enp6enqEWMsmAAAAAXRSTlMAQObYZgAAAEdJREFUeF7t2bEJACAMRcGAg7j/Fo6VTkvbIKSRe/XBH+DHLlaHK0qN7yAIgiAIgiAIgiAIgiAIgiAIgiAIgg0PZHfzbuUjPCPnO5qQcE/AAAAAAElFTkSuQmCC",pause:"CoAAAA2CAQAAAAb3sMwAAAAMElEQVR4Ae3MMQEAMAzDsIY/6AxB9/aRfyvt7GX2Ph8UCoVCoVAo9AiFQqFQKBQKfdYvoctOjDeGAAAAAElFTkSuQmCC",play:"DYAAAA2BAMAAAB+a3fuAAAAFVBMVEX///////////////////////////9nSIHRAAAABnRSTlMAP79AwMFfxd6iAAAAX0lEQVR4Xn3JQQGAABAEoaliFiPYYftHMMHBl55uQw455JBDDjnkkEMOOeSQQw455JBDDjnkkEMOOeSQQ+5O3HffW6hQoUKFChUqVKhQoUKFChUqVKhQoUKFChUqVKgfWHsiYI6VycIAAAAASUVORK5CYII\x3d",replay:"DQAAAA8CAYAAAApK5mGAAADkklEQVRoBd3BW2iVBRwA8P/cWHMsv9QilLCITLCU0khpST6JCEXrQbKMCgrKFwsfZq/LMnRRIdkFvBQUvmShgg9iV02zB7FScyWlqNHNqbCJ7PKLkFHp952dnZ3tfOv3ixgGSLAVt8b/ARIX9WADJsVIhsR/daIV42MkQiJdO5ZjdIwkSBR2Ek+gJkYCJIpzEE2Rd0gMzB7MibxCojRbcEtUGsZgJu7HYixVuh6sx6QYLrgSD+Fd/GhodKIV42Ko4B68h07Dpx3NGB3lgnnYpbJOYFoMBm7ANpW3D3NjMPAgzqqsn7EIVVEqVGOtymrHMtTGYKAeWxSvB3vxIh7ANIzFNUpzAa0YF4OFWuxUnFNYjkmRAomB6cX7uDHKAdX4QP/asRRXRAFIFO8TzI5yQov+bcO1UQQk+ncITVFumIce2XqxHFVRJCSy/YolqIlyQwOOy9aNR2KAkLhcJ1agIYYKVsvWi6eiBEj8owfrMDEGAVVYiMcjDa7HBdlejhIhcdF2TI9BQiP2uOgsro5LYa1sX6M2SoQ6zItBwmRsdrnn498wDuel68aMqDBMQZd0v6Mu+mCJbBsiJ7BdtkXRB7ul68HNkRNolO3D+BvGoke6HZEz+Fa6c6gJNMn2WOQMmmW7K/CSbBMiZ3CbbM8EPpKuLXIIo3BWujcCh6TbEjmFr6TbGfhDulcip7BJugOBbulaIqfwlnRHQ7bnIqewVrpjgU7pVkZOYaN0hwOnpFsfOYWt0u0LfCnd55FT+EG6zYEN0p1BdeQMEnRLtzKwTLZZkTO4V7bFgTtka4mcwTrZrgtU47R0P6E6cgINOCfdkeiDjbItipzAs7K1Rh/Mle0gaqLC0IBTsk2PPhiFI7ItiwrDKtl2xaXwqGwdmBoVgrvRJdv8uBRq0CbbISQxzDARJ2TbG1kwX2GfoT6GCa7CN7J1Y0YUgk0K+wJjY4hhAg4o7LXoD8bjuMIOY1oMETTiuMIOoj6KgTvRobDzaEZtlAnq8QK6FHYGU2IgcB+69e97LEJNlAh1eBrH9K8DjVEKPIxuxTmJVZiFmugHajEHa/Cb4nRiQQwGmtBpYM7hU7yNFjSjGSuwDrvRYWD+RGOUA25Hm8rZj8lRThiDd9Br+PTgVdTFUMFcfGfo7cHMGA4YhYXYr/x2YQGqohIwG2vwi9Idw2pMjzzBVCzBm/gYR3EaXbiA02jDDryOJ3FTlNFfAO8ENqnn13UAAAAASUVORK5CYII\x3d"},D=!1,C=316/176;u.castDisplay=function(H){function P(){if(a){var p=a.element();p.parentNode&&p.parentNode.removeChild(p);a.resetEventListeners();a=null}}function R(){j&&(j.parentNode&&j.parentNode.removeChild(j),j=null)}function N(){f&&(f.parentNode&&f.parentNode.removeChild(f),f=null)}D||(n(".jwplayer .jwcast-display",{display:"none",position:"absolute",width:"100%",height:"100%","background-repeat":"no-repeat","background-size":"auto","background-position":"50% 50%","background-image":B("display")}),n(".jwplayer .jwcast-label",{position:"absolute",left:10,right:10,bottom:"50%","margin-bottom":100,"text-align":"center"}),n(".jwplayer .jwcast-label span",{"font-family":'"Karbon", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif',"font-size":20,"font-weight":300,color:"#7a7a7a"}),n(".jwplayer span.jwcast-name",{color:"#ccc"}),n(".jwcast-button",{position:"absolute",width:"100%",height:"100%",opacity:0,"background-repeat":"no-repeat","background-size":"auto","background-position":"50% 50%"}),n(".jwcast-wheel",{"background-image":B("wheel")}),n(".jwcast-pause",{"background-image":B("pause")}),n(".jwcast-play",{"background-image":B("play")}),n(".jwcast-replay",{"background-image":B("replay")}),n(".jwcast-paused .jwcast-play",{opacity:1}),n(".jwcast-playing .jwcast-pause",{opacity:1}),n(".jwcast-idle .jwcast-replay",{opacity:1}),v.cssKeyframes("spin","from {transform: rotate(0deg);} to {transform: rotate(360deg);}"),n(".jwcast-connecting .jwcast-wheel, .jwcast-buffering .jwcast-wheel",{opacity:1,"-webkit-animation":"spin 1.5s linear infinite",animation:"spin 1.5s linear infinite"}),n(".jwcast-companion",{position:"absolute","background-position":"50% 50%","background-size":"316px 176px","background-repeat":"no-repeat",top:0,left:0,right:0,bottom:4}),n(".jwplayer .jwcast-click-label",{"font-family":'"Karbon", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif',"font-size":14,"font-weight":300,"text-align":"center",position:"absolute",left:10,right:10,top:"50%",color:"#ccc","margin-top":100,"-webkit-user-select":"none","user-select":"none",cursor:"pointer"}),n(".jwcast-paused .jwcast-click-label",{color:"#7a7a7a",cursor:"default"}),D=!0);var d=o.getElementById(H+"_display_button"),t=z("div","display"),O=z("div",["pause","button"]),h=z("div",["play","button"]),k=z("div",["replay","button"]),E=z("div",["wheel","button"]),l=z("div","label"),g=z("span"),c=z("span","name"),Q="#"+H+"_display.jwdisplay",b=-1,e=null,a=null,f=null,j=null;w(t,[E,O,h,k,l]);w(l,[g,c]);d.parentNode.insertBefore(t,d);this.statusDelegate=null;this.setName=function(p){c.innerText=p||"Google Cast";return this};this.setState=function(r){var p="Casting on ";if(null===e){if("connecting"===r){p="Connecting to "}else{if(r!==q.IDLE){var F=y(H).getPlaylistItem().title||"";F&&(p=p.replace("on",F+" on"))}}}g.innerText=p;clearTimeout(b);r===q.IDLE&&(b=setTimeout(function(){x(t,["display","idle"])},3000),r="");x(t,["display",r||""]);return this};this.show=function(){n(Q+" .jwpreview",{"background-size":"316px 176px !important",opacity:0.6,"margin-top":-2});n(Q+" .jwdisplayIcon",{display:"none !important"});n.style(t,{display:"block"});return this};this.hide=function(){v.clearCss(Q+" .jwpreview");n(Q+" .jwdisplayIcon",{display:""});n.style(t,{display:"none"});return this};this.setSkipoffset=function(p,G){if(null===a){var F=o.getElementById(H+"_controlbar"),r=10+v.bounds(t).bottom-v.bounds(F).top;a=new u.adskipbutton(H,r|0,p.skipMessage,p.skipText);a.addEventListener(A.JWPLAYER_AD_SKIPPED,function(){G(p)});a.reset(p.skipoffset||-1);a.show();F.parentNode.insertBefore(a.element(),F)}else{a.reset(p.skipoffset||-1)}};this.setCompanions=function(r){var p,J,I,G=Number.MAX_VALUE,F=null;for(J=r.length;J--;){if(p=r[J],p.width&&p.height&&p.source){switch(p.type){case"html":case"iframe":case"application/x-shockwave-flash":break;default:I=Math.abs(p.width/p.height-C),I<G&&(G=I,0.75>I&&(F=p))}}}(r=F)?(null===f&&(f=z("div","companion"),w(t,f)),r.width/r.height>C?(p=316,J=r.height*p/r.width):(J=176,p=r.width*J/r.height),n.style(f,{"background-image":r.source,"background-size":p+"px "+J+"px"})):N()};this.adChanged=function(r){if(r.complete){a&&a.reset(-1),e=null}else{a&&(void 0===r.skipoffset?P():(r.position||r.duration)&&a.updateSkipTime(r.position|0,r.duration|0));var p=r.tag+r.sequence;p!==e&&(n(Q+" .jwpreview",{opacity:0}),r.companions?this.setCompanions(r.companions):N(),r.clickthrough?null===j&&(j=z("div","click-label"),j.innerText="Click here to learn more \x3e",w(t,j)):R(),e=p,this.setState(r.newstate))}};this.adsEnded=function(){P();N();R();n(Q+" .jwpreview",{opacity:0.6});e=null};this.destroy=function(){this.hide();t.parentNode&&t.parentNode.removeChild(t)}}})(jwplayer,document);(function(e){var c=jwplayer.utils.extend,b=e.logo;b.defaults.prefix="";b.defaults.file="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHoAAAAyCAMAAACkjD/XAAACnVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJCQkSEhIAAAAaGhoAAAAiIiIrKysAAAAxMTEAAAA4ODg+Pj4AAABEREQAAABJSUkAAABOTk5TU1NXV1dcXFxiYmJmZmZqamptbW1xcXF0dHR3d3d9fX2AgICHh4eKioqMjIyOjo6QkJCSkpKUlJSWlpaYmJidnZ2enp6ioqKjo6OlpaWmpqanp6epqamqqqqurq6vr6+wsLCxsbG0tLS1tbW2tra3t7e6urq7u7u8vLy9vb2+vr6/v7/AwMDCwsLFxcXFxcXHx8fIyMjJycnKysrNzc3Ozs7Ozs7Pz8/Pz8/Q0NDR0dHR0dHS0tLU1NTV1dXW1tbW1tbW1tbX19fX19fa2trb29vb29vc3Nzc3Nzf39/f39/f39/f39/g4ODh4eHj4+Pj4+Pk5OTk5OTk5OTk5OTl5eXn5+fn5+fn5+fn5+fn5+fo6Ojo6Ojq6urq6urq6urr6+vr6+vr6+vt7e3t7e3t7e3t7e3u7u7u7u7v7+/v7+/w8PDw8PDw8PDw8PDy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vL09PT09PT09PT09PT09PT09PT09PT29vb29vb29vb29vb29vb29vb29vb29vb39/f39/f39/f39/f39/f4+Pj4+Pj4+Pj5+fn5+fn5+fn5+fn5+fn5+fn5+fn6+vr6+vr6+vr6+vr6+vr6+vr8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz9/f39/f39/f39/f39/f39/f39/f39/f39/f3+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7///////////////9kpi5JAAAA33RSTlMAAQIDBAUGBwgJCgsMDQ4PEBESExQVFhYWFxcYGBgZGRoaGhsbHBwdHR4eHx8gISIiIyQmJicoKSoqKywtLi4uMDEyMjM0NTU2Njc5Ojo7Ozw9Pj5AQUJCQ0ZGSElKSktMTU5PUFFRUlRVVlZXWFpbXV5eX2BhYmVmZ2hpamtsbW5vcHFyc3R2d3h5enx9fn+BgoKDhIWGiYmKi4yNjo+QkZKTlJWWl5eYmZqbnJ2enp+goaKkpaamp6ipqqusra6vsLKzs7W2t7i5uru8vb6/wMHCwsPExcbHyMnJysvMVK8y+QAAB5FJREFUeNrFmP2f3EQdx8kmm2yy2WQzmZkjl3bJ2Rb12mtp8SiKiBUUxVKFVisIihV62CKCIoK0UvVK1bP07mitBeVJUVso0Duw1Xo9ET0f6JN47bV3u9+/xe83kyzr0+vlL7t8Xq9ubpLpvHfm+7i54P+UVkBp2gWdFpGNYtFA+NtALpYcxzZ1rSM0TSvgv5xse0wwu1joxDYLulE0dKTTSLcqfOvMQ1WzoHXAtCadsGXqBCsUnWDxNBzmlq51wLSuz0LmOcTWClZFfA1ghLUbrUwbdq396kAvK5s6HoFdlb8FuLONB66RlGnD5S8BwKkNoVMsFEw3XIOj97hmoX2updP5kml7jgLp/Ec8yzBKntwDMCnwa7TPtUrkWLrliW2gtC+0TdNhvdMAu1hJ19plYNcP0LGKiJp/HJTeEI5V8sjJ4PZ2mTp1rb7Pf5C5JbvCN0Cuha7jpE5WX9oeU6us8YlTUH8grFQC+QzkWuKVvdTJXuWO0Z5Nk2tNkWNdzgLed+4tdNWrkpPBI20ytVYwK+LrQLpPcHk3vIVm1ZCcDD7jt8fUGmYNoeLpJzKW+1vQYSjJyc72ZKbWSOqqhpn+99r/rn99WDDLbJViHZbJirkWtJDkZPArbhta2jFg7LdKV1ID9aWaz5CTzTD0pvB2aypB9xYPKtaUXEC7bKKjeA1dHyJTU+xbFgY/RiAKP2lYsm28RaJmAtfTs6c4xP9g0gycUqKpeDGLegZPl3MqTL6oWCdl9EIrOol20/U6zyzgVJzpeV6l7Dhl18VP1/N8v1r1vQoNSziH1nPKKMdBChbAiprheygfL65tZmxazguYXDoL8BcyqlhRb0W/M3Wy412YRTUd7SKEFIKzIBQ8DBhHewgSjkLB7GwS54wxwcoORqYQ+QyhFGA9VIYxnfCKq2VtE3k3wTB1taLx+FVCNTRyxnU4YQ/8WEY9M7PvkvJHsEsAam5srRRwH0YBhml14Zv7pRz62+LAD/jWE0vHINU6OUGXyc0Mt5GiLW/+6blV8eO4tY8B6t3qvBsZOnUy+HJgFaiuMELfhQ6RrAe4JZGvwxcFPLx69YZDZ1ciOrB03ayEd52vr0x6/zokhbxs+p5o7Oc3kfrkxFOrV392d+NWFaeaXvK652Cw+xTAo9cS5ar0vKcfy9BrgNRfMVN0SOh+gPfWtgN8L7kM6pcI2FSrJUtm7kc0KxlF2xcHd/1xWxxvmv1QLB9/5cJobDiKIxklcmI4ShJ5eJ/qOTSqU6/BBC4JN6boQSAN71Doi1Mnm+B0Rjlavgabo/GZ2V/LL8FRSehkkfzzYIouoqXf31jz3de7kq5DB6JP1a+vSUQnOXrRoujpn2XogumJpwCeBfhDV4qeAdK1QwqdOhkMqdAyyyk6HoHR3tmD4/UlI/DDBNFxHK1tDBDaNrHODU7KDzTW16Lr6nccHZGxHNt3Jao/RrSU8pPTeX+JPYj4NpAGkxsg16FoWP1xP5Bu8UwdYxSXJXRyJ0zeCtsegdsm4QsLBBwcHf3l+fF5hHbscnDh1LeSaGwvModnTl7ChVRuNiblxIkjR6bq+9+R9RzkO7cBadWCdZBroDaq/jgDqHMLMYtSr8jkpwl9aaOxF9bdDHsb9T5Ev/rkk6N398SIDj3X5zfDzi1bDpxdHNWWwcOchS27funeR+EOyTI0RcyKLIM20VPzyOObeh4LJsZ/hYnaRpgRsTwG9TPzLz5XhyOSDlzykDEKLsEYl08cG0W9eW+U4B1eZZmtY7J13PXCeHeg0MrPjlH8yLiJ/mYtfqIFvQVNTaez/cMrfwHHpJC7APZH0csAP5ARokPPwXyIoEjKaOnM7UIIOfKKrJEJvEAguhZHUY1sHb3vH1tCxyS0OvGtAL+/iMubQOlMXyKfA6U8i+I0PqWyecA3AmyVEmPhczxEdBUbOKwCsHsAtfNUDyZNdiNcLQld8cTYgQHScjExjNPvOf9RSsrZtt3uB3f2s0Dku35MyiY6z6LYjbMdx+HvO7pd11/egBtCvh7mFvs+P70Rl8L0yU8r7WROyXb5b77Dxemv+I7L82wmxoeY53U9+/K8HE1ZvBq4eGQfh1SNa0Keo5tZVCXwXs7KluUwIZjrMsrHTsB95f4B50JwztGURtHywsBjvGphtIUiFeb9Kn4pjzHXUOhmlXPI3Ug/5QH6BjS1uWpRRdLNku3YWPNw4RKVSSqfpKLq3k3bIZXMvFha+NjQqXqlhYxKa9EgFJGVqKCrqD2ZloJrql7Qgq4vw9DKfn0ahp73B+ln3hPQY/xKJEO1CC2P6T49UOP/fD+R5qphSBvAslttQb8YZr1os7/5ry0P8VDNoZK6T8pnZpdW4bb9ZWPQ2NPtlhxf/A5yPUApt+0/MP2uqy5nLkaKLyZycuOKCp13u9mWXXasol4staAPYyprN1p5CvkR1nD5pxz9jQDPu1Pvbii3yklQmr2U/LtDUr9Fngelp0NqwDsmirPtoLRWJdxOiQrp9Yr8XGiTk3XyxF2eFuw3+ju5aRJl1Yu+f+LMM1eiexc6/lK0QuWpYhkd3XT+UsfOXhd2WKpO6W/TO3BUO8H/BB7RwuB6W7b7AAAAAElFTkSuQmCC";e.logo=function(f,a){"free"==f.edition()?a=null:(b.defaults.file="",b.defaults.prefix="");c(this,new b(f,a))}})(jwplayer.html5);(function(e){var c=e.html5,b=c.model;c.model=function(k,j){var i=new e.utils.key(k.key),d=new b(k,j),a=d.componentConfig;d.edition=function(){return i.edition()};d.componentConfig=function(f){return"logo"==f?d.logo:a(f)};return d}})(jwplayer);(function(e){var c=e.html5,b=c.player;c.player=function(d){d=new b(d);var a;a=d._model.edition();if("enterprise"===a||"ads"===a){a=new e.cast.controller(d,d._model),d.jwStartCasting=a.startCasting,d.jwStopCasting=a.stopCasting}return d};b.prototype.edition=function(){return this._model.edition()}})(jwplayer);(function(f){function e(c){if(!b.isFunction(c.supports)){throw {message:"Tried to register a provider with an invalid object"}}var a=function(){};a.prototype=f.html5.DefaultProvider;c.prototype=new a;g.unshift(c)}var b=f._,g=[f.html5.YoutubeProvider,f.html5.VideoProvider];b.each(f.unregisteredProviders,e);delete f.unregisteredProviders;f.html5.chooseProvider=function(a){a=b.isObject(a)?a:{};return b.find(g,function(c){return c.supports(a)})};f.html5.registerProvider=e})(jwplayer);(function(e){var c=jwplayer.utils.extend,b=e.rightclick;e.rightclick=function(i,h){if("free"==i.edition()){h.aboutlink="http://www.longtailvideo.com/jwpabout/?a\x3dr\x26v\x3d"+e.version+"\x26m\x3dh\x26e\x3df",delete h.abouttext}else{if(!h.aboutlink){var d="http://www.longtailvideo.com/jwpabout/?a\x3dr\x26v\x3d"+e.version+"\x26m\x3dh\x26e\x3d",a=i.edition();h.aboutlink=d+("pro"==a?"p":"premium"==a?"r":"enterprise"==a?"e":"ads"==a?"a":"f")}h.abouttext?h.abouttext+=" ...":(d=i.edition(),d=d.charAt(0).toUpperCase()+d.substr(1),h.abouttext="About JW Player "+e.version+" ("+d+" edition)")}c(this,new b(i,h))}})(jwplayer.html5);(function(e){var c=e.cast,b=e.utils;c.adprovider=function(q,o){function n(){a={message:i,position:0,duration:-1}}function m(g,j){var h={command:g};void 0!==j&&(h.args=j);o.sendMessage(q,h,b.noop,function(f){c.error("message send error",f)})}var k=new c.provider(q,o),r=b.extend(this,k),a,i="Loading ad",d=0;r.init=function(){k.init();n()};r.destroy=function(){k.destroy()};r.updateModel=function(g,f){(g.tag||g.newstate||g.sequence||g.companions)&&c.log("received ad change:",g);g.tag&&(a.tag&&g.tag!==a.tag)&&(c.error("ad messages not received in order. new model:",g,"old model:",a),n());e.utils.extend(a,g);k.updateModel(g,f)};r.getAdModel=function(){var f=b.extend({},a);if(0<a.duration){var h=a,g=h.message.replace(/xx/gi,""+Math.min(h.duration|0,Math.ceil(h.duration-h.position)));h.podMessage&&1<h.podcount&&(g=h.podMessage.replace(/__AD_POD_CURRENT__/g,""+h.sequence).replace(/__AD_POD_LENGTH__/g,""+h.podcount)+g);f.message=g}else{f.message=i}return f};r.resetAdModel=function(){n()};r.skipAd=function(f){m("skipAd",{tag:f.tag})};r.clickAd=function(f){d=(new Date).getTime();m("clickAd",{tag:f.tag})};r.timeSinceClick=function(){return(new Date).getTime()-d}}})(window.jwplayer);(function(j){var g=j.cast,b=j.utils,l=j.events,i=j._,h=l.state;g.provider=function(n){function f(d){e.oldstate=e.newstate;e.newstate=d;a.sendEvent(l.JWPLAYER_PLAYER_STATE,{oldstate:e.oldstate,newstate:e.newstate})}var a=b.extend(this,new l.eventdispatcher("cast.provider")),m=-1,e={newstate:h.IDLE,oldstate:h.IDLE,buffer:0,position:0,duration:-1,audioMode:!1},c=document.createElement("div");c.className="jwcast-screen";c.onclick=function(){a.sendEvent(l.JWPLAYER_PROVIDER_CLICK)};a.isCaster=!0;a.init=function(){};a.destroy=function(){clearTimeout(m);_castSession=null};a.updateModel=function(o,p){o.newstate&&(e.newstate=o.newstate,e.oldstate=o.oldstate||e.oldstate,a.sendEvent(l.JWPLAYER_PLAYER_STATE,{oldstate:e.oldstate,newstate:e.newstate}));if("ad"!==p){if(void 0!==o.position||void 0!==o.duration){void 0!==o.position&&(e.position=o.position),void 0!==o.duration&&(e.duration=o.duration),a.sendEvent(l.JWPLAYER_MEDIA_TIME,{position:e.position,duration:e.duration})}void 0!==o.buffer&&(e.buffer=o.buffer,a.sendEvent(l.JWPLAYER_MEDIA_BUFFER,{bufferPercent:e.buffer}))}};a.supportsFullscreen=function(){return !1};a.setup=function(o,d){d.state&&(e.newstate=d.state);void 0!==d.buffer&&(e.buffer=d.buffer);void 0!==o.position&&(e.position=o.position);void 0!==o.duration&&(e.duration=o.duration);f(h.BUFFERING);n("setup",o)};a.playlistItem=function(d){f(h.BUFFERING);n("item",d)};a.load=function(d){f(h.BUFFERING);n("load",d)};a.stop=function(){clearTimeout(m);m=setTimeout(function(){f(h.IDLE);n("stop")},0)};a.play=function(){n("play")};a.pause=function(){f(h.PAUSED);n("pause")};a.seek=function(d){f(h.BUFFERING);a.sendEvent(l.JWPLAYER_MEDIA_SEEK,{position:e.position,offset:d});n("seek",d)};a.audioMode=function(){return e.audioMode};a.sendCommand=function(o,d){n(o,d)};a.detachMedia=function(){g.error("detachMedia called while casting");return document.createElement("video")};a.attachMedia=function(){g.error("attachMedia called while casting")};var k;a.setContainer=function(d){d.appendChild(c);k=d};a.getContainer=function(){return k};a.remove=function(){k.removeChild(c)};a.volume=a.mute=a.setControls=a.setCurrentQuality=a.resize=a.seekDrag=a.addCaptions=a.resetCaptions=a.setVisibility=a.fsCaptions=b.noop;a.setFullScreen=a.getFullScreen=a.checkComplete=i.constant(!1);a.getWidth=a.getHeight=a.getCurrentQuality=i.constant(0);a.getQualityLevels=i.constant(["Auto"])};b.css(".jwplayer .jwcast-screen",{width:"100%",height:"100%"})})(window.jwplayer);